3161. EPMO Open Source Coordination Office Redaction File Detail Report

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

3161.1 Files compared

# Location File Last Modified
1 Fri Jun 9 19:49:52 2017 UTC
2 eHealth_Exch (eHealth Exchange Enhancements) Build 3 docs & code_May_2017.zip\VAP_CIF_CODE0502.zip\VAP_CIF_CODE0502\VAP_CIF_CODE0502\nvap-client\src\main\resources\gov\va\nvap\document\xsl\vistaweb\nhin cda2clipboard.xsl Wed Jun 7 05:20:40 2017 UTC

3161.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 0 0
Changed 0 0
Inserted 1 4754
Removed 0 0

3161.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

3161.4 Active regular expressions

No regular expressions were active.

3161.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     <xsl:templ ate 
        964      name="disp layProblem ComponentS ection"
        965     >
        966                       
        967      <xsl:varia ble 
        968       name="prob C1"
        969      >
        970                                 
        971       <xsl:call- template 
        972        name="getC ommonForma tComments"
        973       />
        974                        
        975      </xsl:vari able>
        976                       
        977      <xsl:if 
        978       test="stri ng-length( $probC1)>1 "
        979      >
        980                                 
        981       <xsl:text>
        982        *Note: 
        983       </xsl:text >
        984                                 
        985       <xsl:value -of 
        986        select="no rmalize-sp ace($probC 1)"
        987       />
        988                                 
        989       <xsl:text>
        990        &#13;&#10; &#9;
        991       </xsl:text >
        992                        
        993      </xsl:if>
        994                       
        995      <xsl:call- template 
        996       name="prob lemDetails "
        997      >
        998                                 
        999       <xsl:with- param 
        1000        select="."  
        1001        name="sect ion"
        1002       />
        1003                        
        1004      </xsl:call -template>
        1005              
        1006     </xsl:temp late>
        1007    
        1008             
        1009     <xsl:templ ate 
        1010      name="disp layAllergy ComponentS ection"
        1011     >
        1012                       
        1013      <xsl:varia ble 
        1014       name="alle rgyC1"
        1015      >
        1016                                 
        1017       <xsl:call- template 
        1018        name="getC ommonForma tComments"
        1019       />
        1020                        
        1021      </xsl:vari able>
        1022                       
        1023      <xsl:if 
        1024       test="stri ng-length( $allergyC1 )>1"
        1025      >
        1026                                 
        1027       <xsl:text>
        1028        *Note: 
        1029       </xsl:text >
        1030                                 
        1031       <xsl:value -of 
        1032        select="no rmalize-sp ace($aller gyC1)"
        1033       />
        1034                                 
        1035       <xsl:text>
        1036        &#13;&#10; &#9;
        1037       </xsl:text >
        1038                        
        1039      </xsl:if>
        1040                       
        1041      <xsl:call- template 
        1042       name="alle rgyDetails "
        1043      >
        1044                                 
        1045       <xsl:with- param 
        1046        select="."  
        1047        name="sect ion"
        1048       />
        1049                        
        1050      </xsl:call -template>
        1051              
        1052     </xsl:temp late>
        1053    
        1054             
        1055     <xsl:templ ate 
        1056      name="disp layMedsCom ponentSect ion"
        1057     >
        1058                       
        1059      <xsl:varia ble 
        1060       name="medC 1"
        1061      >
        1062                                 
        1063       <xsl:call- template 
        1064        name="getC ommonForma tComments"
        1065       />
        1066                        
        1067      </xsl:vari able>
        1068                       
        1069      <xsl:if 
        1070       test="stri ng-length( $medC1)>1"
        1071      >
        1072                                 
        1073       <xsl:text>
        1074        *Note: 
        1075       </xsl:text >
        1076                                 
        1077       <xsl:value -of 
        1078        select="no rmalize-sp ace($medC1 )"
        1079       />
        1080                                 
        1081       <xsl:text>
        1082        &#13;&#10; &#9;
        1083       </xsl:text >
        1084                        
        1085      </xsl:if>
        1086                       
        1087      <xsl:call- template 
        1088       name="medD etails"
        1089      >
        1090                                 
        1091       <xsl:with- param 
        1092        select="."  
        1093        name="sect ion"
        1094       />
        1095                        
        1096      </xsl:call -template>
        1097              
        1098     </xsl:temp late>
        1099    
        1100             
        1101     <xsl:templ ate 
        1102      name="disp layEncount erComponen tSection"
        1103     >
        1104                       
        1105      <xsl:call- template 
        1106       name="enco unterDetai ls"
        1107      >
        1108                                 
        1109       <xsl:with- param 
        1110        select="."  
        1111        name="sect ion"
        1112       />
        1113                        
        1114      </xsl:call -template>
        1115              
        1116     </xsl:temp late>
        1117    
        1118             
        1119     <xsl:templ ate 
        1120      name="disp layResults ComponentS ection"
        1121     >
        1122                       
        1123      <xsl:varia ble 
        1124       name="resu ltsC1"
        1125      >
        1126                                 
        1127       <xsl:call- template 
        1128        name="getC ommonForma tComments"
        1129       />
        1130                        
        1131      </xsl:vari able>
        1132                       
        1133      <xsl:if 
        1134       test="stri ng-length( $resultsC1 )>1"
        1135      >
        1136                                 
        1137       <xsl:text>
        1138        *Note: 
        1139       </xsl:text >
        1140                                 
        1141       <xsl:value -of 
        1142        select="no rmalize-sp ace($resul tsC1)"
        1143       />
        1144                                 
        1145       <xsl:text>
        1146        &#13;&#10; &#9;
        1147       </xsl:text >
        1148                        
        1149      </xsl:if>
        1150                       
        1151      <xsl:call- template 
        1152       name="resu ltsDetails "
        1153      >
        1154                                 
        1155       <xsl:with- param 
        1156        select="."  
        1157        name="sect ion"
        1158       />
        1159                        
        1160      </xsl:call -template>
        1161              
        1162     </xsl:temp late>
        1163    
        1164             
        1165     <xsl:templ ate 
        1166      name="disp layProcedu resCompone ntSection"
        1167     >
        1168                       
        1169      <xsl:call- template 
        1170       name="proc eduresDeta ils"
        1171      >
        1172                                 
        1173       <xsl:with- param 
        1174        select="."  
        1175        name="sect ion"
        1176       />
        1177                        
        1178      </xsl:call -template>
        1179              
        1180     </xsl:temp late>
        1181    
        1182             
        1183     <xsl:templ ate 
        1184      name="disp layImmuniz ationsComp onentSecti on"
        1185     >
        1186                       
        1187      <xsl:varia ble 
        1188       name="immu nC1"
        1189      >
        1190                                 
        1191       <xsl:call- template 
        1192        name="getC ommonForma tComments"
        1193       />
        1194                        
        1195      </xsl:vari able>
        1196                       
        1197      <xsl:if 
        1198       test="stri ng-length( $immunC1)> 1"
        1199      >
        1200                                 
        1201       <xsl:text>
        1202        *Note: 
        1203       </xsl:text >
        1204                                 
        1205       <xsl:value -of 
        1206        select="no rmalize-sp ace($immun C1)"
        1207       />
        1208                                 
        1209       <xsl:text>
        1210        &#13;&#10; &#9;
        1211       </xsl:text >
        1212                        
        1213      </xsl:if>
        1214                       
        1215      <xsl:call- template 
        1216       name="immu nizationsD etails"
        1217      >
        1218                                 
        1219       <xsl:with- param 
        1220        select="."  
        1221        name="sect ion"
        1222       />
        1223                        
        1224      </xsl:call -template>
        1225              
        1226     </xsl:temp late>
        1227    
        1228             
        1229     <xsl:templ ate 
        1230      name="disp layVitalsC omponentSe ction"
        1231     >
        1232                       
        1233      <xsl:call- template 
        1234       name="vita lsDetails"
        1235      >
        1236                                 
        1237       <xsl:with- param 
        1238        select="."  
        1239        name="sect ion"
        1240       />
        1241                        
        1242      </xsl:call -template>
        1243              
        1244     </xsl:temp late>
        1245             
        1246             
        1247     <!-- Meds  Detail Sec tion -->
        1248             
        1249     <xsl:templ ate 
        1250      name="medD etails"
        1251     >
        1252                       
        1253      <xsl:param  
        1254       name="sect ion"
        1255      />
        1256                       
        1257      <xsl:choos e>
        1258                                 
        1259       <xsl:when 
        1260        test="$sec tion/n1:en try/n1:sub stanceAdmi nistration /n1:effect iveTime/n1 :high"
        1261       >
        1262                                           
        1263        <xsl:apply -templates  
        1264         select="$s ection/n1: entry"
        1265        >
        1266                                                    
        1267         <xsl:sort 
        1268          select="$s ection/n1: entry/n1:s ubstanceAd ministrati on/n1:effe ctiveTime/ n1:high/@v alue"
        1269         />
        1270                                            
        1271        </xsl:appl y-template s>
        1272                                  
        1273       </xsl:when >
        1274                                 
        1275       <xsl:other wise>
        1276                                           
        1277        <xsl:apply -templates  
        1278         select="$s ection/n1: entry"
        1279        >
        1280                                                    
        1281         <xsl:sort 
        1282          select="$s ection/n1: entry/n1:s ubstanceAd ministrati on/n1:entr yRelations hip/n1:sup ply/n1:eff ectiveTime /@value"
        1283         />
        1284                                            
        1285        </xsl:appl y-template s>
        1286                                  
        1287       </xsl:othe rwise>
        1288                        
        1289      </xsl:choo se>
        1290                       
        1291      <xsl:if 
        1292       test="not( boolean(n1 :entry/n1: substanceA dministrat ion))"
        1293      >
        1294                                 
        1295       <xsl:call- template 
        1296        name="noDa ta_Clipboa rd"
        1297       />
        1298                        
        1299      </xsl:if>
        1300              
        1301     </xsl:temp late>
        1302    
        1303             
        1304     <!-- Proce dures Deta il Section  -->
        1305             
        1306     <xsl:templ ate 
        1307      name="proc eduresDeta ils"
        1308     >
        1309                       
        1310      <xsl:param  
        1311       name="sect ion"
        1312      />
        1313                       
        1314      <xsl:apply -templates  
        1315       select="$s ection/n1: entry"
        1316      >
        1317                                 
        1318       <xsl:sort 
        1319        select="n1 :procedure /n1:effect iveTime/n1 :low/@valu e" 
        1320        order="des cending"
        1321       />
        1322                        
        1323      </xsl:appl y-template s>
        1324                       
        1325      <xsl:if 
        1326       test="not( boolean($s ection/n1: entry/n1:p rocedure)) "
        1327      >
        1328                                 
        1329       <xsl:call- template 
        1330        name="noDa ta_Clipboa rd"
        1331       />
        1332                        
        1333      </xsl:if>
        1334              
        1335     </xsl:temp late>
        1336    
        1337             
        1338     <!-- Encou nters Deta il Section  -->
        1339             
        1340     <xsl:templ ate 
        1341      name="enco unterDetai ls"
        1342     >
        1343                       
        1344      <xsl:param  
        1345       name="sect ion"
        1346      />
        1347                       
        1348      <xsl:apply -templates  
        1349       select="$s ection/n1: entry"
        1350      >
        1351                                 
        1352       <xsl:sort 
        1353        select="n1 :encounter /n1:effect iveTime/n1 :low/@valu e" 
        1354        order="des cending"
        1355       />
        1356                        
        1357      </xsl:appl y-template s>
        1358                       
        1359      <xsl:if 
        1360       test="not( boolean($s ection/n1: entry/n1:e ncounter)) "
        1361      >
        1362                                 
        1363       <xsl:call- template 
        1364        name="noDa ta_Clipboa rd"
        1365       />
        1366                        
        1367      </xsl:if>
        1368              
        1369     </xsl:temp late>
        1370    
        1371             
        1372     <!-- Probl em Detail  Section -- >
        1373             
        1374     <xsl:templ ate 
        1375      name="prob lemDetails "
        1376     >
        1377                       
        1378      <xsl:param  
        1379       name="sect ion"
        1380      />
        1381                       
        1382      <xsl:choos e>
        1383                                 
        1384       <xsl:when 
        1385        test="$sec tion/n1:en try/n1:act /n1:entryR elationshi p/n1:obser vation/n1: effectiveT ime/n1:low "
        1386       >
        1387                                           
        1388        <xsl:apply -templates  
        1389         select="$s ection/n1: entry"
        1390        >
        1391                                                    
        1392         <xsl:sort 
        1393          select="n1 :act/n1:en tryRelatio nship/n1:o bservation /n1:effect iveTime/n1 :low/@valu e" 
        1394          order="des cending"
        1395         />
        1396                                            
        1397        </xsl:appl y-template s>
        1398                                  
        1399       </xsl:when >
        1400                                 
        1401       <xsl:other wise>
        1402                                           
        1403        <xsl:apply -templates  
        1404         select="$s ection/n1: entry"
        1405        >
        1406                                                    
        1407         <xsl:sort 
        1408          select="n1 :act/n1:ef fectiveTim e/n1:low/@ value" 
        1409          order="des cending"
        1410         />
        1411                                            
        1412        </xsl:appl y-template s>
        1413                                  
        1414       </xsl:othe rwise>
        1415                        
        1416      </xsl:choo se>
        1417                       
        1418      <xsl:if 
        1419       test="not( boolean($s ection/n1: entry/n1:a ct/n1:entr yRelations hip[@typeC ode='SUBJ' ]/n1:obser vation))"
        1420      >
        1421                                 
        1422       <xsl:call- template 
        1423        name="noDa ta_Clipboa rd"
        1424       />
        1425                        
        1426      </xsl:if>
        1427              
        1428     </xsl:temp late>
        1429    
        1430             
        1431     <!-- Aller gy Detail  Section -- >
        1432             
        1433     <xsl:templ ate 
        1434      name="alle rgyDetails "
        1435     >
        1436                       
        1437      <xsl:param  
        1438       name="sect ion"
        1439      />
        1440                       
        1441      <xsl:choos e>
        1442                                 
        1443       <xsl:when 
        1444        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 "
        1445       >
        1446                                           
        1447        <xsl:apply -templates  
        1448         select="$s ection/n1: entry"
        1449        >
        1450                                                    
        1451         <xsl:sort 
        1452          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"
        1453         />
        1454                                            
        1455        </xsl:appl y-template s>
        1456                                  
        1457       </xsl:when >
        1458                                 
        1459       <xsl:when 
        1460        test="$sec tion/n1:en try/n1:act /n1:entryR elationshi p/n1:obser vation/n1: effectiveT ime/n1:low "
        1461       >
        1462                                           
        1463        <xsl:apply -templates  
        1464         select="$s ection/n1: entry"
        1465        >
        1466                                                    
        1467         <xsl:sort 
        1468          select="n1 :act/n1:en tryRelatio nship/n1:o bservation /n1:effect iveTime/n1 :low/@valu e" 
        1469          order="des cending"
        1470         />
        1471                                            
        1472        </xsl:appl y-template s>
        1473                                  
        1474       </xsl:when >
        1475                                 
        1476       <xsl:other wise>
        1477                                           
        1478        <xsl:apply -templates  
        1479         select="$s ection/n1: entry"
        1480        >
        1481                                                    
        1482         <xsl:sort 
        1483          select="n1 :act/n1:ef fectiveTim e/n1:low/@ value" 
        1484          order="des cending"
        1485         />
        1486                                            
        1487        </xsl:appl y-template s>
        1488                                  
        1489       </xsl:othe rwise>
        1490                        
        1491      </xsl:choo se>
        1492                       
        1493      <xsl:if 
        1494       test="not( boolean(n1 :entry/n1: act/n1:ent ryRelation ship/n1:ob servation) )"
        1495      >
        1496                                 
        1497       <xsl:call- template 
        1498        name="noDa ta_Clipboa rd"
        1499       />
        1500                        
        1501      </xsl:if>
        1502              
        1503     </xsl:temp late>
        1504    
        1505             
        1506     <!-- Resul ts Detail  Section -- >
        1507             
        1508     <xsl:templ ate 
        1509      name="resu ltsDetails "
        1510     >
        1511                       
        1512      <xsl:param  
        1513       name="sect ion"
        1514      />
        1515                       
        1516      <xsl:choos e>
        1517                                 
        1518       <xsl:when 
        1519        test="$sec tion/n1:en try/n1:org anizer/n1: component/ n1:observa tion/n1:ef fectiveTim e/@value"
        1520       >
        1521                                           
        1522        <xsl:apply -templates  
        1523         select="$s ection/n1: entry"
        1524        >
        1525                                                    
        1526         <xsl:sort 
        1527          select="n1 :organizer /n1:compon ent/n1:obs ervation/n 1:effectiv eTime/@val ue" 
        1528          order="des cending"
        1529         />
        1530                                            
        1531        </xsl:appl y-template s>
        1532                                  
        1533       </xsl:when >
        1534                                 
        1535       <xsl:other wise/>
        1536                        
        1537      </xsl:choo se>
        1538                       
        1539      <xsl:if 
        1540       test="not( boolean(n1 :entry/n1: observatio n)or(n1:en try/n1:org anizer))"
        1541      >
        1542                                 
        1543       <xsl:call- template 
        1544        name="noDa ta_Clipboa rd"
        1545       />
        1546                        
        1547      </xsl:if>
        1548              
        1549     </xsl:temp late>
        1550    
        1551             
        1552     <!-- Immun izations D etail Sect ion -->
        1553             
        1554     <xsl:templ ate 
        1555      name="immu nizationsD etails"
        1556     >
        1557                       
        1558      <xsl:param  
        1559       name="sect ion"
        1560      />
        1561                       
        1562      <xsl:apply -templates  
        1563       select="$s ection/n1: entry"
        1564      >
        1565                                 
        1566       <xsl:sort 
        1567        select="n1 :substance Administra tion/n1:ef fectiveTim e/@value" 
        1568        order="des cending"
        1569       />
        1570                        
        1571      </xsl:appl y-template s>
        1572                       
        1573      <xsl:if 
        1574       test="not( boolean($s ection/n1: entry/n1:s ubstanceAd ministrati on))"
        1575      >
        1576                                 
        1577       <xsl:call- template 
        1578        name="noDa ta_Clipboa rd"
        1579       />
        1580                        
        1581      </xsl:if>
        1582              
        1583     </xsl:temp late>
        1584    
        1585             
        1586     <!-- Vital s Detail S ection -->
        1587             
        1588     <xsl:templ ate 
        1589      name="vita lsDetails"
        1590     >
        1591                       
        1592      <xsl:param  
        1593       name="sect ion"
        1594      />
        1595                       
        1596      <xsl:apply -templates  
        1597       select="$s ection/n1: entry"
        1598      >
        1599                                 
        1600       <xsl:sort 
        1601        select="n1 :organizer /n1:compon ent/n1:obs ervation/n 1:effectiv eTime/@val ue" 
        1602        order="des cending"
        1603       />
        1604                        
        1605      </xsl:appl y-template s>
        1606                       
        1607      <xsl:if 
        1608       test="not( boolean($s ection/n1: entry/n1:o rganizer/n 1:componen t/n1:obser vation))"
        1609      >
        1610                                 
        1611       <xsl:call- template 
        1612        name="noDa ta_Clipboa rd"
        1613       />
        1614                        
        1615      </xsl:if>
        1616              
        1617     </xsl:temp late>
        1618    
        1619             
        1620     <xsl:templ ate 
        1621      name="medR ow"
        1622     >
        1623                       
        1624      <xsl:param  
        1625       name="row"
        1626      />
        1627     
        1628                       
        1629      <!--medica tion name- ->
        1630                       
        1631      <xsl:text>
        1632       &#13;&#10; &#9;
        1633      </xsl:text >
        1634                       
        1635      <xsl:varia ble 
        1636       name="medN ameResult"
        1637      >
        1638                                 
        1639       <xsl:call- template 
        1640        name="getM edicationN ame"
        1641       >
        1642                                           
        1643        <xsl:with- param 
        1644         name="row"  
        1645         select="$r ow"
        1646        />
        1647                                  
        1648       </xsl:call -template>
        1649                        
        1650      </xsl:vari able>
        1651                       
        1652      <xsl:choos e>
        1653                                 
        1654       <xsl:when 
        1655        test="stri ng-length( $medNameRe sult)>1"
        1656       >
        1657                                           
        1658        <xsl:text>
        1659         Medication
        1660        </xsl:text >
        1661                                           
        1662        <xsl:value -of 
        1663         select="no rmalize-sp ace($medNa meResult)"
        1664        />
        1665                                  
        1666       </xsl:when >
        1667                                 
        1668       <xsl:other wise>
        1669                                           
        1670        <xsl:call- template 
        1671         name="na"
        1672        />
        1673                                  
        1674       </xsl:othe rwise>
        1675                        
        1676      </xsl:choo se>
        1677     
        1678                       
        1679      <!-- Brand  Name -->
        1680                       
        1681      <xsl:text>
        1682       &#13;&#10; &#9;
        1683      </xsl:text >
        1684                       
        1685      <xsl:if 
        1686       test="$row /n1:substa nceAdminis tration/n1 :consumabl e/n1:manuf acturedPro duct/n1:ma nufactured Material/n 1:name"
        1687      >
        1688                                 
        1689       <xsl:text>
        1690        Brand Name
        1691       </xsl:text >
        1692                                 
        1693       <xsl:value -of 
        1694        select="$r ow/n1:subs tanceAdmin istration/ n1:consuma ble/n1:man ufacturedP roduct/n1: manufactur edMaterial /n1:name"
        1695       />
        1696                        
        1697      </xsl:if>
        1698     
        1699                       
        1700      <!-- Route  -->
        1701                       
        1702      <xsl:if 
        1703       test="$row /n1:substa nceAdminis tration/n1 :routeCode /@displayN ame"
        1704      >
        1705                                 
        1706       <xsl:text>
        1707        &#13;&#10; &#9;
        1708       </xsl:text >
        1709                                 
        1710       <xsl:text>
        1711        Route: 
        1712       </xsl:text >
        1713                                 
        1714       <xsl:value -of 
        1715        select="$r ow/n1:subs tanceAdmin istration/ n1:routeCo de/@displa yName"
        1716       />
        1717                        
        1718      </xsl:if>
        1719     
        1720                       
        1721      <!-- Inter val -->
        1722                       
        1723      <xsl:if 
        1724       test="$row /n1:substa nceAdminis tration/n1 :effective Time/n1:pe riod/@valu e"
        1725      >
        1726                                 
        1727       <xsl:text>
        1728        &#13;&#10; &#9;
        1729       </xsl:text >
        1730                                 
        1731       <xsl:text>
        1732        Interval: 
        1733       </xsl:text >
        1734                                 
        1735       <xsl:value -of 
        1736        select="$r ow/n1:subs tanceAdmin istration/ n1:effecti veTime/n1: period/@va lue"
        1737       />
        1738                        
        1739      </xsl:if>
        1740     
        1741                       
        1742      <!-- Statu s -->
        1743                       
        1744      <xsl:text>
        1745       &#13;&#10; &#9;
        1746      </xsl:text >
        1747                       
        1748      <xsl:text>
        1749       Status: 
        1750      </xsl:text >
        1751                       
        1752      <xsl:call- template 
        1753       name="medS tatus"
        1754      >
        1755                                 
        1756       <xsl:with- param 
        1757        name="subs tanceAdmin
        1758        select="$r ow/n1:subs tanceAdmin istration"
        1759       />
        1760                        
        1761      </xsl:call -template>
        1762     
        1763                       
        1764      <!-- Presc ription ID  (Nbr) -->
        1765                       
        1766      <xsl:text>
        1767       &#13;&#10; &#9;
        1768      </xsl:text >
        1769                       
        1770      <xsl:text>
        1771       Prescripti on #: 
        1772      </xsl:text >
        1773                       
        1774      <xsl:varia ble 
        1775       name="rxNu m"
        1776      >
        1777                                 
        1778       <xsl:call- template 
        1779        name="getR xNumString "
        1780       >
        1781                                           
        1782        <xsl:with- param 
        1783         name="subs tanceAdmin
        1784         select="$r ow/n1:subs tanceAdmin istration"
        1785        />
        1786                                  
        1787       </xsl:call -template>
        1788                        
        1789      </xsl:vari able>
        1790                       
        1791      <xsl:choos e>
        1792                                 
        1793       <xsl:when 
        1794        test="stri ng-length( $rxNum)>1"
        1795       >
        1796                                           
        1797        <xsl:value -of 
        1798         select="$r xNum"
        1799        />
        1800                                  
        1801       </xsl:when >
        1802                                 
        1803       <xsl:other wise>
        1804                                           
        1805        <xsl:call- template 
        1806         name="na"
        1807        />
        1808                                  
        1809       </xsl:othe rwise>
        1810                        
        1811      </xsl:choo se>
        1812     
        1813                       
        1814      <xsl:text>
        1815       &#13;&#10; &#9;
        1816      </xsl:text >
        1817                       
        1818      <!-- dispe nse time - ->
        1819                       
        1820      <xsl:text>
        1821       Dispense D ate: 
        1822      </xsl:text >
        1823                       
        1824      <xsl:call- template 
        1825       name="medB egintime"
        1826      >
        1827                                 
        1828       <xsl:with- param 
        1829        name="row"  
        1830        select="$r ow"
        1831       />
        1832                        
        1833      </xsl:call -template>
        1834     
        1835                       
        1836      <!-- provi der -->
        1837                       
        1838      <xsl:text>
        1839       &#13;&#10; &#9;
        1840      </xsl:text >
        1841                       
        1842      <xsl:text>
        1843       Provider: 
        1844      </xsl:text >
        1845                       
        1846      <xsl:varia ble 
        1847       name="medP rovider"
        1848      >
        1849                                 
        1850       <xsl:call- template 
        1851        name="getM edProvider "
        1852       >
        1853                                           
        1854        <xsl:with- param 
        1855         name="subs tanceAdmin
        1856         select="$r ow/n1:subs tanceAdmin istration"
        1857        />
        1858                                  
        1859       </xsl:call -template>
        1860                        
        1861      </xsl:vari able>
        1862                       
        1863      <xsl:choos e>
        1864                                 
        1865       <xsl:when 
        1866        test="stri ng-length( $medProvid er)>1"
        1867       >
        1868                                           
        1869        <xsl:value -of 
        1870         select="$m edProvider "
        1871        />
        1872                                  
        1873       </xsl:when >
        1874                                 
        1875       <xsl:other wise>
        1876                                           
        1877        <xsl:text>
        1878         - No Provi der Name F ound -
        1879        </xsl:text >
        1880                                  
        1881       </xsl:othe rwise>
        1882                        
        1883      </xsl:choo se>
        1884     
        1885                       
        1886      <xsl:text>
        1887       &#13;&#10; &#9;
        1888      </xsl:text >
        1889                       
        1890      <!-- Quant ity -->
        1891                       
        1892      <xsl:text>
        1893       Quantity: 
        1894      </xsl:text >
        1895                       
        1896      <xsl:call- template 
        1897       name="medQ uantity"
        1898      >
        1899                                 
        1900       <xsl:with- param 
        1901        name="subs tanceAdmin
        1902        select="$r ow/n1:subs tanceAdmin istration"
        1903       />
        1904                        
        1905      </xsl:call -template>
        1906     
        1907                       
        1908      <xsl:text>
        1909       &#13;&#10; &#9;
        1910      </xsl:text >
        1911                       
        1912      <!-- Order  Expiratio n Date/Tim e -->
        1913                       
        1914      <xsl:text>
        1915       Order Expi ration: 
        1916      </xsl:text >
        1917                       
        1918      <xsl:call- template 
        1919       name="medE xpiretime"
        1920      >
        1921                                 
        1922       <xsl:with- param 
        1923        name="subs tanceAdmin
        1924        select="$r ow/n1:subs tanceAdmin istration"
        1925       />
        1926                        
        1927      </xsl:call -template>
        1928     
        1929                       
        1930      <xsl:text>
        1931       &#13;&#10; &#9;
        1932      </xsl:text >
        1933                       
        1934      <!-- Sig - ->
        1935                       
        1936      <xsl:text>
        1937       Sig: 
        1938      </xsl:text >
        1939                       
        1940      <xsl:varia ble 
        1941       name="sig"
        1942      >
        1943                                 
        1944       <xsl:call- template 
        1945        name="getS ig"
        1946       >
        1947                                           
        1948        <xsl:with- param 
        1949         name="subs tanceAdmin
        1950         select="$r ow/n1:subs tanceAdmin istration"
        1951        />
        1952                                  
        1953       </xsl:call -template>
        1954                        
        1955      </xsl:vari able>
        1956                       
        1957      <xsl:choos e>
        1958                                 
        1959       <xsl:when 
        1960        test="stri ng-length( $sig)>1"
        1961       >
        1962                                           
        1963        <xsl:value -of 
        1964         select="$s ig"
        1965        />
        1966                                  
        1967       </xsl:when >
        1968                                 
        1969       <xsl:other wise>
        1970                                           
        1971        <xsl:call- template 
        1972         name="na"
        1973        />
        1974                                  
        1975       </xsl:othe rwise>
        1976                        
        1977      </xsl:choo se>
        1978     
        1979     
        1980                       
        1981      <xsl:text>
        1982       &#13;&#10; &#9;
        1983      </xsl:text >
        1984                       
        1985      <!-- sourc e -->
        1986                       
        1987      <xsl:text>
        1988       Source: 
        1989      </xsl:text >
        1990                       
        1991      <xsl:varia ble 
        1992       name="medS ource" 
        1993       select="n1 :substance Administra tion/n1:au thor/n1:as signedAuth or/n1:repr esentedOrg anization/ n1:name"
        1994      />
        1995                       
        1996      <xsl:choos e>
        1997                                 
        1998       <xsl:when 
        1999        test="$med Source"
        2000       >
        2001                                           
        2002        <xsl:value -of 
        2003         select="$m edSource"
        2004        />
        2005                                  
        2006       </xsl:when >
        2007                                 
        2008       <xsl:other wise>
        2009                                           
        2010        <xsl:call- template 
        2011         name="na"
        2012        />
        2013                                  
        2014       </xsl:othe rwise>
        2015                        
        2016      </xsl:choo se>
        2017                       
        2018      <xsl:text>
        2019       &#13;&#10;
        2020      </xsl:text >
        2021     
        2022              
        2023     </xsl:temp late>
        2024    
        2025             
        2026     <!-- probl em entry r ow -->
        2027             
        2028     <xsl:templ ate 
        2029      name="prob lemRow"
        2030     >
        2031                       
        2032      <xsl:param  
        2033       name="row"
        2034      />
        2035                       
        2036      <xsl:varia ble 
        2037       name="rowD ata" 
        2038       select="$r ow/n1:act/ n1:entryRe lationship /n1:observ ation"
        2039      />
        2040                       
        2041      <!-- name  -->
        2042                       
        2043      <xsl:text>
        2044       &#13;&#10; &#9;
        2045      </xsl:text >
        2046                       
        2047      <xsl:text>
        2048       Problem: 
        2049      </xsl:text >
        2050                       
        2051      <xsl:varia ble 
        2052       name="prob NameResult "
        2053      >
        2054                                 
        2055       <xsl:call- template 
        2056        name="prob Name"
        2057       >
        2058                                           
        2059        <xsl:with- param 
        2060         name="prob Entry" 
        2061         select="$r ow"
        2062        />
        2063                                  
        2064       </xsl:call -template>
        2065                        
        2066      </xsl:vari able>
        2067                       
        2068      <xsl:choos e>
        2069                                 
        2070       <xsl:when 
        2071        test="stri ng-length( $probNameR esult)>1"
        2072       >
        2073                                           
        2074        <xsl:value -of 
        2075         select="no rmalize-sp ace($probN ameResult) "
        2076        />
        2077                                  
        2078       </xsl:when >
        2079                                 
        2080       <xsl:other wise>
        2081                                           
        2082        <xsl:call- template 
        2083         name="na"
        2084        />
        2085                                  
        2086       </xsl:othe rwise>
        2087                        
        2088      </xsl:choo se>
        2089     
        2090                       
        2091      <!-- probl em status  -->
        2092                       
        2093      <xsl:text>
        2094       &#13;&#10; &#9;
        2095      </xsl:text >
        2096                       
        2097      <xsl:text>
        2098       Status: 
        2099      </xsl:text >
        2100                       
        2101      <xsl:call- template 
        2102       name="prob Status"
        2103      >
        2104                                 
        2105       <xsl:with- param 
        2106        name="row"  
        2107        select="$r ow"
        2108       />
        2109                        
        2110      </xsl:call -template>
        2111     
        2112                       
        2113      <!-- Probl em Code -- >
        2114                       
        2115      <xsl:varia ble 
        2116       name="prob codenull" 
        2117       select="$r owData/n1: code/@null Flavor"
        2118      />
        2119                       
        2120      <xsl:varia ble 
        2121       name="prob code" 
        2122       select="$r owData/n1: code/@code "
        2123      />
        2124                       
        2125      <xsl:choos e>
        2126                                 
        2127       <xsl:when 
        2128        test="stri ng($probco denull)='U NK' "
        2129       >
        2130                                  
        2131       </xsl:when >
        2132                                 
        2133       <xsl:when 
        2134        test="$pro bcode"
        2135       >
        2136                                           
        2137        <xsl:text>
        2138         &#13;&#10; &#9;
        2139        </xsl:text >
        2140                                           
        2141        <xsl:text>
        2142         Problem Co de: 
        2143        </xsl:text >
        2144                                           
        2145        <xsl:value -of 
        2146         select="$p robcode"
        2147        />
        2148                                  
        2149       </xsl:when >
        2150                        
        2151      </xsl:choo se>
        2152     
        2153                       
        2154      <!-- probl em effecti ve date -- >
        2155                       
        2156      <xsl:text>
        2157       &#13;&#10; &#9;
        2158      </xsl:text >
        2159                       
        2160      <xsl:text>
        2161       Date: 
        2162      </xsl:text >
        2163                       
        2164      <xsl:call- template 
        2165       name="prob Date"
        2166      >
        2167                                 
        2168       <xsl:with- param 
        2169        name="row"  
        2170        select="$r ow"
        2171       />
        2172                        
        2173      </xsl:call -template>
        2174     
        2175                       
        2176      <!-- provi der -->
        2177                       
        2178      <xsl:text>
        2179       &#13;&#10; &#9;
        2180      </xsl:text >
        2181                       
        2182      <xsl:text>
        2183       Provider: 
        2184      </xsl:text >
        2185                       
        2186      <xsl:varia ble 
        2187       name="prov ider"
        2188      >
        2189                                 
        2190       <xsl:call- template 
        2191        name="getP roblemProv ider"
        2192       >
        2193                                           
        2194        <xsl:with- param 
        2195         name="act"  
        2196         select="$r ow/n1:act"
        2197        />
        2198                                  
        2199       </xsl:call -template>
        2200                        
        2201      </xsl:vari able>
        2202                       
        2203      <xsl:choos e>
        2204                                 
        2205       <xsl:when 
        2206        test="stri ng-length( $provider) >1"
        2207       >
        2208                                           
        2209        <xsl:value -of 
        2210         select="$p rovider"
        2211        />
        2212                                  
        2213       </xsl:when >
        2214                                 
        2215       <xsl:other wise>
        2216                                           
        2217        <xsl:call- template 
        2218         name="na"
        2219        />
        2220                                  
        2221       </xsl:othe rwise>
        2222                        
        2223      </xsl:choo se>
        2224     
        2225                       
        2226      <!-- sourc e -->
        2227                       
        2228      <xsl:text>
        2229       &#13;&#10; &#9;
        2230      </xsl:text >
        2231                       
        2232      <xsl:text>
        2233       Source: 
        2234      </xsl:text >
        2235                       
        2236      <xsl:choos e>
        2237                                 
        2238       <xsl:when 
        2239        test="$row /n1:act/n1 :author/n1 :assignedA uthor/n1:r epresented Organizati on/n1:name "
        2240       >
        2241                                           
        2242        <xsl:value -of 
        2243         select="$r ow/n1:act/ n1:author/ n1:assigne dAuthor/n1 :represent edOrganiza tion/n1:na me"
        2244        />
        2245                                  
        2246       </xsl:when >
        2247                                 
        2248       <xsl:other wise>
        2249                                           
        2250        <xsl:call- template 
        2251         name="na"
        2252        />
        2253                                  
        2254       </xsl:othe rwise>
        2255                        
        2256      </xsl:choo se>
        2257                       
        2258      <xsl:text>
        2259       &#13;&#10;
        2260      </xsl:text >
        2261              
        2262     </xsl:temp late>
        2263    
        2264             
        2265     <!-- aller gy entry r ow -->
        2266             
        2267     <xsl:templ ate 
        2268      name="alle rgyRow"
        2269     >
        2270                       
        2271      <xsl:param  
        2272       name="row"
        2273      />
        2274                       
        2275      <xsl:varia ble 
        2276       name="obse rvation" 
        2277       select="$r ow/n1:act/ n1:entryRe lationship /n1:observ ation"
        2278      />
        2279     
        2280                       
        2281      <!-- Subst ance -->
        2282                       
        2283      <xsl:text>
        2284       &#13;&#10; &#9;
        2285      </xsl:text >
        2286                       
        2287      <xsl:text>
        2288       Allergy: 
        2289      </xsl:text >
        2290                       
        2291      <xsl:call- template 
        2292       name="getA llergen"
        2293      >
        2294                                 
        2295       <xsl:with- param 
        2296        name="obse rvation" 
        2297        select="$o bservation "
        2298       />
        2299                        
        2300      </xsl:call -template>
        2301     
        2302                       
        2303      <!-- Event  Type-->
        2304                       
        2305      <xsl:text>
        2306       &#13;&#10; &#9;
        2307      </xsl:text >
        2308                       
        2309      <xsl:text>
        2310       Type: 
        2311      </xsl:text >
        2312                       
        2313      <xsl:call- template 
        2314       name="alle rgyType"
        2315      >
        2316                                 
        2317       <xsl:with- param 
        2318        name="obse rvation" 
        2319        select="$o bservation "
        2320       />
        2321                        
        2322      </xsl:call -template>
        2323     
        2324                       
        2325      <!-- React ion -->
        2326                       
        2327      <xsl:varia ble 
        2328       name="reac tion"
        2329      >
        2330                                 
        2331       <xsl:call- template 
        2332        name="getR eactionVal ue"
        2333       >
        2334                                           
        2335        <xsl:with- param 
        2336         name="entr yRelations hip" 
        2337         select="$r ow/n1:act/ n1:entryRe lationship "
        2338        />
        2339                                  
        2340       </xsl:call -template>
        2341                        
        2342      </xsl:vari able>
        2343                       
        2344      <xsl:if 
        2345       test="stri ng-length( $reaction) >1"
        2346      >
        2347                                 
        2348       <xsl:text>
        2349        &#13;&#10; &#9;
        2350       </xsl:text >
        2351                                 
        2352       <xsl:text>
        2353        Reaction: 
        2354       </xsl:text >
        2355                                 
        2356       <xsl:value -of 
        2357        select="no rmalize-sp ace($react ion)"
        2358       />
        2359                        
        2360      </xsl:if>
        2361     
        2362                       
        2363      <!-- Sever ity -->
        2364                       
        2365      <xsl:varia ble 
        2366       name="seve rity"
        2367      >
        2368                                 
        2369       <xsl:call- template 
        2370        name="getS everityTex t"
        2371       >
        2372                                           
        2373        <xsl:with- param 
        2374         name="obse rvation" 
        2375         select="$o bservation "
        2376        />
        2377                                  
        2378       </xsl:call -template>
        2379                        
        2380      </xsl:vari able>
        2381                       
        2382      <xsl:if 
        2383       test="stri ng-length( $severity) >1"
        2384      >
        2385                                 
        2386       <xsl:text>
        2387        &#13;&#10; &#9;
        2388       </xsl:text >
        2389                                 
        2390       <xsl:text>
        2391        Severity: 
        2392       </xsl:text >
        2393                                 
        2394       <xsl:value -of 
        2395        select="$s everity"
        2396       />
        2397                        
        2398      </xsl:if>
        2399     
        2400                       
        2401      <!-- Verif ication Da te-->
        2402                       
        2403      <xsl:text>
        2404       &#13;&#10; &#9;
        2405      </xsl:text >
        2406                       
        2407      <xsl:text>
        2408       Date: 
        2409      </xsl:text >
        2410                       
        2411      <xsl:call- template 
        2412       name="disp layAllergy Verificati onDate"
        2413      >
        2414                                 
        2415       <xsl:with- param 
        2416        name="obse rvation" 
        2417        select="$o bservation "
        2418       />
        2419                        
        2420      </xsl:call -template>
        2421     
        2422                       
        2423      <!-- sourc e -->
        2424                       
        2425      <xsl:text>
        2426       &#13;&#10; &#9;
        2427      </xsl:text >
        2428                       
        2429      <xsl:text>
        2430       Source: 
        2431      </xsl:text >
        2432                       
        2433      <xsl:varia ble 
        2434       name="alle rgySource"
        2435      >
        2436                                 
        2437       <xsl:call- template 
        2438        name="getA llergySour ce"
        2439       >
        2440                                           
        2441        <xsl:with- param 
        2442         name="row"  
        2443         select="$r ow"
        2444        />
        2445                                  
        2446       </xsl:call -template>
        2447                        
        2448      </xsl:vari able>
        2449                       
        2450      <xsl:choos e>
        2451                                 
        2452       <xsl:when 
        2453        test="stri ng-length( $allergySo urce)>0"
        2454       >
        2455                                           
        2456        <xsl:value -of 
        2457         select="$a llergySour ce"
        2458        />
        2459                                  
        2460       </xsl:when >
        2461                                 
        2462       <xsl:other wise>
        2463                                           
        2464        <xsl:call- template 
        2465         name="na"
        2466        />
        2467                                  
        2468       </xsl:othe rwise>
        2469                        
        2470      </xsl:choo se>
        2471                       
        2472      <xsl:text>
        2473       &#13;&#10;
        2474      </xsl:text >
        2475     
        2476              
        2477     </xsl:temp late>
        2478    
        2479             
        2480     <!-- Labs  entry row  -->
        2481             
        2482     <xsl:templ ate 
        2483      name="labs Row"
        2484     >
        2485                       
        2486      <xsl:param  
        2487       name="row"
        2488      />
        2489                       
        2490      <xsl:varia ble 
        2491       name="rowD ata" 
        2492       select="n1 :component /n1:observ ation"
        2493      />
        2494                       
        2495      <xsl:varia ble 
        2496       name="obse rvation" 
        2497       select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion"
        2498      />
        2499                       
        2500      <xsl:varia ble 
        2501       name="obse rvation1" 
        2502       select="$r ow/n1:obse rvation"
        2503      />
        2504                       
        2505      <xsl:choos e>
        2506                                 
        2507       <xsl:when   
        2508        test="stri ng-length( $row/n1:or ganizer)!= 0"
        2509       >
        2510                                           
        2511        <!-- Panel  -->
        2512                                           
        2513        <xsl:text>
        2514         &#13;&#10; &#9;
        2515        </xsl:text >
        2516                                           
        2517        <xsl:text>
        2518         Panel: 
        2519        </xsl:text >
        2520                                           
        2521        <xsl:varia ble 
        2522         name="orga nizerName"
        2523        >
        2524                                                    
        2525         <xsl:call- template 
        2526          name="getO rganizerNa me"
        2527         >
        2528                                                              
        2529          <xsl:with- param 
        2530           name="row"  
        2531           select="$r ow"
        2532          />
        2533                                                     
        2534         </xsl:call -template>
        2535                                            
        2536        </xsl:vari able>
        2537                                           
        2538        <xsl:choos e>
        2539                                                    
        2540         <xsl:when 
        2541          test="stri ng-length( $organizer Name)>0"
        2542         >
        2543                                                              
        2544          <xsl:value -of 
        2545           select="$o rganizerNa me"
        2546          />
        2547                                                     
        2548         </xsl:when >
        2549                                                    
        2550         <xsl:other wise>
        2551                                                              
        2552          <xsl:text>
        2553           &#9;..Not  Available. .
        2554          </xsl:text >
        2555                                                     
        2556         </xsl:othe rwise>
        2557                                            
        2558        </xsl:choo se>
        2559       
        2560                                           
        2561        <!-- Panel  Date -->
        2562                                           
        2563        <xsl:text>
        2564         &#13;&#10; &#9;
        2565        </xsl:text >
        2566                                           
        2567        <xsl:text>
        2568         Panel Date
        2569        </xsl:text >
        2570                                           
        2571        <xsl:call- template 
        2572         name="getP anelDT"
        2573        >
        2574                                                    
        2575         <xsl:with- param 
        2576          name="orga nizer" 
        2577          select="$r ow/n1:orga nizer"
        2578         />
        2579                                            
        2580        </xsl:call -template>
        2581       
        2582                                           
        2583        <!-- Sourc e -->
        2584                                           
        2585        <xsl:text>
        2586         &#13;&#10; &#9;
        2587        </xsl:text >
        2588                                           
        2589        <xsl:text>
        2590         Source: 
        2591        </xsl:text >
        2592                                           
        2593        <xsl:choos e>
        2594                                                    
        2595         <xsl:when 
        2596          test="$row /n1:organi zer/n1:aut hor/n1:ass ignedAutho r/n1:repre sentedOrga nization/n 1:name"
        2597         >
        2598                                                              
        2599          <xsl:value -of 
        2600           select="$r ow/n1:orga nizer/n1:a uthor/n1:a ssignedAut hor/n1:rep resentedOr ganization /n1:name"
        2601          />
        2602                                                     
        2603         </xsl:when >
        2604                                                    
        2605         <xsl:when 
        2606          test="$row /n1:organi zer/n1:per former/n1: assignedEn tity/n1:re presentedO rganizatio n/n1:name"
        2607         >
        2608                                                              
        2609          <xsl:value -of 
        2610           select="$r ow/n1:orga nizer/n1:p erformer/n 1:assigned Entity/n1: represente dOrganizat ion/n1:nam e"
        2611          />
        2612                                                     
        2613         </xsl:when >
        2614                                                    
        2615         <xsl:other wise>
        2616                                                              
        2617          <xsl:text>
        2618           &#9;..Not  Available. .
        2619          </xsl:text >
        2620                                                     
        2621         </xsl:othe rwise>
        2622                                            
        2623        </xsl:choo se>
        2624       
        2625                                           
        2626        <!-- Statu s -->
        2627                                           
        2628        <xsl:text>
        2629         &#13;&#10; &#9;
        2630        </xsl:text >
        2631                                           
        2632        <xsl:text>
        2633         Status: 
        2634        </xsl:text >
        2635                                           
        2636        <xsl:choos e>
        2637                                                    
        2638         <xsl:when 
        2639          test="stri ng-length( $row/n1:or ganizer/n1 :statusCod e/@code)>0 "
        2640         >
        2641                                                              
        2642          <xsl:call- template 
        2643           name="flyo verSpan"
        2644          >
        2645                                                                        
        2646           <xsl:with- param 
        2647            name="data
        2648            select="$r ow/n1:orga nizer/n1:s tatusCode/ @code"
        2649           />
        2650                                                               
        2651          </xsl:call -template>
        2652                                                     
        2653         </xsl:when >
        2654                                                    
        2655         <xsl:other wise>
        2656                                                              
        2657          <xsl:text>
        2658           &#9;..Not  Available. .
        2659          </xsl:text >
        2660                                                     
        2661         </xsl:othe rwise>
        2662                                            
        2663        </xsl:choo se>
        2664                                           
        2665        <xsl:text>
        2666         &#13;&#10; &#9;
        2667        </xsl:text >
        2668       
        2669                                           
        2670        <xsl:for-e ach 
        2671         select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion"
        2672        >
        2673        
        2674                                                    
        2675         <!-- Resul t Date/Tim e -->
        2676                                                    
        2677         <xsl:text>
        2678          &#13;&#10; &#9;
        2679         </xsl:text >
        2680                                                    
        2681         <xsl:text>
        2682          &#9;Test D ate:
        2683         </xsl:text >
        2684                                                    
        2685         <xsl:call- template 
        2686          name="getR esultDT"
        2687         >
        2688                                                              
        2689          <xsl:with- param 
        2690           name="obse rvation" 
        2691           select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion"
        2692          />
        2693                                                     
        2694         </xsl:call -template>
        2695        
        2696                                                    
        2697         <!-- Resul t Date/Tim e -->
        2698                                                    
        2699         <xsl:text>
        2700          &#13;&#10; &#9;
        2701         </xsl:text >
        2702                                                    
        2703         <xsl:text>
        2704          &#9;Test N ame:
        2705         </xsl:text >
        2706                                                    
        2707         <xsl:varia ble 
        2708          name="type Result2"
        2709         >
        2710                                                              
        2711          <xsl:call- template 
        2712           name="getR esultType2 "
        2713          >
        2714                                                                        
        2715           <xsl:with- param 
        2716            name="obse rvation" 
        2717            select="."
        2718           />
        2719                                                               
        2720          </xsl:call -template>
        2721                                                     
        2722         </xsl:vari able>
        2723                                                    
        2724         <xsl:choos e>
        2725                                                              
        2726          <xsl:when 
        2727           test="stri ng-length( $typeResul t2)>0"
        2728          >
        2729                                                                        
        2730           <xsl:value -of 
        2731            select="$t ypeResult2 "
        2732           />
        2733                                                               
        2734          </xsl:when >
        2735                                                              
        2736          <xsl:other wise>
        2737                                                                        
        2738           <xsl:varia ble 
        2739            name="type Result3"
        2740           >
        2741                                                                                  
        2742            <xsl:call- template 
        2743             name="getR esultType"
        2744            >
        2745                                                                                            
        2746             <xsl:with- param 
        2747              name="obse rvation" 
        2748              select="."
        2749             />
        2750                                                                                   
        2751            </xsl:call -template>
        2752                                                                         
        2753           </xsl:vari able>
        2754                                                                        
        2755           <xsl:choos e>
        2756                                                                                  
        2757            <xsl:when 
        2758             test="stri ng-length( $typeResul t3)>0"
        2759            >
        2760                                                                                            
        2761             <xsl:value -of 
        2762              select="$t ypeResult3 "
        2763             />
        2764                                                                                   
        2765            </xsl:when >
        2766                                                                                  
        2767            <xsl:other wise>
        2768                                                                                            
        2769             <xsl:text>
        2770              &#9;..Not  Available. .
        2771             </xsl:text >
        2772                                                                                   
        2773            </xsl:othe rwise>
        2774                                                                         
        2775           </xsl:choo se>
        2776                                                               
        2777          </xsl:othe rwise>
        2778                                                     
        2779         </xsl:choo se>
        2780        
        2781                                                    
        2782         <!-- Resul t Value -- >
        2783        
        2784                                                    
        2785         <xsl:text>
        2786          &#13;&#10; &#9;
        2787         </xsl:text >
        2788                                                    
        2789         <xsl:text>
        2790          &#9;Result
        2791         </xsl:text >
        2792                                                    
        2793         <xsl:varia ble 
        2794          name="valu eResult2"
        2795         >
        2796                                                              
        2797          <xsl:call- template 
        2798           name="getR esultValue "
        2799          >
        2800                                                                        
        2801           <xsl:with- param 
        2802            name="obse rvation" 
        2803            select="."
        2804           />
        2805                                                               
        2806          </xsl:call -template>
        2807                                                     
        2808         </xsl:vari able>
        2809                                                    
        2810         <xsl:choos e>
        2811                                                              
        2812          <xsl:when 
        2813           test="stri ng-length( $valueResu lt2)>0"
        2814          >
        2815                                                                        
        2816           <xsl:value -of 
        2817            select="$v alueResult 2"
        2818           />
        2819                                                               
        2820          </xsl:when >
        2821                                                              
        2822          <xsl:other wise>
        2823                                                                        
        2824           <xsl:text>
        2825            &#9;..Not  Available. .
        2826           </xsl:text >
        2827                                                               
        2828          </xsl:othe rwise>
        2829                                                     
        2830         </xsl:choo se>
        2831        
        2832                                                    
        2833         <!-- Resul t Units -- >
        2834                                                    
        2835         <xsl:text>
        2836          &#13;&#10; &#9;
        2837         </xsl:text >
        2838                                                    
        2839         <xsl:text>
        2840          &#9;Unit(s ): 
        2841         </xsl:text >
        2842                                                    
        2843         <xsl:varia ble 
        2844          name="unit s"
        2845         >
        2846                                                              
        2847          <xsl:call- template 
        2848           name="getR esultUnit"
        2849          >
        2850                                                                        
        2851           <xsl:with- param 
        2852            name="obse rvation" 
        2853            select="n1 :observati on"
        2854           />
        2855                                                               
        2856          </xsl:call -template>
        2857                                                     
        2858         </xsl:vari able>
        2859                                                    
        2860         <xsl:choos e>
        2861                                                              
        2862          <xsl:when 
        2863           test="stri ng-length( $units)>0"
        2864          >
        2865                                                                        
        2866           <xsl:value -of 
        2867            select="$u nits"
        2868           />
        2869                                                               
        2870          </xsl:when >
        2871                                                              
        2872          <xsl:when 
        2873           test="$isK aiser"
        2874          >
        2875                                                                        
        2876           <xsl:text>
        2877           </xsl:text >
        2878                                                               
        2879          </xsl:when >                                                 
        2880                                                              
        2881          <xsl:other wise>
        2882                                                                        
        2883           <xsl:text>
        2884            &#9;..Not  Available. .
        2885           </xsl:text >
        2886                                                               
        2887          </xsl:othe rwise>
        2888                                                     
        2889         </xsl:choo se>
        2890        
        2891                                                    
        2892         <!-- inter pretation  -->
        2893                                                    
        2894         <xsl:text>
        2895          &#13;&#10; &#9;
        2896         </xsl:text >
        2897                                                    
        2898         <xsl:text>
        2899          &#9;Interp retation: 
        2900         </xsl:text >
        2901                                                    
        2902         <xsl:varia ble 
        2903          name="inte rpResult1"
        2904         >
        2905                                                              
        2906          <xsl:call- template 
        2907           name="getI nterpretat ion2"
        2908          >
        2909                                                                        
        2910           <xsl:with- param 
        2911            name="obse rvation" 
        2912            select="."
        2913           />
        2914                                                               
        2915          </xsl:call -template>
        2916                                                     
        2917         </xsl:vari able>
        2918                                                    
        2919         <xsl:choos e>
        2920                                                              
        2921          <xsl:when 
        2922           test="stri ng-length( $interpRes ult1)>0"
        2923          >
        2924                                                                        
        2925           <xsl:value -of 
        2926            select="$i nterpResul t1"
        2927           />
        2928                                                               
        2929          </xsl:when >
        2930                                                              
        2931          <xsl:other wise>
        2932                                                                        
        2933           <xsl:varia ble 
        2934            name="inte rpResult2"
        2935           >
        2936                                                                                  
        2937            <xsl:call- template 
        2938             name="getI nterpretat ion"
        2939            >
        2940                                                                                            
        2941             <xsl:with- param 
        2942              name="obse rvation" 
        2943              select="."
        2944             />
        2945                                                                                   
        2946            </xsl:call -template>
        2947                                                                         
        2948           </xsl:vari able>
        2949                                                                        
        2950           <xsl:choos e>
        2951                                                                                  
        2952            <xsl:when 
        2953             test="stri ng-length( $interpRes ult2)>0"
        2954            >
        2955                                                                                            
        2956             <xsl:value -of 
        2957              select="$i nterpResul t2"
        2958             />
        2959                                                                                   
        2960            </xsl:when >
        2961                                                                                  
        2962            <xsl:other wise>
        2963                                                                                            
        2964             <xsl:text>
        2965              &#9;..Not  Available. .
        2966             </xsl:text >
        2967                                                                                   
        2968            </xsl:othe rwise>
        2969                                                                         
        2970           </xsl:choo se>
        2971                                                               
        2972          </xsl:othe rwise>
        2973                                                     
        2974         </xsl:choo se>
        2975        
        2976        
        2977                                                    
        2978         <!-- ref r ange -->
        2979                                                    
        2980         <xsl:text>
        2981          &#13;&#10; &#9;
        2982         </xsl:text >
        2983                                                    
        2984         <xsl:text>
        2985          &#9;Refere nce Range:  
        2986         </xsl:text >
        2987                                                    
        2988         <xsl:varia ble 
        2989          name="ref"
        2990         >
        2991                                                              
        2992          <xsl:call- template 
        2993           name="getR efRange"
        2994          >
        2995                                                                        
        2996           <xsl:with- param 
        2997            name="obse rvation" 
        2998            select="."
        2999           />
        3000                                                               
        3001          </xsl:call -template>
        3002                                                     
        3003         </xsl:vari able>
        3004                                                    
        3005         <xsl:choos e>
        3006                                                              
        3007          <xsl:when 
        3008           test="stri ng-length( $ref)>0"
        3009          >
        3010                                                                        
        3011           <xsl:value -of 
        3012            select="$r ef"
        3013           />
        3014                                                               
        3015          </xsl:when >
        3016                                                              
        3017          <xsl:other wise>
        3018                                                                        
        3019           <xsl:text>
        3020            ..Not Avai lable..
        3021           </xsl:text >
        3022                                                               
        3023          </xsl:othe rwise>
        3024                                                     
        3025         </xsl:choo se>
        3026                                                    
        3027         <xsl:text>
        3028          &#13;&#10; &#9;
        3029         </xsl:text >
        3030                                                    
        3031         <xsl:text>
        3032          &#13;&#10; &#9;
        3033         </xsl:text >
        3034                                            
        3035        </xsl:for- each>
        3036                                  
        3037       </xsl:when >
        3038                        
        3039      </xsl:choo se>
        3040              
        3041     </xsl:temp late>
        3042    
        3043             
        3044     <!-- Encou nters entr y row -->
        3045             
        3046     <xsl:templ ate 
        3047      name="encR ow"
        3048     >
        3049                       
        3050      <xsl:param  
        3051       name="row"
        3052      />
        3053     
        3054                       
        3055      <!-- Encou nter Date/ Time-->
        3056                       
        3057      <xsl:text>
        3058       &#13;&#10; &#9;
        3059      </xsl:text >
        3060                       
        3061      <xsl:text>
        3062       Date: 
        3063      </xsl:text >
        3064                       
        3065      <xsl:choos e>
        3066                                 
        3067       <xsl:when 
        3068        test="$row /n1:encoun ter/n1:eff ectiveTime /n1:low/@v alue"
        3069       >
        3070                                           
        3071        <xsl:call- template 
        3072         name="form atDateShor t"
        3073        >
        3074                                                    
        3075         <xsl:with- param 
        3076          name="date String" 
        3077          select="$r ow/n1:enco unter/n1:e ffectiveTi me/n1:low/ @value"
        3078         />
        3079                                            
        3080        </xsl:call -template>
        3081                                  
        3082       </xsl:when >
        3083                                 
        3084       <xsl:when 
        3085        test="$row /n1:encoun ter/n1:eff ectiveTime /@value"
        3086       >
        3087                                           
        3088        <xsl:call- template 
        3089         name="form atDateShor t"
        3090        >
        3091                                                    
        3092         <xsl:with- param 
        3093          name="date String" 
        3094          select="$r ow/n1:enco unter/n1:e ffectiveTi me/@value"
        3095         />
        3096                                            
        3097        </xsl:call -template>
        3098                                  
        3099       </xsl:when >
        3100                                 
        3101       <xsl:other wise>
        3102                                           
        3103        <xsl:call- template 
        3104         name="na"
        3105        />
        3106                                  
        3107       </xsl:othe rwise>
        3108                        
        3109      </xsl:choo se>
        3110     
        3111                       
        3112      <!-- Encou nter Type   -->
        3113                       
        3114      <xsl:text>
        3115       &#13;&#10; &#9;
        3116      </xsl:text >
        3117                       
        3118      <xsl:text>
        3119       Type: 
        3120      </xsl:text >
        3121                       
        3122      <xsl:choos e>
        3123                                 
        3124       <xsl:when 
        3125        test="$row /n1:encoun ter"
        3126       >
        3127                                           
        3128        <xsl:call- template 
        3129         name="getE ncounterTy pe"
        3130        >
        3131                                                    
        3132         <xsl:with- param 
        3133          name="enco unter" 
        3134          select="$r ow/n1:enco unter"
        3135         />
        3136                                            
        3137        </xsl:call -template>
        3138                                  
        3139       </xsl:when >
        3140                                 
        3141       <xsl:other wise>
        3142                                           
        3143        <xsl:call- template 
        3144         name="na"
        3145        />
        3146                                  
        3147       </xsl:othe rwise>
        3148                        
        3149      </xsl:choo se>
        3150     
        3151     
        3152                       
        3153      <!-- Encou nter Free  Text Type- ->
        3154                       
        3155      <xsl:text>
        3156       &#13;&#10; &#9;
        3157      </xsl:text >
        3158                       
        3159      <xsl:text>
        3160       Free Text:  
        3161      </xsl:text >
        3162                       
        3163      <xsl:varia ble 
        3164       name="encF reeText"
        3165      >
        3166                                 
        3167       <xsl:call- template 
        3168        name="getE ncounterFr eeText"
        3169       >
        3170                                           
        3171        <xsl:with- param 
        3172         name="enco unter" 
        3173         select="$r ow/n1:enco unter"
        3174        />
        3175                                  
        3176       </xsl:call -template>
        3177                        
        3178      </xsl:vari able>
        3179                       
        3180      <xsl:choos e>
        3181                                 
        3182       <xsl:when 
        3183        test="stri ng-length( $encFreeTe xt)>1"
        3184       >
        3185                                           
        3186        <xsl:call- template 
        3187         name="repl aceSquiggl esWithLine feeds"
        3188        >
        3189                                                    
        3190         <xsl:with- param 
        3191          name="text
        3192          select="$e ncFreeText "
        3193         />
        3194                                            
        3195        </xsl:call -template>
        3196                                  
        3197       </xsl:when >
        3198                                 
        3199       <xsl:other wise>
        3200                                           
        3201        <xsl:call- template 
        3202         name="na"
        3203        />
        3204                                  
        3205       </xsl:othe rwise>
        3206                        
        3207      </xsl:choo se>
        3208     
        3209     
        3210                       
        3211      <!-- Encou nter Provi der-->
        3212                       
        3213      <xsl:text>
        3214       &#13;&#10; &#9;
        3215      </xsl:text >
        3216                       
        3217      <xsl:text>
        3218       Provider: 
        3219      </xsl:text >
        3220                       
        3221      <xsl:varia ble 
        3222       name="encP rovider"
        3223      >
        3224                                 
        3225       <xsl:call- template 
        3226        name="getE ncounterPr ovider"
        3227       >
        3228                                           
        3229        <xsl:with- param 
        3230         name="enco unter" 
        3231         select="$r ow/n1:enco unter"
        3232        />
        3233                                  
        3234       </xsl:call -template>
        3235                        
        3236      </xsl:vari able>
        3237                       
        3238      <xsl:choos e>
        3239                                 
        3240       <xsl:when 
        3241        test="stri ng-length( $encProvid er)>1"
        3242       >
        3243                                           
        3244        <xsl:value -of 
        3245         select="no rmalize-sp ace($encPr ovider)"
        3246        />
        3247                                  
        3248       </xsl:when >
        3249                                 
        3250       <xsl:other wise>
        3251                                           
        3252        <xsl:call- template 
        3253         name="na"
        3254        />
        3255                                  
        3256       </xsl:othe rwise>
        3257                        
        3258      </xsl:choo se>
        3259                       
        3260      <xsl:text>
        3261       &#13;&#10; &#9;
        3262      </xsl:text >
        3263              
        3264     </xsl:temp late>
        3265    
        3266             
        3267     <!-- Proce dures entr y row -->
        3268             
        3269     <xsl:templ ate 
        3270      name="proc edureRow"
        3271     >
        3272                       
        3273      <xsl:param  
        3274       name="row"
        3275      />
        3276     
        3277                       
        3278      <!-- Proce dure Date/ Time-->
        3279                       
        3280      <xsl:text>
        3281       &#13;&#10; &#9;
        3282      </xsl:text >
        3283                       
        3284      <xsl:text>
        3285       Date: 
        3286      </xsl:text >
        3287                       
        3288      <xsl:choos e>
        3289                                 
        3290       <xsl:when 
        3291        test="$row /n1:proced ure/n1:eff ectiveTime /n1:low/@v alue"
        3292       >
        3293                                           
        3294        <xsl:call- template 
        3295         name="form atDateShor t"
        3296        >
        3297                                                    
        3298         <xsl:with- param 
        3299          name="date String" 
        3300          select="$r ow/n1:proc edure/n1:e ffectiveTi me/n1:low/ @value"
        3301         />
        3302                                            
        3303        </xsl:call -template>
        3304                                  
        3305       </xsl:when >
        3306                                 
        3307       <xsl:other wise>
        3308                                           
        3309        <xsl:call- template 
        3310         name="na"
        3311        />
        3312                                  
        3313       </xsl:othe rwise>
        3314                        
        3315      </xsl:choo se>
        3316                       
        3317      <xsl:text>
        3318       &#13;&#10; &#9;
        3319      </xsl:text >
        3320     
        3321                       
        3322      <!-- Proce dure Type   -->
        3323                       
        3324      <xsl:text>
        3325       &#13;&#10; &#9;
        3326      </xsl:text >
        3327                       
        3328      <xsl:text>
        3329       Procedure:  
        3330      </xsl:text >
        3331                       
        3332      <xsl:varia ble 
        3333       name="type "
        3334      >
        3335                                 
        3336       <xsl:call- template 
        3337        name="getP rocedureTy pe"
        3338       >
        3339                                           
        3340        <xsl:with- param 
        3341         name="proc edure" 
        3342         select="$r ow/n1:proc edure"
        3343        />
        3344                                  
        3345       </xsl:call -template>
        3346                        
        3347      </xsl:vari able>
        3348                       
        3349      <xsl:choos e>
        3350                                 
        3351       <xsl:when 
        3352        test="stri ng-length( $type)>1"
        3353       >
        3354                                           
        3355        <xsl:value -of 
        3356         select="$t ype" 
        3357         disable-ou tput-escap ing="yes"
        3358        />
        3359                                  
        3360       </xsl:when >
        3361                                 
        3362       <xsl:other wise>
        3363                                           
        3364        <xsl:call- template 
        3365         name="na"
        3366        />
        3367                                  
        3368       </xsl:othe rwise>
        3369                        
        3370      </xsl:choo se>
        3371     
        3372                       
        3373      <!-- Proce dure Free  Text Type- ->
        3374                       
        3375      <xsl:text>
        3376       &#13;&#10; &#9;
        3377      </xsl:text >
        3378                       
        3379      <xsl:text>
        3380       Free Text:  
        3381      </xsl:text >
        3382                       
        3383      <xsl:varia ble 
        3384       name="proc FreeText"
        3385      >
        3386                                 
        3387       <xsl:call- template 
        3388        name="getP rocedureFr eeText"
        3389       >
        3390                                           
        3391        <xsl:with- param 
        3392         name="proc edure" 
        3393         select="$r ow/n1:proc edure"
        3394        />
        3395                                  
        3396       </xsl:call -template>
        3397                        
        3398      </xsl:vari able>
        3399                       
        3400      <xsl:choos e>
        3401                                 
        3402       <xsl:when 
        3403        test="stri ng-length( $procFreeT ext)>1"
        3404       >
        3405                                           
        3406        <xsl:call- template 
        3407         name="repl aceSquiggl esWithLine feeds"
        3408        >
        3409                                                    
        3410         <xsl:with- param 
        3411          name="text
        3412          select="$p rocFreeTex t"
        3413         />
        3414                                            
        3415        </xsl:call -template>
        3416                                  
        3417       </xsl:when >
        3418                                 
        3419       <xsl:other wise>
        3420                                           
        3421        <xsl:call- template 
        3422         name="na"
        3423        />
        3424                                  
        3425       </xsl:othe rwise>
        3426                        
        3427      </xsl:choo se>
        3428     
        3429                       
        3430      <!-- Proce dure Provi der-->
        3431                       
        3432      <xsl:text>
        3433       &#13;&#10; &#9;
        3434      </xsl:text >
        3435                       
        3436      <xsl:text>
        3437       Provider: 
        3438      </xsl:text >
        3439                       
        3440      <xsl:varia ble 
        3441       name="proc Provider"
        3442      >
        3443                                 
        3444       <xsl:call- template 
        3445        name="getP rocedurePr ovider"
        3446       >
        3447                                           
        3448        <xsl:with- param 
        3449         name="proc edure" 
        3450         select="$r ow/n1:proc edure"
        3451        />
        3452                                  
        3453       </xsl:call -template>
        3454                        
        3455      </xsl:vari able>
        3456                       
        3457      <xsl:choos e>
        3458                                 
        3459       <xsl:when 
        3460        test="stri ng-length( $procProvi der)>1"
        3461       >
        3462                                           
        3463        <xsl:value -of 
        3464         select="$p rocProvide r"
        3465        />
        3466                                  
        3467       </xsl:when >
        3468                                 
        3469       <xsl:other wise>
        3470                                           
        3471        <xsl:call- template 
        3472         name="na"
        3473        />
        3474                                  
        3475       </xsl:othe rwise>
        3476                        
        3477      </xsl:choo se>
        3478                       
        3479      <xsl:text>
        3480       &#13;&#10; &#9;
        3481      </xsl:text >
        3482              
        3483     </xsl:temp late>
        3484    
        3485             
        3486     <!-- Immun izations e ntry row - ->
        3487             
        3488     <xsl:templ ate 
        3489      name="immu nizationsR ow"
        3490     >
        3491                       
        3492      <xsl:param  
        3493       name="row"
        3494      />
        3495                       
        3496      <xsl:varia ble 
        3497       name="rowD ata" 
        3498       select="$r ow/n1:subs tanceAdmin istration/ n1:consuma ble/n1:man ufacturedP roduct/n1: manufactur edMaterial "
        3499      />
        3500                       
        3501      <xsl:varia ble 
        3502       name="rowS ubj" 
        3503       select="$r ow/n1:subs tanceAdmin istration/ n1:entryRe lationship [@typeCode ='SUBJ']/n 1:observat ion"
        3504      />
        3505                       
        3506      <xsl:varia ble 
        3507       name="rowC ause" 
        3508       select="$r ow/n1:subs tanceAdmin istration/ n1:entryRe lationship [@typeCode ='CAUS']/n 1:observat ion"
        3509      />
        3510                       
        3511      <xsl:varia ble 
        3512       name="subs tanceAdmin istration"  
        3513       select="$r ow/n1:subs tanceAdmin istration"
        3514      />
        3515     
        3516     
        3517                       
        3518      <!-- Immun ization Na me -->
        3519                       
        3520      <xsl:text>
        3521       &#13;&#10; &#9;
        3522      </xsl:text >
        3523                       
        3524      <xsl:text>
        3525       Name: 
        3526      </xsl:text >
        3527                       
        3528      <xsl:varia ble 
        3529       name="immu nResult"
        3530      >
        3531                                 
        3532       <xsl:call- template 
        3533        name="getI mmunizatio n"
        3534       >
        3535                                           
        3536        <xsl:with- param 
        3537         name="subs tanceAdmin istration"  
        3538         select="$s ubstanceAd ministrati on"
        3539        />
        3540                                  
        3541       </xsl:call -template>
        3542                        
        3543      </xsl:vari able>
        3544                       
        3545      <xsl:if 
        3546       test="stri ng-length( )>0"
        3547      >
        3548                                 
        3549       <xsl:value -of 
        3550        select="no rmalize-sp ace($immun Result)"
        3551       />
        3552                        
        3553      </xsl:if>
        3554     
        3555                       
        3556      <!-- Serie s -->
        3557                       
        3558      <xsl:text>
        3559       &#13;&#10; &#9;
        3560      </xsl:text >
        3561                       
        3562      <xsl:text>
        3563       Series: 
        3564      </xsl:text >
        3565                       
        3566      <xsl:value -of 
        3567       select="$r owSubj/n1: value"
        3568      />
        3569     
        3570                       
        3571      <!-- Immun ization Da te/Time-->
        3572                       
        3573      <xsl:text>
        3574       &#13;&#10; &#9;
        3575      </xsl:text >
        3576                       
        3577      <xsl:text>
        3578       Date: 
        3579      </xsl:text >
        3580                       
        3581      <xsl:choos e>
        3582                                 
        3583       <xsl:when 
        3584        test="stri ng-length( $row/n1:su bstanceAdm inistratio n/n1:effec tiveTime/@ value)=0"
        3585       >
        3586                                           
        3587        <xsl:text>
        3588         -- Not Ava ilable --
        3589        </xsl:text >
        3590                                  
        3591       </xsl:when >
        3592                                 
        3593       <xsl:other wise>
        3594                                           
        3595        <xsl:call- template 
        3596         name="form atDateShor t"
        3597        >
        3598                                                    
        3599         <xsl:with- param 
        3600          name="date String" 
        3601          select="$r ow/n1:subs tanceAdmin istration/ n1:effecti veTime/@va lue"
        3602         />
        3603                                            
        3604        </xsl:call -template>
        3605                                  
        3606       </xsl:othe rwise>
        3607                        
        3608      </xsl:choo se>
        3609                       
        3610      <xsl:text>
        3611       &#13;&#10; &#9;
        3612      </xsl:text >
        3613     
        3614              
        3615     </xsl:temp late>
        3616    
        3617             
        3618     <!--   Tit le  -->
        3619             
        3620     <xsl:templ ate 
        3621      match="n1: title"
        3622     >
        3623                       
        3624      <xsl:varia ble 
        3625       name="comp Found"
        3626      >
        3627                                 
        3628       <xsl:call- template 
        3629        name="comp onentFound "
        3630       >
        3631                                           
        3632        <xsl:with- param 
        3633         name="comp Section" 
        3634         select=".. /."
        3635        />
        3636                                  
        3637       </xsl:call -template>
        3638                        
        3639      </xsl:vari able>
        3640                       
        3641      <xsl:choos e>
        3642                                 
        3643       <xsl:when 
        3644        test="stri ng-length( $compFound )>0"
        3645       >
        3646                                           
        3647        <xsl:text>
        3648         &#13;&#10;
        3649        </xsl:text >
        3650                                           
        3651        <xsl:text>
        3652         &#13;&#10;
        3653        </xsl:text >
        3654                                           
        3655        <xsl:value -of 
        3656         select="."
        3657        />
        3658                                           
        3659        <xsl:text>
        3660         &#13;&#10;
        3661        </xsl:text >
        3662                                           
        3663        <xsl:text>
        3664         ========== ========== ========== ========
        3665        </xsl:text >
        3666                                           
        3667        <xsl:text>
        3668         &#13;&#10;
        3669        </xsl:text >
        3670                                  
        3671       </xsl:when >
        3672                        
        3673      </xsl:choo se>
        3674              
        3675     </xsl:temp late>
        3676    
        3677             
        3678     <!--   Tex t   -->
        3679             
        3680     <xsl:templ ate 
        3681      match="n1: text"
        3682     >
        3683                       
        3684      <xsl:apply -templates  />
        3685              
        3686     </xsl:temp late>
        3687    
        3688             
        3689     <!--   par agraph  -- >
        3690             
        3691     <xsl:templ ate 
        3692      match="n1: paragraph"
        3693     >
        3694                       
        3695      <xsl:text>
        3696       &#13;&#10;
        3697      </xsl:text >
        3698                       
        3699      <xsl:apply -templates />
        3700              
        3701     </xsl:temp late>
        3702    
        3703             
        3704     <!--     C ontent w/  deleted te xt is hidd en -->
        3705             
        3706     <xsl:templ ate 
        3707      match="n1: content[@r evised='de lete']"
        3708     />
        3709    
        3710             
        3711     <!--   con tent  -->
        3712             
        3713     <xsl:templ ate 
        3714      match="n1: content"
        3715     >
        3716                       
        3717      <xsl:apply -templates />
        3718              
        3719     </xsl:temp late>
        3720    
        3721    
        3722             
        3723     <!--   lis t  -->
        3724             
        3725     <xsl:templ ate 
        3726      match="n1: list"
        3727     >
        3728                       
        3729      <xsl:text>
        3730       &#13;&#10;
        3731      </xsl:text >
        3732                       
        3733      <xsl:if 
        3734       test="n1:c aption"
        3735      >
        3736                                 
        3737       <xsl:text>
        3738        ========== ========== ===
        3739       </xsl:text >
        3740                                 
        3741       <xsl:text>
        3742        &#13;&#10;
        3743       </xsl:text >
        3744                                 
        3745       <xsl:apply -templates  
        3746        select="n1 :caption"
        3747       />
        3748                                 
        3749       <xsl:text>
        3750        &#13;&#10;
        3751       </xsl:text >
        3752                                 
        3753       <xsl:text>
        3754        ========== ========== ===
        3755       </xsl:text >
        3756                                 
        3757       <xsl:text>
        3758        &#13;&#10;
        3759       </xsl:text >
        3760                        
        3761      </xsl:if>
        3762                       
        3763      <xsl:for-e ach 
        3764       select="n1 :item"
        3765      >
        3766                                 
        3767       <xsl:text>
        3768        --
        3769       </xsl:text >
        3770                                 
        3771       <xsl:apply -templates  />
        3772                                 
        3773       <xsl:text>
        3774        &#13;&#10;
        3775       </xsl:text >
        3776                        
        3777      </xsl:for- each>
        3778              
        3779     </xsl:temp late>
        3780    
        3781             
        3782     <xsl:templ ate 
        3783      match="n1: list[@list Type='orde red']"
        3784     >
        3785                       
        3786      <xsl:if 
        3787       test="n1:c aption"
        3788      >
        3789                                 
        3790       <span 
        3791        style="fon t-weight:b old; "
        3792       >
        3793                                           
        3794        <xsl:apply -templates  
        3795         select="n1 :caption"
        3796        />
        3797                                  
        3798       </span>
        3799                        
        3800      </xsl:if>
        3801                       
        3802      <ol>
        3803                                 
        3804       <xsl:for-e ach 
        3805        select="n1 :item"
        3806       >
        3807                                           
        3808        <li>
        3809                                                    
        3810         <xsl:apply -templates  />
        3811                                            
        3812        </li>
        3813                                  
        3814       </xsl:for- each>
        3815                        
        3816      </ol>
        3817              
        3818     </xsl:temp late>
        3819    
        3820             
        3821     <!--   cap tion  -->
        3822             
        3823     <xsl:templ ate 
        3824      match="n1: caption"
        3825     >
        3826                       
        3827      <xsl:apply -templates />
        3828                       
        3829      <xsl:text>
        3830      
        3831      </xsl:text >
        3832              
        3833     </xsl:temp late>
        3834    
        3835             
        3836     <!--       Tables   - ->
        3837             
        3838     <xsl:templ ate 
        3839      match="n1: table/@*|n 1:thead/@* |n1:tfoot/ @*|n1:tbod y/@*|n1:co lgroup/@*| n1:col/@*| n1:tr/@*|n 1:th/@*|n1 :td/@*"
        3840     >
        3841                       
        3842      <xsl:copy>
        3843                                 
        3844       <xsl:copy- of 
        3845        select="@* "
        3846       />
        3847                                 
        3848       <xsl:apply -templates />
        3849                        
        3850      </xsl:copy >
        3851              
        3852     </xsl:temp late>
        3853    
        3854             
        3855     <xsl:templ ate 
        3856      match="n1: table"
        3857     >
        3858                       
        3859      <table>
        3860                                 
        3861       <xsl:copy- of 
        3862        select="@* "
        3863       />
        3864                                 
        3865       <xsl:apply -templates />
        3866                        
        3867      </table>
        3868              
        3869     </xsl:temp late>
        3870    
        3871             
        3872     <xsl:templ ate 
        3873      match="n1: thead"
        3874     >
        3875                       
        3876      <thead>
        3877                                 
        3878       <xsl:copy- of 
        3879        select="@* "
        3880       />
        3881                                 
        3882       <xsl:apply -templates />
        3883                        
        3884      </thead>
        3885              
        3886     </xsl:temp late>
        3887    
        3888             
        3889     <xsl:templ ate 
        3890      match="n1: tfoot"
        3891     >
        3892                       
        3893      <tfoot>
        3894                                 
        3895       <xsl:copy- of 
        3896        select="@* "
        3897       />
        3898                                 
        3899       <xsl:apply -templates />
        3900                        
        3901      </tfoot>
        3902              
        3903     </xsl:temp late>
        3904    
        3905             
        3906     <xsl:templ ate 
        3907      match="n1: tbody"
        3908     >
        3909                       
        3910      <tbody>
        3911                                 
        3912       <xsl:copy- of 
        3913        select="@* "
        3914       />
        3915                                 
        3916       <xsl:apply -templates />
        3917                        
        3918      </tbody>
        3919              
        3920     </xsl:temp late>
        3921    
        3922             
        3923     <xsl:templ ate 
        3924      match="n1: colgroup"
        3925     >
        3926                       
        3927      <colgroup>
        3928                                 
        3929       <xsl:copy- of 
        3930        select="@* "
        3931       />
        3932                                 
        3933       <xsl:apply -templates />
        3934                        
        3935      </colgroup >
        3936              
        3937     </xsl:temp late>
        3938    
        3939             
        3940     <xsl:templ ate 
        3941      match="n1: col"
        3942     >
        3943                       
        3944      <col>
        3945                                 
        3946       <xsl:copy- of 
        3947        select="@* "
        3948       />
        3949                                 
        3950       <xsl:apply -templates />
        3951                        
        3952      </col>
        3953              
        3954     </xsl:temp late>
        3955    
        3956             
        3957     <xsl:templ ate 
        3958      match="n1: tr"
        3959     >
        3960                       
        3961      <tr>
        3962                                 
        3963       <xsl:copy- of 
        3964        select="@* "
        3965       />
        3966                                 
        3967       <xsl:apply -templates />
        3968                        
        3969      </tr>
        3970              
        3971     </xsl:temp late>
        3972    
        3973             
        3974     <xsl:templ ate 
        3975      match="n1: th"
        3976     >
        3977                       
        3978      <th>
        3979                                 
        3980       <xsl:copy- of 
        3981        select="@* "
        3982       />
        3983                                 
        3984       <xsl:apply -templates />
        3985                        
        3986      </th>
        3987              
        3988     </xsl:temp late>
        3989    
        3990             
        3991     <xsl:templ ate 
        3992      match="n1: td"
        3993     >
        3994                       
        3995      <td>
        3996                                 
        3997       <xsl:copy- of 
        3998        select="@* "
        3999       />
        4000                                 
        4001       <xsl:apply -templates />
        4002                        
        4003      </td>
        4004              
        4005     </xsl:temp late>
        4006    
        4007             
        4008     <xsl:templ ate 
        4009      match="n1: table/n1:c aption"
        4010     >
        4011                       
        4012      <span 
        4013       style="fon t-weight:b old; "
        4014      >
        4015                                 
        4016       <xsl:apply -templates />
        4017                        
        4018      </span>
        4019              
        4020     </xsl:temp late>
        4021    
        4022             
        4023     <xsl:templ ate 
        4024      match="n1: renderMult iMedia"
        4025     >
        4026              
        4027     </xsl:temp late>
        4028    
        4029             
        4030     <xsl:templ ate 
        4031      match="//n 1:*[@style Code]"
        4032     >
        4033     
        4034                       
        4035      <xsl:if 
        4036       test="@sty leCode='Bo ld'"
        4037      >
        4038                                 
        4039       <xsl:eleme nt 
        4040        name='b'
        4041       >
        4042                                           
        4043        <xsl:apply -templates />
        4044                                  
        4045       </xsl:elem ent>
        4046                        
        4047      </xsl:if>
        4048     
        4049                       
        4050      <xsl:if 
        4051       test="@sty leCode='It alics'"
        4052      >
        4053                                 
        4054       <xsl:eleme nt 
        4055        name='i'
        4056       >
        4057                                           
        4058        <xsl:apply -templates />
        4059                                  
        4060       </xsl:elem ent>
        4061                        
        4062      </xsl:if>
        4063     
        4064                       
        4065      <xsl:if 
        4066       test="@sty leCode='Un derline'"
        4067      >
        4068                                 
        4069       <xsl:eleme nt 
        4070        name='u'
        4071       >
        4072                                           
        4073        <xsl:apply -templates />
        4074                                  
        4075       </xsl:elem ent>
        4076                        
        4077      </xsl:if>
        4078     
        4079                       
        4080      <xsl:if 
        4081       test="cont ains(@styl eCode,'Bol d') and co ntains(@st yleCode,'I talics') a nd not (co ntains(@st yleCode, ' Underline' ))"
        4082      >
        4083                                 
        4084       <xsl:eleme nt 
        4085        name='b'
        4086       >
        4087                                           
        4088        <xsl:eleme nt 
        4089         name='i'
        4090        >
        4091                                                    
        4092         <xsl:apply -templates />
        4093                                            
        4094        </xsl:elem ent>
        4095                                  
        4096       </xsl:elem ent>
        4097                        
        4098      </xsl:if>
        4099     
        4100                       
        4101      <xsl:if 
        4102       test="cont ains(@styl eCode,'Bol d') and co ntains(@st yleCode,'U nderline')  and not ( contains(@ styleCode,  'Italics' ))"
        4103      >
        4104                                 
        4105       <xsl:eleme nt 
        4106        name='b'
        4107       >
        4108                                           
        4109        <xsl:eleme nt 
        4110         name='u'
        4111        >
        4112                                                    
        4113         <xsl:apply -templates />
        4114                                            
        4115        </xsl:elem ent>
        4116                                  
        4117       </xsl:elem ent>
        4118                        
        4119      </xsl:if>
        4120     
        4121                       
        4122      <xsl:if 
        4123       test="cont ains(@styl eCode,'Ita lics') and  contains( @styleCode ,'Underlin e') and no t (contain s(@styleCo de, 'Bold' ))"
        4124      >
        4125                                 
        4126       <xsl:eleme nt 
        4127        name='i'
        4128       >
        4129                                           
        4130        <xsl:eleme nt 
        4131         name='u'
        4132        >
        4133                                                    
        4134         <xsl:apply -templates />
        4135                                            
        4136        </xsl:elem ent>
        4137                                  
        4138       </xsl:elem ent>
        4139                        
        4140      </xsl:if>
        4141     
        4142                       
        4143      <xsl:if 
        4144       test="cont ains(@styl eCode,'Ita lics') and  contains( @styleCode ,'Underlin e') and co ntains(@st yleCode, ' Bold')"
        4145      >
        4146                                 
        4147       <xsl:eleme nt 
        4148        name='b'
        4149       >
        4150                                           
        4151        <xsl:eleme nt 
        4152         name='i'
        4153        >
        4154                                                    
        4155         <xsl:eleme nt 
        4156          name='u'
        4157         >
        4158                                                              
        4159          <xsl:apply -templates />
        4160                                                     
        4161         </xsl:elem ent>
        4162                                            
        4163        </xsl:elem ent>
        4164                                  
        4165       </xsl:elem ent>
        4166                        
        4167      </xsl:if>
        4168     
        4169              
        4170     </xsl:temp late>
        4171    
        4172             
        4173     <!--    Su perscript  or Subscri pt   -->
        4174             
        4175     <xsl:templ ate 
        4176      match="n1: sup"
        4177     >
        4178                       
        4179      <xsl:eleme nt 
        4180       name='sup'
        4181      >
        4182                                 
        4183       <xsl:apply -templates />
        4184                        
        4185      </xsl:elem ent>
        4186              
        4187     </xsl:temp late>
        4188             
        4189     <xsl:templ ate 
        4190      match="n1: sub"
        4191     >
        4192                       
        4193      <xsl:eleme nt 
        4194       name='sub'
        4195      >
        4196                                 
        4197       <xsl:apply -templates />
        4198                        
        4199      </xsl:elem ent>
        4200              
        4201     </xsl:temp late>
        4202    
        4203             
        4204     <!--  Bott omline  -- >
        4205    
        4206             
        4207     <xsl:templ ate 
        4208      name="disp layBottomL ine"
        4209     >
        4210                       
        4211      <xsl:text>
        4212       &#13;&#10;
        4213      </xsl:text >
        4214                       
        4215      <xsl:text>
        4216       Electronic ally gener ated by: 
        4217      </xsl:text >
        4218                       
        4219      <xsl:text>
        4220       &#13;&#10;
        4221      </xsl:text >
        4222                       
        4223      <xsl:call- template 
        4224       name="getN ame"
        4225      >
        4226                                 
        4227       <xsl:with- param 
        4228        name="name "
        4229                    
        4230        select="n1 :legalAuth enticator/ n1:assigne dEntity/n1 :represent edOrganiza tion/n1:na me"
        4231       />
        4232                        
        4233      </xsl:call -template>
        4234                       
        4235      <xsl:text>
        4236        on 
        4237      </xsl:text >
        4238                       
        4239      <xsl:choos e>
        4240                                 
        4241       <xsl:when 
        4242        test="stri ng-length( n1:effecti veTime/@va lue)=0"
        4243       >
        4244                                           
        4245        <xsl:call- template 
        4246         name="na"
        4247        />
        4248                                  
        4249       </xsl:when >
        4250                                 
        4251       <xsl:when 
        4252        test="star ts-with(n1 :effective Time/@valu e,' ')"
        4253       >
        4254                                           
        4255        <xsl:call- template 
        4256         name="na"
        4257        />
        4258                                  
        4259       </xsl:when >
        4260                                 
        4261       <xsl:other wise>
        4262                                           
        4263        <xsl:call- template 
        4264         name="form atDateLong "
        4265        >
        4266                                                    
        4267         <xsl:with- param 
        4268          name="date String" 
        4269          select="n1 :effective Time/@valu e"
        4270         />
        4271                                            
        4272        </xsl:call -template>
        4273                                  
        4274       </xsl:othe rwise>
        4275                        
        4276      </xsl:choo se>
        4277                       
        4278      <xsl:text>
        4279       &#13;&#10;
        4280      </xsl:text >
        4281              
        4282     </xsl:temp late>
        4283    
        4284             
        4285     <xsl:templ ate 
        4286      match="n1: component/ n1:section [n1:templa teId/@root ='2.16.840 .1.113883. 10.20.1.11 ']/n1:text /n1:table/ n1:tbody"
        4287     >
        4288                       
        4289      <xsl:apply -templates >
        4290                                 
        4291       <xsl:sort 
        4292        select="n1 :td[3]" 
        4293        order="des cending"
        4294       />
        4295                        
        4296      </xsl:appl y-template s>
        4297              
        4298     </xsl:temp late>
        4299    
        4300             
        4301     <xsl:templ ate 
        4302      match="n1: component/ n1:section [n1:templa teId/@root ='2.16.840 .1.113883. 10.20.1.8' ]/n1:text/ n1:table/n 1:tbody"
        4303     >
        4304                       
        4305      <xsl:apply -templates >
        4306                                 
        4307       <xsl:sort 
        4308        select="n1 :td[5]" 
        4309        order="des cending"
        4310       />
        4311                        
        4312      </xsl:appl y-template s>
        4313              
        4314     </xsl:temp late>
        4315    
        4316             
        4317     <xsl:templ ate 
        4318      match="n1: component/ n1:section [n1:templa teId/@root ='2.16.840 .1.113883. 10.20.1.16 ' or n1:te mplateId/@ root='2.16 .840.1.113 883.10.20. 1.14' or n 1:template Id/@root=' 2.16.840.1 .113883.10 .20.1.6' o r n1:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.1.3 ']/n1:text /n1:table/ n1:tbody"
        4319     >
        4320                       
        4321      <xsl:apply -templates >
        4322                                 
        4323       <xsl:sort 
        4324        select="n1 :td[2]" 
        4325        order="des cending"
        4326       />
        4327                        
        4328      </xsl:appl y-template s>
        4329              
        4330     </xsl:temp late>
        4331    
        4332             
        4333     <xsl:templ ate 
        4334      match="n1: component/ n1:section [n1:templa teId/@root ='2.16.840 .1.113883. 10.20.1.11 ']/n1:text /n1:table/ n1:tbody/n 1:tr/n1:td [3]"
        4335     >
        4336                       
        4337      <td>
        4338                                 
        4339       <xsl:call- template 
        4340        name="form atDateShor t"
        4341       >
        4342                                           
        4343        <xsl:with- param 
        4344         name="date String"
        4345                                            
        4346         select="te xt()"
        4347        />
        4348                                  
        4349       </xsl:call -template>
        4350                        
        4351      </td>
        4352              
        4353     </xsl:temp late>
        4354    
        4355             
        4356     <xsl:templ ate 
        4357      match="n1: component/ n1:section [n1:templa teId/@root ='2.16.840 .1.113883. 10.20.1.8' ]/n1:text/ n1:table/n 1:tbody/n1 :tr/n1:td[ 5]"
        4358     >
        4359                       
        4360      <td>
        4361                                 
        4362       <xsl:call- template 
        4363        name="form atDateShor t"
        4364       >
        4365                                           
        4366        <xsl:with- param 
        4367         name="date String"
        4368                                                     
        4369         select="te xt()"
        4370        />
        4371                                  
        4372       </xsl:call -template>
        4373                        
        4374      </td>
        4375              
        4376     </xsl:temp late>
        4377    
        4378             
        4379     <xsl:templ ate 
        4380      match="n1: component/ n1:section [n1:templa teId/@root ='2.16.840 .1.113883. 10.20.1.16 ' or n1:te mplateId/@ root='2.16 .840.1.113 883.10.20. 1.14' or n 1:template Id/@root=' 2.16.840.1 .113883.10 .20.1.6' o r n1:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.1.3 ']/n1:text /n1:table/ n1:tbody/n 1:tr/n1:td [2]"
        4381     >
        4382                       
        4383      <td>
        4384                                 
        4385       <xsl:call- template 
        4386        name="form atDateShor t"
        4387       >
        4388                                           
        4389        <xsl:with- param 
        4390         name="date String"
        4391                                                     
        4392         select="co ncat(subst ring(text( ),1,4),sub string(tex t(),6,2),s ubstring(t ext(),9,2) )"
        4393        />
        4394                                  
        4395       </xsl:call -template>
        4396                        
        4397      </td>
        4398              
        4399     </xsl:temp late>
        4400    
        4401             
        4402     <xsl:templ ate 
        4403      name="noDa ta_Clipboa rd"
        4404     >
        4405                       
        4406      <xsl:text>
        4407       &#13;&#10;
        4408      </xsl:text >
        4409                       
        4410      <xsl:text>
        4411        No data f ound for t his domain
        4412      </xsl:text >
        4413              
        4414     </xsl:temp late>
        4415    
        4416             
        4417     <xsl:templ ate 
        4418      name="flyo verSpan"
        4419     >
        4420                       
        4421      <xsl:param  
        4422       name="data "
        4423      />
        4424                       
        4425      <xsl:value -of 
        4426       select="$d ata"
        4427      />
        4428              
        4429     </xsl:temp late>
        4430    
        4431             
        4432     <xsl:templ ate 
        4433      name="disp lay1LineBr eak"
        4434     >
        4435                       
        4436      <xsl:text>
        4437       &#13;&#10;
        4438      </xsl:text >
        4439              
        4440     </xsl:temp late>
        4441    
        4442             
        4443     <xsl:templ ate 
        4444      name="disp layVitalsM ultiSepara tor"
        4445     >
        4446                       
        4447      <xsl:text>
        4448       &#13;&#10; &#9;&#9;
        4449      </xsl:text >
        4450              
        4451     </xsl:temp late>
        4452    
        4453             
        4454     <xsl:templ ate 
        4455      name="disp layVitalRo w"
        4456     >
        4457                       
        4458      <xsl:param  
        4459       name="row"
        4460      />
        4461                       
        4462      <xsl:call- template 
        4463       name="disp layVitalIt ems"
        4464      >
        4465                                 
        4466       <xsl:with- param 
        4467        name="row"  
        4468        select="$r ow"
        4469       />
        4470                        
        4471      </xsl:call -template>
        4472                       
        4473      <xsl:call- template 
        4474       name="disp lay1LineBr eak"
        4475      />
        4476                       
        4477      <xsl:call- template 
        4478       name="disp lay1LineBr eak"
        4479      />
        4480              
        4481     </xsl:temp late>
        4482    
        4483             
        4484     <xsl:templ ate 
        4485      name="disp layVitalsD ateItem"
        4486     >
        4487                       
        4488      <xsl:param  
        4489       name="rowD ata"
        4490      />
        4491                       
        4492      <xsl:text>
        4493       &#13;&#10; &#9;
        4494      </xsl:text >
        4495                       
        4496      <xsl:text>
        4497       Date: 
        4498      </xsl:text >
        4499                       
        4500      <xsl:call- template 
        4501       name="disp layVitalsD ate"
        4502      >
        4503                                 
        4504       <xsl:with- param 
        4505        name="rowD ata" 
        4506        select="$r owData"
        4507       />
        4508                        
        4509      </xsl:call -template>
        4510              
        4511     </xsl:temp late>
        4512    
        4513             
        4514     <xsl:templ ate 
        4515      name="disp layVitalsT empItem"
        4516     >
        4517                       
        4518      <xsl:param  
        4519       name="temp "
        4520      />
        4521                       
        4522      <xsl:text>
        4523       &#13;&#10; &#9;
        4524      </xsl:text >
        4525                       
        4526      <xsl:text>
        4527       Temp: 
        4528      </xsl:text >
        4529                       
        4530      <xsl:call- template 
        4531       name="disp layVitalsT emp"
        4532      >
        4533                                 
        4534       <xsl:with- param 
        4535        name="temp
        4536        select="$t emp"
        4537       />
        4538                        
        4539      </xsl:call -template>
        4540              
        4541     </xsl:temp late>
        4542    
        4543             
        4544     <xsl:templ ate 
        4545      name="disp layVitalsS ourceItem"
        4546     >
        4547                       
        4548      <xsl:param  
        4549       name="row"
        4550      />
        4551                       
        4552      <xsl:text>
        4553       &#13;&#10; &#9;
        4554      </xsl:text >
        4555                       
        4556      <xsl:text>
        4557       Source: 
        4558      </xsl:text >
        4559                       
        4560      <xsl:call- template 
        4561       name="disp layVitalsS ource"
        4562      >
        4563                                 
        4564       <xsl:with- param 
        4565        name="row"  
        4566        select="$r ow"
        4567       />
        4568                        
        4569      </xsl:call -template>
        4570              
        4571     </xsl:temp late>
        4572    
        4573             
        4574     <xsl:templ ate 
        4575      name="disp layVitalsP oxItem"
        4576     >
        4577                       
        4578      <xsl:param  
        4579       name="pox"
        4580      />
        4581                       
        4582      <xsl:text>
        4583       &#13;&#10; &#9;
        4584      </xsl:text >
        4585                       
        4586      <xsl:text>
        4587       PoX: 
        4588      </xsl:text >
        4589                       
        4590      <xsl:call- template 
        4591       name="disp layVitalsP ox"
        4592      >
        4593                                 
        4594       <xsl:with- param 
        4595        name="pox"  
        4596        select="$p ox"
        4597       />
        4598                        
        4599      </xsl:call -template>
        4600              
        4601     </xsl:temp late>
        4602    
        4603             
        4604     <xsl:templ ate 
        4605      name="disp layVitalsW eightItem"
        4606     >
        4607                       
        4608      <xsl:param  
        4609       name="weig ht"
        4610      />
        4611                       
        4612      <xsl:text>
        4613       &#13;&#10; &#9;
        4614      </xsl:text >
        4615                       
        4616      <xsl:text>
        4617       Weight: 
        4618      </xsl:text >
        4619                       
        4620      <xsl:call- template 
        4621       name="disp layVitalsW eight"
        4622      >
        4623                                 
        4624       <xsl:with- param 
        4625        name="weig ht" 
        4626        select="$w eight"
        4627       />
        4628                        
        4629      </xsl:call -template>
        4630              
        4631     </xsl:temp late>
        4632    
        4633             
        4634     <xsl:templ ate 
        4635      name="disp layVitalsH eightItem"
        4636     >
        4637                       
        4638      <xsl:param  
        4639       name="heig ht"
        4640      />
        4641                       
        4642      <xsl:text>
        4643       &#13;&#10; &#9;
        4644      </xsl:text >
        4645                       
        4646      <xsl:text>
        4647       Height: 
        4648      </xsl:text >
        4649                       
        4650      <xsl:call- template 
        4651       name="disp layVitalsH eight"
        4652      >
        4653                                 
        4654       <xsl:with- param 
        4655        name="heig ht" 
        4656        select="$h eight"
        4657       />
        4658                        
        4659      </xsl:call -template>
        4660              
        4661     </xsl:temp late>
        4662    
        4663             
        4664     <xsl:templ ate 
        4665      name="disp layVitalsB pItem"
        4666     >
        4667                       
        4668      <xsl:param  
        4669       name="row"
        4670      />
        4671                       
        4672      <xsl:text>
        4673       &#13;&#10; &#9;
        4674      </xsl:text >
        4675                       
        4676      <xsl:text>
        4677       BP: 
        4678      </xsl:text >
        4679                       
        4680      <xsl:call- template 
        4681       name="disp layVitalsB p"
        4682      >
        4683                                 
        4684       <xsl:with- param 
        4685        name="row"  
        4686        select="$r ow"
        4687       />
        4688                        
        4689      </xsl:call -template>
        4690              
        4691     </xsl:temp late>
        4692    
        4693             
        4694     <xsl:templ ate 
        4695      name="disp layVitalsR espItem"
        4696     >
        4697                       
        4698      <xsl:param  
        4699       name="resp "
        4700      />
        4701                       
        4702      <xsl:text>
        4703       &#13;&#10; &#9;
        4704      </xsl:text >
        4705                       
        4706      <xsl:text>
        4707       Resp: 
        4708      </xsl:text >
        4709                       
        4710      <xsl:call- template 
        4711       name="disp layVitalsR esp"
        4712      >
        4713                                 
        4714       <xsl:with- param 
        4715        name="resp
        4716        select="$r esp"
        4717       />
        4718                        
        4719      </xsl:call -template>
        4720              
        4721     </xsl:temp late>
        4722    
        4723             
        4724     <xsl:templ ate 
        4725      name="disp layVitalsP ulseItem"
        4726     >
        4727                       
        4728      <xsl:param  
        4729       name="puls e"
        4730      />
        4731                       
        4732      <xsl:text>
        4733       &#13;&#10; &#9;
        4734      </xsl:text >
        4735                       
        4736      <xsl:text>
        4737       Pulse: 
        4738      </xsl:text >
        4739                       
        4740      <xsl:call- template 
        4741       name="disp layVitalsP ulse"
        4742      >
        4743                                 
        4744       <xsl:with- param 
        4745        name="puls e" 
        4746        select="$p ulse"
        4747       />
        4748                        
        4749      </xsl:call -template>
        4750              
        4751     </xsl:temp late>
        4752    
        4753   </xsl:styl esheet>
        4754