Consent
POST {{host}}/fhir/Consent
Request Body
{"resourceType"=>"Consent", "id"=>"{{fhir_consent_id}}", "text"=>{"status"=>"generated", "div"=>"<div xmlns=\"http://www.w3.org/1999/xhtml\">\n\t\t\t<p>\n\tAuthorize Normal access for Treatment\n\t\t\t</p>\n\t\t\t<p>\n Patient "P. van de Heuvel" wishes to have all of the PHI collected at the Good Health Psychiatric Hospital \n available for normal treatment use.\n\t\t\t</p>\n\t\t</div>"}, "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/{{fhir_patient_id}}", "display"=>"P. van de Heuvel"}, "performer"=>[{"reference"=>"Patient/{{fhir_patient_id}}"}], "dateTime"=>"2016-05-11", "organization"=>[{"reference"=>"Organization/{{fhir_organization_id}}"}], "sourceAttachment"=>{"title"=>"The terms of the consent in lawyer speak."}, "policyRule"=>{"coding"=>[{"system"=>"http://terminology.hl7.org/CodeSystem/v3-ActCode", "code"=>"OPTIN"}]}, "provision"=>{"period"=>{"start"=>"1964-01-01", "end"=>"2016-01-01"}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
content-type | string | ||
prefer | string |