{
"resourceType": "Consent", "id": "consent-example-smartonfhir", "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/xcda" }, "dateTime": "2016-06-23T17:02:33+10:00", "performer": [ { "reference": "RelatedPerson/peter" } ], "organization": [ { "reference": "Organization/f001" } ], "policyRule": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", "code": "OPTIN" } ] }, "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" } ] } ] }, "meta": { "tag": [ { "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason", "code": "HTEST", "display": "test health data" } ] }
}