Skip to content

Commit de16c38

Browse files
authored
Merge pull request #423 from hl7ch/issue422_address_country_binding
Add extensible binding to BFS country codes for Address.country
2 parents 25712ae + 45dc139 commit de16c38

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

input/fsh/aliases.fsh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Alias: $standardterms = http://standardterms.edqm.eu
1313

1414
Alias: $IHE.FormatCode.codesystem = http://ihe.net/fhir/ihe.formatcode.fhir/CodeSystem/formatcode
1515

16+
Alias: $bfs-country-codes = http://fhir.ch/ig/ch-term/ValueSet/bfs-country-codes
1617
Alias: $bfs-medstats-18-admittype = http://fhir.ch/ig/ch-core/CodeSystem/bfs-medstats-18-admittype
1718
Alias: $bfs-medstats-18-admittype_1 = http://fhir.ch/ig/ch-core/ValueSet/bfs-medstats-18-admittype
1819
Alias: $bfs-medstats-19-admitrole = http://fhir.ch/ig/ch-core/CodeSystem/bfs-medstats-19-admitrole

input/fsh/profiles-datatypes/CHCoreAddress.fsh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,16 @@ Description: "address incorporating eCH-0010 postal address extensions"
4545
ECH007MunicipalityId named bfs 0..1
4646
* state from http://fhir.ch/ig/ch-core/ValueSet/ech-7-cantonabbreviation (example)
4747
* state ^binding.description = "Use these values for a Swiss or Liechtenstein address"
48+
* country from $bfs-country-codes (preferred)
4849
* country.extension ^slicing.discriminator[0].type = #value
4950
* country.extension ^slicing.discriminator[=].path = "url"
5051
* country.extension ^slicing.rules = #open
5152
* country.extension contains
5253
$iso21090-SC-coding named countrycode 0..1
5354
* country.extension[countrycode] obeys ch-addr-1
5455
* country.extension[countrycode] ^short = "ISO Country Alpha-2 or ISO Country Alpha-3 code"
55-
* country.extension[countrycode] ^definition = "The content of the country code element (if present) SHALL be selected EITHER from ValueSet ISO Country Alpha-2 http://hl7.org/fhir/ValueSet/iso3166-1-2 OR MAY be selected from ISO Country Alpha-3 Value Set http://hl7.org/fhir/ValueSet/iso3166-1-3, if the country is not specified in value Set ISO Country Alpha-2 http://hl7.org/fhir/ValueSet/iso3166-1-2."
56+
* country.extension[countrycode] ^definition = "BFS defines the valid set of countries. Values are from the 'ISO 3166-1 country codes' code system."
57+
* country.extension[countrycode].valueCoding from $bfs-country-codes (extensible)
5658

5759

5860

input/pagecontent/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ All significant changes to this FHIR implementation guide will be documented on
1010

1111
#### Added
1212
* [#394](https://github.com/hl7ch/ch-core/issues/394): Guidance - Usage of Swiss Core Artifacts
13+
* [#422](https://github.com/hl7ch/ch-core/issues/422): Add extensible binding to BFS country codes ValueSet for Address.country
1314

1415
#### Changed / Updated
1516
* [#416](https://github.com/hl7ch/ch-core/issues/416): Relax HumanName rule for EPR Patient and Practitioner (require only family name, not given name)

0 commit comments

Comments
 (0)