Changeset 994 for ccr2ccd-xslt/trunk/make/Nancy-ccr_qrda-M1.xsl
- Timestamp:
- Oct 27, 2010, 7:48:01 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr2ccd-xslt/trunk/make/Nancy-ccr_qrda-M1.xsl
r993 r994 515 515 </section> 516 516 </component> 517 <xsl:if test="a:ContinuityOfCareRecord/a:Body/a:Problems">518 <component>519 <section>520 <templateId root="2.16.840.1.113883.3.88.11.83.103" assigningAuthorityName="HITSP/C83"/>521 <templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.6" assigningAuthorityName="IHE PCC"/>522 <templateId root="2.16.840.1.113883.10.20.1.11" assigningAuthorityName="HL7 CCD"/>523 <code code="11450-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Problem list"/>524 <title>Problems</title>525 <text>526 <table>527 <tbody>528 <tr>529 <th>Type</th>530 <th>Date</th>531 <th>Code</th>532 <th>Description</th>533 <th>Status</th>534 <th>Source</th>535 </tr>536 <xsl:for-each select="/a:ContinuityOfCareRecord/a:Body/a:Problems/a:Problem">537 <tr>538 <td>539 <xsl:value-of select="a:Type/a:Text"/>540 </td>541 <td>542 <table>543 <tbody>544 <xsl:apply-templates select="a:DateTime"/>545 </tbody>546 </table>547 </td>548 <td>549 <xsl:apply-templates select="a:Description/a:Code"/>550 </td>551 <td>552 <xsl:attribute name="ID">553 <xsl:value-of select="a:CCRDataObjectID"></xsl:value-of>554 </xsl:attribute>555 <xsl:value-of select="a:Description/a:Text"/>556 </td>557 <td>558 <xsl:value-of select="a:Status/a:Text"/>559 </td>560 <td>561 <xsl:call-template name="actorName">562 <xsl:with-param name="objID" select="a:Source/a:Actor/a:ActorID"/>563 </xsl:call-template>564 </td>565 </tr>566 </xsl:for-each>567 </tbody>568 </table>569 </text>570 <xsl:for-each select="/a:ContinuityOfCareRecord/a:Body/a:Problems/a:Problem">571 <entry typeCode="DRIV">572 <act classCode="ACT" moodCode="EVN">573 <templateId root="2.16.840.1.113883.10.20.1.27"/>574 <!-- Problem act template -->575 576 <!-- <id> -->577 <xsl:call-template name="ccdID">578 <xsl:with-param name="ccrObjectID" select="a:CCRDataObjectID"/>579 </xsl:call-template>580 581 <code nullFlavor="NA"/>582 583 <xsl:call-template name="ccdPerformer">584 <xsl:with-param name="ccrActorReference" select="a:Source/a:Actor"/>585 </xsl:call-template>586 587 <entryRelationship typeCode="SUBJ">588 <observation classCode="OBS" moodCode="EVN">589 <templateId root="2.16.840.1.113883.10.20.1.28" assigningAuthorityName="CCD"/>590 <!--Problem observation template-->591 592 <!-- <id> -->593 <xsl:call-template name="ccdID">594 <xsl:with-param name="ccrObjectID" select="a:CCRDataObjectID"/>595 <xsl:with-param name="suffix"></xsl:with-param>596 </xsl:call-template>597 598 <code code="55607006" displayName="Problem" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED-CT"/>599 600 <text>601 <reference>602 <xsl:attribute name="value">603 <xsl:text>#</xsl:text>604 <xsl:value-of select="a:CCRDataObjectID"/>605 </xsl:attribute>606 </reference>607 </text>608 609 <statusCode code="completed"/>610 611 <xsl:call-template name="ccdDateTime">612 <xsl:with-param name="dt" select="a:DateTime"/>613 </xsl:call-template>614 615 <xsl:call-template name="ccdCodedValue">616 <xsl:with-param name="ccrCodedDescription" select="a:Description"/>617 </xsl:call-template>618 619 <xsl:call-template name="ccdStatus">620 <xsl:with-param name="ccrStatus" select="a:Status"/>621 </xsl:call-template>622 </observation>623 </entryRelationship>624 625 </act>626 </entry>627 </xsl:for-each>628 </section>629 </component>630 </xsl:if>631 517 <xsl:if test="a:ContinuityOfCareRecord/a:Body/a:Procedures"> 632 518 <component> … … 775 661 </component> 776 662 </xsl:if> 663 <component> 664 <section> 665 <!--We are including only a coverage activity for Medicare here. There is also policy activity and and authorization activity that I don't think we need to report for QRDA, at least not for most reports--> 666 <templateId root="2.16.840.1.113883.10.20.1.9"/> 667 <!-- 48768-6 is payment sources and is fixed CQ-188,189,190--> 668 <code code="48768-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Payment Sources"/> 669 <!--CQ-191,192--> 670 <title>Payers</title> 671 <text /> 672 <!--medicare--> 673 <entry typeCode="DRIV"> 674 <!--WVP moodCode is DEF is definition to describe the characteristics of who must be involved in an act CQ-194,195--> 675 <act classCode="ACT" moodCode="DEF"> 676 <!--WVP coverage activity template is the 10.20.1.20 CQ-193--> 677 <templateId root="2.16.840.1.113883.10.20.1.20"/> 678 <!--Coverage Shall Include and Act ID CQ-196--> 679 <!--looks like a UUID to me--> 680 <id root="1751b180-8a54-11df-a4ee-0800200c9c66"/><!--FIX!!!???--> 681 <!--CQ-197-198 It appears that statusCode="completed" need to follow the code code ... here and below--> 682 683 <!--CQ199,200--> 684 <code code="48768-6" codeSystem="2.16.840.1.113883.6.1" displayName="Payment sources"/> 685 <statusCode code="completed"/> 686 687 <!--A coverage activity shall contain on or more act/entryRelationship. The value for act/entryRelationship/@typeCode shall be COMP which SHALL be the CMS QRDA Policy Activity CQ-201, 203--> 688 <!--It MAY contain an entryRelationship/sequenceNumber CQ-202--> 689 <entryRelationship typeCode="COMP"> 690 <!-- for the act is event with moodCode EVN CQ-205,206,207--> 691 <act classCode="ACT" moodCode="EVN"> 692 <!--Policy activity is the 10.20.1.26 template CQ-205--> 693 <templateId root="2.16.840.1.113883.10.20.1.26"/> 694 <templateId root="2.16.840.1.113883.3.249.11.100.7"/> 695 696 <!-- act/id which is the group or contract number related to the insurance policy or program CQ-208--> 697 <id root="dbbb6311-8a4d-11df-a4ee-0800200c9c66"/><!--!!!FIX--> 698 <!--Act statusCode must be completed CQ-210--> 699 <!--This SHOULD be present and comes from the downloadable resource S display name is in quotes AUTOPOL - "automobile" policy;EHCPOL additional insurance in addition to Medicare in this case 700 HSAPOL "Health Spending Account";PUBLICPOL "public healthcare" which is NOT Medicare - maybe a state program for example 701 WBCPOL is "workers compensation" CQ-211,212--> 702 <!--<code code="PUBLICPOL" codeSystem="2.16.840.1.113883.5.4" displayName="Public Healthcare"/>--> 703 <code code="PUBLICPOL" codeSystem="2.16.840.1.113883.5.4" displayName="Public Healthcare"/> 704 <!--WVP performer type codes are numerous but PRF is performer representing the Payer CQ-213--> 705 <statusCode code="completed"/> 706 <performer typeCode="PRF"> 707 708 <!--performer/assignedEntity id is the payer identification and the extension comes from the downloadable resource section I insurance plan TYPE CQ-214--> 709 <assignedEntity> 710 <id root="2.16.840.1.113883.12.86" extension="MC"/> 711 <!--<representedOrganization> 712 <name>CMS</name> 713 </representedOrganization>--> 714 </assignedEntity> 715 </performer> 716 <!-- Act/participant @typeCode this represents the covered party CQ-215--> 717 <participant typeCode="COV"> 718 <participantRole> 719 <!--A covered party in a policy activity SHOULD contain one or more participant/participantRole/id to represent the patien's member of subscriber identifier with respect to the payer 720 For participant/paricipantRole/id either the Social Security Number or HIC Number SHALL be submitted for Medicare patients. for SSN the ID @root SHALL be 2.16.840.1.113883.4.1 where 721 the HIC id/@root shall be 2.16.840.1.113883.3.249.13 CQ-216"RoleCode" in the downloadable resource--> 722 <!-- in this case theextension is the patients SSN for a medicare patient so it is the same each time for one patient--> 723 <id root="2.16.840.1.113883.4.1" extension="@@SSN@@"/> 724 <!--The covered party in tha policy activity SHOULD contain exactly one particpant/participantRole/code for self, family etc from the valuse set PolicyOrPrograCoverageRoleType 2.16.840.1.113883.1.11.19809 CQ-217,218--> 725 <code code="SELF" codeSystem="2.16.840.1.113883.5.111" displayName="Self"/> 726 </participantRole> 727 </participant> 728 </act> 729 </entryRelationship> 730 </act> 731 </entry> 732 </section> 733 </component> 777 734 </section> 778 735 </component>
Note:
See TracChangeset
for help on using the changeset viewer.