{
  "resourceType": "Consent",
  "id": "example-ca-on-consent-profile-consent",
  "meta": {
    "lastUpdated": "2016-02-24T01:13:58+00:00"
  },
  "text": {
    "status": "additional",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h3>This is a Consent example (with contained resources)</h3>"
  },
  "contained": [
    {
      "resourceType": "Patient",
      "id": "pat1"
    },
    {
      "resourceType": "RelatedPerson",
      "id": "relatedperson1"
    },
    {
      "resourceType": "Practitioner",
      "id": "practitioner-consent-obtainer1"
    },
    {
      "resourceType": "Organization",
      "id": "org1"
    }
  ],
  "status": "active",
  "category": [
    {
      "coding": [
        {
          "system": "http://hl7.org/fhir/v3/ActCode",
          "code": "INFA",
          "display": "information access"
        }
      ]
    }
  ],
  "patient": {
    "reference": "#pat1"
  },
  "dateTime": "2016-11-18",
  "consentingParty": [
    {
      "reference": "#relatedperson1"
    }
  ],
  "organization": [
    {
      "reference": "#org1"
    }
  ],
  "policy": [
    {
      "authority": "http://ontario.ca"
    }
  ],
  "except": [
    {
      "type": "permit",
      "actor": [
        {
          "role": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/v3/ParticipationType",
                "code": "IRCP",
                "display": "information recipient"
              }
            ]
          },
          "reference": {
            "reference": "#practitioner-consent-obtainer1"
          }
        }
      ],
      "action": [
        {
          "coding": [
            {
              "system": "http://hl7.org/fhir/consentaction",
              "code": "access",
              "display": "Access"
            }
          ]
        }
      ],
      "purpose": [
        {
          "system": "http://hl7.org/fhir/v3/ActReason",
          "code": "TREAT",
          "display": "treatment"
        }
      ],
      "class": [
        {
          "system": "urn:ietf:rfc:3986",
          "code": "https://ehealthontario.ca/API/FHIR/Medications",
          "display": "Ontario Medications"
        }
      ]
    }
  ]
}