Clinical Use

Patient Journey

Clinical journey guide covering registration, EHR creation, visits, encounters, transfers, relationships, patient timeline review, clinical capture, reporting, and exchange.

Scope

Relationships

Mother-child, transfer, referral, and cross-EHR links used from the patient workspace.

Outpatient Care

Registration, visit creation, triage, consultation, orders, pharmacy, close-out, and AQL reporting.

Inpatient Care

Admission, bed allocation, ward or ICU care, movements, discharge, and clinical document reporting.

Emergency Care

Temporary identity, encounter creation, triage queue, acuity calculation, priority routing, treatment, discharge, and later MPI reconciliation.

Transfers

Internal ward movement, ICU/theatre movement, external facility transfer, referral, and relationship links.

AQL And Reports

AQL patterns for outpatient, inpatient, transfer-source, and receiving-EHR clinical documents.

Journey Model

Start by registering the patient and creating an EHR. A visit or encounter places their care in a queue, ward, department, bed, or referral pathway. Relationship links connect related records, such as a mother and newborn or a sending and receiving encounter.

Where To Find Information

DemographicsPatient identity, contact points, identifiers, address, gender, and related-person links.
RelationshipsMother-child, guardian, referral, transfer, and cross-EHR links that connect patient records, encounters, and compositions. See Relationships and EHR Links.
Visits and encountersArrival, active care, transfer, discharge, cancellation, location movement, and encounter close events.
Patient summaryCurrent problems, allergies, medicines, care plans, latest observations, documents, and recent compositions.
Shared health recordCurrent summary, encounter summary, annual snapshots, population SHR/IPS retrieval, timeline query, documents, FHIR output, and IPS-style exchange. See Shared Health Record and IPS.
Clinical capturePublished forms selected by service module, workflow, encounter type, and user role.
Documents and mediaPatient-linked artifacts such as summaries, reports, attachments, and document references.
HMIS patient contextPatient-specific indicators or query outputs where reporting is filtered to one patient.

Shared Health Record In The Patient Journey

The patient workspace uses the shared health record as the patient-wide read model. A single care team view presents data captured through multiple openEHR templates: outpatient consultation, triage, medication list, allergy list, lab results, discharge summary, birth record, death notification, documents, and relationship links.

The shared record does not rewrite the original compositions. It summarizes, filters, and projects them for care, reporting, FHIR output, XML output, and IPS-style continuity summaries.

GET /records/patient/{patient_id}/summary/current
GET /records/patient/{patient_id}/timeline/query?page=1&page_size=25
GET /records/patient/{patient_id}/summary/current?format=fhir
GET /records/patients/summary?profile=ips&include=index&date_from=2026-01-01&date_to=2026-06-30
GET /fhir/Patient/{patient_id}/$everything

Using Relationships From The Patient Journey

Use relationships when the clinical question crosses one patient or one EHR boundary. The workspace must not require clinicians to remember identifiers manually; it presents relationship chips or a related-record panel that opens the linked patient, EHR, encounter, or composition.

User questionRelationship lookupClinical action
Which newborns belong to this mother’s delivery?GET /ehrs/{mother_ehr_id}/context-links?direction=source&context_type=birth_eventOpen Baby A or Baby B chart from the mother’s birth report.
Which mother and delivery report does this newborn belong to?GET /ehrs/{newborn_ehr_id}/context-links?direction=target&context_type=birth_eventOpen the mother’s EHR and delivery composition from the newborn chart.
Which records are connected to this patient?GET /patients/{patient_id}/ehr-context-linksDisplay related people, related EHRs, source reports, and target reports.
Which records belong to this birth event?GET /birth-workflows/{birth_event_id}/ehr-linksReview all mother-newborn EHR links before completing the workflow.

Reporting With Relationships

For reports, use relationship links to identify the patients or care context, then retrieve their clinical facts with AQL.

Report: mother and twins birth pack

