Changeset 811 for ccr2ccd-xslt
- Timestamp:
- Jun 23, 2010, 6:27:08 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr2ccd-xslt/trunk/ccr_ccd.xsl
r799 r811 71 71 72 72 <recordTarget typeCode="RCT" contextControlCode="OP"> 73 <patientRole> 73 74 <xsl:call-template name="ccdPatientRole"> 74 75 <xsl:with-param name="ccrActorObjectID" select="/a:ContinuityOfCareRecord/a:Patient[1]/a:ActorID"/> 75 76 </xsl:call-template> 77 </patientRole> 76 78 </recordTarget> 77 79 … … 160 162 <component> 161 163 <section> 162 <templateId root="2.16.840.1.113883.10.20.1.2"/> 163 <code code="46240-8" codeSystem="2.16.840.1.113883.6.1"/> 164 <templateId root="2.16.840.1.113883.10.20.1.2" /> 165 <!--C83 Allergies and Other Adverse Reactions Section Conformance Identifier--> 166 <templateId root="2.16.840.1.113883.3.88.11.83.102" /> 167 <!--IHE Allergies and Other Adverse Reactions Section Conformance Identifier--> 168 <templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.13" /> 169 <code code="48765-2" displayName="Allergies, adverse reactions, alerts" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" /> 164 170 <title>Alerts</title> 165 171 <text> … … 176 182 <xsl:for-each select="/a:ContinuityOfCareRecord/a:Body/a:Alerts/a:Alert"> 177 183 <tr> 178 <xsl:attribute name="id">179 <xsl:value-of select="a:CCRDataObjectID"/>180 </xsl:attribute>181 182 184 <td> 183 185 <xsl:value-of select="a:Type/a:Text"/> … … 192 194 </td> 193 195 <td> 196 <xsl:attribute name="ID"> 197 <xsl:value-of select="a:CCRDataObjectID"/> 198 </xsl:attribute> 194 199 <xsl:value-of select="a:Description/a:Text"/> 195 200 </td> … … 213 218 <entry typeCode="DRIV"> 214 219 <act classCode="ACT" moodCode="EVN"> 215 <templateId root="2.16.840.1.113883.10.20.1.27"/> 216 <!--Allergy act template --> 220 <!--CCD Problem Act Identifier--> 221 <templateId root="2.16.840.1.113883.10.20.1.27"></templateId> 222 <!--C83 Allergy Entry--> 223 <templateId root="2.16.840.1.113883.3.88.11.83.6" /> 224 <!--IHE Concern Entry Conformance Identifier--> 225 <templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.5.1"></templateId> 226 <!--IHE Allergy and Intolerance Concerns Entry--> 227 <templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.5.3"></templateId> 217 228 218 229 <!-- <id> --> … … 224 235 <entryRelationship typeCode="SUBJ"> 225 236 <observation classCode="OBS" moodCode="EVN"> 226 <templateId root="2.16.840.1.113883.10.20.1.18"/> 227 237 <!--CCD Alert Observation--> 238 <templateId root="2.16.840.1.113883.10.20.1.18"></templateId> 239 <!--CCD Problem Observation--> 240 <templateId root="2.16.840.1.113883.10.20.1.28" /> 241 <!--IHE Problem Entry--> 242 <templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.5" /> 243 <!--IHE Allergies and Intolerances Entry--> 244 <templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.6" /> 228 245 <!-- <id> --> 229 246 <xsl:call-template name="ccdID"> 230 247 <xsl:with-param name="ccrObjectID" select="a:CCRDataObjectID"/> 231 <xsl:with-param name="suffix"> .1</xsl:with-param>248 <xsl:with-param name="suffix"></xsl:with-param> 232 249 </xsl:call-template> 233 250 … … 244 261 245 262 <statusCode code="completed"/> 246 247 <participant typeCode="CSM"> 263 <value xsi:type="CD" /> 264 265 <participant typeCode="CSM"> 248 266 <xsl:choose> 249 <xsl:when test="a: Product/a:Description">267 <xsl:when test="a:Agent/a:Products/a:Product/a:Product"> 250 268 <xsl:call-template name="ccdParticipantRoleCodedDescription"> 251 269 <xsl:with-param name="ccrCodedDescription" select="a:Product/a:Description"/> 252 270 </xsl:call-template> 253 271 </xsl:when> 254 <xsl:otherwise> 255 <xsl:call-template name="ccdParticipantRoleCodedDescription"> 256 <xsl:with-param name="ccrCodedDescription" select="a:Description"/> 257 </xsl:call-template> 258 </xsl:otherwise> 272 259 273 </xsl:choose> 260 274 </participant> … … 460 474 </xsl:call-template> 461 475 462 <code code=" 64572001" displayName="Condition" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED-CT"/>476 <code code="55607006" displayName="Problem" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED-CT"/> 463 477 464 478 <text> … … 1516 1530 </component> 1517 1531 </xsl:if> 1532 <!-- 1518 1533 <xsl:if test="a:ContinuityOfCareRecord/a:Body/a:SupportProviders"> 1519 1534 <component> … … 1590 1605 </component> 1591 1606 </xsl:if> 1607 --> 1608 <!-- 1592 1609 <component> 1593 1610 <section> … … 1815 1832 </section> 1816 1833 </component> 1834 --> 1817 1835 </structuredBody> 1818 1836 </component> … … 1969 1987 <xsl:with-param name="CCRActor" select="$CCRActor"/> 1970 1988 </xsl:call-template> 1971 1972 <xsl:if test="$CCRActor/a:Organization">1973 <name>1974 <xsl:value-of select="$CCRActor/a:Organization/a:Name"/>1975 </name>1976 </xsl:if>1977 1978 1989 <xsl:call-template name="ccdTelecom"> 1979 1990 <xsl:with-param name="CCRActor" select="$CCRActor"/> … … 2010 2021 <xsl:template name="ccdAssignedAuthor"> 2011 2022 <xsl:param name="ccrActorObjectID"/> 2012 2023 <assignedAuthor> 2013 2024 <xsl:variable name="CCRActor" select="/a:ContinuityOfCareRecord/a:Actors/a:Actor[a:ActorObjectID=$ccrActorObjectID]"/> 2014 2025 … … 2036 2047 </representedOrganization> 2037 2048 </xsl:if> 2049 </assignedAuthor> 2038 2050 </xsl:template> 2039 2051 … … 2066 2078 <xsl:template name="ccdParticipantRoleCodedDescription"> 2067 2079 <xsl:param name="ccrCodedDescription"/> 2068 2069 <addr/>2070 <telecom/>2071 <playingEntity classCode="PLC">2072 <xsl:if test="$ccrCodedDescription/a:Code">2073 <xsl:call-template name="ccdCodedValue">2074 <xsl:with-param name="ccrCodedDescription" select="$ccrCodedDescription"/>2075 <xsl:with-param name="nodeName" select="'code'"/>2076 </xsl:call-template>2077 </xsl:if>2078 <name>2079 <xsl:value-of select="$ccrCodedDescription/a:Text"/>2080 </name>2081 </playingEntity>2080 <participantRole classCode="MANU"> 2081 <!--Product Detail--> 2082 <playingEntity classCode="MMAT"> 2083 <xsl:if test="$ccrCodedDescription/a:Code"> 2084 <xsl:call-template name="ccdCodedValue"> 2085 <xsl:with-param name="ccrCodedDescription" select="$ccrCodedDescription"/> 2086 <xsl:with-param name="nodeName" select="'code'"/> 2087 </xsl:call-template> 2088 </xsl:if> 2089 <name> 2090 <xsl:value-of select="$ccrCodedDescription/a:Text"/> 2091 </name> 2092 </playingEntity> 2093 </participantRole> 2082 2094 </xsl:template> 2083 2095 … … 2183 2195 <xsl:param name="suffix"/> 2184 2196 <id> 2185 <xsl:attribute name=" extension">2197 <xsl:attribute name="root"> 2186 2198 <xsl:value-of select="$ccrObjectID"></xsl:value-of> 2187 <xsl:value-of select="$suffix"></xsl:value-of>2188 2199 </xsl:attribute> 2189 2200 <xsl:attribute name="extension">CCRObjectID</xsl:attribute>
Note:
See TracChangeset
for help on using the changeset viewer.