---
schema_version: "1"
id: c88944d56809962b96f0f648649d21c6e2ab8220b9d55d47134878933f1eb6b5
title: XPN - Extended Person Name
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/life_sciences_dev_guide/map_hl7_XPN.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/map_hl7_XPN.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 555c762bfaf07c753c0b61a6b8653b21b2c15e2cac2284b9eacc1b885b73b483
description: The Extended Person Name (XPN) HL7 segment maps to the PersonName object in Salesforce.
---
# 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.

![Note](https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/images/icon_note.png)

#### Note

Only the segments supported by Salesforce are mentioned below.

Table 1. XPN - Salesforce
| XPN | Salesforce Field | Type | Notes |
| --- | --- | --- | --- |
| XPN.1 - Family Name | PersonName.LastName | String | 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.2 - Given Name | PersonName.FirstName | String | N/A |
| XPN.3 - Middle Initial or Name | N/A | N/A | This 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 - Suffix | PersonName.Suffix | String | N/A |
| XPN.5 - Prefix | PersonName.Prefix | String | N/A |
| XPN.6 - Degree | N/A | N/A | This attribute isn’t implemented in PersonName. |
| XPN.7 - Name Type Code | PersonName.NameUsageType | Dynamic Picklist | While HL7 defines XPN.7 as a code, Salesforce implements PersonName.NameUsageType as a dynamic picklist. |