{

"resourceType": "Consent",
"id": "consent-example-Emergency",
"text": {
  "status": "generated",
  "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n\t<p>\n\tWithhold Authorization for Treatment except for Emegency Treatment\n\t</p><p>\n    Patient &quot;P. van de Heuvel&quot; wishes to have no data at the Good Health Psychiatric Hospital \n   available except for Emergency treatment use.\n   An overall Deny consent Directive, with an exception &quot;Permit&quot; of purposeOfUse &quot;ETREAT&quot; \n   at &quot;Good Health&quot; hospital, and exception &quot;Deny&quot; all other purposeOfUse from good health hospital.\n   </p>\n   </div>"
},
"status": "active",
"patient": {
  "reference": "Patient/f001",
  "display": "P. van de Heuvel"
},
"dateTime": "2015-11-18",
"organization": [
  {
    "reference": "Organization/Infoway",
    "display": "Canada Infoway"
  }
],
"sourceAttachment": {
  "title": "The terms of the consent in lawyer speak."
},
"policyRule": "http://hl7.org/fhir/ConsentPolicy/opt-out",
"except": [
  {
    "type": "permit",
    "actor": [
      {
        "role": {
          "coding": [
            {
              "system": "http://hl7.org/fhir/v3/ParticipationType",
              "code": "CST"
            }
          ]
        },
        "reference": {
          "reference": "Organization/2.16.840.1.113883.19.6",
          "display": "Good Health Psychiatric Hospital"
        }
      }
    ],
    "purpose": [
      {
        "system": "http://hl7.org/fhir/v3/ActReason",
        "code": "ETREAT"
      }
    ]
  },
  {
    "type": "deny",
    "actor": [
      {
        "role": {
          "coding": [
            {
              "system": "http://hl7.org/fhir/v3/ParticipationType",
              "code": "CST"
            }
          ]
        },
        "reference": {
          "reference": "Organization/2.16.840.1.113883.19.6",
          "display": "Good Health Psychiatric Hospital"
        }
      }
    ]
  }
]

}