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

      <id value="consent-example-basic"/>
      <meta>
  <security>
    <system value="http://terminology.hl7.org/CodeSystem/v3-ActReason"/>
    <code value="HTEST"/>
    <display value="test health data"/>
  </security>
</meta>

      <status value="active"/>
      <scope>
              <coding>
                      <system value="http://terminology.hl7.org/CodeSystem/consentscope"/>
                      <code value="patient-privacy"/>
              </coding>
      </scope>
      <category>
              <coding>
                      <system value="http://loinc.org"/>
                      <code value="59284-0"/>
              </coding>
      </category>
      <patient>
              <reference value="Patient/f001"/>
              <display value="P. van de Heuvel"/>
      </patient>
      <dateTime value="2016-05-11"/>
      <organization>
              <reference value="Organization/f001"/>
      </organization>
      <!--  the terms of the consent as signed by the patient in ink  -->
      <sourceAttachment>
              <title value="The terms of the consent in lawyer speak."/>
              <!--  likely use url pointer to common text  -->
      </sourceAttachment>
      <!--  this is plain out opt-in with no exceptions  -->
      <policyRule>
              <coding>
                      <system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
                      <code value="OPTIN"/>
              </coding>
      </policyRule>
      <provision>
              <!--  bound by a timeframe between 1964 and 2016 - consent.applies  -->
              <period>
                      <start value="1964-01-01"/>
                      <end value="2016-01-01"/>
              </period>
      </provision>

</Consent>