DrugEntryOperation

<< Click to Display Table of Contents >>

 

DrugEntryOperation

Write-Only

This Tag receives an integer value that determines which operation to perform with the last DrugEntry Block Tag stored on this Driver's internal memory. Values outside the expected value range return a writing error.

 

Value

Operation

Command

1

ValidateDrugEntry

Validation of a new therapy configuration, a Drug item, which was assigned on the last writing of a DrugEntry Block Tag. If there are fill errors, this Driver indicates them in the Tags LastDrugHasErrors and GetLastErrorsList, and in the WriteStatus return parameter

2

IncludeDrugEntry

Inclusion of a new therapy configuration on this Driver's internal memory, a Drug item, which was assigned on the last writing of a DrugEntry Block Tag. Invalid values cannot be added and any attempt to include invalid values causes a writing error

 

WriteStatus Parameter

If this Tag is called to perform a ValidateDrugEntry operation using a script, the WriteStatus parameter can be read to check the validity of the last DrugEntry Block Tag, that is, a value of 0 (zero) contains no errors and a value of 1 (one) contains errors. If this feature is used, there is no need to read the LastDrugHasErrors Tag to find out the validity of a Block Tag. The next example demonstrates how to use this feature.

'Write DrugList for validation
Driver.Item("DrugEntryOperation").WriteEx 1, Now, 192, WriteStatus
'Checks whether there is a fill error
If WriteStatus Then
  MsgBox "Fill error"
Else
  MsgBox "No errors"
End If

Was this page useful?