System boundaries
| System | Owns | Does not own |
|---|---|---|
| AMCDR/openEHR | Medication orders, clinical indications, dispense/administer facts, reconciliation, discharge plan and provenance. | Warehouse quantity as a clinical composition. |
| Medication catalogue/formulary | Generic/brand identity, dose form, strength, route, unit, RxNorm/ATC/local mappings, GTIN, manufacturer, pack and safety flags. | Patient-specific medication truth or prices. |
| MediServe | Configured external pharmacy/medication workflow launched with governed patient and user context. | Independent patient identity or a replacement clinical record. |
| Inventory/logistics | Location stock, lot/batch, expiry, movements, quantities, acquisition and cold-chain context. | Prescription intent or invoice state. |
| Finance | Dispense/administration charge definition, tariff snapshot, account, invoice and payment. | Drug terminology or stock balance. |
Configure before clinical use
- Connect AmyTerm or approved terminology sources for medication concepts, routes, dose forms and units.
- Create/import products with stable codes, ingredient/generic identity, strength, dose form, route, unit, RxNorm/ATC/local mapping and barcode/GTIN where available.
- Record controlled-drug schedule, high-alert, look-alike/sound-alike and cold-chain flags.
- Approve formulary status and restrictions separately from product identity.
- Configure clinical safety, allergy/interaction services, workflow/template bindings, stock locations and permitted pharmacy roles.
- If billing is enabled, map product codes to
medication_dispenseormedication_administrationcharge definitions and active tariffs.
Medication lifecycle
- Prescribe: capture patient, encounter, medication, indication, dose, route, frequency, duration and author.
- Review: evaluate allergies, interactions, duplicate therapy, contraindications, formulary and dose context. Record warnings, decisions and override rationale.
- Verify and dispense: confirm product, patient, prescription, quantity, substitution reason, dispenser and lot/batch/expiry where inventory provides them.
- Administer: use medication-administration rights and patient/product barcode confirmation where enabled; record dose, route, time, performer and omission/refusal reason.
- Reconcile: compare home, admission, transfer and discharge medication lists; resolve continue/change/stop decisions.
- Discharge: publish an understandable current plan with instructions, duration, warnings and follow-up.
MediServe integration
Open MediServe from the medication workspace. AMCDR issues a short-lived launch token with the authorized user and patient context. The integration must validate issuer, audience, expiry, tenant and subject; use MPI-resolved patient identity; return stable workflow references; and write clinical outcomes back through governed AMCDR APIs. If MediServe is unavailable, AMCDR should expose a clear dependency state without losing existing canonical medication records.
Stock and financial integration
After the clinical transaction succeeds, dispensing can create an inventory movement and a billable event. Use the same stable dispense or administration source ID for retries to prevent duplicates. Reconcile stock or billing failures separately while retaining the completed clinical record.
Acceptance test
- Create a synthetic product, approve formulary status and verify AmyTerm-coded route/unit bindings.
- Prescribe for a synthetic patient with an allergy or interaction; verify warning, decision and override audit.
- Dispense with patient/product confirmation and lot/expiry, then verify the canonical record and stock movement.
- Administer and reconcile through discharge; verify timeline and current medication plan.
- With finance enabled, verify one charge per source event and correct reconciliation behavior when pricing is missing.
- Verify controlled/high-alert workflows, separation of duties and unauthorized-route denial.
See Medication Products and Clinical Safety for safety-sidecar details and Finance and Billing for tariff and revenue-cycle controls.