Produced by Araxis Merge on 5/28/2019 3:19:17 PM Eastern 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 | CV_src.zip\CV-VAS\web-app\c32styles\nhin | cda2detail.xsl | Wed May 1 18:46:26 2019 UTC |
2 | CV_src.zip\CV-VAS\web-app\c32styles\nhin | cda2detail.xsl | Tue May 28 17:33:54 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 16714 |
Changed | 1 | 2 |
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 | ||
9 | xmlns:n3=" http://www .w3.org/19 99/xhtml" | |
10 | ||
11 | xmlns:n1=" urn:hl7-or g:v3" | |
12 | ||
13 | xmlns:n2=" urn:hl7-or g:v3/meta/ voc" | |
14 | ||
15 | xmlns:voc= "urn:hl7-o rg:v3/voc" | |
16 | ||
17 | xmlns:xsi= "http://ww w.w3.org/2 001/XMLSch ema-instan ce" | |
18 | ||
19 | xmlns:sect ion="urn:g ov.va.med" | |
20 | ||
21 | xmlns:msxs l="urn:sch emas-micro soft-com:x slt" | |
22 | > | |
23 | ||
24 | ||
25 | <xsl:impor t | |
26 | href="cda2 detailComm on.xslt" | |
27 | /> | |
28 | ||
29 | <xsl:impor t | |
30 | href="deta ilCommon.x sl" | |
31 | /> | |
32 | ||
33 | <xsl:impor t | |
34 | href="../c ommon.xsl" | |
35 | /> | |
36 | ||
37 | <xsl:outpu t | |
38 | method="ht ml" | |
39 | indent="ye s" | |
40 | version="4 .01" | |
41 | encoding=" ISO-8859-1 " | |
42 | /> | |
43 | ||
44 | ||
45 | <xsl:templ ate | |
46 | name="disp laySource" | |
47 | > | |
48 | ||
49 | <head> | |
50 | ||
51 | <link | |
52 | type="text /css" | |
53 | href="reso urces/css/ nhin.css" | |
54 | rel="style sheet" | |
55 | /> | |
56 | ||
57 | ||
58 | <h2 | |
59 | align="cen ter" | |
60 | > | |
61 | ||
62 | <xsl:call- template | |
63 | name="docu mentTitle" | |
64 | > | |
65 | ||
66 | <xsl:with- param | |
67 | name="root " | |
68 | select="." | |
69 | /> | |
70 | ||
71 | </xsl:call -template> | |
72 | ||
73 | </h2> | |
74 | ||
75 | </head> | |
76 | ||
77 | </xsl:temp late> | |
78 | ||
79 | ||
80 | <xsl:templ ate | |
81 | name="disp layTitle" | |
82 | > | |
83 | ||
84 | <div | |
85 | style="tex t-align:ce nter;" | |
86 | > | |
87 | ||
88 | <span | |
89 | style="fon t-size:lar ger;font-w eight:bold " | |
90 | > | |
91 | ||
92 | <xsl:value -of | |
93 | select="n1 :code/@dis playName" | |
94 | /> | |
95 | ||
96 | </span> | |
97 | ||
98 | </div> | |
99 | ||
100 | </xsl:temp late> | |
101 | ||
102 | ||
103 | <xsl:templ ate | |
104 | name="disp layReportD ates" | |
105 | > | |
106 | ||
107 | <b> | |
108 | ||
109 | <xsl:text> | |
110 | Created On : | |
111 | </xsl:text > | |
112 | ||
113 | </b> | |
114 | ||
115 | <xsl:call- template | |
116 | name="getC reatedOnDa te" | |
117 | /> | |
118 | ||
119 | <xsl:if | |
120 | test="n1:d ocumentati onOf/n1:se rviceEvent /n1:perfor mer/n1:eff ectiveTime /n1:low/@v alue" | |
121 | > | |
122 | ||
123 | <xsl:text | |
124 | disable-ou tput-escap ing="yes" | |
125 | > | |
126 | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | |
127 | </xsl:text > | |
128 | ||
129 | <b> | |
130 | ||
131 | <xsl:text> | |
132 | Date Range : | |
133 | </xsl:text > | |
134 | ||
135 | </b> | |
136 | ||
137 | <xsl:choos e> | |
138 | ||
139 | <xsl:when | |
140 | test="stri ng-length( n1:documen tationOf/n 1:serviceE vent/n1:pe rformer/n1 :effective Time/n1:lo w/@value)= 0" | |
141 | > | |
142 | ||
143 | <xsl:call- template | |
144 | name="na" | |
145 | /> | |
146 | ||
147 | </xsl:when > | |
148 | ||
149 | <xsl:when | |
150 | test="star ts-with(n1 :documenta tionOf/n1: serviceEve nt/n1:perf ormer/n1:e ffectiveTi me/n1:low/ @value,' ' )" | |
151 | > | |
152 | ||
153 | <xsl:call- template | |
154 | name="na" | |
155 | /> | |
156 | ||
157 | </xsl:when > | |
158 | ||
159 | <xsl:other wise> | |
160 | ||
161 | <xsl:call- template | |
162 | name="form atDateLong " | |
163 | > | |
164 | ||
165 | <xsl:with- param | |
166 | name="date String" | |
167 | select="n1 :documenta tionOf/n1: serviceEve nt/n1:perf ormer/n1:e ffectiveTi me/n1:low/ @value" | |
168 | /> | |
169 | ||
170 | </xsl:call -template> | |
171 | ||
172 | </xsl:othe rwise> | |
173 | ||
174 | </xsl:choo se> | |
175 | ||
176 | <b> | |
177 | ||
178 | <xsl:text | |
179 | disable-ou tput-escap ing="yes" | |
180 | > | |
181 | - | |
182 | </xsl:text > | |
183 | ||
184 | </b> | |
185 | ||
186 | <xsl:choos e> | |
187 | ||
188 | <xsl:when | |
189 | test="stri ng-length( n1:documen tationOf/n 1:serviceE vent/n1:pe rformer/n1 :effective Time/n1:hi gh/@value) =0" | |
190 | > | |
191 | ||
192 | <xsl:call- template | |
193 | name="na" | |
194 | /> | |
195 | ||
196 | </xsl:when > | |
197 | ||
198 | <xsl:when | |
199 | test="star ts-with(n1 :documenta tionOf/n1: serviceEve nt/n1:perf ormer/n1:e ffectiveTi me/n1:high /@value,' ')" | |
200 | > | |
201 | ||
202 | <xsl:call- template | |
203 | name="na" | |
204 | /> | |
205 | ||
206 | </xsl:when > | |
207 | ||
208 | <xsl:other wise> | |
209 | ||
210 | <xsl:call- template | |
211 | name="form atDateLong " | |
212 | > | |
213 | ||
214 | <xsl:with- param | |
215 | name="date String" | |
216 | select="n1 :documenta tionOf/n1: serviceEve nt/n1:perf ormer/n1:e ffectiveTi me/n1:high /@value" | |
217 | /> | |
218 | ||
219 | </xsl:call -template> | |
220 | ||
221 | </xsl:othe rwise> | |
222 | ||
223 | </xsl:choo se> | |
224 | ||
225 | </xsl:if> | |
226 | ||
227 | </xsl:temp late> | |
228 | ||
229 | ||
230 | <xsl:templ ate | |
231 | name="disp layPatient Block" | |
232 | > | |
233 | ||
234 | <table | |
235 | width='100 %' | |
236 | class="fir st" | |
237 | > | |
238 | ||
239 | <xsl:varia ble | |
240 | name="pati entRole" | |
241 | select="n1 :recordTar get/n1:pat ientRole" | |
242 | /> | |
243 | ||
244 | <tr> | |
245 | ||
246 | <td | |
247 | width='15% ' | |
248 | valign="to p" | |
249 | > | |
250 | ||
251 | <b> | |
252 | ||
253 | <xsl:text> | |
254 | Patient: | |
255 | </xsl:text > | |
256 | ||
257 | </b> | |
258 | ||
259 | </td> | |
260 | ||
261 | <td | |
262 | width='35% ' | |
263 | valign="to p" | |
264 | > | |
265 | ||
266 | <xsl:for-e ach | |
267 | select="$p atientRole /n1:patien t/n1:name" | |
268 | > | |
269 | ||
270 | <!-- The b usiness pa rtner (VLE R Health P rogram) is okay with bypassing the "use" attribute at this t ime (build v16.1.6) --> | |
271 | ||
272 | <!--Patien t legal na me--> | |
273 | ||
274 | <xsl:if | |
275 | test ="pos ition()=1" | |
276 | > | |
277 | ||
278 | <xsl:call- template | |
279 | name="getN ame" | |
280 | > | |
281 | ||
282 | <xsl:with- param | |
283 | name="name " | |
284 | select="." | |
285 | /> | |
286 | ||
287 | </xsl:call -template> | |
288 | ||
289 | </xsl:if> | |
290 | ||
291 | </xsl:for- each> | |
292 | ||
293 | <xsl:for-e ach | |
294 | select="$p atientRole /n1:patien t/n1:name" | |
295 | > | |
296 | ||
297 | <!-- Alias names --> | |
298 | ||
299 | <xsl:if | |
300 | test ="pos ition()>1 and string -length(no rmalize-sp ace(curren t()))!=0" | |
301 | > | |
302 | ||
303 | <br/> | |
304 | ||
305 | <xsl:text> | |
306 | Alias: | |
307 | </xsl:text > | |
308 | ||
309 | <xsl:call- template | |
310 | name="getN ame" | |
311 | > | |
312 | ||
313 | <xsl:with- param | |
314 | name="name " | |
315 | select="." | |
316 | /> | |
317 | ||
318 | </xsl:call -template> | |
319 | ||
320 | </xsl:if> | |
321 | ||
322 | </xsl:for- each> | |
323 | ||
324 | <xsl:if | |
325 | test="$pat ientRole/n 1:addr" | |
326 | > | |
327 | ||
328 | <xsl:call- template | |
329 | name="getA ddress" | |
330 | > | |
331 | ||
332 | <xsl:with- param | |
333 | name="addr " | |
334 | select="$p atientRole /n1:addr" | |
335 | /> | |
336 | ||
337 | </xsl:call -template> | |
338 | ||
339 | </xsl:if> | |
340 | ||
341 | <xsl:choos e> | |
342 | ||
343 | <xsl:when | |
344 | test="$pat ientRole/n 1:telecom/ @value" | |
345 | > | |
346 | ||
347 | <xsl:for-e ach | |
348 | select="$p atientRole /n1:teleco m" | |
349 | > | |
350 | ||
351 | <xsl:call- template | |
352 | name="getT elecom" | |
353 | > | |
354 | ||
355 | <xsl:with- param | |
356 | name="tele com" | |
357 | select="." | |
358 | /> | |
359 | ||
360 | </xsl:call -template> | |
361 | ||
362 | </xsl:for- each> | |
363 | ||
364 | </xsl:when > | |
365 | ||
366 | <xsl:other wise> | |
367 | ||
368 | <br/> | |
369 | ||
370 | <b> | |
371 | ||
372 | <xsl:text> | |
373 | tel: PATIE NT PHONE M ISSING | |
374 | </xsl:text > | |
375 | ||
376 | </b> | |
377 | ||
378 | </xsl:othe rwise> | |
379 | ||
380 | </xsl:choo se> | |
381 | ||
382 | </td> | |
383 | ||
384 | <td | |
385 | width='15% ' | |
386 | align='rig ht' | |
387 | valign="to p" | |
388 | > | |
389 | ||
390 | <b> | |
391 | ||
392 | <xsl:text> | |
393 | Patient ID : | |
394 | </xsl:text > | |
395 | ||
396 | </b> | |
397 | ||
398 | </td> | |
399 | ||
400 | <td | |
401 | width='35% ' | |
402 | valign="to p" | |
403 | > | |
404 | ||
405 | <xsl:if | |
406 | test="stri ng-length( $patientRo le/n1:id/@ extension) >0" | |
407 | > | |
408 | ||
409 | <xsl:value -of | |
410 | select="$p atientRole /n1:id/@ex tension" | |
411 | /> | |
412 | ||
413 | </xsl:if> | |
414 | ||
415 | </td> | |
416 | ||
417 | </tr> | |
418 | ||
419 | <tr> | |
420 | ||
421 | <td | |
422 | width='15% ' | |
423 | valign="to p" | |
424 | > | |
425 | ||
426 | <b> | |
427 | ||
428 | <xsl:text> | |
429 | Birthdate: | |
430 | </xsl:text > | |
431 | ||
432 | </b> | |
433 | ||
434 | </td> | |
435 | ||
436 | <td | |
437 | width='35% ' | |
438 | valign="to p" | |
439 | > | |
440 | ||
441 | <xsl:call- template | |
442 | name="form atDateLong " | |
443 | > | |
444 | ||
445 | <xsl:with- param | |
446 | name="date String" | |
447 | select="$p atientRole /n1:patien t/n1:birth Time/@valu e" | |
448 | /> | |
449 | ||
450 | </xsl:call -template> | |
451 | ||
452 | </td> | |
453 | ||
454 | <td | |
455 | width='15% ' | |
456 | align='rig ht' | |
457 | valign="to p" | |
458 | > | |
459 | ||
460 | <b> | |
461 | ||
462 | <xsl:text> | |
463 | Sex: | |
464 | </xsl:text > | |
465 | ||
466 | </b> | |
467 | ||
468 | </td> | |
469 | ||
470 | <td | |
471 | width='35% ' | |
472 | valign="to p" | |
473 | > | |
474 | ||
475 | <xsl:call- template | |
476 | name="getG enderStrin g" | |
477 | /> | |
478 | ||
479 | </td> | |
480 | ||
481 | </tr> | |
482 | ||
483 | <xsl:varia ble | |
484 | name="hasL anguages" | |
485 | > | |
486 | ||
487 | <xsl:call- template | |
488 | name="isLa nguageFoun d" | |
489 | > | |
490 | ||
491 | <xsl:with- param | |
492 | name="pati entRole" | |
493 | select="$p atientRole " | |
494 | /> | |
495 | ||
496 | </xsl:call -template> | |
497 | ||
498 | </xsl:vari able> | |
499 | ||
500 | <xsl:if | |
501 | test="$has Languages= 'true'" | |
502 | > | |
503 | ||
504 | <tr> | |
505 | ||
506 | <td | |
507 | width="15% " | |
508 | valign="to p" | |
509 | > | |
510 | ||
511 | <b> | |
512 | ||
513 | <xsl:text> | |
514 | Language(s ): | |
515 | </xsl:text > | |
516 | ||
517 | </b> | |
518 | ||
519 | </td> | |
520 | ||
521 | <td | |
522 | width="35% " | |
523 | valign="to p" | |
524 | > | |
525 | ||
526 | <xsl:call- template | |
527 | name="disp layLanguag es" | |
528 | > | |
529 | ||
530 | <xsl:with- param | |
531 | name="pati entRole" | |
532 | select="$p atientRole " | |
533 | /> | |
534 | ||
535 | </xsl:call -template> | |
536 | ||
537 | </td> | |
538 | ||
539 | <td | |
540 | width="15% " | |
541 | valign="to p" | |
542 | > | |
543 | </td> | |
544 | ||
545 | <td | |
546 | width="35% " | |
547 | valign="to p" | |
548 | > | |
549 | </td> | |
550 | ||
551 | </tr> | |
552 | ||
553 | </xsl:if> | |
554 | ||
555 | </table> | |
556 | ||
557 | </xsl:temp late> | |
558 | ||
559 | ||
560 | <xsl:templ ate | |
561 | match="n1: languageCo de" | |
562 | > | |
563 | ||
564 | <xsl:varia ble | |
565 | name="code String" | |
566 | > | |
567 | ||
568 | <xsl:apply -templates | |
569 | select="." | |
570 | mode="data " | |
571 | /> | |
572 | ||
573 | </xsl:vari able> | |
574 | ||
575 | <xsl:if | |
576 | test="stri ng-length( normalize- space($cod eString))> 0" | |
577 | > | |
578 | ||
579 | <li> | |
580 | ||
581 | <xsl:value -of | |
582 | select="$c odeString" | |
583 | /> | |
584 | ||
585 | </li> | |
586 | ||
587 | </xsl:if> | |
588 | ||
589 | </xsl:temp late> | |
590 | ||
591 | ||
592 | <xsl:templ ate | |
593 | name="disp layAuthorB lock" | |
594 | > | |
595 | ||
596 | <xsl:if | |
597 | test="n1:a uthor" | |
598 | > | |
599 | ||
600 | <table | |
601 | width="100 %" | |
602 | class="sec ond" | |
603 | > | |
604 | ||
605 | <tr> | |
606 | ||
607 | <td | |
608 | width="15% " | |
609 | > | |
610 | ||
611 | <b> | |
612 | Source: | |
613 | </b> | |
614 | ||
615 | </td> | |
616 | ||
617 | <td | |
618 | width="85% " | |
619 | > | |
620 | ||
621 | <xsl:value -of | |
622 | select="n1 :author/n1 :assignedA uthor/n1:r epresented Organizati on/n1:name /text()" | |
623 | /> | |
624 | ||
625 | </td> | |
626 | ||
627 | </tr> | |
628 | ||
629 | <xsl:choos e> | |
630 | ||
631 | <xsl:when | |
632 | test="not( $isMVA)" | |
633 | > | |
634 | ||
635 | <xsl:if | |
636 | test="stri ng-length( normalize- space(n1:a uthor/n1:a ssignedAut hor/n1:ass ignedPerso n/n1:name) )>1" | |
637 | > | |
638 | ||
639 | <tr> | |
640 | ||
641 | <td | |
642 | width="15% " | |
643 | valign="to p" | |
644 | > | |
645 | </td> | |
646 | ||
647 | <td | |
648 | width="85% " | |
649 | valign="to p" | |
650 | > | |
651 | Author : | |
652 | ||
653 | <xsl:call- template | |
654 | name="getP ersonNameF romRoot" | |
655 | > | |
656 | ||
657 | <xsl:with- param | |
658 | name="name Root" | |
659 | select="n1 :author/n1 :assignedA uthor/n1:a ssignedPer son/n1:nam e" | |
660 | /> | |
661 | ||
662 | </xsl:call -template> | |
663 | ||
664 | </td> | |
665 | ||
666 | </tr> | |
667 | ||
668 | </xsl:if> | |
669 | ||
670 | </xsl:when > | |
671 | ||
672 | </xsl:choo se> | |
673 | ||
674 | </table> | |
675 | ||
676 | </xsl:if> | |
677 | ||
678 | </xsl:temp late> | |
679 | ||
680 | ||
681 | <xsl:templ ate | |
682 | name="disp layTableOf Contents" | |
683 | > | |
684 | ||
685 | <div | |
686 | style="mar gin-bottom :35px" | |
687 | > | |
688 | ||
689 | <h3> | |
690 | ||
691 | <a | |
692 | name="toc" | |
693 | > | |
694 | Table of C ontents | |
695 | </a> | |
696 | ||
697 | </h3> | |
698 | ||
699 | <ul> | |
700 | ||
701 | <xsl:for-e ach | |
702 | select="n1 :component /n1:struct uredBody/n 1:componen t/n1:secti on/n1:titl e" | |
703 | > | |
704 | ||
705 | <xsl:sort/ > | |
706 | ||
707 | <xsl:varia ble | |
708 | name="comp Found" | |
709 | > | |
710 | ||
711 | <xsl:call- template | |
712 | name="comp onentFound " | |
713 | > | |
714 | ||
715 | <xsl:with- param | |
716 | name="comp Section" | |
717 | select=".. /." | |
718 | /> | |
719 | ||
720 | </xsl:call -template> | |
721 | ||
722 | </xsl:vari able> | |
723 | ||
724 | <xsl:choos e> | |
725 | ||
726 | <xsl:when | |
727 | test="stri ng-length( $compFound )>0" | |
728 | > | |
729 | ||
730 | <li> | |
731 | ||
732 | <a | |
733 | style="fon t-family:g eorgia;fon t-size:12p t" | |
734 | href="#{ge nerate-id( .)}" | |
735 | > | |
736 | ||
737 | <xsl:value -of | |
738 | select="." | |
739 | /> | |
740 | ||
741 | </a> | |
742 | ||
743 | </li> | |
744 | ||
745 | </xsl:when > | |
746 | ||
747 | </xsl:choo se> | |
748 | ||
749 | </xsl:for- each> | |
750 | ||
751 | </ul> | |
752 | ||
753 | </div> | |
754 | ||
755 | </xsl:temp late> | |
756 | ||
757 | ||
758 | <xsl:templ ate | |
759 | name="disp layContent s" | |
760 | > | |
761 | ||
762 | <xsl:apply -templates | |
763 | select="n1 :component /n1:struct uredBody/n 1:componen t" | |
764 | > | |
765 | ||
766 | <xsl:sort | |
767 | select="n1 :section/n 1:title" | |
768 | /> | |
769 | ||
770 | </xsl:appl y-template s> | |
771 | ||
772 | <br> | |
773 | </br> | |
774 | ||
775 | </xsl:temp late> | |
776 | ||
777 | ||
778 | <xsl:templ ate | |
779 | name="disp layContact InfoBlock" | |
780 | > | |
781 | ||
782 | <xsl:choos e> | |
783 | ||
784 | <xsl:when | |
785 | test="stri ng-length( n1:partici pant[@type Code='IND' ]/n1:assoc iatedEntit y)>0" | |
786 | > | |
787 | ||
788 | <table | |
789 | class="fir st" | |
790 | > | |
791 | ||
792 | <tr> | |
793 | ||
794 | <td | |
795 | width="100 px" | |
796 | valign="to p" | |
797 | align='lef t' | |
798 | > | |
799 | ||
800 | <b> | |
801 | Contact(s) : | |
802 | </b> | |
803 | ||
804 | </td> | |
805 | ||
806 | <td | |
807 | valign="to p" | |
808 | > | |
809 | ||
810 | <xsl:call- template | |
811 | name="getP articipant info" | |
812 | > | |
813 | ||
814 | <xsl:with- param | |
815 | name="part icipant" | |
816 | select="n1 :participa nt[@typeCo de='IND']/ n1:associa tedEntity" | |
817 | /> | |
818 | ||
819 | </xsl:call -template> | |
820 | ||
821 | </td> | |
822 | ||
823 | <td | |
824 | width="50p x" | |
825 | > | |
826 | ||
827 | </td> | |
828 | ||
829 | </tr> | |
830 | ||
831 | </table> | |
832 | ||
833 | </xsl:when > | |
834 | ||
835 | <xsl:other wise> | |
836 | ||
837 | <xsl:text | |
838 | disable-ou tput-escap ing="yes" | |
839 | > | |
840 | &nbsp; | |
841 | </xsl:text > | |
842 | ||
843 | <span | |
844 | style="fon t-weight:b old; borde r:2px soli d;" | |
845 | > | |
846 | ||
847 | <xsl:text> | |
848 | EMERGENCY CONTACT I NFO MISSIN G! | |
849 | </xsl:text > | |
850 | ||
851 | </span> | |
852 | ||
853 | </xsl:othe rwise> | |
854 | ||
855 | </xsl:choo se> | |
856 | ||
857 | </xsl:temp late> | |
858 | ||
859 | ||
860 | <xsl:templ ate | |
861 | name="getP articipant info" | |
862 | > | |
863 | ||
864 | <xsl:param | |
865 | name="part icipant" | |
866 | /> | |
867 | ||
868 | <p> | |
869 | ||
870 | <xsl:for-e ach | |
871 | select="$p articipant " | |
872 | > | |
873 | ||
874 | <xsl:call- template | |
875 | name="emer Name" | |
876 | > | |
877 | ||
878 | <xsl:with- param | |
879 | name="part icipant" | |
880 | select="." | |
881 | /> | |
882 | ||
883 | </xsl:call -template> | |
884 | ||
885 | <xsl:call- template | |
886 | name="emer Address" | |
887 | > | |
888 | ||
889 | <xsl:with- param | |
890 | name="part icipant" | |
891 | select="." | |
892 | /> | |
893 | ||
894 | </xsl:call -template> | |
895 | ||
896 | <xsl:call- template | |
897 | name="emer Telecom" | |
898 | > | |
899 | ||
900 | <xsl:with- param | |
901 | name="part icipant" | |
902 | select="." | |
903 | /> | |
904 | ||
905 | </xsl:call -template> | |
906 | ||
907 | <xsl:call- template | |
908 | name="emer Relationsh ip" | |
909 | > | |
910 | ||
911 | <xsl:with- param | |
912 | name="part icipant" | |
913 | select="." | |
914 | /> | |
915 | ||
916 | </xsl:call -template> | |
917 | ||
918 | <xsl:call- template | |
919 | name="emer Type" | |
920 | > | |
921 | ||
922 | <xsl:with- param | |
923 | name="part icipant" | |
924 | select="." | |
925 | /> | |
926 | ||
927 | </xsl:call -template> | |
928 | ||
929 | <br/> | |
930 | ||
931 | </xsl:for- each> | |
932 | ||
933 | </p> | |
934 | ||
935 | </xsl:temp late> | |
936 | ||
937 | ||
938 | <xsl:templ ate | |
939 | name="emer Name" | |
940 | > | |
941 | ||
942 | <xsl:param | |
943 | name="part icipant" | |
944 | /> | |
945 | ||
946 | <br/> | |
947 | ||
948 | <xsl:call- template | |
949 | name="getN ame" | |
950 | > | |
951 | ||
952 | <xsl:with- param | |
953 | name="name " | |
954 | select="$p articipant /n1:associ atedPerson /n1:name" | |
955 | /> | |
956 | ||
957 | </xsl:call -template> | |
958 | ||
959 | </xsl:temp late> | |
960 | ||
961 | ||
962 | <xsl:templ ate | |
963 | name="emer Address" | |
964 | > | |
965 | ||
966 | <xsl:param | |
967 | name="part icipant" | |
968 | /> | |
969 | ||
970 | <xsl:if | |
971 | test="$par ticipant/n 1:addr/n1: streetAddr essLine" | |
972 | > | |
973 | ||
974 | <xsl:for-e ach | |
975 | select="$p articipant /n1:addr/n 1:streetAd dressLine" | |
976 | > | |
977 | ||
978 | <xsl:if | |
979 | test="stri ng-length( normalize- space(curr ent()))!=0 " | |
980 | > | |
981 | ||
982 | <br/> | |
983 | ||
984 | <xsl:value -of | |
985 | select="." | |
986 | /> | |
987 | ||
988 | </xsl:if> | |
989 | ||
990 | </xsl:for- each> | |
991 | ||
992 | </xsl:if> | |
993 | ||
994 | <xsl:if | |
995 | test="$par ticipant/n 1:addr/n1: city" | |
996 | > | |
997 | ||
998 | <br/> | |
999 | ||
1000 | <xsl:value -of | |
1001 | select="$p articipant /n1:addr/n 1:city" | |
1002 | /> | |
1003 | ||
1004 | <xsl:text> | |
1005 | , | |
1006 | </xsl:text > | |
1007 | ||
1008 | </xsl:if> | |
1009 | ||
1010 | <xsl:if | |
1011 | test="$par ticipant/n 1:addr/n1: state" | |
1012 | > | |
1013 | ||
1014 | <xsl:value -of | |
1015 | select="$p articipant /n1:addr/n 1:state" | |
1016 | /> | |
1017 | ||
1018 | <xsl:text> | |
1019 | ||
1020 | </xsl:text > | |
1021 | ||
1022 | </xsl:if> | |
1023 | ||
1024 | <xsl:if | |
1025 | test="$par ticipant/n 1:addr/n1: postalCode " | |
1026 | > | |
1027 | ||
1028 | <xsl:value -of | |
1029 | select="$p articipant /n1:addr/n 1:postalCo de" | |
1030 | /> | |
1031 | ||
1032 | </xsl:if> | |
1033 | ||
1034 | </xsl:temp late> | |
1035 | ||
1036 | ||
1037 | <xsl:templ ate | |
1038 | name="emer Telecom" | |
1039 | > | |
1040 | ||
1041 | <xsl:param | |
1042 | name="part icipant" | |
1043 | /> | |
1044 | ||
1045 | <xsl:choos e> | |
1046 | ||
1047 | <xsl:when | |
1048 | test="$par ticipant/n 1:telecom/ @value" | |
1049 | > | |
1050 | ||
1051 | <xsl:for-e ach | |
1052 | select="$p articipant /n1:teleco m" | |
1053 | > | |
1054 | ||
1055 | <xsl:call- template | |
1056 | name="getT elecom" | |
1057 | > | |
1058 | ||
1059 | <xsl:with- param | |
1060 | name="tele com" | |
1061 | select="." | |
1062 | /> | |
1063 | ||
1064 | </xsl:call -template> | |
1065 | ||
1066 | </xsl:for- each> | |
1067 | ||
1068 | </xsl:when > | |
1069 | ||
1070 | <xsl:other wise> | |
1071 | ||
1072 | <br/> | |
1073 | ||
1074 | <b> | |
1075 | ||
1076 | <xsl:text> | |
1077 | tel: CONTA CT PHONE M ISSING | |
1078 | </xsl:text > | |
1079 | ||
1080 | </b> | |
1081 | ||
1082 | </xsl:othe rwise> | |
1083 | ||
1084 | </xsl:choo se> | |
1085 | ||
1086 | </xsl:temp late> | |
1087 | ||
1088 | ||
1089 | <xsl:templ ate | |
1090 | name="emer Relationsh ip" | |
1091 | > | |
1092 | ||
1093 | <xsl:param | |
1094 | name="part icipant" | |
1095 | /> | |
1096 | ||
1097 | <xsl:choos e> | |
1098 | ||
1099 | <xsl:when | |
1100 | test="$par ticipant/n 1:code/@di splayName" | |
1101 | > | |
1102 | ||
1103 | <br/> | |
1104 | ||
1105 | <b> | |
1106 | Relationsh ip: | |
1107 | </b> | |
1108 | ||
1109 | <xsl:value -of | |
1110 | select="$p articipant /n1:code/@ displayNam e" | |
1111 | /> | |
1112 | ||
1113 | </xsl:when > | |
1114 | ||
1115 | <xsl:when | |
1116 | test="$par ticipant/n 1:code/n1: originalTe xt" | |
1117 | > | |
1118 | ||
1119 | <br/> | |
1120 | ||
1121 | <b> | |
1122 | Relationsh ip: | |
1123 | </b> | |
1124 | ||
1125 | <xsl:value -of | |
1126 | select="$p articipant /n1:code/n 1:original Text" | |
1127 | /> | |
1128 | ||
1129 | </xsl:when > | |
1130 | ||
1131 | </xsl:choo se> | |
1132 | ||
1133 | </xsl:temp late> | |
1134 | ||
1135 | ||
1136 | <xsl:templ ate | |
1137 | name="emer Type" | |
1138 | > | |
1139 | ||
1140 | <xsl:param | |
1141 | name="part icipant" | |
1142 | /> | |
1143 | ||
1144 | <xsl:if | |
1145 | test="$par ticipant/@ classCode" | |
1146 | > | |
1147 | ||
1148 | <br/> | |
1149 | ||
1150 | <b> | |
1151 | Contact Ty pe: | |
1152 | </b> | |
1153 | ||
1154 | <xsl:choos e> | |
1155 | ||
1156 | <xsl:when | |
1157 | test="$par ticipant/@ classCode= 'AGNT'" | |
1158 | > | |
1159 | ||
1160 | <xsl:text> | |
1161 | Agent | |
1162 | </xsl:text > | |
1163 | ||
1164 | </xsl:when > | |
1165 | ||
1166 | <xsl:when | |
1167 | test="$par ticipant/@ classCode= 'CAREGIVER '" | |
1168 | > | |
1169 | ||
1170 | <xsl:text> | |
1171 | Caregiver | |
1172 | </xsl:text > | |
1173 | ||
1174 | </xsl:when > | |
1175 | ||
1176 | <xsl:when | |
1177 | test="$par ticipant/@ classCode= 'ECON'" | |
1178 | > | |
1179 | ||
1180 | <xsl:text> | |
1181 | Emergency Contact | |
1182 | </xsl:text > | |
1183 | ||
1184 | </xsl:when > | |
1185 | ||
1186 | <xsl:when | |
1187 | test="$par ticipant/@ classCode= 'GUARD'" | |
1188 | > | |
1189 | ||
1190 | <xsl:text> | |
1191 | Guardian | |
1192 | </xsl:text > | |
1193 | ||
1194 | </xsl:when > | |
1195 | ||
1196 | <xsl:when | |
1197 | test="$par ticipant/@ classCode= 'NOK'" | |
1198 | > | |
1199 | ||
1200 | <xsl:text> | |
1201 | Next of ki n | |
1202 | </xsl:text > | |
1203 | ||
1204 | </xsl:when > | |
1205 | ||
1206 | <xsl:when | |
1207 | test="$par ticipant/@ classCode= 'PRS'" | |
1208 | > | |
1209 | ||
1210 | <xsl:text> | |
1211 | Personal | |
1212 | </xsl:text > | |
1213 | ||
1214 | </xsl:when > | |
1215 | ||
1216 | </xsl:choo se> | |
1217 | ||
1218 | </xsl:if> | |
1219 | ||
1220 | </xsl:temp late> | |
1221 | ||
1222 | ||
1223 | <xsl:templ ate | |
1224 | name="getP articipant " | |
1225 | > | |
1226 | ||
1227 | <xsl:param | |
1228 | name="part icipant" | |
1229 | /> | |
1230 | ||
1231 | <p> | |
1232 | ||
1233 | <xsl:call- template | |
1234 | name="getN ame" | |
1235 | > | |
1236 | ||
1237 | <xsl:with- param | |
1238 | name="name " | |
1239 | select="$p articipant /n1:associ atedPerson /n1:name" | |
1240 | /> | |
1241 | ||
1242 | </xsl:call -template> | |
1243 | ||
1244 | <xsl:if | |
1245 | test="$par ticipant/n 1:addr" | |
1246 | > | |
1247 | ||
1248 | <xsl:choos e> | |
1249 | ||
1250 | <xsl:when | |
1251 | test="$isK aiser" | |
1252 | > | |
1253 | ||
1254 | <xsl:call- template | |
1255 | name="getS ingleAddre ss" | |
1256 | > | |
1257 | ||
1258 | <xsl:with- param | |
1259 | name="addr " | |
1260 | select="$p articipant /n1:addr" | |
1261 | /> | |
1262 | ||
1263 | </xsl:call -template> | |
1264 | ||
1265 | </xsl:when > | |
1266 | ||
1267 | <xsl:other wise> | |
1268 | ||
1269 | <xsl:call- template | |
1270 | name="getA ddress" | |
1271 | > | |
1272 | ||
1273 | <xsl:with- param | |
1274 | name="addr " | |
1275 | select="$p articipant /n1:addr" | |
1276 | /> | |
1277 | ||
1278 | </xsl:call -template> | |
1279 | ||
1280 | </xsl:othe rwise> | |
1281 | ||
1282 | </xsl:choo se> | |
1283 | ||
1284 | </xsl:if> | |
1285 | ||
1286 | <xsl:choos e> | |
1287 | ||
1288 | <xsl:when | |
1289 | test="$par ticipant/n 1:telecom/ @value" | |
1290 | > | |
1291 | ||
1292 | <xsl:for-e ach | |
1293 | select="$p articipant /n1:teleco m" | |
1294 | > | |
1295 | ||
1296 | <xsl:call- template | |
1297 | name="getT elecom" | |
1298 | > | |
1299 | ||
1300 | <xsl:with- param | |
1301 | name="tele com" | |
1302 | select="." | |
1303 | /> | |
1304 | ||
1305 | </xsl:call -template> | |
1306 | ||
1307 | </xsl:for- each> | |
1308 | ||
1309 | </xsl:when > | |
1310 | ||
1311 | <xsl:other wise> | |
1312 | ||
1313 | <br/> | |
1314 | ||
1315 | <b> | |
1316 | ||
1317 | <xsl:text> | |
1318 | tel: CONTA CT PHONE M ISSING | |
1319 | </xsl:text > | |
1320 | ||
1321 | </b> | |
1322 | ||
1323 | </xsl:othe rwise> | |
1324 | ||
1325 | </xsl:choo se> | |
1326 | ||
1327 | <xsl:if | |
1328 | test="$par ticipant/n 1:code/n1: originalTe xt" | |
1329 | > | |
1330 | ||
1331 | <br/> | |
1332 | ||
1333 | <b> | |
1334 | Relationsh ip: | |
1335 | </b> | |
1336 | ||
1337 | <xsl:value -of | |
1338 | select="$p articipant /n1:code/n 1:original Text" | |
1339 | /> | |
1340 | ||
1341 | </xsl:if> | |
1342 | ||
1343 | </p> | |
1344 | ||
1345 | </xsl:temp late> | |
1346 | ||
1347 | ||
1348 | <xsl:templ ate | |
1349 | name="getS ingleAddre ss" | |
1350 | > | |
1351 | ||
1352 | <xsl:param | |
1353 | name="addr " | |
1354 | /> | |
1355 | ||
1356 | <xsl:if | |
1357 | test="$add r/n1:stree tAddressLi ne != ' '" | |
1358 | > | |
1359 | ||
1360 | <br/> | |
1361 | ||
1362 | <xsl:if | |
1363 | test="stri ng-length( $addr/n1:s treetAddre ssLine)>0" | |
1364 | > | |
1365 | ||
1366 | <xsl:value -of | |
1367 | select="$a ddr/n1:str eetAddress Line" | |
1368 | /> | |
1369 | ||
1370 | </xsl:if> | |
1371 | ||
1372 | ||
1373 | <br/> | |
1374 | ||
1375 | <xsl:value -of | |
1376 | select="$a ddr/n1:cit y" | |
1377 | /> | |
1378 | , | |
1379 | ||
1380 | <xsl:value -of | |
1381 | select="$a ddr/n1:sta te" | |
1382 | /> | |
1383 | , | |
1384 | ||
1385 | <xsl:value -of | |
1386 | select="$a ddr/n1:pos talCode" | |
1387 | /> | |
1388 | ||
1389 | </xsl:if> | |
1390 | ||
1391 | </xsl:temp late> | |
1392 | ||
1393 | ||
1394 | <xsl:templ ate | |
1395 | name="getA ddress" | |
1396 | > | |
1397 | ||
1398 | <xsl:param | |
1399 | name="addr " | |
1400 | /> | |
1401 | ||
1402 | <xsl:if | |
1403 | test="$add r/n1:stree tAddressLi ne != ' '" | |
1404 | > | |
1405 | ||
1406 | <xsl:for-e ach | |
1407 | select="$a ddr/n1:str eetAddress Line" | |
1408 | > | |
1409 | ||
1410 | <br/> | |
1411 | ||
1412 | <xsl:if | |
1413 | test="stri ng-length( $addr/n1:s treetAddre ssLine)>0" | |
1414 | > | |
1415 | ||
1416 | <xsl:value -of | |
1417 | select="." | |
1418 | /> | |
1419 | ||
1420 | </xsl:if> | |
1421 | ||
1422 | </xsl:for- each> | |
1423 | ||
1424 | </xsl:if> | |
1425 | ||
1426 | <br/> | |
1427 | ||
1428 | <xsl:value -of | |
1429 | select="$a ddr/n1:cit y" | |
1430 | /> | |
1431 | , | |
1432 | ||
1433 | <xsl:value -of | |
1434 | select="$a ddr/n1:sta te" | |
1435 | /> | |
1436 | , | |
1437 | ||
1438 | <xsl:value -of | |
1439 | select="$a ddr/n1:pos talCode" | |
1440 | /> | |
1441 | ||
1442 | </xsl:temp late> | |
1443 | ||
1444 | ||
1445 | <xsl:templ ate | |
1446 | name="getT elecom" | |
1447 | > | |
1448 | ||
1449 | <xsl:param | |
1450 | name="tele com" | |
1451 | /> | |
1452 | ||
1453 | <br/> | |
1454 | ||
1455 | <xsl:if | |
1456 | test="stri ng-length( $telecom/@ value)>0" | |
1457 | > | |
1458 | ||
1459 | <xsl:value -of | |
1460 | select="$t elecom/@va lue" | |
1461 | /> | |
1462 | ||
1463 | <xsl:choos e> | |
1464 | ||
1465 | <xsl:when | |
1466 | test="./@u se='HP' " | |
1467 | > | |
1468 | ||
1469 | <b> | |
1470 | ||
1471 | <xsl:text> | |
1472 | Home | |
1473 | </xsl:text > | |
1474 | ||
1475 | </b> | |
1476 | ||
1477 | </xsl:when > | |
1478 | ||
1479 | <xsl:when | |
1480 | test="./@u se='WP' " | |
1481 | > | |
1482 | ||
1483 | <b> | |
1484 | ||
1485 | <xsl:text> | |
1486 | Work | |
1487 | </xsl:text > | |
1488 | ||
1489 | </b> | |
1490 | ||
1491 | </xsl:when > | |
1492 | ||
1493 | <xsl:when | |
1494 | test="./@u se='HV' " | |
1495 | > | |
1496 | ||
1497 | <b> | |
1498 | ||
1499 | <xsl:text> | |
1500 | Vacation | |
1501 | </xsl:text > | |
1502 | ||
1503 | </b> | |
1504 | ||
1505 | </xsl:when > | |
1506 | ||
1507 | <xsl:when | |
1508 | test="./@u se='MC' " | |
1509 | > | |
1510 | ||
1511 | <b> | |
1512 | ||
1513 | <xsl:text> | |
1514 | Mobile | |
1515 | </xsl:text > | |
1516 | ||
1517 | </b> | |
1518 | ||
1519 | </xsl:when > | |
1520 | ||
1521 | <xsl:other wise> | |
1522 | ||
1523 | <b> | |
1524 | ||
1525 | <xsl:text> | |
1526 | </xsl:text > | |
1527 | ||
1528 | </b> | |
1529 | ||
1530 | </xsl:othe rwise> | |
1531 | ||
1532 | </xsl:choo se> | |
1533 | ||
1534 | </xsl:if> | |
1535 | ||
1536 | </xsl:temp late> | |
1537 | ||
1538 | ||
1539 | <!-- Get A uthor --> | |
1540 | ||
1541 | <xsl:templ ate | |
1542 | name="getA uthor" | |
1543 | > | |
1544 | ||
1545 | <xsl:varia ble | |
1546 | name="auth or" | |
1547 | /> | |
1548 | ||
1549 | <xsl:call- template | |
1550 | name="getN ame" | |
1551 | > | |
1552 | ||
1553 | <xsl:with- param | |
1554 | name="name " | |
1555 | select="n1 :author/n1 :assignedA uthor/n1:a ssignedPer son/n1:nam e" | |
1556 | /> | |
1557 | ||
1558 | </xsl:call -template> | |
1559 | ||
1560 | <xsl:choos e> | |
1561 | ||
1562 | <xsl:when | |
1563 | test="$aut hor" | |
1564 | > | |
1565 | ||
1566 | <xsl:value -of | |
1567 | select="n1 :author/n1 :assignedA uthor/n1:a ssignedPer son/n1:nam e" | |
1568 | /> | |
1569 | ||
1570 | </xsl:when > | |
1571 | ||
1572 | </xsl:choo se> | |
1573 | ||
1574 | </xsl:temp late> | |
1575 | ||
1576 | ||
1577 | <!-- Struc turedBody --> | |
1578 | ||
1579 | ||
1580 | <xsl:templ ate | |
1581 | name="disp layProblem ComponentS ection" | |
1582 | > | |
1583 | ||
1584 | <xsl:call- template | |
1585 | name="getC ommonForma tComments" | |
1586 | /> | |
1587 | ||
1588 | <xsl:call- template | |
1589 | name="prob lemDetails " | |
1590 | > | |
1591 | ||
1592 | <xsl:with- param | |
1593 | select="." | |
1594 | name="sect ion" | |
1595 | /> | |
1596 | ||
1597 | </xsl:call -template> | |
1598 | ||
1599 | </xsl:temp late> | |
1600 | ||
1601 | ||
1602 | <xsl:templ ate | |
1603 | name="disp layAllergy ComponentS ection" | |
1604 | > | |
1605 | ||
1606 | <xsl:call- template | |
1607 | name="getC ommonForma tComments" | |
1608 | /> | |
1609 | ||
1610 | <xsl:call- template | |
1611 | name="alle rgyDetails " | |
1612 | > | |
1613 | ||
1614 | <xsl:with- param | |
1615 | select="." | |
1616 | name="sect ion" | |
1617 | /> | |
1618 | ||
1619 | </xsl:call -template> | |
1620 | ||
1621 | </xsl:temp late> | |
1622 | ||
1623 | ||
1624 | <xsl:templ ate | |
1625 | name="disp layMedsCom ponentSect ion" | |
1626 | > | |
1627 | ||
1628 | <xsl:call- template | |
1629 | name="getC ommonForma tComments" | |
1630 | /> | |
1631 | ||
1632 | <xsl:call- template | |
1633 | name="medD etails" | |
1634 | > | |
1635 | ||
1636 | <xsl:with- param | |
1637 | select="." | |
1638 | name="sect ion" | |
1639 | /> | |
1640 | ||
1641 | </xsl:call -template> | |
1642 | ||
1643 | </xsl:temp late> | |
1644 | ||
1645 | ||
1646 | <xsl:templ ate | |
1647 | name="disp layEncount erComponen tSection" | |
1648 | > | |
1649 | ||
1650 | <xsl:call- template | |
1651 | name="enco unterNotic e" | |
1652 | > | |
1653 | ||
1654 | <xsl:with- param | |
1655 | select="." | |
1656 | name="sect ion" | |
1657 | /> | |
1658 | ||
1659 | </xsl:call -template> | |
1660 | ||
1661 | <xsl:call- template | |
1662 | name="enco unterDetai ls" | |
1663 | > | |
1664 | ||
1665 | <xsl:with- param | |
1666 | select="." | |
1667 | name="sect ion" | |
1668 | /> | |
1669 | ||
1670 | </xsl:call -template> | |
1671 | ||
1672 | </xsl:temp late> | |
1673 | ||
1674 | ||
1675 | <xsl:templ ate | |
1676 | name="disp layResults ComponentS ection" | |
1677 | > | |
1678 | ||
1679 | <xsl:call- template | |
1680 | name="getC ommonForma tComments" | |
1681 | /> | |
1682 | ||
1683 | <xsl:call- template | |
1684 | name="resu ltsDetails " | |
1685 | > | |
1686 | ||
1687 | <xsl:with- param | |
1688 | select="." | |
1689 | name="sect ion" | |
1690 | /> | |
1691 | ||
1692 | </xsl:call -template> | |
1693 | ||
1694 | </xsl:temp late> | |
1695 | ||
1696 | ||
1697 | <xsl:templ ate | |
1698 | name="disp layProcedu resCompone ntSection" | |
1699 | > | |
1700 | ||
1701 | <xsl:call- template | |
1702 | name="proc eduresNoti ce" | |
1703 | > | |
1704 | ||
1705 | <xsl:with- param | |
1706 | select="." | |
1707 | name="sect ion" | |
1708 | /> | |
1709 | ||
1710 | </xsl:call -template> | |
1711 | ||
1712 | <xsl:call- template | |
1713 | name="proc eduresDeta ils" | |
1714 | > | |
1715 | ||
1716 | <xsl:with- param | |
1717 | select="." | |
1718 | name="sect ion" | |
1719 | /> | |
1720 | ||
1721 | </xsl:call -template> | |
1722 | ||
1723 | </xsl:temp late> | |
1724 | ||
1725 | ||
1726 | <xsl:templ ate | |
1727 | name="disp layImmuniz ationsComp onentSecti on" | |
1728 | > | |
1729 | ||
1730 | <xsl:call- template | |
1731 | name="getC ommonForma tComments" | |
1732 | /> | |
1733 | ||
1734 | <xsl:call- template | |
1735 | name="immu nizationsD etails" | |
1736 | > | |
1737 | ||
1738 | <xsl:with- param | |
1739 | select="." | |
1740 | name="sect ion" | |
1741 | /> | |
1742 | ||
1743 | </xsl:call -template> | |
1744 | ||
1745 | </xsl:temp late> | |
1746 | ||
1747 | ||
1748 | <xsl:templ ate | |
1749 | name="disp layVitalsC omponentSe ction" | |
1750 | > | |
1751 | ||
1752 | <xsl:call- template | |
1753 | name="getC ommonForma tComments" | |
1754 | /> | |
1755 | ||
1756 | <xsl:call- template | |
1757 | name="vita lsDetails" | |
1758 | > | |
1759 | ||
1760 | <xsl:with- param | |
1761 | select="." | |
1762 | name="sect ion" | |
1763 | /> | |
1764 | ||
1765 | </xsl:call -template> | |
1766 | ||
1767 | </xsl:temp late> | |
1768 | ||
1769 | ||
1770 | <!-- Encou nter Detai l Section- -> | |
1771 | ||
1772 | <xsl:templ ate | |
1773 | name="enco unterDetai ls" | |
1774 | > | |
1775 | ||
1776 | <xsl:param | |
1777 | name="sect ion" | |
1778 | /> | |
1779 | ||
1780 | <xsl:if | |
1781 | test="$sec tion/n1:en try" | |
1782 | > | |
1783 | ||
1784 | <table | |
1785 | border="1" | |
1786 | style="fon t-size:14p x;" | |
1787 | > | |
1788 | ||
1789 | <thead> | |
1790 | ||
1791 | <tr> | |
1792 | ||
1793 | <th | |
1794 | class="fir st" | |
1795 | > | |
1796 | ||
1797 | <xsl:text> | |
1798 | Date/Time | |
1799 | </xsl:text > | |
1800 | ||
1801 | <xsl:if | |
1802 | test="n1:e ntry/n1:en counter" | |
1803 | > | |
1804 | ||
1805 | <xsl:text> | |
1806 | - Count ( | |
1807 | </xsl:text > | |
1808 | ||
1809 | <xsl:value -of | |
1810 | select="co unt(n1:ent ry/n1:enco unter)" | |
1811 | /> | |
1812 | ||
1813 | <xsl:text> | |
1814 | ) | |
1815 | </xsl:text > | |
1816 | ||
1817 | </xsl:if> | |
1818 | ||
1819 | </th> | |
1820 | ||
1821 | <th | |
1822 | class="fir st" | |
1823 | > | |
1824 | Encounter Type | |
1825 | </th> | |
1826 | ||
1827 | <th | |
1828 | class="fir st" | |
1829 | > | |
1830 | Encounter Comments | |
1831 | </th> | |
1832 | ||
1833 | <th | |
1834 | class="fir st" | |
1835 | > | |
1836 | Provider | |
1837 | </th> | |
1838 | ||
1839 | </tr> | |
1840 | ||
1841 | </thead> | |
1842 | ||
1843 | <tbody> | |
1844 | ||
1845 | <xsl:apply -templates | |
1846 | select="$s ection/n1: entry" | |
1847 | > | |
1848 | ||
1849 | <xsl:sort | |
1850 | select="n1 :encounter /n1:effect iveTime/n1 :low/@valu e" | |
1851 | order="des cending" | |
1852 | /> | |
1853 | ||
1854 | </xsl:appl y-template s> | |
1855 | ||
1856 | </tbody> | |
1857 | ||
1858 | </table> | |
1859 | ||
1860 | </xsl:if> | |
1861 | ||
1862 | <br> | |
1863 | </br> | |
1864 | ||
1865 | <xsl:choos e> | |
1866 | ||
1867 | <xsl:when | |
1868 | test="not( boolean(n1 :entry/n1: encounter) )" | |
1869 | > | |
1870 | ||
1871 | <xsl:call- template | |
1872 | name="noDa ta" | |
1873 | /> | |
1874 | ||
1875 | </xsl:when > | |
1876 | ||
1877 | <xsl:other wise> | |
1878 | ||
1879 | <br> | |
1880 | </br> | |
1881 | ||
1882 | </xsl:othe rwise> | |
1883 | ||
1884 | </xsl:choo se> | |
1885 | ||
1886 | </xsl:temp late> | |
1887 | ||
1888 | ||
1889 | <!-- Meds Detail Sec tion --> | |
1890 | ||
1891 | <xsl:templ ate | |
1892 | name="medD etails" | |
1893 | > | |
1894 | ||
1895 | <xsl:param | |
1896 | name="sect ion" | |
1897 | /> | |
1898 | ||
1899 | <xsl:if | |
1900 | test="$sec tion/n1:en try" | |
1901 | > | |
1902 | ||
1903 | <table | |
1904 | border="1" | |
1905 | style="fon t-size:14p x" | |
1906 | > | |
1907 | ||
1908 | <thead> | |
1909 | ||
1910 | <tr> | |
1911 | ||
1912 | <th | |
1913 | class="fir st" | |
1914 | > | |
1915 | ||
1916 | <xsl:text> | |
1917 | Medication s | |
1918 | </xsl:text > | |
1919 | ||
1920 | <xsl:if | |
1921 | test="n1:e ntry/n1:su bstanceAdm inistratio n" | |
1922 | > | |
1923 | ||
1924 | <xsl:text> | |
1925 | - Count ( | |
1926 | </xsl:text > | |
1927 | ||
1928 | <xsl:value -of | |
1929 | select="co unt(n1:ent ry/n1:subs tanceAdmin istration) " | |
1930 | /> | |
1931 | ||
1932 | <xsl:text> | |
1933 | ) | |
1934 | </xsl:text > | |
1935 | ||
1936 | </xsl:if> | |
1937 | ||
1938 | </th> | |
1939 | ||
1940 | <!--<th cl ass="first ">Route</t h>--> | |
1941 | ||
1942 | <!--<th cl ass="first ">Interval </th>--> | |
1943 | ||
1944 | <th | |
1945 | class="fir st" | |
1946 | > | |
1947 | Status | |
1948 | </th> | |
1949 | ||
1950 | <th | |
1951 | class="fir st" | |
1952 | > | |
1953 | Quantity | |
1954 | </th> | |
1955 | ||
1956 | <th | |
1957 | class="fir st" | |
1958 | > | |
1959 | Order Expi ration | |
1960 | </th> | |
1961 | ||
1962 | <th | |
1963 | class="fir st" | |
1964 | > | |
1965 | Provider | |
1966 | </th> | |
1967 | ||
1968 | <th | |
1969 | class="fir st" | |
1970 | > | |
1971 | Prescripti on # | |
1972 | </th> | |
1973 | ||
1974 | <th | |
1975 | class="fir st" | |
1976 | > | |
1977 | Dispense D ate | |
1978 | </th> | |
1979 | ||
1980 | <th | |
1981 | class="fir st" | |
1982 | > | |
1983 | Sig | |
1984 | </th> | |
1985 | ||
1986 | <th | |
1987 | class="fir st" | |
1988 | > | |
1989 | Source | |
1990 | </th> | |
1991 | ||
1992 | </tr> | |
1993 | ||
1994 | </thead> | |
1995 | ||
1996 | <tbody> | |
1997 | ||
1998 | <xsl:choos e> | |
1999 | ||
2000 | <xsl:when | |
2001 | test="$sec tion/n1:en try/n1:sub stanceAdmi nistration /n1:effect iveTime/n1 :high" | |
2002 | > | |
2003 | ||
2004 | <xsl:apply -templates | |
2005 | select="$s ection/n1: entry" | |
2006 | > | |
2007 | ||
2008 | <xsl:sort | |
2009 | select="n1 :substance Administra tion/n1:ef fectiveTim e/n1:high/ @value" | |
2010 | /> | |
2011 | ||
2012 | </xsl:appl y-template s> | |
2013 | ||
2014 | </xsl:when > | |
2015 | ||
2016 | <xsl:other wise> | |
2017 | ||
2018 | <xsl:apply -templates | |
2019 | select="$s ection/n1: entry" | |
2020 | > | |
2021 | ||
2022 | <xsl:sort | |
2023 | select="n1 :substance Administra tion/n1:en tryRelatio nship/n1:s upply/n1:e ffectiveTi me/@value" | |
2024 | /> | |
2025 | ||
2026 | </xsl:appl y-template s> | |
2027 | ||
2028 | </xsl:othe rwise> | |
2029 | ||
2030 | </xsl:choo se> | |
2031 | ||
2032 | </tbody> | |
2033 | ||
2034 | </table> | |
2035 | ||
2036 | </xsl:if> | |
2037 | ||
2038 | <br> | |
2039 | </br> | |
2040 | ||
2041 | <xsl:choos e> | |
2042 | ||
2043 | <xsl:when | |
2044 | test="not( boolean(n1 :entry/n1: substanceA dministrat ion))" | |
2045 | > | |
2046 | ||
2047 | <xsl:call- template | |
2048 | name="noDa ta" | |
2049 | /> | |
2050 | ||
2051 | <br> | |
2052 | </br> | |
2053 | ||
2054 | </xsl:when > | |
2055 | ||
2056 | <xsl:other wise> | |
2057 | ||
2058 | <br> | |
2059 | </br> | |
2060 | ||
2061 | </xsl:othe rwise> | |
2062 | ||
2063 | </xsl:choo se> | |
2064 | ||
2065 | </xsl:temp late> | |
2066 | ||
2067 | ||
2068 | <!-- Probl em Detail Section -- > | |
2069 | ||
2070 | <xsl:templ ate | |
2071 | name="prob lemDetails " | |
2072 | > | |
2073 | ||
2074 | <xsl:param | |
2075 | name="sect ion" | |
2076 | /> | |
2077 | ||
2078 | <xsl:if | |
2079 | test="$sec tion/n1:en try" | |
2080 | > | |
2081 | ||
2082 | <table | |
2083 | border="1" | |
2084 | style="fon t-size:14p x" | |
2085 | > | |
2086 | ||
2087 | <thead> | |
2088 | ||
2089 | <tr> | |
2090 | ||
2091 | <th | |
2092 | class="fir st" | |
2093 | > | |
2094 | ||
2095 | <xsl:text> | |
2096 | Problems | |
2097 | </xsl:text > | |
2098 | ||
2099 | <xsl:if | |
2100 | test="n1:e ntry/n1:ac t/n1:entry Relationsh ip[@typeCo de='SUBJ'] /n1:observ ation" | |
2101 | > | |
2102 | ||
2103 | <xsl:text> | |
2104 | - Count ( | |
2105 | </xsl:text > | |
2106 | ||
2107 | <xsl:value -of | |
2108 | select="co unt(n1:ent ry/n1:act/ n1:entryRe lationship [@typeCode ='SUBJ']/n 1:observat ion)" | |
2109 | /> | |
2110 | ||
2111 | <xsl:text> | |
2112 | ) | |
2113 | </xsl:text > | |
2114 | ||
2115 | </xsl:if> | |
2116 | ||
2117 | </th> | |
2118 | ||
2119 | <th | |
2120 | class="fir st" | |
2121 | > | |
2122 | Status | |
2123 | </th> | |
2124 | ||
2125 | <th | |
2126 | class="fir st" | |
2127 | > | |
2128 | Problem Co de | |
2129 | </th> | |
2130 | ||
2131 | <th | |
2132 | class="fir st" | |
2133 | > | |
2134 | Date of On set | |
2135 | </th> | |
2136 | ||
2137 | <th | |
2138 | class="fir st" | |
2139 | > | |
2140 | Provider | |
2141 | </th> | |
2142 | ||
2143 | <th | |
2144 | class="fir st" | |
2145 | > | |
2146 | Source | |
2147 | </th> | |
2148 | ||
2149 | </tr> | |
2150 | ||
2151 | </thead> | |
2152 | ||
2153 | <tbody> | |
2154 | ||
2155 | <xsl:choos e> | |
2156 | ||
2157 | <xsl:when | |
2158 | test="$sec tion/n1:en try/n1:act /n1:entryR elationshi p/n1:obser vation/n1: effectiveT ime/n1:low " | |
2159 | > | |
2160 | ||
2161 | <xsl:apply -templates | |
2162 | select="$s ection/n1: entry" | |
2163 | > | |
2164 | ||
2165 | <xsl:sort | |
2166 | select="n1 :act/n1:en tryRelatio nship/n1:o bservation /n1:effect iveTime/n1 :low/@valu e" | |
2167 | order="des cending" | |
2168 | /> | |
2169 | ||
2170 | </xsl:appl y-template s> | |
2171 | ||
2172 | </xsl:when > | |
2173 | ||
2174 | <xsl:other wise> | |
2175 | ||
2176 | <xsl:apply -templates | |
2177 | select="$s ection/n1: entry" | |
2178 | > | |
2179 | ||
2180 | <xsl:sort | |
2181 | select="n1 :act/n1:ef fectiveTim e/n1:low/@ value" | |
2182 | order="des cending" | |
2183 | /> | |
2184 | ||
2185 | </xsl:appl y-template s> | |
2186 | ||
2187 | </xsl:othe rwise> | |
2188 | ||
2189 | </xsl:choo se> | |
2190 | ||
2191 | </tbody> | |
2192 | ||
2193 | </table> | |
2194 | ||
2195 | </xsl:if> | |
2196 | ||
2197 | <br> | |
2198 | </br> | |
2199 | ||
2200 | <xsl:choos e> | |
2201 | ||
2202 | <xsl:when | |
2203 | test="not( boolean(n1 :entry/n1: act/n1:ent ryRelation ship[@type Code='SUBJ ']/n1:obse rvation))" | |
2204 | > | |
2205 | ||
2206 | <xsl:call- template | |
2207 | name="noDa ta" | |
2208 | /> | |
2209 | ||
2210 | </xsl:when > | |
2211 | ||
2212 | <xsl:other wise> | |
2213 | ||
2214 | <br> | |
2215 | </br> | |
2216 | ||
2217 | </xsl:othe rwise> | |
2218 | ||
2219 | </xsl:choo se> | |
2220 | ||
2221 | </xsl:temp late> | |
2222 | ||
2223 | ||
2224 | <!-- Aller gy Detail Section -- > | |
2225 | ||
2226 | <xsl:templ ate | |
2227 | name="alle rgyDetails " | |
2228 | > | |
2229 | ||
2230 | <xsl:param | |
2231 | name="sect ion" | |
2232 | /> | |
2233 | ||
2234 | <xsl:if | |
2235 | test="$sec tion/n1:en try" | |
2236 | > | |
2237 | ||
2238 | <table | |
2239 | border="1" | |
2240 | style="fon t-size:14p x" | |
2241 | > | |
2242 | ||
2243 | <thead> | |
2244 | ||
2245 | <tr> | |
2246 | ||
2247 | <th | |
2248 | class="fir st" | |
2249 | > | |
2250 | ||
2251 | <xsl:text> | |
2252 | Allergens | |
2253 | </xsl:text > | |
2254 | ||
2255 | <xsl:if | |
2256 | test="n1:e ntry/n1:ac t/n1:entry Relationsh ip/n1:obse rvation" | |
2257 | > | |
2258 | ||
2259 | <xsl:text> | |
2260 | - Count ( | |
2261 | </xsl:text > | |
2262 | ||
2263 | <xsl:value -of | |
2264 | select="co unt(n1:ent ry/n1:act/ n1:entryRe lationship /n1:observ ation)" | |
2265 | /> | |
2266 | ||
2267 | <xsl:text> | |
2268 | ) | |
2269 | </xsl:text > | |
2270 | ||
2271 | </xsl:if> | |
2272 | ||
2273 | </th> | |
2274 | ||
2275 | <th | |
2276 | class="fir st" | |
2277 | > | |
2278 | Verificati on Date | |
2279 | </th> | |
2280 | ||
2281 | <th | |
2282 | class="fir st" | |
2283 | > | |
2284 | Event Type | |
2285 | </th> | |
2286 | ||
2287 | <th | |
2288 | class="fir st" | |
2289 | > | |
2290 | Reaction | |
2291 | </th> | |
2292 | ||
2293 | <th | |
2294 | class="fir st" | |
2295 | > | |
2296 | Severity | |
2297 | </th> | |
2298 | ||
2299 | <th | |
2300 | class="fir st" | |
2301 | > | |
2302 | Source | |
2303 | </th> | |
2304 | ||
2305 | </tr> | |
2306 | ||
2307 | </thead> | |
2308 | ||
2309 | <tbody> | |
2310 | ||
2311 | <xsl:choos e> | |
2312 | ||
2313 | <xsl:when | |
2314 | test="$sec tion/n1:en try/n1:act /n1:entryR elationshi p/n1:obser vation/n1: effectiveT ime/n1:low " | |
2315 | > | |
2316 | ||
2317 | <xsl:apply -templates | |
2318 | select="$s ection/n1: entry" | |
2319 | > | |
2320 | ||
2321 | <xsl:sort | |
2322 | select="n1 :act/n1:en tryRelatio nship/n1:o bservation /n1:effect iveTime/n1 :low/@valu e" | |
2323 | order="des cending" | |
2324 | /> | |
2325 | ||
2326 | </xsl:appl y-template s> | |
2327 | ||
2328 | </xsl:when > | |
2329 | ||
2330 | <xsl:other wise> | |
2331 | ||
2332 | <xsl:apply -templates | |
2333 | select="$s ection/n1: entry" | |
2334 | > | |
2335 | ||
2336 | <xsl:sort | |
2337 | select="n1 :act/n1:ef fectiveTim e/n1:low/@ value" | |
2338 | order="des cending" | |
2339 | /> | |
2340 | ||
2341 | </xsl:appl y-template s> | |
2342 | ||
2343 | </xsl:othe rwise> | |
2344 | ||
2345 | </xsl:choo se> | |
2346 | ||
2347 | </tbody> | |
2348 | ||
2349 | </table> | |
2350 | ||
2351 | </xsl:if> | |
2352 | ||
2353 | <br> | |
2354 | </br> | |
2355 | ||
2356 | <xsl:choos e> | |
2357 | ||
2358 | <xsl:when | |
2359 | test="not( boolean(n1 :entry/n1: act/n1:ent ryRelation ship/n1:ob servation) )" | |
2360 | > | |
2361 | ||
2362 | <xsl:call- template | |
2363 | name="noDa ta" | |
2364 | /> | |
2365 | ||
2366 | </xsl:when > | |
2367 | ||
2368 | <xsl:other wise> | |
2369 | ||
2370 | <br> | |
2371 | </br> | |
2372 | ||
2373 | </xsl:othe rwise> | |
2374 | ||
2375 | </xsl:choo se> | |
2376 | ||
2377 | </xsl:temp late> | |
2378 | ||
2379 | ||
2380 | <!-- (Lab) Results De tail Secti on--> | |
2381 | ||
2382 | <xsl:templ ate | |
2383 | name="resu ltsDetails " | |
2384 | > | |
2385 | ||
2386 | <xsl:param | |
2387 | name="sect ion" | |
2388 | /> | |
2389 | ||
2390 | <xsl:if | |
2391 | test="$sec tion/n1:en try" | |
2392 | > | |
2393 | ||
2394 | <table | |
2395 | border="1" | |
2396 | style="fon t-size:14p x" | |
2397 | > | |
2398 | ||
2399 | <thead> | |
2400 | ||
2401 | <tr> | |
2402 | ||
2403 | <th | |
2404 | class="fir st" | |
2405 | > | |
2406 | ||
2407 | <xsl:text> | |
2408 | Date/Time | |
2409 | </xsl:text > | |
2410 | ||
2411 | <xsl:choos e> | |
2412 | ||
2413 | <xsl:when | |
2414 | test="n1:e ntry/n1:or ganizer/n1 :component /n1:observ ation and not(boolea n(n1:entry /n1:observ ation))" | |
2415 | > | |
2416 | ||
2417 | <xsl:text> | |
2418 | - Count ( | |
2419 | </xsl:text > | |
2420 | ||
2421 | <xsl:value -of | |
2422 | select="co unt(n1:ent ry/n1:orga nizer/n1:c omponent)" | |
2423 | /> | |
2424 | ||
2425 | <xsl:text> | |
2426 | ) | |
2427 | </xsl:text > | |
2428 | ||
2429 | </xsl:when > | |
2430 | ||
2431 | <xsl:when | |
2432 | test="n1:e ntry/n1:or ganizer/n1 :component /n1:observ ation and n1:entry/n 1:observat ion" | |
2433 | > | |
2434 | ||
2435 | <xsl:text> | |
2436 | - Count ( | |
2437 | </xsl:text > | |
2438 | ||
2439 | <xsl:value -of | |
2440 | select="co unt(n1:ent ry/n1:orga nizer/n1:c omponent)+ count(n1:e ntry/n1:ob servation) " | |
2441 | /> | |
2442 | ||
2443 | <xsl:text> | |
2444 | ) | |
2445 | </xsl:text > | |
2446 | ||
2447 | </xsl:when > | |
2448 | ||
2449 | <xsl:other wise> | |
2450 | ||
2451 | <xsl:if | |
2452 | test="n1:e ntry/n1:ob servation" | |
2453 | > | |
2454 | ||
2455 | <xsl:text> | |
2456 | - Count ( | |
2457 | </xsl:text > | |
2458 | ||
2459 | <xsl:value -of | |
2460 | select="co unt(n1:ent ry/n1:obse rvation)" | |
2461 | /> | |
2462 | ||
2463 | <xsl:text> | |
2464 | ) | |
2465 | </xsl:text > | |
2466 | ||
2467 | </xsl:if> | |
2468 | ||
2469 | </xsl:othe rwise> | |
2470 | ||
2471 | </xsl:choo se> | |
2472 | ||
2473 | </th> | |
2474 | ||
2475 | <th | |
2476 | class="fir st" | |
2477 | > | |
2478 | Result Typ e | |
2479 | </th> | |
2480 | ||
2481 | <th | |
2482 | class="fir st" | |
2483 | > | |
2484 | Source | |
2485 | </th> | |
2486 | ||
2487 | <th | |
2488 | class="fir st" | |
2489 | > | |
2490 | Result - U nit | |
2491 | </th> | |
2492 | ||
2493 | <th | |
2494 | class="fir st" | |
2495 | > | |
2496 | Interpreta tion | |
2497 | </th> | |
2498 | ||
2499 | <th | |
2500 | class="fir st" | |
2501 | > | |
2502 | Reference Range | |
2503 | </th> | |
2504 | ||
2505 | <th | |
2506 | class="fir st" | |
2507 | > | |
2508 | Status | |
2509 | </th> | |
2510 | ||
2511 | </tr> | |
2512 | ||
2513 | </thead> | |
2514 | ||
2515 | <tbody> | |
2516 | ||
2517 | <xsl:choos e> | |
2518 | ||
2519 | <xsl:when | |
2520 | test="n1:o bservation /n1:effect iveTime/@v alue" | |
2521 | > | |
2522 | ||
2523 | <xsl:apply -templates | |
2524 | select="$s ection/n1: entry" | |
2525 | > | |
2526 | ||
2527 | <xsl:sort | |
2528 | select="n1 :observati on/n1:effe ctiveTime/ @value" | |
2529 | order="des cending" | |
2530 | /> | |
2531 | ||
2532 | </xsl:appl y-template s> | |
2533 | ||
2534 | </xsl:when > | |
2535 | ||
2536 | <xsl:other wise> | |
2537 | ||
2538 | <xsl:apply -templates | |
2539 | select="$s ection/n1: entry" | |
2540 | > | |
2541 | ||
2542 | <xsl:sort | |
2543 | select="n1 :organizer /n1:compon ent/n1:obs ervation/n 1:effectiv eTime/@val ue" | |
2544 | order="des cending" | |
2545 | /> | |
2546 | ||
2547 | </xsl:appl y-template s> | |
2548 | ||
2549 | </xsl:othe rwise> | |
2550 | ||
2551 | </xsl:choo se> | |
2552 | ||
2553 | </tbody> | |
2554 | ||
2555 | </table> | |
2556 | ||
2557 | </xsl:if> | |
2558 | ||
2559 | <br> | |
2560 | </br> | |
2561 | ||
2562 | <xsl:choos e> | |
2563 | ||
2564 | <xsl:when | |
2565 | test="not( boolean(n1 :entry/n1: observatio n)) and no t(boolean( n1:entry/n 1:organize r/n1:compo nent/n1:ob servation[ @classCode ='OBS' and @moodCode ='EVN']))" | |
2566 | > | |
2567 | ||
2568 | <xsl:call- template | |
2569 | name="noDa ta" | |
2570 | /> | |
2571 | ||
2572 | </xsl:when > | |
2573 | ||
2574 | <xsl:other wise> | |
2575 | ||
2576 | <br> | |
2577 | </br> | |
2578 | ||
2579 | </xsl:othe rwise> | |
2580 | ||
2581 | </xsl:choo se> | |
2582 | ||
2583 | </xsl:temp late> | |
2584 | ||
2585 | ||
2586 | <!-- Proce dures Deta il Section --> | |
2587 | ||
2588 | <xsl:templ ate | |
2589 | name="proc eduresDeta ils" | |
2590 | > | |
2591 | ||
2592 | <xsl:param | |
2593 | name="sect ion" | |
2594 | /> | |
2595 | ||
2596 | <xsl:if | |
2597 | test="$sec tion/n1:en try" | |
2598 | > | |
2599 | ||
2600 | <table | |
2601 | border="1" | |
2602 | style="fon t-size:14p x" | |
2603 | > | |
2604 | ||
2605 | <thead> | |
2606 | ||
2607 | <tr> | |
2608 | ||
2609 | <th | |
2610 | class="fir st" | |
2611 | > | |
2612 | ||
2613 | <xsl:text> | |
2614 | Date/Time | |
2615 | </xsl:text > | |
2616 | ||
2617 | <xsl:if | |
2618 | test="n1:e ntry/n1:pr ocedure" | |
2619 | > | |
2620 | ||
2621 | <xsl:text> | |
2622 | - Count ( | |
2623 | </xsl:text > | |
2624 | ||
2625 | <xsl:value -of | |
2626 | select="co unt(n1:ent ry/n1:proc edure)" | |
2627 | /> | |
2628 | ||
2629 | <xsl:text> | |
2630 | ) | |
2631 | </xsl:text > | |
2632 | ||
2633 | </xsl:if> | |
2634 | ||
2635 | </th> | |
2636 | ||
2637 | <th | |
2638 | class="fir st" | |
2639 | > | |
2640 | Procedure Type | |
2641 | </th> | |
2642 | ||
2643 | <th | |
2644 | class="fir st" | |
2645 | > | |
2646 | Procedure Comments | |
2647 | </th> | |
2648 | ||
2649 | <th | |
2650 | class="fir st" | |
2651 | > | |
2652 | Provider | |
2653 | </th> | |
2654 | ||
2655 | </tr> | |
2656 | ||
2657 | </thead> | |
2658 | ||
2659 | <tbody> | |
2660 | ||
2661 | <xsl:apply -templates | |
2662 | select="$s ection/n1: entry" | |
2663 | > | |
2664 | ||
2665 | <xsl:sort | |
2666 | select="n1 :procedure /n1:effect iveTime/n1 :low/@valu e" | |
2667 | order="des cending" | |
2668 | /> | |
2669 | ||
2670 | </xsl:appl y-template s> | |
2671 | ||
2672 | </tbody> | |
2673 | ||
2674 | </table> | |
2675 | ||
2676 | </xsl:if> | |
2677 | ||
2678 | <br> | |
2679 | </br> | |
2680 | ||
2681 | <xsl:choos e> | |
2682 | ||
2683 | <xsl:when | |
2684 | test="not( boolean(n1 :entry/n1: procedure) )" | |
2685 | > | |
2686 | ||
2687 | <xsl:call- template | |
2688 | name="noDa ta" | |
2689 | /> | |
2690 | ||
2691 | </xsl:when > | |
2692 | ||
2693 | <xsl:other wise> | |
2694 | ||
2695 | <br> | |
2696 | </br> | |
2697 | ||
2698 | </xsl:othe rwise> | |
2699 | ||
2700 | </xsl:choo se> | |
2701 | ||
2702 | </xsl:temp late> | |
2703 | ||
2704 | ||
2705 | <!-- Immun izations D etail Sect ion --> | |
2706 | ||
2707 | <xsl:templ ate | |
2708 | name="immu nizationsD etails" | |
2709 | > | |
2710 | ||
2711 | <xsl:param | |
2712 | name="sect ion" | |
2713 | /> | |
2714 | ||
2715 | <xsl:if | |
2716 | test="$sec tion/n1:en try" | |
2717 | > | |
2718 | ||
2719 | <table | |
2720 | border="1" | |
2721 | style="fon t-size:14p x" | |
2722 | > | |
2723 | ||
2724 | <thead> | |
2725 | ||
2726 | <tr> | |
2727 | ||
2728 | <th | |
2729 | class="fir st" | |
2730 | > | |
2731 | ||
2732 | <xsl:text> | |
2733 | Immunizati ons | |
2734 | </xsl:text > | |
2735 | ||
2736 | <xsl:if | |
2737 | test="n1:e ntry/n1:su bstanceAdm inistratio n" | |
2738 | > | |
2739 | ||
2740 | <xsl:text> | |
2741 | - Count ( | |
2742 | </xsl:text > | |
2743 | ||
2744 | <xsl:value -of | |
2745 | select="co unt(n1:ent ry/n1:subs tanceAdmin istration) " | |
2746 | /> | |
2747 | ||
2748 | <xsl:text> | |
2749 | ) | |
2750 | </xsl:text > | |
2751 | ||
2752 | </xsl:if> | |
2753 | ||
2754 | </th> | |
2755 | ||
2756 | <th | |
2757 | class="fir st" | |
2758 | > | |
2759 | Series | |
2760 | </th> | |
2761 | ||
2762 | <th | |
2763 | class="fir st" | |
2764 | > | |
2765 | Date Issue d | |
2766 | </th> | |
2767 | ||
2768 | <th | |
2769 | class="fir st" | |
2770 | > | |
2771 | Reaction | |
2772 | </th> | |
2773 | ||
2774 | <th | |
2775 | class="fir st" | |
2776 | > | |
2777 | Comments | |
2778 | </th> | |
2779 | ||
2780 | </tr> | |
2781 | ||
2782 | </thead> | |
2783 | ||
2784 | <tbody> | |
2785 | ||
2786 | <xsl:apply -templates | |
2787 | select="$s ection/n1: entry" | |
2788 | > | |
2789 | ||
2790 | <xsl:sort | |
2791 | select="n1 :substance Administra tion/n1:ef fectiveTim e/@value" | |
2792 | order="des cending" | |
2793 | /> | |
2794 | ||
2795 | </xsl:appl y-template s> | |
2796 | ||
2797 | </tbody> | |
2798 | ||
2799 | </table> | |
2800 | ||
2801 | </xsl:if> | |
2802 | ||
2803 | <br> | |
2804 | </br> | |
2805 | ||
2806 | <br> | |
2807 | </br> | |
2808 | ||
2809 | </xsl:temp late> | |
2810 | ||
2811 | ||
2812 | <!-- Vital s Detail S ection --> | |
2813 | ||
2814 | <xsl:templ ate | |
2815 | name="vita lsDetails" | |
2816 | > | |
2817 | ||
2818 | <xsl:param | |
2819 | name="sect ion" | |
2820 | /> | |
2821 | ||
2822 | <xsl:if | |
2823 | test="$sec tion/n1:en try" | |
2824 | > | |
2825 | ||
2826 | <table | |
2827 | border="1" | |
2828 | style="fon t-size:14p x" | |
2829 | > | |
2830 | ||
2831 | <thead> | |
2832 | ||
2833 | <tr> | |
2834 | ||
2835 | <th | |
2836 | class="fir st" | |
2837 | > | |
2838 | ||
2839 | <xsl:text> | |
2840 | Date | |
2841 | </xsl:text > | |
2842 | ||
2843 | <xsl:if | |
2844 | test="n1:e ntry/n1:or ganizer" | |
2845 | > | |
2846 | ||
2847 | <xsl:text> | |
2848 | - Count ( | |
2849 | </xsl:text > | |
2850 | ||
2851 | <xsl:value -of | |
2852 | select="co unt(n1:ent ry/n1:orga nizer)" | |
2853 | /> | |
2854 | ||
2855 | <xsl:text> | |
2856 | ) | |
2857 | </xsl:text > | |
2858 | ||
2859 | </xsl:if> | |
2860 | ||
2861 | </th> | |
2862 | ||
2863 | <th | |
2864 | class="fir st" | |
2865 | > | |
2866 | TEMP | |
2867 | </th> | |
2868 | ||
2869 | <th | |
2870 | class="fir st" | |
2871 | > | |
2872 | PULSE | |
2873 | </th> | |
2874 | ||
2875 | <th | |
2876 | class="fir st" | |
2877 | > | |
2878 | RESP | |
2879 | </th> | |
2880 | ||
2881 | <th | |
2882 | class="fir st" | |
2883 | > | |
2884 | BP | |
2885 | </th> | |
2886 | ||
2887 | <th | |
2888 | class="fir st" | |
2889 | > | |
2890 | Ht | |
2891 | </th> | |
2892 | ||
2893 | <th | |
2894 | class="fir st" | |
2895 | > | |
2896 | HT-Lying | |
2897 | </th> | |
2898 | ||
2899 | <th | |
2900 | class="fir st" | |
2901 | > | |
2902 | Wt | |
2903 | </th> | |
2904 | ||
2905 | <th | |
2906 | class="fir st" | |
2907 | > | |
2908 | POx | |
2909 | </th> | |
2910 | ||
2911 | <th | |
2912 | class="fir st" | |
2913 | > | |
2914 | OFC | |
2915 | </th> | |
2916 | ||
2917 | <th | |
2918 | class="fir st" | |
2919 | > | |
2920 | Source | |
2921 | </th> | |
2922 | ||
2923 | </tr> | |
2924 | ||
2925 | </thead> | |
2926 | ||
2927 | <tbody> | |
2928 | ||
2929 | <xsl:apply -templates | |
2930 | select="$s ection/n1: entry" | |
2931 | > | |
2932 | ||
2933 | <xsl:sort | |
2934 | select="n1 :organizer /n1:compon ent/n1:obs ervation/n 1:effectiv eTime/@val ue" | |
2935 | order="des cending" | |
2936 | /> | |
2937 | ||
2938 | </xsl:appl y-template s> | |
2939 | ||
2940 | <br/> | |
2941 | ||
2942 | </tbody> | |
2943 | ||
2944 | </table> | |
2945 | ||
2946 | </xsl:if> | |
2947 | ||
2948 | <br> | |
2949 | </br> | |
2950 | ||
2951 | <br> | |
2952 | </br> | |
2953 | ||
2954 | </xsl:temp late> | |
2955 | ||
2956 | ||
2957 | <!-- Encou nter row e ntry --> | |
2958 | ||
2959 | <xsl:templ ate | |
2960 | name="encR ow" | |
2961 | > | |
2962 | ||
2963 | <xsl:param | |
2964 | name="row" | |
2965 | /> | |
2966 | ||
2967 | <tr | |
2968 | class="sec ond" | |
2969 | > | |
2970 | ||
2971 | ||
2972 | <!-- Encou nter Date/ Time--> | |
2973 | ||
2974 | <td> | |
2975 | ||
2976 | <div | |
2977 | style="ove rflow:hidd en; white- space:nowr ap; width: auto;" | |
2978 | > | |
2979 | ||
2980 | <xsl:choos e> | |
2981 | ||
2982 | <xsl:when | |
2983 | test="$row /n1:encoun ter/n1:eff ectiveTime /n1:low/@v alue" | |
2984 | > | |
2985 | ||
2986 | <xsl:call- template | |
2987 | name="form atDateShor t" | |
2988 | > | |
2989 | ||
2990 | <xsl:with- param | |
2991 | name="date String" | |
2992 | select="$r ow/n1:enco unter/n1:e ffectiveTi me/n1:low/ @value" | |
2993 | /> | |
2994 | ||
2995 | </xsl:call -template> | |
2996 | ||
2997 | </xsl:when > | |
2998 | ||
2999 | <xsl:when | |
3000 | test="$row /n1:encoun ter/n1:eff ectiveTime /@value" | |
3001 | > | |
3002 | ||
3003 | <xsl:call- template | |
3004 | name="form atDateShor t" | |
3005 | > | |
3006 | ||
3007 | <xsl:with- param | |
3008 | name="date String" | |
3009 | select="$r ow/n1:enco unter/n1:e ffectiveTi me/@value" | |
3010 | /> | |
3011 | ||
3012 | </xsl:call -template> | |
3013 | ||
3014 | </xsl:when > | |
3015 | ||
3016 | <xsl:other wise> | |
3017 | ||
3018 | <xsl:call- template | |
3019 | name="na" | |
3020 | /> | |
3021 | ||
3022 | </xsl:othe rwise> | |
3023 | ||
3024 | </xsl:choo se> | |
3025 | ||
3026 | </div> | |
3027 | ||
3028 | </td> | |
3029 | ||
3030 | ||
3031 | <!-- Encou nter Type --> | |
3032 | ||
3033 | <td> | |
3034 | ||
3035 | <div | |
3036 | style="ove rflow:hidd en; white- space:nowr ap; width: auto;" | |
3037 | > | |
3038 | ||
3039 | <xsl:varia ble | |
3040 | name="type Result" | |
3041 | > | |
3042 | ||
3043 | <xsl:call- template | |
3044 | name="getE ncounterTy pe" | |
3045 | > | |
3046 | ||
3047 | <xsl:with- param | |
3048 | name="enco unter" | |
3049 | select="$r ow/n1:enco unter" | |
3050 | /> | |
3051 | ||
3052 | </xsl:call -template> | |
3053 | ||
3054 | </xsl:vari able> | |
3055 | ||
3056 | <xsl:choos e> | |
3057 | ||
3058 | <xsl:when | |
3059 | test="stri ng-length( $typeResul t)>0" | |
3060 | > | |
3061 | ||
3062 | <xsl:call- template | |
3063 | name="flyo verSpan" | |
3064 | > | |
3065 | ||
3066 | <xsl:with- param | |
3067 | name="data " | |
3068 | select="$t ypeResult" | |
3069 | /> | |
3070 | ||
3071 | </xsl:call -template> | |
3072 | ||
3073 | </xsl:when > | |
3074 | ||
3075 | <xsl:other wise> | |
3076 | ||
3077 | <xsl:call- template | |
3078 | name="na" | |
3079 | /> | |
3080 | ||
3081 | </xsl:othe rwise> | |
3082 | ||
3083 | </xsl:choo se> | |
3084 | ||
3085 | ||
3086 | </div> | |
3087 | ||
3088 | </td> | |
3089 | ||
3090 | ||
3091 | <!-- Encou nter Free Text --> | |
3092 | ||
3093 | <td> | |
3094 | ||
3095 | <div | |
3096 | style="ove rflow:hidd en; white- space:nowr ap; width: 360px;heig ht:1em" | |
3097 | > | |
3098 | ||
3099 | <xsl:varia ble | |
3100 | name="encF reeText" | |
3101 | > | |
3102 | ||
3103 | <xsl:call- template | |
3104 | name="ltri m" | |
3105 | > | |
3106 | ||
3107 | <xsl:with- param | |
3108 | name="text " | |
3109 | > | |
3110 | ||
3111 | <xsl:call- template | |
3112 | name="getE ncounterFr eeText" | |
3113 | > | |
3114 | ||
3115 | <xsl:with- param | |
3116 | name="enco unter" | |
3117 | select="$r ow/n1:enco unter" | |
3118 | /> | |
3119 | ||
3120 | </xsl:call -template> | |
3121 | ||
3122 | </xsl:with -param> | |
3123 | ||
3124 | <xsl:with- param | |
3125 | name="star tChar" | |
3126 | select="'~ '" | |
3127 | /> | |
3128 | ||
3129 | </xsl:call -template> | |
3130 | ||
3131 | </xsl:vari able> | |
3132 | ||
3133 | <xsl:choos e> | |
3134 | ||
3135 | <xsl:when | |
3136 | test="stri ng-length( $encFreeTe xt)>1" | |
3137 | > | |
3138 | ||
3139 | <xsl:call- template | |
3140 | name="flyo verSpan" | |
3141 | > | |
3142 | ||
3143 | <xsl:with- param | |
3144 | name="data " | |
3145 | select="$e ncFreeText " | |
3146 | /> | |
3147 | ||
3148 | <xsl:with- param | |
3149 | name="free Text" | |
3150 | select="'y es'" | |
3151 | /> | |
3152 | ||
3153 | <xsl:with- param | |
3154 | name="deSq uigglefy" | |
3155 | select="'y es'" | |
3156 | /> | |
3157 | ||
3158 | </xsl:call -template> | |
3159 | ||
3160 | </xsl:when > | |
3161 | ||
3162 | <xsl:other wise> | |
3163 | ||
3164 | <xsl:call- template | |
3165 | name="na" | |
3166 | /> | |
3167 | ||
3168 | </xsl:othe rwise> | |
3169 | ||
3170 | </xsl:choo se> | |
3171 | ||
3172 | </div> | |
3173 | ||
3174 | </td> | |
3175 | ||
3176 | ||
3177 | <!-- Encou nter Provi der--> | |
3178 | ||
3179 | <td> | |
3180 | ||
3181 | <div | |
3182 | style="ove rflow:hidd en; white- space:nowr ap; width: 160px;" | |
3183 | > | |
3184 | ||
3185 | <xsl:varia ble | |
3186 | name="encP rovider" | |
3187 | > | |
3188 | ||
3189 | <xsl:call- template | |
3190 | name="getE ncounterPr ovider" | |
3191 | > | |
3192 | ||
3193 | <xsl:with- param | |
3194 | name="enco unter" | |
3195 | select="$r ow/n1:enco unter" | |
3196 | /> | |
3197 | ||
3198 | </xsl:call -template> | |
3199 | ||
3200 | </xsl:vari able> | |
3201 | ||
3202 | <xsl:choos e> | |
3203 | ||
3204 | <xsl:when | |
3205 | test="stri ng-length( $encProvid er)>1" | |
3206 | > | |
3207 | ||
3208 | <xsl:call- template | |
3209 | name="flyo verSpan" | |
3210 | > | |
3211 | ||
3212 | <xsl:with- param | |
3213 | name="data " | |
3214 | select="$e ncProvider " | |
3215 | /> | |
3216 | ||
3217 | </xsl:call -template> | |
3218 | ||
3219 | </xsl:when > | |
3220 | ||
3221 | <xsl:other wise> | |
3222 | ||
3223 | <xsl:call- template | |
3224 | name="na" | |
3225 | /> | |
3226 | ||
3227 | </xsl:othe rwise> | |
3228 | ||
3229 | </xsl:choo se> | |
3230 | ||
3231 | </div> | |
3232 | ||
3233 | </td> | |
3234 | ||
3235 | </tr> | |
3236 | ||
3237 | </xsl:temp late> | |
3238 | ||
3239 | ||
3240 | <xsl:templ ate | |
3241 | name="medR ow" | |
3242 | > | |
3243 | ||
3244 | <xsl:param | |
3245 | name="row" | |
3246 | /> | |
3247 | ||
3248 | <tr | |
3249 | class="sec ond" | |
3250 | > | |
3251 | ||
3252 | <!-- Name --> | |
3253 | ||
3254 | <td> | |
3255 | ||
3256 | <div | |
3257 | style="ove rflow:hidd en; white- space:nowr ap; width: 180px;" | |
3258 | > | |
3259 | ||
3260 | <xsl:call- template | |
3261 | name="flyo verSpan" | |
3262 | > | |
3263 | ||
3264 | <xsl:with- param | |
3265 | name="data " | |
3266 | > | |
3267 | ||
3268 | <xsl:call- template | |
3269 | name="getM edicationN ame" | |
3270 | > | |
3271 | ||
3272 | <xsl:with- param | |
3273 | name="row" | |
3274 | select="$r ow" | |
3275 | /> | |
3276 | ||
3277 | </xsl:call -template> | |
3278 | ||
3279 | </xsl:with -param> | |
3280 | ||
3281 | </xsl:call -template> | |
3282 | ||
3283 | </div> | |
3284 | ||
3285 | </td> | |
3286 | ||
3287 | ||
3288 | <!-- Statu s --> | |
3289 | ||
3290 | <td> | |
3291 | ||
3292 | <div | |
3293 | style="ove rflow:hidd en; white- space:nowr ap; width: 80px;" | |
3294 | > | |
3295 | ||
3296 | <xsl:varia ble | |
3297 | name="medS tat" | |
3298 | > | |
3299 | ||
3300 | <xsl:call- template | |
3301 | name="medS tatus" | |
3302 | > | |
3303 | ||
3304 | <xsl:with- param | |
3305 | name="subs tanceAdmin " | |
3306 | select="$r ow/n1:subs tanceAdmin istration" | |
3307 | /> | |
3308 | ||
3309 | </xsl:call -template> | |
3310 | ||
3311 | </xsl:vari able> | |
3312 | ||
3313 | <xsl:choos e> | |
3314 | ||
3315 | <xsl:when | |
3316 | test="stri ng-length( $medStat)> 1" | |
3317 | > | |
3318 | ||
3319 | <xsl:call- template | |
3320 | name="flyo verSpan" | |
3321 | > | |
3322 | ||
3323 | <xsl:with- param | |
3324 | name="data " | |
3325 | select="$m edStat" | |
3326 | /> | |
3327 | ||
3328 | </xsl:call -template> | |
3329 | ||
3330 | </xsl:when > | |
3331 | ||
3332 | <xsl:other wise> | |
3333 | ||
3334 | <xsl:call- template | |
3335 | name="na" | |
3336 | /> | |
3337 | ||
3338 | </xsl:othe rwise> | |
3339 | ||
3340 | </xsl:choo se> | |
3341 | ||
3342 | </div> | |
3343 | ||
3344 | </td> | |
3345 | ||
3346 | ||
3347 | <!-- Quant ity --> | |
3348 | ||
3349 | <td> | |
3350 | ||
3351 | <div | |
3352 | style="ove rflow:hidd en; white- space:nowr ap; width: 40px;" | |
3353 | > | |
3354 | ||
3355 | <xsl:call- template | |
3356 | name="medQ uantity" | |
3357 | > | |
3358 | ||
3359 | <xsl:with- param | |
3360 | name="subs tanceAdmin " | |
3361 | select="$r ow/n1:subs tanceAdmin istration" | |
3362 | /> | |
3363 | ||
3364 | </xsl:call -template> | |
3365 | ||
3366 | </div> | |
3367 | ||
3368 | </td> | |
3369 | ||
3370 | ||
3371 | <!-- Order Expiratio n Date/Tim e --> | |
3372 | ||
3373 | <td> | |
3374 | ||
3375 | <div | |
3376 | style="ove rflow:hidd en; white- space:nowr ap; width: 80px;" | |
3377 | > | |
3378 | ||
3379 | <xsl:call- template | |
3380 | name="medE xpiretime" | |
3381 | > | |
3382 | ||
3383 | <xsl:with- param | |
3384 | name="subs tanceAdmin " | |
3385 | select="$r ow/n1:subs tanceAdmin istration" | |
3386 | /> | |
3387 | ||
3388 | </xsl:call -template> | |
3389 | ||
3390 | </div> | |
3391 | ||
3392 | </td> | |
3393 | ||
3394 | ||
3395 | <!-- Provi der --> | |
3396 | ||
3397 | <td> | |
3398 | ||
3399 | <div | |
3400 | style="ove rflow:hidd en; white- space:nowr ap; width: 140px;" | |
3401 | > | |
3402 | ||
3403 | <xsl:varia ble | |
3404 | name="medP rovider" | |
3405 | > | |
3406 | ||
3407 | <xsl:call- template | |
3408 | name="getM edProvider " | |
3409 | > | |
3410 | ||
3411 | <xsl:with- param | |
3412 | name="subs tanceAdmin " | |
3413 | select="$r ow/n1:subs tanceAdmin istration" | |
3414 | /> | |
3415 | ||
3416 | </xsl:call -template> | |
3417 | ||
3418 | </xsl:vari able> | |
3419 | ||
3420 | <xsl:choos e> | |
3421 | ||
3422 | <xsl:when | |
3423 | test="stri ng-length( $medProvid er)>1" | |
3424 | > | |
3425 | ||
3426 | <xsl:call- template | |
3427 | name="flyo verSpan" | |
3428 | > | |
3429 | ||
3430 | <xsl:with- param | |
3431 | name="data " | |
3432 | select="$m edProvider " | |
3433 | /> | |
3434 | ||
3435 | </xsl:call -template> | |
3436 | ||
3437 | </xsl:when > | |
3438 | ||
3439 | <xsl:other wise> | |
3440 | ||
3441 | <xsl:call- template | |
3442 | name="na" | |
3443 | /> | |
3444 | ||
3445 | </xsl:othe rwise> | |
3446 | ||
3447 | </xsl:choo se> | |
3448 | ||
3449 | </div> | |
3450 | ||
3451 | </td> | |
3452 | ||
3453 | ||
3454 | <!-- Presc ription ID (Nbr) --> | |
3455 | ||
3456 | <td> | |
3457 | ||
3458 | <div | |
3459 | style="ove rflow:hidd en; white- space:nowr ap; width: 80px;" | |
3460 | > | |
3461 | ||
3462 | <xsl:varia ble | |
3463 | name="rxNu m" | |
3464 | > | |
3465 | ||
3466 | <xsl:call- template | |
3467 | name="getR xNumString " | |
3468 | > | |
3469 | ||
3470 | <xsl:with- param | |
3471 | name="subs tanceAdmin " | |
3472 | select="$r ow/n1:subs tanceAdmin istration" | |
3473 | /> | |
3474 | ||
3475 | </xsl:call -template> | |
3476 | ||
3477 | </xsl:vari able> | |
3478 | ||
3479 | <xsl:choos e> | |
3480 | ||
3481 | <xsl:when | |
3482 | test="stri ng-length( $rxNum)>1" | |
3483 | > | |
3484 | ||
3485 | <xsl:value -of | |
3486 | select="$r xNum" | |
3487 | /> | |
3488 | ||
3489 | </xsl:when > | |
3490 | ||
3491 | <xsl:other wise> | |
3492 | ||
3493 | <xsl:call- template | |
3494 | name="na" | |
3495 | /> | |
3496 | ||
3497 | </xsl:othe rwise> | |
3498 | ||
3499 | </xsl:choo se> | |
3500 | ||
3501 | </div> | |
3502 | ||
3503 | </td> | |
3504 | ||
3505 | ||
3506 | <!-- dispe nse time - -> | |
3507 | ||
3508 | <td> | |
3509 | ||
3510 | <div | |
3511 | style="ove rflow:hidd en; white- space:nowr ap; width: 80px;" | |
3512 | > | |
3513 | ||
3514 | <xsl:call- template | |
3515 | name="medB egintime" | |
3516 | > | |
3517 | ||
3518 | <xsl:with- param | |
3519 | name="row" | |
3520 | select="$r ow" | |
3521 | /> | |
3522 | ||
3523 | </xsl:call -template> | |
3524 | ||
3525 | </div> | |
3526 | ||
3527 | </td> | |
3528 | ||
3529 | ||
3530 | <!-- Sig - -> | |
3531 | ||
3532 | <td> | |
3533 | ||
3534 | <div | |
3535 | style="ove rflow:hidd en; white- space:nowr ap; width: 160px;" | |
3536 | > | |
3537 | ||
3538 | <xsl:varia ble | |
3539 | name="sig" | |
3540 | > | |
3541 | ||
3542 | <xsl:call- template | |
3543 | name="getS ig" | |
3544 | > | |
3545 | ||
3546 | <xsl:with- param | |
3547 | name="subs tanceAdmin " | |
3548 | select="$r ow/n1:subs tanceAdmin istration" | |
3549 | /> | |
3550 | ||
3551 | </xsl:call -template> | |
3552 | ||
3553 | </xsl:vari able> | |
3554 | ||
3555 | <xsl:choos e> | |
3556 | ||
3557 | <xsl:when | |
3558 | test="stri ng-length( $sig)>1" | |
3559 | > | |
3560 | ||
3561 | <xsl:call- template | |
3562 | name="flyo verSpan" | |
3563 | > | |
3564 | ||
3565 | <xsl:with- param | |
3566 | name="data " | |
3567 | select="$s ig" | |
3568 | /> | |
3569 | ||
3570 | </xsl:call -template> | |
3571 | ||
3572 | </xsl:when > | |
3573 | ||
3574 | <xsl:other wise> | |
3575 | ||
3576 | <xsl:call- template | |
3577 | name="na" | |
3578 | /> | |
3579 | ||
3580 | </xsl:othe rwise> | |
3581 | ||
3582 | </xsl:choo se> | |
3583 | ||
3584 | </div> | |
3585 | ||
3586 | </td> | |
3587 | ||
3588 | ||
3589 | <!-- sourc e --> | |
3590 | ||
3591 | <td> | |
3592 | ||
3593 | <div | |
3594 | style="ove rflow:hidd en; white- space:nowr ap; width: 100px;" | |
3595 | > | |
3596 | ||
3597 | <xsl:varia ble | |
3598 | name="sour ceResult" | |
3599 | > | |
3600 | ||
3601 | <xsl:call- template | |
3602 | name="getM edSource" | |
3603 | > | |
3604 | ||
3605 | <xsl:with- param | |
3606 | name="subs tanceAdmin " | |
3607 | select="$r ow/n1:subs tanceAdmin istration" | |
3608 | /> | |
3609 | ||
3610 | </xsl:call -template> | |
3611 | ||
3612 | </xsl:vari able> | |
3613 | ||
3614 | <xsl:if | |
3615 | test="stri ng-length( $sourceRes ult)>1" | |
3616 | > | |
3617 | ||
3618 | <xsl:call- template | |
3619 | name="flyo verSpan" | |
3620 | > | |
3621 | ||
3622 | <xsl:with- param | |
3623 | name="data " | |
3624 | select="$s ourceResul t" | |
3625 | /> | |
3626 | ||
3627 | </xsl:call -template> | |
3628 | ||
3629 | </xsl:if> | |
3630 | ||
3631 | </div> | |
3632 | ||
3633 | </td> | |
3634 | ||
3635 | </tr> | |
3636 | ||
3637 | </xsl:temp late> | |
3638 | ||
3639 | ||
3640 | <xsl:templ ate | |
3641 | name="prob lemRow" | |
3642 | > | |
3643 | ||
3644 | <xsl:param | |
3645 | name="row" | |
3646 | /> | |
3647 | ||
3648 | <xsl:varia ble | |
3649 | name="rowD ata" | |
3650 | select="$r ow/n1:act/ n1:entryRe lationship /n1:observ ation" | |
3651 | /> | |
3652 | ||
3653 | <tr | |
3654 | class="sec ond" | |
3655 | > | |
3656 | ||
3657 | ||
3658 | <!-- name --> | |
3659 | ||
3660 | <td> | |
3661 | ||
3662 | <div | |
3663 | style="ove rflow:hidd en; white- space:nowr ap; width: 240px;" | |
3664 | > | |
3665 | ||
3666 | <xsl:varia ble | |
3667 | name="prob Result" | |
3668 | > | |
3669 | ||
3670 | <xsl:call- template | |
3671 | name="prob Name" | |
3672 | > | |
3673 | ||
3674 | <xsl:with- param | |
3675 | name="prob Entry" | |
3676 | select="$r ow" | |
3677 | /> | |
3678 | ||
3679 | </xsl:call -template> | |
3680 | ||
3681 | </xsl:vari able> | |
3682 | ||
3683 | <xsl:if | |
3684 | test="stri ng-length( $probResul t)>1" | |
3685 | > | |
3686 | ||
3687 | <xsl:call- template | |
3688 | name="flyo verSpan" | |
3689 | > | |
3690 | ||
3691 | <xsl:with- param | |
3692 | name="data " | |
3693 | select="$p robResult" | |
3694 | /> | |
3695 | ||
3696 | </xsl:call -template> | |
3697 | ||
3698 | </xsl:if> | |
3699 | ||
3700 | </div> | |
3701 | ||
3702 | </td> | |
3703 | ||
3704 | ||
3705 | <!-- statu s --> | |
3706 | ||
3707 | <td> | |
3708 | ||
3709 | <div | |
3710 | style="ove rflow:hidd en; white- space:nowr ap; width: 80px;" | |
3711 | > | |
3712 | ||
3713 | <xsl:call- template | |
3714 | name="prob Status" | |
3715 | > | |
3716 | ||
3717 | <xsl:with- param | |
3718 | name="row" | |
3719 | select="$r ow" | |
3720 | /> | |
3721 | ||
3722 | </xsl:call -template> | |
3723 | ||
3724 | </div> | |
3725 | ||
3726 | </td> | |
3727 | ||
3728 | ||
3729 | <!-- Probl em Code -- > | |
3730 | ||
3731 | <td> | |
3732 | ||
3733 | <div | |
3734 | style="ove rflow:hidd en; white- space:nowr ap; width: 150px" | |
3735 | > | |
3736 | ||
3737 | <xsl:call- template | |
3738 | name="getP roblemCode " | |
3739 | > | |
3740 | ||
3741 | <xsl:with- param | |
3742 | name="rowD ata" | |
3743 | select="$r owData" | |
3744 | /> | |
3745 | ||
3746 | </xsl:call -template> | |
3747 | ||
3748 | </div> | |
3749 | ||
3750 | </td> | |
3751 | ||
3752 | ||
3753 | <!-- probl em effecti ve date -- > | |
3754 | ||
3755 | <td> | |
3756 | ||
3757 | <div | |
3758 | style="ove rflow:hidd en; white- space:nowr ap;" | |
3759 | > | |
3760 | ||
3761 | <xsl:call- template | |
3762 | name="prob Date" | |
3763 | > | |
3764 | ||
3765 | <xsl:with- param | |
3766 | name="row" | |
3767 | select="$r ow" | |
3768 | /> | |
3769 | ||
3770 | </xsl:call -template> | |
3771 | ||
3772 | </div> | |
3773 | ||
3774 | </td> | |
3775 | ||
3776 | ||
3777 | <!-- provi der --> | |
3778 | ||
3779 | <td> | |
3780 | ||
3781 | <div | |
3782 | style="ove rflow:hidd en; white- space:nowr ap; width: 160px;" | |
3783 | > | |
3784 | ||
3785 | <xsl:varia ble | |
3786 | name="prov ider" | |
3787 | /> | |
3788 | ||
3789 | <xsl:call- template | |
3790 | name="getP roblemProv ider" | |
3791 | > | |
3792 | ||
3793 | <xsl:with- param | |
3794 | name="act" | |
3795 | select="$r ow/n1:act" | |
3796 | /> | |
3797 | ||
3798 | </xsl:call -template> | |
3799 | ||
3800 | <xsl:if | |
3801 | test="stri ng-length( $provider) >2" | |
3802 | > | |
3803 | ||
3804 | <xsl:call- template | |
3805 | name="flyo verSpan" | |
3806 | > | |
3807 | ||
3808 | <xsl:with- param | |
3809 | name="data " | |
3810 | select="$p rovider" | |
3811 | /> | |
3812 | ||
3813 | </xsl:call -template> | |
3814 | ||
3815 | </xsl:if> | |
3816 | ||
3817 | </div> | |
3818 | ||
3819 | </td> | |
3820 | ||
3821 | ||
3822 | <!-- sourc e --> | |
3823 | ||
3824 | <td> | |
3825 | ||
3826 | <div | |
3827 | style="ove rflow:hidd en; white- space:nowr ap; width: 150px;" | |
3828 | > | |
3829 | ||
3830 | <xsl:varia ble | |
3831 | name="sour ce" | |
3832 | > | |
3833 | ||
3834 | <xsl:call- template | |
3835 | name="getP roblemSour ce" | |
3836 | > | |
3837 | ||
3838 | <xsl:with- param | |
3839 | name="row" | |
3840 | select="$r ow" | |
3841 | /> | |
3842 | ||
3843 | </xsl:call -template> | |
3844 | ||
3845 | </xsl:vari able> | |
3846 | ||
3847 | <xsl:choos e> | |
3848 | ||
3849 | <xsl:when | |
3850 | test="stri ng-length( $source)>1 " | |
3851 | > | |
3852 | ||
3853 | <xsl:call- template | |
3854 | name="flyo verSpan" | |
3855 | > | |
3856 | ||
3857 | <xsl:with- param | |
3858 | name="data " | |
3859 | select="$s ource" | |
3860 | /> | |
3861 | ||
3862 | </xsl:call -template> | |
3863 | ||
3864 | </xsl:when > | |
3865 | ||
3866 | <xsl:other wise> | |
3867 | ||
3868 | <xsl:call- template | |
3869 | name="na" | |
3870 | /> | |
3871 | ||
3872 | </xsl:othe rwise> | |
3873 | ||
3874 | </xsl:choo se> | |
3875 | ||
3876 | </div> | |
3877 | ||
3878 | </td> | |
3879 | ||
3880 | </tr> | |
3881 | ||
3882 | </xsl:temp late> | |
3883 | ||
3884 | ||
3885 | <!-- Aller gy entry r ow --> | |
3886 | ||
3887 | <xsl:templ ate | |
3888 | name="alle rgyRow" | |
3889 | > | |
3890 | ||
3891 | <xsl:param | |
3892 | name="row" | |
3893 | /> | |
3894 | ||
3895 | <xsl:varia ble | |
3896 | name="obse rvation" | |
3897 | select="$r ow/n1:act/ n1:entryRe lationship /n1:observ ation" | |
3898 | /> | |
3899 | ||
3900 | <xsl:varia ble | |
3901 | name="eR" | |
3902 | select="$r ow/n1:act/ n1:entryRe lationship " | |
3903 | /> | |
3904 | ||
3905 | <tr | |
3906 | class="sec ond" | |
3907 | > | |
3908 | ||
3909 | ||
3910 | <!--Allerg ens--> | |
3911 | ||
3912 | <td> | |
3913 | ||
3914 | <div | |
3915 | style="ove rflow:hidd en; white- space:nowr ap; width: 180px; pad ding-right :5px;" | |
3916 | > | |
3917 | ||
3918 | <xsl:varia ble | |
3919 | name="alle rgen" | |
3920 | > | |
3921 | ||
3922 | <xsl:call- template | |
3923 | name="getA llergen" | |
3924 | > | |
3925 | ||
3926 | <xsl:with- param | |
3927 | name="obse rvation" | |
3928 | select="$o bservation " | |
3929 | /> | |
3930 | ||
3931 | </xsl:call -template> | |
3932 | ||
3933 | </xsl:vari able> | |
3934 | ||
3935 | <xsl:choos e> | |
3936 | ||
3937 | <xsl:when | |
3938 | test="stri ng-length( $allergen) >1" | |
3939 | > | |
3940 | ||
3941 | <xsl:call- template | |
3942 | name="flyo verSpan" | |
3943 | > | |
3944 | ||
3945 | <xsl:with- param | |
3946 | name="data " | |
3947 | select="$a llergen" | |
3948 | /> | |
3949 | ||
3950 | </xsl:call -template> | |
3951 | ||
3952 | </xsl:when > | |
3953 | ||
3954 | <xsl:other wise> | |
3955 | ||
3956 | <xsl:call- template | |
3957 | name="na" | |
3958 | /> | |
3959 | ||
3960 | </xsl:othe rwise> | |
3961 | ||
3962 | </xsl:choo se> | |
3963 | ||
3964 | </div> | |
3965 | ||
3966 | </td> | |
3967 | ||
3968 | ||
3969 | <!--Verifi cation Dat e--> | |
3970 | ||
3971 | <td> | |
3972 | ||
3973 | <div | |
3974 | style="ove rflow:hidd en; white- space:nowr ap; width: 100px;" | |
3975 | > | |
3976 | ||
3977 | <xsl:call- template | |
3978 | name="disp layAllergy Verificati onDate" | |
3979 | > | |
3980 | ||
3981 | <xsl:with- param | |
3982 | name="obse rvation" | |
3983 | select="$o bservation " | |
3984 | /> | |
3985 | ||
3986 | </xsl:call -template> | |
3987 | ||
3988 | </div> | |
3989 | ||
3990 | </td> | |
3991 | ||
3992 | ||
3993 | <!--Event Type--> | |
3994 | ||
3995 | <td> | |
3996 | ||
3997 | <div | |
3998 | style="ove rflow:hidd en; white- space:nowr ap; width: 180px;" | |
3999 | > | |
4000 | ||
4001 | <xsl:varia ble | |
4002 | name="alle rgenType" | |
4003 | > | |
4004 | ||
4005 | <xsl:call- template | |
4006 | name="getE ventType" | |
4007 | > | |
4008 | ||
4009 | <xsl:with- param | |
4010 | name="obs" | |
4011 | select="$o bservation " | |
4012 | /> | |
4013 | ||
4014 | </xsl:call -template> | |
4015 | ||
4016 | </xsl:vari able> | |
4017 | ||
4018 | <xsl:choos e> | |
4019 | ||
4020 | <xsl:when | |
4021 | test="stri ng-length( $allergenT ype)>1" | |
4022 | > | |
4023 | ||
4024 | <xsl:call- template | |
4025 | name="flyo verSpan" | |
4026 | > | |
4027 | ||
4028 | <xsl:with- param | |
4029 | name="data " | |
4030 | select="$a llergenTyp e" | |
4031 | /> | |
4032 | ||
4033 | </xsl:call -template> | |
4034 | ||
4035 | </xsl:when > | |
4036 | ||
4037 | <xsl:other wise> | |
4038 | ||
4039 | <xsl:call- template | |
4040 | name="na" | |
4041 | /> | |
4042 | ||
4043 | </xsl:othe rwise> | |
4044 | ||
4045 | </xsl:choo se> | |
4046 | ||
4047 | </div> | |
4048 | ||
4049 | </td> | |
4050 | ||
4051 | ||
4052 | <!--Reacti on--> | |
4053 | ||
4054 | <td> | |
4055 | ||
4056 | <div | |
4057 | style="ove rflow:hidd en; white- space:nowr ap; width: 180px;" | |
4058 | > | |
4059 | ||
4060 | <!--<xsl:f or-each se lect="$obs ervation/n 1:entryRel ationship[ @typeCode= 'MFST']">- -> | |
4061 | ||
4062 | <xsl:varia ble | |
4063 | name="valu eResult" | |
4064 | > | |
4065 | ||
4066 | <xsl:call- template | |
4067 | name="getR eactionVal ue" | |
4068 | > | |
4069 | ||
4070 | <xsl:with- param | |
4071 | name="entr yRelations hip" | |
4072 | select="$r ow/n1:act/ n1:entryRe lationship " | |
4073 | /> | |
4074 | ||
4075 | </xsl:call -template> | |
4076 | ||
4077 | </xsl:vari able> | |
4078 | ||
4079 | <xsl:choos e> | |
4080 | ||
4081 | <xsl:when | |
4082 | test="stri ng-length( $valueResu lt)>1" | |
4083 | > | |
4084 | ||
4085 | <xsl:call- template | |
4086 | name="flyo verSpan" | |
4087 | > | |
4088 | ||
4089 | <xsl:with- param | |
4090 | name="data " | |
4091 | select="$v alueResult " | |
4092 | /> | |
4093 | ||
4094 | </xsl:call -template> | |
4095 | ||
4096 | </xsl:when > | |
4097 | ||
4098 | <xsl:other wise> | |
4099 | ||
4100 | <xsl:call- template | |
4101 | name="na" | |
4102 | /> | |
4103 | ||
4104 | </xsl:othe rwise> | |
4105 | ||
4106 | </xsl:choo se> | |
4107 | ||
4108 | <!--</xsl: for-each>- -> | |
4109 | ||
4110 | </div> | |
4111 | ||
4112 | </td> | |
4113 | ||
4114 | ||
4115 | <!--Severi ty--> | |
4116 | ||
4117 | <td> | |
4118 | ||
4119 | <div | |
4120 | style="ove rflow:hidd en; white- space:nowr ap; width: 100px;" | |
4121 | > | |
4122 | ||
4123 | <xsl:varia ble | |
4124 | name="seve rity" | |
4125 | > | |
4126 | ||
4127 | <xsl:call- template | |
4128 | name="getS everity" | |
4129 | > | |
4130 | ||
4131 | <xsl:with- param | |
4132 | name="obse rvation" | |
4133 | select="$o bservation " | |
4134 | /> | |
4135 | ||
4136 | </xsl:call -template> | |
4137 | ||
4138 | </xsl:vari able> | |
4139 | ||
4140 | <xsl:choos e> | |
4141 | ||
4142 | <xsl:when | |
4143 | test="stri ng-length( $severity) >1" | |
4144 | > | |
4145 | ||
4146 | <xsl:value -of | |
4147 | select="$s everity" | |
4148 | /> | |
4149 | ||
4150 | </xsl:when > | |
4151 | ||
4152 | <xsl:other wise> | |
4153 | ||
4154 | <xsl:call- template | |
4155 | name="na" | |
4156 | /> | |
4157 | ||
4158 | </xsl:othe rwise> | |
4159 | ||
4160 | </xsl:choo se> | |
4161 | ||
4162 | </div> | |
4163 | ||
4164 | </td> | |
4165 | ||
4166 | ||
4167 | <!--source --> | |
4168 | ||
4169 | <td> | |
4170 | ||
4171 | <div | |
4172 | style="ove rflow:hidd en; white- space:nowr ap; width: 150px;" | |
4173 | > | |
4174 | ||
4175 | <xsl:varia ble | |
4176 | name="sour ce" | |
4177 | > | |
4178 | ||
4179 | <xsl:call- template | |
4180 | name="getA llergySour ce" | |
4181 | > | |
4182 | ||
4183 | <xsl:with- param | |
4184 | name="row" | |
4185 | select="$r ow" | |
4186 | /> | |
4187 | ||
4188 | </xsl:call -template> | |
4189 | ||
4190 | </xsl:vari able> | |
4191 | ||
4192 | <xsl:choos e> | |
4193 | ||
4194 | <xsl:when | |
4195 | test="stri ng-length( $source)>0 " | |
4196 | > | |
4197 | ||
4198 | <xsl:call- template | |
4199 | name="flyo verSpan" | |
4200 | > | |
4201 | ||
4202 | <xsl:with- param | |
4203 | name="data " | |
4204 | select="$s ource" | |
4205 | /> | |
4206 | ||
4207 | </xsl:call -template> | |
4208 | ||
4209 | </xsl:when > | |
4210 | ||
4211 | <xsl:other wise> | |
4212 | ||
4213 | <xsl:call- template | |
4214 | name="na" | |
4215 | /> | |
4216 | ||
4217 | </xsl:othe rwise> | |
4218 | ||
4219 | </xsl:choo se> | |
4220 | ||
4221 | </div> | |
4222 | ||
4223 | </td> | |
4224 | ||
4225 | </tr> | |
4226 | ||
4227 | ||
4228 | </xsl:temp late> | |
4229 | ||
4230 | ||
4231 | <!-- Proce dures row entry --> | |
4232 | ||
4233 | <xsl:templ ate | |
4234 | name="proc edureRow" | |
4235 | > | |
4236 | ||
4237 | <xsl:param | |
4238 | name="row" | |
4239 | /> | |
4240 | ||
4241 | <tr | |
4242 | class="sec ond" | |
4243 | > | |
4244 | ||
4245 | <!-- Proce dure Date/ Time--> | |
4246 | ||
4247 | <td> | |
4248 | ||
4249 | <div | |
4250 | style="ove rflow:hidd en; white- space:nowr ap;" | |
4251 | > | |
4252 | ||
4253 | <xsl:choos e> | |
4254 | ||
4255 | <xsl:when | |
4256 | test="$row /n1:proced ure/n1:eff ectiveTime /n1:low/@v alue" | |
4257 | > | |
4258 | ||
4259 | <xsl:call- template | |
4260 | name="form atDateShor t" | |
4261 | > | |
4262 | ||
4263 | <xsl:with- param | |
4264 | name="date String" | |
4265 | select="$r ow/n1:proc edure/n1:e ffectiveTi me/n1:low/ @value" | |
4266 | /> | |
4267 | ||
4268 | </xsl:call -template> | |
4269 | ||
4270 | </xsl:when > | |
4271 | ||
4272 | <xsl:when | |
4273 | test="$row /n1:proced ure/n1:eff ectiveTime /@value" | |
4274 | > | |
4275 | ||
4276 | <xsl:call- template | |
4277 | name="form atDateShor t" | |
4278 | > | |
4279 | ||
4280 | <xsl:with- param | |
4281 | name="date String" | |
4282 | select="$r ow/n1:proc edure/n1:e ffectiveTi me/@value" | |
4283 | /> | |
4284 | ||
4285 | </xsl:call -template> | |
4286 | ||
4287 | </xsl:when > | |
4288 | ||
4289 | <xsl:other wise> | |
4290 | ||
4291 | <xsl:call- template | |
4292 | name="na" | |
4293 | /> | |
4294 | ||
4295 | </xsl:othe rwise> | |
4296 | ||
4297 | </xsl:choo se> | |
4298 | ||
4299 | </div> | |
4300 | ||
4301 | </td> | |
4302 | ||
4303 | <!-- Proce dure Type --> | |
4304 | ||
4305 | <td> | |
4306 | ||
4307 | <div | |
4308 | style="ove rflow:hidd en; white- space:nowr ap; width: 260px;" | |
4309 | > | |
4310 | ||
4311 | <xsl:varia ble | |
4312 | name="type " | |
4313 | > | |
4314 | ||
4315 | <xsl:call- template | |
4316 | name="getP rocedureTy pe" | |
4317 | > | |
4318 | ||
4319 | <xsl:with- param | |
4320 | name="proc edure" | |
4321 | select="$r ow/n1:proc edure" | |
4322 | /> | |
4323 | ||
4324 | </xsl:call -template> | |
4325 | ||
4326 | </xsl:vari able> | |
4327 | ||
4328 | <xsl:choos e> | |
4329 | ||
4330 | <xsl:when | |
4331 | test="stri ng-length( $type)>1" | |
4332 | > | |
4333 | ||
4334 | <xsl:call- template | |
4335 | name="flyo verSpan" | |
4336 | > | |
4337 | ||
4338 | <xsl:with- param | |
4339 | name="data " | |
4340 | select="$t ype" | |
4341 | /> | |
4342 | ||
4343 | </xsl:call -template> | |
4344 | ||
4345 | </xsl:when > | |
4346 | ||
4347 | <xsl:other wise> | |
4348 | ||
4349 | <xsl:call- template | |
4350 | name="na" | |
4351 | /> | |
4352 | ||
4353 | </xsl:othe rwise> | |
4354 | ||
4355 | </xsl:choo se> | |
4356 | ||
4357 | </div> | |
4358 | ||
4359 | </td> | |
4360 | ||
4361 | <!-- Proce dure Free Text Type- -> | |
4362 | ||
4363 | <td> | |
4364 | ||
4365 | <div | |
4366 | style="ove rflow:hidd en; white- space:nowr ap; width: 260px;heig ht:1em" | |
4367 | > | |
4368 | ||
4369 | <xsl:varia ble | |
4370 | name="proc FreeText" | |
4371 | > | |
4372 | ||
4373 | <xsl:call- template | |
4374 | name="ltri m" | |
4375 | > | |
4376 | ||
4377 | <xsl:with- param | |
4378 | name="text " | |
4379 | > | |
4380 | ||
4381 | <xsl:call- template | |
4382 | name="getP rocedureFr eeText" | |
4383 | > | |
4384 | ||
4385 | <xsl:with- param | |
4386 | name="proc edure" | |
4387 | select="$r ow/n1:proc edure" | |
4388 | /> | |
4389 | ||
4390 | </xsl:call -template> | |
4391 | ||
4392 | </xsl:with -param> | |
4393 | ||
4394 | <xsl:with- param | |
4395 | name="star tChar" | |
4396 | select="'~ '" | |
4397 | /> | |
4398 | ||
4399 | </xsl:call -template> | |
4400 | ||
4401 | </xsl:vari able> | |
4402 | ||
4403 | <xsl:choos e> | |
4404 | ||
4405 | <xsl:when | |
4406 | test="stri ng-length( $procFreeT ext)>1" | |
4407 | > | |
4408 | ||
4409 | <xsl:call- template | |
4410 | name="flyo verSpan" | |
4411 | > | |
4412 | ||
4413 | <xsl:with- param | |
4414 | name="data " | |
4415 | select="$p rocFreeTex t" | |
4416 | /> | |
4417 | ||
4418 | <xsl:with- param | |
4419 | name="free Text" | |
4420 | select="'y es'" | |
4421 | /> | |
4422 | ||
4423 | <xsl:with- param | |
4424 | name="deSq uigglefy" | |
4425 | select="'y es'" | |
4426 | /> | |
4427 | ||
4428 | </xsl:call -template> | |
4429 | ||
4430 | </xsl:when > | |
4431 | ||
4432 | <xsl:other wise> | |
4433 | ||
4434 | <xsl:call- template | |
4435 | name="na" | |
4436 | /> | |
4437 | ||
4438 | </xsl:othe rwise> | |
4439 | ||
4440 | </xsl:choo se> | |
4441 | ||
4442 | </div> | |
4443 | ||
4444 | </td> | |
4445 | ||
4446 | <!-- Proce dure Provi der--> | |
4447 | ||
4448 | <td> | |
4449 | ||
4450 | <div | |
4451 | style="ove rflow:hidd en; white- space:nowr ap; width: 180px;" | |
4452 | > | |
4453 | ||
4454 | <xsl:varia ble | |
4455 | name="proc Provider" | |
4456 | > | |
4457 | ||
4458 | <xsl:call- template | |
4459 | name="getP rocedurePr ovider" | |
4460 | > | |
4461 | ||
4462 | <xsl:with- param | |
4463 | name="proc edure" | |
4464 | select="$r ow/n1:proc edure" | |
4465 | /> | |
4466 | ||
4467 | </xsl:call -template> | |
4468 | ||
4469 | </xsl:vari able> | |
4470 | ||
4471 | <xsl:choos e> | |
4472 | ||
4473 | <xsl:when | |
4474 | test="stri ng-length( $procProvi der)>1" | |
4475 | > | |
4476 | ||
4477 | <xsl:call- template | |
4478 | name="flyo verSpan" | |
4479 | > | |
4480 | ||
4481 | <xsl:with- param | |
4482 | name="data " | |
4483 | select="$p rocProvide r" | |
4484 | /> | |
4485 | ||
4486 | </xsl:call -template> | |
4487 | ||
4488 | </xsl:when > | |
4489 | ||
4490 | <xsl:other wise> | |
4491 | ||
4492 | <xsl:call- template | |
4493 | name="na" | |
4494 | /> | |
4495 | ||
4496 | </xsl:othe rwise> | |
4497 | ||
4498 | </xsl:choo se> | |
4499 | ||
4500 | </div> | |
4501 | ||
4502 | </td> | |
4503 | ||
4504 | </tr> | |
4505 | ||
4506 | </xsl:temp late> | |
4507 | ||
4508 | ||
4509 | <!-- Labs entry row (organizer capable) --> | |
4510 | ||
4511 | <xsl:templ ate | |
4512 | name="labs Row" | |
4513 | > | |
4514 | ||
4515 | <xsl:param | |
4516 | name="row" | |
4517 | /> | |
4518 | ||
4519 | <xsl:varia ble | |
4520 | name="obse rvation1" | |
4521 | select="$r ow/n1:comp onent/n1:o bservation " | |
4522 | /> | |
4523 | ||
4524 | <xsl:varia ble | |
4525 | name="obse rvation2" | |
4526 | select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion" | |
4527 | /> | |
4528 | ||
4529 | <xsl:choos e> | |
4530 | ||
4531 | <xsl:when | |
4532 | test="stri ng-length( $row/n1:or ganizer)!= 0" | |
4533 | > | |
4534 | ||
4535 | <tr | |
4536 | class="sec ond" | |
4537 | > | |
4538 | ||
4539 | <!-- Resul t Date/Tim e --> | |
4540 | ||
4541 | <td> | |
4542 | ||
4543 | <div | |
4544 | style="ove rflow:hidd en; white- space:nowr ap; width: 100px; pad ding-right :5px;" | |
4545 | > | |
4546 | ||
4547 | <xsl:varia ble | |
4548 | name="date " | |
4549 | > | |
4550 | ||
4551 | <xsl:call- template | |
4552 | name="getP anelDT" | |
4553 | > | |
4554 | ||
4555 | <xsl:with- param | |
4556 | name="orga nizer" | |
4557 | select="$r ow/n1:orga nizer" | |
4558 | /> | |
4559 | ||
4560 | </xsl:call -template> | |
4561 | ||
4562 | </xsl:vari able> | |
4563 | ||
4564 | <xsl:choos e> | |
4565 | ||
4566 | <xsl:when | |
4567 | test="stri ng-length( $date)>0" | |
4568 | > | |
4569 | ||
4570 | <xsl:call- template | |
4571 | name="flyo verSpan" | |
4572 | > | |
4573 | ||
4574 | <xsl:with- param | |
4575 | name="data " | |
4576 | select="$d ate" | |
4577 | /> | |
4578 | ||
4579 | </xsl:call -template> | |
4580 | ||
4581 | </xsl:when > | |
4582 | ||
4583 | <xsl:other wise> | |
4584 | ||
4585 | <xsl:call- template | |
4586 | name="na" | |
4587 | /> | |
4588 | ||
4589 | </xsl:othe rwise> | |
4590 | ||
4591 | </xsl:choo se> | |
4592 | ||
4593 | </div> | |
4594 | ||
4595 | </td> | |
4596 | ||
4597 | <!-- Organ izer Name --> | |
4598 | ||
4599 | <td> | |
4600 | ||
4601 | <div | |
4602 | style="ove rflow:hidd en; white- space:nowr ap; width: auto;" | |
4603 | > | |
4604 | ||
4605 | <xsl:varia ble | |
4606 | name="orga nizerName" | |
4607 | > | |
4608 | ||
4609 | <xsl:call- template | |
4610 | name="getO rganizerNa me" | |
4611 | > | |
4612 | ||
4613 | <xsl:with- param | |
4614 | name="row" | |
4615 | select="$r ow" | |
4616 | /> | |
4617 | ||
4618 | </xsl:call -template> | |
4619 | ||
4620 | </xsl:vari able> | |
4621 | ||
4622 | <xsl:choos e> | |
4623 | ||
4624 | <xsl:when | |
4625 | test="stri ng-length( $organizer Name)>0" | |
4626 | > | |
4627 | ||
4628 | <xsl:call- template | |
4629 | name="flyo verSpan" | |
4630 | > | |
4631 | ||
4632 | <xsl:with- param | |
4633 | name="data " | |
4634 | select="$o rganizerNa me" | |
4635 | /> | |
4636 | ||
4637 | </xsl:call -template> | |
4638 | ||
4639 | </xsl:when > | |
4640 | ||
4641 | <xsl:other wise> | |
4642 | ||
4643 | <xsl:call- template | |
4644 | name="na" | |
4645 | /> | |
4646 | ||
4647 | </xsl:othe rwise> | |
4648 | ||
4649 | </xsl:choo se> | |
4650 | ||
4651 | </div> | |
4652 | ||
4653 | </td> | |
4654 | ||
4655 | <!-- sourc e --> | |
4656 | ||
4657 | <td> | |
4658 | ||
4659 | <div | |
4660 | style="ove rflow:hidd en; white- space:nowr ap; width: auto;" | |
4661 | > | |
4662 | ||
4663 | <xsl:choos e> | |
4664 | ||
4665 | <xsl:when | |
4666 | test="$row /n1:organi zer/n1:aut hor/n1:ass ignedAutho r/n1:repre sentedOrga nization/n 1:name" | |
4667 | > | |
4668 | ||
4669 | <xsl:value -of | |
4670 | select="$r ow/n1:orga nizer/n1:a uthor/n1:a ssignedAut hor/n1:rep resentedOr ganization /n1:name" | |
4671 | /> | |
4672 | ||
4673 | </xsl:when > | |
4674 | ||
4675 | <xsl:when | |
4676 | test="$row /n1:organi zer/n1:per former/n1: assignedEn tity/n1:re presentedO rganizatio n/n1:name" | |
4677 | > | |
4678 | ||
4679 | <xsl:value -of | |
4680 | select="$r ow/n1:orga nizer/n1:p erformer/n 1:assigned Entity/n1: represente dOrganizat ion/n1:nam e" | |
4681 | /> | |
4682 | ||
4683 | </xsl:when > | |
4684 | ||
4685 | <xsl:when | |
4686 | test="$row /n1:organi zer/n1:com ponent/n1: observatio n/n1:parti cipant[@ty peCode='AU T']/n1:par ticipantRo le/n1:scop ingEntity/ n1:desc" | |
4687 | > | |
4688 | ||
4689 | <xsl:value -of | |
4690 | select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion/n1:par ticipant[@ typeCode=' AUT']/n1:p articipant Role/n1:sc opingEntit y/n1:desc" | |
4691 | /> | |
4692 | ||
4693 | </xsl:when > | |
4694 | ||
4695 | <xsl:when | |
4696 | test="$row /n1:organi zer/n1:com ponent/n1: procedure/ n1:partici pant[@type Code='ORG' ]/n1:parti cipantRole /n1:playin gEntity/n1 :name" | |
4697 | > | |
4698 | ||
4699 | <xsl:value -of | |
4700 | select="$r ow/n1:orga nizer/n1:c omponent/n 1:procedur e/n1:parti cipant[@ty peCode='OR G']/n1:par ticipantRo le/n1:play ingEntity/ n1:name" | |
4701 | /> | |
4702 | ||
4703 | </xsl:when > | |
4704 | ||
4705 | <xsl:other wise> | |
4706 | ||
4707 | <xsl:call- template | |
4708 | name="na" | |
4709 | /> | |
4710 | ||
4711 | </xsl:othe rwise> | |
4712 | ||
4713 | </xsl:choo se> | |
4714 | ||
4715 | </div> | |
4716 | ||
4717 | </td> | |
4718 | ||
4719 | <td> | |
4720 | ||
4721 | <xsl:call- template | |
4722 | name="na" | |
4723 | /> | |
4724 | ||
4725 | </td> | |
4726 | ||
4727 | <td> | |
4728 | ||
4729 | <xsl:call- template | |
4730 | name="na" | |
4731 | /> | |
4732 | ||
4733 | </td> | |
4734 | ||
4735 | <td> | |
4736 | ||
4737 | <xsl:call- template | |
4738 | name="na" | |
4739 | /> | |
4740 | ||
4741 | </td> | |
4742 | ||
4743 | <!-- Resul t Status - -> | |
4744 | ||
4745 | <td> | |
4746 | ||
4747 | <div | |
4748 | style="ove rflow:hidd en; white- space:nowr ap; width: 80px;" | |
4749 | > | |
4750 | ||
4751 | <xsl:choos e> | |
4752 | ||
4753 | <xsl:when | |
4754 | test="stri ng-length( $row/n1:or ganizer/n1 :statusCod e/@code)>0 " | |
4755 | > | |
4756 | ||
4757 | <xsl:call- template | |
4758 | name="flyo verSpan" | |
4759 | > | |
4760 | ||
4761 | <xsl:with- param | |
4762 | name="data " | |
4763 | select="$r ow/n1:orga nizer/n1:s tatusCode/ @code" | |
4764 | /> | |
4765 | ||
4766 | </xsl:call -template> | |
4767 | ||
4768 | </xsl:when > | |
4769 | ||
4770 | <xsl:other wise> | |
4771 | ||
4772 | <xsl:call- template | |
4773 | name="na" | |
4774 | /> | |
4775 | ||
4776 | </xsl:othe rwise> | |
4777 | ||
4778 | </xsl:choo se> | |
4779 | ||
4780 | </div> | |
4781 | ||
4782 | </td> | |
4783 | ||
4784 | </tr> | |
4785 | ||
4786 | <xsl:for-e ach | |
4787 | select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion" | |
4788 | > | |
4789 | ||
4790 | <tr | |
4791 | class="thi rd" | |
4792 | > | |
4793 | ||
4794 | <td> | |
4795 | ||
4796 | <span> | |
4797 | ||
4798 | <xsl:text | |
4799 | disable-ou tput-escap ing="yes" | |
4800 | > | |
4801 | &nbsp ; | |
4802 | </xsl:text > | |
4803 | ||
4804 | </span> | |
4805 | ||
4806 | </td> | |
4807 | ||
4808 | <!-- Resul t Type (Fr ee-text)-- > | |
4809 | ||
4810 | <td> | |
4811 | ||
4812 | <div | |
4813 | style="ove rflow:hidd en; white- space:nowr ap; width: auto;" | |
4814 | > | |
4815 | ||
4816 | <xsl:varia ble | |
4817 | name="type Result2" | |
4818 | > | |
4819 | ||
4820 | <xsl:call- template | |
4821 | name="getR esultType2 " | |
4822 | > | |
4823 | ||
4824 | <xsl:with- param | |
4825 | name="obse rvation" | |
4826 | select="." | |
4827 | /> | |
4828 | ||
4829 | </xsl:call -template> | |
4830 | ||
4831 | </xsl:vari able> | |
4832 | ||
4833 | <xsl:choos e> | |
4834 | ||
4835 | <xsl:when | |
4836 | test="stri ng-length( $typeResul t2)>0" | |
4837 | > | |
4838 | ||
4839 | <xsl:call- template | |
4840 | name="flyo verSpan" | |
4841 | > | |
4842 | ||
4843 | <xsl:with- param | |
4844 | name="data " | |
4845 | select="$t ypeResult2 " | |
4846 | /> | |
4847 | ||
4848 | </xsl:call -template> | |
4849 | ||
4850 | </xsl:when > | |
4851 | ||
4852 | <xsl:other wise> | |
4853 | ||
4854 | <xsl:varia ble | |
4855 | name="type Result3" | |
4856 | > | |
4857 | ||
4858 | <xsl:call- template | |
4859 | name="getR esultType" | |
4860 | > | |
4861 | ||
4862 | <xsl:with- param | |
4863 | name="obse rvation" | |
4864 | select="." | |
4865 | /> | |
4866 | ||
4867 | </xsl:call -template> | |
4868 | ||
4869 | </xsl:vari able> | |
4870 | ||
4871 | <xsl:choos e> | |
4872 | ||
4873 | <xsl:when | |
4874 | test="stri ng-length( $typeResul t3)>0" | |
4875 | > | |
4876 | ||
4877 | <xsl:call- template | |
4878 | name="flyo verSpan" | |
4879 | > | |
4880 | ||
4881 | <xsl:with- param | |
4882 | name="data " | |
4883 | select="$t ypeResult3 " | |
4884 | /> | |
4885 | ||
4886 | </xsl:call -template> | |
4887 | ||
4888 | </xsl:when > | |
4889 | ||
4890 | <xsl:other wise> | |
4891 | ||
4892 | <xsl:call- template | |
4893 | name="na" | |
4894 | /> | |
4895 | ||
4896 | </xsl:othe rwise> | |
4897 | ||
4898 | </xsl:choo se> | |
4899 | ||
4900 | </xsl:othe rwise> | |
4901 | ||
4902 | </xsl:choo se> | |
4903 | ||
4904 | </div> | |
4905 | ||
4906 | </td> | |
4907 | ||
4908 | <td> | |
4909 | ||
4910 | <xsl:call- template | |
4911 | name="na" | |
4912 | /> | |
4913 | ||
4914 | </td> | |
4915 | ||
4916 | <!-- Resul t Value -- > | |
4917 | ||
4918 | <td> | |
4919 | ||
4920 | <div | |
4921 | style="ove rflow:hidd en; white- space:nowr ap; width: 110px;" | |
4922 | > | |
4923 | ||
4924 | <xsl:varia ble | |
4925 | name="valu eResult2" | |
4926 | > | |
4927 | ||
4928 | <xsl:call- template | |
4929 | name="getR esultValue " | |
4930 | > | |
4931 | ||
4932 | <xsl:with- param | |
4933 | name="obse rvation" | |
4934 | select="." | |
4935 | /> | |
4936 | ||
4937 | </xsl:call -template> | |
4938 | ||
4939 | </xsl:vari able> | |
4940 | ||
4941 | <xsl:choos e> | |
4942 | ||
4943 | <xsl:when | |
4944 | test="stri ng-length( $valueResu lt2)>0" | |
4945 | > | |
4946 | ||
4947 | <xsl:call- template | |
4948 | name="flyo verSpan" | |
4949 | > | |
4950 | ||
4951 | <xsl:with- param | |
4952 | name="data " | |
4953 | select="$v alueResult 2" | |
4954 | /> | |
4955 | ||
4956 | </xsl:call -template> | |
4957 | ||
4958 | </xsl:when > | |
4959 | ||
4960 | <xsl:other wise> | |
4961 | ||
4962 | <xsl:call- template | |
4963 | name="na" | |
4964 | /> | |
4965 | ||
4966 | </xsl:othe rwise> | |
4967 | ||
4968 | </xsl:choo se> | |
4969 | ||
4970 | </div> | |
4971 | ||
4972 | </td> | |
4973 | ||
4974 | <!-- inter pretation --> | |
4975 | ||
4976 | <td> | |
4977 | ||
4978 | <div | |
4979 | style="ove rflow:hidd en; white- space:nowr ap; width: auto;" | |
4980 | > | |
4981 | ||
4982 | <xsl:varia ble | |
4983 | name="inte rpResult1" | |
4984 | > | |
4985 | ||
4986 | <xsl:call- template | |
4987 | name="getI nterpretat ion" | |
4988 | > | |
4989 | ||
4990 | <xsl:with- param | |
4991 | name="obse rvation" | |
4992 | select="." | |
4993 | /> | |
4994 | ||
4995 | </xsl:call -template> | |
4996 | ||
4997 | </xsl:vari able> | |
4998 | ||
4999 | <xsl:choos e> | |
5000 | ||
5001 | <xsl:when | |
5002 | test="stri ng-length( $interpRes ult1)>0" | |
5003 | > | |
5004 | ||
5005 | <xsl:call- template | |
5006 | name="flyo verSpan" | |
5007 | > | |
5008 | ||
5009 | <xsl:with- param | |
5010 | name="data " | |
5011 | select="$i nterpResul t1" | |
5012 | /> | |
5013 | ||
5014 | </xsl:call -template> | |
5015 | ||
5016 | </xsl:when > | |
5017 | ||
5018 | <xsl:other wise> | |
5019 | ||
5020 | <xsl:varia ble | |
5021 | name="inte rpResult2" | |
5022 | > | |
5023 | ||
5024 | <xsl:call- template | |
5025 | name="getI nterpretat ion2" | |
5026 | > | |
5027 | ||
5028 | <xsl:with- param | |
5029 | name="obse rvation" | |
5030 | select="." | |
5031 | /> | |
5032 | ||
5033 | </xsl:call -template> | |
5034 | ||
5035 | </xsl:vari able> | |
5036 | ||
5037 | <xsl:choos e> | |
5038 | ||
5039 | <xsl:when | |
5040 | test="stri ng-length( $interpRes ult2)>0" | |
5041 | > | |
5042 | ||
5043 | <xsl:call- template | |
5044 | name="flyo verSpan" | |
5045 | > | |
5046 | ||
5047 | <xsl:with- param | |
5048 | name="data " | |
5049 | select="$i nterpResul t2" | |
5050 | /> | |
5051 | ||
5052 | </xsl:call -template> | |
5053 | ||
5054 | </xsl:when > | |
5055 | ||
5056 | <xsl:other wise> | |
5057 | ||
5058 | <xsl:call- template | |
5059 | name="na" | |
5060 | /> | |
5061 | ||
5062 | </xsl:othe rwise> | |
5063 | ||
5064 | </xsl:choo se> | |
5065 | ||
5066 | </xsl:othe rwise> | |
5067 | ||
5068 | </xsl:choo se> | |
5069 | ||
5070 | </div> | |
5071 | ||
5072 | </td> | |
5073 | ||
5074 | <!-- ref r ange --> | |
5075 | ||
5076 | <td> | |
5077 | ||
5078 | <div | |
5079 | style="ove rflow:hidd en; white- space:nowr ap; width: 130px;" | |
5080 | > | |
5081 | ||
5082 | <xsl:varia ble | |
5083 | name="ref" | |
5084 | > | |
5085 | ||
5086 | <xsl:call- template | |
5087 | name="getR efRange" | |
5088 | > | |
5089 | ||
5090 | <xsl:with- param | |
5091 | name="obse rvation" | |
5092 | select="." | |
5093 | /> | |
5094 | ||
5095 | </xsl:call -template> | |
5096 | ||
5097 | </xsl:vari able> | |
5098 | ||
5099 | <xsl:choos e> | |
5100 | ||
5101 | <xsl:when | |
5102 | test="stri ng-length( $ref)>0" | |
5103 | > | |
5104 | ||
5105 | <xsl:call- template | |
5106 | name="flyo verSpan" | |
5107 | > | |
5108 | ||
5109 | <xsl:with- param | |
5110 | name="data " | |
5111 | select="$r ef" | |
5112 | /> | |
5113 | ||
5114 | </xsl:call -template> | |
5115 | ||
5116 | </xsl:when > | |
5117 | ||
5118 | <xsl:other wise> | |
5119 | ||
5120 | <xsl:call- template | |
5121 | name="na" | |
5122 | /> | |
5123 | ||
5124 | </xsl:othe rwise> | |
5125 | ||
5126 | </xsl:choo se> | |
5127 | ||
5128 | </div> | |
5129 | ||
5130 | </td> | |
5131 | ||
5132 | <!-- Resul t Status - -> | |
5133 | ||
5134 | <td> | |
5135 | ||
5136 | <div | |
5137 | style="ove rflow:hidd en; white- space:nowr ap; width: 80px;" | |
5138 | > | |
5139 | ||
5140 | <xsl:choos e> | |
5141 | ||
5142 | <xsl:when | |
5143 | test="stri ng-length( ./n1:statu sCode/@cod e)>0" | |
5144 | > | |
5145 | ||
5146 | <xsl:call- template | |
5147 | name="flyo verSpan" | |
5148 | > | |
5149 | ||
5150 | <xsl:with- param | |
5151 | name="data " | |
5152 | select="./ n1:statusC ode/@code" | |
5153 | /> | |
5154 | ||
5155 | </xsl:call -template> | |
5156 | ||
5157 | </xsl:when > | |
5158 | ||
5159 | <xsl:other wise> | |
5160 | ||
5161 | <xsl:call- template | |
5162 | name="na" | |
5163 | /> | |
5164 | ||
5165 | </xsl:othe rwise> | |
5166 | ||
5167 | </xsl:choo se> | |
5168 | ||
5169 | </div> | |
5170 | ||
5171 | </td> | |
5172 | ||
5173 | </tr> | |
5174 | ||
5175 | </xsl:for- each> | |
5176 | ||
5177 | </xsl:when > | |
5178 | ||
5179 | <!-- No or ganizer wi th lab --> | |
5180 | ||
5181 | <xsl:other wise> | |
5182 | ||
5183 | <xsl:choos e> | |
5184 | ||
5185 | <xsl:when | |
5186 | 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" | |
5187 | > | |
5188 | ||
5189 | <tr | |
5190 | class="sec ond" | |
5191 | > | |
5192 | ||
5193 | <!-- Resul t Date/Tim e --> | |
5194 | ||
5195 | <td> | |
5196 | ||
5197 | <div | |
5198 | style="ove rflow:hidd en; white- space:nowr ap; width: auto; padd ing-right: 5px;" | |
5199 | > | |
5200 | ||
5201 | <xsl:varia ble | |
5202 | name="date 2" | |
5203 | > | |
5204 | ||
5205 | <xsl:call- template | |
5206 | name="getR esultDT" | |
5207 | > | |
5208 | ||
5209 | <xsl:with- param | |
5210 | name="obse rvation" | |
5211 | select="$r ow/n1:obse rvation" | |
5212 | /> | |
5213 | ||
5214 | </xsl:call -template> | |
5215 | ||
5216 | </xsl:vari able> | |
5217 | ||
5218 | <xsl:choos e> | |
5219 | ||
5220 | <xsl:when | |
5221 | test="stri ng-length( $date2)>0" | |
5222 | > | |
5223 | ||
5224 | <xsl:call- template | |
5225 | name="flyo verSpan" | |
5226 | > | |
5227 | ||
5228 | <xsl:with- param | |
5229 | name="data " | |
5230 | select="$d ate2" | |
5231 | /> | |
5232 | ||
5233 | </xsl:call -template> | |
5234 | ||
5235 | </xsl:when > | |
5236 | ||
5237 | <xsl:other wise> | |
5238 | ||
5239 | <xsl:call- template | |
5240 | name="na" | |
5241 | /> | |
5242 | ||
5243 | </xsl:othe rwise> | |
5244 | ||
5245 | </xsl:choo se> | |
5246 | ||
5247 | </div> | |
5248 | ||
5249 | </td> | |
5250 | ||
5251 | <!-- Resul t Type (Fr ee-text)-- > | |
5252 | ||
5253 | <td> | |
5254 | ||
5255 | <div | |
5256 | style="ove rflow:hidd en; white- space:nowr ap; width: auto;" | |
5257 | > | |
5258 | ||
5259 | <xsl:varia ble | |
5260 | name="type Result2" | |
5261 | > | |
5262 | ||
5263 | <xsl:call- template | |
5264 | name="getR esultType2 " | |
5265 | > | |
5266 | ||
5267 | <xsl:with- param | |
5268 | name="obse rvation" | |
5269 | select="$r ow/n1:obse rvation" | |
5270 | /> | |
5271 | ||
5272 | </xsl:call -template> | |
5273 | ||
5274 | </xsl:vari able> | |
5275 | ||
5276 | <xsl:choos e> | |
5277 | ||
5278 | <xsl:when | |
5279 | test="stri ng-length( $typeResul t2)>0" | |
5280 | > | |
5281 | ||
5282 | <xsl:call- template | |
5283 | name="flyo verSpan" | |
5284 | > | |
5285 | ||
5286 | <xsl:with- param | |
5287 | name="data " | |
5288 | select="$t ypeResult2 " | |
5289 | /> | |
5290 | ||
5291 | </xsl:call -template> | |
5292 | ||
5293 | </xsl:when > | |
5294 | ||
5295 | <xsl:other wise> | |
5296 | ||
5297 | <xsl:varia ble | |
5298 | name="type Result3" | |
5299 | > | |
5300 | ||
5301 | <xsl:call- template | |
5302 | name="getR esultType" | |
5303 | > | |
5304 | ||
5305 | <xsl:with- param | |
5306 | name="obse rvation" | |
5307 | select="$r ow/n1:obse rvation" | |
5308 | /> | |
5309 | ||
5310 | </xsl:call -template> | |
5311 | ||
5312 | </xsl:vari able> | |
5313 | ||
5314 | <xsl:choos e> | |
5315 | ||
5316 | <xsl:when | |
5317 | test="stri ng-length( $typeResul t3)>0" | |
5318 | > | |
5319 | ||
5320 | <xsl:call- template | |
5321 | name="flyo verSpan" | |
5322 | > | |
5323 | ||
5324 | <xsl:with- param | |
5325 | name="data " | |
5326 | select="$t ypeResult3 " | |
5327 | /> | |
5328 | ||
5329 | </xsl:call -template> | |
5330 | ||
5331 | </xsl:when > | |
5332 | ||
5333 | <xsl:other wise> | |
5334 | ||
5335 | <xsl:call- template | |
5336 | name="na" | |
5337 | /> | |
5338 | ||
5339 | </xsl:othe rwise> | |
5340 | ||
5341 | </xsl:choo se> | |
5342 | ||
5343 | </xsl:othe rwise> | |
5344 | ||
5345 | </xsl:choo se> | |
5346 | ||
5347 | </div> | |
5348 | ||
5349 | </td> | |
5350 | ||
5351 | <td> | |
5352 | ||
5353 | <xsl:call- template | |
5354 | name="na" | |
5355 | /> | |
5356 | ||
5357 | </td> | |
5358 | ||
5359 | <!-- Resul t Value -- > | |
5360 | ||
5361 | <td> | |
5362 | ||
5363 | <div | |
5364 | style="ove rflow:hidd en; width: 120px;" | |
5365 | > | |
5366 | ||
5367 | <xsl:varia ble | |
5368 | name="valu eResult" | |
5369 | > | |
5370 | ||
5371 | <xsl:call- template | |
5372 | name="getR esultValue " | |
5373 | > | |
5374 | ||
5375 | <xsl:with- param | |
5376 | name="obse rvation" | |
5377 | select="$r ow/n1:obse rvation" | |
5378 | /> | |
5379 | ||
5380 | </xsl:call -template> | |
5381 | ||
5382 | </xsl:vari able> | |
5383 | ||
5384 | <xsl:choos e> | |
5385 | ||
5386 | <xsl:when | |
5387 | test="stri ng-length( $valueResu lt)>0" | |
5388 | > | |
5389 | ||
5390 | <xsl:call- template | |
5391 | name="flyo verSpan" | |
5392 | > | |
5393 | ||
5394 | <xsl:with- param | |
5395 | name="data " | |
5396 | select="$v alueResult " | |
5397 | /> | |
5398 | ||
5399 | </xsl:call -template> | |
5400 | ||
5401 | </xsl:when > | |
5402 | ||
5403 | <xsl:other wise> | |
5404 | ||
5405 | <xsl:call- template | |
5406 | name="na" | |
5407 | /> | |
5408 | ||
5409 | </xsl:othe rwise> | |
5410 | ||
5411 | </xsl:choo se> | |
5412 | ||
5413 | </div> | |
5414 | ||
5415 | </td> | |
5416 | ||
5417 | <!-- inter pretation --> | |
5418 | ||
5419 | <td> | |
5420 | ||
5421 | <div | |
5422 | style="ove rflow:hidd en; white- space:nowr ap; width: 120px;" | |
5423 | > | |
5424 | ||
5425 | <xsl:varia ble | |
5426 | name="inte rpResult1" | |
5427 | > | |
5428 | ||
5429 | <xsl:call- template | |
5430 | name="getI nterpretat ion2" | |
5431 | > | |
5432 | ||
5433 | <xsl:with- param | |
5434 | name="obse rvation" | |
5435 | select="$r ow/n1:obse rvation" | |
5436 | /> | |
5437 | ||
5438 | </xsl:call -template> | |
5439 | ||
5440 | </xsl:vari able> | |
5441 | ||
5442 | <xsl:choos e> | |
5443 | ||
5444 | <xsl:when | |
5445 | test="stri ng-length( $interpRes ult1)>0" | |
5446 | > | |
5447 | ||
5448 | <xsl:call- template | |
5449 | name="flyo verSpan" | |
5450 | > | |
5451 | ||
5452 | <xsl:with- param | |
5453 | name="data " | |
5454 | select="$i nterpResul t1" | |
5455 | /> | |
5456 | ||
5457 | </xsl:call -template> | |
5458 | ||
5459 | </xsl:when > | |
5460 | ||
5461 | <xsl:other wise> | |
5462 | ||
5463 | <xsl:varia ble | |
5464 | name="inte rpResult2" | |
5465 | > | |
5466 | ||
5467 | <xsl:call- template | |
5468 | name="getI nterpretat ion" | |
5469 | > | |
5470 | ||
5471 | <xsl:with- param | |
5472 | name="obse rvation" | |
5473 | select="$r ow/n1:obse rvation" | |
5474 | /> | |
5475 | ||
5476 | </xsl:call -template> | |
5477 | ||
5478 | </xsl:vari able> | |
5479 | ||
5480 | <xsl:choos e> | |
5481 | ||
5482 | <xsl:when | |
5483 | test="stri ng-length( $interpRes ult2)>0" | |
5484 | > | |
5485 | ||
5486 | <xsl:call- template | |
5487 | name="flyo verSpan" | |
5488 | > | |
5489 | ||
5490 | <xsl:with- param | |
5491 | name="data " | |
5492 | select="$i nterpResul t2" | |
5493 | /> | |
5494 | ||
5495 | </xsl:call -template> | |
5496 | ||
5497 | </xsl:when > | |
5498 | ||
5499 | <xsl:other wise> | |
5500 | ||
5501 | <xsl:call- template | |
5502 | name="na" | |
5503 | /> | |
5504 | ||
5505 | </xsl:othe rwise> | |
5506 | ||
5507 | </xsl:choo se> | |
5508 | ||
5509 | </xsl:othe rwise> | |
5510 | ||
5511 | </xsl:choo se> | |
5512 | ||
5513 | </div> | |
5514 | ||
5515 | </td> | |
5516 | ||
5517 | <!-- ref r ange --> | |
5518 | ||
5519 | <td> | |
5520 | ||
5521 | <div | |
5522 | style="ove rflow:hidd en; white- space:nowr ap; width: 120px;" | |
5523 | > | |
5524 | ||
5525 | <xsl:varia ble | |
5526 | name="ref" | |
5527 | > | |
5528 | ||
5529 | <xsl:call- template | |
5530 | name="getR efRange" | |
5531 | > | |
5532 | ||
5533 | <xsl:with- param | |
5534 | name="obse rvation" | |
5535 | select="$r ow/n1:obse rvation" | |
5536 | /> | |
5537 | ||
5538 | </xsl:call -template> | |
5539 | ||
5540 | </xsl:vari able> | |
5541 | ||
5542 | <xsl:choos e> | |
5543 | ||
5544 | <xsl:when | |
5545 | test="stri ng-length( $ref)>0" | |
5546 | > | |
5547 | ||
5548 | <xsl:call- template | |
5549 | name="flyo verSpan" | |
5550 | > | |
5551 | ||
5552 | <xsl:with- param | |
5553 | name="data " | |
5554 | select="$r ef" | |
5555 | /> | |
5556 | ||
5557 | </xsl:call -template> | |
5558 | ||
5559 | </xsl:when > | |
5560 | ||
5561 | <xsl:other wise> | |
5562 | ||
5563 | <xsl:call- template | |
5564 | name="na" | |
5565 | /> | |
5566 | ||
5567 | </xsl:othe rwise> | |
5568 | ||
5569 | </xsl:choo se> | |
5570 | ||
5571 | </div> | |
5572 | ||
5573 | </td> | |
5574 | ||
5575 | <!-- Resul t Status - -> | |
5576 | ||
5577 | <td> | |
5578 | ||
5579 | <div | |
5580 | style="ove rflow:hidd en; white- space:nowr ap; width: 80px;" | |
5581 | > | |
5582 | ||
5583 | <xsl:choos e> | |
5584 | ||
5585 | <xsl:when | |
5586 | test="stri ng-length( $row/n1:ob servation/ n1:statusC ode/@code) >0" | |
5587 | > | |
5588 | ||
5589 | <xsl:call- template | |
5590 | name="flyo verSpan" | |
5591 | > | |
5592 | ||
5593 | <xsl:with- param | |
5594 | name="data " | |
5595 | select="$r ow/n1:obse rvation/n1 :statusCod e/@code" | |
5596 | /> | |
5597 | ||
5598 | </xsl:call -template> | |
5599 | ||
5600 | </xsl:when > | |
5601 | ||
5602 | <xsl:other wise> | |
5603 | ||
5604 | <xsl:call- template | |
5605 | name="na" | |
5606 | /> | |
5607 | ||
5608 | </xsl:othe rwise> | |
5609 | ||
5610 | </xsl:choo se> | |
5611 | ||
5612 | </div> | |
5613 | ||
5614 | </td> | |
5615 | ||
5616 | <td> | |
5617 | ||
5618 | <xsl:call- template | |
5619 | name="na" | |
5620 | /> | |
5621 | ||
5622 | </td> | |
5623 | ||
5624 | </tr> | |
5625 | ||
5626 | </xsl:when > | |
5627 | ||
5628 | </xsl:choo se> | |
5629 | ||
5630 | </xsl:othe rwise> | |
5631 | ||
5632 | </xsl:choo se> | |
5633 | ||
5634 | </xsl:temp late> | |
5635 | ||
5636 | ||
5637 | <!-- immun ization en try row -- > | |
5638 | ||
5639 | <xsl:templ ate | |
5640 | name="immu nizationsR ow" | |
5641 | > | |
5642 | ||
5643 | <xsl:param | |
5644 | name="row" | |
5645 | /> | |
5646 | ||
5647 | <xsl:varia ble | |
5648 | name="rowD ata" | |
5649 | select="$r ow/n1:subs tanceAdmin istration/ n1:consuma ble/n1:man ufacturedP roduct/n1: manufactur edMaterial " | |
5650 | /> | |
5651 | ||
5652 | <xsl:varia ble | |
5653 | name="rowS ubj" | |
5654 | select="$r ow/n1:subs tanceAdmin istration/ n1:entryRe lationship [@typeCode ='SUBJ']/n 1:observat ion" | |
5655 | /> | |
5656 | ||
5657 | <xsl:varia ble | |
5658 | name="rowC ause" | |
5659 | select="$r ow/n1:subs tanceAdmin istration[ @classCode ='SBADM']/ n1:entryRe lationship [@typeCode ='CAUS' an d @inversi onInd='fal se']/n1:ob servation" | |
5660 | /> | |
5661 | ||
5662 | <xsl:varia ble | |
5663 | name="subs tanceAdmin istration" | |
5664 | select="$r ow/n1:subs tanceAdmin istration" | |
5665 | /> | |
5666 | ||
5667 | <tr | |
5668 | class="sec ond" | |
5669 | > | |
5670 | ||
5671 | <!-- name --> | |
5672 | ||
5673 | <td> | |
5674 | ||
5675 | <div | |
5676 | style="ove rflow:hidd en; white- space:nowr ap; width: 200px;" | |
5677 | > | |
5678 | ||
5679 | <xsl:varia ble | |
5680 | name="immu nizationRe sult" | |
5681 | > | |
5682 | ||
5683 | <xsl:call- template | |
5684 | name="getI mmunizatio n" | |
5685 | > | |
5686 | ||
5687 | <xsl:with- param | |
5688 | name="subs tanceAdmin istration" | |
5689 | select="$s ubstanceAd ministrati on" | |
5690 | /> | |
5691 | ||
5692 | </xsl:call -template> | |
5693 | ||
5694 | </xsl:vari able> | |
5695 | ||
5696 | <xsl:choos e> | |
5697 | ||
5698 | <xsl:when | |
5699 | test="stri ng-length( $immunizat ionResult) >0" | |
5700 | > | |
5701 | ||
5702 | <xsl:call- template | |
5703 | name="flyo verSpan" | |
5704 | > | |
5705 | ||
5706 | <xsl:with- param | |
5707 | name="data " | |
5708 | select="$i mmunizatio nResult" | |
5709 | /> | |
5710 | ||
5711 | </xsl:call -template> | |
5712 | ||
5713 | </xsl:when > | |
5714 | ||
5715 | <xsl:other wise> | |
5716 | ||
5717 | <xsl:call- template | |
5718 | name="na" | |
5719 | /> | |
5720 | ||
5721 | </xsl:othe rwise> | |
5722 | ||
5723 | </xsl:choo se> | |
5724 | ||
5725 | </div> | |
5726 | ||
5727 | </td> | |
5728 | ||
5729 | <!-- serie s --> | |
5730 | ||
5731 | <td> | |
5732 | ||
5733 | <div | |
5734 | style="ove rflow:hidd en; white- space:nowr ap; width: 100px;" | |
5735 | > | |
5736 | ||
5737 | <xsl:call- template | |
5738 | name="flyo verSpan" | |
5739 | > | |
5740 | ||
5741 | <xsl:with- param | |
5742 | name="data " | |
5743 | select="$r owSubj/n1: value/@val ue" | |
5744 | /> | |
5745 | ||
5746 | </xsl:call -template> | |
5747 | ||
5748 | </div> | |
5749 | ||
5750 | </td> | |
5751 | ||
5752 | <!-- effe ctive date --> | |
5753 | ||
5754 | <td> | |
5755 | ||
5756 | <div | |
5757 | style="ove rflow:hidd en; white- space:nowr ap; width: 100px;" | |
5758 | > | |
5759 | ||
5760 | <xsl:choos e> | |
5761 | ||
5762 | <xsl:when | |
5763 | test="stri ng-length( $row/n1:su bstanceAdm inistratio n/n1:effec tiveTime/@ value)=0" | |
5764 | > | |
5765 | ||
5766 | <xsl:text> | |
5767 | -- Not Ava ilable -- | |
5768 | </xsl:text > | |
5769 | ||
5770 | </xsl:when > | |
5771 | ||
5772 | <xsl:other wise> | |
5773 | ||
5774 | <xsl:call- template | |
5775 | name="form atDateShor t" | |
5776 | > | |
5777 | ||
5778 | <xsl:with- param | |
5779 | name="date String" | |
5780 | select="$r ow/n1:subs tanceAdmin istration/ n1:effecti veTime/@va lue" | |
5781 | /> | |
5782 | ||
5783 | </xsl:call -template> | |
5784 | ||
5785 | </xsl:othe rwise> | |
5786 | ||
5787 | </xsl:choo se> | |
5788 | ||
5789 | </div> | |
5790 | ||
5791 | </td> | |
5792 | ||
5793 | <!-- react ion --> | |
5794 | ||
5795 | <td> | |
5796 | ||
5797 | <div | |
5798 | style="ove rflow:hidd en; white- space:nowr ap; width: 260px;" | |
5799 | > | |
5800 | ||
5801 | <xsl:varia ble | |
5802 | name="reac tionRefere nce" | |
5803 | select="$r owCause/n1 :text/n1:r eference/@ value" | |
5804 | /> | |
5805 | ||
5806 | <xsl:varia ble | |
5807 | name="reac tion" | |
5808 | select=".. /n1:text// n1:content [@ID=subst ring-after ($reaction Reference, '#')]" | |
5809 | /> | |
5810 | ||
5811 | <xsl:call- template | |
5812 | name="flyo verSpan" | |
5813 | > | |
5814 | ||
5815 | <xsl:with- param | |
5816 | name="data " | |
5817 | select="$r eaction" | |
5818 | /> | |
5819 | ||
5820 | </xsl:call -template> | |
5821 | ||
5822 | </div> | |
5823 | ||
5824 | </td> | |
5825 | ||
5826 | <!-- comme nts --> | |
5827 | ||
5828 | <td> | |
5829 | ||
5830 | <xsl:varia ble | |
5831 | name="comm entReferen ce" | |
5832 | select="$r ow/n1:subs tanceAdmin istration/ n1:text/n1 :reference /@value" | |
5833 | /> | |
5834 | ||
5835 | <div | |
5836 | style="ove rflow:hidd en; white- space:nowr ap; width: 240px;" | |
5837 | > | |
5838 | ||
5839 | <xsl:call- template | |
5840 | name="flyo verSpan" | |
5841 | > | |
5842 | ||
5843 | <xsl:with- param | |
5844 | name="data " | |
5845 | select=".. /n1:text// n1:content [@ID=subst ring-after ($commentR eference,' #')]" | |
5846 | /> | |
5847 | ||
5848 | </xsl:call -template> | |
5849 | ||
5850 | </div> | |
5851 | ||
5852 | </td> | |
5853 | ||
5854 | </tr> | |
5855 | ||
5856 | </xsl:temp late> | |
5857 | ||
5858 | ||
5859 | <!-- vital s entry ro w --> | |
5860 | ||
5861 | <xsl:templ ate | |
5862 | name="vita lsRow" | |
5863 | > | |
5864 | ||
5865 | <xsl:param | |
5866 | name="row" | |
5867 | /> | |
5868 | ||
5869 | <xsl:varia ble | |
5870 | name="rowD ata" | |
5871 | select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion" | |
5872 | /> | |
5873 | ||
5874 | <xsl:varia ble | |
5875 | name="heig ht" | |
5876 | select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion[n1:cod e/@code=$l oincHeight ]" | |
5877 | /> | |
5878 | ||
5879 | <xsl:varia ble | |
5880 | name="weig ht" | |
5881 | select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion[n1:cod e/@code=$l oincWeight ]" | |
5882 | /> | |
5883 | ||
5884 | <xsl:varia ble | |
5885 | name="syst olic" | |
5886 | select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion[n1:cod e/@code=$l oincBpSyst olic]" | |
5887 | /> | |
5888 | ||
5889 | <xsl:varia ble | |
5890 | name="dias tolic" | |
5891 | select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion[n1:cod e/@code=$l oincBpDias tolic]" | |
5892 | /> | |
5893 | ||
5894 | <xsl:varia ble | |
5895 | name="temp " | |
5896 | select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion[n1:cod e/@code=$l oincTemper ature]" | |
5897 | /> | |
5898 | ||
5899 | <xsl:varia ble | |
5900 | name="puls e" | |
5901 | select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion[n1:cod e/@code=$l oincPulse] " | |
5902 | /> | |
5903 | ||
5904 | <xsl:varia ble | |
5905 | name="resp " | |
5906 | select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion[n1:cod e/@code=$l oincRespir ation]" | |
5907 | /> | |
5908 | ||
5909 | <xsl:varia ble | |
5910 | name="pox" | |
5911 | select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion[n1:cod e/@code=$l oincPulseO ximetry]" | |
5912 | /> | |
5913 | ||
5914 | <xsl:varia ble | |
5915 | name="bloo dPressure" | |
5916 | select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion[n1:cod e/@code=$l oincBloodP ressure]" | |
5917 | /> | |
5918 | ||
5919 | <xsl:varia ble | |
5920 | name="body HtLying" | |
5921 | select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion[n1:cod e/@code=$l oincBodyHt Lying]" | |
5922 | /> | |
5923 | ||
5924 | <xsl:varia ble | |
5925 | name="head CircumOCF" | |
5926 | select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion[n1:cod e/@code=$l oincOCF]" | |
5927 | /> | |
5928 | ||
5929 | <xsl:varia ble | |
5930 | name="weig ht2" | |
5931 | select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion[n1:cod e/@code=$l oincWeight 2]" | |
5932 | /> | |
5933 | ||
5934 | <tr | |
5935 | class="sec ond" | |
5936 | > | |
5937 | ||
5938 | <!-- Date --> | |
5939 | ||
5940 | <td> | |
5941 | ||
5942 | <div | |
5943 | style="ove rflow:hidd en; white- space:nowr ap; width: 80px;" | |
5944 | > | |
5945 | ||
5946 | <xsl:choos e> | |
5947 | ||
5948 | <xsl:when | |
5949 | test="stri ng-length( $rowData/n 1:effectiv eTime/@val ue)=0" | |
5950 | > | |
5951 | ||
5952 | <xsl:text> | |
5953 | -- Not Ava ilable -- | |
5954 | </xsl:text > | |
5955 | ||
5956 | </xsl:when > | |
5957 | ||
5958 | <xsl:other wise> | |
5959 | ||
5960 | <xsl:call- template | |
5961 | name="form atDateShor t" | |
5962 | > | |
5963 | ||
5964 | <xsl:with- param | |
5965 | name="date String" | |
5966 | select="$r owData/n1: effectiveT ime/@value " | |
5967 | /> | |
5968 | ||
5969 | </xsl:call -template> | |
5970 | ||
5971 | </xsl:othe rwise> | |
5972 | ||
5973 | </xsl:choo se> | |
5974 | ||
5975 | </div> | |
5976 | ||
5977 | </td> | |
5978 | ||
5979 | <!-- temp --> | |
5980 | ||
5981 | <td> | |
5982 | ||
5983 | <div | |
5984 | style="ove rflow:hidd en; white- space:nowr ap; width: 70px;" | |
5985 | > | |
5986 | ||
5987 | <xsl:choos e> | |
5988 | ||
5989 | <xsl:when | |
5990 | test="$tem p" | |
5991 | > | |
5992 | ||
5993 | <xsl:for-e ach | |
5994 | select="$t emp" | |
5995 | > | |
5996 | ||
5997 | <xsl:if | |
5998 | test="posi tion()>1" | |
5999 | > | |
6000 | ||
6001 | <br/> | |
6002 | ||
6003 | </xsl:if> | |
6004 | ||
6005 | <xsl:choos e> | |
6006 | ||
6007 | <xsl:when | |
6008 | test="stri ng-length( n1:value/@ value)>1" | |
6009 | > | |
6010 | ||
6011 | <xsl:varia ble | |
6012 | name="temp Result" | |
6013 | select="n1 :value/@va lue" | |
6014 | /> | |
6015 | ||
6016 | <xsl:choos e> | |
6017 | ||
6018 | <xsl:when | |
6019 | test="n1:v alue/@unit " | |
6020 | > | |
6021 | ||
6022 | <xsl:call- template | |
6023 | name="flyo verSpan" | |
6024 | > | |
6025 | ||
6026 | <xsl:with- param | |
6027 | name="data " | |
6028 | select="co ncat($temp Result,n1: value/@uni t)" | |
6029 | /> | |
6030 | ||
6031 | </xsl:call -template> | |
6032 | ||
6033 | </xsl:when > | |
6034 | ||
6035 | <xsl:other wise> | |
6036 | ||
6037 | <xsl:call- template | |
6038 | name="flyo verSpan" | |
6039 | > | |
6040 | ||
6041 | <xsl:with- param | |
6042 | name="data " | |
6043 | select="$t empResult" | |
6044 | /> | |
6045 | ||
6046 | </xsl:call -template> | |
6047 | ||
6048 | </xsl:othe rwise> | |
6049 | ||
6050 | </xsl:choo se> | |
6051 | ||
6052 | </xsl:when > | |
6053 | ||
6054 | </xsl:choo se> | |
6055 | ||
6056 | </xsl:for- each> | |
6057 | ||
6058 | </xsl:when > | |
6059 | ||
6060 | <xsl:other wise> | |
6061 | ||
6062 | <xsl:call- template | |
6063 | name="na" | |
6064 | /> | |
6065 | ||
6066 | </xsl:othe rwise> | |
6067 | ||
6068 | </xsl:choo se> | |
6069 | ||
6070 | </div> | |
6071 | ||
6072 | </td> | |
6073 | ||
6074 | <!-- pulse --> | |
6075 | ||
6076 | <td> | |
6077 | ||
6078 | <div | |
6079 | style="ove rflow:hidd en; white- space:nowr ap; width: 70px;" | |
6080 | > | |
6081 | ||
6082 | <xsl:choos e> | |
6083 | ||
6084 | <xsl:when | |
6085 | test="$pul se" | |
6086 | > | |
6087 | ||
6088 | <xsl:for-e ach | |
6089 | select="$p ulse" | |
6090 | > | |
6091 | ||
6092 | <xsl:if | |
6093 | test="posi tion()>1" | |
6094 | > | |
6095 | ||
6096 | <br/> | |
6097 | ||
6098 | </xsl:if> | |
6099 | ||
6100 | <xsl:choos e> | |
6101 | ||
6102 | <xsl:when | |
6103 | test="stri ng-length( n1:value/@ value)>1" | |
6104 | > | |
6105 | ||
6106 | <xsl:varia ble | |
6107 | name="puls eResult" | |
6108 | select="n1 :value/@va lue" | |
6109 | /> | |
6110 | ||
6111 | <xsl:choos e> | |
6112 | ||
6113 | <xsl:when | |
6114 | test="n1:v alue/@unit " | |
6115 | > | |
6116 | ||
6117 | <xsl:call- template | |
6118 | name="flyo verSpan" | |
6119 | > | |
6120 | ||
6121 | <xsl:with- param | |
6122 | name="data " | |
6123 | select="co ncat($puls eResult,n1 :value/@un it)" | |
6124 | /> | |
6125 | ||
6126 | </xsl:call -template> | |
6127 | ||
6128 | </xsl:when > | |
6129 | ||
6130 | <xsl:other wise> | |
6131 | ||
6132 | <xsl:call- template | |
6133 | name="flyo verSpan" | |
6134 | > | |
6135 | ||
6136 | <xsl:with- param | |
6137 | name="data " | |
6138 | select="$p ulseResult " | |
6139 | /> | |
6140 | ||
6141 | </xsl:call -template> | |
6142 | ||
6143 | </xsl:othe rwise> | |
6144 | ||
6145 | </xsl:choo se> | |
6146 | ||
6147 | </xsl:when > | |
6148 | ||
6149 | </xsl:choo se> | |
6150 | ||
6151 | </xsl:for- each> | |
6152 | ||
6153 | </xsl:when > | |
6154 | ||
6155 | <xsl:other wise> | |
6156 | ||
6157 | <xsl:call- template | |
6158 | name="na" | |
6159 | /> | |
6160 | ||
6161 | </xsl:othe rwise> | |
6162 | ||
6163 | </xsl:choo se> | |
6164 | ||
6165 | </div> | |
6166 | ||
6167 | </td> | |
6168 | ||
6169 | <!-- resp --> | |
6170 | ||
6171 | <td> | |
6172 | ||
6173 | <div | |
6174 | style="ove rflow:hidd en; white- space:nowr ap; width: 70px;" | |
6175 | > | |
6176 | ||
6177 | <xsl:choos e> | |
6178 | ||
6179 | <xsl:when | |
6180 | test="$res p" | |
6181 | > | |
6182 | ||
6183 | <xsl:for-e ach | |
6184 | select="$r esp" | |
6185 | > | |
6186 | ||
6187 | <xsl:if | |
6188 | test="posi tion()>1" | |
6189 | > | |
6190 | ||
6191 | <br/> | |
6192 | ||
6193 | </xsl:if> | |
6194 | ||
6195 | <xsl:choos e> | |
6196 | ||
6197 | <xsl:when | |
6198 | test="stri ng-length( n1:value/@ value)>1" | |
6199 | > | |
6200 | ||
6201 | <xsl:varia ble | |
6202 | name="resp Result" | |
6203 | select="n1 :value/@va lue" | |
6204 | /> | |
6205 | ||
6206 | <xsl:choos e> | |
6207 | ||
6208 | <xsl:when | |
6209 | test="n1:v alue/@unit " | |
6210 | > | |
6211 | ||
6212 | <xsl:call- template | |
6213 | name="flyo verSpan" | |
6214 | > | |
6215 | ||
6216 | <xsl:with- param | |
6217 | name="data " | |
6218 | select="co ncat($resp Result,n1: value/@uni t)" | |
6219 | /> | |
6220 | ||
6221 | </xsl:call -template> | |
6222 | ||
6223 | </xsl:when > | |
6224 | ||
6225 | <xsl:other wise> | |
6226 | ||
6227 | <xsl:call- template | |
6228 | name="flyo verSpan" | |
6229 | > | |
6230 | ||
6231 | <xsl:with- param | |
6232 | name="data " | |
6233 | select="$r espResult" | |
6234 | /> | |
6235 | ||
6236 | </xsl:call -template> | |
6237 | ||
6238 | </xsl:othe rwise> | |
6239 | ||
6240 | </xsl:choo se> | |
6241 | ||
6242 | </xsl:when > | |
6243 | ||
6244 | </xsl:choo se> | |
6245 | ||
6246 | </xsl:for- each> | |
6247 | ||
6248 | </xsl:when > | |
6249 | ||
6250 | <xsl:other wise> | |
6251 | ||
6252 | <xsl:call- template | |
6253 | name="na" | |
6254 | /> | |
6255 | ||
6256 | </xsl:othe rwise> | |
6257 | ||
6258 | </xsl:choo se> | |
6259 | ||
6260 | </div> | |
6261 | ||
6262 | </td> | |
6263 | ||
6264 | <!-- BP s ystolic / diastolic --> | |
6265 | ||
6266 | <td> | |
6267 | ||
6268 | <div | |
6269 | style="ove rflow:hidd en; white- space:nowr ap; width: 70px;" | |
6270 | > | |
6271 | ||
6272 | <xsl:choos e> | |
6273 | ||
6274 | <xsl:when | |
6275 | test="$sys tolic/n1:v alue/@valu e or $dias tolic/n1:v alue/@valu e or $bloo dPressure/ n1:value/@ value" | |
6276 | > | |
6277 | ||
6278 | <xsl:call- template | |
6279 | name="bpDe tailLister " | |
6280 | > | |
6281 | ||
6282 | <xsl:with- param | |
6283 | name="syst olics" | |
6284 | select="$s ystolic" | |
6285 | /> | |
6286 | ||
6287 | <xsl:with- param | |
6288 | name="dias tolics" | |
6289 | select="$d iastolic" | |
6290 | /> | |
6291 | ||
6292 | </xsl:call -template> | |
6293 | ||
6294 | <xsl:if | |
6295 | test="$sys tolic/n1:v alue/@valu e and $blo odPressure /n1:value/ @value" | |
6296 | > | |
6297 | ||
6298 | <br/> | |
6299 | ||
6300 | </xsl:if> | |
6301 | ||
6302 | <xsl:for-e ach | |
6303 | select="$b loodPressu re" | |
6304 | > | |
6305 | ||
6306 | <xsl:if | |
6307 | test="posi tion()>1" | |
6308 | > | |
6309 | ||
6310 | <br/> | |
6311 | ||
6312 | </xsl:if> | |
6313 | ||
6314 | <xsl:value -of | |
6315 | select="n1 :value/@va lue" | |
6316 | /> | |
6317 | ||
6318 | </xsl:for- each> | |
6319 | ||
6320 | </xsl:when > | |
6321 | ||
6322 | <xsl:other wise> | |
6323 | ||
6324 | <xsl:call- template | |
6325 | name="na" | |
6326 | /> | |
6327 | ||
6328 | </xsl:othe rwise> | |
6329 | ||
6330 | </xsl:choo se> | |
6331 | ||
6332 | </div> | |
6333 | ||
6334 | </td> | |
6335 | ||
6336 | <!-- heigh t --> | |
6337 | ||
6338 | <td> | |
6339 | ||
6340 | <div | |
6341 | style="ove rflow:hidd en; white- space:nowr ap; width: 70px;" | |
6342 | > | |
6343 | ||
6344 | <xsl:choos e> | |
6345 | ||
6346 | <xsl:when | |
6347 | test="$hei ght" | |
6348 | > | |
6349 | ||
6350 | <xsl:for-e ach | |
6351 | select="$h eight" | |
6352 | > | |
6353 | ||
6354 | <xsl:if | |
6355 | test="posi tion()>1" | |
6356 | > | |
6357 | ||
6358 | <br/> | |
6359 | ||
6360 | </xsl:if> | |
6361 | ||
6362 | <xsl:choos e> | |
6363 | ||
6364 | <xsl:when | |
6365 | test="stri ng-length( n1:value/@ value)>1" | |
6366 | > | |
6367 | ||
6368 | <xsl:varia ble | |
6369 | name="heig htResult" | |
6370 | select="n1 :value/@va lue" | |
6371 | /> | |
6372 | ||
6373 | <xsl:choos e> | |
6374 | ||
6375 | <xsl:when | |
6376 | test="n1:v alue/@unit " | |
6377 | > | |
6378 | ||
6379 | <xsl:call- template | |
6380 | name="flyo verSpan" | |
6381 | > | |
6382 | ||
6383 | <xsl:with- param | |
6384 | name="data " | |
6385 | select="co ncat($heig htResult,n 1:value/@u nit)" | |
6386 | /> | |
6387 | ||
6388 | </xsl:call -template> | |
6389 | ||
6390 | </xsl:when > | |
6391 | ||
6392 | <xsl:other wise> | |
6393 | ||
6394 | <xsl:call- template | |
6395 | name="flyo verSpan" | |
6396 | > | |
6397 | ||
6398 | <xsl:with- param | |
6399 | name="data " | |
6400 | select="$h eightResul t" | |
6401 | /> | |
6402 | ||
6403 | </xsl:call -template> | |
6404 | ||
6405 | </xsl:othe rwise> | |
6406 | ||
6407 | </xsl:choo se> | |
6408 | ||
6409 | </xsl:when > | |
6410 | ||
6411 | </xsl:choo se> | |
6412 | ||
6413 | </xsl:for- each> | |
6414 | ||
6415 | </xsl:when > | |
6416 | ||
6417 | <xsl:other wise> | |
6418 | ||
6419 | <xsl:call- template | |
6420 | name="na" | |
6421 | /> | |
6422 | ||
6423 | </xsl:othe rwise> | |
6424 | ||
6425 | </xsl:choo se> | |
6426 | ||
6427 | </div> | |
6428 | ||
6429 | </td> | |
6430 | ||
6431 | <!-- heigh t lying--> | |
6432 | ||
6433 | <td> | |
6434 | ||
6435 | <div | |
6436 | style="ove rflow:hidd en; white- space:nowr ap; width: 70px;" | |
6437 | > | |
6438 | ||
6439 | <xsl:choos e> | |
6440 | ||
6441 | <xsl:when | |
6442 | test="$bod yHtLying" | |
6443 | > | |
6444 | ||
6445 | <xsl:for-e ach | |
6446 | select="$b odyHtLying " | |
6447 | > | |
6448 | ||
6449 | <xsl:if | |
6450 | test="posi tion()>1" | |
6451 | > | |
6452 | ||
6453 | <br/> | |
6454 | ||
6455 | </xsl:if> | |
6456 | ||
6457 | <xsl:choos e> | |
6458 | ||
6459 | <xsl:when | |
6460 | test="stri ng-length( n1:value/@ value)>1" | |
6461 | > | |
6462 | ||
6463 | <xsl:varia ble | |
6464 | name="heig htLyResult " | |
6465 | select="n1 :value/@va lue" | |
6466 | /> | |
6467 | ||
6468 | <xsl:choos e> | |
6469 | ||
6470 | <xsl:when | |
6471 | test="n1:v alue/@unit " | |
6472 | > | |
6473 | ||
6474 | <xsl:call- template | |
6475 | name="flyo verSpan" | |
6476 | > | |
6477 | ||
6478 | <xsl:with- param | |
6479 | name="data " | |
6480 | select="co ncat($heig htLyResult ,n1:value/ @unit)" | |
6481 | /> | |
6482 | ||
6483 | </xsl:call -template> | |
6484 | ||
6485 | </xsl:when > | |
6486 | ||
6487 | <xsl:other wise> | |
6488 | ||
6489 | <xsl:call- template | |
6490 | name="flyo verSpan" | |
6491 | > | |
6492 | ||
6493 | <xsl:with- param | |
6494 | name="data " | |
6495 | select="$h eightLyRes ult" | |
6496 | /> | |
6497 | ||
6498 | </xsl:call -template> | |
6499 | ||
6500 | </xsl:othe rwise> | |
6501 | ||
6502 | </xsl:choo se> | |
6503 | ||
6504 | </xsl:when > | |
6505 | ||
6506 | </xsl:choo se> | |
6507 | ||
6508 | </xsl:for- each> | |
6509 | ||
6510 | </xsl:when > | |
6511 | ||
6512 | <xsl:other wise> | |
6513 | ||
6514 | <xsl:call- template | |
6515 | name="na" | |
6516 | /> | |
6517 | ||
6518 | </xsl:othe rwise> | |
6519 | ||
6520 | </xsl:choo se> | |
6521 | ||
6522 | ||
6523 | </div> | |
6524 | ||
6525 | </td> | |
6526 | ||
6527 | <!-- weigh t --> | |
6528 | ||
6529 | <td> | |
6530 | ||
6531 | <div | |
6532 | style="ove rflow:hidd en; white- space:nowr ap; width: 70px;" | |
6533 | > | |
6534 | ||
6535 | <xsl:choos e> | |
6536 | ||
6537 | <xsl:when | |
6538 | test="stri ng-length( $weight2)> 1" | |
6539 | > | |
6540 | ||
6541 | <xsl:call- template | |
6542 | name="getW eightResul t" | |
6543 | > | |
6544 | ||
6545 | <xsl:with- param | |
6546 | name="wt" | |
6547 | select="$w eight2" | |
6548 | /> | |
6549 | ||
6550 | </xsl:call -template> | |
6551 | ||
6552 | </xsl:when > | |
6553 | ||
6554 | <xsl:when | |
6555 | test="$wei ght" | |
6556 | > | |
6557 | ||
6558 | <xsl:call- template | |
6559 | name="getW eightResul t" | |
6560 | > | |
6561 | ||
6562 | <xsl:with- param | |
6563 | name="wt" | |
6564 | select="$w eight" | |
6565 | /> | |
6566 | ||
6567 | </xsl:call -template> | |
6568 | ||
6569 | </xsl:when > | |
6570 | ||
6571 | <xsl:other wise> | |
6572 | ||
6573 | <xsl:call- template | |
6574 | name="na" | |
6575 | /> | |
6576 | ||
6577 | </xsl:othe rwise> | |
6578 | ||
6579 | </xsl:choo se> | |
6580 | ||
6581 | </div> | |
6582 | ||
6583 | </td> | |
6584 | ||
6585 | <!-- pox - -> | |
6586 | ||
6587 | <td> | |
6588 | ||
6589 | <div | |
6590 | style="ove rflow:hidd en; white- space:nowr ap; width: 70px;" | |
6591 | > | |
6592 | ||
6593 | <xsl:choos e> | |
6594 | ||
6595 | <xsl:when | |
6596 | test="$pox " | |
6597 | > | |
6598 | ||
6599 | <xsl:for-e ach | |
6600 | select="$p ox" | |
6601 | > | |
6602 | ||
6603 | <xsl:if | |
6604 | test="posi tion()>1" | |
6605 | > | |
6606 | ||
6607 | <br/> | |
6608 | ||
6609 | </xsl:if> | |
6610 | ||
6611 | <xsl:choos e> | |
6612 | ||
6613 | <xsl:when | |
6614 | test="stri ng-length( n1:value/@ value)>1" | |
6615 | > | |
6616 | ||
6617 | <xsl:varia ble | |
6618 | name="poxR esult" | |
6619 | select="n1 :value/@va lue" | |
6620 | /> | |
6621 | ||
6622 | <xsl:choos e> | |
6623 | ||
6624 | <xsl:when | |
6625 | test="n1:v alue/@unit " | |
6626 | > | |
6627 | ||
6628 | <xsl:call- template | |
6629 | name="flyo verSpan" | |
6630 | > | |
6631 | ||
6632 | <xsl:with- param | |
6633 | name="data " | |
6634 | select="co ncat($poxR esult,n1:v alue/@unit )" | |
6635 | /> | |
6636 | ||
6637 | </xsl:call -template> | |
6638 | ||
6639 | </xsl:when > | |
6640 | ||
6641 | <xsl:other wise> | |
6642 | ||
6643 | <xsl:call- template | |
6644 | name="flyo verSpan" | |
6645 | > | |
6646 | ||
6647 | <xsl:with- param | |
6648 | name="data " | |
6649 | select="$p oxResult" | |
6650 | /> | |
6651 | ||
6652 | </xsl:call -template> | |
6653 | ||
6654 | </xsl:othe rwise> | |
6655 | ||
6656 | </xsl:choo se> | |
6657 | ||
6658 | </xsl:when > | |
6659 | ||
6660 | </xsl:choo se> | |
6661 | ||
6662 | </xsl:for- each> | |
6663 | ||
6664 | </xsl:when > | |
6665 | ||
6666 | <xsl:other wise> | |
6667 | ||
6668 | <xsl:call- template | |
6669 | name="na" | |
6670 | /> | |
6671 | ||
6672 | </xsl:othe rwise> | |
6673 | ||
6674 | </xsl:choo se> | |
6675 | ||
6676 | </div> | |
6677 | ||
6678 | </td> | |
6679 | ||
6680 | <!-- OCF - -> | |
6681 | ||
6682 | <td> | |
6683 | ||
6684 | <div | |
6685 | style="ove rflow:hidd en; white- space:nowr ap; width: 70px;" | |
6686 | > | |
6687 | ||
6688 | <xsl:choos e> | |
6689 | ||
6690 | <xsl:when | |
6691 | test="$hea dCircumOCF " | |
6692 | > | |
6693 | ||
6694 | <xsl:for-e ach | |
6695 | select="$h eadCircumO CF" | |
6696 | > | |
6697 | ||
6698 | <xsl:if | |
6699 | test="posi tion()>1" | |
6700 | > | |
6701 | ||
6702 | <br/> | |
6703 | ||
6704 | </xsl:if> | |
6705 | ||
6706 | <xsl:choos e> | |
6707 | ||
6708 | <xsl:when | |
6709 | test="stri ng-length( n1:value/@ value)>1" | |
6710 | > | |
6711 | ||
6712 | <xsl:varia ble | |
6713 | name="OCFR esult" | |
6714 | select="n1 :value/@va lue" | |
6715 | /> | |
6716 | ||
6717 | <xsl:choos e> | |
6718 | ||
6719 | <xsl:when | |
6720 | test="n1:v alue/@unit " | |
6721 | > | |
6722 | ||
6723 | <xsl:call- template | |
6724 | name="flyo verSpan" | |
6725 | > | |
6726 | ||
6727 | <xsl:with- param | |
6728 | name="data " | |
6729 | select="co ncat($OCFR esult,n1:v alue/@unit )" | |
6730 | /> | |
6731 | ||
6732 | </xsl:call -template> | |
6733 | ||
6734 | </xsl:when > | |
6735 | ||
6736 | <xsl:other wise> | |
6737 | ||
6738 | <xsl:call- template | |
6739 | name="flyo verSpan" | |
6740 | > | |
6741 | ||
6742 | <xsl:with- param | |
6743 | name="data " | |
6744 | select="$O CFResult" | |
6745 | /> | |
6746 | ||
6747 | </xsl:call -template> | |
6748 | ||
6749 | </xsl:othe rwise> | |
6750 | ||
6751 | </xsl:choo se> | |
6752 | ||
6753 | </xsl:when > | |
6754 | ||
6755 | </xsl:choo se> | |
6756 | ||
6757 | </xsl:for- each> | |
6758 | ||
6759 | </xsl:when > | |
6760 | ||
6761 | <xsl:other wise> | |
6762 | ||
6763 | <xsl:call- template | |
6764 | name="na" | |
6765 | /> | |
6766 | ||
6767 | </xsl:othe rwise> | |
6768 | ||
6769 | </xsl:choo se> | |
6770 | ||
6771 | </div> | |
6772 | ||
6773 | </td> | |
6774 | ||
6775 | <!-- sourc e --> | |
6776 | ||
6777 | <td> | |
6778 | ||
6779 | <div | |
6780 | style="ove rflow:hidd en; white- space:nowr ap; width: 150px;" | |
6781 | > | |
6782 | ||
6783 | <xsl:choos e> | |
6784 | ||
6785 | <xsl:when | |
6786 | test="stri ng-length( $row/n1:or ganizer/n1 :author/n1 :assignedA uthor/n1:r epresented Organizati on/n1:name )>1" | |
6787 | > | |
6788 | ||
6789 | <xsl:call- template | |
6790 | name="flyo verSpan" | |
6791 | > | |
6792 | ||
6793 | <xsl:with- param | |
6794 | name="data " | |
6795 | select="$r ow/n1:orga nizer/n1:a uthor/n1:a ssignedAut hor/n1:rep resentedOr ganization /n1:name" | |
6796 | /> | |
6797 | ||
6798 | </xsl:call -template> | |
6799 | ||
6800 | </xsl:when > | |
6801 | ||
6802 | <xsl:other wise> | |
6803 | ||
6804 | <xsl:call- template | |
6805 | name="na" | |
6806 | /> | |
6807 | ||
6808 | </xsl:othe rwise> | |
6809 | ||
6810 | </xsl:choo se> | |
6811 | ||
6812 | </div> | |
6813 | ||
6814 | </td> | |
6815 | ||
6816 | </tr> | |
6817 | ||
6818 | </xsl:temp late> | |
6819 | ||
6820 | ||
6821 | <!-- fly over --> | |
6822 | ||
6823 | <xsl:templ ate | |
6824 | name="flyo verSpan" | |
6825 | > | |
6826 | ||
6827 | <xsl:param | |
6828 | name="data " | |
6829 | /> | |
6830 | ||
6831 | <xsl:param | |
6832 | name="free Text" | |
6833 | /> | |
6834 | ||
6835 | <xsl:param | |
6836 | name="deSq uigglefy" | |
6837 | /> | |
6838 | ||
6839 | <xsl:eleme nt | |
6840 | name="span " | |
6841 | > | |
6842 | ||
6843 | <xsl:attri bute | |
6844 | name="onmo useover" | |
6845 | > | |
6846 | ||
6847 | <xsl:choos e> | |
6848 | ||
6849 | <xsl:when | |
6850 | test="$fre eText" | |
6851 | > | |
6852 | ||
6853 | <xsl:text> | |
6854 | DisplayTip (this,25,- 50,1) | |
6855 | </xsl:text > | |
6856 | ||
6857 | </xsl:when > | |
6858 | ||
6859 | <xsl:other wise> | |
6860 | ||
6861 | <xsl:text> | |
6862 | DisplayTip (this,25,- 50,0) | |
6863 | </xsl:text > | |
6864 | ||
6865 | </xsl:othe rwise> | |
6866 | ||
6867 | </xsl:choo se> | |
6868 | ||
6869 | </xsl:attr ibute> | |
6870 | ||
6871 | <xsl:choos e> | |
6872 | ||
6873 | <xsl:when | |
6874 | test="$dat a" | |
6875 | > | |
6876 | ||
6877 | <xsl:choos e> | |
6878 | ||
6879 | <xsl:when | |
6880 | test="$deS quigglefy" | |
6881 | > | |
6882 | ||
6883 | <xsl:call- template | |
6884 | name="repl aceSquiggl esWithBrea ks" | |
6885 | > | |
6886 | ||
6887 | <xsl:with- param | |
6888 | name="text " | |
6889 | select="$d ata" | |
6890 | /> | |
6891 | ||
6892 | </xsl:call -template> | |
6893 | ||
6894 | </xsl:when > | |
6895 | ||
6896 | <xsl:other wise> | |
6897 | ||
6898 | <xsl:value -of | |
6899 | select="$d ata" | |
6900 | /> | |
6901 | ||
6902 | </xsl:othe rwise> | |
6903 | ||
6904 | </xsl:choo se> | |
6905 | ||
6906 | </xsl:when > | |
6907 | ||
6908 | <xsl:other wise> | |
6909 | ||
6910 | <xsl:call- template | |
6911 | name="na" | |
6912 | /> | |
6913 | ||
6914 | </xsl:othe rwise> | |
6915 | ||
6916 | </xsl:choo se> | |
6917 | ||
6918 | </xsl:elem ent> | |
6919 | ||
6920 | </xsl:temp late> | |
6921 | ||
6922 | ||
6923 | <xsl:templ ate | |
6924 | name="repl aceSquiggl esWithBrea ks" | |
6925 | > | |
6926 | ||
6927 | <xsl:param | |
6928 | name="text " | |
6929 | /> | |
6930 | ||
6931 | <xsl:if | |
6932 | test="$tex t" | |
6933 | > | |
6934 | ||
6935 | <xsl:choos e> | |
6936 | ||
6937 | <xsl:when | |
6938 | test="cont ains($text ,'~')" | |
6939 | > | |
6940 | ||
6941 | <xsl:value -of | |
6942 | select="su bstring-be fore($text ,'~')" | |
6943 | /> | |
6944 | ||
6945 | <br/> | |
6946 | ||
6947 | <xsl:call- template | |
6948 | name="repl aceSquiggl esWithBrea ks" | |
6949 | > | |
6950 | ||
6951 | <xsl:with- param | |
6952 | name="text " | |
6953 | select="su bstring-af ter($text, '~')" | |
6954 | /> | |
6955 | ||
6956 | </xsl:call -template> | |
6957 | ||
6958 | </xsl:when > | |
6959 | ||
6960 | <xsl:other wise> | |
6961 | ||
6962 | <xsl:value -of | |
6963 | select="$t ext" | |
6964 | /> | |
6965 | ||
6966 | </xsl:othe rwise> | |
6967 | ||
6968 | </xsl:choo se> | |
6969 | ||
6970 | </xsl:if> | |
6971 | ||
6972 | </xsl:temp late> | |
6973 | ||
6974 | ||
6975 | <!-- Tit le --> | |
6976 | ||
6977 | <xsl:templ ate | |
6978 | match="n1: title" | |
6979 | > | |
6980 | ||
6981 | <xsl:varia ble | |
6982 | name="comp Found" | |
6983 | > | |
6984 | ||
6985 | <xsl:call- template | |
6986 | name="comp onentFound " | |
6987 | > | |
6988 | ||
6989 | <xsl:with- param | |
6990 | name="comp Section" | |
6991 | select=".. /." | |
6992 | /> | |
6993 | ||
6994 | </xsl:call -template> | |
6995 | ||
6996 | </xsl:vari able> | |
6997 | ||
6998 | <xsl:choos e> | |
6999 | ||
7000 | <xsl:when | |
7001 | test="stri ng-length( $compFound )>0" | |
7002 | > | |
7003 | ||
7004 | <h3> | |
7005 | ||
7006 | <span | |
7007 | style="fon t-weight:b old;line-h eight:40%" | |
7008 | > | |
7009 | ||
7010 | <a | |
7011 | name="{gen erate-id(. )}" | |
7012 | href="#toc " | |
7013 | > | |
7014 | ||
7015 | <xsl:value -of | |
7016 | select="." | |
7017 | /> | |
7018 | ||
7019 | </a> | |
7020 | ||
7021 | </span> | |
7022 | ||
7023 | </h3> | |
7024 | ||
7025 | </xsl:when > | |
7026 | ||
7027 | </xsl:choo se> | |
7028 | ||
7029 | </xsl:temp late> | |
7030 | ||
7031 | ||
7032 | <!-- Tex t --> | |
7033 | ||
7034 | <xsl:templ ate | |
7035 | match="n1: text" | |
7036 | > | |
7037 | ||
7038 | <xsl:apply -templates /> | |
7039 | ||
7040 | </xsl:temp late> | |
7041 | ||
7042 | ||
7043 | <!-- par agraph -- > | |
7044 | ||
7045 | <xsl:templ ate | |
7046 | match="n1: paragraph" | |
7047 | > | |
7048 | ||
7049 | <p> | |
7050 | ||
7051 | <xsl:apply -templates /> | |
7052 | ||
7053 | </p> | |
7054 | ||
7055 | </xsl:temp late> | |
7056 | ||
7057 | ||
7058 | <!-- C ontent w/ deleted te xt is hidd en --> | |
7059 | ||
7060 | <xsl:templ ate | |
7061 | match="n1: content[@r evised='de lete']" | |
7062 | /> | |
7063 | ||
7064 | ||
7065 | <!-- con tent --> | |
7066 | ||
7067 | <xsl:templ ate | |
7068 | match="n1: content" | |
7069 | > | |
7070 | ||
7071 | <xsl:apply -templates /> | |
7072 | ||
7073 | </xsl:temp late> | |
7074 | ||
7075 | ||
7076 | ||
7077 | <!-- lis t --> | |
7078 | ||
7079 | <xsl:templ ate | |
7080 | match="n1: list" | |
7081 | > | |
7082 | ||
7083 | <xsl:if | |
7084 | test="n1:c aption" | |
7085 | > | |
7086 | ||
7087 | <span | |
7088 | style="fon t-weight:b old; " | |
7089 | > | |
7090 | ||
7091 | <xsl:apply -templates | |
7092 | select="n1 :caption" | |
7093 | /> | |
7094 | ||
7095 | </span> | |
7096 | ||
7097 | </xsl:if> | |
7098 | ||
7099 | <ul> | |
7100 | ||
7101 | <xsl:for-e ach | |
7102 | select="n1 :item" | |
7103 | > | |
7104 | ||
7105 | <li> | |
7106 | ||
7107 | <xsl:apply -templates /> | |
7108 | ||
7109 | </li> | |
7110 | ||
7111 | </xsl:for- each> | |
7112 | ||
7113 | </ul> | |
7114 | ||
7115 | </xsl:temp late> | |
7116 | ||
7117 | ||
7118 | <xsl:templ ate | |
7119 | match="n1: list[@list Type='orde red']" | |
7120 | > | |
7121 | ||
7122 | <xsl:if | |
7123 | test="n1:c aption" | |
7124 | > | |
7125 | ||
7126 | <span | |
7127 | style="fon t-weight:b old; " | |
7128 | > | |
7129 | ||
7130 | <xsl:apply -templates | |
7131 | select="n1 :caption" | |
7132 | /> | |
7133 | ||
7134 | </span> | |
7135 | ||
7136 | </xsl:if> | |
7137 | ||
7138 | <ol> | |
7139 | ||
7140 | <xsl:for-e ach | |
7141 | select="n1 :item" | |
7142 | > | |
7143 | ||
7144 | <li> | |
7145 | ||
7146 | <xsl:apply -templates /> | |
7147 | ||
7148 | </li> | |
7149 | ||
7150 | </xsl:for- each> | |
7151 | ||
7152 | </ol> | |
7153 | ||
7154 | </xsl:temp late> | |
7155 | ||
7156 | ||
7157 | ||
7158 | <!-- cap tion --> | |
7159 | ||
7160 | <xsl:templ ate | |
7161 | match="n1: caption" | |
7162 | > | |
7163 | ||
7164 | <xsl:apply -templates /> | |
7165 | ||
7166 | <xsl:text> | |
7167 | : | |
7168 | </xsl:text > | |
7169 | ||
7170 | </xsl:temp late> | |
7171 | ||
7172 | ||
7173 | <!-- Tables - -> | |
7174 | ||
7175 | <xsl:templ ate | |
7176 | match="n1: table/@*|n 1:thead/@* |n1:tfoot/ @*|n1:tbod y/@*|n1:co lgroup/@*| n1:col/@*| n1:tr/@*|n 1:th/@*|n1 :td/@*" | |
7177 | > | |
7178 | ||
7179 | <xsl:copy> | |
7180 | ||
7181 | ||
7182 | <xsl:copy- of | |
7183 | select="@* " | |
7184 | /> | |
7185 | ||
7186 | <xsl:apply -templates /> | |
7187 | ||
7188 | </xsl:copy > | |
7189 | ||
7190 | </xsl:temp late> | |
7191 | ||
7192 | ||
7193 | <xsl:templ ate | |
7194 | match="n1: table" | |
7195 | > | |
7196 | ||
7197 | <table> | |
7198 | ||
7199 | ||
7200 | <xsl:copy- of | |
7201 | select="@* " | |
7202 | /> | |
7203 | ||
7204 | <xsl:apply -templates /> | |
7205 | ||
7206 | </table> | |
7207 | ||
7208 | </xsl:temp late> | |
7209 | ||
7210 | ||
7211 | <xsl:templ ate | |
7212 | match="n1: thead" | |
7213 | > | |
7214 | ||
7215 | <thead> | |
7216 | ||
7217 | ||
7218 | <xsl:copy- of | |
7219 | select="@* " | |
7220 | /> | |
7221 | ||
7222 | <xsl:apply -templates /> | |
7223 | ||
7224 | </thead> | |
7225 | ||
7226 | </xsl:temp late> | |
7227 | ||
7228 | ||
7229 | <xsl:templ ate | |
7230 | match="n1: tfoot" | |
7231 | > | |
7232 | ||
7233 | <tfoot> | |
7234 | ||
7235 | ||
7236 | <xsl:copy- of | |
7237 | select="@* " | |
7238 | /> | |
7239 | ||
7240 | <xsl:apply -templates /> | |
7241 | ||
7242 | </tfoot> | |
7243 | ||
7244 | </xsl:temp late> | |
7245 | ||
7246 | ||
7247 | <xsl:templ ate | |
7248 | match="n1: tbody" | |
7249 | > | |
7250 | ||
7251 | <tbody> | |
7252 | ||
7253 | ||
7254 | <xsl:copy- of | |
7255 | select="@* " | |
7256 | /> | |
7257 | ||
7258 | <xsl:apply -templates /> | |
7259 | ||
7260 | </tbody> | |
7261 | ||
7262 | </xsl:temp late> | |
7263 | ||
7264 | ||
7265 | <xsl:templ ate | |
7266 | match="n1: colgroup" | |
7267 | > | |
7268 | ||
7269 | <colgroup> | |
7270 | ||
7271 | ||
7272 | <xsl:copy- of | |
7273 | select="@* " | |
7274 | /> | |
7275 | ||
7276 | <xsl:apply -templates /> | |
7277 | ||
7278 | </colgroup > | |
7279 | ||
7280 | </xsl:temp late> | |
7281 | ||
7282 | ||
7283 | <xsl:templ ate | |
7284 | match="n1: col" | |
7285 | > | |
7286 | ||
7287 | <col> | |
7288 | ||
7289 | ||
7290 | <xsl:copy- of | |
7291 | select="@* " | |
7292 | /> | |
7293 | ||
7294 | <xsl:apply -templates /> | |
7295 | ||
7296 | </col> | |
7297 | ||
7298 | </xsl:temp late> | |
7299 | ||
7300 | ||
7301 | <xsl:templ ate | |
7302 | match="n1: tr" | |
7303 | > | |
7304 | ||
7305 | <tr> | |
7306 | ||
7307 | ||
7308 | <xsl:copy- of | |
7309 | select="@* " | |
7310 | /> | |
7311 | ||
7312 | <xsl:apply -templates /> | |
7313 | ||
7314 | </tr> | |
7315 | ||
7316 | </xsl:temp late> | |
7317 | ||
7318 | ||
7319 | <xsl:templ ate | |
7320 | match="n1: th" | |
7321 | > | |
7322 | ||
7323 | <th> | |
7324 | ||
7325 | <xsl:copy- of | |
7326 | select="@* " | |
7327 | /> | |
7328 | ||
7329 | <xsl:apply -templates /> | |
7330 | ||
7331 | </th> | |
7332 | ||
7333 | </xsl:temp late> | |
7334 | ||
7335 | ||
7336 | <xsl:templ ate | |
7337 | match="n1: td" | |
7338 | > | |
7339 | ||
7340 | <td> | |
7341 | ||
7342 | <xsl:copy- of | |
7343 | select="@* " | |
7344 | /> | |
7345 | ||
7346 | <xsl:apply -templates /> | |
7347 | ||
7348 | </td> | |
7349 | ||
7350 | </xsl:temp late> | |
7351 | ||
7352 | ||
7353 | <xsl:templ ate | |
7354 | match="n1: table/n1:c aption" | |
7355 | > | |
7356 | ||
7357 | <span | |
7358 | style="fon t-weight:b old; " | |
7359 | > | |
7360 | ||
7361 | <xsl:apply -templates /> | |
7362 | ||
7363 | </span> | |
7364 | ||
7365 | </xsl:temp late> | |
7366 | ||
7367 | ||
7368 | <!-- Ren derMultiMe dia | |
7369 | ||
7370 | t his curren tly only h andles GIF 's and JPE G's. It c ould, howe ver, | |
7371 | b e extended by includ ing other image MIME types in the predic ate | |
7372 | a nd/or by g enerating <object> o r <applet> tag with the correc t | |
7373 | p arams depe nding on t he media t ype @ID =$imageRef refer encedObjec t | |
7374 | --> | |
7375 | ||
7376 | <xsl:templ ate | |
7377 | match="n1: renderMult iMedia" | |
7378 | > | |
7379 | ||
7380 | <xsl:varia ble | |
7381 | name="imag eRef" | |
7382 | select="@r eferencedO bject" | |
7383 | /> | |
7384 | ||
7385 | <xsl:choos e> | |
7386 | ||
7387 | <xsl:when | |
7388 | test="//n1 :regionOfI nterest[@I D=$imageRe f]" | |
7389 | > | |
7390 | ||
7391 | <!-- Here is where t he Region of Interes t image re ferencing goes --> | |
7392 | ||
7393 | <xsl:if | |
7394 | test='//n1 :regionOfI nterest[@I D=$imageRe f]//n1:obs ervationMe dia/n1:val ue[@mediaT ype="image /gif" or @ mediaType= "image/jpe g"]' | |
7395 | > | |
7396 | ||
7397 | <br | |
7398 | clear='all ' | |
7399 | /> | |
7400 | ||
7401 | <xsl:eleme nt | |
7402 | name='img' | |
7403 | > | |
7404 | ||
7405 | <xsl:attri bute | |
7406 | name='src' | |
7407 | > | |
7408 | ||
7409 | <xsl:value -of | |
7410 | select='// n1:regionO fInterest[ @ID=$image Ref]//n1:o bservation Media/n1:v alue/n1:re ference/@v alue' | |
7411 | /> | |
7412 | ||
7413 | </xsl:attr ibute> | |
7414 | ||
7415 | </xsl:elem ent> | |
7416 | ||
7417 | </xsl:if> | |
7418 | ||
7419 | </xsl:when > | |
7420 | ||
7421 | <xsl:other wise> | |
7422 | ||
7423 | <!-- Here is where t he direct MultiMedia image ref erencing g oes --> | |
7424 | ||
7425 | <xsl:if | |
7426 | test='//n1 :observati onMedia[@I D=$imageRe f]/n1:valu e[@mediaTy pe="image/ gif" or @m ediaType=" image/jpeg "]' | |
7427 | > | |
7428 | ||
7429 | <br | |
7430 | clear='all ' | |
7431 | /> | |
7432 | ||
7433 | <xsl:eleme nt | |
7434 | name='img' | |
7435 | > | |
7436 | ||
7437 | <xsl:attri bute | |
7438 | name='src' | |
7439 | > | |
7440 | ||
7441 | <xsl:value -of | |
7442 | select='// n1:observa tionMedia[ @ID=$image Ref]/n1:va lue/n1:ref erence/@va lue' | |
7443 | /> | |
7444 | ||
7445 | </xsl:attr ibute> | |
7446 | ||
7447 | </xsl:elem ent> | |
7448 | ||
7449 | </xsl:if> | |
7450 | ||
7451 | </xsl:othe rwise> | |
7452 | ||
7453 | </xsl:choo se> | |
7454 | ||
7455 | </xsl:temp late> | |
7456 | ||
7457 | ||
7458 | <!-- St ylecode pr ocessing | |
7459 | Supports B old, Under line and I talics dis play | |
7460 | ||
7461 | --> | |
7462 | ||
7463 | ||
7464 | <xsl:templ ate | |
7465 | match="//n 1:*[@style Code]" | |
7466 | > | |
7467 | ||
7468 | ||
7469 | <xsl:if | |
7470 | test="@sty leCode='Bo ld'" | |
7471 | > | |
7472 | ||
7473 | <xsl:eleme nt | |
7474 | name='b' | |
7475 | > | |
7476 | ||
7477 | <xsl:apply -templates /> | |
7478 | ||
7479 | </xsl:elem ent> | |
7480 | ||
7481 | </xsl:if> | |
7482 | ||
7483 | ||
7484 | <xsl:if | |
7485 | test="@sty leCode='It alics'" | |
7486 | > | |
7487 | ||
7488 | <xsl:eleme nt | |
7489 | name='i' | |
7490 | > | |
7491 | ||
7492 | <xsl:apply -templates /> | |
7493 | ||
7494 | </xsl:elem ent> | |
7495 | ||
7496 | </xsl:if> | |
7497 | ||
7498 | ||
7499 | <xsl:if | |
7500 | test="@sty leCode='Un derline'" | |
7501 | > | |
7502 | ||
7503 | <xsl:eleme nt | |
7504 | name='u' | |
7505 | > | |
7506 | ||
7507 | <xsl:apply -templates /> | |
7508 | ||
7509 | </xsl:elem ent> | |
7510 | ||
7511 | </xsl:if> | |
7512 | ||
7513 | ||
7514 | <xsl:if | |
7515 | test="cont ains(@styl eCode,'Bol d') and co ntains(@st yleCode,'I talics') a nd not (co ntains(@st yleCode, ' Underline' ))" | |
7516 | > | |
7517 | ||
7518 | <xsl:eleme nt | |
7519 | name='b' | |
7520 | > | |
7521 | ||
7522 | <xsl:eleme nt | |
7523 | name='i' | |
7524 | > | |
7525 | ||
7526 | <xsl:apply -templates /> | |
7527 | ||
7528 | </xsl:elem ent> | |
7529 | ||
7530 | </xsl:elem ent> | |
7531 | ||
7532 | </xsl:if> | |
7533 | ||
7534 | ||
7535 | <xsl:if | |
7536 | test="cont ains(@styl eCode,'Bol d') and co ntains(@st yleCode,'U nderline') and not ( contains(@ styleCode, 'Italics' ))" | |
7537 | > | |
7538 | ||
7539 | <xsl:eleme nt | |
7540 | name='b' | |
7541 | > | |
7542 | ||
7543 | <xsl:eleme nt | |
7544 | name='u' | |
7545 | > | |
7546 | ||
7547 | <xsl:apply -templates /> | |
7548 | ||
7549 | </xsl:elem ent> | |
7550 | ||
7551 | </xsl:elem ent> | |
7552 | ||
7553 | </xsl:if> | |
7554 | ||
7555 | ||
7556 | <xsl:if | |
7557 | test="cont ains(@styl eCode,'Ita lics') and contains( @styleCode ,'Underlin e') and no t (contain s(@styleCo de, 'Bold' ))" | |
7558 | > | |
7559 | ||
7560 | <xsl:eleme nt | |
7561 | name='i' | |
7562 | > | |
7563 | ||
7564 | <xsl:eleme nt | |
7565 | name='u' | |
7566 | > | |
7567 | ||
7568 | <xsl:apply -templates /> | |
7569 | ||
7570 | </xsl:elem ent> | |
7571 | ||
7572 | </xsl:elem ent> | |
7573 | ||
7574 | </xsl:if> | |
7575 | ||
7576 | ||
7577 | <xsl:if | |
7578 | test="cont ains(@styl eCode,'Ita lics') and contains( @styleCode ,'Underlin e') and co ntains(@st yleCode, ' Bold')" | |
7579 | > | |
7580 | ||
7581 | <xsl:eleme nt | |
7582 | name='b' | |
7583 | > | |
7584 | ||
7585 | <xsl:eleme nt | |
7586 | name='i' | |
7587 | > | |
7588 | ||
7589 | <xsl:eleme nt | |
7590 | name='u' | |
7591 | > | |
7592 | ||
7593 | <xsl:apply -templates /> | |
7594 | ||
7595 | </xsl:elem ent> | |
7596 | ||
7597 | </xsl:elem ent> | |
7598 | ||
7599 | </xsl:elem ent> | |
7600 | ||
7601 | </xsl:if> | |
7602 | ||
7603 | ||
7604 | </xsl:temp late> | |
7605 | ||
7606 | ||
7607 | <!-- Su perscript or Subscri pt --> | |
7608 | ||
7609 | <xsl:templ ate | |
7610 | match="n1: sup" | |
7611 | > | |
7612 | ||
7613 | <xsl:eleme nt | |
7614 | name='sup' | |
7615 | > | |
7616 | ||
7617 | <xsl:apply -templates /> | |
7618 | ||
7619 | </xsl:elem ent> | |
7620 | ||
7621 | </xsl:temp late> | |
7622 | ||
7623 | <xsl:templ ate | |
7624 | match="n1: sub" | |
7625 | > | |
7626 | ||
7627 | <xsl:eleme nt | |
7628 | name='sub' | |
7629 | > | |
7630 | ||
7631 | <xsl:apply -templates /> | |
7632 | ||
7633 | </xsl:elem ent> | |
7634 | ||
7635 | </xsl:temp late> | |
7636 | ||
7637 | ||
7638 | <!-- Bott omline -- > | |
7639 | ||
7640 | ||
7641 | <xsl:templ ate | |
7642 | name="disp layBottomL ine" | |
7643 | > | |
7644 | ||
7645 | <p> | |
7646 | ||
7647 | <xsl:varia ble | |
7648 | name="foun d" | |
7649 | /> | |
7650 | ||
7651 | <xsl:call- template | |
7652 | name="getN ame" | |
7653 | > | |
7654 | ||
7655 | <xsl:with- param | |
7656 | name="name " | |
7657 | select="n1 :legalAuth enticator/ n1:assigne dEntity/n1 :represent edOrganiza tion/n1:na me" | |
7658 | /> | |
7659 | ||
7660 | </xsl:call -template> | |
7661 | ||
7662 | <xsl:choos e> | |
7663 | ||
7664 | <xsl:when | |
7665 | test="$fou nd" | |
7666 | > | |
7667 | ||
7668 | <b> | |
7669 | ||
7670 | <xsl:text> | |
7671 | Electronic ally gener ated by: | |
7672 | </xsl:text > | |
7673 | ||
7674 | <xsl:value -of | |
7675 | select="$f ound" | |
7676 | /> | |
7677 | ||
7678 | </b> | |
7679 | ||
7680 | </xsl:when > | |
7681 | ||
7682 | <xsl:other wise> | |
7683 | ||
7684 | <b> | |
7685 | ||
7686 | <xsl:text | |
7687 | disable-ou tput-escap ing="yes" | |
7688 | > | |
7689 | Electronic ally gener ated on:&a mp;nbsp; | |
7690 | </xsl:text > | |
7691 | ||
7692 | <xsl:value -of | |
7693 | select="$f ound" | |
7694 | /> | |
7695 | ||
7696 | </b> | |
7697 | ||
7698 | </xsl:othe rwise> | |
7699 | ||
7700 | </xsl:choo se> | |
7701 | ||
7702 | <xsl:choos e> | |
7703 | ||
7704 | <xsl:when | |
7705 | test="stri ng-length( n1:effecti veTime/@va lue)=0" | |
7706 | > | |
7707 | ||
7708 | <xsl:call- template | |
7709 | name="na" | |
7710 | /> | |
7711 | ||
7712 | </xsl:when > | |
7713 | ||
7714 | <xsl:when | |
7715 | test="star ts-with(n1 :effective Time/@valu e,' ')" | |
7716 | > | |
7717 | ||
7718 | <xsl:call- template | |
7719 | name="na" | |
7720 | /> | |
7721 | ||
7722 | </xsl:when > | |
7723 | ||
7724 | <xsl:other wise> | |
7725 | ||
7726 | <xsl:varia ble | |
7727 | name="date Found" | |
7728 | /> | |
7729 | ||
7730 | <xsl:call- template | |
7731 | name="form atDateLong " | |
7732 | > | |
7733 | ||
7734 | <xsl:with- param | |
7735 | name="date String" | |
7736 | select="n1 :effective Time/@valu e" | |
7737 | /> | |
7738 | ||
7739 | </xsl:call -template> | |
7740 | ||
7741 | <xsl:if | |
7742 | test="($da teFound) a nd not ($f ound)" | |
7743 | > | |
7744 | ||
7745 | <xsl:text | |
7746 | disable-ou tput-escap ing="yes" | |
7747 | > | |
7748 | &nbsp; on&nbs p; | |
7749 | </xsl:text > | |
7750 | ||
7751 | <xsl:value -of | |
7752 | select="$d ateFound" | |
7753 | /> | |
7754 | ||
7755 | </xsl:if> | |
7756 | ||
7757 | <xsl:if | |
7758 | test="($da teFound) a nd ($found )" | |
7759 | > | |
7760 | ||
7761 | <xsl:value -of | |
7762 | select="$d ateFound" | |
7763 | /> | |
7764 | ||
7765 | </xsl:if> | |
7766 | ||
7767 | </xsl:othe rwise> | |
7768 | ||
7769 | </xsl:choo se> | |
7770 | ||
7771 | </p> | |
7772 | ||
7773 | <div | |
7774 | id="TipBox " | |
7775 | 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;" | |
7776 | > | |
7777 | ||
7778 | <xsl:text | |
7779 | disable-ou tput-escap ing="yes" | |
7780 | > | |
7781 | &nbsp; | |
7782 | </xsl:text > | |
7783 | ||
7784 | </div> | |
7785 | ||
7786 | </xsl:temp late> | |
7787 | ||
7788 | ||
7789 | <xsl:templ ate | |
7790 | match="n1: component/ n1:section [n1:templa teId/@root ='2.16.840 .1.113883. 10.20.1.11 ']/n1:text /n1:table/ n1:tbody" | |
7791 | > | |
7792 | ||
7793 | <xsl:apply -templates > | |
7794 | ||
7795 | <xsl:sort | |
7796 | select="n1 :td[3]" | |
7797 | order="des cending" | |
7798 | /> | |
7799 | ||
7800 | </xsl:appl y-template s> | |
7801 | ||
7802 | </xsl:temp late> | |
7803 | ||
7804 | ||
7805 | <xsl:templ ate | |
7806 | match="n1: component/ n1:section [n1:templa teId/@root ='2.16.840 .1.113883. 10.20.1.8' ]/n1:text/ n1:table/n 1:tbody" | |
7807 | > | |
7808 | ||
7809 | <xsl:apply -templates > | |
7810 | ||
7811 | <xsl:sort | |
7812 | select="n1 :td[5]" | |
7813 | order="des cending" | |
7814 | /> | |
7815 | ||
7816 | </xsl:appl y-template s> | |
7817 | ||
7818 | </xsl:temp late> | |
7819 | ||
7820 | ||
7821 | <xsl:templ ate | |
7822 | match="n1: component/ n1:section [n1:templa teId/@root ='2.16.840 .1.113883. 10.20.1.16 ' or n1:te mplateId/@ root='2.16 .840.1.113 883.10.20. 1.14' or n 1:template Id/@root=' 2.16.840.1 .113883.10 .20.1.6' o r n1:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.1.3 ']/n1:text /n1:table/ n1:tbody" | |
7823 | > | |
7824 | ||
7825 | <xsl:apply -templates > | |
7826 | ||
7827 | <xsl:sort | |
7828 | select="n1 :td[2]" | |
7829 | order="des cending" | |
7830 | /> | |
7831 | ||
7832 | </xsl:appl y-template s> | |
7833 | ||
7834 | </xsl:temp late> | |
7835 | ||
7836 | ||
7837 | <xsl:templ ate | |
7838 | match="n1: component/ n1:section [n1:templa teId/@root ='2.16.840 .1.113883. 10.20.1.11 ']/n1:text /n1:table/ n1:tbody/n 1:tr/n1:td [3]" | |
7839 | > | |
7840 | ||
7841 | <td> | |
7842 | ||
7843 | <xsl:call- template | |
7844 | name="form atDateShor t" | |
7845 | > | |
7846 | ||
7847 | <xsl:with- param | |
7848 | name="date String" | |
7849 | ||
7850 | select="te xt()" | |
7851 | /> | |
7852 | ||
7853 | </xsl:call -template> | |
7854 | ||
7855 | </td> | |
7856 | ||
7857 | </xsl:temp late> | |
7858 | ||
7859 | ||
7860 | <xsl:templ ate | |
7861 | match="n1: component/ n1:section [n1:templa teId/@root ='2.16.840 .1.113883. 10.20.1.8' ]/n1:text/ n1:table/n 1:tbody/n1 :tr/n1:td[ 5]" | |
7862 | > | |
7863 | ||
7864 | <td> | |
7865 | ||
7866 | <xsl:call- template | |
7867 | name="form atDateShor t" | |
7868 | > | |
7869 | ||
7870 | <xsl:with- param | |
7871 | name="date String" | |
7872 | ||
7873 | select="te xt()" | |
7874 | /> | |
7875 | ||
7876 | </xsl:call -template> | |
7877 | ||
7878 | </td> | |
7879 | ||
7880 | </xsl:temp late> | |
7881 | ||
7882 | ||
7883 | <xsl:templ ate | |
7884 | 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]" | |
7885 | > | |
7886 | ||
7887 | <td> | |
7888 | ||
7889 | <xsl:call- template | |
7890 | name="form atDateShor t" | |
7891 | > | |
7892 | ||
7893 | <xsl:with- param | |
7894 | name="date String" | |
7895 | ||
7896 | select="co ncat(subst ring(text( ),1,4),sub string(tex t(),6,2),s ubstring(t ext(),9,2) )" | |
7897 | /> | |
7898 | ||
7899 | </xsl:call -template> | |
7900 | ||
7901 | </td> | |
7902 | ||
7903 | </xsl:temp late> | |
7904 | ||
7905 | ||
7906 | <xsl:templ ate | |
7907 | name="na" | |
7908 | > | |
7909 | ||
7910 | <span | |
7911 | title="Not Available " | |
7912 | > | |
7913 | ||
7914 | <xsl:text> | |
7915 | -- | |
7916 | </xsl:text > | |
7917 | ||
7918 | </span> | |
7919 | ||
7920 | </xsl:temp late> | |
7921 | ||
7922 | ||
7923 | <!-- free text proce ssing --> | |
7924 | ||
7925 | ||
7926 | <xsl:templ ate | |
7927 | name="free Text" | |
7928 | > | |
7929 | ||
7930 | <xsl:param | |
7931 | name="text " | |
7932 | /> | |
7933 | ||
7934 | ||
7935 | </xsl:temp late> | |
7936 | ||
7937 | ||
7938 | <xsl:templ ate | |
7939 | name="disp lay1LineBr eak" | |
7940 | > | |
7941 | ||
7942 | <br/> | |
7943 | ||
7944 | </xsl:temp late> | |
7945 | ||
7946 | ||
7947 | <xsl:templ ate | |
7948 | name="disp layVitalsM ultiSepara tor" | |
7949 | > | |
7950 | ||
7951 | <xsl:call- template | |
7952 | name="disp lay1LineBr eak" | |
7953 | /> | |
7954 | ||
7955 | </xsl:temp late> | |
7956 | ||
7957 | ||
7958 | <xsl:templ ate | |
7959 | name="disp layVitalRo w" | |
7960 | > | |
7961 | ||
7962 | <xsl:param | |
7963 | name="row" | |
7964 | /> | |
7965 | ||
7966 | <tr | |
7967 | class="sec ond" | |
7968 | > | |
7969 | ||
7970 | <xsl:call- template | |
7971 | name="disp layVitalIt ems" | |
7972 | > | |
7973 | ||
7974 | <xsl:with- param | |
7975 | name="row" | |
7976 | select="$r ow" | |
7977 | /> | |
7978 | ||
7979 | </xsl:call -template> | |
7980 | ||
7981 | </tr> | |
7982 | ||
7983 | </xsl:temp late> | |
7984 | ||
7985 | ||
7986 | <xsl:templ ate | |
7987 | name="disp layVitalsD ateItem" | |
7988 | > | |
7989 | ||
7990 | <xsl:param | |
7991 | name="rowD ata" | |
7992 | /> | |
7993 | ||
7994 | <td> | |
7995 | ||
7996 | <div | |
7997 | style="ove rflow:hidd en; white- space:nowr ap; width: 80px;" | |
7998 | > | |
7999 | ||
8000 | <xsl:call- template | |
8001 | name="disp layVitalsD ate" | |
8002 | > | |
8003 | ||
8004 | <xsl:with- param | |
8005 | name="rowD ata" | |
8006 | select="$r owData" | |
8007 | /> | |
8008 | ||
8009 | </xsl:call -template> | |
8010 | ||
8011 | </div> | |
8012 | ||
8013 | </td> | |
8014 | ||
8015 | </xsl:temp late> | |
8016 | ||
8017 | ||
8018 | <xsl:templ ate | |
8019 | name="disp layVitalsT empItem" | |
8020 | > | |
8021 | ||
8022 | <xsl:param | |
8023 | name="temp " | |
8024 | /> | |
8025 | ||
8026 | <td> | |
8027 | ||
8028 | <div | |
8029 | style="ove rflow:hidd en; white- space:nowr ap; width: 70px;" | |
8030 | > | |
8031 | ||
8032 | <xsl:call- template | |
8033 | name="disp layVitalsT emp" | |
8034 | > | |
8035 | ||
8036 | <xsl:with- param | |
8037 | name="temp " | |
8038 | select="$t emp" | |
8039 | /> | |
8040 | ||
8041 | </xsl:call -template> | |
8042 | ||
8043 | </div> | |
8044 | ||
8045 | </td> | |
8046 | ||
8047 | </xsl:temp late> | |
8048 | ||
8049 | ||
8050 | <xsl:templ ate | |
8051 | name="disp layVitalsS ourceItem" | |
8052 | > | |
8053 | ||
8054 | <xsl:param | |
8055 | name="row" | |
8056 | /> | |
8057 | ||
8058 | <td> | |
8059 | ||
8060 | <div | |
8061 | style="ove rflow:hidd en; white- space:nowr ap; width: 150px;" | |
8062 | > | |
8063 | ||
8064 | <xsl:call- template | |
8065 | name="disp layVitalsS ource" | |
8066 | > | |
8067 | ||
8068 | <xsl:with- param | |
8069 | name="row" | |
8070 | select="$r ow" | |
8071 | /> | |
8072 | ||
8073 | </xsl:call -template> | |
8074 | ||
8075 | </div> | |
8076 | ||
8077 | </td> | |
8078 | ||
8079 | </xsl:temp late> | |
8080 | ||
8081 | ||
8082 | <xsl:templ ate | |
8083 | name="disp layVitalsP oxItem" | |
8084 | > | |
8085 | ||
8086 | <xsl:param | |
8087 | name="pox" | |
8088 | /> | |
8089 | ||
8090 | <td> | |
8091 | ||
8092 | <div | |
8093 | style="ove rflow:hidd en; white- space:nowr ap; width: 70px;" | |
8094 | > | |
8095 | ||
8096 | <xsl:call- template | |
8097 | name="disp layVitalsP ox" | |
8098 | > | |
8099 | ||
8100 | <xsl:with- param | |
8101 | name="pox" | |
8102 | select="$p ox" | |
8103 | /> | |
8104 | ||
8105 | </xsl:call -template> | |
8106 | ||
8107 | </div> | |
8108 | ||
8109 | </td> | |
8110 | ||
8111 | </xsl:temp late> | |
8112 | ||
8113 | ||
8114 | <xsl:templ ate | |
8115 | name="disp layVitalsW eightItem" | |
8116 | > | |
8117 | ||
8118 | <xsl:param | |
8119 | name="weig ht" | |
8120 | /> | |
8121 | ||
8122 | <td> | |
8123 | ||
8124 | <div | |
8125 | style="ove rflow:hidd en; white- space:nowr ap; width: 70px;" | |
8126 | > | |
8127 | ||
8128 | <xsl:call- template | |
8129 | name="disp layVitalsW eight" | |
8130 | > | |
8131 | ||
8132 | <xsl:with- param | |
8133 | name="weig ht" | |
8134 | select="$w eight" | |
8135 | /> | |
8136 | ||
8137 | </xsl:call -template> | |
8138 | ||
8139 | </div> | |
8140 | ||
8141 | </td> | |
8142 | ||
8143 | </xsl:temp late> | |
8144 | ||
8145 | ||
8146 | <xsl:templ ate | |
8147 | name="disp layVitalsH eightItem" | |
8148 | > | |
8149 | ||
8150 | <xsl:param | |
8151 | name="heig ht" | |
8152 | /> | |
8153 | ||
8154 | <td> | |
8155 | ||
8156 | <div | |
8157 | style="ove rflow:hidd en; white- space:nowr ap; width: 70px;" | |
8158 | > | |
8159 | ||
8160 | <xsl:call- template | |
8161 | name="disp layVitalsH eight" | |
8162 | > | |
8163 | ||
8164 | <xsl:with- param | |
8165 | name="heig ht" | |
8166 | select="$h eight" | |
8167 | /> | |
8168 | ||
8169 | </xsl:call -template> | |
8170 | ||
8171 | </div> | |
8172 | ||
8173 | </td> | |
8174 | ||
8175 | </xsl:temp late> | |
8176 | ||
8177 | ||
8178 | <xsl:templ ate | |
8179 | name="disp layVitalsB pItem" | |
8180 | > | |
8181 | ||
8182 | <xsl:param | |
8183 | name="row" | |
8184 | /> | |
8185 | ||
8186 | <td> | |
8187 | ||
8188 | <div | |
8189 | style="ove rflow:hidd en; white- space:nowr ap; width: 70px;" | |
8190 | > | |
8191 | ||
8192 | <xsl:call- template | |
8193 | name="disp layVitalsB p" | |
8194 | > | |
8195 | ||
8196 | <xsl:with- param | |
8197 | name="row" | |
8198 | select="$r ow" | |
8199 | /> | |
8200 | ||
8201 | </xsl:call -template> | |
8202 | ||
8203 | </div> | |
8204 | ||
8205 | </td> | |
8206 | ||
8207 | </xsl:temp late> | |
8208 | ||
8209 | ||
8210 | <xsl:templ ate | |
8211 | name="disp layVitalsR espItem" | |
8212 | > | |
8213 | ||
8214 | <xsl:param | |
8215 | name="resp " | |
8216 | /> | |
8217 | ||
8218 | <td> | |
8219 | ||
8220 | <div | |
8221 | style="ove rflow:hidd en; white- space:nowr ap; width: 70px;" | |
8222 | > | |
8223 | ||
8224 | <xsl:call- template | |
8225 | name="disp layVitalsR esp" | |
8226 | > | |
8227 | ||
8228 | <xsl:with- param | |
8229 | name="resp " | |
8230 | select="$r esp" | |
8231 | /> | |
8232 | ||
8233 | </xsl:call -template> | |
8234 | ||
8235 | </div> | |
8236 | ||
8237 | </td> | |
8238 | ||
8239 | </xsl:temp late> | |
8240 | ||
8241 | ||
8242 | <xsl:templ ate | |
8243 | name="disp layVitalsP ulseItem" | |
8244 | > | |
8245 | ||
8246 | <xsl:param | |
8247 | name="puls e" | |
8248 | /> | |
8249 | ||
8250 | <td> | |
8251 | ||
8252 | <div | |
8253 | style="ove rflow:hidd en; white- space:nowr ap; width: 70px;" | |
8254 | > | |
8255 | ||
8256 | <xsl:call- template | |
8257 | name="disp layVitalsP ulse" | |
8258 | > | |
8259 | ||
8260 | <xsl:with- param | |
8261 | name="puls e" | |
8262 | select="$p ulse" | |
8263 | /> | |
8264 | ||
8265 | </xsl:call -template> | |
8266 | ||
8267 | </div> | |
8268 | ||
8269 | </td> | |
8270 | ||
8271 | </xsl:temp late> | |
8272 | ||
8273 | ||
8274 | <xsl:templ ate | |
8275 | name="getW eightResul t" | |
8276 | > | |
8277 | ||
8278 | <xsl:param | |
8279 | name="wt" | |
8280 | /> | |
8281 | ||
8282 | <xsl:for-e ach | |
8283 | select="$w t" | |
8284 | > | |
8285 | ||
8286 | <xsl:if | |
8287 | test="posi tion()>1" | |
8288 | > | |
8289 | ||
8290 | <br/> | |
8291 | ||
8292 | </xsl:if> | |
8293 | ||
8294 | <xsl:choos e> | |
8295 | ||
8296 | <xsl:when | |
8297 | test="stri ng-length( n1:value/@ value)>1" | |
8298 | > | |
8299 | ||
8300 | <xsl:varia ble | |
8301 | name="weig htResult" | |
8302 | select="n1 :value/@va lue" | |
8303 | /> | |
8304 | ||
8305 | <xsl:choos e> | |
8306 | ||
8307 | <xsl:when | |
8308 | test="n1:v alue/@unit " | |
8309 | > | |
8310 | ||
8311 | <xsl:call- template | |
8312 | name="flyo verSpan" | |
8313 | > | |
8314 | ||
8315 | <xsl:with- param | |
8316 | name="data " | |
8317 | select="co ncat($weig htResult,n 1:value/@u nit)" | |
8318 | /> | |
8319 | ||
8320 | </xsl:call -template> | |
8321 | ||
8322 | </xsl:when > | |
8323 | ||
8324 | <xsl:other wise> | |
8325 | ||
8326 | <xsl:call- template | |
8327 | name="flyo verSpan" | |
8328 | > | |
8329 | ||
8330 | <xsl:with- param | |
8331 | name="data " | |
8332 | select="$w eightResul t" | |
8333 | /> | |
8334 | ||
8335 | </xsl:call -template> | |
8336 | ||
8337 | </xsl:othe rwise> | |
8338 | ||
8339 | </xsl:choo se> | |
8340 | ||
8341 | </xsl:when > | |
8342 | ||
8343 | <xsl:other wise> | |
8344 | ||
8345 | <xsl:call- template | |
8346 | name="na" | |
8347 | /> | |
8348 | ||
8349 | </xsl:othe rwise> | |
8350 | ||
8351 | </xsl:choo se> | |
8352 | ||
8353 | </xsl:for- each> | |
8354 | ||
8355 | ||
8356 | </xsl:temp late> | |
8357 | ||
8358 | </xsl:styl esheet> |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.