The PID segment is used by all applications as the primary means of communicating patient identification information. This segment contains permanent patient identifying.

Basic example :

PID|PatientID|Patient Identifier List|Alternate Patient ID - PID|Patient Name

Attention: The PID-2 field was retained for backward compatibility only as of v2.3.1 and was withdrawn and removed from this message structure as of v2.7. It is recommended to use PID-3 - Patient Identifier List for all patient identifiers.

Source : https://v2plus.hl7.org/2021Jan/segment-definition/SCD.html#SCD-33

How is the Patient Identifier List constructed

12345^^^^PI

In this example: