299. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 4/5/2017 4:22:10 PM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

299.1 Files compared

# Location File Last Modified
1 C:\working_scrub\Unredacted\eHX Code Base\eHX_Bld2_Source Code_CIF_2017-02-14\NHIN_adapter\SpecProcessor\src\test\resources\OldStyleSheets\nhin cda2clipboard.xsl Fri Feb 10 15:41:44 2017 UTC
2 eHX-CIF.zip\eHX-CIF\eHX Code Base\eHX_Bld2_Source Code_CIF_2017-02-14\NHIN_adapter\SpecProcessor\src\test\resources\OldStyleSheets\nhin cda2clipboard.xsl Mon Apr 3 14:39:51 2017 UTC

299.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 7 9552
Changed 6 12
Inserted 0 0
Removed 0 0

299.3 Comparison options

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

299.4 Active regular expressions

No regular expressions were active.

299.5 Comparison detail

  1   <?xml 
  2     version="1 .0" 
  3     encoding=" utf-8"
  4   ?>
  5   <xsl:style sheet 
  6     version="1 .0"
  7           
  8     xmlns:xsl= "http://ww w.w3.org/1 999/XSL/Tr ansform"
  9           
  10     xmlns:n3=" http://www .w3.org/19 99/xhtml"
  11           
  12     xmlns:n1=" urn:hl7-or g:v3"
  13           
  14     xmlns:n2=" urn:hl7-or g:v3/meta/ voc"
  15           
  16     xmlns:voc= "urn:hl7-o rg:v3/voc"
  17           
  18     xmlns:xsi= "http://ww w.w3.org/2 001/XMLSch ema-instan ce"
  19           
  20     xmlns:sect ion="urn:g ov.va.med"
  21           
  22     xmlns:msxs l="urn:sch emas-micro soft-com:x slt"
  23   >
  24    
  25             
  26     <xsl:impor
  27      href="cda2 detailComm on.xslt"
  28     />
  29             
  30     <xsl:impor
  31      href="deta ilCommon.x sl"
  32     />
  33             
  34     <xsl:impor
  35      href="../c ommon.xsl"
  36     />
  37             
  38     <xsl:outpu
  39      method="te xt"
  40     />
  41    
  42             
  43     <xsl:templ ate 
  44      name="disp laySource"
  45     >
  46                       
  47      <xsl:call- template 
  48       name="docu mentTitle"
  49      >
  50                                 
  51       <xsl:with- param 
  52        name="root
  53        select="."
  54       />
  55                        
  56      </xsl:call -template>
  57     
  58                       
  59      <xsl:text>
  60       &#13;&#10;
  61      </xsl:text >
  62              
  63     </xsl:temp late>
  64    
  65             
  66     <xsl:templ ate 
  67      name="disp layTitle"
  68     >
  69                       
  70      <xsl:value -of 
  71       select="n1 :code/@dis playName"
  72      />
  73                       
  74      <xsl:text>
  75       &#13;&#10;
  76      </xsl:text >
  77                       
  78      <xsl:text>
  79       &#13;&#10;
  80      </xsl:text >
  81              
  82     </xsl:temp late>
  83    
  84             
  85     <xsl:templ ate 
  86      name="disp layReportD ates"
  87     >
  88                       
  89      <xsl:text>
  90       Created On
  91      </xsl:text >
  92                       
  93      <xsl:call- template 
  94       name="getC reatedOnDa te"
  95      />
  96                       
  97      <xsl:if 
  98       test="n1:d ocumentati onOf/n1:se rviceEvent /n1:perfor mer/n1:eff ectiveTime /n1:low/@v alue"
  99      >
  100                                 
  101       <xsl:text>
  102                
  103       </xsl:text >
  104                                 
  105       <xsl:text>
  106        Date Range
  107       </xsl:text >
  108      
  109                                 
  110       <xsl:choos e>
  111                                           
  112        <xsl:when 
  113         test="stri ng-length( n1:documen tationOf/n 1:serviceE vent/n1:pe rformer/n1 :effective Time/n1:lo w/@value)= 0"
  114        >
  115                                                    
  116         <xsl:call- template 
  117          name="na"
  118         />
  119                                            
  120        </xsl:when >
  121                                           
  122        <xsl:when 
  123         test="star ts-with(n1 :documenta tionOf/n1: serviceEve nt/n1:perf ormer/n1:e ffectiveTi me/n1:low/ @value,' ' )"
  124        >
  125                                                    
  126         <xsl:call- template 
  127          name="na"
  128         />
  129                                            
  130        </xsl:when >
  131                                           
  132        <xsl:other wise>
  133                                                    
  134         <xsl:call- template 
  135          name="form atDateLong "
  136         >
  137                                                              
  138          <xsl:with- param 
  139           name="date String" 
  140           select="n1 :documenta tionOf/n1: serviceEve nt/n1:perf ormer/n1:e ffectiveTi me/n1:low/ @value"
  141          />
  142                                                     
  143         </xsl:call -template>
  144                                            
  145        </xsl:othe rwise>
  146                                  
  147       </xsl:choo se>
  148      
  149                                 
  150       <xsl:text>
  151         - 
  152       </xsl:text >
  153      
  154                                 
  155       <xsl:choos e>
  156                                           
  157        <xsl:when 
  158         test="stri ng-length( n1:documen tationOf/n 1:serviceE vent/n1:pe rformer/n1 :effective Time/n1:hi gh/@value) =0"
  159        >
  160                                                    
  161         <xsl:call- template 
  162          name="na"
  163         />
  164                                            
  165        </xsl:when >
  166                                           
  167        <xsl:when 
  168         test="star ts-with(n1 :documenta tionOf/n1: serviceEve nt/n1:perf ormer/n1:e ffectiveTi me/n1:high /@value,'  ')"
  169        >
  170                                                    
  171         <xsl:call- template 
  172          name="na"
  173         />
  174                                            
  175        </xsl:when >
  176                                           
  177        <xsl:other wise>
  178                                                    
  179         <xsl:call- template 
  180          name="form atDateLong "
  181         >
  182                                                              
  183          <xsl:with- param 
  184           name="date String" 
  185           select="n1 :documenta tionOf/n1: serviceEve nt/n1:perf ormer/n1:e ffectiveTi me/n1:high /@value"
  186          />
  187                                                     
  188         </xsl:call -template>
  189                                            
  190        </xsl:othe rwise>
  191                                  
  192       </xsl:choo se>
  193                        
  194      </xsl:if>
  195              
  196     </xsl:temp late>
  197    
  198             
  199     <xsl:templ ate 
  200      name="disp layPatient Block"
  201     >
  202                       
  203      <xsl:varia ble 
  204       name="pati entRole" 
  205       select="n1 :recordTar get/n1:pat ientRole"
  206      />
  207     
  208                       
  209      <xsl:text>
  210       &#13;&#10;
  211      </xsl:text >
  212                       
  213      <xsl:text>
  214       Patient: 
  215      </xsl:text >
  216                       
  217      <xsl:call- template 
  218       name="getN ame"
  219      >
  220                                 
  221       <xsl:with- param 
  222        name="name
  223        select="$p atientRole /n1:patien t/n1:name"
  224       />
  225                        
  226      </xsl:call -template>
  227                       
  228      <xsl:if 
  229       test="$pat ientRole/n 1:addr"
  230      >
  231                                 
  232       <xsl:call- template 
  233        name="getA ddress"
  234       >
  235                                           
  236        <xsl:with- param 
  237         name="addr
  238         select="$p atientRole /n1:addr"
  239        />
  240                                  
  241       </xsl:call -template>
  242                        
  243      </xsl:if>
  244                       
  245      <xsl:choos e>
  246                                 
  247       <xsl:when 
  248        test="$pat ientRole/n 1:telecom/ @value"
  249       >
  250                                           
  251        <xsl:for-e ach 
  252         select="$p atientRole /n1:teleco m"
  253        >
  254                                                    
  255         <xsl:call- template 
  256          name="getT elecom"
  257         >
  258                                                              
  259          <xsl:with- param 
  260           name="tele com" 
  261           select="."
  262          />
  263                                                     
  264         </xsl:call -template>
  265                                            
  266        </xsl:for- each>
  267                                  
  268       </xsl:when >
  269                                 
  270       <xsl:other wise>
  271                                           
  272        <xsl:text>
  273         tel: PATIE NT PHONE M ISSING
  274        </xsl:text >
  275                                           
  276        <xsl:text>
  277         &#13;&#10;
  278        </xsl:text >
  279                                  
  280       </xsl:othe rwise>
  281                        
  282      </xsl:choo se>
  283     
  284                       
  285      <xsl:text>
  286       &#13;&#10;
  287      </xsl:text >
  288                       
  289      <xsl:text>
  290       Patient ID
  291      </xsl:text >
  292                       
  293      <xsl:if 
  294       test="stri ng-length( $patientRo le/n1:id/@ extension) >0"
  295      >
  296                                 
  297       <xsl:value -of 
  298        select="$p atientRole /n1:id/@ex tension"
  299       />
  300                        
  301      </xsl:if>
  302     
  303                       
  304      <xsl:text>
  305       &#13;&#10;
  306      </xsl:text >
  307                       
  308      <xsl:text>
  309       Birthdate:  
  310      </xsl:text >
  311                       
  312      <xsl:call- template 
  313       name="form atDateLong "
  314      >
  315                                 
  316       <xsl:with- param 
  317        name="date String" 
  318        select="n1 :recordTar get/n1:pat ientRole/n 1:patient/ n1:birthTi me/@value"
  319       />
  320                        
  321      </xsl:call -template>
  322     
  323                       
  324      <xsl:text>
  325       &#13;&#10;
  326      </xsl:text >
  327                       
  328      <xsl:text>
  329       Sex: 
  330      </xsl:text >
  331                       
  332      <xsl:call- template 
  333       name="getG enderStrin g"
  334      />
  335     
  336                       
  337      <xsl:varia ble 
  338       name="hasL anguages"
  339      >
  340                                 
  341       <xsl:call- template 
  342        name="isLa nguageFoun d"
  343       >
  344                                           
  345        <xsl:with- param 
  346         name="pati entRole" 
  347         select="$p atientRole "
  348        />
  349                                  
  350       </xsl:call -template>
  351                        
  352      </xsl:vari able>
  353                       
  354      <xsl:if 
  355       test="$has Languages"
  356      >
  357                                 
  358       <xsl:text>
  359        &#13;&#10;
  360       </xsl:text >
  361                                 
  362       <xsl:text>
  363        Language(s ): 
  364       </xsl:text >
  365                                 
  366       <xsl:text>
  367        &#13;&#10;
  368       </xsl:text >
  369                                 
  370       <xsl:call- template 
  371        name="disp layLanguag es"
  372       >
  373                                           
  374        <xsl:with- param 
  375         name="pati entRole" 
  376         select="$p atientRole "
  377        />
  378                                  
  379       </xsl:call -template>
  380                        
  381      </xsl:if>
  382     
  383                       
  384      <xsl:text>
  385       &#13;&#10;
  386      </xsl:text >
  387              
  388     </xsl:temp late>
  389    
  390             
  391     <xsl:templ ate 
  392      match="n1: languageCo de"
  393     >
  394                       
  395      <xsl:varia ble 
  396       name="lang "
  397      >
  398                                 
  399       <xsl:apply -templates  
  400        select="."  
  401        mode="data "
  402       />
  403                        
  404      </xsl:vari able>
  405                       
  406      <xsl:if 
  407       test="stri ng-length( normalize- space($lan g))>0"
  408      >
  409                                 
  410       <xsl:text>
  411          
  412       </xsl:text >
  413                                 
  414       <xsl:value -of 
  415        select="$l ang"
  416       />
  417                                 
  418       <xsl:text>
  419        &#13;&#10;
  420       </xsl:text >
  421                        
  422      </xsl:if>
  423              
  424     </xsl:temp late>
  425    
  426             
  427     <xsl:templ ate 
  428      name="disp layAuthorB lock"
  429     >
  430                       
  431      <xsl:if 
  432       test="n1:a uthor"
  433      >
  434                                 
  435       <xsl:text>
  436        Source: 
  437       </xsl:text >
  438                                 
  439       <xsl:value -of 
  440        select="n1 :author/n1 :assignedA uthor/n1:r epresented Organizati on/n1:name /text()"
  441       />
  442                                 
  443       <xsl:text>
  444        &#13;&#10;
  445       </xsl:text >
  446                                 
  447       <xsl:if 
  448        test="n1:a uthor/n1:a ssignedAut hor/n1:ass ignedPerso n"
  449       >
  450                                           
  451        <xsl:text>
  452         Author: 
  453        </xsl:text >
  454                                           
  455        <xsl:choos e>
  456                                                    
  457         <xsl:when 
  458          test="n1:a uthor/n1:a ssignedAut hor/n1:ass ignedPerso n/n1:name/ n1:family  and n1:aut hor/n1:ass ignedAutho r/n1:assig nedPerson/ n1:name/n1 :given"
  459         >
  460                                                              
  461          <xsl:value -of 
  462           select="n1 :author/n1 :assignedA uthor/n1:a ssignedPer son/n1:nam e/n1:famil y"
  463          />
  464                                                              
  465          <xsl:text>
  466          
  467          </xsl:text >
  468                                                              
  469          <xsl:value -of 
  470           select="n1 :author/n1 :assignedA uthor/n1:a ssignedPer son/n1:nam e/n1:given "
  471          />
  472                                                     
  473         </xsl:when >
  474                                                    
  475         <xsl:other wise>
  476                                                              
  477          <xsl:value -of 
  478           select="n1 :author/n1 :assignedA uthor/n1:a ssignedPer son/n1:nam e"
  479          />
  480                                                     
  481         </xsl:othe rwise>
  482                                            
  483        </xsl:choo se>
  484                                           
  485        <xsl:text>
  486         &#13;&#10;
  487        </xsl:text >
  488                                  
  489       </xsl:if>
  490                        
  491      </xsl:if>
  492     
  493                       
  494      <xsl:text>
  495       &#13;&#10;
  496      </xsl:text >
  497                       
  498      <xsl:text>
  499       &#13;&#10;
  500      </xsl:text >
  501              
  502     </xsl:temp late>
  503    
  504             
  505     <xsl:templ ate 
  506      name="disp layTableOf Contents"
  507     >
  508                       
  509      <xsl:text>
  510       Table of C ontents
  511      </xsl:text >
  512                       
  513      <xsl:text>
  514       &#13;&#10;
  515      </xsl:text >
  516                       
  517      <xsl:text>
  518       ========== =======
  519      </xsl:text >
  520                       
  521      <xsl:text>
  522       &#13;&#10;
  523      </xsl:text >
  524                       
  525      <xsl:for-e ach 
  526       select="n1 :component /n1:struct uredBody/n 1:componen t/n1:secti on/n1:titl e"
  527      >
  528                                 
  529       <xsl:sort/ >
  530                                 
  531       <xsl:varia ble 
  532        name="comp Found"
  533       >
  534                                           
  535        <xsl:call- template 
  536         name="comp onentFound "
  537        >
  538                                                    
  539         <xsl:with- param 
  540          name="comp Section" 
  541          select=".. /."
  542         />
  543                                            
  544        </xsl:call -template>
  545                                  
  546       </xsl:vari able>
  547                                 
  548       <xsl:choos e>
  549                                           
  550        <xsl:when 
  551         test="stri ng-length( $compFound )>0"
  552        >
  553                                                    
  554         <xsl:text>
  555              
  556         </xsl:text >
  557                                                    
  558         <xsl:value -of 
  559          select="."
  560         />
  561                                                    
  562         <xsl:text>
  563          &#13;&#10;
  564         </xsl:text >
  565                                            
  566        </xsl:when >
  567                                  
  568       </xsl:choo se>
  569                        
  570      </xsl:for- each>
  571                       
  572      <xsl:text>
  573       &#13;&#10;
  574      </xsl:text >
  575              
  576     </xsl:temp late>
  577    
  578             
  579     <xsl:templ ate 
  580      name="disp layContent s"
  581     >
  582                       
  583      <xsl:apply -templates  
  584       select="n1 :component /n1:struct uredBody/n 1:componen t"
  585      >
  586                                 
  587       <xsl:sort 
  588        select="n1 :section/n 1:title"
  589       />
  590                        
  591      </xsl:appl y-template s>
  592     
  593                       
  594      <xsl:text>
  595       &#13;&#10;
  596      </xsl:text >
  597                       
  598      <xsl:text>
  599       &#13;&#10;
  600      </xsl:text >
  601              
  602     </xsl:temp late>
  603    
  604             
  605     <xsl:templ ate 
  606      name="disp layContact InfoBlock"
  607     >
  608                       
  609      <xsl:choos e>
  610                                 
  611       <xsl:when 
  612        test="stri ng-length( n1:partici pant[@type Code='IND' ]/n1:assoc iatedEntit y[@classCo de='NOK']) >0"
  613       >
  614                                           
  615        <xsl:text>
  616         Emergency  Contact: 
  617        </xsl:text >
  618                                           
  619        <xsl:call- template 
  620         name="getP articipant "
  621        >
  622                                                    
  623         <xsl:with- param 
  624          name="part icipant" 
  625          select="n1 :participa nt[@typeCo de='IND']/ n1:associa tedEntity[ @classCode ='NOK']"
  626         />
  627                                            
  628        </xsl:call -template>
  629                                  
  630       </xsl:when >
  631                                 
  632       <xsl:other wise>
  633                                           
  634        <xsl:text>
  635         EMERGENCY  CONTACT IN FO MISSING !
  636        </xsl:text >
  637                                  
  638       </xsl:othe rwise>
  639                        
  640      </xsl:choo se>
  641                       
  642      <xsl:text>
  643       &#13;&#10;
  644      </xsl:text >
  645              
  646     </xsl:temp late>
  647    
  648             
  649     <xsl:templ ate 
  650      name="getP articipant "
  651     >
  652                       
  653      <xsl:param  
  654       name="part icipant"
  655      />
  656                       
  657      <xsl:text>
  658       &#13;&#10; &#9;
  659      </xsl:text >
  660                       
  661      <xsl:call- template 
  662       name="getN ame"
  663      >
  664                                 
  665       <xsl:with- param 
  666        name="name
  667        select="$p articipant /n1:associ atedPerson /n1:name"
  668       />
  669                        
  670      </xsl:call -template>
  671                       
  672      <xsl:if 
  673       test="$par ticipant/n 1:addr"
  674      >
  675                                 
  676       <xsl:call- template 
  677        name="getS ingleAddre ss"
  678       >
  679                                           
  680        <xsl:with- param 
  681         name="addr
  682         select="$p articipant /n1:addr"
  683        />
  684                                  
  685       </xsl:call -template>
  686                        
  687      </xsl:if>
  688                       
  689      <xsl:choos e>
  690                                 
  691       <xsl:when 
  692        test="$par ticipant/n 1:telecom/ @value"
  693       >
  694                                           
  695        <xsl:for-e ach 
  696         select="$p articipant /n1:teleco m"
  697        >
  698                                                    
  699         <xsl:call- template 
  700          name="getT elecom"
  701         >
  702                                                              
  703          <xsl:with- param 
  704           name="tele com" 
  705           select="."
  706          />
  707                                                     
  708         </xsl:call -template>
  709                                            
  710        </xsl:for- each>
  711                                  
  712       </xsl:when >
  713                                 
  714       <xsl:other wise>
  715                                           
  716        <xsl:text>
  717         &#9;tel: C ONTACT PHO NE MISSING
  718        </xsl:text >
  719                                           
  720        <xsl:text>
  721         &#13;&#10;
  722        </xsl:text >
  723                                  
  724       </xsl:othe rwise>
  725                        
  726      </xsl:choo se>
  727                       
  728      <xsl:if 
  729       test="$par ticipant/n 1:code/n1: originalTe xt"
  730      >
  731                                 
  732       <xsl:text>
  733        Relationsh ip: 
  734       </xsl:text >
  735                                 
  736       <xsl:value -of 
  737        select="$p articipant /n1:code/n 1:original Text"
  738       />
  739                                 
  740       <xsl:text>
  741        &#13;&#10;
  742       </xsl:text >
  743                        
  744      </xsl:if>
  745              
  746     </xsl:temp late>
  747    
  748             
  749     <xsl:templ ate 
  750      name="getS ingleAddre ss"
  751     >
  752                       
  753      <xsl:param  
  754       name="addr "
  755      />
  756                       
  757      <xsl:if 
  758       test="$add r/n1:stree tAddressLi ne != ' '"
  759      >
  760                                 
  761       <xsl:text>
  762        &#13;&#10;
  763       </xsl:text >
  764                                 
  765       <xsl:text>
  766            
  767       </xsl:text >
  768                                 
  769       <xsl:if 
  770        test="stri ng-length( $addr/n1:s treetAddre ssLine)>0"
  771       >
  772                                           
  773        <xsl:value -of 
  774         select="$a ddr/n1:str eetAddress Line"
  775        />
  776                                  
  777       </xsl:if>
  778      
  779                                 
  780       <xsl:text>
  781        &#13;&#10;
  782       </xsl:text >
  783                                 
  784       <xsl:text>
  785            
  786       </xsl:text >
  787                                 
  788       <xsl:value -of 
  789        select="$a ddr/n1:cit y"
  790       />
  791                                 
  792       <xsl:text>
  793       
  794       </xsl:text >
  795                                 
  796       <xsl:value -of 
  797        select="$a ddr/n1:sta te"
  798       />
  799                                 
  800       <xsl:text>
  801          
  802       </xsl:text >
  803                                 
  804       <xsl:value -of 
  805        select="$a ddr/n1:pos talCode"
  806       />
  807                                 
  808       <xsl:text>
  809        &#13;&#10;
  810       </xsl:text >
  811                        
  812      </xsl:if>
  813              
  814     </xsl:temp late>
  815    
  816             
  817     <xsl:templ ate 
  818      name="getA ddress"
  819     >
  820                       
  821      <xsl:param  
  822       name="addr "
  823      />
  824                       
  825      <xsl:if 
  826       test="$add r/n1:stree tAddressLi ne != ' '"
  827      >
  828                                 
  829       <xsl:for-e ach 
  830        select="$a ddr/n1:str eetAddress Line"
  831       >
  832                                           
  833        <xsl:text>
  834         &#13;&#10;
  835        </xsl:text >
  836                                           
  837        <xsl:text>
  838             
  839        </xsl:text >
  840                                           
  841        <xsl:if 
  842         test="stri ng-length( $addr/n1:s treetAddre ssLine)>0"
  843        >
  844                                                    
  845         <xsl:value -of 
  846          select="."
  847         />
  848                                            
  849        </xsl:if>
  850                                  
  851       </xsl:for- each>
  852                                 
  853       <xsl:text>
  854        &#13;&#10;
  855       </xsl:text >
  856                                 
  857       <xsl:text>
  858            
  859       </xsl:text >
  860                                 
  861       <xsl:value -of 
  862        select="$a ddr/n1:cit y"
  863       />
  864                                 
  865       <xsl:text>
  866        ,  
  867       </xsl:text >
  868                                 
  869       <xsl:value -of 
  870        select="$a ddr/n1:sta te"
  871       />
  872                                 
  873       <xsl:text>
  874          
  875       </xsl:text >
  876                                 
  877       <xsl:value -of 
  878        select="$a ddr/n1:pos talCode"
  879       />
  880                                 
  881       <xsl:text>
  882        &#13;&#10;
  883       </xsl:text >
  884                        
  885      </xsl:if>
  886              
  887     </xsl:temp late>
  888    
  889             
  890     <xsl:templ ate 
  891      name="getT elecom"
  892     >
  893                       
  894      <xsl:param  
  895       name="tele com"
  896      />
  897                       
  898      <xsl:if 
  899       test="stri ng-length( $telecom/@ value)>0"
  900      >
  901                                 
  902       <xsl:text>
  903            
  904       </xsl:text >
  905                                 
  906       <xsl:value -of 
  907        select="$t elecom/@va lue"
  908       />
  909                                 
  910       <xsl:choos e>
  911                                           
  912        <xsl:when 
  913         test="./@u se='HP' "
  914        >
  915                                                    
  916         <xsl:text>
  917           Home
  918         </xsl:text >
  919                                            
  920        </xsl:when >
  921                                           
  922        <xsl:when 
  923         test="./@u se='WP' "
  924        >
  925                                                    
  926         <xsl:text>
  927           Work
  928         </xsl:text >
  929                                            
  930        </xsl:when >
  931                                           
  932        <xsl:when 
  933         test="./@u se='HV' "
  934        >
  935                                                    
  936         <xsl:text>
  937           Vacation
  938         </xsl:text >
  939                                            
  940        </xsl:when >
  941                                           
  942        <xsl:when 
  943         test="./@u se='MC' "
  944        >
  945                                                    
  946         <xsl:text>
  947           Mobile
  948         </xsl:text >
  949                                            
  950        </xsl:when >
  951                                  
  952       </xsl:choo se>
  953                                 
  954       <xsl:text>
  955        &#13;&#10;
  956       </xsl:text >
  957                        
  958      </xsl:if>
  959              
  960     </xsl:temp late>
  961    
  962             
  963     <!-- Compo nent/Secti on -->
  964             
  965     <xsl:templ ate 
  966      match="n1: component/ n1:section "
  967     >
  968                       
  969      <xsl:apply -templates  
  970       select="n1 :title"
  971      />
  972                       
  973      <xsl:choos e>
  974                                 
  975       <xsl:when 
  976        test="n1:c ode[@code= $loincProb lemCode]"
  977       >
  978                                           
  979        <xsl:varia ble 
  980         name="prob C1"
  981        >
  982                                                    
  983         <xsl:call- template 
  984          name="getC ommonForma tComments"
  985         />
  986                                            
  987        </xsl:vari able>
  988                                           
  989        <xsl:if 
  990         test="stri ng-length( $probC1)>1 "
  991        >
  992                                                    
  993         <xsl:text>
  994          *Note: 
  995         </xsl:text >
  996                                                    
  997         <xsl:value -of 
  998          select="no rmalize-sp ace($probC 1)"
  999         />
  1000                                                    
  1001         <xsl:text>
  1002          &#13;&#10; &#9;
  1003         </xsl:text >
  1004                                            
  1005        </xsl:if>
  1006                                           
  1007        <xsl:call- template 
  1008         name="prob lemDetails "
  1009        >
  1010                                                    
  1011         <xsl:with- param 
  1012          select="."  
  1013          name="sect ion"
  1014         />
  1015                                            
  1016        </xsl:call -template>
  1017                                  
  1018       </xsl:when >
  1019                                 
  1020       <xsl:when 
  1021        test="n1:c ode[@code= $loincAlle rgyCode]"
  1022       >
  1023                                           
  1024        <xsl:varia ble 
  1025         name="alle rgyC1"
  1026        >
  1027                                                    
  1028         <xsl:call- template 
  1029          name="getC ommonForma tComments"
  1030         />
  1031                                            
  1032        </xsl:vari able>
  1033                                           
  1034        <xsl:if 
  1035         test="stri ng-length( $allergyC1 )>1"
  1036        >
  1037                                                    
  1038         <xsl:text>
  1039          *Note: 
  1040         </xsl:text >
  1041                                                    
  1042         <xsl:value -of 
  1043          select="no rmalize-sp ace($aller gyC1)"
  1044         />
  1045                                                    
  1046         <xsl:text>
  1047          &#13;&#10; &#9;
  1048         </xsl:text >
  1049                                            
  1050        </xsl:if>
  1051                                           
  1052        <xsl:call- template 
  1053         name="alle rgyDetails "
  1054        >
  1055                                                    
  1056         <xsl:with- param 
  1057          select="."  
  1058          name="sect ion"
  1059         />
  1060                                            
  1061        </xsl:call -template>
  1062                                  
  1063       </xsl:when >
  1064                                 
  1065       <xsl:when 
  1066        test="n1:c ode[@code= $loincMedC ode]"
  1067       >
  1068                                           
  1069        <xsl:varia ble 
  1070         name="medC 1"
  1071        >
  1072                                                    
  1073         <xsl:call- template 
  1074          name="getC ommonForma tComments"
  1075         />
  1076                                            
  1077        </xsl:vari able>
  1078                                           
  1079        <xsl:if 
  1080         test="stri ng-length( $medC1)>1"
  1081        >
  1082                                                    
  1083         <xsl:text>
  1084          *Note: 
  1085         </xsl:text >
  1086                                                    
  1087         <xsl:value -of 
  1088          select="no rmalize-sp ace($medC1 )"
  1089         />
  1090                                                    
  1091         <xsl:text>
  1092          &#13;&#10; &#9;
  1093         </xsl:text >
  1094                                            
  1095        </xsl:if>
  1096                                           
  1097        <xsl:call- template 
  1098         name="medD etails"
  1099        >
  1100                                                    
  1101         <xsl:with- param 
  1102          select="."  
  1103          name="sect ion"
  1104         />
  1105                                            
  1106        </xsl:call -template>
  1107                                  
  1108       </xsl:when >
  1109                                 
  1110       <xsl:when 
  1111        test="n1:c ode[@code= $loincResu ltsCode]"
  1112       >
  1113                                           
  1114        <xsl:varia ble 
  1115         name="resu ltsC1"
  1116        >
  1117                                                    
  1118         <xsl:call- template 
  1119          name="getC ommonForma tComments"
  1120         />
  1121                                            
  1122        </xsl:vari able>
  1123                                           
  1124        <xsl:if 
  1125         test="stri ng-length( $resultsC1 )>1"
  1126        >
  1127                                                    
  1128         <xsl:text>
  1129          *Note: 
  1130         </xsl:text >
  1131                                                    
  1132         <xsl:value -of 
  1133          select="no rmalize-sp ace($resul tsC1)"
  1134         />
  1135                                                    
  1136         <xsl:text>
  1137          &#13;&#10; &#9;
  1138         </xsl:text >
  1139                                            
  1140        </xsl:if>
  1141                                           
  1142        <xsl:call- template 
  1143         name="resu ltsDetails "
  1144        >
  1145                                                    
  1146         <xsl:with- param 
  1147          select="."  
  1148          name="sect ion"
  1149         />
  1150                                            
  1151        </xsl:call -template>
  1152                                  
  1153       </xsl:when >
  1154                                 
  1155       <xsl:when 
  1156        test="n1:c ode[@code= $loincEnco unterCode] "
  1157       >
  1158                                           
  1159        <xsl:call- template 
  1160         name="enco unterDetai ls"
  1161        >
  1162                                                    
  1163         <xsl:with- param 
  1164          select="."  
  1165          name="sect ion"
  1166         />
  1167                                            
  1168        </xsl:call -template>
  1169                                  
  1170       </xsl:when >
  1171                                 
  1172       <xsl:when 
  1173        test="n1:c ode[@code= $loincProc eduresCode ]"
  1174       >
  1175                                           
  1176        <xsl:call- template 
  1177         name="proc eduresDeta ils"
  1178        >
  1179                                                    
  1180         <xsl:with- param 
  1181          select="."  
  1182          name="sect ion"
  1183         />
  1184                                            
  1185        </xsl:call -template>
  1186                                  
  1187       </xsl:when >
  1188                                 
  1189       <xsl:when 
  1190        test="n1:c ode[@code= $loincImmu nizationsC ode]"
  1191       >
  1192                                           
  1193        <xsl:varia ble 
  1194         name="immu nC1"
  1195        >
  1196                                                    
  1197         <xsl:call- template 
  1198          name="getC ommonForma tComments"
  1199         />
  1200                                            
  1201        </xsl:vari able>
  1202                                           
  1203        <xsl:if 
  1204         test="stri ng-length( $immunC1)> 1"
  1205        >
  1206                                                    
  1207         <xsl:text>
  1208          *Note: 
  1209         </xsl:text >
  1210                                                    
  1211         <xsl:value -of 
  1212          select="no rmalize-sp ace($immun C1)"
  1213         />
  1214                                                    
  1215         <xsl:text>
  1216          &#13;&#10; &#9;
  1217         </xsl:text >
  1218                                            
  1219        </xsl:if>
  1220                                           
  1221        <xsl:call- template 
  1222         name="immu nizationsD etails"
  1223        >
  1224                                                    
  1225         <xsl:with- param 
  1226          select="."  
  1227          name="sect ion"
  1228         />
  1229                                            
  1230        </xsl:call -template>
  1231                                  
  1232       </xsl:when >
  1233                                 
  1234       <xsl:when 
  1235        test="n1:c ode[@code= $loincVita lsCode]"
  1236       >
  1237                                           
  1238        <xsl:call- template 
  1239         name="vita lsDetails"
  1240        >
  1241                                                    
  1242         <xsl:with- param 
  1243          select="."  
  1244          name="sect ion"
  1245         />
  1246                                            
  1247        </xsl:call -template>
  1248                                  
  1249       </xsl:when >
  1250                        
  1251      </xsl:choo se>
  1252                       
  1253      <xsl:apply -templates  
  1254       select="n1 :component /n1:sectio n"
  1255      />
  1256              
  1257     </xsl:temp late>
  1258    
  1259             
  1260     <!-- Meds  Detail Sec tion -->
  1261             
  1262     <xsl:templ ate 
  1263      name="medD etails"
  1264     >
  1265                       
  1266      <xsl:param  
  1267       name="sect ion"
  1268      />
  1269                       
  1270      <xsl:choos e>
  1271                                 
  1272       <xsl:when 
  1273        test="$sec tion/n1:en try/n1:sub stanceAdmi nistration /n1:effect iveTime/n1 :high"
  1274       >
  1275                                           
  1276        <xsl:apply -templates  
  1277         select="$s ection/n1: entry"
  1278        >
  1279                                                    
  1280         <xsl:sort 
  1281          select="$s ection/n1: entry/n1:s ubstanceAd ministrati on/n1:effe ctiveTime/ n1:high/@v alue"
  1282         />
  1283                                            
  1284        </xsl:appl y-template s>
  1285                                  
  1286       </xsl:when >
  1287                                 
  1288       <xsl:other wise>
  1289                                           
  1290        <xsl:apply -templates  
  1291         select="$s ection/n1: entry"
  1292        >
  1293                                                    
  1294         <xsl:sort 
  1295          select="$s ection/n1: entry/n1:s ubstanceAd ministrati on/n1:entr yRelations hip/n1:sup ply/n1:eff ectiveTime /@value"
  1296         />
  1297                                            
  1298        </xsl:appl y-template s>
  1299                                  
  1300       </xsl:othe rwise>
  1301                        
  1302      </xsl:choo se>
  1303                       
  1304      <xsl:if 
  1305       test="not( boolean(n1 :entry/n1: substanceA dministrat ion))"
  1306      >
  1307                                 
  1308       <xsl:call- template 
  1309        name="noDa ta_Clipboa rd"
  1310       />
  1311                        
  1312      </xsl:if>
  1313              
  1314     </xsl:temp late>
  1315    
  1316             
  1317     <!-- Proce dures Deta il Section  -->
  1318             
  1319     <xsl:templ ate 
  1320      name="proc eduresDeta ils"
  1321     >
  1322                       
  1323      <xsl:param  
  1324       name="sect ion"
  1325      />
  1326                       
  1327      <xsl:apply -templates  
  1328       select="$s ection/n1: entry"
  1329      >
  1330                                 
  1331       <xsl:sort 
  1332        select="n1 :procedure /n1:effect iveTime/n1 :low/@valu e" 
  1333        order="des cending"
  1334       />
  1335                        
  1336      </xsl:appl y-template s>
  1337                       
  1338      <xsl:if 
  1339       test="not( boolean($s ection/n1: entry/n1:p rocedure)) "
  1340      >
  1341                                 
  1342       <xsl:call- template 
  1343        name="noDa ta_Clipboa rd"
  1344       />
  1345                        
  1346      </xsl:if>
  1347              
  1348     </xsl:temp late>
  1349    
  1350             
  1351     <!-- Encou nters Deta il Section  -->
  1352             
  1353     <xsl:templ ate 
  1354      name="enco unterDetai ls"
  1355     >
  1356                       
  1357      <xsl:param  
  1358       name="sect ion"
  1359      />
  1360                       
  1361      <xsl:apply -templates  
  1362       select="$s ection/n1: entry"
  1363      >
  1364                                 
  1365       <xsl:sort 
  1366        select="n1 :encounter /n1:effect iveTime/n1 :low/@valu e" 
  1367        order="des cending"
  1368       />
  1369                        
  1370      </xsl:appl y-template s>
  1371                       
  1372      <xsl:if 
  1373       test="not( boolean($s ection/n1: entry/n1:e ncounter)) "
  1374      >
  1375                                 
  1376       <xsl:call- template 
  1377        name="noDa ta_Clipboa rd"
  1378       />
  1379                        
  1380      </xsl:if>
  1381              
  1382     </xsl:temp late>
  1383    
  1384             
  1385     <!-- Probl em Detail  Section -- >
  1386             
  1387     <xsl:templ ate 
  1388      name="prob lemDetails "
  1389     >
  1390                       
  1391      <xsl:param  
  1392       name="sect ion"
  1393      />
  1394                       
  1395      <xsl:choos e>
  1396                                 
  1397       <xsl:when 
  1398        test="$sec tion/n1:en try/n1:act /n1:entryR elationshi p/n1:obser vation/n1: effectiveT ime/n1:low "
  1399       >
  1400                                           
  1401        <xsl:apply -templates  
  1402         select="$s ection/n1: entry"
  1403        >
  1404                                                    
  1405         <xsl:sort 
  1406          select="n1 :act/n1:en tryRelatio nship/n1:o bservation /n1:effect iveTime/n1 :low/@valu e" 
  1407          order="des cending"
  1408         />
  1409                                            
  1410        </xsl:appl y-template s>
  1411                                  
  1412       </xsl:when >
  1413                                 
  1414       <xsl:other wise>
  1415                                           
  1416        <xsl:apply -templates  
  1417         select="$s ection/n1: entry"
  1418        >
  1419                                                    
  1420         <xsl:sort 
  1421          select="n1 :act/n1:ef fectiveTim e/n1:low/@ value" 
  1422          order="des cending"
  1423         />
  1424                                            
  1425        </xsl:appl y-template s>
  1426                                  
  1427       </xsl:othe rwise>
  1428                        
  1429      </xsl:choo se>
  1430                       
  1431      <xsl:if 
  1432       test="not( boolean($s ection/n1: entry/n1:a ct/n1:entr yRelations hip[@typeC ode='SUBJ' ]/n1:obser vation))"
  1433      >
  1434                                 
  1435       <xsl:call- template 
  1436        name="noDa ta_Clipboa rd"
  1437       />
  1438                        
  1439      </xsl:if>
  1440              
  1441     </xsl:temp late>
  1442    
  1443             
  1444     <!-- Aller gy Detail  Section -- >
  1445             
  1446     <xsl:templ ate 
  1447      name="alle rgyDetails "
  1448     >
  1449                       
  1450      <xsl:param  
  1451       name="sect ion"
  1452      />
  1453                       
  1454      <xsl:choos e>
  1455                                 
  1456       <xsl:when 
  1457        test="n1:a ct/n1:entr yRelations hip/n1:obs ervation/n 1:particip ant/n1:par ticipantRo le/n1:play ingEntity/ n1:code/@d isplayName "
  1458       >
  1459                                           
  1460        <xsl:apply -templates  
  1461         select="$s ection/n1: entry"
  1462        >
  1463                                                    
  1464         <xsl:sort 
  1465          select="n1 :act/n1:en tryRelatio nship/n1:o bservation /n1:partic ipant/n1:p articipant Role/n1:pl ayingEntit y/n1:code/ @displayNa me"
  1466         />
  1467                                            
  1468        </xsl:appl y-template s>
  1469                                  
  1470       </xsl:when >
  1471                                 
  1472       <xsl:when 
  1473        test="$sec tion/n1:en try/n1:act /n1:entryR elationshi p/n1:obser vation/n1: effectiveT ime/n1:low "
  1474       >
  1475                                           
  1476        <xsl:apply -templates  
  1477         select="$s ection/n1: entry"
  1478        >
  1479                                                    
  1480         <xsl:sort 
  1481          select="n1 :act/n1:en tryRelatio nship/n1:o bservation /n1:effect iveTime/n1 :low/@valu e" 
  1482          order="des cending"
  1483         />
  1484                                            
  1485        </xsl:appl y-template s>
  1486                                  
  1487       </xsl:when >
  1488                                 
  1489       <xsl:other wise>
  1490                                           
  1491        <xsl:apply -templates  
  1492         select="$s ection/n1: entry"
  1493        >
  1494                                                    
  1495         <xsl:sort 
  1496          select="n1 :act/n1:ef fectiveTim e/n1:low/@ value" 
  1497          order="des cending"
  1498         />
  1499                                            
  1500        </xsl:appl y-template s>
  1501                                  
  1502       </xsl:othe rwise>
  1503                        
  1504      </xsl:choo se>
  1505                       
  1506      <xsl:if 
  1507       test="not( boolean(n1 :entry/n1: act/n1:ent ryRelation ship/n1:ob servation) )"
  1508      >
  1509                                 
  1510       <xsl:call- template 
  1511        name="noDa ta_Clipboa rd"
  1512       />
  1513                        
  1514      </xsl:if>
  1515              
  1516     </xsl:temp late>
  1517    
  1518             
  1519     <!-- Resul ts Detail  Section -- >
  1520             
  1521     <xsl:templ ate 
  1522      name="resu ltsDetails "
  1523     >
  1524                       
  1525      <xsl:param  
  1526       name="sect ion"
  1527      />
  1528                       
  1529      <xsl:choos e>
  1530                                 
  1531       <xsl:when 
  1532        test="$sec tion/n1:en try/n1:org anizer/n1: component/ n1:observa tion/n1:ef fectiveTim e/@value"
  1533       >
  1534                                           
  1535        <xsl:apply -templates  
  1536         select="$s ection/n1: entry"
  1537        >
  1538                                                    
  1539         <xsl:sort 
  1540          select="n1 :organizer /n1:compon ent/n1:obs ervation/n 1:effectiv eTime/@val ue" 
  1541          order="des cending"
  1542         />
  1543                                            
  1544        </xsl:appl y-template s>
  1545                                  
  1546       </xsl:when >
  1547                                 
  1548       <xsl:other wise/>
  1549                        
  1550      </xsl:choo se>
  1551                       
  1552      <xsl:if 
  1553       test="not( boolean(n1 :entry/n1: observatio n)or(n1:en try/n1:org anizer))"
  1554      >
  1555                                 
  1556       <xsl:call- template 
  1557        name="noDa ta_Clipboa rd"
  1558       />
  1559                        
  1560      </xsl:if>
  1561              
  1562     </xsl:temp late>
  1563    
  1564             
  1565     <!-- Immun izations D etail Sect ion -->
  1566             
  1567     <xsl:templ ate 
  1568      name="immu nizationsD etails"
  1569     >
  1570                       
  1571      <xsl:param  
  1572       name="sect ion"
  1573      />
  1574                       
  1575      <xsl:apply -templates  
  1576       select="$s ection/n1: entry"
  1577      >
  1578                                 
  1579       <xsl:sort 
  1580        select="n1 :substance Administra tion/n1:ef fectiveTim e/@value" 
  1581        order="des cending"
  1582       />
  1583                        
  1584      </xsl:appl y-template s>
  1585                       
  1586      <xsl:if 
  1587       test="not( boolean($s ection/n1: entry/n1:s ubstanceAd ministrati on))"
  1588      >
  1589                                 
  1590       <xsl:call- template 
  1591        name="noDa ta_Clipboa rd"
  1592       />
  1593                        
  1594      </xsl:if>
  1595              
  1596     </xsl:temp late>
  1597    
  1598             
  1599     <!-- Vital s Detail S ection -->
  1600             
  1601     <xsl:templ ate 
  1602      name="vita lsDetails"
  1603     >
  1604                       
  1605      <xsl:param  
  1606       name="sect ion"
  1607      />
  1608                       
  1609      <xsl:apply -templates  
  1610       select="$s ection/n1: entry"
  1611      >
  1612                                 
  1613       <xsl:sort 
  1614        select="n1 :organizer /n1:compon ent/n1:obs ervation/n 1:effectiv eTime/@val ue" 
  1615        order="des cending"
  1616       />
  1617                        
  1618      </xsl:appl y-template s>
  1619                       
  1620      <xsl:if 
  1621       test="not( boolean($s ection/n1: entry/n1:o rganizer/n 1:componen t/n1:obser vation))"
  1622      >
  1623                                 
  1624       <xsl:call- template 
  1625        name="noDa ta_Clipboa rd"
  1626       />
  1627                        
  1628      </xsl:if>
  1629              
  1630     </xsl:temp late>
  1631    
  1632             
  1633     <xsl:templ ate 
  1634      name="medR ow"
  1635     >
  1636                       
  1637      <xsl:param  
  1638       name="row"
  1639      />
  1640     
  1641                       
  1642      <!--medica tion name- ->
  1643                       
  1644      <xsl:text>
  1645       &#13;&#10; &#9;
  1646      </xsl:text >
  1647                       
  1648      <xsl:varia ble 
  1649       name="medN ameResult"
  1650      >
  1651                                 
  1652       <xsl:call- template 
  1653        name="getM edicationN ame"
  1654       >
  1655                                           
  1656        <xsl:with- param 
  1657         name="row"  
  1658         select="$r ow"
  1659        />
  1660                                  
  1661       </xsl:call -template>
  1662                        
  1663      </xsl:vari able>
  1664                       
  1665      <xsl:choos e>
  1666                                 
  1667       <xsl:when 
  1668        test="stri ng-length( $medNameRe sult)>1"
  1669       >
  1670                                           
  1671        <xsl:text>
  1672         Medication
  1673        </xsl:text >
  1674                                           
  1675        <xsl:value -of 
  1676         select="no rmalize-sp ace($medNa meResult)"
  1677        />
  1678                                  
  1679       </xsl:when >
  1680                                 
  1681       <xsl:other wise>
  1682                                           
  1683        <xsl:call- template 
  1684         name="na"
  1685        />
  1686                                  
  1687       </xsl:othe rwise>
  1688                        
  1689      </xsl:choo se>
  1690     
  1691                       
  1692      <!-- Brand  Name -->
  1693                       
  1694      <xsl:text>
  1695       &#13;&#10; &#9;
  1696      </xsl:text >
  1697                       
  1698      <xsl:if 
  1699       test="$row /n1:substa nceAdminis tration/n1 :consumabl e/n1:manuf acturedPro duct/n1:ma nufactured Material/n 1:name"
  1700      >
  1701                                 
  1702       <xsl:text>
  1703        Brand Name
  1704       </xsl:text >
  1705                                 
  1706       <xsl:value -of 
  1707        select="$r ow/n1:subs tanceAdmin istration/ n1:consuma ble/n1:man ufacturedP roduct/n1: manufactur edMaterial /n1:name"
  1708       />
  1709                        
  1710      </xsl:if>
  1711     
  1712                       
  1713      <!-- Route  -->
  1714                       
  1715      <xsl:if 
  1716       test="$row /n1:substa nceAdminis tration/n1 :routeCode /@displayN ame"
  1717      >
  1718                                 
  1719       <xsl:text>
  1720        &#13;&#10; &#9;
  1721       </xsl:text >
  1722                                 
  1723       <xsl:text>
  1724        Route: 
  1725       </xsl:text >
  1726                                 
  1727       <xsl:value -of 
  1728        select="$r ow/n1:subs tanceAdmin istration/ n1:routeCo de/@displa yName"
  1729       />
  1730                        
  1731      </xsl:if>
  1732     
  1733                       
  1734      <!-- Inter val -->
  1735                       
  1736      <xsl:if 
  1737       test="$row /n1:substa nceAdminis tration/n1 :effective Time/n1:pe riod/@valu e"
  1738      >
  1739                                 
  1740       <xsl:text>
  1741        &#13;&#10; &#9;
  1742       </xsl:text >
  1743                                 
  1744       <xsl:text>
  1745        Interval: 
  1746       </xsl:text >
  1747                                 
  1748       <xsl:value -of 
  1749        select="$r ow/n1:subs tanceAdmin istration/ n1:effecti veTime/n1: period/@va lue"
  1750       />
  1751                        
  1752      </xsl:if>
  1753     
  1754                       
  1755      <!-- Statu s -->
  1756                       
  1757      <xsl:text>
  1758       &#13;&#10; &#9;
  1759      </xsl:text >
  1760                       
  1761      <xsl:text>
  1762       Status: 
  1763      </xsl:text >
  1764                       
  1765      <xsl:call- template 
  1766       name="medS tatus"
  1767      >
  1768                                 
  1769       <xsl:with- param 
  1770        name="subs tanceAdmin
  1771        select="$r ow/n1:subs tanceAdmin istration"
  1772       />
  1773                        
  1774      </xsl:call -template>
  1775     
  1776                       
  1777      <!-- Presc ription ID  (Nbr) -->
  1778                       
  1779      <xsl:text>
  1780       &#13;&#10; &#9;
  1781      </xsl:text >
  1782                       
  1783      <xsl:text>
  1784       Prescripti on #: 
  1785      </xsl:text >
  1786                       
  1787      <xsl:varia ble 
  1788       name="rxNu m"
  1789      >
  1790                                 
  1791       <xsl:call- template 
  1792        name="getR xNumString "
  1793       >
  1794                                           
  1795        <xsl:with- param 
  1796         name="subs tanceAdmin
  1797         select="$r ow/n1:subs tanceAdmin istration"
  1798        />
  1799                                  
  1800       </xsl:call -template>
  1801                        
  1802      </xsl:vari able>
  1803                       
  1804      <xsl:choos e>
  1805                                 
  1806       <xsl:when 
  1807        test="stri ng-length( $rxNum)>1"
  1808       >
  1809                                           
  1810        <xsl:value -of 
  1811         select="$r xNum"
  1812        />
  1813                                  
  1814       </xsl:when >
  1815                                 
  1816       <xsl:other wise>
  1817                                           
  1818        <xsl:call- template 
  1819         name="na"
  1820        />
  1821                                  
  1822       </xsl:othe rwise>
  1823                        
  1824      </xsl:choo se>
  1825     
  1826                       
  1827      <xsl:text>
  1828       &#13;&#10; &#9;
  1829      </xsl:text >
  1830                       
  1831      <!-- dispe nse time - ->
  1832                       
  1833      <xsl:text>
  1834       Dispense D ate: 
  1835      </xsl:text >
  1836                       
  1837      <xsl:call- template 
  1838       name="medB egintime"
  1839      >
  1840                                 
  1841       <xsl:with- param 
  1842        name="row"  
  1843        select="$r ow"
  1844       />
  1845                        
  1846      </xsl:call -template>
  1847     
  1848                       
  1849      <!-- provi der -->
  1850                       
  1851      <xsl:text>
  1852       &#13;&#10; &#9;
  1853      </xsl:text >
  1854                       
  1855      <xsl:text>
  1856       Provider: 
  1857      </xsl:text >
  1858                       
  1859      <xsl:varia ble 
  1860       name="medP rovider"
  1861      >
  1862                                 
  1863       <xsl:call- template 
  1864        name="getM edProvider "
  1865       >
  1866                                           
  1867        <xsl:with- param 
  1868         name="subs tanceAdmin
  1869         select="$r ow/n1:subs tanceAdmin istration"
  1870        />
  1871                                  
  1872       </xsl:call -template>
  1873                        
  1874      </xsl:vari able>
  1875                       
  1876      <xsl:choos e>
  1877                                 
  1878       <xsl:when 
  1879        test="stri ng-length( $medProvid er)>1"
  1880       >
  1881                                           
  1882        <xsl:value -of 
  1883         select="$m edProvider "
  1884        />
  1885                                  
  1886       </xsl:when >
  1887                                 
  1888       <xsl:other wise>
  1889                                           
  1890        <xsl:text>
  1891         - No Provi der Name F ound -
  1892        </xsl:text >
  1893                                  
  1894       </xsl:othe rwise>
  1895                        
  1896      </xsl:choo se>
  1897     
  1898                       
  1899      <xsl:text>
  1900       &#13;&#10; &#9;
  1901      </xsl:text >
  1902                       
  1903      <!-- Quant ity -->
  1904                       
  1905      <xsl:text>
  1906       Quantity: 
  1907      </xsl:text >
  1908                       
  1909      <xsl:call- template 
  1910       name="medQ uantity"
  1911      >
  1912                                 
  1913       <xsl:with- param 
  1914        name="subs tanceAdmin
  1915        select="$r ow/n1:subs tanceAdmin istration"
  1916       />
  1917                        
  1918      </xsl:call -template>
  1919     
  1920                       
  1921      <xsl:text>
  1922       &#13;&#10; &#9;
  1923      </xsl:text >
  1924                       
  1925      <!-- Order  Expiratio n Date/Tim e -->
  1926                       
  1927      <xsl:text>
  1928       Order Expi ration: 
  1929      </xsl:text >
  1930                       
  1931      <xsl:call- template 
  1932       name="medE xpiretime"
  1933      >
  1934                                 
  1935       <xsl:with- param 
  1936        name="subs tanceAdmin
  1937        select="$r ow/n1:subs tanceAdmin istration"
  1938       />
  1939                        
  1940      </xsl:call -template>
  1941     
  1942                       
  1943      <xsl:text>
  1944       &#13;&#10; &#9;
  1945      </xsl:text >
  1946                       
  1947      <!-- Sig - ->
  1948                       
  1949      <xsl:text>
  1950       Sig: 
  1951      </xsl:text >
  1952                       
  1953      <xsl:varia ble 
  1954       name="sig"
  1955      >
  1956                                 
  1957       <xsl:call- template 
  1958        name="getS ig"
  1959       >
  1960                                           
  1961        <xsl:with- param 
  1962         name="subs tanceAdmin
  1963         select="$r ow/n1:subs tanceAdmin istration"
  1964        />
  1965                                  
  1966       </xsl:call -template>
  1967                        
  1968      </xsl:vari able>
  1969                       
  1970      <xsl:choos e>
  1971                                 
  1972       <xsl:when 
  1973        test="stri ng-length( $sig)>1"
  1974       >
  1975                                           
  1976        <xsl:value -of 
  1977         select="$s ig"
  1978        />
  1979                                  
  1980       </xsl:when >
  1981                                 
  1982       <xsl:other wise>
  1983                                           
  1984        <xsl:call- template 
  1985         name="na"
  1986        />
  1987                                  
  1988       </xsl:othe rwise>
  1989                        
  1990      </xsl:choo se>
  1991     
  1992     
  1993                       
  1994      <xsl:text>
  1995       &#13;&#10; &#9;
  1996      </xsl:text >
  1997                       
  1998      <!-- sourc e -->
  1999                       
  2000      <xsl:text>
  2001       Source: 
  2002      </xsl:text >
  2003                       
  2004      <xsl:varia ble 
  2005       name="medS ource" 
  2006       select="n1 :substance Administra tion/n1:au thor/n1:as signedAuth or/n1:repr esentedOrg anization/ n1:name"
  2007      />
  2008                       
  2009      <xsl:choos e>
  2010                                 
  2011       <xsl:when 
  2012        test="$med Source"
  2013       >
  2014                                           
  2015        <xsl:value -of 
  2016         select="$m edSource"
  2017        />
  2018                                  
  2019       </xsl:when >
  2020                                 
  2021       <xsl:other wise>
  2022                                           
  2023        <xsl:call- template 
  2024         name="na"
  2025        />
  2026                                  
  2027       </xsl:othe rwise>
  2028                        
  2029      </xsl:choo se>
  2030                       
  2031      <xsl:text>
  2032       &#13;&#10;
  2033      </xsl:text >
  2034     
  2035              
  2036     </xsl:temp late>
  2037    
  2038             
  2039     <!-- probl em entry r ow -->
  2040             
  2041     <xsl:templ ate 
  2042      name="prob lemRow"
  2043     >
  2044                       
  2045      <xsl:param  
  2046       name="row"
  2047      />
  2048                       
  2049      <xsl:varia ble 
  2050       name="ref"  
  2051       select="$r ow/n1:act/ n1:entryRe lationship /n1:observ ation/n1:t ext/n1:ref erence"
  2052      />
  2053                       
  2054      <xsl:varia ble 
  2055       name="rowD ata" 
  2056       select="$r ow/n1:act/ n1:entryRe lationship /n1:observ ation"
  2057      />
  2058                       
  2059      <xsl:varia ble 
  2060       name="prob Path" 
  2061       select="$r ow/.."
  2062      />
  2063                       
  2064      <!-- name  -->
  2065                       
  2066      <xsl:text>
  2067       &#13;&#10; &#9;
  2068      </xsl:text >
  2069                       
  2070      <xsl:text>
  2071       Problem: 
  2072      </xsl:text >
  2073                       
  2074      <xsl:varia ble 
  2075       name="prob NameResult "
  2076      >
  2077                                 
  2078       <xsl:call- template 
  2079        name="prob Name"
  2080       >
  2081                                           
  2082        <xsl:with- param 
  2083         name="ref"  
  2084         select="$r ef"
  2085        />
  2086                                           
  2087        <xsl:with- param 
  2088         name="path
  2089         select="$p robPath"
  2090        />
  2091                                  
  2092       </xsl:call -template>
  2093                        
  2094      </xsl:vari able>
  2095                       
  2096      <xsl:choos e>
  2097                                 
  2098       <xsl:when 
  2099        test="stri ng-length( $probNameR esult)>1"
  2100       >
  2101                                           
  2102        <xsl:value -of 
  2103         select="no rmalize-sp ace($probN ameResult) "
  2104        />
  2105                                  
  2106       </xsl:when >
  2107                                 
  2108       <xsl:other wise>
  2109                                           
  2110        <xsl:call- template 
  2111         name="na"
  2112        />
  2113                                  
  2114       </xsl:othe rwise>
  2115                        
  2116      </xsl:choo se>
  2117     
  2118                       
  2119      <!-- probl em status  -->
  2120                       
  2121      <xsl:text>
  2122       &#13;&#10; &#9;
  2123      </xsl:text >
  2124                       
  2125      <xsl:text>
  2126       Status: 
  2127      </xsl:text >
  2128                       
  2129      <xsl:call- template 
  2130       name="prob Status"
  2131      >
  2132                                 
  2133       <xsl:with- param 
  2134        name="row"  
  2135        select="$r ow"
  2136       />
  2137                        
  2138      </xsl:call -template>
  2139     
  2140                       
  2141      <!-- Probl em Code -- >
  2142                       
  2143      <xsl:varia ble 
  2144       name="prob codenull" 
  2145       select="$r owData/n1: code/@null Flavor"
  2146      />
  2147                       
  2148      <xsl:varia ble 
  2149       name="prob code" 
  2150       select="$r owData/n1: code/@code "
  2151      />
  2152                       
  2153      <xsl:choos e>
  2154                                 
  2155       <xsl:when 
  2156        test="stri ng($probco denull)='U NK' "
  2157       >
  2158                                  
  2159       </xsl:when >
  2160                                 
  2161       <xsl:when 
  2162        test="$pro bcode"
  2163       >
  2164                                           
  2165        <xsl:text>
  2166         &#13;&#10; &#9;
  2167        </xsl:text >
  2168                                           
  2169        <xsl:text>
  2170         Problem Co de: 
  2171        </xsl:text >
  2172                                           
  2173        <xsl:value -of 
  2174         select="$p robcode"
  2175        />
  2176                                  
  2177       </xsl:when >
  2178                        
  2179      </xsl:choo se>
  2180     
  2181                       
  2182      <!-- probl em effecti ve date -- >
  2183                       
  2184      <xsl:text>
  2185       &#13;&#10; &#9;
  2186      </xsl:text >
  2187                       
  2188      <xsl:text>
  2189       Date: 
  2190      </xsl:text >
  2191                       
  2192      <xsl:call- template 
  2193       name="prob Date"
  2194      >
  2195                                 
  2196       <xsl:with- param 
  2197        name="row"  
  2198        select="$r ow"
  2199       />
  2200                        
  2201      </xsl:call -template>
  2202     
  2203                       
  2204      <!-- provi der -->
  2205                       
  2206      <xsl:text>
  2207       &#13;&#10; &#9;
  2208      </xsl:text >
  2209                       
  2210      <xsl:text>
  2211       Provider: 
  2212      </xsl:text >
  2213                       
  2214      <xsl:varia ble 
  2215       name="prov ider"
  2216      >
  2217                                 
  2218       <xsl:call- template 
  2219        name="getP roblemProv ider"
  2220       >
  2221                                           
  2222        <xsl:with- param 
  2223         name="act"  
  2224         select="$r ow/n1:act"
  2225        />
  2226                                  
  2227       </xsl:call -template>
  2228                        
  2229      </xsl:vari able>
  2230                       
  2231      <xsl:choos e>
  2232                                 
  2233       <xsl:when 
  2234        test="stri ng-length( $provider) >1"
  2235       >
  2236                                           
  2237        <xsl:value -of 
  2238         select="$p rovider"
  2239        />
  2240                                  
  2241       </xsl:when >
  2242                                 
  2243       <xsl:other wise>
  2244                                           
  2245        <xsl:call- template 
  2246         name="na"
  2247        />
  2248                                  
  2249       </xsl:othe rwise>
  2250                        
  2251      </xsl:choo se>
  2252     
  2253                       
  2254      <!-- sourc e -->
  2255                       
  2256      <xsl:text>
  2257       &#13;&#10; &#9;
  2258      </xsl:text >
  2259                       
  2260      <xsl:text>
  2261       Source: 
  2262      </xsl:text >
  2263                       
  2264      <xsl:choos e>
  2265                                 
  2266       <xsl:when 
  2267        test="$row /n1:act/n1 :author/n1 :assignedA uthor/n1:r epresented Organizati on/n1:name "
  2268       >
  2269                                           
  2270        <xsl:value -of 
  2271         select="$r ow/n1:act/ n1:author/ n1:assigne dAuthor/n1 :represent edOrganiza tion/n1:na me"
  2272        />
  2273                                  
  2274       </xsl:when >
  2275                                 
  2276       <xsl:other wise>
  2277                                           
  2278        <xsl:call- template 
  2279         name="na"
  2280        />
  2281                                  
  2282       </xsl:othe rwise>
  2283                        
  2284      </xsl:choo se>
  2285                       
  2286      <xsl:text>
  2287       &#13;&#10;
  2288      </xsl:text >
  2289              
  2290     </xsl:temp late>
  2291    
  2292             
  2293     <!-- aller gy entry r ow -->
  2294             
  2295     <xsl:templ ate 
  2296      name="alle rgyRow"
  2297     >
  2298                       
  2299      <xsl:param  
  2300       name="row"
  2301      />
  2302                       
  2303      <xsl:varia ble 
  2304       name="obse rvation" 
  2305       select="$r ow/n1:act/ n1:entryRe lationship /n1:observ ation"
  2306      />
  2307     
  2308                       
  2309      <!-- Subst ance -->
  2310                       
  2311      <xsl:text>
  2312       &#13;&#10; &#9;
  2313      </xsl:text >
  2314                       
  2315      <xsl:text>
  2316       Allergy: 
  2317      </xsl:text >
  2318                       
  2319      <xsl:call- template 
  2320       name="getA llergen"
  2321      >
  2322                                 
  2323       <xsl:with- param 
  2324        name="obse rvation" 
  2325        select="$o bservation "
  2326       />
  2327                        
  2328      </xsl:call -template>
  2329     
  2330                       
  2331      <!-- Event  Type-->
  2332                       
  2333      <xsl:text>
  2334       &#13;&#10; &#9;
  2335      </xsl:text >
  2336                       
  2337      <xsl:text>
  2338       Type: 
  2339      </xsl:text >
  2340                       
  2341      <xsl:call- template 
  2342       name="alle rgyType"
  2343      >
  2344                                 
  2345       <xsl:with- param 
  2346        name="obse rvation" 
  2347        select="$o bservation "
  2348       />
  2349                        
  2350      </xsl:call -template>
  2351     
  2352                       
  2353      <!-- React ion -->
  2354                       
  2355      <xsl:varia ble 
  2356       name="reac tion"
  2357      >
  2358                                 
  2359       <xsl:call- template 
  2360        name="getR eactionVal ue"
  2361       >
  2362                                           
  2363        <xsl:with- param 
  2364         name="entr yRelations hip" 
  2365         select="$r ow/n1:act/ n1:entryRe lationship "
  2366        />
  2367                                  
  2368       </xsl:call -template>
  2369                        
  2370      </xsl:vari able>
  2371                       
  2372      <xsl:if 
  2373       test="stri ng-length( $reaction) >1"
  2374      >
  2375                                 
  2376       <xsl:text>
  2377        &#13;&#10; &#9;
  2378       </xsl:text >
  2379                                 
  2380       <xsl:text>
  2381        Reaction: 
  2382       </xsl:text >
  2383                                 
  2384       <xsl:value -of 
  2385        select="no rmalize-sp ace($react ion)"
  2386       />
  2387                        
  2388      </xsl:if>
  2389     
  2390                       
  2391      <!-- Sever ity -->
  2392                       
  2393      <xsl:varia ble 
  2394       name="seve rity"
  2395      >
  2396                                 
  2397       <xsl:call- template 
  2398        name="getS everityTex t"
  2399       >
  2400                                           
  2401        <xsl:with- param 
  2402         name="obse rvation" 
  2403         select="$o bservation "
  2404        />
  2405                                  
  2406       </xsl:call -template>
  2407                        
  2408      </xsl:vari able>
  2409                       
  2410      <xsl:if 
  2411       test="stri ng-length( $severity) >1"
  2412      >
  2413                                 
  2414       <xsl:text>
  2415        &#13;&#10; &#9;
  2416       </xsl:text >
  2417                                 
  2418       <xsl:text>
  2419        Severity: 
  2420       </xsl:text >
  2421                                 
  2422       <xsl:value -of 
  2423        select="$s everity"
  2424       />
  2425                        
  2426      </xsl:if>
  2427     
  2428                       
  2429      <!-- Verif ication Da te-->
  2430                       
  2431      <xsl:text>
  2432       &#13;&#10; &#9;
  2433      </xsl:text >
  2434                       
  2435      <xsl:text>
  2436       Date: 
  2437      </xsl:text >
  2438                       
  2439      <xsl:call- template 
  2440       name="disp layAllergy Verificati onDate"
  2441      >
  2442                                 
  2443       <xsl:with- param 
  2444        name="obse rvation" 
  2445        select="$o bservation "
  2446       />
  2447                        
  2448      </xsl:call -template>
  2449     
  2450                       
  2451      <!-- sourc e -->
  2452                       
  2453      <xsl:text>
  2454       &#13;&#10; &#9;
  2455      </xsl:text >
  2456                       
  2457      <xsl:text>
  2458       Source: 
  2459      </xsl:text >
  2460                       
  2461      <xsl:varia ble 
  2462       name="alle rgySource"
  2463      >
  2464                                 
  2465       <xsl:call- template 
  2466        name="getA llergySour ce"
  2467       >
  2468                                           
  2469        <xsl:with- param 
  2470         name="row"  
  2471         select="$r ow"
  2472        />
  2473                                  
  2474       </xsl:call -template>
  2475                        
  2476      </xsl:vari able>
  2477                       
  2478      <xsl:choos e>
  2479                                 
  2480       <xsl:when 
  2481        test="stri ng-length( $allergySo urce)>0"
  2482       >
  2483                                           
  2484        <xsl:value -of 
  2485         select="$a llergySour ce"
  2486        />
  2487                                  
  2488       </xsl:when >
  2489                                 
  2490       <xsl:other wise>
  2491                                           
  2492        <xsl:call- template 
  2493         name="na"
  2494        />
  2495                                  
  2496       </xsl:othe rwise>
  2497                        
  2498      </xsl:choo se>
  2499                       
  2500      <xsl:text>
  2501       &#13;&#10;
  2502      </xsl:text >
  2503     
  2504              
  2505     </xsl:temp late>
  2506    
  2507             
  2508     <!-- Labs  entry row  -->
  2509             
  2510     <xsl:templ ate 
  2511      name="labs Row"
  2512     >
  2513                       
  2514      <xsl:param  
  2515       name="row"
  2516      />
  2517                       
  2518      <xsl:varia ble 
  2519       name="rowD ata" 
  2520       select="n1 :component /n1:observ ation"
  2521      />
  2522                       
  2523      <xsl:varia ble 
  2524       name="obse rvation" 
  2525       select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion"
  2526      />
  2527                       
  2528      <xsl:varia ble 
  2529       name="obse rvation1" 
  2530       select="$r ow/n1:obse rvation"
  2531      />
  2532                       
  2533      <xsl:choos e>
  2534                                 
  2535       <xsl:when   
  2536        test="stri ng-length( $row/n1:or ganizer)!= 0"
  2537       >
  2538                                           
  2539        <!-- Panel  -->
  2540                                           
  2541        <xsl:text>
  2542         &#13;&#10; &#9;
  2543        </xsl:text >
  2544                                           
  2545        <xsl:text>
  2546         Panel: 
  2547        </xsl:text >
  2548                                           
  2549        <xsl:varia ble 
  2550         name="orga nizerName"
  2551        >
  2552                                                    
  2553         <xsl:call- template 
  2554          name="getO rganizerNa me"
  2555         >
  2556                                                              
  2557          <xsl:with- param 
  2558           name="row"  
  2559           select="$r ow"
  2560          />
  2561                                                     
  2562         </xsl:call -template>
  2563                                            
  2564        </xsl:vari able>
  2565                                           
  2566        <xsl:choos e>
  2567                                                    
  2568         <xsl:when 
  2569          test="stri ng-length( $organizer Name)>0"
  2570         >
  2571                                                              
  2572          <xsl:value -of 
  2573           select="$o rganizerNa me"
  2574          />
  2575                                                     
  2576         </xsl:when >
  2577                                                    
  2578         <xsl:other wise>
  2579                                                              
  2580          <xsl:text>
  2581           &#9;..Not  Available. .
  2582          </xsl:text >
  2583                                                     
  2584         </xsl:othe rwise>
  2585                                            
  2586        </xsl:choo se>
  2587       
  2588                                           
  2589        <!-- Panel  Date -->
  2590                                           
  2591        <xsl:text>
  2592         &#13;&#10; &#9;
  2593        </xsl:text >
  2594                                           
  2595        <xsl:text>
  2596         Panel Date
  2597        </xsl:text >
  2598                                           
  2599        <xsl:call- template 
  2600         name="getP anelDT"
  2601        >
  2602                                                    
  2603         <xsl:with- param 
  2604          name="orga nizer" 
  2605          select="$r ow/n1:orga nizer"
  2606         />
  2607                                            
  2608        </xsl:call -template>
  2609       
  2610                                           
  2611        <!-- Sourc e -->
  2612                                           
  2613        <xsl:text>
  2614         &#13;&#10; &#9;
  2615        </xsl:text >
  2616                                           
  2617        <xsl:text>
  2618         Source: 
  2619        </xsl:text >
  2620                                           
  2621        <xsl:choos e>
  2622                                                    
  2623         <xsl:when 
  2624          test="$row /n1:organi zer/n1:aut hor/n1:ass ignedAutho r/n1:repre sentedOrga nization/n 1:name"
  2625         >
  2626                                                              
  2627          <xsl:value -of 
  2628           select="$r ow/n1:orga nizer/n1:a uthor/n1:a ssignedAut hor/n1:rep resentedOr ganization /n1:name"
  2629          />
  2630                                                     
  2631         </xsl:when >
  2632                                                    
  2633         <xsl:when 
  2634          test="$row /n1:organi zer/n1:per former/n1: assignedEn tity/n1:re presentedO rganizatio n/n1:name"
  2635         >
  2636                                                              
  2637          <xsl:value -of 
  2638           select="$r ow/n1:orga nizer/n1:p erformer/n 1:assigned Entity/n1: represente dOrganizat ion/n1:nam e"
  2639          />
  2640                                                     
  2641         </xsl:when >
  2642                                                    
  2643         <xsl:other wise>
  2644                                                              
  2645          <xsl:text>
  2646           &#9;..Not  Available. .
  2647          </xsl:text >
  2648                                                     
  2649         </xsl:othe rwise>
  2650                                            
  2651        </xsl:choo se>
  2652       
  2653                                           
  2654        <!-- Statu s -->
  2655                                           
  2656        <xsl:text>
  2657         &#13;&#10; &#9;
  2658        </xsl:text >
  2659                                           
  2660        <xsl:text>
  2661         Status: 
  2662        </xsl:text >
  2663                                           
  2664        <xsl:choos e>
  2665                                                    
  2666         <xsl:when 
  2667          test="stri ng-length( $row/n1:or ganizer/n1 :statusCod e/@code)>0 "
  2668         >
  2669                                                              
  2670          <xsl:call- template 
  2671           name="flyo verSpan"
  2672          >
  2673                                                                        
  2674           <xsl:with- param 
  2675            name="data
  2676            select="$r ow/n1:orga nizer/n1:s tatusCode/ @code"
  2677           />
  2678                                                               
  2679          </xsl:call -template>
  2680                                                     
  2681         </xsl:when >
  2682                                                    
  2683         <xsl:other wise>
  2684                                                              
  2685          <xsl:text>
  2686           &#9;..Not  Available. .
  2687          </xsl:text >
  2688                                                     
  2689         </xsl:othe rwise>
  2690                                            
  2691        </xsl:choo se>
  2692                                           
  2693        <xsl:text>
  2694         &#13;&#10; &#9;
  2695        </xsl:text >
  2696       
  2697                                           
  2698        <xsl:for-e ach 
  2699         select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion"
  2700        >
  2701        
  2702                                                    
  2703         <!-- Resul t Date/Tim e -->
  2704                                                    
  2705         <xsl:text>
  2706          &#13;&#10; &#9;
  2707         </xsl:text >
  2708                                                    
  2709         <xsl:text>
  2710          &#9;Test D ate:
  2711         </xsl:text >
  2712                                                    
  2713         <xsl:call- template 
  2714          name="getR esultDT"
  2715         >
  2716                                                              
  2717          <xsl:with- param 
  2718           name="obse rvation" 
  2719           select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion"
  2720          />
  2721                                                     
  2722         </xsl:call -template>
  2723        
  2724                                                    
  2725         <!-- Resul t Date/Tim e -->
  2726                                                    
  2727         <xsl:text>
  2728          &#13;&#10; &#9;
  2729         </xsl:text >
  2730                                                    
  2731         <xsl:text>
  2732          &#9;Test N ame:
  2733         </xsl:text >
  2734                                                    
  2735         <xsl:varia ble 
  2736          name="type Result2"
  2737         >
  2738                                                              
  2739          <xsl:call- template 
  2740           name="getR esultType2 "
  2741          >
  2742                                                                        
  2743           <xsl:with- param 
  2744            name="obse rvation" 
  2745            select="."
  2746           />
  2747                                                               
  2748          </xsl:call -template>
  2749                                                     
  2750         </xsl:vari able>
  2751                                                    
  2752         <xsl:choos e>
  2753                                                              
  2754          <xsl:when 
  2755           test="stri ng-length( $typeResul t2)>0"
  2756          >
  2757                                                                        
  2758           <xsl:value -of 
  2759            select="$t ypeResult2 "
  2760           />
  2761                                                               
  2762          </xsl:when >
  2763                                                              
  2764          <xsl:other wise>
  2765                                                                        
  2766           <xsl:varia ble 
  2767            name="type Result3"
  2768           >
  2769                                                                                  
  2770            <xsl:call- template 
  2771             name="getR esultType"
  2772            >
  2773                                                                                            
  2774             <xsl:with- param 
  2775              name="obse rvation" 
  2776              select="."
  2777             />
  2778                                                                                   
  2779            </xsl:call -template>
  2780                                                                         
  2781           </xsl:vari able>
  2782                                                                        
  2783           <xsl:choos e>
  2784                                                                                  
  2785            <xsl:when 
  2786             test="stri ng-length( $typeResul t3)>0"
  2787            >
  2788                                                                                            
  2789             <xsl:value -of 
  2790              select="$t ypeResult3 "
  2791             />
  2792                                                                                   
  2793            </xsl:when >
  2794                                                                                  
  2795            <xsl:other wise>
  2796                                                                                            
  2797             <xsl:text>
  2798              &#9;..Not  Available. .
  2799             </xsl:text >
  2800                                                                                   
  2801            </xsl:othe rwise>
  2802                                                                         
  2803           </xsl:choo se>
  2804                                                               
  2805          </xsl:othe rwise>
  2806                                                     
  2807         </xsl:choo se>
  2808        
  2809                                                    
  2810         <!-- Resul t Value -- >
  2811        
  2812                                                    
  2813         <xsl:text>
  2814          &#13;&#10; &#9;
  2815         </xsl:text >
  2816                                                    
  2817         <xsl:text>
  2818          &#9;Result
  2819         </xsl:text >
  2820                                                    
  2821         <xsl:varia ble 
  2822          name="valu eResult2"
  2823         >
  2824                                                              
  2825          <xsl:call- template 
  2826           name="getR esultValue "
  2827          >
  2828                                                                        
  2829           <xsl:with- param 
  2830            name="obse rvation" 
  2831            select="."
  2832           />
  2833                                                               
  2834          </xsl:call -template>
  2835                                                     
  2836         </xsl:vari able>
  2837                                                    
  2838         <xsl:choos e>
  2839                                                              
  2840          <xsl:when 
  2841           test="stri ng-length( $valueResu lt2)>0"
  2842          >
  2843                                                                        
  2844           <xsl:value -of 
  2845            select="$v alueResult 2"
  2846           />
  2847                                                               
  2848          </xsl:when >
  2849                                                              
  2850          <xsl:other wise>
  2851                                                                        
  2852           <xsl:text>
  2853            &#9;..Not  Available. .
  2854           </xsl:text >
  2855                                                               
  2856          </xsl:othe rwise>
  2857                                                     
  2858         </xsl:choo se>
  2859        
  2860                                                    
  2861         <!-- Resul t Units -- >
  2862                                                    
  2863         <xsl:text>
  2864          &#13;&#10; &#9;
  2865         </xsl:text >
  2866                                                    
  2867         <xsl:text>
  2868          &#9;Unit(s ): 
  2869         </xsl:text >
  2870                                                    
  2871         <xsl:varia ble 
  2872          name="unit s"
  2873         >
  2874                                                              
  2875          <xsl:call- template 
  2876           name="getR esultUnit"
  2877          >
  2878                                                                        
  2879           <xsl:with- param 
  2880            name="obse rvation" 
  2881            select="n1 :observati on"
  2882           />
  2883                                                               
  2884          </xsl:call -template>
  2885                                                     
  2886         </xsl:vari able>
  2887                                                    
  2888         <xsl:choos e>
  2889                                                              
  2890          <xsl:when 
  2891           test="stri ng-length( $units)>0"
  2892          >
  2893                                                                        
  2894           <xsl:value -of 
  2895            select="$u nits"
  2896           />
  2897                                                               
  2898          </xsl:when >
  2899                                                              
  2900          <xsl:when 
  2901           test="$isK aiser"
  2902          >
  2903                                                                        
  2904           <xsl:text>
  2905           </xsl:text >
  2906                                                               
  2907          </xsl:when >                                                 
  2908                                                              
  2909          <xsl:other wise>
  2910                                                                        
  2911           <xsl:text>
  2912            &#9;..Not  Available. .
  2913           </xsl:text >
  2914                                                               
  2915          </xsl:othe rwise>
  2916                                                     
  2917         </xsl:choo se>
  2918        
  2919                                                    
  2920         <!-- inter pretation  -->
  2921                                                    
  2922         <xsl:text>
  2923          &#13;&#10; &#9;
  2924         </xsl:text >
  2925                                                    
  2926         <xsl:text>
  2927          &#9;Interp retation: 
  2928         </xsl:text >
  2929                                                    
  2930         <xsl:varia ble 
  2931          name="inte rpResult1"
  2932         >
  2933                                                              
  2934          <xsl:call- template 
  2935           name="getI nterpretat ion2"
  2936          >
  2937                                                                        
  2938           <xsl:with- param 
  2939            name="obse rvation" 
  2940            select="."
  2941           />
  2942                                                               
  2943          </xsl:call -template>
  2944                                                     
  2945         </xsl:vari able>
  2946                                                    
  2947         <xsl:choos e>
  2948                                                              
  2949          <xsl:when 
  2950           test="stri ng-length( $interpRes ult1)>0"
  2951          >
  2952                                                                        
  2953           <xsl:value -of 
  2954            select="$i nterpResul t1"
  2955           />
  2956                                                               
  2957          </xsl:when >
  2958                                                              
  2959          <xsl:other wise>
  2960                                                                        
  2961           <xsl:varia ble 
  2962            name="inte rpResult2"
  2963           >
  2964                                                                                  
  2965            <xsl:call- template 
  2966             name="getI nterpretat ion"
  2967            >
  2968                                                                                            
  2969             <xsl:with- param 
  2970              name="obse rvation" 
  2971              select="."
  2972             />
  2973                                                                                   
  2974            </xsl:call -template>
  2975                                                                         
  2976           </xsl:vari able>
  2977                                                                        
  2978           <xsl:choos e>
  2979                                                                                  
  2980            <xsl:when 
  2981             test="stri ng-length( $interpRes ult2)>0"
  2982            >
  2983                                                                                            
  2984             <xsl:value -of 
  2985              select="$i nterpResul t2"
  2986             />
  2987                                                                                   
  2988            </xsl:when >
  2989                                                                                  
  2990            <xsl:other wise>
  2991                                                                                            
  2992             <xsl:text>
  2993              &#9;..Not  Available. .
  2994             </xsl:text >
  2995                                                                                   
  2996            </xsl:othe rwise>
  2997                                                                         
  2998           </xsl:choo se>
  2999                                                               
  3000          </xsl:othe rwise>
  3001                                                     
  3002         </xsl:choo se>
  3003        
  3004        
  3005                                                    
  3006         <!-- ref r ange -->
  3007                                                    
  3008         <xsl:text>
  3009          &#13;&#10; &#9;
  3010         </xsl:text >
  3011                                                    
  3012         <xsl:text>
  3013          &#9;Refere nce Range:  
  3014         </xsl:text >
  3015                                                    
  3016         <xsl:varia ble 
  3017          name="ref"
  3018         >
  3019                                                              
  3020          <xsl:call- template 
  3021           name="getR efRange"
  3022          >
  3023                                                                        
  3024           <xsl:with- param 
  3025            name="obse rvation" 
  3026            select="."
  3027           />
  3028                                                               
  3029          </xsl:call -template>
  3030                                                     
  3031         </xsl:vari able>
  3032                                                    
  3033         <xsl:choos e>
  3034                                                              
  3035          <xsl:when 
  3036           test="stri ng-length( $ref)>0"
  3037          >
  3038                                                                        
  3039           <xsl:value -of 
  3040            select="$r ef"
  3041           />
  3042                                                               
  3043          </xsl:when >
  3044                                                              
  3045          <xsl:other wise>
  3046                                                                        
  3047           <xsl:text>
  3048            ..Not Avai lable..
  3049           </xsl:text >
  3050                                                               
  3051          </xsl:othe rwise>
  3052                                                     
  3053         </xsl:choo se>
  3054                                                    
  3055         <xsl:text>
  3056          &#13;&#10; &#9;
  3057         </xsl:text >
  3058                                                    
  3059         <xsl:text>
  3060          &#13;&#10; &#9;
  3061         </xsl:text >
  3062                                            
  3063        </xsl:for- each>
  3064                                  
  3065       </xsl:when >
  3066                        
  3067      </xsl:choo se>
  3068              
  3069     </xsl:temp late>
  3070    
  3071             
  3072     <!-- Encou nters entr y row -->
  3073             
  3074     <xsl:templ ate 
  3075      name="encR ow"
  3076     >
  3077                       
  3078      <xsl:param  
  3079       name="row"
  3080      />
  3081     
  3082                       
  3083      <!-- Encou nter Date/ Time-->
  3084                       
  3085      <xsl:text>
  3086       &#13;&#10; &#9;
  3087      </xsl:text >
  3088                       
  3089      <xsl:text>
  3090       Date: 
  3091      </xsl:text >
  3092                       
  3093      <xsl:choos e>
  3094                                 
  3095       <xsl:when 
  3096        test="$row /n1:encoun ter/n1:eff ectiveTime /n1:low/@v alue"
  3097       >
  3098                                           
  3099        <xsl:call- template 
  3100         name="form atDateShor t"
  3101        >
  3102                                                    
  3103         <xsl:with- param 
  3104          name="date String" 
  3105          select="$r ow/n1:enco unter/n1:e ffectiveTi me/n1:low/ @value"
  3106         />
  3107                                            
  3108        </xsl:call -template>
  3109                                  
  3110       </xsl:when >
  3111                                 
  3112       <xsl:when 
  3113        test="$row /n1:encoun ter/n1:eff ectiveTime /@value"
  3114       >
  3115                                           
  3116        <xsl:call- template 
  3117         name="form atDateShor t"
  3118        >
  3119                                                    
  3120         <xsl:with- param 
  3121          name="date String" 
  3122          select="$r ow/n1:enco unter/n1:e ffectiveTi me/@value"
  3123         />
  3124                                            
  3125        </xsl:call -template>
  3126                                  
  3127       </xsl:when >
  3128                                 
  3129       <xsl:other wise>
  3130                                           
  3131        <xsl:call- template 
  3132         name="na"
  3133        />
  3134                                  
  3135       </xsl:othe rwise>
  3136                        
  3137      </xsl:choo se>
  3138     
  3139                       
  3140      <!-- Encou nter Type   -->
  3141                       
  3142      <xsl:text>
  3143       &#13;&#10; &#9;
  3144      </xsl:text >
  3145                       
  3146      <xsl:text>
  3147       Type: 
  3148      </xsl:text >
  3149                       
  3150      <xsl:choos e>
  3151                                 
  3152       <xsl:when 
  3153        test="$row /n1:encoun ter"
  3154       >
  3155                                           
  3156        <xsl:call- template 
  3157         name="getE ncounterTy pe"
  3158        >
  3159                                                    
  3160         <xsl:with- param 
  3161          name="enco unter" 
  3162          select="$r ow/n1:enco unter"
  3163         />
  3164                                            
  3165        </xsl:call -template>
  3166                                  
  3167       </xsl:when >
  3168                                 
  3169       <xsl:other wise>
  3170                                           
  3171        <xsl:call- template 
  3172         name="na"
  3173        />
  3174                                  
  3175       </xsl:othe rwise>
  3176                        
  3177      </xsl:choo se>
  3178     
  3179     
  3180                       
  3181      <!-- Encou nter Free  Text Type- ->
  3182                       
  3183      <xsl:text>
  3184       &#13;&#10; &#9;
  3185      </xsl:text >
  3186                       
  3187      <xsl:text>
  3188       Free Text:  
  3189      </xsl:text >
  3190                       
  3191      <xsl:varia ble 
  3192       name="encF reeText"
  3193      >
  3194                                 
  3195       <xsl:call- template 
  3196        name="getE ncounterFr eeText"
  3197       >
  3198                                           
  3199        <xsl:with- param 
  3200         name="enco unter" 
  3201         select="$r ow/n1:enco unter"
  3202        />
  3203                                  
  3204       </xsl:call -template>
  3205                        
  3206      </xsl:vari able>
  3207                       
  3208      <xsl:choos e>
  3209                                 
  3210       <xsl:when 
  3211        test="stri ng-length( $encFreeTe xt)>1"
  3212       >
  3213                                           
  3214        <xsl:call- template 
  3215         name="repl aceSquiggl esWithLine feeds"
  3216        >
  3217                                                    
  3218         <xsl:with- param 
  3219          name="text
  3220          select="$e ncFreeText "
  3221         />
  3222                                            
  3223        </xsl:call -template>
  3224                                  
  3225       </xsl:when >
  3226                                 
  3227       <xsl:other wise>
  3228                                           
  3229        <xsl:call- template 
  3230         name="na"
  3231        />
  3232                                  
  3233       </xsl:othe rwise>
  3234                        
  3235      </xsl:choo se>
  3236     
  3237     
  3238                       
  3239      <!-- Encou nter Provi der-->
  3240                       
  3241      <xsl:text>
  3242       &#13;&#10; &#9;
  3243      </xsl:text >
  3244                       
  3245      <xsl:text>
  3246       Provider: 
  3247      </xsl:text >
  3248                       
  3249      <xsl:varia ble 
  3250       name="encP rovider"
  3251      >
  3252                                 
  3253       <xsl:call- template 
  3254        name="getE ncounterPr ovider"
  3255       >
  3256                                           
  3257        <xsl:with- param 
  3258         name="enco unter" 
  3259         select="$r ow/n1:enco unter"
  3260        />
  3261                                  
  3262       </xsl:call -template>
  3263                        
  3264      </xsl:vari able>
  3265                       
  3266      <xsl:choos e>
  3267                                 
  3268       <xsl:when 
  3269        test="stri ng-length( $encProvid er)>1"
  3270       >
  3271                                           
  3272        <xsl:value -of 
  3273         select="no rmalize-sp ace($encPr ovider)"
  3274        />
  3275                                  
  3276       </xsl:when >
  3277                                 
  3278       <xsl:other wise>
  3279                                           
  3280        <xsl:call- template 
  3281         name="na"
  3282        />
  3283                                  
  3284       </xsl:othe rwise>
  3285                        
  3286      </xsl:choo se>
  3287                       
  3288      <xsl:text>
  3289       &#13;&#10; &#9;
  3290      </xsl:text >
  3291              
  3292     </xsl:temp late>
  3293    
  3294             
  3295     <!-- Proce dures entr y row -->
  3296             
  3297     <xsl:templ ate 
  3298      name="proc edureRow"
  3299     >
  3300                       
  3301      <xsl:param  
  3302       name="row"
  3303      />
  3304     
  3305                       
  3306      <!-- Proce dure Date/ Time-->
  3307                       
  3308      <xsl:text>
  3309       &#13;&#10; &#9;
  3310      </xsl:text >
  3311                       
  3312      <xsl:text>
  3313       Date: 
  3314      </xsl:text >
  3315                       
  3316      <xsl:choos e>
  3317                                 
  3318       <xsl:when 
  3319        test="$row /n1:proced ure/n1:eff ectiveTime /n1:low/@v alue"
  3320       >
  3321                                           
  3322        <xsl:call- template 
  3323         name="form atDateShor t"
  3324        >
  3325                                                    
  3326         <xsl:with- param 
  3327          name="date String" 
  3328          select="$r ow/n1:proc edure/n1:e ffectiveTi me/n1:low/ @value"
  3329         />
  3330                                            
  3331        </xsl:call -template>
  3332                                  
  3333       </xsl:when >
  3334                                 
  3335       <xsl:other wise>
  3336                                           
  3337        <xsl:call- template 
  3338         name="na"
  3339        />
  3340                                  
  3341       </xsl:othe rwise>
  3342                        
  3343      </xsl:choo se>
  3344                       
  3345      <xsl:text>
  3346       &#13;&#10; &#9;
  3347      </xsl:text >
  3348     
  3349                       
  3350      <!-- Proce dure Type   -->
  3351                       
  3352      <xsl:text>
  3353       &#13;&#10; &#9;
  3354      </xsl:text >
  3355                       
  3356      <xsl:text>
  3357       Procedure:  
  3358      </xsl:text >
  3359                       
  3360      <xsl:varia ble 
  3361       name="type "
  3362      >
  3363                                 
  3364       <xsl:call- template 
  3365        name="getP rocedureTy pe"
  3366       >
  3367                                           
  3368        <xsl:with- param 
  3369         name="proc edure" 
  3370         select="$r ow/n1:proc edure"
  3371        />
  3372                                  
  3373       </xsl:call -template>
  3374                        
  3375      </xsl:vari able>
  3376                       
  3377      <xsl:choos e>
  3378                                 
  3379       <xsl:when 
  3380        test="stri ng-length( $type)>1"
  3381       >
  3382                                           
  3383        <xsl:value -of 
  3384         select="$t ype" 
  3385         disable-ou tput-escap ing="yes"
  3386        />
  3387                                  
  3388       </xsl:when >
  3389                                 
  3390       <xsl:other wise>
  3391                                           
  3392        <xsl:call- template 
  3393         name="na"
  3394        />
  3395                                  
  3396       </xsl:othe rwise>
  3397                        
  3398      </xsl:choo se>
  3399     
  3400                       
  3401      <!-- Proce dure Free  Text Type- ->
  3402                       
  3403      <xsl:text>
  3404       &#13;&#10; &#9;
  3405      </xsl:text >
  3406                       
  3407      <xsl:text>
  3408       Free Text:  
  3409      </xsl:text >
  3410                       
  3411      <xsl:varia ble 
  3412       name="proc FreeText"
  3413      >
  3414                                 
  3415       <xsl:call- template 
  3416        name="getP rocedureFr eeText"
  3417       >
  3418                                           
  3419        <xsl:with- param 
  3420         name="proc edure" 
  3421         select="$r ow/n1:proc edure"
  3422        />
  3423                                  
  3424       </xsl:call -template>
  3425                        
  3426      </xsl:vari able>
  3427                       
  3428      <xsl:choos e>
  3429                                 
  3430       <xsl:when 
  3431        test="stri ng-length( $procFreeT ext)>1"
  3432       >
  3433                                           
  3434        <xsl:call- template 
  3435         name="repl aceSquiggl esWithLine feeds"
  3436        >
  3437                                                    
  3438         <xsl:with- param 
  3439          name="text
  3440          select="$p rocFreeTex t"
  3441         />
  3442                                            
  3443        </xsl:call -template>
  3444                                  
  3445       </xsl:when >
  3446                                 
  3447       <xsl:other wise>
  3448                                           
  3449        <xsl:call- template 
  3450         name="na"
  3451        />
  3452                                  
  3453       </xsl:othe rwise>
  3454                        
  3455      </xsl:choo se>
  3456     
  3457                       
  3458      <!-- Proce dure Provi der-->
  3459                       
  3460      <xsl:text>
  3461       &#13;&#10; &#9;
  3462      </xsl:text >
  3463                       
  3464      <xsl:text>
  3465       Provider: 
  3466      </xsl:text >
  3467                       
  3468      <xsl:varia ble 
  3469       name="proc Provider"
  3470      >
  3471                                 
  3472       <xsl:call- template 
  3473        name="getP rocedurePr ovider"
  3474       >
  3475                                           
  3476        <xsl:with- param 
  3477         name="proc edure" 
  3478         select="$r ow/n1:proc edure"
  3479        />
  3480                                  
  3481       </xsl:call -template>
  3482                        
  3483      </xsl:vari able>
  3484                       
  3485      <xsl:choos e>
  3486                                 
  3487       <xsl:when 
  3488        test="stri ng-length( $procProvi der)>1"
  3489       >
  3490                                           
  3491        <xsl:value -of 
  3492         select="$p rocProvide r"
  3493        />
  3494                                  
  3495       </xsl:when >
  3496                                 
  3497       <xsl:other wise>
  3498                                           
  3499        <xsl:call- template 
  3500         name="na"
  3501        />
  3502                                  
  3503       </xsl:othe rwise>
  3504                        
  3505      </xsl:choo se>
  3506                       
  3507      <xsl:text>
  3508       &#13;&#10; &#9;
  3509      </xsl:text >
  3510              
  3511     </xsl:temp late>
  3512    
  3513             
  3514     <!-- Immun izations e ntry row - ->
  3515             
  3516     <xsl:templ ate 
  3517      name="immu nizationsR ow"
  3518     >
  3519                       
  3520      <xsl:param  
  3521       name="row"
  3522      />
  3523                       
  3524      <xsl:varia ble 
  3525       name="rowD ata" 
  3526       select="$r ow/n1:subs tanceAdmin istration/ n1:consuma ble/n1:man ufacturedP roduct/n1: manufactur edMaterial "
  3527      />
  3528                       
  3529      <xsl:varia ble 
  3530       name="rowS ubj" 
  3531       select="$r ow/n1:subs tanceAdmin istration/ n1:entryRe lationship [@typeCode ='SUBJ']/n 1:observat ion"
  3532      />
  3533                       
  3534      <xsl:varia ble 
  3535       name="rowC ause" 
  3536       select="$r ow/n1:subs tanceAdmin istration/ n1:entryRe lationship [@typeCode ='CAUS']/n 1:observat ion"
  3537      />
  3538                       
  3539      <xsl:varia ble 
  3540       name="subs tanceAdmin istration"  
  3541       select="$r ow/n1:subs tanceAdmin istration"
  3542      />
  3543     
  3544     
  3545                       
  3546      <!-- Immun ization Na me -->
  3547                       
  3548      <xsl:text>
  3549       &#13;&#10; &#9;
  3550      </xsl:text >
  3551                       
  3552      <xsl:text>
  3553       Name: 
  3554      </xsl:text >
  3555                       
  3556      <xsl:varia ble 
  3557       name="immu nResult"
  3558      >
  3559                                 
  3560       <xsl:call- template 
  3561        name="getI mmunizatio n"
  3562       >
  3563                                           
  3564        <xsl:with- param 
  3565         name="subs tanceAdmin istration"  
  3566         select="$s ubstanceAd ministrati on"
  3567        />
  3568                                  
  3569       </xsl:call -template>
  3570                        
  3571      </xsl:vari able>
  3572                       
  3573      <xsl:if 
  3574       test="stri ng-length( )>0"
  3575      >
  3576                                 
  3577       <xsl:value -of 
  3578        select="no rmalize-sp ace($immun Result)"
  3579       />
  3580                        
  3581      </xsl:if>
  3582     
  3583                       
  3584      <!-- Serie s -->
  3585                       
  3586      <xsl:text>
  3587       &#13;&#10; &#9;
  3588      </xsl:text >
  3589                       
  3590      <xsl:text>
  3591       Series: 
  3592      </xsl:text >
  3593                       
  3594      <xsl:value -of 
  3595       select="$r owSubj/n1: value"
  3596      />
  3597     
  3598                       
  3599      <!-- Immun ization Da te/Time-->
  3600                       
  3601      <xsl:text>
  3602       &#13;&#10; &#9;
  3603      </xsl:text >
  3604                       
  3605      <xsl:text>
  3606       Date: 
  3607      </xsl:text >
  3608                       
  3609      <xsl:choos e>
  3610                                 
  3611       <xsl:when 
  3612        test="stri ng-length( $row/n1:su bstanceAdm inistratio n/n1:effec tiveTime/@ value)=0"
  3613       >
  3614                                           
  3615        <xsl:text>
  3616         -- Not Ava ilable --
  3617        </xsl:text >
  3618                                  
  3619       </xsl:when >
  3620                                 
  3621       <xsl:other wise>
  3622                                           
  3623        <xsl:call- template 
  3624         name="form atDateShor t"
  3625        >
  3626                                                    
  3627         <xsl:with- param 
  3628          name="date String" 
  3629          select="$r ow/n1:subs tanceAdmin istration/ n1:effecti veTime/@va lue"
  3630         />
  3631                                            
  3632        </xsl:call -template>
  3633                                  
  3634       </xsl:othe rwise>
  3635                        
  3636      </xsl:choo se>
  3637                       
  3638      <xsl:text>
  3639       &#13;&#10; &#9;
  3640      </xsl:text >
  3641     
  3642              
  3643     </xsl:temp late>
  3644    
  3645             
  3646     <!--   Tit le  -->
  3647             
  3648     <xsl:templ ate 
  3649      match="n1: title"
  3650     >
  3651                       
  3652      <xsl:varia ble 
  3653       name="comp Found"
  3654      >
  3655                                 
  3656       <xsl:call- template 
  3657        name="comp onentFound "
  3658       >
  3659                                           
  3660        <xsl:with- param 
  3661         name="comp Section" 
  3662         select=".. /."
  3663        />
  3664                                  
  3665       </xsl:call -template>
  3666                        
  3667      </xsl:vari able>
  3668                       
  3669      <xsl:choos e>
  3670                                 
  3671       <xsl:when 
  3672        test="stri ng-length( $compFound )>0"
  3673       >
  3674                                           
  3675        <xsl:text>
  3676         &#13;&#10;
  3677        </xsl:text >
  3678                                           
  3679        <xsl:text>
  3680         &#13;&#10;
  3681        </xsl:text >
  3682                                           
  3683        <xsl:value -of 
  3684         select="."
  3685        />
  3686                                           
  3687        <xsl:text>
  3688         &#13;&#10;
  3689        </xsl:text >
  3690                                           
  3691        <xsl:text>
  3692         ========== ========== ========== ========
  3693        </xsl:text >
  3694                                           
  3695        <xsl:text>
  3696         &#13;&#10;
  3697        </xsl:text >
  3698                                  
  3699       </xsl:when >
  3700                        
  3701      </xsl:choo se>
  3702              
  3703     </xsl:temp late>
  3704    
  3705             
  3706     <!--   Tex t   -->
  3707             
  3708     <xsl:templ ate 
  3709      match="n1: text"
  3710     >
  3711                       
  3712      <xsl:apply -templates  />
  3713              
  3714     </xsl:temp late>
  3715    
  3716             
  3717     <!--   par agraph  -- >
  3718             
  3719     <xsl:templ ate 
  3720      match="n1: paragraph"
  3721     >
  3722                       
  3723      <xsl:text>
  3724       &#13;&#10;
  3725      </xsl:text >
  3726                       
  3727      <xsl:apply -templates />
  3728              
  3729     </xsl:temp late>
  3730    
  3731             
  3732     <!--     C ontent w/  deleted te xt is hidd en -->
  3733             
  3734     <xsl:templ ate 
  3735      match="n1: content[@r evised='de lete']"
  3736     />
  3737    
  3738             
  3739     <!--   con tent  -->
  3740             
  3741     <xsl:templ ate 
  3742      match="n1: content"
  3743     >
  3744                       
  3745      <xsl:apply -templates />
  3746              
  3747     </xsl:temp late>
  3748    
  3749    
  3750             
  3751     <!--   lis t  -->
  3752             
  3753     <xsl:templ ate 
  3754      match="n1: list"
  3755     >
  3756                       
  3757      <xsl:text>
  3758       &#13;&#10;
  3759      </xsl:text >
  3760                       
  3761      <xsl:if 
  3762       test="n1:c aption"
  3763      >
  3764                                 
  3765       <xsl:text>
  3766        ========== ========== ===
  3767       </xsl:text >
  3768                                 
  3769       <xsl:text>
  3770        &#13;&#10;
  3771       </xsl:text >
  3772                                 
  3773       <xsl:apply -templates  
  3774        select="n1 :caption"
  3775       />
  3776                                 
  3777       <xsl:text>
  3778        &#13;&#10;
  3779       </xsl:text >
  3780                                 
  3781       <xsl:text>
  3782        ========== ========== ===
  3783       </xsl:text >
  3784                                 
  3785       <xsl:text>
  3786        &#13;&#10;
  3787       </xsl:text >
  3788                        
  3789      </xsl:if>
  3790                       
  3791      <xsl:for-e ach 
  3792       select="n1 :item"
  3793      >
  3794                                 
  3795       <xsl:text>
  3796        --
  3797       </xsl:text >
  3798                                 
  3799       <xsl:apply -templates  />
  3800                                 
  3801       <xsl:text>
  3802        &#13;&#10;
  3803       </xsl:text >
  3804                        
  3805      </xsl:for- each>
  3806              
  3807     </xsl:temp late>
  3808    
  3809             
  3810     <xsl:templ ate 
  3811      match="n1: list[@list Type='orde red']"
  3812     >
  3813                       
  3814      <xsl:if 
  3815       test="n1:c aption"
  3816      >
  3817                                 
  3818       <span 
  3819        style="fon t-weight:b old; "
  3820       >
  3821                                           
  3822        <xsl:apply -templates  
  3823         select="n1 :caption"
  3824        />
  3825                                  
  3826       </span>
  3827                        
  3828      </xsl:if>
  3829                       
  3830      <ol>
  3831                                 
  3832       <xsl:for-e ach 
  3833        select="n1 :item"
  3834       >
  3835                                           
  3836        <li>
  3837                                                    
  3838         <xsl:apply -templates  />
  3839                                            
  3840        </li>
  3841                                  
  3842       </xsl:for- each>
  3843                        
  3844      </ol>
  3845              
  3846     </xsl:temp late>
  3847    
  3848             
  3849     <!--   cap tion  -->
  3850             
  3851     <xsl:templ ate 
  3852      match="n1: caption"
  3853     >
  3854                       
  3855      <xsl:apply -templates />
  3856                       
  3857      <xsl:text>
  3858      
  3859      </xsl:text >
  3860              
  3861     </xsl:temp late>
  3862    
  3863             
  3864     <!--       Tables   - ->
  3865             
  3866     <xsl:templ ate 
  3867      match="n1: table/@*|n 1:thead/@* |n1:tfoot/ @*|n1:tbod y/@*|n1:co lgroup/@*| n1:col/@*| n1:tr/@*|n 1:th/@*|n1 :td/@*"
  3868     >
  3869                       
  3870      <xsl:copy>
  3871                                 
  3872       <xsl:copy- of 
  3873        select="@* "
  3874       />
  3875                                 
  3876       <xsl:apply -templates />
  3877                        
  3878      </xsl:copy >
  3879              
  3880     </xsl:temp late>
  3881    
  3882             
  3883     <xsl:templ ate 
  3884      match="n1: table"
  3885     >
  3886                       
  3887      <table>
  3888                                 
  3889       <xsl:copy- of 
  3890        select="@* "
  3891       />
  3892                                 
  3893       <xsl:apply -templates />
  3894                        
  3895      </table>
  3896              
  3897     </xsl:temp late>
  3898    
  3899             
  3900     <xsl:templ ate 
  3901      match="n1: thead"
  3902     >
  3903                       
  3904      <thead>
  3905                                 
  3906       <xsl:copy- of 
  3907        select="@* "
  3908       />
  3909                                 
  3910       <xsl:apply -templates />
  3911                        
  3912      </thead>
  3913              
  3914     </xsl:temp late>
  3915    
  3916             
  3917     <xsl:templ ate 
  3918      match="n1: tfoot"
  3919     >
  3920                       
  3921      <tfoot>
  3922                                 
  3923       <xsl:copy- of 
  3924        select="@* "
  3925       />
  3926                                 
  3927       <xsl:apply -templates />
  3928                        
  3929      </tfoot>
  3930              
  3931     </xsl:temp late>
  3932    
  3933             
  3934     <xsl:templ ate 
  3935      match="n1: tbody"
  3936     >
  3937                       
  3938      <tbody>
  3939                                 
  3940       <xsl:copy- of 
  3941        select="@* "
  3942       />
  3943                                 
  3944       <xsl:apply -templates />
  3945                        
  3946      </tbody>
  3947              
  3948     </xsl:temp late>
  3949    
  3950             
  3951     <xsl:templ ate 
  3952      match="n1: colgroup"
  3953     >
  3954                       
  3955      <colgroup>
  3956                                 
  3957       <xsl:copy- of 
  3958        select="@* "
  3959       />
  3960                                 
  3961       <xsl:apply -templates />
  3962                        
  3963      </colgroup >
  3964              
  3965     </xsl:temp late>
  3966    
  3967             
  3968     <xsl:templ ate 
  3969      match="n1: col"
  3970     >
  3971                       
  3972      <col>
  3973                                 
  3974       <xsl:copy- of 
  3975        select="@* "
  3976       />
  3977                                 
  3978       <xsl:apply -templates />
  3979                        
  3980      </col>
  3981              
  3982     </xsl:temp late>
  3983    
  3984             
  3985     <xsl:templ ate 
  3986      match="n1: tr"
  3987     >
  3988                       
  3989      <tr>
  3990                                 
  3991       <xsl:copy- of 
  3992        select="@* "
  3993       />
  3994                                 
  3995       <xsl:apply -templates />
  3996                        
  3997      </tr>
  3998              
  3999     </xsl:temp late>
  4000    
  4001             
  4002     <xsl:templ ate 
  4003      match="n1: th"
  4004     >
  4005                       
  4006      <th>
  4007                                 
  4008       <xsl:copy- of 
  4009        select="@* "
  4010       />
  4011                                 
  4012       <xsl:apply -templates />
  4013                        
  4014      </th>
  4015              
  4016     </xsl:temp late>
  4017    
  4018             
  4019     <xsl:templ ate 
  4020      match="n1: td"
  4021     >
  4022                       
  4023      <td>
  4024                                 
  4025       <xsl:copy- of 
  4026        select="@* "
  4027       />
  4028                                 
  4029       <xsl:apply -templates />
  4030                        
  4031      </td>
  4032              
  4033     </xsl:temp late>
  4034    
  4035             
  4036     <xsl:templ ate 
  4037      match="n1: table/n1:c aption"
  4038     >
  4039                       
  4040      <span 
  4041       style="fon t-weight:b old; "
  4042      >
  4043                                 
  4044       <xsl:apply -templates />
  4045                        
  4046      </span>
  4047              
  4048     </xsl:temp late>
  4049    
  4050             
  4051     <xsl:templ ate 
  4052      match="n1: renderMult iMedia"
  4053     >
  4054              
  4055     </xsl:temp late>
  4056    
  4057             
  4058     <xsl:templ ate 
  4059      match="//n 1:*[@style Code]"
  4060     >
  4061     
  4062                       
  4063      <xsl:if 
  4064       test="@sty leCode='Bo ld'"
  4065      >
  4066                                 
  4067       <xsl:eleme nt 
  4068        name='b'
  4069       >
  4070                                           
  4071        <xsl:apply -templates />
  4072                                  
  4073       </xsl:elem ent>
  4074                        
  4075      </xsl:if>
  4076     
  4077                       
  4078      <xsl:if 
  4079       test="@sty leCode='It alics'"
  4080      >
  4081                                 
  4082       <xsl:eleme nt 
  4083        name='i'
  4084       >
  4085                                           
  4086        <xsl:apply -templates />
  4087                                  
  4088       </xsl:elem ent>
  4089                        
  4090      </xsl:if>
  4091     
  4092                       
  4093      <xsl:if 
  4094       test="@sty leCode='Un derline'"
  4095      >
  4096                                 
  4097       <xsl:eleme nt 
  4098        name='u'
  4099       >
  4100                                           
  4101        <xsl:apply -templates />
  4102                                  
  4103       </xsl:elem ent>
  4104                        
  4105      </xsl:if>
  4106     
  4107                       
  4108      <xsl:if 
  4109       test="cont ains(@styl eCode,'Bol d') and co ntains(@st yleCode,'I talics') a nd not (co ntains(@st yleCode, ' Underline' ))"
  4110      >
  4111                                 
  4112       <xsl:eleme nt 
  4113        name='b'
  4114       >
  4115                                           
  4116        <xsl:eleme nt 
  4117         name='i'
  4118        >
  4119                                                    
  4120         <xsl:apply -templates />
  4121                                            
  4122        </xsl:elem ent>
  4123                                  
  4124       </xsl:elem ent>
  4125                        
  4126      </xsl:if>
  4127     
  4128                       
  4129      <xsl:if 
  4130       test="cont ains(@styl eCode,'Bol d') and co ntains(@st yleCode,'U nderline')  and not ( contains(@ styleCode,  'Italics' ))"
  4131      >
  4132                                 
  4133       <xsl:eleme nt 
  4134        name='b'
  4135       >
  4136                                           
  4137        <xsl:eleme nt 
  4138         name='u'
  4139        >
  4140                                                    
  4141         <xsl:apply -templates />
  4142                                            
  4143        </xsl:elem ent>
  4144                                  
  4145       </xsl:elem ent>
  4146                        
  4147      </xsl:if>
  4148     
  4149                       
  4150      <xsl:if 
  4151       test="cont ains(@styl eCode,'Ita lics') and  contains( @styleCode ,'Underlin e') and no t (contain s(@styleCo de, 'Bold' ))"
  4152      >
  4153                                 
  4154       <xsl:eleme nt 
  4155        name='i'
  4156       >
  4157                                           
  4158        <xsl:eleme nt 
  4159         name='u'
  4160        >
  4161                                                    
  4162         <xsl:apply -templates />
  4163                                            
  4164        </xsl:elem ent>
  4165                                  
  4166       </xsl:elem ent>
  4167                        
  4168      </xsl:if>
  4169     
  4170                       
  4171      <xsl:if 
  4172       test="cont ains(@styl eCode,'Ita lics') and  contains( @styleCode ,'Underlin e') and co ntains(@st yleCode, ' Bold')"
  4173      >
  4174                                 
  4175       <xsl:eleme nt 
  4176        name='b'
  4177       >
  4178                                           
  4179        <xsl:eleme nt 
  4180         name='i'
  4181        >
  4182                                                    
  4183         <xsl:eleme nt 
  4184          name='u'
  4185         >
  4186                                                              
  4187          <xsl:apply -templates />
  4188                                                     
  4189         </xsl:elem ent>
  4190                                            
  4191        </xsl:elem ent>
  4192                                  
  4193       </xsl:elem ent>
  4194                        
  4195      </xsl:if>
  4196     
  4197              
  4198     </xsl:temp late>
  4199    
  4200             
  4201     <!--    Su perscript  or Subscri pt   -->
  4202             
  4203     <xsl:templ ate 
  4204      match="n1: sup"
  4205     >
  4206                       
  4207      <xsl:eleme nt 
  4208       name='sup'
  4209      >
  4210                                 
  4211       <xsl:apply -templates />
  4212                        
  4213      </xsl:elem ent>
  4214              
  4215     </xsl:temp late>
  4216             
  4217     <xsl:templ ate 
  4218      match="n1: sub"
  4219     >
  4220                       
  4221      <xsl:eleme nt 
  4222       name='sub'
  4223      >
  4224                                 
  4225       <xsl:apply -templates />
  4226                        
  4227      </xsl:elem ent>
  4228              
  4229     </xsl:temp late>
  4230    
  4231             
  4232     <!--  Bott omline  -- >
  4233    
  4234             
  4235     <xsl:templ ate 
  4236      name="disp layBottomL ine"
  4237     >
  4238                       
  4239      <xsl:text>
  4240       &#13;&#10;
  4241      </xsl:text >
  4242                       
  4243      <xsl:text>
  4244       Electronic ally gener ated by: 
  4245      </xsl:text >
  4246                       
  4247      <xsl:text>
  4248       &#13;&#10;
  4249      </xsl:text >
  4250                       
  4251      <xsl:call- template 
  4252       name="getN ame"
  4253      >
  4254                                 
  4255       <xsl:with- param 
  4256        name="name "
  4257                    
  4258        select="n1 :legalAuth enticator/ n1:assigne dEntity/n1 :represent edOrganiza tion/n1:na me"
  4259       />
  4260                        
  4261      </xsl:call -template>
  4262                       
  4263      <xsl:text>
  4264        on 
  4265      </xsl:text >
  4266                       
  4267      <xsl:choos e>
  4268                                 
  4269       <xsl:when 
  4270        test="stri ng-length( n1:effecti veTime/@va lue)=0"
  4271       >
  4272                                           
  4273        <xsl:call- template 
  4274         name="na"
  4275        />
  4276                                  
  4277       </xsl:when >
  4278                                 
  4279       <xsl:when 
  4280        test="star ts-with(n1 :effective Time/@valu e,' ')"
  4281       >
  4282                                           
  4283        <xsl:call- template 
  4284         name="na"
  4285        />
  4286                                  
  4287       </xsl:when >
  4288                                 
  4289       <xsl:other wise>
  4290                                           
  4291        <xsl:call- template 
  4292         name="form atDateLong "
  4293        >
  4294                                                    
  4295         <xsl:with- param 
  4296          name="date String" 
  4297          select="n1 :effective Time/@valu e"
  4298         />
  4299                                            
  4300        </xsl:call -template>
  4301                                  
  4302       </xsl:othe rwise>
  4303                        
  4304      </xsl:choo se>
  4305                       
  4306      <xsl:text>
  4307       &#13;&#10;
  4308      </xsl:text >
  4309              
  4310     </xsl:temp late>
  4311    
  4312             
  4313     <xsl:templ ate 
  4314      match="n1: component/ n1:section [n1:templa teId/@root ='2.16.840 .1.113883. IP          ']/n1:text /n1:table/ n1:tbody"
  4315     >
  4316                       
  4317      <xsl:apply -templates >
  4318                                 
  4319       <xsl:sort 
  4320        select="n1 :td[3]" 
  4321        order="des cending"
  4322       />
  4323                        
  4324      </xsl:appl y-template s>
  4325              
  4326     </xsl:temp late>
  4327    
  4328             
  4329     <xsl:templ ate 
  4330      match="n1: component/ n1:section [n1:templa teId/@root ='2.16.840 .1.113883. IP         ']/n1:text /n1:table/ n1:tbody"
  4331     >
  4332                       
  4333      <xsl:apply -templates >
  4334                                 
  4335       <xsl:sort 
  4336        select="n1 :td[5]" 
  4337        order="des cending"
  4338       />
  4339                        
  4340      </xsl:appl y-template s>
  4341              
  4342     </xsl:temp late>
  4343    
  4344             
  4345     <xsl:templ ate 
  4346      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"
  4347     >
  4348                       
  4349      <xsl:apply -templates >
  4350                                 
  4351       <xsl:sort 
  4352        select="n1 :td[2]" 
  4353        order="des cending"
  4354       />
  4355                        
  4356      </xsl:appl y-template s>
  4357              
  4358     </xsl:temp late>
  4359    
  4360             
  4361     <xsl:templ ate 
  4362      match="n1: component/ n1:section [n1:templa teId/@root ='2.16.840 .1.113883. IP          ']/n1:text /n1:table/ n1:tbody/n 1:tr/n1:td [3]"
  4363     >
  4364                       
  4365      <td>
  4366                                 
  4367       <xsl:call- template 
  4368        name="form atDateShor t"
  4369       >
  4370                                           
  4371        <xsl:with- param 
  4372         name="date String"
  4373                                            
  4374         select="te xt()"
  4375        />
  4376                                  
  4377       </xsl:call -template>
  4378                        
  4379      </td>
  4380              
  4381     </xsl:temp late>
  4382    
  4383             
  4384     <xsl:templ ate 
  4385      match="n1: component/ n1:section [n1:templa teId/@root ='2.16.840 .1.113883. IP         ']/n1:text /n1:table/ n1:tbody/n 1:tr/n1:td [5]"
  4386     >
  4387                       
  4388      <td>
  4389                                 
  4390       <xsl:call- template 
  4391        name="form atDateShor t"
  4392       >
  4393                                           
  4394        <xsl:with- param 
  4395         name="date String"
  4396                                                     
  4397         select="te xt()"
  4398        />
  4399                                  
  4400       </xsl:call -template>
  4401                        
  4402      </td>
  4403              
  4404     </xsl:temp late>
  4405    
  4406             
  4407     <xsl:templ ate 
  4408      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]"
  4409     >
  4410                       
  4411      <td>
  4412                                 
  4413       <xsl:call- template 
  4414        name="form atDateShor t"
  4415       >
  4416                                           
  4417        <xsl:with- param 
  4418         name="date String"
  4419                                                     
  4420         select="co ncat(subst ring(text( ),1,4),sub string(tex t(),6,2),s ubstring(t ext(),9,2) )"
  4421        />
  4422                                  
  4423       </xsl:call -template>
  4424                        
  4425      </td>
  4426              
  4427     </xsl:temp late>
  4428    
  4429             
  4430     <xsl:templ ate 
  4431      name="noDa ta_Clipboa rd"
  4432     >
  4433                       
  4434      <xsl:text>
  4435       &#13;&#10;
  4436      </xsl:text >
  4437                       
  4438      <xsl:text>
  4439        No data f ound for t his domain
  4440      </xsl:text >
  4441              
  4442     </xsl:temp late>
  4443    
  4444             
  4445     <xsl:templ ate 
  4446      name="flyo verSpan"
  4447     >
  4448                       
  4449      <xsl:param  
  4450       name="data "
  4451      />
  4452                       
  4453      <xsl:value -of 
  4454       select="$d ata"
  4455      />
  4456              
  4457     </xsl:temp late>
  4458    
  4459             
  4460     <xsl:templ ate 
  4461      name="disp lay1LineBr eak"
  4462     >
  4463                       
  4464      <xsl:text>
  4465       &#13;&#10;
  4466      </xsl:text >
  4467              
  4468     </xsl:temp late>
  4469    
  4470             
  4471     <xsl:templ ate 
  4472      name="disp layVitalsM ultiSepara tor"
  4473     >
  4474                       
  4475      <xsl:text>
  4476       &#13;&#10; &#9;&#9;
  4477      </xsl:text >
  4478              
  4479     </xsl:temp late>
  4480    
  4481             
  4482     <xsl:templ ate 
  4483      name="disp layVitalRo w"
  4484     >
  4485                       
  4486      <xsl:param  
  4487       name="row"
  4488      />
  4489                       
  4490      <xsl:call- template 
  4491       name="disp layVitalIt ems"
  4492      >
  4493                                 
  4494       <xsl:with- param 
  4495        name="row"  
  4496        select="$r ow"
  4497       />
  4498                        
  4499      </xsl:call -template>
  4500                       
  4501      <xsl:call- template 
  4502       name="disp lay1LineBr eak"
  4503      />
  4504                       
  4505      <xsl:call- template 
  4506       name="disp lay1LineBr eak"
  4507      />
  4508              
  4509     </xsl:temp late>
  4510    
  4511             
  4512     <xsl:templ ate 
  4513      name="disp layVitalsD ateItem"
  4514     >
  4515                       
  4516      <xsl:param  
  4517       name="rowD ata"
  4518      />
  4519                       
  4520      <xsl:text>
  4521       &#13;&#10; &#9;
  4522      </xsl:text >
  4523                       
  4524      <xsl:text>
  4525       Date: 
  4526      </xsl:text >
  4527                       
  4528      <xsl:call- template 
  4529       name="disp layVitalsD ate"
  4530      >
  4531                                 
  4532       <xsl:with- param 
  4533        name="rowD ata" 
  4534        select="$r owData"
  4535       />
  4536                        
  4537      </xsl:call -template>
  4538              
  4539     </xsl:temp late>
  4540    
  4541             
  4542     <xsl:templ ate 
  4543      name="disp layVitalsT empItem"
  4544     >
  4545                       
  4546      <xsl:param  
  4547       name="temp "
  4548      />
  4549                       
  4550      <xsl:text>
  4551       &#13;&#10; &#9;
  4552      </xsl:text >
  4553                       
  4554      <xsl:text>
  4555       Temp: 
  4556      </xsl:text >
  4557                       
  4558      <xsl:call- template 
  4559       name="disp layVitalsT emp"
  4560      >
  4561                                 
  4562       <xsl:with- param 
  4563        name="temp
  4564        select="$t emp"
  4565       />
  4566                        
  4567      </xsl:call -template>
  4568              
  4569     </xsl:temp late>
  4570    
  4571             
  4572     <xsl:templ ate 
  4573      name="disp layVitalsS ourceItem"
  4574     >
  4575                       
  4576      <xsl:param  
  4577       name="row"
  4578      />
  4579                       
  4580      <xsl:text>
  4581       &#13;&#10; &#9;
  4582      </xsl:text >
  4583                       
  4584      <xsl:text>
  4585       Source: 
  4586      </xsl:text >
  4587                       
  4588      <xsl:call- template 
  4589       name="disp layVitalsS ource"
  4590      >
  4591                                 
  4592       <xsl:with- param 
  4593        name="row"  
  4594        select="$r ow"
  4595       />
  4596                        
  4597      </xsl:call -template>
  4598              
  4599     </xsl:temp late>
  4600    
  4601             
  4602     <xsl:templ ate 
  4603      name="disp layVitalsP oxItem"
  4604     >
  4605                       
  4606      <xsl:param  
  4607       name="pox"
  4608      />
  4609                       
  4610      <xsl:text>
  4611       &#13;&#10; &#9;
  4612      </xsl:text >
  4613                       
  4614      <xsl:text>
  4615       PoX: 
  4616      </xsl:text >
  4617                       
  4618      <xsl:call- template 
  4619       name="disp layVitalsP ox"
  4620      >
  4621                                 
  4622       <xsl:with- param 
  4623        name="pox"  
  4624        select="$p ox"
  4625       />
  4626                        
  4627      </xsl:call -template>
  4628              
  4629     </xsl:temp late>
  4630    
  4631             
  4632     <xsl:templ ate 
  4633      name="disp layVitalsW eightItem"
  4634     >
  4635                       
  4636      <xsl:param  
  4637       name="weig ht"
  4638      />
  4639                       
  4640      <xsl:text>
  4641       &#13;&#10; &#9;
  4642      </xsl:text >
  4643                       
  4644      <xsl:text>
  4645       Weight: 
  4646      </xsl:text >
  4647                       
  4648      <xsl:call- template 
  4649       name="disp layVitalsW eight"
  4650      >
  4651                                 
  4652       <xsl:with- param 
  4653        name="weig ht" 
  4654        select="$w eight"
  4655       />
  4656                        
  4657      </xsl:call -template>
  4658              
  4659     </xsl:temp late>
  4660    
  4661             
  4662     <xsl:templ ate 
  4663      name="disp layVitalsH eightItem"
  4664     >
  4665                       
  4666      <xsl:param  
  4667       name="heig ht"
  4668      />
  4669                       
  4670      <xsl:text>
  4671       &#13;&#10; &#9;
  4672      </xsl:text >
  4673                       
  4674      <xsl:text>
  4675       Height: 
  4676      </xsl:text >
  4677                       
  4678      <xsl:call- template 
  4679       name="disp layVitalsH eight"
  4680      >
  4681                                 
  4682       <xsl:with- param 
  4683        name="heig ht" 
  4684        select="$h eight"
  4685       />
  4686                        
  4687      </xsl:call -template>
  4688              
  4689     </xsl:temp late>
  4690    
  4691             
  4692     <xsl:templ ate 
  4693      name="disp layVitalsB pItem"
  4694     >
  4695                       
  4696      <xsl:param  
  4697       name="row"
  4698      />
  4699                       
  4700      <xsl:text>
  4701       &#13;&#10; &#9;
  4702      </xsl:text >
  4703                       
  4704      <xsl:text>
  4705       BP: 
  4706      </xsl:text >
  4707                       
  4708      <xsl:call- template 
  4709       name="disp layVitalsB p"
  4710      >
  4711                                 
  4712       <xsl:with- param 
  4713        name="row"  
  4714        select="$r ow"
  4715       />
  4716                        
  4717      </xsl:call -template>
  4718              
  4719     </xsl:temp late>
  4720    
  4721             
  4722     <xsl:templ ate 
  4723      name="disp layVitalsR espItem"
  4724     >
  4725                       
  4726      <xsl:param  
  4727       name="resp "
  4728      />
  4729                       
  4730      <xsl:text>
  4731       &#13;&#10; &#9;
  4732      </xsl:text >
  4733                       
  4734      <xsl:text>
  4735       Resp: 
  4736      </xsl:text >
  4737                       
  4738      <xsl:call- template 
  4739       name="disp layVitalsR esp"
  4740      >
  4741                                 
  4742       <xsl:with- param 
  4743        name="resp
  4744        select="$r esp"
  4745       />
  4746                        
  4747      </xsl:call -template>
  4748              
  4749     </xsl:temp late>
  4750    
  4751             
  4752     <xsl:templ ate 
  4753      name="disp layVitalsP ulseItem"
  4754     >
  4755                       
  4756      <xsl:param  
  4757       name="puls e"
  4758      />
  4759                       
  4760      <xsl:text>
  4761       &#13;&#10; &#9;
  4762      </xsl:text >
  4763                       
  4764      <xsl:text>
  4765       Pulse: 
  4766      </xsl:text >
  4767                       
  4768      <xsl:call- template 
  4769       name="disp layVitalsP ulse"
  4770      >
  4771                                 
  4772       <xsl:with- param 
  4773        name="puls e" 
  4774        select="$p ulse"
  4775       />
  4776                        
  4777      </xsl:call -template>
  4778              
  4779     </xsl:temp late>
  4780    
  4781   </xsl:styl esheet>
  4782