HL7 v2 PID-18 (Patient Account Number): Format, Values, and Testing Notes
It is common for a billing system and a clinical system to disagree on which field is "the" patient identifier — PID-18 is the account number, PID-3 is usually the MRN, and integrations that conflate the two end up reconciling charges against the wrong key.
PID-18 is the eighteenth field of the HL7 v2 PID segment — it carries the patient account number, typically the visit- or encounter-linked identifier used by billing systems, distinct from the medical record number in PID-3.
What this field contains
Example
55219847 in PID-18 is the billing account number, separate from the 847213609 medical record number carried in PID-3. Synthetic patient — not a real person.
Where this trips people up
Because PID-3 and PID-18 often look similar and are both numeric identifiers, some integrations built by teams unfamiliar with the distinction wire billing reconciliation logic to the wrong field. Charges then fail to match against the correct account the moment a patient has more than one encounter, since MRN is patient-level while account number is often encounter-level.