<?xml version=“1.0” encoding=“UTF-8”?> <Consent xmlns=“hl7.org/fhir”>
<id value="consent-example-signature"/> <meta> <security> <system value="http://terminology.hl7.org/CodeSystem/v3-ActReason"/> <code value="HTEST"/> <display value="test health data"/> </security> </meta> <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"/> <scope> <coding> <system value="http://terminology.hl7.org/CodeSystem/consentscope"/> <code value="patient-privacy"/> </coding> </scope> <category> <coding> <system value="http://terminology.hl7.org/CodeSystem/consentcategorycodes"/> <code value="npp"/> </coding> </category> <patient> <reference value="Patient/72"/> <!-- one of the stock examples --> </patient> <dateTime value="2016-05-26T00:41:10-04:00"/> <performer> <reference value="Patient/72"/> <!-- author is patient themselves, and they sign --> </performer> <!-- this consent relates to sharing data with a specific recipient --> <organization> <reference value="Organization/f001"/> </organization> <!-- no source for this one - it is the signed master --> <policyRule> <coding> <system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/> <code value="OPTIN"/> </coding> </policyRule> <!-- here's an opt-in: share CDA documents of type Discharge Summary + Summarization of Episode Note from a specific author --> <provision> <period> <start value="2015-10-10"/> <end value="2016-10-10"/> </period> <actor> <role> <coding> <system value="http://terminology.hl7.org/CodeSystem/v3-ParticipationType"/> <code value="PRCP"/> </coding> </role> <reference> <reference value="Practitioner/13"/> <!-- Stock practitioner --> </reference> </actor> <provision> <type value="permit"/> <actor> <role> <coding> <system value="http://terminology.hl7.org/CodeSystem/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> <coding> <system value="http://loinc.org"/> <code value="34133-9"/> </coding> </code> <code> <coding> <system value="http://loinc.org"/> <code value="18842-5"/> </coding> </code> </provision> </provision>
</Consent>