1. Relationship lookup:
   GET /birth-workflows/{birth_event_id}/ehr-links

2. Use returned links:
   mother_ehr_id
   mother_birth_report_composition_uid
   baby_a_ehr_id
   baby_b_ehr_id

3. AQL:
   Query the birth report, newborn admission, NICU admission,
   immunisation, diagnosis, discharge, or transfer compositions.

4. Output:
   Mother summary + delivery report + Baby A clinical records + Baby B clinical records.

Community Health Journey

Community Health is an optional service module. It uses the existing Community Health Information System pack entry and remains hidden unless community_health is enabled. The foundation remains openEHR-template-first: field clinical records are submitted through published forms and stored as compositions.

Operational objectStored asClinical link
Household and household membersCommunity operational tablesMember may reference patient/person/client identity.
CHW task and follow-up queueCommunity operational task tableMay carry template_id, form_key, and composition_uid.
Home visit, screening, pregnancy, newborn, growth, nutrition follow-upCommunity visit projectionClinical facts are submitted as openEHR compositions.
Campaigns and outreach coverageOperational campaign recordsClinical campaign encounters still use template-derived forms.
Community referralOperational referral recordReferral note or assessment is linked by composition UID.
Offline drafts and sync queueOperational sync tablesQueued drafts reference form/template metadata until composition commit.
GET /community/health/status
POST /community/households
POST /community/tasks
POST /community/visits
POST /community/referrals
POST /community/sync/push

Do not embed clinical payloads inside operational Community Health records. Use the form runtime to submit the clinical composition, then link the operational record to the resulting composition_uid.

Outpatient Journey

Outpatient care is typically a short visit with one or more encounters: registration, triage or vitals, consultation, diagnostic order, pharmacy, and checkout. The visit groups the attendance; encounters group the clinical or operational steps. Queue numbering can use local prefixes such as OP0001 for outpatient service lanes.

Outpatient flow
Register / find patient
->
Outpatient visit
->
Triage encounter
->
Consultation
->
Orders / pharmacy
->
Close visit
POST /workflows/visits
{
  "patient_id": "patient-id",
  "visit_type": "outpatient",
  "visit_status": "arrived",
  "facility_id": "facility-id"
}
POST /workflows/encounters
{
  "patient_id": "patient-id",
  "visit_id": "visit-id",
  "encounter_type": "clinical_consultation",
  "encounter_status": "in-progress",
  "class_code": "AMB"
}

Use AQL to report outpatient consultation documents after the compositions exist.

SELECT
  e/ehr_id/value AS ehr_id,
  c/uid/value AS composition_uid,
  c/name/value AS document_name,
  c/context/start_time/value AS consultation_time
FROM EHR e
CONTAINS COMPOSITION c
WHERE c/archetype_details/template_id/value MATCHES {
  'outpatient_consultation.v1',
  'triage_assessment.v1'
}
ORDER BY c/context/start_time/value DESC

Inpatient Journey

Inpatient care is a longer episode where bed, ward, and service location matter. The visit is commonly inpatient; encounters represent admission, ward round, procedure, ICU, transfer, discharge, or death certification. Queue numbering can use prefixes such as IP0001 for admission, ward, or discharge queues.

Inpatient flow
Admission encounter
->
Bed allocation
->
Ward / ICU care
->
Movement or transfer
->
Discharge summary
POST /workflows/visits
{
  "patient_id": "patient-id",
  "visit_type": "inpatient",
  "visit_status": "arrived",
  "facility_id": "facility-id"
}
POST /workflows/encounters
{
  "patient_id": "patient-id",
  "visit_id": "visit-id",
  "encounter_type": "admission",
  "encounter_status": "in-progress",
  "class_code": "IMP",
  "context": {
    "admitting_service": "medicine",
    "admission_source": "emergency"
  }
}
POST /workflows/allocations
{
  "resource_id": "bed-or-ward-resource-id",
  "patient_id": "patient-id",
  "visit_id": "visit-id",
  "encounter_id": "admission-encounter-id",
  "allocation_status": "active",
  "details": {
    "reason": "Initial admission bed"
  }
}

