Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
125 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Invariant: ch-addr-1 | ||
Description: "ISO Country Alpha-2 or ISO Country Alpha-3 code" | ||
Severity: #error | ||
Expression: "((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'))" | ||
|
||
|
||
Invariant: ch-addr-2 | ||
Description: "For a Swiss address, a canton abbreviation from the value set 'eCH-0007 Canton Abbreviation' must be used." | ||
Severity: #error | ||
Expression: "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')))" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// https://www.ech.ch/de/ech/ech-0007/6.0 | ||
// https://www.ech.ch/sites/default/files/imce/eCH-Dossier/0001-0030/eCH-0007/6.00/Beilagen/eCH-0007-6-0.xsd | ||
|
||
CodeSystem: ECH007CantonFLAbbreviation | ||
Id: ech-7-cantonflabbreviation | ||
Title: "eCH-0007 Canton Abbreviation incl. FL (Fürstentum Liechtenstein)" | ||
Description: "eCH-0007 defines cantonAbbreviation/cantonFLAbbreviation (Kantonskürzel inkl. Fürstentum Liechtenstein), see [here](https://www.ech.ch/de/ech/ech-0007/6.0)." | ||
* ^experimental = false | ||
* ^caseSensitive = true | ||
* ^content = #complete | ||
* #AG | ||
* #AR | ||
* #AI | ||
* #BL | ||
* #BS | ||
* #BE | ||
* #FR | ||
* #GE | ||
* #GL | ||
* #GR | ||
* #JU | ||
* #LU | ||
* #NE | ||
* #NW | ||
* #OW | ||
* #SH | ||
* #SZ | ||
* #SO | ||
* #SG | ||
* #TI | ||
* #TG | ||
* #UR | ||
* #VD | ||
* #VS | ||
* #ZG | ||
* #ZH | ||
* #FL | ||
|
||
|
||
|
||
ValueSet: ECH007CantonAbbreviation | ||
Id: ech-7-cantonabbreviation | ||
Title: "eCH-0007 Canton Abbreviation" | ||
Description: "eCH-0007: Each municipality has a unique cantonal affiliation, which can be defined by the cantonal abbreviation commonly used in Switzerland." | ||
* ^experimental = false | ||
* include codes from system ECH007CantonFLAbbreviation | ||
* exclude http://fhir.ch/ig/ch-core/CodeSystem/ech-7-cantonflabbreviation#FL | ||
|
||
|
||
ValueSet: ECH007CantonFLAbbreviation | ||
Id: ech-7-cantonflabbreviation | ||
Title: "eCH-0007 Canton Abbreviation incl. FL (Fürstentum Liechtenstein)" | ||
Description: "eCH-0007: Analogous to cantonAbbreviation, but contains the entry 'FL' for the Principality of Liechtenstein in addition to the actual cantons. " | ||
* ^experimental = false | ||
* include codes from system ECH007CantonFLAbbreviation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters