Skip to content

Commit

Permalink
Merge pull request #212 from hl7ch/204_eCH-contact
Browse files Browse the repository at this point in the history
204_eCH-contact
  • Loading branch information
ziegm authored Mar 15, 2023
2 parents 7fee32e + 62dea0d commit b21088e
Show file tree
Hide file tree
Showing 29 changed files with 1,552 additions and 35 deletions.
97 changes: 94 additions & 3 deletions input/ch.fhir.ig.ch-core.xml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
<reference value="Patient/MaxMuster"/>
</reference>
<name value="Max Muster"/>
<description value="Patient EPR with eCH-011 family &amp; and given name and reference to the organization that is the custodian of the patient record"/>
<description value="Patient EPR with eCH-0011 family &amp; and given name, eCH-0046 contact points and reference to the organization that is the custodian of the patient record"/>
<exampleCanonical value="http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient-epr"/>
</resource>
<resource>
Expand Down Expand Up @@ -337,6 +337,24 @@
</reference>
<exampleBoolean value="false"/>
</resource>
<resource>
<reference>
<reference value="CodeSystem/ech-46-emailcategory"/>
</reference>
<exampleBoolean value="false"/>
</resource>
<resource>
<reference>
<reference value="CodeSystem/ech-46-phonecategory"/>
</reference>
<exampleBoolean value="false"/>
</resource>
<resource>
<reference>
<reference value="CodeSystem/ech-46-internetcategory"/>
</reference>
<exampleBoolean value="false"/>
</resource>

<!-- references for concept maps -->
<resource>
Expand All @@ -363,6 +381,24 @@
</reference>
<exampleBoolean value="false"/>
</resource>
<resource>
<reference>
<reference value="ConceptMap/ech-46-emailcategory-to-fhir"/>
</reference>
<exampleBoolean value="false"/>
</resource>
<resource>
<reference>
<reference value="ConceptMap/ech-46-phonecategory-to-fhir"/>
</reference>
<exampleBoolean value="false"/>
</resource>
<resource>
<reference>
<reference value="ConceptMap/ech-46-internetcategory-to-fhir"/>
</reference>
<exampleBoolean value="false"/>
</resource>

<!-- references for naming systems -->
<resource>
Expand Down Expand Up @@ -514,6 +550,25 @@
</reference>
<exampleBoolean value="false"/>
</resource>
<resource>
<reference>
<reference value="StructureDefinition/ch-ext-ech-46-emailcategory"/>
</reference>
<exampleBoolean value="false"/>
</resource>
<resource>
<reference>
<reference value="StructureDefinition/ch-ext-ech-46-phonecategory"/>
</reference>
<exampleBoolean value="false"/>
</resource>
<resource>
<reference>
<reference value="StructureDefinition/ch-ext-ech-46-internetcategory"/>
</reference>
<exampleBoolean value="false"/>
</resource>

<resource>
<reference>
<reference value="StructureDefinition/ch-core-composition-epr"/>
Expand Down Expand Up @@ -664,6 +719,24 @@
</reference>
<exampleBoolean value="false"/>
</resource>
<resource>
<reference>
<reference value="StructureDefinition/ch-core-contactpoint-ech-46-email"/>
</reference>
<exampleBoolean value="false"/>
</resource>
<resource>
<reference>
<reference value="StructureDefinition/ch-core-contactpoint-ech-46-phone"/>
</reference>
<exampleBoolean value="false"/>
</resource>
<resource>
<reference>
<reference value="StructureDefinition/ch-core-contactpoint-ech-46-internet"/>
</reference>
<exampleBoolean value="false"/>
</resource>
<resource>
<reference>
<reference value="StructureDefinition/ch-core-practitioner-epr"/>
Expand Down Expand Up @@ -786,6 +859,24 @@
</reference>
<exampleBoolean value="false"/>
</resource>
<resource>
<reference>
<reference value="ValueSet/ech-46-emailcategory"/>
</reference>
<exampleBoolean value="false"/>
</resource>
<resource>
<reference>
<reference value="ValueSet/ech-46-phonecategory"/>
</reference>
<exampleBoolean value="false"/>
</resource>
<resource>
<reference>
<reference value="ValueSet/ech-46-internetcategory"/>
</reference>
<exampleBoolean value="false"/>
</resource>

<!-- pages, parameters -->
<page>
Expand All @@ -800,12 +891,12 @@
<page>
<nameUrl value="profiles.html"/>
<title value="Profiles"/>
<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"/>
Expand Down
76 changes: 73 additions & 3 deletions input/examples/patient/MaxMuster.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
10 changes: 1 addition & 9 deletions input/ignoreWarnings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions input/pagecontent/extensions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

{% include list-extensions.xhtml %}
7 changes: 0 additions & 7 deletions input/pagecontent/extensions.xml

This file was deleted.

2 changes: 1 addition & 1 deletion input/pagecontent/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This implementation guide is provided to support the use of FHIR<sup>&reg;&copy;
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.
Expand Down
21 changes: 21 additions & 0 deletions input/pagecontent/profiles.md
Original file line number Diff line number Diff line change
@@ -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>
10 changes: 0 additions & 10 deletions input/pagecontent/profiles.xml

This file was deleted.

1 change: 1 addition & 0 deletions input/pages/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion input/resources/codesystem/ech-10.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"/>
Expand Down
52 changes: 52 additions & 0 deletions input/resources/codesystem/ech-46-emailcategory.xml
Original file line number Diff line number Diff line change
@@ -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>
Loading

0 comments on commit b21088e

Please sign in to comment.