301. EPMO Open Source Coordination Office Redaction File Detail Report

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

301.1 Files compared

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

301.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 5 3008
Changed 4 8
Inserted 0 0
Removed 0 0

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

301.4 Active regular expressions

No regular expressions were active.

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