Skip to content

Commit

Permalink
Final round of changes to templates per QDM 5.3 review
Browse files Browse the repository at this point in the history
  • Loading branch information
dand9959 committed Dec 15, 2017
1 parent aa8cb11 commit 61fa55c
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,46 @@
xsi:schemaLocation="urn:hl7-org:v3 ../Schema/CDA/infrastructure/cda/CDA_SDTC.xsd" xmlns="urn:hl7-org:v3"
xmlns:voc="urn:hl7-org:v3/voc" xmlns:sdtc="urn:hl7-org:sdtc">

<entryRelationship typeCode="REFR">
<act classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.122" />
<!-- This ID equals the ID of the goal of a pulse
ox greater than 92% -->
<id root="3700b3b0-fbed-11e2-b778-0800200c9a66" />
<!-- The code is nulled to "NP" Not Present" -->
<code nullFlavor="NP" />
<statusCode code="completed" />
</act>
</entryRelationship>
<act classCode="ACT" moodCode="EVN">
<!-- Health Concern Act of a pneumonia diagnosis -->
<templateId root="2.16.840.1.113883.10.20.22.4.132" />
<id root="4eab0e52-dd7d-4285-99eb-72d32ddb195c" />
<code code="75310-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Health Concern" />
<statusCode code="active" />
<effectiveTime value="20130616" />
<entryRelationship typeCode="REFR">
<!-- Problem Observation (V2) -->
<observation classCode="OBS" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.4" extension="2014-06-09" />
<id root="8dfacd73-1682-4cc4-9351-e54ccea83612" />
<code code="29308-4"
codeSystem="2.16.840.1.113883.6.1"
codeSystemName="LOINC"
displayName="Diagnosis"/>
<statusCode code="completed" />
<effectiveTime>
<!-- Date of diagnosis -->
<low value="20130616" />
</effectiveTime>
<value xsi:type="CD" code="233604007"
codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED"
displayName="Pneumonia" />
<!-- This Entry Reference refers to a goal, intervention, actual
outcome, or some other entry present in the Care Plan
that the Health Concern is related to-->
<entryRelationship typeCode="REFR">
<act classCode="ACT" moodCode="EVN">
<templateId root="2.16.840.1.113883.10.20.22.4.122" />
<!-- This ID equals the ID of the goal of a pulse
ox greater than 92% -->
<id root="3700b3b0-fbed-11e2-b778-0800200c9a66" />
<!-- The code is nulled to "NP" Not Present" -->
<code nullFlavor="NP" />
<statusCode code="completed" />
</act>
</entryRelationship>
</observation>
</entryRelationship>
</act>

</ClinicalDocument>
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,21 @@
Author: Dan Donahue
Date: 08-01-2017
JIRA: https://tracker.esacinc.com/browse/QRDA-220
Update: 12-15-2017 Updates per QDM 5.3 review
Total Errors Expected: 16
Total Errors Expected: 18
Failure a-3343-27528-error SHALL contain exactly one [1..1] @classCode="SPLY" (CodeSystem: HL7ActClass urn:oid:2.16.840.1.113883.5.6) (CONF:3343-27528).
Failure a-3343-27529-error SHALL contain exactly one [1..1] @moodCode="EVN" (CodeSystem: ActMood urn:oid:2.16.840.1.113883.5.1001) (CONF:3343-27529).
Failure a-3343-13851-error SHALL contain exactly one [1..1] templateId (CONF:3343-13851) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.24.3.45" (CONF:3343-13852). SHALL contain exactly one [1..1] @extension="2017-08-01" (CONF:3343-26555).
Failure a-3343-19440-error SHALL contain exactly one [1..1] statusCode (CONF:3343-19440).
Failure a-3343-28910-error SHALL contain exactly one [1..1] author (CONF:3343-28910).
Failure a-3343-28669-error This template SHALL be contained by a Medication Dispensed Act (V2) (CONF:3343-28908).
Failure a-3343-28908-error This template SHALL be contained by a Medication Dispensed Act (V2) (CONF:3343-28908).
Failure a-3343-29011-error This author SHALL contain exactly one [1..1] time (CONF:3343-29011).
Failure a-3343-29010-error This author SHALL contain exactly one [1..1] assignedAuthor (CONF:3343-29010).
Failure a-3343-29012-error This assignedAuthor SHALL contain at least one [1..*] id (CONF:3343-29012).
Failure a-3343-19441-error This statusCode SHALL contain exactly one [1..1] @code="completed" (CodeSystem: ActStatus urn:oid:2.16.840.1.113883.5.14) (CONF:3343-19441).
Failure a-3343-29143-error The effectiveTime, if present, SHALL contain exactly one [1..1] low (CONF:3343-29143).
Failure a-3343-29144-error The effectiveTime, if present, SHALL contain exactly one [1..1] high (CONF:3343-29144).
Failure a-3343-28226-error This substanceAdministration SHALL contain exactly one [1..1] @classCode="SBADM" Substance Administration (CodeSystem: HL7ActClass urn:oid:2.16.840.1.113883.5.6) (CONF:3343-28226).
Failure a-3343-28227-error This substanceAdministration SHALL contain exactly one [1..1] @moodCode="EVN" Event (CodeSystem: HL7ActMood urn:oid:2.16.840.1.113883.5.1001) (CONF:3343-28227).
Failure a-3343-28229-error This substanceAdministration SHALL contain exactly one [1..1] consumable (CONF:3343-28229).
Expand Down Expand Up @@ -59,6 +62,9 @@
<!-- Failure a-3343-28910-error SHALL contain exactly one [1..1] author (CONF:3343-28910). -->
<!-- Failure a-3343-29011-error This author SHALL contain exactly one [1..1] time (CONF:3343-29011). -->
<author></author>
<!-- Failure a-3343-29143-error The effectiveTime, if present, SHALL contain exactly one [1..1] low -->
<!-- Failure a-3343-29144-error The effectiveTime, if present, SHALL contain exactly one [1..1] high -->
<effectiveTime> </effectiveTime>
<!-- QDM Attribute: Refills -->
<!-- ... -->
<entryRelationship typeCode="REFR">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@
<id root="50ed595a-dfb6-49f0-8b19-1901b5d01c1a"/>
<statusCode code="completed"/>
<author>
<time value="201504081130"/>
<time value="2017050101030"/>
<assignedAuthor>
<id nullFlavor="NA"/>
<id nullFlavor="NA"/>
</assignedAuthor>
</author>