Use AQL to retrieve admission and discharge clinical documents for an inpatient episode.

SELECT
  e/ehr_id/value AS ehr_id,
  c/uid/value AS composition_uid,
  c/name/value AS document_name,
  c/archetype_details/template_id/value AS template_id,
  c/context/start_time/value AS recorded_at
FROM EHR e
CONTAINS COMPOSITION c
WHERE e/ehr_id/value = 'patient-ehr-id'
AND c/archetype_details/template_id/value MATCHES {
  'admission_note.v1',
  'ward_round.v1',
  'discharge_summary.v1'
}
ORDER BY c/context/start_time/value

Emergency Journey

Emergency care must work even when identity is incomplete. AMCDR allows an emergency visit to start with a temporary or partial identity, then reconciles the patient later through MPI. Clinical documentation must not wait for perfect identity when care is urgent.

Emergency flow
Emergency arrival
->
Temporary identity
->
Triage
->
Treatment
->
Admit / transfer / discharge / death

Emergency Triage And Priority Routing

The emergency journey can be implemented as a workflow where registration creates the visit context, an encounter is created, the patient enters a triage queue, the nurse records triage variables, the system calculates acuity, and the patient is assigned to a clinical priority queue. Emergency queue numbers can use a local prefix such as E0234; the number is operational and does not replace MRN, EHR ID, or clinical document identifiers.

Triage and priority queue process
Registration
->
Encounter created
->
Triage queue
->
Triage assessment
->
Acuity calculation
->
Priority queue

Triage assessment facts may include blood pressure, pulse, respiratory rate, temperature, SpO2, pain score, consciousness level, presenting complaint, age risk, and danger signs. AMCDR keeps the clinical observations in openEHR compositions and projects operational values such as calculated acuity, nurse override acuity, final acuity, override reason, queue type, queue name, priority rank, assigned time, and waiting status into workflow and queue records.

IF SpO2 < 90
OR unconscious = true
OR severe_respiratory_distress = true
THEN acuity = Red

Priority queues are ordered clinically: Red first, then Orange, Yellow, Green, and Blue. Re-triage can move a patient to a higher or lower priority queue while preserving the same visit, encounter, task history, and audit trail.

POST /emergency/visits
{
  "temporary_label": "Unknown adult male",
  "mrn": "ED-2026-00045",
  "arrival_time": "2026-05-17T13:02:00Z",
  "triage_level": "red",
  "current_location_label": "Resuscitation bay 1",
  "flags": ["unknown_identity"],
  "reason": "Severe abdominal pain"
}
POST /emergency/visits/{visit_id}/triage
{
  "triage_level": "red",
  "current_location_label": "Resuscitation bay 1",
  "flags": ["shock_risk"],
  "notes": "Pulse 132, systolic BP 82, oxygen saturation 89.",
  "advance_to_treatment": true
}
POST /emergency/visits/{visit_id}/admit
{
  "destination_resource_id": "icu-bed-resource-id",
  "destination_label": "ICU bed 3",
  "reason": "Shock requiring close monitoring"
}

Use emergency transfer when the patient leaves the emergency unit for another ward, theatre, ICU, facility, or referral destination.

POST /emergency/visits/{visit_id}/transfer
{
  "destination_resource_id": "theatre-resource-id",
  "destination_label": "Operating theatre",
  "reason": "Emergency laparotomy",
  "external": false,
  "resume_under_treatment": true
}

Neonatal Journey

Neonatal workflows can be created as configurable workflow definitions rather than hard-coded screens. Different hospitals can bind different newborn assessment, NICU admission, feeding, sepsis review, discharge, or follow-up forms to the same workflow stages.

