CloudSketch AI Logo
FeaturesTemplatesPricingEnterpriseAboutContactLog in
🌙☀️
Log inStart free
Home/Templates/Healthcare

🏥 Healthcare · Flowchart

EHR Integration via HL7 / FHIR

How a hospital's EHR exchanges data with labs, radiology and insurers through an integration engine, translating between HL7 v2 and FHIR.

More Healthcare templates

Drawing diagram…

What this diagram shows

  • An integration engine sits between the EHR and every outside system
  • Old systems speak HL7 v2, new ones use FHIR REST APIs
  • Failed messages go to an error queue for review, never silently dropped

Prompt used

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.

Mermaid code
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 --> M

Related templates

C4 ArchitectureProHealthcare

Hospital Management System Architecture

A 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.

SequenceHealthcare

Patient Appointment Booking Sequence

How a patient books a doctor's appointment online: checking free slots, holding one, paying the consultation fee and getting a confirmation.

SequenceHealthcare

Telemedicine Video Consultation

An online doctor consultation from booking to e-prescription: payment, a secure video room, consultation notes and the prescription sent to the patient.

SequenceHealthcare

Cashless Hospitalisation Pre-Authorisation

How a cashless health insurance claim works at a hospital: pre-authorisation with the TPA, treatment, and final bill settlement directly with the insurer.

Database ERDHealthcare

Hospital Database Schema

A core relational schema for a hospital: patients, doctors, departments, appointments, admissions, beds, prescriptions and bills.

State MachineHealthcare

Lab Test Order to Result

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.