<!-- QDM Attribute: Refills -->
<repeatNumber value="4"/>
<product>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
<text>Medication active: 0.09 MG/ACTUAT inhalant solution, 2 puffs QID PRN
wheezing</text>
<statusCode code="active"/>
<effectiveTime xsi:type="IVL_TS">
<low value="201704081130"/>
<high value="201704081130"/>
</effectiveTime>
<!-- QDM Attribute: Frequency -->
<effectiveTime xsi:type="PIVL_TS" institutionSpecified="true" operator="A">
<period value="6" unit="h"/>
Expand Down Expand Up @@ -50,5 +54,4 @@
</assignedAuthor>
</author>
</substanceAdministration>

</ClinicalDocument>
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@
xmlns:voc="urn:hl7-org:v3/voc" xmlns:sdtc="urn:hl7-org:sdtc">
<act classCode="ACT" moodCode="EVN">
<!-- ** Problem Concern Act (V3) ** -->
<templateId root="2.16.840.1.113883.10.20.22.4.3"
<templateId root="2.16.840.1.113883.10.20.22.4.3"
extension="2015-08-01" />
<id root="ec8a6ff8-ed4b-4f7e-82c3-e98e58b45de7" />
<code code="CONC" codeSystem="2.16.840.1.113883.5.6" displayName="Concern" >
<translation code="64572001" displayName="Condition" codeSystemName="SNOMED CT" codeSystem="2.16.840.1.113883.6.96"/>
</code>
<code code="CONC" codeSystem="2.16.840.1.113883.5.6" displayName="Concern" />
<!-- The statusCode represents the need to continue tracking the problem -->
<!-- This is of ongoing concern to the provider -->
<statusCode code="active" />
Expand All @@ -40,7 +38,6 @@
codeSystemName="Healthcare Provider Taxonomy (HIPAA)" />
</assignedAuthor>
</author>

<entryRelationship typeCode="SUBJ">
<observation classCode="OBS" moodCode="EVN">
<!-- ** Problem Observation (V3) ** -->
Expand All @@ -57,17 +54,17 @@
<!-- Based on signs and symptoms, appears to be resolved on Aug 14, 2013 -->
<high value="20080814" />
</effectiveTime>
<value xsi:type="CD"
code="233604007"
codeSystem="2.16.840.1.113883.6.96"
<value xsi:type="CD"
code="233604007"
codeSystem="2.16.840.1.113883.6.96"
displayName="Pneumonia" />
<author typeCode="AUT">
<templateId root="2.16.840.1.113883.10.20.22.4.119" />
<time value="200808141030-0800" />
<assignedAuthor>
<id extension="555555555" root="2.16.840.1.113883.4.6" />
<code code="207QA0505X"
displayName="Adult Medicine"
<code code="207QA0505X"
displayName="Adult Medicine"
codeSystem="2.16.840.1.113883.6.101"
codeSystemName="Healthcare Provider Taxonomy (HIPAA)" />
</assignedAuthor>
Expand Down

0 comments on commit 61fa55c

Please sign in to comment.