Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zib-TimeInterval #31

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
7 changes: 7 additions & 0 deletions known-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@ zib-NameInformation.GivenName:
HumanName.given:
- cardinality: 1..* instead of 0..1
reason: The GivenName is optional according to the zib, but when this datatype profile is used, a name should be provided.

ext-TimeInterval.Duration:
zib deviations:
Extension.value[x]:
- alias: TijdsDuur instead of tijdsDuur
for: NL-CM:20.3.4 (Extension.value[x])
reason: The zib concept name "tijdsDuur" is incorrect, concept names should begin with a capital letter. This will be fixed in a next version of the zibs (ZIB-2551).

unmapped zib concepts:
- NL-CM:17.2.10: HealthcareProvider.LocationNumber
Expand Down
6 changes: 6 additions & 0 deletions release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,9 @@

### zib-NameInformation.GivenName, nl-core-NameInformation.GivenName
* No significant changes.

## TimeInterval (zib-TimeInterval, nl-core-TimeInterval)
* `.start.extension:relativeStartTime.value[x]` ; mapping ; Added mapping of RelativeStartTime. ; ZIB-2148
* `.start` ; textual ; Renamed from startDateTime to StartDateTime. ; ZIB-1756
* `.end.extension:relativeEndTime.value[x]` ; mapping ; Added mapping of RelativeEndTime. ; ZIB-2148
* `.end` ; textual ; Renamed from endDateTime to EndDateTime. ; ZIB-1756
63 changes: 63 additions & 0 deletions zib/StructureDefinitions/ext-TimeInterval.Duration.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?xml version="1.0" encoding="utf-8"?>
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="ext-TimeInterval.Duration" />
<text>
<status value="empty"/>
<div xmlns="http://www.w3.org/1999/xhtml">No narrative is provided for definitional resources. A human-readable rendering can be found in the implementation guide(s) where this resource is used.</div>
</text>
<url value="http://nictiz.nl/fhir/StructureDefinition/ext-TimeInterval.Duration" />
<name value="ExtTimeIntervalDuration" />
<title value="ext TimeInterval.Duration" />
<status value="draft" />
<publisher value="Nictiz" />
<contact>
<name value="Nictiz" />
<telecom>
<system value="url" />
<value value="https://www.nictiz.nl" />
<use value="work" />
</telecom>
</contact>
<description value="An extension to provide the Duration concept of zib TimeInterval." />
<purpose value="This extension can be used to represent the Duration concept of the Dutch [zib ('Zorginformatiebouwsteen', i.e. Health and Care Information Model) TimeInterval v1.3 (2024)](https://zibs.nl/wiki/TimeInterval-v1.3(2024EN)).&#xD;&#xA;&#xD;&#xA;Please note: this extension should not be added to profiles in isolation, but via either the [zib-TimeInterval](http://nictiz.nl/fhir/StructureDefinition/zib-TimeInterval) profile or the [ext-TimeInterval.Period](http://nictiz.nl/fhir/StructureDefinition/ext-TimeInterval.Period) extension. See the documentation on these resources for more information." />
<copyright value="Copyright and related rights waived via CC0, https://creativecommons.org/publicdomain/zero/1.0/. This does not apply to information from third parties, for example a medical terminology system. The implementer alone is responsible for identifying and obtaining any necessary licenses or authorizations to utilize third party IP in connection with the specification or otherwise." />
<fhirVersion value="4.0.1" />
<mapping>
<identity value="zib-timeinterval-v1.3-2024EN" />
<uri value="https://zibs.nl/wiki/TimeInterval-v1.3(2024EN)" />
<name value="zib TimeInterval-v1.3(2024EN)" />
</mapping>
<kind value="complex-type" />
<abstract value="false" />
<context>
<type value="element" />
<expression value="Period" />
</context>
<type value="Extension" />
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
<derivation value="constraint" />
<differential>
<element id="Extension">
<path value="Extension" />
<max value="1" />
</element>
<element id="Extension.url">
<path value="Extension.url" />
<fixedUri value="http://nictiz.nl/fhir/StructureDefinition/ext-TimeInterval.Duration" />
</element>
<element id="Extension.value[x]">
<path value="Extension.value[x]" />
<short value="Duration" />
<definition value="The duration of the interval in appropriate units of time (e.g. days or hours, etc.)." />
<alias value="TijdsDuur" />
<type>
<code value="Duration" />
</type>
<mapping>
<identity value="zib-timeinterval-v1.3-2024EN" />
<map value="NL-CM:20.3.4" />
<comment value="Duration" />
</mapping>
</element>
</differential>
</StructureDefinition>
51 changes: 51 additions & 0 deletions zib/StructureDefinitions/ext-TimeInterval.Period.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="utf-8"?>
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="ext-TimeInterval.Period" />
<text>
<status value="empty"/>
<div xmlns="http://www.w3.org/1999/xhtml">No narrative is provided for definitional resources. A human-readable rendering can be found in the implementation guide(s) where this resource is used.</div>
</text>
<url value="http://nictiz.nl/fhir/StructureDefinition/ext-TimeInterval.Period" />
<name value="ExtTimeIntervalPeriod" />
<title value="ext TimeInterval.Period" />
<status value="draft" />
<publisher value="Nictiz" />
<contact>
<name value="Nictiz" />
<telecom>
<system value="url" />
<value value="https://www.nictiz.nl" />
<use value="work" />
</telecom>
</contact>
<description value="An extension to provide all concepts of zib TimeInterval, to be used in resources where none of these concepts are natively supported." />
<purpose value="This extension is one of the three StructureDefinitions that can be used to represent the Dutch (partial) [zib ('Zorginformatiebouwsteen', i.e. Health and Care Information Model) TimeInterval v1.3 (2024)](https://zibs.nl/wiki/TimeInterval-v1.3(2024EN)). &#xD;&#xA;&#xD;&#xA;This zib is represented in FHIR by a combination of two datatypes: _Period_ and _Duration_. To support this zib across different FHIR resource types, three related StructureDefinitions are provided:&#xD;&#xA;&#xD;&#xA;* [ext-TimeInterval.Duration](http://nictiz.nl/fhir/StructureDefinition/ext-TimeInterval.Duration): extension to provide the _Duration_ datatype to resource types where no element with this datatype isn't normally available. This extension should not be used in isolation, but only via one of the two resources described below!&#xD;&#xA;* [zib-TimeInterval](http://nictiz.nl/fhir/StructureDefinition/zib-TimeInterval): profile on the _Period_ datatype that defines mappings to zib TimeInterval and brings in the ext-TimeInterval.Duration extension mentioned above. For resource types that natively support an element of the _Period_ datatype but not of the _Duration_ datatype, this profile should be used.&#xD;&#xA;* [ext-TimeInterval.Period](http://nictiz.nl/fhir/StructureDefinition/ext-TimeInterval.Period) (this extension): extension to provide the _Period_ datatype plus the _Duration_ extension mentioned above, with mappings to zib TimeInterval. For resource types that support neither elements of datatype _Period_ nor _Duration_, this extension should be used. *Note*: In hindsight the name of this extension is confusing, 'ext-TimeInterval' would have been better suited.&#xD;&#xA;* *Note*: when the resource type natively supports elements of datatype _Period_ and _Duration_, the zib should be mapped onto these elements directly." />
ArdonToonstra marked this conversation as resolved.
Show resolved Hide resolved
<copyright value="Copyright and related rights waived via CC0, https://creativecommons.org/publicdomain/zero/1.0/. This does not apply to information from third parties, for example a medical terminology system. The implementer alone is responsible for identifying and obtaining any necessary licenses or authorizations to utilize third party IP in connection with the specification or otherwise." />
<fhirVersion value="4.0.1" />
<kind value="complex-type" />
<abstract value="false" />
<context>
<type value="element" />
<expression value="MedicationRequest" />
</context>
<context>
<type value="element" />
<expression value="MedicationDispense" />
</context>
<type value="Extension" />
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
<derivation value="constraint" />
<differential>
<element id="Extension.url">
<path value="Extension.url" />
<fixedUri value="http://nictiz.nl/fhir/StructureDefinition/ext-TimeInterval.Period" />
</element>
<element id="Extension.value[x]">
<path value="Extension.value[x]" />
<type>
<code value="Period" />
<profile value="http://nictiz.nl/fhir/StructureDefinition/zib-TimeInterval" />
</type>
</element>
</differential>
</StructureDefinition>
63 changes: 63 additions & 0 deletions zib/StructureDefinitions/ext-TimeInterval.RelativeEndTime.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?xml version="1.0" encoding="utf-8"?>
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="ext-TimeInterval.RelativeEndTime" />
<text>
<status value="empty"/>
<div xmlns="http://www.w3.org/1999/xhtml">No narrative is provided for definitional resources. A human-readable rendering can be found in the implementation guide(s) where this resource is used.</div>
</text>
<url value="http://nictiz.nl/fhir/StructureDefinition/ext-TimeInterval.RelativeEndTime" />
<name value="ExtTimeIntervalRelativeEndTime" />
<title value="ext TimeInterval.RelativeEndTime" />
<status value="draft" />
<publisher value="Nictiz" />
<contact>
<name value="Nictiz" />
<telecom>
<system value="url" />
<value value="https://www.nictiz.nl" />
<use value="work" />
</telecom>
</contact>
<description value="An extension to provide the RelativeEndTime concept of zib TimeInterval." />
<purpose value="This extension can be used to represent the RelativeEndTime concept of the Dutch [zib ('Zorginformatiebouwsteen', i.e. Health and Care Information Model) TimeInterval v1.3 (2024)](https://zibs.nl/wiki/TimeInterval-v1.3(2024EN)).&#xD;&#xA;&#xD;&#xA;Please note: this extension should not be added to profiles in isolation, but via either the [zib-TimeInterval](http://nictiz.nl/fhir/StructureDefinition/zib-TimeInterval) profile or the [ext-TimeInterval.Period](http://nictiz.nl/fhir/StructureDefinition/ext-TimeInterval.Period) extension. See the documentation on these resources for more information." />
<copyright value="Copyright and related rights waived via CC0, https://creativecommons.org/publicdomain/zero/1.0/. This does not apply to information from third parties, for example a medical terminology system. The implementer alone is responsible for identifying and obtaining any necessary licenses or authorizations to utilize third party IP in connection with the specification or otherwise." />
<fhirVersion value="4.0.1" />
<mapping>
<identity value="zib-timeinterval-v1.3-2024EN" />
<uri value="https://zibs.nl/wiki/TimeInterval-v1.3(2024EN)" />
<name value="zib TimeInterval-v1.3(2024EN)" />
</mapping>
<kind value="complex-type" />
<abstract value="false" />
<context>
<type value="element" />
<expression value="Period.end" />
</context>
<type value="Extension" />
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
<derivation value="constraint" />
<differential>
<element id="Extension">
<path value="Extension" />
<max value="1" />
</element>
<element id="Extension.url">
ArdonToonstra marked this conversation as resolved.
Show resolved Hide resolved
<path value="Extension.url" />
<fixedUri value="http://nictiz.nl/fhir/StructureDefinition/ext-TimeInterval.RelativeEndTime" />
</element>
<element id="Extension.value[x]">
<path value="Extension.value[x]" />
<short value="RelativeEndTime" />
<definition value="Textual representation of an end time associated with an event for which the timing is not yet fixed. For example &quot;Stop the day before operation&quot;." />
<alias value="RelatieveEindTijd" />
<type>
<code value="string" />
</type>
<mapping>
<identity value="zib-timeinterval-v1.3-2024EN" />
<map value="NL-CM:20.3.8" />
<comment value="RelativeEndTime" />
</mapping>
</element>
</differential>
</StructureDefinition>
63 changes: 63 additions & 0 deletions zib/StructureDefinitions/ext-TimeInterval.RelativeStartTime.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?xml version="1.0" encoding="utf-8"?>
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="ext-TimeInterval.RelativeStartTime" />
<text>
<status value="empty"/>
<div xmlns="http://www.w3.org/1999/xhtml">No narrative is provided for definitional resources. A human-readable rendering can be found in the implementation guide(s) where this resource is used.</div>
</text>
<url value="http://nictiz.nl/fhir/StructureDefinition/ext-TimeInterval.RelativeStartTime" />
<name value="ExtTimeIntervalRelativeStartTime" />
<title value="ext TimeInterval.RelativeStartTime" />
<status value="draft" />
<publisher value="Nictiz" />
<contact>
<name value="Nictiz" />
<telecom>
<system value="url" />
<value value="https://www.nictiz.nl" />
<use value="work" />
</telecom>
</contact>
<description value="An extension to provide the RelativeStartTime concept of zib TimeInterval." />
<purpose value="This extension can be used to represent the RelativeStartTime concept of the Dutch [zib ('Zorginformatiebouwsteen', i.e. Health and Care Information Model) TimeInterval v1.3 (2024)](https://zibs.nl/wiki/TimeInterval-v1.3(2024EN)).&#xD;&#xA;&#xD;&#xA;Please note: this extension should not be added to profiles in isolation, but via either the [zib-TimeInterval](http://nictiz.nl/fhir/StructureDefinition/zib-TimeInterval) profile or the [ext-TimeInterval.Period](http://nictiz.nl/fhir/StructureDefinition/ext-TimeInterval.Period) extension. See the documentation on these resources for more information." />
<copyright value="Copyright and related rights waived via CC0, https://creativecommons.org/publicdomain/zero/1.0/. This does not apply to information from third parties, for example a medical terminology system. The implementer alone is responsible for identifying and obtaining any necessary licenses or authorizations to utilize third party IP in connection with the specification or otherwise." />
<fhirVersion value="4.0.1" />
<mapping>
<identity value="zib-timeinterval-v1.3-2024EN" />
<uri value="https://zibs.nl/wiki/TimeInterval-v1.3(2024EN)" />
<name value="zib TimeInterval-v1.3(2024EN)" />
</mapping>
<kind value="complex-type" />
<abstract value="false" />
<context>
<type value="element" />
<expression value="Period.start" />
</context>
<type value="Extension" />
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
<derivation value="constraint" />
<differential>
<element id="Extension">
<path value="Extension" />
<max value="1" />
</element>
<element id="Extension.url">
<path value="Extension.url" />
<fixedUri value="http://nictiz.nl/fhir/StructureDefinition/ext-TimeInterval.RelativeStartTime" />
</element>
<element id="Extension.value[x]">
<path value="Extension.value[x]" />
<short value="RelativeStartTime" />
<definition value="Textual representation of a start time associated with an event for which the time is not fixed or known. For example &quot;Start the day after discharge from hospital&quot;." />
<alias value="RelatieveStartTijd" />
<type>
<code value="string" />
</type>
<mapping>
<identity value="zib-timeinterval-v1.3-2024EN" />
<map value="NL-CM:20.3.7" />
<comment value="RelativeStartTime" />
</mapping>
</element>
ArdonToonstra marked this conversation as resolved.
Show resolved Hide resolved
</differential>
</StructureDefinition>
Loading
Loading