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

Opening a template is free and never counts toward your daily diagrams. Asking the AI to change it counts as one.

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 --> [*]

Inside this diagram

A state diagram with 9 states and 10 transitions.

States

  • Ordered
  • SampleCollected
  • ReceivedInLab
  • Rejected
  • InAnalysis
  • ResultEntered
  • Verified
  • CriticalAlert
  • Released

Starts in

  • Ordered

Ends in

  • Released

Transitions

  • Ordered β†’ SampleCollected
  • SampleCollected β†’ ReceivedInLab
  • ReceivedInLab β†’ Rejected when Haemolysed or unlabelled
  • Rejected β†’ Ordered when Recollect
  • ReceivedInLab β†’ InAnalysis
  • InAnalysis β†’ ResultEntered
  • ResultEntered β†’ Verified when Pathologist checks
  • Verified β†’ CriticalAlert when Critical value
  • CriticalAlert β†’ Released when Doctor phoned
  • Verified β†’ Released when Normal

Make your own diagram like this

Describe your own system in plain English and CloudSketch AI draws it in seconds. See all AI diagram generators.

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.