Validate HL7 dispense message for full and partial dispense
Note - These testing guidelines assume the user is skilled in the use of, at a minimum, the following:
Scenario 1: Validate the system delays the sending of partial dispenses until the next schedule run
Specific Setup:
- An Outbound 'DISPENSE-METH' connection must be configured.
- Registry setting 'Start Date For Dispensing Push' must be set.
- Registry setting 'Times For Dispensing Push' must be set to "every hour from 9am to 6pm".
- The 'zero Dispense Pump' must be configured and calibrated to dispense.
- A 'Medication Type' must be configured.
- Inventory for the medication type must be received and properly adjusted.
- A test Patient (Client A) must exist.
- A medication order is filed for Client A.
Steps
- Using a ‘zero-transfer’ pump, create a situation where the inventory from which you are dispensing only has enough for a partial dispense. File the partial dispense just before the scheduled task is supposed to run (at the top of each hour if you set it up correctly).
- Verify that when the partial amount is dispensed, a flag is added to the dispense queue just prior to the running of the scheduled task and that no HL7 message is added to the HL7 queue after schedule task is run until the dispense is completed (or it is the last scheduled run for the day).