Skip to content

Commit

Permalink
Testing not-present causes validation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
APageNHS committed Oct 30, 2023
1 parent 667eaba commit 72c82f8
Show file tree
Hide file tree
Showing 4 changed files with 155 additions and 9 deletions.
10 changes: 1 addition & 9 deletions codesystems/CodeSystem-UKCore-RecordingSetting.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,5 @@
<description value="A CodeSystem to record if an observation was recorded at home or in a clinical setting."/>
<copyright value="Copyright &#169; 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&#174; FHIR&#174; standard Copyright &#169; 2011+ HL7 The HL7&#174; FHIR&#174; standard is used under the FHIR license. You may obtain a copy of the FHIR license at https://www.hl7.org/fhir/license.html."/>
<caseSensitive value="true"/>
<content value="complete"/>
<concept>
<code value="residential"/>
<display value="Residential"/>
</concept>
<concept>
<code value="clinical"/>
<display value="Clinical"/>
</concept>
<content value="not-present"/>
</CodeSystem>
85 changes: 85 additions & 0 deletions examples/DCAPI-MedicationRequest-Example.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<MedicationRequest xmlns="http://hl7.org/fhir">
<id value="DCAPI-MedicationRequest-Example" />
<extension url="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation">
<extension url="numberOfPrescriptionsIssued">
<valueUnsignedInt value="1" />
</extension>
<extension url="authorisationExpiryDate">
<valueDateTime value="2023-09-10T19:00:00.000Z" />
</extension>
</extension>
<status value="active" />
<intent value="plan" />
<category>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/medicationrequest-category" />
<code value="community" />
<display value="Community" />
</coding>
</category>
<medicationCodeableConcept>
<coding>
<system value="https://dmd.nhs.uk" />
<code value="3113111000001106" />
<display value="Pulmicort 100 Turbohaler (AstraZeneca UK Ltd)" />
</coding>
</medicationCodeableConcept>
<subject>
<reference value="Patient/9000000009" />
<identifier>
<system value="https://fhir.nhs.uk/Id/nhs-number" />
<value value="9000000009" />
</identifier>
<display value="Jane Smith" />
</subject>
<authoredOn value="2022-10-13T16:20:27+07:00" />
<requester>
<reference value="PractitionerRole/DCAPI-PractitionerRole-Example" />
<display value="Dr Jane Smith" />
</requester>
<groupIdentifier>
<system value="https://fhir.nhs.uk/Id/prescription-order-number" />
<value value="PDI12E-Y765908-4FF3LQ" />
</groupIdentifier>
<courseOfTherapyType>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy" />
<code value="continuous" />
<display value="Continuous long term therapy" />
</coding>
</courseOfTherapyType>
<dosageInstruction>
<text value="One to two puffs to be inhaled as needed" />
<method>
<coding>
<system value="http://snomed.info/sct" />
<code value="420652005" />
<display value="Until gone" />
</coding>
</method>
</dosageInstruction>
<dispenseRequest>
<numberOfRepeatsAllowed value="6" />
<quantity>
<value value="1" />
<unit value="inhaler" />
<system value="http://snomed.info/sct" />
<code value="334980009" />
</quantity>
<expectedSupplyDuration>
<value value="28" />
<unit value="days" />
<system value="http://unitsofmeasure.org" />
<code value="d" />
</expectedSupplyDuration>
<performer>
<identifier>
<system value="https://fhir.nhs.uk/Id/ods-organization-code" />
<value value="Y12345" />
</identifier>
</performer>
</dispenseRequest>
<substitution>
<allowedBoolean value="false" />
</substitution>
</MedicationRequest>
16 changes: 16 additions & 0 deletions examples/DCAPI-PractitionerRole-Example.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<PractitionerRole xmlns="http://hl7.org/fhir">
<id value="DCAPI-PractitionerRole-Example" />
<practitioner>
<identifier>
<system value="https://fhir.hl7.org.uk/Id/gmc-number" />
<value value="C9876543" />
</identifier>
<display value="Dr Jane Smith" />
</practitioner>
<organization>
<identifier>
<system value="https://fhir.nhs.uk/Id/ods-organization-code" />
<value value="L8048" />
</identifier>
</organization>
</PractitionerRole>
53 changes: 53 additions & 0 deletions examples/DCAPI-Task-Example.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<Task xmlns="http://hl7.org/fhir">
<id value="DCAPI-Task-Example" />
<meta>
<profile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Task" />
</meta>
<status value="requested" />
<intent value="order" />
<code>
<coding>
<system value="http://snomed.info/sct" />
<code value="103742009" />
<display value="Renewal of prescription" />
</coding>
</code>
<focus>
<reference value="MedicationRequest/DCAPI-MedicationRequest-Example" />
</focus>
<for>
<reference value="Patient/9000000009" />
<identifier>
<system value="https://fhir.nhs.uk/Id/nhs-number" />
<value value="9000000009" />
</identifier>
<display value="Jane Smith" />
</for>
<authoredOn value="2022-10-13T09:20:27.000Z" />
<lastModified value="2022-10-13T09:20:27.000Z" />
<requester>
<reference value="Patient/9000000009" />
<identifier>
<system value="https://fhir.nhs.uk/Id/nhs-number" />
<value value="9000000009" />
</identifier>
<display value="Jane Smith" />
</requester>
<note>
<authorString value="Patient" />
<text value="ran out of previous prescription" />
</note>
<input>
<type>
<coding>
<system value="https://fhir.hl7.org.uk/GPConnect-PrescriptionOrderingParameters" />
<code value="preferred-performer" />
<display value="Preferred performer" />
</coding>
</type>
<valueIdentifier>
<system value="https://fhir.nhs.uk/Id/ods-organization-code" />
<value value="FLM49" />
</valueIdentifier>
</input>
</Task>

0 comments on commit 72c82f8

Please sign in to comment.