Foundation Objects
Identity, encounters, forms, clinical records, reporting, and integrations use separate records linked by stable identifiers.
| Object | Purpose | Examples |
|---|---|---|
| Tenant | Top-level operating boundary. | Ministry of Health, hospital group, national program. |
| Organisation | Legal or operational owner. | Hospital, district health office, NGO provider. |
| Facility | Place where care or reporting occurs. | Hospital, clinic, refugee settlement health post. |
| Service module | Clinical or administrative service area. | Maternity, emergency, inpatient, outpatient, mortality reporting. |
| Patient | Clinical person record used by care workflows. | Known citizen, refugee, newborn, unknown patient after reconciliation. |
| Identity party | Demographic identity and identifiers used by MPI. | National ID, passport, UNHCR ID, MRN, temporary unknown-person ID. |
| EHR | openEHR record container for one patient subject. | Mother EHR, newborn EHR, emergency patient EHR. |
| Visit | Facility attendance or care episode. | OPD visit, emergency attendance, admission visit. |
| Encounter | Clinical or reporting context within the visit or workflow. | Birth event, death notification, emergency encounter, transfer-out encounter. |
| Template | openEHR clinical model. | Delivery summary, newborn assessment, death notification. |
| Form | UI projection over a template. | Birth notification form, triage form, discharge form. |
| Composition | Versioned openEHR clinical record. | Newborn assessment composition, cause-of-death composition. |
| Relationship | Explicit person or record link. | Mother-newborn, guardian, household, emergency contact. |
| EHR context link | Explicit cross-EHR, encounter, and composition relationship. | Mother birth report composition linked to Baby A and Baby B EHRs. |
| Reporting event | Governed output trigger. | Birth notification, death notification, HMIS indicator. |
Core Link Model
Core Classification Catalogues
AMCDR seeds configurable catalogues for foundational workflow typing in the clinical_type_catalogues table. Seeded rows are marked system-defined; authorized administrators can add local rows or deactivate values that are retired from active workflows.
| Catalogue | Purpose |
|---|---|
patient_type | Known citizens, refugees, foreigners, temporary patients, newborns, unknown patients, deceased patients, and demo/synthetic patients. |
identity_party_type | National ID, passport, UNHCR/refugee identifiers, temporary unknown-person identifiers, biometrics, MPI identities, and retired/merged identities. |
ehr_type | General, maternal, newborn, emergency, humanitarian/refugee, unknown, archived, and synthetic EHR containers. |
visit_type | Facility attendance and care episode classifications. |
encounter_type | Clinical, administrative, reporting, MPI, birth, death, emergency, transfer, and workflow context classifications. |
Manage these under Admin -> Clinical Configuration -> Core classification catalogues. Use GET /catalogues and GET /catalogues/{catalogue}/types for runtime reads, and the admin catalogue endpoints for create, update, activate, and deactivate operations.
Encounter Types
Encounter types are configured in Admin -> Clinical Configuration -> Encounter Types. They allow AMCDR to support care workflows, birth and death notification, national reporting, patient timelines, and FHIR Encounter projection without hard-coding those concepts into forms.
| Code | Display | Category | Linked forms | Reporting use |
|---|---|---|---|---|
EMERGENCY_TRIAGE | Emergency Triage | emergency | Triage assessment | Emergency dashboard |
TRANSFER_IN | Transfer In | movement | Referral intake, admission note | Continuity of care |
TRANSFER_OUT | Transfer Out | movement | Transfer summary | Referral reporting |
MATERNAL_DELIVERY | Maternal Delivery Encounter | maternity | Delivery summary | Birth reporting |
NEWBORN_BIRTH | Newborn Birth Encounter | neonatal | Newborn assessment | Birth registration |
DEATH_NOTIFICATION | Death Notification | mortality | Death notification | Civil registration |
UNKNOWN_DECEASED_CASE | Unknown Deceased Case | mortality | Unknown deceased documentation | Mortuary and civil registration |
Ordinary Patient Flow
- Search or register the patient.
- Resolve MPI candidates where needed.
- Create or select the patient EHR.
- Start visit or encounter.
- Select a form linked to the encounter type.
- Submit the form as an openEHR composition.
- Index the patient and composition projection.
- Emit lifecycle or reporting events if configured.
Use Workflow Orchestration and Enforcement to define the workflow stages, transitions, queues, task routing, required forms, completion rules, and monitoring that make these flows operationally enforceable.
Configurable Workflow Presets
AMCDR can seed common workflow patterns while still allowing administrators to create new workflows from scratch. Outpatient, inpatient, emergency, neonatal, vaccination, medication, laboratory, transfer, birth, and death workflows use the same workflow engine: stages, previous-stage links, transitions, queues, tasks, form bindings, completion rules, and audit events.
| Preset | Typical stages | Local configuration |
|---|---|---|
| Outpatient | Registration, queue, triage or vitals, consultation, orders, pharmacy, checkout. | Local clinics bind their own forms and queue numbering such as OP0001. |
| Inpatient | Admission, allocation, ward care, investigation, treatment, transfer, discharge. | Hospitals bind admission, ward round, procedure, discharge, and nursing forms. |
| Emergency | Registration, encounter created, triage queue, triage assessment, acuity calculation, priority queue, consultation, investigation, treatment, discharge. | Emergency units configure Red, Orange, Yellow, Green, and Blue queues with prefixes such as E0234. |
| Maternity | Antenatal review, maternity triage, labour, delivery, postnatal review, discharge or follow-up. | Facilities bind local antenatal, labour, obstetric risk, delivery, postnatal, and emergency obstetric forms. |
| Neonatal | Delivery event, newborn identity, neonatal assessment, NICU or routine care, daily review, discharge or follow-up. | Facilities bind newborn assessment, NICU, feeding, sepsis, discharge, and follow-up forms according to local practice. |
| Vaccination | Registration, eligibility check, vaccination, observation, discharge. | Programmes bind eligibility, consent, immunisation, adverse-event, and follow-up forms. |
Previous-stage links let administrators define the order of stages without hard-coding a single clinical pathway. Queue and decision stages support retriage, priority escalation, task reassignment, and controlled progression through the patient journey.
Emergency And Unknown Patient Flow
Emergency care must allow documentation before complete identity is known. Use a temporary local identifier and an identity status, then reconcile later through MPI. The triage queue, triage assessment, calculated acuity, nurse override, final acuity, and priority queue assignment are operational workflow records linked to the emergency encounter. The clinical history is preserved and the identity update is audited.
Foreigners, Refugees, And Undocumented People
Identity must be stored as structured identifiers even when national identifiers are missing. Supported identifier systems include passport, refugee registration number, UNHCR identifier, humanitarian agency reference, external MPI identifier, facility MRN, and temporary unknown-person identifier.
AMCDR_INTERNAL_MPI_STRONG_IDENTIFIER_SYSTEMS=["mrn","national-id","passport","refugee-registration-number","humanitarian-agency-reference","unhcr","external-mpi"]
Protected Persons And VIP Records
Protected persons are handled through security classifications and security events, not clinical encounter types. VIP and protected records are hidden from general broad patient search, denied access is audited, and break-glass access is time-limited with post-access review. Reclassification never rewrites clinical compositions.
Manage this under Admin -> Platform configuration -> Protected records. Runtime catalogues include security_classification, security_event_type, security_clearance, and protected patient/EHR type extensions. See Protected Records for the full security model and playbooks.
Birth And Newborn Flow
The birth composition subject is normally the newborn. The mother is linked through relationship and context links, not by making the mother the subject of the newborn birth composition. Twins and triplets need separate newborn candidates, patient records, neonatal encounters, and typically separate compositions.
When the mother has a birth report composition, AMCDR creates EHR context links from the mother EHR and birth report composition to each newborn EHR where the workflow is configured to do so. See Relationships and EHR Links for the twin birth pattern and API examples.
Maternity Workflow
A maternity workflow can be created using the same workflow authoring model as outpatient, emergency, and neonatal pathways. The preset supplies a pathway structure, but hospitals decide which forms and variables are used for antenatal review, maternity triage, labour, emergency obstetric review, delivery, postnatal review, discharge, and follow-up.
Optional maternity variables include gestational age, fetal movement, vaginal bleeding, contractions, ruptured membranes, abdominal pain, blood pressure or pre-eclampsia signs, seizures, fetal heart rate, and previous C-section or obstetric risk history. Local teams can add, omit, or adapt these variables according to policy and form design.
Neonatal Workflow
Create a neonatal workflow from a preset, then bind your hospital’s forms for assessment, NICU admission, feeding review, sepsis review, medication, discharge, and follow-up. Keep the newborn’s patient record and EHR separate from the mother’s, with mother-child and sibling relationships recorded as foundation links.
Neonatal variables are configurable, not mandatory. Local teams can add only the variables they use, such as age in hours or days, birth weight, current weight, temperature instability, respiratory distress, feeding difficulty, jaundice, hypoglycaemia risk, lethargy, seizures, oxygen saturation, Apgar history, and prematurity. Variables already selected for a projection are removed from the available-variable list to prevent duplicate bindings.
Death Workflow
Unknown deceased workflows use a temporary deceased identity instead of a confirmed patient ID. Later identification links the temporary identity to a confirmed person while preserving the original death record and audit history.
Transfers
Transfers are movement workflows. They preserve the previous care context and create the receiving context instead of overwriting history.
Internal transfer
Current encounter -> transfer order -> ward or bed movement -> receiving encounter -> handover composition.
External outgoing transfer
Source facility encounter -> transfer summary -> outgoing transfer queue -> destination acceptance -> transport and handoff.
External incoming transfer
Partner facility transfer request -> incoming transfer queue -> MPI review -> acceptance -> receiving visit and encounter.
Networked platforms
Connected AMCDR instances can exchange transfer notifications and referral packages, while each receiving site controls acceptance, identity matching, local encounter creation, and audit.
Reporting
Transfer reporting is a projection or event over the clinical record. It must not replace the source composition.
Form And Composition Rule
Templates define the clinical content; forms provide the interface for capturing it. Saved clinical data becomes a versioned openEHR composition.
Template field path -> Form field -> Captured value -> openEHR composition path
For portable forms and external CDR submissions, read Portable Forms and MPI, FHIR, and External CDRs.