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

<id value="pcd-example-notThem"/>

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

<issued value="2015-11-18"/>

<subject>
  <reference value="Patient/f001"/>
  <display value="P. van de Heuvel"/>
</subject>

<authority>
  <reference value="Organization/3"/>
  <display value="Michigan Health"/>
</authority>

<!--  and/or would this [also] go into Contract.domain as a Jurisdiction?? (see the example on UK Pharamacy Juristiction)  -->
<domain>
  <reference value="Location/ukp"/>
  <display value="UK Pharmacies"/>
</domain>

<type>
  <coding>
    <system value="http://loinc.org"/>
    <code value="57016-8"/>
  </coding>
</type>

<!--  made up code-system to represent the set of privacy consent sub-types known and published by Canada Infoway  -->
<subType>
  <coding>
    <system value="http://www.infoway-inforoute.ca.org/Consent-subtype-codes"/>
    <code value="Opt-In"/>
    <display value="Default Authorization with exceptions."/>
  </coding>
</subType>

<term>
  <type>
    <coding>
      <!--  made up code system  -->
      <system value="http://example.org/fhir/consent-term-type-codes"/>
      <code value="withhold-from"/>
      <display value="Withhold all data from specified actor entity."/>
    </coding>
  </type>
  <offer>
    <topic>
      <reference value="Practitioner/f204"/>
      <display value="Fictive Nurse"/>
    </topic>

    <text value="Withhold this order and any results or related objects from specified nurse provider."/>
  </offer>
</term>

<signer>
  <type>
    <system value="http://terminology.hl7.org/CodeSystem/contractsignertypecodes"/>
    <code value="COVPTY"/>
  </type>
  <party>
    <reference value="Patient/f001"/>
  </party>
  <signature>
    <type>
      <system value="urn:iso-astm:E1762-95:2013"/>
      <code value="1.2.840.10065.1.12.1.1"/>
    </type>
    <when value="2013-06-08T10:57:34-07:00"/>
    <who>
      <reference value="Patient/f001"/>
    </who>
  </signature>
</signer>

<!--  the terms of the consent in friendly consumer speak  -->
<friendly>
  <contentAttachment>
    <title value="The terms of the consent in friendly consumer speak."/>
    <!--  likely use url pointer to common text  -->
  </contentAttachment>
</friendly>

<!--  the legal terms of the consent in lawyer speak  -->
<legal>
  <contentAttachment>
    <title value="The terms of the consent in lawyer speak."/>
    <!--  likely use url pointer to common text  -->
    <!--  I think some think that this should be the pointer to the law by which this consent is derived under. Such as http://lois-laws.justice.gc.ca/eng/acts/P-21/index.html  -->
  </contentAttachment>
</legal>
<!--  not bound by a timeframe - Contract.applies  -->

</Contract>