Neonatal workflow example
Delivery event
->
Newborn identity
->
Neonatal assessment
->
NICU or routine care
->
Daily review
->
Discharge / follow-up

The newborn is a separate patient and EHR. The mother-newborn relationship is stored as a relationship/context link, while neonatal observations remain openEHR compositions linked to the newborn encounter. Multiple births create separate newborn candidates, patients, EHRs, neonatal encounters, and sibling links.

Moving And Transferring Patients

Use movement records when the patient changes location or care responsibility. Use relationship links when two different EHRs or compositions must remain connected after transfer, referral, birth, or handover.

ScenarioUseExample
Move within same wardResource allocation or movementBed 1 to Bed 4.
Move to another wardMovement plus destination allocationEmergency unit to medical ward.
Move to ICU or theatreMovement plus new encounter where neededWard to ICU admission encounter.
Transfer to another facilityTransfer-out encounter, transfer summary composition, relationship link to receiving EHR when availableDistrict hospital to referral hospital.
ReferralReferral relationship and receiving assessmentPrimary care to cardiology clinic.
POST /workflows/movements
{
  "patient_id": "patient-id",
  "visit_id": "visit-id",
  "encounter_id": "current-encounter-id",
  "origin_resource_id": "current-bed-or-unit-id",
  "destination_resource_id": "destination-bed-or-unit-id",
  "movement_type": "ward_transfer",
  "movement_status": "planned",
  "reason": "Step-down from ICU",
  "details": {
    "handover_required": true
  }
}
POST /workflows/movements/{movement_id}/transition
{
  "movement_status": "completed",
  "completed_at": "2026-05-17T14:30:00Z",
  "details": {
    "received_by": "ward-nurse-1"
  }
}

Completing a movement to a destination resource creates or activates the destination allocation when configured. Close the old allocation when the patient physically leaves the origin location.

POST /workflows/allocations/{allocation_id}/transition
{
  "action": "release",
  "end_time": "2026-05-17T14:30:00Z",
  "details": {
    "reason": "Transferred to medical ward"
  }
}

For an external facility transfer, create the transfer-out clinical document and then create an EHR context link when the receiving EHR or receiving composition becomes known.

POST /ehr-context-links
{
  "context_type": "transfer",
  "context_id": "transfer-2026-0001",
  "relationship_type": "transfer_source_to_destination_ehr",
  "inverse_relationship_type": "transfer_destination_to_source_ehr",
  "source_patient_id": "source-patient-id",
  "source_ehr_id": "source-ehr-id",
  "source_composition_uid": "transfer-summary::1",
  "target_patient_id": "receiving-patient-id",
  "target_ehr_id": "receiving-ehr-id",
  "target_composition_uid": "receiving-assessment::1",
  "confidence": "CONFIRMED"
}

Transfer AQL Examples

Use AQL to retrieve the clinical documents on either side after the relationship link identifies the source and destination EHRs.

SELECT
  e/ehr_id/value AS source_ehr_id,
  c/uid/value AS transfer_summary_uid,
  c/name/value AS document_name,
  c/context/start_time/value AS transfer_time
FROM EHR e
CONTAINS COMPOSITION c
WHERE e/ehr_id/value = 'source-ehr-id'
AND c/archetype_details/template_id/value = 'transfer_summary.v1'
SELECT
  e/ehr_id/value AS receiving_ehr_id,
  c/uid/value AS receiving_document_uid,
  c/name/value AS document_name,
  c/context/start_time/value AS received_time
FROM EHR e
CONTAINS COMPOSITION c
WHERE e/ehr_id/value = 'receiving-ehr-id'
AND c/archetype_details/template_id/value MATCHES {
  'receiving_assessment.v1',
  'admission_note.v1'
}

Lifecycle Expectations

Patient queue membership must close when the visit or encounter is closed. Transfers move the patient between internal departments, wards, beds, service points, or external referral destinations. Encounter states use controlled coding where possible, with FHIR encounter status as the pragmatic internal default.