<Consent xmlns="http://hl7.org/fhir">
  <meta>
    <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-consent-pcoi-profile-Consent|2.0.0" />
  </meta>
  <contained>
    <Patient>
      <id value="patient-internal-id" />
      <meta>
        <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-consent-pcoi-profile-Patient|1.0.0" />
      </meta>
      <identifier>
        <system value="https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-patient-hcn" />
        <value value="1234-567-890" />
      </identifier>
      <name>
        <family value="Everyperson" />
        <given value="Sam" />
      </name>
      <gender value="male" />
      <birthDate value="1987-03-16" />
    </Patient>
  </contained>
  <contained>
    <Practitioner>
      <id value="practitioner-internal-id" />
      <meta>
        <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-consent-pcoi-profile-Practitioner|1.0.0" />
      </meta>
      <identifier>
        <system value="https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-license-physician" />
        <value value="12345" />
      </identifier>
      <name>
        <family value="Frankenstein" />
        <given value="Mary" />
      </name>
    </Practitioner>
  </contained>
  <contained>
    <Organization>
      <id value="organization-internal-id" />
      <meta>
        <profile value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-consent-pcoi-profile-Organization|1.0.0" />
      </meta>
      <identifier>
        <system value="https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-provider-upi" />
        <value value="11235813" />
      </identifier>
      <name value="Frankenstein's Lab" />
    </Organization>
  </contained>
  <status value="active" />
  <scope>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/consentscope" />
      <code value="patient-privacy" />
      <display value="Privacy Consent" />
    </coding>
  </scope>
  <category>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/v3-ActCode" />
      <code value="INFA" />
      <display value="information access" />
    </coding>
  </category>
  <patient>
    <reference value="#patient-internal-id" />
  </patient>
  <performer>
    <reference value="#patient-internal-id" />
  </performer>
  <organization>
    <reference value="#organization-internal-id" />
  </organization>
  <policy>
    <authority value="http://www.ontario.ca" />
  </policy>
  <provision>
    <type value="permit" />
    <actor>
      <role>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/v3-ParticipationType" />
          <code value="IRCP" />
          <display value="information recipient" />
        </coding>
      </role>
      <reference>
        <reference value="#practitioner-internal-id" />
      </reference>
    </actor>
    <action>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/consentaction" />
        <code value="use" />
        <display value="Use" />
      </coding>
    </action>
    <purpose>
      <system value="http://terminology.hl7.org/CodeSystem/v3-ActReason" />
      <code value="PATRQT" />
      <display value="patient requested" />
    </purpose>
    <class>
      <system value="urn:ietf:rfc:3986" />
      <code value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-profile-DiagnosticReport" />
      <display value="OLIS" />
    </class>
  </provision>
</Consent>