Counter checks and pack serials
Allergy and duplicate therapy warnings at the pharmacy counter, acknowledging them, pack serial numbers from the DataMatrix (received, sold, returned, recalled), tracing a pack, local drug codes, and what is not checked or not connected.
Allergy warnings
On a patient's page (Pharmacy → Patients → the patient → Edit details), list the patient's allergens as active ingredients, separated by commas: for example amoxicillin, ibuprofen. Write reactions and anything else in Allergy notes.
When that patient is chosen at the counter, every medicine on the bill is compared with the list: a medicine whose generic name contains an allergen (as a whole word) raises a warning, such as Brufix 400 contains ibuprofen: the patient is recorded as allergic to ibuprofen.
OmniBooks compares names only. It does not know drug classes or cross-sensitivity: penicillin does not warn on amoxicillin. Name each ingredient the patient must avoid.
Duplicate therapy warnings
The counter also warns when:
- two different items on the same bill have the same active ingredient (two brands of paracetamol); the same item from two batches is not a duplicate;
- the chosen patient was given the same active ingredient within the last 30 days. Earlier supplies and repeats of the prescription being dispensed now are the same therapy and do not warn.
Change the number of days, or switch this check off with 0, under Pharmacy → Dispensing → Counter checks (needs the right to manage the pharmacy).
Acknowledging a warning
Before payment the pharmacy step lists every warning at the top. Each one must be ticked:
- Allergy and duplicate therapy warnings are acknowledged by a pharmacist: the seller if they are one, otherwise a pharmacist approves with their PIN.
- Pack serial warnings (below) are acknowledged by the seller.
The sale cannot be completed until every warning is ticked; the server checks the bill again when it completes and sends the till back to the pharmacy step if it finds a warning that was not acknowledged. Each acknowledgement is kept on the dispensing record (who, when, what the warning said) and cannot be changed afterwards. Pharmacy → Dispensing shows them in red under the directions.
What is not checked: drug interactions and doses. They need a licensed clinical drug database, which OmniBooks does not have yet. The till and this help say so plainly; that judgement stays with the pharmacist.
Offline: the till still checks for two items with the same ingredient and a serial scanned twice. A serial scanned twice is acknowledged by whoever sells. Two items with the same ingredient need a pharmacist, and approving with a pharmacist's PIN needs the server, so offline only a pharmacist signed in at the till can sell such a bill; anyone else is told to take one item off or wait until the till is back online. Prescription sales stay blocked offline, as before.
Pack serial numbers
Medicine packs' GS1 DataMatrix codes usually carry a serial number unique to each pack. OmniBooks keeps it:
- Receiving: when you count a delivery by scanning (Purchases → the order → Receive → Count by scanning), each pack's serial is kept with its batch; a pack scanned twice counts once. Scanning a pack's code into a bill's or an adjustment's batch field keeps its serial too.
- Selling: scanning a pack at the counter puts its serial on the line (one pack per line). The sale is flagged if the pack was never received, was already sold, or is written off; the seller must acknowledge the warning, and it is kept on the pack's history.
- Returns: a pack returned against its receipt goes back to Returned (in stock), on the shelves of the till's warehouse.
- Warehouses: each pack in stock shows the warehouse it is in: the one it was received into. A stock transfer moves as many of the batch's packs as it moves units (transfers do not scan serials, so the oldest packs go first, and the pack's history notes the transfer). A sold pack is in no warehouse.
- Recalls: opening a recall marks the batch's packs in stock (received, or returned by customers) as Recalled; disposing of one warehouse's stock writes off the packs in that warehouse (packs elsewhere stay Recalled); releasing the recall puts each pack back to its state before the recall.
Packs from before warehouses were kept show the warehouse they were received into (or the till they came back to); a transfer made before then is not replayed, so such a pack may show its old warehouse. A pack whose place is unknown shows Not known; a disposal only writes those off when the disposed warehouse has too few packs of its own.
Every batch page (Inventory → Batches → the batch) and every recall page lists the batch's packs by serial with their state, warehouse and history: received on which delivery, sold on which receipt, any warning and who acknowledged it.
To trace a pack when you do not know its batch (a complaint, a regulator's query), type its serial in Find a pack by serial on Inventory → Batches and expiry: it shows the product, the batch (linked), its state, the delivery it came in on and the receipt it was sold on.
Voiding a receipt marks its packs Receipt voided, also while their batch is recalled.
Local drug codes
A drug's profile (the product page → Drug card) has a National drug code field in every country, plus the Dubai Drug Code in UAE workspaces and the SFDA registration number in Saudi workspaces (a code already stored stays visible wherever it was recorded). The product import fills them, the till's search and the product search find a drug by them, and they are printed on dispensing labels and in the controlled drugs and prescription register exports.
Not connected yet
Pack serials and drug codes are the information national track-and-trace systems need, but OmniBooks does not send anything to them yet:
- Saudi Arabia: RSD (SFDA track and trace) and Wasfaty e-prescriptions, NPHIES insurance claims;
- UAE: Tatmeen scans, eClaimLink, Shafafiya and Riayati claims, Malaffi and Nabidh records;
- Oman: Dhamani.
Each needs a licence or a certified partner and is planned for when there are pharmacy customers in that country.