source: ccr2ccd-xslt/trunk/gpl/ccd-payers.xsl@ 981

Last change on this file since 981 was 981, checked in by George Lilly, 14 years ago

latest version

File size: 7.7 KB
Line 
1 <xsl:if test="a:ContinuityOfCareRecord/a:Body/a:Payers">
2 <component>
3 <section>
4 <templateId root="2.16.840.1.113883.10.20.1.9"/>
5 <code code="48768-6" codeSystem="2.16.840.1.113883.6.1"/>
6 <title>Insurance</title>
7 <text>
8 <table>
9 <tbody>
10 <tr>
11 <th>Type</th>
12 <th>Date</th>
13 <th>Identification Numbers</th>
14 <th>Payment Provider</th>
15 <th>Subscriber</th>
16 <th>Source</th>
17 </tr>
18 <xsl:for-each select="/a:ContinuityOfCareRecord/a:Body/a:Payers/a:Payer">
19 <tr>
20 <td>
21 <xsl:value-of select="a:Type/a:Text"/>
22 </td>
23 <td>
24 <xsl:call-template name="date:format-date">
25 <xsl:with-param name="date-time" select="a:DateTime/a:ExactDateTime"/>
26 </xsl:call-template>
27 </td>
28 <td>
29 <xsl:for-each select="a:IDs">
30 <xsl:value-of select="a:Type/a:Text"/>:<xsl:text xml:space="preserve"> </xsl:text><xsl:value-of select="a:ID"/><br/>
31 </xsl:for-each>
32 </td>
33 <td>
34 <xsl:call-template name="actorName">
35 <xsl:with-param name="objID" select="a:PaymentProvider/a:ActorID"/>
36 </xsl:call-template>
37 </td>
38 <td>
39 <xsl:call-template name="actorName">
40 <xsl:with-param name="objID" select="a:Subscriber/a:ActorID"/>
41 </xsl:call-template>
42 </td>
43 <td>
44 <xsl:call-template name="actorName">
45 <xsl:with-param name="objID" select="a:Source/a:Actor/a:ActorID"/>
46 </xsl:call-template>
47 </td>
48 </tr>
49 </xsl:for-each>
50 </tbody>
51 </table>
52 </text>
53 <xsl:for-each select="/a:ContinuityOfCareRecord/a:Body/a:Payers/a:Payer">
54 <entry typeCode="DRIV">
55 <act classCode="ACT" moodCode="DEF">
56 <templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.17" assigningAuthorityName="IHE PCC"/>
57 <templateId root="2.16.840.1.113883.10.20.1.20" assigningAuthorityName="CCD"/>
58 <!-- Coverage entry template -->
59 <!-- <id> -->
60 <xsl:call-template name="ccdID">
61 <xsl:with-param name="ccrObjectID" select="a:CCRDataObjectID"/>
62 </xsl:call-template>
63 <code code="48768-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Payment sources"/>
64 <statusCode code="completed"/>
65 <entryRelationship typeCode="COMP">
66 <act classCode="ACT" moodCode="EVN">
67 <templateId root="2.16.840.1.113883.3.88.11.83.5" assigningAuthorityName="HITSP C83"/>
68 <templateId root="2.16.840.1.113883.10.20.1.26" assigningAuthorityName="CCD"/>
69 <templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.18" assigningAuthorityName="IHE PCC"/>
70 <!--Insurance provider template -->
71 <id>
72 <xsl:attribute name="root">
73 <xsl:value-of select="a:IDs[1]/a:ID"/>
74 </xsl:attribute>
75 <xsl:attribute name="extension">
76 <xsl:value-of select="a:IDs[1]/a:Type/a:Text"/>
77 </xsl:attribute>
78 </id>
79
80 <!-- <code> -->
81 <xsl:call-template name="ccdCodedValue">
82 <xsl:with-param name="ccrCodedDescription" select="a:Description"/>
83 <xsl:with-param name="nodeName" select="'code'"/>
84 </xsl:call-template>
85
86 <statusCode code="completed"/>
87
88 <xsl:call-template name="ccdPerformer">
89 <xsl:with-param name="ccrActorReference" select="a:PaymentProvider"/>
90 </xsl:call-template>
91
92 <participant typeCode="HLD">
93 <xsl:call-template name="ccdParticipantRoleActor">
94 <xsl:with-param name="ccrActorReference" select="a:Subscriber"/>
95 </xsl:call-template>
96 </participant>
97 </act>
98 </entryRelationship>
99 </act>
100 </entry>
101 </xsl:for-each>
102 </section>
103 </component>
104 </xsl:if>
Note: See TracBrowser for help on using the repository browser.