Changeset 992 for ccr2ccd-xslt/trunk
- Timestamp:
- Oct 26, 2010, 10:14:54 PM (14 years ago)
- Location:
- ccr2ccd-xslt/trunk/make
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr2ccd-xslt/trunk/make/Nancy-ccr_qrda-M1.xsl
r991 r992 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> 517 631 <xsl:if test="a:ContinuityOfCareRecord/a:Body/a:Procedures"> 518 632 <component> … … 730 844 </section> 731 845 </component> 846 <xsl:if test="a:ContinuityOfCareRecord/a:Body/a:Results/a:Result"> 847 <component> 848 <section> 849 <templateId root="2.16.840.1.113883.10.20.1.14"/> 850 <code code="30954-2" codeSystem="2.16.840.1.113883.6.1"/> 851 <title>Results</title> 852 <text> 853 <table> 854 <tbody> 855 <tr> 856 <th>Test</th> 857 <th>Date</th> 858 <th>Result</th> 859 <th>Source</th> 860 </tr> 861 <xsl:for-each select="/a:ContinuityOfCareRecord/a:Body/a:Results/a:Result"> 862 <tr> 863 <xsl:attribute name="id"> 864 <xsl:value-of select="a:CCRDataObjectID"/> 865 </xsl:attribute> 866 <td> 867 <xsl:value-of select="a:Description/a:Text"/> 868 </td> 869 <td> 870 <xsl:call-template name="date:format-date"> 871 <xsl:with-param name="date-time" select="a:DateTime/a:ExactDateTime"/> 872 </xsl:call-template> 873 </td> 874 <td> 875 <xsl:for-each select="a:Test[a:TestResult/a:Value!='']"> 876 <div> 877 <xsl:attribute name="id"> 878 <xsl:value-of select="a:CCRDataObjectID"/> 879 </xsl:attribute> 880 881 <xsl:value-of select="a:Description/a:Text"/> 882 <xsl:text xml:space="preserve"> </xsl:text> 883 <xsl:value-of select="a:TestResult/a:Value"/> 884 <xsl:text xml:space="preserve"> </xsl:text> 885 <xsl:value-of select="a:TestResult/a:Units/a:Unit"/> 886 <xsl:text xml:space="preserve"> </xsl:text> 887 <xsl:value-of select="a:Flag/a:Text"/> 888 <br/> 889 </div> 890 </xsl:for-each> 891 <xsl:for-each select="a:Test[a:TestResult/a:Description/a:Text!='']"> 892 <div> 893 <xsl:attribute name="id"> 894 <xsl:value-of select="a:CCRDataObjectID"/> 895 </xsl:attribute> 896 897 <xsl:value-of select="a:Description/a:Text"/> 898 <xsl:text xml:space="preserve"> </xsl:text> 899 <xsl:value-of select="a:TestResult/a:Description/a:Text" disable-output-escaping="yes"/> 900 <xsl:text xml:space="preserve"> </xsl:text> 901 <xsl:value-of select="a:Flag/a:Text"/> 902 <br/> 903 </div> 904 </xsl:for-each> 905 </td> 906 <td> 907 <xsl:call-template name="actorName"> 908 <xsl:with-param name="objID" select="a:Source/a:Actor/a:ActorID"/> 909 </xsl:call-template> 910 </td> 911 </tr> 912 </xsl:for-each> 913 </tbody> 914 </table> 915 </text> 916 <xsl:for-each select="/a:ContinuityOfCareRecord/a:Body/a:Results/a:Result"> 917 <entry typeCode="DRIV"> 918 <xsl:variable name="testDate" select="a:DateTime"/> 919 920 <xsl:choose> 921 <xsl:when test="count(a:Test)>1"> 922 <organizer classCode="BATTERY" moodCode="EVN"> 923 <templateId root="2.16.840.1.113883.10.20.1.32"/> 924 <!--Result organizer template --> 925 926 <!-- <id> --> 927 <xsl:call-template name="ccdID"> 928 <xsl:with-param name="ccrObjectID" select="a:CCRDataObjectID"/> 929 </xsl:call-template> 930 931 <!-- <code> --> 932 <xsl:call-template name="ccdCodedValue"> 933 <xsl:with-param name="ccrCodedDescription" select="a:Description"/> 934 <xsl:with-param name="nodeName" select="'code'"/> 935 </xsl:call-template> 936 937 <statusCode code="completed"/> 938 939 <!-- <effectiveTime> --> 940 <xsl:call-template name="ccdDateTime"> 941 <xsl:with-param name="dt" select="$testDate"/> 942 </xsl:call-template> 943 944 <xsl:call-template name="ccdPerformer"> 945 <xsl:with-param name="ccrActorReference" select="a:Source/a:Actor"/> 946 </xsl:call-template> 947 948 <xsl:for-each select="a:Test"> 949 <xsl:call-template name="ccdObservation"> 950 <xsl:with-param name="ccrTestNode" select="."/> 951 <xsl:with-param name="testDate" select="$testDate"/> 952 </xsl:call-template> 953 </xsl:for-each> 954 955 </organizer> 956 957 </xsl:when> 958 <xsl:otherwise> 959 <xsl:call-template name="ccdObservation"> 960 <xsl:with-param name="ccrTestNode" select="a:Test[1]"/> 961 <xsl:with-param name="testDate" select="$testDate"/> 962 </xsl:call-template> 963 </xsl:otherwise> 964 </xsl:choose> 965 </entry> 966 </xsl:for-each> 967 </section> 968 </component> 969 </xsl:if> 732 970 </section> 733 971 </component> -
ccr2ccd-xslt/trunk/make/Nancy-make-qrda-M1.sh
r991 r992 3 3 #cat ccd-purpose.xsl >> Nancy-ccr_qrda.xsl 4 4 #cat ccd-alerts.xsl >> Nancy-ccr_qrda.xsl 5 #cat ccd-problems.xsl >> Nancy-ccr_qrda-M1.xsl5 cat ccd-problems.xsl >> Nancy-ccr_qrda-M1.xsl 6 6 cat ccd-procedures.xsl >> Nancy-ccr_qrda-M1.xsl 7 7 cat PayersSectionMedicareTemplate.xml >> Nancy-ccr_qrda-M1.xsl … … 10 10 #cat ccd-vitals.xsl >> Nancy-ccr_qrda.xsl 11 11 #cat ccd-encounters.xsl >> Nancy-ccr_qrda.xsl 12 #cat ccd-results.xsl >> Nancy-ccr_qrda-M1.xsl12 cat ccd-results.xsl >> Nancy-ccr_qrda-M1.xsl 13 13 #cat Nancy-ccd-payers.xsl >> Nancy-ccr_qrda.xsl 14 14 #cat ccd-providers.xsl >> Nancy-ccr_qrda.xsl
Note:
See TracChangeset
for help on using the changeset viewer.