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

Digimeds draft technical sprint assets #507

Draft
wants to merge 5 commits into
base: develop
Choose a base branch
from
Draft
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
58 changes: 58 additions & 0 deletions structuredefinitions/Extension-UKCore-LocationReference.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?xml version="1.0" encoding="utf-8"?>
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="Extension-UKCore-LocationReference" />
<url value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-LocationReference" />
<version value="0.0.1" />
<name value="ExtensionUKCoreLocationReference" />
<title value="Extension UKCore Location Reference" />
<status value="draft" />
<date value="2024-02-01" />
<publisher value="HL7 UK" />
<contact>
<name value="HL7 UK" />
<telecom>
<system value="email" />
<value value="[email protected]" />
<use value="work" />
<rank value="1" />
</telecom>
</contact>
<description value="This extension is used to reference a Location." />
<purpose value="This is a Interoperable Medicines use case to record the location a medication request should be dispensed to." />
<copyright value="Copyright © 2021+ HL7 UK Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. HL7® FHIR® standard Copyright © 2011+ HL7 The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at https://www.hl7.org/fhir/license.html." />
<fhirVersion value="4.0.1" />
<mapping>
<identity value="rim" />
<uri value="http://hl7.org/v3" />
<name value="RIM Mapping" />
</mapping>
<kind value="complex-type" />
<abstract value="false" />
<context>
<type value="element" />
<expression value="MedicationRequest.dispenseRequest" />
</context>
<type value="Extension" />
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
<derivation value="constraint" />
<differential>
<element id="Extension">
<path value="Extension" />
<short value="A location reference." />
<definition value="A location reference." />
<max value="1" />
</element>
<element id="Extension.url">
<path value="Extension.url" />
<fixedUri value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-LocationReference" />
</element>
<element id="Extension.value[x]">
<path value="Extension.value[x]" />
<min value="1" />
<type>
<code value="Reference" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
</type>
</element>
</differential>
</StructureDefinition>
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8"?>
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="Extension-UKCore-MedicationCourseOfTherapyType" />
<url value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationCourseOfTherapyType" />
<version value="0.0.1" />
<name value="ExtensionUKCoreMedicationCourseOfTherapyType" />
<title value="Extension UK Core Medication Course Of Therapy Type" />
<status value="draft" />
<date value="2024-02-01" />
<publisher value="HL7 UK" />
<contact>
<name value="HL7 UK" />
<telecom>
<system value="email" />
<value value="[email protected]" />
<use value="work" />
<rank value="1" />
</telecom>
</contact>
<description value="An extension to record an overall pattern of medication administration." />
<purpose value="This extension is an Interoperable Medicines use case to record the course of therpay type - e.g. Repeat, Acute etc, at a MedicationStatement level." />
<copyright value="Copyright © 2021+ HL7 UK Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. HL7® FHIR® standard Copyright © 2011+ HL7 The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at https://www.hl7.org/fhir/license.html." />
<fhirVersion value="4.0.1" />
<kind value="complex-type" />
<abstract value="false" />
<context>
<type value="element" />
<expression value="MedicationStatement" />
</context>
<type value="Extension" />
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
<derivation value="constraint" />
<differential>
<element id="Extension">
<path value="Extension" />
<short value="Pattern of medication administration" />
<definition value="An extension to support communication of the pattern of medication administration at the MedicationStatement level." />
</element>
<element id="Extension.url">
<path value="Extension.url" />
<fixedUri value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-CourseOfTherapyType" />
</element>
<element id="Extension.value[x]">
<path value="Extension.value[x]" />
<short value="Medication course of therapy type" />
<definition value="A code to represent the medication course of therapy type" />
<min value="1" />
<type>
<code value="CodeableConcept" />
</type>
<binding>
<strength value="extensible" />
<valueSet value="https://fhir.hl7.org.uk/ValueSet/UKCore-MedicationRequestCourseOfTherapy" />
</binding>
</element>
</differential>
</StructureDefinition>
11 changes: 11 additions & 0 deletions structuredefinitions/UKCore-MedicationRequest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,17 @@
<path value="MedicationRequest.dispenseRequest" />
<mustSupport value="true" />
</element>
<element id="MedicationRequest.dispenseRequest.extension:dispenseTo">
<path value="MedicationRequest.dispenseRequest.extension" />
<sliceName value="dispenseTo" />
<short value="A Location where this request should be dispensed to." />
<definition value="A reference to a Location where this request should be dispensed to." />
<type>
<code value="Extension" />
<profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-LocationReference" />
</type>
<isModifier value="false" />
</element>
<element id="MedicationRequest.dispenseRequest.quantity">
<path value="MedicationRequest.dispenseRequest.quantity" />
<mustSupport value="true" />
Expand Down
9 changes: 9 additions & 0 deletions structuredefinitions/UKCore-MedicationStatement.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@
<profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationStatementLastIssueDate" />
</type>
</element>
<element id="MedicationStatement.extension:courseOfTherapyType">
<path value="MedicationStatement.extension" />
<sliceName value="courseOfTherapyType" />
<type>
<code value="Extension" />
<profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationCourseOfTherapyType" />
</type>
<isModifier value="false" />
</element>
<element id="MedicationStatement.identifier">
<path value="MedicationStatement.identifier" />
<mustSupport value="true" />
Expand Down
Loading