diff --git a/input/ch.fhir.ig.ch-core.xml b/input/ch.fhir.ig.ch-core.xml index 8fc1c10..8459b41 100644 --- a/input/ch.fhir.ig.ch-core.xml +++ b/input/ch.fhir.ig.ch-core.xml @@ -174,7 +174,7 @@ - + @@ -337,6 +337,24 @@ + + + + + + + + + + + + + + + + + + @@ -363,6 +381,24 @@ + + + + + + + + + + + + + + + + + + @@ -514,6 +550,25 @@ + + + + + + + + + + + + + + + + + + + @@ -664,6 +719,24 @@ + + + + + + + + + + + + + + + + + + @@ -786,6 +859,24 @@ + + + + + + + + + + + + + + + + + + @@ -800,12 +891,12 @@ - <generation value="html"/> + <generation value="markdown"/> </page> <page> <nameUrl value="extensions.html"/> <title value="Extensions"/> - <generation value="html"/> + <generation value="markdown"/> </page> <page> <nameUrl value="terminology.html"/> diff --git a/input/examples/patient/MaxMuster.xml b/input/examples/patient/MaxMuster.xml index 626e3f1..f6d8ca7 100644 --- a/input/examples/patient/MaxMuster.xml +++ b/input/examples/patient/MaxMuster.xml @@ -28,21 +28,91 @@ </extension> </given> </name> + + <!-- eCH-0046: phone --> <telecom> <system value="phone"/> <value value="+41326851234"/> - <use value="home"/> + <use value="home"> + <extension url="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-46-phonecategory"> + <valueCodeableConcept> + <coding> + <system value="http://fhir.ch/ig/ch-core/CodeSystem/ech-46-phonecategory"/> + <code value="1"/> + <display value="private Telefonnummer"/> + </coding> + </valueCodeableConcept> + </extension> + </use> + </telecom> + <telecom> + <system value="phone"/> + <value value="079 333 22 11"/> + <use value="mobile"> + <extension url="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-46-phonecategory"> + <valueCodeableConcept> + <coding> + <system value="http://fhir.ch/ig/ch-core/CodeSystem/ech-46-phonecategory"/> + <code value="2"/> + <display value="private Mobil-Nummer"/> + </coding> + </valueCodeableConcept> + </extension> + </use> </telecom> <telecom> <system value="phone"/> <value value="+41321237788"/> - <use value="work"/> + <use value="work"> + <extension url="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-46-phonecategory"> + <valueCodeableConcept> + <coding> + <system value="http://fhir.ch/ig/ch-core/CodeSystem/ech-46-phonecategory"/> + <code value="6"/> + <display value="geschäftliche Nummer (Durchwahl)"/> + </coding> + </valueCodeableConcept> + </extension> + </use> </telecom> + <!-- eCH-0046: email --> <telecom> <system value="email"/> <value value="max.muster@sampledomain.ch"/> - <use value="home"/> + <use value="home"> + <extension url="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-46-emailcategory"> + <valueCodeableConcept> + <coding> + <system value="http://fhir.ch/ig/ch-core/CodeSystem/ech-46-emailcategory"/> + <code value="1"/> + <display value="private Email-Adresse"/> + </coding> + </valueCodeableConcept> + </extension> + </use> + </telecom> + <!-- eCH-0046: internet --> + <telecom> + <system value="url"/> + <value value="www.sampledomain.ch"/> + <use value="work"> + <extension url="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-46-internetcategory"> + <valueCodeableConcept> + <coding> + <system value="http://fhir.ch/ig/ch-core/CodeSystem/ech-46-internetcategory"/> + <code value="2"/> + <display value="geschäftliche Internet-Adresse"/> + </coding> + </valueCodeableConcept> + </extension> + </use> + </telecom> + <!-- different slice --> + <telecom> + <system value="sms"/> + <value value="079 333 22 11"/> </telecom> + <gender value="male"/> <birthDate value="1938-12-12"/> <address> diff --git a/input/ignoreWarnings.txt b/input/ignoreWarnings.txt index 972e12f..e03faf0 100644 --- a/input/ignoreWarnings.txt +++ b/input/ignoreWarnings.txt @@ -8,18 +8,10 @@ Unable to check if http://fhir.ch/ig/ch-epr-term/ValueSet/DocumentEntry.mimeType The Implementation Guide contains no examples for this profile The Implementation Guide contains no examples for this extension -# Example with identifier (local ID) which isn't defined in profile -INFORMATION: Practitioner/SchreibKraft: Practitioner.identifier[0]: This element does not match any known slice defined in the profile http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-practitioner|3.0.0 - -# The element identifier is sliced using pattern, since the fixed values affect different elements (e.g. system, type) -INFORMATION: StructureDefinition/ch-core-patient: StructureDefinition.snapshot.element[24].pattern.ofType(Identifier): The repeating element has a pattern. The pattern will apply to all the repeats (this has not been clear to all users) -INFORMATION: StructureDefinition/ch-core-patient-epr: StructureDefinition.snapshot.element[24].pattern.ofType(Identifier): The repeating element has a pattern. The pattern will apply to all the repeats (this has not been clear to all users) -INFORMATION: StructureDefinition/ch-core-encounter: StructureDefinition.snapshot.element[10].pattern.ofType(Identifier): The repeating element has a pattern. The pattern will apply to all the repeats (this has not been clear to all users) - # Wrong example in the base specification for the consent resource if identifier.system is ''urn:ietf:rfc:3986'', then the identifier.value must be a full URI (e.g. start with a scheme) # Build error The image source 'pdf1' cannot be resolved The link 'www.grouppractice.ch' for "www.grouppractice.ch" cannot be resolved - +The link 'www.sampledomain.ch' for "www.sampledomain.ch" cannot be resolved diff --git a/input/pagecontent/extensions.md b/input/pagecontent/extensions.md new file mode 100644 index 0000000..a6d2020 --- /dev/null +++ b/input/pagecontent/extensions.md @@ -0,0 +1,2 @@ + +{% include list-extensions.xhtml %} diff --git a/input/pagecontent/extensions.xml b/input/pagecontent/extensions.xml deleted file mode 100644 index e6380c4..0000000 --- a/input/pagecontent/extensions.xml +++ /dev/null @@ -1,7 +0,0 @@ -<div xmlns="http://www.w3.org/1999/xhtml" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hl7.org/fhir ../../input-cache/schemas-r5/fhir-single.xsd"> - - <div> - {% include list-extensions.xhtml %} - </div> -</div> \ No newline at end of file diff --git a/input/pagecontent/index.md b/input/pagecontent/index.md index b8f9151..55979f8 100644 --- a/input/pagecontent/index.md +++ b/input/pagecontent/index.md @@ -4,7 +4,7 @@ This implementation guide is provided to support the use of FHIR<sup>®© This guide is a working specification. We anticipate that it will be implemented and tested by FHIR system producers whose feedback will help improve its content. With this standard for trial use, we are looking for feedback on whether the following goals have been met: - The guide provides guidance on essential resources for identifiers, code systems, value sets and naming systems in Switzerland, specifically in relation to the Swiss Electronic Patient Record ([EPR](https://www.patientendossier.ch/en)). - The guide defines extensions that are necessary for local use in Switzerland. -- The guide covers the requirements for [eCH-0010 postal address (V7.0)](https://www.ech.ch/de/ech/ech-0010/7.0) and [eCH-0011 personal data (V8.1)](https://www.ech.ch/de/ech/ech-0011/8.1) (including [eCH-0007 municipality (V6.0)](https://www.ech.ch/de/ech/ech-0007/6.0) and [eCH-0021 additional personal data (V7.0)](https://www.ech.ch/de/ech/ech-0021/7.0)). +- The guide covers the requirements for [eCH-0010 postal address (V7.0)](https://www.ech.ch/de/ech/ech-0010/7.0), [eCH-0046 contact (V5.0)](https://www.ech.ch/de/ech/ech-0046/5.0) and [eCH-0011 personal data (V8.1)](https://www.ech.ch/de/ech/ech-0011/8.1) (including [eCH-0007 municipality (V6.0)](https://www.ech.ch/de/ech/ech-0007/6.0) and [eCH-0021 additional personal data (V7.0)](https://www.ech.ch/de/ech/ech-0021/7.0)). - The guide incorporates Federal Statistics Office (BFS) variables for medical statistics. See [BFS](https://www.bfs.admin.ch/bfs/de/home/statistiken/kataloge-datenbanken/publikationen.assetdetail.7066232.html) (available in German, French and Italian). **Note**: This implementation guide is not (yet) a FHIR API specification, this will be a goal for the next iteration. diff --git a/input/pagecontent/profiles.md b/input/pagecontent/profiles.md new file mode 100644 index 0000000..b7b7272 --- /dev/null +++ b/input/pagecontent/profiles.md @@ -0,0 +1,21 @@ +### Resource Profiles +The following profiles set the minimum expectations to record, search and fetch health data associated with a Patient: + +{% include list-profiles.xhtml %} + + +### Data Type Profiles +These define constraints on FHIR data types for systems conforming to this implementation guide: + + <div> +{% for sd_hash in site.data.structuredefinitions -%} +{%- assign sd = sd_hash[1] -%} +{%- if sd.kind == "complex-type" and sd.type != "Extension" -%} + + <li> + <a href="{{sd.path}}">{{sd.title}}</a> + </li> +{%- endif -%} +{%- endfor -%} + + </div> diff --git a/input/pagecontent/profiles.xml b/input/pagecontent/profiles.xml deleted file mode 100644 index 476f5cb..0000000 --- a/input/pagecontent/profiles.xml +++ /dev/null @@ -1,10 +0,0 @@ -<div xmlns="http://www.w3.org/1999/xhtml" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hl7.org/fhir ../../input-cache/schemas-r5/fhir-single.xsd"> - - <p> - The following profiles set the minimum expectations to record, search and fetch health data associated with a Patient: - </p> - <div> - {% include list-profiles.xhtml %} - </div> -</div> \ No newline at end of file diff --git a/input/pages/changelog.md b/input/pages/changelog.md index d5260f6..7281437 100644 --- a/input/pages/changelog.md +++ b/input/pages/changelog.md @@ -4,6 +4,7 @@ All significant changes to this FHIR implementation guide will be documented on #### Added * [#196](https://github.com/hl7ch/ch-core/issues/196): Data type profile [VEKAIdentifier](StructureDefinition-ch-core-veka-identifier.html) for [Coverage.identifier](StructureDefinition-ch-core-coverage.html) and new also for [Patient.identifier](StructureDefinition-ch-core-patient.html) +* [#204](https://github.com/hl7ch/ch-core/issues/204): Introduce data type profiles for ContactPoints (email, phone, internet) according eCH-0046 (including extensions and terminology) and add them to the telecom element of Patient, Practitioner, Organization, Location #### Changed / Updated * [#206](https://github.com/hl7ch/ch-core/issues/206): Improve acronyms definition diff --git a/input/resources/codesystem/ech-10.xml b/input/resources/codesystem/ech-10.xml index 3223724..2786133 100644 --- a/input/resources/codesystem/ech-10.xml +++ b/input/resources/codesystem/ech-10.xml @@ -16,7 +16,7 @@ <value value="https://www.hl7.ch/"/> </telecom> </contact> - <description value="eCH-010 defines different Types for a postal adresse" /> + <description value="eCH-010 defines different Types for a postal address" /> <jurisdiction> <coding> <system value="urn:iso:std:iso:3166"/> diff --git a/input/resources/codesystem/ech-46-emailcategory.xml b/input/resources/codesystem/ech-46-emailcategory.xml new file mode 100644 index 0000000..6c64b2b --- /dev/null +++ b/input/resources/codesystem/ech-46-emailcategory.xml @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="UTF-8"?> +<CodeSystem xmlns="http://hl7.org/fhir"> + <id value="ech-46-emailcategory"/> + <url value="http://fhir.ch/ig/ch-core/CodeSystem/ech-46-emailcategory"/> + <version value="3.1.0"/> + <name value="ECH46EmailCategory"/> + <title value="eCH-0046 Email Category"/> + <status value="active"/> + <experimental value="false"/> + <date value="2023-03-10"/> + <publisher value="HL7 Switzerland"/> + <contact> + <name value="HL7 Switzerland"/> + <telecom> + <system value="url"/> + <value value="https://www.hl7.ch/"/> + </telecom> + </contact> + <description value="eCH-0046 defines different types for e-mail categories. See https://www.ech.ch/de/ech/ech-0046/5.0 4.3.1 emailCategory" /> + <jurisdiction> + <coding> + <system value="urn:iso:std:iso:3166"/> + <code value="CH"/> + </coding> + </jurisdiction> + <caseSensitive value="true"/> + <content value="complete"/> + <concept> + <code value="1"/> + <display value="private"/> + <designation> + <language value="de-CH" /> + <value value="private Email-Adresse" /> + </designation> + <designation> + <language value="fr-CH" /> + <value value="adresse E-Mail privée" /> + </designation> + </concept> + <concept> + <code value="2"/> + <display value="business"/> + <designation> + <language value="de-CH" /> + <value value="geschäftliche Email-Adresse" /> + </designation> + <designation> + <language value="fr-CH" /> + <value value="adresse E-Mail commerciale" /> + </designation> + </concept> +</CodeSystem> \ No newline at end of file diff --git a/input/resources/codesystem/ech-46-internetcategory.xml b/input/resources/codesystem/ech-46-internetcategory.xml new file mode 100644 index 0000000..8a42faf --- /dev/null +++ b/input/resources/codesystem/ech-46-internetcategory.xml @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="UTF-8"?> +<CodeSystem xmlns="http://hl7.org/fhir"> + <id value="ech-46-internetcategory"/> + <url value="http://fhir.ch/ig/ch-core/CodeSystem/ech-46-internetcategory"/> + <version value="3.1.0"/> + <name value="ECH46InternetCategory"/> + <title value="eCH-0046 Internet Category"/> + <status value="active"/> + <experimental value="false"/> + <date value="2023-03-10"/> + <publisher value="HL7 Switzerland"/> + <contact> + <name value="HL7 Switzerland"/> + <telecom> + <system value="url"/> + <value value="https://www.hl7.ch/"/> + </telecom> + </contact> + <description value="eCH-0046 defines different types for internet categories. See https://www.ech.ch/de/ech/ech-0046/5.0 4.5.1 internetCategory" /> + <jurisdiction> + <coding> + <system value="urn:iso:std:iso:3166"/> + <code value="CH"/> + </coding> + </jurisdiction> + <caseSensitive value="true"/> + <content value="complete"/> + <concept> + <code value="1"/> + <display value="private"/> + <designation> + <language value="de-CH" /> + <value value="private Internet-Adresse" /> + </designation> + <designation> + <language value="fr-CH" /> + <value value="adresse Internet privée" /> + </designation> + </concept> + <concept> + <code value="2"/> + <display value="business"/> + <designation> + <language value="de-CH" /> + <value value="geschäftliche Internet-Adresse" /> + </designation> + <designation> + <language value="fr-CH" /> + <value value="adresse Internet commerciale" /> + </designation> + </concept> +</CodeSystem> \ No newline at end of file diff --git a/input/resources/codesystem/ech-46-phonecategory.xml b/input/resources/codesystem/ech-46-phonecategory.xml new file mode 100644 index 0000000..c23d3a6 --- /dev/null +++ b/input/resources/codesystem/ech-46-phonecategory.xml @@ -0,0 +1,148 @@ +<?xml version="1.0" encoding="UTF-8"?> +<CodeSystem xmlns="http://hl7.org/fhir"> + <id value="ech-46-phonecategory"/> + <url value="http://fhir.ch/ig/ch-core/CodeSystem/ech-46-phonecategory"/> + <version value="3.1.0"/> + <name value="ECH46PhoneCategory"/> + <title value="eCH-0046 Phone Category"/> + <status value="active"/> + <experimental value="false"/> + <date value="2023-03-10"/> + <publisher value="HL7 Switzerland"/> + <contact> + <name value="HL7 Switzerland"/> + <telecom> + <system value="url"/> + <value value="https://www.hl7.ch/"/> + </telecom> + </contact> + <description value="eCH-0046 defines different types for phone categories. See https://www.ech.ch/de/ech/ech-0046/5.0 4.4.1 phoneNumberCategory" /> + <jurisdiction> + <coding> + <system value="urn:iso:std:iso:3166"/> + <code value="CH"/> + </coding> + </jurisdiction> + <caseSensitive value="true"/> + <content value="complete"/> + <concept> + <code value="1"/> + <display value="PrivatePhone"/> + <designation> + <language value="de-CH" /> + <value value="private Telefonnummer" /> + </designation> + <designation> + <language value="fr-CH" /> + <value value="numéro de téléphone privé" /> + </designation> + </concept> + <concept> + <code value="2"/> + <display value="PrivateMobile"/> + <designation> + <language value="de-CH" /> + <value value="private Mobil-Nummer" /> + </designation> + <designation> + <language value="fr-CH" /> + <value value="numéro de portable privé" /> + </designation> + </concept> + <concept> + <code value="3"/> + <display value="PrivateFax"/> + <designation> + <language value="de-CH" /> + <value value="private Fax-Nummer" /> + </designation> + <designation> + <language value="fr-CH" /> + <value value="numéro de fax privé" /> + </designation> + </concept> + <concept> + <code value="4"/> + <display value="PrivateInternetVoice"/> + <designation> + <language value="de-CH" /> + <value value="private Internettelefonie-Nummer" /> + </designation> + <designation> + <language value="fr-CH" /> + <value value="numéro privé de téléphonie par Internet" /> + </designation> + </concept> + <concept> + <code value="5"/> + <display value="BusinessCentral"/> + <designation> + <language value="de-CH" /> + <value value="geschäftliche Nummer (Zentrale)" /> + </designation> + <designation> + <language value="fr-CH" /> + <value value="numéro commercial (standard)" /> + </designation> + </concept> + <concept> + <code value="6"/> + <display value="BusinessDirect"/> + <designation> + <language value="de-CH" /> + <value value="geschäftliche Nummer (Durchwahl)" /> + </designation> + <designation> + <language value="fr-CH" /> + <value value="numéro commercial (ligne directe)" /> + </designation> + </concept> + <concept> + <code value="7"/> + <display value="BusinessMobile"/> + <designation> + <language value="de-CH" /> + <value value="geschäftliche Mobil-Nummer" /> + </designation> + <designation> + <language value="fr-CH" /> + <value value="numéro portable commercial" /> + </designation> + </concept> + <concept> + <code value="8"/> + <display value="BusinessFax"/> + <designation> + <language value="de-CH" /> + <value value="geschäftliche Fax-Nummer" /> + </designation> + <designation> + <language value="fr-CH" /> + <value value="numéro fax commercial" /> + </designation> + </concept> + <concept> + <code value="9"/> + <display value="BusinessInternetVoice"/> + <designation> + <language value="de-CH" /> + <value value="geschäftliche Internettelefonie-Nummer" /> + </designation> + <designation> + <language value="fr-CH" /> + <value value="numéro commercial de téléphonie par Internet" /> + </designation> + </concept> + <concept> + <code value="10"/> + <display value="Pager"/> + <designation> + <language value="de-CH" /> + <value value="Pager" /> + </designation> + <designation> + <language value="fr-CH" /> + <value value="bipeur" /> + </designation> + </concept> +</CodeSystem> diff --git a/input/resources/conceptmap/ech-46-emailcategory-to-fhir.xml b/input/resources/conceptmap/ech-46-emailcategory-to-fhir.xml new file mode 100644 index 0000000..bc1ea86 --- /dev/null +++ b/input/resources/conceptmap/ech-46-emailcategory-to-fhir.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ConceptMap xmlns="http://hl7.org/fhir"> + <id value="ech-46-emailcategory-to-fhir"/> + <url value="http://fhir.ch/ig/ch-core/ConceptMap/ech-46-emailcategory-to-fhir" /> + <version value="3.1.0"/> + <name value="ECH46EmailCategoryToFHIRMapping" /> + <title value="eCH-0046 Email Category to FHIR Mapping"/> + <status value="active"/> + <experimental value="false"/> + <date value="2023-03-10"/> + <publisher value="HL7 Switzerland"/> + <contact> + <name value="HL7 Switzerland"/> + <telecom> + <system value="url"/> + <value value="https://www.hl7.ch/"/> + </telecom> + </contact> + <description value="ConceptMap to show the mapping from eCH-0046 e-mail category to FHIR"/> + <jurisdiction> + <coding> + <system value="urn:iso:std:iso:3166"/> + <code value="CH"/> + </coding> + </jurisdiction> + <copyright value="CC-BY-SA-4.0"/> + <sourceUri value="http://fhir.ch/ig/ch-core/ValueSet/ech-46-emailcategory"/> + <targetUri value="http://hl7.org/fhir/ValueSet/contact-point-use"/> + <group> + <source value="http://fhir.ch/ig/ch-core/CodeSystem/ech-46-emailcategory"/> + <target value="http://hl7.org/fhir/contact-point-use"/> + <element> + <code value="1"/> + <display value="private"/> + <target> + <code value="home"/> + <display value="Home"/> + <equivalence value="equal"/> + </target> + </element> + <element> + <code value="2"/> + <display value="business"/> + <target> + <code value="work"/> + <display value="Work"/> + <equivalence value="equal"/> + </target> + </element> + </group> +</ConceptMap> diff --git a/input/resources/conceptmap/ech-46-internetcategory-to-fhir.xml b/input/resources/conceptmap/ech-46-internetcategory-to-fhir.xml new file mode 100644 index 0000000..006d18f --- /dev/null +++ b/input/resources/conceptmap/ech-46-internetcategory-to-fhir.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ConceptMap xmlns="http://hl7.org/fhir"> + <id value="ech-46-internetcategory-to-fhir"/> + <url value="http://fhir.ch/ig/ch-core/ConceptMap/ech-46-internetcategory-to-fhir" /> + <version value="3.1.0"/> + <name value="ECH46InternetCategoryToFHIRMapping" /> + <title value="eCH-0046 Internet Category to FHIR Mapping"/> + <status value="active"/> + <experimental value="false"/> + <date value="2023-03-10"/> + <publisher value="HL7 Switzerland"/> + <contact> + <name value="HL7 Switzerland"/> + <telecom> + <system value="url"/> + <value value="https://www.hl7.ch/"/> + </telecom> + </contact> + <description value="ConceptMap to show the mapping from eCH-0046 internet category to FHIR"/> + <jurisdiction> + <coding> + <system value="urn:iso:std:iso:3166"/> + <code value="CH"/> + </coding> + </jurisdiction> + <copyright value="CC-BY-SA-4.0"/> + <sourceUri value="http://fhir.ch/ig/ch-core/ValueSet/ech-46-internetcategory"/> + <targetUri value="http://hl7.org/fhir/ValueSet/contact-point-use"/> + <group> + <source value="http://fhir.ch/ig/ch-core/CodeSystem/ech-46-internetcategory"/> + <target value="http://hl7.org/fhir/contact-point-use"/> + <element> + <code value="1"/> + <display value="private"/> + <target> + <code value="home"/> + <display value="Home"/> + <equivalence value="equal"/> + </target> + </element> + <element> + <code value="2"/> + <display value="business"/> + <target> + <code value="work"/> + <display value="Work"/> + <equivalence value="equal"/> + </target> + </element> + </group> +</ConceptMap> diff --git a/input/resources/conceptmap/ech-46-phonecategory-to-fhir.xml b/input/resources/conceptmap/ech-46-phonecategory-to-fhir.xml new file mode 100644 index 0000000..eba21fa --- /dev/null +++ b/input/resources/conceptmap/ech-46-phonecategory-to-fhir.xml @@ -0,0 +1,133 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ConceptMap xmlns="http://hl7.org/fhir"> + <id value="ech-46-phonecategory-to-fhir"/> + <url value="http://fhir.ch/ig/ch-core/ConceptMap/ech-46-phonecategory-to-fhir" /> + <version value="3.1.0"/> + <name value="ECH46PhoneCategoryToFHIRMapping" /> + <title value="eCH-0046 Phone Category to FHIR Mapping"/> + <status value="active"/> + <experimental value="false"/> + <date value="2023-03-10"/> + <publisher value="HL7 Switzerland"/> + <contact> + <name value="HL7 Switzerland"/> + <telecom> + <system value="url"/> + <value value="https://www.hl7.ch/"/> + </telecom> + </contact> + <description value="ConceptMap to show the mapping from eCH-0046 phone category to FHIR"/> + <jurisdiction> + <coding> + <system value="urn:iso:std:iso:3166"/> + <code value="CH"/> + </coding> + </jurisdiction> + <copyright value="CC-BY-SA-4.0"/> + <sourceUri value="http://fhir.ch/ig/ch-core/ValueSet/ech-46-phonecategory"/> + <targetUri value="http://hl7.org/fhir/ValueSet/contact-point-use"/> + <group> + <source value="http://fhir.ch/ig/ch-core/CodeSystem/ech-46-phonecategory"/> + <target value="http://hl7.org/fhir/contact-point-use"/> + <element> + <code value="1"/> + <display value="PrivatePhone"/> + <target> + <code value="home"/> + <display value="Home"/> + <equivalence value="subsumes"/> + </target> + </element> + <element> + <code value="2"/> + <display value="PrivateMobile"/> + <target> + <code value="home"/> + <display value="Home"/> + <equivalence value="subsumes"/> + </target> + <target> + <code value="mobile"/> + <display value="Mobile"/> + <equivalence value="subsumes"/> + </target> + </element> + <element> + <code value="3"/> + <display value="PrivateFax"/> + <target> + <code value="home"/> + <display value="Home"/> + <equivalence value="subsumes"/> + </target> + </element> + <element> + <code value="4"/> + <display value="PrivateInternetVoice"/> + <target> + <code value="home"/> + <display value="Home"/> + <equivalence value="subsumes"/> + </target> + </element> + <element> + <code value="5"/> + <display value="BusinessCentral"/> + <target> + <code value="work"/> + <display value="Work"/> + <equivalence value="subsumes"/> + </target> + </element> + <element> + <code value="6"/> + <display value="BusinessDirect"/> + <target> + <code value="work"/> + <display value="Work"/> + <equivalence value="subsumes"/> + </target> + </element> + <element> + <code value="7"/> + <display value="BusinessMobile"/> + <target> + <code value="work"/> + <display value="Work"/> + <equivalence value="subsumes"/> + </target> + <target> + <code value="mobile"/> + <display value="Mobile"/> + <equivalence value="subsumes"/> + </target> + </element> + <element> + <code value="8"/> + <display value="BusinessFax"/> + <target> + <code value="work"/> + <display value="Work"/> + <equivalence value="subsumes"/> + </target> + </element> + <element> + <code value="9"/> + <display value="BusinessInternetVoice"/> + <target> + <code value="work"/> + <display value="Work"/> + <equivalence value="subsumes"/> + </target> + </element> + <element> + <code value="10"/> + <display value="Pager"/> + <target> + <code value="mobile"/> + <display value="Mobile"/> + <equivalence value="equivalent"/> + </target> + </element> + </group> +</ConceptMap> diff --git a/input/resources/structuredefinition/ch-core-contactpoint-ech-46-email.xml b/input/resources/structuredefinition/ch-core-contactpoint-ech-46-email.xml new file mode 100644 index 0000000..03abea7 --- /dev/null +++ b/input/resources/structuredefinition/ch-core-contactpoint-ech-46-email.xml @@ -0,0 +1,121 @@ +<?xml version="1.0" encoding="UTF-8"?> +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="ch-core-contactpoint-ech-46-email"/> + <url value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-contactpoint-ech-46-email"/> + <version value="3.1.0"/> + <name value="CHCoreContactPointECH46Email"/> + <title value="CH Core ContactPoint eCH-0046 Email"/> + <status value="active"/> + <date value="2023-03-10"/> + <publisher value="HL7 Switzerland"/> + <contact> + <name value="HL7 Switzerland"/> + <telecom> + <system value="url"/> + <value value="https://www.hl7.ch/"/> + </telecom> + </contact> + <description value="E-mail address as contact point of a person or organization according to eCH-0046"/> + <jurisdiction> + <coding> + <system value="urn:iso:std:iso:3166"/> + <code value="CH"/> + </coding> + </jurisdiction> + <fhirVersion value="4.0.1" /> + <mapping> + <identity value="eCH"/> + <uri value="https://www.ech.ch/" /> + <name value="eCH Standards"/> + </mapping> + <kind value="complex-type"/> + <abstract value="false"/> + <type value="ContactPoint"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/ContactPoint"/> + <derivation value="constraint"/> + <differential> + <element id="ContactPoint"> + <path value="ContactPoint"/> + <short value="CH Core ContactPoint eCH-0046 Email"/> + <min value="0"/> + <max value="*"/> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: 4.3 email"/> + </mapping> + </element> + + <element id="ContactPoint.system"> + <path value="ContactPoint.system"/> + <min value="1"/> + <fixedCode value="email"/> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: 4.3 emailType" /> + </mapping> + </element> + + <element id="ContactPoint.value"> + <path value="ContactPoint.value"/> + <min value="1"/> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: 4.3 emailAddress" /> + </mapping> + </element> + + <element id="ContactPoint.use"> + <path value="ContactPoint.use"/> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: 4.3 emailCategory/otherEmailCategory" /> + </mapping> + </element> + <element id="ContactPoint.use.extension"> + <path value="ContactPoint.use.extension" /> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <rules value="open" /> + </slicing> + </element> + <element id="ContactPoint.use.extension:emailCategory"> + <path value="ContactPoint.use.extension" /> + <sliceName value="emailCategory" /> + <max value="1" /> + <type> + <code value="Extension" /> + <profile value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-46-emailcategory" /> + </type> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: 4.3.1 emailCategory" /> + </mapping> + </element> + + <element id="ContactPoint.period"> + <path value="ContactPoint.period"/> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: 4.3 validity" /> + </mapping> + </element> + <element id="ContactPoint.period.start"> + <path value="ContactPoint.period.start"/> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: dateFrom" /> + </mapping> + </element> + <element id="ContactPoint.period.end"> + <path value="ContactPoint.period.end"/> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: dateTo" /> + </mapping> + </element> + + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/input/resources/structuredefinition/ch-core-contactpoint-ech-46-internet.xml b/input/resources/structuredefinition/ch-core-contactpoint-ech-46-internet.xml new file mode 100644 index 0000000..704ef92 --- /dev/null +++ b/input/resources/structuredefinition/ch-core-contactpoint-ech-46-internet.xml @@ -0,0 +1,121 @@ +<?xml version="1.0" encoding="UTF-8"?> +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="ch-core-contactpoint-ech-46-internet"/> + <url value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-contactpoint-ech-46-internet"/> + <version value="3.1.0"/> + <name value="CHCoreContactPointECH46Internet"/> + <title value="CH Core ContactPoint eCH-0046 Internet"/> + <status value="active"/> + <date value="2023-03-10"/> + <publisher value="HL7 Switzerland"/> + <contact> + <name value="HL7 Switzerland"/> + <telecom> + <system value="url"/> + <value value="https://www.hl7.ch/"/> + </telecom> + </contact> + <description value="Internet address as contact point of a person or organization according to eCH-0046"/> + <jurisdiction> + <coding> + <system value="urn:iso:std:iso:3166"/> + <code value="CH"/> + </coding> + </jurisdiction> + <fhirVersion value="4.0.1" /> + <mapping> + <identity value="eCH"/> + <uri value="https://www.ech.ch/" /> + <name value="eCH Standards"/> + </mapping> + <kind value="complex-type"/> + <abstract value="false"/> + <type value="ContactPoint"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/ContactPoint"/> + <derivation value="constraint"/> + <differential> + <element id="ContactPoint"> + <path value="ContactPoint"/> + <short value="CH Core ContactPoint eCH-0046 Internet"/> + <min value="0"/> + <max value="*"/> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: 4.5 internet"/> + </mapping> + </element> + + <element id="ContactPoint.system"> + <path value="ContactPoint.system"/> + <min value="1"/> + <fixedCode value="url"/> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: 4.5 internetType" /> + </mapping> + </element> + + <element id="ContactPoint.value"> + <path value="ContactPoint.value"/> + <min value="1"/> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: 4.5 internetAddress" /> + </mapping> + </element> + + <element id="ContactPoint.use"> + <path value="ContactPoint.use"/> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: 4.5 internetCategory/otherInternetCategory" /> + </mapping> + </element> + <element id="ContactPoint.use.extension"> + <path value="ContactPoint.use.extension" /> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <rules value="open" /> + </slicing> + </element> + <element id="ContactPoint.use.extension:internetCategory"> + <path value="ContactPoint.use.extension" /> + <sliceName value="internetCategory" /> + <max value="1" /> + <type> + <code value="Extension" /> + <profile value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-46-internetcategory" /> + </type> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: 4.5.1 internetCategory" /> + </mapping> + </element> + + <element id="ContactPoint.period"> + <path value="ContactPoint.period"/> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: 4.5 validity" /> + </mapping> + </element> + <element id="ContactPoint.period.start"> + <path value="ContactPoint.period.start"/> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: dateFrom" /> + </mapping> + </element> + <element id="ContactPoint.period.end"> + <path value="ContactPoint.period.end"/> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: dateTo" /> + </mapping> + </element> + + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/input/resources/structuredefinition/ch-core-contactpoint-ech-46-phone.xml b/input/resources/structuredefinition/ch-core-contactpoint-ech-46-phone.xml new file mode 100644 index 0000000..a74a6c7 --- /dev/null +++ b/input/resources/structuredefinition/ch-core-contactpoint-ech-46-phone.xml @@ -0,0 +1,121 @@ +<?xml version="1.0" encoding="UTF-8"?> +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="ch-core-contactpoint-ech-46-phone"/> + <url value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-contactpoint-ech-46-phone"/> + <version value="3.1.0"/> + <name value="CHCoreContactPointECH46Phone"/> + <title value="CH Core ContactPoint eCH-0046 Phone"/> + <status value="active"/> + <date value="2023-03-10"/> + <publisher value="HL7 Switzerland"/> + <contact> + <name value="HL7 Switzerland"/> + <telecom> + <system value="url"/> + <value value="https://www.hl7.ch/"/> + </telecom> + </contact> + <description value="Phone number as contact point of a person or organization according to eCH-0046"/> + <jurisdiction> + <coding> + <system value="urn:iso:std:iso:3166"/> + <code value="CH"/> + </coding> + </jurisdiction> + <fhirVersion value="4.0.1" /> + <mapping> + <identity value="eCH"/> + <uri value="https://www.ech.ch/" /> + <name value="eCH Standards"/> + </mapping> + <kind value="complex-type"/> + <abstract value="false"/> + <type value="ContactPoint"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/ContactPoint"/> + <derivation value="constraint"/> + <differential> + <element id="ContactPoint"> + <path value="ContactPoint"/> + <short value="CH Core ContactPoint eCH-0046 Phone"/> + <min value="0"/> + <max value="*"/> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: 4.4 phone"/> + </mapping> + </element> + + <element id="ContactPoint.system"> + <path value="ContactPoint.system"/> + <min value="1"/> + <fixedCode value="phone"/> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: 4.4 phoneType" /> + </mapping> + </element> + + <element id="ContactPoint.value"> + <path value="ContactPoint.value"/> + <min value="1"/> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: 4.4 phoneNumber" /> + </mapping> + </element> + + <element id="ContactPoint.use"> + <path value="ContactPoint.use"/> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: 4.4 phoneCategory/otherPhoneCategory" /> + </mapping> + </element> + <element id="ContactPoint.use.extension"> + <path value="ContactPoint.use.extension" /> + <slicing> + <discriminator> + <type value="value"/> + <path value="url"/> + </discriminator> + <rules value="open" /> + </slicing> + </element> + <element id="ContactPoint.use.extension:phoneCategory"> + <path value="ContactPoint.use.extension" /> + <sliceName value="phoneCategory" /> + <max value="1" /> + <type> + <code value="Extension" /> + <profile value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-46-phonecategory" /> + </type> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: 4.4.1 phoneNumberCategory" /> + </mapping> + </element> + + <element id="ContactPoint.period"> + <path value="ContactPoint.period"/> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: 4.4 validity" /> + </mapping> + </element> + <element id="ContactPoint.period.start"> + <path value="ContactPoint.period.start"/> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: dateFrom" /> + </mapping> + </element> + <element id="ContactPoint.period.end"> + <path value="ContactPoint.period.end"/> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: dateTo" /> + </mapping> + </element> + + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/input/resources/structuredefinition/ch-core-location.xml b/input/resources/structuredefinition/ch-core-location.xml index 017da7c..d1fe10e 100644 --- a/input/resources/structuredefinition/ch-core-location.xml +++ b/input/resources/structuredefinition/ch-core-location.xml @@ -41,9 +41,66 @@ <path value="Location.name"/> <min value="1"/> </element> + <element id="Location.telecom"> + <path value="Location.telecom" /> + <slicing> + <discriminator> + <type value="value" /> + <path value="system" /> + </discriminator> + <rules value="open"/> + </slicing> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: Contact"/> + </mapping> + </element> + <element id="Location.telecom.system"> + <path value="Location.telecom.system" /> + <min value="1"/> + </element> + <element id="Location.telecom.value"> + <path value="Location.telecom.value" /> + <min value="1"/> + </element> + <element id="Location.telecom:email"> <path value="Location.telecom"/> + <sliceName value="email"/> + <type> + <code value="ContactPoint"/> + <profile value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-contactpoint-ech-46-email"/> + </type> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: 4.3 email"/> + </mapping> + </element> + <element id="Location.telecom:phone"> + <path value="Location.telecom"/> + <sliceName value="phone"/> + <type> + <code value="ContactPoint"/> + <profile value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-contactpoint-ech-46-phone"/> + </type> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: 4.4 phone"/> + </mapping> + </element> + <element id="Location.telecom:internet"> + <path value="Location.telecom"/> + <sliceName value="internet"/> + <type> + <code value="ContactPoint"/> + <profile value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-contactpoint-ech-46-internet"/> + </type> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: 4.5 internet"/> + </mapping> </element> + <element id="Location.address"> <path value="Location.address"/> <type> diff --git a/input/resources/structuredefinition/ch-core-organization.xml b/input/resources/structuredefinition/ch-core-organization.xml index e77a568..8e50ca2 100644 --- a/input/resources/structuredefinition/ch-core-organization.xml +++ b/input/resources/structuredefinition/ch-core-organization.xml @@ -111,9 +111,66 @@ <element id="Organization.name"> <path value="Organization.name"/> </element> + <element id="Organization.telecom"> + <path value="Organization.telecom" /> + <slicing> + <discriminator> + <type value="value" /> + <path value="system" /> + </discriminator> + <rules value="open"/> + </slicing> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: Contact"/> + </mapping> + </element> + <element id="Organization.telecom.system"> + <path value="Organization.telecom.system" /> + <min value="1"/> + </element> + <element id="Organization.telecom.value"> + <path value="Organization.telecom.value" /> + <min value="1"/> + </element> + <element id="Organization.telecom:email"> + <path value="Organization.telecom"/> + <sliceName value="email"/> + <type> + <code value="ContactPoint"/> + <profile value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-contactpoint-ech-46-email"/> + </type> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: 4.3 email"/> + </mapping> + </element> + <element id="Organization.telecom:phone"> <path value="Organization.telecom"/> + <sliceName value="phone"/> + <type> + <code value="ContactPoint"/> + <profile value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-contactpoint-ech-46-phone"/> + </type> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: 4.4 phone"/> + </mapping> </element> + <element id="Organization.telecom:internet"> + <path value="Organization.telecom"/> + <sliceName value="internet"/> + <type> + <code value="ContactPoint"/> + <profile value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-contactpoint-ech-46-internet"/> + </type> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: 4.5 internet"/> + </mapping> + </element> + <element id="Organization.address"> <path value="Organization.address"/> <type> diff --git a/input/resources/structuredefinition/ch-core-patient.xml b/input/resources/structuredefinition/ch-core-patient.xml index b718c43..83ff937 100644 --- a/input/resources/structuredefinition/ch-core-patient.xml +++ b/input/resources/structuredefinition/ch-core-patient.xml @@ -230,13 +230,70 @@ See also [BFS](https://www.bfs.admin.ch/bfs/de/home/register/personenregister/re <map value="eCH-0011: 3.3.2 nameData"/> </mapping> </element> + <element id="Patient.telecom"> - <path value="Patient.telecom"/> + <path value="Patient.telecom" /> + <slicing> + <discriminator> + <type value="value" /> + <path value="system" /> + </discriminator> + <rules value="open"/> + </slicing> <mapping> <identity value="v2"/> <map value="-> as of HL7 v2.7 PID-40 (leave PID-13 and PID-14 empty)"/> </mapping> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: Contact"/> + </mapping> + </element> + <element id="Patient.telecom.system"> + <path value="Patient.telecom.system" /> + <min value="1"/> + </element> + <element id="Patient.telecom.value"> + <path value="Patient.telecom.value" /> + <min value="1"/> </element> + <element id="Patient.telecom:email"> + <path value="Patient.telecom"/> + <sliceName value="email"/> + <type> + <code value="ContactPoint"/> + <profile value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-contactpoint-ech-46-email"/> + </type> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: 4.3 email"/> + </mapping> + </element> + <element id="Patient.telecom:phone"> + <path value="Patient.telecom"/> + <sliceName value="phone"/> + <type> + <code value="ContactPoint"/> + <profile value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-contactpoint-ech-46-phone"/> + </type> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: 4.4 phone"/> + </mapping> + </element> + <element id="Patient.telecom:internet"> + <path value="Patient.telecom"/> + <sliceName value="internet"/> + <type> + <code value="ContactPoint"/> + <profile value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-contactpoint-ech-46-internet"/> + </type> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: 4.5 internet"/> + </mapping> + </element> + <element id="Patient.gender"> <path value="Patient.gender"/> <short value="male | female | other"/> diff --git a/input/resources/structuredefinition/ch-core-practitioner.xml b/input/resources/structuredefinition/ch-core-practitioner.xml index 4c2a2b2..c3aa0d7 100644 --- a/input/resources/structuredefinition/ch-core-practitioner.xml +++ b/input/resources/structuredefinition/ch-core-practitioner.xml @@ -105,9 +105,66 @@ <map value="eCH-0011: 3.3.2 nameData"/> </mapping> </element> + <element id="Practitioner.telecom"> + <path value="Practitioner.telecom" /> + <slicing> + <discriminator> + <type value="value" /> + <path value="system" /> + </discriminator> + <rules value="open"/> + </slicing> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: Contact"/> + </mapping> + </element> + <element id="Practitioner.telecom.system"> + <path value="Practitioner.telecom.system" /> + <min value="1"/> + </element> + <element id="Practitioner.telecom.value"> + <path value="Practitioner.telecom.value" /> + <min value="1"/> + </element> + <element id="Practitioner.telecom:email"> <path value="Practitioner.telecom"/> + <sliceName value="email"/> + <type> + <code value="ContactPoint"/> + <profile value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-contactpoint-ech-46-email"/> + </type> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: 4.3 email"/> + </mapping> + </element> + <element id="Practitioner.telecom:phone"> + <path value="Practitioner.telecom"/> + <sliceName value="phone"/> + <type> + <code value="ContactPoint"/> + <profile value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-contactpoint-ech-46-phone"/> + </type> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: 4.4 phone"/> + </mapping> + </element> + <element id="Practitioner.telecom:internet"> + <path value="Practitioner.telecom"/> + <sliceName value="internet"/> + <type> + <code value="ContactPoint"/> + <profile value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-contactpoint-ech-46-internet"/> + </type> + <mapping> + <identity value="eCH"/> + <map value="eCH-0046: 4.5 internet"/> + </mapping> </element> + <element id="Practitioner.address"> <path value="Practitioner.address"/> <type> diff --git a/input/resources/structuredefinition/ch-ext-ech-46-emailcategory.xml b/input/resources/structuredefinition/ch-ext-ech-46-emailcategory.xml new file mode 100644 index 0000000..1713cca --- /dev/null +++ b/input/resources/structuredefinition/ch-ext-ech-46-emailcategory.xml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="UTF-8"?> +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="ch-ext-ech-46-emailcategory"/> + <url value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-46-emailcategory"/> + <version value="3.1.0"/> + <name value="ECH46EmailCategory"/> + <title value="eCH-0046 Email Category"/> + <status value="active"/> + <date value="2023-03-10"/> + <publisher value="HL7 Switzerland"/> + <contact> + <name value="HL7 Switzerland"/> + <telecom> + <system value="url"/> + <value value="https://www.hl7.ch/"/> + </telecom> + </contact> + <description value="Extension to define the e-mail category according to eCH-0046"/> + <fhirVersion value="4.0.1"/> + <kind value="complex-type"/> + <abstract value="false"/> + <context> + <type value="element"/> + <expression value="ContactPoint.use"/> + </context> + <type value="Extension"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension"/> + <derivation value="constraint"/> + <differential> + <element id="Extension"> + <path value="Extension"/> + </element> + <element id="Extension.extension"> + <path value="Extension.extension"/> + <max value="0"/> + </element> + <element id="Extension.url"> + <path value="Extension.url"/> + <type> + <code value="uri"/> + </type> + <fixedUri value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-46-emailcategory"/> + </element> + <element id="Extension.valueCodeableConcept"> + <path value="Extension.valueCodeableConcept"/> + <min value="1"/> + <max value="1"/> + <binding> + <strength value="required"/> + <valueSet value="http://fhir.ch/ig/ch-core/ValueSet/ech-46-emailcategory"/> + </binding> + </element> + <element id="Extension.valueCodeableConcept.coding"> + <path value="Extension.valueCodeableConcept.coding"/> + <short value="Predefined category"/> + </element> + <element id="Extension.valueCodeableConcept.text"> + <path value="Extension.valueCodeableConcept.text"/> + <short value="Category as free text should only be used if none of the predefined categories apply"/> + </element> + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/input/resources/structuredefinition/ch-ext-ech-46-internetcategory.xml b/input/resources/structuredefinition/ch-ext-ech-46-internetcategory.xml new file mode 100644 index 0000000..b68dd51 --- /dev/null +++ b/input/resources/structuredefinition/ch-ext-ech-46-internetcategory.xml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="UTF-8"?> +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="ch-ext-ech-46-internetcategory"/> + <url value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-46-internetcategory"/> + <version value="3.1.0"/> + <name value="ECH46InternetCategory"/> + <title value="eCH-0046 Internet Category"/> + <status value="active"/> + <date value="2023-03-10"/> + <publisher value="HL7 Switzerland"/> + <contact> + <name value="HL7 Switzerland"/> + <telecom> + <system value="url"/> + <value value="https://www.hl7.ch/"/> + </telecom> + </contact> + <description value="Extension to define the internet category according to eCH-0046"/> + <fhirVersion value="4.0.1"/> + <kind value="complex-type"/> + <abstract value="false"/> + <context> + <type value="element"/> + <expression value="ContactPoint.use"/> + </context> + <type value="Extension"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension"/> + <derivation value="constraint"/> + <differential> + <element id="Extension"> + <path value="Extension"/> + </element> + <element id="Extension.extension"> + <path value="Extension.extension"/> + <max value="0"/> + </element> + <element id="Extension.url"> + <path value="Extension.url"/> + <type> + <code value="uri"/> + </type> + <fixedUri value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-46-internetcategory"/> + </element> + <element id="Extension.valueCodeableConcept"> + <path value="Extension.valueCodeableConcept"/> + <min value="1"/> + <max value="1"/> + <binding> + <strength value="required"/> + <valueSet value="http://fhir.ch/ig/ch-core/ValueSet/ech-46-internetcategory"/> + </binding> + </element> + <element id="Extension.valueCodeableConcept.coding"> + <path value="Extension.valueCodeableConcept.coding"/> + <short value="Predefined category"/> + </element> + <element id="Extension.valueCodeableConcept.text"> + <path value="Extension.valueCodeableConcept.text"/> + <short value="Category as free text should only be used if none of the predefined categories apply"/> + </element> + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/input/resources/structuredefinition/ch-ext-ech-46-phonecategory.xml b/input/resources/structuredefinition/ch-ext-ech-46-phonecategory.xml new file mode 100644 index 0000000..4d60a50 --- /dev/null +++ b/input/resources/structuredefinition/ch-ext-ech-46-phonecategory.xml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="UTF-8"?> +<StructureDefinition xmlns="http://hl7.org/fhir"> + <id value="ch-ext-ech-46-phonecategory"/> + <url value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-46-phonecategory"/> + <version value="3.1.0"/> + <name value="ECH46PhoneCategory"/> + <title value="eCH-0046 Phone Category"/> + <status value="active"/> + <date value="2023-03-10"/> + <publisher value="HL7 Switzerland"/> + <contact> + <name value="HL7 Switzerland"/> + <telecom> + <system value="url"/> + <value value="https://www.hl7.ch/"/> + </telecom> + </contact> + <description value="Extension to define the phone category according to eCH-0046"/> + <fhirVersion value="4.0.1"/> + <kind value="complex-type"/> + <abstract value="false"/> + <context> + <type value="element"/> + <expression value="ContactPoint.use"/> + </context> + <type value="Extension"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension"/> + <derivation value="constraint"/> + <differential> + <element id="Extension"> + <path value="Extension"/> + </element> + <element id="Extension.extension"> + <path value="Extension.extension"/> + <max value="0"/> + </element> + <element id="Extension.url"> + <path value="Extension.url"/> + <type> + <code value="uri"/> + </type> + <fixedUri value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-46-phonecategory"/> + </element> + <element id="Extension.valueCodeableConcept"> + <path value="Extension.valueCodeableConcept"/> + <min value="1"/> + <max value="1"/> + <binding> + <strength value="required"/> + <valueSet value="http://fhir.ch/ig/ch-core/ValueSet/ech-46-phonecategory"/> + </binding> + </element> + <element id="Extension.valueCodeableConcept.coding"> + <path value="Extension.valueCodeableConcept.coding"/> + <short value="Predefined category"/> + </element> + <element id="Extension.valueCodeableConcept.text"> + <path value="Extension.valueCodeableConcept.text"/> + <short value="Category as free text should only be used if none of the predefined categories apply"/> + </element> + </differential> +</StructureDefinition> \ No newline at end of file diff --git a/input/resources/valueset/ech-46-emailcategory.xml b/input/resources/valueset/ech-46-emailcategory.xml new file mode 100644 index 0000000..c5737f6 --- /dev/null +++ b/input/resources/valueset/ech-46-emailcategory.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ValueSet xmlns="http://hl7.org/fhir"> + <id value="ech-46-emailcategory"/> + <url value="http://fhir.ch/ig/ch-core/ValueSet/ech-46-emailcategory"/> + <version value="3.1.0"/> + <name value="ECH46EmailCategory"/> + <title value="eCH-0046 Email Category"/> + <status value="active"/> + <experimental value="false"/> + <date value="2023-03-10"/> + <publisher value="HL7 Switzerland"/> + <contact> + <name value="HL7 Switzerland"/> + <telecom> + <system value="url"/> + <value value="https://www.hl7.ch/"/> + </telecom> + </contact> + <description value="eCH-0046 defines these types of e-mail categories" /> + <jurisdiction> + <coding> + <system value="urn:iso:std:iso:3166"/> + <code value="CH"/> + </coding> + </jurisdiction> + <compose> + <include> + <system value="http://fhir.ch/ig/ch-core/CodeSystem/ech-46-emailcategory"/> + </include> + </compose> +</ValueSet> \ No newline at end of file diff --git a/input/resources/valueset/ech-46-internetcategory.xml b/input/resources/valueset/ech-46-internetcategory.xml new file mode 100644 index 0000000..06da9b7 --- /dev/null +++ b/input/resources/valueset/ech-46-internetcategory.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ValueSet xmlns="http://hl7.org/fhir"> + <id value="ech-46-internetcategory"/> + <url value="http://fhir.ch/ig/ch-core/ValueSet/ech-46-internetcategory"/> + <version value="3.1.0"/> + <name value="ECH46InternetCategory"/> + <title value="eCH-0046 Internet Category"/> + <status value="active"/> + <experimental value="false"/> + <date value="2023-03-10"/> + <publisher value="HL7 Switzerland"/> + <contact> + <name value="HL7 Switzerland"/> + <telecom> + <system value="url"/> + <value value="https://www.hl7.ch/"/> + </telecom> + </contact> + <description value="eCH-0046 defines these types of internet categories" /> + <jurisdiction> + <coding> + <system value="urn:iso:std:iso:3166"/> + <code value="CH"/> + </coding> + </jurisdiction> + <compose> + <include> + <system value="http://fhir.ch/ig/ch-core/CodeSystem/ech-46-internetcategory"/> + </include> + </compose> +</ValueSet> \ No newline at end of file diff --git a/input/resources/valueset/ech-46-phonecategory.xml b/input/resources/valueset/ech-46-phonecategory.xml new file mode 100644 index 0000000..5c19ff2 --- /dev/null +++ b/input/resources/valueset/ech-46-phonecategory.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ValueSet xmlns="http://hl7.org/fhir"> + <id value="ech-46-phonecategory"/> + <url value="http://fhir.ch/ig/ch-core/ValueSet/ech-46-phonecategory"/> + <version value="3.1.0"/> + <name value="ECH46PhoneCategory"/> + <title value="eCH-0046 Phone Category"/> + <status value="active"/> + <experimental value="false"/> + <date value="2023-03-10"/> + <publisher value="HL7 Switzerland"/> + <contact> + <name value="HL7 Switzerland"/> + <telecom> + <system value="url"/> + <value value="https://www.hl7.ch/"/> + </telecom> + </contact> + <description value="eCH-0046 defines these types of phone categories" /> + <jurisdiction> + <coding> + <system value="urn:iso:std:iso:3166"/> + <code value="CH"/> + </coding> + </jurisdiction> + <compose> + <include> + <system value="http://fhir.ch/ig/ch-core/CodeSystem/ech-46-phonecategory"/> + </include> + </compose> +</ValueSet> \ No newline at end of file