Create Consent
POST {{fhir_url}}/Consent
Request Body
{"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/af0f2bc9-eb17-4ae2-8417-dfee93525cbb"}, "dateTime"=>"2020-05-11", "sourceAttachment"=>{"title"=>"The patient has consented to their HIPAA rights and also data sharing."}, "policyRule"=>{"coding"=>[{"system"=>"http://terminology.hl7.org/CodeSystem/consentpolicycodes", "code"=>"hipaa-auth"}]}, "provision"=>{"period"=>{"start"=>"1964-01-01", "end"=>"2022-01-01"}}}