Produced by Araxis Merge on 4/5/2017 4:25:25 PM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | C:\working_scrub\Unredacted\VAP Code Base\VAP_Bld2_Source_Code_CIF_2017-02-14\nvap-client\src\main\resources\gov\va\nvap\document\xsl\adapter | CCD.xsl | Wed Feb 1 18:37:28 2017 UTC |
| 2 | eHX-CIF.zip\eHX-CIF\VAP Code Base\VAP_Bld2_Source_Code_CIF_2017-02-14\nvap-client\src\main\resources\gov\va\nvap\document\xsl\adapter | CCD.xsl | Mon Apr 3 14:00:11 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 10 | 14922 |
| Changed | 9 | 18 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | <?xml | |
| 2 | version="1 .0" | |
| 3 | ?> | |
| 4 | <xsl:style sheet | |
| 5 | version="1 .0" | |
| 6 | ||
| 7 | xmlns:xsl= "http://ww w.w3.org/1 999/XSL/Tr ansform" | |
| 8 | xmlns:n3=" http://www .w3.org/19 99/xhtml" | |
| 9 | ||
| 10 | xmlns:n1=" urn:hl7-or g:v3" | |
| 11 | xmlns:n2=" urn:hl7-or g:v3/meta/ voc" | |
| 12 | xmlns:voc= "urn:hl7-o rg:v3/voc" | |
| 13 | ||
| 14 | xmlns:xsi= "http://ww w.w3.org/2 001/XMLSch ema-instan ce" | |
| 15 | xmlns:sect ion="urn:g ov.va.med" | |
| 16 | > | |
| 17 | ||
| 18 | ||
| 19 | <!-- ASHA AMRITRAJ - Comment c haining im port, the stylesheet s cannot i mport | |
| 20 | itse lf! <xsl:i mport href ="detailCo mmon.xsl"/ > --> | |
| 21 | ||
| 22 | ||
| 23 | <xsl:outpu t | |
| 24 | method="ht ml" | |
| 25 | indent="ye s" | |
| 26 | version="4 .01" | |
| 27 | ||
| 28 | encoding=" ISO-8859-1 " | |
| 29 | /> | |
| 30 | ||
| 31 | ||
| 32 | ||
| 33 | <!-- CDA d ocument -- > | |
| 34 | ||
| 35 | ||
| 36 | <xsl:varia ble | |
| 37 | name="tabl eWidth" | |
| 38 | > | |
| 39 | 50% | |
| 40 | ||
| 41 | </xsl:vari able> | |
| 42 | ||
| 43 | <xsl:varia ble | |
| 44 | name="titl e" | |
| 45 | > | |
| 46 | ||
| 47 | <xsl:choos e> | |
| 48 | ||
| 49 | <xsl:when | |
| 50 | test="stri ng-length( /n1:Clinic alDocument /n1:title) >0" | |
| 51 | > | |
| 52 | ||
| 53 | <xsl:value -of | |
| 54 | select="/n 1:Clinical Document/n 1:title" | |
| 55 | /> | |
| 56 | ||
| 57 | </xsl:when > | |
| 58 | ||
| 59 | <xsl:other wise> | |
| 60 | ||
| 61 | <xsl:text> | |
| 62 | Clinical D ocument | |
| 63 | </xsl:text > | |
| 64 | ||
| 65 | </xsl:othe rwise> | |
| 66 | ||
| 67 | </xsl:choo se> | |
| 68 | ||
| 69 | </xsl:vari able> | |
| 70 | ||
| 71 | ||
| 72 | <xsl:templ ate | |
| 73 | match="/" | |
| 74 | > | |
| 75 | ||
| 76 | <xsl:apply -templates | |
| 77 | select="n1 :ClinicalD ocument" | |
| 78 | /> | |
| 79 | ||
| 80 | </xsl:temp late> | |
| 81 | ||
| 82 | ||
| 83 | <xsl:templ ate | |
| 84 | match="n1: ClinicalDo cument" | |
| 85 | > | |
| 86 | ||
| 87 | <!-- sourc e --> | |
| 88 | ||
| 89 | <!-- ASHA AMRITRAJ - Removed H eader tags as this w ill be ren dered insi de | |
| 90 | anothe r html <he ad> <link type="text /css" href ="resource s/css/nhin .css" rel= "styleshee t"/> --> | |
| 91 | ||
| 92 | <h2 | |
| 93 | align="cen ter" | |
| 94 | > | |
| 95 | ||
| 96 | <xsl:call- template | |
| 97 | name="docu mentTitle" | |
| 98 | > | |
| 99 | ||
| 100 | <xsl:with- param | |
| 101 | name="root " | |
| 102 | select="." | |
| 103 | /> | |
| 104 | ||
| 105 | </xsl:call -template> | |
| 106 | ||
| 107 | </h2> | |
| 108 | ||
| 109 | ||
| 110 | <!-- ASHA AMRITRAJ - Removed H eader tags as this w ill be ren dered insi de | |
| 111 | anothe r html <ti tle> <xsl: value-of s elect="$ti tle"/> </t itle> <sty le type="t ext/css"> | |
| 112 | body { border-ri ght-width: 0px; bord er-top-wid th: 0px; b order-left -width: | |
| 113 | 0px; b order-bott om-width: 0px; paddi ng-top: 0p x; padding -bottom: 0 px; paddin g-left: | |
| 114 | 0px; p adding-rig ht: 0px; m argin-top: 0px; marg in-bottom: 0px; marg in-left: | |
| 115 | 0px; m argin-righ t: 0px; bo rder-colla pse: colla pse } tabl e.first { text-align : | |
| 116 | left; vertical-a lign: top; backgroun d-color: # CCCCff; bo rder-right : 3px soli d | |
| 117 | #00245 2; border- top: 3px s olid #0024 52; border -left: 3px solid #00 2452; bord er-bottom: | |
| 118 | 3px so lid #00245 2; padding -top: 0px; padding-b ottom: 0px ; padding- left: 0px; | |
| 119 | paddin g-right: 0 px; margin -top: 0px; margin-bo ttom: 0px; margin-le ft: 0px; | |
| 120 | margin -right: 0p x; font: 9 5% "Times New Roman" ; border-c ollapse: c ollapse | |
| 121 | } tabl e.second { text-alig n: left; v ertical-al ign: top; background -color: | |
| 122 | #CCCCf f; border- right: 3px solid #00 2452; bord er-top: 0p x solid #0 02452; | |
| 123 | border -left: 3px solid #00 2452; bord er-bottom: 3px solid #002452; padding-to p: | |
| 124 | 0px; p adding-bot tom: 0px; padding-le ft: 0px; p adding-rig ht: 0px; m argin-top: | |
| 125 | 0px; m argin-bott om: 0px; m argin-left : 0px; mar gin-right: 0px; font : 95% "Tim es | |
| 126 | New Ro man"; bord er-collaps e: collaps e } th.fir st { text- align: lef t; vertica l-align: | |
| 127 | top; c olor: whit e; backgro und-color: #002452; font: bold 95% "Time s New Roma n"; | |
| 128 | paddin g-left: 3p x; padding -right: 3p x; border- collapse: collapse } tr.first | |
| 129 | { text -align: le ft; vertic al-align: top; color : black; - -> | |
| 130 | ||
| 131 | <!--backgr ound-color : #E2E0E0; --> | |
| 132 | ||
| 133 | <!-- backg round-colo r: #E8F0F0 ; padding- top: 3px; padding-bo ttom: 3px; | |
| 134 | paddin g-left: 9p x; padding -right: 3p x; border- collapse: collapse } td.first | |
| 135 | { padd ing-left: 3px; paddi ng-right: 3px; paddi ng-top: 2p x; padding -bottom: | |
| 136 | 3px; c olor: whit e; backgro und-color: #002452; } tr.secon d { text-a lign: left ; | |
| 137 | vertic al-align: top; color : black; - -> | |
| 138 | ||
| 139 | <!--backgr ound-color : #F9F4EF; F0F5F5 -- > | |
| 140 | ||
| 141 | <!-- backg round-colo r: #CCCCff ; padding- top: 3px; padding-bo ttom: 3px; | |
| 142 | paddin g-left: 9p x; padding -right: 3p x; border- collapse: collapse } #smenu | |
| 143 | { z-in dex: 1; po sition: ab solute; to p: 45px; l eft: 685px ; width: 1 00%; float : | |
| 144 | left; text-align : right; c olor: #000 ; } </styl e> <style type="text /css"> | |
| 145 | #menu { position : absolute ; top: 45p x; left: 0 px; z-inde x: 1; floa t: left; | |
| 146 | text-a lign: righ t; color: #000; list -style: no ne; line-h eight: 1; } </style> | |
| 147 | </head > --> | |
| 148 | ||
| 149 | <!-- title --> | |
| 150 | ||
| 151 | <div | |
| 152 | style="tex t-align:ce nter;" | |
| 153 | > | |
| 154 | ||
| 155 | <span | |
| 156 | style="fon t-size:lar ger;font-w eight:bold ;" | |
| 157 | > | |
| 158 | ||
| 159 | <xsl:value -of | |
| 160 | select="n1 :code/@dis playName" | |
| 161 | /> | |
| 162 | ||
| 163 | </span> | |
| 164 | ||
| 165 | </div> | |
| 166 | ||
| 167 | ||
| 168 | <!-- Repor t ID#'s -- > | |
| 169 | ||
| 170 | <b> | |
| 171 | ||
| 172 | <xsl:text> | |
| 173 | Created On : | |
| 174 | </xsl:text > | |
| 175 | ||
| 176 | </b> | |
| 177 | ||
| 178 | <xsl:call- template | |
| 179 | name="getC reatedOnDa te" | |
| 180 | /> | |
| 181 | ||
| 182 | <xsl:if | |
| 183 | ||
| 184 | test="/n1: ClinicalDo cument/n1: documentat ionOf/n1:s erviceEven t/n1:perfo rmer/n1:ef fectiveTim e/n1:low/@ value" | |
| 185 | > | |
| 186 | ||
| 187 | <xsl:text | |
| 188 | disable-ou tput-escap ing="yes" | |
| 189 | > | |
| 190 | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | |
| 191 | </xsl:text > | |
| 192 | ||
| 193 | <b> | |
| 194 | ||
| 195 | <xsl:text> | |
| 196 | Date Range : | |
| 197 | </xsl:text > | |
| 198 | ||
| 199 | </b> | |
| 200 | ||
| 201 | <xsl:choos e> | |
| 202 | ||
| 203 | <xsl:when | |
| 204 | ||
| 205 | test="stri ng-length( /n1:Clinic alDocument /n1:docume ntationOf/ n1:service Event/n1:p erformer/n 1:effectiv eTime/n1:l ow/@value) =0" | |
| 206 | > | |
| 207 | ||
| 208 | <xsl:call- template | |
| 209 | name="na" | |
| 210 | /> | |
| 211 | ||
| 212 | </xsl:when > | |
| 213 | ||
| 214 | <xsl:when | |
| 215 | ||
| 216 | test="star ts-with(/n 1:Clinical Document/n 1:document ationOf/n1 :serviceEv ent/n1:per former/n1: effectiveT ime/n1:low /@value,' ')" | |
| 217 | > | |
| 218 | ||
| 219 | <xsl:call- template | |
| 220 | name="na" | |
| 221 | /> | |
| 222 | ||
| 223 | </xsl:when > | |
| 224 | ||
| 225 | <xsl:other wise> | |
| 226 | ||
| 227 | <xsl:call- template | |
| 228 | name="form atDateFull " | |
| 229 | > | |
| 230 | ||
| 231 | <xsl:with- param | |
| 232 | name="date " | |
| 233 | ||
| 234 | select="/n 1:Clinical Document/n 1:document ationOf/n1 :serviceEv ent/n1:per former/n1: effectiveT ime/n1:low /@value" | |
| 235 | /> | |
| 236 | ||
| 237 | </xsl:call -template> | |
| 238 | ||
| 239 | </xsl:othe rwise> | |
| 240 | ||
| 241 | </xsl:choo se> | |
| 242 | ||
| 243 | <b> | |
| 244 | ||
| 245 | <xsl:text | |
| 246 | disable-ou tput-escap ing="yes" | |
| 247 | > | |
| 248 | - | |
| 249 | </xsl:text > | |
| 250 | ||
| 251 | </b> | |
| 252 | ||
| 253 | <xsl:choos e> | |
| 254 | ||
| 255 | <xsl:when | |
| 256 | ||
| 257 | test="stri ng-length( /n1:Clinic alDocument /n1:docume ntationOf/ n1:service Event/n1:p erformer/n 1:effectiv eTime/n1:h igh/@value )=0" | |
| 258 | > | |
| 259 | ||
| 260 | <xsl:call- template | |
| 261 | name="na" | |
| 262 | /> | |
| 263 | ||
| 264 | </xsl:when > | |
| 265 | ||
| 266 | <xsl:when | |
| 267 | ||
| 268 | test="star ts-with(/n 1:Clinical Document/n 1:document ationOf/n1 :serviceEv ent/n1:per former/n1: effectiveT ime/n1:hig h/@value,' ')" | |
| 269 | > | |
| 270 | ||
| 271 | <xsl:call- template | |
| 272 | name="na" | |
| 273 | /> | |
| 274 | ||
| 275 | </xsl:when > | |
| 276 | ||
| 277 | <xsl:other wise> | |
| 278 | ||
| 279 | <xsl:call- template | |
| 280 | name="form atDateFull " | |
| 281 | > | |
| 282 | ||
| 283 | <xsl:with- param | |
| 284 | name="date " | |
| 285 | ||
| 286 | select="/n 1:Clinical Document/n 1:document ationOf/n1 :serviceEv ent/n1:per former/n1: effectiveT ime/n1:hig h/@value" | |
| 287 | /> | |
| 288 | ||
| 289 | </xsl:call -template> | |
| 290 | ||
| 291 | </xsl:othe rwise> | |
| 292 | ||
| 293 | </xsl:choo se> | |
| 294 | ||
| 295 | </xsl:if> | |
| 296 | ||
| 297 | ||
| 298 | <table | |
| 299 | width='100 %' | |
| 300 | class="fir st" | |
| 301 | > | |
| 302 | ||
| 303 | <xsl:varia ble | |
| 304 | name="pati entRole" | |
| 305 | ||
| 306 | select="/n 1:Clinical Document/n 1:recordTa rget/n1:pa tientRole" | |
| 307 | /> | |
| 308 | ||
| 309 | <tr> | |
| 310 | ||
| 311 | <td | |
| 312 | width='15% ' | |
| 313 | valign="to p" | |
| 314 | > | |
| 315 | ||
| 316 | <b> | |
| 317 | ||
| 318 | <xsl:text> | |
| 319 | Patient: | |
| 320 | </xsl:text > | |
| 321 | ||
| 322 | </b> | |
| 323 | ||
| 324 | </td> | |
| 325 | ||
| 326 | <td | |
| 327 | width='35% ' | |
| 328 | valign="to p" | |
| 329 | > | |
| 330 | ||
| 331 | <xsl:call- template | |
| 332 | name="getN ame" | |
| 333 | > | |
| 334 | ||
| 335 | <xsl:with- param | |
| 336 | name="name " | |
| 337 | ||
| 338 | select="$p atientRole /n1:patien t/n1:name" | |
| 339 | /> | |
| 340 | ||
| 341 | </xsl:call -template> | |
| 342 | ||
| 343 | <xsl:if | |
| 344 | test="$pat ientRole/n 1:addr" | |
| 345 | > | |
| 346 | ||
| 347 | <xsl:call- template | |
| 348 | name="getA ddress" | |
| 349 | > | |
| 350 | ||
| 351 | <xsl:with- param | |
| 352 | name="addr " | |
| 353 | select="$p atientRole /n1:addr" | |
| 354 | /> | |
| 355 | ||
| 356 | </xsl:call -template> | |
| 357 | ||
| 358 | </xsl:if> | |
| 359 | ||
| 360 | <xsl:choos e> | |
| 361 | ||
| 362 | <xsl:when | |
| 363 | test="$pat ientRole/n 1:telecom/ @value" | |
| 364 | > | |
| 365 | ||
| 366 | <xsl:for-e ach | |
| 367 | select="$p atientRole /n1:teleco m" | |
| 368 | > | |
| 369 | ||
| 370 | <xsl:call- template | |
| 371 | name="getT elecom" | |
| 372 | > | |
| 373 | ||
| 374 | <xsl:with- param | |
| 375 | name="tele com" | |
| 376 | select="." | |
| 377 | /> | |
| 378 | ||
| 379 | </xsl:call -template> | |
| 380 | ||
| 381 | </xsl:for- each> | |
| 382 | ||
| 383 | </xsl:when > | |
| 384 | ||
| 385 | <xsl:other wise> | |
| 386 | ||
| 387 | <br /> | |
| 388 | ||
| 389 | <b> | |
| 390 | ||
| 391 | <xsl:text> | |
| 392 | tel: PATIE NT PHONE M ISSING | |
| 393 | </xsl:text > | |
| 394 | ||
| 395 | </b> | |
| 396 | ||
| 397 | </xsl:othe rwise> | |
| 398 | ||
| 399 | </xsl:choo se> | |
| 400 | ||
| 401 | </td> | |
| 402 | ||
| 403 | <td | |
| 404 | width='15% ' | |
| 405 | align='rig ht' | |
| 406 | valign="to p" | |
| 407 | > | |
| 408 | ||
| 409 | <b> | |
| 410 | ||
| 411 | <xsl:text> | |
| 412 | Patient ID : | |
| 413 | </xsl:text > | |
| 414 | ||
| 415 | </b> | |
| 416 | ||
| 417 | </td> | |
| 418 | ||
| 419 | <td | |
| 420 | width='35% ' | |
| 421 | valign="to p" | |
| 422 | > | |
| 423 | ||
| 424 | <xsl:if | |
| 425 | test="stri ng-length( $patientRo le/n1:id/@ extension) >0" | |
| 426 | > | |
| 427 | ||
| 428 | <xsl:value -of | |
| 429 | select="$p atientRole /n1:id/@ex tension" | |
| 430 | /> | |
| 431 | ||
| 432 | </xsl:if> | |
| 433 | ||
| 434 | </td> | |
| 435 | ||
| 436 | </tr> | |
| 437 | ||
| 438 | ||
| 439 | <tr> | |
| 440 | ||
| 441 | <td | |
| 442 | width='15% ' | |
| 443 | valign="to p" | |
| 444 | > | |
| 445 | ||
| 446 | <b> | |
| 447 | ||
| 448 | <xsl:text> | |
| 449 | Birthdate: | |
| 450 | </xsl:text > | |
| 451 | ||
| 452 | </b> | |
| 453 | ||
| 454 | </td> | |
| 455 | ||
| 456 | <td | |
| 457 | width='35% ' | |
| 458 | valign="to p" | |
| 459 | > | |
| 460 | ||
| 461 | <xsl:call- template | |
| 462 | name="form atDateFull " | |
| 463 | > | |
| 464 | ||
| 465 | <xsl:with- param | |
| 466 | name="date " | |
| 467 | ||
| 468 | select="/n 1:Clinical Document/n 1:recordTa rget/n1:pa tientRole/ n1:patient /n1:birthT ime/@value " | |
| 469 | /> | |
| 470 | ||
| 471 | </xsl:call -template> | |
| 472 | ||
| 473 | </td> | |
| 474 | ||
| 475 | <td | |
| 476 | width='15% ' | |
| 477 | align='rig ht' | |
| 478 | valign="to p" | |
| 479 | > | |
| 480 | ||
| 481 | <b> | |
| 482 | ||
| 483 | <xsl:text> | |
| 484 | Gender: | |
| 485 | </xsl:text > | |
| 486 | ||
| 487 | </b> | |
| 488 | ||
| 489 | </td> | |
| 490 | ||
| 491 | <td | |
| 492 | width='35% ' | |
| 493 | valign="to p" | |
| 494 | > | |
| 495 | ||
| 496 | <xsl:call- template | |
| 497 | name="getG enderStrin g" | |
| 498 | /> | |
| 499 | ||
| 500 | </td> | |
| 501 | ||
| 502 | </tr> | |
| 503 | ||
| 504 | <xsl:if | |
| 505 | ||
| 506 | test="star ts-with($p atientRole /n1:patien t/n1:langu ageCommuni cation/n1: languageCo de/@nullFl avor,'UNK' ) != 'true '" | |
| 507 | > | |
| 508 | ||
| 509 | <tr> | |
| 510 | ||
| 511 | <td | |
| 512 | width="15% " | |
| 513 | valign="to p" | |
| 514 | > | |
| 515 | ||
| 516 | <b> | |
| 517 | ||
| 518 | <xsl:text> | |
| 519 | Language(s ): | |
| 520 | </xsl:text > | |
| 521 | ||
| 522 | </b> | |
| 523 | ||
| 524 | </td> | |
| 525 | ||
| 526 | <td | |
| 527 | width="35% " | |
| 528 | valign="to p" | |
| 529 | > | |
| 530 | ||
| 531 | <xsl:apply -templates | |
| 532 | ||
| 533 | select="$p atientRole /n1:patien t/n1:langu ageCommuni cation" | |
| 534 | /> | |
| 535 | ||
| 536 | </td> | |
| 537 | ||
| 538 | <td | |
| 539 | width="15% " | |
| 540 | valign="to p" | |
| 541 | > | |
| 542 | </td> | |
| 543 | ||
| 544 | <td | |
| 545 | width="35% " | |
| 546 | valign="to p" | |
| 547 | > | |
| 548 | </td> | |
| 549 | ||
| 550 | </tr> | |
| 551 | ||
| 552 | </xsl:if> | |
| 553 | ||
| 554 | ||
| 555 | </table> | |
| 556 | ||
| 557 | ||
| 558 | <xsl:if | |
| 559 | test="n1:a uthor" | |
| 560 | > | |
| 561 | ||
| 562 | ||
| 563 | ||
| 564 | <table | |
| 565 | width="100 %" | |
| 566 | class="sec ond" | |
| 567 | > | |
| 568 | ||
| 569 | <tr> | |
| 570 | ||
| 571 | <td | |
| 572 | width="15% " | |
| 573 | > | |
| 574 | ||
| 575 | <b> | |
| 576 | Source: | |
| 577 | </b> | |
| 578 | ||
| 579 | </td> | |
| 580 | ||
| 581 | <td | |
| 582 | width="85% " | |
| 583 | > | |
| 584 | ||
| 585 | <xsl:value -of | |
| 586 | ||
| 587 | select="n1 :author/n1 :assignedA uthor/n1:r epresented Organizati on/n1:name /text()" | |
| 588 | /> | |
| 589 | ||
| 590 | </td> | |
| 591 | ||
| 592 | </tr> | |
| 593 | ||
| 594 | <xsl:if | |
| 595 | ||
| 596 | test="stri ng-length( n1:author/ n1:assigne dAuthor/n1 :assignedP erson/n1:n ame)>1" | |
| 597 | > | |
| 598 | ||
| 599 | <tr> | |
| 600 | ||
| 601 | <td | |
| 602 | width="15% " | |
| 603 | valign="to p" | |
| 604 | > | |
| 605 | </td> | |
| 606 | ||
| 607 | <td | |
| 608 | width="85% " | |
| 609 | valign="to p" | |
| 610 | > | |
| 611 | Auth or: | |
| 612 | ||
| 613 | <xsl:choos e> | |
| 614 | ||
| 615 | <xsl:when | |
| 616 | ||
| 617 | test="n1:a uthor/n1:a ssignedAut hor/n1:ass ignedPerso n/n1:name/ n1:family and n1:aut hor/n1:ass ignedAutho r/n1:assig nedPerson/ n1:name/n1 :given" | |
| 618 | > | |
| 619 | ||
| 620 | <xsl:value -of | |
| 621 | ||
| 622 | select="n1 :author/n1 :assignedA uthor/n1:a ssignedPer son/n1:nam e/n1:famil y" | |
| 623 | /> | |
| 624 | ||
| 625 | <xsl:text> | |
| 626 | , | |
| 627 | </xsl:text > | |
| 628 | ||
| 629 | <xsl:value -of | |
| 630 | ||
| 631 | select="n1 :author/n1 :assignedA uthor/n1:a ssignedPer son/n1:nam e/n1:given " | |
| 632 | /> | |
| 633 | ||
| 634 | </xsl:when > | |
| 635 | ||
| 636 | <xsl:other wise> | |
| 637 | ||
| 638 | <xsl:value -of | |
| 639 | ||
| 640 | select="n1 :author/n1 :assignedA uthor/n1:a ssignedPer son/n1:nam e" | |
| 641 | /> | |
| 642 | ||
| 643 | </xsl:othe rwise> | |
| 644 | ||
| 645 | </xsl:choo se> | |
| 646 | ||
| 647 | </td> | |
| 648 | ||
| 649 | </tr> | |
| 650 | ||
| 651 | </xsl:if> | |
| 652 | ||
| 653 | </table> | |
| 654 | ||
| 655 | </xsl:if> | |
| 656 | ||
| 657 | ||
| 658 | ||
| 659 | <xsl:if | |
| 660 | test="n1:c omponent/n 1:structur edBody" | |
| 661 | > | |
| 662 | ||
| 663 | <div> | |
| 664 | ||
| 665 | <h3> | |
| 666 | ||
| 667 | <a | |
| 668 | name="toc" | |
| 669 | > | |
| 670 | Table of C ontents | |
| 671 | </a> | |
| 672 | ||
| 673 | </h3> | |
| 674 | ||
| 675 | <ul> | |
| 676 | ||
| 677 | <xsl:for-e ach | |
| 678 | ||
| 679 | select="n1 :component /n1:struct uredBody/n 1:componen t/n1:secti on/n1:titl e" | |
| 680 | > | |
| 681 | ||
| 682 | <xsl:if | |
| 683 | ||
| 684 | test="../n 1:code/@co de=$loincA llergyCode | |
| 685 | or ../n1:cod e/@code=$l oincMedCod e | |
| 686 | or ../n1:cod e/@code=$l oincProble mCode | |
| 687 | or ../n1:cod e/@code=$l oincEncoun terCode | |
| 688 | or ../n1:cod e/@code=$l oincResult sCode | |
| 689 | or ../n1:cod e/@code=$l oincProced uresCode | |
| 690 | or ../n1:cod e/@code=$l oincImmuni zationsCod e | |
| 691 | or ../n1:cod e/@code=$l oincVitals Code" | |
| 692 | > | |
| 693 | ||
| 694 | <li> | |
| 695 | ||
| 696 | <a | |
| 697 | href="#{ge nerate-id( .)}" | |
| 698 | > | |
| 699 | ||
| 700 | <xsl:value -of | |
| 701 | select="." | |
| 702 | /> | |
| 703 | ||
| 704 | </a> | |
| 705 | ||
| 706 | </li> | |
| 707 | ||
| 708 | </xsl:if> | |
| 709 | ||
| 710 | </xsl:for- each> | |
| 711 | ||
| 712 | </ul> | |
| 713 | ||
| 714 | </div> | |
| 715 | ||
| 716 | </xsl:if> | |
| 717 | ||
| 718 | ||
| 719 | ||
| 720 | ||
| 721 | <!-- TODO: Asha Amri traj - Har dcoded C62 & Privacy consent d irective f or | |
| 722 | now. M ake it gen eric in ne xt release START --> | |
| 723 | ||
| 724 | <!-- C62 t ext --> | |
| 725 | ||
| 726 | <xsl:for-e ach | |
| 727 | select="n1 :component /n1:nonXML Body" | |
| 728 | > | |
| 729 | ||
| 730 | <div> | |
| 731 | ||
| 732 | <h3> | |
| 733 | ||
| 734 | <xsl:text> | |
| 735 | NOTE | |
| 736 | </xsl:text > | |
| 737 | ||
| 738 | </h3> | |
| 739 | ||
| 740 | <br /> | |
| 741 | ||
| 742 | <xsl:choos e> | |
| 743 | ||
| 744 | <xsl:when | |
| 745 | ||
| 746 | test="(not (n1:text/@ representa tion='B64' )) and (st arts-with( n1:text/@m ediaType,' text'))" | |
| 747 | > | |
| 748 | ||
| 749 | <xsl:value -of | |
| 750 | select="." | |
| 751 | /> | |
| 752 | ||
| 753 | </xsl:when > | |
| 754 | ||
| 755 | <xsl:other wise> | |
| 756 | ||
| 757 | <a | |
| 758 | ||
| 759 | href="View Attachment .do_sec?me diaType={n 1:text/@me diaType}&a mp;represe ntation={n 1:text/@re presentati on}&do cType=C62" | |
| 760 | > | |
| 761 | View attac hment | |
| 762 | </a> | |
| 763 | ||
| 764 | </xsl:othe rwise> | |
| 765 | ||
| 766 | </xsl:choo se> | |
| 767 | ||
| 768 | ||
| 769 | <br /> | |
| 770 | ||
| 771 | </div> | |
| 772 | ||
| 773 | </xsl:for- each> | |
| 774 | ||
| 775 | ||
| 776 | ||
| 777 | <br /> | |
| 778 | ||
| 779 | <!-- Priva cy Consent Directive Document --> | |
| 780 | ||
| 781 | ||
| 782 | <xsl:for-e ach | |
| 783 | ||
| 784 | select="n1 :component /n1:struct uredBody/n 1:componen t/n1:secti on/n1:entr y/n1:act/n 1:entryRel ationship/ n1:observa tionMedia" | |
| 785 | > | |
| 786 | ||
| 787 | <div> | |
| 788 | ||
| 789 | <a | |
| 790 | ||
| 791 | href="View Attachment .do_sec?me diaType={n 1:value/@m ediaType}& amp;repres entation={ n1:value/@ representa tion}& docType=Pr ivacyConse ntDirectiv e" | |
| 792 | > | |
| 793 | View attac hment | |
| 794 | </a> | |
| 795 | ||
| 796 | </div> | |
| 797 | ||
| 798 | </xsl:for- each> | |
| 799 | ||
| 800 | ||
| 801 | <!-- <div> <h3> <xsl :text>NOTE </xsl:text > </h3> <x sl:for-eac h select=" n1:compone nt/n1:nonX MLBody"> | |
| 802 | <br/> <xsl:choos e> <xsl:wh en test="s tarts-with (n1:text/@ mediaType, 'text')"> | |
| 803 | <xsl:i f test="n1 :text/@rep resentatio n='B64'"> <xsl:value -of select ="."/> | |
| 804 | </xsl: if> <xsl:i f test="no t(n1:text/ @represent ation='B64 ')"> <xsl: value-of | |
| 805 | select ="."/> </x sl:if> </x sl:when> < xsl:otherw ise> <br/> <xsl:if t est="strin g-length(. )>1024"> | |
| 806 | <xsl:t ext>Image too large< /xsl:text> </xsl:if> <xsl:if t est="not(s tring-leng th(.)>1024 )"> | |
| 807 | <img> <xsl:attri bute name= "src"> dat a:applicat ion/pdf;ba se64,<xsl: value-of | |
| 808 | select ="."/> </x sl:attribu te> </img> </xsl:if> </xsl:oth erwise> </ xsl:choose > | |
| 809 | <br/> </xsl:for- each> </di v> --> | |
| 810 | ||
| 811 | ||
| 812 | <!-- TODO: Asha Amri traj - Har dcoded C62 & Privacy consent d irective f or | |
| 813 | now. M ake it gen eric in ne xt release END --> | |
| 814 | ||
| 815 | ||
| 816 | <xsl:apply -templates | |
| 817 | select="n1 :component /n1:struct uredBody" | |
| 818 | /> | |
| 819 | ||
| 820 | <br> | |
| 821 | </br> | |
| 822 | ||
| 823 | <br> | |
| 824 | </br> | |
| 825 | ||
| 826 | <xsl:choos e> | |
| 827 | ||
| 828 | <xsl:when | |
| 829 | ||
| 830 | test="stri ng-length( /n1:Clinic alDocument /n1:partic ipant[@typ eCode='IND ']/n1:asso ciatedEnti ty[@classC ode='NOK'] )>0" | |
| 831 | > | |
| 832 | ||
| 833 | <table | |
| 834 | class="fir st" | |
| 835 | > | |
| 836 | ||
| 837 | <tr> | |
| 838 | ||
| 839 | <td | |
| 840 | width="100 px" | |
| 841 | valign="to p" | |
| 842 | align='lef t' | |
| 843 | > | |
| 844 | ||
| 845 | <b> | |
| 846 | Emergency Contact: | |
| 847 | </b> | |
| 848 | ||
| 849 | </td> | |
| 850 | ||
| 851 | <td | |
| 852 | valign="to p" | |
| 853 | > | |
| 854 | ||
| 855 | <xsl:call- template | |
| 856 | name="getP articipant " | |
| 857 | > | |
| 858 | ||
| 859 | <xsl:with- param | |
| 860 | name="part icipant" | |
| 861 | ||
| 862 | select="/n 1:Clinical Document/n 1:particip ant[@typeC ode='IND'] /n1:associ atedEntity [@classCod e='NOK']" | |
| 863 | /> | |
| 864 | ||
| 865 | </xsl:call -template> | |
| 866 | ||
| 867 | </td> | |
| 868 | ||
| 869 | <td | |
| 870 | width="50p x" | |
| 871 | > | |
| 872 | ||
| 873 | </td> | |
| 874 | ||
| 875 | </tr> | |
| 876 | ||
| 877 | </table> | |
| 878 | ||
| 879 | </xsl:when > | |
| 880 | ||
| 881 | <xsl:other wise> | |
| 882 | ||
| 883 | <b> | |
| 884 | </b> | |
| 885 | ||
| 886 | </xsl:othe rwise> | |
| 887 | ||
| 888 | </xsl:choo se> | |
| 889 | ||
| 890 | <xsl:call- template | |
| 891 | name="bott omline" | |
| 892 | /> | |
| 893 | ||
| 894 | ||
| 895 | <div | |
| 896 | id="TipBox " | |
| 897 | ||
| 898 | style="dis play:none; position:a bsolute;fo nt-size:12 px;font-we ight:bold; font-famil y:verdana; border:#72 B0E6 solid 1px;paddi ng:15px;co lor:black; background -color:#FF FFFF;" | |
| 899 | > | |
| 900 | ||
| 901 | <xsl:text | |
| 902 | disable-ou tput-escap ing="yes" | |
| 903 | > | |
| 904 | &nbsp; | |
| 905 | </xsl:text > | |
| 906 | ||
| 907 | </div> | |
| 908 | ||
| 909 | <!-- ASHA AMRITRAJ - Commented body tag since this will be i ncluded in | |
| 910 | anothr e HTML <bo dy> --> | |
| 911 | ||
| 912 | <script | |
| 913 | type="text /javascrip t" | |
| 914 | > | |
| 915 | var Ti pBoxID = " TipBox"; | |
| 916 | var ti p_box_id; | |
| 917 | functi on findPos X(obj) | |
| 918 | { | |
| 919 | var cu rleft = 0; | |
| 920 | if(obj .offsetPar ent) | |
| 921 | while( 1) | |
| 922 | { | |
| 923 | curlef t += obj.o ffsetLeft; | |
| 924 | if(!ob j.offsetPa rent) | |
| 925 | break; | |
| 926 | obj = obj.offset Parent; | |
| 927 | } | |
| 928 | else i f(obj.x) | |
| 929 | curlef t += obj.x ; | |
| 930 | return curleft; | |
| 931 | } | |
| 932 | ||
| 933 | functi on findPos Y(obj) | |
| 934 | { | |
| 935 | var cu rtop = 0; | |
| 936 | if(obj .offsetPar ent) | |
| 937 | while( 1) | |
| 938 | { | |
| 939 | curtop += obj.of fsetTop; | |
| 940 | if(!ob j.offsetPa rent) | |
| 941 | break; | |
| 942 | obj = obj.offset Parent; | |
| 943 | } | |
| 944 | else i f(obj.y) | |
| 945 | curtop += obj.y; | |
| 946 | return curtop; | |
| 947 | } | |
| 948 | ||
| 949 | functi on HideTip () { | |
| 950 | tip_bo x_id.style .display = "none"; | |
| 951 | } | |
| 952 | ||
| 953 | functi on ShowTip () { | |
| 954 | tip_bo x_id.style .display = "block"; | |
| 955 | } | |
| 956 | ||
| 957 | functi on ToggleT ip() { | |
| 958 | if (ti p_box_id.s tyle.displ ay == "non e"){ | |
| 959 | tip_bo x_id.style .display = "block"; | |
| 960 | } | |
| 961 | else i f (tip_box _id.style. display == "block"){ | |
| 962 | tip_bo x_id.style .display = "none"; | |
| 963 | } | |
| 964 | } | |
| 965 | ||
| 966 | functi on Display Tip(me,off X,offY) { | |
| 967 | var co ntent = me .innerHTML ; | |
| 968 | var td Length = m e.parentNo de.offsetW idth; | |
| 969 | var te xtLength = me.innerH TML.length ; | |
| 970 | if(((t extLength- 1)*10) > t dLength) { | |
| 971 | var ti pO = me; | |
| 972 | tip_bo x_id = doc ument.getE lementById (TipBoxID) ; | |
| 973 | var x = findPosX (me); | |
| 974 | var y = findPosY (me); | |
| 975 | var le ft = x + o ffX - 100; | |
| 976 | ||
| 977 | if( le ft < 0) { | |
| 978 | left = 0; | |
| 979 | } | |
| 980 | var to p = y + of fY - 10; | |
| 981 | ||
| 982 | tip_bo x_id.style .left = St ring(parse Int(left) + 'px'); | |
| 983 | tip_bo x_id.style .top = Str ing(parseI nt(top) + 'px'); | |
| 984 | tip_bo x_id.inner HTML = con tent; | |
| 985 | tip_bo x_id.style .display = "block"; | |
| 986 | tipO.o nmouseout = HideTip; | |
| 987 | } | |
| 988 | } | |
| 989 | ||
| 990 | functi on Display Text(me,of fX,offY) { | |
| 991 | var co ntent = me .innerHTML ; | |
| 992 | var td Length = m e.parentNo de.offsetW idth; | |
| 993 | var te xtLength = me.innerH TML.length ; | |
| 994 | if(((t extLength- 1)*10) > t dLength) { | |
| 995 | var ti pO = me; | |
| 996 | tip_bo x_id = doc ument.getE lementById (TipBoxID) ; | |
| 997 | var x = findPosX (me); | |
| 998 | var y = findPosY (me); | |
| 999 | var le ft = x + o ffX - 300; | |
| 1000 | ||
| 1001 | if( le ft < 0) { | |
| 1002 | left = 0; | |
| 1003 | } | |
| 1004 | var to p = y + of fY + 75; | |
| 1005 | ||
| 1006 | tip_bo x_id.style .left = St ring(parse Int(left) + 'px'); | |
| 1007 | tip_bo x_id.style .top = Str ing(parseI nt(top) + 'px'); | |
| 1008 | tip_bo x_id.inner HTML = con tent; | |
| 1009 | tip_bo x_id.style .display = "none"; | |
| 1010 | tipO.o nclick = T oggleTip; | |
| 1011 | } | |
| 1012 | } | |
| 1013 | ||
| 1014 | ||
| 1015 | </script> | |
| 1016 | ||
| 1017 | <!-- ASHA AMRITRAJ - Commented body tag since this will be i ncluded in | |
| 1018 | anothr e HTML </b ody> --> | |
| 1019 | ||
| 1020 | </xsl:temp late> | |
| 1021 | ||
| 1022 | ||
| 1023 | <xsl:templ ate | |
| 1024 | name="getP articipant " | |
| 1025 | > | |
| 1026 | ||
| 1027 | <xsl:param | |
| 1028 | name="part icipant" | |
| 1029 | /> | |
| 1030 | ||
| 1031 | <p> | |
| 1032 | ||
| 1033 | <xsl:call- template | |
| 1034 | name="getN ame" | |
| 1035 | > | |
| 1036 | ||
| 1037 | <xsl:with- param | |
| 1038 | name="name " | |
| 1039 | ||
| 1040 | select="$p articipant /n1:associ atedPerson /n1:name" | |
| 1041 | /> | |
| 1042 | ||
| 1043 | </xsl:call -template> | |
| 1044 | ||
| 1045 | <xsl:if | |
| 1046 | test="$par ticipant/n 1:addr" | |
| 1047 | > | |
| 1048 | ||
| 1049 | <xsl:choos e> | |
| 1050 | ||
| 1051 | <xsl:when | |
| 1052 | test="$isK aiser" | |
| 1053 | > | |
| 1054 | ||
| 1055 | <xsl:call- template | |
| 1056 | name="getS ingleAddre ss" | |
| 1057 | > | |
| 1058 | ||
| 1059 | <xsl:with- param | |
| 1060 | name="addr " | |
| 1061 | select="$p articipant /n1:addr" | |
| 1062 | /> | |
| 1063 | ||
| 1064 | </xsl:call -template> | |
| 1065 | ||
| 1066 | </xsl:when > | |
| 1067 | ||
| 1068 | <xsl:other wise> | |
| 1069 | ||
| 1070 | <xsl:call- template | |
| 1071 | name="getA ddress" | |
| 1072 | > | |
| 1073 | ||
| 1074 | <xsl:with- param | |
| 1075 | name="addr " | |
| 1076 | select="$p articipant /n1:addr" | |
| 1077 | /> | |
| 1078 | ||
| 1079 | </xsl:call -template> | |
| 1080 | ||
| 1081 | </xsl:othe rwise> | |
| 1082 | ||
| 1083 | </xsl:choo se> | |
| 1084 | ||
| 1085 | </xsl:if> | |
| 1086 | ||
| 1087 | <xsl:choos e> | |
| 1088 | ||
| 1089 | <xsl:when | |
| 1090 | test="$par ticipant/n 1:telecom/ @value" | |
| 1091 | > | |
| 1092 | ||
| 1093 | <xsl:for-e ach | |
| 1094 | select="$p articipant /n1:teleco m" | |
| 1095 | > | |
| 1096 | ||
| 1097 | <xsl:call- template | |
| 1098 | name="getT elecom" | |
| 1099 | > | |
| 1100 | ||
| 1101 | <xsl:with- param | |
| 1102 | name="tele com" | |
| 1103 | select="." | |
| 1104 | /> | |
| 1105 | ||
| 1106 | </xsl:call -template> | |
| 1107 | ||
| 1108 | </xsl:for- each> | |
| 1109 | ||
| 1110 | </xsl:when > | |
| 1111 | ||
| 1112 | <xsl:other wise> | |
| 1113 | ||
| 1114 | <br /> | |
| 1115 | ||
| 1116 | <b> | |
| 1117 | ||
| 1118 | <xsl:text> | |
| 1119 | tel: CONTA CT PHONE M ISSING | |
| 1120 | </xsl:text > | |
| 1121 | ||
| 1122 | </b> | |
| 1123 | ||
| 1124 | </xsl:othe rwise> | |
| 1125 | ||
| 1126 | </xsl:choo se> | |
| 1127 | ||
| 1128 | <xsl:if | |
| 1129 | test="$par ticipant/n 1:code/n1: originalTe xt" | |
| 1130 | > | |
| 1131 | ||
| 1132 | <br /> | |
| 1133 | ||
| 1134 | <b> | |
| 1135 | Relationsh ip: | |
| 1136 | </b> | |
| 1137 | ||
| 1138 | <xsl:value -of | |
| 1139 | select="$p articipant /n1:code/n 1:original Text" | |
| 1140 | /> | |
| 1141 | ||
| 1142 | </xsl:if> | |
| 1143 | ||
| 1144 | </p> | |
| 1145 | ||
| 1146 | </xsl:temp late> | |
| 1147 | ||
| 1148 | ||
| 1149 | <xsl:templ ate | |
| 1150 | name="getS ingleAddre ss" | |
| 1151 | > | |
| 1152 | ||
| 1153 | <xsl:param | |
| 1154 | name="addr " | |
| 1155 | /> | |
| 1156 | ||
| 1157 | <xsl:if | |
| 1158 | test="$add r/n1:stree tAddressLi ne != ' '" | |
| 1159 | > | |
| 1160 | ||
| 1161 | <br /> | |
| 1162 | ||
| 1163 | <xsl:if | |
| 1164 | test="stri ng-length( $addr/n1:s treetAddre ssLine)>0" | |
| 1165 | > | |
| 1166 | ||
| 1167 | <xsl:value -of | |
| 1168 | select="$a ddr/n1:str eetAddress Line" | |
| 1169 | /> | |
| 1170 | ||
| 1171 | </xsl:if> | |
| 1172 | ||
| 1173 | ||
| 1174 | <br /> | |
| 1175 | ||
| 1176 | <xsl:value -of | |
| 1177 | select="$a ddr/n1:cit y" | |
| 1178 | /> | |
| 1179 | , | |
| 1180 | ||
| 1181 | <xsl:value -of | |
| 1182 | select="$a ddr/n1:sta te" | |
| 1183 | /> | |
| 1184 | , | |
| 1185 | ||
| 1186 | <xsl:value -of | |
| 1187 | select="$a ddr/n1:pos talCode" | |
| 1188 | /> | |
| 1189 | ||
| 1190 | </xsl:if> | |
| 1191 | ||
| 1192 | </xsl:temp late> | |
| 1193 | ||
| 1194 | ||
| 1195 | <xsl:templ ate | |
| 1196 | name="getA ddress" | |
| 1197 | > | |
| 1198 | ||
| 1199 | <xsl:param | |
| 1200 | name="addr " | |
| 1201 | /> | |
| 1202 | ||
| 1203 | <xsl:if | |
| 1204 | test="$add r/n1:stree tAddressLi ne != ' '" | |
| 1205 | > | |
| 1206 | ||
| 1207 | <xsl:for-e ach | |
| 1208 | select="$a ddr/n1:str eetAddress Line" | |
| 1209 | > | |
| 1210 | ||
| 1211 | <br /> | |
| 1212 | ||
| 1213 | <xsl:if | |
| 1214 | test="stri ng-length( $addr/n1:s treetAddre ssLine)>0" | |
| 1215 | > | |
| 1216 | ||
| 1217 | <xsl:value -of | |
| 1218 | select="." | |
| 1219 | /> | |
| 1220 | ||
| 1221 | </xsl:if> | |
| 1222 | ||
| 1223 | </xsl:for- each> | |
| 1224 | ||
| 1225 | <br /> | |
| 1226 | ||
| 1227 | <xsl:value -of | |
| 1228 | select="$a ddr/n1:cit y" | |
| 1229 | /> | |
| 1230 | , | |
| 1231 | ||
| 1232 | <xsl:value -of | |
| 1233 | select="$a ddr/n1:sta te" | |
| 1234 | /> | |
| 1235 | , | |
| 1236 | ||
| 1237 | <xsl:value -of | |
| 1238 | select="$a ddr/n1:pos talCode" | |
| 1239 | /> | |
| 1240 | ||
| 1241 | </xsl:if> | |
| 1242 | ||
| 1243 | </xsl:temp late> | |
| 1244 | ||
| 1245 | ||
| 1246 | <xsl:templ ate | |
| 1247 | name="getT elecom" | |
| 1248 | > | |
| 1249 | ||
| 1250 | <xsl:param | |
| 1251 | name="tele com" | |
| 1252 | /> | |
| 1253 | ||
| 1254 | <br /> | |
| 1255 | ||
| 1256 | <xsl:if | |
| 1257 | test="stri ng-length( $telecom/@ value)>0" | |
| 1258 | > | |
| 1259 | ||
| 1260 | <xsl:value -of | |
| 1261 | select="$t elecom/@va lue" | |
| 1262 | /> | |
| 1263 | ||
| 1264 | <xsl:choos e> | |
| 1265 | ||
| 1266 | <xsl:when | |
| 1267 | test="./@u se='HP' " | |
| 1268 | > | |
| 1269 | ||
| 1270 | <b> | |
| 1271 | ||
| 1272 | <xsl:text> | |
| 1273 | Home | |
| 1274 | </xsl:text > | |
| 1275 | ||
| 1276 | </b> | |
| 1277 | ||
| 1278 | </xsl:when > | |
| 1279 | ||
| 1280 | <xsl:when | |
| 1281 | test="./@u se='WP' " | |
| 1282 | > | |
| 1283 | ||
| 1284 | <b> | |
| 1285 | ||
| 1286 | <xsl:text> | |
| 1287 | Work | |
| 1288 | </xsl:text > | |
| 1289 | ||
| 1290 | </b> | |
| 1291 | ||
| 1292 | </xsl:when > | |
| 1293 | ||
| 1294 | <xsl:when | |
| 1295 | test="./@u se='HV' " | |
| 1296 | > | |
| 1297 | ||
| 1298 | <b> | |
| 1299 | ||
| 1300 | <xsl:text> | |
| 1301 | Vacation | |
| 1302 | </xsl:text > | |
| 1303 | ||
| 1304 | </b> | |
| 1305 | ||
| 1306 | </xsl:when > | |
| 1307 | ||
| 1308 | <xsl:when | |
| 1309 | test="./@u se='MC' " | |
| 1310 | > | |
| 1311 | ||
| 1312 | <b> | |
| 1313 | ||
| 1314 | <xsl:text> | |
| 1315 | Mobile | |
| 1316 | </xsl:text > | |
| 1317 | ||
| 1318 | </b> | |
| 1319 | ||
| 1320 | </xsl:when > | |
| 1321 | ||
| 1322 | <xsl:other wise> | |
| 1323 | ||
| 1324 | <b> | |
| 1325 | ||
| 1326 | <xsl:text> | |
| 1327 | </xsl:text > | |
| 1328 | ||
| 1329 | </b> | |
| 1330 | ||
| 1331 | </xsl:othe rwise> | |
| 1332 | ||
| 1333 | </xsl:choo se> | |
| 1334 | ||
| 1335 | </xsl:if> | |
| 1336 | ||
| 1337 | </xsl:temp late> | |
| 1338 | ||
| 1339 | ||
| 1340 | <!-- Get a Name --> | |
| 1341 | ||
| 1342 | <xsl:templ ate | |
| 1343 | name="getN ame" | |
| 1344 | > | |
| 1345 | ||
| 1346 | <xsl:param | |
| 1347 | name="name " | |
| 1348 | /> | |
| 1349 | ||
| 1350 | <xsl:choos e> | |
| 1351 | ||
| 1352 | <xsl:when | |
| 1353 | test="stri ng-length( $name/n1:f amily)=0" | |
| 1354 | > | |
| 1355 | ||
| 1356 | </xsl:when > | |
| 1357 | ||
| 1358 | <xsl:when | |
| 1359 | test="$nam e/n1:famil y" | |
| 1360 | > | |
| 1361 | ||
| 1362 | <xsl:for-e ach | |
| 1363 | select="$n ame/n1:giv en" | |
| 1364 | > | |
| 1365 | ||
| 1366 | <xsl:text> | |
| 1367 | ||
| 1368 | </xsl:text > | |
| 1369 | ||
| 1370 | <xsl:value -of | |
| 1371 | select="." | |
| 1372 | /> | |
| 1373 | ||
| 1374 | </xsl:for- each> | |
| 1375 | ||
| 1376 | <xsl:text> | |
| 1377 | ||
| 1378 | </xsl:text > | |
| 1379 | ||
| 1380 | <xsl:if | |
| 1381 | test="stri ng-length( $name/n1:f amily)>0" | |
| 1382 | > | |
| 1383 | ||
| 1384 | <xsl:value -of | |
| 1385 | select="$n ame/n1:fam ily" | |
| 1386 | /> | |
| 1387 | ||
| 1388 | </xsl:if> | |
| 1389 | ||
| 1390 | <xsl:text> | |
| 1391 | ||
| 1392 | </xsl:text > | |
| 1393 | ||
| 1394 | <xsl:if | |
| 1395 | test="stri ng-length( $name/n1:m iddle)>0" | |
| 1396 | > | |
| 1397 | ||
| 1398 | <xsl:value -of | |
| 1399 | select="$n ame/n1:mid dle" | |
| 1400 | /> | |
| 1401 | ||
| 1402 | </xsl:if> | |
| 1403 | ||
| 1404 | <xsl:text> | |
| 1405 | ||
| 1406 | </xsl:text > | |
| 1407 | ||
| 1408 | <xsl:if | |
| 1409 | test="stri ng-length( $name/n1:s uffix)>0" | |
| 1410 | > | |
| 1411 | ||
| 1412 | <xsl:if | |
| 1413 | test="$nam e/n1:suffi x != ' '" | |
| 1414 | > | |
| 1415 | ||
| 1416 | <xsl:text> | |
| 1417 | , | |
| 1418 | </xsl:text > | |
| 1419 | ||
| 1420 | <xsl:value -of | |
| 1421 | select="$n ame/n1:suf fix" | |
| 1422 | /> | |
| 1423 | ||
| 1424 | </xsl:if> | |
| 1425 | ||
| 1426 | </xsl:if> | |
| 1427 | ||
| 1428 | </xsl:when > | |
| 1429 | ||
| 1430 | <xsl:other wise> | |
| 1431 | ||
| 1432 | <xsl:value -of | |
| 1433 | select="$n ame" | |
| 1434 | /> | |
| 1435 | ||
| 1436 | </xsl:othe rwise> | |
| 1437 | ||
| 1438 | </xsl:choo se> | |
| 1439 | ||
| 1440 | </xsl:temp late> | |
| 1441 | ||
| 1442 | ||
| 1443 | <!-- Get A uthor --> | |
| 1444 | ||
| 1445 | <xsl:templ ate | |
| 1446 | name="getA uthor" | |
| 1447 | > | |
| 1448 | ||
| 1449 | <xsl:varia ble | |
| 1450 | name="auth or" | |
| 1451 | /> | |
| 1452 | ||
| 1453 | <xsl:call- template | |
| 1454 | name="getN ame" | |
| 1455 | > | |
| 1456 | ||
| 1457 | <xsl:with- param | |
| 1458 | name="name " | |
| 1459 | ||
| 1460 | select="n1 :author/n1 :assignedA uthor/n1:a ssignedPer son/n1:nam e" | |
| 1461 | /> | |
| 1462 | ||
| 1463 | </xsl:call -template> | |
| 1464 | ||
| 1465 | <xsl:choos e> | |
| 1466 | ||
| 1467 | <xsl:when | |
| 1468 | test="$aut hor" | |
| 1469 | > | |
| 1470 | ||
| 1471 | <xsl:value -of | |
| 1472 | ||
| 1473 | select="n1 :author/n1 :assignedA uthor/n1:a ssignedPer son/n1:nam e" | |
| 1474 | /> | |
| 1475 | ||
| 1476 | </xsl:when > | |
| 1477 | ||
| 1478 | </xsl:choo se> | |
| 1479 | ||
| 1480 | </xsl:temp late> | |
| 1481 | ||
| 1482 | ||
| 1483 | <!-- Struc turedBody --> | |
| 1484 | ||
| 1485 | ||
| 1486 | <!-- Compo nent/Secti on --> | |
| 1487 | ||
| 1488 | <xsl:templ ate | |
| 1489 | match="n1: component/ n1:section " | |
| 1490 | name="deta ilSection" | |
| 1491 | > | |
| 1492 | ||
| 1493 | <xsl:choos e> | |
| 1494 | ||
| 1495 | <xsl:when | |
| 1496 | test="n1:c ode[@code= $loincProb lemCode]" | |
| 1497 | > | |
| 1498 | ||
| 1499 | <!-- took out "and c ount(n1:te xt/n1:tabl e/n1:thead /n1:tr/n1: th)!=3" -- > | |
| 1500 | ||
| 1501 | <xsl:apply -templates | |
| 1502 | select="n1 :title" | |
| 1503 | /> | |
| 1504 | ||
| 1505 | <xsl:call- template | |
| 1506 | name="prob Comments" | |
| 1507 | > | |
| 1508 | ||
| 1509 | <xsl:with- param | |
| 1510 | select="." | |
| 1511 | name="sect ion" | |
| 1512 | /> | |
| 1513 | ||
| 1514 | </xsl:call -template> | |
| 1515 | ||
| 1516 | <xsl:call- template | |
| 1517 | name="prob lemDetails " | |
| 1518 | > | |
| 1519 | ||
| 1520 | <xsl:with- param | |
| 1521 | select="." | |
| 1522 | name="sect ion" | |
| 1523 | /> | |
| 1524 | ||
| 1525 | </xsl:call -template> | |
| 1526 | ||
| 1527 | </xsl:when > | |
| 1528 | ||
| 1529 | <xsl:when | |
| 1530 | test="n1:c ode[@code= $loincAlle rgyCode]" | |
| 1531 | > | |
| 1532 | ||
| 1533 | <xsl:apply -templates | |
| 1534 | select="n1 :title" | |
| 1535 | /> | |
| 1536 | ||
| 1537 | <xsl:call- template | |
| 1538 | name="alle rgyComment s" | |
| 1539 | > | |
| 1540 | ||
| 1541 | <xsl:with- param | |
| 1542 | select="." | |
| 1543 | name="sect ion" | |
| 1544 | /> | |
| 1545 | ||
| 1546 | </xsl:call -template> | |
| 1547 | ||
| 1548 | <xsl:call- template | |
| 1549 | name="alle rgyDetails " | |
| 1550 | > | |
| 1551 | ||
| 1552 | <xsl:with- param | |
| 1553 | select="." | |
| 1554 | name="sect ion" | |
| 1555 | /> | |
| 1556 | ||
| 1557 | </xsl:call -template> | |
| 1558 | ||
| 1559 | </xsl:when > | |
| 1560 | ||
| 1561 | <xsl:when | |
| 1562 | test="n1:c ode[@code= $loincMedC ode]" | |
| 1563 | > | |
| 1564 | ||
| 1565 | <xsl:apply -templates | |
| 1566 | select="n1 :title" | |
| 1567 | /> | |
| 1568 | ||
| 1569 | <xsl:call- template | |
| 1570 | name="medC omments" | |
| 1571 | > | |
| 1572 | ||
| 1573 | <xsl:with- param | |
| 1574 | select="." | |
| 1575 | name="sect ion" | |
| 1576 | /> | |
| 1577 | ||
| 1578 | </xsl:call -template> | |
| 1579 | ||
| 1580 | <xsl:call- template | |
| 1581 | name="medD etails" | |
| 1582 | > | |
| 1583 | ||
| 1584 | <xsl:with- param | |
| 1585 | select="." | |
| 1586 | name="sect ion" | |
| 1587 | /> | |
| 1588 | ||
| 1589 | </xsl:call -template> | |
| 1590 | ||
| 1591 | </xsl:when > | |
| 1592 | ||
| 1593 | <xsl:when | |
| 1594 | test="n1:c ode[@code= $loincEnco unterCode] " | |
| 1595 | > | |
| 1596 | ||
| 1597 | <xsl:apply -templates | |
| 1598 | select="n1 :title" | |
| 1599 | /> | |
| 1600 | ||
| 1601 | <xsl:call- template | |
| 1602 | name="enco unterDetai ls" | |
| 1603 | > | |
| 1604 | ||
| 1605 | <xsl:with- param | |
| 1606 | select="." | |
| 1607 | name="sect ion" | |
| 1608 | /> | |
| 1609 | ||
| 1610 | </xsl:call -template> | |
| 1611 | ||
| 1612 | </xsl:when > | |
| 1613 | ||
| 1614 | <xsl:when | |
| 1615 | test="n1:c ode[@code= $loincResu ltsCode]" | |
| 1616 | > | |
| 1617 | ||
| 1618 | <xsl:apply -templates | |
| 1619 | select="n1 :title" | |
| 1620 | /> | |
| 1621 | ||
| 1622 | <xsl:call- template | |
| 1623 | name="resu ltsComment s" | |
| 1624 | > | |
| 1625 | ||
| 1626 | <xsl:with- param | |
| 1627 | select="." | |
| 1628 | name="sect ion" | |
| 1629 | /> | |
| 1630 | ||
| 1631 | </xsl:call -template> | |
| 1632 | ||
| 1633 | <xsl:call- template | |
| 1634 | name="resu ltsDetails " | |
| 1635 | > | |
| 1636 | ||
| 1637 | <xsl:with- param | |
| 1638 | select="." | |
| 1639 | name="sect ion" | |
| 1640 | /> | |
| 1641 | ||
| 1642 | </xsl:call -template> | |
| 1643 | ||
| 1644 | </xsl:when > | |
| 1645 | ||
| 1646 | <xsl:when | |
| 1647 | test="n1:c ode[@code= $loincProc eduresCode ]" | |
| 1648 | > | |
| 1649 | ||
| 1650 | <xsl:apply -templates | |
| 1651 | select="n1 :title" | |
| 1652 | /> | |
| 1653 | ||
| 1654 | <xsl:call- template | |
| 1655 | name="proc eduresDeta ils" | |
| 1656 | > | |
| 1657 | ||
| 1658 | <xsl:with- param | |
| 1659 | select="." | |
| 1660 | name="sect ion" | |
| 1661 | /> | |
| 1662 | ||
| 1663 | </xsl:call -template> | |
| 1664 | ||
| 1665 | </xsl:when > | |
| 1666 | ||
| 1667 | <xsl:when | |
| 1668 | test="n1:c ode[@code= $loincImmu nizationsC ode]" | |
| 1669 | > | |
| 1670 | ||
| 1671 | <xsl:apply -templates | |
| 1672 | select="n1 :title" | |
| 1673 | /> | |
| 1674 | ||
| 1675 | <xsl:call- template | |
| 1676 | name="immu nizationsD etails" | |
| 1677 | > | |
| 1678 | ||
| 1679 | <xsl:with- param | |
| 1680 | select="." | |
| 1681 | name="sect ion" | |
| 1682 | /> | |
| 1683 | ||
| 1684 | </xsl:call -template> | |
| 1685 | ||
| 1686 | </xsl:when > | |
| 1687 | ||
| 1688 | <xsl:when | |
| 1689 | test="n1:c ode[@code= $loincVita lsCode]" | |
| 1690 | > | |
| 1691 | ||
| 1692 | <xsl:apply -templates | |
| 1693 | select="n1 :title" | |
| 1694 | /> | |
| 1695 | ||
| 1696 | <xsl:call- template | |
| 1697 | name="vita lsDetails" | |
| 1698 | > | |
| 1699 | ||
| 1700 | <xsl:with- param | |
| 1701 | select="." | |
| 1702 | name="sect ion" | |
| 1703 | /> | |
| 1704 | ||
| 1705 | </xsl:call -template> | |
| 1706 | ||
| 1707 | </xsl:when > | |
| 1708 | ||
| 1709 | <xsl:other wise> | |
| 1710 | ||
| 1711 | <!-- tempo rary hold place so t hat unsupp orted modu les not di splayed -- > | |
| 1712 | ||
| 1713 | <xsl:text /> | |
| 1714 | ||
| 1715 | </xsl:othe rwise> | |
| 1716 | ||
| 1717 | </xsl:choo se> | |
| 1718 | ||
| 1719 | <xsl:apply -templates | |
| 1720 | select="n1 :component /n1:sectio n" | |
| 1721 | /> | |
| 1722 | ||
| 1723 | </xsl:temp late> | |
| 1724 | ||
| 1725 | ||
| 1726 | ||
| 1727 | ||
| 1728 | ||
| 1729 | ||
| 1730 | ||
| 1731 | ||
| 1732 | <!-- Encou nter Detai l Section --> | |
| 1733 | ||
| 1734 | <xsl:templ ate | |
| 1735 | name="enco unterDetai ls" | |
| 1736 | > | |
| 1737 | ||
| 1738 | <xsl:param | |
| 1739 | name="sect ion" | |
| 1740 | /> | |
| 1741 | ||
| 1742 | <table | |
| 1743 | border="1" | |
| 1744 | style="fon t-size:14p x;" | |
| 1745 | > | |
| 1746 | ||
| 1747 | <thead> | |
| 1748 | ||
| 1749 | <tr> | |
| 1750 | ||
| 1751 | <th | |
| 1752 | class="fir st" | |
| 1753 | > | |
| 1754 | ||
| 1755 | <xsl:text> | |
| 1756 | Date/Time | |
| 1757 | </xsl:text > | |
| 1758 | ||
| 1759 | <xsl:if | |
| 1760 | test="n1:e ntry/n1:en counter" | |
| 1761 | > | |
| 1762 | ||
| 1763 | <xsl:text> | |
| 1764 | - Count ( | |
| 1765 | </xsl:text > | |
| 1766 | ||
| 1767 | <xsl:value -of | |
| 1768 | select="co unt(n1:ent ry/n1:enco unter)" | |
| 1769 | /> | |
| 1770 | ||
| 1771 | <xsl:text> | |
| 1772 | ) | |
| 1773 | </xsl:text > | |
| 1774 | ||
| 1775 | </xsl:if> | |
| 1776 | ||
| 1777 | </th> | |
| 1778 | ||
| 1779 | <th | |
| 1780 | class="fir st" | |
| 1781 | > | |
| 1782 | Encounter Type | |
| 1783 | </th> | |
| 1784 | ||
| 1785 | <th | |
| 1786 | class="fir st" | |
| 1787 | > | |
| 1788 | Encounter Descriptio n | |
| 1789 | </th> | |
| 1790 | ||
| 1791 | <th | |
| 1792 | class="fir st" | |
| 1793 | > | |
| 1794 | Reason | |
| 1795 | </th> | |
| 1796 | ||
| 1797 | <th | |
| 1798 | class="fir st" | |
| 1799 | > | |
| 1800 | Arrival | |
| 1801 | </th> | |
| 1802 | ||
| 1803 | <th | |
| 1804 | class="fir st" | |
| 1805 | > | |
| 1806 | Departure | |
| 1807 | </th> | |
| 1808 | ||
| 1809 | <th | |
| 1810 | class="fir st" | |
| 1811 | > | |
| 1812 | Provider | |
| 1813 | </th> | |
| 1814 | ||
| 1815 | <th | |
| 1816 | class="fir st" | |
| 1817 | > | |
| 1818 | Source | |
| 1819 | </th> | |
| 1820 | ||
| 1821 | </tr> | |
| 1822 | ||
| 1823 | </thead> | |
| 1824 | ||
| 1825 | <tbody> | |
| 1826 | ||
| 1827 | <xsl:apply -templates | |
| 1828 | select="$s ection/n1: entry" | |
| 1829 | > | |
| 1830 | ||
| 1831 | <xsl:sort | |
| 1832 | select="n1 :encounter /n1:effect iveTime/n1 :low/@valu e" | |
| 1833 | ||
| 1834 | order="des cending" | |
| 1835 | /> | |
| 1836 | ||
| 1837 | </xsl:appl y-template s> | |
| 1838 | ||
| 1839 | </tbody> | |
| 1840 | ||
| 1841 | </table> | |
| 1842 | ||
| 1843 | <br> | |
| 1844 | </br> | |
| 1845 | ||
| 1846 | <br> | |
| 1847 | </br> | |
| 1848 | ||
| 1849 | </xsl:temp late> | |
| 1850 | ||
| 1851 | ||
| 1852 | <!-- Meds Detail Sec tion --> | |
| 1853 | ||
| 1854 | <xsl:templ ate | |
| 1855 | name="medD etails" | |
| 1856 | > | |
| 1857 | ||
| 1858 | <xsl:param | |
| 1859 | name="sect ion" | |
| 1860 | /> | |
| 1861 | ||
| 1862 | <table | |
| 1863 | border="1" | |
| 1864 | style="fon t-size:14p x" | |
| 1865 | > | |
| 1866 | ||
| 1867 | <thead> | |
| 1868 | ||
| 1869 | <tr> | |
| 1870 | ||
| 1871 | <th | |
| 1872 | class="fir st" | |
| 1873 | > | |
| 1874 | ||
| 1875 | <xsl:text> | |
| 1876 | Medication s | |
| 1877 | </xsl:text > | |
| 1878 | ||
| 1879 | <xsl:if | |
| 1880 | test="n1:e ntry/n1:su bstanceAdm inistratio n" | |
| 1881 | > | |
| 1882 | ||
| 1883 | <xsl:text> | |
| 1884 | - Count ( | |
| 1885 | </xsl:text > | |
| 1886 | ||
| 1887 | <xsl:value -of | |
| 1888 | select="co unt(n1:ent ry/n1:subs tanceAdmin istration) " | |
| 1889 | /> | |
| 1890 | ||
| 1891 | <xsl:text> | |
| 1892 | ) | |
| 1893 | </xsl:text > | |
| 1894 | ||
| 1895 | </xsl:if> | |
| 1896 | ||
| 1897 | </th> | |
| 1898 | ||
| 1899 | <!--<th cl ass="first ">Route</t h> --> | |
| 1900 | ||
| 1901 | <!--<th cl ass="first ">Interval </th> --> | |
| 1902 | ||
| 1903 | <th | |
| 1904 | class="fir st" | |
| 1905 | > | |
| 1906 | Status | |
| 1907 | </th> | |
| 1908 | ||
| 1909 | <th | |
| 1910 | class="fir st" | |
| 1911 | > | |
| 1912 | Quantity | |
| 1913 | </th> | |
| 1914 | ||
| 1915 | <th | |
| 1916 | class="fir st" | |
| 1917 | > | |
| 1918 | Order Expi ration | |
| 1919 | </th> | |
| 1920 | ||
| 1921 | <th | |
| 1922 | class="fir st" | |
| 1923 | > | |
| 1924 | Provider | |
| 1925 | </th> | |
| 1926 | ||
| 1927 | <th | |
| 1928 | class="fir st" | |
| 1929 | > | |
| 1930 | Prescripti on # | |
| 1931 | </th> | |
| 1932 | ||
| 1933 | <th | |
| 1934 | class="fir st" | |
| 1935 | > | |
| 1936 | Dispense D ate | |
| 1937 | </th> | |
| 1938 | ||
| 1939 | <th | |
| 1940 | class="fir st" | |
| 1941 | > | |
| 1942 | Sig | |
| 1943 | </th> | |
| 1944 | ||
| 1945 | <th | |
| 1946 | class="fir st" | |
| 1947 | > | |
| 1948 | Source | |
| 1949 | </th> | |
| 1950 | ||
| 1951 | </tr> | |
| 1952 | ||
| 1953 | </thead> | |
| 1954 | ||
| 1955 | <tbody> | |
| 1956 | ||
| 1957 | <xsl:choos e> | |
| 1958 | ||
| 1959 | <xsl:when | |
| 1960 | ||
| 1961 | test="$sec tion/n1:en try/n1:sub stanceAdmi nistration /n1:effect iveTime/n1 :high" | |
| 1962 | > | |
| 1963 | ||
| 1964 | <xsl:apply -templates | |
| 1965 | select="$s ection/n1: entry" | |
| 1966 | > | |
| 1967 | ||
| 1968 | <xsl:sort | |
| 1969 | ||
| 1970 | select="$s ection/n1: entry/n1:s ubstanceAd ministrati on/n1:effe ctiveTime/ n1:high/@v alue" | |
| 1971 | /> | |
| 1972 | ||
| 1973 | </xsl:appl y-template s> | |
| 1974 | ||
| 1975 | </xsl:when > | |
| 1976 | ||
| 1977 | <xsl:other wise> | |
| 1978 | ||
| 1979 | <xsl:apply -templates | |
| 1980 | select="$s ection/n1: entry" | |
| 1981 | > | |
| 1982 | ||
| 1983 | <xsl:sort | |
| 1984 | ||
| 1985 | select="$s ection/n1: entry/n1:s ubstanceAd ministrati on/n1:entr yRelations hip/n1:sup ply/n1:eff ectiveTime /@value" | |
| 1986 | /> | |
| 1987 | ||
| 1988 | </xsl:appl y-template s> | |
| 1989 | ||
| 1990 | </xsl:othe rwise> | |
| 1991 | ||
| 1992 | </xsl:choo se> | |
| 1993 | ||
| 1994 | </tbody> | |
| 1995 | ||
| 1996 | </table> | |
| 1997 | ||
| 1998 | <br> | |
| 1999 | </br> | |
| 2000 | ||
| 2001 | <br> | |
| 2002 | </br> | |
| 2003 | ||
| 2004 | </xsl:temp late> | |
| 2005 | ||
| 2006 | ||
| 2007 | <!-- Probl em Detail Section -- > | |
| 2008 | ||
| 2009 | <xsl:templ ate | |
| 2010 | name="prob lemDetails " | |
| 2011 | > | |
| 2012 | ||
| 2013 | <xsl:param | |
| 2014 | name="sect ion" | |
| 2015 | /> | |
| 2016 | ||
| 2017 | <table | |
| 2018 | border="1" | |
| 2019 | style="fon t-size:14p x" | |
| 2020 | > | |
| 2021 | ||
| 2022 | <thead> | |
| 2023 | ||
| 2024 | <tr> | |
| 2025 | ||
| 2026 | <th | |
| 2027 | class="fir st" | |
| 2028 | > | |
| 2029 | ||
| 2030 | <xsl:text> | |
| 2031 | Problems | |
| 2032 | </xsl:text > | |
| 2033 | ||
| 2034 | <xsl:if | |
| 2035 | ||
| 2036 | test="n1:e ntry/n1:ac t/n1:entry Relationsh ip[@typeCo de='SUBJ'] /n1:observ ation" | |
| 2037 | > | |
| 2038 | ||
| 2039 | <xsl:text> | |
| 2040 | - Count ( | |
| 2041 | </xsl:text > | |
| 2042 | ||
| 2043 | <xsl:value -of | |
| 2044 | ||
| 2045 | select="co unt(n1:ent ry/n1:act/ n1:entryRe lationship [@typeCode ='SUBJ']/n 1:observat ion)" | |
| 2046 | /> | |
| 2047 | ||
| 2048 | <xsl:text> | |
| 2049 | ) | |
| 2050 | </xsl:text > | |
| 2051 | ||
| 2052 | </xsl:if> | |
| 2053 | ||
| 2054 | </th> | |
| 2055 | ||
| 2056 | <th | |
| 2057 | class="fir st" | |
| 2058 | > | |
| 2059 | Status | |
| 2060 | </th> | |
| 2061 | ||
| 2062 | <th | |
| 2063 | class="fir st" | |
| 2064 | > | |
| 2065 | Problem Co de | |
| 2066 | </th> | |
| 2067 | ||
| 2068 | <th | |
| 2069 | class="fir st" | |
| 2070 | > | |
| 2071 | Date of On set | |
| 2072 | </th> | |
| 2073 | ||
| 2074 | <th | |
| 2075 | class="fir st" | |
| 2076 | > | |
| 2077 | Provider | |
| 2078 | </th> | |
| 2079 | ||
| 2080 | <th | |
| 2081 | class="fir st" | |
| 2082 | > | |
| 2083 | Source | |
| 2084 | </th> | |
| 2085 | ||
| 2086 | </tr> | |
| 2087 | ||
| 2088 | ||
| 2089 | </thead> | |
| 2090 | ||
| 2091 | <tbody> | |
| 2092 | ||
| 2093 | <xsl:choos e> | |
| 2094 | ||
| 2095 | <xsl:when | |
| 2096 | ||
| 2097 | test="$sec tion/n1:en try/n1:act /n1:entryR elationshi p/n1:obser vation/n1: effectiveT ime/n1:low " | |
| 2098 | > | |
| 2099 | ||
| 2100 | <xsl:apply -templates | |
| 2101 | select="$s ection/n1: entry" | |
| 2102 | > | |
| 2103 | ||
| 2104 | <xsl:sort | |
| 2105 | ||
| 2106 | select="n1 :act/n1:en tryRelatio nship/n1:o bservation /n1:effect iveTime/n1 :low/@valu e" | |
| 2107 | ||
| 2108 | order="des cending" | |
| 2109 | /> | |
| 2110 | ||
| 2111 | </xsl:appl y-template s> | |
| 2112 | ||
| 2113 | </xsl:when > | |
| 2114 | ||
| 2115 | <xsl:other wise> | |
| 2116 | ||
| 2117 | <xsl:apply -templates | |
| 2118 | select="$s ection/n1: entry" | |
| 2119 | > | |
| 2120 | ||
| 2121 | <xsl:sort | |
| 2122 | select="n1 :act/n1:ef fectiveTim e/n1:low/@ value" | |
| 2123 | ||
| 2124 | order="des cending" | |
| 2125 | /> | |
| 2126 | ||
| 2127 | </xsl:appl y-template s> | |
| 2128 | ||
| 2129 | </xsl:othe rwise> | |
| 2130 | ||
| 2131 | </xsl:choo se> | |
| 2132 | ||
| 2133 | </tbody> | |
| 2134 | ||
| 2135 | </table> | |
| 2136 | ||
| 2137 | <br> | |
| 2138 | </br> | |
| 2139 | ||
| 2140 | <br> | |
| 2141 | </br> | |
| 2142 | ||
| 2143 | </xsl:temp late> | |
| 2144 | ||
| 2145 | ||
| 2146 | <!-- Aller gy Detail Section -- > | |
| 2147 | ||
| 2148 | <xsl:templ ate | |
| 2149 | name="alle rgyDetails " | |
| 2150 | > | |
| 2151 | ||
| 2152 | <xsl:param | |
| 2153 | name="sect ion" | |
| 2154 | /> | |
| 2155 | ||
| 2156 | <table | |
| 2157 | border="1" | |
| 2158 | style="fon t-size:14p x" | |
| 2159 | > | |
| 2160 | ||
| 2161 | <thead> | |
| 2162 | ||
| 2163 | <tr> | |
| 2164 | ||
| 2165 | <th | |
| 2166 | class="fir st" | |
| 2167 | > | |
| 2168 | ||
| 2169 | <xsl:text> | |
| 2170 | Allergens | |
| 2171 | </xsl:text > | |
| 2172 | ||
| 2173 | <xsl:if | |
| 2174 | ||
| 2175 | test="n1:e ntry/n1:ac t/n1:entry Relationsh ip[@typeCo de='SUBJ'] /n1:observ ation" | |
| 2176 | > | |
| 2177 | ||
| 2178 | <xsl:text> | |
| 2179 | - Count ( | |
| 2180 | </xsl:text > | |
| 2181 | ||
| 2182 | <xsl:value -of | |
| 2183 | ||
| 2184 | select="co unt(n1:ent ry/n1:act/ n1:entryRe lationship [@typeCode ='SUBJ']/n 1:observat ion)" | |
| 2185 | /> | |
| 2186 | ||
| 2187 | <xsl:text> | |
| 2188 | ) | |
| 2189 | </xsl:text > | |
| 2190 | ||
| 2191 | </xsl:if> | |
| 2192 | ||
| 2193 | </th> | |
| 2194 | ||
| 2195 | <th | |
| 2196 | class="fir st" | |
| 2197 | > | |
| 2198 | Verificati on Date | |
| 2199 | </th> | |
| 2200 | ||
| 2201 | <th | |
| 2202 | class="fir st" | |
| 2203 | > | |
| 2204 | Event Type | |
| 2205 | </th> | |
| 2206 | ||
| 2207 | <!--<th cl ass="first ">Product Free-Text< /th> --> | |
| 2208 | ||
| 2209 | <!--<th cl ass="first ">Product Coded</th> --> | |
| 2210 | ||
| 2211 | <th | |
| 2212 | class="fir st" | |
| 2213 | > | |
| 2214 | Reaction | |
| 2215 | </th> | |
| 2216 | ||
| 2217 | <!--<th cl ass="first ">Reaction Free-Text </th> --> | |
| 2218 | ||
| 2219 | <!--<th cl ass="first ">Reaction Coded</th > --> | |
| 2220 | ||
| 2221 | <th | |
| 2222 | class="fir st" | |
| 2223 | > | |
| 2224 | Severity | |
| 2225 | </th> | |
| 2226 | ||
| 2227 | <!--<th cl ass="first ">Severity Free-Text </th> --> | |
| 2228 | ||
| 2229 | <!--<th cl ass="first ">Severity Coded</th > --> | |
| 2230 | ||
| 2231 | <th | |
| 2232 | class="fir st" | |
| 2233 | > | |
| 2234 | Source | |
| 2235 | </th> | |
| 2236 | ||
| 2237 | </tr> | |
| 2238 | ||
| 2239 | </thead> | |
| 2240 | ||
| 2241 | <tbody> | |
| 2242 | ||
| 2243 | <xsl:choos e> | |
| 2244 | ||
| 2245 | <xsl:when | |
| 2246 | ||
| 2247 | test="$sec tion/n1:en try/n1:act /n1:entryR elationshi p/n1:obser vation/n1: effectiveT ime/n1:low " | |
| 2248 | > | |
| 2249 | ||
| 2250 | <xsl:apply -templates | |
| 2251 | select="$s ection/n1: entry" | |
| 2252 | > | |
| 2253 | ||
| 2254 | <xsl:sort | |
| 2255 | ||
| 2256 | select="n1 :act/n1:en tryRelatio nship/n1:o bservation /n1:effect iveTime/n1 :low/@valu e" | |
| 2257 | ||
| 2258 | order="des cending" | |
| 2259 | /> | |
| 2260 | ||
| 2261 | </xsl:appl y-template s> | |
| 2262 | ||
| 2263 | </xsl:when > | |
| 2264 | ||
| 2265 | <xsl:other wise> | |
| 2266 | ||
| 2267 | <xsl:apply -templates | |
| 2268 | select="$s ection/n1: entry" | |
| 2269 | > | |
| 2270 | ||
| 2271 | <xsl:sort | |
| 2272 | select="n1 :act/n1:ef fectiveTim e/n1:low/@ value" | |
| 2273 | ||
| 2274 | order="des cending" | |
| 2275 | /> | |
| 2276 | ||
| 2277 | </xsl:appl y-template s> | |
| 2278 | ||
| 2279 | </xsl:othe rwise> | |
| 2280 | ||
| 2281 | </xsl:choo se> | |
| 2282 | ||
| 2283 | </tbody> | |
| 2284 | ||
| 2285 | </table> | |
| 2286 | ||
| 2287 | <br> | |
| 2288 | </br> | |
| 2289 | ||
| 2290 | <br> | |
| 2291 | </br> | |
| 2292 | ||
| 2293 | </xsl:temp late> | |
| 2294 | ||
| 2295 | ||
| 2296 | <!-- (Lab) Results De tail Secti on --> | |
| 2297 | ||
| 2298 | <xsl:templ ate | |
| 2299 | name="resu ltsDetails " | |
| 2300 | > | |
| 2301 | ||
| 2302 | <xsl:param | |
| 2303 | name="sect ion" | |
| 2304 | /> | |
| 2305 | ||
| 2306 | <table | |
| 2307 | border="1" | |
| 2308 | style="fon t-size:14p x" | |
| 2309 | > | |
| 2310 | ||
| 2311 | <thead> | |
| 2312 | ||
| 2313 | <tr> | |
| 2314 | ||
| 2315 | <th | |
| 2316 | class="fir st" | |
| 2317 | > | |
| 2318 | ||
| 2319 | <xsl:text> | |
| 2320 | Date/Time | |
| 2321 | </xsl:text > | |
| 2322 | ||
| 2323 | <xsl:if | |
| 2324 | test="n1:e ntry/n1:ob servation" | |
| 2325 | > | |
| 2326 | ||
| 2327 | <xsl:text> | |
| 2328 | - Count ( | |
| 2329 | </xsl:text > | |
| 2330 | ||
| 2331 | <xsl:value -of | |
| 2332 | select="co unt(n1:ent ry/n1:obse rvation)" | |
| 2333 | /> | |
| 2334 | ||
| 2335 | <xsl:text> | |
| 2336 | ) | |
| 2337 | </xsl:text > | |
| 2338 | ||
| 2339 | </xsl:if> | |
| 2340 | ||
| 2341 | </th> | |
| 2342 | ||
| 2343 | <th | |
| 2344 | class="fir st" | |
| 2345 | > | |
| 2346 | Result Typ e | |
| 2347 | </th> | |
| 2348 | ||
| 2349 | <th | |
| 2350 | class="fir st" | |
| 2351 | > | |
| 2352 | Source | |
| 2353 | </th> | |
| 2354 | ||
| 2355 | <th | |
| 2356 | class="fir st" | |
| 2357 | > | |
| 2358 | Result - U nit | |
| 2359 | </th> | |
| 2360 | ||
| 2361 | <th | |
| 2362 | class="fir st" | |
| 2363 | > | |
| 2364 | Interpreta tion | |
| 2365 | </th> | |
| 2366 | ||
| 2367 | <th | |
| 2368 | class="fir st" | |
| 2369 | > | |
| 2370 | Reference Range | |
| 2371 | </th> | |
| 2372 | ||
| 2373 | <th | |
| 2374 | class="fir st" | |
| 2375 | > | |
| 2376 | Status | |
| 2377 | </th> | |
| 2378 | ||
| 2379 | <th | |
| 2380 | class="fir st" | |
| 2381 | > | |
| 2382 | Comment | |
| 2383 | </th> | |
| 2384 | ||
| 2385 | </tr> | |
| 2386 | ||
| 2387 | </thead> | |
| 2388 | ||
| 2389 | <tbody> | |
| 2390 | ||
| 2391 | <xsl:choos e> | |
| 2392 | ||
| 2393 | <xsl:when | |
| 2394 | test="n1:o bservation /n1:effect iveTime/@v alue" | |
| 2395 | > | |
| 2396 | ||
| 2397 | <xsl:apply -templates | |
| 2398 | select="$s ection/n1: entry" | |
| 2399 | > | |
| 2400 | ||
| 2401 | <xsl:sort | |
| 2402 | select="n1 :observati on/n1:effe ctiveTime/ @value" | |
| 2403 | ||
| 2404 | order="des cending" | |
| 2405 | /> | |
| 2406 | ||
| 2407 | </xsl:appl y-template s> | |
| 2408 | ||
| 2409 | </xsl:when > | |
| 2410 | ||
| 2411 | <xsl:other wise> | |
| 2412 | ||
| 2413 | <xsl:apply -templates | |
| 2414 | select="$s ection/n1: entry" | |
| 2415 | > | |
| 2416 | ||
| 2417 | <xsl:sort | |
| 2418 | ||
| 2419 | select="n1 :organizer /n1:compon ent/n1:obs ervation/n 1:effectiv eTime/@val ue" | |
| 2420 | ||
| 2421 | order="des cending" | |
| 2422 | /> | |
| 2423 | ||
| 2424 | </xsl:appl y-template s> | |
| 2425 | ||
| 2426 | </xsl:othe rwise> | |
| 2427 | ||
| 2428 | </xsl:choo se> | |
| 2429 | ||
| 2430 | </tbody> | |
| 2431 | ||
| 2432 | </table> | |
| 2433 | ||
| 2434 | <br> | |
| 2435 | </br> | |
| 2436 | ||
| 2437 | <br> | |
| 2438 | </br> | |
| 2439 | ||
| 2440 | </xsl:temp late> | |
| 2441 | ||
| 2442 | ||
| 2443 | <!-- Proce dures Deta il Section --> | |
| 2444 | ||
| 2445 | <xsl:templ ate | |
| 2446 | name="proc eduresDeta ils" | |
| 2447 | > | |
| 2448 | ||
| 2449 | <xsl:param | |
| 2450 | name="sect ion" | |
| 2451 | /> | |
| 2452 | ||
| 2453 | <table | |
| 2454 | border="1" | |
| 2455 | style="fon t-size:14p x" | |
| 2456 | > | |
| 2457 | ||
| 2458 | <thead> | |
| 2459 | ||
| 2460 | <tr> | |
| 2461 | ||
| 2462 | <th | |
| 2463 | class="fir st" | |
| 2464 | > | |
| 2465 | ||
| 2466 | <xsl:text> | |
| 2467 | Date/Time | |
| 2468 | </xsl:text > | |
| 2469 | ||
| 2470 | <xsl:if | |
| 2471 | test="n1:e ntry/n1:pr ocedure/n1 :code/@cod e" | |
| 2472 | > | |
| 2473 | ||
| 2474 | <xsl:text> | |
| 2475 | - Count ( | |
| 2476 | </xsl:text > | |
| 2477 | ||
| 2478 | <xsl:value -of | |
| 2479 | select="co unt(n1:ent ry/n1:proc edure)" | |
| 2480 | /> | |
| 2481 | ||
| 2482 | <xsl:text> | |
| 2483 | ) | |
| 2484 | </xsl:text > | |
| 2485 | ||
| 2486 | </xsl:if> | |
| 2487 | ||
| 2488 | </th> | |
| 2489 | ||
| 2490 | <th | |
| 2491 | class="fir st" | |
| 2492 | > | |
| 2493 | Procedure Type | |
| 2494 | </th> | |
| 2495 | ||
| 2496 | <th | |
| 2497 | class="fir st" | |
| 2498 | > | |
| 2499 | Qualifiers | |
| 2500 | </th> | |
| 2501 | ||
| 2502 | <th | |
| 2503 | class="fir st" | |
| 2504 | > | |
| 2505 | Descriptio n | |
| 2506 | </th> | |
| 2507 | ||
| 2508 | <th | |
| 2509 | class="fir st" | |
| 2510 | > | |
| 2511 | Provider | |
| 2512 | </th> | |
| 2513 | ||
| 2514 | <th | |
| 2515 | class="fir st" | |
| 2516 | > | |
| 2517 | Source | |
| 2518 | </th> | |
| 2519 | ||
| 2520 | </tr> | |
| 2521 | ||
| 2522 | </thead> | |
| 2523 | ||
| 2524 | <tbody> | |
| 2525 | ||
| 2526 | <xsl:apply -templates | |
| 2527 | select="$s ection/n1: entry" | |
| 2528 | > | |
| 2529 | ||
| 2530 | <xsl:sort | |
| 2531 | select="n1 :procedure /n1:effect iveTime/@v alue" | |
| 2532 | ||
| 2533 | order="des cending" | |
| 2534 | /> | |
| 2535 | ||
| 2536 | </xsl:appl y-template s> | |
| 2537 | ||
| 2538 | </tbody> | |
| 2539 | ||
| 2540 | </table> | |
| 2541 | ||
| 2542 | <br> | |
| 2543 | </br> | |
| 2544 | ||
| 2545 | <br> | |
| 2546 | </br> | |
| 2547 | ||
| 2548 | </xsl:temp late> | |
| 2549 | ||
| 2550 | ||
| 2551 | <!-- Immun izations D etail Sect ion --> | |
| 2552 | ||
| 2553 | <xsl:templ ate | |
| 2554 | name="immu nizationsD etails" | |
| 2555 | > | |
| 2556 | ||
| 2557 | <xsl:param | |
| 2558 | name="sect ion" | |
| 2559 | /> | |
| 2560 | ||
| 2561 | <table | |
| 2562 | border="1" | |
| 2563 | style="fon t-size:14p x" | |
| 2564 | > | |
| 2565 | ||
| 2566 | <thead> | |
| 2567 | ||
| 2568 | <tr> | |
| 2569 | ||
| 2570 | <th | |
| 2571 | class="fir st" | |
| 2572 | > | |
| 2573 | Immunizati ons | |
| 2574 | </th> | |
| 2575 | ||
| 2576 | <th | |
| 2577 | class="fir st" | |
| 2578 | > | |
| 2579 | Series | |
| 2580 | </th> | |
| 2581 | ||
| 2582 | <th | |
| 2583 | class="fir st" | |
| 2584 | > | |
| 2585 | Date Issue d | |
| 2586 | </th> | |
| 2587 | ||
| 2588 | <th | |
| 2589 | class="fir st" | |
| 2590 | > | |
| 2591 | Reaction | |
| 2592 | </th> | |
| 2593 | ||
| 2594 | <th | |
| 2595 | class="fir st" | |
| 2596 | > | |
| 2597 | Comments | |
| 2598 | </th> | |
| 2599 | ||
| 2600 | </tr> | |
| 2601 | ||
| 2602 | </thead> | |
| 2603 | ||
| 2604 | <tbody> | |
| 2605 | ||
| 2606 | <xsl:apply -templates | |
| 2607 | select="$s ection/n1: entry" | |
| 2608 | > | |
| 2609 | ||
| 2610 | </xsl:appl y-template s> | |
| 2611 | ||
| 2612 | </tbody> | |
| 2613 | ||
| 2614 | </table> | |
| 2615 | ||
| 2616 | <br> | |
| 2617 | </br> | |
| 2618 | ||
| 2619 | <br> | |
| 2620 | </br> | |
| 2621 | ||
| 2622 | </xsl:temp late> | |
| 2623 | ||
| 2624 | ||
| 2625 | <!-- Vital s Detail S ection --> | |
| 2626 | ||
| 2627 | <xsl:templ ate | |
| 2628 | name="vita lsDetails" | |
| 2629 | > | |
| 2630 | ||
| 2631 | <xsl:param | |
| 2632 | name="sect ion" | |
| 2633 | /> | |
| 2634 | ||
| 2635 | <table | |
| 2636 | border="1" | |
| 2637 | style="fon t-size:14p x" | |
| 2638 | > | |
| 2639 | ||
| 2640 | <thead> | |
| 2641 | ||
| 2642 | <tr> | |
| 2643 | ||
| 2644 | <th | |
| 2645 | class="fir st" | |
| 2646 | > | |
| 2647 | Date | |
| 2648 | </th> | |
| 2649 | ||
| 2650 | <th | |
| 2651 | class="fir st" | |
| 2652 | > | |
| 2653 | TEMP | |
| 2654 | </th> | |
| 2655 | ||
| 2656 | <th | |
| 2657 | class="fir st" | |
| 2658 | > | |
| 2659 | PULSE | |
| 2660 | </th> | |
| 2661 | ||
| 2662 | <th | |
| 2663 | class="fir st" | |
| 2664 | > | |
| 2665 | RESP | |
| 2666 | </th> | |
| 2667 | ||
| 2668 | <th | |
| 2669 | class="fir st" | |
| 2670 | > | |
| 2671 | BP | |
| 2672 | </th> | |
| 2673 | ||
| 2674 | <th | |
| 2675 | class="fir st" | |
| 2676 | > | |
| 2677 | Ht | |
| 2678 | </th> | |
| 2679 | ||
| 2680 | <th | |
| 2681 | class="fir st" | |
| 2682 | > | |
| 2683 | Wt | |
| 2684 | </th> | |
| 2685 | ||
| 2686 | <th | |
| 2687 | class="fir st" | |
| 2688 | > | |
| 2689 | POx | |
| 2690 | </th> | |
| 2691 | ||
| 2692 | <th | |
| 2693 | class="fir st" | |
| 2694 | > | |
| 2695 | Source | |
| 2696 | </th> | |
| 2697 | ||
| 2698 | </tr> | |
| 2699 | ||
| 2700 | </thead> | |
| 2701 | ||
| 2702 | <tbody> | |
| 2703 | ||
| 2704 | <xsl:apply -templates | |
| 2705 | select="$s ection/n1: entry" | |
| 2706 | > | |
| 2707 | ||
| 2708 | </xsl:appl y-template s> | |
| 2709 | ||
| 2710 | </tbody> | |
| 2711 | ||
| 2712 | </table> | |
| 2713 | ||
| 2714 | <br> | |
| 2715 | </br> | |
| 2716 | ||
| 2717 | <br> | |
| 2718 | </br> | |
| 2719 | ||
| 2720 | </xsl:temp late> | |
| 2721 | ||
| 2722 | ||
| 2723 | <!-- entry processin g --> | |
| 2724 | ||
| 2725 | <xsl:templ ate | |
| 2726 | match="n1: entry" | |
| 2727 | > | |
| 2728 | ||
| 2729 | <xsl:varia ble | |
| 2730 | name="alle rgy-prob-R oot" | |
| 2731 | ||
| 2732 | select="n1 :act/n1:en tryRelatio nship/n1:o bservation /n1:templa teId/@root " | |
| 2733 | /> | |
| 2734 | ||
| 2735 | <xsl:varia ble | |
| 2736 | name="med- imm-Root" | |
| 2737 | ||
| 2738 | select="n1 :substance Administra tion/n1:te mplateId/@ root" | |
| 2739 | /> | |
| 2740 | ||
| 2741 | <xsl:varia ble | |
| 2742 | name="labs -Root" | |
| 2743 | select=".. /n1:templa teId/@root " | |
| 2744 | /> | |
| 2745 | ||
| 2746 | <xsl:choos e> | |
| 2747 | ||
| 2748 | <xsl:when | |
| 2749 | test="$all ergy-prob- Root='2.16 .840.1.113 883. IP '" | |
| 2750 | > | |
| 2751 | ||
| 2752 | <xsl:call- template | |
| 2753 | name="alle rgyRow" | |
| 2754 | > | |
| 2755 | ||
| 2756 | <xsl:with- param | |
| 2757 | name="row" | |
| 2758 | select="." | |
| 2759 | /> | |
| 2760 | ||
| 2761 | </xsl:call -template> | |
| 2762 | ||
| 2763 | </xsl:when > | |
| 2764 | ||
| 2765 | <xsl:when | |
| 2766 | test="$all ergy-prob- Root!='2.1 6.840.1.11 3883. IP '" | |
| 2767 | > | |
| 2768 | ||
| 2769 | <xsl:call- template | |
| 2770 | name="prob lemRow" | |
| 2771 | > | |
| 2772 | ||
| 2773 | <xsl:with- param | |
| 2774 | name="row" | |
| 2775 | select="." | |
| 2776 | /> | |
| 2777 | ||
| 2778 | </xsl:call -template> | |
| 2779 | ||
| 2780 | </xsl:when > | |
| 2781 | ||
| 2782 | <xsl:when | |
| 2783 | test="n1:e ncounter" | |
| 2784 | > | |
| 2785 | ||
| 2786 | <xsl:call- template | |
| 2787 | name="encR ow" | |
| 2788 | > | |
| 2789 | ||
| 2790 | <xsl:with- param | |
| 2791 | name="row" | |
| 2792 | select="." | |
| 2793 | /> | |
| 2794 | ||
| 2795 | </xsl:call -template> | |
| 2796 | ||
| 2797 | </xsl:when > | |
| 2798 | ||
| 2799 | <xsl:when | |
| 2800 | test="$med -imm-Root= '2.16.840. 1.113883.3 .88.11.83. 13'" | |
| 2801 | > | |
| 2802 | ||
| 2803 | <xsl:call- template | |
| 2804 | name="immu nizationsR ow" | |
| 2805 | > | |
| 2806 | ||
| 2807 | <xsl:with- param | |
| 2808 | name="row" | |
| 2809 | select="." | |
| 2810 | /> | |
| 2811 | ||
| 2812 | </xsl:call -template> | |
| 2813 | ||
| 2814 | </xsl:when > | |
| 2815 | ||
| 2816 | <xsl:when | |
| 2817 | test="$med -imm-Root! ='2.16.840 .1.113883. 3.88.11.83 .13'" | |
| 2818 | > | |
| 2819 | ||
| 2820 | <xsl:call- template | |
| 2821 | name="medR ow" | |
| 2822 | > | |
| 2823 | ||
| 2824 | <xsl:with- param | |
| 2825 | name="row" | |
| 2826 | select="." | |
| 2827 | /> | |
| 2828 | ||
| 2829 | </xsl:call -template> | |
| 2830 | ||
| 2831 | </xsl:when > | |
| 2832 | ||
| 2833 | <xsl:when | |
| 2834 | test="n1:s ubstanceAd ministrati on" | |
| 2835 | > | |
| 2836 | ||
| 2837 | <xsl:call- template | |
| 2838 | name="medR ow" | |
| 2839 | > | |
| 2840 | ||
| 2841 | <xsl:with- param | |
| 2842 | name="row" | |
| 2843 | select="." | |
| 2844 | /> | |
| 2845 | ||
| 2846 | </xsl:call -template> | |
| 2847 | ||
| 2848 | </xsl:when > | |
| 2849 | ||
| 2850 | <xsl:when | |
| 2851 | test="$lab s-Root='2. 16.840.1.1 13883. IP '" | |
| 2852 | > | |
| 2853 | ||
| 2854 | <xsl:call- template | |
| 2855 | name="labs Row" | |
| 2856 | > | |
| 2857 | ||
| 2858 | <xsl:with- param | |
| 2859 | name="row" | |
| 2860 | select="." | |
| 2861 | /> | |
| 2862 | ||
| 2863 | </xsl:call -template> | |
| 2864 | ||
| 2865 | </xsl:when > | |
| 2866 | ||
| 2867 | <xsl:when | |
| 2868 | test="n1:o rganizer" | |
| 2869 | > | |
| 2870 | ||
| 2871 | <xsl:call- template | |
| 2872 | name="vita lsRow" | |
| 2873 | > | |
| 2874 | ||
| 2875 | <xsl:with- param | |
| 2876 | name="row" | |
| 2877 | select="." | |
| 2878 | /> | |
| 2879 | ||
| 2880 | </xsl:call -template> | |
| 2881 | ||
| 2882 | </xsl:when > | |
| 2883 | ||
| 2884 | <xsl:when | |
| 2885 | test="n1:p rocedure" | |
| 2886 | > | |
| 2887 | ||
| 2888 | <xsl:call- template | |
| 2889 | name="proc edureRow" | |
| 2890 | > | |
| 2891 | ||
| 2892 | <xsl:with- param | |
| 2893 | name="row" | |
| 2894 | select="." | |
| 2895 | /> | |
| 2896 | ||
| 2897 | </xsl:call -template> | |
| 2898 | ||
| 2899 | </xsl:when > | |
| 2900 | ||
| 2901 | <xsl:other wise /> | |
| 2902 | ||
| 2903 | </xsl:choo se> | |
| 2904 | ||
| 2905 | </xsl:temp late> | |
| 2906 | ||
| 2907 | ||
| 2908 | ||
| 2909 | <!-- Encou nter row e ntry --> | |
| 2910 | ||
| 2911 | <xsl:templ ate | |
| 2912 | name="encR ow" | |
| 2913 | > | |
| 2914 | ||
| 2915 | <xsl:param | |
| 2916 | name="row" | |
| 2917 | /> | |
| 2918 | ||
| 2919 | <tr | |
| 2920 | class="sec ond" | |
| 2921 | > | |
| 2922 | ||
| 2923 | ||
| 2924 | <!-- Encou nter Date/ Time --> | |
| 2925 | ||
| 2926 | <td> | |
| 2927 | ||
| 2928 | <div | |
| 2929 | style="ove rflow:hidd en; white- space:nowr ap; width: auto;" | |
| 2930 | > | |
| 2931 | ||
| 2932 | <xsl:choos e> | |
| 2933 | ||
| 2934 | <xsl:when | |
| 2935 | test="$row /n1:encoun ter/n1:eff ectiveTime /n1:low/@v alue" | |
| 2936 | > | |
| 2937 | ||
| 2938 | <xsl:call- template | |
| 2939 | name="form atDate" | |
| 2940 | > | |
| 2941 | ||
| 2942 | <xsl:with- param | |
| 2943 | name="date " | |
| 2944 | ||
| 2945 | select="$r ow/n1:enco unter/n1:e ffectiveTi me/n1:low/ @value" | |
| 2946 | /> | |
| 2947 | ||
| 2948 | </xsl:call -template> | |
| 2949 | ||
| 2950 | </xsl:when > | |
| 2951 | ||
| 2952 | <xsl:other wise> | |
| 2953 | ||
| 2954 | <xsl:call- template | |
| 2955 | name="na" | |
| 2956 | /> | |
| 2957 | ||
| 2958 | </xsl:othe rwise> | |
| 2959 | ||
| 2960 | </xsl:choo se> | |
| 2961 | ||
| 2962 | </div> | |
| 2963 | ||
| 2964 | </td> | |
| 2965 | ||
| 2966 | ||
| 2967 | <!-- Encou nter Type --> | |
| 2968 | ||
| 2969 | <td> | |
| 2970 | ||
| 2971 | <div | |
| 2972 | style="ove rflow:hidd en; white- space:nowr ap; width: auto;" | |
| 2973 | > | |
| 2974 | ||
| 2975 | <xsl:choos e> | |
| 2976 | ||
| 2977 | <xsl:when | |
| 2978 | test="$row /n1:encoun ter" | |
| 2979 | > | |
| 2980 | ||
| 2981 | <xsl:call- template | |
| 2982 | name="getE ncounterTy pe" | |
| 2983 | > | |
| 2984 | ||
| 2985 | <xsl:with- param | |
| 2986 | name="enco unter" | |
| 2987 | select="$r ow/n1:enco unter" | |
| 2988 | /> | |
| 2989 | ||
| 2990 | </xsl:call -template> | |
| 2991 | ||
| 2992 | </xsl:when > | |
| 2993 | ||
| 2994 | <xsl:other wise> | |
| 2995 | ||
| 2996 | <xsl:call- template | |
| 2997 | name="na" | |
| 2998 | /> | |
| 2999 | ||
| 3000 | </xsl:othe rwise> | |
| 3001 | ||
| 3002 | </xsl:choo se> | |
| 3003 | ||
| 3004 | ||
| 3005 | </div> | |
| 3006 | ||
| 3007 | </td> | |
| 3008 | ||
| 3009 | ||
| 3010 | <!-- Encou nter Descr iption --> | |
| 3011 | ||
| 3012 | ||
| 3013 | <td> | |
| 3014 | ||
| 3015 | <div | |
| 3016 | style="ove rflow:hidd en; white- space:nowr ap; width: 260px;" | |
| 3017 | > | |
| 3018 | ||
| 3019 | <xsl:varia ble | |
| 3020 | name="encF reeText" | |
| 3021 | > | |
| 3022 | ||
| 3023 | <xsl:call- template | |
| 3024 | name="getE ncounterFr eeText" | |
| 3025 | > | |
| 3026 | ||
| 3027 | <xsl:with- param | |
| 3028 | name="enco unter" | |
| 3029 | select="$r ow/n1:enco unter" | |
| 3030 | /> | |
| 3031 | ||
| 3032 | </xsl:call -template> | |
| 3033 | ||
| 3034 | </xsl:vari able> | |
| 3035 | ||
| 3036 | <xsl:choos e> | |
| 3037 | ||
| 3038 | <xsl:when | |
| 3039 | test="stri ng-length( $encFreeTe xt)>1" | |
| 3040 | > | |
| 3041 | ||
| 3042 | <xsl:call- template | |
| 3043 | name="flyo verTextSpa n" | |
| 3044 | > | |
| 3045 | ||
| 3046 | <xsl:with- param | |
| 3047 | name="data " | |
| 3048 | select="$e ncFreeText " | |
| 3049 | /> | |
| 3050 | ||
| 3051 | </xsl:call -template> | |
| 3052 | ||
| 3053 | </xsl:when > | |
| 3054 | ||
| 3055 | <xsl:other wise> | |
| 3056 | ||
| 3057 | <xsl:call- template | |
| 3058 | name="na" | |
| 3059 | /> | |
| 3060 | ||
| 3061 | </xsl:othe rwise> | |
| 3062 | ||
| 3063 | </xsl:choo se> | |
| 3064 | ||
| 3065 | </div> | |
| 3066 | ||
| 3067 | </td> | |
| 3068 | ||
| 3069 | ||
| 3070 | <!-- Encou nter Reaso n --> | |
| 3071 | ||
| 3072 | <td> | |
| 3073 | ||
| 3074 | <div | |
| 3075 | style="ove rflow:hidd en; white- space:nowr ap; width: 160px;" | |
| 3076 | > | |
| 3077 | ||
| 3078 | <xsl:varia ble | |
| 3079 | name="encR eason" | |
| 3080 | > | |
| 3081 | ||
| 3082 | <xsl:call- template | |
| 3083 | name="getE ncounterRe ason" | |
| 3084 | > | |
| 3085 | ||
| 3086 | <xsl:with- param | |
| 3087 | name="enco unter" | |
| 3088 | select="$r ow/n1:enco unter" | |
| 3089 | /> | |
| 3090 | ||
| 3091 | </xsl:call -template> | |
| 3092 | ||
| 3093 | </xsl:vari able> | |
| 3094 | ||
| 3095 | <xsl:choos e> | |
| 3096 | ||
| 3097 | <xsl:when | |
| 3098 | test="stri ng-length( $encReason )>1" | |
| 3099 | > | |
| 3100 | ||
| 3101 | <xsl:call- template | |
| 3102 | name="flyo verSpan" | |
| 3103 | > | |
| 3104 | ||
| 3105 | <xsl:with- param | |
| 3106 | name="data " | |
| 3107 | select="$e ncReason" | |
| 3108 | /> | |
| 3109 | ||
| 3110 | </xsl:call -template> | |
| 3111 | ||
| 3112 | </xsl:when > | |
| 3113 | ||
| 3114 | <xsl:other wise> | |
| 3115 | ||
| 3116 | <xsl:call- template | |
| 3117 | name="na" | |
| 3118 | /> | |
| 3119 | ||
| 3120 | </xsl:othe rwise> | |
| 3121 | ||
| 3122 | </xsl:choo se> | |
| 3123 | ||
| 3124 | </div> | |
| 3125 | ||
| 3126 | </td> | |
| 3127 | ||
| 3128 | ||
| 3129 | ||
| 3130 | <!-- Encou nter Arriv al --> | |
| 3131 | ||
| 3132 | <td> | |
| 3133 | ||
| 3134 | <div | |
| 3135 | style="ove rflow:hidd en; white- space:nowr ap; width: auto;" | |
| 3136 | > | |
| 3137 | ||
| 3138 | <xsl:choos e> | |
| 3139 | ||
| 3140 | <xsl:when | |
| 3141 | test="$row /n1:encoun ter/n1:par ticipant/n 1:time/n1: low/@value " | |
| 3142 | > | |
| 3143 | ||
| 3144 | <xsl:call- template | |
| 3145 | name="form atDateTime " | |
| 3146 | > | |
| 3147 | ||
| 3148 | <xsl:with- param | |
| 3149 | name="date " | |
| 3150 | ||
| 3151 | select="$r ow/n1:enco unter/n1:p articipant /n1:time/n 1:low/@val ue" | |
| 3152 | /> | |
| 3153 | ||
| 3154 | </xsl:call -template> | |
| 3155 | ||
| 3156 | </xsl:when > | |
| 3157 | ||
| 3158 | <xsl:other wise> | |
| 3159 | ||
| 3160 | <xsl:call- template | |
| 3161 | name="na" | |
| 3162 | /> | |
| 3163 | ||
| 3164 | </xsl:othe rwise> | |
| 3165 | ||
| 3166 | </xsl:choo se> | |
| 3167 | ||
| 3168 | </div> | |
| 3169 | ||
| 3170 | </td> | |
| 3171 | ||
| 3172 | ||
| 3173 | ||
| 3174 | <!-- Encou nter Depar ture --> | |
| 3175 | ||
| 3176 | <td> | |
| 3177 | ||
| 3178 | <div | |
| 3179 | style="ove rflow:hidd en; white- space:nowr ap; width: auto;" | |
| 3180 | > | |
| 3181 | ||
| 3182 | <xsl:choos e> | |
| 3183 | ||
| 3184 | <xsl:when | |
| 3185 | ||
| 3186 | test="$row /n1:encoun ter/n1:par ticipant/n 1:time/n1: high/@valu e" | |
| 3187 | > | |
| 3188 | ||
| 3189 | <xsl:call- template | |
| 3190 | name="form atDateTime " | |
| 3191 | > | |
| 3192 | ||
| 3193 | <xsl:with- param | |
| 3194 | name="date " | |
| 3195 | ||
| 3196 | select="$r ow/n1:enco unter/n1:p articipant /n1:time/n 1:high/@va lue" | |
| 3197 | /> | |
| 3198 | ||
| 3199 | </xsl:call -template> | |
| 3200 | ||
| 3201 | </xsl:when > | |
| 3202 | ||
| 3203 | <xsl:other wise> | |
| 3204 | ||
| 3205 | <xsl:call- template | |
| 3206 | name="na" | |
| 3207 | /> | |
| 3208 | ||
| 3209 | </xsl:othe rwise> | |
| 3210 | ||
| 3211 | </xsl:choo se> | |
| 3212 | ||
| 3213 | </div> | |
| 3214 | ||
| 3215 | </td> | |
| 3216 | ||
| 3217 | ||
| 3218 | ||
| 3219 | <!-- Encou nter Provi der --> | |
| 3220 | ||
| 3221 | <td> | |
| 3222 | ||
| 3223 | <div | |
| 3224 | style="ove rflow:hidd en; white- space:nowr ap; width: 160px;" | |
| 3225 | > | |
| 3226 | ||
| 3227 | <xsl:varia ble | |
| 3228 | name="encP rovider" | |
| 3229 | > | |
| 3230 | ||
| 3231 | <xsl:call- template | |
| 3232 | name="getE ncounterPr ovider" | |
| 3233 | > | |
| 3234 | ||
| 3235 | <xsl:with- param | |
| 3236 | name="enco unter" | |
| 3237 | select="$r ow/n1:enco unter" | |
| 3238 | /> | |
| 3239 | ||
| 3240 | </xsl:call -template> | |
| 3241 | ||
| 3242 | </xsl:vari able> | |
| 3243 | ||
| 3244 | <xsl:choos e> | |
| 3245 | ||
| 3246 | <xsl:when | |
| 3247 | test="stri ng-length( $encProvid er)>1" | |
| 3248 | > | |
| 3249 | ||
| 3250 | <xsl:call- template | |
| 3251 | name="flyo verSpan" | |
| 3252 | > | |
| 3253 | ||
| 3254 | <xsl:with- param | |
| 3255 | name="data " | |
| 3256 | select="$e ncProvider " | |
| 3257 | /> | |
| 3258 | ||
| 3259 | </xsl:call -template> | |
| 3260 | ||
| 3261 | </xsl:when > | |
| 3262 | ||
| 3263 | <xsl:other wise> | |
| 3264 | ||
| 3265 | <xsl:call- template | |
| 3266 | name="na" | |
| 3267 | /> | |
| 3268 | ||
| 3269 | </xsl:othe rwise> | |
| 3270 | ||
| 3271 | </xsl:choo se> | |
| 3272 | ||
| 3273 | </div> | |
| 3274 | ||
| 3275 | </td> | |
| 3276 | ||
| 3277 | ||
| 3278 | <!-- Encou nter Sourc e --> | |
| 3279 | ||
| 3280 | <td> | |
| 3281 | ||
| 3282 | <div | |
| 3283 | style="ove rflow:hidd en; white- space:nowr ap; width: 160px;" | |
| 3284 | > | |
| 3285 | ||
| 3286 | <xsl:varia ble | |
| 3287 | name="encS ource" | |
| 3288 | > | |
| 3289 | ||
| 3290 | <xsl:call- template | |
| 3291 | name="getE ncounterSo urce" | |
| 3292 | > | |
| 3293 | ||
| 3294 | <xsl:with- param | |
| 3295 | name="enco unter" | |
| 3296 | select="$r ow/n1:enco unter" | |
| 3297 | /> | |
| 3298 | ||
| 3299 | </xsl:call -template> | |
| 3300 | ||
| 3301 | </xsl:vari able> | |
| 3302 | ||
| 3303 | <xsl:choos e> | |
| 3304 | ||
| 3305 | <xsl:when | |
| 3306 | test="stri ng-length( $encSource )>1" | |
| 3307 | > | |
| 3308 | ||
| 3309 | <xsl:call- template | |
| 3310 | name="flyo verSpan" | |
| 3311 | > | |
| 3312 | ||
| 3313 | <xsl:with- param | |
| 3314 | name="data " | |
| 3315 | select="$e ncSource" | |
| 3316 | /> | |
| 3317 | ||
| 3318 | </xsl:call -template> | |
| 3319 | ||
| 3320 | </xsl:when > | |
| 3321 | ||
| 3322 | <xsl:other wise> | |
| 3323 | ||
| 3324 | <xsl:call- template | |
| 3325 | name="na" | |
| 3326 | /> | |
| 3327 | ||
| 3328 | </xsl:othe rwise> | |
| 3329 | ||
| 3330 | </xsl:choo se> | |
| 3331 | ||
| 3332 | </div> | |
| 3333 | ||
| 3334 | </td> | |
| 3335 | ||
| 3336 | ||
| 3337 | </tr> | |
| 3338 | ||
| 3339 | </xsl:temp late> | |
| 3340 | ||
| 3341 | ||
| 3342 | <!-- Medic ation Entr y row --> | |
| 3343 | ||
| 3344 | <xsl:templ ate | |
| 3345 | name="medR ow" | |
| 3346 | > | |
| 3347 | ||
| 3348 | <xsl:param | |
| 3349 | name="row" | |
| 3350 | /> | |
| 3351 | ||
| 3352 | <tr | |
| 3353 | class="sec ond" | |
| 3354 | > | |
| 3355 | ||
| 3356 | <!-- Name --> | |
| 3357 | ||
| 3358 | <td> | |
| 3359 | ||
| 3360 | <div | |
| 3361 | style="ove rflow:hidd en; white- space:nowr ap; width: 230px;" | |
| 3362 | > | |
| 3363 | ||
| 3364 | <xsl:call- template | |
| 3365 | name="flyo verSpan" | |
| 3366 | > | |
| 3367 | ||
| 3368 | <xsl:with- param | |
| 3369 | name="data " | |
| 3370 | > | |
| 3371 | ||
| 3372 | <xsl:call- template | |
| 3373 | name="getM edicationN ame" | |
| 3374 | > | |
| 3375 | ||
| 3376 | <xsl:with- param | |
| 3377 | name="subs tanceAdmin " | |
| 3378 | ||
| 3379 | select="$r ow/n1:subs tanceAdmin istration" | |
| 3380 | /> | |
| 3381 | ||
| 3382 | <xsl:with- param | |
| 3383 | name="row" | |
| 3384 | select="$r ow" | |
| 3385 | /> | |
| 3386 | ||
| 3387 | </xsl:call -template> | |
| 3388 | ||
| 3389 | </xsl:with -param> | |
| 3390 | ||
| 3391 | </xsl:call -template> | |
| 3392 | ||
| 3393 | </div> | |
| 3394 | ||
| 3395 | </td> | |
| 3396 | ||
| 3397 | ||
| 3398 | <!-- Brand Name --> | |
| 3399 | ||
| 3400 | <!-- <td> <div style ="overflow :hidden; w hite-space :nowrap"> <xsl:choos e> | |
| 3401 | <xsl:whe n test="st ring-lengt h($row/n1: substanceA dministrat ion/n1:con sumable/n1 :manufactu redProduct /n1:manufa cturedMate rial/n1:na me)>1"> | |
| 3402 | <xsl:cal l-template name="fly overSpan"> <xsl:with -param nam e="data" s elect="$ro w/n1:subst anceAdmini stration/n 1:consumab le/n1:manu facturedPr oduct/n1:m anufacture dMaterial/ n1:name"/> | |
| 3403 | </xsl:ca ll-templat e> </xsl:w hen> <xsl: otherwise> <xsl:call -template name="na"/ > | |
| 3404 | </xsl:ot herwise> < /xsl:choos e> </div> </td> --> | |
| 3405 | ||
| 3406 | ||
| 3407 | <!-- Route --> | |
| 3408 | ||
| 3409 | <!-- <td> <div style ="overflow :hidden; w hite-space :nowrap;"> <xsl:choo se> | |
| 3410 | <xsl:whe n test="st ring-lengt h($row//n1 :substance Administra tion/n1:ro uteCode/@d isplayName )=0"> | |
| 3411 | <xsl:cal l-template name="na" /> </xsl:w hen> <xsl: otherwise> <xsl:valu e-of | |
| 3412 | select=" $row/n1:su bstanceAdm inistratio n/n1:route Code/@disp layName"/> </xsl:oth erwise> | |
| 3413 | </xsl:ch oose> </di v> </td> - -> | |
| 3414 | ||
| 3415 | ||
| 3416 | <!-- Inter val --> | |
| 3417 | ||
| 3418 | <!--<td> < div style= "overflow: hidden; wh ite-space: nowrap;"> <xsl:choos e> --> | |
| 3419 | <!-- Test if Interva l value is populated --> | |
| 3420 | <!-- <xsl: when test= "string-le ngth($row/ n1:substan ceAdminist ration/n1: effectiveT ime/n1:per iod/@value )=0"> --> | |
| 3421 | <!-- Fille r '-' if I nterval nu ll --> | |
| 3422 | <!-- <xsl: call-templ ate name=" na"/> </xs l:when> <x sl:otherwi se> <xsl:v alue-of | |
| 3423 | select=" $row/n1:su bstanceAdm inistratio n/n1:effec tiveTime/n 1:period/@ value"/> | |
| 3424 | </xsl:ot herwise> < /xsl:choos e> </div> </td> --> | |
| 3425 | ||
| 3426 | ||
| 3427 | <!-- Statu s --> | |
| 3428 | ||
| 3429 | <td> | |
| 3430 | ||
| 3431 | <div | |
| 3432 | style="ove rflow:hidd en; white- space:nowr ap; width: 80px;" | |
| 3433 | > | |
| 3434 | ||
| 3435 | <xsl:call- template | |
| 3436 | name="medS tatus" | |
| 3437 | > | |
| 3438 | ||
| 3439 | <xsl:with- param | |
| 3440 | name="subs tanceAdmin " | |
| 3441 | ||
| 3442 | select="$r ow/n1:subs tanceAdmin istration" | |
| 3443 | /> | |
| 3444 | ||
| 3445 | </xsl:call -template> | |
| 3446 | ||
| 3447 | </div> | |
| 3448 | ||
| 3449 | </td> | |
| 3450 | ||
| 3451 | ||
| 3452 | <!-- Quant ity --> | |
| 3453 | ||
| 3454 | <td> | |
| 3455 | ||
| 3456 | <div | |
| 3457 | style="ove rflow:hidd en; white- space:nowr ap; width: 40px;" | |
| 3458 | > | |
| 3459 | ||
| 3460 | <xsl:call- template | |
| 3461 | name="medQ uantity" | |
| 3462 | > | |
| 3463 | ||
| 3464 | <xsl:with- param | |
| 3465 | name="subs tanceAdmin " | |
| 3466 | ||
| 3467 | select="$r ow/n1:subs tanceAdmin istration" | |
| 3468 | /> | |
| 3469 | ||
| 3470 | </xsl:call -template> | |
| 3471 | ||
| 3472 | </div> | |
| 3473 | ||
| 3474 | </td> | |
| 3475 | ||
| 3476 | ||
| 3477 | <!-- Order Expiratio n Date/Tim e --> | |
| 3478 | ||
| 3479 | <td> | |
| 3480 | ||
| 3481 | <div | |
| 3482 | style="ove rflow:hidd en; white- space:nowr ap; width: 80px;" | |
| 3483 | > | |
| 3484 | ||
| 3485 | <xsl:call- template | |
| 3486 | name="medE xpiretime" | |
| 3487 | > | |
| 3488 | ||
| 3489 | <xsl:with- param | |
| 3490 | name="subs tanceAdmin " | |
| 3491 | ||
| 3492 | select="$r ow/n1:subs tanceAdmin istration" | |
| 3493 | /> | |
| 3494 | ||
| 3495 | </xsl:call -template> | |
| 3496 | ||
| 3497 | </div> | |
| 3498 | ||
| 3499 | </td> | |
| 3500 | ||
| 3501 | ||
| 3502 | <!-- Provi der --> | |
| 3503 | ||
| 3504 | <td> | |
| 3505 | ||
| 3506 | <div | |
| 3507 | style="ove rflow:hidd en; white- space:nowr ap; width: 140px;" | |
| 3508 | > | |
| 3509 | ||
| 3510 | <xsl:varia ble | |
| 3511 | name="medP rovider" | |
| 3512 | > | |
| 3513 | ||
| 3514 | <xsl:call- template | |
| 3515 | name="getM edProvider " | |
| 3516 | > | |
| 3517 | ||
| 3518 | <xsl:with- param | |
| 3519 | name="subs tanceAdmin " | |
| 3520 | ||
| 3521 | select="$r ow/n1:subs tanceAdmin istration" | |
| 3522 | /> | |
| 3523 | ||
| 3524 | </xsl:call -template> | |
| 3525 | ||
| 3526 | </xsl:vari able> | |
| 3527 | ||
| 3528 | <xsl:choos e> | |
| 3529 | ||
| 3530 | <xsl:when | |
| 3531 | test="stri ng-length( $medProvid er)>1" | |
| 3532 | > | |
| 3533 | ||
| 3534 | <xsl:call- template | |
| 3535 | name="flyo verSpan" | |
| 3536 | > | |
| 3537 | ||
| 3538 | <xsl:with- param | |
| 3539 | name="data " | |
| 3540 | select="$m edProvider " | |
| 3541 | /> | |
| 3542 | ||
| 3543 | </xsl:call -template> | |
| 3544 | ||
| 3545 | </xsl:when > | |
| 3546 | ||
| 3547 | <xsl:other wise> | |
| 3548 | ||
| 3549 | <xsl:call- template | |
| 3550 | name="na" | |
| 3551 | /> | |
| 3552 | ||
| 3553 | </xsl:othe rwise> | |
| 3554 | ||
| 3555 | </xsl:choo se> | |
| 3556 | ||
| 3557 | </div> | |
| 3558 | ||
| 3559 | </td> | |
| 3560 | ||
| 3561 | ||
| 3562 | <!-- Presc ription ID (Nbr) --> | |
| 3563 | ||
| 3564 | <td> | |
| 3565 | ||
| 3566 | <div | |
| 3567 | style="ove rflow:hidd en; white- space:nowr ap; width: 80px;" | |
| 3568 | > | |
| 3569 | ||
| 3570 | <xsl:varia ble | |
| 3571 | name="rxNu m" | |
| 3572 | > | |
| 3573 | ||
| 3574 | <xsl:call- template | |
| 3575 | name="getR xNumString " | |
| 3576 | > | |
| 3577 | ||
| 3578 | <xsl:with- param | |
| 3579 | name="subs tanceAdmin " | |
| 3580 | ||
| 3581 | select="$r ow/n1:subs tanceAdmin istration" | |
| 3582 | /> | |
| 3583 | ||
| 3584 | </xsl:call -template> | |
| 3585 | ||
| 3586 | </xsl:vari able> | |
| 3587 | ||
| 3588 | <xsl:choos e> | |
| 3589 | ||
| 3590 | <xsl:when | |
| 3591 | test="stri ng-length( $rxNum)>1" | |
| 3592 | > | |
| 3593 | ||
| 3594 | <xsl:value -of | |
| 3595 | select="$r xNum" | |
| 3596 | /> | |
| 3597 | ||
| 3598 | </xsl:when > | |
| 3599 | ||
| 3600 | <xsl:other wise> | |
| 3601 | ||
| 3602 | <xsl:call- template | |
| 3603 | name="na" | |
| 3604 | /> | |
| 3605 | ||
| 3606 | </xsl:othe rwise> | |
| 3607 | ||
| 3608 | </xsl:choo se> | |
| 3609 | ||
| 3610 | </div> | |
| 3611 | ||
| 3612 | </td> | |
| 3613 | ||
| 3614 | ||
| 3615 | <!-- dispe nse time - -> | |
| 3616 | ||
| 3617 | <td> | |
| 3618 | ||
| 3619 | <div | |
| 3620 | style="ove rflow:hidd en; white- space:nowr ap; width: 80px;" | |
| 3621 | > | |
| 3622 | ||
| 3623 | <xsl:call- template | |
| 3624 | name="medB egintime" | |
| 3625 | > | |
| 3626 | ||
| 3627 | <xsl:with- param | |
| 3628 | name="row" | |
| 3629 | select="$r ow" | |
| 3630 | /> | |
| 3631 | ||
| 3632 | </xsl:call -template> | |
| 3633 | ||
| 3634 | </div> | |
| 3635 | ||
| 3636 | </td> | |
| 3637 | ||
| 3638 | ||
| 3639 | <!-- Sig - -> | |
| 3640 | ||
| 3641 | <td> | |
| 3642 | ||
| 3643 | <div | |
| 3644 | style="ove rflow:hidd en; white- space:nowr ap; width: 160px;" | |
| 3645 | > | |
| 3646 | ||
| 3647 | <xsl:varia ble | |
| 3648 | name="sig" | |
| 3649 | > | |
| 3650 | ||
| 3651 | <xsl:call- template | |
| 3652 | name="getS ig" | |
| 3653 | > | |
| 3654 | ||
| 3655 | <xsl:with- param | |
| 3656 | name="subs tanceAdmin " | |
| 3657 | ||
| 3658 | select="$r ow/n1:subs tanceAdmin istration" | |
| 3659 | /> | |
| 3660 | ||
| 3661 | </xsl:call -template> | |
| 3662 | ||
| 3663 | </xsl:vari able> | |
| 3664 | ||
| 3665 | <xsl:choos e> | |
| 3666 | ||
| 3667 | <xsl:when | |
| 3668 | test="stri ng-length( $sig)>1" | |
| 3669 | > | |
| 3670 | ||
| 3671 | <xsl:call- template | |
| 3672 | name="flyo verSpan" | |
| 3673 | > | |
| 3674 | ||
| 3675 | <xsl:with- param | |
| 3676 | name="data " | |
| 3677 | select="$s ig" | |
| 3678 | /> | |
| 3679 | ||
| 3680 | </xsl:call -template> | |
| 3681 | ||
| 3682 | </xsl:when > | |
| 3683 | ||
| 3684 | <xsl:other wise> | |
| 3685 | ||
| 3686 | <xsl:call- template | |
| 3687 | name="na" | |
| 3688 | /> | |
| 3689 | ||
| 3690 | </xsl:othe rwise> | |
| 3691 | ||
| 3692 | </xsl:choo se> | |
| 3693 | ||
| 3694 | </div> | |
| 3695 | ||
| 3696 | </td> | |
| 3697 | ||
| 3698 | ||
| 3699 | <!-- sourc e --> | |
| 3700 | ||
| 3701 | <td> | |
| 3702 | ||
| 3703 | <div | |
| 3704 | style="ove rflow:hidd en; white- space:nowr ap; width: 100px;" | |
| 3705 | > | |
| 3706 | ||
| 3707 | <xsl:call- template | |
| 3708 | name="flyo verSpan" | |
| 3709 | > | |
| 3710 | ||
| 3711 | <xsl:with- param | |
| 3712 | name="data " | |
| 3713 | ||
| 3714 | select="n1 :substance Administra tion/n1:au thor/n1:as signedAuth or/n1:repr esentedOrg anization/ n1:name" | |
| 3715 | /> | |
| 3716 | ||
| 3717 | </xsl:call -template> | |
| 3718 | ||
| 3719 | </div> | |
| 3720 | ||
| 3721 | </td> | |
| 3722 | ||
| 3723 | </tr> | |
| 3724 | ||
| 3725 | </xsl:temp late> | |
| 3726 | ||
| 3727 | ||
| 3728 | <!-- Probl em entry r ow --> | |
| 3729 | ||
| 3730 | <xsl:templ ate | |
| 3731 | name="prob lemRow" | |
| 3732 | > | |
| 3733 | ||
| 3734 | <xsl:param | |
| 3735 | name="row" | |
| 3736 | /> | |
| 3737 | ||
| 3738 | <xsl:varia ble | |
| 3739 | name="rowD ata" | |
| 3740 | ||
| 3741 | select="$r ow/n1:act/ n1:entryRe lationship /n1:observ ation" | |
| 3742 | /> | |
| 3743 | ||
| 3744 | <xsl:varia ble | |
| 3745 | name="ref" | |
| 3746 | ||
| 3747 | select="$r ow/n1:act/ n1:entryRe lationship /n1:observ ation/n1:t ext/n1:ref erence" | |
| 3748 | /> | |
| 3749 | ||
| 3750 | <tr | |
| 3751 | class="sec ond" | |
| 3752 | > | |
| 3753 | ||
| 3754 | ||
| 3755 | <!-- name --> | |
| 3756 | ||
| 3757 | <td> | |
| 3758 | ||
| 3759 | <div | |
| 3760 | style="ove rflow:hidd en; white- space:nowr ap; width: 240px;" | |
| 3761 | > | |
| 3762 | ||
| 3763 | <xsl:call- template | |
| 3764 | name="prob Name" | |
| 3765 | > | |
| 3766 | ||
| 3767 | <xsl:with- param | |
| 3768 | name="ref" | |
| 3769 | select="$r ef" | |
| 3770 | /> | |
| 3771 | ||
| 3772 | <xsl:with- param | |
| 3773 | name="rowD ata" | |
| 3774 | select="$r owData" | |
| 3775 | /> | |
| 3776 | ||
| 3777 | </xsl:call -template> | |
| 3778 | ||
| 3779 | </div> | |
| 3780 | ||
| 3781 | </td> | |
| 3782 | ||
| 3783 | ||
| 3784 | <!-- statu s --> | |
| 3785 | ||
| 3786 | <td> | |
| 3787 | ||
| 3788 | <div | |
| 3789 | style="ove rflow:hidd en; white- space:nowr ap; width: 80px;" | |
| 3790 | > | |
| 3791 | ||
| 3792 | <xsl:call- template | |
| 3793 | name="prob Status" | |
| 3794 | > | |
| 3795 | ||
| 3796 | <xsl:with- param | |
| 3797 | name="row" | |
| 3798 | select="$r ow" | |
| 3799 | /> | |
| 3800 | ||
| 3801 | </xsl:call -template> | |
| 3802 | ||
| 3803 | </div> | |
| 3804 | ||
| 3805 | </td> | |
| 3806 | ||
| 3807 | ||
| 3808 | <!-- Probl em Code -- > | |
| 3809 | ||
| 3810 | <td> | |
| 3811 | ||
| 3812 | <div | |
| 3813 | style="ove rflow:hidd en; white- space:nowr ap; width: 150px" | |
| 3814 | > | |
| 3815 | ||
| 3816 | <xsl:call- template | |
| 3817 | name="getP roblemCode " | |
| 3818 | > | |
| 3819 | ||
| 3820 | <xsl:with- param | |
| 3821 | name="rowD ata" | |
| 3822 | select="$r owData" | |
| 3823 | /> | |
| 3824 | ||
| 3825 | </xsl:call -template> | |
| 3826 | ||
| 3827 | </div> | |
| 3828 | ||
| 3829 | </td> | |
| 3830 | ||
| 3831 | ||
| 3832 | <!-- probl em effecti ve date -- > | |
| 3833 | ||
| 3834 | <td> | |
| 3835 | ||
| 3836 | <div | |
| 3837 | style="ove rflow:hidd en; white- space:nowr ap;" | |
| 3838 | > | |
| 3839 | ||
| 3840 | <xsl:call- template | |
| 3841 | name="prob Date" | |
| 3842 | > | |
| 3843 | ||
| 3844 | <xsl:with- param | |
| 3845 | name="row" | |
| 3846 | select="$r ow" | |
| 3847 | /> | |
| 3848 | ||
| 3849 | </xsl:call -template> | |
| 3850 | ||
| 3851 | </div> | |
| 3852 | ||
| 3853 | </td> | |
| 3854 | ||
| 3855 | ||
| 3856 | <!-- provi der --> | |
| 3857 | ||
| 3858 | <td> | |
| 3859 | ||
| 3860 | <div | |
| 3861 | style="ove rflow:hidd en; white- space:nowr ap; width: 160px;" | |
| 3862 | > | |
| 3863 | ||
| 3864 | <xsl:varia ble | |
| 3865 | name="prov ider" | |
| 3866 | /> | |
| 3867 | ||
| 3868 | <xsl:call- template | |
| 3869 | name="getP roblemProv ider" | |
| 3870 | > | |
| 3871 | ||
| 3872 | <xsl:with- param | |
| 3873 | name="perf ormer" | |
| 3874 | select="$r ow/n1:act/ n1:perform er" | |
| 3875 | /> | |
| 3876 | ||
| 3877 | </xsl:call -template> | |
| 3878 | ||
| 3879 | <xsl:if | |
| 3880 | test="stri ng-length( $provider) >2" | |
| 3881 | > | |
| 3882 | ||
| 3883 | <xsl:call- template | |
| 3884 | name="flyo verSpan" | |
| 3885 | > | |
| 3886 | ||
| 3887 | <xsl:with- param | |
| 3888 | name="data " | |
| 3889 | select="$p rovider" | |
| 3890 | /> | |
| 3891 | ||
| 3892 | </xsl:call -template> | |
| 3893 | ||
| 3894 | </xsl:if> | |
| 3895 | ||
| 3896 | </div> | |
| 3897 | ||
| 3898 | </td> | |
| 3899 | ||
| 3900 | ||
| 3901 | <!-- sourc e --> | |
| 3902 | ||
| 3903 | <td> | |
| 3904 | ||
| 3905 | <div | |
| 3906 | style="ove rflow:hidd en; white- space:nowr ap; width: 150px;" | |
| 3907 | > | |
| 3908 | ||
| 3909 | <xsl:varia ble | |
| 3910 | name="sour ce" | |
| 3911 | > | |
| 3912 | ||
| 3913 | <xsl:call- template | |
| 3914 | name="getP roblemSour ce" | |
| 3915 | > | |
| 3916 | ||
| 3917 | <xsl:with- param | |
| 3918 | name="row" | |
| 3919 | select="$r ow" | |
| 3920 | /> | |
| 3921 | ||
| 3922 | </xsl:call -template> | |
| 3923 | ||
| 3924 | </xsl:vari able> | |
| 3925 | ||
| 3926 | <xsl:choos e> | |
| 3927 | ||
| 3928 | <xsl:when | |
| 3929 | test="stri ng-length( $source)>1 " | |
| 3930 | > | |
| 3931 | ||
| 3932 | <xsl:call- template | |
| 3933 | name="flyo verSpan" | |
| 3934 | > | |
| 3935 | ||
| 3936 | <xsl:with- param | |
| 3937 | name="data " | |
| 3938 | select="$s ource" | |
| 3939 | /> | |
| 3940 | ||
| 3941 | </xsl:call -template> | |
| 3942 | ||
| 3943 | </xsl:when > | |
| 3944 | ||
| 3945 | <xsl:other wise> | |
| 3946 | ||
| 3947 | <xsl:call- template | |
| 3948 | name="na" | |
| 3949 | /> | |
| 3950 | ||
| 3951 | </xsl:othe rwise> | |
| 3952 | ||
| 3953 | </xsl:choo se> | |
| 3954 | ||
| 3955 | </div> | |
| 3956 | ||
| 3957 | </td> | |
| 3958 | ||
| 3959 | </tr> | |
| 3960 | ||
| 3961 | </xsl:temp late> | |
| 3962 | ||
| 3963 | ||
| 3964 | <!-- Aller gy entry r ow --> | |
| 3965 | ||
| 3966 | <xsl:templ ate | |
| 3967 | name="alle rgyRow" | |
| 3968 | > | |
| 3969 | ||
| 3970 | <xsl:param | |
| 3971 | name="row" | |
| 3972 | /> | |
| 3973 | ||
| 3974 | <xsl:varia ble | |
| 3975 | name="obse rvation" | |
| 3976 | ||
| 3977 | select="$r ow/n1:act/ n1:entryRe lationship /n1:observ ation" | |
| 3978 | /> | |
| 3979 | ||
| 3980 | <xsl:varia ble | |
| 3981 | name="eR" | |
| 3982 | select="$r ow/n1:act/ n1:entryRe lationship " | |
| 3983 | /> | |
| 3984 | ||
| 3985 | <tr | |
| 3986 | class="sec ond" | |
| 3987 | > | |
| 3988 | ||
| 3989 | ||
| 3990 | <!--Allerg ens --> | |
| 3991 | ||
| 3992 | <td> | |
| 3993 | ||
| 3994 | <div | |
| 3995 | ||
| 3996 | style="ove rflow:hidd en; white- space:nowr ap; width: 180px; pad ding-right :5px;" | |
| 3997 | > | |
| 3998 | ||
| 3999 | <xsl:varia ble | |
| 4000 | name="alle rgen" | |
| 4001 | > | |
| 4002 | ||
| 4003 | <xsl:call- template | |
| 4004 | name="getA llergen" | |
| 4005 | > | |
| 4006 | ||
| 4007 | <xsl:with- param | |
| 4008 | name="obse rvation" | |
| 4009 | select="$o bservation " | |
| 4010 | /> | |
| 4011 | ||
| 4012 | </xsl:call -template> | |
| 4013 | ||
| 4014 | </xsl:vari able> | |
| 4015 | ||
| 4016 | <xsl:choos e> | |
| 4017 | ||
| 4018 | <xsl:when | |
| 4019 | test="stri ng-length( $allergen) >1" | |
| 4020 | > | |
| 4021 | ||
| 4022 | <xsl:call- template | |
| 4023 | name="flyo verSpan" | |
| 4024 | > | |
| 4025 | ||
| 4026 | <xsl:with- param | |
| 4027 | name="data " | |
| 4028 | select="$a llergen" | |
| 4029 | /> | |
| 4030 | ||
| 4031 | </xsl:call -template> | |
| 4032 | ||
| 4033 | </xsl:when > | |
| 4034 | ||
| 4035 | <xsl:other wise> | |
| 4036 | ||
| 4037 | <xsl:call- template | |
| 4038 | name="na" | |
| 4039 | /> | |
| 4040 | ||
| 4041 | </xsl:othe rwise> | |
| 4042 | ||
| 4043 | </xsl:choo se> | |
| 4044 | ||
| 4045 | </div> | |
| 4046 | ||
| 4047 | </td> | |
| 4048 | ||
| 4049 | ||
| 4050 | <!--Verifi cation Dat e --> | |
| 4051 | ||
| 4052 | <td> | |
| 4053 | ||
| 4054 | <div | |
| 4055 | style="ove rflow:hidd en; white- space:nowr ap; width: 100px;" | |
| 4056 | > | |
| 4057 | ||
| 4058 | <xsl:choos e> | |
| 4059 | ||
| 4060 | <xsl:when | |
| 4061 | ||
| 4062 | test="stri ng-length( $observati on/n1:effe ctiveTime/ n1:low/@va lue)=0" | |
| 4063 | > | |
| 4064 | ||
| 4065 | <xsl:call- template | |
| 4066 | name="na" | |
| 4067 | /> | |
| 4068 | ||
| 4069 | </xsl:when > | |
| 4070 | ||
| 4071 | <xsl:when | |
| 4072 | test="$obs ervation/n 1:effectiv eTime/n1:l ow/@value" | |
| 4073 | > | |
| 4074 | ||
| 4075 | <xsl:call- template | |
| 4076 | name="form atDate" | |
| 4077 | > | |
| 4078 | ||
| 4079 | <xsl:with- param | |
| 4080 | name="date " | |
| 4081 | ||
| 4082 | select="$o bservation /n1:effect iveTime/n1 :low/@valu e" | |
| 4083 | /> | |
| 4084 | ||
| 4085 | </xsl:call -template> | |
| 4086 | ||
| 4087 | </xsl:when > | |
| 4088 | ||
| 4089 | </xsl:choo se> | |
| 4090 | ||
| 4091 | </div> | |
| 4092 | ||
| 4093 | </td> | |
| 4094 | ||
| 4095 | ||
| 4096 | <!--Event Type --> | |
| 4097 | ||
| 4098 | <td> | |
| 4099 | ||
| 4100 | <div | |
| 4101 | style="ove rflow:hidd en; white- space:nowr ap; width: 180px;" | |
| 4102 | > | |
| 4103 | ||
| 4104 | <xsl:varia ble | |
| 4105 | name="alle rgenType" | |
| 4106 | > | |
| 4107 | ||
| 4108 | <xsl:call- template | |
| 4109 | name="getE ventType" | |
| 4110 | > | |
| 4111 | ||
| 4112 | <xsl:with- param | |
| 4113 | name="obs" | |
| 4114 | select="$o bservation " | |
| 4115 | /> | |
| 4116 | ||
| 4117 | </xsl:call -template> | |
| 4118 | ||
| 4119 | </xsl:vari able> | |
| 4120 | ||
| 4121 | <xsl:choos e> | |
| 4122 | ||
| 4123 | <xsl:when | |
| 4124 | test="stri ng-length( $allergenT ype)>1" | |
| 4125 | > | |
| 4126 | ||
| 4127 | <xsl:call- template | |
| 4128 | name="flyo verSpan" | |
| 4129 | > | |
| 4130 | ||
| 4131 | <xsl:with- param | |
| 4132 | name="data " | |
| 4133 | select="$a llergenTyp e" | |
| 4134 | /> | |
| 4135 | ||
| 4136 | </xsl:call -template> | |
| 4137 | ||
| 4138 | </xsl:when > | |
| 4139 | ||
| 4140 | <xsl:other wise> | |
| 4141 | ||
| 4142 | <xsl:call- template | |
| 4143 | name="na" | |
| 4144 | /> | |
| 4145 | ||
| 4146 | </xsl:othe rwise> | |
| 4147 | ||
| 4148 | </xsl:choo se> | |
| 4149 | ||
| 4150 | </div> | |
| 4151 | ||
| 4152 | </td> | |
| 4153 | ||
| 4154 | ||
| 4155 | <!--Allerg en Free-Te xt --> | |
| 4156 | <!-- <td s tyle="over flow:hidde n; white-s pace:nowra p; width:1 00px;"> <x sl:variabl e | |
| 4157 | name="al lergenText "> <xsl:ca ll-templat e name="ge tAllergenT ext"> <xsl :with-para m | |
| 4158 | name="ob servation" select="$ observatio n" /> </xs l:call-tem plate> </x sl:variabl e> | |
| 4159 | <xsl:cho ose> <xsl: when test= "string-le ngth($alle rgenText)> 1"> <xsl:c all-templa te | |
| 4160 | name="fl yoverSpan" > <xsl:wit h-param na me="data" select="$a llergenTex t"/> | |
| 4161 | </xsl:ca ll-templat e> </xsl:w hen> <xsl: otherwise> <xsl:call -template name="na"/ > | |
| 4162 | </xsl:ot herwise> < /xsl:choos e> </td> - -> | |
| 4163 | ||
| 4164 | ||
| 4165 | <!--Produc t Coded -- > | |
| 4166 | <!-- <td s tyle="over flow:hidde n; white-s pace:nowra p; width:1 00px;"> <x sl:call-te mplate | |
| 4167 | name="na "/> </td> --> | |
| 4168 | ||
| 4169 | ||
| 4170 | <!--Reacti on --> | |
| 4171 | ||
| 4172 | <td> | |
| 4173 | ||
| 4174 | <div | |
| 4175 | style="ove rflow:hidd en; white- space:nowr ap; width: 180px;" | |
| 4176 | > | |
| 4177 | ||
| 4178 | <xsl:varia ble | |
| 4179 | name="resu lts" | |
| 4180 | > | |
| 4181 | ||
| 4182 | <xsl:for-e ach | |
| 4183 | ||
| 4184 | select="$o bservation /n1:entryR elationshi p[@typeCod e='MFST']" | |
| 4185 | > | |
| 4186 | ||
| 4187 | <xsl:varia ble | |
| 4188 | name="resu lt" | |
| 4189 | > | |
| 4190 | ||
| 4191 | <xsl:call- template | |
| 4192 | name="getR eactionVal ue" | |
| 4193 | > | |
| 4194 | ||
| 4195 | <xsl:with- param | |
| 4196 | name="reac tion" | |
| 4197 | ||
| 4198 | select="n1 :observati on/n1:text /n1:refere nce/@value " | |
| 4199 | /> | |
| 4200 | ||
| 4201 | </xsl:call -template> | |
| 4202 | ||
| 4203 | </xsl:vari able> | |
| 4204 | ||
| 4205 | <xsl:choos e> | |
| 4206 | ||
| 4207 | <xsl:when | |
| 4208 | test="$res ult" | |
| 4209 | > | |
| 4210 | ||
| 4211 | <xsl:value -of | |
| 4212 | select="$r esult" | |
| 4213 | /> | |
| 4214 | ||
| 4215 | </xsl:when > | |
| 4216 | ||
| 4217 | </xsl:choo se> | |
| 4218 | ||
| 4219 | </xsl:for- each> | |
| 4220 | ||
| 4221 | </xsl:vari able> | |
| 4222 | ||
| 4223 | <xsl:choos e> | |
| 4224 | ||
| 4225 | <xsl:when | |
| 4226 | test="$res ults" | |
| 4227 | > | |
| 4228 | ||
| 4229 | <xsl:call- template | |
| 4230 | name="flyo verSpan" | |
| 4231 | > | |
| 4232 | ||
| 4233 | <xsl:with- param | |
| 4234 | name="data " | |
| 4235 | select="$r esults" | |
| 4236 | /> | |
| 4237 | ||
| 4238 | </xsl:call -template> | |
| 4239 | ||
| 4240 | </xsl:when > | |
| 4241 | ||
| 4242 | </xsl:choo se> | |
| 4243 | ||
| 4244 | </div> | |
| 4245 | ||
| 4246 | </td> | |
| 4247 | ||
| 4248 | ||
| 4249 | <!--Reacti on Free-Te xt --> | |
| 4250 | ||
| 4251 | <!--<td st yle="overf low:hidden ; white-sp ace:nowrap ; width:10 0px;"> <xs l:variable | |
| 4252 | name="re actionText "> <xsl:ca ll-templat e name="ge tReactionS tring"> <x sl:with-pa ram | |
| 4253 | name="ob servation" select="$ observatio n"/> </xsl :call-temp late> </xs l:variable > | |
| 4254 | <xsl:cho ose> <xsl: when test= "string-le ngth($reac tionText)> 1"> <xsl:v alue-of | |
| 4255 | select=" $reactionT ext"/> </x sl:when> < xsl:otherw ise> <xsl: call-templ ate name=" na"/> | |
| 4256 | </xsl:ot herwise> < /xsl:choos e> </td> - -> | |
| 4257 | ||
| 4258 | ||
| 4259 | <!--Reacti on Coded - -> | |
| 4260 | <!-- <td s tyle="over flow:hidde n; white-s pace:nowra p; width:1 00px;"> <x sl:call-te mplate | |
| 4261 | name="ge tReactionC oded"> <xs l:with-par am name="e R" select= "$eR"/> </ xsl:call-t emplate> | |
| 4262 | </td> -- > | |
| 4263 | ||
| 4264 | ||
| 4265 | <!--Severi ty --> | |
| 4266 | ||
| 4267 | <td> | |
| 4268 | ||
| 4269 | <div | |
| 4270 | style="ove rflow:hidd en; white- space:nowr ap; width: 100px;" | |
| 4271 | > | |
| 4272 | ||
| 4273 | <xsl:varia ble | |
| 4274 | name="seve rity" | |
| 4275 | > | |
| 4276 | ||
| 4277 | <xsl:call- template | |
| 4278 | name="getS everity" | |
| 4279 | > | |
| 4280 | ||
| 4281 | <xsl:with- param | |
| 4282 | name="obse rvation" | |
| 4283 | select="$o bservation " | |
| 4284 | /> | |
| 4285 | ||
| 4286 | </xsl:call -template> | |
| 4287 | ||
| 4288 | </xsl:vari able> | |
| 4289 | ||
| 4290 | <xsl:choos e> | |
| 4291 | ||
| 4292 | <xsl:when | |
| 4293 | test="stri ng-length( $severity) >1" | |
| 4294 | > | |
| 4295 | ||
| 4296 | <xsl:value -of | |
| 4297 | select="$s everity" | |
| 4298 | /> | |
| 4299 | ||
| 4300 | </xsl:when > | |
| 4301 | ||
| 4302 | <xsl:other wise> | |
| 4303 | ||
| 4304 | <xsl:call- template | |
| 4305 | name="na" | |
| 4306 | /> | |
| 4307 | ||
| 4308 | </xsl:othe rwise> | |
| 4309 | ||
| 4310 | </xsl:choo se> | |
| 4311 | ||
| 4312 | </div> | |
| 4313 | ||
| 4314 | </td> | |
| 4315 | ||
| 4316 | ||
| 4317 | <!--Severi ty Free-Te xt --> | |
| 4318 | <!-- <td s tyle="over flow:hidde n; white-s pace:nowra p; width:1 00px;"> <x sl:call-te mplate | |
| 4319 | name="na "/> </td> --> | |
| 4320 | <!--Severi ty Coded - -> | |
| 4321 | <!-- <td s tyle="over flow:hidde n; white-s pace:nowra p; width:1 00px;"> <x sl:call-te mplate | |
| 4322 | name="na "/> </td> --> | |
| 4323 | ||
| 4324 | ||
| 4325 | <!--source --> | |
| 4326 | ||
| 4327 | <td> | |
| 4328 | ||
| 4329 | <div | |
| 4330 | style="ove rflow:hidd en; white- space:nowr ap; width: 150px;" | |
| 4331 | > | |
| 4332 | ||
| 4333 | <xsl:varia ble | |
| 4334 | name="sour ce" | |
| 4335 | > | |
| 4336 | ||
| 4337 | <xsl:call- template | |
| 4338 | name="getA llergySour ce" | |
| 4339 | > | |
| 4340 | ||
| 4341 | <xsl:with- param | |
| 4342 | name="row" | |
| 4343 | select="$r ow" | |
| 4344 | /> | |
| 4345 | ||
| 4346 | </xsl:call -template> | |
| 4347 | ||
| 4348 | </xsl:vari able> | |
| 4349 | ||
| 4350 | <xsl:choos e> | |
| 4351 | ||
| 4352 | <xsl:when | |
| 4353 | test="stri ng-length( $source)>1 " | |
| 4354 | > | |
| 4355 | ||
| 4356 | <xsl:call- template | |
| 4357 | name="flyo verSpan" | |
| 4358 | > | |
| 4359 | ||
| 4360 | <xsl:with- param | |
| 4361 | name="data " | |
| 4362 | select="$s ource" | |
| 4363 | /> | |
| 4364 | ||
| 4365 | </xsl:call -template> | |
| 4366 | ||
| 4367 | </xsl:when > | |
| 4368 | ||
| 4369 | <xsl:other wise> | |
| 4370 | ||
| 4371 | <xsl:call- template | |
| 4372 | name="na" | |
| 4373 | /> | |
| 4374 | ||
| 4375 | </xsl:othe rwise> | |
| 4376 | ||
| 4377 | </xsl:choo se> | |
| 4378 | ||
| 4379 | </div> | |
| 4380 | ||
| 4381 | </td> | |
| 4382 | ||
| 4383 | </tr> | |
| 4384 | ||
| 4385 | ||
| 4386 | </xsl:temp late> | |
| 4387 | ||
| 4388 | ||
| 4389 | <!-- Proce dures row entry --> | |
| 4390 | ||
| 4391 | <xsl:templ ate | |
| 4392 | name="proc edureRow" | |
| 4393 | > | |
| 4394 | ||
| 4395 | <xsl:param | |
| 4396 | name="row" | |
| 4397 | /> | |
| 4398 | ||
| 4399 | <tr | |
| 4400 | class="sec ond" | |
| 4401 | > | |
| 4402 | ||
| 4403 | ||
| 4404 | <!-- Proce dure Date/ Time --> | |
| 4405 | ||
| 4406 | <td> | |
| 4407 | ||
| 4408 | <div | |
| 4409 | style="ove rflow:hidd en; white- space:nowr ap;" | |
| 4410 | > | |
| 4411 | ||
| 4412 | <xsl:choos e> | |
| 4413 | ||
| 4414 | <xsl:when | |
| 4415 | test="$row /n1:proced ure/n1:eff ectiveTime /@value" | |
| 4416 | > | |
| 4417 | ||
| 4418 | <xsl:call- template | |
| 4419 | name="form atDate" | |
| 4420 | > | |
| 4421 | ||
| 4422 | <xsl:with- param | |
| 4423 | name="date " | |
| 4424 | ||
| 4425 | select="$r ow/n1:proc edure/n1:e ffectiveTi me/@value" | |
| 4426 | /> | |
| 4427 | ||
| 4428 | </xsl:call -template> | |
| 4429 | ||
| 4430 | </xsl:when > | |
| 4431 | ||
| 4432 | <xsl:other wise> | |
| 4433 | ||
| 4434 | <xsl:call- template | |
| 4435 | name="form atDate" | |
| 4436 | > | |
| 4437 | ||
| 4438 | <xsl:with- param | |
| 4439 | name="date " | |
| 4440 | ||
| 4441 | select="$r ow/n1:proc edure/n1:e ffectiveTi me/n1:low/ @value" | |
| 4442 | /> | |
| 4443 | ||
| 4444 | </xsl:call -template> | |
| 4445 | ||
| 4446 | </xsl:othe rwise> | |
| 4447 | ||
| 4448 | </xsl:choo se> | |
| 4449 | ||
| 4450 | </div> | |
| 4451 | ||
| 4452 | </td> | |
| 4453 | ||
| 4454 | ||
| 4455 | <!-- Proce dure Type --> | |
| 4456 | ||
| 4457 | <td> | |
| 4458 | ||
| 4459 | <div | |
| 4460 | style="ove rflow:hidd en; white- space:nowr ap; width: 260px;" | |
| 4461 | > | |
| 4462 | ||
| 4463 | <xsl:varia ble | |
| 4464 | name="type " | |
| 4465 | > | |
| 4466 | ||
| 4467 | <xsl:call- template | |
| 4468 | name="getP rocedureTy pe" | |
| 4469 | > | |
| 4470 | ||
| 4471 | <xsl:with- param | |
| 4472 | name="proc edure" | |
| 4473 | select="$r ow/n1:proc edure" | |
| 4474 | /> | |
| 4475 | ||
| 4476 | </xsl:call -template> | |
| 4477 | ||
| 4478 | </xsl:vari able> | |
| 4479 | ||
| 4480 | <xsl:choos e> | |
| 4481 | ||
| 4482 | <xsl:when | |
| 4483 | test="stri ng-length( $type)>1" | |
| 4484 | > | |
| 4485 | ||
| 4486 | <xsl:call- template | |
| 4487 | name="flyo verSpan" | |
| 4488 | > | |
| 4489 | ||
| 4490 | <xsl:with- param | |
| 4491 | name="data " | |
| 4492 | select="$t ype" | |
| 4493 | /> | |
| 4494 | ||
| 4495 | </xsl:call -template> | |
| 4496 | ||
| 4497 | </xsl:when > | |
| 4498 | ||
| 4499 | <xsl:other wise> | |
| 4500 | ||
| 4501 | <xsl:call- template | |
| 4502 | name="na" | |
| 4503 | /> | |
| 4504 | ||
| 4505 | </xsl:othe rwise> | |
| 4506 | ||
| 4507 | </xsl:choo se> | |
| 4508 | ||
| 4509 | </div> | |
| 4510 | ||
| 4511 | </td> | |
| 4512 | ||
| 4513 | ||
| 4514 | ||
| 4515 | <!-- Proce dure Quali fier --> | |
| 4516 | ||
| 4517 | <td> | |
| 4518 | ||
| 4519 | <div | |
| 4520 | style="ove rflow:hidd en; white- space:nowr ap; width: 260px;" | |
| 4521 | > | |
| 4522 | ||
| 4523 | <xsl:for-e ach | |
| 4524 | select="$r ow/n1:proc edure/n1:c ode/n1:qua lifier" | |
| 4525 | > | |
| 4526 | ||
| 4527 | <xsl:varia ble | |
| 4528 | name="qual ifier" | |
| 4529 | > | |
| 4530 | ||
| 4531 | <xsl:call- template | |
| 4532 | name="getP rocedureQu alifier" | |
| 4533 | > | |
| 4534 | ||
| 4535 | <xsl:with- param | |
| 4536 | name="proc edure" | |
| 4537 | select="." | |
| 4538 | /> | |
| 4539 | ||
| 4540 | </xsl:call -template> | |
| 4541 | ||
| 4542 | </xsl:vari able> | |
| 4543 | ||
| 4544 | <xsl:choos e> | |
| 4545 | ||
| 4546 | <xsl:when | |
| 4547 | test="stri ng-length( $qualifier )>1" | |
| 4548 | > | |
| 4549 | ||
| 4550 | <xsl:call- template | |
| 4551 | name="flyo verSpan" | |
| 4552 | > | |
| 4553 | ||
| 4554 | <xsl:with- param | |
| 4555 | name="data " | |
| 4556 | select="$q ualifier" | |
| 4557 | /> | |
| 4558 | ||
| 4559 | </xsl:call -template> | |
| 4560 | ||
| 4561 | </xsl:when > | |
| 4562 | ||
| 4563 | <xsl:other wise> | |
| 4564 | ||
| 4565 | <xsl:call- template | |
| 4566 | name="na" | |
| 4567 | /> | |
| 4568 | ||
| 4569 | </xsl:othe rwise> | |
| 4570 | ||
| 4571 | </xsl:choo se> | |
| 4572 | ||
| 4573 | <br> | |
| 4574 | </br> | |
| 4575 | ||
| 4576 | </xsl:for- each> | |
| 4577 | ||
| 4578 | </div> | |
| 4579 | ||
| 4580 | </td> | |
| 4581 | ||
| 4582 | ||
| 4583 | ||
| 4584 | ||
| 4585 | <!-- Proce dure Free Text Type --> | |
| 4586 | ||
| 4587 | ||
| 4588 | <td> | |
| 4589 | ||
| 4590 | <div | |
| 4591 | style="ove rflow:hidd en; white- space:nowr ap; width: 260px;" | |
| 4592 | > | |
| 4593 | ||
| 4594 | <xsl:varia ble | |
| 4595 | name="proc FreeText" | |
| 4596 | > | |
| 4597 | ||
| 4598 | <xsl:call- template | |
| 4599 | name="getP rocedureFr eeText" | |
| 4600 | > | |
| 4601 | ||
| 4602 | <xsl:with- param | |
| 4603 | name="proc edure" | |
| 4604 | select="$r ow/n1:proc edure" | |
| 4605 | /> | |
| 4606 | ||
| 4607 | </xsl:call -template> | |
| 4608 | ||
| 4609 | </xsl:vari able> | |
| 4610 | ||
| 4611 | <xsl:choos e> | |
| 4612 | ||
| 4613 | <xsl:when | |
| 4614 | test="stri ng-length( $procFreeT ext)>1" | |
| 4615 | > | |
| 4616 | ||
| 4617 | <xsl:call- template | |
| 4618 | name="flyo verTextSpa n" | |
| 4619 | > | |
| 4620 | ||
| 4621 | <xsl:with- param | |
| 4622 | name="data " | |
| 4623 | select="$p rocFreeTex t" | |
| 4624 | /> | |
| 4625 | ||
| 4626 | </xsl:call -template> | |
| 4627 | ||
| 4628 | </xsl:when > | |
| 4629 | ||
| 4630 | <xsl:other wise> | |
| 4631 | ||
| 4632 | <xsl:call- template | |
| 4633 | name="na" | |
| 4634 | /> | |
| 4635 | ||
| 4636 | </xsl:othe rwise> | |
| 4637 | ||
| 4638 | </xsl:choo se> | |
| 4639 | ||
| 4640 | </div> | |
| 4641 | ||
| 4642 | </td> | |
| 4643 | ||
| 4644 | ||
| 4645 | <!-- Proce dure Provi der --> | |
| 4646 | ||
| 4647 | <td> | |
| 4648 | ||
| 4649 | <div | |
| 4650 | style="ove rflow:hidd en; white- space:nowr ap; width: 180px;" | |
| 4651 | > | |
| 4652 | ||
| 4653 | <xsl:varia ble | |
| 4654 | name="proc Provider" | |
| 4655 | > | |
| 4656 | ||
| 4657 | <xsl:call- template | |
| 4658 | name="getP rocedurePr ovider" | |
| 4659 | > | |
| 4660 | ||
| 4661 | <xsl:with- param | |
| 4662 | name="proc edure" | |
| 4663 | select="$r ow/n1:proc edure" | |
| 4664 | /> | |
| 4665 | ||
| 4666 | </xsl:call -template> | |
| 4667 | ||
| 4668 | </xsl:vari able> | |
| 4669 | ||
| 4670 | <xsl:choos e> | |
| 4671 | ||
| 4672 | <xsl:when | |
| 4673 | test="stri ng-length( $procProvi der)>1" | |
| 4674 | > | |
| 4675 | ||
| 4676 | <xsl:call- template | |
| 4677 | name="flyo verSpan" | |
| 4678 | > | |
| 4679 | ||
| 4680 | <xsl:with- param | |
| 4681 | name="data " | |
| 4682 | select="$p rocProvide r" | |
| 4683 | /> | |
| 4684 | ||
| 4685 | </xsl:call -template> | |
| 4686 | ||
| 4687 | </xsl:when > | |
| 4688 | ||
| 4689 | <xsl:other wise> | |
| 4690 | ||
| 4691 | <xsl:call- template | |
| 4692 | name="na" | |
| 4693 | /> | |
| 4694 | ||
| 4695 | </xsl:othe rwise> | |
| 4696 | ||
| 4697 | </xsl:choo se> | |
| 4698 | ||
| 4699 | </div> | |
| 4700 | ||
| 4701 | </td> | |
| 4702 | ||
| 4703 | ||
| 4704 | <!-- Proce dure Sourc e --> | |
| 4705 | ||
| 4706 | <td> | |
| 4707 | ||
| 4708 | <div | |
| 4709 | style="ove rflow:hidd en; white- space:nowr ap; width: 180px;" | |
| 4710 | > | |
| 4711 | ||
| 4712 | <xsl:varia ble | |
| 4713 | name="proc Source" | |
| 4714 | > | |
| 4715 | ||
| 4716 | <xsl:call- template | |
| 4717 | name="getP rocedureSo urce" | |
| 4718 | > | |
| 4719 | ||
| 4720 | <xsl:with- param | |
| 4721 | name="proc edure" | |
| 4722 | select="$r ow/n1:proc edure" | |
| 4723 | /> | |
| 4724 | ||
| 4725 | </xsl:call -template> | |
| 4726 | ||
| 4727 | </xsl:vari able> | |
| 4728 | ||
| 4729 | <xsl:choos e> | |
| 4730 | ||
| 4731 | <xsl:when | |
| 4732 | test="stri ng-length( $procSourc e)>1" | |
| 4733 | > | |
| 4734 | ||
| 4735 | <xsl:call- template | |
| 4736 | name="flyo verSpan" | |
| 4737 | > | |
| 4738 | ||
| 4739 | <xsl:with- param | |
| 4740 | name="data " | |
| 4741 | select="$p rocSource" | |
| 4742 | /> | |
| 4743 | ||
| 4744 | </xsl:call -template> | |
| 4745 | ||
| 4746 | </xsl:when > | |
| 4747 | ||
| 4748 | <xsl:other wise> | |
| 4749 | ||
| 4750 | <xsl:call- template | |
| 4751 | name="na" | |
| 4752 | /> | |
| 4753 | ||
| 4754 | </xsl:othe rwise> | |
| 4755 | ||
| 4756 | </xsl:choo se> | |
| 4757 | ||
| 4758 | </div> | |
| 4759 | ||
| 4760 | </td> | |
| 4761 | ||
| 4762 | </tr> | |
| 4763 | ||
| 4764 | </xsl:temp late> | |
| 4765 | ||
| 4766 | ||
| 4767 | ||
| 4768 | ||
| 4769 | ||
| 4770 | ||
| 4771 | ||
| 4772 | ||
| 4773 | ||
| 4774 | ||
| 4775 | ||
| 4776 | ||
| 4777 | ||
| 4778 | ||
| 4779 | ||
| 4780 | ||
| 4781 | ||
| 4782 | ||
| 4783 | ||
| 4784 | ||
| 4785 | ||
| 4786 | ||
| 4787 | ||
| 4788 | ||
| 4789 | ||
| 4790 | ||
| 4791 | ||
| 4792 | ||
| 4793 | ||
| 4794 | ||
| 4795 | ||
| 4796 | ||
| 4797 | ||
| 4798 | ||
| 4799 | ||
| 4800 | ||
| 4801 | ||
| 4802 | ||
| 4803 | ||
| 4804 | ||
| 4805 | <!-- labs entry row --> | |
| 4806 | ||
| 4807 | <xsl:templ ate | |
| 4808 | name="labs Row" | |
| 4809 | > | |
| 4810 | ||
| 4811 | <xsl:param | |
| 4812 | name="row" | |
| 4813 | /> | |
| 4814 | ||
| 4815 | ||
| 4816 | <xsl:choos e> | |
| 4817 | ||
| 4818 | <xsl:when | |
| 4819 | test="stri ng-length( $row/n1:or ganizer)!= 0" | |
| 4820 | > | |
| 4821 | ||
| 4822 | <tr> | |
| 4823 | ||
| 4824 | <td> | |
| 4825 | ||
| 4826 | <div | |
| 4827 | style="ove rflow:hidd en; white- space:nowr ap;" | |
| 4828 | > | |
| 4829 | ||
| 4830 | <xsl:choos e> | |
| 4831 | ||
| 4832 | <xsl:when | |
| 4833 | ||
| 4834 | test="stri ng-length( $row/n1:or ganizer/n1 :effective Time/@valu e)>0" | |
| 4835 | > | |
| 4836 | ||
| 4837 | <xsl:call- template | |
| 4838 | name="form atDate" | |
| 4839 | > | |
| 4840 | ||
| 4841 | <xsl:with- param | |
| 4842 | name="date " | |
| 4843 | ||
| 4844 | select="$r ow/n1:orga nizer/n1:e ffectiveTi me/@value" | |
| 4845 | /> | |
| 4846 | ||
| 4847 | </xsl:call -template> | |
| 4848 | ||
| 4849 | </xsl:when > | |
| 4850 | ||
| 4851 | <xsl:when | |
| 4852 | ||
| 4853 | test="stri ng-length( $row/n1:or ganizer/n1 :effective Time/n1:lo w/@value)> 0" | |
| 4854 | > | |
| 4855 | ||
| 4856 | <xsl:call- template | |
| 4857 | name="form atDate" | |
| 4858 | > | |
| 4859 | ||
| 4860 | <xsl:with- param | |
| 4861 | name="date " | |
| 4862 | ||
| 4863 | select="$r ow/n1:orga nizer/n1:e ffectiveTi me//n1:low /@value" | |
| 4864 | /> | |
| 4865 | ||
| 4866 | </xsl:call -template> | |
| 4867 | ||
| 4868 | </xsl:when > | |
| 4869 | ||
| 4870 | <xsl:when | |
| 4871 | ||
| 4872 | test="stri ng-length( $row/n1:or ganizer/n1 :component /n1:proced ure/n1:eff ectiveTime /@value)>0 " | |
| 4873 | > | |
| 4874 | ||
| 4875 | <xsl:call- template | |
| 4876 | name="form atDate" | |
| 4877 | > | |
| 4878 | ||
| 4879 | <xsl:with- param | |
| 4880 | name="date " | |
| 4881 | ||
| 4882 | select="$r ow/n1:orga nizer/n1:c omponent/n 1:procedur e/n1:effec tiveTime/@ value" | |
| 4883 | /> | |
| 4884 | ||
| 4885 | </xsl:call -template> | |
| 4886 | ||
| 4887 | </xsl:when > | |
| 4888 | ||
| 4889 | <xsl:other wise> | |
| 4890 | ||
| 4891 | <xsl:text> | |
| 4892 | Not Avail able | |
| 4893 | </xsl:text > | |
| 4894 | ||
| 4895 | </xsl:othe rwise> | |
| 4896 | ||
| 4897 | </xsl:choo se> | |
| 4898 | ||
| 4899 | </div> | |
| 4900 | ||
| 4901 | </td> | |
| 4902 | ||
| 4903 | <td> | |
| 4904 | ||
| 4905 | <xsl:choos e> | |
| 4906 | ||
| 4907 | <xsl:when | |
| 4908 | test="stri ng-length( $row/n1:or ganizer/n1 :code/@dis playName)" | |
| 4909 | > | |
| 4910 | ||
| 4911 | <xsl:value -of | |
| 4912 | select="$r ow/n1:orga nizer/n1:c ode/@displ ayName" | |
| 4913 | /> | |
| 4914 | ||
| 4915 | </xsl:when > | |
| 4916 | ||
| 4917 | <xsl:when | |
| 4918 | ||
| 4919 | test="stri ng-length( $row/n1:or ganizer/n1 :code/n1:o riginalTex t)" | |
| 4920 | > | |
| 4921 | ||
| 4922 | <xsl:value -of | |
| 4923 | select="$r ow/n1:orga nizer/n1:c ode/n1:ori ginalText" | |
| 4924 | /> | |
| 4925 | ||
| 4926 | </xsl:when > | |
| 4927 | ||
| 4928 | </xsl:choo se> | |
| 4929 | ||
| 4930 | ||
| 4931 | </td> | |
| 4932 | ||
| 4933 | <!-- Sourc e --> | |
| 4934 | ||
| 4935 | <td> | |
| 4936 | ||
| 4937 | <div | |
| 4938 | style="ove rflow:hidd en; " | |
| 4939 | > | |
| 4940 | ||
| 4941 | <xsl:choos e> | |
| 4942 | ||
| 4943 | <xsl:when | |
| 4944 | ||
| 4945 | test="$row /n1:organi zer/n1:per former/n1: assignedEn tity/n1:re presentedO rganizatio n/n1:name" | |
| 4946 | > | |
| 4947 | ||
| 4948 | <xsl:value -of | |
| 4949 | ||
| 4950 | select="$r ow/n1:orga nizer/n1:p erformer/n 1:assigned Entity/n1: represente dOrganizat ion/n1:nam e" | |
| 4951 | /> | |
| 4952 | ||
| 4953 | </xsl:when > | |
| 4954 | ||
| 4955 | <xsl:when | |
| 4956 | ||
| 4957 | test="$row /n1:organi zer/n1:aut hor/n1:ass ignedAutho r/n1:repre sentedOrga nization/n 1:name" | |
| 4958 | > | |
| 4959 | ||
| 4960 | <xsl:value -of | |
| 4961 | ||
| 4962 | select="$r ow/n1:orga nizer/n1:a uthor/n1:a ssignedAut hor/n1:rep resentedOr ganization /n1:name" | |
| 4963 | /> | |
| 4964 | ||
| 4965 | </xsl:when > | |
| 4966 | ||
| 4967 | </xsl:choo se> | |
| 4968 | ||
| 4969 | </div> | |
| 4970 | ||
| 4971 | </td> | |
| 4972 | ||
| 4973 | <td> | |
| 4974 | ||
| 4975 | <xsl:text> | |
| 4976 | -- | |
| 4977 | </xsl:text > | |
| 4978 | ||
| 4979 | </td> | |
| 4980 | ||
| 4981 | <td> | |
| 4982 | ||
| 4983 | <xsl:text> | |
| 4984 | -- | |
| 4985 | </xsl:text > | |
| 4986 | ||
| 4987 | </td> | |
| 4988 | ||
| 4989 | <td> | |
| 4990 | ||
| 4991 | <xsl:text> | |
| 4992 | -- | |
| 4993 | </xsl:text > | |
| 4994 | ||
| 4995 | </td> | |
| 4996 | ||
| 4997 | <!-- Statu s --> | |
| 4998 | ||
| 4999 | <td> | |
| 5000 | ||
| 5001 | <div | |
| 5002 | style="ove rflow:hidd en; white- space:nowr ap;" | |
| 5003 | > | |
| 5004 | ||
| 5005 | <xsl:value -of | |
| 5006 | select="$r ow/n1:orga nizer/n1:s tatusCode/ @code" | |
| 5007 | /> | |
| 5008 | ||
| 5009 | </div> | |
| 5010 | ||
| 5011 | </td> | |
| 5012 | ||
| 5013 | <td> | |
| 5014 | ||
| 5015 | <xsl:text> | |
| 5016 | -- | |
| 5017 | </xsl:text > | |
| 5018 | ||
| 5019 | </td> | |
| 5020 | ||
| 5021 | ||
| 5022 | ||
| 5023 | </tr> | |
| 5024 | ||
| 5025 | ||
| 5026 | <xsl:for-e ach | |
| 5027 | select="$r ow/n1:orga nizer/n1:c omponent" | |
| 5028 | > | |
| 5029 | ||
| 5030 | <tr | |
| 5031 | class="sec ond" | |
| 5032 | > | |
| 5033 | ||
| 5034 | <!-- Date --> | |
| 5035 | ||
| 5036 | <td> | |
| 5037 | ||
| 5038 | <xsl:text> | |
| 5039 | -- | |
| 5040 | </xsl:text > | |
| 5041 | ||
| 5042 | </td> | |
| 5043 | ||
| 5044 | <!-- Test --> | |
| 5045 | ||
| 5046 | <td> | |
| 5047 | ||
| 5048 | <div | |
| 5049 | style="ove rflow:hidd en; white- space:nowr ap;" | |
| 5050 | > | |
| 5051 | ||
| 5052 | <xsl:choos e> | |
| 5053 | ||
| 5054 | <xsl:when | |
| 5055 | ||
| 5056 | test="stri ng-length( n1:observa tion/n1:co de/@displa yName)!=0" | |
| 5057 | > | |
| 5058 | ||
| 5059 | <xsl:value -of | |
| 5060 | select="n1 :observati on/n1:code /@displayN ame" | |
| 5061 | /> | |
| 5062 | ||
| 5063 | </xsl:when > | |
| 5064 | ||
| 5065 | <xsl:when | |
| 5066 | ||
| 5067 | test="stri ng-length( n1:observa tion/n1:co de/n1:orig inalText)! =0" | |
| 5068 | > | |
| 5069 | ||
| 5070 | <xsl:value -of | |
| 5071 | select="n1 :observati on/n1:code /n1:origin alText" | |
| 5072 | /> | |
| 5073 | ||
| 5074 | </xsl:when > | |
| 5075 | ||
| 5076 | <xsl:other wise> | |
| 5077 | ||
| 5078 | <xsl:varia ble | |
| 5079 | name="labR eference" | |
| 5080 | ||
| 5081 | select="n1 :observati on/n1:text /n1:refere nce/@value " | |
| 5082 | /> | |
| 5083 | ||
| 5084 | <xsl:value -of | |
| 5085 | ||
| 5086 | select=".. /n1:text/n 1:table/n1 :tbody/n1: tr/n1:td/n 1:content[ @ID=$labRe ference]" | |
| 5087 | /> | |
| 5088 | ||
| 5089 | </xsl:othe rwise> | |
| 5090 | ||
| 5091 | </xsl:choo se> | |
| 5092 | ||
| 5093 | </div> | |
| 5094 | ||
| 5095 | </td> | |
| 5096 | ||
| 5097 | ||
| 5098 | <!-- Sourc e --> | |
| 5099 | ||
| 5100 | <td> | |
| 5101 | ||
| 5102 | <xsl:text> | |
| 5103 | -- | |
| 5104 | </xsl:text > | |
| 5105 | ||
| 5106 | </td> | |
| 5107 | ||
| 5108 | ||
| 5109 | ||
| 5110 | <!-- Resul t - Unit - -> | |
| 5111 | ||
| 5112 | <td> | |
| 5113 | ||
| 5114 | <div | |
| 5115 | style="ove rflow:hidd en; white- space:nowr ap;" | |
| 5116 | > | |
| 5117 | ||
| 5118 | <xsl:choos e> | |
| 5119 | ||
| 5120 | <xsl:when | |
| 5121 | test="stri ng-length( n1:observa tion/n1:va lue/@value )!=0" | |
| 5122 | > | |
| 5123 | ||
| 5124 | <xsl:value -of | |
| 5125 | select="n1 :observati on/n1:valu e/@value" | |
| 5126 | /> | |
| 5127 | ||
| 5128 | <xsl:if | |
| 5129 | test="n1:o bservation /n1:value/ @unit" | |
| 5130 | > | |
| 5131 | ||
| 5132 | <xsl:text> | |
| 5133 | ||
| 5134 | </xsl:text > | |
| 5135 | ||
| 5136 | <xsl:value -of | |
| 5137 | select="n1 :observati on/n1:valu e/@unit" | |
| 5138 | /> | |
| 5139 | ||
| 5140 | </xsl:if> | |
| 5141 | ||
| 5142 | </xsl:when > | |
| 5143 | ||
| 5144 | <xsl:other wise> | |
| 5145 | ||
| 5146 | <xsl:choos e> | |
| 5147 | ||
| 5148 | <xsl:when | |
| 5149 | ||
| 5150 | test="stri ng-length( n1:observa tion/n1:va lue/n1:hig h/@value)! =0" | |
| 5151 | > | |
| 5152 | ||
| 5153 | <xsl:value -of | |
| 5154 | select="n1 :observati on/n1:valu e/n1:high/ @value" | |
| 5155 | /> | |
| 5156 | ||
| 5157 | <xsl:if | |
| 5158 | test="n1:o bservation /n1:value/ n1:high/@u nit" | |
| 5159 | > | |
| 5160 | ||
| 5161 | <xsl:text> | |
| 5162 | ||
| 5163 | </xsl:text > | |
| 5164 | ||
| 5165 | <xsl:value -of | |
| 5166 | select="n1 :observati on/n1:valu e/n1:high/ @unit" | |
| 5167 | /> | |
| 5168 | ||
| 5169 | </xsl:if> | |
| 5170 | ||
| 5171 | </xsl:when > | |
| 5172 | ||
| 5173 | <xsl:other wise> | |
| 5174 | ||
| 5175 | <xsl:choos e> | |
| 5176 | ||
| 5177 | <xsl:when | |
| 5178 | ||
| 5179 | test="stri ng-length( n1:observa tion/n1:va lue/n1:low /@value)!= 0" | |
| 5180 | > | |
| 5181 | ||
| 5182 | <xsl:value -of | |
| 5183 | select="n1 :observati on/n1:valu e/n1:low/@ value" | |
| 5184 | /> | |
| 5185 | ||
| 5186 | <xsl:if | |
| 5187 | test="n1:o bservation /n1:value/ n1:low/@un it" | |
| 5188 | > | |
| 5189 | ||
| 5190 | <xsl:text> | |
| 5191 | ||
| 5192 | </xsl:text > | |
| 5193 | ||
| 5194 | <xsl:value -of | |
| 5195 | select="n1 :observati on/n1:valu e/n1:low/@ unit" | |
| 5196 | /> | |
| 5197 | ||
| 5198 | </xsl:if> | |
| 5199 | ||
| 5200 | </xsl:when > | |
| 5201 | ||
| 5202 | <xsl:other wise> | |
| 5203 | ||
| 5204 | <xsl:choos e> | |
| 5205 | ||
| 5206 | <xsl:when | |
| 5207 | test="stri ng-length( n1:observa tion/n1:va lue)!=0" | |
| 5208 | > | |
| 5209 | ||
| 5210 | <xsl:value -of | |
| 5211 | select="n1 :observati on/n1:valu e" | |
| 5212 | /> | |
| 5213 | ||
| 5214 | </xsl:when > | |
| 5215 | ||
| 5216 | <xsl:other wise> | |
| 5217 | ||
| 5218 | <xsl:text> | |
| 5219 | -- | |
| 5220 | </xsl:text > | |
| 5221 | ||
| 5222 | </xsl:othe rwise> | |
| 5223 | ||
| 5224 | </xsl:choo se> | |
| 5225 | ||
| 5226 | </xsl:othe rwise> | |
| 5227 | ||
| 5228 | </xsl:choo se> | |
| 5229 | ||
| 5230 | </xsl:othe rwise> | |
| 5231 | ||
| 5232 | </xsl:choo se> | |
| 5233 | ||
| 5234 | </xsl:othe rwise> | |
| 5235 | ||
| 5236 | </xsl:choo se> | |
| 5237 | ||
| 5238 | </div> | |
| 5239 | ||
| 5240 | </td> | |
| 5241 | ||
| 5242 | <!-- Inter pretation --> | |
| 5243 | ||
| 5244 | <td> | |
| 5245 | ||
| 5246 | <xsl:varia ble | |
| 5247 | name="inte rpRef1" | |
| 5248 | ||
| 5249 | select="n1 :observati on/n1:inte rpretation Code/n1:or iginalText /n1:refere nce/@value " | |
| 5250 | /> | |
| 5251 | ||
| 5252 | <xsl:varia ble | |
| 5253 | name="inte rpRef2" | |
| 5254 | ||
| 5255 | select="$r ow/../n1:t ext/n1:tab le/n1:tbod y/n1:tr/n1 :td/n1:con tent[@ID=s ubstring-a fter($inte rpRef1,'#' )]" | |
| 5256 | /> | |
| 5257 | ||
| 5258 | ||
| 5259 | <div | |
| 5260 | style="ove rflow:hidd en; white- space:nowr ap;" | |
| 5261 | > | |
| 5262 | ||
| 5263 | <xsl:value -of | |
| 5264 | ||
| 5265 | select="n1 :observati on/n1:inte rpretation Code/n1:or iginalText " | |
| 5266 | /> | |
| 5267 | ||
| 5268 | <xsl:if | |
| 5269 | ||
| 5270 | test="stri ng-length( n1:observa tion/n1:in terpretati onCode/n1: originalTe xt)=0" | |
| 5271 | > | |
| 5272 | ||
| 5273 | <xsl:value -of | |
| 5274 | ||
| 5275 | select="n1 :observati on/n1:inte rpretation Code/@disp layName" | |
| 5276 | /> | |
| 5277 | ||
| 5278 | <xsl:if | |
| 5279 | ||
| 5280 | test="stri ng-length( n1:observa tion/n1:in terpretati onCode/@di splayName) =0" | |
| 5281 | > | |
| 5282 | ||
| 5283 | <xsl:text> | |
| 5284 | -- | |
| 5285 | </xsl:text > | |
| 5286 | ||
| 5287 | </xsl:if> | |
| 5288 | ||
| 5289 | </xsl:if> | |
| 5290 | ||
| 5291 | <xsl:if | |
| 5292 | test="stri ng-length( $interpRef 2)" | |
| 5293 | > | |
| 5294 | ||
| 5295 | <xsl:value -of | |
| 5296 | select="$i nterpRef2" | |
| 5297 | /> | |
| 5298 | ||
| 5299 | </xsl:if> | |
| 5300 | ||
| 5301 | </div> | |
| 5302 | ||
| 5303 | </td> | |
| 5304 | ||
| 5305 | <!-- Ref R ange --> | |
| 5306 | ||
| 5307 | <td> | |
| 5308 | ||
| 5309 | <div | |
| 5310 | style="ove rflow:hidd en; white- space:nowr ap;" | |
| 5311 | > | |
| 5312 | ||
| 5313 | <xsl:call- template | |
| 5314 | name="flyo verSpan" | |
| 5315 | > | |
| 5316 | ||
| 5317 | <xsl:with- param | |
| 5318 | name="data " | |
| 5319 | ||
| 5320 | select="n1 :observati on/n1:refe renceRange /n1:observ ationRange /n1:text" | |
| 5321 | /> | |
| 5322 | ||
| 5323 | </xsl:call -template> | |
| 5324 | ||
| 5325 | <xsl:if | |
| 5326 | ||
| 5327 | test="stri ng-length( n1:observa tion/n1:re ferenceRan ge/n1:obse rvationRan ge/n1:text )=0" | |
| 5328 | > | |
| 5329 | ||
| 5330 | <xsl:text> | |
| 5331 | -- | |
| 5332 | </xsl:text > | |
| 5333 | ||
| 5334 | </xsl:if> | |
| 5335 | ||
| 5336 | </div> | |
| 5337 | ||
| 5338 | </td> | |
| 5339 | ||
| 5340 | <!-- Statu s --> | |
| 5341 | ||
| 5342 | <td> | |
| 5343 | ||
| 5344 | <div | |
| 5345 | style="ove rflow:hidd en; white- space:nowr ap;" | |
| 5346 | > | |
| 5347 | ||
| 5348 | <xsl:value -of | |
| 5349 | select="n1 :observati on/n1:stat usCode/@co de" | |
| 5350 | /> | |
| 5351 | ||
| 5352 | </div> | |
| 5353 | ||
| 5354 | </td> | |
| 5355 | ||
| 5356 | <!-- Comme nt --> | |
| 5357 | ||
| 5358 | <td> | |
| 5359 | ||
| 5360 | <div | |
| 5361 | style="ove rflow:hidd en; white- space:nowr ap; width: 150px;" | |
| 5362 | > | |
| 5363 | ||
| 5364 | <xsl:varia ble | |
| 5365 | name="labC ommentRef" | |
| 5366 | ||
| 5367 | select="n1 :observati on/n1:entr yRelations hip/n1:act /n1:text/n 1:referenc e/@value" | |
| 5368 | /> | |
| 5369 | ||
| 5370 | <xsl:choos e> | |
| 5371 | ||
| 5372 | <xsl:when | |
| 5373 | test="$row /../n1:tex t/n1:conte nt[@ID=$la bCommentRe f]" | |
| 5374 | > | |
| 5375 | ||
| 5376 | <xsl:call- template | |
| 5377 | name="flyo verTextSpa n" | |
| 5378 | > | |
| 5379 | ||
| 5380 | <xsl:with- param | |
| 5381 | name="data " | |
| 5382 | ||
| 5383 | select="$r ow/../n1:t ext/n1:con tent[@ID=$ labComment Ref]" | |
| 5384 | /> | |
| 5385 | ||
| 5386 | </xsl:call -template> | |
| 5387 | ||
| 5388 | </xsl:when > | |
| 5389 | ||
| 5390 | <xsl:when | |
| 5391 | ||
| 5392 | test="$row /../n1:tex t/n1:conte nt[@ID=sub string($la bCommentRe f,2)]" | |
| 5393 | > | |
| 5394 | ||
| 5395 | <xsl:call- template | |
| 5396 | name="flyo verTextSpa n" | |
| 5397 | > | |
| 5398 | ||
| 5399 | <xsl:with- param | |
| 5400 | name="data " | |
| 5401 | ||
| 5402 | select="$r ow/../n1:t ext/n1:con tent[@ID=s ubstring($ labComment Ref,2)]" | |
| 5403 | /> | |
| 5404 | ||
| 5405 | </xsl:call -template> | |
| 5406 | ||
| 5407 | </xsl:when > | |
| 5408 | ||
| 5409 | </xsl:choo se> | |
| 5410 | ||
| 5411 | ||
| 5412 | ||
| 5413 | ||
| 5414 | </div> | |
| 5415 | ||
| 5416 | </td> | |
| 5417 | ||
| 5418 | </tr> | |
| 5419 | ||
| 5420 | </xsl:for- each> | |
| 5421 | ||
| 5422 | ||
| 5423 | </xsl:when > | |
| 5424 | ||
| 5425 | <xsl:other wise> | |
| 5426 | ||
| 5427 | <xsl:choos e> | |
| 5428 | ||
| 5429 | <xsl:when | |
| 5430 | ||
| 5431 | test="stri ng-length( $row/n1:ob servation/ n1:code/@d isplayName )!=0 or $r ow/n1:obse rvation/n1 :text/n1:r eference/@ value" | |
| 5432 | > | |
| 5433 | ||
| 5434 | <tr | |
| 5435 | class="sec ond" | |
| 5436 | > | |
| 5437 | ||
| 5438 | <!-- Date --> | |
| 5439 | ||
| 5440 | <td> | |
| 5441 | ||
| 5442 | <div | |
| 5443 | style="ove rflow:hidd en; white- space:nowr ap;" | |
| 5444 | > | |
| 5445 | ||
| 5446 | <xsl:choos e> | |
| 5447 | ||
| 5448 | <xsl:when | |
| 5449 | ||
| 5450 | test="stri ng-length( $row/n1:ob servation/ n1:effecti veTime/@va lue)=0" | |
| 5451 | > | |
| 5452 | ||
| 5453 | <xsl:text> | |
| 5454 | Not Avail able | |
| 5455 | </xsl:text > | |
| 5456 | ||
| 5457 | </xsl:when > | |
| 5458 | ||
| 5459 | <xsl:other wise> | |
| 5460 | ||
| 5461 | <xsl:call- template | |
| 5462 | name="form atDate" | |
| 5463 | > | |
| 5464 | ||
| 5465 | <xsl:with- param | |
| 5466 | name="date " | |
| 5467 | ||
| 5468 | select="$r ow/n1:obse rvation/n1 :effective Time/@valu e" | |
| 5469 | /> | |
| 5470 | ||
| 5471 | </xsl:call -template> | |
| 5472 | ||
| 5473 | </xsl:othe rwise> | |
| 5474 | ||
| 5475 | </xsl:choo se> | |
| 5476 | ||
| 5477 | </div> | |
| 5478 | ||
| 5479 | </td> | |
| 5480 | ||
| 5481 | <!-- Test --> | |
| 5482 | ||
| 5483 | <td> | |
| 5484 | ||
| 5485 | <div | |
| 5486 | style="ove rflow:hidd en;" | |
| 5487 | > | |
| 5488 | ||
| 5489 | <xsl:choos e> | |
| 5490 | ||
| 5491 | <xsl:when | |
| 5492 | ||
| 5493 | test="stri ng-length( $row/n1:ob servation/ n1:code/@d isplayName )!=0" | |
| 5494 | > | |
| 5495 | ||
| 5496 | <xsl:value -of | |
| 5497 | select="$r ow/n1:obse rvation/n1 :code/@dis playName" | |
| 5498 | /> | |
| 5499 | ||
| 5500 | </xsl:when > | |
| 5501 | ||
| 5502 | <xsl:other wise> | |
| 5503 | ||
| 5504 | <xsl:varia ble | |
| 5505 | name="labR eference" | |
| 5506 | ||
| 5507 | select="$r ow/n1:obse rvation/n1 :text/n1:r eference/@ value" | |
| 5508 | /> | |
| 5509 | ||
| 5510 | <!-- <xsl: value-of s elect="../ n1:text/n1 :table/n1: tbody/n1:t r/n1:td/n1 :content[@ ID=$labRef erence]"/> --> | |
| 5511 | ||
| 5512 | <xsl:value -of | |
| 5513 | select="$r ow/n1:obse rvation/n1 :code/n1:o riginalTex t" | |
| 5514 | /> | |
| 5515 | ||
| 5516 | </xsl:othe rwise> | |
| 5517 | ||
| 5518 | </xsl:choo se> | |
| 5519 | ||
| 5520 | </div> | |
| 5521 | ||
| 5522 | </td> | |
| 5523 | ||
| 5524 | ||
| 5525 | ||
| 5526 | <!-- Sourc e --> | |
| 5527 | ||
| 5528 | <td> | |
| 5529 | ||
| 5530 | <div | |
| 5531 | style="ove rflow:hidd en; " | |
| 5532 | > | |
| 5533 | ||
| 5534 | <xsl:value -of | |
| 5535 | ||
| 5536 | select="$r ow/n1:obse rvation/n1 :author/n1 :assignedA uthor/n1:r epresented Organizati on/n1:name " | |
| 5537 | /> | |
| 5538 | ||
| 5539 | <xsl:if | |
| 5540 | ||
| 5541 | test="stri ng-length( $row/n1:ob servation/ n1:author/ n1:assigne dAuthor/n1 :represent edOrganiza tion/n1:na me)=0" | |
| 5542 | > | |
| 5543 | ||
| 5544 | <xsl:text> | |
| 5545 | -- | |
| 5546 | </xsl:text > | |
| 5547 | ||
| 5548 | </xsl:if> | |
| 5549 | ||
| 5550 | </div> | |
| 5551 | ||
| 5552 | </td> | |
| 5553 | ||
| 5554 | ||
| 5555 | <!-- Resul t - Unit - -> | |
| 5556 | ||
| 5557 | <td> | |
| 5558 | ||
| 5559 | <div | |
| 5560 | style="ove rflow:hidd en; white- space:nowr ap;" | |
| 5561 | > | |
| 5562 | ||
| 5563 | <xsl:choos e> | |
| 5564 | ||
| 5565 | <xsl:when | |
| 5566 | ||
| 5567 | test="stri ng-length( $row/n1:ob servation/ n1:value/@ value)!=0" | |
| 5568 | > | |
| 5569 | ||
| 5570 | <xsl:value -of | |
| 5571 | select="$r ow/n1:obse rvation/n1 :value/@va lue" | |
| 5572 | /> | |
| 5573 | ||
| 5574 | <xsl:if | |
| 5575 | test="$row /n1:observ ation/n1:v alue/@unit " | |
| 5576 | > | |
| 5577 | ||
| 5578 | <xsl:text> | |
| 5579 | ||
| 5580 | </xsl:text > | |
| 5581 | ||
| 5582 | <xsl:value -of | |
| 5583 | select="$r ow/n1:obse rvation/n1 :value/@un it" | |
| 5584 | /> | |
| 5585 | ||
| 5586 | </xsl:if> | |
| 5587 | ||
| 5588 | </xsl:when > | |
| 5589 | ||
| 5590 | <xsl:other wise> | |
| 5591 | ||
| 5592 | <xsl:choos e> | |
| 5593 | ||
| 5594 | <xsl:when | |
| 5595 | ||
| 5596 | test="stri ng-length( $row/n1:ob servation/ n1:value/n 1:high/@va lue)!=0" | |
| 5597 | > | |
| 5598 | ||
| 5599 | <xsl:value -of | |
| 5600 | select="$r ow/n1:obse rvation/n1 :value/n1: high/@valu e" | |
| 5601 | /> | |
| 5602 | ||
| 5603 | <xsl:if | |
| 5604 | test="$row /n1:observ ation/n1:v alue/n1:hi gh/@unit" | |
| 5605 | > | |
| 5606 | ||
| 5607 | <xsl:text> | |
| 5608 | ||
| 5609 | </xsl:text > | |
| 5610 | ||
| 5611 | <xsl:value -of | |
| 5612 | select="$r ow/n1:obse rvation/n1 :value/n1: high/@unit " | |
| 5613 | /> | |
| 5614 | ||
| 5615 | </xsl:if> | |
| 5616 | ||
| 5617 | </xsl:when > | |
| 5618 | ||
| 5619 | <xsl:other wise> | |
| 5620 | ||
| 5621 | <xsl:choos e> | |
| 5622 | ||
| 5623 | <xsl:when | |
| 5624 | ||
| 5625 | test="stri ng-length( $row/n1:ob servation/ n1:value/n 1:low/@val ue)!=0" | |
| 5626 | > | |
| 5627 | ||
| 5628 | <xsl:value -of | |
| 5629 | ||
| 5630 | select="$r ow/n1:obse rvation/n1 :value/n1: low/@value " | |
| 5631 | /> | |
| 5632 | ||
| 5633 | <xsl:if | |
| 5634 | test="$row /n1:observ ation/n1:v alue/n1:lo w/@unit" | |
| 5635 | > | |
| 5636 | ||
| 5637 | <xsl:text> | |
| 5638 | ||
| 5639 | </xsl:text > | |
| 5640 | ||
| 5641 | <xsl:value -of | |
| 5642 | ||
| 5643 | select="$r ow/n1:obse rvation/n1 :value/n1: low/@unit" | |
| 5644 | /> | |
| 5645 | ||
| 5646 | </xsl:if> | |
| 5647 | ||
| 5648 | </xsl:when > | |
| 5649 | ||
| 5650 | <xsl:other wise> | |
| 5651 | ||
| 5652 | <xsl:choos e> | |
| 5653 | ||
| 5654 | <xsl:when | |
| 5655 | ||
| 5656 | test="stri ng-length( $row/n1:ob servation/ n1:value)! =0" | |
| 5657 | > | |
| 5658 | ||
| 5659 | <xsl:value -of | |
| 5660 | select="$r ow/n1:obse rvation/n1 :value" | |
| 5661 | /> | |
| 5662 | ||
| 5663 | </xsl:when > | |
| 5664 | ||
| 5665 | <xsl:other wise> | |
| 5666 | ||
| 5667 | <xsl:text> | |
| 5668 | -- | |
| 5669 | </xsl:text > | |
| 5670 | ||
| 5671 | </xsl:othe rwise> | |
| 5672 | ||
| 5673 | </xsl:choo se> | |
| 5674 | ||
| 5675 | </xsl:othe rwise> | |
| 5676 | ||
| 5677 | </xsl:choo se> | |
| 5678 | ||
| 5679 | </xsl:othe rwise> | |
| 5680 | ||
| 5681 | </xsl:choo se> | |
| 5682 | ||
| 5683 | </xsl:othe rwise> | |
| 5684 | ||
| 5685 | </xsl:choo se> | |
| 5686 | ||
| 5687 | </div> | |
| 5688 | ||
| 5689 | </td> | |
| 5690 | ||
| 5691 | <!-- Inter pretation --> | |
| 5692 | ||
| 5693 | <td> | |
| 5694 | ||
| 5695 | <div | |
| 5696 | style="ove rflow:hidd en; white- space:nowr ap;" | |
| 5697 | > | |
| 5698 | ||
| 5699 | <xsl:value -of | |
| 5700 | ||
| 5701 | select="$r ow/n1:obse rvation/n1 :interpret ationCode/ n1:origina lText" | |
| 5702 | /> | |
| 5703 | ||
| 5704 | <xsl:if | |
| 5705 | ||
| 5706 | test="stri ng-length( $row/n1:ob servation/ n1:interpr etationCod e/n1:origi nalText)=0 " | |
| 5707 | > | |
| 5708 | ||
| 5709 | <xsl:value -of | |
| 5710 | ||
| 5711 | select="$r ow/n1:obse rvation/n1 :interpret ationCode/ @displayNa me" | |
| 5712 | /> | |
| 5713 | ||
| 5714 | <xsl:if | |
| 5715 | ||
| 5716 | test="stri ng-length( $row/n1:ob servation/ n1:interpr etationCod e/@display Name)=0" | |
| 5717 | > | |
| 5718 | ||
| 5719 | <xsl:text> | |
| 5720 | -- | |
| 5721 | </xsl:text > | |
| 5722 | ||
| 5723 | </xsl:if> | |
| 5724 | ||
| 5725 | </xsl:if> | |
| 5726 | ||
| 5727 | ||
| 5728 | </div> | |
| 5729 | ||
| 5730 | </td> | |
| 5731 | ||
| 5732 | <!-- Ref R ange --> | |
| 5733 | ||
| 5734 | <td> | |
| 5735 | ||
| 5736 | <div | |
| 5737 | style="ove rflow:hidd en; white- space:nowr ap;" | |
| 5738 | > | |
| 5739 | ||
| 5740 | <xsl:call- template | |
| 5741 | name="flyo verSpan" | |
| 5742 | > | |
| 5743 | ||
| 5744 | <xsl:with- param | |
| 5745 | name="data " | |
| 5746 | ||
| 5747 | select="$r ow/n1:obse rvation/n1 :reference Range/n1:o bservation Range/n1:t ext" | |
| 5748 | /> | |
| 5749 | ||
| 5750 | </xsl:call -template> | |
| 5751 | ||
| 5752 | <xsl:if | |
| 5753 | ||
| 5754 | test="stri ng-length( $row/n1:ob servation/ n1:referen ceRange/n1 :observati onRange/n1 :text)=0" | |
| 5755 | > | |
| 5756 | ||
| 5757 | <xsl:text> | |
| 5758 | -- | |
| 5759 | </xsl:text > | |
| 5760 | ||
| 5761 | </xsl:if> | |
| 5762 | ||
| 5763 | </div> | |
| 5764 | ||
| 5765 | </td> | |
| 5766 | ||
| 5767 | <!-- Statu s --> | |
| 5768 | ||
| 5769 | <td> | |
| 5770 | ||
| 5771 | <div | |
| 5772 | style="ove rflow:hidd en; white- space:nowr ap;" | |
| 5773 | > | |
| 5774 | ||
| 5775 | <xsl:value -of | |
| 5776 | select="$r ow/n1:obse rvation/n1 :statusCod e/@code" | |
| 5777 | /> | |
| 5778 | ||
| 5779 | </div> | |
| 5780 | ||
| 5781 | </td> | |
| 5782 | ||
| 5783 | <td> | |
| 5784 | ||
| 5785 | <xsl:text> | |
| 5786 | -- | |
| 5787 | </xsl:text > | |
| 5788 | ||
| 5789 | </td> | |
| 5790 | ||
| 5791 | ||
| 5792 | </tr> | |
| 5793 | ||
| 5794 | </xsl:when > | |
| 5795 | ||
| 5796 | </xsl:choo se> | |
| 5797 | ||
| 5798 | </xsl:othe rwise> | |
| 5799 | ||
| 5800 | </xsl:choo se> | |
| 5801 | ||
| 5802 | </xsl:temp late> | |
| 5803 | ||
| 5804 | <!-- immun ization en try row -B ackup of o riginal te mplate - A nand 07/01 /11 | |
| 5805 | <xsl :template name="immu nizationsR ow"> <xsl: param name ="row"/> < xsl:variab le | |
| 5806 | name ="rowData" select="$ row/n1:sub stanceAdmi nistration /n1:consum able/n1:ma nufactured Product/n1 :manufactu redMateria l"/> | |
| 5807 | <xsl :variable name="rowS ubj" selec t="$row/n1 :substance Administra tion/n1:en tryRelatio nship[@typ eCode='SUB J']/n1:obs ervation"/ > | |
| 5808 | <xsl :variable name="rowC ause" sele ct="$row/n 1:substanc eAdministr ation/n1:e ntryRelati onship[@ty peCode='CA US']/n1:ob servation" /> | |
| 5809 | <tr class="sec ond"> <td> <div styl e="overflo w:hidden; white-spac e:nowrap; | |
| 5810 | widt h:360px;"> <xsl:vari able name= "immRefere nce" selec t="$rowDat a/n1:code/ n1:origina lText/n1:r eference/@ value"/> | |
| 5811 | <xsl :choose> < xsl:when t est="../n1 :text/n1:c ontent[@ID =starts-wi th($immRef erence,'#' )]"> | |
| 5812 | <xsl :value-of select=".. /n1:text/n 1:content[ @ID=starts -with($imm Reference, '#')]"/> | |
| 5813 | <xsl :call-temp late name= "flyoverSp an"> <xsl: with-param name="dat a" select= "../n1:tex t/n1:conte nt[@ID=sub string($im mReference ,2)]"/> | |
| 5814 | </xs l:call-tem plate> </x sl:when> < xsl:when t est="../n1 :text/n1:c ontent[@ID =$immRefer ence]"> | |
| 5815 | <xsl :value-of select=".. /n1:text/n 1:content[ @ID=$immRe ference]"/ > <xsl:cal l-template | |
| 5816 | name ="flyoverS pan"> <xsl :with-para m name="da ta" select ="../n1:te xt/n1:cont ent[@ID=$i mmReferenc e]"/> | |
| 5817 | </xs l:call-tem plate> </x sl:when> < /xsl:choos e> <xsl:va lue-of sel ect="../n1 :text/n1:t able/n1:tb ody/n1:tr/ n1:td/n1:c ontent[@ID =$immRefer ence]"/> | |
| 5818 | </di v> </td> s eries <td> <div styl e="overflo w:hidden; white-spac e:nowrap; | |
| 5819 | widt h:60px;"> <xsl:call- template n ame="flyov erSpan"> < xsl:with-p aram name= "data" | |
| 5820 | sele ct="$rowSu bj/n1:valu e"/> </xsl :call-temp late> </di v> </td> - -> | |
| 5821 | ||
| 5822 | <!-- immun ization en try row -- > | |
| 5823 | ||
| 5824 | <!-- Repla ced origin al immuniz ationsRow Template - Anand 07/ 01/11 --> | |
| 5825 | ||
| 5826 | <xsl:templ ate | |
| 5827 | name="immu nizationsR ow" | |
| 5828 | > | |
| 5829 | ||
| 5830 | <xsl:param | |
| 5831 | name="row" | |
| 5832 | /> | |
| 5833 | ||
| 5834 | <xsl:varia ble | |
| 5835 | name="rowD ata" | |
| 5836 | ||
| 5837 | select="$r ow/n1:subs tanceAdmin istration/ n1:consuma ble/n1:man ufacturedP roduct/n1: manufactur edMaterial " | |
| 5838 | /> | |
| 5839 | ||
| 5840 | <xsl:varia ble | |
| 5841 | name="rowS ubj" | |
| 5842 | ||
| 5843 | select="$r ow/n1:subs tanceAdmin istration/ n1:entryRe lationship [@typeCode ='SUBJ']/n 1:observat ion" | |
| 5844 | /> | |
| 5845 | ||
| 5846 | <xsl:varia ble | |
| 5847 | name="rowC ause" | |
| 5848 | ||
| 5849 | select="$r ow/n1:subs tanceAdmin istration/ n1:entryRe lationship [@typeCode ='CAUS']/n 1:observat ion" | |
| 5850 | /> | |
| 5851 | ||
| 5852 | <tr | |
| 5853 | class="sec ond" | |
| 5854 | > | |
| 5855 | ||
| 5856 | <!-- name --> | |
| 5857 | ||
| 5858 | <td> | |
| 5859 | ||
| 5860 | <div | |
| 5861 | style="ove rflow:hidd en; white- space:nowr ap; width: 360px;" | |
| 5862 | > | |
| 5863 | ||
| 5864 | <xsl:varia ble | |
| 5865 | name="immu nization" | |
| 5866 | > | |
| 5867 | ||
| 5868 | <xsl:call- template | |
| 5869 | name="getI mmunizatio n" | |
| 5870 | > | |
| 5871 | ||
| 5872 | <xsl:with- param | |
| 5873 | name="manu facturedMa terial" | |
| 5874 | ||
| 5875 | select="$r owData" | |
| 5876 | /> | |
| 5877 | ||
| 5878 | </xsl:call -template> | |
| 5879 | ||
| 5880 | </xsl:vari able> | |
| 5881 | ||
| 5882 | <xsl:choos e> | |
| 5883 | ||
| 5884 | <xsl:when | |
| 5885 | test="stri ng-length( $immunizat ion)>1" | |
| 5886 | > | |
| 5887 | ||
| 5888 | <xsl:call- template | |
| 5889 | name="flyo verSpan" | |
| 5890 | > | |
| 5891 | ||
| 5892 | <xsl:with- param | |
| 5893 | name="data " | |
| 5894 | select="$i mmunizatio n" | |
| 5895 | /> | |
| 5896 | ||
| 5897 | </xsl:call -template> | |
| 5898 | ||
| 5899 | </xsl:when > | |
| 5900 | ||
| 5901 | <xsl:other wise> | |
| 5902 | ||
| 5903 | <xsl:call- template | |
| 5904 | name="na" | |
| 5905 | /> | |
| 5906 | ||
| 5907 | </xsl:othe rwise> | |
| 5908 | ||
| 5909 | </xsl:choo se> | |
| 5910 | ||
| 5911 | </div> | |
| 5912 | ||
| 5913 | </td> | |
| 5914 | ||
| 5915 | <!-- serie s --> | |
| 5916 | ||
| 5917 | <td> | |
| 5918 | ||
| 5919 | <div | |
| 5920 | style="ove rflow:hidd en; white- space:nowr ap; width: 60px;" | |
| 5921 | > | |
| 5922 | ||
| 5923 | <xsl:varia ble | |
| 5924 | name="immu nizationSe ries" | |
| 5925 | > | |
| 5926 | ||
| 5927 | <xsl:call- template | |
| 5928 | name="getI mmunizatio nSeries" | |
| 5929 | > | |
| 5930 | ||
| 5931 | <xsl:with- param | |
| 5932 | name="manu facturedMa terial" | |
| 5933 | ||
| 5934 | select="$r owData" | |
| 5935 | /> | |
| 5936 | ||
| 5937 | </xsl:call -template> | |
| 5938 | ||
| 5939 | </xsl:vari able> | |
| 5940 | ||
| 5941 | <xsl:choos e> | |
| 5942 | ||
| 5943 | <xsl:when | |
| 5944 | test="stri ng-length( $immunizat ionSeries) >1" | |
| 5945 | > | |
| 5946 | ||
| 5947 | <xsl:call- template | |
| 5948 | name="flyo verSpan" | |
| 5949 | > | |
| 5950 | ||
| 5951 | <xsl:with- param | |
| 5952 | name="data " | |
| 5953 | select="$i mmunizatio nSeries" | |
| 5954 | /> | |
| 5955 | ||
| 5956 | </xsl:call -template> | |
| 5957 | ||
| 5958 | </xsl:when > | |
| 5959 | ||
| 5960 | <xsl:other wise> | |
| 5961 | ||
| 5962 | <xsl:call- template | |
| 5963 | name="na" | |
| 5964 | /> | |
| 5965 | ||
| 5966 | </xsl:othe rwise> | |
| 5967 | ||
| 5968 | </xsl:choo se> | |
| 5969 | ||
| 5970 | </div> | |
| 5971 | ||
| 5972 | </td> | |
| 5973 | ||
| 5974 | <!-- effec tive date --> | |
| 5975 | ||
| 5976 | <td> | |
| 5977 | ||
| 5978 | <div | |
| 5979 | style="ove rflow:hidd en; white- space:nowr ap; width: 100;" | |
| 5980 | > | |
| 5981 | ||
| 5982 | <xsl:choos e> | |
| 5983 | ||
| 5984 | <xsl:when | |
| 5985 | ||
| 5986 | test="stri ng-length( $row/n1:su bstanceAdm inistratio n/n1:effec tiveTime/@ value)=0" | |
| 5987 | > | |
| 5988 | ||
| 5989 | <xsl:text> | |
| 5990 | -- Not Ava ilable -- | |
| 5991 | </xsl:text > | |
| 5992 | ||
| 5993 | </xsl:when > | |
| 5994 | ||
| 5995 | <xsl:other wise> | |
| 5996 | ||
| 5997 | <xsl:call- template | |
| 5998 | name="form atDate" | |
| 5999 | > | |
| 6000 | ||
| 6001 | <xsl:with- param | |
| 6002 | name="date " | |
| 6003 | ||
| 6004 | select="$r ow/n1:subs tanceAdmin istration/ n1:effecti veTime/@va lue" | |
| 6005 | /> | |
| 6006 | ||
| 6007 | </xsl:call -template> | |
| 6008 | ||
| 6009 | </xsl:othe rwise> | |
| 6010 | ||
| 6011 | </xsl:choo se> | |
| 6012 | ||
| 6013 | </div> | |
| 6014 | ||
| 6015 | </td> | |
| 6016 | ||
| 6017 | <!-- react ion --> | |
| 6018 | ||
| 6019 | <td> | |
| 6020 | ||
| 6021 | <xsl:value -of | |
| 6022 | select="ro wCause/n1: id//@exten sion" | |
| 6023 | /> | |
| 6024 | ||
| 6025 | <div | |
| 6026 | style="ove rflow:hidd en; white- space:nowr ap; width: 260px;" | |
| 6027 | > | |
| 6028 | ||
| 6029 | <xsl:varia ble | |
| 6030 | name="reac tionRefere nce" | |
| 6031 | select="$r owCause/n1 :id/@exten sion" | |
| 6032 | /> | |
| 6033 | ||
| 6034 | <xsl:varia ble | |
| 6035 | name="reac tion" | |
| 6036 | ||
| 6037 | select=".. /n1:text/n 1:content[ @ID=$react ionReferen ce]" | |
| 6038 | /> | |
| 6039 | ||
| 6040 | <xsl:call- template | |
| 6041 | name="flyo verSpan" | |
| 6042 | > | |
| 6043 | ||
| 6044 | <xsl:with- param | |
| 6045 | name="data " | |
| 6046 | select="$r eaction" | |
| 6047 | /> | |
| 6048 | ||
| 6049 | </xsl:call -template> | |
| 6050 | ||
| 6051 | </div> | |
| 6052 | ||
| 6053 | </td> | |
| 6054 | ||
| 6055 | <!-- comme nts --> | |
| 6056 | ||
| 6057 | <td> | |
| 6058 | ||
| 6059 | <xsl:varia ble | |
| 6060 | name="comm entReferen ce" | |
| 6061 | ||
| 6062 | select="$r ow/n1:subs tanceAdmin istration/ n1:text/n1 :reference /@value" | |
| 6063 | /> | |
| 6064 | ||
| 6065 | ||
| 6066 | <div | |
| 6067 | style="ove rflow:hidd en; white- space:nowr ap; width: 240px;" | |
| 6068 | > | |
| 6069 | ||
| 6070 | <xsl:choos e> | |
| 6071 | ||
| 6072 | <xsl:when | |
| 6073 | test="../n 1:text/n1: content[@I D=$comment Reference] " | |
| 6074 | > | |
| 6075 | ||
| 6076 | <xsl:call- template | |
| 6077 | name="flyo verSpan" | |
| 6078 | > | |
| 6079 | ||
| 6080 | <xsl:with- param | |
| 6081 | name="data " | |
| 6082 | ||
| 6083 | select=".. /n1:text/n 1:content[ @ID=$comme ntReferenc e]" | |
| 6084 | /> | |
| 6085 | ||
| 6086 | </xsl:call -template> | |
| 6087 | ||
| 6088 | </xsl:when > | |
| 6089 | ||
| 6090 | <xsl:when | |
| 6091 | ||
| 6092 | test="../n 1:text/n1: content[@I D=substrin g($comment Reference, 2)]" | |
| 6093 | > | |
| 6094 | ||
| 6095 | <xsl:call- template | |
| 6096 | name="flyo verSpan" | |
| 6097 | > | |
| 6098 | ||
| 6099 | <xsl:with- param | |
| 6100 | name="data " | |
| 6101 | ||
| 6102 | select=".. /n1:text/n 1:content[ @ID=substr ing($comme ntReferenc e,2)]" | |
| 6103 | /> | |
| 6104 | ||
| 6105 | </xsl:call -template> | |
| 6106 | ||
| 6107 | </xsl:when > | |
| 6108 | ||
| 6109 | </xsl:choo se> | |
| 6110 | ||
| 6111 | </div> | |
| 6112 | ||
| 6113 | </td> | |
| 6114 | ||
| 6115 | </tr> | |
| 6116 | ||
| 6117 | </xsl:temp late> | |
| 6118 | ||
| 6119 | ||
| 6120 | <!-- vital s entry ro w --> | |
| 6121 | ||
| 6122 | <xsl:templ ate | |
| 6123 | name="vita lsRow" | |
| 6124 | > | |
| 6125 | ||
| 6126 | <xsl:param | |
| 6127 | name="row" | |
| 6128 | /> | |
| 6129 | ||
| 6130 | <xsl:varia ble | |
| 6131 | name="rowD ata" | |
| 6132 | ||
| 6133 | select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion" | |
| 6134 | /> | |
| 6135 | ||
| 6136 | <xsl:varia ble | |
| 6137 | name="heig ht" | |
| 6138 | ||
| 6139 | select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion/n1:cod e[@code='8 302-2']/.. " | |
| 6140 | /> | |
| 6141 | ||
| 6142 | <xsl:varia ble | |
| 6143 | name="weig ht" | |
| 6144 | ||
| 6145 | select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion/n1:cod e[@code='2 9463-7']/. ." | |
| 6146 | /> | |
| 6147 | ||
| 6148 | <xsl:varia ble | |
| 6149 | name="weig ht1" | |
| 6150 | ||
| 6151 | select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion/n1:cod e[@code='3 141-9']/.. " | |
| 6152 | /> | |
| 6153 | ||
| 6154 | <xsl:varia ble | |
| 6155 | name="syst olic" | |
| 6156 | ||
| 6157 | select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion/n1:cod e[@code='8 480-6']/.. " | |
| 6158 | /> | |
| 6159 | ||
| 6160 | <xsl:varia ble | |
| 6161 | name="dias tolic" | |
| 6162 | ||
| 6163 | select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion/n1:cod e[@code='8 462-4']/.. " | |
| 6164 | /> | |
| 6165 | ||
| 6166 | <xsl:varia ble | |
| 6167 | name="temp " | |
| 6168 | ||
| 6169 | select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion/n1:cod e[@code='8 310-5']/.. " | |
| 6170 | /> | |
| 6171 | ||
| 6172 | <xsl:varia ble | |
| 6173 | name="puls e" | |
| 6174 | ||
| 6175 | select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion/n1:cod e[@code='8 867-4']/.. " | |
| 6176 | /> | |
| 6177 | ||
| 6178 | <xsl:varia ble | |
| 6179 | name="resp " | |
| 6180 | ||
| 6181 | select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion/n1:cod e[@code='9 279-1']/.. " | |
| 6182 | /> | |
| 6183 | ||
| 6184 | <xsl:varia ble | |
| 6185 | name="pox" | |
| 6186 | ||
| 6187 | select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion/n1:cod e[@code='2 710-2']/.. " | |
| 6188 | /> | |
| 6189 | ||
| 6190 | <tr | |
| 6191 | class="sec ond" | |
| 6192 | > | |
| 6193 | ||
| 6194 | <!-- obser vation tex t --> | |
| 6195 | ||
| 6196 | <!-- probl em effecti ve date -- > | |
| 6197 | ||
| 6198 | <td> | |
| 6199 | ||
| 6200 | <div | |
| 6201 | style="ove rflow:hidd en; white- space:nowr ap; width: 80px;" | |
| 6202 | > | |
| 6203 | ||
| 6204 | <xsl:choos e> | |
| 6205 | ||
| 6206 | <xsl:when | |
| 6207 | test="stri ng-length( $rowData/n 1:effectiv eTime/@val ue)=0" | |
| 6208 | > | |
| 6209 | ||
| 6210 | <xsl:text> | |
| 6211 | -- Not Ava ilable -- | |
| 6212 | </xsl:text > | |
| 6213 | ||
| 6214 | </xsl:when > | |
| 6215 | ||
| 6216 | <xsl:other wise> | |
| 6217 | ||
| 6218 | <xsl:call- template | |
| 6219 | name="form atDate" | |
| 6220 | > | |
| 6221 | ||
| 6222 | <xsl:with- param | |
| 6223 | name="date " | |
| 6224 | ||
| 6225 | select="$r owData/n1: effectiveT ime/@value " | |
| 6226 | /> | |
| 6227 | ||
| 6228 | </xsl:call -template> | |
| 6229 | ||
| 6230 | </xsl:othe rwise> | |
| 6231 | ||
| 6232 | </xsl:choo se> | |
| 6233 | ||
| 6234 | </div> | |
| 6235 | ||
| 6236 | </td> | |
| 6237 | ||
| 6238 | <!-- temp --> | |
| 6239 | ||
| 6240 | <td> | |
| 6241 | ||
| 6242 | <div | |
| 6243 | style="ove rflow:hidd en; white- space:nowr ap; width: 150px;" | |
| 6244 | > | |
| 6245 | ||
| 6246 | <xsl:value -of | |
| 6247 | select="$t emp/n1:val ue/@value" | |
| 6248 | /> | |
| 6249 | ||
| 6250 | <xsl:value -of | |
| 6251 | select="$t emp/n1:val ue/@unit" | |
| 6252 | /> | |
| 6253 | ||
| 6254 | ||
| 6255 | </div> | |
| 6256 | ||
| 6257 | </td> | |
| 6258 | ||
| 6259 | <!-- pulse --> | |
| 6260 | ||
| 6261 | <td> | |
| 6262 | ||
| 6263 | <div | |
| 6264 | style="ove rflow:hidd en; white- space:nowr ap; width: 40px;" | |
| 6265 | > | |
| 6266 | ||
| 6267 | <xsl:value -of | |
| 6268 | select="$p ulse/n1:va lue/@value " | |
| 6269 | /> | |
| 6270 | ||
| 6271 | </div> | |
| 6272 | ||
| 6273 | </td> | |
| 6274 | ||
| 6275 | <!-- resp --> | |
| 6276 | ||
| 6277 | <td> | |
| 6278 | ||
| 6279 | <div | |
| 6280 | style="ove rflow:hidd en; white- space:nowr ap; width: 40px;" | |
| 6281 | > | |
| 6282 | ||
| 6283 | <xsl:value -of | |
| 6284 | select="$r esp/n1:val ue/@value" | |
| 6285 | /> | |
| 6286 | ||
| 6287 | </div> | |
| 6288 | ||
| 6289 | </td> | |
| 6290 | ||
| 6291 | <!-- BP sy stolic / d iastolic - -> | |
| 6292 | ||
| 6293 | <td> | |
| 6294 | ||
| 6295 | <div | |
| 6296 | style="ove rflow:hidd en; white- space:nowr ap; width: 180px;" | |
| 6297 | > | |
| 6298 | ||
| 6299 | <xsl:value -of | |
| 6300 | select="$s ystolic/n1 :value/@va lue" | |
| 6301 | /> | |
| 6302 | / | |
| 6303 | ||
| 6304 | <xsl:value -of | |
| 6305 | select="$d iastolic/n 1:value/@v alue" | |
| 6306 | /> | |
| 6307 | ||
| 6308 | </div> | |
| 6309 | ||
| 6310 | </td> | |
| 6311 | ||
| 6312 | <!-- heigh t --> | |
| 6313 | ||
| 6314 | <td> | |
| 6315 | ||
| 6316 | <div | |
| 6317 | style="ove rflow:hidd en; white- space:nowr ap; width: 150px;" | |
| 6318 | > | |
| 6319 | ||
| 6320 | <xsl:value -of | |
| 6321 | select="$h eight/n1:v alue/@valu e" | |
| 6322 | /> | |
| 6323 | ||
| 6324 | <xsl:value -of | |
| 6325 | select="$h eight/n1:v alue/@unit " | |
| 6326 | /> | |
| 6327 | ||
| 6328 | </div> | |
| 6329 | ||
| 6330 | </td> | |
| 6331 | ||
| 6332 | <!-- weigh t --> | |
| 6333 | ||
| 6334 | <td> | |
| 6335 | ||
| 6336 | <div | |
| 6337 | style="ove rflow:hidd en; white- space:nowr ap; width: 160px;" | |
| 6338 | > | |
| 6339 | ||
| 6340 | <xsl:if | |
| 6341 | test="$wei ght" | |
| 6342 | > | |
| 6343 | ||
| 6344 | <xsl:value -of | |
| 6345 | select="$w eight/n1:v alue/@valu e" | |
| 6346 | /> | |
| 6347 | ||
| 6348 | <xsl:value -of | |
| 6349 | select="$w eight/n1:v alue/@unit " | |
| 6350 | /> | |
| 6351 | ||
| 6352 | </xsl:if> | |
| 6353 | ||
| 6354 | <xsl:if | |
| 6355 | test="$wei ght1" | |
| 6356 | > | |
| 6357 | ||
| 6358 | <xsl:value -of | |
| 6359 | select="$w eight1/n1: value/@val ue" | |
| 6360 | /> | |
| 6361 | ||
| 6362 | <xsl:value -of | |
| 6363 | select="$w eight1/n1: value/@uni t" | |
| 6364 | /> | |
| 6365 | ||
| 6366 | </xsl:if> | |
| 6367 | ||
| 6368 | ||
| 6369 | </div> | |
| 6370 | ||
| 6371 | </td> | |
| 6372 | ||
| 6373 | <!-- pox - -> | |
| 6374 | ||
| 6375 | <td> | |
| 6376 | ||
| 6377 | <div | |
| 6378 | style="ove rflow:hidd en; white- space:nowr ap; width: 40px;" | |
| 6379 | > | |
| 6380 | ||
| 6381 | <xsl:value -of | |
| 6382 | select="$p ox/n1:valu e/@value" | |
| 6383 | /> | |
| 6384 | ||
| 6385 | </div> | |
| 6386 | ||
| 6387 | </td> | |
| 6388 | ||
| 6389 | <!-- sourc e --> | |
| 6390 | ||
| 6391 | <td> | |
| 6392 | ||
| 6393 | <div | |
| 6394 | style="ove rflow:hidd en; white- space:nowr ap; width: 120px;" | |
| 6395 | > | |
| 6396 | ||
| 6397 | <xsl:value -of | |
| 6398 | ||
| 6399 | select="$r ow/n1:orga nizer/n1:a uthor/n1:a ssignedAut hor/n1:rep resentedOr ganization /n1:name" | |
| 6400 | /> | |
| 6401 | ||
| 6402 | </div> | |
| 6403 | ||
| 6404 | </td> | |
| 6405 | ||
| 6406 | </tr> | |
| 6407 | ||
| 6408 | </xsl:temp late> | |
| 6409 | ||
| 6410 | ||
| 6411 | <!-- flyov er --> | |
| 6412 | ||
| 6413 | <xsl:templ ate | |
| 6414 | name="flyo verSpan" | |
| 6415 | > | |
| 6416 | ||
| 6417 | <xsl:param | |
| 6418 | name="data " | |
| 6419 | /> | |
| 6420 | ||
| 6421 | <xsl:choos e> | |
| 6422 | ||
| 6423 | <xsl:when | |
| 6424 | test="$dat a" | |
| 6425 | > | |
| 6426 | ||
| 6427 | <span | |
| 6428 | onmouseove r='Display Tip(this,2 5,-50)' | |
| 6429 | > | |
| 6430 | ||
| 6431 | <xsl:value -of | |
| 6432 | select="$d ata" | |
| 6433 | /> | |
| 6434 | ||
| 6435 | </span> | |
| 6436 | ||
| 6437 | </xsl:when > | |
| 6438 | ||
| 6439 | <xsl:other wise> | |
| 6440 | ||
| 6441 | <xsl:call- template | |
| 6442 | name="na" | |
| 6443 | /> | |
| 6444 | ||
| 6445 | </xsl:othe rwise> | |
| 6446 | ||
| 6447 | </xsl:choo se> | |
| 6448 | ||
| 6449 | </xsl:temp late> | |
| 6450 | ||
| 6451 | ||
| 6452 | <!-- flyov er Free Te xt --> | |
| 6453 | ||
| 6454 | <xsl:templ ate | |
| 6455 | name="flyo verTextSpa n" | |
| 6456 | > | |
| 6457 | ||
| 6458 | <xsl:param | |
| 6459 | name="data " | |
| 6460 | /> | |
| 6461 | ||
| 6462 | <xsl:choos e> | |
| 6463 | ||
| 6464 | <xsl:when | |
| 6465 | test="$dat a" | |
| 6466 | > | |
| 6467 | ||
| 6468 | <span | |
| 6469 | onmouseove r='Display Text(this, 25,-50)' | |
| 6470 | > | |
| 6471 | ||
| 6472 | <xsl:value -of | |
| 6473 | select="$d ata" | |
| 6474 | /> | |
| 6475 | ||
| 6476 | </span> | |
| 6477 | ||
| 6478 | </xsl:when > | |
| 6479 | ||
| 6480 | <xsl:other wise> | |
| 6481 | ||
| 6482 | <xsl:call- template | |
| 6483 | name="na" | |
| 6484 | /> | |
| 6485 | ||
| 6486 | </xsl:othe rwise> | |
| 6487 | ||
| 6488 | </xsl:choo se> | |
| 6489 | ||
| 6490 | </xsl:temp late> | |
| 6491 | ||
| 6492 | ||
| 6493 | ||
| 6494 | <!-- Title --> | |
| 6495 | ||
| 6496 | <xsl:templ ate | |
| 6497 | match="n1: title" | |
| 6498 | > | |
| 6499 | ||
| 6500 | ||
| 6501 | <h3> | |
| 6502 | ||
| 6503 | <span | |
| 6504 | style="fon t-weight:b old;" | |
| 6505 | > | |
| 6506 | ||
| 6507 | <a | |
| 6508 | name="{gen erate-id(. )}" | |
| 6509 | href="#toc " | |
| 6510 | > | |
| 6511 | ||
| 6512 | <xsl:value -of | |
| 6513 | select="." | |
| 6514 | /> | |
| 6515 | ||
| 6516 | </a> | |
| 6517 | ||
| 6518 | </span> | |
| 6519 | ||
| 6520 | </h3> | |
| 6521 | ||
| 6522 | ||
| 6523 | </xsl:temp late> | |
| 6524 | ||
| 6525 | ||
| 6526 | <!-- Text --> | |
| 6527 | ||
| 6528 | <xsl:templ ate | |
| 6529 | match="n1: text" | |
| 6530 | > | |
| 6531 | ||
| 6532 | <xsl:apply -templates /> | |
| 6533 | ||
| 6534 | </xsl:temp late> | |
| 6535 | ||
| 6536 | ||
| 6537 | <!-- parag raph --> | |
| 6538 | ||
| 6539 | <xsl:templ ate | |
| 6540 | match="n1: paragraph" | |
| 6541 | > | |
| 6542 | ||
| 6543 | <p> | |
| 6544 | ||
| 6545 | <xsl:apply -templates /> | |
| 6546 | ||
| 6547 | </p> | |
| 6548 | ||
| 6549 | </xsl:temp late> | |
| 6550 | ||
| 6551 | ||
| 6552 | <!-- Conte nt w/ dele ted text i s hidden - -> | |
| 6553 | ||
| 6554 | <xsl:templ ate | |
| 6555 | match="n1: content[@r evised='de lete']" | |
| 6556 | /> | |
| 6557 | ||
| 6558 | ||
| 6559 | <!-- conte nt --> | |
| 6560 | ||
| 6561 | <xsl:templ ate | |
| 6562 | match="n1: content" | |
| 6563 | > | |
| 6564 | ||
| 6565 | <xsl:apply -templates /> | |
| 6566 | ||
| 6567 | </xsl:temp late> | |
| 6568 | ||
| 6569 | ||
| 6570 | ||
| 6571 | <!-- list --> | |
| 6572 | ||
| 6573 | <xsl:templ ate | |
| 6574 | match="n1: list" | |
| 6575 | > | |
| 6576 | ||
| 6577 | <xsl:if | |
| 6578 | test="n1:c aption" | |
| 6579 | > | |
| 6580 | ||
| 6581 | <span | |
| 6582 | style="fon t-weight:b old; " | |
| 6583 | > | |
| 6584 | ||
| 6585 | <xsl:apply -templates | |
| 6586 | select="n1 :caption" | |
| 6587 | /> | |
| 6588 | ||
| 6589 | </span> | |
| 6590 | ||
| 6591 | </xsl:if> | |
| 6592 | ||
| 6593 | <ul> | |
| 6594 | ||
| 6595 | <xsl:for-e ach | |
| 6596 | select="n1 :item" | |
| 6597 | > | |
| 6598 | ||
| 6599 | <li> | |
| 6600 | ||
| 6601 | <xsl:apply -templates /> | |
| 6602 | ||
| 6603 | </li> | |
| 6604 | ||
| 6605 | </xsl:for- each> | |
| 6606 | ||
| 6607 | </ul> | |
| 6608 | ||
| 6609 | </xsl:temp late> | |
| 6610 | ||
| 6611 | ||
| 6612 | <xsl:templ ate | |
| 6613 | match="n1: list[@list Type='orde red']" | |
| 6614 | > | |
| 6615 | ||
| 6616 | <xsl:if | |
| 6617 | test="n1:c aption" | |
| 6618 | > | |
| 6619 | ||
| 6620 | <span | |
| 6621 | style="fon t-weight:b old; " | |
| 6622 | > | |
| 6623 | ||
| 6624 | <xsl:apply -templates | |
| 6625 | select="n1 :caption" | |
| 6626 | /> | |
| 6627 | ||
| 6628 | </span> | |
| 6629 | ||
| 6630 | </xsl:if> | |
| 6631 | ||
| 6632 | <ol> | |
| 6633 | ||
| 6634 | <xsl:for-e ach | |
| 6635 | select="n1 :item" | |
| 6636 | > | |
| 6637 | ||
| 6638 | <li> | |
| 6639 | ||
| 6640 | <xsl:apply -templates /> | |
| 6641 | ||
| 6642 | </li> | |
| 6643 | ||
| 6644 | </xsl:for- each> | |
| 6645 | ||
| 6646 | </ol> | |
| 6647 | ||
| 6648 | </xsl:temp late> | |
| 6649 | ||
| 6650 | ||
| 6651 | ||
| 6652 | <!-- capti on --> | |
| 6653 | ||
| 6654 | <xsl:templ ate | |
| 6655 | match="n1: caption" | |
| 6656 | > | |
| 6657 | ||
| 6658 | <xsl:apply -templates /> | |
| 6659 | ||
| 6660 | <xsl:text> | |
| 6661 | : | |
| 6662 | </xsl:text > | |
| 6663 | ||
| 6664 | </xsl:temp late> | |
| 6665 | ||
| 6666 | ||
| 6667 | <!-- Table s --> | |
| 6668 | ||
| 6669 | <xsl:templ ate | |
| 6670 | ||
| 6671 | match="n1: table/@*|n 1:thead/@* |n1:tfoot/ @*|n1:tbod y/@*|n1:co lgroup/@*| n1:col/@*| n1:tr/@*|n 1:th/@*|n1 :td/@*" | |
| 6672 | > | |
| 6673 | ||
| 6674 | <xsl:copy> | |
| 6675 | ||
| 6676 | ||
| 6677 | <xsl:copy- of | |
| 6678 | select="@* " | |
| 6679 | /> | |
| 6680 | ||
| 6681 | <xsl:apply -templates /> | |
| 6682 | ||
| 6683 | </xsl:copy > | |
| 6684 | ||
| 6685 | </xsl:temp late> | |
| 6686 | ||
| 6687 | ||
| 6688 | <xsl:templ ate | |
| 6689 | match="n1: table" | |
| 6690 | > | |
| 6691 | ||
| 6692 | <table> | |
| 6693 | ||
| 6694 | ||
| 6695 | <xsl:copy- of | |
| 6696 | select="@* " | |
| 6697 | /> | |
| 6698 | ||
| 6699 | <xsl:apply -templates /> | |
| 6700 | ||
| 6701 | </table> | |
| 6702 | ||
| 6703 | </xsl:temp late> | |
| 6704 | ||
| 6705 | ||
| 6706 | <xsl:templ ate | |
| 6707 | match="n1: thead" | |
| 6708 | > | |
| 6709 | ||
| 6710 | <thead> | |
| 6711 | ||
| 6712 | ||
| 6713 | <xsl:copy- of | |
| 6714 | select="@* " | |
| 6715 | /> | |
| 6716 | ||
| 6717 | <xsl:apply -templates /> | |
| 6718 | ||
| 6719 | </thead> | |
| 6720 | ||
| 6721 | </xsl:temp late> | |
| 6722 | ||
| 6723 | ||
| 6724 | <xsl:templ ate | |
| 6725 | match="n1: tfoot" | |
| 6726 | > | |
| 6727 | ||
| 6728 | <tfoot> | |
| 6729 | ||
| 6730 | ||
| 6731 | <xsl:copy- of | |
| 6732 | select="@* " | |
| 6733 | /> | |
| 6734 | ||
| 6735 | <xsl:apply -templates /> | |
| 6736 | ||
| 6737 | </tfoot> | |
| 6738 | ||
| 6739 | </xsl:temp late> | |
| 6740 | ||
| 6741 | ||
| 6742 | <xsl:templ ate | |
| 6743 | match="n1: tbody" | |
| 6744 | > | |
| 6745 | ||
| 6746 | <tbody> | |
| 6747 | ||
| 6748 | ||
| 6749 | <xsl:copy- of | |
| 6750 | select="@* " | |
| 6751 | /> | |
| 6752 | ||
| 6753 | <xsl:apply -templates /> | |
| 6754 | ||
| 6755 | </tbody> | |
| 6756 | ||
| 6757 | </xsl:temp late> | |
| 6758 | ||
| 6759 | ||
| 6760 | <xsl:templ ate | |
| 6761 | match="n1: colgroup" | |
| 6762 | > | |
| 6763 | ||
| 6764 | <colgroup> | |
| 6765 | ||
| 6766 | ||
| 6767 | <xsl:copy- of | |
| 6768 | select="@* " | |
| 6769 | /> | |
| 6770 | ||
| 6771 | <xsl:apply -templates /> | |
| 6772 | ||
| 6773 | </colgroup > | |
| 6774 | ||
| 6775 | </xsl:temp late> | |
| 6776 | ||
| 6777 | ||
| 6778 | <xsl:templ ate | |
| 6779 | match="n1: col" | |
| 6780 | > | |
| 6781 | ||
| 6782 | <col> | |
| 6783 | ||
| 6784 | ||
| 6785 | <xsl:copy- of | |
| 6786 | select="@* " | |
| 6787 | /> | |
| 6788 | ||
| 6789 | <xsl:apply -templates /> | |
| 6790 | ||
| 6791 | </col> | |
| 6792 | ||
| 6793 | </xsl:temp late> | |
| 6794 | ||
| 6795 | ||
| 6796 | <xsl:templ ate | |
| 6797 | match="n1: tr" | |
| 6798 | > | |
| 6799 | ||
| 6800 | <tr> | |
| 6801 | ||
| 6802 | ||
| 6803 | <xsl:copy- of | |
| 6804 | select="@* " | |
| 6805 | /> | |
| 6806 | ||
| 6807 | <xsl:apply -templates /> | |
| 6808 | ||
| 6809 | </tr> | |
| 6810 | ||
| 6811 | </xsl:temp late> | |
| 6812 | ||
| 6813 | ||
| 6814 | <xsl:templ ate | |
| 6815 | match="n1: th" | |
| 6816 | > | |
| 6817 | ||
| 6818 | <th> | |
| 6819 | ||
| 6820 | <xsl:copy- of | |
| 6821 | select="@* " | |
| 6822 | /> | |
| 6823 | ||
| 6824 | <xsl:apply -templates /> | |
| 6825 | ||
| 6826 | </th> | |
| 6827 | ||
| 6828 | </xsl:temp late> | |
| 6829 | ||
| 6830 | ||
| 6831 | <xsl:templ ate | |
| 6832 | match="n1: td" | |
| 6833 | > | |
| 6834 | ||
| 6835 | <td> | |
| 6836 | ||
| 6837 | <xsl:copy- of | |
| 6838 | select="@* " | |
| 6839 | /> | |
| 6840 | ||
| 6841 | <xsl:apply -templates /> | |
| 6842 | ||
| 6843 | </td> | |
| 6844 | ||
| 6845 | </xsl:temp late> | |
| 6846 | ||
| 6847 | ||
| 6848 | <xsl:templ ate | |
| 6849 | match="n1: table/n1:c aption" | |
| 6850 | > | |
| 6851 | ||
| 6852 | <span | |
| 6853 | style="fon t-weight:b old; " | |
| 6854 | > | |
| 6855 | ||
| 6856 | <xsl:apply -templates /> | |
| 6857 | ||
| 6858 | </span> | |
| 6859 | ||
| 6860 | </xsl:temp late> | |
| 6861 | ||
| 6862 | ||
| 6863 | <!-- Rende rMultiMedi a this cur rently onl y handles GIF's and JPEG's. It could, | |
| 6864 | howe ver, be ex tended by including other imag e MIME typ es in the predicate | |
| 6865 | and/ or by gene rating <ob ject> or < applet> ta g with the correct p arams depe nding | |
| 6866 | on t he media t ype @ID =$ imageRef r eferencedO bject --> | |
| 6867 | ||
| 6868 | <xsl:templ ate | |
| 6869 | match="n1: renderMult iMedia" | |
| 6870 | > | |
| 6871 | ||
| 6872 | <xsl:varia ble | |
| 6873 | name="imag eRef" | |
| 6874 | select="@r eferencedO bject" | |
| 6875 | /> | |
| 6876 | ||
| 6877 | <xsl:choos e> | |
| 6878 | ||
| 6879 | <xsl:when | |
| 6880 | test="//n1 :regionOfI nterest[@I D=$imageRe f]" | |
| 6881 | > | |
| 6882 | ||
| 6883 | <!-- Here is where t he Region of Interes t image re ferencing goes --> | |
| 6884 | ||
| 6885 | <xsl:if | |
| 6886 | ||
| 6887 | test='//n1 :regionOfI nterest[@I D=$imageRe f]//n1:obs ervationMe dia/n1:val ue[@mediaT ype="image /gif" or @ mediaType= "image/jpe g"]' | |
| 6888 | > | |
| 6889 | ||
| 6890 | <br | |
| 6891 | clear='all ' | |
| 6892 | /> | |
| 6893 | ||
| 6894 | <xsl:eleme nt | |
| 6895 | name='img' | |
| 6896 | > | |
| 6897 | ||
| 6898 | <xsl:attri bute | |
| 6899 | name='src' | |
| 6900 | > | |
| 6901 | ||
| 6902 | <xsl:value -of | |
| 6903 | ||
| 6904 | select='// n1:regionO fInterest[ @ID=$image Ref]//n1:o bservation Media/n1:v alue/n1:re ference/@v alue' | |
| 6905 | /> | |
| 6906 | ||
| 6907 | </xsl:attr ibute> | |
| 6908 | ||
| 6909 | </xsl:elem ent> | |
| 6910 | ||
| 6911 | </xsl:if> | |
| 6912 | ||
| 6913 | </xsl:when > | |
| 6914 | ||
| 6915 | <xsl:other wise> | |
| 6916 | ||
| 6917 | <!-- Here is where t he direct MultiMedia image ref erencing g oes --> | |
| 6918 | ||
| 6919 | <xsl:if | |
| 6920 | ||
| 6921 | test='//n1 :observati onMedia[@I D=$imageRe f]/n1:valu e[@mediaTy pe="image/ gif" or @m ediaType=" image/jpeg "]' | |
| 6922 | > | |
| 6923 | ||
| 6924 | <br | |
| 6925 | clear='all ' | |
| 6926 | /> | |
| 6927 | ||
| 6928 | <xsl:eleme nt | |
| 6929 | name='img' | |
| 6930 | > | |
| 6931 | ||
| 6932 | <xsl:attri bute | |
| 6933 | name='src' | |
| 6934 | > | |
| 6935 | ||
| 6936 | <xsl:value -of | |
| 6937 | ||
| 6938 | select='// n1:observa tionMedia[ @ID=$image Ref]/n1:va lue/n1:ref erence/@va lue' | |
| 6939 | /> | |
| 6940 | ||
| 6941 | </xsl:attr ibute> | |
| 6942 | ||
| 6943 | </xsl:elem ent> | |
| 6944 | ||
| 6945 | </xsl:if> | |
| 6946 | ||
| 6947 | </xsl:othe rwise> | |
| 6948 | ||
| 6949 | </xsl:choo se> | |
| 6950 | ||
| 6951 | </xsl:temp late> | |
| 6952 | ||
| 6953 | ||
| 6954 | <!-- Style code proce ssing Supp orts Bold, Underline and Itali cs display --> | |
| 6955 | ||
| 6956 | ||
| 6957 | <xsl:templ ate | |
| 6958 | match="//n 1:*[@style Code]" | |
| 6959 | > | |
| 6960 | ||
| 6961 | ||
| 6962 | <xsl:if | |
| 6963 | test="@sty leCode='Bo ld'" | |
| 6964 | > | |
| 6965 | ||
| 6966 | <xsl:eleme nt | |
| 6967 | name='b' | |
| 6968 | > | |
| 6969 | ||
| 6970 | <xsl:apply -templates /> | |
| 6971 | ||
| 6972 | </xsl:elem ent> | |
| 6973 | ||
| 6974 | </xsl:if> | |
| 6975 | ||
| 6976 | ||
| 6977 | <xsl:if | |
| 6978 | test="@sty leCode='It alics'" | |
| 6979 | > | |
| 6980 | ||
| 6981 | <xsl:eleme nt | |
| 6982 | name='i' | |
| 6983 | > | |
| 6984 | ||
| 6985 | <xsl:apply -templates /> | |
| 6986 | ||
| 6987 | </xsl:elem ent> | |
| 6988 | ||
| 6989 | </xsl:if> | |
| 6990 | ||
| 6991 | ||
| 6992 | <xsl:if | |
| 6993 | test="@sty leCode='Un derline'" | |
| 6994 | > | |
| 6995 | ||
| 6996 | <xsl:eleme nt | |
| 6997 | name='u' | |
| 6998 | > | |
| 6999 | ||
| 7000 | <xsl:apply -templates /> | |
| 7001 | ||
| 7002 | </xsl:elem ent> | |
| 7003 | ||
| 7004 | </xsl:if> | |
| 7005 | ||
| 7006 | ||
| 7007 | <xsl:if | |
| 7008 | ||
| 7009 | test="cont ains(@styl eCode,'Bol d') and co ntains(@st yleCode,'I talics') a nd not (co ntains(@st yleCode, ' Underline' ))" | |
| 7010 | > | |
| 7011 | ||
| 7012 | <xsl:eleme nt | |
| 7013 | name='b' | |
| 7014 | > | |
| 7015 | ||
| 7016 | <xsl:eleme nt | |
| 7017 | name='i' | |
| 7018 | > | |
| 7019 | ||
| 7020 | <xsl:apply -templates /> | |
| 7021 | ||
| 7022 | </xsl:elem ent> | |
| 7023 | ||
| 7024 | </xsl:elem ent> | |
| 7025 | ||
| 7026 | </xsl:if> | |
| 7027 | ||
| 7028 | ||
| 7029 | <xsl:if | |
| 7030 | ||
| 7031 | test="cont ains(@styl eCode,'Bol d') and co ntains(@st yleCode,'U nderline') and not ( contains(@ styleCode, 'Italics' ))" | |
| 7032 | > | |
| 7033 | ||
| 7034 | <xsl:eleme nt | |
| 7035 | name='b' | |
| 7036 | > | |
| 7037 | ||
| 7038 | <xsl:eleme nt | |
| 7039 | name='u' | |
| 7040 | > | |
| 7041 | ||
| 7042 | <xsl:apply -templates /> | |
| 7043 | ||
| 7044 | </xsl:elem ent> | |
| 7045 | ||
| 7046 | </xsl:elem ent> | |
| 7047 | ||
| 7048 | </xsl:if> | |
| 7049 | ||
| 7050 | ||
| 7051 | <xsl:if | |
| 7052 | ||
| 7053 | test="cont ains(@styl eCode,'Ita lics') and contains( @styleCode ,'Underlin e') and no t (contain s(@styleCo de, 'Bold' ))" | |
| 7054 | > | |
| 7055 | ||
| 7056 | <xsl:eleme nt | |
| 7057 | name='i' | |
| 7058 | > | |
| 7059 | ||
| 7060 | <xsl:eleme nt | |
| 7061 | name='u' | |
| 7062 | > | |
| 7063 | ||
| 7064 | <xsl:apply -templates /> | |
| 7065 | ||
| 7066 | </xsl:elem ent> | |
| 7067 | ||
| 7068 | </xsl:elem ent> | |
| 7069 | ||
| 7070 | </xsl:if> | |
| 7071 | ||
| 7072 | ||
| 7073 | <xsl:if | |
| 7074 | ||
| 7075 | test="cont ains(@styl eCode,'Ita lics') and contains( @styleCode ,'Underlin e') and co ntains(@st yleCode, ' Bold')" | |
| 7076 | > | |
| 7077 | ||
| 7078 | <xsl:eleme nt | |
| 7079 | name='b' | |
| 7080 | > | |
| 7081 | ||
| 7082 | <xsl:eleme nt | |
| 7083 | name='i' | |
| 7084 | > | |
| 7085 | ||
| 7086 | <xsl:eleme nt | |
| 7087 | name='u' | |
| 7088 | > | |
| 7089 | ||
| 7090 | <xsl:apply -templates /> | |
| 7091 | ||
| 7092 | </xsl:elem ent> | |
| 7093 | ||
| 7094 | </xsl:elem ent> | |
| 7095 | ||
| 7096 | </xsl:elem ent> | |
| 7097 | ||
| 7098 | </xsl:if> | |
| 7099 | ||
| 7100 | ||
| 7101 | </xsl:temp late> | |
| 7102 | ||
| 7103 | ||
| 7104 | <!-- Super script or Subscript --> | |
| 7105 | ||
| 7106 | <xsl:templ ate | |
| 7107 | match="n1: sup" | |
| 7108 | > | |
| 7109 | ||
| 7110 | <xsl:eleme nt | |
| 7111 | name='sup' | |
| 7112 | > | |
| 7113 | ||
| 7114 | <xsl:apply -templates /> | |
| 7115 | ||
| 7116 | </xsl:elem ent> | |
| 7117 | ||
| 7118 | </xsl:temp late> | |
| 7119 | ||
| 7120 | <xsl:templ ate | |
| 7121 | match="n1: sub" | |
| 7122 | > | |
| 7123 | ||
| 7124 | <xsl:eleme nt | |
| 7125 | name='sub' | |
| 7126 | > | |
| 7127 | ||
| 7128 | <xsl:apply -templates /> | |
| 7129 | ||
| 7130 | </xsl:elem ent> | |
| 7131 | ||
| 7132 | </xsl:temp late> | |
| 7133 | ||
| 7134 | ||
| 7135 | <!-- Botto mline --> | |
| 7136 | ||
| 7137 | ||
| 7138 | <xsl:templ ate | |
| 7139 | name="bott omline" | |
| 7140 | > | |
| 7141 | ||
| 7142 | <p> | |
| 7143 | ||
| 7144 | <b> | |
| 7145 | ||
| 7146 | <xsl:text> | |
| 7147 | Electronic ally gener ated: | |
| 7148 | </xsl:text > | |
| 7149 | ||
| 7150 | </b> | |
| 7151 | ||
| 7152 | <xsl:call- template | |
| 7153 | name="getN ame" | |
| 7154 | > | |
| 7155 | ||
| 7156 | <xsl:with- param | |
| 7157 | name="name " | |
| 7158 | ||
| 7159 | select="/n 1:Clinical Document/n 1:legalAut henticator /n1:assign edEntity/n 1:represen tedOrganiz ation/n1:n ame" | |
| 7160 | /> | |
| 7161 | ||
| 7162 | </xsl:call -template> | |
| 7163 | ||
| 7164 | <xsl:text> | |
| 7165 | on | |
| 7166 | </xsl:text > | |
| 7167 | ||
| 7168 | <xsl:choos e> | |
| 7169 | ||
| 7170 | <xsl:when | |
| 7171 | ||
| 7172 | test="stri ng-length( /n1:Clinic alDocument /n1:effect iveTime/@v alue)=0" | |
| 7173 | > | |
| 7174 | ||
| 7175 | <xsl:call- template | |
| 7176 | name="na" | |
| 7177 | /> | |
| 7178 | ||
| 7179 | </xsl:when > | |
| 7180 | ||
| 7181 | <xsl:when | |
| 7182 | ||
| 7183 | test="star ts-with(/n 1:Clinical Document/n 1:effectiv eTime/@val ue,' ')" | |
| 7184 | > | |
| 7185 | ||
| 7186 | <xsl:call- template | |
| 7187 | name="na" | |
| 7188 | /> | |
| 7189 | ||
| 7190 | </xsl:when > | |
| 7191 | ||
| 7192 | <xsl:other wise> | |
| 7193 | ||
| 7194 | <xsl:call- template | |
| 7195 | name="form atDateFull " | |
| 7196 | > | |
| 7197 | ||
| 7198 | <xsl:with- param | |
| 7199 | name="date " | |
| 7200 | ||
| 7201 | select="/n 1:Clinical Document/n 1:effectiv eTime/@val ue" | |
| 7202 | /> | |
| 7203 | ||
| 7204 | </xsl:call -template> | |
| 7205 | ||
| 7206 | </xsl:othe rwise> | |
| 7207 | ||
| 7208 | </xsl:choo se> | |
| 7209 | ||
| 7210 | ||
| 7211 | </p> | |
| 7212 | ||
| 7213 | </xsl:temp late> | |
| 7214 | ||
| 7215 | ||
| 7216 | <xsl:templ ate | |
| 7217 | ||
| 7218 | match="n1: component/ n1:section [n1:templa teId/@root ='2.16.840 .1.113883. IP ']/n1:text /n1:table/ n1:tbody" | |
| 7219 | > | |
| 7220 | ||
| 7221 | <xsl:apply -templates > | |
| 7222 | ||
| 7223 | <xsl:sort | |
| 7224 | select="n1 :td[3]" | |
| 7225 | order="des cending" | |
| 7226 | /> | |
| 7227 | ||
| 7228 | </xsl:appl y-template s> | |
| 7229 | ||
| 7230 | </xsl:temp late> | |
| 7231 | ||
| 7232 | ||
| 7233 | <xsl:templ ate | |
| 7234 | ||
| 7235 | match="n1: component/ n1:section [n1:templa teId/@root ='2.16.840 .1.113883. IP ']/n1:text /n1:table/ n1:tbody" | |
| 7236 | > | |
| 7237 | ||
| 7238 | <xsl:apply -templates > | |
| 7239 | ||
| 7240 | <xsl:sort | |
| 7241 | select="n1 :td[5]" | |
| 7242 | order="des cending" | |
| 7243 | /> | |
| 7244 | ||
| 7245 | </xsl:appl y-template s> | |
| 7246 | ||
| 7247 | </xsl:temp late> | |
| 7248 | ||
| 7249 | ||
| 7250 | <xsl:templ ate | |
| 7251 | ||
| 7252 | match="n1: component/ n1:section [n1:templa teId/@root ='2.16.840 .1.113883. IP ' or n1:te mplateId/@ root='2.16 .840.1.113 883. IP ' or n1:te mplateId/@ root='2.16 .840.1.113 883. IP ' or n1:te mplateId/@ root='2.16 .840.1.113 883. IP ']/n1:text /n1:table/ n1:tbody" | |
| 7253 | > | |
| 7254 | ||
| 7255 | <xsl:apply -templates > | |
| 7256 | ||
| 7257 | <xsl:sort | |
| 7258 | select="n1 :td[2]" | |
| 7259 | order="des cending" | |
| 7260 | /> | |
| 7261 | ||
| 7262 | </xsl:appl y-template s> | |
| 7263 | ||
| 7264 | </xsl:temp late> | |
| 7265 | ||
| 7266 | ||
| 7267 | <xsl:templ ate | |
| 7268 | ||
| 7269 | match="n1: component/ n1:section [n1:templa teId/@root ='2.16.840 .1.113883. IP ']/n1:text /n1:table/ n1:tbody/n 1:tr/n1:td [3]" | |
| 7270 | > | |
| 7271 | ||
| 7272 | <td> | |
| 7273 | ||
| 7274 | <xsl:call- template | |
| 7275 | name="form atDate" | |
| 7276 | > | |
| 7277 | ||
| 7278 | <xsl:with- param | |
| 7279 | name="date " | |
| 7280 | select="te xt()" | |
| 7281 | /> | |
| 7282 | ||
| 7283 | </xsl:call -template> | |
| 7284 | ||
| 7285 | </td> | |
| 7286 | ||
| 7287 | </xsl:temp late> | |
| 7288 | ||
| 7289 | ||
| 7290 | <xsl:templ ate | |
| 7291 | ||
| 7292 | match="n1: component/ n1:section [n1:templa teId/@root ='2.16.840 .1.113883. IP ']/n1:text /n1:table/ n1:tbody/n 1:tr/n1:td [5]" | |
| 7293 | > | |
| 7294 | ||
| 7295 | <td> | |
| 7296 | ||
| 7297 | <xsl:call- template | |
| 7298 | name="form atDate" | |
| 7299 | > | |
| 7300 | ||
| 7301 | <xsl:with- param | |
| 7302 | name="date " | |
| 7303 | select="te xt()" | |
| 7304 | /> | |
| 7305 | ||
| 7306 | </xsl:call -template> | |
| 7307 | ||
| 7308 | </td> | |
| 7309 | ||
| 7310 | </xsl:temp late> | |
| 7311 | ||
| 7312 | ||
| 7313 | <xsl:templ ate | |
| 7314 | ||
| 7315 | match="n1: component/ n1:section [n1:templa teId/@root ='2.16.840 .1.113883. IP ' or n1:te mplateId/@ root='2.16 .840.1.113 883. IP ' or n1:te mplateId/@ root='2.16 .840.1.113 883. IP ' or n1:te mplateId/@ root='2.16 .840.1.113 883. IP ']/n1:text /n1:table/ n1:tbody/n 1:tr/n1:td [2]" | |
| 7316 | > | |
| 7317 | ||
| 7318 | <td> | |
| 7319 | ||
| 7320 | <xsl:call- template | |
| 7321 | name="form atDate" | |
| 7322 | > | |
| 7323 | ||
| 7324 | <xsl:with- param | |
| 7325 | name="date " | |
| 7326 | ||
| 7327 | select="co ncat(subst ring(text( ),1,4),sub string(tex t(),6,2),s ubstring(t ext(),9,2) )" | |
| 7328 | /> | |
| 7329 | ||
| 7330 | </xsl:call -template> | |
| 7331 | ||
| 7332 | </td> | |
| 7333 | ||
| 7334 | </xsl:temp late> | |
| 7335 | ||
| 7336 | ||
| 7337 | <xsl:templ ate | |
| 7338 | match="n1: languageCo mmunicatio n" | |
| 7339 | > | |
| 7340 | ||
| 7341 | <xsl:varia ble | |
| 7342 | name="lang Code" | |
| 7343 | select="su bstring(n1 :languageC ode/@code, 1,2)" | |
| 7344 | /> | |
| 7345 | ||
| 7346 | <xsl:choos e> | |
| 7347 | ||
| 7348 | <xsl:when | |
| 7349 | test="stri ng-length( $langCode) =0" | |
| 7350 | > | |
| 7351 | ||
| 7352 | </xsl:when > | |
| 7353 | ||
| 7354 | <xsl:when | |
| 7355 | test="$lan gCode='en' " | |
| 7356 | > | |
| 7357 | ||
| 7358 | <li> | |
| 7359 | ||
| 7360 | <xsl:text> | |
| 7361 | English | |
| 7362 | </xsl:text > | |
| 7363 | ||
| 7364 | </li> | |
| 7365 | ||
| 7366 | </xsl:when > | |
| 7367 | ||
| 7368 | <xsl:when | |
| 7369 | test="$lan gCode='es' " | |
| 7370 | > | |
| 7371 | ||
| 7372 | <li> | |
| 7373 | ||
| 7374 | <xsl:text> | |
| 7375 | Spanish | |
| 7376 | </xsl:text > | |
| 7377 | ||
| 7378 | </li> | |
| 7379 | ||
| 7380 | </xsl:when > | |
| 7381 | ||
| 7382 | <xsl:other wise> | |
| 7383 | ||
| 7384 | <li> | |
| 7385 | ||
| 7386 | <xsl:value -of | |
| 7387 | select="n1 :languageC ode/@code" | |
| 7388 | /> | |
| 7389 | ||
| 7390 | </li> | |
| 7391 | ||
| 7392 | </xsl:othe rwise> | |
| 7393 | ||
| 7394 | </xsl:choo se> | |
| 7395 | ||
| 7396 | </xsl:temp late> | |
| 7397 | ||
| 7398 | ||
| 7399 | <xsl:templ ate | |
| 7400 | name="docu mentTitle" | |
| 7401 | > | |
| 7402 | ||
| 7403 | <xsl:param | |
| 7404 | name="root " | |
| 7405 | /> | |
| 7406 | ||
| 7407 | ||
| 7408 | <xsl:choos e> | |
| 7409 | ||
| 7410 | <xsl:when | |
| 7411 | ||
| 7412 | test="$roo t/n1:custo dian/n1:as signedCust odian/n1:r epresented CustodianO rganizatio n/n1:name and string -length($r oot/n1:cus todian/n1: assignedCu stodian/n1 :represent edCustodia nOrganizat ion/n1:nam e)>0" | |
| 7413 | > | |
| 7414 | ||
| 7415 | <xsl:value -of | |
| 7416 | ||
| 7417 | select="$r oot/n1:cus todian/n1: assignedCu stodian/n1 :represent edCustodia nOrganizat ion/n1:nam e" | |
| 7418 | /> | |
| 7419 | ||
| 7420 | </xsl:when > | |
| 7421 | ||
| 7422 | <xsl:other wise> | |
| 7423 | ||
| 7424 | <xsl:value -of | |
| 7425 | ||
| 7426 | select="$r oot/n1:aut hor[1]/n1: assignedAu thor/n1:re presentedO rganizatio n/n1:name" | |
| 7427 | /> | |
| 7428 | ||
| 7429 | </xsl:othe rwise> | |
| 7430 | ||
| 7431 | </xsl:choo se> | |
| 7432 | ||
| 7433 | ||
| 7434 | </xsl:temp late> | |
| 7435 | ||
| 7436 | ||
| 7437 | <xsl:templ ate | |
| 7438 | name="na" | |
| 7439 | > | |
| 7440 | ||
| 7441 | <span | |
| 7442 | title="Not Available " | |
| 7443 | > | |
| 7444 | ||
| 7445 | <xsl:text> | |
| 7446 | -- | |
| 7447 | </xsl:text > | |
| 7448 | ||
| 7449 | </span> | |
| 7450 | ||
| 7451 | </xsl:temp late> | |
| 7452 | ||
| 7453 | ||
| 7454 | <!-- free text proce ssing --> | |
| 7455 | ||
| 7456 | ||
| 7457 | <xsl:templ ate | |
| 7458 | name="free Text" | |
| 7459 | > | |
| 7460 | ||
| 7461 | <xsl:param | |
| 7462 | name="text " | |
| 7463 | /> | |
| 7464 | ||
| 7465 | ||
| 7466 | </xsl:temp late> | |
| 7467 | ||
| 7468 | ||
| 7469 | </xsl:styl esheet> | |
| 7470 |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.