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

test coding datatype #501

Draft
wants to merge 2 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
46 changes: 46 additions & 0 deletions examples/UKCore-AllergyIntolerance-Amoxicillin-Example-FAIL.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<AllergyIntolerance xmlns="http://hl7.org/fhir">
<id value="UKCore-AllergyIntolerance-Amoxicillin-Example" />
<clinicalStatus>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical" />
<code value="active" />
<display value="Active" />
</coding>
</clinicalStatus>
<verificationStatus>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/allergyintolerance-verification" />
<code value="confirmed" />
<display value="Confirmed" />
</coding>
</verificationStatus>
<code>
<coding>
<system value="http://snomed.info/sct" />
<code value="372687004" />
<display value="Amoxicillin" />
</coding>
</code>
<patient>
<reference value="Patient/UKCore-Patient-RichardSmith-Example" />
</patient>
<encounter>
<reference value="Encounter/UKCore-Encounter-InpatientEncounter-Example" />
</encounter>
<recordedDate value="2019-12-10T13:00:00+00:00" />
<recorder>
<reference value="Practitioner/UKCore-Practitioner-ConsultantSandraGose-Example" />
</recorder>
<asserter>
<reference value="Practitioner/UKCore-Practitioner-ConsultantSandraGose-Example" />
</asserter>
<reaction>
<manifestation>
<coding>
<system value="http://snomed.info/sct" />
<display value="Urticarial rash" />
</coding>
</manifestation>
<severity value="mild" />
</reaction>
</AllergyIntolerance>
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<AllergyIntolerance xmlns="http://hl7.org/fhir">
<id value="UKCore-AllergyIntolerance-Amoxicillin-Example" />
<clinicalStatus>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical" />
<code value="active" />
<display value="Active" />
</coding>
</clinicalStatus>
<verificationStatus>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/allergyintolerance-verification" />
<code value="confirmed" />
<display value="Confirmed" />
</coding>
</verificationStatus>
<code>
<coding>
<system value="http://snomed.info/sct" />
<code value="372687004" />
<display value="Amoxicillin" />
</coding>
</code>
<patient>
<reference value="Patient/UKCore-Patient-RichardSmith-Example" />
</patient>
<encounter>
<reference value="Encounter/UKCore-Encounter-InpatientEncounter-Example" />
</encounter>
<recordedDate value="2019-12-10T13:00:00+00:00" />
<recorder>
<reference value="Practitioner/UKCore-Practitioner-ConsultantSandraGose-Example" />
</recorder>
<asserter>
<reference value="Practitioner/UKCore-Practitioner-ConsultantSandraGose-Example" />
</asserter>
<reaction>
<manifestation>
<text value="rash of some kind" />
</manifestation>
<severity value="mild" />
</reaction>
</AllergyIntolerance>
18 changes: 18 additions & 0 deletions structuredefinitions/UKCore-AllergyIntolerance.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@
<path value="AllergyIntolerance.verificationStatus" />
<mustSupport value="true" />
</element>
<element id="AllergyIntolerance.verificationStatus.coding">
<path value="AllergyIntolerance.verificationStatus.coding" />
<short value="A reference to a code defined by a terminology system" />
<comment value="Codes may be defined very casually in enumerations or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information." />
<type>
<code value="Coding" />
<profile value="https://hl7.org.uk/StructureDefinition/UKCoreCoding" />
</type>
</element>
<element id="AllergyIntolerance.code">
<path value="AllergyIntolerance.code" />
<min value="1" />
Expand Down Expand Up @@ -84,6 +93,15 @@
<valueSet value="https://fhir.hl7.org.uk/ValueSet/UKCore-AllergyManifestation" />
</binding>
</element>
<element id="AllergyIntolerance.reaction.manifestation.coding">
<path value="AllergyIntolerance.reaction.manifestation.coding" />
<short value="A reference to a code defined by a terminology system" />
<comment value="Codes may be defined very casually in enumerations or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information." />
<type>
<code value="Coding" />
<profile value="https://hl7.org.uk/StructureDefinition/UKCoreCoding" />
</type>
</element>
<element id="AllergyIntolerance.reaction.severity">
<path value="AllergyIntolerance.reaction.severity" />
<mustSupport value="true" />
Expand Down
24 changes: 24 additions & 0 deletions structuredefinitions/UKCore-Coding.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="UK-Core-Coding" />
<url value="https://hl7.org.uk/StructureDefinition/UKCoreCoding" />
<name value="UKCoreCoding" />
<title value="UKCore Coding" />
<status value="draft" />
<fhirVersion value="4.0.1" />
<kind value="complex-type" />
<abstract value="false" />
<type value="Coding" />
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/Coding" />
<derivation value="constraint" />
<differential>
<element id="Coding.system">
<path value="Coding.system" />
<min value="1" />
</element>
<element id="Coding.code">
<path value="Coding.code" />
<min value="1" />
</element>
</differential>
</StructureDefinition>
Loading