Changeset 927


Ignore:
Timestamp:
Sep 5, 2010, 6:01:17 PM (14 years ago)
Author:
George Lilly
Message:

newest version

Location:
qrda/schematron
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • qrda/schematron/QRDA_CategoryI_WorldVistAH-2011-Working.xml

    r921 r927  
    236236         <!-- http://terminology.vetmed.vt.edu/SCT/menu.cfm to look up codes-->
    237237         <!--59058001 is general physician ;Family Medicine specialist is 62247001-->
    238           <code code="62247001" codeSystem="2.16.840.1.113883.6.69" codeSystemName="SNOMED CT" displayName="Internal Medician Specialist"/>
     238          <code code="62247001" codeSystem="2.16.840.1.113883.6.69" codeSystemName="SNM" displayName="Internal Medician Specialist"/>
    239239          <addr>
    240240            <streetAddressLine>123 Maple Ave</streetAddressLine>
     
    283283         <!-- http://terminology.vetmed.vt.edu/SCT/menu.cfm to look up codes-->
    284284         <!--59058001 is general physician ;Family Medicine specialist is 62247001-->
    285           <code code="62247001" codeSystem="2.16.840.1.113883.6.69" codeSystemName="SNOMED CT" displayName="Internal Medician Specialist"/>
     285          <code code="62247001" codeSystem="2.16.840.1.113883.6.69" codeSystemName="SNM" displayName="Internal Medician Specialist"/>
    286286          <addr>
    287287            <streetAddressLine>123 Maple Ave</streetAddressLine>
     
    656656                              <low value="20010101"/>
    657657                            </effectiveTime>
     658                            <!--CONF-QRDA1-166 follows-->
     659                            <code code="64572001" type="CD" displayName="condition" codeSystem="2.16.840.1.113883.6.96"/>
    658660                            <!--CD is a concept descriptor and the code systeem is ICD9 for 6.103 -->
    659661                            <value xsi:type="CD" code="250.00" codeSystem="2.16.840.1.113883.6.103" displayName="Diabetes Mellitus"/>
     
    668670                                <code code="33999-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Status"/>
    669671                                <statusCode code="completed"/>
    670                                 <!--55561003 is fro active CE is for coded with equivalents data type and 6.96 is SNOMED  CT-->
    671                                 <value xsi:type="CE" code="90734009" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="Chronic"/>
     672                                <!--55561003 is fro active CE is for coded with equivalents data type and 2.16.840.1.113883.6.96 is SNOMED  CT.  This is CONF-QRDA1-168 and comes from the downloadable resource tab C-->
     673                                <value xsi:type="CE" code="90734009" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNM" displayName="Chronic"/>
    672674                              </observation>
    673675                            </entryRelationship>
     
    696698                              <low value="20030101"/>
    697699                            </effectiveTime>
     700                            <code code="64572001" type="CD" displayName="condition" codeSystem="2.16.840.1.113883.6.96"/>
    698701                            <!--CD is a concept descriptor and the code systeem is ICD9 for 6.103 -->
    699702                            <value xsi:type="CD" code="428.0" codeSystem="2.16.840.1.113883.6.103" displayName="Congestive Heart Failure"/>
     
    709712                                <statusCode code="completed"/>
    710713                                <!--55561003 is fro active CE is for coded with equivalents data type and 6.96 is SNOMED  CT-->
    711                                 <value xsi:type="CE" code="90734009" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="Chronic"/>
     714                                <value xsi:type="CE" code="90734009" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNM" displayName="Chronic"/>
    712715                              </observation>
    713716                            </entryRelationship>
    714717                          </observation>
    715                         </entryRelationship>
    716                       </act>
     718                       </entryRelationship>
     719                     </act>
    717720                                                              </entry>
    718721                    <entry typeCode="DRIV">
     
    735738                              <low value="20030101"/>
    736739                            </effectiveTime>
     740                            <code code="64572001" type="CD" displayName="condition" codeSystem="2.16.840.1.113883.6.96"/>
    737741                            <!--CD is a concept descriptor and the code systeem is ICD9 for 6.103 -->
    738742                            <value xsi:type="CD" code="412" codeSystem="2.16.840.1.113883.6.103" displayName="Old Myocardial Infarction"/>
     
    748752                                <statusCode code="completed"/>
    749753                                <!--55561003 is fro active CE is for coded with equivalents data type and 6.96 is SNOMED  CT-->
    750                                 <value xsi:type="CE" code="73425007" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="Inactive"/>
     754                                <value xsi:type="CE" code="73425007" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNM" displayName="Inactive"/>
    751755                              </observation>
    752756                            </entryRelationship>
     
    10951099<templateId root="2.16.840.1.113883.10.20.1.32"/>
    10961100<id root="38eb54f1-888c-11df-a4ee-0800200c9c66"/>
    1097 <code code="363679005" codeSystemName="SNOMED CT" displayName="IMAGING"/>
     1101<code code="363679005" codeSystemName="SNM" displayName="IMAGING"/>
    10981102<statusCode code="completed"/>
    10991103<effectiveTime value="201002071300"/>
     
    11041108<!--<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.13" assigningAuthorityName="IHE PCC"/>-->
    11051109<id root="38eb54f2-888c-11df-a4ee-0800200c9c66"/>
    1106 <code code="250908004" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="LEFT VERTRICULAR EJECTION FRACTION"/>
     1110<code code="250908004" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNM" displayName="LEFT VERTRICULAR EJECTION FRACTION"/>
    11071111<text>LEFT VERTRICULAR EJECTION FRACTION</text>
    11081112<statusCode code="completed"/>
     
    11721176<templateId root="2.16.840.1.113883.10.20.1.29"/>
    11731177<id root="a32801b9-8855-11df-a4ee-0800200c9c66"/>
    1174 <code code="24623002" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="SCREENING MAMMOGRAPHY"/>
     1178<code code="24623002" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNM" displayName="SCREENING MAMMOGRAPHY"/>
    11751179<statusCode code="completed"/>
    11761180<effectiveTime value="20100207"/>
     
    13481352<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.13.1" assigningAuthorityName="IHE PCC"/>
    13491353<id root="7eedbc60-8a15-11df-a4ee-0800200c9c66"/>
    1350 <code code="46680005" codeSystem="2.16.840.1.113883.6.96" displayName="Vital signs" codeSystemName="SNOMED CT"/>
     1354<code code="46680005" codeSystem="2.16.840.1.113883.6.96" displayName="Vital signs" codeSystemName="SNM"/>
    13511355<statusCode code="completed"/>
    13521356<effectiveTime value="20100210"/>
     
    13571361<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.13" assigningAuthorityName="IHE PCC"/>
    13581362<id root="a32801b7-8855-11df-a4ee-0800200c9c66"/>
    1359 <code displayName="SYSTOLIC BLOOD PRESSURE" code="72313002" codeSystemName="SNOMED CT" codeSystem="2.16.840.1.113883.6.96"/>
     1363<code displayName="SYSTOLIC BLOOD PRESSURE" code="72313002" codeSystemName="SNM" codeSystem="2.16.840.1.113883.6.96"/>
    13601364<statusCode code="completed"/>
    13611365<effectiveTime value="20100210"/>
     
    13701374<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.13" assigningAuthorityName="IHE PCC"/>
    13711375<id root="a32801b8-8855-11df-a4ee-0800200c9c66"/>
    1372 <code displayName="DIASTOLIC BLOOD PRESSURE" code="271649006" codeSystemName="SNOMED CT" codeSystem="2.16.840.1.113883.6.96"/>
     1376<code displayName="DIASTOLIC BLOOD PRESSURE" code="271649006" codeSystemName="SNM" codeSystem="2.16.840.1.113883.6.96"/>
    13731377<statusCode code="completed"/>
    13741378<effectiveTime value="20100210"/>
     
    13831387<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.13" assigningAuthorityName="IHE PCC"/>
    13841388<id root="7eedbc64-8a15-11df-a4ee-0800200c9c66"/>
    1385 <code displayName="HEART RATE" code="364075005" codeSystemName="SNOMED CT" codeSystem="2.16.840.1.113883.6.96"/>
     1389<code displayName="HEART RATE" code="364075005" codeSystemName="SNM" codeSystem="2.16.840.1.113883.6.96"/>
    13861390<statusCode code="completed"/>
    13871391<effectiveTime value="20100210"/>
     
    14011405<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.13.1" assigningAuthorityName="IHE PCC"/>
    14021406<id root="7eede370-8a15-11df-a4ee-0800200c9c66"/>
    1403 <code code="46680005" codeSystem="2.16.840.1.113883.6.96" displayName="Vital signs" codeSystemName="SNOMED CT"/>
     1407<code code="46680005" codeSystem="2.16.840.1.113883.6.96" displayName="Vital signs" codeSystemName="SNM"/>
    14041408<statusCode code="completed"/>
    14051409<effectiveTime value="20100701"/>
     
    14101414<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.13" assigningAuthorityName="IHE PCC"/>
    14111415<id root="7eede371-8a15-11df-a4ee-0800200c9c66"/>
    1412 <code displayName="SYSTOLIC BLOOD PRESSURE" code="72313002" codeSystemName="SNOMED CT" codeSystem="2.16.840.1.113883.6.96"/>
     1416<code displayName="SYSTOLIC BLOOD PRESSURE" code="72313002" codeSystemName="SNM" codeSystem="2.16.840.1.113883.6.96"/>
    14131417<statusCode code="completed"/>
    14141418<effectiveTime value="20100701"/>
     
    14231427<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.13" assigningAuthorityName="IHE PCC"/>
    14241428<id root="7eede372-8a15-11df-a4ee-0800200c9c66"/>
    1425 <code displayName="DIASTOLIC BLOOD PRESSURE" code="271649006" codeSystemName="SNOMED CT" codeSystem="2.16.840.1.113883.6.96"/>
     1429<code displayName="DIASTOLIC BLOOD PRESSURE" code="271649006" codeSystemName="SNM" codeSystem="2.16.840.1.113883.6.96"/>
    14261430<statusCode code="completed"/>
    14271431<effectiveTime value="20100701"/>
     
    14361440<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.13" assigningAuthorityName="IHE PCC"/>
    14371441<id root="7eede373-8a15-11df-a4ee-0800200c9c66"/>
    1438 <code displayName="HEART RATE" code="364075005" codeSystemName="SNOMED CT" codeSystem="2.16.840.1.113883.6.96"/>
     1442<code displayName="HEART RATE" code="364075005" codeSystemName="SNM" codeSystem="2.16.840.1.113883.6.96"/>
    14391443<statusCode code="completed"/>
    14401444<effectiveTime value="20100701"/>
  • qrda/schematron/templates/2.16.840.1.113883.10.20.12.ent

    r922 r927  
    11<!-- edited with XMLSpy v2009 sp1 (http://www.altova.com) by David Mishler (Medrad) -->
    22<!--  HL7 QRDA Category I Header (Section 2) -->
    3 <!-- This document provides errors and edits pertinent to the header section of the QRDA files. It is assumed that the QRDA files are VALID CDA release 2 files.-->
     3<!-- This document provides errors and edits pertinent to the header section the QRDA files. It is assumed that the QRDA files are VALID CDA release 2 files.-->
    44<!-- errors -->
    55<pattern id="p-2.16.840.1.113883.10.20.12-errors">
     
    481481   
    482482     <!-- see CONF-QRDA1-125 for CONF-QRDA1-133 and CONF-QRDA1-134-->
    483         <let name="ReportingParametersTitle" value="cda:component/cda:structuredBody/cda:component/cda:section/cda:component/cda:section/cda:component/cda:section/cda:title"/>
     483     <let name="ReportingParametersTitle" value="cda:component/cda:structuredBody/cda:component/cda:section/cda:component/cda:section/cda:component/cda:section/cda:title"/>
    484484    <assert test='upper-case($ReportingParametersTitle)="REPORTING PARAMETERS"'>
    485485    Error: CONF-QRDA1-135: A reporting parameters section which is a nested section in the measures section which is nested in the Measures Set section section SHALL valued with a section/title containing a case insensitive, text string containing Reporting Parameters.
    486     </assert>
    487         </rule>
     486    </assert>     
     487        </rule>
    488488        <!--<rule context='*[cda:code[@code="55186-1" and @codeSystem="2.16.840.1.113883.6.1"]]'>-->
    489489        <!-- Measure -->
     
    543543       Error: CONF-QRDA1-139: The reporting time period SHALL be represented with an effectiveTime/low element combined with a high element representing respectively the first and last days of the period reported and they SHALL be precise at least to the day (YYYYMMDD).
    544544    </assert>
    545        
     545             
     546        <!-- CONF-QRDA-143 The Patient Data Section SHOULD contain patien data pretainig to the measures stated in the Measure section.  Any patient data that is not applicatble to the mearsures will be ignored
     547        CONF-QRDA-144 The measures data SHALL be presented in clinical statements
     548        CONF-QRDA-145 The mearure date using SNOMED SHALL be represented per the Using SNOMED CT in HL7 Version 3 DSTU
     549        CONF-QRDA-146: The Measures data SHOULD use CCD and other CDA IG templates whce possible. All the templates that are used by this specification are discribed in Chapter 3 of the 2011 Data Submission Specifications Utilizing HL7 QRDA Implementation Guide Based on HL7 CDA Release 2.0 -->
     550        </rule>
     551        <rule context='*[cda:code[@code="55188-7" and @codeSystem="2.16.840.1.113883.6.1"]]'>
     552                <assert test='contains(translate(cda:title,"QWERTYUIOPASDFGHJKLZXCVBNM","qwertyuiopasdfghjklzxcvbnm"),"patient data")'>
     553       Error: CONF-QRDA1-142: The Patient Data section SHALL be valued with section/title with a
     554       case-insensitive, text string containing "Patient Data".
     555    </assert>
     556
    546557        </rule>
     558                <!-- CONF-QRDA-143 The Patient Data Section SHOULD contain patien data pretainig to the measures stated in the Measure section.  Any patient data that is not applicatble to the mearsures will be ignored
     559        CONF-QRDA-144 The measures data SHALL be presented in clinical statements
     560        CONF-QRDA-145 The mearure date using SNOMED SHALL be represented per the Using SNOMED CT in HL7 Version 3 DSTU
     561        CONF-QRDA-146: The Measures data SHOULD use CCD and other CDA IG templates whce possible. All the templates that are used by this specification are discribed in Chapter 3 of the 2011 Data Submission Specifications Utilizing HL7 QRDA Implementation Guide Based on HL7 CDA Release 2.0 -->
     562       
    547563        <!-- Patient Data Section -->
    548564        <rule context='*[cda:code[@code="55188-7" and @codeSystem="2.16.840.1.113883.6.1"]]'>
    549565                <assert test='contains(translate(cda:title,"QWERTYUIOPASDFGHJKLZXCVBNM","qwertyuiopasdfghjklzxcvbnm"),"patient data")'>
    550        Error: CONF-QRDA-I-57: The Patient Data section SHALL be valued with section/title with a
     566       Error: CONF-QRDA1-142: The Patient Data section SHALL be valued with section/title with a
    551567       case-insensitive, text string containing "Patient Data".
    552568    </assert>
    553569        </rule>
     570       
     571        <!--  Problem section: 2.16.840.1.113883.10.20.1.11 -->
     572
     573 <rule context='*[cda:templateId/@root="2.16.840.1.113883.10.20.1.11"]'>
     574       
     575        <assert test='cda:code[@code="11450-4" and @codeSystem="2.16.840.1.113883.6.1"]'>
     576        Error:  CONF-QRDA1-147:  The problem section SHALL contain Section / code. The value for "Section / code" SHALL be "11450-4" "Problem list" 2.16.840.1.113883.6.1 LOINC STATIC.
     577        </assert>
     578        <assert test="cda:title">
     579        Error: CONF-QRDA1-150:The problem section SHALL contain Section / title.
     580        </assert>
     581        <assert test="contains(translate(cda:title,'QWERTYUIOPASDFGHJKLZXCVBNM','qwertyuiopasdfghjklzxcvbnm'),'problems')">
     582        Section / title SHOULD be valued with a case-insensitive language-insensitive text string containing "problems".
     583        </assert>
     584        <assert test='(every $classCode in cda:entry/cda:act/@classCode satisfies ($classCode="ACT")) and (every $moodCode in cda:entry/cda:act/@moodCode satisfies ($moodCode="EVN"))'>
     585        Error: CONF-QRDA1-152, CONF-QRDA1-153,CONF-QRDA1-154: A problem act (templateId 2.16.840.1.113883.10.20.1.27) SHALL be represented with Act. The value for "Act / classCode" in a problem act SHALL be "ACT" 2.16.840.1.113883.5.6 ActClass STATIC. The value for "Act / moodCode" in a problem act SHALL be "EVN" 2.16.840.1.113883.5.1001 ActMood STATIC. TEST!!
     586        </assert>
     587        <!--HOW DO I SAY THAT EVERY ONE OF THESE BELOW HAS A PARENT THAT IS cda:entry/cda:act-->
     588        <!--<assert test='count((.//cda:templateId[@root="2.16.840.1.113883.10.20.1.27"]) and ((./cda:act[@classCode="ACT" and @moodCode="ENV"]) &gt;= 1))'>       
     589        Warning: CONF-QRDA1-152 Clinical statements SHOULD include one or more problem acts (templateId 2.16.840.1.113883.10.20.1.27).
     590        </assert>-->
     591       
     592        <!--<assert test=".//cda:templateId[@root='2.16.840.1.113883.10.20.1.27']">
     593        Warning: CONF-QRDA1-152 Clinical statements SHOULD include one or more problem acts (templateId 2.16.840.1.113883.10.20.1.27).</assert>-->
     594       <!-- <assert test="contains(translate(cda:title,'QWERTYUIOPASDFGHJKLZXCVBNM','qwertyuiopasdfghjklzxcvbnm'),'problem')">Section / title SHOULD be valued with a case-insensitive language-insensitive text string containing "problem".
     595        </assert>-->
     596     
     597        </rule>
     598
     599        <rule context='*[cda:templateId[@root="2.16.840.1.113883.10.20.1.27"]]'>
     600         <assert test='self::cda:act[@classCode="ACT" and @moodCode="EVN"]'>
     601        Error: CONF-QRDA1-152, CONF-QRDA1-153,CONF-QRDA1-154: A problem act (templateId 2.16.840.1.113883.10.20.1.27) SHALL be represented with Act. The value for "Act / classCode" in a problem act SHALL be "ACT" 2.16.840.1.113883.5.6 ActClass STATIC. The value for "Act / moodCode" in a problem act SHALL be "EVN" 2.16.840.1.113883.5.1001 ActMood STATIC. TEST!!
     602        </assert>
     603        <assert test='count(cda:id) &gt;= 1'>
     604        Error: CONF-QRDA1-155: A problem act SHALL contain at least one Act / id.
     605        </assert>
     606        <assert test='cda:code[@nullFlavor="NA"]'>
     607        Error: CONF-QRDA1-156: The value for "Act / code / @NullFlavor" in a problem act SHALL be "NA" "Not applicable" 2.16.840.1.113883.5.1008 NullFlavor STATIC.
     608        </assert>
     609        <assert test='count(cda:entryRelationship/cda:observation/cda:effectiveTime) = 1'>
     610        Warning: CONF-QRDA1-156: A problem act MAY contain exactly one Act / effectiveTime, to indicate the timing of the concern (e.g. the time the problem was noted).
     611        </assert>
     612        <assert test='count(cda:entryRelationship) &gt;= 1'>
     613        Error: CONF-QRDA1-158: problem act SHALL contain one or more Act / entryRelationship.
     614        </assert>
     615        <assert test='cda:entryRelationship[@typeCode="SUBJ"]'>
     616        Warning: CONF-QRDA1-159, CONF-QRDA1-160:  A problem MAY reference a problem observation, alert observation or othe clinical statement this is the subject of concern, by setting the value for Act /entryRelationship / @typeCode to be SUBJ 2.16.840.1.113883.5.1002 ActRelationshipType STATIC. The target of a problem  act with Act /entryRelationship / @typeCode SUBJ SHOULD be a problem observation (in the Problem section) or alert observation but MAY be some other clinical statement.
     617        </assert>
     618        </rule>
     619         <!-- this goes in Social History
     620         <assert test="count(cda:templateId[@root='2.16.840.1.113883.10.20.1.41']) &lt;= 1">A problem act MAY contain exactly one episode observation. The template identifier for an episode observation is 2.16.840.1.113883.10.20.1.41.</assert> -->
     621        <!--Not in QRDA<assert test="count(cda:templateId[@root='2.16.840.1.113883.10.20.1.48']) &lt; 2">A problem act MAY contain exactly one patient awareness.</assert>-->
     622
     623<!-- Problem observation template is 2.16.840.1.113883.10.20.1.28-->
     624    <rule context='*[cda:templateId/@root="2.16.840.1.113883.10.20.1.28"]'>
     625    <!--DAVID LOOK BELOW IT WORKS BUT DOES NOT MAKE MUCH SENSE TO ME-->
     626        <assert test="self::cda:observation[@moodCode='EVN']">
     627        Errror: CONF-QRDA1-161 CONF-QRDA1-162:A problem observation (templateId 2.16.840.1.113883.10.20.1.28) SHALL be represented with Observation. The value for "Observation / moodCode" in a problem observation SHALL be "EVN"  2.16.840.1.113883.5.1001 ActMood STATIC.</assert>
     628        <assert test="count(cda:statusCode)=1">
     629        Error: CONF-QRDA1-163 problem observation SHALL include exactly one Observation / statusCode.
     630        </assert>
     631        <assert test="cda:statusCode/@code='completed'">
     632        Error:  CONF-QRDA1-164 The value for "Observation / statusCode" in a problem observation SHALL be "completed"  2.16.840.1.113883.5.14 ActStatus STATIC.
     633        </assert>
     634        <!--(count(cda:effectiveTime) = 1) and-->
     635        <assert test='(string-length(cda:effectiveTime/cda:*/@value) &gt;= 8)'>
     636        Error: CONF-QRDA1-165 A problem oberservation shall contain exactly one Observation/effectiveTime, to indicate the biologic timing of the condition (i.e., the time the condition started, the onset of the illness or symptom, the duration of a condition)  The observation/effectiveTime SHALL be at least precise to the day.
     637        </assert>
     638        <!--The next node is for when neither precise dates nor ages are known-->
     639        <assert test='cda:entryRelationship[@typeCode="SUBJ"]'> Warning: CONF-QRDA1-167 The value for Observation / entry Relationship / @typeCode in a problem observation MAY be SUBJ 2.16.840.1.113883.5.1002 ActRelationshipType STATIC to reference an age observation (templateId 2.16.840.1.113883.10.20.1.38)
     640        </assert>
     641        <!--Additional information for the next assertion -  the Problem Type Codes 2.16.840.1.113883.1.11.20.14 include 64572001 with displayName="condition", 418799008 with displayName="symptom", 404684003 with displayName="finding", 409586006 with displayName="complaint", and 24853006 with displayName="functional limitation".  The code system is SNOMED CT and the codeType="CD".)-->
     642        <assert test='cda:code[(@code="64572001") or (@code="418799008") or (@code="404684003") or (@code="409586006") or (@code="24853006")]'> Warning: CONF-QRDA1-166 The value for Observation /code in a problem observation MAY be selected from ValueSet 2.16.840.1.113883.1.11.20.14 ProblemTypeCode STATIC 20061017.
     643        </assert>
     644        <!--for CONF-QRDA1-168 see the include file referenced below-->
     645        <include href="./templates/2.16.840.113883.10.20.1.28-AppendixC-2011.entInclude"/>
     646       <!--<assert test='cda:observation/cda:value[(@codeSystemName="I9" and @codeSystem="2.16.840.1.113883.6.103" and @code="637.92" and @displayName="AB NOS UNCOMPLICAT-COMP")]'>
     647        Error:  CONF-QRDA1-168 he value for Observation / value/ @code in a problem observation SHALL be from Appendix_C-Problems tab of the Downloadable resources table.
     648        </assert>-->
     649       
     650        <!--<assert test="count(cda:templateId[@root='2.16.840.1.113883.10.20.1.50']) &lt; 2">A problem observation MAY contain exactly one problem status observation. The template identifier for a problem status observation is 2.16.840.1.113883.10.20.1.50.</assert>
     651        <assert test="count(cda:templateId[@root='2.16.840.1.113883.10.20.1.51']) &lt; 2">A problem observation MAY contain exactly one problem healthstatus observation. The template identifier for a problem healthstatus observation is 2.16.840.1.113883.10.20.1.51.</assert>
     652        <assert test="count(cda:templateId[@root='2.16.840.1.113883.10.20.1.48']) &lt; 2">A problem observation MAY contain exactly one patient awareness.</assert>
     653        </rule>
     654        <rule context='*[cda:templateId/@root="2.16.840.1.113883.10.20.1.28"]'>
     655        <assert test="count(cda:effectiveTime)=1">A problem observation SHOULD contain exactly one Observation / effectiveTime, to indicate the timing of condition (e.g. the time the condition started, the onset of the illness or symptom).</assert>
     656</rule>-->
     657
     658
     659   </rule>
     660
    554661</pattern>
    555662<pattern id="p-2.16.840.1.113883.10.20.12-warnings">
    556         <title>HL7 QRDA Category I Header (Section 2) - warning validation phase</title>
    557         <rule context='*[cda:templateId/@root="2.16.840.1.113883.10.20.12"]'>
    558                 <assert test="count(cda:legalAuthenticator) = 1">
    559        Warning: CONF-QRDA-I-14: A QRDA Category I report SHOULD contain exactly one
    560        legalAuthenticator element.
    561     </assert>
    562         </rule>
     663<title></title>
    563664</pattern>
    564665<pattern id="p-2.16.840.1.113883.10.20.12-notes">
    565         <title>HL7 QRDA Category I Header (Section 2) - note validation phase</title>
    566         <rule context='*[cda:templateId/@root="2.16.840.1.113883.10.20.12"]'>
    567                 <assert test='.//cda:section/cda:code[@code="55185-3" and @codeSystem="2.16.840.1.113883.6.1"]'>
    568        Note: CONF-QRDA-I-23: A QRDA Category I report MAY contain one or more Measure Set
    569        sections.
    570     </assert>
    571         </rule>
    572         <!-- Measure Section -->
    573         <rule context='*[cda:code[@code="55186-1" and @codeSystem="2.16.840.1.113883.6.1"]]'>
    574                 <assert test="cda:text">
    575        Note: CONF-QRDA-I-41: The Measure section MAY contain a section/text element for the
    576        description of the measure(s).
    577     </assert>
    578         </rule>
    579         <!-- Measure -->
    580         <rule context='*[cda:code[@code="55186-1" and @codeSystem="2.16.840.1.113883.6.1"]]/cda:entry/cda:act[@classCode="ACT" and @moodCode="DEF"]'>
    581                 <assert test="cda:text">
    582        Note: CONF-QRDA-I-46: Each measure act MAY contain an act/text element containing a
    583         description of the measure.
    584     </assert>
    585         </rule>
    586         <!-- Measure Set Section -->
    587         <rule context='*[cda:code[@code="55185-3" and @codeSystem="2.16.840.1.113883.6.1"]]'>
    588                 <assert test="cda:text">
    589        Note: CONF-QRDA-I-30: The Measure Set section MAY contain a section/text element for
    590        the description of the measure set or MAY contain a formal representation of
    591        a description of the measure set.
    592     </assert>
    593         </rule>
     666<title></title>
    594667</pattern>
Note: See TracChangeset for help on using the changeset viewer.