Skip to content

Commit

Permalink
Merge pull request #376 from NHSDigital/fix/ExamplesSTU2
Browse files Browse the repository at this point in the history
changed examples to non lab
  • Loading branch information
ryma2fhir authored May 25, 2023
2 parents d705cec + b4d35c7 commit 78d69a1
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 63 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
<value value="727071dc-eb01-4224-8ee8-cc0a029787ac"/>
</identifier>
<status value="final"/>
<category>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/v2-0074"/>
<code value="PHY"/>
<display value="Physician (Hx. Dx, admission note, etc.)"/>
</coding>
</category>
<code>
<coding>
<system value="http://snomed.info/sct"/>
Expand All @@ -16,14 +23,12 @@
<subject>
<reference value="Patient/UKCore-Patient-RichardSmith-Example"/>
</subject>
<effectiveDateTime value="2023-01-13T14:53:23+00:00"/>
<performer>
<reference value="Organization/UKCore-Organization-LeedsTeachingHospital-Example"/>
<display value="LEEDS TEACHING HOSPITALS NHS TRUST"/>
</performer>
<specimen>
<reference value="Specimen/UKCore-Specimen-BloodSpecimen-Example"/>
</specimen>
<result>
<reference value="Observation/UKCore-Observation-WhiteCellCount-Example"/>
<reference value="UKCore-Observation-FingerJointInflamed-Example"/>
</result>
</DiagnosticReport>
41 changes: 0 additions & 41 deletions examples/UKCore-Observation-WhiteCellCount-Example.xml

This file was deleted.

18 changes: 9 additions & 9 deletions structuredefinitions/UKCore-DiagnosticReport-Lab.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@
<baseDefinition value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-DiagnosticReport" />
<derivation value="constraint" />
<differential>
<element id="DiagnosticReport">
<path value="DiagnosticReport" />
<constraint>
<key value="ukcore-diag-lab-001" />
<severity value="warning" />
<human value="An effective time SHALL be given present if status = partial, preliminary, final, amended, corrected or appended" />
<expression value="effective.exists() or (effective.empty() and (status in ('partial' | 'preliminary' | 'final' | 'amended' | 'corrected' | 'appended')).not())" />
</constraint>
</element>
<element id="DiagnosticReport.category">
<path value="DiagnosticReport.category" />
<slicing>
Expand Down Expand Up @@ -67,15 +76,6 @@
<targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient" />
</type>
</element>
<element id="DiagnosticReport.effective[x]">
<path value="DiagnosticReport.effective[x]" />
<constraint>
<key value="ukcore-diag-lab-001" />
<severity value="warning" />
<human value="An effective time SHALL be given present if status = partial, preliminary, final, amended, corrected or appended" />
<expression value="effective.exists() or (effective.empty() and (status in ('partial' | 'preliminary' | 'final' | 'amended' | 'corrected' | 'appended')).not())" />
</constraint>
</element>
<element id="DiagnosticReport.result">
<path value="DiagnosticReport.result" />
<type>
Expand Down
18 changes: 9 additions & 9 deletions structuredefinitions/UKCore-Observation-LabGroup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@
<baseDefinition value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Observation" />
<derivation value="constraint" />
<differential>
<element id="Observation">
<path value="Observation" />
<constraint>
<key value="ukcore-obs-labgrp-001" />
<severity value="warning" />
<human value="value[x] SHOULD NOT be used within this Profile" />
<expression value="value.empty()" />
</constraint>
</element>
<element id="Observation.category">
<path value="Observation.category" />
<slicing>
Expand Down Expand Up @@ -71,15 +80,6 @@
<targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient" />
</type>
</element>
<element id="Observation.value[x]">
<path value="Observation.value[x]" />
<constraint>
<key value="ukcore-obs-labgrp-001" />
<severity value="warning" />
<human value="This element SHOULD NOT be used within this Profile" />
<expression value="value.empty()" />
</constraint>
</element>
<element id="Observation.hasMember">
<path value="Observation.hasMember" />
<type>
Expand Down

0 comments on commit 78d69a1

Please sign in to comment.