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

🏥 Healthcare · State Machine

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.

More Healthcare templates

Drawing diagram…

What this diagram shows

  • Samples can be rejected and recollected
  • Critical results are phoned to the doctor immediately
  • Results are verified by a pathologist before release

Prompt used

State machine for a hospital lab test: Ordered by the doctor, Sample Collected, Received in lab (or Rejected and back to Ordered for recollection), In Analysis, Result Entered, Verified by pathologist, Released to the EHR. A critical value triggers Critical Alert, the doctor is called, then it is Released.

Mermaid code
stateDiagram-v2
  [*] --> Ordered
  Ordered --> SampleCollected
  SampleCollected --> ReceivedInLab
  ReceivedInLab --> Rejected: Haemolysed or unlabelled
  Rejected --> Ordered: Recollect
  ReceivedInLab --> InAnalysis
  InAnalysis --> ResultEntered
  ResultEntered --> Verified: Pathologist checks
  Verified --> CriticalAlert: Critical value
  CriticalAlert --> Released: Doctor phoned
  Verified --> Released: Normal
  Released --> [*]

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.

FlowchartHealthcare

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.

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.