SpecsModelExplore
Overview
Actors
External Systems
Clinical Data Product
Clinical Ingestion
Clinical Data
Patient Master
Encounter Service
Encounter RepositoryEncounter State MachineEvent Publisher
Observation Service
Analytics & Research
Clinical Apps
Governance & Audit
SpecsModelExplore
Encounter State Machine
OverviewGuideLinks and Communications
IDproduct.clinical_data.encounter_service.state_machine
DescriptionTracks admit / discharge / transfer.
Keystate_machine
Typecomponent
TeamClinical Data
Statusactive
Attributesinvalid: rejected, transitions: ADT A01/A02/A03
Tags
Table of contents
Guide
Encounter State Machine
Behaviour

Guide

Encounter State Machine

The Encounter State Machine enforces valid ADT transitions — admitted, transferred, discharged — rejecting illegal jumps that would corrupt census.

Behaviour

  • Validates trigger against current state before any Encounter Repository write.
  • Illegal transitions return a structured error to ingestion so the hospital can reconcile.
  • Emits transition metadata to the
Event Publisher
.

Links and Communications

1 outgoing link

Outgoing Links(1)

Target objectLabelLink typeRelationRaw idRequiredDescription
encounter_repo

example-healthcare.encounter_repo

—
——linksencounter_repo——