HumanName

General information

See HL7 HumanName for general information regarding the HumanName data type.

Scope and Usage

This profile defines how HumanName should be used for representing person and personnel names in Swedish healthcare contexts. It specifies which elements are mandatory, optional, or repeatable, and provides guidance on terminology bindings where relevant. The profile is intended for use in multiple FHIR resources that include names, such as Patient, Practitioner, Person, and RelatedPerson. It supports consistent data entry, validation, and interoperability across systems.

Boundaries and Relationships

The profile focuses on human-readable names and does not include identifiers, addresses, or other contact details. HumanName may be linked to identifiers or other demographic data via the containing resource (e.g., Patient.identifier or Practitioner.identifier). Multiple HumanName entries can exist for a single person to support historical names, legal names, or preferred names, but each should clearly indicate its purpose through the use element.

Background and Context

The HumanName data type is widely used across healthcare and administrative resources in FHIR. Standardizing its usage in Sweden ensures that person names are represented consistently across local, regional, and national systems, supporting interoperability, data exchange, and regulatory compliance. This profile uses profiling from the HL7 Sweden base profile for HumanName which is specific to Swedish healthcare practice, including requirements for cardinality, usage, and representation of multiple name components.

Profile

id0..1string
middleNameS C0..1Extension(string)
useΣ ?!0..1codeBinding
textS Σ0..1string
familyS Σ0..1string
id0..1string
nameQualifierS C0..1Extension(code)
value0..1System.String
prefixΣ0..*string
suffixΣ0..*string
periodΣ C0..1Period
HumanName
ShortName of a human or other living entity - parts and usage
Definition

A name, normally of a human, that can be used for other living entities (e.g. animals but not organizations) that have been assigned names by a human and may need the use of name parts or the need for usage information.

Cardinality0..*
Comments

Names may be changed, or repudiated, or people may have different names in different contexts. Names may be divided into parts of different type that have variable significance depending on context, though the division into parts does not always matter. With personal names, the different parts might or might not be imbued with some implicit meaning; various cultures associate different importance with the name parts and the degree to which systems must care about name parts around the world varies widely.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: XPN
  • rim: EN (actually, PN)
  • servd: ProviderName
HumanName.id
ShortUnique id for inter-element referencing
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
HumanName.extension
ShortAdditional content defined by implementations
Definition

May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
HumanName.extension:middleName
ShortOptional Extensions Element
Definition

Extension for HumanName to express middle names.

Cardinality0..1
TypeExtension(string)
Must SupportTrue
Aliasextensions, user content
Comments

There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
HumanName.use
Shortusual | official | temp | nickname | anonymous | old | maiden
Definition

Identifies the purpose for this name.

Cardinality0..1
Typecode
Binding

The use of a human name.

NameUse (required)

ModifierTrue
SummaryTrue
Requirements

Allows the appropriate name for a particular context of use to be selected from among a set of names.

Comments

Applications can assume that a name is current unless it explicitly says that it is temporary or old.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: XPN.7, but often indicated by which field contains the name
  • rim: unique(./use)
  • servd: ./NamePurpose
HumanName.text
ShortText representation of the full name
Definition

Specifies the entire name as it should be displayed e.g. on an application UI. This may be provided instead of or as well as the specific parts.

Cardinality0..1
Typestring
Must SupportTrue
SummaryTrue
Requirements

A renderable, unencoded form.

Comments

Can provide both a text representation and parts. Applications updating a name SHALL ensure that when both text and parts are present, no content is included in the text that isn't found in a part.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: implied by XPN.11
  • rim: ./formatted
HumanName.family
ShortFamily name (often called 'Surname')
Definition

The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father.

Cardinality0..1
Typestring
Must SupportTrue
SummaryTrue
Aliassurname
Comments

Family Name may be decomposed into specific parts using extensions (de, nl, es related cultures).

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: XPN.1/FN.1
  • rim: ./part[partType = FAM]
  • servd: ./FamilyName
HumanName.given
ShortGiven names (not always 'first'). Includes middle names
Definition

Given name.

Cardinality0..*
Typestring
Must SupportTrue
SummaryTrue
Aliasfirst name, middle name
Comments

If only initials are recorded, they may be used in place of the full name parts. Initials may be separated into multiple given names but often aren't due to paractical limitations. This element is not called "first name" since given names do not always come first.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: XPN.2 + XPN.3
  • rim: ./part[partType = GIV]
  • servd: ./GivenNames
HumanName.given.id
ShortUnique id for inter-element referencing
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Cardinality0..1
Typestring
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Mappings
  • rim: n/a
HumanName.given.extension
ShortAdditional content defined by implementations
Definition

May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
HumanName.given.extension:nameQualifier
ShortLS | AC | NB | PR | HON | BR | AD | SP | MID | CL | IN | VV
Definition

A set of codes each of which specifies a certain subcategory of the name part in addition to the main name part type.

Cardinality0..1
TypeExtension(code)
Must SupportTrue
Aliasextensions, user content
Comments

Used to indicate additional information about the name part and how it should be used.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
  • rim: ENXP.qualifier
