CH Core (R4)
4.0.1 - trial-use Switzerland flag

This page is part of the CH Core (R4) (v4.0.1: STU 4) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version. For a full list of available versions, see the Directory of published versions

Data Type Profile: CH Core Address

Official URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-address Version: 4.0.1
Active as of 2023-12-28 Computable Name: CHCoreAddress

Copyright/Legal: CC0-1.0

address incorporating eCH-0010 postal address extensions

Usage:

Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

This structure is derived from Address

NameFlagsCard.TypeDescription & Constraintsdoco
.. Address C0..*AddressAn address expressed using postal conventions (as opposed to GPS or other location definition formats)
ch-addr-2: For a Swiss address, a canton abbreviation from the value set 'eCH-0007 Canton Abbreviation' must be used.
... line
.... Slices for extension 0..*ExtensionExtension
Slice: Ordered, Open by value:url, value:value
..... addressLine1 0..1codeExtension
URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-linetype
Binding: eCH-010 Address Line Type (extensible)
...... value[x] 1..1codeValue of extension
...... value[x]:valueCode 1..1codeValue of extension
Fixed Value: addressLine1
..... addressLine2 0..1codeExtension
URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-linetype
Binding: eCH-010 Address Line Type (extensible)
...... value[x] 1..1codeValue of extension
...... value[x]:valueCode 1..1codeValue of extension
Fixed Value: addressLine2
..... street 0..1codeExtension
URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-linetype
Binding: eCH-010 Address Line Type (extensible)
...... value[x] 1..1codeValue of extension
...... value[x]:valueCode 1..1codeValue of extension
Fixed Value: street
..... streetName 0..1stringstreet part of the street line, e.g. withouth housenumber
URL: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName
..... houseNumber 0..1stringhouseNumber part of the street line
URL: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber
..... unitID 0..1stringunitID, dwellingNumber part of the street line
URL: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-unitID
..... postOfficeBoxText 0..1codePostbox addresses need an postbox text and optional postbox number
URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-linetype
Binding: eCH-010 Address Line Type (extensible)
...... value[x] 1..1codeValue of extension
...... value[x]:valueCode 1..1codeValue of extension
Fixed Value: postOfficeBoxText
..... postOfficeBoxNumber 0..1stringOptional postOfficeBoxNumber as a separate part of the postOfficeBoxText
URL: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox
... city 0..1stringName of city, town etc.
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
.... bfs 0..1stringExtension
URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-7-municipalityid
... district 0..1stringDistrict name (aka county)
... postalCode 0..1stringPostal code for area
... country 0..1stringCountry (e.g. can be ISO 3166 2 or 3 letter code)
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
.... countrycode C0..1CodingISO Country Alpha-2 or ISO Country Alpha-3 code
URL: http://hl7.org/fhir/StructureDefinition/iso21090-SC-coding
Binding: (unbound) (example): A coded representation for a string. Could be codes for country in a country address part, codes for prefixes in a name part, etc.


ch-addr-1: ISO Country Alpha-2 or ISO Country Alpha-3 code

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSet
Address.stateexampleECH007CantonFLAbbreviation (a valid code from eCH-0007 Canton Abbreviation incl. FL (Fürstentum Liechtenstein))

Constraints

