The Path
Module 3 · Message types·14 min
Patient and visit segments
EVN, PID, PD1, NK1, PV1, PV2, AL1, DG1, IN1: who the patient is and where.
An ADT message is more than an event. Above all, it is a record on the move: who the patient is, who to call, where she sleeps, who looks after her, what she is allergic to, who pays. Each answer has its own segment.
Here is Marie Dubois’s full admission for her night at the sleep lab. It is the same A01 as in the trigger events lesson, this time with all its segments. Click the color legend to jump from segment to segment.
The patient record sends the sleep lab everything it knows about Marie Dubois at admission time.
The order is not free. The ADT_A01 structure fixes the sequence: MSH, EVN, PID, then the optional segments in a set order. Only MSH, EVN, PID and PV1 are required.
EVN: the event timestamp
EVN comes with every ADT message. Two fields matter:
EVN-2: when the event was recorded in the system (required).EVN-6: when it actually happened.
What about EVN-1? It repeats the event code (A01). In 2.5.1 it is kept for backward compatibility only: the standard recommends reading the event from MSH-9.2. It was removed in v2.7. Many systems still fill it, as here: do not rely on it, read the event from MSH-9.2.
PID: who the patient is
PID is the most important segment in all of ADT. Without it, the receiver does not know where to file anything.
| Field | Content | For Marie |
|---|---|---|
PID-3 |
patient identifier list (required) | 1024^^^LELEUX^MR |
PID-5 |
name (required) | DUBOIS^Marie |
PID-7 |
date of birth | 19850312 |
PID-8 |
administrative sex (table 0001) | F |
PID-11 |
address | Brussels, 1000, BEL |
PID-13 |
phone (“home” in the standard) | +32470000000, a mobile |
Look closely at PID-3. 1024 is the number, LELEUX (component 4) says who assigned it, MR (component 5) says what kind of number it is: a medical record number. One patient can carry several identifiers, separated by ~.
Two traps in the address and phone. The country in PID-11 (component 6) uses the three-letter ISO code: BEL, not BE. And the XTN type of PID-13 states the use and the device: PRN (primary residence number), then CP (cell phone), with the full number in component 12.
PD1 adds extra demographics to PID. Here, PD1-3 gives Marie’s usual care facility. Her primary care physician would go in PD1-4: a field kept only for backward compatibility since v2.4, which recent versions replace with a dedicated segment.
NK1: who to call
NK1 (next of kin) describes a person linked to the patient. It can repeat. For Marie: her spouse Pierre (NK1-2), relationship SPO for spouse in table 0063 (NK1-3), and his phone (NK1-5).
PV1: where, when, with whom
If PID says who, PV1 says where and under what circumstances. It is the visit segment.
| Field | Content | For Marie |
|---|---|---|
PV1-2 |
patient class (required, table 0004) | I, inpatient |
PV1-3 |
location: unit, room, bed, facility | SLEEP^201^A^LELEUX |
PV1-6 |
prior location (after a transfer) | empty |
PV1-7 |
attending doctor | 1234^MARTIN^Thomas |
PV1-19 |
visit number | V2026-0815^^^LELEUX^VN |
PV1-44 |
admit date and time | 26 June 2026, 8 pm |
PV1-45 |
discharge date and time | empty, she is still here |
Common PV1-2 values: I inpatient, O outpatient, E emergency, P preadmit, N not applicable.
Keep the difference between PID-3 and PV1-19 in mind. The first follows the person, forever. The second follows this visit. Marie gets a new visit number every time she comes, but keeps the same record number.
Click PV1-19, then PV1-44, in this shorter message. Then change PV1-2 from I to O and watch the field explanation change.
The PID and PV1 segments of the admission, to explore and edit.
PV2 adds visit details. You will mostly meet PV2-3, the admit reason, and PV2-8, the expected admit date.
AL1, DG1, IN1: allergies, diagnoses, insurance
These three segments are optional and can repeat.
AL1, one allergy per segment. AL1-2 gives the category (DA, drug allergy, table 0127), AL1-3 the allergen (required), AL1-4 the severity (SV, severe, table 0128), AL1-5 the reaction.
DG1, one diagnosis per segment. DG1-3 holds the diagnosis code. DG1-6 says which kind of diagnosis it is (table 0052): A admitting, W working, F final. Here the stay starts with an admitting diagnosis: suspected sleep apnea.
IN1, one insurance per segment. IN1-2 the insurance plan, IN1-3 the insurer’s identifier, IN1-4 its name. Every facility sets its own filling rules: something to clarify in any interface specification.
And in FHIR?
The official v2-to-FHIR guide maps each segment to a resource: PID becomes Patient, PV1 becomes Encounter, NK1 becomes RelatedPerson, AL1 becomes AllergyIntolerance, DG1 becomes Condition, IN1 becomes Coverage. One ADT message breaks down into a small family of linked resources.
Check your understanding
1 of 4Which field holds the patient’s room and bed?
+50 XPPass the quiz (3 correct answers) to complete the lesson.
Reviewed and checked on 27 September 2026