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

Add corner case where the description from a data type profile used in a derived profile isn't used #201

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions rX/snapshot-generation/manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
<test gen="true" id="simple-quantity" version="4.0.1" debug="true" description="see https://jira.hl7.org/browse/FHIR-43932 and https://chat.fhir.org/#narrow/stream/179177-conformance/topic/constraints.20on.20Types.2C.20and.20profiles"/>
<test gen="true" id="simple-quantity-2" version="4.0.1" debug="true" description="variant"/>
<test gen="true" id="simple-quantity-3" version="4.0.1" debug="true" description="variant"/>
<test gen="true" id="nl-core-NursingIntervention" version="4.0.1" debug="true" description="Inherit description from data type profile on the derived differential"/>
<test gen="true" id="slice-cardinality-derived" register="slice-cardinality-base" version="4.0.1" debug="true" description="The cardinality of a type slice in a derived profile should be unaffected by the cardinality of the polymorphic element in the base profile."/>
</snapshot-generation-tests>
112 changes: 112 additions & 0 deletions rX/snapshot-generation/nl-core-NursingIntervention-input.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
<?xml version="1.0" encoding="utf-8"?>
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="nl-core-NursingIntervention" />
<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/nl-core-NursingIntervention" />
<name value="NlcoreNursingIntervention" />
<title value="nl core NursingIntervention" />
<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="A nursing intervention is the care and/or treatment carried out by a nurse based on an expert opinion and clinical knowledge. It is part of the nursing process; interventions are determined as a result of indexed healthcare problems (nursing diagnoses) and based on treatment goals. Following the NEN-EN-ISO 18104 norm, it is possible to structure nursing interventions (or actions) in a hierarchy, where one intervention can be part of another intervention.&#xD;&#xA;&#xD;&#xA;In a home care situation some actions can also be performed by the patient or a caregiver after a relevant instruction." />
<purpose value="A derived profile from [zib-NursingIntervention](http://nictiz.nl/fhir/StructureDefinition/zib-NursingIntervention) to provide a version better suited for implementation purposes. This profile augments the base profile with elements found in the various use cases that have adopted the zib." />
<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-nursingintervention-v3.2-2020EN" />
<uri value="https://zibs.nl/wiki/NursingIntervention-v3.2(2020EN)" />
<name value="zib NursingIntervention-v3.2(2020EN)" />
</mapping>
<kind value="resource" />
<abstract value="false" />
<type value="CarePlan" />
<baseDefinition value="http://nictiz.nl/fhir/StructureDefinition/zib-NursingIntervention" />
<derivation value="constraint" />
<differential>
<element id="CarePlan">
<path value="CarePlan" />
<alias value="nl-core-NursingIntervention" />
</element>
<element id="CarePlan.subject">
<path value="CarePlan.subject" />
<type>
<code value="Reference" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
<targetProfile value="http://nictiz.nl/fhir/StructureDefinition/nl-core-Patient" />
</type>
</element>
<element id="CarePlan.contributor:requester">
<path value="CarePlan.contributor" />
<sliceName value="requester" />
<type>
<code value="Reference" />
<profile value="http://nictiz.nl/fhir/StructureDefinition/pattern-NlCoreHealthProfessionalReference" />
<targetProfile value="http://nictiz.nl/fhir/StructureDefinition/nl-core-HealthProfessional-PractitionerRole" />
</type>
</element>
<element id="CarePlan.addresses">
<path value="CarePlan.addresses" />
<type>
<code value="Reference" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
<targetProfile value="http://nictiz.nl/fhir/StructureDefinition/nl-core-Problem" />
</type>
</element>
<element id="CarePlan.goal">
<path value="CarePlan.goal" />
<type>
<code value="Reference" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Goal" />
<targetProfile value="http://nictiz.nl/fhir/StructureDefinition/nl-core-TreatmentObjective" />
</type>
</element>
<element id="CarePlan.activity.detail.extension:medicalDevice">
<path value="CarePlan.activity.detail.extension" />
<sliceName value="medicalDevice" />
</element>
<element id="CarePlan.activity.detail.extension:medicalDevice.value[x]">
<path value="CarePlan.activity.detail.extension.value[x]" />
<type>
<code value="Reference" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/DeviceUseStatement" />
<targetProfile value="http://nictiz.nl/fhir/StructureDefinition/nl-core-MedicalDevice" />
</type>
</element>
<element id="CarePlan.activity.detail.performer:healthcareProvider">
<path value="CarePlan.activity.detail.performer" />
<sliceName value="healthcareProvider" />
<type>
<code value="Reference" />
<profile value="http://nictiz.nl/fhir/StructureDefinition/pattern-NlCoreHealthProfessionalReference" />
<targetProfile value="http://nictiz.nl/fhir/StructureDefinition/nl-core-HealthProfessional-PractitionerRole" />
</type>
</element>
<element id="CarePlan.activity.detail.performer:caregiver">
<path value="CarePlan.activity.detail.performer" />
<sliceName value="caregiver" />
<type>
<code value="Reference" />
<targetProfile value="http://nictiz.nl/fhir/StructureDefinition/nl-core-ContactPerson" />
</type>
</element>
<element id="CarePlan.activity.detail.performer:patient">
<path value="CarePlan.activity.detail.performer" />
<sliceName value="patient" />
<type>
<code value="Reference" />
<targetProfile value="http://nictiz.nl/fhir/StructureDefinition/nl-core-Patient" />
</type>
</element>
</differential>
</StructureDefinition>
Loading
Loading