{ "resourceType": "Consent", "id": "consent-example-smartonfhir", "text": { "status": "generated", "div": "

Generated Narrative with Details

id: consent-example-smartonfhir

status: active

dateTime: Jun 23, 2016 5:02:33 PM

period: Jun 23, 2016 5:02:33 PM --> Jun 23, 2016 5:32:33 PM

patient: Patient/xcda

consentor: RelatedPerson/peter

organization: Organization/example

policy: http://hl7.org/fhir/ConsentPolicy/opt-in

Excepts

-TypeActionClass
*permitAccess (Details : {http://hl7.org/fhir/consentaction code 'access' = 'Access)MedicationOrder (Details: http://hl7.org/fhir/resource-types code MedicationOrder = 'MedicationOrder', stated as 'null')
" }, "status": "active", "dateTime": "2016-06-23T17:02:33+10:00", "period": { "start": "2016-06-23T17:02:33+10:00", "end": "2016-06-23T17:32:33+10:00" }, "patient": { "reference": "Patient/xcda" }, "consentor": [ { "reference": "RelatedPerson/peter" } ], "organization": { "reference": "Organization/example" }, "policy": "http://hl7.org/fhir/ConsentPolicy/opt-in", "except": [ { "type": "permit", "action": [ { "coding": [ { "system": "http://hl7.org/fhir/consentaction", "code": "access" } ] } ], "class": [ { "system": "http://hl7.org/fhir/resource-types", "code": "MedicationOrder" } ] } ] }