Pharmacy service
This service handles retrieving, cancelling and paying for prescriptions from a local prescription server.
There is no default implementation available for this functionality.
Configurations
There are various prescription operations available to be added to buttons on the POS layout
Barcode masks of the type Pharmacy can be created to scan in prescription barcodes.
Tips!!! Read the customization section of the Barcode service carefully to see how and if that needs to be customized
Main functionality
Name | Description |
---|---|
AddPrescription | This function is called when a barcode of the type Pharmacy is scanned to add a prescription to a sale. |
CancelPrescription | Cancels a specific prescription. Is called after SelectPrescription function has been called and returns a valid ID |
CancelAllPrescriptions | Is called from the Void transaction operation |
IsPrescriptionFound | Is called before AddPrescription is called to verify that the prescription that is being asked for is valid. If it returns false AddPrescription is not called. |
PayPrescription | This function is called from the ConcludeTransaction from the Transaction service when the POS is finishing the sale. Here the prescriptions can be marked as paid for example in the prescription server. |
SelectPrescription(IConnectionManager, PrescriptionStatus, string rowFilter, OperationInfo) | Is called from Pharmacy prescription cancel operation. The rowFilter parameter is a list of all prescription ID's on the current transaction . |
SelectPrescription(IConnectionManager, PrescriptionStatus, OperationInfo) | Is called from Pharmacy prescriptions operation. |
SiteServiceIsNeeded | Is called from the core of the POS just before the sale is concluded to determine if the Site service is needed to conclude the transaction. Return true if PayPrescription implementation uses the Site service otherwise return false. |
POS Operations
A few operations in the POS directly call the Pharmacy service. Here below is a list of all the operations and which functions they call
Name | Description |
---|---|
Barcode scan | When a barcode of the type Pharmacy is scanned the operation PharmacyPrescriptionAdd is called directly |
Item sale | Calls function AddPrescription if the barcode scanned is of the type Pharmacy |
Pharmacy prescription cancel | Calls functions SelectPrescription and if a prescription is selected CancelPrescription is called |
Pharmacy prescriptions | Calls function SelectPrescription and if a prescription is selected AddPrescription is called |
Void transaction | Calls function CancelAllPrescriptions |
Development pack
To find this service in the development pack go to DevPack\Source\POS\Services
Pharmacy functionality has to be customized by a partner.