HumanName.given.value
ShortPrimitive value for string
Definition

Primitive value for string

Cardinality0..1
TypeSystem.String
Maximum string length1048576
HumanName.prefix
ShortParts that come before the name
Definition

Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name.

Cardinality0..*
Typestring
SummaryTrue
Comments

Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: XPN.5
  • rim: ./part[partType = PFX]
  • servd: ./TitleCode
HumanName.suffix
ShortParts that come after the name
Definition

Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name.

Cardinality0..*
Typestring
SummaryTrue
Comments

Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: XPN/4
  • rim: ./part[partType = SFX]
HumanName.period
ShortTime period when name was/is in use
Definition

Indicates the period of time when this name was valid for the named person.

Cardinality0..1
TypePeriod
SummaryTrue
Requirements

Allows names to be placed in historical context.

Comments

A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. "the patient was an inpatient of the hospital for this time range") or one value from the range applies (e.g. "give to the patient between these two times").

Period is not used for a duration (a measure of elapsed time). See Duration.

Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • per-1: If present, start SHALL have a lower or equal value than end
    start.hasValue().not() or end.hasValue().not() or (start.lowBoundary() <= end.highBoundary())
Mappings
  • rim: n/a
  • v2: DR
  • rim: IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]
  • v2: XPN.13 + XPN.14
  • rim: ./usablePeriod[type="IVL<TS>"]
  • servd: ./StartDate and ./EndDate
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="NPPRHumanName" />
<url value="http://electronichealth.se/fhir/NPPR/StructureDefinition/NPPRHumanName" />
<version value="0.1" />
<name value="NPPRHumanName" />
<status value="draft" />
<description value="Profile for representing the name of an individual, to include name qualifier." />
<fhirVersion value="5.0.0" />
<kind value="complex-type" />
<abstract value="false" />
<type value="HumanName" />
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/HumanName" />
<derivation value="constraint" />
<element id="HumanName.extension:middleName">
<path value="HumanName.extension" />
<sliceName value="middleName" />
<min value="0" />
<max value="1" />
<code value="Extension" />
<profile value="http://electronichealth.se/fhir/NPPR/StructureDefinition/NPPRMiddleNameExtension" />
</type>
<mustSupport value="true" />
</element>
<element id="HumanName.text">
<path value="HumanName.text" />
<mustSupport value="true" />
</element>
<element id="HumanName.family">
<path value="HumanName.family" />
<mustSupport value="true" />
</element>
<element id="HumanName.given">
<path value="HumanName.given" />
<mustSupport value="true" />
</element>
<element id="HumanName.given.extension">
<path value="HumanName.given.extension" />
<type value="value" />
<path value="url" />
</discriminator>
<ordered value="false" />
<rules value="open" />
</slicing>
</element>
<element id="HumanName.given.extension:nameQualifier">
<path value="HumanName.given.extension" />
<sliceName value="nameQualifier" />
<min value="0" />
<max value="1" />
<code value="Extension" />
<profile value="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier" />
</type>
<mustSupport value="true" />
</element>
</differential>
</StructureDefinition>
{
"resourceType": "StructureDefinition",
"id": "NPPRHumanName",
"url": "http://electronichealth.se/fhir/NPPR/StructureDefinition/NPPRHumanName",
"version": "0.1",
"name": "NPPRHumanName",
"status": "draft",
"description": "Profile for representing the name of an individual, to include name qualifier.",
"fhirVersion": "5.0.0",
"kind": "complex-type",
"abstract": false,
"type": "HumanName",
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/HumanName",
"derivation": "constraint",
"element": [
{
"id": "HumanName.extension:middleName",
"path": "HumanName.extension",
"sliceName": "middleName",
"min": 0,
"max": "1",
"type": [
{
"code": "Extension",
"profile": [
"http://electronichealth.se/fhir/NPPR/StructureDefinition/NPPRMiddleNameExtension"
]
}
],
"mustSupport": true
},
{
"id": "HumanName.text",
"path": "HumanName.text",
"mustSupport": true
},
{
"id": "HumanName.family",
"path": "HumanName.family",
"mustSupport": true
},
{
"id": "HumanName.given",
"path": "HumanName.given",
"mustSupport": true
},
{
"id": "HumanName.given.extension",
"path": "HumanName.given.extension",
"slicing": {
{
"type": "value",
"path": "url"
}
],
"ordered": false,
"rules": "open"
}
},
{
"id": "HumanName.given.extension:nameQualifier",
"path": "HumanName.given.extension",
"sliceName": "nameQualifier",
"min": 0,
"max": "1",
"type": [
{
"code": "Extension",
"profile": [
"http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"
]
}
],
"mustSupport": true
}
]
}
}

Constraints

This section is not applicable to this resource and therefore contains no content.

Terminology Bindings

This section is not applicable to this resource and therefore contains no content.

Extensions

PathURL
HumanName.extensionhttp://electronichealth.se/fhir/NPPR/StructureDefinition/NPPRMiddleNameExtension
HumanName.given.extensionhttp://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier