
🏥 Healthcare · Flowchart
How a hospital's EHR exchanges data with labs, radiology and insurers through an integration engine, translating between HL7 v2 and FHIR.
Drawing diagram…
Flowchart for EHR integration: the EHR raises an event (new admission, lab order, discharge). The integration engine (Mirth Connect) receives it, validates and maps it, then routes it: HL7 v2 ORM messages to the lab system, DICOM worklist to radiology, FHIR Claim resources to the insurer API. Results come back as HL7 ORU or FHIR Observation and are written into the patient's record. Messages that fail validation go to an error queue for an integration analyst.
flowchart TD
A[EHR event: admission, order, discharge] --> B[Integration engine receives message]
B --> C{Valid message?}
C -->|No| E[Error queue for integration analyst]
C -->|Yes| D[Map fields and code sets]
D --> F{Destination}
F -->|Lab| G[HL7 v2 ORM order to LIS]
F -->|Radiology| H[DICOM worklist to PACS/RIS]
F -->|Insurer| I[FHIR Claim to insurer API]
G --> J[HL7 ORU result back]
H --> K[Report and images link back]
I --> L[FHIR ClaimResponse back]
J --> M[Write into patient record]
K --> M
L --> MA container-level view of a hospital management system: patient and staff apps, the core services behind them, and the external systems a hospital depends on, such as insurers and labs.
How a patient books a doctor's appointment online: checking free slots, holding one, paying the consultation fee and getting a confirmation.
An online doctor consultation from booking to e-prescription: payment, a secure video room, consultation notes and the prescription sent to the patient.
How a cashless health insurance claim works at a hospital: pre-authorisation with the TPA, treatment, and final bill settlement directly with the insurer.
A core relational schema for a hospital: patients, doctors, departments, appointments, admissions, beds, prescriptions and bills.
The lifecycle of a lab test in a hospital, from the doctor's order to the result in the patient's record, including recollection and critical values.