Changeset 999 for ccr2ccd-xslt/trunk/make/M1-ccr_qrda.xsl
- Timestamp:
- Nov 2, 2010, 10:24:08 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr2ccd-xslt/trunk/make/M1-ccr_qrda.xsl
r995 r999 524 524 </section> 525 525 </component> 526 <xsl:if test="a:ContinuityOfCareRecord/a:Body/a:Problems"> 527 <component> 528 <section> 529 <templateId root="2.16.840.1.113883.3.88.11.83.103" assigningAuthorityName="HITSP/C83"/> 530 <templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.6" assigningAuthorityName="IHE PCC"/> 531 <templateId root="2.16.840.1.113883.10.20.1.11" assigningAuthorityName="HL7 CCD"/> 532 <code code="11450-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Problem list"/> 533 <title>Problems</title> 534 <text> 535 <table> 536 <tbody> 537 <tr> 538 <th>Type</th> 539 <th>Date</th> 540 <th>Code</th> 541 <th>Description</th> 542 <th>Status</th> 543 <th>Source</th> 544 </tr> 545 <xsl:for-each select="/a:ContinuityOfCareRecord/a:Body/a:Problems/a:Problem"> 546 <tr> 547 <td> 548 <xsl:value-of select="a:Type/a:Text"/> 549 </td> 550 <td> 551 <table> 552 <tbody> 553 <xsl:apply-templates select="a:DateTime"/> 554 </tbody> 555 </table> 556 </td> 557 <td> 558 <xsl:apply-templates select="a:Description/a:Code"/> 559 </td> 560 <td> 561 <xsl:attribute name="ID"> 562 <xsl:value-of select="a:CCRDataObjectID"></xsl:value-of> 563 </xsl:attribute> 564 <xsl:value-of select="a:Description/a:Text"/> 565 </td> 566 <td> 567 <xsl:value-of select="a:Status/a:Text"/> 568 </td> 569 <td> 570 <xsl:call-template name="actorName"> 571 <xsl:with-param name="objID" select="a:Source/a:Actor/a:ActorID"/> 572 </xsl:call-template> 573 </td> 574 </tr> 575 </xsl:for-each> 576 </tbody> 577 </table> 578 </text> 579 <xsl:for-each select="/a:ContinuityOfCareRecord/a:Body/a:Problems/a:Problem"> 580 <entry typeCode="DRIV"> 581 <act classCode="ACT" moodCode="EVN"> 582 <templateId root="2.16.840.1.113883.10.20.1.27"/> 583 <!-- Problem act template --> 584 585 <!-- <id> --> 586 <xsl:call-template name="ccdID"> 587 <xsl:with-param name="ccrObjectID" select="a:CCRDataObjectID"/> 588 </xsl:call-template> 589 590 <code nullFlavor="NA"/> 591 592 <xsl:call-template name="ccdPerformer"> 593 <xsl:with-param name="ccrActorReference" select="a:Source/a:Actor"/> 594 </xsl:call-template> 595 596 <entryRelationship typeCode="SUBJ"> 597 <observation classCode="OBS" moodCode="EVN"> 598 <templateId root="2.16.840.1.113883.10.20.1.28" assigningAuthorityName="CCD"/> 599 <!--Problem observation template--> 600 <templateId root="2.16.840.1.113883.3.249.11.100.8"/> 601 602 <!-- <id> --> 603 <xsl:call-template name="ccdID"> 604 <xsl:with-param name="ccrObjectID" select="a:CCRDataObjectID"/> 605 <xsl:with-param name="suffix"></xsl:with-param> 606 </xsl:call-template> 607 608 <code code="55607006" displayName="Problem" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED-CT"/> 609 <statusCode code="completed"/> 610 <text> 611 <reference> 612 <xsl:attribute name="value"> 613 <xsl:text>#</xsl:text> 614 <xsl:value-of select="a:CCRDataObjectID"/> 615 </xsl:attribute> 616 </reference> 617 </text> 618 619 <xsl:call-template name="ccdDateTime"> 620 <xsl:with-param name="dt" select="a:DateTime"/> 621 </xsl:call-template> 622 623 <xsl:call-template name="ccdCodedValue"> 624 <xsl:with-param name="ccrCodedDescription" select="a:Description"/> 625 </xsl:call-template> 626 627 <xsl:call-template name="ccdStatus"> 628 <xsl:with-param name="ccrStatus" select="a:Status"/> 629 </xsl:call-template> 630 </observation> 631 </entryRelationship> 632 633 </act> 634 </entry> 635 </xsl:for-each> 636 </section> 637 </component> 638 </xsl:if> 526 639 <xsl:if test="a:ContinuityOfCareRecord/a:Body/a:Procedures"> 527 640 <component>
Note:
See TracChangeset
for help on using the changeset viewer.