Position
Workflow foundation bindings map approved template paths to operational state: visits, encounters, movements, resource allocations, relationships, visibility, reporting, and worklists. The submitted openEHR composition remains the clinical record.
Workflow orchestration is the process layer that controls stages, transitions, task queues, assignments, and completion. Foundation bindings are the projection layer that updates operational state from submitted template fields. Use Workflow Orchestration and Enforcement for the process definition and this page for the field-to-foundation mapping rules.
Automatic context and minimum typing
Published forms should not ask a clinician to re-enter data the platform already knows. AMCDR resolves registered patient name, date of birth, calculated age, sex at birth, preferred language, MRN/EHR identity, active visit and encounter details, admission time, facility, ward/room/bed, payer/coverage, facility currency, default payment method, authenticated performer and capture timestamp through governed foundation bindings.
System identity and provenance values are locked. Context values can be prefilled or selected from valid patient history according to each binding policy. Clinical codes use terminology selectors. Only event-specific observations, decisions and narrative remain manual. Each resolved value records whether it came from active context, foundation/history, terminology, computation or manual override.
The form generator recognises common openEHR aliases such as date_of_birth, age_years, sex_at_birth, admission_datetime, facility, currency and payment_method. Form designers must review generated bindings before publication because similarly named clinical fields can have a different local meaning.
Semantic Studio Surface
Semantic Studio includes Bindings -> Foundation projections. This surface presents the required foundation targets for major clinical workflows and allows implementers to bind deployed template paths without editing raw JSON. When a workflow binding is created, AMCDR stores the mapping in completion_rules.foundation_projection on the workflow step form binding.
The projection catalogue also includes Workflow runtime inputs. Runtime inputs are form fields that drive an action while the workflow is being performed, before or during final composition commit. Examples include registry search, MPI matching, visit opening, encounter creation, task routing, movement recording, medication safety review, laboratory routing, referral destination, birth registration, death documentation, discharge closure, and patient visibility routing.
For templates that create restricted administrative or clinical evidence, configure composition_access_policy in template metadata. This protects the resulting compositions from default lists, direct composition reads, saved-query exports, and AQL access unless the actor has the configured restricted-access role. Use this for client registration evidence, MPI reconciliation records, protected identity workflows, safeguarding templates, or other templates that should not appear in the ordinary patient timeline.
| Area | Purpose | Production rule |
|---|---|---|
| Workflow binding | Connects a template or published form to a workflow definition and step. | Use the workflow step that owns the clinical event, not a generic catch-all step. |
| Foundation projection | Maps template paths to AMCDR foundations such as encounter, movement, resource, relationship, visibility, reporting, and safety. | Map required targets before activating the workflow in production. |
| Clinical composition | Stores the full openEHR clinical record. | The composition remains authoritative. Projections are rebuildable operational state. |
| Monitoring and follow-up | Lifecycle events, HMIS definitions, and clinical metrics track counts, failures, stale samples, and reportable events. | Use Clinical Metrics Registry definitions for births, newborns, deaths, NICU admissions, transfers, and discharge KPIs. |
Foundation Domains
| Foundation | Typical bound targets |
|---|---|
| Patient / EHR | patient id, newborn patient id, temporary identity, deceased identity, EHR context. |
| Relationship registry | mother-child, sibling/twin, guardian, father, next of kin, birth-event relationship links. |
| Visit | visit type, arrival time, admission start, discharge end, disposition, admission source. |
| Encounter | encounter type, start/end time, reason, service, responsible clinician, care pathway. |
| Movement | arrival location, transfer source/destination, ward, place of death, body release status. |
| Resource allocation | ward, room, bed, cot, incubator, destination resource, delivery location. |
| Worklist / queue | triage category, service lane, queue type, queue name, ticket prefix, ticket number, priority rank, handoff status, NICU daily review queue, follow-up tasks. |
| Clinical safety | acuity, isolation, respiratory support, maternity risk, congenital anomaly, resuscitation required. |
| Documents / reports | birth notification number, death certificate number, discharge summary, reporting artifact. |
| Visibility / access | patient release state, clinician review required, withheld from patient, sensitive-domain policy. |
| Reporting / HMIS | birth outcome, cause of death, perinatal flags, facility statistics, HMIS indicator events. |
| Audit / provenance | author, certifier, birth attendant, requesting clinician, source facility, composition UID. |
Workflow Binding Matrix
| Workflow | Required foundation targets | Operational effect |
|---|---|---|
| Workflow runtime inputs | client_registry.search_query, MPI match fields, registry resolution decision, visit/encounter creation inputs, queue target, task priority, movement locations, resource allocation, medication request, lab order, referral destination, birth count/order, death identity status, discharge disposition, patient visibility release state, and composition access policy targets such as composition_access_policy.visibility, composition_access_policy.required_role_keys, and composition_access_policy.aql_protected. | Uses form values to drive workflow actions such as search, match, route, assign, open visit, create encounter, record movement, review medication safety, route lab work, create referral, register birth, document death, close discharge, or restrict the resulting composition before the final composition is committed. |
| Client registration resolution | client_registry.search_query, resolution decision, selected existing client, duplicate candidates, existing EHR, duplicate review flag, duplicate override reason, MPI reconciliation status, patient type, identifier, security classification. | Prevents duplicates, supports existing-client selection, creates MPI review tasks, and preserves registration resolution evidence in the final registration composition. |
| Admission | admission time, admission encounter type, admission source, service, ward/unit, resource, reason, acuity, responsible team, visibility state. | Creates or updates visit, encounter, location allocation, admitted movement, queue routing, and patient workspace context. |
| Transfer | transfer time, transfer type, from/to location, reason, destination resource, receiving service, handoff state, precautions, requesting clinician. | Creates movement event, closes or reassigns resource allocation, creates handoff tasks, and updates movement timeline. |
| Discharge | discharge time, encounter end time, disposition, destination, final diagnosis, discharge medications, follow-up tasks, summary document, release state, reporting event. | Closes encounter or visit, creates discharge movement, prepares summary document, and creates follow-up or referral work. |
| NICU admission | newborn patient, mother patient, birth event, gestational age, birth weight, Apgar, admission reason, care level, incubator/cot, respiratory support, isolation, NICU review queue. | Starts newborn NICU encounter, links mother and birth event, allocates cot/incubator, projects neonatal risk facts, and routes daily review. |
| Maternity workflow | mother patient, pregnancy episode, maternity stage, maternity queue, and optional maternity variables selected by the hospital. | Supports antenatal, maternity triage, labour, emergency obstetric, delivery, postnatal, discharge, and follow-up pathways without forcing one fixed form design. |
| Labour admission | mother patient, pregnancy episode, admission time, gestational age, gravida/para, membrane status, fetal presentation, maternity risk, delivery location, birth attendant, expected number of babies. | Starts maternal labour pathway, prepares delivery context, and seeds newborn candidates for singleton or multiple birth. |
| Emergency arrival | arrival time, arrival mode, patient resolution state, temporary ID, emergency encounter, chief complaint, arrival location, pathway, responsible queue. | Creates emergency visit/encounter, supports unknown arrivals, routes the patient to triage, and updates patient workspace immediately. |
| Emergency triage and acuity | blood pressure, pulse, respiratory rate, temperature, SpO2, pain score, consciousness level, presenting complaint, age risk, danger signs, calculated acuity, nurse override acuity, final acuity, reason for override. | Projects triage facts from the clinical composition, calculates acuity, records authorised overrides, and routes to Red, Orange, Yellow, Green, or Blue priority queue. |
| Priority queue assignment | encounter, queue type, queue name, priority rank, ticket prefix, ticket number, assigned time, assigned user or team, status. | Places the patient in the correct operational queue, supports reusable queue numbers such as E0234, OP0001, and IP0001, and supports re-triage without losing audit history. |
| Neonatal workflow | newborn patient, newborn EHR, mother link, birth event, neonatal assessment, NICU/routine care stage, daily review queue, discharge or follow-up task. | Creates a neonatal care pathway that can bind local newborn, NICU, feeding, sepsis, discharge, and follow-up forms while preserving mother-child relationship links. |
| Death documentation | patient/deceased identity, death time, place of death, certifier, cause, manner, pregnancy/neonatal flag, identity status, certificate number, next-of-kin notification, body release status. | Marks known patient deceased, closes active care episodes, creates mortality event, queues reporting, and preserves audit/provenance. |
| Birth workflow | mother patient, maternal encounter, birth time, place of birth, delivery mode, number of babies, birth order, baby sex, birth weight, gestational age, Apgar, live/stillbirth outcome, anomaly flag, resuscitation, attendant, birth notification number. | Creates newborn candidates, runs MPI, creates one patient/EHR per baby, creates mother-child and sibling links, creates newborn/NICU encounters, links compositions, and queues birth reporting. |
Emergency Triage Queue Projection
Triage forms save clinical observations as openEHR compositions. Foundation bindings supply the operational values needed to sort queues and route the patient.
| Projected fact | Purpose | Example |
|---|---|---|
triage.final_acuity | Final clinical urgency after calculated acuity and any authorised nurse override. | Red, Orange, Yellow, Green, Blue. |
triage.reason_for_override | Explains why the nurse changed the calculated acuity. | Clinical judgement: patient deteriorating. |
queue.queue_type | Defines the queue model used by worklists. | clinical_priority |
queue.priority_rank | Sorts urgent patients ahead of less urgent patients. | 1 for Red, 2 for Orange. |
queue.ticket_number | Local operational queue number, not a patient identifier. | E0234 |
queue.status | Shows whether the patient is waiting, called, in progress, completed, or requeued. | waiting |
Neonatal And Multiple-Birth Rules
- Mother and baby are separate patients and separate EHRs.
- Twins, triplets, and other multiple births each receive their own patient, EHR, newborn encounter, observations, medications, and follow-up.
- Birth order is required for multiple births and drives sibling relationship creation.
- Mother-child links are relationship registry records, not shared EHR records.
- NICU observations remain openEHR compositions. Operational projections must expose only the facts required for safety, queues, allocation, reporting, and navigation.
- Neonatal variables 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 are optional binding targets. Hospitals select only the variables required by their local neonatal forms, stage rules, queues, and reporting policy.
- Once an optional neonatal variable is added to a foundation projection, it is removed from the available-variable dropdown so the same variable cannot be bound twice in the same projection.
Maternity Workflow Variables
Maternity variables are configurable binding targets, not mandatory platform fields. Hospitals can add only the variables that match their local antenatal, maternity triage, labour, emergency obstetric, delivery, and postnatal forms.
Common optional 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. Once a variable is added to a projection, it is removed from the available-variable dropdown so the same maternity variable cannot be bound twice in the same projection.
Configured Encounter Types
AMCDR seeds configurable encounter types for standard admission, transfer, discharge, emergency arrival, labour admission, labour and delivery, newborn assessment, neonatal admission/follow-up, NICU admission, NICU daily review, NICU transfer, NICU discharge, birth notification, death notification, death certification, neonatal death, maternal death, stillbirth, and fetal death. Administrators extend or deactivate catalogue rows according to deployment policy.
Monitoring And KPIs
Workflow foundation bindings must be paired with lifecycle monitoring, Clinical Fact and Guideline Guardrail Workflows, and Clinical Metrics Registry definitions. Foundation bindings identify where clinical facts come from. Fact workflows derive values and trigger alerts, tasks, or review events. Metrics definitions expose safe aggregate counts. Common production indicators include births, newborns, multiple births, NICU admissions, NICU discharges, neonatal deaths, maternal deaths, emergency arrivals, admissions, transfers, discharges, and stale or failed clinical metric samples. Prometheus and Grafana must consume aggregate samples only; they must not receive patient identifiers, raw AQL rows, composition payloads, or clinical values as labels.
Operational Checklist
- Publish the openEHR template and form in Semantic Studio.
- Create or select the workflow definition and workflow step.
- Open Bindings and choose the correct foundation projection blueprint.
- Bind all required template paths to the listed foundation targets.
- Create the workflow binding and review the coverage summary.
- Create Clinical Fact and Guideline Guardrail Workflows for derived facts and rule-driven actions such as feeding review, critical lab follow-up, falls review, and discharge follow-up.
- Create HMIS or clinical metric definitions for the resulting aggregate indicators.
- Test singleton birth, twins, unknown emergency arrival, admission, transfer, discharge, death documentation, NICU admission, and NICU discharge before production activation.