Changeset 927 for qrda/schematron/templates/2.16.840.1.113883.10.20.12.ent
- Timestamp:
- Sep 5, 2010, 6:01:17 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
qrda/schematron/templates/2.16.840.1.113883.10.20.12.ent
r922 r927 1 1 <!-- edited with XMLSpy v2009 sp1 (http://www.altova.com) by David Mishler (Medrad) --> 2 2 <!-- HL7 QRDA Category I Header (Section 2) --> 3 <!-- This document provides errors and edits pertinent to the header section ofthe 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.--> 4 4 <!-- errors --> 5 5 <pattern id="p-2.16.840.1.113883.10.20.12-errors"> … … 481 481 482 482 <!-- see CONF-QRDA1-125 for CONF-QRDA1-133 and CONF-QRDA1-134--> 483 483 <let name="ReportingParametersTitle" value="cda:component/cda:structuredBody/cda:component/cda:section/cda:component/cda:section/cda:component/cda:section/cda:title"/> 484 484 <assert test='upper-case($ReportingParametersTitle)="REPORTING PARAMETERS"'> 485 485 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> 488 488 <!--<rule context='*[cda:code[@code="55186-1" and @codeSystem="2.16.840.1.113883.6.1"]]'>--> 489 489 <!-- Measure --> … … 543 543 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). 544 544 </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 546 557 </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 547 563 <!-- Patient Data Section --> 548 564 <rule context='*[cda:code[@code="55188-7" and @codeSystem="2.16.840.1.113883.6.1"]]'> 549 565 <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 a566 Error: CONF-QRDA1-142: The Patient Data section SHALL be valued with section/title with a 551 567 case-insensitive, text string containing "Patient Data". 552 568 </assert> 553 569 </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"]) >= 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) >= 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) >= 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']) <= 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']) < 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) >= 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']) < 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']) < 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']) < 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 554 661 </pattern> 555 662 <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> 563 664 </pattern> 564 665 <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> 594 667 </pattern>
Note:
See TracChangeset
for help on using the changeset viewer.