source: ccr2ccd-xslt/trunk/make/New-qrda-header-without-measures.xslBU@ 1004

Last change on this file since 1004 was 1004, checked in by George Lilly, 13 years ago

final PQRI files

File size: 9.6 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<?xml-stylesheet type="text/xsl" href="cda.xsl"?>
3
4<!--
5Conversion of CCR to Level 3 CCD
6
7Orginal Author: Ken Miller
8Solventus LLC
9ken.miller@solventus.coms
10
11Contributors:
12Richard Braman, EHR Doctors, Inc rbraman@ehrdoctors.com
13George Lilly (WorldVistA glilly@glilly.net)
14Nancy Antracite, WorldVistA
15xxxx - Oroville Hospital
16
17Date: 2010-05-5
18Version: 0.1
19
20License :
21
22 This program is free software: you can redistribute it and/or modify
23 it under the terms of the GNU General Public License as published by
24 the Free Software Foundation, either version 3 of the License, or
25 (at your option) any later version.
26
27 This program is distributed in the hope that it will be useful,
28 but WITHOUT ANY WARRANTY; without even the implied warranty of
29 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30 GNU General Public License for more details.
31
32 You should have received a copy of the GNU General Public License
33 along with this program. If not, see http://www.gnu.org/licenses.
34
35-->
36<xsl:stylesheet version="1.0" xmlns="urn:hl7-org:v3" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:a="urn:astm-org:CCR" xmlns:date="http://exslt.org/dates-and-times"
37xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" exclude-result-prefixes="a date">
38 <xsl:import href="./templates/cdavocablookup.xsl"/>
39 <xsl:import href="./templates/hl7oidlookup.xsl"/>
40 <xsl:import href="./templates/code.xsl"/>
41 <xsl:import href="./templates/actor.xsl"/>
42 <xsl:import href="./templates/datetime.xsl"/>
43 <xsl:import href="./templates/problemDescription.xsl"/>
44
45 <xsl:output method="xml" encoding="utf-8" version="1.0" indent="yes"/>
46 <xsl:template match="/">
47<!--WV Added new munltiple documentation of added have to do with encounter times, etc.-->
48
49<!--
50********************************************************
51CDA Header
52********************************************************
53-->
54
55<!--
56******************
57Document Information
58**********************
59-->
60<ClinicalDocument xmlns="urn:hl7-org:v3" xmlns:voc="urn:hl7-org:v3/voc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hl7-org:v3 CDA.xsd">
61 <!-- Created with XML Copy Editor Open Source Sourceforge project. -->
62<!--WVP This is the clinical document type ID-->
63 <realmCode code="US"/>
64 <typeId root="2.16.840.1.113883.1.3" extension="POCD_HD000040"/>
65 <!-- QRDA Category I generic template ID. -->
66 <!--WVP these next two lines are fixed-->
67 <templateId root="2.16.840.1.113883.10.20.12" />
68 <!--only in the july spec so not sure if it should be here-->
69 <templateId root="2.16.840.1.113883.3.249.11.100.1"/>
70 <!--WVV 2.16.840.1.113883.3.543 is fixed and is the beginninng of WorldVistAs OID, change the extension for a new document and the version for changes to this one-->
71
72
73 <!--Script replaces UUID each time if the version number is 1-->
74 <id root="2.16.840.1.113883.3.543" extension="@@@UUID-DOC@@@"/>
75
76 <!-- <xsl:attribute name="root">
77 <xsl:value-of select="/a:ContinuityOfCareRecord/a:CCRDocumentObjectID"></xsl:value-of>
78 </xsl:attribute>
79 </id>-->
80 <!--WVP next two lines fixed-->
81 <code code="55182-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Quality Measure Report"/>
82 <title>QRDA Incidence Report</title>
83 <!--WVV time-->
84 <effectiveTime value="20100703"/>
85 <!--WVP for next two lines-->
86 <confidentialityCode codeSystem="2.16.840.1.113883.5.25" code="N"/>
87 <languageCode code="en-US"/>
88 <!--WV? Don't change this in the document set we are working on-->
89 <setId root="2.16.840.1.113883.3.543" extension="@@@UUID-SET@@@"/>
90 <versionNumber value="1"/>
91 <!--WVP I made one up but we will have to have an OID for the Clincal Document SET which we will make up for ourselves eventually-->
92
93 <!--
94 *******************
95 Patient Information
96 ****************
97 -->
98 <!-- This is the patient for which the report is describing. -->
99 <recordTarget>
100<patientRole>
101 <xsl:call-template name="ccdPatientRole">
102 <xsl:with-param name="ccrActorObjectID" select="/a:ContinuityOfCareRecord/a:Patient[1]/a:ActorID"/>
103 </xsl:call-template>
104 </patientRole>
105 </recordTarget>
106
107<!--
108*****************************
109Author
110**************
111-->
112 <!-- This example assumes the doctor is creating the report and it is Required. -->
113 <author>
114 <!--WVV Edit time has to be precise at least to the day-->
115 <time value="20100703" />
116 <assignedAuthor>
117 <!--WVP eventually id this is required, the root is fixed -->
118 <!--andn the extension is the SOFTWARE version number assigned by CMS to WV EHR-->
119 <id root="2.16.840.1.113883.3.249.6" extension="100001" />
120 <!--WVVassignedPerson not required-->
121 <assignedPerson>
122 <name>
123 <!--WV Edit-->
124 <given>Nancy</given>
125 <family>Anthracite</family>
126 <suffix>MD</suffix>
127 </name>
128 </assignedPerson>
129 <representedOrganization>
130 <!--WV? id root is OID for the organization so I made one up for this document set-->
131 <id root="2.16.840.1.113883.3.543" extension="1558574526" />
132 <name>WorldVistA Test Clinic</name>
133 </representedOrganization>
134 </assignedAuthor>
135 </author>
136 <!-- The reporting healthcare facility is represented using the CCD "Source of Information" construct, via the Informant participant. -->
137 <informant>
138 <assignedEntity>
139 <!--WV this null flavor is required as is-->
140 <id nullFlavor="NA"/>
141 <representedOrganization>
142 <!--WV root is the OID of the organization. ID is required but name is not and id is OID stated earlier-->
143 <id root="2.16.840.1.113883.3.543" extension="1558574526" />
144 <name>World VistA Test Clinic</name>
145 </representedOrganization>
146 </assignedEntity>
147 </informant>
148
149 <!-- This example assumes that the institution responsible for the data is serving as custodian. -->
150 <!--WV This element is required as is the sSD which is not stated if it is an OID but assumed it is-->
151 <!--WV Name is not required, only ID is required.-->
152 <custodian>
153 <assignedCustodian>
154 <representedCustodianOrganization>
155 <id root="2.16.840.1.113883.3.543" extension="1558574526" />
156 <name>WorldVistA Test Clinic</name>
157 </representedCustodianOrganization>
158 </assignedCustodian>
159 </custodian>
160
161 <!-- In this example, the author is also serving as legal authenticator. -->
162 <!--WV section is this is not required-->
163<legalAuthenticator>
164 <time value="20100703" />
165 <!--WV the signature code of S is required-->
166 <signatureCode code="S" />
167 <assignedEntity>
168 <!--WV document does not specify the requirements of the id but it is required-->
169 <!--WVP and the sample suggests it is the number below and extension is ???-->
170 <id root="2.16.840.1.113883.3.543" extension="111111" />
171 <assignedPerson>
172 <name>
173 <given>Nancy</given>
174 <family>Anthracite</family>
175 <suffix>MD</suffix>
176 </name>
177 </assignedPerson>
178 <representedOrganization>
179 <!--WV? and is fixed for the WorldVistA Test Clinic in this submitted document series-->
180 <id root="2.16.840.1.113883.3.543" extension="1558574526" />
181 <name>WorldVistA Test Clinic</name>
182 </representedOrganization>
183 </assignedEntity>
184 </legalAuthenticator>
185
186
187
188 <!--Added to sample as it is new since 2008-->
189 <!--WVP permanent for participant in the primary care provider participant-->
190<!--WVP performer type codes are numerous but PRF is performer or the person who did it-->
191 <participant typeCode="PRF">
192 <!--WVP required as is for function-->
193 <!-- WVP I believe PCP is primary care provider but not sure-->
194 <functionCode code="PCP" codeSystem="2.16.840.1.113883.5.88"/>
195 <!--WVP Associated Entity is required ti be there with this PROV-->
196 <associatedEntity classCode="PROV">
197 <!--WV? OID of the provider fixed for this series of documents-->
198 <id root="2.16.840.1.113883.3.249.6" extension="111111" />
199 <!--WV associated person is not required so presumabley the code will suffice not sure??-->
200 <associatedPerson>
201 <name>
202 <prefix>Dr.</prefix>
203 <given>Nancy</given>
204 <family>Anthracite</family>
205 </name>
206 </associatedPerson>
207 </associatedEntity>
208 </participant>
209
210 <!--The service event is the encounter that describes tehe encunter as well as the provider, location and time-->
211 <!--!There can be one or more documentation elements depending on the number of encounters during the reporting period-->
212 <!--WVV IMPORTANT!! The encounter codeds are recorded here-->
213 <!-- They are in appendix B of the downloadable resource document-->
214 <!-- Each documentation of is a single service event-->
215
216<!--Occurence of Measures episode documention-->
217<!--Like an encounter section only for QRDA-->
218<!--Same doctor, same clinic, different date and different enconter code-->
219
220
221 <!--First Visit documentationOf section-->
222<!--DOCUMENTATIONOFSECTION-->
223
224 <!--
225********************************************************
226CDA Body
227********************************************************
228-->
229 <component>
230 <structuredBody>
231 <MeasuresSection/>
232 <!--***********the following two component and sections tags will have to be removed when the measures section is put back in -->
233 <component>
234 <section>
235 <component>
236 <section>
237 <!--
238 ********************************************************
239 Patient Data
240 ********************************************************
241 -->
242 <component>
243 <section>
244 <code code="55188-7" codeSystem="2.16.840.1.113883.6.1"/>
245 <title>Patient Data</title>
246 </section>
247 </component>
Note: See TracBrowser for help on using the repository browser.