Accessing the patient name field

To access the patient name field in the PID segment that describes the first patient in a message, use the 1(0).PID(0).00041 field path. In this path, 1 selects the PID-PV1 segment pair group and (0) selects the first repetition of that group.

To access the patient name field in the second instance of the PID segment group, use this field path:

1(1).PID.00041
MSH
EVN
{
     PID     1(0).PID.00041
    PV1    
}
{             1(1).PID.00041
     PID
PV1
}     

This is a more complex example showing sub-groups:

MSH          0(0).MSH(0)
EVN          0(0).EVN(0)
{
          [
                    NK1          1(n).0(0).NK1(0)
                   GT1           1(n).0(0).GT1(0)
          ]
          PV1                   1(n).1(0).PV1(0)
          BLG                   1(n).1(0).BLG(0)
}
[DSC]       2(0).DSC(0)     

This example shows the NK1-GT1 and PV1-BLG sub-groups.

MSH                    0(0).MSH(0)
EVN                     0(0).EVN(0)
{
     [
          NK1           1(n).0(0).NK1(0)
          GT1           1(n).0(0).GT1(0)
     ]
     PV1                1(n).1(0).PV1(0)
     BLG               1(n).1(0).BLG(0)
}
[DSC]                  2(0).DSC(0)     

Even though the DSC is a segment alone, it is not considered a part of the above grouping, making it a group by itself.

Field specifiers are appended to paths to indicate specific field and subfield values.

For example:

1(1).0(0).NK1(0).00048.[1]