544. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 4/5/2017 4:25:29 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.

544.1 Files compared

# Location File Last Modified
1 C:\working_scrub\Unredacted\VAP Code Base\VAP_Bld2_Source_Code_CIF_2017-02-14\nvap-client\src\main\resources\gov\va\nvap\document\xsl\vistaweb\nhin detailCommon.xsl Wed Feb 1 18:37:28 2017 UTC
2 eHX-CIF.zip\eHX-CIF\VAP Code Base\VAP_Bld2_Source_Code_CIF_2017-02-14\nvap-client\src\main\resources\gov\va\nvap\document\xsl\vistaweb\nhin detailCommon.xsl Mon Apr 3 14:00:25 2017 UTC

544.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 6 2716
Changed 5 10
Inserted 0 0
Removed 0 0

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

544.4 Active regular expressions

No regular expressions were active.

544.5 Comparison detail

  1   <?xml 
  2     version="1 .0" 
  3     encoding=" utf-8"
  4   ?>
  5  
  6   <xsl:style sheet 
  7     version="1 .0"
  8           
  9     xmlns:n1=" urn:hl7-or g:v3"
  10           
  11     xmlns:xsi= "http://ww w.w3.org/2 001/XMLSch ema-instan ce"
  12           
  13     xmlns:xsl= "http://ww w.w3.org/1 999/XSL/Tr ansform"
  14   >
  15    
  16       
  17     <!-- <xsl: import hre f="/gov/va /nvap/docu ment/xsl/v istaweb/nh in/nhinCom mon.xsl"/>  -->
  18       
  19     <!-- <xsl: import hre f="/gov/va /nvap/docu ment/xsl/v istaweb/co mmon.xsl"/ > -->
  20    
  21       
  22     <xsl:varia ble 
  23      name="snom edCode"
  24     >
  25      2.16.840.1 .113883.6. 96
  26     </xsl:vari able>
  27       
  28     <xsl:varia ble 
  29      name="snom edProblemC ode"
  30     >
  31      55607006
  32     </xsl:vari able>
  33       
  34     <xsl:varia ble 
  35      name="snom edProblemC ode2"
  36     >
  37      404684003
  38     </xsl:vari able>
  39       
  40     <xsl:varia ble 
  41      name="snom edProblemC ode3"
  42     >
  43      418799008
  44     </xsl:vari able>
  45       
  46     <xsl:varia ble 
  47      name="snom edAllergyC ode"
  48     >
  49      416098002
  50     </xsl:vari able>
  51    
  52       
  53     <xsl:varia ble 
  54      name="loin cCode"
  55     >
  56      2.16.840.1 .113883.6. 1
  57     </xsl:vari able>
  58       
  59     <xsl:varia ble 
  60      name="loin cProblemCo de"
  61     >
  62      11450-4
  63     </xsl:vari able>
  64       
  65     <xsl:varia ble 
  66      name="loin cAllergyCo de"
  67     >
  68      48765-2
  69     </xsl:vari able>
  70       
  71     <xsl:varia ble 
  72      name="loin cMedCode"
  73     >
  74      10160-0
  75     </xsl:vari able>
  76       
  77     <xsl:varia ble 
  78      name="loin cEncounter Code"
  79     >
  80      46240-8
  81     </xsl:vari able>
  82       
  83     <xsl:varia ble 
  84      name="loin cResultsCo de"
  85     >
  86      30954-2
  87     </xsl:vari able>
  88       
  89     <xsl:varia ble 
  90      name="loin cProcedure sCode"
  91     >
  92      47519-4
  93     </xsl:vari able>
  94       
  95     <xsl:varia ble 
  96      name="loin cImmunizat ionsCode"
  97     >
  98      11369-6
  99     </xsl:vari able>
  100       
  101     <xsl:varia ble 
  102      name="loin cVitalsCod e"
  103     >
  104      8716-3
  105     </xsl:vari able>
  106    
  107       
  108     <!-- vital s -->
  109       
  110     <xsl:varia ble 
  111      name="loin cTemperatu re"
  112     >
  113      8310-5
  114     </xsl:vari able>
  115       
  116     <xsl:varia ble 
  117      name="loin cHeight"
  118     >
  119      8302-2
  120     </xsl:vari able>
  121       
  122     <xsl:varia ble 
  123      name="loin cWeight"
  124     >
  125      3141-9
  126     </xsl:vari able>
  127       
  128     <xsl:varia ble 
  129      name="loin cPulse"
  130     >
  131      8867-4
  132     </xsl:vari able>
  133       
  134     <xsl:varia ble 
  135      name="loin cRespirati on"
  136     >
  137      9279-1
  138     </xsl:vari able>
  139       
  140     <xsl:varia ble 
  141      name="loin cPulseOxim etry"
  142     >
  143      2710-2
  144     </xsl:vari able>
  145       
  146     <xsl:varia ble 
  147      name="loin cBloodGluc ose"
  148     >
  149      2339-0
  150     </xsl:vari able>
  151       
  152     <xsl:varia ble 
  153      name="loin cBloodPres sure"
  154     >
  155      55284-4
  156     </xsl:vari able>
  157       
  158     <xsl:varia ble 
  159      name="loin cBmi1"
  160     >
  161      39156-5
  162     </xsl:vari able>
  163       
  164     <xsl:varia ble 
  165      name="loin cBmi2"
  166     >
  167      41909-3
  168     </xsl:vari able>
  169       
  170     <xsl:varia ble 
  171      name="loin cCentralVe nousPressu re"
  172     >
  173      8591-0
  174     </xsl:vari able>
  175       
  176     <xsl:varia ble 
  177      name="loin cCircGirth "
  178     >
  179      8280-0
  180     </xsl:vari able>
  181       
  182     <xsl:varia ble 
  183      name="loin cFlowRate"
  184     >
  185      3151-8
  186     </xsl:vari able>
  187       
  188     <xsl:varia ble 
  189      name="loin cO2Concent ration"
  190     >
  191      3150-0
  192     </xsl:vari able>
  193       
  194     <xsl:varia ble 
  195      name="loin cPain"
  196     >
  197      32419-4
  198     </xsl:vari able>
  199       
  200     <xsl:varia ble 
  201      name="loin cBpSystoli c"
  202     >
  203      8480-6
  204     </xsl:vari able>
  205       
  206     <xsl:varia ble 
  207      name="loin cBpDiastol ic"
  208     >
  209      8462-4
  210     </xsl:vari able>
  211       
  212     <xsl:varia ble 
  213      name="loin cBodyHtLyi ng"
  214     >
  215      8306-3
  216     </xsl:vari able>
  217       
  218     <xsl:varia ble 
  219      name="loin cOCF"
  220     >
  221      8287-5
  222     </xsl:vari able>
  223       
  224     <xsl:varia ble 
  225      name="loin cWeight2"
  226     >
  227      29463-7
  228     </xsl:vari able>
  229    
  230       
  231     <xsl:varia ble 
  232      name="vita lsTemplate Code"
  233     >
  234      2.16.840.1 .113883. IP         
  235     </xsl:vari able>
  236       
  237     <xsl:varia ble 
  238      name="labs TemplateCo de"
  239     >
  240      2.16.840.1 .113883. IP         
  241     </xsl:vari able>
  242       
  243     <xsl:varia ble 
  244      name="immu nizationsT emplateCod e"
  245     >
  246      2.16.840.1 .113883. IP         
  247     </xsl:vari able>
  248       
  249     <xsl:varia ble 
  250      name="alle rgyTemplat eCode"
  251     >
  252      2.16.840.1 .113883. IP         
  253     </xsl:vari able>
  254       
  255     <xsl:varia ble 
  256      name="prob lemTemplat eCode"
  257     >
  258      2.16.840.1 .113883. IP         
  259     </xsl:vari able>
  260    
  261       
  262     <xsl:varia ble 
  263      name="row"
  264     >
  265      "ClinicalD ocument/"
  266     </xsl:vari able>
  267    
  268       
  269     <xsl:varia ble 
  270      name="titl e"
  271     >
  272          
  273      <xsl:choos e>
  274             
  275       <xsl:when 
  276        test="stri ng-length( /n1:Clinic alDocument /n1:title) =0"
  277       >
  278                
  279        <xsl:text>
  280         Clinical D ocument
  281        </xsl:text >
  282              
  283       </xsl:when >
  284             
  285       <xsl:when 
  286        test="/n1: ClinicalDo cument/n1: title"
  287       >
  288                
  289        <xsl:value -of 
  290         select="/n 1:Clinical Document/n 1:title"
  291        />
  292              
  293       </xsl:when >
  294           
  295      </xsl:choo se>
  296        
  297     </xsl:vari able>
  298    
  299       
  300     <xsl:templ ate 
  301      name="faci lityName"
  302     >
  303          
  304      <xsl:value -of 
  305       select="/n 1:Clinical Document/n 1:author/n 1:assigned Author/n1: represente dOrganizat ion/n1:nam e"
  306      />
  307        
  308     </xsl:temp late>
  309    
  310       
  311     <xsl:templ ate 
  312      name="getL ocationNam e"
  313     >
  314          
  315      <xsl:param  
  316       name="orga nizer"
  317      />
  318          
  319      <xsl:choos e>
  320             
  321       <xsl:when 
  322        test="$org anizer/n1: author/n1: assignedAu thor/n1:re presentedO rganizatio n/n1:name"
  323       >
  324                
  325        <xsl:value -of 
  326         select="$o rganizer/n 1:author/n 1:assigned Author/n1: represente dOrganizat ion/n1:nam e"
  327        />
  328              
  329       </xsl:when >
  330             
  331       <xsl:when 
  332        test="$org anizer/n1: performer/ n1:assigne dEntity/n1 :represent edOrganiza tion/n1:na me"
  333       >
  334                
  335        <xsl:value -of 
  336         select="$o rganizer/n 1:performe r/n1:assig nedEntity/ n1:represe ntedOrgani zation/n1: name"
  337        />
  338              
  339       </xsl:when >
  340           
  341      </xsl:choo se>
  342        
  343     </xsl:temp late>
  344    
  345       
  346     <!-- Medic ations -->
  347    
  348       
  349     <xsl:templ ate 
  350      name="medS tatus"
  351     >
  352          
  353      <xsl:param  
  354       name="subs tanceAdmin "
  355      />
  356          
  357      <xsl:varia ble 
  358       name="stat us"
  359      >
  360             
  361       <xsl:call- template 
  362        name="getM edStatusSt ring"
  363       >
  364                
  365        <xsl:with- param 
  366         name="subs tanceAdmin
  367         select="$s ubstanceAd min"
  368        />
  369              
  370       </xsl:call -template>
  371           
  372      </xsl:vari able>
  373          
  374      <xsl:choos e>
  375             
  376       <xsl:when 
  377        test="stri ng-length( $status)&g t;0"
  378       >
  379                
  380        <xsl:value -of 
  381         select="$s tatus"
  382        />
  383              
  384       </xsl:when >
  385             
  386       <xsl:other wise>
  387                
  388        <xsl:call- template 
  389         name="na"
  390        />
  391              
  392       </xsl:othe rwise>
  393           
  394      </xsl:choo se>
  395        
  396     </xsl:temp late>
  397    
  398       
  399     <xsl:templ ate 
  400      name="medQ uantity"
  401     >
  402          
  403      <xsl:param  
  404       name="subs tanceAdmin "
  405      />
  406          
  407      <xsl:varia ble 
  408       name="qtyS tring"
  409      >
  410             
  411       <xsl:call- template 
  412        name="getM edQuantity String"
  413       >
  414                
  415        <xsl:with- param 
  416         name="subs tanceAdmin
  417         select="$s ubstanceAd min"
  418        />
  419              
  420       </xsl:call -template>
  421           
  422      </xsl:vari able>
  423          
  424      <xsl:choos e>
  425             
  426       <xsl:when 
  427        test="stri ng-length( $qtyString )>0"
  428       >
  429                
  430        <xsl:value -of 
  431         select="$q tyString"
  432        />
  433              
  434       </xsl:when >
  435             
  436       <xsl:other wise>
  437                
  438        <xsl:call- template 
  439         name="na"
  440        />
  441              
  442       </xsl:othe rwise>
  443           
  444      </xsl:choo se>
  445        
  446     </xsl:temp late>
  447    
  448       
  449     <xsl:templ ate 
  450      name="medB egintime"
  451     >
  452          
  453      <xsl:param  
  454       name="row"
  455      />
  456          
  457      <xsl:varia ble 
  458       name="medB eginString "
  459      >
  460             
  461       <xsl:call- template 
  462        name="medD ateBeginSt ring"
  463       >
  464                
  465        <xsl:with- param 
  466         name="subs tanceAdmin
  467         select="$r ow/n1:subs tanceAdmin istration"
  468        />
  469              
  470       </xsl:call -template>
  471           
  472      </xsl:vari able>
  473          
  474      <xsl:choos e>
  475             
  476       <xsl:when 
  477        test="stri ng-length( $medBeginS tring)&gt; 1"
  478       >
  479                
  480        <xsl:call- template 
  481         name="form atDateShor t"
  482        >
  483                   
  484         <xsl:with- param 
  485          name="date String" 
  486          select="$m edBeginStr ing"
  487         />
  488                 
  489        </xsl:call -template>
  490              
  491       </xsl:when >
  492             
  493       <xsl:other wise>
  494                
  495        <xsl:call- template 
  496         name="na"
  497        />
  498              
  499       </xsl:othe rwise>
  500           
  501      </xsl:choo se>
  502        
  503     </xsl:temp late>
  504    
  505       
  506     <xsl:templ ate 
  507      name="medE xpiretime"
  508     >
  509          
  510      <xsl:param  
  511       name="subs tanceAdmin "
  512      />
  513          
  514      <xsl:varia ble 
  515       name="medE xpireStrin g"
  516      >
  517             
  518       <xsl:call- template 
  519        name="medE xpireDateS tring"
  520       >
  521                
  522        <xsl:with- param 
  523         name="subs tanceAdmin
  524         select="$s ubstanceAd min"
  525        />
  526              
  527       </xsl:call -template>
  528           
  529      </xsl:vari able>
  530          
  531      <xsl:choos e>
  532             
  533       <xsl:when 
  534        test="stri ng-length( $medExpire String)>1"
  535       >
  536                
  537        <xsl:call- template 
  538         name="form atDateShor t"
  539        >
  540                   
  541         <xsl:with- param 
  542          name="date String" 
  543          select="$m edExpireSt ring"
  544         />
  545                 
  546        </xsl:call -template>
  547              
  548       </xsl:when >
  549             
  550       <xsl:other wise>
  551                
  552        <xsl:call- template 
  553         name="na"
  554        />
  555              
  556       </xsl:othe rwise>
  557           
  558      </xsl:choo se>
  559        
  560     </xsl:temp late>
  561    
  562       
  563     <!-- Probl ems -->
  564    
  565             
  566     <xsl:templ ate 
  567      name="prob Status"
  568     >
  569                       
  570      <xsl:param  
  571       name="row"
  572      />
  573                       
  574      <xsl:varia ble 
  575       name="loin cStatus"
  576      >
  577                                 
  578       <xsl:call- template 
  579        name="getL oincStatus Code"
  580       >
  581                                           
  582        <xsl:with- param 
  583         name="entr y" 
  584         select="$r ow"
  585        />
  586                                  
  587       </xsl:call -template>
  588                        
  589      </xsl:vari able>
  590                       
  591      <xsl:choos e>
  592                                 
  593       <xsl:when 
  594        test="stri ng-length( $loincStat us)>0"
  595       >
  596                                           
  597        <xsl:value -of 
  598         select="$l oincStatus "
  599        />
  600                                  
  601       </xsl:when >
  602                                 
  603       <xsl:when 
  604        test="$row /n1:act/n1 :entryRela tionship [ @typeCode= 'SUBJ']/n1 :observati on [@moodC ode='EVN']  [@classCo de='OBS']/ n1:statusC ode/@code"
  605       >
  606                                           
  607        <xsl:value -of 
  608         select="$r ow/n1:act/ n1:entryRe lationship  [@typeCod e='SUBJ']/ n1:observa tion [@moo dCode='EVN '] [@class Code='OBS' ]/n1:statu sCode/@cod e"
  609        />
  610                                  
  611       </xsl:when >
  612                                 
  613       <xsl:when 
  614        test="$row /n1:act/n1 :entryRela tionship[@ typeCode=' SUBJ']/n1: observatio n/n1:entry Relationsh ip[@typeCo de='REFR'] /n1:observ ation/n1:v alue/@disp layName"
  615       >
  616                                           
  617        <xsl:value -of 
  618         select="$r ow/n1:act/ n1:entryRe lationship [@typeCode ='SUBJ']/n 1:observat ion/n1:ent ryRelation ship[@type Code='REFR ']/n1:obse rvation/n1 :value/@di splayName"
  619        />
  620                                  
  621       </xsl:when >
  622                                 
  623       <xsl:when 
  624        test="$row /n1:act/n1 :entryRela tionship[@ typeCode=' REFR']/n1: observatio n/n1:value /@displayN ame"
  625       >
  626                                           
  627        <xsl:value -of 
  628         select="$r ow/n1:act/ n1:entryRe lationship [@typeCode ='REFR']/n 1:observat ion/n1:val ue/@displa yName"
  629        />
  630                                  
  631       </xsl:when >
  632                                 
  633       <xsl:when 
  634        test="$row /n1:act/n1 :entryRela tionship[@ typeCode=' SUBJ']/n1: observatio n/n1:value /@displayN ame"
  635       >
  636                                           
  637        <xsl:value -of 
  638         select="$r ow/n1:act/ n1:entryRe lationship [@typeCode ='SUBJ']/n 1:observat ion/n1:val ue/@displa yName"
  639        />
  640                                  
  641       </xsl:when >
  642                                 
  643       <xsl:when 
  644        test="$row /n1:act/n1 :entryRela tionship[@ typeCode=' SUBJ']/n1: observatio n/n1:statu sCode/@cod e"
  645       >
  646                                           
  647        <xsl:value -of 
  648         select="$r ow/n1:act/ n1:entryRe lationship [@typeCode ='SUBJ']/n 1:observat ion/n1:sta tusCode/@c ode"
  649        />
  650                                  
  651       </xsl:when >
  652                                 
  653       <xsl:other wise>
  654                                           
  655        <xsl:call- template 
  656         name="na"
  657        />
  658                                  
  659       </xsl:othe rwise>
  660                        
  661      </xsl:choo se>
  662              
  663     </xsl:temp late>
  664    
  665       
  666     <xsl:templ ate 
  667      name="prob Date"
  668     >
  669          
  670      <xsl:param  
  671       name="row"
  672      />
  673          
  674      <xsl:varia ble 
  675       name="rawD ate"
  676      >
  677             
  678       <xsl:call- template 
  679        name="getP roblemOnse tDateStrin g"
  680       >
  681                
  682        <xsl:with- param 
  683         name="act"  
  684         select="$r ow/n1:act"
  685        />
  686              
  687       </xsl:call -template>
  688           
  689      </xsl:vari able>
  690          
  691      <xsl:choos e>
  692             
  693       <xsl:when 
  694        test="stri ng-length( $rawDate)> 1"
  695       >
  696                
  697        <xsl:call- template 
  698         name="form atDateShor t"
  699        >
  700                   
  701         <xsl:with- param 
  702          name="date String" 
  703          select="$r awDate"
  704         />
  705                 
  706        </xsl:call -template>
  707              
  708       </xsl:when >
  709             
  710       <xsl:other wise>
  711                
  712        <xsl:call- template 
  713         name="na"
  714        />
  715              
  716       </xsl:othe rwise>
  717           
  718      </xsl:choo se>
  719        
  720     </xsl:temp late>
  721    
  722       
  723     <!-- Aller gies -->
  724    
  725       
  726     <xsl:templ ate 
  727      name="alle rgyType"
  728     >
  729          
  730      <xsl:param  
  731       name="obse rvation"
  732      />
  733          
  734      <xsl:choos e>
  735             
  736       <xsl:when 
  737        test="$obs ervation/n 1:code/@di splayName  and not ($ isKaiser)"
  738       >
  739                
  740        <xsl:value -of 
  741         select="$o bservation /n1:code/@ displayNam e"
  742        />
  743              
  744       </xsl:when >
  745             
  746       <xsl:other wise>
  747                
  748        <xsl:call- template 
  749         name="na"
  750        />
  751              
  752       </xsl:othe rwise>
  753           
  754      </xsl:choo se>
  755        
  756     </xsl:temp late>
  757    
  758       
  759     <xsl:templ ate 
  760      name="getR eactionStr ing"
  761     >
  762          
  763      <xsl:param  
  764       name="entr y"
  765      />
  766          
  767      <xsl:varia ble 
  768       name="path
  769       select="$e ntry/.."
  770      />
  771          
  772      <xsl:for-e ach 
  773       select="$e ntry/n1:ac t/n1:entry Relationsh ip[@typeCo de='MFST'] "
  774      >
  775             
  776       <xsl:varia ble 
  777        name="reac tionRefere nce" 
  778        select="n1 :observati on/n1:text /n1:refere nce/@value "
  779       />
  780             
  781       <xsl:varia ble 
  782        name="reac tionValue"  
  783        select="$p ath/n1:tex t//n1:cont ent[@ID=$r eactionRef erence]"
  784       />
  785             
  786       <xsl:varia ble 
  787        name="reac tionValue2
  788        select="$p ath/n1:tex t//n1:cont ent[@ID=su bstring-af ter($react ionReferen ce,'#')]"
  789       />
  790             
  791       <xsl:if 
  792        test="stri ng-length( $reactionV alue)>1 an d not($isK aiser)"
  793       >
  794                
  795        <xsl:if 
  796         test="posi tion()>1"
  797        >
  798                   
  799         <xsl:text>
  800         
  801         </xsl:text >
  802                 
  803        </xsl:if>
  804                
  805        <xsl:value -of 
  806         select="$r eactionVal ue"
  807        />
  808              
  809       </xsl:if>
  810             
  811       <xsl:if 
  812        test="stri ng-length( $reactionV alue2)>1"
  813       >
  814                
  815        <xsl:if 
  816         test="posi tion()>1"
  817        >
  818                   
  819         <xsl:text>
  820         
  821         </xsl:text >
  822                 
  823        </xsl:if>
  824                
  825        <xsl:value -of 
  826         select="$r eactionVal ue2"
  827        />
  828              
  829       </xsl:if>
  830           
  831      </xsl:for- each>
  832        
  833     </xsl:temp late>
  834    
  835       
  836     <xsl:templ ate 
  837      name="getS everityTex t"
  838     >
  839          
  840      <xsl:param  
  841       name="obse rvation"
  842      />
  843          
  844      <xsl:if 
  845       test="$obs ervation"
  846      >
  847             
  848       <xsl:varia ble 
  849        name="sevr Reference"  
  850        select="su bstring-af ter($obser vation/n1: entryRelat ionship/n1 :observati on/n1:entr yRelations hip/n1:obs ervation/n 1:text/n1: reference/ @value,'#' )"
  851       />
  852             
  853       <xsl:varia ble 
  854        name="seve rity" 
  855        select="$o bservation /../../../ ../n1:text //n1:conte nt[@ID=$se vrReferenc e]"
  856       />
  857             
  858       <xsl:if 
  859        test="stri ng-length( $severity) >1"
  860       >
  861                
  862        <xsl:value -of 
  863         select="$s everity"
  864        />
  865              
  866       </xsl:if>
  867           
  868      </xsl:if>
  869        
  870     </xsl:temp late>
  871    
  872       
  873     <xsl:templ ate 
  874      name="getC reatedOnDa te"
  875     >
  876          
  877      <xsl:choos e>
  878             
  879       <xsl:when 
  880        test="stri ng-length( /n1:Clinic alDocument /n1:effect iveTime/@v alue)=0"
  881       >
  882                
  883        <xsl:call- template 
  884         name="na"
  885        />
  886              
  887       </xsl:when >
  888             
  889       <xsl:when 
  890        test="star ts-with(/n 1:Clinical Document/n 1:effectiv eTime/@val ue,' ')"
  891       >
  892                
  893        <xsl:call- template 
  894         name="na"
  895        />
  896              
  897       </xsl:when >
  898             
  899       <xsl:other wise>
  900                
  901        <xsl:call- template 
  902         name="form atDateLong "
  903        >
  904                   
  905         <xsl:with- param 
  906          name="date String" 
  907          select="/n 1:Clinical Document/n 1:effectiv eTime/@val ue"
  908         />
  909                 
  910        </xsl:call -template>
  911              
  912       </xsl:othe rwise>
  913           
  914      </xsl:choo se>
  915        
  916     </xsl:temp late>
  917    
  918       
  919     <xsl:templ ate 
  920      name="getG enderStrin g"
  921     >
  922          
  923      <xsl:choos e>
  924             
  925       <xsl:when 
  926        test="/n1: ClinicalDo cument/n1: recordTarg et/n1:pati entRole/n1 :patient/n 1:administ rativeGend erCode/@co de"
  927       >
  928                
  929        <xsl:value -of 
  930         select="/n 1:Clinical Document/n 1:recordTa rget/n1:pa tientRole/ n1:patient /n1:admini strativeGe nderCode/@ code"
  931        />
  932              
  933       </xsl:when >
  934             
  935       <xsl:other wise>
  936                
  937        <xsl:call- template 
  938         name="gend erString"
  939        >
  940                   
  941         <xsl:with- param 
  942          name="sex"  
  943          select="/n 1:Clinical Document/n 1:recordTa rget/n1:pa tientRole/ n1:patient /n1:admini strativeGe nderCode/n 1:original Text"
  944         />
  945                 
  946        </xsl:call -template>
  947              
  948       </xsl:othe rwise>
  949           
  950      </xsl:choo se>
  951        
  952     </xsl:temp late>
  953    
  954       
  955     <!-- Labs  -->
  956    
  957       
  958     <xsl:templ ate 
  959      name="getR esultValue _detail"
  960     >
  961          
  962      <xsl:param  
  963       name="obse rvation"
  964      />
  965          
  966      <xsl:if 
  967       test="$obs ervation"
  968      >
  969             
  970       <xsl:varia ble 
  971        name="resu ltValue"
  972       >
  973                
  974        <xsl:call- template 
  975         name="getR esultValue "
  976        >
  977                   
  978         <xsl:with- param 
  979          name="obse rvation" 
  980          select="$o bservation "
  981         />
  982                 
  983        </xsl:call -template>
  984              
  985       </xsl:vari able>
  986             
  987       <xsl:choos e>
  988                
  989        <xsl:when 
  990         test="stri ng-length( normalize- space($res ultValue)) >0"
  991        >
  992                   
  993         <xsl:value -of 
  994          select="no rmalize-sp ace($resul tValue)"
  995         />
  996                 
  997        </xsl:when >
  998                
  999        <xsl:other wise>
  1000                   
  1001         <xsl:call- template 
  1002          name="na"
  1003         />
  1004                 
  1005        </xsl:othe rwise>
  1006              
  1007       </xsl:choo se>
  1008           
  1009      </xsl:if>
  1010        
  1011     </xsl:temp late>
  1012    
  1013       
  1014     <xsl:templ ate 
  1015      name="getF lag"
  1016     >
  1017          
  1018      <xsl:param  
  1019       name="inte rpretation "
  1020      />
  1021          
  1022      <xsl:choos e>
  1023             
  1024       <xsl:when 
  1025        test="$int erpretatio n/@display Name"
  1026       >
  1027                
  1028        <xsl:value -of 
  1029         select="$i nterpretat ion/@displ ayName"
  1030        />
  1031              
  1032       </xsl:when >
  1033             
  1034       <xsl:when 
  1035        test="$int erpretatio n/n1:origi nalText"
  1036       >
  1037                
  1038        <xsl:value -of 
  1039         select="$i nterpretat ion/n1:ori ginalText"
  1040        />
  1041              
  1042       </xsl:when >
  1043             
  1044       <xsl:other wise>
  1045                
  1046        <xsl:call- template 
  1047         name="na"
  1048        />
  1049              
  1050       </xsl:othe rwise>
  1051           
  1052      </xsl:choo se>
  1053        
  1054     </xsl:temp late>
  1055    
  1056       
  1057     <xsl:templ ate 
  1058      name="getR esultUnit"
  1059     >
  1060          
  1061      <xsl:param  
  1062       name="obse rvation"
  1063      />
  1064          
  1065      <xsl:choos e>
  1066             
  1067       <xsl:when 
  1068        test="$obs ervation/n 1:value/@u nit"
  1069       >
  1070                
  1071        <xsl:value -of 
  1072         select="$o bservation /n1:value/ @unit"
  1073        />
  1074              
  1075       </xsl:when >
  1076             
  1077       <xsl:when 
  1078        test="$isK aiser"
  1079       >
  1080                
  1081        <xsl:text>
  1082        </xsl:text >
  1083              
  1084       </xsl:when >
  1085             
  1086       <xsl:other wise>
  1087                
  1088        <xsl:call- template 
  1089         name="na"
  1090        />
  1091              
  1092       </xsl:othe rwise>
  1093           
  1094      </xsl:choo se>
  1095        
  1096     </xsl:temp late>
  1097    
  1098       
  1099     <xsl:templ ate 
  1100      name="getR esultRefRa nge"
  1101     >
  1102          
  1103      <xsl:param  
  1104       name="obse rvation"
  1105      />
  1106          
  1107      <xsl:choos e>
  1108             
  1109       <xsl:when 
  1110        test="$obs ervation/n 1:referenc eRange/n1: observatio nRange/n1: text"
  1111       >
  1112                
  1113        <xsl:value -of 
  1114         select="$o bservation /n1:refere nceRange/n 1:observat ionRange/n 1:text"
  1115        />
  1116              
  1117       </xsl:when >
  1118             
  1119       <xsl:other wise>
  1120                
  1121        <xsl:call- template 
  1122         name="na"
  1123        />
  1124              
  1125       </xsl:othe rwise>
  1126           
  1127      </xsl:choo se>
  1128        
  1129     </xsl:temp late>
  1130    
  1131       
  1132     <!--Determ ine if sup ported com ponent(s)  -->
  1133       
  1134       
  1135     <xsl:templ ate 
  1136      name="comp onentFound "
  1137     >
  1138          
  1139      <xsl:param  
  1140       name="comp Section"
  1141      />
  1142          
  1143      <xsl:choos e>
  1144             
  1145       <xsl:when 
  1146        test="$com pSection/n 1:code[@co de=$loincA llergyCode ]"
  1147       >
  1148                
  1149        <xsl:value -of 
  1150         select="$c ompSection /n1:code/@ code"
  1151        />
  1152              
  1153       </xsl:when >
  1154             
  1155       <xsl:when 
  1156        test="$com pSection/n 1:code[@co de=$loincE ncounterCo de]"
  1157       >
  1158                
  1159        <xsl:value -of 
  1160         select="$c ompSection /n1:code/@ code"
  1161        />
  1162              
  1163       </xsl:when >
  1164             
  1165       <xsl:when 
  1166        test="$com pSection/n 1:code[@co de=$loincI mmunizatio nsCode]"
  1167       >
  1168                
  1169        <xsl:value -of 
  1170         select="$c ompSection /n1:code/@ code"
  1171        />
  1172              
  1173       </xsl:when >
  1174             
  1175       <xsl:when 
  1176        test="$com pSection/n 1:code[@co de=$loincM edCode] an d not($noM ed)"
  1177       >
  1178                
  1179        <xsl:value -of 
  1180         select="$c ompSection /n1:code/@ code"
  1181        />
  1182              
  1183       </xsl:when >
  1184             
  1185       <xsl:when 
  1186        test="$com pSection/n 1:code[@co de=$loincP roblemCode ] and not( $noMdoProb )"
  1187       >
  1188                
  1189        <xsl:value -of 
  1190         select="$c ompSection /n1:code/@ code"
  1191        />
  1192              
  1193       </xsl:when >
  1194             
  1195       <xsl:when 
  1196        test="$com pSection/n 1:code[@co de=$loincP roceduresC ode]"
  1197       >
  1198                
  1199        <xsl:value -of 
  1200         select="$c ompSection /n1:code/@ code"
  1201        />
  1202              
  1203       </xsl:when >
  1204             
  1205       <xsl:when 
  1206        test="$com pSection/n 1:code[@co de=$loincR esultsCode ] and not( $noMdoResu lt)"
  1207       >
  1208                
  1209        <xsl:value -of 
  1210         select="$c ompSection /n1:code/@ code"
  1211        />
  1212              
  1213       </xsl:when >
  1214             
  1215       <xsl:when 
  1216        test="$com pSection/n 1:code[@co de=$loincV italsCode] "
  1217       >
  1218                
  1219        <xsl:value -of 
  1220         select="$c ompSection /n1:code/@ code"
  1221        />
  1222              
  1223       </xsl:when >
  1224             
  1225       <xsl:other wise/>
  1226           
  1227      </xsl:choo se>
  1228        
  1229     </xsl:temp late>
  1230    
  1231       
  1232     <xsl:templ ate 
  1233      name="na"
  1234     >
  1235          
  1236      <xsl:text>
  1237       - Not Avai lable -
  1238      </xsl:text >
  1239        
  1240     </xsl:temp late>
  1241    
  1242       
  1243     <xsl:templ ate 
  1244      name="repl aceSquiggl esWithLine feeds"
  1245     >
  1246          
  1247      <xsl:param  
  1248       name="text "
  1249      />
  1250          
  1251      <xsl:if 
  1252       test="$tex t"
  1253      >
  1254             
  1255       <xsl:choos e>
  1256                
  1257        <xsl:when 
  1258         test="cont ains($text ,'~')"
  1259        >
  1260                   
  1261         <xsl:value -of 
  1262          select="su bstring-be fore($text ,'~')"
  1263         />
  1264                   
  1265         <xsl:text>
  1266          &#13;&#10;
  1267         </xsl:text >
  1268                   
  1269         <xsl:call- template 
  1270          name="repl aceSquiggl esWithLine feeds"
  1271         >
  1272                       
  1273          <xsl:with- param 
  1274           name="text
  1275           select="su bstring-af ter($text, '~')"
  1276          />
  1277                    
  1278         </xsl:call -template>
  1279                 
  1280        </xsl:when >
  1281                
  1282        <xsl:other wise>
  1283                   
  1284         <xsl:value -of 
  1285          select="$t ext"
  1286         />
  1287                 
  1288        </xsl:othe rwise>
  1289              
  1290       </xsl:choo se>
  1291           
  1292      </xsl:if>
  1293        
  1294     </xsl:temp late>
  1295    
  1296       
  1297     <xsl:templ ate 
  1298      name="disp layAllergy Verificati onDate"
  1299     >
  1300          
  1301      <xsl:param  
  1302       name="obse rvation"
  1303      />
  1304          
  1305      <xsl:varia ble 
  1306       name="alle rgyVerifDa te"
  1307      >
  1308             
  1309       <xsl:call- template 
  1310        name="getA llergyVeri ficationDa te"
  1311       >
  1312                
  1313        <xsl:with- param 
  1314         name="obse rvation" 
  1315         select="$o bservation "
  1316        />
  1317              
  1318       </xsl:call -template>
  1319           
  1320      </xsl:vari able>
  1321          
  1322      <xsl:choos e>
  1323             
  1324       <xsl:when 
  1325        test="stri ng-length( $allergyVe rifDate)>0 "
  1326       >
  1327                
  1328        <xsl:varia ble 
  1329         name="form attedVerif Date"
  1330        >
  1331                   
  1332         <xsl:call- template 
  1333          name="form atDateShor t"
  1334         >
  1335                       
  1336          <xsl:with- param 
  1337           name="date String" 
  1338           select="$a llergyVeri fDate"
  1339          />
  1340                    
  1341         </xsl:call -template>
  1342                 
  1343        </xsl:vari able>
  1344                
  1345        <xsl:value -of 
  1346         select="$f ormattedVe rifDate"
  1347        />
  1348              
  1349       </xsl:when >
  1350             
  1351       <xsl:other wise>
  1352                
  1353        <xsl:call- template 
  1354         name="na"
  1355        />
  1356              
  1357       </xsl:othe rwise>
  1358           
  1359      </xsl:choo se>
  1360        
  1361     </xsl:temp late>
  1362    
  1363   </xsl:styl esheet>