321. EPMO Open Source Coordination Office Redaction File Detail Report

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

321.1 Files compared

# Location File Last Modified
1 C:\working_scrub\Unredacted\eHX Code Base\eHX_Bld2_Source Code_CIF_2017-02-14\NHIN_adapter\weblogic\domains\adapter_sqa1\config\VANHIN_Adapter c32-mapping.xml Fri Feb 10 15:41:44 2017 UTC
2 eHX-CIF.zip\eHX-CIF\eHX Code Base\eHX_Bld2_Source Code_CIF_2017-02-14\NHIN_adapter\weblogic\domains\adapter_sqa1\config\VANHIN_Adapter c32-mapping.xml Mon Apr 3 14:44:31 2017 UTC

321.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 20 15618
Changed 19 38
Inserted 0 0
Removed 0 0

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

321.4 Active regular expressions

No regular expressions were active.

321.5 Comparison detail

  1   <?xml 
  2     version="1 .0" 
  3     encoding=" UTF-8"
  4   ?>
  5   <!--
  6       Docume nt   : c32 -mapping.x ml
  7       Create d on : Dec ember 30,  2008, 10:4 9 AM
  8       Author      : Dav id Vazquez
  9       Descri ption:
  10           Th is file pr ovides a d efinition  for mappin g a Java r epresentat ion (HashM ap
  11           or  POJO) of  data into  a XML temp late of a  HITSP C32  file.
  12   -->
  13   <template 
  14     xmlns="urn :gov:va:me d:nhin:ada pter:xmlut ils:config
  15     xmlns:xsi= "http://ww w.w3.org/2 001/XMLSch ema-instan ce" 
  16     xsi:schema Location=" urn:gov:va :med:nhin: adapter:xm lutils:con fig templa te.xsd"
  17   >
  18             
  19     <name>
  20      C32
  21     </name>
  22             
  23     <xpathLibU RI>
  24      http://sax on.sf.net/ jaxp/xpath /om
  25     </xpathLib URI>
  26             
  27     <sourceFil e>
  28                       
  29      <path>
  30       c32-templa te.xml
  31      </path>
  32                       
  33      <namespace Mappings>
  34                                 
  35       <namespace Mapping>
  36                                           
  37        <prefix>
  38         cda
  39        </prefix>
  40                                           
  41        <uri>
  42         urn:hl7-or g:v3
  43        </uri>
  44                                  
  45       </namespac eMapping>
  46                                 
  47       <namespace Mapping>
  48                                           
  49        <prefix>
  50         voc
  51        </prefix>
  52                                           
  53        <uri>
  54         urn:hl7-or g:v3/voc
  55        </uri>
  56                                  
  57       </namespac eMapping>
  58                                 
  59       <namespace Mapping>
  60                                           
  61        <prefix>
  62         xsi
  63        </prefix>
  64                                           
  65        <uri>
  66         http://www .w3.org/20 01/XMLSche ma-instanc e
  67        </uri>
  68                                  
  69       </namespac eMapping>
  70                        
  71      </namespac eMappings>
  72              
  73     </sourceFi le>
  74             
  75     <mappings>
  76                       
  77      <!-- PERSO N INFORMAT ION CONTEN T MODULE,  REQUIRED - ->
  78                       
  79      <!-- 1.01  DOCUMENT T IMESTAMP,  REQUIRED - ->
  80                       
  81      <mapping>
  82                                 
  83       <property>
  84        creationTi me
  85       </property >
  86                                 
  87       <xpath>
  88        /cda:Clini calDocumen t/cda:effe ctiveTime
  89       </xpath>
  90                                 
  91       <ifNotNull >
  92                                           
  93        <action 
  94         action="se tAttribute
  95         attribute= "value"
  96        />
  97                                  
  98       </ifNotNul l>
  99                                 
  100       <ifNull>
  101                                           
  102        <action 
  103         action="se tAttribute
  104         attribute= "nullFlavo r"
  105        >
  106         UNK
  107        </action>
  108                                  
  109       </ifNull>
  110                        
  111      </mapping>
  112                       
  113      <!-- ?.??  DOCUMENT U NIQUE ID,  REQUIRED - ->
  114                       
  115      <mapping>
  116                                 
  117       <property>
  118        documentUn iqueId
  119       </property >
  120                                 
  121       <xpath>
  122        /cda:Clini calDocumen t/cda:id
  123       </xpath>
  124                                 
  125       <ifNotNull >
  126                                           
  127        <action 
  128         action="se tAttribute
  129         attribute= "extension "
  130        />
  131                                  
  132       </ifNotNul l>
  133                                 
  134       <ifNull>
  135                                           
  136        <action 
  137         action="se tAttribute
  138         attribute= "nullFlavo r"
  139        >
  140         UNK
  141        </action>
  142                                  
  143       </ifNull>
  144                        
  145      </mapping>
  146                       
  147      <!-- 1.02  Person ID,  REQUIRED  -->
  148                       
  149      <mapping>
  150                                 
  151       <property>
  152        patientId
  153       </property >
  154                                 
  155       <xpath>
  156        /cda:Clini calDocumen t/cda:reco rdTarget/c da:patient Role/cda:i d
  157       </xpath>
  158                                 
  159       <ifNotNull >
  160                                           
  161        <action 
  162         action="se tAttribute
  163         attribute= "extension "
  164        />
  165                                  
  166       </ifNotNul l>
  167                                 
  168       <ifNull>
  169                                           
  170        <action 
  171         action="se tAttribute
  172         attribute= "nullFlavo r"
  173        >
  174         UNK
  175        </action>
  176                                  
  177       </ifNull>
  178                        
  179      </mapping>
  180                       
  181      <!-- 1.03  PERSON ADD RESS HOME  PERMENANT,  REQUIRED  -->
  182                       
  183      <mapping>
  184                                 
  185       <property>
  186        demographi csExt
  187       </property >
  188                                 
  189       <xpath>
  190        /cda:Clini calDocumen t/cda:reco rdTarget/c da:patient Role/cda:a ddr
  191       </xpath>
  192                                 
  193       <ifNotNull >
  194                                           
  195        <action 
  196         action="ev aluateMapp ings"
  197        />
  198                                  
  199       </ifNotNul l>
  200                                 
  201       <ifNull>
  202                                           
  203        <action 
  204         action="se tAttribute
  205         attribute= "nullFlavo r"
  206        >
  207         UNK
  208        </action>
  209                                           
  210        <action 
  211         action="re moveChildr en"
  212        />
  213                                  
  214       </ifNull>
  215                                 
  216       <mappings>
  217                                           
  218        <!--  Remo ved homeAd dressType,  always "H P" for hom e -->
  219                                           
  220        <mapping>
  221                                                    
  222         <property>
  223          homeAddres sStreet
  224         </property >
  225                                                    
  226         <xpath>
  227          cda:street AddressLin e
  228         </xpath>
  229                                                    
  230         <ifNotNull >
  231                                                              
  232          <action 
  233           action="se tValue"
  234          />
  235                                                     
  236         </ifNotNul l>
  237                                                    
  238         <ifNull>
  239                                                              
  240          <action 
  241           action="se tAttribute
  242           attribute= "nullFlavo r"
  243          >
  244           UNK
  245          </action>
  246                                                     
  247         </ifNull>
  248                                            
  249        </mapping>
  250                                           
  251        <mapping>
  252                                                    
  253         <property>
  254          homeAddres sCity
  255         </property >
  256                                                    
  257         <xpath>
  258          cda:city
  259         </xpath>
  260                                                    
  261         <ifNotNull >
  262                                                              
  263          <action 
  264           action="se tValue"
  265          />
  266                                                     
  267         </ifNotNul l>
  268                                                    
  269         <ifNull>
  270                                                              
  271          <action 
  272           action="se tAttribute
  273           attribute= "nullFlavo r"
  274          >
  275           UNK
  276          </action>
  277                                                     
  278         </ifNull>
  279                                            
  280        </mapping>
  281                                           
  282        <mapping>
  283                                                    
  284         <property>
  285          homeAddres sState
  286         </property >
  287                                                    
  288         <xpath>
  289          cda:state
  290         </xpath>
  291                                                    
  292         <ifNotNull >
  293                                                              
  294          <action 
  295           action="se tValue"
  296          />
  297                                                     
  298         </ifNotNul l>
  299                                                    
  300         <ifNull>
  301                                                              
  302          <action 
  303           action="se tAttribute
  304           attribute= "nullFlavo r"
  305          >
  306           UNK
  307          </action>
  308                                                     
  309         </ifNull>
  310                                            
  311        </mapping>
  312                                           
  313        <!--  Remo ved homeAd dressCount ry -->
  314                                           
  315        <mapping>
  316                                                    
  317         <property>
  318          homeAddres sPostal
  319         </property >
  320                                                    
  321         <xpath>
  322          cda:postal Code
  323         </xpath>
  324                                                    
  325         <ifNotNull >
  326                                                              
  327          <action 
  328           action="se tValue"
  329          />
  330                                                     
  331         </ifNotNul l>
  332                                                    
  333         <ifNull>
  334                                                              
  335          <action 
  336           action="se tAttribute
  337           attribute= "nullFlavo r"
  338          >
  339           UNK
  340          </action>
  341                                                     
  342         </ifNull>
  343                                            
  344        </mapping>
  345                                  
  346       </mappings >
  347                        
  348      </mapping>
  349                       
  350      <!-- 1.04  PERSON PHO NE/EMAIL/U RL, REQUIR ED -->
  351                       
  352      <mapping>
  353                                 
  354       <property>
  355        demographi csExt
  356       </property >
  357                                 
  358       <xpath>
  359        /cda:Clini calDocumen t/cda:reco rdTarget/c da:patient Role/cda:t elecom
  360       </xpath>
  361                                 
  362       <ifNotNull >
  363                                           
  364        <action 
  365         action="ev aluateMapp ings"
  366        />
  367                                  
  368       </ifNotNul l>
  369                                 
  370       <ifNull>
  371                                           
  372        <action 
  373         action="se tAttribute
  374         attribute= "nullFlavo r"
  375        >
  376         UNK
  377        </action>
  378                                  
  379       </ifNull>
  380                                 
  381       <mappings>
  382                                           
  383        <!-- Remov ed phoneTy pe, always  "HP" for  home phone  -->
  384                                           
  385        <mapping>
  386                                                    
  387         <property>
  388          phoneHome
  389         </property >
  390                                                    
  391         <xpath>
  392          .
  393         </xpath>
  394                                                    
  395         <ifNotNull >
  396                                                              
  397          <action 
  398           action="se tAttribute
  399           attribute= "use"
  400          >
  401           HP
  402          </action>
  403                                                              
  404          <action 
  405           action="se tAttribute
  406           attribute= "value"
  407          />
  408                                                     
  409         </ifNotNul l>
  410                                                    
  411         <ifNull>
  412                                                              
  413          <action 
  414           action="se tAttribute
  415           attribute= "nullFlavo r"
  416          >
  417           UNK
  418          </action>
  419                                                     
  420         </ifNull>
  421                                            
  422        </mapping>
  423                                  
  424       </mappings >
  425                        
  426      </mapping>
  427                       
  428      <!-- 1.05  PERSON NAM E - LEGAL,  REQUIRED  -->
  429                       
  430      <mapping>
  431                                 
  432       <property>
  433        demographi cs
  434       </property >
  435                                 
  436       <xpath>
  437        /cda:Clini calDocumen t/cda:reco rdTarget/c da:patient Role/cda:p atient/cda :name[@use ="L"]
  438       </xpath>
  439                                 
  440       <ifNotNull >
  441                                           
  442        <action 
  443         action="ev aluateMapp ings"
  444        />
  445                                  
  446       </ifNotNul l>
  447                                 
  448       <ifNull>
  449                                           
  450        <action 
  451         action="se tAttribute
  452         attribute= "nullFlavo r"
  453        >
  454         UNK
  455        </action>
  456                                           
  457        <action 
  458         action="re moveChildr en"
  459        />
  460                                  
  461       </ifNull>
  462                                 
  463       <mappings>
  464                                           
  465        <mapping>
  466                                                    
  467         <property 
  468          optional=" true"
  469         >
  470          namePrefix
  471         </property >
  472                                                    
  473         <xpath>
  474          cda:prefix
  475         </xpath>
  476                                                    
  477         <ifNotNull >
  478                                                              
  479          <action 
  480           action="se tValue"
  481          />
  482                                                     
  483         </ifNotNul l>
  484                                                    
  485         <ifNull>
  486                                                              
  487          <action 
  488           action="re move"
  489          />
  490                                                     
  491         </ifNull>
  492                                            
  493        </mapping>
  494                                           
  495        <mapping>
  496                                                    
  497         <property>
  498          nameGiven
  499         </property >
  500                                                    
  501         <xpath>
  502          cda:given
  503         </xpath>
  504                                                    
  505         <ifNotNull >
  506                                                              
  507          <action 
  508           action="se tValue"
  509          />
  510                                                     
  511         </ifNotNul l>
  512                                                    
  513         <ifNull>
  514                                                              
  515          <action 
  516           action="se tAttribute
  517           attribute= "nullFlavo r"
  518          >
  519           UNK
  520          </action>
  521                                                     
  522         </ifNull>
  523                                            
  524        </mapping>
  525                                           
  526        <mapping>
  527                                                    
  528         <property>
  529          nameFamily
  530         </property >
  531                                                    
  532         <xpath>
  533          cda:family
  534         </xpath>
  535                                                    
  536         <ifNotNull >
  537                                                              
  538          <action 
  539           action="se tValue"
  540          />
  541                                                     
  542         </ifNotNul l>
  543                                                    
  544         <ifNull>
  545                                                              
  546          <action 
  547           action="se tAttribute
  548           attribute= "nullFlavo r"
  549          >
  550           UNK
  551          </action>
  552                                                     
  553         </ifNull>
  554                                            
  555        </mapping>
  556                                           
  557        <mapping>
  558                                                    
  559         <property 
  560          optional=" true"
  561         >
  562          nameSuffix
  563         </property >
  564                                                    
  565         <xpath>
  566          cda:suffix
  567         </xpath>
  568                                                    
  569         <ifNotNull >
  570                                                              
  571          <action 
  572           action="se tValue"
  573          />
  574                                                     
  575         </ifNotNul l>
  576                                                    
  577         <ifNull>
  578                                                              
  579          <action 
  580           action="re move"
  581          />
  582                                                     
  583         </ifNull>
  584                                            
  585        </mapping>
  586                                  
  587       </mappings >
  588                        
  589      </mapping>
  590                       
  591      <!-- 1.05  PERSON NAM E - Alias  Name, Opti onal -->
  592                       
  593      <mapping>
  594                                 
  595       <property>
  596        demographi csExt
  597       </property >
  598                                 
  599       <xpath>
  600        /cda:Clini calDocumen t/cda:reco rdTarget/c da:patient Role/cda:p atient/cda :name[@use ="P"]
  601       </xpath>
  602                                 
  603       <ifNotNull >
  604                                           
  605        <action 
  606         action="ev aluateMapp ings"
  607        />
  608                                  
  609       </ifNotNul l>
  610                                 
  611       <ifNull>
  612                                           
  613        <action 
  614         action="se tAttribute
  615         attribute= "nullFlavo r"
  616        >
  617         UNK
  618        </action>
  619                                           
  620        <action 
  621         action="re moveChildr en"
  622        />
  623                                  
  624       </ifNull>
  625                                 
  626       <mappings>
  627                                           
  628        <mapping>
  629                                                    
  630         <property 
  631          optional=" true"
  632         >
  633          aliasPrefi x
  634         </property >
  635                                                    
  636         <xpath>
  637          cda:prefix
  638         </xpath>
  639                                                    
  640         <ifNotNull >
  641                                                              
  642          <action 
  643           action="se tValue"
  644          />
  645                                                     
  646         </ifNotNul l>
  647                                                    
  648         <ifNull>
  649                                                              
  650          <action 
  651           action="re move"
  652          />
  653                                                     
  654         </ifNull>
  655                                            
  656        </mapping>
  657                                           
  658        <mapping>
  659                                                    
  660         <property 
  661          optional=" true"
  662         >
  663          aliasGiven
  664         </property >
  665                                                    
  666         <xpath>
  667          cda:given
  668         </xpath>
  669                                                    
  670         <ifNotNull >
  671                                                              
  672          <action 
  673           action="se tValue"
  674          />
  675                                                     
  676         </ifNotNul l>
  677                                                    
  678         <ifNull>
  679                                                              
  680          <action 
  681           action="se tAttribute
  682           attribute= "nullFlavo r"
  683          >
  684           UNK
  685          </action>
  686                                                     
  687         </ifNull>
  688                                            
  689        </mapping>
  690                                           
  691        <mapping>
  692                                                    
  693         <property 
  694          optional=" true"
  695         >
  696          aliasFamil y
  697         </property >
  698                                                    
  699         <xpath>
  700          cda:family
  701         </xpath>
  702                                                    
  703         <ifNotNull >
  704                                                              
  705          <action 
  706           action="se tValue"
  707          />
  708                                                     
  709         </ifNotNul l>
  710                                                    
  711         <ifNull>
  712                                                              
  713          <action 
  714           action="se tAttribute
  715           attribute= "nullFlavo r"
  716          >
  717           UNK
  718          </action>
  719                                                     
  720         </ifNull>
  721                                            
  722        </mapping>
  723                                           
  724        <mapping>
  725                                                    
  726         <property 
  727          optional=" true"
  728         >
  729          aliasSuffi x
  730         </property >
  731                                                    
  732         <xpath>
  733          cda:suffix
  734         </xpath>
  735                                                    
  736         <ifNotNull >
  737                                                              
  738          <action 
  739           action="se tValue"
  740          />
  741                                                     
  742         </ifNotNul l>
  743                                                    
  744         <ifNull>
  745                                                              
  746          <action 
  747           action="re move"
  748          />
  749                                                     
  750         </ifNull>
  751                                            
  752        </mapping>
  753                                  
  754       </mappings >
  755                        
  756      </mapping>
  757                       
  758      <!-- 1.06  GENDER, RE QUIRED, or iginalText  -->
  759                       
  760      <mapping>
  761                                 
  762       <property>
  763        demographi cs
  764       </property >
  765                                 
  766       <xpath>
  767        /cda:Clini calDocumen t/cda:reco rdTarget/c da:patient Role/cda:p atient/cda :administr ativeGende rCode
  768       </xpath>
  769                                 
  770       <ifNotNull >
  771                                           
  772        <action 
  773         action="ev aluateMapp ings"
  774        />
  775                                  
  776       </ifNotNul l>
  777                                 
  778       <ifNull>
  779                                           
  780        <action 
  781         action="re move"
  782        />
  783                                  
  784       </ifNull>
  785                                 
  786       <mappings>
  787                                           
  788        <mapping>
  789                                                    
  790         <property 
  791          optional=" true"
  792         >
  793          genderCode
  794         </property >
  795                                                    
  796         <xpath>
  797          .
  798         </xpath>
  799                                                    
  800         <ifNotNull >
  801                                                              
  802          <action 
  803           action="se tAttribute
  804           attribute= "code"
  805          />
  806                                                              
  807          <action 
  808           action="se tAttribute
  809           attribute= "displayNa me" 
  810           property=" genderDisp lay"
  811          />
  812                                                     
  813         </ifNotNul l>
  814                                                    
  815         <ifNull>
  816                                                              
  817          <action 
  818           action="re moveAttrib utes"
  819          />
  820                                                              
  821          <action 
  822           action="se tAttribute
  823           attribute= "nullFlavo r"
  824          >
  825           UNK
  826          </action>
  827                                                     
  828         </ifNull>
  829                                            
  830        </mapping>
  831                                           
  832        <mapping>
  833                                                    
  834         <property>
  835          gender
  836         </property >
  837                                                    
  838         <xpath>
  839          cda:origin alText
  840         </xpath>
  841                                                    
  842         <ifNotNull >
  843                                                              
  844          <action 
  845           action="se tValue"
  846          />
  847                                                     
  848         </ifNotNul l>
  849                                            
  850        </mapping>
  851                                  
  852       </mappings >
  853                        
  854      </mapping>
  855                       
  856      <!-- 1.07  PERSON DAT E OF BIRTH , REQUIRED  -->
  857                       
  858      <mapping>
  859                                 
  860       <property>
  861        demographi cs.birthDa te
  862       </property >
  863                                 
  864       <xpath>
  865        /cda:Clini calDocumen t/cda:reco rdTarget/c da:patient Role/cda:p atient/cda :birthTime
  866       </xpath>
  867                                 
  868       <ifNotNull >
  869                                           
  870        <action 
  871         action="se tAttribute
  872         attribute= "value"
  873        />
  874                                  
  875       </ifNotNul l>
  876                                 
  877       <ifNull>
  878                                           
  879        <action 
  880         action="se tAttribute
  881         attribute= "nullFlavo r"
  882        >
  883         UNK
  884        </action>
  885                                  
  886       </ifNull>
  887                        
  888      </mapping>
  889                       
  890      <!--  1.08  MARITAL S TATUS, Opt ional-R2,  originalTe xt -->
  891                       
  892      <mapping>
  893                                 
  894       <property>
  895        demographi csExt
  896       </property >
  897                                 
  898       <xpath>
  899        /cda:Clini calDocumen t/cda:reco rdTarget/c da:patient Role/cda:p atient/cda :maritalSt atusCode
  900       </xpath>
  901                                 
  902       <ifNotNull >
  903                                           
  904        <action 
  905         action="ev aluateMapp ings"
  906        />
  907                                  
  908       </ifNotNul l>
  909                                 
  910       <ifNull>
  911                                           
  912        <action 
  913         action="re move"
  914        />
  915                                  
  916       </ifNull>
  917                                 
  918       <mappings>
  919                                           
  920        <mapping>
  921                                                    
  922         <property 
  923          optional=" true"
  924         >
  925          maritalSta tusCode
  926         </property >
  927                                                    
  928         <xpath>
  929          .
  930         </xpath>
  931                                                    
  932         <ifNotNull >
  933                                                              
  934          <action 
  935           action="se tAttribute
  936           attribute= "code"
  937          />
  938                                                              
  939          <action 
  940           action="se tAttribute
  941           attribute= "displayNa me" 
  942           property=" maritalSta tusDisplay "
  943          />
  944                                                     
  945         </ifNotNul l>
  946                                                    
  947         <ifNull>
  948                                                              
  949          <action 
  950           action="re moveAttrib utes"
  951          />
  952                                                              
  953          <action 
  954           action="se tAttribute
  955           attribute= "nullFlavo r"
  956          >
  957           UNK
  958          </action>
  959                                                     
  960         </ifNull>
  961                                            
  962        </mapping>
  963                                           
  964        <mapping>
  965                                                    
  966         <property>
  967          maritalSta tus
  968         </property >
  969                                                    
  970         <xpath>
  971          cda:origin alText
  972         </xpath>
  973                                                    
  974         <ifNotNull >
  975                                                              
  976          <action 
  977           action="se tValue"
  978          />
  979                                                     
  980         </ifNotNul l>
  981                                            
  982        </mapping>
  983                                  
  984       </mappings >
  985                        
  986      </mapping>
  987                       
  988      <!--  1.09  RELIGIOUS  AFFILIATI ON, Option al Removed  b/c data  not yet av ailable vi a VA VIstA  RPCs -->
  989                       
  990      <!--  1.10  RACE, Opt ional, ori ginalText  -->
  991                       
  992      <mapping>
  993                                 
  994       <property>
  995        demographi cs
  996       </property >
  997                                 
  998       <xpath>
  999        /cda:Clini calDocumen t/cda:reco rdTarget/c da:patient Role/cda:p atient/cda :raceCode/ cda:origin alText
  1000       </xpath>
  1001                                 
  1002       <ifNotNull >
  1003                                           
  1004        <action 
  1005         action="ev aluateMapp ings"
  1006        />
  1007                                  
  1008       </ifNotNul l>
  1009                                 
  1010       <ifNull>
  1011                                           
  1012        <action 
  1013         action="re move"
  1014        />
  1015                                  
  1016       </ifNull>
  1017                                 
  1018       <mappings>
  1019                                           
  1020        <mapping>
  1021                                                    
  1022         <property 
  1023          optional=" true"
  1024         >
  1025          raceDispla y
  1026         </property >
  1027                                                    
  1028         <xpath>
  1029          .
  1030         </xpath>
  1031                                                    
  1032         <ifNotNull >
  1033                                                              
  1034          <action 
  1035           action="se tValue"
  1036          />
  1037                                                     
  1038         </ifNotNul l>
  1039                                                    
  1040         <ifNull>
  1041                                                              
  1042          <action 
  1043           action="re move"
  1044          />
  1045                                                     
  1046         </ifNull>
  1047                                            
  1048        </mapping>
  1049                                  
  1050       </mappings >
  1051                        
  1052      </mapping>
  1053                       
  1054      <!-- 1.11  ETHNICITY,  Optional  -->
  1055                       
  1056      <mapping>
  1057                                 
  1058       <property>
  1059        demographi cs
  1060       </property >
  1061                                 
  1062       <xpath>
  1063        /cda:Clini calDocumen t/cda:reco rdTarget/c da:patient Role/cda:p atient/cda :ethnicGro upCode/cda :originalT ext
  1064       </xpath>
  1065                                 
  1066       <ifNotNull >
  1067                                           
  1068        <action 
  1069         action="ev aluateMapp ings"
  1070        />
  1071                                  
  1072       </ifNotNul l>
  1073                                 
  1074       <ifNull>
  1075                                           
  1076        <action 
  1077         action="re move"
  1078        />
  1079                                  
  1080       </ifNull>
  1081                                 
  1082       <mappings>
  1083                                           
  1084        <mapping>
  1085                                                    
  1086         <property 
  1087          optional=" true"
  1088         >
  1089          ethnicityD isplay
  1090         </property >
  1091                                                    
  1092         <xpath>
  1093          .
  1094         </xpath>
  1095                                                    
  1096         <ifNotNull >
  1097                                                              
  1098          <action 
  1099           action="se tValue"
  1100          />
  1101                                                     
  1102         </ifNotNul l>
  1103                                                    
  1104         <ifNull>
  1105                                                              
  1106          <action 
  1107           action="re move"
  1108          />
  1109                                                     
  1110         </ifNull>
  1111                                            
  1112        </mapping>
  1113                                  
  1114       </mappings >
  1115                        
  1116      </mapping>
  1117                       
  1118      <!-- 2.01  LANGUAGE,  Optional,  Removed ma pping b/c  always UNK  in templa te -->
  1119                       
  1120      <!-- INFOR MATION SOU RCE CONTEN T MODULE,  REQUIRED - ->
  1121                       
  1122      <!-- 10.01  AUTHOR TI ME, REQUIR ED -->
  1123                       
  1124      <mapping>
  1125                                 
  1126       <property>
  1127        creationTi me
  1128       </property >
  1129                                 
  1130       <xpath>
  1131        /cda:Clini calDocumen t/cda:auth or/cda:tim e
  1132       </xpath>
  1133                                 
  1134       <ifNotNull >
  1135                                           
  1136        <action 
  1137         action="se tAttribute
  1138         attribute= "value"
  1139        />
  1140                                  
  1141       </ifNotNul l>
  1142                        
  1143      </mapping>
  1144                       
  1145      <!-- CCD C DA R2 LEGA L AUTHENTI CATOR AS A N ORGANIZA TION, REQU IRED -->
  1146                       
  1147      <!-- CCD C DA R2 TIME  OF AUTHEN TICATION - ->
  1148                       
  1149      <mapping>
  1150                                 
  1151       <property>
  1152        creationTi me
  1153       </property >
  1154                                 
  1155       <xpath>
  1156        /cda:Clini calDocumen t/cda:lega lAuthentic ator/cda:t ime
  1157       </xpath>
  1158                                 
  1159       <ifNotNull >
  1160                                           
  1161        <action 
  1162         action="se tAttribute
  1163         attribute= "value"
  1164        />
  1165                                  
  1166       </ifNotNul l>
  1167                        
  1168      </mapping>
  1169                       
  1170      <!-- CCD C DA R2 LEGA L AUTHENTI CATOR OID  (VA)& NAME  Commented  Out/Hard- coded in C 32 templat e -->
  1171                       
  1172      <!-- CCD C DA R2 LEGA L AUTHENTI CATOR OID  (VA) -->
  1173                       
  1174      <mapping>
  1175                                 
  1176       <property 
  1177        optional=" true"
  1178       >
  1179        authentica torOID
  1180       </property >
  1181                                 
  1182       <xpath>
  1183        /cda:Clini calDocumen t/cda:lega lAuthentic ator/cda:a ssignedEnt ity/cda:re presentedO rganizatio n/cda:id
  1184       </xpath>
  1185                                 
  1186       <ifNotNull >
  1187                                           
  1188        <action 
  1189         action="se tAttribute
  1190         attribute= "root"
  1191        />
  1192                                  
  1193       </ifNotNul l>
  1194                        
  1195      </mapping>
  1196                       
  1197      <mapping>
  1198                                 
  1199       <!-- CCD C DA R2 LEGA L AUTHENTI CATOR NAME  -->
  1200                                 
  1201       <property 
  1202        optional=" true"
  1203       >
  1204        authentica torName
  1205       </property >
  1206                                 
  1207       <xpath>
  1208        /cda:Clini calDocumen t/cda:lega lAuthentic ator/cda:a ssignedEnt ity/cda:re presentedO rganizatio n/cda:name
  1209       </xpath>
  1210                                 
  1211       <ifNotNull >
  1212                                           
  1213        <action 
  1214         action="se tValue"
  1215        />
  1216                                  
  1217       </ifNotNul l>
  1218                        
  1219      </mapping>
  1220                       
  1221      <mapping>
  1222                                 
  1223       <property>
  1224        creationTi me
  1225       </property >
  1226                                 
  1227       <xpath>
  1228        /cda:Clini calDocumen t/cda:lega lAuthentic ator/cda:t ime
  1229       </xpath>
  1230                                 
  1231       <ifNotNull >
  1232                                           
  1233        <action 
  1234         action="se tAttribute
  1235         attribute= "value"
  1236        />
  1237                                  
  1238       </ifNotNul l>
  1239                        
  1240      </mapping>
  1241                       
  1242      <!-- CCD C DA R2 DOCU MENTATION  OF MODULE  - QUERY ME TA DATA, O ptional -- >
  1243                       
  1244      <mapping>
  1245                                 
  1246       <!-- QUERY  META DATA , SERVICE  START TIME , Optional  -->
  1247                                 
  1248       <property>
  1249        demographi cs.birthDa te
  1250       </property >
  1251                                 
  1252       <xpath>
  1253        /cda:Clini calDocumen t/cda:docu mentationO f/cda:serv iceEvent/c da:effecti veTime/cda :low
  1254       </xpath>
  1255                                 
  1256       <ifNotNull >
  1257                                           
  1258        <action 
  1259         action="se tAttribute
  1260         attribute= "value" 
  1261        />
  1262                                  
  1263       </ifNotNul l>
  1264                                 
  1265       <ifNull>
  1266                                           
  1267        <action 
  1268         action="se tAttribute
  1269         attribute= "value" 
  1270         property=" beginDate"
  1271        />
  1272                                  
  1273       </ifNull>
  1274                        
  1275      </mapping>
  1276                       
  1277      <mapping>
  1278                                 
  1279       <!-- QUERY  META DATA , SERVICE  STOP TIME,  Optional  -->
  1280                                 
  1281       <property>
  1282        endDate
  1283       </property >
  1284                                 
  1285       <xpath>
  1286        /cda:Clini calDocumen t/cda:docu mentationO f/cda:serv iceEvent/c da:effecti veTime/cda :high
  1287       </xpath>
  1288                                 
  1289       <ifNotNull >
  1290                                           
  1291        <action 
  1292         action="se tAttribute
  1293         attribute= "value"
  1294        />
  1295                                  
  1296       </ifNotNul l>
  1297                        
  1298      </mapping>
  1299                       
  1300      <!-- SUPPO RT CONTENT  MODULE (P articipant ) NOK GUAR , REQUIRED  -->
  1301                       
  1302      <mapping>
  1303                                 
  1304       <property 
  1305        optional=" true" 
  1306        collection ="true" 
  1307        merge="tru e"
  1308       >
  1309        participan ts
  1310       </property >
  1311                                 
  1312       <xpath>
  1313        /cda:Clini calDocumen t/cda:part icipant
  1314       </xpath>
  1315                                 
  1316       <ifNotNull >
  1317                                           
  1318        <action 
  1319         action="ev aluateMapp ings"
  1320        />
  1321                                  
  1322       </ifNotNul l>
  1323                                 
  1324       <ifNull>
  1325                                           
  1326        <action 
  1327         action="re move"
  1328        />
  1329                                  
  1330       </ifNull>
  1331                                 
  1332       <mappings>
  1333                                           
  1334        <mapping>
  1335                                                    
  1336         <property 
  1337          optional=" true"
  1338         >
  1339          supports
  1340         </property >
  1341                                                    
  1342         <xpath>
  1343          .
  1344         </xpath>
  1345                                                    
  1346         <ifNotNull >
  1347                                                              
  1348          <action 
  1349           action="ev aluateMapp ings"
  1350          />
  1351                                                     
  1352         </ifNotNul l>
  1353                                                    
  1354         <ifNull>
  1355                                                              
  1356          <action 
  1357           action="re move"
  1358          />
  1359                                                     
  1360         </ifNull>
  1361                                                    
  1362         <mappings>
  1363                                                              
  1364          <!--  3.01  DATE, REQ UIRED, Rem oved mappi ng b/c alw ays UNK in  template  -->
  1365                                                              
  1366          <!--  3.02  CONTACT T YPE, REQUI RED, Remov ed mapping  b/c alway s NOK in t emplate -- >
  1367                                                              
  1368          <mapping>
  1369                                                                        
  1370           <property>
  1371            contactTyp e
  1372           </property >
  1373                                                                        
  1374           <xpath>
  1375            cda:associ atedEntity
  1376           </xpath>
  1377                                                                        
  1378           <ifNotNull >
  1379                                                                                  
  1380            <action 
  1381             action="se tAttribute
  1382             attribute= "classCode "
  1383            />
  1384                                                                         
  1385           </ifNotNul l>
  1386                                                               
  1387          </mapping>
  1388                                                              
  1389          <!-- 3.03  CONTACT RE LATIONSHIP , Optional -R2 -->
  1390                                                              
  1391          <mapping>
  1392                                                                        
  1393           <property 
  1394            optional=" true"
  1395           >
  1396            relationsh ipType
  1397           </property >
  1398                                                                        
  1399           <xpath>
  1400            cda:associ atedEntity /cda:code/ cda:origin alText
  1401           </xpath>
  1402                                                                        
  1403           <ifNotNull >
  1404                                                                                  
  1405            <action 
  1406             action="se tValue"
  1407            />
  1408                                                                         
  1409           </ifNotNul l>
  1410                                                               
  1411          </mapping>
  1412                                                              
  1413          <!-- 3.04  CONTACT Ad dresss, Ho me Permane nt, Option al-R2 -->
  1414                                                              
  1415          <!--  3.04  CONTACT A ddresss, R emoved hom eAddressTy pe mapping  b/c alway s HP in te mplate -->
  1416                                                              
  1417          <mapping>
  1418                                                                        
  1419           <property 
  1420            optional=" true"
  1421           >
  1422            homeAddres s
  1423           </property >
  1424                                                                        
  1425           <xpath>
  1426            cda:associ atedEntity /cda:addr/ cda:street AddressLin e
  1427           </xpath>
  1428                                                                        
  1429           <ifNotNull >
  1430                                                                                  
  1431            <action 
  1432             action="se tValue"
  1433            />
  1434                                                                         
  1435           </ifNotNul l>
  1436                                                               
  1437          </mapping>
  1438                                                              
  1439          <mapping>
  1440                                                                        
  1441           <property 
  1442            optional=" true"
  1443           >
  1444            homeCity
  1445           </property >
  1446                                                                        
  1447           <xpath>
  1448            cda:associ atedEntity /cda:addr/ cda:city
  1449           </xpath>
  1450                                                                        
  1451           <ifNotNull >
  1452                                                                                  
  1453            <action 
  1454             action="se tValue"
  1455            />
  1456                                                                         
  1457           </ifNotNul l>
  1458                                                               
  1459          </mapping>
  1460                                                              
  1461          <mapping>
  1462                                                                        
  1463           <property 
  1464            optional=" true"
  1465           >
  1466            homeState
  1467           </property >
  1468                                                                        
  1469           <xpath>
  1470            cda:associ atedEntity /cda:addr/ cda:state
  1471           </xpath>
  1472                                                                        
  1473           <ifNotNull >
  1474                                                                                  
  1475            <action 
  1476             action="se tValue"
  1477            />
  1478                                                                         
  1479           </ifNotNul l>
  1480                                                               
  1481          </mapping>
  1482                                                              
  1483          <!--  Remo ved homeCo untry mapp ing b/c re moved from  template  -->
  1484                                                              
  1485          <mapping>
  1486                                                                        
  1487           <property 
  1488            optional=" true"
  1489           >
  1490            homePostal
  1491           </property >
  1492                                                                        
  1493           <xpath>
  1494            cda:associ atedEntity /cda:addr/ cda:postal Code
  1495           </xpath>
  1496                                                                        
  1497           <ifNotNull >
  1498                                                                                  
  1499            <action 
  1500             action="se tValue"
  1501            />
  1502                                                                         
  1503           </ifNotNul l>
  1504                                                               
  1505          </mapping>
  1506                                                              
  1507          <mapping>
  1508                                                                        
  1509           <property 
  1510            optional=" true"
  1511           >
  1512            homePhone
  1513           </property >
  1514                                                                        
  1515           <xpath>
  1516            cda:associ atedEntity /cda:telec om
  1517           </xpath>
  1518                                                                        
  1519           <ifNotNull >
  1520                                                                                  
  1521            <action 
  1522             action="se tAttribute
  1523             attribute= "use"
  1524            >
  1525             HP
  1526            </action>
  1527                                                                                  
  1528            <action 
  1529             action="se tAttribute
  1530             attribute= "value"
  1531            />
  1532                                                                         
  1533           </ifNotNul l>
  1534                                                                        
  1535           <ifNull>
  1536                                                                                  
  1537            <action 
  1538             action="se tAttribute
  1539             attribute= "nullFlavo r"
  1540            >
  1541             UNK
  1542            </action>
  1543                                                                         
  1544           </ifNull>
  1545                                                               
  1546          </mapping>
  1547                                                              
  1548          <!--  3.05  CONTACT P HONE/EMAIL /URL, Opti onal-R2, R emoved b/c  removed f rom templa te -->
  1549                                                              
  1550          <!-- 3.06  CONTACT NA ME, REQUIR ED -->
  1551                                                              
  1552          <mapping>
  1553                                                                        
  1554           <property 
  1555            optional=" true"
  1556           >
  1557            namePrefix
  1558           </property >
  1559                                                                        
  1560           <xpath>
  1561            cda:associ atedEntity /cda:assoc iatedPerso n/cda:name /cda:prefi x
  1562           </xpath>
  1563                                                                        
  1564           <ifNotNull >
  1565                                                                                  
  1566            <action 
  1567             action="se tValue"
  1568            />
  1569                                                                         
  1570           </ifNotNul l>
  1571                                                                        
  1572           <ifNull>
  1573                                                                                  
  1574            <action 
  1575             action="re move"
  1576            />
  1577                                                                         
  1578           </ifNull>
  1579                                                               
  1580          </mapping>
  1581                                                              
  1582          <mapping>
  1583                                                                        
  1584           <property>
  1585            nameGiven
  1586           </property >
  1587                                                                        
  1588           <xpath>
  1589            cda:associ atedEntity /cda:assoc iatedPerso n/cda:name /cda:given
  1590           </xpath>
  1591                                                                        
  1592           <ifNotNull >
  1593                                                                                  
  1594            <action 
  1595             action="se tValue"
  1596            />
  1597                                                                         
  1598           </ifNotNul l>
  1599                                                               
  1600          </mapping>
  1601                                                              
  1602          <mapping>
  1603                                                                        
  1604           <property>
  1605            nameFamily
  1606           </property >
  1607                                                                        
  1608           <xpath>
  1609            cda:associ atedEntity /cda:assoc iatedPerso n/cda:name /cda:famil y
  1610           </xpath>
  1611                                                                        
  1612           <ifNotNull >
  1613                                                                                  
  1614            <action 
  1615             action="se tValue"
  1616            />
  1617                                                                         
  1618           </ifNotNul l>
  1619                                                               
  1620          </mapping>
  1621                                                              
  1622          <mapping>
  1623                                                                        
  1624           <property 
  1625            optional=" true"
  1626           >
  1627            nameSuffix
  1628           </property >
  1629                                                                        
  1630           <xpath>
  1631            cda:associ atedEntity /cda:assoc iatedPerso n/cda:name /cda:suffi x
  1632           </xpath>
  1633                                                                        
  1634           <ifNotNull >
  1635                                                                                  
  1636            <action 
  1637             action="se tValue"
  1638            />
  1639                                                                         
  1640           </ifNotNul l>
  1641                                                                        
  1642           <ifNull>
  1643                                                                                  
  1644            <action 
  1645             action="re move"
  1646            />
  1647                                                                         
  1648           </ifNull>
  1649                                                               
  1650          </mapping>
  1651                                                     
  1652         </mappings >
  1653                                            
  1654        </mapping>
  1655                                  
  1656       </mappings >
  1657                        
  1658      </mapping>
  1659                       
  1660      <!-- ALLER GY/REACTIO N NARRRITI VE -->
  1661                       
  1662      <mapping>
  1663                                 
  1664       <property 
  1665        optional=" true" 
  1666        collection ="true"
  1667       >
  1668        allergies
  1669       </property >
  1670                                 
  1671       <xpath>
  1672        /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 . IP         ']
  1673       </xpath>
  1674                                 
  1675       <ifNotNull >
  1676                                           
  1677        <action 
  1678         action="ev aluateMapp ings" 
  1679         relative=" cda:sectio n/cda:text /cda:table [@ID='alle rgyNarriti ve']/cda:t body/cda:t r"
  1680        />
  1681                                  
  1682       </ifNotNul l>
  1683                                 
  1684       <mappings>
  1685                                           
  1686        <mapping>
  1687                                                    
  1688         <property>
  1689          productTex tName
  1690         </property >
  1691                                                    
  1692         <xpath>
  1693          cda:td/cda :content[@ ID='andAll ergy']
  1694         </xpath>
  1695                                                    
  1696         <ifNotNull >
  1697                                                              
  1698          <action 
  1699           action="se tAttribute
  1700           attribute= "ID" 
  1701           indexed="t rue"
  1702          >
  1703           andAllergy
  1704          </action>
  1705                                                              
  1706          <action 
  1707           action="se tValue"
  1708          />
  1709                                                     
  1710         </ifNotNul l>
  1711                                            
  1712        </mapping>
  1713                         
  1714        <mapping>
  1715                                                    
  1716         <property 
  1717          optional=" true"
  1718         >
  1719          productTex tNameCoded
  1720         </property >
  1721                                                    
  1722         <xpath>
  1723          cda:td/cda :content[@ ID='andCod edAllergyN ame']
  1724         </xpath>
  1725                                                    
  1726         <ifNotNull >
  1727                                                              
  1728          <action 
  1729           action="se tAttribute
  1730           attribute= "ID" 
  1731           indexed="t rue"
  1732          >
  1733           andCodedAl lergyName
  1734          </action>
  1735                                                              
  1736          <action 
  1737           action="se tValue"
  1738          />
  1739                                                     
  1740         </ifNotNul l>
  1741                                                    
  1742         <ifNull>
  1743                                                              
  1744          <action 
  1745           action="se tAttribute
  1746           attribute= "ID" 
  1747           indexed="t rue"
  1748          >
  1749           andCodedAl lergyName
  1750          </action>
  1751                                                              
  1752          <action 
  1753           action="se tValue"
  1754          >
  1755           Coded Alle rgy Name N ot Availab le
  1756          </action>
  1757                                                     
  1758         </ifNull>
  1759                                            
  1760        </mapping>                                    
  1761                                           
  1762        <mapping>
  1763                                                    
  1764         <property 
  1765          optional=" true"
  1766         >
  1767          startDate
  1768         </property >
  1769                                                    
  1770         <xpath>
  1771          cda:td/cda :content[@ ID='andVer ificationD ate']
  1772         </xpath>
  1773                                                    
  1774         <ifNotNull >
  1775                                                              
  1776          <action 
  1777           action="se tAttribute
  1778           attribute= "ID" 
  1779           indexed="t rue"
  1780          >
  1781           andVerific ationDate
  1782          </action>
  1783                                                              
  1784          <action 
  1785           action="se tValue"
  1786          />
  1787                                                     
  1788         </ifNotNul l>
  1789                                                    
  1790         <ifNull>
  1791                                                              
  1792          <action 
  1793           action="se tAttribute
  1794           attribute= "ID" 
  1795           indexed="t rue"
  1796          >
  1797           andVerific ationDate
  1798          </action>
  1799                                                     
  1800         </ifNull>
  1801                                            
  1802        </mapping>
  1803                                           
  1804        <mapping>
  1805                                                    
  1806         <property>
  1807          adverseTyp eCode
  1808         </property >
  1809                                                    
  1810         <xpath>
  1811          cda:td/cda :content[@ ID='andEve ntType']
  1812         </xpath>
  1813                                                    
  1814         <ifNotNull >
  1815                                                              
  1816          <action 
  1817           action="se tAttribute
  1818           attribute= "ID" 
  1819           indexed="t rue"
  1820          >
  1821           andEventTy pe
  1822          </action>
  1823                                                              
  1824          <action 
  1825           action="se tValue" 
  1826           property=" adverseTyp eDisplay"
  1827          />
  1828                                                     
  1829         </ifNotNul l>
  1830                                                    
  1831         <ifNull>
  1832                                                              
  1833          <action 
  1834           action="se tAttribute
  1835           attribute= "ID" 
  1836           indexed="t rue"
  1837          >
  1838           andEventTy pe
  1839          </action>
  1840                                                              
  1841          <action 
  1842           action="se tValue" 
  1843           property=" type.name"  
  1844          />
  1845                                                     
  1846         </ifNull>
  1847                                            
  1848        </mapping>
  1849                                           
  1850        <mapping>
  1851                                                    
  1852         <property 
  1853          optional=" true"
  1854         >
  1855          facilityNa me
  1856         </property >
  1857                                                    
  1858         <xpath>
  1859          cda:td/cda :content[@ ID='andSou rce']
  1860         </xpath>
  1861                                                    
  1862         <ifNotNull >
  1863                                                              
  1864          <action 
  1865           action="se tAttribute
  1866           attribute= "ID" 
  1867           indexed="t rue"
  1868          >
  1869           andSource
  1870          </action>
  1871                                                              
  1872          <action 
  1873           action="se tValue"
  1874          />
  1875                                                     
  1876         </ifNotNul l>
  1877                                            
  1878        </mapping>
  1879                                           
  1880        <mapping>
  1881                                                    
  1882         <property 
  1883          optional=" true"
  1884         >
  1885          reactions
  1886         </property >
  1887                                                    
  1888         <xpath>
  1889          cda:td/cda :list/cda: item[cda:c ontent/@ID ='andReact ion']
  1890         </xpath>
  1891                                                    
  1892         <ifNotNull >
  1893                                                              
  1894          <action 
  1895           action="se tAttribute
  1896           relative=" cda:conten t" 
  1897           attribute= "ID" 
  1898           indexed="t rue"
  1899          >
  1900           andReactio n
  1901          </action>
  1902                                                              
  1903          <action 
  1904           action="ev aluateMapp ings"
  1905          />
  1906                                                     
  1907         </ifNotNul l>
  1908                                                    
  1909         <ifNull>
  1910                                                              
  1911          <action 
  1912           action="se tAttribute
  1913           relative=" cda:conten t" 
  1914           attribute= "ID" 
  1915           indexed="t rue"
  1916          >
  1917           andReactio n
  1918          </action>
  1919                                                     
  1920         </ifNull>
  1921                                                    
  1922         <mappings>
  1923                                                              
  1924          <mapping>
  1925                                                                        
  1926           <property>
  1927            name
  1928           </property >
  1929                                                                        
  1930           <xpath>
  1931            cda:conten t
  1932           </xpath>
  1933                                                                        
  1934           <ifNotNull >
  1935                                                                                  
  1936            <action 
  1937             action="ap pendAttrib ute" 
  1938             attribute= "ID" 
  1939             indexed="t rue"
  1940            >
  1941             -
  1942            </action>
  1943                                                                                  
  1944            <action 
  1945             action="se tValue"
  1946            />
  1947                                                                         
  1948           </ifNotNul l>
  1949                                                               
  1950          </mapping>
  1951                                                     
  1952         </mappings >
  1953                                            
  1954        </mapping>
  1955                                           
  1956        <mapping>
  1957                                                    
  1958         <property 
  1959          optional=" true"
  1960         >
  1961          severity
  1962         </property >
  1963                                                    
  1964         <xpath>
  1965          cda:td/cda :content[@ ID='andSev erity']
  1966         </xpath>
  1967                                                    
  1968         <ifNotNull >
  1969                                                              
  1970          <action 
  1971           action="se tAttribute
  1972           attribute= "ID" 
  1973           indexed="t rue"
  1974          >
  1975           andSeverit y
  1976          </action>
  1977                                                              
  1978          <action 
  1979           action="se tValue"
  1980          />
  1981                                                     
  1982         </ifNotNul l>
  1983                                                    
  1984         <ifNull>
  1985                                                              
  1986          <action 
  1987           action="se tAttribute
  1988           attribute= "ID" 
  1989           indexed="t rue"
  1990          >
  1991           andSeverit y
  1992          </action>
  1993                                                     
  1994         </ifNull>
  1995                                            
  1996        </mapping>
  1997                                  
  1998       </mappings >
  1999                        
  2000      </mapping>
  2001                       
  2002      <!-- ALLER GY/DRUG SE CTION -->
  2003                       
  2004      <mapping>
  2005                                 
  2006       <property 
  2007        optional=" true" 
  2008        collection ="true" 
  2009        merge="tru e"
  2010       >
  2011        allergies
  2012       </property >
  2013                                 
  2014       <xpath>
  2015        /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 . IP         ']
  2016       </xpath>
  2017                                 
  2018       <ifNotNull >
  2019                                           
  2020        <action 
  2021         action="ev aluateMapp ings" 
  2022         relative=" cda:sectio n/cda:entr y"
  2023        />
  2024                                  
  2025       </ifNotNul l>
  2026                                 
  2027       <ifNull>
  2028                                           
  2029        <action 
  2030         action="re move"
  2031        />
  2032                                  
  2033       </ifNull>
  2034                                 
  2035       <mappings>
  2036                                           
  2037        <!-- INFOR MATION SOU RCE FOR AL LERGY/DRUG , Optional  -->
  2038                                           
  2039        <mapping>
  2040                                                    
  2041         <!-- INFOR MATION SOU RCE FACILI TY OID (VA  OID + TRE ATING FACI LITY NBR)  -->
  2042                                                    
  2043         <property 
  2044          optional=" true"
  2045         >
  2046          facilityNu mber
  2047         </property >
  2048                                                    
  2049         <xpath>
  2050          cda:act/cd a:author/c da:assigne dAuthor/cd a:represen tedOrganiz ation/cda: id
  2051         </xpath>
  2052                                                    
  2053         <ifNotNull >
  2054                                                              
  2055          <action 
  2056           action="se tAttribute
  2057           attribute= "extension "
  2058          />
  2059                                                     
  2060         </ifNotNul l>
  2061                                            
  2062        </mapping>
  2063                                           
  2064        <mapping>
  2065                                                    
  2066         <!-- INFOR MATION SOU RCE FACILI TY NAME -- >
  2067                                                    
  2068         <property 
  2069          optional=" true"
  2070         >
  2071          facilityNa me
  2072         </property >
  2073                                                    
  2074         <xpath>
  2075          cda:act/cd a:author/c da:assigne dAuthor/cd a:represen tedOrganiz ation/cda: name
  2076         </xpath>
  2077                                                    
  2078         <ifNotNull >
  2079                                                              
  2080          <action 
  2081           action="se tValue"
  2082          />
  2083                                                     
  2084         </ifNotNul l>
  2085                                            
  2086        </mapping>
  2087                                           
  2088        <!-- 6.02  ADVERSE EV ENT TYPE,  REQUIRED,  SNOMED CT,  as origin alText -->
  2089                                           
  2090        <mapping>
  2091                                                    
  2092         <property>
  2093          adverseTyp eCode
  2094         </property >
  2095                                                    
  2096         <xpath>
  2097          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: code
  2098         </xpath>
  2099                                                    
  2100         <ifNotNull >
  2101                                                              
  2102          <action 
  2103           action="se tAttribute
  2104           attribute= "code"
  2105          />
  2106                                                              
  2107          <action 
  2108           action="se tAttribute
  2109           attribute= "displayNa me" 
  2110           property=" adverseTyp eDisplay" 
  2111          />
  2112                                                     
  2113         </ifNotNul l>
  2114                                                    
  2115         <ifNull>
  2116                                                              
  2117          <action 
  2118           action="re moveAttrib utes"
  2119          />
  2120                                                              
  2121          <action 
  2122           action="se tAttribute
  2123           attribute= "nullFlavo r"
  2124          >
  2125           UNK
  2126          </action>
  2127                                                     
  2128         </ifNull>
  2129                                            
  2130        </mapping>
  2131                                           
  2132        <mapping>
  2133                                                    
  2134         <property>
  2135          type.name
  2136         </property >
  2137                                                    
  2138         <xpath>
  2139          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: code/cda:o riginalTex t
  2140         </xpath>
  2141                                                    
  2142         <ifNotNull >
  2143                                                              
  2144          <action 
  2145           action="se tValue"
  2146          />
  2147                                                     
  2148         </ifNotNul l>
  2149                                            
  2150        </mapping>
  2151                                           
  2152        <!--  6.02 .1 ALERT T YPE CODE,  Optional,  Removed b/ c removed  in templat e -->
  2153                                           
  2154        <!-- 6.01  ADVERSE EV ENT DATE,  Optional-R 2 -->
  2155                                           
  2156        <mapping>
  2157                                                    
  2158         <property 
  2159          optional=" true"
  2160         >
  2161          startDate
  2162         </property >
  2163                                                    
  2164         <xpath>
  2165          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: effectiveT ime
  2166         </xpath>
  2167                                                    
  2168         <ifNotNull >
  2169                                                              
  2170          <action 
  2171           action="se tAttribute
  2172           attribute= "value" 
  2173           relative=" cda:low"
  2174          />
  2175                                                     
  2176         </ifNotNul l>
  2177                                                    
  2178         <ifNull>
  2179                                                              
  2180          <action 
  2181           action="se tAttribute
  2182           attribute= "value" 
  2183           relative=" cda:low" 
  2184           property=" enteredDat e"
  2185          />
  2186                                                     
  2187         </ifNull>
  2188                                            
  2189        </mapping>
  2190                                           
  2191        <!-- 6.04  PRODUCT CO DED, Optio nal-R2, Re moved mapp ing b/c al ways UNK i n template  -->
  2192                                           
  2193        <mapping>
  2194                                                    
  2195         <property 
  2196          optional=" true"
  2197         >
  2198          productTex tNameCoded
  2199         </property >
  2200                                                    
  2201         <xpath>
  2202          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
  2203         </xpath>
  2204                                                    
  2205         <ifNotNull >
  2206                                                              
  2207          <action 
  2208           action="se tAttribute
  2209           attribute= "value" 
  2210           indexed="t rue"
  2211          >
  2212           #andCodedA llergyName
  2213          </action>
  2214                                                     
  2215         </ifNotNul l>
  2216                                                    
  2217         <ifNull>
  2218                                                              
  2219          <action 
  2220           action="se tAttribute
  2221           attribute= "value" 
  2222           indexed="t rue"
  2223          >
  2224           #andCodedA llergyName
  2225          </action>
  2226                                                     
  2227         </ifNull>
  2228                                            
  2229        </mapping>
  2230                                           
  2231        <!-- 6.03  PRODUCT FR EE TEXT, R EQUIRED -- >
  2232                                           
  2233        <mapping>
  2234                                                    
  2235         <property>
  2236          productTex tName
  2237         </property >
  2238                                                    
  2239         <xpath>
  2240          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: participan t/cda:part icipantRol e/cda:play ingEntity/ cda:name
  2241         </xpath>
  2242                                                    
  2243         <ifNotNull >
  2244                                                              
  2245          <action 
  2246           action="se tValue"
  2247          />
  2248                                                     
  2249         </ifNotNul l>
  2250                                            
  2251        </mapping>
  2252                                           
  2253        <!-- 6.05  REACTION F REE TEXT,  Optional-R 2, Removed  b/c remov ed in temp late -->
  2254                                           
  2255        <mapping>
  2256                                                    
  2257         <property 
  2258          optional=" true"
  2259         >
  2260          reactions
  2261         </property >
  2262                                                    
  2263         <xpath>
  2264          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: entryRelat ionship[@t ypeCode='M FST']
  2265         </xpath>
  2266                                                    
  2267         <ifNotNull >
  2268                                                              
  2269          <action 
  2270           action="se tAttribute
  2271           relative=" cda:observ ation/cda: text/cda:r eference" 
  2272           attribute= "value" 
  2273           indexed="t rue"
  2274          >
  2275           #andReacti on
  2276          </action>
  2277                                                              
  2278          <action 
  2279           action="ev aluateMapp ings"
  2280          />
  2281                                                     
  2282         </ifNotNul l>
  2283                                                    
  2284         <ifNull>
  2285                                                              
  2286          <action 
  2287           action="re move"
  2288          />
  2289                                                     
  2290         </ifNull>
  2291                                                    
  2292         <mappings>
  2293                                                              
  2294          <mapping>
  2295                                                                        
  2296           <property>
  2297            name
  2298           </property >
  2299                                                                        
  2300           <xpath>
  2301            .
  2302           </xpath>
  2303                                                                        
  2304           <ifNotNull >
  2305                                                                                  
  2306            <action 
  2307             action="ap pendAttrib ute" 
  2308             relative=" cda:observ ation/cda: text/cda:r eference" 
  2309             attribute= "value" 
  2310             indexed="t rue"
  2311            >
  2312             -
  2313            </action>
  2314                                                                         
  2315           </ifNotNul l>
  2316                                                                        
  2317           <ifNull>
  2318                                                                                  
  2319            <action 
  2320             action="re move"
  2321            />
  2322                                                                         
  2323           </ifNull>
  2324                                                               
  2325          </mapping>
  2326                                                     
  2327         </mappings >
  2328                                            
  2329        </mapping>
  2330                                           
  2331        <!-- 6.06  REACTION C ODED, Opti onal-R2, R emoved b/c  removed i n template  -->
  2332                                           
  2333        <!-- 6.07  SEVERITY F REE TEXT,  Optional-R 2 Removed  b/c remove d in templ ate -->
  2334                                           
  2335        <mapping>
  2336                                                    
  2337         <property 
  2338          optional=" true"
  2339         >
  2340          severity
  2341         </property >
  2342                                                    
  2343         <xpath>
  2344          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: entryRelat ionship[@t ypeCode='S UBJ']
  2345         </xpath>
  2346                                                    
  2347         <ifNotNull >
  2348                                                              
  2349          <action 
  2350           action="se tAttribute
  2351           relative=" cda:observ ation/cda: text/cda:r eference" 
  2352           attribute= "value" 
  2353           indexed="t rue"
  2354          >
  2355           #andSeveri ty
  2356          </action>
  2357                                                     
  2358         </ifNotNul l>
  2359                                                    
  2360         <ifNull>
  2361                                                              
  2362          <action 
  2363           action="re move"
  2364          />
  2365                                                     
  2366         </ifNull>
  2367                                            
  2368        </mapping>
  2369                                           
  2370        <!-- 6.08  SEVERITY C ODED, Opti onal-R2 Re moved b/c  removed in  template  -->
  2371                                           
  2372        <!-- 6.08. 1 ALLERGY  STATUS, Op tional, Re moved b/c  removed in  template  -->
  2373                                  
  2374       </mappings >
  2375                        
  2376      </mapping>
  2377                       
  2378      <!-- PROBL EM NARRATI VE -->
  2379                       
  2380      <mapping>
  2381                                 
  2382       <property 
  2383        optional=" true" 
  2384        collection ="true" 
  2385        merge="tru e"
  2386       >
  2387        problems
  2388       </property >
  2389                                 
  2390       <xpath>
  2391        /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 . IP          ']
  2392       </xpath>
  2393                                 
  2394       <ifNotNull >
  2395                                           
  2396        <action 
  2397         action="ev aluateMapp ings" 
  2398         relative=" cda:sectio n/cda:text /cda:table [@ID='prob lemNarriti ve']/cda:t body/cda:t r"
  2399        />
  2400                                  
  2401       </ifNotNul l>
  2402                                 
  2403       <mappings>
  2404                                           
  2405        <mapping>
  2406                                                    
  2407         <property>
  2408          name
  2409         </property >
  2410                                                    
  2411         <xpath>
  2412          cda:td/cda :content[@ ID='pndPro blem']
  2413         </xpath>
  2414                                                    
  2415         <ifNotNull >
  2416                                                              
  2417          <action 
  2418           action="se tAttribute
  2419           attribute= "ID" 
  2420           indexed="t rue"
  2421          >
  2422           pndProblem
  2423          </action>
  2424                                                              
  2425          <action 
  2426           action="se tValue"
  2427          />
  2428                                                     
  2429         </ifNotNul l>
  2430                                            
  2431        </mapping>
  2432                                           
  2433        <mapping>
  2434                                                    
  2435         <property>
  2436          statusDisp lay
  2437         </property >
  2438                                                    
  2439         <xpath>
  2440          cda:td/cda :content[@ ID='pndSta tus']
  2441         </xpath>
  2442                                                    
  2443         <ifNotNull >
  2444                                                              
  2445          <action 
  2446           action="se tAttribute
  2447           attribute= "ID" 
  2448           indexed="t rue"
  2449          >
  2450           pndStatus
  2451          </action>
  2452                                                              
  2453          <action 
  2454           action="se tValue"
  2455          />
  2456                                                     
  2457         </ifNotNul l>
  2458                                            
  2459        </mapping>
  2460                                           
  2461        <mapping>
  2462                                                    
  2463         <property>
  2464          icdCode
  2465         </property >
  2466                                                    
  2467         <xpath>
  2468          cda:td/cda :content[@ ID='pndPro blemCode']
  2469         </xpath>
  2470                                                    
  2471         <ifNotNull >
  2472                                                              
  2473          <action 
  2474           action="se tAttribute
  2475           attribute= "ID" 
  2476           indexed="t rue"
  2477          >
  2478           pndProblem Code
  2479          </action>
  2480                                                              
  2481          <action 
  2482           action="se tValue"
  2483          />
  2484                                                     
  2485         </ifNotNul l>
  2486                                            
  2487        </mapping>
  2488                                           
  2489        <mapping>
  2490                                                    
  2491         <property 
  2492          optional=" true"
  2493         >
  2494          date
  2495         </property >
  2496                                                    
  2497         <xpath>
  2498          cda:td/cda :content[@ ID='pndDat eOfOnset']
  2499         </xpath>
  2500                                                    
  2501         <ifNotNull >
  2502                                                              
  2503          <action 
  2504           action="se tAttribute
  2505           attribute= "ID" 
  2506           indexed="t rue"
  2507          >
  2508           pndDateOfO nset
  2509          </action>
  2510                                                              
  2511          <action 
  2512           action="se tValue"
  2513          />
  2514                                                     
  2515         </ifNotNul l>
  2516                                                    
  2517         <ifNull>
  2518                                                              
  2519          <action 
  2520           action="se tAttribute
  2521           attribute= "ID" 
  2522           indexed="t rue"
  2523          >
  2524           pndDateOfO nset
  2525          </action>
  2526                                                     
  2527         </ifNull>
  2528                                            
  2529        </mapping>
  2530                                           
  2531        <mapping>
  2532                                                    
  2533         <property>
  2534          provider
  2535         </property >
  2536                                                    
  2537         <xpath>
  2538          cda:td/cda :content[@ ID='pndPro vider']
  2539         </xpath>
  2540                                                    
  2541         <ifNotNull >
  2542                                                              
  2543          <action 
  2544           action="se tAttribute
  2545           attribute= "ID" 
  2546           indexed="t rue"
  2547          >
  2548           pndProvide r
  2549          </action>
  2550                                                              
  2551          <action 
  2552           action="se tValue"
  2553          />
  2554                                                     
  2555         </ifNotNul l>
  2556                                            
  2557        </mapping>
  2558                                           
  2559        <mapping>
  2560                                                    
  2561         <property 
  2562          optional=" true"
  2563         >
  2564          facilityNa me
  2565         </property >
  2566                                                    
  2567         <xpath>
  2568          cda:td/cda :content[@ ID='pndSou rce']
  2569         </xpath>
  2570                                                    
  2571         <ifNotNull >
  2572                                                              
  2573          <action 
  2574           action="se tAttribute
  2575           attribute= "ID" 
  2576           indexed="t rue"
  2577          >
  2578           pndSource
  2579          </action>
  2580                                                              
  2581          <action 
  2582           action="se tValue"
  2583          />
  2584                                                     
  2585         </ifNotNul l>
  2586                                                    
  2587         <ifNull>
  2588                                                              
  2589          <action 
  2590           action="se tAttribute
  2591           attribute= "ID" 
  2592           indexed="t rue"
  2593          >
  2594           pndSource
  2595          </action>
  2596                                                     
  2597         </ifNull>
  2598                                            
  2599        </mapping>
  2600                                  
  2601       </mappings >
  2602                        
  2603      </mapping>
  2604                       
  2605      <!-- PROBL EM Healthc are provid er module  reference  Value SECT ION -->
  2606                       
  2607                                
  2608      <mapping>
  2609                                 
  2610       <property 
  2611        optional=" true" 
  2612        collection ="true" 
  2613        merge="tru e"
  2614       >
  2615        participan ts
  2616       </property >
  2617                                 
  2618       <xpath>
  2619        /cda:Clini calDocumen t/cda:docu mentationO f/cda:serv iceEvent/c da:perform er[@typeCo de='PPRF']
  2620       </xpath>
  2621                                 
  2622       <ifNotNull >
  2623                                           
  2624        <action 
  2625         action="ev aluateMapp ings"
  2626        />
  2627                                  
  2628       </ifNotNul l>
  2629                                 
  2630       <ifNull>
  2631                                           
  2632        <action 
  2633         action="re move"
  2634        />
  2635                                  
  2636       </ifNull>
  2637                                 
  2638       <mappings>
  2639                                           
  2640        <!--  PCP  Name -->
  2641                                           
  2642        <mapping>
  2643                                                    
  2644         <property>
  2645          pcProvider .name
  2646         </property >
  2647                                                    
  2648         <xpath>
  2649          cda:assign edEntity
  2650         </xpath>
  2651                                                    
  2652         <ifNotNull >
  2653                                                              
  2654          <action 
  2655           action="se tValue" 
  2656           relative=" cda:assign edPerson/c da:name" 
  2657          />
  2658                                                              
  2659          <action 
  2660           action="re moveAttrib utes" 
  2661           relative=" cda:id" 
  2662          />
  2663                                                              
  2664          <action 
  2665           action="se tAttribute
  2666           relative=" cda:id" 
  2667           attribute= "nullFlavo r"
  2668          >
  2669           UNK
  2670          </action>
  2671                                                     
  2672         </ifNotNul l>
  2673                                                    
  2674         <ifNull>
  2675                                                              
  2676          <action 
  2677           action="re move" 
  2678           relative=" .." 
  2679          />
  2680                                                     
  2681         </ifNull>
  2682                                            
  2683        </mapping>
  2684                                           
  2685        <mapping>
  2686                                                    
  2687         <property>
  2688          pcProvider .taxonomyC ode
  2689         </property >
  2690                                                    
  2691         <xpath>
  2692          cda:assign edEntity/c da:code
  2693         </xpath>
  2694                                                    
  2695         <ifNotNull >
  2696                                                              
  2697          <action 
  2698           action="se tAttribute
  2699           attribute= "code" 
  2700          />
  2701                                                              
  2702          <action 
  2703           action="ap pendAttrib ute" 
  2704           attribute= "code" 
  2705           property=" providerTy pe"
  2706          />
  2707                                                              
  2708          <action 
  2709           action="se tValue" 
  2710           property=" providerTy pe" 
  2711           relative=" cda:origin alText" 
  2712          />
  2713                                                     
  2714         </ifNotNul l>
  2715                                                    
  2716         <ifNull>
  2717                                                              
  2718          <action 
  2719           action="re moveAttrib utes" 
  2720          />
  2721                                                              
  2722          <action 
  2723           action="se tAttribute
  2724           attribute= "nullFlavo r"
  2725          >
  2726           UNK
  2727          </action>
  2728                                                     
  2729         </ifNull>
  2730                                            
  2731        </mapping>
  2732                                           
  2733        <mapping>
  2734                                                    
  2735         <property>
  2736          pcProvider .providerT ype
  2737         </property >
  2738                                                    
  2739         <xpath>
  2740          cda:assign edEntity/c da:code/cd a:original Text
  2741         </xpath>
  2742                                                    
  2743         <ifNotNull >
  2744                                                              
  2745          <action 
  2746           action="se tValue" 
  2747          />
  2748                                                     
  2749         </ifNotNul l>
  2750                                                    
  2751         <ifNull>
  2752                                                              
  2753          <action 
  2754           action="re move" 
  2755          />
  2756                                                     
  2757         </ifNull>
  2758                                            
  2759        </mapping>                
  2760                                           
  2761        <!-- PCP e -mail -->
  2762                                           
  2763        <mapping>
  2764                                                    
  2765         <property>
  2766          pcProvider .email
  2767         </property >
  2768                                                    
  2769         <xpath>
  2770          cda:assign edEntity/c da:telecom [@ID='EMAI L']
  2771         </xpath>
  2772                                                    
  2773         <ifNotNull >
  2774                                                              
  2775          <action 
  2776           action="re moveAttrib utes" 
  2777          />
  2778                                                              
  2779          <action 
  2780           action="ap pendAttrib ute" 
  2781           attribute= "value"
  2782          >
  2783           email:
  2784          </action>
  2785                                                              
  2786          <action 
  2787           action="ap pendAttrib ute" 
  2788           attribute= "value"
  2789          />
  2790                                                              
  2791          <action 
  2792           action="se tAttribute
  2793           attribute= "use"
  2794          >
  2795           WP
  2796          </action>
  2797                                                     
  2798         </ifNotNul l>
  2799                                                    
  2800         <ifNull>
  2801                                                              
  2802          <action 
  2803           action="re move" 
  2804          />
  2805                                                     
  2806         </ifNull>
  2807                                            
  2808        </mapping>
  2809                                           
  2810        <!-- PCP P hone -->
  2811                                           
  2812        <mapping>
  2813                                                    
  2814         <property>
  2815          pcProvider .officePho ne
  2816         </property >
  2817                                                    
  2818         <xpath>
  2819          cda:assign edEntity/c da:telecom [@ID='TELE PHONE']
  2820         </xpath>
  2821                                                    
  2822         <ifNotNull >
  2823                                                              
  2824          <action 
  2825           action="re moveAttrib utes" 
  2826          />
  2827                                                              
  2828          <action 
  2829           action="ap pendAttrib ute" 
  2830           attribute= "value"
  2831          />
  2832                                                              
  2833          <action 
  2834           action="se tAttribute
  2835           attribute= "use"
  2836          >
  2837           WP
  2838          </action>
  2839                                                     
  2840         </ifNotNul l>
  2841                                                    
  2842         <ifNull>
  2843                                                              
  2844          <action 
  2845           action="re move" 
  2846          />
  2847                                                     
  2848         </ifNull>
  2849                                            
  2850        </mapping>
  2851                                           
  2852                                           
  2853        <mapping>
  2854                                                    
  2855         <property>
  2856          pcProvider .pcAddress Street
  2857         </property >
  2858                                                    
  2859         <xpath>
  2860          cda:assign edEntity/c da:addr/cd a:streetAd dressLine
  2861         </xpath>
  2862                                                    
  2863         <ifNotNull >
  2864                                                              
  2865          <action 
  2866           action="se tValue" 
  2867          />
  2868                                                     
  2869         </ifNotNul l>
  2870                                                    
  2871         <ifNull>
  2872                                                              
  2873          <action 
  2874           action="se tAttribute
  2875           attribute= "nullFlavo r"
  2876          >
  2877           UNK
  2878          </action>
  2879                                                     
  2880         </ifNull>
  2881                                            
  2882        </mapping>
  2883                                           
  2884        <mapping>
  2885                                                    
  2886         <property>
  2887          pcProvider .pcAddress City
  2888         </property >
  2889                                                    
  2890         <xpath>
  2891          cda:assign edEntity/c da:addr/cd a:city
  2892         </xpath>
  2893                                                    
  2894         <ifNotNull >
  2895                                                              
  2896          <action 
  2897           action="se tValue" 
  2898          />
  2899                                                     
  2900         </ifNotNul l>
  2901                                                    
  2902         <ifNull>
  2903                                                              
  2904          <action 
  2905           action="se tAttribute
  2906           attribute= "nullFlavo r"
  2907          >
  2908           UNK
  2909          </action>
  2910                                                     
  2911         </ifNull>
  2912                                            
  2913        </mapping>
  2914                                           
  2915        <mapping>
  2916                                                    
  2917         <property>
  2918          pcProvider .pcAddress State
  2919         </property >
  2920                                                    
  2921         <xpath>
  2922          cda:assign edEntity/c da:addr/cd a:state
  2923         </xpath>
  2924                                                    
  2925         <ifNotNull >
  2926                                                              
  2927          <action 
  2928           action="se tValue" 
  2929          />
  2930                                                     
  2931         </ifNotNul l>
  2932                                                    
  2933         <ifNull>
  2934                                                              
  2935          <action 
  2936           action="se tAttribute
  2937           attribute= "nullFlavo r"
  2938          >
  2939           UNK
  2940          </action>
  2941                                                     
  2942         </ifNull>
  2943                                            
  2944        </mapping>
  2945                                           
  2946                                           
  2947        <mapping>
  2948                                                    
  2949         <property>
  2950          pcProvider .pcAddress Postal
  2951         </property >
  2952                                                    
  2953         <xpath>
  2954          cda:assign edEntity/c da:addr/cd a:postalCo de
  2955         </xpath>
  2956                                                    
  2957         <ifNotNull >
  2958                                                              
  2959          <action 
  2960           action="se tValue" 
  2961          />
  2962                                                     
  2963         </ifNotNul l>
  2964                                                    
  2965         <ifNull>
  2966                                                              
  2967          <action 
  2968           action="se tAttribute
  2969           attribute= "nullFlavo r"
  2970          >
  2971           UNK
  2972          </action>
  2973                                                     
  2974         </ifNull>
  2975                                            
  2976        </mapping>
  2977                                  
  2978       </mappings >
  2979                        
  2980      </mapping>
  2981                       
  2982                       
  2983      <mapping>
  2984                                 
  2985       <property 
  2986        optional=" true" 
  2987        collection ="true" 
  2988        merge="tru e"
  2989       >
  2990        problems
  2991       </property >
  2992                                 
  2993       <xpath>
  2994        /cda:Clini calDocumen t/cda:docu mentationO f/cda:serv iceEvent/c da:perform er[@typeCo de='PRF']
  2995       </xpath>
  2996                                 
  2997       <ifNotNull >
  2998                                           
  2999        <action 
  3000         action="ev aluateMapp ings"
  3001        />
  3002                                  
  3003       </ifNotNul l>
  3004                                 
  3005       <ifNull>
  3006                                           
  3007        <action 
  3008         action="re move"
  3009        />
  3010                                  
  3011       </ifNull>
  3012                                 
  3013       <mappings>
  3014                                                                     
  3015                                           
  3016        <!-- 7.03  PROBLEM He althcare p rovider re ference va lue, REQUI RED -->
  3017                                           
  3018        <mapping>
  3019                                                    
  3020         <property>
  3021          provider
  3022         </property >
  3023                                                    
  3024         <xpath>
  3025          cda:assign edEntity
  3026         </xpath>
  3027                                                    
  3028         <ifNotNull >
  3029                                                              
  3030          <action 
  3031           action="se tAttribute
  3032           relative=" cda:id" 
  3033           attribute= "extension
  3034           indexed="t rue"
  3035          >
  3036           provider
  3037          </action>
  3038                                                              
  3039          <action 
  3040           action="se tValue" 
  3041           relative=" cda:assign edPerson/c da:name"
  3042          />
  3043                                                              
  3044          <action 
  3045           action="re move" 
  3046           relative=" cda:code" 
  3047          />
  3048                                                              
  3049          <action 
  3050           action="re move" 
  3051           relative=" ../cda:fun ctionCode"
  3052          />
  3053                                                              
  3054          <action 
  3055           action="re move" 
  3056           relative=" cda:assign edPerson/c da:telecom [@ID='TELE PHONE']"
  3057          />
  3058                                                              
  3059          <action 
  3060           action="re move" 
  3061           relative=" cda:assign edPerson/c da:telecom [@ID='EMAI L']"
  3062          />                                                  
  3063                                                     
  3064         </ifNotNul l>
  3065                                            
  3066        </mapping>
  3067                                           
  3068        <mapping>
  3069                                                    
  3070         <property>
  3071          facilityNu mber
  3072         </property >
  3073                                                    
  3074         <xpath>
  3075          cda:assign edEntity/c da:represe ntedOrgani zation/cda :id
  3076         </xpath>
  3077                                                    
  3078         <ifNotNull >
  3079                                                              
  3080          <action 
  3081           action="se tAttribute
  3082           attribute= "extension "
  3083          />
  3084                                                     
  3085         </ifNotNul l>
  3086                                            
  3087        </mapping>
  3088                                           
  3089        <mapping>
  3090                                                    
  3091         <property>
  3092          facilityNa me
  3093         </property >
  3094                                                    
  3095         <xpath>
  3096          cda:assign edEntity/c da:represe ntedOrgani zation/cda :name
  3097         </xpath>
  3098                                                    
  3099         <ifNotNull >
  3100                                                              
  3101          <action 
  3102           action="se tValue"
  3103          />
  3104                                                     
  3105         </ifNotNul l>
  3106                                            
  3107        </mapping>                                    
  3108                                  
  3109       </mappings >
  3110                        
  3111      </mapping>
  3112                       
  3113      <!-- PROBL EM SECTION  -->
  3114                       
  3115      <mapping>
  3116                                 
  3117       <property 
  3118        optional=" true" 
  3119        collection ="true" 
  3120        merge="tru e"
  3121       >
  3122        problems
  3123       </property >
  3124                                 
  3125       <xpath>
  3126        /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 . IP          ']
  3127       </xpath>
  3128                                 
  3129       <ifNotNull >
  3130                                           
  3131        <action 
  3132         action="ev aluateMapp ings" 
  3133         relative=" cda:sectio n/cda:entr y"
  3134        />
  3135                                  
  3136       </ifNotNul l>
  3137                                 
  3138       <ifNull>
  3139                                           
  3140        <action 
  3141         action="re move"
  3142        />
  3143                                  
  3144       </ifNull>
  3145                                 
  3146       <mappings>
  3147                                           
  3148        <!--  7.03  PROBLEM N AME as a R eference t ag -->
  3149                                           
  3150        <!--  Prob lem Act Id  removed b /c always  UNK in tem plate -->
  3151                                           
  3152        <!-- 7.01  PROBLEM DA TE, Option al R2 (PRO BLEM SORTI NG CRITERI A) -->
  3153                                           
  3154        <mapping>
  3155                                                    
  3156         <property 
  3157          optional=" true"
  3158         >
  3159          date
  3160         </property >
  3161                                                    
  3162         <xpath 
  3163          sort="desc "
  3164         >
  3165          cda:act/cd a:effectiv eTime/cda: low
  3166         </xpath>
  3167                                                    
  3168         <ifNotNull >
  3169                                                              
  3170          <action 
  3171           action="se tAttribute
  3172           attribute= "value"
  3173          />
  3174                                                     
  3175         </ifNotNul l>
  3176                                                    
  3177         <ifNull>
  3178                                                              
  3179          <action 
  3180           action="re moveAttrib utes"
  3181          />
  3182                                                              
  3183          <action 
  3184           action="se tAttribute
  3185           attribute= "nullFlavo r"
  3186          >
  3187           UNK
  3188          </action>
  3189                                                     
  3190         </ifNull>
  3191                                            
  3192        </mapping>
  3193                                           
  3194        <mapping>
  3195                                                    
  3196         <property 
  3197          optional=" true"
  3198         >
  3199          dateResolv ed
  3200         </property >
  3201                                                    
  3202         <xpath 
  3203          sort="desc "
  3204         >
  3205          cda:act/cd a:effectiv eTime/cda: high
  3206         </xpath>
  3207                                                    
  3208         <ifNotNull >
  3209                                                              
  3210          <action 
  3211           action="se tAttribute
  3212           attribute= "value"
  3213          />
  3214                                                     
  3215         </ifNotNul l>
  3216                                                    
  3217         <ifNull>
  3218                                                              
  3219          <action 
  3220           action="re moveAttrib utes"
  3221          />
  3222                                                              
  3223          <action 
  3224           action="se tAttribute
  3225           attribute= "nullFlavo r"
  3226          >
  3227           UNK
  3228          </action>
  3229                                                     
  3230         </ifNull>
  3231                                            
  3232        </mapping>
  3233                                           
  3234        <!-- 7.05  TREATING P ROVIDER, O ptional -- >
  3235                                           
  3236        <!-- 7.05  TREATING P ROVIDER, P rovider ID  linked to  Health Ca re Provide r Module - ->
  3237                                           
  3238        <mapping>
  3239                                                    
  3240         <property>
  3241          provider
  3242         </property >
  3243                                                    
  3244         <xpath>
  3245          cda:act/cd a:performe r/cda:assi gnedEntity /cda:id
  3246         </xpath>
  3247                                                    
  3248         <ifNotNull >
  3249                                                              
  3250          <action 
  3251           action="se tAttribute
  3252           attribute= "extension
  3253           indexed="t rue"
  3254          >
  3255           provider
  3256          </action>
  3257                                                     
  3258         </ifNotNul l>
  3259                                                    
  3260         <ifNull>
  3261                                                              
  3262          <action 
  3263           action="se tAttribute
  3264           attribute= "nullFlavo r"
  3265          >
  3266           UNK
  3267          </action>
  3268                                                     
  3269         </ifNull>
  3270                                            
  3271        </mapping>
  3272                                           
  3273        <!-- INFOR MATION SOU RCE FOR PR OBLEM, Opt ional -->
  3274                                           
  3275        <!-- INFOR MATION SOU RCE FACILI TY OID (VA  OID + TRE ATING FACI LITY NBR)  -->
  3276                                           
  3277        <mapping>
  3278                                                    
  3279         <property 
  3280          optional=" true"
  3281         >
  3282          facilityNu mber
  3283         </property >
  3284                                                    
  3285         <xpath>
  3286          cda:act/cd a:author/c da:assigne dAuthor/cd a:represen tedOrganiz ation/cda: id
  3287         </xpath>
  3288                                                    
  3289         <ifNotNull >
  3290                                                              
  3291          <action 
  3292           action="se tAttribute
  3293           attribute= "extension "
  3294          />
  3295                                                     
  3296         </ifNotNul l>
  3297                                            
  3298        </mapping>
  3299                                           
  3300        <mapping>
  3301                                                    
  3302         <!-- INFOR MATION SOU RCE FACILI TY NAME -- >
  3303                                                    
  3304         <property 
  3305          optional=" true"
  3306         >
  3307          facilityNa me
  3308         </property >
  3309                                                    
  3310         <xpath>
  3311          cda:act/cd a:author/c da:assigne dAuthor/cd a:represen tedOrganiz ation/cda: name
  3312         </xpath>
  3313                                                    
  3314         <ifNotNull >
  3315                                                              
  3316          <action 
  3317           action="se tValue"
  3318          />
  3319                                                     
  3320         </ifNotNul l>
  3321                                            
  3322        </mapping>
  3323                                           
  3324        <!-- 7.03  PROBLEM NA ME, REQUIR ED -->
  3325                                           
  3326        <mapping>
  3327                                                    
  3328         <property>
  3329          name
  3330         </property >
  3331                                                    
  3332         <xpath>
  3333          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: text/cda:r eference
  3334         </xpath>
  3335                                                    
  3336         <ifNotNull >
  3337                                                              
  3338          <action 
  3339           action="se tAttribute
  3340           attribute= "value" 
  3341           indexed="t rue"
  3342          >
  3343           #pndProble m
  3344          </action>
  3345                                                     
  3346         </ifNotNul l>
  3347                                            
  3348        </mapping>
  3349                                           
  3350        <!-- 7.02  PROBLEM TY PE, R2, SN OMED CT, a lways UNK  in templat e  -->
  3351                                           
  3352        <!-- 7.04  PROBLEM CO DE, Option al, SNOMED  CT -->
  3353                                           
  3354        <mapping>
  3355                                                    
  3356         <property>
  3357          icdCode
  3358         </property >
  3359                                                    
  3360         <xpath>
  3361          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: value/cda: translatio n
  3362         </xpath>
  3363                                                    
  3364         <ifNotNull >
  3365                                                              
  3366          <action 
  3367           action="se tAttribute
  3368           attribute= "code"
  3369          />
  3370                                                     
  3371         </ifNotNul l>
  3372                                            
  3373        </mapping>
  3374                                           
  3375        <!-- 7.04  PROBLEM CO DE Removed  b/c remov ed in temp late -->
  3376                                           
  3377        <!-- 7.04. 1 PROBLEM  STATUS, Op tional, Re moved b/c  remove in  template   -->
  3378                                           
  3379        <mapping>
  3380                                                    
  3381         <property>
  3382          statusCode
  3383         </property >
  3384                                                    
  3385         <xpath>
  3386          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: entryRelat ionship/cd a:observat ion/cda:va lue
  3387         </xpath>
  3388                                                    
  3389         <ifNotNull >
  3390                                                              
  3391          <action 
  3392           action="se tAttribute
  3393           attribute= "code"
  3394          />
  3395                                                     
  3396         </ifNotNul l>
  3397                                            
  3398        </mapping>
  3399                                           
  3400        <mapping>
  3401                                                    
  3402         <property>
  3403          statusDisp lay
  3404         </property >
  3405                                                    
  3406         <xpath>
  3407          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: entryRelat ionship/cd a:observat ion/cda:va lue
  3408         </xpath>
  3409                                                    
  3410         <ifNotNull >
  3411                                                              
  3412          <action 
  3413           action="se tAttribute
  3414           attribute= "displayNa me"
  3415          />
  3416                                                     
  3417         </ifNotNul l>
  3418                                            
  3419        </mapping>
  3420                                           
  3421        <mapping>
  3422                                                    
  3423         <property>
  3424          status.nam e
  3425         </property >
  3426                                                    
  3427         <xpath>
  3428          cda:act/cd a:entryRel ationship/ cda:observ ation/cda: entryRelat ionship/cd a:observat ion/cda:va lue/cda:or iginalText
  3429         </xpath>
  3430                                                    
  3431         <ifNotNull >
  3432                                                              
  3433          <action 
  3434           action="se tValue"
  3435          />
  3436                                                     
  3437         </ifNotNul l>
  3438                                            
  3439        </mapping>
  3440                                  
  3441       </mappings >
  3442                        
  3443      </mapping>
  3444                       
  3445      <!-- MEDIC ATIONS NAR RITIVE -->
  3446                       
  3447      <mapping>
  3448                                 
  3449       <property 
  3450        collection ="true" 
  3451        merge="tru e" 
  3452        optional=" true"
  3453       >
  3454        medication s
  3455       </property >
  3456                                 
  3457       <xpath>
  3458        /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 . IP         ']
  3459       </xpath>
  3460                                 
  3461       <ifNotNull >
  3462                                           
  3463        <action 
  3464         action="ev aluateMapp ings" 
  3465         relative=" cda:sectio n/cda:text /cda:table [@ID='medi cationNarr itive']/cd a:tbody/cd a:tr"
  3466        />
  3467                                  
  3468       </ifNotNul l>
  3469                                 
  3470       <mappings>
  3471                                           
  3472        <mapping>
  3473                                                    
  3474         <property 
  3475          optional=" true"
  3476         >
  3477          prodNameTe xt
  3478         </property >
  3479                                                    
  3480         <xpath>
  3481          cda:td/cda :content[@ ID='mndMed ication']
  3482         </xpath>
  3483                                                    
  3484         <ifNotNull >
  3485                                                              
  3486          <action 
  3487           action="se tAttribute
  3488           attribute= "ID" 
  3489           indexed="t rue"
  3490          >
  3491           mndMedicat ion
  3492          </action>
  3493                                                              
  3494          <action 
  3495           action="se tValue"
  3496          />
  3497                                                     
  3498         </ifNotNul l>
  3499                                                    
  3500         <ifNull>
  3501                                                              
  3502          <action 
  3503           action="se tAttribute
  3504           attribute= "ID" 
  3505           indexed="t rue"
  3506          >
  3507           mndMedicat ion
  3508          </action>
  3509                                                              
  3510          <action 
  3511           action="se tValue" 
  3512           property=" name"
  3513          />
  3514                                                     
  3515         </ifNull>
  3516                                            
  3517        </mapping>
  3518                                           
  3519        <mapping>
  3520                                                    
  3521         <property 
  3522          optional=" true"
  3523         >
  3524          statusDisp lay
  3525         </property >
  3526                                                    
  3527         <xpath>
  3528          cda:td/cda :content[@ ID='mndSta tus']
  3529         </xpath>
  3530                                                    
  3531         <ifNotNull >
  3532                                                              
  3533          <action 
  3534           action="se tAttribute
  3535           attribute= "ID" 
  3536           indexed="t rue"
  3537          >
  3538           mndStatus
  3539          </action>
  3540                                                              
  3541          <action 
  3542           action="se tValue"
  3543          />
  3544                                                     
  3545         </ifNotNul l>
  3546                                                    
  3547         <ifNull>
  3548                                                              
  3549          <action 
  3550           action="se tAttribute
  3551           attribute= "ID" 
  3552           indexed="t rue"
  3553          >
  3554           mndStatus
  3555          </action>
  3556                                                              
  3557          <action 
  3558           action="se tValue" 
  3559           property=" vaStatus" 
  3560          />
  3561                                                     
  3562         </ifNull>
  3563                                            
  3564        </mapping>
  3565                                           
  3566        <mapping>
  3567                                                    
  3568         <property 
  3569          optional=" true"
  3570         >
  3571          quantityVa lue
  3572         </property >
  3573                                                    
  3574         <xpath>
  3575          cda:td/cda :content[@ ID='mndQua ntity']
  3576         </xpath>
  3577                                                    
  3578         <ifNotNull >
  3579                                                              
  3580          <action 
  3581           action="se tAttribute
  3582           attribute= "ID" 
  3583           indexed="t rue"
  3584          >
  3585           mndQuantit y
  3586          </action>
  3587                                                              
  3588          <action 
  3589           action="se tValue"
  3590          />
  3591                                                     
  3592         </ifNotNul l>
  3593                                                    
  3594         <ifNull>
  3595                                                              
  3596          <action 
  3597           action="se tAttribute
  3598           attribute= "ID" 
  3599           indexed="t rue"
  3600          >
  3601           mndQuantit y
  3602          </action>
  3603                                                     
  3604         </ifNull>
  3605                                            
  3606        </mapping>
  3607                                           
  3608        <mapping>
  3609                                                    
  3610         <property 
  3611          optional=" true"
  3612         >
  3613          expireDate
  3614         </property >
  3615                                                    
  3616         <xpath>
  3617          cda:td/cda :content[@ ID='mndOrd erExpirati on']
  3618         </xpath>
  3619                                                    
  3620         <ifNotNull >
  3621                                                              
  3622          <action 
  3623           action="se tAttribute
  3624           attribute= "ID" 
  3625           indexed="t rue"
  3626          >
  3627           mndOrderEx piration
  3628          </action>
  3629                                                              
  3630          <action 
  3631           action="se tValue"
  3632          />
  3633                                                     
  3634         </ifNotNul l>
  3635                                                    
  3636         <ifNull>
  3637                                                              
  3638          <action 
  3639           action="se tAttribute
  3640           attribute= "ID" 
  3641           indexed="t rue"
  3642          >
  3643           mndOrderEx piration
  3644          </action>
  3645                                                     
  3646         </ifNull>
  3647                                            
  3648        </mapping>
  3649                                           
  3650        <mapping>
  3651                                                    
  3652         <property 
  3653          optional=" true"
  3654         >
  3655          orderProvi derName
  3656         </property >
  3657                                                    
  3658         <xpath>
  3659          cda:td/cda :content[@ ID='mndPro vider']
  3660         </xpath>
  3661                                                    
  3662         <ifNotNull >
  3663                                                              
  3664          <action 
  3665           action="se tAttribute
  3666           attribute= "ID" 
  3667           indexed="t rue"
  3668          >
  3669           mndProvide r
  3670          </action>
  3671                                                              
  3672          <action 
  3673           action="se tValue"
  3674          />
  3675                                                     
  3676         </ifNotNul l>
  3677                                                    
  3678         <ifNull>
  3679                                                              
  3680          <action 
  3681           action="se tAttribute
  3682           attribute= "ID" 
  3683           indexed="t rue"
  3684          >
  3685           mndProvide r
  3686          </action>
  3687                                                     
  3688         </ifNull>
  3689                                            
  3690        </mapping>
  3691                                           
  3692        <mapping>
  3693                                                    
  3694         <property 
  3695          optional=" true"
  3696         >
  3697          prescriptI d
  3698         </property >
  3699                                                    
  3700         <xpath>
  3701          cda:td/cda :content[@ ID='mndPre scription' ]
  3702         </xpath>
  3703                                                    
  3704         <ifNotNull >
  3705                                                              
  3706          <action 
  3707           action="se tAttribute
  3708           attribute= "ID" 
  3709           indexed="t rue"
  3710          >
  3711           mndPrescri ption
  3712          </action>
  3713                                                              
  3714          <action 
  3715           action="se tValue"
  3716          />
  3717                                                     
  3718         </ifNotNul l>
  3719                                                    
  3720         <ifNull>
  3721                                                              
  3722          <action 
  3723           action="se tAttribute
  3724           attribute= "ID" 
  3725           indexed="t rue"
  3726          >
  3727           mndPrescri ption
  3728          </action>
  3729                                                     
  3730         </ifNull>
  3731                                            
  3732        </mapping>
  3733                                           
  3734        <mapping>
  3735                                                    
  3736         <property 
  3737          optional=" true"
  3738         >
  3739          dispenseTi me
  3740         </property >
  3741                                                    
  3742         <xpath>
  3743          cda:td/cda :content[@ ID='mndDis penseDate' ]
  3744         </xpath>
  3745                                                    
  3746         <ifNotNull >
  3747                                                              
  3748          <action 
  3749           action="se tAttribute
  3750           attribute= "ID" 
  3751           indexed="t rue"
  3752          >
  3753           mndDispens eDate
  3754          </action>
  3755                                                              
  3756          <action 
  3757           action="se tValue"
  3758          />
  3759                                                     
  3760         </ifNotNul l>
  3761                                                    
  3762         <ifNull>
  3763                                                              
  3764          <action 
  3765           action="se tAttribute
  3766           attribute= "ID" 
  3767           indexed="t rue"
  3768          >
  3769           mndDispens eDate
  3770          </action>
  3771                                                     
  3772         </ifNull>
  3773                                            
  3774        </mapping>
  3775                                           
  3776        <mapping>
  3777                                                    
  3778         <property 
  3779          optional=" true"
  3780         >
  3781          sigFreeTex t
  3782         </property >
  3783                                                    
  3784         <xpath>
  3785          cda:td/cda :content[@ ID='mndSig ']
  3786         </xpath>
  3787                                                    
  3788         <ifNotNull >
  3789                                                              
  3790          <action 
  3791           action="se tAttribute
  3792           attribute= "ID" 
  3793           indexed="t rue"
  3794          >
  3795           mndSig
  3796          </action>
  3797                                                              
  3798          <action 
  3799           action="se tValue"
  3800          />
  3801                                                     
  3802         </ifNotNul l>
  3803                                                    
  3804         <ifNull>
  3805                                                              
  3806          <action 
  3807           action="se tAttribute
  3808           attribute= "ID" 
  3809           indexed="t rue"
  3810          >
  3811           mndSig
  3812          </action>
  3813                                                     
  3814         </ifNull>
  3815                                            
  3816        </mapping>
  3817                                           
  3818        <mapping>
  3819                                                    
  3820         <property 
  3821          optional=" true"
  3822         >
  3823          facilityNa me
  3824         </property >
  3825                                                    
  3826         <xpath>
  3827          cda:td/cda :content[@ ID='mndSou rce']
  3828         </xpath>
  3829                                                    
  3830         <ifNotNull >
  3831                                                              
  3832          <action 
  3833           action="se tAttribute
  3834           attribute= "ID" 
  3835           indexed="t rue"
  3836          >
  3837           mndSource
  3838          </action>
  3839                                                              
  3840          <action 
  3841           action="se tValue"
  3842          />
  3843                                                     
  3844         </ifNotNul l>
  3845                                                    
  3846         <ifNull>
  3847                                                              
  3848          <action 
  3849           action="se tAttribute
  3850           attribute= "ID" 
  3851           indexed="t rue"
  3852          >
  3853           mndSource
  3854          </action>
  3855                                                     
  3856         </ifNull>
  3857                                            
  3858        </mapping>
  3859                                  
  3860       </mappings >
  3861                        
  3862      </mapping>
  3863                       
  3864      <!-- MEDIC ATIONS SEC TION -->
  3865                       
  3866      <mapping>
  3867                                 
  3868       <property 
  3869        collection ="true" 
  3870        merge="tru e" 
  3871        optional=" true"
  3872       >
  3873        medication s
  3874       </property >
  3875                                 
  3876       <xpath>
  3877        /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 . IP         ']
  3878       </xpath>
  3879                                 
  3880       <ifNotNull >
  3881                                           
  3882        <action 
  3883         action="ev aluateMapp ings" 
  3884         relative=" cda:sectio n/cda:entr y"
  3885        />
  3886                                  
  3887       </ifNotNul l>
  3888                                 
  3889       <ifNull>
  3890                                           
  3891        <action 
  3892         action="re move"
  3893        />
  3894                                  
  3895       </ifNull>
  3896                                 
  3897       <mappings>
  3898                                           
  3899        <!-- 8.01  FREE SIG T EXT refere nce, Optio nal -->
  3900                                           
  3901        <mapping>
  3902                                                    
  3903         <property 
  3904          optional=" true"
  3905         >
  3906          sigFreeTex t
  3907         </property >
  3908                                                    
  3909         <xpath>
  3910          cda:substa nceAdminis tration/cd a:text/cda :reference
  3911         </xpath>
  3912                                                    
  3913         <ifNotNull >
  3914                                                              
  3915          <action 
  3916           action="se tAttribute
  3917           attribute= "value" 
  3918           indexed="t rue"
  3919          >
  3920           #mndSig
  3921          </action>
  3922                                                     
  3923         </ifNotNul l>
  3924                                            
  3925        </mapping>
  3926                                           
  3927        <!-- CCD M edication  Act ID rem oved b/c a lways UNK  in templat e -->
  3928                                           
  3929        <!-- 8.02  INDICATE M EDICATION  STOPPPED,  Optional - ->
  3930                                           
  3931        <!-- 8.03  ADMINISTRA TION TIMIN G, Optiona l -->
  3932                                           
  3933        <!-- 8.04  FREQUENCY,  Optional  -->
  3934                                           
  3935        <!-- 8.05  INTERVAL,  Optional - ->
  3936                                           
  3937        <!-- 8.06  DURATION,  Optional - ->
  3938                                           
  3939        <!-- 8.07  ROUTE, Opt ional -->
  3940                                           
  3941        <!-- 8.08  DOSE, Opti onal -->
  3942                                           
  3943        <!-- 8.13  CODED PROD UCT NAME,  Optional-R 2, UNII, R XNorm, NDF -RT, NDC,  Removed b/ c removed  in templat e -->
  3944                                           
  3945        <!-- 8.15  FREE TEXT  PRODUCT NA ME (RDV 2^ Drug Name) , REQUIRED  -->
  3946                                           
  3947        <mapping>
  3948                                                    
  3949         <property 
  3950          optional=" true"
  3951         >
  3952          prodNameTe xt
  3953         </property >
  3954                                                    
  3955         <xpath>
  3956          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
  3957         </xpath>
  3958                                                    
  3959         <ifNotNull >
  3960                                                              
  3961          <action 
  3962           action="se tAttribute
  3963           attribute= "value" 
  3964           indexed="t rue"
  3965          >
  3966           #mndMedica tion
  3967          </action>
  3968                                                     
  3969         </ifNotNul l>
  3970                                                    
  3971         <ifNull>
  3972                                                              
  3973          <action 
  3974           action="se tAttribute
  3975           attribute= "value" 
  3976           indexed="t rue"
  3977          >
  3978           #mndMedica tion
  3979          </action>
  3980                                                     
  3981         </ifNull>
  3982                                            
  3983        </mapping>
  3984                                           
  3985        <!-- 8.14  CODED BRAN D NAME, Op tional-R2,  UNII, RXN orm, NDF-R T, NDC Rem oved b/c r emoved in  template - ->
  3986                                           
  3987        <!-- 8.16  FREE TEXT  BRAND NAME , Optional  R2 Remove d b/c remo ved in tem plate -->
  3988                                           
  3989        <!-- INFOR MATION SOU RCE FOR ME DICATIONS,  Optional  -->
  3990                                           
  3991        <mapping>
  3992                                                    
  3993         <!-- INFOR MATION SOU RCE FACILI TY OID (VA  OID + TRE ATING FACI LITY NBR)  -->
  3994                                                    
  3995         <property 
  3996          optional=" true"
  3997         >
  3998          facilityNu mber
  3999         </property >
  4000                                                    
  4001         <xpath>
  4002          cda:substa nceAdminis tration/cd a:author/c da:assigne dAuthor/cd a:represen tedOrganiz ation/cda: id
  4003         </xpath>
  4004                                                    
  4005         <ifNotNull >
  4006                                                              
  4007          <action 
  4008           action="se tAttribute
  4009           attribute= "extension "
  4010          />
  4011                                                     
  4012         </ifNotNul l>
  4013                                            
  4014        </mapping>
  4015                                           
  4016        <mapping>
  4017                                                    
  4018         <!-- INFOR MATION SOU RCE FACILI TY NAME -- >
  4019                                                    
  4020         <property 
  4021          optional=" true"
  4022         >
  4023          facilityNa me
  4024         </property >
  4025                                                    
  4026         <xpath>
  4027          cda:substa nceAdminis tration/cd a:author/c da:assigne dAuthor/cd a:represen tedOrganiz ation/cda: name
  4028         </xpath>
  4029                                                    
  4030         <ifNotNull >
  4031                                                              
  4032          <action 
  4033           action="se tValue"
  4034          />
  4035                                                     
  4036         </ifNotNul l>
  4037                                            
  4038        </mapping>
  4039                                           
  4040        <!-- 8.19  TYPE OF ME DICATION - ->
  4041                                           
  4042        <mapping>
  4043                                                    
  4044         <property>
  4045          typeCode
  4046         </property >
  4047                                                    
  4048         <xpath>
  4049          cda:substa nceAdminis tration/cd a:entryRel ationship[ @typeCode= 'SUBJ']/cd a:observat ion/cda:co de
  4050         </xpath>
  4051                                                    
  4052         <ifNotNull >
  4053                                                              
  4054          <action 
  4055           action="se tAttribute
  4056           attribute= "code"
  4057          />
  4058                                                     
  4059         </ifNotNul l>
  4060                                            
  4061        </mapping>
  4062                                           
  4063        <mapping>
  4064                                                    
  4065         <property>
  4066          typeDispla y
  4067         </property >
  4068                                                    
  4069         <xpath>
  4070          cda:substa nceAdminis tration/cd a:entryRel ationship[ @typeCode= 'SUBJ']/cd a:observat ion/cda:co de
  4071         </xpath>
  4072                                                    
  4073         <ifNotNull >
  4074                                                              
  4075          <action 
  4076           action="se tAttribute
  4077           attribute= "displayNa me"
  4078          />
  4079                                                     
  4080         </ifNotNul l>
  4081                                            
  4082        </mapping>
  4083                                           
  4084        <mapping>
  4085                                                    
  4086         <property>
  4087          type
  4088         </property >
  4089                                                    
  4090         <xpath>
  4091          cda:substa nceAdminis tration/cd a:entryRel ationship[ @typeCode= 'SUBJ']/cd a:observat ion/cda:co de/cda:ori ginalText
  4092         </xpath>
  4093                                                    
  4094         <ifNotNull >
  4095                                                              
  4096          <action 
  4097           action="se tValue"
  4098          />
  4099                                                     
  4100         </ifNotNul l>
  4101                                            
  4102        </mapping>
  4103                                           
  4104        <!-- 8.20  STATUS OF  MEDICATION , Optional -R2, SNOME D CT -->
  4105                                           
  4106        <mapping>
  4107                                                    
  4108         <property 
  4109          optional=" true"
  4110         >
  4111          statusCode
  4112         </property >
  4113                                                    
  4114         <xpath>
  4115          cda:substa nceAdminis tration/cd a:entryRel ationship[ @typeCode= 'REFR']/cd a:observat ion[cda:te mplateId/@ root='2.16 .840.1.113 883. IP          ']/cda:val ue
  4116         </xpath>
  4117                                                    
  4118         <ifNotNull >
  4119                                                              
  4120          <action 
  4121           action="se tAttribute
  4122           attribute= "code"
  4123          />
  4124                                                              
  4125          <action 
  4126           action="se tAttribute
  4127           attribute= "displayNa me" 
  4128           property=" statusDisp lay"
  4129          />
  4130                                                              
  4131          <action 
  4132           action="se tAttribute
  4133           attribute= "codeSyste m"
  4134          >
  4135           2.16.840.1 .113883.6. 96
  4136          </action>
  4137                                                              
  4138          <action 
  4139           action="se tAttribute
  4140           attribute= "codeSyste mName"
  4141          >
  4142           SNOMED CT
  4143          </action>
  4144                                                              
  4145          <action 
  4146           action="se tValue" 
  4147           relative=" cda:origin alText" 
  4148           property=" vaStatus"
  4149          />
  4150                                                     
  4151         </ifNotNul l>
  4152                                                    
  4153         <ifNull>
  4154                                                              
  4155          <action 
  4156           action="se tAttribute
  4157           attribute= "nullFlavo r"
  4158          >
  4159           UNK
  4160          </action>
  4161                                                              
  4162          <action 
  4163           action="se tValue" 
  4164           relative=" cda:origin alText" 
  4165           property=" vaStatus"
  4166          />
  4167                                                     
  4168         </ifNull>
  4169                                            
  4170        </mapping>
  4171                                           
  4172        <!-- 8.22  PATIENT IN STRUCTIONS , Optional , Removed  b/c remove d in templ ate -->
  4173                                           
  4174        <!-- 8.26  ORDER NUMB ER -->
  4175                                           
  4176        <mapping>
  4177                                                    
  4178         <property>
  4179          orderNbr
  4180         </property >
  4181                                                    
  4182         <xpath>
  4183          cda:substa nceAdminis tration/cd a:entryRel ationship[ @typeCode= 'REFR']/cd a:supply[@ classCode= 'SPLY' and  @moodCode ='INT']/cd a:id
  4184         </xpath>
  4185                                                    
  4186         <ifNotNull >
  4187                                                              
  4188          <action 
  4189           action="se tAttribute
  4190           attribute= "extension "
  4191          />
  4192                                                     
  4193         </ifNotNul l>
  4194                                            
  4195        </mapping>
  4196                                           
  4197        <!-- 8.27  FILLS -->
  4198                                           
  4199        <mapping>
  4200                                                    
  4201         <property 
  4202          optional=" true"
  4203         >
  4204          fills
  4205         </property >
  4206                                                    
  4207         <xpath>
  4208          cda:substa nceAdminis tration/cd a:entryRel ationship[ @typeCode= 'REFR']/cd a:supply[@ classCode= 'SPLY' and  @moodCode ='INT']/cd a:repeatNu mber
  4209         </xpath>
  4210                                                    
  4211         <ifNotNull >
  4212                                                              
  4213          <action 
  4214           action="se tAttribute
  4215           attribute= "value"
  4216          />
  4217                                                     
  4218         </ifNotNul l>
  4219                                                    
  4220         <ifNull>
  4221                                                              
  4222          <action 
  4223           action="re moveAttrib utes"
  4224          />
  4225                                                              
  4226          <action 
  4227           action="se tAttribute
  4228           attribute= "nullFlavo r"
  4229          >
  4230           UNK
  4231          </action>
  4232                                                     
  4233         </ifNull>
  4234                                            
  4235        </mapping>
  4236                                           
  4237        <!-- 8.29  ORDER EXPI RATION DAT E/TIME, Op tional-R2  -->
  4238                                           
  4239        <mapping>
  4240                                                    
  4241         <property 
  4242          optional=" true"
  4243         >
  4244          expireDate
  4245         </property >
  4246                                                    
  4247         <xpath>
  4248          cda:substa nceAdminis tration/cd a:entryRel ationship[ @typeCode= "REFR"]/cd a:supply[@ classCode= 'SPLY' and  @moodCode ='INT']/cd a:effectiv eTime
  4249         </xpath>
  4250                                                    
  4251         <ifNotNull >
  4252                                                              
  4253          <action 
  4254           action="se tAttribute
  4255           attribute= "value"
  4256          />
  4257                                                     
  4258         </ifNotNul l>
  4259                                                    
  4260         <ifNull>
  4261                                                              
  4262          <action 
  4263           action="re moveAttrib utes"
  4264          />
  4265                                                              
  4266          <action 
  4267           action="se tAttribute
  4268           attribute= "nullFlavo r"
  4269          >
  4270           UNK
  4271          </action>
  4272                                                     
  4273         </ifNull>
  4274                                            
  4275        </mapping>
  4276                                           
  4277        <!-- 8.28  QUANTITY O RDERED, Op tional-R2,  Quantity  only, Unit  not yet a vailable v ia VA Vist A RPCs -->
  4278                                           
  4279        <!-- 8.28  OMIT - QUA NTITY ORDE RED until  UOM availa ble in Vis tA -->
  4280                                           
  4281        <!-- mappi ng>
  4282                                                    <property  optional=" true">quan tityValue< /property>
  4283                                                    <xpath>cda :substance Administra tion/cda:e ntryRelati onship[@ty peCode='RE FR']/cda:s upply[@cla ssCode='SP LY' and @m oodCode='I NT']/cda:q uantity</x path>
  4284                                                    <ifNotNull >
  4285                                                            <a ction acti on="setAtt ribute" at tribute="v alue"/>
  4286                                                    </ifNotNul l>
  4287                                                    <ifNull>
  4288                                                            <a ction acti on="remove "/>
  4289                                                    </ifNull>
  4290                                           </mappin g -->
  4291                                           
  4292        <!-- 8.30  ORDER DATE  -->
  4293                                           
  4294        <mapping>
  4295                                                    
  4296         <property>
  4297          orderDate
  4298         </property >
  4299                                                    
  4300         <xpath>
  4301          cda:substa nceAdminis tration/cd a:entryRel ationship[ @typeCode= 'REFR']/cd a:supply[@ classCode= 'SPLY' and  @moodCode ='INT']/cd a:author/c da:time
  4302         </xpath>
  4303                                                    
  4304         <ifNotNull >
  4305                                                              
  4306          <action 
  4307           action="se tAttribute
  4308           attribute= "value"
  4309          />
  4310                                                     
  4311         </ifNotNul l>
  4312                                            
  4313        </mapping>
  4314                                           
  4315        <!-- 8.31  ORDERING P ROVIDER, O ptional -- >
  4316                                           
  4317        <mapping>
  4318                                                    
  4319         <property 
  4320          optional=" true"
  4321         >
  4322          orderProvi derName
  4323         </property >
  4324                                                    
  4325         <xpath>
  4326          cda:substa nceAdminis tration/cd a:entryRel ationship/ cda:supply /cda:autho r/cda:assi gnedAuthor /cda:assig nedPerson/ cda:name
  4327         </xpath>
  4328                                                    
  4329         <ifNotNull >
  4330                                                              
  4331          <action 
  4332           action="se tValue"
  4333          />
  4334                                                     
  4335         </ifNotNul l>
  4336                                            
  4337        </mapping>
  4338                                           
  4339        <mapping>
  4340                                                    
  4341         <property 
  4342          optional=" true"
  4343         >
  4344          prescriptI d
  4345         </property >
  4346                                                    
  4347         <xpath>
  4348          cda:substa nceAdminis tration/cd a:entryRel ationship[ cda:supply /@classCod e='SPLY' a nd cda:sup ply/@moodC ode='EVN']
  4349         </xpath>
  4350                                                    
  4351         <ifNotNull >
  4352                                                              
  4353          <!-- 8.34  PRESCRIPTI ON NUMBER,  Optional- R2 -->
  4354                                                              
  4355          <action 
  4356           action="se tAttribute
  4357           attribute= "extension
  4358           relative=" cda:supply [@classCod e='SPLY' a nd @moodCo de='EVN']/ cda:id" 
  4359          />
  4360                                                              
  4361          <!-- 8.37  DISPENSE D ATE, Optio nal-R2 -->
  4362                                                              
  4363          <action 
  4364           action="se tAttribute
  4365           relative=" cda:supply [@classCod e='SPLY' a nd @moodCo de='EVN']/ cda:effect iveTime" 
  4366           attribute= "value" 
  4367           property=" dispenseTi me"
  4368          />
  4369                                                     
  4370         </ifNotNul l>
  4371                                                    
  4372         <ifNull>
  4373                                                              
  4374          <action 
  4375           action="re move"
  4376          >
  4377          </action>
  4378                                                     
  4379         </ifNull>
  4380                                            
  4381        </mapping>
  4382                                  
  4383       </mappings >
  4384                        
  4385      </mapping>
  4386                       
  4387      <!-- LABS  NARRITIVE  -->
  4388                       
  4389      <mapping>
  4390                                 
  4391       <property 
  4392        collection ="true" 
  4393        optional=" true"
  4394       >
  4395        labs
  4396       </property >
  4397                                 
  4398       <xpath>
  4399        /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 . IP          ']
  4400       </xpath>
  4401                                 
  4402       <ifNotNull >
  4403                                           
  4404        <action 
  4405         action="ev aluateMapp ings" 
  4406         relative=" cda:sectio n/cda:text /cda:table [@ID='labN arritive'] /cda:tbody /cda:tr"
  4407        />
  4408                                  
  4409       </ifNotNul l>
  4410                                 
  4411       <mappings>
  4412                                           
  4413        <mapping>
  4414                                                    
  4415         <property>
  4416          collected
  4417         </property >
  4418                                                    
  4419         <xpath>
  4420          cda:td[1]/ cda:conten t
  4421         </xpath>
  4422                                                    
  4423         <ifNotNull >
  4424                                                              
  4425          <action 
  4426           action="se tAttribute
  4427           attribute= "ID" 
  4428           indexed="t rue"
  4429          >
  4430           lndDateTim e
  4431          </action>
  4432                                                              
  4433          <action 
  4434           action="se tAttribute
  4435           relative=" ../../cda: td[7]/cda: content" 
  4436           attribute= "ID" 
  4437           indexed="t rue"
  4438          >
  4439           lndStatus
  4440          </action>
  4441                                                              
  4442          <action 
  4443           action="se tValue"
  4444          />
  4445                                                     
  4446         </ifNotNul l>
  4447                                            
  4448        </mapping>
  4449                                           
  4450        <mapping>
  4451                                                    
  4452         <property>
  4453          order.name
  4454         </property >
  4455                                                    
  4456         <xpath>
  4457          cda:td[2]/ cda:conten t
  4458         </xpath>
  4459                                                    
  4460         <ifNotNull >
  4461                                                              
  4462          <action 
  4463           action="se tAttribute
  4464           attribute= "ID" 
  4465           indexed="t rue"
  4466          >
  4467           lndResultT ype
  4468          </action>
  4469                                                              
  4470          <action 
  4471           action="se tValue"
  4472          />
  4473                                                     
  4474         </ifNotNul l>
  4475                                                    
  4476         <ifNull>
  4477                                                              
  4478          <action 
  4479           action="se tAttribute
  4480           attribute= "ID" 
  4481           indexed="t rue"
  4482          >
  4483           lndResultT ype
  4484          </action>
  4485                                                     
  4486         </ifNull>
  4487                                            
  4488        </mapping>
  4489                                           
  4490        <mapping>
  4491                                                    
  4492         <property 
  4493          optional=" true"
  4494         >
  4495          facility
  4496         </property >
  4497                                                    
  4498         <xpath>
  4499          cda:td[3]/ cda:conten t
  4500         </xpath>
  4501                                                    
  4502         <ifNotNull >
  4503                                                              
  4504          <action 
  4505           action="se tAttribute
  4506           attribute= "ID" 
  4507           indexed="t rue"
  4508          >
  4509           lndSource
  4510          </action>
  4511                                                              
  4512          <action 
  4513           action="se tValue" 
  4514           property=" facility.n ame" 
  4515          />
  4516                                                     
  4517         </ifNotNul l>
  4518                                                    
  4519         <ifNull>
  4520                                                              
  4521          <action 
  4522           action="se tAttribute
  4523           attribute= "ID" 
  4524           indexed="t rue"
  4525          >
  4526           lndSource
  4527          </action>
  4528                                                     
  4529         </ifNull>
  4530                                            
  4531        </mapping>
  4532                                           
  4533        <mapping>
  4534                                                    
  4535         <property 
  4536          optional=" true"
  4537         >
  4538          comment
  4539         </property >
  4540                                                    
  4541         <xpath>
  4542          cda:td[8]/ cda:conten t
  4543         </xpath>
  4544                                                    
  4545         <ifNotNull >
  4546                                                              
  4547          <action 
  4548           action="se tAttribute
  4549           attribute= "ID" 
  4550           indexed="t rue"
  4551          >
  4552           lndComment
  4553          </action>
  4554                                                              
  4555          <action 
  4556           action="se tValue"
  4557          />
  4558                                                     
  4559         </ifNotNul l>
  4560                                                    
  4561         <ifNull>
  4562                                                              
  4563          <action 
  4564           action="se tAttribute
  4565           attribute= "ID" 
  4566           indexed="t rue"
  4567          >
  4568           lndComment
  4569          </action>
  4570                                                     
  4571         </ifNull>
  4572                                            
  4573        </mapping>
  4574                                           
  4575        <mapping>
  4576                                                    
  4577         <property>
  4578          values
  4579         </property >
  4580                                                    
  4581         <xpath 
  4582          copy="true "
  4583         >
  4584          .
  4585         </xpath>
  4586                                                    
  4587         <ifNotNull >
  4588                                                              
  4589          <action 
  4590           action="re moveAttrib utes" 
  4591           relative=" cda:td[1]/ cda:conten t" 
  4592          />
  4593                                                              
  4594          <action 
  4595           action="re moveAttrib utes" 
  4596           relative=" cda:td[3]/ cda:conten t" 
  4597          />
  4598                                                              
  4599          <action 
  4600           action="re moveAttrib utes" 
  4601           relative=" cda:td[7]/ cda:conten t" 
  4602          />
  4603                                                              
  4604          <action 
  4605           action="re moveAttrib utes" 
  4606           relative=" cda:td[8]/ cda:conten t" 
  4607          />
  4608                                                              
  4609          <action 
  4610           action="se tAttribute
  4611           relative=" cda:td[4]/ cda:conten t" 
  4612           attribute= "ID" 
  4613           indexed="t rue"
  4614          >
  4615           lndResultU nit
  4616          </action>
  4617                                                              
  4618          <action 
  4619           action="se tAttribute
  4620           relative=" cda:td[5]/ cda:conten t" 
  4621           attribute= "ID" 
  4622           indexed="t rue"
  4623          >
  4624           lndInterpr etation
  4625          </action>
  4626                                                              
  4627          <action 
  4628           action="se tAttribute
  4629           relative=" cda:td[6]/ cda:conten t" 
  4630           attribute= "ID" 
  4631           indexed="t rue"
  4632          >
  4633           lndReferen ceRange
  4634          </action>
  4635                                                              
  4636          <action 
  4637           action="ev aluateMapp ings"
  4638          />
  4639                                                     
  4640         </ifNotNul l>
  4641                                                    
  4642         <mappings>
  4643                                                              
  4644          <mapping>
  4645                                                                        
  4646           <property 
  4647            optional=" true"
  4648           >
  4649            loincDispl ay
  4650           </property >
  4651                                                                        
  4652           <xpath>
  4653            cda:td[2]/ cda:conten t
  4654           </xpath>
  4655                                                                        
  4656           <ifNotNull >
  4657                                                                                  
  4658            <action 
  4659             action="ap pendAttrib ute" 
  4660             attribute= "ID" 
  4661             indexed="t rue"
  4662            >
  4663             -
  4664            </action>
  4665                                                                                  
  4666            <action 
  4667             action="se tValue"
  4668            />
  4669                                                                         
  4670           </ifNotNul l>
  4671                                                                        
  4672           <ifNull>
  4673                                                                                  
  4674            <action 
  4675             action="ap pendAttrib ute" 
  4676             attribute= "ID" 
  4677             indexed="t rue"
  4678            >
  4679             -
  4680            </action>
  4681                                                                                  
  4682            <action 
  4683             action="se tValue" 
  4684             property=" test"
  4685            />
  4686                                                                         
  4687           </ifNull>
  4688                                                               
  4689          </mapping>
  4690                                                              
  4691          <mapping>
  4692                                                                        
  4693           <property>
  4694            result
  4695           </property >
  4696                                                                        
  4697           <xpath>
  4698            cda:td[4]/ cda:conten t
  4699           </xpath>
  4700                                                                        
  4701           <ifNotNull >
  4702                                                                                  
  4703            <action 
  4704             action="ap pendAttrib ute" 
  4705             attribute= "ID" 
  4706             indexed="t rue"
  4707            >
  4708             -
  4709            </action>
  4710                                                                                  
  4711            <action 
  4712             action="se tValue"
  4713            />
  4714                                                                                  
  4715            <action 
  4716             action="ap pendValue"
  4717            >
  4718              
  4719            </action>
  4720                                                                                  
  4721            <action 
  4722             action="ap pendValue"  
  4723             property=" units"
  4724            />
  4725                                                                         
  4726           </ifNotNul l>
  4727                                                               
  4728          </mapping>
  4729                                                              
  4730          <mapping>
  4731                                                                        
  4732           <property 
  4733            optional=" true"
  4734           >
  4735            interpreta tion
  4736           </property >
  4737                                                                        
  4738           <xpath>
  4739            cda:td[5]/ cda:conten t
  4740           </xpath>
  4741                                                                        
  4742           <ifNotNull >
  4743                                                                                  
  4744            <action 
  4745             action="ap pendAttrib ute" 
  4746             attribute= "ID" 
  4747             indexed="t rue"
  4748            >
  4749             -
  4750            </action>
  4751                                                                                  
  4752            <action 
  4753             action="se tValue"
  4754            />
  4755                                                                         
  4756           </ifNotNul l>
  4757                                                                        
  4758           <ifNull>
  4759                                                                                  
  4760            <action 
  4761             action="ap pendAttrib ute" 
  4762             attribute= "ID" 
  4763             indexed="t rue"
  4764            >
  4765             -
  4766            </action>
  4767                                                                         
  4768           </ifNull>
  4769                                                               
  4770          </mapping>
  4771                                                              
  4772          <mapping>
  4773                                                                        
  4774           <property 
  4775            optional=" true"
  4776           >
  4777            range
  4778           </property >
  4779                                                                        
  4780           <xpath>
  4781            cda:td[6]/ cda:conten t
  4782           </xpath>
  4783                                                                        
  4784           <ifNotNull >
  4785                                                                                  
  4786            <action 
  4787             action="ap pendAttrib ute" 
  4788             attribute= "ID" 
  4789             indexed="t rue"
  4790            >
  4791             -
  4792            </action>
  4793                                                                                  
  4794            <action 
  4795             action="se tValue"
  4796            />
  4797                                                                         
  4798           </ifNotNul l>
  4799                                                                        
  4800           <ifNull>
  4801                                                                                  
  4802            <action 
  4803             action="ap pendAttrib ute" 
  4804             attribute= "ID" 
  4805             indexed="t rue"
  4806            >
  4807             -
  4808            </action>
  4809                                                                         
  4810           </ifNull>
  4811                                                               
  4812          </mapping>
  4813                                                     
  4814         </mappings >
  4815                                            
  4816        </mapping>
  4817                                  
  4818       </mappings >
  4819                        
  4820      </mapping>
  4821                       
  4822      <!-- LABS  SECTION -- >
  4823                       
  4824      <mapping>
  4825                                 
  4826       <property 
  4827        collection ="true" 
  4828        optional=" true"
  4829       >
  4830        labs
  4831       </property >
  4832                                 
  4833       <xpath>
  4834        /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 . IP          ']
  4835       </xpath>
  4836                                 
  4837       <ifNotNull >
  4838                                           
  4839        <action 
  4840         action="ev aluateMapp ings" 
  4841         relative=" cda:sectio n/cda:entr y[@typeCod e='DRIV']"
  4842        />
  4843                                  
  4844       </ifNotNul l>
  4845                                 
  4846       <ifNull>
  4847                                           
  4848        <action 
  4849         action="re move"
  4850        />
  4851                                  
  4852       </ifNull>
  4853                                 
  4854       <mappings>
  4855                                           
  4856        <mapping>
  4857                                                    
  4858         <property 
  4859          optional=" true"
  4860         >
  4861          comment
  4862         </property >
  4863                                                    
  4864         <xpath>
  4865          cda:organi zer/cda:co mponent/cd a:observat ion/cda:en tryRelatio nship
  4866         </xpath>
  4867                                                    
  4868         <ifNotNull >
  4869                                                              
  4870          <action 
  4871           action="se tAttribute
  4872           relative=" cda:act/cd a:text/cda :reference
  4873           attribute= "value" 
  4874           indexed="t rue"
  4875          >
  4876           #lndCommen t
  4877          </action>
  4878                                                     
  4879         </ifNotNul l>
  4880                                                    
  4881         <ifNull>
  4882                                                              
  4883          <action 
  4884           action="re move"
  4885          />
  4886                                                     
  4887         </ifNull>
  4888                                            
  4889        </mapping>
  4890                                           
  4891        <mapping>
  4892                                                    
  4893         <property>
  4894          id
  4895         </property >
  4896                                                    
  4897         <xpath>
  4898          cda:organi zer/cda:id
  4899         </xpath>
  4900                                                    
  4901         <ifNotNull >
  4902                                                              
  4903          <action 
  4904           action="se tAttribute
  4905           attribute= "extension
  4906           property=" facility.c ode"
  4907          />
  4908                                                              
  4909          <action 
  4910           action="ap pendAttrib ute" 
  4911           attribute= "extension "
  4912          >
  4913           ;
  4914          </action>
  4915                                                              
  4916          <action 
  4917           action="ap pendAttrib ute" 
  4918           attribute= "extension
  4919           property=" id"
  4920          />
  4921                                                     
  4922         </ifNotNul l>
  4923                                            
  4924        </mapping>
  4925                                           
  4926        <mapping>
  4927                                                    
  4928         <property>
  4929          order.name
  4930         </property >
  4931                                                    
  4932         <xpath>
  4933          cda:organi zer/cda:co de/cda:ori ginalText
  4934         </xpath>
  4935                                                    
  4936         <ifNotNull >
  4937                                                              
  4938          <action 
  4939           action="se tValue"
  4940          />
  4941                                                     
  4942         </ifNotNul l>
  4943                                            
  4944        </mapping>
  4945                                           
  4946        <mapping>
  4947                                                    
  4948         <property>
  4949          collected
  4950         </property >
  4951                                                    
  4952         <xpath>
  4953          cda:organi zer/cda:ef fectiveTim e
  4954         </xpath>
  4955                                                    
  4956         <ifNotNull >
  4957                                                              
  4958          <action 
  4959           action="se tAttribute
  4960           attribute= "value"
  4961          />
  4962                                                              
  4963          <action 
  4964           action="se tAttribute
  4965           relative=" ../cda:com ponent/cda :observati on/cda:eff ectiveTime
  4966           attribute= "value"
  4967          />
  4968                                                     
  4969         </ifNotNul l>
  4970                                            
  4971        </mapping>
  4972                                           
  4973        <mapping>
  4974                                                    
  4975         <property 
  4976          optional=" true"
  4977         >
  4978          facility
  4979         </property >
  4980                                                    
  4981         <xpath>
  4982          cda:organi zer/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n
  4983         </xpath>
  4984                                                    
  4985         <ifNotNull >
  4986                                                              
  4987          <action 
  4988           action="se tAttribute
  4989           relative=" cda:id" 
  4990           attribute= "extension
  4991           property=" facility.c ode"
  4992          />
  4993                                                              
  4994          <action 
  4995           action="se tValue" 
  4996           relative=" cda:name" 
  4997           property=" facility.n ame"
  4998          />
  4999                                                     
  5000         </ifNotNul l>
  5001                                            
  5002        </mapping>
  5003                                           
  5004        <mapping>
  5005                                                    
  5006         <property>
  5007          values
  5008         </property >
  5009                                                    
  5010         <xpath>
  5011          cda:organi zer/cda:co mponent
  5012         </xpath>
  5013                                                    
  5014         <ifNotNull >
  5015                                                              
  5016          <action 
  5017           action="ev aluateMapp ings"
  5018          />
  5019                                                     
  5020         </ifNotNul l>
  5021                                                    
  5022         <mappings>
  5023                                                              
  5024          <mapping>
  5025                                                                        
  5026           <property>
  5027            id
  5028           </property >
  5029                                                                        
  5030           <xpath>
  5031            cda:observ ation/cda: id
  5032           </xpath>
  5033                                                                        
  5034           <ifNotNull >
  5035                                                                                  
  5036            <action 
  5037             action="se tAttribute
  5038             attribute= "extension "
  5039            />
  5040                                                                         
  5041           </ifNotNul l>
  5042                                                               
  5043          </mapping>
  5044                                                              
  5045          <mapping>
  5046                                                                        
  5047           <property 
  5048            optional=" true"
  5049           >
  5050            loinc
  5051           </property >
  5052                                                                        
  5053           <xpath>
  5054            cda:observ ation/cda: code
  5055           </xpath>
  5056                                                                        
  5057           <ifNotNull >
  5058                                                                                  
  5059            <action 
  5060             action="se tAttribute
  5061             attribute= "code"
  5062            />
  5063                                                                                  
  5064            <action 
  5065             action="se tAttribute
  5066             attribute= "displayNa me" 
  5067             property=" loincDispl ay"
  5068            />
  5069                                                                                  
  5070            <action 
  5071             action="se tValue" 
  5072             relative=" cda:origin alText" 
  5073             property=" test"
  5074            />                                                                      
  5075                                                                         
  5076           </ifNotNul l>
  5077                                                                        
  5078           <ifNull>
  5079                                                                                  
  5080            <action 
  5081             action="se tAttribute
  5082             attribute= "code"
  5083            >
  5084             UNK
  5085            </action>
  5086                                                                                  
  5087            <action 
  5088             action="se tValue" 
  5089             relative=" cda:origin alText" 
  5090             property=" test"
  5091            />                                                                      
  5092                                                                         
  5093           </ifNull>
  5094                                                               
  5095          </mapping>
  5096                                                              
  5097          <mapping>
  5098                                                                        
  5099           <property>
  5100            result
  5101           </property >
  5102                                                                        
  5103           <xpath>
  5104            cda:observ ation/cda: value
  5105           </xpath>
  5106                                                                        
  5107           <ifNotNull >
  5108                                                                                  
  5109            <action 
  5110             action="se tValue"
  5111            />
  5112                                                                                  
  5113            <action 
  5114             action="ap pendValue"
  5115            >
  5116              
  5117            </action>
  5118                                                                                  
  5119            <action 
  5120             action="ap pendValue"  
  5121             property=" units"
  5122            />
  5123                                                                         
  5124           </ifNotNul l>
  5125                                                               
  5126          </mapping>
  5127                                                              
  5128          <mapping>
  5129                                                                        
  5130           <property 
  5131            optional=" true"
  5132           >
  5133            interpreta tion
  5134           </property >
  5135                                                                        
  5136           <xpath>
  5137            cda:observ ation/cda: interpreta tionCode
  5138           </xpath>
  5139                                                                        
  5140           <ifNotNull >
  5141                                                                                  
  5142            <action 
  5143             action="se tValue" 
  5144             relative=" cda:origin alText"
  5145            />
  5146                                                                         
  5147           </ifNotNul l>
  5148                                                               
  5149          </mapping>
  5150                                                              
  5151          <mapping>
  5152                                                                        
  5153           <property 
  5154            optional=" true"
  5155           >
  5156            range
  5157           </property >
  5158                                                                        
  5159           <xpath>
  5160            cda:observ ation/cda: referenceR ange/cda:o bservation Range/cda: text
  5161           </xpath>
  5162                                                                        
  5163           <ifNotNull >
  5164                                                                                  
  5165            <action 
  5166             action="se tValue"
  5167            />
  5168                                                                         
  5169           </ifNotNul l>
  5170                                                               
  5171          </mapping>
  5172                                                     
  5173         </mappings >
  5174                                            
  5175        </mapping>
  5176                                  
  5177       </mappings >
  5178                        
  5179      </mapping>
  5180                       
  5181      <!-- VITAL S NARRITIV E -->
  5182                       
  5183      <mapping>
  5184                                 
  5185       <property 
  5186        collection ="true" 
  5187        optional=" true"
  5188       >
  5189        vitals
  5190       </property >
  5191                                 
  5192       <xpath>
  5193        /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 . IP          ']
  5194       </xpath>
  5195                                 
  5196       <ifNotNull >
  5197                                           
  5198        <action 
  5199         action="ev aluateMapp ings" 
  5200         relative=" cda:sectio n/cda:text /cda:table [@ID='vita lNarritive ']/cda:tbo dy/cda:tr"
  5201        />
  5202                                  
  5203       </ifNotNul l>
  5204                                 
  5205       <mappings>
  5206                                           
  5207        <mapping>
  5208                                                    
  5209         <property>
  5210          takenTime
  5211         </property >
  5212                                                    
  5213         <xpath>
  5214          cda:td/cda :content[@ ID='vndDat e']
  5215         </xpath>
  5216                                                    
  5217         <ifNotNull >
  5218                                                              
  5219          <action 
  5220           action="se tAttribute
  5221           attribute= "ID" 
  5222           indexed="t rue"
  5223          >
  5224           vndDate
  5225          </action>
  5226                                                              
  5227          <action 
  5228           action="se tValue" 
  5229          />
  5230                                                     
  5231         </ifNotNul l>
  5232                                            
  5233        </mapping>
  5234                                           
  5235        <mapping>
  5236                                                    
  5237         <property>
  5238          facilityNa me
  5239         </property >
  5240                                                    
  5241         <xpath>
  5242          cda:td/cda :content[@ ID='vndSou rce']
  5243         </xpath>
  5244                                                    
  5245         <ifNotNull >
  5246                                                              
  5247          <action 
  5248           action="se tAttribute
  5249           attribute= "ID" 
  5250           indexed="t rue"
  5251          >
  5252           vndSource
  5253          </action>
  5254                                                              
  5255          <action 
  5256           action="se tValue" 
  5257          />
  5258                                                     
  5259         </ifNotNul l>
  5260                                            
  5261        </mapping>
  5262                                           
  5263        <mapping>
  5264                                                    
  5265         <property>
  5266          measuremen ts
  5267         </property >
  5268                                                    
  5269         <xpath>
  5270          cda:td/cda :list/cda: item[cda:c ontent/@ID ='vndMeasu rement']
  5271         </xpath>
  5272                                                    
  5273         <ifNotNull >
  5274                                                              
  5275          <action 
  5276           action="se tAttribute
  5277           relative=" cda:conten t" 
  5278           attribute= "ID" 
  5279           indexed="t rue"
  5280          >
  5281           vndMeasure ment
  5282          </action>
  5283                                                              
  5284          <action 
  5285           action="ev aluateMapp ings" 
  5286          />
  5287                                                     
  5288         </ifNotNul l>
  5289                                                    
  5290         <mappings>
  5291                                                              
  5292          <mapping>
  5293                                                                        
  5294           <property>
  5295            value
  5296           </property >
  5297                                                                        
  5298           <xpath>
  5299            cda:conten t
  5300           </xpath>
  5301                                                                        
  5302           <ifNotNull >
  5303                                                                                  
  5304            <action 
  5305             action="ap pendAttrib ute" 
  5306             attribute= "ID" 
  5307             indexed="t rue"
  5308            >
  5309             -
  5310            </action>
  5311                                                                                  
  5312            <action 
  5313             action="se tValue" 
  5314             property=" vitalDispl ay" 
  5315            />
  5316                                                                                  
  5317            <action 
  5318             action="ap pendValue"
  5319            >
  5320            
  5321            </action>
  5322                                                                                  
  5323            <action 
  5324             action="ap pendValue"  
  5325            />
  5326                                                                                  
  5327            <action 
  5328             action="ap pendValue"  
  5329             property=" unit" 
  5330            />
  5331                                                                         
  5332           </ifNotNul l>
  5333                                                               
  5334          </mapping>
  5335                                                     
  5336         </mappings >
  5337                                            
  5338        </mapping>
  5339                                  
  5340       </mappings >
  5341                        
  5342      </mapping>
  5343                       
  5344      <!-- VITAL S SECTION  -->
  5345                       
  5346      <mapping>
  5347                                 
  5348       <property 
  5349        collection ="true" 
  5350        optional=" true"
  5351       >
  5352        vitals
  5353       </property >
  5354                                 
  5355       <xpath>
  5356        /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 . IP          ']
  5357       </xpath>
  5358                                 
  5359       <ifNotNull >
  5360                                           
  5361        <action 
  5362         action="ev aluateMapp ings" 
  5363         relative=" cda:sectio n/cda:entr y[@typeCod e='DRIV']"
  5364        />
  5365                                  
  5366       </ifNotNul l>
  5367                                 
  5368       <ifNull>
  5369                                           
  5370        <action 
  5371         action="re move"
  5372        />
  5373                                  
  5374       </ifNull>
  5375                                 
  5376       <mappings>
  5377                                           
  5378        <mapping>
  5379                                                    
  5380         <property>
  5381          takenTime
  5382         </property >
  5383                                                    
  5384         <xpath>
  5385          cda:organi zer/cda:ef fectiveTim e
  5386         </xpath>
  5387                                                    
  5388         <ifNotNull >
  5389                                                              
  5390          <action 
  5391           action="se tAttribute
  5392           attribute= "value"
  5393          />
  5394                                                     
  5395         </ifNotNul l>
  5396                                            
  5397        </mapping>
  5398                                           
  5399        <mapping>
  5400                                                    
  5401         <property 
  5402          optional=" true"
  5403         >
  5404          facilityNu mber
  5405         </property >
  5406                                                    
  5407         <xpath>
  5408          cda:organi zer/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:id
  5409         </xpath>
  5410                                                    
  5411         <ifNotNull >
  5412                                                              
  5413          <action 
  5414           action="se tAttribute
  5415           attribute= "extension "
  5416          />
  5417                                                     
  5418         </ifNotNul l>
  5419                                            
  5420        </mapping>
  5421                                           
  5422        <mapping>
  5423                                                    
  5424         <property 
  5425          optional=" true"
  5426         >
  5427          facilityNa me
  5428         </property >
  5429                                                    
  5430         <xpath>
  5431          cda:organi zer/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:name
  5432         </xpath>
  5433                                                    
  5434         <ifNotNull >
  5435                                                              
  5436          <action 
  5437           action="se tValue"
  5438          />
  5439                                                     
  5440         </ifNotNul l>
  5441                                            
  5442        </mapping>
  5443                                           
  5444        <mapping>
  5445                                                    
  5446         <property 
  5447          collection ="true"
  5448         >
  5449          measuremen ts
  5450         </property >
  5451                                                    
  5452         <xpath>
  5453          cda:organi zer[@class Code='CLUS TER' and @ moodCode=' EVN']/cda: component
  5454         </xpath>
  5455                                                    
  5456         <ifNotNull >
  5457                                                              
  5458          <action 
  5459           action="se tAttribute
  5460           attribute= "value" 
  5461           property=" enteredTim e" 
  5462           relative=" cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:ef fectiveTim e"
  5463          />
  5464                                                              
  5465          <action 
  5466           action="ev aluateMapp ings"
  5467          />
  5468                                                     
  5469         </ifNotNul l>
  5470                                                    
  5471         <mappings>
  5472                                                              
  5473          <mapping>
  5474                                                                        
  5475           <property>
  5476            vitalID
  5477           </property >
  5478                                                                        
  5479           <xpath>
  5480            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:id
  5481           </xpath>
  5482                                                                        
  5483           <ifNotNull >
  5484                                                                                  
  5485            <action 
  5486             action="se tAttribute
  5487             attribute= "extension "
  5488            />
  5489                                                                         
  5490           </ifNotNul l>
  5491                                                               
  5492          </mapping>
  5493                                                              
  5494          <mapping>
  5495                                                                        
  5496           <property>
  5497            vitalCode
  5498           </property >
  5499                                                                        
  5500           <xpath>
  5501            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:co de
  5502           </xpath>
  5503                                                                        
  5504           <ifNotNull >
  5505                                                                                  
  5506            <action 
  5507             action="se tAttribute
  5508             attribute= "code"
  5509            />
  5510                                                                         
  5511           </ifNotNul l>
  5512                                                               
  5513          </mapping>
  5514                                                              
  5515          <mapping>
  5516                                                                        
  5517           <property>
  5518            vitalDispl ay
  5519           </property >
  5520                                                                        
  5521           <xpath>
  5522            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:co de
  5523           </xpath>
  5524                                                                        
  5525           <ifNotNull >
  5526                                                                                  
  5527            <action 
  5528             action="se tAttribute
  5529             attribute= "displayNa me"
  5530            />
  5531                                                                         
  5532           </ifNotNul l>
  5533                                                               
  5534          </mapping>
  5535                                                              
  5536          <mapping>
  5537                                                                        
  5538           <property>
  5539            vuid
  5540           </property >
  5541                                                                        
  5542           <xpath>
  5543            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:co de/cda:tra nslation
  5544           </xpath>
  5545                                                                        
  5546           <ifNotNull >
  5547                                                                                  
  5548            <action 
  5549             action="se tAttribute
  5550             attribute= "code"
  5551            />
  5552                                                                         
  5553           </ifNotNul l>
  5554                                                               
  5555          </mapping>
  5556                                                              
  5557          <mapping>
  5558                                                                        
  5559           <property>
  5560            name
  5561           </property >
  5562                                                                        
  5563           <xpath>
  5564            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:co de
  5565           </xpath>
  5566                                                                        
  5567           <ifNotNull >
  5568                                                                                  
  5569            <action 
  5570             action="se tValue" 
  5571             relative=" cda:origin alText"
  5572            />
  5573                                                                                  
  5574            <action 
  5575             action="se tAttribute
  5576             relative=" cda:transl ation" 
  5577             attribute= "displayNa me"
  5578            />
  5579                                                                         
  5580           </ifNotNul l>
  5581                                                               
  5582          </mapping>
  5583                                                              
  5584          <mapping>
  5585                                                                        
  5586           <property>
  5587            value
  5588           </property >
  5589                                                                        
  5590           <xpath>
  5591            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:va lue
  5592           </xpath>
  5593                                                                        
  5594           <ifNotNull >
  5595                                                                                  
  5596            <action 
  5597             action="se tAttribute
  5598             attribute= "value"
  5599            />
  5600                                                                         
  5601           </ifNotNul l>
  5602                                                               
  5603          </mapping>
  5604                                                              
  5605          <mapping>
  5606                                                                        
  5607           <property 
  5608            optional=" true"
  5609           >
  5610            unit
  5611           </property >
  5612                                                                        
  5613           <xpath>
  5614            cda:observ ation[@cla ssCode='OB S' and @mo odCode='EV N']/cda:va lue
  5615           </xpath>
  5616                                                                        
  5617           <ifNotNull >
  5618                                                                                  
  5619            <action 
  5620             action="se tAttribute
  5621             attribute= "unit"
  5622            />
  5623                                                                         
  5624           </ifNotNul l>
  5625                                                               
  5626          </mapping>
  5627                                                     
  5628         </mappings >
  5629                                            
  5630        </mapping>
  5631                                  
  5632       </mappings >
  5633                        
  5634      </mapping>
  5635                       
  5636      <!-- IMMUN IZATION NA RRITIVE -- >
  5637                       
  5638      <mapping>
  5639                                 
  5640       <property 
  5641        collection ="true" 
  5642        optional=" true"
  5643       >
  5644        immunizati ons
  5645       </property >
  5646                                 
  5647       <xpath>
  5648        /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 . IP         ']
  5649       </xpath>
  5650                                 
  5651       <ifNotNull >
  5652                                           
  5653        <action 
  5654         action="ev aluateMapp ings" 
  5655         relative=" cda:sectio n/cda:text /cda:table [@ID='immu nizationNa rritive']/ cda:tbody/ cda:tr"
  5656        />
  5657                                  
  5658       </ifNotNul l>
  5659                                 
  5660       <mappings>
  5661                                           
  5662        <mapping>
  5663                                                    
  5664         <property>
  5665          name
  5666         </property >
  5667                                                    
  5668         <xpath>
  5669          cda:td/cda :content[@ ID='indImm unization' ]
  5670         </xpath>
  5671                                                    
  5672         <ifNotNull >
  5673                                                              
  5674          <action 
  5675           action="se tAttribute
  5676           attribute= "ID" 
  5677           indexed="t rue"
  5678          >
  5679           indImmuniz ation
  5680          </action>
  5681                                                              
  5682          <action 
  5683           action="se tValue"
  5684          />
  5685                                                     
  5686         </ifNotNul l>
  5687                                                    
  5688         <ifNull>
  5689                                                              
  5690          <action 
  5691           action="se tAttribute
  5692           attribute= "ID" 
  5693           indexed="t rue"
  5694          >
  5695           indImmuniz ation
  5696          </action>
  5697                                                     
  5698         </ifNull>
  5699                                            
  5700        </mapping>
  5701                                           
  5702        <mapping>
  5703                                                    
  5704         <property 
  5705          optional=" true"
  5706         >
  5707          seriesNumb er
  5708         </property >
  5709                                                    
  5710         <xpath>
  5711          cda:td/cda :content[@ ID='indSer ies']
  5712         </xpath>
  5713                                                    
  5714         <ifNotNull >
  5715                                                              
  5716          <action 
  5717           action="se tAttribute
  5718           attribute= "ID" 
  5719           indexed="t rue"
  5720          >
  5721           indSeries
  5722          </action>
  5723                                                              
  5724          <action 
  5725           action="se tValue"
  5726          />
  5727                                                     
  5728         </ifNotNul l>
  5729                                                    
  5730         <ifNull>
  5731                                                              
  5732          <action 
  5733           action="se tAttribute
  5734           attribute= "ID" 
  5735           indexed="t rue"
  5736          >
  5737           indSeries
  5738          </action>
  5739                                                     
  5740         </ifNull>
  5741                                            
  5742        </mapping>
  5743                                           
  5744        <mapping>
  5745                                                    
  5746         <property>
  5747          adminDate
  5748         </property >
  5749                                                    
  5750         <xpath>
  5751          cda:td/cda :content[@ ID='indDat eIssued']
  5752         </xpath>
  5753                                                    
  5754         <ifNotNull >
  5755                                                              
  5756          <action 
  5757           action="se tAttribute
  5758           attribute= "ID" 
  5759           indexed="t rue"
  5760          >
  5761           indDateIss ued
  5762          </action>
  5763                                                              
  5764          <action 
  5765           action="se tValue"
  5766          />
  5767                                                     
  5768         </ifNotNul l>
  5769                                                    
  5770         <ifNull>
  5771                                                              
  5772          <action 
  5773           action="se tAttribute
  5774           attribute= "ID" 
  5775           indexed="t rue"
  5776          >
  5777           indDateIss ued
  5778          </action>
  5779                                                     
  5780         </ifNull>
  5781                                            
  5782        </mapping>
  5783                                           
  5784        <mapping>
  5785                                                    
  5786         <property 
  5787          optional=" true"
  5788         >
  5789          reaction
  5790         </property >
  5791                                                    
  5792         <xpath>
  5793          cda:td/cda :content[@ ID='indRea ction']
  5794         </xpath>
  5795                                                    
  5796         <ifNotNull >
  5797                                                              
  5798          <action 
  5799           action="se tAttribute
  5800           attribute= "ID" 
  5801           indexed="t rue"
  5802          >
  5803           indReactio n
  5804          </action>
  5805                                                              
  5806          <action 
  5807           action="se tValue"
  5808          />
  5809                                                     
  5810         </ifNotNul l>
  5811                                                    
  5812         <ifNull>
  5813                                                              
  5814          <action 
  5815           action="se tAttribute
  5816           attribute= "ID" 
  5817           indexed="t rue"
  5818          >
  5819           indReactio n
  5820          </action>
  5821                                                     
  5822         </ifNull>
  5823                                            
  5824        </mapping>
  5825                                           
  5826        <mapping>
  5827                                                    
  5828         <property 
  5829          optional=" true"
  5830         >
  5831          comments
  5832         </property >
  5833                                                    
  5834         <xpath>
  5835          cda:td/cda :content[@ ID='indCom ments']
  5836         </xpath>
  5837                                                    
  5838         <ifNotNull >
  5839                                                              
  5840          <action 
  5841           action="se tAttribute
  5842           attribute= "ID" 
  5843           indexed="t rue"
  5844          >
  5845           indComment s
  5846          </action>
  5847                                                              
  5848          <action 
  5849           action="se tValue"
  5850          />
  5851                                                     
  5852         </ifNotNul l>
  5853                                                    
  5854         <ifNull>
  5855                                                              
  5856          <action 
  5857           action="se tAttribute
  5858           attribute= "ID" 
  5859           indexed="t rue"
  5860          >
  5861           indComment s
  5862          </action>
  5863                                                     
  5864         </ifNull>
  5865                                            
  5866        </mapping>
  5867                                  
  5868       </mappings >
  5869                        
  5870      </mapping>
  5871                       
  5872      <!-- IMMUN IZATION CO DED SECTIO N -->
  5873                       
  5874      <mapping>
  5875                                 
  5876       <property 
  5877        collection ="true" 
  5878        optional=" true"
  5879       >
  5880        immunizati ons
  5881       </property >
  5882                                 
  5883       <xpath>
  5884        /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 . IP         ']
  5885       </xpath>
  5886                                 
  5887       <ifNotNull >
  5888                                           
  5889        <action 
  5890         action="ev aluateMapp ings" 
  5891         relative=" cda:sectio n/cda:entr y[@typeCod e='DRIV']"
  5892        />
  5893                                  
  5894       </ifNotNul l>
  5895                                 
  5896       <ifNull>
  5897                                           
  5898        <action 
  5899         action="re move"
  5900        />
  5901                                  
  5902       </ifNull>
  5903                                 
  5904       <mappings>
  5905                                           
  5906        <mapping>
  5907                                                    
  5908         <property>
  5909          adminDate
  5910         </property >
  5911                                                    
  5912         <xpath>
  5913          cda:substa nceAdminis tration/cd a:effectiv eTime
  5914         </xpath>
  5915                                                    
  5916         <ifNotNull >
  5917                                                              
  5918          <action 
  5919           action="se tAttribute
  5920           attribute= "value"
  5921          />
  5922                                                     
  5923         </ifNotNul l>
  5924                                            
  5925        </mapping>
  5926                                           
  5927        <mapping>
  5928                                                    
  5929         <property>
  5930          name
  5931         </property >
  5932                                                    
  5933         <xpath>
  5934          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
  5935         </xpath>
  5936                                                    
  5937         <ifNotNull >
  5938                                                              
  5939          <action 
  5940           action="se tAttribute
  5941           attribute= "value" 
  5942           indexed="t rue"
  5943          >
  5944           #indImmuni zation
  5945          </action>
  5946                                                     
  5947         </ifNotNul l>
  5948                                            
  5949        </mapping>
  5950                                           
  5951        <mapping>
  5952                                                    
  5953         <property 
  5954          optional=" true"
  5955         >
  5956          comments
  5957         </property >
  5958                                                    
  5959         <xpath>
  5960          cda:substa nceAdminis tration/cd a:text/cda :reference
  5961         </xpath>
  5962                                                    
  5963         <ifNotNull >
  5964                                                              
  5965          <action 
  5966           action="se tAttribute
  5967           attribute= "value" 
  5968           indexed="t rue"
  5969          >
  5970           #indCommen ts
  5971          </action>
  5972                                                     
  5973         </ifNotNul l>
  5974                                                    
  5975         <ifNull>
  5976                                                              
  5977          <action 
  5978           action="se tAttribute
  5979           attribute= "value" 
  5980           indexed="t rue"
  5981          >
  5982           #indCommen ts
  5983          </action>
  5984                                                     
  5985         </ifNull>
  5986                                            
  5987        </mapping>
  5988                                           
  5989        <mapping>
  5990                                                    
  5991         <property 
  5992          optional=" true"
  5993         >
  5994          seriesNumb er
  5995         </property >
  5996                                                    
  5997         <xpath>
  5998          cda:substa nceAdminis tration/cd a:entryRel ationship[ @typeCode= 'SUBJ']/cd a:observat ion/cda:va lue
  5999         </xpath>
  6000                                                    
  6001         <ifNotNull >
  6002                                                              
  6003          <action 
  6004           action="se tAttribute
  6005           attribute= "value"
  6006          />
  6007                                                     
  6008         </ifNotNul l>
  6009                                                    
  6010         <ifNull>
  6011                                                              
  6012          <action 
  6013           action="se tAttribute
  6014           attribute= "nullFlavo r"
  6015          >
  6016           UNK
  6017          </action>
  6018                                                     
  6019         </ifNull>
  6020                                            
  6021        </mapping>
  6022                                           
  6023        <mapping>
  6024                                                    
  6025         <property 
  6026          optional=" true"
  6027         >
  6028          reaction
  6029         </property >
  6030                                                    
  6031         <xpath>
  6032          cda:substa nceAdminis tration/cd a:entryRel ationship[ @typeCode= 'CAUS' and  cda:obser vation/cda :templateI d/@root='2 .16.840.1. 113883. IP          ']
  6033         </xpath>
  6034                                                    
  6035         <ifNotNull >
  6036                                                              
  6037          <action 
  6038           action="se tAttribute
  6039           attribute= "value" 
  6040           relative=" cda:observ ation[cda: templateId /@root='2. 16.840.1.1 13883. IP          ']/cda:tex t/cda:refe rence" 
  6041           indexed="t rue"
  6042          >
  6043           #indReacti on
  6044          </action>
  6045                                                     
  6046         </ifNotNul l>
  6047                                                    
  6048         <ifNull>
  6049                                                              
  6050          <action 
  6051           action="re move"
  6052          />
  6053                                                     
  6054         </ifNull>
  6055                                            
  6056        </mapping>
  6057                                           
  6058        <mapping>
  6059                                                    
  6060         <property 
  6061          optional=" true"
  6062         >
  6063          providerID
  6064         </property >
  6065                                                    
  6066         <xpath>
  6067          cda:substa nceAdminis tration/cd a:performe r/cda:assi gnedEntity /cda:id
  6068         </xpath>
  6069                                                    
  6070         <ifNotNull >
  6071                                                              
  6072          <action 
  6073           action="se tAttribute
  6074           attribute= "extension "
  6075          />
  6076                                                     
  6077         </ifNotNul l>
  6078                                            
  6079        </mapping>
  6080                                           
  6081        <mapping>
  6082                                                    
  6083         <property 
  6084          optional=" true"
  6085         >
  6086          providerNa me
  6087         </property >
  6088                                                    
  6089         <xpath>
  6090          cda:substa nceAdminis tration/cd a:performe r/cda:assi gnedEntity /cda:assig nedPerson/ cda:name
  6091         </xpath>
  6092                                                    
  6093         <ifNotNull >
  6094                                                              
  6095          <action 
  6096           action="se tValue"
  6097          />
  6098                                                     
  6099         </ifNotNul l>
  6100                                            
  6101        </mapping>
  6102                                           
  6103        <mapping>
  6104                                                    
  6105         <property 
  6106          optional=" true"
  6107         >
  6108          cptCode
  6109         </property >
  6110                                                    
  6111         <xpath>
  6112          cda:substa nceAdminis tration/cd a:consumab le/cda:man ufacturedP roduct/cda :manufactu redMateria l/cda:code /cda:trans lation
  6113         </xpath>
  6114                                                    
  6115         <ifNotNull >
  6116                                                              
  6117          <action 
  6118           action="se tAttribute
  6119           attribute= "code"
  6120          />
  6121                                                              
  6122          <action 
  6123           action="se tAttribute
  6124           attribute= "displayNa me" 
  6125           property=" cptDisplay "
  6126          />
  6127                                                     
  6128         </ifNotNul l>
  6129                                                    
  6130         <ifNull>
  6131                                                              
  6132          <action 
  6133           action="re move"
  6134          />
  6135                                                     
  6136         </ifNull>
  6137                                            
  6138        </mapping>
  6139                                           
  6140        <mapping>
  6141                                                    
  6142         <property 
  6143          optional=" true"
  6144         >
  6145          facilityNu mber
  6146         </property >
  6147                                                    
  6148         <xpath>
  6149          cda:substa nceAdminis tration/cd a:author/c da:assigne dAuthor/cd a:represen tedOrganiz ation/cda: id
  6150         </xpath>
  6151                                                    
  6152         <ifNotNull >
  6153                                                              
  6154          <action 
  6155           action="se tAttribute
  6156           attribute= "extension "
  6157          />
  6158                                                     
  6159         </ifNotNul l>
  6160                                            
  6161        </mapping>
  6162                                           
  6163        <mapping>
  6164                                                    
  6165         <property 
  6166          optional=" true"
  6167         >
  6168          facilityNa me
  6169         </property >
  6170                                                    
  6171         <xpath>
  6172          cda:substa nceAdminis tration/cd a:author/c da:assigne dAuthor/cd a:represen tedOrganiz ation/cda: name
  6173         </xpath>
  6174                                                    
  6175         <ifNotNull >
  6176                                                              
  6177          <action 
  6178           action="se tValue"
  6179          />
  6180                                                     
  6181         </ifNotNul l>
  6182                                            
  6183        </mapping>
  6184                                  
  6185       </mappings >
  6186                        
  6187      </mapping>
  6188                       
  6189      <!-- PROCE DURES NARR ATIVE -->
  6190                       
  6191      <mapping>
  6192                                 
  6193       <property 
  6194        collection ="true" 
  6195        optional=" true"
  6196       >
  6197        procedures
  6198       </property >
  6199                                 
  6200       <xpath>
  6201        /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 . IP          ']
  6202       </xpath>
  6203                                 
  6204       <ifNotNull >
  6205                                           
  6206        <action 
  6207         action="ev aluateMapp ings" 
  6208         relative=" cda:sectio n/cda:text /cda:table [@ID='proc edureNarri tive']/cda :tbody/cda :tr"
  6209        />
  6210                                  
  6211       </ifNotNul l>
  6212                                 
  6213       <mappings>
  6214                                           
  6215        <mapping>
  6216                                                    
  6217         <property>
  6218          dateTime
  6219         </property >
  6220                                                    
  6221         <xpath>
  6222          cda:td/cda :content[@ ID='prndDa teTime']
  6223         </xpath>
  6224                                                    
  6225         <ifNotNull >
  6226                                                              
  6227          <action 
  6228           action="se tAttribute
  6229           attribute= "ID" 
  6230           indexed="t rue"
  6231          >
  6232           prndDateTi me
  6233          </action>
  6234                                                              
  6235          <action 
  6236           action="se tValue" 
  6237          />
  6238                                                     
  6239         </ifNotNul l>
  6240                                            
  6241        </mapping>
  6242                                           
  6243        <mapping>
  6244                                                    
  6245         <property 
  6246          optional=" true"
  6247         >
  6248          type
  6249         </property >
  6250                                                    
  6251         <xpath>
  6252          cda:td/cda :content[@ ID='prndPr ocedureTyp e']
  6253         </xpath>
  6254                                                    
  6255         <ifNotNull >
  6256                                                              
  6257          <action 
  6258           action="se tAttribute
  6259           attribute= "ID" 
  6260           indexed="t rue"
  6261          >
  6262           prndProced ureType
  6263          </action>
  6264                                                              
  6265          <action 
  6266           action="se tValue" 
  6267           property=" type.name"  
  6268          />
  6269                                                     
  6270         </ifNotNul l>
  6271                                                    
  6272         <ifNull>
  6273                                                              
  6274          <action 
  6275           action="se tAttribute
  6276           attribute= "ID" 
  6277           indexed="t rue"
  6278          >
  6279           prndProced ureType
  6280          </action>
  6281                                                     
  6282         </ifNull>
  6283                                            
  6284        </mapping>
  6285                                           
  6286        <mapping 
  6287         equalsProp erty="cate gory" 
  6288         equalsValu e="SR"
  6289        >
  6290                                                    
  6291         <property 
  6292          optional=" true"
  6293         >
  6294          otherProce dures
  6295         </property >
  6296                                                    
  6297         <xpath>
  6298          cda:td/cda :list/cda: item[cda:c ontent/@ID ='prndQual ifiers']
  6299         </xpath>
  6300                                                    
  6301         <ifNotNull >
  6302                                                              
  6303          <action 
  6304           action="se tValue" 
  6305           relative=" cda:conten t[@ID='prn dQualifier s']"
  6306          >
  6307           Other Proc edure CPT  Code 
  6308          </action>
  6309                                                              
  6310          <action 
  6311           action="se tAttribute
  6312           relative=" cda:conten t[@ID='prn dQualifier s']" 
  6313           attribute= "ID" 
  6314           indexed="t rue"
  6315          >
  6316           prndQualif iers
  6317          </action>
  6318                                                              
  6319          <action 
  6320           action="ev aluateMapp ings"
  6321          />
  6322                                                     
  6323         </ifNotNul l>
  6324                                                    
  6325         <ifNull>
  6326                                                              
  6327          <action 
  6328           action="se tAttribute
  6329           relative=" cda:conten t[@ID='prn dQualifier s']" 
  6330           attribute= "ID" 
  6331           indexed="t rue"
  6332          >
  6333           prndQualif iers
  6334          </action>
  6335                                                     
  6336         </ifNull>
  6337                                                    
  6338         <mappings>
  6339                                                              
  6340          <mapping>
  6341                                                                        
  6342           <property>
  6343            name
  6344           </property >
  6345                                                                        
  6346           <xpath>
  6347            cda:conten t
  6348           </xpath>
  6349                                                                        
  6350           <ifNotNull >
  6351                                                                                  
  6352            <action 
  6353             action="ap pendAttrib ute" 
  6354             attribute= "ID" 
  6355             indexed="t rue"
  6356            >
  6357             -
  6358            </action>
  6359                                                                                  
  6360            <action 
  6361             action="ap pendValue"  
  6362            />
  6363                                                                         
  6364           </ifNotNul l>
  6365                                                               
  6366          </mapping>
  6367                                                     
  6368         </mappings >
  6369                                            
  6370        </mapping>
  6371                                           
  6372        <mapping 
  6373         equalsProp erty="cate gory" 
  6374         equalsValu e="RA"
  6375        >
  6376                                                    
  6377         <property 
  6378          collection ="true" 
  6379          optional=" true"
  6380         >
  6381          modifiers
  6382         </property >
  6383                                                    
  6384         <xpath>
  6385          cda:td/cda :list/cda: item[cda:c ontent/@ID ='prndQual ifiers']
  6386         </xpath>
  6387                                                    
  6388         <ifNotNull >
  6389                                                              
  6390          <action 
  6391           action="se tValue" 
  6392           relative=" cda:conten t[@ID='prn dQualifier s']"
  6393          >
  6394           CPT Modifi er 
  6395          </action>
  6396                                                              
  6397          <action 
  6398           action="se tAttribute
  6399           relative=" cda:conten t[@ID='prn dQualifier s']" 
  6400           attribute= "ID" 
  6401           indexed="t rue"
  6402          >
  6403           prndQualif iers
  6404          </action>
  6405                                                              
  6406          <action 
  6407           action="ev aluateMapp ings"
  6408          />
  6409                                                     
  6410         </ifNotNul l>
  6411                                                    
  6412         <ifNull>
  6413                                                              
  6414          <action 
  6415           action="se tAttribute
  6416           relative=" cda:conten t[@ID='prn dQualifier s']" 
  6417           attribute= "ID" 
  6418           indexed="t rue"
  6419          >
  6420           prndQualif iers
  6421          </action>
  6422                                                     
  6423         </ifNull>
  6424                                                    
  6425         <mappings>
  6426                                                              
  6427          <mapping>
  6428                                                                        
  6429           <property>
  6430            name
  6431           </property >
  6432                                                                        
  6433           <xpath>
  6434            cda:conten t
  6435           </xpath>
  6436                                                                        
  6437           <ifNotNull >
  6438                                                                                  
  6439            <action 
  6440             action="ap pendAttrib ute" 
  6441             attribute= "ID" 
  6442             indexed="t rue"
  6443            >
  6444             -
  6445            </action>
  6446                                                                                  
  6447            <action 
  6448             action="ap pendValue"  
  6449            />
  6450                                                                         
  6451           </ifNotNul l>
  6452                                                               
  6453          </mapping>
  6454                                                     
  6455         </mappings >
  6456                                            
  6457        </mapping>
  6458                                           
  6459        <mapping 
  6460         equalsProp erty="cate gory" 
  6461         equalsValu e="SR"
  6462        >
  6463                                                    
  6464         <property 
  6465          optional=" true"
  6466         >
  6467          noteTitles
  6468         </property >
  6469                                                    
  6470         <xpath>
  6471          cda:td/cda :content[@ ID='prndDe scription' ]
  6472         </xpath>
  6473                                                    
  6474         <ifNotNull >
  6475                                                              
  6476          <action 
  6477           action="se tAttribute
  6478           attribute= "ID" 
  6479           indexed="t rue"
  6480          >
  6481           prndDescri ption
  6482          </action>
  6483                                                              
  6484          <action 
  6485           action="se tValue"
  6486          >
  6487           Associated  Notes: 
  6488          </action>
  6489                                                              
  6490          <action 
  6491           action="ap pendValue"
  6492          />
  6493                                                     
  6494         </ifNotNul l>
  6495                                                    
  6496         <ifNull>
  6497                                                              
  6498          <action 
  6499           action="se tAttribute
  6500           attribute= "ID" 
  6501           indexed="t rue"
  6502          >
  6503           prndDescri ption
  6504          </action>
  6505                                                              
  6506          <action 
  6507           action="se tValue"
  6508          >
  6509           Unknown
  6510          </action>
  6511                                                     
  6512         </ifNull>
  6513                                            
  6514        </mapping>
  6515                                           
  6516        <mapping 
  6517         equalsProp erty="cate gory" 
  6518         equalsValu e="RA"
  6519        >
  6520                                                    
  6521         <property 
  6522          optional=" true"
  6523         >
  6524          type
  6525         </property >
  6526                                                    
  6527         <xpath>
  6528          cda:td/cda :content[@ ID='prndDe scription' ]
  6529         </xpath>
  6530                                                    
  6531         <ifNotNull >
  6532                                                              
  6533          <action 
  6534           action="se tAttribute
  6535           attribute= "ID" 
  6536           indexed="t rue"
  6537          >
  6538           prndDescri ption
  6539          </action>
  6540                                                              
  6541          <action 
  6542           action="se tValue" 
  6543           property=" type.name"
  6544          />
  6545                                                              
  6546          <action 
  6547           action="ap pendValue"
  6548          >
  6549            
  6550          </action>
  6551                                                              
  6552          <action 
  6553           action="ap pendValue"  
  6554           property=" modifierNa mes"
  6555          />
  6556                                                     
  6557         </ifNotNul l>
  6558                                                    
  6559         <ifNull>
  6560                                                              
  6561          <action 
  6562           action="se tAttribute
  6563           attribute= "ID" 
  6564           indexed="t rue"
  6565          >
  6566           prndDescri ption
  6567          </action>
  6568                                                              
  6569          <action 
  6570           action="se tValue"
  6571          >
  6572           Unknown
  6573          </action>
  6574                                                     
  6575         </ifNull>
  6576                                            
  6577        </mapping>
  6578                                           
  6579        <mapping>
  6580                                                    
  6581         <property>
  6582          provider.n ame
  6583         </property >
  6584                                                    
  6585         <xpath>
  6586          cda:td/cda :content[@ ID='prndPr ovider']
  6587         </xpath>
  6588                                                    
  6589         <ifNotNull >
  6590                                                              
  6591          <action 
  6592           action="se tAttribute
  6593           attribute= "ID" 
  6594           indexed="t rue"
  6595          >
  6596           prndProvid er
  6597          </action>
  6598                                                              
  6599          <action 
  6600           action="se tValue" 
  6601          />
  6602                                                     
  6603         </ifNotNul l>
  6604                                                    
  6605         <ifNull>
  6606                                                              
  6607          <action 
  6608           action="se tAttribute
  6609           attribute= "ID" 
  6610           indexed="t rue"
  6611          >
  6612           prndProvid er
  6613          </action>
  6614                                                              
  6615          <action 
  6616           action="se tValue"
  6617          >
  6618           Unknown
  6619          </action>
  6620                                                     
  6621         </ifNull>
  6622                                            
  6623        </mapping>
  6624                                           
  6625        <mapping>
  6626                                                    
  6627         <property>
  6628          facility.n ame
  6629         </property >
  6630                                                    
  6631         <xpath>
  6632          cda:td/cda :content[@ ID='prndSo urce']
  6633         </xpath>
  6634                                                    
  6635         <ifNotNull >
  6636                                                              
  6637          <action 
  6638           action="se tAttribute
  6639           attribute= "ID" 
  6640           indexed="t rue"
  6641          >
  6642           prndSource
  6643          </action>
  6644                                                              
  6645          <action 
  6646           action="se tValue" 
  6647          />
  6648                                                     
  6649         </ifNotNul l>
  6650                                            
  6651        </mapping>
  6652                                  
  6653       </mappings >
  6654                        
  6655      </mapping>
  6656              
  6657      <!-- PROCE DURES CODE D SECTION  -->
  6658                       
  6659      <mapping>
  6660                                 
  6661       <property 
  6662        collection ="true" 
  6663        optional=" true"
  6664       >
  6665        procedures
  6666       </property >
  6667                                 
  6668       <xpath>
  6669        /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 . IP          ']
  6670       </xpath>
  6671                                 
  6672       <ifNotNull >
  6673                                           
  6674        <action 
  6675         action="ev aluateMapp ings" 
  6676         relative=" cda:sectio n/cda:entr y"
  6677        />
  6678                                  
  6679       </ifNotNul l>
  6680                                 
  6681       <ifNull>
  6682                                           
  6683        <action 
  6684         action="re move"
  6685        />
  6686                                  
  6687       </ifNull>
  6688                                 
  6689       <mappings>
  6690                                           
  6691        <mapping>
  6692                                                    
  6693         <property 
  6694          optional=" true"
  6695         >
  6696          type
  6697         </property >
  6698                                                    
  6699         <xpath>
  6700          cda:proced ure/cda:co de
  6701         </xpath>
  6702                                                    
  6703         <ifNotNull >
  6704                                                              
  6705          <action 
  6706           action="se tAttribute
  6707           attribute= "code" 
  6708           property=" type.code"
  6709          />
  6710                                                              
  6711          <action 
  6712           action="se tAttribute
  6713           attribute= "displayNa me" 
  6714           property=" type.name"
  6715          />
  6716                                                              
  6717          <action 
  6718           action="se tAttribute
  6719           relative=" cda:origin alText/cda :reference
  6720           attribute= "value" 
  6721           indexed="t rue"
  6722          >
  6723           #prndDescr iption
  6724          </action>
  6725                                                     
  6726         </ifNotNul l>
  6727                                                    
  6728         <ifNull>
  6729                                                              
  6730          <action 
  6731           action="re moveAttrib utes"
  6732          />
  6733                                                              
  6734          <action 
  6735           action="se tAttribute
  6736           attribute= "nullFlavo r"
  6737          >
  6738           UNK
  6739          </action>
  6740                                                              
  6741          <action 
  6742           action="se tAttribute
  6743           relative=" cda:origin alText/cda :reference
  6744           attribute= "value" 
  6745           indexed="t rue"
  6746          >
  6747           #prndDescr iption
  6748          </action>
  6749                                                     
  6750         </ifNull>
  6751                                            
  6752        </mapping>
  6753                                           
  6754        <mapping 
  6755         equalsProp erty="cate gory" 
  6756         equalsValu e="SR"
  6757        >
  6758                                                    
  6759         <property 
  6760          optional=" true"
  6761         >
  6762          otherProce dures
  6763         </property >
  6764                                                    
  6765         <xpath>
  6766          cda:proced ure/cda:co de/cda:qua lifier
  6767         </xpath>
  6768                                                    
  6769         <ifNotNull >
  6770                                                              
  6771          <action 
  6772           action="se tAttribute
  6773           relative=" cda:name" 
  6774           attribute= "displayNa me"
  6775          >
  6776           Other Proc edure CPT  Code
  6777          </action>
  6778                                                              
  6779          <action 
  6780           action="ev aluateMapp ings"
  6781          />
  6782                                                     
  6783         </ifNotNul l>
  6784                                                    
  6785         <ifNull>
  6786                                                              
  6787          <action 
  6788           action="re move"
  6789          />
  6790                                                     
  6791         </ifNull>
  6792                                                    
  6793         <mappings>
  6794                                                              
  6795          <mapping>
  6796                                                                        
  6797           <property>
  6798            code
  6799           </property >
  6800                                                                        
  6801           <xpath>
  6802            cda:value
  6803           </xpath>
  6804                                                                        
  6805           <ifNotNull >
  6806                                                                                  
  6807            <action 
  6808             action="se tAttribute
  6809             attribute= "code"
  6810            />
  6811                                                                         
  6812           </ifNotNul l>
  6813                                                               
  6814          </mapping>
  6815                                                              
  6816          <mapping>
  6817                                                                        
  6818           <property>
  6819            name
  6820           </property >
  6821                                                                        
  6822           <xpath>
  6823            cda:value
  6824           </xpath>
  6825                                                                        
  6826           <ifNotNull >
  6827                                                                                  
  6828            <action 
  6829             action="se tAttribute
  6830             attribute= "displayNa me"
  6831            />
  6832                                                                         
  6833           </ifNotNul l>
  6834                                                               
  6835          </mapping>
  6836                                                     
  6837         </mappings >
  6838                                            
  6839        </mapping>
  6840                                           
  6841        <mapping 
  6842         equalsProp erty="cate gory" 
  6843         equalsValu e="RA"
  6844        >
  6845                                                    
  6846         <property 
  6847          collection ="true" 
  6848          optional=" true"
  6849         >
  6850          modifiers
  6851         </property >
  6852                                                    
  6853         <xpath>
  6854          cda:proced ure/cda:co de/cda:qua lifier
  6855         </xpath>
  6856                                                    
  6857         <ifNotNull >
  6858                                                              
  6859          <action 
  6860           action="se tAttribute
  6861           relative=" cda:name" 
  6862           attribute= "displayNa me"
  6863          >
  6864           CPT Modifi er
  6865          </action>
  6866                                                              
  6867          <action 
  6868           action="ev aluateMapp ings"
  6869          />
  6870                                                     
  6871         </ifNotNul l>
  6872                                                    
  6873         <ifNull>
  6874                                                              
  6875          <action 
  6876           action="re move"
  6877          />
  6878                                                     
  6879         </ifNull>
  6880                                                    
  6881         <mappings>
  6882                                                              
  6883          <mapping>
  6884                                                                        
  6885           <property>
  6886            code
  6887           </property >
  6888                                                                        
  6889           <xpath>
  6890            cda:value
  6891           </xpath>
  6892                                                                        
  6893           <ifNotNull >
  6894                                                                                  
  6895            <action 
  6896             action="se tAttribute
  6897             attribute= "code"
  6898            />
  6899                                                                         
  6900           </ifNotNul l>
  6901                                                               
  6902          </mapping>
  6903                                                              
  6904          <mapping>
  6905                                                                        
  6906           <property>
  6907            name
  6908           </property >
  6909                                                                        
  6910           <xpath>
  6911            cda:value
  6912           </xpath>
  6913                                                                        
  6914           <ifNotNull >
  6915                                                                                  
  6916            <action 
  6917             action="se tAttribute
  6918             attribute= "displayNa me"
  6919            />
  6920                                                                         
  6921           </ifNotNul l>
  6922                                                               
  6923          </mapping>
  6924                                                     
  6925         </mappings >
  6926                                            
  6927        </mapping>
  6928                                           
  6929        <mapping>
  6930                                                    
  6931         <property>
  6932          dateTime
  6933         </property >
  6934                                                    
  6935         <xpath>
  6936          cda:proced ure/cda:ef fectiveTim e
  6937         </xpath>
  6938                                                    
  6939         <ifNotNull >
  6940                                                              
  6941          <action 
  6942           action="se tAttribute
  6943           attribute= "value"
  6944          />
  6945                                                     
  6946         </ifNotNul l>
  6947                                            
  6948        </mapping>
  6949                                           
  6950        <mapping>
  6951                                                    
  6952         <property>
  6953          provider.n ame
  6954         </property >
  6955                                                    
  6956         <xpath>
  6957          cda:proced ure/cda:pe rformer/cd a:assigned Entity/cda :assignedP erson/cda: name
  6958         </xpath>
  6959                                                    
  6960         <ifNotNull >
  6961                                                              
  6962          <action 
  6963           action="se tValue"
  6964          />
  6965                                                     
  6966         </ifNotNul l>
  6967                                                    
  6968         <ifNull>
  6969                                                              
  6970          <action 
  6971           action="se tValue"
  6972          >
  6973           Unknown
  6974          </action>
  6975                                                     
  6976         </ifNull>
  6977                                            
  6978        </mapping>
  6979                                           
  6980        <mapping>
  6981                                                    
  6982         <property>
  6983          facility.c ode
  6984         </property >
  6985                                                    
  6986         <xpath>
  6987          cda:proced ure/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:id
  6988         </xpath>
  6989                                                    
  6990         <ifNotNull >
  6991                                                              
  6992          <action 
  6993           action="se tAttribute
  6994           attribute= "extension "
  6995          />
  6996                                                     
  6997         </ifNotNul l>
  6998                                            
  6999        </mapping>
  7000                                           
  7001        <mapping>
  7002                                                    
  7003         <property>
  7004          facility.n ame
  7005         </property >
  7006                                                    
  7007         <xpath>
  7008          cda:proced ure/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:name
  7009         </xpath>
  7010                                                    
  7011         <ifNotNull >
  7012                                                              
  7013          <action 
  7014           action="se tValue"
  7015          />
  7016                                                     
  7017         </ifNotNul l>
  7018                                            
  7019        </mapping>
  7020                                  
  7021       </mappings >
  7022                        
  7023      </mapping>
  7024                       
  7025      <!-- ENCOU NTER NARRI TIVE -->
  7026                       
  7027      <mapping>
  7028                                 
  7029       <property 
  7030        collection ="true" 
  7031        optional=" true"
  7032       >
  7033        visits
  7034       </property >
  7035                                 
  7036       <xpath>
  7037        /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 . IP         ']
  7038       </xpath>
  7039                                 
  7040       <ifNotNull >
  7041                                           
  7042        <action 
  7043         action="ev aluateMapp ings" 
  7044         relative=" cda:sectio n/cda:text /cda:table [@ID='enco unterNarri tive']/cda :tbody/cda :tr"
  7045        />
  7046                                  
  7047       </ifNotNul l>
  7048                                 
  7049       <mappings>
  7050                                           
  7051        <mapping>
  7052                                                    
  7053         <property>
  7054          dateTime
  7055         </property >
  7056                                                    
  7057         <xpath>
  7058          cda:td/cda :content[@ ID='endDat eTime']
  7059         </xpath>
  7060                                                    
  7061         <ifNotNull >
  7062                                                              
  7063          <action 
  7064           action="se tAttribute
  7065           attribute= "ID" 
  7066           indexed="t rue"
  7067          >
  7068           endDateTim e
  7069          </action>
  7070                                                              
  7071          <action 
  7072           action="se tValue"
  7073          />
  7074                                                     
  7075         </ifNotNul l>
  7076                                            
  7077        </mapping>
  7078                                           
  7079        <mapping>
  7080                                                    
  7081         <property 
  7082          optional=" true"
  7083         >
  7084          type.code
  7085         </property >
  7086                                                    
  7087         <xpath>
  7088          cda:td/cda :content[@ ID='endEnc ounterType ']
  7089         </xpath>
  7090                                                    
  7091         <ifNotNull >
  7092                                                              
  7093          <action 
  7094           action="se tAttribute
  7095           attribute= "ID" 
  7096           indexed="t rue"
  7097          >
  7098           endEncount erType
  7099          </action>
  7100                                                              
  7101          <action 
  7102           action="se tValue" 
  7103           property=" type.name"
  7104          />
  7105                                                     
  7106         </ifNotNul l>
  7107                                                    
  7108         <ifNull>
  7109                                                              
  7110          <action 
  7111           action="se tAttribute
  7112           attribute= "ID" 
  7113           indexed="t rue"
  7114          >
  7115           endEncount erType
  7116          </action>
  7117                                                     
  7118         </ifNull>
  7119                                            
  7120        </mapping>
  7121                                           
  7122        <mapping>
  7123                                                    
  7124         <property>
  7125          stopCode.n ame
  7126         </property >
  7127                                                    
  7128         <xpath>
  7129          cda:td/cda :content[@ ID='endEnc ounterDesc ription']
  7130         </xpath>
  7131                                                    
  7132         <ifNotNull >
  7133                                                              
  7134          <action 
  7135           action="se tAttribute
  7136           attribute= "ID" 
  7137           indexed="t rue"
  7138          >
  7139           endEncount erDescript ion
  7140          </action>
  7141                                                              
  7142          <action 
  7143           action="se tValue"
  7144          />
  7145                                                              
  7146          <action 
  7147           action="ev aluateMapp ings"
  7148          />
  7149                                                     
  7150         </ifNotNul l>
  7151                                                    
  7152         <ifNull>
  7153                                                              
  7154          <action 
  7155           action="se tAttribute
  7156           attribute= "ID" 
  7157           indexed="t rue"
  7158          >
  7159           endEncount erDescript ion
  7160          </action>
  7161                                                              
  7162          <action 
  7163           action="se tValue"
  7164          >
  7165           Unknown
  7166          </action>
  7167                                                              
  7168          <action 
  7169           action="ev aluateMapp ings"
  7170          />
  7171                                                     
  7172         </ifNull>
  7173                                            
  7174        </mapping>
  7175                                           
  7176        <mapping>
  7177                                                    
  7178         <property 
  7179          optional=" true"
  7180         >
  7181          noteTitles
  7182         </property >
  7183                                                    
  7184         <xpath>
  7185          cda:td[3]/ cda:conten t
  7186         </xpath>
  7187                                                    
  7188         <ifNotNull >
  7189                                                              
  7190          <action 
  7191           action="se tAttribute
  7192           attribute= "ID" 
  7193           indexed="t rue"
  7194          >
  7195           endEncount erDescript ion
  7196          </action>
  7197                                                              
  7198          <action 
  7199           action="ap pendValue"
  7200          >
  7201            with asso ciated not es 
  7202          </action>
  7203                                                              
  7204          <action 
  7205           action="ap pendValue"
  7206          />
  7207                                                     
  7208         </ifNotNul l>
  7209                                                    
  7210         <ifNull>
  7211                                                              
  7212          <action 
  7213           action="se tAttribute
  7214           attribute= "ID" 
  7215           indexed="t rue"
  7216          >
  7217           endEncount erDescript ion
  7218          </action>
  7219                                                     
  7220         </ifNull>
  7221                                            
  7222        </mapping>
  7223                                           
  7224        <mapping>
  7225                                                    
  7226         <property 
  7227          optional=" true"
  7228         >
  7229          reason
  7230         </property >
  7231                                                    
  7232         <xpath>
  7233          cda:td/cda :content[@ ID='endRea son']
  7234         </xpath>
  7235                                                    
  7236         <ifNotNull >
  7237                                                              
  7238          <action 
  7239           action="se tAttribute
  7240           attribute= "ID" 
  7241           indexed="t rue"
  7242          >
  7243           endReason
  7244          </action>
  7245                                                              
  7246          <action 
  7247           action="ev aluateMapp ings"
  7248          />
  7249                                                     
  7250         </ifNotNul l>
  7251                                                    
  7252         <ifNull>
  7253                                                              
  7254          <action 
  7255           action="se tAttribute
  7256           attribute= "ID" 
  7257           indexed="t rue"
  7258          >
  7259           endReason
  7260          </action>
  7261                                                     
  7262         </ifNull>
  7263                                                    
  7264         <mappings>
  7265                                                              
  7266          <mapping>
  7267                                                                        
  7268           <property>
  7269            name
  7270           </property >
  7271                                                                        
  7272           <xpath>
  7273            .
  7274           </xpath>
  7275                                                                        
  7276           <ifNotNull >
  7277                                                                                  
  7278            <action 
  7279             action="se tValue"
  7280            />
  7281                                                                         
  7282           </ifNotNul l>
  7283                                                               
  7284          </mapping>
  7285                                                              
  7286          <mapping>
  7287                                                                        
  7288           <property>
  7289            code
  7290           </property >
  7291                                                                        
  7292           <xpath>
  7293            .
  7294           </xpath>
  7295                                                                        
  7296           <ifNotNull >
  7297                                                                                  
  7298            <action 
  7299             action="ap pendValue"
  7300            >
  7301              ICD9 
  7302            </action>
  7303                                                                                  
  7304            <action 
  7305             action="ap pendValue"
  7306            />
  7307                                                                         
  7308           </ifNotNul l>
  7309                                                               
  7310          </mapping>
  7311                                                              
  7312          <mapping>
  7313                                                                        
  7314           <property>
  7315            narrative
  7316           </property >
  7317                                                                        
  7318           <xpath>
  7319            .
  7320           </xpath>
  7321                                                                        
  7322           <ifNotNull >
  7323                                                                                  
  7324            <action 
  7325             action="ap pendValue"
  7326            >
  7327              with Prov ider Comme nts 
  7328            </action>
  7329                                                                                  
  7330            <action 
  7331             action="ap pendValue"
  7332            />
  7333                                                                         
  7334           </ifNotNul l>
  7335                                                               
  7336          </mapping>
  7337                                                     
  7338         </mappings >
  7339                                            
  7340        </mapping>
  7341                                           
  7342        <mapping>
  7343                                                    
  7344         <property 
  7345          optional=" true"
  7346         >
  7347          arrivalDat eTime
  7348         </property >
  7349                                                    
  7350         <xpath>
  7351          cda:td/cda :content[@ ID='endArr ival']
  7352         </xpath>
  7353                                                    
  7354         <ifNotNull >
  7355                                                              
  7356          <action 
  7357           action="se tAttribute
  7358           attribute= "ID" 
  7359           indexed="t rue"
  7360          >
  7361           endArrival
  7362          </action>
  7363                                                              
  7364          <action 
  7365           action="se tValue"
  7366          />
  7367                                                     
  7368         </ifNotNul l>
  7369                                                    
  7370         <ifNull>
  7371                                                              
  7372          <action 
  7373           action="se tAttribute
  7374           attribute= "ID" 
  7375           indexed="t rue"
  7376          >
  7377           endArrival
  7378          </action>
  7379                                                     
  7380         </ifNull>
  7381                                            
  7382        </mapping>
  7383                                           
  7384        <mapping>
  7385                                                    
  7386         <property 
  7387          optional=" true"
  7388         >
  7389          dischargeD ateTime
  7390         </property >
  7391                                                    
  7392         <xpath>
  7393          cda:td/cda :content[@ ID='endDep arture']
  7394         </xpath>
  7395                                                    
  7396         <ifNotNull >
  7397                                                              
  7398          <action 
  7399           action="se tAttribute
  7400           attribute= "ID" 
  7401           indexed="t rue"
  7402          >
  7403           endDepatur e
  7404          </action>
  7405                                                              
  7406          <action 
  7407           action="se tValue"
  7408          />
  7409                                                     
  7410         </ifNotNul l>
  7411                                                    
  7412         <ifNull>
  7413                                                              
  7414          <action 
  7415           action="se tAttribute
  7416           attribute= "ID" 
  7417           indexed="t rue"
  7418          >
  7419           endDepatur e
  7420          </action>
  7421                                                     
  7422         </ifNull>
  7423                                            
  7424        </mapping>
  7425                                           
  7426        <mapping>
  7427                                                    
  7428         <property 
  7429          optional=" true"
  7430         >
  7431          primaryPro vider
  7432         </property >
  7433                                                    
  7434         <xpath>
  7435          cda:td/cda :content[@ ID='endPro vider']
  7436         </xpath>
  7437                                                    
  7438         <ifNotNull >
  7439                                                              
  7440          <action 
  7441           action="se tAttribute
  7442           attribute= "ID" 
  7443           indexed="t rue"
  7444          >
  7445           endProvide r
  7446          </action>
  7447                                                              
  7448          <action 
  7449           action="se tValue"
  7450          />
  7451                                                     
  7452         </ifNotNul l>
  7453                                                    
  7454         <ifNull>
  7455                                                              
  7456          <action 
  7457           action="se tAttribute
  7458           attribute= "ID" 
  7459           indexed="t rue"
  7460          >
  7461           endProvide r
  7462          </action>
  7463                                                     
  7464         </ifNull>
  7465                                            
  7466        </mapping>
  7467                                           
  7468        <mapping>
  7469                                                    
  7470         <property>
  7471          facility.n ame
  7472         </property >
  7473                                                    
  7474         <xpath>
  7475          cda:td/cda :content[@ ID='endSou rce']
  7476         </xpath>
  7477                                                    
  7478         <ifNotNull >
  7479                                                              
  7480          <action 
  7481           action="se tAttribute
  7482           attribute= "ID" 
  7483           indexed="t rue"
  7484          >
  7485           endSource
  7486          </action>
  7487                                                              
  7488          <action 
  7489           action="se tValue"
  7490          />
  7491                                                     
  7492         </ifNotNul l>
  7493                                            
  7494        </mapping>
  7495                                  
  7496       </mappings >
  7497                        
  7498      </mapping>
  7499                       
  7500      <!-- ENCOU NTERS -->
  7501                       
  7502      <mapping>
  7503                                 
  7504       <property 
  7505        collection ="true" 
  7506        optional=" true"
  7507       >
  7508        visits
  7509       </property >
  7510                                 
  7511       <xpath>
  7512        /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 . IP         ']
  7513       </xpath>
  7514                                 
  7515       <ifNotNull >
  7516                                           
  7517        <action 
  7518         action="ev aluateMapp ings" 
  7519         relative=" cda:sectio n/cda:entr y"
  7520        />
  7521                                  
  7522       </ifNotNul l>
  7523                                 
  7524       <ifNull>
  7525                                           
  7526        <action 
  7527         action="re move"
  7528        />
  7529                                  
  7530       </ifNull>
  7531                                 
  7532       <mappings>
  7533                                           
  7534        <mapping>
  7535                                                    
  7536         <property 
  7537          optional=" true"
  7538         >
  7539          type.code
  7540         </property >
  7541                                                    
  7542         <xpath>
  7543          cda:encoun ter/cda:co de
  7544         </xpath>
  7545                                                    
  7546         <ifNotNull >
  7547                                                              
  7548          <action 
  7549           action="se tAttribute
  7550           attribute= "code"
  7551          />
  7552                                                              
  7553          <action 
  7554           action="se tAttribute
  7555           attribute= "displayNa me" 
  7556           property=" type.name"
  7557          />
  7558                                                     
  7559         </ifNotNul l>
  7560                                                    
  7561         <ifNull>
  7562                                                              
  7563          <action 
  7564           action="re moveAttrib utes"
  7565          />
  7566                                                              
  7567          <action 
  7568           action="se tAttribute
  7569           attribute= "nullFlavo r"
  7570          >
  7571           UNK
  7572          </action>
  7573                                                     
  7574         </ifNull>
  7575                                            
  7576        </mapping>
  7577                                           
  7578        <mapping>
  7579                                                    
  7580         <property>
  7581          stopCode.n ame
  7582         </property >
  7583                                                    
  7584         <xpath>
  7585          cda:encoun ter/cda:co de/cda:ori ginalText/ cda:refere nce
  7586         </xpath>
  7587                                                    
  7588         <ifNotNull >
  7589                                                              
  7590          <action 
  7591           action="se tAttribute
  7592           attribute= "value" 
  7593           indexed="t rue"
  7594          >
  7595           #endEncoun terDescrip tion
  7596          </action>
  7597                                                     
  7598         </ifNotNul l>
  7599                                                    
  7600         <ifNull>
  7601                                                              
  7602          <action 
  7603           action="se tAttribute
  7604           attribute= "value" 
  7605           indexed="t rue"
  7606          >
  7607           #endEncoun terDescrip tion
  7608          </action>
  7609                                                     
  7610         </ifNull>
  7611                                            
  7612        </mapping>
  7613                                           
  7614        <mapping>
  7615                                                    
  7616         <property>
  7617          dateTime
  7618         </property >
  7619                                                    
  7620         <xpath>
  7621          cda:encoun ter/cda:ef fectiveTim e/cda:low
  7622         </xpath>
  7623                                                    
  7624         <ifNotNull >
  7625                                                              
  7626          <action 
  7627           action="se tAttribute
  7628           attribute= "value"
  7629          />
  7630                                                     
  7631         </ifNotNul l>
  7632                                            
  7633        </mapping>
  7634                                           
  7635        <mapping>
  7636                                                    
  7637         <property 
  7638          optional=" true"
  7639         >
  7640          primaryPro vider
  7641         </property >
  7642                                                    
  7643         <xpath>
  7644          cda:encoun ter/cda:pe rformer
  7645         </xpath>
  7646                                                    
  7647         <ifNotNull >
  7648                                                              
  7649          <action 
  7650           action="se tValue" 
  7651           relative=" cda:assign edEntity/c da:assigne dPerson/cd a:name"
  7652          />
  7653                                                     
  7654         </ifNotNul l>
  7655                                                    
  7656         <ifNull>
  7657                                                              
  7658          <action 
  7659           action="re move"
  7660          />
  7661                                                     
  7662         </ifNull>
  7663                                            
  7664        </mapping>
  7665                                           
  7666        <mapping>
  7667                                                    
  7668         <property 
  7669          optional=" true"
  7670         >
  7671          arrivalDat eTime
  7672         </property >
  7673                                                    
  7674         <xpath>
  7675          cda:encoun ter/cda:pa rticipant/ cda:time/c da:low
  7676         </xpath>
  7677                                                    
  7678         <ifNotNull >
  7679                                                              
  7680          <action 
  7681           action="se tAttribute
  7682           attribute= "value"
  7683          />
  7684                                                     
  7685         </ifNotNul l>
  7686                                                    
  7687         <ifNull>
  7688                                                              
  7689          <action 
  7690           action="re moveAttrib utes"
  7691          />
  7692                                                              
  7693          <action 
  7694           action="se tAttribute
  7695           attribute= "nullFlavo r"
  7696          >
  7697           UNK
  7698          </action>
  7699                                                     
  7700         </ifNull>
  7701                                            
  7702        </mapping>
  7703                                           
  7704        <mapping>
  7705                                                    
  7706         <property 
  7707          optional=" true"
  7708         >
  7709          dischargeD ateTime
  7710         </property >
  7711                                                    
  7712         <xpath>
  7713          cda:encoun ter/cda:pa rticipant/ cda:time/c da:high
  7714         </xpath>
  7715                                                    
  7716         <ifNotNull >
  7717                                                              
  7718          <action 
  7719           action="se tAttribute
  7720           attribute= "value"
  7721          />
  7722                                                     
  7723         </ifNotNul l>
  7724                                                    
  7725         <ifNull>
  7726                                                              
  7727          <action 
  7728           action="re moveAttrib utes"
  7729          />
  7730                                                              
  7731          <action 
  7732           action="se tAttribute
  7733           attribute= "nullFlavo r"
  7734          >
  7735           UNK
  7736          </action>
  7737                                                     
  7738         </ifNull>
  7739                                            
  7740        </mapping>
  7741                                           
  7742        <mapping>
  7743                                                    
  7744         <property 
  7745          optional=" true"
  7746         >
  7747          reasonText
  7748         </property >
  7749                                                    
  7750         <xpath>
  7751          cda:encoun ter/cda:en tryRelatio nship[@typ eCode='RSO N']/cda:ob servation/ cda:text
  7752         </xpath>
  7753                                                    
  7754         <ifNotNull >
  7755                                                              
  7756          <action 
  7757           action="se tAttribute
  7758           relative=" cda:refere nce" 
  7759           attribute= "value" 
  7760           indexed="t rue"
  7761          >
  7762           #endReason
  7763          </action>
  7764                                                     
  7765         </ifNotNul l>
  7766                                                    
  7767         <ifNull>
  7768                                                              
  7769          <action 
  7770           action="se tAttribute
  7771           relative=" cda:refere nce" 
  7772           attribute= "value" 
  7773           indexed="t rue"
  7774          >
  7775           #endReason
  7776          </action>
  7777                                                     
  7778         </ifNull>
  7779                                            
  7780        </mapping>
  7781                                           
  7782        <mapping>
  7783                                                    
  7784         <property>
  7785          facility.c ode
  7786         </property >
  7787                                                    
  7788         <xpath>
  7789          cda:encoun ter/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:id
  7790         </xpath>
  7791                                                    
  7792         <ifNotNull >
  7793                                                              
  7794          <action 
  7795           action="se tAttribute
  7796           attribute= "extension "
  7797          />
  7798                                                     
  7799         </ifNotNul l>
  7800                                            
  7801        </mapping>
  7802                                           
  7803        <mapping>
  7804                                                    
  7805         <property>
  7806          facility.n ame
  7807         </property >
  7808                                                    
  7809         <xpath>
  7810          cda:encoun ter/cda:au thor/cda:a ssignedAut hor/cda:re presentedO rganizatio n/cda:name
  7811         </xpath>
  7812                                                    
  7813         <ifNotNull >
  7814                                                              
  7815          <action 
  7816           action="se tValue"
  7817          />
  7818                                                     
  7819         </ifNotNul l>
  7820                                            
  7821        </mapping>
  7822                                  
  7823       </mappings >
  7824                        
  7825      </mapping>
  7826              
  7827     </mappings >
  7828   </template >