MOD CLI 009 RXV
Domain specifications / D03-CLI / 5. Detailed Functional Requirements / 5.9 Module Specification: Medication Prescribing and Pharmacy Verification Workflow
5.9 Module Specification: Medication Prescribing and Pharmacy Verification Workflow¶
5.9.1 Module Overview¶
Module ID: MOD-CLI-009
Purpose:
Capture complete medication orders, run the pharmacist verification and dispensing workflow against the medication catalogue and formulary rules, and control unit-dose identification, cabinet release and controlled substances. Under the working boundary position this domain owns the medication order, verification, dispense and return records; Domain 5 owns the stock ledger and pharmacy billing.
Business Capabilities: - CAP-CLI-009 Prescribing and pharmacy workflow
Primary Actors: - ACT-CLI-001, ACT-CLI-003, ACT-CLI-004, ACT-CLI-015, ACT-CLI-010
Dependencies: - MOD-CLI-006, MOD-CLI-007, MOD-CLI-011; Domain 5 (stock availability, issue, return, lot and expiry balances); Domain 10 (medication master data, terminology); Domain 2 (ADC connectivity)
5.9.2 Functional Area: Prescribing¶
Functional Area ID: FA-CLI-019
Description:
Content and validation of medication orders and prescriptions.
Scope: - Included: inpatient orders, discharge and outpatient prescriptions, PRN, one-time, continuous and tapering regimens. - Excluded: formulary policy decisions (hospital governance).
5.9.2a Functional Area: Pharmacy Verification and Dispensing¶
Functional Area ID: FA-CLI-020
Description:
Verification queue, formulary rules, substitution, compounding where applicable, dispensing and returns.
Scope: - Included: clinical verification, dispense and return records, labels, medication catalogue clinical content and formulary status. - Excluded: stock ledger, lot and expiry balances, replenishment, procurement, pharmacy billing (Domain 5).
5.9.2b Functional Area: Unit-Dose Identification, Cabinets and Controlled Substances¶
Functional Area ID: FA-CLI-021
Description:
GS1 barcode parsing, ADC release tied to verified orders, controlled-substance reconciliation.
Scope: - Included: barcode validation, ADC transaction records, controlled-substance issue, administration, return and wastage records. - Excluded: ADC device ownership and physical stock counts as ledger entries (Domain 5); ADC transport connectivity (Domain 2).
5.9.3 Detailed Requirements¶
Requirement FR-CLI-RXV-001: Medication Prescribing¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-CLI-RXV-001 |
| Requirement Name | Medication prescribing |
| Requirement Type | Functional |
| Module | Medication Prescribing and Pharmacy Verification Workflow |
| Functional Area | FA-CLI-019 Prescribing |
| Priority | Must |
| Criticality | Critical |
| Requirement Status | Draft |
| Source | PRS MED-002; contributes to ORD-001, ORD-002, CLN-001 |
| Related Business Rule | BR-CLI-008, BR-CLI-011, BR-CLI-015, BR-CLI-024 |
| Related Workflow | WF-CLI-003, WF-CLI-002 |
1. Requirement Statement
The system shall capture, for every medication order and prescription, the drug or product, dose, unit, route, frequency, duration, quantity, indication, start and stop, prescriber and pharmacy instructions, and shall enforce the attributes required for the medication type before the order can be signed.
2. Business Rationale
Incomplete or ambiguous medication orders are a primary cause of medication error. Structured, validated orders are also the precondition for clinical checks, verification and bedside matching.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| ACT-CLI-001 | Create / sign / modify / hold / discontinue | Prescribing privileges; additional privileges for restricted medication classes |
| ACT-CLI-012 | Create draft; sign subject to co-signature | Policy |
| ACT-CLI-003 | Modify within substitution policy (FR-CLI-RXV-002) | Policy |
4. Preconditions - The medication is active in the medication catalogue; the encounter permits ordering.
5. Trigger - Prescriber selects a medication, applies an order set, or acts on a reconciliation decision.
6. Functional Behaviour
- The system shall offer medications from the catalogue with formulary status and available forms and strengths, and shall build the order from structured elements: product or ingredient with strength and form, dose and unit, route, frequency or timing (including PRN with indication, one-time, continuous infusion with rate, and tapering sequences), duration or stop criteria, quantity (for dispensing), indication, start and stop times, and pharmacy and administration instructions.
- Required attributes shall be configured per medication type (for example PRN indication and maximum daily dose; infusion rate and concentration; weight for weight-based dosing) and enforced at signing.
- Dose entry shall support calculated doses (per weight or body surface area) showing inputs, their dates and the calculation.
- The order shall follow FR-CLI-CPO-001 and FR-CLI-ORD-002: medication safety checks run at selection and signing (FR-CLI-CDS-003), and the signed order enters Pending Verification unless the catalogue or an approved exemption states otherwise.
- Non-formulary selection shall be possible only by the configured route (for example with justification and pharmacist review), never silently.
- Discharge and outpatient prescriptions shall additionally capture quantity to supply and repeats where local rules allow.
- The system shall publish MedicationOrdered on signing.
- For the Indonesia profile, every prescription shall carry the content required by the hospital pharmacy service standard (Permenkes 72/2016): patient name, medical record number, date of birth or age, sex, weight for children; prescriber name, practice licence number (SIP) from the Domain 10 practitioner registry and electronic signature; date; unit or clinic; and for each item the product with strength and form, quantity and directions. Each item carries its KFA code from the catalogue. Narcotics and psychotropics (Permenkes 5/2023) need the restricted-class privilege, allow no repeats, and are filled only by the hospital pharmacy.
- A discharge or outpatient prescription shall be marked for the hospital pharmacy or an external pharmacy at signing (CFG-CLI-037). For an external pharmacy, the signed prescription is made available to Domain 6, which submits it to SATUSEHAT as a MedicationRequest with KFA codes through the national record exchange (IF-HIM-006), and a printed prescription (resep) is given to the patient. The print carries a QR code with the prescription identifier, the SATUSEHAT MedicationRequest identifier once assigned, and a verification code over the signed content. The print is the fallback when SATUSEHAT is unavailable or the pharmacy does not read national e-prescriptions. Narcotics and psychotropics are never marked for an external pharmacy. Dispensing by an external pharmacy is not tracked by this domain; where SATUSEHAT returns a MedicationDispense it enters as external information through IF-CLI-008.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Drug / product | Coded | Yes | Active catalogue item | |
| Dose and unit | Quantity (UCUM) | Yes | Unit permitted for the product; numeric format rules | |
| Route | Code | Yes | Permitted for the product form | |
| Frequency / timing | Structured | Yes | Valid timing; PRN requires indication | |
| Duration / stop | Duration or date/time | Per medication type | Stop after start | |
| Quantity | Quantity | For prescriptions to be dispensed | Positive | |
| Indication | Coded / text | Per medication type | ||
| Start time | Date/time | Yes | ||
| Prescriber | Practitioner reference | Yes | Active prescribing privileges | |
| Pharmacy instructions | Text | No | Length | |
| Fulfilment channel | Code | For discharge and outpatient prescriptions | Hospital pharmacy or external pharmacy; external not allowed for narcotics and psychotropics | CFG-CLI-037 |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-RXV-001-01 | Dose and unit are stored as entered and as normalized values; display avoids ambiguous formats (PRS 11.3 consistent units) | Unambiguous dose |
| PR-RXV-001-02 | A calculated dose records the weight or other input value and its observation time | Reproducible dose basis |
| PR-RXV-001-03 | Modifying dose, route or frequency of a verified order returns it to Pending Verification | Changes are re-verified |
| PR-RXV-001-04 | A prescription cannot be signed without the Indonesia profile content of part 6.8, and an item without a KFA code cannot be sent to an external pharmacy | Prescriptions meet national content and exchange rules |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Medication order | Order record | Pharmacy queue; eMAR after verification | |
| MedicationOrdered | Event | Domains 5, 8; MOD-CLI-008 | EVT-CLI-017 |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Required attribute missing for medication type | Type rule | Block signing | Field-level message |
| Route not valid for form | Catalogue rule | Reject | "Route not valid for this product" |
| Weight required but missing or stale | Data check | No silent calculation; require input (BR-CLI-026) | "No current weight" |
| Non-formulary item | Formulary status | Apply configured route | "Non-formulary: justification required" |
| Narcotic or psychotropic marked for an external pharmacy | Restricted class | Block; channel set to hospital pharmacy | "Narcotics and psychotropics are filled by the hospital pharmacy" |
| Prescriber licence number missing or expired | Practitioner registry | Block signing | "No valid practice licence (SIP) on record" |
11. State and Lifecycle Behaviour
Medication orders use the order state model (section 4.3) with Pending Verification.
12. Audit Requirements
- Order create, sign, modify, hold, discontinue; CDS decisions linked; non-formulary justification.
13. Security and Privacy Requirements
- Restricted medication classes (for example controlled substances) require additional privileges. Classification: Sensitive.
14. Acceptance Criteria
- AC-01: Given a medication type with configured required attributes, when an order omits one, then signing is blocked (PRS MED-002 acceptance).
- AC-02: Given a signed medication order, when viewed, then drug or product, dose, unit, route, frequency, duration, quantity, indication, start/stop, prescriber and pharmacy instructions are present as applicable.
- AC-03: Given a verified order whose dose is modified, when the change is signed, then the order returns to Pending Verification.
- AC-04: Given a discharge prescription marked for an external pharmacy, when it is signed, then it is offered to Domain 6 for SATUSEHAT submission as a MedicationRequest with KFA codes, and the printed prescription carries the QR code.
- AC-05: Given a discharge prescription with a narcotic, when the prescriber chooses an external pharmacy, then the choice is refused and the item stays with the hospital pharmacy.
15. Dependencies and Integration
- Upstream dependencies: medication catalogue (FR-CLI-RXV-002), MOD-CLI-011, MOD-CLI-004 (weight).
- Downstream dependencies: MOD-CLI-010, MOD-CLI-008, Domain 5.
- Required events or APIs: IF-CLI-002; EVT-CLI-017.
16. Open Questions / Assumptions
- Indonesia prescription content and controlled-substance prescribing rules are set in part 6.8 (GAP-CLI-002, closed). External pharmacy fulfilment is set in part 6.9 (GAP-CLI-008, closed).
Requirement FR-CLI-RXV-002: Pharmacy Verification, Formulary, Substitution, Dispensing and Returns¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-CLI-RXV-002 |
| Requirement Name | Pharmacy verification, formulary, substitution, dispensing and returns |
| Requirement Type | Functional |
| Module | Medication Prescribing and Pharmacy Verification Workflow |
| Functional Area | FA-CLI-020 Pharmacy verification and dispensing |
| Priority | Must (MED-005, ANC-006); terminology binding of the catalogue per ANC-007 is Should |
| Criticality | Critical |
| Requirement Status | Draft |
| Source | PRS MED-005, ANC-006, ANC-007; PRS 11.2 (formulary substitution); contributes to FIN-001, FIN-005, DAT-001 |
| Related Business Rule | BR-CLI-015, BR-CLI-016, BR-CLI-021, BR-CLI-037 |
| Related Workflow | WF-CLI-003 |
1. Requirement Statement
The system shall support the pharmacy workflow of medication catalogue and formulary management, clinical order verification, substitution, compounding where applicable, unit-dose packaging, dispensing and returns, such that every dispense reconciles to a valid verified order and to an inventory movement in the Domain 5 stock ledger.
2. Business Rationale
Pharmacist verification is an independent safety check between prescribing and administration. Reconciling dispensing to both the order and the stock movement prevents diversion, unbilled supply and administration of unverified medication.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| ACT-CLI-003 | Verify, return to prescriber, substitute per policy, approve dispense, approve return (accept the returned item back to stock or to waste) | Registered pharmacist |
| ACT-CLI-004 | Prepare, scan, label, record dispense and return; receive returns recorded by nurses | Under pharmacist supervision; final check per policy |
| ACT-CLI-002 | Record medication returned to pharmacy on the eMAR (FR-CLI-MAR-001) | Patient's dispensed medication only |
| ACT-CLI-010 | Read dispense, return and controlled-substance records on UI-CLI-012 | Medication safety review |
| ACT-CLI-008 with pharmacy lead | Create / Update medication catalogue and formulary entries | On UI-CLI-020 from stage 4; approval by pharmacy governance (ACT-CLI-009, pharmacy lead); the approver is not the author |
4. Preconditions - A medication order in Pending Verification; for dispensing, an Active (verified) order.
5. Trigger - MedicationOrdered; pharmacist opens the queue; dispense or return is initiated.
6. Functional Behaviour
- The medication catalogue shall hold, for each medication item, ingredient, strength, form, package, routes, formulary status, restrictions, substitution rules, high-alert and controlled-substance flags and dispensing units, and should bind items to RxNorm and ATC identifiers or jurisdictionally approved equivalents with versioned mappings that distinguish ingredient, strength, form and package. Catalogue entries reference the Domain 10 medication master and the Domain 5 inventory item.
- The verification queue shall list orders pending verification with urgency, due time of first dose, patient location and alert indicators, and shall be sortable and filterable; ageing beyond threshold shall be highlighted.
- The verification view shall show the order with the patient context needed for verification: allergies, weight, relevant laboratory results with dates, active medications, diagnoses and the CDS alerts and overrides recorded at prescribing.
- The pharmacist shall verify, verify with a permitted substitution (recording original and substituted items and the rule applied), or return the order to the prescriber with a query; returned orders notify the prescriber and are not dispensable.
- Verification shall set the order Active, trigger eMAR schedule generation and publish MedicationVerified.
- Dispensing shall be recorded against a verified order on UI-CLI-012: product scan with barcode validation (FR-CLI-RXV-003), quantity, lot and expiry as scanned, preparer, checker, label content and destination. The system shall show stock availability from Domain 5, request the issue movement and store the returned stock-movement reference on the dispense. Dispensing never waits for stock: when availability is unavailable, insufficient or zero, the screen shows "Stock not confirmed" and the user continues. A product without a barcode is dispensed by selecting the product from the catalogue, with lot and expiry typed where known, a reason, and a second check by another pharmacy staff member; the dispense is marked "Not scanned".
- Compounded preparations, where applicable, shall record ingredients with lots, the preparation worksheet reference, the preparer and the checker.
- Returns shall be recorded against the original dispense with quantity, reason and condition, and shall request a return movement from Domain 5. A return recorded by a nurse on the eMAR as "Returned to pharmacy" is received on UI-CLI-012; the pharmacist approves it by accepting the returned item back to stock or to waste.
- If Domain 5 is unavailable, or has not completed the posting, dispensing against a verified order shall proceed with the status "Stock posting pending" and shall be reconciled when the service recovers. Pending postings are reconciled on the Domain 5 console UI-FIN-017; UI-CLI-012 shows the status per dispense with a link there.
- The system shall publish MedicationDispensed and MedicationReturned.
- Segregation of duties (set 17 Nov 2026, Domain 10 rule 2). The prescriber of a medication order shall not verify or dispense the same order. The authorization decision request for verify and for dispense shall carry the prescriber of the order (the signing practitioner of the current order version) as the earlier actor. The Domain 10 decision service refuses the action when the requesting user is that prescriber. The refusal is shown with its reason and audited; another pharmacist completes the step.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Order identifier | Identifier | Yes | Pending Verification (verify) or Active (dispense) | |
| Verification decision | Code | Yes | verify, verify-with-substitution, return | |
| Substituted item and rule | Catalogue reference; rule reference | For substitution | Permitted by rule | |
| Query text | Text | For return | Non-empty | |
| Scanned product data | GS1 element string | For dispense where barcoded | FR-CLI-RXV-003 | GTIN, lot, expiry |
| Selected product, reason and second checker | Catalogue reference; code; user | For a product without a barcode | Second checker differs from the preparer | Lot and expiry typed where known |
| Quantity dispensed | Quantity | Yes | Does not exceed ordered or permitted supply | |
| Checker | User | Per policy | Different from preparer where required | |
| Return quantity and reason | Quantity; code | For return | Not more than dispensed |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-RXV-002-01 | A dispense cannot be recorded against an order that is not Active, or that has changed since preparation started | Dispense matches the current order |
| PR-RXV-002-02 | Scanned product must match the ordered or substituted item | Wrong-product dispensing blocked |
| PR-RXV-002-03 | Stock is never decremented in this domain; the ledger entry is Domain 5's and is referenced | One stock ledger |
| PR-RXV-002-04 | Substitution outside the configured rules requires prescriber approval (order modification) | Governed substitution |
| PR-RXV-002-05 | Verify and dispense send the prescriber of the order in the authorization decision request; the decision is Deny when the user is that prescriber (D10 segregation-of-duties rule 2) | Prescriber never verifies or dispenses own order |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Verification record | Order event | Prescriber, nurse, record | |
| Dispense record and label | Record; printed label | Ward / patient | |
| Stock issue / return request | API command | Domain 5 | IF-CLI-006 |
| MedicationVerified / MedicationDispensed / MedicationReturned | Events | Domains 5, 8; MOD-CLI-010 | EVT-CLI-018, EVT-CLI-019, EVT-CLI-023 |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Scanned product does not match order | Product match | Block | "Product does not match order" |
| Insufficient or zero stock reported | Domain 5 response | Record the dispense; Domain 5 raises a stock exception | "Stock not confirmed"; the user continues |
| Domain 5 unavailable, or posting not completed | Timeout or no posting reference | Record dispense with stock posting pending; listed on UI-FIN-017 | "Stock posting pending" indicator |
| Product without a barcode, no second checker | Second-check rule | Do not record dispense | "A different checker is required" |
| Order changed during preparation | Version check | Cancel preparation; show change | "Order has changed" |
| Pharmacist is the prescriber of the order | Authorization decision (segregation of duties) | Refuse verify or dispense; audit the Deny | "You prescribed this order. Another pharmacist must verify or dispense it" |
11. State and Lifecycle Behaviour
Order: Pending Verification to Active or returned to Draft. Dispense: Preparing, Dispensed, Returned, Cancelled (section 4.3).
12. Audit Requirements
- Verification, substitution, return-to-prescriber, dispense, check, return, and stock-posting reconciliation with users, times, lot and expiry.
13. Security and Privacy Requirements
- Verification restricted to pharmacists; preparer and checker separation enforced where configured. Classification: Sensitive.
14. Acceptance Criteria
- AC-01: Given a dispensed item, when reconciliation is run, then the dispense reconciles against a valid order and an inventory movement (PRS MED-005 acceptance).
- AC-02: Given a medication item, when its lifecycle is traced, then it reconciles to CPOE, dispensing and the stock ledger (PRS ANC-006 acceptance).
- AC-03: Given catalogue mappings, when reviewed, then they are versioned and distinguish ingredient, strength, form and package (PRS ANC-007 acceptance).
- AC-04: Given an unverified order, when dispensing is attempted, then it is blocked unless an approved exemption applies.
- AC-05: Given Domain 5 is unavailable, when a verified order is dispensed, then the dispense is recorded, flagged pending and reconciled after recovery.
- AC-06: Given Domain 5 reports insufficient stock, when a verified order is dispensed, then the dispense is recorded with "Stock not confirmed" and Domain 5 raises a stock exception.
- AC-07: Given a pharmacist who signed a medication order as prescriber, when the same person attempts to verify or dispense that order, then the action is refused with the segregation-of-duties reason and the Deny is audited.
15. Dependencies and Integration
- Upstream dependencies: FR-CLI-RXV-001; Domain 5 (availability, issue, return); Domain 10 master data.
- Downstream dependencies: MOD-CLI-010; Domain 5 (charge and stock); Domain 8.
- Required events or APIs: IF-CLI-006; EVT-CLI-018, EVT-CLI-019, EVT-CLI-023.
16. Open Questions / Assumptions
- Ownership of formulary, verification, dispensing and stock is an open decision in REF-002; this requirement applies the working position (DEC-CLI-001).
- The PRS wording "stock control" (MED-005) and "inventory" (ANC-006) is satisfied by the interface to the Domain 5 ledger, not by a second ledger here.
Requirement FR-CLI-RXV-003: Unit-Dose Barcode Validation, Dispensing Cabinet Release and Controlled Substances¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-CLI-RXV-003 |
| Requirement Name | Unit-dose barcode validation, dispensing cabinet release and controlled substances |
| Requirement Type | Functional |
| Module | Medication Prescribing and Pharmacy Verification Workflow |
| Functional Area | FA-CLI-021 Unit-dose identification, cabinets and controlled substances |
| Priority | Must (ANC-008, ANC-009, ANC-012); biometric ADC access per ANC-013 is Should |
| Criticality | Critical |
| Requirement Status | Draft |
| Source | PRS ANC-008, ANC-009, ANC-012, ANC-013 |
| Related Business Rule | BR-CLI-015, BR-CLI-020, BR-CLI-021 |
| Related Workflow | WF-CLI-003 |
1. Requirement Statement
The system shall parse and validate GS1 DataMatrix unit-dose barcodes including GTIN, lot or batch and expiry where available and required; shall integrate automated dispensing cabinets through authenticated, auditable interfaces with release tied to a valid order and pharmacy policy; shall reconcile controlled-substance issue, administration, return, container recovery and witnessed wastage according to local law and policy; and may support biometric ADC access where legally approved, without requiring biometric hardware.
2. Business Rationale
Machine-readable product identity makes dispensing and bedside checks reliable; cabinet release against verified orders prevents administration of unverified medication; controlled substances require a complete, witnessed chain of accountability.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| ACT-CLI-015 | Request release; report removal, return, wastage | Mutually authenticated device identity |
| ACT-CLI-002 | Remove against verified order; record return and wastage | Authenticated at the cabinet; witness for controlled substances |
| ACT-CLI-007 or second practitioner | Witness wastage (dual sign-off) | Different user from the primary |
| ACT-CLI-010, ACT-CLI-003 | Review discrepancies |
4. Preconditions - Products carry GS1 identifiers mapped to catalogue items; ADCs are registered and onboarded through Domain 2.
5. Trigger - A product scan at dispensing, cabinet or bedside; an ADC release request; a controlled-substance transaction.
6. Functional Behaviour
- The barcode parser shall decode GS1 element strings, extract GTIN, lot or batch and expiry where present, resolve the GTIN to a catalogue item, and reject malformed codes, unknown products and expired products.
- On an ADC release request the system shall confirm that an Active verified order exists for the patient and item (or that an approved override category applies), and return an allow or deny decision with the order reference; every decision shall be recorded.
- The system shall record each ADC transaction with user, cabinet, pocket, item, quantity, order reference and time, and shall pass the corresponding stock movement to Domain 5 or receive its reference, so that release is reconciled to verified order, user, cabinet, pocket and stock movement. Cabinet releases and transactions are recorded through the interface (IF-CLI-007); they have no screen of their own.
- Override removals (no verified order) shall require a reason from the governed list, shall be limited to configured items and contexts, and shall create a retrospective pharmacist review task. The review is a review item of type "Verification exemption" on UI-CLI-016 (BR-CLI-015). Discrepancies between cabinet transactions and stock are reviewed on UI-FIN-017.
- For controlled substances the system shall record issue, each administration, returns, recovery of physical containers or ampoules where required, and wastage with a witness; it shall compare quantities issued with quantities administered, returned and wasted per patient and per location and shall raise a discrepancy for any difference or for sign-off not completed within the configured time. The controlled-substance transaction record stays in this domain and is shown on UI-CLI-012; discrepancies are reconciled on the Domain 5 console UI-FIN-017, one item per item, location and period.
- Where biometric cabinet access is enabled, an alternative strong authentication path shall always be available.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| GS1 element string | String | Yes for scan | Syntax; GTIN check digit; date validity | |
| Cabinet / pocket | Identifiers | Yes for ADC transactions | Registered cabinet | |
| User identity | Authenticated user | Yes | Unique human identity | |
| Order reference | Identifier | Yes unless override | Active verified order for patient and item | |
| Override reason | Code | For override | Governed list | |
| Wastage quantity and witness | Quantity; user | For wastage | Witness differs from primary |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-RXV-003-01 | Expiry earlier than the current date results in rejection | Expired product not dispensed or administered |
| PR-RXV-003-02 | A release decision is valid for one transaction and a short configured time | No reuse of approvals |
| PR-RXV-003-03 | Controlled-substance balance per issue = administered + returned + wasted; otherwise discrepancy | Complete reconciliation |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Parsed product data | Structured | Dispensing and eMAR functions | Item, lot, expiry |
| Release decision | API response | ADC | IF-CLI-007 |
| Controlled-substance discrepancy | Work item; event | Medication safety officer, pharmacy | EVT-CLI-029 |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Malformed barcode | Syntax check | Reject | "Barcode not readable; use exception procedure" |
| Expired product | Expiry check | Reject | "Product expired" |
| No verified order at cabinet | Order check | Deny, or allow override per policy | "No verified order" |
| Witness same as primary user | Identity check | Reject | "A different witness is required" |
| ADC link unavailable | Connectivity | Cabinet follows its local downtime policy; transactions reconciled on reconnection | Reconciliation worklist |
11. State and Lifecycle Behaviour
Controlled-substance transaction set: Open, Reconciled, Discrepancy, Discrepancy Resolved.
12. Audit Requirements
- Every scan rejection, release decision, override, removal, return, wastage and witness, with user, device and time.
13. Security and Privacy Requirements
- ADC interfaces use authenticated, encrypted system-to-system channels (PRS SEC-018). Biometric data, if used, is subject to privacy impact assessment and is not required by the platform (PRS ANC-013).
14. Acceptance Criteria
- AC-01: Given malformed and expired barcodes, when scanned, then the parser validates product, batch and expiry and rejects them (PRS ANC-008 acceptance).
- AC-02: Given an ADC removal, when reconciled, then it is tied to verified order, user, cabinet, pocket and stock movement (PRS ANC-009 acceptance).
- AC-03: Given a controlled-substance issue with partial administration, when wastage is recorded with a witness, then inventory and administration records reconcile, and dual sign-off and time limits are configurable (PRS ANC-012 acceptance).
- AC-04: Given biometric access enabled, when a user cannot use it, then an alternative strong authentication path is available (PRS ANC-013 acceptance).
15. Dependencies and Integration
- Upstream dependencies: Domain 2 (ADC connectivity, device onboarding), Domain 5 (inventory item mapping, stock movements), Domain 10 (identity).
- Downstream dependencies: MOD-CLI-010; Domain 5; Domain 8.
- Required events or APIs: IF-CLI-006, IF-CLI-007; EVT-CLI-029.
16. Open Questions / Assumptions
- Controlled substances follow Permenkes 5/2023 (GAP-CLI-002, closed). Sign-off and counts are set in CFG-CLI-012: witness for every administration and waste, a ward count at every shift handover, a daily cabinet count, pharmacist sign-off of a discrepancy within 24 hours, and empty ampoules and containers returned to the pharmacy with the next count. The monthly SIPNAP report (due by the 10th of the following month) is produced by Domain 5 from its stock movements, with this domain's controlled-substance transactions (DE-CLI-021) as the source for issue to patients.
- Whether ADC stock movements are reported to Domain 5 directly by the cabinet integration or relayed by this domain is an interface design decision (DEC-CLI-001).
← 5.8 Module Specification: Medication History and Medication Reconciliation | Contents | Identifier index | 5.10 Module Specification: Medication Administration Record (eMAR) and Barcode Medication Workflows →