297. EPMO Open Source Coordination Office Redaction File Detail Report

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

297.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\NewStyleSheets\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\NewStyleSheets\nhin cda2detailCommon.xslt Mon Apr 3 14:39:46 2017 UTC

297.2 Comparison summary

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

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

297.4 Active regular expressions

No regular expressions were active.

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