SPL Mapping FHIR R5 Implementation Guide, published by HL7 International / Biomedical Research and Regulation. This guide is not an authorized publication; it is the continuous build for version 0.2.5 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-spl/ and changes regularly. See the Directory of published versions
Official URL: http://hl7.org/fhir/us/spl/StructureDefinition/SPLAddress | Version: 0.2.5 | |||
Standards status: Trial-use | Maturity Level: 1 | Computable Name: SPLAddress |
SPL-specific Constraints on the Address datatype dealing with US addresses.
Usage:
Description of Profiles, Differentials, Snapshots and how the different presentations work.
Name | Flags | Card. | Type | Description & Constraints![]() |
---|---|---|---|---|
![]() ![]() |
C | 0..* | Address | An address expressed using postal conventions (as opposed to GPS or other location definition formats) ele-1: All FHIR elements must have a @value or children spl-2.1.6.4: If the country is USA, then the state and postal code exist spl-2.1.6.5: If the country is USA, then the postal code is 5 digits with an optional dash and 4 numbers |
![]() ![]() ![]() |
?!Σ | 0..1 | code | home | work | temp | old | billing - purpose of this address Binding: AddressUse (required): The use of an address (home / work / etc.). ele-1: All FHIR elements must have a @value or children Example General: home |
![]() ![]() ![]() |
Σ | 1..2 | string | Street name, number, direction & P.O. Box etc. ele-1: All FHIR elements must have a @value or children This repeating element order: The order in which lines should appear in an address label Example General: 137 Nowhere Street |
![]() ![]() ![]() |
SΣ | 1..1 | string | Name of city, town etc. ele-1: All FHIR elements must have a @value or children Example General: Erewhon |
![]() ![]() ![]() |
SΣ | 0..1 | string | Sub-unit of country (abbreviations ok) ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() |
SΣ | 1..1 | string | Postal code for area ele-1: All FHIR elements must have a @value or children Example General: 9132 |
![]() ![]() ![]() |
SΣ | 1..1 | string | Country can either be the ISO 3-letter country code or the full country name matching the code. ele-1: All FHIR elements must have a @value or children |
![]() |
Path | Conformance | ValueSet | URI |
Address.use | required | AddressUsehttp://hl7.org/fhir/ValueSet/address-use|5.0.0 from the FHIR Standard |
Id | Grade | Path(s) | Details | Requirements |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
spl-2.1.6.4 | error | Address | If the country is USA, then the state and postal code exist : country = 'USA' implies (state.exists() and state.length() = 2 and postalCode.exists()) | |
spl-2.1.6.5 | error | Address | If the country is USA, then the postal code is 5 digits with an optional dash and 4 numbers : country = 'USA' implies postalCode.matches('^[0-9]{5}(-[0-9]{4})?$') |
This structure is derived from Address
Name | Flags | Card. | Type | Description & Constraints![]() |
---|---|---|---|---|
![]() ![]() |
C | 0..* | Address | An address expressed using postal conventions (as opposed to GPS or other location definition formats) spl-2.1.6.4: If the country is USA, then the state and postal code exist spl-2.1.6.5: If the country is USA, then the postal code is 5 digits with an optional dash and 4 numbers |
![]() ![]() ![]() |
1..2 | string | Street name, number, direction & P.O. Box etc. | |
![]() ![]() ![]() |
S | 1..1 | string | Name of city, town etc. |
![]() ![]() ![]() |
S | 0..1 | string | Sub-unit of country (abbreviations ok) |
![]() ![]() ![]() |
S | 1..1 | string | Postal code for area |
![]() ![]() ![]() |
S | 1..1 | string | Country can either be the ISO 3-letter country code or the full country name matching the code. |
![]() |
Id | Grade | Path(s) | Details | Requirements |
spl-2.1.6.4 | error | Address | If the country is USA, then the state and postal code exist : country = 'USA' implies (state.exists() and state.length() = 2 and postalCode.exists()) | |
spl-2.1.6.5 | error | Address | If the country is USA, then the postal code is 5 digits with an optional dash and 4 numbers : country = 'USA' implies postalCode.matches('^[0-9]{5}(-[0-9]{4})?$') |
Name | Flags | Card. | Type | Description & Constraints![]() |
---|---|---|---|---|
![]() ![]() |
C | 0..* | Address | An address expressed using postal conventions (as opposed to GPS or other location definition formats) spl-2.1.6.4: If the country is USA, then the state and postal code exist spl-2.1.6.5: If the country is USA, then the postal code is 5 digits with an optional dash and 4 numbers |
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
?!Σ | 0..1 | code | home | work | temp | old | billing - purpose of this address Binding: AddressUse (required): The use of an address (home / work / etc.). Example General: home |
![]() ![]() ![]() |
Σ | 0..1 | code | postal | physical | both Binding: AddressType (required): The type of an address (physical / postal). Example General: both |
![]() ![]() ![]() |
Σ | 0..1 | string | Text representation of the address Example General: 137 Nowhere Street, Erewhon 9132 |
![]() ![]() ![]() |
Σ | 1..2 | string | Street name, number, direction & P.O. Box etc. This repeating element order: The order in which lines should appear in an address label Example General: 137 Nowhere Street |
![]() ![]() ![]() |
SΣ | 1..1 | string | Name of city, town etc. Example General: Erewhon |
![]() ![]() ![]() |
Σ | 0..1 | string | District name (aka county) Example General: Madison |
![]() ![]() ![]() |
SΣ | 0..1 | string | Sub-unit of country (abbreviations ok) |
![]() ![]() ![]() |
SΣ | 1..1 | string | Postal code for area Example General: 9132 |
![]() ![]() ![]() |
SΣ | 1..1 | string | Country can either be the ISO 3-letter country code or the full country name matching the code. |
![]() ![]() ![]() |
Σ | 0..1 | Period | Time period when address was/is in use Example General: {"start":"2010-03-23","end":"2010-07-01"} |
![]() |
Path | Conformance | ValueSet | URI |
Address.use | required | AddressUsehttp://hl7.org/fhir/ValueSet/address-use|5.0.0 from the FHIR Standard | |
Address.type | required | AddressTypehttp://hl7.org/fhir/ValueSet/address-type|5.0.0 from the FHIR Standard |
Id | Grade | Path(s) | Details | Requirements |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() | |
spl-2.1.6.4 | error | Address | If the country is USA, then the state and postal code exist : country = 'USA' implies (state.exists() and state.length() = 2 and postalCode.exists()) | |
spl-2.1.6.5 | error | Address | If the country is USA, then the postal code is 5 digits with an optional dash and 4 numbers : country = 'USA' implies postalCode.matches('^[0-9]{5}(-[0-9]{4})?$') |
Key Elements View
Name | Flags | Card. | Type | Description & Constraints![]() |
---|---|---|---|---|
![]() ![]() |
C | 0..* | Address | An address expressed using postal conventions (as opposed to GPS or other location definition formats) ele-1: All FHIR elements must have a @value or children spl-2.1.6.4: If the country is USA, then the state and postal code exist spl-2.1.6.5: If the country is USA, then the postal code is 5 digits with an optional dash and 4 numbers |
![]() ![]() ![]() |
?!Σ | 0..1 | code | home | work | temp | old | billing - purpose of this address Binding: AddressUse (required): The use of an address (home / work / etc.). ele-1: All FHIR elements must have a @value or children Example General: home |
![]() ![]() ![]() |
Σ | 1..2 | string | Street name, number, direction & P.O. Box etc. ele-1: All FHIR elements must have a @value or children This repeating element order: The order in which lines should appear in an address label Example General: 137 Nowhere Street |
![]() ![]() ![]() |
SΣ | 1..1 | string | Name of city, town etc. ele-1: All FHIR elements must have a @value or children Example General: Erewhon |
![]() ![]() ![]() |
SΣ | 0..1 | string | Sub-unit of country (abbreviations ok) ele-1: All FHIR elements must have a @value or children |
![]() ![]() ![]() |
SΣ | 1..1 | string | Postal code for area ele-1: All FHIR elements must have a @value or children Example General: 9132 |
![]() ![]() ![]() |
SΣ | 1..1 | string | Country can either be the ISO 3-letter country code or the full country name matching the code. ele-1: All FHIR elements must have a @value or children |
![]() |
Path | Conformance | ValueSet | URI |
Address.use | required | AddressUsehttp://hl7.org/fhir/ValueSet/address-use|5.0.0 from the FHIR Standard |
Id | Grade | Path(s) | Details | Requirements |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
spl-2.1.6.4 | error | Address | If the country is USA, then the state and postal code exist : country = 'USA' implies (state.exists() and state.length() = 2 and postalCode.exists()) | |
spl-2.1.6.5 | error | Address | If the country is USA, then the postal code is 5 digits with an optional dash and 4 numbers : country = 'USA' implies postalCode.matches('^[0-9]{5}(-[0-9]{4})?$') |
Differential View
This structure is derived from Address
Name | Flags | Card. | Type | Description & Constraints![]() |
---|---|---|---|---|
![]() ![]() |
C | 0..* | Address | An address expressed using postal conventions (as opposed to GPS or other location definition formats) spl-2.1.6.4: If the country is USA, then the state and postal code exist spl-2.1.6.5: If the country is USA, then the postal code is 5 digits with an optional dash and 4 numbers |
![]() ![]() ![]() |
1..2 | string | Street name, number, direction & P.O. Box etc. | |
![]() ![]() ![]() |
S | 1..1 | string | Name of city, town etc. |
![]() ![]() ![]() |
S | 0..1 | string | Sub-unit of country (abbreviations ok) |
![]() ![]() ![]() |
S | 1..1 | string | Postal code for area |
![]() ![]() ![]() |
S | 1..1 | string | Country can either be the ISO 3-letter country code or the full country name matching the code. |
![]() |
Id | Grade | Path(s) | Details | Requirements |
spl-2.1.6.4 | error | Address | If the country is USA, then the state and postal code exist : country = 'USA' implies (state.exists() and state.length() = 2 and postalCode.exists()) | |
spl-2.1.6.5 | error | Address | If the country is USA, then the postal code is 5 digits with an optional dash and 4 numbers : country = 'USA' implies postalCode.matches('^[0-9]{5}(-[0-9]{4})?$') |
Snapshot View
Name | Flags | Card. | Type | Description & Constraints![]() |
---|---|---|---|---|
![]() ![]() |
C | 0..* | Address | An address expressed using postal conventions (as opposed to GPS or other location definition formats) spl-2.1.6.4: If the country is USA, then the state and postal code exist spl-2.1.6.5: If the country is USA, then the postal code is 5 digits with an optional dash and 4 numbers |
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
?!Σ | 0..1 | code | home | work | temp | old | billing - purpose of this address Binding: AddressUse (required): The use of an address (home / work / etc.). Example General: home |
![]() ![]() ![]() |
Σ | 0..1 | code | postal | physical | both Binding: AddressType (required): The type of an address (physical / postal). Example General: both |
![]() ![]() ![]() |
Σ | 0..1 | string | Text representation of the address Example General: 137 Nowhere Street, Erewhon 9132 |
![]() ![]() ![]() |
Σ | 1..2 | string | Street name, number, direction & P.O. Box etc. This repeating element order: The order in which lines should appear in an address label Example General: 137 Nowhere Street |
![]() ![]() ![]() |
SΣ | 1..1 | string | Name of city, town etc. Example General: Erewhon |
![]() ![]() ![]() |
Σ | 0..1 | string | District name (aka county) Example General: Madison |
![]() ![]() ![]() |
SΣ | 0..1 | string | Sub-unit of country (abbreviations ok) |
![]() ![]() ![]() |
SΣ | 1..1 | string | Postal code for area Example General: 9132 |
![]() ![]() ![]() |
SΣ | 1..1 | string | Country can either be the ISO 3-letter country code or the full country name matching the code. |
![]() ![]() ![]() |
Σ | 0..1 | Period | Time period when address was/is in use Example General: {"start":"2010-03-23","end":"2010-07-01"} |
![]() |
Path | Conformance | ValueSet | URI |
Address.use | required | AddressUsehttp://hl7.org/fhir/ValueSet/address-use|5.0.0 from the FHIR Standard | |
Address.type | required | AddressTypehttp://hl7.org/fhir/ValueSet/address-type|5.0.0 from the FHIR Standard |
Id | Grade | Path(s) | Details | Requirements |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() | |
spl-2.1.6.4 | error | Address | If the country is USA, then the state and postal code exist : country = 'USA' implies (state.exists() and state.length() = 2 and postalCode.exists()) | |
spl-2.1.6.5 | error | Address | If the country is USA, then the postal code is 5 digits with an optional dash and 4 numbers : country = 'USA' implies postalCode.matches('^[0-9]{5}(-[0-9]{4})?$') |
Other representations of profile: CSV, Excel, Schematron
IG © 2020+ HL7 International / Biomedical Research and Regulation. Package hl7.fhir.us.spl#0.2.5 based on FHIR 5.0.0. Generated 2025-03-20
Links: Table of Contents |
QA Report
| Version History |
|
Propose a change