Systems pass data to each other in two HL7 standards.
HL7 version 2 messages are lines of text called segments, with fields separated by | and parts of a field by ^. An ADT message (admit, discharge, transfer) reports what happened to a patient. Its trigger event is in the message type, ADT^A01: A01 admit, A03 discharge, A04 register an outpatient (a clinic or emergency visit), A08 update patient information.
Fields are numbered after the segment name: PID-3 is the third field of PID.
- PID: PID-3 the patient identifier list (the MRN), PID-5 the name (family^given), PID-7 the date of birth.
- PV1: PV1-2 the patient class: I inpatient, E emergency, O outpatient.
- OBX: one observation. OBX-3 says what was measured, OBX-5 holds the value.
FHIR R4 sends the same facts as resources, JSON objects with named fields: Patient, Encounter, Condition, Observation, MedicationRequest, Claim, Practitioner, Coverage. Each resource fills one Cedar Ridge table, so the resource tells you where its data will land.
PID-3 is the MRN, PID-5 the name (family^given) and PID-7 the date of birth.