Request

OperationupdateCreate Consent
MethodPUT
Pathhttps://blaze.life.uni-leipzig.de/fhir/Consent/ccc6d2eeb477456983f5c97ed54889d5
ResourceConsentIdccc6d2eeb477456983f5c97ed54889d5
Headers
Accept
application/fhir+json;charset=UTF-8
Content-Type
application/fhir+json;charset=UTF-8
Content
{
  "resourceType" : "Consent",
  "id" : "ccc6d2eeb477456983f5c97ed54889d5",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: a31a8bcead914f9db9897a0a86ec9625</p><p><b>status</b>: active</p><p><b>scope</b>: Privacy Consent <span>(Details : {http://terminology.hl7.org/CodeSystem/consentscope code 'patient-privacy' = 'Privacy Consent)</span></p><p><b>category</b>: Patient Consent <span>(Details : {LOINC code '59284-0' = 'Patient Consent)</span></p><p><b>patient</b>: <a>Patient/C72AWDCHWM3O4RFH</a></p><p><b>dateTime</b>: 23/06/2016 5:02:33 PM</p><p><b>performer</b>: <a>RelatedPerson/C72AWDGCN7HZ3T6D</a></p><p><b>organization</b>: <a>Organization/C72AWDEFI56VQ4RG</a></p><p><b>policyRule</b>: opt-in <span>(Details : {http://terminology.hl7.org/CodeSystem/v3-ActCode code 'OPTIN' = 'opt-in)</span></p><blockquote><p><b>provision</b></p><p><b>period</b>: 23/06/2016 5:02:33 PM --&gt; 23/06/2016 5:32:33 PM</p><h3>Provisions</h3><table><tr><td>-</td></tr><tr><td>*</td></tr></table></blockquote></div>"
  },
  "identifier" : [ {
    "system" : "http://www.happyvalley.com/fhir/consentexample",
    "value" : "wqf3Df-N1I2kTTcyJCL"
  } ],
  "status" : "active",
  "scope" : {
    "coding" : [ {
      "system" : "http://terminology.hl7.org/CodeSystem/consentscope",
      "code" : "patient-privacy"
    } ]
  },
  "category" : [ {
    "coding" : [ {
      "system" : "http://loinc.org",
      "code" : "59284-0"
    } ]
  } ],
  "patient" : {
    "reference" : "Patient/C72AWDCHWM3O4RFH"
  },
  "dateTime" : "2016-06-23T17:02:33+10:00",
  "performer" : [ {
    "reference" : "RelatedPerson/C72AWDGCN7HZ3T6D"
  } ],
  "organization" : [ {
    "reference" : "Organization/C72AWDEFI56VQ4RG"
  } ],
  "policyRule" : {
    "coding" : [ {
      "system" : "http://terminology.hl7.org/CodeSystem/consentpolicycodes",
      "code" : "cric"
    } ]
  },
  "provision" : {
    "period" : {
      "start" : "2016-06-23T17:02:33+10:00",
      "end" : "2016-06-23T17:32:33+10:00"
    },
    "provision" : [ {
      "type" : "permit",
      "action" : [ {
        "coding" : [ {
          "system" : "http://terminology.hl7.org/CodeSystem/consentaction",
          "code" : "access"
        } ]
      } ],
      "class" : [ {
        "system" : "http://hl7.org/fhir/resource-types",
        "code" : "MedicationRequest"
      } ]
    } ]
  }
}