XPN - Extended Person Name

The Extended Person Name (XPN) HL7 segment maps to the PersonName object in Salesforce.

HL7 V2.3 - Clinical Data Model Mapping 

Here’s how the segments defined by HL7 V2.3 for XPN map to fields in Salesforce standard objects.

Only the segments supported by Salesforce are mentioned below.

Note

XPNSalesforce FieldTypeNotes
XPN.1 - Family NamePersonName.LastNameStringIn cases where a person has a middle name, PersonName.LastName is supposed to store a combination of the middle name and the last name.
XPN.2 - Given NamePersonName.FirstNameStringN/A
XPN.3 - Middle Initial or NameN/AN/AThis attribute isn’t implemented in PersonName. In cases where a person has a middle name, PersonName.LastName is supposed to store a combination of the middle name and the last name.
XPN.4 - SuffixPersonName.SuffixStringN/A
XPN.5 - PrefixPersonName.PrefixStringN/A
XPN.6 - DegreeN/AN/AThis attribute isn’t implemented in PersonName.
XPN.7 - Name Type CodePersonName.NameUsageTypeDynamic PicklistWhile HL7 defines XPN.7 as a code, Salesforce implements PersonName.NameUsageType as a dynamic picklist.