856. EPMO Open Source Coordination Office Redaction File Detail Report

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

856.1 Files compared

# Location File Last Modified
1 eHealth_Exch (eHealth Exchange Enhancements) Build 3 docs & code_May_2017.zip\eHXE_Build3_2017-05-04.zip\NHIN_adapter\weblogic\domains\ehx_devl\config\adapter cccd-mapping.xml Wed May 3 15:58:46 2017 UTC
2 eHealth_Exch (eHealth Exchange Enhancements) Build 3 docs & code_May_2017.zip\eHXE_Build3_2017-05-04.zip\NHIN_adapter\weblogic\domains\ehx_devl\config\adapter cccd-mapping.xml Wed Jun 7 06:04:12 2017 UTC

856.2 Comparison summary

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

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

856.4 Active regular expressions

No regular expressions were active.

856.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 :  PII  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      <mapping>
  1004                                 
  1005       <property>
  1006        demographi csExt
  1007       </property >
  1008                                 
  1009       <xpath>
  1010        /cda:Clini calDocumen t/cda:reco rdTarget/c da:patient Role/cda:p atient/cda :religious Affiliatio nCode
  1011       </xpath>
  1012                                 
  1013       <ifNotNull >
  1014                                           
  1015        <action 
  1016         action="ev aluateMapp ings" 
  1017        />
  1018                                  
  1019       </ifNotNul l>
  1020                                 
  1021       <ifNull>
  1022                                           
  1023        <action 
  1024         action="re move" 
  1025        />
  1026                                  
  1027       </ifNull>
  1028                                 
  1029       <mappings>
  1030                                           
  1031        <mapping>
  1032                                                    
  1033         <property 
  1034          optional=" true"
  1035         >
  1036          religiousA ffiliation Code
  1037         </property >
  1038                                                    
  1039         <xpath>
  1040          .
  1041         </xpath>
  1042                                                    
  1043         <ifNotNull >
  1044                                                              
  1045          <action 
  1046           action="se tAttribute
  1047           attribute= "code" 
  1048          />
  1049                                                              
  1050          <action 
  1051           action="se tAttribute
  1052           attribute= "displayNa me"
  1053                                                                       
  1054           property=" religiousA ffiliation Display" 
  1055          />
  1056                                                     
  1057         </ifNotNul l>
  1058                                                    
  1059         <ifNull>
  1060                                                              
  1061          <action 
  1062           action="re moveAttrib utes" 
  1063          />
  1064                                                              
  1065          <action 
  1066           action="se tAttribute
  1067           attribute= "nullFlavo r"
  1068          >
  1069           UNK
  1070          </action>
  1071                                                     
  1072         </ifNull>
  1073                                            
  1074        </mapping>
  1075                                           
  1076        <mapping>
  1077                                                    
  1078         <property>
  1079          religiousA ffiliation
  1080         </property >
  1081                                                    
  1082         <xpath>
  1083          cda:origin alText
  1084         </xpath>
  1085                                                    
  1086         <ifNotNull >
  1087                                                              
  1088          <action 
  1089           action="se tValue" 
  1090          />
  1091                                                     
  1092         </ifNotNul l>
  1093                                            
  1094        </mapping>
  1095                                  
  1096       </mappings >
  1097                        
  1098      </mapping>
  1099                       
  1100      <!-- 1.10  RACE, Opti onal, orig inalText - ->
  1101                       
  1102      <mapping>
  1103                                 
  1104       <property>
  1105        demographi csExt
  1106       </property >
  1107                                 
  1108       <xpath>
  1109        /cda:Clini calDocumen t/cda:reco rdTarget/c da:patient Role/cda:p atient/cda :raceCode
  1110       </xpath>
  1111                                 
  1112       <ifNotNull >
  1113                                           
  1114        <action 
  1115         action="ev aluateMapp ings"
  1116        />
  1117                                  
  1118       </ifNotNul l>
  1119                                 
  1120       <ifNull>
  1121                                           
  1122        <action 
  1123         action="re move" 
  1124        />
  1125                                  
  1126       </ifNull>
  1127                                 
  1128       <mappings>
  1129                                           
  1130        <mapping>
  1131                                                    
  1132         <property 
  1133          optional=" true"
  1134         >
  1135          raceDispla y
  1136         </property >
  1137                                                    
  1138         <xpath>
  1139          cda:origin alText
  1140         </xpath>
  1141                                                    
  1142         <ifNotNull >
  1143                                                              
  1144          <action 
  1145           action="se tValue" 
  1146          />
  1147                                                     
  1148         </ifNotNul l>
  1149                                            
  1150        </mapping>       
  1151                                           
  1152                                  
  1153                                                                              
  1154                                           
  1155        <mapping>
  1156                                                    
  1157         <property 
  1158          optional=" true"
  1159         >
  1160          raceDispla yName
  1161         </property >
  1162                                                    
  1163         <xpath>
  1164          .
  1165         </xpath>
  1166                                                    
  1167         <ifNotNull >
  1168                                                              
  1169          <action 
  1170           action="se tAttribute
  1171           attribute= "displayNa me"
  1172          />
  1173                                                     
  1174         </ifNotNul l>
  1175                                            
  1176        </mapping>
  1177                                           
  1178        <mapping>
  1179                                                    
  1180         <property 
  1181          optional=" true"
  1182         >
  1183          vetsRaceCo de
  1184         </property >
  1185                                                    
  1186         <xpath>
  1187          .
  1188         </xpath>
  1189                                                    
  1190         <ifNotNull >
  1191                                                              
  1192          <action 
  1193           action="se tAttribute
  1194           attribute= "code"
  1195          />
  1196                                                     
  1197         </ifNotNul l>
  1198                                                    
  1199         <ifNull>
  1200                                                              
  1201          <action 
  1202           action="se tAttribute
  1203           attribute= "nullFlavo r"
  1204          >
  1205           UNK
  1206          </action>
  1207                                                     
  1208         </ifNull>
  1209                                            
  1210        </mapping>                                 
  1211                                  
  1212       </mappings
  1213                                 
  1214                                 
  1215                                 
  1216                                 
  1217      </mapping>
  1218              
  1219              
  1220                       
  1221      <mapping>
  1222                                 
  1223       <property>
  1224        demographi csExt
  1225       </property >
  1226                                 
  1227       <xpath>
  1228        /cda:Clini calDocumen t/cda:reco rdTarget/c da:patient Role/cda:p atient
  1229       </xpath>
  1230                                 
  1231       <ifNotNull >
  1232                                           
  1233        <action 
  1234         action="ev aluateMapp ings" 
  1235        />
  1236                                  
  1237       </ifNotNul l>
  1238                                 
  1239       <mappings>
  1240                                           
  1241        <mapping>
  1242                                                    
  1243         <property 
  1244          collection ="true"
  1245         >
  1246          raceDispla yList
  1247         </property >
  1248                                                    
  1249         <xpath>
  1250          sdtc:raceC ode
  1251         </xpath>
  1252                                                    
  1253         <ifNotNull >
  1254                                                              
  1255          <action 
  1256           action="ev aluateMapp ings" 
  1257          />
  1258                                                     
  1259         </ifNotNul l>
  1260                                                    
  1261         <mappings>
  1262                                                              
  1263          <mapping>
  1264                                                                        
  1265           <property>
  1266            raceCode
  1267           </property >
  1268                                                                        
  1269           <xpath>
  1270            .
  1271           </xpath>
  1272                                                                        
  1273           <ifNotNull >
  1274                                                                                  
  1275            <action 
  1276             action="se tAttribute
  1277             attribute= "code" 
  1278            />
  1279                                                                                  
  1280            <action 
  1281             action="se tAttribute
  1282             attribute= "displayNa me" 
  1283             property=" raceDispla y" 
  1284            />
  1285                                                                         
  1286           </ifNotNul l>
  1287                                                               
  1288          </mapping>
  1289                                                              
  1290          <mapping>
  1291                                                                        
  1292           <property>
  1293            raceDispla y
  1294           </property >
  1295                                                                        
  1296           <xpath>
  1297            cda:origin alText
  1298           </xpath>
  1299                                                                        
  1300           <ifNotNull >
  1301                                                                                  
  1302            <action 
  1303             action="se tValue" 
  1304            />
  1305                                                                         
  1306           </ifNotNul l>
  1307                                                               
  1308          </mapping>
  1309                                                     
  1310         </mappings >
  1311                                            
  1312        </mapping>
  1313                                  
  1314       </mappings >
  1315                        
  1316      </mapping>
  1317                                                 
  1318                                
  1319                       
  1320                       
  1321      <!-- 1.11  ETHNICITY,  Optional  -->
  1322                       
  1323      <mapping>
  1324                                 
  1325       <property>
  1326        demographi csExt
  1327       </property >
  1328                                 
  1329       <xpath>
  1330        /cda:Clini calDocumen t/cda:reco rdTarget/c da:patient Role/cda:p atient/cda :ethnicGro upCode
  1331       </xpath>
  1332                                 
  1333       <ifNotNull >
  1334                                           
  1335        <action 
  1336         action="ev aluateMapp ings" 
  1337        />
  1338                                  
  1339       </ifNotNul l>
  1340                                 
  1341       <ifNull>
  1342                                           
  1343        <action 
  1344         action="re move" 
  1345        />
  1346                                  
  1347       </ifNull>
  1348                                 
  1349       <mappings>
  1350                                           
  1351        <mapping>
  1352                                                    
  1353         <property 
  1354          optional=" true"
  1355         >
  1356          ethnicityD isplay
  1357         </property >
  1358                                                    
  1359         <xpath>
  1360          cda:origin alText
  1361         </xpath>
  1362                                                    
  1363         <ifNotNull >
  1364                                                              
  1365          <action 
  1366           action="se tValue" 
  1367          />
  1368                                                     
  1369         </ifNotNul l>
  1370                                                    
  1371         <ifNull>
  1372                                                              
  1373          <action 
  1374           action="re move" 
  1375          />
  1376                                                     
  1377         </ifNull>
  1378                                            
  1379        </mapping>
  1380                                           
  1381        <mapping>
  1382                                                    
  1383         <property 
  1384          optional=" true"
  1385         >
  1386          ethnicityD isplayName
  1387         </property >
  1388                                                    
  1389         <xpath>
  1390          .
  1391         </xpath>
  1392                                                    
  1393         <ifNotNull >
  1394                                                              
  1395          <action 
  1396           action="se tAttribute
  1397           attribute= "displayNa me"
  1398          />
  1399                                                     
  1400         </ifNotNul l>
  1401                                            
  1402        </mapping>        
  1403                                           
  1404        <mapping>
  1405                                                    
  1406         <property 
  1407          optional=" true"
  1408         >
  1409          vetsEthnic ityCode
  1410         </property >
  1411                                                    
  1412         <xpath>
  1413          .
  1414         </xpath>
  1415                                                    
  1416         <ifNotNull >
  1417                                                              
  1418          <action 
  1419           action="se tAttribute
  1420           attribute= "code" 
  1421           property=" vetsEthnic ityCode"
  1422          />
  1423                                                     
  1424         </ifNotNul l>
  1425                                                    
  1426         <ifNull>
  1427                                                              
  1428          <action 
  1429           action="se tAttribute
  1430           attribute= "nullFlavo r"
  1431          >
  1432           UNK
  1433          </action>
  1434                                                     
  1435         </ifNull>
  1436                                            
  1437        </mapping>                                                   
  1438                                  
  1439       </mappings >
  1440                        
  1441      </mapping>
  1442                       
  1443      <!-- 2.01  LANGUAGE,  Optional,  Removed ma pping b/c  always UNK  in templa te -->
  1444                       
  1445      <!-- INFOR MATION SOU RCE CONTEN T MODULE,  REQUIRED - ->
  1446                       
  1447      <!-- 10.01  AUTHOR TI ME, REQUIR ED -->
  1448                       
  1449      <mapping>
  1450                                 
  1451       <property>
  1452        creationTi me
  1453       </property >
  1454                                 
  1455       <xpath>
  1456        /cda:Clini calDocumen t/cda:auth or/cda:tim e
  1457       </xpath>
  1458                                 
  1459       <ifNotNull >
  1460                                           
  1461        <action 
  1462         action="se tAttribute
  1463         attribute= "value" 
  1464        />
  1465                                  
  1466       </ifNotNul l>
  1467                        
  1468      </mapping>
  1469                       
  1470      <!-- CCD C DA R2 LEGA L AUTHENTI CATOR AS A N ORGANIZA TION, REQU IRED -->
  1471                       
  1472      <!-- CCD C DA R2 TIME  OF AUTHEN TICATION - ->
  1473                       
  1474      <mapping>
  1475                                 
  1476       <property>
  1477        creationTi me
  1478       </property >
  1479                                 
  1480       <xpath>
  1481        /cda:Clini calDocumen t/cda:lega lAuthentic ator/cda:t ime
  1482       </xpath>
  1483                                 
  1484       <ifNotNull >
  1485                                           
  1486        <action 
  1487         action="se tAttribute
  1488         attribute= "value" 
  1489        />
  1490                                  
  1491       </ifNotNul l>
  1492                        
  1493      </mapping>
  1494                       
  1495      <!-- CCD C DA R2 LEGA L AUTHENTI CATOR OID  (VA)& NAME  Commented  Out/Hard- coded 
  1496                                in C32  template  -->
  1497                       
  1498      <!-- CCD C DA R2 LEGA L AUTHENTI CATOR OID  (VA) -->
  1499                       
  1500      <mapping>
  1501                                 
  1502       <property 
  1503        optional=" true"
  1504       >
  1505        authentica torOID
  1506       </property >
  1507                                 
  1508       <xpath>
  1509        /cda:Clini calDocumen t/cda:lega lAuthentic ator/cda:a ssignedEnt ity/cda:re presentedO rganizatio n/cda:id
  1510       </xpath>
  1511                                 
  1512       <ifNotNull >
  1513                                           
  1514        <action 
  1515         action="se tAttribute
  1516         attribute= "root" 
  1517        />
  1518                                  
  1519       </ifNotNul l>
  1520                        
  1521      </mapping>
  1522                       
  1523      <mapping>
  1524                                 
  1525       <!-- CCD C DA R2 LEGA L AUTHENTI CATOR NAME  -->
  1526                                 
  1527       <property 
  1528        optional=" true"
  1529       >
  1530        authentica torName
  1531       </property >
  1532                                 
  1533       <xpath>
  1534        /cda:Clini calDocumen t/cda:lega lAuthentic ator/cda:a ssignedEnt ity/cda:re presentedO rganizatio n/cda:name
  1535       </xpath>
  1536                                 
  1537       <ifNotNull >
  1538                                           
  1539        <action 
  1540         action="se tValue" 
  1541        />
  1542                                  
  1543       </ifNotNul l>
  1544                        
  1545      </mapping>
  1546                       
  1547      <mapping>
  1548                                 
  1549       <property>
  1550        creationTi me
  1551       </property >
  1552                                 
  1553       <xpath>
  1554        /cda:Clini calDocumen t/cda:lega lAuthentic ator/cda:t ime
  1555       </xpath>
  1556                                 
  1557       <ifNotNull >
  1558                                           
  1559        <action 
  1560         action="se tAttribute
  1561         attribute= "value" 
  1562        />
  1563                                  
  1564       </ifNotNul l>
  1565                        
  1566      </mapping>
  1567                       
  1568      <!-- CCD C DA R2 DOCU MENTATION  OF MODULE  - QUERY ME TA DATA, O ptional -- >
  1569                       
  1570      <mapping>
  1571                                 
  1572       <!-- QUERY  META DATA , SERVICE  START TIME , Optional  -->
  1573                                 
  1574       <property>
  1575        demographi cs.birthDa te
  1576       </property >
  1577                                 
  1578       <xpath>
  1579        /cda:Clini calDocumen t/cda:docu mentationO f/cda:serv iceEvent/c da:effecti veTime/cda :low
  1580       </xpath>
  1581                                 
  1582       <ifNotNull >
  1583                                           
  1584        <action 
  1585         action="se tAttribute
  1586         attribute= "value" 
  1587        />
  1588                                  
  1589       </ifNotNul l>
  1590                                 
  1591       <ifNull>
  1592                                           
  1593        <action 
  1594         action="se tAttribute
  1595         attribute= "value" 
  1596         property=" beginDate"
  1597        />
  1598                                  
  1599       </ifNull>
  1600                        
  1601      </mapping>
  1602                       
  1603      <mapping>
  1604                                 
  1605       <!-- QUERY  META DATA , SERVICE  STOP TIME,  Optional  -->
  1606                                 
  1607       <property>
  1608        endDate
  1609       </property >
  1610                                 
  1611       <xpath>
  1612        /cda:Clini calDocumen t/cda:docu mentationO f/cda:serv iceEvent/c da:effecti veTime/cda :high
  1613       </xpath>
  1614                                 
  1615       <ifNotNull >
  1616                                           
  1617        <action 
  1618         action="se tAttribute
  1619         attribute= "value" 
  1620        />
  1621                                  
  1622       </ifNotNul l>
  1623                        
  1624      </mapping>
  1625                       
  1626      <!-- SUPPO RT CONTENT  MODULE (P articipant ) NOK GUAR , REQUIRED  -->
  1627                       
  1628      <mapping>
  1629                                 
  1630       <property 
  1631        optional=" true" 
  1632        collection ="true" 
  1633        merge="tru e"
  1634       >
  1635        participan ts
  1636       </property >
  1637                                 
  1638       <xpath>
  1639        /cda:Clini calDocumen t/cda:part icipant
  1640       </xpath>
  1641                                 
  1642       <ifNotNull >
  1643                                           
  1644        <action 
  1645         action="ev aluateMapp ings" 
  1646        />
  1647                                  
  1648       </ifNotNul l>
  1649                                 
  1650       <ifNull>
  1651                                           
  1652        <action 
  1653         action="re move" 
  1654        />
  1655                                  
  1656       </ifNull>
  1657                                 
  1658       <mappings>
  1659                                           
  1660        <mapping>
  1661                                                    
  1662         <property 
  1663          optional=" true"
  1664         >
  1665          supports
  1666         </property >
  1667                                                    
  1668         <xpath>
  1669          .
  1670         </xpath>
  1671                                                    
  1672         <ifNotNull >
  1673                                                              
  1674          <action 
  1675           action="ev aluateMapp ings" 
  1676          />
  1677                                                     
  1678         </ifNotNul l>
  1679                                                    
  1680         <ifNull>
  1681                                                              
  1682          <action 
  1683           action="re move" 
  1684          />
  1685                                                     
  1686         </ifNull>
  1687                                                    
  1688         <mappings>
  1689                                                              
  1690          <!-- 3.01  DATE, REQU IRED, Remo ved mappin g b/c alwa ys UNK in  template - ->
  1691                                                              
  1692          <!-- 3.02  CONTACT TY PE, REQUIR ED, Remove d mapping  b/c always  NOK in 
  1693                                                                       temp late -->
  1694                                                              
  1695          <mapping>
  1696                                                                        
  1697           <property>
  1698            contactTyp e
  1699           </property >
  1700                                                                        
  1701           <xpath>
  1702            cda:associ atedEntity
  1703           </xpath>
  1704                                                                        
  1705           <ifNotNull >
  1706                                                                                  
  1707            <action 
  1708             action="se tAttribute
  1709             attribute= "classCode
  1710            />
  1711                                                                         
  1712           </ifNotNul l>
  1713                                                               
  1714          </mapping>
  1715                                                              
  1716          <!-- 3.03  CONTACT RE LATIONSHIP , Optional -R2 -->
  1717                                                              
  1718          <mapping>
  1719                                                                        
  1720           <property 
  1721            optional=" true"
  1722           >
  1723            relationsh ipType
  1724           </property >
  1725                                                                        
  1726           <xpath>
  1727            cda:associ atedEntity /cda:code/ cda:origin alText
  1728           </xpath>
  1729                                                                        
  1730           <ifNotNull >
  1731                                                                                  
  1732            <action 
  1733             action="se tValue" 
  1734            />
  1735                                                                         
  1736           </ifNotNul l>
  1737                                                               
  1738          </mapping>
  1739                                                          
  1740          <!-- Prope rty for re lationship  display n ame and co de -->
  1741                                                              
  1742          <mapping>
  1743                                                                        
  1744           <property 
  1745            optional=" true"
  1746           >
  1747            relationsh ipTypeDisp lay
  1748           </property >
  1749                                                                        
  1750           <xpath>
  1751            cda:associ atedEntity /cda:code
  1752           </xpath>
  1753                                                                        
  1754           <ifNotNull >
  1755                                                                                  
  1756            <action 
  1757             action="se tAttribute
  1758             attribute= "displayNa me" 
  1759             property=" relationsh ipTypeDisp lay"
  1760            />
  1761                                                                         
  1762           </ifNotNul l>
  1763                                                                        
  1764           <ifNull>
  1765                                                                                  
  1766            <action 
  1767             action="se tAttribute
  1768             attribute= "nullFlavo r"
  1769            >
  1770             UNK
  1771            </action>
  1772                                                                         
  1773           </ifNull>
  1774                                                               
  1775          </mapping>                                                                     
  1776                                                              
  1777          <!-- 3.04  CONTACT Ad dresss, Ho me Permane nt, Option al-R2 -->
  1778                                                              
  1779          <!-- 3.04  CONTACT Ad dresss, Re moved home AddressTyp e mapping  b/c always  
  1780                                                                       HP i n template  -->
  1781                                                              
  1782          <mapping>
  1783                                                                        
  1784           <property 
  1785            optional=" true"
  1786           >
  1787            homeAddres s
  1788           </property >
  1789                                                                        
  1790           <xpath>
  1791            cda:associ atedEntity /cda:addr/ cda:street AddressLin e
  1792           </xpath>
  1793                                                                        
  1794           <ifNotNull >
  1795                                                                                  
  1796            <action 
  1797             action="se tValue" 
  1798            />
  1799                                                                         
  1800           </ifNotNul l>
  1801                                                               
  1802          </mapping>
  1803                                                              
  1804          <mapping>
  1805                                                                        
  1806           <property 
  1807            optional=" true"
  1808           >
  1809            homeCity
  1810           </property >
  1811                                                                        
  1812           <xpath>
  1813            cda:associ atedEntity /cda:addr/ cda:city
  1814           </xpath>
  1815                                                                        
  1816           <ifNotNull >
  1817                                                                                  
  1818            <action 
  1819             action="se tValue" 
  1820            />
  1821                                                                         
  1822           </ifNotNul l>
  1823                                                               
  1824          </mapping>
  1825                                                              
  1826          <mapping>
  1827                                                                        
  1828           <property 
  1829            optional=" true"
  1830           >
  1831            homeState
  1832           </property >
  1833                                                                        
  1834           <xpath>
  1835            cda:associ atedEntity /cda:addr/ cda:state
  1836           </xpath>
  1837                                                                        
  1838           <ifNotNull >
  1839                                                                                  
  1840            <action 
  1841             action="se tValue" 
  1842            />
  1843                                                                         
  1844           </ifNotNul l>
  1845                                                               
  1846          </mapping>
  1847                                                              
  1848          <!-- Remov ed homeCou ntry mappi ng b/c rem oved from  template - ->
  1849                                                              
  1850          <mapping>
  1851                                                                        
  1852           <property 
  1853            optional=" true"
  1854           >
  1855            homePostal
  1856           </property >
  1857                                                                        
  1858           <xpath>
  1859            cda:associ atedEntity /cda:addr/ cda:postal Code
  1860           </xpath>
  1861                                                                        
  1862           <ifNotNull >
  1863                                                                                  
  1864            <action 
  1865             action="se tValue" 
  1866            />
  1867                                                                         
  1868           </ifNotNul l>
  1869                                                               
  1870          </mapping>
  1871                                                              
  1872          <mapping>
  1873                                                                        
  1874           <property 
  1875            optional=" true"
  1876           >
  1877            homePhone
  1878           </property >
  1879                                                                        
  1880           <xpath>
  1881            cda:associ atedEntity /cda:telec om
  1882           </xpath>
  1883                                                                        
  1884           <ifNotNull >
  1885                                                                                  
  1886            <action 
  1887             action="se tAttribute
  1888             attribute= "use"
  1889            >
  1890             HP
  1891            </action>
  1892                                                                                  
  1893            <action 
  1894             action="se tAttribute
  1895             attribute= "value" 
  1896            />
  1897                                                                         
  1898           </ifNotNul l>
  1899                                                                        
  1900           <ifNull>
  1901                                                                                  
  1902            <action 
  1903             action="se tAttribute
  1904             attribute= "nullFlavo r"
  1905            >
  1906             UNK
  1907            </action>
  1908                                                                         
  1909           </ifNull>
  1910                                                               
  1911          </mapping>
  1912                                                              
  1913          <mapping>
  1914                                                                        
  1915           <property 
  1916            optional=" true"
  1917           >
  1918            namePrefix
  1919           </property >
  1920                                                                        
  1921           <xpath>
  1922            cda:associ atedEntity /cda:assoc iatedPerso n/cda:name /cda:prefi x
  1923           </xpath>
  1924                                                                        
  1925           <ifNotNull >
  1926                                                                                  
  1927            <action 
  1928             action="se tValue" 
  1929            />
  1930                                                                         
  1931           </ifNotNul l>
  1932                                                                        
  1933           <ifNull>
  1934                                                                                  
  1935            <action 
  1936             action="re move" 
  1937            />
  1938                                                                         
  1939           </ifNull>
  1940                                                               
  1941          </mapping>
  1942                                                              
  1943          <mapping>
  1944                                                                        
  1945           <property>
  1946            nameGiven
  1947           </property >
  1948                                                                        
  1949           <xpath>
  1950            cda:associ atedEntity /cda:assoc iatedPerso n/cda:name /cda:given
  1951           </xpath>
  1952                                                                        
  1953           <ifNotNull >
  1954                                                                                  
  1955            <action 
  1956             action="se tValue" 
  1957            />
  1958                                                                         
  1959           </ifNotNul l>
  1960                                                               
  1961          </mapping>
  1962                                                              
  1963          <mapping>
  1964                                                                        
  1965           <property>
  1966            nameFamily
  1967           </property >
  1968                                                                        
  1969           <xpath>
  1970            cda:associ atedEntity /cda:assoc iatedPerso n/cda:name /cda:famil y
  1971           </xpath>
  1972                                                                        
  1973           <ifNotNull >
  1974                                                                                  
  1975            <action 
  1976             action="se tValue" 
  1977            />
  1978                                                                         
  1979           </ifNotNul l>
  1980                                                               
  1981          </mapping>
  1982                                                              
  1983          <mapping>
  1984                                                                        
  1985           <property 
  1986            optional=" true"
  1987           >
  1988            nameSuffix
  1989           </property >
  1990                                                                        
  1991           <xpath>
  1992            cda:associ atedEntity /cda:assoc iatedPerso n/cda:name /cda:suffi x
  1993           </xpath>
  1994                                                                        
  1995           <ifNotNull >
  1996                                                                                  
  1997            <action 
  1998             action="se tValue" 
  1999            />
  2000                                                                         
  2001           </ifNotNul l>
  2002                                                                        
  2003           <ifNull>
  2004                                                                                  
  2005            <action 
  2006             action="re move" 
  2007            />
  2008                                                                         
  2009           </ifNull>
  2010                                                               
  2011          </mapping>
  2012                                                     
  2013         </mappings >
  2014                                            
  2015        </mapping>
  2016                                  
  2017       </mappings >
  2018                        
  2019      </mapping>
  2020                       
  2021      <!-- ALLER GY/REACTIO N NARRRITI VE -->
  2022                       
  2023      <mapping>
  2024                                 
  2025       <property 
  2026        optional=" true" 
  2027        collection ="true"
  2028       >
  2029        allergies
  2030       </property >
  2031                                 
  2032       <xpath>
  2033        /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']
  2034       </xpath>
  2035                                 
  2036       <ifNotNull >
  2037                                           
  2038        <action 
  2039         action="ev aluateMapp ings"
  2040                                                   
  2041         relative=" cda:sectio n/cda:text /cda:table [@ID='alle rgyNarrati ve']/cda:t body/cda:t r" 
  2042        />
  2043                                  
  2044       </ifNotNul l>
  2045                                 
  2046       <mappings>
  2047                                           
  2048        <mapping 
  2049         equalsProp erty="asse ssment" 
  2050         equalsValu e="nka"
  2051        >
  2052                                                    
  2053         <property>
  2054          assessment
  2055         </property >
  2056                                                    
  2057         <xpath>
  2058          .
  2059         </xpath>                                                              
  2060                                                    
  2061         <ifNotNull >
  2062                                                              
  2063          <action 
  2064           relative=" cda:td[cda :content[@ ID='andAll ergy']]"
  2065                                                                       
  2066           action="re move" 
  2067          />
  2068                                                              
  2069          <action 
  2070           relative=" cda:td[cda :content[@ ID='andEve ntType']]"
  2071                                                                       
  2072           action="re move" 
  2073          />
  2074                                                              
  2075          <action 
  2076           relative=" cda:td[cda :content[@ ID='andSev erity']]"
  2077                                                                       
  2078           action="re move" 
  2079          />
  2080                                                              
  2081          <action 
  2082           relative=" cda:td"
  2083                                                                       
  2084           action="re move" 
  2085          />
  2086                                                              
  2087          <!-- 
  2088                                                              <a ction rela tive="cda: td[cda:con tent[@ID=' andSource' ]]"
  2089                                                                       acti on="remove " />
  2090                                                              -- >
  2091                                                              
  2092          <action 
  2093           relative=" cda:td" 
  2094           action="se tValue"
  2095          >
  2096           No Known A llergies
  2097          </action>
  2098                                                              
  2099          <action 
  2100           relative=" cda:td" 
  2101           action="se tAttribute
  2102           attribute= "colspan"
  2103          >
  2104           5
  2105          </action>
  2106                                                     
  2107         </ifNotNul l>
  2108                                            
  2109        </mapping>
  2110       
  2111                                           
  2112        <mapping 
  2113         equalsProp erty="asse ssment" 
  2114         equalsValu e="not don e"
  2115        >
  2116                                                    
  2117         <property>
  2118          assessment
  2119         </property >
  2120                                                    
  2121         <xpath>
  2122          .
  2123         </xpath>
  2124                                                    
  2125         <ifNotNull >
  2126                                                              
  2127          <action 
  2128           relative=" cda:td[cda :content[@ ID='andAll ergy']]"
  2129                                                                       
  2130           action="re move" 
  2131          />
  2132                                                              
  2133          <action 
  2134           relative=" cda:td[cda :content[@ ID='andEve ntType']]"
  2135                                                                       
  2136           action="re move" 
  2137          />
  2138                                                              
  2139          <action 
  2140           relative=" cda:td[cda :content[@ ID='andSev erity']]"
  2141                                                                       
  2142           action="re move" 
  2143          />
  2144                                                              
  2145          <action 
  2146           relative=" cda:td"
  2147                                                                       
  2148           action="re move" 
  2149          />
  2150                                                              
  2151          <!--
  2152                                                              <a ction rela tive="cda: td[cda:con tent[@ID=' andSource' ]]"
  2153                                                                       acti on="remove " />
  2154                                                              -- >
  2155                                                               
  2156                                                              
  2157          <action 
  2158           relative=" cda:td" 
  2159           action="se tValue"
  2160          >
  2161           Assessment  Not Done
  2162          </action>
  2163                                                              
  2164          <action 
  2165           relative=" cda:td" 
  2166           action="se tAttribute
  2167           attribute= "colspan"
  2168          >
  2169           5
  2170          </action>   
  2171                                                     
  2172         </ifNotNul l>
  2173                                            
  2174        </mapping>
  2175       
  2176                                           
  2177        <mapping>
  2178                                                    
  2179         <property>
  2180          productTex tName
  2181         </property >
  2182                                                    
  2183         <xpath>
  2184          cda:td/cda :content[@ ID='andAll ergy']
  2185         </xpath>
  2186                                                    
  2187         <ifNotNull >
  2188                                                              
  2189          <action 
  2190           action="se tAttribute
  2191           attribute= "ID" 
  2192           indexed="t rue"
  2193          >
  2194           andAllergy
  2195          </action>
  2196                                                              
  2197          <action 
  2198           action="se tValue" 
  2199          />
  2200                                                     
  2201         </ifNotNul l>
  2202                                            
  2203        </mapping>
  2204       
  2205                                           
  2206        <mapping 
  2207         equalsProp erty="asse ssment" 
  2208         equalsValu e="nka"
  2209        >
  2210                                                    
  2211         <property>
  2212          assessment
  2213         </property >
  2214                                                    
  2215         <xpath>
  2216          cda:td/cda :content[@ ID='andCod edAllergyN ame']
  2217         </xpath>
  2218                                                    
  2219         <ifNotNull >
  2220                                                              
  2221          <action 
  2222           action="se tValue"
  2223          >
  2224           No Known A llergies
  2225          </action>
  2226                                                     
  2227         </ifNotNul l>
  2228                                            
  2229        </mapping>
  2230       
  2231                                           
  2232        <mapping 
  2233         equalsProp erty="asse ssment" 
  2234         equalsValu e="not don e"
  2235        >
  2236                                                    
  2237         <property>
  2238          assessment
  2239         </property >
  2240                                                    
  2241         <xpath>
  2242          cda:td/cda :content[@ ID='andCod edAllergyN ame']
  2243         </xpath>
  2244                                                    
  2245         <ifNotNull >
  2246                                                              
  2247          <action 
  2248           action="se tValue"
  2249          >
  2250           Assessment  Not Done
  2251          </action>
  2252                                                     
  2253         </ifNotNul l>
  2254                                            
  2255        </mapping>
  2256       
  2257       
  2258                                           
  2259        <mapping>
  2260                                                    
  2261         <property 
  2262          optional=" true"
  2263         >
  2264          prettyStar tDate|pret tyEnteredD ate
  2265         </property >
  2266                                                    
  2267         <xpath>
  2268          cda:td[2]
  2269         </xpath>
  2270                                                    
  2271         <ifNotNull >
  2272                                                              
  2273          <action 
  2274           action="se tValue" 
  2275          />
  2276                                                     
  2277         </ifNotNul l>
  2278                                            
  2279        </mapping>
  2280                                           
  2281        <mapping>
  2282                                                    
  2283         <property>
  2284          adverseTyp eCode
  2285         </property >
  2286                                                    
  2287         <xpath>
  2288          cda:td/cda :content[@ ID='andEve ntType']
  2289         </xpath>
  2290                                                    
  2291         <ifNotNull >
  2292                                                              
  2293          <action 
  2294           action="se tAttribute
  2295           attribute= "ID" 
  2296           indexed="t rue"
  2297          >
  2298           andEventTy pe
  2299          </action>
  2300                                                              
  2301          <action 
  2302           action="se tValue" 
  2303           property=" adverseTyp eDisplay" 
  2304          />
  2305                                                     
  2306         </ifNotNul l>
  2307                                                    
  2308         <ifNull>
  2309                                                              
  2310          <action 
  2311           action="se tAttribute
  2312           attribute= "ID" 
  2313           indexed="t rue"
  2314          >
  2315           andEventTy pe
  2316          </action>
  2317                                                              
  2318          <action 
  2319           action="se tValue" 
  2320           property=" type.name"  
  2321          />
  2322                                                     
  2323         </ifNull>
  2324                                            
  2325        </mapping>
  2326                                           
  2327        <mapping>
  2328                                                    
  2329         <property 
  2330          optional=" true"
  2331         >
  2332          facilityNa me
  2333         </property >
  2334                                                    
  2335         <xpath>
  2336          cda:td/cda :content[@ ID='andSou rce']
  2337         </xpath>
  2338                                                    
  2339         <ifNotNull >
  2340                                                              
  2341          <action 
  2342           action="se tAttribute
  2343           attribute= "ID" 
  2344           indexed="t rue"
  2345          >
  2346           andSource
  2347          </action>
  2348                                                              
  2349          <action 
  2350           action="se tValue" 
  2351          />
  2352                                                     
  2353         </ifNotNul l>
  2354                                            
  2355        </mapping>
  2356                                           
  2357        <mapping>
  2358                                                    
  2359         <property 
  2360          optional=" true"
  2361         >
  2362          reactions
  2363         </property >
  2364                                                    
  2365         <xpath>
  2366          cda:td/cda :list/cda: item[cda:c ontent/@ID ='andReact ion']
  2367         </xpath>
  2368                                                    
  2369         <ifNotNull >
  2370          <!--                                                <a ction acti on="setAtt ribute" re lative="cd a:content"
  2371                                                                       attr ibute="ID"  indexed=" true">andR eaction</a ction> -->
  2372                                                              
  2373          <action 
  2374           action="ev aluateMapp ings" 
  2375          />
  2376                                                     
  2377         </ifNotNul l>
  2378                                                    
  2379         <ifNull>
  2380                                                              
  2381          <action 
  2382           action="se tAttribute
  2383           relative=" cda:conten t"
  2384                                                                       
  2385           attribute= "ID" 
  2386           indexed="t rue"
  2387          >
  2388           andReactio n
  2389          </action>
  2390                                                     
  2391         </ifNull>
  2392                                                    
  2393         <mappings>
  2394                                                              
  2395          <mapping>
  2396                                                                        
  2397           <property>
  2398            name
  2399           </property >
  2400                                                                        
  2401           <xpath>
  2402            cda:conten t
  2403           </xpath>
  2404                                                                        
  2405           <ifNotNull >
  2406                                                                         
  2407            <action 
  2408             action="se tAttribute "  
  2409                                                                         
  2410             attribute= "ID" 
  2411             indexed="t rue"
  2412            >
  2413             andReactio n
  2414            </action>
  2415            <!--                                                                  <actio n action=" appendAttr ibute" att ribute="ID " indexed= "true">of< /action> - ->
  2416                                                                                  
  2417            <action 
  2418             action="se tValue" 
  2419            />
  2420                                                                         
  2421           </ifNotNul l>
  2422                                                               
  2423          </mapping>
  2424                                                     
  2425         </mappings >
  2426                                            
  2427        </mapping>
  2428                                           
  2429        <mapping>
  2430                                                    
  2431         <property 
  2432          optional=" true"
  2433         >
  2434          severity
  2435         </property >
  2436                                                    
  2437         <xpath>
  2438          cda:td/cda :content[@ ID='andSev erity']
  2439         </xpath>
  2440                                                    
  2441         <ifNotNull >
  2442                                                              
  2443          <action 
  2444           action="se tAttribute
  2445           attribute= "ID" 
  2446           indexed="t rue"
  2447          >
  2448           andSeverit y
  2449          </action>
  2450                                                              
  2451          <action 
  2452           action="se tValue" 
  2453          />
  2454                                                     
  2455         </ifNotNul l>
  2456                                                    
  2457         <ifNull>
  2458                                                              
  2459          <action 
  2460           action="se tAttribute
  2461           attribute= "ID" 
  2462           indexed="t rue"
  2463          >
  2464           andSeverit y
  2465          </action>
  2466                                                     
  2467         </ifNull>
  2468                                            
  2469        </mapping>
  2470                                  
  2471       </mappings >
  2472                        
  2473      </mapping>
  2474                       
  2475      <!-- ALLER GY/DRUG SE CTION -->
  2476                       
  2477      <mapping>
  2478                                 
  2479       <property 
  2480        collection ="true" 
  2481        merge="tru e"
  2482       >
  2483        allergies
  2484       </property >
  2485                                 
  2486       <xpath>
  2487        /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']
  2488       </xpath>
  2489                                 
  2490       <ifNotNull >
  2491                                           
  2492        <action 
  2493         action="ev aluateMapp ings" 
  2494         relative=" cda:sectio n/cda:entr y" 
  2495        />
  2496                                  
  2497       </ifNotNul l>
  2498                                 
  2499       <ifNull>
  2500                                           
  2501        <action 
  2502         action="re move" 
  2503         relative=" cda:sectio n/cda:entr y"
  2504        >
  2505         NI
  2506        </action>
  2507                                           
  2508        <action 
  2509         action="se tValue" 
  2510         relative=" cda:sectio n/cda:text "
  2511        >
  2512         No Data Pr ovided for  This Sect ion
  2513        </action>
  2514                                           
  2515        <action 
  2516         action="se tAttribute
  2517         relative=" cda:sectio n"
  2518                                                   
  2519         attribute= "nullFlavo r"
  2520        >
  2521         NI
  2522        </action>
  2523                                  
  2524       </ifNull>
  2525                                 
  2526       <mappings>
  2527                                           
  2528        <!-- <mapp ing equals Property=" assessment " equalsVa lue="nka">  <property >assessmen t</propert y> 
  2529                                                    <xpath>.</ xpath> <if NotNull> < action act ion="remov e" relativ e="cda:act [cda:entry Relationsh ip/cda:obs ervation/@ negationIn d='false']
  2530                                                    /> </ifNot Null> </ma pping> <ma pping> <pr operty>ass essment</p roperty> < xpath>.</x path> 
  2531                                                    <ifNull> < action act ion="remov e" relativ e="cda:act [cda:entry Relationsh ip/cda:obs ervation/@ negationIn d='true']"  
  2532                                                    /> </ifNul l> </mappi ng> <mappi ng equalsP roperty="a ssessment"  equalsVal ue="not 
  2533                                                    done"> <pr operty>ass essment</p roperty> < xpath>.</x path> <ifN otNull> <a ction 
  2534                                                    action="re move" /> < /ifNotNull > </mappin g> -->
  2535                                           
  2536        <!-- INFOR MATION SOU RCE FOR AL LERGY/DRUG , Optional  -->
  2537                                           
  2538        <mapping>
  2539                                                    
  2540         <!-- INFOR MATION SOU RCE FACILI TY OID (VA  OID + TRE ATING FACI LITY NBR)  -->
  2541                                                    
  2542         <property>
  2543          facilityNu mber
  2544         </property >
  2545                                                    
  2546         <xpath>
  2547          cda:act/cd a:author/c da:assigne dAuthor/cd a:represen tedOrganiz ation/cda: id
  2548         </xpath>
  2549                                                    
  2550         <ifNotNull >
  2551                                                              
  2552          <action 
  2553           action="se tAttribute
  2554           attribute= "extension
  2555          />
  2556                                                     
  2557         </ifNotNul l>
  2558                                            
  2559        </mapping>
  2560                                           
  2561        <mapping>
  2562                                                    
  2563         <!-- INFOR MATION SOU RCE FACILI TY NAME -- >
  2564                                                    
  2565         <property>
  2566          facilityNa me
  2567         </property >
  2568                                                    
  2569         <xpath>
  2570          cda:act/cd a:author/c da:assigne dAuthor/cd a:represen tedOrganiz ation/cda: name
  2571         </xpath>
  2572                                                    
  2573         <ifNotNull >
  2574                                                              
  2575          <action 
  2576           action="se tValue" 
  2577          />
  2578                                                     
  2579         </ifNotNul l>
  2580                                            
  2581        </mapping>
  2582       
  2583                                           
  2584        <mapping 
  2585         equalsProp erty="asse ssment" 
  2586         equalsValu e="nka"
  2587        >
  2588                                                    
  2589         <property>
  2590          assessment
  2591         </property >
  2592                                                    
  2593         <xpath>
  2594          .
  2595         </xpath>
  2596                                                    
  2597         <ifNotNull >
  2598                                                              
  2599          <action 
  2600           action="se tAttribute "
  2601                                                                       
  2602           relative=" cda:act/cd a:entryRel ationship/ cda:observ ation"
  2603                                                                       
  2604           attribute= "negationI nd"
  2605          >
  2606           true
  2607          </action>
  2608                                                     
  2609         </ifNotNul l>
  2610                                            
  2611        </mapping>
  2612       
  2613                                           
  2614        <mapping 
  2615         equalsProp erty="asse ssment" 
  2616         equalsValu e="nka"
  2617        >
  2618                                                    
  2619         <property>
  2620          assessment
  2621         </property >
  2622                                                    
  2623         <xpath>
  2624          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: value
  2625         </xpath>
  2626                                                    
  2627         <ifNotNull >
  2628                                                              
  2629          <action 
  2630           action="se tAttribute
  2631           attribute= "code"
  2632          >
  2633           419199007
  2634          </action>
  2635                                                              
  2636          <action 
  2637           action="se tAttribute
  2638           attribute= "displayNa me"
  2639          >
  2640           Allergy to  substance  (disorder )
  2641          </action>
  2642                                                              
  2643          <action 
  2644           action="re move" 
  2645           relative=" cda:origin alText" 
  2646          />
  2647                                                              
  2648          <action 
  2649           action="re move" 
  2650           relative=" ../cda:par ticipant" 
  2651          />
  2652                                                     
  2653         </ifNotNul l>
  2654                                            
  2655        </mapping>
  2656       
  2657                                           
  2658        <mapping 
  2659         equalsProp erty="asse ssment" 
  2660         equalsValu e="not don e"
  2661        >
  2662                                                    
  2663         <property>
  2664          assessment
  2665         </property >
  2666                                                    
  2667         <xpath>
  2668          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: value
  2669         </xpath>
  2670                                                    
  2671         <ifNotNull >
  2672                                                              
  2673          <action 
  2674           action="se tAttribute
  2675           attribute= "code"
  2676          >
  2677           419199007
  2678          </action>
  2679                                                              
  2680          <action 
  2681           action="se tAttribute
  2682           attribute= "displayNa me"
  2683          >
  2684           Allergy to  substance  (disorder )
  2685          </action>
  2686                                                              
  2687          <action 
  2688           action="re move" 
  2689           relative=" cda:origin alText" 
  2690          />
  2691                                                              
  2692          <action 
  2693           action="re move" 
  2694           relative=" ../cda:par ticipant" 
  2695          />
  2696                                                     
  2697         </ifNotNul l>
  2698                                            
  2699        </mapping>
  2700       
  2701                                           
  2702        <mapping 
  2703         equalsProp erty="asse ssment" 
  2704         equalsValu e="not don e"
  2705        >
  2706                                                    
  2707         <property>
  2708          assessment
  2709         </property >
  2710                                                    
  2711         <xpath>
  2712          .
  2713         </xpath>
  2714                                                    
  2715         <ifNotNull >
  2716                                                              
  2717          <action 
  2718           action="se tAttribute "
  2719                                                                       
  2720           relative=" cda:act/cd a:entryRel ationship/ cda:observ ation"
  2721                                                                       
  2722           attribute= "nullFlavo r"
  2723          >
  2724           NASK
  2725          </action>
  2726                                                     
  2727         </ifNotNul l>
  2728                                            
  2729        </mapping>
  2730       
  2731       
  2732                                           
  2733        <mapping 
  2734         equalsProp erty="asse ssment" 
  2735        >
  2736                                                    
  2737         <property>
  2738          adverseTyp eCode
  2739         </property >
  2740                                                    
  2741         <xpath>
  2742          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: value
  2743         </xpath>
  2744                                                    
  2745         <ifNotNull >
  2746                                                              
  2747          <action 
  2748           action="se tAttribute
  2749           attribute= "code" 
  2750          />
  2751                                                              
  2752          <action 
  2753           action="se tAttribute
  2754           attribute= "displayNa me"
  2755                                                                       
  2756           property=" adverseTyp eDisplay" 
  2757          />
  2758                                                     
  2759         </ifNotNul l>
  2760                                                    
  2761         <ifNull>
  2762                                                     
  2763          <!--    <a ction acti on="remove Attributes " />  -->
  2764                                                              
  2765          <action 
  2766           action="se tAttribute
  2767           attribute= "nullFlavo r"
  2768          >
  2769           UNK
  2770          </action>
  2771                                                     
  2772         </ifNull>
  2773                                            
  2774        </mapping>
  2775                                           
  2776        <mapping>
  2777                                                    
  2778         <property>
  2779          type.name
  2780         </property >
  2781                                                    
  2782         <xpath>
  2783          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: value/cda: originalTe xt
  2784         </xpath>
  2785                                                    
  2786         <ifNotNull >
  2787                                                              
  2788          <action 
  2789           action="se tValue" 
  2790          />
  2791                                                     
  2792         </ifNotNul l>
  2793                                            
  2794        </mapping>
  2795                                           
  2796        <mapping>
  2797                                                    
  2798         <property>
  2799          startDate| enteredVal ue
  2800         </property >
  2801                                                    
  2802         <xpath>
  2803          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: effectiveT ime/cda:lo w
  2804         </xpath>
  2805                                                    
  2806         <ifNotNull >
  2807                                                              
  2808          <action 
  2809           action="se tAttribute
  2810           attribute= "value" 
  2811          />
  2812                                                     
  2813         </ifNotNul l>
  2814                                            
  2815        </mapping>
  2816                                           
  2817        <mapping>
  2818                                                    
  2819         <property>
  2820          rxNormProd uctCode
  2821         </property >
  2822                                                    
  2823         <xpath>
  2824          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: participan t/cda:part icipantRol e/cda:play ingEntity/ cda:code
  2825                                         
  2826         </xpath>
  2827                                                    
  2828         <ifNotNull >
  2829                                                              
  2830          <action 
  2831           action="se tAttribute
  2832           attribute= "code"
  2833          >
  2834          </action>
  2835                                                              
  2836          <action 
  2837           action="se tAttribute
  2838           attribute= "displayNa me" 
  2839           property=" rxNormProd uctCodeDis playName"
  2840          >
  2841          </action>        
  2842                                                              
  2843          <action 
  2844           action="ap pendAttrib ute" 
  2845           notEqualsP roperty="r xNormSABTe xt" 
  2846           attribute= "displayNa me"
  2847          >
  2848            (
  2849          </action>        
  2850                                                              
  2851          <action 
  2852           action="ap pendAttrib ute" 
  2853           notEqualsP roperty="r xNormSABTe xt" 
  2854           attribute= "displayNa me" 
  2855           property=" rxNormSABT ext"
  2856          >
  2857          </action>
  2858                                                              
  2859          <action 
  2860           action="ap pendAttrib ute" 
  2861           notEqualsP roperty="r xNormSABTe xt" 
  2862           attribute= "displayNa me"
  2863          >
  2864           )
  2865          </action>                                                                                       
  2866                                                     
  2867          <!--    <a ction acti on="append Attribute"  attribute ="displayN ame" > (RX NORM)</act ion> -->                                                              
  2868                                                              
  2869          <action 
  2870           action="se tAttribute
  2871           attribute= "code" 
  2872           relative=" cda:transl ation" 
  2873           property=" vuid"
  2874          >
  2875          </action>
  2876                                                     
  2877          <action 
  2878           action="se tAttribute
  2879           attribute= "displayNa me" 
  2880           relative=" cda:transl ation" 
  2881           property=" productTex tName"
  2882          >
  2883          </action>
  2884                                    
  2885                                                              
  2886                                                              
  2887                                                     
  2888         </ifNotNul l>
  2889                                                    
  2890         <ifNull>
  2891                                                              
  2892          <action 
  2893           action="se tAttribute
  2894           attribute= "nullFlavo r"
  2895          >
  2896           UNK
  2897          </action>
  2898                                                              
  2899          <action 
  2900           action="re move" 
  2901           relative=" cda:transl ation" 
  2902          >
  2903          </action>
  2904                                                     
  2905         </ifNull>
  2906                                            
  2907        </mapping>
  2908                                           
  2909        <mapping>
  2910                                                    
  2911         <property>
  2912          productTex tNameCoded
  2913         </property >
  2914                                                    
  2915         <xpath>
  2916          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
  2917               
  2918         </xpath>
  2919                                                    
  2920         <ifNotNull >
  2921                                                              
  2922          <action 
  2923           action="se tAttribute
  2924           attribute= "value" 
  2925           indexed="t rue"
  2926          >
  2927           #andAllerg y
  2928          </action>
  2929                                                     
  2930         </ifNotNul l>
  2931                                                    
  2932         <ifNull>
  2933                                                              
  2934          <action 
  2935           action="se tAttribute
  2936           attribute= "value" 
  2937           indexed="t rue"
  2938          >
  2939           #andAllerg y
  2940          </action>
  2941                                                     
  2942         </ifNull>        
  2943                                            
  2944        </mapping>
  2945                                           
  2946        <mapping>
  2947                                                    
  2948         <property>
  2949          productTex tName
  2950         </property >
  2951                                                    
  2952         <xpath>
  2953          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: participan t/cda:part icipantRol e/cda:play ingEntity/ cda:name
  2954         </xpath>
  2955                                                    
  2956         <ifNotNull >
  2957                                                              
  2958          <action 
  2959           action="se tValue" 
  2960          />
  2961                                                     
  2962         </ifNotNul l>
  2963                                            
  2964        </mapping>
  2965                                           
  2966        <mapping>
  2967                                                    
  2968         <property 
  2969          collection ="true"
  2970         >
  2971          reactions
  2972         </property >
  2973                                                    
  2974         <xpath>
  2975          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: entryRelat ionship[@t ypeCode='M FST']
  2976         </xpath>
  2977                                                    
  2978         <ifNotNull >
  2979                                                              
  2980          <action 
  2981           action="ev aluateMapp ings" 
  2982          />
  2983                                                     
  2984         </ifNotNul l>
  2985                                                    
  2986         <ifNull>
  2987                                                              
  2988          <action 
  2989           action="re move" 
  2990          />
  2991                                                     
  2992         </ifNull>
  2993                                                    
  2994         <mappings>
  2995                                                              
  2996          <mapping>
  2997                                                                        
  2998           <property>
  2999            name
  3000           </property >
  3001                                                                        
  3002           <xpath>
  3003            .
  3004           </xpath>
  3005                                                                        
  3006           <ifNotNull >
  3007                                                                                  
  3008            <action 
  3009             action="se tAttribute "
  3010                                                                                           
  3011             relative=" cda:observ ation/cda: value/cda: originalTe xt/cda:ref erence"
  3012                                                                                           
  3013             attribute= "value" 
  3014             indexed="t rue" 
  3015            >
  3016             #andReacti on
  3017            </action>
  3018                                                                         
  3019           </ifNotNul l>
  3020          
  3021                                                               
  3022          </mapping>
  3023                                                              
  3024                                                              
  3025          <mapping>
  3026                                                                        
  3027           <property>
  3028            snomedReac tion
  3029           </property >
  3030                                                                        
  3031           <xpath>
  3032            .
  3033           </xpath>
  3034                                                                        
  3035           <ifNotNull >
  3036                                                                                  
  3037            <action 
  3038             action="se tAttribute "
  3039                                                                                           
  3040             relative=" cda:observ ation/cda: value"
  3041                                                                                           
  3042             attribute= "code" 
  3043            />
  3044                                                                                           
  3045            <action 
  3046             action="se tAttribute "
  3047                                                                                           
  3048             relative=" cda:observ ation/cda: value"
  3049                                                                                           
  3050             attribute= "displayNa me" 
  3051             property=" snomedReac tionDispla yName" 
  3052            />
  3053                                                                                           
  3054                                                                                  
  3055            <action 
  3056             action="se tAttribute
  3057             relative=" cda:observ ation/cda: value/cda: translatio n"
  3058                                                                                           
  3059             attribute= "code" 
  3060             property=" id" 
  3061            />
  3062                                                                                  
  3063            <action 
  3064             action="se tAttribute
  3065             relative=" cda:observ ation/cda: value/cda: translatio n"
  3066                                                                                           
  3067             attribute= "displayNa me" 
  3068             property=" name" 
  3069            />      
  3070                                                                                                   
  3071                                                                         
  3072           </ifNotNul l>
  3073                                                                        
  3074           <ifNull>
  3075                                                                                  
  3076            <action 
  3077             action="se tAttribute "
  3078                                                                                           
  3079             relative=" cda:observ ation/cda: value"
  3080                                                                                           
  3081             attribute= "nullFlavo r" 
  3082            >
  3083             UNK
  3084            </action>
  3085                                                                                  
  3086            <action 
  3087             action="re move" 
  3088             relative=" cda:observ ation/cda: value/cda: translatio n"
  3089                                                                                            />              
  3090                                                                         
  3091           </ifNull>
  3092          
  3093                                                               
  3094          </mapping>
  3095                                                              
  3096                                                              
  3097                                                     
  3098         </mappings >
  3099                                            
  3100        </mapping>
  3101       
  3102       
  3103       
  3104       
  3105                                  
  3106        <mapping 
  3107         equalsProp erty="seve rity" 
  3108         equalsValu e="SEVERE"
  3109        >
  3110                                            
  3111         <property>
  3112          severity
  3113         </property >
  3114                                            
  3115         <xpath>
  3116          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: entryRelat ionship[@t ypeCode='S UBJ']
  3117         </xpath>
  3118                                            
  3119         <ifNotNull >
  3120                                                     
  3121          <action 
  3122           action="se tAttribute
  3123           relative=" cda:observ ation/cda: value"
  3124                                                              
  3125           attribute= "code"
  3126          >
  3127           24484000
  3128          </action>
  3129                                                     
  3130          <action 
  3131           action="se tAttribute
  3132           relative=" cda:observ ation/cda: value"
  3133                                                              
  3134           attribute= "displayNa me"
  3135          >
  3136           Severe (qu alifier va lue)
  3137          </action>
  3138                                             
  3139         </ifNotNul l>
  3140                                   
  3141        </mapping>
  3142                         
  3143                                  
  3144        <mapping 
  3145         equalsProp erty="seve rity" 
  3146         equalsValu e="MODERAT E"
  3147        >
  3148                                            
  3149         <property>
  3150          severity
  3151         </property >
  3152                                            
  3153         <xpath>
  3154          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: entryRelat ionship[@t ypeCode='S UBJ']
  3155         </xpath>
  3156                                            
  3157         <ifNotNull >
  3158                                                     
  3159          <action 
  3160           action="se tAttribute
  3161           relative=" cda:observ ation/cda: value"
  3162                                                              
  3163           attribute= "code"
  3164          >
  3165           6736007
  3166          </action>
  3167                                                     
  3168          <action 
  3169           action="se tAttribute
  3170           relative=" cda:observ ation/cda: value"
  3171                                                              
  3172           attribute= "displayNa me"
  3173          >
  3174           Moderate ( qualifer v alue)
  3175          </action>        
  3176                                             
  3177         </ifNotNul l>
  3178                                   
  3179        </mapping>
  3180                                  
  3181        <mapping 
  3182         equalsProp erty="seve rity" 
  3183         equalsValu e="MILD"
  3184        >
  3185                                            
  3186         <property>
  3187          severity
  3188         </property >
  3189                                            
  3190         <xpath>
  3191          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: entryRelat ionship[@t ypeCode='S UBJ']
  3192         </xpath>
  3193                                            
  3194         <ifNotNull >
  3195                                                     
  3196          <action 
  3197           action="se tAttribute
  3198           relative=" cda:observ ation/cda: value"
  3199                                                              
  3200           attribute= "code"
  3201          >
  3202           255604002
  3203          </action>
  3204                                                     
  3205          <action 
  3206           action="se tAttribute
  3207           relative=" cda:observ ation/cda: value"
  3208                                                              
  3209           attribute= "displayNa me"
  3210          >
  3211           Mild (qual ifer value )
  3212          </action>                 
  3213                                             
  3214         </ifNotNul l>
  3215                                   
  3216        </mapping>
  3217                         
  3218                                  
  3219        <mapping>
  3220                                            
  3221         <property>
  3222          severity
  3223         </property >
  3224                                            
  3225         <xpath>
  3226          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: entryRelat ionship[@t ypeCode='S UBJ']
  3227         </xpath>
  3228                                            
  3229         <ifNotNull >
  3230                                                     
  3231          <action 
  3232           action="se tAttribute "
  3233                                                              
  3234           relative=" cda:observ ation/cda: value/cda: originalTe xt/cda:ref erence"
  3235                                                              
  3236           attribute= "value" 
  3237           indexed="t rue"
  3238          >
  3239           #andSeveri ty
  3240          </action>
  3241                                             
  3242         </ifNotNul l>
  3243                                            
  3244         <ifNull>
  3245                                                     
  3246          <action 
  3247           action="re move" 
  3248          />
  3249                                             
  3250         </ifNull>
  3251                                   
  3252        </mapping>
  3253                                           
  3254                                           
  3255                                  
  3256       </mappings >
  3257                        
  3258      </mapping>
  3259                       
  3260      <!-- VITAL S NARRATIV E -->
  3261                       
  3262      <mapping>
  3263                                 
  3264       <property 
  3265        optional=" true"
  3266       >
  3267        vitalsNarr ation
  3268       </property >
  3269                                 
  3270       <xpath>
  3271        /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']
  3272       </xpath>
  3273                                 
  3274       <ifNotNull >
  3275                                                   
  3276        <action 
  3277         action="se tValue" 
  3278         relative=" cda:sectio n/cda:text /cda:parag raph[@ID=' vitalsPara graph']" 
  3279        />
  3280                                  
  3281       </ifNotNul l>
  3282                        
  3283      </mapping>
  3284     
  3285                       
  3286      <mapping>
  3287                                 
  3288       <property 
  3289        collection ="true" 
  3290        optional=" true"
  3291       >
  3292        vitals
  3293       </property >
  3294                                 
  3295       <xpath>
  3296        /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']
  3297       </xpath>
  3298                                 
  3299       <ifNotNull >
  3300                                           
  3301        <action 
  3302         action="ev aluateMapp ings"
  3303                                                   
  3304         relative=" cda:sectio n/cda:text /cda:table [@ID='vita lNarrative ']/cda:tbo dy/cda:tr"  
  3305        />
  3306                                  
  3307       </ifNotNul l>
  3308                                 
  3309       <mappings>
  3310                                           
  3311        <mapping>
  3312                                                    
  3313         <property>
  3314          prettyTake nTime
  3315         </property >
  3316                                                    
  3317         <xpath>
  3318          cda:td[1]
  3319         </xpath>
  3320                                                    
  3321         <ifNotNull >
  3322                                                              
  3323          <action 
  3324           action="se tValue" 
  3325          />
  3326                                                     
  3327         </ifNotNul l>
  3328                                            
  3329        </mapping>
  3330                                           
  3331        <mapping>
  3332                                                    
  3333         <property>
  3334          facilityNa me
  3335         </property >
  3336                                                    
  3337         <xpath>
  3338          cda:td/cda :content[@ ID='vndSou rce']
  3339         </xpath>
  3340                                                    
  3341         <ifNotNull >
  3342                                                              
  3343          <action 
  3344           action="se tAttribute
  3345           attribute= "ID" 
  3346           indexed="t rue"
  3347          >
  3348           vndSource
  3349          </action>
  3350                                                              
  3351          <action 
  3352           action="se tValue" 
  3353          />
  3354                                                     
  3355         </ifNotNul l>
  3356                                            
  3357        </mapping>
  3358                                           
  3359        <mapping >
  3360                                                    
  3361         <property 
  3362          collection ="true" 
  3363         >
  3364          measuremen ts
  3365         </property >
  3366                                                    
  3367         <xpath>
  3368          .
  3369         </xpath>
  3370                                                    
  3371         <ifNotNull >
  3372                                                              
  3373          <action 
  3374           action="ev aluateMapp ingsToPare nt"
  3375          />
  3376                                                     
  3377         </ifNotNul l>
  3378                                                    
  3379         <mappings>
  3380                                                              
  3381          <!-- Tempe rature -->
  3382                                                              
  3383          <mapping 
  3384           equalsProp erty="vuid
  3385           equalsValu e="4500638 "
  3386          >
  3387                                                                        
  3388           <property>
  3389            value
  3390           </property >
  3391                                                                        
  3392           <xpath>
  3393            cda:td[2]
  3394           </xpath>
  3395                                                                        
  3396           <ifNotNull >
  3397                                                                                  
  3398            <action 
  3399             action="ap pendValue"  
  3400            />
  3401                                                                                  
  3402            <action 
  3403             action="ap pendValue"  
  3404            >
  3405              
  3406            </action>
  3407                                                                                  
  3408            <action 
  3409             action="ap pendValue"  
  3410             property=" units" 
  3411            />
  3412                                                                         
  3413           </ifNotNul l>
  3414                                                               
  3415          </mapping>
  3416                                                              
  3417          <!-- Pulse  -->
  3418                                                              
  3419          <mapping 
  3420           equalsProp erty="vuid
  3421           equalsValu e="4500636 "
  3422          >
  3423                                                                        
  3424           <property>
  3425            value
  3426           </property >
  3427                                                                        
  3428           <xpath>
  3429            cda:td[3]
  3430           </xpath>
  3431                                                                        
  3432           <ifNotNull >
  3433                                                                                  
  3434            <action 
  3435             action="ap pendValue"  
  3436            />
  3437                                                                                  
  3438            <action 
  3439             action="ap pendValue"  
  3440            >
  3441              
  3442            </action>
  3443                                                                                  
  3444            <action 
  3445             action="ap pendValue"  
  3446             property=" units" 
  3447            />
  3448                                                                         
  3449           </ifNotNul l>
  3450                                                               
  3451          </mapping>
  3452                                                              
  3453          <!-- Blood  Pressure  Display fr om origina l  -->
  3454                                                              
  3455          <mapping 
  3456           equalsProp erty="vuid
  3457           equalsValu e="4500634 ~1"
  3458          >
  3459                                                                        
  3460           <property>
  3461            rawValue
  3462           </property >
  3463                                                                        
  3464           <xpath>
  3465            cda:td[4]
  3466           </xpath>
  3467                                                                        
  3468           <ifNotNull >
  3469                                                                                  
  3470            <action 
  3471             action="ap pendValue"  
  3472            />
  3473                                                                                  
  3474            <action 
  3475             action="ap pendValue"  
  3476            >
  3477              
  3478            </action>
  3479                                                                                  
  3480            <action 
  3481             action="ap pendValue"  
  3482             property=" units" 
  3483            />
  3484                                                                         
  3485           </ifNotNul l>
  3486                                                               
  3487          </mapping>
  3488                                                              
  3489          <!-- Respi ratory Rat e -->
  3490                                                              
  3491          <mapping 
  3492           equalsProp erty="vuid
  3493           equalsValu e="4688725 "
  3494          >
  3495                                                                        
  3496           <property>
  3497            value
  3498           </property >
  3499                                                                        
  3500           <xpath>
  3501            cda:td[5]
  3502           </xpath>
  3503                                                                        
  3504           <ifNotNull >
  3505                                                                                  
  3506            <action 
  3507             action="ap pendValue"  
  3508            />
  3509                                                                                  
  3510            <action 
  3511             action="ap pendValue"  
  3512            >
  3513              
  3514            </action>
  3515                                                                                  
  3516            <action 
  3517             action="ap pendValue"  
  3518             property=" units" 
  3519            />
  3520                                                                         
  3521           </ifNotNul l>
  3522                                                               
  3523          </mapping>
  3524                                                              
  3525          <!-- SP02  -->
  3526                                                              
  3527          <mapping 
  3528           equalsProp erty="vuid
  3529           equalsValu e="4500637 "
  3530          >
  3531                                                                        
  3532           <property>
  3533            value
  3534           </property >
  3535                                                                        
  3536           <xpath>
  3537            cda:td[6]
  3538           </xpath>
  3539                                                                        
  3540           <ifNotNull >
  3541                                                                                  
  3542            <action 
  3543             action="ap pendValue"  
  3544            />
  3545                                                                                  
  3546            <action 
  3547             action="ap pendValue"  
  3548            >
  3549            </action>
  3550                                                                                  
  3551            <action 
  3552             action="ap pendValue"  
  3553             property=" units" 
  3554            />
  3555                                                                         
  3556           </ifNotNul l>
  3557                                                               
  3558          </mapping>
  3559                                                              
  3560          <!-- Pain  -->
  3561                                                              
  3562          <mapping 
  3563           equalsProp erty="vuid
  3564           equalsValu e="4500635 "
  3565          >
  3566                                                                        
  3567           <property>
  3568            value
  3569           </property >
  3570                                                                        
  3571           <xpath>
  3572            cda:td[7]
  3573           </xpath>
  3574                                                                        
  3575           <ifNotNull >
  3576                                                                                  
  3577            <action 
  3578             action="ap pendValue"  
  3579            />
  3580                                                                                  
  3581            <action 
  3582             action="ap pendValue"  
  3583            >
  3584              
  3585            </action>
  3586                                                                                  
  3587            <action 
  3588             action="ap pendValue"  
  3589             property=" units" 
  3590            />
  3591                                                                         
  3592           </ifNotNul l>
  3593                                                               
  3594          </mapping>
  3595                                                              
  3596          <!-- Heigh t -->
  3597                                                              
  3598          <mapping 
  3599           equalsProp erty="vuid
  3600           equalsValu e="4688724 "
  3601          >
  3602                                                                        
  3603           <property>
  3604            value
  3605           </property >
  3606                                                                        
  3607           <xpath>
  3608            cda:td[8]
  3609           </xpath>
  3610                                                                        
  3611           <ifNotNull >
  3612                                                                                  
  3613            <action 
  3614             action="ap pendValue"  
  3615            />
  3616                                                                                  
  3617            <action 
  3618             action="ap pendValue"  
  3619            >
  3620              
  3621            </action>
  3622                                                                                  
  3623            <action 
  3624             action="ap pendValue"  
  3625             property=" units" 
  3626            />
  3627                                                                         
  3628           </ifNotNul l>
  3629                                                               
  3630          </mapping>
  3631                                                              
  3632          <!-- Weigh t -->
  3633                                                              
  3634          <mapping 
  3635           equalsProp erty="vuid
  3636           equalsValu e="4500639 "
  3637          >
  3638                                                                        
  3639           <property>
  3640            value
  3641           </property >
  3642                                                                        
  3643           <xpath>
  3644            cda:td[9]
  3645           </xpath>
  3646                                                                        
  3647           <ifNotNull >
  3648                                                                                  
  3649            <action 
  3650             action="ap pendValue"  
  3651            />
  3652                                                                                  
  3653            <action 
  3654             action="ap pendValue"  
  3655            >
  3656              
  3657            </action>
  3658                                                                                  
  3659            <action 
  3660             action="ap pendValue"  
  3661             property=" units" 
  3662            />
  3663                                                                         
  3664           </ifNotNul l>
  3665                                                               
  3666          </mapping>
  3667                                                              
  3668          <!-- BMI - ->
  3669                                                              
  3670          <mapping 
  3671           equalsProp erty="vuid
  3672           equalsValu e="4500639 "
  3673          >
  3674                                                                        
  3675           <property>
  3676            bmi
  3677           </property >
  3678                                                                        
  3679           <xpath>
  3680            cda:td[10]
  3681           </xpath>
  3682                                                                        
  3683           <ifNotNull >
  3684                                                                                  
  3685            <action 
  3686             action="ap pendValue"  
  3687            />
  3688                                                                         
  3689           </ifNotNul l>
  3690                                                               
  3691          </mapping>
  3692                                                     
  3693         </mappings >
  3694                                            
  3695        </mapping>
  3696                                  
  3697       </mappings >
  3698                        
  3699      </mapping>
  3700                       
  3701      <mapping>
  3702                                 
  3703       <property 
  3704        collection ="true" 
  3705        optional=" true"
  3706       >
  3707        vitals
  3708       </property >
  3709                                 
  3710       <xpath>
  3711        /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']
  3712       </xpath>
  3713                                 
  3714       <ifNotNull >
  3715                                           
  3716        <action 
  3717         action="ev aluateMapp ings" 
  3718         relative=" cda:sectio n/cda:entr y[@typeCod e='DRIV']"  
  3719        />
  3720                                  
  3721       </ifNotNul l>
  3722                                 
  3723       <ifNull>
  3724                                           
  3725        <!-- <acti on action= "remove">N I</action>  -->
  3726                                           
  3727        <!--  Set  Vitals Sec tion to NI  so the do cument pas ses the MU 2 online c ertificati on; TPS -- >
  3728                                                     
  3729                                           
  3730        <action 
  3731         action="re move" 
  3732         relative=" cda:sectio n/cda:entr y"
  3733        >
  3734         NI
  3735        </action>
  3736                                           
  3737        <action 
  3738         action="se tValue" 
  3739         relative=" cda:sectio n/cda:text "
  3740        >
  3741         No Data Pr ovided for  This Sect ion
  3742        </action>
  3743                                           
  3744        <action 
  3745         action="se tAttribute
  3746         relative=" cda:sectio n" 
  3747         attribute= "nullFlavo r"
  3748        >
  3749         NI
  3750        </action>
  3751                                   
  3752                                  
  3753                                  
  3754       </ifNull>
  3755                                 
  3756       <mappings>
  3757                                           
  3758        <mapping>
  3759                                                    
  3760         <property>
  3761          takenTime
  3762         </property >
  3763                                                    
  3764         <xpath>
  3765          cda:organi zer/cda:ef fectiveTim e
  3766         </xpath>
  3767                                                    
  3768         <ifNotNull >
  3769                                                              
  3770          <action 
  3771           action="se tAttribute
  3772           attribute= "value" 
  3773          />
  3774                                                     
  3775         </ifNotNul l>
  3776                                            
  3777        </mapping>
  3778                                           
  3779        <mapping>
  3780                                                    
  3781         <property 
  3782          optional=" true"
  3783         >
  3784          facilityNu mber
  3785         </property >
  3786                                                    
  3787         <xpath>
  3788          cda:organi zer/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:id
  3789         </xpath>
  3790                                                    
  3791         <ifNotNull >
  3792                                                              
  3793          <action 
  3794           action="se tAttribute
  3795           attribute= "extension
  3796          />
  3797                                                     
  3798         </ifNotNul l>
  3799                                            
  3800        </mapping>
  3801                                           
  3802        <mapping>
  3803                                                    
  3804         <property 
  3805          optional=" true"
  3806         >
  3807          facilityNa me
  3808         </property >
  3809                                                    
  3810         <xpath>
  3811          cda:organi zer/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:name
  3812         </xpath>
  3813                                                    
  3814         <ifNotNull >
  3815                                                              
  3816          <action 
  3817           action="se tValue" 
  3818          />
  3819                                                     
  3820         </ifNotNul l>
  3821                                            
  3822        </mapping>
  3823                                           
  3824        <mapping>
  3825                                                    
  3826         <property 
  3827          collection ="true"
  3828         >
  3829          measuremen ts
  3830         </property >
  3831                                                    
  3832         <xpath>
  3833          cda:organi zer[@class Code='CLUS TER' and @ moodCode=' EVN']/cda: component
  3834         </xpath>
  3835                                                    
  3836         <ifNotNull >
  3837                                                              
  3838          <action 
  3839           action="se tAttribute
  3840           attribute= "value" 
  3841           property=" enteredTim e"
  3842                                                                       
  3843           relative=" cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:ef fectiveTim e" 
  3844          />
  3845                                                              
  3846          <action 
  3847           action="ev aluateMapp ings" 
  3848          />
  3849                                                     
  3850         </ifNotNul l>
  3851                                                    
  3852         <mappings>
  3853                                                              
  3854          <mapping>
  3855                                                                        
  3856           <property>
  3857            vitalID
  3858           </property >
  3859                                                                        
  3860           <xpath>
  3861            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:id
  3862           </xpath>
  3863                                                                        
  3864           <ifNotNull >
  3865                                                                                  
  3866            <action 
  3867             action="se tAttribute
  3868             attribute= "extension
  3869            />
  3870                                                                         
  3871           </ifNotNul l>
  3872                                                               
  3873          </mapping>
  3874                                                              
  3875          <mapping>
  3876                                                                        
  3877           <property>
  3878            vitalCode
  3879           </property >
  3880                                                                        
  3881           <xpath>
  3882            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:co de
  3883           </xpath>
  3884                                                                        
  3885           <ifNotNull >
  3886                                                                                  
  3887            <action 
  3888             action="se tAttribute
  3889             attribute= "code" 
  3890            />
  3891                                                                         
  3892           </ifNotNul l>
  3893                                                               
  3894          </mapping>
  3895                                                              
  3896          <mapping>
  3897                                                                        
  3898           <property>
  3899            vitalDispl ay
  3900           </property >
  3901                                                                        
  3902           <xpath>
  3903            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:co de
  3904           </xpath>
  3905                                                                        
  3906           <ifNotNull >
  3907                                                                                  
  3908            <action 
  3909             action="se tAttribute
  3910             attribute= "displayNa me" 
  3911            />
  3912                                                                         
  3913           </ifNotNul l>
  3914                                                               
  3915          </mapping>
  3916                                                              
  3917          <mapping>
  3918                                                                        
  3919           <property>
  3920            vuid
  3921           </property >
  3922                                                                        
  3923           <xpath>
  3924            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:co de/cda:tra nslation
  3925           </xpath>
  3926                                                                        
  3927           <ifNotNull >
  3928                                                                                  
  3929            <action 
  3930             action="se tAttribute
  3931             attribute= "code" 
  3932            />
  3933                                                                         
  3934           </ifNotNul l>
  3935                                                               
  3936          </mapping>
  3937                                                              
  3938          <mapping>
  3939                                                                        
  3940           <property>
  3941            name
  3942           </property >
  3943                                                                        
  3944           <xpath>
  3945            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:co de
  3946           </xpath>
  3947                                                                        
  3948           <ifNotNull >
  3949                                                                                  
  3950            <action 
  3951             action="se tValue" 
  3952             relative=" cda:origin alText" 
  3953            />
  3954                                                                                  
  3955            <action 
  3956             action="se tAttribute
  3957             relative=" cda:transl ation"
  3958                                                                                           
  3959             attribute= "displayNa me" 
  3960            />
  3961                                                                         
  3962           </ifNotNul l>
  3963                                                               
  3964          </mapping>
  3965                                                              
  3966                                                              
  3967          <!-- Added  for STS s tatic tran slation Vi tals-pain. Rational I D 163161 U ser Story- ->
  3968                                                              
  3969          <mapping 
  3970           equalsProp erty="vuid
  3971           equalsValu e="4500635
  3972          >
  3973                                                                        
  3974           <property 
  3975            optional=" true"
  3976           >
  3977            vuid
  3978           </property >
  3979                                                                        
  3980           <xpath>
  3981            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:co de
  3982           </xpath>
  3983                                                                        
  3984           <ifNotNull >
  3985                                                                                  
  3986            <action 
  3987             action="re moveAttrib utes" 
  3988            />
  3989                                                                                  
  3990            <action 
  3991             action="se tAttribute
  3992             attribute= "code"
  3993            >
  3994             72514-3
  3995            </action>
  3996                                                                                  
  3997            <action 
  3998             action="se tAttribute
  3999             attribute= "displayNa me"
  4000            >
  4001             Pain sever ity 0-10 R eported
  4002            </action>
  4003                                                                                  
  4004            <action 
  4005             action="se tAttribute
  4006             attribute= "codeSyste mName" 
  4007            >
  4008             LOINC
  4009            </action>
  4010                                                                                  
  4011            <action 
  4012             action="se tAttribute
  4013             attribute= "codeSyste m"
  4014            >
  4015             2.16.840.1 .113883.6. 1
  4016            </action>
  4017                                                                         
  4018           </ifNotNul l>
  4019                                                               
  4020          </mapping>                         
  4021         
  4022                                                              
  4023          <mapping>
  4024                                                                        
  4025           <property>
  4026            value
  4027           </property >
  4028                                                                        
  4029           <xpath>
  4030            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:va lue
  4031           </xpath>
  4032                                                                        
  4033           <ifNotNull >
  4034                                                                                  
  4035            <action 
  4036             action="se tAttribute
  4037             attribute= "value" 
  4038            />
  4039                                                                         
  4040           </ifNotNul l>
  4041                                                               
  4042          </mapping>
  4043                                                              
  4044          <mapping 
  4045           equalsProp erty="name
  4046           equalsValu e="BMI"
  4047          >
  4048                                                                        
  4049           <property>
  4050            units
  4051           </property >
  4052                                                                        
  4053           <xpath>
  4054            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:va lue
  4055           </xpath>
  4056                                                                        
  4057           <ifNotNull >
  4058                                                                                  
  4059            <action 
  4060             action="se tAttribute
  4061             attribute= "unit" 
  4062            />
  4063                                                                         
  4064           </ifNotNul l>
  4065                                                               
  4066          </mapping>
  4067                                                              
  4068          <mapping>
  4069                                                                        
  4070           <property 
  4071            optional=" true"
  4072           >
  4073            units
  4074           </property >
  4075                                                                        
  4076           <xpath>
  4077            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:va lue
  4078           </xpath>
  4079                                                                        
  4080           <ifNotNull >
  4081                                                                                  
  4082            <action 
  4083             action="se tAttribute
  4084             attribute= "unit" 
  4085             property=" unit"
  4086            />
  4087                                                                                  
  4088            <action 
  4089             action="se tAttribute
  4090             relative=" cda:transl ation" 
  4091             attribute= "code"  
  4092            />
  4093                                                                                  
  4094            <action 
  4095             action="se tAttribute
  4096             relative=" cda:transl ation" 
  4097             attribute= "displayNa me"  
  4098            />
  4099                                                                         
  4100           </ifNotNul l>
  4101                                                                        
  4102           <ifNull>
  4103                                                                                  
  4104            <action 
  4105             action="re move" 
  4106             relative=" cda:transl ation"
  4107            >
  4108            </action>
  4109                                                                         
  4110           </ifNull>
  4111                                                               
  4112          </mapping>
  4113                                                              
  4114          <!-- Remov e BMI tran slation an d use unit s for unit  - no vets  translati on-->
  4115                                                              
  4116          <mapping 
  4117           equalsProp erty="name
  4118           equalsValu e="BMI"
  4119          >
  4120                                                                        
  4121           <property 
  4122            optional=" true"
  4123           >
  4124            units
  4125           </property >
  4126                                                                        
  4127           <xpath>
  4128            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:va lue
  4129           </xpath>
  4130                                                                        
  4131           <ifNotNull >
  4132                                                                                  
  4133            <action 
  4134             action="se tAttribute
  4135             attribute= "unit" 
  4136             property=" units"
  4137            />
  4138                                                                                  
  4139            <action 
  4140             action="re move" 
  4141             relative=" cda:transl ation"  
  4142            />
  4143                                                                         
  4144           </ifNotNul l>
  4145                                                               
  4146          </mapping>                                                   
  4147                                                              
  4148          <!-- Added  for STS s tatic tran slation Vi tals-bmi.R ational ID  163161 Us er Story-- >
  4149                                                              
  4150          <mapping 
  4151           equalsProp erty="name
  4152           equalsValu e="BMI"
  4153          >
  4154                                                                        
  4155           <property>
  4156            name
  4157           </property >
  4158                                                                        
  4159           <xpath>
  4160            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:co de
  4161           </xpath>
  4162                                                                        
  4163           <ifNotNull >
  4164                                                                                  
  4165            <action 
  4166             action="re moveAttrib utes" 
  4167            />
  4168                                                                                  
  4169            <action 
  4170             action="se tAttribute
  4171             attribute= "code"
  4172            >
  4173             39156-5
  4174            </action>
  4175                                                                                  
  4176            <action 
  4177             action="se tAttribute
  4178             attribute= "displayNa me"
  4179            >
  4180             BMI
  4181            </action>
  4182                                                                                  
  4183            <action 
  4184             action="se tAttribute
  4185             attribute= "codeSyste m"
  4186            >
  4187             2.16.840.1 .113883.6. 1
  4188            </action>
  4189                                                                                  
  4190            <action 
  4191             action="se tAttribute
  4192             attribute= "codeSyste mName" 
  4193            >
  4194             LOINC
  4195            </action>
  4196                                                                                  
  4197            <action 
  4198             action="se tValue" 
  4199             relative=" cda:origin alText" 
  4200            >
  4201             BMI
  4202            </action>
  4203                                                                         
  4204           </ifNotNul l>
  4205                                                               
  4206          </mapping>                
  4207                                                              
  4208          <mapping 
  4209           equalsProp erty="name
  4210           equalsValu e="BMI"
  4211          >
  4212                                                                        
  4213           <property>
  4214            name
  4215           </property >
  4216                                                                        
  4217           <xpath>
  4218            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:co de/cda:tra nslation
  4219           </xpath>
  4220                                                                        
  4221           <ifNotNull >
  4222                                                                                  
  4223            <action 
  4224             action="re move" 
  4225            />
  4226                                                                         
  4227           </ifNotNul l>
  4228                                                               
  4229          </mapping>                                                                                                        
  4230                                                              
  4231                                                              
  4232          <!-- If no t qualifie rs at all  - remove t he target  and method  elements  -->
  4233                                                              
  4234          <mapping>
  4235                                                                        
  4236           <property>
  4237            qualifiers
  4238           </property >
  4239                                                                        
  4240           <xpath>
  4241            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N'] 
  4242           </xpath>
  4243                                                                        
  4244           <ifNotNull >
  4245                                                                         
  4246           </ifNotNul l>
  4247                                                                        
  4248           <ifNull>
  4249                                                                                  
  4250            <action 
  4251             action="re move" 
  4252             relative=" cda:target SiteCode"
  4253            >
  4254            </action>
  4255                                                                                  
  4256            <action 
  4257             action="re move" 
  4258             relative=" cda:method Code"
  4259            >
  4260            </action>
  4261                                                                         
  4262           </ifNull>
  4263                                                               
  4264          </mapping>
  4265                                                     
  4266                                                              
  4267          <!-- else  proces the  qualifier s -->
  4268                                                              
  4269          <mapping>
  4270                                                                        
  4271           <property>
  4272            qualifiers
  4273           </property >
  4274                                                                        
  4275           <xpath>
  4276            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:ta rgetSiteCo de
  4277           </xpath>
  4278                                                                        
  4279           <ifNotNull >
  4280                                                                                  
  4281            <action 
  4282             action="ev aluateMapp ings" 
  4283            />
  4284                                                                         
  4285           </ifNotNul l>
  4286                                                                        
  4287           <mappings>
  4288                                                                                  
  4289            <mapping 
  4290             equalsProp erty="targ etCodeSet"  
  4291             equalsValu e="T"
  4292            >
  4293                                                                                            
  4294             <property>
  4295              name
  4296             </property >
  4297                                                                                            
  4298             <xpath>
  4299              cda:origin alText
  4300             </xpath>
  4301                                                                                            
  4302             <ifNotNull >
  4303                                                                                                     
  4304              <action 
  4305               action="se tValue" 
  4306              />
  4307                                                                                             
  4308             </ifNotNul l>
  4309                                                                                   
  4310            </mapping>
  4311                                                                                  
  4312            <mapping 
  4313             notEqualsP roperty="t argetCodeS et" 
  4314             notEqualsV alue="T"
  4315            >
  4316                                                                                            
  4317             <property>
  4318              name
  4319             </property >
  4320                                                                                            
  4321             <xpath>
  4322              .
  4323             </xpath>
  4324                                                                                            
  4325             <ifNotNull >
  4326                                                                                                     
  4327              <action 
  4328               action="re move" 
  4329              />
  4330                                                                                             
  4331             </ifNotNul l>
  4332                                                                                   
  4333            </mapping>
  4334                                                                         
  4335           </mappings >
  4336                                                               
  4337          </mapping>
  4338                                                     
  4339                                                              
  4340          <mapping>
  4341                                                                        
  4342           <property>
  4343            qualifiers
  4344           </property >
  4345                                                                        
  4346           <xpath>
  4347            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:me thodCode
  4348           </xpath>
  4349                                                                        
  4350           <ifNotNull >
  4351                                                                                  
  4352            <action 
  4353             action="ev aluateMapp ings" 
  4354            />
  4355                                                                         
  4356           </ifNotNul l>
  4357                                                                        
  4358           <mappings>
  4359                                                                                  
  4360            <mapping 
  4361             equalsProp erty="meth odCodeSet"  
  4362             equalsValu e="M"
  4363            >
  4364                                                                                            >
  4365                                                                                            
  4366             <property>
  4367              name
  4368             </property >
  4369                                                                                            
  4370             <xpath>
  4371              cda:origin alText
  4372             </xpath>
  4373                                                                                            
  4374             <ifNotNull >
  4375                                                                                                     
  4376              <action 
  4377               action="se tValue" 
  4378              />
  4379                                                                                             
  4380             </ifNotNul l>
  4381                                                        
  4382                                                                                   
  4383            </mapping>
  4384                                                       
  4385                                                                                  
  4386            <mapping 
  4387             notEqualsP roperty="m ethodCodeS et" 
  4388             notEqualsV alue="M"
  4389            >
  4390                                                                                            
  4391             <property>
  4392              name
  4393             </property >
  4394                                                                                            
  4395             <xpath>
  4396              .
  4397             </xpath>
  4398                                                                                            
  4399             <ifNotNull >
  4400                                                                                                     
  4401              <action 
  4402               action="re move" 
  4403              />
  4404                                                                                             
  4405             </ifNotNul l>
  4406                                                                                   
  4407            </mapping>
  4408                                                                         
  4409           </mappings >
  4410                                                               
  4411          </mapping>
  4412                                                              
  4413                  
  4414                                                     
  4415         </mappings >
  4416                                            
  4417        </mapping>
  4418                                  
  4419       </mappings >
  4420                        
  4421      </mapping>
  4422                       
  4423      <!-- Docum ent Provid er Mapping  -->
  4424                       
  4425      <mapping>
  4426                                 
  4427       <property 
  4428        optional=" true" 
  4429        collection ="true" 
  4430        merge="tru e"
  4431       >
  4432        participan ts
  4433       </property >
  4434                                 
  4435       <xpath>
  4436        /cda:Clini calDocumen t/cda:docu mentationO f/cda:serv iceEvent/c da:perform er[@typeCo de='PRF' a nd @id='PC P']
  4437       </xpath>
  4438                                 
  4439       <ifNotNull >
  4440                                           
  4441        <action 
  4442         action="re moveAttrib utes"
  4443        />
  4444                                           
  4445        <action 
  4446         action="se tAttribute
  4447         attribute= "typeCode"
  4448        >
  4449         PRF
  4450        </action>
  4451                                           
  4452        <action 
  4453         action="ev aluateMapp ings" 
  4454        />
  4455                                  
  4456       </ifNotNul l>
  4457                                 
  4458       <ifNull>
  4459                                           
  4460        <action 
  4461         action="re move" 
  4462        />
  4463                                  
  4464       </ifNull>
  4465                                 
  4466       <mappings>
  4467                                           
  4468        <!--  PCP  Name -->
  4469                                           
  4470        <mapping>
  4471                                                    
  4472         <property>
  4473          pcProvider .name
  4474         </property >
  4475                                                    
  4476         <xpath>
  4477          cda:assign edEntity
  4478         </xpath>
  4479                                                    
  4480         <ifNotNull >
  4481                                                              
  4482          <action 
  4483           action="se tValue" 
  4484           relative=" cda:assign edPerson/c da:name" 
  4485          />
  4486                                                              
  4487          <action 
  4488           action="re moveAttrib utes" 
  4489           relative=" cda:id" 
  4490          />
  4491                                                              
  4492          <action 
  4493           action="se tAttribute
  4494           relative=" cda:id" 
  4495           attribute= "nullFlavo r"
  4496          >
  4497           UNK
  4498          </action>
  4499                                                     
  4500         </ifNotNul l>
  4501                                                    
  4502         <ifNull>
  4503                                                              
  4504          <action 
  4505           action="re move" 
  4506           relative=" .." 
  4507          />
  4508                                                     
  4509         </ifNull>
  4510                                            
  4511        </mapping>
  4512                                           
  4513        <mapping>
  4514                                                    
  4515         <property>
  4516          pcProvider .taxonomyC ode
  4517         </property >
  4518                                                    
  4519         <xpath>
  4520          cda:assign edEntity/c da:code
  4521         </xpath>
  4522                                                    
  4523         <ifNotNull >
  4524                                                              
  4525          <action 
  4526           action="se tAttribute
  4527           attribute= "code" 
  4528          />
  4529                                                              
  4530          <action 
  4531           action="ap pendAttrib ute" 
  4532           attribute= "code" 
  4533           property=" providerTy pe"
  4534          />
  4535                                                              
  4536          <action 
  4537           action="se tValue" 
  4538           property=" providerTy pe" 
  4539           relative=" cda:origin alText" 
  4540          />
  4541                                                     
  4542         </ifNotNul l>
  4543                                                    
  4544         <ifNull>
  4545                                                              
  4546          <action 
  4547           action="re moveAttrib utes" 
  4548          />
  4549                                                              
  4550          <action 
  4551           action="se tAttribute
  4552           attribute= "nullFlavo r"
  4553          >
  4554           UNK
  4555          </action>
  4556                                                     
  4557         </ifNull>
  4558                                            
  4559        </mapping>
  4560                                           
  4561        <mapping>
  4562                                                    
  4563         <property>
  4564          pcProvider .providerT ype
  4565         </property >
  4566                                                    
  4567         <xpath>
  4568          cda:assign edEntity/c da:code/cd a:original Text
  4569         </xpath>
  4570                                                    
  4571         <ifNotNull >
  4572                                                              
  4573          <action 
  4574           action="se tValue" 
  4575          />
  4576                                                     
  4577         </ifNotNul l>
  4578                                                    
  4579         <ifNull>
  4580                                                              
  4581          <action 
  4582           action="re move" 
  4583          />
  4584                                                     
  4585         </ifNull>
  4586                                            
  4587        </mapping>                                          
  4588                                           
  4589        <!-- PCP e -mail -->
  4590                                           
  4591        <mapping>
  4592                                                    
  4593         <property>
  4594          pcProvider .email
  4595         </property >
  4596                                                    
  4597         <xpath>
  4598          cda:assign edEntity/c da:telecom [@ID='EMAI L']
  4599         </xpath>
  4600                                                    
  4601         <ifNotNull >
  4602                                                              
  4603          <action 
  4604           action="re moveAttrib utes" 
  4605          />
  4606                                                              
  4607          <action 
  4608           action="ap pendAttrib ute" 
  4609           attribute= "value"
  4610          >
  4611           email:
  4612          </action>
  4613                                                              
  4614          <action 
  4615           action="ap pendAttrib ute" 
  4616           attribute= "value"
  4617          />
  4618                                                              
  4619          <action 
  4620           action="se tAttribute
  4621           attribute= "use"
  4622          >
  4623           WP
  4624          </action>
  4625                                                     
  4626         </ifNotNul l>
  4627                                                    
  4628         <ifNull>
  4629                                                              
  4630          <action 
  4631           action="re move" 
  4632          />
  4633                                                     
  4634         </ifNull>
  4635                                            
  4636        </mapping>
  4637                                           
  4638        <!-- PCP P hone -->
  4639                                           
  4640        <mapping>
  4641                                                    
  4642         <property>
  4643          pcProvider .officePho ne
  4644         </property >
  4645                                                    
  4646         <xpath>
  4647          cda:assign edEntity/c da:telecom [@ID='TELE PHONE']
  4648         </xpath>
  4649                                                    
  4650         <ifNotNull >
  4651                                                              
  4652          <action 
  4653           action="re moveAttrib utes" 
  4654          />
  4655                                                              
  4656          <action 
  4657           action="ap pendAttrib ute" 
  4658           attribute= "value"
  4659          />
  4660                                                              
  4661          <action 
  4662           action="se tAttribute
  4663           attribute= "use"
  4664          >
  4665           WP
  4666          </action>
  4667                                                     
  4668         </ifNotNul l>
  4669                                                    
  4670         <ifNull>
  4671                                                              
  4672          <action 
  4673           action="re move" 
  4674          />
  4675                                                     
  4676         </ifNull>
  4677                                            
  4678        </mapping>
  4679                                           
  4680                                            
  4681                                           
  4682        <mapping>
  4683                                                    
  4684         <property>
  4685          pcProvider .pcAddress Street
  4686         </property >
  4687                                                    
  4688         <xpath>
  4689          cda:assign edEntity/c da:addr/cd a:streetAd dressLine
  4690         </xpath>
  4691                                                    
  4692         <ifNotNull >
  4693                                                              
  4694          <action 
  4695           action="se tValue" 
  4696          />
  4697                                                     
  4698         </ifNotNul l>
  4699                                                    
  4700         <ifNull>
  4701                                                              
  4702          <action 
  4703           action="se tAttribute
  4704           attribute= "nullFlavo r"
  4705          >
  4706           UNK
  4707          </action>
  4708                                                     
  4709         </ifNull>
  4710                                            
  4711        </mapping>
  4712                                           
  4713        <mapping>
  4714                                                    
  4715         <property>
  4716          pcProvider .pcAddress City
  4717         </property >
  4718                                                    
  4719         <xpath>
  4720          cda:assign edEntity/c da:addr/cd a:city
  4721         </xpath>
  4722                                                    
  4723         <ifNotNull >
  4724                                                              
  4725          <action 
  4726           action="se tValue" 
  4727          />
  4728                                                     
  4729         </ifNotNul l>
  4730                                                    
  4731         <ifNull>
  4732                                                              
  4733          <action 
  4734           action="se tAttribute
  4735           attribute= "nullFlavo r"
  4736          >
  4737           UNK
  4738          </action>
  4739                                                     
  4740         </ifNull>
  4741                                            
  4742        </mapping>
  4743                                           
  4744        <mapping>
  4745                                                    
  4746         <property>
  4747          pcProvider .pcAddress State
  4748         </property >
  4749                                                    
  4750         <xpath>
  4751          cda:assign edEntity/c da:addr/cd a:state
  4752         </xpath>
  4753                                                    
  4754         <ifNotNull >
  4755                                                              
  4756          <action 
  4757           action="se tValue" 
  4758          />
  4759                                                     
  4760         </ifNotNul l>
  4761                                                    
  4762         <ifNull>
  4763                                                              
  4764          <action 
  4765           action="se tAttribute
  4766           attribute= "nullFlavo r"
  4767          >
  4768           UNK
  4769          </action>
  4770                                                     
  4771         </ifNull>
  4772                                            
  4773        </mapping>
  4774                                  
  4775                                           
  4776        <mapping>
  4777                                                    
  4778         <property>
  4779          pcProvider .pcAddress Postal
  4780         </property >
  4781                                                    
  4782         <xpath>
  4783          cda:assign edEntity/c da:addr/cd a:postalCo de
  4784         </xpath>
  4785                                                    
  4786         <ifNotNull >
  4787                                                              
  4788          <action 
  4789           action="se tValue" 
  4790          />
  4791                                                     
  4792         </ifNotNul l>
  4793                                                    
  4794         <ifNull>
  4795                                                              
  4796          <action 
  4797           action="se tAttribute
  4798           attribute= "nullFlavo r"
  4799          >
  4800           UNK
  4801          </action>
  4802                                                     
  4803         </ifNull>
  4804                                            
  4805        </mapping>
  4806                 
  4807                                  
  4808       </mappings >
  4809                        
  4810      </mapping>
  4811                       
  4812                       
  4813                                         
  4814      <!-- Docum ent Provid er Mapping  -->
  4815                       
  4816      <mapping>
  4817                                 
  4818       <property 
  4819        optional=" true" 
  4820        collection ="true" 
  4821        merge="tru e"
  4822       >
  4823        problems
  4824       </property >
  4825                                 
  4826       <xpath>
  4827        /cda:Clini calDocumen t/cda:docu mentationO f/cda:serv iceEvent/c da:perform er[@typeCo de='PRF' a nd @id='no tPCP']
  4828       </xpath>
  4829                                 
  4830       <ifNotNull >
  4831                                           
  4832        <action 
  4833         action="re moveAttrib utes"
  4834        />
  4835                                           
  4836        <action 
  4837         action="se tAttribute
  4838         attribute= "typeCode"
  4839        >
  4840         PRF
  4841        </action>
  4842                                           
  4843        <action 
  4844         action="ev aluateMapp ings" 
  4845        />
  4846                                  
  4847       </ifNotNul l>
  4848                                 
  4849       <ifNull>
  4850                                           
  4851        <action 
  4852         action="re move" 
  4853        />
  4854                                  
  4855       </ifNull>
  4856                                 
  4857       <mappings>                                 
  4858                                           
  4859        <!-- 7.03  PROBLEM He althcare p rovider re ference va lue, REQUI RED -->
  4860                                           
  4861        <mapping>
  4862                                                    
  4863         <property>
  4864          provider
  4865         </property >
  4866                                                    
  4867         <xpath>
  4868          cda:assign edEntity
  4869         </xpath>
  4870                                                    
  4871         <ifNotNull >
  4872                                                              
  4873          <!-- <acti on action= "setAttrib ute" relat ive="cda:i d" attribu te="extens ion"
  4874                                                                       inde xed="true" >provider< /action>   -->
  4875                                                              
  4876          <action 
  4877           action="se tAttribute
  4878           relative=" cda:id" 
  4879           attribute= "nullFlavo r"
  4880          >
  4881           NA
  4882          </action>
  4883                                                              
  4884          <action 
  4885           action="se tValue" 
  4886           relative=" cda:assign edPerson/c da:name" 
  4887          />
  4888                                                              
  4889          <action 
  4890           action="re move" 
  4891           relative=" cda:code" 
  4892          />
  4893                                                              
  4894          <action 
  4895           action="re move" 
  4896           relative=" ../cda:fun ctionCode"
  4897          />
  4898                                                     
  4899         </ifNotNul l>
  4900                                            
  4901        </mapping>
  4902                                           
  4903        <mapping>
  4904                                                    
  4905         <property>
  4906          facilityNu mber
  4907         </property >
  4908                                                    
  4909         <xpath>
  4910          cda:assign edEntity/c da:represe ntedOrgani zation/cda :id
  4911         </xpath>
  4912                                                    
  4913         <ifNotNull >
  4914                                                              
  4915          <action 
  4916           action="se tAttribute
  4917           attribute= "extension
  4918          />
  4919                                                              
  4920          <action 
  4921           action="re moveAttrib utes" 
  4922           relative=" cda:repres entedOrgan ization/cd a:id" 
  4923           attribute= "nullFlavo r" 
  4924          />
  4925                                                     
  4926         </ifNotNul l>
  4927                                            
  4928        </mapping>
  4929                                           
  4930        <mapping>
  4931                                                    
  4932         <property>
  4933          facilityNa me
  4934         </property >
  4935                                                    
  4936         <xpath>
  4937          cda:assign edEntity/c da:represe ntedOrgani zation/cda :name
  4938         </xpath>
  4939                                                    
  4940         <ifNotNull >
  4941                                                              
  4942          <action 
  4943           action="se tValue" 
  4944          />
  4945                                                     
  4946         </ifNotNul l>
  4947                                            
  4948        </mapping>
  4949                                  
  4950       </mappings >
  4951                        
  4952      </mapping>
  4953                       
  4954      <!-- PROBL EM NARRATI VE -->
  4955                       
  4956      <mapping>
  4957                            
  4958       <property 
  4959        optional=" true"
  4960       >
  4961        problemsNa rrative
  4962       </property >
  4963                            
  4964       <xpath>
  4965        /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']
  4966       </xpath>
  4967                            
  4968       <ifNotNull >
  4969                                  
  4970        <action 
  4971         action="se tValue" 
  4972         relative=" cda:sectio n/cda:text /cda:parag raph" 
  4973        />
  4974                             
  4975       </ifNotNul l>
  4976                        
  4977      </mapping>
  4978                       
  4979      <mapping>
  4980                                 
  4981       <property 
  4982        optional=" true" 
  4983        collection ="true" 
  4984        merge="tru e"
  4985       >
  4986        problems
  4987       </property >
  4988                                 
  4989       <xpath>
  4990        /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']
  4991       </xpath>
  4992                                 
  4993       <ifNotNull >
  4994                                           
  4995        <action 
  4996         action="ev aluateMapp ings"
  4997                                                   
  4998         relative=" cda:sectio n/cda:text /cda:table [@ID='prob lemNarrati ve']/cda:t body/cda:t r" 
  4999        />
  5000                                  
  5001       </ifNotNul l>
  5002                                 
  5003       <mappings>
  5004                                           
  5005        <mapping>
  5006                                                    
  5007         <property>
  5008          name
  5009         </property >
  5010                                                    
  5011         <xpath>
  5012          cda:td/cda :content[@ ID='pndPro blem']
  5013         </xpath>
  5014                                                    
  5015         <ifNotNull >
  5016                                                              
  5017          <action 
  5018           action="se tAttribute
  5019           attribute= "ID" 
  5020           indexed="t rue"
  5021          >
  5022           pndProblem
  5023          </action>
  5024                                                              
  5025          <action 
  5026           action="se tValue" 
  5027          />
  5028                                                     
  5029         </ifNotNul l>
  5030                                            
  5031        </mapping>
  5032                                           
  5033        <mapping>
  5034                                                    
  5035         <property>
  5036          statusDisp lay
  5037         </property >
  5038                                                    
  5039         <xpath>
  5040          cda:td/cda :content[@ ID='pndSta tus']
  5041         </xpath>
  5042                                                    
  5043         <ifNotNull >
  5044                                                              
  5045          <action 
  5046           action="se tAttribute
  5047           attribute= "ID" 
  5048           indexed="t rue"
  5049          >
  5050           pndStatus
  5051          </action>
  5052                                                              
  5053          <action 
  5054           action="se tValue" 
  5055          />
  5056                                                     
  5057         </ifNotNul l>
  5058                                            
  5059        </mapping>
  5060                                           
  5061        <mapping>
  5062                                                    
  5063         <property>
  5064          icdCode
  5065         </property >
  5066                                                    
  5067         <xpath>
  5068          cda:td[3]/ cda:conten t
  5069         </xpath>
  5070                                                    
  5071         <ifNotNull >
  5072                                                              
  5073          <action 
  5074           action="se tAttribute
  5075           attribute= "ID" 
  5076           indexed="t rue"
  5077          >
  5078           pndProblem Code
  5079          </action>
  5080                                                              
  5081          <action 
  5082           action="se tValue" 
  5083          />
  5084                                                     
  5085         </ifNotNul l>
  5086                                                    
  5087         <ifNull>
  5088                                                              
  5089          <action 
  5090           action="se tAttribute
  5091           attribute= "ID" 
  5092           indexed="t rue"
  5093          >
  5094           pndProblem Code
  5095          </action>
  5096                                                     
  5097         </ifNull>
  5098                                            
  5099        </mapping>
  5100                                           
  5101                                           
  5102        <mapping>
  5103                                                    
  5104         <property>
  5105          icdCodeToS nomed
  5106         </property >
  5107                                                    
  5108         <xpath>
  5109          cda:td[3]/ cda:conten t
  5110         </xpath>
  5111                                                    
  5112         <ifNotNull >
  5113                                                              
  5114          <action 
  5115           action="se tAttribute
  5116           attribute= "ID" 
  5117           indexed="t rue"
  5118          >
  5119           pndProblem Code
  5120          </action>
  5121                                                              
  5122          <action 
  5123           action="se tValue" 
  5124          />
  5125                                                     
  5126         </ifNotNul l>
  5127                                                    
  5128         <ifNull>
  5129                                                              
  5130          <action 
  5131           action="se tAttribute
  5132           attribute= "ID" 
  5133           indexed="t rue"
  5134          >
  5135           pndProblem Code
  5136          </action>
  5137                                                     
  5138         </ifNull>
  5139                                            
  5140        </mapping>
  5141                                           
  5142                                           
  5143        <mapping>
  5144                                                    
  5145         <property>
  5146          sctCode
  5147         </property >
  5148                                                    
  5149         <xpath>
  5150          cda:td[3]/ cda:conten t
  5151         </xpath>
  5152                                                    
  5153         <ifNotNull >
  5154                                                              
  5155          <action 
  5156           action="se tAttribute
  5157           attribute= "ID" 
  5158           indexed="t rue"
  5159          >
  5160           pndProblem Code
  5161          </action>
  5162                                                              
  5163          <action 
  5164           action="se tValue" 
  5165          />
  5166                                                     
  5167         </ifNotNul l>
  5168                                                    
  5169         <ifNull>
  5170                                                              
  5171          <action 
  5172           action="se tAttribute
  5173           attribute= "ID" 
  5174           indexed="t rue"
  5175          >
  5176           pndProblem Code
  5177          </action>
  5178                                                     
  5179         </ifNull>
  5180                                            
  5181        </mapping>
  5182                                           
  5183                                           
  5184        <mapping>
  5185                                                    
  5186         <property 
  5187          optional=" true"
  5188         >
  5189          prettyDate
  5190         </property >
  5191                                                    
  5192         <xpath>
  5193          cda:td/cda :content[@ ID='pndDat eOfOnset']
  5194         </xpath>
  5195                                                    
  5196         <ifNotNull >
  5197                                                              
  5198          <action 
  5199           action="se tAttribute
  5200           attribute= "ID" 
  5201           indexed="t rue"
  5202          >
  5203           pndDateOfO nset
  5204          </action>
  5205                                                              
  5206          <action 
  5207           action="se tValue" 
  5208          />
  5209                                                     
  5210         </ifNotNul l>
  5211                                                    
  5212         <ifNull>
  5213                                                              
  5214          <action 
  5215           action="se tAttribute
  5216           attribute= "ID" 
  5217           indexed="t rue"
  5218          >
  5219           pndDateOfO nset
  5220          </action>
  5221                                                     
  5222         </ifNull>
  5223                                            
  5224        </mapping>
  5225                                           
  5226        <mapping>
  5227                                                    
  5228         <property 
  5229          optional=" true"
  5230         >
  5231          prettyDate Resolved
  5232         </property >
  5233                                                    
  5234         <xpath>
  5235          cda:td/cda :content[@ ID='pndDat eOfResolut ion']
  5236         </xpath>
  5237                                                    
  5238         <ifNotNull >
  5239                                                              
  5240          <action 
  5241           action="se tAttribute
  5242           attribute= "ID" 
  5243           indexed="t rue"
  5244          >
  5245           pndDateOfR esolution
  5246          </action>
  5247                                                              
  5248          <action 
  5249           action="se tValue" 
  5250          />
  5251                                                     
  5252         </ifNotNul l>
  5253                                                    
  5254         <ifNull>
  5255                                                              
  5256          <action 
  5257           action="se tAttribute
  5258           attribute= "ID" 
  5259           indexed="t rue"
  5260          >
  5261           pndDateOfR esolution
  5262          </action>
  5263                                                     
  5264         </ifNull>
  5265                                            
  5266        </mapping>
  5267                                           
  5268        <mapping>
  5269                              
  5270         <property 
  5271          optional=" true" 
  5272          collection ="true" 
  5273          merge="tru e"
  5274         >
  5275          comments,c omments.co mment
  5276         </property >
  5277                              
  5278         <xpath>
  5279          cda:td/cda :list/cda: item[cda:c ontent/@ID ='pndComme nt']
  5280         </xpath>
  5281                              
  5282         <ifNotNull >
  5283                                                              
  5284          <action 
  5285           action="se tAttribute
  5286           relative=" cda:conten t"
  5287                                                                       
  5288           attribute= "ID" 
  5289           indexed="t rue"
  5290          >
  5291           pndComment
  5292          </action>
  5293                                                              
  5294          <action 
  5295           action="ev aluateMapp ings" 
  5296          />
  5297                                                     
  5298         </ifNotNul l>
  5299         <!--                                        <property  optional=" true" coll ection="tr ue" merge= "true">com ments</pro perty>
  5300                               <xpath>cda :td/cda:co ntent[@ID= 'pndCommen t']</xpath >
  5301                               <ifNotNull >
  5302                                   <actio n action=" setAttribu te" attrib ute="ID" i ndexed="tr ue">pndCom ment</acti on>
  5303                                   <actio n action=" evaluateMa ppings"/>
  5304                               </ifNotNul l> -->
  5305                                                    
  5306         <mappings>
  5307                                    
  5308          <mapping>
  5309                                         
  5310           <property 
  5311            optional=" true"
  5312           >
  5313            entered
  5314           </property >
  5315                                         
  5316           <xpath>
  5317            cda:conten t
  5318           </xpath>
  5319                                         
  5320           <ifNotNull >
  5321                                               
  5322            <action 
  5323             action="ap pendAttrib ute" 
  5324             attribute= "ID" 
  5325             indexed="t rue"
  5326            >
  5327             _
  5328            </action>
  5329                                               
  5330            <!--<actio n action=" appendValu e" propert y="entered " />-->
  5331                                               
  5332            <action 
  5333             action="se tValue" 
  5334            />
  5335            <!--                                   <act ion action ="appendEl ement" >&l t;br/&gt;< /action>-- >
  5336                                               
  5337            <action 
  5338             action="ap pendValue"  
  5339            >
  5340             &#xa;
  5341            </action>
  5342                                          
  5343           </ifNotNul l>
  5344                                     
  5345          </mapping>
  5346                                    
  5347          <mapping>
  5348                                         
  5349           <property 
  5350            optional=" true"
  5351           >
  5352            enteredBy
  5353           </property >
  5354                                         
  5355           <xpath>
  5356            cda:conten t
  5357           </xpath>
  5358                                         
  5359           <ifNotNull >
  5360                                               
  5361            <action 
  5362             action="ap pendValue"
  5363            >
  5364             Entered By
  5365            </action>
  5366                                               
  5367            <action 
  5368             action="ap pendValue"  
  5369             property=" enteredBy"  
  5370            />
  5371            <!--                                   <act ion action ="appendEl ement" >&l t;br/&gt;< /action>-- >
  5372                                               
  5373            <action 
  5374             action="ap pendValue"
  5375            >
  5376             &#xa;
  5377            </action>
  5378                                          
  5379           </ifNotNul l>
  5380                                     
  5381          </mapping>
  5382                                    
  5383          <mapping>
  5384                                         
  5385           <property 
  5386            optional=" true"
  5387           >
  5388            commentTex t
  5389           </property >
  5390                                         
  5391           <xpath>
  5392            cda:conten t
  5393           </xpath>
  5394                                         
  5395           <ifNotNull >
  5396                                               
  5397            <action 
  5398             action="ap pendValue"
  5399            >
  5400             Comment: 
  5401            </action>
  5402                                               
  5403            <action 
  5404             action="ap pendValue"  
  5405             property=" commentTex t" 
  5406            />
  5407            <!--                                   <act ion action ="appendVa lue">&lt;c ontent&gt; &lt;br/&gt ;&lt;/cont ent&gt;</a ction>-->
  5408            <!--                                   <act ion action ="appendEl ement" >&l t;br/&gt;< /action>-- >
  5409                                               
  5410            <action 
  5411             action="ap pendValue"
  5412            >
  5413             &#xa;
  5414            </action>
  5415                                          
  5416           </ifNotNul l>
  5417                                         
  5418           <ifNull>
  5419                                               
  5420            <action 
  5421             action="ap pendValue"
  5422            >
  5423             Comment em pty. 
  5424            </action>
  5425            <!--                                   <act ion action ="appendEl ement" >&l t;br/&gt;< /action>-- >
  5426                                               
  5427            <action 
  5428             action="ap pendValue"
  5429            >
  5430             &#xa;
  5431            </action>
  5432                                          
  5433           </ifNull>
  5434                                     
  5435          </mapping>
  5436                               
  5437         </mappings >
  5438                                                    
  5439         <ifNull>
  5440                                                              
  5441          <action 
  5442           action="ap pendAttrib ute" 
  5443           attribute= "ID" 
  5444           indexed="t rue"
  5445          >
  5446           pndComment
  5447          </action>
  5448                                                              
  5449          <action 
  5450           action="se tValue"
  5451          >
  5452           No comment s entered  for proble m.
  5453          </action>
  5454                                                     
  5455         </ifNull>
  5456                                            
  5457        </mapping>                                 
  5458                                           
  5459        <mapping>
  5460                                                    
  5461         <property>
  5462          provider
  5463         </property >
  5464                                                    
  5465         <xpath>
  5466          cda:td/cda :content[@ ID='pndPro vider']
  5467         </xpath>
  5468                                                    
  5469         <ifNotNull >
  5470                                                              
  5471          <action 
  5472           action="se tAttribute
  5473           attribute= "ID" 
  5474           indexed="t rue"
  5475          >
  5476           pndProvide r
  5477          </action>
  5478                                                              
  5479          <action 
  5480           action="se tValue" 
  5481          />
  5482                                                     
  5483         </ifNotNul l>
  5484                                            
  5485        </mapping>
  5486                                           
  5487        <mapping>
  5488                                                    
  5489         <property 
  5490          optional=" true"
  5491         >
  5492          facilityNa me
  5493         </property >
  5494                                                    
  5495         <xpath>
  5496          cda:td/cda :content[@ ID='pndSou rce']
  5497         </xpath>
  5498                                                    
  5499         <ifNotNull >
  5500                                                              
  5501          <action 
  5502           action="se tAttribute
  5503           attribute= "ID" 
  5504           indexed="t rue"
  5505          >
  5506           pndSource
  5507          </action>
  5508                                                              
  5509          <action 
  5510           action="se tValue" 
  5511          />
  5512                                                     
  5513         </ifNotNul l>
  5514                                                    
  5515         <ifNull>
  5516                                                              
  5517          <action 
  5518           action="se tAttribute
  5519           attribute= "ID" 
  5520           indexed="t rue"
  5521          >
  5522           pndSource
  5523          </action>
  5524                                                     
  5525         </ifNull>
  5526                                            
  5527        </mapping>
  5528                                  
  5529       </mappings >
  5530                        
  5531      </mapping>
  5532                       
  5533      <!-- PROBL EM SECTION  -->
  5534                       
  5535      <mapping>
  5536                                 
  5537       <property 
  5538        collection ="true" 
  5539        merge="tru e"
  5540       >
  5541        problems
  5542       </property >
  5543                                 
  5544       <xpath>
  5545        /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']
  5546       </xpath>
  5547                                 
  5548       <ifNotNull >
  5549                                           
  5550        <action 
  5551         action="ev aluateMapp ings" 
  5552         relative=" cda:sectio n/cda:entr y" 
  5553        />
  5554                                  
  5555       </ifNotNul l>
  5556                                 
  5557       <ifNull>
  5558                                           
  5559        <action 
  5560         action="re move" 
  5561         relative=" cda:sectio n/cda:entr y"
  5562        >
  5563         NI
  5564        </action>
  5565                                           
  5566        <action 
  5567         action="se tValue" 
  5568         relative=" cda:sectio n/cda:text "
  5569        >
  5570         No Data Pr ovided for  This Sect ion
  5571        </action>
  5572                                           
  5573        <action 
  5574         action="se tAttribute
  5575         relative=" cda:sectio n"
  5576                                                   
  5577         attribute= "nullFlavo r"
  5578        >
  5579         NI
  5580        </action>
  5581                                  
  5582       </ifNull>
  5583                                 
  5584       <mappings>
  5585                                           
  5586        <mapping>
  5587                                                    
  5588         <property 
  5589          optional=" true"
  5590         >
  5591          date
  5592         </property >
  5593                                                    
  5594         <xpath 
  5595          sort="desc "
  5596         >
  5597          cda:act/cd a:effectiv eTime/cda: low
  5598         </xpath>
  5599                                                    
  5600         <ifNotNull >
  5601                                                              
  5602          <action 
  5603           action="se tAttribute
  5604           attribute= "value" 
  5605          />
  5606                                                     
  5607         </ifNotNul l>
  5608                                                    
  5609         <ifNull>
  5610                                                              
  5611          <action 
  5612           action="re moveAttrib utes" 
  5613          />
  5614                                                              
  5615          <action 
  5616           action="se tAttribute
  5617           attribute= "nullFlavo r"
  5618          >
  5619           UNK
  5620          </action>
  5621                                                     
  5622         </ifNull>
  5623                                            
  5624        </mapping>
  5625                                           
  5626        <mapping>
  5627                                                    
  5628         <property 
  5629          optional=" true"
  5630         >
  5631          dateResolv ed
  5632         </property >
  5633                                                    
  5634         <xpath 
  5635          sort="desc "
  5636         >
  5637          cda:act/cd a:effectiv eTime/cda: high
  5638         </xpath>
  5639                                                    
  5640         <ifNotNull >
  5641                                                              
  5642          <action 
  5643           action="se tAttribute
  5644           attribute= "value" 
  5645          />
  5646                                                     
  5647         </ifNotNul l>
  5648                                                    
  5649         <ifNull>
  5650                                                              
  5651          <action 
  5652           action="re moveAttrib utes" 
  5653          />
  5654                                                              
  5655          <action 
  5656           action="se tAttribute
  5657           attribute= "nullFlavo r"
  5658          >
  5659           UNK
  5660          </action>
  5661                                                     
  5662         </ifNull>
  5663                                            
  5664        </mapping>
  5665                                           
  5666        <!-- 7.05  TREATING P ROVIDER, O ptional -- >
  5667                                           
  5668        <!-- 7.05  TREATING P ROVIDER, P rovider ID  linked to  Health Ca re Provide
  5669                                                    Module -->
  5670                                           
  5671        <mapping>
  5672                                                    
  5673         <property>
  5674          provider
  5675         </property >
  5676                                                    
  5677         <xpath>
  5678          cda:act/cd a:performe r/cda:assi gnedEntity /cda:id
  5679         </xpath>
  5680                                                    
  5681         <ifNotNull >
  5682                                                              
  5683          <action 
  5684           action="se tAttribute
  5685           attribute= "extension "
  5686                                                                       
  5687           indexed="t rue"
  5688          >
  5689           provider
  5690          </action>
  5691                                                     
  5692         </ifNotNul l>
  5693                                                    
  5694         <ifNull>
  5695                                                              
  5696          <action 
  5697           action="se tAttribute
  5698           attribute= "nullFlavo r"
  5699          >
  5700           UNK
  5701          </action>
  5702                                                     
  5703         </ifNull>
  5704                                            
  5705        </mapping>
  5706                                           
  5707        <!-- INFOR MATION SOU RCE FOR PR OBLEM, Opt ional -->
  5708                                           
  5709        <!-- INFOR MATION SOU RCE FACILI TY OID (VA  OID + TRE ATING FACI LITY NBR)  -->
  5710                                           
  5711        <mapping>
  5712                                                    
  5713         <property 
  5714          optional=" true"
  5715         >
  5716          facilityNu mber
  5717         </property >
  5718                                                    
  5719         <xpath>
  5720          cda:act/cd a:author/c da:assigne dAuthor/cd a:represen tedOrganiz ation/cda: id
  5721         </xpath>
  5722                                                    
  5723         <ifNotNull >
  5724                                                              
  5725          <action 
  5726           action="se tAttribute
  5727           attribute= "extension
  5728          />
  5729                                                     
  5730         </ifNotNul l>
  5731                                            
  5732        </mapping>
  5733                                           
  5734        <mapping>
  5735                                                    
  5736         <!-- INFOR MATION SOU RCE FACILI TY NAME -- >
  5737                                                    
  5738         <property 
  5739          optional=" true"
  5740         >
  5741          facilityNa me
  5742         </property >
  5743                                                    
  5744         <xpath>
  5745          cda:act/cd a:author/c da:assigne dAuthor/cd a:represen tedOrganiz ation/cda: name
  5746         </xpath>
  5747                                                    
  5748         <ifNotNull >
  5749                                                              
  5750          <action 
  5751           action="se tValue" 
  5752          />
  5753                                                     
  5754         </ifNotNul l>
  5755                                            
  5756        </mapping>
  5757                                           
  5758        <!-- 7.03  PROBLEM NA ME, REQUIR ED -->
  5759                                           
  5760        <mapping>
  5761                                                    
  5762         <property>
  5763          name
  5764         </property >
  5765                                                    
  5766         <xpath>
  5767          cda:act/cd a:entryRel ationship/ cda:observ ation
  5768         </xpath>
  5769                                                    
  5770         <ifNotNull >
  5771                                                              
  5772          <action 
  5773           action="se tAttribute
  5774           relative=" cda:text/c da:referen ce"
  5775                                                                       
  5776           attribute= "value" 
  5777           indexed="t rue"
  5778          >
  5779           #pndProble m
  5780          </action>
  5781                                                              
  5782          <action 
  5783           action="se tAttribute
  5784           relative=" cda:value/ cda:origin alText/cda :reference "
  5785                                                                       
  5786           attribute= "value" 
  5787           indexed="t rue"
  5788          >
  5789           #pndProble m
  5790          </action>        
  5791                                                     
  5792         </ifNotNul l>
  5793                                            
  5794        </mapping>
  5795                                           
  5796        <!-- 7.02  PROBLEM TY PE, R2, SN OMED CT, a lways UNK  in templat e -->
  5797                                           
  5798        <!-- 7.04  PROBLEM CO DE, Option al, SNOMED  CT -->
  5799                                           
  5800                                           
  5801                                           
  5802                                           
  5803                                           
  5804        <mapping >
  5805                                                    
  5806         <property>
  5807          icdCode
  5808         </property >
  5809                                                    
  5810         <xpath>
  5811          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: value
  5812         </xpath>
  5813                                                    
  5814         <ifNotNull >
  5815                                                              
  5816          <action 
  5817           action="se tAttribute
  5818           relative=" cda:transl ation" 
  5819           attribute= "code" 
  5820           property=" icdCode"
  5821          />
  5822                                                     
  5823         </ifNotNul l>    
  5824                                                    
  5825         <ifNull>
  5826                                                              
  5827          <action 
  5828           action="re move" 
  5829           relative=" cda:transl ation" 
  5830          />
  5831                                                     
  5832         </ifNull>
  5833                                            
  5834        </mapping>  
  5835                                           
  5836                                           
  5837        <mapping >  
  5838                                                    
  5839         <property>
  5840          icdCodeToS nomed
  5841         </property >
  5842                                                    
  5843         <xpath>
  5844          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: value
  5845         </xpath>
  5846                                                    
  5847         <ifNotNull >
  5848                                                              
  5849          <action 
  5850           action="se tAttribute
  5851           attribute= "code" 
  5852           property=" icdCodeToS nomed" 
  5853          />      
  5854                                                              
  5855          <action 
  5856           action="se tAttribute
  5857           attribute= "displayNa me" 
  5858           property=" icdCodeToS nomedDispl ayName" 
  5859          />                                         
  5860                                                     
  5861         </ifNotNul l>    
  5862                                                    
  5863         <!-- <ifNu ll>                                      
  5864                                                             <a ction acti on="setAtt ribute" eq ualsProper ty="sctCod e" attribu te="nullFl avor" >UNK </action>
  5865                                                     </ifNull>  -->
  5866                                            
  5867        </mapping>  
  5868                                           
  5869                                           
  5870        <mapping 
  5871         equalsProp erty="sctC ode" 
  5872         notEqualsP roperty="i cdCode" 
  5873         notEqualsV alue="V22. 2"
  5874       
  5875                                                    
  5876         <property>
  5877          icdCodeToS nomed
  5878         </property >
  5879                                                    
  5880         <xpath>
  5881          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: value
  5882         </xpath>
  5883                                                    
  5884         <ifNotNull >
  5885                                                     
  5886         </ifNotNul l>    
  5887                                                    
  5888         <ifNull>                                            
  5889                                                              
  5890          <action 
  5891           action="se tAttribute
  5892           equalsProp erty="sctC ode" 
  5893           attribute= "nullFlavo r" 
  5894          >
  5895           UNK
  5896          </action>
  5897                                                     
  5898         </ifNull>
  5899                                            
  5900        </mapping>                                 
  5901                                           
  5902                                           
  5903        <mapping>
  5904                                                    
  5905         <property>
  5906          sctCode
  5907         </property >
  5908                                                    
  5909         <xpath>
  5910          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: value
  5911         </xpath>
  5912                                                    
  5913         <ifNotNull >
  5914                                                              
  5915          <action 
  5916           action="se tAttribute
  5917           attribute= "code" 
  5918          />
  5919                                                              
  5920          <action 
  5921           action="se tAttribute
  5922           attribute= "displayNa me" 
  5923           property=" sctName"
  5924          >
  5925          </action>
  5926                                                              
  5927          <action 
  5928           action="re move" 
  5929           relative=" cda:transl ation" 
  5930          />                                                  
  5931                                                     
  5932         </ifNotNul l>
  5933                                                                                
  5934                                            
  5935        </mapping>
  5936       
  5937                                           
  5938                                           
  5939        <!-- Added  for STS s tatic tran slation Pr egnancy Pr oblem Code .Rational  ID 163154  User Story -->
  5940                                           
  5941        <mapping 
  5942         equalsProp erty="icdC ode" 
  5943         equalsValu e="V22.2" 
  5944        >
  5945                                                    
  5946         <property 
  5947          optional=" true"
  5948         >
  5949          icdCode
  5950         </property >
  5951                                                    
  5952         <xpath>
  5953          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: code
  5954         </xpath>
  5955                                                    
  5956         <ifNotNull >
  5957                                                              
  5958          <action 
  5959           action="re moveAttrib utes" 
  5960          />
  5961                                                              
  5962          <action 
  5963           action="se tAttribute
  5964           attribute= "code"
  5965          >
  5966           77386006
  5967          </action>
  5968                                                              
  5969          <action 
  5970           action="se tAttribute
  5971           attribute= "displayNa me"
  5972          >
  5973           Patient cu rrently pr egnant (fi nding)
  5974          </action>
  5975                                                              
  5976          <action 
  5977           action="se tAttribute
  5978           attribute= "xsi:type"
  5979          >
  5980           CD
  5981          </action>
  5982                                                              
  5983          <action 
  5984           action="se tAttribute
  5985           attribute= "codeSyste m"
  5986          >
  5987           2.16.840.1 .113883.6. 96
  5988          </action>
  5989                                                              
  5990          <action 
  5991           action="se tAttribute
  5992           attribute= "codeSyste mName"
  5993          >
  5994           SNOMED CT
  5995          </action>
  5996                                                     
  5997         </ifNotNul l>
  5998                                            
  5999        </mapping>
  6000                                           
  6001                                           
  6002        <!-- 7.04  PROBLEM CO DE Removed  b/c remov ed in temp late -->
  6003                                           
  6004        <!-- 7.04. 1 PROBLEM  STATUS, Op tional, Re moved b/c  remove in  template - ->
  6005                                           
  6006        <mapping>
  6007                                                    
  6008         <property>
  6009          statusCode
  6010         </property >
  6011                                                    
  6012         <xpath>
  6013          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: entryRelat ionship/cd a:observat ion/cda:va lue
  6014         </xpath>
  6015                                                    
  6016         <ifNotNull >
  6017                                                              
  6018          <action 
  6019           action="se tAttribute
  6020           attribute= "code" 
  6021          />
  6022                                                     
  6023         </ifNotNul l>
  6024                                            
  6025        </mapping>
  6026                                           
  6027        <mapping>
  6028                                                    
  6029         <property>
  6030          statusDisp lay
  6031         </property >
  6032                                                    
  6033         <xpath>
  6034          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: entryRelat ionship/cd a:observat ion/cda:va lue
  6035         </xpath>
  6036                                                    
  6037         <ifNotNull >
  6038                                                              
  6039          <action 
  6040           action="se tAttribute
  6041           attribute= "displayNa me" 
  6042          />
  6043                                                     
  6044         </ifNotNul l>
  6045                                            
  6046        </mapping>
  6047                                           
  6048        <mapping>
  6049                                                    
  6050         <property>
  6051          status.nam e
  6052         </property >
  6053                                                    
  6054         <xpath>
  6055          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: entryRelat ionship/cd a:observat ion/cda:va lue/cda:or iginalText
  6056         </xpath>
  6057                                                    
  6058         <ifNotNull >
  6059                                                              
  6060          <action 
  6061           action="se tValue" 
  6062          />
  6063                                                     
  6064         </ifNotNul l>
  6065                                            
  6066        </mapping>
  6067                                           
  6068        <mapping>
  6069                                                    
  6070         <property 
  6071          collection ="true"
  6072         >
  6073          comments,c omments.co mment
  6074         </property >
  6075                                                    
  6076         <xpath>
  6077          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: entryRelat ionship[@t ypeCode='M FST']
  6078         </xpath>
  6079                              
  6080         <ifNotNull >
  6081                                    
  6082          <action 
  6083           action="se tAttribute "
  6084                                        
  6085           relative=" cda:act/cd a:text/cda :reference "
  6086                                        
  6087           attribute= "value" 
  6088           indexed="t rue"
  6089          >
  6090           #pndCommen t
  6091          </action>
  6092                                    
  6093          <action 
  6094           action="ev aluateMapp ings" 
  6095          />
  6096                               
  6097         </ifNotNul l>
  6098                              
  6099         <mappings>
  6100                                    
  6101          <mapping>
  6102                                         
  6103           <property 
  6104            optional=" true"
  6105           >
  6106            code
  6107           </property >
  6108                                         
  6109           <xpath>
  6110            .
  6111           </xpath>
  6112                                         
  6113           <ifNotNull >
  6114                                               
  6115            <action 
  6116             action="ap pendAttrib ute" 
  6117             relative=" cda:act/cd a:text/cda :reference "
  6118                                                       
  6119             attribute= "value" 
  6120             indexed="t rue"
  6121            >
  6122             _
  6123            </action>
  6124                                          
  6125           </ifNotNul l>
  6126                                         
  6127           <ifNull>
  6128                                               
  6129            <action 
  6130             action="ap pendAttrib ute" 
  6131             relative=" cda:act/cd a:text/cda :reference "
  6132                                                       
  6133             attribute= "value" 
  6134             indexed="t rue"
  6135            >
  6136             _
  6137            </action>
  6138                                          
  6139           </ifNull>
  6140                                     
  6141          </mapping>
  6142                               
  6143         </mappings >
  6144                              
  6145         <ifNull>
  6146                                    
  6147          <action 
  6148           action="se tAttribute
  6149           relative=" cda:act/cd a:text/cda :reference "
  6150                                                                       
  6151           attribute= "value" 
  6152           indexed="t rue"
  6153          >
  6154           #pndCommen t
  6155          </action>
  6156                               
  6157         </ifNull>
  6158                                            
  6159        </mapping>
  6160                                  
  6161       </mappings >
  6162                        
  6163      </mapping>
  6164                       
  6165      <!-- PAYER  SECTION N ARRATIVE - ->
  6166                       
  6167      <mapping>
  6168                                 
  6169       <property 
  6170        collection ="true" 
  6171       >
  6172        insurances
  6173       </property >
  6174                                 
  6175       <xpath>
  6176        /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']
  6177       </xpath>
  6178                                 
  6179       <ifNotNull >
  6180                                           
  6181        <action 
  6182         action="ev aluateMapp ings"
  6183                                                   
  6184         relative=" cda:sectio n/cda:text /cda:table [@ID='insu ranceNarra tive']/cda :tbody/cda :tr" 
  6185        />
  6186                                  
  6187       </ifNotNul l>
  6188                                 
  6189       <mappings>
  6190                                           
  6191        <mapping>
  6192                                                    
  6193         <property>
  6194          insuranceT ype.name
  6195         </property >
  6196                                                    
  6197         <xpath>
  6198          cda:td/cda :content[@ ID='insIns urance']
  6199         </xpath>
  6200                                                    
  6201         <ifNotNull >
  6202                                                              
  6203          <action 
  6204           action="se tAttribute
  6205           attribute= "ID" 
  6206           indexed="t rue"
  6207          >
  6208           insInsuran ce
  6209          </action>
  6210                                                              
  6211          <action 
  6212           action="se tValue" 
  6213          />
  6214                                                     
  6215         </ifNotNul l>
  6216                                                    
  6217         <ifNull>
  6218                                                              
  6219          <action 
  6220           action="se tAttribute
  6221           attribute= "ID" 
  6222           indexed="t rue"
  6223          >
  6224           insInsuran ce
  6225          </action>
  6226                                                     
  6227                                                     
  6228         </ifNull>
  6229                                            
  6230        </mapping>
  6231                                           
  6232        <mapping>
  6233                                                    
  6234         <property>
  6235          company.na me
  6236         </property >
  6237                                                    
  6238         <xpath>
  6239          cda:td/cda :content[@ ID='insCom pany']
  6240         </xpath>
  6241                                                    
  6242         <ifNotNull >
  6243                                                              
  6244          <action 
  6245           action="se tAttribute
  6246           attribute= "ID" 
  6247           indexed="t rue"
  6248          >
  6249           insCompany
  6250          </action>
  6251                                                              
  6252          <action 
  6253           action="se tValue" 
  6254          />
  6255                                                     
  6256         </ifNotNul l>
  6257                                                    
  6258         <ifNull>
  6259                                                              
  6260          <action 
  6261           action="se tAttribute
  6262           attribute= "ID" 
  6263           indexed="t rue"
  6264          >
  6265           insCompany
  6266          </action>
  6267                                                     
  6268                                                     
  6269         </ifNull>
  6270                                            
  6271        </mapping>
  6272                                           
  6273        <mapping>
  6274                                                    
  6275         <property>
  6276          groupNumbe r
  6277         </property >
  6278                                                    
  6279         <xpath>
  6280          cda:td/cda :content[@ ID='insGro up']
  6281         </xpath>
  6282                                                    
  6283         <ifNotNull >
  6284                                                              
  6285          <action 
  6286           action="se tAttribute
  6287           attribute= "ID" 
  6288           indexed="t rue"
  6289          >
  6290           insGroup
  6291          </action>
  6292                                                              
  6293          <action 
  6294           action="se tValue" 
  6295          />
  6296                                                     
  6297         </ifNotNul l>
  6298                                                    
  6299         <ifNull>
  6300                                                              
  6301          <action 
  6302           action="se tAttribute
  6303           attribute= "ID" 
  6304           indexed="t rue"
  6305          >
  6306           insGroup
  6307          </action>
  6308                                                     
  6309                                                     
  6310         </ifNull>
  6311                                            
  6312        </mapping>
  6313                                           
  6314        <mapping>
  6315                                                    
  6316         <property>
  6317          relationsh ip
  6318         </property >
  6319                                                    
  6320         <xpath>
  6321          cda:td/cda :content[@ ID='insRel ationship' ]
  6322         </xpath>
  6323                                                    
  6324         <ifNotNull >
  6325                                                              
  6326          <action 
  6327           action="se tAttribute
  6328           attribute= "ID" 
  6329           indexed="t rue"
  6330          >
  6331           insRelatio nship
  6332          </action>
  6333                                                              
  6334          <action 
  6335           action="se tValue" 
  6336          />
  6337                                                     
  6338         </ifNotNul l>
  6339                                                    
  6340         <ifNull>
  6341                                                              
  6342          <action 
  6343           action="se tAttribute
  6344           attribute= "ID" 
  6345           indexed="t rue"
  6346          >
  6347           insRelatio nship
  6348          </action>
  6349                                                     
  6350                                                     
  6351         </ifNull>
  6352                                            
  6353        </mapping>
  6354                                           
  6355                                           
  6356        <mapping>
  6357                                                    
  6358         <property>
  6359          prettyStar tDate
  6360         </property >
  6361                                                    
  6362         <xpath>
  6363          cda:td/cda :content[@ ID='insEff ectiveDate ']
  6364         </xpath>
  6365                                                    
  6366         <ifNotNull >
  6367                                                              
  6368          <action 
  6369           action="se tAttribute
  6370           attribute= "ID" 
  6371           indexed="t rue"
  6372          >
  6373           insEffecti veDate
  6374          </action>
  6375                                                              
  6376          <action 
  6377           action="se tValue"  
  6378          />
  6379                                                     
  6380         </ifNotNul l>
  6381                                                    
  6382         <ifNull>
  6383                                                              
  6384          <action 
  6385           action="se tAttribute
  6386           attribute= "ID" 
  6387           indexed="t rue"
  6388          >
  6389           insEffecti veDate
  6390          </action>
  6391                                                     
  6392                                                     
  6393         </ifNull>
  6394                                            
  6395        </mapping>
  6396                                           
  6397                                           
  6398                                           
  6399        <mapping>
  6400                                                    
  6401         <property>
  6402          prettyEndD ate
  6403         </property >
  6404                                                    
  6405         <xpath>
  6406          cda:td/cda :content[@ ID='insExp irationDat e']
  6407         </xpath>
  6408                                                    
  6409         <ifNotNull >
  6410                                                              
  6411          <action 
  6412           action="se tAttribute
  6413           attribute= "ID" 
  6414           indexed="t rue"
  6415          >
  6416           insExpirat ionDate
  6417          </action>
  6418                                                              
  6419          <action 
  6420           action="se tValue"  
  6421          />
  6422                                                     
  6423         </ifNotNul l>
  6424                                                    
  6425         <ifNull>
  6426                                                              
  6427          <action 
  6428           action="se tAttribute
  6429           attribute= "ID" 
  6430           indexed="t rue"
  6431          >
  6432           insExpirat ionDate
  6433          </action>
  6434                                                     
  6435                                                     
  6436         </ifNull>
  6437                                            
  6438        </mapping>
  6439                                           
  6440                                           
  6441        <mapping>
  6442                                                    
  6443         <property>
  6444          groupName
  6445         </property >
  6446                                                    
  6447         <xpath>
  6448          cda:td/cda :content[@ ID='insGro upName']
  6449         </xpath>
  6450                                                    
  6451         <ifNotNull >
  6452                                                              
  6453          <action 
  6454           action="se tAttribute
  6455           attribute= "ID" 
  6456           indexed="t rue"
  6457          >
  6458           insGroupNa me
  6459          </action>
  6460                                                              
  6461          <action 
  6462           action="se tValue" 
  6463          />
  6464                                                     
  6465         </ifNotNul l>
  6466                                                    
  6467         <ifNull>
  6468                                                              
  6469          <action 
  6470           action="se tAttribute
  6471           attribute= "ID" 
  6472           indexed="t rue"
  6473          >
  6474           insGroupNa me
  6475          </action>
  6476                                                     
  6477                                                     
  6478         </ifNull>
  6479                                            
  6480        </mapping>
  6481                                           
  6482                                           
  6483                                           
  6484        <mapping>
  6485                                                    
  6486         <property>
  6487          subscriber .code
  6488         </property >
  6489                                                    
  6490         <xpath>
  6491          cda:td/cda :content[@ ID='insMem berId']
  6492         </xpath>
  6493                                                    
  6494         <ifNotNull >
  6495                                                              
  6496          <action 
  6497           action="se tAttribute
  6498           attribute= "ID" 
  6499           indexed="t rue"
  6500          >
  6501           insMemberI d
  6502          </action>
  6503                                                              
  6504          <action 
  6505           action="se tValue" 
  6506          />
  6507                                                     
  6508         </ifNotNul l>
  6509                                                    
  6510         <ifNull>
  6511                                                              
  6512          <action 
  6513           action="se tAttribute
  6514           attribute= "ID" 
  6515           indexed="t rue"
  6516          >
  6517           insMemberI d
  6518          </action>
  6519                                                     
  6520                                                     
  6521         </ifNull>
  6522                                            
  6523        </mapping>
  6524                                           
  6525                                           
  6526        <mapping>
  6527                                                    
  6528         <property>
  6529          subscriber .name
  6530         </property >
  6531                                                    
  6532         <xpath>
  6533          cda:td/cda :content[@ ID='insMem berName']
  6534         </xpath>
  6535                                                    
  6536         <ifNotNull >
  6537                                                              
  6538          <action 
  6539           action="se tAttribute
  6540           attribute= "ID" 
  6541           indexed="t rue"
  6542          >
  6543           insMemberN ame
  6544          </action>
  6545                                                              
  6546          <action 
  6547           action="se tValue" 
  6548          />
  6549                                                     
  6550         </ifNotNul l>
  6551                                                    
  6552         <ifNull>
  6553                                                              
  6554          <action 
  6555           action="se tAttribute
  6556           attribute= "ID" 
  6557           indexed="t rue"
  6558          >
  6559           insMemberN ame
  6560          </action>
  6561                                                     
  6562                                                     
  6563         </ifNull>
  6564                                            
  6565        </mapping>
  6566                                           
  6567                                  
  6568       </mappings >
  6569                        
  6570      </mapping>
  6571                       
  6572      <!-- PAYER  SECTION - ->
  6573                       
  6574      <mapping>
  6575                                 
  6576       <property 
  6577        optional=" true" 
  6578        collection ="true" 
  6579        merge="tru e"
  6580       >
  6581        insurances
  6582       </property >
  6583                                 
  6584       <xpath>
  6585        /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']
  6586       </xpath>
  6587                                 
  6588       <ifNotNull >
  6589                                           
  6590        <action 
  6591         action="ev aluateMapp ings" 
  6592         relative=" cda:sectio n/cda:entr y" 
  6593        />
  6594                                  
  6595       </ifNotNul l>
  6596                                 
  6597       <ifNull>
  6598                                           
  6599        <action 
  6600         action="re move"
  6601        >
  6602         NI
  6603        </action>
  6604                                  
  6605       </ifNull>
  6606                                 
  6607       <mappings>
  6608                                           
  6609        <mapping>
  6610                                                    
  6611         <property>
  6612          facility.c ode
  6613         </property >
  6614                                                    
  6615         <xpath>
  6616          cda:act/cd a:entryRel ationship/ cda:act/cd a:author/c da:assigne dAuthor/cd a:represen tedOrganiz ation/cda: id
  6617         </xpath>
  6618                                                    
  6619         <ifNotNull >
  6620                                                              
  6621          <action 
  6622           action="se tAttribute
  6623           attribute= "extension
  6624          />
  6625                                                     
  6626         </ifNotNul l>
  6627                                            
  6628        </mapping>
  6629                                           
  6630        <mapping>
  6631                                                    
  6632         <!-- INFOR MATION SOU RCE FACILI TY NAME -- >
  6633                                                    
  6634         <property>
  6635          facility.n ame
  6636         </property >
  6637                                                    
  6638         <xpath>
  6639          cda:act/cd a:entryRel ationship/ cda:act/cd a:author/c da:assigne dAuthor/cd a:represen tedOrganiz ation/cda: name
  6640         </xpath>
  6641                                                    
  6642         <ifNotNull >
  6643                                                              
  6644          <action 
  6645           action="se tValue" 
  6646          />
  6647                                                     
  6648         </ifNotNul l>
  6649                                            
  6650        </mapping>
  6651                                           
  6652        <mapping>
  6653                                                    
  6654         <property>
  6655          effectiveD ate
  6656         </property >
  6657                                                    
  6658         <xpath>
  6659          cda:act/cd a:entryRel ationship/ cda:act/cd a:effectiv eTime/cda: low
  6660         </xpath>
  6661                                                    
  6662         <ifNotNull >
  6663                                                              
  6664          <action 
  6665           action="se tAttribute
  6666           attribute= "value" 
  6667          />
  6668                                                     
  6669         </ifNotNul l>
  6670                                            
  6671        </mapping>
  6672                                           
  6673        <mapping>
  6674                                                    
  6675         <property>
  6676          expiration Date
  6677         </property >
  6678                                                    
  6679         <xpath>
  6680          cda:act/cd a:entryRel ationship/ cda:act/cd a:effectiv eTime/cda: high
  6681         </xpath>
  6682                                                    
  6683         <ifNotNull >
  6684                                                              
  6685          <action 
  6686           action="se tAttribute
  6687           attribute= "value" 
  6688          />
  6689                                                     
  6690         </ifNotNul l>
  6691                                            
  6692        </mapping>
  6693                                           
  6694        <mapping>
  6695                                                    
  6696         <property>
  6697          insuranceT ype.code
  6698         </property >
  6699                                                    
  6700         <xpath>
  6701          cda:act/cd a:entryRel ationship/ cda:act/cd a:code
  6702         </xpath>
  6703                                                    
  6704         <ifNotNull >
  6705                                                              
  6706          <action 
  6707           action="se tAttribute
  6708           attribute= "code" 
  6709          />
  6710                                                     
  6711         </ifNotNul l>
  6712                                            
  6713        </mapping>
  6714                                           
  6715        <mapping>
  6716                                                    
  6717         <property>
  6718          insuranceT ype.name
  6719         </property >
  6720                                                    
  6721         <xpath>
  6722          cda:act/cd a:entryRel ationship/ cda:act/cd a:code
  6723         </xpath>
  6724                                                    
  6725         <ifNotNull >
  6726                                                              
  6727          <action 
  6728           action="se tAttribute
  6729           attribute= "displayNa me" 
  6730          />
  6731                                                     
  6732         </ifNotNul l>
  6733                                            
  6734        </mapping>
  6735                                           
  6736        <mapping>
  6737                                                    
  6738         <property>
  6739          insuranceT ype.name
  6740         </property >
  6741                                                    
  6742         <xpath>
  6743          cda:act/cd a:entryRel ationship/ cda:act/cd a:entryRel ationship/ cda:act/cd a:text
  6744         </xpath>
  6745                                                    
  6746         <ifNotNull >
  6747                                                              
  6748          <action 
  6749           action="se tValue" 
  6750          />
  6751                                                     
  6752         </ifNotNul l>
  6753                                            
  6754        </mapping>
  6755                                           
  6756        <mapping>
  6757                                                    
  6758         <property>
  6759          groupNumbe r
  6760         </property >
  6761                                                    
  6762         <xpath>
  6763          cda:act/cd a:entryRel ationship/ cda:act/cd a:entryRel ationship/ cda:act/cd a:id
  6764         </xpath>
  6765                                                    
  6766         <ifNotNull >
  6767                                                              
  6768          <action 
  6769           action="se tAttribute
  6770           attribute= "extension
  6771          />
  6772                                                     
  6773         </ifNotNul l>
  6774                                                    
  6775         <ifNull>
  6776                                                              
  6777          <action 
  6778           action="se tAttribute
  6779           attribute= "nullFlavo r"
  6780          >
  6781           UNK
  6782          </action>
  6783                                                     
  6784         </ifNull>
  6785                                            
  6786        </mapping>
  6787                                           
  6788        <mapping>
  6789                                                    
  6790         <property>
  6791          groupNumbe r
  6792         </property >
  6793                                                    
  6794         <xpath>
  6795          cda:act/cd a:entryRel ationship/ cda:act/cd a:id
  6796         </xpath>
  6797                                                    
  6798         <ifNotNull >
  6799                                                              
  6800          <action 
  6801           action="se tAttribute
  6802           attribute= "extension
  6803          />
  6804                                                     
  6805         </ifNotNul l>
  6806                                                    
  6807         <ifNull>
  6808                                                              
  6809          <action 
  6810           action="se tAttribute
  6811           attribute= "nullFlavo r"
  6812          >
  6813           UNK
  6814          </action>
  6815                                                     
  6816         </ifNull>
  6817                                            
  6818        </mapping>
  6819                                           
  6820        <mapping>
  6821                                                    
  6822         <property>
  6823          company.te lecom
  6824         </property >
  6825                                                    
  6826         <xpath>
  6827          cda:act/cd a:entryRel ationship/ cda:act/cd a:performe r/cda:assi gnedEntity /cda:telec om
  6828         </xpath>
  6829                                                    
  6830         <ifNotNull >
  6831                                                              
  6832          <action 
  6833           action="se tAttribute
  6834           attribute= "value" 
  6835          />
  6836                                                     
  6837         </ifNotNul l>
  6838                                                    
  6839         <ifNull>
  6840                                                              
  6841          <action 
  6842           action="re move" 
  6843          />
  6844                                                     
  6845         </ifNull>
  6846                                            
  6847        </mapping>
  6848                                           
  6849        <mapping>
  6850                                                    
  6851         <property>
  6852          company.na me
  6853         </property >
  6854                                                    
  6855         <xpath>
  6856          cda:act/cd a:entryRel ationship/ cda:act/cd a:performe r/cda:assi gnedEntity /cda:repre sentedOrga nization/c da:name
  6857         </xpath>
  6858                                                    
  6859         <ifNotNull >
  6860                                                              
  6861          <action 
  6862           action="se tValue" 
  6863          />
  6864                                                     
  6865         </ifNotNul l>
  6866                                            
  6867        </mapping>
  6868                                           
  6869        <mapping>
  6870                                                    
  6871         <property 
  6872          optional=" true"
  6873         >
  6874          company.ad dress
  6875         </property >
  6876                                                    
  6877         <xpath>
  6878          .
  6879         </xpath>
  6880                                                    
  6881         <ifNotNull >
  6882                                                              
  6883          <action 
  6884           action="ev aluateMapp ings" 
  6885          />
  6886                                                     
  6887         </ifNotNul l>
  6888                                                    
  6889         <ifNull>
  6890                                                              
  6891          <action 
  6892           action="re move" 
  6893           relative=" cda:act/cd a:entryRel ationship/ cda:act/cd a:performe r/cda:assi gnedEntity /cda:addr"  
  6894          />
  6895                                                     
  6896         </ifNull>
  6897                                                    
  6898         <mappings>
  6899                                                              
  6900          <mapping>
  6901                                                                        
  6902           <property>
  6903            streetLine 1
  6904           </property >
  6905                                                                        
  6906           <xpath>
  6907            cda:act/cd a:entryRel ationship/ cda:act/cd a:performe r/cda:assi gnedEntity /cda:addr/ cda:street AddressLin e[1]
  6908           </xpath>
  6909                                                                        
  6910           <ifNotNull >
  6911                                                                                  
  6912            <action 
  6913             action="se tValue" 
  6914            />
  6915                                                                         
  6916           </ifNotNul l>
  6917                                                                        
  6918           <ifNull>
  6919                                                                                   
  6920            <action 
  6921             action="re move" 
  6922            /> 
  6923                                                                         
  6924           </ifNull>
  6925                                                               
  6926          </mapping>
  6927                                                              
  6928          <mapping>
  6929                                                                        
  6930           <property>
  6931            streetLine 2
  6932           </property >
  6933                                                                        
  6934           <xpath>
  6935            cda:act/cd a:entryRel ationship/ cda:act/cd a:performe r/cda:assi gnedEntity /cda:addr/ cda:street AddressLin e[2]
  6936           </xpath>
  6937                                                                        
  6938           <ifNotNull >
  6939                                                                                  
  6940            <action 
  6941             action="se tValue" 
  6942            />
  6943                                                                         
  6944           </ifNotNul l>
  6945                                                                        
  6946           <ifNull>
  6947                                                                                  
  6948            <action 
  6949             action="re move" 
  6950            />
  6951                                                                         
  6952           </ifNull>
  6953                                                               
  6954          </mapping>
  6955                                                              
  6956          <mapping>
  6957                                                                        
  6958           <property>
  6959            city
  6960           </property >
  6961                                                                        
  6962           <xpath>
  6963            cda:act/cd a:entryRel ationship/ cda:act/cd a:performe r/cda:assi gnedEntity /cda:addr/ cda:city
  6964           </xpath>
  6965                                                                        
  6966           <ifNotNull >
  6967                                                                                  
  6968            <action 
  6969             action="se tValue" 
  6970            />
  6971                                                                         
  6972           </ifNotNul l>
  6973                                                                        
  6974           <ifNull>
  6975                                                                                  
  6976            <action 
  6977             action="re move" 
  6978            />
  6979                                                                         
  6980           </ifNull>
  6981                                                               
  6982          </mapping>
  6983                                                              
  6984          <mapping>
  6985                                                                        
  6986           <property>
  6987            stateProvi nce
  6988           </property >
  6989                                                                        
  6990           <xpath>
  6991            cda:act/cd a:entryRel ationship/ cda:act/cd a:performe r/cda:assi gnedEntity /cda:addr/ cda:state
  6992           </xpath>
  6993                                                                        
  6994           <ifNotNull >
  6995                                                                                  
  6996            <action 
  6997             action="se tValue" 
  6998            />
  6999                                                                         
  7000           </ifNotNul l>
  7001                                                               
  7002          </mapping>
  7003                                                              
  7004          <mapping>
  7005                                                                        
  7006           <property>
  7007            postalCode
  7008           </property >
  7009                                                                        
  7010           <xpath>
  7011            cda:act/cd a:entryRel ationship/ cda:act/cd a:performe r/cda:assi gnedEntity /cda:addr/ cda:postal Code
  7012           </xpath>
  7013                                                                        
  7014           <ifNotNull >
  7015                                                                                  
  7016            <action 
  7017             action="se tValue" 
  7018            />
  7019                                                                         
  7020           </ifNotNul l>
  7021                                                               
  7022          </mapping>
  7023                                                     
  7024         </mappings >
  7025                                            
  7026        </mapping>
  7027                                           
  7028        <mapping>
  7029                                                    
  7030         <property>
  7031          relationsh ip
  7032         </property >
  7033                                                    
  7034         <xpath>
  7035          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
  7036         </xpath>
  7037                                                    
  7038         <ifNotNull >
  7039                                                              
  7040          <action 
  7041           action="se tAttribute
  7042           attribute= "value" 
  7043           indexed="t rue"
  7044          >
  7045           #insRelati onship
  7046          </action>
  7047                                                     
  7048         </ifNotNul l>
  7049                                                    
  7050         <ifNull>
  7051                                                              
  7052          <action 
  7053           action="se tAttribute
  7054           attribute= "value" 
  7055           indexed="t rue"
  7056          >
  7057           #insRelati onship
  7058          </action>
  7059                                                     
  7060         </ifNull>                                           
  7061                                            
  7062        </mapping>                                 
  7063                                           
  7064        <mapping>
  7065                                                    
  7066         <property>
  7067          relationsh ipTypeCode
  7068         </property >
  7069                                                    
  7070         <xpath>
  7071          cda:act/cd a:entryRel ationship/ cda:act/cd a:particip ant[@typeC ode='COV'] /cda:parti cipantRole /cda:code
  7072         </xpath>
  7073                                                    
  7074         <ifNotNull >
  7075                                                              
  7076          <action 
  7077           action="re moveAttrib utes" 
  7078          />
  7079                                                              
  7080          <action 
  7081           action="se tAttribute
  7082           attribute= "codeSyste m"
  7083          >
  7084           2.16.840.1 .113883.5. 111
  7085          </action>
  7086                                                              
  7087          <action 
  7088           action="se tAttribute
  7089           attribute= "codeSyste mName"
  7090          >
  7091           RoleCode
  7092          </action>
  7093                                                              
  7094          <action 
  7095           action="se tAttribute
  7096           attribute= "code" 
  7097          />
  7098                                                              
  7099          <action 
  7100           action="se tAttribute
  7101           attribute= "displayNa me" 
  7102           property=" relationsh ipTypeDisp lay"
  7103          />
  7104                                                     
  7105         </ifNotNul l>
  7106                                            
  7107        </mapping>                         
  7108                                           
  7109        <mapping>
  7110                                                    
  7111         <property>
  7112          subscriber .code
  7113         </property >
  7114                                                    
  7115         <xpath>
  7116          cda:act/cd a:entryRel ationship/ cda:act/cd a:particip ant[@typeC ode='COV'] /cda:parti cipantRole /cda:id
  7117         </xpath>
  7118                                                    
  7119         <ifNotNull >
  7120                                                              
  7121          <action 
  7122           action="se tAttribute
  7123           attribute= "extension
  7124          />
  7125                                                     
  7126         </ifNotNul l>
  7127                                                    
  7128         <ifNull>
  7129                                                              
  7130          <action 
  7131           action="se tAttribute
  7132           attribute= "nullFlavo r"
  7133          >
  7134           UNK
  7135          </action>
  7136                                                     
  7137         </ifNull>
  7138                                            
  7139        </mapping>
  7140                                           
  7141        <mapping>
  7142                                                    
  7143         <property 
  7144          optional=" true"
  7145         >
  7146          demographi cs.namePre fix
  7147         </property >
  7148                                                    
  7149         <xpath>
  7150          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
  7151         </xpath>
  7152                                                    
  7153         <ifNotNull >
  7154                                                              
  7155          <action 
  7156           action="se tValue" 
  7157          />
  7158                                                     
  7159         </ifNotNul l>
  7160                                                    
  7161         <ifNull>
  7162                                                              
  7163          <action 
  7164           action="re move" 
  7165          />
  7166                                                     
  7167         </ifNull>
  7168                                            
  7169        </mapping>
  7170                                           
  7171        <mapping>
  7172                                                    
  7173         <property>
  7174          demographi cs.FIRST_N AME
  7175         </property >
  7176                                                    
  7177         <xpath>
  7178          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
  7179         </xpath>
  7180                                                    
  7181         <ifNotNull >
  7182                                                              
  7183          <action 
  7184           action="se tValue" 
  7185          />
  7186                                                     
  7187         </ifNotNul l>
  7188                                                    
  7189         <ifNull>
  7190                                                              
  7191          <action 
  7192           action="se tAttribute
  7193           attribute= "nullFlavo r"
  7194          >
  7195           UNK
  7196          </action>
  7197                                                     
  7198         </ifNull>
  7199                                            
  7200        </mapping>
  7201                                           
  7202        <mapping>
  7203                                                    
  7204         <property>
  7205          demographi cs.SURNAME
  7206         </property >
  7207                                                    
  7208         <xpath>
  7209          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
  7210         </xpath>
  7211                                                    
  7212         <ifNotNull >
  7213                                                              
  7214          <action 
  7215           action="se tValue" 
  7216          />
  7217                                                     
  7218         </ifNotNul l>
  7219                                                    
  7220         <ifNull>
  7221                                                              
  7222          <action 
  7223           action="se tAttribute
  7224           attribute= "nullFlavo r"
  7225          >
  7226           UNK
  7227          </action>
  7228                                                     
  7229         </ifNull>
  7230                                            
  7231        </mapping>
  7232                                           
  7233        <mapping>
  7234                                                    
  7235         <property 
  7236          optional=" true"
  7237         >
  7238          demographi cs.nameSuf fix
  7239         </property >
  7240                                                    
  7241         <xpath>
  7242          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
  7243         </xpath>
  7244                                                    
  7245         <ifNotNull >
  7246                                                              
  7247          <action 
  7248           action="se tValue" 
  7249          />
  7250                                                     
  7251         </ifNotNul l>
  7252                                                    
  7253         <ifNull>
  7254                                                              
  7255          <action 
  7256           action="re move" 
  7257          />
  7258                                                     
  7259         </ifNull>
  7260                                            
  7261        </mapping>
  7262       
  7263                                           
  7264        <!-- Remov e HLD entr y if the s ubscriber  is the pat ient -->       
  7265                                           
  7266        <mapping 
  7267         equalsProp erty="rela tionship" 
  7268         equalsValu e="PATIENT "
  7269        >
  7270                                                    
  7271         <property>
  7272          subscriber .name
  7273         </property >
  7274                                                    
  7275         <xpath>
  7276          cda:act/cd a:entryRel ationship/ cda:act/cd a:particip ant[@typeC ode='HLD']
  7277         </xpath>
  7278                                                    
  7279         <ifNotNull >
  7280                                                              
  7281          <action 
  7282           action="re move" 
  7283          />
  7284                                                     
  7285         </ifNotNul l>
  7286                                                    
  7287         <ifNull>
  7288                                                              
  7289          <action 
  7290           action="re move" 
  7291          />
  7292                                                     
  7293         </ifNull>
  7294                                            
  7295        </mapping>
  7296                                           
  7297        <mapping 
  7298         notEqualsP roperty="r elationshi p" 
  7299         notEqualsV alue="PATI ENT"
  7300        >
  7301                                                    
  7302         <property 
  7303          optional=" true"
  7304         >
  7305          subscriber .dob
  7306         </property >
  7307                                                    
  7308         <xpath>
  7309          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
  7310         </xpath>
  7311                                                    
  7312         <ifNotNull >
  7313                                                              
  7314          <action 
  7315           action="se tAttribute
  7316           attribute= "value"
  7317          />
  7318                                                              
  7319          <action 
  7320           action="re moveAttrib utes" 
  7321           attribute= "nullFlavo r" 
  7322          />
  7323                                                     
  7324         </ifNotNul l>
  7325                                                    
  7326         <ifNull>
  7327                                                              
  7328          <action 
  7329           action="re move" 
  7330          />
  7331                                                     
  7332         </ifNull>
  7333                                            
  7334        </mapping>
  7335                                           
  7336                                           
  7337        <mapping 
  7338         notEqualsP roperty="r elationshi p" 
  7339         notEqualsV alue="PATI ENT"
  7340        >
  7341                                                    
  7342         <property>
  7343          subscriber .code
  7344         </property >
  7345                                                    
  7346         <xpath>
  7347          cda:act/cd a:entryRel ationship/ cda:act/cd a:particip ant[@typeC ode='HLD'] /cda:parti cipantRole /cda:id
  7348         </xpath>
  7349                                                    
  7350         <ifNotNull >
  7351                                                              
  7352          <action 
  7353           action="se tAttribute
  7354           attribute= "extension
  7355          />
  7356                                                     
  7357         </ifNotNul l>
  7358                                                    
  7359         <ifNull>
  7360                                                              
  7361          <action 
  7362           action="se tAttribute
  7363           attribute= "nullFlavo r"
  7364          >
  7365           UNK
  7366          </action>
  7367                                                     
  7368         </ifNull>
  7369                                            
  7370        </mapping>                                 
  7371                                           
  7372        <mapping 
  7373         notEqualsP roperty="r elationshi p" 
  7374         notEqualsV alue="PATI ENT"
  7375        >
  7376                                                    
  7377         <property>
  7378          subscriber .name
  7379         </property >
  7380                                                    
  7381         <xpath>
  7382          cda:act/cd a:entryRel ationship/ cda:act/cd a:particip ant[@typeC ode='HLD'] /cda:parti cipantRole /cda:playi ngEntity/c da:name
  7383         </xpath>
  7384                                                    
  7385         <ifNotNull >
  7386                                                              
  7387          <action 
  7388           action="se tValue" 
  7389          />
  7390                                                     
  7391         </ifNotNul l>
  7392                                            
  7393        </mapping>
  7394                                           
  7395        <mapping 
  7396         notEqualsP roperty="r elationshi p" 
  7397         notEqualsV alue="PATI ENT"
  7398        >
  7399                                                    
  7400         <property 
  7401          optional=" true"
  7402         >
  7403          subscriber .telecom
  7404         </property >
  7405                                                    
  7406         <xpath>
  7407          cda:act/cd a:entryRel ationship/ cda:act/cd a:particip ant[@typeC ode='HLD'] /cda:parti cipantRole /cda:playi ngEntity/c da:telecom
  7408         </xpath>
  7409                                                    
  7410         <ifNotNull >
  7411                                                              
  7412          <action 
  7413           action="se tValue" 
  7414          />
  7415                                                     
  7416         </ifNotNul l>
  7417                                                    
  7418         <ifNull>
  7419                                                              
  7420          <action 
  7421           action="re move" 
  7422          />
  7423                                                     
  7424         </ifNull>                                           
  7425                                            
  7426        </mapping>
  7427                                           
  7428        <mapping 
  7429         notEqualsP roperty="r elationshi p" 
  7430         notEqualsV alue="PATI ENT"
  7431        >
  7432                                                    
  7433         <property 
  7434          optional=" true"
  7435         >
  7436          subscriber .address
  7437         </property >
  7438                                                    
  7439         <xpath>
  7440          cda:act/cd a:entryRel ationship/ cda:act/cd a:particip ant[@typeC ode='HLD'] /cda:parti cipantRole /cda:playi ngEntity/c da:addr
  7441         </xpath>
  7442                                                    
  7443         <ifNotNull >
  7444                                                              
  7445          <action 
  7446           action="se tValue" 
  7447           property=" streetLine 1" 
  7448          />
  7449                                                              
  7450          <action 
  7451           action="ap pendValue"  
  7452           property=" streetLine 2" 
  7453          />
  7454                                                              
  7455          <action 
  7456           action="ap pendValue"  
  7457           property=" city" 
  7458          />
  7459                                                              
  7460          <action 
  7461           action="ap pendValue"  
  7462           property=" stateProvi nce" 
  7463          />
  7464                                                              
  7465          <action 
  7466           action="ap pendValue"  
  7467           property=" postalCode
  7468          />
  7469                                                     
  7470         </ifNotNul l>
  7471                                                    
  7472         <ifNull>
  7473                                                              
  7474          <action 
  7475           action="re move" 
  7476          />
  7477                                                     
  7478         </ifNull>
  7479                                            
  7480        </mapping>
  7481                                  
  7482       </mappings >
  7483                        
  7484      </mapping>
  7485                       
  7486      <!-- Advan ce Directi ve SECTION  -->
  7487                       
  7488      <mapping>
  7489                                 
  7490       <property 
  7491        collection ="true" 
  7492        merge="tru e"
  7493       >
  7494        documents
  7495       </property >
  7496                                 
  7497       <xpath>
  7498        /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']
  7499       </xpath>
  7500                                 
  7501       <ifNotNull >
  7502                                           
  7503        <action 
  7504         action="ev aluateMapp ings"
  7505                                                   
  7506         relative=" cda:sectio n/cda:text /cda:table [@ID='adva ncedirecti vesnarrati ve']/cda:t body/cda:t r" 
  7507        />
  7508                                  
  7509       </ifNotNul l>
  7510                                 
  7511       <mappings>
  7512                                           
  7513        <mapping>
  7514                                                    
  7515         <property>
  7516          nationalTi tle.name
  7517         </property >
  7518                                                    
  7519         <xpath>
  7520          cda:td/cda :content[@ ID='advanc eDirective ']
  7521         </xpath>
  7522                                                    
  7523         <ifNotNull >
  7524                                                              
  7525          <action 
  7526           action="se tAttribute
  7527           attribute= "ID" 
  7528           indexed="t rue"
  7529          >
  7530           advanceDir ective
  7531          </action>
  7532                                                              
  7533          <action 
  7534           action="se tValue" 
  7535          />
  7536                                                     
  7537         </ifNotNul l>
  7538                                                    
  7539         <ifNull>
  7540                                                              
  7541          <action 
  7542           action="se tAttribute
  7543           attribute= "ID" 
  7544           indexed="t rue"
  7545          >
  7546           advanceDir ective
  7547          </action>
  7548                                                              
  7549          <action 
  7550           action="se tValue" 
  7551           property=" name" 
  7552          />
  7553                                                     
  7554         </ifNull>
  7555                                            
  7556        </mapping>
  7557                                           
  7558        <mapping>
  7559                                                    
  7560         <property>
  7561          prettyDate Time
  7562         </property >
  7563                                                    
  7564         <xpath>
  7565          cda:td[1]
  7566         </xpath>
  7567                                                    
  7568         <ifNotNull >
  7569                                                              
  7570          <action 
  7571           action="se tValue" 
  7572          />
  7573                                                     
  7574         </ifNotNul l>
  7575                                            
  7576        </mapping>
  7577                                           
  7578        <mapping>
  7579                                                    
  7580         <property>
  7581          signingCli nician.nam e
  7582         </property >
  7583                                                    
  7584         <xpath>
  7585          cda:td/cda :content[@ ID='advDir Provider']
  7586         </xpath>
  7587                                                    
  7588         <ifNotNull >
  7589                                                              
  7590          <action 
  7591           action="se tAttribute
  7592           attribute= "ID" 
  7593           indexed="t rue"
  7594          >
  7595           advDirProv ider
  7596          </action>
  7597                                                              
  7598          <action 
  7599           action="se tValue" 
  7600          />
  7601                                                     
  7602         </ifNotNul l>
  7603                                                    
  7604         <ifNull>
  7605                                                              
  7606          <action 
  7607           action="se tAttribute
  7608           attribute= "ID" 
  7609           indexed="t rue"
  7610          >
  7611           advDirProv ider
  7612          </action>
  7613                                                              
  7614          <action 
  7615           action="se tValue" 
  7616           property=" name" 
  7617          />
  7618                                                     
  7619         </ifNull>
  7620                                            
  7621        </mapping>
  7622                                           
  7623        <mapping>
  7624                                                    
  7625         <property>
  7626          facility.n ame
  7627         </property >
  7628                                                    
  7629         <xpath>
  7630          cda:td/cda :content[@ ID='advDir Source']
  7631         </xpath>
  7632                                                    
  7633         <ifNotNull >
  7634                                                              
  7635          <action 
  7636           action="se tAttribute
  7637           attribute= "ID" 
  7638           indexed="t rue"
  7639          >
  7640           advDirSour ce
  7641          </action>
  7642                                                              
  7643          <action 
  7644           action="se tValue" 
  7645          />
  7646                                                     
  7647         </ifNotNul l>
  7648                                                    
  7649         <ifNull>
  7650                                                              
  7651          <action 
  7652           action="se tAttribute
  7653           attribute= "ID" 
  7654           indexed="t rue"
  7655          >
  7656           advDirSour ce
  7657          </action>
  7658                                                              
  7659          <action 
  7660           action="se tValue" 
  7661           property=" name" 
  7662          />
  7663                                                     
  7664         </ifNull>
  7665                                            
  7666        </mapping>
  7667                                  
  7668       </mappings >
  7669                        
  7670      </mapping>
  7671                       
  7672      <!-- Advan ce Directi ve SECTION  -->
  7673                       
  7674      <mapping>
  7675                                 
  7676       <property 
  7677        collection ="true" 
  7678        merge="tru e" 
  7679        optional=" true"
  7680       >
  7681        documents
  7682       </property >
  7683                                 
  7684       <xpath>
  7685        /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']
  7686       </xpath>
  7687                                 
  7688       <ifNotNull >
  7689                                           
  7690        <action 
  7691         action="ev aluateMapp ings" 
  7692         relative=" cda:sectio n/cda:entr y" 
  7693        />
  7694                                  
  7695       </ifNotNul l>
  7696                                 
  7697       <ifNull>
  7698                                           
  7699        <action 
  7700         action="re move"
  7701        >
  7702         NI
  7703        </action>
  7704                                  
  7705       </ifNull>
  7706                                 
  7707       <mappings>
  7708                                           
  7709        <mapping>
  7710                                                    
  7711         <property 
  7712          indexed="t rue"
  7713         >
  7714          nationalTi tle.name
  7715         </property >
  7716                                                    
  7717         <xpath>
  7718          cda:observ ation/cda: code/cda:o riginalTex t/cda:refe rence
  7719         </xpath>
  7720                                                    
  7721         <ifNotNull >
  7722                                                              
  7723          <action 
  7724           action="se tAttribute
  7725           attribute= "value" 
  7726           indexed="t rue"
  7727          >
  7728           #advanceDi rective
  7729          </action>
  7730                                                     
  7731         </ifNotNul l>
  7732                                            
  7733        </mapping>
  7734                                           
  7735        <mapping>
  7736                                                    
  7737         <property>
  7738          referenceD ateTime
  7739         </property >
  7740                                                    
  7741         <xpath>
  7742          cda:observ ation/cda: effectiveT ime/cda:lo w
  7743         </xpath>
  7744                                                    
  7745         <ifNotNull >
  7746                                                              
  7747          <action 
  7748           action="se tAttribute
  7749           attribute= "value" 
  7750          />
  7751                                                     
  7752         </ifNotNul l>
  7753                                            
  7754        </mapping>
  7755                                           
  7756        <mapping>
  7757                                                    
  7758         <property>
  7759          signingCli nician.nam e
  7760         </property >
  7761                                                    
  7762         <xpath>
  7763          cda:observ ation/cda: participan t[@typeCod e="CST"]/c da:partici pantRole/c da:playing Entity/cda :name
  7764         </xpath>
  7765                                                    
  7766         <ifNotNull >
  7767                                                              
  7768          <action 
  7769           action="se tValue" 
  7770          />
  7771                                                     
  7772         </ifNotNul l>
  7773                                            
  7774        </mapping>
  7775       
  7776                                           
  7777        <mapping>
  7778                                                    
  7779         <property>
  7780          facility.c ode
  7781         </property >
  7782                                                    
  7783         <xpath>
  7784          cda:observ ation/cda: entryRelat ionship/cd a:act/cda: author/cda :assignedA uthor/cda: represente dOrganizat ion/cda:id
  7785         </xpath>
  7786                                                    
  7787         <ifNotNull >
  7788                                                              
  7789          <action 
  7790           action="se tAttribute
  7791           attribute= "extension
  7792          />
  7793                                                     
  7794         </ifNotNul l>
  7795                                            
  7796        </mapping>
  7797                                           
  7798        <mapping>
  7799                                                    
  7800         <!-- INFOR MATION SOU RCE FACILI TY NAME -- >
  7801                                                    
  7802         <property>
  7803          facility.n ame
  7804         </property >
  7805                                                    
  7806         <xpath>
  7807          cda:observ ation/cda: entryRelat ionship/cd a:act/cda: author/cda :assignedA uthor/cda: represente dOrganizat ion/cda:na me
  7808         </xpath>
  7809                                                    
  7810         <ifNotNull >
  7811                                                              
  7812          <action 
  7813           action="se tValue" 
  7814          />
  7815                                                     
  7816         </ifNotNul l>
  7817                                            
  7818        </mapping>
  7819                                  
  7820       </mappings >
  7821                        
  7822      </mapping>
  7823                       
  7824      <!-- MEDIC ATIONS NAR RITIVE -->
  7825                       
  7826      <mapping>
  7827                                 
  7828       <property 
  7829        collection ="true" 
  7830        merge="tru e" 
  7831        optional=" true"
  7832       >
  7833        medication s
  7834       </property >
  7835                                 
  7836       <xpath>
  7837        /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']
  7838       </xpath>
  7839                                 
  7840       <ifNotNull >
  7841                                           
  7842        <action 
  7843         action="ev aluateMapp ings"
  7844                                                   
  7845         relative=" cda:sectio n/cda:text /cda:table [@ID='medi cationNarr ative']/cd a:tbody/cd a:tr" 
  7846        />
  7847                                  
  7848       </ifNotNul l>
  7849                                 
  7850       <mappings>
  7851                                           
  7852        <mapping>
  7853                                                    
  7854         <property 
  7855          optional=" true"
  7856         >
  7857          prodNameTe xt
  7858         </property >
  7859                                                    
  7860         <xpath>
  7861          cda:td/cda :content[@ ID='mndMed ication']
  7862         </xpath>
  7863                                                    
  7864         <ifNotNull >
  7865                                                              
  7866          <action 
  7867           action="se tAttribute
  7868           attribute= "ID" 
  7869           indexed="t rue"
  7870          >
  7871           mndMedicat ion
  7872          </action>
  7873                                                              
  7874          <action 
  7875           action="se tValue" 
  7876          />
  7877                                                     
  7878         </ifNotNul l>
  7879                                                    
  7880         <ifNull>
  7881                                                              
  7882          <action 
  7883           action="se tAttribute
  7884           attribute= "ID" 
  7885           indexed="t rue"
  7886          >
  7887           mndMedicat ion
  7888          </action>
  7889                                                              
  7890          <action 
  7891           action="se tValue" 
  7892           property=" name" 
  7893          />
  7894                                                     
  7895         </ifNull>
  7896                                            
  7897        </mapping>
  7898                                           
  7899        <mapping 
  7900         equalsProp erty="vaTy pe" 
  7901         equalsValu e="O"
  7902        >
  7903                                                    
  7904         <property 
  7905          optional=" true"
  7906         >
  7907          vaStatusDi splayText
  7908         </property >
  7909                                                    
  7910         <xpath>
  7911          cda:td/cda :content[@ ID='mndSta tus']
  7912         </xpath>
  7913                                                    
  7914         <ifNotNull >
  7915                                                              
  7916          <action 
  7917           action="se tAttribute
  7918           attribute= "ID" 
  7919           indexed="t rue"
  7920          >
  7921           mndStatus
  7922          </action>
  7923                                                              
  7924          <action 
  7925           action="se tValue" 
  7926          />
  7927                                                     
  7928         </ifNotNul l>
  7929                                            
  7930        </mapping>
  7931                                           
  7932        <mapping 
  7933         equalsProp erty="vaTy pe" 
  7934         equalsValu e="N"
  7935        >
  7936                                                    
  7937         <property 
  7938          optional=" true"
  7939         >
  7940          vaType
  7941         </property >
  7942                                                    
  7943         <xpath>
  7944          cda:td/cda :content[@ ID='mndSta tus']
  7945         </xpath>
  7946                                                    
  7947         <ifNotNull >
  7948                                                              
  7949          <action 
  7950           action="se tAttribute
  7951           attribute= "ID" 
  7952           indexed="t rue"
  7953          >
  7954           mndStatus
  7955          </action>
  7956                                                              
  7957          <action 
  7958           action="se tValue"
  7959          >
  7960           Non-VA
  7961          </action>
  7962                                                     
  7963         </ifNotNul l>
  7964                                            
  7965        </mapping>
  7966                                           
  7967        <mapping>
  7968                                                    
  7969         <property 
  7970          optional=" true"
  7971         >
  7972          quantityVa lue
  7973         </property >
  7974                                                    
  7975         <xpath>
  7976          cda:td/cda :content[@ ID='mndQua ntity']
  7977         </xpath>
  7978                                                    
  7979         <ifNotNull >
  7980                                                              
  7981          <action 
  7982           action="se tAttribute
  7983           attribute= "ID" 
  7984           indexed="t rue"
  7985          >
  7986           mndQuantit y
  7987          </action>
  7988                                                              
  7989          <action 
  7990           action="se tValue" 
  7991          />
  7992                                                     
  7993         </ifNotNul l>
  7994                                                    
  7995         <ifNull>
  7996                                                              
  7997          <action 
  7998           action="se tAttribute
  7999           attribute= "ID" 
  8000           indexed="t rue"
  8001          >
  8002           mndQuantit y
  8003          </action>
  8004                                                     
  8005         </ifNull>
  8006                                            
  8007        </mapping>
  8008                                           
  8009        <mapping>
  8010                                                    
  8011         <property 
  8012          optional=" true"
  8013         >
  8014          prettyExpi reDate
  8015         </property >
  8016                                                    
  8017         <xpath>
  8018          cda:td/cda :content[@ ID='mndExp ires']
  8019         </xpath>
  8020                                                    
  8021         <ifNotNull >
  8022                                                              
  8023          <action 
  8024           action="se tAttribute
  8025           attribute= "ID" 
  8026           indexed="t rue"
  8027          >
  8028           mndExpires
  8029          </action>
  8030                                                              
  8031          <action 
  8032           action="se tValue" 
  8033          />
  8034                                                     
  8035         </ifNotNul l>
  8036                                                    
  8037         <ifNull>
  8038                                                              
  8039          <action 
  8040           action="se tAttribute
  8041           attribute= "ID" 
  8042           indexed="t rue"
  8043          >
  8044           mndExpires
  8045          </action>
  8046                                                     
  8047         </ifNull>
  8048                                            
  8049        </mapping>
  8050                                           
  8051        <mapping 
  8052         equalsProp erty="vaTy pe" 
  8053         equalsValu e="O"
  8054        >
  8055                                                    
  8056         <property 
  8057          optional=" true"
  8058         >
  8059          orderProvi derName
  8060         </property >
  8061                                                    
  8062         <xpath>
  8063          cda:td/cda :content[@ ID='mndPro vider']
  8064         </xpath>
  8065                                                    
  8066         <ifNotNull >
  8067                                                              
  8068          <action 
  8069           action="se tAttribute
  8070           attribute= "ID" 
  8071           indexed="t rue"
  8072          >
  8073           mndProvide r
  8074          </action>
  8075                                                              
  8076          <action 
  8077           action="se tValue" 
  8078          />
  8079                                                     
  8080         </ifNotNul l>
  8081                                                    
  8082         <ifNull>
  8083                                                              
  8084          <action 
  8085           action="se tAttribute
  8086           attribute= "ID" 
  8087           indexed="t rue"
  8088          >
  8089           mndProvide r
  8090          </action>
  8091                                                     
  8092         </ifNull>
  8093                                            
  8094        </mapping>
  8095                                           
  8096        <mapping 
  8097         equalsProp erty="vaTy pe" 
  8098         equalsValu e="N"
  8099        >
  8100                                                    
  8101         <property 
  8102          optional=" true"
  8103         >
  8104          orderProvi derName
  8105         </property >
  8106                                                    
  8107         <xpath>
  8108          cda:td/cda :content[@ ID='mndPro vider']
  8109         </xpath>
  8110                                                    
  8111         <ifNotNull >
  8112                                                              
  8113          <action 
  8114           action="se tAttribute
  8115           attribute= "ID" 
  8116           indexed="t rue"
  8117          >
  8118           mndProvide r
  8119          </action>
  8120                                                              
  8121          <action 
  8122           action="se tValue"
  8123          >
  8124           Documented  by: 
  8125          </action>
  8126                                                              
  8127          <action 
  8128           action="ap pendValue"  
  8129          />
  8130                                                     
  8131         </ifNotNul l>
  8132                                                    
  8133         <ifNull>
  8134                                                              
  8135          <action 
  8136           action="se tAttribute
  8137           attribute= "ID" 
  8138           indexed="t rue"
  8139          >
  8140           mndProvide r
  8141          </action>
  8142                                                     
  8143         </ifNull>
  8144                                            
  8145        </mapping>
  8146                                           
  8147        <mapping 
  8148         equalsProp erty="vaTy pe" 
  8149         equalsValu e="O"
  8150        >
  8151                                                    
  8152         <property 
  8153          optional=" true"
  8154         >
  8155          prescriptI d
  8156         </property >
  8157                                                    
  8158         <xpath>
  8159          cda:td/cda :content[@ ID='mndPre scription' ]
  8160         </xpath>
  8161                                                    
  8162         <ifNotNull >
  8163                                                              
  8164          <action 
  8165           action="se tAttribute
  8166           attribute= "ID" 
  8167           indexed="t rue"
  8168          >
  8169           mndPrescri ption
  8170          </action>
  8171                                                              
  8172          <action 
  8173           action="se tValue" 
  8174          />
  8175                                                     
  8176         </ifNotNul l>
  8177                                                    
  8178         <ifNull>
  8179                                                              
  8180          <action 
  8181           action="se tAttribute
  8182           attribute= "ID" 
  8183           indexed="t rue"
  8184          >
  8185           mndPrescri ption
  8186          </action>
  8187                                                     
  8188         </ifNull>
  8189                                            
  8190        </mapping>
  8191                                           
  8192        <mapping 
  8193         equalsProp erty="vaTy pe" 
  8194         equalsValu e="N"
  8195        >
  8196                                                    
  8197         <property 
  8198          optional=" true"
  8199         >
  8200          vaType
  8201         </property >
  8202                                                    
  8203         <xpath>
  8204          cda:td/cda :content[@ ID='mndPre scription' ]
  8205         </xpath>
  8206                                                    
  8207         <ifNotNull >
  8208                                                              
  8209          <action 
  8210           action="se tAttribute
  8211           attribute= "ID" 
  8212           indexed="t rue"
  8213          >
  8214           mndPrescri ption
  8215          </action>
  8216                                                              
  8217          <action 
  8218           action="se tValue"
  8219          >
  8220           Non-VA
  8221          </action>
  8222                                                     
  8223         </ifNotNul l>
  8224                                            
  8225        </mapping>
  8226                                           
  8227        <mapping>
  8228                                                    
  8229         <property 
  8230          optional=" true"
  8231         >
  8232          prettyDisp enseTime
  8233         </property >
  8234                                                    
  8235         <xpath>
  8236          cda:td/cda :content[@ ID='mndLas tDispensed ']
  8237         </xpath>
  8238                                                    
  8239         <ifNotNull >
  8240                                                          
  8241          <action 
  8242           action="se tAttribute
  8243           attribute= "ID" 
  8244           indexed="t rue"
  8245          >
  8246           mndLastDis pensed
  8247          </action>
  8248                                                          
  8249          <action 
  8250           action="se tValue" 
  8251          />
  8252                                                     
  8253         </ifNotNul l>
  8254                                                    
  8255         <ifNull>
  8256                                                          
  8257          <action 
  8258           action="se tAttribute
  8259           attribute= "ID" 
  8260           indexed="t rue"
  8261          >
  8262           mndLastDis pensed
  8263          </action>
  8264                                                     
  8265         </ifNull>
  8266                                            
  8267        </mapping>
  8268                                           
  8269        <mapping>
  8270                                                    
  8271         <property 
  8272          optional=" true"
  8273         >
  8274          sigFreeTex t
  8275         </property >
  8276                                                    
  8277         <xpath>
  8278          cda:td/cda :content[@ ID='mndSig ']
  8279         </xpath>
  8280                                                    
  8281         <ifNotNull >
  8282                                                              
  8283          <action 
  8284           action="se tAttribute
  8285           attribute= "ID" 
  8286           indexed="t rue"
  8287          >
  8288           mndSig
  8289          </action>
  8290                                                              
  8291          <action 
  8292           action="se tValue" 
  8293          />
  8294                                                     
  8295         </ifNotNul l>
  8296                                                    
  8297         <ifNull>
  8298                                                              
  8299          <action 
  8300           action="se tAttribute
  8301           attribute= "ID" 
  8302           indexed="t rue"
  8303          >
  8304           mndSig
  8305          </action>
  8306                                                     
  8307         </ifNull>
  8308                                            
  8309        </mapping>
  8310                                           
  8311        <mapping 
  8312         equalsProp erty="vaTy pe" 
  8313         equalsValu e="O"
  8314        >
  8315                                                    
  8316         <property 
  8317          optional=" true"
  8318         >
  8319          facilityNa me
  8320         </property >
  8321                                                    
  8322         <xpath>
  8323          cda:td/cda :content[@ ID='mndSou rce']
  8324         </xpath>
  8325                                                    
  8326         <ifNotNull >
  8327                                                              
  8328          <action 
  8329           action="se tAttribute
  8330           attribute= "ID" 
  8331           indexed="t rue"
  8332          >
  8333           mndSource
  8334          </action>
  8335                                                              
  8336          <action 
  8337           action="se tValue" 
  8338          />
  8339                                                     
  8340         </ifNotNul l>
  8341                                                    
  8342         <ifNull>
  8343                                                              
  8344          <action 
  8345           action="se tAttribute
  8346           attribute= "ID" 
  8347           indexed="t rue"
  8348          >
  8349           mndSource
  8350          </action>
  8351                                                     
  8352         </ifNull>
  8353                                            
  8354        </mapping>
  8355                                           
  8356        <mapping 
  8357         equalsProp erty="vaTy pe" 
  8358         equalsValu e="N"
  8359        >
  8360                                                    
  8361         <property 
  8362          optional=" true"
  8363         >
  8364          facilityNa me
  8365         </property >
  8366                                                    
  8367         <xpath>
  8368          cda:td/cda :content[@ ID='mndSou rce']
  8369         </xpath>
  8370                                                    
  8371         <ifNotNull >
  8372                                                              
  8373          <action 
  8374           action="se tAttribute
  8375           attribute= "ID" 
  8376           indexed="t rue"
  8377          >
  8378           mndSource
  8379          </action>
  8380                                                              
  8381          <action 
  8382           action="se tValue"
  8383          >
  8384           Documented  at: 
  8385          </action>
  8386                                                              
  8387          <action 
  8388           action="ap pendValue"  
  8389          />
  8390                                                     
  8391         </ifNotNul l>
  8392                                                    
  8393         <ifNull>
  8394                                                              
  8395          <action 
  8396           action="se tAttribute
  8397           attribute= "ID" 
  8398           indexed="t rue"
  8399          >
  8400           mndSource
  8401          </action>
  8402                                                     
  8403         </ifNull>
  8404                                            
  8405        </mapping>
  8406                                  
  8407       </mappings >
  8408                        
  8409      </mapping>
  8410                       
  8411      <!-- MEDIC ATIONS SEC TION -->
  8412                       
  8413      <mapping>
  8414                                 
  8415       <property 
  8416        collection ="true" 
  8417        merge="tru e" 
  8418        optional=" true"
  8419       >
  8420        medication s
  8421       </property >
  8422                                 
  8423       <xpath>
  8424        /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']
  8425       </xpath>
  8426                                 
  8427       <ifNotNull >
  8428                                           
  8429        <action 
  8430         action="ev aluateMapp ings" 
  8431         relative=" cda:sectio n/cda:entr y" 
  8432        />
  8433                                  
  8434       </ifNotNul l>
  8435                                 
  8436       <ifNull>
  8437                                           
  8438        <action 
  8439         action="re move" 
  8440         relative=" cda:sectio n/cda:entr y"
  8441        >
  8442         NI
  8443        </action>
  8444                                           
  8445        <action 
  8446         action="se tValue" 
  8447         relative=" cda:sectio n/cda:text "
  8448        >
  8449         No Data Pr ovided for  This Sect ion
  8450        </action>
  8451                                           
  8452        <action 
  8453         action="se tAttribute
  8454         relative=" cda:sectio n"
  8455                                                   
  8456         attribute= "nullFlavo r"
  8457        >
  8458         NI
  8459        </action>
  8460                                  
  8461       </ifNull>
  8462                                 
  8463       <mappings>
  8464                                           
  8465        <mapping>
  8466                                                    
  8467         <property 
  8468          optional=" true"
  8469         >
  8470          sigFreeTex t
  8471         </property >
  8472                                                    
  8473         <xpath>
  8474          cda:substa nceAdminis tration/cd a:text/cda :reference
  8475         </xpath>
  8476                                                    
  8477         <ifNotNull >
  8478                                                              
  8479          <action 
  8480           action="se tAttribute
  8481           attribute= "value" 
  8482           indexed="t rue"
  8483          >
  8484           #mndSig
  8485          </action>
  8486                                                     
  8487         </ifNotNul l>
  8488                                                    
  8489         <ifNull>
  8490                                                              
  8491          <action 
  8492           action="se tAttribute
  8493           attribute= "value" 
  8494           indexed="t rue"
  8495          >
  8496           #mndSig
  8497          </action>
  8498                                                     
  8499         </ifNull>
  8500                                            
  8501        </mapping>
  8502                                           
  8503                                           
  8504                                           
  8505       
  8506                                           
  8507        <mapping>
  8508                                                    
  8509         <property 
  8510          optional=" true"
  8511         >
  8512          rxNormProd uctCode
  8513         </property >
  8514                                                    
  8515         <xpath>
  8516          cda:substa nceAdminis tration/cd a:consumab le/cda:man ufacturedP roduct/cda :manufactu redMateria l/cda:code
  8517         </xpath>
  8518                                                    
  8519         <ifNotNull >
  8520                                                              
  8521          <action 
  8522           action="se tAttribute
  8523           attribute= "code" 
  8524          >
  8525          </action>
  8526                                                              
  8527          <action 
  8528           action="se tAttribute
  8529           attribute= "displayNa me" 
  8530           property=" rxNormProd uctCodeDis playName" 
  8531          >
  8532          </action>
  8533                                                              
  8534          <action 
  8535           action="se tAttribute
  8536           attribute= "code" 
  8537           relative=" cda:transl ation" 
  8538           property=" vuidproduc tCode" 
  8539          >
  8540          </action>
  8541                                                              
  8542          <action 
  8543           action="se tAttribute
  8544           attribute= "displayNa me" 
  8545           relative=" cda:transl ation"  
  8546           property=" prodNameTe xt" 
  8547          >
  8548          </action>                                                    
  8549                                                     
  8550         </ifNotNul l>
  8551                                                    
  8552         <ifNull>
  8553                                                              
  8554          <action 
  8555           action="se tAttribute
  8556           attribute= "nullFlavo r" 
  8557          >
  8558           UNK
  8559          </action>
  8560                                                              
  8561          <action 
  8562           action="re move"  
  8563           relative=" cda:transl ation"   
  8564          >
  8565          </action>        
  8566                                                     
  8567         </ifNull>
  8568                                            
  8569        </mapping>
  8570                                           
  8571                                           
  8572                                           
  8573       
  8574                                           
  8575                                           
  8576        <mapping>
  8577                                                    
  8578         <property 
  8579          optional=" true"
  8580         >
  8581          prodNameTe xt
  8582         </property >
  8583                                                    
  8584         <xpath>
  8585          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
  8586         </xpath>
  8587                                                    
  8588         <ifNotNull >
  8589                                                              
  8590          <action 
  8591           action="se tAttribute
  8592           attribute= "value" 
  8593           indexed="t rue"
  8594          >
  8595           #mndMedica tion
  8596          </action>
  8597                                                     
  8598         </ifNotNul l>
  8599                                                    
  8600         <ifNull>
  8601                                                              
  8602          <action 
  8603           action="se tAttribute
  8604           attribute= "value" 
  8605           indexed="t rue"
  8606          >
  8607           #mndMedica tion
  8608          </action>
  8609                                                     
  8610         </ifNull>
  8611                                            
  8612        </mapping>
  8613                                           
  8614        <mapping>
  8615                                                    
  8616         <property 
  8617          optional=" true"
  8618         >
  8619          start
  8620         </property >
  8621                                                    
  8622         <xpath>
  8623          cda:substa nceAdminis tration/cd a:effectiv eTime/cda: low
  8624         </xpath>
  8625                                                    
  8626         <ifNotNull >
  8627                                                              
  8628          <action 
  8629           action="se tAttribute
  8630           attribute= "value" 
  8631          />
  8632                                                     
  8633         </ifNotNul l>
  8634                                                    
  8635         <ifNull>
  8636                                                              
  8637          <action 
  8638           action="se tAttribute
  8639           attribute= "nullFlavo r"
  8640          >
  8641           UNK
  8642          </action>
  8643                                                     
  8644         </ifNull>
  8645                                            
  8646        </mapping>
  8647                                           
  8648        <mapping>
  8649                                                    
  8650         <property 
  8651          optional=" true"
  8652         >
  8653          stop
  8654         </property >
  8655                                                    
  8656         <xpath>
  8657          cda:substa nceAdminis tration/cd a:effectiv eTime/cda: high
  8658         </xpath>
  8659                                                    
  8660         <ifNotNull >
  8661                                                              
  8662          <action 
  8663           action="se tAttribute
  8664           attribute= "value" 
  8665          />
  8666                                                     
  8667         </ifNotNul l>
  8668                                                    
  8669         <ifNull>
  8670                                                              
  8671          <action 
  8672           action="se tAttribute
  8673           attribute= "nullFlavo r"
  8674          >
  8675           UNK
  8676          </action>
  8677                                                     
  8678         </ifNull>
  8679                                            
  8680        </mapping>
  8681                                           
  8682        <mapping>
  8683                                                    
  8684         <property 
  8685          optional=" true"
  8686         >
  8687          quantity
  8688         </property >
  8689                                                    
  8690         <xpath>
  8691          cda:substa nceAdminis tration/cd a:doseQuan tity
  8692         </xpath>
  8693                                                    
  8694         <ifNotNull >
  8695                                                              
  8696          <action 
  8697           action="se tAttribute
  8698           attribute= "low" 
  8699          />
  8700                                                     
  8701         </ifNotNul l>
  8702                                                    
  8703         <ifNull>
  8704                                                              
  8705          <action 
  8706           action="se tAttribute
  8707           attribute= "nullFlavo r"
  8708          >
  8709           UNK
  8710          </action>
  8711                                                     
  8712         </ifNull>
  8713                                            
  8714        </mapping>
  8715                                           
  8716        <mapping>
  8717                                                    
  8718         <property 
  8719          optional=" true"
  8720         >
  8721          daysSupply
  8722         </property >
  8723                                                    
  8724         <xpath>
  8725          cda:substa nceAdminis tration/cd a:entryRel ationship[ @typeCode= 'REFR']/cd a:supply[@ classCode= 'SPLY' and  @moodCode ='INT']/cd a:quantity
  8726         </xpath>
  8727                                                    
  8728         <ifNotNull >
  8729                                                              
  8730          <action 
  8731           action="se tAttribute
  8732           attribute= "value" 
  8733          />
  8734                                                     
  8735         </ifNotNul l>
  8736                                                    
  8737         <ifNull>
  8738                                                              
  8739          <action 
  8740           action="se tAttribute
  8741           attribute= "nullFlavo r"
  8742          >
  8743           UNK
  8744          </action>
  8745                                                     
  8746         </ifNull>
  8747                                            
  8748        </mapping>
  8749                                           
  8750                                           
  8751        <mapping>
  8752                                                    
  8753         <property 
  8754          optional=" true"
  8755         >
  8756          rxNormProd uctCode
  8757         </property >
  8758                                                    
  8759         <xpath>
  8760          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
  8761         </xpath>
  8762                                                    
  8763         <ifNotNull >
  8764                                                              
  8765          <action 
  8766           action="se tAttribute
  8767           attribute= "code" 
  8768          >
  8769          </action>
  8770                                                              
  8771          <action 
  8772           action="se tAttribute
  8773           attribute= "displayNa me" 
  8774           property=" rxNormProd uctCodeDis playName" 
  8775          >
  8776          </action>                                                    
  8777                                                     
  8778         </ifNotNul l>
  8779                                                    
  8780         <ifNull>
  8781                                                              
  8782          <action 
  8783           action="se tAttribute
  8784           attribute= "nullFlavo r" 
  8785          >
  8786           UNK
  8787          </action>
  8788                                                     
  8789         </ifNull>
  8790                                            
  8791        </mapping>
  8792                                           
  8793                                           
  8794                                           
  8795        <mapping>
  8796                                                    
  8797         <property 
  8798          optional=" true"
  8799         >
  8800          statusCode
  8801         </property >
  8802                                                    
  8803         <xpath>
  8804          cda:substa nceAdminis tration/cd a:entryRel ationship[ @typeCode= 'REFR']/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 1.47']/cda :value
  8805         </xpath>
  8806                                                    
  8807         <ifNotNull >
  8808                                                              
  8809          <action 
  8810           action="se tAttribute
  8811           attribute= "code" 
  8812          />
  8813                                                              
  8814          <action 
  8815           action="se tAttribute
  8816           attribute= "displayNa me"
  8817                                                                       
  8818           property=" statusDisp lay" 
  8819          />
  8820                                                              
  8821          <action 
  8822           action="se tAttribute
  8823           attribute= "codeSyste m"
  8824          >
  8825           2.16.840.1 .113883.6. 96
  8826          </action>
  8827                                                              
  8828          <action 
  8829           action="se tAttribute
  8830           attribute= "codeSyste mName"
  8831          >
  8832           SNOMED CT
  8833          </action>
  8834                                                              
  8835          <action 
  8836           action="se tValue" 
  8837           relative=" cda:origin alText"
  8838                                                                       
  8839           property=" vaStatus" 
  8840          />
  8841                                                     
  8842         </ifNotNul l>
  8843                                                    
  8844         <ifNull>
  8845                                                              
  8846          <action 
  8847           action="se tAttribute
  8848           attribute= "nullFlavo r"
  8849          >
  8850           UNK
  8851          </action>
  8852                                                              
  8853          <action 
  8854           action="se tValue" 
  8855           relative=" cda:origin alText"
  8856                                                                       
  8857           property=" vaStatus" 
  8858          />
  8859                                                     
  8860         </ifNull>
  8861                                            
  8862        </mapping>
  8863                                           
  8864        <mapping>
  8865                                                    
  8866         <property 
  8867          optional=" true"
  8868         >
  8869          facilityNu mber
  8870         </property >
  8871                                                    
  8872         <xpath>
  8873          cda:substa nceAdminis tration/cd a:author/c da:assigne dAuthor/cd a:represen tedOrganiz ation/cda: id
  8874         </xpath>
  8875                                                    
  8876         <ifNotNull >
  8877                                                              
  8878          <action 
  8879           action="se tAttribute
  8880           attribute= "extension
  8881          />
  8882                                                     
  8883         </ifNotNul l>
  8884                                            
  8885        </mapping>
  8886                                           
  8887        <mapping>
  8888                                                    
  8889         <property 
  8890          optional=" true"
  8891         >
  8892          facilityNa me
  8893         </property >
  8894                                                    
  8895         <xpath>
  8896          cda:substa nceAdminis tration/cd a:author/c da:assigne dAuthor/cd a:represen tedOrganiz ation/cda: name
  8897         </xpath>
  8898                                                    
  8899         <ifNotNull >
  8900                                                              
  8901          <action 
  8902           action="se tValue" 
  8903          />
  8904                                                     
  8905         </ifNotNul l>
  8906                                            
  8907        </mapping>
  8908                                           
  8909        <mapping>
  8910                                                    
  8911         <property>
  8912          typeCode
  8913         </property >
  8914                                                    
  8915         <xpath>
  8916          cda:substa nceAdminis tration/cd a:entryRel ationship[ @typeCode= 'SUBJ']/cd a:observat ion/cda:co de
  8917         </xpath>
  8918                                                    
  8919         <ifNotNull >
  8920                                                              
  8921          <action 
  8922           action="se tAttribute
  8923           attribute= "code" 
  8924          />
  8925                                                     
  8926         </ifNotNul l>
  8927                                            
  8928        </mapping>
  8929                                           
  8930        <mapping>
  8931                                                    
  8932         <property>
  8933          typeDispla y
  8934         </property >
  8935                                                    
  8936         <xpath>
  8937          cda:substa nceAdminis tration/cd a:entryRel ationship[ @typeCode= 'SUBJ']/cd a:observat ion/cda:co de
  8938         </xpath>
  8939                                                    
  8940         <ifNotNull >
  8941                                                              
  8942          <action 
  8943           action="se tAttribute
  8944           attribute= "displayNa me" 
  8945          />
  8946                                                     
  8947         </ifNotNul l>
  8948                                            
  8949        </mapping>
  8950                                           
  8951        <mapping>
  8952                                                    
  8953         <property>
  8954          type
  8955         </property >
  8956                                                    
  8957         <xpath>
  8958          cda:substa nceAdminis tration/cd a:entryRel ationship[ @typeCode= 'SUBJ']/cd a:observat ion/cda:co de/cda:ori ginalText
  8959         </xpath>
  8960                                                    
  8961         <ifNotNull >
  8962                                                              
  8963          <action 
  8964           action="se tValue" 
  8965          />
  8966                                                     
  8967         </ifNotNul l>
  8968                                            
  8969        </mapping>
  8970                                           
  8971        <mapping>
  8972                                                    
  8973         <property 
  8974          optional=" true"
  8975         >
  8976          status
  8977         </property >
  8978                                                    
  8979         <xpath>
  8980          cda:substa nceAdminis tration/cd a:entryRel ationship[ @typeCode= 'REFR']/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883.10.20. 1.47']/cda :value
  8981               
  8982         </xpath>
  8983                                                    
  8984         <ifNotNull >
  8985                                                              
  8986          <action 
  8987           action="se tAttribute
  8988           attribute= "code" 
  8989          />
  8990                                                              
  8991          <action 
  8992           action="se tAttribute
  8993           attribute= "displayNa me"
  8994                                                                       
  8995           property=" statusDisp lay" 
  8996          />
  8997                                                              
  8998          <action 
  8999           action="se tAttribute
  9000           attribute= "codeSyste m"
  9001          >
  9002           2.16.840.1 .113883.6. 96
  9003          </action>
  9004                                                              
  9005          <action 
  9006           action="se tAttribute
  9007           attribute= "codeSyste mName"
  9008          >
  9009           SNOMED CT
  9010          </action>
  9011                                                              
  9012          <action 
  9013           action="se tValue" 
  9014           relative=" cda:origin alText"
  9015                                                                       
  9016           property=" vaStatus" 
  9017          />
  9018                                                     
  9019         </ifNotNul l>
  9020                                                    
  9021         <ifNull>
  9022                                                              
  9023          <action 
  9024           action="se tAttribute
  9025           attribute= "nullFlavo r"
  9026          >
  9027           UNK
  9028          </action>
  9029                                                              
  9030          <action 
  9031           action="se tValue" 
  9032           relative=" cda:origin alText"
  9033                                                                       
  9034           property=" vaStatus" 
  9035          />
  9036                                                     
  9037         </ifNull>
  9038                                            
  9039        </mapping>
  9040                                           
  9041        <mapping>
  9042                                                    
  9043         <property>
  9044          orderID
  9045         </property >
  9046                                                    
  9047         <xpath>
  9048          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
  9049         </xpath>
  9050                                                    
  9051         <ifNotNull >
  9052                                                              
  9053          <action 
  9054           action="se tValue" 
  9055           property=" prodNameTe xt" 
  9056          />
  9057                                                     
  9058         </ifNotNul l>
  9059                                            
  9060        </mapping>
  9061                                           
  9062        <mapping>
  9063                                                    
  9064         <property>
  9065          orderNbr
  9066         </property >
  9067                                                    
  9068         <xpath>
  9069          cda:substa nceAdminis tration/cd a:entryRel ationship[ @typeCode= 'REFR']/cd a:supply[@ classCode= 'SPLY' and  @moodCode ='INT']/cd a:id
  9070         </xpath>
  9071                                                    
  9072         <ifNotNull >
  9073                                                              
  9074          <action 
  9075           action="se tAttribute
  9076           attribute= "extension
  9077          />
  9078                                                     
  9079         </ifNotNul l>
  9080                                            
  9081        </mapping>
  9082                                           
  9083        <!-- 8.27  FILLS -->
  9084                                           
  9085        <mapping>
  9086                                                    
  9087         <property 
  9088          optional=" true"
  9089         >
  9090          fills
  9091         </property >
  9092                                                    
  9093         <xpath>
  9094          cda:substa nceAdminis tration/cd a:entryRel ationship[ @typeCode= 'REFR']/cd a:supply[@ classCode= 'SPLY' and  @moodCode ='INT']/cd a:repeatNu mber
  9095         </xpath>
  9096                                                    
  9097         <ifNotNull >
  9098                                                              
  9099          <action 
  9100           action="se tAttribute
  9101           attribute= "value" 
  9102          />
  9103                                                     
  9104         </ifNotNul l>
  9105                                                    
  9106         <ifNull>
  9107                                                              
  9108          <action 
  9109           action="re moveAttrib utes" 
  9110          />
  9111                                                              
  9112          <action 
  9113           action="se tAttribute
  9114           attribute= "nullFlavo r"
  9115          >
  9116           UNK
  9117          </action>
  9118                                                     
  9119         </ifNull>
  9120                                            
  9121        </mapping>
  9122                                           
  9123        <mapping>
  9124                                                    
  9125         <property 
  9126          optional=" true"
  9127         >
  9128          expireDate
  9129         </property >
  9130                                                    
  9131         <xpath>
  9132          cda:substa nceAdminis tration/cd a:entryRel ationship[ @typeCode= "REFR"]/cd a:supply[@ classCode= 'SPLY' and  @moodCode ='INT']/cd a:effectiv eTime/cda: high
  9133         </xpath>
  9134                                                    
  9135         <ifNotNull >
  9136                                                              
  9137          <action 
  9138           action="se tAttribute
  9139           attribute= "value" 
  9140          />
  9141                                                     
  9142         </ifNotNul l>
  9143                                                    
  9144         <ifNull>
  9145                                                              
  9146          <action 
  9147           action="re moveAttrib utes" 
  9148          />
  9149                                                              
  9150          <action 
  9151           action="se tAttribute
  9152           attribute= "nullFlavo r"
  9153          >
  9154           UNK
  9155          </action>
  9156                                                     
  9157         </ifNull>
  9158                                            
  9159        </mapping>
  9160                                           
  9161        <mapping>
  9162                                                    
  9163         <property>
  9164          orderDate
  9165         </property >
  9166                                                    
  9167         <xpath>
  9168          cda:substa nceAdminis tration/cd a:entryRel ationship[ @typeCode= 'REFR']/cd a:supply[@ classCode= 'SPLY' and  @moodCode ='INT']/cd a:author/c da:time
  9169         </xpath>
  9170                                                    
  9171         <ifNotNull >
  9172                                                              
  9173          <action 
  9174           action="se tAttribute
  9175           attribute= "value" 
  9176          />
  9177                                                     
  9178         </ifNotNul l>
  9179                                            
  9180        </mapping>
  9181                                           
  9182        <mapping>
  9183                                                    
  9184         <property 
  9185          optional=" true"
  9186         >
  9187          orderProvi derName
  9188         </property >
  9189                                                    
  9190         <xpath>
  9191          cda:substa nceAdminis tration/cd a:entryRel ationship/ cda:supply /cda:autho r/cda:assi gnedAuthor /cda:assig nedPerson/ cda:name
  9192         </xpath>
  9193                                                    
  9194         <ifNotNull >
  9195                                                              
  9196          <action 
  9197           action="se tValue" 
  9198          />
  9199                                                     
  9200         </ifNotNul l>
  9201                                            
  9202        </mapping>
  9203                                           
  9204        <mapping 
  9205         equalsProp erty="vaTy pe" 
  9206         equalsValu e="O"
  9207        >
  9208                                                    
  9209         <property 
  9210          optional=" true"
  9211         >
  9212          prescriptI d
  9213         </property >
  9214                                                    
  9215         <xpath>
  9216          cda:substa nceAdminis tration/cd a:entryRel ationship[ cda:supply /@classCod e='SPLY' a nd cda:sup ply/@moodC ode='EVN']
  9217         </xpath>
  9218                                                    
  9219         <ifNotNull >
  9220                                                              
  9221          <action 
  9222           action="se tAttribute
  9223           attribute= "root"
  9224                                                                       
  9225           relative=" cda:supply [@classCod e='SPLY' a nd @moodCo de='EVN']/ cda:id"
  9226          >
  9227           2.16.840.1 .113883.4. 349
  9228          </action>
  9229                                                              
  9230          <action 
  9231           action="se tAttribute
  9232           attribute= "extension "
  9233                                                                       
  9234           relative=" cda:supply [@classCod e='SPLY' a nd @moodCo de='EVN']/ cda:id" 
  9235          />
  9236                                                              
  9237          <action 
  9238           action="se tAttribute "
  9239                                                                       
  9240           relative=" cda:supply [@classCod e='SPLY' a nd @moodCo de='EVN']/ cda:effect iveTime/cd a:high"
  9241                                                                       
  9242           attribute= "value" 
  9243           property=" dispenseTi me" 
  9244          />
  9245                                                              
  9246          <action 
  9247           action="se tValue" 
  9248           property=" prodNameTe xt"
  9249                                                                       
  9250           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" 
  9251          />
  9252                                                     
  9253         </ifNotNul l>
  9254                                                    
  9255         <ifNull>
  9256                                                              
  9257          <action 
  9258           action="re move" 
  9259          />
  9260                                                     
  9261         </ifNull>
  9262                                            
  9263        </mapping>
  9264                                           
  9265        <mapping 
  9266         equalsProp erty="vaTy pe" 
  9267         equalsValu e="N"
  9268        >
  9269                                                    
  9270         <property 
  9271          optional=" true"
  9272         >
  9273          vaType
  9274         </property >
  9275                                                    
  9276         <xpath>
  9277          cda:substa nceAdminis tration/cd a:entryRel ationship[ cda:supply /@classCod e='SPLY' a nd cda:sup ply/@moodC ode='EVN']
  9278         </xpath>
  9279                                                    
  9280         <ifNotNull >
  9281                                                              
  9282          <action 
  9283           action="se tAttribute
  9284           attribute= "nullFlavo r"
  9285                                                                       
  9286           relative=" cda:supply [@classCod e='SPLY' a nd @moodCo de='EVN']/ cda:id"
  9287          >
  9288           UNK
  9289          </action>
  9290                                                              
  9291          <action 
  9292           action="se tAttribute "
  9293                                                                       
  9294           relative=" cda:supply [@classCod e='SPLY' a nd @moodCo de='EVN']/ cda:effect iveTime/cd a:high"
  9295                                                                       
  9296           attribute= "value" 
  9297           property=" dispenseTi me" 
  9298          />
  9299                                                              
  9300          <action 
  9301           action="se tValue" 
  9302           property=" prodNameTe xt"
  9303                                                                       
  9304           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" 
  9305          />
  9306                                                     
  9307         </ifNotNul l>
  9308                                            
  9309        </mapping>
  9310                                  
  9311       </mappings >
  9312                        
  9313      </mapping>
  9314                       
  9315      <!-- ENCOU NTER NARRI TIVE -->
  9316              
  9317      <!-- consu lt note, h istory and  physical  note - add ed: Feb 20 15, Ash Ka davath -->
  9318                       
  9319      <mapping>
  9320                            
  9321       <property 
  9322        optional=" true"
  9323       >
  9324        consultNot esNarrativ e
  9325       </property >
  9326                            
  9327       <xpath>
  9328        /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']
  9329       </xpath>
  9330                            
  9331       <ifNotNull >
  9332                                  
  9333        <action 
  9334         action="se tValue" 
  9335         relative=" cda:sectio n/cda:text /cda:parag raph[@ID=' conTitle']
  9336        />
  9337                             
  9338       </ifNotNul l>
  9339                        
  9340      </mapping>
  9341                       
  9342      <mapping>
  9343                                 
  9344       <property 
  9345        collection ="true" 
  9346        optional=" true" 
  9347        limit="1"
  9348       >
  9349        consultnot esDescript ions
  9350       </property >
  9351                                 
  9352       <xpath>
  9353        /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']
  9354       </xpath>
  9355                                 
  9356       <ifNotNull >
  9357                                           
  9358        <action 
  9359         action="ev aluateMapp ings"
  9360                                                   
  9361         relative=" cda:sectio n/cda:text /cda:table [@ID='Note Narrative' ]/cda:tbod y/cda:tr" 
  9362        />
  9363                                  
  9364       </ifNotNul l>
  9365                                 
  9366       <mappings>
  9367                                           
  9368        <mapping>
  9369                                                    
  9370         <!--proper ty>referen ceDateTime </property -->
  9371                                                    
  9372         <property>
  9373          prettyRefe renceDateT ime
  9374         </property >
  9375                                                    
  9376         <xpath>
  9377          cda:td/cda :content[@ ID='noteDa teTime']
  9378         </xpath>
  9379                                                    
  9380         <ifNotNull >
  9381                                                              
  9382          <action 
  9383           action="se tAttribute
  9384           attribute= "ID" 
  9385           indexed="t rue"
  9386          >
  9387           noteDateTi me
  9388          </action>
  9389                                                              
  9390          <action 
  9391           action="se tValue" 
  9392          >
  9393          </action>
  9394                                                     
  9395         </ifNotNul l>
  9396                                                    
  9397         <ifNull>
  9398                                                              
  9399          <action 
  9400           action="se tAttribute
  9401           attribute= "ID" 
  9402           indexed="t rue"
  9403          >
  9404           noteDateTi me
  9405          </action>                                           
  9406                                                     
  9407         </ifNull>                                           
  9408                                            
  9409        </mapping>
  9410                                           
  9411        <!-- if Se rvice name  blank. -- >
  9412                                           
  9413        <mapping 
  9414         equalsProp erty="nati onalTitleS ervice.nam e"
  9415        >
  9416                                                    
  9417         <property 
  9418          optional=" true"
  9419         >
  9420          content
  9421         </property >
  9422                                                    
  9423         <xpath>
  9424          cda:td/cda :content[@ ID='noteEn counterDes cription']
  9425         </xpath>
  9426                                                    
  9427         <ifNotNull >
  9428                                                              
  9429          <action 
  9430           action="se tAttribute
  9431           attribute= "ID" 
  9432           indexed="t rue"
  9433          >
  9434           noteEncoun terDescrip tion
  9435          </action>
  9436                                                              
  9437          <action 
  9438           action="ap pendValue"  
  9439          />
  9440                                                     
  9441         </ifNotNul l>
  9442                                                    
  9443         <ifNull>
  9444                                                              
  9445          <action 
  9446           action="se tAttribute
  9447           attribute= "ID" 
  9448           indexed="t rue"
  9449          >
  9450           noteEncoun terDescrip tion
  9451          </action>
  9452                                                              
  9453          <action 
  9454           action="ap pendValue"
  9455          >
  9456           No text av ailable.
  9457          </action>                                                    
  9458                                                     
  9459         </ifNull>
  9460                                            
  9461        </mapping>
  9462                                           
  9463        <!-- If ti tle servic e name not  blank. -- >
  9464                                           
  9465        <mapping 
  9466         notEqualsP roperty="n ationalTit leService. name"
  9467        >
  9468                                                    
  9469         <property 
  9470          optional=" true"
  9471         >
  9472          content
  9473         </property >
  9474                                                    
  9475         <xpath>
  9476          cda:td/cda :content[@ ID='noteEn counterDes cription']
  9477         </xpath>
  9478                                                    
  9479         <ifNotNull >
  9480                                                              
  9481          <action 
  9482           action="se tAttribute
  9483           attribute= "ID" 
  9484           indexed="t rue"
  9485          >
  9486           noteEncoun terDescrip tion
  9487          </action>
  9488                                                              
  9489          <action 
  9490           action="ap pendValue"  
  9491           property=" nationalTi tleService .name" 
  9492          />
  9493                                                              
  9494          <!--action  action="a ppendValue " property ="national Title.name " /-->
  9495                                                              
  9496          <action 
  9497           action="ap pendValue"
  9498          >
  9499            : 
  9500          </action>
  9501                                                              
  9502          <action 
  9503           action="ap pendValue"  
  9504          />
  9505                                                     
  9506         </ifNotNul l>
  9507                                                    
  9508         <ifNull>
  9509                                                              
  9510          <action 
  9511           action="se tAttribute
  9512           attribute= "ID" 
  9513           indexed="t rue"
  9514          >
  9515           noteEncoun terDescrip tion
  9516          </action>
  9517                                                              
  9518          <action 
  9519           action="ap pendValue"  
  9520           property=" nationalTi tleService .name" 
  9521          />
  9522                                                              
  9523          <!--action  action="a ppendValue " property ="national Title.name " /-->
  9524                                                              
  9525          <action 
  9526           action="ap pendValue"
  9527          >
  9528            : 
  9529          </action>
  9530                                                              
  9531          <action 
  9532           action="ap pendValue"
  9533          >
  9534           No text av ailable.
  9535          </action>                                                    
  9536                                                     
  9537         </ifNull>
  9538                                            
  9539        </mapping>                                 
  9540                                           
  9541        <mapping>
  9542                                                    
  9543         <property 
  9544          optional=" true"
  9545         >
  9546          signingCli nician.nam e
  9547         </property >
  9548                                                    
  9549         <xpath>
  9550          cda:td/cda :content[@ ID='notePr ovider']
  9551         </xpath>
  9552                                                    
  9553         <ifNotNull >
  9554                                                              
  9555          <action 
  9556           action="se tAttribute
  9557           attribute= "ID" 
  9558           indexed="t rue"
  9559          >
  9560           noteProvid er
  9561          </action>
  9562                                                              
  9563          <action 
  9564           action="se tValue" 
  9565          />
  9566                                                     
  9567         </ifNotNul l>
  9568                                                    
  9569         <ifNull>
  9570                                                              
  9571          <action 
  9572           action="se tAttribute
  9573           attribute= "ID" 
  9574           indexed="t rue"
  9575          >
  9576           noteProvid er
  9577          </action>
  9578                                                     
  9579         </ifNull>
  9580                                            
  9581        </mapping>
  9582                                           
  9583        <!-- mappi ng>
  9584                                                    <property  optional=" true">loca lTitle</pr operty>
  9585                                                    <xpath>cda :td/cda:co ntent[@ID= 'noteEncou nterTitle' ]</xpath>
  9586                                                    <ifNotNull >
  9587                                                            <a ction acti on="setAtt ribute" at tribute="I D" indexed ="true">no teEncounte rTitle</ac tion>
  9588                                                            <a ction acti on="setVal ue" />
  9589                                                    </ifNotNul l>
  9590                                                    <ifNull>
  9591                                                            <a ction acti on="setAtt ribute" at tribute="I D" indexed ="true">no teEncounte rTitle</ac tion>
  9592                                                    </ifNull>
  9593                                           </mappin g -->
  9594                                           
  9595        <mapping>
  9596                                                    
  9597         <property>
  9598          facility.n ame
  9599         </property >
  9600                                                    
  9601         <xpath>
  9602          cda:td/cda :content[@ ID='noteSo urce']
  9603         </xpath>
  9604                                                    
  9605         <ifNotNull >
  9606                                                              
  9607          <action 
  9608           action="se tAttribute
  9609           attribute= "ID" 
  9610           indexed="t rue"
  9611          >
  9612           noteSource
  9613          </action>
  9614                                                              
  9615          <action 
  9616           action="se tValue" 
  9617          />
  9618                                                     
  9619         </ifNotNul l>
  9620                                                    
  9621         <ifNull>
  9622                                                              
  9623          <action 
  9624           action="se tAttribute
  9625           attribute= "ID" 
  9626           indexed="t rue"
  9627          >
  9628           noteSource
  9629          </action>
  9630                                                     
  9631         </ifNull>
  9632                                            
  9633        </mapping>
  9634                                  
  9635       </mappings >
  9636                        
  9637      </mapping>
  9638                                
  9639      <!--  New  condensed  section -- >
  9640                       
  9641      <mapping>
  9642                                 
  9643       <property 
  9644        collection ="true" 
  9645        optional=" true" 
  9646        limit="1"
  9647       >
  9648        consultnot esTitles
  9649       </property >
  9650                                 
  9651       <xpath>
  9652        /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']
  9653       </xpath>
  9654                                 
  9655       <ifNotNull >
  9656                                           
  9657        <action 
  9658         action="ev aluateMapp ings"
  9659                                                   
  9660         relative=" cda:sectio n/cda:text /cda:table [@ID='Note Narrative2 ']/cda:tbo dy/cda:tr"  
  9661        />
  9662                                  
  9663       </ifNotNul l>
  9664                                 
  9665       <ifNull>
  9666                                           
  9667        <action 
  9668         action="re move" 
  9669                                                   
  9670         relative=" cda:sectio n/cda:text /cda:table [@ID='Note Narrative2 ']" 
  9671        />
  9672                                           
  9673        <action 
  9674         action="re move" 
  9675                                                   
  9676         relative=" cda:sectio n/cda:text /cda:parag raph[@ID=' conTitle2' ]" 
  9677        />
  9678                                  
  9679       </ifNull>
  9680                                 
  9681       <mappings>
  9682                                           
  9683        <mapping>
  9684                                                    
  9685         <!--proper ty>referen ceDateTime </property -->
  9686                                                    
  9687         <property>
  9688          prettyRefe renceDateT ime
  9689         </property >
  9690                                                    
  9691         <xpath>
  9692          cda:td/cda :content[@ ID='noteDa teTime2']
  9693         </xpath>
  9694                                                    
  9695         <ifNotNull >
  9696                                                              
  9697          <action 
  9698           action="se tAttribute
  9699           attribute= "ID" 
  9700           indexed="t rue"
  9701          >
  9702           noteDateTi me2
  9703          </action>
  9704                                                              
  9705          <action 
  9706           action="se tValue" 
  9707          >
  9708          </action>
  9709                                                     
  9710         </ifNotNul l>
  9711                                                    
  9712         <ifNull>
  9713                                                              
  9714          <action 
  9715           action="se tAttribute
  9716           attribute= "ID" 
  9717           indexed="t rue"
  9718          >
  9719           noteDateTi me2
  9720          </action>                                           
  9721                                                     
  9722         </ifNull>                                           
  9723                                            
  9724        </mapping>
  9725                                           
  9726        <!-- if Se rvice name  blank. -- >
  9727                                           
  9728        <mapping>
  9729                                                    
  9730         <property 
  9731          optional=" true"
  9732         >
  9733          signingCli nician.nam e
  9734         </property >
  9735                                                    
  9736         <xpath>
  9737          cda:td/cda :content[@ ID='notePr ovider2']
  9738         </xpath>
  9739                                                    
  9740         <ifNotNull >
  9741                                                              
  9742          <action 
  9743           action="se tAttribute
  9744           attribute= "ID" 
  9745           indexed="t rue"
  9746          >
  9747           noteProvid er2
  9748          </action>
  9749                                                              
  9750          <action 
  9751           action="se tValue" 
  9752          />
  9753                                                     
  9754         </ifNotNul l>
  9755                                                    
  9756         <ifNull>
  9757                                                              
  9758          <action 
  9759           action="se tAttribute
  9760           attribute= "ID" 
  9761           indexed="t rue"
  9762          >
  9763           noteProvid er2
  9764          </action>
  9765                                                     
  9766         </ifNull>
  9767                                            
  9768        </mapping>
  9769                                           
  9770        <mapping>
  9771                                                    
  9772         <property 
  9773          optional=" true"
  9774         >
  9775          localTitle
  9776         </property >
  9777                                                    
  9778         <xpath>
  9779          cda:td/cda :content[@ ID='noteEn counterDes cription2' ]
  9780         </xpath>
  9781                                                    
  9782         <ifNotNull >
  9783                                                              
  9784          <action 
  9785           action="se tAttribute
  9786           attribute= "ID" 
  9787           indexed="t rue"
  9788          >
  9789           noteEncoun terDescrip tion2
  9790          </action>
  9791                                                              
  9792          <action 
  9793           action="se tValue" 
  9794          />
  9795                                                     
  9796         </ifNotNul l>
  9797                                                    
  9798         <ifNull>
  9799                                                              
  9800          <action 
  9801           action="se tAttribute
  9802           attribute= "ID" 
  9803           indexed="t rue"
  9804          >
  9805           noteEncoun terDescrip tion2
  9806          </action>
  9807                                                     
  9808         </ifNull>
  9809                                            
  9810        </mapping>
  9811                                           
  9812        <mapping>
  9813                                                    
  9814         <property>
  9815          facility.n ame
  9816         </property >
  9817                                                    
  9818         <xpath>
  9819          cda:td/cda :content[@ ID='noteSo urce2']
  9820         </xpath>
  9821                                                    
  9822         <ifNotNull >
  9823                                                              
  9824          <action 
  9825           action="se tAttribute
  9826           attribute= "ID" 
  9827           indexed="t rue"
  9828          >
  9829           noteSource 2
  9830          </action>
  9831                                                              
  9832          <action 
  9833           action="se tValue" 
  9834          />
  9835                                                     
  9836         </ifNotNul l>
  9837                                                    
  9838         <ifNull>
  9839                                                              
  9840          <action 
  9841           action="se tAttribute
  9842           attribute= "ID" 
  9843           indexed="t rue"
  9844          >
  9845           noteSource 2
  9846          </action>
  9847                                                     
  9848         </ifNull>
  9849                                            
  9850        </mapping>
  9851                                  
  9852       </mappings >
  9853                        
  9854      </mapping>
  9855                       
  9856                       
  9857      <!-- start  consult n otes secti on-->
  9858                                
  9859      <mapping>
  9860                                 
  9861       <property 
  9862        collection ="true" 
  9863        optional=" true"
  9864       >
  9865        consultnot es
  9866       </property >
  9867                                 
  9868       <xpath>
  9869        /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' ]
  9870       </xpath>
  9871                                 
  9872       <ifNotNull >
  9873                                  
  9874        <action 
  9875         action="re moveAttrib utes" 
  9876        />
  9877                                  
  9878        <action 
  9879         action="se tAttribute
  9880         attribute= "typeCode"  
  9881        >
  9882         DRIV
  9883        </action>
  9884                                  
  9885        <action 
  9886         action="ev aluateMapp ings" 
  9887        />
  9888                                  
  9889       </ifNotNul l>
  9890                                 
  9891       <ifNull>
  9892                                           
  9893        <action 
  9894         action="re move" 
  9895         relative=" ../cda:tex t/cda:tabl e[@ID='Not eNarrative ']"
  9896        >
  9897        </action>
  9898                                           
  9899        <!--action  action="r emove" rel ative="../ cda:text/c da:table[@ ID='NoteNa rrativeTop Header']"> </action-- >
  9900                                           
  9901        <action 
  9902         action="re move" 
  9903         relative=" ../cda:tex t/cda:para graph[@ID= 'conTitle' ]"
  9904        >
  9905        </action>
  9906                                           
  9907        <action 
  9908         action="re move" 
  9909        >
  9910        </action>
  9911                                  
  9912       </ifNull>
  9913                                 
  9914       <mappings>
  9915                                           
  9916        <mapping >
  9917                                                    
  9918         <property>
  9919          content
  9920         </property >
  9921                                                    
  9922         <xpath>
  9923          cda:encoun ter/cda:co de
  9924         </xpath>
  9925                                                      
  9926                                                    
  9927         <ifNotNull >
  9928                                                          
  9929          <action 
  9930           action="re moveAttrib utes" 
  9931          />
  9932                                                              
  9933          <action 
  9934           action="se tAttribute
  9935           attribute= "code" 
  9936          >
  9937           99499
  9938          </action>
  9939                                                              
  9940          <action 
  9941           action="se tAttribute
  9942           attribute= "displayNa me" 
  9943          >
  9944           Unlisted E valuation  and Manage ment Servi ce
  9945          </action>
  9946                                                              
  9947          <action 
  9948           action="se tAttribute
  9949           attribute= "codeSyste m" 
  9950          >
  9951           2.16.840.1 .113883.6. 12
  9952          </action>
  9953                                                              
  9954          <action 
  9955           action="se tAttribute
  9956           attribute= "codeSyste mName" 
  9957          >
  9958           CPT-4
  9959          </action>
  9960                                                              
  9961                                                              
  9962          <action 
  9963           action="se tAttribute
  9964           relative=" cda:transl ation" 
  9965           attribute= "code" 
  9966          >
  9967           11488-4
  9968          </action>
  9969                                                              
  9970          <action 
  9971           action="se tAttribute
  9972           relative=" cda:transl ation" 
  9973           attribute= "displayNa me" 
  9974          >
  9975           Consultati on Note
  9976          </action>
  9977                                                              
  9978          <action 
  9979           action="se tAttribute
  9980           relative=" cda:transl ation" 
  9981           attribute= "codeSyste m" 
  9982          >
  9983           2.16.840.1 .113883.6. 1
  9984          </action>
  9985                                                              
  9986          <action 
  9987           action="se tAttribute
  9988           relative=" cda:transl ation" 
  9989           attribute= "codeSyste mName" 
  9990          >
  9991           LOINC
  9992          </action>
  9993                                                              
  9994                                                     
  9995         </ifNotNul l>
  9996                                                    
  9997         <ifNull>
  9998                                                          
  9999          <action 
  10000           action="re moveAttrib utes" 
  10001          />
  10002                                                              
  10003          <action 
  10004           action="se tAttribute
  10005           attribute= "code" 
  10006          >
  10007           99499
  10008          </action>
  10009                                                              
  10010          <action 
  10011           action="se tAttribute
  10012           attribute= "displayNa me" 
  10013          >
  10014           Unlisted E valuation  and Manage ment Servi ce
  10015          </action>
  10016                                                              
  10017          <action 
  10018           action="se tAttribute
  10019           attribute= "codeSyste m" 
  10020          >
  10021           2.16.840.1 .113883.6. 12
  10022          </action>
  10023                                                              
  10024          <action 
  10025           action="se tAttribute
  10026           attribute= "codeSyste mName" 
  10027          >
  10028           CPT-4
  10029          </action>
  10030                                                              
  10031                                                              
  10032          <action 
  10033           action="se tAttribute
  10034           relative=" cda:transl ation" 
  10035           attribute= "code" 
  10036          >
  10037           11488-4
  10038          </action>
  10039                                                              
  10040          <action 
  10041           action="se tAttribute
  10042           relative=" cda:transl ation" 
  10043           attribute= "displayNa me" 
  10044          >
  10045           Consultati on Note
  10046          </action>
  10047                                                              
  10048          <action 
  10049           action="se tAttribute
  10050           relative=" cda:transl ation" 
  10051           attribute= "codeSyste m" 
  10052          >
  10053           2.16.840.1 .113883.6. 1
  10054          </action>
  10055                                                              
  10056          <action 
  10057           action="se tAttribute
  10058           relative=" cda:transl ation" 
  10059           attribute= "codeSyste mName" 
  10060          >
  10061           LOINC
  10062          </action>
  10063                                                              
  10064                                                              
  10065                                                     
  10066         </ifNull>                                           
  10067                                            
  10068        </mapping>
  10069                                           
  10070        <mapping>
  10071                                                    
  10072         <property>
  10073          referenceD ateTime
  10074         </property >
  10075                                                    
  10076         <xpath>
  10077          cda:encoun ter/cda:ef fectiveTim e/cda:low
  10078         </xpath>
  10079                                                    
  10080         <ifNotNull >
  10081                                                              
  10082          <action 
  10083           action="se tAttribute
  10084           attribute= "value" 
  10085          />
  10086                                                     
  10087         </ifNotNul l>
  10088                                            
  10089        </mapping>
  10090                                           
  10091        <mapping>
  10092                                                    
  10093         <property 
  10094          optional=" true"
  10095         >
  10096          content
  10097         </property >
  10098                                                    
  10099         <xpath>
  10100          cda:encoun ter/cda:co de
  10101         </xpath>
  10102                                                    
  10103         <ifNotNull >
  10104                                                              
  10105          <action 
  10106           action="se tAttribute
  10107           relative=" cda:origin alText/cda :reference "
  10108                                                                       
  10109           attribute= "value" 
  10110           indexed="t rue"
  10111          >
  10112           #noteEncou nterDescri ption
  10113          </action>
  10114                                                     
  10115                                                              
  10116          <action 
  10117           action="se tAttribute
  10118           relative=" cda:transl ation/cda: originalTe xt/cda:ref erence"
  10119                                                                       
  10120           attribute= "value" 
  10121           indexed="t rue"
  10122          >
  10123           #noteEncou nterDescri ption
  10124          </action>
  10125                                                     
  10126         </ifNotNul l>
  10127                                                    
  10128         <ifNull>
  10129                                                              
  10130          <action 
  10131           action="se tAttribute
  10132           relative=" cda:origin alText/cda :reference "
  10133                                                                       
  10134           attribute= "value" 
  10135           indexed="t rue"
  10136          >
  10137           #noteEncou nterDescri ption
  10138          </action>
  10139                                                              
  10140          <action 
  10141           action="se tAttribute
  10142           relative=" cda:transl ation/cda: originalTe xt/cda:ref erence"
  10143                                                                       
  10144           attribute= "value" 
  10145           indexed="t rue"
  10146          >
  10147           #noteEncou nterDescri ption
  10148          </action>
  10149                                                     
  10150         </ifNull>
  10151                                            
  10152        </mapping>
  10153                                           
  10154        <mapping>
  10155                                                    
  10156         <property>
  10157          signingCli nician.nam e
  10158         </property >
  10159                                                    
  10160         <xpath>
  10161          cda:encoun ter/cda:pe rformer
  10162         </xpath>
  10163                                                    
  10164         <ifNotNull >
  10165                                                              
  10166          <action 
  10167           action="se tValue"
  10168                                                                       
  10169           relative=" cda:assign edEntity/c da:assigne dPerson/cd a:name" 
  10170          />
  10171                                                     
  10172         </ifNotNul l>
  10173                                            
  10174        </mapping>
  10175                                           
  10176        <mapping>
  10177                                                    
  10178         <property>
  10179          signingCli nician.nam e
  10180         </property >
  10181                                                    
  10182         <xpath>
  10183          cda:encoun ter/cda:pe rformer
  10184         </xpath>
  10185                                                    
  10186         <ifNotNull  />
  10187                                                    
  10188         <ifNull>
  10189                                                              
  10190          <action 
  10191           action="re move" 
  10192          />
  10193                                                     
  10194         </ifNull>
  10195                                            
  10196        </mapping>
  10197                                           
  10198        <mapping>
  10199                                                    
  10200         <property>
  10201          facility.n ame
  10202         </property >
  10203                                                    
  10204         <xpath>
  10205          cda:encoun ter/cda:pa rticipant/ cda:partic ipantRole/ cda:playin gEntity/cd a:name
  10206         </xpath>
  10207                                                    
  10208         <ifNotNull >
  10209                                                              
  10210          <action 
  10211           action="se tValue"  
  10212          />
  10213                                                     
  10214         </ifNotNul l>
  10215                                                    
  10216         <ifNull>
  10217                                                              
  10218          <action 
  10219           action="re moveAttrib utes" 
  10220          />
  10221                                                              
  10222          <action 
  10223           action="se tAttribute
  10224           attribute= "nullFlavo r"
  10225          >
  10226           UNK
  10227          </action>
  10228                                                     
  10229         </ifNull>
  10230                                            
  10231        </mapping>
  10232                                           
  10233        <mapping>
  10234                                                    
  10235         <property>
  10236          facility.c ode
  10237         </property >
  10238                                                    
  10239         <xpath>
  10240          cda:encoun ter/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:id
  10241         </xpath>
  10242                                                    
  10243         <ifNotNull >
  10244                                                              
  10245          <action 
  10246           action="se tAttribute
  10247           attribute= "extension
  10248          />
  10249                                                     
  10250         </ifNotNul l>
  10251                                            
  10252        </mapping>
  10253                                           
  10254        <mapping>
  10255                                                    
  10256         <property>
  10257          facility.n ame
  10258         </property >
  10259                                                    
  10260         <xpath>
  10261          cda:encoun ter/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:name
  10262         </xpath>
  10263                                                    
  10264         <ifNotNull >
  10265                                                              
  10266          <action 
  10267           action="se tValue" 
  10268          />
  10269                                                     
  10270         </ifNotNul l>
  10271                                            
  10272        </mapping>
  10273                                           
  10274        <mapping>
  10275                                                    
  10276         <property>
  10277          content
  10278         </property >
  10279                                                    
  10280         <xpath>
  10281          cda:encoun ter/cda:en tryRelatio nship[@typ eCode='RSO N']/cda:ob servation/ cda:code
  10282         </xpath>
  10283                                                    
  10284         <ifNotNull >
  10285                                                              
  10286          <action 
  10287           action="re moveAttrib utes" 
  10288          />
  10289                                                              
  10290          <action 
  10291           action="se tAttribute
  10292           attribute= "nullFlavo r"
  10293          >
  10294           UNK
  10295          </action>
  10296                                                     
  10297         </ifNotNul l>
  10298                                                    
  10299         <ifNull>
  10300                                                              
  10301          <action 
  10302           action="re moveAttrib utes" 
  10303          />
  10304                                                              
  10305          <action 
  10306           action="se tAttribute
  10307           attribute= "nullFlavo r"
  10308          >
  10309           UNK
  10310          </action>                                           
  10311                                                     
  10312         </ifNull>
  10313                                            
  10314        </mapping>
  10315                                           
  10316        <mapping>
  10317                                                    
  10318         <property>
  10319          content
  10320         </property >
  10321                                                    
  10322         <xpath>
  10323          cda:encoun ter/cda:en tryRelatio nship[@typ eCode='RSO N']/cda:ob servation/ cda:id
  10324         </xpath>
  10325                                                    
  10326         <ifNotNull >
  10327                                                              
  10328          <action 
  10329           action="re moveAttrib utes" 
  10330          />
  10331                                                              
  10332          <action 
  10333           action="se tAttribute
  10334           attribute= "nullFlavo r"
  10335          >
  10336           UNK
  10337          </action>
  10338                                                     
  10339         </ifNotNul l>
  10340                                                    
  10341         <ifNull>
  10342                                                              
  10343          <action 
  10344           action="re moveAttrib utes" 
  10345          />
  10346                                                              
  10347          <action 
  10348           action="se tAttribute
  10349           attribute= "nullFlavo r"
  10350          >
  10351           UNK
  10352          </action>                                           
  10353                                                     
  10354         </ifNull>
  10355                                            
  10356        </mapping>                                 
  10357                                           
  10358        <mapping>
  10359                                                    
  10360         <property 
  10361          optional=" true"
  10362         >
  10363          content
  10364         </property >
  10365                                                    
  10366         <xpath>
  10367          cda:encoun ter/cda:en tryRelatio nship[@typ eCode='RSO N']/cda:ob servation/ cda:text
  10368         </xpath>
  10369                                                    
  10370         <ifNotNull >
  10371                                                              
  10372          <action 
  10373           action="se tAttribute
  10374           relative=" cda:refere nce"
  10375                                                                       
  10376           attribute= "nullFlavo r" 
  10377          >
  10378           UNK
  10379          </action>
  10380                                                     
  10381         </ifNotNul l>
  10382                                                    
  10383         <ifNull>
  10384                                                              
  10385          <action 
  10386           action="se tAttribute
  10387           relative=" cda:refere nce"
  10388                                                                       
  10389           attribute= "nullFlavo r" 
  10390          >
  10391           UNK
  10392          </action>
  10393                                                     
  10394         </ifNull>
  10395                                            
  10396        </mapping>
  10397                                  
  10398       </mappings >
  10399                        
  10400      </mapping>                
  10401                       
  10402      <!-- Begin  Consult N otes Conde nsed -->
  10403                       
  10404      <mapping>
  10405                                 
  10406       <property 
  10407        collection ="true" 
  10408        optional=" true"
  10409       >
  10410        consultnot es2
  10411       </property >
  10412                                 
  10413       <xpath>
  10414        /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' ]
  10415       </xpath>
  10416                                 
  10417       <ifNotNull >
  10418                                           
  10419        <action 
  10420         action="re moveAttrib utes" 
  10421        />
  10422                                           
  10423        <action 
  10424         action="se tAttribute
  10425         attribute= "typeCode"  
  10426        >
  10427         DRIV
  10428        </action>
  10429                                           
  10430        <action 
  10431         action="ev aluateMapp ings" 
  10432        />
  10433                                  
  10434       </ifNotNul l>
  10435                                 
  10436       <ifNull>
  10437                                           
  10438        <action 
  10439         action="re move" 
  10440         relative=" ../cda:tex t/cda:tabl e[@ID='Not eNarrative 2']"
  10441        >
  10442        </action>
  10443                                           
  10444        <action 
  10445         action="re move" 
  10446         relative=" ../cda:tex t/cda:para graph[@ID= 'conTitle2 ']"
  10447        >
  10448        </action>
  10449                                           
  10450        <action 
  10451         action="re move" 
  10452        >
  10453        </action>
  10454                                  
  10455       </ifNull>
  10456                                 
  10457       <mappings>
  10458                                           
  10459        <mapping >
  10460                                                    
  10461         <property>
  10462          content2
  10463         </property >
  10464                                                    
  10465         <xpath>
  10466          cda:encoun ter/cda:co de
  10467         </xpath>
  10468        
  10469                                                    
  10470         <ifNotNull >
  10471                                                          
  10472          <action 
  10473           action="re moveAttrib utes" 
  10474          />
  10475                                                              
  10476          <action 
  10477           action="se tAttribute
  10478           attribute= "code" 
  10479          >
  10480           99499
  10481          </action>
  10482                                                              
  10483          <action 
  10484           action="se tAttribute
  10485           attribute= "displayNa me" 
  10486          >
  10487           Unlisted E valuation  and Manage ment Servi ce
  10488          </action>
  10489                                                              
  10490          <action 
  10491           action="se tAttribute
  10492           attribute= "codeSyste m" 
  10493          >
  10494           2.16.840.1 .113883.6. 12
  10495          </action>
  10496                                                              
  10497          <action 
  10498           action="se tAttribute
  10499           attribute= "codeSyste mName" 
  10500          >
  10501           CPT-4
  10502          </action>
  10503                                                              
  10504                                                              
  10505          <action 
  10506           action="se tAttribute
  10507           relative=" cda:transl ation" 
  10508           attribute= "code" 
  10509          >
  10510           11488-4
  10511          </action>
  10512                                                              
  10513          <action 
  10514           action="se tAttribute
  10515           relative=" cda:transl ation" 
  10516           attribute= "displayNa me" 
  10517          >
  10518           Consultati on Note
  10519          </action>
  10520                                                              
  10521          <action 
  10522           action="se tAttribute
  10523           relative=" cda:transl ation" 
  10524           attribute= "codeSyste m" 
  10525          >
  10526           2.16.840.1 .113883.6. 1
  10527          </action>
  10528                                                              
  10529          <action 
  10530           action="se tAttribute
  10531           relative=" cda:transl ation" 
  10532           attribute= "codeSyste mName" 
  10533          >
  10534           LOINC
  10535          </action>
  10536                                                              
  10537                                                     
  10538         </ifNotNul l>
  10539                                                    
  10540         <ifNull>
  10541                                                          
  10542          <action 
  10543           action="re moveAttrib utes" 
  10544          />
  10545                                                              
  10546          <action 
  10547           action="se tAttribute
  10548           attribute= "code" 
  10549          >
  10550           99499
  10551          </action>
  10552                                                              
  10553          <action 
  10554           action="se tAttribute
  10555           attribute= "displayNa me" 
  10556          >
  10557           Unlisted E valuation  and Manage ment Servi ce
  10558          </action>
  10559                                                              
  10560          <action 
  10561           action="se tAttribute
  10562           attribute= "codeSyste m" 
  10563          >
  10564           2.16.840.1 .113883.6. 12
  10565          </action>
  10566                                                              
  10567          <action 
  10568           action="se tAttribute
  10569           attribute= "codeSyste mName" 
  10570          >
  10571           CPT-4
  10572          </action>
  10573                                                              
  10574                                                              
  10575          <action 
  10576           action="se tAttribute
  10577           relative=" cda:transl ation" 
  10578           attribute= "code" 
  10579          >
  10580           11488-4
  10581          </action>
  10582                                                              
  10583          <action 
  10584           action="se tAttribute
  10585           relative=" cda:transl ation" 
  10586           attribute= "displayNa me" 
  10587          >
  10588           Consultati on Note
  10589          </action>
  10590                                                              
  10591          <action 
  10592           action="se tAttribute
  10593           relative=" cda:transl ation" 
  10594           attribute= "codeSyste m" 
  10595          >
  10596           2.16.840.1 .113883.6. 1
  10597          </action>
  10598                                                              
  10599          <action 
  10600           action="se tAttribute
  10601           relative=" cda:transl ation" 
  10602           attribute= "codeSyste mName" 
  10603          >
  10604           LOINC
  10605          </action>
  10606                                                              
  10607                                                              
  10608                                                     
  10609         </ifNull>                                           
  10610                                            
  10611        </mapping>
  10612                                           
  10613        <mapping>
  10614                                                    
  10615         <property>
  10616          referenceD ateTime
  10617         </property >
  10618                                                    
  10619         <xpath>
  10620          cda:encoun ter/cda:ef fectiveTim e/cda:low
  10621         </xpath>
  10622                                                    
  10623         <ifNotNull >
  10624                                                              
  10625          <action 
  10626           action="se tAttribute
  10627           attribute= "value" 
  10628          />
  10629                                                     
  10630         </ifNotNul l>
  10631                                            
  10632        </mapping>
  10633                                           
  10634        <mapping>
  10635                                                    
  10636         <property 
  10637          optional=" true"
  10638         >
  10639          content
  10640         </property >
  10641                                                    
  10642         <xpath>
  10643          cda:encoun ter/cda:co de
  10644         </xpath>
  10645                                                    
  10646         <ifNotNull >
  10647                                                              
  10648          <action 
  10649           action="se tAttribute
  10650           relative=" cda:origin alText/cda :reference "
  10651                                                                       
  10652           attribute= "value" 
  10653           indexed="t rue"
  10654          >
  10655           #noteEncou nterDescri ption2
  10656          </action>
  10657                                                     
  10658                                                              
  10659          <action 
  10660           action="se tAttribute
  10661           relative=" cda:transl ation/cda: originalTe xt/cda:ref erence"
  10662                                                                       
  10663           attribute= "value" 
  10664           indexed="t rue"
  10665          >
  10666           #noteEncou nterDescri ption2
  10667          </action>
  10668                                                     
  10669         </ifNotNul l>
  10670                                                    
  10671         <ifNull>
  10672                                                              
  10673          <action 
  10674           action="se tAttribute
  10675           relative=" cda:origin alText/cda :reference "
  10676                                                                       
  10677           attribute= "value" 
  10678           indexed="t rue"
  10679          >
  10680           #noteEncou nterDescri ption2
  10681          </action>
  10682                                                              
  10683          <action 
  10684           action="se tAttribute
  10685           relative=" cda:transl ation/cda: originalTe xt/cda:ref erence"
  10686                                                                       
  10687           attribute= "value" 
  10688           indexed="t rue"
  10689          >
  10690           #noteEncou nterDescri ption2
  10691          </action>
  10692                                                     
  10693         </ifNull>
  10694                                            
  10695        </mapping>
  10696                                           
  10697        <mapping>
  10698                                                    
  10699         <property>
  10700          signingCli nician.nam e
  10701         </property >
  10702                                                    
  10703         <xpath>
  10704          cda:encoun ter/cda:pe rformer
  10705         </xpath>
  10706                                                    
  10707         <ifNotNull >
  10708                                                              
  10709          <action 
  10710           action="se tValue"
  10711                                                                       
  10712           relative=" cda:assign edEntity/c da:assigne dPerson/cd a:name" 
  10713          />
  10714                                                     
  10715         </ifNotNul l>
  10716                                            
  10717        </mapping>
  10718                                           
  10719        <mapping>
  10720                                                    
  10721         <property>
  10722          signingCli nician.nam e
  10723         </property >
  10724                                                    
  10725         <xpath>
  10726          cda:encoun ter/cda:pe rformer
  10727         </xpath>
  10728                                                    
  10729         <ifNotNull  />
  10730                                                    
  10731         <ifNull>
  10732                                                              
  10733          <action 
  10734           action="re move" 
  10735          />
  10736                                                     
  10737         </ifNull>
  10738                                            
  10739        </mapping>
  10740                                           
  10741        <mapping>
  10742                                                    
  10743         <property>
  10744          facility.n ame
  10745         </property >
  10746                                                    
  10747         <xpath>
  10748          cda:encoun ter/cda:pa rticipant/ cda:partic ipantRole/ cda:playin gEntity/cd a:name
  10749         </xpath>
  10750                                                    
  10751         <ifNotNull >
  10752                                                              
  10753          <action 
  10754           action="se tValue"  
  10755          />
  10756                                                     
  10757         </ifNotNul l>
  10758                                                    
  10759         <ifNull>
  10760                                                              
  10761          <action 
  10762           action="re moveAttrib utes" 
  10763          />
  10764                                                              
  10765          <action 
  10766           action="se tAttribute
  10767           attribute= "nullFlavo r"
  10768          >
  10769           UNK
  10770          </action>
  10771                                                     
  10772         </ifNull>
  10773                                            
  10774        </mapping>
  10775                                           
  10776        <mapping>
  10777                                                    
  10778         <property>
  10779          facility.c ode
  10780         </property >
  10781                                                    
  10782         <xpath>
  10783          cda:encoun ter/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:id
  10784         </xpath>
  10785                                                    
  10786         <ifNotNull >
  10787                                                              
  10788          <action 
  10789           action="se tAttribute
  10790           attribute= "extension
  10791          />
  10792                                                     
  10793         </ifNotNul l>
  10794                                            
  10795        </mapping>
  10796                                           
  10797        <mapping>
  10798                                                    
  10799         <property>
  10800          facility.n ame
  10801         </property >
  10802                                                    
  10803         <xpath>
  10804          cda:encoun ter/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:name
  10805         </xpath>
  10806                                                    
  10807         <ifNotNull >
  10808                                                              
  10809          <action 
  10810           action="se tValue" 
  10811          />
  10812                                                     
  10813         </ifNotNul l>
  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:code
  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          content
  10863         </property >
  10864                                                    
  10865         <xpath>
  10866          cda:encoun ter/cda:en tryRelatio nship[@typ eCode='RSO N']/cda:ob servation/ cda:id
  10867         </xpath>
  10868                                                    
  10869         <ifNotNull >
  10870                                                              
  10871          <action 
  10872           action="re moveAttrib utes" 
  10873          />
  10874                                                              
  10875          <action 
  10876           action="se tAttribute
  10877           attribute= "nullFlavo r"
  10878          >
  10879           UNK
  10880          </action>
  10881                                                     
  10882         </ifNotNul l>
  10883                                                    
  10884         <ifNull>
  10885                                                              
  10886          <action 
  10887           action="re moveAttrib utes" 
  10888          />
  10889                                                              
  10890          <action 
  10891           action="se tAttribute
  10892           attribute= "nullFlavo r"
  10893          >
  10894           UNK
  10895          </action>                                           
  10896                                                     
  10897         </ifNull>
  10898                                            
  10899        </mapping>                                 
  10900                                           
  10901        <mapping>
  10902                                                    
  10903         <property 
  10904          optional=" true"
  10905         >
  10906          content
  10907         </property >
  10908                                                    
  10909         <xpath>
  10910          cda:encoun ter/cda:en tryRelatio nship[@typ eCode='RSO N']/cda:ob servation/ cda:text
  10911         </xpath>
  10912                                                    
  10913         <ifNotNull >
  10914                                                              
  10915          <action 
  10916           action="se tAttribute
  10917           relative=" cda:refere nce"
  10918                                                                       
  10919           attribute= "nullFlavo r" 
  10920          >
  10921           UNK
  10922          </action>
  10923                                                     
  10924         </ifNotNul l>
  10925                                                    
  10926         <ifNull>
  10927                                                              
  10928          <action 
  10929           action="se tAttribute
  10930           relative=" cda:refere nce"
  10931                                                                       
  10932           attribute= "nullFlavo r" 
  10933          >
  10934           UNK
  10935          </action>
  10936                                                     
  10937         </ifNull>
  10938                                            
  10939        </mapping>
  10940                                  
  10941       </mappings >
  10942                        
  10943      </mapping>                
  10944              
  10945      <!-- start  history a nd physica l notes NA RRATIVE -- >
  10946                       
  10947      <mapping>
  10948                            
  10949       <property 
  10950        optional=" true"
  10951       >
  10952        hnpNotesNa rrative
  10953       </property >
  10954                            
  10955       <xpath>
  10956        /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']
  10957       </xpath>
  10958                            
  10959       <ifNotNull >
  10960                                  
  10961        <action 
  10962         action="se tValue" 
  10963         relative=" cda:sectio n/cda:text /cda:parag raph[@ID=' hnpTitle']
  10964        />
  10965                             
  10966       </ifNotNul l>
  10967                        
  10968      </mapping>
  10969                       
  10970      <mapping>
  10971                                 
  10972       <property 
  10973        collection ="true" 
  10974        optional=" true"
  10975       >
  10976        historyphy sicalnotes
  10977       </property >
  10978                                 
  10979       <xpath>
  10980        /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']
  10981       </xpath>
  10982                                 
  10983       <ifNotNull >
  10984                                           
  10985        <action 
  10986         action="ev aluateMapp ings"
  10987                                                   
  10988         relative=" cda:sectio n/cda:text /cda:table [@ID='HnPN oteNarrati ve']/cda:t body/cda:t r" 
  10989        />
  10990                                  
  10991       </ifNotNul l>
  10992                                 
  10993       <mappings>
  10994                                           
  10995        <mapping>
  10996                                                    
  10997         <!--proper ty>referen ceDateTime </property -->
  10998                                                    
  10999         <property>
  11000          prettyRefe renceDateT ime
  11001         </property >
  11002                                                    
  11003         <xpath>
  11004          cda:td/cda :content[@ ID='HnPnot eDateTime' ]
  11005         </xpath>
  11006                                                    
  11007         <ifNotNull >
  11008                                                              
  11009          <action 
  11010           action="se tAttribute
  11011           attribute= "ID" 
  11012           indexed="t rue"
  11013          >
  11014           HnPnoteDat eTime
  11015          </action>
  11016                                                              
  11017          <action 
  11018           action="se tValue" 
  11019          >
  11020          </action>
  11021                                                     
  11022         </ifNotNul l>
  11023                                                    
  11024         <ifNull>
  11025                                                              
  11026          <action 
  11027           action="se tAttribute
  11028           attribute= "ID" 
  11029           indexed="t rue"
  11030          >
  11031           HnPnoteDat eTime
  11032          </action>                                           
  11033                                                     
  11034         </ifNull>                                           
  11035                                            
  11036        </mapping>
  11037                                           
  11038        <!-- If no  service n ame -->
  11039                                           
  11040        <mapping 
  11041         equalsProp erty="nati onalTitleS ervice.nam e"
  11042        >
  11043                                                    
  11044         <property 
  11045          optional=" true"
  11046         >
  11047          content
  11048         </property >
  11049                                                    
  11050         <xpath>
  11051          cda:td/cda :content[@ ID='HnPnot eEncounter Descriptio n']
  11052         </xpath>
  11053                                                    
  11054         <ifNotNull >
  11055                                                              
  11056          <action 
  11057           action="se tAttribute
  11058           attribute= "ID" 
  11059           indexed="t rue"
  11060          >
  11061           HnPnoteEnc ounterDesc ription
  11062          </action>
  11063                                                              
  11064          <action 
  11065           action="ap pendValue"  
  11066          />
  11067                                                     
  11068         </ifNotNul l>
  11069                                                    
  11070         <ifNull>
  11071                                                              
  11072          <action 
  11073           action="se tAttribute
  11074           attribute= "ID" 
  11075           indexed="t rue"
  11076          >
  11077           HnPnoteEnc ounterDesc ription
  11078          </action>
  11079                                                              
  11080          <action 
  11081           action="ap pendValue"
  11082          >
  11083           No text av ailable.
  11084          </action>                                                    
  11085                                                     
  11086         </ifNull>
  11087                                            
  11088        </mapping>
  11089                                           
  11090        <!-- If th ere is a s ervice nam e -->                                         
  11091                                           
  11092        <mapping 
  11093         notEqualsP roperty="n ationalTit leService. name"
  11094        >
  11095                                                    
  11096         <property 
  11097          optional=" true"
  11098         >
  11099          content
  11100         </property >
  11101                                                    
  11102         <xpath>
  11103          cda:td/cda :content[@ ID='HnPnot eEncounter Descriptio n']
  11104         </xpath>
  11105                                                    
  11106         <ifNotNull >
  11107                                                              
  11108          <action 
  11109           action="se tAttribute
  11110           attribute= "ID" 
  11111           indexed="t rue"
  11112          >
  11113           HnPnoteEnc ounterDesc ription
  11114          </action>
  11115                                                              
  11116          <action 
  11117           action="ap pendValue"  
  11118           property=" nationalTi tleService .name" 
  11119          />
  11120                                                              
  11121          <action 
  11122           action="ap pendValue"
  11123          >
  11124            : 
  11125          </action>
  11126                                                              
  11127          <action 
  11128           action="ap pendValue"  
  11129          />
  11130                                                     
  11131         </ifNotNul l>
  11132                                                    
  11133         <ifNull>
  11134                                                              
  11135          <action 
  11136           action="se tAttribute
  11137           attribute= "ID" 
  11138           indexed="t rue"
  11139          >
  11140           HnPnoteEnc ounterDesc ription
  11141          </action>
  11142                                                              
  11143          <action 
  11144           action="ap pendValue"  
  11145           property=" nationalTi tleService .name" 
  11146          />
  11147                                                              
  11148          <action 
  11149           action="ap pendValue"
  11150          >
  11151            :      
  11152          </action>
  11153                                                              
  11154          <action 
  11155           action="ap pendValue"
  11156          >
  11157           No text av ailable.
  11158          </action>                                                    
  11159                                                     
  11160         </ifNull>
  11161                                            
  11162        </mapping>                                          
  11163                                           
  11164        <mapping>
  11165                                                    
  11166         <property 
  11167          optional=" true"
  11168         >
  11169          signingCli nician.nam e
  11170         </property >
  11171                                                    
  11172         <xpath>
  11173          cda:td/cda :content[@ ID='HnPnot eProvider' ]
  11174         </xpath>
  11175                                                    
  11176         <ifNotNull >
  11177                                                              
  11178          <action 
  11179           action="se tAttribute
  11180           attribute= "ID" 
  11181           indexed="t rue"
  11182          >
  11183           HnPnotePro vider
  11184          </action>
  11185                                                              
  11186          <action 
  11187           action="se tValue" 
  11188          />
  11189                                                     
  11190         </ifNotNul l>
  11191                                                    
  11192         <ifNull>
  11193                                                              
  11194          <action 
  11195           action="se tAttribute
  11196           attribute= "ID" 
  11197           indexed="t rue"
  11198          >
  11199           HnPnotePro vider
  11200          </action>
  11201                                                     
  11202         </ifNull>
  11203                                            
  11204        </mapping>
  11205                                           
  11206        <mapping>
  11207                                                    
  11208         <property>
  11209          facility.n ame
  11210         </property >
  11211                                                    
  11212         <xpath>
  11213          cda:td/cda :content[@ ID='HnPnot eSource']
  11214         </xpath>
  11215                                                    
  11216         <ifNotNull >
  11217                                                              
  11218          <action 
  11219           action="se tAttribute
  11220           attribute= "ID" 
  11221           indexed="t rue"
  11222          >
  11223           HnPnoteSou rce
  11224          </action>
  11225                                                              
  11226          <action 
  11227           action="se tValue" 
  11228          />
  11229                                                     
  11230         </ifNotNul l>
  11231                                                    
  11232         <ifNull>
  11233                                                              
  11234          <action 
  11235           action="se tAttribute
  11236           attribute= "ID" 
  11237           indexed="t rue"
  11238          >
  11239           HnPnoteSou rce
  11240          </action>
  11241                                                     
  11242         </ifNull>
  11243                                            
  11244        </mapping>
  11245                                  
  11246       </mappings >
  11247                        
  11248      </mapping>
  11249                       
  11250                       
  11251      <!-- start  history a nd physica l notes se ction-->
  11252                                
  11253      <mapping>
  11254                                 
  11255       <property 
  11256        collection ="true" 
  11257        optional=" true"
  11258       >
  11259        historyphy sicalnotes
  11260       </property >
  11261                                 
  11262       <xpath>
  11263        /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' ]
  11264       </xpath>
  11265                                 
  11266       <ifNotNull >
  11267                                  
  11268        <action 
  11269         action="re moveAttrib utes"
  11270        >
  11271        </action>
  11272                                  
  11273        <action 
  11274         action="se tAttribute
  11275         attribute= "typeCode"  
  11276        >
  11277         DRIV
  11278        </action>
  11279                                  
  11280        <action 
  11281         action="ev aluateMapp ings" 
  11282        />
  11283                                  
  11284       </ifNotNul l>
  11285                                 
  11286       <ifNull>
  11287                                           
  11288        <action 
  11289         action="re move" 
  11290         relative=" ../cda:tex t/cda:tabl e[@ID='HnP NoteNarrat ive']"
  11291        >
  11292        </action>
  11293                                           
  11294        <!--action  action="r emove" rel ative="../ cda:text/c da:table[@ ID='HnPNot eNarrative TopHeader' ]"></actio n-->
  11295                                           
  11296        <action 
  11297         action="re move" 
  11298         relative=" ../cda:tex t/cda:para graph[@ID= 'hnpTitle' ]"
  11299        >
  11300        </action>
  11301                                           
  11302        <action 
  11303         action="re move" 
  11304        >
  11305        </action>
  11306                                  
  11307       </ifNull>
  11308                                 
  11309       <mappings>
  11310                                           
  11311        <mapping>
  11312                                                    
  11313         <property>
  11314          content
  11315         </property >
  11316                                                    
  11317         <xpath>
  11318          cda:encoun ter/cda:co de
  11319         </xpath>
  11320                                                    
  11321         <ifNotNull >
  11322                                                          
  11323          <action 
  11324           action="re moveAttrib utes" 
  11325          />
  11326                                                              
  11327          <action 
  11328           action="se tAttribute
  11329           attribute= "code" 
  11330          >
  11331           99499
  11332          </action>
  11333                                                              
  11334          <action 
  11335           action="se tAttribute
  11336           attribute= "displayNa me" 
  11337          >
  11338           Unlisted E valuation  and Manage ment Servi ce
  11339          </action>
  11340                                                              
  11341          <action 
  11342           action="se tAttribute
  11343           attribute= "codeSyste m" 
  11344          >
  11345           2.16.840.1 .113883.6. 12
  11346          </action>
  11347                                                              
  11348          <action 
  11349           action="se tAttribute
  11350           attribute= "codeSyste mName" 
  11351          >
  11352           CPT-4
  11353          </action>
  11354                                                              
  11355                                                              
  11356          <action 
  11357           action="se tAttribute
  11358           relative=" cda:transl ation" 
  11359           attribute= "code" 
  11360          >
  11361           34117-2
  11362          </action>
  11363                                                              
  11364          <action 
  11365           action="se tAttribute
  11366           relative=" cda:transl ation" 
  11367           attribute= "displayNa me" 
  11368          >
  11369           History an d Physical  Note
  11370          </action>
  11371                                                              
  11372          <action 
  11373           action="se tAttribute
  11374           relative=" cda:transl ation" 
  11375           attribute= "codeSyste m" 
  11376          >
  11377           2.16.840.1 .113883.6. 1
  11378          </action>
  11379                                                              
  11380          <action 
  11381           action="se tAttribute
  11382           relative=" cda:transl ation" 
  11383           attribute= "codeSyste mName" 
  11384          >
  11385           LOINC
  11386          </action>
  11387                                                              
  11388                                                     
  11389         </ifNotNul l>
  11390                                                    
  11391         <ifNull>
  11392                                                          
  11393          <action 
  11394           action="re moveAttrib utes" 
  11395          />
  11396                                                              
  11397          <action 
  11398           action="se tAttribute
  11399           attribute= "code" 
  11400          >
  11401           99499
  11402          </action>
  11403                                                              
  11404          <action 
  11405           action="se tAttribute
  11406           attribute= "displayNa me" 
  11407          >
  11408           Unlisted E valuation  and Manage ment Servi ce
  11409          </action>
  11410                                                              
  11411          <action 
  11412           action="se tAttribute
  11413           attribute= "codeSyste m" 
  11414          >
  11415           2.16.840.1 .113883.6. 12
  11416          </action>
  11417                                                              
  11418          <action 
  11419           action="se tAttribute
  11420           attribute= "codeSyste mName" 
  11421          >
  11422           CPT-4
  11423          </action>
  11424                                                              
  11425                                                              
  11426          <action 
  11427           action="se tAttribute
  11428           relative=" cda:transl ation" 
  11429           attribute= "code" 
  11430          >
  11431           34117-2
  11432          </action>
  11433                                                              
  11434          <action 
  11435           action="se tAttribute
  11436           relative=" cda:transl ation" 
  11437           attribute= "displayNa me" 
  11438          >
  11439           History an d Physical  Note
  11440          </action>
  11441                                                              
  11442          <action 
  11443           action="se tAttribute
  11444           relative=" cda:transl ation" 
  11445           attribute= "codeSyste m" 
  11446          >
  11447           2.16.840.1 .113883.6. 1
  11448          </action>
  11449                                                              
  11450          <action 
  11451           action="se tAttribute
  11452           relative=" cda:transl ation" 
  11453           attribute= "codeSyste mName" 
  11454          >
  11455           LOINC
  11456          </action>
  11457                                                     
  11458         </ifNull>                                           
  11459                                            
  11460        </mapping>                                 
  11461                                           
  11462        <mapping>
  11463                                                    
  11464         <property>
  11465          referenceD ateTime
  11466         </property >
  11467                                                    
  11468         <xpath>
  11469          cda:encoun ter/cda:ef fectiveTim e/cda:low
  11470         </xpath>
  11471                                                    
  11472         <ifNotNull >
  11473                                                              
  11474          <action 
  11475           action="se tAttribute
  11476           attribute= "value" 
  11477          />
  11478                                                     
  11479         </ifNotNul l>
  11480                                            
  11481        </mapping>
  11482                                           
  11483        <mapping>
  11484                                                    
  11485         <property>
  11486          signingCli nician.nam e
  11487         </property >
  11488                                                    
  11489         <xpath>
  11490          cda:encoun ter/cda:pe rformer
  11491         </xpath>
  11492                                                    
  11493         <ifNotNull >
  11494                                                              
  11495          <action 
  11496           action="se tValue"
  11497                                                                       
  11498           relative=" cda:assign edEntity/c da:assigne dPerson/cd a:name" 
  11499          />
  11500                                                     
  11501         </ifNotNul l>
  11502                                            
  11503        </mapping>
  11504                                           
  11505        <mapping>
  11506                                                    
  11507         <property 
  11508          optional=" true"
  11509         >
  11510          content
  11511         </property >
  11512                                                    
  11513         <xpath>
  11514          cda:encoun ter/cda:co de
  11515         </xpath>
  11516                                                    
  11517         <ifNotNull >
  11518                                                              
  11519          <action 
  11520           action="se tAttribute
  11521           relative=" cda:origin alText/cda :reference "
  11522                                                                       
  11523           attribute= "value" 
  11524           indexed="t rue"
  11525          >
  11526           #HnPnoteEn counterDes cription
  11527          </action>
  11528                                                              
  11529          <action 
  11530           action="se tAttribute
  11531           relative=" cda:transl ation/cda: originalTe xt/cda:ref erence"
  11532                                                                       
  11533           attribute= "value" 
  11534           indexed="t rue"
  11535          >
  11536           #HnPnoteEn counterDes cription
  11537          </action>
  11538                                                     
  11539         </ifNotNul l>
  11540                                                    
  11541         <ifNull>
  11542                                                              
  11543          <action 
  11544           action="se tAttribute
  11545           relative=" cda:origin alText/cda :reference "
  11546                                                                       
  11547           attribute= "value" 
  11548           indexed="t rue"
  11549          >
  11550           #HnPnoteEn counterDes cription
  11551          </action>
  11552                                                              
  11553          <action 
  11554           action="se tAttribute
  11555           relative=" cda:transl ation/cda: originalTe xt/cda:ref erence"
  11556                                                                       
  11557           attribute= "value" 
  11558           indexed="t rue"
  11559          >
  11560           #HnPnoteEn counterDes cription
  11561          </action>
  11562                                                     
  11563         </ifNull>
  11564                                            
  11565        </mapping>                                 
  11566                                           
  11567        <mapping>
  11568                                                    
  11569         <property>
  11570          signingCli nician.nam e
  11571         </property >
  11572                                                    
  11573         <xpath>
  11574          cda:encoun ter/cda:pe rformer
  11575         </xpath>
  11576                                                    
  11577         <ifNotNull  />
  11578                                                    
  11579         <ifNull>
  11580                                                              
  11581          <action 
  11582           action="re move" 
  11583          />
  11584                                                     
  11585         </ifNull>
  11586                                            
  11587        </mapping>
  11588                                           
  11589        <mapping >
  11590                                                    
  11591         <property>
  11592          facility.n ame
  11593         </property >
  11594                                                    
  11595         <xpath>
  11596          cda:encoun ter/cda:pa rticipant/ cda:partic ipantRole/ cda:playin gEntity/cd a:name
  11597         </xpath>
  11598                                                    
  11599         <ifNotNull >
  11600                                                              
  11601          <action 
  11602           action="se tValue"   
  11603          />
  11604                                                     
  11605         </ifNotNul l>
  11606                                                    
  11607         <ifNull>
  11608                                                              
  11609          <action 
  11610           action="re moveAttrib utes" 
  11611          />
  11612                                                              
  11613          <action 
  11614           action="se tAttribute
  11615           attribute= "nullFlavo r"
  11616          >
  11617           UNK
  11618          </action>
  11619                                                     
  11620         </ifNull>
  11621                                            
  11622        </mapping>
  11623                                           
  11624        <mapping>
  11625                                                    
  11626         <property>
  11627          facility.c ode
  11628         </property >
  11629                                                    
  11630         <xpath>
  11631          cda:encoun ter/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:id
  11632         </xpath>
  11633                                                    
  11634         <ifNotNull >
  11635                                                              
  11636          <action 
  11637           action="se tAttribute
  11638           attribute= "extension
  11639          />
  11640                                                     
  11641         </ifNotNul l>
  11642                                            
  11643        </mapping>
  11644                                           
  11645        <mapping>
  11646                                                    
  11647         <property>
  11648          facility.n ame
  11649         </property >
  11650                                                    
  11651         <xpath>
  11652          cda:encoun ter/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:name
  11653         </xpath>
  11654                                                    
  11655         <ifNotNull >
  11656                                                              
  11657          <action 
  11658           action="se tValue" 
  11659          />
  11660                                                     
  11661         </ifNotNul l>
  11662                                            
  11663        </mapping>
  11664                                           
  11665        <mapping>
  11666                                                    
  11667         <property>
  11668          content
  11669         </property >
  11670                                                    
  11671         <xpath>
  11672          cda:encoun ter/cda:en tryRelatio nship[@typ eCode='RSO N']/cda:ob servation/ cda:code
  11673         </xpath>
  11674                                                    
  11675         <ifNotNull >
  11676                                                              
  11677          <action 
  11678           action="re moveAttrib utes" 
  11679          />
  11680                                                              
  11681          <action 
  11682           action="se tAttribute
  11683           attribute= "nullFlavo r"
  11684          >
  11685           UNK
  11686          </action>
  11687                                                     
  11688         </ifNotNul l>
  11689                                                    
  11690         <ifNull>
  11691                                                              
  11692          <action 
  11693           action="re moveAttrib utes" 
  11694          />
  11695                                                              
  11696          <action 
  11697           action="se tAttribute
  11698           attribute= "nullFlavo r"
  11699          >
  11700           UNK
  11701          </action>                                           
  11702                                                     
  11703         </ifNull>
  11704                                            
  11705        </mapping>
  11706                                           
  11707        <mapping>
  11708                                                    
  11709         <property>
  11710          content
  11711         </property >
  11712                                                    
  11713         <xpath>
  11714          cda:encoun ter/cda:en tryRelatio nship[@typ eCode='RSO N']/cda:ob servation/ cda:id
  11715         </xpath>
  11716                                                    
  11717         <ifNotNull >
  11718                                                              
  11719          <action 
  11720           action="re moveAttrib utes" 
  11721          />
  11722                                                              
  11723          <action 
  11724           action="se tAttribute
  11725           attribute= "nullFlavo r"
  11726          >
  11727           UNK
  11728          </action>
  11729                                                     
  11730         </ifNotNul l>
  11731                                                    
  11732         <ifNull>
  11733                                                              
  11734          <action 
  11735           action="re moveAttrib utes" 
  11736          />
  11737                                                              
  11738          <action 
  11739           action="se tAttribute
  11740           attribute= "nullFlavo r"
  11741          >
  11742           UNK
  11743          </action>                                           
  11744                                                     
  11745         </ifNull>
  11746                                            
  11747        </mapping>                                 
  11748                                           
  11749        <mapping>
  11750                                                    
  11751         <property 
  11752          optional=" true"
  11753         >
  11754          content
  11755         </property >
  11756                                                    
  11757         <xpath>
  11758          cda:encoun ter/cda:en tryRelatio nship[@typ eCode='RSO N']/cda:ob servation/ cda:text
  11759         </xpath>
  11760                                                    
  11761         <ifNotNull >
  11762                                                              
  11763          <action 
  11764           action="se tAttribute
  11765           relative=" cda:refere nce"
  11766                                                                       
  11767           attribute= "nullFlavo r" 
  11768          >
  11769           UNK
  11770          </action>
  11771                                                     
  11772         </ifNotNul l>
  11773                                                    
  11774         <ifNull>
  11775                                                              
  11776          <action 
  11777           action="se tAttribute
  11778           relative=" cda:refere nce"
  11779                                                                       
  11780           attribute= "nullFlavo r" 
  11781          >
  11782           UNK
  11783          </action>
  11784                                                     
  11785         </ifNull>
  11786                                            
  11787        </mapping>
  11788                                  
  11789       </mappings >
  11790                        
  11791      </mapping>                                 
  11792                       
  11793      <!-- start  discharge  summary N ARRATIVE - ->
  11794                       
  11795      <mapping>
  11796                            
  11797       <property 
  11798        optional=" true"
  11799       >
  11800        dischargeS ummariesNa rrative
  11801       </property >
  11802                            
  11803       <xpath>
  11804        /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']
  11805       </xpath>
  11806                            
  11807       <ifNotNull >
  11808                                  
  11809        <action 
  11810         action="se tValue" 
  11811         relative=" cda:sectio n/cda:text /cda:parag raph[@ID=' disTitle']
  11812        />
  11813                             
  11814       </ifNotNul l>
  11815                        
  11816      </mapping>
  11817                       
  11818      <mapping>
  11819                                 
  11820       <property 
  11821        collection ="true" 
  11822        optional=" true"
  11823       >
  11824        dischargeS ummaries
  11825       </property >
  11826                                 
  11827       <xpath>
  11828        /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']
  11829       </xpath>
  11830                                 
  11831       <ifNotNull >
  11832                                           
  11833        <action 
  11834         action="ev aluateMapp ings"
  11835                                                   
  11836         relative=" cda:sectio n/cda:text /cda:table [@ID='DisN oteNarrati ve']/cda:t body/cda:t r" 
  11837        />
  11838                                  
  11839       </ifNotNul l>
  11840                                 
  11841       <mappings>
  11842                                           
  11843        <mapping>
  11844                                                    
  11845         <property>
  11846          prettyRefe renceDateT ime
  11847         </property >
  11848                                                    
  11849         <xpath>
  11850          cda:td/cda :content[@ ID='Disnot eDateTime' ]
  11851         </xpath>
  11852                                                    
  11853         <ifNotNull >
  11854                                                              
  11855          <action 
  11856           action="se tAttribute
  11857           attribute= "ID" 
  11858           indexed="t rue"
  11859          >
  11860           DisnoteDat eTime
  11861          </action>
  11862                                                              
  11863          <action 
  11864           action="se tValue" 
  11865          >
  11866          </action>
  11867                                                     
  11868         </ifNotNul l>
  11869                                                    
  11870         <ifNull>
  11871                                                              
  11872          <action 
  11873           action="se tAttribute
  11874           attribute= "ID" 
  11875           indexed="t rue"
  11876          >
  11877           DisnoteDat eTime
  11878          </action>                                           
  11879                                                     
  11880         </ifNull>                                           
  11881                                            
  11882        </mapping>
  11883                                           
  11884        <mapping>
  11885                                                    
  11886         <property 
  11887          optional=" true"
  11888         >
  11889          content
  11890         </property >
  11891                                                    
  11892         <xpath>
  11893          cda:td/cda :content[@ ID='Disnot eEncounter Descriptio n']
  11894         </xpath>
  11895                                                    
  11896         <ifNotNull >
  11897                                                              
  11898          <action 
  11899           action="se tAttribute
  11900           attribute= "ID" 
  11901           indexed="t rue"
  11902          >
  11903           DisnoteEnc ounterDesc ription
  11904          </action>
  11905                                                              
  11906          <action 
  11907           action="ap pendValue"  
  11908           property=" nationalTi tle.name" 
  11909          />
  11910                                                              
  11911          <action 
  11912           action="ap pendValue"
  11913          >
  11914            : 
  11915          </action>
  11916                                                              
  11917          <action 
  11918           action="ap pendValue"  
  11919          />
  11920                                                     
  11921         </ifNotNul l>
  11922                                                    
  11923         <ifNull>
  11924                                                              
  11925          <action 
  11926           action="se tAttribute
  11927           attribute= "ID" 
  11928           indexed="t rue"
  11929          >
  11930           DisnoteEnc ounterDesc ription
  11931          </action>
  11932                                                              
  11933          <action 
  11934           action="ap pendValue"  
  11935           property=" nationalTi tle.name" 
  11936          />
  11937                                                              
  11938          <action 
  11939           action="ap pendValue"
  11940          >
  11941            :      
  11942          </action>
  11943                                                              
  11944          <action 
  11945           action="ap pendValue"
  11946          >
  11947           No text av ailable.
  11948          </action>                                                    
  11949                                                     
  11950         </ifNull>
  11951                                            
  11952        </mapping>                                          
  11953                                           
  11954        <mapping>
  11955                                                    
  11956         <property 
  11957          optional=" true"
  11958         >
  11959          signingCli nician.nam e
  11960         </property >
  11961                                                    
  11962         <xpath>
  11963          cda:td/cda :content[@ ID='Disnot eProvider' ]
  11964         </xpath>
  11965                                                    
  11966         <ifNotNull >
  11967                                                              
  11968          <action 
  11969           action="se tAttribute
  11970           attribute= "ID" 
  11971           indexed="t rue"
  11972          >
  11973           DisnotePro vider
  11974          </action>
  11975                                                              
  11976          <action 
  11977           action="se tValue" 
  11978          />
  11979                                                     
  11980         </ifNotNul l>
  11981                                                    
  11982         <ifNull>
  11983                                                              
  11984          <action 
  11985           action="se tAttribute
  11986           attribute= "ID" 
  11987           indexed="t rue"
  11988          >
  11989           DisnotePro vider
  11990          </action>
  11991                                                     
  11992         </ifNull>
  11993                                            
  11994        </mapping>
  11995                                           
  11996        <mapping>
  11997                                                    
  11998         <property>
  11999          facility.n ame
  12000         </property >
  12001                                                    
  12002         <xpath>
  12003          cda:td/cda :content[@ ID='Disnot eSource']
  12004         </xpath>
  12005                                                    
  12006         <ifNotNull >
  12007                                                              
  12008          <action 
  12009           action="se tAttribute
  12010           attribute= "ID" 
  12011           indexed="t rue"
  12012          >
  12013           DisnoteSou rce
  12014          </action>
  12015                                                              
  12016          <action 
  12017           action="se tValue" 
  12018          />
  12019                                                     
  12020         </ifNotNul l>
  12021                                                    
  12022         <ifNull>
  12023                                                              
  12024          <action 
  12025           action="se tAttribute
  12026           attribute= "ID" 
  12027           indexed="t rue"
  12028          >
  12029           DisnoteSou rce
  12030          </action>
  12031                                                     
  12032         </ifNull>
  12033                                            
  12034        </mapping>
  12035                                  
  12036       </mappings >
  12037                        
  12038      </mapping>
  12039                       
  12040      <!-- start  discharge  summary s ection-->
  12041                                
  12042      <mapping>
  12043                                 
  12044       <property 
  12045        collection ="true" 
  12046        optional=" true"
  12047       >
  12048        dischargeS ummaries
  12049       </property >
  12050                                 
  12051       <xpath>
  12052        /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' ]
  12053       </xpath>
  12054                                 
  12055       <ifNotNull >
  12056                                  
  12057        <action 
  12058         action="re moveAttrib utes"
  12059        >
  12060        </action>
  12061                                  
  12062        <action 
  12063         action="se tAttribute
  12064         attribute= "typeCode"  
  12065        >
  12066         DRIV
  12067        </action>
  12068                                  
  12069        <action 
  12070         action="ev aluateMapp ings" 
  12071        />
  12072                                  
  12073       </ifNotNul l>
  12074                                 
  12075       <ifNull>
  12076                                           
  12077        <action 
  12078         action="re move" 
  12079         relative=" ../cda:tex t/cda:tabl e[@ID='Dis NoteNarrat ive']"
  12080        >
  12081        </action>
  12082                                           
  12083        <action 
  12084         action="re move" 
  12085         relative=" ../cda:tex t/cda:para graph[@ID= 'disTitle' ]"
  12086        >
  12087        </action>
  12088                                           
  12089        <action 
  12090         action="re move" 
  12091        >
  12092        </action>
  12093                                  
  12094       </ifNull>
  12095                                 
  12096       <mappings>
  12097                                           
  12098        <mapping>
  12099                                                    
  12100         <property>
  12101          content
  12102         </property >
  12103                                                    
  12104         <xpath>
  12105          cda:encoun ter/cda:co de
  12106         </xpath>
  12107                                                    
  12108         <ifNotNull >
  12109                                                          
  12110          <action 
  12111           action="re moveAttrib utes" 
  12112          />
  12113                                                              
  12114          <action 
  12115           action="se tAttribute
  12116           attribute= "code"
  12117          >
  12118           99238
  12119          </action>
  12120                                                              
  12121          <action 
  12122           action="se tAttribute
  12123           attribute= "displayNa me"
  12124          >
  12125           Hospital d ischarge d ay managem ent; 30 mi nutes or l ess
  12126          </action>
  12127                                                              
  12128          <action 
  12129           action="se tAttribute
  12130           attribute= "codeSyste m"
  12131          >
  12132           2.16.840.1 .113883.6. 12
  12133          </action>
  12134                                                              
  12135          <action 
  12136           action="se tAttribute
  12137           attribute= "codeSyste mName"
  12138          >
  12139           CPT-4
  12140          </action>
  12141                                                              
  12142                                                              
  12143          <action 
  12144           action="se tAttribute
  12145           relative=" cda:transl ation" 
  12146           attribute= "code" 
  12147          >
  12148           18842-5
  12149          </action>
  12150                                                              
  12151          <action 
  12152           action="se tAttribute
  12153           relative=" cda:transl ation" 
  12154           attribute= "displayNa me" 
  12155          >
  12156           Discharge  Summarizat ion Note
  12157          </action>
  12158                                                              
  12159          <action 
  12160           action="se tAttribute
  12161           relative=" cda:transl ation" 
  12162           attribute= "codeSyste m" 
  12163          >
  12164           2.16.840.1 .113883.6. 1
  12165          </action>
  12166                                                              
  12167          <action 
  12168           action="se tAttribute
  12169           relative=" cda:transl ation" 
  12170           attribute= "codeSyste mName" 
  12171          >
  12172           LOINC
  12173          </action>
  12174                                                              
  12175                                                     
  12176         </ifNotNul l>
  12177                                                    
  12178         <ifNull>
  12179                                                          
  12180          <action 
  12181           action="re moveAttrib utes" 
  12182          />
  12183                                                              
  12184          <action 
  12185           action="se tAttribute
  12186           attribute= "code"
  12187          >
  12188           99238
  12189          </action>
  12190                                                              
  12191          <action 
  12192           action="se tAttribute
  12193           attribute= "displayNa me"
  12194          >
  12195           Hospital d ischarge d ay managem ent; 30 mi nutes or l ess
  12196          </action>
  12197                                                              
  12198          <action 
  12199           action="se tAttribute
  12200           attribute= "codeSyste m"
  12201          >
  12202           2.16.840.1 .113883.6. 12
  12203          </action>
  12204                                                              
  12205          <action 
  12206           action="se tAttribute
  12207           attribute= "codeSyste mName"
  12208          >
  12209           CPT-4
  12210          </action>
  12211                                                              
  12212                                                              
  12213          <action 
  12214           action="se tAttribute
  12215           relative=" cda:transl ation" 
  12216           attribute= "code" 
  12217          >
  12218           18842-5
  12219          </action>
  12220                                                              
  12221          <action 
  12222           action="se tAttribute
  12223           relative=" cda:transl ation" 
  12224           attribute= "displayNa me" 
  12225          >
  12226           Discharge  Summarizat ion Note
  12227          </action>
  12228                                                              
  12229          <action 
  12230           action="se tAttribute
  12231           relative=" cda:transl ation" 
  12232           attribute= "codeSyste m" 
  12233          >
  12234           2.16.840.1 .113883.6. 1
  12235          </action>
  12236                                                              
  12237          <action 
  12238           action="se tAttribute
  12239           relative=" cda:transl ation" 
  12240           attribute= "codeSyste mName" 
  12241          >
  12242           LOINC
  12243          </action>
  12244                                                              
  12245                                                     
  12246         </ifNull>
  12247                                                    
  12248                                            
  12249        </mapping>                                 
  12250                                           
  12251        <mapping>
  12252                                                    
  12253         <property>
  12254          referenceD ateTime
  12255         </property >
  12256                                                    
  12257         <xpath>
  12258          cda:encoun ter/cda:ef fectiveTim e/cda:low
  12259         </xpath>
  12260                                                    
  12261         <ifNotNull >
  12262                                                              
  12263          <action 
  12264           action="se tAttribute
  12265           attribute= "value" 
  12266          />
  12267                                                     
  12268         </ifNotNul l>
  12269                                            
  12270        </mapping>
  12271                                           
  12272        <mapping>
  12273                                                    
  12274         <property>
  12275          signingCli nician.nam e
  12276         </property >
  12277                                                    
  12278         <xpath>
  12279          cda:encoun ter/cda:pe rformer
  12280         </xpath>
  12281                                                    
  12282         <ifNotNull >
  12283                                                              
  12284          <action 
  12285           action="se tValue"
  12286                                                                       
  12287           relative=" cda:assign edEntity/c da:assigne dPerson/cd a:name" 
  12288          />
  12289                                                     
  12290         </ifNotNul l>
  12291                                            
  12292        </mapping>
  12293                                           
  12294        <mapping>
  12295                                                    
  12296         <property 
  12297          optional=" true"
  12298         >
  12299          content
  12300         </property >
  12301                                                    
  12302         <xpath>
  12303          cda:encoun ter/cda:co de
  12304         </xpath>
  12305                                                    
  12306         <ifNotNull >
  12307                                                              
  12308          <action 
  12309           action="se tAttribute
  12310           relative=" cda:origin alText/cda :reference "
  12311                                                                       
  12312           attribute= "value" 
  12313           indexed="t rue"
  12314          >
  12315           #DisnoteEn counterDes cription
  12316          </action>
  12317                                                     
  12318                                                              
  12319          <action 
  12320           action="se tAttribute
  12321           relative=" cda:transl ation/cda: originalTe xt/cda:ref erence"
  12322                                                                       
  12323           attribute= "value" 
  12324           indexed="t rue"
  12325          >
  12326           #DisnoteEn counterDes cription
  12327          </action>
  12328                                                     
  12329         </ifNotNul l>
  12330                                                    
  12331         <ifNull>
  12332                                                              
  12333          <action 
  12334           action="se tAttribute
  12335           relative=" cda:origin alText/cda :reference "
  12336                                                                       
  12337           attribute= "value" 
  12338           indexed="t rue"
  12339          >
  12340           #DisnoteEn counterDes cription
  12341          </action>
  12342                                                              
  12343          <action 
  12344           action="se tAttribute
  12345           relative=" cda:transl ation/cda: originalTe xt/cda:ref erence"
  12346                                                                       
  12347           attribute= "value" 
  12348           indexed="t rue"
  12349          >
  12350           #DisnoteEn counterDes cription
  12351          </action>
  12352                                                     
  12353         </ifNull>
  12354                                            
  12355        </mapping>                                 
  12356                                           
  12357        <mapping>
  12358                                                    
  12359         <property>
  12360          signingCli nician.nam e
  12361         </property >
  12362                                                    
  12363         <xpath>
  12364          cda:encoun ter/cda:pe rformer
  12365         </xpath>
  12366                                                    
  12367         <ifNotNull  />
  12368                                                    
  12369         <ifNull>
  12370                                                              
  12371          <action 
  12372           action="re move" 
  12373          />
  12374                                                     
  12375         </ifNull>
  12376                                            
  12377        </mapping>
  12378                                           
  12379        <mapping >
  12380                                                    
  12381         <property>
  12382          facility.n ame
  12383         </property >
  12384                                                    
  12385         <xpath>
  12386          cda:encoun ter/cda:pa rticipant/ cda:partic ipantRole/ cda:playin gEntity/cd a:name
  12387         </xpath>
  12388                                                    
  12389         <ifNotNull >
  12390                                                              
  12391          <action 
  12392           action="se tValue"  
  12393          />
  12394                                                     
  12395         </ifNotNul l>
  12396                                                    
  12397         <ifNull>
  12398                                                              
  12399          <action 
  12400           action="re moveAttrib utes" 
  12401          />
  12402                                                              
  12403          <action 
  12404           action="se tAttribute
  12405           attribute= "nullFlavo r"
  12406          >
  12407           UNK
  12408          </action>
  12409                                                     
  12410         </ifNull>
  12411                                            
  12412        </mapping>
  12413                                           
  12414        <mapping>
  12415                                                    
  12416         <property>
  12417          facility.c ode
  12418         </property >
  12419                                                    
  12420         <xpath>
  12421          cda:encoun ter/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:id
  12422         </xpath>
  12423                                                    
  12424         <ifNotNull >
  12425                                                              
  12426          <action 
  12427           action="se tAttribute
  12428           attribute= "extension
  12429          />
  12430                                                     
  12431         </ifNotNul l>
  12432                                            
  12433        </mapping>
  12434                                           
  12435        <mapping>
  12436                                                    
  12437         <property>
  12438          facility.n ame
  12439         </property >
  12440                                                    
  12441         <xpath>
  12442          cda:encoun ter/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:name
  12443         </xpath>
  12444                                                    
  12445         <ifNotNull >
  12446                                                              
  12447          <action 
  12448           action="se tValue" 
  12449          />
  12450                                                     
  12451         </ifNotNul l>
  12452                                            
  12453        </mapping>
  12454                                           
  12455        <mapping>
  12456                                                    
  12457         <property>
  12458          content
  12459         </property >
  12460                                                    
  12461         <xpath>
  12462          cda:encoun ter/cda:en tryRelatio nship[@typ eCode='RSO N']/cda:ob servation/ cda:code
  12463         </xpath>
  12464                                                    
  12465         <ifNotNull >
  12466                                                              
  12467          <action 
  12468           action="re moveAttrib utes" 
  12469          />
  12470                                                              
  12471          <action 
  12472           action="se tAttribute
  12473           attribute= "nullFlavo r"
  12474          >
  12475           UNK
  12476          </action>
  12477                                                     
  12478         </ifNotNul l>
  12479                                                    
  12480         <ifNull>
  12481                                                              
  12482          <action 
  12483           action="re moveAttrib utes" 
  12484          />
  12485                                                              
  12486          <action 
  12487           action="se tAttribute
  12488           attribute= "nullFlavo r"
  12489          >
  12490           UNK
  12491          </action>                                           
  12492                                                     
  12493         </ifNull>
  12494                                            
  12495        </mapping>
  12496                                           
  12497        <mapping>
  12498                                                    
  12499         <property>
  12500          content
  12501         </property >
  12502                                                    
  12503         <xpath>
  12504          cda:encoun ter/cda:en tryRelatio nship[@typ eCode='RSO N']/cda:ob servation/ cda:id
  12505         </xpath>
  12506                                                    
  12507         <ifNotNull >
  12508                                                              
  12509          <action 
  12510           action="re moveAttrib utes" 
  12511          />
  12512                                                              
  12513          <action 
  12514           action="se tAttribute
  12515           attribute= "nullFlavo r"
  12516          >
  12517           UNK
  12518          </action>
  12519                                                     
  12520         </ifNotNul l>
  12521                                                    
  12522         <ifNull>
  12523                                                              
  12524          <action 
  12525           action="re moveAttrib utes" 
  12526          />
  12527                                                              
  12528          <action 
  12529           action="se tAttribute
  12530           attribute= "nullFlavo r"
  12531          >
  12532           UNK
  12533          </action>                                           
  12534                                                     
  12535         </ifNull>
  12536                                            
  12537        </mapping>                                 
  12538                                           
  12539        <mapping>
  12540                                                    
  12541         <property 
  12542          optional=" true"
  12543         >
  12544          content
  12545         </property >
  12546                                                    
  12547         <xpath>
  12548          cda:encoun ter/cda:en tryRelatio nship[@typ eCode='RSO N']/cda:ob servation/ cda:text
  12549         </xpath>
  12550                                                    
  12551         <ifNotNull >
  12552                                                              
  12553          <action 
  12554           action="se tAttribute
  12555           relative=" cda:refere nce"
  12556                                                                       
  12557           attribute= "nullFlavo r" 
  12558          >
  12559           UNK
  12560          </action>
  12561                                                     
  12562         </ifNotNul l>
  12563                                                    
  12564         <ifNull>
  12565                                                              
  12566          <action 
  12567           action="se tAttribute
  12568           relative=" cda:refere nce"
  12569                                                                       
  12570           attribute= "nullFlavo r" 
  12571          >
  12572           UNK
  12573          </action>
  12574                                                     
  12575         </ifNull>
  12576                                            
  12577        </mapping>
  12578                                  
  12579       </mappings >
  12580                        
  12581      </mapping>                
  12582     
  12583              
  12584      <!-- Start  Associate d Encounte r Notes Ma pping Narr ative. -->
  12585                       
  12586      <mapping>
  12587                            
  12588       <property 
  12589        optional=" true"
  12590       >
  12591        visitsNote sNarrative
  12592       </property >
  12593                            
  12594       <xpath>
  12595        /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']
  12596       </xpath>
  12597                            
  12598       <ifNotNull >
  12599                                  
  12600        <action 
  12601         action="se tValue" 
  12602         relative=" cda:sectio n/cda:text /cda:parag raph[@ID=' anTitle']"  
  12603        />
  12604                             
  12605       </ifNotNul l>
  12606                        
  12607      </mapping>
  12608                       
  12609      <mapping>
  12610                                 
  12611       <property 
  12612        collection ="true" 
  12613       >
  12614        encounterD ocs
  12615       </property >
  12616                                 
  12617       <xpath>
  12618        /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 ']
  12619       </xpath>
  12620                                 
  12621       <ifNotNull >
  12622                                           
  12623        <action 
  12624         action="ev aluateMapp ings" 
  12625         relative=" cda:tbody/ cda:tr"
  12626        />
  12627                                  
  12628       </ifNotNul l>
  12629                                 
  12630       <ifNull>
  12631                                           
  12632        <action 
  12633         action="re move" 
  12634        />
  12635                                           
  12636        <action 
  12637         action="re move" 
  12638         relative=" ../../cda: paragraph[ @ID='anTit le']"
  12639        >
  12640        </action>
  12641                                  
  12642       </ifNull>
  12643                                 
  12644       <mappings>
  12645                                           
  12646        <mapping>
  12647                                                    
  12648         <!--proper ty>referen ceDateTime </property -->
  12649                                                    
  12650         <property>
  12651          prettyRefe renceDateT ime
  12652         </property >
  12653                                                    
  12654         <xpath>
  12655          cda:td/cda :content[@ ID='anNote DateTime']
  12656         </xpath>
  12657                                                    
  12658         <ifNotNull >
  12659                                                              
  12660          <action 
  12661           action="se tAttribute
  12662           attribute= "ID" 
  12663           indexed="t rue"
  12664          >
  12665           anNoteDate Time
  12666          </action>
  12667                                                              
  12668          <action 
  12669           action="se tValue" 
  12670          >
  12671          </action>
  12672                                                     
  12673         </ifNotNul l>
  12674                                                    
  12675         <ifNull>
  12676                                                              
  12677          <action 
  12678           action="se tAttribute
  12679           attribute= "ID" 
  12680           indexed="t rue"
  12681          >
  12682           anNoteDate Time
  12683          </action>                                           
  12684                                                     
  12685         </ifNull>                                           
  12686                                            
  12687        </mapping>
  12688                                           
  12689        <!-- if Se rvice name  blank. -- >
  12690                                           
  12691        <mapping>
  12692                                                    
  12693         <property 
  12694          optional=" true"
  12695         >
  12696          content
  12697         </property >
  12698                                                    
  12699         <xpath>
  12700          cda:td/cda :content[@ ID='anNote EncounterD escription ']
  12701         </xpath>
  12702                                                    
  12703         <ifNotNull >
  12704                                                              
  12705          <action 
  12706           action="se tAttribute
  12707           attribute= "ID" 
  12708           indexed="t rue"
  12709          >
  12710           anNoteEnco unterDescr iption
  12711          </action>
  12712                                                              
  12713          <action 
  12714           action="ap pendValue"  
  12715           property=" documentTi tle" 
  12716          />
  12717                                                              
  12718          <action 
  12719           action="ap pendValue"
  12720          >
  12721            : 
  12722          </action>
  12723                                                              
  12724          <action 
  12725           action="ap pendValue"  
  12726          />
  12727                                                     
  12728         </ifNotNul l>
  12729                                                    
  12730         <ifNull>
  12731                                                              
  12732          <action 
  12733           action="se tAttribute
  12734           attribute= "ID" 
  12735           indexed="t rue"
  12736          >
  12737           anNoteEnco unterDescr iption
  12738          </action>
  12739                                                              
  12740          <action 
  12741           action="ap pendValue"  
  12742           property=" documentTi tle" 
  12743          />
  12744                                                              
  12745          <action 
  12746           action="ap pendValue"
  12747          >
  12748            : 
  12749          </action>
  12750                                                              
  12751          <action 
  12752           action="ap pendValue"
  12753          >
  12754           No text av ailable.
  12755          </action>                                                    
  12756                                                     
  12757         </ifNull>
  12758                                            
  12759        </mapping>
  12760                         
  12761                                           
  12762        <mapping>
  12763                                                    
  12764         <property 
  12765          optional=" true"
  12766         >
  12767          signingCli nician.nam e
  12768         </property >
  12769                                                    
  12770         <xpath>
  12771          cda:td/cda :content[@ ID='anNote Provider']
  12772         </xpath>
  12773                                                    
  12774         <ifNotNull >
  12775                                                              
  12776          <action 
  12777           action="se tAttribute
  12778           attribute= "ID" 
  12779           indexed="t rue"
  12780          >
  12781           anNoteProv ider
  12782          </action>
  12783                                                              
  12784          <action 
  12785           action="se tValue" 
  12786          />
  12787                                                     
  12788         </ifNotNul l>
  12789                                                    
  12790         <ifNull>
  12791                                                              
  12792          <action 
  12793           action="se tAttribute
  12794           attribute= "ID" 
  12795           indexed="t rue"
  12796          >
  12797           anNoteProv ider
  12798          </action>
  12799                                                     
  12800         </ifNull>
  12801                                            
  12802        </mapping>
  12803                                           
  12804        <mapping>
  12805                                                    
  12806         <property>
  12807          facility.n ame
  12808         </property >
  12809                                                    
  12810         <xpath>
  12811          cda:td/cda :content[@ ID='anNote Source']
  12812         </xpath>
  12813                                                    
  12814         <ifNotNull >
  12815                                                              
  12816          <action 
  12817           action="se tAttribute
  12818           attribute= "ID" 
  12819           indexed="t rue"
  12820          >
  12821           anNoteSour ce
  12822          </action>
  12823                                                              
  12824          <action 
  12825           action="se tValue" 
  12826          />
  12827                                                     
  12828         </ifNotNul l>
  12829                                                    
  12830         <ifNull>
  12831                                                              
  12832          <action 
  12833           action="se tAttribute
  12834           attribute= "ID" 
  12835           indexed="t rue"
  12836          >
  12837           anNoteSour ce
  12838          </action>
  12839                                                     
  12840         </ifNull>
  12841                                            
  12842        </mapping>
  12843                                  
  12844       </mappings >
  12845                        
  12846      </mapping>
  12847                       
  12848      <mapping>
  12849                                 
  12850       <property 
  12851        collection ="true" 
  12852       >
  12853        encounterD ocs
  12854       </property >
  12855                                 
  12856       <xpath>
  12857        /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']
  12858       </xpath>
  12859                                 
  12860       <ifNotNull  />
  12861                                 
  12862       <ifNull>
  12863                                           
  12864        <action 
  12865         action="re move" 
  12866        />
  12867                                  
  12868       </ifNull>
  12869                        
  12870      </mapping>
  12871                       
  12872      <mapping>
  12873                                 
  12874       <property 
  12875        collection ="true" 
  12876        optional=" true"
  12877       >
  12878        encounterD ocs
  12879       </property >
  12880                                 
  12881       <xpath>
  12882        /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' ]
  12883       </xpath>
  12884                                 
  12885       <ifNotNull >
  12886                                  
  12887        <action 
  12888         action="re moveAttrib utes"
  12889        >
  12890        </action>
  12891                                  
  12892        <action 
  12893         action="se tAttribute
  12894         attribute= "typeCode"  
  12895        >
  12896         DRIV
  12897        </action>
  12898                                  
  12899        <action 
  12900         action="ev aluateMapp ings" 
  12901        />
  12902                                  
  12903       </ifNotNul l>
  12904                                 
  12905       <ifNull>
  12906                                           
  12907        <action 
  12908         action="re move" 
  12909        >
  12910        </action>
  12911                                  
  12912       </ifNull>
  12913                                 
  12914       <mappings>
  12915                                           
  12916        <mapping 
  12917         equalsProp erty="cate gory" 
  12918         equalsValu e="PN"
  12919        >
  12920                                                    
  12921         <property>
  12922          content
  12923         </property >
  12924                                                    
  12925         <xpath>
  12926          cda:encoun ter/cda:co de
  12927         </xpath>
  12928                                                    
  12929         <ifNotNull >
  12930                                                              
  12931          <action 
  12932           action="se tAttribute
  12933           relative=" cda:transl ation" 
  12934           attribute= "code"
  12935          >
  12936           11506-3
  12937          </action>
  12938                                                              
  12939          <action 
  12940           action="se tAttribute
  12941           relative=" cda:transl ation" 
  12942           attribute= "displayNa me"
  12943          >
  12944           Subsequent  evaluatio n note
  12945          </action>
  12946                                                     
  12947         </ifNotNul l>
  12948                                            
  12949        </mapping>
  12950                                           
  12951        <mapping 
  12952         equalsProp erty="cate gory" 
  12953         equalsValu e="DS"
  12954        >
  12955                                                    
  12956         <property>
  12957          content
  12958         </property >
  12959                                                    
  12960         <xpath>
  12961          cda:encoun ter/cda:co de
  12962         </xpath>
  12963                                                    
  12964         <ifNotNull >
  12965                                                              
  12966          <action 
  12967           action="se tAttribute
  12968           relative=" cda:transl ation" 
  12969           attribute= "code"
  12970          >
  12971           18842-5
  12972          </action>
  12973                                                              
  12974          <action 
  12975           action="se tAttribute
  12976           relative=" cda:transl ation" 
  12977           attribute= "displayNa me"
  12978          >
  12979           Discharge  Summarizat ion Note
  12980          </action>
  12981                                                     
  12982         </ifNotNul l>
  12983                                            
  12984        </mapping>
  12985                                           
  12986        <mapping 
  12987         equalsProp erty="cate gory" 
  12988         equalsValu e="CR"
  12989        >
  12990                                                    
  12991         <property>
  12992          content
  12993         </property >
  12994                                                    
  12995         <xpath>
  12996          cda:encoun ter/cda:co de
  12997         </xpath>
  12998                                                    
  12999         <ifNotNull >
  13000                                                              
  13001          <action 
  13002           action="se tAttribute
  13003           relative=" cda:transl ation" 
  13004           attribute= "code"
  13005          >
  13006           11488-4
  13007          </action>
  13008                                                              
  13009          <action 
  13010           action="se tAttribute
  13011           relative=" cda:transl ation" 
  13012           attribute= "displayNa me"
  13013          >
  13014           Consultati on Note
  13015          </action>
  13016                                                     
  13017         </ifNotNul l>
  13018                                            
  13019        </mapping>                
  13020                                           
  13021        <mapping 
  13022         equalsProp erty="cate gory" 
  13023         equalsValu e="CP"
  13024        >
  13025                                                    
  13026         <property>
  13027          content
  13028         </property >
  13029                                                    
  13030         <xpath>
  13031          cda:encoun ter/cda:co de
  13032         </xpath>
  13033                                                    
  13034         <ifNotNull >
  13035                                                              
  13036          <action 
  13037           action="se tAttribute
  13038           relative=" cda:transl ation" 
  13039           attribute= "code"
  13040          >
  13041           28570-0
  13042          </action>
  13043                                                              
  13044          <action 
  13045           action="se tAttribute
  13046           relative=" cda:transl ation" 
  13047           attribute= "displayNa me"
  13048          >
  13049           Procedure  Note
  13050          </action>
  13051                                                     
  13052         </ifNotNul l>
  13053                                            
  13054        </mapping>
  13055                                           
  13056        <mapping 
  13057         equalsProp erty="cate gory" 
  13058         equalsValu e="SR"
  13059        >
  13060                                                    
  13061         <property>
  13062          content
  13063         </property >
  13064                                                    
  13065         <xpath>
  13066          cda:encoun ter/cda:co de
  13067         </xpath>
  13068                                                    
  13069         <ifNotNull >
  13070                                                              
  13071          <action 
  13072           action="se tAttribute
  13073           relative=" cda:transl ation" 
  13074           attribute= "code"
  13075          >
  13076           29752-3
  13077          </action>
  13078                                                              
  13079          <action 
  13080           action="se tAttribute
  13081           relative=" cda:transl ation" 
  13082           attribute= "displayNa me"
  13083          >
  13084           Perioperat ive Record s
  13085          </action>
  13086                                                     
  13087         </ifNotNul l>
  13088                                            
  13089        </mapping>
  13090                                           
  13091        <mapping 
  13092         equalsProp erty="cate gory" 
  13093         equalsValu e="RA"
  13094        >
  13095                                                    
  13096         <property>
  13097          content
  13098         </property >
  13099                                                    
  13100         <xpath>
  13101          cda:encoun ter/cda:co de
  13102         </xpath>
  13103                                                    
  13104         <ifNotNull >
  13105                                                              
  13106          <action 
  13107           action="se tAttribute
  13108           relative=" cda:transl ation" 
  13109           attribute= "code"
  13110          >
  13111           18726-0
  13112          </action>
  13113                                                              
  13114          <action 
  13115           action="se tAttribute
  13116           relative=" cda:transl ation" 
  13117           attribute= "displayNa me"
  13118          >
  13119           Radiology  Studies
  13120          </action>
  13121                                                     
  13122         </ifNotNul l>
  13123                                            
  13124        </mapping>
  13125                                           
  13126        <mapping 
  13127         equalsProp erty="cate gory" 
  13128         equalsValu e="LR"
  13129        >
  13130                                                    
  13131         <property>
  13132          content
  13133         </property >
  13134                                                    
  13135         <xpath>
  13136          cda:encoun ter/cda:co de
  13137         </xpath>
  13138                                                    
  13139         <ifNotNull >
  13140                                                              
  13141          <action 
  13142           action="se tAttribute
  13143           relative=" cda:transl ation" 
  13144           attribute= "code"
  13145          >
  13146           27898-6
  13147          </action>
  13148                                                              
  13149          <action 
  13150           action="se tAttribute
  13151           relative=" cda:transl ation" 
  13152           attribute= "displayNa me"
  13153          >
  13154           Pathology  Studies
  13155          </action>
  13156                                                     
  13157         </ifNotNul l>
  13158                                            
  13159        </mapping>
  13160                                           
  13161        <mapping 
  13162         equalsProp erty="cate gory" 
  13163         equalsValu e="C"
  13164        >
  13165                                                    
  13166         <property>
  13167          content
  13168         </property >
  13169                                                    
  13170         <xpath>
  13171          cda:encoun ter/cda:co de
  13172         </xpath>
  13173                                                    
  13174         <ifNotNull >
  13175                                                              
  13176          <action 
  13177           action="se tAttribute
  13178           relative=" cda:transl ation" 
  13179           attribute= "code"
  13180          >
  13181           34904-3
  13182          </action>
  13183                                                              
  13184          <action 
  13185           action="se tAttribute
  13186           relative=" cda:transl ation" 
  13187           attribute= "displayNa me"
  13188          >
  13189           Progress N ote – Ment al Health
  13190          </action>
  13191                                                     
  13192         </ifNotNul l>
  13193                                            
  13194        </mapping>
  13195                                           
  13196        <mapping 
  13197         equalsProp erty="cate gory" 
  13198         equalsValu e="W"
  13199        >
  13200                                                    
  13201         <property>
  13202          content
  13203         </property >
  13204                                                    
  13205         <xpath>
  13206          cda:encoun ter/cda:co de
  13207         </xpath>
  13208                                                    
  13209         <ifNotNull >
  13210                                                              
  13211          <action 
  13212           action="se tAttribute
  13213           relative=" cda:transl ation" 
  13214           attribute= "code"
  13215          >
  13216           71282-4
  13217          </action>
  13218                                                              
  13219          <action 
  13220           action="se tAttribute
  13221           relative=" cda:transl ation" 
  13222           attribute= "displayNa me"
  13223          >
  13224           Risk Asses sment  Doc ument
  13225          </action>
  13226                                                     
  13227         </ifNotNul l>
  13228                                            
  13229        </mapping>
  13230                                           
  13231        <mapping 
  13232         equalsProp erty="cate gory" 
  13233         equalsValu e="A"
  13234        >
  13235                                                    
  13236         <property>
  13237          content
  13238         </property >
  13239                                                    
  13240         <xpath>
  13241          cda:encoun ter/cda:co de
  13242         </xpath>
  13243                                                    
  13244         <ifNotNull >
  13245                                                              
  13246          <action 
  13247           action="se tAttribute
  13248           relative=" cda:transl ation" 
  13249           attribute= "code"
  13250          >
  13251           68629-5
  13252          </action>
  13253                                                              
  13254          <action 
  13255           action="se tAttribute
  13256           relative=" cda:transl ation" 
  13257           attribute= "displayNa me"
  13258          >
  13259           Allergy an d immunolo gy Note
  13260          </action>
  13261                                                     
  13262         </ifNotNul l>
  13263                                            
  13264        </mapping>
  13265                                           
  13266        <mapping 
  13267         equalsProp erty="cate gory" 
  13268         equalsValu e="D"
  13269        >
  13270                                                    
  13271         <property>
  13272          content
  13273         </property >
  13274                                                    
  13275         <xpath>
  13276          cda:encoun ter/cda:co de
  13277         </xpath>
  13278                                                    
  13279         <ifNotNull >
  13280                                                              
  13281          <action 
  13282           action="se tAttribute
  13283           relative=" cda:transl ation" 
  13284           attribute= "code"
  13285          >
  13286           42348-3
  13287          </action>
  13288                                                              
  13289          <action 
  13290           action="se tAttribute
  13291           relative=" cda:transl ation" 
  13292           attribute= "displayNa me"
  13293          >
  13294           Advance di rectives
  13295          </action>
  13296                                                     
  13297         </ifNotNul l>
  13298                                            
  13299        </mapping>
  13300       
  13301                                           
  13302        <mapping >
  13303                                                    
  13304         <property>
  13305          content
  13306         </property >
  13307                                                    
  13308         <xpath>
  13309          cda:encoun ter/cda:co de
  13310         </xpath>
  13311                                                    
  13312         <ifNotNull >
  13313                                                          
  13314          <action 
  13315           action="re moveAttrib utes" 
  13316          />
  13317                                                              
  13318          <action 
  13319           action="se tAttribute
  13320           attribute= "code"
  13321          >
  13322           99499
  13323          </action>
  13324                                                              
  13325          <action 
  13326           action="se tAttribute
  13327           attribute= "displayNa me"
  13328          >
  13329           Unlisted E valuation  and Manage ment Servi ce
  13330          </action>
  13331                                                              
  13332          <action 
  13333           action="se tAttribute
  13334           attribute= "codeSyste m"
  13335          >
  13336           2.16.840.1 .113883.6. 12
  13337          </action>
  13338                                                              
  13339          <action 
  13340           action="se tAttribute
  13341           attribute= "codeSyste mName"
  13342          >
  13343           CPT-4
  13344          </action>
  13345                                                              
  13346          <action 
  13347           action="se tAttribute
  13348           relative=" cda:transl ation" 
  13349           attribute= "codeSyste m" 
  13350          >
  13351           2.16.840.1 .113883.6. 1
  13352          </action>
  13353                                                              
  13354          <action 
  13355           action="se tAttribute
  13356           relative=" cda:transl ation" 
  13357           attribute= "codeSyste mName" 
  13358          >
  13359           LOINC
  13360          </action>
  13361                                                                                                          
  13362                                                     
  13363         </ifNotNul l>
  13364                                                    
  13365         <ifNull>
  13366                                                          
  13367          <action 
  13368           action="re moveAttrib utes" 
  13369          />
  13370                                                              
  13371          <action 
  13372           action="se tAttribute
  13373           attribute= "code"
  13374          >
  13375           99499
  13376          </action>
  13377                                                              
  13378          <action 
  13379           action="se tAttribute
  13380           attribute= "displayNa me"
  13381          >
  13382           Unlisted E valuation  and Manage ment Servi ce
  13383          </action>
  13384                                                              
  13385          <action 
  13386           action="se tAttribute
  13387           attribute= "codeSyste m"
  13388          >
  13389           2.16.840.1 .113883.6. 12
  13390          </action>
  13391                                                              
  13392          <action 
  13393           action="se tAttribute
  13394           attribute= "codeSyste mName"
  13395          >
  13396           CPT-4
  13397          </action>
  13398         
  13399                                                              
  13400          <action 
  13401           action="re move" 
  13402           relative=" cda:transl ation" 
  13403          />
  13404                                                     
  13405         </ifNull>
  13406                                                    
  13407                                            
  13408        </mapping>                                                   
  13409                                           
  13410        <mapping>
  13411                                                    
  13412         <property>
  13413          referenceD ateTime
  13414         </property >
  13415                                                    
  13416         <xpath>
  13417          cda:encoun ter/cda:ef fectiveTim e/cda:low
  13418         </xpath>
  13419                                                    
  13420         <ifNotNull >
  13421                                                              
  13422          <action 
  13423           action="se tAttribute
  13424           attribute= "value" 
  13425          />
  13426                                                     
  13427         </ifNotNul l>
  13428                                            
  13429        </mapping>
  13430                                           
  13431        <mapping>
  13432                                                    
  13433         <property>
  13434          signingCli nician.nam e
  13435         </property >
  13436                                                    
  13437         <xpath>
  13438          cda:encoun ter/cda:pe rformer
  13439         </xpath>
  13440                                                    
  13441         <ifNotNull >
  13442                                                              
  13443          <action 
  13444           action="se tValue"
  13445                                                                       
  13446           relative=" cda:assign edEntity/c da:assigne dPerson/cd a:name" 
  13447          />
  13448                                                     
  13449         </ifNotNul l>
  13450                                            
  13451        </mapping>
  13452                                           
  13453        <mapping>
  13454                                                    
  13455         <property 
  13456          optional=" true"
  13457         >
  13458          content
  13459         </property >
  13460                                                    
  13461         <xpath>
  13462          cda:encoun ter/cda:co de
  13463         </xpath>
  13464                                                    
  13465         <ifNotNull >
  13466                                                              
  13467          <action 
  13468           action="se tAttribute
  13469           relative=" cda:origin alText/cda :reference "
  13470                                                                       
  13471           attribute= "value" 
  13472           indexed="t rue"
  13473          >
  13474           #anNoteEnc ounterDesc ription
  13475          </action>
  13476                                                              
  13477          <action 
  13478           action="se tAttribute
  13479           relative=" cda:transl ation/cda: originalTe xt/cda:ref erence"
  13480                                                                       
  13481           attribute= "value" 
  13482           indexed="t rue"
  13483          >
  13484           #anNoteEnc ounterDesc ription
  13485          </action>
  13486                                                     
  13487         </ifNotNul l>
  13488                                                    
  13489         <ifNull>
  13490                                                              
  13491          <action 
  13492           action="se tAttribute
  13493           relative=" cda:origin alText/cda :reference "
  13494                                                                       
  13495           attribute= "value" 
  13496           indexed="t rue"
  13497          >
  13498           #anNoteEnc ounterDesc ription
  13499          </action>
  13500                                                              
  13501          <action 
  13502           action="se tAttribute
  13503           relative=" cda:transl ation/cda: originalTe xt/cda:ref erence"
  13504                                                                       
  13505           attribute= "value" 
  13506           indexed="t rue"
  13507          >
  13508           #anNoteEnc ounterDesc ription
  13509          </action>
  13510                                                     
  13511         </ifNull>
  13512                                            
  13513        </mapping>                                 
  13514                                           
  13515        <mapping>
  13516                                                    
  13517         <property>
  13518          signingCli nician.nam e
  13519         </property >
  13520                                                    
  13521         <xpath>
  13522          cda:encoun ter/cda:pe rformer
  13523         </xpath>
  13524                                                    
  13525         <ifNotNull  />
  13526                                                    
  13527         <ifNull>
  13528                                                              
  13529          <action 
  13530           action="re move" 
  13531          />
  13532                                                     
  13533         </ifNull>
  13534                                            
  13535        </mapping>
  13536                                           
  13537        <mapping >
  13538                                                    
  13539         <property>
  13540          facility.n ame
  13541         </property >
  13542                                                    
  13543         <xpath>
  13544          cda:encoun ter/cda:pa rticipant/ cda:partic ipantRole/ cda:playin gEntity/cd a:name
  13545         </xpath>
  13546                                                    
  13547         <ifNotNull >
  13548                                                              
  13549          <action 
  13550           action="se tValue"  
  13551          />
  13552                                                     
  13553         </ifNotNul l>
  13554                                                    
  13555         <ifNull>
  13556                                                              
  13557          <action 
  13558           action="re moveAttrib utes" 
  13559          />
  13560                                                              
  13561          <action 
  13562           action="se tAttribute
  13563           attribute= "nullFlavo r"
  13564          >
  13565           UNK
  13566          </action>
  13567                                                     
  13568         </ifNull>
  13569                                            
  13570        </mapping>
  13571                                           
  13572        <mapping>
  13573                                                    
  13574         <property>
  13575          facility.c ode
  13576         </property >
  13577                                                    
  13578         <xpath>
  13579          cda:encoun ter/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:id
  13580         </xpath>
  13581                                                    
  13582         <ifNotNull >
  13583                                                              
  13584          <action 
  13585           action="se tAttribute
  13586           attribute= "extension
  13587          />
  13588                                                     
  13589         </ifNotNul l>
  13590                                            
  13591        </mapping>
  13592                                           
  13593        <mapping>
  13594                                                    
  13595         <property>
  13596          facility.n ame
  13597         </property >
  13598                                                    
  13599         <xpath>
  13600          cda:encoun ter/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:name
  13601         </xpath>
  13602                                                    
  13603         <ifNotNull >
  13604                                                              
  13605          <action 
  13606           action="se tValue" 
  13607          />
  13608                                                     
  13609         </ifNotNul l>
  13610                                            
  13611        </mapping>
  13612                                           
  13613        <mapping>
  13614                                                    
  13615         <property>
  13616          content
  13617         </property >
  13618                                                    
  13619         <xpath>
  13620          cda:encoun ter/cda:en tryRelatio nship[@typ eCode='RSO N']/cda:ob servation/ cda:code
  13621         </xpath>
  13622                                                    
  13623         <ifNotNull >
  13624                                                              
  13625          <action 
  13626           action="re moveAttrib utes" 
  13627          />
  13628                                                              
  13629          <action 
  13630           action="se tAttribute
  13631           attribute= "nullFlavo r"
  13632          >
  13633           UNK
  13634          </action>
  13635                                                     
  13636         </ifNotNul l>
  13637                                                    
  13638         <ifNull>
  13639                                                              
  13640          <action 
  13641           action="re moveAttrib utes" 
  13642          />
  13643                                                              
  13644          <action 
  13645           action="se tAttribute
  13646           attribute= "nullFlavo r"
  13647          >
  13648           UNK
  13649          </action>                                           
  13650                                                     
  13651         </ifNull>
  13652                                            
  13653        </mapping>
  13654                                           
  13655        <mapping>
  13656                                                    
  13657         <property>
  13658          content
  13659         </property >
  13660                                                    
  13661         <xpath>
  13662          cda:encoun ter/cda:en tryRelatio nship[@typ eCode='RSO N']/cda:ob servation/ cda:id
  13663         </xpath>
  13664                                                    
  13665         <ifNotNull >
  13666                                                              
  13667          <action 
  13668           action="re moveAttrib utes" 
  13669          />
  13670                                                              
  13671          <action 
  13672           action="se tAttribute
  13673           attribute= "nullFlavo r"
  13674          >
  13675           UNK
  13676          </action>
  13677                                                     
  13678         </ifNotNul l>
  13679                                                    
  13680         <ifNull>
  13681                                                              
  13682          <action 
  13683           action="re moveAttrib utes" 
  13684          />
  13685                                                              
  13686          <action 
  13687           action="se tAttribute
  13688           attribute= "nullFlavo r"
  13689          >
  13690           UNK
  13691          </action>                                           
  13692                                                     
  13693         </ifNull>
  13694                                            
  13695        </mapping>                                 
  13696                                           
  13697        <mapping>
  13698                                                    
  13699         <property 
  13700          optional=" true"
  13701         >
  13702          content
  13703         </property >
  13704                                                    
  13705         <xpath>
  13706          cda:encoun ter/cda:en tryRelatio nship[@typ eCode='RSO N']/cda:ob servation/ cda:text
  13707         </xpath>
  13708                                                    
  13709         <ifNotNull >
  13710                                                              
  13711          <action 
  13712           action="se tAttribute
  13713           relative=" cda:refere nce"
  13714                                                                       
  13715           attribute= "nullFlavo r" 
  13716          >
  13717           UNK
  13718          </action>
  13719                                                     
  13720         </ifNotNul l>
  13721                                                    
  13722         <ifNull>
  13723                                                              
  13724          <action 
  13725           action="se tAttribute
  13726           relative=" cda:refere nce"
  13727                                                                       
  13728           attribute= "nullFlavo r" 
  13729          >
  13730           UNK
  13731          </action>
  13732                                                     
  13733         </ifNull>
  13734                                            
  13735        </mapping>
  13736                                  
  13737       </mappings >
  13738                        
  13739      </mapping>                                 
  13740                       
  13741      <!-- Stop  Associated  Encounter  Notes  -- >
  13742      <!-- start  outpatien t visit+no tes narrat ive-->           
  13743                       
  13744      <mapping>
  13745                            
  13746       <property 
  13747        optional=" true"
  13748       >
  13749        visitsNarr ative
  13750       </property >
  13751                            
  13752       <xpath>
  13753        /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']
  13754       </xpath>
  13755                            
  13756       <ifNotNull >
  13757                                  
  13758        <action 
  13759         action="se tValue" 
  13760         relative=" cda:sectio n/cda:text /cda:parag raph[@ID=' opEncTitle ']" 
  13761        />
  13762                             
  13763       </ifNotNul l>
  13764                        
  13765      </mapping>
  13766                       
  13767      <mapping>
  13768                                 
  13769       <property 
  13770        collection ="true" 
  13771        optional=" true"
  13772       >
  13773        visits
  13774       </property >
  13775                                 
  13776       <xpath>
  13777        /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']
  13778       </xpath>
  13779                                 
  13780       <ifNotNull >
  13781                                           
  13782        <action 
  13783         action="ev aluateMapp ings"
  13784                                                   
  13785         relative=" cda:sectio n/cda:text /cda:table [@ID='enco unterNarra tive']/cda :tbody/cda :tr" 
  13786        />
  13787                                  
  13788       </ifNotNul l>
  13789                                 
  13790       <mappings>
  13791                                           
  13792        <mapping>
  13793                                                    
  13794         <property>
  13795          prettyDate Time|prett yReference DateTime
  13796         </property >
  13797                                                    
  13798         <xpath>
  13799          cda:td[1]
  13800         </xpath>
  13801                                                    
  13802         <ifNotNull >
  13803                                                              
  13804          <action 
  13805           action="se tValue" 
  13806          />
  13807                                                     
  13808         </ifNotNul l>
  13809                                            
  13810        </mapping>
  13811                                           
  13812        <mapping>
  13813                                                    
  13814         <property 
  13815          optional=" true"
  13816         >
  13817          type.name
  13818         </property >
  13819                                                    
  13820         <xpath>
  13821          cda:td/cda :content[@ ID='endEnc ounterType ']
  13822         </xpath>
  13823                                                    
  13824         <ifNotNull >
  13825                                                              
  13826          <action 
  13827           action="se tAttribute
  13828           attribute= "ID" 
  13829           indexed="t rue"
  13830          >
  13831           endEncount erType
  13832          </action>
  13833                                                              
  13834          <action 
  13835           action="se tValue" 
  13836           property=" type.name"  
  13837          />
  13838                                                     
  13839         </ifNotNul l>
  13840                                                    
  13841         <ifNull>
  13842                                                     
  13843          <action 
  13844           action="se tAttribute
  13845           attribute= "ID" 
  13846           indexed="t rue"
  13847          >
  13848           endEncount erType
  13849          </action>
  13850                                                     
  13851         </ifNull>
  13852                                            
  13853        </mapping>
  13854                                           
  13855        <mapping>
  13856                                                    
  13857         <property>
  13858          stopCode.n ame
  13859         </property >
  13860                                                    
  13861         <xpath>
  13862          cda:td/cda :content[@ ID='endEnc ounterDesc ription']
  13863         </xpath>
  13864                                                    
  13865         <ifNotNull >
  13866                                                              
  13867          <action 
  13868           action="se tAttribute
  13869           attribute= "ID" 
  13870           indexed="t rue"
  13871          >
  13872           endEncount erDescript ion
  13873          </action>
  13874                                                              
  13875          <action 
  13876           action="se tValue" 
  13877          />
  13878                                                              
  13879          <action 
  13880           action="ev aluateMapp ings" 
  13881          />
  13882                                                     
  13883         </ifNotNul l>
  13884                                                    
  13885         <ifNull>
  13886                                                              
  13887          <action 
  13888           action="se tAttribute
  13889           attribute= "ID" 
  13890           indexed="t rue"
  13891          >
  13892           endEncount erDescript ion
  13893          </action>
  13894                                                     
  13895         </ifNull>
  13896                                            
  13897        </mapping>
  13898                                           
  13899                                           
  13900        <mapping 
  13901         notEqualsP roperty="r eason.name
  13902         notEqualsV alue="reas on.narrati ve"
  13903        >
  13904                                                    
  13905         <property>
  13906          systemLkp
  13907         </property >
  13908                                                    
  13909         <xpath>
  13910          cda:td/cda :content[@ ID='endRea son']
  13911         </xpath>
  13912                                                    
  13913         <ifNotNull >
  13914                                                              
  13915          <action 
  13916           action="se tAttribute
  13917           attribute= "ID" 
  13918           indexed="t rue"
  13919          >
  13920           endReason
  13921          </action>
  13922                                                              
  13923          <action 
  13924           action="se tValue" 
  13925           property=" reason.nam e" 
  13926          />
  13927                                                              
  13928          <action 
  13929           action="ap pendValue"  
  13930           property=" systemLkp"  
  13931          />
  13932                                                              
  13933          <action 
  13934           action="ap pendValue"  
  13935           property=" reason.cod e" 
  13936          />
  13937                                                              
  13938          <action 
  13939           action="ap pendValue"
  13940          >
  13941            with Prov ider Comme nts: 
  13942          </action>
  13943                                                              
  13944          <action 
  13945           action="ap pendValue"  
  13946           property=" reason.nar rative" 
  13947          />
  13948                                                              
  13949          <!-- <acti on action= "appendVal ue" proper ty="code"  /> <action  action="a ppendValue "> 
  13950                                                                       with  Provider  Comments</ action> -- >
  13951                                                              
  13952          <!-- <acti on action= "evaluateM appings" / > -->
  13953                                                     
  13954         </ifNotNul l>
  13955                                                    
  13956         <ifNull>
  13957                                                              
  13958          <action 
  13959           action="se tAttribute
  13960           attribute= "ID" 
  13961           indexed="t rue"
  13962          >
  13963           endReason
  13964          </action>
  13965                                                     
  13966         </ifNull>
  13967                                            
  13968        </mapping>
  13969                                           
  13970        <mapping 
  13971         equalsProp erty="reas on.name" 
  13972         equalsValu e="reason. narrative"
  13973        >
  13974                                                    
  13975         <property>
  13976          systemLkp
  13977         </property >
  13978                                                    
  13979         <xpath>
  13980          cda:td/cda :content[@ ID='endRea son']
  13981         </xpath>
  13982                                                    
  13983         <ifNotNull >
  13984                                                              
  13985          <action 
  13986           action="se tAttribute
  13987           attribute= "ID" 
  13988           indexed="t rue"
  13989          >
  13990           endReason
  13991          </action>
  13992                                                              
  13993          <action 
  13994           action="se tValue" 
  13995           property=" reason.nam e" 
  13996          />
  13997                                                              
  13998          <action 
  13999           action="ap pendValue"  
  14000           property=" systemLkp"  
  14001          />
  14002                                                              
  14003          <action 
  14004           action="ap pendValue"  
  14005           property=" reason.cod e" 
  14006          />
  14007                                                     
  14008         </ifNotNul l>
  14009                                                    
  14010         <ifNull>
  14011                                                              
  14012          <action 
  14013           action="se tAttribute
  14014           attribute= "ID" 
  14015           indexed="t rue"
  14016          >
  14017           endReason
  14018          </action>
  14019                                                     
  14020         </ifNull>
  14021                                            
  14022        </mapping>
  14023                                           
  14024        <mapping>
  14025                                                    
  14026         <property 
  14027          optional=" true"
  14028         >
  14029          primaryPro vider|sign ingClinici an.name
  14030         </property >
  14031                                                    
  14032         <xpath>
  14033          cda:td/cda :content[@ ID='endPro vider']
  14034         </xpath>
  14035                                                    
  14036         <ifNotNull >
  14037                                                              
  14038          <action 
  14039           action="se tAttribute
  14040           attribute= "ID" 
  14041           indexed="t rue"
  14042          >
  14043           endProvide r
  14044          </action>
  14045                                                              
  14046          <action 
  14047           action="se tValue" 
  14048          />
  14049                                                     
  14050         </ifNotNul l>
  14051                                                    
  14052         <ifNull>
  14053                                                              
  14054          <action 
  14055           action="se tAttribute
  14056           attribute= "ID" 
  14057           indexed="t rue"
  14058          >
  14059           endProvide r
  14060          </action>
  14061                                                     
  14062         </ifNull>
  14063                                            
  14064        </mapping>
  14065                                           
  14066        <mapping>
  14067                                                    
  14068         <property>
  14069          facility.n ame
  14070         </property >
  14071                                                    
  14072         <xpath>
  14073          cda:td/cda :content[@ ID='endSou rce']
  14074         </xpath>
  14075                                                    
  14076         <ifNotNull >
  14077                                                              
  14078          <action 
  14079           action="se tAttribute
  14080           attribute= "ID" 
  14081           indexed="t rue"
  14082          >
  14083           endSource
  14084          </action>
  14085                                                              
  14086          <action 
  14087           action="se tValue" 
  14088          />
  14089                                                     
  14090         </ifNotNul l>
  14091                                            
  14092        </mapping>
  14093                                  
  14094       </mappings >
  14095                        
  14096      </mapping>
  14097                       
  14098      <!-- start  outpatien t visit+no tes sectio n entry-->                         
  14099                       
  14100      <mapping>
  14101                                 
  14102       <property 
  14103        collection ="true" 
  14104        optional=" true"
  14105       >
  14106        visits
  14107       </property >
  14108                                 
  14109       <xpath>
  14110        /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']
  14111       </xpath>
  14112                                 
  14113       <ifNotNull >
  14114                                           
  14115        <action 
  14116         action="ev aluateMapp ings" 
  14117         relative=" cda:sectio n/cda:entr y" 
  14118        />
  14119                                  
  14120       </ifNotNul l>
  14121                                 
  14122       <ifNull>
  14123                                           
  14124        <!--action  action="r emove">NI< /action-->
  14125                                           
  14126        <action 
  14127         action="re move" 
  14128         relative=" cda:sectio n/cda:text /cda:table [@ID='enco unterNarra tive']"
  14129        >
  14130        </action>
  14131                                           
  14132        <action 
  14133         action="re move" 
  14134         relative=" cda:sectio n/cda:text /cda:parag raph[@ID=' opEncTitle ']"
  14135        >
  14136        </action>
  14137                                           
  14138        <action 
  14139         action="re move" 
  14140         relative=" cda:sectio n/cda:entr y"
  14141        >
  14142        </action>                          
  14143                                  
  14144       </ifNull>
  14145                                 
  14146       <mappings>
  14147       
  14148       
  14149                                           
  14150        <mapping>
  14151                                                    
  14152         <property>
  14153          type.code
  14154         </property >
  14155                                                    
  14156         <xpath>
  14157          cda:encoun ter/cda:co de
  14158         </xpath>
  14159                                                    
  14160         <ifNotNull >
  14161                                                              
  14162          <action 
  14163           action="se tAttribute
  14164           attribute= "code" 
  14165          />
  14166                                                              
  14167          <action 
  14168           action="se tAttribute
  14169           attribute= "displayNa me"
  14170                                                                       
  14171           property=" type.name"  
  14172          />
  14173                                                     
  14174         </ifNotNul l>
  14175        
  14176                                            
  14177        </mapping>
  14178       
  14179                                           
  14180        <mapping>
  14181                                                    
  14182         <property>
  14183          type.code| content
  14184         </property >
  14185                                                    
  14186         <xpath>
  14187          cda:encoun ter/cda:co de
  14188         </xpath>
  14189                                                    
  14190         <ifNotNull  />
  14191        
  14192                                                    
  14193         <ifNull>
  14194                                                              
  14195          <action 
  14196           action="se tAttribute
  14197           attribute= "nullFlavo r"
  14198          >
  14199           UNK
  14200          </action>
  14201                                                     
  14202         </ifNull>
  14203                                            
  14204        </mapping>
  14205       
  14206       
  14207                                           
  14208        <!--mappin g>
  14209                                                    <property> stopCode.n ame</prope rty>
  14210                                                    <xpath>cda :encounter /cda:code/ cda:origin alText</xp ath>
  14211                                                    <ifNotNull >
  14212                                                            <a ction acti on="setVal ue" />
  14213                                                    </ifNotNul l>
  14214                                                    <ifNull>
  14215                                                            <a ction acti on="remove " />
  14216                                                    </ifNull>
  14217       
  14218                                           </mappin g-->
  14219                                           
  14220        <mapping>
  14221                                                    
  14222         <property>
  14223          stopCode.n ame
  14224         </property >
  14225                                                    
  14226         <xpath>
  14227          cda:encoun ter/cda:co de/cda:tra nslation/c da:origina lText
  14228         </xpath>
  14229                                                    
  14230         <ifNotNull >
  14231                                                              
  14232          <action 
  14233           action="se tAttribute
  14234           relative=" cda:refere nce"
  14235                                                                       
  14236           attribute= "value" 
  14237           indexed="t rue"
  14238          >
  14239           #endEncoun terDescrip tion
  14240          </action>
  14241                                                     
  14242         </ifNotNul l>
  14243                                                    
  14244         <ifNull>
  14245                                                              
  14246          <action 
  14247           action="se tAttribute
  14248           relative=" cda:refere nce"
  14249                                                                       
  14250           attribute= "value" 
  14251           indexed="t rue"
  14252          >
  14253           #endEncoun terDescrip tion
  14254          </action>
  14255                                                     
  14256         </ifNull>
  14257                                            
  14258        </mapping>
  14259                                           
  14260                                           
  14261        <mapping>
  14262                                                    
  14263         <property>
  14264          stopCode.n ame
  14265         </property >
  14266                                                    
  14267         <xpath>
  14268          cda:encoun ter/cda:co de/cda:ori ginalText
  14269         </xpath>
  14270                                                    
  14271         <ifNotNull >
  14272                                                              
  14273          <action 
  14274           action="se tAttribute
  14275           relative=" cda:refere nce"
  14276                                                                       
  14277           attribute= "value" 
  14278           indexed="t rue"
  14279          >
  14280           #endEncoun terDescrip tion
  14281          </action>
  14282                                                     
  14283         </ifNotNul l>
  14284                                                    
  14285         <ifNull>
  14286                                                              
  14287          <action 
  14288           action="se tAttribute
  14289           relative=" cda:refere nce"
  14290                                                                       
  14291           attribute= "value" 
  14292           indexed="t rue"
  14293          >
  14294           #endEncoun terDescrip tion
  14295          </action>
  14296                                                     
  14297         </ifNull>
  14298                                            
  14299        </mapping>
  14300                                           
  14301                                           
  14302        <mapping>
  14303                                                    
  14304         <property>
  14305          dateTime|r eferenceDa teTime
  14306         </property >
  14307                                                    
  14308         <xpath>
  14309          cda:encoun ter/cda:ef fectiveTim e/cda:low
  14310         </xpath>
  14311                                                    
  14312         <ifNotNull >
  14313                                                              
  14314          <action 
  14315           action="se tAttribute
  14316           attribute= "value" 
  14317          />
  14318                                                     
  14319         </ifNotNul l>
  14320                                            
  14321        </mapping>
  14322       
  14323                                           
  14324        <mapping>
  14325                                                    
  14326         <property>
  14327          primaryPro vider
  14328         </property >
  14329                                                    
  14330         <xpath>
  14331          cda:encoun ter/cda:pe rformer
  14332         </xpath>
  14333                                                    
  14334         <ifNotNull >
  14335                                                              
  14336          <action 
  14337           action="se tValue"
  14338                                                                       
  14339           relative=" cda:assign edEntity/c da:assigne dPerson/cd a:name" 
  14340          />
  14341                                                     
  14342         </ifNotNul l>
  14343                                            
  14344        </mapping>
  14345                                           
  14346        <mapping>
  14347                                                    
  14348         <property>
  14349          signingCli nician.nam e
  14350         </property >
  14351                                                    
  14352         <xpath>
  14353          cda:encoun ter/cda:pe rformer
  14354         </xpath>
  14355                                                    
  14356         <ifNotNull >
  14357                                                              
  14358          <action 
  14359           action="se tValue"
  14360                                                                       
  14361           relative=" cda:assign edEntity/c da:assigne dPerson/cd a:name" 
  14362          />
  14363                                                     
  14364         </ifNotNul l>
  14365                                            
  14366        </mapping>
  14367                                           
  14368        <mapping>
  14369                                                    
  14370         <property>
  14371          primaryPro vider|sign ingClinici an.name
  14372         </property >
  14373                                                    
  14374         <xpath>
  14375          cda:encoun ter/cda:pe rformer
  14376         </xpath>
  14377                                                    
  14378         <ifNotNull  />
  14379                                                    
  14380         <ifNull>
  14381                                                              
  14382          <action 
  14383           action="re move" 
  14384          />
  14385                                                     
  14386         </ifNull>
  14387                                            
  14388        </mapping>
  14389                                           
  14390        <mapping>
  14391                                                    
  14392         <property>
  14393          arrivalDat eTime
  14394         </property >
  14395                                                    
  14396         <xpath>
  14397          cda:encoun ter/cda:pa rticipant/ cda:time/c da:low
  14398         </xpath>
  14399                                                    
  14400         <ifNotNull >
  14401                                                              
  14402          <action 
  14403           action="se tAttribute
  14404           attribute= "value" 
  14405          />
  14406                                                     
  14407         </ifNotNul l>
  14408                                                    
  14409         <ifNull>
  14410                                                              
  14411          <action 
  14412           action="re moveAttrib utes" 
  14413          />
  14414                                                              
  14415          <action 
  14416           action="se tAttribute
  14417           attribute= "nullFlavo r"
  14418          >
  14419           UNK
  14420          </action>
  14421                                                     
  14422         </ifNull>
  14423                                            
  14424        </mapping>
  14425                                           
  14426        <mapping>
  14427                                                    
  14428         <property>
  14429          departureD ateTime
  14430         </property >
  14431                                                    
  14432         <xpath>
  14433          cda:encoun ter/cda:pa rticipant/ cda:time/c da:high
  14434         </xpath>
  14435                                                    
  14436         <ifNotNull >
  14437                                                              
  14438          <action 
  14439           action="se tAttribute
  14440           attribute= "value" 
  14441          />
  14442                                                     
  14443         </ifNotNul l>
  14444                                                    
  14445         <ifNull>
  14446                                                              
  14447          <action 
  14448           action="re moveAttrib utes" 
  14449          />
  14450                                                              
  14451          <action 
  14452           action="se tAttribute
  14453           attribute= "nullFlavo r"
  14454          >
  14455           UNK
  14456          </action>
  14457                                                     
  14458         </ifNull>
  14459                                            
  14460        </mapping>
  14461                                   
  14462                                           
  14463        <mapping>
  14464                                                    
  14465         <property 
  14466          optional=" true"
  14467         >
  14468          reason
  14469         </property >
  14470                                                    
  14471         <xpath>
  14472          cda:encoun ter/cda:en tryRelatio nship/cda: observatio n/cda:text
  14473         </xpath>
  14474                                                    
  14475         <ifNotNull >
  14476                                                              
  14477          <action 
  14478           action="se tAttribute
  14479           relative=" cda:refere nce"
  14480                                                                       
  14481           attribute= "value" 
  14482           indexed="t rue"
  14483          >
  14484           #endReason
  14485          </action>
  14486                                                     
  14487         </ifNotNul l>
  14488                                                    
  14489         <ifNull>
  14490                                                              
  14491          <action 
  14492           action="se tAttribute
  14493           relative=" cda:refere nce"
  14494                                                                       
  14495           attribute= "value" 
  14496           indexed="t rue"
  14497          >
  14498           #endReason
  14499          </action>
  14500                                                     
  14501         </ifNull>
  14502                                            
  14503        </mapping>
  14504          
  14505        <!-- >                    <mappi ng>
  14506                                                    <property  optional=" true">reas on</proper ty>
  14507                                                    <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>
  14508                                                    <ifNotNull >
  14509                                                            <a ction acti on="setAtt ribute" re lative="cd a:referenc e"
  14510                                                                     attr ibute="val ue" indexe d="true"># endProbTyp e</action>
  14511                                                    </ifNotNul l>
  14512                                                    <ifNull>
  14513                                                            <a ction acti on="setAtt ribute" re lative="cd a:referenc e"
  14514                                                                     attr ibute="val ue" indexe d="true"># endProbTyp e</action>
  14515                                                    </ifNull>
  14516                                           </mappin g>
  14517        -->
  14518       
  14519       
  14520       
  14521                                           
  14522        <mapping>
  14523                                                    
  14524         <property 
  14525          optional=" true"
  14526         >
  14527          reason
  14528         </property >
  14529                                                    
  14530         <xpath>
  14531          cda:encoun ter/cda:en tryRelatio nship/cda: act/cda:en tryRelatio nship/cda: observatio n/cda:valu e/cda:orig inalText
  14532         </xpath>
  14533                                                    
  14534         <ifNotNull >
  14535                                                              
  14536          <action 
  14537           action="se tAttribute
  14538           relative=" cda:refere nce"
  14539                                                                       
  14540           attribute= "value" 
  14541           indexed="t rue"
  14542          >
  14543           #endReason
  14544          </action>
  14545                                                     
  14546         </ifNotNul l>
  14547                                                    
  14548         <ifNull>
  14549                                                              
  14550          <action 
  14551           action="se tAttribute
  14552           relative=" cda:refere nce"
  14553                                                                       
  14554           attribute= "value" 
  14555           indexed="t rue"
  14556          >
  14557           #endReason
  14558          </action>
  14559                                                     
  14560         </ifNull>
  14561                                            
  14562        </mapping>
  14563       
  14564       
  14565                                           
  14566        <mapping>
  14567                                                    
  14568         <property 
  14569          optional=" true"
  14570         >
  14571          reason
  14572         </property >
  14573                                                    
  14574         <xpath>
  14575          cda:encoun ter/cda:en tryRelatio nship/cda: act/cda:en tryRelatio nship/cda: observatio n/cda:valu e
  14576         </xpath>
  14577                                                    
  14578         <ifNotNull >
  14579                                                              
  14580          <action 
  14581           action="ev aluateMapp ings"
  14582          />
  14583                                                     
  14584         </ifNotNul l>
  14585                                                    
  14586         <ifNull>
  14587                                                              
  14588          <action 
  14589           action="se tAttribute "  
  14590                                                                       
  14591           attribute= "nullFlavo r" 
  14592          >
  14593           UNK
  14594          </action>
  14595                                                                       
  14596          <action 
  14597           action="re move" 
  14598           relative=" cda:transl ation"
  14599          />
  14600                                                     
  14601         </ifNull>
  14602                                                    
  14603         <mappings>
  14604                                                              
  14605          <mapping>
  14606                                                                        
  14607           <property 
  14608            optional=" true"
  14609           >
  14610            snomedCode
  14611           </property >
  14612                                                                        
  14613           <xpath>
  14614            .
  14615           </xpath>
  14616                                                                        
  14617           <ifNotNull >
  14618                                                                                  
  14619            <action 
  14620             action="se tAttribute
  14621             attribute= "code" 
  14622            />
  14623                                                                         
  14624           </ifNotNul l>
  14625                                                                        
  14626           <ifNull>
  14627                                                                                  
  14628            <action 
  14629             action="se tAttribute
  14630             attribute= "nullFlavo r" 
  14631            >
  14632             UNK
  14633            </action>                                                             
  14634                                                                         
  14635           </ifNull>
  14636                                                               
  14637          </mapping>
  14638                                                              
  14639          <mapping>
  14640                                                                        
  14641           <property 
  14642            optional=" true"
  14643           >
  14644            snomedCode DisplayNam e
  14645           </property >
  14646                                                                        
  14647           <xpath>
  14648            .
  14649           </xpath>
  14650                                                                        
  14651           <ifNotNull >
  14652                                                                                  
  14653            <action 
  14654             action="se tAttribute
  14655             attribute= "displayNa me" 
  14656            />
  14657                                                                         
  14658           </ifNotNul l>
  14659                                                               
  14660          </mapping>                                                   
  14661                                                              
  14662          <mapping>
  14663                                                                        
  14664           <property 
  14665            optional=" true"
  14666           >
  14667            code
  14668           </property >
  14669                                                                        
  14670           <xpath>
  14671            .
  14672           </xpath>
  14673                                                                        
  14674           <ifNotNull >
  14675                                                                                  
  14676            <action 
  14677             action="se tAttribute
  14678             attribute= "code" 
  14679             relative=" cda:transl ation" 
  14680            />
  14681                                                                         
  14682           </ifNotNul l>
  14683                                                               
  14684          </mapping>
  14685                                                              
  14686          <mapping>
  14687                                                                        
  14688           <property 
  14689            optional=" true"
  14690           >
  14691            name
  14692           </property >
  14693                                                                        
  14694           <xpath>
  14695            .
  14696           </xpath>
  14697                                                                        
  14698           <ifNotNull >
  14699                                                                                  
  14700            <action 
  14701             action="se tAttribute
  14702             attribute= "displayNa me" 
  14703             relative=" cda:transl ation" 
  14704            />
  14705                                                                         
  14706           </ifNotNul l>
  14707                                                               
  14708          </mapping>                                                   
  14709                                                     
  14710         </mappings >
  14711                                            
  14712        </mapping>
  14713                                           
  14714                                           
  14715        <mapping 
  14716         equalsProp erty="syst emLkp" 
  14717         equalsValu e=" ICD10  "
  14718        >
  14719                                                    
  14720         <property 
  14721          optional=" true"
  14722         >
  14723          reason
  14724         </property >
  14725                                                    
  14726         <xpath>
  14727          cda:encoun ter/cda:en tryRelatio nship/cda: act/cda:en tryRelatio nship/cda: observatio n/cda:valu e
  14728         </xpath>
  14729                                                    
  14730         <ifNotNull >
  14731                                                              
  14732          <action 
  14733           action="re moveAttrib utes" 
  14734          />
  14735                                                              
  14736          <action 
  14737           action="se tAttribute
  14738           attribute= "codeSyste m"
  14739          >
  14740           2.16.840.1 .113883.6. 3
  14741          </action>
  14742                                                              
  14743          <action 
  14744           action="se tAttribute
  14745           attribute= "codeSyste mName"
  14746          >
  14747           Internatio nal Classi fication o f Diseases  revision  10 (ICD 10 )
  14748          </action>
  14749                                                              
  14750          <action 
  14751           action="se tAttribute
  14752           attribute= "xsi:type"
  14753          >
  14754           CD
  14755          </action>
  14756                                                              
  14757          <action 
  14758           action="re move" 
  14759           relative=" cda:transl ation"
  14760          />
  14761                                                              
  14762          <action 
  14763           action="ev aluateMapp ings"
  14764          />
  14765                                                     
  14766         </ifNotNul l>
  14767                                                    
  14768         <mappings>
  14769                                                              
  14770          <mapping>
  14771                                                                        
  14772           <property 
  14773            optional=" true"
  14774           >
  14775            code
  14776           </property >
  14777                                                                        
  14778           <xpath>
  14779            .
  14780           </xpath>
  14781                                                                        
  14782           <ifNotNull >
  14783                                                                                  
  14784            <action 
  14785             action="se tAttribute
  14786             attribute= "code"
  14787            />
  14788                                                                         
  14789           </ifNotNul l>
  14790                                                               
  14791          </mapping>
  14792                                                     
  14793         </mappings >
  14794                                            
  14795        </mapping>
  14796                                           
  14797                                           
  14798                                           
  14799        <mapping>
  14800                                                    
  14801         <property>
  14802          facility.c ode
  14803         </property >
  14804                                                    
  14805         <xpath>
  14806          cda:encoun ter/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:id
  14807         </xpath>
  14808                                                    
  14809         <ifNotNull >
  14810                                                              
  14811          <action 
  14812           action="se tAttribute
  14813           attribute= "extension
  14814          />
  14815                                                     
  14816         </ifNotNul l>
  14817                                            
  14818        </mapping>
  14819                                           
  14820        <mapping>
  14821                                                    
  14822         <property>
  14823          facility.n ame
  14824         </property >
  14825                                                    
  14826         <xpath>
  14827          cda:encoun ter/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:name
  14828         </xpath>
  14829                                                    
  14830         <ifNotNull >
  14831                                                              
  14832          <action 
  14833           action="se tValue" 
  14834          />
  14835                                                     
  14836         </ifNotNul l>
  14837                                            
  14838        </mapping>
  14839                                  
  14840       </mappings >
  14841                        
  14842      </mapping>
  14843                       
  14844              
  14845      <!--if all ==null the n remove t he entire  component  for encoun ter. -->
  14846              
  14847      <mapping>
  14848                                 
  14849       <property 
  14850        collection ="true" 
  14851        optional=" true"
  14852       >
  14853        visits,dis chargeSumm aries,cons ultnotes,h istoryphys icalnotes, encounterD ocs
  14854       </property >
  14855                                 
  14856       <xpath>
  14857        /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']
  14858       </xpath>
  14859                                 
  14860       <ifNotNull >
  14861                                  
  14862       </ifNotNul l>
  14863                                 
  14864       <ifNull>
  14865                                           
  14866        <action 
  14867         action="re move" 
  14868         relative=" ."
  14869        >
  14870         NI
  14871        </action>
  14872                                  
  14873       </ifNull>
  14874               
  14875      </mapping>                         
  14876                       
  14877                       
  14878      <!-- RESUL TS SECTION  NARRITIVE  -->
  14879                       
  14880                       
  14881      <mapping>
  14882                            
  14883       <property 
  14884        optional=" true"
  14885       >
  14886        microbiolo gyResultsN arrative
  14887       </property >
  14888                            
  14889       <xpath>
  14890        /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']
  14891       </xpath>
  14892                            
  14893       <ifNotNull >
  14894                                  
  14895        <action 
  14896         action="se tValue" 
  14897         relative=" cda:sectio n/cda:text /cda:table [@ID='micr obiologyRu les']/cda: tbody/cda: tr[2]/cda: td" 
  14898        />
  14899                             
  14900       </ifNotNul l>
  14901                        
  14902      </mapping>
  14903              
  14904                       
  14905      <mapping>
  14906                                 
  14907       <property 
  14908        collection ="true"
  14909       >
  14910        microbiolo gy
  14911       </property >
  14912                                 
  14913       <xpath>
  14914        /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']
  14915       </xpath>
  14916                                 
  14917       <ifNotNull >
  14918                                           
  14919        <action 
  14920         action="ev aluateMapp ings"
  14921                                                   
  14922         relative=" cda:sectio n/cda:text /cda:table [@ID='micr obiologyNa rrative']/ cda:tbody"  
  14923        />
  14924                                  
  14925       </ifNotNul l>
  14926                                 
  14927       <ifNull>
  14928                                           
  14929        <action 
  14930         action="re move" 
  14931         relative=" cda:sectio n/cda:text /cda:table [@ID='micr obiologyNa rrative']"  
  14932        />
  14933                                           
  14934        <action 
  14935         action="re move" 
  14936         relative=" cda:sectio n/cda:text /cda:table [@ID='micr obiologyRu les']" 
  14937        />
  14938                                  
  14939       </ifNull>
  14940                                 
  14941       <mappings>
  14942                                           
  14943        <mapping>
  14944                                                    
  14945         <property>
  14946          prettyColl ectedDate
  14947         </property >
  14948                                                    
  14949         <xpath>
  14950          cda:tr[@ID ='microbio logyTest'] /cda:td[1]
  14951         </xpath>
  14952                                                    
  14953         <ifNotNull >
  14954                                                              
  14955          <action 
  14956           action="se tValue" 
  14957          />
  14958                                                     
  14959         </ifNotNul l>
  14960                                            
  14961        </mapping>
  14962                                           
  14963        <mapping>
  14964                                                    
  14965         <property 
  14966          optional=" true"
  14967         >
  14968          documents
  14969         </property >
  14970                                                    
  14971         <xpath>
  14972          cda:tr[@ID ='microbio logyTest'] /cda:td[2] /cda:conte nt
  14973         </xpath>
  14974                                                    
  14975         <ifNotNull >
  14976                                                              
  14977          <action 
  14978           action="se tAttribute
  14979           attribute= "ID" 
  14980           indexed="t rue"
  14981          >
  14982           lndResultT ype
  14983          </action>
  14984                                                              
  14985          <action 
  14986           action="ev aluateMapp ings" 
  14987          />
  14988                                                     
  14989         </ifNotNul l>
  14990                                                    
  14991         <ifNull>
  14992                                                                                
  14993          <action 
  14994           action="ap pendValue"
  14995          >
  14996           No text av ailable.
  14997          </action>
  14998                                                     
  14999         </ifNull>
  15000                                                    
  15001         <mappings>
  15002                                                              
  15003          <mapping>
  15004                                                                        
  15005           <property 
  15006            optional=" true"
  15007           >
  15008            localTitle
  15009           </property >
  15010                                                                        
  15011           <xpath>
  15012            .
  15013           </xpath>
  15014                                                                        
  15015           <ifNotNull >
  15016                                                                                  
  15017            <action 
  15018             action="ap pendValue"  
  15019            />
  15020                                                                         
  15021           </ifNotNul l>
  15022                                                                        
  15023                                                               
  15024          </mapping>
  15025                                                     
  15026         </mappings >
  15027                                            
  15028        </mapping>                                 
  15029                                           
  15030        <mapping>
  15031                                                    
  15032         <property 
  15033          optional=" true"
  15034         >
  15035          facility
  15036         </property >
  15037                                                    
  15038         <xpath>
  15039          cda:tr[@ID ='microbio logyTest'] /cda:td[3] /cda:conte nt
  15040         </xpath>
  15041                                                    
  15042         <ifNotNull >
  15043                                                              
  15044          <action 
  15045           action="se tAttribute
  15046           attribute= "ID" 
  15047           indexed="t rue"
  15048          >
  15049           lndSource
  15050          </action>
  15051                                                              
  15052          <action 
  15053           action="se tValue" 
  15054           property=" facility.n ame" 
  15055          />
  15056                                                     
  15057         </ifNotNul l>
  15058                                                    
  15059         <ifNull>
  15060                                                              
  15061          <action 
  15062           action="se tAttribute
  15063           attribute= "ID" 
  15064           indexed="t rue"
  15065          >
  15066           lndSource
  15067          </action>
  15068                                                     
  15069         </ifNull>
  15070                                            
  15071        </mapping>
  15072       
  15073                                           
  15074        <mapping>
  15075                                                    
  15076         <property 
  15077          optional=" true"
  15078         >
  15079          documents
  15080         </property >
  15081                                                    
  15082         <xpath>
  15083          cda:tr[@ID ='microbio logyTest'] /cda:td[4] /cda:conte nt
  15084         </xpath>
  15085                                                    
  15086         <ifNotNull >
  15087                                                              
  15088          <action 
  15089           action="se tAttribute
  15090           attribute= "ID" 
  15091           indexed="t rue"
  15092          >
  15093           microbiolo gyReport
  15094          </action>
  15095                                                              
  15096          <action 
  15097           action="ev aluateMapp ings" 
  15098          />
  15099                                                     
  15100         </ifNotNul l>
  15101                                                    
  15102         <ifNull>
  15103                                                                                
  15104          <action 
  15105           action="ap pendValue"
  15106          >
  15107           No text av ailable.
  15108          </action>
  15109                                                     
  15110         </ifNull>
  15111                                                    
  15112         <mappings>
  15113                                                              
  15114          <mapping>
  15115                                                                        
  15116           <property 
  15117            optional=" true"
  15118           >
  15119            formattedC ontent
  15120           </property >
  15121                                                                        
  15122           <xpath>
  15123            .
  15124           </xpath>
  15125                                                                        
  15126           <ifNotNull >
  15127                                                                                  
  15128            <action 
  15129             action="ap pendValue"  
  15130            />
  15131                                                                         
  15132           </ifNotNul l>
  15133                                                                        
  15134                                                               
  15135          </mapping>
  15136                                                     
  15137         </mappings >
  15138                                            
  15139        </mapping>
  15140                                           
  15141        <mapping>
  15142                                                    
  15143         <property 
  15144          optional=" true"
  15145         >
  15146          provider.n ame
  15147         </property >
  15148                                                    
  15149         <xpath>
  15150          cda:tr[@ID ='microbio logyTest'] /cda:td[5] /cda:conte nt
  15151         </xpath>
  15152                                                    
  15153         <ifNotNull >
  15154                                                              
  15155          <action 
  15156           action="se tAttribute
  15157           attribute= "ID" 
  15158           indexed="t rue"
  15159          >
  15160           lndProvide r
  15161          </action>
  15162                                                              
  15163          <action 
  15164           action="se tValue" 
  15165          />
  15166                                                     
  15167         </ifNotNul l>
  15168                                                    
  15169         <ifNull>
  15170                                                              
  15171          <action 
  15172           action="se tAttribute
  15173           attribute= "ID" 
  15174           indexed="t rue"
  15175          >
  15176           lndProvide r
  15177          </action>
  15178                                                     
  15179         </ifNull>
  15180                                            
  15181        </mapping>                                                                     
  15182                                           
  15183        <mapping>
  15184                                                    
  15185         <property>
  15186          prettyColl ectedDate
  15187         </property >
  15188                                                    
  15189         <xpath>
  15190          cda:tr[@ID ='microbio logyTest']
  15191         </xpath>
  15192                                                    
  15193         <ifNotNull >
  15194                                                              
  15195          <action 
  15196           action="se tAttribute
  15197           attribute= "ID" 
  15198           indexed="t rue" 
  15199          >
  15200           microbiolo gyTest
  15201          </action>
  15202                                                     
  15203         </ifNotNul l>
  15204                                                    
  15205         <ifNull>
  15206                                                              
  15207          <action 
  15208           action="se tAttribute
  15209           attribute= "ID" 
  15210           indexed="t rue"
  15211          >
  15212           microbiolo gyTest
  15213          </action>
  15214                                                     
  15215         </ifNull>
  15216                                            
  15217        </mapping>
  15218                                  
  15219       </mappings >
  15220                        
  15221      </mapping>
  15222     
  15223                       
  15224      <mapping>
  15225                            
  15226       <property 
  15227        optional=" true"
  15228       >
  15229        chemHemRes ultsNarrat ive
  15230       </property >
  15231                            
  15232       <xpath>
  15233        /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']
  15234       </xpath>
  15235                            
  15236       <ifNotNull >
  15237                                  
  15238        <action 
  15239         action="se tValue" 
  15240         relative=" cda:sectio n/cda:text /cda:table [@ID='labR ules']/cda :tbody/cda :tr[2]/cda :td" 
  15241        />
  15242                             
  15243       </ifNotNul l>
  15244                        
  15245      </mapping>
  15246                       
  15247      <mapping>
  15248                                 
  15249       <property 
  15250        collection ="true"
  15251       >
  15252        labs
  15253       </property >
  15254                                 
  15255       <xpath>
  15256        /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']
  15257       </xpath>
  15258                                 
  15259       <ifNotNull >
  15260                                           
  15261        <action 
  15262         action="ev aluateMapp ings"
  15263                                                   
  15264         relative=" cda:sectio n/cda:text /cda:table [@ID='labN arrative'] /cda:tbody
  15265        />
  15266                                  
  15267       </ifNotNul l>
  15268                                 
  15269       <ifNull>
  15270                                           
  15271        <action 
  15272         action="re move" 
  15273         relative=" cda:sectio n/cda:text /cda:table [@ID='labN arrative']
  15274        />
  15275                                           
  15276        <action 
  15277         action="re move" 
  15278         relative=" cda:sectio n/cda:text /cda:table [@ID='labR ules']" 
  15279        />
  15280                                  
  15281       </ifNull>
  15282                                 
  15283       <mappings>
  15284                                           
  15285        <mapping>
  15286                                                    
  15287         <property>
  15288          prettyColl ectedDate
  15289         </property >
  15290                                                    
  15291         <xpath>
  15292          cda:tr[@ID ='labTest' ]/cda:td[1 ]
  15293         </xpath>
  15294                                                    
  15295         <ifNotNull >
  15296                                                              
  15297          <action 
  15298           action="se tValue" 
  15299          />
  15300                                                     
  15301         </ifNotNul l>
  15302                                            
  15303        </mapping>
  15304                                           
  15305        <mapping>
  15306                                                    
  15307         <property 
  15308          optional=" true"
  15309         >
  15310          facility
  15311         </property >
  15312                                                    
  15313         <xpath>
  15314          cda:tr[@ID ='labTest' ]/cda:td[2 ]/cda:cont ent
  15315         </xpath>
  15316                                                    
  15317         <ifNotNull >
  15318                                                              
  15319          <action 
  15320           action="se tAttribute
  15321           attribute= "ID" 
  15322           indexed="t rue"
  15323          >
  15324           lndSource
  15325          </action>
  15326                                                              
  15327          <action 
  15328           action="se tValue" 
  15329           property=" facility.n ame" 
  15330          />
  15331                                                     
  15332         </ifNotNul l>
  15333                                                    
  15334         <ifNull>
  15335                                                              
  15336          <action 
  15337           action="se tAttribute
  15338           attribute= "ID" 
  15339           indexed="t rue"
  15340          >
  15341           lndSource
  15342          </action>
  15343                                                     
  15344         </ifNull>
  15345                                            
  15346        </mapping>                                 
  15347                                           
  15348        <mapping>
  15349                                                    
  15350         <property>
  15351          order.name
  15352         </property >
  15353                                                    
  15354         <xpath>
  15355          cda:tr[@ID ='labTest' ]/cda:td[3 ]/cda:cont ent
  15356         </xpath>
  15357                                                    
  15358         <ifNotNull >
  15359                                                              
  15360          <action 
  15361           action="se tAttribute
  15362           attribute= "ID" 
  15363           indexed="t rue"
  15364          >
  15365           lndResultT ype
  15366          </action>
  15367                                                              
  15368          <action 
  15369           action="se tValue" 
  15370          />
  15371                                                     
  15372         </ifNotNul l>
  15373                                            
  15374        </mapping>
  15375                         
  15376        <mapping>
  15377                                                    
  15378         <property 
  15379          optional=" true"
  15380         >
  15381          specimen.n ame
  15382         </property >
  15383                                                    
  15384         <xpath>
  15385          cda:tr[@ID ='labTest' ]/cda:td[7 ]/cda:cont ent
  15386         </xpath>
  15387                                                    
  15388         <ifNotNull >
  15389                                                              
  15390          <action 
  15391           action="se tAttribute
  15392           attribute= "ID" 
  15393           indexed="t rue" 
  15394           passIndexT oChild="va lues"
  15395          >
  15396           lndComment
  15397          </action>
  15398                                                              
  15399          <action 
  15400           action="se tValue"
  15401          >
  15402           Specimen T ype: 
  15403          </action>
  15404                                    
  15405          <action 
  15406           action="ap pendValue"  
  15407           property=" specimen.n ame" 
  15408          />
  15409                                                              
  15410          <action 
  15411           action="ap pendValue"
  15412          >
  15413           &#xa;
  15414          </action>
  15415                                                     
  15416         </ifNotNul l>
  15417                                                    
  15418         <ifNull>
  15419                                                              
  15420          <action 
  15421           action="se tAttribute
  15422           attribute= "ID" 
  15423           indexed="t rue" 
  15424           passIndexT oChild="va lues"
  15425          >
  15426           lndComment
  15427          </action>
  15428                                    
  15429          <action 
  15430           action="se tValue"
  15431          >
  15432           Specimen T ype: Not A vailable&# xa;
  15433          </action>
  15434                                                     
  15435         </ifNull>
  15436                                            
  15437        </mapping>
  15438                                           
  15439        <mapping>
  15440                                                    
  15441         <property 
  15442          optional=" true"
  15443         >
  15444          comment
  15445         </property >
  15446                                                    
  15447         <xpath>
  15448          cda:tr[@ID ='labTest' ]/cda:td[7 ]/cda:cont ent
  15449         </xpath>
  15450                                                    
  15451         <ifNotNull >
  15452                                                              
  15453          <action 
  15454           action="se tAttribute
  15455           attribute= "ID" 
  15456           indexed="t rue" 
  15457           passIndexT oChild="va lues"
  15458          >
  15459           lndComment
  15460          </action>
  15461                                    
  15462          <action 
  15463           action="ap pendValue"
  15464          >
  15465           Comment: 
  15466          </action>
  15467                                                              
  15468          <action 
  15469           action="ap pendValue"  
  15470           property=" comment" 
  15471          />
  15472                                                     
  15473         </ifNotNul l>
  15474                                                    
  15475         <ifNull>
  15476                                                              
  15477          <action 
  15478           action="se tAttribute
  15479           attribute= "ID" 
  15480           indexed="t rue" 
  15481           passIndexT oChild="va lues"
  15482          >
  15483           lndComment
  15484          </action>
  15485                                    
  15486          <action 
  15487           action="ap pendValue"
  15488          >
  15489           No comment  entered.
  15490          </action>
  15491                                                     
  15492         </ifNull>
  15493                                            
  15494        </mapping>
  15495                                           
  15496                                           
  15497                                           
  15498        <mapping>
  15499                                                    
  15500         <property>
  15501          prettyColl ectedDate
  15502         </property >
  15503                                                    
  15504         <xpath>
  15505          cda:tr[@ID ='labTest' ]
  15506         </xpath>
  15507                                                    
  15508         <ifNotNull >
  15509                                                              
  15510          <action 
  15511           action="se tAttribute
  15512           attribute= "ID" 
  15513           indexed="t rue" 
  15514          >
  15515           labTest
  15516          </action>
  15517                                                     
  15518         </ifNotNul l>
  15519                                                    
  15520         <ifNull>
  15521                                                              
  15522          <action 
  15523           action="se tAttribute
  15524           attribute= "ID" 
  15525           indexed="t rue"
  15526          >
  15527           labTest
  15528          </action>
  15529                                                     
  15530         </ifNull>
  15531                                            
  15532        </mapping>
  15533       
  15534                                           
  15535        <mapping>
  15536                                                    
  15537         <property>
  15538          values
  15539         </property >
  15540                                                    
  15541         <xpath>
  15542          cda:tr[@ID ='labValue s']
  15543         </xpath>
  15544                                                    
  15545         <ifNotNull >
  15546                                                              
  15547          <action 
  15548           action="re moveAttrib utes" 
  15549          >
  15550          </action>
  15551                                                              
  15552          <action 
  15553           action="ev aluateMapp ings" 
  15554          />
  15555                                                              
  15556                                                     
  15557         </ifNotNul l>
  15558                                                    
  15559         <ifNull>
  15560                                                              
  15561          <action 
  15562           action="re moveAttrib utes" 
  15563          >
  15564          </action>
  15565                                                     
  15566         </ifNull>
  15567                                                    
  15568         <mappings>
  15569                                                              
  15570          <mapping>
  15571                                                                        
  15572           <property 
  15573            optional=" true"
  15574           >
  15575            test
  15576           </property >
  15577                                                                        
  15578           <xpath>
  15579            cda:td[3]/ cda:conten t
  15580           </xpath>
  15581                                                                        
  15582           <ifNotNull >
  15583                                                                                  
  15584            <action 
  15585             action="ap pendAttrib ute" 
  15586             attribute= "ID" 
  15587             indexed="t rue"
  15588            >
  15589             loincLabVa lues
  15590            </action>
  15591                                                                                  
  15592            <action 
  15593             action="se tValue" 
  15594            />
  15595                                                                         
  15596           </ifNotNul l>
  15597                                                                        
  15598           <ifNull>
  15599                                                                                  
  15600            <action 
  15601             action="ap pendAttrib ute" 
  15602             attribute= "ID" 
  15603             indexed="t rue"
  15604            >
  15605             loincLabVa lues
  15606            </action>
  15607                                                                                  
  15608            <action 
  15609             action="se tValue" 
  15610             property=" loincDispl ay" 
  15611            />
  15612                                                                         
  15613           </ifNull>
  15614                                                               
  15615          </mapping>
  15616                                                              
  15617          <mapping>
  15618                                                                        
  15619           <property>
  15620            result
  15621           </property >
  15622                                                                        
  15623           <xpath>
  15624            cda:td[4]/ cda:conten t
  15625           </xpath>
  15626                                                                        
  15627           <ifNotNull >
  15628                                                                                  
  15629            <action 
  15630             action="ap pendAttrib ute" 
  15631             attribute= "ID" 
  15632             indexed="t rue"
  15633            >
  15634             resultLabV alues
  15635            </action>
  15636                                                                                  
  15637            <action 
  15638             action="se tValue" 
  15639            />
  15640                                                                                  
  15641            <action 
  15642             action="ap pendValue"
  15643            >
  15644             &#160;&#16 0;&#160;&# 160;&#160;
  15645            </action>
  15646                                                                                  
  15647            <action 
  15648             action="ap pendValue"  
  15649             property=" units" 
  15650            />
  15651                                                                         
  15652           </ifNotNul l>
  15653                                                               
  15654          </mapping>
  15655                                                              
  15656          <mapping>
  15657                                                                        
  15658           <property 
  15659            optional=" true"
  15660           >
  15661            interpreta tion
  15662           </property >
  15663                                                                        
  15664           <xpath>
  15665            cda:td[5]/ cda:conten t
  15666           </xpath>
  15667                                                                        
  15668           <ifNotNull >
  15669                                                                                  
  15670            <action 
  15671             action="ap pendAttrib ute" 
  15672             attribute= "ID" 
  15673             indexed="t rue"
  15674            >
  15675             interpLabV alues
  15676            </action>
  15677                                                                                  
  15678            <action 
  15679             action="se tValue" 
  15680            />
  15681                                                                         
  15682           </ifNotNul l>
  15683                                                                        
  15684           <ifNull>
  15685                                                                                  
  15686            <action 
  15687             action="ap pendAttrib ute" 
  15688             attribute= "ID" 
  15689             indexed="t rue"
  15690            >
  15691             interpLabV alues
  15692            </action>
  15693                                                                         
  15694           </ifNull>
  15695                                                               
  15696          </mapping>
  15697                                                              
  15698          <mapping>
  15699                                                                        
  15700           <property 
  15701            optional=" true"
  15702           >
  15703            range
  15704           </property >
  15705                                                                        
  15706           <xpath>
  15707            cda:td[6]/ cda:conten t
  15708           </xpath>
  15709                                                                        
  15710           <ifNotNull >
  15711                                                                                  
  15712            <action 
  15713             action="ap pendAttrib ute" 
  15714             attribute= "ID" 
  15715             indexed="t rue"
  15716            >
  15717             rangeLabVa lues
  15718            </action>
  15719                                                                                  
  15720            <action 
  15721             action="se tValue" 
  15722            />
  15723                                                                         
  15724           </ifNotNul l>
  15725                                                                        
  15726           <ifNull>
  15727                                                                                  
  15728            <action 
  15729             action="ap pendAttrib ute" 
  15730             attribute= "ID" 
  15731             indexed="t rue"
  15732            >
  15733             rangeLabVa lues
  15734            </action>
  15735                                                                         
  15736           </ifNull>
  15737                                                               
  15738          </mapping>
  15739                                                     
  15740         </mappings >
  15741                                            
  15742        </mapping>
  15743                                  
  15744       </mappings >
  15745                        
  15746      </mapping>
  15747     
  15748     
  15749                       
  15750      <!-- Radio logy Narra tive Secti on -->
  15751                       
  15752      <mapping>
  15753                            
  15754       <property 
  15755        optional=" true"
  15756       >
  15757        radiologyR esultsNarr ative
  15758       </property >
  15759                            
  15760       <xpath>
  15761        /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']
  15762       </xpath>
  15763                            
  15764       <ifNotNull >
  15765                                  
  15766        <action 
  15767         action="se tValue" 
  15768         relative=" cda:sectio n/cda:text /cda:table [@ID='radi ologyRules ']/cda:tbo dy/cda:tr[ 2]/cda:td"  
  15769        />
  15770                             
  15771       </ifNotNul l>
  15772                        
  15773      </mapping>
  15774                       
  15775      <mapping>
  15776                                 
  15777       <property 
  15778        collection ="true"
  15779       >
  15780        radiologie s
  15781       </property >
  15782                                 
  15783       <xpath>
  15784        /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']
  15785       </xpath>
  15786                                 
  15787       <ifNotNull >
  15788                                           
  15789        <action 
  15790         action="ev aluateMapp ings"
  15791                                                   
  15792         relative=" cda:sectio n/cda:text /cda:table [@ID='radi ologyNarra tive']/cda :tbody/cda :tr" 
  15793        />
  15794                                  
  15795       </ifNotNul l>
  15796                                 
  15797       <ifNull>
  15798                                           
  15799        <action 
  15800         action="re move" 
  15801         relative=" cda:sectio n/cda:text /cda:table [@ID='radi ologyNarra tive']" 
  15802        />
  15803                                           
  15804        <action 
  15805         action="re move" 
  15806         relative=" cda:sectio n/cda:text /cda:table [@ID='radi ologyRules ']" 
  15807        />
  15808                                  
  15809       </ifNull>
  15810                                 
  15811       <mappings>
  15812                                           
  15813        <mapping>
  15814                                                    
  15815         <property>
  15816          prettyRefe renceDateT ime
  15817         </property >
  15818                                                    
  15819         <xpath>
  15820          cda:td[1]
  15821         </xpath>
  15822                                                    
  15823         <ifNotNull >
  15824                                                              
  15825          <action 
  15826           action="se tValue" 
  15827          />
  15828                                                     
  15829         </ifNotNul l>
  15830                                            
  15831        </mapping>
  15832                                           
  15833        <mapping>
  15834                                                    
  15835         <property>
  15836          localTitle
  15837         </property >
  15838                                                    
  15839         <xpath>
  15840          cda:td[2]/ cda:conten t
  15841         </xpath>
  15842                                                    
  15843         <ifNotNull >
  15844                                                              
  15845          <action 
  15846           action="se tAttribute
  15847           attribute= "ID" 
  15848           indexed="t rue"
  15849          >
  15850           lndResultT ype
  15851          </action>
  15852                                                              
  15853          <action 
  15854           action="se tValue" 
  15855          />
  15856                                                     
  15857         </ifNotNul l>
  15858                                            
  15859        </mapping>
  15860                                           
  15861        <mapping>
  15862                                                    
  15863         <property 
  15864          optional=" true"
  15865         >
  15866          facility
  15867         </property >
  15868                                                    
  15869         <xpath>
  15870          cda:td[3]/ cda:conten t
  15871         </xpath>
  15872                                                    
  15873         <ifNotNull >
  15874                                                              
  15875          <action 
  15876           action="se tAttribute
  15877           attribute= "ID" 
  15878           indexed="t rue"
  15879          >
  15880           lndSource
  15881          </action>
  15882                                                              
  15883          <action 
  15884           action="se tValue" 
  15885           property=" facility.n ame" 
  15886          />
  15887                                                     
  15888         </ifNotNul l>
  15889                                                    
  15890         <ifNull>
  15891                                                              
  15892          <action 
  15893           action="se tAttribute
  15894           attribute= "ID" 
  15895           indexed="t rue"
  15896          >
  15897           lndSource
  15898          </action>
  15899                                                     
  15900         </ifNull>
  15901                                            
  15902        </mapping>
  15903                                           
  15904        <mapping>
  15905                                                    
  15906         <property 
  15907          optional=" true"
  15908         >
  15909          content
  15910         </property >
  15911                                                    
  15912         <xpath>
  15913          cda:td[4]/ cda:conten t
  15914         </xpath>
  15915                                                    
  15916         <ifNotNull >
  15917                                                              
  15918          <action 
  15919           action="se tAttribute
  15920           attribute= "ID" 
  15921           indexed="t rue"
  15922          >
  15923           lndComment
  15924          </action>
  15925                                                              
  15926          <action 
  15927           action="se tValue" 
  15928          />
  15929                                                     
  15930         </ifNotNul l>
  15931                                                    
  15932         <ifNull>
  15933                                                              
  15934          <action 
  15935           action="se tAttribute
  15936           attribute= "ID" 
  15937           indexed="t rue"
  15938          >
  15939           lndComment
  15940          </action>
  15941                                                     
  15942         </ifNull>
  15943                                            
  15944        </mapping>
  15945                                           
  15946        <mapping>
  15947                                                    
  15948         <property 
  15949          optional=" true"
  15950         >
  15951          signingCli nician
  15952         </property >
  15953                                                    
  15954         <xpath>
  15955          cda:td[5]/ cda:conten t
  15956         </xpath>
  15957                                                    
  15958         <ifNotNull >
  15959                                                              
  15960          <action 
  15961           action="se tAttribute
  15962           attribute= "ID" 
  15963           indexed="t rue"
  15964          >
  15965           lndProvide r
  15966          </action>
  15967                                                              
  15968          <action 
  15969           action="se tValue" 
  15970           property=" signingCli nician.nam e" 
  15971          />
  15972                                                     
  15973         </ifNotNul l>
  15974                                                    
  15975         <ifNull>
  15976                                                              
  15977          <action 
  15978           action="se tAttribute
  15979           attribute= "ID" 
  15980           indexed="t rue"
  15981          >
  15982           lndProvide r
  15983          </action>
  15984                                                     
  15985         </ifNull>
  15986                                            
  15987        </mapping>
  15988                                  
  15989       </mappings >
  15990                        
  15991      </mapping>
  15992     
  15993                       
  15994      <mapping>
  15995                            
  15996       <property 
  15997        optional=" true"
  15998       >
  15999        pathologyR esultsNarr ative
  16000       </property >
  16001                            
  16002       <xpath>
  16003        /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']
  16004       </xpath>
  16005                            
  16006       <ifNotNull >
  16007                                  
  16008        <action 
  16009         action="se tValue" 
  16010         relative=" cda:sectio n/cda:text /cda:table [@ID='path ologyRules ']/cda:tbo dy/cda:tr[ 2]/cda:td"  
  16011        />
  16012                             
  16013       </ifNotNul l>
  16014                        
  16015      </mapping>
  16016                       
  16017                       
  16018      <mapping>
  16019                                 
  16020       <property 
  16021        collection ="true"
  16022       >
  16023        pathologie s
  16024       </property >
  16025                                 
  16026       <xpath>
  16027        /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']
  16028       </xpath>
  16029                                 
  16030       <ifNotNull >
  16031                                           
  16032        <action 
  16033         action="ev aluateMapp ings"
  16034                                                   
  16035         relative=" cda:sectio n/cda:text /cda:table [@ID='path ologyNarra tive']/cda :tbody/cda :tr" 
  16036        />
  16037                                  
  16038       </ifNotNul l>
  16039                                 
  16040       <ifNull>
  16041                                           
  16042        <action 
  16043         action="re move" 
  16044         relative=" cda:sectio n/cda:text /cda:table [@ID='path ologyNarra tive']" 
  16045        />
  16046                                           
  16047        <action 
  16048         action="re move" 
  16049         relative=" cda:sectio n/cda:text /cda:table [@ID='path ologyRules ']" 
  16050        />
  16051                                  
  16052       </ifNull>
  16053                                 
  16054       <mappings>
  16055                                           
  16056        <mapping>
  16057                                                    
  16058         <property>
  16059          prettyRefe renceDateT ime
  16060         </property >
  16061                                                    
  16062         <xpath>
  16063          cda:td[1]
  16064         </xpath>
  16065                                                    
  16066         <ifNotNull >
  16067                                                              
  16068          <action 
  16069           action="se tValue" 
  16070          />
  16071                                                     
  16072         </ifNotNul l>
  16073                                            
  16074        </mapping>
  16075                                           
  16076        <mapping>
  16077                                                    
  16078         <property>
  16079          localTitle
  16080         </property >
  16081                                                    
  16082         <xpath>
  16083          cda:td[2]/ cda:conten t
  16084         </xpath>
  16085                                                    
  16086         <ifNotNull >
  16087                                                              
  16088          <action 
  16089           action="se tAttribute
  16090           attribute= "ID" 
  16091           indexed="t rue"
  16092          >
  16093           lndResultT ype
  16094          </action>
  16095                                                              
  16096          <action 
  16097           action="se tValue" 
  16098          />
  16099                                                     
  16100         </ifNotNul l>
  16101                                            
  16102        </mapping>
  16103                                           
  16104        <mapping>
  16105                                                    
  16106         <property 
  16107          optional=" true"
  16108         >
  16109          facility
  16110         </property >
  16111                                                    
  16112         <xpath>
  16113          cda:td[3]/ cda:conten t
  16114         </xpath>
  16115                                                    
  16116         <ifNotNull >
  16117                                                              
  16118          <action 
  16119           action="se tAttribute
  16120           attribute= "ID" 
  16121           indexed="t rue"
  16122          >
  16123           lndSource
  16124          </action>
  16125                                                              
  16126          <action 
  16127           action="se tValue" 
  16128           property=" facility.n ame" 
  16129          />
  16130                                                     
  16131         </ifNotNul l>
  16132                                                    
  16133         <ifNull>
  16134                                                              
  16135          <action 
  16136           action="se tAttribute
  16137           attribute= "ID" 
  16138           indexed="t rue"
  16139          >
  16140           lndSource
  16141          </action>
  16142                                                     
  16143         </ifNull>
  16144                                            
  16145        </mapping>
  16146                                           
  16147        <mapping>
  16148                                                    
  16149         <property 
  16150          optional=" true"
  16151         >
  16152          content
  16153         </property >
  16154                                                    
  16155         <xpath>
  16156          cda:td[4]/ cda:conten t
  16157         </xpath>
  16158                                                    
  16159         <ifNotNull >
  16160                                                              
  16161          <action 
  16162           action="se tAttribute
  16163           attribute= "ID" 
  16164           indexed="t rue"
  16165          >
  16166           lndComment
  16167          </action>
  16168                                                              
  16169          <action 
  16170           action="se tValue" 
  16171          />
  16172                                                     
  16173         </ifNotNul l>
  16174                                                    
  16175         <ifNull>
  16176                                                              
  16177          <action 
  16178           action="se tAttribute
  16179           attribute= "ID" 
  16180           indexed="t rue"
  16181          >
  16182           lndComment
  16183          </action>
  16184                                                     
  16185         </ifNull>
  16186                                            
  16187        </mapping>
  16188                                           
  16189        <mapping>
  16190                                                    
  16191         <property 
  16192          optional=" true"
  16193         >
  16194          signingCli nician
  16195         </property >
  16196                                                    
  16197         <xpath>
  16198          cda:td[5]/ cda:conten t
  16199         </xpath>
  16200                                                    
  16201         <ifNotNull >
  16202                                                              
  16203          <action 
  16204           action="se tAttribute
  16205           attribute= "ID" 
  16206           indexed="t rue"
  16207          >
  16208           lndProvide r
  16209          </action>
  16210                                                              
  16211          <action 
  16212           action="se tValue" 
  16213           property=" signingCli nician.nam e" 
  16214          />
  16215                                                     
  16216         </ifNotNul l>
  16217                                                    
  16218         <ifNull>
  16219                                                              
  16220          <action 
  16221           action="se tAttribute
  16222           attribute= "ID" 
  16223           indexed="t rue"
  16224          >
  16225           lndProvide r
  16226          </action>
  16227                                                     
  16228         </ifNull>
  16229                                            
  16230        </mapping>
  16231                                  
  16232       </mappings >
  16233                        
  16234      </mapping>
  16235     
  16236                       
  16237      <!-- LABS  SECTION -- >
  16238                       
  16239      <mapping>
  16240                                 
  16241       <property 
  16242        collection ="true"
  16243       >
  16244        labs,radio logies,pat hologies,m icrobiolog y
  16245       </property >
  16246                                 
  16247       <xpath>
  16248        /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']
  16249                                  
  16250       </xpath>
  16251                                 
  16252       <ifNotNull >
  16253                                           
  16254        <action 
  16255         action="ev aluateMapp ings" 
  16256         relative=" cda:sectio n/cda:entr y[@typeCod e='DRIV']"  
  16257        />
  16258                                  
  16259       </ifNotNul l>
  16260                                 
  16261       <ifNull>
  16262                                           
  16263        <action 
  16264         action="re move" 
  16265         relative=" cda:sectio n/cda:entr y"
  16266        >
  16267         NI
  16268        </action>
  16269                                           
  16270        <action 
  16271         action="se tValue" 
  16272         relative=" cda:sectio n/cda:text "
  16273        >
  16274         No Data Pr ovided for  This
  16275                                                     Section
  16276                                            
  16277        </action>
  16278                                           
  16279        <action 
  16280         action="se tAttribute
  16281         relative=" cda:sectio n" 
  16282         attribute= "nullFlavo r"
  16283        >
  16284         NI
  16285        </action>
  16286                                  
  16287       </ifNull>
  16288                                 
  16289       <mappings>
  16290                                           
  16291        <mapping>
  16292                                                    
  16293         <property>
  16294          id
  16295         </property >
  16296                                                    
  16297         <xpath>
  16298          cda:organi zer/cda:id
  16299         </xpath>
  16300                                                    
  16301         <ifNotNull >
  16302                                                              
  16303          <action 
  16304           action="se tAttribute
  16305           attribute= "extension
  16306           property=" facility.c ode" 
  16307          />
  16308                                                              
  16309          <action 
  16310           action="ap pendAttrib ute" 
  16311           attribute= "extension "
  16312          >
  16313           ;
  16314          </action>
  16315                                                              
  16316          <action 
  16317           action="ap pendAttrib ute" 
  16318           attribute= "extension "
  16319                                                                       
  16320           property=" id" 
  16321          />
  16322                                                     
  16323         </ifNotNul l>
  16324                                                    
  16325         <ifNull>
  16326                                                              
  16327          <action 
  16328           action="se tAttribute
  16329           attribute= "nullFlavo r"
  16330          >
  16331           UNK
  16332          </action>
  16333                                                     
  16334         </ifNull>
  16335                                            
  16336        </mapping>
  16337                                           
  16338        <mapping>
  16339                                                    
  16340         <property>
  16341          order.name |localTitl e|type
  16342         </property >
  16343                                                    
  16344         <xpath>
  16345          cda:organi zer/cda:co de/cda:ori ginalText
  16346         </xpath>
  16347                                                    
  16348         <ifNotNull >
  16349                                                              
  16350          <action 
  16351           action="se tValue" 
  16352          />
  16353                                                     
  16354         </ifNotNul l>
  16355                                                    
  16356         <ifNull>
  16357                                                                
  16358          <action 
  16359           action="re move" 
  16360          /> 
  16361                                                     
  16362         </ifNull>
  16363                                            
  16364        </mapping>
  16365                                           
  16366        <mapping>
  16367                                                    
  16368         <property>
  16369          order.name |localTitl e|type
  16370         </property >
  16371                                                    
  16372         <xpath>
  16373          cda:organi zer/cda:co de/cda:tra nslation/c da:origina lText
  16374         </xpath>
  16375                                                    
  16376         <ifNotNull >
  16377                                                              
  16378          <action 
  16379           action="se tValue" 
  16380          />
  16381                                                     
  16382         </ifNotNul l>
  16383                                                    
  16384         <ifNull>
  16385                                                              
  16386          <action 
  16387           action="se tAttribute
  16388           relative=" .." 
  16389           attribute= "nullFlavo r"
  16390          >
  16391           UNK
  16392                                                               
  16393          </action>
  16394                                                              
  16395          <!--  <act ion action ="remove"  /> -->
  16396                                                     
  16397         </ifNull>
  16398                                            
  16399        </mapping>
  16400                
  16401        <mapping>
  16402                          
  16403         <property 
  16404          collection ="true" 
  16405          merge="tru e"
  16406         >
  16407          documents
  16408         </property >
  16409                          
  16410         <xpath>
  16411          cda:organi zer/cda:co de/cda:tra nslation/c da:origina lText
  16412         </xpath>
  16413                          
  16414         <ifNotNull >
  16415                                    
  16416          <action 
  16417           action="ev aluateMapp ings" 
  16418          />
  16419                           
  16420         </ifNotNul l>
  16421                          
  16422         <mappings>
  16423                                    
  16424          <mapping>
  16425                                              
  16426           <property>
  16427            localTitle
  16428           </property >
  16429                                              
  16430           <xpath>
  16431            .
  16432           </xpath>
  16433                                              
  16434           <ifNotNull >
  16435                                                       
  16436            <action 
  16437             action="se tValue" 
  16438            />
  16439                                               
  16440           </ifNotNul l>
  16441                                     
  16442          </mapping>
  16443                           
  16444         </mappings >
  16445                 
  16446        </mapping>
  16447                
  16448                
  16449                         
  16450        <mapping>
  16451                          
  16452         <property 
  16453          collection ="true" 
  16454          merge="tru e"
  16455         >
  16456          documents
  16457         </property >
  16458                          
  16459         <xpath>
  16460          cda:organi zer/cda:co de/cda:ori ginalText
  16461         </xpath>
  16462                          
  16463         <ifNotNull >
  16464                                    
  16465          <action 
  16466           action="ev aluateMapp ings" 
  16467          />
  16468                           
  16469         </ifNotNul l>
  16470                          
  16471         <mappings>
  16472                                    
  16473          <mapping>
  16474                                              
  16475           <property>
  16476            localTitle
  16477           </property >
  16478                                              
  16479           <xpath>
  16480            .
  16481           </xpath>
  16482                                              
  16483           <ifNotNull >
  16484                                                       
  16485            <action 
  16486             action="se tValue" 
  16487            />
  16488                                               
  16489           </ifNotNul l>
  16490                                     
  16491          </mapping>
  16492                           
  16493         </mappings >
  16494                 
  16495        </mapping>
  16496                                  
  16497                                  
  16498                                           
  16499        <mapping 
  16500         equalsProp erty="type
  16501         equalsValu e="CY"
  16502        >
  16503                                                    
  16504         <property>
  16505          type
  16506         </property >
  16507                                                    
  16508         <xpath>
  16509          cda:organi zer/cda:co de/cda:tra nslation/c da:origina lText
  16510         </xpath>
  16511                                                    
  16512         <ifNotNull >
  16513                                                              
  16514          <action 
  16515           action="se tValue"
  16516          >
  16517           Cytology R eport
  16518          </action>
  16519                                                     
  16520         </ifNotNul l>
  16521                                            
  16522        </mapping>
  16523                                           
  16524                                           
  16525        <mapping 
  16526         equalsProp erty="type
  16527         equalsValu e="EM"
  16528        >
  16529                                                    
  16530         <property>
  16531          type
  16532         </property >
  16533                                                    
  16534         <xpath>
  16535          cda:organi zer/cda:co de/cda:tra nslation/c da:origina lText
  16536         </xpath>
  16537                                                    
  16538         <ifNotNull >
  16539                                                              
  16540          <action 
  16541           action="se tValue"
  16542          >
  16543           Electron M icroscopy  Report
  16544          </action>
  16545                                                     
  16546         </ifNotNul l>
  16547                                            
  16548        </mapping>
  16549                                           
  16550                                           
  16551        <mapping 
  16552         equalsProp erty="type
  16553         equalsValu e="CY"
  16554        >
  16555                                                    
  16556         <property>
  16557          type
  16558         </property >
  16559                                                    
  16560         <xpath>
  16561          cda:organi zer/cda:co de/cda:ori ginalText
  16562         </xpath>
  16563                                                    
  16564         <ifNotNull >
  16565                                                              
  16566          <action 
  16567           action="se tValue"
  16568          >
  16569           Cytology R eport
  16570          </action>
  16571                                                     
  16572         </ifNotNul l>
  16573                                            
  16574        </mapping>
  16575                                           
  16576                                           
  16577        <mapping 
  16578         equalsProp erty="type
  16579         equalsValu e="EM"
  16580        >
  16581                                                    
  16582         <property>
  16583          type
  16584         </property >
  16585                                                    
  16586         <xpath>
  16587          cda:organi zer/cda:co de/cda:ori ginalText
  16588         </xpath>
  16589                                                    
  16590         <ifNotNull >
  16591                                                              
  16592          <action 
  16593           action="se tValue"
  16594          >
  16595           Electron M icroscopy  Report
  16596          </action>
  16597                                                     
  16598         </ifNotNul l>
  16599                                            
  16600        </mapping>
  16601                                           
  16602                                           
  16603        <mapping 
  16604         equalsProp erty="cate gory" 
  16605         equalsValu e="RA"
  16606        >
  16607                                                    
  16608         <property>
  16609          category
  16610         </property >
  16611                                                    
  16612         <xpath>
  16613          cda:organi zer/cda:co de/cda:tra nslation
  16614         </xpath>
  16615                                                    
  16616         <ifNotNull >
  16617                                                              
  16618          <action 
  16619           action="se tAttribute
  16620           attribute= "code"
  16621          >
  16622           18726-0
  16623          </action>
  16624                                                              
  16625          <action 
  16626           action="se tAttribute
  16627           attribute= "codeSyste m"
  16628          >
  16629           2.16.840.1 .113883.6. 1
  16630          </action>
  16631                                                              
  16632          <action 
  16633           action="se tAttribute
  16634           attribute= "codeSyste mName"
  16635          >
  16636           LOINC
  16637          </action>
  16638                                                              
  16639          <action 
  16640           action="se tAttribute
  16641           attribute= "displayNa me"
  16642          >
  16643           Radiology  Studies
  16644          </action>
  16645                                                     
  16646         </ifNotNul l>
  16647                                            
  16648        </mapping>
  16649                                           
  16650        <mapping 
  16651         equalsProp erty="cate gory" 
  16652         equalsValu e="RA"
  16653        >
  16654                                                    
  16655         <property>
  16656          category
  16657         </property >
  16658                                                    
  16659         <xpath>
  16660          cda:organi zer/cda:co mponent/cd a:observat ion/cda:co de/cda:tra nslation
  16661         </xpath>
  16662                                                    
  16663         <ifNotNull >
  16664                                                              
  16665          <action 
  16666           action="re moveAttrib utes" 
  16667           relative=" .." 
  16668          >
  16669          </action>
  16670                                                              
  16671          <action 
  16672           action="se tAttribute
  16673           attribute= "nullFlavo r" 
  16674           relative=" .." 
  16675          >
  16676           UNK
  16677          </action>
  16678                                                              
  16679          <action 
  16680           action="se tAttribute
  16681           attribute= "code"
  16682          >
  16683           18726-0
  16684          </action>
  16685                                                              
  16686          <action 
  16687           action="se tAttribute
  16688           attribute= "codeSyste m"
  16689          >
  16690           2.16.840.1 .113883.6. 1
  16691          </action>
  16692                                                              
  16693          <action 
  16694           action="se tAttribute
  16695           attribute= "codeSyste mName"
  16696          >
  16697           LOINC
  16698          </action>
  16699                                                              
  16700          <action 
  16701           action="se tAttribute
  16702           attribute= "displayNa me"
  16703          >
  16704           Radiology  Studies
  16705          </action>
  16706                                                     
  16707         </ifNotNul l>
  16708                                            
  16709        </mapping>
  16710                                           
  16711        <mapping 
  16712         equalsProp erty="docu mentClass"  
  16713         equalsValu e="LR LABO RATORY REP ORTS"
  16714        >
  16715                                                    
  16716         <property 
  16717          optional=" true"
  16718         >
  16719          documentCl ass
  16720         </property >
  16721                                                    
  16722         <xpath>
  16723          cda:organi zer/cda:co de/cda:tra nslation
  16724         </xpath>
  16725                                                    
  16726         <ifNotNull >
  16727                                                              
  16728          <action 
  16729           action="se tAttribute
  16730           attribute= "code"
  16731          >
  16732           27898-6
  16733          </action>
  16734                                                              
  16735          <action 
  16736           action="se tAttribute
  16737           attribute= "codeSyste m"
  16738          >
  16739           2.16.840.1 .113883.6. 1
  16740          </action>
  16741                                                              
  16742          <action 
  16743           action="se tAttribute
  16744           attribute= "codeSyste mName"
  16745          >
  16746           LOINC
  16747          </action>
  16748                                                              
  16749          <action 
  16750           action="se tAttribute
  16751           attribute= "displayNa me"
  16752          >
  16753           Pathology  Studies
  16754          </action>
  16755                                                     
  16756         </ifNotNul l>
  16757                                            
  16758        </mapping>
  16759                                           
  16760        <mapping 
  16761         equalsProp erty="docu mentClass"  
  16762         equalsValu e="LR LABO RATORY REP ORTS"
  16763        >
  16764                                                    
  16765         <property 
  16766          optional=" true"
  16767         >
  16768          documentCl ass
  16769         </property >
  16770                                                    
  16771         <xpath>
  16772          cda:organi zer/cda:co mponent/cd a:observat ion/cda:co de/cda:tra nslation
  16773         </xpath>
  16774                                                    
  16775         <ifNotNull >
  16776                                                              
  16777          <action 
  16778           action="se tAttribute
  16779           attribute= "code"
  16780          >
  16781           27898-6
  16782          </action>
  16783                                                              
  16784          <action 
  16785           action="se tAttribute
  16786           attribute= "codeSyste m"
  16787          >
  16788           2.16.840.1 .113883.6. 1
  16789          </action>
  16790                                                              
  16791          <action 
  16792           action="se tAttribute
  16793           attribute= "codeSyste mName"
  16794          >
  16795           LOINC
  16796          </action>
  16797                                                              
  16798          <action 
  16799           action="se tAttribute
  16800           attribute= "displayNa me"
  16801          >
  16802           Pathology  Studies
  16803          </action>
  16804                                                     
  16805         </ifNotNul l>
  16806                                            
  16807        </mapping>                                 
  16808                                           
  16809        <mapping 
  16810         equalsProp erty="type
  16811         equalsValu e="MI"
  16812        >
  16813                                                    
  16814         <property  >
  16815          documents
  16816         </property >
  16817                                                    
  16818         <xpath>
  16819          cda:organi zer/cda:co de/cda:tra nslation
  16820         </xpath>
  16821                                                    
  16822         <ifNotNull >
  16823                                                              
  16824          <action 
  16825           action="se tAttribute
  16826           attribute= "code"
  16827          >
  16828           18725-2
  16829          </action>
  16830                                                              
  16831          <action 
  16832           action="se tAttribute
  16833           attribute= "codeSyste m"
  16834          >
  16835           2.16.840.1 .113883.6. 1
  16836          </action>
  16837                                                              
  16838          <action 
  16839           action="se tAttribute
  16840           attribute= "codeSyste mName"
  16841          >
  16842           LOINC
  16843          </action>
  16844                                                              
  16845          <action 
  16846           action="se tAttribute
  16847           attribute= "displayNa me"
  16848          >
  16849           Microbiolo gy Studies
  16850          </action>
  16851                                                     
  16852         </ifNotNul l>
  16853                                            
  16854        </mapping>
  16855                                           
  16856        <mapping 
  16857         equalsProp erty="type
  16858         equalsValu e="MI"
  16859        >
  16860                                                    
  16861         <property  >
  16862          documents
  16863         </property >
  16864                                                    
  16865         <xpath>
  16866          cda:organi zer/cda:co mponent/cd a:observat ion/cda:co de/cda:tra nslation
  16867         </xpath>
  16868                                                    
  16869         <ifNotNull >
  16870                                                              
  16871          <action 
  16872           action="se tAttribute
  16873           attribute= "code"
  16874          >
  16875           18725-2
  16876          </action>
  16877                                                              
  16878          <action 
  16879           action="se tAttribute
  16880           attribute= "codeSyste m"
  16881          >
  16882           2.16.840.1 .113883.6. 1
  16883          </action>
  16884                                                              
  16885          <action 
  16886           action="se tAttribute
  16887           attribute= "codeSyste mName"
  16888          >
  16889           LOINC
  16890          </action>
  16891                                                              
  16892          <action 
  16893           action="se tAttribute
  16894           attribute= "displayNa me"
  16895          >
  16896           Microbiolo gy Studies
  16897          </action>
  16898                                                     
  16899         </ifNotNul l>
  16900                                            
  16901        </mapping>                                 
  16902                                           
  16903                                           
  16904        <mapping 
  16905         equalsProp erty="type
  16906         equalsValu e="CY"
  16907        >
  16908                                                    
  16909         <property>
  16910          type
  16911         </property >
  16912                                                    
  16913         <xpath>
  16914          cda:organi zer/cda:co de/cda:tra nslation
  16915         </xpath>
  16916                                                    
  16917         <ifNotNull >
  16918                                                              
  16919          <action 
  16920           action="se tAttribute
  16921           attribute= "code"
  16922          >
  16923           26438-2
  16924          </action>
  16925                                                              
  16926          <action 
  16927           action="se tAttribute
  16928           attribute= "codeSyste m"
  16929          >
  16930           2.16.840.1 .113883.6. 1
  16931          </action>
  16932                                                              
  16933          <action 
  16934           action="se tAttribute
  16935           attribute= "codeSyste mName"
  16936          >
  16937           LOINC
  16938          </action>
  16939                                                              
  16940          <action 
  16941           action="se tAttribute
  16942           attribute= "displayNa me"
  16943          >
  16944           Cytology S tudies
  16945          </action>
  16946                                                     
  16947         </ifNotNul l>
  16948                                            
  16949        </mapping>
  16950                                                            
  16951                                           
  16952        <mapping 
  16953         equalsProp erty="type
  16954         equalsValu e="EM"
  16955        >
  16956                                                    
  16957         <property>
  16958          type
  16959         </property >
  16960                                                    
  16961         <xpath>
  16962          cda:organi zer/cda:co de/cda:tra nslation
  16963         </xpath>
  16964                                                    
  16965         <ifNotNull >
  16966                                                              
  16967          <action 
  16968           action="se tAttribute
  16969           attribute= "code"
  16970          >
  16971           50668-3
  16972          </action>
  16973                                                              
  16974          <action 
  16975           action="se tAttribute
  16976           attribute= "codeSyste m"
  16977          >
  16978           2.16.840.1 .113883.6. 1
  16979          </action>
  16980                                                              
  16981          <action 
  16982           action="se tAttribute
  16983           attribute= "codeSyste mName"
  16984          >
  16985           LOINC
  16986          </action>
  16987                                                              
  16988          <action 
  16989           action="se tAttribute
  16990           attribute= "displayNa me"
  16991          >
  16992           Electron M icroscopy  Studies
  16993          </action>
  16994                                                     
  16995         </ifNotNul l>
  16996                                            
  16997        </mapping>
  16998                                           
  16999                                           
  17000                                           
  17001        <mapping 
  17002         equalsProp erty="type
  17003         equalsValu e="MI"
  17004        >
  17005                                                    
  17006         <property>
  17007          documents
  17008         </property >
  17009                                                    
  17010         <xpath>
  17011          cda:organi zer/cda:co mponent
  17012         </xpath>
  17013                                                    
  17014         <ifNotNull >
  17015                                                              
  17016          <action 
  17017           action="se tAttribute
  17018           relative=" cda:observ ation/cda: value"
  17019                                                                       
  17020           attribute= "xsi:type"
  17021          >
  17022           ED
  17023          </action>
  17024                                                              
  17025          <action 
  17026           action="se tAttribute
  17027           relative=" cda:observ ation/cda: value/cda: reference"
  17028                                                                       
  17029           attribute= "value" 
  17030           indexed="t rue"
  17031          >
  17032           #microbiol ogyReport
  17033          </action>
  17034                                                              
  17035          <action 
  17036           action="se tAttribute
  17037           relative=" cda:observ ation/cda: text/cda:r eference"
  17038                                                                       
  17039           attribute= "value" 
  17040           indexed="t rue"
  17041          >
  17042           #microbiol ogyReport
  17043          </action>        
  17044                                                              
  17045          <action 
  17046           action="se tAttribute
  17047           relative=" cda:observ ation/cda: id"
  17048                                                                       
  17049           attribute= "nullFlavo r"
  17050          >
  17051           UNK
  17052          </action>
  17053                                                                       
  17054                                                              
  17055          <action 
  17056           action="re move" 
  17057           relative=" cda:observ ation/cda: interpreta tionCode" 
  17058          />
  17059                                                              
  17060          <action 
  17061           action="re move" 
  17062           relative=" cda:observ ation/cda: entryRelat ionship" 
  17063          />
  17064                                                              
  17065          <action 
  17066           action="re move" 
  17067           relative=" cda:observ ation/cda: referenceR ange" 
  17068          />
  17069                                                     
  17070                                                              
  17071                                                              
  17072          <action 
  17073           action="ev aluateMapp ings" 
  17074          />      
  17075                                                     
  17076         </ifNotNul l>
  17077                                                    
  17078         <ifNull>
  17079                                                              
  17080          <action 
  17081           action="re move" 
  17082           relative=" cda:observ ation/cda: text/cda:r eference" 
  17083          />
  17084                                                     
  17085         </ifNull>
  17086                                                                      
  17087         <mappings>
  17088                                                                                
  17089          <mapping>
  17090                                                                                          
  17091           <property>
  17092            localTitle
  17093           </property >
  17094                                                                                          
  17095           <xpath>
  17096            .
  17097           </xpath>
  17098                                                                                          
  17099           <ifNotNull >
  17100                                                                                                   
  17101            <action 
  17102             action="se tAttribute
  17103             relative=" cda:observ ation/cda: code" 
  17104             attribute= "nullFlavo r"
  17105            >
  17106             UNK
  17107            </action>
  17108                                                                                                   
  17109            <action 
  17110             action="se tAttribute
  17111             relative=" cda:observ ation/cda: code" 
  17112             attribute= "codeSyste m"
  17113            >
  17114             2.16.840.1 .113883.6. 1
  17115            </action>
  17116                                                                                                   
  17117            <action 
  17118             action="se tAttribute
  17119             relative=" cda:observ ation/cda: code" 
  17120             attribute= "codeSyste mName"
  17121            >
  17122             LOINC
  17123            </action>
  17124                                                                                                   
  17125            <action 
  17126             action="se tValue" 
  17127             relative=" cda:observ ation/cda: code/cda:o riginalTex t"
  17128            />
  17129                                                                                           
  17130           </ifNotNul l>
  17131                                                                                 
  17132          </mapping>
  17133                                                              
  17134         </mappings >
  17135                                            
  17136        </mapping>
  17137                                           
  17138                                           
  17139        <mapping 
  17140         equalsProp erty="type
  17141         equalsValu e="CY"
  17142        >
  17143                                                    
  17144         <property>
  17145          documents
  17146         </property >
  17147                                                    
  17148         <xpath>
  17149          cda:organi zer/cda:co mponent
  17150         </xpath>
  17151                                                    
  17152         <ifNotNull >
  17153                                                              
  17154          <action 
  17155           action="se tAttribute
  17156           relative=" cda:observ ation/cda: value"
  17157                                                                       
  17158           attribute= "xsi:type"
  17159          >
  17160           ED
  17161          </action>
  17162                                                              
  17163          <action 
  17164           action="se tAttribute
  17165           relative=" cda:observ ation/cda: value/cda: reference"
  17166                                                                       
  17167           attribute= "value" 
  17168           indexed="t rue"
  17169          >
  17170           #cytologyR eport
  17171          </action>
  17172                                                              
  17173          <action 
  17174           action="se tAttribute
  17175           relative=" cda:observ ation/cda: text/cda:r eference"
  17176                                                                       
  17177           attribute= "value" 
  17178           indexed="t rue"
  17179          >
  17180           #cytologyR eport
  17181          </action>        
  17182         
  17183                                                              
  17184          <action 
  17185           action="se tAttribute
  17186           relative=" cda:observ ation/cda: id"
  17187                                                                       
  17188           attribute= "nullFlavo r"
  17189          >
  17190           UNK
  17191          </action>
  17192                                                                       
  17193                                                              
  17194          <action 
  17195           action="ev aluateMapp ings" 
  17196          />      
  17197                                                     
  17198         </ifNotNul l>
  17199                                                    
  17200         <ifNull>
  17201                                                              
  17202          <action 
  17203           action="re move" 
  17204           relative=" cda:observ ation/cda: text/cda:r eference" 
  17205          />
  17206                                                     
  17207         </ifNull>
  17208                                                                      
  17209         <mappings>
  17210                                                                                
  17211          <mapping>
  17212                                                                                          
  17213           <property>
  17214            localTitle
  17215           </property >
  17216                                                                                          
  17217           <xpath>
  17218            .
  17219           </xpath>
  17220                                                                                          
  17221           <ifNotNull >
  17222                                                                                                   
  17223            <action 
  17224             action="se tValue" 
  17225             relative=" cda:observ ation/cda: code/cda:o riginalTex t"
  17226            />
  17227                                                                                           
  17228           </ifNotNul l>
  17229                                                                                 
  17230          </mapping>
  17231                                                              
  17232         </mappings >
  17233                                            
  17234        </mapping>
  17235                                           
  17236                                           
  17237                                           
  17238        <mapping 
  17239         equalsProp erty="type
  17240         equalsValu e="EM"
  17241        >
  17242                                                    
  17243         <property>
  17244          documents
  17245         </property >
  17246                                                    
  17247         <xpath>
  17248          cda:organi zer/cda:co mponent
  17249         </xpath>
  17250                                                    
  17251         <ifNotNull >
  17252                                                              
  17253          <action 
  17254           action="se tAttribute
  17255           relative=" cda:observ ation/cda: value"
  17256                                                                       
  17257           attribute= "xsi:type"
  17258          >
  17259           ED
  17260          </action>
  17261                                                              
  17262          <action 
  17263           action="se tAttribute
  17264           relative=" cda:observ ation/cda: value/cda: reference"
  17265                                                                       
  17266           attribute= "value" 
  17267           indexed="t rue"
  17268          >
  17269           #electronm icroscopyR eport
  17270          </action>
  17271                                                              
  17272          <action 
  17273           action="se tAttribute
  17274           relative=" cda:observ ation/cda: text/cda:r eference"
  17275                                                                       
  17276           attribute= "value" 
  17277           indexed="t rue"
  17278          >
  17279           #electronm icroscopyR eport
  17280          </action>        
  17281                                                              
  17282          <action 
  17283           action="se tAttribute
  17284           relative=" cda:observ ation/cda: effectiveT ime"
  17285                                                                       
  17286           attribute= "nullFlavo r"
  17287          >
  17288           UNK
  17289          </action>
  17290                                                              
  17291          <action 
  17292           action="se tAttribute
  17293           relative=" cda:observ ation/cda: id"
  17294                                                                       
  17295           attribute= "nullFlavo r"
  17296          >
  17297           UNK
  17298          </action>
  17299                                                                       
  17300                                                              
  17301          <action 
  17302           action="ev aluateMapp ings" 
  17303          />      
  17304                                                     
  17305         </ifNotNul l>
  17306                                                    
  17307         <ifNull>
  17308                                                              
  17309          <action 
  17310           action="re move" 
  17311           relative=" cda:observ ation/cda: text/cda:r eference" 
  17312          />
  17313                                                     
  17314         </ifNull>                                           
  17315                                                                      
  17316         <mappings>
  17317                                                                                
  17318          <mapping>
  17319                                                                                          
  17320           <property>
  17321            localTitle
  17322           </property >
  17323                                                                                          
  17324           <xpath>
  17325            .
  17326           </xpath>
  17327                                                                                          
  17328           <ifNotNull >
  17329                                                                                                   
  17330            <action 
  17331             action="se tValue" 
  17332             relative=" cda:observ ation/cda: code/cda:o riginalTex t"
  17333            />
  17334                                                                                           
  17335           </ifNotNul l>
  17336                                                                                 
  17337          </mapping>
  17338                                                              
  17339         </mappings >
  17340                                            
  17341        </mapping>
  17342                                           
  17343        <!--
  17344                                           <mapping >
  17345                                                    <property> documents< /property>
  17346                                                    <xpath>cda :organizer /cda:compo nent</xpat h>
  17347                                                    <ifNotNull >
  17348                                                            <a ction acti on="setAtt ribute" re lative="cd a:observat ion/cda:va lue"
  17349                                                                     attr ibute="xsi :type">ED< /action>
  17350                                                            <a ction acti on="setAtt ribute" re lative="cd a:observat ion/cda:va lue/cda:re ference"
  17351                                                                     attr ibute="val ue" indexe d="true"># lndComment </action>
  17352                                                            <a ction acti on="setAtt ribute" re lative="cd a:observat ion/cda:te xt/cda:ref erence"
  17353                                                                     attr ibute="val ue" indexe d="true"># lndComment </action>    
  17354                                                            <a ction acti on="setAtt ribute" re lative="cd a:observat ion/cda:ef fectiveTim e"
  17355                                                                     attr ibute="nul lFlavor">U NK</action >
  17356                                                            <a ction acti on="setAtt ribute" re lative="cd a:observat ion/cda:id "
  17357                                                                     attr ibute="nul lFlavor">U NK</action >
  17358                                                            <a ction acti on="setAtt ribute" re lative="cd a:observat ion/cda:co de"
  17359                                                                     attr ibute="nul lFlavor">U NK</action >                                                          
  17360                                                            <a ction acti on="evalua teMappings " />    
  17361                                                    </ifNotNul l>
  17362                                                    <ifNull>
  17363                                                            <a ction acti on="remove " relative ="cda:obse rvation/cd a:text/cda :reference " />
  17364                                                    </ifNull>                                           
  17365                                                                     <map pings>
  17366                                                                              <mappi ng>
  17367                                                                                       <propert y>localTit le</proper ty>
  17368                                                                                       <xpath>. </xpath>
  17369                                                                                       <ifNotNu ll>
  17370                                                                                                <action ac tion="setV alue" rela tive="cda: observatio n/cda:code /cda:origi nalText"/>
  17371                                                                                       </ifNotN ull>
  17372                                                                              </mapp ing>
  17373                                                            </ mappings>
  17374                                           </mappin g>      -- >
  17375                                           
  17376        <mapping>
  17377                                                    
  17378         <property>
  17379          documents
  17380         </property >
  17381                                                    
  17382         <xpath>
  17383          cda:organi zer/cda:co mponent
  17384         </xpath>
  17385                                                    
  17386         <ifNotNull  />
  17387                                                    
  17388         <ifNull>
  17389                                                              
  17390          <action 
  17391           action="re move" 
  17392           relative=" cda:observ ation/cda: text/cda:r eference" 
  17393          />
  17394                                                     
  17395         </ifNull>                                           
  17396                                            
  17397        </mapping>
  17398                                           
  17399                                           
  17400        <mapping>
  17401                                                    
  17402         <property>
  17403          category|d ocumentCla ss|type
  17404         </property >
  17405                                                    
  17406         <xpath>
  17407          cda:organi zer/cda:co de/cda:tra nslation
  17408         </xpath>
  17409                                                    
  17410         <ifNotNull  />
  17411                                                    
  17412         <ifNull>
  17413                                                              
  17414          <action 
  17415           action="re move" 
  17416          />
  17417                                                     
  17418         </ifNull>
  17419                                            
  17420        </mapping>
  17421                                           
  17422        <mapping>
  17423                                                    
  17424         <property>
  17425          collected| referenceD ateTime
  17426         </property >
  17427                                                    
  17428         <xpath>
  17429          cda:organi zer/cda:ef fectiveTim e/cda:low
  17430         </xpath>
  17431                                                    
  17432         <ifNotNull >
  17433                                                              
  17434          <action 
  17435           action="se tAttribute
  17436           attribute= "value" 
  17437          />
  17438                                                     
  17439         </ifNotNul l>
  17440                                            
  17441        </mapping>
  17442                                           
  17443        <mapping>
  17444                                                    
  17445         <property 
  17446          optional=" true"
  17447         >
  17448          facility
  17449         </property >
  17450                                                    
  17451         <xpath>
  17452          cda:organi zer/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n
  17453                                                     
  17454         </xpath>
  17455                                                    
  17456         <ifNotNull >
  17457                                                              
  17458          <action 
  17459           action="se tAttribute
  17460           relative=" cda:id" 
  17461           attribute= "extension "
  17462                                                                       
  17463           property=" facility.c ode" 
  17464          />
  17465                                                              
  17466          <action 
  17467           action="se tValue" 
  17468           relative=" cda:name" 
  17469           property=" facility.n ame" 
  17470          />
  17471                                                     
  17472         </ifNotNul l>
  17473                                            
  17474        </mapping>
  17475                                           
  17476        <mapping>
  17477                                                    
  17478         <property 
  17479          optional=" true"
  17480         >
  17481          provider.n ame
  17482         </property >
  17483                                                    
  17484         <xpath>
  17485          cda:organi zer/cda:co mponent/cd a:observat ion/cda:au thor/cda:a ssignedAut hor/cda:as signedPers on/cda:nam e
  17486         </xpath>
  17487                                                    
  17488         <ifNotNull >
  17489                                                              
  17490          <action 
  17491           action="se tValue" 
  17492          />
  17493                                                     
  17494         </ifNotNul l>
  17495                                            
  17496        </mapping>
  17497                                           
  17498        <mapping>
  17499                                                    
  17500         <property 
  17501          optional=" true"
  17502         >
  17503          signingCli nician
  17504         </property >
  17505                                                    
  17506         <xpath>
  17507          cda:organi zer/cda:co mponent/cd a:observat ion/cda:au thor/cda:a ssignedAut hor/cda:as signedPers on/cda:nam e
  17508         </xpath>
  17509                                                    
  17510         <ifNotNull >
  17511                                                              
  17512          <action 
  17513           action="se tValue" 
  17514           property=" signingCli nician.nam e" 
  17515          />
  17516                                                     
  17517         </ifNotNul l>
  17518                                            
  17519        </mapping>
  17520                                           
  17521        <mapping 
  17522         equalsProp erty="prov ider.name"
  17523        >
  17524                                                    
  17525         <property 
  17526          optional=" true"
  17527         >
  17528          signingCli nician
  17529         </property >
  17530                                                    
  17531         <xpath>
  17532          cda:organi zer/cda:co mponent/cd a:observat ion/cda:au thor
  17533         </xpath>
  17534                                                    
  17535         <ifNotNull  />
  17536                                                    
  17537         <ifNull>
  17538                                                              
  17539          <action 
  17540           action="re move" 
  17541          />
  17542                                                     
  17543         </ifNull>
  17544                                            
  17545        </mapping>
  17546       
  17547                                           
  17548        <mapping>
  17549                                                    
  17550         <property 
  17551          optional=" true"
  17552         >
  17553          content
  17554         </property >
  17555                                                    
  17556         <xpath>
  17557          cda:organi zer/cda:co mponent/cd a:observat ion/cda:va lue
  17558         </xpath>
  17559                                                    
  17560         <ifNotNull >
  17561                                                              
  17562          <action 
  17563           action="se tAttribute
  17564           attribute= "xsi:type"
  17565          >
  17566           ED
  17567          </action>
  17568                                                              
  17569          <action 
  17570           action="se tAttribute
  17571           relative=" cda:refere nce"
  17572                                                                       
  17573           attribute= "value" 
  17574           indexed="t rue"
  17575          >
  17576           #lndCommen t
  17577          </action>
  17578                                                              
  17579          <action 
  17580           action="re move" 
  17581           relative=" ../cda:int erpretatio nCode" 
  17582          />
  17583                                                              
  17584          <action 
  17585           action="re move" 
  17586           relative=" ../cda:ref erenceRang e" 
  17587          />
  17588                                                              
  17589          <action 
  17590           action="se tAttribute
  17591           relative=" ../cda:cod e"
  17592                                                                       
  17593           attribute= "nullFlavo r"
  17594          >
  17595           UNK
  17596          </action>                                                                                                                  
  17597                                                     
  17598         </ifNotNul l>
  17599                                            
  17600        </mapping>
  17601                                           
  17602        <mapping>
  17603                                                    
  17604         <property>
  17605          referenceD ateTime|co llected
  17606         </property >
  17607                                                    
  17608         <xpath>
  17609          cda:organi zer/cda:co mponent/cd a:observat ion/cda:ef fectiveTim e
  17610                                                     
  17611         </xpath>
  17612                                                    
  17613         <ifNotNull >
  17614                                                              
  17615          <action 
  17616           action="se tAttribute
  17617           attribute= "value" 
  17618          />
  17619                                                     
  17620         </ifNotNul l>
  17621                                            
  17622        </mapping>
  17623                                           
  17624        <mapping>
  17625                                                    
  17626         <property>
  17627          referenceD ateTime
  17628         </property >
  17629                                                    
  17630         <xpath>
  17631          cda:organi zer/cda:co mponent/cd a:observat ion/cda:id  
  17632         </xpath>
  17633                                                    
  17634         <ifNotNull >
  17635                                                              
  17636          <action 
  17637           action="se tAttribute
  17638           attribute= "nullFlavo r"
  17639          >
  17640           UNK
  17641          </action>
  17642                                                     
  17643         </ifNotNul l>
  17644                                            
  17645        </mapping>
  17646                                           
  17647        <mapping>
  17648                                                    
  17649         <property>
  17650          localTitle
  17651         </property >
  17652                                                    
  17653         <xpath>
  17654          cda:organi zer/cda:co mponent/cd a:observat ion/cda:co de/cda:ori ginalText
  17655                                                     
  17656         </xpath>
  17657                                                    
  17658         <ifNotNull >
  17659                                                              
  17660          <action 
  17661           action="se tValue" 
  17662          />
  17663                                                     
  17664         </ifNotNul l>
  17665                                            
  17666        </mapping>
  17667                                           
  17668        <mapping 
  17669         equalsProp erty="docu ments"
  17670        >
  17671                                                    
  17672         <property 
  17673          collection ="true"
  17674         >
  17675          values
  17676         </property >
  17677                                                    
  17678         <xpath>
  17679          cda:organi zer/cda:co mponent
  17680         </xpath>
  17681                                                    
  17682         <ifNotNull >
  17683                                                              
  17684          <action 
  17685           action="ev aluateMapp ings" 
  17686          />
  17687                                                     
  17688         </ifNotNul l>
  17689                                                    
  17690         <ifNull>
  17691                                                              
  17692          <action 
  17693           action="re move" 
  17694           relative=" cda:observ ation/cda: interpreta tionCode" 
  17695          />
  17696                                                              
  17697          <action 
  17698           action="re move" 
  17699           relative=" cda:observ ation/cda: entryRelat ionship" 
  17700          />
  17701                                                              
  17702          <action 
  17703           action="re move" 
  17704           relative=" cda:observ ation/cda: referenceR ange" 
  17705          />
  17706                                                              
  17707          <action 
  17708           action="se tAttribute
  17709           attribute= "nullFlavo r"
  17710                                                                       
  17711           relative=" cda:observ ation/cda: value"
  17712          >
  17713           NA
  17714          </action>
  17715                                                     
  17716                                                     
  17717         </ifNull>
  17718                                                    
  17719         <mappings>
  17720                                                              
  17721          <mapping>
  17722                                                                        
  17723           <property>
  17724            id
  17725           </property >
  17726                                                                        
  17727           <xpath>
  17728            cda:observ ation/cda: id
  17729           </xpath>
  17730                                                                        
  17731           <ifNotNull >
  17732                                                                                  
  17733            <action 
  17734             action="se tAttribute
  17735             attribute= "extension
  17736            />
  17737                                                                         
  17738           </ifNotNul l>
  17739                                                               
  17740          </mapping>
  17741                                                              
  17742          <!-- If lo incDepreca ted is nul l - that m eans we ha ve a valid  loinc cod
  17743                                                                       so p opulate ac cordingly  using the  loinc code  -->
  17744                                                              
  17745          <mapping 
  17746           equalsProp erty="loin cDeprecate d"
  17747          >
  17748                                                                        
  17749           <property>
  17750            loinc
  17751           </property >
  17752                                                                        
  17753           <xpath>
  17754            cda:observ ation/cda: code
  17755           </xpath>
  17756                                                                        
  17757           <ifNotNull >
  17758                                                                                  
  17759            <action 
  17760             action="se tAttribute
  17761             property=" loinc" 
  17762             attribute= "code" 
  17763            />
  17764                                                                                  
  17765            <action 
  17766             action="se tAttribute
  17767             attribute= "displayNa me"
  17768                                                                                           
  17769             property=" loincDispl ay" 
  17770            />
  17771                                                                                  
  17772            <action 
  17773             action="se tValue" 
  17774             relative=" cda:origin alText"
  17775                                                                                           
  17776             property=" test" 
  17777            />
  17778                                                                         
  17779           </ifNotNul l>
  17780                                                                        
  17781           <ifNull>
  17782                                                                                  
  17783            <action 
  17784             action="se tAttribute
  17785             attribute= "nullFlavo r"
  17786            >
  17787             UNK
  17788            </action>
  17789                                                                                  
  17790            <action 
  17791             action="se tValue" 
  17792             relative=" cda:origin alText"
  17793                                                                                           
  17794             property=" test" 
  17795            />
  17796                                                                         
  17797           </ifNull>
  17798                                                               
  17799          </mapping>
  17800                                                              
  17801          <mapping 
  17802           notEqualsP roperty="l oincDeprec ated"
  17803          >
  17804                                                                        
  17805           <property>
  17806            test
  17807           </property >
  17808                                                                        
  17809           <xpath>
  17810            cda:observ ation/cda: code
  17811           </xpath>
  17812                                                                        
  17813           <ifNotNull >
  17814                                                                                  
  17815            <action 
  17816             action="se tAttribute
  17817             attribute= "nullFlavo r"
  17818            >
  17819             UNK
  17820            </action>
  17821                                                                                  
  17822            <action 
  17823             action="se tValue" 
  17824             relative=" cda:origin alText"
  17825                                                                                           
  17826             property=" test" 
  17827            />
  17828                                                                         
  17829           </ifNotNul l>
  17830                                                               
  17831          </mapping>                                                   
  17832                                                              
  17833          <!-- Need  to set thi s from con tainer -->
  17834                                                              
  17835          <mapping>
  17836                                                                        
  17837           <property>
  17838            collected
  17839           </property >
  17840                                                                        
  17841           <xpath>
  17842            cda:observ ation/cda: effectiveT ime
  17843           </xpath>
  17844                                                                        
  17845           <ifNotNull >
  17846                                                                                  
  17847            <action 
  17848             action="se tAttribute
  17849             attribute= "value" 
  17850            />
  17851                                                                         
  17852           </ifNotNul l>
  17853                                                               
  17854          </mapping>
  17855                                                              
  17856          <mapping 
  17857           equalsProp erty="hl7D ataType" 
  17858           equalsValu e="PQ"
  17859          >
  17860                                                                        
  17861           <property>
  17862            result
  17863           </property >
  17864                                                                        
  17865           <xpath>
  17866            cda:observ ation/cda: value
  17867           </xpath>
  17868                                                                        
  17869           <ifNotNull >
  17870                                                                                  
  17871            <action 
  17872             action="se tAttribute
  17873             attribute= "value" 
  17874            />
  17875                                                                                  
  17876            <action 
  17877             action="se tAttribute
  17878             attribute= "unit" 
  17879             property=" units" 
  17880            />
  17881                                                                                  
  17882            <action 
  17883             action="se tAttribute
  17884             attribute= "xsi:type"
  17885                                                                                           
  17886             property=" hl7DataTyp e" 
  17887            />
  17888                                                                                  
  17889            <action 
  17890             action="re move" 
  17891             relative=" cda:refere nce" 
  17892            />
  17893                                                                         
  17894           </ifNotNul l>
  17895                                                               
  17896          </mapping>
  17897                                                              
  17898          <mapping 
  17899           equalsProp erty="hl7D ataType" 
  17900           equalsValu e="ST"
  17901          >
  17902                                                                        
  17903           <property>
  17904            result
  17905           </property >
  17906                                                                        
  17907           <xpath>
  17908            cda:observ ation/cda: value
  17909           </xpath>
  17910                                                                        
  17911           <ifNotNull >
  17912                                                                                  
  17913            <action 
  17914             action="se tValue" 
  17915            />
  17916                                                                                  
  17917            <action 
  17918             action="ap pendValue"
  17919            >
  17920              
  17921            </action>
  17922                                                                                  
  17923            <action 
  17924             action="ap pendValue"  
  17925             property=" units" 
  17926            />
  17927                                                                                  
  17928            <action 
  17929             action="se tAttribute
  17930             attribute= "xsi:type"
  17931                                                                                           
  17932             property=" hl7DataTyp e" 
  17933            />
  17934                                                                                  
  17935            <action 
  17936             action="se tAttribute
  17937             attribute= "represent ation"
  17938            >
  17939             TXT
  17940            </action>                                                                              
  17941                                                                                  
  17942            <action 
  17943             action="re move" 
  17944             relative=" cda:refere nce" 
  17945            />
  17946                                                                         
  17947           </ifNotNul l>
  17948                                                               
  17949          </mapping>
  17950                                                              
  17951          <mapping>
  17952                                                                        
  17953           <property>
  17954            interpreta tion
  17955           </property >
  17956                                                                        
  17957           <xpath>
  17958            cda:observ ation/cda: interpreta tionCode
  17959           </xpath>
  17960                                                                        
  17961           <ifNotNull >
  17962                                                                                  
  17963            <action 
  17964             action="se tValue" 
  17965             relative=" cda:origin alText" 
  17966            />
  17967                                                                         
  17968           </ifNotNul l>
  17969                                                                        
  17970           <ifNull>
  17971                                                                                  
  17972            <action 
  17973             action="re move" 
  17974            />
  17975                                                                         
  17976           </ifNull>
  17977                                                               
  17978          </mapping>
  17979                                                              
  17980          <mapping>
  17981                                                                        
  17982           <property 
  17983            optional=" true"
  17984           >
  17985            methodCode
  17986           </property >
  17987                                                                        
  17988           <xpath>
  17989            cda:observ ation/cda: methodCode
  17990           </xpath>
  17991                                                                        
  17992           <ifNotNull >
  17993                                                                                  
  17994            <action 
  17995             action="se tAttribute
  17996             attribute= "code" 
  17997            />
  17998                                                                                  
  17999            <action 
  18000             action="se tAttribute
  18001             attribute= "displayNa me"
  18002                                                                                           
  18003             property=" methodCode Display" 
  18004            />
  18005                                                                         
  18006           </ifNotNul l>
  18007                                                                        
  18008           <ifNull>
  18009                                                                                  
  18010            <action 
  18011             action="re move" 
  18012            />
  18013                                                                         
  18014           </ifNull>
  18015                                                               
  18016          </mapping>
  18017                                                              
  18018          <mapping>
  18019                                                                        
  18020           <property 
  18021            optional=" true"
  18022           >
  18023            targetSite Code
  18024           </property >
  18025                                                                        
  18026           <xpath>
  18027            cda:compon ent/cda:ob servation/ cda:target SiteCode
  18028           </xpath>
  18029                                                                        
  18030           <ifNotNull >
  18031                                                                                  
  18032            <action 
  18033             action="se tAttribute
  18034             attribute= "code" 
  18035            />
  18036                                                                                  
  18037            <action 
  18038             action="se tAttribute
  18039             attribute= "displayNa me"
  18040                                                                                           
  18041             property=" targetSite CodeDispla y" 
  18042            />
  18043                                                                         
  18044           </ifNotNul l>
  18045                                                                        
  18046           <ifNull>
  18047                                                                                  
  18048            <action 
  18049             action="re move" 
  18050            />
  18051                                                                         
  18052           </ifNull>
  18053                                                               
  18054          </mapping>
  18055                                                              
  18056          <mapping>
  18057                                                                        
  18058           <property>
  18059            range
  18060           </property >
  18061                                                                        
  18062           <xpath>
  18063            cda:observ ation/cda: referenceR ange/cda:o bservation Range/cda: text
  18064                                                                         
  18065           </xpath>
  18066                                                                        
  18067           <ifNotNull >
  18068                                                                                  
  18069            <action 
  18070             action="se tValue" 
  18071            />
  18072                                                                         
  18073           </ifNotNul l>
  18074                                                               
  18075          </mapping>
  18076                                                              
  18077          <mapping>
  18078                                                                        
  18079           <property>
  18080            comment
  18081           </property >
  18082                                                                        
  18083           <xpath>
  18084            cda:observ ation/cda: entryRelat ionship/cd a:act/cda: text
  18085                                                                         
  18086           </xpath>
  18087                                                                        
  18088           <ifNotNull >
  18089                                                                                  
  18090            <action 
  18091             action="se tAttribute
  18092             relative=" cda:refere nce"
  18093                                                                                           
  18094             attribute= "value" 
  18095             indexed="t rue"
  18096            >
  18097             #lndCommen t
  18098            </action>
  18099                                                                         
  18100           </ifNotNul l>
  18101                                                                        
  18102           <ifNull>
  18103                                                                                  
  18104            <action 
  18105             action="se tAttribute
  18106             relative=" cda:refere nce"
  18107                                                                                           
  18108             attribute= "value" 
  18109             indexed="t rue"
  18110            >
  18111             #lndCommen t
  18112            </action>
  18113                                                                         
  18114           </ifNull>
  18115                                                               
  18116          </mapping>
  18117                                                     
  18118         </mappings >
  18119                                            
  18120        </mapping>
  18121                                           
  18122                                           
  18123        <mapping 
  18124         equalsProp erty="type
  18125         equalsValu e="CY"
  18126        >
  18127                                                    
  18128         <property>
  18129          documents
  18130         </property >
  18131                                                    
  18132         <xpath>
  18133          cda:organi zer/cda:co mponent
  18134         </xpath>
  18135                                                    
  18136         <ifNotNull >
  18137                                                              
  18138          <action 
  18139           action="se tAttribute
  18140           relative=" cda:observ ation/cda: value"
  18141                                                                       
  18142           attribute= "xsi:type"
  18143          >
  18144           ED
  18145          </action>
  18146                                                              
  18147          <action 
  18148           action="se tAttribute
  18149           relative=" cda:observ ation/cda: value/cda: reference"
  18150                                                                       
  18151           attribute= "value" 
  18152           indexed="t rue"
  18153          >
  18154           #cytologyR eport
  18155          </action>
  18156                                                              
  18157          <action 
  18158           action="se tAttribute
  18159           relative=" cda:observ ation/cda: effectiveT ime"
  18160                                                                       
  18161           attribute= "nullFlavo r"
  18162          >
  18163           UNK
  18164          </action>
  18165                                                     
  18166         </ifNotNul l>
  18167                                            
  18168        </mapping>
  18169       
  18170                                           
  18171                                           
  18172        <!-- <mapp ing  >
  18173                                                    <property> values,doc uments</pr operty>
  18174                                                    <xpath>cda :organizer /cda:compo nent</xpat h>
  18175                                                    <ifNotNull >
  18176                                                     
  18177                                                    </ifNotNul l>
  18178                                                    <ifNull>
  18179                                                             < action act ion="remov e" relativ e="cda:obs ervation/c da:value/c da:referen ce"></acti on>
  18180                                                    </ifNull>
  18181                                           </mappin g> -->
  18182                                           
  18183                                  
  18184       </mappings >
  18185                        
  18186      </mapping>
  18187                       
  18188      <!-- IMMUN IZATION NA RRITIVE -- >
  18189                       
  18190      <mapping>
  18191                                 
  18192       <property 
  18193        collection ="true" 
  18194        optional=" true"
  18195       >
  18196        immunizati ons
  18197       </property >
  18198                                 
  18199       <xpath>
  18200        /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']
  18201       </xpath>
  18202                                 
  18203       <ifNotNull >
  18204                                           
  18205        <action 
  18206         action="ev aluateMapp ings"
  18207                                                   
  18208         relative=" cda:sectio n/cda:text /cda:table [@ID='immu nizationNa rrative']/ cda:tbody/ cda:tr" 
  18209        />
  18210                                  
  18211       </ifNotNul l>
  18212                                 
  18213       <mappings>
  18214                                           
  18215        <mapping>
  18216                                                    
  18217         <property>
  18218          name
  18219         </property >
  18220                                                    
  18221         <xpath>
  18222          cda:td/cda :content[@ ID='indImm unization' ]
  18223         </xpath>
  18224                                                    
  18225         <ifNotNull >
  18226                                                              
  18227          <action 
  18228           action="se tAttribute
  18229           attribute= "ID" 
  18230           indexed="t rue"
  18231          >
  18232           indImmuniz ation
  18233          </action>
  18234                                                              
  18235          <action 
  18236           action="se tValue" 
  18237          />
  18238                                                     
  18239         </ifNotNul l>
  18240                                                    
  18241         <ifNull>
  18242                                                              
  18243          <action 
  18244           action="se tAttribute
  18245           attribute= "ID" 
  18246           indexed="t rue"
  18247          >
  18248           indImmuniz ation
  18249          </action>
  18250                                                     
  18251         </ifNull>
  18252                                            
  18253        </mapping>
  18254                                           
  18255        <mapping>
  18256                                                    
  18257         <property 
  18258          optional=" true"
  18259         >
  18260          seriesNumb er
  18261         </property >
  18262                                                    
  18263         <xpath>
  18264          cda:td/cda :content[@ ID='indSer ies']
  18265         </xpath>
  18266                                                    
  18267         <ifNotNull >
  18268                                                              
  18269          <action 
  18270           action="se tAttribute
  18271           attribute= "ID" 
  18272           indexed="t rue"
  18273          >
  18274           indSeries
  18275          </action>
  18276                                                              
  18277          <action 
  18278           action="se tValue" 
  18279          />
  18280                                                     
  18281         </ifNotNul l>
  18282                                                    
  18283         <ifNull>
  18284                                                              
  18285          <action 
  18286           action="se tAttribute
  18287           attribute= "ID" 
  18288           indexed="t rue"
  18289          >
  18290           indSeries
  18291          </action>
  18292                                                     
  18293         </ifNull>
  18294                                            
  18295        </mapping>
  18296                                           
  18297        <mapping>
  18298                                                    
  18299         <property>
  18300          prettyAdmi nDate
  18301         </property >
  18302                                                    
  18303         <xpath>
  18304          cda:td[3]
  18305         </xpath>
  18306                                                    
  18307         <ifNotNull >
  18308                                                              
  18309          <action 
  18310           action="se tValue" 
  18311          />
  18312                                                     
  18313         </ifNotNul l>
  18314                                            
  18315        </mapping>
  18316                                           
  18317        <mapping>
  18318                                                    
  18319         <property 
  18320          optional=" true"
  18321         >
  18322          reaction
  18323         </property >
  18324                                                    
  18325         <xpath>
  18326          cda:td/cda :content[@ ID='indRea ction']
  18327         </xpath>
  18328                                                    
  18329         <ifNotNull >
  18330                                                              
  18331          <action 
  18332           action="se tAttribute
  18333           attribute= "ID" 
  18334           indexed="t rue"
  18335          >
  18336           indReactio n
  18337          </action>
  18338                                                              
  18339          <action 
  18340           action="se tValue" 
  18341          />
  18342                                                     
  18343         </ifNotNul l>
  18344                                                    
  18345         <ifNull>
  18346                                                              
  18347          <action 
  18348           action="se tAttribute
  18349           attribute= "ID" 
  18350           indexed="t rue"
  18351          >
  18352           indReactio n
  18353          </action>
  18354                                                     
  18355         </ifNull>
  18356                                            
  18357        </mapping>
  18358                                           
  18359        <mapping>
  18360                                                    
  18361         <property 
  18362          optional=" true"
  18363         >
  18364          comments
  18365         </property >
  18366                                                    
  18367         <xpath>
  18368          cda:td/cda :content[@ ID='indCom ments']
  18369         </xpath>
  18370                                                    
  18371         <ifNotNull >
  18372                                                              
  18373          <action 
  18374           action="se tAttribute
  18375           attribute= "ID" 
  18376           indexed="t rue"
  18377          >
  18378           indComment s
  18379          </action>
  18380                                                              
  18381          <action 
  18382           action="se tValue" 
  18383          />
  18384                                                     
  18385         </ifNotNul l>
  18386                                                    
  18387         <ifNull>
  18388                                                              
  18389          <action 
  18390           action="se tAttribute
  18391           attribute= "ID" 
  18392           indexed="t rue"
  18393          >
  18394           indComment s
  18395          </action>
  18396                                                     
  18397         </ifNull>
  18398                                            
  18399        </mapping>
  18400                                  
  18401       </mappings >
  18402                        
  18403      </mapping>
  18404                       
  18405      <!-- IMMUN IZATION CO DED SECTIO N -->
  18406                       
  18407      <mapping>
  18408                                 
  18409       <property 
  18410        collection ="true"
  18411       >
  18412        immunizati ons
  18413       </property >
  18414                                 
  18415       <xpath>
  18416        /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']
  18417       </xpath>
  18418                                 
  18419       <ifNotNull >
  18420                                           
  18421        <action 
  18422         action="ev aluateMapp ings" 
  18423         relative=" cda:sectio n/cda:entr y[@typeCod e='DRIV']"  
  18424        />
  18425                                  
  18426       </ifNotNul l>
  18427                                 
  18428       <ifNull>
  18429                                           
  18430        <!-- <acti on action= "remove">N I</action>  -->
  18431                                           
  18432        <!--  Set  IMMUNIZATI ON Section  to NI so  the docume nt passes  the MU2 on line certi fication;  TPS -->
  18433                                                     
  18434                                           
  18435        <action 
  18436         action="re move" 
  18437         relative=" cda:sectio n/cda:entr y"
  18438        >
  18439         NI
  18440        </action>
  18441                                           
  18442        <action 
  18443         action="se tValue" 
  18444         relative=" cda:sectio n/cda:text "
  18445        >
  18446         No Data Pr ovided for  This Sect ion
  18447        </action>
  18448                                           
  18449        <action 
  18450         action="se tAttribute
  18451         relative=" cda:sectio n" 
  18452         attribute= "nullFlavo r"
  18453        >
  18454         NI
  18455        </action>
  18456                                  
  18457       </ifNull>
  18458                                 
  18459       <mappings>
  18460                                           
  18461        <mapping>
  18462                                                    
  18463         <property>
  18464          adminDate
  18465         </property >
  18466                                                    
  18467         <xpath>
  18468          cda:substa nceAdminis tration/cd a:effectiv eTime
  18469         </xpath>
  18470                                                    
  18471         <ifNotNull >
  18472                                                              
  18473          <action 
  18474           action="se tAttribute
  18475           attribute= "value" 
  18476          />
  18477                                                     
  18478         </ifNotNul l>
  18479                                            
  18480        </mapping>
  18481                                           
  18482        <mapping>
  18483                                                    
  18484         <property>
  18485          name
  18486         </property >
  18487                                                    
  18488         <xpath>
  18489          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
  18490         </xpath>
  18491                                                    
  18492         <ifNotNull >
  18493                                                              
  18494          <action 
  18495           action="se tAttribute
  18496           attribute= "value" 
  18497           indexed="t rue"
  18498          >
  18499           #indImmuni zation
  18500          </action>
  18501                                                     
  18502         </ifNotNul l>
  18503                                                    
  18504         <ifNull>
  18505                                                              
  18506          <action 
  18507           action="se tAttribute
  18508           attribute= "value" 
  18509           indexed="t rue"
  18510          >
  18511           #indImmuni zation
  18512          </action>
  18513                                                     
  18514         </ifNull>
  18515                                            
  18516        </mapping>
  18517                                           
  18518        <mapping>
  18519                                                    
  18520         <property>
  18521          comments
  18522         </property >
  18523                                                    
  18524         <xpath>
  18525          cda:substa nceAdminis tration/cd a:text/cda :reference
  18526         </xpath>
  18527                                                    
  18528         <ifNotNull >
  18529                                                              
  18530          <action 
  18531           action="se tAttribute
  18532           attribute= "value" 
  18533           indexed="t rue"
  18534          >
  18535           #indCommen ts
  18536          </action>
  18537                                                     
  18538         </ifNotNul l>
  18539                                                    
  18540         <ifNull>
  18541                                                              
  18542          <action 
  18543           action="se tAttribute
  18544           attribute= "value" 
  18545           indexed="t rue"
  18546          >
  18547           #indCommen ts
  18548          </action>
  18549                                                     
  18550         </ifNull>
  18551                                            
  18552        </mapping>
  18553                                           
  18554        <mapping>
  18555                                                    
  18556         <property>
  18557          seriesNumb er
  18558         </property >
  18559                                                    
  18560         <xpath>
  18561          cda:substa nceAdminis tration/cd a:repeatNu mber
  18562         </xpath>
  18563                                                    
  18564         <ifNotNull >
  18565                                                              
  18566          <action 
  18567           action="se tAttribute
  18568           attribute= "value" 
  18569          />
  18570                                                     
  18571         </ifNotNul l>
  18572                                                    
  18573         <ifNull>
  18574                                                              
  18575          <action 
  18576           action="se tAttribute
  18577           attribute= "nullFlavo r"
  18578          >
  18579           UNK
  18580          </action>
  18581                                                     
  18582         </ifNull>
  18583                                            
  18584        </mapping>
  18585                                           
  18586        <mapping>
  18587                                                    
  18588         <property 
  18589          optional=" true"
  18590         >
  18591          reaction
  18592         </property >
  18593                                                    
  18594         <xpath>
  18595          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
  18596                                                     
  18597         </xpath>
  18598                                                    
  18599         <ifNotNull >
  18600                                                              
  18601          <action 
  18602           action="se tValue" 
  18603          />
  18604                                                     
  18605         </ifNotNul l>
  18606                                                    
  18607         <ifNull>
  18608                                                              
  18609          <action 
  18610           action="re move" 
  18611           relative=" ../.." 
  18612          />
  18613                                                     
  18614         </ifNull>
  18615                                            
  18616        </mapping>
  18617                                           
  18618        <mapping>
  18619                                                    
  18620         <property>
  18621          providerID
  18622         </property >
  18623                                                    
  18624         <xpath>
  18625          cda:substa nceAdminis tration/cd a:performe r/cda:assi gnedEntity /cda:id
  18626         </xpath>
  18627                                                    
  18628         <ifNotNull >
  18629                                                              
  18630          <action 
  18631           action="se tAttribute
  18632           attribute= "extension
  18633          />
  18634                                                     
  18635         </ifNotNul l>
  18636                                            
  18637        </mapping>
  18638                                           
  18639        <mapping>
  18640                                                    
  18641         <property>
  18642          providerNa me
  18643         </property >
  18644                                                    
  18645         <xpath>
  18646          cda:substa nceAdminis tration/cd a:performe r/cda:assi gnedEntity /cda:assig nedPerson/ cda:name
  18647         </xpath>
  18648                                                    
  18649         <ifNotNull >
  18650                                                              
  18651          <action 
  18652           action="se tValue" 
  18653          />
  18654                                                     
  18655         </ifNotNul l>
  18656                                            
  18657        </mapping>
  18658                                           
  18659        <mapping>
  18660                                                    
  18661         <property>
  18662          cvxCode
  18663         </property >
  18664                                                    
  18665         <xpath>
  18666          cda:substa nceAdminis tration/cd a:consumab le/cda:man ufacturedP roduct/cda :manufactu redMateria l/cda:code
  18667         </xpath>
  18668                                                    
  18669         <ifNotNull >
  18670                                                              
  18671          <action 
  18672           action="se tAttribute
  18673           attribute= "code" 
  18674          />
  18675                                                     
  18676         </ifNotNul l>
  18677                                                    
  18678         <ifNull>
  18679                                                     
  18680          <action 
  18681           action="re moveAttrib utes"
  18682          >
  18683          </action>
  18684                                                     
  18685          <action 
  18686           action="se tAttribute
  18687           attribute= "nullFlavo r" 
  18688          >
  18689           UNK
  18690          </action>
  18691                                                     
  18692         </ifNull>                           
  18693                                            
  18694        </mapping>
  18695                                           
  18696                                           
  18697        <mapping>
  18698                                                    
  18699         <property>
  18700          cptCode
  18701         </property >
  18702                                                    
  18703         <xpath>
  18704          cda:substa nceAdminis tration/cd a:consumab le/cda:man ufacturedP roduct/cda :manufactu redMateria l/cda:code
  18705         </xpath>
  18706                                                    
  18707         <ifNotNull >
  18708                                                              
  18709          <action 
  18710           action="se tAttribute
  18711           attribute= "displayNa me"
  18712                                                                       
  18713           property=" cptDisplay
  18714          />
  18715                                                     
  18716         </ifNotNul l>
  18717                                            
  18718        </mapping>
  18719                                                                              
  18720                                           
  18721        <mapping>
  18722                                                    
  18723         <property>
  18724          cptCode
  18725         </property >
  18726                                                    
  18727         <xpath>
  18728          cda:substa nceAdminis tration/cd a:consumab le/cda:man ufacturedP roduct/cda :manufactu redMateria l/cda:code /cda:trans lation
  18729         </xpath>
  18730                                                    
  18731         <ifNotNull >
  18732                                                              
  18733          <action 
  18734           action="se tAttribute
  18735           attribute= "code" 
  18736          />
  18737                                                              
  18738          <action 
  18739           action="se tAttribute
  18740           attribute= "displayNa me"
  18741                                                                       
  18742           property=" cptDisplay
  18743          />
  18744                                                     
  18745         </ifNotNul l>
  18746                                                    
  18747         <ifNull>
  18748                                                              
  18749          <action 
  18750           action="re move" 
  18751          />
  18752                                                     
  18753         </ifNull>
  18754                                            
  18755        </mapping>
  18756                                           
  18757        <mapping>
  18758                                                    
  18759         <property>
  18760          facilityNu mber
  18761         </property >
  18762                                                    
  18763         <xpath>
  18764          cda:substa nceAdminis tration/cd a:author/c da:assigne dAuthor/cd a:represen tedOrganiz ation/cda: id
  18765         </xpath>
  18766                                                    
  18767         <ifNotNull >
  18768                                                              
  18769          <action 
  18770           action="se tAttribute
  18771           attribute= "extension
  18772          />
  18773                                                     
  18774         </ifNotNul l>
  18775                                            
  18776        </mapping>
  18777                                           
  18778        <mapping>
  18779                                                    
  18780         <property>
  18781          facilityNa me
  18782         </property >
  18783                                                    
  18784         <xpath>
  18785          cda:substa nceAdminis tration/cd a:author/c da:assigne dAuthor/cd a:represen tedOrganiz ation/cda: name
  18786         </xpath>
  18787                                                    
  18788         <ifNotNull >
  18789                                                              
  18790          <action 
  18791           action="se tValue" 
  18792          />
  18793                                                     
  18794         </ifNotNul l>
  18795                                            
  18796        </mapping>
  18797                                  
  18798       </mappings >
  18799                        
  18800      </mapping>
  18801                       
  18802      <!-- PROCE DURES NARR ATIVE -->
  18803                       
  18804      <mapping>
  18805                            
  18806       <property 
  18807        optional=" true"
  18808       >
  18809        surgicalPr oceduresNa rrative
  18810       </property >
  18811                            
  18812       <xpath>
  18813        /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']
  18814       </xpath>
  18815                            
  18816       <ifNotNull >
  18817                                  
  18818        <action 
  18819         action="se tValue" 
  18820         relative=" cda:sectio n/cda:text /cda:parag raph" 
  18821        />
  18822                             
  18823       </ifNotNul l>
  18824                        
  18825      </mapping>
  18826                       
  18827      <mapping>
  18828                            
  18829       <property 
  18830        optional=" true"
  18831       >
  18832        clinicalPr ocedureNot esNarrativ e
  18833       </property >
  18834                            
  18835       <xpath>
  18836        /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']
  18837       </xpath>
  18838                            
  18839       <ifNotNull >
  18840                                  
  18841        <action 
  18842         action="se tValue" 
  18843         relative=" cda:sectio n/cda:text /cda:table [@ID='Clin icalNotesT opHeader'] /cda:tbody /cda:tr/cd a:td" 
  18844        />
  18845                             
  18846       </ifNotNul l>
  18847                        
  18848      </mapping>
  18849                       
  18850      <mapping>
  18851                                 
  18852       <property 
  18853        collection ="true" 
  18854        optional=" true"
  18855       >
  18856        clinicalPr ocedureNot esDescript ions
  18857       </property >
  18858                                 
  18859       <xpath>
  18860        /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']
  18861       </xpath>
  18862                                 
  18863       <ifNotNull >
  18864                                           
  18865        <action 
  18866         action="ev aluateMapp ings"
  18867                                                   
  18868         relative=" cda:sectio n/cda:text /cda:table [@ID='Clin icalNotesN arrative'] /cda:tbody /cda:tr" 
  18869        />
  18870                                  
  18871       </ifNotNul l>
  18872                                 
  18873       <ifNull>
  18874                                           
  18875        <action 
  18876         action="re move" 
  18877         relative=" cda:sectio n/cda:text /cda:table [@ID='Clin icalNotesN arrative'] "
  18878        >
  18879        </action>
  18880                                           
  18881        <action 
  18882         action="re move" 
  18883         relative=" cda:sectio n/cda:text /cda:table [@ID='Clin icalNotesT opHeader'] "
  18884        >
  18885        </action>
  18886                                  
  18887       </ifNull>                                           
  18888                                 
  18889       <mappings>
  18890                                           
  18891        <mapping>
  18892                                                    
  18893         <property>
  18894          prettyRefe renceDateT ime
  18895         </property >
  18896                                                    
  18897         <xpath>
  18898          cda:td/cda :content[@ ID='clinic alNoteDate Time']
  18899         </xpath>
  18900                                                    
  18901         <ifNotNull >
  18902                                                              
  18903          <action 
  18904           action="se tAttribute
  18905           attribute= "ID" 
  18906           indexed="t rue"
  18907          >
  18908           prndDateTi me
  18909          </action>
  18910                                                              
  18911          <action 
  18912           action="se tValue" 
  18913          >
  18914          </action>
  18915                                                     
  18916         </ifNotNul l>
  18917                                                    
  18918         <ifNull>
  18919                                                              
  18920          <action 
  18921           action="se tAttribute
  18922           attribute= "ID" 
  18923           indexed="t rue"
  18924          >
  18925           prndDateTi me
  18926          </action>                                           
  18927                                                     
  18928         </ifNull>                                           
  18929                                            
  18930        </mapping>
  18931                                           
  18932        <mapping>
  18933                                                    
  18934         <property 
  18935          optional=" true"
  18936         >
  18937          content
  18938         </property >
  18939                                                    
  18940         <xpath>
  18941          cda:td/cda :content[@ ID='clinic alNoteEnco unterDescr iption']
  18942         </xpath>
  18943                                                    
  18944         <ifNotNull >
  18945                                                              
  18946          <action 
  18947           action="se tAttribute
  18948           attribute= "ID" 
  18949           indexed="t rue"
  18950          >
  18951           prndDescri ption
  18952          </action>
  18953                                                              
  18954          <action 
  18955           action="ap pendValue"  
  18956           property=" documentTi tle" 
  18957          />
  18958                                                              
  18959          <action 
  18960           action="ap pendValue"
  18961          >
  18962            : 
  18963          </action>
  18964                                                              
  18965          <action 
  18966           action="ap pendValue"  
  18967          />
  18968                                                     
  18969         </ifNotNul l>
  18970                                                    
  18971         <ifNull>
  18972                                                              
  18973          <action 
  18974           action="se tAttribute
  18975           attribute= "ID" 
  18976           indexed="t rue"
  18977          >
  18978           prndDescri ption
  18979          </action>
  18980                                                              
  18981          <action 
  18982           action="ap pendValue"  
  18983           property=" documentTi tle" 
  18984          />
  18985                                                              
  18986          <action 
  18987           action="ap pendValue"
  18988          >
  18989            : 
  18990          </action>
  18991                                                              
  18992          <action 
  18993           action="ap pendValue"
  18994          >
  18995           No text av ailable.
  18996          </action>                                                    
  18997                                                     
  18998         </ifNull>
  18999                                            
  19000        </mapping>
  19001                                           
  19002        <mapping>
  19003                                                    
  19004         <property 
  19005          optional=" true"
  19006         >
  19007          signingCli nician.nam e
  19008         </property >
  19009                                                    
  19010         <xpath>
  19011          cda:td/cda :content[@ ID='clinic alNoteProv ider']
  19012         </xpath>
  19013                                                    
  19014         <ifNotNull >
  19015                                                              
  19016          <action 
  19017           action="se tAttribute
  19018           attribute= "ID" 
  19019           indexed="t rue"
  19020          >
  19021           prndProvid er
  19022          </action>
  19023                                                              
  19024          <action 
  19025           action="se tValue" 
  19026          />
  19027                                                     
  19028         </ifNotNul l>
  19029                                                    
  19030         <ifNull>
  19031                                                              
  19032          <action 
  19033           action="se tAttribute
  19034           attribute= "ID" 
  19035           indexed="t rue"
  19036          >
  19037           prndProvid er
  19038          </action>
  19039                                                     
  19040         </ifNull>
  19041                                            
  19042        </mapping>
  19043                                           
  19044        <mapping>
  19045                                                    
  19046         <property>
  19047          facility.n ame
  19048         </property >
  19049                                                    
  19050         <xpath>
  19051          cda:td/cda :content[@ ID='clinic alNoteSour ce']
  19052         </xpath>
  19053                                                    
  19054         <ifNotNull >
  19055                                                              
  19056          <action 
  19057           action="se tAttribute
  19058           attribute= "ID" 
  19059           indexed="t rue"
  19060          >
  19061           prndSource
  19062          </action>
  19063                                                              
  19064          <action 
  19065           action="se tValue" 
  19066          />
  19067                                                     
  19068         </ifNotNul l>
  19069                                                    
  19070         <ifNull>
  19071                                                              
  19072          <action 
  19073           action="se tAttribute
  19074           attribute= "ID" 
  19075           indexed="t rue"
  19076          >
  19077           prndSource
  19078          </action>
  19079                                                     
  19080         </ifNull>
  19081                                            
  19082        </mapping>
  19083                                  
  19084       </mappings >
  19085                        
  19086      </mapping>
  19087                       
  19088      <!-- start  clinical  notes with  titles in stead of d escription s -->
  19089                       
  19090      <mapping>
  19091                                 
  19092       <property 
  19093        collection ="true" 
  19094        optional=" true"
  19095       >
  19096        clinicalPr ocedureNot esTitles
  19097       </property >
  19098                                 
  19099       <xpath>
  19100        /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']
  19101       </xpath>
  19102                                 
  19103       <ifNotNull >
  19104                                           
  19105        <action 
  19106         action="ev aluateMapp ings"
  19107                                                   
  19108         relative=" cda:sectio n/cda:text /cda:table [@ID='Clin icalNotesN arrative2' ]/cda:tbod y/cda:tr" 
  19109        />
  19110                                  
  19111       </ifNotNul l>
  19112                                 
  19113       <ifNull>
  19114                                           
  19115        <action 
  19116         action="re move" 
  19117         relative=" cda:sectio n/cda:text /cda:table [@ID='Clin icalNotesN arrative2' ]"
  19118        >
  19119        </action>
  19120                                           
  19121        <action 
  19122         action="re move" 
  19123         relative=" cda:sectio n/cda:text /cda:table [@ID='Clin icalNotesT opHeader2' ]"
  19124        >
  19125        </action>
  19126                                  
  19127       </ifNull>
  19128                                 
  19129       <mappings>
  19130                                           
  19131        <mapping>
  19132                                                    
  19133         <property>
  19134          prettyRefe renceDateT ime
  19135         </property >
  19136                                                    
  19137         <xpath>
  19138          cda:td/cda :content[@ ID='clinic alNoteDate Time2']
  19139         </xpath>
  19140                                                    
  19141         <ifNotNull >
  19142                                                              
  19143          <action 
  19144           action="se tAttribute
  19145           attribute= "ID" 
  19146           indexed="t rue"
  19147          >
  19148           prndDateTi me2
  19149          </action>
  19150                                                              
  19151          <action 
  19152           action="se tValue" 
  19153          >
  19154          </action>
  19155                                                     
  19156         </ifNotNul l>
  19157                                                    
  19158         <ifNull>
  19159                                                              
  19160          <action 
  19161           action="se tAttribute
  19162           attribute= "ID" 
  19163           indexed="t rue"
  19164          >
  19165           prndDateTi me2
  19166          </action>                                           
  19167                                                     
  19168         </ifNull>                                           
  19169                                            
  19170        </mapping>
  19171                                           
  19172        <mapping>
  19173                                                    
  19174         <property 
  19175          optional=" true"
  19176         >
  19177          localTitle
  19178         </property >
  19179                                                    
  19180         <xpath>
  19181          cda:td/cda :content[@ ID='clinic alNoteEnco unterDescr iption2']
  19182         </xpath>
  19183                                                    
  19184         <ifNotNull >
  19185                                                              
  19186          <action 
  19187           action="se tAttribute
  19188           attribute= "ID" 
  19189           indexed="t rue"
  19190          >
  19191           prndDescri ption2
  19192          </action>
  19193                                                              
  19194          <action 
  19195           action="ap pendValue"  
  19196           property=" localTitle
  19197          />
  19198                                                              
  19199          <action 
  19200           action="ap pendValue"
  19201          >
  19202            : 
  19203          </action>
  19204                                                              
  19205          <action 
  19206           action="ap pendValue"  
  19207          />
  19208                                                     
  19209         </ifNotNul l>
  19210                                                    
  19211         <ifNull>
  19212                                                              
  19213          <action 
  19214           action="se tAttribute
  19215           attribute= "ID" 
  19216           indexed="t rue"
  19217          >
  19218           prndDescri ption2
  19219          </action>
  19220                                                              
  19221          <action 
  19222           action="ap pendValue"  
  19223           property=" localTitle
  19224          />
  19225                                                              
  19226          <action 
  19227           action="ap pendValue"
  19228          >
  19229            : 
  19230          </action>
  19231                                                              
  19232          <action 
  19233           action="ap pendValue"
  19234          >
  19235           No text av ailable.
  19236          </action>                                                    
  19237                                                     
  19238         </ifNull>
  19239                                            
  19240        </mapping>
  19241                                           
  19242        <mapping>
  19243                                                    
  19244         <property 
  19245          optional=" true"
  19246         >
  19247          signingCli nician.nam e
  19248         </property >
  19249                                                    
  19250         <xpath>
  19251          cda:td/cda :content[@ ID='clinic alNoteProv ider2']
  19252         </xpath>
  19253                                                    
  19254         <ifNotNull >
  19255                                                              
  19256          <action 
  19257           action="se tAttribute
  19258           attribute= "ID" 
  19259           indexed="t rue"
  19260          >
  19261           prndProvid er2
  19262          </action>
  19263                                                              
  19264          <action 
  19265           action="se tValue" 
  19266          />
  19267                                                     
  19268         </ifNotNul l>
  19269                                                    
  19270         <ifNull>
  19271                                                              
  19272          <action 
  19273           action="se tAttribute
  19274           attribute= "ID" 
  19275           indexed="t rue"
  19276          >
  19277           prndProvid er2
  19278          </action>
  19279                                                     
  19280         </ifNull>
  19281                                            
  19282        </mapping>
  19283                                           
  19284        <mapping>
  19285                                                    
  19286         <property>
  19287          facility.n ame
  19288         </property >
  19289                                                    
  19290         <xpath>
  19291          cda:td/cda :content[@ ID='clinic alNoteSour ce2']
  19292         </xpath>
  19293                                                    
  19294         <ifNotNull >
  19295                                                              
  19296          <action 
  19297           action="se tAttribute
  19298           attribute= "ID" 
  19299           indexed="t rue"
  19300          >
  19301           prndSource 2
  19302          </action>
  19303                                                              
  19304          <action 
  19305           action="se tValue" 
  19306          />
  19307                                                     
  19308         </ifNotNul l>
  19309                                                    
  19310         <ifNull>
  19311                                                              
  19312          <action 
  19313           action="se tAttribute
  19314           attribute= "ID" 
  19315           indexed="t rue"
  19316          >
  19317           prndSource 2
  19318          </action>
  19319                                                     
  19320         </ifNull>
  19321                                            
  19322        </mapping>
  19323                                  
  19324       </mappings >
  19325                        
  19326      </mapping>
  19327     
  19328                       
  19329      <!-- Start  Surgical  Notes -->
  19330                       
  19331      <mapping>
  19332                            
  19333       <property 
  19334        optional=" true"
  19335       >
  19336        surgicalPr ocedureNot esNarrativ e
  19337       </property >
  19338                            
  19339       <xpath>
  19340        /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']
  19341       </xpath>
  19342                            
  19343       <ifNotNull >
  19344                                  
  19345        <action 
  19346         action="se tValue" 
  19347         relative=" cda:sectio n/cda:text /cda:table [@ID='Surg icalNotesT opHeader'] /cda:tbody /cda:tr/cd a:td" 
  19348        />
  19349                             
  19350       </ifNotNul l>
  19351                        
  19352      </mapping>
  19353                       
  19354      <mapping>
  19355                                 
  19356       <property 
  19357        collection ="true" 
  19358        optional=" true"
  19359       >
  19360        procedureD ocs
  19361       </property >
  19362                                 
  19363       <xpath>
  19364        /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']
  19365       </xpath>
  19366                                 
  19367       <ifNotNull >
  19368                                           
  19369        <action 
  19370         action="ev aluateMapp ings"
  19371                                                   
  19372         relative=" cda:sectio n/cda:text /cda:table [@ID='Surg icalNotesN arrative'] /cda:tbody /cda:tr" 
  19373        />
  19374                                  
  19375       </ifNotNul l>
  19376                                 
  19377       <ifNull>
  19378                                           
  19379        <action 
  19380         action="re move" 
  19381         relative=" cda:sectio n/cda:text /cda:table [@ID='Surg icalNotesN arrative'] "
  19382        >
  19383        </action>
  19384                                           
  19385        <action 
  19386         action="re move" 
  19387         relative=" cda:sectio n/cda:text /cda:table [@ID='Surg icalNotesT opHeader'] "
  19388        >
  19389        </action>
  19390                                  
  19391       </ifNull>                          
  19392                                 
  19393       <mappings>
  19394                                           
  19395        <mapping>
  19396                                                    
  19397         <property>
  19398          prettyRefe renceDateT ime
  19399         </property >
  19400                                                    
  19401         <xpath>
  19402          cda:td/cda :content[@ ID='surgic alNoteDate Time']
  19403         </xpath>
  19404                                                    
  19405         <ifNotNull >
  19406                                                              
  19407          <action 
  19408           action="se tAttribute
  19409           attribute= "ID" 
  19410           indexed="t rue"
  19411          >
  19412           prndDateTi me
  19413          </action>
  19414                                                              
  19415          <action 
  19416           action="se tValue" 
  19417          >
  19418          </action>
  19419                                                     
  19420         </ifNotNul l>
  19421                                                    
  19422         <ifNull>
  19423                                                              
  19424          <action 
  19425           action="se tAttribute
  19426           attribute= "ID" 
  19427           indexed="t rue"
  19428          >
  19429           prndDateTi me
  19430          </action>                                           
  19431                                                     
  19432         </ifNull>                                           
  19433                                            
  19434        </mapping>
  19435                                           
  19436        <mapping>
  19437                                                    
  19438         <property 
  19439          optional=" true"
  19440         >
  19441          content
  19442         </property >
  19443                                                    
  19444         <xpath>
  19445          cda:td/cda :content[@ ID='surgic alNoteEnco unterDescr iption']
  19446         </xpath>
  19447                                                    
  19448         <ifNotNull >
  19449                                                              
  19450          <action 
  19451           action="se tAttribute
  19452           attribute= "ID" 
  19453           indexed="t rue"
  19454          >
  19455           prndDescri ption
  19456          </action>
  19457                                                              
  19458          <action 
  19459           action="ap pendValue"  
  19460           property=" documentTi tle" 
  19461          />
  19462                                                              
  19463          <action 
  19464           action="ap pendValue"
  19465          >
  19466            : 
  19467          </action>
  19468                                                              
  19469          <action 
  19470           action="ap pendValue"  
  19471          />
  19472                                                     
  19473         </ifNotNul l>
  19474                                                    
  19475         <ifNull>
  19476                                                              
  19477          <action 
  19478           action="se tAttribute
  19479           attribute= "ID" 
  19480           indexed="t rue"
  19481          >
  19482           prndDescri ption
  19483          </action>
  19484                                                              
  19485          <action 
  19486           action="ap pendValue"  
  19487           property=" documentTi tle" 
  19488          />
  19489                                                              
  19490          <action 
  19491           action="ap pendValue"
  19492          >
  19493            : 
  19494          </action>
  19495                                                              
  19496          <action 
  19497           action="ap pendValue"
  19498          >
  19499           No text av ailable.
  19500          </action>                                                    
  19501                                                     
  19502         </ifNull>
  19503                                            
  19504        </mapping>
  19505                                           
  19506        <mapping>
  19507                                                    
  19508         <property 
  19509          optional=" true"
  19510         >
  19511          signingCli nician.nam e
  19512         </property >
  19513                                                    
  19514         <xpath>
  19515          cda:td/cda :content[@ ID='surgic alNoteProv ider']
  19516         </xpath>
  19517                                                    
  19518         <ifNotNull >
  19519                                                              
  19520          <action 
  19521           action="se tAttribute
  19522           attribute= "ID" 
  19523           indexed="t rue"
  19524          >
  19525           prndProvid er
  19526          </action>
  19527                                                              
  19528          <action 
  19529           action="se tValue" 
  19530          />
  19531                                                     
  19532         </ifNotNul l>
  19533                                                    
  19534         <ifNull>
  19535                                                              
  19536          <action 
  19537           action="se tAttribute
  19538           attribute= "ID" 
  19539           indexed="t rue"
  19540          >
  19541           prndProvid er
  19542          </action>
  19543                                                     
  19544         </ifNull>
  19545                                            
  19546        </mapping>
  19547                                           
  19548        <mapping>
  19549                                                    
  19550         <property>
  19551          facility.n ame
  19552         </property >
  19553                                                    
  19554         <xpath>
  19555          cda:td/cda :content[@ ID='surgic alNoteSour ce']
  19556         </xpath>
  19557                                                    
  19558         <ifNotNull >
  19559                                                              
  19560          <action 
  19561           action="se tAttribute
  19562           attribute= "ID" 
  19563           indexed="t rue"
  19564          >
  19565           prndSource
  19566          </action>
  19567                                                              
  19568          <action 
  19569           action="se tValue" 
  19570          />
  19571                                                     
  19572         </ifNotNul l>
  19573                                                    
  19574         <ifNull>
  19575                                                              
  19576          <action 
  19577           action="se tAttribute
  19578           attribute= "ID" 
  19579           indexed="t rue"
  19580          >
  19581           prndSource
  19582          </action>
  19583                                                     
  19584         </ifNull>
  19585                                            
  19586        </mapping>
  19587                                  
  19588       </mappings >
  19589                        
  19590      </mapping>
  19591                       
  19592      <!-- End S urgical No tes -->
  19593                       
  19594                       
  19595      <mapping>
  19596                                 
  19597       <property 
  19598        collection ="true" 
  19599        optional=" true"
  19600       >
  19601        surgeries
  19602       </property >
  19603                                 
  19604       <xpath>
  19605        /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']
  19606       </xpath>
  19607                                 
  19608       <ifNotNull >
  19609                                           
  19610        <action 
  19611         action="ev aluateMapp ings"
  19612                                                   
  19613         relative=" cda:sectio n/cda:text /cda:table [@ID='proc edureNarra tive']/cda :tbody/cda :tr" 
  19614        />
  19615                                  
  19616       </ifNotNul l>
  19617                                 
  19618       <ifNull>
  19619                                      
  19620        <action 
  19621         action="re move" 
  19622         relative=" cda:sectio n/cda:text /cda:table [@ID='proc edureNarra tive']"
  19623        />
  19624                                      
  19625        <action 
  19626         action="re move" 
  19627         relative=" cda:sectio n/cda:text /cda:parag raph[@ID=' procedureN arrativeIn tro']"
  19628        />
  19629                                  
  19630       </ifNull>                           
  19631                                 
  19632       <mappings>
  19633                                           
  19634        <mapping>
  19635                                                    
  19636         <property>
  19637          prettyDate Time
  19638         </property >
  19639                                                    
  19640         <xpath>
  19641          cda:td/cda :content[@ ID='prndDa teTime']
  19642         </xpath>
  19643                                                    
  19644         <ifNotNull >
  19645                                                              
  19646          <action 
  19647           action="se tAttribute
  19648           attribute= "ID" 
  19649           indexed="t rue"
  19650          >
  19651           prndDateTi me
  19652          </action>
  19653                                                              
  19654          <action 
  19655           action="se tValue" 
  19656          />
  19657                                                     
  19658         </ifNotNul l>
  19659                                            
  19660        </mapping>
  19661                                           
  19662        <mapping>
  19663                                                    
  19664         <property 
  19665          optional=" true"
  19666         >
  19667          type
  19668         </property >
  19669                                                    
  19670         <xpath>
  19671          cda:td/cda :content[@ ID='prndPr ocedureTyp e']
  19672         </xpath>
  19673                                                    
  19674         <ifNotNull >
  19675                                                              
  19676          <action 
  19677           action="se tAttribute
  19678           attribute= "ID" 
  19679           indexed="t rue"
  19680          >
  19681           prndProced ureType
  19682          </action>
  19683                                                              
  19684          <action 
  19685           action="se tValue" 
  19686           property=" type.name"  
  19687          />
  19688                                                     
  19689         </ifNotNul l>
  19690                                                    
  19691         <ifNull>
  19692                                                              
  19693          <action 
  19694           action="se tAttribute
  19695           attribute= "ID" 
  19696           indexed="t rue"
  19697          >
  19698           prndProced ureType
  19699          </action>
  19700                                                     
  19701         </ifNull>
  19702                                            
  19703        </mapping>
  19704                                           
  19705        <mapping >
  19706                                                    
  19707         <property 
  19708          optional=" true"
  19709         >
  19710          otherProce dures
  19711         </property >
  19712                                                    
  19713         <xpath>
  19714          cda:td/cda :list/cda: item[cda:c ontent/@ID ='prndQual ifiers']
  19715         </xpath>
  19716                                                    
  19717         <ifNotNull >
  19718                                                              
  19719          <action 
  19720           action="se tValue" 
  19721           relative=" cda:conten t[@ID='prn dQualifier s']"
  19722          >
  19723           Other Proc edure CPT  Code 
  19724          </action>
  19725                                                              
  19726          <action 
  19727           action="se tAttribute
  19728           relative=" cda:conten t[@ID='prn dQualifier s']"
  19729                                                                       
  19730           attribute= "ID" 
  19731           indexed="t rue"
  19732          >
  19733           prndQualif iers
  19734          </action>
  19735                                                              
  19736          <action 
  19737           action="ev aluateMapp ings" 
  19738          />
  19739                                                     
  19740         </ifNotNul l>
  19741                                                    
  19742         <ifNull>
  19743                                                              
  19744          <action 
  19745           action="re move" 
  19746           relative=" .." 
  19747                                                                       >
  19748           prndQualif iers
  19749          </action>
  19750                                                     
  19751         </ifNull>
  19752                                                    
  19753         <mappings>
  19754                                                              
  19755          <mapping>
  19756                                                                        
  19757           <property>
  19758            name
  19759           </property >
  19760                                                                        
  19761           <xpath>
  19762            cda:conten t
  19763           </xpath>
  19764                                                                        
  19765           <ifNotNull >
  19766                                                                                  
  19767            <action 
  19768             action="ap pendAttrib ute" 
  19769             attribute= "ID" 
  19770             indexed="t rue"
  19771            >
  19772             of
  19773            </action>
  19774                                                                                  
  19775            <action 
  19776             action="ap pendValue"  
  19777            />
  19778                                                                         
  19779           </ifNotNul l>
  19780                                                               
  19781          </mapping>
  19782                                                     
  19783         </mappings >
  19784                                            
  19785        </mapping>
  19786                                   
  19787                                           
  19788        <mapping >
  19789                                                    
  19790         <property 
  19791          optional=" true"
  19792         >
  19793          name
  19794         </property >
  19795                                                    
  19796         <xpath>
  19797          cda:td/cda :content[@ ID='prndDe scription' ]
  19798         </xpath>
  19799                                                    
  19800         <ifNotNull >
  19801                                                              
  19802          <action 
  19803           action="se tAttribute
  19804           attribute= "ID" 
  19805           indexed="t rue"
  19806          >
  19807           prndDescri ption
  19808          </action>
  19809                                                              
  19810          <action 
  19811           action="se tValue" 
  19812          />
  19813                                                     
  19814         </ifNotNul l>
  19815                                                    
  19816         <ifNull>
  19817                                                              
  19818          <action 
  19819           action="se tAttribute
  19820           attribute= "ID" 
  19821           indexed="t rue"
  19822          >
  19823           prndDescri ption
  19824          </action>
  19825                                                     
  19826         </ifNull>
  19827                                            
  19828        </mapping>
  19829                                            
  19830                                           
  19831        <mapping>
  19832                                                    
  19833         <property>
  19834          provider.n ame
  19835         </property >
  19836                                                    
  19837         <xpath>
  19838          cda:td/cda :content[@ ID='prndPr ovider']
  19839         </xpath>
  19840                                                    
  19841         <ifNotNull >
  19842                                                              
  19843          <action 
  19844           action="se tAttribute
  19845           attribute= "ID" 
  19846           indexed="t rue"
  19847          >
  19848           prndProvid er
  19849          </action>
  19850                                                              
  19851          <action 
  19852           action="se tValue" 
  19853          />
  19854                                                     
  19855         </ifNotNul l>
  19856                                                    
  19857         <ifNull>
  19858                                                              
  19859          <action 
  19860           action="se tAttribute
  19861           attribute= "ID" 
  19862           indexed="t rue"
  19863          >
  19864           prndProvid er
  19865          </action>
  19866                                                              
  19867          <action 
  19868           action="se tValue"
  19869          >
  19870           Unknown
  19871          </action>
  19872                                                     
  19873         </ifNull>
  19874                                            
  19875        </mapping>
  19876                                           
  19877        <mapping>
  19878                                                    
  19879         <property>
  19880          facility.n ame
  19881         </property >
  19882                                                    
  19883         <xpath>
  19884          cda:td/cda :content[@ ID='prndSo urce']
  19885         </xpath>
  19886                                                    
  19887         <ifNotNull >
  19888                                                              
  19889          <action 
  19890           action="se tAttribute
  19891           attribute= "ID" 
  19892           indexed="t rue"
  19893          >
  19894           prndSource
  19895          </action>
  19896                                                              
  19897          <action 
  19898           action="se tValue" 
  19899          />
  19900                                                     
  19901         </ifNotNul l>
  19902                                            
  19903        </mapping>
  19904                                  
  19905       </mappings >
  19906                        
  19907      </mapping>
  19908                       
  19909      <!-- PROCE DURES CODE D SECTION  -->
  19910                       
  19911      <mapping>
  19912                                 
  19913       <property 
  19914        collection ="true" 
  19915        optional=" true"
  19916       >
  19917        surgeries, clinicalPr ocedureNot es,procedu reDocs
  19918       </property >
  19919                                 
  19920       <xpath>
  19921        /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']
  19922       </xpath>
  19923                                 
  19924       <ifNotNull >
  19925                                           
  19926        <action 
  19927         action="ev aluateMapp ings" 
  19928         relative=" cda:sectio n/cda:entr y" 
  19929        />
  19930                                  
  19931       </ifNotNul l>
  19932                                 
  19933       <ifNull>
  19934                                           
  19935        <action 
  19936         action="re move" 
  19937         relative=" cda:sectio n/cda:entr y"
  19938        >
  19939         NI
  19940        </action>
  19941                                           
  19942        <action 
  19943         action="se tValue" 
  19944         relative=" cda:sectio n/cda:text "
  19945        >
  19946         No Data Pr ovided for  This Sect ion
  19947        </action>
  19948                                           
  19949        <action 
  19950         action="se tAttribute
  19951         relative=" cda:sectio n"
  19952                                                   
  19953         attribute= "nullFlavo r"
  19954        >
  19955         NI
  19956        </action>
  19957                                  
  19958       </ifNull>
  19959                                 
  19960       <mappings>
  19961                                            
  19962                                           
  19963        <mapping >
  19964                                                    
  19965         <property>
  19966          facility
  19967         </property >
  19968                                                    
  19969         <xpath>
  19970          .
  19971         </xpath>
  19972                                                    
  19973         <ifNotNull >
  19974                                                              
  19975          <action 
  19976           action="re move" 
  19977           relative=" cda:observ ation" 
  19978          />
  19979                                                     
  19980         </ifNotNul l>
  19981                                            
  19982        </mapping>
  19983                                           
  19984        <mapping 
  19985         equalsProp erty="cate gory" 
  19986         equalsValu e="SR" 
  19987        >
  19988                                                    
  19989         <property 
  19990          optional=" true"
  19991         >
  19992          type
  19993         </property >
  19994                                                    
  19995         <xpath>
  19996          cda:proced ure/cda:co de
  19997         </xpath>
  19998                                                    
  19999         <ifNotNull >
  20000                                                              
  20001          <action 
  20002           action="re moveAttrib utes" 
  20003          />
  20004                                                              
  20005          <action 
  20006           action="se tAttribute
  20007           attribute= "code" 
  20008           property=" type.code"  
  20009          />
  20010                                                              
  20011          <action 
  20012           action="se tAttribute
  20013           attribute= "codeSyste m"
  20014          >
  20015           2.16.840.1 .113883.6. 12
  20016          </action>
  20017                                                              
  20018          <action 
  20019           action="se tAttribute
  20020           attribute= "codeSyste mName"
  20021          >
  20022           CPT-4
  20023          </action>
  20024                                                              
  20025          <action 
  20026           action="se tAttribute
  20027           attribute= "displayNa me"
  20028                                                                       
  20029           property=" type.name"  
  20030          />
  20031                                                              
  20032          <action 
  20033           action="se tAttribute
  20034           relative=" cda:origin alText/cda :reference "
  20035                                                                       
  20036           attribute= "value" 
  20037           indexed="t rue"
  20038          >
  20039           #prndDescr iption
  20040          </action>
  20041                                                              
  20042          <action 
  20043           action="se tAttribute
  20044           relative=" cda:transl ation/cda: originalTe xt/cda:ref erence"
  20045                                                                       
  20046           attribute= "value" 
  20047           indexed="t rue"
  20048          >
  20049           #prndDescr iption
  20050          </action>
  20051                                                              
  20052          <action 
  20053           action="se tAttribute
  20054           relative=" cda:origin alText/cda :reference "
  20055                                                                       
  20056           attribute= "value" 
  20057           indexed="t rue"
  20058          >
  20059           #prndDescr iption
  20060          </action>
  20061                                                                       
  20062                                                     
  20063         </ifNotNul l>
  20064                                            
  20065        </mapping>
  20066                                           
  20067        <mapping 
  20068         notEqualsP roperty="c ategory" 
  20069         notEqualsV alue="SR" 
  20070        >
  20071                                                    
  20072         <property 
  20073          optional=" true"
  20074         >
  20075          type
  20076         </property >
  20077                                                    
  20078         <xpath>
  20079          cda:proced ure/cda:co de
  20080         </xpath>
  20081                                                    
  20082         <ifNotNull >
  20083                                                              
  20084          <action 
  20085           action="re moveAttrib utes" 
  20086          />
  20087                                                              
  20088          <action 
  20089           action="se tAttribute
  20090           attribute= "code" 
  20091           property=" type.code"  
  20092          />
  20093                                                              
  20094          <action 
  20095           action="se tAttribute
  20096           attribute= "codeSyste m"
  20097          >
  20098           2.16.840.1 .113883.6. 12
  20099          </action>
  20100                                                              
  20101          <action 
  20102           action="se tAttribute
  20103           attribute= "codeSyste mName"
  20104          >
  20105           CPT-4
  20106          </action>
  20107                                                              
  20108          <action 
  20109           action="re moveChildr en" 
  20110          />
  20111                                                              
  20112          <action 
  20113           action="se tAttribute
  20114           attribute= "nullFlavo r"
  20115          >
  20116           UNK
  20117          </action>
  20118                                                     
  20119         </ifNotNul l>
  20120                                            
  20121        </mapping>                                 
  20122                                           
  20123        <mapping >
  20124                                                    
  20125         <property 
  20126          optional=" true"
  20127         >
  20128          nationalTi tle
  20129         </property >
  20130                                                    
  20131         <xpath>
  20132          cda:proced ure/cda:co de
  20133         </xpath>
  20134                                                    
  20135         <ifNotNull >
  20136                                                              
  20137          <action 
  20138           action="re moveAttrib utes" 
  20139          />
  20140                                                              
  20141          <action 
  20142           action="se tAttribute
  20143           attribute= "code"  
  20144          >
  20145           99499
  20146          </action>
  20147                                                              
  20148          <action 
  20149           action="se tAttribute
  20150           attribute= "displayNa me"
  20151                                                                        >
  20152           Unlisted E valuation  and Manage ment Servi ce
  20153          </action>
  20154                                                              
  20155          <action 
  20156           action="se tAttribute
  20157           attribute= "codeSyste m"
  20158          >
  20159           2.16.840.1 .113883.6. 12
  20160          </action>         
  20161                                                              
  20162          <action 
  20163           action="se tAttribute
  20164           attribute= "codeSyste mName"
  20165                                                                        >
  20166           CPT-4
  20167          </action>         
  20168                                                              
  20169          <action 
  20170           action="se tAttribute
  20171           relative=" cda:origin alText/cda :reference "
  20172                                                                       
  20173           attribute= "value" 
  20174           indexed="t rue"
  20175          >
  20176           #prndDescr iption
  20177          </action>                 
  20178                                                                                                                   
  20179          <action 
  20180           action="se tAttribute
  20181           relative=" cda:transl ation/cda: originalTe xt/cda:ref erence"
  20182                                                                       
  20183           attribute= "value" 
  20184           indexed="t rue"
  20185          >
  20186           #prndDescr iption
  20187          </action>                                                    
  20188                                                              
  20189          <action 
  20190           action="se tAttribute
  20191           relative=" cda:transl ation" 
  20192           attribute= "code"  
  20193          >
  20194           28570-0
  20195          </action>
  20196                                                              
  20197          <action 
  20198           action="se tAttribute
  20199           relative=" cda:transl ation" 
  20200           attribute= "codeSyste m"
  20201          >
  20202           2.16.840.1 .113883.6. 1
  20203          </action>
  20204                                                              
  20205          <action 
  20206           action="se tAttribute
  20207           relative=" cda:transl ation" 
  20208           attribute= "codeSyste mName"
  20209          >
  20210           LOINC
  20211          </action>
  20212                                                              
  20213          <action 
  20214           action="se tAttribute
  20215           relative=" cda:transl ation" 
  20216           attribute= "displayNa me" 
  20217          >
  20218           Procedure  Note
  20219          </action>
  20220                                                     
  20221         </ifNotNul l>
  20222                                                    
  20223         <ifNull>
  20224                                                     
  20225          <action 
  20226           action="re move" 
  20227           relative=" cda:transl ation"
  20228          >
  20229          </action>
  20230                                                     
  20231         </ifNull>
  20232                                            
  20233        </mapping>
  20234                                           
  20235                                           
  20236        <mapping 
  20237         equalsProp erty="cate gory" 
  20238         equalsValu e="SR" 
  20239        >
  20240                                                    
  20241         <property 
  20242          optional=" true"
  20243         >
  20244          type
  20245         </property >
  20246                                                    
  20247         <xpath>
  20248          cda:proced ure/cda:co de/cda:tra nslation
  20249         </xpath>
  20250                                                    
  20251         <ifNotNull >
  20252                                                              
  20253          <action 
  20254           action="se tAttribute
  20255           attribute= "code" 
  20256          >
  20257           29752-3
  20258          </action>
  20259                                                              
  20260          <action 
  20261           action="se tAttribute
  20262           attribute= "displayNa me" 
  20263          >
  20264           Perioperat ive Record s
  20265          </action>
  20266                                                              
  20267          <action 
  20268           action="se tAttribute
  20269           attribute= "codeSyste m" 
  20270          >
  20271           2.16.840.1 .113883.6. 1
  20272          </action>
  20273                                                              
  20274          <action 
  20275           action="se tAttribute
  20276           attribute= "codeSyste mName" 
  20277          >
  20278           LOINC
  20279          </action>                                                    
  20280                                                              
  20281                                                     
  20282         </ifNotNul l>
  20283                                            
  20284        </mapping>                                 
  20285                                           
  20286                                           
  20287        <mapping>
  20288                                                    
  20289         <property 
  20290          optional=" true"
  20291         >
  20292          type|natio nalTitle
  20293         </property >
  20294                                                    
  20295         <xpath>
  20296          cda:proced ure/cda:co de/cda:ori ginalText
  20297         </xpath>
  20298                                                    
  20299         <ifNotNull />
  20300                                                    
  20301         <ifNull>
  20302                                                              
  20303          <action 
  20304           action="re move" 
  20305          />
  20306                                                     
  20307         </ifNull>
  20308                                            
  20309        </mapping>                                 
  20310       
  20311                                   
  20312        <!--  <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" >   -->
  20313                                           
  20314        <mapping >
  20315                                                    
  20316         <property 
  20317          optional=" true"
  20318         >
  20319          otherProce dures
  20320         </property >
  20321                                                    
  20322         <xpath>
  20323          cda:proced ure/cda:co de/cda:qua lifier
  20324         </xpath>
  20325                                                    
  20326         <ifNotNull >
  20327                                                              
  20328          <action 
  20329           action="se tAttribute
  20330           relative=" cda:name"
  20331                                                                       
  20332           attribute= "displayNa me"
  20333          >
  20334           Other Proc edure CPT  Code
  20335          </action>
  20336                                                              
  20337          <action 
  20338           action="ev aluateMapp ings" 
  20339          />
  20340                                                     
  20341         </ifNotNul l>
  20342                                                    
  20343         <ifNull>
  20344                                                              
  20345          <action 
  20346           action="re move" 
  20347          />
  20348                                                     
  20349         </ifNull>
  20350                                                    
  20351         <mappings>
  20352                                                              
  20353          <mapping>
  20354                                                                        
  20355           <property>
  20356            code
  20357           </property >
  20358                                                                        
  20359           <xpath>
  20360            cda:value
  20361           </xpath>
  20362                                                                        
  20363           <ifNotNull >
  20364                                                                                  
  20365            <action 
  20366             action="se tAttribute
  20367             attribute= "code" 
  20368            />
  20369                                                                         
  20370           </ifNotNul l>
  20371                                                               
  20372          </mapping>
  20373                                                              
  20374          <mapping>
  20375                                                                        
  20376           <property>
  20377            name
  20378           </property >
  20379                                                                        
  20380           <xpath>
  20381            cda:value
  20382           </xpath>
  20383                                                                        
  20384           <ifNotNull >
  20385                                                                                  
  20386            <action 
  20387             action="se tAttribute
  20388             attribute= "displayNa me" 
  20389            />
  20390                                                                         
  20391           </ifNotNul l>
  20392                                                               
  20393          </mapping>
  20394                                                     
  20395         </mappings >
  20396                                            
  20397        </mapping>
  20398                                   
  20399                                           
  20400        <mapping >
  20401                                                    
  20402         <property>
  20403          dateTime|r eferenceDa teTime
  20404         </property >
  20405                                                    
  20406         <xpath>
  20407          cda:proced ure/cda:ef fectiveTim e
  20408         </xpath>
  20409                                                    
  20410         <ifNotNull >
  20411                                                              
  20412          <action 
  20413           action="se tAttribute
  20414           attribute= "value" 
  20415          />
  20416                                                     
  20417         </ifNotNul l>
  20418                                            
  20419        </mapping>
  20420                                    
  20421                                           
  20422                                           
  20423                                           
  20424        <mapping >
  20425                                                    
  20426         <property>
  20427          provider.n ame|signin gClinician .name
  20428         </property >
  20429                                                    
  20430         <xpath>
  20431          cda:proced ure/cda:pe rformer/cd a:assigned Entity/cda :assignedP erson/cda: name
  20432         </xpath>
  20433                                                    
  20434         <ifNotNull >
  20435                                                              
  20436          <action 
  20437           action="se tValue" 
  20438          />
  20439                                                     
  20440         </ifNotNul l>
  20441                                                    
  20442         <ifNull>
  20443                                                              
  20444          <action 
  20445           action="se tValue"
  20446          >
  20447           Unknown
  20448          </action>
  20449                                                     
  20450         </ifNull>
  20451                                            
  20452        </mapping>
  20453                                   
  20454                                           
  20455        <mapping >
  20456                                                    
  20457         <property>
  20458          facility.c ode
  20459         </property >
  20460                                                    
  20461         <xpath>
  20462          cda:proced ure/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:id
  20463         </xpath>
  20464                                                    
  20465         <ifNotNull >
  20466                                                              
  20467          <action 
  20468           action="se tAttribute
  20469           attribute= "extension
  20470          />
  20471                                                     
  20472         </ifNotNul l>
  20473                                            
  20474        </mapping>
  20475                                           
  20476        <mapping >
  20477                                                    
  20478         <property>
  20479          facility.n ame
  20480         </property >
  20481                                                    
  20482         <xpath>
  20483          cda:proced ure/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:name
  20484         </xpath>
  20485                                                    
  20486         <ifNotNull >
  20487                                                              
  20488          <action 
  20489           action="se tValue" 
  20490          />
  20491                                                     
  20492         </ifNotNul l>
  20493                                            
  20494        </mapping>
  20495                                   
  20496                                  
  20497       </mappings >
  20498                        
  20499      </mapping>
  20500     
  20501     
  20502                       
  20503      <mapping>
  20504                                 
  20505       <property 
  20506        collection ="true" 
  20507        merge="tru e"
  20508       >
  20509        healthFact ors
  20510       </property >
  20511                                 
  20512       <xpath>
  20513        /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']
  20514       </xpath>
  20515                                 
  20516       <ifNotNull >
  20517                                           
  20518        <action 
  20519         action="ev aluateMapp ings"
  20520                                                   
  20521         relative=" cda:sectio n/cda:text /cda:table [@ID='fact orsNarrati ve']/cda:t body/cda:t r" 
  20522        />
  20523                                  
  20524       </ifNotNul l>
  20525                                 
  20526       <mappings>
  20527                                           
  20528        <mapping>
  20529                                                    
  20530         <property>
  20531          factorName
  20532         </property >
  20533                                                    
  20534         <xpath>
  20535          cda:td/cda :content[@ ID='hfName ']
  20536         </xpath>
  20537                                                    
  20538         <ifNotNull >
  20539                                                              
  20540          <action 
  20541           action="se tAttribute
  20542           attribute= "ID" 
  20543           indexed="t rue"
  20544          >
  20545           hfName
  20546          </action>
  20547                                                              
  20548          <action 
  20549           action="se tValue" 
  20550          />
  20551                                                     
  20552         </ifNotNul l>
  20553                                            
  20554        </mapping>
  20555                                           
  20556        <mapping>
  20557                                                    
  20558         <property 
  20559          optional=" true"
  20560         >
  20561          factorComm ent
  20562         </property >
  20563                                                    
  20564         <xpath>
  20565          cda:td/cda :content[@ ID='hfComm ent']
  20566         </xpath>
  20567                                                    
  20568         <ifNotNull >
  20569                                                              
  20570          <action 
  20571           action="se tAttribute
  20572           attribute= "ID" 
  20573           indexed="t rue"
  20574          >
  20575           hfComment
  20576          </action>
  20577                                                              
  20578          <action 
  20579           action="se tValue" 
  20580          />
  20581                                                     
  20582         </ifNotNul l>
  20583                                                    
  20584         <ifNull>
  20585                                                              
  20586          <action 
  20587           action="se tAttribute
  20588           attribute= "ID" 
  20589           indexed="t rue"
  20590          >
  20591           hfComment
  20592          </action>
  20593                                                     
  20594         </ifNull>
  20595                                            
  20596        </mapping>
  20597                                           
  20598        <mapping>
  20599                                                    
  20600         <property 
  20601          optional=" true"
  20602         >
  20603          factorFull Severity
  20604         </property >
  20605                                                    
  20606         <xpath>
  20607          cda:td/cda :content[@ ID='hfSeve rity']
  20608         </xpath>
  20609                                                    
  20610         <ifNotNull >
  20611                                                              
  20612          <action 
  20613           action="se tAttribute
  20614           attribute= "ID" 
  20615           indexed="t rue"
  20616          >
  20617           hfSeverity
  20618          </action>
  20619                                                              
  20620          <action 
  20621           action="se tValue" 
  20622          />
  20623                                                     
  20624         </ifNotNul l>
  20625                                                    
  20626         <ifNull>
  20627                                                              
  20628          <action 
  20629           action="se tAttribute
  20630           attribute= "ID" 
  20631           indexed="t rue"
  20632          >
  20633           hfSeverity
  20634          </action>
  20635                                                     
  20636         </ifNull>
  20637                                            
  20638        </mapping>
  20639                                           
  20640        <mapping>
  20641                                                    
  20642         <property 
  20643          optional=" true"
  20644         >
  20645          factorFaci lity
  20646         </property >
  20647                                                    
  20648         <xpath>
  20649          cda:td/cda :content[@ ID='hfFaci lity']
  20650         </xpath>
  20651                                                    
  20652         <ifNotNull >
  20653                                                              
  20654          <action 
  20655           action="se tAttribute
  20656           attribute= "ID" 
  20657           indexed="t rue"
  20658          >
  20659           hfFacility
  20660          </action>
  20661                                                              
  20662          <action 
  20663           action="se tValue" 
  20664          />
  20665                                                     
  20666         </ifNotNul l>
  20667                                                    
  20668         <ifNull>
  20669                                                              
  20670          <action 
  20671           action="se tAttribute
  20672           attribute= "ID" 
  20673           indexed="t rue"
  20674          >
  20675           hfFacility
  20676          </action>
  20677                                                     
  20678         </ifNull>
  20679                                            
  20680        </mapping>
  20681                                           
  20682        <mapping>
  20683                                                    
  20684         <property 
  20685          optional=" true"
  20686         >
  20687          factorReco rdedPretty
  20688         </property >
  20689                                                    
  20690         <xpath>
  20691          cda:td/cda :content[@ ID='hfDate ']
  20692         </xpath>
  20693                                                    
  20694         <ifNotNull >
  20695                                                              
  20696          <action 
  20697           action="se tAttribute
  20698           attribute= "ID" 
  20699           indexed="t rue"
  20700          >
  20701           hfDate
  20702          </action>
  20703                                                              
  20704          <action 
  20705           action="se tValue" 
  20706          />
  20707                                                     
  20708         </ifNotNul l>
  20709                                                    
  20710         <ifNull>
  20711                                                              
  20712          <action 
  20713           action="se tAttribute
  20714           attribute= "ID" 
  20715           indexed="t rue"
  20716          >
  20717           hfDate
  20718          </action>
  20719                                                     
  20720         </ifNull>
  20721                                            
  20722        </mapping>
  20723       
  20724                                           
  20725        <mapping>
  20726                                                    
  20727         <property 
  20728          optional=" true"
  20729         >
  20730          factorSeve rityLkp
  20731         </property >
  20732                                                    
  20733         <xpath>
  20734          cda:td/cda :content[@ ID='hfSeve rity']
  20735         </xpath>
  20736                                                    
  20737         <ifNotNull >
  20738                                                              
  20739          <action 
  20740           action="se tAttribute
  20741           attribute= "ID" 
  20742           indexed="t rue"
  20743          >
  20744           hfSeverity
  20745          </action>
  20746                                                              
  20747          <action 
  20748           action="se tValue" 
  20749          />
  20750                                                     
  20751         </ifNotNul l>
  20752                                                    
  20753         <ifNull>
  20754                                                              
  20755          <action 
  20756           action="se tAttribute
  20757           attribute= "ID" 
  20758           indexed="t rue"
  20759          >
  20760           hfSeverity
  20761          </action>
  20762                                                     
  20763         </ifNull>
  20764                                            
  20765        </mapping>
  20766                                  
  20767       </mappings >
  20768                        
  20769      </mapping>
  20770     
  20771                       
  20772      <mapping>
  20773                                 
  20774       <property 
  20775        collection ="true" 
  20776        optional=" true"
  20777       >
  20778        healthFact ors
  20779       </property >
  20780                                 
  20781       <xpath>
  20782        /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']
  20783       </xpath>
  20784                                 
  20785       <ifNotNull >
  20786                                           
  20787        <action 
  20788         action="ev aluateMapp ings" 
  20789         relative=" cda:sectio n/cda:entr y" 
  20790        />
  20791                                  
  20792       </ifNotNul l>
  20793                                 
  20794       <ifNull>
  20795                                           
  20796        <!-- <acti on action= "remove">N I</action>  -->
  20797                                           
  20798        <!--  Set  Social His tory Secti on to NI s o the docu ment passe s the MU2  online cer tification ; TPS -->
  20799                                                     
  20800                                           
  20801        <action 
  20802         action="re move" 
  20803         relative=" cda:sectio n/cda:entr y"
  20804        >
  20805         NI
  20806        </action>
  20807                                           
  20808        <action 
  20809         action="se tValue" 
  20810         relative=" cda:sectio n/cda:text "
  20811        >
  20812         No Data Pr ovided for  This Sect ion
  20813        </action>
  20814                                           
  20815        <action 
  20816         action="se tAttribute
  20817         relative=" cda:sectio n" 
  20818         attribute= "nullFlavo r"
  20819        >
  20820         NI
  20821        </action>
  20822       
  20823                                  
  20824       </ifNull>
  20825                                 
  20826       <mappings>
  20827                                           
  20828        <mapping>
  20829                                                    
  20830         <property>
  20831          factorName
  20832         </property >
  20833                                                    
  20834         <xpath>
  20835          cda:observ ation/cda: value/cda: originalTe xt
  20836         </xpath>
  20837                                                    
  20838         <ifNotNull >
  20839                                                              
  20840          <action 
  20841           action="se tValue" 
  20842          />
  20843                                                     
  20844         </ifNotNul l>
  20845                                            
  20846        </mapping>
  20847       
  20848                                           
  20849        <mapping>
  20850                                                    
  20851         <property>
  20852          factorReco rded
  20853         </property >
  20854                                                    
  20855         <xpath>
  20856          cda:observ ation/cda: effectiveT ime/cda:lo w
  20857         </xpath>
  20858                                                    
  20859         <ifNull>
  20860                                                              
  20861          <action 
  20862           action="se tAttribute "   
  20863           attribute= "flavor"
  20864          >
  20865           UNK
  20866          </action>
  20867                                                     
  20868         </ifNull>
  20869                                                    
  20870         <ifNotNull >
  20871                                                              
  20872          <action 
  20873           action="se tAttribute "   
  20874           attribute= "value"
  20875          />
  20876                                                     
  20877         </ifNotNul l>
  20878                                            
  20879        </mapping>
  20880       
  20881                                           
  20882        <mapping 
  20883         equalsProp erty="smok ingStatus"  
  20884         equalsValu e="LIFETIM E NON-TOBA CCO USER"
  20885       
  20886                                                    
  20887         <property>
  20888          smokingSta tus
  20889         </property >
  20890                                                    
  20891         <xpath>
  20892          cda:observ ation/cda: value
  20893         </xpath>
  20894                                                    
  20895         <ifNotNull >
  20896                                                              
  20897          <action 
  20898           action="se tAttribute
  20899           attribute= "code"
  20900          >
  20901           266919005
  20902          </action>
  20903                                                              
  20904          <action 
  20905           action="se tAttribute
  20906           attribute= "displayNa me"
  20907          >
  20908           Never smok er (Never  Smoked)
  20909          </action>
  20910                                                     
  20911         </ifNotNul l>
  20912                                            
  20913        </mapping>
  20914                                           
  20915                                           
  20916        <mapping 
  20917         equalsProp erty="smok ingStatus"  
  20918         equalsValu e="CURRENT  SMOKER"
  20919       
  20920                                                    
  20921         <property>
  20922          smokingSta tus
  20923         </property >
  20924                                                    
  20925         <xpath>
  20926          cda:observ ation/cda: value
  20927         </xpath>
  20928                                                    
  20929         <ifNotNull >
  20930                                                              
  20931          <action 
  20932           action="se tAttribute
  20933           attribute= "code"
  20934          >
  20935           77176002
  20936          </action>
  20937                                                              
  20938          <action 
  20939           action="se tAttribute
  20940           attribute= "displayNa me"
  20941          >
  20942           Smoker, cu rrent stat us unknown
  20943          </action>
  20944                                                     
  20945         </ifNotNul l>
  20946                                            
  20947        </mapping>
  20948                                           
  20949                                           
  20950        <mapping 
  20951         equalsProp erty="smok ingStatus"  
  20952         equalsValu e="HF V9 C URRENT SMO KER"
  20953       
  20954                                                    
  20955         <property>
  20956          smokingSta tus
  20957         </property >
  20958                                                    
  20959         <xpath>
  20960          cda:observ ation/cda: value
  20961         </xpath>
  20962                                                    
  20963         <ifNotNull >
  20964                                                              
  20965          <action 
  20966           action="se tAttribute
  20967           attribute= "code"
  20968          >
  20969           77176002
  20970          </action>
  20971                                                              
  20972          <action 
  20973           action="se tAttribute
  20974           attribute= "displayNa me"
  20975          >
  20976           Smoker, cu rrent stat us unknown )
  20977          </action>
  20978                                                     
  20979         </ifNotNul l>
  20980                                            
  20981        </mapping>
  20982                                           
  20983                                           
  20984        <mapping >  
  20985                                                    
  20986         <property>
  20987          smokingSta tus
  20988         </property >
  20989                                                    
  20990         <xpath>
  20991          cda:observ ation/cda: value
  20992         </xpath>
  20993                                                    
  20994         <ifNotNull >
  20995                                                     
  20996         </ifNotNul l>
  20997                                                    
  20998         <ifNull>
  20999                                                              
  21000          <action 
  21001           action="se tAttribute
  21002           attribute= "nullFlavo r"
  21003          >
  21004           UNK
  21005          </action>
  21006                                                     
  21007         </ifNull>
  21008                                            
  21009        </mapping>
  21010                                           
  21011                                           
  21012        <mapping>
  21013                                                    
  21014         <property>
  21015          factorComm ent
  21016         </property >
  21017                                                    
  21018         <xpath>
  21019          cda:observ ation/cda: entryRelat ionship/cd a:act/cda: text
  21020         </xpath>
  21021                                                    
  21022         <ifNotNull >
  21023                                                              
  21024          <action 
  21025           action="se tAttribute
  21026           relative=" cda:refere nce"
  21027                                                                       
  21028           attribute= "value" 
  21029           indexed="t rue"
  21030          >
  21031           #hfComment
  21032          </action>
  21033                                                     
  21034         </ifNotNul l>
  21035                                                    
  21036         <ifNull>
  21037                                                              
  21038          <action 
  21039           action="se tAttribute
  21040           relative=" cda:refere nce"
  21041                                                                       
  21042           attribute= "value" 
  21043           indexed="t rue"
  21044          >
  21045           #hfComment
  21046          </action>
  21047                                                     
  21048         </ifNull>
  21049                                            
  21050        </mapping>
  21051                                           
  21052        <mapping>
  21053                                                    
  21054         <property>
  21055          factorFaci lityCode
  21056         </property >
  21057                                                    
  21058         <xpath>
  21059          cda:observ ation/cda: author/cda :assignedA uthor/cda: represente dOrganizat ion/cda:id
  21060         </xpath>
  21061                                                    
  21062         <ifNotNull >
  21063                                                              
  21064          <action 
  21065           action="se tAttribute
  21066           attribute= "extension
  21067          />
  21068                                                     
  21069         </ifNotNul l>
  21070                                            
  21071        </mapping>
  21072                                           
  21073        <mapping>
  21074                                                    
  21075         <property>
  21076          factorFaci lity
  21077         </property >
  21078                                                    
  21079         <xpath>
  21080          cda:observ ation/cda: author/cda :assignedA uthor/cda: represente dOrganizat ion/cda:na me
  21081         </xpath>
  21082                                                    
  21083         <ifNotNull >
  21084                                                              
  21085          <action 
  21086           action="se tValue" 
  21087          />
  21088                                                     
  21089         </ifNotNul l>
  21090                                            
  21091        </mapping>
  21092                                  
  21093       </mappings >
  21094                        
  21095      </mapping>
  21096                       
  21097      <!-- PLAN  OF CARE NA RRATIVE -- >
  21098     
  21099                       
  21100      <mapping>
  21101                                 
  21102       <property 
  21103        optional=" true" 
  21104        collection ="true" 
  21105        merge="tru e"
  21106       >
  21107        appointmen ts
  21108       </property >
  21109                                 
  21110       <xpath>
  21111        /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']
  21112       </xpath>
  21113                                 
  21114       <ifNotNull >
  21115                                           
  21116        <action 
  21117         action="ev aluateMapp ings"
  21118                                                   
  21119         relative=" cda:sectio n/cda:text /cda:table [@ID='futu reAppointm ents']/cda :tbody/cda :tr" 
  21120        />
  21121                                  
  21122       </ifNotNul l>
  21123                                 
  21124       <ifNull>
  21125                                           
  21126        <action 
  21127         action="re move"
  21128                                                   
  21129         relative=" cda:sectio n/cda:text /cda:table [@ID='futu reAppointm entsRules' ]" 
  21130        />
  21131                                           
  21132        <action 
  21133         action="re move"
  21134                                                   
  21135         relative=" cda:sectio n/cda:text /cda:table [@ID='futu reAppointm ents']" 
  21136        />
  21137       
  21138                                  
  21139       </ifNull>
  21140                                 
  21141       <mappings>
  21142                                           
  21143        <mapping>
  21144                                                    
  21145         <property>
  21146          prettyDate Time
  21147         </property >
  21148                                                    
  21149         <xpath>
  21150          cda:td[1]
  21151         </xpath>
  21152                                                    
  21153         <ifNotNull >
  21154                                                              
  21155          <action 
  21156           action="se tAttribute
  21157           attribute= "ID" 
  21158           indexed="t rue"
  21159          >
  21160           apptDateTi me
  21161          </action>
  21162                                                              
  21163          <action 
  21164           action="se tValue" 
  21165          />
  21166                                                     
  21167         </ifNotNul l>
  21168                                            
  21169        </mapping>
  21170                                           
  21171        <mapping>
  21172                                                    
  21173         <property 
  21174          optional=" true"
  21175         >
  21176          serviceCat egory.name
  21177         </property >
  21178                                                    
  21179         <xpath>
  21180          cda:td[2]/ cda:conten t
  21181         </xpath>
  21182                                                    
  21183         <ifNotNull >
  21184                                                              
  21185          <action 
  21186           action="se tAttribute
  21187           attribute= "ID" 
  21188           indexed="t rue"
  21189          >
  21190           contentTyp e
  21191          </action>
  21192                                                              
  21193          <action 
  21194           action="se tValue" 
  21195          />
  21196                                                              
  21197          <action 
  21198           action="ap pendValue"
  21199          >
  21200            - 
  21201          </action>
  21202                                                              
  21203          <action 
  21204           action="ap pendValue"  
  21205           property=" service" 
  21206          />
  21207                                                     
  21208         </ifNotNul l>
  21209                                                    
  21210         <ifNull>
  21211                                                              
  21212          <action 
  21213           action="se tAttribute
  21214           attribute= "ID" 
  21215           indexed="t rue"
  21216          >
  21217           contentTyp e
  21218          </action>
  21219                                                     
  21220         </ifNull>
  21221                                            
  21222        </mapping>
  21223                                           
  21224        <mapping>
  21225                                                    
  21226         <property 
  21227          optional=" true"
  21228         >
  21229          facility.n ame
  21230         </property >
  21231                                                    
  21232         <xpath>
  21233          cda:td[3]/ cda:conten t
  21234         </xpath>
  21235                                                    
  21236         <ifNotNull >
  21237                                                              
  21238          <action 
  21239           action="se tAttribute
  21240           attribute= "ID" 
  21241           indexed="t rue"
  21242          >
  21243           orderDetai ls
  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           orderDetai ls
  21260          </action>
  21261                                                     
  21262         </ifNull>
  21263                                            
  21264        </mapping>
  21265                                  
  21266       </mappings >
  21267                        
  21268      </mapping>
  21269     
  21270                       
  21271      <mapping>
  21272                                 
  21273       <property 
  21274        optional=" true" 
  21275        collection ="true" 
  21276        merge="tru e"
  21277       >
  21278        futureOrde rs
  21279       </property >
  21280                                 
  21281       <xpath>
  21282        /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']
  21283       </xpath>
  21284                                 
  21285       <ifNotNull >
  21286                                           
  21287        <action 
  21288         action="ev aluateMapp ings"
  21289                                                   
  21290         relative=" cda:sectio n/cda:text /cda:table [@ID='futu reSchedule dTests']/c da:tbody/c da:tr" 
  21291        />
  21292                                  
  21293       </ifNotNul l>
  21294                                 
  21295       <ifNull>
  21296                                           
  21297        <action 
  21298         action="re move"
  21299                                                   
  21300         relative=" cda:sectio n/cda:text /cda:table [@ID='futu reSchedule dTestsRule s']" 
  21301        />
  21302                                           
  21303        <action 
  21304         action="re move"
  21305                                                   
  21306         relative=" cda:sectio n/cda:text /cda:table [@ID='futu reSchedule dTests']" 
  21307        />
  21308                                  
  21309       </ifNull>
  21310                                 
  21311       <mappings>
  21312                                           
  21313        <mapping>
  21314                                                    
  21315         <property>
  21316          prettyEnte red
  21317         </property >
  21318                                                    
  21319         <xpath>
  21320          cda:td[1]
  21321         </xpath>
  21322                                                    
  21323         <ifNotNull >
  21324                                                              
  21325          <action 
  21326           action="se tValue" 
  21327          />
  21328                                                     
  21329         </ifNotNul l>
  21330                                            
  21331        </mapping>
  21332                                           
  21333        <mapping>
  21334                                                    
  21335         <property>
  21336          content
  21337         </property >
  21338                                                    
  21339         <xpath>
  21340          cda:td[2]/ cda:conten t[@ID='con tentType']
  21341         </xpath>
  21342                                                    
  21343         <ifNotNull >
  21344                                                              
  21345          <action 
  21346           action="se tValue"
  21347          >
  21348           Lab Orders
  21349          </action>
  21350                                                              
  21351          <action 
  21352           action="se tAttribute
  21353           attribute= "ID" 
  21354           indexed="t rue"
  21355          >
  21356           contentTyp e
  21357          </action>
  21358         
  21359                                                     
  21360         </ifNotNul l>
  21361                                                    
  21362         <ifNull>
  21363                                                              
  21364          <action 
  21365           action="se tAttribute
  21366           attribute= "ID" 
  21367           indexed="t rue"
  21368          >
  21369           contentTyp e
  21370          </action>
  21371                                                     
  21372         </ifNull>
  21373                                            
  21374        </mapping>
  21375                                           
  21376        <mapping>
  21377                                                    
  21378         <property>
  21379          content
  21380         </property >
  21381                                                    
  21382         <xpath>
  21383          cda:td[3]/ cda:conten t[@ID='ord erDetails' ]
  21384         </xpath>
  21385                                                    
  21386         <ifNotNull >
  21387                                                              
  21388          <action 
  21389           action="se tValue" 
  21390          />
  21391                                                              
  21392          <action 
  21393           action="se tAttribute
  21394           attribute= "ID" 
  21395           indexed="t rue"
  21396          >
  21397           orderDetai ls
  21398          </action>
  21399         
  21400                                                     
  21401         </ifNotNul l>
  21402                                                    
  21403         <ifNull>
  21404                                                              
  21405          <action 
  21406           action="se tAttribute
  21407           attribute= "ID" 
  21408           indexed="t rue"
  21409          >
  21410           orderDetai ls
  21411          </action>
  21412                                                     
  21413         </ifNull>
  21414                                            
  21415        </mapping>
  21416       
  21417                                           
  21418        <mapping>
  21419                                                    
  21420         <property 
  21421          optional=" true"
  21422         >
  21423          facility.n ame
  21424         </property >
  21425                                                    
  21426         <xpath>
  21427          cda:td[4]
  21428         </xpath>
  21429                                                    
  21430         <ifNotNull >
  21431                                                              
  21432          <action 
  21433           action="se tValue" 
  21434          />
  21435                                                     
  21436         </ifNotNul l>
  21437        
  21438                                            
  21439        </mapping>
  21440                                  
  21441       </mappings >
  21442                        
  21443      </mapping>
  21444     
  21445     
  21446                       
  21447      <mapping>
  21448                                 
  21449       <property 
  21450        collection ="true"
  21451       >
  21452        futureRadi ologies
  21453       </property >
  21454                                 
  21455       <xpath>
  21456        /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']
  21457       </xpath>
  21458                                 
  21459       <ifNotNull >
  21460                                           
  21461        <action 
  21462         action="ev aluateMapp ings"
  21463                                                   
  21464         relative=" cda:sectio n/cda:text /cda:table [@ID='futu reRadiolog ies']/cda: tbody/cda: tr" 
  21465        />
  21466                                  
  21467       </ifNotNul l>
  21468                                 
  21469       <ifNull>
  21470                                           
  21471        <action 
  21472         action="re move"
  21473                                                   
  21474         relative=" cda:sectio n/cda:text /cda:table [@ID='futu reRadiolog iesRules']
  21475        />
  21476                                           
  21477        <action 
  21478         action="re move"
  21479                                                   
  21480         relative=" cda:sectio n/cda:text /cda:table [@ID='futu reRadiolog ies']" 
  21481        />
  21482                                  
  21483       </ifNull>
  21484                                 
  21485       <mappings>
  21486                                           
  21487        <mapping>
  21488                                                    
  21489         <property>
  21490          prettyEnte red
  21491         </property >
  21492                                                    
  21493         <xpath>
  21494          cda:td[1]
  21495         </xpath>
  21496                                                    
  21497         <ifNotNull >
  21498                                                              
  21499          <action 
  21500           action="se tValue" 
  21501          />
  21502                                                     
  21503         </ifNotNul l>
  21504                                            
  21505        </mapping>
  21506                                           
  21507        <mapping>
  21508                                                    
  21509         <property>
  21510          content
  21511         </property >
  21512                                                    
  21513         <xpath>
  21514          cda:td[2]/ cda:conten t[@ID='con tentType']
  21515         </xpath>
  21516                                                    
  21517         <ifNotNull >
  21518                                                              
  21519          <action 
  21520           action="se tValue"
  21521          >
  21522           Future Rad iology Pro cedure
  21523          </action>
  21524                                                              
  21525          <action 
  21526           action="se tAttribute
  21527           attribute= "ID" 
  21528           indexed="t rue"
  21529          >
  21530           contentTyp e
  21531          </action>
  21532         
  21533                                                     
  21534         </ifNotNul l>
  21535                                                    
  21536         <ifNull>
  21537                                                              
  21538          <action 
  21539           action="se tAttribute
  21540           attribute= "ID" 
  21541           indexed="t rue"
  21542          >
  21543           contentTyp e
  21544          </action>
  21545                                                     
  21546         </ifNull>
  21547                                            
  21548        </mapping>
  21549                                           
  21550        <mapping>
  21551                                                    
  21552         <property 
  21553          optional=" true"
  21554         >
  21555          content
  21556         </property >
  21557                                                    
  21558         <xpath>
  21559          cda:td[3]/ cda:conten t
  21560         </xpath>
  21561                                                    
  21562         <ifNotNull >
  21563                                                              
  21564          <action 
  21565           action="se tValue" 
  21566          />
  21567                                                              
  21568          <action 
  21569           action="se tAttribute
  21570           attribute= "ID" 
  21571           indexed="t rue"
  21572          >
  21573           orderDetai ls
  21574          </action>
  21575         
  21576                                                     
  21577         </ifNotNul l>
  21578                                                    
  21579         <ifNull>
  21580                                                              
  21581          <action 
  21582           action="se tAttribute
  21583           attribute= "ID" 
  21584           indexed="t rue"
  21585          >
  21586           orderDetai ls
  21587          </action>
  21588                                                     
  21589         </ifNull>
  21590                                            
  21591        </mapping>
  21592                                           
  21593        <mapping>
  21594                                                    
  21595         <property 
  21596          optional=" true"
  21597         >
  21598          facility.n ame
  21599         </property >
  21600                                                    
  21601         <xpath>
  21602          cda:td[4]
  21603         </xpath>
  21604                                                    
  21605         <ifNotNull >
  21606                                                              
  21607          <action 
  21608           action="se tValue" 
  21609          />
  21610                                                     
  21611         </ifNotNul l>
  21612        
  21613                                            
  21614        </mapping>
  21615                                  
  21616       </mappings >
  21617                        
  21618      </mapping>
  21619     
  21620     
  21621                       
  21622      <!-- PLAN  OF CARE SE CTION -->
  21623                       
  21624      <mapping>
  21625                                 
  21626       <property 
  21627        collection ="true" 
  21628        optional=" true"
  21629       >
  21630        appointmen ts,futureO rders,futu reRadiolog ies
  21631       </property >
  21632                                 
  21633       <xpath>
  21634        /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
  21635       </xpath>
  21636                                 
  21637       <ifNotNull >
  21638                                           
  21639        <action 
  21640         action="ev aluateMapp ings" 
  21641         relative=" cda:entry"  
  21642        />
  21643                                  
  21644       </ifNotNul l>
  21645                                 
  21646       <ifNull>
  21647                                           
  21648        <!-- <acti on action= "remove">N I</action>  -->
  21649                                           
  21650        <!--  Set  Plan of Ca re Section  to NI so  the docume nt passes  the MU2 on line certi fication;  TPS -->
  21651                                                     
  21652                                           
  21653        <action 
  21654         action="re move" 
  21655         relative=" cda:entry"
  21656        >
  21657         NI
  21658        </action>
  21659                                           
  21660        <action 
  21661         action="se tValue" 
  21662         relative=" cda:text"
  21663        >
  21664         No Data Pr ovided for  This Sect ion
  21665        </action>
  21666                                           
  21667        <action 
  21668         action="se tAttribute
  21669         attribute= "nullFlavo r"
  21670        >
  21671         NI
  21672        </action>
  21673                                  
  21674       </ifNull>
  21675                                 
  21676       <mappings>
  21677                                           
  21678        <mapping>
  21679                                                    
  21680         <property>
  21681          id.value
  21682         </property >
  21683                                                    
  21684         <xpath>
  21685          cda:encoun ter/cda:id
  21686         </xpath>
  21687                                                    
  21688         <ifNotNull >
  21689                                                              
  21690          <action 
  21691           action="se tAttribute
  21692           attribute= "nullFlavo r"
  21693          >
  21694           UNK
  21695          </action>
  21696                                                     
  21697         </ifNotNul l>
  21698                                                    
  21699         <ifNull>
  21700                                                              
  21701          <action 
  21702           action="se tAttribute
  21703           attribute= "nullFlavo r"
  21704          >
  21705           UNK
  21706          </action>
  21707                                                     
  21708         </ifNull>
  21709                                            
  21710        </mapping>
  21711                                           
  21712        <mapping>
  21713                                                    
  21714         <property>
  21715          entered|st art|dateTi me
  21716         </property >
  21717                                                    
  21718         <xpath>
  21719          cda:encoun ter/cda:ef fectiveTim e/cda:cent er
  21720         </xpath>
  21721                                                    
  21722         <ifNotNull >
  21723                                                              
  21724          <action 
  21725           action="se tAttribute
  21726           attribute= "value" 
  21727          />
  21728                                                     
  21729         </ifNotNul l>
  21730                                            
  21731        </mapping>
  21732                                           
  21733        <mapping>
  21734                                                    
  21735         <property>
  21736          content
  21737         </property >
  21738                                                    
  21739         <xpath>
  21740          cda:encoun ter/cda:en tryRelatio nship
  21741         </xpath>
  21742                                                    
  21743         <ifNotNull >
  21744                                                              
  21745          <action 
  21746           action="se tAttribute
  21747           relative=" cda:act/cd a:text/cda :reference "
  21748                                                                       
  21749           attribute= "value" 
  21750           indexed="t rue"
  21751          >
  21752           #orderDeta ils
  21753          </action>
  21754         
  21755                                                     
  21756         </ifNotNul l>
  21757                                                    
  21758         <ifNull>
  21759                                                              
  21760          <action 
  21761           action="se tAttribute
  21762           relative=" cda:act/cd a:text/cda :reference "
  21763                                                                       
  21764           attribute= "value" 
  21765           indexed="t rue"
  21766          >
  21767           #orderDeta ils
  21768          </action>
  21769                                                              
  21770          <action 
  21771           action="re move" 
  21772          />
  21773                                                     
  21774         </ifNull>
  21775                                            
  21776        </mapping>
  21777       
  21778                                           
  21779        <mapping>
  21780                                                    
  21781         <property>
  21782          content|se rviceCateg ory.name
  21783         </property >
  21784                                                    
  21785         <xpath>
  21786          cda:encoun ter/cda:co de/cda:ori ginalText/ cda:refere nce
  21787         </xpath>
  21788                                                    
  21789         <ifNotNull >
  21790                                                              
  21791          <action 
  21792           action="se tAttribute
  21793           attribute= "value" 
  21794           indexed="t rue"
  21795          >
  21796           #contentTy pe
  21797          </action>
  21798         
  21799                                                     
  21800         </ifNotNul l>
  21801                                                    
  21802         <ifNull>
  21803                                                              
  21804          <action 
  21805           action="se tAttribute
  21806           attribute= "value" 
  21807           indexed="t rue"
  21808          >
  21809           #contentTy pe
  21810          </action>
  21811                                                     
  21812         </ifNull>
  21813                                            
  21814        </mapping>
  21815                                           
  21816        <mapping>
  21817                                                    
  21818         <property>
  21819          provider.c ode
  21820         </property >
  21821                                                    
  21822         <xpath>
  21823          cda:encoun ter/cda:pe rformer/cd a:assigned Entity/cda :id
  21824         </xpath>
  21825                                                    
  21826         <ifNotNull >
  21827                                                              
  21828          <action 
  21829           action="se tAttribute
  21830           attribute= "extension
  21831          />
  21832                                                     
  21833         </ifNotNul l>
  21834                                                    
  21835         <ifNull>
  21836                                                              
  21837          <action 
  21838           action="se tAttribute
  21839           attribute= "nullFlavo r"
  21840          >
  21841           UNK
  21842          </action>
  21843                                                     
  21844         </ifNull>
  21845                                            
  21846        </mapping>
  21847       
  21848                                           
  21849        <mapping>
  21850                                                    
  21851         <property>
  21852          provider.n ame
  21853         </property >
  21854                                                    
  21855         <xpath>
  21856          cda:encoun ter/cda:pe rformer/cd a:assigned Entity/cda :assignedP erson/cda: name
  21857         </xpath>
  21858                                                    
  21859         <ifNotNull >
  21860                                                              
  21861          <action 
  21862           action="se tValue" 
  21863          />
  21864                                                     
  21865         </ifNotNul l>
  21866                                            
  21867        </mapping>
  21868       
  21869                                           
  21870        <mapping>
  21871                                                    
  21872         <property>
  21873          facility.c ode
  21874         </property >
  21875                                                    
  21876         <xpath>
  21877          cda:encoun ter/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:id
  21878         </xpath>
  21879                                                    
  21880         <ifNotNull >
  21881                                                              
  21882          <action 
  21883           action="se tAttribute
  21884           attribute= "extension
  21885          />
  21886                                                     
  21887         </ifNotNul l>
  21888                                            
  21889        </mapping>
  21890                                           
  21891        <mapping>
  21892                                                    
  21893         <property>
  21894          facility.n ame
  21895         </property >
  21896                                                    
  21897         <xpath>
  21898          cda:encoun ter/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:name
  21899         </xpath>
  21900                                                    
  21901         <ifNotNull >
  21902                                                              
  21903          <action 
  21904           action="se tValue" 
  21905          />
  21906                                                     
  21907         </ifNotNul l>
  21908                                            
  21909        </mapping>
  21910                         
  21911                         
  21912        <mapping>
  21913                                                    
  21914         <property>
  21915          apptStatus
  21916         </property >
  21917                                                    
  21918         <xpath>
  21919          cda:encoun ter/cda:st atusCode
  21920         </xpath>
  21921                                                    
  21922         <ifNotNull >
  21923                                                              
  21924          <action 
  21925           action="se tAttribute
  21926           attribute= "code" 
  21927          />
  21928                                                     
  21929         </ifNotNul l>
  21930                                            
  21931        </mapping>
  21932                                  
  21933       </mappings >
  21934                        
  21935      </mapping>
  21936     
  21937              
  21938      <!-- FUNCT IONAL INDE PENDENCE M EASUREMENT S SECTION  -->
  21939                       
  21940      <mapping>
  21941                            
  21942       <property 
  21943        optional=" true"
  21944       >
  21945        functional Independen ceMeasurem entsNarrat ive
  21946       </property >
  21947                            
  21948       <xpath>
  21949        /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']
  21950       </xpath>
  21951                            
  21952       <ifNotNull >
  21953                                  
  21954        <action 
  21955         action="se tValue" 
  21956         relative=" cda:sectio n/cda:text /cda:parag raph" 
  21957        />
  21958                             
  21959       </ifNotNul l>
  21960                        
  21961      </mapping>
  21962              
  21963      <mapping>
  21964                    
  21965       <property 
  21966        collection ="true" 
  21967        optional=" true"
  21968       >
  21969        functional Independen ceMeasurem ents
  21970       </property >
  21971                    
  21972       <xpath>
  21973        /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
  21974       </xpath>
  21975                    
  21976       <ifNotNull >
  21977                         
  21978        <action 
  21979         action="ev aluateMapp ings" 
  21980         relative=" cda:text/c da:table/c da:tbody" 
  21981        />
  21982                     
  21983       </ifNotNul l>
  21984                    
  21985       <ifNull>
  21986                         
  21987        <action 
  21988         action="se tValue" 
  21989         relative=" cda:text"
  21990        >
  21991         No Data Pr ovided for  This Sect ion
  21992        </action>
  21993                         
  21994        <action 
  21995         action="se tAttribute
  21996         attribute= "nullFlavo r"
  21997        >
  21998         NI
  21999        </action>
  22000                     
  22001       </ifNull>
  22002                    
  22003       <mappings>
  22004                         
  22005        <mapping>
  22006                              
  22007         <property>
  22008          facility.n ame
  22009         </property >
  22010                              
  22011         <xpath>
  22012          cda:tr/cda :td/cda:co ntent[@ID= 'fimFacili ty']
  22013         </xpath>
  22014                              
  22015         <ifNotNull >
  22016                                    
  22017          <action 
  22018           action="se tAttribute
  22019           attribute= "ID" 
  22020           indexed="t rue"
  22021          >
  22022           fimFacilit y
  22023          </action>
  22024                                    
  22025          <action 
  22026           action="se tValue" 
  22027          />
  22028                               
  22029         </ifNotNul l>
  22030                              
  22031         <ifNull>
  22032                                                              
  22033          <action 
  22034           action="se tAttribute
  22035           attribute= "ID" 
  22036           indexed="t rue"
  22037          >
  22038           fimFacilit y
  22039          </action>
  22040                                                     
  22041         </ifNull>
  22042                          
  22043        </mapping>
  22044                         
  22045        <mapping>
  22046                              
  22047         <property 
  22048          collection ="true" 
  22049         >
  22050          assessment s,assessme nts.assess ment
  22051         </property >
  22052                              
  22053         <xpath>
  22054          .
  22055         </xpath>
  22056                              
  22057         <ifNotNull >
  22058                                    
  22059          <action 
  22060           action="ev aluateMapp ings"
  22061          />
  22062                               
  22063         </ifNotNul l>
  22064                              
  22065         <mappings>
  22066                                    
  22067          <mapping>
  22068                                         
  22069           <property>
  22070            assessment Date
  22071           </property >
  22072                                         
  22073           <xpath>
  22074            cda:tr/cda :td/cda:co ntent[@ID= 'fimAssess mentDate']
  22075           </xpath>
  22076                                         
  22077           <ifNotNull >
  22078                                               
  22079            <action 
  22080             action="se tAttribute
  22081             attribute= "ID" 
  22082             indexed="t rue"
  22083            >
  22084             fimAssessm entDate
  22085            </action>
  22086                                               
  22087            <action 
  22088             action="se tValue" 
  22089            />
  22090                                          
  22091           </ifNotNul l>
  22092                                         
  22093           <ifNull>
  22094                                               
  22095            <action 
  22096             action="se tAttribute
  22097             attribute= "ID" 
  22098             indexed="t rue"
  22099            >
  22100             fimAssessm entDate
  22101            </action>
  22102                                          
  22103           </ifNull>
  22104                                     
  22105          </mapping>
  22106                                    
  22107          <mapping>
  22108                                         
  22109           <property>
  22110            assessment Type
  22111           </property >
  22112                                         
  22113           <xpath>
  22114            cda:tr/cda :td/cda:co ntent[@ID= 'fimAssess ment']
  22115           </xpath>
  22116                                         
  22117           <ifNotNull >
  22118                                               
  22119            <action 
  22120             action="se tAttribute
  22121             attribute= "ID" 
  22122             indexed="t rue"
  22123            >
  22124             fimAssessm ent
  22125            </action>
  22126                                               
  22127            <action 
  22128             action="se tValue" 
  22129            />
  22130                                          
  22131           </ifNotNul l>
  22132                                         
  22133           <ifNull>
  22134                                               
  22135            <action 
  22136             action="se tAttribute
  22137             attribute= "ID" 
  22138             indexed="t rue"
  22139            >
  22140             fimAssessm ent
  22141            </action>
  22142                                          
  22143           </ifNull>
  22144                                     
  22145          </mapping>
  22146                                    
  22147          <mapping>
  22148                                         
  22149           <property>
  22150            values.eat
  22151           </property >
  22152                                         
  22153           <xpath>
  22154            cda:tr/cda :td/cda:co ntent[@ID= 'fimEat']
  22155           </xpath>
  22156                                         
  22157           <ifNotNull >
  22158                                               
  22159            <action 
  22160             action="se tAttribute
  22161             attribute= "ID" 
  22162             indexed="t rue"
  22163            >
  22164             fimEat
  22165            </action>
  22166                                               
  22167            <action 
  22168             action="se tValue" 
  22169            />
  22170                                          
  22171           </ifNotNul l>
  22172                                         
  22173           <ifNull>
  22174                                               
  22175            <action 
  22176             action="se tAttribute
  22177             attribute= "ID" 
  22178             indexed="t rue"
  22179            >
  22180             fimEat
  22181            </action>
  22182                                          
  22183           </ifNull>
  22184                                     
  22185          </mapping>
  22186                                    
  22187          <mapping>
  22188                                         
  22189           <property>
  22190            values.eat
  22191           </property >
  22192                                         
  22193           <xpath>
  22194            cda:tr/cda :td/cda:co ntent[@ID= 'fimEatNam e']
  22195           </xpath>
  22196                                         
  22197           <ifNotNull >
  22198                                               
  22199            <action 
  22200             action="se tAttribute
  22201             attribute= "ID" 
  22202             indexed="t rue"
  22203            >
  22204             fimEatName
  22205            </action>
  22206                                          
  22207           </ifNotNul l>
  22208                                         
  22209           <ifNull>
  22210                                               
  22211            <action 
  22212             action="se tAttribute
  22213             attribute= "ID" 
  22214             indexed="t rue"
  22215            >
  22216             fimEatName
  22217            </action>
  22218                                          
  22219           </ifNull>
  22220                                     
  22221          </mapping>
  22222                                    
  22223          <mapping>
  22224                                         
  22225           <property>
  22226            values.eat
  22227           </property >
  22228                                         
  22229           <xpath>
  22230            cda:tr/cda :td/cda:co ntent[@ID= 'fimEatDet ail']
  22231           </xpath>
  22232                                         
  22233           <ifNotNull >
  22234                                               
  22235            <action 
  22236             action="se tAttribute
  22237             attribute= "ID" 
  22238             indexed="t rue"
  22239            >
  22240             fimEatDeta il
  22241            </action>
  22242                                          
  22243           </ifNotNul l>
  22244                                         
  22245           <ifNull>
  22246                                               
  22247            <action 
  22248             action="se tAttribute
  22249             attribute= "ID" 
  22250             indexed="t rue"
  22251            >
  22252             fimEatDeta il
  22253            </action>
  22254                                          
  22255           </ifNull>
  22256                                     
  22257          </mapping>
  22258                                    
  22259          <mapping>
  22260                                         
  22261           <property>
  22262            values.gro om
  22263           </property >
  22264                                         
  22265           <xpath>
  22266            cda:tr/cda :td/cda:co ntent[@ID= 'fimGroom' ]
  22267           </xpath>
  22268                                         
  22269           <ifNotNull >
  22270                                               
  22271            <action 
  22272             action="se tAttribute
  22273             attribute= "ID" 
  22274             indexed="t rue"
  22275            >
  22276             fimGroom
  22277            </action>
  22278                                               
  22279            <action 
  22280             action="se tValue" 
  22281            />
  22282                                          
  22283           </ifNotNul l>
  22284                                         
  22285           <ifNull>
  22286                                               
  22287            <action 
  22288             action="se tAttribute
  22289             attribute= "ID" 
  22290             indexed="t rue"
  22291            >
  22292             fimGroom
  22293            </action>
  22294                                          
  22295           </ifNull>
  22296                                     
  22297          </mapping>
  22298                                    
  22299          <mapping>
  22300                                         
  22301           <property>
  22302            values.gro om
  22303           </property >
  22304                                         
  22305           <xpath>
  22306            cda:tr/cda :td/cda:co ntent[@ID= 'fimGroomN ame']
  22307           </xpath>
  22308                                         
  22309           <ifNotNull >
  22310                                               
  22311            <action 
  22312             action="se tAttribute
  22313             attribute= "ID" 
  22314             indexed="t rue"
  22315            >
  22316             fimGroomNa me
  22317            </action>
  22318                                          
  22319           </ifNotNul l>
  22320                                         
  22321           <ifNull>
  22322                                               
  22323            <action 
  22324             action="se tAttribute
  22325             attribute= "ID" 
  22326             indexed="t rue"
  22327            >
  22328             fimGroomNa me
  22329            </action>
  22330                                          
  22331           </ifNull>
  22332                                     
  22333          </mapping>
  22334                                    
  22335          <mapping>
  22336                                         
  22337           <property>
  22338            values.gro om
  22339           </property >
  22340                                         
  22341           <xpath>
  22342            cda:tr/cda :td/cda:co ntent[@ID= 'fimGroomD etail']
  22343           </xpath>
  22344                                         
  22345           <ifNotNull >
  22346                                               
  22347            <action 
  22348             action="se tAttribute
  22349             attribute= "ID" 
  22350             indexed="t rue"
  22351            >
  22352             fimGroomDe tail
  22353            </action>
  22354                                          
  22355           </ifNotNul l>
  22356                                         
  22357           <ifNull>
  22358                                               
  22359            <action 
  22360             action="se tAttribute
  22361             attribute= "ID" 
  22362             indexed="t rue"
  22363            >
  22364             fimGroomDe tail
  22365            </action>
  22366                                          
  22367           </ifNull>
  22368                                     
  22369          </mapping>
  22370                                    
  22371          <mapping>
  22372                                         
  22373           <property>
  22374            values.bat h
  22375           </property >
  22376                                         
  22377           <xpath>
  22378            cda:tr/cda :td/cda:co ntent[@ID= 'fimBath']
  22379           </xpath>
  22380                                         
  22381           <ifNotNull >
  22382                                               
  22383            <action 
  22384             action="se tAttribute
  22385             attribute= "ID" 
  22386             indexed="t rue"
  22387            >
  22388             fimBath
  22389            </action>
  22390                                               
  22391            <action 
  22392             action="se tValue" 
  22393            />
  22394                                          
  22395           </ifNotNul l>
  22396                                         
  22397           <ifNull>
  22398                                               
  22399            <action 
  22400             action="se tAttribute
  22401             attribute= "ID" 
  22402             indexed="t rue"
  22403            >
  22404             fimBath
  22405            </action>
  22406                                          
  22407           </ifNull>
  22408                                     
  22409          </mapping>
  22410                                    
  22411          <mapping>
  22412                                         
  22413           <property>
  22414            values.bat h
  22415           </property >
  22416                                         
  22417           <xpath>
  22418            cda:tr/cda :td/cda:co ntent[@ID= 'fimBathNa me']
  22419           </xpath>
  22420                                         
  22421           <ifNotNull >
  22422                                               
  22423            <action 
  22424             action="se tAttribute
  22425             attribute= "ID" 
  22426             indexed="t rue"
  22427            >
  22428             fimBathNam e
  22429            </action>
  22430                                          
  22431           </ifNotNul l>
  22432                                         
  22433           <ifNull>
  22434                                               
  22435            <action 
  22436             action="se tAttribute
  22437             attribute= "ID" 
  22438             indexed="t rue"
  22439            >
  22440             fimBathNam e
  22441            </action>
  22442                                          
  22443           </ifNull>
  22444                                     
  22445          </mapping>
  22446                                    
  22447          <mapping>
  22448                                         
  22449           <property>
  22450            values.bat h
  22451           </property >
  22452                                         
  22453           <xpath>
  22454            cda:tr/cda :td/cda:co ntent[@ID= 'fimBathDe tail']
  22455           </xpath>
  22456                                         
  22457           <ifNotNull >
  22458                                               
  22459            <action 
  22460             action="se tAttribute
  22461             attribute= "ID" 
  22462             indexed="t rue"
  22463            >
  22464             fimBathDet ail
  22465            </action>
  22466                                          
  22467           </ifNotNul l>
  22468                                         
  22469           <ifNull>
  22470                                               
  22471            <action 
  22472             action="se tAttribute
  22473             attribute= "ID" 
  22474             indexed="t rue"
  22475            >
  22476             fimBathDet ail
  22477            </action>
  22478                                          
  22479           </ifNull>
  22480                                     
  22481          </mapping>
  22482                                    
  22483          <mapping>
  22484                                         
  22485           <property>
  22486            values.dre ssUp
  22487           </property >
  22488                                         
  22489           <xpath>
  22490            cda:tr/cda :td/cda:co ntent[@ID= 'fimDressU p']
  22491           </xpath>
  22492                                         
  22493           <ifNotNull >
  22494                                               
  22495            <action 
  22496             action="se tAttribute
  22497             attribute= "ID" 
  22498             indexed="t rue"
  22499            >
  22500             fimDressUp
  22501            </action>
  22502                                               
  22503            <action 
  22504             action="se tValue" 
  22505            />
  22506                                          
  22507           </ifNotNul l>
  22508                                         
  22509           <ifNull>
  22510                                               
  22511            <action 
  22512             action="se tAttribute
  22513             attribute= "ID" 
  22514             indexed="t rue"
  22515            >
  22516             fimDressUp
  22517            </action>
  22518                                          
  22519           </ifNull>
  22520                                     
  22521          </mapping>
  22522                                    
  22523          <mapping>
  22524                                         
  22525           <property>
  22526            values.dre ssUp
  22527           </property >
  22528                                         
  22529           <xpath>
  22530            cda:tr/cda :td/cda:co ntent[@ID= 'fimDressU pName']
  22531           </xpath>
  22532                                         
  22533           <ifNotNull >
  22534                                               
  22535            <action 
  22536             action="se tAttribute
  22537             attribute= "ID" 
  22538             indexed="t rue"
  22539            >
  22540             fimDressUp Name
  22541            </action>
  22542                                          
  22543           </ifNotNul l>
  22544                                         
  22545           <ifNull>
  22546                                               
  22547            <action 
  22548             action="se tAttribute
  22549             attribute= "ID" 
  22550             indexed="t rue"
  22551            >
  22552             fimDressUp Name
  22553            </action>
  22554                                          
  22555           </ifNull>
  22556                                     
  22557          </mapping>
  22558                                    
  22559          <mapping>
  22560                                         
  22561           <property>
  22562            values.dre ssUp
  22563           </property >
  22564                                         
  22565           <xpath>
  22566            cda:tr/cda :td/cda:co ntent[@ID= 'fimDressU pDetail']
  22567           </xpath>
  22568                                         
  22569           <ifNotNull >
  22570                                               
  22571            <action 
  22572             action="se tAttribute
  22573             attribute= "ID" 
  22574             indexed="t rue"
  22575            >
  22576             fimDressUp Detail
  22577            </action>
  22578                                          
  22579           </ifNotNul l>
  22580                                         
  22581           <ifNull>
  22582                                               
  22583            <action 
  22584             action="se tAttribute
  22585             attribute= "ID" 
  22586             indexed="t rue"
  22587            >
  22588             fimDressUp Detail
  22589            </action>
  22590                                          
  22591           </ifNull>
  22592                                     
  22593          </mapping>
  22594                                    
  22595          <mapping>
  22596                                         
  22597           <property>
  22598            values.dre ssLo
  22599           </property >
  22600                                         
  22601           <xpath>
  22602            cda:tr/cda :td/cda:co ntent[@ID= 'fimDressL o']
  22603           </xpath>
  22604                                         
  22605           <ifNotNull >
  22606                                               
  22607            <action 
  22608             action="se tAttribute
  22609             attribute= "ID" 
  22610             indexed="t rue"
  22611            >
  22612             fimDressLo
  22613            </action>
  22614                                               
  22615            <action 
  22616             action="se tValue" 
  22617            />
  22618                                          
  22619           </ifNotNul l>
  22620                                         
  22621           <ifNull>
  22622                                               
  22623            <action 
  22624             action="se tAttribute
  22625             attribute= "ID" 
  22626             indexed="t rue"
  22627            >
  22628             fimDressLo
  22629            </action>
  22630                                          
  22631           </ifNull>
  22632                                     
  22633          </mapping>
  22634                                    
  22635          <mapping>
  22636                                         
  22637           <property>
  22638            values.dre ssLo
  22639           </property >
  22640                                         
  22641           <xpath>
  22642            cda:tr/cda :td/cda:co ntent[@ID= 'fimDressL oName']
  22643           </xpath>
  22644                                         
  22645           <ifNotNull >
  22646                                               
  22647            <action 
  22648             action="se tAttribute
  22649             attribute= "ID" 
  22650             indexed="t rue"
  22651            >
  22652             fimDressLo Name
  22653            </action>
  22654                                          
  22655           </ifNotNul l>
  22656                                         
  22657           <ifNull>
  22658                                               
  22659            <action 
  22660             action="se tAttribute
  22661             attribute= "ID" 
  22662             indexed="t rue"
  22663            >
  22664             fimDressLo Name
  22665            </action>
  22666                                          
  22667           </ifNull>
  22668                                     
  22669          </mapping>
  22670                                    
  22671          <mapping>
  22672                                         
  22673           <property>
  22674            values.dre ssLo
  22675           </property >
  22676                                         
  22677           <xpath>
  22678            cda:tr/cda :td/cda:co ntent[@ID= 'fimDressL oDetail']
  22679           </xpath>
  22680                                         
  22681           <ifNotNull >
  22682                                               
  22683            <action 
  22684             action="se tAttribute
  22685             attribute= "ID" 
  22686             indexed="t rue"
  22687            >
  22688             fimDressLo Detail
  22689            </action>
  22690                                          
  22691           </ifNotNul l>
  22692                                         
  22693           <ifNull>
  22694                                               
  22695            <action 
  22696             action="se tAttribute
  22697             attribute= "ID" 
  22698             indexed="t rue"
  22699            >
  22700             fimDressLo Detail
  22701            </action>
  22702                                          
  22703           </ifNull>
  22704                                     
  22705          </mapping>
  22706                                    
  22707          <mapping>
  22708                                         
  22709           <property>
  22710            values.toi let
  22711           </property >
  22712                                         
  22713           <xpath>
  22714            cda:tr/cda :td/cda:co ntent[@ID= 'fimToilet ']
  22715           </xpath>
  22716                                         
  22717           <ifNotNull >
  22718                                               
  22719            <action 
  22720             action="se tAttribute
  22721             attribute= "ID" 
  22722             indexed="t rue"
  22723            >
  22724             fimToilet
  22725            </action>
  22726                                               
  22727            <action 
  22728             action="se tValue" 
  22729            />
  22730                                          
  22731           </ifNotNul l>
  22732                                         
  22733           <ifNull>
  22734                                               
  22735            <action 
  22736             action="se tAttribute
  22737             attribute= "ID" 
  22738             indexed="t rue"
  22739            >
  22740             fimToilet
  22741            </action>
  22742                                          
  22743           </ifNull>
  22744                                     
  22745          </mapping>
  22746                                    
  22747          <mapping>
  22748                                         
  22749           <property>
  22750            values.toi let
  22751           </property >
  22752                                         
  22753           <xpath>
  22754            cda:tr/cda :td/cda:co ntent[@ID= 'fimToilet Name']
  22755           </xpath>
  22756                                         
  22757           <ifNotNull >
  22758                                               
  22759            <action 
  22760             action="se tAttribute
  22761             attribute= "ID" 
  22762             indexed="t rue"
  22763            >
  22764             fimToiletN ame
  22765            </action>
  22766                                          
  22767           </ifNotNul l>
  22768                                         
  22769           <ifNull>
  22770                                               
  22771            <action 
  22772             action="se tAttribute
  22773             attribute= "ID" 
  22774             indexed="t rue"
  22775            >
  22776             fimToiletN ame
  22777            </action>
  22778                                          
  22779           </ifNull>
  22780                                     
  22781          </mapping>
  22782                                    
  22783          <mapping>
  22784                                         
  22785           <property>
  22786            values.toi let
  22787           </property >
  22788                                         
  22789           <xpath>
  22790            cda:tr/cda :td/cda:co ntent[@ID= 'fimToilet Detail']
  22791           </xpath>
  22792                                         
  22793           <ifNotNull >
  22794                                               
  22795            <action 
  22796             action="se tAttribute
  22797             attribute= "ID" 
  22798             indexed="t rue"
  22799            >
  22800             fimToiletD etail
  22801            </action>
  22802                                          
  22803           </ifNotNul l>
  22804                                         
  22805           <ifNull>
  22806                                               
  22807            <action 
  22808             action="se tAttribute
  22809             attribute= "ID" 
  22810             indexed="t rue"
  22811            >
  22812             fimToiletD etail
  22813            </action>
  22814                                          
  22815           </ifNull>
  22816                                     
  22817          </mapping>
  22818                                    
  22819          <mapping>
  22820                                         
  22821           <property>
  22822            values.bla dder
  22823           </property >
  22824                                         
  22825           <xpath>
  22826            cda:tr/cda :td/cda:co ntent[@ID= 'fimBladde r']
  22827           </xpath>
  22828                                         
  22829           <ifNotNull >
  22830                                               
  22831            <action 
  22832             action="se tAttribute
  22833             attribute= "ID" 
  22834             indexed="t rue"
  22835            >
  22836             fimBladder
  22837            </action>
  22838                                               
  22839            <action 
  22840             action="se tValue" 
  22841            />
  22842                                          
  22843           </ifNotNul l>
  22844                                         
  22845           <ifNull>
  22846                                               
  22847            <action 
  22848             action="se tAttribute
  22849             attribute= "ID" 
  22850             indexed="t rue"
  22851            >
  22852             fimBladder
  22853            </action>
  22854                                          
  22855           </ifNull>
  22856                                     
  22857          </mapping>
  22858                                    
  22859          <mapping>
  22860                                         
  22861           <property>
  22862            values.bla dder
  22863           </property >
  22864                                         
  22865           <xpath>
  22866            cda:tr/cda :td/cda:co ntent[@ID= 'fimBladde rName']
  22867           </xpath>
  22868                                         
  22869           <ifNotNull >
  22870                                               
  22871            <action 
  22872             action="se tAttribute
  22873             attribute= "ID" 
  22874             indexed="t rue"
  22875            >
  22876             fimBladder Name
  22877            </action>
  22878                                          
  22879           </ifNotNul l>
  22880                                         
  22881           <ifNull>
  22882                                               
  22883            <action 
  22884             action="se tAttribute
  22885             attribute= "ID" 
  22886             indexed="t rue"
  22887            >
  22888             fimBladder Name
  22889            </action>
  22890                                          
  22891           </ifNull>
  22892                                     
  22893          </mapping>
  22894                                    
  22895          <mapping>
  22896                                         
  22897           <property>
  22898            values.bla dder
  22899           </property >
  22900                                         
  22901           <xpath>
  22902            cda:tr/cda :td/cda:co ntent[@ID= 'fimBladde rDetail']
  22903           </xpath>
  22904                                         
  22905           <ifNotNull >
  22906                                               
  22907            <action 
  22908             action="se tAttribute
  22909             attribute= "ID" 
  22910             indexed="t rue"
  22911            >
  22912             fimBladder Detail
  22913            </action>
  22914                                          
  22915           </ifNotNul l>
  22916                                         
  22917           <ifNull>
  22918                                               
  22919            <action 
  22920             action="se tAttribute
  22921             attribute= "ID" 
  22922             indexed="t rue"
  22923            >
  22924             fimBladder Detail
  22925            </action>
  22926                                          
  22927           </ifNull>
  22928                                     
  22929          </mapping>
  22930                                    
  22931          <mapping>
  22932                                         
  22933           <property>
  22934            values.bow el
  22935           </property >
  22936                                         
  22937           <xpath>
  22938            cda:tr/cda :td/cda:co ntent[@ID= 'fimBowel' ]
  22939           </xpath>
  22940                                         
  22941           <ifNotNull >
  22942                                               
  22943            <action 
  22944             action="se tAttribute
  22945             attribute= "ID" 
  22946             indexed="t rue"
  22947            >
  22948             fimBowel
  22949            </action>
  22950                                               
  22951            <action 
  22952             action="se tValue" 
  22953            />
  22954                                          
  22955           </ifNotNul l>
  22956                                         
  22957           <ifNull>
  22958                                               
  22959            <action 
  22960             action="se tAttribute
  22961             attribute= "ID" 
  22962             indexed="t rue"
  22963            >
  22964             fimBowel
  22965            </action>
  22966                                          
  22967           </ifNull>
  22968                                     
  22969          </mapping>
  22970                                    
  22971          <mapping>
  22972                                         
  22973           <property>
  22974            values.bow el
  22975           </property >
  22976                                         
  22977           <xpath>
  22978            cda:tr/cda :td/cda:co ntent[@ID= 'fimBowelN ame']
  22979           </xpath>
  22980                                         
  22981           <ifNotNull >
  22982                                               
  22983            <action 
  22984             action="se tAttribute
  22985             attribute= "ID" 
  22986             indexed="t rue"
  22987            >
  22988             fimBowelNa me
  22989            </action>
  22990                                          
  22991           </ifNotNul l>
  22992                                         
  22993           <ifNull>
  22994                                               
  22995            <action 
  22996             action="se tAttribute
  22997             attribute= "ID" 
  22998             indexed="t rue"
  22999            >
  23000             fimBowelNa me
  23001            </action>
  23002                                          
  23003           </ifNull>
  23004                                     
  23005          </mapping>
  23006                                    
  23007          <mapping>
  23008                                         
  23009           <property>
  23010            values.bow el
  23011           </property >
  23012                                         
  23013           <xpath>
  23014            cda:tr/cda :td/cda:co ntent[@ID= 'fimBowelD etail']
  23015           </xpath>
  23016                                         
  23017           <ifNotNull >
  23018                                               
  23019            <action 
  23020             action="se tAttribute
  23021             attribute= "ID" 
  23022             indexed="t rue"
  23023            >
  23024             fimBowelDe tail
  23025            </action>
  23026                                          
  23027           </ifNotNul l>
  23028                                         
  23029           <ifNull>
  23030                                               
  23031            <action 
  23032             action="se tAttribute
  23033             attribute= "ID" 
  23034             indexed="t rue"
  23035            >
  23036             fimBowelDe tail
  23037            </action>
  23038                                          
  23039           </ifNull>
  23040                                     
  23041          </mapping>
  23042                                    
  23043          <mapping>
  23044                                         
  23045           <property>
  23046            values.tra nsChair
  23047           </property >
  23048                                         
  23049           <xpath>
  23050            cda:tr/cda :td/cda:co ntent[@ID= 'fimTransC hair']
  23051           </xpath>
  23052                                         
  23053           <ifNotNull >
  23054                                               
  23055            <action 
  23056             action="se tAttribute
  23057             attribute= "ID" 
  23058             indexed="t rue"
  23059            >
  23060             fimTransCh air
  23061            </action>
  23062                                               
  23063            <action 
  23064             action="se tValue" 
  23065            />
  23066                                          
  23067           </ifNotNul l>
  23068                                         
  23069           <ifNull>
  23070                                               
  23071            <action 
  23072             action="se tAttribute
  23073             attribute= "ID" 
  23074             indexed="t rue"
  23075            >
  23076             fimTransCh air
  23077            </action>
  23078                                          
  23079           </ifNull>
  23080                                     
  23081          </mapping>
  23082                                    
  23083          <mapping>
  23084                                         
  23085           <property>
  23086            values.tra nsChair
  23087           </property >
  23088                                         
  23089           <xpath>
  23090            cda:tr/cda :td/cda:co ntent[@ID= 'fimTransC hairName']
  23091           </xpath>
  23092                                         
  23093           <ifNotNull >
  23094                                               
  23095            <action 
  23096             action="se tAttribute
  23097             attribute= "ID" 
  23098             indexed="t rue"
  23099            >
  23100             fimTransCh airName
  23101            </action>
  23102                                          
  23103           </ifNotNul l>
  23104                                         
  23105           <ifNull>
  23106                                               
  23107            <action 
  23108             action="se tAttribute
  23109             attribute= "ID" 
  23110             indexed="t rue"
  23111            >
  23112             fimTransCh airName
  23113            </action>
  23114                                          
  23115           </ifNull>
  23116                                     
  23117          </mapping>
  23118                                    
  23119          <mapping>
  23120                                         
  23121           <property>
  23122            values.tra nsChair
  23123           </property >
  23124                                         
  23125           <xpath>
  23126            cda:tr/cda :td/cda:co ntent[@ID= 'fimTransC hairDetail ']
  23127           </xpath>
  23128                                         
  23129           <ifNotNull >
  23130                                               
  23131            <action 
  23132             action="se tAttribute
  23133             attribute= "ID" 
  23134             indexed="t rue"
  23135            >
  23136             fimTransCh airDetail
  23137            </action>
  23138                                          
  23139           </ifNotNul l>
  23140                                         
  23141           <ifNull>
  23142                                               
  23143            <action 
  23144             action="se tAttribute
  23145             attribute= "ID" 
  23146             indexed="t rue"
  23147            >
  23148             fimTransCh airDetail
  23149            </action>
  23150                                          
  23151           </ifNull>
  23152                                     
  23153          </mapping>
  23154                                    
  23155          <mapping>
  23156                                         
  23157           <property>
  23158            values.tra nsToilet
  23159           </property >
  23160                                         
  23161           <xpath>
  23162            cda:tr/cda :td/cda:co ntent[@ID= 'fimTransT oilet']
  23163           </xpath>
  23164                                         
  23165           <ifNotNull >
  23166                                               
  23167            <action 
  23168             action="se tAttribute
  23169             attribute= "ID" 
  23170             indexed="t rue"
  23171            >
  23172             fimTransTo ilet
  23173            </action>
  23174                                               
  23175            <action 
  23176             action="se tValue" 
  23177            />
  23178                                          
  23179           </ifNotNul l>
  23180                                         
  23181           <ifNull>
  23182                                               
  23183            <action 
  23184             action="se tAttribute
  23185             attribute= "ID" 
  23186             indexed="t rue"
  23187            >
  23188             fimTransTo ilet
  23189            </action>
  23190                                          
  23191           </ifNull>
  23192                                     
  23193          </mapping>
  23194                                    
  23195          <mapping>
  23196                                         
  23197           <property>
  23198            values.tra nsToilet
  23199           </property >
  23200                                         
  23201           <xpath>
  23202            cda:tr/cda :td/cda:co ntent[@ID= 'fimTransT oiletName' ]
  23203           </xpath>
  23204                                         
  23205           <ifNotNull >
  23206                                               
  23207            <action 
  23208             action="se tAttribute
  23209             attribute= "ID" 
  23210             indexed="t rue"
  23211            >
  23212             fimTransTo iletName
  23213            </action>
  23214                                          
  23215           </ifNotNul l>
  23216                                         
  23217           <ifNull>
  23218                                               
  23219            <action 
  23220             action="se tAttribute
  23221             attribute= "ID" 
  23222             indexed="t rue"
  23223            >
  23224             fimTransTo iletName
  23225            </action>
  23226                                          
  23227           </ifNull>
  23228                                     
  23229          </mapping>
  23230                                    
  23231          <mapping>
  23232                                         
  23233           <property>
  23234            values.tra nsToilet
  23235           </property >
  23236                                         
  23237           <xpath>
  23238            cda:tr/cda :td/cda:co ntent[@ID= 'fimTransT oiletDetai l']
  23239           </xpath>
  23240                                         
  23241           <ifNotNull >
  23242                                               
  23243            <action 
  23244             action="se tAttribute
  23245             attribute= "ID" 
  23246             indexed="t rue"
  23247            >
  23248             fimTransTo iletDetail
  23249            </action>
  23250                                          
  23251           </ifNotNul l>
  23252                                         
  23253           <ifNull>
  23254                                               
  23255            <action 
  23256             action="se tAttribute
  23257             attribute= "ID" 
  23258             indexed="t rue"
  23259            >
  23260             fimTransTo iletDetail
  23261            </action>
  23262                                          
  23263           </ifNull>
  23264                                     
  23265          </mapping>
  23266                                    
  23267          <mapping>
  23268                                         
  23269           <property>
  23270            values.tra nsTub
  23271           </property >
  23272                                         
  23273           <xpath>
  23274            cda:tr/cda :td/cda:co ntent[@ID= 'fimTransT ub']
  23275           </xpath>
  23276                                         
  23277           <ifNotNull >
  23278                                               
  23279            <action 
  23280             action="se tAttribute
  23281             attribute= "ID" 
  23282             indexed="t rue"
  23283            >
  23284             fimTransTu b
  23285            </action>
  23286                                               
  23287            <action 
  23288             action="se tValue" 
  23289            />
  23290                                          
  23291           </ifNotNul l>
  23292                                         
  23293           <ifNull>
  23294                                               
  23295            <action 
  23296             action="se tAttribute
  23297             attribute= "ID" 
  23298             indexed="t rue"
  23299            >
  23300             fimTransTu b
  23301            </action>
  23302                                          
  23303           </ifNull>
  23304                                     
  23305          </mapping>
  23306                                    
  23307          <mapping>
  23308                                         
  23309           <property>
  23310            values.tra nsTub
  23311           </property >
  23312                                         
  23313           <xpath>
  23314            cda:tr/cda :td/cda:co ntent[@ID= 'fimTransT ubName']
  23315           </xpath>
  23316                                         
  23317           <ifNotNull >
  23318                                               
  23319            <action 
  23320             action="se tAttribute
  23321             attribute= "ID" 
  23322             indexed="t rue"
  23323            >
  23324             fimTransTu bName
  23325            </action>
  23326                                          
  23327           </ifNotNul l>
  23328                                         
  23329           <ifNull>
  23330                                               
  23331            <action 
  23332             action="se tAttribute
  23333             attribute= "ID" 
  23334             indexed="t rue"
  23335            >
  23336             fimTransTu bName
  23337            </action>
  23338                                          
  23339           </ifNull>
  23340                                     
  23341          </mapping>
  23342                                    
  23343          <mapping>
  23344                                         
  23345           <property>
  23346            values.tra nsTub
  23347           </property >
  23348                                         
  23349           <xpath>
  23350            cda:tr/cda :td/cda:co ntent[@ID= 'fimTransT ubDetail']
  23351           </xpath>
  23352                                         
  23353           <ifNotNull >
  23354                                               
  23355            <action 
  23356             action="se tAttribute
  23357             attribute= "ID" 
  23358             indexed="t rue"
  23359            >
  23360             fimTransTu bDetail
  23361            </action>
  23362                                          
  23363           </ifNotNul l>
  23364                                         
  23365           <ifNull>
  23366                                               
  23367            <action 
  23368             action="se tAttribute
  23369             attribute= "ID" 
  23370             indexed="t rue"
  23371            >
  23372             fimTransTu bDetail
  23373            </action>
  23374                                          
  23375           </ifNull>
  23376                                     
  23377          </mapping>
  23378                                    
  23379          <mapping>
  23380                                         
  23381           <property>
  23382            values.loc omWalk
  23383           </property >
  23384                                         
  23385           <xpath>
  23386            cda:tr/cda :td/cda:co ntent[@ID= 'fimLocomW alk']
  23387           </xpath>
  23388                                         
  23389           <ifNotNull >
  23390                                               
  23391            <action 
  23392             action="se tAttribute
  23393             attribute= "ID" 
  23394             indexed="t rue"
  23395            >
  23396             fimLocomWa lk
  23397            </action>
  23398                                               
  23399            <action 
  23400             action="se tValue" 
  23401            />
  23402                                          
  23403           </ifNotNul l>
  23404                                         
  23405           <ifNull>
  23406                                               
  23407            <action 
  23408             action="se tAttribute
  23409             attribute= "ID" 
  23410             indexed="t rue"
  23411            >
  23412             fimLocomWa lk
  23413            </action>
  23414                                          
  23415           </ifNull>
  23416                                     
  23417          </mapping>
  23418                                    
  23419          <mapping>
  23420                                         
  23421           <property>
  23422            values.loc omWalk
  23423           </property >
  23424                                         
  23425           <xpath>
  23426            cda:tr/cda :td/cda:co ntent[@ID= 'fimLocomW alkName']
  23427           </xpath>
  23428                                         
  23429           <ifNotNull >
  23430                                               
  23431            <action 
  23432             action="se tAttribute
  23433             attribute= "ID" 
  23434             indexed="t rue"
  23435            >
  23436             fimLocomWa lkName
  23437            </action>
  23438                                          
  23439           </ifNotNul l>
  23440                                         
  23441           <ifNull>
  23442                                               
  23443            <action 
  23444             action="se tAttribute
  23445             attribute= "ID" 
  23446             indexed="t rue"
  23447            >
  23448             fimLocomWa lkName
  23449            </action>
  23450                                          
  23451           </ifNull>
  23452                                     
  23453          </mapping>
  23454                                    
  23455          <mapping>
  23456                                         
  23457           <property>
  23458            values.wal kComment
  23459           </property >
  23460                                         
  23461           <xpath>
  23462            cda:tr/cda :td/cda:co ntent[@ID= 'fimLocomW alkDetail' ]
  23463           </xpath>
  23464                                         
  23465           <ifNotNull >
  23466                                               
  23467            <action 
  23468             action="se tAttribute
  23469             attribute= "ID" 
  23470             indexed="t rue"
  23471            >
  23472             fimLocomWa lkDetail
  23473            </action>
  23474                                               
  23475            <action 
  23476             action="ap pendValue"  
  23477            />
  23478                                          
  23479           </ifNotNul l>
  23480                                         
  23481           <ifNull>
  23482                                               
  23483            <action 
  23484             action="se tAttribute
  23485             attribute= "ID" 
  23486             indexed="t rue"
  23487            >
  23488             fimLocomWa lkDetail
  23489            </action>
  23490                                          
  23491           </ifNull>
  23492                                     
  23493          </mapping>
  23494                                    
  23495          <mapping>
  23496                                         
  23497           <property>
  23498            values.loc omStair
  23499           </property >
  23500                                         
  23501           <xpath>
  23502            cda:tr/cda :td/cda:co ntent[@ID= 'fimLocomS tair']
  23503           </xpath>
  23504                                         
  23505           <ifNotNull >
  23506                                               
  23507            <action 
  23508             action="se tAttribute
  23509             attribute= "ID" 
  23510             indexed="t rue"
  23511            >
  23512             fimLocomSt air
  23513            </action>
  23514                                               
  23515            <action 
  23516             action="se tValue" 
  23517            />
  23518                                          
  23519           </ifNotNul l>
  23520                                         
  23521           <ifNull>
  23522                                               
  23523            <action 
  23524             action="se tAttribute
  23525             attribute= "ID" 
  23526             indexed="t rue"
  23527            >
  23528             fimLocomSt air
  23529            </action>
  23530                                          
  23531           </ifNull>
  23532                                     
  23533          </mapping>
  23534                                    
  23535          <mapping>
  23536                                         
  23537           <property>
  23538            values.loc omStair
  23539           </property >
  23540                                         
  23541           <xpath>
  23542            cda:tr/cda :td/cda:co ntent[@ID= 'fimLocomS tairName']
  23543           </xpath>
  23544                                         
  23545           <ifNotNull >
  23546                                               
  23547            <action 
  23548             action="se tAttribute
  23549             attribute= "ID" 
  23550             indexed="t rue"
  23551            >
  23552             fimLocomSt airName
  23553            </action>
  23554                                          
  23555           </ifNotNul l>
  23556                                         
  23557           <ifNull>
  23558                                               
  23559            <action 
  23560             action="se tAttribute
  23561             attribute= "ID" 
  23562             indexed="t rue"
  23563            >
  23564             fimLocomSt airName
  23565            </action>
  23566                                          
  23567           </ifNull>
  23568                                     
  23569          </mapping>
  23570                                    
  23571          <mapping>
  23572                                         
  23573           <property>
  23574            values.loc omStair
  23575           </property >
  23576                                         
  23577           <xpath>
  23578            cda:tr/cda :td/cda:co ntent[@ID= 'fimLocomS tairDetail ']
  23579           </xpath>
  23580                                         
  23581           <ifNotNull >
  23582                                               
  23583            <action 
  23584             action="se tAttribute
  23585             attribute= "ID" 
  23586             indexed="t rue"
  23587            >
  23588             fimLocomSt airDetail
  23589            </action>
  23590                                          
  23591           </ifNotNul l>
  23592                                         
  23593           <ifNull>
  23594                                               
  23595            <action 
  23596             action="se tAttribute
  23597             attribute= "ID" 
  23598             indexed="t rue"
  23599            >
  23600             fimLocomSt airDetail
  23601            </action>
  23602                                          
  23603           </ifNull>
  23604                                     
  23605          </mapping>
  23606                                    
  23607          <mapping>
  23608                                         
  23609           <property>
  23610            values.com prehend
  23611           </property >
  23612                                         
  23613           <xpath>
  23614            cda:tr/cda :td/cda:co ntent[@ID= 'fimCompre hend']
  23615           </xpath>
  23616                                         
  23617           <ifNotNull >
  23618                                               
  23619            <action 
  23620             action="se tAttribute
  23621             attribute= "ID" 
  23622             indexed="t rue"
  23623            >
  23624             fimCompreh end
  23625            </action>
  23626                                               
  23627            <action 
  23628             action="se tValue" 
  23629            />
  23630                                          
  23631           </ifNotNul l>
  23632                                         
  23633           <ifNull>
  23634                                               
  23635            <action 
  23636             action="se tAttribute
  23637             attribute= "ID" 
  23638             indexed="t rue"
  23639            >
  23640             fimCompreh end
  23641            </action>
  23642                                          
  23643           </ifNull>
  23644                                     
  23645          </mapping>
  23646                                    
  23647          <mapping>
  23648                                         
  23649           <property>
  23650            values.com prehend
  23651           </property >
  23652                                         
  23653           <xpath>
  23654            cda:tr/cda :td/cda:co ntent[@ID= 'fimCompre hendName']
  23655           </xpath>
  23656                                         
  23657           <ifNotNull >
  23658                                               
  23659            <action 
  23660             action="se tAttribute
  23661             attribute= "ID" 
  23662             indexed="t rue"
  23663            >
  23664             fimCompreh endName
  23665            </action>
  23666                                          
  23667           </ifNotNul l>
  23668                                         
  23669           <ifNull>
  23670                                               
  23671            <action 
  23672             action="se tAttribute
  23673             attribute= "ID" 
  23674             indexed="t rue"
  23675            >
  23676             fimCompreh endName
  23677            </action>
  23678                                          
  23679           </ifNull>
  23680                                     
  23681          </mapping>
  23682                                    
  23683          <mapping>
  23684                                         
  23685           <property>
  23686            values.com prehendCom ment
  23687           </property >
  23688                                         
  23689           <xpath>
  23690            cda:tr/cda :td/cda:co ntent[@ID= 'fimCompre hendDetail ']
  23691           </xpath>
  23692                                         
  23693           <ifNotNull >
  23694                                               
  23695            <action 
  23696             action="se tAttribute
  23697             attribute= "ID" 
  23698             indexed="t rue"
  23699            >
  23700             fimCompreh endDetail
  23701            </action>
  23702                                               
  23703            <action 
  23704             action="ap pendValue"  
  23705            />
  23706                                          
  23707           </ifNotNul l>
  23708                                         
  23709           <ifNull>
  23710                                               
  23711            <action 
  23712             action="se tAttribute
  23713             attribute= "ID" 
  23714             indexed="t rue"
  23715            >
  23716             fimCompreh endDetail
  23717            </action>
  23718                                          
  23719           </ifNull>
  23720                                     
  23721          </mapping>
  23722                                    
  23723          <mapping>
  23724                                         
  23725           <property>
  23726            values.exp ress
  23727           </property >
  23728                                         
  23729           <xpath>
  23730            cda:tr/cda :td/cda:co ntent[@ID= 'fimExpres s']
  23731           </xpath>
  23732                                         
  23733           <ifNotNull >
  23734                                               
  23735            <action 
  23736             action="se tAttribute
  23737             attribute= "ID" 
  23738             indexed="t rue"
  23739            >
  23740             fimExpress
  23741            </action>
  23742                                               
  23743            <action 
  23744             action="se tValue" 
  23745            />
  23746                                          
  23747           </ifNotNul l>
  23748                                         
  23749           <ifNull>
  23750                                               
  23751            <action 
  23752             action="se tAttribute
  23753             attribute= "ID" 
  23754             indexed="t rue"
  23755            >
  23756             fimExpress
  23757            </action>
  23758                                          
  23759           </ifNull>
  23760                                     
  23761          </mapping>
  23762                                    
  23763          <mapping>
  23764                                         
  23765           <property>
  23766            values.exp ress
  23767           </property >
  23768                                         
  23769           <xpath>
  23770            cda:tr/cda :td/cda:co ntent[@ID= 'fimExpres sName']
  23771           </xpath>
  23772                                         
  23773           <ifNotNull >
  23774                                               
  23775            <action 
  23776             action="se tAttribute
  23777             attribute= "ID" 
  23778             indexed="t rue"
  23779            >
  23780             fimExpress Name
  23781            </action>
  23782                                          
  23783           </ifNotNul l>
  23784                                         
  23785           <ifNull>
  23786                                               
  23787            <action 
  23788             action="se tAttribute
  23789             attribute= "ID" 
  23790             indexed="t rue"
  23791            >
  23792             fimExpress Name
  23793            </action>
  23794                                          
  23795           </ifNull>
  23796                                     
  23797          </mapping>
  23798                                    
  23799          <mapping>
  23800                                         
  23801           <property>
  23802            values.exp ressCommen t
  23803           </property >
  23804                                         
  23805           <xpath>
  23806            cda:tr/cda :td/cda:co ntent[@ID= 'fimExpres sDetail']
  23807           </xpath>
  23808                                         
  23809           <ifNotNull >
  23810                                               
  23811            <action 
  23812             action="se tAttribute
  23813             attribute= "ID" 
  23814             indexed="t rue"
  23815            >
  23816             fimExpress Detail
  23817            </action>
  23818                                               
  23819            <action 
  23820             action="ap pendValue"  
  23821            />
  23822                                          
  23823           </ifNotNul l>
  23824                                         
  23825           <ifNull>
  23826                                               
  23827            <action 
  23828             action="se tAttribute
  23829             attribute= "ID" 
  23830             indexed="t rue"
  23831            >
  23832             fimExpress Detail
  23833            </action>
  23834                                          
  23835           </ifNull>
  23836                                     
  23837          </mapping>
  23838                                    
  23839          <mapping>
  23840                                         
  23841           <property>
  23842            values.int eract
  23843           </property >
  23844                                         
  23845           <xpath>
  23846            cda:tr/cda :td/cda:co ntent[@ID= 'fimIntera ct']
  23847           </xpath>
  23848                                         
  23849           <ifNotNull >
  23850                                               
  23851            <action 
  23852             action="se tAttribute
  23853             attribute= "ID" 
  23854             indexed="t rue"
  23855            >
  23856             fimInterac t
  23857            </action>
  23858                                               
  23859            <action 
  23860             action="se tValue" 
  23861            />
  23862                                          
  23863           </ifNotNul l>
  23864                                         
  23865           <ifNull>
  23866                                               
  23867            <action 
  23868             action="se tAttribute
  23869             attribute= "ID" 
  23870             indexed="t rue"
  23871            >
  23872             fimInterac t
  23873            </action>
  23874                                          
  23875           </ifNull>
  23876                                     
  23877          </mapping>
  23878                                    
  23879          <mapping>
  23880                                         
  23881           <property>
  23882            values.int eract
  23883           </property >
  23884                                         
  23885           <xpath>
  23886            cda:tr/cda :td/cda:co ntent[@ID= 'fimIntera ctName']
  23887           </xpath>
  23888                                         
  23889           <ifNotNull >
  23890                                               
  23891            <action 
  23892             action="se tAttribute
  23893             attribute= "ID" 
  23894             indexed="t rue"
  23895            >
  23896             fimInterac tName
  23897            </action>
  23898                                          
  23899           </ifNotNul l>
  23900                                         
  23901           <ifNull>
  23902                                               
  23903            <action 
  23904             action="se tAttribute
  23905             attribute= "ID" 
  23906             indexed="t rue"
  23907            >
  23908             fimInterac tName
  23909            </action>
  23910                                          
  23911           </ifNull>
  23912                                     
  23913          </mapping>
  23914                                    
  23915          <mapping>
  23916                                         
  23917           <property>
  23918            values.int eract
  23919           </property >
  23920                                         
  23921           <xpath>
  23922            cda:tr/cda :td/cda:co ntent[@ID= 'fimIntera ctDetail']
  23923           </xpath>
  23924                                         
  23925           <ifNotNull >
  23926                                               
  23927            <action 
  23928             action="se tAttribute
  23929             attribute= "ID" 
  23930             indexed="t rue"
  23931            >
  23932             fimInterac tDetail
  23933            </action>
  23934                                          
  23935           </ifNotNul l>
  23936                                         
  23937           <ifNull>
  23938                                               
  23939            <action 
  23940             action="se tAttribute
  23941             attribute= "ID" 
  23942             indexed="t rue"
  23943            >
  23944             fimInterac tDetail
  23945            </action>
  23946                                          
  23947           </ifNull>
  23948                                     
  23949          </mapping>
  23950                                    
  23951          <mapping>
  23952                                         
  23953           <property>
  23954            values.pro blem
  23955           </property >
  23956                                         
  23957           <xpath>
  23958            cda:tr/cda :td/cda:co ntent[@ID= 'fimProble m']
  23959           </xpath>
  23960                                         
  23961           <ifNotNull >
  23962                                               
  23963            <action 
  23964             action="se tAttribute
  23965             attribute= "ID" 
  23966             indexed="t rue"
  23967            >
  23968             fimProblem
  23969            </action>
  23970                                               
  23971            <action 
  23972             action="se tValue" 
  23973            />
  23974                                          
  23975           </ifNotNul l>
  23976                                         
  23977           <ifNull>
  23978                                               
  23979            <action 
  23980             action="se tAttribute
  23981             attribute= "ID" 
  23982             indexed="t rue"
  23983            >
  23984             fimProblem
  23985            </action>
  23986                                          
  23987           </ifNull>
  23988                                     
  23989          </mapping>
  23990                                    
  23991          <mapping>
  23992                                         
  23993           <property>
  23994            values.pro blem
  23995           </property >
  23996                                         
  23997           <xpath>
  23998            cda:tr/cda :td/cda:co ntent[@ID= 'fimProble mName']
  23999           </xpath>
  24000                                         
  24001           <ifNotNull >
  24002                                               
  24003            <action 
  24004             action="se tAttribute
  24005             attribute= "ID" 
  24006             indexed="t rue"
  24007            >
  24008             fimProblem Name
  24009            </action>
  24010                                          
  24011           </ifNotNul l>
  24012                                         
  24013           <ifNull>
  24014                                               
  24015            <action 
  24016             action="se tAttribute
  24017             attribute= "ID" 
  24018             indexed="t rue"
  24019            >
  24020             fimProblem Name
  24021            </action>
  24022                                          
  24023           </ifNull>
  24024                                     
  24025          </mapping>
  24026                                    
  24027          <mapping>
  24028                                         
  24029           <property>
  24030            values.pro blem
  24031           </property >
  24032                                         
  24033           <xpath>
  24034            cda:tr/cda :td/cda:co ntent[@ID= 'fimProble mDetail']
  24035           </xpath>
  24036                                         
  24037           <ifNotNull >
  24038                                               
  24039            <action 
  24040             action="se tAttribute
  24041             attribute= "ID" 
  24042             indexed="t rue"
  24043            >
  24044             fimProblem Detail
  24045            </action>
  24046                                          
  24047           </ifNotNul l>
  24048                                         
  24049           <ifNull>
  24050                                               
  24051            <action 
  24052             action="se tAttribute
  24053             attribute= "ID" 
  24054             indexed="t rue"
  24055            >
  24056             fimProblem Detail
  24057            </action>
  24058                                          
  24059           </ifNull>
  24060                                     
  24061          </mapping>
  24062                                    
  24063          <mapping>
  24064                                         
  24065           <property>
  24066            values.mem ory
  24067           </property >
  24068                                         
  24069           <xpath>
  24070            cda:tr/cda :td/cda:co ntent[@ID= 'fimMemory ']
  24071           </xpath>
  24072                                         
  24073           <ifNotNull >
  24074                                               
  24075            <action 
  24076             action="se tAttribute
  24077             attribute= "ID" 
  24078             indexed="t rue"
  24079            >
  24080             fimMemory
  24081            </action>
  24082                                               
  24083            <action 
  24084             action="se tValue" 
  24085            />
  24086                                          
  24087           </ifNotNul l>
  24088                                         
  24089           <ifNull>
  24090                                               
  24091            <action 
  24092             action="se tAttribute
  24093             attribute= "ID" 
  24094             indexed="t rue"
  24095            >
  24096             fimMemory
  24097            </action>
  24098                                          
  24099           </ifNull>
  24100                                     
  24101          </mapping>
  24102                                    
  24103          <mapping>
  24104                                         
  24105           <property>
  24106            values.mem ory
  24107           </property >
  24108                                         
  24109           <xpath>
  24110            cda:tr/cda :td/cda:co ntent[@ID= 'fimMemory Name']
  24111           </xpath>
  24112                                         
  24113           <ifNotNull >
  24114                                               
  24115            <action 
  24116             action="se tAttribute
  24117             attribute= "ID" 
  24118             indexed="t rue"
  24119            >
  24120             fimMemoryN ame
  24121            </action>
  24122                                          
  24123           </ifNotNul l>
  24124                                         
  24125           <ifNull>
  24126                                               
  24127            <action 
  24128             action="se tAttribute
  24129             attribute= "ID" 
  24130             indexed="t rue"
  24131            >
  24132             fimMemoryN ame
  24133            </action>
  24134                                          
  24135           </ifNull>
  24136                                     
  24137          </mapping>
  24138                                    
  24139          <mapping>
  24140                                         
  24141           <property>
  24142            values.mem ory
  24143           </property >
  24144                                         
  24145           <xpath>
  24146            cda:tr/cda :td/cda:co ntent[@ID= 'fimMemory Detail']
  24147           </xpath>
  24148                                         
  24149           <ifNotNull >
  24150                                               
  24151            <action 
  24152             action="se tAttribute
  24153             attribute= "ID" 
  24154             indexed="t rue"
  24155            >
  24156             fimMemoryD etail
  24157            </action>
  24158                                          
  24159           </ifNotNul l>
  24160                                         
  24161           <ifNull>
  24162                                               
  24163            <action 
  24164             action="se tAttribute
  24165             attribute= "ID" 
  24166             indexed="t rue"
  24167            >
  24168             fimMemoryD etail
  24169            </action>
  24170                                          
  24171           </ifNull>
  24172                                     
  24173          </mapping>
  24174                                    
  24175          <mapping>
  24176                                         
  24177           <property>
  24178            values.tot al
  24179           </property >
  24180                                         
  24181           <xpath>
  24182            cda:tr/cda :td/cda:co ntent[@ID= 'fimTotal' ]
  24183           </xpath>
  24184                                         
  24185           <ifNotNull >
  24186                                               
  24187            <action 
  24188             action="se tAttribute
  24189             attribute= "ID" 
  24190             indexed="t rue"
  24191            >
  24192             fimTotal
  24193            </action>
  24194                                               
  24195            <action 
  24196             action="se tValue" 
  24197            />
  24198                                          
  24199           </ifNotNul l>
  24200                                         
  24201           <ifNull>
  24202                                               
  24203            <action 
  24204             action="se tAttribute
  24205             attribute= "ID" 
  24206             indexed="t rue"
  24207            >
  24208             fimTotal
  24209            </action>
  24210                                          
  24211           </ifNull>
  24212                                     
  24213          </mapping>
  24214                                    
  24215          <mapping>
  24216                                         
  24217           <property>
  24218            values.tot al
  24219           </property >
  24220                                         
  24221           <xpath>
  24222            cda:tr/cda :td/cda:co ntent[@ID= 'fimTotalN ame']
  24223           </xpath>
  24224                                         
  24225           <ifNotNull >
  24226                                               
  24227            <action 
  24228             action="se tAttribute
  24229             attribute= "ID" 
  24230             indexed="t rue"
  24231            >
  24232             fimTotalNa me
  24233            </action>
  24234                                          
  24235           </ifNotNul l>
  24236                                         
  24237           <ifNull>
  24238                                               
  24239            <action 
  24240             action="se tAttribute
  24241             attribute= "ID" 
  24242             indexed="t rue"
  24243            >
  24244             fimTotalNa me
  24245            </action>
  24246                                          
  24247           </ifNull>
  24248                                     
  24249          </mapping>
  24250                                    
  24251          <mapping>
  24252                                         
  24253           <property>
  24254            values.tot al
  24255           </property >
  24256                                         
  24257           <xpath>
  24258            cda:tr/cda :td/cda:co ntent[@ID= 'fimTotalD etail']
  24259           </xpath>
  24260                                         
  24261           <ifNotNull >
  24262                                               
  24263            <action 
  24264             action="se tAttribute
  24265             attribute= "ID" 
  24266             indexed="t rue"
  24267            >
  24268             fimTotalDe tail
  24269            </action>
  24270                                          
  24271           </ifNotNul l>
  24272                                         
  24273           <ifNull>
  24274                                               
  24275            <action 
  24276             action="se tAttribute
  24277             attribute= "ID" 
  24278             indexed="t rue"
  24279            >
  24280             fimTotalDe tail
  24281            </action>
  24282                                          
  24283           </ifNull>
  24284                                     
  24285          </mapping>
  24286                               
  24287         </mappings >
  24288                          
  24289        </mapping>                  
  24290                     
  24291       </mappings >             
  24292               
  24293      </mapping>
  24294              
  24295      <!-- FUNCT IONAL INDE PENDENCE M EASUREMENT S SECTION  -->
  24296              
  24297      <mapping>
  24298                    
  24299       <property 
  24300        collection ="true" 
  24301        optional=" true"
  24302       >
  24303        functional Independen ceMeasurem ents
  24304       </property >
  24305                    
  24306       <xpath>
  24307        /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']
  24308       </xpath>
  24309                    
  24310       <ifNotNull >
  24311                         
  24312        <action 
  24313         action="ev aluateMapp ings" 
  24314        />
  24315                     
  24316       </ifNotNul l>
  24317                    
  24318       <ifNull>
  24319                     
  24320       </ifNull>
  24321                    
  24322       <mappings>
  24323                         
  24324        <mapping>
  24325                              
  24326         <property 
  24327          collection ="true" 
  24328         >
  24329          assessment s,assessme nts.assess ment
  24330         </property >
  24331                              
  24332         <xpath>
  24333          .
  24334         </xpath>
  24335                              
  24336         <ifNotNull >
  24337                                    
  24338          <action 
  24339           action="ev aluateMapp ings"
  24340          />
  24341                               
  24342         </ifNotNul l>
  24343                              
  24344         <mappings>
  24345                                    
  24346          <mapping>
  24347                                         
  24348           <property>
  24349            assessment DateRaw
  24350           </property >
  24351                                         
  24352           <xpath>
  24353            cda:organi zer/cda:ef fectiveTim e/cda:low[ @value='as sessTime']
  24354           </xpath>
  24355                                         
  24356           <ifNotNull >
  24357                                               
  24358            <action 
  24359             action="se tAttribute
  24360             attribute= "value"
  24361            />
  24362                                          
  24363           </ifNotNul l>
  24364                                         
  24365           <ifNull>
  24366                                               
  24367            <action 
  24368             action="se tAttribute
  24369             attribute= "value"
  24370            />
  24371                                          
  24372           </ifNull>
  24373                                     
  24374          </mapping>
  24375                                    
  24376          <mapping>
  24377                                         
  24378           <property>
  24379            assessment Type
  24380           </property >
  24381                                         
  24382           <xpath>
  24383            cda:organi zer/cda:co de/cda:ori ginalText/ cda:refere nce[@value ='#fimAsse ssment']
  24384           </xpath>
  24385                                         
  24386           <ifNotNull >
  24387                                               
  24388            <action 
  24389             action="se tAttribute
  24390             attribute= "value" 
  24391             indexed="t rue"
  24392            >
  24393             #fimAssess ment
  24394            </action>
  24395                                          
  24396           </ifNotNul l>
  24397                                         
  24398           <ifNull>
  24399                                               
  24400            <action 
  24401             action="se tAttribute
  24402             attribute= "value" 
  24403             indexed="t rue"
  24404            >
  24405             #fimAssess ment
  24406            </action>
  24407                                          
  24408           </ifNull>
  24409                                     
  24410          </mapping>
  24411                                    
  24412          <mapping>
  24413                                         
  24414           <property>
  24415            assessment DateRaw
  24416           </property >
  24417                                         
  24418           <xpath>
  24419            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']
  24420           </xpath>
  24421                                         
  24422           <ifNotNull >
  24423                                               
  24424            <action 
  24425             action="se tAttribute
  24426             attribute= "value"
  24427            />
  24428                                          
  24429           </ifNotNul l>
  24430                                         
  24431           <ifNull>
  24432                                               
  24433            <action 
  24434             action="se tAttribute
  24435             attribute= "value"
  24436            />
  24437                                          
  24438           </ifNull>
  24439                                     
  24440          </mapping>
  24441                                    
  24442          <mapping>
  24443                                         
  24444           <property>
  24445            values.eat
  24446           </property >
  24447                                         
  24448           <xpath>
  24449            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']
  24450           </xpath>
  24451                                         
  24452           <ifNotNull >
  24453                                               
  24454            <action 
  24455             action="se tAttribute
  24456             attribute= "value" 
  24457             indexed="t rue"
  24458            >
  24459             #fimEat
  24460            </action>
  24461                                          
  24462           </ifNotNul l>
  24463                                         
  24464           <ifNull>
  24465                                               
  24466            <action 
  24467             action="se tAttribute
  24468             attribute= "value" 
  24469             indexed="t rue"
  24470            >
  24471             #fimEat
  24472            </action>
  24473                                          
  24474           </ifNull>
  24475                                     
  24476          </mapping>
  24477                                    
  24478          <mapping>
  24479                                         
  24480           <property>
  24481            values.eat
  24482           </property >
  24483                                         
  24484           <xpath>
  24485            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']
  24486           </xpath>
  24487                                         
  24488           <ifNotNull >
  24489                                               
  24490            <action 
  24491             action="se tAttribute
  24492             attribute= "value" 
  24493             indexed="t rue"
  24494            >
  24495             #fimEatNam e
  24496            </action>
  24497                                          
  24498           </ifNotNul l>
  24499                                         
  24500           <ifNull>
  24501                                               
  24502            <action 
  24503             action="se tAttribute
  24504             attribute= "value" 
  24505             indexed="t rue"
  24506            >
  24507             #fimEatNam e
  24508            </action>
  24509                                          
  24510           </ifNull>
  24511                                     
  24512          </mapping>
  24513                                    
  24514          <mapping>
  24515                                         
  24516           <property>
  24517            values.eat
  24518           </property >
  24519                                         
  24520           <xpath>
  24521            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 ']
  24522           </xpath>
  24523                                         
  24524           <ifNotNull >
  24525                                               
  24526            <action 
  24527             action="se tAttribute
  24528             attribute= "value" 
  24529             indexed="t rue"
  24530            >
  24531             #fimEatDet ail
  24532            </action>
  24533                                          
  24534           </ifNotNul l>
  24535                                         
  24536           <ifNull>
  24537                                               
  24538            <action 
  24539             action="se tAttribute
  24540             attribute= "value" 
  24541             indexed="t rue"
  24542            >
  24543             #fimEatDet ail
  24544            </action>
  24545                                          
  24546           </ifNull>
  24547                                     
  24548          </mapping>
  24549                                    
  24550          <mapping>
  24551                                         
  24552           <property>
  24553            assessment DateRaw
  24554           </property >
  24555                                         
  24556           <xpath>
  24557            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']
  24558           </xpath>
  24559                                         
  24560           <ifNotNull >
  24561                                               
  24562            <action 
  24563             action="se tAttribute
  24564             attribute= "value"
  24565            />
  24566                                          
  24567           </ifNotNul l>
  24568                                         
  24569           <ifNull>
  24570                                               
  24571            <action 
  24572             action="se tAttribute
  24573             attribute= "value"
  24574            />
  24575                                          
  24576           </ifNull>
  24577                                     
  24578          </mapping>
  24579                                    
  24580          <mapping>
  24581                                         
  24582           <property>
  24583            values.gro om
  24584           </property >
  24585                                         
  24586           <xpath>
  24587            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']
  24588           </xpath>
  24589                                         
  24590           <ifNotNull >
  24591                                               
  24592            <action 
  24593             action="se tAttribute
  24594             attribute= "value" 
  24595             indexed="t rue"
  24596            >
  24597             #fimGroom
  24598            </action>
  24599                                          
  24600           </ifNotNul l>
  24601                                         
  24602           <ifNull>
  24603                                               
  24604            <action 
  24605             action="se tAttribute
  24606             attribute= "value" 
  24607             indexed="t rue"
  24608            >
  24609             #fimGroom
  24610            </action>
  24611                                          
  24612           </ifNull>
  24613                                     
  24614          </mapping>
  24615                                    
  24616          <mapping>
  24617                                         
  24618           <property>
  24619            values.gro om
  24620           </property >
  24621                                         
  24622           <xpath>
  24623            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']
  24624           </xpath>
  24625                                         
  24626           <ifNotNull >
  24627                                               
  24628            <action 
  24629             action="se tAttribute
  24630             attribute= "value" 
  24631             indexed="t rue"
  24632            >
  24633             #fimGroomN ame
  24634            </action>
  24635                                          
  24636           </ifNotNul l>
  24637                                         
  24638           <ifNull>
  24639                                               
  24640            <action 
  24641             action="se tAttribute
  24642             attribute= "value" 
  24643             indexed="t rue"
  24644            >
  24645             #fimGroomN ame
  24646            </action>
  24647                                          
  24648           </ifNull>
  24649                                     
  24650          </mapping>
  24651                                    
  24652          <mapping>
  24653                                         
  24654           <property>
  24655            values.gro om
  24656           </property >
  24657                                         
  24658           <xpath>
  24659            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']
  24660           </xpath>
  24661                                         
  24662           <ifNotNull >
  24663                                               
  24664            <action 
  24665             action="se tAttribute
  24666             attribute= "value" 
  24667             indexed="t rue"
  24668            >
  24669             #fimGroomD etail
  24670            </action>
  24671                                          
  24672           </ifNotNul l>
  24673                                         
  24674           <ifNull>
  24675                                               
  24676            <action 
  24677             action="se tAttribute
  24678             attribute= "value" 
  24679             indexed="t rue"
  24680            >
  24681             #fimGroomD etail
  24682            </action>
  24683                                          
  24684           </ifNull>
  24685                                     
  24686          </mapping>
  24687                                    
  24688          <mapping>
  24689                                         
  24690           <property>
  24691            assessment DateRaw
  24692           </property >
  24693                                         
  24694           <xpath>
  24695            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']
  24696           </xpath>
  24697                                         
  24698           <ifNotNull >
  24699                                               
  24700            <action 
  24701             action="se tAttribute
  24702             attribute= "value"
  24703            />
  24704                                          
  24705           </ifNotNul l>
  24706                                         
  24707           <ifNull>
  24708                                               
  24709            <action 
  24710             action="se tAttribute
  24711             attribute= "value"
  24712            />
  24713                                          
  24714           </ifNull>
  24715                                     
  24716          </mapping>
  24717                                    
  24718          <mapping>
  24719                                         
  24720           <property>
  24721            values.bat h
  24722           </property >
  24723                                         
  24724           <xpath>
  24725            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']
  24726           </xpath>
  24727                                         
  24728           <ifNotNull >
  24729                                               
  24730            <action 
  24731             action="se tAttribute
  24732             attribute= "value" 
  24733             indexed="t rue"
  24734            >
  24735             #fimBath
  24736            </action>
  24737                                          
  24738           </ifNotNul l>
  24739                                         
  24740           <ifNull>
  24741                                               
  24742            <action 
  24743             action="se tAttribute
  24744             attribute= "value" 
  24745             indexed="t rue"
  24746            >
  24747             #fimBath
  24748            </action>
  24749                                          
  24750           </ifNull>
  24751                                     
  24752          </mapping>
  24753                                    
  24754          <mapping>
  24755                                         
  24756           <property>
  24757            values.bat h
  24758           </property >
  24759                                         
  24760           <xpath>
  24761            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']
  24762           </xpath>
  24763                                         
  24764           <ifNotNull >
  24765                                               
  24766            <action 
  24767             action="se tAttribute
  24768             attribute= "value" 
  24769             indexed="t rue"
  24770            >
  24771             #fimBathNa me
  24772            </action>
  24773                                          
  24774           </ifNotNul l>
  24775                                         
  24776           <ifNull>
  24777                                               
  24778            <action 
  24779             action="se tAttribute
  24780             attribute= "value" 
  24781             indexed="t rue"
  24782            >
  24783             #fimBathNa me
  24784            </action>
  24785                                          
  24786           </ifNull>
  24787                                     
  24788          </mapping>
  24789                                    
  24790          <mapping>
  24791                                         
  24792           <property>
  24793            values.bat h
  24794           </property >
  24795                                         
  24796           <xpath>
  24797            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']
  24798           </xpath>
  24799                                         
  24800           <ifNotNull >
  24801                                               
  24802            <action 
  24803             action="se tAttribute
  24804             attribute= "value" 
  24805             indexed="t rue"
  24806            >
  24807             #fimBathDe tail
  24808            </action>
  24809                                          
  24810           </ifNotNul l>
  24811                                         
  24812           <ifNull>
  24813                                               
  24814            <action 
  24815             action="se tAttribute
  24816             attribute= "value" 
  24817             indexed="t rue"
  24818            >
  24819             #fimBathDe tail
  24820            </action>
  24821                                          
  24822           </ifNull>
  24823                                     
  24824          </mapping>
  24825                                    
  24826          <mapping>
  24827                                         
  24828           <property>
  24829            assessment DateRaw
  24830           </property >
  24831                                         
  24832           <xpath>
  24833            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']
  24834           </xpath>
  24835                                         
  24836           <ifNotNull >
  24837                                               
  24838            <action 
  24839             action="se tAttribute
  24840             attribute= "value"
  24841            />
  24842                                          
  24843           </ifNotNul l>
  24844                                         
  24845           <ifNull>
  24846                                               
  24847            <action 
  24848             action="se tAttribute
  24849             attribute= "value"
  24850            />
  24851                                          
  24852           </ifNull>
  24853                                     
  24854          </mapping>
  24855                                    
  24856          <mapping>
  24857                                         
  24858           <property>
  24859            values.dre ssUp
  24860           </property >
  24861                                         
  24862           <xpath>
  24863            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 ']
  24864           </xpath>
  24865                                         
  24866           <ifNotNull >
  24867                                               
  24868            <action 
  24869             action="se tAttribute
  24870             attribute= "value" 
  24871             indexed="t rue"
  24872            >
  24873             #fimDressU p
  24874            </action>
  24875                                          
  24876           </ifNotNul l>
  24877                                         
  24878           <ifNull>
  24879                                               
  24880            <action 
  24881             action="se tAttribute
  24882             attribute= "value" 
  24883             indexed="t rue"
  24884            >
  24885             #fimDressU p
  24886            </action>
  24887                                          
  24888           </ifNull>
  24889                                     
  24890          </mapping>
  24891                                    
  24892          <mapping>
  24893                                         
  24894           <property>
  24895            values.dre ssUp
  24896           </property >
  24897                                         
  24898           <xpath>
  24899            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']
  24900           </xpath>
  24901                                         
  24902           <ifNotNull >
  24903                                               
  24904            <action 
  24905             action="se tAttribute
  24906             attribute= "value" 
  24907             indexed="t rue"
  24908            >
  24909             #fimDressU pName
  24910            </action>
  24911                                          
  24912           </ifNotNul l>
  24913                                         
  24914           <ifNull>
  24915                                               
  24916            <action 
  24917             action="se tAttribute
  24918             attribute= "value" 
  24919             indexed="t rue"
  24920            >
  24921             #fimDressU pName
  24922            </action>
  24923                                          
  24924           </ifNull>
  24925                                     
  24926          </mapping>
  24927                                    
  24928          <mapping>
  24929                                         
  24930           <property>
  24931            values.dre ssUp
  24932           </property >
  24933                                         
  24934           <xpath>
  24935            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']
  24936           </xpath>
  24937                                         
  24938           <ifNotNull >
  24939                                               
  24940            <action 
  24941             action="se tAttribute
  24942             attribute= "value" 
  24943             indexed="t rue"
  24944            >
  24945             #fimDressU pDetail
  24946            </action>
  24947                                          
  24948           </ifNotNul l>
  24949                                         
  24950           <ifNull>
  24951                                               
  24952            <action 
  24953             action="se tAttribute
  24954             attribute= "value" 
  24955             indexed="t rue"
  24956            >
  24957             #fimDressU pDetail
  24958            </action>
  24959                                          
  24960           </ifNull>
  24961                                     
  24962          </mapping>
  24963                                    
  24964          <mapping>
  24965                                         
  24966           <property>
  24967            assessment DateRaw
  24968           </property >
  24969                                         
  24970           <xpath>
  24971            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']
  24972           </xpath>
  24973                                         
  24974           <ifNotNull >
  24975                                               
  24976            <action 
  24977             action="se tAttribute
  24978             attribute= "value"
  24979            />
  24980                                          
  24981           </ifNotNul l>
  24982                                         
  24983           <ifNull>
  24984                                               
  24985            <action 
  24986             action="se tAttribute
  24987             attribute= "value"
  24988            />
  24989                                          
  24990           </ifNull>
  24991                                     
  24992          </mapping>
  24993                                    
  24994          <mapping>
  24995                                         
  24996           <property>
  24997            values.dre ssLo
  24998           </property >
  24999                                         
  25000           <xpath>
  25001            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 ']
  25002           </xpath>
  25003                                         
  25004           <ifNotNull >
  25005                                               
  25006            <action 
  25007             action="se tAttribute
  25008             attribute= "value" 
  25009             indexed="t rue"
  25010            >
  25011             #fimDressL o
  25012            </action>
  25013                                          
  25014           </ifNotNul l>
  25015                                         
  25016           <ifNull>
  25017                                               
  25018            <action 
  25019             action="se tAttribute
  25020             attribute= "value" 
  25021             indexed="t rue"
  25022            >
  25023             #fimDressL o
  25024            </action>
  25025                                          
  25026           </ifNull>
  25027                                     
  25028          </mapping>
  25029                                    
  25030          <mapping>
  25031                                         
  25032           <property>
  25033            values.dre ssLo
  25034           </property >
  25035                                         
  25036           <xpath>
  25037            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']
  25038           </xpath>
  25039                                         
  25040           <ifNotNull >
  25041                                               
  25042            <action 
  25043             action="se tAttribute
  25044             attribute= "value" 
  25045             indexed="t rue"
  25046            >
  25047             #fimDressL oName
  25048            </action>
  25049                                          
  25050           </ifNotNul l>
  25051                                         
  25052           <ifNull>
  25053                                               
  25054            <action 
  25055             action="se tAttribute
  25056             attribute= "value" 
  25057             indexed="t rue"
  25058            >
  25059             #fimDressL oName
  25060            </action>
  25061                                          
  25062           </ifNull>
  25063                                     
  25064          </mapping>
  25065                                    
  25066          <mapping>
  25067                                         
  25068           <property>
  25069            values.dre ssLo
  25070           </property >
  25071                                         
  25072           <xpath>
  25073            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']
  25074           </xpath>
  25075                                         
  25076           <ifNotNull >
  25077                                               
  25078            <action 
  25079             action="se tAttribute
  25080             attribute= "value" 
  25081             indexed="t rue"
  25082            >
  25083             #fimDressL oDetail
  25084            </action>
  25085                                          
  25086           </ifNotNul l>
  25087                                         
  25088           <ifNull>
  25089                                               
  25090            <action 
  25091             action="se tAttribute
  25092             attribute= "value" 
  25093             indexed="t rue"
  25094            >
  25095             #fimDressL oDetail
  25096            </action>
  25097                                          
  25098           </ifNull>
  25099                                     
  25100          </mapping>
  25101                                    
  25102          <mapping>
  25103                                         
  25104           <property>
  25105            assessment DateRaw
  25106           </property >
  25107                                         
  25108           <xpath>
  25109            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']
  25110           </xpath>
  25111                                         
  25112           <ifNotNull >
  25113                                               
  25114            <action 
  25115             action="se tAttribute
  25116             attribute= "value"
  25117            />
  25118                                          
  25119           </ifNotNul l>
  25120                                         
  25121           <ifNull>
  25122                                               
  25123            <action 
  25124             action="se tAttribute
  25125             attribute= "value"
  25126            />
  25127                                          
  25128           </ifNull>
  25129                                     
  25130          </mapping>
  25131                                    
  25132          <mapping>
  25133                                         
  25134           <property>
  25135            values.toi let
  25136           </property >
  25137                                         
  25138           <xpath>
  25139            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' ]
  25140           </xpath>
  25141                                         
  25142           <ifNotNull >
  25143                                               
  25144            <action 
  25145             action="se tAttribute
  25146             attribute= "value" 
  25147             indexed="t rue"
  25148            >
  25149             #fimToilet
  25150            </action>
  25151                                          
  25152           </ifNotNul l>
  25153                                         
  25154           <ifNull>
  25155                                               
  25156            <action 
  25157             action="se tAttribute
  25158             attribute= "value" 
  25159             indexed="t rue"
  25160            >
  25161             #fimToilet
  25162            </action>
  25163                                          
  25164           </ifNull>
  25165                                     
  25166          </mapping>
  25167                                    
  25168          <mapping>
  25169                                         
  25170           <property>
  25171            values.toi let
  25172           </property >
  25173                                         
  25174           <xpath>
  25175            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']
  25176           </xpath>
  25177                                         
  25178           <ifNotNull >
  25179                                               
  25180            <action 
  25181             action="se tAttribute
  25182             attribute= "value" 
  25183             indexed="t rue"
  25184            >
  25185             #fimToilet Name
  25186            </action>
  25187                                          
  25188           </ifNotNul l>
  25189                                         
  25190           <ifNull>
  25191                                               
  25192            <action 
  25193             action="se tAttribute
  25194             attribute= "value" 
  25195             indexed="t rue"
  25196            >
  25197             #fimToilet Name
  25198            </action>
  25199                                          
  25200           </ifNull>
  25201                                     
  25202          </mapping>
  25203                                    
  25204          <mapping>
  25205                                         
  25206           <property>
  25207            values.toi let
  25208           </property >
  25209                                         
  25210           <xpath>
  25211            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']
  25212           </xpath>
  25213                                         
  25214           <ifNotNull >
  25215                                               
  25216            <action 
  25217             action="se tAttribute
  25218             attribute= "value" 
  25219             indexed="t rue"
  25220            >
  25221             #fimToilet Detail
  25222            </action>
  25223                                          
  25224           </ifNotNul l>
  25225                                         
  25226           <ifNull>
  25227                                               
  25228            <action 
  25229             action="se tAttribute
  25230             attribute= "value" 
  25231             indexed="t rue"
  25232            >
  25233             #fimToilet Detail
  25234            </action>
  25235                                          
  25236           </ifNull>
  25237                                     
  25238          </mapping>
  25239                                    
  25240          <mapping>
  25241                                         
  25242           <property>
  25243            assessment DateRaw
  25244           </property >
  25245                                         
  25246           <xpath>
  25247            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']
  25248           </xpath>
  25249                                         
  25250           <ifNotNull >
  25251                                               
  25252            <action 
  25253             action="se tAttribute
  25254             attribute= "value"
  25255            />
  25256                                          
  25257           </ifNotNul l>
  25258                                         
  25259           <ifNull>
  25260                                               
  25261            <action 
  25262             action="se tAttribute
  25263             attribute= "value"
  25264            />
  25265                                          
  25266           </ifNull>
  25267                                     
  25268          </mapping>
  25269                                    
  25270          <mapping>
  25271                                         
  25272           <property>
  25273            values.bla dder
  25274           </property >
  25275                                         
  25276           <xpath>
  25277            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 ']
  25278           </xpath>
  25279                                         
  25280           <ifNotNull >
  25281                                               
  25282            <action 
  25283             action="se tAttribute
  25284             attribute= "value" 
  25285             indexed="t rue"
  25286            >
  25287             #fimBladde r
  25288            </action>
  25289                                          
  25290           </ifNotNul l>
  25291                                         
  25292           <ifNull>
  25293                                               
  25294            <action 
  25295             action="se tAttribute
  25296             attribute= "value" 
  25297             indexed="t rue"
  25298            >
  25299             #fimBladde r
  25300            </action>
  25301                                          
  25302           </ifNull>
  25303                                     
  25304          </mapping>
  25305                                    
  25306          <mapping>
  25307                                         
  25308           <property>
  25309            values.bla dder
  25310           </property >
  25311                                         
  25312           <xpath>
  25313            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']
  25314           </xpath>
  25315                                         
  25316           <ifNotNull >
  25317                                               
  25318            <action 
  25319             action="se tAttribute
  25320             attribute= "value" 
  25321             indexed="t rue"
  25322            >
  25323             #fimBladde rName
  25324            </action>
  25325                                          
  25326           </ifNotNul l>
  25327                                         
  25328           <ifNull>
  25329                                               
  25330            <action 
  25331             action="se tAttribute
  25332             attribute= "value" 
  25333             indexed="t rue"
  25334            >
  25335             #fimBladde rName
  25336            </action>
  25337                                          
  25338           </ifNull>
  25339                                     
  25340          </mapping>
  25341                                    
  25342          <mapping>
  25343                                         
  25344           <property>
  25345            values.bla dder
  25346           </property >
  25347                                         
  25348           <xpath>
  25349            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']
  25350           </xpath>
  25351                                         
  25352           <ifNotNull >
  25353                                               
  25354            <action 
  25355             action="se tAttribute
  25356             attribute= "value" 
  25357             indexed="t rue"
  25358            >
  25359             #fimBladde rDetail
  25360            </action>
  25361                                          
  25362           </ifNotNul l>
  25363                                         
  25364           <ifNull>
  25365                                               
  25366            <action 
  25367             action="se tAttribute
  25368             attribute= "value" 
  25369             indexed="t rue"
  25370            >
  25371             #fimBladde rDetail
  25372            </action>
  25373                                          
  25374           </ifNull>
  25375                                     
  25376          </mapping>
  25377                                    
  25378          <mapping>
  25379                                         
  25380           <property>
  25381            assessment DateRaw
  25382           </property >
  25383                                         
  25384           <xpath>
  25385            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']
  25386           </xpath>
  25387                                         
  25388           <ifNotNull >
  25389                                               
  25390            <action 
  25391             action="se tAttribute
  25392             attribute= "value"
  25393            />
  25394                                          
  25395           </ifNotNul l>
  25396                                         
  25397           <ifNull>
  25398                                               
  25399            <action 
  25400             action="se tAttribute
  25401             attribute= "value"
  25402            />
  25403                                          
  25404           </ifNull>
  25405                                     
  25406          </mapping>
  25407                                    
  25408          <mapping>
  25409                                         
  25410           <property>
  25411            values.bow el
  25412           </property >
  25413                                         
  25414           <xpath>
  25415            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']
  25416           </xpath>
  25417                                         
  25418           <ifNotNull >
  25419                                               
  25420            <action 
  25421             action="se tAttribute
  25422             attribute= "value" 
  25423             indexed="t rue"
  25424            >
  25425             #fimBowel
  25426            </action>
  25427                                          
  25428           </ifNotNul l>
  25429                                         
  25430           <ifNull>
  25431                                               
  25432            <action 
  25433             action="se tAttribute
  25434             attribute= "value" 
  25435             indexed="t rue"
  25436            >
  25437             #fimBowel
  25438            </action>
  25439                                          
  25440           </ifNull>
  25441                                     
  25442          </mapping>
  25443                                    
  25444          <mapping>
  25445                                         
  25446           <property>
  25447            values.bow el
  25448           </property >
  25449                                         
  25450           <xpath>
  25451            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']
  25452           </xpath>
  25453                                         
  25454           <ifNotNull >
  25455                                               
  25456            <action 
  25457             action="se tAttribute
  25458             attribute= "value" 
  25459             indexed="t rue"
  25460            >
  25461             #fimBowelN ame
  25462            </action>
  25463                                          
  25464           </ifNotNul l>
  25465                                         
  25466           <ifNull>
  25467                                               
  25468            <action 
  25469             action="se tAttribute
  25470             attribute= "value" 
  25471             indexed="t rue"
  25472            >
  25473             #fimBowelN ame
  25474            </action>
  25475                                          
  25476           </ifNull>
  25477                                     
  25478          </mapping>
  25479                                    
  25480          <mapping>
  25481                                         
  25482           <property>
  25483            values.bow el
  25484           </property >
  25485                                         
  25486           <xpath>
  25487            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']
  25488           </xpath>
  25489                                         
  25490           <ifNotNull >
  25491                                               
  25492            <action 
  25493             action="se tAttribute
  25494             attribute= "value" 
  25495             indexed="t rue"
  25496            >
  25497             #fimBowelD etail
  25498            </action>
  25499                                          
  25500           </ifNotNul l>
  25501                                         
  25502           <ifNull>
  25503                                               
  25504            <action 
  25505             action="se tAttribute
  25506             attribute= "value" 
  25507             indexed="t rue"
  25508            >
  25509             #fimBowelD etail
  25510            </action>
  25511                                          
  25512           </ifNull>
  25513                                     
  25514          </mapping>
  25515                                    
  25516          <mapping>
  25517                                         
  25518           <property>
  25519            assessment DateRaw
  25520           </property >
  25521                                         
  25522           <xpath>
  25523            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' ]
  25524           </xpath>
  25525                                         
  25526           <ifNotNull >
  25527                                               
  25528            <action 
  25529             action="se tAttribute
  25530             attribute= "value"
  25531            />
  25532                                          
  25533           </ifNotNul l>
  25534                                         
  25535           <ifNull>
  25536                                               
  25537            <action 
  25538             action="se tAttribute
  25539             attribute= "value"
  25540            />
  25541                                          
  25542           </ifNull>
  25543                                     
  25544          </mapping>
  25545                                    
  25546          <mapping>
  25547                                         
  25548           <property>
  25549            values.tra nsChair
  25550           </property >
  25551                                         
  25552           <xpath>
  25553            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']
  25554           </xpath>
  25555                                         
  25556           <ifNotNull >
  25557                                               
  25558            <action 
  25559             action="se tAttribute
  25560             attribute= "value" 
  25561             indexed="t rue"
  25562            >
  25563             #fimTransC hair
  25564            </action>
  25565                                          
  25566           </ifNotNul l>
  25567                                         
  25568           <ifNull>
  25569                                               
  25570            <action 
  25571             action="se tAttribute
  25572             attribute= "value" 
  25573             indexed="t rue"
  25574            >
  25575             #fimTransC hair
  25576            </action>
  25577                                          
  25578           </ifNull>
  25579                                     
  25580          </mapping>
  25581                                    
  25582          <mapping>
  25583                                         
  25584           <property>
  25585            values.tra nsChair
  25586           </property >
  25587                                         
  25588           <xpath>
  25589            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' ]
  25590           </xpath>
  25591                                         
  25592           <ifNotNull >
  25593                                               
  25594            <action 
  25595             action="se tAttribute
  25596             attribute= "value" 
  25597             indexed="t rue"
  25598            >
  25599             #fimTransC hairName
  25600            </action>
  25601                                          
  25602           </ifNotNul l>
  25603                                         
  25604           <ifNull>
  25605                                               
  25606            <action 
  25607             action="se tAttribute
  25608             attribute= "value" 
  25609             indexed="t rue"
  25610            >
  25611             #fimTransC hairName
  25612            </action>
  25613                                          
  25614           </ifNull>
  25615                                     
  25616          </mapping>
  25617                                    
  25618          <mapping>
  25619                                         
  25620           <property>
  25621            values.tra nsChair
  25622           </property >
  25623                                         
  25624           <xpath>
  25625            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']
  25626           </xpath>
  25627                                         
  25628           <ifNotNull >
  25629                                               
  25630            <action 
  25631             action="se tAttribute
  25632             attribute= "value" 
  25633             indexed="t rue"
  25634            >
  25635             #fimTransC hairDetail
  25636            </action>
  25637                                          
  25638           </ifNotNul l>
  25639                                         
  25640           <ifNull>
  25641                                               
  25642            <action 
  25643             action="se tAttribute
  25644             attribute= "value" 
  25645             indexed="t rue"
  25646            >
  25647             #fimTransC hairDetail
  25648            </action>
  25649                                          
  25650           </ifNull>
  25651                                     
  25652          </mapping>
  25653                                    
  25654          <mapping>
  25655                                         
  25656           <property>
  25657            assessment DateRaw
  25658           </property >
  25659                                         
  25660           <xpath>
  25661            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 ']
  25662           </xpath>
  25663                                         
  25664           <ifNotNull >
  25665                                               
  25666            <action 
  25667             action="se tAttribute
  25668             attribute= "value"
  25669            />
  25670                                          
  25671           </ifNotNul l>
  25672                                         
  25673           <ifNull>
  25674                                               
  25675            <action 
  25676             action="se tAttribute
  25677             attribute= "value"
  25678            />
  25679                                          
  25680           </ifNull>
  25681                                     
  25682          </mapping>
  25683                                    
  25684          <mapping>
  25685                                         
  25686           <property>
  25687            values.tra nsToilet
  25688           </property >
  25689                                         
  25690           <xpath>
  25691            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']
  25692           </xpath>
  25693                                         
  25694           <ifNotNull >
  25695                                               
  25696            <action 
  25697             action="se tAttribute
  25698             attribute= "value" 
  25699             indexed="t rue"
  25700            >
  25701             #fimTransT oilet
  25702            </action>
  25703                                          
  25704           </ifNotNul l>
  25705                                         
  25706           <ifNull>
  25707                                               
  25708            <action 
  25709             action="se tAttribute
  25710             attribute= "value" 
  25711             indexed="t rue"
  25712            >
  25713             #fimTransT oilet
  25714            </action>
  25715                                          
  25716           </ifNull>
  25717                                     
  25718          </mapping>
  25719                                    
  25720          <mapping>
  25721                                         
  25722           <property>
  25723            values.tra nsToilet
  25724           </property >
  25725                                         
  25726           <xpath>
  25727            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 ']
  25728           </xpath>
  25729                                         
  25730           <ifNotNull >
  25731                                               
  25732            <action 
  25733             action="se tAttribute
  25734             attribute= "value" 
  25735             indexed="t rue"
  25736            >
  25737             #fimTransT oiletName
  25738            </action>
  25739                                          
  25740           </ifNotNul l>
  25741                                         
  25742           <ifNull>
  25743                                               
  25744            <action 
  25745             action="se tAttribute
  25746             attribute= "value" 
  25747             indexed="t rue"
  25748            >
  25749             #fimTransT oiletName
  25750            </action>
  25751                                          
  25752           </ifNull>
  25753                                     
  25754          </mapping>
  25755                                    
  25756          <mapping>
  25757                                         
  25758           <property>
  25759            values.tra nsToilet
  25760           </property >
  25761                                         
  25762           <xpath>
  25763            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']
  25764           </xpath>
  25765                                         
  25766           <ifNotNull >
  25767                                               
  25768            <action 
  25769             action="se tAttribute
  25770             attribute= "value" 
  25771             indexed="t rue"
  25772            >
  25773             #fimTransT oiletDetai l
  25774            </action>
  25775                                          
  25776           </ifNotNul l>
  25777                                         
  25778           <ifNull>
  25779                                               
  25780            <action 
  25781             action="se tAttribute
  25782             attribute= "value" 
  25783             indexed="t rue"
  25784            >
  25785             #fimTransT oiletDetai l
  25786            </action>
  25787                                          
  25788           </ifNull>
  25789                                     
  25790          </mapping>
  25791                                    
  25792          <mapping>
  25793                                         
  25794           <property>
  25795            assessment DateRaw
  25796           </property >
  25797                                         
  25798           <xpath>
  25799            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']
  25800           </xpath>
  25801                                         
  25802           <ifNotNull >
  25803                                               
  25804            <action 
  25805             action="se tAttribute
  25806             attribute= "value"
  25807            />
  25808                                          
  25809           </ifNotNul l>
  25810                                         
  25811           <ifNull>
  25812                                               
  25813            <action 
  25814             action="se tAttribute
  25815             attribute= "value"
  25816            />
  25817                                          
  25818           </ifNull>
  25819                                     
  25820          </mapping>
  25821                                    
  25822          <mapping>
  25823                                         
  25824           <property>
  25825            values.tra nsTub
  25826           </property >
  25827                                         
  25828           <xpath>
  25829            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']
  25830           </xpath>
  25831                                         
  25832           <ifNotNull >
  25833                                               
  25834            <action 
  25835             action="se tAttribute
  25836             attribute= "value" 
  25837             indexed="t rue"
  25838            >
  25839             #fimTransT ub
  25840            </action>
  25841                                          
  25842           </ifNotNul l>
  25843                                         
  25844           <ifNull>
  25845                                               
  25846            <action 
  25847             action="se tAttribute
  25848             attribute= "value" 
  25849             indexed="t rue"
  25850            >
  25851             #fimTransT ub
  25852            </action>
  25853                                          
  25854           </ifNull>
  25855                                     
  25856          </mapping>
  25857                                    
  25858          <mapping>
  25859                                         
  25860           <property>
  25861            values.tra nsTub
  25862           </property >
  25863                                         
  25864           <xpath>
  25865            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']
  25866           </xpath>
  25867                                         
  25868           <ifNotNull >
  25869                                               
  25870            <action 
  25871             action="se tAttribute
  25872             attribute= "value" 
  25873             indexed="t rue"
  25874            >
  25875             #fimTransT ubName
  25876            </action>
  25877                                          
  25878           </ifNotNul l>
  25879                                         
  25880           <ifNull>
  25881                                               
  25882            <action 
  25883             action="se tAttribute
  25884             attribute= "value" 
  25885             indexed="t rue"
  25886            >
  25887             #fimTransT ubName
  25888            </action>
  25889                                          
  25890           </ifNull>
  25891                                     
  25892          </mapping>
  25893                                    
  25894          <mapping>
  25895                                         
  25896           <property>
  25897            values.tra nsTub
  25898           </property >
  25899                                         
  25900           <xpath>
  25901            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']
  25902           </xpath>
  25903                                         
  25904           <ifNotNull >
  25905                                               
  25906            <action 
  25907             action="se tAttribute
  25908             attribute= "value" 
  25909             indexed="t rue"
  25910            >
  25911             #fimTransT ubDetail
  25912            </action>
  25913                                          
  25914           </ifNotNul l>
  25915                                         
  25916           <ifNull>
  25917                                               
  25918            <action 
  25919             action="se tAttribute
  25920             attribute= "value" 
  25921             indexed="t rue"
  25922            >
  25923             #fimTransT ubDetail
  25924            </action>
  25925                                          
  25926           </ifNull>
  25927                                     
  25928          </mapping>
  25929                                    
  25930          <mapping>
  25931                                         
  25932           <property>
  25933            assessment DateRaw
  25934           </property >
  25935                                         
  25936           <xpath>
  25937            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']
  25938           </xpath>
  25939                                         
  25940           <ifNotNull >
  25941                                               
  25942            <action 
  25943             action="se tAttribute
  25944             attribute= "value"
  25945            />
  25946                                          
  25947           </ifNotNul l>
  25948                                         
  25949           <ifNull>
  25950                                               
  25951            <action 
  25952             action="se tAttribute
  25953             attribute= "value"
  25954            />
  25955                                          
  25956           </ifNull>
  25957                                     
  25958          </mapping>
  25959                                    
  25960          <mapping>
  25961                                         
  25962           <property>
  25963            values.loc omWalk
  25964           </property >
  25965                                         
  25966           <xpath>
  25967            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']
  25968           </xpath>
  25969                                         
  25970           <ifNotNull >
  25971                                               
  25972            <action 
  25973             action="se tAttribute
  25974             attribute= "value" 
  25975             indexed="t rue"
  25976            >
  25977             #fimLocomW alk
  25978            </action>
  25979                                          
  25980           </ifNotNul l>
  25981                                         
  25982           <ifNull>
  25983                                               
  25984            <action 
  25985             action="se tAttribute
  25986             attribute= "value" 
  25987             indexed="t rue"
  25988            >
  25989             #fimLocomW alk
  25990            </action>
  25991                                          
  25992           </ifNull>
  25993                                     
  25994          </mapping>
  25995                                    
  25996          <mapping>
  25997                                         
  25998           <property>
  25999            values.loc omWalk
  26000           </property >
  26001                                         
  26002           <xpath>
  26003            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']
  26004           </xpath>
  26005                                         
  26006           <ifNotNull >
  26007                                               
  26008            <action 
  26009             action="se tAttribute
  26010             attribute= "value" 
  26011             indexed="t rue"
  26012            >
  26013             #fimLocomW alkName
  26014            </action>
  26015                                          
  26016           </ifNotNul l>
  26017                                         
  26018           <ifNull>
  26019                                               
  26020            <action 
  26021             action="se tAttribute
  26022             attribute= "value" 
  26023             indexed="t rue"
  26024            >
  26025             #fimLocomW alkName
  26026            </action>
  26027                                          
  26028           </ifNull>
  26029                                     
  26030          </mapping>
  26031                                    
  26032          <mapping>
  26033                                         
  26034           <property>
  26035            values.wal kComment
  26036           </property >
  26037                                         
  26038           <xpath>
  26039            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']
  26040           </xpath>
  26041                                         
  26042           <ifNotNull >
  26043                                               
  26044            <action 
  26045             action="se tAttribute
  26046             attribute= "value" 
  26047             indexed="t rue"
  26048            >
  26049             #fimLocomW alkDetail
  26050            </action>
  26051                                          
  26052           </ifNotNul l>
  26053                                         
  26054           <ifNull>
  26055                                               
  26056            <action 
  26057             action="se tAttribute
  26058             attribute= "value" 
  26059             indexed="t rue"
  26060            >
  26061             #fimLocomW alkDetail
  26062            </action>
  26063                                          
  26064           </ifNull>
  26065                                     
  26066          </mapping>
  26067                                    
  26068          <mapping>
  26069                                         
  26070           <property>
  26071            assessment DateRaw
  26072           </property >
  26073                                         
  26074           <xpath>
  26075            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' ]
  26076           </xpath>
  26077                                         
  26078           <ifNotNull >
  26079                                               
  26080            <action 
  26081             action="se tAttribute
  26082             attribute= "value"
  26083            />
  26084                                          
  26085           </ifNotNul l>
  26086                                         
  26087           <ifNull>
  26088                                               
  26089            <action 
  26090             action="se tAttribute
  26091             attribute= "value"
  26092            />
  26093                                          
  26094           </ifNull>
  26095                                     
  26096          </mapping>
  26097                                    
  26098          <mapping>
  26099                                         
  26100           <property>
  26101            values.loc omStair
  26102           </property >
  26103                                         
  26104           <xpath>
  26105            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']
  26106           </xpath>
  26107                                         
  26108           <ifNotNull >
  26109                                               
  26110            <action 
  26111             action="se tAttribute
  26112             attribute= "value" 
  26113             indexed="t rue"
  26114            >
  26115             #fimLocomS tair
  26116            </action>
  26117                                          
  26118           </ifNotNul l>
  26119                                         
  26120           <ifNull>
  26121                                               
  26122            <action 
  26123             action="se tAttribute
  26124             attribute= "value" 
  26125             indexed="t rue"
  26126            >
  26127             #fimLocomS tair
  26128            </action>
  26129                                          
  26130           </ifNull>
  26131                                     
  26132          </mapping>
  26133                                    
  26134          <mapping>
  26135                                         
  26136           <property>
  26137            values.loc omStair
  26138           </property >
  26139                                         
  26140           <xpath>
  26141            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' ]
  26142           </xpath>
  26143                                         
  26144           <ifNotNull >
  26145                                               
  26146            <action 
  26147             action="se tAttribute
  26148             attribute= "value" 
  26149             indexed="t rue"
  26150            >
  26151             #fimLocomS tairName
  26152            </action>
  26153                                          
  26154           </ifNotNul l>
  26155                                         
  26156           <ifNull>
  26157                                               
  26158            <action 
  26159             action="se tAttribute
  26160             attribute= "value" 
  26161             indexed="t rue"
  26162            >
  26163             #fimLocomS tairName
  26164            </action>
  26165                                          
  26166           </ifNull>
  26167                                     
  26168          </mapping>
  26169                                    
  26170          <mapping>
  26171                                         
  26172           <property>
  26173            values.loc omStair
  26174           </property >
  26175                                         
  26176           <xpath>
  26177            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']
  26178           </xpath>
  26179                                         
  26180           <ifNotNull >
  26181                                               
  26182            <action 
  26183             action="se tAttribute
  26184             attribute= "value" 
  26185             indexed="t rue"
  26186            >
  26187             #fimLocomS tairDetail
  26188            </action>
  26189                                          
  26190           </ifNotNul l>
  26191                                         
  26192           <ifNull>
  26193                                               
  26194            <action 
  26195             action="se tAttribute
  26196             attribute= "value" 
  26197             indexed="t rue"
  26198            >
  26199             #fimLocomS tairDetail
  26200            </action>
  26201                                          
  26202           </ifNull>
  26203                                     
  26204          </mapping>
  26205                                    
  26206          <mapping>
  26207                                         
  26208           <property>
  26209            assessment DateRaw
  26210           </property >
  26211                                         
  26212           <xpath>
  26213            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' ]
  26214           </xpath>
  26215                                         
  26216           <ifNotNull >
  26217                                               
  26218            <action 
  26219             action="se tAttribute
  26220             attribute= "value"
  26221            />
  26222                                          
  26223           </ifNotNul l>
  26224                                         
  26225           <ifNull>
  26226                                               
  26227            <action 
  26228             action="se tAttribute
  26229             attribute= "value"
  26230            />
  26231                                          
  26232           </ifNull>
  26233                                     
  26234          </mapping>
  26235                                    
  26236          <mapping>
  26237                                         
  26238           <property>
  26239            values.com prehend
  26240           </property >
  26241                                         
  26242           <xpath>
  26243            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']
  26244           </xpath>
  26245                                         
  26246           <ifNotNull >
  26247                                               
  26248            <action 
  26249             action="se tAttribute
  26250             attribute= "value" 
  26251             indexed="t rue"
  26252            >
  26253             #fimCompre hend
  26254            </action>
  26255                                          
  26256           </ifNotNul l>
  26257                                         
  26258           <ifNull>
  26259                                               
  26260            <action 
  26261             action="se tAttribute
  26262             attribute= "value" 
  26263             indexed="t rue"
  26264            >
  26265             #fimCompre hend
  26266            </action>
  26267                                          
  26268           </ifNull>
  26269                                     
  26270          </mapping>
  26271                                    
  26272          <mapping>
  26273                                         
  26274           <property>
  26275            values.com prehend
  26276           </property >
  26277                                         
  26278           <xpath>
  26279            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' ]
  26280           </xpath>
  26281                                         
  26282           <ifNotNull >
  26283                                               
  26284            <action 
  26285             action="se tAttribute
  26286             attribute= "value" 
  26287             indexed="t rue"
  26288            >
  26289             #fimCompre hendName
  26290            </action>
  26291                                          
  26292           </ifNotNul l>
  26293                                         
  26294           <ifNull>
  26295                                               
  26296            <action 
  26297             action="se tAttribute
  26298             attribute= "value" 
  26299             indexed="t rue"
  26300            >
  26301             #fimCompre hendName
  26302            </action>
  26303                                          
  26304           </ifNull>
  26305                                     
  26306          </mapping>
  26307                                    
  26308          <mapping>
  26309                                         
  26310           <property>
  26311            values.com prehendCom ment
  26312           </property >
  26313                                         
  26314           <xpath>
  26315            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']
  26316           </xpath>
  26317                                         
  26318           <ifNotNull >
  26319                                               
  26320            <action 
  26321             action="se tAttribute
  26322             attribute= "value" 
  26323             indexed="t rue"
  26324            >
  26325             #fimCompre hendDetail
  26326            </action>
  26327                                          
  26328           </ifNotNul l>
  26329                                         
  26330           <ifNull>
  26331                                               
  26332            <action 
  26333             action="se tAttribute
  26334             attribute= "value" 
  26335             indexed="t rue"
  26336            >
  26337             #fimCompre hendDetail
  26338            </action>
  26339                                          
  26340           </ifNull>
  26341                                     
  26342          </mapping>
  26343                                    
  26344          <mapping>
  26345                                         
  26346           <property>
  26347            assessment DateRaw
  26348           </property >
  26349                                         
  26350           <xpath>
  26351            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']
  26352           </xpath>
  26353                                         
  26354           <ifNotNull >
  26355                                               
  26356            <action 
  26357             action="se tAttribute
  26358             attribute= "value"
  26359            />
  26360                                          
  26361           </ifNotNul l>
  26362                                         
  26363           <ifNull>
  26364                                               
  26365            <action 
  26366             action="se tAttribute
  26367             attribute= "value"
  26368            />
  26369                                          
  26370           </ifNull>
  26371                                     
  26372          </mapping>
  26373                                    
  26374          <mapping>
  26375                                         
  26376           <property>
  26377            values.exp ress
  26378           </property >
  26379                                         
  26380           <xpath>
  26381            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 ']
  26382           </xpath>
  26383                                         
  26384           <ifNotNull >
  26385                                               
  26386            <action 
  26387             action="se tAttribute
  26388             attribute= "value" 
  26389             indexed="t rue"
  26390            >
  26391             #fimExpres s
  26392            </action>
  26393                                          
  26394           </ifNotNul l>
  26395                                         
  26396           <ifNull>
  26397                                               
  26398            <action 
  26399             action="se tAttribute
  26400             attribute= "value" 
  26401             indexed="t rue"
  26402            >
  26403             #fimExpres s
  26404            </action>
  26405                                          
  26406           </ifNull>
  26407                                     
  26408          </mapping>
  26409                                    
  26410          <mapping>
  26411                                         
  26412           <property>
  26413            values.exp ress
  26414           </property >
  26415                                         
  26416           <xpath>
  26417            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']
  26418           </xpath>
  26419                                         
  26420           <ifNotNull >
  26421                                               
  26422            <action 
  26423             action="se tAttribute
  26424             attribute= "value" 
  26425             indexed="t rue"
  26426            >
  26427             #fimExpres sName
  26428            </action>
  26429                                          
  26430           </ifNotNul l>
  26431                                         
  26432           <ifNull>
  26433                                               
  26434            <action 
  26435             action="se tAttribute
  26436             attribute= "value" 
  26437             indexed="t rue"
  26438            >
  26439             #fimExpres sName
  26440            </action>
  26441                                          
  26442           </ifNull>
  26443                                     
  26444          </mapping>
  26445                                    
  26446          <mapping>
  26447                                         
  26448           <property>
  26449            values.exp ressCommen t
  26450           </property >
  26451                                         
  26452           <xpath>
  26453            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']
  26454           </xpath>
  26455                                         
  26456           <ifNotNull >
  26457                                               
  26458            <action 
  26459             action="se tAttribute
  26460             attribute= "value" 
  26461             indexed="t rue"
  26462            >
  26463             #fimExpres sDetail
  26464            </action>
  26465                                          
  26466           </ifNotNul l>
  26467                                         
  26468           <ifNull>
  26469                                               
  26470            <action 
  26471             action="se tAttribute
  26472             attribute= "value" 
  26473             indexed="t rue"
  26474            >
  26475             #fimExpres sDetail
  26476            </action>
  26477                                          
  26478           </ifNull>
  26479                                     
  26480          </mapping>
  26481                                    
  26482          <mapping>
  26483                                         
  26484           <property>
  26485            assessment DateRaw
  26486           </property >
  26487                                         
  26488           <xpath>
  26489            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']
  26490           </xpath>
  26491                                         
  26492           <ifNotNull >
  26493                                               
  26494            <action 
  26495             action="se tAttribute
  26496             attribute= "value"
  26497            />
  26498                                          
  26499           </ifNotNul l>
  26500                                         
  26501           <ifNull>
  26502                                               
  26503            <action 
  26504             action="se tAttribute
  26505             attribute= "value"
  26506            />
  26507                                          
  26508           </ifNull>
  26509                                     
  26510          </mapping>
  26511                                    
  26512          <mapping>
  26513                                         
  26514           <property>
  26515            values.int eract
  26516           </property >
  26517                                         
  26518           <xpath>
  26519            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']
  26520           </xpath>
  26521                                         
  26522           <ifNotNull >
  26523                                               
  26524            <action 
  26525             action="se tAttribute
  26526             attribute= "value" 
  26527             indexed="t rue"
  26528            >
  26529             #fimIntera ct
  26530            </action>
  26531                                          
  26532           </ifNotNul l>
  26533                                         
  26534           <ifNull>
  26535                                               
  26536            <action 
  26537             action="se tAttribute
  26538             attribute= "value" 
  26539             indexed="t rue"
  26540            >
  26541             #fimIntera ct
  26542            </action>
  26543                                          
  26544           </ifNull>
  26545                                     
  26546          </mapping>
  26547                                    
  26548          <mapping>
  26549                                         
  26550           <property>
  26551            values.int eract
  26552           </property >
  26553                                         
  26554           <xpath>
  26555            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']
  26556           </xpath>
  26557                                         
  26558           <ifNotNull >
  26559                                               
  26560            <action 
  26561             action="se tAttribute
  26562             attribute= "value" 
  26563             indexed="t rue"
  26564            >
  26565             #fimIntera ctName
  26566            </action>
  26567                                          
  26568           </ifNotNul l>
  26569                                         
  26570           <ifNull>
  26571                                               
  26572            <action 
  26573             action="se tAttribute
  26574             attribute= "value" 
  26575             indexed="t rue"
  26576            >
  26577             #fimIntera ctName
  26578            </action>
  26579                                          
  26580           </ifNull>
  26581                                     
  26582          </mapping>
  26583                                    
  26584          <mapping>
  26585                                         
  26586           <property>
  26587            values.int eract
  26588           </property >
  26589                                         
  26590           <xpath>
  26591            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']
  26592           </xpath>
  26593                                         
  26594           <ifNotNull >
  26595                                               
  26596            <action 
  26597             action="se tAttribute
  26598             attribute= "value" 
  26599             indexed="t rue"
  26600            >
  26601             #fimIntera ctDetail
  26602            </action>
  26603                                          
  26604           </ifNotNul l>
  26605                                         
  26606           <ifNull>
  26607                                               
  26608            <action 
  26609             action="se tAttribute
  26610             attribute= "value" 
  26611             indexed="t rue"
  26612            >
  26613             #fimIntera ctDetail
  26614            </action>
  26615                                          
  26616           </ifNull>
  26617                                     
  26618          </mapping>
  26619                                    
  26620          <mapping>
  26621                                         
  26622           <property>
  26623            assessment DateRaw
  26624           </property >
  26625                                         
  26626           <xpath>
  26627            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']
  26628           </xpath>
  26629                                         
  26630           <ifNotNull >
  26631                                               
  26632            <action 
  26633             action="se tAttribute
  26634             attribute= "value"
  26635            />
  26636                                          
  26637           </ifNotNul l>
  26638                                         
  26639           <ifNull>
  26640                                               
  26641            <action 
  26642             action="se tAttribute
  26643             attribute= "value"
  26644            />
  26645                                          
  26646           </ifNull>
  26647                                     
  26648          </mapping>
  26649                                    
  26650          <mapping>
  26651                                         
  26652           <property>
  26653            values.pro blem
  26654           </property >
  26655                                         
  26656           <xpath>
  26657            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 ']
  26658           </xpath>
  26659                                         
  26660           <ifNotNull >
  26661                                               
  26662            <action 
  26663             action="se tAttribute
  26664             attribute= "value" 
  26665             indexed="t rue"
  26666            >
  26667             #fimProble m
  26668            </action>
  26669                                          
  26670           </ifNotNul l>
  26671                                         
  26672           <ifNull>
  26673                                               
  26674            <action 
  26675             action="se tAttribute
  26676             attribute= "value" 
  26677             indexed="t rue"
  26678            >
  26679             #fimProble m
  26680            </action>
  26681                                          
  26682           </ifNull>
  26683                                     
  26684          </mapping>
  26685                                    
  26686          <mapping>
  26687                                         
  26688           <property>
  26689            values.pro blem
  26690           </property >
  26691                                         
  26692           <xpath>
  26693            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']
  26694           </xpath>
  26695                                         
  26696           <ifNotNull >
  26697                                               
  26698            <action 
  26699             action="se tAttribute
  26700             attribute= "value" 
  26701             indexed="t rue"
  26702            >
  26703             #fimProble mName
  26704            </action>
  26705                                          
  26706           </ifNotNul l>
  26707                                         
  26708           <ifNull>
  26709                                               
  26710            <action 
  26711             action="se tAttribute
  26712             attribute= "value" 
  26713             indexed="t rue"
  26714            >
  26715             #fimProble mName
  26716            </action>
  26717                                          
  26718           </ifNull>
  26719                                     
  26720          </mapping>
  26721                                    
  26722          <mapping>
  26723                                         
  26724           <property>
  26725            values.pro blem
  26726           </property >
  26727                                         
  26728           <xpath>
  26729            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']
  26730           </xpath>
  26731                                         
  26732           <ifNotNull >
  26733                                               
  26734            <action 
  26735             action="se tAttribute
  26736             attribute= "value" 
  26737             indexed="t rue"
  26738            >
  26739             #fimProble mDetail
  26740            </action>
  26741                                          
  26742           </ifNotNul l>
  26743                                         
  26744           <ifNull>
  26745                                               
  26746            <action 
  26747             action="se tAttribute
  26748             attribute= "value" 
  26749             indexed="t rue"
  26750            >
  26751             #fimProble mDetail
  26752            </action>
  26753                                          
  26754           </ifNull>
  26755                                     
  26756          </mapping>
  26757                                    
  26758          <mapping>
  26759                                         
  26760           <property>
  26761            assessment DateRaw
  26762           </property >
  26763                                         
  26764           <xpath>
  26765            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']
  26766           </xpath>
  26767                                         
  26768           <ifNotNull >
  26769                                               
  26770            <action 
  26771             action="se tAttribute
  26772             attribute= "value"
  26773            />
  26774                                          
  26775           </ifNotNul l>
  26776                                         
  26777           <ifNull>
  26778                                               
  26779            <action 
  26780             action="se tAttribute
  26781             attribute= "value"
  26782            />
  26783                                          
  26784           </ifNull>
  26785                                     
  26786          </mapping>
  26787                                    
  26788          <mapping>
  26789                                         
  26790           <property>
  26791            values.mem ory
  26792           </property >
  26793                                         
  26794           <xpath>
  26795            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' ]
  26796           </xpath>
  26797                                         
  26798           <ifNotNull >
  26799                                               
  26800            <action 
  26801             action="se tAttribute
  26802             attribute= "value" 
  26803             indexed="t rue"
  26804            >
  26805             #fimMemory
  26806            </action>
  26807                                          
  26808           </ifNotNul l>
  26809                                         
  26810           <ifNull>
  26811                                               
  26812            <action 
  26813             action="se tAttribute
  26814             attribute= "value" 
  26815             indexed="t rue"
  26816            >
  26817             #fimMemory
  26818            </action>
  26819                                          
  26820           </ifNull>
  26821                                     
  26822          </mapping>
  26823                                    
  26824          <mapping>
  26825                                         
  26826           <property>
  26827            values.mem ory
  26828           </property >
  26829                                         
  26830           <xpath>
  26831            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']
  26832           </xpath>
  26833                                         
  26834           <ifNotNull >
  26835                                               
  26836            <action 
  26837             action="se tAttribute
  26838             attribute= "value" 
  26839             indexed="t rue"
  26840            >
  26841             #fimMemory Name
  26842            </action>
  26843                                          
  26844           </ifNotNul l>
  26845                                         
  26846           <ifNull>
  26847                                               
  26848            <action 
  26849             action="se tAttribute
  26850             attribute= "value" 
  26851             indexed="t rue"
  26852            >
  26853             #fimMemory Name
  26854            </action>
  26855                                          
  26856           </ifNull>
  26857                                     
  26858          </mapping>
  26859                                    
  26860          <mapping>
  26861                                         
  26862           <property>
  26863            values.mem ory
  26864           </property >
  26865                                         
  26866           <xpath>
  26867            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']
  26868           </xpath>
  26869                                         
  26870           <ifNotNull >
  26871                                               
  26872            <action 
  26873             action="se tAttribute
  26874             attribute= "value" 
  26875             indexed="t rue"
  26876            >
  26877             #fimMemory Detail
  26878            </action>
  26879                                          
  26880           </ifNotNul l>
  26881                                         
  26882           <ifNull>
  26883                                               
  26884            <action 
  26885             action="se tAttribute
  26886             attribute= "value" 
  26887             indexed="t rue"
  26888            >
  26889             #fimMemory Detail
  26890            </action>
  26891                                          
  26892           </ifNull>
  26893                                     
  26894          </mapping>
  26895                                    
  26896          <mapping>
  26897                                         
  26898           <property>
  26899            assessment DateRaw
  26900           </property >
  26901                                         
  26902           <xpath>
  26903            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']
  26904           </xpath>
  26905                                         
  26906           <ifNotNull >
  26907                                               
  26908            <action 
  26909             action="se tAttribute
  26910             attribute= "value"
  26911            />
  26912                                          
  26913           </ifNotNul l>
  26914                                         
  26915           <ifNull>
  26916                                               
  26917            <action 
  26918             action="se tAttribute
  26919             attribute= "value"
  26920            />
  26921                                          
  26922           </ifNull>
  26923                                     
  26924          </mapping>
  26925                                    
  26926          <mapping>
  26927                                         
  26928           <property>
  26929            values.tot al
  26930           </property >
  26931                                         
  26932           <xpath>
  26933            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']
  26934           </xpath>
  26935                                         
  26936           <ifNotNull >
  26937                                               
  26938            <action 
  26939             action="se tAttribute
  26940             attribute= "value" 
  26941             indexed="t rue"
  26942            >
  26943             #fimTotal
  26944            </action>
  26945                                          
  26946           </ifNotNul l>
  26947                                         
  26948           <ifNull>
  26949                                               
  26950            <action 
  26951             action="se tAttribute
  26952             attribute= "value" 
  26953             indexed="t rue"
  26954            >
  26955             #fimTotal
  26956            </action>
  26957                                          
  26958           </ifNull>
  26959                                     
  26960          </mapping>
  26961                                    
  26962          <mapping>
  26963                                         
  26964           <property>
  26965            values.tot al
  26966           </property >
  26967                                         
  26968           <xpath>
  26969            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']
  26970           </xpath>
  26971                                         
  26972           <ifNotNull >
  26973                                               
  26974            <action 
  26975             action="se tAttribute
  26976             attribute= "value" 
  26977             indexed="t rue"
  26978            >
  26979             #fimTotalN ame
  26980            </action>
  26981                                          
  26982           </ifNotNul l>
  26983                                         
  26984           <ifNull>
  26985                                               
  26986            <action 
  26987             action="se tAttribute
  26988             attribute= "value" 
  26989             indexed="t rue"
  26990            >
  26991             #fimTotalN ame
  26992            </action>
  26993                                          
  26994           </ifNull>
  26995                                     
  26996          </mapping>
  26997                                    
  26998          <mapping>
  26999                                         
  27000           <property>
  27001            values.tot al
  27002           </property >
  27003                                         
  27004           <xpath>
  27005            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']
  27006           </xpath>
  27007                                         
  27008           <ifNotNull >
  27009                                               
  27010            <action 
  27011             action="se tAttribute
  27012             attribute= "value" 
  27013             indexed="t rue"
  27014            >
  27015             #fimTotalD etail
  27016            </action>
  27017                                          
  27018           </ifNotNul l>
  27019                                         
  27020           <ifNull>
  27021                                               
  27022            <action 
  27023             action="se tAttribute
  27024             attribute= "value" 
  27025             indexed="t rue"
  27026            >
  27027             #fimTotalD etail
  27028            </action>
  27029                                          
  27030           </ifNull>
  27031                                     
  27032          </mapping>
  27033                               
  27034         </mappings >
  27035                          
  27036        </mapping>                  
  27037                     
  27038       </mappings >             
  27039               
  27040      </mapping>
  27041              
  27042     </mappings >
  27043   </template >