<?xml version=“1.0” encoding=“UTF-8”?><Consent xmlns=“hl7.org/fhir”>

<id value="consent-example-signature"/>
<text><status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: consent-example-signature</p><p><b>identifier</b>: 494e0c7a-a69e-4fb4-9d02-6aae747790d7</p><p><b>status</b>: active</p><p><b>category</b>: HIPAA Authorization <span>(Details : {http://hl7.org/fhir/consentcategorycodes code &#39;HIPAA-Auth&#39; = &#39;HIPAA Authorization)</span></p><p><b>patient</b>: <a>Patient/72</a></p><p><b>period</b>: Oct 10, 2015 --&gt; Oct 10, 2016</p><p><b>dateTime</b>: May 26, 2016 12:41:10 AM</p><p><b>consentingParty</b>: <a>Patient/72</a></p><h3>Actors</h3><table><tr><td>-</td><td><b>Role</b></td><td><b>Reference</b></td></tr><tr><td>*</td><td>primary information recipient <span>(Details : {http://hl7.org/fhir/v3/ParticipationType code &#39;PRCP&#39; = &#39;primary information recipient)</span></td><td><a>Practitioner/13</a></td></tr></table><p><b>organization</b>: <a>Organization/example</a></p><p><b>policyRule</b>: <a>http://hl7.org/fhir/ConsentPolicy/opt-in</a></p><blockquote><p><b>except</b></p><p><b>type</b>: permit</p><h3>Actors</h3><table><tr><td>-</td><td><b>Role</b></td><td><b>Reference</b></td></tr><tr><td>*</td><td>author (originator) <span>(Details : {http://hl7.org/fhir/v3/ParticipationType code &#39;AUT&#39; = &#39;author (originator))</span></td><td><a>Practitioner/xcda-author</a></td></tr></table><p><b>class</b>: application/hl7-cda+xml (Details: urn:ietf:bcp:13 code application/hl7-cda+xml = &#39;application/hl7-cda+xml&#39;, stated as &#39;null&#39;)</p><p><b>code</b>: Summary of episode note (Details: LOINC code 34133-9 = &#39;Summary of episode note&#39;, stated as &#39;null&#39;), Discharge summary (Details: LOINC code 18842-5 = &#39;Discharge summary&#39;, stated as &#39;null&#39;)</p></blockquote></div></text><identifier>
  <system value="urn:oid:2.16.840.1.113883.3.72.5.9.1"/>
  <value value="494e0c7a-a69e-4fb4-9d02-6aae747790d7"/> <!--   consent GUID generated by application   -->
</identifier>
<status value="active"/>
<category>
  <coding>
    <system value="http://hl7.org/fhir/consentcategorycodes"/>
    <code value="HIPAA-Auth"/>
  </coding>
</category>
<patient>
  <reference value="Patient/72"/> <!--   one of the stock examples   -->
</patient>
<period>
  <start value="2015-10-10"/>
  <end value="2016-10-10"/>
</period>
<dateTime value="2016-05-26T00:41:10-04:00"/>
<consentingParty>
  <reference value="Patient/72"/> <!--   author is patient themselves, and they sign   -->
</consentingParty>
<!--   this consent relates to sharing data with a specific recipient   -->
<actor>
    <role>
      <coding>
        <system value="http://hl7.org/fhir/v3/ParticipationType"/>
        <code value="PRCP"/>
      </coding>
    </role>
    <reference>
              <reference value="Practitioner/13"/>  <!--   Stock practitioner   -->
   </reference>
</actor>
<organization>
  <reference value="Organization/example"/> 
</organization>
<!--   no source for this one - it is the signed master   -->
<policyRule value="http://hl7.org/fhir/ConsentPolicy/opt-in"/>

<!--   here's an opt-in: share CDA documents of type Discharge Summary 
  + Summarization of Episode Note from a specific author   -->
<except>  
  <type value="permit"/>
  <actor>  
    <role>
      <coding>
        <system value="http://hl7.org/fhir/v3/ParticipationType"/>
        <code value="AUT"/>
      </coding>
    </role>
    <reference>
      <reference value="Practitioner/xcda-author"/> 
   </reference>
  </actor>

  <!--   CDA documents   -->
  <class>
    <system value="urn:ietf:bcp:13"/>
    <code value="application/hl7-cda+xml"/>
  </class>    
  <!--   code rules   -->
  <code>
    <system value="http://loinc.org"/>
    <code value="34133-9"/>
  </code>    
  <code>
    <system value="http://loinc.org"/>
    <code value="18842-5"/>
  </code>    
</except>

</Consent>