IdGradePath(s)DetailsRequirements
ch-addr-1errorAddress.country.extension:countrycodeISO Country Alpha-2 or ISO Country Alpha-3 code
: ((value.code.length()=2) and value.code.memberOf('http://hl7.org/fhir/ValueSet/iso3166-1-2')) or ((value.code.length() = 3) and value.code.memberOf('http://hl7.org/fhir/ValueSet/iso3166-1-3'))
ch-addr-2errorAddressFor a Swiss address, a canton abbreviation from the value set 'eCH-0007 Canton Abbreviation' must be used.
: country.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/iso21090-SC-coding').empty() or (country.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/iso21090-SC-coding').value.code.startsWith('CH') = false) or (country.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/iso21090-SC-coding').value.code.startsWith('CH').exists() and (state.empty() or state.memberOf('http://fhir.ch/ig/ch-core/ValueSet/ech-7-cantonabbreviation')))
NameFlagsCard.TypeDescription & Constraintsdoco
.. Address C0..*AddressAn address expressed using postal conventions (as opposed to GPS or other location definition formats)
ch-addr-2: For a Swiss address, a canton abbreviation from the value set 'eCH-0007 Canton Abbreviation' must be used.
... use ?!Σ0..1codehome | work | temp | old | billing - purpose of this address
Binding: AddressUse (required): The use of an address.


Example General: home
... city Σ0..1stringName of city, town etc.
Example General: Erewhon
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
.... bfs 0..1stringExtension
URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-7-municipalityid
... district Σ0..1stringDistrict name (aka county)
Example General: Madison
... postalCode Σ0..1stringPostal code for area
Example General: 9132
... country Σ0..1stringCountry (e.g. can be ISO 3166 2 or 3 letter code)
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
.... countrycode C0..1CodingISO Country Alpha-2 or ISO Country Alpha-3 code
URL: http://hl7.org/fhir/StructureDefinition/iso21090-SC-coding
Binding: (unbound) (example): A coded representation for a string. Could be codes for country in a country address part, codes for prefixes in a name part, etc.


ch-addr-1: ISO Country Alpha-2 or ISO Country Alpha-3 code

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
Address.userequiredAddressUse
Address.stateexampleECH007CantonFLAbbreviation (a valid code from eCH-0007 Canton Abbreviation incl. FL (Fürstentum Liechtenstein))

Constraints

IdGradePath(s)DetailsRequirements
ch-addr-1errorAddress.country.extension:countrycodeISO Country Alpha-2 or ISO Country Alpha-3 code
: ((value.code.length()=2) and value.code.memberOf('http://hl7.org/fhir/ValueSet/iso3166-1-2')) or ((value.code.length() = 3) and value.code.memberOf('http://hl7.org/fhir/ValueSet/iso3166-1-3'))
ch-addr-2errorAddressFor a Swiss address, a canton abbreviation from the value set 'eCH-0007 Canton Abbreviation' must be used.
: country.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/iso21090-SC-coding').empty() or (country.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/iso21090-SC-coding').value.code.startsWith('CH') = false) or (country.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/iso21090-SC-coding').value.code.startsWith('CH').exists() and (state.empty() or state.memberOf('http://fhir.ch/ig/ch-core/ValueSet/ech-7-cantonabbreviation')))
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
NameFlagsCard.TypeDescription & Constraintsdoco
.. Address C0..*AddressAn address expressed using postal conventions (as opposed to GPS or other location definition formats)
ch-addr-2: For a Swiss address, a canton abbreviation from the value set 'eCH-0007 Canton Abbreviation' must be used.
... id 0..1stringUnique id for inter-element referencing
... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
... use ?!Σ0..1codehome | work | temp | old | billing - purpose of this address
Binding: AddressUse (required): The use of an address.


Example General: home
... text Σ0..1stringText representation of the address
Example General: 137 Nowhere Street, Erewhon 9132
... line Σ0..*stringStreet 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
.... id 0..1stringxml:id (or equivalent in JSON)
.... Slices for extension 0..*ExtensionExtension
Slice: Ordered, Open by value:url, value:value
..... addressLine1 0..1codeExtension
URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-linetype
Binding: eCH-010 Address Line Type (extensible)
...... id 0..1stringUnique id for inter-element referencing
...... extension 0..0
...... url 1..1uri"http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-linetype"
...... Slices for value[x] 1..1codeValue of extension
Slice: Unordered, Closed by type:$this
....... value[x]:valueCode 1..1codeValue of extension
Binding: eCH-010 Address Line Type (extensible)
Fixed Value: addressLine1
..... addressLine2 0..1codeExtension
URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-linetype
Binding: eCH-010 Address Line Type (extensible)
...... id 0..1stringUnique id for inter-element referencing
...... extension 0..0
...... url 1..1uri"http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-linetype"
...... Slices for value[x] 1..1codeValue of extension
Slice: Unordered, Closed by type:$this
....... value[x]:valueCode 1..1codeValue of extension
Binding: eCH-010 Address Line Type (extensible)
Fixed Value: addressLine2
..... street 0..1codeExtension
URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-linetype
Binding: eCH-010 Address Line Type (extensible)
...... id 0..1stringUnique id for inter-element referencing
...... extension 0..0
...... url 1..1uri"http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-linetype"
...... Slices for value[x] 1..1codeValue of extension
Slice: Unordered, Closed by type:$this
....... value[x]:valueCode 1..1codeValue of extension
Binding: eCH-010 Address Line Type (extensible)
Fixed Value: street
..... streetName 0..1stringstreet part of the street line, e.g. withouth housenumber
URL: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName
..... houseNumber 0..1stringhouseNumber part of the street line
URL: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber
..... unitID 0..1stringunitID, dwellingNumber part of the street line
URL: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-unitID
..... postOfficeBoxText 0..1codePostbox addresses need an postbox text and optional postbox number
URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-linetype
Binding: eCH-010 Address Line Type (extensible)
...... id 0..1stringUnique id for inter-element referencing
...... extension 0..0
...... url 1..1uri"http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-linetype"
...... Slices for value[x] 1..1codeValue of extension
Slice: Unordered, Closed by type:$this
....... value[x]:valueCode 1..1codeValue of extension
Binding: eCH-010 Address Line Type (extensible)
Fixed Value: postOfficeBoxText
..... postOfficeBoxNumber 0..1stringOptional postOfficeBoxNumber as a separate part of the postOfficeBoxText
URL: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox
.... value 0..1stringPrimitive value for string
Max Length: 1048576
... city Σ0..1stringName of city, town etc.
Example General: Erewhon
.... id 0..1stringxml:id (or equivalent in JSON)
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
.... bfs 0..1stringExtension
URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-7-municipalityid
.... value 0..1stringPrimitive value for string
Max Length: 1048576
... district Σ0..1stringDistrict name (aka county)
Example General: Madison
... state Σ0..1stringSub-unit of country (abbreviations ok)
Binding: eCH-0007 Canton Abbreviation incl. FL (Fürstentum Liechtenstein) (example): Use these values for a Swiss or Liechtenstein address

... postalCode Σ0..1stringPostal code for area
Example General: 9132
... country Σ0..1stringCountry (e.g. can be ISO 3166 2 or 3 letter code)
.... id 0..1stringxml:id (or equivalent in JSON)
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
.... countrycode C0..1CodingISO Country Alpha-2 or ISO Country Alpha-3 code
URL: http://hl7.org/fhir/StructureDefinition/iso21090-SC-coding
Binding: (unbound) (example): A coded representation for a string. Could be codes for country in a country address part, codes for prefixes in a name part, etc.


ch-addr-1: ISO Country Alpha-2 or ISO Country Alpha-3 code
.... value 0..1stringPrimitive value for string
Max Length: 1048576
... period Σ0..1PeriodTime period when address was/is in use
Example General: {"start":"2010-03-23","end":"2010-07-01"}

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / Code
Address.userequiredAddressUse
Address.typerequiredAddressType
Address.line.extension:addressLine1.value[x]:valueCodeextensibleFixed Value: addressLine1
Address.line.extension:addressLine2.value[x]:valueCodeextensibleFixed Value: addressLine2
Address.line.extension:street.value[x]:valueCodeextensibleFixed Value: street
Address.line.extension:postOfficeBoxText.value[x]:valueCodeextensibleFixed Value: postOfficeBoxText
Address.stateexampleECH007CantonFLAbbreviation (a valid code from eCH-0007 Canton Abbreviation incl. FL (Fürstentum Liechtenstein))

Constraints

IdGradePath(s)DetailsRequirements
ch-addr-1errorAddress.country.extension:countrycodeISO Country Alpha-2 or ISO Country Alpha-3 code
: ((value.code.length()=2) and value.code.memberOf('http://hl7.org/fhir/ValueSet/iso3166-1-2')) or ((value.code.length() = 3) and value.code.memberOf('http://hl7.org/fhir/ValueSet/iso3166-1-3'))
ch-addr-2errorAddressFor a Swiss address, a canton abbreviation from the value set 'eCH-0007 Canton Abbreviation' must be used.
: country.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/iso21090-SC-coding').empty() or (country.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/iso21090-SC-coding').value.code.startsWith('CH') = false) or (country.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/iso21090-SC-coding').value.code.startsWith('CH').exists() and (state.empty() or state.memberOf('http://fhir.ch/ig/ch-core/ValueSet/ech-7-cantonabbreviation')))
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

Differential View

This structure is derived from Address

NameFlagsCard.TypeDescription & Constraintsdoco
.. Address C0..*AddressAn address expressed using postal conventions (as opposed to GPS or other location definition formats)
ch-addr-2: For a Swiss address, a canton abbreviation from the value set 'eCH-0007 Canton Abbreviation' must be used.
... line
.... Slices for extension 0..*ExtensionExtension
Slice: Ordered, Open by value:url, value:value
..... addressLine1 0..1codeExtension
URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-linetype
Binding: eCH-010 Address Line Type (extensible)
...... value[x] 1..1codeValue of extension
...... value[x]:valueCode 1..1codeValue of extension
Fixed Value: addressLine1
..... addressLine2 0..1codeExtension
URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-linetype
Binding: eCH-010 Address Line Type (extensible)
...... value[x] 1..1codeValue of extension
...... value[x]:valueCode 1..1codeValue of extension
Fixed Value: addressLine2
..... street 0..1codeExtension
URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-linetype
Binding: eCH-010 Address Line Type (extensible)
...... value[x] 1..1codeValue of extension
...... value[x]:valueCode 1..1codeValue of extension
Fixed Value: street
..... streetName 0..1stringstreet part of the street line, e.g. withouth housenumber
URL: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName
..... houseNumber 0..1stringhouseNumber part of the street line
URL: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber
..... unitID 0..1stringunitID, dwellingNumber part of the street line
URL: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-unitID
..... postOfficeBoxText 0..1codePostbox addresses need an postbox text and optional postbox number
URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-linetype
Binding: eCH-010 Address Line Type (extensible)
...... value[x] 1..1codeValue of extension
...... value[x]:valueCode 1..1codeValue of extension
Fixed Value: postOfficeBoxText
..... postOfficeBoxNumber 0..1stringOptional postOfficeBoxNumber as a separate part of the postOfficeBoxText
URL: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox
... city 0..1stringName of city, town etc.
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
.... bfs 0..1stringExtension
URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-7-municipalityid
... district 0..1stringDistrict name (aka county)
... postalCode 0..1stringPostal code for area
... country 0..1stringCountry (e.g. can be ISO 3166 2 or 3 letter code)
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
.... countrycode C0..1CodingISO Country Alpha-2 or ISO Country Alpha-3 code
URL: http://hl7.org/fhir/StructureDefinition/iso21090-SC-coding
Binding: (unbound) (example): A coded representation for a string. Could be codes for country in a country address part, codes for prefixes in a name part, etc.


ch-addr-1: ISO Country Alpha-2 or ISO Country Alpha-3 code

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSet
Address.stateexampleECH007CantonFLAbbreviation (a valid code from eCH-0007 Canton Abbreviation incl. FL (Fürstentum Liechtenstein))

Constraints

IdGradePath(s)DetailsRequirements
ch-addr-1errorAddress.country.extension:countrycodeISO Country Alpha-2 or ISO Country Alpha-3 code
: ((value.code.length()=2) and value.code.memberOf('http://hl7.org/fhir/ValueSet/iso3166-1-2')) or ((value.code.length() = 3) and value.code.memberOf('http://hl7.org/fhir/ValueSet/iso3166-1-3'))
ch-addr-2errorAddressFor a Swiss address, a canton abbreviation from the value set 'eCH-0007 Canton Abbreviation' must be used.
: country.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/iso21090-SC-coding').empty() or (country.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/iso21090-SC-coding').value.code.startsWith('CH') = false) or (country.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/iso21090-SC-coding').value.code.startsWith('CH').exists() and (state.empty() or state.memberOf('http://fhir.ch/ig/ch-core/ValueSet/ech-7-cantonabbreviation')))

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Address C0..*AddressAn address expressed using postal conventions (as opposed to GPS or other location definition formats)
ch-addr-2: For a Swiss address, a canton abbreviation from the value set 'eCH-0007 Canton Abbreviation' must be used.
... use ?!Σ0..1codehome | work | temp | old | billing - purpose of this address
Binding: AddressUse (required): The use of an address.


Example General: home
... city Σ0..1stringName of city, town etc.
Example General: Erewhon
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
.... bfs 0..1stringExtension
URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-7-municipalityid
... district Σ0..1stringDistrict name (aka county)
Example General: Madison
... postalCode Σ0..1stringPostal code for area
Example General: 9132
... country Σ0..1stringCountry (e.g. can be ISO 3166 2 or 3 letter code)
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
.... countrycode C0..1CodingISO Country Alpha-2 or ISO Country Alpha-3 code
URL: http://hl7.org/fhir/StructureDefinition/iso21090-SC-coding
Binding: (unbound) (example): A coded representation for a string. Could be codes for country in a country address part, codes for prefixes in a name part, etc.


ch-addr-1: ISO Country Alpha-2 or ISO Country Alpha-3 code

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
Address.userequiredAddressUse
Address.stateexampleECH007CantonFLAbbreviation (a valid code from eCH-0007 Canton Abbreviation incl. FL (Fürstentum Liechtenstein))

Constraints

IdGradePath(s)DetailsRequirements
ch-addr-1errorAddress.country.extension:countrycodeISO Country Alpha-2 or ISO Country Alpha-3 code
: ((value.code.length()=2) and value.code.memberOf('http://hl7.org/fhir/ValueSet/iso3166-1-2')) or ((value.code.length() = 3) and value.code.memberOf('http://hl7.org/fhir/ValueSet/iso3166-1-3'))
ch-addr-2errorAddressFor a Swiss address, a canton abbreviation from the value set 'eCH-0007 Canton Abbreviation' must be used.
: country.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/iso21090-SC-coding').empty() or (country.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/iso21090-SC-coding').value.code.startsWith('CH') = false) or (country.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/iso21090-SC-coding').value.code.startsWith('CH').exists() and (state.empty() or state.memberOf('http://fhir.ch/ig/ch-core/ValueSet/ech-7-cantonabbreviation')))
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Address C0..*AddressAn address expressed using postal conventions (as opposed to GPS or other location definition formats)
ch-addr-2: For a Swiss address, a canton abbreviation from the value set 'eCH-0007 Canton Abbreviation' must be used.
... id 0..1stringUnique id for inter-element referencing
... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
... use ?!Σ0..1codehome | work | temp | old | billing - purpose of this address
Binding: AddressUse (required): The use of an address.


Example General: home
... text Σ0..1stringText representation of the address
Example General: 137 Nowhere Street, Erewhon 9132
... line Σ0..*stringStreet 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
.... id 0..1stringxml:id (or equivalent in JSON)
.... Slices for extension 0..*ExtensionExtension
Slice: Ordered, Open by value:url, value:value
..... addressLine1 0..1codeExtension
URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-linetype
Binding: eCH-010 Address Line Type (extensible)
...... id 0..1stringUnique id for inter-element referencing
...... extension 0..0
...... url 1..1uri"http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-linetype"
...... Slices for value[x] 1..1codeValue of extension
Slice: Unordered, Closed by type:$this
....... value[x]:valueCode 1..1codeValue of extension
Binding: eCH-010 Address Line Type (extensible)
Fixed Value: addressLine1
..... addressLine2 0..1codeExtension
URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-linetype
Binding: eCH-010 Address Line Type (extensible)
...... id 0..1stringUnique id for inter-element referencing
...... extension 0..0
...... url 1..1uri"http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-linetype"
...... Slices for value[x] 1..1codeValue of extension
Slice: Unordered, Closed by type:$this
....... value[x]:valueCode 1..1codeValue of extension
Binding: eCH-010 Address Line Type (extensible)
Fixed Value: addressLine2
..... street 0..1codeExtension
URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-linetype
Binding: eCH-010 Address Line Type (extensible)
...... id 0..1stringUnique id for inter-element referencing
...... extension 0..0
...... url 1..1uri"http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-linetype"
...... Slices for value[x] 1..1codeValue of extension
Slice: Unordered, Closed by type:$this
....... value[x]:valueCode 1..1codeValue of extension
Binding: eCH-010 Address Line Type (extensible)
Fixed Value: street
..... streetName 0..1stringstreet part of the street line, e.g. withouth housenumber
URL: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName
..... houseNumber 0..1stringhouseNumber part of the street line
URL: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber
..... unitID 0..1stringunitID, dwellingNumber part of the street line
URL: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-unitID
..... postOfficeBoxText 0..1codePostbox addresses need an postbox text and optional postbox number
URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-linetype
Binding: eCH-010 Address Line Type (extensible)
...... id 0..1stringUnique id for inter-element referencing
...... extension 0..0
...... url 1..1uri"http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-10-linetype"
...... Slices for value[x] 1..1codeValue of extension
Slice: Unordered, Closed by type:$this
....... value[x]:valueCode 1..1codeValue of extension
Binding: eCH-010 Address Line Type (extensible)
Fixed Value: postOfficeBoxText
..... postOfficeBoxNumber 0..1stringOptional postOfficeBoxNumber as a separate part of the postOfficeBoxText
URL: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox
.... value 0..1stringPrimitive value for string
Max Length: 1048576
... city Σ0..1stringName of city, town etc.
Example General: Erewhon
.... id 0..1stringxml:id (or equivalent in JSON)
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
.... bfs 0..1stringExtension
URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-7-municipalityid
.... value 0..1stringPrimitive value for string
Max Length: 1048576
... district Σ0..1stringDistrict name (aka county)
Example General: Madison
... state Σ0..1stringSub-unit of country (abbreviations ok)
Binding: eCH-0007 Canton Abbreviation incl. FL (Fürstentum Liechtenstein) (example): Use these values for a Swiss or Liechtenstein address

... postalCode Σ0..1stringPostal code for area
Example General: 9132
... country Σ0..1stringCountry (e.g. can be ISO 3166 2 or 3 letter code)
.... id 0..1stringxml:id (or equivalent in JSON)
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
.... countrycode C0..1CodingISO Country Alpha-2 or ISO Country Alpha-3 code
URL: http://hl7.org/fhir/StructureDefinition/iso21090-SC-coding
Binding: (unbound) (example): A coded representation for a string. Could be codes for country in a country address part, codes for prefixes in a name part, etc.


ch-addr-1: ISO Country Alpha-2 or ISO Country Alpha-3 code
.... value 0..1stringPrimitive value for string
Max Length: 1048576
... period Σ0..1PeriodTime period when address was/is in use
Example General: {"start":"2010-03-23","end":"2010-07-01"}

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / Code
Address.userequiredAddressUse
Address.typerequiredAddressType
Address.line.extension:addressLine1.value[x]:valueCodeextensibleFixed Value: addressLine1
Address.line.extension:addressLine2.value[x]:valueCodeextensibleFixed Value: addressLine2
Address.line.extension:street.value[x]:valueCodeextensibleFixed Value: street
Address.line.extension:postOfficeBoxText.value[x]:valueCodeextensibleFixed Value: postOfficeBoxText
Address.stateexampleECH007CantonFLAbbreviation (a valid code from eCH-0007 Canton Abbreviation incl. FL (Fürstentum Liechtenstein))

Constraints

IdGradePath(s)DetailsRequirements
ch-addr-1errorAddress.country.extension:countrycodeISO Country Alpha-2 or ISO Country Alpha-3 code
: ((value.code.length()=2) and value.code.memberOf('http://hl7.org/fhir/ValueSet/iso3166-1-2')) or ((value.code.length() = 3) and value.code.memberOf('http://hl7.org/fhir/ValueSet/iso3166-1-3'))
ch-addr-2errorAddressFor a Swiss address, a canton abbreviation from the value set 'eCH-0007 Canton Abbreviation' must be used.
: country.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/iso21090-SC-coding').empty() or (country.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/iso21090-SC-coding').value.code.startsWith('CH') = false) or (country.extension.where(url = 'http://hl7.org/fhir/StructureDefinition/iso21090-SC-coding').value.code.startsWith('CH').exists() and (state.empty() or state.memberOf('http://fhir.ch/ig/ch-core/ValueSet/ech-7-cantonabbreviation')))
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

 

Other representations of profile: CSV, Excel, Schematron