3175. EPMO Open Source Coordination Office Redaction File Detail Report

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

3175.1 Files compared

# Location File Last Modified
1 Fri Jun 9 19:49:55 2017 UTC
2 eHealth_Exch (eHealth Exchange Enhancements) Build 3 docs & code_May_2017.zip\VAP_CIF_CODE0502.zip\VAP_CIF_CODE0502\VAP_CIF_CODE0502\nvap-client\src\main\resources\gov\va\nvap\privacy\data\xsl ConsentDirectiveDocumentTemplate.xsl Fri Apr 21 20:03:26 2017 UTC

3175.2 Comparison summary

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

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

3175.4 Active regular expressions

No regular expressions were active.

3175.5 Comparison detail

        1   <?xml 
        2     version="1 .0" 
        3     encoding=" UTF-8"
        4   ?>
        5   <!-- Priva cy Consent  Directive  CDA R2 XM L Form. Th ere is no  known impl ementation  
        6           of  the form  when this  XSL was cr eated. The  document  structure  was create
        7           by  hand and  may or may  not be in  complianc e with the  specifica tions. Val idation: 
        8           Th e JAXB POC D_MT000040 .xsd valid ates the d ocument. R eference:  For more i nformation  
        9           on  HL7 CDA p lease visi t http://w ww.hl7.org /implement /standards /cda.cfm F or 
        10           mo re informa tion on Pr ivacy Cons ent Direct ive CDA R2  XML Form,  please vi sit 
        11           ht tp://gforg e.hl7.org/ gf/downloa d/frsrelea se/611/669 2/CDAR2_CD _IG_D1_201 0JAN.pdf 
        12           Au thor: Asha  Amritraj  Created By : Asha Amr itraj Crea ted Date:  June 17 20 11 
        13           "I f its hard  to write,  it must b e hard to  read :-)"  -->
        14   <xsl:style sheet 
        15     version="2 .0"
        16           
        17     xmlns:xsl= "http://ww w.w3.org/1 999/XSL/Tr ansform" 
        18     xmlns:t="h ttp://gov/ va/nvap/pr ivacy/data "
        19           
        20     exclude-re sult-prefi xes="t"
        21   >
        22    
        23             
        24     <xsl:templ ate 
        25      name="Cons entDirecti veDocument Template"
        26     >
        27     
        28                       
        29      <xsl:param  
        30       name="docI d" 
        31      />
        32                       
        33      <xsl:param  
        34       name="effe ctiveDateT ime" 
        35      />
        36                       
        37      <xsl:param  
        38       name="icn"  
        39       select="ef fectiveDat eTime" 
        40      />
        41                       
        42      <xsl:param  
        43       name="pati entRoleStr eetAddress Line" 
        44      />
        45                       
        46      <xsl:param  
        47       name="pati entRoleCit y" 
        48      />
        49                       
        50      <xsl:param  
        51       name="pati entRoleSta te" 
        52      />
        53                       
        54      <xsl:param  
        55       name="pati entRolePos talCode" 
        56      />
        57                       
        58      <xsl:param  
        59       name="pati entRoleCou ntry" 
        60      />
        61                       
        62      <xsl:param  
        63       name="pati entRoleTel ecom" 
        64      />
        65                       
        66      <xsl:param  
        67       name="pati entRoleGiv enName" 
        68      />
        69                       
        70      <xsl:param  
        71       name="pati entRoleSsn
        72      />
        73                       
        74      <xsl:param  
        75       name="pati entRoleFam ilyName" 
        76      />
        77                       
        78      <xsl:param  
        79       name="pati entRoleMid dleName" 
        80      />
        81                       
        82      <xsl:param  
        83       name="pati entRoleSuf fix" 
        84      />
        85                       
        86      <xsl:param  
        87       name="pati entRolePre fix" 
        88      />
        89                       
        90      <xsl:param  
        91       name="pati entRoleGiv enNameAlia s" 
        92      />
        93                       
        94      <xsl:param  
        95       name="pati entRoleFam ilyNameAli as" 
        96      />
        97                       
        98      <xsl:param  
        99       name="pati entRoleMid dleNameAli as" 
        100      />
        101                       
        102      <xsl:param  
        103       name="pati entRoleSuf fixAlias" 
        104      />
        105                       
        106      <xsl:param  
        107       name="pati entRolePre fixAlias" 
        108      />
        109                       
        110      <xsl:param  
        111       name="pati entRoleGen derCode" 
        112      />
        113                       
        114      <xsl:param  
        115       name="pati entRoleGen derDisplay Name" 
        116      />
        117                       
        118      <xsl:param  
        119       name="pati entRoleGen derDisplay Text" 
        120      />
        121                       
        122      <xsl:param  
        123       name="pati entRoleDob
        124      />
        125                       
        126      <xsl:param  
        127       name="pati entRoleMar italStatus DisplayTex t" 
        128      />
        129                       
        130      <xsl:param  
        131       name="pati entRoleMar italStatus DisplayNam e" 
        132      />
        133                       
        134      <xsl:param  
        135       name="pati entRoleMar italStatus Code" 
        136      />
        137                       
        138      <xsl:param  
        139       name="pati entRoleEth nicGroupCo deDisplayT ext" 
        140      />
        141     
        142                       
        143      <xsl:param  
        144       name="pati entRolePro viderOrgan izationNum ber" 
        145      />
        146                       
        147      <xsl:param  
        148       name="pati entRolePro viderOrgan izationOid
        149      />
        150                       
        151      <xsl:param  
        152       name="pati entRolePro viderOrgan izationNam e" 
        153      />
        154     
        155                       
        156      <xsl:param  
        157       name="auth orPersonTi me" 
        158      />
        159                       
        160      <xsl:param  
        161       name="auth orPersonOr gOid" 
        162      />
        163                       
        164      <xsl:param  
        165       name="auth orPersonOi d" 
        166      />
        167                       
        168      <xsl:param  
        169       name="auth orPersonGi venName" 
        170      />
        171                       
        172      <xsl:param  
        173       name="auth orPersonFa milyName" 
        174      />
        175                       
        176      <xsl:param  
        177       name="auth orPersonSu ffix" 
        178      />
        179                       
        180      <xsl:param  
        181       name="auth orPersonPr efix" 
        182      />
        183                       
        184      <xsl:param  
        185       name="auth orPersonFa cilityNumb er" 
        186      />
        187                       
        188      <xsl:param  
        189       name="auth orPersonFa cilityOid"  
        190      />
        191                       
        192      <xsl:param  
        193       name="auth orPersonFa cilityName
        194      />
        195                       
        196      <xsl:param  
        197       name="auth orPersonTe lecom" 
        198      />
        199                       
        200      <xsl:param  
        201       name="auth orPersonSt reetAddres sLine" 
        202      />
        203                       
        204      <xsl:param  
        205       name="auth orPersonCi ty" 
        206      />
        207                       
        208      <xsl:param  
        209       name="auth orPersonSt ate" 
        210      />
        211                       
        212      <xsl:param  
        213       name="auth orPersonPo stalCode" 
        214      />
        215                       
        216      <xsl:param  
        217       name="auth orPersonCo untry" 
        218      />
        219     
        220     
        221                       
        222      <xsl:param  
        223       name="auth orAssigned ScannerTim e" 
        224      />
        225                       
        226      <xsl:param  
        227       name="auth orAssigned ScannerOrg Oid" 
        228      />
        229                       
        230      <xsl:param  
        231       name="auth orAssigned ScannerStr eetAddress Line" 
        232      />
        233                       
        234      <xsl:param  
        235       name="auth orAssigned ScannerCit y" 
        236      />
        237                       
        238      <xsl:param  
        239       name="auth orAssigned ScannerSta te" 
        240      />
        241                       
        242      <xsl:param  
        243       name="auth orAssigned ScannerPos talCode" 
        244      />
        245                       
        246      <xsl:param  
        247       name="auth orAssigned ScannerCou ntry" 
        248      />
        249                       
        250      <xsl:param  
        251       name="auth orAssigned ScannerTel ecom" 
        252      />
        253                       
        254      <xsl:param  
        255       name="auth orAssigned ScannerDev iceCode" 
        256      />
        257                       
        258      <xsl:param  
        259       name="auth orAssigned ScannerDev iceName" 
        260      />
        261                       
        262      <xsl:param  
        263       name="auth orAssigned ScannerMan ufacturerM odelName" 
        264      />
        265                       
        266      <xsl:param  
        267       name="auth orAssigned ScannerSof twareName"  
        268      />
        269                       
        270      <xsl:param  
        271       name="auth orRepresen tedScanner OrgOid" 
        272      />
        273                       
        274      <xsl:param  
        275       name="auth orRepresen tedScanner SourceName
        276      />
        277                       
        278      <xsl:param  
        279       name="auth orRepresen tedScanner Telecom" 
        280      />
        281                       
        282      <xsl:param  
        283       name="auth orRepresen tedScanner StreetAddr essLine" 
        284      />
        285                       
        286      <xsl:param  
        287       name="auth orRepresen tedScanner City" 
        288      />
        289                       
        290      <xsl:param  
        291       name="auth orRepresen tedScanner State" 
        292      />
        293                       
        294      <xsl:param  
        295       name="auth orRepresen tedScanner PostalCode
        296      />
        297                       
        298      <xsl:param  
        299       name="auth orRepresen tedScanner Country" 
        300      />
        301     
        302                       
        303      <xsl:param  
        304       name="data EntererTim e" 
        305      />
        306                       
        307      <xsl:param  
        308       name="data EntererSta tionNumber
        309      />
        310                       
        311      <xsl:param  
        312       name="data EntererOid
        313      />
        314                       
        315      <xsl:param  
        316       name="data EntererAut horName" 
        317      />
        318     
        319                       
        320      <xsl:param  
        321       name="cust odianOid" 
        322      />
        323                       
        324      <xsl:param  
        325       name="cust odianName"  
        326      />
        327                       
        328      <xsl:param  
        329       name="cust odianTelec om" 
        330      />
        331                       
        332      <xsl:param  
        333       name="cust odianStree tAddressLi ne" 
        334      />
        335                       
        336      <xsl:param  
        337       name="cust odianCity"  
        338      />
        339                       
        340      <xsl:param  
        341       name="cust odianState
        342      />
        343                       
        344      <xsl:param  
        345       name="cust odianPosta lCode" 
        346      />
        347                       
        348      <xsl:param  
        349       name="cust odianCount ry" 
        350      />
        351     
        352     
        353                       
        354      <xsl:param  
        355       name="info rmationRec ipientOid"  
        356      />
        357                       
        358      <xsl:param  
        359       name="info rmationRec ipientId" 
        360      />
        361                       
        362      <xsl:param  
        363       name="info rmationRec ipientStre etAddressL ine" 
        364      />
        365                       
        366      <xsl:param  
        367       name="info rmationRec ipientCity
        368      />
        369                       
        370      <xsl:param  
        371       name="info rmationRec ipientStat e" 
        372      />
        373                       
        374      <xsl:param  
        375       name="info rmationRec ipientPost alCode" 
        376      />
        377                       
        378      <xsl:param  
        379       name="info rmationRec ipientCoun try" 
        380      />
        381                       
        382      <xsl:param  
        383       name="info rmationRec ipientGive nName" 
        384      />
        385                       
        386      <xsl:param  
        387       name="info rmationRec ipientFami lyName" 
        388      />
        389                       
        390      <xsl:param  
        391       name="info rmationRec ipientSuff ix" 
        392      />
        393                       
        394      <xsl:param  
        395       name="info rmationRec ipientPref ix" 
        396      />
        397                       
        398      <xsl:param  
        399       name="info rmationRec ipientRece ivedOrgani zationOid"  
        400      />
        401                       
        402      <xsl:param  
        403       name="info rmationRec ipientRece ivedOrgani zationName
        404      />
        405     
        406                       
        407      <xsl:param  
        408       name="prev iousConsen tDirective Id" 
        409      />
        410     
        411                       
        412      <xsl:param  
        413       name="comp onentStruc turedNarra tiveText" 
        414      />
        415                       
        416      <xsl:param  
        417       name="comp onentPurpo seOfUseCod e" 
        418      />
        419                       
        420      <xsl:param  
        421       name="comp onentPurpo seOfUseDis playName" 
        422      />
        423                       
        424      <xsl:param  
        425       name="comp onentStatu sCode" 
        426      />
        427                       
        428      <xsl:param  
        429       name="comp onentInfor mantEntity Oid" 
        430      />
        431                       
        432      <xsl:param  
        433       name="comp onentInfor mantEntity Id" 
        434      />
        435                       
        436      <xsl:param  
        437       name="comp onentInfor mantEntity Name" 
        438      />
        439                       
        440      <xsl:param  
        441       name="comp onentAssig nedEntityT elecom" 
        442      />
        443                       
        444      <xsl:param  
        445       name="comp onentInfor mantEntity StreetAddr essLine" 
        446      />
        447                       
        448      <xsl:param  
        449       name="comp onentInfor mantEntity City" 
        450      />
        451                       
        452      <xsl:param  
        453       name="comp onentInfor mantEntity State" 
        454      />
        455                       
        456      <xsl:param  
        457       name="comp onentInfor mantEntity PostalCode
        458      />
        459                       
        460      <xsl:param  
        461       name="comp onentInfor mantEntity Country" 
        462      />
        463     
        464                       
        465      <xsl:param  
        466       name="lega lAuthentic atorTime" 
        467      />
        468                       
        469      <xsl:param  
        470       name="lega lAuthentic atorUserId
        471      />
        472                       
        473      <xsl:param  
        474       name="lega lAuthentic atorEntity Oid" 
        475      />
        476                       
        477      <xsl:param  
        478       name="lega lAuthentic atorStreet AddressLin e" 
        479      />
        480                       
        481      <xsl:param  
        482       name="lega lAuthentic atorCity" 
        483      />
        484                       
        485      <xsl:param  
        486       name="lega lAuthentic atorState"  
        487      />
        488                       
        489      <xsl:param  
        490       name="lega lAuthentic atorPostal Code" 
        491      />
        492                       
        493      <xsl:param  
        494       name="lega lAuthentic atorCountr y" 
        495      />
        496                       
        497      <xsl:param  
        498       name="lega lAuthentic atorTeleco m" 
        499      />
        500                       
        501      <xsl:param  
        502       name="lega lAuthentic atorGivenN ame" 
        503      />
        504                       
        505      <xsl:param  
        506       name="lega lAuthentic atorFamily Name" 
        507      />
        508                       
        509      <xsl:param  
        510       name="lega lAuthentic atorSuffix
        511      />
        512                       
        513      <xsl:param  
        514       name="lega lAuthentic atorPrefix
        515      />
        516     
        517                       
        518      <xsl:param  
        519       name="docu mentationR ootId" 
        520      />
        521                       
        522      <xsl:param  
        523       name="docu mentationB eginTime" 
        524      />
        525                       
        526      <xsl:param  
        527       name="docu mentationE ndTime" 
        528      />
        529     
        530                       
        531      <!-- Multi ple Partic ipant -->
        532                       
        533      <xsl:param  
        534       name="part icipant" 
        535      />
        536     
        537                       
        538      <xsl:param  
        539       name="scan nedConsent DirectiveD ocumentBas e64Text" 
        540      />
        541                       
        542      <xsl:param  
        543       name="alte rnatePolic yLanguageR epresentat ionText" 
        544      />
        545     
        546                       
        547      <xsl:param  
        548       name="opto utReason" 
        549      />
        550     
        551     
        552                       
        553      <ClinicalD ocument 
        554       xmlns="urn :hl7-org:v 3"
        555                                
        556       xmlns:xsi= "http://ww w.w3.org/2 001/XMLSch ema-instan ce" 
        557       classCode= "DOCCLIN"
        558                                
        559       moodCode=" EVN"
        560      >
        561                                 
        562       <!-- Conse nt Directi ve DSTU He ader -->
        563                                 
        564       <realmCode  
        565        code="US" 
        566       />
        567                                 
        568       <typeId 
        569        root="2.16 .840.1.113 883.1.3" 
        570        extension= "09230" 
        571       />
        572                                 
        573       <!-- Gener al Header  Constraint s -->
        574                                 
        575       <templateI
        576        root="2.16 .840.1.113 883.10.20. 3" 
        577       />
        578                                 
        579       <!-- Conse nt Directi ve Header  Constraint s -->
        580                                 
        581       <templateI
        582        root="2.16 .840.1.113 883.3.445. 1" 
        583       />
        584                                 
        585       <!-- Docum ent instan ce id -->
        586                                 
        587       <!-- 0.03  CDA DOCUME NT IDENTIF IER, id=VA  OID, exte nsion=syst em-generat ed -->
        588                                 
        589       <id 
        590        extension= "{$docId}"  
        591        root="2.16 .840.1.113 883.4.349"  
        592       />
        593                                 
        594       <!-- 0.04  CDA DOCUME NT CODE ,  REQUIRED,  LOINC -->
        595                                 
        596       <!-- Priva cy Policy  Acknowledg ement Docu ment LOINC  Type -->
        597                                 
        598       <code 
        599        code="5701 6-8" 
        600        codeSystem ="2.16.840 .1.113883. 6.1"
        601                                          
        602        codeSystem Name="LOIN C" 
        603        displayNam e="Privacy  Policy Ac knowledgem ent Docume nt" 
        604       />
        605                                 
        606       <!-- 0.05  CDA DOCUME NAT TITLE,  REQUIRED  -->
        607                                 
        608       <!-- Docum ent Title  -->
        609                                 
        610       <title 
        611        representa tion="TXT"  
        612        mediaType= "text/plai n"
        613       >
        614        Department  of Vetera ns
        615                                           Affairs  Consent Au thorizatio n Form
        616       </title>
        617                                 
        618       <!-- 0.07  DOCUMENT T IMESTAMP,  REQUIRED,  Note Signa ture Date/ Time -->
        619                                 
        620       <!-- Docum ent date/t ime -->
        621                                 
        622       <effective Time 
        623        value="{$e ffectiveDa teTime}" 
        624       />
        625                                 
        626       <!-- 0.06  CDA CONFID ENTIALITY  CODE, REQU IRED -->
        627                                 
        628       <confident ialityCode  
        629        code="N" 
        630       />
        631                                 
        632       <!-- 0.08  CDA DOCUME NT LANGUAG E, REQUIRE D -->
        633                                 
        634       <languageC ode 
        635        code="en-U S" 
        636       />
        637                                 
        638       <!-- Clien t/Record T arget Refe rence -->
        639                                 
        640       <!-- ***** ********** ********** ********** ********** ********** * PERSON I NFORMATION  
        641                                          CONTENT  MODULE, RE QUIRED *** ********** ********** ********** ********** ********** *** -->
        642                                 
        643       <recordTar get>
        644                                           
        645        <patientRo le>
        646                                                    
        647         <!-- 1.02  PERSON ID,  REQUIRED,  id=VA OID , extensio n=GUID -->
        648                                                    
        649         <id 
        650          extension= "{$icn}" 
        651          root="2.16 .840.1.113 883.4.349"  
        652         />
        653                                                    
        654         <id 
        655          extension= "{$patient RoleSsn}" 
        656          root="2.16 .840.1.113 883.4.1" 
        657         />
        658                                                    
        659         <!-- 1.03  PERSON ADD RESS-HOME  PERMANENT,  REQUIRED  -->
        660                                                    
        661         <addr 
        662          use="HP"
        663         >
        664                                                              
        665          <streetAdd ressLine>
        666                                                                        
        667           <xsl:value -of 
        668            select="$p atientRole StreetAddr essLine" 
        669           />
        670                                                               
        671          </streetAd dressLine>
        672                                                              
        673          <city>
        674                                                                        
        675           <xsl:value -of 
        676            select="$p atientRole City" 
        677           />
        678                                                               
        679          </city>
        680                                                              
        681          <state>
        682                                                                        
        683           <xsl:value -of 
        684            select="$p atientRole State" 
        685           />
        686                                                               
        687          </state>
        688                                                              
        689          <postalCod e>
        690                                                                        
        691           <xsl:value -of 
        692            select="$p atientRole PostalCode
        693           />
        694                                                               
        695          </postalCo de>
        696                                                              
        697          <country>
        698                                                                        
        699           <xsl:value -of 
        700            select="$p atientRole Country" 
        701           />
        702                                                               
        703          </country>
        704                                                     
        705         </addr>
        706                                                    
        707         <!-- 1.04  PERSON PHO NE/EMAIL/U RL, REQUIR ED (tel:+1 -760-222-5 555) -->
        708                                                    
        709         <telecom 
        710          use="HP" 
        711          value="{$p atientRole Telecom}" 
        712         />
        713                                                    
        714         <patient>
        715                                                              
        716          <!-- 1.05  PERSON NAM E LEGAL, R EQUIRED -- >
        717                                                              
        718          <name 
        719           use="L"
        720          >
        721                                                                        
        722           <given>
        723                                                                                  
        724            <xsl:value -of 
        725             select="$p atientRole GivenName"  
        726            />
        727                                                                         
        728           </given>
        729                                                                        
        730           <family>
        731                                                                                  
        732            <xsl:value -of 
        733             select="$p atientRole FamilyName
        734            />
        735                                                                         
        736           </family>
        737                                                                        
        738           <middle>
        739                                                                                  
        740            <xsl:value -of 
        741             select="$p atientRole MiddleName
        742            />
        743                                                                         
        744           </middle>
        745                                                                        
        746           <suffix>
        747                                                                                  
        748            <xsl:value -of 
        749             select="$p atientRole Suffix" 
        750            />
        751                                                                         
        752           </suffix>
        753                                                                        
        754           <prefix>
        755                                                                                  
        756            <xsl:value -of 
        757             select="$p atientRole Prefix" 
        758            />
        759                                                                         
        760           </prefix>
        761                                                               
        762          </name>
        763                                                              
        764          <!-- 1.05  PERSON NAM E Alias Na me, Option al -->
        765                                                              
        766          <name 
        767           use="P"
        768          >
        769                                                                        
        770           <given>
        771                                                                                  
        772            <xsl:value -of 
        773             select="$p atientRole GivenNameA lias" 
        774            />
        775                                                                         
        776           </given>
        777                                                                        
        778           <family>
        779                                                                                  
        780            <xsl:value -of 
        781             select="$p atientRole FamilyName Alias" 
        782            />
        783                                                                         
        784           </family>
        785                                                                        
        786           <middle>
        787                                                                                  
        788            <xsl:value -of 
        789             select="$p atientRole MiddleName Alias" 
        790            />
        791                                                                         
        792           </middle>
        793                                                                        
        794           <suffix>
        795                                                                                  
        796            <xsl:value -of 
        797             select="$p atientRole SuffixAlia s" 
        798            />
        799                                                                         
        800           </suffix>
        801                                                                        
        802           <prefix>
        803                                                                                  
        804            <xsl:value -of 
        805             select="$p atientRole PrefixAlia s" 
        806            />
        807                                                                         
        808           </prefix>
        809                                                               
        810          </name>
        811                                                              
        812          <!--1.06 G ENDER, REQ UIRED AND  REQUIRED T erminology  -->
        813                                                              
        814          <!-- When  Vista valu e is M, F,  send as H L7AdminGen derCode -- >
        815                                                              
        816          <!-- When  Vista valu e is "Unkn own", send  as gender Code nullF lavor=UNK"  -->
        817                                                              
        818          <administr ativeGende rCode 
        819           code="{$pa tientRoleG enderCode} "
        820                                                                       
        821           codeSystem ="2.16.840 .1.113883. 5.1" 
        822           codeSystem Name="Admi nistrative GenderCode "
        823                                                                       
        824           displayNam e="{$patie ntRoleGend erDisplayN ame}"
        825          >
        826                                                                        
        827           <originalT ext>
        828                                                                                  
        829            <xsl:value -of 
        830             select="$p atientRole GenderDisp layText" 
        831            />
        832                                                                         
        833           </original Text>
        834                                                               
        835          </administ rativeGend erCode>
        836                                                              
        837          <!-- 1.07  PERSON DAT E OF BIRTH , REQUIRED  -->
        838                                                              
        839          <birthTime  
        840           value="{$p atientRole Dob}" 
        841          />
        842                                                              
        843          <!-- 1.08  MARITAL ST ATUS, Opti onal-R2 -- >
        844                                                              
        845          <!-- VLER  SEG 1B: Se nd as HL7  MaritalSta tus -->
        846                                                              
        847          <maritalSt atusCode 
        848           code="{$pa tientRoleM aritalStat usCode}"
        849                                                                       
        850           codeSystem ="2.16.840 .1.113883. 5.2" 
        851           codeSystem Name="Mari talStatusC ode"
        852                                                                       
        853           displayNam e="{$patie ntRoleMari talStatusD isplayName }"
        854          >
        855                                                                        
        856           <originalT ext>
        857                                                                                  
        858            <xsl:value -of 
        859             select="$p atientRole MaritalSta tusDisplay Text" 
        860            />
        861                                                                         
        862           </original Text>
        863                                                               
        864          </maritalS tatusCode>
        865                                                              
        866          <!-- 1.09  RELIGIOUS  AFFILIATIO N, Optiona l, Removed  b/c data  not yet 
        867                                                                       avai lable via  VA VIstA R PCs -->
        868                                                              
        869          <!-- 1.10  RACE, Opti onal -->
        870                                                              
        871          <!-- 1.10  RACE as or iginalText  per NHIN  Core Conte nt Specifi cation 
        872                                                                       b/c  VA code tr anslation  not yet av ailable -- >
        873                                                              
        874          <raceCode 
        875           codeSystem ="2.16.840 .1.113883. 6.238"
        876                                                                       
        877           codeSystem Name="CDC  Race and E thnicity" 
        878           nullFlavor ="UNK"
        879          >
        880                                                               
        881          </raceCode >
        882                                                              
        883          <!-- 1.11  ETHNICITY,  Optional  -->
        884                                                              
        885          <!-- 1.11  ETHNICITY  as origina lText per  NHIN Core  Content Sp ecificatio
        886                                                                       b/c  VA code tr anslation  not yet av ailable -- >
        887                                                              
        888          <ethnicGro upCode 
        889           codeSystem ="2.16.840 .1.113883. 6.238"
        890                                                                       
        891           codeSystem Name="CDC  Race and E thnicity" 
        892           nullFlavor ="UNK"
        893          >
        894                                                                        
        895           <originalT ext>
        896                                                                                  
        897            <xsl:value -of 
        898             select="$p atientRole EthnicGrou pCodeDispl ayText" 
        899            />
        900                                                                         
        901           </original Text>
        902                                                               
        903          </ethnicGr oupCode>
        904                                                     
        905         </patient>
        906                                                    
        907         <providerO rganizatio n>
        908                                                              
        909          <!-- 2.07  ORGANIZATI ON ID, REQ UIRED IF K NOWN -->
        910                                                              
        911          <!-- AUTHO R ID (root  = VA OID,  extension  = VA Faci lity Nbr)  -->
        912                                                              
        913          <id 
        914           extension= "{$patient RoleProvid erOrganiza tionNumber }" 
        915           root="{$pa tientRoleP roviderOrg anizationO id}" 
        916          />
        917                                                              
        918          <!-- 2.08  INFORMATIO N SOURCE N AME, REQUI RED, VA Fa cility Nam e -->
        919                                                              
        920          <name>
        921                                                                        
        922           <xsl:value -of 
        923            select="$p atientRole ProviderOr ganization Name" 
        924           />
        925                                                               
        926          </name>
        927                                                              
        928          <!-- HITSP  C62 V1.1:  Assigned  Author Tel ecom Requi red, but V A VistA 
        929                                                                       data  not yet a vailable - ->
        930                                                              
        931          <telecom 
        932           nullFlavor ="UNK" 
        933          />
        934                                                              
        935          <!-- HITSP  C62 V1.1:  Assigned  Author Add ress Requi red, but V A VistA 
        936                                                                       data  not yet a vailable - ->
        937                                                              
        938          <addr />
        939                                                     
        940         </provider Organizati on>
        941                                            
        942        </patientR ole>
        943                                  
        944       </recordTa rget>
        945                                 
        946       <!-- Perso n and/or o rganizatio n issuing  the consen t directiv e form -->
        947      
        948                                 
        949       <xsl:if 
        950        test="$aut horPersonO id"
        951       >
        952                                           
        953        <author>
        954                                                    
        955         <!-- 2.01  AUTHOR TEM PLATE ID,  REQUIRED - ->
        956                                                    
        957         <templateI
        958          root="2.16 .840.1.113 883.3.445. 2" 
        959         />
        960                                                    
        961         <!-- Requi red functi on code -- >
        962                                                    
        963         <functionC ode 
        964          code="POAC ON"
        965                                                             
        966          displayNam e="healthc are power  of attorne y consent  author"
        967                                                             
        968          codeSystem ="2.16.840 .1.113883. 1.11.19930
        969          codeSystem Name="Cons enterParti cipationFu nction Dec ision Make r" 
        970         />
        971                                                    
        972         <!-- 2.02  AUTHOR TIM E, REQUIRE D -->
        973                                                    
        974         <time 
        975          value="{$a uthorPerso nTime}" 
        976         />
        977                                                    
        978         <assignedA uthor>
        979                                                              
        980          <!-- 2.03  AUTHOR ID,  REQUIRED  IF KNOWN - ->
        981                                                              
        982          <!-- AUTHO R ID (VA O ID) (autho rOID) -->
        983                                                              
        984          <id 
        985           extension= "{$authorP ersonOid}"  
        986           root="{$au thorPerson OrgOid}" 
        987          />
        988                                                              
        989          <assignedP erson 
        990           classCode= "PSN"
        991          >
        992                                                                        
        993           <!-- 2.04  AUTHOR NAM E, REQUIRE D -->
        994                                                                        
        995           <name>
        996                                                                                  
        997            <given>
        998                                                                                            
        999             <xsl:value -of 
        1000              select="$a uthorPerso nGivenName
        1001             />
        1002                                                                                   
        1003            </given>
        1004                                                                                  
        1005            <family>
        1006                                                                                            
        1007             <xsl:value -of 
        1008              select="$a uthorPerso nFamilyNam e" 
        1009             />
        1010                                                                                   
        1011            </family>
        1012                                                                                  
        1013            <suffix>
        1014                                                                                            
        1015             <xsl:value -of 
        1016              select="$a uthorPerso nSuffix" 
        1017             />
        1018                                                                                   
        1019            </suffix>
        1020                                                                                  
        1021            <prefix>
        1022                                                                                            
        1023             <xsl:value -of 
        1024              select="$a uthorPerso nPrefix" 
        1025             />
        1026                                                                                   
        1027            </prefix>
        1028                                                                         
        1029           </name>
        1030                                                               
        1031          </assigned Person>
        1032                                                              
        1033          <represent edOrganiza tion>
        1034                                                                        
        1035           <!-- 2.07  ORGANIZATI ON ID, REQ UIRED IF K NOWN -->
        1036                                                                        
        1037           <!-- AUTHO R ID (root  = VA OID,  extension  = VA Faci lity Nbr)  -->
        1038                                                                        
        1039           <id 
        1040            extension= "{$authorP ersonFacil ityNumber}
        1041            root="{$au thorPerson FacilityOi d}" 
        1042           />
        1043                                                                        
        1044           <!-- 2.08  INFORMATIO N SOURCE N AME, REQUI RED, VA Fa cility Nam e -->
        1045                                                                        
        1046           <name>
        1047                                                                                  
        1048            <xsl:value -of 
        1049             select="$a uthorPerso nFacilityN ame" 
        1050            />
        1051                                                                         
        1052           </name>
        1053                                                                        
        1054           <!-- HITSP  C62 V1.1:  Assigned  Author Tel ecom Requi red, but V A VistA 
        1055                                                                                 data n ot yet ava ilable -->
        1056                                                                        
        1057           <telecom 
        1058            value="{$a uthorPerso nTelecom}"  
        1059           />
        1060                                                                        
        1061           <!-- HITSP  C62 V1.1:  Assigned  Author Add ress Requi red, but V A VistA 
        1062                                                                                 data n ot yet ava ilable -->
        1063                                                                        
        1064           <addr>
        1065                                                                                  
        1066            <streetAdd ressLine>
        1067                                                                                            
        1068             <xsl:value -of 
        1069              select="$a uthorPerso nStreetAdd ressLine" 
        1070             />
        1071                                                                                   
        1072            </streetAd dressLine>
        1073                                                                                  
        1074            <city>
        1075                                                                                            
        1076             <xsl:value -of 
        1077              select="$a uthorPerso nCity" 
        1078             />
        1079                                                                                   
        1080            </city>
        1081                                                                                  
        1082            <state>
        1083                                                                                            
        1084             <xsl:value -of 
        1085              select="$a uthorPerso nState" 
        1086             />
        1087                                                                                   
        1088            </state>
        1089                                                                                  
        1090            <postalCod e>
        1091                                                                                            
        1092             <xsl:value -of 
        1093              select="$a uthorPerso nPostalCod e" 
        1094             />
        1095                                                                                   
        1096            </postalCo de>
        1097                                                                                  
        1098            <country>
        1099                                                                                            
        1100             <xsl:value -of 
        1101              select="$a uthorPerso nCountry" 
        1102             />
        1103                                                                                   
        1104            </country>
        1105                                                                         
        1106           </addr>
        1107                                                               
        1108          </represen tedOrganiz ation>
        1109                                                     
        1110         </assigned Author>
        1111                                            
        1112        </author>
        1113                                  
        1114       </xsl:if>
        1115                                 
        1116       <xsl:if 
        1117        test="$aut horAssigne dScannerOr gOid"
        1118       >
        1119                                           
        1120        <!-- ***** ********** ********** ********** ********** ********** * SCANNER 
        1121                                                    Header Sub -Section,  REQUIRED R epresents  the scanni ng device  and softwa re 
        1122                                                    used to pr oduce the  scanned co ntent **** ********** ********** ********** ********** ********** ** -->
        1123                                           
        1124        <author>
        1125                                                    
        1126         <!-- 3.01  AUTHOR TEM PLATE, REQ UIRED -->
        1127                                                    
        1128         <templateI
        1129          root="1.3. 6.1.4.1.19 376.1.2.20 .2" 
        1130         />
        1131                                                    
        1132         <!-- 3.02  AUTHOR TIM E, REQUIRE D, Must be  same as 0 .07-Docume nt Timesta mp -->
        1133                                                    
        1134         <time 
        1135          value="{$a uthorAssig nedScanner Time}" 
        1136         />
        1137                                                    
        1138         <assignedA uthor>
        1139                                                              
        1140          <!-- 3.03  AUTHOR ID  (VA OID),  REQUIRED - ->
        1141                                                              
        1142          <id 
        1143           root="{$au thorAssign edScannerO rgOid}" 
        1144          />
        1145                                                              
        1146          <!-- HITSP  C62 V1.1:  Assigned  Author Add ress Requi red, but V A VistA 
        1147                                                                       data  not yet a vailable - ->
        1148                                                              
        1149          <addr 
        1150           use="HP"
        1151          >
        1152                                                                        
        1153           <streetAdd ressLine>
        1154                                                                                  
        1155            <xsl:value -of 
        1156             select="$a uthorAssig nedScanner StreetAddr essLine" 
        1157            />
        1158                                                                         
        1159           </streetAd dressLine>
        1160                                                                        
        1161           <city>
        1162                                                                                  
        1163            <xsl:value -of 
        1164             select="$a uthorAssig nedScanner City" 
        1165            />
        1166                                                                         
        1167           </city>
        1168                                                                        
        1169           <state>
        1170                                                                                  
        1171            <xsl:value -of 
        1172             select="$a uthorAssig nedScanner State" 
        1173            />
        1174                                                                         
        1175           </state>
        1176                                                                        
        1177           <postalCod e>
        1178                                                                                  
        1179            <xsl:value -of 
        1180             select="$a uthorAssig nedScanner PostalCode
        1181            />
        1182                                                                         
        1183           </postalCo de>
        1184                                                                        
        1185           <country>
        1186                                                                                  
        1187            <xsl:value -of 
        1188             select="$a uthorAssig nedScanner Country" 
        1189            />
        1190                                                                         
        1191           </country>
        1192                                                               
        1193          </addr>
        1194                                                              
        1195          <!-- HITSP  C62 V1.1:  Assigned  Author Tel ecom Requi red, but V A VistA 
        1196                                                                       data  not yet a vailable - ->
        1197                                                              
        1198          <telecom 
        1199           use="HP" 
        1200           value="{$a uthorAssig nedScanner Telecom}" 
        1201          />
        1202                                                              
        1203          <assignedA uthoringDe vice>
        1204                                                                        
        1205           <!-- 3.04  DEVICE COD E, REQUIRE D -->
        1206                                                                        
        1207           <code 
        1208            code="WSD"  
        1209            codeSystem ="{$author AssignedSc annerDevic eCode}"
        1210                                                                                 
        1211            displayNam e="{$autho rAssignedS cannerDevi ceName}" 
        1212           />
        1213                                                                        
        1214           <!-- 3.05  DEVICE NAM E, REQUIRE D -->
        1215                                                                        
        1216           <manufactu rerModelNa me>
        1217                                                                                  
        1218            <xsl:value -of 
        1219             select="$a uthorAssig nedScanner Manufactur erModelNam e" 
        1220            />
        1221                                                                         
        1222           </manufact urerModelN ame>
        1223                                                                        
        1224           <!-- 3.06  SOFTWARE N AME, REQUI RED -->
        1225                                                                        
        1226           <softwareN ame>
        1227                                                                                  
        1228            <xsl:value -of 
        1229             select="$a uthorAssig nedScanner SoftwareNa me" 
        1230            />
        1231                                                                         
        1232           </software Name>
        1233                                                               
        1234          </assigned AuthoringD evice>
        1235                                                              
        1236          <represent edOrganiza tion>
        1237                                                                        
        1238           <!-- 3.07  ORGANIZATI ON ID (VA  OID), REQU IRED -->
        1239                                                                        
        1240           <id 
        1241            root="{$au thorRepres entedScann erOrgOid}"  
        1242           />
        1243                                                                        
        1244           <!-- 3.08  INFORMATIO N SOURCE N AME, REQUI RED -->
        1245                                                                        
        1246           <name>
        1247                                                                                  
        1248            <xsl:value -of 
        1249             select="$a uthorRepre sentedScan nerSourceN ame" 
        1250            />
        1251                                                                         
        1252           </name>
        1253                                                                        
        1254           <!-- HITSP  C62 V1.1:  Assigned  Author Tel ecom Requi red, but V A VistA 
        1255                                                                                 data n ot yet ava ilable -->
        1256                                                                        
        1257           <telecom 
        1258            use="HP" 
        1259            value="{$a uthorRepre sentedScan nerTelecom }" 
        1260           />
        1261                                                                        
        1262           <!-- 3.09  INFORMATIO N SOURCE A DDRESS, OP TIONAL -->
        1263                                                                        
        1264           <addr 
        1265            use="HP"
        1266           >
        1267                                                                                  
        1268            <streetAdd ressLine>
        1269                                                                                            
        1270             <xsl:value -of 
        1271              select="$a uthorRepre sentedScan nerStreetA ddressLine
        1272             />
        1273                                                                                   
        1274            </streetAd dressLine>
        1275                                                                                  
        1276            <city>
        1277                                                                                            
        1278             <xsl:value -of 
        1279              select="$a uthorRepre sentedScan nerCity" 
        1280             />
        1281                                                                                   
        1282            </city>
        1283                                                                                  
        1284            <state>
        1285                                                                                            
        1286             <xsl:value -of 
        1287              select="$a uthorRepre sentedScan nerState" 
        1288             />
        1289                                                                                   
        1290            </state>
        1291                                                                                  
        1292            <postalCod e>
        1293                                                                                            
        1294             <xsl:value -of 
        1295              select="$a uthorRepre sentedScan nerPostalC ode" 
        1296             />
        1297                                                                                   
        1298            </postalCo de>
        1299                                                                                  
        1300            <country>
        1301                                                                                            
        1302             <xsl:value -of 
        1303              select="$a uthorRepre sentedScan nerCountry
        1304             />
        1305                                                                                   
        1306            </country>
        1307                                                                         
        1308           </addr>
        1309                                                               
        1310          </represen tedOrganiz ation>
        1311                                                     
        1312         </assigned Author>
        1313                                            
        1314        </author>
        1315                                  
        1316       </xsl:if>
        1317                                 
        1318       <!-- ***** ********** ********** ********** ********** ********** * CLINICAL  
        1319                                          DOCUMENT  / DATA EN TERER (SCA NNER OPERA TOR), REQU IRED Data  Enterer in  VLER 
        1320                                          "virtual ly scanned " scenario  is softwa re, not a  person. ** ********** ********** ********** ********** ********** **** -->
        1321                                 
        1322       <xsl:if 
        1323        test="$dat aEntererTi me"
        1324       >
        1325                                           
        1326        <dataEnter er>
        1327                                                    
        1328         <!-- 4.01  DATA ENTER ER TEMPLAT E ID, REQU IRED -->
        1329                                                    
        1330         <templateI
        1331          root="1.3. 6.1.4.1.19 376.1.2.20 .3" 
        1332         />
        1333                                                    
        1334         <!-- 4.02  DATA ENTER ER TIME, R EQUIRED -- >
        1335                                                    
        1336         <time 
        1337          value="{$d ataEnterer Time}" 
        1338         />
        1339                                                    
        1340         <assignedE ntity>
        1341                                                              
        1342          <!-- 4.03  ENTITY ID,  REQUIRED,  Identifer  represent ing the so ftware 
        1343                                                                       (VA  OID, Stati on 200) -- >
        1344                                                              
        1345          <id 
        1346           extension= "{$dataEnt ererStatio nNumber}" 
        1347           root="{$da taEntererO id}" 
        1348          />
        1349                                                              
        1350          <assignedP erson>
        1351                                                                        
        1352           <!-- 4.04  AUTHOR NAM E, Not Req uired for  VLER Virtu ally scann ed scenari o -->
        1353                                                                        
        1354           <name>
        1355                                                                                  
        1356            <xsl:value -of 
        1357             select="$d ataEnterer AuthorName
        1358            />
        1359                                                                         
        1360           </name>
        1361                                                               
        1362          </assigned Person>
        1363                                                     
        1364         </assigned Entity>
        1365                                            
        1366        </dataEnte rer>
        1367                                  
        1368       </xsl:if>
        1369                                 
        1370       <!-- ***** ********** ********** ********** ********** ********** * CUSTODIA N, 
        1371                                          REQUIRED  ********* ********** ********** ********** ********** ******* -- >
        1372                                 
        1373       <xsl:if 
        1374        test="$cus todianOid"
        1375       >
        1376                                           
        1377        <custodian >
        1378                                                    
        1379         <assignedC ustodian>
        1380                                                              
        1381          <represent edCustodia nOrganizat ion>
        1382                                                                        
        1383           <!-- 5.01  CUSTODIAN  ID (VA OID ), REQUIRE D -->
        1384                                                                        
        1385           <id 
        1386            root="{$cu stodianOid }" 
        1387           />
        1388                                                                        
        1389           <!-- 5.02  CUSTODIAN  NAME, REQU IRED -->
        1390                                                                        
        1391           <name>
        1392                                                                                  
        1393            <xsl:value -of 
        1394             select="$c ustodianNa me" 
        1395            />
        1396                                                                         
        1397           </name>
        1398                                                                        
        1399           <!-- 5.03  - TELECOM,  REQUIRED,  but VA Vi stA data n ot yet ava ilable -->
        1400                                                                        
        1401           <telecom 
        1402            use="HP" 
        1403            value="{$c ustodianTe lecom}" 
        1404           />
        1405                                                                        
        1406           <!-- 5.04  CUSTODIAN  ADDRESS, O PTIONAL -- >
        1407                                                                        
        1408           <addr 
        1409            use="HP"
        1410           >
        1411                                                                                  
        1412            <streetAdd ressLine>
        1413                                                                                            
        1414             <xsl:value -of 
        1415              select="$c ustodianSt reetAddres sLine" 
        1416             />
        1417                                                                                   
        1418            </streetAd dressLine>
        1419                                                                                  
        1420            <city>
        1421                                                                                            
        1422             <xsl:value -of 
        1423              select="$c ustodianCi ty" 
        1424             />
        1425                                                                                   
        1426            </city>
        1427                                                                                  
        1428            <state>
        1429                                                                                            
        1430             <xsl:value -of 
        1431              select="$c ustodianSt ate" 
        1432             />
        1433                                                                                   
        1434            </state>
        1435                                                                                  
        1436            <postalCod e>
        1437                                                                                            
        1438             <xsl:value -of 
        1439              select="$c ustodianPo stalCode" 
        1440             />
        1441                                                                                   
        1442            </postalCo de>
        1443                                                                                  
        1444            <country>
        1445                                                                                            
        1446             <xsl:value -of 
        1447              select="$c ustodianCo untry" 
        1448             />
        1449                                                                                   
        1450            </country>
        1451                                                                         
        1452           </addr>
        1453                                                               
        1454          </represen tedCustodi anOrganiza tion>
        1455                                                     
        1456         </assigned Custodian>
        1457                                            
        1458        </custodia n>
        1459                                  
        1460       </xsl:if>
        1461      
        1462                                 
        1463       <xsl:if 
        1464        test="$inf ormationRe cipientOid "
        1465       >
        1466                                           
        1467        <!-- Infor mation Rec ipient -->
        1468                                           
        1469        <informati onRecipien
        1470         typeCode=" PRCP"
        1471        >
        1472                                                    
        1473         <intendedR ecipient 
        1474          classCode= "ASSIGNED"
        1475         >
        1476                                                              
        1477          <id 
        1478           root="{$in formationR ecipientOi d}" 
        1479           extension= "{$informa tionRecipi entId}" 
        1480          />
        1481                                                              
        1482          <addr 
        1483           use="HP"
        1484          >
        1485                                                                        
        1486           <streetAdd ressLine>
        1487                                                                                  
        1488            <xsl:value -of 
        1489             select="$i nformation RecipientS treetAddre ssLine" 
        1490            />
        1491                                                                         
        1492           </streetAd dressLine>
        1493                                                                        
        1494           <city>
        1495                                                                                  
        1496            <xsl:value -of 
        1497             select="$i nformation RecipientC ity" 
        1498            />
        1499                                                                         
        1500           </city>
        1501                                                                        
        1502           <state>
        1503                                                                                  
        1504            <xsl:value -of 
        1505             select="$i nformation RecipientS tate" 
        1506            />
        1507                                                                         
        1508           </state>
        1509                                                                        
        1510           <postalCod e>
        1511                                                                                  
        1512            <xsl:value -of 
        1513             select="$i nformation RecipientP ostalCode"  
        1514            />
        1515                                                                         
        1516           </postalCo de>
        1517                                                                        
        1518           <country>
        1519                                                                                  
        1520            <xsl:value -of 
        1521             select="$i nformation RecipientC ountry" 
        1522            />
        1523                                                                         
        1524           </country>
        1525                                                               
        1526          </addr>
        1527                                                              
        1528          <informati onRecipien
        1529           classCode= "PSN"
        1530                                                                       
        1531           determiner Code="INST ANCE"
        1532          >
        1533                                                                        
        1534           <name 
        1535            use="L"
        1536           >
        1537                                                                                  
        1538            <given>
        1539                                                                                            
        1540             <xsl:value -of 
        1541              select="$i nformation RecipientG ivenName" 
        1542             />
        1543                                                                                   
        1544            </given>
        1545                                                                                  
        1546            <family>
        1547                                                                                            
        1548             <xsl:value -of 
        1549              select="$i nformation RecipientF amilyName"  
        1550             />
        1551                                                                                   
        1552            </family>
        1553                                                                                  
        1554            <suffix>
        1555                                                                                            
        1556             <xsl:value -of 
        1557              select="$i nformation RecipientS uffix" 
        1558             />
        1559                                                                                   
        1560            </suffix>
        1561                                                                                  
        1562            <prefix>
        1563                                                                                            
        1564             <xsl:value -of 
        1565              select="$i nformation RecipientP refix" 
        1566             />
        1567                                                                                   
        1568            </prefix>
        1569                                                                         
        1570           </name>
        1571                                                               
        1572          </informat ionRecipie nt>
        1573                                                              
        1574          <receivedO rganizatio
        1575           classCode= "ORG"
        1576                                                                       
        1577           determiner Code="INST ANCE"
        1578          >
        1579                                                                        
        1580           <id 
        1581            root="{$in formationR ecipientRe ceivedOrga nizationOi d}" 
        1582           />
        1583                                                                        
        1584           <name>
        1585                                                                                  
        1586            <xsl:value -of 
        1587             select="$i nformation RecipientR eceivedOrg anizationN ame" 
        1588            />
        1589                                                                         
        1590           </name>
        1591                                                               
        1592          </received Organizati on>
        1593                                                     
        1594         </intended Recipient>
        1595                                            
        1596        </informat ionRecipie nt>
        1597                                  
        1598       </xsl:if>
        1599                                 
        1600       <!-- ***** ********** ********** ********** ********** ********** * LEGAL AU THENTICATO R, 
        1601                                          OPTIONAL  ********* ********** ********** ********** ********** ******* -- >
        1602                                 
        1603       <!-- Subst itute Deci sion Maker  or Patien t that sig ns the Con sent Direc tive -->
        1604                                 
        1605       <xsl:if 
        1606        test="$leg alAuthenti catorUserI d"
        1607       >
        1608                                           
        1609        <legalAuth enticator 
        1610         contextCon trolCode=" OP"
        1611                                                   
        1612         typeCode=" LA"
        1613        >
        1614                                                    
        1615         <!-- 6.01  AUTHENTICA TOR TIME,  REQUIRED - ->
        1616                                                    
        1617         <time 
        1618          value="{$l egalAuthen ticatorTim e}" 
        1619         />
        1620                                                    
        1621         <!-- 6.02  SIGNATURE  CODE, REQU IRED -->
        1622                                                    
        1623         <signature Code 
        1624          code="S" 
        1625         />
        1626                                                    
        1627         <assignedE ntity 
        1628          classCode= "ASSIGNED"
        1629         >
        1630                                                              
        1631          <!-- 6.03  ENTITY ID  (User ID),  REQUIRED  -->
        1632                                                              
        1633          <id 
        1634           extension= "{$legalAu thenticato rUserId}" 
        1635           root="{$le galAuthent icatorEnti tyOid}" 
        1636          />
        1637                                                              
        1638          <!-- Addre ss Require d for assi gnedEntity , but VA V istA data  not yet 
        1639                                                                       avai lable -->
        1640                                                              
        1641          <addr 
        1642           use="HP"
        1643          >
        1644                                                                        
        1645           <streetAdd ressLine>
        1646                                                                                  
        1647            <xsl:value -of 
        1648             select="$l egalAuthen ticatorStr eetAddress Line" 
        1649            />
        1650                                                                         
        1651           </streetAd dressLine>
        1652                                                                        
        1653           <city>
        1654                                                                                  
        1655            <xsl:value -of 
        1656             select="$l egalAuthen ticatorCit y" 
        1657            />
        1658                                                                         
        1659           </city>
        1660                                                                        
        1661           <state>
        1662                                                                                  
        1663            <xsl:value -of 
        1664             select="$l egalAuthen ticatorSta te" 
        1665            />
        1666                                                                         
        1667           </state>
        1668                                                                        
        1669           <postalCod e>
        1670                                                                                  
        1671            <xsl:value -of 
        1672             select="$l egalAuthen ticatorPos talCode" 
        1673            />
        1674                                                                         
        1675           </postalCo de>
        1676                                                                        
        1677           <country>
        1678                                                                                  
        1679            <xsl:value -of 
        1680             select="$l egalAuthen ticatorCou ntry" 
        1681            />
        1682                                                                         
        1683           </country>
        1684                                                               
        1685          </addr>
        1686                                                              
        1687          <!-- Telec om Require d for assi gnedEntity , but VA V istA data  not yet 
        1688                                                                       avai lable -->
        1689                                                              
        1690          <telecom 
        1691           use="HP" 
        1692           value="{$l egalAuthen ticatorTel ecom}" 
        1693          />
        1694                                                              
        1695          <!-- assig ned Person  Required  for legalA uthenticat or/assigne dEntity -- >
        1696                                                              
        1697          <assignedP erson 
        1698           classCode= "PSN"
        1699          >
        1700                                                                        
        1701           <!-- 6.04  AUTHOR NAM E, REQUIRE D -->
        1702                                                                        
        1703           <name 
        1704            use="L"
        1705           >
        1706                                                                                  
        1707            <given>
        1708                                                                                            
        1709             <xsl:value -of 
        1710              select="$l egalAuthen ticatorGiv enName" 
        1711             />
        1712                                                                                   
        1713            </given>
        1714                                                                                  
        1715            <family>
        1716                                                                                            
        1717             <xsl:value -of 
        1718              select="$l egalAuthen ticatorFam ilyName" 
        1719             />
        1720                                                                                   
        1721            </family>
        1722                                                                                  
        1723            <suffix>
        1724                                                                                            
        1725             <xsl:value -of 
        1726              select="$l egalAuthen ticatorSuf fix" 
        1727             />
        1728                                                                                   
        1729            </suffix>
        1730                                                                                  
        1731            <prefix>
        1732                                                                                            
        1733             <xsl:value -of 
        1734              select="$l egalAuthen ticatorPre fix" 
        1735             />
        1736                                                                                   
        1737            </prefix>
        1738                                                                         
        1739           </name>
        1740                                                               
        1741          </assigned Person>
        1742                                                     
        1743         </assigned Entity>
        1744                                            
        1745        </legalAut henticator >
        1746                                  
        1747       </xsl:if>
        1748                                 
        1749       <!-- ***** ********** ********** ********** ********** ********** * DOCUMENT ATION 
        1750                                          OF MODUL E, REQUIRE D ******** ********** ********** ********** ********** ******** - ->
        1751      
        1752                                 
        1753       <!-- Effec tive time  for the Co nsent Dire ctive -->
        1754                                 
        1755       <documenta tionOf 
        1756        typeCode=" DOC"
        1757       >
        1758                                           
        1759        <serviceEv ent 
        1760         moodCode=" EVN"
        1761        >
        1762                                                    
        1763         <templateI
        1764          root="2.16 .840.1.113 883.3.445. 3" 
        1765         />
        1766                                                    
        1767         <id 
        1768          root="{$do cumentatio nRootId}" 
        1769         />
        1770                                                    
        1771         <code 
        1772          code="5701 6-8" 
        1773          codeSystem ="2.16.840 .1.113883. 6.1"
        1774                                                             
        1775          codeSystem Name="LOIN C" 
        1776          displayNam e="Privacy  Policy Ac knowledgem ent Docume nt" 
        1777         />
        1778                                                    
        1779         <effective Time>
        1780                                                              
        1781          <!-- 7.01  BEGIN TIME , REQUIRED  -->
        1782                                                              
        1783          <low 
        1784           value="{$d ocumentati onBeginTim e}" 
        1785          />
        1786                                                              
        1787          <!-- 7.02  END TIME,  REQUIRED - ->
        1788                                                              
        1789          <high 
        1790           value="{$d ocumentati onEndTime}
        1791          />
        1792                                                     
        1793         </effectiv eTime>
        1794                                            
        1795        </serviceE vent>
        1796                                  
        1797       </document ationOf>
        1798      
        1799                                 
        1800       <!-- Previ ous Consen t Directiv e Referenc e -->
        1801                                 
        1802       <relatedDo cument 
        1803        typeCode=" RPLC"
        1804       >
        1805                                           
        1806        <parentDoc ument 
        1807         classCode= "DOCCLIN" 
        1808         moodCode=" EVN"
        1809        >
        1810                                                    
        1811         <id 
        1812          root="1.3. 6.1.4.1.19 376.1.5.3. 1.2.6" 
        1813          extension= "{$previou sConsentDi rectiveId}
        1814         />
        1815                                            
        1816        </parentDo cument>
        1817                                  
        1818       </relatedD ocument>
        1819      
        1820                                 
        1821       <!-- Conse nt Directi ve Entry - ->
        1822                                 
        1823       <component >
        1824                                           
        1825        <structure dBody>
        1826                                                    
        1827         <component  
        1828          typeCode=" COMP"
        1829         >
        1830                                                              
        1831          <section 
        1832           classCode= "DOCSECT" 
        1833           moodCode=" EVN"
        1834          >
        1835                                                                        
        1836           <templateI
        1837            root="2.16 .840.1.113 883.3.445. 17" 
        1838           />
        1839                                                                        
        1840           <code 
        1841            code="5701 6-8" 
        1842            codeSystem Name="LOIN C" 
        1843           />
        1844                                                                        
        1845           <title>
        1846            Privacy Co nsent Dire ctive Deta ils
        1847           </title>
        1848                                                                        
        1849           <!-- Narra tive priva cy consent  directive  -->
        1850                                                                        
        1851           <text 
        1852            mediaType= "text/x-hl 7-text+xml "
        1853           >
        1854                                                                                  
        1855            <content>
        1856                                                                                            
        1857             <xsl:value -of 
        1858              select="$c omponentSt ructuredNa rrativeTex t" 
        1859             />
        1860                                                                                   
        1861            </content>
        1862                                                                         
        1863           </text>
        1864                                                                        
        1865           <!-- Priva cy Consent  Directive  Entry -->
        1866                                                                        
        1867           <entry 
        1868            typeCode=" COMP"
        1869           >
        1870                                                                                  
        1871            <templateI
        1872             root="2.16 .840.1.113 883.3.445. 4" 
        1873            />
        1874                                                                                  
        1875            <!-- Struc tured/comp uter-reada ble Privac y Consent  Directive  Specificat ion -->
        1876                                                                                  
        1877            <act 
        1878             classCode= "ACT" 
        1879             moodCode=" DEF"
        1880            >
        1881                                                                                            
        1882             <templateI
        1883              root="2.16 .840.1.113 883.3.445. 5" 
        1884             />
        1885                                                                                            
        1886             <!-- Purpo se of use  -->
        1887                                                                                            
        1888             <code 
        1889              code="{$co mponentPur poseOfUseC ode}" 
        1890              codeSystem ="2.16.840 .1.113883. 3.18.7.1"
        1891                                                                                                    
        1892              codeSystem Name="nhin -purpose" 
        1893              displayNam e="{$compo nentPurpos eOfUseDisp layName}" 
        1894             />
        1895                                                                                            
        1896             <statusCod
        1897              code="{$co mponentSta tusCode}" 
        1898             />
        1899                                                                                            
        1900             <!-- Custo dian organ ization -- >
        1901                                                                                            
        1902             <informant  
        1903              typeCode=" INF" 
        1904              contextCon trolCode=" OP"
        1905             >
        1906                                                                                                     
        1907              <templateI
        1908               root="2.16 .840.1.113 883.3.445. 6" 
        1909              />
        1910                                                                                                     
        1911              <assignedE ntity>
        1912                                                                                                               
        1913               <id 
        1914                root="{$co mponentInf ormantEnti tyOid}" 
        1915                extension= "{$compone ntInforman tEntityId}
        1916               />
        1917                                                                                                               
        1918               <represent edOrganiza tion>
        1919                                                                                                                         
        1920                <name>
        1921                                                                                                                                   
        1922                 <xsl:value -of 
        1923                  select="$c omponentIn formantEnt ityName" 
        1924                 />
        1925                                                                                                                          
        1926                </name>
        1927                                                                                                                         
        1928                <telecom 
        1929                 use="HP" 
        1930                 value="{$c omponentAs signedEnti tyTelecom}
        1931                />
        1932                                                                                                                         
        1933                <addr 
        1934                 use="HP"
        1935                >
        1936                                                                                                                                   
        1937                 <streetAdd ressLine>
        1938                                                                                                                                             
        1939                  <xsl:value -of 
        1940                   select="$c omponentIn formantEnt ityStreetA ddressLine
        1941                  />
        1942                                                                                                                                    
        1943                 </streetAd dressLine>
        1944                                                                                                                                   
        1945                 <city>
        1946                                                                                                                                             
        1947                  <xsl:value -of 
        1948                   select="$c omponentIn formantEnt ityCity" 
        1949                  />
        1950                                                                                                                                    
        1951                 </city>
        1952                                                                                                                                   
        1953                 <state>
        1954                                                                                                                                             
        1955                  <xsl:value -of 
        1956                   select="$c omponentIn formantEnt ityState" 
        1957                  />
        1958                                                                                                                                    
        1959                 </state>
        1960                                                                                                                                   
        1961                 <postalCod e>
        1962                                                                                                                                             
        1963                  <xsl:value -of 
        1964                   select="$c omponentIn formantEnt ityPostalC ode" 
        1965                  />
        1966                                                                                                                                    
        1967                 </postalCo de>
        1968                                                                                                                                   
        1969                 <country>
        1970                                                                                                                                             
        1971                  <xsl:value -of 
        1972                   select="$c omponentIn formantEnt ityCountry
        1973                  />
        1974                                                                                                                                    
        1975                 </country>
        1976                                                                                                                          
        1977                </addr>
        1978                                                                                                                
        1979               </represen tedOrganiz ation>
        1980                                                                                                      
        1981              </assigned Entity>
        1982                                                                                             
        1983             </informan t>
        1984                                                                                            
        1985             <!-- Recei ving provi der -->
        1986                                                                                            
        1987             <!-- Loop  make the e xclusions  - START -- >
        1988                                                                                            
        1989             <xsl:for-e ach 
        1990              select="$p articipant "
        1991             >
        1992                                                                                                     
        1993              <participa nt 
        1994               typeCode=" IRCP" 
        1995               contextCon trolCode=" OP"
        1996              >
        1997                                                                                                               
        1998               <templateI
        1999                extension= "2.16.840. 1.113883.3 .445.7" 
        2000               />
        2001                                                                                                               
        2002               <participa ntRole 
        2003                classCode= "ASSIGNED"
        2004               >
        2005                                                                                                                         
        2006                <!-- USER  ID / root  = ORG OID  -->
        2007                                                                                                                         
        2008                <id 
        2009                 extension= "{t:compon entPartici pantId}" 
        2010                 root="{t:c omponentPa rticipantO id}" 
        2011                />
        2012                                                                                                                         
        2013                <!-- Role  code - opt ional -->
        2014                                                                                                                         
        2015                <code 
        2016                 code="{t:c omponentPa rticipantR oleCode}"
        2017                                                                                                                                  
        2018                 displayNam e="{t:comp onentParti cipantRole DisplayNam e}"
        2019                                                                                                                                  
        2020                 codeSystem Name="{t:c omponentPa rticipantR oleCodeSys temName}"
        2021                                                                                                                                  
        2022                 codeSystem ="{t:compo nentPartic ipantRoleC odeSystemO id}" 
        2023                />
        2024                                                                                                                         
        2025                <addr 
        2026                 use="HP"
        2027                >
        2028                                                                                                                                   
        2029                 <streetAdd ressLine>
        2030                                                                                                                                             
        2031                  <xsl:value -of 
        2032                   select="t: componentP articipant StreetAddr essLine" 
        2033                  />
        2034                                                                                                                                    
        2035                 </streetAd dressLine>
        2036                                                                                                                                   
        2037                 <city>
        2038                                                                                                                                             
        2039                  <xsl:value -of 
        2040                   select="t: componentP articipant City" 
        2041                  />
        2042                                                                                                                                    
        2043                 </city>
        2044                                                                                                                                   
        2045                 <state>
        2046                                                                                                                                             
        2047                  <xsl:value -of 
        2048                   select="t: componentP articipant State" 
        2049                  />
        2050                                                                                                                                    
        2051                 </state>
        2052                                                                                                                                   
        2053                 <postalCod e>
        2054                                                                                                                                             
        2055                  <xsl:value -of 
        2056                   select="t: componentP articipant PostalCode
        2057                  />
        2058                                                                                                                                    
        2059                 </postalCo de>
        2060                                                                                                                                   
        2061                 <country>
        2062                                                                                                                                             
        2063                  <xsl:value -of 
        2064                   select="t: componentP articipant Country" 
        2065                  />
        2066                                                                                                                                    
        2067                 </country>
        2068                                                                                                                          
        2069                </addr>
        2070                                                                                                                         
        2071                <!-- Organ ization -- >
        2072                                                                                                                         
        2073                <playingEn tity 
        2074                 classCode= "ORG"
        2075                >
        2076                                                                                                                                   
        2077                 <name>
        2078                                                                                                                                             
        2079                  <xsl:value -of 
        2080                   select="t: componentP articipant PlayingEnt ityName" 
        2081                  />
        2082                                                                                                                                    
        2083                 </name>
        2084                                                                                                                          
        2085                </playingE ntity>
        2086                                                                                                                         
        2087                <!-- ***** ********** ********** ********** ********** ********** **********  
        2088                                                                                                                                  TODO:  Only organ ization ex clusions a re support ed in this  release.  ********** ********** ********** ********** ********** ********** ***** -->
        2089                                                                                                                         
        2090                <!-- <play ingEntity  classCode= "PSN" dete rminerCode ="INSTANCE "> 
        2091                                                                                                                                  <name>  <prefix>M r.</prefix > <family> SomeDoctor IWishToExl udeMyInfor mationFrom </family> 
        2092                                                                                                                                  <given >SomeGiven Name</give n> <suffix >MD</suffi x> </name>  </playing Entity> -- >
        2093                                                                                                                
        2094               </particip antRole>
        2095                                                                                                      
        2096              </particip ant>
        2097                                                                                             
        2098             </xsl:for- each>
        2099                                                                                            
        2100             <!-- Loop  make the e xclusions  - START -- >
        2101            
        2102                                                                                            
        2103             <!-- Actio n -->
        2104                                                                                            
        2105             <entryRela tionship 
        2106              typeCode=" COMP"
        2107                                                                                                    
        2108              contextCon ductionInd ="true"
        2109             >
        2110                                                                                                     
        2111              <templateI
        2112               root="2.16 .840.1.113 883.3.445. 8" 
        2113              />
        2114                                                                                                     
        2115              <!-- negat ionInd='fa lse' speci fies that  the action  is author ized -->
        2116                                                                                                     
        2117              <!-- For t his releas e, it defa ults to ne gationInd= "true" onl y, 
        2118                                                                                                              wh ich means  only exlus ions are a llowed! -- >
        2119                                                                                                     
        2120              <act 
        2121               classCode= "OBS" 
        2122               moodCode=" DEF" 
        2123               negationIn d="true"
        2124              >
        2125                                                                                                               
        2126               <!-- Actio n/Operatio n -->
        2127                                                                                                               
        2128               <code 
        2129                code="DISC LOSE" 
        2130                codeSystem ="2.16.840 .1.113883. 5.4"
        2131                                                                                                                        
        2132                displayNam e="Disclos e" 
        2133                codeSystem Name="ActC onsentType
        2134               />
        2135                                                                                                      
        2136              </act>
        2137                                                                                             
        2138             </entryRel ationship>
        2139                                                                                            
        2140             <!-- ***** ********** ********** ********** ********** ********** ********** ****** 
        2141                                                                                                     TODO: Cons ent valida tion by in formation  ********** ********** ********** ********** ********** ********** ********** * -->
        2142                                                                                            
        2143             <!-- Infor mation ref erences: c ategory, o bject id,  sensitivit y, related  
        2144                                                                                                     problem -- >
        2145                                                                                            
        2146             <entryRela tionship 
        2147              typeCode=" COMP"
        2148                                                                                                    
        2149              contextCon ductionInd ="true"
        2150             >
        2151                                                                                                     
        2152              <templateI
        2153               root="2.16 .840.1.113 883.3.445. 9" 
        2154              />
        2155                                                                                                     
        2156              <organizer  
        2157               classCode= "CLUSTER" 
        2158               moodCode=" DEF"
        2159              >
        2160                                                                                                               
        2161               <statusCod
        2162                code="acti ve" 
        2163               />
        2164                                                                                                               
        2165               <component  
        2166                typeCode=" COMP"
        2167               >
        2168                                                                                                                         
        2169                <observati on 
        2170                 classCode= "OBS" 
        2171                 moodCode=" DEF"
        2172                >
        2173                                                                                                                                   
        2174                 <templateI
        2175                  extension= "2.16.840. 1.113883.3 .445.10" 
        2176                 />
        2177                                                                                                                                   
        2178                 <code 
        2179                  code="GAIN
        2180                  codeSystem Name="ActI nformation CategoryCo de"
        2181                                                                                                                                            
        2182                  codeSystem ="2.16.840 .1.113883. 5.4" 
        2183                  displayNam e="Global  Appraisal  of Individ ual Needs  (GAIN)" 
        2184                 />
        2185                                                                                                                                   
        2186                 <!-- Relat ed Conditi on/Problem  -->
        2187                                                                                                                                   
        2188                 <!-- TODO:  To be sup ported in  future rel eases. <pr econdition  
        2189                                                                                                                                            typeCode ="PRCN"> < templateId  root="2.1 6.840.1.11 3883.3.445 .11" /> <c riterion 
        2190                                                                                                                                            classCod e="OBS" mo odCode="EV N.CRT"> <c ode code=" 371422002"  codeSyste mName="VA/ KP 
        2191                                                                                                                                            Problem  Value Set"  codeSyste m="2.16.84 0.1.113883 .3.88.12.3 221.7.4" d isplayName ="History 
        2192                                                                                                                                            of subst ance abuse " /> </cri terion> </ preconditi on> <preco ndition ty peCode="PR CN"> 
        2193                                                                                                                                            <templat eId root=" 2.16.840.1 .113883.3. 445.12" />  <criterio n classCod e="COND" 
        2194                                                                                                                                            moodCode ="EVN.CRT" > <code co de="V" cod eSystemNam e="Confide ntialityBy AccessKind
        2195                                                                                                                                            codeSyst em="2.16.8 40.1.11388 3.1.11.102 29" displa yName="Ver y Restrict ed" /> 
        2196                                                                                                                                            </criter ion> </pre condition>  -->
        2197                                                                                                                          
        2198                </observat ion>
        2199                                                                                                                
        2200               </componen t>
        2201                                                                                                               
        2202               <!-- Healt h Informat ion Privac y Policy a nd Obligat ion -->
        2203                                                                                                               
        2204               <component  
        2205                typeCode=" COMP" 
        2206                contextCon ductionInd ="true"
        2207               >
        2208                                                                                                                         
        2209                <templateI
        2210                 root="2.16 .840.1.113 883.3.445. 13" 
        2211                />
        2212                                                                                                                         
        2213                <!-- Polic y Referenc e -->
        2214                                                                                                                         
        2215                <act 
        2216                 classCode= "CONS" 
        2217                 moodCode=" DEF"
        2218                >
        2219                                                                                                                                   
        2220                 <code 
        2221                  codeSystem Name="SAMS HA" 
        2222                  code="42CF RPart2" 
        2223                 />
        2224                                                                                                                                   
        2225                 <precondit ion 
        2226                  typeCode=" PRCN"
        2227                 >
        2228                                                                                                                                             
        2229                  <templateI
        2230                   root="2.16 .840.1.113 883.3.445. 14" 
        2231                  />
        2232                  <!-- 
        2233                                                                                                                                                      Obligation  -->
        2234                                                                                                                                             
        2235                  <criterion  
        2236                   classCode= "OBS" 
        2237                   moodCode=" EVN.CRT"
        2238                  >
        2239                                                                                                                                                      
        2240                   <code 
        2241                    code="AUDI T" 
        2242                    displayNam e="Audit a ccess to i nformation "
        2243                                                                                                                                                               
        2244                    codeSystem Name="Obli gation" 
        2245                   />
        2246                                                                                                                                              
        2247                  </criterio n>
        2248                                                                                                                                    
        2249                 </precondi tion>
        2250                                                                                                                          
        2251                </act>
        2252                                                                                                                
        2253               </componen t>
        2254                                                                                                      
        2255              </organize r>
        2256                                                                                             
        2257             </entryRel ationship>
        2258                                                                                            
        2259             <!-- Other  represent ations: Sc anned docu ment and p olicy lang uage -->
        2260            
        2261                                                                                            
        2262             <!-- Loop  - make the  pdf's - S TART -->
        2263                                                                                            
        2264             <xsl:for-e ach 
        2265              select="$s cannedCons entDirecti veDocument Base64Text "
        2266             >
        2267                                                                                                     
        2268              <entryRela tionship 
        2269               typeCode=" COMP"
        2270              >
        2271                                                                                                               
        2272               <templateI
        2273                root="2.16 .840.1.113 883.3.445. 15" 
        2274               />
        2275                                                                                                               
        2276               <observati onMedia 
        2277                classCode= "OBS" 
        2278                moodCode=" EVN"
        2279               >
        2280                                                                                                                         
        2281                <!-- For t his releas e - hardco de PDF -->
        2282                                                                                                                         
        2283                <value 
        2284                 mediaType= "{t:mediaT ype}" 
        2285                 representa tion="{t:r epresentat ion}"
        2286                >
        2287                                                                                                                                   
        2288                 <xsl:value -of 
        2289                  select="t: document" 
        2290                 />
        2291                                                                                                                          
        2292                </value>
        2293                                                                                                                
        2294               </observat ionMedia>
        2295                                                                                                      
        2296              </entryRel ationship>
        2297                                                                                             
        2298             </xsl:for- each>
        2299            
        2300                                                                                            
        2301             <!-- Alter nate Polic y language  represent ation -->
        2302                                                                                            
        2303             <!-- TODO:  Implement  alternate  policies  for next r elease -->
        2304                                                                                            
        2305             <!-- <entr yRelations hip typeCo de="COMP">  <template Id root="2 .16.840.1. 113883.3.4 45.16" 
        2306                                                                                                     /> <observ ationMedia  classCode ="OBS" moo dCode="EVN "> <value  mediaType= "text/xml"  
        2307                                                                                                     representa tion="TXT" > <xsl:val ue-of sele ct="$alter natePolicy LanguageRe presentati onText" 
        2308                                                                                                     /> </value > </observ ationMedia > </entryR elationshi p> -->
        2309                                                                                   
        2310            </act>
        2311                                                                         
        2312           </entry>
        2313                                                               
        2314          </section>
        2315                                                     
        2316         </componen t>
        2317                                                    
        2318         <!-- ***** ********** ********** ********** ********** ********** ********** ** 
        2319                                                             TO DO: Signat ure Sectio n. ******* ********** ********** ********** ********** ********** **********  -->
        2320                                                    
        2321         <!-- <comp onent type Code="COMP " contextC onductionI nd="true">  <section 
        2322                                                             cl assCode="D OCSECT" mo odCode="EV N"> <templ ateId root ="2.16.840 .1.113883. 3.445.18" 
        2323                                                             />  <title>Si gnatures</ title> <te xt mediaTy pe="text/x -hl7-text+ xml"> <par agraph>Thi
        2324                                                             se ction cont ains the s ignatures  of the con senter. </ paragraph>  <paragrap h> 
        2325                                                             <r enderMulti Media refe rencedObje ct="Page_1 "> <captio n>Page 1</ caption> < /renderMul tiMedia> 
        2326                                                             </ paragraph>  <paragrap h> <render MultiMedia  reference dObject="P age_2"> <c aption>Pag
        2327                                                             2< /caption>  </renderMu ltiMedia>  </paragrap h> </text>  <entry ty peCode="CO MP"> 
        2328                                                             <o bservation Media ID=" Page_1" cl assCode="D GIMG" mood Code="EVN" > <value m ediaType=" 'image/jpe g"> 
        2329                                                             <r eference v alue="P1.j pg" /> </v alue> </ob servationM edia> </en try> <entr
        2330                                                             ty peCode="CO MP"> <obse rvationMed ia ID="Pag e_2" class Code="DGIM G" moodCod e="EVN"> 
        2331                                                             <v alue media Type="'ima ge/jpeg">  <reference  value="P2 .jpg" /> < /value> </ observatio nMedia> 
        2332                                                             </ entry> </s ection> </ component>  -->
        2333                                            
        2334        </structur edBody>
        2335                                  
        2336       </componen t>
        2337                        
        2338      </Clinical Document>
        2339              
        2340     </xsl:temp late>
        2341   </xsl:styl esheet>