3163. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/9/2017 3:49:53 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.

3163.1 Files compared

# Location File Last Modified
1 Fri Jun 9 19:49:53 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 cda2detailCommon.xslt Wed Jun 7 05:19:32 2017 UTC

3163.2 Comparison summary

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

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

3163.4 Active regular expressions

No regular expressions were active.

3163.5 Comparison detail

        1   <?xml 
        2     version="1 .0" 
        3     encoding=" utf-8"
        4   ?>
        5   <xsl:style sheet 
        6     version="1 .0" 
        7     xmlns:xsl= "http://ww w.w3.org/1 999/XSL/Tr ansform"
        8       
        9     xmlns:msxs l="urn:sch emas-micro soft-com:x slt" 
        10     exclude-re sult-prefi xes="msxsl "
        11           
        12     xmlns:n1=" urn:hl7-or g:v3"
        13   >
        14    
        15             
        16     <!-- <xsl: import hre f="/gov/va /nvap/docu ment/xsl/v istaweb/nh in/detailC ommon.xsl" /> -->
        17    
        18             
        19     <xsl:templ ate 
        20      match="/"
        21     >
        22                       
        23      <xsl:apply -templates  
        24       select="n1 :ClinicalD ocument"
        25      />
        26              
        27     </xsl:temp late>
        28    
        29             
        30     <xsl:templ ate 
        31      match="n1: ClinicalDo cument"
        32     >
        33                       
        34      <xsl:call- template 
        35       name="disp laySource"
        36      />
        37                       
        38      <xsl:call- template 
        39       name="disp layTitle"
        40      />
        41                       
        42      <xsl:call- template 
        43       name="disp layReportD ates"
        44      />
        45                       
        46      <xsl:call- template 
        47       name="disp layPatient Block"
        48      />
        49                       
        50      <xsl:call- template 
        51       name="disp layAuthorB lock"
        52      />
        53                       
        54      <xsl:call- template 
        55       name="disp layTableOf Contents"
        56      />
        57                       
        58      <xsl:call- template 
        59       name="disp layContent s"
        60      />
        61                       
        62      <xsl:call- template 
        63       name="disp layContact InfoBlock"
        64      />
        65                       
        66      <xsl:call- template 
        67       name="disp layBottomL ine"
        68      />
        69              
        70     </xsl:temp late>
        71    
        72             
        73     <!-- Templ ates to be  overridde n -->
        74             
        75     <!-- ===== ========== ========== ========== ========== ========== ========== ======= -- >
        76             
        77     <xsl:templ ate 
        78      name="alle rgyRow"
        79     />
        80             
        81     <xsl:templ ate 
        82      name="disp lay1LineBr eak"
        83     />
        84             
        85     <xsl:templ ate 
        86      name="disp layAllergy ComponentS ection"
        87     />
        88             
        89     <xsl:templ ate 
        90      name="disp layAuthorB lock"
        91     />
        92             
        93     <xsl:templ ate 
        94      name="disp layBottomL ine"
        95     />
        96             
        97     <xsl:templ ate 
        98      name="disp layContact InfoBlock"
        99     />
        100             
        101     <xsl:templ ate 
        102      name="disp layContent s"
        103     />
        104             
        105     <xsl:templ ate 
        106      name="disp layEncount erComponen tSection"
        107     />
        108             
        109     <xsl:templ ate 
        110      name="disp layImmuniz ationsComp onentSecti on"
        111     />
        112             
        113     <xsl:templ ate 
        114      name="disp layMedsCom ponentSect ion"
        115     />
        116             
        117     <xsl:templ ate 
        118      name="disp layPatient Block"
        119     />
        120             
        121     <xsl:templ ate 
        122      name="disp layProblem ComponentS ection"
        123     />
        124             
        125     <xsl:templ ate 
        126      name="disp layProcedu resCompone ntSection"
        127     />
        128             
        129     <xsl:templ ate 
        130      name="disp layReportD ates"
        131     />
        132             
        133     <xsl:templ ate 
        134      name="disp layResults ComponentS ection"
        135     />
        136             
        137     <xsl:templ ate 
        138      name="disp laySource"
        139     />
        140             
        141     <xsl:templ ate 
        142      name="disp layTableOf Contents"
        143     />
        144             
        145     <xsl:templ ate 
        146      name="disp layTitle"
        147     />
        148             
        149     <xsl:templ ate 
        150      name="disp layVitalRo w"
        151     />
        152             
        153     <xsl:templ ate 
        154      name="disp layVitalsB pItem"
        155     />
        156             
        157     <xsl:templ ate 
        158      name="disp layVitalsC omponentSe ction"
        159     />
        160             
        161     <xsl:templ ate 
        162      name="disp layVitalsD ateItem"
        163     />
        164             
        165     <xsl:templ ate 
        166      name="disp layVitalsH eightItem"
        167     />
        168             
        169     <xsl:templ ate 
        170      name="disp layVitalsM ultiSepara tor"
        171     />
        172             
        173     <xsl:templ ate 
        174      name="disp layVitalsP oxItem"
        175     />
        176             
        177     <xsl:templ ate 
        178      name="disp layVitalsP ulseItem"
        179     />
        180             
        181     <xsl:templ ate 
        182      name="disp layVitalsR espItem"
        183     />
        184             
        185     <xsl:templ ate 
        186      name="disp layVitalsS ourceItem"
        187     />
        188             
        189     <xsl:templ ate 
        190      name="disp layVitalsT empItem"
        191     />
        192             
        193     <xsl:templ ate 
        194      name="disp layVitalsW eightItem"
        195     />
        196             
        197     <xsl:templ ate 
        198      name="encR ow"
        199     />
        200             
        201     <xsl:templ ate 
        202      name="flyo verSpan"
        203     />
        204             
        205     <xsl:templ ate 
        206      name="immu nizationsR ow"
        207     />
        208             
        209     <xsl:templ ate 
        210      name="labs Row"
        211     />
        212             
        213     <xsl:templ ate 
        214      name="medR ow"
        215     />
        216             
        217     <xsl:templ ate 
        218      name="prob lemRow"
        219     />
        220             
        221     <xsl:templ ate 
        222      name="proc edureRow"
        223     />
        224             
        225     <!-- End-o f-Template s to be ov erridden - ->
        226             
        227     <!-- ===== ========== ========== ========== ========== ========== ========== ======= -- >
        228    
        229             
        230     <xsl:templ ate 
        231      name="docu mentTitle"
        232     >
        233                       
        234      <xsl:param  
        235       name="root "
        236      />
        237                       
        238      <xsl:choos e>
        239                                 
        240       <xsl:when 
        241        test="stri ng-length( $root/n1:c ustodian/n 1:assigned Custodian/ n1:represe ntedCustod ianOrganiz ation/n1:n ame)>0"
        242       >
        243                                           
        244        <xsl:value -of 
        245         select="$r oot/n1:cus todian/n1: assignedCu stodian/n1 :represent edCustodia nOrganizat ion/n1:nam e"
        246        />
        247                                  
        248       </xsl:when >
        249                                 
        250       <xsl:other wise>
        251                                           
        252        <xsl:value -of 
        253         select="$r oot/n1:aut hor[1]/n1: assignedAu thor/n1:re presentedO rganizatio n/n1:name"
        254        />
        255                                  
        256       </xsl:othe rwise>
        257                        
        258      </xsl:choo se>
        259              
        260     </xsl:temp late>
        261    
        262       
        263     <xsl:templ ate 
        264      name="getN ame"
        265     >
        266          
        267      <xsl:param  
        268       name="name "
        269      />
        270          
        271      <xsl:choos e>
        272             
        273       <xsl:when 
        274        test="$nam e/n1:famil y"
        275       >
        276                
        277        <xsl:for-e ach 
        278         select="$n ame/n1:giv en"
        279        >
        280                   
        281         <xsl:text>
        282           
        283         </xsl:text >
        284                   
        285         <xsl:value -of 
        286          select="."
        287         />
        288                 
        289        </xsl:for- each>
        290                
        291        <xsl:text>
        292          
        293        </xsl:text >
        294                
        295        <xsl:if 
        296         test="stri ng-length( $name/n1:f amily)>0"
        297        >
        298                   
        299         <xsl:value -of 
        300          select="$n ame/n1:fam ily"
        301         />
        302                 
        303        </xsl:if>
        304                
        305        <xsl:text>
        306          
        307        </xsl:text >
        308                
        309        <xsl:if 
        310         test="stri ng-length( $name/n1:s uffix)>0"
        311        >
        312                   
        313         <xsl:if 
        314          test="$nam e/n1:suffi x != ' '"
        315         >
        316                       
        317          <xsl:text>
        318          
        319          </xsl:text >
        320                       
        321          <xsl:value -of 
        322           select="$n ame/n1:suf fix"
        323          />
        324                    
        325         </xsl:if>
        326                 
        327        </xsl:if>
        328              
        329       </xsl:when >
        330             
        331       <xsl:other wise>
        332                
        333        <xsl:value -of 
        334         select="$n ame"
        335        />
        336              
        337       </xsl:othe rwise>
        338           
        339      </xsl:choo se>
        340        
        341     </xsl:temp late>
        342    
        343       
        344     <xsl:templ ate 
        345      match="n1: entry"
        346     >
        347                       
        348      <xsl:varia ble 
        349       name="alle rgy-prob-R oot" 
        350       select="n1 :act/n1:en tryRelatio nship/n1:o bservation /n1:templa teId/@root "
        351      />
        352                       
        353      <xsl:varia ble 
        354       name="med- imm-Root" 
        355       select="n1 :substance Administra tion/n1:te mplateId/@ root"
        356      />
        357                       
        358      <xsl:varia ble 
        359       name="labs -Root" 
        360       select=".. /n1:templa teId/@root "
        361      />
        362                       
        363      <xsl:varia ble 
        364       name="vita ls-Root" 
        365       select="n1 :organizer /n1:templa teId/@root "
        366      />
        367                       
        368      <xsl:choos e>
        369                                 
        370       <xsl:when 
        371        test="$all ergy-prob- Root='2.16 .840.1.113 883.10.20. 1.18'"
        372       >
        373                                           
        374        <xsl:call- template 
        375         name="alle rgyRow"
        376        >
        377                                                    
        378         <xsl:with- param 
        379          name="row"  
        380          select="."
        381         />
        382                                            
        383        </xsl:call -template>
        384                                  
        385       </xsl:when >
        386                                 
        387       <xsl:when 
        388        test="$all ergy-prob- Root!='2.1 6.840.1.11 3883.10.20 .1.18'"
        389       >
        390                                           
        391        <xsl:call- template 
        392         name="prob lemRow"
        393        >
        394                                                    
        395         <xsl:with- param 
        396          name="row"  
        397          select="."
        398         />
        399                                            
        400        </xsl:call -template>
        401                                  
        402       </xsl:when >
        403                                 
        404       <xsl:when 
        405        test="n1:e ncounter"
        406       >
        407                                           
        408        <xsl:call- template 
        409         name="encR ow"
        410        >
        411                                                    
        412         <xsl:with- param 
        413          name="row"  
        414          select="."
        415         />
        416                                            
        417        </xsl:call -template>
        418                                  
        419       </xsl:when >
        420                                 
        421       <xsl:when 
        422        test="n1:p rocedure"
        423       >
        424                                           
        425        <xsl:call- template 
        426         name="proc edureRow"
        427        >
        428                                                    
        429         <xsl:with- param 
        430          name="row"  
        431          select="."
        432         />
        433                                            
        434        </xsl:call -template>
        435                                  
        436       </xsl:when >
        437                                 
        438       <xsl:when 
        439        test="$med -imm-Root= '2.16.840. 1.113883.3 .88.11.83. 13'"
        440       >
        441                                           
        442        <xsl:call- template 
        443         name="immu nizationsR ow"
        444        >
        445                                                    
        446         <xsl:with- param 
        447          name="row"  
        448          select="."
        449         />
        450                                            
        451        </xsl:call -template>
        452                                  
        453       </xsl:when >
        454                                 
        455       <xsl:when 
        456        test="$med -imm-Root! ='2.16.840 .1.113883. 3.88.11.83 .13'"
        457       >
        458                                           
        459        <xsl:call- template 
        460         name="medR ow"
        461        >
        462                                                    
        463         <xsl:with- param 
        464          name="row"  
        465          select="."
        466         />
        467                                            
        468        </xsl:call -template>
        469                                  
        470       </xsl:when >
        471                                 
        472       <xsl:when 
        473        test="$lab s-Root='2. 16.840.1.1 13883.10.2 0.1.14'"
        474       >
        475                                           
        476        <xsl:call- template 
        477         name="labs Row"
        478        >
        479                                                    
        480         <xsl:with- param 
        481          name="row"  
        482          select="."
        483         />
        484                                            
        485        </xsl:call -template>
        486                                  
        487       </xsl:when >
        488                                 
        489       <xsl:when 
        490        test="$vit als-Root=' 2.16.840.1 .113883.10 .20.1.32'"
        491       >
        492                                           
        493        <xsl:call- template 
        494         name="vita lsRow"
        495        >
        496                                                    
        497         <xsl:with- param 
        498          name="row"  
        499          select="."
        500         />
        501                                            
        502        </xsl:call -template>
        503                                  
        504       </xsl:when >
        505                                 
        506       <xsl:other wise/>
        507                        
        508      </xsl:choo se>
        509              
        510     </xsl:temp late>
        511    
        512             
        513     <xsl:templ ate 
        514      name="vita lsRow"
        515     >
        516                       
        517      <xsl:param  
        518       name="row"
        519      />
        520                       
        521      <xsl:call- template 
        522       name="disp layVitalRo w"
        523      >
        524                                 
        525       <xsl:with- param 
        526        name="row"  
        527        select="$r ow"
        528       />
        529                        
        530      </xsl:call -template>
        531              
        532     </xsl:temp late>
        533    
        534             
        535     <xsl:templ ate 
        536      name="disp layVitalsD ate"
        537     >
        538                       
        539      <xsl:param  
        540       name="rowD ata"
        541      />
        542                       
        543      <xsl:choos e>
        544                                 
        545       <xsl:when 
        546        test="stri ng-length( $rowData/n 1:effectiv eTime/@val ue)=0"
        547       >
        548                                           
        549        <xsl:text>
        550         -- Not Ava ilable --
        551        </xsl:text >
        552                                  
        553       </xsl:when >
        554                                 
        555       <xsl:other wise>
        556                                           
        557        <xsl:call- template 
        558         name="form atDateShor t"
        559        >
        560                                                    
        561         <xsl:with- param 
        562          name="date String" 
        563          select="$r owData/n1: effectiveT ime/@value "
        564         />
        565                                            
        566        </xsl:call -template>
        567                                  
        568       </xsl:othe rwise>
        569                        
        570      </xsl:choo se>
        571              
        572     </xsl:temp late>
        573    
        574             
        575     <xsl:templ ate 
        576      name="disp layVitalsT emp"
        577     >
        578                       
        579      <xsl:param  
        580       name="temp "
        581      />
        582                       
        583      <xsl:for-e ach 
        584       select="$t emp"
        585      >
        586                                 
        587       <xsl:if 
        588        test="posi tion()>1"
        589       >
        590                                           
        591        <xsl:call- template 
        592         name="disp layVitalsM ultiSepara tor"
        593        />
        594                                  
        595       </xsl:if>
        596                                 
        597       <xsl:choos e>
        598                                           
        599        <xsl:when 
        600         test="stri ng-length( n1:value/@ value)>1"
        601        >
        602                                                    
        603         <xsl:varia ble 
        604          name="temp Result" 
        605          select="n1 :value/@va lue"
        606         />
        607                                                    
        608         <xsl:choos e>
        609                                                              
        610          <xsl:when 
        611           test="n1:v alue/@unit "
        612          >
        613                                                                        
        614           <xsl:call- template 
        615            name="flyo verSpan"
        616           >
        617                                                                                  
        618            <xsl:with- param 
        619             name="data
        620             select="co ncat($temp Result,n1: value/@uni t)"
        621            />
        622                                                                         
        623           </xsl:call -template>
        624                                                               
        625          </xsl:when >
        626                                                              
        627          <xsl:other wise>
        628                                                                        
        629           <xsl:call- template 
        630            name="flyo verSpan"
        631           >
        632                                                                                  
        633            <xsl:with- param 
        634             name="data
        635             select="$t empResult"
        636            />
        637                                                                         
        638           </xsl:call -template>
        639                                                               
        640          </xsl:othe rwise>
        641                                                     
        642         </xsl:choo se>
        643                                            
        644        </xsl:when >
        645                                           
        646        <xsl:other wise>
        647                                                    
        648         <xsl:call- template 
        649          name="na"
        650         />
        651                                            
        652        </xsl:othe rwise>
        653                                  
        654       </xsl:choo se>
        655                        
        656      </xsl:for- each>
        657              
        658     </xsl:temp late>
        659    
        660             
        661     <xsl:templ ate 
        662      name="disp layVitalsP ulse"
        663     >
        664                       
        665      <xsl:param  
        666       name="puls e"
        667      />
        668                       
        669      <xsl:for-e ach 
        670       select="$p ulse"
        671      >
        672                                 
        673       <xsl:if 
        674        test="posi tion()>1"
        675       >
        676                                           
        677        <xsl:call- template 
        678         name="disp layVitalsM ultiSepara tor"
        679        />
        680                                  
        681       </xsl:if>
        682                                 
        683       <xsl:choos e>
        684                                           
        685        <xsl:when 
        686         test="stri ng-length( n1:value/@ value)>1"
        687        >
        688                                                    
        689         <xsl:varia ble 
        690          name="puls eResult" 
        691          select="n1 :value/@va lue"
        692         />
        693                                                    
        694         <xsl:choos e>
        695                                                              
        696          <xsl:when 
        697           test="n1:v alue/@unit "
        698          >
        699                                                                        
        700           <xsl:call- template 
        701            name="flyo verSpan"
        702           >
        703                                                                                  
        704            <xsl:with- param 
        705             name="data
        706             select="co ncat($puls eResult,n1 :value/@un it)"
        707            />
        708                                                                         
        709           </xsl:call -template>
        710                                                               
        711          </xsl:when >
        712                                                              
        713          <xsl:other wise>
        714                                                                        
        715           <xsl:call- template 
        716            name="flyo verSpan"
        717           >
        718                                                                                  
        719            <xsl:with- param 
        720             name="data
        721             select="$p ulseResult "
        722            />
        723                                                                         
        724           </xsl:call -template>
        725                                                               
        726          </xsl:othe rwise>
        727                                                     
        728         </xsl:choo se>
        729                                            
        730        </xsl:when >
        731                                           
        732        <xsl:other wise>
        733                                                    
        734         <xsl:call- template 
        735          name="na"
        736         />
        737                                            
        738        </xsl:othe rwise>
        739                                  
        740       </xsl:choo se>
        741                        
        742      </xsl:for- each>
        743              
        744     </xsl:temp late>
        745    
        746             
        747     <xsl:templ ate 
        748      name="disp layVitalsR esp"
        749     >
        750                       
        751      <xsl:param  
        752       name="resp "
        753      />
        754                       
        755      <xsl:for-e ach 
        756       select="$r esp"
        757      >
        758                                 
        759       <xsl:if 
        760        test="posi tion()>1"
        761       >
        762                                           
        763        <xsl:call- template 
        764         name="disp layVitalsM ultiSepara tor"
        765        />
        766                                  
        767       </xsl:if>
        768                                 
        769       <xsl:choos e>
        770                                           
        771        <xsl:when 
        772         test="stri ng-length( n1:value/@ value)>1"
        773        >
        774                                                    
        775         <xsl:varia ble 
        776          name="resp Result" 
        777          select="n1 :value/@va lue"
        778         />
        779                                                    
        780         <xsl:choos e>
        781                                                              
        782          <xsl:when 
        783           test="n1:v alue/@unit "
        784          >
        785                                                                        
        786           <xsl:call- template 
        787            name="flyo verSpan"
        788           >
        789                                                                                  
        790            <xsl:with- param 
        791             name="data
        792             select="co ncat($resp Result,n1: value/@uni t)"
        793            />
        794                                                                         
        795           </xsl:call -template>
        796                                                               
        797          </xsl:when >
        798                                                              
        799          <xsl:other wise>
        800                                                                        
        801           <xsl:call- template 
        802            name="flyo verSpan"
        803           >
        804                                                                                  
        805            <xsl:with- param 
        806             name="data
        807             select="$r espResult"
        808            />
        809                                                                         
        810           </xsl:call -template>
        811                                                               
        812          </xsl:othe rwise>
        813                                                     
        814         </xsl:choo se>
        815                                            
        816        </xsl:when >
        817                                           
        818        <xsl:other wise>
        819                                                    
        820         <xsl:call- template 
        821          name="na"
        822         />
        823                                            
        824        </xsl:othe rwise>
        825                                  
        826       </xsl:choo se>
        827                        
        828      </xsl:for- each>
        829              
        830     </xsl:temp late>
        831    
        832             
        833     <xsl:templ ate 
        834      name="disp layVitalsB p"
        835     >
        836                       
        837      <xsl:param  
        838       name="row"
        839      />
        840                       
        841      <xsl:varia ble 
        842       name="syst olic" 
        843       select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion[n1:cod e/@code=$l oincBpSyst olic]"
        844      />
        845                       
        846      <xsl:varia ble 
        847       name="dias tolic" 
        848       select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion[n1:cod e/@code=$l oincBpDias tolic]"
        849      />
        850                       
        851      <xsl:varia ble 
        852       name="bloo dPressure"  
        853       select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion[n1:cod e/@code=$l oincBloodP ressure]"
        854      />
        855                       
        856      <xsl:choos e>
        857                                 
        858       <xsl:when 
        859        test="$sys tolic/n1:v alue/@valu e or $dias tolic/n1:v alue/@valu e or $bloo dPressure/ n1:value/@ value"
        860       >
        861                                           
        862        <xsl:call- template 
        863         name="bpDe tailLister "
        864        >
        865                                                    
        866         <xsl:with- param 
        867          name="syst olics" 
        868          select="$s ystolic"
        869         />
        870                                                    
        871         <xsl:with- param 
        872          name="dias tolics" 
        873          select="$d iastolic"
        874         />
        875                                            
        876        </xsl:call -template>
        877                                           
        878        <xsl:if 
        879         test="$sys tolic/n1:v alue/@valu e and $blo odPressure /n1:value/ @value"
        880        >
        881                                                    
        882         <xsl:call- template 
        883          name="disp layVitalsM ultiSepara tor"
        884         />
        885                                            
        886        </xsl:if>
        887                                           
        888        <xsl:for-e ach 
        889         select="$b loodPressu re"
        890        >
        891                                                    
        892         <xsl:if 
        893          test="posi tion()>1"
        894         >
        895                                                              
        896          <xsl:call- template 
        897           name="disp layVitalsM ultiSepara tor"
        898          />
        899                                                     
        900         </xsl:if>
        901                                                    
        902         <xsl:value -of 
        903          select="n1 :value/@va lue"
        904         />
        905                                            
        906        </xsl:for- each>
        907                                  
        908       </xsl:when >
        909                                 
        910       <xsl:other wise>
        911                                           
        912        <xsl:call- template 
        913         name="na"
        914        />
        915                                  
        916       </xsl:othe rwise>
        917                        
        918      </xsl:choo se>
        919              
        920     </xsl:temp late>
        921    
        922             
        923     <xsl:templ ate 
        924      name="disp layVitalsH eight"
        925     >
        926                       
        927      <xsl:param  
        928       name="heig ht"
        929      />
        930                       
        931      <xsl:for-e ach 
        932       select="$h eight"
        933      >
        934                                 
        935       <xsl:if 
        936        test="posi tion()>1"
        937       >
        938                                           
        939        <xsl:call- template 
        940         name="disp layVitalsM ultiSepara tor"
        941        />
        942                                  
        943       </xsl:if>
        944                                 
        945       <xsl:choos e>
        946                                           
        947        <xsl:when 
        948         test="stri ng-length( n1:value/@ value)>1"
        949        >
        950                                                    
        951         <xsl:varia ble 
        952          name="heig htResult" 
        953          select="n1 :value/@va lue"
        954         />
        955                                                    
        956         <xsl:choos e>
        957                                                              
        958          <xsl:when 
        959           test="n1:v alue/@unit "
        960          >
        961                                                                        
        962           <xsl:call- template 
        963            name="flyo verSpan"
        964           >
        965                                                                                  
        966            <xsl:with- param 
        967             name="data
        968             select="co ncat($heig htResult,n 1:value/@u nit)"
        969            />
        970                                                                         
        971           </xsl:call -template>
        972                                                               
        973          </xsl:when >
        974                                                              
        975          <xsl:other wise>
        976                                                                        
        977           <xsl:call- template 
        978            name="flyo verSpan"
        979           >
        980                                                                                  
        981            <xsl:with- param 
        982             name="data
        983             select="$h eightResul t"
        984            />
        985                                                                         
        986           </xsl:call -template>
        987                                                               
        988          </xsl:othe rwise>
        989                                                     
        990         </xsl:choo se>
        991                                            
        992        </xsl:when >
        993                                           
        994        <xsl:other wise>
        995                                                    
        996         <xsl:call- template 
        997          name="na"
        998         />
        999                                            
        1000        </xsl:othe rwise>
        1001                                  
        1002       </xsl:choo se>
        1003                        
        1004      </xsl:for- each>
        1005              
        1006     </xsl:temp late>
        1007    
        1008             
        1009     <xsl:templ ate 
        1010      name="disp layVitalsW eight"
        1011     >
        1012                       
        1013      <xsl:param  
        1014       name="weig ht"
        1015      />
        1016                       
        1017      <xsl:for-e ach 
        1018       select="$w eight"
        1019      >
        1020                                 
        1021       <xsl:if 
        1022        test="posi tion()>1"
        1023       >
        1024                                           
        1025        <xsl:call- template 
        1026         name="disp layVitalsM ultiSepara tor"
        1027        />
        1028                                  
        1029       </xsl:if>
        1030                                 
        1031       <xsl:choos e>
        1032                                           
        1033        <xsl:when 
        1034         test="stri ng-length( n1:value/@ value)>1"
        1035        >
        1036                                                    
        1037         <xsl:varia ble 
        1038          name="weig htResult" 
        1039          select="n1 :value/@va lue"
        1040         />
        1041                                                    
        1042         <xsl:choos e>
        1043                                                              
        1044          <xsl:when 
        1045           test="n1:v alue/@unit "
        1046          >
        1047                                                                        
        1048           <xsl:call- template 
        1049            name="flyo verSpan"
        1050           >
        1051                                                                                  
        1052            <xsl:with- param 
        1053             name="data
        1054             select="co ncat($weig htResult,n 1:value/@u nit)"
        1055            />
        1056                                                                         
        1057           </xsl:call -template>
        1058                                                               
        1059          </xsl:when >
        1060                                                              
        1061          <xsl:other wise>
        1062                                                                        
        1063           <xsl:call- template 
        1064            name="flyo verSpan"
        1065           >
        1066                                                                                  
        1067            <xsl:with- param 
        1068             name="data
        1069             select="$w eightResul t"
        1070            />
        1071                                                                         
        1072           </xsl:call -template>
        1073                                                               
        1074          </xsl:othe rwise>
        1075                                                     
        1076         </xsl:choo se>
        1077                                            
        1078        </xsl:when >
        1079                                           
        1080        <xsl:other wise>
        1081                                                    
        1082         <xsl:call- template 
        1083          name="na"
        1084         />
        1085                                            
        1086        </xsl:othe rwise>
        1087                                  
        1088       </xsl:choo se>
        1089                        
        1090      </xsl:for- each>
        1091              
        1092     </xsl:temp late>
        1093    
        1094             
        1095     <xsl:templ ate 
        1096      name="disp layVitalsP ox"
        1097     >
        1098                       
        1099      <xsl:param  
        1100       name="pox"
        1101      />
        1102                       
        1103      <xsl:for-e ach 
        1104       select="$p ox"
        1105      >
        1106                                 
        1107       <xsl:if 
        1108        test="posi tion()>1"
        1109       >
        1110                                           
        1111        <xsl:call- template 
        1112         name="disp layVitalsM ultiSepara tor"
        1113        />
        1114                                  
        1115       </xsl:if>
        1116                                 
        1117       <xsl:choos e>
        1118                                           
        1119        <xsl:when 
        1120         test="stri ng-length( n1:value/@ value)>1"
        1121        >
        1122                                                    
        1123         <xsl:varia ble 
        1124          name="poxR esult" 
        1125          select="n1 :value/@va lue"
        1126         />
        1127                                                    
        1128         <xsl:choos e>
        1129                                                              
        1130          <xsl:when 
        1131           test="n1:v alue/@unit "
        1132          >
        1133                                                                        
        1134           <xsl:call- template 
        1135            name="flyo verSpan"
        1136           >
        1137                                                                                  
        1138            <xsl:with- param 
        1139             name="data
        1140             select="co ncat($poxR esult,n1:v alue/@unit )"
        1141            />
        1142                                                                         
        1143           </xsl:call -template>
        1144                                                               
        1145          </xsl:when >
        1146                                                              
        1147          <xsl:other wise>
        1148                                                                        
        1149           <xsl:call- template 
        1150            name="flyo verSpan"
        1151           >
        1152                                                                                  
        1153            <xsl:with- param 
        1154             name="data
        1155             select="$p oxResult"
        1156            />
        1157                                                                         
        1158           </xsl:call -template>
        1159                                                               
        1160          </xsl:othe rwise>
        1161                                                     
        1162         </xsl:choo se>
        1163                                            
        1164        </xsl:when >
        1165                                           
        1166        <xsl:other wise>
        1167                                                    
        1168         <xsl:call- template 
        1169          name="na"
        1170         />
        1171                                            
        1172        </xsl:othe rwise>
        1173                                  
        1174       </xsl:choo se>
        1175                        
        1176      </xsl:for- each>
        1177              
        1178     </xsl:temp late>
        1179    
        1180             
        1181     <xsl:templ ate 
        1182      name="disp layVitalsS ource"
        1183     >
        1184                       
        1185      <xsl:param  
        1186       name="row"
        1187      />
        1188                       
        1189      <xsl:choos e>
        1190                                 
        1191       <xsl:when 
        1192        test="stri ng-length( $row/n1:or ganizer/n1 :author/n1 :assignedA uthor/n1:r epresented Organizati on/n1:name )>1"
        1193       >
        1194                                           
        1195        <xsl:call- template 
        1196         name="flyo verSpan"
        1197        >
        1198                                                    
        1199         <xsl:with- param 
        1200          name="data
        1201          select="$r ow/n1:orga nizer/n1:a uthor/n1:a ssignedAut hor/n1:rep resentedOr ganization /n1:name"
        1202         />
        1203                                            
        1204        </xsl:call -template>
        1205                                  
        1206       </xsl:when >
        1207                                 
        1208       <xsl:other wise>
        1209                                           
        1210        <xsl:call- template 
        1211         name="na"
        1212        />
        1213                                  
        1214       </xsl:othe rwise>
        1215                        
        1216      </xsl:choo se>
        1217              
        1218     </xsl:temp late>
        1219    
        1220             
        1221     <xsl:templ ate 
        1222      name="disp layVitalIt ems"
        1223     >
        1224                       
        1225      <xsl:param  
        1226       name="row"
        1227      />
        1228                       
        1229      <xsl:varia ble 
        1230       name="rowD ata" 
        1231       select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion"
        1232      />
        1233                       
        1234      <xsl:varia ble 
        1235       name="heig ht" 
        1236       select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion[n1:cod e/@code=$l oincHeight ]"
        1237      />
        1238                       
        1239      <xsl:varia ble 
        1240       name="weig ht" 
        1241       select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion[n1:cod e/@code=$l oincWeight ]"
        1242      />
        1243                       
        1244      <xsl:varia ble 
        1245       name="syst olic" 
        1246       select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion[n1:cod e/@code=$l oincBpSyst olic]"
        1247      />
        1248                       
        1249      <xsl:varia ble 
        1250       name="dias tolic" 
        1251       select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion[n1:cod e/@code=$l oincBpDias tolic]"
        1252      />
        1253                       
        1254      <xsl:varia ble 
        1255       name="temp
        1256       select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion[n1:cod e/@code=$l oincTemper ature]"
        1257      />
        1258                       
        1259      <xsl:varia ble 
        1260       name="puls e" 
        1261       select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion[n1:cod e/@code=$l oincPulse] "
        1262      />
        1263                       
        1264      <xsl:varia ble 
        1265       name="resp
        1266       select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion[n1:cod e/@code=$l oincRespir ation]"
        1267      />
        1268                       
        1269      <xsl:varia ble 
        1270       name="pox"  
        1271       select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion[n1:cod e/@code=$l oincPulseO ximetry]"
        1272      />
        1273                       
        1274      <xsl:varia ble 
        1275       name="bloo dPressure"  
        1276       select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion[n1:cod e/@code=$l oincBloodP ressure]"
        1277      />
        1278                       
        1279      <xsl:varia ble 
        1280       name="body HtLying" 
        1281       select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion[n1:cod e/@code=$l oincBodyHt Lying]"
        1282      />
        1283                       
        1284      <xsl:varia ble 
        1285       name="head CircumOCF"  
        1286       select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion[n1:cod e/@code=$l oincOCF]"
        1287      />
        1288                       
        1289      <xsl:varia ble 
        1290       name="weig ht2" 
        1291       select="$r ow/n1:orga nizer/n1:c omponent/n 1:observat ion[n1:cod e/@code=$l oincWeight 2]"
        1292      />               
        1293     
        1294                       
        1295      <xsl:call- template 
        1296       name="disp layVitalsD ateItem"
        1297      >
        1298                                 
        1299       <xsl:with- param 
        1300        name="rowD ata" 
        1301        select="$r owData"
        1302       />
        1303                        
        1304      </xsl:call -template>
        1305     
        1306                       
        1307      <xsl:call- template 
        1308       name="disp layVitalsT empItem"
        1309      >
        1310                                 
        1311       <xsl:with- param 
        1312        name="temp
        1313        select="$t emp"
        1314       />
        1315                        
        1316      </xsl:call -template>
        1317     
        1318                       
        1319      <xsl:call- template 
        1320       name="disp layVitalsP ulseItem"
        1321      >
        1322                                 
        1323       <xsl:with- param 
        1324        name="puls e" 
        1325        select="$p ulse"
        1326       />
        1327                        
        1328      </xsl:call -template>
        1329     
        1330                       
        1331      <xsl:call- template 
        1332       name="disp layVitalsR espItem"
        1333      >
        1334                                 
        1335       <xsl:with- param 
        1336        name="resp
        1337        select="$r esp"
        1338       />
        1339                        
        1340      </xsl:call -template>
        1341     
        1342                       
        1343      <xsl:call- template 
        1344       name="disp layVitalsB pItem"
        1345      >
        1346                                 
        1347       <xsl:with- param 
        1348        name="row"  
        1349        select="$r ow"
        1350       />
        1351                        
        1352      </xsl:call -template>
        1353     
        1354                       
        1355      <xsl:call- template 
        1356       name="disp layVitalsH eightItem"
        1357      >
        1358                                 
        1359       <xsl:with- param 
        1360        name="heig ht" 
        1361        select="$h eight"
        1362       />
        1363                        
        1364      </xsl:call -template>
        1365     
        1366                       
        1367      <xsl:call- template 
        1368       name="disp layVitalsW eightItem"
        1369      >
        1370                                 
        1371       <xsl:with- param 
        1372        name="weig ht" 
        1373        select="$w eight"
        1374       />
        1375                        
        1376      </xsl:call -template>
        1377     
        1378                       
        1379      <xsl:call- template 
        1380       name="disp layVitalsP oxItem"
        1381      >
        1382                                 
        1383       <xsl:with- param 
        1384        name="pox"  
        1385        select="$p ox"
        1386       />
        1387                        
        1388      </xsl:call -template>
        1389     
        1390                       
        1391      <xsl:call- template 
        1392       name="disp layVitalsS ourceItem"
        1393      >
        1394                                 
        1395       <xsl:with- param 
        1396        name="row"  
        1397        select="$r ow"
        1398       />
        1399                        
        1400      </xsl:call -template>
        1401              
        1402     </xsl:temp late>
        1403    
        1404             
        1405     <xsl:templ ate 
        1406      name="bpDe tailLister "
        1407     >
        1408                       
        1409      <xsl:param  
        1410       name="syst olics"
        1411      />
        1412                       
        1413      <xsl:param  
        1414       name="dias tolics"
        1415      />
        1416                       
        1417      <xsl:param  
        1418       name="inde x" 
        1419       select="1"
        1420      />
        1421                       
        1422      <xsl:if 
        1423       test="(($s ystolics)[ $index] or  ($diastol ics)[$inde x]) and $i ndex>1"
        1424      >
        1425                                 
        1426       <xsl:call- template 
        1427        name="disp layVitalsM ultiSepara tor"
        1428       />
        1429                        
        1430      </xsl:if>
        1431                       
        1432      <xsl:choos e>
        1433                                 
        1434       <xsl:when 
        1435        test="($sy stolics)[$ index] and  ($diastol ics)[$inde x]"
        1436       >
        1437                                           
        1438        <xsl:value -of 
        1439         select="($ systolics) [$index]/n 1:value/@v alue"
        1440        />
        1441        /
        1442        <xsl:value -of 
        1443         select="($ diastolics )[$index]/ n1:value/@ value"
        1444        />
        1445                                           
        1446        <xsl:call- template 
        1447         name="bpDe tailLister "
        1448        >
        1449                                                    
        1450         <xsl:with- param 
        1451          name="syst olics" 
        1452          select="$s ystolics"
        1453         />
        1454                                                    
        1455         <xsl:with- param 
        1456          name="dias tolics" 
        1457          select="$d iastolics"
        1458         />
        1459                                                    
        1460         <xsl:with- param 
        1461          name="inde x" 
        1462          select="$i ndex+1"
        1463         />
        1464                                            
        1465        </xsl:call -template>
        1466                                  
        1467       </xsl:when >
        1468                                 
        1469       <xsl:when 
        1470        test="($sy stolics)[$ index]"
        1471       >
        1472                                           
        1473        <xsl:value -of 
        1474         select="($ systolics) [$index]/n 1:value/@v alue"
        1475        />
        1476                                           
        1477        <xsl:call- template 
        1478         name="bpDe tailLister "
        1479        >
        1480                                                    
        1481         <xsl:with- param 
        1482          name="syst olics" 
        1483          select="$s ystolics"
        1484         />
        1485                                                    
        1486         <xsl:with- param 
        1487          name="dias tolics" 
        1488          select="$d iastolics"
        1489         />
        1490                                                    
        1491         <xsl:with- param 
        1492          name="inde x" 
        1493          select="$i ndex+1"
        1494         />
        1495                                            
        1496        </xsl:call -template>
        1497                                  
        1498       </xsl:when >
        1499                                 
        1500       <xsl:when 
        1501        test="($di astolics)[ $index]"
        1502       >
        1503                                           
        1504        <xsl:value -of 
        1505         select="($ diastolics )[$index]/ n1:value/@ value"
        1506        />
        1507                                           
        1508        <xsl:call- template 
        1509         name="bpDe tailLister "
        1510        >
        1511                                                    
        1512         <xsl:with- param 
        1513          name="syst olics" 
        1514          select="$s ystolics"
        1515         />
        1516                                                    
        1517         <xsl:with- param 
        1518          name="dias tolics" 
        1519          select="$d iastolics"
        1520         />
        1521                                                    
        1522         <xsl:with- param 
        1523          name="inde x" 
        1524          select="$i ndex+1"
        1525         />
        1526                                            
        1527        </xsl:call -template>
        1528                                  
        1529       </xsl:when >
        1530                                 
        1531       <xsl:other wise>
        1532       </xsl:othe rwise>
        1533                        
        1534      </xsl:choo se>
        1535              
        1536     </xsl:temp late>
        1537    
        1538             
        1539     <xsl:templ ate 
        1540      match="n1: component/ n1:section "
        1541     >
        1542                       
        1543      <xsl:apply -templates  
        1544       select="n1 :title"
        1545      />
        1546                       
        1547      <xsl:choos e>
        1548                                 
        1549       <xsl:when 
        1550        test="n1:c ode[@code= $loincProb lemCode] a nd not($no MdoProb)"
        1551       >
        1552                                           
        1553        <xsl:call- template 
        1554         name="disp layProblem ComponentS ection"
        1555        />
        1556                                  
        1557       </xsl:when >
        1558                                 
        1559                                 
        1560       <xsl:when 
        1561        test="n1:c ode[@code= $loincAlle rgyCode]"
        1562       >
        1563                                           
        1564        <xsl:call- template 
        1565         name="disp layAllergy ComponentS ection"
        1566        />
        1567                                  
        1568       </xsl:when >
        1569                                 
        1570                                 
        1571       <xsl:when 
        1572        test="n1:c ode[@code= $loincMedC ode] and n ot($noMed) "
        1573       >
        1574                                           
        1575        <xsl:call- template 
        1576         name="disp layMedsCom ponentSect ion"
        1577        />
        1578                                  
        1579       </xsl:when >
        1580                                 
        1581                                 
        1582       <xsl:when 
        1583        test="n1:c ode[@code= $loincEnco unterCode] "
        1584       >
        1585                                           
        1586        <xsl:call- template 
        1587         name="disp layEncount erComponen tSection"
        1588        />
        1589                                  
        1590       </xsl:when >
        1591                                 
        1592                                 
        1593       <xsl:when 
        1594        test="n1:c ode[@code= $loincResu ltsCode] a nd not($no MdoResult) "
        1595       >
        1596                                           
        1597        <xsl:call- template 
        1598         name="disp layResults ComponentS ection"
        1599        />
        1600                                  
        1601       </xsl:when >
        1602                                 
        1603                                 
        1604       <xsl:when 
        1605        test="n1:c ode[@code= $loincProc eduresCode ]"
        1606       >
        1607                                           
        1608        <xsl:call- template 
        1609         name="disp layProcedu resCompone ntSection"
        1610        />
        1611                                  
        1612       </xsl:when >
        1613                                 
        1614                                 
        1615       <xsl:when 
        1616        test="n1:c ode[@code= $loincImmu nizationsC ode]"
        1617       >
        1618                                           
        1619        <xsl:call- template 
        1620         name="disp layImmuniz ationsComp onentSecti on"
        1621        />
        1622                                  
        1623       </xsl:when >
        1624                                 
        1625                                 
        1626       <xsl:when 
        1627        test="n1:c ode[@code= $loincVita lsCode]"
        1628       >
        1629                                           
        1630        <xsl:call- template 
        1631         name="disp layVitalsC omponentSe ction"
        1632        />
        1633                                  
        1634       </xsl:when >
        1635                                 
        1636       <xsl:other wise/>
        1637                        
        1638      </xsl:choo se>
        1639                       
        1640      <xsl:apply -templates  
        1641       select="n1 :component /n1:sectio n"
        1642      />
        1643              
        1644     </xsl:temp late>
        1645    
        1646   </xsl:styl esheet>