CH Core (R4)
3.0.0 - STU3 Switzerland flag

This page is part of the CH Core (R4) (v3.0.0: STU 3) based on FHIR R4. . For a full list of available versions, see the Directory of published versions

Data Type Profile: Address for Place of Origin

Official URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-address-ech-11-placeoforigin Version: 3.0.0
Active as of 2018-11-26 Computable Name: CHCoreAddressECH11PlaceOfOrigin

Copyright/Legal: CC-BY-SA-4.0

Place of Origin for eCH-0011

Usage:

Formal Views of Profile Content

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

This structure is derived from CHCoreAddress

NameFlagsCard.TypeDescription & Constraintsdoco
.. Address 0..*CHCoreAddressAn address expressed using postal conventions (as opposed to GPS or other location definition formats)
... use 0..0
... type 0..0
... text 0..0
... city Σ0..1stringName of place of origin (municipality)
... district Σ0..0
... state 1..1stringCanton
... postalCode 0..0
... country Σ0..0
... period 0..0

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. Address 0..*CHCoreAddressAn address expressed using postal conventions (as opposed to GPS or other location definition formats)
... city Σ0..1stringName of place of origin (municipality)
Example General: Erewhon
.... bfs 0..1stringExtension
URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-7-municipalityid
... state Σ1..1stringCanton

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / Code
Address.line.extension:addressLine1.value[x]:valueCoderequiredFixed Value: addressLine1
Address.line.extension:addressLine2.value[x]:valueCoderequiredFixed Value: addressLine2
Address.line.extension:street.value[x]:valueCoderequiredFixed Value: street
Address.line.extension:postOfficeBoxText.value[x]:valueCoderequiredFixed Value: postOfficeBoxText

Constraints

IdGradePath(s)DetailsRequirements
ch-addr-1errorAddress.country.extension:countrycodeISO Country Alpha-2 or ISO Country Alpha-3 code
: ((valueCoding.code.length()=2) and valueCoding.code.memberOf('http://hl7.org/fhir/ValueSet/iso3166-1-2')) or ((valueCoding.code.length() = 3) and valueCoding.code.memberOf('http://hl7.org/fhir/ValueSet/iso3166-1-3'))
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 0..*CHCoreAddressAn address expressed using postal conventions (as opposed to GPS or other location definition formats)
... id 0..1stringUnique id for inter-element referencing
... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
... city Σ0..1stringName of place of origin (municipality)
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

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / Code
Address.line.extension:addressLine1.value[x]:valueCoderequiredFixed Value: addressLine1
Address.line.extension:addressLine2.value[x]:valueCoderequiredFixed Value: addressLine2
Address.line.extension:street.value[x]:valueCoderequiredFixed Value: street
Address.line.extension:postOfficeBoxText.value[x]:valueCoderequiredFixed Value: postOfficeBoxText

Constraints

IdGradePath(s)DetailsRequirements
ch-addr-1errorAddress.country.extension:countrycodeISO Country Alpha-2 or ISO Country Alpha-3 code
: ((valueCoding.code.length()=2) and valueCoding.code.memberOf('http://hl7.org/fhir/ValueSet/iso3166-1-2')) or ((valueCoding.code.length() = 3) and valueCoding.code.memberOf('http://hl7.org/fhir/ValueSet/iso3166-1-3'))
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()

This structure is derived from CHCoreAddress

Summary

Mandatory: 1 element
Prohibited: 8 elements

Extensions

This structure refers to these extensions:

Differential View

This structure is derived from CHCoreAddress

NameFlagsCard.TypeDescription & Constraintsdoco
.. Address 0..*CHCoreAddressAn address expressed using postal conventions (as opposed to GPS or other location definition formats)
... use 0..0
... type 0..0
... text 0..0
... city Σ0..1stringName of place of origin (municipality)
... district Σ0..0
... state 1..1stringCanton
... postalCode 0..0
... country Σ0..0
... period 0..0

doco Documentation for this format

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Address 0..*CHCoreAddressAn address expressed using postal conventions (as opposed to GPS or other location definition formats)
... city Σ0..1stringName of place of origin (municipality)
Example General: Erewhon
.... bfs 0..1stringExtension
URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-7-municipalityid
... state Σ1..1stringCanton

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / Code
Address.line.extension:addressLine1.value[x]:valueCoderequiredFixed Value: addressLine1
Address.line.extension:addressLine2.value[x]:valueCoderequiredFixed Value: addressLine2
Address.line.extension:street.value[x]:valueCoderequiredFixed Value: street
Address.line.extension:postOfficeBoxText.value[x]:valueCoderequiredFixed Value: postOfficeBoxText

Constraints

IdGradePath(s)DetailsRequirements
ch-addr-1errorAddress.country.extension:countrycodeISO Country Alpha-2 or ISO Country Alpha-3 code
: ((valueCoding.code.length()=2) and valueCoding.code.memberOf('http://hl7.org/fhir/ValueSet/iso3166-1-2')) or ((valueCoding.code.length() = 3) and valueCoding.code.memberOf('http://hl7.org/fhir/ValueSet/iso3166-1-3'))
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 0..*CHCoreAddressAn address expressed using postal conventions (as opposed to GPS or other location definition formats)
... id 0..1stringUnique id for inter-element referencing
... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
... city Σ0..1stringName of place of origin (municipality)
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

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / Code
Address.line.extension:addressLine1.value[x]:valueCoderequiredFixed Value: addressLine1
Address.line.extension:addressLine2.value[x]:valueCoderequiredFixed Value: addressLine2
Address.line.extension:street.value[x]:valueCoderequiredFixed Value: street
Address.line.extension:postOfficeBoxText.value[x]:valueCoderequiredFixed Value: postOfficeBoxText

Constraints

IdGradePath(s)DetailsRequirements
ch-addr-1errorAddress.country.extension:countrycodeISO Country Alpha-2 or ISO Country Alpha-3 code
: ((valueCoding.code.length()=2) and valueCoding.code.memberOf('http://hl7.org/fhir/ValueSet/iso3166-1-2')) or ((valueCoding.code.length() = 3) and valueCoding.code.memberOf('http://hl7.org/fhir/ValueSet/iso3166-1-3'))
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()

This structure is derived from CHCoreAddress

Summary

Mandatory: 1 element
Prohibited: 8 elements

Extensions

This structure refers to these extensions:

 

Other representations of profile: CSV, Excel, Schematron