313. EPMO Open Source Coordination Office Redaction File Detail Report

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

313.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\weblogic\domains\adapter_devl\config\VANHIN_Adapter cccd-mapping.xml 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\weblogic\domains\adapter_devl\config\VANHIN_Adapter cccd-mapping.xml Wed Apr 5 11:59:26 2017 UTC

313.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 51344
Changed 2 4
Inserted 0 0
Removed 0 0

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

313.4 Active regular expressions

No regular expressions were active.

313.5 Comparison detail

  1   <?xml 
  2     version="1 .0" 
  3     encoding=" UTF-8"
  4   ?>
  5   <!-- Docum ent : c32- mapping.xm l Created  on : Decem ber 30, 20 08, 10:49  AM 
  6           Au thor : Dav id Vazquez  Descripti on: This f ile provid es a defin ition for  mapping 
  7           a  Java repre sentation  (HashMap o r POJO) of  data into  a XML tem plate of a  
  8           HI TSP C32 fi le. -->
  9   <template 
  10     xmlns="urn :gov:va:me d:nhin:ada pter:xmlut ils:config "
  11           
  12     xmlns:xsi= "http://ww w.w3.org/2 001/XMLSch ema-instan ce"
  13           
  14     xsi:schema Location=" urn:gov:va :med:nhin: adapter:xm lutils:con fig templa te.xsd"
  15   >
  16             
  17     <name>
  18      CCCD
  19     </name>
  20             
  21     <xpathLibU RI>
  22      http://sax on.sf.net/ jaxp/xpath /om
  23     </xpathLib URI>
  24             
  25     <sourceFil e>
  26                       
  27      <path>
  28       cccd-templ ate.xml
  29      </path>
  30                       
  31      <namespace Mappings>
  32                                 
  33       <namespace Mapping>
  34                                           
  35        <prefix>
  36         cda
  37        </prefix>
  38                                           
  39        <uri>
  40         urn:hl7-or g:v3
  41        </uri>
  42                                  
  43       </namespac eMapping>
  44                                 
  45       <namespace Mapping>
  46                                           
  47        <prefix>
  48         sdtc
  49        </prefix>
  50                                           
  51        <uri>
  52         urn:hl7-or g:sdtc
  53        </uri>
  54                                  
  55       </namespac eMapping>
  56                                 
  57       <namespace Mapping>
  58                                           
  59        <prefix>
  60         voc
  61        </prefix>
  62                                           
  63        <uri>
  64         urn:hl7-or g:v3/voc
  65        </uri>
  66                                  
  67       </namespac eMapping>
  68                                 
  69       <namespace Mapping>
  70                                           
  71        <prefix>
  72         xsi
  73        </prefix>
  74                                           
  75        <uri>
  76         http://www .w3.org/20 01/XMLSche ma-instanc e
  77        </uri>
  78                                  
  79       </namespac eMapping>
  80                        
  81      </namespac eMappings>
  82              
  83     </sourceFi le>
  84             
  85     <mappings>
  86                       
  87      <!-- PERSO N INFORMAT ION CONTEN T MODULE,  REQUIRED - ->
  88                       
  89      <!-- 1.01  DOCUMENT T IMESTAMP,  REQUIRED - ->
  90                       
  91      <mapping>
  92                                 
  93       <property>
  94        creationTi me
  95       </property >
  96                                 
  97       <xpath>
  98        /cda:Clini calDocumen t/cda:effe ctiveTime
  99       </xpath>
  100                                 
  101       <ifNotNull >
  102                                           
  103        <action 
  104         action="se tAttribute
  105         attribute= "value" 
  106        />
  107                                  
  108       </ifNotNul l>
  109                                 
  110       <ifNull>
  111                                           
  112        <action 
  113         action="se tAttribute
  114         attribute= "nullFlavo r"
  115        >
  116         UNK
  117        </action>
  118                                  
  119       </ifNull>
  120                        
  121      </mapping>
  122                       
  123      <!-- ?.??  DOCUMENT U NIQUE ID,  REQUIRED - ->
  124                       
  125      <mapping>
  126                                 
  127       <property>
  128        documentUn iqueId
  129       </property >
  130                                 
  131       <xpath>
  132        /cda:Clini calDocumen t/cda:id
  133       </xpath>
  134                                 
  135       <ifNotNull >
  136                                           
  137        <action 
  138         action="se tAttribute
  139         attribute= "extension
  140        />
  141                                  
  142       </ifNotNul l>
  143                                 
  144       <ifNull>
  145                                           
  146        <action 
  147         action="se tAttribute
  148         attribute= "nullFlavo r"
  149        >
  150         UNK
  151        </action>
  152                                  
  153       </ifNull>
  154                        
  155      </mapping>
  156        
  157      <!-- 1.02  Person ID,  REQUIRED  -->
  158                       
  159      <mapping>
  160                                 
  161       <property>
  162        patientId
  163       </property >
  164                                 
  165       <xpath>
  166        /cda:Clini calDocumen t/cda:reco rdTarget/c da:patient Role/cda:i d
  167       </xpath>
  168                                 
  169       <ifNotNull >
  170                                           
  171        <action 
  172         action="se tAttribute
  173         attribute= "extension
  174        />
  175                                  
  176       </ifNotNul l>
  177                                 
  178       <ifNull>
  179                                           
  180        <action 
  181         action="se tAttribute
  182         attribute= "nullFlavo r"
  183        >
  184         UNK
  185        </action>
  186                                  
  187       </ifNull>
  188                        
  189      </mapping>
  190                       
  191      <!-- 1.03  PERSON ADD RESS HOME  PERMENANT,  REQUIRED  -->
  192                       
  193      <mapping>
  194                                 
  195       <property>
  196        demographi csExt
  197       </property >
  198                                 
  199       <xpath>
  200        /cda:Clini calDocumen t/cda:reco rdTarget/c da:patient Role/cda:a ddr
  201       </xpath>
  202                                 
  203       <ifNotNull >
  204                                           
  205        <action 
  206         action="ev aluateMapp ings" 
  207        />
  208                                  
  209       </ifNotNul l>
  210                                 
  211       <ifNull>
  212                                           
  213        <action 
  214         action="se tAttribute
  215         attribute= "nullFlavo r"
  216        >
  217         UNK
  218        </action>
  219                                           
  220        <action 
  221         action="re moveChildr en" 
  222        />
  223                                  
  224       </ifNull>
  225                                 
  226       <mappings>
  227                                           
  228        <!-- Remov ed homeAdd ressType,  always "HP " for home  -->
  229                                           
  230        <mapping>
  231                                                    
  232         <property>
  233          homeAddres sStreet
  234         </property >
  235                                                    
  236         <xpath>
  237          cda:street AddressLin e
  238         </xpath>
  239                                                    
  240         <ifNotNull >
  241                                                              
  242          <action 
  243           action="se tValue" 
  244          />
  245                                                     
  246         </ifNotNul l>
  247                                                    
  248         <ifNull>
  249                                                              
  250          <action 
  251           action="se tAttribute
  252           attribute= "nullFlavo r"
  253          >
  254           UNK
  255          </action>
  256                                                     
  257         </ifNull>
  258                                            
  259        </mapping>
  260                                           
  261        <mapping>
  262                                                    
  263         <property>
  264          homeAddres sCity
  265         </property >
  266                                                    
  267         <xpath>
  268          cda:city
  269         </xpath>
  270                                                    
  271         <ifNotNull >
  272                                                              
  273          <action 
  274           action="se tValue" 
  275          />
  276                                                     
  277         </ifNotNul l>
  278                                                    
  279         <ifNull>
  280                                                              
  281          <action 
  282           action="se tAttribute
  283           attribute= "nullFlavo r"
  284          >
  285           UNK
  286          </action>
  287                                                     
  288         </ifNull>
  289                                            
  290        </mapping>
  291                                           
  292        <mapping>
  293                                                    
  294         <property>
  295          homeAddres sState
  296         </property >
  297                                                    
  298         <xpath>
  299          cda:state
  300         </xpath>
  301                                                    
  302         <ifNotNull >
  303                                                              
  304          <action 
  305           action="se tValue" 
  306          />
  307                                                     
  308         </ifNotNul l>
  309                                                    
  310         <ifNull>
  311                                                              
  312          <action 
  313           action="se tAttribute
  314           attribute= "nullFlavo r"
  315          >
  316           UNK
  317          </action>
  318                                                     
  319         </ifNull>
  320                                            
  321        </mapping>
  322                                           
  323        <!-- Remov ed homeAdd ressCountr y -->
  324                                           
  325        <mapping>
  326                                                    
  327         <property>
  328          homeAddres sPostal
  329         </property >
  330                                                    
  331         <xpath>
  332          cda:postal Code
  333         </xpath>
  334                                                    
  335         <ifNotNull >
  336                                                              
  337          <action 
  338           action="se tValue" 
  339          />
  340                                                     
  341         </ifNotNul l>
  342                                                    
  343         <ifNull>
  344                                                              
  345          <action 
  346           action="se tAttribute
  347           attribute= "nullFlavo r"
  348          >
  349           UNK
  350          </action>
  351                                                     
  352         </ifNull>
  353                                            
  354        </mapping>
  355                                  
  356       </mappings >
  357                        
  358      </mapping>
  359                       
  360      <!-- 1.04  PERSON PHO NE/EMAIL/U RL, REQUIR ED -->
  361                       
  362      <mapping>
  363                                 
  364       <property>
  365        demographi csExt
  366       </property >
  367                                 
  368       <xpath>
  369        /cda:Clini calDocumen t/cda:reco rdTarget/c da:patient Role/cda:t elecom
  370       </xpath>
  371                                 
  372       <ifNotNull >
  373                                           
  374        <action 
  375         action="ev aluateMapp ings" 
  376        />
  377                                  
  378       </ifNotNul l>
  379                                 
  380       <ifNull>
  381                                           
  382        <action 
  383         action="se tAttribute
  384         attribute= "nullFlavo r"
  385        >
  386         UNK
  387        </action>
  388                                  
  389       </ifNull>
  390                                 
  391       <mappings>
  392                                           
  393        <!-- Remov ed phoneTy pe, always  "HP" for  home phone  -->
  394                                           
  395        <mapping>
  396                                                    
  397         <property>
  398          phoneHome
  399         </property >
  400                                                    
  401         <xpath>
  402          .
  403         </xpath>
  404                                                    
  405         <ifNotNull >
  406                                                              
  407          <action 
  408           action="se tAttribute
  409           attribute= "use"
  410          >
  411           HP
  412          </action>
  413                                                              
  414          <action 
  415           action="se tAttribute
  416           attribute= "value" 
  417          />
  418                                                     
  419         </ifNotNul l>
  420                                                    
  421         <ifNull>
  422                                                              
  423          <action 
  424           action="se tAttribute
  425           attribute= "nullFlavo r"
  426          >
  427           UNK
  428          </action>
  429                                                     
  430         </ifNull>
  431                                            
  432        </mapping>
  433                                  
  434       </mappings >
  435                        
  436      </mapping>
  437                       
  438      <!-- 1.05  PERSON NAM E - LEGAL,  REQUIRED  -->
  439                       
  440      <mapping>
  441                                 
  442       <property>
  443        demographi cs
  444       </property >
  445                                 
  446       <xpath>
  447        /cda:Clini calDocumen t/cda:reco rdTarget/c da:patient Role/cda:p atient/cda :name[@use ="L"]
  448       </xpath>
  449                                 
  450       <ifNotNull >
  451                                           
  452        <action 
  453         action="ev aluateMapp ings" 
  454        />
  455                                  
  456       </ifNotNul l>
  457                                 
  458       <ifNull>
  459                                           
  460        <action 
  461         action="se tAttribute
  462         attribute= "nullFlavo r"
  463        >
  464         UNK
  465        </action>
  466                                           
  467        <action 
  468         action="re moveChildr en" 
  469        />
  470                                  
  471       </ifNull>
  472                                 
  473       <mappings>
  474                                           
  475        <mapping>
  476                                                    
  477         <property 
  478          optional=" true"
  479         >
  480          namePrefix
  481         </property >
  482                                                    
  483         <xpath>
  484          cda:prefix
  485         </xpath>
  486                                                    
  487         <ifNotNull >
  488                                                              
  489          <action 
  490           action="se tValue" 
  491          />
  492                                                     
  493         </ifNotNul l>
  494                                                    
  495         <ifNull>
  496                                                              
  497          <action 
  498           action="re move" 
  499          />
  500                                                     
  501         </ifNull>
  502                                            
  503        </mapping>
  504                                           
  505        <mapping>
  506                                                    
  507         <property>
  508          nameGiven
  509         </property >
  510                                                    
  511         <xpath>
  512          cda:given
  513         </xpath>
  514                                                    
  515         <ifNotNull >
  516                                                              
  517          <action 
  518           action="se tValue" 
  519          />
  520                                                     
  521         </ifNotNul l>
  522                                                    
  523         <ifNull>
  524                                                              
  525          <action 
  526           action="se tAttribute
  527           attribute= "nullFlavo r"
  528          >
  529           UNK
  530          </action>
  531                                                     
  532         </ifNull>
  533                                            
  534        </mapping>
  535                                           
  536        <mapping>
  537                                                    
  538         <property>
  539          nameFamily
  540         </property >
  541                                                    
  542         <xpath>
  543          cda:family
  544         </xpath>
  545                                                    
  546         <ifNotNull >
  547                                                              
  548          <action 
  549           action="se tValue" 
  550          />
  551                                                     
  552         </ifNotNul l>
  553                                                    
  554         <ifNull>
  555                                                              
  556          <action 
  557           action="se tAttribute
  558           attribute= "nullFlavo r"
  559          >
  560           UNK
  561          </action>
  562                                                     
  563         </ifNull>
  564                                            
  565        </mapping>
  566                                           
  567        <mapping>
  568                                                    
  569         <property 
  570          optional=" true"
  571         >
  572          nameSuffix
  573         </property >
  574                                                    
  575         <xpath>
  576          cda:suffix
  577         </xpath>
  578                                                    
  579         <ifNotNull >
  580                                                              
  581          <action 
  582           action="se tValue" 
  583          />
  584                                                     
  585         </ifNotNul l>
  586                                                    
  587         <ifNull>
  588                                                              
  589          <action 
  590           action="re move" 
  591          />
  592                                                     
  593         </ifNull>
  594                                            
  595        </mapping>
  596                                  
  597       </mappings >
  598                        
  599      </mapping>
  600                       
  601      <!-- 1.05  PERSON NAM E - Alias  Name, Opti onal -->
  602                       
  603      <mapping>
  604                                 
  605       <property>
  606        demographi csExt
  607       </property >
  608                                 
  609       <xpath>
  610        /cda:Clini calDocumen t/cda:reco rdTarget/c da:patient Role/cda:p atient/cda :name[@use ="P"]
  611       </xpath>
  612                                 
  613       <ifNotNull >
  614                                           
  615        <action 
  616         action="ev aluateMapp ings" 
  617        />
  618                                  
  619       </ifNotNul l>
  620                                 
  621       <ifNull>
  622                                           
  623        <action 
  624         action="se tAttribute
  625         attribute= "nullFlavo r"
  626        >
  627         UNK
  628        </action>
  629                                           
  630        <action 
  631         action="re moveChildr en" 
  632        />
  633                                  
  634       </ifNull>
  635                                 
  636       <mappings>
  637                                           
  638        <mapping>
  639                                                    
  640         <property 
  641          optional=" true"
  642         >
  643          aliasPrefi x
  644         </property >
  645                                                    
  646         <xpath>
  647          cda:prefix
  648         </xpath>
  649                                                    
  650         <ifNotNull >
  651                                                              
  652          <action 
  653           action="se tValue" 
  654          />
  655                                                     
  656         </ifNotNul l>
  657                                                    
  658         <ifNull>
  659                                                              
  660          <action 
  661           action="re move" 
  662          />
  663                                                     
  664         </ifNull>
  665                                            
  666        </mapping>
  667                                           
  668        <mapping>
  669                                                    
  670         <property 
  671          optional=" true"
  672         >
  673          aliasGiven
  674         </property >
  675                                                    
  676         <xpath>
  677          cda:given
  678         </xpath>
  679                                                    
  680         <ifNotNull >
  681                                                              
  682          <action 
  683           action="se tValue" 
  684          />
  685                                                     
  686         </ifNotNul l>
  687                                                    
  688         <ifNull>
  689                                                              
  690          <action 
  691           action="se tAttribute
  692           attribute= "nullFlavo r"
  693          >
  694           UNK
  695          </action>
  696                                                     
  697         </ifNull>
  698                                            
  699        </mapping>
  700                                           
  701        <mapping>
  702                                                    
  703         <property 
  704          optional=" true"
  705         >
  706          aliasFamil y
  707         </property >
  708                                                    
  709         <xpath>
  710          cda:family
  711         </xpath>
  712                                                    
  713         <ifNotNull >
  714                                                              
  715          <action 
  716           action="se tValue" 
  717          />
  718                                                     
  719         </ifNotNul l>
  720                                                    
  721         <ifNull>
  722                                                              
  723          <action 
  724           action="se tAttribute
  725           attribute= "nullFlavo r"
  726          >
  727           UNK
  728          </action>
  729                                                     
  730         </ifNull>
  731                                            
  732        </mapping>
  733                                           
  734        <mapping>
  735                                                    
  736         <property 
  737          optional=" true"
  738         >
  739          aliasSuffi x
  740         </property >
  741                                                    
  742         <xpath>
  743          cda:suffix
  744         </xpath>
  745                                                    
  746         <ifNotNull >
  747                                                              
  748          <action 
  749           action="se tValue" 
  750          />
  751                                                     
  752         </ifNotNul l>
  753                                                    
  754         <ifNull>
  755                                                              
  756          <action 
  757           action="re move" 
  758          />
  759                                                     
  760         </ifNull>
  761                                            
  762        </mapping>
  763                                  
  764       </mappings >
  765                        
  766      </mapping>
  767                       
  768      <!-- 1.06  GENDER, RE QUIRED, or iginalText  -->
  769                       
  770      <mapping>
  771                                 
  772       <property>
  773        demographi cs
  774       </property >
  775                                 
  776       <xpath>
  777        /cda:Clini calDocumen t/cda:reco rdTarget/c da:patient Role/cda:p atient/cda :administr ativeGende rCode
  778       </xpath>
  779                                 
  780       <ifNotNull >
  781                                           
  782        <action 
  783         action="ev aluateMapp ings" 
  784        />
  785                                  
  786       </ifNotNul l>
  787                                 
  788       <ifNull>
  789                                           
  790        <action 
  791         action="re move" 
  792        />
  793                                  
  794       </ifNull>
  795                                 
  796       <mappings>
  797                                           
  798        <mapping>
  799                                                    
  800         <property 
  801          optional=" true"
  802         >
  803          genderCode
  804         </property >
  805                                                    
  806         <xpath>
  807          .
  808         </xpath>
  809                                                    
  810         <ifNotNull >
  811                                                              
  812          <action 
  813           action="se tAttribute
  814           attribute= "code" 
  815          />
  816                                                              
  817          <action 
  818           action="se tAttribute
  819           attribute= "displayNa me"
  820                                                                       
  821           property=" genderDisp lay" 
  822          />
  823                                                     
  824         </ifNotNul l>
  825                                                    
  826         <ifNull>
  827                                                              
  828          <action 
  829           action="re moveAttrib utes" 
  830          />
  831                                                              
  832          <action 
  833           action="se tAttribute
  834           attribute= "nullFlavo r"
  835          >
  836           UNK
  837          </action>
  838                                                     
  839         </ifNull>
  840                                            
  841        </mapping>
  842                                           
  843        <mapping>
  844                                                    
  845         <property>
  846          gender
  847         </property >
  848                                                    
  849         <xpath>
  850          cda:origin alText
  851         </xpath>
  852                                                    
  853         <ifNotNull >
  854                                                              
  855          <action 
  856           action="se tValue" 
  857          />
  858                                                     
  859         </ifNotNul l>
  860                                            
  861        </mapping>
  862                                  
  863       </mappings >
  864                        
  865      </mapping>
  866                       
  867      <!-- 1.07  PERSON DAT E OF BIRTH , REQUIRED  -->
  868                       
  869      <mapping>
  870                                 
  871       <property>
  872        demographi cs.birthDa te
  873       </property >
  874                                 
  875       <xpath>
  876        /cda:Clini calDocumen t/cda:reco rdTarget/c da:patient Role/cda:p atient/cda :birthTime
  877       </xpath>
  878                                 
  879       <ifNotNull >
  880                                           
  881        <action 
  882         action="se tAttribute
  883         attribute= "value" 
  884        />
  885                                  
  886       </ifNotNul l>
  887                                 
  888       <ifNull>
  889                                           
  890        <action 
  891         action="se tAttribute
  892         attribute= "nullFlavo r"
  893        >
  894         UNK
  895        </action>
  896                                  
  897       </ifNull>
  898                        
  899      </mapping>
  900                       
  901      <!-- 1.08  MARITAL ST ATUS, Opti onal-R2, o riginalTex t -->
  902                       
  903      <mapping>
  904                                 
  905       <property>
  906        demographi csExt
  907       </property >
  908                                 
  909       <xpath>
  910        /cda:Clini calDocumen t/cda:reco rdTarget/c da:patient Role/cda:p atient/cda :maritalSt atusCode
  911       </xpath>
  912                                 
  913       <ifNotNull >
  914                                           
  915        <action 
  916         action="ev aluateMapp ings" 
  917        />
  918                                  
  919       </ifNotNul l>
  920                                 
  921       <ifNull>
  922                                           
  923        <action 
  924         action="re move" 
  925        />
  926                                  
  927       </ifNull>
  928                                 
  929       <mappings>
  930                                           
  931        <mapping>
  932                                                    
  933         <property 
  934          optional=" true"
  935         >
  936          maritalSta tusCode
  937         </property >
  938                                                    
  939         <xpath>
  940          .
  941         </xpath>
  942                                                    
  943         <ifNotNull >
  944                                                              
  945          <action 
  946           action="se tAttribute
  947           attribute= "code" 
  948          />
  949                                                              
  950          <action 
  951           action="se tAttribute
  952           attribute= "displayNa me"
  953                                                                       
  954           property=" maritalSta tusDisplay
  955          />
  956                                                     
  957         </ifNotNul l>
  958                                                    
  959         <ifNull>
  960                                                              
  961          <action 
  962           action="re moveAttrib utes" 
  963          />
  964                                                              
  965          <action 
  966           action="se tAttribute
  967           attribute= "nullFlavo r"
  968          >
  969           UNK
  970          </action>
  971                                                     
  972         </ifNull>
  973                                            
  974        </mapping>
  975                                           
  976        <mapping>
  977                                                    
  978         <property>
  979          maritalSta tus
  980         </property >
  981                                                    
  982         <xpath>
  983          cda:origin alText
  984         </xpath>
  985                                                    
  986         <ifNotNull >
  987                                                              
  988          <action 
  989           action="se tValue" 
  990          />
  991                                                     
  992         </ifNotNul l>
  993                                            
  994        </mapping>
  995                                  
  996       </mappings >
  997                        
  998      </mapping>
  999                       
  1000      <!-- 1.09  RELIGIOUS  AFFILIATIO N, Optiona l Removed  b/c data n ot yet ava ilable 
  1001                                via VA  VIstA RPC s -->
  1002                       
  1003      <!-- 1.10  RACE, Opti onal, orig inalText - ->
  1004                       
  1005      <mapping>
  1006                                 
  1007       <property>
  1008        demographi csExt
  1009       </property >
  1010                                 
  1011       <xpath>
  1012        /cda:Clini calDocumen t/cda:reco rdTarget/c da:patient Role/cda:p atient/cda :raceCode
  1013       </xpath>
  1014                                 
  1015       <ifNotNull >
  1016                                           
  1017        <action 
  1018         action="ev aluateMapp ings"
  1019        />
  1020                                  
  1021       </ifNotNul l>
  1022                                 
  1023       <ifNull>
  1024                                           
  1025        <action 
  1026         action="re move" 
  1027        />
  1028                                  
  1029       </ifNull>
  1030                                 
  1031       <mappings>
  1032                                           
  1033        <mapping>
  1034                                                    
  1035         <property 
  1036          optional=" true"
  1037         >
  1038          raceDispla y
  1039         </property >
  1040                                                    
  1041         <xpath>
  1042          cda:origin alText
  1043         </xpath>
  1044                                                    
  1045         <ifNotNull >
  1046                                                              
  1047          <action 
  1048           action="se tValue" 
  1049          />
  1050                                                     
  1051         </ifNotNul l>
  1052                                            
  1053        </mapping>       
  1054                                           
  1055                                  
  1056                                                                              
  1057                                           
  1058        <mapping>
  1059                                                    
  1060         <property 
  1061          optional=" true"
  1062         >
  1063          raceDispla yName
  1064         </property >
  1065                                                    
  1066         <xpath>
  1067          .
  1068         </xpath>
  1069                                                    
  1070         <ifNotNull >
  1071                                                              
  1072          <action 
  1073           action="se tAttribute
  1074           attribute= "displayNa me"
  1075          />
  1076                                                     
  1077         </ifNotNul l>
  1078                                            
  1079        </mapping>
  1080                                           
  1081        <mapping>
  1082                                                    
  1083         <property 
  1084          optional=" true"
  1085         >
  1086          vetsRaceCo de
  1087         </property >
  1088                                                    
  1089         <xpath>
  1090          .
  1091         </xpath>
  1092                                                    
  1093         <ifNotNull >
  1094                                                              
  1095          <action 
  1096           action="se tAttribute
  1097           attribute= "code"
  1098          />
  1099                                                     
  1100         </ifNotNul l>
  1101                                                    
  1102         <ifNull>
  1103                                                              
  1104          <action 
  1105           action="se tAttribute
  1106           attribute= "nullFlavo r"
  1107          >
  1108           UNK
  1109          </action>
  1110                                                     
  1111         </ifNull>
  1112                                            
  1113        </mapping>                                 
  1114                                  
  1115       </mappings
  1116                                 
  1117                                 
  1118                                 
  1119                                 
  1120      </mapping>
  1121              
  1122              
  1123                       
  1124      <mapping>
  1125                                 
  1126       <property>
  1127        demographi csExt
  1128       </property >
  1129                                 
  1130       <xpath>
  1131        /cda:Clini calDocumen t/cda:reco rdTarget/c da:patient Role/cda:p atient
  1132       </xpath>
  1133                                 
  1134       <ifNotNull >
  1135                                           
  1136        <action 
  1137         action="ev aluateMapp ings" 
  1138        />
  1139                                  
  1140       </ifNotNul l>
  1141                                 
  1142       <mappings>
  1143                                           
  1144        <mapping>
  1145                                                    
  1146         <property 
  1147          collection ="true"
  1148         >
  1149          raceDispla yList
  1150         </property >
  1151                                                    
  1152         <xpath>
  1153          sdtc:raceC ode
  1154         </xpath>
  1155                                                    
  1156         <ifNotNull >
  1157                                                              
  1158          <action 
  1159           action="ev aluateMapp ings" 
  1160          />
  1161                                                     
  1162         </ifNotNul l>
  1163                                                    
  1164         <mappings>
  1165                                                              
  1166          <mapping>
  1167                                                                        
  1168           <property>
  1169            raceCode
  1170           </property >
  1171                                                                        
  1172           <xpath>
  1173            .
  1174           </xpath>
  1175                                                                        
  1176           <ifNotNull >
  1177                                                                                  
  1178            <action 
  1179             action="se tAttribute
  1180             attribute= "code" 
  1181            />
  1182                                                                                  
  1183            <action 
  1184             action="se tAttribute
  1185             attribute= "displayNa me" 
  1186             property=" raceDispla y" 
  1187            />
  1188                                                                         
  1189           </ifNotNul l>
  1190                                                               
  1191          </mapping>
  1192                                                              
  1193          <mapping>
  1194                                                                        
  1195           <property>
  1196            raceDispla y
  1197           </property >
  1198                                                                        
  1199           <xpath>
  1200            cda:origin alText
  1201           </xpath>
  1202                                                                        
  1203           <ifNotNull >
  1204                                                                                  
  1205            <action 
  1206             action="se tValue" 
  1207            />
  1208                                                                         
  1209           </ifNotNul l>
  1210                                                               
  1211          </mapping>
  1212                                                     
  1213         </mappings >
  1214                                            
  1215        </mapping>
  1216                                  
  1217       </mappings >
  1218                        
  1219      </mapping>
  1220                                                 
  1221                                
  1222                       
  1223                       
  1224      <!-- 1.11  ETHNICITY,  Optional  -->
  1225                       
  1226      <mapping>
  1227                                 
  1228       <property>
  1229        demographi csExt
  1230       </property >
  1231                                 
  1232       <xpath>
  1233        /cda:Clini calDocumen t/cda:reco rdTarget/c da:patient Role/cda:p atient/cda :ethnicGro upCode
  1234       </xpath>
  1235                                 
  1236       <ifNotNull >
  1237                                           
  1238        <action 
  1239         action="ev aluateMapp ings" 
  1240        />
  1241                                  
  1242       </ifNotNul l>
  1243                                 
  1244       <ifNull>
  1245                                           
  1246        <action 
  1247         action="re move" 
  1248        />
  1249                                  
  1250       </ifNull>
  1251                                 
  1252       <mappings>
  1253                                           
  1254        <mapping>
  1255                                                    
  1256         <property 
  1257          optional=" true"
  1258         >
  1259          ethnicityD isplay
  1260         </property >
  1261                                                    
  1262         <xpath>
  1263          cda:origin alText
  1264         </xpath>
  1265                                                    
  1266         <ifNotNull >
  1267                                                              
  1268          <action 
  1269           action="se tValue" 
  1270          />
  1271                                                     
  1272         </ifNotNul l>
  1273                                                    
  1274         <ifNull>
  1275                                                              
  1276          <action 
  1277           action="re move" 
  1278          />
  1279                                                     
  1280         </ifNull>
  1281                                            
  1282        </mapping>
  1283                                           
  1284        <mapping>
  1285                                                    
  1286         <property 
  1287          optional=" true"
  1288         >
  1289          ethnicityD isplayName
  1290         </property >
  1291                                                    
  1292         <xpath>
  1293          .
  1294         </xpath>
  1295                                                    
  1296         <ifNotNull >
  1297                                                              
  1298          <action 
  1299           action="se tAttribute
  1300           attribute= "displayNa me"
  1301          />
  1302                                                     
  1303         </ifNotNul l>
  1304                                            
  1305        </mapping>        
  1306                                           
  1307        <mapping>
  1308                                                    
  1309         <property 
  1310          optional=" true"
  1311         >
  1312          vetsEthnic ityCode
  1313         </property >
  1314                                                    
  1315         <xpath>
  1316          .
  1317         </xpath>
  1318                                                    
  1319         <ifNotNull >
  1320                                                              
  1321          <action 
  1322           action="se tAttribute
  1323           attribute= "code" 
  1324           property=" vetsEthnic ityCode"
  1325          />
  1326                                                     
  1327         </ifNotNul l>
  1328                                                    
  1329         <ifNull>
  1330                                                              
  1331          <action 
  1332           action="se tAttribute
  1333           attribute= "nullFlavo r"
  1334          >
  1335           UNK
  1336          </action>
  1337                                                     
  1338         </ifNull>
  1339                                            
  1340        </mapping>                                                   
  1341                                  
  1342       </mappings >
  1343                        
  1344      </mapping>
  1345                       
  1346      <!-- 2.01  LANGUAGE,  Optional,  Removed ma pping b/c  always UNK  in templa te -->
  1347                       
  1348      <!-- INFOR MATION SOU RCE CONTEN T MODULE,  REQUIRED - ->
  1349                       
  1350      <!-- 10.01  AUTHOR TI ME, REQUIR ED -->
  1351                       
  1352      <mapping>
  1353                                 
  1354       <property>
  1355        creationTi me
  1356       </property >
  1357                                 
  1358       <xpath>
  1359        /cda:Clini calDocumen t/cda:auth or/cda:tim e
  1360       </xpath>
  1361                                 
  1362       <ifNotNull >
  1363                                           
  1364        <action 
  1365         action="se tAttribute
  1366         attribute= "value" 
  1367        />
  1368                                  
  1369       </ifNotNul l>
  1370                        
  1371      </mapping>
  1372                       
  1373      <!-- CCD C DA R2 LEGA L AUTHENTI CATOR AS A N ORGANIZA TION, REQU IRED -->
  1374                       
  1375      <!-- CCD C DA R2 TIME  OF AUTHEN TICATION - ->
  1376                       
  1377      <mapping>
  1378                                 
  1379       <property>
  1380        creationTi me
  1381       </property >
  1382                                 
  1383       <xpath>
  1384        /cda:Clini calDocumen t/cda:lega lAuthentic ator/cda:t ime
  1385       </xpath>
  1386                                 
  1387       <ifNotNull >
  1388                                           
  1389        <action 
  1390         action="se tAttribute
  1391         attribute= "value" 
  1392        />
  1393                                  
  1394       </ifNotNul l>
  1395                        
  1396      </mapping>
  1397                       
  1398      <!-- CCD C DA R2 LEGA L AUTHENTI CATOR OID  (VA)& NAME  Commented  Out/Hard- coded 
  1399                                in C32  template  -->
  1400                       
  1401      <!-- CCD C DA R2 LEGA L AUTHENTI CATOR OID  (VA) -->
  1402                       
  1403      <mapping>
  1404                                 
  1405       <property 
  1406        optional=" true"
  1407       >
  1408        authentica torOID
  1409       </property >
  1410                                 
  1411       <xpath>
  1412        /cda:Clini calDocumen t/cda:lega lAuthentic ator/cda:a ssignedEnt ity/cda:re presentedO rganizatio n/cda:id
  1413       </xpath>
  1414                                 
  1415       <ifNotNull >
  1416                                           
  1417        <action 
  1418         action="se tAttribute
  1419         attribute= "root" 
  1420        />
  1421                                  
  1422       </ifNotNul l>
  1423                        
  1424      </mapping>
  1425                       
  1426      <mapping>
  1427                                 
  1428       <!-- CCD C DA R2 LEGA L AUTHENTI CATOR NAME  -->
  1429                                 
  1430       <property 
  1431        optional=" true"
  1432       >
  1433        authentica torName
  1434       </property >
  1435                                 
  1436       <xpath>
  1437        /cda:Clini calDocumen t/cda:lega lAuthentic ator/cda:a ssignedEnt ity/cda:re presentedO rganizatio n/cda:name
  1438       </xpath>
  1439                                 
  1440       <ifNotNull >
  1441                                           
  1442        <action 
  1443         action="se tValue" 
  1444        />
  1445                                  
  1446       </ifNotNul l>
  1447                        
  1448      </mapping>
  1449                       
  1450      <mapping>
  1451                                 
  1452       <property>
  1453        creationTi me
  1454       </property >
  1455                                 
  1456       <xpath>
  1457        /cda:Clini calDocumen t/cda:lega lAuthentic ator/cda:t ime
  1458       </xpath>
  1459                                 
  1460       <ifNotNull >
  1461                                           
  1462        <action 
  1463         action="se tAttribute
  1464         attribute= "value" 
  1465        />
  1466                                  
  1467       </ifNotNul l>
  1468                        
  1469      </mapping>
  1470                       
  1471      <!-- CCD C DA R2 DOCU MENTATION  OF MODULE  - QUERY ME TA DATA, O ptional -- >
  1472                       
  1473      <mapping>
  1474                                 
  1475       <!-- QUERY  META DATA , SERVICE  START TIME , Optional  -->
  1476                                 
  1477       <property>
  1478        demographi cs.birthDa te
  1479       </property >
  1480                                 
  1481       <xpath>
  1482        /cda:Clini calDocumen t/cda:docu mentationO f/cda:serv iceEvent/c da:effecti veTime/cda :low
  1483       </xpath>
  1484                                 
  1485       <ifNotNull >
  1486                                           
  1487        <action 
  1488         action="se tAttribute
  1489         attribute= "value" 
  1490        />
  1491                                  
  1492       </ifNotNul l>
  1493                                 
  1494       <ifNull>
  1495                                           
  1496        <action 
  1497         action="se tAttribute
  1498         attribute= "value" 
  1499         property=" beginDate"
  1500        />
  1501                                  
  1502       </ifNull>
  1503                        
  1504      </mapping>
  1505                       
  1506      <mapping>
  1507                                 
  1508       <!-- QUERY  META DATA , SERVICE  STOP TIME,  Optional  -->
  1509                                 
  1510       <property>
  1511        endDate
  1512       </property >
  1513                                 
  1514       <xpath>
  1515        /cda:Clini calDocumen t/cda:docu mentationO f/cda:serv iceEvent/c da:effecti veTime/cda :high
  1516       </xpath>
  1517                                 
  1518       <ifNotNull >
  1519                                           
  1520        <action 
  1521         action="se tAttribute
  1522         attribute= "value" 
  1523        />
  1524                                  
  1525       </ifNotNul l>
  1526                        
  1527      </mapping>
  1528                       
  1529      <!-- SUPPO RT CONTENT  MODULE (P articipant ) NOK GUAR , REQUIRED  -->
  1530                       
  1531      <mapping>
  1532                                 
  1533       <property 
  1534        optional=" true" 
  1535        collection ="true" 
  1536        merge="tru e"
  1537       >
  1538        participan ts
  1539       </property >
  1540                                 
  1541       <xpath>
  1542        /cda:Clini calDocumen t/cda:part icipant
  1543       </xpath>
  1544                                 
  1545       <ifNotNull >
  1546                                           
  1547        <action 
  1548         action="ev aluateMapp ings" 
  1549        />
  1550                                  
  1551       </ifNotNul l>
  1552                                 
  1553       <ifNull>
  1554                                           
  1555        <action 
  1556         action="re move" 
  1557        />
  1558                                  
  1559       </ifNull>
  1560                                 
  1561       <mappings>
  1562                                           
  1563        <mapping>
  1564                                                    
  1565         <property 
  1566          optional=" true"
  1567         >
  1568          supports
  1569         </property >
  1570                                                    
  1571         <xpath>
  1572          .
  1573         </xpath>
  1574                                                    
  1575         <ifNotNull >
  1576                                                              
  1577          <action 
  1578           action="ev aluateMapp ings" 
  1579          />
  1580                                                     
  1581         </ifNotNul l>
  1582                                                    
  1583         <ifNull>
  1584                                                              
  1585          <action 
  1586           action="re move" 
  1587          />
  1588                                                     
  1589         </ifNull>
  1590                                                    
  1591         <mappings>
  1592                                                              
  1593          <!-- 3.01  DATE, REQU IRED, Remo ved mappin g b/c alwa ys UNK in  template - ->
  1594                                                              
  1595          <!-- 3.02  CONTACT TY PE, REQUIR ED, Remove d mapping  b/c always  NOK in 
  1596                                                                       temp late -->
  1597                                                              
  1598          <mapping>
  1599                                                                        
  1600           <property>
  1601            contactTyp e
  1602           </property >
  1603                                                                        
  1604           <xpath>
  1605            cda:associ atedEntity
  1606           </xpath>
  1607                                                                        
  1608           <ifNotNull >
  1609                                                                                  
  1610            <action 
  1611             action="se tAttribute
  1612             attribute= "classCode
  1613            />
  1614                                                                         
  1615           </ifNotNul l>
  1616                                                               
  1617          </mapping>
  1618                                                              
  1619          <!-- 3.03  CONTACT RE LATIONSHIP , Optional -R2 -->
  1620                                                              
  1621          <mapping>
  1622                                                                        
  1623           <property 
  1624            optional=" true"
  1625           >
  1626            relationsh ipType
  1627           </property >
  1628                                                                        
  1629           <xpath>
  1630            cda:associ atedEntity /cda:code/ cda:origin alText
  1631           </xpath>
  1632                                                                        
  1633           <ifNotNull >
  1634                                                                                  
  1635            <action 
  1636             action="se tValue" 
  1637            />
  1638                                                                         
  1639           </ifNotNul l>
  1640                                                               
  1641          </mapping>
  1642                                                          
  1643          <!-- Prope rty for re lationship  display n ame and co de -->
  1644                                                              
  1645          <mapping>
  1646                                                                        
  1647           <property 
  1648            optional=" true"
  1649           >
  1650            relationsh ipTypeDisp lay
  1651           </property >
  1652                                                                        
  1653           <xpath>
  1654            cda:associ atedEntity /cda:code
  1655           </xpath>
  1656                                                                        
  1657           <ifNotNull >
  1658                                                                                  
  1659            <action 
  1660             action="se tAttribute
  1661             attribute= "displayNa me" 
  1662             property=" relationsh ipTypeDisp lay"
  1663            />
  1664                                                                         
  1665           </ifNotNul l>
  1666                                                                        
  1667           <ifNull>
  1668                                                                                  
  1669            <action 
  1670             action="se tAttribute
  1671             attribute= "nullFlavo r"
  1672            >
  1673             UNK
  1674            </action>
  1675                                                                         
  1676           </ifNull>
  1677                                                               
  1678          </mapping>                                                                     
  1679                                                              
  1680          <!-- 3.04  CONTACT Ad dresss, Ho me Permane nt, Option al-R2 -->
  1681                                                              
  1682          <!-- 3.04  CONTACT Ad dresss, Re moved home AddressTyp e mapping  b/c always  
  1683                                                                       HP i n template  -->
  1684                                                              
  1685          <mapping>
  1686                                                                        
  1687           <property 
  1688            optional=" true"
  1689           >
  1690            homeAddres s
  1691           </property >
  1692                                                                        
  1693           <xpath>
  1694            cda:associ atedEntity /cda:addr/ cda:street AddressLin e
  1695           </xpath>
  1696                                                                        
  1697           <ifNotNull >
  1698                                                                                  
  1699            <action 
  1700             action="se tValue" 
  1701            />
  1702                                                                         
  1703           </ifNotNul l>
  1704                                                               
  1705          </mapping>
  1706                                                              
  1707          <mapping>
  1708                                                                        
  1709           <property 
  1710            optional=" true"
  1711           >
  1712            homeCity
  1713           </property >
  1714                                                                        
  1715           <xpath>
  1716            cda:associ atedEntity /cda:addr/ cda:city
  1717           </xpath>
  1718                                                                        
  1719           <ifNotNull >
  1720                                                                                  
  1721            <action 
  1722             action="se tValue" 
  1723            />
  1724                                                                         
  1725           </ifNotNul l>
  1726                                                               
  1727          </mapping>
  1728                                                              
  1729          <mapping>
  1730                                                                        
  1731           <property 
  1732            optional=" true"
  1733           >
  1734            homeState
  1735           </property >
  1736                                                                        
  1737           <xpath>
  1738            cda:associ atedEntity /cda:addr/ cda:state
  1739           </xpath>
  1740                                                                        
  1741           <ifNotNull >
  1742                                                                                  
  1743            <action 
  1744             action="se tValue" 
  1745            />
  1746                                                                         
  1747           </ifNotNul l>
  1748                                                               
  1749          </mapping>
  1750                                                              
  1751          <!-- Remov ed homeCou ntry mappi ng b/c rem oved from  template - ->
  1752                                                              
  1753          <mapping>
  1754                                                                        
  1755           <property 
  1756            optional=" true"
  1757           >
  1758            homePostal
  1759           </property >
  1760                                                                        
  1761           <xpath>
  1762            cda:associ atedEntity /cda:addr/ cda:postal Code
  1763           </xpath>
  1764                                                                        
  1765           <ifNotNull >
  1766                                                                                  
  1767            <action 
  1768             action="se tValue" 
  1769            />
  1770                                                                         
  1771           </ifNotNul l>
  1772                                                               
  1773          </mapping>
  1774                                                              
  1775          <mapping>
  1776                                                                        
  1777           <property 
  1778            optional=" true"
  1779           >
  1780            homePhone
  1781           </property >
  1782                                                                        
  1783           <xpath>
  1784            cda:associ atedEntity /cda:telec om
  1785           </xpath>
  1786                                                                        
  1787           <ifNotNull >
  1788                                                                                  
  1789            <action 
  1790             action="se tAttribute
  1791             attribute= "use"
  1792            >
  1793             HP
  1794            </action>
  1795                                                                                  
  1796            <action 
  1797             action="se tAttribute
  1798             attribute= "value" 
  1799            />
  1800                                                                         
  1801           </ifNotNul l>
  1802                                                                        
  1803           <ifNull>
  1804                                                                                  
  1805            <action 
  1806             action="se tAttribute
  1807             attribute= "nullFlavo r"
  1808            >
  1809             UNK
  1810            </action>
  1811                                                                         
  1812           </ifNull>
  1813                                                               
  1814          </mapping>
  1815                                                              
  1816          <mapping>
  1817                                                                        
  1818           <property 
  1819            optional=" true"
  1820           >
  1821            namePrefix
  1822           </property >
  1823                                                                        
  1824           <xpath>
  1825            cda:associ atedEntity /cda:assoc iatedPerso n/cda:name /cda:prefi x
  1826           </xpath>
  1827                                                                        
  1828           <ifNotNull >
  1829                                                                                  
  1830            <action 
  1831             action="se tValue" 
  1832            />
  1833                                                                         
  1834           </ifNotNul l>
  1835                                                                        
  1836           <ifNull>
  1837                                                                                  
  1838            <action 
  1839             action="re move" 
  1840            />
  1841                                                                         
  1842           </ifNull>
  1843                                                               
  1844          </mapping>
  1845                                                              
  1846          <mapping>
  1847                                                                        
  1848           <property>
  1849            nameGiven
  1850           </property >
  1851                                                                        
  1852           <xpath>
  1853            cda:associ atedEntity /cda:assoc iatedPerso n/cda:name /cda:given
  1854           </xpath>
  1855                                                                        
  1856           <ifNotNull >
  1857                                                                                  
  1858            <action 
  1859             action="se tValue" 
  1860            />
  1861                                                                         
  1862           </ifNotNul l>
  1863                                                               
  1864          </mapping>
  1865                                                              
  1866          <mapping>
  1867                                                                        
  1868           <property>
  1869            nameFamily
  1870           </property >
  1871                                                                        
  1872           <xpath>
  1873            cda:associ atedEntity /cda:assoc iatedPerso n/cda:name /cda:famil y
  1874           </xpath>
  1875                                                                        
  1876           <ifNotNull >
  1877                                                                                  
  1878            <action 
  1879             action="se tValue" 
  1880            />
  1881                                                                         
  1882           </ifNotNul l>
  1883                                                               
  1884          </mapping>
  1885                                                              
  1886          <mapping>
  1887                                                                        
  1888           <property 
  1889            optional=" true"
  1890           >
  1891            nameSuffix
  1892           </property >
  1893                                                                        
  1894           <xpath>
  1895            cda:associ atedEntity /cda:assoc iatedPerso n/cda:name /cda:suffi x
  1896           </xpath>
  1897                                                                        
  1898           <ifNotNull >
  1899                                                                                  
  1900            <action 
  1901             action="se tValue" 
  1902            />
  1903                                                                         
  1904           </ifNotNul l>
  1905                                                                        
  1906           <ifNull>
  1907                                                                                  
  1908            <action 
  1909             action="re move" 
  1910            />
  1911                                                                         
  1912           </ifNull>
  1913                                                               
  1914          </mapping>
  1915                                                     
  1916         </mappings >
  1917                                            
  1918        </mapping>
  1919                                  
  1920       </mappings >
  1921                        
  1922      </mapping>
  1923                       
  1924      <!-- ALLER GY/REACTIO N NARRRITI VE -->
  1925                       
  1926      <mapping>
  1927                                 
  1928       <property 
  1929        optional=" true" 
  1930        collection ="true"
  1931       >
  1932        allergies
  1933       </property >
  1934                                 
  1935       <xpath>
  1936        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.6.1']
  1937       </xpath>
  1938                                 
  1939       <ifNotNull >
  1940                                           
  1941        <action 
  1942         action="ev aluateMapp ings"
  1943                                                   
  1944         relative=" cda:sectio n/cda:text /cda:table [@ID='alle rgyNarrati ve']/cda:t body/cda:t r" 
  1945        />
  1946                                  
  1947       </ifNotNul l>
  1948                                 
  1949       <mappings>
  1950                                           
  1951        <mapping 
  1952         equalsProp erty="asse ssment" 
  1953         equalsValu e="nka"
  1954        >
  1955                                                    
  1956         <property>
  1957          assessment
  1958         </property >
  1959                                                    
  1960         <xpath>
  1961          .
  1962         </xpath>                                                              
  1963                                                    
  1964         <ifNotNull >
  1965                                                              
  1966          <action 
  1967           relative=" cda:td[cda :content[@ ID='andAll ergy']]"
  1968                                                                       
  1969           action="re move" 
  1970          />
  1971                                                              
  1972          <action 
  1973           relative=" cda:td[cda :content[@ ID='andEve ntType']]"
  1974                                                                       
  1975           action="re move" 
  1976          />
  1977                                                              
  1978          <action 
  1979           relative=" cda:td[cda :content[@ ID='andSev erity']]"
  1980                                                                       
  1981           action="re move" 
  1982          />
  1983                                                              
  1984          <action 
  1985           relative=" cda:td[cda :content[@ ID='andSou rce']]"
  1986                                                                       
  1987           action="re move" 
  1988          />
  1989                                                              
  1990          <action 
  1991           relative=" cda:td"
  1992                                                                       
  1993           action="re move" 
  1994          />
  1995                                                              
  1996          <action 
  1997           relative=" cda:td" 
  1998           action="se tValue"
  1999          >
  2000           No Known A llergies
  2001          </action>
  2002                                                              
  2003          <action 
  2004           relative=" cda:td" 
  2005           action="se tAttribute
  2006           attribute= "colspan"
  2007          >
  2008           7
  2009          </action>
  2010         
  2011                                                     
  2012         </ifNotNul l>
  2013                                            
  2014        </mapping>
  2015       
  2016                                           
  2017        <mapping 
  2018         equalsProp erty="asse ssment" 
  2019         equalsValu e="not don e"
  2020        >
  2021                                                    
  2022         <property>
  2023          assessment
  2024         </property >
  2025                                                    
  2026         <xpath>
  2027          .
  2028         </xpath>
  2029                                                    
  2030         <ifNotNull >
  2031                                                              
  2032          <action 
  2033           relative=" cda:td[cda :content[@ ID='andAll ergy']]"
  2034                                                                       
  2035           action="re move" 
  2036          />
  2037                                                              
  2038          <action 
  2039           relative=" cda:td[cda :content[@ ID='andEve ntType']]"
  2040                                                                       
  2041           action="re move" 
  2042          />
  2043                                                              
  2044          <action 
  2045           relative=" cda:td[cda :content[@ ID='andSev erity']]"
  2046                                                                       
  2047           action="re move" 
  2048          />
  2049                                                              
  2050          <action 
  2051           relative=" cda:td[cda :content[@ ID='andSou rce']]"
  2052                                                                       
  2053           action="re move" 
  2054          />
  2055                                                              
  2056          <action 
  2057           relative=" cda:td"
  2058                                                                       
  2059           action="re move" 
  2060          />
  2061                                                               
  2062                                                              
  2063          <action 
  2064           relative=" cda:td" 
  2065           action="se tValue"
  2066          >
  2067           Assessment  Not Done
  2068          </action>
  2069                                                              
  2070          <action 
  2071           relative=" cda:td" 
  2072           action="se tAttribute
  2073           attribute= "colspan"
  2074          >
  2075           7
  2076          </action>   
  2077                                                     
  2078         </ifNotNul l>
  2079                                            
  2080        </mapping>
  2081       
  2082                                           
  2083        <mapping>
  2084                                                    
  2085         <property>
  2086          productTex tName
  2087         </property >
  2088                                                    
  2089         <xpath>
  2090          cda:td/cda :content[@ ID='andAll ergy']
  2091         </xpath>
  2092                                                    
  2093         <ifNotNull >
  2094                                                              
  2095          <action 
  2096           action="se tAttribute
  2097           attribute= "ID" 
  2098           indexed="t rue"
  2099          >
  2100           andAllergy
  2101          </action>
  2102                                                              
  2103          <action 
  2104           action="se tValue" 
  2105          />
  2106                                                     
  2107         </ifNotNul l>
  2108                                            
  2109        </mapping>
  2110       
  2111                                           
  2112        <mapping 
  2113         equalsProp erty="asse ssment" 
  2114         equalsValu e="nka"
  2115        >
  2116                                                    
  2117         <property>
  2118          assessment
  2119         </property >
  2120                                                    
  2121         <xpath>
  2122          cda:td/cda :content[@ ID='andCod edAllergyN ame']
  2123         </xpath>
  2124                                                    
  2125         <ifNotNull >
  2126                                                              
  2127          <action 
  2128           action="se tValue"
  2129          >
  2130           No Known A llergies
  2131          </action>
  2132                                                     
  2133         </ifNotNul l>
  2134                                            
  2135        </mapping>
  2136       
  2137                                           
  2138        <mapping 
  2139         equalsProp erty="asse ssment" 
  2140         equalsValu e="not don e"
  2141        >
  2142                                                    
  2143         <property>
  2144          assessment
  2145         </property >
  2146                                                    
  2147         <xpath>
  2148          cda:td/cda :content[@ ID='andCod edAllergyN ame']
  2149         </xpath>
  2150                                                    
  2151         <ifNotNull >
  2152                                                              
  2153          <action 
  2154           action="se tValue"
  2155          >
  2156           Assessment  Not Done
  2157          </action>
  2158                                                     
  2159         </ifNotNul l>
  2160                                            
  2161        </mapping>
  2162       
  2163       
  2164                                           
  2165        <mapping>
  2166                                                    
  2167         <property 
  2168          optional=" true"
  2169         >
  2170          prettyStar tDate|pret tyEnteredD ate
  2171         </property >
  2172                                                    
  2173         <xpath>
  2174          cda:td[2]
  2175         </xpath>
  2176                                                    
  2177         <ifNotNull >
  2178                                                              
  2179          <action 
  2180           action="se tValue" 
  2181          />
  2182                                                     
  2183         </ifNotNul l>
  2184                                            
  2185        </mapping>
  2186                                           
  2187        <mapping>
  2188                                                    
  2189         <property>
  2190          adverseTyp eCode
  2191         </property >
  2192                                                    
  2193         <xpath>
  2194          cda:td/cda :content[@ ID='andEve ntType']
  2195         </xpath>
  2196                                                    
  2197         <ifNotNull >
  2198                                                              
  2199          <action 
  2200           action="se tAttribute
  2201           attribute= "ID" 
  2202           indexed="t rue"
  2203          >
  2204           andEventTy pe
  2205          </action>
  2206                                                              
  2207          <action 
  2208           action="se tValue" 
  2209           property=" adverseTyp eDisplay" 
  2210          />
  2211                                                     
  2212         </ifNotNul l>
  2213                                                    
  2214         <ifNull>
  2215                                                              
  2216          <action 
  2217           action="se tAttribute
  2218           attribute= "ID" 
  2219           indexed="t rue"
  2220          >
  2221           andEventTy pe
  2222          </action>
  2223                                                              
  2224          <action 
  2225           action="se tValue" 
  2226           property=" type.name"  
  2227          />
  2228                                                     
  2229         </ifNull>
  2230                                            
  2231        </mapping>
  2232                                           
  2233        <mapping>
  2234                                                    
  2235         <property 
  2236          optional=" true"
  2237         >
  2238          facilityNa me
  2239         </property >
  2240                                                    
  2241         <xpath>
  2242          cda:td/cda :content[@ ID='andSou rce']
  2243         </xpath>
  2244                                                    
  2245         <ifNotNull >
  2246                                                              
  2247          <action 
  2248           action="se tAttribute
  2249           attribute= "ID" 
  2250           indexed="t rue"
  2251          >
  2252           andSource
  2253          </action>
  2254                                                              
  2255          <action 
  2256           action="se tValue" 
  2257          />
  2258                                                     
  2259         </ifNotNul l>
  2260                                            
  2261        </mapping>
  2262                                           
  2263        <mapping>
  2264                                                    
  2265         <property 
  2266          optional=" true"
  2267         >
  2268          reactions
  2269         </property >
  2270                                                    
  2271         <xpath>
  2272          cda:td/cda :list/cda: item[cda:c ontent/@ID ='andReact ion']
  2273         </xpath>
  2274                                                    
  2275         <ifNotNull >
  2276          <!--                                                <a ction acti on="setAtt ribute" re lative="cd a:content"
  2277                                                                       attr ibute="ID"  indexed=" true">andR eaction</a ction> -->
  2278                                                              
  2279          <action 
  2280           action="ev aluateMapp ings" 
  2281          />
  2282                                                     
  2283         </ifNotNul l>
  2284                                                    
  2285         <ifNull>
  2286                                                              
  2287          <action 
  2288           action="se tAttribute
  2289           relative=" cda:conten t"
  2290                                                                       
  2291           attribute= "ID" 
  2292           indexed="t rue"
  2293          >
  2294           andReactio n
  2295          </action>
  2296                                                     
  2297         </ifNull>
  2298                                                    
  2299         <mappings>
  2300                                                              
  2301          <mapping>
  2302                                                                        
  2303           <property>
  2304            name
  2305           </property >
  2306                                                                        
  2307           <xpath>
  2308            cda:conten t
  2309           </xpath>
  2310                                                                        
  2311           <ifNotNull >
  2312                                                                         
  2313            <action 
  2314             action="se tAttribute "  
  2315                                                                         
  2316             attribute= "ID" 
  2317             indexed="t rue"
  2318            >
  2319             andReactio n
  2320            </action>
  2321            <!--                                                                  <actio n action=" appendAttr ibute" att ribute="ID " indexed= "true">of< /action> - ->
  2322                                                                                  
  2323            <action 
  2324             action="se tValue" 
  2325            />
  2326                                                                         
  2327           </ifNotNul l>
  2328                                                               
  2329          </mapping>
  2330                                                     
  2331         </mappings >
  2332                                            
  2333        </mapping>
  2334                                           
  2335        <mapping>
  2336                                                    
  2337         <property 
  2338          optional=" true"
  2339         >
  2340          severity
  2341         </property >
  2342                                                    
  2343         <xpath>
  2344          cda:td/cda :content[@ ID='andSev erity']
  2345         </xpath>
  2346                                                    
  2347         <ifNotNull >
  2348                                                              
  2349          <action 
  2350           action="se tAttribute
  2351           attribute= "ID" 
  2352           indexed="t rue"
  2353          >
  2354           andSeverit y
  2355          </action>
  2356                                                              
  2357          <action 
  2358           action="se tValue" 
  2359          />
  2360                                                     
  2361         </ifNotNul l>
  2362                                                    
  2363         <ifNull>
  2364                                                              
  2365          <action 
  2366           action="se tAttribute
  2367           attribute= "ID" 
  2368           indexed="t rue"
  2369          >
  2370           andSeverit y
  2371          </action>
  2372                                                     
  2373         </ifNull>
  2374                                            
  2375        </mapping>
  2376                                  
  2377       </mappings >
  2378                        
  2379      </mapping>
  2380                       
  2381      <!-- ALLER GY/DRUG SE CTION -->
  2382                       
  2383      <mapping>
  2384                                 
  2385       <property 
  2386        collection ="true" 
  2387        merge="tru e"
  2388       >
  2389        allergies
  2390       </property >
  2391                                 
  2392       <xpath>
  2393        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.6.1']
  2394       </xpath>
  2395                                 
  2396       <ifNotNull >
  2397                                           
  2398        <action 
  2399         action="ev aluateMapp ings" 
  2400         relative=" cda:sectio n/cda:entr y" 
  2401        />
  2402                                  
  2403       </ifNotNul l>
  2404                                 
  2405       <ifNull>
  2406                                           
  2407        <action 
  2408         action="re move" 
  2409         relative=" cda:sectio n/cda:entr y"
  2410        >
  2411         NI
  2412        </action>
  2413                                           
  2414        <action 
  2415         action="se tValue" 
  2416         relative=" cda:sectio n/cda:text "
  2417        >
  2418         No Data Pr ovided for  This Sect ion
  2419        </action>
  2420                                           
  2421        <action 
  2422         action="se tAttribute
  2423         relative=" cda:sectio n"
  2424                                                   
  2425         attribute= "nullFlavo r"
  2426        >
  2427         NI
  2428        </action>
  2429                                  
  2430       </ifNull>
  2431                                 
  2432       <mappings>
  2433                                           
  2434        <!-- <mapp ing equals Property=" assessment " equalsVa lue="nka">  <property >assessmen t</propert y> 
  2435                                                    <xpath>.</ xpath> <if NotNull> < action act ion="remov e" relativ e="cda:act [cda:entry Relationsh ip/cda:obs ervation/@ negationIn d='false']
  2436                                                    /> </ifNot Null> </ma pping> <ma pping> <pr operty>ass essment</p roperty> < xpath>.</x path> 
  2437                                                    <ifNull> < action act ion="remov e" relativ e="cda:act [cda:entry Relationsh ip/cda:obs ervation/@ negationIn d='true']"  
  2438                                                    /> </ifNul l> </mappi ng> <mappi ng equalsP roperty="a ssessment"  equalsVal ue="not 
  2439                                                    done"> <pr operty>ass essment</p roperty> < xpath>.</x path> <ifN otNull> <a ction 
  2440                                                    action="re move" /> < /ifNotNull > </mappin g> -->
  2441                                           
  2442        <!-- INFOR MATION SOU RCE FOR AL LERGY/DRUG , Optional  -->
  2443                                           
  2444        <mapping>
  2445                                                    
  2446         <!-- INFOR MATION SOU RCE FACILI TY OID (VA  OID + TRE ATING FACI LITY NBR)  -->
  2447                                                    
  2448         <property>
  2449          facilityNu mber
  2450         </property >
  2451                                                    
  2452         <xpath>
  2453          cda:act/cd a:author/c da:assigne dAuthor/cd a:represen tedOrganiz ation/cda: id
  2454         </xpath>
  2455                                                    
  2456         <ifNotNull >
  2457                                                              
  2458          <action 
  2459           action="se tAttribute
  2460           attribute= "extension
  2461          />
  2462                                                     
  2463         </ifNotNul l>
  2464                                            
  2465        </mapping>
  2466                                           
  2467        <mapping>
  2468                                                    
  2469         <!-- INFOR MATION SOU RCE FACILI TY NAME -- >
  2470                                                    
  2471         <property>
  2472          facilityNa me
  2473         </property >
  2474                                                    
  2475         <xpath>
  2476          cda:act/cd a:author/c da:assigne dAuthor/cd a:represen tedOrganiz ation/cda: name
  2477         </xpath>
  2478                                                    
  2479         <ifNotNull >
  2480                                                              
  2481          <action 
  2482           action="se tValue" 
  2483          />
  2484                                                     
  2485         </ifNotNul l>
  2486                                            
  2487        </mapping>
  2488       
  2489                                           
  2490        <mapping 
  2491         equalsProp erty="asse ssment" 
  2492         equalsValu e="nka"
  2493        >
  2494                                                    
  2495         <property>
  2496          assessment
  2497         </property >
  2498                                                    
  2499         <xpath>
  2500          .
  2501         </xpath>
  2502                                                    
  2503         <ifNotNull >
  2504                                                              
  2505          <action 
  2506           action="se tAttribute "
  2507                                                                       
  2508           relative=" cda:act/cd a:entryRel ationship/ cda:observ ation"
  2509                                                                       
  2510           attribute= "negationI nd"
  2511          >
  2512           true
  2513          </action>
  2514                                                     
  2515         </ifNotNul l>
  2516                                            
  2517        </mapping>
  2518       
  2519                                           
  2520        <mapping 
  2521         equalsProp erty="asse ssment" 
  2522         equalsValu e="nka"
  2523        >
  2524                                                    
  2525         <property>
  2526          assessment
  2527         </property >
  2528                                                    
  2529         <xpath>
  2530          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: value
  2531         </xpath>
  2532                                                    
  2533         <ifNotNull >
  2534                                                              
  2535          <action 
  2536           action="se tAttribute
  2537           attribute= "code"
  2538          >
  2539           419199007
  2540          </action>
  2541                                                              
  2542          <action 
  2543           action="se tAttribute
  2544           attribute= "displayNa me"
  2545          >
  2546           Allergy to  substance  (disorder )
  2547          </action>
  2548                                                              
  2549          <action 
  2550           action="re move" 
  2551           relative=" cda:origin alText" 
  2552          />
  2553                                                              
  2554          <action 
  2555           action="re move" 
  2556           relative=" ../cda:par ticipant" 
  2557          />
  2558                                                     
  2559         </ifNotNul l>
  2560                                            
  2561        </mapping>
  2562       
  2563                                           
  2564        <mapping 
  2565         equalsProp erty="asse ssment" 
  2566         equalsValu e="not don e"
  2567        >
  2568                                                    
  2569         <property>
  2570          assessment
  2571         </property >
  2572                                                    
  2573         <xpath>
  2574          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: value
  2575         </xpath>
  2576                                                    
  2577         <ifNotNull >
  2578                                                              
  2579          <action 
  2580           action="se tAttribute
  2581           attribute= "code"
  2582          >
  2583           419199007
  2584          </action>
  2585                                                              
  2586          <action 
  2587           action="se tAttribute
  2588           attribute= "displayNa me"
  2589          >
  2590           Allergy to  substance  (disorder )
  2591          </action>
  2592                                                              
  2593          <action 
  2594           action="re move" 
  2595           relative=" cda:origin alText" 
  2596          />
  2597                                                              
  2598          <action 
  2599           action="re move" 
  2600           relative=" ../cda:par ticipant" 
  2601          />
  2602                                                     
  2603         </ifNotNul l>
  2604                                            
  2605        </mapping>
  2606       
  2607                                           
  2608        <mapping 
  2609         equalsProp erty="asse ssment" 
  2610         equalsValu e="not don e"
  2611        >
  2612                                                    
  2613         <property>
  2614          assessment
  2615         </property >
  2616                                                    
  2617         <xpath>
  2618          .
  2619         </xpath>
  2620                                                    
  2621         <ifNotNull >
  2622                                                              
  2623          <action 
  2624           action="se tAttribute "
  2625                                                                       
  2626           relative=" cda:act/cd a:entryRel ationship/ cda:observ ation"
  2627                                                                       
  2628           attribute= "nullFlavo r"
  2629          >
  2630           NASK
  2631          </action>
  2632                                                     
  2633         </ifNotNul l>
  2634                                            
  2635        </mapping>
  2636       
  2637       
  2638                                           
  2639        <mapping 
  2640         equalsProp erty="asse ssment" 
  2641        >
  2642                                                    
  2643         <property>
  2644          adverseTyp eCode
  2645         </property >
  2646                                                    
  2647         <xpath>
  2648          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: value
  2649         </xpath>
  2650                                                    
  2651         <ifNotNull >
  2652                                                              
  2653          <action 
  2654           action="se tAttribute
  2655           attribute= "code" 
  2656          />
  2657                                                              
  2658          <action 
  2659           action="se tAttribute
  2660           attribute= "displayNa me"
  2661                                                                       
  2662           property=" adverseTyp eDisplay" 
  2663          />
  2664                                                     
  2665         </ifNotNul l>
  2666                                                    
  2667         <ifNull>
  2668                                                     
  2669          <!--    <a ction acti on="remove Attributes " />  -->
  2670                                                              
  2671          <action 
  2672           action="se tAttribute
  2673           attribute= "nullFlavo r"
  2674          >
  2675           UNK
  2676          </action>
  2677                                                     
  2678         </ifNull>
  2679                                            
  2680        </mapping>
  2681                                           
  2682        <mapping>
  2683                                                    
  2684         <property>
  2685          type.name
  2686         </property >
  2687                                                    
  2688         <xpath>
  2689          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: value/cda: originalTe xt
  2690         </xpath>
  2691                                                    
  2692         <ifNotNull >
  2693                                                              
  2694          <action 
  2695           action="se tValue" 
  2696          />
  2697                                                     
  2698         </ifNotNul l>
  2699                                            
  2700        </mapping>
  2701                                           
  2702        <mapping>
  2703                                                    
  2704         <property>
  2705          startDate| enteredVal ue
  2706         </property >
  2707                                                    
  2708         <xpath>
  2709          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: effectiveT ime/cda:lo w
  2710         </xpath>
  2711                                                    
  2712         <ifNotNull >
  2713                                                              
  2714          <action 
  2715           action="se tAttribute
  2716           attribute= "value" 
  2717          />
  2718                                                     
  2719         </ifNotNul l>
  2720                                            
  2721        </mapping>
  2722                                           
  2723        <mapping>
  2724                                                    
  2725         <property>
  2726          rxNormProd uctCode
  2727         </property >
  2728                                                    
  2729         <xpath>
  2730          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: participan t/cda:part icipantRol e/cda:play ingEntity/ cda:code
  2731                                         
  2732         </xpath>
  2733                                                    
  2734         <ifNotNull >
  2735                                                              
  2736          <action 
  2737           action="se tAttribute
  2738           attribute= "code"
  2739          >
  2740          </action>
  2741                                                              
  2742          <action 
  2743           action="se tAttribute
  2744           attribute= "displayNa me" 
  2745           property=" rxNormProd uctCodeDis playName"
  2746          >
  2747          </action>        
  2748                                                              
  2749          <action 
  2750           action="ap pendAttrib ute" 
  2751           notEqualsP roperty="r xNormSABTe xt" 
  2752           attribute= "displayNa me"
  2753          >
  2754            (
  2755          </action>        
  2756                                                              
  2757          <action 
  2758           action="ap pendAttrib ute" 
  2759           notEqualsP roperty="r xNormSABTe xt" 
  2760           attribute= "displayNa me" 
  2761           property=" rxNormSABT ext"
  2762          >
  2763          </action>
  2764                                                              
  2765          <action 
  2766           action="ap pendAttrib ute" 
  2767           notEqualsP roperty="r xNormSABTe xt" 
  2768           attribute= "displayNa me"
  2769          >
  2770           )
  2771          </action>                                                                                       
  2772                                                     
  2773          <!--    <a ction acti on="append Attribute"  attribute ="displayN ame" > (RX NORM)</act ion> -->                                                              
  2774                                                              
  2775          <action 
  2776           action="se tAttribute
  2777           attribute= "code" 
  2778           relative=" cda:transl ation" 
  2779           property=" vuid"
  2780          >
  2781          </action>
  2782                                                     
  2783          <action 
  2784           action="se tAttribute
  2785           attribute= "displayNa me" 
  2786           relative=" cda:transl ation" 
  2787           property=" productTex tName"
  2788          >
  2789          </action>
  2790                                    
  2791                                                              
  2792                                                              
  2793                                                     
  2794         </ifNotNul l>
  2795                                                    
  2796         <ifNull>
  2797                                                              
  2798          <action 
  2799           action="se tAttribute
  2800           attribute= "nullFlavo r"
  2801          >
  2802           UNK
  2803          </action>
  2804                                                              
  2805          <action 
  2806           action="re move" 
  2807           relative=" cda:transl ation" 
  2808          >
  2809          </action>
  2810                                                     
  2811         </ifNull>
  2812                                            
  2813        </mapping>
  2814                                           
  2815        <mapping>
  2816                                                    
  2817         <property>
  2818          productTex tNameCoded
  2819         </property >
  2820                                                    
  2821         <xpath>
  2822          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: participan t/cda:part icipantRol e/cda:play ingEntity/ cda:code/c da:origina lText/cda: reference
  2823               
  2824         </xpath>
  2825                                                    
  2826         <ifNotNull >
  2827                                                              
  2828          <action 
  2829           action="se tAttribute
  2830           attribute= "value" 
  2831           indexed="t rue"
  2832          >
  2833           #andAllerg y
  2834          </action>
  2835                                                     
  2836         </ifNotNul l>
  2837                                                    
  2838         <ifNull>
  2839                                                              
  2840          <action 
  2841           action="se tAttribute
  2842           attribute= "value" 
  2843           indexed="t rue"
  2844          >
  2845           #andAllerg y
  2846          </action>
  2847                                                     
  2848         </ifNull>        
  2849                                            
  2850        </mapping>
  2851                                           
  2852        <mapping>
  2853                                                    
  2854         <property>
  2855          productTex tName
  2856         </property >
  2857                                                    
  2858         <xpath>
  2859          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: participan t/cda:part icipantRol e/cda:play ingEntity/ cda:name
  2860         </xpath>
  2861                                                    
  2862         <ifNotNull >
  2863                                                              
  2864          <action 
  2865           action="se tValue" 
  2866          />
  2867                                                     
  2868         </ifNotNul l>
  2869                                            
  2870        </mapping>
  2871                                           
  2872        <mapping>
  2873                                                    
  2874         <property 
  2875          collection ="true"
  2876         >
  2877          reactions
  2878         </property >
  2879                                                    
  2880         <xpath>
  2881          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: entryRelat ionship[@t ypeCode='M FST']
  2882         </xpath>
  2883                                                    
  2884         <ifNotNull >
  2885                                                              
  2886          <action 
  2887           action="ev aluateMapp ings" 
  2888          />
  2889                                                     
  2890         </ifNotNul l>
  2891                                                    
  2892         <ifNull>
  2893                                                              
  2894          <action 
  2895           action="re move" 
  2896          />
  2897                                                     
  2898         </ifNull>
  2899                                                    
  2900         <mappings>
  2901                                                              
  2902          <mapping>
  2903                                                                        
  2904           <property>
  2905            name
  2906           </property >
  2907                                                                        
  2908           <xpath>
  2909            .
  2910           </xpath>
  2911                                                                        
  2912           <ifNotNull >
  2913                                                                                  
  2914            <action 
  2915             action="se tAttribute "
  2916                                                                                           
  2917             relative=" cda:observ ation/cda: value/cda: originalTe xt/cda:ref erence"
  2918                                                                                           
  2919             attribute= "value" 
  2920             indexed="t rue" 
  2921            >
  2922             #andReacti on
  2923            </action>
  2924                                                                         
  2925           </ifNotNul l>
  2926          
  2927                                                               
  2928          </mapping>
  2929                                                              
  2930                                                              
  2931          <mapping>
  2932                                                                        
  2933           <property>
  2934            snomedReac tion
  2935           </property >
  2936                                                                        
  2937           <xpath>
  2938            .
  2939           </xpath>
  2940                                                                        
  2941           <ifNotNull >
  2942                                                                                  
  2943            <action 
  2944             action="se tAttribute "
  2945                                                                                           
  2946             relative=" cda:observ ation/cda: value"
  2947                                                                                           
  2948             attribute= "code" 
  2949            />
  2950                                                                                           
  2951            <action 
  2952             action="se tAttribute "
  2953                                                                                           
  2954             relative=" cda:observ ation/cda: value"
  2955                                                                                           
  2956             attribute= "displayNa me" 
  2957             property=" snomedReac tionDispla yName" 
  2958            />
  2959                                                                                           
  2960                                                                                  
  2961            <action 
  2962             action="se tAttribute
  2963             relative=" cda:observ ation/cda: value/cda: translatio n"
  2964                                                                                           
  2965             attribute= "code" 
  2966             property=" id" 
  2967            />
  2968                                                                                  
  2969            <action 
  2970             action="se tAttribute
  2971             relative=" cda:observ ation/cda: value/cda: translatio n"
  2972                                                                                           
  2973             attribute= "displayNa me" 
  2974             property=" name" 
  2975            />      
  2976                                                                                                   
  2977                                                                         
  2978           </ifNotNul l>
  2979                                                                        
  2980           <ifNull>
  2981                                                                                  
  2982            <action 
  2983             action="se tAttribute "
  2984                                                                                           
  2985             relative=" cda:observ ation/cda: value"
  2986                                                                                           
  2987             attribute= "nullFlavo r" 
  2988            >
  2989             UNK
  2990            </action>
  2991                                                                                  
  2992            <action 
  2993             action="re move" 
  2994             relative=" cda:observ ation/cda: value/cda: translatio n"
  2995                                                                                            />              
  2996                                                                         
  2997           </ifNull>
  2998          
  2999                                                               
  3000          </mapping>
  3001                                                              
  3002                                                              
  3003                                                     
  3004         </mappings >
  3005                                            
  3006        </mapping>
  3007       
  3008       
  3009       
  3010       
  3011                                  
  3012        <mapping 
  3013         equalsProp erty="seve rity" 
  3014         equalsValu e="SEVERE"
  3015        >
  3016                                            
  3017         <property>
  3018          severity
  3019         </property >
  3020                                            
  3021         <xpath>
  3022          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: entryRelat ionship[@t ypeCode='S UBJ']
  3023         </xpath>
  3024                                            
  3025         <ifNotNull >
  3026                                                     
  3027          <action 
  3028           action="se tAttribute
  3029           relative=" cda:observ ation/cda: value"
  3030                                                              
  3031           attribute= "code"
  3032          >
  3033           24484000
  3034          </action>
  3035                                                     
  3036          <action 
  3037           action="se tAttribute
  3038           relative=" cda:observ ation/cda: value"
  3039                                                              
  3040           attribute= "displayNa me"
  3041          >
  3042           Severe (qu alifer val ue)
  3043          </action>        
  3044                                             
  3045         </ifNotNul l>
  3046                                   
  3047        </mapping>
  3048                         
  3049                                  
  3050        <mapping 
  3051         equalsProp erty="seve rity" 
  3052         equalsValu e="MODERAT E"
  3053        >
  3054                                            
  3055         <property>
  3056          severity
  3057         </property >
  3058                                            
  3059         <xpath>
  3060          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: entryRelat ionship[@t ypeCode='S UBJ']
  3061         </xpath>
  3062                                            
  3063         <ifNotNull >
  3064                                                     
  3065          <action 
  3066           action="se tAttribute
  3067           relative=" cda:observ ation/cda: value"
  3068                                                              
  3069           attribute= "code"
  3070          >
  3071           6736007
  3072          </action>
  3073                                                     
  3074          <action 
  3075           action="se tAttribute
  3076           relative=" cda:observ ation/cda: value"
  3077                                                              
  3078           attribute= "displayNa me"
  3079          >
  3080           Moderate ( qualifer v alue)
  3081          </action>        
  3082                                             
  3083         </ifNotNul l>
  3084                                   
  3085        </mapping>
  3086                                  
  3087        <mapping 
  3088         equalsProp erty="seve rity" 
  3089         equalsValu e="MILD"
  3090        >
  3091                                            
  3092         <property>
  3093          severity
  3094         </property >
  3095                                            
  3096         <xpath>
  3097          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: entryRelat ionship[@t ypeCode='S UBJ']
  3098         </xpath>
  3099                                            
  3100         <ifNotNull >
  3101                                                     
  3102          <action 
  3103           action="se tAttribute
  3104           relative=" cda:observ ation/cda: value"
  3105                                                              
  3106           attribute= "code"
  3107          >
  3108           255604002
  3109          </action>
  3110                                                     
  3111          <action 
  3112           action="se tAttribute
  3113           relative=" cda:observ ation/cda: value"
  3114                                                              
  3115           attribute= "displayNa me"
  3116          >
  3117           Mild (qual ifer value )
  3118          </action>                 
  3119                                             
  3120         </ifNotNul l>
  3121                                   
  3122        </mapping>
  3123                         
  3124                                  
  3125        <mapping>
  3126                                            
  3127         <property>
  3128          severity
  3129         </property >
  3130                                            
  3131         <xpath>
  3132          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: entryRelat ionship[@t ypeCode='S UBJ']
  3133         </xpath>
  3134                                            
  3135         <ifNotNull >
  3136                                                     
  3137          <action 
  3138           action="se tAttribute "
  3139                                                              
  3140           relative=" cda:observ ation/cda: value/cda: originalTe xt/cda:ref erence"
  3141                                                              
  3142           attribute= "value" 
  3143           indexed="t rue"
  3144          >
  3145           #andSeveri ty
  3146          </action>
  3147                                             
  3148         </ifNotNul l>
  3149                                            
  3150         <ifNull>
  3151                                                     
  3152          <action 
  3153           action="re move" 
  3154          />
  3155                                             
  3156         </ifNull>
  3157                                   
  3158        </mapping>
  3159                                           
  3160                                           
  3161                                  
  3162       </mappings >
  3163                        
  3164      </mapping>
  3165                       
  3166      <!-- VITAL S NARRITIV E -->
  3167                       
  3168      <mapping>
  3169                                 
  3170       <property 
  3171        collection ="true" 
  3172        optional=" true"
  3173       >
  3174        vitals
  3175       </property >
  3176                                 
  3177       <xpath>
  3178        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.4.1']
  3179       </xpath>
  3180                                 
  3181       <ifNotNull >
  3182                                           
  3183        <action 
  3184         action="ev aluateMapp ings"
  3185                                                   
  3186         relative=" cda:sectio n/cda:text /cda:table [@ID='vita lNarrative ']/cda:tbo dy/cda:tr"  
  3187        />
  3188                                  
  3189       </ifNotNul l>
  3190                                 
  3191       <mappings>
  3192                                           
  3193        <mapping>
  3194                                                    
  3195         <property>
  3196          prettyTake nTime
  3197         </property >
  3198                                                    
  3199         <xpath>
  3200          cda:td[1]
  3201         </xpath>
  3202                                                    
  3203         <ifNotNull >
  3204                                                              
  3205          <action 
  3206           action="se tValue" 
  3207          />
  3208                                                     
  3209         </ifNotNul l>
  3210                                            
  3211        </mapping>
  3212                                           
  3213        <mapping>
  3214                                                    
  3215         <property>
  3216          facilityNa me
  3217         </property >
  3218                                                    
  3219         <xpath>
  3220          cda:td/cda :content[@ ID='vndSou rce']
  3221         </xpath>
  3222                                                    
  3223         <ifNotNull >
  3224                                                              
  3225          <action 
  3226           action="se tAttribute
  3227           attribute= "ID" 
  3228           indexed="t rue"
  3229          >
  3230           vndSource
  3231          </action>
  3232                                                              
  3233          <action 
  3234           action="se tValue" 
  3235          />
  3236                                                     
  3237         </ifNotNul l>
  3238                                            
  3239        </mapping>
  3240                                           
  3241        <mapping >
  3242                                                    
  3243         <property 
  3244          collection ="true" 
  3245         >
  3246          measuremen ts
  3247         </property >
  3248                                                    
  3249         <xpath>
  3250          .
  3251         </xpath>
  3252                                                    
  3253         <ifNotNull >
  3254                                                              
  3255          <action 
  3256           action="ev aluateMapp ingsToPare nt"
  3257          />
  3258                                                     
  3259         </ifNotNul l>
  3260                                                    
  3261         <mappings>
  3262                                                              
  3263          <!-- Tempe rature -->
  3264                                                              
  3265          <mapping 
  3266           equalsProp erty="vuid
  3267           equalsValu e="4500638 "
  3268          >
  3269                                                                        
  3270           <property>
  3271            value
  3272           </property >
  3273                                                                        
  3274           <xpath>
  3275            cda:td[2]
  3276           </xpath>
  3277                                                                        
  3278           <ifNotNull >
  3279                                                                                  
  3280            <action 
  3281             action="ap pendValue"  
  3282            />
  3283                                                                                  
  3284            <action 
  3285             action="ap pendValue"  
  3286            >
  3287              
  3288            </action>
  3289                                                                                  
  3290            <action 
  3291             action="ap pendValue"  
  3292             property=" units" 
  3293            />
  3294                                                                         
  3295           </ifNotNul l>
  3296                                                               
  3297          </mapping>
  3298                                                              
  3299          <!-- Pulse  -->
  3300                                                              
  3301          <mapping 
  3302           equalsProp erty="vuid
  3303           equalsValu e="4500636 "
  3304          >
  3305                                                                        
  3306           <property>
  3307            value
  3308           </property >
  3309                                                                        
  3310           <xpath>
  3311            cda:td[3]
  3312           </xpath>
  3313                                                                        
  3314           <ifNotNull >
  3315                                                                                  
  3316            <action 
  3317             action="ap pendValue"  
  3318            />
  3319                                                                                  
  3320            <action 
  3321             action="ap pendValue"  
  3322            >
  3323              
  3324            </action>
  3325                                                                                  
  3326            <action 
  3327             action="ap pendValue"  
  3328             property=" units" 
  3329            />
  3330                                                                         
  3331           </ifNotNul l>
  3332                                                               
  3333          </mapping>
  3334                                                              
  3335          <!-- Blood  Pressure  Display fr om origina l  -->
  3336                                                              
  3337          <mapping 
  3338           equalsProp erty="vuid
  3339           equalsValu e="4500634 ~1"
  3340          >
  3341                                                                        
  3342           <property>
  3343            rawValue
  3344           </property >
  3345                                                                        
  3346           <xpath>
  3347            cda:td[4]
  3348           </xpath>
  3349                                                                        
  3350           <ifNotNull >
  3351                                                                                  
  3352            <action 
  3353             action="ap pendValue"  
  3354            />
  3355                                                                                  
  3356            <action 
  3357             action="ap pendValue"  
  3358            >
  3359              
  3360            </action>
  3361                                                                                  
  3362            <action 
  3363             action="ap pendValue"  
  3364             property=" units" 
  3365            />
  3366                                                                         
  3367           </ifNotNul l>
  3368                                                               
  3369          </mapping>
  3370                                                              
  3371          <!-- Respi ratory Rat e -->
  3372                                                              
  3373          <mapping 
  3374           equalsProp erty="vuid
  3375           equalsValu e="4688725 "
  3376          >
  3377                                                                        
  3378           <property>
  3379            value
  3380           </property >
  3381                                                                        
  3382           <xpath>
  3383            cda:td[5]
  3384           </xpath>
  3385                                                                        
  3386           <ifNotNull >
  3387                                                                                  
  3388            <action 
  3389             action="ap pendValue"  
  3390            />
  3391                                                                                  
  3392            <action 
  3393             action="ap pendValue"  
  3394            >
  3395              
  3396            </action>
  3397                                                                                  
  3398            <action 
  3399             action="ap pendValue"  
  3400             property=" units" 
  3401            />
  3402                                                                         
  3403           </ifNotNul l>
  3404                                                               
  3405          </mapping>
  3406                                                              
  3407          <!-- SP02  -->
  3408                                                              
  3409          <mapping 
  3410           equalsProp erty="vuid
  3411           equalsValu e="4500637 "
  3412          >
  3413                                                                        
  3414           <property>
  3415            value
  3416           </property >
  3417                                                                        
  3418           <xpath>
  3419            cda:td[6]
  3420           </xpath>
  3421                                                                        
  3422           <ifNotNull >
  3423                                                                                  
  3424            <action 
  3425             action="ap pendValue"  
  3426            />
  3427                                                                                  
  3428            <action 
  3429             action="ap pendValue"  
  3430            >
  3431              
  3432            </action>
  3433                                                                                  
  3434            <action 
  3435             action="ap pendValue"  
  3436             property=" units" 
  3437            />
  3438                                                                         
  3439           </ifNotNul l>
  3440                                                               
  3441          </mapping>
  3442                                                              
  3443          <!-- Pain  -->
  3444                                                              
  3445          <mapping 
  3446           equalsProp erty="vuid
  3447           equalsValu e="4500635 "
  3448          >
  3449                                                                        
  3450           <property>
  3451            value
  3452           </property >
  3453                                                                        
  3454           <xpath>
  3455            cda:td[7]
  3456           </xpath>
  3457                                                                        
  3458           <ifNotNull >
  3459                                                                                  
  3460            <action 
  3461             action="ap pendValue"  
  3462            />
  3463                                                                                  
  3464            <action 
  3465             action="ap pendValue"  
  3466            >
  3467              
  3468            </action>
  3469                                                                                  
  3470            <action 
  3471             action="ap pendValue"  
  3472             property=" units" 
  3473            />
  3474                                                                         
  3475           </ifNotNul l>
  3476                                                               
  3477          </mapping>
  3478                                                              
  3479          <!-- Heigh t -->
  3480                                                              
  3481          <mapping 
  3482           equalsProp erty="vuid
  3483           equalsValu e="4688724 "
  3484          >
  3485                                                                        
  3486           <property>
  3487            value
  3488           </property >
  3489                                                                        
  3490           <xpath>
  3491            cda:td[8]
  3492           </xpath>
  3493                                                                        
  3494           <ifNotNull >
  3495                                                                                  
  3496            <action 
  3497             action="ap pendValue"  
  3498            />
  3499                                                                                  
  3500            <action 
  3501             action="ap pendValue"  
  3502            >
  3503              
  3504            </action>
  3505                                                                                  
  3506            <action 
  3507             action="ap pendValue"  
  3508             property=" units" 
  3509            />
  3510                                                                         
  3511           </ifNotNul l>
  3512                                                               
  3513          </mapping>
  3514                                                              
  3515          <!-- Weigh t -->
  3516                                                              
  3517          <mapping 
  3518           equalsProp erty="vuid
  3519           equalsValu e="4500639 "
  3520          >
  3521                                                                        
  3522           <property>
  3523            value
  3524           </property >
  3525                                                                        
  3526           <xpath>
  3527            cda:td[9]
  3528           </xpath>
  3529                                                                        
  3530           <ifNotNull >
  3531                                                                                  
  3532            <action 
  3533             action="ap pendValue"  
  3534            />
  3535                                                                                  
  3536            <action 
  3537             action="ap pendValue"  
  3538            >
  3539              
  3540            </action>
  3541                                                                                  
  3542            <action 
  3543             action="ap pendValue"  
  3544             property=" units" 
  3545            />
  3546                                                                         
  3547           </ifNotNul l>
  3548                                                               
  3549          </mapping>
  3550                                                              
  3551          <!-- BMI - ->
  3552                                                              
  3553          <mapping 
  3554           equalsProp erty="vuid
  3555           equalsValu e="4500639 "
  3556          >
  3557                                                                        
  3558           <property>
  3559            bmi
  3560           </property >
  3561                                                                        
  3562           <xpath>
  3563            cda:td[10]
  3564           </xpath>
  3565                                                                        
  3566           <ifNotNull >
  3567                                                                                  
  3568            <action 
  3569             action="ap pendValue"  
  3570            />
  3571                                                                         
  3572           </ifNotNul l>
  3573                                                               
  3574          </mapping>
  3575                                                     
  3576         </mappings >
  3577                                            
  3578        </mapping>
  3579                                  
  3580       </mappings >
  3581                        
  3582      </mapping>
  3583                       
  3584      <mapping>
  3585                                 
  3586       <property 
  3587        collection ="true" 
  3588        optional=" true"
  3589       >
  3590        vitals
  3591       </property >
  3592                                 
  3593       <xpath>
  3594        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.4.1']
  3595       </xpath>
  3596                                 
  3597       <ifNotNull >
  3598                                           
  3599        <action 
  3600         action="ev aluateMapp ings" 
  3601         relative=" cda:sectio n/cda:entr y[@typeCod e='DRIV']"  
  3602        />
  3603                                  
  3604       </ifNotNul l>
  3605                                 
  3606       <ifNull>
  3607                                           
  3608        <!-- <acti on action= "remove">N I</action>  -->
  3609                                           
  3610        <!--  Set  Vitals Sec tion to NI  so the do cument pas ses the MU 2 online c ertificati on; TPS -- >
  3611                                                     
  3612                                           
  3613        <action 
  3614         action="re move" 
  3615         relative=" cda:sectio n/cda:entr y"
  3616        >
  3617         NI
  3618        </action>
  3619                                           
  3620        <action 
  3621         action="se tValue" 
  3622         relative=" cda:sectio n/cda:text "
  3623        >
  3624         No Data Pr ovided for  This Sect ion
  3625        </action>
  3626                                           
  3627        <action 
  3628         action="se tAttribute
  3629         relative=" cda:sectio n" 
  3630         attribute= "nullFlavo r"
  3631        >
  3632         NI
  3633        </action>
  3634                                   
  3635                                  
  3636                                  
  3637       </ifNull>
  3638                                 
  3639       <mappings>
  3640                                           
  3641        <mapping>
  3642                                                    
  3643         <property>
  3644          takenTime
  3645         </property >
  3646                                                    
  3647         <xpath>
  3648          cda:organi zer/cda:ef fectiveTim e
  3649         </xpath>
  3650                                                    
  3651         <ifNotNull >
  3652                                                              
  3653          <action 
  3654           action="se tAttribute
  3655           attribute= "value" 
  3656          />
  3657                                                     
  3658         </ifNotNul l>
  3659                                            
  3660        </mapping>
  3661                                           
  3662        <mapping>
  3663                                                    
  3664         <property 
  3665          optional=" true"
  3666         >
  3667          facilityNu mber
  3668         </property >
  3669                                                    
  3670         <xpath>
  3671          cda:organi zer/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:id
  3672         </xpath>
  3673                                                    
  3674         <ifNotNull >
  3675                                                              
  3676          <action 
  3677           action="se tAttribute
  3678           attribute= "extension
  3679          />
  3680                                                     
  3681         </ifNotNul l>
  3682                                            
  3683        </mapping>
  3684                                           
  3685        <mapping>
  3686                                                    
  3687         <property 
  3688          optional=" true"
  3689         >
  3690          facilityNa me
  3691         </property >
  3692                                                    
  3693         <xpath>
  3694          cda:organi zer/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:name
  3695         </xpath>
  3696                                                    
  3697         <ifNotNull >
  3698                                                              
  3699          <action 
  3700           action="se tValue" 
  3701          />
  3702                                                     
  3703         </ifNotNul l>
  3704                                            
  3705        </mapping>
  3706                                           
  3707        <mapping>
  3708                                                    
  3709         <property 
  3710          collection ="true"
  3711         >
  3712          measuremen ts
  3713         </property >
  3714                                                    
  3715         <xpath>
  3716          cda:organi zer[@class Code='CLUS TER' and @ moodCode=' EVN']/cda: component
  3717         </xpath>
  3718                                                    
  3719         <ifNotNull >
  3720                                                              
  3721          <action 
  3722           action="se tAttribute
  3723           attribute= "value" 
  3724           property=" enteredTim e"
  3725                                                                       
  3726           relative=" cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:ef fectiveTim e" 
  3727          />
  3728                                                              
  3729          <action 
  3730           action="ev aluateMapp ings" 
  3731          />
  3732                                                     
  3733         </ifNotNul l>
  3734                                                    
  3735         <mappings>
  3736                                                              
  3737          <mapping>
  3738                                                                        
  3739           <property>
  3740            vitalID
  3741           </property >
  3742                                                                        
  3743           <xpath>
  3744            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:id
  3745           </xpath>
  3746                                                                        
  3747           <ifNotNull >
  3748                                                                                  
  3749            <action 
  3750             action="se tAttribute
  3751             attribute= "extension
  3752            />
  3753                                                                         
  3754           </ifNotNul l>
  3755                                                               
  3756          </mapping>
  3757                                                              
  3758          <mapping>
  3759                                                                        
  3760           <property>
  3761            vitalCode
  3762           </property >
  3763                                                                        
  3764           <xpath>
  3765            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:co de
  3766           </xpath>
  3767                                                                        
  3768           <ifNotNull >
  3769                                                                                  
  3770            <action 
  3771             action="se tAttribute
  3772             attribute= "code" 
  3773            />
  3774                                                                         
  3775           </ifNotNul l>
  3776                                                               
  3777          </mapping>
  3778                                                              
  3779          <mapping>
  3780                                                                        
  3781           <property>
  3782            vitalDispl ay
  3783           </property >
  3784                                                                        
  3785           <xpath>
  3786            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:co de
  3787           </xpath>
  3788                                                                        
  3789           <ifNotNull >
  3790                                                                                  
  3791            <action 
  3792             action="se tAttribute
  3793             attribute= "displayNa me" 
  3794            />
  3795                                                                         
  3796           </ifNotNul l>
  3797                                                               
  3798          </mapping>
  3799                                                              
  3800          <mapping>
  3801                                                                        
  3802           <property>
  3803            vuid
  3804           </property >
  3805                                                                        
  3806           <xpath>
  3807            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:co de/cda:tra nslation
  3808           </xpath>
  3809                                                                        
  3810           <ifNotNull >
  3811                                                                                  
  3812            <action 
  3813             action="se tAttribute
  3814             attribute= "code" 
  3815            />
  3816                                                                         
  3817           </ifNotNul l>
  3818                                                               
  3819          </mapping>
  3820                                                              
  3821          <mapping>
  3822                                                                        
  3823           <property>
  3824            name
  3825           </property >
  3826                                                                        
  3827           <xpath>
  3828            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:co de
  3829           </xpath>
  3830                                                                        
  3831           <ifNotNull >
  3832                                                                                  
  3833            <action 
  3834             action="se tValue" 
  3835             relative=" cda:origin alText" 
  3836            />
  3837                                                                                  
  3838            <action 
  3839             action="se tAttribute
  3840             relative=" cda:transl ation"
  3841                                                                                           
  3842             attribute= "displayNa me" 
  3843            />
  3844                                                                         
  3845           </ifNotNul l>
  3846                                                               
  3847          </mapping>
  3848                                                              
  3849                                                              
  3850          <!-- Added  for STS s tatic tran slation Vi tals-pain. Rational I D 163161 U ser Story- ->
  3851                                                              
  3852          <mapping 
  3853           equalsProp erty="vuid
  3854           equalsValu e="4500635
  3855          >
  3856                                                                        
  3857           <property 
  3858            optional=" true"
  3859           >
  3860            vuid
  3861           </property >
  3862                                                                        
  3863           <xpath>
  3864            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:co de
  3865           </xpath>
  3866                                                                        
  3867           <ifNotNull >
  3868                                                                                  
  3869            <action 
  3870             action="re moveAttrib utes" 
  3871            />
  3872                                                                                  
  3873            <action 
  3874             action="se tAttribute
  3875             attribute= "code"
  3876            >
  3877             72514-3
  3878            </action>
  3879                                                                                  
  3880            <action 
  3881             action="se tAttribute
  3882             attribute= "displayNa me"
  3883            >
  3884             Pain sever ity 0-10 R eported
  3885            </action>
  3886                                                                                  
  3887            <action 
  3888             action="se tAttribute
  3889             attribute= "codeSyste mName" 
  3890            >
  3891             LOINC
  3892            </action>
  3893                                                                                  
  3894            <action 
  3895             action="se tAttribute
  3896             attribute= "codeSyste m"
  3897            >
  3898             2.16.840.1 .113883.6. 1
  3899            </action>
  3900                                                                         
  3901           </ifNotNul l>
  3902                                                               
  3903          </mapping>                         
  3904         
  3905                                                              
  3906          <mapping>
  3907                                                                        
  3908           <property>
  3909            value
  3910           </property >
  3911                                                                        
  3912           <xpath>
  3913            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:va lue
  3914           </xpath>
  3915                                                                        
  3916           <ifNotNull >
  3917                                                                                  
  3918            <action 
  3919             action="se tAttribute
  3920             attribute= "value" 
  3921            />
  3922                                                                         
  3923           </ifNotNul l>
  3924                                                               
  3925          </mapping>
  3926                                                              
  3927          <mapping 
  3928           equalsProp erty="name
  3929           equalsValu e="BMI"
  3930          >
  3931                                                                        
  3932           <property>
  3933            units
  3934           </property >
  3935                                                                        
  3936           <xpath>
  3937            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:va lue
  3938           </xpath>
  3939                                                                        
  3940           <ifNotNull >
  3941                                                                                  
  3942            <action 
  3943             action="se tAttribute
  3944             attribute= "unit" 
  3945            />
  3946                                                                         
  3947           </ifNotNul l>
  3948                                                               
  3949          </mapping>
  3950                                                              
  3951          <mapping>
  3952                                                                        
  3953           <property 
  3954            optional=" true"
  3955           >
  3956            units
  3957           </property >
  3958                                                                        
  3959           <xpath>
  3960            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:va lue
  3961           </xpath>
  3962                                                                        
  3963           <ifNotNull >
  3964                                                                                  
  3965            <action 
  3966             action="se tAttribute
  3967             attribute= "unit" 
  3968             property=" unit"
  3969            />
  3970                                                                                  
  3971            <action 
  3972             action="se tAttribute
  3973             relative=" cda:transl ation" 
  3974             attribute= "code"  
  3975            />
  3976                                                                                  
  3977            <action 
  3978             action="se tAttribute
  3979             relative=" cda:transl ation" 
  3980             attribute= "displayNa me"  
  3981            />
  3982                                                                         
  3983           </ifNotNul l>
  3984                                                                        
  3985           <ifNull>
  3986                                                                                  
  3987            <action 
  3988             action="re move" 
  3989             relative=" cda:transl ation"
  3990            >
  3991            </action>
  3992                                                                         
  3993           </ifNull>
  3994                                                               
  3995          </mapping>
  3996                                                              
  3997          <!-- Remov e BMI tran slation an d use unit s for unit  - no vets  translati on-->
  3998                                                              
  3999          <mapping 
  4000           equalsProp erty="name
  4001           equalsValu e="BMI"
  4002          >
  4003                                                                        
  4004           <property 
  4005            optional=" true"
  4006           >
  4007            units
  4008           </property >
  4009                                                                        
  4010           <xpath>
  4011            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:va lue
  4012           </xpath>
  4013                                                                        
  4014           <ifNotNull >
  4015                                                                                  
  4016            <action 
  4017             action="se tAttribute
  4018             attribute= "unit" 
  4019             property=" units"
  4020            />
  4021                                                                                  
  4022            <action 
  4023             action="re move" 
  4024             relative=" cda:transl ation"  
  4025            />
  4026                                                                         
  4027           </ifNotNul l>
  4028                                                               
  4029          </mapping>                                                   
  4030                                                              
  4031          <!-- Added  for STS s tatic tran slation Vi tals-bmi.R ational ID  163161 Us er Story-- >
  4032                                                              
  4033          <mapping 
  4034           equalsProp erty="name
  4035           equalsValu e="BMI"
  4036          >
  4037                                                                        
  4038           <property>
  4039            name
  4040           </property >
  4041                                                                        
  4042           <xpath>
  4043            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:co de
  4044           </xpath>
  4045                                                                        
  4046           <ifNotNull >
  4047                                                                                  
  4048            <action 
  4049             action="re moveAttrib utes" 
  4050            />
  4051                                                                                  
  4052            <action 
  4053             action="se tAttribute
  4054             attribute= "code"
  4055            >
  4056             39156-5
  4057            </action>
  4058                                                                                  
  4059            <action 
  4060             action="se tAttribute
  4061             attribute= "displayNa me"
  4062            >
  4063             BMI
  4064            </action>
  4065                                                                                  
  4066            <action 
  4067             action="se tAttribute
  4068             attribute= "codeSyste m"
  4069            >
  4070             2.16.840.1 .113883.6. 1
  4071            </action>
  4072                                                                                  
  4073            <action 
  4074             action="se tAttribute
  4075             attribute= "codeSyste mName" 
  4076            >
  4077             LOINC
  4078            </action>
  4079                                                                                  
  4080            <action 
  4081             action="se tValue" 
  4082             relative=" cda:origin alText" 
  4083            >
  4084             BMI
  4085            </action>
  4086                                                                         
  4087           </ifNotNul l>
  4088                                                               
  4089          </mapping>                
  4090                                                              
  4091          <mapping 
  4092           equalsProp erty="name
  4093           equalsValu e="BMI"
  4094          >
  4095                                                                        
  4096           <property>
  4097            name
  4098           </property >
  4099                                                                        
  4100           <xpath>
  4101            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:co de/cda:tra nslation
  4102           </xpath>
  4103                                                                        
  4104           <ifNotNull >
  4105                                                                                  
  4106            <action 
  4107             action="re move" 
  4108            />
  4109                                                                         
  4110           </ifNotNul l>
  4111                                                               
  4112          </mapping>                                                                                                        
  4113                                                              
  4114                                                              
  4115          <!-- If no t qualifie rs at all  - remove t he target  and method  elements  -->
  4116                                                              
  4117          <mapping>
  4118                                                                        
  4119           <property>
  4120            qualifiers
  4121           </property >
  4122                                                                        
  4123           <xpath>
  4124            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N'] 
  4125           </xpath>
  4126                                                                        
  4127           <ifNotNull >
  4128                                                                         
  4129           </ifNotNul l>
  4130                                                                        
  4131           <ifNull>
  4132                                                                                  
  4133            <action 
  4134             action="re move" 
  4135             relative=" cda:target SiteCode"
  4136            >
  4137            </action>
  4138                                                                                  
  4139            <action 
  4140             action="re move" 
  4141             relative=" cda:method Code"
  4142            >
  4143            </action>
  4144                                                                         
  4145           </ifNull>
  4146                                                               
  4147          </mapping>
  4148                                                     
  4149                                                              
  4150          <!-- else  proces the  qualifier s -->
  4151                                                              
  4152          <mapping>
  4153                                                                        
  4154           <property>
  4155            qualifiers
  4156           </property >
  4157                                                                        
  4158           <xpath>
  4159            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:ta rgetSiteCo de
  4160           </xpath>
  4161                                                                        
  4162           <ifNotNull >
  4163                                                                                  
  4164            <action 
  4165             action="ev aluateMapp ings" 
  4166            />
  4167                                                                         
  4168           </ifNotNul l>
  4169                                                                        
  4170           <mappings>
  4171                                                                                  
  4172            <mapping 
  4173             equalsProp erty="targ etCodeSet"  
  4174             equalsValu e="T"
  4175            >
  4176                                                                                            
  4177             <property>
  4178              name
  4179             </property >
  4180                                                                                            
  4181             <xpath>
  4182              cda:origin alText
  4183             </xpath>
  4184                                                                                            
  4185             <ifNotNull >
  4186                                                                                                     
  4187              <action 
  4188               action="se tValue" 
  4189              />
  4190                                                                                             
  4191             </ifNotNul l>
  4192                                                                                   
  4193            </mapping>
  4194                                                                                  
  4195            <mapping 
  4196             notEqualsP roperty="t argetCodeS et" 
  4197             notEqualsV alue="T"
  4198            >
  4199                                                                                            
  4200             <property>
  4201              name
  4202             </property >
  4203                                                                                            
  4204             <xpath>
  4205              .
  4206             </xpath>
  4207                                                                                            
  4208             <ifNotNull >
  4209                                                                                                     
  4210              <action 
  4211               action="re move" 
  4212              />
  4213                                                                                             
  4214             </ifNotNul l>
  4215                                                                                   
  4216            </mapping>
  4217                                                                         
  4218           </mappings >
  4219                                                               
  4220          </mapping>
  4221                                                     
  4222                                                              
  4223          <mapping>
  4224                                                                        
  4225           <property>
  4226            qualifiers
  4227           </property >
  4228                                                                        
  4229           <xpath>
  4230            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:me thodCode
  4231           </xpath>
  4232                                                                        
  4233           <ifNotNull >
  4234                                                                                  
  4235            <action 
  4236             action="ev aluateMapp ings" 
  4237            />
  4238                                                                         
  4239           </ifNotNul l>
  4240                                                                        
  4241           <mappings>
  4242                                                                                  
  4243            <mapping 
  4244             equalsProp erty="meth odCodeSet"  
  4245             equalsValu e="M"
  4246            >
  4247                                                                                            >
  4248                                                                                            
  4249             <property>
  4250              name
  4251             </property >
  4252                                                                                            
  4253             <xpath>
  4254              cda:origin alText
  4255             </xpath>
  4256                                                                                            
  4257             <ifNotNull >
  4258                                                                                                     
  4259              <action 
  4260               action="se tValue" 
  4261              />
  4262                                                                                             
  4263             </ifNotNul l>
  4264                                                        
  4265                                                                                   
  4266            </mapping>
  4267                                                       
  4268                                                                                  
  4269            <mapping 
  4270             notEqualsP roperty="m ethodCodeS et" 
  4271             notEqualsV alue="M"
  4272            >
  4273                                                                                            
  4274             <property>
  4275              name
  4276             </property >
  4277                                                                                            
  4278             <xpath>
  4279              .
  4280             </xpath>
  4281                                                                                            
  4282             <ifNotNull >
  4283                                                                                                     
  4284              <action 
  4285               action="re move" 
  4286              />
  4287                                                                                             
  4288             </ifNotNul l>
  4289                                                                                   
  4290            </mapping>
  4291                                                                         
  4292           </mappings >
  4293                                                               
  4294          </mapping>
  4295                                                              
  4296                  
  4297                                                     
  4298         </mappings >
  4299                                            
  4300        </mapping>
  4301                                  
  4302       </mappings >
  4303                        
  4304      </mapping>
  4305                       
  4306      <!-- Docum ent Provid er Mapping  -->
  4307                       
  4308      <mapping>
  4309                                 
  4310       <property 
  4311        optional=" true" 
  4312        collection ="true" 
  4313        merge="tru e"
  4314       >
  4315        participan ts
  4316       </property >
  4317                                 
  4318       <xpath>
  4319        /cda:Clini calDocumen t/cda:docu mentationO f/cda:serv iceEvent/c da:perform er[@typeCo de='PRF' a nd @id='PC P']
  4320       </xpath>
  4321                                 
  4322       <ifNotNull >
  4323                                           
  4324        <action 
  4325         action="re moveAttrib utes"
  4326        />
  4327                                           
  4328        <action 
  4329         action="se tAttribute
  4330         attribute= "typeCode"
  4331        >
  4332         PRF
  4333        </action>
  4334                                           
  4335        <action 
  4336         action="ev aluateMapp ings" 
  4337        />
  4338                                  
  4339       </ifNotNul l>
  4340                                 
  4341       <ifNull>
  4342                                           
  4343        <action 
  4344         action="re move" 
  4345        />
  4346                                  
  4347       </ifNull>
  4348                                 
  4349       <mappings>
  4350                                           
  4351        <!--  PCP  Name -->
  4352                                           
  4353        <mapping>
  4354                                                    
  4355         <property>
  4356          pcProvider .name
  4357         </property >
  4358                                                    
  4359         <xpath>
  4360          cda:assign edEntity
  4361         </xpath>
  4362                                                    
  4363         <ifNotNull >
  4364                                                              
  4365          <action 
  4366           action="se tValue" 
  4367           relative=" cda:assign edPerson/c da:name" 
  4368          />
  4369                                                              
  4370          <action 
  4371           action="re moveAttrib utes" 
  4372           relative=" cda:id" 
  4373          />
  4374                                                              
  4375          <action 
  4376           action="se tAttribute
  4377           relative=" cda:id" 
  4378           attribute= "nullFlavo r"
  4379          >
  4380           UNK
  4381          </action>
  4382                                                     
  4383         </ifNotNul l>
  4384                                                    
  4385         <ifNull>
  4386                                                              
  4387          <action 
  4388           action="re move" 
  4389           relative=" .." 
  4390          />
  4391                                                     
  4392         </ifNull>
  4393                                            
  4394        </mapping>
  4395                                           
  4396        <mapping>
  4397                                                    
  4398         <property>
  4399          pcProvider .taxonomyC ode
  4400         </property >
  4401                                                    
  4402         <xpath>
  4403          cda:assign edEntity/c da:code
  4404         </xpath>
  4405                                                    
  4406         <ifNotNull >
  4407                                                              
  4408          <action 
  4409           action="se tAttribute
  4410           attribute= "code" 
  4411          />
  4412                                                              
  4413          <action 
  4414           action="ap pendAttrib ute" 
  4415           attribute= "code" 
  4416           property=" providerTy pe"
  4417          />
  4418                                                              
  4419          <action 
  4420           action="se tValue" 
  4421           property=" providerTy pe" 
  4422           relative=" cda:origin alText" 
  4423          />
  4424                                                     
  4425         </ifNotNul l>
  4426                                                    
  4427         <ifNull>
  4428                                                              
  4429          <action 
  4430           action="re moveAttrib utes" 
  4431          />
  4432                                                              
  4433          <action 
  4434           action="se tAttribute
  4435           attribute= "nullFlavo r"
  4436          >
  4437           UNK
  4438          </action>
  4439                                                     
  4440         </ifNull>
  4441                                            
  4442        </mapping>
  4443                                           
  4444        <mapping>
  4445                                                    
  4446         <property>
  4447          pcProvider .providerT ype
  4448         </property >
  4449                                                    
  4450         <xpath>
  4451          cda:assign edEntity/c da:code/cd a:original Text
  4452         </xpath>
  4453                                                    
  4454         <ifNotNull >
  4455                                                              
  4456          <action 
  4457           action="se tValue" 
  4458          />
  4459                                                     
  4460         </ifNotNul l>
  4461                                                    
  4462         <ifNull>
  4463                                                              
  4464          <action 
  4465           action="re move" 
  4466          />
  4467                                                     
  4468         </ifNull>
  4469                                            
  4470        </mapping>                                          
  4471                                           
  4472        <!-- PCP e -mail -->
  4473                                           
  4474        <mapping>
  4475                                                    
  4476         <property>
  4477          pcProvider .email
  4478         </property >
  4479                                                    
  4480         <xpath>
  4481          cda:assign edEntity/c da:telecom [@ID='EMAI L']
  4482         </xpath>
  4483                                                    
  4484         <ifNotNull >
  4485                                                              
  4486          <action 
  4487           action="re moveAttrib utes" 
  4488          />
  4489                                                              
  4490          <action 
  4491           action="ap pendAttrib ute" 
  4492           attribute= "value"
  4493          >
  4494           email:
  4495          </action>
  4496                                                              
  4497          <action 
  4498           action="ap pendAttrib ute" 
  4499           attribute= "value"
  4500          />
  4501                                                              
  4502          <action 
  4503           action="se tAttribute
  4504           attribute= "use"
  4505          >
  4506           WP
  4507          </action>
  4508                                                     
  4509         </ifNotNul l>
  4510                                                    
  4511         <ifNull>
  4512                                                              
  4513          <action 
  4514           action="re move" 
  4515          />
  4516                                                     
  4517         </ifNull>
  4518                                            
  4519        </mapping>
  4520                                           
  4521        <!-- PCP P hone -->
  4522                                           
  4523        <mapping>
  4524                                                    
  4525         <property>
  4526          pcProvider .officePho ne
  4527         </property >
  4528                                                    
  4529         <xpath>
  4530          cda:assign edEntity/c da:telecom [@ID='TELE PHONE']
  4531         </xpath>
  4532                                                    
  4533         <ifNotNull >
  4534                                                              
  4535          <action 
  4536           action="re moveAttrib utes" 
  4537          />
  4538                                                              
  4539          <action 
  4540           action="ap pendAttrib ute" 
  4541           attribute= "value"
  4542          />
  4543                                                              
  4544          <action 
  4545           action="se tAttribute
  4546           attribute= "use"
  4547          >
  4548           WP
  4549          </action>
  4550                                                     
  4551         </ifNotNul l>
  4552                                                    
  4553         <ifNull>
  4554                                                              
  4555          <action 
  4556           action="re move" 
  4557          />
  4558                                                     
  4559         </ifNull>
  4560                                            
  4561        </mapping>
  4562                                           
  4563                                            
  4564                                           
  4565        <mapping>
  4566                                                    
  4567         <property>
  4568          pcProvider .pcAddress Street
  4569         </property >
  4570                                                    
  4571         <xpath>
  4572          cda:assign edEntity/c da:addr/cd a:streetAd dressLine
  4573         </xpath>
  4574                                                    
  4575         <ifNotNull >
  4576                                                              
  4577          <action 
  4578           action="se tValue" 
  4579          />
  4580                                                     
  4581         </ifNotNul l>
  4582                                                    
  4583         <ifNull>
  4584                                                              
  4585          <action 
  4586           action="se tAttribute
  4587           attribute= "nullFlavo r"
  4588          >
  4589           UNK
  4590          </action>
  4591                                                     
  4592         </ifNull>
  4593                                            
  4594        </mapping>
  4595                                           
  4596        <mapping>
  4597                                                    
  4598         <property>
  4599          pcProvider .pcAddress City
  4600         </property >
  4601                                                    
  4602         <xpath>
  4603          cda:assign edEntity/c da:addr/cd a:city
  4604         </xpath>
  4605                                                    
  4606         <ifNotNull >
  4607                                                              
  4608          <action 
  4609           action="se tValue" 
  4610          />
  4611                                                     
  4612         </ifNotNul l>
  4613                                                    
  4614         <ifNull>
  4615                                                              
  4616          <action 
  4617           action="se tAttribute
  4618           attribute= "nullFlavo r"
  4619          >
  4620           UNK
  4621          </action>
  4622                                                     
  4623         </ifNull>
  4624                                            
  4625        </mapping>
  4626                                           
  4627        <mapping>
  4628                                                    
  4629         <property>
  4630          pcProvider .pcAddress State
  4631         </property >
  4632                                                    
  4633         <xpath>
  4634          cda:assign edEntity/c da:addr/cd a:state
  4635         </xpath>
  4636                                                    
  4637         <ifNotNull >
  4638                                                              
  4639          <action 
  4640           action="se tValue" 
  4641          />
  4642                                                     
  4643         </ifNotNul l>
  4644                                                    
  4645         <ifNull>
  4646                                                              
  4647          <action 
  4648           action="se tAttribute
  4649           attribute= "nullFlavo r"
  4650          >
  4651           UNK
  4652          </action>
  4653                                                     
  4654         </ifNull>
  4655                                            
  4656        </mapping>
  4657                                  
  4658                                           
  4659        <mapping>
  4660                                                    
  4661         <property>
  4662          pcProvider .pcAddress Postal
  4663         </property >
  4664                                                    
  4665         <xpath>
  4666          cda:assign edEntity/c da:addr/cd a:postalCo de
  4667         </xpath>
  4668                                                    
  4669         <ifNotNull >
  4670                                                              
  4671          <action 
  4672           action="se tValue" 
  4673          />
  4674                                                     
  4675         </ifNotNul l>
  4676                                                    
  4677         <ifNull>
  4678                                                              
  4679          <action 
  4680           action="se tAttribute
  4681           attribute= "nullFlavo r"
  4682          >
  4683           UNK
  4684          </action>
  4685                                                     
  4686         </ifNull>
  4687                                            
  4688        </mapping>
  4689                 
  4690                                  
  4691       </mappings >
  4692                        
  4693      </mapping>
  4694                       
  4695                       
  4696                                         
  4697      <!-- Docum ent Provid er Mapping  -->
  4698                       
  4699      <mapping>
  4700                                 
  4701       <property 
  4702        optional=" true" 
  4703        collection ="true" 
  4704        merge="tru e"
  4705       >
  4706        problems
  4707       </property >
  4708                                 
  4709       <xpath>
  4710        /cda:Clini calDocumen t/cda:docu mentationO f/cda:serv iceEvent/c da:perform er[@typeCo de='PRF' a nd @id='no tPCP']
  4711       </xpath>
  4712                                 
  4713       <ifNotNull >
  4714                                           
  4715        <action 
  4716         action="re moveAttrib utes"
  4717        />
  4718                                           
  4719        <action 
  4720         action="se tAttribute
  4721         attribute= "typeCode"
  4722        >
  4723         PRF
  4724        </action>
  4725                                           
  4726        <action 
  4727         action="ev aluateMapp ings" 
  4728        />
  4729                                  
  4730       </ifNotNul l>
  4731                                 
  4732       <ifNull>
  4733                                           
  4734        <action 
  4735         action="re move" 
  4736        />
  4737                                  
  4738       </ifNull>
  4739                                 
  4740       <mappings>                                 
  4741                                           
  4742        <!-- 7.03  PROBLEM He althcare p rovider re ference va lue, REQUI RED -->
  4743                                           
  4744        <mapping>
  4745                                                    
  4746         <property>
  4747          provider
  4748         </property >
  4749                                                    
  4750         <xpath>
  4751          cda:assign edEntity
  4752         </xpath>
  4753                                                    
  4754         <ifNotNull >
  4755                                                              
  4756          <action 
  4757           action="se tAttribute
  4758           relative=" cda:id" 
  4759           attribute= "extension "
  4760                                                                       
  4761           indexed="t rue"
  4762          >
  4763           provider
  4764          </action>
  4765                                                              
  4766          <action 
  4767           action="se tValue" 
  4768           relative=" cda:assign edPerson/c da:name" 
  4769          />
  4770                                                              
  4771          <action 
  4772           action="re move" 
  4773           relative=" cda:code" 
  4774          />
  4775                                                              
  4776          <action 
  4777           action="re move" 
  4778           relative=" ../cda:fun ctionCode"
  4779          />
  4780                                                     
  4781         </ifNotNul l>
  4782                                            
  4783        </mapping>
  4784                                           
  4785        <mapping>
  4786                                                    
  4787         <property>
  4788          facilityNu mber
  4789         </property >
  4790                                                    
  4791         <xpath>
  4792          cda:assign edEntity/c da:represe ntedOrgani zation/cda :id
  4793         </xpath>
  4794                                                    
  4795         <ifNotNull >
  4796                                                              
  4797          <action 
  4798           action="se tAttribute
  4799           attribute= "extension
  4800          />
  4801                                                              
  4802          <action 
  4803           action="re moveAttrib utes" 
  4804           relative=" cda:repres entedOrgan ization/cd a:id" 
  4805           attribute= "nullFlavo r" 
  4806          />
  4807                                                     
  4808         </ifNotNul l>
  4809                                            
  4810        </mapping>
  4811                                           
  4812        <mapping>
  4813                                                    
  4814         <property>
  4815          facilityNa me
  4816         </property >
  4817                                                    
  4818         <xpath>
  4819          cda:assign edEntity/c da:represe ntedOrgani zation/cda :name
  4820         </xpath>
  4821                                                    
  4822         <ifNotNull >
  4823                                                              
  4824          <action 
  4825           action="se tValue" 
  4826          />
  4827                                                     
  4828         </ifNotNul l>
  4829                                            
  4830        </mapping>
  4831                                  
  4832       </mappings >
  4833                        
  4834      </mapping>
  4835                       
  4836      <!-- PROBL EM NARRATI VE -->
  4837                       
  4838      <mapping>
  4839                            
  4840       <property 
  4841        optional=" true"
  4842       >
  4843        problemsNa rrative
  4844       </property >
  4845                            
  4846       <xpath>
  4847        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.5.1']
  4848       </xpath>
  4849                            
  4850       <ifNotNull >
  4851                                  
  4852        <action 
  4853         action="se tValue" 
  4854         relative=" cda:sectio n/cda:text /cda:parag raph" 
  4855        />
  4856                             
  4857       </ifNotNul l>
  4858                        
  4859      </mapping>
  4860                       
  4861      <mapping>
  4862                                 
  4863       <property 
  4864        optional=" true" 
  4865        collection ="true" 
  4866        merge="tru e"
  4867       >
  4868        problems
  4869       </property >
  4870                                 
  4871       <xpath>
  4872        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.5.1']
  4873       </xpath>
  4874                                 
  4875       <ifNotNull >
  4876                                           
  4877        <action 
  4878         action="ev aluateMapp ings"
  4879                                                   
  4880         relative=" cda:sectio n/cda:text /cda:table [@ID='prob lemNarrati ve']/cda:t body/cda:t r" 
  4881        />
  4882                                  
  4883       </ifNotNul l>
  4884                                 
  4885       <mappings>
  4886                                           
  4887        <mapping>
  4888                                                    
  4889         <property>
  4890          name
  4891         </property >
  4892                                                    
  4893         <xpath>
  4894          cda:td/cda :content[@ ID='pndPro blem']
  4895         </xpath>
  4896                                                    
  4897         <ifNotNull >
  4898                                                              
  4899          <action 
  4900           action="se tAttribute
  4901           attribute= "ID" 
  4902           indexed="t rue"
  4903          >
  4904           pndProblem
  4905          </action>
  4906                                                              
  4907          <action 
  4908           action="se tValue" 
  4909          />
  4910                                                     
  4911         </ifNotNul l>
  4912                                            
  4913        </mapping>
  4914                                           
  4915        <mapping>
  4916                                                    
  4917         <property>
  4918          statusDisp lay
  4919         </property >
  4920                                                    
  4921         <xpath>
  4922          cda:td/cda :content[@ ID='pndSta tus']
  4923         </xpath>
  4924                                                    
  4925         <ifNotNull >
  4926                                                              
  4927          <action 
  4928           action="se tAttribute
  4929           attribute= "ID" 
  4930           indexed="t rue"
  4931          >
  4932           pndStatus
  4933          </action>
  4934                                                              
  4935          <action 
  4936           action="se tValue" 
  4937          />
  4938                                                     
  4939         </ifNotNul l>
  4940                                            
  4941        </mapping>
  4942                                           
  4943        <mapping>
  4944                                                    
  4945         <property>
  4946          icdCode
  4947         </property >
  4948                                                    
  4949         <xpath>
  4950          cda:td[3]/ cda:conten t
  4951         </xpath>
  4952                                                    
  4953         <ifNotNull >
  4954                                                              
  4955          <action 
  4956           action="se tAttribute
  4957           attribute= "ID" 
  4958           indexed="t rue"
  4959          >
  4960           pndProblem Code
  4961          </action>
  4962                                                              
  4963          <action 
  4964           action="se tValue" 
  4965          />
  4966                                                     
  4967         </ifNotNul l>
  4968                                                    
  4969         <ifNull>
  4970                                                              
  4971          <action 
  4972           action="se tAttribute
  4973           attribute= "ID" 
  4974           indexed="t rue"
  4975          >
  4976           pndProblem Code
  4977          </action>
  4978                                                     
  4979         </ifNull>
  4980                                            
  4981        </mapping>
  4982                                           
  4983                                           
  4984        <mapping>
  4985                                                    
  4986         <property>
  4987          icdCodeToS nomed
  4988         </property >
  4989                                                    
  4990         <xpath>
  4991          cda:td[3]/ cda:conten t
  4992         </xpath>
  4993                                                    
  4994         <ifNotNull >
  4995                                                              
  4996          <action 
  4997           action="se tAttribute
  4998           attribute= "ID" 
  4999           indexed="t rue"
  5000          >
  5001           pndProblem Code
  5002          </action>
  5003                                                              
  5004          <action 
  5005           action="se tValue" 
  5006          />
  5007                                                     
  5008         </ifNotNul l>
  5009                                                    
  5010         <ifNull>
  5011                                                              
  5012          <action 
  5013           action="se tAttribute
  5014           attribute= "ID" 
  5015           indexed="t rue"
  5016          >
  5017           pndProblem Code
  5018          </action>
  5019                                                     
  5020         </ifNull>
  5021                                            
  5022        </mapping>
  5023                                           
  5024                                           
  5025        <mapping>
  5026                                                    
  5027         <property>
  5028          sctCode
  5029         </property >
  5030                                                    
  5031         <xpath>
  5032          cda:td[3]/ cda:conten t
  5033         </xpath>
  5034                                                    
  5035         <ifNotNull >
  5036                                                              
  5037          <action 
  5038           action="se tAttribute
  5039           attribute= "ID" 
  5040           indexed="t rue"
  5041          >
  5042           pndProblem Code
  5043          </action>
  5044                                                              
  5045          <action 
  5046           action="se tValue" 
  5047          />
  5048                                                     
  5049         </ifNotNul l>
  5050                                                    
  5051         <ifNull>
  5052                                                              
  5053          <action 
  5054           action="se tAttribute
  5055           attribute= "ID" 
  5056           indexed="t rue"
  5057          >
  5058           pndProblem Code
  5059          </action>
  5060                                                     
  5061         </ifNull>
  5062                                            
  5063        </mapping>
  5064                                           
  5065                                           
  5066        <mapping>
  5067                                                    
  5068         <property 
  5069          optional=" true"
  5070         >
  5071          prettyDate
  5072         </property >
  5073                                                    
  5074         <xpath>
  5075          cda:td/cda :content[@ ID='pndDat eOfOnset']
  5076         </xpath>
  5077                                                    
  5078         <ifNotNull >
  5079                                                              
  5080          <action 
  5081           action="se tAttribute
  5082           attribute= "ID" 
  5083           indexed="t rue"
  5084          >
  5085           pndDateOfO nset
  5086          </action>
  5087                                                              
  5088          <action 
  5089           action="se tValue" 
  5090          />
  5091                                                     
  5092         </ifNotNul l>
  5093                                                    
  5094         <ifNull>
  5095                                                              
  5096          <action 
  5097           action="se tAttribute
  5098           attribute= "ID" 
  5099           indexed="t rue"
  5100          >
  5101           pndDateOfO nset
  5102          </action>
  5103                                                     
  5104         </ifNull>
  5105                                            
  5106        </mapping>
  5107                                           
  5108        <mapping>
  5109                                                    
  5110         <property 
  5111          optional=" true"
  5112         >
  5113          prettyDate Resolved
  5114         </property >
  5115                                                    
  5116         <xpath>
  5117          cda:td/cda :content[@ ID='pndDat eOfResolut ion']
  5118         </xpath>
  5119                                                    
  5120         <ifNotNull >
  5121                                                              
  5122          <action 
  5123           action="se tAttribute
  5124           attribute= "ID" 
  5125           indexed="t rue"
  5126          >
  5127           pndDateOfR esolution
  5128          </action>
  5129                                                              
  5130          <action 
  5131           action="se tValue" 
  5132          />
  5133                                                     
  5134         </ifNotNul l>
  5135                                                    
  5136         <ifNull>
  5137                                                              
  5138          <action 
  5139           action="se tAttribute
  5140           attribute= "ID" 
  5141           indexed="t rue"
  5142          >
  5143           pndDateOfR esolution
  5144          </action>
  5145                                                     
  5146         </ifNull>
  5147                                            
  5148        </mapping>
  5149                                           
  5150        <mapping>
  5151                              
  5152         <property 
  5153          optional=" true" 
  5154          collection ="true" 
  5155          merge="tru e"
  5156         >
  5157          comments,c omments.co mment
  5158         </property >
  5159                              
  5160         <xpath>
  5161          cda:td/cda :list/cda: item[cda:c ontent/@ID ='pndComme nt']
  5162         </xpath>
  5163                              
  5164         <ifNotNull >
  5165                                                              
  5166          <action 
  5167           action="se tAttribute
  5168           relative=" cda:conten t"
  5169                                                                       
  5170           attribute= "ID" 
  5171           indexed="t rue"
  5172          >
  5173           pndComment
  5174          </action>
  5175                                                              
  5176          <action 
  5177           action="ev aluateMapp ings" 
  5178          />
  5179                                                     
  5180         </ifNotNul l>
  5181         <!--                                        <property  optional=" true" coll ection="tr ue" merge= "true">com ments</pro perty>
  5182                               <xpath>cda :td/cda:co ntent[@ID= 'pndCommen t']</xpath >
  5183                               <ifNotNull >
  5184                                   <actio n action=" setAttribu te" attrib ute="ID" i ndexed="tr ue">pndCom ment</acti on>
  5185                                   <actio n action=" evaluateMa ppings"/>
  5186                               </ifNotNul l> -->
  5187                                                    
  5188         <mappings>
  5189                                    
  5190          <mapping>
  5191                                         
  5192           <property 
  5193            optional=" true"
  5194           >
  5195            entered
  5196           </property >
  5197                                         
  5198           <xpath>
  5199            cda:conten t
  5200           </xpath>
  5201                                         
  5202           <ifNotNull >
  5203                                               
  5204            <action 
  5205             action="ap pendAttrib ute" 
  5206             attribute= "ID" 
  5207             indexed="t rue"
  5208            >
  5209             _
  5210            </action>
  5211                                               
  5212            <!--<actio n action=" appendValu e" propert y="entered " />-->
  5213                                               
  5214            <action 
  5215             action="se tValue" 
  5216            />
  5217            <!--                                   <act ion action ="appendEl ement" >&l t;br/&gt;< /action>-- >
  5218                                               
  5219            <action 
  5220             action="ap pendValue"  
  5221            >
  5222             &#xa;
  5223            </action>
  5224                                          
  5225           </ifNotNul l>
  5226                                     
  5227          </mapping>
  5228                                    
  5229          <mapping>
  5230                                         
  5231           <property 
  5232            optional=" true"
  5233           >
  5234            enteredBy
  5235           </property >
  5236                                         
  5237           <xpath>
  5238            cda:conten t
  5239           </xpath>
  5240                                         
  5241           <ifNotNull >
  5242                                               
  5243            <action 
  5244             action="ap pendValue"
  5245            >
  5246             Entered By
  5247            </action>
  5248                                               
  5249            <action 
  5250             action="ap pendValue"  
  5251             property=" enteredBy"  
  5252            />
  5253            <!--                                   <act ion action ="appendEl ement" >&l t;br/&gt;< /action>-- >
  5254                                               
  5255            <action 
  5256             action="ap pendValue"
  5257            >
  5258             &#xa;
  5259            </action>
  5260                                          
  5261           </ifNotNul l>
  5262                                     
  5263          </mapping>
  5264                                    
  5265          <mapping>
  5266                                         
  5267           <property 
  5268            optional=" true"
  5269           >
  5270            commentTex t
  5271           </property >
  5272                                         
  5273           <xpath>
  5274            cda:conten t
  5275           </xpath>
  5276                                         
  5277           <ifNotNull >
  5278                                               
  5279            <action 
  5280             action="ap pendValue"
  5281            >
  5282             Comment: 
  5283            </action>
  5284                                               
  5285            <action 
  5286             action="ap pendValue"  
  5287             property=" commentTex t" 
  5288            />
  5289            <!--                                   <act ion action ="appendVa lue">&lt;c ontent&gt; &lt;br/&gt ;&lt;/cont ent&gt;</a ction>-->
  5290            <!--                                   <act ion action ="appendEl ement" >&l t;br/&gt;< /action>-- >
  5291                                               
  5292            <action 
  5293             action="ap pendValue"
  5294            >
  5295             &#xa;
  5296            </action>
  5297                                          
  5298           </ifNotNul l>
  5299                                         
  5300           <ifNull>
  5301                                               
  5302            <action 
  5303             action="ap pendValue"
  5304            >
  5305             Comment em pty. 
  5306            </action>
  5307            <!--                                   <act ion action ="appendEl ement" >&l t;br/&gt;< /action>-- >
  5308                                               
  5309            <action 
  5310             action="ap pendValue"
  5311            >
  5312             &#xa;
  5313            </action>
  5314                                          
  5315           </ifNull>
  5316                                     
  5317          </mapping>
  5318                               
  5319         </mappings >
  5320                                                    
  5321         <ifNull>
  5322                                                              
  5323          <action 
  5324           action="ap pendAttrib ute" 
  5325           attribute= "ID" 
  5326           indexed="t rue"
  5327          >
  5328           pndComment
  5329          </action>
  5330                                                              
  5331          <action 
  5332           action="se tValue"
  5333          >
  5334           No comment s entered  for proble m.
  5335          </action>
  5336                                                     
  5337         </ifNull>
  5338                                            
  5339        </mapping>                                 
  5340                                           
  5341        <mapping>
  5342                                                    
  5343         <property>
  5344          provider
  5345         </property >
  5346                                                    
  5347         <xpath>
  5348          cda:td/cda :content[@ ID='pndPro vider']
  5349         </xpath>
  5350                                                    
  5351         <ifNotNull >
  5352                                                              
  5353          <action 
  5354           action="se tAttribute
  5355           attribute= "ID" 
  5356           indexed="t rue"
  5357          >
  5358           pndProvide r
  5359          </action>
  5360                                                              
  5361          <action 
  5362           action="se tValue" 
  5363          />
  5364                                                     
  5365         </ifNotNul l>
  5366                                            
  5367        </mapping>
  5368                                           
  5369        <mapping>
  5370                                                    
  5371         <property 
  5372          optional=" true"
  5373         >
  5374          facilityNa me
  5375         </property >
  5376                                                    
  5377         <xpath>
  5378          cda:td/cda :content[@ ID='pndSou rce']
  5379         </xpath>
  5380                                                    
  5381         <ifNotNull >
  5382                                                              
  5383          <action 
  5384           action="se tAttribute
  5385           attribute= "ID" 
  5386           indexed="t rue"
  5387          >
  5388           pndSource
  5389          </action>
  5390                                                              
  5391          <action 
  5392           action="se tValue" 
  5393          />
  5394                                                     
  5395         </ifNotNul l>
  5396                                                    
  5397         <ifNull>
  5398                                                              
  5399          <action 
  5400           action="se tAttribute
  5401           attribute= "ID" 
  5402           indexed="t rue"
  5403          >
  5404           pndSource
  5405          </action>
  5406                                                     
  5407         </ifNull>
  5408                                            
  5409        </mapping>
  5410                                  
  5411       </mappings >
  5412                        
  5413      </mapping>
  5414                       
  5415      <!-- PROBL EM SECTION  -->
  5416                       
  5417      <mapping>
  5418                                 
  5419       <property 
  5420        collection ="true" 
  5421        merge="tru e"
  5422       >
  5423        problems
  5424       </property >
  5425                                 
  5426       <xpath>
  5427        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.5.1']
  5428       </xpath>
  5429                                 
  5430       <ifNotNull >
  5431                                           
  5432        <action 
  5433         action="ev aluateMapp ings" 
  5434         relative=" cda:sectio n/cda:entr y" 
  5435        />
  5436                                  
  5437       </ifNotNul l>
  5438                                 
  5439       <ifNull>
  5440                                           
  5441        <action 
  5442         action="re move" 
  5443         relative=" cda:sectio n/cda:entr y"
  5444        >
  5445         NI
  5446        </action>
  5447                                           
  5448        <action 
  5449         action="se tValue" 
  5450         relative=" cda:sectio n/cda:text "
  5451        >
  5452         No Data Pr ovided for  This Sect ion
  5453        </action>
  5454                                           
  5455        <action 
  5456         action="se tAttribute
  5457         relative=" cda:sectio n"
  5458                                                   
  5459         attribute= "nullFlavo r"
  5460        >
  5461         NI
  5462        </action>
  5463                                  
  5464       </ifNull>
  5465                                 
  5466       <mappings>
  5467                                           
  5468        <mapping>
  5469                                                    
  5470         <property 
  5471          optional=" true"
  5472         >
  5473          date
  5474         </property >
  5475                                                    
  5476         <xpath 
  5477          sort="desc "
  5478         >
  5479          cda:act/cd a:effectiv eTime/cda: low
  5480         </xpath>
  5481                                                    
  5482         <ifNotNull >
  5483                                                              
  5484          <action 
  5485           action="se tAttribute
  5486           attribute= "value" 
  5487          />
  5488                                                     
  5489         </ifNotNul l>
  5490                                                    
  5491         <ifNull>
  5492                                                              
  5493          <action 
  5494           action="re moveAttrib utes" 
  5495          />
  5496                                                              
  5497          <action 
  5498           action="se tAttribute
  5499           attribute= "nullFlavo r"
  5500          >
  5501           UNK
  5502          </action>
  5503                                                     
  5504         </ifNull>
  5505                                            
  5506        </mapping>
  5507                                           
  5508        <mapping>
  5509                                                    
  5510         <property 
  5511          optional=" true"
  5512         >
  5513          dateResolv ed
  5514         </property >
  5515                                                    
  5516         <xpath 
  5517          sort="desc "
  5518         >
  5519          cda:act/cd a:effectiv eTime/cda: high
  5520         </xpath>
  5521                                                    
  5522         <ifNotNull >
  5523                                                              
  5524          <action 
  5525           action="se tAttribute
  5526           attribute= "value" 
  5527          />
  5528                                                     
  5529         </ifNotNul l>
  5530                                                    
  5531         <ifNull>
  5532                                                              
  5533          <action 
  5534           action="re moveAttrib utes" 
  5535          />
  5536                                                              
  5537          <action 
  5538           action="se tAttribute
  5539           attribute= "nullFlavo r"
  5540          >
  5541           UNK
  5542          </action>
  5543                                                     
  5544         </ifNull>
  5545                                            
  5546        </mapping>
  5547                                           
  5548        <!-- 7.05  TREATING P ROVIDER, O ptional -- >
  5549                                           
  5550        <!-- 7.05  TREATING P ROVIDER, P rovider ID  linked to  Health Ca re Provide
  5551                                                    Module -->
  5552                                           
  5553        <mapping>
  5554                                                    
  5555         <property>
  5556          provider
  5557         </property >
  5558                                                    
  5559         <xpath>
  5560          cda:act/cd a:performe r/cda:assi gnedEntity /cda:id
  5561         </xpath>
  5562                                                    
  5563         <ifNotNull >
  5564                                                              
  5565          <action 
  5566           action="se tAttribute
  5567           attribute= "extension "
  5568                                                                       
  5569           indexed="t rue"
  5570          >
  5571           provider
  5572          </action>
  5573                                                     
  5574         </ifNotNul l>
  5575                                                    
  5576         <ifNull>
  5577                                                              
  5578          <action 
  5579           action="se tAttribute
  5580           attribute= "nullFlavo r"
  5581          >
  5582           UNK
  5583          </action>
  5584                                                     
  5585         </ifNull>
  5586                                            
  5587        </mapping>
  5588                                           
  5589        <!-- INFOR MATION SOU RCE FOR PR OBLEM, Opt ional -->
  5590                                           
  5591        <!-- INFOR MATION SOU RCE FACILI TY OID (VA  OID + TRE ATING FACI LITY NBR)  -->
  5592                                           
  5593        <mapping>
  5594                                                    
  5595         <property 
  5596          optional=" true"
  5597         >
  5598          facilityNu mber
  5599         </property >
  5600                                                    
  5601         <xpath>
  5602          cda:act/cd a:author/c da:assigne dAuthor/cd a:represen tedOrganiz ation/cda: id
  5603         </xpath>
  5604                                                    
  5605         <ifNotNull >
  5606                                                              
  5607          <action 
  5608           action="se tAttribute
  5609           attribute= "extension
  5610          />
  5611                                                     
  5612         </ifNotNul l>
  5613                                            
  5614        </mapping>
  5615                                           
  5616        <mapping>
  5617                                                    
  5618         <!-- INFOR MATION SOU RCE FACILI TY NAME -- >
  5619                                                    
  5620         <property 
  5621          optional=" true"
  5622         >
  5623          facilityNa me
  5624         </property >
  5625                                                    
  5626         <xpath>
  5627          cda:act/cd a:author/c da:assigne dAuthor/cd a:represen tedOrganiz ation/cda: name
  5628         </xpath>
  5629                                                    
  5630         <ifNotNull >
  5631                                                              
  5632          <action 
  5633           action="se tValue" 
  5634          />
  5635                                                     
  5636         </ifNotNul l>
  5637                                            
  5638        </mapping>
  5639                                           
  5640        <!-- 7.03  PROBLEM NA ME, REQUIR ED -->
  5641                                           
  5642        <mapping>
  5643                                                    
  5644         <property>
  5645          name
  5646         </property >
  5647                                                    
  5648         <xpath>
  5649          cda:act/cd a:entryRel ationship/ cda:observ ation
  5650         </xpath>
  5651                                                    
  5652         <ifNotNull >
  5653                                                              
  5654          <action 
  5655           action="se tAttribute
  5656           relative=" cda:text/c da:referen ce"
  5657                                                                       
  5658           attribute= "value" 
  5659           indexed="t rue"
  5660          >
  5661           #pndProble m
  5662          </action>
  5663                                                              
  5664          <action 
  5665           action="se tAttribute
  5666           relative=" cda:value/ cda:origin alText/cda :reference "
  5667                                                                       
  5668           attribute= "value" 
  5669           indexed="t rue"
  5670          >
  5671           #pndProble m
  5672          </action>        
  5673                                                     
  5674         </ifNotNul l>
  5675                                            
  5676        </mapping>
  5677                                           
  5678        <!-- 7.02  PROBLEM TY PE, R2, SN OMED CT, a lways UNK  in templat e -->
  5679                                           
  5680        <!-- 7.04  PROBLEM CO DE, Option al, SNOMED  CT -->
  5681                                           
  5682                                           
  5683                                           
  5684                                           
  5685                                           
  5686        <mapping >
  5687                                                    
  5688         <property>
  5689          icdCode
  5690         </property >
  5691                                                    
  5692         <xpath>
  5693          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: value
  5694         </xpath>
  5695                                                    
  5696         <ifNotNull >
  5697                                                              
  5698          <action 
  5699           action="se tAttribute
  5700           relative=" cda:transl ation" 
  5701           attribute= "code" 
  5702           property=" icdCode"
  5703          />
  5704                                                     
  5705         </ifNotNul l>    
  5706                                                    
  5707         <ifNull>
  5708                                                              
  5709          <action 
  5710           action="re move" 
  5711           relative=" cda:transl ation" 
  5712          />
  5713                                                     
  5714         </ifNull>
  5715                                            
  5716        </mapping>  
  5717                                           
  5718                                           
  5719        <mapping >  
  5720                                                    
  5721         <property>
  5722          icdCodeToS nomed
  5723         </property >
  5724                                                    
  5725         <xpath>
  5726          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: value
  5727         </xpath>
  5728                                                    
  5729         <ifNotNull >
  5730                                                              
  5731          <action 
  5732           action="se tAttribute
  5733           attribute= "code" 
  5734           property=" icdCodeToS nomed" 
  5735          />      
  5736                                                              
  5737          <action 
  5738           action="se tAttribute
  5739           attribute= "displayNa me" 
  5740           property=" icdCodeToS nomedDispl ayName" 
  5741          />                                         
  5742                                                     
  5743         </ifNotNul l>    
  5744                                                    
  5745         <!-- <ifNu ll>                                      
  5746                                                             <a ction acti on="setAtt ribute" eq ualsProper ty="sctCod e" attribu te="nullFl avor" >UNK </action>
  5747                                                     </ifNull>  -->
  5748                                            
  5749        </mapping>  
  5750                                           
  5751                                           
  5752        <mapping 
  5753         equalsProp erty="sctC ode" 
  5754         notEqualsP roperty="i cdCode" 
  5755         notEqualsV alue="V22. 2"
  5756       
  5757                                                    
  5758         <property>
  5759          icdCodeToS nomed
  5760         </property >
  5761                                                    
  5762         <xpath>
  5763          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: value
  5764         </xpath>
  5765                                                    
  5766         <ifNotNull >
  5767                                                     
  5768         </ifNotNul l>    
  5769                                                    
  5770         <ifNull>                                            
  5771                                                              
  5772          <action 
  5773           action="se tAttribute
  5774           equalsProp erty="sctC ode" 
  5775           attribute= "nullFlavo r" 
  5776          >
  5777           UNK
  5778          </action>
  5779                                                     
  5780         </ifNull>
  5781                                            
  5782        </mapping>                                 
  5783                                           
  5784                                           
  5785        <mapping>
  5786                                                    
  5787         <property>
  5788          sctCode
  5789         </property >
  5790                                                    
  5791         <xpath>
  5792          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: value
  5793         </xpath>
  5794                                                    
  5795         <ifNotNull >
  5796                                                              
  5797          <action 
  5798           action="se tAttribute
  5799           attribute= "code" 
  5800          />
  5801                                                              
  5802          <action 
  5803           action="se tAttribute
  5804           attribute= "displayNa me" 
  5805           property=" sctName"
  5806          >
  5807          </action>
  5808                                                              
  5809          <action 
  5810           action="re move" 
  5811           relative=" cda:transl ation" 
  5812          />                                                  
  5813                                                     
  5814         </ifNotNul l>
  5815                                                                                
  5816                                            
  5817        </mapping>
  5818       
  5819                                           
  5820                                           
  5821        <!-- Added  for STS s tatic tran slation Pr egnancy Pr oblem Code .Rational  ID 163154  User Story -->
  5822                                           
  5823        <mapping 
  5824         equalsProp erty="icdC ode" 
  5825         equalsValu e="V22.2" 
  5826        >
  5827                                                    
  5828         <property 
  5829          optional=" true"
  5830         >
  5831          icdCode
  5832         </property >
  5833                                                    
  5834         <xpath>
  5835          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: code
  5836         </xpath>
  5837                                                    
  5838         <ifNotNull >
  5839                                                              
  5840          <action 
  5841           action="re moveAttrib utes" 
  5842          />
  5843                                                              
  5844          <action 
  5845           action="se tAttribute
  5846           attribute= "code"
  5847          >
  5848           77386006
  5849          </action>
  5850                                                              
  5851          <action 
  5852           action="se tAttribute
  5853           attribute= "displayNa me"
  5854          >
  5855           Patient cu rrently pr egnant (fi nding)
  5856          </action>
  5857                                                              
  5858          <action 
  5859           action="se tAttribute
  5860           attribute= "xsi:type"
  5861          >
  5862           CD
  5863          </action>
  5864                                                              
  5865          <action 
  5866           action="se tAttribute
  5867           attribute= "codeSyste m"
  5868          >
  5869           2.16.840.1 .113883.6. 96
  5870          </action>
  5871                                                              
  5872          <action 
  5873           action="se tAttribute
  5874           attribute= "codeSyste mName"
  5875          >
  5876           SNOMED CT
  5877          </action>
  5878                                                     
  5879         </ifNotNul l>
  5880                                            
  5881        </mapping>
  5882                                           
  5883                                           
  5884        <!-- 7.04  PROBLEM CO DE Removed  b/c remov ed in temp late -->
  5885                                           
  5886        <!-- 7.04. 1 PROBLEM  STATUS, Op tional, Re moved b/c  remove in  template - ->
  5887                                           
  5888        <mapping>
  5889                                                    
  5890         <property>
  5891          statusCode
  5892         </property >
  5893                                                    
  5894         <xpath>
  5895          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: entryRelat ionship/cd a:observat ion/cda:va lue
  5896         </xpath>
  5897                                                    
  5898         <ifNotNull >
  5899                                                              
  5900          <action 
  5901           action="se tAttribute
  5902           attribute= "code" 
  5903          />
  5904                                                     
  5905         </ifNotNul l>
  5906                                            
  5907        </mapping>
  5908                                           
  5909        <mapping>
  5910                                                    
  5911         <property>
  5912          statusDisp lay
  5913         </property >
  5914                                                    
  5915         <xpath>
  5916          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: entryRelat ionship/cd a:observat ion/cda:va lue
  5917         </xpath>
  5918                                                    
  5919         <ifNotNull >
  5920                                                              
  5921          <action 
  5922           action="se tAttribute
  5923           attribute= "displayNa me" 
  5924          />
  5925                                                     
  5926         </ifNotNul l>
  5927                                            
  5928        </mapping>
  5929                                           
  5930        <mapping>
  5931                                                    
  5932         <property>
  5933          status.nam e
  5934         </property >
  5935                                                    
  5936         <xpath>
  5937          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: entryRelat ionship/cd a:observat ion/cda:va lue/cda:or iginalText
  5938         </xpath>
  5939                                                    
  5940         <ifNotNull >
  5941                                                              
  5942          <action 
  5943           action="se tValue" 
  5944          />
  5945                                                     
  5946         </ifNotNul l>
  5947                                            
  5948        </mapping>
  5949                                           
  5950        <mapping>
  5951                                                    
  5952         <property 
  5953          collection ="true"
  5954         >
  5955          comments,c omments.co mment
  5956         </property >
  5957                                                    
  5958         <xpath>
  5959          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: entryRelat ionship[@t ypeCode='M FST']
  5960         </xpath>
  5961                              
  5962         <ifNotNull >
  5963                                    
  5964          <action 
  5965           action="se tAttribute "
  5966                                        
  5967           relative=" cda:act/cd a:text/cda :reference "
  5968                                        
  5969           attribute= "value" 
  5970           indexed="t rue"
  5971          >
  5972           #pndCommen t
  5973          </action>
  5974                                    
  5975          <action 
  5976           action="ev aluateMapp ings" 
  5977          />
  5978                               
  5979         </ifNotNul l>
  5980                              
  5981         <mappings>
  5982                                    
  5983          <mapping>
  5984                                         
  5985           <property 
  5986            optional=" true"
  5987           >
  5988            code
  5989           </property >
  5990                                         
  5991           <xpath>
  5992            .
  5993           </xpath>
  5994                                         
  5995           <ifNotNull >
  5996                                               
  5997            <action 
  5998             action="ap pendAttrib ute" 
  5999             relative=" cda:act/cd a:text/cda :reference "
  6000                                                       
  6001             attribute= "value" 
  6002             indexed="t rue"
  6003            >
  6004             _
  6005            </action>
  6006                                          
  6007           </ifNotNul l>
  6008                                         
  6009           <ifNull>
  6010                                               
  6011            <action 
  6012             action="ap pendAttrib ute" 
  6013             relative=" cda:act/cd a:text/cda :reference "
  6014                                                       
  6015             attribute= "value" 
  6016             indexed="t rue"
  6017            >
  6018             _
  6019            </action>
  6020                                          
  6021           </ifNull>
  6022                                     
  6023          </mapping>
  6024                               
  6025         </mappings >
  6026                              
  6027         <ifNull>
  6028                                    
  6029          <action 
  6030           action="se tAttribute
  6031           relative=" cda:act/cd a:text/cda :reference "
  6032                                                                       
  6033           attribute= "value" 
  6034           indexed="t rue"
  6035          >
  6036           #pndCommen t
  6037          </action>
  6038                               
  6039         </ifNull>
  6040                                            
  6041        </mapping>
  6042                                  
  6043       </mappings >
  6044                        
  6045      </mapping>
  6046                       
  6047      <!-- PAYER  SECTION N ARRATIVE - ->
  6048                       
  6049      <mapping>
  6050                                 
  6051       <property 
  6052        collection ="true" 
  6053       >
  6054        insurances
  6055       </property >
  6056                                 
  6057       <xpath>
  6058        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.18']
  6059       </xpath>
  6060                                 
  6061       <ifNotNull >
  6062                                           
  6063        <action 
  6064         action="ev aluateMapp ings"
  6065                                                   
  6066         relative=" cda:sectio n/cda:text /cda:table [@ID='insu ranceNarra tive']/cda :tbody/cda :tr" 
  6067        />
  6068                                  
  6069       </ifNotNul l>
  6070                                 
  6071       <mappings>
  6072                                           
  6073        <mapping>
  6074                                                    
  6075         <property>
  6076          insuranceT ype.name
  6077         </property >
  6078                                                    
  6079         <xpath>
  6080          cda:td/cda :content[@ ID='insIns urance']
  6081         </xpath>
  6082                                                    
  6083         <ifNotNull >
  6084                                                              
  6085          <action 
  6086           action="se tAttribute
  6087           attribute= "ID" 
  6088           indexed="t rue"
  6089          >
  6090           insInsuran ce
  6091          </action>
  6092                                                              
  6093          <action 
  6094           action="se tValue" 
  6095          />
  6096                                                     
  6097         </ifNotNul l>
  6098                                                    
  6099         <ifNull>
  6100                                                              
  6101          <action 
  6102           action="se tAttribute
  6103           attribute= "ID" 
  6104           indexed="t rue"
  6105          >
  6106           insInsuran ce
  6107          </action>
  6108                                                     
  6109                                                     
  6110         </ifNull>
  6111                                            
  6112        </mapping>
  6113                                           
  6114        <mapping>
  6115                                                    
  6116         <property>
  6117          company.na me
  6118         </property >
  6119                                                    
  6120         <xpath>
  6121          cda:td/cda :content[@ ID='insCom pany']
  6122         </xpath>
  6123                                                    
  6124         <ifNotNull >
  6125                                                              
  6126          <action 
  6127           action="se tAttribute
  6128           attribute= "ID" 
  6129           indexed="t rue"
  6130          >
  6131           insCompany
  6132          </action>
  6133                                                              
  6134          <action 
  6135           action="se tValue" 
  6136          />
  6137                                                     
  6138         </ifNotNul l>
  6139                                                    
  6140         <ifNull>
  6141                                                              
  6142          <action 
  6143           action="se tAttribute
  6144           attribute= "ID" 
  6145           indexed="t rue"
  6146          >
  6147           insCompany
  6148          </action>
  6149                                                     
  6150                                                     
  6151         </ifNull>
  6152                                            
  6153        </mapping>
  6154                                           
  6155        <mapping>
  6156                                                    
  6157         <property>
  6158          groupNumbe r
  6159         </property >
  6160                                                    
  6161         <xpath>
  6162          cda:td/cda :content[@ ID='insGro up']
  6163         </xpath>
  6164                                                    
  6165         <ifNotNull >
  6166                                                              
  6167          <action 
  6168           action="se tAttribute
  6169           attribute= "ID" 
  6170           indexed="t rue"
  6171          >
  6172           insGroup
  6173          </action>
  6174                                                              
  6175          <action 
  6176           action="se tValue" 
  6177          />
  6178                                                     
  6179         </ifNotNul l>
  6180                                                    
  6181         <ifNull>
  6182                                                              
  6183          <action 
  6184           action="se tAttribute
  6185           attribute= "ID" 
  6186           indexed="t rue"
  6187          >
  6188           insGroup
  6189          </action>
  6190                                                     
  6191                                                     
  6192         </ifNull>
  6193                                            
  6194        </mapping>
  6195                                           
  6196        <mapping>
  6197                                                    
  6198         <property>
  6199          relationsh ip
  6200         </property >
  6201                                                    
  6202         <xpath>
  6203          cda:td/cda :content[@ ID='insRel ationship' ]
  6204         </xpath>
  6205                                                    
  6206         <ifNotNull >
  6207                                                              
  6208          <action 
  6209           action="se tAttribute
  6210           attribute= "ID" 
  6211           indexed="t rue"
  6212          >
  6213           insRelatio nship
  6214          </action>
  6215                                                              
  6216          <action 
  6217           action="se tValue" 
  6218          />
  6219                                                     
  6220         </ifNotNul l>
  6221                                                    
  6222         <ifNull>
  6223                                                              
  6224          <action 
  6225           action="se tAttribute
  6226           attribute= "ID" 
  6227           indexed="t rue"
  6228          >
  6229           insRelatio nship
  6230          </action>
  6231                                                     
  6232                                                     
  6233         </ifNull>
  6234                                            
  6235        </mapping>
  6236                                           
  6237                                           
  6238        <mapping>
  6239                                                    
  6240         <property>
  6241          prettyStar tDate
  6242         </property >
  6243                                                    
  6244         <xpath>
  6245          cda:td/cda :content[@ ID='insEff ectiveDate ']
  6246         </xpath>
  6247                                                    
  6248         <ifNotNull >
  6249                                                              
  6250          <action 
  6251           action="se tAttribute
  6252           attribute= "ID" 
  6253           indexed="t rue"
  6254          >
  6255           insEffecti veDate
  6256          </action>
  6257                                                              
  6258          <action 
  6259           action="se tValue"  
  6260          />
  6261                                                     
  6262         </ifNotNul l>
  6263                                                    
  6264         <ifNull>
  6265                                                              
  6266          <action 
  6267           action="se tAttribute
  6268           attribute= "ID" 
  6269           indexed="t rue"
  6270          >
  6271           insEffecti veDate
  6272          </action>
  6273                                                     
  6274                                                     
  6275         </ifNull>
  6276                                            
  6277        </mapping>
  6278                                           
  6279                                           
  6280                                           
  6281        <mapping>
  6282                                                    
  6283         <property>
  6284          prettyEndD ate
  6285         </property >
  6286                                                    
  6287         <xpath>
  6288          cda:td/cda :content[@ ID='insExp irationDat e']
  6289         </xpath>
  6290                                                    
  6291         <ifNotNull >
  6292                                                              
  6293          <action 
  6294           action="se tAttribute
  6295           attribute= "ID" 
  6296           indexed="t rue"
  6297          >
  6298           insExpirat ionDate
  6299          </action>
  6300                                                              
  6301          <action 
  6302           action="se tValue"  
  6303          />
  6304                                                     
  6305         </ifNotNul l>
  6306                                                    
  6307         <ifNull>
  6308                                                              
  6309          <action 
  6310           action="se tAttribute
  6311           attribute= "ID" 
  6312           indexed="t rue"
  6313          >
  6314           insExpirat ionDate
  6315          </action>
  6316                                                     
  6317                                                     
  6318         </ifNull>
  6319                                            
  6320        </mapping>
  6321                                           
  6322                                           
  6323        <mapping>
  6324                                                    
  6325         <property>
  6326          groupName
  6327         </property >
  6328                                                    
  6329         <xpath>
  6330          cda:td/cda :content[@ ID='insGro upName']
  6331         </xpath>
  6332                                                    
  6333         <ifNotNull >
  6334                                                              
  6335          <action 
  6336           action="se tAttribute
  6337           attribute= "ID" 
  6338           indexed="t rue"
  6339          >
  6340           insGroupNa me
  6341          </action>
  6342                                                              
  6343          <action 
  6344           action="se tValue" 
  6345          />
  6346                                                     
  6347         </ifNotNul l>
  6348                                                    
  6349         <ifNull>
  6350                                                              
  6351          <action 
  6352           action="se tAttribute
  6353           attribute= "ID" 
  6354           indexed="t rue"
  6355          >
  6356           insGroupNa me
  6357          </action>
  6358                                                     
  6359                                                     
  6360         </ifNull>
  6361                                            
  6362        </mapping>
  6363                                           
  6364                                           
  6365                                           
  6366        <mapping>
  6367                                                    
  6368         <property>
  6369          subscriber .code
  6370         </property >
  6371                                                    
  6372         <xpath>
  6373          cda:td/cda :content[@ ID='insMem berId']
  6374         </xpath>
  6375                                                    
  6376         <ifNotNull >
  6377                                                              
  6378          <action 
  6379           action="se tAttribute
  6380           attribute= "ID" 
  6381           indexed="t rue"
  6382          >
  6383           insMemberI d
  6384          </action>
  6385                                                              
  6386          <action 
  6387           action="se tValue" 
  6388          />
  6389                                                     
  6390         </ifNotNul l>
  6391                                                    
  6392         <ifNull>
  6393                                                              
  6394          <action 
  6395           action="se tAttribute
  6396           attribute= "ID" 
  6397           indexed="t rue"
  6398          >
  6399           insMemberI d
  6400          </action>
  6401                                                     
  6402                                                     
  6403         </ifNull>
  6404                                            
  6405        </mapping>
  6406                                           
  6407                                           
  6408        <mapping>
  6409                                                    
  6410         <property>
  6411          subscriber .name
  6412         </property >
  6413                                                    
  6414         <xpath>
  6415          cda:td/cda :content[@ ID='insMem berName']
  6416         </xpath>
  6417                                                    
  6418         <ifNotNull >
  6419                                                              
  6420          <action 
  6421           action="se tAttribute
  6422           attribute= "ID" 
  6423           indexed="t rue"
  6424          >
  6425           insMemberN ame
  6426          </action>
  6427                                                              
  6428          <action 
  6429           action="se tValue" 
  6430          />
  6431                                                     
  6432         </ifNotNul l>
  6433                                                    
  6434         <ifNull>
  6435                                                              
  6436          <action 
  6437           action="se tAttribute
  6438           attribute= "ID" 
  6439           indexed="t rue"
  6440          >
  6441           insMemberN ame
  6442          </action>
  6443                                                     
  6444                                                     
  6445         </ifNull>
  6446                                            
  6447        </mapping>
  6448                                           
  6449                                  
  6450       </mappings >
  6451                        
  6452      </mapping>
  6453                       
  6454      <!-- PAYER  SECTION - ->
  6455                       
  6456      <mapping>
  6457                                 
  6458       <property 
  6459        optional=" true" 
  6460        collection ="true" 
  6461        merge="tru e"
  6462       >
  6463        insurances
  6464       </property >
  6465                                 
  6466       <xpath>
  6467        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.18']
  6468       </xpath>
  6469                                 
  6470       <ifNotNull >
  6471                                           
  6472        <action 
  6473         action="ev aluateMapp ings" 
  6474         relative=" cda:sectio n/cda:entr y" 
  6475        />
  6476                                  
  6477       </ifNotNul l>
  6478                                 
  6479       <ifNull>
  6480                                           
  6481        <action 
  6482         action="re move"
  6483        >
  6484         NI
  6485        </action>
  6486                                  
  6487       </ifNull>
  6488                                 
  6489       <mappings>
  6490                                           
  6491        <mapping>
  6492                                                    
  6493         <property>
  6494          facility.c ode
  6495         </property >
  6496                                                    
  6497         <xpath>
  6498          cda:act/cd a:entryRel ationship/ cda:act/cd a:author/c da:assigne dAuthor/cd a:represen tedOrganiz ation/cda: id
  6499         </xpath>
  6500                                                    
  6501         <ifNotNull >
  6502                                                              
  6503          <action 
  6504           action="se tAttribute
  6505           attribute= "extension
  6506          />
  6507                                                     
  6508         </ifNotNul l>
  6509                                            
  6510        </mapping>
  6511                                           
  6512        <mapping>
  6513                                                    
  6514         <!-- INFOR MATION SOU RCE FACILI TY NAME -- >
  6515                                                    
  6516         <property>
  6517          facility.n ame
  6518         </property >
  6519                                                    
  6520         <xpath>
  6521          cda:act/cd a:entryRel ationship/ cda:act/cd a:author/c da:assigne dAuthor/cd a:represen tedOrganiz ation/cda: name
  6522         </xpath>
  6523                                                    
  6524         <ifNotNull >
  6525                                                              
  6526          <action 
  6527           action="se tValue" 
  6528          />
  6529                                                     
  6530         </ifNotNul l>
  6531                                            
  6532        </mapping>
  6533                                           
  6534        <mapping>
  6535                                                    
  6536         <property>
  6537          effectiveD ate
  6538         </property >
  6539                                                    
  6540         <xpath>
  6541          cda:act/cd a:entryRel ationship/ cda:act/cd a:effectiv eTime/cda: low
  6542         </xpath>
  6543                                                    
  6544         <ifNotNull >
  6545                                                              
  6546          <action 
  6547           action="se tAttribute
  6548           attribute= "value" 
  6549          />
  6550                                                     
  6551         </ifNotNul l>
  6552                                            
  6553        </mapping>
  6554                                           
  6555        <mapping>
  6556                                                    
  6557         <property>
  6558          expiration Date
  6559         </property >
  6560                                                    
  6561         <xpath>
  6562          cda:act/cd a:entryRel ationship/ cda:act/cd a:effectiv eTime/cda: high
  6563         </xpath>
  6564                                                    
  6565         <ifNotNull >
  6566                                                              
  6567          <action 
  6568           action="se tAttribute
  6569           attribute= "value" 
  6570          />
  6571                                                     
  6572         </ifNotNul l>
  6573                                            
  6574        </mapping>
  6575                                           
  6576        <mapping>
  6577                                                    
  6578         <property>
  6579          insuranceT ype.code
  6580         </property >
  6581                                                    
  6582         <xpath>
  6583          cda:act/cd a:entryRel ationship/ cda:act/cd a:code
  6584         </xpath>
  6585                                                    
  6586         <ifNotNull >
  6587                                                              
  6588          <action 
  6589           action="se tAttribute
  6590           attribute= "code" 
  6591          />
  6592                                                     
  6593         </ifNotNul l>
  6594                                            
  6595        </mapping>
  6596                                           
  6597        <mapping>
  6598                                                    
  6599         <property>
  6600          insuranceT ype.name
  6601         </property >
  6602                                                    
  6603         <xpath>
  6604          cda:act/cd a:entryRel ationship/ cda:act/cd a:code
  6605         </xpath>
  6606                                                    
  6607         <ifNotNull >
  6608                                                              
  6609          <action 
  6610           action="se tAttribute
  6611           attribute= "displayNa me" 
  6612          />
  6613                                                     
  6614         </ifNotNul l>
  6615                                            
  6616        </mapping>
  6617                                           
  6618        <mapping>
  6619                                                    
  6620         <property>
  6621          insuranceT ype.name
  6622         </property >
  6623                                                    
  6624         <xpath>
  6625          cda:act/cd a:entryRel ationship/ cda:act/cd a:entryRel ationship/ cda:act/cd a:text
  6626         </xpath>
  6627                                                    
  6628         <ifNotNull >
  6629                                                              
  6630          <action 
  6631           action="se tValue" 
  6632          />
  6633                                                     
  6634         </ifNotNul l>
  6635                                            
  6636        </mapping>
  6637                                           
  6638        <mapping>
  6639                                                    
  6640         <property>
  6641          groupNumbe r
  6642         </property >
  6643                                                    
  6644         <xpath>
  6645          cda:act/cd a:entryRel ationship/ cda:act/cd a:entryRel ationship/ cda:act/cd a:id
  6646         </xpath>
  6647                                                    
  6648         <ifNotNull >
  6649                                                              
  6650          <action 
  6651           action="se tAttribute
  6652           attribute= "extension
  6653          />
  6654                                                     
  6655         </ifNotNul l>
  6656                                                    
  6657         <ifNull>
  6658                                                              
  6659          <action 
  6660           action="se tAttribute
  6661           attribute= "nullFlavo r"
  6662          >
  6663           UNK
  6664          </action>
  6665                                                     
  6666         </ifNull>
  6667                                            
  6668        </mapping>
  6669                                           
  6670        <mapping>
  6671                                                    
  6672         <property>
  6673          groupNumbe r
  6674         </property >
  6675                                                    
  6676         <xpath>
  6677          cda:act/cd a:entryRel ationship/ cda:act/cd a:id
  6678         </xpath>
  6679                                                    
  6680         <ifNotNull >
  6681                                                              
  6682          <action 
  6683           action="se tAttribute
  6684           attribute= "extension
  6685          />
  6686                                                     
  6687         </ifNotNul l>
  6688                                                    
  6689         <ifNull>
  6690                                                              
  6691          <action 
  6692           action="se tAttribute
  6693           attribute= "nullFlavo r"
  6694          >
  6695           UNK
  6696          </action>
  6697                                                     
  6698         </ifNull>
  6699                                            
  6700        </mapping>
  6701                                           
  6702        <mapping>
  6703                                                    
  6704         <property>
  6705          company.te lecom
  6706         </property >
  6707                                                    
  6708         <xpath>
  6709          cda:act/cd a:entryRel ationship/ cda:act/cd a:performe r/cda:assi gnedEntity /cda:telec om
  6710         </xpath>
  6711                                                    
  6712         <ifNotNull >
  6713                                                              
  6714          <action 
  6715           action="se tAttribute
  6716           attribute= "value" 
  6717          />
  6718                                                     
  6719         </ifNotNul l>
  6720                                                    
  6721         <ifNull>
  6722                                                              
  6723          <action 
  6724           action="re move" 
  6725          />
  6726                                                     
  6727         </ifNull>
  6728                                            
  6729        </mapping>
  6730                                           
  6731        <mapping>
  6732                                                    
  6733         <property>
  6734          company.na me
  6735         </property >
  6736                                                    
  6737         <xpath>
  6738          cda:act/cd a:entryRel ationship/ cda:act/cd a:performe r/cda:assi gnedEntity /cda:repre sentedOrga nization/c da:name
  6739         </xpath>
  6740                                                    
  6741         <ifNotNull >
  6742                                                              
  6743          <action 
  6744           action="se tValue" 
  6745          />
  6746                                                     
  6747         </ifNotNul l>
  6748                                            
  6749        </mapping>
  6750                                           
  6751        <mapping>
  6752                                                    
  6753         <property 
  6754          optional=" true"
  6755         >
  6756          company.ad dress
  6757         </property >
  6758                                                    
  6759         <xpath>
  6760          .
  6761         </xpath>
  6762                                                    
  6763         <ifNotNull >
  6764                                                              
  6765          <action 
  6766           action="ev aluateMapp ings" 
  6767          />
  6768                                                     
  6769         </ifNotNul l>
  6770                                                    
  6771         <ifNull>
  6772                                                              
  6773          <action 
  6774           action="re move" 
  6775           relative=" cda:act/cd a:entryRel ationship/ cda:act/cd a:performe r/cda:assi gnedEntity /cda:addr"  
  6776          />
  6777                                                     
  6778         </ifNull>
  6779                                                    
  6780         <mappings>
  6781                                                              
  6782          <mapping>
  6783                                                                        
  6784           <property>
  6785            streetLine 1
  6786           </property >
  6787                                                                        
  6788           <xpath>
  6789            cda:act/cd a:entryRel ationship/ cda:act/cd a:performe r/cda:assi gnedEntity /cda:addr/ cda:street AddressLin e[1]
  6790           </xpath>
  6791                                                                        
  6792           <ifNotNull >
  6793                                                                                  
  6794            <action 
  6795             action="se tValue" 
  6796            />
  6797                                                                         
  6798           </ifNotNul l>
  6799                                                                        
  6800           <ifNull>
  6801                                                                                   
  6802            <action 
  6803             action="re move" 
  6804            /> 
  6805                                                                         
  6806           </ifNull>
  6807                                                               
  6808          </mapping>
  6809                                                              
  6810          <mapping>
  6811                                                                        
  6812           <property>
  6813            streetLine 2
  6814           </property >
  6815                                                                        
  6816           <xpath>
  6817            cda:act/cd a:entryRel ationship/ cda:act/cd a:performe r/cda:assi gnedEntity /cda:addr/ cda:street AddressLin e[2]
  6818           </xpath>
  6819                                                                        
  6820           <ifNotNull >
  6821                                                                                  
  6822            <action 
  6823             action="se tValue" 
  6824            />
  6825                                                                         
  6826           </ifNotNul l>
  6827                                                                        
  6828           <ifNull>
  6829                                                                                  
  6830            <action 
  6831             action="re move" 
  6832            />
  6833                                                                         
  6834           </ifNull>
  6835                                                               
  6836          </mapping>
  6837                                                              
  6838          <mapping>
  6839                                                                        
  6840           <property>
  6841            city
  6842           </property >
  6843                                                                        
  6844           <xpath>
  6845            cda:act/cd a:entryRel ationship/ cda:act/cd a:performe r/cda:assi gnedEntity /cda:addr/ cda:city
  6846           </xpath>
  6847                                                                        
  6848           <ifNotNull >
  6849                                                                                  
  6850            <action 
  6851             action="se tValue" 
  6852            />
  6853                                                                         
  6854           </ifNotNul l>
  6855                                                                        
  6856           <ifNull>
  6857                                                                                  
  6858            <action 
  6859             action="re move" 
  6860            />
  6861                                                                         
  6862           </ifNull>
  6863                                                               
  6864          </mapping>
  6865                                                              
  6866          <mapping>
  6867                                                                        
  6868           <property>
  6869            stateProvi nce
  6870           </property >
  6871                                                                        
  6872           <xpath>
  6873            cda:act/cd a:entryRel ationship/ cda:act/cd a:performe r/cda:assi gnedEntity /cda:addr/ cda:state
  6874           </xpath>
  6875                                                                        
  6876           <ifNotNull >
  6877                                                                                  
  6878            <action 
  6879             action="se tValue" 
  6880            />
  6881                                                                         
  6882           </ifNotNul l>
  6883                                                               
  6884          </mapping>
  6885                                                              
  6886          <mapping>
  6887                                                                        
  6888           <property>
  6889            postalCode
  6890           </property >
  6891                                                                        
  6892           <xpath>
  6893            cda:act/cd a:entryRel ationship/ cda:act/cd a:performe r/cda:assi gnedEntity /cda:addr/ cda:postal Code
  6894           </xpath>
  6895                                                                        
  6896           <ifNotNull >
  6897                                                                                  
  6898            <action 
  6899             action="se tValue" 
  6900            />
  6901                                                                         
  6902           </ifNotNul l>
  6903                                                               
  6904          </mapping>
  6905                                                     
  6906         </mappings >
  6907                                            
  6908        </mapping>
  6909                                           
  6910        <mapping>
  6911                                                    
  6912         <property>
  6913          relationsh ip
  6914         </property >
  6915                                                    
  6916         <xpath>
  6917          cda:act/cd a:entryRel ationship/ cda:act/cd a:particip ant[@typeC ode='COV'] /cda:parti cipantRole /cda:code/ cda:origin alText/cda :reference
  6918         </xpath>
  6919                                                    
  6920         <ifNotNull >
  6921                                                              
  6922          <action 
  6923           action="se tAttribute
  6924           attribute= "value" 
  6925           indexed="t rue"
  6926          >
  6927           #insRelati onship
  6928          </action>
  6929                                                     
  6930         </ifNotNul l>
  6931                                                    
  6932         <ifNull>
  6933                                                              
  6934          <action 
  6935           action="se tAttribute
  6936           attribute= "value" 
  6937           indexed="t rue"
  6938          >
  6939           #insRelati onship
  6940          </action>
  6941                                                     
  6942         </ifNull>                                           
  6943                                            
  6944        </mapping>                                 
  6945                                           
  6946        <mapping>
  6947                                                    
  6948         <property>
  6949          relationsh ipTypeCode
  6950         </property >
  6951                                                    
  6952         <xpath>
  6953          cda:act/cd a:entryRel ationship/ cda:act/cd a:particip ant[@typeC ode='COV'] /cda:parti cipantRole /cda:code
  6954         </xpath>
  6955                                                    
  6956         <ifNotNull >
  6957                                                              
  6958          <action 
  6959           action="re moveAttrib utes" 
  6960          />
  6961                                                              
  6962          <action 
  6963           action="se tAttribute
  6964           attribute= "codeSyste m"
  6965          >
  6966           2.16.840.1 .113883.5. 111
  6967          </action>
  6968                                                              
  6969          <action 
  6970           action="se tAttribute
  6971           attribute= "codeSyste mName"
  6972          >
  6973           RoleCode
  6974          </action>
  6975                                                              
  6976          <action 
  6977           action="se tAttribute
  6978           attribute= "code" 
  6979          />
  6980                                                              
  6981          <action 
  6982           action="se tAttribute
  6983           attribute= "displayNa me" 
  6984           property=" relationsh ipTypeDisp lay"
  6985          />
  6986                                                     
  6987         </ifNotNul l>
  6988                                            
  6989        </mapping>                         
  6990                                           
  6991        <mapping>
  6992                                                    
  6993         <property>
  6994          subscriber .code
  6995         </property >
  6996                                                    
  6997         <xpath>
  6998          cda:act/cd a:entryRel ationship/ cda:act/cd a:particip ant[@typeC ode='COV'] /cda:parti cipantRole /cda:id
  6999         </xpath>
  7000                                                    
  7001         <ifNotNull >
  7002                                                              
  7003          <action 
  7004           action="se tAttribute
  7005           attribute= "extension
  7006          />
  7007                                                     
  7008         </ifNotNul l>
  7009                                                    
  7010         <ifNull>
  7011                                                              
  7012          <action 
  7013           action="se tAttribute
  7014           attribute= "nullFlavo r"
  7015          >
  7016           UNK
  7017          </action>
  7018                                                     
  7019         </ifNull>
  7020                                            
  7021        </mapping>
  7022                                           
  7023        <mapping>
  7024                                                    
  7025         <property 
  7026          optional=" true"
  7027         >
  7028          demographi cs.namePre fix
  7029         </property >
  7030                                                    
  7031         <xpath>
  7032          cda:act/cd a:entryRel ationship/ cda:act/cd a:particip ant[@typeC ode='COV'] /cda:parti cipantRole /cda:playi ngEntity/c da:name/cd a:prefix
  7033         </xpath>
  7034                                                    
  7035         <ifNotNull >
  7036                                                              
  7037          <action 
  7038           action="se tValue" 
  7039          />
  7040                                                     
  7041         </ifNotNul l>
  7042                                                    
  7043         <ifNull>
  7044                                                              
  7045          <action 
  7046           action="re move" 
  7047          />
  7048                                                     
  7049         </ifNull>
  7050                                            
  7051        </mapping>
  7052                                           
  7053        <mapping>
  7054                                                    
  7055         <property>
  7056          demographi cs.FIRST_N AME
  7057         </property >
  7058                                                    
  7059         <xpath>
  7060          cda:act/cd a:entryRel ationship/ cda:act/cd a:particip ant[@typeC ode='COV'] /cda:parti cipantRole /cda:playi ngEntity/c da:name/cd a:given
  7061         </xpath>
  7062                                                    
  7063         <ifNotNull >
  7064                                                              
  7065          <action 
  7066           action="se tValue" 
  7067          />
  7068                                                     
  7069         </ifNotNul l>
  7070                                                    
  7071         <ifNull>
  7072                                                              
  7073          <action 
  7074           action="se tAttribute
  7075           attribute= "nullFlavo r"
  7076          >
  7077           UNK
  7078          </action>
  7079                                                     
  7080         </ifNull>
  7081                                            
  7082        </mapping>
  7083                                           
  7084        <mapping>
  7085                                                    
  7086         <property>
  7087          demographi cs.SURNAME
  7088         </property >
  7089                                                    
  7090         <xpath>
  7091          cda:act/cd a:entryRel ationship/ cda:act/cd a:particip ant[@typeC ode='COV'] /cda:parti cipantRole /cda:playi ngEntity/c da:name/cd a:family
  7092         </xpath>
  7093                                                    
  7094         <ifNotNull >
  7095                                                              
  7096          <action 
  7097           action="se tValue" 
  7098          />
  7099                                                     
  7100         </ifNotNul l>
  7101                                                    
  7102         <ifNull>
  7103                                                              
  7104          <action 
  7105           action="se tAttribute
  7106           attribute= "nullFlavo r"
  7107          >
  7108           UNK
  7109          </action>
  7110                                                     
  7111         </ifNull>
  7112                                            
  7113        </mapping>
  7114                                           
  7115        <mapping>
  7116                                                    
  7117         <property 
  7118          optional=" true"
  7119         >
  7120          demographi cs.nameSuf fix
  7121         </property >
  7122                                                    
  7123         <xpath>
  7124          cda:act/cd a:entryRel ationship/ cda:act/cd a:particip ant[@typeC ode='COV'] /cda:parti cipantRole /cda:playi ngEntity/c da:name/cd a:suffix
  7125         </xpath>
  7126                                                    
  7127         <ifNotNull >
  7128                                                              
  7129          <action 
  7130           action="se tValue" 
  7131          />
  7132                                                     
  7133         </ifNotNul l>
  7134                                                    
  7135         <ifNull>
  7136                                                              
  7137          <action 
  7138           action="re move" 
  7139          />
  7140                                                     
  7141         </ifNull>
  7142                                            
  7143        </mapping>
  7144       
  7145                                           
  7146        <!-- Remov e HLD entr y if the s ubscriber  is the pat ient -->       
  7147                                           
  7148        <mapping 
  7149         equalsProp erty="rela tionship" 
  7150         equalsValu e="PATIENT "
  7151        >
  7152                                                    
  7153         <property>
  7154          subscriber .name
  7155         </property >
  7156                                                    
  7157         <xpath>
  7158          cda:act/cd a:entryRel ationship/ cda:act/cd a:particip ant[@typeC ode='HLD']
  7159         </xpath>
  7160                                                    
  7161         <ifNotNull >
  7162                                                              
  7163          <action 
  7164           action="re move" 
  7165          />
  7166                                                     
  7167         </ifNotNul l>
  7168                                                    
  7169         <ifNull>
  7170                                                              
  7171          <action 
  7172           action="re move" 
  7173          />
  7174                                                     
  7175         </ifNull>
  7176                                            
  7177        </mapping>
  7178                                           
  7179        <mapping 
  7180         notEqualsP roperty="r elationshi p" 
  7181         notEqualsV alue="PATI ENT"
  7182        >
  7183                                                    
  7184         <property 
  7185          optional=" true"
  7186         >
  7187          subscriber .dob
  7188         </property >
  7189                                                    
  7190         <xpath>
  7191          cda:act/cd a:entryRel ationship/ cda:act/cd a:particip ant[@typeC ode='HLD'] /cda:parti cipantRole /cda:playi ngEntity/s dtc:birthT ime
  7192         </xpath>
  7193                                                    
  7194         <ifNotNull >
  7195                                                              
  7196          <action 
  7197           action="se tAttribute
  7198           attribute= "value"
  7199          />
  7200                                                              
  7201          <action 
  7202           action="re moveAttrib utes" 
  7203           attribute= "nullFlavo r" 
  7204          />
  7205                                                     
  7206         </ifNotNul l>
  7207                                                    
  7208         <ifNull>
  7209                                                              
  7210          <action 
  7211           action="re move" 
  7212          />
  7213                                                     
  7214         </ifNull>
  7215                                            
  7216        </mapping>
  7217                                           
  7218                                           
  7219        <mapping 
  7220         notEqualsP roperty="r elationshi p" 
  7221         notEqualsV alue="PATI ENT"
  7222        >
  7223                                                    
  7224         <property>
  7225          subscriber .code
  7226         </property >
  7227                                                    
  7228         <xpath>
  7229          cda:act/cd a:entryRel ationship/ cda:act/cd a:particip ant[@typeC ode='HLD'] /cda:parti cipantRole /cda:id
  7230         </xpath>
  7231                                                    
  7232         <ifNotNull >
  7233                                                              
  7234          <action 
  7235           action="se tAttribute
  7236           attribute= "extension
  7237          />
  7238                                                     
  7239         </ifNotNul l>
  7240                                                    
  7241         <ifNull>
  7242                                                              
  7243          <action 
  7244           action="se tAttribute
  7245           attribute= "nullFlavo r"
  7246          >
  7247           UNK
  7248          </action>
  7249                                                     
  7250         </ifNull>
  7251                                            
  7252        </mapping>                                 
  7253                                           
  7254        <mapping 
  7255         notEqualsP roperty="r elationshi p" 
  7256         notEqualsV alue="PATI ENT"
  7257        >
  7258                                                    
  7259         <property>
  7260          subscriber .name
  7261         </property >
  7262                                                    
  7263         <xpath>
  7264          cda:act/cd a:entryRel ationship/ cda:act/cd a:particip ant[@typeC ode='HLD'] /cda:parti cipantRole /cda:playi ngEntity/c da:name
  7265         </xpath>
  7266                                                    
  7267         <ifNotNull >
  7268                                                              
  7269          <action 
  7270           action="se tValue" 
  7271          />
  7272                                                     
  7273         </ifNotNul l>
  7274                                            
  7275        </mapping>
  7276                                           
  7277        <mapping 
  7278         notEqualsP roperty="r elationshi p" 
  7279         notEqualsV alue="PATI ENT"
  7280        >
  7281                                                    
  7282         <property 
  7283          optional=" true"
  7284         >
  7285          subscriber .telecom
  7286         </property >
  7287                                                    
  7288         <xpath>
  7289          cda:act/cd a:entryRel ationship/ cda:act/cd a:particip ant[@typeC ode='HLD'] /cda:parti cipantRole /cda:playi ngEntity/c da:telecom
  7290         </xpath>
  7291                                                    
  7292         <ifNotNull >
  7293                                                              
  7294          <action 
  7295           action="se tValue" 
  7296          />
  7297                                                     
  7298         </ifNotNul l>
  7299                                                    
  7300         <ifNull>
  7301                                                              
  7302          <action 
  7303           action="re move" 
  7304          />
  7305                                                     
  7306         </ifNull>                                           
  7307                                            
  7308        </mapping>
  7309                                           
  7310        <mapping 
  7311         notEqualsP roperty="r elationshi p" 
  7312         notEqualsV alue="PATI ENT"
  7313        >
  7314                                                    
  7315         <property 
  7316          optional=" true"
  7317         >
  7318          subscriber .address
  7319         </property >
  7320                                                    
  7321         <xpath>
  7322          cda:act/cd a:entryRel ationship/ cda:act/cd a:particip ant[@typeC ode='HLD'] /cda:parti cipantRole /cda:playi ngEntity/c da:addr
  7323         </xpath>
  7324                                                    
  7325         <ifNotNull >
  7326                                                              
  7327          <action 
  7328           action="se tValue" 
  7329           property=" streetLine 1" 
  7330          />
  7331                                                              
  7332          <action 
  7333           action="ap pendValue"  
  7334           property=" streetLine 2" 
  7335          />
  7336                                                              
  7337          <action 
  7338           action="ap pendValue"  
  7339           property=" city" 
  7340          />
  7341                                                              
  7342          <action 
  7343           action="ap pendValue"  
  7344           property=" stateProvi nce" 
  7345          />
  7346                                                              
  7347          <action 
  7348           action="ap pendValue"  
  7349           property=" postalCode
  7350          />
  7351                                                     
  7352         </ifNotNul l>
  7353                                                    
  7354         <ifNull>
  7355                                                              
  7356          <action 
  7357           action="re move" 
  7358          />
  7359                                                     
  7360         </ifNull>
  7361                                            
  7362        </mapping>
  7363                                  
  7364       </mappings >
  7365                        
  7366      </mapping>
  7367                       
  7368      <!-- Advan ce Directi ve SECTION  -->
  7369                       
  7370      <mapping>
  7371                                 
  7372       <property 
  7373        collection ="true" 
  7374        merge="tru e"
  7375       >
  7376        documents
  7377       </property >
  7378                                 
  7379       <xpath>
  7380        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.21.1']
  7381       </xpath>
  7382                                 
  7383       <ifNotNull >
  7384                                           
  7385        <action 
  7386         action="ev aluateMapp ings"
  7387                                                   
  7388         relative=" cda:sectio n/cda:text /cda:table [@ID='adva ncedirecti vesnarrati ve']/cda:t body/cda:t r" 
  7389        />
  7390                                  
  7391       </ifNotNul l>
  7392                                 
  7393       <mappings>
  7394                                           
  7395        <mapping>
  7396                                                    
  7397         <property>
  7398          nationalTi tle.name
  7399         </property >
  7400                                                    
  7401         <xpath>
  7402          cda:td/cda :content[@ ID='advanc eDirective ']
  7403         </xpath>
  7404                                                    
  7405         <ifNotNull >
  7406                                                              
  7407          <action 
  7408           action="se tAttribute
  7409           attribute= "ID" 
  7410           indexed="t rue"
  7411          >
  7412           advanceDir ective
  7413          </action>
  7414                                                              
  7415          <action 
  7416           action="se tValue" 
  7417          />
  7418                                                     
  7419         </ifNotNul l>
  7420                                                    
  7421         <ifNull>
  7422                                                              
  7423          <action 
  7424           action="se tAttribute
  7425           attribute= "ID" 
  7426           indexed="t rue"
  7427          >
  7428           advanceDir ective
  7429          </action>
  7430                                                              
  7431          <action 
  7432           action="se tValue" 
  7433           property=" name" 
  7434          />
  7435                                                     
  7436         </ifNull>
  7437                                            
  7438        </mapping>
  7439                                           
  7440        <mapping>
  7441                                                    
  7442         <property>
  7443          prettyDate Time
  7444         </property >
  7445                                                    
  7446         <xpath>
  7447          cda:td[1]
  7448         </xpath>
  7449                                                    
  7450         <ifNotNull >
  7451                                                              
  7452          <action 
  7453           action="se tValue" 
  7454          />
  7455                                                     
  7456         </ifNotNul l>
  7457                                            
  7458        </mapping>
  7459                                           
  7460        <mapping>
  7461                                                    
  7462         <property>
  7463          signingCli nician.nam e
  7464         </property >
  7465                                                    
  7466         <xpath>
  7467          cda:td/cda :content[@ ID='advDir Provider']
  7468         </xpath>
  7469                                                    
  7470         <ifNotNull >
  7471                                                              
  7472          <action 
  7473           action="se tAttribute
  7474           attribute= "ID" 
  7475           indexed="t rue"
  7476          >
  7477           advDirProv ider
  7478          </action>
  7479                                                              
  7480          <action 
  7481           action="se tValue" 
  7482          />
  7483                                                     
  7484         </ifNotNul l>
  7485                                                    
  7486         <ifNull>
  7487                                                              
  7488          <action 
  7489           action="se tAttribute
  7490           attribute= "ID" 
  7491           indexed="t rue"
  7492          >
  7493           advDirProv ider
  7494          </action>
  7495                                                              
  7496          <action 
  7497           action="se tValue" 
  7498           property=" name" 
  7499          />
  7500                                                     
  7501         </ifNull>
  7502                                            
  7503        </mapping>
  7504                                           
  7505        <mapping>
  7506                                                    
  7507         <property>
  7508          facility.n ame
  7509         </property >
  7510                                                    
  7511         <xpath>
  7512          cda:td/cda :content[@ ID='advDir Source']
  7513         </xpath>
  7514                                                    
  7515         <ifNotNull >
  7516                                                              
  7517          <action 
  7518           action="se tAttribute
  7519           attribute= "ID" 
  7520           indexed="t rue"
  7521          >
  7522           advDirSour ce
  7523          </action>
  7524                                                              
  7525          <action 
  7526           action="se tValue" 
  7527          />
  7528                                                     
  7529         </ifNotNul l>
  7530                                                    
  7531         <ifNull>
  7532                                                              
  7533          <action 
  7534           action="se tAttribute
  7535           attribute= "ID" 
  7536           indexed="t rue"
  7537          >
  7538           advDirSour ce
  7539          </action>
  7540                                                              
  7541          <action 
  7542           action="se tValue" 
  7543           property=" name" 
  7544          />
  7545                                                     
  7546         </ifNull>
  7547                                            
  7548        </mapping>
  7549                                  
  7550       </mappings >
  7551                        
  7552      </mapping>
  7553                       
  7554      <!-- Advan ce Directi ve SECTION  -->
  7555                       
  7556      <mapping>
  7557                                 
  7558       <property 
  7559        collection ="true" 
  7560        merge="tru e" 
  7561        optional=" true"
  7562       >
  7563        documents
  7564       </property >
  7565                                 
  7566       <xpath>
  7567        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.21.1']
  7568       </xpath>
  7569                                 
  7570       <ifNotNull >
  7571                                           
  7572        <action 
  7573         action="ev aluateMapp ings" 
  7574         relative=" cda:sectio n/cda:entr y" 
  7575        />
  7576                                  
  7577       </ifNotNul l>
  7578                                 
  7579       <ifNull>
  7580                                           
  7581        <action 
  7582         action="re move"
  7583        >
  7584         NI
  7585        </action>
  7586                                  
  7587       </ifNull>
  7588                                 
  7589       <mappings>
  7590                                           
  7591        <mapping>
  7592                                                    
  7593         <property 
  7594          indexed="t rue"
  7595         >
  7596          nationalTi tle.name
  7597         </property >
  7598                                                    
  7599         <xpath>
  7600          cda:observ ation/cda: code/cda:o riginalTex t/cda:refe rence
  7601         </xpath>
  7602                                                    
  7603         <ifNotNull >
  7604                                                              
  7605          <action 
  7606           action="se tAttribute
  7607           attribute= "value" 
  7608           indexed="t rue"
  7609          >
  7610           #advanceDi rective
  7611          </action>
  7612                                                     
  7613         </ifNotNul l>
  7614                                            
  7615        </mapping>
  7616                                           
  7617        <mapping>
  7618                                                    
  7619         <property>
  7620          referenceD ateTime
  7621         </property >
  7622                                                    
  7623         <xpath>
  7624          cda:observ ation/cda: effectiveT ime/cda:lo w
  7625         </xpath>
  7626                                                    
  7627         <ifNotNull >
  7628                                                              
  7629          <action 
  7630           action="se tAttribute
  7631           attribute= "value" 
  7632          />
  7633                                                     
  7634         </ifNotNul l>
  7635                                            
  7636        </mapping>
  7637                                           
  7638        <mapping>
  7639                                                    
  7640         <property>
  7641          signingCli nician.nam e
  7642         </property >
  7643                                                    
  7644         <xpath>
  7645          cda:observ ation/cda: participan t[@typeCod e="CST"]/c da:partici pantRole/c da:playing Entity/cda :name
  7646         </xpath>
  7647                                                    
  7648         <ifNotNull >
  7649                                                              
  7650          <action 
  7651           action="se tValue" 
  7652          />
  7653                                                     
  7654         </ifNotNul l>
  7655                                            
  7656        </mapping>
  7657       
  7658                                           
  7659        <mapping>
  7660                                                    
  7661         <property>
  7662          facility.c ode
  7663         </property >
  7664                                                    
  7665         <xpath>
  7666          cda:observ ation/cda: entryRelat ionship/cd a:act/cda: author/cda :assignedA uthor/cda: represente dOrganizat ion/cda:id
  7667         </xpath>
  7668                                                    
  7669         <ifNotNull >
  7670                                                              
  7671          <action 
  7672           action="se tAttribute
  7673           attribute= "extension
  7674          />
  7675                                                     
  7676         </ifNotNul l>
  7677                                            
  7678        </mapping>
  7679                                           
  7680        <mapping>
  7681                                                    
  7682         <!-- INFOR MATION SOU RCE FACILI TY NAME -- >
  7683                                                    
  7684         <property>
  7685          facility.n ame
  7686         </property >
  7687                                                    
  7688         <xpath>
  7689          cda:observ ation/cda: entryRelat ionship/cd a:act/cda: author/cda :assignedA uthor/cda: represente dOrganizat ion/cda:na me
  7690         </xpath>
  7691                                                    
  7692         <ifNotNull >
  7693                                                              
  7694          <action 
  7695           action="se tValue" 
  7696          />
  7697                                                     
  7698         </ifNotNul l>
  7699                                            
  7700        </mapping>
  7701                                  
  7702       </mappings >
  7703                        
  7704      </mapping>
  7705                       
  7706      <!-- MEDIC ATIONS NAR RITIVE -->
  7707                       
  7708      <mapping>
  7709                                 
  7710       <property 
  7711        collection ="true" 
  7712        merge="tru e" 
  7713        optional=" true"
  7714       >
  7715        medication s
  7716       </property >
  7717                                 
  7718       <xpath>
  7719        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.1.1']
  7720       </xpath>
  7721                                 
  7722       <ifNotNull >
  7723                                           
  7724        <action 
  7725         action="ev aluateMapp ings"
  7726                                                   
  7727         relative=" cda:sectio n/cda:text /cda:table [@ID='medi cationNarr ative']/cd a:tbody/cd a:tr" 
  7728        />
  7729                                  
  7730       </ifNotNul l>
  7731                                 
  7732       <mappings>
  7733                                           
  7734        <mapping>
  7735                                                    
  7736         <property 
  7737          optional=" true"
  7738         >
  7739          prodNameTe xt
  7740         </property >
  7741                                                    
  7742         <xpath>
  7743          cda:td/cda :content[@ ID='mndMed ication']
  7744         </xpath>
  7745                                                    
  7746         <ifNotNull >
  7747                                                              
  7748          <action 
  7749           action="se tAttribute
  7750           attribute= "ID" 
  7751           indexed="t rue"
  7752          >
  7753           mndMedicat ion
  7754          </action>
  7755                                                              
  7756          <action 
  7757           action="se tValue" 
  7758          />
  7759                                                     
  7760         </ifNotNul l>
  7761                                                    
  7762         <ifNull>
  7763                                                              
  7764          <action 
  7765           action="se tAttribute
  7766           attribute= "ID" 
  7767           indexed="t rue"
  7768          >
  7769           mndMedicat ion
  7770          </action>
  7771                                                              
  7772          <action 
  7773           action="se tValue" 
  7774           property=" name" 
  7775          />
  7776                                                     
  7777         </ifNull>
  7778                                            
  7779        </mapping>
  7780                                           
  7781        <mapping 
  7782         equalsProp erty="vaTy pe" 
  7783         equalsValu e="O"
  7784        >
  7785                                                    
  7786         <property 
  7787          optional=" true"
  7788         >
  7789          vaStatus
  7790         </property >
  7791                                                    
  7792         <xpath>
  7793          cda:td/cda :content[@ ID='mndSta tus']
  7794         </xpath>
  7795                                                    
  7796         <ifNotNull >
  7797                                                              
  7798          <action 
  7799           action="se tAttribute
  7800           attribute= "ID" 
  7801           indexed="t rue"
  7802          >
  7803           mndStatus
  7804          </action>
  7805                                                              
  7806          <action 
  7807           action="se tValue" 
  7808          />
  7809                                                     
  7810         </ifNotNul l>
  7811                                            
  7812        </mapping>
  7813                                           
  7814        <mapping 
  7815         equalsProp erty="vaTy pe" 
  7816         equalsValu e="N"
  7817        >
  7818                                                    
  7819         <property 
  7820          optional=" true"
  7821         >
  7822          vaType
  7823         </property >
  7824                                                    
  7825         <xpath>
  7826          cda:td/cda :content[@ ID='mndSta tus']
  7827         </xpath>
  7828                                                    
  7829         <ifNotNull >
  7830                                                              
  7831          <action 
  7832           action="se tAttribute
  7833           attribute= "ID" 
  7834           indexed="t rue"
  7835          >
  7836           mndStatus
  7837          </action>
  7838                                                              
  7839          <action 
  7840           action="se tValue"
  7841          >
  7842           Non-VA
  7843          </action>
  7844                                                     
  7845         </ifNotNul l>
  7846                                            
  7847        </mapping>
  7848                                           
  7849        <mapping>
  7850                                                    
  7851         <property 
  7852          optional=" true"
  7853         >
  7854          quantityVa lue
  7855         </property >
  7856                                                    
  7857         <xpath>
  7858          cda:td/cda :content[@ ID='mndQua ntity']
  7859         </xpath>
  7860                                                    
  7861         <ifNotNull >
  7862                                                              
  7863          <action 
  7864           action="se tAttribute
  7865           attribute= "ID" 
  7866           indexed="t rue"
  7867          >
  7868           mndQuantit y
  7869          </action>
  7870                                                              
  7871          <action 
  7872           action="se tValue" 
  7873          />
  7874                                                     
  7875         </ifNotNul l>
  7876                                                    
  7877         <ifNull>
  7878                                                              
  7879          <action 
  7880           action="se tAttribute
  7881           attribute= "ID" 
  7882           indexed="t rue"
  7883          >
  7884           mndQuantit y
  7885          </action>
  7886                                                     
  7887         </ifNull>
  7888                                            
  7889        </mapping>
  7890                                           
  7891        <mapping>
  7892                                                    
  7893         <property 
  7894          optional=" true"
  7895         >
  7896          prettyExpi reDate
  7897         </property >
  7898                                                    
  7899         <xpath>
  7900          cda:td/cda :content[@ ID='mndExp ires']
  7901         </xpath>
  7902                                                    
  7903         <ifNotNull >
  7904                                                              
  7905          <action 
  7906           action="se tAttribute
  7907           attribute= "ID" 
  7908           indexed="t rue"
  7909          >
  7910           mndExpires
  7911          </action>
  7912                                                              
  7913          <action 
  7914           action="se tValue" 
  7915          />
  7916                                                     
  7917         </ifNotNul l>
  7918                                                    
  7919         <ifNull>
  7920                                                              
  7921          <action 
  7922           action="se tAttribute
  7923           attribute= "ID" 
  7924           indexed="t rue"
  7925          >
  7926           mndExpires
  7927          </action>
  7928                                                     
  7929         </ifNull>
  7930                                            
  7931        </mapping>
  7932                                           
  7933        <mapping 
  7934         equalsProp erty="vaTy pe" 
  7935         equalsValu e="O"
  7936        >
  7937                                                    
  7938         <property 
  7939          optional=" true"
  7940         >
  7941          orderProvi derName
  7942         </property >
  7943                                                    
  7944         <xpath>
  7945          cda:td/cda :content[@ ID='mndPro vider']
  7946         </xpath>
  7947                                                    
  7948         <ifNotNull >
  7949                                                              
  7950          <action 
  7951           action="se tAttribute
  7952           attribute= "ID" 
  7953           indexed="t rue"
  7954          >
  7955           mndProvide r
  7956          </action>
  7957                                                              
  7958          <action 
  7959           action="se tValue" 
  7960          />
  7961                                                     
  7962         </ifNotNul l>
  7963                                                    
  7964         <ifNull>
  7965                                                              
  7966          <action 
  7967           action="se tAttribute
  7968           attribute= "ID" 
  7969           indexed="t rue"
  7970          >
  7971           mndProvide r
  7972          </action>
  7973                                                     
  7974         </ifNull>
  7975                                            
  7976        </mapping>
  7977                                           
  7978        <mapping 
  7979         equalsProp erty="vaTy pe" 
  7980         equalsValu e="N"
  7981        >
  7982                                                    
  7983         <property 
  7984          optional=" true"
  7985         >
  7986          orderProvi derName
  7987         </property >
  7988                                                    
  7989         <xpath>
  7990          cda:td/cda :content[@ ID='mndPro vider']
  7991         </xpath>
  7992                                                    
  7993         <ifNotNull >
  7994                                                              
  7995          <action 
  7996           action="se tAttribute
  7997           attribute= "ID" 
  7998           indexed="t rue"
  7999          >
  8000           mndProvide r
  8001          </action>
  8002                                                              
  8003          <action 
  8004           action="se tValue"
  8005          >
  8006           Documented  by: 
  8007          </action>
  8008                                                              
  8009          <action 
  8010           action="ap pendValue"  
  8011          />
  8012                                                     
  8013         </ifNotNul l>
  8014                                                    
  8015         <ifNull>
  8016                                                              
  8017          <action 
  8018           action="se tAttribute
  8019           attribute= "ID" 
  8020           indexed="t rue"
  8021          >
  8022           mndProvide r
  8023          </action>
  8024                                                     
  8025         </ifNull>
  8026                                            
  8027        </mapping>
  8028                                           
  8029        <mapping 
  8030         equalsProp erty="vaTy pe" 
  8031         equalsValu e="O"
  8032        >
  8033                                                    
  8034         <property 
  8035          optional=" true"
  8036         >
  8037          prescriptI d
  8038         </property >
  8039                                                    
  8040         <xpath>
  8041          cda:td/cda :content[@ ID='mndPre scription' ]
  8042         </xpath>
  8043                                                    
  8044         <ifNotNull >
  8045                                                              
  8046          <action 
  8047           action="se tAttribute
  8048           attribute= "ID" 
  8049           indexed="t rue"
  8050          >
  8051           mndPrescri ption
  8052          </action>
  8053                                                              
  8054          <action 
  8055           action="se tValue" 
  8056          />
  8057                                                     
  8058         </ifNotNul l>
  8059                                                    
  8060         <ifNull>
  8061                                                              
  8062          <action 
  8063           action="se tAttribute
  8064           attribute= "ID" 
  8065           indexed="t rue"
  8066          >
  8067           mndPrescri ption
  8068          </action>
  8069                                                     
  8070         </ifNull>
  8071                                            
  8072        </mapping>
  8073                                           
  8074        <mapping 
  8075         equalsProp erty="vaTy pe" 
  8076         equalsValu e="N"
  8077        >
  8078                                                    
  8079         <property 
  8080          optional=" true"
  8081         >
  8082          vaType
  8083         </property >
  8084                                                    
  8085         <xpath>
  8086          cda:td/cda :content[@ ID='mndPre scription' ]
  8087         </xpath>
  8088                                                    
  8089         <ifNotNull >
  8090                                                              
  8091          <action 
  8092           action="se tAttribute
  8093           attribute= "ID" 
  8094           indexed="t rue"
  8095          >
  8096           mndPrescri ption
  8097          </action>
  8098                                                              
  8099          <action 
  8100           action="se tValue"
  8101          >
  8102           Non-VA
  8103          </action>
  8104                                                     
  8105         </ifNotNul l>
  8106                                            
  8107        </mapping>
  8108                                           
  8109        <mapping>
  8110                                                    
  8111         <property 
  8112          optional=" true"
  8113         >
  8114          prettyDisp enseTime
  8115         </property >
  8116                                                    
  8117         <xpath>
  8118          cda:td/cda :content[@ ID='mndLas tDispensed ']
  8119         </xpath>
  8120                                                    
  8121         <ifNotNull >
  8122                                                          
  8123          <action 
  8124           action="se tAttribute
  8125           attribute= "ID" 
  8126           indexed="t rue"
  8127          >
  8128           mndLastDis pensed
  8129          </action>
  8130                                                          
  8131          <action 
  8132           action="se tValue" 
  8133          />
  8134                                                     
  8135         </ifNotNul l>
  8136                                                    
  8137         <ifNull>
  8138                                                          
  8139          <action 
  8140           action="se tAttribute
  8141           attribute= "ID" 
  8142           indexed="t rue"
  8143          >
  8144           mndLastDis pensed
  8145          </action>
  8146                                                     
  8147         </ifNull>
  8148                                            
  8149        </mapping>
  8150                                           
  8151        <mapping>
  8152                                                    
  8153         <property 
  8154          optional=" true"
  8155         >
  8156          sigFreeTex t
  8157         </property >
  8158                                                    
  8159         <xpath>
  8160          cda:td/cda :content[@ ID='mndSig ']
  8161         </xpath>
  8162                                                    
  8163         <ifNotNull >
  8164                                                              
  8165          <action 
  8166           action="se tAttribute
  8167           attribute= "ID" 
  8168           indexed="t rue"
  8169          >
  8170           mndSig
  8171          </action>
  8172                                                              
  8173          <action 
  8174           action="se tValue" 
  8175          />
  8176                                                     
  8177         </ifNotNul l>
  8178                                                    
  8179         <ifNull>
  8180                                                              
  8181          <action 
  8182           action="se tAttribute
  8183           attribute= "ID" 
  8184           indexed="t rue"
  8185          >
  8186           mndSig
  8187          </action>
  8188                                                     
  8189         </ifNull>
  8190                                            
  8191        </mapping>
  8192                                           
  8193        <mapping 
  8194         equalsProp erty="vaTy pe" 
  8195         equalsValu e="O"
  8196        >
  8197                                                    
  8198         <property 
  8199          optional=" true"
  8200         >
  8201          facilityNa me
  8202         </property >
  8203                                                    
  8204         <xpath>
  8205          cda:td/cda :content[@ ID='mndSou rce']
  8206         </xpath>
  8207                                                    
  8208         <ifNotNull >
  8209                                                              
  8210          <action 
  8211           action="se tAttribute
  8212           attribute= "ID" 
  8213           indexed="t rue"
  8214          >
  8215           mndSource
  8216          </action>
  8217                                                              
  8218          <action 
  8219           action="se tValue" 
  8220          />
  8221                                                     
  8222         </ifNotNul l>
  8223                                                    
  8224         <ifNull>
  8225                                                              
  8226          <action 
  8227           action="se tAttribute
  8228           attribute= "ID" 
  8229           indexed="t rue"
  8230          >
  8231           mndSource
  8232          </action>
  8233                                                     
  8234         </ifNull>
  8235                                            
  8236        </mapping>
  8237                                           
  8238        <mapping 
  8239         equalsProp erty="vaTy pe" 
  8240         equalsValu e="N"
  8241        >
  8242                                                    
  8243         <property 
  8244          optional=" true"
  8245         >
  8246          facilityNa me
  8247         </property >
  8248                                                    
  8249         <xpath>
  8250          cda:td/cda :content[@ ID='mndSou rce']
  8251         </xpath>
  8252                                                    
  8253         <ifNotNull >
  8254                                                              
  8255          <action 
  8256           action="se tAttribute
  8257           attribute= "ID" 
  8258           indexed="t rue"
  8259          >
  8260           mndSource
  8261          </action>
  8262                                                              
  8263          <action 
  8264           action="se tValue"
  8265          >
  8266           Documented  at: 
  8267          </action>
  8268                                                              
  8269          <action 
  8270           action="ap pendValue"  
  8271          />
  8272                                                     
  8273         </ifNotNul l>
  8274                                                    
  8275         <ifNull>
  8276                                                              
  8277          <action 
  8278           action="se tAttribute
  8279           attribute= "ID" 
  8280           indexed="t rue"
  8281          >
  8282           mndSource
  8283          </action>
  8284                                                     
  8285         </ifNull>
  8286                                            
  8287        </mapping>
  8288                                  
  8289       </mappings >
  8290                        
  8291      </mapping>
  8292                       
  8293      <!-- MEDIC ATIONS SEC TION -->
  8294                       
  8295      <mapping>
  8296                                 
  8297       <property 
  8298        collection ="true" 
  8299        merge="tru e" 
  8300        optional=" true"
  8301       >
  8302        medication s
  8303       </property >
  8304                                 
  8305       <xpath>
  8306        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.1.1']
  8307       </xpath>
  8308                                 
  8309       <ifNotNull >
  8310                                           
  8311        <action 
  8312         action="ev aluateMapp ings" 
  8313         relative=" cda:sectio n/cda:entr y" 
  8314        />
  8315                                  
  8316       </ifNotNul l>
  8317                                 
  8318       <ifNull>
  8319                                           
  8320        <action 
  8321         action="re move" 
  8322         relative=" cda:sectio n/cda:entr y"
  8323        >
  8324         NI
  8325        </action>
  8326                                           
  8327        <action 
  8328         action="se tValue" 
  8329         relative=" cda:sectio n/cda:text "
  8330        >
  8331         No Data Pr ovided for  This Sect ion
  8332        </action>
  8333                                           
  8334        <action 
  8335         action="se tAttribute
  8336         relative=" cda:sectio n"
  8337                                                   
  8338         attribute= "nullFlavo r"
  8339        >
  8340         NI
  8341        </action>
  8342                                  
  8343       </ifNull>
  8344                                 
  8345       <mappings>
  8346                                           
  8347        <mapping>
  8348                                                    
  8349         <property 
  8350          optional=" true"
  8351         >
  8352          sigFreeTex t
  8353         </property >
  8354                                                    
  8355         <xpath>
  8356          cda:substa nceAdminis tration/cd a:text/cda :reference
  8357         </xpath>
  8358                                                    
  8359         <ifNotNull >
  8360                                                              
  8361          <action 
  8362           action="se tAttribute
  8363           attribute= "value" 
  8364           indexed="t rue"
  8365          >
  8366           #mndSig
  8367          </action>
  8368                                                     
  8369         </ifNotNul l>
  8370                                                    
  8371         <ifNull>
  8372                                                              
  8373          <action 
  8374           action="se tAttribute
  8375           attribute= "value" 
  8376           indexed="t rue"
  8377          >
  8378           #mndSig
  8379          </action>
  8380                                                     
  8381         </ifNull>
  8382                                            
  8383        </mapping>
  8384                                           
  8385                                           
  8386                                           
  8387       
  8388                                           
  8389        <mapping>
  8390                                                    
  8391         <property 
  8392          optional=" true"
  8393         >
  8394          rxNormProd uctCode
  8395         </property >
  8396                                                    
  8397         <xpath>
  8398          cda:substa nceAdminis tration/cd a:consumab le/cda:man ufacturedP roduct/cda :manufactu redMateria l/cda:code
  8399         </xpath>
  8400                                                    
  8401         <ifNotNull >
  8402                                                              
  8403          <action 
  8404           action="se tAttribute
  8405           attribute= "code" 
  8406          >
  8407          </action>
  8408                                                              
  8409          <action 
  8410           action="se tAttribute
  8411           attribute= "displayNa me" 
  8412           property=" rxNormProd uctCodeDis playName" 
  8413          >
  8414          </action>
  8415                                                              
  8416          <action 
  8417           action="se tAttribute
  8418           attribute= "code" 
  8419           relative=" cda:transl ation" 
  8420           property=" vuidproduc tCode" 
  8421          >
  8422          </action>
  8423                                                              
  8424          <action 
  8425           action="se tAttribute
  8426           attribute= "displayNa me" 
  8427           relative=" cda:transl ation"  
  8428           property=" prodNameTe xt" 
  8429          >
  8430          </action>                                                    
  8431                                                     
  8432         </ifNotNul l>
  8433                                                    
  8434         <ifNull>
  8435                                                              
  8436          <action 
  8437           action="se tAttribute
  8438           attribute= "nullFlavo r" 
  8439          >
  8440           UNK
  8441          </action>
  8442                                                              
  8443          <action 
  8444           action="re move"  
  8445           relative=" cda:transl ation"   
  8446          >
  8447          </action>        
  8448                                                     
  8449         </ifNull>
  8450                                            
  8451        </mapping>
  8452                                           
  8453                                           
  8454                                           
  8455       
  8456                                           
  8457                                           
  8458        <mapping>
  8459                                                    
  8460         <property 
  8461          optional=" true"
  8462         >
  8463          prodNameTe xt
  8464         </property >
  8465                                                    
  8466         <xpath>
  8467          cda:substa nceAdminis tration/cd a:consumab le/cda:man ufacturedP roduct/cda :manufactu redMateria l/cda:code /cda:origi nalText/cd a:referenc e
  8468         </xpath>
  8469                                                    
  8470         <ifNotNull >
  8471                                                              
  8472          <action 
  8473           action="se tAttribute
  8474           attribute= "value" 
  8475           indexed="t rue"
  8476          >
  8477           #mndMedica tion
  8478          </action>
  8479                                                     
  8480         </ifNotNul l>
  8481                                                    
  8482         <ifNull>
  8483                                                              
  8484          <action 
  8485           action="se tAttribute
  8486           attribute= "value" 
  8487           indexed="t rue"
  8488          >
  8489           #mndMedica tion
  8490          </action>
  8491                                                     
  8492         </ifNull>
  8493                                            
  8494        </mapping>
  8495                                           
  8496        <mapping>
  8497                                                    
  8498         <property 
  8499          optional=" true"
  8500         >
  8501          start
  8502         </property >
  8503                                                    
  8504         <xpath>
  8505          cda:substa nceAdminis tration/cd a:effectiv eTime/cda: low
  8506         </xpath>
  8507                                                    
  8508         <ifNotNull >
  8509                                                              
  8510          <action 
  8511           action="se tAttribute
  8512           attribute= "value" 
  8513          />
  8514                                                     
  8515         </ifNotNul l>
  8516                                                    
  8517         <ifNull>
  8518                                                              
  8519          <action 
  8520           action="se tAttribute
  8521           attribute= "nullFlavo r"
  8522          >
  8523           UNK
  8524          </action>
  8525                                                     
  8526         </ifNull>
  8527                                            
  8528        </mapping>
  8529                                           
  8530        <mapping>
  8531                                                    
  8532         <property 
  8533          optional=" true"
  8534         >
  8535          stop
  8536         </property >
  8537                                                    
  8538         <xpath>
  8539          cda:substa nceAdminis tration/cd a:effectiv eTime/cda: high
  8540         </xpath>
  8541                                                    
  8542         <ifNotNull >
  8543                                                              
  8544          <action 
  8545           action="se tAttribute
  8546           attribute= "value" 
  8547          />
  8548                                                     
  8549         </ifNotNul l>
  8550                                                    
  8551         <ifNull>
  8552                                                              
  8553          <action 
  8554           action="se tAttribute
  8555           attribute= "nullFlavo r"
  8556          >
  8557           UNK
  8558          </action>
  8559                                                     
  8560         </ifNull>
  8561                                            
  8562        </mapping>
  8563                                           
  8564        <mapping>
  8565                                                    
  8566         <property 
  8567          optional=" true"
  8568         >
  8569          quantity
  8570         </property >
  8571                                                    
  8572         <xpath>
  8573          cda:substa nceAdminis tration/cd a:doseQuan tity
  8574         </xpath>
  8575                                                    
  8576         <ifNotNull >
  8577                                                              
  8578          <action 
  8579           action="se tAttribute
  8580           attribute= "low" 
  8581          />
  8582                                                     
  8583         </ifNotNul l>
  8584                                                    
  8585         <ifNull>
  8586                                                              
  8587          <action 
  8588           action="se tAttribute
  8589           attribute= "nullFlavo r"
  8590          >
  8591           UNK
  8592          </action>
  8593                                                     
  8594         </ifNull>
  8595                                            
  8596        </mapping>
  8597                                           
  8598        <mapping>
  8599                                                    
  8600         <property 
  8601          optional=" true"
  8602         >
  8603          daysSupply
  8604         </property >
  8605                                                    
  8606         <xpath>
  8607          cda:substa nceAdminis tration/cd a:entryRel ationship[ @typeCode= 'REFR']/cd a:supply[@ classCode= 'SPLY' and  @moodCode ='INT']/cd a:quantity
  8608         </xpath>
  8609                                                    
  8610         <ifNotNull >
  8611                                                              
  8612          <action 
  8613           action="se tAttribute
  8614           attribute= "value" 
  8615          />
  8616                                                     
  8617         </ifNotNul l>
  8618                                                    
  8619         <ifNull>
  8620                                                              
  8621          <action 
  8622           action="se tAttribute
  8623           attribute= "nullFlavo r"
  8624          >
  8625           UNK
  8626          </action>
  8627                                                     
  8628         </ifNull>
  8629                                            
  8630        </mapping>
  8631                                           
  8632                                           
  8633        <mapping>
  8634                                                    
  8635         <property 
  8636          optional=" true"
  8637         >
  8638          rxNormProd uctCode
  8639         </property >
  8640                                                    
  8641         <xpath>
  8642          cda:substa nceAdminis tration/cd a:entryRel ationship[ @typeCode= 'REFR']/cd a:supply[@ classCode= 'SPLY' and  @moodCode ='INT']/cd a:product/ cda:manufa cturedProd uct/cda:ma nufactured Material/c da:code
  8643         </xpath>
  8644                                                    
  8645         <ifNotNull >
  8646                                                              
  8647          <action 
  8648           action="se tAttribute
  8649           attribute= "code" 
  8650          >
  8651          </action>
  8652                                                              
  8653          <action 
  8654           action="se tAttribute
  8655           attribute= "displayNa me" 
  8656           property=" rxNormProd uctCodeDis playName" 
  8657          >
  8658          </action>                                                    
  8659                                                     
  8660         </ifNotNul l>
  8661                                                    
  8662         <ifNull>
  8663                                                              
  8664          <action 
  8665           action="se tAttribute
  8666           attribute= "nullFlavo r" 
  8667          >
  8668           UNK
  8669          </action>
  8670                                                     
  8671         </ifNull>
  8672                                            
  8673        </mapping>
  8674                                           
  8675                                           
  8676                                           
  8677        <mapping>
  8678                                                    
  8679         <property 
  8680          optional=" true"
  8681         >
  8682          statusCode
  8683         </property >
  8684                                                    
  8685         <xpath>
  8686          cda:substa nceAdminis tration/cd a:entryRel ationship[ @typeCode= 'REFR']/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883. IP          ']/cda:val ue
  8687         </xpath>
  8688                                                    
  8689         <ifNotNull >
  8690                                                              
  8691          <action 
  8692           action="se tAttribute
  8693           attribute= "code" 
  8694          />
  8695                                                              
  8696          <action 
  8697           action="se tAttribute
  8698           attribute= "displayNa me"
  8699                                                                       
  8700           property=" statusDisp lay" 
  8701          />
  8702                                                              
  8703          <action 
  8704           action="se tAttribute
  8705           attribute= "codeSyste m"
  8706          >
  8707           2.16.840.1 .113883.6. 96
  8708          </action>
  8709                                                              
  8710          <action 
  8711           action="se tAttribute
  8712           attribute= "codeSyste mName"
  8713          >
  8714           SNOMED CT
  8715          </action>
  8716                                                              
  8717          <action 
  8718           action="se tValue" 
  8719           relative=" cda:origin alText"
  8720                                                                       
  8721           property=" vaStatus" 
  8722          />
  8723                                                     
  8724         </ifNotNul l>
  8725                                                    
  8726         <ifNull>
  8727                                                              
  8728          <action 
  8729           action="se tAttribute
  8730           attribute= "nullFlavo r"
  8731          >
  8732           UNK
  8733          </action>
  8734                                                              
  8735          <action 
  8736           action="se tValue" 
  8737           relative=" cda:origin alText"
  8738                                                                       
  8739           property=" vaStatus" 
  8740          />
  8741                                                     
  8742         </ifNull>
  8743                                            
  8744        </mapping>
  8745                                           
  8746        <mapping>
  8747                                                    
  8748         <property 
  8749          optional=" true"
  8750         >
  8751          facilityNu mber
  8752         </property >
  8753                                                    
  8754         <xpath>
  8755          cda:substa nceAdminis tration/cd a:author/c da:assigne dAuthor/cd a:represen tedOrganiz ation/cda: id
  8756         </xpath>
  8757                                                    
  8758         <ifNotNull >
  8759                                                              
  8760          <action 
  8761           action="se tAttribute
  8762           attribute= "extension
  8763          />
  8764                                                     
  8765         </ifNotNul l>
  8766                                            
  8767        </mapping>
  8768                                           
  8769        <mapping>
  8770                                                    
  8771         <property 
  8772          optional=" true"
  8773         >
  8774          facilityNa me
  8775         </property >
  8776                                                    
  8777         <xpath>
  8778          cda:substa nceAdminis tration/cd a:author/c da:assigne dAuthor/cd a:represen tedOrganiz ation/cda: name
  8779         </xpath>
  8780                                                    
  8781         <ifNotNull >
  8782                                                              
  8783          <action 
  8784           action="se tValue" 
  8785          />
  8786                                                     
  8787         </ifNotNul l>
  8788                                            
  8789        </mapping>
  8790                                           
  8791        <mapping>
  8792                                                    
  8793         <property>
  8794          typeCode
  8795         </property >
  8796                                                    
  8797         <xpath>
  8798          cda:substa nceAdminis tration/cd a:entryRel ationship[ @typeCode= 'SUBJ']/cd a:observat ion/cda:co de
  8799         </xpath>
  8800                                                    
  8801         <ifNotNull >
  8802                                                              
  8803          <action 
  8804           action="se tAttribute
  8805           attribute= "code" 
  8806          />
  8807                                                     
  8808         </ifNotNul l>
  8809                                            
  8810        </mapping>
  8811                                           
  8812        <mapping>
  8813                                                    
  8814         <property>
  8815          typeDispla y
  8816         </property >
  8817                                                    
  8818         <xpath>
  8819          cda:substa nceAdminis tration/cd a:entryRel ationship[ @typeCode= 'SUBJ']/cd a:observat ion/cda:co de
  8820         </xpath>
  8821                                                    
  8822         <ifNotNull >
  8823                                                              
  8824          <action 
  8825           action="se tAttribute
  8826           attribute= "displayNa me" 
  8827          />
  8828                                                     
  8829         </ifNotNul l>
  8830                                            
  8831        </mapping>
  8832                                           
  8833        <mapping>
  8834                                                    
  8835         <property>
  8836          type
  8837         </property >
  8838                                                    
  8839         <xpath>
  8840          cda:substa nceAdminis tration/cd a:entryRel ationship[ @typeCode= 'SUBJ']/cd a:observat ion/cda:co de/cda:ori ginalText
  8841         </xpath>
  8842                                                    
  8843         <ifNotNull >
  8844                                                              
  8845          <action 
  8846           action="se tValue" 
  8847          />
  8848                                                     
  8849         </ifNotNul l>
  8850                                            
  8851        </mapping>
  8852                                           
  8853        <mapping>
  8854                                                    
  8855         <property 
  8856          optional=" true"
  8857         >
  8858          status
  8859         </property >
  8860                                                    
  8861         <xpath>
  8862          cda:substa nceAdminis tration/cd a:entryRel ationship[ @typeCode= 'REFR']/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883. IP          ']/cda:val ue
  8863               
  8864         </xpath>
  8865                                                    
  8866         <ifNotNull >
  8867                                                              
  8868          <action 
  8869           action="se tAttribute
  8870           attribute= "code" 
  8871          />
  8872                                                              
  8873          <action 
  8874           action="se tAttribute
  8875           attribute= "displayNa me"
  8876                                                                       
  8877           property=" statusDisp lay" 
  8878          />
  8879                                                              
  8880          <action 
  8881           action="se tAttribute
  8882           attribute= "codeSyste m"
  8883          >
  8884           2.16.840.1 .113883.6. 96
  8885          </action>
  8886                                                              
  8887          <action 
  8888           action="se tAttribute
  8889           attribute= "codeSyste mName"
  8890          >
  8891           SNOMED CT
  8892          </action>
  8893                                                              
  8894          <action 
  8895           action="se tValue" 
  8896           relative=" cda:origin alText"
  8897                                                                       
  8898           property=" vaStatus" 
  8899          />
  8900                                                     
  8901         </ifNotNul l>
  8902                                                    
  8903         <ifNull>
  8904                                                              
  8905          <action 
  8906           action="se tAttribute
  8907           attribute= "nullFlavo r"
  8908          >
  8909           UNK
  8910          </action>
  8911                                                              
  8912          <action 
  8913           action="se tValue" 
  8914           relative=" cda:origin alText"
  8915                                                                       
  8916           property=" vaStatus" 
  8917          />
  8918                                                     
  8919         </ifNull>
  8920                                            
  8921        </mapping>
  8922                                           
  8923        <mapping>
  8924                                                    
  8925         <property>
  8926          orderID
  8927         </property >
  8928                                                    
  8929         <xpath>
  8930          cda:substa nceAdminis tration/cd a:entryRel ationship[ @typeCode= 'REFR']/cd a:supply[@ classCode= 'SPLY' and  @moodCode ='INT']/cd a:product/ cda:manufa cturedProd uct/cda:ma terial/cda :code/cda: originalTe xt
  8931         </xpath>
  8932                                                    
  8933         <ifNotNull >
  8934                                                              
  8935          <action 
  8936           action="se tValue" 
  8937           property=" prodNameTe xt" 
  8938          />
  8939                                                     
  8940         </ifNotNul l>
  8941                                            
  8942        </mapping>
  8943                                           
  8944        <mapping>
  8945                                                    
  8946         <property>
  8947          orderNbr
  8948         </property >
  8949                                                    
  8950         <xpath>
  8951          cda:substa nceAdminis tration/cd a:entryRel ationship[ @typeCode= 'REFR']/cd a:supply[@ classCode= 'SPLY' and  @moodCode ='INT']/cd a:id
  8952         </xpath>
  8953                                                    
  8954         <ifNotNull >
  8955                                                              
  8956          <action 
  8957           action="se tAttribute
  8958           attribute= "extension
  8959          />
  8960                                                     
  8961         </ifNotNul l>
  8962                                            
  8963        </mapping>
  8964                                           
  8965        <!-- 8.27  FILLS -->
  8966                                           
  8967        <mapping>
  8968                                                    
  8969         <property 
  8970          optional=" true"
  8971         >
  8972          fills
  8973         </property >
  8974                                                    
  8975         <xpath>
  8976          cda:substa nceAdminis tration/cd a:entryRel ationship[ @typeCode= 'REFR']/cd a:supply[@ classCode= 'SPLY' and  @moodCode ='INT']/cd a:repeatNu mber
  8977         </xpath>
  8978                                                    
  8979         <ifNotNull >
  8980                                                              
  8981          <action 
  8982           action="se tAttribute
  8983           attribute= "value" 
  8984          />
  8985                                                     
  8986         </ifNotNul l>
  8987                                                    
  8988         <ifNull>
  8989                                                              
  8990          <action 
  8991           action="re moveAttrib utes" 
  8992          />
  8993                                                              
  8994          <action 
  8995           action="se tAttribute
  8996           attribute= "nullFlavo r"
  8997          >
  8998           UNK
  8999          </action>
  9000                                                     
  9001         </ifNull>
  9002                                            
  9003        </mapping>
  9004                                           
  9005        <mapping>
  9006                                                    
  9007         <property 
  9008          optional=" true"
  9009         >
  9010          expireDate
  9011         </property >
  9012                                                    
  9013         <xpath>
  9014          cda:substa nceAdminis tration/cd a:entryRel ationship[ @typeCode= "REFR"]/cd a:supply[@ classCode= 'SPLY' and  @moodCode ='INT']/cd a:effectiv eTime/cda: high
  9015         </xpath>
  9016                                                    
  9017         <ifNotNull >
  9018                                                              
  9019          <action 
  9020           action="se tAttribute
  9021           attribute= "value" 
  9022          />
  9023                                                     
  9024         </ifNotNul l>
  9025                                                    
  9026         <ifNull>
  9027                                                              
  9028          <action 
  9029           action="re moveAttrib utes" 
  9030          />
  9031                                                              
  9032          <action 
  9033           action="se tAttribute
  9034           attribute= "nullFlavo r"
  9035          >
  9036           UNK
  9037          </action>
  9038                                                     
  9039         </ifNull>
  9040                                            
  9041        </mapping>
  9042                                           
  9043        <mapping>
  9044                                                    
  9045         <property>
  9046          orderDate
  9047         </property >
  9048                                                    
  9049         <xpath>
  9050          cda:substa nceAdminis tration/cd a:entryRel ationship[ @typeCode= 'REFR']/cd a:supply[@ classCode= 'SPLY' and  @moodCode ='INT']/cd a:author/c da:time
  9051         </xpath>
  9052                                                    
  9053         <ifNotNull >
  9054                                                              
  9055          <action 
  9056           action="se tAttribute
  9057           attribute= "value" 
  9058          />
  9059                                                     
  9060         </ifNotNul l>
  9061                                            
  9062        </mapping>
  9063                                           
  9064        <mapping>
  9065                                                    
  9066         <property 
  9067          optional=" true"
  9068         >
  9069          orderProvi derName
  9070         </property >
  9071                                                    
  9072         <xpath>
  9073          cda:substa nceAdminis tration/cd a:entryRel ationship/ cda:supply /cda:autho r/cda:assi gnedAuthor /cda:assig nedPerson/ cda:name
  9074         </xpath>
  9075                                                    
  9076         <ifNotNull >
  9077                                                              
  9078          <action 
  9079           action="se tValue" 
  9080          />
  9081                                                     
  9082         </ifNotNul l>
  9083                                            
  9084        </mapping>
  9085                                           
  9086        <mapping 
  9087         equalsProp erty="vaTy pe" 
  9088         equalsValu e="O"
  9089        >
  9090                                                    
  9091         <property 
  9092          optional=" true"
  9093         >
  9094          prescriptI d
  9095         </property >
  9096                                                    
  9097         <xpath>
  9098          cda:substa nceAdminis tration/cd a:entryRel ationship[ cda:supply /@classCod e='SPLY' a nd cda:sup ply/@moodC ode='EVN']
  9099         </xpath>
  9100                                                    
  9101         <ifNotNull >
  9102                                                              
  9103          <action 
  9104           action="se tAttribute
  9105           attribute= "root"
  9106                                                                       
  9107           relative=" cda:supply [@classCod e='SPLY' a nd @moodCo de='EVN']/ cda:id"
  9108          >
  9109           2.16.840.1 .113883.4. 349
  9110          </action>
  9111                                                              
  9112          <action 
  9113           action="se tAttribute
  9114           attribute= "extension "
  9115                                                                       
  9116           relative=" cda:supply [@classCod e='SPLY' a nd @moodCo de='EVN']/ cda:id" 
  9117          />
  9118                                                              
  9119          <action 
  9120           action="se tAttribute "
  9121                                                                       
  9122           relative=" cda:supply [@classCod e='SPLY' a nd @moodCo de='EVN']/ cda:effect iveTime/cd a:high"
  9123                                                                       
  9124           attribute= "value" 
  9125           property=" dispenseTi me" 
  9126          />
  9127                                                              
  9128          <action 
  9129           action="se tValue" 
  9130           property=" prodNameTe xt"
  9131                                                                       
  9132           relative=" cda:supply [@classCod e='SPLY' a nd @moodCo de='EVN']/ cda:produc t/cda:manu facturedPr oduct/cda: material/c da:code/cd a:original Text" 
  9133          />
  9134                                                     
  9135         </ifNotNul l>
  9136                                                    
  9137         <ifNull>
  9138                                                              
  9139          <action 
  9140           action="re move" 
  9141          />
  9142                                                     
  9143         </ifNull>
  9144                                            
  9145        </mapping>
  9146                                           
  9147        <mapping 
  9148         equalsProp erty="vaTy pe" 
  9149         equalsValu e="N"
  9150        >
  9151                                                    
  9152         <property 
  9153          optional=" true"
  9154         >
  9155          vaType
  9156         </property >
  9157                                                    
  9158         <xpath>
  9159          cda:substa nceAdminis tration/cd a:entryRel ationship[ cda:supply /@classCod e='SPLY' a nd cda:sup ply/@moodC ode='EVN']
  9160         </xpath>
  9161                                                    
  9162         <ifNotNull >
  9163                                                              
  9164          <action 
  9165           action="se tAttribute
  9166           attribute= "nullFlavo r"
  9167                                                                       
  9168           relative=" cda:supply [@classCod e='SPLY' a nd @moodCo de='EVN']/ cda:id"
  9169          >
  9170           UNK
  9171          </action>
  9172                                                              
  9173          <action 
  9174           action="se tAttribute "
  9175                                                                       
  9176           relative=" cda:supply [@classCod e='SPLY' a nd @moodCo de='EVN']/ cda:effect iveTime/cd a:high"
  9177                                                                       
  9178           attribute= "value" 
  9179           property=" dispenseTi me" 
  9180          />
  9181                                                              
  9182          <action 
  9183           action="se tValue" 
  9184           property=" prodNameTe xt"
  9185                                                                       
  9186           relative=" cda:supply [@classCod e='SPLY' a nd @moodCo de='EVN']/ cda:produc t/cda:manu facturedPr oduct/cda: material/c da:code/cd a:original Text" 
  9187          />
  9188                                                     
  9189         </ifNotNul l>
  9190                                            
  9191        </mapping>
  9192                                  
  9193       </mappings >
  9194                        
  9195      </mapping>
  9196                       
  9197      <!-- ENCOU NTER NARRI TIVE -->
  9198              
  9199      <!-- consu lt note, h istory and  physical  note - add ed: Feb 20 15, Ash Ka davath -->
  9200                       
  9201      <mapping>
  9202                            
  9203       <property 
  9204        optional=" true"
  9205       >
  9206        consultNot esNarrativ e
  9207       </property >
  9208                            
  9209       <xpath>
  9210        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.22.1']
  9211       </xpath>
  9212                            
  9213       <ifNotNull >
  9214                                  
  9215        <action 
  9216         action="se tValue" 
  9217         relative=" cda:sectio n/cda:text /cda:parag raph[@ID=' conTitle']
  9218        />
  9219                             
  9220       </ifNotNul l>
  9221                        
  9222      </mapping>
  9223                       
  9224      <mapping>
  9225                                 
  9226       <property 
  9227        collection ="true" 
  9228        optional=" true"
  9229       >
  9230        consultnot es
  9231       </property >
  9232                                 
  9233       <xpath>
  9234        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.22.1']
  9235       </xpath>
  9236                                 
  9237       <ifNotNull >
  9238                                           
  9239        <action 
  9240         action="ev aluateMapp ings"
  9241                                                   
  9242         relative=" cda:sectio n/cda:text /cda:table [@ID='Note Narrative' ]/cda:tbod y/cda:tr" 
  9243        />
  9244                                  
  9245       </ifNotNul l>
  9246                                 
  9247       <mappings>
  9248                                           
  9249        <mapping>
  9250                                                    
  9251         <!--proper ty>referen ceDateTime </property -->
  9252                                                    
  9253         <property>
  9254          prettyRefe renceDateT ime
  9255         </property >
  9256                                                    
  9257         <xpath>
  9258          cda:td/cda :content[@ ID='noteDa teTime']
  9259         </xpath>
  9260                                                    
  9261         <ifNotNull >
  9262                                                              
  9263          <action 
  9264           action="se tAttribute
  9265           attribute= "ID" 
  9266           indexed="t rue"
  9267          >
  9268           noteDateTi me
  9269          </action>
  9270                                                              
  9271          <action 
  9272           action="se tValue" 
  9273          >
  9274          </action>
  9275                                                     
  9276         </ifNotNul l>
  9277                                                    
  9278         <ifNull>
  9279                                                              
  9280          <action 
  9281           action="se tAttribute
  9282           attribute= "ID" 
  9283           indexed="t rue"
  9284          >
  9285           noteDateTi me
  9286          </action>                                           
  9287                                                     
  9288         </ifNull>                                           
  9289                                            
  9290        </mapping>
  9291                                           
  9292        <!-- if Se rvice name  blank. -- >
  9293                                           
  9294        <mapping 
  9295         equalsProp erty="nati onalTitleS ervice.nam e"
  9296        >
  9297                                                    
  9298         <property 
  9299          optional=" true"
  9300         >
  9301          content
  9302         </property >
  9303                                                    
  9304         <xpath>
  9305          cda:td/cda :content[@ ID='noteEn counterDes cription']
  9306         </xpath>
  9307                                                    
  9308         <ifNotNull >
  9309                                                              
  9310          <action 
  9311           action="se tAttribute
  9312           attribute= "ID" 
  9313           indexed="t rue"
  9314          >
  9315           noteEncoun terDescrip tion
  9316          </action>
  9317                                                              
  9318          <action 
  9319           action="ap pendValue"  
  9320          />
  9321                                                     
  9322         </ifNotNul l>
  9323                                                    
  9324         <ifNull>
  9325                                                              
  9326          <action 
  9327           action="se tAttribute
  9328           attribute= "ID" 
  9329           indexed="t rue"
  9330          >
  9331           noteEncoun terDescrip tion
  9332          </action>
  9333                                                              
  9334          <action 
  9335           action="ap pendValue"
  9336          >
  9337           No text av ailable.
  9338          </action>                                                    
  9339                                                     
  9340         </ifNull>
  9341                                            
  9342        </mapping>
  9343                                           
  9344        <!-- If ti tle servic e name not  blank. -- >
  9345                                           
  9346        <mapping 
  9347         notEqualsP roperty="n ationalTit leService. name"
  9348        >
  9349                                                    
  9350         <property 
  9351          optional=" true"
  9352         >
  9353          content
  9354         </property >
  9355                                                    
  9356         <xpath>
  9357          cda:td/cda :content[@ ID='noteEn counterDes cription']
  9358         </xpath>
  9359                                                    
  9360         <ifNotNull >
  9361                                                              
  9362          <action 
  9363           action="se tAttribute
  9364           attribute= "ID" 
  9365           indexed="t rue"
  9366          >
  9367           noteEncoun terDescrip tion
  9368          </action>
  9369                                                              
  9370          <action 
  9371           action="ap pendValue"  
  9372           property=" nationalTi tleService .name" 
  9373          />
  9374                                                              
  9375          <!--action  action="a ppendValue " property ="national Title.name " /-->
  9376                                                              
  9377          <action 
  9378           action="ap pendValue"
  9379          >
  9380            : 
  9381          </action>
  9382                                                              
  9383          <action 
  9384           action="ap pendValue"  
  9385          />
  9386                                                     
  9387         </ifNotNul l>
  9388                                                    
  9389         <ifNull>
  9390                                                              
  9391          <action 
  9392           action="se tAttribute
  9393           attribute= "ID" 
  9394           indexed="t rue"
  9395          >
  9396           noteEncoun terDescrip tion
  9397          </action>
  9398                                                              
  9399          <action 
  9400           action="ap pendValue"  
  9401           property=" nationalTi tleService .name" 
  9402          />
  9403                                                              
  9404          <!--action  action="a ppendValue " property ="national Title.name " /-->
  9405                                                              
  9406          <action 
  9407           action="ap pendValue"
  9408          >
  9409            : 
  9410          </action>
  9411                                                              
  9412          <action 
  9413           action="ap pendValue"
  9414          >
  9415           No text av ailable.
  9416          </action>                                                    
  9417                                                     
  9418         </ifNull>
  9419                                            
  9420        </mapping>                                 
  9421                                           
  9422        <mapping>
  9423                                                    
  9424         <property 
  9425          optional=" true"
  9426         >
  9427          signingCli nician.nam e
  9428         </property >
  9429                                                    
  9430         <xpath>
  9431          cda:td/cda :content[@ ID='notePr ovider']
  9432         </xpath>
  9433                                                    
  9434         <ifNotNull >
  9435                                                              
  9436          <action 
  9437           action="se tAttribute
  9438           attribute= "ID" 
  9439           indexed="t rue"
  9440          >
  9441           noteProvid er
  9442          </action>
  9443                                                              
  9444          <action 
  9445           action="se tValue" 
  9446          />
  9447                                                     
  9448         </ifNotNul l>
  9449                                                    
  9450         <ifNull>
  9451                                                              
  9452          <action 
  9453           action="se tAttribute
  9454           attribute= "ID" 
  9455           indexed="t rue"
  9456          >
  9457           noteProvid er
  9458          </action>
  9459                                                     
  9460         </ifNull>
  9461                                            
  9462        </mapping>
  9463                                           
  9464        <mapping>
  9465                                                    
  9466         <property>
  9467          facility.n ame
  9468         </property >
  9469                                                    
  9470         <xpath>
  9471          cda:td/cda :content[@ ID='noteSo urce']
  9472         </xpath>
  9473                                                    
  9474         <ifNotNull >
  9475                                                              
  9476          <action 
  9477           action="se tAttribute
  9478           attribute= "ID" 
  9479           indexed="t rue"
  9480          >
  9481           noteSource
  9482          </action>
  9483                                                              
  9484          <action 
  9485           action="se tValue" 
  9486          />
  9487                                                     
  9488         </ifNotNul l>
  9489                                                    
  9490         <ifNull>
  9491                                                              
  9492          <action 
  9493           action="se tAttribute
  9494           attribute= "ID" 
  9495           indexed="t rue"
  9496          >
  9497           noteSource
  9498          </action>
  9499                                                     
  9500         </ifNull>
  9501                                            
  9502        </mapping>
  9503                                  
  9504       </mappings >
  9505                        
  9506      </mapping>
  9507                       
  9508                       
  9509      <!-- start  consult n otes secti on-->
  9510                                
  9511      <mapping>
  9512                                 
  9513       <property 
  9514        collection ="true" 
  9515        optional=" true"
  9516       >
  9517        consultnot es
  9518       </property >
  9519                                 
  9520       <xpath>
  9521        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.22.1']/c da:section /cda:entry [@id='con' ]
  9522       </xpath>
  9523                                 
  9524       <ifNotNull >
  9525                                  
  9526        <action 
  9527         action="re moveAttrib utes" 
  9528        />
  9529                                  
  9530        <action 
  9531         action="se tAttribute
  9532         attribute= "typeCode"  
  9533        >
  9534         DRIV
  9535        </action>
  9536                                  
  9537        <action 
  9538         action="ev aluateMapp ings" 
  9539        />
  9540                                  
  9541       </ifNotNul l>
  9542                                 
  9543       <ifNull>
  9544                                           
  9545        <action 
  9546         action="re move" 
  9547         relative=" ../cda:tex t/cda:tabl e[@ID='Not eNarrative ']"
  9548        >
  9549        </action>
  9550                                           
  9551        <!--action  action="r emove" rel ative="../ cda:text/c da:table[@ ID='NoteNa rrativeTop Header']"> </action-- >
  9552                                           
  9553        <action 
  9554         action="re move" 
  9555         relative=" ../cda:tex t/cda:para graph[@ID= 'conTitle' ]"
  9556        >
  9557        </action>
  9558                                           
  9559        <action 
  9560         action="re move" 
  9561        >
  9562        </action>
  9563                                  
  9564       </ifNull>
  9565                                 
  9566       <mappings>
  9567                                           
  9568        <mapping >
  9569                                                    
  9570         <property>
  9571          content
  9572         </property >
  9573                                                    
  9574         <xpath>
  9575          cda:encoun ter/cda:co de
  9576         </xpath>
  9577                                                      
  9578                                                    
  9579         <ifNotNull >
  9580                                                          
  9581          <action 
  9582           action="re moveAttrib utes" 
  9583          />
  9584                                                              
  9585          <action 
  9586           action="se tAttribute
  9587           attribute= "code" 
  9588          >
  9589           99499
  9590          </action>
  9591                                                              
  9592          <action 
  9593           action="se tAttribute
  9594           attribute= "displayNa me" 
  9595          >
  9596           Unlisted E valuation  and Manage ment Servi ce
  9597          </action>
  9598                                                              
  9599          <action 
  9600           action="se tAttribute
  9601           attribute= "codeSyste m" 
  9602          >
  9603           2.16.840.1 .113883.6. 12
  9604          </action>
  9605                                                              
  9606          <action 
  9607           action="se tAttribute
  9608           attribute= "codeSyste mName" 
  9609          >
  9610           CPT-4
  9611          </action>
  9612                                                              
  9613                                                              
  9614          <action 
  9615           action="se tAttribute
  9616           relative=" cda:transl ation" 
  9617           attribute= "code" 
  9618          >
  9619           11488-4
  9620          </action>
  9621                                                              
  9622          <action 
  9623           action="se tAttribute
  9624           relative=" cda:transl ation" 
  9625           attribute= "displayNa me" 
  9626          >
  9627           Consultati on Note
  9628          </action>
  9629                                                              
  9630          <action 
  9631           action="se tAttribute
  9632           relative=" cda:transl ation" 
  9633           attribute= "codeSyste m" 
  9634          >
  9635           2.16.840.1 .113883.6. 1
  9636          </action>
  9637                                                              
  9638          <action 
  9639           action="se tAttribute
  9640           relative=" cda:transl ation" 
  9641           attribute= "codeSyste mName" 
  9642          >
  9643           LOINC
  9644          </action>
  9645                                                              
  9646                                                     
  9647         </ifNotNul l>
  9648                                                    
  9649         <ifNull>
  9650                                                          
  9651          <action 
  9652           action="re moveAttrib utes" 
  9653          />
  9654                                                              
  9655          <action 
  9656           action="se tAttribute
  9657           attribute= "code" 
  9658          >
  9659           99499
  9660          </action>
  9661                                                              
  9662          <action 
  9663           action="se tAttribute
  9664           attribute= "displayNa me" 
  9665          >
  9666           Unlisted E valuation  and Manage ment Servi ce
  9667          </action>
  9668                                                              
  9669          <action 
  9670           action="se tAttribute
  9671           attribute= "codeSyste m" 
  9672          >
  9673           2.16.840.1 .113883.6. 12
  9674          </action>
  9675                                                              
  9676          <action 
  9677           action="se tAttribute
  9678           attribute= "codeSyste mName" 
  9679          >
  9680           CPT-4
  9681          </action>
  9682                                                              
  9683                                                              
  9684          <action 
  9685           action="se tAttribute
  9686           relative=" cda:transl ation" 
  9687           attribute= "code" 
  9688          >
  9689           11488-4
  9690          </action>
  9691                                                              
  9692          <action 
  9693           action="se tAttribute
  9694           relative=" cda:transl ation" 
  9695           attribute= "displayNa me" 
  9696          >
  9697           Consultati on Note
  9698          </action>
  9699                                                              
  9700          <action 
  9701           action="se tAttribute
  9702           relative=" cda:transl ation" 
  9703           attribute= "codeSyste m" 
  9704          >
  9705           2.16.840.1 .113883.6. 1
  9706          </action>
  9707                                                              
  9708          <action 
  9709           action="se tAttribute
  9710           relative=" cda:transl ation" 
  9711           attribute= "codeSyste mName" 
  9712          >
  9713           LOINC
  9714          </action>
  9715                                                              
  9716                                                              
  9717                                                     
  9718         </ifNull>                                           
  9719                                            
  9720        </mapping>
  9721                                           
  9722        <mapping>
  9723                                                    
  9724         <property>
  9725          referenceD ateTime
  9726         </property >
  9727                                                    
  9728         <xpath>
  9729          cda:encoun ter/cda:ef fectiveTim e/cda:low
  9730         </xpath>
  9731                                                    
  9732         <ifNotNull >
  9733                                                              
  9734          <action 
  9735           action="se tAttribute
  9736           attribute= "value" 
  9737          />
  9738                                                     
  9739         </ifNotNul l>
  9740                                            
  9741        </mapping>
  9742                                           
  9743        <mapping>
  9744                                                    
  9745         <property 
  9746          optional=" true"
  9747         >
  9748          content
  9749         </property >
  9750                                                    
  9751         <xpath>
  9752          cda:encoun ter/cda:co de
  9753         </xpath>
  9754                                                    
  9755         <ifNotNull >
  9756                                                              
  9757          <action 
  9758           action="se tAttribute
  9759           relative=" cda:origin alText/cda :reference "
  9760                                                                       
  9761           attribute= "value" 
  9762           indexed="t rue"
  9763          >
  9764           #noteEncou nterDescri ption
  9765          </action>
  9766                                                     
  9767                                                              
  9768          <action 
  9769           action="se tAttribute
  9770           relative=" cda:transl ation/cda: originalTe xt/cda:ref erence"
  9771                                                                       
  9772           attribute= "value" 
  9773           indexed="t rue"
  9774          >
  9775           #noteEncou nterDescri ption
  9776          </action>
  9777                                                     
  9778         </ifNotNul l>
  9779                                                    
  9780         <ifNull>
  9781                                                              
  9782          <action 
  9783           action="se tAttribute
  9784           relative=" cda:origin alText/cda :reference "
  9785                                                                       
  9786           attribute= "value" 
  9787           indexed="t rue"
  9788          >
  9789           #noteEncou nterDescri ption
  9790          </action>
  9791                                                              
  9792          <action 
  9793           action="se tAttribute
  9794           relative=" cda:transl ation/cda: originalTe xt/cda:ref erence"
  9795                                                                       
  9796           attribute= "value" 
  9797           indexed="t rue"
  9798          >
  9799           #noteEncou nterDescri ption
  9800          </action>
  9801                                                     
  9802         </ifNull>
  9803                                            
  9804        </mapping>
  9805                                           
  9806        <mapping>
  9807                                                    
  9808         <property>
  9809          signingCli nician.nam e
  9810         </property >
  9811                                                    
  9812         <xpath>
  9813          cda:encoun ter/cda:pe rformer
  9814         </xpath>
  9815                                                    
  9816         <ifNotNull >
  9817                                                              
  9818          <action 
  9819           action="se tValue"
  9820                                                                       
  9821           relative=" cda:assign edEntity/c da:assigne dPerson/cd a:name" 
  9822          />
  9823                                                     
  9824         </ifNotNul l>
  9825                                            
  9826        </mapping>
  9827                                           
  9828        <mapping>
  9829                                                    
  9830         <property>
  9831          signingCli nician.nam e
  9832         </property >
  9833                                                    
  9834         <xpath>
  9835          cda:encoun ter/cda:pe rformer
  9836         </xpath>
  9837                                                    
  9838         <ifNotNull  />
  9839                                                    
  9840         <ifNull>
  9841                                                              
  9842          <action 
  9843           action="re move" 
  9844          />
  9845                                                     
  9846         </ifNull>
  9847                                            
  9848        </mapping>
  9849                                           
  9850        <mapping>
  9851                                                    
  9852         <property>
  9853          facility.n ame
  9854         </property >
  9855                                                    
  9856         <xpath>
  9857          cda:encoun ter/cda:pa rticipant/ cda:partic ipantRole/ cda:playin gEntity/cd a:name
  9858         </xpath>
  9859                                                    
  9860         <ifNotNull >
  9861                                                              
  9862          <action 
  9863           action="se tValue"  
  9864          />
  9865                                                     
  9866         </ifNotNul l>
  9867                                                    
  9868         <ifNull>
  9869                                                              
  9870          <action 
  9871           action="re moveAttrib utes" 
  9872          />
  9873                                                              
  9874          <action 
  9875           action="se tAttribute
  9876           attribute= "nullFlavo r"
  9877          >
  9878           UNK
  9879          </action>
  9880                                                     
  9881         </ifNull>
  9882                                            
  9883        </mapping>
  9884                                           
  9885        <mapping>
  9886                                                    
  9887         <property>
  9888          facility.c ode
  9889         </property >
  9890                                                    
  9891         <xpath>
  9892          cda:encoun ter/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:id
  9893         </xpath>
  9894                                                    
  9895         <ifNotNull >
  9896                                                              
  9897          <action 
  9898           action="se tAttribute
  9899           attribute= "extension
  9900          />
  9901                                                     
  9902         </ifNotNul l>
  9903                                            
  9904        </mapping>
  9905                                           
  9906        <mapping>
  9907                                                    
  9908         <property>
  9909          facility.n ame
  9910         </property >
  9911                                                    
  9912         <xpath>
  9913          cda:encoun ter/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:name
  9914         </xpath>
  9915                                                    
  9916         <ifNotNull >
  9917                                                              
  9918          <action 
  9919           action="se tValue" 
  9920          />
  9921                                                     
  9922         </ifNotNul l>
  9923                                            
  9924        </mapping>
  9925                                           
  9926        <mapping>
  9927                                                    
  9928         <property>
  9929          content
  9930         </property >
  9931                                                    
  9932         <xpath>
  9933          cda:encoun ter/cda:en tryRelatio nship[@typ eCode='RSO N']/cda:ob servation/ cda:code
  9934         </xpath>
  9935                                                    
  9936         <ifNotNull >
  9937                                                              
  9938          <action 
  9939           action="re moveAttrib utes" 
  9940          />
  9941                                                              
  9942          <action 
  9943           action="se tAttribute
  9944           attribute= "nullFlavo r"
  9945          >
  9946           UNK
  9947          </action>
  9948                                                     
  9949         </ifNotNul l>
  9950                                                    
  9951         <ifNull>
  9952                                                              
  9953          <action 
  9954           action="re moveAttrib utes" 
  9955          />
  9956                                                              
  9957          <action 
  9958           action="se tAttribute
  9959           attribute= "nullFlavo r"
  9960          >
  9961           UNK
  9962          </action>                                           
  9963                                                     
  9964         </ifNull>
  9965                                            
  9966        </mapping>
  9967                                           
  9968        <mapping>
  9969                                                    
  9970         <property>
  9971          content
  9972         </property >
  9973                                                    
  9974         <xpath>
  9975          cda:encoun ter/cda:en tryRelatio nship[@typ eCode='RSO N']/cda:ob servation/ cda:id
  9976         </xpath>
  9977                                                    
  9978         <ifNotNull >
  9979                                                              
  9980          <action 
  9981           action="re moveAttrib utes" 
  9982          />
  9983                                                              
  9984          <action 
  9985           action="se tAttribute
  9986           attribute= "nullFlavo r"
  9987          >
  9988           UNK
  9989          </action>
  9990                                                     
  9991         </ifNotNul l>
  9992                                                    
  9993         <ifNull>
  9994                                                              
  9995          <action 
  9996           action="re moveAttrib utes" 
  9997          />
  9998                                                              
  9999          <action 
  10000           action="se tAttribute
  10001           attribute= "nullFlavo r"
  10002          >
  10003           UNK
  10004          </action>                                           
  10005                                                     
  10006         </ifNull>
  10007                                            
  10008        </mapping>                                 
  10009                                           
  10010        <mapping>
  10011                                                    
  10012         <property 
  10013          optional=" true"
  10014         >
  10015          content
  10016         </property >
  10017                                                    
  10018         <xpath>
  10019          cda:encoun ter/cda:en tryRelatio nship[@typ eCode='RSO N']/cda:ob servation/ cda:text
  10020         </xpath>
  10021                                                    
  10022         <ifNotNull >
  10023                                                              
  10024          <action 
  10025           action="se tAttribute
  10026           relative=" cda:refere nce"
  10027                                                                       
  10028           attribute= "nullFlavo r" 
  10029          >
  10030           UNK
  10031          </action>
  10032                                                     
  10033         </ifNotNul l>
  10034                                                    
  10035         <ifNull>
  10036                                                              
  10037          <action 
  10038           action="se tAttribute
  10039           relative=" cda:refere nce"
  10040                                                                       
  10041           attribute= "nullFlavo r" 
  10042          >
  10043           UNK
  10044          </action>
  10045                                                     
  10046         </ifNull>
  10047                                            
  10048        </mapping>
  10049                                  
  10050       </mappings >
  10051                        
  10052      </mapping>                
  10053     
  10054              
  10055      <!-- start  history a nd physica l notes NA RRATIVE -- >
  10056                       
  10057      <mapping>
  10058                            
  10059       <property 
  10060        optional=" true"
  10061       >
  10062        hnpNotesNa rrative
  10063       </property >
  10064                            
  10065       <xpath>
  10066        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.22.1']
  10067       </xpath>
  10068                            
  10069       <ifNotNull >
  10070                                  
  10071        <action 
  10072         action="se tValue" 
  10073         relative=" cda:sectio n/cda:text /cda:parag raph[@ID=' hnpTitle']
  10074        />
  10075                             
  10076       </ifNotNul l>
  10077                        
  10078      </mapping>
  10079                       
  10080      <mapping>
  10081                                 
  10082       <property 
  10083        collection ="true" 
  10084        optional=" true"
  10085       >
  10086        historyphy sicalnotes
  10087       </property >
  10088                                 
  10089       <xpath>
  10090        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.22.1']
  10091       </xpath>
  10092                                 
  10093       <ifNotNull >
  10094                                           
  10095        <action 
  10096         action="ev aluateMapp ings"
  10097                                                   
  10098         relative=" cda:sectio n/cda:text /cda:table [@ID='HnPN oteNarrati ve']/cda:t body/cda:t r" 
  10099        />
  10100                                  
  10101       </ifNotNul l>
  10102                                 
  10103       <mappings>
  10104                                           
  10105        <mapping>
  10106                                                    
  10107         <!--proper ty>referen ceDateTime </property -->
  10108                                                    
  10109         <property>
  10110          prettyRefe renceDateT ime
  10111         </property >
  10112                                                    
  10113         <xpath>
  10114          cda:td/cda :content[@ ID='HnPnot eDateTime' ]
  10115         </xpath>
  10116                                                    
  10117         <ifNotNull >
  10118                                                              
  10119          <action 
  10120           action="se tAttribute
  10121           attribute= "ID" 
  10122           indexed="t rue"
  10123          >
  10124           HnPnoteDat eTime
  10125          </action>
  10126                                                              
  10127          <action 
  10128           action="se tValue" 
  10129          >
  10130          </action>
  10131                                                     
  10132         </ifNotNul l>
  10133                                                    
  10134         <ifNull>
  10135                                                              
  10136          <action 
  10137           action="se tAttribute
  10138           attribute= "ID" 
  10139           indexed="t rue"
  10140          >
  10141           HnPnoteDat eTime
  10142          </action>                                           
  10143                                                     
  10144         </ifNull>                                           
  10145                                            
  10146        </mapping>
  10147                                           
  10148        <!-- If no  service n ame -->
  10149                                           
  10150        <mapping 
  10151         equalsProp erty="nati onalTitleS ervice.nam e"
  10152        >
  10153                                                    
  10154         <property 
  10155          optional=" true"
  10156         >
  10157          content
  10158         </property >
  10159                                                    
  10160         <xpath>
  10161          cda:td/cda :content[@ ID='HnPnot eEncounter Descriptio n']
  10162         </xpath>
  10163                                                    
  10164         <ifNotNull >
  10165                                                              
  10166          <action 
  10167           action="se tAttribute
  10168           attribute= "ID" 
  10169           indexed="t rue"
  10170          >
  10171           HnPnoteEnc ounterDesc ription
  10172          </action>
  10173                                                              
  10174          <action 
  10175           action="ap pendValue"  
  10176          />
  10177                                                     
  10178         </ifNotNul l>
  10179                                                    
  10180         <ifNull>
  10181                                                              
  10182          <action 
  10183           action="se tAttribute
  10184           attribute= "ID" 
  10185           indexed="t rue"
  10186          >
  10187           HnPnoteEnc ounterDesc ription
  10188          </action>
  10189                                                              
  10190          <action 
  10191           action="ap pendValue"
  10192          >
  10193           No text av ailable.
  10194          </action>                                                    
  10195                                                     
  10196         </ifNull>
  10197                                            
  10198        </mapping>
  10199                                           
  10200        <!-- If th ere is a s ervice nam e -->                                         
  10201                                           
  10202        <mapping 
  10203         notEqualsP roperty="n ationalTit leService. name"
  10204        >
  10205                                                    
  10206         <property 
  10207          optional=" true"
  10208         >
  10209          content
  10210         </property >
  10211                                                    
  10212         <xpath>
  10213          cda:td/cda :content[@ ID='HnPnot eEncounter Descriptio n']
  10214         </xpath>
  10215                                                    
  10216         <ifNotNull >
  10217                                                              
  10218          <action 
  10219           action="se tAttribute
  10220           attribute= "ID" 
  10221           indexed="t rue"
  10222          >
  10223           HnPnoteEnc ounterDesc ription
  10224          </action>
  10225                                                              
  10226          <action 
  10227           action="ap pendValue"  
  10228           property=" nationalTi tleService .name" 
  10229          />
  10230                                                              
  10231          <action 
  10232           action="ap pendValue"
  10233          >
  10234            : 
  10235          </action>
  10236                                                              
  10237          <action 
  10238           action="ap pendValue"  
  10239          />
  10240                                                     
  10241         </ifNotNul l>
  10242                                                    
  10243         <ifNull>
  10244                                                              
  10245          <action 
  10246           action="se tAttribute
  10247           attribute= "ID" 
  10248           indexed="t rue"
  10249          >
  10250           HnPnoteEnc ounterDesc ription
  10251          </action>
  10252                                                              
  10253          <action 
  10254           action="ap pendValue"  
  10255           property=" nationalTi tleService .name" 
  10256          />
  10257                                                              
  10258          <action 
  10259           action="ap pendValue"
  10260          >
  10261            :      
  10262          </action>
  10263                                                              
  10264          <action 
  10265           action="ap pendValue"
  10266          >
  10267           No text av ailable.
  10268          </action>                                                    
  10269                                                     
  10270         </ifNull>
  10271                                            
  10272        </mapping>                                          
  10273                                           
  10274        <mapping>
  10275                                                    
  10276         <property 
  10277          optional=" true"
  10278         >
  10279          signingCli nician.nam e
  10280         </property >
  10281                                                    
  10282         <xpath>
  10283          cda:td/cda :content[@ ID='HnPnot eProvider' ]
  10284         </xpath>
  10285                                                    
  10286         <ifNotNull >
  10287                                                              
  10288          <action 
  10289           action="se tAttribute
  10290           attribute= "ID" 
  10291           indexed="t rue"
  10292          >
  10293           HnPnotePro vider
  10294          </action>
  10295                                                              
  10296          <action 
  10297           action="se tValue" 
  10298          />
  10299                                                     
  10300         </ifNotNul l>
  10301                                                    
  10302         <ifNull>
  10303                                                              
  10304          <action 
  10305           action="se tAttribute
  10306           attribute= "ID" 
  10307           indexed="t rue"
  10308          >
  10309           HnPnotePro vider
  10310          </action>
  10311                                                     
  10312         </ifNull>
  10313                                            
  10314        </mapping>
  10315                                           
  10316        <mapping>
  10317                                                    
  10318         <property>
  10319          facility.n ame
  10320         </property >
  10321                                                    
  10322         <xpath>
  10323          cda:td/cda :content[@ ID='HnPnot eSource']
  10324         </xpath>
  10325                                                    
  10326         <ifNotNull >
  10327                                                              
  10328          <action 
  10329           action="se tAttribute
  10330           attribute= "ID" 
  10331           indexed="t rue"
  10332          >
  10333           HnPnoteSou rce
  10334          </action>
  10335                                                              
  10336          <action 
  10337           action="se tValue" 
  10338          />
  10339                                                     
  10340         </ifNotNul l>
  10341                                                    
  10342         <ifNull>
  10343                                                              
  10344          <action 
  10345           action="se tAttribute
  10346           attribute= "ID" 
  10347           indexed="t rue"
  10348          >
  10349           HnPnoteSou rce
  10350          </action>
  10351                                                     
  10352         </ifNull>
  10353                                            
  10354        </mapping>
  10355                                  
  10356       </mappings >
  10357                        
  10358      </mapping>
  10359                       
  10360                       
  10361      <!-- start  history a nd physica l notes se ction-->
  10362                                
  10363      <mapping>
  10364                                 
  10365       <property 
  10366        collection ="true" 
  10367        optional=" true"
  10368       >
  10369        historyphy sicalnotes
  10370       </property >
  10371                                 
  10372       <xpath>
  10373        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.22.1']/c da:section /cda:entry [@id='hnp' ]
  10374       </xpath>
  10375                                 
  10376       <ifNotNull >
  10377                                  
  10378        <action 
  10379         action="re moveAttrib utes"
  10380        >
  10381        </action>
  10382                                  
  10383        <action 
  10384         action="se tAttribute
  10385         attribute= "typeCode"  
  10386        >
  10387         DRIV
  10388        </action>
  10389                                  
  10390        <action 
  10391         action="ev aluateMapp ings" 
  10392        />
  10393                                  
  10394       </ifNotNul l>
  10395                                 
  10396       <ifNull>
  10397                                           
  10398        <action 
  10399         action="re move" 
  10400         relative=" ../cda:tex t/cda:tabl e[@ID='HnP NoteNarrat ive']"
  10401        >
  10402        </action>
  10403                                           
  10404        <!--action  action="r emove" rel ative="../ cda:text/c da:table[@ ID='HnPNot eNarrative TopHeader' ]"></actio n-->
  10405                                           
  10406        <action 
  10407         action="re move" 
  10408         relative=" ../cda:tex t/cda:para graph[@ID= 'hnpTitle' ]"
  10409        >
  10410        </action>
  10411                                           
  10412        <action 
  10413         action="re move" 
  10414        >
  10415        </action>
  10416                                  
  10417       </ifNull>
  10418                                 
  10419       <mappings>
  10420                                           
  10421        <mapping>
  10422                                                    
  10423         <property>
  10424          content
  10425         </property >
  10426                                                    
  10427         <xpath>
  10428          cda:encoun ter/cda:co de
  10429         </xpath>
  10430                                                    
  10431         <ifNotNull >
  10432                                                          
  10433          <action 
  10434           action="re moveAttrib utes" 
  10435          />
  10436                                                              
  10437          <action 
  10438           action="se tAttribute
  10439           attribute= "code" 
  10440          >
  10441           99499
  10442          </action>
  10443                                                              
  10444          <action 
  10445           action="se tAttribute
  10446           attribute= "displayNa me" 
  10447          >
  10448           Unlisted E valuation  and Manage ment Servi ce
  10449          </action>
  10450                                                              
  10451          <action 
  10452           action="se tAttribute
  10453           attribute= "codeSyste m" 
  10454          >
  10455           2.16.840.1 .113883.6. 12
  10456          </action>
  10457                                                              
  10458          <action 
  10459           action="se tAttribute
  10460           attribute= "codeSyste mName" 
  10461          >
  10462           CPT-4
  10463          </action>
  10464                                                              
  10465                                                              
  10466          <action 
  10467           action="se tAttribute
  10468           relative=" cda:transl ation" 
  10469           attribute= "code" 
  10470          >
  10471           34117-2
  10472          </action>
  10473                                                              
  10474          <action 
  10475           action="se tAttribute
  10476           relative=" cda:transl ation" 
  10477           attribute= "displayNa me" 
  10478          >
  10479           History an d Physical  Note
  10480          </action>
  10481                                                              
  10482          <action 
  10483           action="se tAttribute
  10484           relative=" cda:transl ation" 
  10485           attribute= "codeSyste m" 
  10486          >
  10487           2.16.840.1 .113883.6. 1
  10488          </action>
  10489                                                              
  10490          <action 
  10491           action="se tAttribute
  10492           relative=" cda:transl ation" 
  10493           attribute= "codeSyste mName" 
  10494          >
  10495           LOINC
  10496          </action>
  10497                                                              
  10498                                                     
  10499         </ifNotNul l>
  10500                                                    
  10501         <ifNull>
  10502                                                          
  10503          <action 
  10504           action="re moveAttrib utes" 
  10505          />
  10506                                                              
  10507          <action 
  10508           action="se tAttribute
  10509           attribute= "code" 
  10510          >
  10511           99499
  10512          </action>
  10513                                                              
  10514          <action 
  10515           action="se tAttribute
  10516           attribute= "displayNa me" 
  10517          >
  10518           Unlisted E valuation  and Manage ment Servi ce
  10519          </action>
  10520                                                              
  10521          <action 
  10522           action="se tAttribute
  10523           attribute= "codeSyste m" 
  10524          >
  10525           2.16.840.1 .113883.6. 12
  10526          </action>
  10527                                                              
  10528          <action 
  10529           action="se tAttribute
  10530           attribute= "codeSyste mName" 
  10531          >
  10532           CPT-4
  10533          </action>
  10534                                                              
  10535                                                              
  10536          <action 
  10537           action="se tAttribute
  10538           relative=" cda:transl ation" 
  10539           attribute= "code" 
  10540          >
  10541           34117-2
  10542          </action>
  10543                                                              
  10544          <action 
  10545           action="se tAttribute
  10546           relative=" cda:transl ation" 
  10547           attribute= "displayNa me" 
  10548          >
  10549           History an d Physical  Note
  10550          </action>
  10551                                                              
  10552          <action 
  10553           action="se tAttribute
  10554           relative=" cda:transl ation" 
  10555           attribute= "codeSyste m" 
  10556          >
  10557           2.16.840.1 .113883.6. 1
  10558          </action>
  10559                                                              
  10560          <action 
  10561           action="se tAttribute
  10562           relative=" cda:transl ation" 
  10563           attribute= "codeSyste mName" 
  10564          >
  10565           LOINC
  10566          </action>
  10567                                                     
  10568         </ifNull>                                           
  10569                                            
  10570        </mapping>                                 
  10571                                           
  10572        <mapping>
  10573                                                    
  10574         <property>
  10575          referenceD ateTime
  10576         </property >
  10577                                                    
  10578         <xpath>
  10579          cda:encoun ter/cda:ef fectiveTim e/cda:low
  10580         </xpath>
  10581                                                    
  10582         <ifNotNull >
  10583                                                              
  10584          <action 
  10585           action="se tAttribute
  10586           attribute= "value" 
  10587          />
  10588                                                     
  10589         </ifNotNul l>
  10590                                            
  10591        </mapping>
  10592                                           
  10593        <mapping>
  10594                                                    
  10595         <property>
  10596          signingCli nician.nam e
  10597         </property >
  10598                                                    
  10599         <xpath>
  10600          cda:encoun ter/cda:pe rformer
  10601         </xpath>
  10602                                                    
  10603         <ifNotNull >
  10604                                                              
  10605          <action 
  10606           action="se tValue"
  10607                                                                       
  10608           relative=" cda:assign edEntity/c da:assigne dPerson/cd a:name" 
  10609          />
  10610                                                     
  10611         </ifNotNul l>
  10612                                            
  10613        </mapping>
  10614                                           
  10615        <mapping>
  10616                                                    
  10617         <property 
  10618          optional=" true"
  10619         >
  10620          content
  10621         </property >
  10622                                                    
  10623         <xpath>
  10624          cda:encoun ter/cda:co de
  10625         </xpath>
  10626                                                    
  10627         <ifNotNull >
  10628                                                              
  10629          <action 
  10630           action="se tAttribute
  10631           relative=" cda:origin alText/cda :reference "
  10632                                                                       
  10633           attribute= "value" 
  10634           indexed="t rue"
  10635          >
  10636           #HnPnoteEn counterDes cription
  10637          </action>
  10638                                                              
  10639          <action 
  10640           action="se tAttribute
  10641           relative=" cda:transl ation/cda: originalTe xt/cda:ref erence"
  10642                                                                       
  10643           attribute= "value" 
  10644           indexed="t rue"
  10645          >
  10646           #HnPnoteEn counterDes cription
  10647          </action>
  10648                                                     
  10649         </ifNotNul l>
  10650                                                    
  10651         <ifNull>
  10652                                                              
  10653          <action 
  10654           action="se tAttribute
  10655           relative=" cda:origin alText/cda :reference "
  10656                                                                       
  10657           attribute= "value" 
  10658           indexed="t rue"
  10659          >
  10660           #HnPnoteEn counterDes cription
  10661          </action>
  10662                                                              
  10663          <action 
  10664           action="se tAttribute
  10665           relative=" cda:transl ation/cda: originalTe xt/cda:ref erence"
  10666                                                                       
  10667           attribute= "value" 
  10668           indexed="t rue"
  10669          >
  10670           #HnPnoteEn counterDes cription
  10671          </action>
  10672                                                     
  10673         </ifNull>
  10674                                            
  10675        </mapping>                                 
  10676                                           
  10677        <mapping>
  10678                                                    
  10679         <property>
  10680          signingCli nician.nam e
  10681         </property >
  10682                                                    
  10683         <xpath>
  10684          cda:encoun ter/cda:pe rformer
  10685         </xpath>
  10686                                                    
  10687         <ifNotNull  />
  10688                                                    
  10689         <ifNull>
  10690                                                              
  10691          <action 
  10692           action="re move" 
  10693          />
  10694                                                     
  10695         </ifNull>
  10696                                            
  10697        </mapping>
  10698                                           
  10699        <mapping >
  10700                                                    
  10701         <property>
  10702          facility.n ame
  10703         </property >
  10704                                                    
  10705         <xpath>
  10706          cda:encoun ter/cda:pa rticipant/ cda:partic ipantRole/ cda:playin gEntity/cd a:name
  10707         </xpath>
  10708                                                    
  10709         <ifNotNull >
  10710                                                              
  10711          <action 
  10712           action="se tValue"   
  10713          />
  10714                                                     
  10715         </ifNotNul l>
  10716                                                    
  10717         <ifNull>
  10718                                                              
  10719          <action 
  10720           action="re moveAttrib utes" 
  10721          />
  10722                                                              
  10723          <action 
  10724           action="se tAttribute
  10725           attribute= "nullFlavo r"
  10726          >
  10727           UNK
  10728          </action>
  10729                                                     
  10730         </ifNull>
  10731                                            
  10732        </mapping>
  10733                                           
  10734        <mapping>
  10735                                                    
  10736         <property>
  10737          facility.c ode
  10738         </property >
  10739                                                    
  10740         <xpath>
  10741          cda:encoun ter/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:id
  10742         </xpath>
  10743                                                    
  10744         <ifNotNull >
  10745                                                              
  10746          <action 
  10747           action="se tAttribute
  10748           attribute= "extension
  10749          />
  10750                                                     
  10751         </ifNotNul l>
  10752                                            
  10753        </mapping>
  10754                                           
  10755        <mapping>
  10756                                                    
  10757         <property>
  10758          facility.n ame
  10759         </property >
  10760                                                    
  10761         <xpath>
  10762          cda:encoun ter/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:name
  10763         </xpath>
  10764                                                    
  10765         <ifNotNull >
  10766                                                              
  10767          <action 
  10768           action="se tValue" 
  10769          />
  10770                                                     
  10771         </ifNotNul l>
  10772                                            
  10773        </mapping>
  10774                                           
  10775        <mapping>
  10776                                                    
  10777         <property>
  10778          content
  10779         </property >
  10780                                                    
  10781         <xpath>
  10782          cda:encoun ter/cda:en tryRelatio nship[@typ eCode='RSO N']/cda:ob servation/ cda:code
  10783         </xpath>
  10784                                                    
  10785         <ifNotNull >
  10786                                                              
  10787          <action 
  10788           action="re moveAttrib utes" 
  10789          />
  10790                                                              
  10791          <action 
  10792           action="se tAttribute
  10793           attribute= "nullFlavo r"
  10794          >
  10795           UNK
  10796          </action>
  10797                                                     
  10798         </ifNotNul l>
  10799                                                    
  10800         <ifNull>
  10801                                                              
  10802          <action 
  10803           action="re moveAttrib utes" 
  10804          />
  10805                                                              
  10806          <action 
  10807           action="se tAttribute
  10808           attribute= "nullFlavo r"
  10809          >
  10810           UNK
  10811          </action>                                           
  10812                                                     
  10813         </ifNull>
  10814                                            
  10815        </mapping>
  10816                                           
  10817        <mapping>
  10818                                                    
  10819         <property>
  10820          content
  10821         </property >
  10822                                                    
  10823         <xpath>
  10824          cda:encoun ter/cda:en tryRelatio nship[@typ eCode='RSO N']/cda:ob servation/ cda:id
  10825         </xpath>
  10826                                                    
  10827         <ifNotNull >
  10828                                                              
  10829          <action 
  10830           action="re moveAttrib utes" 
  10831          />
  10832                                                              
  10833          <action 
  10834           action="se tAttribute
  10835           attribute= "nullFlavo r"
  10836          >
  10837           UNK
  10838          </action>
  10839                                                     
  10840         </ifNotNul l>
  10841                                                    
  10842         <ifNull>
  10843                                                              
  10844          <action 
  10845           action="re moveAttrib utes" 
  10846          />
  10847                                                              
  10848          <action 
  10849           action="se tAttribute
  10850           attribute= "nullFlavo r"
  10851          >
  10852           UNK
  10853          </action>                                           
  10854                                                     
  10855         </ifNull>
  10856                                            
  10857        </mapping>                                 
  10858                                           
  10859        <mapping>
  10860                                                    
  10861         <property 
  10862          optional=" true"
  10863         >
  10864          content
  10865         </property >
  10866                                                    
  10867         <xpath>
  10868          cda:encoun ter/cda:en tryRelatio nship[@typ eCode='RSO N']/cda:ob servation/ cda:text
  10869         </xpath>
  10870                                                    
  10871         <ifNotNull >
  10872                                                              
  10873          <action 
  10874           action="se tAttribute
  10875           relative=" cda:refere nce"
  10876                                                                       
  10877           attribute= "nullFlavo r" 
  10878          >
  10879           UNK
  10880          </action>
  10881                                                     
  10882         </ifNotNul l>
  10883                                                    
  10884         <ifNull>
  10885                                                              
  10886          <action 
  10887           action="se tAttribute
  10888           relative=" cda:refere nce"
  10889                                                                       
  10890           attribute= "nullFlavo r" 
  10891          >
  10892           UNK
  10893          </action>
  10894                                                     
  10895         </ifNull>
  10896                                            
  10897        </mapping>
  10898                                  
  10899       </mappings >
  10900                        
  10901      </mapping>                                 
  10902                       
  10903      <!-- start  discharge  summary N ARRATIVE - ->
  10904                       
  10905      <mapping>
  10906                            
  10907       <property 
  10908        optional=" true"
  10909       >
  10910        dischargeS ummariesNa rrative
  10911       </property >
  10912                            
  10913       <xpath>
  10914        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.22.1']
  10915       </xpath>
  10916                            
  10917       <ifNotNull >
  10918                                  
  10919        <action 
  10920         action="se tValue" 
  10921         relative=" cda:sectio n/cda:text /cda:parag raph[@ID=' disTitle']
  10922        />
  10923                             
  10924       </ifNotNul l>
  10925                        
  10926      </mapping>
  10927                       
  10928      <mapping>
  10929                                 
  10930       <property 
  10931        collection ="true" 
  10932        optional=" true"
  10933       >
  10934        dischargeS ummaries
  10935       </property >
  10936                                 
  10937       <xpath>
  10938        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.22.1']
  10939       </xpath>
  10940                                 
  10941       <ifNotNull >
  10942                                           
  10943        <action 
  10944         action="ev aluateMapp ings"
  10945                                                   
  10946         relative=" cda:sectio n/cda:text /cda:table [@ID='DisN oteNarrati ve']/cda:t body/cda:t r" 
  10947        />
  10948                                  
  10949       </ifNotNul l>
  10950                                 
  10951       <mappings>
  10952                                           
  10953        <mapping>
  10954                                                    
  10955         <property>
  10956          prettyRefe renceDateT ime
  10957         </property >
  10958                                                    
  10959         <xpath>
  10960          cda:td/cda :content[@ ID='Disnot eDateTime' ]
  10961         </xpath>
  10962                                                    
  10963         <ifNotNull >
  10964                                                              
  10965          <action 
  10966           action="se tAttribute
  10967           attribute= "ID" 
  10968           indexed="t rue"
  10969          >
  10970           DisnoteDat eTime
  10971          </action>
  10972                                                              
  10973          <action 
  10974           action="se tValue" 
  10975          >
  10976          </action>
  10977                                                     
  10978         </ifNotNul l>
  10979                                                    
  10980         <ifNull>
  10981                                                              
  10982          <action 
  10983           action="se tAttribute
  10984           attribute= "ID" 
  10985           indexed="t rue"
  10986          >
  10987           DisnoteDat eTime
  10988          </action>                                           
  10989                                                     
  10990         </ifNull>                                           
  10991                                            
  10992        </mapping>
  10993                                           
  10994        <mapping>
  10995                                                    
  10996         <property 
  10997          optional=" true"
  10998         >
  10999          content
  11000         </property >
  11001                                                    
  11002         <xpath>
  11003          cda:td/cda :content[@ ID='Disnot eEncounter Descriptio n']
  11004         </xpath>
  11005                                                    
  11006         <ifNotNull >
  11007                                                              
  11008          <action 
  11009           action="se tAttribute
  11010           attribute= "ID" 
  11011           indexed="t rue"
  11012          >
  11013           DisnoteEnc ounterDesc ription
  11014          </action>
  11015                                                              
  11016          <action 
  11017           action="ap pendValue"  
  11018           property=" nationalTi tle.name" 
  11019          />
  11020                                                              
  11021          <action 
  11022           action="ap pendValue"
  11023          >
  11024            : 
  11025          </action>
  11026                                                              
  11027          <action 
  11028           action="ap pendValue"  
  11029          />
  11030                                                     
  11031         </ifNotNul l>
  11032                                                    
  11033         <ifNull>
  11034                                                              
  11035          <action 
  11036           action="se tAttribute
  11037           attribute= "ID" 
  11038           indexed="t rue"
  11039          >
  11040           DisnoteEnc ounterDesc ription
  11041          </action>
  11042                                                              
  11043          <action 
  11044           action="ap pendValue"  
  11045           property=" nationalTi tle.name" 
  11046          />
  11047                                                              
  11048          <action 
  11049           action="ap pendValue"
  11050          >
  11051            :      
  11052          </action>
  11053                                                              
  11054          <action 
  11055           action="ap pendValue"
  11056          >
  11057           No text av ailable.
  11058          </action>                                                    
  11059                                                     
  11060         </ifNull>
  11061                                            
  11062        </mapping>                                          
  11063                                           
  11064        <mapping>
  11065                                                    
  11066         <property 
  11067          optional=" true"
  11068         >
  11069          signingCli nician.nam e
  11070         </property >
  11071                                                    
  11072         <xpath>
  11073          cda:td/cda :content[@ ID='Disnot eProvider' ]
  11074         </xpath>
  11075                                                    
  11076         <ifNotNull >
  11077                                                              
  11078          <action 
  11079           action="se tAttribute
  11080           attribute= "ID" 
  11081           indexed="t rue"
  11082          >
  11083           DisnotePro vider
  11084          </action>
  11085                                                              
  11086          <action 
  11087           action="se tValue" 
  11088          />
  11089                                                     
  11090         </ifNotNul l>
  11091                                                    
  11092         <ifNull>
  11093                                                              
  11094          <action 
  11095           action="se tAttribute
  11096           attribute= "ID" 
  11097           indexed="t rue"
  11098          >
  11099           DisnotePro vider
  11100          </action>
  11101                                                     
  11102         </ifNull>
  11103                                            
  11104        </mapping>
  11105                                           
  11106        <mapping>
  11107                                                    
  11108         <property>
  11109          facility.n ame
  11110         </property >
  11111                                                    
  11112         <xpath>
  11113          cda:td/cda :content[@ ID='Disnot eSource']
  11114         </xpath>
  11115                                                    
  11116         <ifNotNull >
  11117                                                              
  11118          <action 
  11119           action="se tAttribute
  11120           attribute= "ID" 
  11121           indexed="t rue"
  11122          >
  11123           DisnoteSou rce
  11124          </action>
  11125                                                              
  11126          <action 
  11127           action="se tValue" 
  11128          />
  11129                                                     
  11130         </ifNotNul l>
  11131                                                    
  11132         <ifNull>
  11133                                                              
  11134          <action 
  11135           action="se tAttribute
  11136           attribute= "ID" 
  11137           indexed="t rue"
  11138          >
  11139           DisnoteSou rce
  11140          </action>
  11141                                                     
  11142         </ifNull>
  11143                                            
  11144        </mapping>
  11145                                  
  11146       </mappings >
  11147                        
  11148      </mapping>
  11149                       
  11150      <!-- start  discharge  summary s ection-->
  11151                                
  11152      <mapping>
  11153                                 
  11154       <property 
  11155        collection ="true" 
  11156        optional=" true"
  11157       >
  11158        dischargeS ummaries
  11159       </property >
  11160                                 
  11161       <xpath>
  11162        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.22.1']/c da:section /cda:entry [@id='dis' ]
  11163       </xpath>
  11164                                 
  11165       <ifNotNull >
  11166                                  
  11167        <action 
  11168         action="re moveAttrib utes"
  11169        >
  11170        </action>
  11171                                  
  11172        <action 
  11173         action="se tAttribute
  11174         attribute= "typeCode"  
  11175        >
  11176         DRIV
  11177        </action>
  11178                                  
  11179        <action 
  11180         action="ev aluateMapp ings" 
  11181        />
  11182                                  
  11183       </ifNotNul l>
  11184                                 
  11185       <ifNull>
  11186                                           
  11187        <action 
  11188         action="re move" 
  11189         relative=" ../cda:tex t/cda:tabl e[@ID='Dis NoteNarrat ive']"
  11190        >
  11191        </action>
  11192                                           
  11193        <action 
  11194         action="re move" 
  11195         relative=" ../cda:tex t/cda:para graph[@ID= 'disTitle' ]"
  11196        >
  11197        </action>
  11198                                           
  11199        <action 
  11200         action="re move" 
  11201        >
  11202        </action>
  11203                                  
  11204       </ifNull>
  11205                                 
  11206       <mappings>
  11207                                           
  11208        <mapping>
  11209                                                    
  11210         <property>
  11211          content
  11212         </property >
  11213                                                    
  11214         <xpath>
  11215          cda:encoun ter/cda:co de
  11216         </xpath>
  11217                                                    
  11218         <ifNotNull >
  11219                                                          
  11220          <action 
  11221           action="re moveAttrib utes" 
  11222          />
  11223                                                              
  11224          <action 
  11225           action="se tAttribute
  11226           attribute= "code"
  11227          >
  11228           99238
  11229          </action>
  11230                                                              
  11231          <action 
  11232           action="se tAttribute
  11233           attribute= "displayNa me"
  11234          >
  11235           Hospital d ischarge d ay managem ent; 30 mi nutes or l ess
  11236          </action>
  11237                                                              
  11238          <action 
  11239           action="se tAttribute
  11240           attribute= "codeSyste m"
  11241          >
  11242           2.16.840.1 .113883.6. 12
  11243          </action>
  11244                                                              
  11245          <action 
  11246           action="se tAttribute
  11247           attribute= "codeSyste mName"
  11248          >
  11249           CPT-4
  11250          </action>
  11251                                                              
  11252                                                              
  11253          <action 
  11254           action="se tAttribute
  11255           relative=" cda:transl ation" 
  11256           attribute= "code" 
  11257          >
  11258           18842-5
  11259          </action>
  11260                                                              
  11261          <action 
  11262           action="se tAttribute
  11263           relative=" cda:transl ation" 
  11264           attribute= "displayNa me" 
  11265          >
  11266           Discharge  Summarizat ion Note
  11267          </action>
  11268                                                              
  11269          <action 
  11270           action="se tAttribute
  11271           relative=" cda:transl ation" 
  11272           attribute= "codeSyste m" 
  11273          >
  11274           2.16.840.1 .113883.6. 1
  11275          </action>
  11276                                                              
  11277          <action 
  11278           action="se tAttribute
  11279           relative=" cda:transl ation" 
  11280           attribute= "codeSyste mName" 
  11281          >
  11282           LOINC
  11283          </action>
  11284                                                              
  11285                                                     
  11286         </ifNotNul l>
  11287                                                    
  11288         <ifNull>
  11289                                                          
  11290          <action 
  11291           action="re moveAttrib utes" 
  11292          />
  11293                                                              
  11294          <action 
  11295           action="se tAttribute
  11296           attribute= "code"
  11297          >
  11298           99238
  11299          </action>
  11300                                                              
  11301          <action 
  11302           action="se tAttribute
  11303           attribute= "displayNa me"
  11304          >
  11305           Hospital d ischarge d ay managem ent; 30 mi nutes or l ess
  11306          </action>
  11307                                                              
  11308          <action 
  11309           action="se tAttribute
  11310           attribute= "codeSyste m"
  11311          >
  11312           2.16.840.1 .113883.6. 12
  11313          </action>
  11314                                                              
  11315          <action 
  11316           action="se tAttribute
  11317           attribute= "codeSyste mName"
  11318          >
  11319           CPT-4
  11320          </action>
  11321                                                              
  11322                                                              
  11323          <action 
  11324           action="se tAttribute
  11325           relative=" cda:transl ation" 
  11326           attribute= "code" 
  11327          >
  11328           18842-5
  11329          </action>
  11330                                                              
  11331          <action 
  11332           action="se tAttribute
  11333           relative=" cda:transl ation" 
  11334           attribute= "displayNa me" 
  11335          >
  11336           Discharge  Summarizat ion Note
  11337          </action>
  11338                                                              
  11339          <action 
  11340           action="se tAttribute
  11341           relative=" cda:transl ation" 
  11342           attribute= "codeSyste m" 
  11343          >
  11344           2.16.840.1 .113883.6. 1
  11345          </action>
  11346                                                              
  11347          <action 
  11348           action="se tAttribute
  11349           relative=" cda:transl ation" 
  11350           attribute= "codeSyste mName" 
  11351          >
  11352           LOINC
  11353          </action>
  11354                                                              
  11355                                                     
  11356         </ifNull>
  11357                                                    
  11358                                            
  11359        </mapping>                                 
  11360                                           
  11361        <mapping>
  11362                                                    
  11363         <property>
  11364          referenceD ateTime
  11365         </property >
  11366                                                    
  11367         <xpath>
  11368          cda:encoun ter/cda:ef fectiveTim e/cda:low
  11369         </xpath>
  11370                                                    
  11371         <ifNotNull >
  11372                                                              
  11373          <action 
  11374           action="se tAttribute
  11375           attribute= "value" 
  11376          />
  11377                                                     
  11378         </ifNotNul l>
  11379                                            
  11380        </mapping>
  11381                                           
  11382        <mapping>
  11383                                                    
  11384         <property>
  11385          signingCli nician.nam e
  11386         </property >
  11387                                                    
  11388         <xpath>
  11389          cda:encoun ter/cda:pe rformer
  11390         </xpath>
  11391                                                    
  11392         <ifNotNull >
  11393                                                              
  11394          <action 
  11395           action="se tValue"
  11396                                                                       
  11397           relative=" cda:assign edEntity/c da:assigne dPerson/cd a:name" 
  11398          />
  11399                                                     
  11400         </ifNotNul l>
  11401                                            
  11402        </mapping>
  11403                                           
  11404        <mapping>
  11405                                                    
  11406         <property 
  11407          optional=" true"
  11408         >
  11409          content
  11410         </property >
  11411                                                    
  11412         <xpath>
  11413          cda:encoun ter/cda:co de
  11414         </xpath>
  11415                                                    
  11416         <ifNotNull >
  11417                                                              
  11418          <action 
  11419           action="se tAttribute
  11420           relative=" cda:origin alText/cda :reference "
  11421                                                                       
  11422           attribute= "value" 
  11423           indexed="t rue"
  11424          >
  11425           #DisnoteEn counterDes cription
  11426          </action>
  11427                                                     
  11428                                                              
  11429          <action 
  11430           action="se tAttribute
  11431           relative=" cda:transl ation/cda: originalTe xt/cda:ref erence"
  11432                                                                       
  11433           attribute= "value" 
  11434           indexed="t rue"
  11435          >
  11436           #DisnoteEn counterDes cription
  11437          </action>
  11438                                                     
  11439         </ifNotNul l>
  11440                                                    
  11441         <ifNull>
  11442                                                              
  11443          <action 
  11444           action="se tAttribute
  11445           relative=" cda:origin alText/cda :reference "
  11446                                                                       
  11447           attribute= "value" 
  11448           indexed="t rue"
  11449          >
  11450           #DisnoteEn counterDes cription
  11451          </action>
  11452                                                              
  11453          <action 
  11454           action="se tAttribute
  11455           relative=" cda:transl ation/cda: originalTe xt/cda:ref erence"
  11456                                                                       
  11457           attribute= "value" 
  11458           indexed="t rue"
  11459          >
  11460           #DisnoteEn counterDes cription
  11461          </action>
  11462                                                     
  11463         </ifNull>
  11464                                            
  11465        </mapping>                                 
  11466                                           
  11467        <mapping>
  11468                                                    
  11469         <property>
  11470          signingCli nician.nam e
  11471         </property >
  11472                                                    
  11473         <xpath>
  11474          cda:encoun ter/cda:pe rformer
  11475         </xpath>
  11476                                                    
  11477         <ifNotNull  />
  11478                                                    
  11479         <ifNull>
  11480                                                              
  11481          <action 
  11482           action="re move" 
  11483          />
  11484                                                     
  11485         </ifNull>
  11486                                            
  11487        </mapping>
  11488                                           
  11489        <mapping >
  11490                                                    
  11491         <property>
  11492          facility.n ame
  11493         </property >
  11494                                                    
  11495         <xpath>
  11496          cda:encoun ter/cda:pa rticipant/ cda:partic ipantRole/ cda:playin gEntity/cd a:name
  11497         </xpath>
  11498                                                    
  11499         <ifNotNull >
  11500                                                              
  11501          <action 
  11502           action="se tValue"  
  11503          />
  11504                                                     
  11505         </ifNotNul l>
  11506                                                    
  11507         <ifNull>
  11508                                                              
  11509          <action 
  11510           action="re moveAttrib utes" 
  11511          />
  11512                                                              
  11513          <action 
  11514           action="se tAttribute
  11515           attribute= "nullFlavo r"
  11516          >
  11517           UNK
  11518          </action>
  11519                                                     
  11520         </ifNull>
  11521                                            
  11522        </mapping>
  11523                                           
  11524        <mapping>
  11525                                                    
  11526         <property>
  11527          facility.c ode
  11528         </property >
  11529                                                    
  11530         <xpath>
  11531          cda:encoun ter/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:id
  11532         </xpath>
  11533                                                    
  11534         <ifNotNull >
  11535                                                              
  11536          <action 
  11537           action="se tAttribute
  11538           attribute= "extension
  11539          />
  11540                                                     
  11541         </ifNotNul l>
  11542                                            
  11543        </mapping>
  11544                                           
  11545        <mapping>
  11546                                                    
  11547         <property>
  11548          facility.n ame
  11549         </property >
  11550                                                    
  11551         <xpath>
  11552          cda:encoun ter/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:name
  11553         </xpath>
  11554                                                    
  11555         <ifNotNull >
  11556                                                              
  11557          <action 
  11558           action="se tValue" 
  11559          />
  11560                                                     
  11561         </ifNotNul l>
  11562                                            
  11563        </mapping>
  11564                                           
  11565        <mapping>
  11566                                                    
  11567         <property>
  11568          content
  11569         </property >
  11570                                                    
  11571         <xpath>
  11572          cda:encoun ter/cda:en tryRelatio nship[@typ eCode='RSO N']/cda:ob servation/ cda:code
  11573         </xpath>
  11574                                                    
  11575         <ifNotNull >
  11576                                                              
  11577          <action 
  11578           action="re moveAttrib utes" 
  11579          />
  11580                                                              
  11581          <action 
  11582           action="se tAttribute
  11583           attribute= "nullFlavo r"
  11584          >
  11585           UNK
  11586          </action>
  11587                                                     
  11588         </ifNotNul l>
  11589                                                    
  11590         <ifNull>
  11591                                                              
  11592          <action 
  11593           action="re moveAttrib utes" 
  11594          />
  11595                                                              
  11596          <action 
  11597           action="se tAttribute
  11598           attribute= "nullFlavo r"
  11599          >
  11600           UNK
  11601          </action>                                           
  11602                                                     
  11603         </ifNull>
  11604                                            
  11605        </mapping>
  11606                                           
  11607        <mapping>
  11608                                                    
  11609         <property>
  11610          content
  11611         </property >
  11612                                                    
  11613         <xpath>
  11614          cda:encoun ter/cda:en tryRelatio nship[@typ eCode='RSO N']/cda:ob servation/ cda:id
  11615         </xpath>
  11616                                                    
  11617         <ifNotNull >
  11618                                                              
  11619          <action 
  11620           action="re moveAttrib utes" 
  11621          />
  11622                                                              
  11623          <action 
  11624           action="se tAttribute
  11625           attribute= "nullFlavo r"
  11626          >
  11627           UNK
  11628          </action>
  11629                                                     
  11630         </ifNotNul l>
  11631                                                    
  11632         <ifNull>
  11633                                                              
  11634          <action 
  11635           action="re moveAttrib utes" 
  11636          />
  11637                                                              
  11638          <action 
  11639           action="se tAttribute
  11640           attribute= "nullFlavo r"
  11641          >
  11642           UNK
  11643          </action>                                           
  11644                                                     
  11645         </ifNull>
  11646                                            
  11647        </mapping>                                 
  11648                                           
  11649        <mapping>
  11650                                                    
  11651         <property 
  11652          optional=" true"
  11653         >
  11654          content
  11655         </property >
  11656                                                    
  11657         <xpath>
  11658          cda:encoun ter/cda:en tryRelatio nship[@typ eCode='RSO N']/cda:ob servation/ cda:text
  11659         </xpath>
  11660                                                    
  11661         <ifNotNull >
  11662                                                              
  11663          <action 
  11664           action="se tAttribute
  11665           relative=" cda:refere nce"
  11666                                                                       
  11667           attribute= "nullFlavo r" 
  11668          >
  11669           UNK
  11670          </action>
  11671                                                     
  11672         </ifNotNul l>
  11673                                                    
  11674         <ifNull>
  11675                                                              
  11676          <action 
  11677           action="se tAttribute
  11678           relative=" cda:refere nce"
  11679                                                                       
  11680           attribute= "nullFlavo r" 
  11681          >
  11682           UNK
  11683          </action>
  11684                                                     
  11685         </ifNull>
  11686                                            
  11687        </mapping>
  11688                                  
  11689       </mappings >
  11690                        
  11691      </mapping>                
  11692     
  11693              
  11694      <!-- Start  Associate d Encounte r Notes Ma pping Narr ative. -->
  11695                       
  11696      <mapping>
  11697                            
  11698       <property 
  11699        optional=" true"
  11700       >
  11701        visitsNote sNarrative
  11702       </property >
  11703                            
  11704       <xpath>
  11705        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.22.1']
  11706       </xpath>
  11707                            
  11708       <ifNotNull >
  11709                                  
  11710        <action 
  11711         action="se tValue" 
  11712         relative=" cda:sectio n/cda:text /cda:parag raph[@ID=' anTitle']"  
  11713        />
  11714                             
  11715       </ifNotNul l>
  11716                        
  11717      </mapping>
  11718                       
  11719      <mapping>
  11720                                 
  11721       <property 
  11722        collection ="true" 
  11723       >
  11724        encounterD ocs
  11725       </property >
  11726                                 
  11727       <xpath>
  11728        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.22.1']/c da:section /cda:text/ cda:table[ @ID='anNot eNarrative ']
  11729       </xpath>
  11730                                 
  11731       <ifNotNull >
  11732                                           
  11733        <action 
  11734         action="ev aluateMapp ings" 
  11735         relative=" cda:tbody/ cda:tr"
  11736        />
  11737                                  
  11738       </ifNotNul l>
  11739                                 
  11740       <ifNull>
  11741                                           
  11742        <action 
  11743         action="re move" 
  11744        />
  11745                                           
  11746        <action 
  11747         action="re move" 
  11748         relative=" ../../cda: paragraph[ @ID='anTit le']"
  11749        >
  11750        </action>
  11751                                  
  11752       </ifNull>
  11753                                 
  11754       <mappings>
  11755                                           
  11756        <mapping>
  11757                                                    
  11758         <!--proper ty>referen ceDateTime </property -->
  11759                                                    
  11760         <property>
  11761          prettyRefe renceDateT ime
  11762         </property >
  11763                                                    
  11764         <xpath>
  11765          cda:td/cda :content[@ ID='anNote DateTime']
  11766         </xpath>
  11767                                                    
  11768         <ifNotNull >
  11769                                                              
  11770          <action 
  11771           action="se tAttribute
  11772           attribute= "ID" 
  11773           indexed="t rue"
  11774          >
  11775           anNoteDate Time
  11776          </action>
  11777                                                              
  11778          <action 
  11779           action="se tValue" 
  11780          >
  11781          </action>
  11782                                                     
  11783         </ifNotNul l>
  11784                                                    
  11785         <ifNull>
  11786                                                              
  11787          <action 
  11788           action="se tAttribute
  11789           attribute= "ID" 
  11790           indexed="t rue"
  11791          >
  11792           anNoteDate Time
  11793          </action>                                           
  11794                                                     
  11795         </ifNull>                                           
  11796                                            
  11797        </mapping>
  11798                                           
  11799        <!-- if Se rvice name  blank. -- >
  11800                                           
  11801        <mapping>
  11802                                                    
  11803         <property 
  11804          optional=" true"
  11805         >
  11806          content
  11807         </property >
  11808                                                    
  11809         <xpath>
  11810          cda:td/cda :content[@ ID='anNote EncounterD escription ']
  11811         </xpath>
  11812                                                    
  11813         <ifNotNull >
  11814                                                              
  11815          <action 
  11816           action="se tAttribute
  11817           attribute= "ID" 
  11818           indexed="t rue"
  11819          >
  11820           anNoteEnco unterDescr iption
  11821          </action>
  11822                                                              
  11823          <action 
  11824           action="ap pendValue"  
  11825           property=" documentTi tle" 
  11826          />
  11827                                                              
  11828          <action 
  11829           action="ap pendValue"
  11830          >
  11831            : 
  11832          </action>
  11833                                                              
  11834          <action 
  11835           action="ap pendValue"  
  11836          />
  11837                                                     
  11838         </ifNotNul l>
  11839                                                    
  11840         <ifNull>
  11841                                                              
  11842          <action 
  11843           action="se tAttribute
  11844           attribute= "ID" 
  11845           indexed="t rue"
  11846          >
  11847           anNoteEnco unterDescr iption
  11848          </action>
  11849                                                              
  11850          <action 
  11851           action="ap pendValue"  
  11852           property=" documentTi tle" 
  11853          />
  11854                                                              
  11855          <action 
  11856           action="ap pendValue"
  11857          >
  11858            : 
  11859          </action>
  11860                                                              
  11861          <action 
  11862           action="ap pendValue"
  11863          >
  11864           No text av ailable.
  11865          </action>                                                    
  11866                                                     
  11867         </ifNull>
  11868                                            
  11869        </mapping>
  11870                         
  11871                                           
  11872        <mapping>
  11873                                                    
  11874         <property 
  11875          optional=" true"
  11876         >
  11877          signingCli nician.nam e
  11878         </property >
  11879                                                    
  11880         <xpath>
  11881          cda:td/cda :content[@ ID='anNote Provider']
  11882         </xpath>
  11883                                                    
  11884         <ifNotNull >
  11885                                                              
  11886          <action 
  11887           action="se tAttribute
  11888           attribute= "ID" 
  11889           indexed="t rue"
  11890          >
  11891           anNoteProv ider
  11892          </action>
  11893                                                              
  11894          <action 
  11895           action="se tValue" 
  11896          />
  11897                                                     
  11898         </ifNotNul l>
  11899                                                    
  11900         <ifNull>
  11901                                                              
  11902          <action 
  11903           action="se tAttribute
  11904           attribute= "ID" 
  11905           indexed="t rue"
  11906          >
  11907           anNoteProv ider
  11908          </action>
  11909                                                     
  11910         </ifNull>
  11911                                            
  11912        </mapping>
  11913                                           
  11914        <mapping>
  11915                                                    
  11916         <property>
  11917          facility.n ame
  11918         </property >
  11919                                                    
  11920         <xpath>
  11921          cda:td/cda :content[@ ID='anNote Source']
  11922         </xpath>
  11923                                                    
  11924         <ifNotNull >
  11925                                                              
  11926          <action 
  11927           action="se tAttribute
  11928           attribute= "ID" 
  11929           indexed="t rue"
  11930          >
  11931           anNoteSour ce
  11932          </action>
  11933                                                              
  11934          <action 
  11935           action="se tValue" 
  11936          />
  11937                                                     
  11938         </ifNotNul l>
  11939                                                    
  11940         <ifNull>
  11941                                                              
  11942          <action 
  11943           action="se tAttribute
  11944           attribute= "ID" 
  11945           indexed="t rue"
  11946          >
  11947           anNoteSour ce
  11948          </action>
  11949                                                     
  11950         </ifNull>
  11951                                            
  11952        </mapping>
  11953                                  
  11954       </mappings >
  11955                        
  11956      </mapping>
  11957                       
  11958      <mapping>
  11959                                 
  11960       <property 
  11961        collection ="true" 
  11962       >
  11963        encounterD ocs
  11964       </property >
  11965                                 
  11966       <xpath>
  11967        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.22.1']/c da:section /cda:text/ cda:paragr aph[@ID='a nTitle']
  11968       </xpath>
  11969                                 
  11970       <ifNotNull  />
  11971                                 
  11972       <ifNull>
  11973                                           
  11974        <action 
  11975         action="re move" 
  11976        />
  11977                                  
  11978       </ifNull>
  11979                        
  11980      </mapping>
  11981                       
  11982      <mapping>
  11983                                 
  11984       <property 
  11985        collection ="true" 
  11986        optional=" true"
  11987       >
  11988        encounterD ocs
  11989       </property >
  11990                                 
  11991       <xpath>
  11992        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.22.1']/c da:section /cda:entry [@id='eds' ]
  11993       </xpath>
  11994                                 
  11995       <ifNotNull >
  11996                                  
  11997        <action 
  11998         action="re moveAttrib utes"
  11999        >
  12000        </action>
  12001                                  
  12002        <action 
  12003         action="se tAttribute
  12004         attribute= "typeCode"  
  12005        >
  12006         DRIV
  12007        </action>
  12008                                  
  12009        <action 
  12010         action="ev aluateMapp ings" 
  12011        />
  12012                                  
  12013       </ifNotNul l>
  12014                                 
  12015       <ifNull>
  12016                                           
  12017        <action 
  12018         action="re move" 
  12019        >
  12020        </action>
  12021                                  
  12022       </ifNull>
  12023                                 
  12024       <mappings>
  12025                                           
  12026        <mapping 
  12027         equalsProp erty="cate gory" 
  12028         equalsValu e="PN"
  12029        >
  12030                                                    
  12031         <property>
  12032          content
  12033         </property >
  12034                                                    
  12035         <xpath>
  12036          cda:encoun ter/cda:co de
  12037         </xpath>
  12038                                                    
  12039         <ifNotNull >
  12040                                                              
  12041          <action 
  12042           action="se tAttribute
  12043           relative=" cda:transl ation" 
  12044           attribute= "code"
  12045          >
  12046           11506-3
  12047          </action>
  12048                                                              
  12049          <action 
  12050           action="se tAttribute
  12051           relative=" cda:transl ation" 
  12052           attribute= "displayNa me"
  12053          >
  12054           Subsequent  evaluatio n note
  12055          </action>
  12056                                                     
  12057         </ifNotNul l>
  12058                                            
  12059        </mapping>
  12060                                           
  12061        <mapping 
  12062         equalsProp erty="cate gory" 
  12063         equalsValu e="DS"
  12064        >
  12065                                                    
  12066         <property>
  12067          content
  12068         </property >
  12069                                                    
  12070         <xpath>
  12071          cda:encoun ter/cda:co de
  12072         </xpath>
  12073                                                    
  12074         <ifNotNull >
  12075                                                              
  12076          <action 
  12077           action="se tAttribute
  12078           relative=" cda:transl ation" 
  12079           attribute= "code"
  12080          >
  12081           18842-5
  12082          </action>
  12083                                                              
  12084          <action 
  12085           action="se tAttribute
  12086           relative=" cda:transl ation" 
  12087           attribute= "displayNa me"
  12088          >
  12089           Discharge  Summarizat ion Note
  12090          </action>
  12091                                                     
  12092         </ifNotNul l>
  12093                                            
  12094        </mapping>
  12095                                           
  12096        <mapping 
  12097         equalsProp erty="cate gory" 
  12098         equalsValu e="CR"
  12099        >
  12100                                                    
  12101         <property>
  12102          content
  12103         </property >
  12104                                                    
  12105         <xpath>
  12106          cda:encoun ter/cda:co de
  12107         </xpath>
  12108                                                    
  12109         <ifNotNull >
  12110                                                              
  12111          <action 
  12112           action="se tAttribute
  12113           relative=" cda:transl ation" 
  12114           attribute= "code"
  12115          >
  12116           11488-4
  12117          </action>
  12118                                                              
  12119          <action 
  12120           action="se tAttribute
  12121           relative=" cda:transl ation" 
  12122           attribute= "displayNa me"
  12123          >
  12124           Consultati on Note
  12125          </action>
  12126                                                     
  12127         </ifNotNul l>
  12128                                            
  12129        </mapping>                
  12130                                           
  12131        <mapping 
  12132         equalsProp erty="cate gory" 
  12133         equalsValu e="CP"
  12134        >
  12135                                                    
  12136         <property>
  12137          content
  12138         </property >
  12139                                                    
  12140         <xpath>
  12141          cda:encoun ter/cda:co de
  12142         </xpath>
  12143                                                    
  12144         <ifNotNull >
  12145                                                              
  12146          <action 
  12147           action="se tAttribute
  12148           relative=" cda:transl ation" 
  12149           attribute= "code"
  12150          >
  12151           28570-0
  12152          </action>
  12153                                                              
  12154          <action 
  12155           action="se tAttribute
  12156           relative=" cda:transl ation" 
  12157           attribute= "displayNa me"
  12158          >
  12159           Procedure  Note
  12160          </action>
  12161                                                     
  12162         </ifNotNul l>
  12163                                            
  12164        </mapping>
  12165                                           
  12166        <mapping 
  12167         equalsProp erty="cate gory" 
  12168         equalsValu e="SR"
  12169        >
  12170                                                    
  12171         <property>
  12172          content
  12173         </property >
  12174                                                    
  12175         <xpath>
  12176          cda:encoun ter/cda:co de
  12177         </xpath>
  12178                                                    
  12179         <ifNotNull >
  12180                                                              
  12181          <action 
  12182           action="se tAttribute
  12183           relative=" cda:transl ation" 
  12184           attribute= "code"
  12185          >
  12186           29752-3
  12187          </action>
  12188                                                              
  12189          <action 
  12190           action="se tAttribute
  12191           relative=" cda:transl ation" 
  12192           attribute= "displayNa me"
  12193          >
  12194           Perioperat ive Record s
  12195          </action>
  12196                                                     
  12197         </ifNotNul l>
  12198                                            
  12199        </mapping>
  12200                                           
  12201        <mapping 
  12202         equalsProp erty="cate gory" 
  12203         equalsValu e="RA"
  12204        >
  12205                                                    
  12206         <property>
  12207          content
  12208         </property >
  12209                                                    
  12210         <xpath>
  12211          cda:encoun ter/cda:co de
  12212         </xpath>
  12213                                                    
  12214         <ifNotNull >
  12215                                                              
  12216          <action 
  12217           action="se tAttribute
  12218           relative=" cda:transl ation" 
  12219           attribute= "code"
  12220          >
  12221           18726-0
  12222          </action>
  12223                                                              
  12224          <action 
  12225           action="se tAttribute
  12226           relative=" cda:transl ation" 
  12227           attribute= "displayNa me"
  12228          >
  12229           Radiology  Studies
  12230          </action>
  12231                                                     
  12232         </ifNotNul l>
  12233                                            
  12234        </mapping>
  12235                                           
  12236        <mapping 
  12237         equalsProp erty="cate gory" 
  12238         equalsValu e="LR"
  12239        >
  12240                                                    
  12241         <property>
  12242          content
  12243         </property >
  12244                                                    
  12245         <xpath>
  12246          cda:encoun ter/cda:co de
  12247         </xpath>
  12248                                                    
  12249         <ifNotNull >
  12250                                                              
  12251          <action 
  12252           action="se tAttribute
  12253           relative=" cda:transl ation" 
  12254           attribute= "code"
  12255          >
  12256           27898-6
  12257          </action>
  12258                                                              
  12259          <action 
  12260           action="se tAttribute
  12261           relative=" cda:transl ation" 
  12262           attribute= "displayNa me"
  12263          >
  12264           Pathology  Studies
  12265          </action>
  12266                                                     
  12267         </ifNotNul l>
  12268                                            
  12269        </mapping>
  12270                                           
  12271        <mapping 
  12272         equalsProp erty="cate gory" 
  12273         equalsValu e="C"
  12274        >
  12275                                                    
  12276         <property>
  12277          content
  12278         </property >
  12279                                                    
  12280         <xpath>
  12281          cda:encoun ter/cda:co de
  12282         </xpath>
  12283                                                    
  12284         <ifNotNull >
  12285                                                              
  12286          <action 
  12287           action="se tAttribute
  12288           relative=" cda:transl ation" 
  12289           attribute= "code"
  12290          >
  12291           34904-3
  12292          </action>
  12293                                                              
  12294          <action 
  12295           action="se tAttribute
  12296           relative=" cda:transl ation" 
  12297           attribute= "displayNa me"
  12298          >
  12299           Progress N ote – Ment al Health
  12300          </action>
  12301                                                     
  12302         </ifNotNul l>
  12303                                            
  12304        </mapping>
  12305                                           
  12306        <mapping 
  12307         equalsProp erty="cate gory" 
  12308         equalsValu e="W"
  12309        >
  12310                                                    
  12311         <property>
  12312          content
  12313         </property >
  12314                                                    
  12315         <xpath>
  12316          cda:encoun ter/cda:co de
  12317         </xpath>
  12318                                                    
  12319         <ifNotNull >
  12320                                                              
  12321          <action 
  12322           action="se tAttribute
  12323           relative=" cda:transl ation" 
  12324           attribute= "code"
  12325          >
  12326           71282-4
  12327          </action>
  12328                                                              
  12329          <action 
  12330           action="se tAttribute
  12331           relative=" cda:transl ation" 
  12332           attribute= "displayNa me"
  12333          >
  12334           Risk Asses sment  Doc ument
  12335          </action>
  12336                                                     
  12337         </ifNotNul l>
  12338                                            
  12339        </mapping>
  12340                                           
  12341        <mapping 
  12342         equalsProp erty="cate gory" 
  12343         equalsValu e="A"
  12344        >
  12345                                                    
  12346         <property>
  12347          content
  12348         </property >
  12349                                                    
  12350         <xpath>
  12351          cda:encoun ter/cda:co de
  12352         </xpath>
  12353                                                    
  12354         <ifNotNull >
  12355                                                              
  12356          <action 
  12357           action="se tAttribute
  12358           relative=" cda:transl ation" 
  12359           attribute= "code"
  12360          >
  12361           68629-5
  12362          </action>
  12363                                                              
  12364          <action 
  12365           action="se tAttribute
  12366           relative=" cda:transl ation" 
  12367           attribute= "displayNa me"
  12368          >
  12369           Allergy an d immunolo gy Note
  12370          </action>
  12371                                                     
  12372         </ifNotNul l>
  12373                                            
  12374        </mapping>
  12375                                           
  12376        <mapping 
  12377         equalsProp erty="cate gory" 
  12378         equalsValu e="D"
  12379        >
  12380                                                    
  12381         <property>
  12382          content
  12383         </property >
  12384                                                    
  12385         <xpath>
  12386          cda:encoun ter/cda:co de
  12387         </xpath>
  12388                                                    
  12389         <ifNotNull >
  12390                                                              
  12391          <action 
  12392           action="se tAttribute
  12393           relative=" cda:transl ation" 
  12394           attribute= "code"
  12395          >
  12396           42348-3
  12397          </action>
  12398                                                              
  12399          <action 
  12400           action="se tAttribute
  12401           relative=" cda:transl ation" 
  12402           attribute= "displayNa me"
  12403          >
  12404           Advance di rectives
  12405          </action>
  12406                                                     
  12407         </ifNotNul l>
  12408                                            
  12409        </mapping>
  12410       
  12411                                           
  12412        <mapping >
  12413                                                    
  12414         <property>
  12415          content
  12416         </property >
  12417                                                    
  12418         <xpath>
  12419          cda:encoun ter/cda:co de
  12420         </xpath>
  12421                                                    
  12422         <ifNotNull >
  12423                                                          
  12424          <action 
  12425           action="re moveAttrib utes" 
  12426          />
  12427                                                              
  12428          <action 
  12429           action="se tAttribute
  12430           attribute= "code"
  12431          >
  12432           99499
  12433          </action>
  12434                                                              
  12435          <action 
  12436           action="se tAttribute
  12437           attribute= "displayNa me"
  12438          >
  12439           Unlisted E valuation  and Manage ment Servi ce
  12440          </action>
  12441                                                              
  12442          <action 
  12443           action="se tAttribute
  12444           attribute= "codeSyste m"
  12445          >
  12446           2.16.840.1 .113883.6. 12
  12447          </action>
  12448                                                              
  12449          <action 
  12450           action="se tAttribute
  12451           attribute= "codeSyste mName"
  12452          >
  12453           CPT-4
  12454          </action>
  12455                                                              
  12456          <action 
  12457           action="se tAttribute
  12458           relative=" cda:transl ation" 
  12459           attribute= "codeSyste m" 
  12460          >
  12461           2.16.840.1 .113883.6. 1
  12462          </action>
  12463                                                              
  12464          <action 
  12465           action="se tAttribute
  12466           relative=" cda:transl ation" 
  12467           attribute= "codeSyste mName" 
  12468          >
  12469           LOINC
  12470          </action>
  12471                                                                                                          
  12472                                                     
  12473         </ifNotNul l>
  12474                                                    
  12475         <ifNull>
  12476                                                          
  12477          <action 
  12478           action="re moveAttrib utes" 
  12479          />
  12480                                                              
  12481          <action 
  12482           action="se tAttribute
  12483           attribute= "code"
  12484          >
  12485           99499
  12486          </action>
  12487                                                              
  12488          <action 
  12489           action="se tAttribute
  12490           attribute= "displayNa me"
  12491          >
  12492           Unlisted E valuation  and Manage ment Servi ce
  12493          </action>
  12494                                                              
  12495          <action 
  12496           action="se tAttribute
  12497           attribute= "codeSyste m"
  12498          >
  12499           2.16.840.1 .113883.6. 12
  12500          </action>
  12501                                                              
  12502          <action 
  12503           action="se tAttribute
  12504           attribute= "codeSyste mName"
  12505          >
  12506           CPT-4
  12507          </action>
  12508         
  12509                                                              
  12510          <action 
  12511           action="re move" 
  12512           relative=" cda:transl ation" 
  12513          />
  12514                                                     
  12515         </ifNull>
  12516                                                    
  12517                                            
  12518        </mapping>                                                   
  12519                                           
  12520        <mapping>
  12521                                                    
  12522         <property>
  12523          referenceD ateTime
  12524         </property >
  12525                                                    
  12526         <xpath>
  12527          cda:encoun ter/cda:ef fectiveTim e/cda:low
  12528         </xpath>
  12529                                                    
  12530         <ifNotNull >
  12531                                                              
  12532          <action 
  12533           action="se tAttribute
  12534           attribute= "value" 
  12535          />
  12536                                                     
  12537         </ifNotNul l>
  12538                                            
  12539        </mapping>
  12540                                           
  12541        <mapping>
  12542                                                    
  12543         <property>
  12544          signingCli nician.nam e
  12545         </property >
  12546                                                    
  12547         <xpath>
  12548          cda:encoun ter/cda:pe rformer
  12549         </xpath>
  12550                                                    
  12551         <ifNotNull >
  12552                                                              
  12553          <action 
  12554           action="se tValue"
  12555                                                                       
  12556           relative=" cda:assign edEntity/c da:assigne dPerson/cd a:name" 
  12557          />
  12558                                                     
  12559         </ifNotNul l>
  12560                                            
  12561        </mapping>
  12562                                           
  12563        <mapping>
  12564                                                    
  12565         <property 
  12566          optional=" true"
  12567         >
  12568          content
  12569         </property >
  12570                                                    
  12571         <xpath>
  12572          cda:encoun ter/cda:co de
  12573         </xpath>
  12574                                                    
  12575         <ifNotNull >
  12576                                                              
  12577          <action 
  12578           action="se tAttribute
  12579           relative=" cda:origin alText/cda :reference "
  12580                                                                       
  12581           attribute= "value" 
  12582           indexed="t rue"
  12583          >
  12584           #anNoteEnc ounterDesc ription
  12585          </action>
  12586                                                              
  12587          <action 
  12588           action="se tAttribute
  12589           relative=" cda:transl ation/cda: originalTe xt/cda:ref erence"
  12590                                                                       
  12591           attribute= "value" 
  12592           indexed="t rue"
  12593          >
  12594           #anNoteEnc ounterDesc ription
  12595          </action>
  12596                                                     
  12597         </ifNotNul l>
  12598                                                    
  12599         <ifNull>
  12600                                                              
  12601          <action 
  12602           action="se tAttribute
  12603           relative=" cda:origin alText/cda :reference "
  12604                                                                       
  12605           attribute= "value" 
  12606           indexed="t rue"
  12607          >
  12608           #anNoteEnc ounterDesc ription
  12609          </action>
  12610                                                              
  12611          <action 
  12612           action="se tAttribute
  12613           relative=" cda:transl ation/cda: originalTe xt/cda:ref erence"
  12614                                                                       
  12615           attribute= "value" 
  12616           indexed="t rue"
  12617          >
  12618           #anNoteEnc ounterDesc ription
  12619          </action>
  12620                                                     
  12621         </ifNull>
  12622                                            
  12623        </mapping>                                 
  12624                                           
  12625        <mapping>
  12626                                                    
  12627         <property>
  12628          signingCli nician.nam e
  12629         </property >
  12630                                                    
  12631         <xpath>
  12632          cda:encoun ter/cda:pe rformer
  12633         </xpath>
  12634                                                    
  12635         <ifNotNull  />
  12636                                                    
  12637         <ifNull>
  12638                                                              
  12639          <action 
  12640           action="re move" 
  12641          />
  12642                                                     
  12643         </ifNull>
  12644                                            
  12645        </mapping>
  12646                                           
  12647        <mapping >
  12648                                                    
  12649         <property>
  12650          facility.n ame
  12651         </property >
  12652                                                    
  12653         <xpath>
  12654          cda:encoun ter/cda:pa rticipant/ cda:partic ipantRole/ cda:playin gEntity/cd a:name
  12655         </xpath>
  12656                                                    
  12657         <ifNotNull >
  12658                                                              
  12659          <action 
  12660           action="se tValue"  
  12661          />
  12662                                                     
  12663         </ifNotNul l>
  12664                                                    
  12665         <ifNull>
  12666                                                              
  12667          <action 
  12668           action="re moveAttrib utes" 
  12669          />
  12670                                                              
  12671          <action 
  12672           action="se tAttribute
  12673           attribute= "nullFlavo r"
  12674          >
  12675           UNK
  12676          </action>
  12677                                                     
  12678         </ifNull>
  12679                                            
  12680        </mapping>
  12681                                           
  12682        <mapping>
  12683                                                    
  12684         <property>
  12685          facility.c ode
  12686         </property >
  12687                                                    
  12688         <xpath>
  12689          cda:encoun ter/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:id
  12690         </xpath>
  12691                                                    
  12692         <ifNotNull >
  12693                                                              
  12694          <action 
  12695           action="se tAttribute
  12696           attribute= "extension
  12697          />
  12698                                                     
  12699         </ifNotNul l>
  12700                                            
  12701        </mapping>
  12702                                           
  12703        <mapping>
  12704                                                    
  12705         <property>
  12706          facility.n ame
  12707         </property >
  12708                                                    
  12709         <xpath>
  12710          cda:encoun ter/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:name
  12711         </xpath>
  12712                                                    
  12713         <ifNotNull >
  12714                                                              
  12715          <action 
  12716           action="se tValue" 
  12717          />
  12718                                                     
  12719         </ifNotNul l>
  12720                                            
  12721        </mapping>
  12722                                           
  12723        <mapping>
  12724                                                    
  12725         <property>
  12726          content
  12727         </property >
  12728                                                    
  12729         <xpath>
  12730          cda:encoun ter/cda:en tryRelatio nship[@typ eCode='RSO N']/cda:ob servation/ cda:code
  12731         </xpath>
  12732                                                    
  12733         <ifNotNull >
  12734                                                              
  12735          <action 
  12736           action="re moveAttrib utes" 
  12737          />
  12738                                                              
  12739          <action 
  12740           action="se tAttribute
  12741           attribute= "nullFlavo r"
  12742          >
  12743           UNK
  12744          </action>
  12745                                                     
  12746         </ifNotNul l>
  12747                                                    
  12748         <ifNull>
  12749                                                              
  12750          <action 
  12751           action="re moveAttrib utes" 
  12752          />
  12753                                                              
  12754          <action 
  12755           action="se tAttribute
  12756           attribute= "nullFlavo r"
  12757          >
  12758           UNK
  12759          </action>                                           
  12760                                                     
  12761         </ifNull>
  12762                                            
  12763        </mapping>
  12764                                           
  12765        <mapping>
  12766                                                    
  12767         <property>
  12768          content
  12769         </property >
  12770                                                    
  12771         <xpath>
  12772          cda:encoun ter/cda:en tryRelatio nship[@typ eCode='RSO N']/cda:ob servation/ cda:id
  12773         </xpath>
  12774                                                    
  12775         <ifNotNull >
  12776                                                              
  12777          <action 
  12778           action="re moveAttrib utes" 
  12779          />
  12780                                                              
  12781          <action 
  12782           action="se tAttribute
  12783           attribute= "nullFlavo r"
  12784          >
  12785           UNK
  12786          </action>
  12787                                                     
  12788         </ifNotNul l>
  12789                                                    
  12790         <ifNull>
  12791                                                              
  12792          <action 
  12793           action="re moveAttrib utes" 
  12794          />
  12795                                                              
  12796          <action 
  12797           action="se tAttribute
  12798           attribute= "nullFlavo r"
  12799          >
  12800           UNK
  12801          </action>                                           
  12802                                                     
  12803         </ifNull>
  12804                                            
  12805        </mapping>                                 
  12806                                           
  12807        <mapping>
  12808                                                    
  12809         <property 
  12810          optional=" true"
  12811         >
  12812          content
  12813         </property >
  12814                                                    
  12815         <xpath>
  12816          cda:encoun ter/cda:en tryRelatio nship[@typ eCode='RSO N']/cda:ob servation/ cda:text
  12817         </xpath>
  12818                                                    
  12819         <ifNotNull >
  12820                                                              
  12821          <action 
  12822           action="se tAttribute
  12823           relative=" cda:refere nce"
  12824                                                                       
  12825           attribute= "nullFlavo r" 
  12826          >
  12827           UNK
  12828          </action>
  12829                                                     
  12830         </ifNotNul l>
  12831                                                    
  12832         <ifNull>
  12833                                                              
  12834          <action 
  12835           action="se tAttribute
  12836           relative=" cda:refere nce"
  12837                                                                       
  12838           attribute= "nullFlavo r" 
  12839          >
  12840           UNK
  12841          </action>
  12842                                                     
  12843         </ifNull>
  12844                                            
  12845        </mapping>
  12846                                  
  12847       </mappings >
  12848                        
  12849      </mapping>                                 
  12850                       
  12851      <!-- Stop  Associated  Encounter  Notes  -- >
  12852      <!-- start  outpatien t visit+no tes narrat ive-->           
  12853                       
  12854      <mapping>
  12855                            
  12856       <property 
  12857        optional=" true"
  12858       >
  12859        visitsNarr ative
  12860       </property >
  12861                            
  12862       <xpath>
  12863        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.22.1']
  12864       </xpath>
  12865                            
  12866       <ifNotNull >
  12867                                  
  12868        <action 
  12869         action="se tValue" 
  12870         relative=" cda:sectio n/cda:text /cda:parag raph[@ID=' opEncTitle ']" 
  12871        />
  12872                             
  12873       </ifNotNul l>
  12874                        
  12875      </mapping>
  12876                       
  12877      <mapping>
  12878                                 
  12879       <property 
  12880        collection ="true" 
  12881        optional=" true"
  12882       >
  12883        visits
  12884       </property >
  12885                                 
  12886       <xpath>
  12887        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.22.1']
  12888       </xpath>
  12889                                 
  12890       <ifNotNull >
  12891                                           
  12892        <action 
  12893         action="ev aluateMapp ings"
  12894                                                   
  12895         relative=" cda:sectio n/cda:text /cda:table [@ID='enco unterNarra tive']/cda :tbody/cda :tr" 
  12896        />
  12897                                  
  12898       </ifNotNul l>
  12899                                 
  12900       <mappings>
  12901                                           
  12902        <mapping>
  12903                                                    
  12904         <property>
  12905          prettyDate Time|prett yReference DateTime
  12906         </property >
  12907                                                    
  12908         <xpath>
  12909          cda:td[1]
  12910         </xpath>
  12911                                                    
  12912         <ifNotNull >
  12913                                                              
  12914          <action 
  12915           action="se tValue" 
  12916          />
  12917                                                     
  12918         </ifNotNul l>
  12919                                            
  12920        </mapping>
  12921                                           
  12922        <mapping>
  12923                                                    
  12924         <property 
  12925          optional=" true"
  12926         >
  12927          type.name
  12928         </property >
  12929                                                    
  12930         <xpath>
  12931          cda:td/cda :content[@ ID='endEnc ounterType ']
  12932         </xpath>
  12933                                                    
  12934         <ifNotNull >
  12935                                                              
  12936          <action 
  12937           action="se tAttribute
  12938           attribute= "ID" 
  12939           indexed="t rue"
  12940          >
  12941           endEncount erType
  12942          </action>
  12943                                                              
  12944          <action 
  12945           action="se tValue" 
  12946           property=" type.name"  
  12947          />
  12948                                                     
  12949         </ifNotNul l>
  12950                                                    
  12951         <ifNull>
  12952                                                     
  12953          <action 
  12954           action="se tAttribute
  12955           attribute= "ID" 
  12956           indexed="t rue"
  12957          >
  12958           endEncount erType
  12959          </action>
  12960                                                     
  12961         </ifNull>
  12962                                            
  12963        </mapping>
  12964                                           
  12965        <mapping>
  12966                                                    
  12967         <property>
  12968          stopCode.n ame
  12969         </property >
  12970                                                    
  12971         <xpath>
  12972          cda:td/cda :content[@ ID='endEnc ounterDesc ription']
  12973         </xpath>
  12974                                                    
  12975         <ifNotNull >
  12976                                                              
  12977          <action 
  12978           action="se tAttribute
  12979           attribute= "ID" 
  12980           indexed="t rue"
  12981          >
  12982           endEncount erDescript ion
  12983          </action>
  12984                                                              
  12985          <action 
  12986           action="se tValue" 
  12987          />
  12988                                                              
  12989          <action 
  12990           action="ev aluateMapp ings" 
  12991          />
  12992                                                     
  12993         </ifNotNul l>
  12994                                                    
  12995         <ifNull>
  12996                                                              
  12997          <action 
  12998           action="se tAttribute
  12999           attribute= "ID" 
  13000           indexed="t rue"
  13001          >
  13002           endEncount erDescript ion
  13003          </action>
  13004                                                     
  13005         </ifNull>
  13006                                            
  13007        </mapping>
  13008                                           
  13009        <mapping 
  13010         notEqualsP roperty="r eason.name
  13011         notEqualsV alue="reas on.narrati ve"
  13012        >
  13013                                                    
  13014         <property>
  13015          reason
  13016         </property >
  13017                                                    
  13018         <xpath>
  13019          cda:td/cda :content[@ ID='endRea son']
  13020         </xpath>
  13021                                                    
  13022         <ifNotNull >
  13023                                                              
  13024          <action 
  13025           action="se tAttribute
  13026           attribute= "ID" 
  13027           indexed="t rue"
  13028          >
  13029           endReason
  13030          </action>
  13031                                                              
  13032          <action 
  13033           action="se tValue" 
  13034           property=" reason.nam e" 
  13035          />
  13036                                                              
  13037          <action 
  13038           action="ap pendValue"
  13039          >
  13040            ICD9 
  13041          </action>
  13042                                                              
  13043          <action 
  13044           action="ap pendValue"  
  13045           property=" reason.cod e" 
  13046          />
  13047                                                              
  13048          <action 
  13049           action="ap pendValue"
  13050          >
  13051            with Prov ider Comme nts: 
  13052          </action>
  13053                                                              
  13054          <action 
  13055           action="ap pendValue"  
  13056           property=" reason.nar rative" 
  13057          />
  13058                                                              
  13059          <!-- <acti on action= "appendVal ue" proper ty="code"  /> <action  action="a ppendValue "> 
  13060                                                                       with  Provider  Comments</ action> -- >
  13061                                                              
  13062          <!-- <acti on action= "evaluateM appings" / > -->
  13063                                                     
  13064         </ifNotNul l>
  13065                                                    
  13066         <ifNull>
  13067                                                              
  13068          <action 
  13069           action="se tAttribute
  13070           attribute= "ID" 
  13071           indexed="t rue"
  13072          >
  13073           endReason
  13074          </action>
  13075                                                     
  13076         </ifNull>
  13077                                            
  13078        </mapping>
  13079                                           
  13080        <mapping 
  13081         equalsProp erty="reas on.name" 
  13082         equalsValu e="reason. narrative"
  13083        >
  13084                                                    
  13085         <property>
  13086          reason
  13087         </property >
  13088                                                    
  13089         <xpath>
  13090          cda:td/cda :content[@ ID='endRea son']
  13091         </xpath>
  13092                                                    
  13093         <ifNotNull >
  13094                                                              
  13095          <action 
  13096           action="se tAttribute
  13097           attribute= "ID" 
  13098           indexed="t rue"
  13099          >
  13100           endReason
  13101          </action>
  13102                                                              
  13103          <action 
  13104           action="se tValue" 
  13105           property=" reason.nam e" 
  13106          />
  13107                                                              
  13108          <action 
  13109           action="ap pendValue"
  13110          >
  13111            ICD9 
  13112          </action>
  13113                                                              
  13114          <action 
  13115           action="ap pendValue"  
  13116           property=" reason.cod e" 
  13117          />
  13118                                                     
  13119         </ifNotNul l>
  13120                                                    
  13121         <ifNull>
  13122                                                              
  13123          <action 
  13124           action="se tAttribute
  13125           attribute= "ID" 
  13126           indexed="t rue"
  13127          >
  13128           endReason
  13129          </action>
  13130                                                     
  13131         </ifNull>
  13132                                            
  13133        </mapping>
  13134                                           
  13135        <mapping>
  13136                                                    
  13137         <property 
  13138          optional=" true"
  13139         >
  13140          primaryPro vider|sign ingClinici an.name
  13141         </property >
  13142                                                    
  13143         <xpath>
  13144          cda:td/cda :content[@ ID='endPro vider']
  13145         </xpath>
  13146                                                    
  13147         <ifNotNull >
  13148                                                              
  13149          <action 
  13150           action="se tAttribute
  13151           attribute= "ID" 
  13152           indexed="t rue"
  13153          >
  13154           endProvide r
  13155          </action>
  13156                                                              
  13157          <action 
  13158           action="se tValue" 
  13159          />
  13160                                                     
  13161         </ifNotNul l>
  13162                                                    
  13163         <ifNull>
  13164                                                              
  13165          <action 
  13166           action="se tAttribute
  13167           attribute= "ID" 
  13168           indexed="t rue"
  13169          >
  13170           endProvide r
  13171          </action>
  13172                                                     
  13173         </ifNull>
  13174                                            
  13175        </mapping>
  13176                                           
  13177        <mapping>
  13178                                                    
  13179         <property>
  13180          facility.n ame
  13181         </property >
  13182                                                    
  13183         <xpath>
  13184          cda:td/cda :content[@ ID='endSou rce']
  13185         </xpath>
  13186                                                    
  13187         <ifNotNull >
  13188                                                              
  13189          <action 
  13190           action="se tAttribute
  13191           attribute= "ID" 
  13192           indexed="t rue"
  13193          >
  13194           endSource
  13195          </action>
  13196                                                              
  13197          <action 
  13198           action="se tValue" 
  13199          />
  13200                                                     
  13201         </ifNotNul l>
  13202                                            
  13203        </mapping>
  13204                                  
  13205       </mappings >
  13206                        
  13207      </mapping>
  13208                       
  13209      <!-- start  outpatien t visit+no tes sectio n entry-->                         
  13210                       
  13211      <mapping>
  13212                                 
  13213       <property 
  13214        collection ="true" 
  13215        optional=" true"
  13216       >
  13217        visits
  13218       </property >
  13219                                 
  13220       <xpath>
  13221        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.22.1']
  13222       </xpath>
  13223                                 
  13224       <ifNotNull >
  13225                                           
  13226        <action 
  13227         action="ev aluateMapp ings" 
  13228         relative=" cda:sectio n/cda:entr y" 
  13229        />
  13230                                  
  13231       </ifNotNul l>
  13232                                 
  13233       <ifNull>
  13234                                           
  13235        <!--action  action="r emove">NI< /action-->
  13236                                           
  13237        <action 
  13238         action="re move" 
  13239         relative=" cda:sectio n/cda:text /cda:table [@ID='enco unterNarra tive']"
  13240        >
  13241        </action>
  13242                                           
  13243        <action 
  13244         action="re move" 
  13245         relative=" cda:sectio n/cda:text /cda:parag raph[@ID=' opEncTitle ']"
  13246        >
  13247        </action>
  13248                                           
  13249        <action 
  13250         action="re move" 
  13251         relative=" cda:sectio n/cda:entr y"
  13252        >
  13253        </action>                          
  13254                                  
  13255       </ifNull>
  13256                                 
  13257       <mappings>
  13258       
  13259       
  13260                                           
  13261        <mapping>
  13262                                                    
  13263         <property>
  13264          type.code
  13265         </property >
  13266                                                    
  13267         <xpath>
  13268          cda:encoun ter/cda:co de
  13269         </xpath>
  13270                                                    
  13271         <ifNotNull >
  13272                                                              
  13273          <action 
  13274           action="se tAttribute
  13275           attribute= "code" 
  13276          />
  13277                                                              
  13278          <action 
  13279           action="se tAttribute
  13280           attribute= "displayNa me"
  13281                                                                       
  13282           property=" type.name"  
  13283          />
  13284                                                     
  13285         </ifNotNul l>
  13286        
  13287                                            
  13288        </mapping>
  13289       
  13290                                           
  13291        <mapping>
  13292                                                    
  13293         <property>
  13294          type.code| content
  13295         </property >
  13296                                                    
  13297         <xpath>
  13298          cda:encoun ter/cda:co de
  13299         </xpath>
  13300                                                    
  13301         <ifNotNull  />
  13302        
  13303                                                    
  13304         <ifNull>
  13305                                                              
  13306          <action 
  13307           action="se tAttribute
  13308           attribute= "nullFlavo r"
  13309          >
  13310           UNK
  13311          </action>
  13312                                                     
  13313         </ifNull>
  13314                                            
  13315        </mapping>
  13316       
  13317       
  13318                                           
  13319        <!--mappin g>
  13320                                                    <property> stopCode.n ame</prope rty>
  13321                                                    <xpath>cda :encounter /cda:code/ cda:origin alText</xp ath>
  13322                                                    <ifNotNull >
  13323                                                            <a ction acti on="setVal ue" />
  13324                                                    </ifNotNul l>
  13325                                                    <ifNull>
  13326                                                            <a ction acti on="remove " />
  13327                                                    </ifNull>
  13328       
  13329                                           </mappin g-->
  13330                                           
  13331        <mapping>
  13332                                                    
  13333         <property>
  13334          stopCode.n ame
  13335         </property >
  13336                                                    
  13337         <xpath>
  13338          cda:encoun ter/cda:co de/cda:tra nslation/c da:origina lText
  13339         </xpath>
  13340                                                    
  13341         <ifNotNull >
  13342                                                              
  13343          <action 
  13344           action="se tAttribute
  13345           relative=" cda:refere nce"
  13346                                                                       
  13347           attribute= "value" 
  13348           indexed="t rue"
  13349          >
  13350           #endEncoun terDescrip tion
  13351          </action>
  13352                                                     
  13353         </ifNotNul l>
  13354                                                    
  13355         <ifNull>
  13356                                                              
  13357          <action 
  13358           action="se tAttribute
  13359           relative=" cda:refere nce"
  13360                                                                       
  13361           attribute= "value" 
  13362           indexed="t rue"
  13363          >
  13364           #endEncoun terDescrip tion
  13365          </action>
  13366                                                     
  13367         </ifNull>
  13368                                            
  13369        </mapping>
  13370                                           
  13371                                           
  13372        <mapping>
  13373                                                    
  13374         <property>
  13375          stopCode.n ame
  13376         </property >
  13377                                                    
  13378         <xpath>
  13379          cda:encoun ter/cda:co de/cda:ori ginalText
  13380         </xpath>
  13381                                                    
  13382         <ifNotNull >
  13383                                                              
  13384          <action 
  13385           action="se tAttribute
  13386           relative=" cda:refere nce"
  13387                                                                       
  13388           attribute= "value" 
  13389           indexed="t rue"
  13390          >
  13391           #endEncoun terDescrip tion
  13392          </action>
  13393                                                     
  13394         </ifNotNul l>
  13395                                                    
  13396         <ifNull>
  13397                                                              
  13398          <action 
  13399           action="se tAttribute
  13400           relative=" cda:refere nce"
  13401                                                                       
  13402           attribute= "value" 
  13403           indexed="t rue"
  13404          >
  13405           #endEncoun terDescrip tion
  13406          </action>
  13407                                                     
  13408         </ifNull>
  13409                                            
  13410        </mapping>
  13411                                           
  13412                                           
  13413        <mapping>
  13414                                                    
  13415         <property>
  13416          dateTime|r eferenceDa teTime
  13417         </property >
  13418                                                    
  13419         <xpath>
  13420          cda:encoun ter/cda:ef fectiveTim e/cda:low
  13421         </xpath>
  13422                                                    
  13423         <ifNotNull >
  13424                                                              
  13425          <action 
  13426           action="se tAttribute
  13427           attribute= "value" 
  13428          />
  13429                                                     
  13430         </ifNotNul l>
  13431                                            
  13432        </mapping>
  13433       
  13434                                           
  13435        <mapping>
  13436                                                    
  13437         <property>
  13438          primaryPro vider
  13439         </property >
  13440                                                    
  13441         <xpath>
  13442          cda:encoun ter/cda:pe rformer
  13443         </xpath>
  13444                                                    
  13445         <ifNotNull >
  13446                                                              
  13447          <action 
  13448           action="se tValue"
  13449                                                                       
  13450           relative=" cda:assign edEntity/c da:assigne dPerson/cd a:name" 
  13451          />
  13452                                                     
  13453         </ifNotNul l>
  13454                                            
  13455        </mapping>
  13456                                           
  13457        <mapping>
  13458                                                    
  13459         <property>
  13460          signingCli nician.nam e
  13461         </property >
  13462                                                    
  13463         <xpath>
  13464          cda:encoun ter/cda:pe rformer
  13465         </xpath>
  13466                                                    
  13467         <ifNotNull >
  13468                                                              
  13469          <action 
  13470           action="se tValue"
  13471                                                                       
  13472           relative=" cda:assign edEntity/c da:assigne dPerson/cd a:name" 
  13473          />
  13474                                                     
  13475         </ifNotNul l>
  13476                                            
  13477        </mapping>
  13478                                           
  13479        <mapping>
  13480                                                    
  13481         <property>
  13482          primaryPro vider|sign ingClinici an.name
  13483         </property >
  13484                                                    
  13485         <xpath>
  13486          cda:encoun ter/cda:pe rformer
  13487         </xpath>
  13488                                                    
  13489         <ifNotNull  />
  13490                                                    
  13491         <ifNull>
  13492                                                              
  13493          <action 
  13494           action="re move" 
  13495          />
  13496                                                     
  13497         </ifNull>
  13498                                            
  13499        </mapping>
  13500                                           
  13501        <mapping>
  13502                                                    
  13503         <property>
  13504          arrivalDat eTime
  13505         </property >
  13506                                                    
  13507         <xpath>
  13508          cda:encoun ter/cda:pa rticipant/ cda:time/c da:low
  13509         </xpath>
  13510                                                    
  13511         <ifNotNull >
  13512                                                              
  13513          <action 
  13514           action="se tAttribute
  13515           attribute= "value" 
  13516          />
  13517                                                     
  13518         </ifNotNul l>
  13519                                                    
  13520         <ifNull>
  13521                                                              
  13522          <action 
  13523           action="re moveAttrib utes" 
  13524          />
  13525                                                              
  13526          <action 
  13527           action="se tAttribute
  13528           attribute= "nullFlavo r"
  13529          >
  13530           UNK
  13531          </action>
  13532                                                     
  13533         </ifNull>
  13534                                            
  13535        </mapping>
  13536                                           
  13537        <mapping>
  13538                                                    
  13539         <property>
  13540          departureD ateTime
  13541         </property >
  13542                                                    
  13543         <xpath>
  13544          cda:encoun ter/cda:pa rticipant/ cda:time/c da:high
  13545         </xpath>
  13546                                                    
  13547         <ifNotNull >
  13548                                                              
  13549          <action 
  13550           action="se tAttribute
  13551           attribute= "value" 
  13552          />
  13553                                                     
  13554         </ifNotNul l>
  13555                                                    
  13556         <ifNull>
  13557                                                              
  13558          <action 
  13559           action="re moveAttrib utes" 
  13560          />
  13561                                                              
  13562          <action 
  13563           action="se tAttribute
  13564           attribute= "nullFlavo r"
  13565          >
  13566           UNK
  13567          </action>
  13568                                                     
  13569         </ifNull>
  13570                                            
  13571        </mapping>
  13572                                   
  13573                                           
  13574        <mapping>
  13575                                                    
  13576         <property 
  13577          optional=" true"
  13578         >
  13579          reason
  13580         </property >
  13581                                                    
  13582         <xpath>
  13583          cda:encoun ter/cda:en tryRelatio nship/cda: observatio n/cda:text
  13584         </xpath>
  13585                                                    
  13586         <ifNotNull >
  13587                                                              
  13588          <action 
  13589           action="se tAttribute
  13590           relative=" cda:refere nce"
  13591                                                                       
  13592           attribute= "value" 
  13593           indexed="t rue"
  13594          >
  13595           #endReason
  13596          </action>
  13597                                                     
  13598         </ifNotNul l>
  13599                                                    
  13600         <ifNull>
  13601                                                              
  13602          <action 
  13603           action="se tAttribute
  13604           relative=" cda:refere nce"
  13605                                                                       
  13606           attribute= "value" 
  13607           indexed="t rue"
  13608          >
  13609           #endReason
  13610          </action>
  13611                                                     
  13612         </ifNull>
  13613                                            
  13614        </mapping>
  13615          
  13616        <!-- >                    <mappi ng>
  13617                                                    <property  optional=" true">reas on</proper ty>
  13618                                                    <xpath>cda :encounter /cda:entry Relationsh ip/cda:act /cda:entry Relationsh ip/cda:obs ervation/c da:code/cd a:original Text</xpat h>
  13619                                                    <ifNotNull >
  13620                                                            <a ction acti on="setAtt ribute" re lative="cd a:referenc e"
  13621                                                                     attr ibute="val ue" indexe d="true"># endProbTyp e</action>
  13622                                                    </ifNotNul l>
  13623                                                    <ifNull>
  13624                                                            <a ction acti on="setAtt ribute" re lative="cd a:referenc e"
  13625                                                                     attr ibute="val ue" indexe d="true"># endProbTyp e</action>
  13626                                                    </ifNull>
  13627                                           </mappin g>
  13628        -->
  13629       
  13630       
  13631       
  13632                                           
  13633        <mapping>
  13634                                                    
  13635         <property 
  13636          optional=" true"
  13637         >
  13638          reason
  13639         </property >
  13640                                                    
  13641         <xpath>
  13642          cda:encoun ter/cda:en tryRelatio nship/cda: act/cda:en tryRelatio nship/cda: observatio n/cda:valu e/cda:orig inalText
  13643         </xpath>
  13644                                                    
  13645         <ifNotNull >
  13646                                                              
  13647          <action 
  13648           action="se tAttribute
  13649           relative=" cda:refere nce"
  13650                                                                       
  13651           attribute= "value" 
  13652           indexed="t rue"
  13653          >
  13654           #endReason
  13655          </action>
  13656                                                     
  13657         </ifNotNul l>
  13658                                                    
  13659         <ifNull>
  13660                                                              
  13661          <action 
  13662           action="se tAttribute
  13663           relative=" cda:refere nce"
  13664                                                                       
  13665           attribute= "value" 
  13666           indexed="t rue"
  13667          >
  13668           #endReason
  13669          </action>
  13670                                                     
  13671         </ifNull>
  13672                                            
  13673        </mapping>
  13674       
  13675       
  13676                                           
  13677        <mapping>
  13678                                                    
  13679         <property 
  13680          optional=" true"
  13681         >
  13682          reason
  13683         </property >
  13684                                                    
  13685         <xpath>
  13686          cda:encoun ter/cda:en tryRelatio nship/cda: act/cda:en tryRelatio nship/cda: observatio n/cda:valu e
  13687         </xpath>
  13688                                                    
  13689         <ifNotNull >
  13690                                                              
  13691          <action 
  13692           action="ev aluateMapp ings"
  13693          />
  13694                                                     
  13695         </ifNotNul l>
  13696                                                    
  13697         <ifNull>
  13698                                                              
  13699          <action 
  13700           action="se tAttribute "  
  13701                                                                       
  13702           attribute= "nullFlavo r" 
  13703          >
  13704           UNK
  13705          </action>
  13706                                                                       
  13707          <action 
  13708           action="re move" 
  13709           relative=" cda:transl ation"
  13710          />
  13711                                                     
  13712         </ifNull>
  13713                                                    
  13714         <mappings>
  13715                                                              
  13716          <mapping>
  13717                                                                        
  13718           <property 
  13719            optional=" true"
  13720           >
  13721            snomedCode
  13722           </property >
  13723                                                                        
  13724           <xpath>
  13725            .
  13726           </xpath>
  13727                                                                        
  13728           <ifNotNull >
  13729                                                                                  
  13730            <action 
  13731             action="se tAttribute
  13732             attribute= "code" 
  13733            />
  13734                                                                         
  13735           </ifNotNul l>
  13736                                                                        
  13737           <ifNull>
  13738                                                                                  
  13739            <action 
  13740             action="se tAttribute
  13741             attribute= "nullFlavo r" 
  13742            >
  13743             UNK
  13744            </action>                                                             
  13745                                                                         
  13746           </ifNull>
  13747                                                               
  13748          </mapping>
  13749                                                              
  13750          <mapping>
  13751                                                                        
  13752           <property 
  13753            optional=" true"
  13754           >
  13755            snomedCode DisplayNam e
  13756           </property >
  13757                                                                        
  13758           <xpath>
  13759            .
  13760           </xpath>
  13761                                                                        
  13762           <ifNotNull >
  13763                                                                                  
  13764            <action 
  13765             action="se tAttribute
  13766             attribute= "displayNa me" 
  13767            />
  13768                                                                         
  13769           </ifNotNul l>
  13770                                                               
  13771          </mapping>                                                   
  13772                                                              
  13773          <mapping>
  13774                                                                        
  13775           <property 
  13776            optional=" true"
  13777           >
  13778            code
  13779           </property >
  13780                                                                        
  13781           <xpath>
  13782            .
  13783           </xpath>
  13784                                                                        
  13785           <ifNotNull >
  13786                                                                                  
  13787            <action 
  13788             action="se tAttribute
  13789             attribute= "code" 
  13790             relative=" cda:transl ation" 
  13791            />
  13792                                                                         
  13793           </ifNotNul l>
  13794                                                               
  13795          </mapping>
  13796                                                              
  13797          <mapping>
  13798                                                                        
  13799           <property 
  13800            optional=" true"
  13801           >
  13802            name
  13803           </property >
  13804                                                                        
  13805           <xpath>
  13806            .
  13807           </xpath>
  13808                                                                        
  13809           <ifNotNull >
  13810                                                                                  
  13811            <action 
  13812             action="se tAttribute
  13813             attribute= "displayNa me" 
  13814             relative=" cda:transl ation" 
  13815            />
  13816                                                                         
  13817           </ifNotNul l>
  13818                                                               
  13819          </mapping>                                                   
  13820                                                     
  13821         </mappings >
  13822                                            
  13823        </mapping>
  13824                                           
  13825                                           
  13826                                           
  13827        <mapping>
  13828                                                    
  13829         <property>
  13830          facility.c ode
  13831         </property >
  13832                                                    
  13833         <xpath>
  13834          cda:encoun ter/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:id
  13835         </xpath>
  13836                                                    
  13837         <ifNotNull >
  13838                                                              
  13839          <action 
  13840           action="se tAttribute
  13841           attribute= "extension
  13842          />
  13843                                                     
  13844         </ifNotNul l>
  13845                                            
  13846        </mapping>
  13847                                           
  13848        <mapping>
  13849                                                    
  13850         <property>
  13851          facility.n ame
  13852         </property >
  13853                                                    
  13854         <xpath>
  13855          cda:encoun ter/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:name
  13856         </xpath>
  13857                                                    
  13858         <ifNotNull >
  13859                                                              
  13860          <action 
  13861           action="se tValue" 
  13862          />
  13863                                                     
  13864         </ifNotNul l>
  13865                                            
  13866        </mapping>
  13867                                  
  13868       </mappings >
  13869                        
  13870      </mapping>
  13871                       
  13872              
  13873      <!--if all ==null the n remove t he entire  component  for encoun ter. -->
  13874              
  13875      <mapping>
  13876                                 
  13877       <property 
  13878        collection ="true" 
  13879        optional=" true"
  13880       >
  13881        visits,dis chargeSumm aries,cons ultnotes,h istoryphys icalnotes, encounterD ocs
  13882       </property >
  13883                                 
  13884       <xpath>
  13885        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.22.1']
  13886       </xpath>
  13887                                 
  13888       <ifNotNull >
  13889                                  
  13890       </ifNotNul l>
  13891                                 
  13892       <ifNull>
  13893                                           
  13894        <action 
  13895         action="re move" 
  13896         relative=" ."
  13897        >
  13898         NI
  13899        </action>
  13900                                  
  13901       </ifNull>
  13902               
  13903      </mapping>                         
  13904                       
  13905                       
  13906      <!-- RESUL TS SECTION  NARRITIVE  -->
  13907                       
  13908                       
  13909      <mapping>
  13910                            
  13911       <property 
  13912        optional=" true"
  13913       >
  13914        microbiolo gyResultsN arrative
  13915       </property >
  13916                            
  13917       <xpath>
  13918        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.3.1']
  13919       </xpath>
  13920                            
  13921       <ifNotNull >
  13922                                  
  13923        <action 
  13924         action="se tValue" 
  13925         relative=" cda:sectio n/cda:text /cda:table [@ID='micr obiologyRu les']/cda: tbody/cda: tr[2]/cda: td" 
  13926        />
  13927                             
  13928       </ifNotNul l>
  13929                        
  13930      </mapping>
  13931              
  13932                       
  13933      <mapping>
  13934                                 
  13935       <property 
  13936        collection ="true"
  13937       >
  13938        microbiolo gy
  13939       </property >
  13940                                 
  13941       <xpath>
  13942        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.3.1']
  13943       </xpath>
  13944                                 
  13945       <ifNotNull >
  13946                                           
  13947        <action 
  13948         action="ev aluateMapp ings"
  13949                                                   
  13950         relative=" cda:sectio n/cda:text /cda:table [@ID='micr obiologyNa rrative']/ cda:tbody"  
  13951        />
  13952                                  
  13953       </ifNotNul l>
  13954                                 
  13955       <ifNull>
  13956                                           
  13957        <action 
  13958         action="re move" 
  13959         relative=" cda:sectio n/cda:text /cda:table [@ID='micr obiologyNa rrative']"  
  13960        />
  13961                                           
  13962        <action 
  13963         action="re move" 
  13964         relative=" cda:sectio n/cda:text /cda:table [@ID='micr obiologyRu les']" 
  13965        />
  13966                                  
  13967       </ifNull>
  13968                                 
  13969       <mappings>
  13970                                           
  13971        <mapping>
  13972                                                    
  13973         <property>
  13974          prettyColl ectedDate
  13975         </property >
  13976                                                    
  13977         <xpath>
  13978          cda:tr[@ID ='microbio logyTest'] /cda:td[1]
  13979         </xpath>
  13980                                                    
  13981         <ifNotNull >
  13982                                                              
  13983          <action 
  13984           action="se tValue" 
  13985          />
  13986                                                     
  13987         </ifNotNul l>
  13988                                            
  13989        </mapping>
  13990                                           
  13991        <mapping>
  13992                                                    
  13993         <property 
  13994          optional=" true"
  13995         >
  13996          documents
  13997         </property >
  13998                                                    
  13999         <xpath>
  14000          cda:tr[@ID ='microbio logyTest'] /cda:td[2] /cda:conte nt
  14001         </xpath>
  14002                                                    
  14003         <ifNotNull >
  14004                                                              
  14005          <action 
  14006           action="se tAttribute
  14007           attribute= "ID" 
  14008           indexed="t rue"
  14009          >
  14010           lndResultT ype
  14011          </action>
  14012                                                              
  14013          <action 
  14014           action="ev aluateMapp ings" 
  14015          />
  14016                                                     
  14017         </ifNotNul l>
  14018                                                    
  14019         <ifNull>
  14020                                                                                
  14021          <action 
  14022           action="ap pendValue"
  14023          >
  14024           No text av ailable.
  14025          </action>
  14026                                                     
  14027         </ifNull>
  14028                                                    
  14029         <mappings>
  14030                                                              
  14031          <mapping>
  14032                                                                        
  14033           <property 
  14034            optional=" true"
  14035           >
  14036            localTitle
  14037           </property >
  14038                                                                        
  14039           <xpath>
  14040            .
  14041           </xpath>
  14042                                                                        
  14043           <ifNotNull >
  14044                                                                                  
  14045            <action 
  14046             action="ap pendValue"  
  14047            />
  14048                                                                         
  14049           </ifNotNul l>
  14050                                                                        
  14051                                                               
  14052          </mapping>
  14053                                                     
  14054         </mappings >
  14055                                            
  14056        </mapping>                                 
  14057                                           
  14058        <mapping>
  14059                                                    
  14060         <property 
  14061          optional=" true"
  14062         >
  14063          facility
  14064         </property >
  14065                                                    
  14066         <xpath>
  14067          cda:tr[@ID ='microbio logyTest'] /cda:td[3] /cda:conte nt
  14068         </xpath>
  14069                                                    
  14070         <ifNotNull >
  14071                                                              
  14072          <action 
  14073           action="se tAttribute
  14074           attribute= "ID" 
  14075           indexed="t rue"
  14076          >
  14077           lndSource
  14078          </action>
  14079                                                              
  14080          <action 
  14081           action="se tValue" 
  14082           property=" facility.n ame" 
  14083          />
  14084                                                     
  14085         </ifNotNul l>
  14086                                                    
  14087         <ifNull>
  14088                                                              
  14089          <action 
  14090           action="se tAttribute
  14091           attribute= "ID" 
  14092           indexed="t rue"
  14093          >
  14094           lndSource
  14095          </action>
  14096                                                     
  14097         </ifNull>
  14098                                            
  14099        </mapping>
  14100       
  14101                                           
  14102        <mapping>
  14103                                                    
  14104         <property 
  14105          optional=" true"
  14106         >
  14107          documents
  14108         </property >
  14109                                                    
  14110         <xpath>
  14111          cda:tr[@ID ='microbio logyTest'] /cda:td[4] /cda:conte nt
  14112         </xpath>
  14113                                                    
  14114         <ifNotNull >
  14115                                                              
  14116          <action 
  14117           action="se tAttribute
  14118           attribute= "ID" 
  14119           indexed="t rue"
  14120          >
  14121           microbiolo gyReport
  14122          </action>
  14123                                                              
  14124          <action 
  14125           action="ev aluateMapp ings" 
  14126          />
  14127                                                     
  14128         </ifNotNul l>
  14129                                                    
  14130         <ifNull>
  14131                                                                                
  14132          <action 
  14133           action="ap pendValue"
  14134          >
  14135           No text av ailable.
  14136          </action>
  14137                                                     
  14138         </ifNull>
  14139                                                    
  14140         <mappings>
  14141                                                              
  14142          <mapping>
  14143                                                                        
  14144           <property 
  14145            optional=" true"
  14146           >
  14147            formattedC ontent
  14148           </property >
  14149                                                                        
  14150           <xpath>
  14151            .
  14152           </xpath>
  14153                                                                        
  14154           <ifNotNull >
  14155                                                                                  
  14156            <action 
  14157             action="ap pendValue"  
  14158            />
  14159                                                                         
  14160           </ifNotNul l>
  14161                                                                        
  14162                                                               
  14163          </mapping>
  14164                                                     
  14165         </mappings >
  14166                                            
  14167        </mapping>
  14168                                           
  14169        <mapping>
  14170                                                    
  14171         <property 
  14172          optional=" true"
  14173         >
  14174          provider.n ame
  14175         </property >
  14176                                                    
  14177         <xpath>
  14178          cda:tr[@ID ='microbio logyTest'] /cda:td[5] /cda:conte nt
  14179         </xpath>
  14180                                                    
  14181         <ifNotNull >
  14182                                                              
  14183          <action 
  14184           action="se tAttribute
  14185           attribute= "ID" 
  14186           indexed="t rue"
  14187          >
  14188           lndProvide r
  14189          </action>
  14190                                                              
  14191          <action 
  14192           action="se tValue" 
  14193          />
  14194                                                     
  14195         </ifNotNul l>
  14196                                                    
  14197         <ifNull>
  14198                                                              
  14199          <action 
  14200           action="se tAttribute
  14201           attribute= "ID" 
  14202           indexed="t rue"
  14203          >
  14204           lndProvide r
  14205          </action>
  14206                                                     
  14207         </ifNull>
  14208                                            
  14209        </mapping>                                                                     
  14210                                           
  14211        <mapping>
  14212                                                    
  14213         <property>
  14214          prettyColl ectedDate
  14215         </property >
  14216                                                    
  14217         <xpath>
  14218          cda:tr[@ID ='microbio logyTest']
  14219         </xpath>
  14220                                                    
  14221         <ifNotNull >
  14222                                                              
  14223          <action 
  14224           action="se tAttribute
  14225           attribute= "ID" 
  14226           indexed="t rue" 
  14227          >
  14228           microbiolo gyTest
  14229          </action>
  14230                                                     
  14231         </ifNotNul l>
  14232                                                    
  14233         <ifNull>
  14234                                                              
  14235          <action 
  14236           action="se tAttribute
  14237           attribute= "ID" 
  14238           indexed="t rue"
  14239          >
  14240           microbiolo gyTest
  14241          </action>
  14242                                                     
  14243         </ifNull>
  14244                                            
  14245        </mapping>
  14246                                  
  14247       </mappings >
  14248                        
  14249      </mapping>
  14250     
  14251                       
  14252      <mapping>
  14253                            
  14254       <property 
  14255        optional=" true"
  14256       >
  14257        chemHemRes ultsNarrat ive
  14258       </property >
  14259                            
  14260       <xpath>
  14261        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.3.1']
  14262       </xpath>
  14263                            
  14264       <ifNotNull >
  14265                                  
  14266        <action 
  14267         action="se tValue" 
  14268         relative=" cda:sectio n/cda:text /cda:table [@ID='labR ules']/cda :tbody/cda :tr[2]/cda :td" 
  14269        />
  14270                             
  14271       </ifNotNul l>
  14272                        
  14273      </mapping>
  14274                       
  14275      <mapping>
  14276                                 
  14277       <property 
  14278        collection ="true"
  14279       >
  14280        labs
  14281       </property >
  14282                                 
  14283       <xpath>
  14284        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.3.1']
  14285       </xpath>
  14286                                 
  14287       <ifNotNull >
  14288                                           
  14289        <action 
  14290         action="ev aluateMapp ings"
  14291                                                   
  14292         relative=" cda:sectio n/cda:text /cda:table [@ID='labN arrative'] /cda:tbody
  14293        />
  14294                                  
  14295       </ifNotNul l>
  14296                                 
  14297       <ifNull>
  14298                                           
  14299        <action 
  14300         action="re move" 
  14301         relative=" cda:sectio n/cda:text /cda:table [@ID='labN arrative']
  14302        />
  14303                                           
  14304        <action 
  14305         action="re move" 
  14306         relative=" cda:sectio n/cda:text /cda:table [@ID='labR ules']" 
  14307        />
  14308                                  
  14309       </ifNull>
  14310                                 
  14311       <mappings>
  14312                                           
  14313        <mapping>
  14314                                                    
  14315         <property>
  14316          prettyColl ectedDate
  14317         </property >
  14318                                                    
  14319         <xpath>
  14320          cda:tr[@ID ='labTest' ]/cda:td[1 ]
  14321         </xpath>
  14322                                                    
  14323         <ifNotNull >
  14324                                                              
  14325          <action 
  14326           action="se tValue" 
  14327          />
  14328                                                     
  14329         </ifNotNul l>
  14330                                            
  14331        </mapping>
  14332                                           
  14333        <mapping>
  14334                                                    
  14335         <property 
  14336          optional=" true"
  14337         >
  14338          facility
  14339         </property >
  14340                                                    
  14341         <xpath>
  14342          cda:tr[@ID ='labTest' ]/cda:td[2 ]/cda:cont ent
  14343         </xpath>
  14344                                                    
  14345         <ifNotNull >
  14346                                                              
  14347          <action 
  14348           action="se tAttribute
  14349           attribute= "ID" 
  14350           indexed="t rue"
  14351          >
  14352           lndSource
  14353          </action>
  14354                                                              
  14355          <action 
  14356           action="se tValue" 
  14357           property=" facility.n ame" 
  14358          />
  14359                                                     
  14360         </ifNotNul l>
  14361                                                    
  14362         <ifNull>
  14363                                                              
  14364          <action 
  14365           action="se tAttribute
  14366           attribute= "ID" 
  14367           indexed="t rue"
  14368          >
  14369           lndSource
  14370          </action>
  14371                                                     
  14372         </ifNull>
  14373                                            
  14374        </mapping>                                 
  14375                                           
  14376        <mapping>
  14377                                                    
  14378         <property>
  14379          order.name
  14380         </property >
  14381                                                    
  14382         <xpath>
  14383          cda:tr[@ID ='labTest' ]/cda:td[3 ]/cda:cont ent
  14384         </xpath>
  14385                                                    
  14386         <ifNotNull >
  14387                                                              
  14388          <action 
  14389           action="se tAttribute
  14390           attribute= "ID" 
  14391           indexed="t rue"
  14392          >
  14393           lndResultT ype
  14394          </action>
  14395                                                              
  14396          <action 
  14397           action="se tValue" 
  14398          />
  14399                                                     
  14400         </ifNotNul l>
  14401                                            
  14402        </mapping>
  14403                         
  14404        <mapping>
  14405                                                    
  14406         <property 
  14407          optional=" true"
  14408         >
  14409          specimen.n ame
  14410         </property >
  14411                                                    
  14412         <xpath>
  14413          cda:tr[@ID ='labTest' ]/cda:td[7 ]/cda:cont ent
  14414         </xpath>
  14415                                                    
  14416         <ifNotNull >
  14417                                                              
  14418          <action 
  14419           action="se tAttribute
  14420           attribute= "ID" 
  14421           indexed="t rue" 
  14422           passIndexT oChild="va lues"
  14423          >
  14424           lndComment
  14425          </action>
  14426                                                              
  14427          <action 
  14428           action="se tValue"
  14429          >
  14430           Specimen T ype: 
  14431          </action>
  14432                                    
  14433          <action 
  14434           action="ap pendValue"  
  14435           property=" specimen.n ame" 
  14436          />
  14437                                                              
  14438          <action 
  14439           action="ap pendValue"
  14440          >
  14441           &#xa;
  14442          </action>
  14443                                                     
  14444         </ifNotNul l>
  14445                                                    
  14446         <ifNull>
  14447                                                              
  14448          <action 
  14449           action="se tAttribute
  14450           attribute= "ID" 
  14451           indexed="t rue" 
  14452           passIndexT oChild="va lues"
  14453          >
  14454           lndComment
  14455          </action>
  14456                                    
  14457          <action 
  14458           action="se tValue"
  14459          >
  14460           Specimen T ype: Not A vailable&# xa;
  14461          </action>
  14462                                                     
  14463         </ifNull>
  14464                                            
  14465        </mapping>
  14466                                           
  14467        <mapping>
  14468                                                    
  14469         <property 
  14470          optional=" true"
  14471         >
  14472          comment
  14473         </property >
  14474                                                    
  14475         <xpath>
  14476          cda:tr[@ID ='labTest' ]/cda:td[7 ]/cda:cont ent
  14477         </xpath>
  14478                                                    
  14479         <ifNotNull >
  14480                                                              
  14481          <action 
  14482           action="se tAttribute
  14483           attribute= "ID" 
  14484           indexed="t rue" 
  14485           passIndexT oChild="va lues"
  14486          >
  14487           lndComment
  14488          </action>
  14489                                    
  14490          <action 
  14491           action="ap pendValue"
  14492          >
  14493           Comment: 
  14494          </action>
  14495                                                              
  14496          <action 
  14497           action="ap pendValue"  
  14498           property=" comment" 
  14499          />
  14500                                                     
  14501         </ifNotNul l>
  14502                                                    
  14503         <ifNull>
  14504                                                              
  14505          <action 
  14506           action="se tAttribute
  14507           attribute= "ID" 
  14508           indexed="t rue" 
  14509           passIndexT oChild="va lues"
  14510          >
  14511           lndComment
  14512          </action>
  14513                                    
  14514          <action 
  14515           action="ap pendValue"
  14516          >
  14517           No comment  entered.
  14518          </action>
  14519                                                     
  14520         </ifNull>
  14521                                            
  14522        </mapping>
  14523                                           
  14524                                           
  14525                                           
  14526        <mapping>
  14527                                                    
  14528         <property>
  14529          prettyColl ectedDate
  14530         </property >
  14531                                                    
  14532         <xpath>
  14533          cda:tr[@ID ='labTest' ]
  14534         </xpath>
  14535                                                    
  14536         <ifNotNull >
  14537                                                              
  14538          <action 
  14539           action="se tAttribute
  14540           attribute= "ID" 
  14541           indexed="t rue" 
  14542          >
  14543           labTest
  14544          </action>
  14545                                                     
  14546         </ifNotNul l>
  14547                                                    
  14548         <ifNull>
  14549                                                              
  14550          <action 
  14551           action="se tAttribute
  14552           attribute= "ID" 
  14553           indexed="t rue"
  14554          >
  14555           labTest
  14556          </action>
  14557                                                     
  14558         </ifNull>
  14559                                            
  14560        </mapping>
  14561       
  14562                                           
  14563        <mapping>
  14564                                                    
  14565         <property>
  14566          values
  14567         </property >
  14568                                                    
  14569         <xpath>
  14570          cda:tr[@ID ='labValue s']
  14571         </xpath>
  14572                                                    
  14573         <ifNotNull >
  14574                                                              
  14575          <action 
  14576           action="re moveAttrib utes" 
  14577          >
  14578          </action>
  14579                                                              
  14580          <action 
  14581           action="ev aluateMapp ings" 
  14582          />
  14583                                                              
  14584                                                     
  14585         </ifNotNul l>
  14586                                                    
  14587         <ifNull>
  14588                                                              
  14589          <action 
  14590           action="re moveAttrib utes" 
  14591          >
  14592          </action>
  14593                                                     
  14594         </ifNull>
  14595                                                    
  14596         <mappings>
  14597                                                              
  14598          <mapping>
  14599                                                                        
  14600           <property 
  14601            optional=" true"
  14602           >
  14603            test
  14604           </property >
  14605                                                                        
  14606           <xpath>
  14607            cda:td[3]/ cda:conten t
  14608           </xpath>
  14609                                                                        
  14610           <ifNotNull >
  14611                                                                                  
  14612            <action 
  14613             action="ap pendAttrib ute" 
  14614             attribute= "ID" 
  14615             indexed="t rue"
  14616            >
  14617             loincLabVa lues
  14618            </action>
  14619                                                                                  
  14620            <action 
  14621             action="se tValue" 
  14622            />
  14623                                                                         
  14624           </ifNotNul l>
  14625                                                                        
  14626           <ifNull>
  14627                                                                                  
  14628            <action 
  14629             action="ap pendAttrib ute" 
  14630             attribute= "ID" 
  14631             indexed="t rue"
  14632            >
  14633             loincLabVa lues
  14634            </action>
  14635                                                                                  
  14636            <action 
  14637             action="se tValue" 
  14638             property=" loincDispl ay" 
  14639            />
  14640                                                                         
  14641           </ifNull>
  14642                                                               
  14643          </mapping>
  14644                                                              
  14645          <mapping>
  14646                                                                        
  14647           <property>
  14648            result
  14649           </property >
  14650                                                                        
  14651           <xpath>
  14652            cda:td[4]/ cda:conten t
  14653           </xpath>
  14654                                                                        
  14655           <ifNotNull >
  14656                                                                                  
  14657            <action 
  14658             action="ap pendAttrib ute" 
  14659             attribute= "ID" 
  14660             indexed="t rue"
  14661            >
  14662             resultLabV alues
  14663            </action>
  14664                                                                                  
  14665            <action 
  14666             action="se tValue" 
  14667            />
  14668                                                                                  
  14669            <action 
  14670             action="ap pendValue"
  14671            >
  14672             &#160;&#16 0;&#160;&# 160;&#160;
  14673            </action>
  14674                                                                                  
  14675            <action 
  14676             action="ap pendValue"  
  14677             property=" units" 
  14678            />
  14679                                                                         
  14680           </ifNotNul l>
  14681                                                               
  14682          </mapping>
  14683                                                              
  14684          <mapping>
  14685                                                                        
  14686           <property 
  14687            optional=" true"
  14688           >
  14689            interpreta tion
  14690           </property >
  14691                                                                        
  14692           <xpath>
  14693            cda:td[5]/ cda:conten t
  14694           </xpath>
  14695                                                                        
  14696           <ifNotNull >
  14697                                                                                  
  14698            <action 
  14699             action="ap pendAttrib ute" 
  14700             attribute= "ID" 
  14701             indexed="t rue"
  14702            >
  14703             interpLabV alues
  14704            </action>
  14705                                                                                  
  14706            <action 
  14707             action="se tValue" 
  14708            />
  14709                                                                         
  14710           </ifNotNul l>
  14711                                                                        
  14712           <ifNull>
  14713                                                                                  
  14714            <action 
  14715             action="ap pendAttrib ute" 
  14716             attribute= "ID" 
  14717             indexed="t rue"
  14718            >
  14719             interpLabV alues
  14720            </action>
  14721                                                                         
  14722           </ifNull>
  14723                                                               
  14724          </mapping>
  14725                                                              
  14726          <mapping>
  14727                                                                        
  14728           <property 
  14729            optional=" true"
  14730           >
  14731            range
  14732           </property >
  14733                                                                        
  14734           <xpath>
  14735            cda:td[6]/ cda:conten t
  14736           </xpath>
  14737                                                                        
  14738           <ifNotNull >
  14739                                                                                  
  14740            <action 
  14741             action="ap pendAttrib ute" 
  14742             attribute= "ID" 
  14743             indexed="t rue"
  14744            >
  14745             rangeLabVa lues
  14746            </action>
  14747                                                                                  
  14748            <action 
  14749             action="se tValue" 
  14750            />
  14751                                                                         
  14752           </ifNotNul l>
  14753                                                                        
  14754           <ifNull>
  14755                                                                                  
  14756            <action 
  14757             action="ap pendAttrib ute" 
  14758             attribute= "ID" 
  14759             indexed="t rue"
  14760            >
  14761             rangeLabVa lues
  14762            </action>
  14763                                                                         
  14764           </ifNull>
  14765                                                               
  14766          </mapping>
  14767                                                     
  14768         </mappings >
  14769                                            
  14770        </mapping>
  14771                                  
  14772       </mappings >
  14773                        
  14774      </mapping>
  14775     
  14776     
  14777                       
  14778      <!-- Radio logy Narra tive Secti on -->
  14779                       
  14780      <mapping>
  14781                            
  14782       <property 
  14783        optional=" true"
  14784       >
  14785        radiologyR esultsNarr ative
  14786       </property >
  14787                            
  14788       <xpath>
  14789        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.3.1']
  14790       </xpath>
  14791                            
  14792       <ifNotNull >
  14793                                  
  14794        <action 
  14795         action="se tValue" 
  14796         relative=" cda:sectio n/cda:text /cda:table [@ID='radi ologyRules ']/cda:tbo dy/cda:tr[ 2]/cda:td"  
  14797        />
  14798                             
  14799       </ifNotNul l>
  14800                        
  14801      </mapping>
  14802                       
  14803      <mapping>
  14804                                 
  14805       <property 
  14806        collection ="true"
  14807       >
  14808        radiologie s
  14809       </property >
  14810                                 
  14811       <xpath>
  14812        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.3.1']
  14813       </xpath>
  14814                                 
  14815       <ifNotNull >
  14816                                           
  14817        <action 
  14818         action="ev aluateMapp ings"
  14819                                                   
  14820         relative=" cda:sectio n/cda:text /cda:table [@ID='radi ologyNarra tive']/cda :tbody/cda :tr" 
  14821        />
  14822                                  
  14823       </ifNotNul l>
  14824                                 
  14825       <ifNull>
  14826                                           
  14827        <action 
  14828         action="re move" 
  14829         relative=" cda:sectio n/cda:text /cda:table [@ID='radi ologyNarra tive']" 
  14830        />
  14831                                           
  14832        <action 
  14833         action="re move" 
  14834         relative=" cda:sectio n/cda:text /cda:table [@ID='radi ologyRules ']" 
  14835        />
  14836                                  
  14837       </ifNull>
  14838                                 
  14839       <mappings>
  14840                                           
  14841        <mapping>
  14842                                                    
  14843         <property>
  14844          prettyRefe renceDateT ime
  14845         </property >
  14846                                                    
  14847         <xpath>
  14848          cda:td[1]
  14849         </xpath>
  14850                                                    
  14851         <ifNotNull >
  14852                                                              
  14853          <action 
  14854           action="se tValue" 
  14855          />
  14856                                                     
  14857         </ifNotNul l>
  14858                                            
  14859        </mapping>
  14860                                           
  14861        <mapping>
  14862                                                    
  14863         <property>
  14864          localTitle
  14865         </property >
  14866                                                    
  14867         <xpath>
  14868          cda:td[2]/ cda:conten t
  14869         </xpath>
  14870                                                    
  14871         <ifNotNull >
  14872                                                              
  14873          <action 
  14874           action="se tAttribute
  14875           attribute= "ID" 
  14876           indexed="t rue"
  14877          >
  14878           lndResultT ype
  14879          </action>
  14880                                                              
  14881          <action 
  14882           action="se tValue" 
  14883          />
  14884                                                     
  14885         </ifNotNul l>
  14886                                            
  14887        </mapping>
  14888                                           
  14889        <mapping>
  14890                                                    
  14891         <property 
  14892          optional=" true"
  14893         >
  14894          facility
  14895         </property >
  14896                                                    
  14897         <xpath>
  14898          cda:td[3]/ cda:conten t
  14899         </xpath>
  14900                                                    
  14901         <ifNotNull >
  14902                                                              
  14903          <action 
  14904           action="se tAttribute
  14905           attribute= "ID" 
  14906           indexed="t rue"
  14907          >
  14908           lndSource
  14909          </action>
  14910                                                              
  14911          <action 
  14912           action="se tValue" 
  14913           property=" facility.n ame" 
  14914          />
  14915                                                     
  14916         </ifNotNul l>
  14917                                                    
  14918         <ifNull>
  14919                                                              
  14920          <action 
  14921           action="se tAttribute
  14922           attribute= "ID" 
  14923           indexed="t rue"
  14924          >
  14925           lndSource
  14926          </action>
  14927                                                     
  14928         </ifNull>
  14929                                            
  14930        </mapping>
  14931                                           
  14932        <mapping>
  14933                                                    
  14934         <property 
  14935          optional=" true"
  14936         >
  14937          content
  14938         </property >
  14939                                                    
  14940         <xpath>
  14941          cda:td[4]/ cda:conten t
  14942         </xpath>
  14943                                                    
  14944         <ifNotNull >
  14945                                                              
  14946          <action 
  14947           action="se tAttribute
  14948           attribute= "ID" 
  14949           indexed="t rue"
  14950          >
  14951           lndComment
  14952          </action>
  14953                                                              
  14954          <action 
  14955           action="se tValue" 
  14956          />
  14957                                                     
  14958         </ifNotNul l>
  14959                                                    
  14960         <ifNull>
  14961                                                              
  14962          <action 
  14963           action="se tAttribute
  14964           attribute= "ID" 
  14965           indexed="t rue"
  14966          >
  14967           lndComment
  14968          </action>
  14969                                                     
  14970         </ifNull>
  14971                                            
  14972        </mapping>
  14973                                           
  14974        <mapping>
  14975                                                    
  14976         <property 
  14977          optional=" true"
  14978         >
  14979          signingCli nician
  14980         </property >
  14981                                                    
  14982         <xpath>
  14983          cda:td[5]/ cda:conten t
  14984         </xpath>
  14985                                                    
  14986         <ifNotNull >
  14987                                                              
  14988          <action 
  14989           action="se tAttribute
  14990           attribute= "ID" 
  14991           indexed="t rue"
  14992          >
  14993           lndProvide r
  14994          </action>
  14995                                                              
  14996          <action 
  14997           action="se tValue" 
  14998           property=" signingCli nician.nam e" 
  14999          />
  15000                                                     
  15001         </ifNotNul l>
  15002                                                    
  15003         <ifNull>
  15004                                                              
  15005          <action 
  15006           action="se tAttribute
  15007           attribute= "ID" 
  15008           indexed="t rue"
  15009          >
  15010           lndProvide r
  15011          </action>
  15012                                                     
  15013         </ifNull>
  15014                                            
  15015        </mapping>
  15016                                  
  15017       </mappings >
  15018                        
  15019      </mapping>
  15020     
  15021                       
  15022      <mapping>
  15023                            
  15024       <property 
  15025        optional=" true"
  15026       >
  15027        pathologyR esultsNarr ative
  15028       </property >
  15029                            
  15030       <xpath>
  15031        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.3.1']
  15032       </xpath>
  15033                            
  15034       <ifNotNull >
  15035                                  
  15036        <action 
  15037         action="se tValue" 
  15038         relative=" cda:sectio n/cda:text /cda:table [@ID='path ologyRules ']/cda:tbo dy/cda:tr[ 2]/cda:td"  
  15039        />
  15040                             
  15041       </ifNotNul l>
  15042                        
  15043      </mapping>
  15044                       
  15045                       
  15046      <mapping>
  15047                                 
  15048       <property 
  15049        collection ="true"
  15050       >
  15051        pathologie s
  15052       </property >
  15053                                 
  15054       <xpath>
  15055        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.3.1']
  15056       </xpath>
  15057                                 
  15058       <ifNotNull >
  15059                                           
  15060        <action 
  15061         action="ev aluateMapp ings"
  15062                                                   
  15063         relative=" cda:sectio n/cda:text /cda:table [@ID='path ologyNarra tive']/cda :tbody/cda :tr" 
  15064        />
  15065                                  
  15066       </ifNotNul l>
  15067                                 
  15068       <ifNull>
  15069                                           
  15070        <action 
  15071         action="re move" 
  15072         relative=" cda:sectio n/cda:text /cda:table [@ID='path ologyNarra tive']" 
  15073        />
  15074                                           
  15075        <action 
  15076         action="re move" 
  15077         relative=" cda:sectio n/cda:text /cda:table [@ID='path ologyRules ']" 
  15078        />
  15079                                  
  15080       </ifNull>
  15081                                 
  15082       <mappings>
  15083                                           
  15084        <mapping>
  15085                                                    
  15086         <property>
  15087          prettyRefe renceDateT ime
  15088         </property >
  15089                                                    
  15090         <xpath>
  15091          cda:td[1]
  15092         </xpath>
  15093                                                    
  15094         <ifNotNull >
  15095                                                              
  15096          <action 
  15097           action="se tValue" 
  15098          />
  15099                                                     
  15100         </ifNotNul l>
  15101                                            
  15102        </mapping>
  15103                                           
  15104        <mapping>
  15105                                                    
  15106         <property>
  15107          localTitle
  15108         </property >
  15109                                                    
  15110         <xpath>
  15111          cda:td[2]/ cda:conten t
  15112         </xpath>
  15113                                                    
  15114         <ifNotNull >
  15115                                                              
  15116          <action 
  15117           action="se tAttribute
  15118           attribute= "ID" 
  15119           indexed="t rue"
  15120          >
  15121           lndResultT ype
  15122          </action>
  15123                                                              
  15124          <action 
  15125           action="se tValue" 
  15126          />
  15127                                                     
  15128         </ifNotNul l>
  15129                                            
  15130        </mapping>
  15131                                           
  15132        <mapping>
  15133                                                    
  15134         <property 
  15135          optional=" true"
  15136         >
  15137          facility
  15138         </property >
  15139                                                    
  15140         <xpath>
  15141          cda:td[3]/ cda:conten t
  15142         </xpath>
  15143                                                    
  15144         <ifNotNull >
  15145                                                              
  15146          <action 
  15147           action="se tAttribute
  15148           attribute= "ID" 
  15149           indexed="t rue"
  15150          >
  15151           lndSource
  15152          </action>
  15153                                                              
  15154          <action 
  15155           action="se tValue" 
  15156           property=" facility.n ame" 
  15157          />
  15158                                                     
  15159         </ifNotNul l>
  15160                                                    
  15161         <ifNull>
  15162                                                              
  15163          <action 
  15164           action="se tAttribute
  15165           attribute= "ID" 
  15166           indexed="t rue"
  15167          >
  15168           lndSource
  15169          </action>
  15170                                                     
  15171         </ifNull>
  15172                                            
  15173        </mapping>
  15174                                           
  15175        <mapping>
  15176                                                    
  15177         <property 
  15178          optional=" true"
  15179         >
  15180          content
  15181         </property >
  15182                                                    
  15183         <xpath>
  15184          cda:td[4]/ cda:conten t
  15185         </xpath>
  15186                                                    
  15187         <ifNotNull >
  15188                                                              
  15189          <action 
  15190           action="se tAttribute
  15191           attribute= "ID" 
  15192           indexed="t rue"
  15193          >
  15194           lndComment
  15195          </action>
  15196                                                              
  15197          <action 
  15198           action="se tValue" 
  15199          />
  15200                                                     
  15201         </ifNotNul l>
  15202                                                    
  15203         <ifNull>
  15204                                                              
  15205          <action 
  15206           action="se tAttribute
  15207           attribute= "ID" 
  15208           indexed="t rue"
  15209          >
  15210           lndComment
  15211          </action>
  15212                                                     
  15213         </ifNull>
  15214                                            
  15215        </mapping>
  15216                                           
  15217        <mapping>
  15218                                                    
  15219         <property 
  15220          optional=" true"
  15221         >
  15222          signingCli nician
  15223         </property >
  15224                                                    
  15225         <xpath>
  15226          cda:td[5]/ cda:conten t
  15227         </xpath>
  15228                                                    
  15229         <ifNotNull >
  15230                                                              
  15231          <action 
  15232           action="se tAttribute
  15233           attribute= "ID" 
  15234           indexed="t rue"
  15235          >
  15236           lndProvide r
  15237          </action>
  15238                                                              
  15239          <action 
  15240           action="se tValue" 
  15241           property=" signingCli nician.nam e" 
  15242          />
  15243                                                     
  15244         </ifNotNul l>
  15245                                                    
  15246         <ifNull>
  15247                                                              
  15248          <action 
  15249           action="se tAttribute
  15250           attribute= "ID" 
  15251           indexed="t rue"
  15252          >
  15253           lndProvide r
  15254          </action>
  15255                                                     
  15256         </ifNull>
  15257                                            
  15258        </mapping>
  15259                                  
  15260       </mappings >
  15261                        
  15262      </mapping>
  15263     
  15264                       
  15265      <!-- LABS  SECTION -- >
  15266                       
  15267      <mapping>
  15268                                 
  15269       <property 
  15270        collection ="true"
  15271       >
  15272        labs,radio logies,pat hologies,m icrobiolog y
  15273       </property >
  15274                                 
  15275       <xpath>
  15276        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.3.1']
  15277                                  
  15278       </xpath>
  15279                                 
  15280       <ifNotNull >
  15281                                           
  15282        <action 
  15283         action="ev aluateMapp ings" 
  15284         relative=" cda:sectio n/cda:entr y[@typeCod e='DRIV']"  
  15285        />
  15286                                  
  15287       </ifNotNul l>
  15288                                 
  15289       <ifNull>
  15290                                           
  15291        <action 
  15292         action="re move" 
  15293         relative=" cda:sectio n/cda:entr y"
  15294        >
  15295         NI
  15296        </action>
  15297                                           
  15298        <action 
  15299         action="se tValue" 
  15300         relative=" cda:sectio n/cda:text "
  15301        >
  15302         No Data Pr ovided for  This
  15303                                                     Section
  15304                                            
  15305        </action>
  15306                                           
  15307        <action 
  15308         action="se tAttribute
  15309         relative=" cda:sectio n" 
  15310         attribute= "nullFlavo r"
  15311        >
  15312         NI
  15313        </action>
  15314                                  
  15315       </ifNull>
  15316                                 
  15317       <mappings>
  15318                                           
  15319        <mapping>
  15320                                                    
  15321         <property>
  15322          id
  15323         </property >
  15324                                                    
  15325         <xpath>
  15326          cda:organi zer/cda:id
  15327         </xpath>
  15328                                                    
  15329         <ifNotNull >
  15330                                                              
  15331          <action 
  15332           action="se tAttribute
  15333           attribute= "extension
  15334           property=" facility.c ode" 
  15335          />
  15336                                                              
  15337          <action 
  15338           action="ap pendAttrib ute" 
  15339           attribute= "extension "
  15340          >
  15341           ;
  15342          </action>
  15343                                                              
  15344          <action 
  15345           action="ap pendAttrib ute" 
  15346           attribute= "extension "
  15347                                                                       
  15348           property=" id" 
  15349          />
  15350                                                     
  15351         </ifNotNul l>
  15352                                                    
  15353         <ifNull>
  15354                                                              
  15355          <action 
  15356           action="se tAttribute
  15357           attribute= "nullFlavo r"
  15358          >
  15359           UNK
  15360          </action>
  15361                                                     
  15362         </ifNull>
  15363                                            
  15364        </mapping>
  15365                                           
  15366        <mapping>
  15367                                                    
  15368         <property>
  15369          order.name |localTitl e|type
  15370         </property >
  15371                                                    
  15372         <xpath>
  15373          cda:organi zer/cda:co de/cda:ori ginalText
  15374         </xpath>
  15375                                                    
  15376         <ifNotNull >
  15377                                                              
  15378          <action 
  15379           action="se tValue" 
  15380          />
  15381                                                     
  15382         </ifNotNul l>
  15383                                                    
  15384         <ifNull>
  15385                                                                
  15386          <action 
  15387           action="re move" 
  15388          /> 
  15389                                                     
  15390         </ifNull>
  15391                                            
  15392        </mapping>
  15393                                           
  15394        <mapping>
  15395                                                    
  15396         <property>
  15397          order.name |localTitl e|type
  15398         </property >
  15399                                                    
  15400         <xpath>
  15401          cda:organi zer/cda:co de/cda:tra nslation/c da:origina lText
  15402         </xpath>
  15403                                                    
  15404         <ifNotNull >
  15405                                                              
  15406          <action 
  15407           action="se tValue" 
  15408          />
  15409                                                     
  15410         </ifNotNul l>
  15411                                                    
  15412         <ifNull>
  15413                                                              
  15414          <action 
  15415           action="se tAttribute
  15416           relative=" .." 
  15417           attribute= "nullFlavo r"
  15418          >
  15419           UNK
  15420                                                               
  15421          </action>
  15422                                                              
  15423          <!--  <act ion action ="remove"  /> -->
  15424                                                     
  15425         </ifNull>
  15426                                            
  15427        </mapping>
  15428                
  15429        <mapping>
  15430                          
  15431         <property 
  15432          collection ="true" 
  15433          merge="tru e"
  15434         >
  15435          documents
  15436         </property >
  15437                          
  15438         <xpath>
  15439          cda:organi zer/cda:co de/cda:tra nslation/c da:origina lText
  15440         </xpath>
  15441                          
  15442         <ifNotNull >
  15443                                    
  15444          <action 
  15445           action="ev aluateMapp ings" 
  15446          />
  15447                           
  15448         </ifNotNul l>
  15449                          
  15450         <mappings>
  15451                                    
  15452          <mapping>
  15453                                              
  15454           <property>
  15455            localTitle
  15456           </property >
  15457                                              
  15458           <xpath>
  15459            .
  15460           </xpath>
  15461                                              
  15462           <ifNotNull >
  15463                                                       
  15464            <action 
  15465             action="se tValue" 
  15466            />
  15467                                               
  15468           </ifNotNul l>
  15469                                     
  15470          </mapping>
  15471                           
  15472         </mappings >
  15473                 
  15474        </mapping>
  15475                
  15476                
  15477                         
  15478        <mapping>
  15479                          
  15480         <property 
  15481          collection ="true" 
  15482          merge="tru e"
  15483         >
  15484          documents
  15485         </property >
  15486                          
  15487         <xpath>
  15488          cda:organi zer/cda:co de/cda:ori ginalText
  15489         </xpath>
  15490                          
  15491         <ifNotNull >
  15492                                    
  15493          <action 
  15494           action="ev aluateMapp ings" 
  15495          />
  15496                           
  15497         </ifNotNul l>
  15498                          
  15499         <mappings>
  15500                                    
  15501          <mapping>
  15502                                              
  15503           <property>
  15504            localTitle
  15505           </property >
  15506                                              
  15507           <xpath>
  15508            .
  15509           </xpath>
  15510                                              
  15511           <ifNotNull >
  15512                                                       
  15513            <action 
  15514             action="se tValue" 
  15515            />
  15516                                               
  15517           </ifNotNul l>
  15518                                     
  15519          </mapping>
  15520                           
  15521         </mappings >
  15522                 
  15523        </mapping>
  15524                                  
  15525                                  
  15526                                           
  15527        <mapping 
  15528         equalsProp erty="type
  15529         equalsValu e="CY"
  15530        >
  15531                                                    
  15532         <property>
  15533          type
  15534         </property >
  15535                                                    
  15536         <xpath>
  15537          cda:organi zer/cda:co de/cda:tra nslation/c da:origina lText
  15538         </xpath>
  15539                                                    
  15540         <ifNotNull >
  15541                                                              
  15542          <action 
  15543           action="se tValue"
  15544          >
  15545           Cytology R eport
  15546          </action>
  15547                                                     
  15548         </ifNotNul l>
  15549                                            
  15550        </mapping>
  15551                                           
  15552                                           
  15553        <mapping 
  15554         equalsProp erty="type
  15555         equalsValu e="EM"
  15556        >
  15557                                                    
  15558         <property>
  15559          type
  15560         </property >
  15561                                                    
  15562         <xpath>
  15563          cda:organi zer/cda:co de/cda:tra nslation/c da:origina lText
  15564         </xpath>
  15565                                                    
  15566         <ifNotNull >
  15567                                                              
  15568          <action 
  15569           action="se tValue"
  15570          >
  15571           Electron M icroscopy  Report
  15572          </action>
  15573                                                     
  15574         </ifNotNul l>
  15575                                            
  15576        </mapping>
  15577                                           
  15578                                           
  15579        <mapping 
  15580         equalsProp erty="type
  15581         equalsValu e="CY"
  15582        >
  15583                                                    
  15584         <property>
  15585          type
  15586         </property >
  15587                                                    
  15588         <xpath>
  15589          cda:organi zer/cda:co de/cda:ori ginalText
  15590         </xpath>
  15591                                                    
  15592         <ifNotNull >
  15593                                                              
  15594          <action 
  15595           action="se tValue"
  15596          >
  15597           Cytology R eport
  15598          </action>
  15599                                                     
  15600         </ifNotNul l>
  15601                                            
  15602        </mapping>
  15603                                           
  15604                                           
  15605        <mapping 
  15606         equalsProp erty="type
  15607         equalsValu e="EM"
  15608        >
  15609                                                    
  15610         <property>
  15611          type
  15612         </property >
  15613                                                    
  15614         <xpath>
  15615          cda:organi zer/cda:co de/cda:ori ginalText
  15616         </xpath>
  15617                                                    
  15618         <ifNotNull >
  15619                                                              
  15620          <action 
  15621           action="se tValue"
  15622          >
  15623           Electron M icroscopy  Report
  15624          </action>
  15625                                                     
  15626         </ifNotNul l>
  15627                                            
  15628        </mapping>
  15629                                           
  15630                                           
  15631        <mapping 
  15632         equalsProp erty="cate gory" 
  15633         equalsValu e="RA"
  15634        >
  15635                                                    
  15636         <property>
  15637          category
  15638         </property >
  15639                                                    
  15640         <xpath>
  15641          cda:organi zer/cda:co de/cda:tra nslation
  15642         </xpath>
  15643                                                    
  15644         <ifNotNull >
  15645                                                              
  15646          <action 
  15647           action="se tAttribute
  15648           attribute= "code"
  15649          >
  15650           18726-0
  15651          </action>
  15652                                                              
  15653          <action 
  15654           action="se tAttribute
  15655           attribute= "codeSyste m"
  15656          >
  15657           2.16.840.1 .113883.6. 1
  15658          </action>
  15659                                                              
  15660          <action 
  15661           action="se tAttribute
  15662           attribute= "codeSyste mName"
  15663          >
  15664           LOINC
  15665          </action>
  15666                                                              
  15667          <action 
  15668           action="se tAttribute
  15669           attribute= "displayNa me"
  15670          >
  15671           Radiology  Studies
  15672          </action>
  15673                                                     
  15674         </ifNotNul l>
  15675                                            
  15676        </mapping>
  15677                                           
  15678        <mapping 
  15679         equalsProp erty="cate gory" 
  15680         equalsValu e="RA"
  15681        >
  15682                                                    
  15683         <property>
  15684          category
  15685         </property >
  15686                                                    
  15687         <xpath>
  15688          cda:organi zer/cda:co mponent/cd a:observat ion/cda:co de/cda:tra nslation
  15689         </xpath>
  15690                                                    
  15691         <ifNotNull >
  15692                                                              
  15693          <action 
  15694           action="re moveAttrib utes" 
  15695           relative=" .." 
  15696          >
  15697          </action>
  15698                                                              
  15699          <action 
  15700           action="se tAttribute
  15701           attribute= "nullFlavo r" 
  15702           relative=" .." 
  15703          >
  15704           UNK
  15705          </action>
  15706                                                              
  15707          <action 
  15708           action="se tAttribute
  15709           attribute= "code"
  15710          >
  15711           18726-0
  15712          </action>
  15713                                                              
  15714          <action 
  15715           action="se tAttribute
  15716           attribute= "codeSyste m"
  15717          >
  15718           2.16.840.1 .113883.6. 1
  15719          </action>
  15720                                                              
  15721          <action 
  15722           action="se tAttribute
  15723           attribute= "codeSyste mName"
  15724          >
  15725           LOINC
  15726          </action>
  15727                                                              
  15728          <action 
  15729           action="se tAttribute
  15730           attribute= "displayNa me"
  15731          >
  15732           Radiology  Studies
  15733          </action>
  15734                                                     
  15735         </ifNotNul l>
  15736                                            
  15737        </mapping>
  15738                                           
  15739        <mapping 
  15740         equalsProp erty="docu mentClass"  
  15741         equalsValu e="LR LABO RATORY REP ORTS"
  15742        >
  15743                                                    
  15744         <property 
  15745          optional=" true"
  15746         >
  15747          documentCl ass
  15748         </property >
  15749                                                    
  15750         <xpath>
  15751          cda:organi zer/cda:co de/cda:tra nslation
  15752         </xpath>
  15753                                                    
  15754         <ifNotNull >
  15755                                                              
  15756          <action 
  15757           action="se tAttribute
  15758           attribute= "code"
  15759          >
  15760           27898-6
  15761          </action>
  15762                                                              
  15763          <action 
  15764           action="se tAttribute
  15765           attribute= "codeSyste m"
  15766          >
  15767           2.16.840.1 .113883.6. 1
  15768          </action>
  15769                                                              
  15770          <action 
  15771           action="se tAttribute
  15772           attribute= "codeSyste mName"
  15773          >
  15774           LOINC
  15775          </action>
  15776                                                              
  15777          <action 
  15778           action="se tAttribute
  15779           attribute= "displayNa me"
  15780          >
  15781           Pathology  Studies
  15782          </action>
  15783                                                     
  15784         </ifNotNul l>
  15785                                            
  15786        </mapping>
  15787                                           
  15788        <mapping 
  15789         equalsProp erty="docu mentClass"  
  15790         equalsValu e="LR LABO RATORY REP ORTS"
  15791        >
  15792                                                    
  15793         <property 
  15794          optional=" true"
  15795         >
  15796          documentCl ass
  15797         </property >
  15798                                                    
  15799         <xpath>
  15800          cda:organi zer/cda:co mponent/cd a:observat ion/cda:co de/cda:tra nslation
  15801         </xpath>
  15802                                                    
  15803         <ifNotNull >
  15804                                                              
  15805          <action 
  15806           action="se tAttribute
  15807           attribute= "code"
  15808          >
  15809           27898-6
  15810          </action>
  15811                                                              
  15812          <action 
  15813           action="se tAttribute
  15814           attribute= "codeSyste m"
  15815          >
  15816           2.16.840.1 .113883.6. 1
  15817          </action>
  15818                                                              
  15819          <action 
  15820           action="se tAttribute
  15821           attribute= "codeSyste mName"
  15822          >
  15823           LOINC
  15824          </action>
  15825                                                              
  15826          <action 
  15827           action="se tAttribute
  15828           attribute= "displayNa me"
  15829          >
  15830           Pathology  Studies
  15831          </action>
  15832                                                     
  15833         </ifNotNul l>
  15834                                            
  15835        </mapping>                                 
  15836                                           
  15837        <mapping 
  15838         equalsProp erty="type
  15839         equalsValu e="MI"
  15840        >
  15841                                                    
  15842         <property  >
  15843          documents
  15844         </property >
  15845                                                    
  15846         <xpath>
  15847          cda:organi zer/cda:co de/cda:tra nslation
  15848         </xpath>
  15849                                                    
  15850         <ifNotNull >
  15851                                                              
  15852          <action 
  15853           action="se tAttribute
  15854           attribute= "code"
  15855          >
  15856           18725-2
  15857          </action>
  15858                                                              
  15859          <action 
  15860           action="se tAttribute
  15861           attribute= "codeSyste m"
  15862          >
  15863           2.16.840.1 .113883.6. 1
  15864          </action>
  15865                                                              
  15866          <action 
  15867           action="se tAttribute
  15868           attribute= "codeSyste mName"
  15869          >
  15870           LOINC
  15871          </action>
  15872                                                              
  15873          <action 
  15874           action="se tAttribute
  15875           attribute= "displayNa me"
  15876          >
  15877           Microbiolo gy Studies
  15878          </action>
  15879                                                     
  15880         </ifNotNul l>
  15881                                            
  15882        </mapping>
  15883                                           
  15884        <mapping 
  15885         equalsProp erty="type
  15886         equalsValu e="MI"
  15887        >
  15888                                                    
  15889         <property  >
  15890          documents
  15891         </property >
  15892                                                    
  15893         <xpath>
  15894          cda:organi zer/cda:co mponent/cd a:observat ion/cda:co de/cda:tra nslation
  15895         </xpath>
  15896                                                    
  15897         <ifNotNull >
  15898                                                              
  15899          <action 
  15900           action="se tAttribute
  15901           attribute= "code"
  15902          >
  15903           18725-2
  15904          </action>
  15905                                                              
  15906          <action 
  15907           action="se tAttribute
  15908           attribute= "codeSyste m"
  15909          >
  15910           2.16.840.1 .113883.6. 1
  15911          </action>
  15912                                                              
  15913          <action 
  15914           action="se tAttribute
  15915           attribute= "codeSyste mName"
  15916          >
  15917           LOINC
  15918          </action>
  15919                                                              
  15920          <action 
  15921           action="se tAttribute
  15922           attribute= "displayNa me"
  15923          >
  15924           Microbiolo gy Studies
  15925          </action>
  15926                                                     
  15927         </ifNotNul l>
  15928                                            
  15929        </mapping>                                 
  15930                                           
  15931                                           
  15932        <mapping 
  15933         equalsProp erty="type
  15934         equalsValu e="CY"
  15935        >
  15936                                                    
  15937         <property>
  15938          type
  15939         </property >
  15940                                                    
  15941         <xpath>
  15942          cda:organi zer/cda:co de/cda:tra nslation
  15943         </xpath>
  15944                                                    
  15945         <ifNotNull >
  15946                                                              
  15947          <action 
  15948           action="se tAttribute
  15949           attribute= "code"
  15950          >
  15951           26438-2
  15952          </action>
  15953                                                              
  15954          <action 
  15955           action="se tAttribute
  15956           attribute= "codeSyste m"
  15957          >
  15958           2.16.840.1 .113883.6. 1
  15959          </action>
  15960                                                              
  15961          <action 
  15962           action="se tAttribute
  15963           attribute= "codeSyste mName"
  15964          >
  15965           LOINC
  15966          </action>
  15967                                                              
  15968          <action 
  15969           action="se tAttribute
  15970           attribute= "displayNa me"
  15971          >
  15972           Cytology S tudies
  15973          </action>
  15974                                                     
  15975         </ifNotNul l>
  15976                                            
  15977        </mapping>
  15978                                                            
  15979                                           
  15980        <mapping 
  15981         equalsProp erty="type
  15982         equalsValu e="EM"
  15983        >
  15984                                                    
  15985         <property>
  15986          type
  15987         </property >
  15988                                                    
  15989         <xpath>
  15990          cda:organi zer/cda:co de/cda:tra nslation
  15991         </xpath>
  15992                                                    
  15993         <ifNotNull >
  15994                                                              
  15995          <action 
  15996           action="se tAttribute
  15997           attribute= "code"
  15998          >
  15999           50668-3
  16000          </action>
  16001                                                              
  16002          <action 
  16003           action="se tAttribute
  16004           attribute= "codeSyste m"
  16005          >
  16006           2.16.840.1 .113883.6. 1
  16007          </action>
  16008                                                              
  16009          <action 
  16010           action="se tAttribute
  16011           attribute= "codeSyste mName"
  16012          >
  16013           LOINC
  16014          </action>
  16015                                                              
  16016          <action 
  16017           action="se tAttribute
  16018           attribute= "displayNa me"
  16019          >
  16020           Electron M icroscopy  Studies
  16021          </action>
  16022                                                     
  16023         </ifNotNul l>
  16024                                            
  16025        </mapping>
  16026                                           
  16027                                           
  16028                                           
  16029        <mapping 
  16030         equalsProp erty="type
  16031         equalsValu e="MI"
  16032        >
  16033                                                    
  16034         <property>
  16035          documents
  16036         </property >
  16037                                                    
  16038         <xpath>
  16039          cda:organi zer/cda:co mponent
  16040         </xpath>
  16041                                                    
  16042         <ifNotNull >
  16043                                                              
  16044          <action 
  16045           action="se tAttribute
  16046           relative=" cda:observ ation/cda: value"
  16047                                                                       
  16048           attribute= "xsi:type"
  16049          >
  16050           ED
  16051          </action>
  16052                                                              
  16053          <action 
  16054           action="se tAttribute
  16055           relative=" cda:observ ation/cda: value/cda: reference"
  16056                                                                       
  16057           attribute= "value" 
  16058           indexed="t rue"
  16059          >
  16060           #microbiol ogyReport
  16061          </action>
  16062                                                              
  16063          <action 
  16064           action="se tAttribute
  16065           relative=" cda:observ ation/cda: text/cda:r eference"
  16066                                                                       
  16067           attribute= "value" 
  16068           indexed="t rue"
  16069          >
  16070           #microbiol ogyReport
  16071          </action>        
  16072                                                              
  16073          <action 
  16074           action="se tAttribute
  16075           relative=" cda:observ ation/cda: id"
  16076                                                                       
  16077           attribute= "nullFlavo r"
  16078          >
  16079           UNK
  16080          </action>
  16081                                                                       
  16082                                                              
  16083          <action 
  16084           action="re move" 
  16085           relative=" cda:observ ation/cda: interpreta tionCode" 
  16086          />
  16087                                                              
  16088          <action 
  16089           action="re move" 
  16090           relative=" cda:observ ation/cda: entryRelat ionship" 
  16091          />
  16092                                                              
  16093          <action 
  16094           action="re move" 
  16095           relative=" cda:observ ation/cda: referenceR ange" 
  16096          />
  16097                                                     
  16098                                                              
  16099                                                              
  16100          <action 
  16101           action="ev aluateMapp ings" 
  16102          />      
  16103                                                     
  16104         </ifNotNul l>
  16105                                                    
  16106         <ifNull>
  16107                                                              
  16108          <action 
  16109           action="re move" 
  16110           relative=" cda:observ ation/cda: text/cda:r eference" 
  16111          />
  16112                                                     
  16113         </ifNull>
  16114                                                                      
  16115         <mappings>
  16116                                                                                
  16117          <mapping>
  16118                                                                                          
  16119           <property>
  16120            localTitle
  16121           </property >
  16122                                                                                          
  16123           <xpath>
  16124            .
  16125           </xpath>
  16126                                                                                          
  16127           <ifNotNull >
  16128                                                                                                   
  16129            <action 
  16130             action="se tAttribute
  16131             relative=" cda:observ ation/cda: code" 
  16132             attribute= "nullFlavo r"
  16133            >
  16134             UNK
  16135            </action>
  16136                                                                                                   
  16137            <action 
  16138             action="se tAttribute
  16139             relative=" cda:observ ation/cda: code" 
  16140             attribute= "codeSyste m"
  16141            >
  16142             2.16.840.1 .113883.6. 1
  16143            </action>
  16144                                                                                                   
  16145            <action 
  16146             action="se tAttribute
  16147             relative=" cda:observ ation/cda: code" 
  16148             attribute= "codeSyste mName"
  16149            >
  16150             LOINC
  16151            </action>
  16152                                                                                                   
  16153            <action 
  16154             action="se tValue" 
  16155             relative=" cda:observ ation/cda: code/cda:o riginalTex t"
  16156            />
  16157                                                                                           
  16158           </ifNotNul l>
  16159                                                                                 
  16160          </mapping>
  16161                                                              
  16162         </mappings >
  16163                                            
  16164        </mapping>
  16165                                           
  16166                                           
  16167        <mapping 
  16168         equalsProp erty="type
  16169         equalsValu e="CY"
  16170        >
  16171                                                    
  16172         <property>
  16173          documents
  16174         </property >
  16175                                                    
  16176         <xpath>
  16177          cda:organi zer/cda:co mponent
  16178         </xpath>
  16179                                                    
  16180         <ifNotNull >
  16181                                                              
  16182          <action 
  16183           action="se tAttribute
  16184           relative=" cda:observ ation/cda: value"
  16185                                                                       
  16186           attribute= "xsi:type"
  16187          >
  16188           ED
  16189          </action>
  16190                                                              
  16191          <action 
  16192           action="se tAttribute
  16193           relative=" cda:observ ation/cda: value/cda: reference"
  16194                                                                       
  16195           attribute= "value" 
  16196           indexed="t rue"
  16197          >
  16198           #cytologyR eport
  16199          </action>
  16200                                                              
  16201          <action 
  16202           action="se tAttribute
  16203           relative=" cda:observ ation/cda: text/cda:r eference"
  16204                                                                       
  16205           attribute= "value" 
  16206           indexed="t rue"
  16207          >
  16208           #cytologyR eport
  16209          </action>        
  16210         
  16211                                                              
  16212          <action 
  16213           action="se tAttribute
  16214           relative=" cda:observ ation/cda: id"
  16215                                                                       
  16216           attribute= "nullFlavo r"
  16217          >
  16218           UNK
  16219          </action>
  16220                                                                       
  16221                                                              
  16222          <action 
  16223           action="ev aluateMapp ings" 
  16224          />      
  16225                                                     
  16226         </ifNotNul l>
  16227                                                    
  16228         <ifNull>
  16229                                                              
  16230          <action 
  16231           action="re move" 
  16232           relative=" cda:observ ation/cda: text/cda:r eference" 
  16233          />
  16234                                                     
  16235         </ifNull>
  16236                                                                      
  16237         <mappings>
  16238                                                                                
  16239          <mapping>
  16240                                                                                          
  16241           <property>
  16242            localTitle
  16243           </property >
  16244                                                                                          
  16245           <xpath>
  16246            .
  16247           </xpath>
  16248                                                                                          
  16249           <ifNotNull >
  16250                                                                                                   
  16251            <action 
  16252             action="se tValue" 
  16253             relative=" cda:observ ation/cda: code/cda:o riginalTex t"
  16254            />
  16255                                                                                           
  16256           </ifNotNul l>
  16257                                                                                 
  16258          </mapping>
  16259                                                              
  16260         </mappings >
  16261                                            
  16262        </mapping>
  16263                                           
  16264                                           
  16265                                           
  16266        <mapping 
  16267         equalsProp erty="type
  16268         equalsValu e="EM"
  16269        >
  16270                                                    
  16271         <property>
  16272          documents
  16273         </property >
  16274                                                    
  16275         <xpath>
  16276          cda:organi zer/cda:co mponent
  16277         </xpath>
  16278                                                    
  16279         <ifNotNull >
  16280                                                              
  16281          <action 
  16282           action="se tAttribute
  16283           relative=" cda:observ ation/cda: value"
  16284                                                                       
  16285           attribute= "xsi:type"
  16286          >
  16287           ED
  16288          </action>
  16289                                                              
  16290          <action 
  16291           action="se tAttribute
  16292           relative=" cda:observ ation/cda: value/cda: reference"
  16293                                                                       
  16294           attribute= "value" 
  16295           indexed="t rue"
  16296          >
  16297           #electronm icroscopyR eport
  16298          </action>
  16299                                                              
  16300          <action 
  16301           action="se tAttribute
  16302           relative=" cda:observ ation/cda: text/cda:r eference"
  16303                                                                       
  16304           attribute= "value" 
  16305           indexed="t rue"
  16306          >
  16307           #electronm icroscopyR eport
  16308          </action>        
  16309                                                              
  16310          <action 
  16311           action="se tAttribute
  16312           relative=" cda:observ ation/cda: effectiveT ime"
  16313                                                                       
  16314           attribute= "nullFlavo r"
  16315          >
  16316           UNK
  16317          </action>
  16318                                                              
  16319          <action 
  16320           action="se tAttribute
  16321           relative=" cda:observ ation/cda: id"
  16322                                                                       
  16323           attribute= "nullFlavo r"
  16324          >
  16325           UNK
  16326          </action>
  16327                                                                       
  16328                                                              
  16329          <action 
  16330           action="ev aluateMapp ings" 
  16331          />      
  16332                                                     
  16333         </ifNotNul l>
  16334                                                    
  16335         <ifNull>
  16336                                                              
  16337          <action 
  16338           action="re move" 
  16339           relative=" cda:observ ation/cda: text/cda:r eference" 
  16340          />
  16341                                                     
  16342         </ifNull>                                           
  16343                                                                      
  16344         <mappings>
  16345                                                                                
  16346          <mapping>
  16347                                                                                          
  16348           <property>
  16349            localTitle
  16350           </property >
  16351                                                                                          
  16352           <xpath>
  16353            .
  16354           </xpath>
  16355                                                                                          
  16356           <ifNotNull >
  16357                                                                                                   
  16358            <action 
  16359             action="se tValue" 
  16360             relative=" cda:observ ation/cda: code/cda:o riginalTex t"
  16361            />
  16362                                                                                           
  16363           </ifNotNul l>
  16364                                                                                 
  16365          </mapping>
  16366                                                              
  16367         </mappings >
  16368                                            
  16369        </mapping>
  16370                                           
  16371        <!--
  16372                                           <mapping >
  16373                                                    <property> documents< /property>
  16374                                                    <xpath>cda :organizer /cda:compo nent</xpat h>
  16375                                                    <ifNotNull >
  16376                                                            <a ction acti on="setAtt ribute" re lative="cd a:observat ion/cda:va lue"
  16377                                                                     attr ibute="xsi :type">ED< /action>
  16378                                                            <a ction acti on="setAtt ribute" re lative="cd a:observat ion/cda:va lue/cda:re ference"
  16379                                                                     attr ibute="val ue" indexe d="true"># lndComment </action>
  16380                                                            <a ction acti on="setAtt ribute" re lative="cd a:observat ion/cda:te xt/cda:ref erence"
  16381                                                                     attr ibute="val ue" indexe d="true"># lndComment </action>    
  16382                                                            <a ction acti on="setAtt ribute" re lative="cd a:observat ion/cda:ef fectiveTim e"
  16383                                                                     attr ibute="nul lFlavor">U NK</action >
  16384                                                            <a ction acti on="setAtt ribute" re lative="cd a:observat ion/cda:id "
  16385                                                                     attr ibute="nul lFlavor">U NK</action >
  16386                                                            <a ction acti on="setAtt ribute" re lative="cd a:observat ion/cda:co de"
  16387                                                                     attr ibute="nul lFlavor">U NK</action >                                                          
  16388                                                            <a ction acti on="evalua teMappings " />    
  16389                                                    </ifNotNul l>
  16390                                                    <ifNull>
  16391                                                            <a ction acti on="remove " relative ="cda:obse rvation/cd a:text/cda :reference " />
  16392                                                    </ifNull>                                           
  16393                                                                     <map pings>
  16394                                                                              <mappi ng>
  16395                                                                                       <propert y>localTit le</proper ty>
  16396                                                                                       <xpath>. </xpath>
  16397                                                                                       <ifNotNu ll>
  16398                                                                                                <action ac tion="setV alue" rela tive="cda: observatio n/cda:code /cda:origi nalText"/>
  16399                                                                                       </ifNotN ull>
  16400                                                                              </mapp ing>
  16401                                                            </ mappings>
  16402                                           </mappin g>      -- >
  16403                                           
  16404        <mapping>
  16405                                                    
  16406         <property>
  16407          documents
  16408         </property >
  16409                                                    
  16410         <xpath>
  16411          cda:organi zer/cda:co mponent
  16412         </xpath>
  16413                                                    
  16414         <ifNotNull  />
  16415                                                    
  16416         <ifNull>
  16417                                                              
  16418          <action 
  16419           action="re move" 
  16420           relative=" cda:observ ation/cda: text/cda:r eference" 
  16421          />
  16422                                                     
  16423         </ifNull>                                           
  16424                                            
  16425        </mapping>
  16426                                           
  16427                                           
  16428        <mapping>
  16429                                                    
  16430         <property>
  16431          category|d ocumentCla ss|type
  16432         </property >
  16433                                                    
  16434         <xpath>
  16435          cda:organi zer/cda:co de/cda:tra nslation
  16436         </xpath>
  16437                                                    
  16438         <ifNotNull  />
  16439                                                    
  16440         <ifNull>
  16441                                                              
  16442          <action 
  16443           action="re move" 
  16444          />
  16445                                                     
  16446         </ifNull>
  16447                                            
  16448        </mapping>
  16449                                           
  16450        <mapping>
  16451                                                    
  16452         <property>
  16453          collected| referenceD ateTime
  16454         </property >
  16455                                                    
  16456         <xpath>
  16457          cda:organi zer/cda:ef fectiveTim e/cda:low
  16458         </xpath>
  16459                                                    
  16460         <ifNotNull >
  16461                                                              
  16462          <action 
  16463           action="se tAttribute
  16464           attribute= "value" 
  16465          />
  16466                                                     
  16467         </ifNotNul l>
  16468                                            
  16469        </mapping>
  16470                                           
  16471        <mapping>
  16472                                                    
  16473         <property 
  16474          optional=" true"
  16475         >
  16476          facility
  16477         </property >
  16478                                                    
  16479         <xpath>
  16480          cda:organi zer/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n
  16481                                                     
  16482         </xpath>
  16483                                                    
  16484         <ifNotNull >
  16485                                                              
  16486          <action 
  16487           action="se tAttribute
  16488           relative=" cda:id" 
  16489           attribute= "extension "
  16490                                                                       
  16491           property=" facility.c ode" 
  16492          />
  16493                                                              
  16494          <action 
  16495           action="se tValue" 
  16496           relative=" cda:name" 
  16497           property=" facility.n ame" 
  16498          />
  16499                                                     
  16500         </ifNotNul l>
  16501                                            
  16502        </mapping>
  16503                                           
  16504        <mapping>
  16505                                                    
  16506         <property 
  16507          optional=" true"
  16508         >
  16509          provider.n ame
  16510         </property >
  16511                                                    
  16512         <xpath>
  16513          cda:organi zer/cda:co mponent/cd a:observat ion/cda:au thor/cda:a ssignedAut hor/cda:as signedPers on/cda:nam e
  16514         </xpath>
  16515                                                    
  16516         <ifNotNull >
  16517                                                              
  16518          <action 
  16519           action="se tValue" 
  16520          />
  16521                                                     
  16522         </ifNotNul l>
  16523                                            
  16524        </mapping>
  16525                                           
  16526        <mapping>
  16527                                                    
  16528         <property 
  16529          optional=" true"
  16530         >
  16531          signingCli nician
  16532         </property >
  16533                                                    
  16534         <xpath>
  16535          cda:organi zer/cda:co mponent/cd a:observat ion/cda:au thor/cda:a ssignedAut hor/cda:as signedPers on/cda:nam e
  16536         </xpath>
  16537                                                    
  16538         <ifNotNull >
  16539                                                              
  16540          <action 
  16541           action="se tValue" 
  16542           property=" signingCli nician.nam e" 
  16543          />
  16544                                                     
  16545         </ifNotNul l>
  16546                                            
  16547        </mapping>
  16548                                           
  16549        <mapping 
  16550         equalsProp erty="prov ider.name"
  16551        >
  16552                                                    
  16553         <property 
  16554          optional=" true"
  16555         >
  16556          signingCli nician
  16557         </property >
  16558                                                    
  16559         <xpath>
  16560          cda:organi zer/cda:co mponent/cd a:observat ion/cda:au thor
  16561         </xpath>
  16562                                                    
  16563         <ifNotNull  />
  16564                                                    
  16565         <ifNull>
  16566                                                              
  16567          <action 
  16568           action="re move" 
  16569          />
  16570                                                     
  16571         </ifNull>
  16572                                            
  16573        </mapping>
  16574       
  16575                                           
  16576        <mapping>
  16577                                                    
  16578         <property 
  16579          optional=" true"
  16580         >
  16581          content
  16582         </property >
  16583                                                    
  16584         <xpath>
  16585          cda:organi zer/cda:co mponent/cd a:observat ion/cda:va lue
  16586         </xpath>
  16587                                                    
  16588         <ifNotNull >
  16589                                                              
  16590          <action 
  16591           action="se tAttribute
  16592           attribute= "xsi:type"
  16593          >
  16594           ED
  16595          </action>
  16596                                                              
  16597          <action 
  16598           action="se tAttribute
  16599           relative=" cda:refere nce"
  16600                                                                       
  16601           attribute= "value" 
  16602           indexed="t rue"
  16603          >
  16604           #lndCommen t
  16605          </action>
  16606                                                              
  16607          <action 
  16608           action="re move" 
  16609           relative=" ../cda:int erpretatio nCode" 
  16610          />
  16611                                                              
  16612          <action 
  16613           action="re move" 
  16614           relative=" ../cda:ref erenceRang e" 
  16615          />
  16616                                                              
  16617          <action 
  16618           action="se tAttribute
  16619           relative=" ../cda:cod e"
  16620                                                                       
  16621           attribute= "nullFlavo r"
  16622          >
  16623           UNK
  16624          </action>                                                                                                                  
  16625                                                     
  16626         </ifNotNul l>
  16627                                            
  16628        </mapping>
  16629                                           
  16630        <mapping>
  16631                                                    
  16632         <property>
  16633          referenceD ateTime|co llected
  16634         </property >
  16635                                                    
  16636         <xpath>
  16637          cda:organi zer/cda:co mponent/cd a:observat ion/cda:ef fectiveTim e
  16638                                                     
  16639         </xpath>
  16640                                                    
  16641         <ifNotNull >
  16642                                                              
  16643          <action 
  16644           action="se tAttribute
  16645           attribute= "value" 
  16646          />
  16647                                                     
  16648         </ifNotNul l>
  16649                                            
  16650        </mapping>
  16651                                           
  16652        <mapping>
  16653                                                    
  16654         <property>
  16655          referenceD ateTime
  16656         </property >
  16657                                                    
  16658         <xpath>
  16659          cda:organi zer/cda:co mponent/cd a:observat ion/cda:id  
  16660         </xpath>
  16661                                                    
  16662         <ifNotNull >
  16663                                                              
  16664          <action 
  16665           action="se tAttribute
  16666           attribute= "nullFlavo r"
  16667          >
  16668           UNK
  16669          </action>
  16670                                                     
  16671         </ifNotNul l>
  16672                                            
  16673        </mapping>
  16674                                           
  16675        <mapping>
  16676                                                    
  16677         <property>
  16678          localTitle
  16679         </property >
  16680                                                    
  16681         <xpath>
  16682          cda:organi zer/cda:co mponent/cd a:observat ion/cda:co de/cda:ori ginalText
  16683                                                     
  16684         </xpath>
  16685                                                    
  16686         <ifNotNull >
  16687                                                              
  16688          <action 
  16689           action="se tValue" 
  16690          />
  16691                                                     
  16692         </ifNotNul l>
  16693                                            
  16694        </mapping>
  16695                                           
  16696        <mapping 
  16697         equalsProp erty="docu ments"
  16698        >
  16699                                                    
  16700         <property 
  16701          collection ="true"
  16702         >
  16703          values
  16704         </property >
  16705                                                    
  16706         <xpath>
  16707          cda:organi zer/cda:co mponent
  16708         </xpath>
  16709                                                    
  16710         <ifNotNull >
  16711                                                              
  16712          <action 
  16713           action="ev aluateMapp ings" 
  16714          />
  16715                                                     
  16716         </ifNotNul l>
  16717                                                    
  16718         <ifNull>
  16719                                                              
  16720          <action 
  16721           action="re move" 
  16722           relative=" cda:observ ation/cda: interpreta tionCode" 
  16723          />
  16724                                                              
  16725          <action 
  16726           action="re move" 
  16727           relative=" cda:observ ation/cda: entryRelat ionship" 
  16728          />
  16729                                                              
  16730          <action 
  16731           action="re move" 
  16732           relative=" cda:observ ation/cda: referenceR ange" 
  16733          />
  16734                                                              
  16735          <action 
  16736           action="se tAttribute
  16737           attribute= "nullFlavo r"
  16738                                                                       
  16739           relative=" cda:observ ation/cda: value"
  16740          >
  16741           NA
  16742          </action>
  16743                                                     
  16744                                                     
  16745         </ifNull>
  16746                                                    
  16747         <mappings>
  16748                                                              
  16749          <mapping>
  16750                                                                        
  16751           <property>
  16752            id
  16753           </property >
  16754                                                                        
  16755           <xpath>
  16756            cda:observ ation/cda: id
  16757           </xpath>
  16758                                                                        
  16759           <ifNotNull >
  16760                                                                                  
  16761            <action 
  16762             action="se tAttribute
  16763             attribute= "extension
  16764            />
  16765                                                                         
  16766           </ifNotNul l>
  16767                                                               
  16768          </mapping>
  16769                                                              
  16770          <!-- If lo incDepreca ted is nul l - that m eans we ha ve a valid  loinc cod
  16771                                                                       so p opulate ac cordingly  using the  loinc code  -->
  16772                                                              
  16773          <mapping 
  16774           equalsProp erty="loin cDeprecate d"
  16775          >
  16776                                                                        
  16777           <property>
  16778            loinc
  16779           </property >
  16780                                                                        
  16781           <xpath>
  16782            cda:observ ation/cda: code
  16783           </xpath>
  16784                                                                        
  16785           <ifNotNull >
  16786                                                                                  
  16787            <action 
  16788             action="se tAttribute
  16789             property=" loinc" 
  16790             attribute= "code" 
  16791            />
  16792                                                                                  
  16793            <action 
  16794             action="se tAttribute
  16795             attribute= "displayNa me"
  16796                                                                                           
  16797             property=" loincDispl ay" 
  16798            />
  16799                                                                                  
  16800            <action 
  16801             action="se tValue" 
  16802             relative=" cda:origin alText"
  16803                                                                                           
  16804             property=" test" 
  16805            />
  16806                                                                         
  16807           </ifNotNul l>
  16808                                                                        
  16809           <ifNull>
  16810                                                                                  
  16811            <action 
  16812             action="se tAttribute
  16813             attribute= "nullFlavo r"
  16814            >
  16815             UNK
  16816            </action>
  16817                                                                                  
  16818            <action 
  16819             action="se tValue" 
  16820             relative=" cda:origin alText"
  16821                                                                                           
  16822             property=" test" 
  16823            />
  16824                                                                         
  16825           </ifNull>
  16826                                                               
  16827          </mapping>
  16828                                                              
  16829          <mapping 
  16830           notEqualsP roperty="l oincDeprec ated"
  16831          >
  16832                                                                        
  16833           <property>
  16834            test
  16835           </property >
  16836                                                                        
  16837           <xpath>
  16838            cda:observ ation/cda: code
  16839           </xpath>
  16840                                                                        
  16841           <ifNotNull >
  16842                                                                                  
  16843            <action 
  16844             action="se tAttribute
  16845             attribute= "nullFlavo r"
  16846            >
  16847             UNK
  16848            </action>
  16849                                                                                  
  16850            <action 
  16851             action="se tValue" 
  16852             relative=" cda:origin alText"
  16853                                                                                           
  16854             property=" test" 
  16855            />
  16856                                                                         
  16857           </ifNotNul l>
  16858                                                               
  16859          </mapping>                                                   
  16860                                                              
  16861          <!-- Need  to set thi s from con tainer -->
  16862                                                              
  16863          <mapping>
  16864                                                                        
  16865           <property>
  16866            collected
  16867           </property >
  16868                                                                        
  16869           <xpath>
  16870            cda:observ ation/cda: effectiveT ime
  16871           </xpath>
  16872                                                                        
  16873           <ifNotNull >
  16874                                                                                  
  16875            <action 
  16876             action="se tAttribute
  16877             attribute= "value" 
  16878            />
  16879                                                                         
  16880           </ifNotNul l>
  16881                                                               
  16882          </mapping>
  16883                                                              
  16884          <mapping 
  16885           equalsProp erty="hl7D ataType" 
  16886           equalsValu e="PQ"
  16887          >
  16888                                                                        
  16889           <property>
  16890            result
  16891           </property >
  16892                                                                        
  16893           <xpath>
  16894            cda:observ ation/cda: value
  16895           </xpath>
  16896                                                                        
  16897           <ifNotNull >
  16898                                                                                  
  16899            <action 
  16900             action="se tAttribute
  16901             attribute= "value" 
  16902            />
  16903                                                                                  
  16904            <action 
  16905             action="se tAttribute
  16906             attribute= "unit" 
  16907             property=" units" 
  16908            />
  16909                                                                                  
  16910            <action 
  16911             action="se tAttribute
  16912             attribute= "xsi:type"
  16913                                                                                           
  16914             property=" hl7DataTyp e" 
  16915            />
  16916                                                                                  
  16917            <action 
  16918             action="re move" 
  16919             relative=" cda:refere nce" 
  16920            />
  16921                                                                         
  16922           </ifNotNul l>
  16923                                                               
  16924          </mapping>
  16925                                                              
  16926          <mapping 
  16927           equalsProp erty="hl7D ataType" 
  16928           equalsValu e="ST"
  16929          >
  16930                                                                        
  16931           <property>
  16932            result
  16933           </property >
  16934                                                                        
  16935           <xpath>
  16936            cda:observ ation/cda: value
  16937           </xpath>
  16938                                                                        
  16939           <ifNotNull >
  16940                                                                                  
  16941            <action 
  16942             action="se tValue" 
  16943            />
  16944                                                                                  
  16945            <action 
  16946             action="ap pendValue"
  16947            >
  16948              
  16949            </action>
  16950                                                                                  
  16951            <action 
  16952             action="ap pendValue"  
  16953             property=" units" 
  16954            />
  16955                                                                                  
  16956            <action 
  16957             action="se tAttribute
  16958             attribute= "xsi:type"
  16959                                                                                           
  16960             property=" hl7DataTyp e" 
  16961            />
  16962                                                                                  
  16963            <action 
  16964             action="se tAttribute
  16965             attribute= "represent ation"
  16966            >
  16967             TXT
  16968            </action>                                                                              
  16969                                                                                  
  16970            <action 
  16971             action="re move" 
  16972             relative=" cda:refere nce" 
  16973            />
  16974                                                                         
  16975           </ifNotNul l>
  16976                                                               
  16977          </mapping>
  16978                                                              
  16979          <mapping>
  16980                                                                        
  16981           <property>
  16982            interpreta tion
  16983           </property >
  16984                                                                        
  16985           <xpath>
  16986            cda:observ ation/cda: interpreta tionCode
  16987           </xpath>
  16988                                                                        
  16989           <ifNotNull >
  16990                                                                                  
  16991            <action 
  16992             action="se tValue" 
  16993             relative=" cda:origin alText" 
  16994            />
  16995                                                                         
  16996           </ifNotNul l>
  16997                                                                        
  16998           <ifNull>
  16999                                                                                  
  17000            <action 
  17001             action="re move" 
  17002            />
  17003                                                                         
  17004           </ifNull>
  17005                                                               
  17006          </mapping>
  17007                                                              
  17008          <mapping>
  17009                                                                        
  17010           <property 
  17011            optional=" true"
  17012           >
  17013            methodCode
  17014           </property >
  17015                                                                        
  17016           <xpath>
  17017            cda:observ ation/cda: methodCode
  17018           </xpath>
  17019                                                                        
  17020           <ifNotNull >
  17021                                                                                  
  17022            <action 
  17023             action="se tAttribute
  17024             attribute= "code" 
  17025            />
  17026                                                                                  
  17027            <action 
  17028             action="se tAttribute
  17029             attribute= "displayNa me"
  17030                                                                                           
  17031             property=" methodCode Display" 
  17032            />
  17033                                                                         
  17034           </ifNotNul l>
  17035                                                                        
  17036           <ifNull>
  17037                                                                                  
  17038            <action 
  17039             action="re move" 
  17040            />
  17041                                                                         
  17042           </ifNull>
  17043                                                               
  17044          </mapping>
  17045                                                              
  17046          <mapping>
  17047                                                                        
  17048           <property 
  17049            optional=" true"
  17050           >
  17051            targetSite Code
  17052           </property >
  17053                                                                        
  17054           <xpath>
  17055            cda:compon ent/cda:ob servation/ cda:target SiteCode
  17056           </xpath>
  17057                                                                        
  17058           <ifNotNull >
  17059                                                                                  
  17060            <action 
  17061             action="se tAttribute
  17062             attribute= "code" 
  17063            />
  17064                                                                                  
  17065            <action 
  17066             action="se tAttribute
  17067             attribute= "displayNa me"
  17068                                                                                           
  17069             property=" targetSite CodeDispla y" 
  17070            />
  17071                                                                         
  17072           </ifNotNul l>
  17073                                                                        
  17074           <ifNull>
  17075                                                                                  
  17076            <action 
  17077             action="re move" 
  17078            />
  17079                                                                         
  17080           </ifNull>
  17081                                                               
  17082          </mapping>
  17083                                                              
  17084          <mapping>
  17085                                                                        
  17086           <property>
  17087            range
  17088           </property >
  17089                                                                        
  17090           <xpath>
  17091            cda:observ ation/cda: referenceR ange/cda:o bservation Range/cda: text
  17092                                                                         
  17093           </xpath>
  17094                                                                        
  17095           <ifNotNull >
  17096                                                                                  
  17097            <action 
  17098             action="se tValue" 
  17099            />
  17100                                                                         
  17101           </ifNotNul l>
  17102                                                               
  17103          </mapping>
  17104                                                              
  17105          <mapping>
  17106                                                                        
  17107           <property>
  17108            comment
  17109           </property >
  17110                                                                        
  17111           <xpath>
  17112            cda:observ ation/cda: entryRelat ionship/cd a:act/cda: text
  17113                                                                         
  17114           </xpath>
  17115                                                                        
  17116           <ifNotNull >
  17117                                                                                  
  17118            <action 
  17119             action="se tAttribute
  17120             relative=" cda:refere nce"
  17121                                                                                           
  17122             attribute= "value" 
  17123             indexed="t rue"
  17124            >
  17125             #lndCommen t
  17126            </action>
  17127                                                                         
  17128           </ifNotNul l>
  17129                                                                        
  17130           <ifNull>
  17131                                                                                  
  17132            <action 
  17133             action="se tAttribute
  17134             relative=" cda:refere nce"
  17135                                                                                           
  17136             attribute= "value" 
  17137             indexed="t rue"
  17138            >
  17139             #lndCommen t
  17140            </action>
  17141                                                                         
  17142           </ifNull>
  17143                                                               
  17144          </mapping>
  17145                                                     
  17146         </mappings >
  17147                                            
  17148        </mapping>
  17149                                           
  17150                                           
  17151        <mapping 
  17152         equalsProp erty="type
  17153         equalsValu e="CY"
  17154        >
  17155                                                    
  17156         <property>
  17157          documents
  17158         </property >
  17159                                                    
  17160         <xpath>
  17161          cda:organi zer/cda:co mponent
  17162         </xpath>
  17163                                                    
  17164         <ifNotNull >
  17165                                                              
  17166          <action 
  17167           action="se tAttribute
  17168           relative=" cda:observ ation/cda: value"
  17169                                                                       
  17170           attribute= "xsi:type"
  17171          >
  17172           ED
  17173          </action>
  17174                                                              
  17175          <action 
  17176           action="se tAttribute
  17177           relative=" cda:observ ation/cda: value/cda: reference"
  17178                                                                       
  17179           attribute= "value" 
  17180           indexed="t rue"
  17181          >
  17182           #cytologyR eport
  17183          </action>
  17184                                                              
  17185          <action 
  17186           action="se tAttribute
  17187           relative=" cda:observ ation/cda: effectiveT ime"
  17188                                                                       
  17189           attribute= "nullFlavo r"
  17190          >
  17191           UNK
  17192          </action>
  17193                                                     
  17194         </ifNotNul l>
  17195                                            
  17196        </mapping>
  17197       
  17198                                           
  17199                                           
  17200        <!-- <mapp ing  >
  17201                                                    <property> values,doc uments</pr operty>
  17202                                                    <xpath>cda :organizer /cda:compo nent</xpat h>
  17203                                                    <ifNotNull >
  17204                                                     
  17205                                                    </ifNotNul l>
  17206                                                    <ifNull>
  17207                                                             < action act ion="remov e" relativ e="cda:obs ervation/c da:value/c da:referen ce"></acti on>
  17208                                                    </ifNull>
  17209                                           </mappin g> -->
  17210                                           
  17211                                  
  17212       </mappings >
  17213                        
  17214      </mapping>
  17215                       
  17216      <!-- IMMUN IZATION NA RRITIVE -- >
  17217                       
  17218      <mapping>
  17219                                 
  17220       <property 
  17221        collection ="true" 
  17222        optional=" true"
  17223       >
  17224        immunizati ons
  17225       </property >
  17226                                 
  17227       <xpath>
  17228        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.2.1']
  17229       </xpath>
  17230                                 
  17231       <ifNotNull >
  17232                                           
  17233        <action 
  17234         action="ev aluateMapp ings"
  17235                                                   
  17236         relative=" cda:sectio n/cda:text /cda:table [@ID='immu nizationNa rrative']/ cda:tbody/ cda:tr" 
  17237        />
  17238                                  
  17239       </ifNotNul l>
  17240                                 
  17241       <mappings>
  17242                                           
  17243        <mapping>
  17244                                                    
  17245         <property>
  17246          name
  17247         </property >
  17248                                                    
  17249         <xpath>
  17250          cda:td/cda :content[@ ID='indImm unization' ]
  17251         </xpath>
  17252                                                    
  17253         <ifNotNull >
  17254                                                              
  17255          <action 
  17256           action="se tAttribute
  17257           attribute= "ID" 
  17258           indexed="t rue"
  17259          >
  17260           indImmuniz ation
  17261          </action>
  17262                                                              
  17263          <action 
  17264           action="se tValue" 
  17265          />
  17266                                                     
  17267         </ifNotNul l>
  17268                                                    
  17269         <ifNull>
  17270                                                              
  17271          <action 
  17272           action="se tAttribute
  17273           attribute= "ID" 
  17274           indexed="t rue"
  17275          >
  17276           indImmuniz ation
  17277          </action>
  17278                                                     
  17279         </ifNull>
  17280                                            
  17281        </mapping>
  17282                                           
  17283        <mapping>
  17284                                                    
  17285         <property 
  17286          optional=" true"
  17287         >
  17288          seriesNumb er
  17289         </property >
  17290                                                    
  17291         <xpath>
  17292          cda:td/cda :content[@ ID='indSer ies']
  17293         </xpath>
  17294                                                    
  17295         <ifNotNull >
  17296                                                              
  17297          <action 
  17298           action="se tAttribute
  17299           attribute= "ID" 
  17300           indexed="t rue"
  17301          >
  17302           indSeries
  17303          </action>
  17304                                                              
  17305          <action 
  17306           action="se tValue" 
  17307          />
  17308                                                     
  17309         </ifNotNul l>
  17310                                                    
  17311         <ifNull>
  17312                                                              
  17313          <action 
  17314           action="se tAttribute
  17315           attribute= "ID" 
  17316           indexed="t rue"
  17317          >
  17318           indSeries
  17319          </action>
  17320                                                     
  17321         </ifNull>
  17322                                            
  17323        </mapping>
  17324                                           
  17325        <mapping>
  17326                                                    
  17327         <property>
  17328          prettyAdmi nDate
  17329         </property >
  17330                                                    
  17331         <xpath>
  17332          cda:td[3]
  17333         </xpath>
  17334                                                    
  17335         <ifNotNull >
  17336                                                              
  17337          <action 
  17338           action="se tValue" 
  17339          />
  17340                                                     
  17341         </ifNotNul l>
  17342                                            
  17343        </mapping>
  17344                                           
  17345        <mapping>
  17346                                                    
  17347         <property 
  17348          optional=" true"
  17349         >
  17350          reaction
  17351         </property >
  17352                                                    
  17353         <xpath>
  17354          cda:td/cda :content[@ ID='indRea ction']
  17355         </xpath>
  17356                                                    
  17357         <ifNotNull >
  17358                                                              
  17359          <action 
  17360           action="se tAttribute
  17361           attribute= "ID" 
  17362           indexed="t rue"
  17363          >
  17364           indReactio n
  17365          </action>
  17366                                                              
  17367          <action 
  17368           action="se tValue" 
  17369          />
  17370                                                     
  17371         </ifNotNul l>
  17372                                                    
  17373         <ifNull>
  17374                                                              
  17375          <action 
  17376           action="se tAttribute
  17377           attribute= "ID" 
  17378           indexed="t rue"
  17379          >
  17380           indReactio n
  17381          </action>
  17382                                                     
  17383         </ifNull>
  17384                                            
  17385        </mapping>
  17386                                           
  17387        <mapping>
  17388                                                    
  17389         <property 
  17390          optional=" true"
  17391         >
  17392          comments
  17393         </property >
  17394                                                    
  17395         <xpath>
  17396          cda:td/cda :content[@ ID='indCom ments']
  17397         </xpath>
  17398                                                    
  17399         <ifNotNull >
  17400                                                              
  17401          <action 
  17402           action="se tAttribute
  17403           attribute= "ID" 
  17404           indexed="t rue"
  17405          >
  17406           indComment s
  17407          </action>
  17408                                                              
  17409          <action 
  17410           action="se tValue" 
  17411          />
  17412                                                     
  17413         </ifNotNul l>
  17414                                                    
  17415         <ifNull>
  17416                                                              
  17417          <action 
  17418           action="se tAttribute
  17419           attribute= "ID" 
  17420           indexed="t rue"
  17421          >
  17422           indComment s
  17423          </action>
  17424                                                     
  17425         </ifNull>
  17426                                            
  17427        </mapping>
  17428                                  
  17429       </mappings >
  17430                        
  17431      </mapping>
  17432                       
  17433      <!-- IMMUN IZATION CO DED SECTIO N -->
  17434                       
  17435      <mapping>
  17436                                 
  17437       <property 
  17438        collection ="true"
  17439       >
  17440        immunizati ons
  17441       </property >
  17442                                 
  17443       <xpath>
  17444        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.2.1']
  17445       </xpath>
  17446                                 
  17447       <ifNotNull >
  17448                                           
  17449        <action 
  17450         action="ev aluateMapp ings" 
  17451         relative=" cda:sectio n/cda:entr y[@typeCod e='DRIV']"  
  17452        />
  17453                                  
  17454       </ifNotNul l>
  17455                                 
  17456       <ifNull>
  17457                                           
  17458        <!-- <acti on action= "remove">N I</action>  -->
  17459                                           
  17460        <!--  Set  IMMUNIZATI ON Section  to NI so  the docume nt passes  the MU2 on line certi fication;  TPS -->
  17461                                                     
  17462                                           
  17463        <action 
  17464         action="re move" 
  17465         relative=" cda:sectio n/cda:entr y"
  17466        >
  17467         NI
  17468        </action>
  17469                                           
  17470        <action 
  17471         action="se tValue" 
  17472         relative=" cda:sectio n/cda:text "
  17473        >
  17474         No Data Pr ovided for  This Sect ion
  17475        </action>
  17476                                           
  17477        <action 
  17478         action="se tAttribute
  17479         relative=" cda:sectio n" 
  17480         attribute= "nullFlavo r"
  17481        >
  17482         NI
  17483        </action>
  17484                                  
  17485       </ifNull>
  17486                                 
  17487       <mappings>
  17488                                           
  17489        <mapping>
  17490                                                    
  17491         <property>
  17492          adminDate
  17493         </property >
  17494                                                    
  17495         <xpath>
  17496          cda:substa nceAdminis tration/cd a:effectiv eTime
  17497         </xpath>
  17498                                                    
  17499         <ifNotNull >
  17500                                                              
  17501          <action 
  17502           action="se tAttribute
  17503           attribute= "value" 
  17504          />
  17505                                                     
  17506         </ifNotNul l>
  17507                                            
  17508        </mapping>
  17509                                           
  17510        <mapping>
  17511                                                    
  17512         <property>
  17513          name
  17514         </property >
  17515                                                    
  17516         <xpath>
  17517          cda:substa nceAdminis tration/cd a:consumab le/cda:man ufacturedP roduct/cda :manufactu redMateria l/cda:code /cda:origi nalText/cd a:referenc e
  17518         </xpath>
  17519                                                    
  17520         <ifNotNull >
  17521                                                              
  17522          <action 
  17523           action="se tAttribute
  17524           attribute= "value" 
  17525           indexed="t rue"
  17526          >
  17527           #indImmuni zation
  17528          </action>
  17529                                                     
  17530         </ifNotNul l>
  17531                                                    
  17532         <ifNull>
  17533                                                              
  17534          <action 
  17535           action="se tAttribute
  17536           attribute= "value" 
  17537           indexed="t rue"
  17538          >
  17539           #indImmuni zation
  17540          </action>
  17541                                                     
  17542         </ifNull>
  17543                                            
  17544        </mapping>
  17545                                           
  17546        <mapping>
  17547                                                    
  17548         <property>
  17549          comments
  17550         </property >
  17551                                                    
  17552         <xpath>
  17553          cda:substa nceAdminis tration/cd a:text/cda :reference
  17554         </xpath>
  17555                                                    
  17556         <ifNotNull >
  17557                                                              
  17558          <action 
  17559           action="se tAttribute
  17560           attribute= "value" 
  17561           indexed="t rue"
  17562          >
  17563           #indCommen ts
  17564          </action>
  17565                                                     
  17566         </ifNotNul l>
  17567                                                    
  17568         <ifNull>
  17569                                                              
  17570          <action 
  17571           action="se tAttribute
  17572           attribute= "value" 
  17573           indexed="t rue"
  17574          >
  17575           #indCommen ts
  17576          </action>
  17577                                                     
  17578         </ifNull>
  17579                                            
  17580        </mapping>
  17581                                           
  17582        <mapping>
  17583                                                    
  17584         <property>
  17585          seriesNumb er
  17586         </property >
  17587                                                    
  17588         <xpath>
  17589          cda:substa nceAdminis tration/cd a:repeatNu mber
  17590         </xpath>
  17591                                                    
  17592         <ifNotNull >
  17593                                                              
  17594          <action 
  17595           action="se tAttribute
  17596           attribute= "value" 
  17597          />
  17598                                                     
  17599         </ifNotNul l>
  17600                                                    
  17601         <ifNull>
  17602                                                              
  17603          <action 
  17604           action="se tAttribute
  17605           attribute= "nullFlavo r"
  17606          >
  17607           UNK
  17608          </action>
  17609                                                     
  17610         </ifNull>
  17611                                            
  17612        </mapping>
  17613                                           
  17614        <mapping>
  17615                                                    
  17616         <property 
  17617          optional=" true"
  17618         >
  17619          reaction
  17620         </property >
  17621                                                    
  17622         <xpath>
  17623          cda:substa nceAdminis tration/cd a:entryRel ationship/ cda:observ ation[cda: templateId /@root='2. 16.840.1.1 13883.10.2 0.22.4.9'] /cda:text
  17624               
  17625         </xpath>
  17626                                                    
  17627         <ifNotNull >
  17628                                                              
  17629          <action 
  17630           action="se tValue" 
  17631          />
  17632                                                     
  17633         </ifNotNul l>
  17634                                                    
  17635         <ifNull>
  17636                                                              
  17637          <action 
  17638           action="re move" 
  17639           relative=" ../.." 
  17640          />
  17641                                                     
  17642         </ifNull>
  17643                                            
  17644        </mapping>
  17645                                           
  17646        <mapping>
  17647                                                    
  17648         <property>
  17649          providerID
  17650         </property >
  17651                                                    
  17652         <xpath>
  17653          cda:substa nceAdminis tration/cd a:performe r/cda:assi gnedEntity /cda:id
  17654         </xpath>
  17655                                                    
  17656         <ifNotNull >
  17657                                                              
  17658          <action 
  17659           action="se tAttribute
  17660           attribute= "extension
  17661          />
  17662                                                     
  17663         </ifNotNul l>
  17664                                            
  17665        </mapping>
  17666                                           
  17667        <mapping>
  17668                                                    
  17669         <property>
  17670          providerNa me
  17671         </property >
  17672                                                    
  17673         <xpath>
  17674          cda:substa nceAdminis tration/cd a:performe r/cda:assi gnedEntity /cda:assig nedPerson/ cda:name
  17675         </xpath>
  17676                                                    
  17677         <ifNotNull >
  17678                                                              
  17679          <action 
  17680           action="se tValue" 
  17681          />
  17682                                                     
  17683         </ifNotNul l>
  17684                                            
  17685        </mapping>
  17686                                           
  17687        <mapping>
  17688                                                    
  17689         <property>
  17690          cvxCode
  17691         </property >
  17692                                                    
  17693         <xpath>
  17694          cda:substa nceAdminis tration/cd a:consumab le/cda:man ufacturedP roduct/cda :manufactu redMateria l/cda:code
  17695         </xpath>
  17696                                                    
  17697         <ifNotNull >
  17698                                                              
  17699          <action 
  17700           action="se tAttribute
  17701           attribute= "code" 
  17702          />
  17703                                                     
  17704         </ifNotNul l>
  17705                                                    
  17706         <ifNull>
  17707                                                     
  17708          <action 
  17709           action="re moveAttrib utes"
  17710          >
  17711          </action>
  17712                                                     
  17713          <action 
  17714           action="se tAttribute
  17715           attribute= "nullFlavo r" 
  17716          >
  17717           UNK
  17718          </action>
  17719                                                     
  17720         </ifNull>                           
  17721                                            
  17722        </mapping>
  17723                                           
  17724                                           
  17725        <mapping>
  17726                                                    
  17727         <property>
  17728          cptCode
  17729         </property >
  17730                                                    
  17731         <xpath>
  17732          cda:substa nceAdminis tration/cd a:consumab le/cda:man ufacturedP roduct/cda :manufactu redMateria l/cda:code
  17733         </xpath>
  17734                                                    
  17735         <ifNotNull >
  17736                                                              
  17737          <action 
  17738           action="se tAttribute
  17739           attribute= "displayNa me"
  17740                                                                       
  17741           property=" cptDisplay
  17742          />
  17743                                                     
  17744         </ifNotNul l>
  17745                                            
  17746        </mapping>
  17747                                                                              
  17748                                           
  17749        <mapping>
  17750                                                    
  17751         <property>
  17752          cptCode
  17753         </property >
  17754                                                    
  17755         <xpath>
  17756          cda:substa nceAdminis tration/cd a:consumab le/cda:man ufacturedP roduct/cda :manufactu redMateria l/cda:code /cda:trans lation
  17757         </xpath>
  17758                                                    
  17759         <ifNotNull >
  17760                                                              
  17761          <action 
  17762           action="se tAttribute
  17763           attribute= "code" 
  17764          />
  17765                                                              
  17766          <action 
  17767           action="se tAttribute
  17768           attribute= "displayNa me"
  17769                                                                       
  17770           property=" cptDisplay
  17771          />
  17772                                                     
  17773         </ifNotNul l>
  17774                                                    
  17775         <ifNull>
  17776                                                              
  17777          <action 
  17778           action="re move" 
  17779          />
  17780                                                     
  17781         </ifNull>
  17782                                            
  17783        </mapping>
  17784                                           
  17785        <mapping>
  17786                                                    
  17787         <property>
  17788          facilityNu mber
  17789         </property >
  17790                                                    
  17791         <xpath>
  17792          cda:substa nceAdminis tration/cd a:author/c da:assigne dAuthor/cd a:represen tedOrganiz ation/cda: id
  17793         </xpath>
  17794                                                    
  17795         <ifNotNull >
  17796                                                              
  17797          <action 
  17798           action="se tAttribute
  17799           attribute= "extension
  17800          />
  17801                                                     
  17802         </ifNotNul l>
  17803                                            
  17804        </mapping>
  17805                                           
  17806        <mapping>
  17807                                                    
  17808         <property>
  17809          facilityNa me
  17810         </property >
  17811                                                    
  17812         <xpath>
  17813          cda:substa nceAdminis tration/cd a:author/c da:assigne dAuthor/cd a:represen tedOrganiz ation/cda: name
  17814         </xpath>
  17815                                                    
  17816         <ifNotNull >
  17817                                                              
  17818          <action 
  17819           action="se tValue" 
  17820          />
  17821                                                     
  17822         </ifNotNul l>
  17823                                            
  17824        </mapping>
  17825                                  
  17826       </mappings >
  17827                        
  17828      </mapping>
  17829                       
  17830      <!-- PROCE DURES NARR ATIVE -->
  17831                       
  17832      <mapping>
  17833                            
  17834       <property 
  17835        optional=" true"
  17836       >
  17837        surgicalPr oceduresNa rrative
  17838       </property >
  17839                            
  17840       <xpath>
  17841        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.7.1']
  17842       </xpath>
  17843                            
  17844       <ifNotNull >
  17845                                  
  17846        <action 
  17847         action="se tValue" 
  17848         relative=" cda:sectio n/cda:text /cda:parag raph" 
  17849        />
  17850                             
  17851       </ifNotNul l>
  17852                        
  17853      </mapping>
  17854                       
  17855      <mapping>
  17856                            
  17857       <property 
  17858        optional=" true"
  17859       >
  17860        clinicalPr ocedureNot esNarrativ e
  17861       </property >
  17862                            
  17863       <xpath>
  17864        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.7.1']
  17865       </xpath>
  17866                            
  17867       <ifNotNull >
  17868                                  
  17869        <action 
  17870         action="se tValue" 
  17871         relative=" cda:sectio n/cda:text /cda:table [@ID='Clin icalNotesT opHeader'] /cda:tbody /cda:tr/cd a:td" 
  17872        />
  17873                             
  17874       </ifNotNul l>
  17875                        
  17876      </mapping>
  17877                       
  17878      <mapping>
  17879                                 
  17880       <property 
  17881        collection ="true" 
  17882        optional=" true"
  17883       >
  17884        clinicalPr ocedureNot es
  17885       </property >
  17886                                 
  17887       <xpath>
  17888        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.7.1']
  17889       </xpath>
  17890                                 
  17891       <ifNotNull >
  17892                                           
  17893        <action 
  17894         action="ev aluateMapp ings"
  17895                                                   
  17896         relative=" cda:sectio n/cda:text /cda:table [@ID='Clin icalNotesN arrative'] /cda:tbody /cda:tr" 
  17897        />
  17898                                  
  17899       </ifNotNul l>
  17900                                 
  17901       <ifNull>
  17902                                           
  17903        <action 
  17904         action="re move" 
  17905         relative=" cda:sectio n/cda:text /cda:table [@ID='Clin icalNotesN arrative'] "
  17906        >
  17907        </action>
  17908                                           
  17909        <action 
  17910         action="re move" 
  17911         relative=" cda:sectio n/cda:text /cda:table [@ID='Clin icalNotesT opHeader'] "
  17912        >
  17913        </action>
  17914                                  
  17915       </ifNull>                                           
  17916                                 
  17917       <mappings>
  17918                                           
  17919        <mapping>
  17920                                                    
  17921         <property>
  17922          prettyRefe renceDateT ime
  17923         </property >
  17924                                                    
  17925         <xpath>
  17926          cda:td/cda :content[@ ID='clinic alNoteDate Time']
  17927         </xpath>
  17928                                                    
  17929         <ifNotNull >
  17930                                                              
  17931          <action 
  17932           action="se tAttribute
  17933           attribute= "ID" 
  17934           indexed="t rue"
  17935          >
  17936           prndDateTi me
  17937          </action>
  17938                                                              
  17939          <action 
  17940           action="se tValue" 
  17941          >
  17942          </action>
  17943                                                     
  17944         </ifNotNul l>
  17945                                                    
  17946         <ifNull>
  17947                                                              
  17948          <action 
  17949           action="se tAttribute
  17950           attribute= "ID" 
  17951           indexed="t rue"
  17952          >
  17953           prndDateTi me
  17954          </action>                                           
  17955                                                     
  17956         </ifNull>                                           
  17957                                            
  17958        </mapping>
  17959                                           
  17960        <mapping>
  17961                                                    
  17962         <property 
  17963          optional=" true"
  17964         >
  17965          content
  17966         </property >
  17967                                                    
  17968         <xpath>
  17969          cda:td/cda :content[@ ID='clinic alNoteEnco unterDescr iption']
  17970         </xpath>
  17971                                                    
  17972         <ifNotNull >
  17973                                                              
  17974          <action 
  17975           action="se tAttribute
  17976           attribute= "ID" 
  17977           indexed="t rue"
  17978          >
  17979           prndDescri ption
  17980          </action>
  17981                                                              
  17982          <action 
  17983           action="ap pendValue"  
  17984           property=" documentTi tle" 
  17985          />
  17986                                                              
  17987          <action 
  17988           action="ap pendValue"
  17989          >
  17990            : 
  17991          </action>
  17992                                                              
  17993          <action 
  17994           action="ap pendValue"  
  17995          />
  17996                                                     
  17997         </ifNotNul l>
  17998                                                    
  17999         <ifNull>
  18000                                                              
  18001          <action 
  18002           action="se tAttribute
  18003           attribute= "ID" 
  18004           indexed="t rue"
  18005          >
  18006           prndDescri ption
  18007          </action>
  18008                                                              
  18009          <action 
  18010           action="ap pendValue"  
  18011           property=" documentTi tle" 
  18012          />
  18013                                                              
  18014          <action 
  18015           action="ap pendValue"
  18016          >
  18017            : 
  18018          </action>
  18019                                                              
  18020          <action 
  18021           action="ap pendValue"
  18022          >
  18023           No text av ailable.
  18024          </action>                                                    
  18025                                                     
  18026         </ifNull>
  18027                                            
  18028        </mapping>
  18029                                           
  18030        <mapping>
  18031                                                    
  18032         <property 
  18033          optional=" true"
  18034         >
  18035          signingCli nician.nam e
  18036         </property >
  18037                                                    
  18038         <xpath>
  18039          cda:td/cda :content[@ ID='clinic alNoteProv ider']
  18040         </xpath>
  18041                                                    
  18042         <ifNotNull >
  18043                                                              
  18044          <action 
  18045           action="se tAttribute
  18046           attribute= "ID" 
  18047           indexed="t rue"
  18048          >
  18049           prndProvid er
  18050          </action>
  18051                                                              
  18052          <action 
  18053           action="se tValue" 
  18054          />
  18055                                                     
  18056         </ifNotNul l>
  18057                                                    
  18058         <ifNull>
  18059                                                              
  18060          <action 
  18061           action="se tAttribute
  18062           attribute= "ID" 
  18063           indexed="t rue"
  18064          >
  18065           prndProvid er
  18066          </action>
  18067                                                     
  18068         </ifNull>
  18069                                            
  18070        </mapping>
  18071                                           
  18072        <mapping>
  18073                                                    
  18074         <property>
  18075          facility.n ame
  18076         </property >
  18077                                                    
  18078         <xpath>
  18079          cda:td/cda :content[@ ID='clinic alNoteSour ce']
  18080         </xpath>
  18081                                                    
  18082         <ifNotNull >
  18083                                                              
  18084          <action 
  18085           action="se tAttribute
  18086           attribute= "ID" 
  18087           indexed="t rue"
  18088          >
  18089           prndSource
  18090          </action>
  18091                                                              
  18092          <action 
  18093           action="se tValue" 
  18094          />
  18095                                                     
  18096         </ifNotNul l>
  18097                                                    
  18098         <ifNull>
  18099                                                              
  18100          <action 
  18101           action="se tAttribute
  18102           attribute= "ID" 
  18103           indexed="t rue"
  18104          >
  18105           prndSource
  18106          </action>
  18107                                                     
  18108         </ifNull>
  18109                                            
  18110        </mapping>
  18111                                  
  18112       </mappings >
  18113                        
  18114      </mapping>
  18115                       
  18116      <!-- Start  Surgical  Notes -->
  18117                       
  18118      <mapping>
  18119                            
  18120       <property 
  18121        optional=" true"
  18122       >
  18123        surgicalPr ocedureNot esNarrativ e
  18124       </property >
  18125                            
  18126       <xpath>
  18127        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.7.1']
  18128       </xpath>
  18129                            
  18130       <ifNotNull >
  18131                                  
  18132        <action 
  18133         action="se tValue" 
  18134         relative=" cda:sectio n/cda:text /cda:table [@ID='Surg icalNotesT opHeader'] /cda:tbody /cda:tr/cd a:td" 
  18135        />
  18136                             
  18137       </ifNotNul l>
  18138                        
  18139      </mapping>
  18140                       
  18141      <mapping>
  18142                                 
  18143       <property 
  18144        collection ="true" 
  18145        optional=" true"
  18146       >
  18147        procedureD ocs
  18148       </property >
  18149                                 
  18150       <xpath>
  18151        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.7.1']
  18152       </xpath>
  18153                                 
  18154       <ifNotNull >
  18155                                           
  18156        <action 
  18157         action="ev aluateMapp ings"
  18158                                                   
  18159         relative=" cda:sectio n/cda:text /cda:table [@ID='Surg icalNotesN arrative'] /cda:tbody /cda:tr" 
  18160        />
  18161                                  
  18162       </ifNotNul l>
  18163                                 
  18164       <ifNull>
  18165                                           
  18166        <action 
  18167         action="re move" 
  18168         relative=" cda:sectio n/cda:text /cda:table [@ID='Surg icalNotesN arrative'] "
  18169        >
  18170        </action>
  18171                                           
  18172        <action 
  18173         action="re move" 
  18174         relative=" cda:sectio n/cda:text /cda:table [@ID='Surg icalNotesT opHeader'] "
  18175        >
  18176        </action>
  18177                                  
  18178       </ifNull>                          
  18179                                 
  18180       <mappings>
  18181                                           
  18182        <mapping>
  18183                                                    
  18184         <property>
  18185          prettyRefe renceDateT ime
  18186         </property >
  18187                                                    
  18188         <xpath>
  18189          cda:td/cda :content[@ ID='surgic alNoteDate Time']
  18190         </xpath>
  18191                                                    
  18192         <ifNotNull >
  18193                                                              
  18194          <action 
  18195           action="se tAttribute
  18196           attribute= "ID" 
  18197           indexed="t rue"
  18198          >
  18199           prndDateTi me
  18200          </action>
  18201                                                              
  18202          <action 
  18203           action="se tValue" 
  18204          >
  18205          </action>
  18206                                                     
  18207         </ifNotNul l>
  18208                                                    
  18209         <ifNull>
  18210                                                              
  18211          <action 
  18212           action="se tAttribute
  18213           attribute= "ID" 
  18214           indexed="t rue"
  18215          >
  18216           prndDateTi me
  18217          </action>                                           
  18218                                                     
  18219         </ifNull>                                           
  18220                                            
  18221        </mapping>
  18222                                           
  18223        <mapping>
  18224                                                    
  18225         <property 
  18226          optional=" true"
  18227         >
  18228          content
  18229         </property >
  18230                                                    
  18231         <xpath>
  18232          cda:td/cda :content[@ ID='surgic alNoteEnco unterDescr iption']
  18233         </xpath>
  18234                                                    
  18235         <ifNotNull >
  18236                                                              
  18237          <action 
  18238           action="se tAttribute
  18239           attribute= "ID" 
  18240           indexed="t rue"
  18241          >
  18242           prndDescri ption
  18243          </action>
  18244                                                              
  18245          <action 
  18246           action="ap pendValue"  
  18247           property=" documentTi tle" 
  18248          />
  18249                                                              
  18250          <action 
  18251           action="ap pendValue"
  18252          >
  18253            : 
  18254          </action>
  18255                                                              
  18256          <action 
  18257           action="ap pendValue"  
  18258          />
  18259                                                     
  18260         </ifNotNul l>
  18261                                                    
  18262         <ifNull>
  18263                                                              
  18264          <action 
  18265           action="se tAttribute
  18266           attribute= "ID" 
  18267           indexed="t rue"
  18268          >
  18269           prndDescri ption
  18270          </action>
  18271                                                              
  18272          <action 
  18273           action="ap pendValue"  
  18274           property=" documentTi tle" 
  18275          />
  18276                                                              
  18277          <action 
  18278           action="ap pendValue"
  18279          >
  18280            : 
  18281          </action>
  18282                                                              
  18283          <action 
  18284           action="ap pendValue"
  18285          >
  18286           No text av ailable.
  18287          </action>                                                    
  18288                                                     
  18289         </ifNull>
  18290                                            
  18291        </mapping>
  18292                                           
  18293        <mapping>
  18294                                                    
  18295         <property 
  18296          optional=" true"
  18297         >
  18298          signingCli nician.nam e
  18299         </property >
  18300                                                    
  18301         <xpath>
  18302          cda:td/cda :content[@ ID='surgic alNoteProv ider']
  18303         </xpath>
  18304                                                    
  18305         <ifNotNull >
  18306                                                              
  18307          <action 
  18308           action="se tAttribute
  18309           attribute= "ID" 
  18310           indexed="t rue"
  18311          >
  18312           prndProvid er
  18313          </action>
  18314                                                              
  18315          <action 
  18316           action="se tValue" 
  18317          />
  18318                                                     
  18319         </ifNotNul l>
  18320                                                    
  18321         <ifNull>
  18322                                                              
  18323          <action 
  18324           action="se tAttribute
  18325           attribute= "ID" 
  18326           indexed="t rue"
  18327          >
  18328           prndProvid er
  18329          </action>
  18330                                                     
  18331         </ifNull>
  18332                                            
  18333        </mapping>
  18334                                           
  18335        <mapping>
  18336                                                    
  18337         <property>
  18338          facility.n ame
  18339         </property >
  18340                                                    
  18341         <xpath>
  18342          cda:td/cda :content[@ ID='surgic alNoteSour ce']
  18343         </xpath>
  18344                                                    
  18345         <ifNotNull >
  18346                                                              
  18347          <action 
  18348           action="se tAttribute
  18349           attribute= "ID" 
  18350           indexed="t rue"
  18351          >
  18352           prndSource
  18353          </action>
  18354                                                              
  18355          <action 
  18356           action="se tValue" 
  18357          />
  18358                                                     
  18359         </ifNotNul l>
  18360                                                    
  18361         <ifNull>
  18362                                                              
  18363          <action 
  18364           action="se tAttribute
  18365           attribute= "ID" 
  18366           indexed="t rue"
  18367          >
  18368           prndSource
  18369          </action>
  18370                                                     
  18371         </ifNull>
  18372                                            
  18373        </mapping>
  18374                                  
  18375       </mappings >
  18376                        
  18377      </mapping>
  18378                       
  18379      <!-- End S urgical No tes -->
  18380                       
  18381                       
  18382      <mapping>
  18383                                 
  18384       <property 
  18385        collection ="true" 
  18386        optional=" true"
  18387       >
  18388        surgeries
  18389       </property >
  18390                                 
  18391       <xpath>
  18392        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.7.1']
  18393       </xpath>
  18394                                 
  18395       <ifNotNull >
  18396                                           
  18397        <action 
  18398         action="ev aluateMapp ings"
  18399                                                   
  18400         relative=" cda:sectio n/cda:text /cda:table [@ID='proc edureNarra tive']/cda :tbody/cda :tr" 
  18401        />
  18402                                  
  18403       </ifNotNul l>
  18404                                 
  18405       <ifNull>
  18406                                      
  18407        <action 
  18408         action="re move" 
  18409         relative=" cda:sectio n/cda:text /cda:table [@ID='proc edureNarra tive']"
  18410        />
  18411                                      
  18412        <action 
  18413         action="re move" 
  18414         relative=" cda:sectio n/cda:text /cda:parag raph[@ID=' procedureN arrativeIn tro']"
  18415        />
  18416                                  
  18417       </ifNull>                           
  18418                                 
  18419       <mappings>
  18420                                           
  18421        <mapping>
  18422                                                    
  18423         <property>
  18424          prettyDate Time
  18425         </property >
  18426                                                    
  18427         <xpath>
  18428          cda:td/cda :content[@ ID='prndDa teTime']
  18429         </xpath>
  18430                                                    
  18431         <ifNotNull >
  18432                                                              
  18433          <action 
  18434           action="se tAttribute
  18435           attribute= "ID" 
  18436           indexed="t rue"
  18437          >
  18438           prndDateTi me
  18439          </action>
  18440                                                              
  18441          <action 
  18442           action="se tValue" 
  18443          />
  18444                                                     
  18445         </ifNotNul l>
  18446                                            
  18447        </mapping>
  18448                                           
  18449        <mapping>
  18450                                                    
  18451         <property 
  18452          optional=" true"
  18453         >
  18454          type
  18455         </property >
  18456                                                    
  18457         <xpath>
  18458          cda:td/cda :content[@ ID='prndPr ocedureTyp e']
  18459         </xpath>
  18460                                                    
  18461         <ifNotNull >
  18462                                                              
  18463          <action 
  18464           action="se tAttribute
  18465           attribute= "ID" 
  18466           indexed="t rue"
  18467          >
  18468           prndProced ureType
  18469          </action>
  18470                                                              
  18471          <action 
  18472           action="se tValue" 
  18473           property=" type.name"  
  18474          />
  18475                                                     
  18476         </ifNotNul l>
  18477                                                    
  18478         <ifNull>
  18479                                                              
  18480          <action 
  18481           action="se tAttribute
  18482           attribute= "ID" 
  18483           indexed="t rue"
  18484          >
  18485           prndProced ureType
  18486          </action>
  18487                                                     
  18488         </ifNull>
  18489                                            
  18490        </mapping>
  18491                                           
  18492        <mapping >
  18493                                                    
  18494         <property 
  18495          optional=" true"
  18496         >
  18497          otherProce dures
  18498         </property >
  18499                                                    
  18500         <xpath>
  18501          cda:td/cda :list/cda: item[cda:c ontent/@ID ='prndQual ifiers']
  18502         </xpath>
  18503                                                    
  18504         <ifNotNull >
  18505                                                              
  18506          <action 
  18507           action="se tValue" 
  18508           relative=" cda:conten t[@ID='prn dQualifier s']"
  18509          >
  18510           Other Proc edure CPT  Code 
  18511          </action>
  18512                                                              
  18513          <action 
  18514           action="se tAttribute
  18515           relative=" cda:conten t[@ID='prn dQualifier s']"
  18516                                                                       
  18517           attribute= "ID" 
  18518           indexed="t rue"
  18519          >
  18520           prndQualif iers
  18521          </action>
  18522                                                              
  18523          <action 
  18524           action="ev aluateMapp ings" 
  18525          />
  18526                                                     
  18527         </ifNotNul l>
  18528                                                    
  18529         <ifNull>
  18530                                                              
  18531          <action 
  18532           action="re move" 
  18533           relative=" .." 
  18534                                                                       >
  18535           prndQualif iers
  18536          </action>
  18537                                                     
  18538         </ifNull>
  18539                                                    
  18540         <mappings>
  18541                                                              
  18542          <mapping>
  18543                                                                        
  18544           <property>
  18545            name
  18546           </property >
  18547                                                                        
  18548           <xpath>
  18549            cda:conten t
  18550           </xpath>
  18551                                                                        
  18552           <ifNotNull >
  18553                                                                                  
  18554            <action 
  18555             action="ap pendAttrib ute" 
  18556             attribute= "ID" 
  18557             indexed="t rue"
  18558            >
  18559             of
  18560            </action>
  18561                                                                                  
  18562            <action 
  18563             action="ap pendValue"  
  18564            />
  18565                                                                         
  18566           </ifNotNul l>
  18567                                                               
  18568          </mapping>
  18569                                                     
  18570         </mappings >
  18571                                            
  18572        </mapping>
  18573                                   
  18574                                           
  18575        <mapping >
  18576                                                    
  18577         <property 
  18578          optional=" true"
  18579         >
  18580          name
  18581         </property >
  18582                                                    
  18583         <xpath>
  18584          cda:td/cda :content[@ ID='prndDe scription' ]
  18585         </xpath>
  18586                                                    
  18587         <ifNotNull >
  18588                                                              
  18589          <action 
  18590           action="se tAttribute
  18591           attribute= "ID" 
  18592           indexed="t rue"
  18593          >
  18594           prndDescri ption
  18595          </action>
  18596                                                              
  18597          <action 
  18598           action="se tValue" 
  18599          />
  18600                                                     
  18601         </ifNotNul l>
  18602                                                    
  18603         <ifNull>
  18604                                                              
  18605          <action 
  18606           action="se tAttribute
  18607           attribute= "ID" 
  18608           indexed="t rue"
  18609          >
  18610           prndDescri ption
  18611          </action>
  18612                                                     
  18613         </ifNull>
  18614                                            
  18615        </mapping>
  18616                                            
  18617                                           
  18618        <mapping>
  18619                                                    
  18620         <property>
  18621          provider.n ame
  18622         </property >
  18623                                                    
  18624         <xpath>
  18625          cda:td/cda :content[@ ID='prndPr ovider']
  18626         </xpath>
  18627                                                    
  18628         <ifNotNull >
  18629                                                              
  18630          <action 
  18631           action="se tAttribute
  18632           attribute= "ID" 
  18633           indexed="t rue"
  18634          >
  18635           prndProvid er
  18636          </action>
  18637                                                              
  18638          <action 
  18639           action="se tValue" 
  18640          />
  18641                                                     
  18642         </ifNotNul l>
  18643                                                    
  18644         <ifNull>
  18645                                                              
  18646          <action 
  18647           action="se tAttribute
  18648           attribute= "ID" 
  18649           indexed="t rue"
  18650          >
  18651           prndProvid er
  18652          </action>
  18653                                                              
  18654          <action 
  18655           action="se tValue"
  18656          >
  18657           Unknown
  18658          </action>
  18659                                                     
  18660         </ifNull>
  18661                                            
  18662        </mapping>
  18663                                           
  18664        <mapping>
  18665                                                    
  18666         <property>
  18667          facility.n ame
  18668         </property >
  18669                                                    
  18670         <xpath>
  18671          cda:td/cda :content[@ ID='prndSo urce']
  18672         </xpath>
  18673                                                    
  18674         <ifNotNull >
  18675                                                              
  18676          <action 
  18677           action="se tAttribute
  18678           attribute= "ID" 
  18679           indexed="t rue"
  18680          >
  18681           prndSource
  18682          </action>
  18683                                                              
  18684          <action 
  18685           action="se tValue" 
  18686          />
  18687                                                     
  18688         </ifNotNul l>
  18689                                            
  18690        </mapping>
  18691                                  
  18692       </mappings >
  18693                        
  18694      </mapping>
  18695                       
  18696      <!-- PROCE DURES CODE D SECTION  -->
  18697                       
  18698      <mapping>
  18699                                 
  18700       <property 
  18701        collection ="true" 
  18702        optional=" true"
  18703       >
  18704        surgeries, clinicalPr ocedureNot es,procedu reDocs
  18705       </property >
  18706                                 
  18707       <xpath>
  18708        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.7.1']
  18709       </xpath>
  18710                                 
  18711       <ifNotNull >
  18712                                           
  18713        <action 
  18714         action="ev aluateMapp ings" 
  18715         relative=" cda:sectio n/cda:entr y" 
  18716        />
  18717                                  
  18718       </ifNotNul l>
  18719                                 
  18720       <ifNull>
  18721                                           
  18722        <action 
  18723         action="re move" 
  18724         relative=" cda:sectio n/cda:entr y"
  18725        >
  18726         NI
  18727        </action>
  18728                                           
  18729        <action 
  18730         action="se tValue" 
  18731         relative=" cda:sectio n/cda:text "
  18732        >
  18733         No Data Pr ovided for  This Sect ion
  18734        </action>
  18735                                           
  18736        <action 
  18737         action="se tAttribute
  18738         relative=" cda:sectio n"
  18739                                                   
  18740         attribute= "nullFlavo r"
  18741        >
  18742         NI
  18743        </action>
  18744                                  
  18745       </ifNull>
  18746                                 
  18747       <mappings>
  18748                                            
  18749                                           
  18750        <mapping >
  18751                                                    
  18752         <property>
  18753          facility
  18754         </property >
  18755                                                    
  18756         <xpath>
  18757          .
  18758         </xpath>
  18759                                                    
  18760         <ifNotNull >
  18761                                                              
  18762          <action 
  18763           action="re move" 
  18764           relative=" cda:observ ation" 
  18765          />
  18766                                                     
  18767         </ifNotNul l>
  18768                                            
  18769        </mapping>
  18770                                           
  18771        <mapping 
  18772         equalsProp erty="cate gory" 
  18773         equalsValu e="SR" 
  18774        >
  18775                                                    
  18776         <property 
  18777          optional=" true"
  18778         >
  18779          type
  18780         </property >
  18781                                                    
  18782         <xpath>
  18783          cda:proced ure/cda:co de
  18784         </xpath>
  18785                                                    
  18786         <ifNotNull >
  18787                                                              
  18788          <action 
  18789           action="re moveAttrib utes" 
  18790          />
  18791                                                              
  18792          <action 
  18793           action="se tAttribute
  18794           attribute= "code" 
  18795           property=" type.code"  
  18796          />
  18797                                                              
  18798          <action 
  18799           action="se tAttribute
  18800           attribute= "codeSyste m"
  18801          >
  18802           2.16.840.1 .113883.6. 12
  18803          </action>
  18804                                                              
  18805          <action 
  18806           action="se tAttribute
  18807           attribute= "codeSyste mName"
  18808          >
  18809           CPT-4
  18810          </action>
  18811                                                              
  18812          <action 
  18813           action="se tAttribute
  18814           attribute= "displayNa me"
  18815                                                                       
  18816           property=" type.name"  
  18817          />
  18818                                                              
  18819          <action 
  18820           action="se tAttribute
  18821           relative=" cda:origin alText/cda :reference "
  18822                                                                       
  18823           attribute= "value" 
  18824           indexed="t rue"
  18825          >
  18826           #prndDescr iption
  18827          </action>
  18828                                                              
  18829          <action 
  18830           action="se tAttribute
  18831           relative=" cda:transl ation/cda: originalTe xt/cda:ref erence"
  18832                                                                       
  18833           attribute= "value" 
  18834           indexed="t rue"
  18835          >
  18836           #prndDescr iption
  18837          </action>
  18838                                                              
  18839          <action 
  18840           action="se tAttribute
  18841           relative=" cda:origin alText/cda :reference "
  18842                                                                       
  18843           attribute= "value" 
  18844           indexed="t rue"
  18845          >
  18846           #prndDescr iption
  18847          </action>
  18848                                                                       
  18849                                                     
  18850         </ifNotNul l>
  18851                                            
  18852        </mapping>
  18853                                           
  18854        <mapping 
  18855         notEqualsP roperty="c ategory" 
  18856         notEqualsV alue="SR" 
  18857        >
  18858                                                    
  18859         <property 
  18860          optional=" true"
  18861         >
  18862          type
  18863         </property >
  18864                                                    
  18865         <xpath>
  18866          cda:proced ure/cda:co de
  18867         </xpath>
  18868                                                    
  18869         <ifNotNull >
  18870                                                              
  18871          <action 
  18872           action="re moveAttrib utes" 
  18873          />
  18874                                                              
  18875          <action 
  18876           action="se tAttribute
  18877           attribute= "code" 
  18878           property=" type.code"  
  18879          />
  18880                                                              
  18881          <action 
  18882           action="se tAttribute
  18883           attribute= "codeSyste m"
  18884          >
  18885           2.16.840.1 .113883.6. 12
  18886          </action>
  18887                                                              
  18888          <action 
  18889           action="se tAttribute
  18890           attribute= "codeSyste mName"
  18891          >
  18892           CPT-4
  18893          </action>
  18894                                                              
  18895          <action 
  18896           action="re moveChildr en" 
  18897          />
  18898                                                              
  18899          <action 
  18900           action="se tAttribute
  18901           attribute= "nullFlavo r"
  18902          >
  18903           UNK
  18904          </action>
  18905                                                     
  18906         </ifNotNul l>
  18907                                            
  18908        </mapping>                                 
  18909                                           
  18910        <mapping >
  18911                                                    
  18912         <property 
  18913          optional=" true"
  18914         >
  18915          nationalTi tle
  18916         </property >
  18917                                                    
  18918         <xpath>
  18919          cda:proced ure/cda:co de
  18920         </xpath>
  18921                                                    
  18922         <ifNotNull >
  18923                                                              
  18924          <action 
  18925           action="re moveAttrib utes" 
  18926          />
  18927                                                              
  18928          <action 
  18929           action="se tAttribute
  18930           attribute= "code"  
  18931          >
  18932           99499
  18933          </action>
  18934                                                              
  18935          <action 
  18936           action="se tAttribute
  18937           attribute= "displayNa me"
  18938                                                                        >
  18939           Unlisted E valuation  and Manage ment Servi ce
  18940          </action>
  18941                                                              
  18942          <action 
  18943           action="se tAttribute
  18944           attribute= "codeSyste m"
  18945          >
  18946           2.16.840.1 .113883.6. 12
  18947          </action>         
  18948                                                              
  18949          <action 
  18950           action="se tAttribute
  18951           attribute= "codeSyste mName"
  18952                                                                        >
  18953           CPT-4
  18954          </action>         
  18955                                                              
  18956          <action 
  18957           action="se tAttribute
  18958           relative=" cda:origin alText/cda :reference "
  18959                                                                       
  18960           attribute= "value" 
  18961           indexed="t rue"
  18962          >
  18963           #prndDescr iption
  18964          </action>                 
  18965                                                                                                                   
  18966          <action 
  18967           action="se tAttribute
  18968           relative=" cda:transl ation/cda: originalTe xt/cda:ref erence"
  18969                                                                       
  18970           attribute= "value" 
  18971           indexed="t rue"
  18972          >
  18973           #prndDescr iption
  18974          </action>                                                    
  18975                                                              
  18976          <action 
  18977           action="se tAttribute
  18978           relative=" cda:transl ation" 
  18979           attribute= "code"  
  18980          >
  18981           28570-0
  18982          </action>
  18983                                                              
  18984          <action 
  18985           action="se tAttribute
  18986           relative=" cda:transl ation" 
  18987           attribute= "codeSyste m"
  18988          >
  18989           2.16.840.1 .113883.6. 1
  18990          </action>
  18991                                                              
  18992          <action 
  18993           action="se tAttribute
  18994           relative=" cda:transl ation" 
  18995           attribute= "codeSyste mName"
  18996          >
  18997           LOINC
  18998          </action>
  18999                                                              
  19000          <action 
  19001           action="se tAttribute
  19002           relative=" cda:transl ation" 
  19003           attribute= "displayNa me" 
  19004          >
  19005           Procedure  Note
  19006          </action>
  19007                                                     
  19008         </ifNotNul l>
  19009                                                    
  19010         <ifNull>
  19011                                                     
  19012          <action 
  19013           action="re move" 
  19014           relative=" cda:transl ation"
  19015          >
  19016          </action>
  19017                                                     
  19018         </ifNull>
  19019                                            
  19020        </mapping>
  19021                                           
  19022                                           
  19023        <mapping 
  19024         equalsProp erty="cate gory" 
  19025         equalsValu e="SR" 
  19026        >
  19027                                                    
  19028         <property 
  19029          optional=" true"
  19030         >
  19031          type
  19032         </property >
  19033                                                    
  19034         <xpath>
  19035          cda:proced ure/cda:co de/cda:tra nslation
  19036         </xpath>
  19037                                                    
  19038         <ifNotNull >
  19039                                                              
  19040          <action 
  19041           action="se tAttribute
  19042           attribute= "code" 
  19043          >
  19044           29752-3
  19045          </action>
  19046                                                              
  19047          <action 
  19048           action="se tAttribute
  19049           attribute= "displayNa me" 
  19050          >
  19051           Perioperat ive Record s
  19052          </action>
  19053                                                              
  19054          <action 
  19055           action="se tAttribute
  19056           attribute= "codeSyste m" 
  19057          >
  19058           2.16.840.1 .113883.6. 1
  19059          </action>
  19060                                                              
  19061          <action 
  19062           action="se tAttribute
  19063           attribute= "codeSyste mName" 
  19064          >
  19065           LOINC
  19066          </action>                                                    
  19067                                                              
  19068                                                     
  19069         </ifNotNul l>
  19070                                            
  19071        </mapping>                                 
  19072                                           
  19073                                           
  19074        <mapping>
  19075                                                    
  19076         <property 
  19077          optional=" true"
  19078         >
  19079          type|natio nalTitle
  19080         </property >
  19081                                                    
  19082         <xpath>
  19083          cda:proced ure/cda:co de/cda:ori ginalText
  19084         </xpath>
  19085                                                    
  19086         <ifNotNull />
  19087                                                    
  19088         <ifNull>
  19089                                                              
  19090          <action 
  19091           action="re move" 
  19092          />
  19093                                                     
  19094         </ifNull>
  19095                                            
  19096        </mapping>                                 
  19097       
  19098                                   
  19099        <!--  <cod e code="99 499" displ ayName="Un listed Eva luation an d Manageme nt Service " codeSyst em="2.16.8 40.1.11388 3.6.12" co deSystemNa me="CPT-4" >   -->
  19100                                           
  19101        <mapping >
  19102                                                    
  19103         <property 
  19104          optional=" true"
  19105         >
  19106          otherProce dures
  19107         </property >
  19108                                                    
  19109         <xpath>
  19110          cda:proced ure/cda:co de/cda:qua lifier
  19111         </xpath>
  19112                                                    
  19113         <ifNotNull >
  19114                                                              
  19115          <action 
  19116           action="se tAttribute
  19117           relative=" cda:name"
  19118                                                                       
  19119           attribute= "displayNa me"
  19120          >
  19121           Other Proc edure CPT  Code
  19122          </action>
  19123                                                              
  19124          <action 
  19125           action="ev aluateMapp ings" 
  19126          />
  19127                                                     
  19128         </ifNotNul l>
  19129                                                    
  19130         <ifNull>
  19131                                                              
  19132          <action 
  19133           action="re move" 
  19134          />
  19135                                                     
  19136         </ifNull>
  19137                                                    
  19138         <mappings>
  19139                                                              
  19140          <mapping>
  19141                                                                        
  19142           <property>
  19143            code
  19144           </property >
  19145                                                                        
  19146           <xpath>
  19147            cda:value
  19148           </xpath>
  19149                                                                        
  19150           <ifNotNull >
  19151                                                                                  
  19152            <action 
  19153             action="se tAttribute
  19154             attribute= "code" 
  19155            />
  19156                                                                         
  19157           </ifNotNul l>
  19158                                                               
  19159          </mapping>
  19160                                                              
  19161          <mapping>
  19162                                                                        
  19163           <property>
  19164            name
  19165           </property >
  19166                                                                        
  19167           <xpath>
  19168            cda:value
  19169           </xpath>
  19170                                                                        
  19171           <ifNotNull >
  19172                                                                                  
  19173            <action 
  19174             action="se tAttribute
  19175             attribute= "displayNa me" 
  19176            />
  19177                                                                         
  19178           </ifNotNul l>
  19179                                                               
  19180          </mapping>
  19181                                                     
  19182         </mappings >
  19183                                            
  19184        </mapping>
  19185                                   
  19186                                           
  19187        <mapping >
  19188                                                    
  19189         <property>
  19190          dateTime|r eferenceDa teTime
  19191         </property >
  19192                                                    
  19193         <xpath>
  19194          cda:proced ure/cda:ef fectiveTim e
  19195         </xpath>
  19196                                                    
  19197         <ifNotNull >
  19198                                                              
  19199          <action 
  19200           action="se tAttribute
  19201           attribute= "value" 
  19202          />
  19203                                                     
  19204         </ifNotNul l>
  19205                                            
  19206        </mapping>
  19207                                    
  19208                                           
  19209                                           
  19210                                           
  19211        <mapping >
  19212                                                    
  19213         <property>
  19214          provider.n ame|signin gClinician .name
  19215         </property >
  19216                                                    
  19217         <xpath>
  19218          cda:proced ure/cda:pe rformer/cd a:assigned Entity/cda :assignedP erson/cda: name
  19219         </xpath>
  19220                                                    
  19221         <ifNotNull >
  19222                                                              
  19223          <action 
  19224           action="se tValue" 
  19225          />
  19226                                                     
  19227         </ifNotNul l>
  19228                                                    
  19229         <ifNull>
  19230                                                              
  19231          <action 
  19232           action="se tValue"
  19233          >
  19234           Unknown
  19235          </action>
  19236                                                     
  19237         </ifNull>
  19238                                            
  19239        </mapping>
  19240                                   
  19241                                           
  19242        <mapping >
  19243                                                    
  19244         <property>
  19245          facility.c ode
  19246         </property >
  19247                                                    
  19248         <xpath>
  19249          cda:proced ure/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:id
  19250         </xpath>
  19251                                                    
  19252         <ifNotNull >
  19253                                                              
  19254          <action 
  19255           action="se tAttribute
  19256           attribute= "extension
  19257          />
  19258                                                     
  19259         </ifNotNul l>
  19260                                            
  19261        </mapping>
  19262                                           
  19263        <mapping >
  19264                                                    
  19265         <property>
  19266          facility.n ame
  19267         </property >
  19268                                                    
  19269         <xpath>
  19270          cda:proced ure/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:name
  19271         </xpath>
  19272                                                    
  19273         <ifNotNull >
  19274                                                              
  19275          <action 
  19276           action="se tValue" 
  19277          />
  19278                                                     
  19279         </ifNotNul l>
  19280                                            
  19281        </mapping>
  19282                                   
  19283                                  
  19284       </mappings >
  19285                        
  19286      </mapping>
  19287     
  19288     
  19289                       
  19290      <mapping>
  19291                                 
  19292       <property 
  19293        collection ="true" 
  19294        merge="tru e"
  19295       >
  19296        healthFact ors
  19297       </property >
  19298                                 
  19299       <xpath>
  19300        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.17']
  19301       </xpath>
  19302                                 
  19303       <ifNotNull >
  19304                                           
  19305        <action 
  19306         action="ev aluateMapp ings"
  19307                                                   
  19308         relative=" cda:sectio n/cda:text /cda:table [@ID='fact orsNarrati ve']/cda:t body/cda:t r" 
  19309        />
  19310                                  
  19311       </ifNotNul l>
  19312                                 
  19313       <mappings>
  19314                                           
  19315        <mapping>
  19316                                                    
  19317         <property>
  19318          factorName
  19319         </property >
  19320                                                    
  19321         <xpath>
  19322          cda:td/cda :content[@ ID='hfName ']
  19323         </xpath>
  19324                                                    
  19325         <ifNotNull >
  19326                                                              
  19327          <action 
  19328           action="se tAttribute
  19329           attribute= "ID" 
  19330           indexed="t rue"
  19331          >
  19332           hfName
  19333          </action>
  19334                                                              
  19335          <action 
  19336           action="se tValue" 
  19337          />
  19338                                                     
  19339         </ifNotNul l>
  19340                                            
  19341        </mapping>
  19342                                           
  19343        <mapping>
  19344                                                    
  19345         <property 
  19346          optional=" true"
  19347         >
  19348          factorComm ent
  19349         </property >
  19350                                                    
  19351         <xpath>
  19352          cda:td/cda :content[@ ID='hfComm ent']
  19353         </xpath>
  19354                                                    
  19355         <ifNotNull >
  19356                                                              
  19357          <action 
  19358           action="se tAttribute
  19359           attribute= "ID" 
  19360           indexed="t rue"
  19361          >
  19362           hfComment
  19363          </action>
  19364                                                              
  19365          <action 
  19366           action="se tValue" 
  19367          />
  19368                                                     
  19369         </ifNotNul l>
  19370                                                    
  19371         <ifNull>
  19372                                                              
  19373          <action 
  19374           action="se tAttribute
  19375           attribute= "ID" 
  19376           indexed="t rue"
  19377          >
  19378           hfComment
  19379          </action>
  19380                                                     
  19381         </ifNull>
  19382                                            
  19383        </mapping>
  19384                                           
  19385        <mapping>
  19386                                                    
  19387         <property 
  19388          optional=" true"
  19389         >
  19390          factorFaci lity
  19391         </property >
  19392                                                    
  19393         <xpath>
  19394          cda:td/cda :content[@ ID='hfFaci lity']
  19395         </xpath>
  19396                                                    
  19397         <ifNotNull >
  19398                                                              
  19399          <action 
  19400           action="se tAttribute
  19401           attribute= "ID" 
  19402           indexed="t rue"
  19403          >
  19404           hfFacility
  19405          </action>
  19406                                                              
  19407          <action 
  19408           action="se tValue" 
  19409          />
  19410                                                     
  19411         </ifNotNul l>
  19412                                                    
  19413         <ifNull>
  19414                                                              
  19415          <action 
  19416           action="se tAttribute
  19417           attribute= "ID" 
  19418           indexed="t rue"
  19419          >
  19420           hfFacility
  19421          </action>
  19422                                                     
  19423         </ifNull>
  19424                                            
  19425        </mapping>
  19426                                  
  19427       </mappings >
  19428                        
  19429      </mapping>
  19430     
  19431     
  19432     
  19433     
  19434                       
  19435      <mapping>
  19436                                 
  19437       <property 
  19438        collection ="true" 
  19439        optional=" true"
  19440       >
  19441        healthFact ors
  19442       </property >
  19443                                 
  19444       <xpath>
  19445        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.17']
  19446       </xpath>
  19447                                 
  19448       <ifNotNull >
  19449                                           
  19450        <action 
  19451         action="ev aluateMapp ings" 
  19452         relative=" cda:sectio n/cda:entr y" 
  19453        />
  19454                                  
  19455       </ifNotNul l>
  19456                                 
  19457       <ifNull>
  19458                                           
  19459        <!-- <acti on action= "remove">N I</action>  -->
  19460                                           
  19461        <!--  Set  Social His tory Secti on to NI s o the docu ment passe s the MU2  online cer tification ; TPS -->
  19462                                                     
  19463                                           
  19464        <action 
  19465         action="re move" 
  19466         relative=" cda:sectio n/cda:entr y"
  19467        >
  19468         NI
  19469        </action>
  19470                                           
  19471        <action 
  19472         action="se tValue" 
  19473         relative=" cda:sectio n/cda:text "
  19474        >
  19475         No Data Pr ovided for  This Sect ion
  19476        </action>
  19477                                           
  19478        <action 
  19479         action="se tAttribute
  19480         relative=" cda:sectio n" 
  19481         attribute= "nullFlavo r"
  19482        >
  19483         NI
  19484        </action>
  19485       
  19486                                  
  19487       </ifNull>
  19488                                 
  19489       <mappings>
  19490                                           
  19491        <mapping>
  19492                                                    
  19493         <property>
  19494          factorName
  19495         </property >
  19496                                                    
  19497         <xpath>
  19498          cda:observ ation/cda: value/cda: originalTe xt
  19499         </xpath>
  19500                                                    
  19501         <ifNotNull >
  19502                                                              
  19503          <action 
  19504           action="se tValue" 
  19505          />
  19506                                                     
  19507         </ifNotNul l>
  19508                                            
  19509        </mapping>
  19510                                           
  19511                                           
  19512                                           
  19513        <mapping 
  19514         equalsProp erty="smok ingStatus"  
  19515         equalsValu e="LIFETIM E NON-TOBA CCO USER"
  19516       
  19517                                                    
  19518         <property>
  19519          smokingSta tus
  19520         </property >
  19521                                                    
  19522         <xpath>
  19523          cda:observ ation/cda: value
  19524         </xpath>
  19525                                                    
  19526         <ifNotNull >
  19527                                                              
  19528          <action 
  19529           action="se tAttribute
  19530           attribute= "code"
  19531          >
  19532           266919005
  19533          </action>
  19534                                                              
  19535          <action 
  19536           action="se tAttribute
  19537           attribute= "displayNa me"
  19538          >
  19539           Never smok er (Never  Smoked)
  19540          </action>
  19541                                                     
  19542         </ifNotNul l>
  19543                                            
  19544        </mapping>
  19545                                           
  19546                                           
  19547        <mapping 
  19548         equalsProp erty="smok ingStatus"  
  19549         equalsValu e="CURRENT  SMOKER"
  19550       
  19551                                                    
  19552         <property>
  19553          smokingSta tus
  19554         </property >
  19555                                                    
  19556         <xpath>
  19557          cda:observ ation/cda: value
  19558         </xpath>
  19559                                                    
  19560         <ifNotNull >
  19561                                                              
  19562          <action 
  19563           action="se tAttribute
  19564           attribute= "code"
  19565          >
  19566           77176002
  19567          </action>
  19568                                                              
  19569          <action 
  19570           action="se tAttribute
  19571           attribute= "displayNa me"
  19572          >
  19573           Smoker, cu rrent stat us unknown
  19574          </action>
  19575                                                     
  19576         </ifNotNul l>
  19577                                            
  19578        </mapping>
  19579                                           
  19580                                           
  19581        <mapping 
  19582         equalsProp erty="smok ingStatus"  
  19583         equalsValu e="HF V9 C URRENT SMO KER"
  19584       
  19585                                                    
  19586         <property>
  19587          smokingSta tus
  19588         </property >
  19589                                                    
  19590         <xpath>
  19591          cda:observ ation/cda: value
  19592         </xpath>
  19593                                                    
  19594         <ifNotNull >
  19595                                                              
  19596          <action 
  19597           action="se tAttribute
  19598           attribute= "code"
  19599          >
  19600           77176002
  19601          </action>
  19602                                                              
  19603          <action 
  19604           action="se tAttribute
  19605           attribute= "displayNa me"
  19606          >
  19607           Smoker, cu rrent stat us unknown )
  19608          </action>
  19609                                                     
  19610         </ifNotNul l>
  19611                                            
  19612        </mapping>
  19613                                           
  19614                                           
  19615        <mapping >  
  19616                                                    
  19617         <property>
  19618          smokingSta tus
  19619         </property >
  19620                                                    
  19621         <xpath>
  19622          cda:observ ation/cda: value
  19623         </xpath>
  19624                                                    
  19625         <ifNotNull >
  19626                                                     
  19627         </ifNotNul l>
  19628                                                    
  19629         <ifNull>
  19630                                                              
  19631          <action 
  19632           action="se tAttribute
  19633           attribute= "nullFlavo r"
  19634          >
  19635           UNK
  19636          </action>
  19637                                                     
  19638         </ifNull>
  19639                                            
  19640        </mapping>
  19641                                           
  19642                                           
  19643        <mapping>
  19644                                                    
  19645         <property>
  19646          factorComm ent
  19647         </property >
  19648                                                    
  19649         <xpath>
  19650          cda:observ ation/cda: entryRelat ionship/cd a:act/cda: text
  19651         </xpath>
  19652                                                    
  19653         <ifNotNull >
  19654                                                              
  19655          <action 
  19656           action="se tAttribute
  19657           relative=" cda:refere nce"
  19658                                                                       
  19659           attribute= "value" 
  19660           indexed="t rue"
  19661          >
  19662           #hfComment
  19663          </action>
  19664                                                     
  19665         </ifNotNul l>
  19666                                                    
  19667         <ifNull>
  19668                                                              
  19669          <action 
  19670           action="se tAttribute
  19671           relative=" cda:refere nce"
  19672                                                                       
  19673           attribute= "value" 
  19674           indexed="t rue"
  19675          >
  19676           #hfComment
  19677          </action>
  19678                                                     
  19679         </ifNull>
  19680                                            
  19681        </mapping>
  19682                                           
  19683        <mapping>
  19684                                                    
  19685         <property>
  19686          factorFaci lityCode
  19687         </property >
  19688                                                    
  19689         <xpath>
  19690          cda:observ ation/cda: author/cda :assignedA uthor/cda: represente dOrganizat ion/cda:id
  19691         </xpath>
  19692                                                    
  19693         <ifNotNull >
  19694                                                              
  19695          <action 
  19696           action="se tAttribute
  19697           attribute= "extension
  19698          />
  19699                                                     
  19700         </ifNotNul l>
  19701                                            
  19702        </mapping>
  19703                                           
  19704        <mapping>
  19705                                                    
  19706         <property>
  19707          factorFaci lity
  19708         </property >
  19709                                                    
  19710         <xpath>
  19711          cda:observ ation/cda: author/cda :assignedA uthor/cda: represente dOrganizat ion/cda:na me
  19712         </xpath>
  19713                                                    
  19714         <ifNotNull >
  19715                                                              
  19716          <action 
  19717           action="se tValue" 
  19718          />
  19719                                                     
  19720         </ifNotNul l>
  19721                                            
  19722        </mapping>
  19723                                  
  19724       </mappings >
  19725                        
  19726      </mapping>
  19727                       
  19728      <!-- PLAN  OF CARE NA RRATIVE -- >
  19729     
  19730                       
  19731      <mapping>
  19732                                 
  19733       <property 
  19734        optional=" true" 
  19735        collection ="true" 
  19736        merge="tru e"
  19737       >
  19738        appointmen ts
  19739       </property >
  19740                                 
  19741       <xpath>
  19742        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.10']
  19743       </xpath>
  19744                                 
  19745       <ifNotNull >
  19746                                           
  19747        <action 
  19748         action="ev aluateMapp ings"
  19749                                                   
  19750         relative=" cda:sectio n/cda:text /cda:table [@ID='futu reAppointm ents']/cda :tbody/cda :tr" 
  19751        />
  19752                                  
  19753       </ifNotNul l>
  19754                                 
  19755       <ifNull>
  19756                                           
  19757        <action 
  19758         action="re move"
  19759                                                   
  19760         relative=" cda:sectio n/cda:text /cda:table [@ID='futu reAppointm entsRules' ]" 
  19761        />
  19762                                           
  19763        <action 
  19764         action="re move"
  19765                                                   
  19766         relative=" cda:sectio n/cda:text /cda:table [@ID='futu reAppointm ents']" 
  19767        />
  19768       
  19769                                  
  19770       </ifNull>
  19771                                 
  19772       <mappings>
  19773                                           
  19774        <mapping>
  19775                                                    
  19776         <property>
  19777          prettyDate Time
  19778         </property >
  19779                                                    
  19780         <xpath>
  19781          cda:td[1]
  19782         </xpath>
  19783                                                    
  19784         <ifNotNull >
  19785                                                              
  19786          <action 
  19787           action="se tAttribute
  19788           attribute= "ID" 
  19789           indexed="t rue"
  19790          >
  19791           apptDateTi me
  19792          </action>
  19793                                                              
  19794          <action 
  19795           action="se tValue" 
  19796          />
  19797                                                     
  19798         </ifNotNul l>
  19799                                            
  19800        </mapping>
  19801                                           
  19802        <mapping>
  19803                                                    
  19804         <property 
  19805          optional=" true"
  19806         >
  19807          serviceCat egory.name
  19808         </property >
  19809                                                    
  19810         <xpath>
  19811          cda:td[2]/ cda:conten t
  19812         </xpath>
  19813                                                    
  19814         <ifNotNull >
  19815                                                              
  19816          <action 
  19817           action="se tAttribute
  19818           attribute= "ID" 
  19819           indexed="t rue"
  19820          >
  19821           contentTyp e
  19822          </action>
  19823                                                              
  19824          <action 
  19825           action="se tValue" 
  19826          />
  19827                                                              
  19828          <action 
  19829           action="ap pendValue"
  19830          >
  19831            - 
  19832          </action>
  19833                                                              
  19834          <action 
  19835           action="ap pendValue"  
  19836           property=" service" 
  19837          />
  19838                                                     
  19839         </ifNotNul l>
  19840                                                    
  19841         <ifNull>
  19842                                                              
  19843          <action 
  19844           action="se tAttribute
  19845           attribute= "ID" 
  19846           indexed="t rue"
  19847          >
  19848           contentTyp e
  19849          </action>
  19850                                                     
  19851         </ifNull>
  19852                                            
  19853        </mapping>
  19854                                           
  19855        <mapping>
  19856                                                    
  19857         <property 
  19858          optional=" true"
  19859         >
  19860          facility.n ame
  19861         </property >
  19862                                                    
  19863         <xpath>
  19864          cda:td[3]/ cda:conten t
  19865         </xpath>
  19866                                                    
  19867         <ifNotNull >
  19868                                                              
  19869          <action 
  19870           action="se tAttribute
  19871           attribute= "ID" 
  19872           indexed="t rue"
  19873          >
  19874           orderDetai ls
  19875          </action>
  19876                                                              
  19877          <action 
  19878           action="se tValue" 
  19879          />
  19880                                                     
  19881         </ifNotNul l>
  19882                                                    
  19883         <ifNull>
  19884                                                              
  19885          <action 
  19886           action="se tAttribute
  19887           attribute= "ID" 
  19888           indexed="t rue"
  19889          >
  19890           orderDetai ls
  19891          </action>
  19892                                                     
  19893         </ifNull>
  19894                                            
  19895        </mapping>
  19896                                  
  19897       </mappings >
  19898                        
  19899      </mapping>
  19900     
  19901                       
  19902      <mapping>
  19903                                 
  19904       <property 
  19905        optional=" true" 
  19906        collection ="true" 
  19907        merge="tru e"
  19908       >
  19909        futureOrde rs
  19910       </property >
  19911                                 
  19912       <xpath>
  19913        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.10']
  19914       </xpath>
  19915                                 
  19916       <ifNotNull >
  19917                                           
  19918        <action 
  19919         action="ev aluateMapp ings"
  19920                                                   
  19921         relative=" cda:sectio n/cda:text /cda:table [@ID='futu reSchedule dTests']/c da:tbody/c da:tr" 
  19922        />
  19923                                  
  19924       </ifNotNul l>
  19925                                 
  19926       <ifNull>
  19927                                           
  19928        <action 
  19929         action="re move"
  19930                                                   
  19931         relative=" cda:sectio n/cda:text /cda:table [@ID='futu reSchedule dTestsRule s']" 
  19932        />
  19933                                           
  19934        <action 
  19935         action="re move"
  19936                                                   
  19937         relative=" cda:sectio n/cda:text /cda:table [@ID='futu reSchedule dTests']" 
  19938        />
  19939                                  
  19940       </ifNull>
  19941                                 
  19942       <mappings>
  19943                                           
  19944        <mapping>
  19945                                                    
  19946         <property>
  19947          prettyEnte red
  19948         </property >
  19949                                                    
  19950         <xpath>
  19951          cda:td[1]
  19952         </xpath>
  19953                                                    
  19954         <ifNotNull >
  19955                                                              
  19956          <action 
  19957           action="se tValue" 
  19958          />
  19959                                                     
  19960         </ifNotNul l>
  19961                                            
  19962        </mapping>
  19963                                           
  19964        <mapping>
  19965                                                    
  19966         <property>
  19967          content
  19968         </property >
  19969                                                    
  19970         <xpath>
  19971          cda:td[2]/ cda:conten t[@ID='con tentType']
  19972         </xpath>
  19973                                                    
  19974         <ifNotNull >
  19975                                                              
  19976          <action 
  19977           action="se tValue"
  19978          >
  19979           Lab Orders
  19980          </action>
  19981                                                              
  19982          <action 
  19983           action="se tAttribute
  19984           attribute= "ID" 
  19985           indexed="t rue"
  19986          >
  19987           contentTyp e
  19988          </action>
  19989         
  19990                                                     
  19991         </ifNotNul l>
  19992                                                    
  19993         <ifNull>
  19994                                                              
  19995          <action 
  19996           action="se tAttribute
  19997           attribute= "ID" 
  19998           indexed="t rue"
  19999          >
  20000           contentTyp e
  20001          </action>
  20002                                                     
  20003         </ifNull>
  20004                                            
  20005        </mapping>
  20006                                           
  20007        <mapping>
  20008                                                    
  20009         <property>
  20010          content
  20011         </property >
  20012                                                    
  20013         <xpath>
  20014          cda:td[3]/ cda:conten t[@ID='ord erDetails' ]
  20015         </xpath>
  20016                                                    
  20017         <ifNotNull >
  20018                                                              
  20019          <action 
  20020           action="se tValue" 
  20021          />
  20022                                                              
  20023          <action 
  20024           action="se tAttribute
  20025           attribute= "ID" 
  20026           indexed="t rue"
  20027          >
  20028           orderDetai ls
  20029          </action>
  20030         
  20031                                                     
  20032         </ifNotNul l>
  20033                                                    
  20034         <ifNull>
  20035                                                              
  20036          <action 
  20037           action="se tAttribute
  20038           attribute= "ID" 
  20039           indexed="t rue"
  20040          >
  20041           orderDetai ls
  20042          </action>
  20043                                                     
  20044         </ifNull>
  20045                                            
  20046        </mapping>
  20047       
  20048                                           
  20049        <mapping>
  20050                                                    
  20051         <property 
  20052          optional=" true"
  20053         >
  20054          facility.n ame
  20055         </property >
  20056                                                    
  20057         <xpath>
  20058          cda:td[4]
  20059         </xpath>
  20060                                                    
  20061         <ifNotNull >
  20062                                                              
  20063          <action 
  20064           action="se tValue" 
  20065          />
  20066                                                     
  20067         </ifNotNul l>
  20068        
  20069                                            
  20070        </mapping>
  20071                                  
  20072       </mappings >
  20073                        
  20074      </mapping>
  20075     
  20076     
  20077                       
  20078      <mapping>
  20079                                 
  20080       <property 
  20081        collection ="true"
  20082       >
  20083        futureRadi ologies
  20084       </property >
  20085                                 
  20086       <xpath>
  20087        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.10']
  20088       </xpath>
  20089                                 
  20090       <ifNotNull >
  20091                                           
  20092        <action 
  20093         action="ev aluateMapp ings"
  20094                                                   
  20095         relative=" cda:sectio n/cda:text /cda:table [@ID='futu reRadiolog ies']/cda: tbody/cda: tr" 
  20096        />
  20097                                  
  20098       </ifNotNul l>
  20099                                 
  20100       <ifNull>
  20101                                           
  20102        <action 
  20103         action="re move"
  20104                                                   
  20105         relative=" cda:sectio n/cda:text /cda:table [@ID='futu reRadiolog iesRules']
  20106        />
  20107                                           
  20108        <action 
  20109         action="re move"
  20110                                                   
  20111         relative=" cda:sectio n/cda:text /cda:table [@ID='futu reRadiolog ies']" 
  20112        />
  20113                                  
  20114       </ifNull>
  20115                                 
  20116       <mappings>
  20117                                           
  20118        <mapping>
  20119                                                    
  20120         <property>
  20121          prettyEnte red
  20122         </property >
  20123                                                    
  20124         <xpath>
  20125          cda:td[1]
  20126         </xpath>
  20127                                                    
  20128         <ifNotNull >
  20129                                                              
  20130          <action 
  20131           action="se tValue" 
  20132          />
  20133                                                     
  20134         </ifNotNul l>
  20135                                            
  20136        </mapping>
  20137                                           
  20138        <mapping>
  20139                                                    
  20140         <property>
  20141          content
  20142         </property >
  20143                                                    
  20144         <xpath>
  20145          cda:td[2]/ cda:conten t[@ID='con tentType']
  20146         </xpath>
  20147                                                    
  20148         <ifNotNull >
  20149                                                              
  20150          <action 
  20151           action="se tValue"
  20152          >
  20153           Future Rad iology Pro cedure
  20154          </action>
  20155                                                              
  20156          <action 
  20157           action="se tAttribute
  20158           attribute= "ID" 
  20159           indexed="t rue"
  20160          >
  20161           contentTyp e
  20162          </action>
  20163         
  20164                                                     
  20165         </ifNotNul l>
  20166                                                    
  20167         <ifNull>
  20168                                                              
  20169          <action 
  20170           action="se tAttribute
  20171           attribute= "ID" 
  20172           indexed="t rue"
  20173          >
  20174           contentTyp e
  20175          </action>
  20176                                                     
  20177         </ifNull>
  20178                                            
  20179        </mapping>
  20180                                           
  20181        <mapping>
  20182                                                    
  20183         <property 
  20184          optional=" true"
  20185         >
  20186          content
  20187         </property >
  20188                                                    
  20189         <xpath>
  20190          cda:td[3]/ cda:conten t
  20191         </xpath>
  20192                                                    
  20193         <ifNotNull >
  20194                                                              
  20195          <action 
  20196           action="se tValue" 
  20197          />
  20198                                                              
  20199          <action 
  20200           action="se tAttribute
  20201           attribute= "ID" 
  20202           indexed="t rue"
  20203          >
  20204           orderDetai ls
  20205          </action>
  20206         
  20207                                                     
  20208         </ifNotNul l>
  20209                                                    
  20210         <ifNull>
  20211                                                              
  20212          <action 
  20213           action="se tAttribute
  20214           attribute= "ID" 
  20215           indexed="t rue"
  20216          >
  20217           orderDetai ls
  20218          </action>
  20219                                                     
  20220         </ifNull>
  20221                                            
  20222        </mapping>
  20223                                           
  20224        <mapping>
  20225                                                    
  20226         <property 
  20227          optional=" true"
  20228         >
  20229          facility.n ame
  20230         </property >
  20231                                                    
  20232         <xpath>
  20233          cda:td[4]
  20234         </xpath>
  20235                                                    
  20236         <ifNotNull >
  20237                                                              
  20238          <action 
  20239           action="se tValue" 
  20240          />
  20241                                                     
  20242         </ifNotNul l>
  20243        
  20244                                            
  20245        </mapping>
  20246                                  
  20247       </mappings >
  20248                        
  20249      </mapping>
  20250     
  20251     
  20252                       
  20253      <!-- PLAN  OF CARE SE CTION -->
  20254                       
  20255      <mapping>
  20256                                 
  20257       <property 
  20258        collection ="true" 
  20259        optional=" true"
  20260       >
  20261        appointmen ts,futureO rders,futu reRadiolog ies
  20262       </property >
  20263                                 
  20264       <xpath>
  20265        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.10']/cda :section
  20266       </xpath>
  20267                                 
  20268       <ifNotNull >
  20269                                           
  20270        <action 
  20271         action="ev aluateMapp ings" 
  20272         relative=" cda:entry"  
  20273        />
  20274                                  
  20275       </ifNotNul l>
  20276                                 
  20277       <ifNull>
  20278                                           
  20279        <!-- <acti on action= "remove">N I</action>  -->
  20280                                           
  20281        <!--  Set  Plan of Ca re Section  to NI so  the docume nt passes  the MU2 on line certi fication;  TPS -->
  20282                                                     
  20283                                           
  20284        <action 
  20285         action="re move" 
  20286         relative=" cda:entry"
  20287        >
  20288         NI
  20289        </action>
  20290                                           
  20291        <action 
  20292         action="se tValue" 
  20293         relative=" cda:text"
  20294        >
  20295         No Data Pr ovided for  This Sect ion
  20296        </action>
  20297                                           
  20298        <action 
  20299         action="se tAttribute
  20300         attribute= "nullFlavo r"
  20301        >
  20302         NI
  20303        </action>
  20304                                  
  20305       </ifNull>
  20306                                 
  20307       <mappings>
  20308                                           
  20309        <mapping>
  20310                                                    
  20311         <property>
  20312          id.value
  20313         </property >
  20314                                                    
  20315         <xpath>
  20316          cda:encoun ter/cda:id
  20317         </xpath>
  20318                                                    
  20319         <ifNotNull >
  20320                                                              
  20321          <action 
  20322           action="se tAttribute
  20323           attribute= "nullFlavo r"
  20324          >
  20325           UNK
  20326          </action>
  20327                                                     
  20328         </ifNotNul l>
  20329                                                    
  20330         <ifNull>
  20331                                                              
  20332          <action 
  20333           action="se tAttribute
  20334           attribute= "nullFlavo r"
  20335          >
  20336           UNK
  20337          </action>
  20338                                                     
  20339         </ifNull>
  20340                                            
  20341        </mapping>
  20342                                           
  20343        <mapping>
  20344                                                    
  20345         <property>
  20346          entered|st art|dateTi me
  20347         </property >
  20348                                                    
  20349         <xpath>
  20350          cda:encoun ter/cda:ef fectiveTim e/cda:cent er
  20351         </xpath>
  20352                                                    
  20353         <ifNotNull >
  20354                                                              
  20355          <action 
  20356           action="se tAttribute
  20357           attribute= "value" 
  20358          />
  20359                                                     
  20360         </ifNotNul l>
  20361                                            
  20362        </mapping>
  20363                                           
  20364        <mapping>
  20365                                                    
  20366         <property>
  20367          content
  20368         </property >
  20369                                                    
  20370         <xpath>
  20371          cda:encoun ter/cda:en tryRelatio nship
  20372         </xpath>
  20373                                                    
  20374         <ifNotNull >
  20375                                                              
  20376          <action 
  20377           action="se tAttribute
  20378           relative=" cda:act/cd a:text/cda :reference "
  20379                                                                       
  20380           attribute= "value" 
  20381           indexed="t rue"
  20382          >
  20383           #orderDeta ils
  20384          </action>
  20385         
  20386                                                     
  20387         </ifNotNul l>
  20388                                                    
  20389         <ifNull>
  20390                                                              
  20391          <action 
  20392           action="se tAttribute
  20393           relative=" cda:act/cd a:text/cda :reference "
  20394                                                                       
  20395           attribute= "value" 
  20396           indexed="t rue"
  20397          >
  20398           #orderDeta ils
  20399          </action>
  20400                                                              
  20401          <action 
  20402           action="re move" 
  20403          />
  20404                                                     
  20405         </ifNull>
  20406                                            
  20407        </mapping>
  20408       
  20409                                           
  20410        <mapping>
  20411                                                    
  20412         <property>
  20413          content|se rviceCateg ory.name
  20414         </property >
  20415                                                    
  20416         <xpath>
  20417          cda:encoun ter/cda:co de/cda:ori ginalText/ cda:refere nce
  20418         </xpath>
  20419                                                    
  20420         <ifNotNull >
  20421                                                              
  20422          <action 
  20423           action="se tAttribute
  20424           attribute= "value" 
  20425           indexed="t rue"
  20426          >
  20427           #contentTy pe
  20428          </action>
  20429         
  20430                                                     
  20431         </ifNotNul l>
  20432                                                    
  20433         <ifNull>
  20434                                                              
  20435          <action 
  20436           action="se tAttribute
  20437           attribute= "value" 
  20438           indexed="t rue"
  20439          >
  20440           #contentTy pe
  20441          </action>
  20442                                                     
  20443         </ifNull>
  20444                                            
  20445        </mapping>
  20446                                           
  20447        <mapping>
  20448                                                    
  20449         <property>
  20450          provider.c ode
  20451         </property >
  20452                                                    
  20453         <xpath>
  20454          cda:encoun ter/cda:pe rformer/cd a:assigned Entity/cda :id
  20455         </xpath>
  20456                                                    
  20457         <ifNotNull >
  20458                                                              
  20459          <action 
  20460           action="se tAttribute
  20461           attribute= "extension
  20462          />
  20463                                                     
  20464         </ifNotNul l>
  20465                                                    
  20466         <ifNull>
  20467                                                              
  20468          <action 
  20469           action="se tAttribute
  20470           attribute= "nullFlavo r"
  20471          >
  20472           UNK
  20473          </action>
  20474                                                     
  20475         </ifNull>
  20476                                            
  20477        </mapping>
  20478       
  20479                                           
  20480        <mapping>
  20481                                                    
  20482         <property>
  20483          provider.n ame
  20484         </property >
  20485                                                    
  20486         <xpath>
  20487          cda:encoun ter/cda:pe rformer/cd a:assigned Entity/cda :assignedP erson/cda: name
  20488         </xpath>
  20489                                                    
  20490         <ifNotNull >
  20491                                                              
  20492          <action 
  20493           action="se tValue" 
  20494          />
  20495                                                     
  20496         </ifNotNul l>
  20497                                            
  20498        </mapping>
  20499       
  20500                                           
  20501        <mapping>
  20502                                                    
  20503         <property>
  20504          facility.c ode
  20505         </property >
  20506                                                    
  20507         <xpath>
  20508          cda:encoun ter/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:id
  20509         </xpath>
  20510                                                    
  20511         <ifNotNull >
  20512                                                              
  20513          <action 
  20514           action="se tAttribute
  20515           attribute= "extension
  20516          />
  20517                                                     
  20518         </ifNotNul l>
  20519                                            
  20520        </mapping>
  20521                                           
  20522        <mapping>
  20523                                                    
  20524         <property>
  20525          facility.n ame
  20526         </property >
  20527                                                    
  20528         <xpath>
  20529          cda:encoun ter/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:name
  20530         </xpath>
  20531                                                    
  20532         <ifNotNull >
  20533                                                              
  20534          <action 
  20535           action="se tValue" 
  20536          />
  20537                                                     
  20538         </ifNotNul l>
  20539                                            
  20540        </mapping>
  20541                         
  20542                         
  20543        <mapping>
  20544                                                    
  20545         <property>
  20546          apptStatus
  20547         </property >
  20548                                                    
  20549         <xpath>
  20550          cda:encoun ter/cda:st atusCode
  20551         </xpath>
  20552                                                    
  20553         <ifNotNull >
  20554                                                              
  20555          <action 
  20556           action="se tAttribute
  20557           attribute= "code" 
  20558          />
  20559                                                     
  20560         </ifNotNul l>
  20561                                            
  20562        </mapping>
  20563                                  
  20564       </mappings >
  20565                        
  20566      </mapping>
  20567     
  20568              
  20569      <!-- FUNCT IONAL INDE PENDENCE M EASUREMENT S SECTION  -->
  20570                       
  20571      <mapping>
  20572                            
  20573       <property 
  20574        optional=" true"
  20575       >
  20576        functional Independen ceMeasurem entsNarrat ive
  20577       </property >
  20578                            
  20579       <xpath>
  20580        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.14']
  20581       </xpath>
  20582                            
  20583       <ifNotNull >
  20584                                  
  20585        <action 
  20586         action="se tValue" 
  20587         relative=" cda:sectio n/cda:text /cda:parag raph" 
  20588        />
  20589                             
  20590       </ifNotNul l>
  20591                        
  20592      </mapping>
  20593              
  20594      <mapping>
  20595                    
  20596       <property 
  20597        collection ="true" 
  20598        optional=" true"
  20599       >
  20600        functional Independen ceMeasurem ents
  20601       </property >
  20602                    
  20603       <xpath>
  20604        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.14']/cda :section
  20605       </xpath>
  20606                    
  20607       <ifNotNull >
  20608                         
  20609        <action 
  20610         action="ev aluateMapp ings" 
  20611         relative=" cda:text/c da:table/c da:tbody" 
  20612        />
  20613                     
  20614       </ifNotNul l>
  20615                    
  20616       <ifNull>
  20617                         
  20618        <action 
  20619         action="se tValue" 
  20620         relative=" cda:text"
  20621        >
  20622         No Data Pr ovided for  This Sect ion
  20623        </action>
  20624                         
  20625        <action 
  20626         action="se tAttribute
  20627         attribute= "nullFlavo r"
  20628        >
  20629         NI
  20630        </action>
  20631                     
  20632       </ifNull>
  20633                    
  20634       <mappings>
  20635                         
  20636        <mapping>
  20637                              
  20638         <property>
  20639          facility.n ame
  20640         </property >
  20641                              
  20642         <xpath>
  20643          cda:tr/cda :td/cda:co ntent[@ID= 'fimFacili ty']
  20644         </xpath>
  20645                              
  20646         <ifNotNull >
  20647                                    
  20648          <action 
  20649           action="se tAttribute
  20650           attribute= "ID" 
  20651           indexed="t rue"
  20652          >
  20653           fimFacilit y
  20654          </action>
  20655                                    
  20656          <action 
  20657           action="se tValue" 
  20658          />
  20659                               
  20660         </ifNotNul l>
  20661                              
  20662         <ifNull>
  20663                                                              
  20664          <action 
  20665           action="se tAttribute
  20666           attribute= "ID" 
  20667           indexed="t rue"
  20668          >
  20669           fimFacilit y
  20670          </action>
  20671                                                     
  20672         </ifNull>
  20673                          
  20674        </mapping>
  20675                         
  20676        <mapping>
  20677                              
  20678         <property 
  20679          collection ="true" 
  20680         >
  20681          assessment s,assessme nts.assess ment
  20682         </property >
  20683                              
  20684         <xpath>
  20685          .
  20686         </xpath>
  20687                              
  20688         <ifNotNull >
  20689                                    
  20690          <action 
  20691           action="ev aluateMapp ings"
  20692          />
  20693                               
  20694         </ifNotNul l>
  20695                              
  20696         <mappings>
  20697                                    
  20698          <mapping>
  20699                                         
  20700           <property>
  20701            assessment Date
  20702           </property >
  20703                                         
  20704           <xpath>
  20705            cda:tr/cda :td/cda:co ntent[@ID= 'fimAssess mentDate']
  20706           </xpath>
  20707                                         
  20708           <ifNotNull >
  20709                                               
  20710            <action 
  20711             action="se tAttribute
  20712             attribute= "ID" 
  20713             indexed="t rue"
  20714            >
  20715             fimAssessm entDate
  20716            </action>
  20717                                               
  20718            <action 
  20719             action="se tValue" 
  20720            />
  20721                                          
  20722           </ifNotNul l>
  20723                                         
  20724           <ifNull>
  20725                                               
  20726            <action 
  20727             action="se tAttribute
  20728             attribute= "ID" 
  20729             indexed="t rue"
  20730            >
  20731             fimAssessm entDate
  20732            </action>
  20733                                          
  20734           </ifNull>
  20735                                     
  20736          </mapping>
  20737                                    
  20738          <mapping>
  20739                                         
  20740           <property>
  20741            assessment Type
  20742           </property >
  20743                                         
  20744           <xpath>
  20745            cda:tr/cda :td/cda:co ntent[@ID= 'fimAssess ment']
  20746           </xpath>
  20747                                         
  20748           <ifNotNull >
  20749                                               
  20750            <action 
  20751             action="se tAttribute
  20752             attribute= "ID" 
  20753             indexed="t rue"
  20754            >
  20755             fimAssessm ent
  20756            </action>
  20757                                               
  20758            <action 
  20759             action="se tValue" 
  20760            />
  20761                                          
  20762           </ifNotNul l>
  20763                                         
  20764           <ifNull>
  20765                                               
  20766            <action 
  20767             action="se tAttribute
  20768             attribute= "ID" 
  20769             indexed="t rue"
  20770            >
  20771             fimAssessm ent
  20772            </action>
  20773                                          
  20774           </ifNull>
  20775                                     
  20776          </mapping>
  20777                                    
  20778          <mapping>
  20779                                         
  20780           <property>
  20781            values.eat
  20782           </property >
  20783                                         
  20784           <xpath>
  20785            cda:tr/cda :td/cda:co ntent[@ID= 'fimEat']
  20786           </xpath>
  20787                                         
  20788           <ifNotNull >
  20789                                               
  20790            <action 
  20791             action="se tAttribute
  20792             attribute= "ID" 
  20793             indexed="t rue"
  20794            >
  20795             fimEat
  20796            </action>
  20797                                               
  20798            <action 
  20799             action="se tValue" 
  20800            />
  20801                                          
  20802           </ifNotNul l>
  20803                                         
  20804           <ifNull>
  20805                                               
  20806            <action 
  20807             action="se tAttribute
  20808             attribute= "ID" 
  20809             indexed="t rue"
  20810            >
  20811             fimEat
  20812            </action>
  20813                                          
  20814           </ifNull>
  20815                                     
  20816          </mapping>
  20817                                    
  20818          <mapping>
  20819                                         
  20820           <property>
  20821            values.eat
  20822           </property >
  20823                                         
  20824           <xpath>
  20825            cda:tr/cda :td/cda:co ntent[@ID= 'fimEatNam e']
  20826           </xpath>
  20827                                         
  20828           <ifNotNull >
  20829                                               
  20830            <action 
  20831             action="se tAttribute
  20832             attribute= "ID" 
  20833             indexed="t rue"
  20834            >
  20835             fimEatName
  20836            </action>
  20837                                          
  20838           </ifNotNul l>
  20839                                         
  20840           <ifNull>
  20841                                               
  20842            <action 
  20843             action="se tAttribute
  20844             attribute= "ID" 
  20845             indexed="t rue"
  20846            >
  20847             fimEatName
  20848            </action>
  20849                                          
  20850           </ifNull>
  20851                                     
  20852          </mapping>
  20853                                    
  20854          <mapping>
  20855                                         
  20856           <property>
  20857            values.eat
  20858           </property >
  20859                                         
  20860           <xpath>
  20861            cda:tr/cda :td/cda:co ntent[@ID= 'fimEatDet ail']
  20862           </xpath>
  20863                                         
  20864           <ifNotNull >
  20865                                               
  20866            <action 
  20867             action="se tAttribute
  20868             attribute= "ID" 
  20869             indexed="t rue"
  20870            >
  20871             fimEatDeta il
  20872            </action>
  20873                                          
  20874           </ifNotNul l>
  20875                                         
  20876           <ifNull>
  20877                                               
  20878            <action 
  20879             action="se tAttribute
  20880             attribute= "ID" 
  20881             indexed="t rue"
  20882            >
  20883             fimEatDeta il
  20884            </action>
  20885                                          
  20886           </ifNull>
  20887                                     
  20888          </mapping>
  20889                                    
  20890          <mapping>
  20891                                         
  20892           <property>
  20893            values.gro om
  20894           </property >
  20895                                         
  20896           <xpath>
  20897            cda:tr/cda :td/cda:co ntent[@ID= 'fimGroom' ]
  20898           </xpath>
  20899                                         
  20900           <ifNotNull >
  20901                                               
  20902            <action 
  20903             action="se tAttribute
  20904             attribute= "ID" 
  20905             indexed="t rue"
  20906            >
  20907             fimGroom
  20908            </action>
  20909                                               
  20910            <action 
  20911             action="se tValue" 
  20912            />
  20913                                          
  20914           </ifNotNul l>
  20915                                         
  20916           <ifNull>
  20917                                               
  20918            <action 
  20919             action="se tAttribute
  20920             attribute= "ID" 
  20921             indexed="t rue"
  20922            >
  20923             fimGroom
  20924            </action>
  20925                                          
  20926           </ifNull>
  20927                                     
  20928          </mapping>
  20929                                    
  20930          <mapping>
  20931                                         
  20932           <property>
  20933            values.gro om
  20934           </property >
  20935                                         
  20936           <xpath>
  20937            cda:tr/cda :td/cda:co ntent[@ID= 'fimGroomN ame']
  20938           </xpath>
  20939                                         
  20940           <ifNotNull >
  20941                                               
  20942            <action 
  20943             action="se tAttribute
  20944             attribute= "ID" 
  20945             indexed="t rue"
  20946            >
  20947             fimGroomNa me
  20948            </action>
  20949                                          
  20950           </ifNotNul l>
  20951                                         
  20952           <ifNull>
  20953                                               
  20954            <action 
  20955             action="se tAttribute
  20956             attribute= "ID" 
  20957             indexed="t rue"
  20958            >
  20959             fimGroomNa me
  20960            </action>
  20961                                          
  20962           </ifNull>
  20963                                     
  20964          </mapping>
  20965                                    
  20966          <mapping>
  20967                                         
  20968           <property>
  20969            values.gro om
  20970           </property >
  20971                                         
  20972           <xpath>
  20973            cda:tr/cda :td/cda:co ntent[@ID= 'fimGroomD etail']
  20974           </xpath>
  20975                                         
  20976           <ifNotNull >
  20977                                               
  20978            <action 
  20979             action="se tAttribute
  20980             attribute= "ID" 
  20981             indexed="t rue"
  20982            >
  20983             fimGroomDe tail
  20984            </action>
  20985                                          
  20986           </ifNotNul l>
  20987                                         
  20988           <ifNull>
  20989                                               
  20990            <action 
  20991             action="se tAttribute
  20992             attribute= "ID" 
  20993             indexed="t rue"
  20994            >
  20995             fimGroomDe tail
  20996            </action>
  20997                                          
  20998           </ifNull>
  20999                                     
  21000          </mapping>
  21001                                    
  21002          <mapping>
  21003                                         
  21004           <property>
  21005            values.bat h
  21006           </property >
  21007                                         
  21008           <xpath>
  21009            cda:tr/cda :td/cda:co ntent[@ID= 'fimBath']
  21010           </xpath>
  21011                                         
  21012           <ifNotNull >
  21013                                               
  21014            <action 
  21015             action="se tAttribute
  21016             attribute= "ID" 
  21017             indexed="t rue"
  21018            >
  21019             fimBath
  21020            </action>
  21021                                               
  21022            <action 
  21023             action="se tValue" 
  21024            />
  21025                                          
  21026           </ifNotNul l>
  21027                                         
  21028           <ifNull>
  21029                                               
  21030            <action 
  21031             action="se tAttribute
  21032             attribute= "ID" 
  21033             indexed="t rue"
  21034            >
  21035             fimBath
  21036            </action>
  21037                                          
  21038           </ifNull>
  21039                                     
  21040          </mapping>
  21041                                    
  21042          <mapping>
  21043                                         
  21044           <property>
  21045            values.bat h
  21046           </property >
  21047                                         
  21048           <xpath>
  21049            cda:tr/cda :td/cda:co ntent[@ID= 'fimBathNa me']
  21050           </xpath>
  21051                                         
  21052           <ifNotNull >
  21053                                               
  21054            <action 
  21055             action="se tAttribute
  21056             attribute= "ID" 
  21057             indexed="t rue"
  21058            >
  21059             fimBathNam e
  21060            </action>
  21061                                          
  21062           </ifNotNul l>
  21063                                         
  21064           <ifNull>
  21065                                               
  21066            <action 
  21067             action="se tAttribute
  21068             attribute= "ID" 
  21069             indexed="t rue"
  21070            >
  21071             fimBathNam e
  21072            </action>
  21073                                          
  21074           </ifNull>
  21075                                     
  21076          </mapping>
  21077                                    
  21078          <mapping>
  21079                                         
  21080           <property>
  21081            values.bat h
  21082           </property >
  21083                                         
  21084           <xpath>
  21085            cda:tr/cda :td/cda:co ntent[@ID= 'fimBathDe tail']
  21086           </xpath>
  21087                                         
  21088           <ifNotNull >
  21089                                               
  21090            <action 
  21091             action="se tAttribute
  21092             attribute= "ID" 
  21093             indexed="t rue"
  21094            >
  21095             fimBathDet ail
  21096            </action>
  21097                                          
  21098           </ifNotNul l>
  21099                                         
  21100           <ifNull>
  21101                                               
  21102            <action 
  21103             action="se tAttribute
  21104             attribute= "ID" 
  21105             indexed="t rue"
  21106            >
  21107             fimBathDet ail
  21108            </action>
  21109                                          
  21110           </ifNull>
  21111                                     
  21112          </mapping>
  21113                                    
  21114          <mapping>
  21115                                         
  21116           <property>
  21117            values.dre ssUp
  21118           </property >
  21119                                         
  21120           <xpath>
  21121            cda:tr/cda :td/cda:co ntent[@ID= 'fimDressU p']
  21122           </xpath>
  21123                                         
  21124           <ifNotNull >
  21125                                               
  21126            <action 
  21127             action="se tAttribute
  21128             attribute= "ID" 
  21129             indexed="t rue"
  21130            >
  21131             fimDressUp
  21132            </action>
  21133                                               
  21134            <action 
  21135             action="se tValue" 
  21136            />
  21137                                          
  21138           </ifNotNul l>
  21139                                         
  21140           <ifNull>
  21141                                               
  21142            <action 
  21143             action="se tAttribute
  21144             attribute= "ID" 
  21145             indexed="t rue"
  21146            >
  21147             fimDressUp
  21148            </action>
  21149                                          
  21150           </ifNull>
  21151                                     
  21152          </mapping>
  21153                                    
  21154          <mapping>
  21155                                         
  21156           <property>
  21157            values.dre ssUp
  21158           </property >
  21159                                         
  21160           <xpath>
  21161            cda:tr/cda :td/cda:co ntent[@ID= 'fimDressU pName']
  21162           </xpath>
  21163                                         
  21164           <ifNotNull >
  21165                                               
  21166            <action 
  21167             action="se tAttribute
  21168             attribute= "ID" 
  21169             indexed="t rue"
  21170            >
  21171             fimDressUp Name
  21172            </action>
  21173                                          
  21174           </ifNotNul l>
  21175                                         
  21176           <ifNull>
  21177                                               
  21178            <action 
  21179             action="se tAttribute
  21180             attribute= "ID" 
  21181             indexed="t rue"
  21182            >
  21183             fimDressUp Name
  21184            </action>
  21185                                          
  21186           </ifNull>
  21187                                     
  21188          </mapping>
  21189                                    
  21190          <mapping>
  21191                                         
  21192           <property>
  21193            values.dre ssUp
  21194           </property >
  21195                                         
  21196           <xpath>
  21197            cda:tr/cda :td/cda:co ntent[@ID= 'fimDressU pDetail']
  21198           </xpath>
  21199                                         
  21200           <ifNotNull >
  21201                                               
  21202            <action 
  21203             action="se tAttribute
  21204             attribute= "ID" 
  21205             indexed="t rue"
  21206            >
  21207             fimDressUp Detail
  21208            </action>
  21209                                          
  21210           </ifNotNul l>
  21211                                         
  21212           <ifNull>
  21213                                               
  21214            <action 
  21215             action="se tAttribute
  21216             attribute= "ID" 
  21217             indexed="t rue"
  21218            >
  21219             fimDressUp Detail
  21220            </action>
  21221                                          
  21222           </ifNull>
  21223                                     
  21224          </mapping>
  21225                                    
  21226          <mapping>
  21227                                         
  21228           <property>
  21229            values.dre ssLo
  21230           </property >
  21231                                         
  21232           <xpath>
  21233            cda:tr/cda :td/cda:co ntent[@ID= 'fimDressL o']
  21234           </xpath>
  21235                                         
  21236           <ifNotNull >
  21237                                               
  21238            <action 
  21239             action="se tAttribute
  21240             attribute= "ID" 
  21241             indexed="t rue"
  21242            >
  21243             fimDressLo
  21244            </action>
  21245                                               
  21246            <action 
  21247             action="se tValue" 
  21248            />
  21249                                          
  21250           </ifNotNul l>
  21251                                         
  21252           <ifNull>
  21253                                               
  21254            <action 
  21255             action="se tAttribute
  21256             attribute= "ID" 
  21257             indexed="t rue"
  21258            >
  21259             fimDressLo
  21260            </action>
  21261                                          
  21262           </ifNull>
  21263                                     
  21264          </mapping>
  21265                                    
  21266          <mapping>
  21267                                         
  21268           <property>
  21269            values.dre ssLo
  21270           </property >
  21271                                         
  21272           <xpath>
  21273            cda:tr/cda :td/cda:co ntent[@ID= 'fimDressL oName']
  21274           </xpath>
  21275                                         
  21276           <ifNotNull >
  21277                                               
  21278            <action 
  21279             action="se tAttribute
  21280             attribute= "ID" 
  21281             indexed="t rue"
  21282            >
  21283             fimDressLo Name
  21284            </action>
  21285                                          
  21286           </ifNotNul l>
  21287                                         
  21288           <ifNull>
  21289                                               
  21290            <action 
  21291             action="se tAttribute
  21292             attribute= "ID" 
  21293             indexed="t rue"
  21294            >
  21295             fimDressLo Name
  21296            </action>
  21297                                          
  21298           </ifNull>
  21299                                     
  21300          </mapping>
  21301                                    
  21302          <mapping>
  21303                                         
  21304           <property>
  21305            values.dre ssLo
  21306           </property >
  21307                                         
  21308           <xpath>
  21309            cda:tr/cda :td/cda:co ntent[@ID= 'fimDressL oDetail']
  21310           </xpath>
  21311                                         
  21312           <ifNotNull >
  21313                                               
  21314            <action 
  21315             action="se tAttribute
  21316             attribute= "ID" 
  21317             indexed="t rue"
  21318            >
  21319             fimDressLo Detail
  21320            </action>
  21321                                          
  21322           </ifNotNul l>
  21323                                         
  21324           <ifNull>
  21325                                               
  21326            <action 
  21327             action="se tAttribute
  21328             attribute= "ID" 
  21329             indexed="t rue"
  21330            >
  21331             fimDressLo Detail
  21332            </action>
  21333                                          
  21334           </ifNull>
  21335                                     
  21336          </mapping>
  21337                                    
  21338          <mapping>
  21339                                         
  21340           <property>
  21341            values.toi let
  21342           </property >
  21343                                         
  21344           <xpath>
  21345            cda:tr/cda :td/cda:co ntent[@ID= 'fimToilet ']
  21346           </xpath>
  21347                                         
  21348           <ifNotNull >
  21349                                               
  21350            <action 
  21351             action="se tAttribute
  21352             attribute= "ID" 
  21353             indexed="t rue"
  21354            >
  21355             fimToilet
  21356            </action>
  21357                                               
  21358            <action 
  21359             action="se tValue" 
  21360            />
  21361                                          
  21362           </ifNotNul l>
  21363                                         
  21364           <ifNull>
  21365                                               
  21366            <action 
  21367             action="se tAttribute
  21368             attribute= "ID" 
  21369             indexed="t rue"
  21370            >
  21371             fimToilet
  21372            </action>
  21373                                          
  21374           </ifNull>
  21375                                     
  21376          </mapping>
  21377                                    
  21378          <mapping>
  21379                                         
  21380           <property>
  21381            values.toi let
  21382           </property >
  21383                                         
  21384           <xpath>
  21385            cda:tr/cda :td/cda:co ntent[@ID= 'fimToilet Name']
  21386           </xpath>
  21387                                         
  21388           <ifNotNull >
  21389                                               
  21390            <action 
  21391             action="se tAttribute
  21392             attribute= "ID" 
  21393             indexed="t rue"
  21394            >
  21395             fimToiletN ame
  21396            </action>
  21397                                          
  21398           </ifNotNul l>
  21399                                         
  21400           <ifNull>
  21401                                               
  21402            <action 
  21403             action="se tAttribute
  21404             attribute= "ID" 
  21405             indexed="t rue"
  21406            >
  21407             fimToiletN ame
  21408            </action>
  21409                                          
  21410           </ifNull>
  21411                                     
  21412          </mapping>
  21413                                    
  21414          <mapping>
  21415                                         
  21416           <property>
  21417            values.toi let
  21418           </property >
  21419                                         
  21420           <xpath>
  21421            cda:tr/cda :td/cda:co ntent[@ID= 'fimToilet Detail']
  21422           </xpath>
  21423                                         
  21424           <ifNotNull >
  21425                                               
  21426            <action 
  21427             action="se tAttribute
  21428             attribute= "ID" 
  21429             indexed="t rue"
  21430            >
  21431             fimToiletD etail
  21432            </action>
  21433                                          
  21434           </ifNotNul l>
  21435                                         
  21436           <ifNull>
  21437                                               
  21438            <action 
  21439             action="se tAttribute
  21440             attribute= "ID" 
  21441             indexed="t rue"
  21442            >
  21443             fimToiletD etail
  21444            </action>
  21445                                          
  21446           </ifNull>
  21447                                     
  21448          </mapping>
  21449                                    
  21450          <mapping>
  21451                                         
  21452           <property>
  21453            values.bla dder
  21454           </property >
  21455                                         
  21456           <xpath>
  21457            cda:tr/cda :td/cda:co ntent[@ID= 'fimBladde r']
  21458           </xpath>
  21459                                         
  21460           <ifNotNull >
  21461                                               
  21462            <action 
  21463             action="se tAttribute
  21464             attribute= "ID" 
  21465             indexed="t rue"
  21466            >
  21467             fimBladder
  21468            </action>
  21469                                               
  21470            <action 
  21471             action="se tValue" 
  21472            />
  21473                                          
  21474           </ifNotNul l>
  21475                                         
  21476           <ifNull>
  21477                                               
  21478            <action 
  21479             action="se tAttribute
  21480             attribute= "ID" 
  21481             indexed="t rue"
  21482            >
  21483             fimBladder
  21484            </action>
  21485                                          
  21486           </ifNull>
  21487                                     
  21488          </mapping>
  21489                                    
  21490          <mapping>
  21491                                         
  21492           <property>
  21493            values.bla dder
  21494           </property >
  21495                                         
  21496           <xpath>
  21497            cda:tr/cda :td/cda:co ntent[@ID= 'fimBladde rName']
  21498           </xpath>
  21499                                         
  21500           <ifNotNull >
  21501                                               
  21502            <action 
  21503             action="se tAttribute
  21504             attribute= "ID" 
  21505             indexed="t rue"
  21506            >
  21507             fimBladder Name
  21508            </action>
  21509                                          
  21510           </ifNotNul l>
  21511                                         
  21512           <ifNull>
  21513                                               
  21514            <action 
  21515             action="se tAttribute
  21516             attribute= "ID" 
  21517             indexed="t rue"
  21518            >
  21519             fimBladder Name
  21520            </action>
  21521                                          
  21522           </ifNull>
  21523                                     
  21524          </mapping>
  21525                                    
  21526          <mapping>
  21527                                         
  21528           <property>
  21529            values.bla dder
  21530           </property >
  21531                                         
  21532           <xpath>
  21533            cda:tr/cda :td/cda:co ntent[@ID= 'fimBladde rDetail']
  21534           </xpath>
  21535                                         
  21536           <ifNotNull >
  21537                                               
  21538            <action 
  21539             action="se tAttribute
  21540             attribute= "ID" 
  21541             indexed="t rue"
  21542            >
  21543             fimBladder Detail
  21544            </action>
  21545                                          
  21546           </ifNotNul l>
  21547                                         
  21548           <ifNull>
  21549                                               
  21550            <action 
  21551             action="se tAttribute
  21552             attribute= "ID" 
  21553             indexed="t rue"
  21554            >
  21555             fimBladder Detail
  21556            </action>
  21557                                          
  21558           </ifNull>
  21559                                     
  21560          </mapping>
  21561                                    
  21562          <mapping>
  21563                                         
  21564           <property>
  21565            values.bow el
  21566           </property >
  21567                                         
  21568           <xpath>
  21569            cda:tr/cda :td/cda:co ntent[@ID= 'fimBowel' ]
  21570           </xpath>
  21571                                         
  21572           <ifNotNull >
  21573                                               
  21574            <action 
  21575             action="se tAttribute
  21576             attribute= "ID" 
  21577             indexed="t rue"
  21578            >
  21579             fimBowel
  21580            </action>
  21581                                               
  21582            <action 
  21583             action="se tValue" 
  21584            />
  21585                                          
  21586           </ifNotNul l>
  21587                                         
  21588           <ifNull>
  21589                                               
  21590            <action 
  21591             action="se tAttribute
  21592             attribute= "ID" 
  21593             indexed="t rue"
  21594            >
  21595             fimBowel
  21596            </action>
  21597                                          
  21598           </ifNull>
  21599                                     
  21600          </mapping>
  21601                                    
  21602          <mapping>
  21603                                         
  21604           <property>
  21605            values.bow el
  21606           </property >
  21607                                         
  21608           <xpath>
  21609            cda:tr/cda :td/cda:co ntent[@ID= 'fimBowelN ame']
  21610           </xpath>
  21611                                         
  21612           <ifNotNull >
  21613                                               
  21614            <action 
  21615             action="se tAttribute
  21616             attribute= "ID" 
  21617             indexed="t rue"
  21618            >
  21619             fimBowelNa me
  21620            </action>
  21621                                          
  21622           </ifNotNul l>
  21623                                         
  21624           <ifNull>
  21625                                               
  21626            <action 
  21627             action="se tAttribute
  21628             attribute= "ID" 
  21629             indexed="t rue"
  21630            >
  21631             fimBowelNa me
  21632            </action>
  21633                                          
  21634           </ifNull>
  21635                                     
  21636          </mapping>
  21637                                    
  21638          <mapping>
  21639                                         
  21640           <property>
  21641            values.bow el
  21642           </property >
  21643                                         
  21644           <xpath>
  21645            cda:tr/cda :td/cda:co ntent[@ID= 'fimBowelD etail']
  21646           </xpath>
  21647                                         
  21648           <ifNotNull >
  21649                                               
  21650            <action 
  21651             action="se tAttribute
  21652             attribute= "ID" 
  21653             indexed="t rue"
  21654            >
  21655             fimBowelDe tail
  21656            </action>
  21657                                          
  21658           </ifNotNul l>
  21659                                         
  21660           <ifNull>
  21661                                               
  21662            <action 
  21663             action="se tAttribute
  21664             attribute= "ID" 
  21665             indexed="t rue"
  21666            >
  21667             fimBowelDe tail
  21668            </action>
  21669                                          
  21670           </ifNull>
  21671                                     
  21672          </mapping>
  21673                                    
  21674          <mapping>
  21675                                         
  21676           <property>
  21677            values.tra nsChair
  21678           </property >
  21679                                         
  21680           <xpath>
  21681            cda:tr/cda :td/cda:co ntent[@ID= 'fimTransC hair']
  21682           </xpath>
  21683                                         
  21684           <ifNotNull >
  21685                                               
  21686            <action 
  21687             action="se tAttribute
  21688             attribute= "ID" 
  21689             indexed="t rue"
  21690            >
  21691             fimTransCh air
  21692            </action>
  21693                                               
  21694            <action 
  21695             action="se tValue" 
  21696            />
  21697                                          
  21698           </ifNotNul l>
  21699                                         
  21700           <ifNull>
  21701                                               
  21702            <action 
  21703             action="se tAttribute
  21704             attribute= "ID" 
  21705             indexed="t rue"
  21706            >
  21707             fimTransCh air
  21708            </action>
  21709                                          
  21710           </ifNull>
  21711                                     
  21712          </mapping>
  21713                                    
  21714          <mapping>
  21715                                         
  21716           <property>
  21717            values.tra nsChair
  21718           </property >
  21719                                         
  21720           <xpath>
  21721            cda:tr/cda :td/cda:co ntent[@ID= 'fimTransC hairName']
  21722           </xpath>
  21723                                         
  21724           <ifNotNull >
  21725                                               
  21726            <action 
  21727             action="se tAttribute
  21728             attribute= "ID" 
  21729             indexed="t rue"
  21730            >
  21731             fimTransCh airName
  21732            </action>
  21733                                          
  21734           </ifNotNul l>
  21735                                         
  21736           <ifNull>
  21737                                               
  21738            <action 
  21739             action="se tAttribute
  21740             attribute= "ID" 
  21741             indexed="t rue"
  21742            >
  21743             fimTransCh airName
  21744            </action>
  21745                                          
  21746           </ifNull>
  21747                                     
  21748          </mapping>
  21749                                    
  21750          <mapping>
  21751                                         
  21752           <property>
  21753            values.tra nsChair
  21754           </property >
  21755                                         
  21756           <xpath>
  21757            cda:tr/cda :td/cda:co ntent[@ID= 'fimTransC hairDetail ']
  21758           </xpath>
  21759                                         
  21760           <ifNotNull >
  21761                                               
  21762            <action 
  21763             action="se tAttribute
  21764             attribute= "ID" 
  21765             indexed="t rue"
  21766            >
  21767             fimTransCh airDetail
  21768            </action>
  21769                                          
  21770           </ifNotNul l>
  21771                                         
  21772           <ifNull>
  21773                                               
  21774            <action 
  21775             action="se tAttribute
  21776             attribute= "ID" 
  21777             indexed="t rue"
  21778            >
  21779             fimTransCh airDetail
  21780            </action>
  21781                                          
  21782           </ifNull>
  21783                                     
  21784          </mapping>
  21785                                    
  21786          <mapping>
  21787                                         
  21788           <property>
  21789            values.tra nsToilet
  21790           </property >
  21791                                         
  21792           <xpath>
  21793            cda:tr/cda :td/cda:co ntent[@ID= 'fimTransT oilet']
  21794           </xpath>
  21795                                         
  21796           <ifNotNull >
  21797                                               
  21798            <action 
  21799             action="se tAttribute
  21800             attribute= "ID" 
  21801             indexed="t rue"
  21802            >
  21803             fimTransTo ilet
  21804            </action>
  21805                                               
  21806            <action 
  21807             action="se tValue" 
  21808            />
  21809                                          
  21810           </ifNotNul l>
  21811                                         
  21812           <ifNull>
  21813                                               
  21814            <action 
  21815             action="se tAttribute
  21816             attribute= "ID" 
  21817             indexed="t rue"
  21818            >
  21819             fimTransTo ilet
  21820            </action>
  21821                                          
  21822           </ifNull>
  21823                                     
  21824          </mapping>
  21825                                    
  21826          <mapping>
  21827                                         
  21828           <property>
  21829            values.tra nsToilet
  21830           </property >
  21831                                         
  21832           <xpath>
  21833            cda:tr/cda :td/cda:co ntent[@ID= 'fimTransT oiletName' ]
  21834           </xpath>
  21835                                         
  21836           <ifNotNull >
  21837                                               
  21838            <action 
  21839             action="se tAttribute
  21840             attribute= "ID" 
  21841             indexed="t rue"
  21842            >
  21843             fimTransTo iletName
  21844            </action>
  21845                                          
  21846           </ifNotNul l>
  21847                                         
  21848           <ifNull>
  21849                                               
  21850            <action 
  21851             action="se tAttribute
  21852             attribute= "ID" 
  21853             indexed="t rue"
  21854            >
  21855             fimTransTo iletName
  21856            </action>
  21857                                          
  21858           </ifNull>
  21859                                     
  21860          </mapping>
  21861                                    
  21862          <mapping>
  21863                                         
  21864           <property>
  21865            values.tra nsToilet
  21866           </property >
  21867                                         
  21868           <xpath>
  21869            cda:tr/cda :td/cda:co ntent[@ID= 'fimTransT oiletDetai l']
  21870           </xpath>
  21871                                         
  21872           <ifNotNull >
  21873                                               
  21874            <action 
  21875             action="se tAttribute
  21876             attribute= "ID" 
  21877             indexed="t rue"
  21878            >
  21879             fimTransTo iletDetail
  21880            </action>
  21881                                          
  21882           </ifNotNul l>
  21883                                         
  21884           <ifNull>
  21885                                               
  21886            <action 
  21887             action="se tAttribute
  21888             attribute= "ID" 
  21889             indexed="t rue"
  21890            >
  21891             fimTransTo iletDetail
  21892            </action>
  21893                                          
  21894           </ifNull>
  21895                                     
  21896          </mapping>
  21897                                    
  21898          <mapping>
  21899                                         
  21900           <property>
  21901            values.tra nsTub
  21902           </property >
  21903                                         
  21904           <xpath>
  21905            cda:tr/cda :td/cda:co ntent[@ID= 'fimTransT ub']
  21906           </xpath>
  21907                                         
  21908           <ifNotNull >
  21909                                               
  21910            <action 
  21911             action="se tAttribute
  21912             attribute= "ID" 
  21913             indexed="t rue"
  21914            >
  21915             fimTransTu b
  21916            </action>
  21917                                               
  21918            <action 
  21919             action="se tValue" 
  21920            />
  21921                                          
  21922           </ifNotNul l>
  21923                                         
  21924           <ifNull>
  21925                                               
  21926            <action 
  21927             action="se tAttribute
  21928             attribute= "ID" 
  21929             indexed="t rue"
  21930            >
  21931             fimTransTu b
  21932            </action>
  21933                                          
  21934           </ifNull>
  21935                                     
  21936          </mapping>
  21937                                    
  21938          <mapping>
  21939                                         
  21940           <property>
  21941            values.tra nsTub
  21942           </property >
  21943                                         
  21944           <xpath>
  21945            cda:tr/cda :td/cda:co ntent[@ID= 'fimTransT ubName']
  21946           </xpath>
  21947                                         
  21948           <ifNotNull >
  21949                                               
  21950            <action 
  21951             action="se tAttribute
  21952             attribute= "ID" 
  21953             indexed="t rue"
  21954            >
  21955             fimTransTu bName
  21956            </action>
  21957                                          
  21958           </ifNotNul l>
  21959                                         
  21960           <ifNull>
  21961                                               
  21962            <action 
  21963             action="se tAttribute
  21964             attribute= "ID" 
  21965             indexed="t rue"
  21966            >
  21967             fimTransTu bName
  21968            </action>
  21969                                          
  21970           </ifNull>
  21971                                     
  21972          </mapping>
  21973                                    
  21974          <mapping>
  21975                                         
  21976           <property>
  21977            values.tra nsTub
  21978           </property >
  21979                                         
  21980           <xpath>
  21981            cda:tr/cda :td/cda:co ntent[@ID= 'fimTransT ubDetail']
  21982           </xpath>
  21983                                         
  21984           <ifNotNull >
  21985                                               
  21986            <action 
  21987             action="se tAttribute
  21988             attribute= "ID" 
  21989             indexed="t rue"
  21990            >
  21991             fimTransTu bDetail
  21992            </action>
  21993                                          
  21994           </ifNotNul l>
  21995                                         
  21996           <ifNull>
  21997                                               
  21998            <action 
  21999             action="se tAttribute
  22000             attribute= "ID" 
  22001             indexed="t rue"
  22002            >
  22003             fimTransTu bDetail
  22004            </action>
  22005                                          
  22006           </ifNull>
  22007                                     
  22008          </mapping>
  22009                                    
  22010          <mapping>
  22011                                         
  22012           <property>
  22013            values.loc omWalk
  22014           </property >
  22015                                         
  22016           <xpath>
  22017            cda:tr/cda :td/cda:co ntent[@ID= 'fimLocomW alk']
  22018           </xpath>
  22019                                         
  22020           <ifNotNull >
  22021                                               
  22022            <action 
  22023             action="se tAttribute
  22024             attribute= "ID" 
  22025             indexed="t rue"
  22026            >
  22027             fimLocomWa lk
  22028            </action>
  22029                                               
  22030            <action 
  22031             action="se tValue" 
  22032            />
  22033                                          
  22034           </ifNotNul l>
  22035                                         
  22036           <ifNull>
  22037                                               
  22038            <action 
  22039             action="se tAttribute
  22040             attribute= "ID" 
  22041             indexed="t rue"
  22042            >
  22043             fimLocomWa lk
  22044            </action>
  22045                                          
  22046           </ifNull>
  22047                                     
  22048          </mapping>
  22049                                    
  22050          <mapping>
  22051                                         
  22052           <property>
  22053            values.loc omWalk
  22054           </property >
  22055                                         
  22056           <xpath>
  22057            cda:tr/cda :td/cda:co ntent[@ID= 'fimLocomW alkName']
  22058           </xpath>
  22059                                         
  22060           <ifNotNull >
  22061                                               
  22062            <action 
  22063             action="se tAttribute
  22064             attribute= "ID" 
  22065             indexed="t rue"
  22066            >
  22067             fimLocomWa lkName
  22068            </action>
  22069                                          
  22070           </ifNotNul l>
  22071                                         
  22072           <ifNull>
  22073                                               
  22074            <action 
  22075             action="se tAttribute
  22076             attribute= "ID" 
  22077             indexed="t rue"
  22078            >
  22079             fimLocomWa lkName
  22080            </action>
  22081                                          
  22082           </ifNull>
  22083                                     
  22084          </mapping>
  22085                                    
  22086          <mapping>
  22087                                         
  22088           <property>
  22089            values.wal kComment
  22090           </property >
  22091                                         
  22092           <xpath>
  22093            cda:tr/cda :td/cda:co ntent[@ID= 'fimLocomW alkDetail' ]
  22094           </xpath>
  22095                                         
  22096           <ifNotNull >
  22097                                               
  22098            <action 
  22099             action="se tAttribute
  22100             attribute= "ID" 
  22101             indexed="t rue"
  22102            >
  22103             fimLocomWa lkDetail
  22104            </action>
  22105                                               
  22106            <action 
  22107             action="ap pendValue"  
  22108            />
  22109                                          
  22110           </ifNotNul l>
  22111                                         
  22112           <ifNull>
  22113                                               
  22114            <action 
  22115             action="se tAttribute
  22116             attribute= "ID" 
  22117             indexed="t rue"
  22118            >
  22119             fimLocomWa lkDetail
  22120            </action>
  22121                                          
  22122           </ifNull>
  22123                                     
  22124          </mapping>
  22125                                    
  22126          <mapping>
  22127                                         
  22128           <property>
  22129            values.loc omStair
  22130           </property >
  22131                                         
  22132           <xpath>
  22133            cda:tr/cda :td/cda:co ntent[@ID= 'fimLocomS tair']
  22134           </xpath>
  22135                                         
  22136           <ifNotNull >
  22137                                               
  22138            <action 
  22139             action="se tAttribute
  22140             attribute= "ID" 
  22141             indexed="t rue"
  22142            >
  22143             fimLocomSt air
  22144            </action>
  22145                                               
  22146            <action 
  22147             action="se tValue" 
  22148            />
  22149                                          
  22150           </ifNotNul l>
  22151                                         
  22152           <ifNull>
  22153                                               
  22154            <action 
  22155             action="se tAttribute
  22156             attribute= "ID" 
  22157             indexed="t rue"
  22158            >
  22159             fimLocomSt air
  22160            </action>
  22161                                          
  22162           </ifNull>
  22163                                     
  22164          </mapping>
  22165                                    
  22166          <mapping>
  22167                                         
  22168           <property>
  22169            values.loc omStair
  22170           </property >
  22171                                         
  22172           <xpath>
  22173            cda:tr/cda :td/cda:co ntent[@ID= 'fimLocomS tairName']
  22174           </xpath>
  22175                                         
  22176           <ifNotNull >
  22177                                               
  22178            <action 
  22179             action="se tAttribute
  22180             attribute= "ID" 
  22181             indexed="t rue"
  22182            >
  22183             fimLocomSt airName
  22184            </action>
  22185                                          
  22186           </ifNotNul l>
  22187                                         
  22188           <ifNull>
  22189                                               
  22190            <action 
  22191             action="se tAttribute
  22192             attribute= "ID" 
  22193             indexed="t rue"
  22194            >
  22195             fimLocomSt airName
  22196            </action>
  22197                                          
  22198           </ifNull>
  22199                                     
  22200          </mapping>
  22201                                    
  22202          <mapping>
  22203                                         
  22204           <property>
  22205            values.loc omStair
  22206           </property >
  22207                                         
  22208           <xpath>
  22209            cda:tr/cda :td/cda:co ntent[@ID= 'fimLocomS tairDetail ']
  22210           </xpath>
  22211                                         
  22212           <ifNotNull >
  22213                                               
  22214            <action 
  22215             action="se tAttribute
  22216             attribute= "ID" 
  22217             indexed="t rue"
  22218            >
  22219             fimLocomSt airDetail
  22220            </action>
  22221                                          
  22222           </ifNotNul l>
  22223                                         
  22224           <ifNull>
  22225                                               
  22226            <action 
  22227             action="se tAttribute
  22228             attribute= "ID" 
  22229             indexed="t rue"
  22230            >
  22231             fimLocomSt airDetail
  22232            </action>
  22233                                          
  22234           </ifNull>
  22235                                     
  22236          </mapping>
  22237                                    
  22238          <mapping>
  22239                                         
  22240           <property>
  22241            values.com prehend
  22242           </property >
  22243                                         
  22244           <xpath>
  22245            cda:tr/cda :td/cda:co ntent[@ID= 'fimCompre hend']
  22246           </xpath>
  22247                                         
  22248           <ifNotNull >
  22249                                               
  22250            <action 
  22251             action="se tAttribute
  22252             attribute= "ID" 
  22253             indexed="t rue"
  22254            >
  22255             fimCompreh end
  22256            </action>
  22257                                               
  22258            <action 
  22259             action="se tValue" 
  22260            />
  22261                                          
  22262           </ifNotNul l>
  22263                                         
  22264           <ifNull>
  22265                                               
  22266            <action 
  22267             action="se tAttribute
  22268             attribute= "ID" 
  22269             indexed="t rue"
  22270            >
  22271             fimCompreh end
  22272            </action>
  22273                                          
  22274           </ifNull>
  22275                                     
  22276          </mapping>
  22277                                    
  22278          <mapping>
  22279                                         
  22280           <property>
  22281            values.com prehend
  22282           </property >
  22283                                         
  22284           <xpath>
  22285            cda:tr/cda :td/cda:co ntent[@ID= 'fimCompre hendName']
  22286           </xpath>
  22287                                         
  22288           <ifNotNull >
  22289                                               
  22290            <action 
  22291             action="se tAttribute
  22292             attribute= "ID" 
  22293             indexed="t rue"
  22294            >
  22295             fimCompreh endName
  22296            </action>
  22297                                          
  22298           </ifNotNul l>
  22299                                         
  22300           <ifNull>
  22301                                               
  22302            <action 
  22303             action="se tAttribute
  22304             attribute= "ID" 
  22305             indexed="t rue"
  22306            >
  22307             fimCompreh endName
  22308            </action>
  22309                                          
  22310           </ifNull>
  22311                                     
  22312          </mapping>
  22313                                    
  22314          <mapping>
  22315                                         
  22316           <property>
  22317            values.com prehendCom ment
  22318           </property >
  22319                                         
  22320           <xpath>
  22321            cda:tr/cda :td/cda:co ntent[@ID= 'fimCompre hendDetail ']
  22322           </xpath>
  22323                                         
  22324           <ifNotNull >
  22325                                               
  22326            <action 
  22327             action="se tAttribute
  22328             attribute= "ID" 
  22329             indexed="t rue"
  22330            >
  22331             fimCompreh endDetail
  22332            </action>
  22333                                               
  22334            <action 
  22335             action="ap pendValue"  
  22336            />
  22337                                          
  22338           </ifNotNul l>
  22339                                         
  22340           <ifNull>
  22341                                               
  22342            <action 
  22343             action="se tAttribute
  22344             attribute= "ID" 
  22345             indexed="t rue"
  22346            >
  22347             fimCompreh endDetail
  22348            </action>
  22349                                          
  22350           </ifNull>
  22351                                     
  22352          </mapping>
  22353                                    
  22354          <mapping>
  22355                                         
  22356           <property>
  22357            values.exp ress
  22358           </property >
  22359                                         
  22360           <xpath>
  22361            cda:tr/cda :td/cda:co ntent[@ID= 'fimExpres s']
  22362           </xpath>
  22363                                         
  22364           <ifNotNull >
  22365                                               
  22366            <action 
  22367             action="se tAttribute
  22368             attribute= "ID" 
  22369             indexed="t rue"
  22370            >
  22371             fimExpress
  22372            </action>
  22373                                               
  22374            <action 
  22375             action="se tValue" 
  22376            />
  22377                                          
  22378           </ifNotNul l>
  22379                                         
  22380           <ifNull>
  22381                                               
  22382            <action 
  22383             action="se tAttribute
  22384             attribute= "ID" 
  22385             indexed="t rue"
  22386            >
  22387             fimExpress
  22388            </action>
  22389                                          
  22390           </ifNull>
  22391                                     
  22392          </mapping>
  22393                                    
  22394          <mapping>
  22395                                         
  22396           <property>
  22397            values.exp ress
  22398           </property >
  22399                                         
  22400           <xpath>
  22401            cda:tr/cda :td/cda:co ntent[@ID= 'fimExpres sName']
  22402           </xpath>
  22403                                         
  22404           <ifNotNull >
  22405                                               
  22406            <action 
  22407             action="se tAttribute
  22408             attribute= "ID" 
  22409             indexed="t rue"
  22410            >
  22411             fimExpress Name
  22412            </action>
  22413                                          
  22414           </ifNotNul l>
  22415                                         
  22416           <ifNull>
  22417                                               
  22418            <action 
  22419             action="se tAttribute
  22420             attribute= "ID" 
  22421             indexed="t rue"
  22422            >
  22423             fimExpress Name
  22424            </action>
  22425                                          
  22426           </ifNull>
  22427                                     
  22428          </mapping>
  22429                                    
  22430          <mapping>
  22431                                         
  22432           <property>
  22433            values.exp ressCommen t
  22434           </property >
  22435                                         
  22436           <xpath>
  22437            cda:tr/cda :td/cda:co ntent[@ID= 'fimExpres sDetail']
  22438           </xpath>
  22439                                         
  22440           <ifNotNull >
  22441                                               
  22442            <action 
  22443             action="se tAttribute
  22444             attribute= "ID" 
  22445             indexed="t rue"
  22446            >
  22447             fimExpress Detail
  22448            </action>
  22449                                               
  22450            <action 
  22451             action="ap pendValue"  
  22452            />
  22453                                          
  22454           </ifNotNul l>
  22455                                         
  22456           <ifNull>
  22457                                               
  22458            <action 
  22459             action="se tAttribute
  22460             attribute= "ID" 
  22461             indexed="t rue"
  22462            >
  22463             fimExpress Detail
  22464            </action>
  22465                                          
  22466           </ifNull>
  22467                                     
  22468          </mapping>
  22469                                    
  22470          <mapping>
  22471                                         
  22472           <property>
  22473            values.int eract
  22474           </property >
  22475                                         
  22476           <xpath>
  22477            cda:tr/cda :td/cda:co ntent[@ID= 'fimIntera ct']
  22478           </xpath>
  22479                                         
  22480           <ifNotNull >
  22481                                               
  22482            <action 
  22483             action="se tAttribute
  22484             attribute= "ID" 
  22485             indexed="t rue"
  22486            >
  22487             fimInterac t
  22488            </action>
  22489                                               
  22490            <action 
  22491             action="se tValue" 
  22492            />
  22493                                          
  22494           </ifNotNul l>
  22495                                         
  22496           <ifNull>
  22497                                               
  22498            <action 
  22499             action="se tAttribute
  22500             attribute= "ID" 
  22501             indexed="t rue"
  22502            >
  22503             fimInterac t
  22504            </action>
  22505                                          
  22506           </ifNull>
  22507                                     
  22508          </mapping>
  22509                                    
  22510          <mapping>
  22511                                         
  22512           <property>
  22513            values.int eract
  22514           </property >
  22515                                         
  22516           <xpath>
  22517            cda:tr/cda :td/cda:co ntent[@ID= 'fimIntera ctName']
  22518           </xpath>
  22519                                         
  22520           <ifNotNull >
  22521                                               
  22522            <action 
  22523             action="se tAttribute
  22524             attribute= "ID" 
  22525             indexed="t rue"
  22526            >
  22527             fimInterac tName
  22528            </action>
  22529                                          
  22530           </ifNotNul l>
  22531                                         
  22532           <ifNull>
  22533                                               
  22534            <action 
  22535             action="se tAttribute
  22536             attribute= "ID" 
  22537             indexed="t rue"
  22538            >
  22539             fimInterac tName
  22540            </action>
  22541                                          
  22542           </ifNull>
  22543                                     
  22544          </mapping>
  22545                                    
  22546          <mapping>
  22547                                         
  22548           <property>
  22549            values.int eract
  22550           </property >
  22551                                         
  22552           <xpath>
  22553            cda:tr/cda :td/cda:co ntent[@ID= 'fimIntera ctDetail']
  22554           </xpath>
  22555                                         
  22556           <ifNotNull >
  22557                                               
  22558            <action 
  22559             action="se tAttribute
  22560             attribute= "ID" 
  22561             indexed="t rue"
  22562            >
  22563             fimInterac tDetail
  22564            </action>
  22565                                          
  22566           </ifNotNul l>
  22567                                         
  22568           <ifNull>
  22569                                               
  22570            <action 
  22571             action="se tAttribute
  22572             attribute= "ID" 
  22573             indexed="t rue"
  22574            >
  22575             fimInterac tDetail
  22576            </action>
  22577                                          
  22578           </ifNull>
  22579                                     
  22580          </mapping>
  22581                                    
  22582          <mapping>
  22583                                         
  22584           <property>
  22585            values.pro blem
  22586           </property >
  22587                                         
  22588           <xpath>
  22589            cda:tr/cda :td/cda:co ntent[@ID= 'fimProble m']
  22590           </xpath>
  22591                                         
  22592           <ifNotNull >
  22593                                               
  22594            <action 
  22595             action="se tAttribute
  22596             attribute= "ID" 
  22597             indexed="t rue"
  22598            >
  22599             fimProblem
  22600            </action>
  22601                                               
  22602            <action 
  22603             action="se tValue" 
  22604            />
  22605                                          
  22606           </ifNotNul l>
  22607                                         
  22608           <ifNull>
  22609                                               
  22610            <action 
  22611             action="se tAttribute
  22612             attribute= "ID" 
  22613             indexed="t rue"
  22614            >
  22615             fimProblem
  22616            </action>
  22617                                          
  22618           </ifNull>
  22619                                     
  22620          </mapping>
  22621                                    
  22622          <mapping>
  22623                                         
  22624           <property>
  22625            values.pro blem
  22626           </property >
  22627                                         
  22628           <xpath>
  22629            cda:tr/cda :td/cda:co ntent[@ID= 'fimProble mName']
  22630           </xpath>
  22631                                         
  22632           <ifNotNull >
  22633                                               
  22634            <action 
  22635             action="se tAttribute
  22636             attribute= "ID" 
  22637             indexed="t rue"
  22638            >
  22639             fimProblem Name
  22640            </action>
  22641                                          
  22642           </ifNotNul l>
  22643                                         
  22644           <ifNull>
  22645                                               
  22646            <action 
  22647             action="se tAttribute
  22648             attribute= "ID" 
  22649             indexed="t rue"
  22650            >
  22651             fimProblem Name
  22652            </action>
  22653                                          
  22654           </ifNull>
  22655                                     
  22656          </mapping>
  22657                                    
  22658          <mapping>
  22659                                         
  22660           <property>
  22661            values.pro blem
  22662           </property >
  22663                                         
  22664           <xpath>
  22665            cda:tr/cda :td/cda:co ntent[@ID= 'fimProble mDetail']
  22666           </xpath>
  22667                                         
  22668           <ifNotNull >
  22669                                               
  22670            <action 
  22671             action="se tAttribute
  22672             attribute= "ID" 
  22673             indexed="t rue"
  22674            >
  22675             fimProblem Detail
  22676            </action>
  22677                                          
  22678           </ifNotNul l>
  22679                                         
  22680           <ifNull>
  22681                                               
  22682            <action 
  22683             action="se tAttribute
  22684             attribute= "ID" 
  22685             indexed="t rue"
  22686            >
  22687             fimProblem Detail
  22688            </action>
  22689                                          
  22690           </ifNull>
  22691                                     
  22692          </mapping>
  22693                                    
  22694          <mapping>
  22695                                         
  22696           <property>
  22697            values.mem ory
  22698           </property >
  22699                                         
  22700           <xpath>
  22701            cda:tr/cda :td/cda:co ntent[@ID= 'fimMemory ']
  22702           </xpath>
  22703                                         
  22704           <ifNotNull >
  22705                                               
  22706            <action 
  22707             action="se tAttribute
  22708             attribute= "ID" 
  22709             indexed="t rue"
  22710            >
  22711             fimMemory
  22712            </action>
  22713                                               
  22714            <action 
  22715             action="se tValue" 
  22716            />
  22717                                          
  22718           </ifNotNul l>
  22719                                         
  22720           <ifNull>
  22721                                               
  22722            <action 
  22723             action="se tAttribute
  22724             attribute= "ID" 
  22725             indexed="t rue"
  22726            >
  22727             fimMemory
  22728            </action>
  22729                                          
  22730           </ifNull>
  22731                                     
  22732          </mapping>
  22733                                    
  22734          <mapping>
  22735                                         
  22736           <property>
  22737            values.mem ory
  22738           </property >
  22739                                         
  22740           <xpath>
  22741            cda:tr/cda :td/cda:co ntent[@ID= 'fimMemory Name']
  22742           </xpath>
  22743                                         
  22744           <ifNotNull >
  22745                                               
  22746            <action 
  22747             action="se tAttribute
  22748             attribute= "ID" 
  22749             indexed="t rue"
  22750            >
  22751             fimMemoryN ame
  22752            </action>
  22753                                          
  22754           </ifNotNul l>
  22755                                         
  22756           <ifNull>
  22757                                               
  22758            <action 
  22759             action="se tAttribute
  22760             attribute= "ID" 
  22761             indexed="t rue"
  22762            >
  22763             fimMemoryN ame
  22764            </action>
  22765                                          
  22766           </ifNull>
  22767                                     
  22768          </mapping>
  22769                                    
  22770          <mapping>
  22771                                         
  22772           <property>
  22773            values.mem ory
  22774           </property >
  22775                                         
  22776           <xpath>
  22777            cda:tr/cda :td/cda:co ntent[@ID= 'fimMemory Detail']
  22778           </xpath>
  22779                                         
  22780           <ifNotNull >
  22781                                               
  22782            <action 
  22783             action="se tAttribute
  22784             attribute= "ID" 
  22785             indexed="t rue"
  22786            >
  22787             fimMemoryD etail
  22788            </action>
  22789                                          
  22790           </ifNotNul l>
  22791                                         
  22792           <ifNull>
  22793                                               
  22794            <action 
  22795             action="se tAttribute
  22796             attribute= "ID" 
  22797             indexed="t rue"
  22798            >
  22799             fimMemoryD etail
  22800            </action>
  22801                                          
  22802           </ifNull>
  22803                                     
  22804          </mapping>
  22805                                    
  22806          <mapping>
  22807                                         
  22808           <property>
  22809            values.tot al
  22810           </property >
  22811                                         
  22812           <xpath>
  22813            cda:tr/cda :td/cda:co ntent[@ID= 'fimTotal' ]
  22814           </xpath>
  22815                                         
  22816           <ifNotNull >
  22817                                               
  22818            <action 
  22819             action="se tAttribute
  22820             attribute= "ID" 
  22821             indexed="t rue"
  22822            >
  22823             fimTotal
  22824            </action>
  22825                                               
  22826            <action 
  22827             action="se tValue" 
  22828            />
  22829                                          
  22830           </ifNotNul l>
  22831                                         
  22832           <ifNull>
  22833                                               
  22834            <action 
  22835             action="se tAttribute
  22836             attribute= "ID" 
  22837             indexed="t rue"
  22838            >
  22839             fimTotal
  22840            </action>
  22841                                          
  22842           </ifNull>
  22843                                     
  22844          </mapping>
  22845                                    
  22846          <mapping>
  22847                                         
  22848           <property>
  22849            values.tot al
  22850           </property >
  22851                                         
  22852           <xpath>
  22853            cda:tr/cda :td/cda:co ntent[@ID= 'fimTotalN ame']
  22854           </xpath>
  22855                                         
  22856           <ifNotNull >
  22857                                               
  22858            <action 
  22859             action="se tAttribute
  22860             attribute= "ID" 
  22861             indexed="t rue"
  22862            >
  22863             fimTotalNa me
  22864            </action>
  22865                                          
  22866           </ifNotNul l>
  22867                                         
  22868           <ifNull>
  22869                                               
  22870            <action 
  22871             action="se tAttribute
  22872             attribute= "ID" 
  22873             indexed="t rue"
  22874            >
  22875             fimTotalNa me
  22876            </action>
  22877                                          
  22878           </ifNull>
  22879                                     
  22880          </mapping>
  22881                                    
  22882          <mapping>
  22883                                         
  22884           <property>
  22885            values.tot al
  22886           </property >
  22887                                         
  22888           <xpath>
  22889            cda:tr/cda :td/cda:co ntent[@ID= 'fimTotalD etail']
  22890           </xpath>
  22891                                         
  22892           <ifNotNull >
  22893                                               
  22894            <action 
  22895             action="se tAttribute
  22896             attribute= "ID" 
  22897             indexed="t rue"
  22898            >
  22899             fimTotalDe tail
  22900            </action>
  22901                                          
  22902           </ifNotNul l>
  22903                                         
  22904           <ifNull>
  22905                                               
  22906            <action 
  22907             action="se tAttribute
  22908             attribute= "ID" 
  22909             indexed="t rue"
  22910            >
  22911             fimTotalDe tail
  22912            </action>
  22913                                          
  22914           </ifNull>
  22915                                     
  22916          </mapping>
  22917                               
  22918         </mappings >
  22919                          
  22920        </mapping>                  
  22921                     
  22922       </mappings >             
  22923               
  22924      </mapping>
  22925              
  22926      <!-- FUNCT IONAL INDE PENDENCE M EASUREMENT S SECTION  -->
  22927              
  22928      <mapping>
  22929                    
  22930       <property 
  22931        collection ="true" 
  22932        optional=" true"
  22933       >
  22934        functional Independen ceMeasurem ents
  22935       </property >
  22936                    
  22937       <xpath>
  22938        /cda:Clini calDocumen t/cda:comp onent/cda: structured Body/cda:c omponent[c da:section /cda:templ ateId/@roo t='2.16.84 0.1.113883 .10.20.22. 2.14']/cda :section/c da:entry[c da:organiz er/cda:tem plateId/@r oot='2.16. 840.1.1138 83.10.20.2 2.4.66']
  22939       </xpath>
  22940                    
  22941       <ifNotNull >
  22942                         
  22943        <action 
  22944         action="ev aluateMapp ings" 
  22945        />
  22946                     
  22947       </ifNotNul l>
  22948                    
  22949       <ifNull>
  22950                     
  22951       </ifNull>
  22952                    
  22953       <mappings>
  22954                         
  22955        <mapping>
  22956                              
  22957         <property 
  22958          collection ="true" 
  22959         >
  22960          assessment s,assessme nts.assess ment
  22961         </property >
  22962                              
  22963         <xpath>
  22964          .
  22965         </xpath>
  22966                              
  22967         <ifNotNull >
  22968                                    
  22969          <action 
  22970           action="ev aluateMapp ings"
  22971          />
  22972                               
  22973         </ifNotNul l>
  22974                              
  22975         <mappings>
  22976                                    
  22977          <mapping>
  22978                                         
  22979           <property>
  22980            assessment DateRaw
  22981           </property >
  22982                                         
  22983           <xpath>
  22984            cda:organi zer/cda:ef fectiveTim e/cda:low[ @value='as sessTime']
  22985           </xpath>
  22986                                         
  22987           <ifNotNull >
  22988                                               
  22989            <action 
  22990             action="se tAttribute
  22991             attribute= "value"
  22992            />
  22993                                          
  22994           </ifNotNul l>
  22995                                         
  22996           <ifNull>
  22997                                               
  22998            <action 
  22999             action="se tAttribute
  23000             attribute= "value"
  23001            />
  23002                                          
  23003           </ifNull>
  23004                                     
  23005          </mapping>
  23006                                    
  23007          <mapping>
  23008                                         
  23009           <property>
  23010            assessment Type
  23011           </property >
  23012                                         
  23013           <xpath>
  23014            cda:organi zer/cda:co de/cda:ori ginalText/ cda:refere nce[@value ='#fimAsse ssment']
  23015           </xpath>
  23016                                         
  23017           <ifNotNull >
  23018                                               
  23019            <action 
  23020             action="se tAttribute
  23021             attribute= "value" 
  23022             indexed="t rue"
  23023            >
  23024             #fimAssess ment
  23025            </action>
  23026                                          
  23027           </ifNotNul l>
  23028                                         
  23029           <ifNull>
  23030                                               
  23031            <action 
  23032             action="se tAttribute
  23033             attribute= "value" 
  23034             indexed="t rue"
  23035            >
  23036             #fimAssess ment
  23037            </action>
  23038                                          
  23039           </ifNull>
  23040                                     
  23041          </mapping>
  23042                                    
  23043          <mapping>
  23044                                         
  23045           <property>
  23046            assessment DateRaw
  23047           </property >
  23048                                         
  23049           <xpath>
  23050            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te xt/cda:ref erence/@va lue='#fimE atName']/c da:effecti veTime/cda :low[@valu e='skillTi me']
  23051           </xpath>
  23052                                         
  23053           <ifNotNull >
  23054                                               
  23055            <action 
  23056             action="se tAttribute
  23057             attribute= "value"
  23058            />
  23059                                          
  23060           </ifNotNul l>
  23061                                         
  23062           <ifNull>
  23063                                               
  23064            <action 
  23065             action="se tAttribute
  23066             attribute= "value"
  23067            />
  23068                                          
  23069           </ifNull>
  23070                                     
  23071          </mapping>
  23072                                    
  23073          <mapping>
  23074                                         
  23075           <property>
  23076            values.eat
  23077           </property >
  23078                                         
  23079           <xpath>
  23080            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:value/ cda:origin alText/cda :reference [@value='# fimEat']
  23081           </xpath>
  23082                                         
  23083           <ifNotNull >
  23084                                               
  23085            <action 
  23086             action="se tAttribute
  23087             attribute= "value" 
  23088             indexed="t rue"
  23089            >
  23090             #fimEat
  23091            </action>
  23092                                          
  23093           </ifNotNul l>
  23094                                         
  23095           <ifNull>
  23096                                               
  23097            <action 
  23098             action="se tAttribute
  23099             attribute= "value" 
  23100             indexed="t rue"
  23101            >
  23102             #fimEat
  23103            </action>
  23104                                          
  23105           </ifNull>
  23106                                     
  23107          </mapping>
  23108                                    
  23109          <mapping>
  23110                                         
  23111           <property>
  23112            values.eat
  23113           </property >
  23114                                         
  23115           <xpath>
  23116            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:text/c da:referen ce[@value= '#fimEatNa me']
  23117           </xpath>
  23118                                         
  23119           <ifNotNull >
  23120                                               
  23121            <action 
  23122             action="se tAttribute
  23123             attribute= "value" 
  23124             indexed="t rue"
  23125            >
  23126             #fimEatNam e
  23127            </action>
  23128                                          
  23129           </ifNotNul l>
  23130                                         
  23131           <ifNull>
  23132                                               
  23133            <action 
  23134             action="se tAttribute
  23135             attribute= "value" 
  23136             indexed="t rue"
  23137            >
  23138             #fimEatNam e
  23139            </action>
  23140                                          
  23141           </ifNull>
  23142                                     
  23143          </mapping>
  23144                                    
  23145          <mapping>
  23146                                         
  23147           <property>
  23148            values.eat
  23149           </property >
  23150                                         
  23151           <xpath>
  23152            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:entryR elationshi p/cda:act[ cda:templa teId/@root ='2.16.840 .1.113883. 10.20.22.4 .64']/cda: text/cda:r eference[@ value='#fi mEatDetail ']
  23153           </xpath>
  23154                                         
  23155           <ifNotNull >
  23156                                               
  23157            <action 
  23158             action="se tAttribute
  23159             attribute= "value" 
  23160             indexed="t rue"
  23161            >
  23162             #fimEatDet ail
  23163            </action>
  23164                                          
  23165           </ifNotNul l>
  23166                                         
  23167           <ifNull>
  23168                                               
  23169            <action 
  23170             action="se tAttribute
  23171             attribute= "value" 
  23172             indexed="t rue"
  23173            >
  23174             #fimEatDet ail
  23175            </action>
  23176                                          
  23177           </ifNull>
  23178                                     
  23179          </mapping>
  23180                                    
  23181          <mapping>
  23182                                         
  23183           <property>
  23184            assessment DateRaw
  23185           </property >
  23186                                         
  23187           <xpath>
  23188            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te xt/cda:ref erence/@va lue='#fimG roomName'] /cda:effec tiveTime/c da:low[@va lue='skill Time']
  23189           </xpath>
  23190                                         
  23191           <ifNotNull >
  23192                                               
  23193            <action 
  23194             action="se tAttribute
  23195             attribute= "value"
  23196            />
  23197                                          
  23198           </ifNotNul l>
  23199                                         
  23200           <ifNull>
  23201                                               
  23202            <action 
  23203             action="se tAttribute
  23204             attribute= "value"
  23205            />
  23206                                          
  23207           </ifNull>
  23208                                     
  23209          </mapping>
  23210                                    
  23211          <mapping>
  23212                                         
  23213           <property>
  23214            values.gro om
  23215           </property >
  23216                                         
  23217           <xpath>
  23218            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:value/ cda:origin alText/cda :reference [@value='# fimGroom']
  23219           </xpath>
  23220                                         
  23221           <ifNotNull >
  23222                                               
  23223            <action 
  23224             action="se tAttribute
  23225             attribute= "value" 
  23226             indexed="t rue"
  23227            >
  23228             #fimGroom
  23229            </action>
  23230                                          
  23231           </ifNotNul l>
  23232                                         
  23233           <ifNull>
  23234                                               
  23235            <action 
  23236             action="se tAttribute
  23237             attribute= "value" 
  23238             indexed="t rue"
  23239            >
  23240             #fimGroom
  23241            </action>
  23242                                          
  23243           </ifNull>
  23244                                     
  23245          </mapping>
  23246                                    
  23247          <mapping>
  23248                                         
  23249           <property>
  23250            values.gro om
  23251           </property >
  23252                                         
  23253           <xpath>
  23254            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:text/c da:referen ce[@value= '#fimGroom Name']
  23255           </xpath>
  23256                                         
  23257           <ifNotNull >
  23258                                               
  23259            <action 
  23260             action="se tAttribute
  23261             attribute= "value" 
  23262             indexed="t rue"
  23263            >
  23264             #fimGroomN ame
  23265            </action>
  23266                                          
  23267           </ifNotNul l>
  23268                                         
  23269           <ifNull>
  23270                                               
  23271            <action 
  23272             action="se tAttribute
  23273             attribute= "value" 
  23274             indexed="t rue"
  23275            >
  23276             #fimGroomN ame
  23277            </action>
  23278                                          
  23279           </ifNull>
  23280                                     
  23281          </mapping>
  23282                                    
  23283          <mapping>
  23284                                         
  23285           <property>
  23286            values.gro om
  23287           </property >
  23288                                         
  23289           <xpath>
  23290            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:entryR elationshi p/cda:act[ cda:templa teId/@root ='2.16.840 .1.113883. 10.20.22.4 .64']/cda: text/cda:r eference[@ value='#fi mGroomDeta il']
  23291           </xpath>
  23292                                         
  23293           <ifNotNull >
  23294                                               
  23295            <action 
  23296             action="se tAttribute
  23297             attribute= "value" 
  23298             indexed="t rue"
  23299            >
  23300             #fimGroomD etail
  23301            </action>
  23302                                          
  23303           </ifNotNul l>
  23304                                         
  23305           <ifNull>
  23306                                               
  23307            <action 
  23308             action="se tAttribute
  23309             attribute= "value" 
  23310             indexed="t rue"
  23311            >
  23312             #fimGroomD etail
  23313            </action>
  23314                                          
  23315           </ifNull>
  23316                                     
  23317          </mapping>
  23318                                    
  23319          <mapping>
  23320                                         
  23321           <property>
  23322            assessment DateRaw
  23323           </property >
  23324                                         
  23325           <xpath>
  23326            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te xt/cda:ref erence/@va lue='#fimB athName']/ cda:effect iveTime/cd a:low[@val ue='skillT ime']
  23327           </xpath>
  23328                                         
  23329           <ifNotNull >
  23330                                               
  23331            <action 
  23332             action="se tAttribute
  23333             attribute= "value"
  23334            />
  23335                                          
  23336           </ifNotNul l>
  23337                                         
  23338           <ifNull>
  23339                                               
  23340            <action 
  23341             action="se tAttribute
  23342             attribute= "value"
  23343            />
  23344                                          
  23345           </ifNull>
  23346                                     
  23347          </mapping>
  23348                                    
  23349          <mapping>
  23350                                         
  23351           <property>
  23352            values.bat h
  23353           </property >
  23354                                         
  23355           <xpath>
  23356            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:value/ cda:origin alText/cda :reference [@value='# fimBath']
  23357           </xpath>
  23358                                         
  23359           <ifNotNull >
  23360                                               
  23361            <action 
  23362             action="se tAttribute
  23363             attribute= "value" 
  23364             indexed="t rue"
  23365            >
  23366             #fimBath
  23367            </action>
  23368                                          
  23369           </ifNotNul l>
  23370                                         
  23371           <ifNull>
  23372                                               
  23373            <action 
  23374             action="se tAttribute
  23375             attribute= "value" 
  23376             indexed="t rue"
  23377            >
  23378             #fimBath
  23379            </action>
  23380                                          
  23381           </ifNull>
  23382                                     
  23383          </mapping>
  23384                                    
  23385          <mapping>
  23386                                         
  23387           <property>
  23388            values.bat h
  23389           </property >
  23390                                         
  23391           <xpath>
  23392            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:text/c da:referen ce[@value= '#fimBathN ame']
  23393           </xpath>
  23394                                         
  23395           <ifNotNull >
  23396                                               
  23397            <action 
  23398             action="se tAttribute
  23399             attribute= "value" 
  23400             indexed="t rue"
  23401            >
  23402             #fimBathNa me
  23403            </action>
  23404                                          
  23405           </ifNotNul l>
  23406                                         
  23407           <ifNull>
  23408                                               
  23409            <action 
  23410             action="se tAttribute
  23411             attribute= "value" 
  23412             indexed="t rue"
  23413            >
  23414             #fimBathNa me
  23415            </action>
  23416                                          
  23417           </ifNull>
  23418                                     
  23419          </mapping>
  23420                                    
  23421          <mapping>
  23422                                         
  23423           <property>
  23424            values.bat h
  23425           </property >
  23426                                         
  23427           <xpath>
  23428            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:entryR elationshi p/cda:act[ cda:templa teId/@root ='2.16.840 .1.113883. 10.20.22.4 .64']/cda: text/cda:r eference[@ value='#fi mBathDetai l']
  23429           </xpath>
  23430                                         
  23431           <ifNotNull >
  23432                                               
  23433            <action 
  23434             action="se tAttribute
  23435             attribute= "value" 
  23436             indexed="t rue"
  23437            >
  23438             #fimBathDe tail
  23439            </action>
  23440                                          
  23441           </ifNotNul l>
  23442                                         
  23443           <ifNull>
  23444                                               
  23445            <action 
  23446             action="se tAttribute
  23447             attribute= "value" 
  23448             indexed="t rue"
  23449            >
  23450             #fimBathDe tail
  23451            </action>
  23452                                          
  23453           </ifNull>
  23454                                     
  23455          </mapping>
  23456                                    
  23457          <mapping>
  23458                                         
  23459           <property>
  23460            assessment DateRaw
  23461           </property >
  23462                                         
  23463           <xpath>
  23464            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te xt/cda:ref erence/@va lue='#fimD ressUpName ']/cda:eff ectiveTime /cda:low[@ value='ski llTime']
  23465           </xpath>
  23466                                         
  23467           <ifNotNull >
  23468                                               
  23469            <action 
  23470             action="se tAttribute
  23471             attribute= "value"
  23472            />
  23473                                          
  23474           </ifNotNul l>
  23475                                         
  23476           <ifNull>
  23477                                               
  23478            <action 
  23479             action="se tAttribute
  23480             attribute= "value"
  23481            />
  23482                                          
  23483           </ifNull>
  23484                                     
  23485          </mapping>
  23486                                    
  23487          <mapping>
  23488                                         
  23489           <property>
  23490            values.dre ssUp
  23491           </property >
  23492                                         
  23493           <xpath>
  23494            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:value/ cda:origin alText/cda :reference [@value='# fimDressUp ']
  23495           </xpath>
  23496                                         
  23497           <ifNotNull >
  23498                                               
  23499            <action 
  23500             action="se tAttribute
  23501             attribute= "value" 
  23502             indexed="t rue"
  23503            >
  23504             #fimDressU p
  23505            </action>
  23506                                          
  23507           </ifNotNul l>
  23508                                         
  23509           <ifNull>
  23510                                               
  23511            <action 
  23512             action="se tAttribute
  23513             attribute= "value" 
  23514             indexed="t rue"
  23515            >
  23516             #fimDressU p
  23517            </action>
  23518                                          
  23519           </ifNull>
  23520                                     
  23521          </mapping>
  23522                                    
  23523          <mapping>
  23524                                         
  23525           <property>
  23526            values.dre ssUp
  23527           </property >
  23528                                         
  23529           <xpath>
  23530            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:text/c da:referen ce[@value= '#fimDress UpName']
  23531           </xpath>
  23532                                         
  23533           <ifNotNull >
  23534                                               
  23535            <action 
  23536             action="se tAttribute
  23537             attribute= "value" 
  23538             indexed="t rue"
  23539            >
  23540             #fimDressU pName
  23541            </action>
  23542                                          
  23543           </ifNotNul l>
  23544                                         
  23545           <ifNull>
  23546                                               
  23547            <action 
  23548             action="se tAttribute
  23549             attribute= "value" 
  23550             indexed="t rue"
  23551            >
  23552             #fimDressU pName
  23553            </action>
  23554                                          
  23555           </ifNull>
  23556                                     
  23557          </mapping>
  23558                                    
  23559          <mapping>
  23560                                         
  23561           <property>
  23562            values.dre ssUp
  23563           </property >
  23564                                         
  23565           <xpath>
  23566            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:entryR elationshi p/cda:act[ cda:templa teId/@root ='2.16.840 .1.113883. 10.20.22.4 .64']/cda: text/cda:r eference[@ value='#fi mDressUpDe tail']
  23567           </xpath>
  23568                                         
  23569           <ifNotNull >
  23570                                               
  23571            <action 
  23572             action="se tAttribute
  23573             attribute= "value" 
  23574             indexed="t rue"
  23575            >
  23576             #fimDressU pDetail
  23577            </action>
  23578                                          
  23579           </ifNotNul l>
  23580                                         
  23581           <ifNull>
  23582                                               
  23583            <action 
  23584             action="se tAttribute
  23585             attribute= "value" 
  23586             indexed="t rue"
  23587            >
  23588             #fimDressU pDetail
  23589            </action>
  23590                                          
  23591           </ifNull>
  23592                                     
  23593          </mapping>
  23594                                    
  23595          <mapping>
  23596                                         
  23597           <property>
  23598            assessment DateRaw
  23599           </property >
  23600                                         
  23601           <xpath>
  23602            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te xt/cda:ref erence/@va lue='#fimD ressLoName ']/cda:eff ectiveTime /cda:low[@ value='ski llTime']
  23603           </xpath>
  23604                                         
  23605           <ifNotNull >
  23606                                               
  23607            <action 
  23608             action="se tAttribute
  23609             attribute= "value"
  23610            />
  23611                                          
  23612           </ifNotNul l>
  23613                                         
  23614           <ifNull>
  23615                                               
  23616            <action 
  23617             action="se tAttribute
  23618             attribute= "value"
  23619            />
  23620                                          
  23621           </ifNull>
  23622                                     
  23623          </mapping>
  23624                                    
  23625          <mapping>
  23626                                         
  23627           <property>
  23628            values.dre ssLo
  23629           </property >
  23630                                         
  23631           <xpath>
  23632            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:value/ cda:origin alText/cda :reference [@value='# fimDressLo ']
  23633           </xpath>
  23634                                         
  23635           <ifNotNull >
  23636                                               
  23637            <action 
  23638             action="se tAttribute
  23639             attribute= "value" 
  23640             indexed="t rue"
  23641            >
  23642             #fimDressL o
  23643            </action>
  23644                                          
  23645           </ifNotNul l>
  23646                                         
  23647           <ifNull>
  23648                                               
  23649            <action 
  23650             action="se tAttribute
  23651             attribute= "value" 
  23652             indexed="t rue"
  23653            >
  23654             #fimDressL o
  23655            </action>
  23656                                          
  23657           </ifNull>
  23658                                     
  23659          </mapping>
  23660                                    
  23661          <mapping>
  23662                                         
  23663           <property>
  23664            values.dre ssLo
  23665           </property >
  23666                                         
  23667           <xpath>
  23668            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:text/c da:referen ce[@value= '#fimDress LoName']
  23669           </xpath>
  23670                                         
  23671           <ifNotNull >
  23672                                               
  23673            <action 
  23674             action="se tAttribute
  23675             attribute= "value" 
  23676             indexed="t rue"
  23677            >
  23678             #fimDressL oName
  23679            </action>
  23680                                          
  23681           </ifNotNul l>
  23682                                         
  23683           <ifNull>
  23684                                               
  23685            <action 
  23686             action="se tAttribute
  23687             attribute= "value" 
  23688             indexed="t rue"
  23689            >
  23690             #fimDressL oName
  23691            </action>
  23692                                          
  23693           </ifNull>
  23694                                     
  23695          </mapping>
  23696                                    
  23697          <mapping>
  23698                                         
  23699           <property>
  23700            values.dre ssLo
  23701           </property >
  23702                                         
  23703           <xpath>
  23704            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:entryR elationshi p/cda:act[ cda:templa teId/@root ='2.16.840 .1.113883. 10.20.22.4 .64']/cda: text/cda:r eference[@ value='#fi mDressLoDe tail']
  23705           </xpath>
  23706                                         
  23707           <ifNotNull >
  23708                                               
  23709            <action 
  23710             action="se tAttribute
  23711             attribute= "value" 
  23712             indexed="t rue"
  23713            >
  23714             #fimDressL oDetail
  23715            </action>
  23716                                          
  23717           </ifNotNul l>
  23718                                         
  23719           <ifNull>
  23720                                               
  23721            <action 
  23722             action="se tAttribute
  23723             attribute= "value" 
  23724             indexed="t rue"
  23725            >
  23726             #fimDressL oDetail
  23727            </action>
  23728                                          
  23729           </ifNull>
  23730                                     
  23731          </mapping>
  23732                                    
  23733          <mapping>
  23734                                         
  23735           <property>
  23736            assessment DateRaw
  23737           </property >
  23738                                         
  23739           <xpath>
  23740            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te xt/cda:ref erence/@va lue='#fimT oiletName' ]/cda:effe ctiveTime/ cda:low[@v alue='skil lTime']
  23741           </xpath>
  23742                                         
  23743           <ifNotNull >
  23744                                               
  23745            <action 
  23746             action="se tAttribute
  23747             attribute= "value"
  23748            />
  23749                                          
  23750           </ifNotNul l>
  23751                                         
  23752           <ifNull>
  23753                                               
  23754            <action 
  23755             action="se tAttribute
  23756             attribute= "value"
  23757            />
  23758                                          
  23759           </ifNull>
  23760                                     
  23761          </mapping>
  23762                                    
  23763          <mapping>
  23764                                         
  23765           <property>
  23766            values.toi let
  23767           </property >
  23768                                         
  23769           <xpath>
  23770            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:value/ cda:origin alText/cda :reference [@value='# fimToilet' ]
  23771           </xpath>
  23772                                         
  23773           <ifNotNull >
  23774                                               
  23775            <action 
  23776             action="se tAttribute
  23777             attribute= "value" 
  23778             indexed="t rue"
  23779            >
  23780             #fimToilet
  23781            </action>
  23782                                          
  23783           </ifNotNul l>
  23784                                         
  23785           <ifNull>
  23786                                               
  23787            <action 
  23788             action="se tAttribute
  23789             attribute= "value" 
  23790             indexed="t rue"
  23791            >
  23792             #fimToilet
  23793            </action>
  23794                                          
  23795           </ifNull>
  23796                                     
  23797          </mapping>
  23798                                    
  23799          <mapping>
  23800                                         
  23801           <property>
  23802            values.toi let
  23803           </property >
  23804                                         
  23805           <xpath>
  23806            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:text/c da:referen ce[@value= '#fimToile tName']
  23807           </xpath>
  23808                                         
  23809           <ifNotNull >
  23810                                               
  23811            <action 
  23812             action="se tAttribute
  23813             attribute= "value" 
  23814             indexed="t rue"
  23815            >
  23816             #fimToilet Name
  23817            </action>
  23818                                          
  23819           </ifNotNul l>
  23820                                         
  23821           <ifNull>
  23822                                               
  23823            <action 
  23824             action="se tAttribute
  23825             attribute= "value" 
  23826             indexed="t rue"
  23827            >
  23828             #fimToilet Name
  23829            </action>
  23830                                          
  23831           </ifNull>
  23832                                     
  23833          </mapping>
  23834                                    
  23835          <mapping>
  23836                                         
  23837           <property>
  23838            values.toi let
  23839           </property >
  23840                                         
  23841           <xpath>
  23842            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:entryR elationshi p/cda:act[ cda:templa teId/@root ='2.16.840 .1.113883. 10.20.22.4 .64']/cda: text/cda:r eference[@ value='#fi mToiletDet ail']
  23843           </xpath>
  23844                                         
  23845           <ifNotNull >
  23846                                               
  23847            <action 
  23848             action="se tAttribute
  23849             attribute= "value" 
  23850             indexed="t rue"
  23851            >
  23852             #fimToilet Detail
  23853            </action>
  23854                                          
  23855           </ifNotNul l>
  23856                                         
  23857           <ifNull>
  23858                                               
  23859            <action 
  23860             action="se tAttribute
  23861             attribute= "value" 
  23862             indexed="t rue"
  23863            >
  23864             #fimToilet Detail
  23865            </action>
  23866                                          
  23867           </ifNull>
  23868                                     
  23869          </mapping>
  23870                                    
  23871          <mapping>
  23872                                         
  23873           <property>
  23874            assessment DateRaw
  23875           </property >
  23876                                         
  23877           <xpath>
  23878            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te xt/cda:ref erence/@va lue='#fimB ladderName ']/cda:eff ectiveTime /cda:low[@ value='ski llTime']
  23879           </xpath>
  23880                                         
  23881           <ifNotNull >
  23882                                               
  23883            <action 
  23884             action="se tAttribute
  23885             attribute= "value"
  23886            />
  23887                                          
  23888           </ifNotNul l>
  23889                                         
  23890           <ifNull>
  23891                                               
  23892            <action 
  23893             action="se tAttribute
  23894             attribute= "value"
  23895            />
  23896                                          
  23897           </ifNull>
  23898                                     
  23899          </mapping>
  23900                                    
  23901          <mapping>
  23902                                         
  23903           <property>
  23904            values.bla dder
  23905           </property >
  23906                                         
  23907           <xpath>
  23908            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:value/ cda:origin alText/cda :reference [@value='# fimBladder ']
  23909           </xpath>
  23910                                         
  23911           <ifNotNull >
  23912                                               
  23913            <action 
  23914             action="se tAttribute
  23915             attribute= "value" 
  23916             indexed="t rue"
  23917            >
  23918             #fimBladde r
  23919            </action>
  23920                                          
  23921           </ifNotNul l>
  23922                                         
  23923           <ifNull>
  23924                                               
  23925            <action 
  23926             action="se tAttribute
  23927             attribute= "value" 
  23928             indexed="t rue"
  23929            >
  23930             #fimBladde r
  23931            </action>
  23932                                          
  23933           </ifNull>
  23934                                     
  23935          </mapping>
  23936                                    
  23937          <mapping>
  23938                                         
  23939           <property>
  23940            values.bla dder
  23941           </property >
  23942                                         
  23943           <xpath>
  23944            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:text/c da:referen ce[@value= '#fimBladd erName']
  23945           </xpath>
  23946                                         
  23947           <ifNotNull >
  23948                                               
  23949            <action 
  23950             action="se tAttribute
  23951             attribute= "value" 
  23952             indexed="t rue"
  23953            >
  23954             #fimBladde rName
  23955            </action>
  23956                                          
  23957           </ifNotNul l>
  23958                                         
  23959           <ifNull>
  23960                                               
  23961            <action 
  23962             action="se tAttribute
  23963             attribute= "value" 
  23964             indexed="t rue"
  23965            >
  23966             #fimBladde rName
  23967            </action>
  23968                                          
  23969           </ifNull>
  23970                                     
  23971          </mapping>
  23972                                    
  23973          <mapping>
  23974                                         
  23975           <property>
  23976            values.bla dder
  23977           </property >
  23978                                         
  23979           <xpath>
  23980            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:entryR elationshi p/cda:act[ cda:templa teId/@root ='2.16.840 .1.113883. 10.20.22.4 .64']/cda: text/cda:r eference[@ value='#fi mBladderDe tail']
  23981           </xpath>
  23982                                         
  23983           <ifNotNull >
  23984                                               
  23985            <action 
  23986             action="se tAttribute
  23987             attribute= "value" 
  23988             indexed="t rue"
  23989            >
  23990             #fimBladde rDetail
  23991            </action>
  23992                                          
  23993           </ifNotNul l>
  23994                                         
  23995           <ifNull>
  23996                                               
  23997            <action 
  23998             action="se tAttribute
  23999             attribute= "value" 
  24000             indexed="t rue"
  24001            >
  24002             #fimBladde rDetail
  24003            </action>
  24004                                          
  24005           </ifNull>
  24006                                     
  24007          </mapping>
  24008                                    
  24009          <mapping>
  24010                                         
  24011           <property>
  24012            assessment DateRaw
  24013           </property >
  24014                                         
  24015           <xpath>
  24016            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te xt/cda:ref erence/@va lue='#fimB owelName'] /cda:effec tiveTime/c da:low[@va lue='skill Time']
  24017           </xpath>
  24018                                         
  24019           <ifNotNull >
  24020                                               
  24021            <action 
  24022             action="se tAttribute
  24023             attribute= "value"
  24024            />
  24025                                          
  24026           </ifNotNul l>
  24027                                         
  24028           <ifNull>
  24029                                               
  24030            <action 
  24031             action="se tAttribute
  24032             attribute= "value"
  24033            />
  24034                                          
  24035           </ifNull>
  24036                                     
  24037          </mapping>
  24038                                    
  24039          <mapping>
  24040                                         
  24041           <property>
  24042            values.bow el
  24043           </property >
  24044                                         
  24045           <xpath>
  24046            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:value/ cda:origin alText/cda :reference [@value='# fimBowel']
  24047           </xpath>
  24048                                         
  24049           <ifNotNull >
  24050                                               
  24051            <action 
  24052             action="se tAttribute
  24053             attribute= "value" 
  24054             indexed="t rue"
  24055            >
  24056             #fimBowel
  24057            </action>
  24058                                          
  24059           </ifNotNul l>
  24060                                         
  24061           <ifNull>
  24062                                               
  24063            <action 
  24064             action="se tAttribute
  24065             attribute= "value" 
  24066             indexed="t rue"
  24067            >
  24068             #fimBowel
  24069            </action>
  24070                                          
  24071           </ifNull>
  24072                                     
  24073          </mapping>
  24074                                    
  24075          <mapping>
  24076                                         
  24077           <property>
  24078            values.bow el
  24079           </property >
  24080                                         
  24081           <xpath>
  24082            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:text/c da:referen ce[@value= '#fimBowel Name']
  24083           </xpath>
  24084                                         
  24085           <ifNotNull >
  24086                                               
  24087            <action 
  24088             action="se tAttribute
  24089             attribute= "value" 
  24090             indexed="t rue"
  24091            >
  24092             #fimBowelN ame
  24093            </action>
  24094                                          
  24095           </ifNotNul l>
  24096                                         
  24097           <ifNull>
  24098                                               
  24099            <action 
  24100             action="se tAttribute
  24101             attribute= "value" 
  24102             indexed="t rue"
  24103            >
  24104             #fimBowelN ame
  24105            </action>
  24106                                          
  24107           </ifNull>
  24108                                     
  24109          </mapping>
  24110                                    
  24111          <mapping>
  24112                                         
  24113           <property>
  24114            values.bow el
  24115           </property >
  24116                                         
  24117           <xpath>
  24118            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:entryR elationshi p/cda:act[ cda:templa teId/@root ='2.16.840 .1.113883. 10.20.22.4 .64']/cda: text/cda:r eference[@ value='#fi mBowelDeta il']
  24119           </xpath>
  24120                                         
  24121           <ifNotNull >
  24122                                               
  24123            <action 
  24124             action="se tAttribute
  24125             attribute= "value" 
  24126             indexed="t rue"
  24127            >
  24128             #fimBowelD etail
  24129            </action>
  24130                                          
  24131           </ifNotNul l>
  24132                                         
  24133           <ifNull>
  24134                                               
  24135            <action 
  24136             action="se tAttribute
  24137             attribute= "value" 
  24138             indexed="t rue"
  24139            >
  24140             #fimBowelD etail
  24141            </action>
  24142                                          
  24143           </ifNull>
  24144                                     
  24145          </mapping>
  24146                                    
  24147          <mapping>
  24148                                         
  24149           <property>
  24150            assessment DateRaw
  24151           </property >
  24152                                         
  24153           <xpath>
  24154            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te xt/cda:ref erence/@va lue='#fimT ransChairN ame']/cda: effectiveT ime/cda:lo w[@value=' skillTime' ]
  24155           </xpath>
  24156                                         
  24157           <ifNotNull >
  24158                                               
  24159            <action 
  24160             action="se tAttribute
  24161             attribute= "value"
  24162            />
  24163                                          
  24164           </ifNotNul l>
  24165                                         
  24166           <ifNull>
  24167                                               
  24168            <action 
  24169             action="se tAttribute
  24170             attribute= "value"
  24171            />
  24172                                          
  24173           </ifNull>
  24174                                     
  24175          </mapping>
  24176                                    
  24177          <mapping>
  24178                                         
  24179           <property>
  24180            values.tra nsChair
  24181           </property >
  24182                                         
  24183           <xpath>
  24184            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:value/ cda:origin alText/cda :reference [@value='# fimTransCh air']
  24185           </xpath>
  24186                                         
  24187           <ifNotNull >
  24188                                               
  24189            <action 
  24190             action="se tAttribute
  24191             attribute= "value" 
  24192             indexed="t rue"
  24193            >
  24194             #fimTransC hair
  24195            </action>
  24196                                          
  24197           </ifNotNul l>
  24198                                         
  24199           <ifNull>
  24200                                               
  24201            <action 
  24202             action="se tAttribute
  24203             attribute= "value" 
  24204             indexed="t rue"
  24205            >
  24206             #fimTransC hair
  24207            </action>
  24208                                          
  24209           </ifNull>
  24210                                     
  24211          </mapping>
  24212                                    
  24213          <mapping>
  24214                                         
  24215           <property>
  24216            values.tra nsChair
  24217           </property >
  24218                                         
  24219           <xpath>
  24220            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:text/c da:referen ce[@value= '#fimTrans ChairName' ]
  24221           </xpath>
  24222                                         
  24223           <ifNotNull >
  24224                                               
  24225            <action 
  24226             action="se tAttribute
  24227             attribute= "value" 
  24228             indexed="t rue"
  24229            >
  24230             #fimTransC hairName
  24231            </action>
  24232                                          
  24233           </ifNotNul l>
  24234                                         
  24235           <ifNull>
  24236                                               
  24237            <action 
  24238             action="se tAttribute
  24239             attribute= "value" 
  24240             indexed="t rue"
  24241            >
  24242             #fimTransC hairName
  24243            </action>
  24244                                          
  24245           </ifNull>
  24246                                     
  24247          </mapping>
  24248                                    
  24249          <mapping>
  24250                                         
  24251           <property>
  24252            values.tra nsChair
  24253           </property >
  24254                                         
  24255           <xpath>
  24256            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:entryR elationshi p/cda:act[ cda:templa teId/@root ='2.16.840 .1.113883. 10.20.22.4 .64']/cda: text/cda:r eference[@ value='#fi mTransChai rDetail']
  24257           </xpath>
  24258                                         
  24259           <ifNotNull >
  24260                                               
  24261            <action 
  24262             action="se tAttribute
  24263             attribute= "value" 
  24264             indexed="t rue"
  24265            >
  24266             #fimTransC hairDetail
  24267            </action>
  24268                                          
  24269           </ifNotNul l>
  24270                                         
  24271           <ifNull>
  24272                                               
  24273            <action 
  24274             action="se tAttribute
  24275             attribute= "value" 
  24276             indexed="t rue"
  24277            >
  24278             #fimTransC hairDetail
  24279            </action>
  24280                                          
  24281           </ifNull>
  24282                                     
  24283          </mapping>
  24284                                    
  24285          <mapping>
  24286                                         
  24287           <property>
  24288            assessment DateRaw
  24289           </property >
  24290                                         
  24291           <xpath>
  24292            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te xt/cda:ref erence/@va lue='#fimT ransToilet Name']/cda :effective Time/cda:l ow[@value= 'skillTime ']
  24293           </xpath>
  24294                                         
  24295           <ifNotNull >
  24296                                               
  24297            <action 
  24298             action="se tAttribute
  24299             attribute= "value"
  24300            />
  24301                                          
  24302           </ifNotNul l>
  24303                                         
  24304           <ifNull>
  24305                                               
  24306            <action 
  24307             action="se tAttribute
  24308             attribute= "value"
  24309            />
  24310                                          
  24311           </ifNull>
  24312                                     
  24313          </mapping>
  24314                                    
  24315          <mapping>
  24316                                         
  24317           <property>
  24318            values.tra nsToilet
  24319           </property >
  24320                                         
  24321           <xpath>
  24322            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:value/ cda:origin alText/cda :reference [@value='# fimTransTo ilet']
  24323           </xpath>
  24324                                         
  24325           <ifNotNull >
  24326                                               
  24327            <action 
  24328             action="se tAttribute
  24329             attribute= "value" 
  24330             indexed="t rue"
  24331            >
  24332             #fimTransT oilet
  24333            </action>
  24334                                          
  24335           </ifNotNul l>
  24336                                         
  24337           <ifNull>
  24338                                               
  24339            <action 
  24340             action="se tAttribute
  24341             attribute= "value" 
  24342             indexed="t rue"
  24343            >
  24344             #fimTransT oilet
  24345            </action>
  24346                                          
  24347           </ifNull>
  24348                                     
  24349          </mapping>
  24350                                    
  24351          <mapping>
  24352                                         
  24353           <property>
  24354            values.tra nsToilet
  24355           </property >
  24356                                         
  24357           <xpath>
  24358            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:text/c da:referen ce[@value= '#fimTrans ToiletName ']
  24359           </xpath>
  24360                                         
  24361           <ifNotNull >
  24362                                               
  24363            <action 
  24364             action="se tAttribute
  24365             attribute= "value" 
  24366             indexed="t rue"
  24367            >
  24368             #fimTransT oiletName
  24369            </action>
  24370                                          
  24371           </ifNotNul l>
  24372                                         
  24373           <ifNull>
  24374                                               
  24375            <action 
  24376             action="se tAttribute
  24377             attribute= "value" 
  24378             indexed="t rue"
  24379            >
  24380             #fimTransT oiletName
  24381            </action>
  24382                                          
  24383           </ifNull>
  24384                                     
  24385          </mapping>
  24386                                    
  24387          <mapping>
  24388                                         
  24389           <property>
  24390            values.tra nsToilet
  24391           </property >
  24392                                         
  24393           <xpath>
  24394            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:entryR elationshi p/cda:act[ cda:templa teId/@root ='2.16.840 .1.113883. 10.20.22.4 .64']/cda: text/cda:r eference[@ value='#fi mTransToil etDetail']
  24395           </xpath>
  24396                                         
  24397           <ifNotNull >
  24398                                               
  24399            <action 
  24400             action="se tAttribute
  24401             attribute= "value" 
  24402             indexed="t rue"
  24403            >
  24404             #fimTransT oiletDetai l
  24405            </action>
  24406                                          
  24407           </ifNotNul l>
  24408                                         
  24409           <ifNull>
  24410                                               
  24411            <action 
  24412             action="se tAttribute
  24413             attribute= "value" 
  24414             indexed="t rue"
  24415            >
  24416             #fimTransT oiletDetai l
  24417            </action>
  24418                                          
  24419           </ifNull>
  24420                                     
  24421          </mapping>
  24422                                    
  24423          <mapping>
  24424                                         
  24425           <property>
  24426            assessment DateRaw
  24427           </property >
  24428                                         
  24429           <xpath>
  24430            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te xt/cda:ref erence/@va lue='#fimT ransTubNam e']/cda:ef fectiveTim e/cda:low[ @value='sk illTime']
  24431           </xpath>
  24432                                         
  24433           <ifNotNull >
  24434                                               
  24435            <action 
  24436             action="se tAttribute
  24437             attribute= "value"
  24438            />
  24439                                          
  24440           </ifNotNul l>
  24441                                         
  24442           <ifNull>
  24443                                               
  24444            <action 
  24445             action="se tAttribute
  24446             attribute= "value"
  24447            />
  24448                                          
  24449           </ifNull>
  24450                                     
  24451          </mapping>
  24452                                    
  24453          <mapping>
  24454                                         
  24455           <property>
  24456            values.tra nsTub
  24457           </property >
  24458                                         
  24459           <xpath>
  24460            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:value/ cda:origin alText/cda :reference [@value='# fimTransTu b']
  24461           </xpath>
  24462                                         
  24463           <ifNotNull >
  24464                                               
  24465            <action 
  24466             action="se tAttribute
  24467             attribute= "value" 
  24468             indexed="t rue"
  24469            >
  24470             #fimTransT ub
  24471            </action>
  24472                                          
  24473           </ifNotNul l>
  24474                                         
  24475           <ifNull>
  24476                                               
  24477            <action 
  24478             action="se tAttribute
  24479             attribute= "value" 
  24480             indexed="t rue"
  24481            >
  24482             #fimTransT ub
  24483            </action>
  24484                                          
  24485           </ifNull>
  24486                                     
  24487          </mapping>
  24488                                    
  24489          <mapping>
  24490                                         
  24491           <property>
  24492            values.tra nsTub
  24493           </property >
  24494                                         
  24495           <xpath>
  24496            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:text/c da:referen ce[@value= '#fimTrans TubName']
  24497           </xpath>
  24498                                         
  24499           <ifNotNull >
  24500                                               
  24501            <action 
  24502             action="se tAttribute
  24503             attribute= "value" 
  24504             indexed="t rue"
  24505            >
  24506             #fimTransT ubName
  24507            </action>
  24508                                          
  24509           </ifNotNul l>
  24510                                         
  24511           <ifNull>
  24512                                               
  24513            <action 
  24514             action="se tAttribute
  24515             attribute= "value" 
  24516             indexed="t rue"
  24517            >
  24518             #fimTransT ubName
  24519            </action>
  24520                                          
  24521           </ifNull>
  24522                                     
  24523          </mapping>
  24524                                    
  24525          <mapping>
  24526                                         
  24527           <property>
  24528            values.tra nsTub
  24529           </property >
  24530                                         
  24531           <xpath>
  24532            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:entryR elationshi p/cda:act[ cda:templa teId/@root ='2.16.840 .1.113883. 10.20.22.4 .64']/cda: text/cda:r eference[@ value='#fi mTransTubD etail']
  24533           </xpath>
  24534                                         
  24535           <ifNotNull >
  24536                                               
  24537            <action 
  24538             action="se tAttribute
  24539             attribute= "value" 
  24540             indexed="t rue"
  24541            >
  24542             #fimTransT ubDetail
  24543            </action>
  24544                                          
  24545           </ifNotNul l>
  24546                                         
  24547           <ifNull>
  24548                                               
  24549            <action 
  24550             action="se tAttribute
  24551             attribute= "value" 
  24552             indexed="t rue"
  24553            >
  24554             #fimTransT ubDetail
  24555            </action>
  24556                                          
  24557           </ifNull>
  24558                                     
  24559          </mapping>
  24560                                    
  24561          <mapping>
  24562                                         
  24563           <property>
  24564            assessment DateRaw
  24565           </property >
  24566                                         
  24567           <xpath>
  24568            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te xt/cda:ref erence/@va lue='#fimL ocomWalkNa me']/cda:e ffectiveTi me/cda:low [@value='s killTime']
  24569           </xpath>
  24570                                         
  24571           <ifNotNull >
  24572                                               
  24573            <action 
  24574             action="se tAttribute
  24575             attribute= "value"
  24576            />
  24577                                          
  24578           </ifNotNul l>
  24579                                         
  24580           <ifNull>
  24581                                               
  24582            <action 
  24583             action="se tAttribute
  24584             attribute= "value"
  24585            />
  24586                                          
  24587           </ifNull>
  24588                                     
  24589          </mapping>
  24590                                    
  24591          <mapping>
  24592                                         
  24593           <property>
  24594            values.loc omWalk
  24595           </property >
  24596                                         
  24597           <xpath>
  24598            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:value/ cda:origin alText/cda :reference [@value='# fimLocomWa lk']
  24599           </xpath>
  24600                                         
  24601           <ifNotNull >
  24602                                               
  24603            <action 
  24604             action="se tAttribute
  24605             attribute= "value" 
  24606             indexed="t rue"
  24607            >
  24608             #fimLocomW alk
  24609            </action>
  24610                                          
  24611           </ifNotNul l>
  24612                                         
  24613           <ifNull>
  24614                                               
  24615            <action 
  24616             action="se tAttribute
  24617             attribute= "value" 
  24618             indexed="t rue"
  24619            >
  24620             #fimLocomW alk
  24621            </action>
  24622                                          
  24623           </ifNull>
  24624                                     
  24625          </mapping>
  24626                                    
  24627          <mapping>
  24628                                         
  24629           <property>
  24630            values.loc omWalk
  24631           </property >
  24632                                         
  24633           <xpath>
  24634            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:text/c da:referen ce[@value= '#fimLocom WalkName']
  24635           </xpath>
  24636                                         
  24637           <ifNotNull >
  24638                                               
  24639            <action 
  24640             action="se tAttribute
  24641             attribute= "value" 
  24642             indexed="t rue"
  24643            >
  24644             #fimLocomW alkName
  24645            </action>
  24646                                          
  24647           </ifNotNul l>
  24648                                         
  24649           <ifNull>
  24650                                               
  24651            <action 
  24652             action="se tAttribute
  24653             attribute= "value" 
  24654             indexed="t rue"
  24655            >
  24656             #fimLocomW alkName
  24657            </action>
  24658                                          
  24659           </ifNull>
  24660                                     
  24661          </mapping>
  24662                                    
  24663          <mapping>
  24664                                         
  24665           <property>
  24666            values.wal kComment
  24667           </property >
  24668                                         
  24669           <xpath>
  24670            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:entryR elationshi p/cda:act[ cda:templa teId/@root ='2.16.840 .1.113883. 10.20.22.4 .64']/cda: text/cda:r eference[@ value='#fi mLocomWalk Detail']
  24671           </xpath>
  24672                                         
  24673           <ifNotNull >
  24674                                               
  24675            <action 
  24676             action="se tAttribute
  24677             attribute= "value" 
  24678             indexed="t rue"
  24679            >
  24680             #fimLocomW alkDetail
  24681            </action>
  24682                                          
  24683           </ifNotNul l>
  24684                                         
  24685           <ifNull>
  24686                                               
  24687            <action 
  24688             action="se tAttribute
  24689             attribute= "value" 
  24690             indexed="t rue"
  24691            >
  24692             #fimLocomW alkDetail
  24693            </action>
  24694                                          
  24695           </ifNull>
  24696                                     
  24697          </mapping>
  24698                                    
  24699          <mapping>
  24700                                         
  24701           <property>
  24702            assessment DateRaw
  24703           </property >
  24704                                         
  24705           <xpath>
  24706            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te xt/cda:ref erence/@va lue='#fimL ocomStairN ame']/cda: effectiveT ime/cda:lo w[@value=' skillTime' ]
  24707           </xpath>
  24708                                         
  24709           <ifNotNull >
  24710                                               
  24711            <action 
  24712             action="se tAttribute
  24713             attribute= "value"
  24714            />
  24715                                          
  24716           </ifNotNul l>
  24717                                         
  24718           <ifNull>
  24719                                               
  24720            <action 
  24721             action="se tAttribute
  24722             attribute= "value"
  24723            />
  24724                                          
  24725           </ifNull>
  24726                                     
  24727          </mapping>
  24728                                    
  24729          <mapping>
  24730                                         
  24731           <property>
  24732            values.loc omStair
  24733           </property >
  24734                                         
  24735           <xpath>
  24736            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:value/ cda:origin alText/cda :reference [@value='# fimLocomSt air']
  24737           </xpath>
  24738                                         
  24739           <ifNotNull >
  24740                                               
  24741            <action 
  24742             action="se tAttribute
  24743             attribute= "value" 
  24744             indexed="t rue"
  24745            >
  24746             #fimLocomS tair
  24747            </action>
  24748                                          
  24749           </ifNotNul l>
  24750                                         
  24751           <ifNull>
  24752                                               
  24753            <action 
  24754             action="se tAttribute
  24755             attribute= "value" 
  24756             indexed="t rue"
  24757            >
  24758             #fimLocomS tair
  24759            </action>
  24760                                          
  24761           </ifNull>
  24762                                     
  24763          </mapping>
  24764                                    
  24765          <mapping>
  24766                                         
  24767           <property>
  24768            values.loc omStair
  24769           </property >
  24770                                         
  24771           <xpath>
  24772            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:text/c da:referen ce[@value= '#fimLocom StairName' ]
  24773           </xpath>
  24774                                         
  24775           <ifNotNull >
  24776                                               
  24777            <action 
  24778             action="se tAttribute
  24779             attribute= "value" 
  24780             indexed="t rue"
  24781            >
  24782             #fimLocomS tairName
  24783            </action>
  24784                                          
  24785           </ifNotNul l>
  24786                                         
  24787           <ifNull>
  24788                                               
  24789            <action 
  24790             action="se tAttribute
  24791             attribute= "value" 
  24792             indexed="t rue"
  24793            >
  24794             #fimLocomS tairName
  24795            </action>
  24796                                          
  24797           </ifNull>
  24798                                     
  24799          </mapping>
  24800                                    
  24801          <mapping>
  24802                                         
  24803           <property>
  24804            values.loc omStair
  24805           </property >
  24806                                         
  24807           <xpath>
  24808            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:entryR elationshi p/cda:act[ cda:templa teId/@root ='2.16.840 .1.113883. 10.20.22.4 .64']/cda: text/cda:r eference[@ value='#fi mLocomStai rDetail']
  24809           </xpath>
  24810                                         
  24811           <ifNotNull >
  24812                                               
  24813            <action 
  24814             action="se tAttribute
  24815             attribute= "value" 
  24816             indexed="t rue"
  24817            >
  24818             #fimLocomS tairDetail
  24819            </action>
  24820                                          
  24821           </ifNotNul l>
  24822                                         
  24823           <ifNull>
  24824                                               
  24825            <action 
  24826             action="se tAttribute
  24827             attribute= "value" 
  24828             indexed="t rue"
  24829            >
  24830             #fimLocomS tairDetail
  24831            </action>
  24832                                          
  24833           </ifNull>
  24834                                     
  24835          </mapping>
  24836                                    
  24837          <mapping>
  24838                                         
  24839           <property>
  24840            assessment DateRaw
  24841           </property >
  24842                                         
  24843           <xpath>
  24844            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te xt/cda:ref erence/@va lue='#fimC omprehendN ame']/cda: effectiveT ime/cda:lo w[@value=' skillTime' ]
  24845           </xpath>
  24846                                         
  24847           <ifNotNull >
  24848                                               
  24849            <action 
  24850             action="se tAttribute
  24851             attribute= "value"
  24852            />
  24853                                          
  24854           </ifNotNul l>
  24855                                         
  24856           <ifNull>
  24857                                               
  24858            <action 
  24859             action="se tAttribute
  24860             attribute= "value"
  24861            />
  24862                                          
  24863           </ifNull>
  24864                                     
  24865          </mapping>
  24866                                    
  24867          <mapping>
  24868                                         
  24869           <property>
  24870            values.com prehend
  24871           </property >
  24872                                         
  24873           <xpath>
  24874            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:value/ cda:origin alText/cda :reference [@value='# fimCompreh end']
  24875           </xpath>
  24876                                         
  24877           <ifNotNull >
  24878                                               
  24879            <action 
  24880             action="se tAttribute
  24881             attribute= "value" 
  24882             indexed="t rue"
  24883            >
  24884             #fimCompre hend
  24885            </action>
  24886                                          
  24887           </ifNotNul l>
  24888                                         
  24889           <ifNull>
  24890                                               
  24891            <action 
  24892             action="se tAttribute
  24893             attribute= "value" 
  24894             indexed="t rue"
  24895            >
  24896             #fimCompre hend
  24897            </action>
  24898                                          
  24899           </ifNull>
  24900                                     
  24901          </mapping>
  24902                                    
  24903          <mapping>
  24904                                         
  24905           <property>
  24906            values.com prehend
  24907           </property >
  24908                                         
  24909           <xpath>
  24910            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:text/c da:referen ce[@value= '#fimCompr ehendName' ]
  24911           </xpath>
  24912                                         
  24913           <ifNotNull >
  24914                                               
  24915            <action 
  24916             action="se tAttribute
  24917             attribute= "value" 
  24918             indexed="t rue"
  24919            >
  24920             #fimCompre hendName
  24921            </action>
  24922                                          
  24923           </ifNotNul l>
  24924                                         
  24925           <ifNull>
  24926                                               
  24927            <action 
  24928             action="se tAttribute
  24929             attribute= "value" 
  24930             indexed="t rue"
  24931            >
  24932             #fimCompre hendName
  24933            </action>
  24934                                          
  24935           </ifNull>
  24936                                     
  24937          </mapping>
  24938                                    
  24939          <mapping>
  24940                                         
  24941           <property>
  24942            values.com prehendCom ment
  24943           </property >
  24944                                         
  24945           <xpath>
  24946            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:entryR elationshi p/cda:act[ cda:templa teId/@root ='2.16.840 .1.113883. 10.20.22.4 .64']/cda: text/cda:r eference[@ value='#fi mComprehen dDetail']
  24947           </xpath>
  24948                                         
  24949           <ifNotNull >
  24950                                               
  24951            <action 
  24952             action="se tAttribute
  24953             attribute= "value" 
  24954             indexed="t rue"
  24955            >
  24956             #fimCompre hendDetail
  24957            </action>
  24958                                          
  24959           </ifNotNul l>
  24960                                         
  24961           <ifNull>
  24962                                               
  24963            <action 
  24964             action="se tAttribute
  24965             attribute= "value" 
  24966             indexed="t rue"
  24967            >
  24968             #fimCompre hendDetail
  24969            </action>
  24970                                          
  24971           </ifNull>
  24972                                     
  24973          </mapping>
  24974                                    
  24975          <mapping>
  24976                                         
  24977           <property>
  24978            assessment DateRaw
  24979           </property >
  24980                                         
  24981           <xpath>
  24982            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te xt/cda:ref erence/@va lue='#fimE xpressName ']/cda:eff ectiveTime /cda:low[@ value='ski llTime']
  24983           </xpath>
  24984                                         
  24985           <ifNotNull >
  24986                                               
  24987            <action 
  24988             action="se tAttribute
  24989             attribute= "value"
  24990            />
  24991                                          
  24992           </ifNotNul l>
  24993                                         
  24994           <ifNull>
  24995                                               
  24996            <action 
  24997             action="se tAttribute
  24998             attribute= "value"
  24999            />
  25000                                          
  25001           </ifNull>
  25002                                     
  25003          </mapping>
  25004                                    
  25005          <mapping>
  25006                                         
  25007           <property>
  25008            values.exp ress
  25009           </property >
  25010                                         
  25011           <xpath>
  25012            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:value/ cda:origin alText/cda :reference [@value='# fimExpress ']
  25013           </xpath>
  25014                                         
  25015           <ifNotNull >
  25016                                               
  25017            <action 
  25018             action="se tAttribute
  25019             attribute= "value" 
  25020             indexed="t rue"
  25021            >
  25022             #fimExpres s
  25023            </action>
  25024                                          
  25025           </ifNotNul l>
  25026                                         
  25027           <ifNull>
  25028                                               
  25029            <action 
  25030             action="se tAttribute
  25031             attribute= "value" 
  25032             indexed="t rue"
  25033            >
  25034             #fimExpres s
  25035            </action>
  25036                                          
  25037           </ifNull>
  25038                                     
  25039          </mapping>
  25040                                    
  25041          <mapping>
  25042                                         
  25043           <property>
  25044            values.exp ress
  25045           </property >
  25046                                         
  25047           <xpath>
  25048            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:text/c da:referen ce[@value= '#fimExpre ssName']
  25049           </xpath>
  25050                                         
  25051           <ifNotNull >
  25052                                               
  25053            <action 
  25054             action="se tAttribute
  25055             attribute= "value" 
  25056             indexed="t rue"
  25057            >
  25058             #fimExpres sName
  25059            </action>
  25060                                          
  25061           </ifNotNul l>
  25062                                         
  25063           <ifNull>
  25064                                               
  25065            <action 
  25066             action="se tAttribute
  25067             attribute= "value" 
  25068             indexed="t rue"
  25069            >
  25070             #fimExpres sName
  25071            </action>
  25072                                          
  25073           </ifNull>
  25074                                     
  25075          </mapping>
  25076                                    
  25077          <mapping>
  25078                                         
  25079           <property>
  25080            values.exp ressCommen t
  25081           </property >
  25082                                         
  25083           <xpath>
  25084            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:entryR elationshi p/cda:act[ cda:templa teId/@root ='2.16.840 .1.113883. 10.20.22.4 .64']/cda: text/cda:r eference[@ value='#fi mExpressDe tail']
  25085           </xpath>
  25086                                         
  25087           <ifNotNull >
  25088                                               
  25089            <action 
  25090             action="se tAttribute
  25091             attribute= "value" 
  25092             indexed="t rue"
  25093            >
  25094             #fimExpres sDetail
  25095            </action>
  25096                                          
  25097           </ifNotNul l>
  25098                                         
  25099           <ifNull>
  25100                                               
  25101            <action 
  25102             action="se tAttribute
  25103             attribute= "value" 
  25104             indexed="t rue"
  25105            >
  25106             #fimExpres sDetail
  25107            </action>
  25108                                          
  25109           </ifNull>
  25110                                     
  25111          </mapping>
  25112                                    
  25113          <mapping>
  25114                                         
  25115           <property>
  25116            assessment DateRaw
  25117           </property >
  25118                                         
  25119           <xpath>
  25120            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te xt/cda:ref erence/@va lue='#fimI nteractNam e']/cda:ef fectiveTim e/cda:low[ @value='sk illTime']
  25121           </xpath>
  25122                                         
  25123           <ifNotNull >
  25124                                               
  25125            <action 
  25126             action="se tAttribute
  25127             attribute= "value"
  25128            />
  25129                                          
  25130           </ifNotNul l>
  25131                                         
  25132           <ifNull>
  25133                                               
  25134            <action 
  25135             action="se tAttribute
  25136             attribute= "value"
  25137            />
  25138                                          
  25139           </ifNull>
  25140                                     
  25141          </mapping>
  25142                                    
  25143          <mapping>
  25144                                         
  25145           <property>
  25146            values.int eract
  25147           </property >
  25148                                         
  25149           <xpath>
  25150            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:value/ cda:origin alText/cda :reference [@value='# fimInterac t']
  25151           </xpath>
  25152                                         
  25153           <ifNotNull >
  25154                                               
  25155            <action 
  25156             action="se tAttribute
  25157             attribute= "value" 
  25158             indexed="t rue"
  25159            >
  25160             #fimIntera ct
  25161            </action>
  25162                                          
  25163           </ifNotNul l>
  25164                                         
  25165           <ifNull>
  25166                                               
  25167            <action 
  25168             action="se tAttribute
  25169             attribute= "value" 
  25170             indexed="t rue"
  25171            >
  25172             #fimIntera ct
  25173            </action>
  25174                                          
  25175           </ifNull>
  25176                                     
  25177          </mapping>
  25178                                    
  25179          <mapping>
  25180                                         
  25181           <property>
  25182            values.int eract
  25183           </property >
  25184                                         
  25185           <xpath>
  25186            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:text/c da:referen ce[@value= '#fimInter actName']
  25187           </xpath>
  25188                                         
  25189           <ifNotNull >
  25190                                               
  25191            <action 
  25192             action="se tAttribute
  25193             attribute= "value" 
  25194             indexed="t rue"
  25195            >
  25196             #fimIntera ctName
  25197            </action>
  25198                                          
  25199           </ifNotNul l>
  25200                                         
  25201           <ifNull>
  25202                                               
  25203            <action 
  25204             action="se tAttribute
  25205             attribute= "value" 
  25206             indexed="t rue"
  25207            >
  25208             #fimIntera ctName
  25209            </action>
  25210                                          
  25211           </ifNull>
  25212                                     
  25213          </mapping>
  25214                                    
  25215          <mapping>
  25216                                         
  25217           <property>
  25218            values.int eract
  25219           </property >
  25220                                         
  25221           <xpath>
  25222            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:entryR elationshi p/cda:act[ cda:templa teId/@root ='2.16.840 .1.113883. 10.20.22.4 .64']/cda: text/cda:r eference[@ value='#fi mInteractD etail']
  25223           </xpath>
  25224                                         
  25225           <ifNotNull >
  25226                                               
  25227            <action 
  25228             action="se tAttribute
  25229             attribute= "value" 
  25230             indexed="t rue"
  25231            >
  25232             #fimIntera ctDetail
  25233            </action>
  25234                                          
  25235           </ifNotNul l>
  25236                                         
  25237           <ifNull>
  25238                                               
  25239            <action 
  25240             action="se tAttribute
  25241             attribute= "value" 
  25242             indexed="t rue"
  25243            >
  25244             #fimIntera ctDetail
  25245            </action>
  25246                                          
  25247           </ifNull>
  25248                                     
  25249          </mapping>
  25250                                    
  25251          <mapping>
  25252                                         
  25253           <property>
  25254            assessment DateRaw
  25255           </property >
  25256                                         
  25257           <xpath>
  25258            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te xt/cda:ref erence/@va lue='#fimP roblemName ']/cda:eff ectiveTime /cda:low[@ value='ski llTime']
  25259           </xpath>
  25260                                         
  25261           <ifNotNull >
  25262                                               
  25263            <action 
  25264             action="se tAttribute
  25265             attribute= "value"
  25266            />
  25267                                          
  25268           </ifNotNul l>
  25269                                         
  25270           <ifNull>
  25271                                               
  25272            <action 
  25273             action="se tAttribute
  25274             attribute= "value"
  25275            />
  25276                                          
  25277           </ifNull>
  25278                                     
  25279          </mapping>
  25280                                    
  25281          <mapping>
  25282                                         
  25283           <property>
  25284            values.pro blem
  25285           </property >
  25286                                         
  25287           <xpath>
  25288            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:value/ cda:origin alText/cda :reference [@value='# fimProblem ']
  25289           </xpath>
  25290                                         
  25291           <ifNotNull >
  25292                                               
  25293            <action 
  25294             action="se tAttribute
  25295             attribute= "value" 
  25296             indexed="t rue"
  25297            >
  25298             #fimProble m
  25299            </action>
  25300                                          
  25301           </ifNotNul l>
  25302                                         
  25303           <ifNull>
  25304                                               
  25305            <action 
  25306             action="se tAttribute
  25307             attribute= "value" 
  25308             indexed="t rue"
  25309            >
  25310             #fimProble m
  25311            </action>
  25312                                          
  25313           </ifNull>
  25314                                     
  25315          </mapping>
  25316                                    
  25317          <mapping>
  25318                                         
  25319           <property>
  25320            values.pro blem
  25321           </property >
  25322                                         
  25323           <xpath>
  25324            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:text/c da:referen ce[@value= '#fimProbl emName']
  25325           </xpath>
  25326                                         
  25327           <ifNotNull >
  25328                                               
  25329            <action 
  25330             action="se tAttribute
  25331             attribute= "value" 
  25332             indexed="t rue"
  25333            >
  25334             #fimProble mName
  25335            </action>
  25336                                          
  25337           </ifNotNul l>
  25338                                         
  25339           <ifNull>
  25340                                               
  25341            <action 
  25342             action="se tAttribute
  25343             attribute= "value" 
  25344             indexed="t rue"
  25345            >
  25346             #fimProble mName
  25347            </action>
  25348                                          
  25349           </ifNull>
  25350                                     
  25351          </mapping>
  25352                                    
  25353          <mapping>
  25354                                         
  25355           <property>
  25356            values.pro blem
  25357           </property >
  25358                                         
  25359           <xpath>
  25360            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:entryR elationshi p/cda:act[ cda:templa teId/@root ='2.16.840 .1.113883. 10.20.22.4 .64']/cda: text/cda:r eference[@ value='#fi mProblemDe tail']
  25361           </xpath>
  25362                                         
  25363           <ifNotNull >
  25364                                               
  25365            <action 
  25366             action="se tAttribute
  25367             attribute= "value" 
  25368             indexed="t rue"
  25369            >
  25370             #fimProble mDetail
  25371            </action>
  25372                                          
  25373           </ifNotNul l>
  25374                                         
  25375           <ifNull>
  25376                                               
  25377            <action 
  25378             action="se tAttribute
  25379             attribute= "value" 
  25380             indexed="t rue"
  25381            >
  25382             #fimProble mDetail
  25383            </action>
  25384                                          
  25385           </ifNull>
  25386                                     
  25387          </mapping>
  25388                                    
  25389          <mapping>
  25390                                         
  25391           <property>
  25392            assessment DateRaw
  25393           </property >
  25394                                         
  25395           <xpath>
  25396            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te xt/cda:ref erence/@va lue='#fimM emoryName' ]/cda:effe ctiveTime/ cda:low[@v alue='skil lTime']
  25397           </xpath>
  25398                                         
  25399           <ifNotNull >
  25400                                               
  25401            <action 
  25402             action="se tAttribute
  25403             attribute= "value"
  25404            />
  25405                                          
  25406           </ifNotNul l>
  25407                                         
  25408           <ifNull>
  25409                                               
  25410            <action 
  25411             action="se tAttribute
  25412             attribute= "value"
  25413            />
  25414                                          
  25415           </ifNull>
  25416                                     
  25417          </mapping>
  25418                                    
  25419          <mapping>
  25420                                         
  25421           <property>
  25422            values.mem ory
  25423           </property >
  25424                                         
  25425           <xpath>
  25426            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:value/ cda:origin alText/cda :reference [@value='# fimMemory' ]
  25427           </xpath>
  25428                                         
  25429           <ifNotNull >
  25430                                               
  25431            <action 
  25432             action="se tAttribute
  25433             attribute= "value" 
  25434             indexed="t rue"
  25435            >
  25436             #fimMemory
  25437            </action>
  25438                                          
  25439           </ifNotNul l>
  25440                                         
  25441           <ifNull>
  25442                                               
  25443            <action 
  25444             action="se tAttribute
  25445             attribute= "value" 
  25446             indexed="t rue"
  25447            >
  25448             #fimMemory
  25449            </action>
  25450                                          
  25451           </ifNull>
  25452                                     
  25453          </mapping>
  25454                                    
  25455          <mapping>
  25456                                         
  25457           <property>
  25458            values.mem ory
  25459           </property >
  25460                                         
  25461           <xpath>
  25462            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:text/c da:referen ce[@value= '#fimMemor yName']
  25463           </xpath>
  25464                                         
  25465           <ifNotNull >
  25466                                               
  25467            <action 
  25468             action="se tAttribute
  25469             attribute= "value" 
  25470             indexed="t rue"
  25471            >
  25472             #fimMemory Name
  25473            </action>
  25474                                          
  25475           </ifNotNul l>
  25476                                         
  25477           <ifNull>
  25478                                               
  25479            <action 
  25480             action="se tAttribute
  25481             attribute= "value" 
  25482             indexed="t rue"
  25483            >
  25484             #fimMemory Name
  25485            </action>
  25486                                          
  25487           </ifNull>
  25488                                     
  25489          </mapping>
  25490                                    
  25491          <mapping>
  25492                                         
  25493           <property>
  25494            values.mem ory
  25495           </property >
  25496                                         
  25497           <xpath>
  25498            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:entryR elationshi p/cda:act[ cda:templa teId/@root ='2.16.840 .1.113883. 10.20.22.4 .64']/cda: text/cda:r eference[@ value='#fi mMemoryDet ail']
  25499           </xpath>
  25500                                         
  25501           <ifNotNull >
  25502                                               
  25503            <action 
  25504             action="se tAttribute
  25505             attribute= "value" 
  25506             indexed="t rue"
  25507            >
  25508             #fimMemory Detail
  25509            </action>
  25510                                          
  25511           </ifNotNul l>
  25512                                         
  25513           <ifNull>
  25514                                               
  25515            <action 
  25516             action="se tAttribute
  25517             attribute= "value" 
  25518             indexed="t rue"
  25519            >
  25520             #fimMemory Detail
  25521            </action>
  25522                                          
  25523           </ifNull>
  25524                                     
  25525          </mapping>
  25526                                    
  25527          <mapping>
  25528                                         
  25529           <property>
  25530            assessment DateRaw
  25531           </property >
  25532                                         
  25533           <xpath>
  25534            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te xt/cda:ref erence/@va lue='#fimT otalName'] /cda:effec tiveTime/c da:low[@va lue='skill Time']
  25535           </xpath>
  25536                                         
  25537           <ifNotNull >
  25538                                               
  25539            <action 
  25540             action="se tAttribute
  25541             attribute= "value"
  25542            />
  25543                                          
  25544           </ifNotNul l>
  25545                                         
  25546           <ifNull>
  25547                                               
  25548            <action 
  25549             action="se tAttribute
  25550             attribute= "value"
  25551            />
  25552                                          
  25553           </ifNull>
  25554                                     
  25555          </mapping>
  25556                                    
  25557          <mapping>
  25558                                         
  25559           <property>
  25560            values.tot al
  25561           </property >
  25562                                         
  25563           <xpath>
  25564            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:value/ cda:origin alText/cda :reference [@value='# fimTotal']
  25565           </xpath>
  25566                                         
  25567           <ifNotNull >
  25568                                               
  25569            <action 
  25570             action="se tAttribute
  25571             attribute= "value" 
  25572             indexed="t rue"
  25573            >
  25574             #fimTotal
  25575            </action>
  25576                                          
  25577           </ifNotNul l>
  25578                                         
  25579           <ifNull>
  25580                                               
  25581            <action 
  25582             action="se tAttribute
  25583             attribute= "value" 
  25584             indexed="t rue"
  25585            >
  25586             #fimTotal
  25587            </action>
  25588                                          
  25589           </ifNull>
  25590                                     
  25591          </mapping>
  25592                                    
  25593          <mapping>
  25594                                         
  25595           <property>
  25596            values.tot al
  25597           </property >
  25598                                         
  25599           <xpath>
  25600            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:text/c da:referen ce[@value= '#fimTotal Name']
  25601           </xpath>
  25602                                         
  25603           <ifNotNull >
  25604                                               
  25605            <action 
  25606             action="se tAttribute
  25607             attribute= "value" 
  25608             indexed="t rue"
  25609            >
  25610             #fimTotalN ame
  25611            </action>
  25612                                          
  25613           </ifNotNul l>
  25614                                         
  25615           <ifNull>
  25616                                               
  25617            <action 
  25618             action="se tAttribute
  25619             attribute= "value" 
  25620             indexed="t rue"
  25621            >
  25622             #fimTotalN ame
  25623            </action>
  25624                                          
  25625           </ifNull>
  25626                                     
  25627          </mapping>
  25628                                    
  25629          <mapping>
  25630                                         
  25631           <property>
  25632            values.tot al
  25633           </property >
  25634                                         
  25635           <xpath>
  25636            cda:organi zer/cda:co mponent/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 22.4.67']/ cda:entryR elationshi p/cda:act[ cda:templa teId/@root ='2.16.840 .1.113883. 10.20.22.4 .64']/cda: text/cda:r eference[@ value='#fi mTotalDeta il']
  25637           </xpath>
  25638                                         
  25639           <ifNotNull >
  25640                                               
  25641            <action 
  25642             action="se tAttribute
  25643             attribute= "value" 
  25644             indexed="t rue"
  25645            >
  25646             #fimTotalD etail
  25647            </action>
  25648                                          
  25649           </ifNotNul l>
  25650                                         
  25651           <ifNull>
  25652                                               
  25653            <action 
  25654             action="se tAttribute
  25655             attribute= "value" 
  25656             indexed="t rue"
  25657            >
  25658             #fimTotalD etail
  25659            </action>
  25660                                          
  25661           </ifNull>
  25662                                     
  25663          </mapping>
  25664                               
  25665         </mappings >
  25666                          
  25667        </mapping>                  
  25668                     
  25669       </mappings >             
  25670               
  25671      </mapping>
  25672              
  25673     </mappings >
  25674   </template >