This page is part of the FHIR Specification (v1.8.0: STU 3 Draft). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3
Template for recording a Smart on FHIR Authorization
@prefix fhir: <http://hl7.org/fhir/> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . # - resource ------------------------------------------------------------------- <http://hl7.org/fhir/Consent/consent-example-smartonfhir> a fhir:Consent; fhir:nodeRole fhir:treeRoot; fhir:Resource.id [ fhir:value "consent-example-smartonfhir"]; fhir:DomainResource.text [ fhir:Narrative.status [ fhir:value "generated" ]; fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: consent-example-smartonfhir</p><p><b>status</b>: active</p><p><b>dateTime</b>: 23/06/2016 5:02:33 PM</p><p><b>period</b>: 23/06/2016 5:02:33 PM --> 23/06/2016 5:32:33 PM</p><p><b>patient</b>: <a>Patient/xcda</a></p><p><b>consentor</b>: <a>RelatedPerson/peter</a></p><p><b>organization</b>: <a>Organization/example</a></p><p><b>policy</b>: <a>http://hl7.org/fhir/ConsentPolicy/opt-in</a></p><h3>Excepts</h3><table><tr><td>-</td><td><b>Type</b></td><td><b>Action</b></td><td><b>Class</b></td></tr><tr><td>*</td><td>permit</td><td>Access <span>(Details : {http://hl7.org/fhir/consentaction code 'access' = 'Access)</span></td><td>MedicationRequest (Details: http://hl7.org/fhir/resource-types code MedicationRequest = 'MedicationRequest', stated as 'null')</td></tr></table></div>" ]; fhir:Consent.status [ fhir:value "active"]; fhir:Consent.dateTime [ fhir:value "2016-06-23T17:02:33+10:00"^^xsd:dateTime]; fhir:Consent.period [ fhir:Period.start [ fhir:value "2016-06-23T17:02:33+10:00"^^xsd:dateTime ]; fhir:Period.end [ fhir:value "2016-06-23T17:32:33+10:00"^^xsd:dateTime ] ]; fhir:Consent.patient [ fhir:link <http://hl7.org/fhir/Patient/xcda>; fhir:Reference.reference [ fhir:value "Patient/xcda" ] ]; fhir:Consent.consentor [ fhir:index 0; fhir:link <http://hl7.org/fhir/RelatedPerson/peter>; fhir:Reference.reference [ fhir:value "RelatedPerson/peter" ] ]; fhir:Consent.organization [ fhir:link <http://hl7.org/fhir/Organization/example>; fhir:Reference.reference [ fhir:value "Organization/example" ] ]; fhir:Consent.policy [ fhir:value "http://hl7.org/fhir/ConsentPolicy/opt-in"]; fhir:Consent.except [ fhir:index 0; fhir:Consent.except.type [ fhir:value "permit" ]; fhir:Consent.except.action [ fhir:index 0; fhir:CodeableConcept.coding [ fhir:index 0; fhir:Coding.system [ fhir:value "http://hl7.org/fhir/consentaction" ]; fhir:Coding.code [ fhir:value "access" ] ] ]; fhir:Consent.except.class [ fhir:index 0; fhir:Coding.system [ fhir:value "http://hl7.org/fhir/resource-types" ]; fhir:Coding.code [ fhir:value "MedicationRequest" ] ] ] . <http://hl7.org/fhir/Patient/xcda> a fhir:Patient . <http://hl7.org/fhir/RelatedPerson/peter> a fhir:RelatedPerson . <http://hl7.org/fhir/Organization/example> a fhir:Organization . # -------------------------------------------------------------------------------------
Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.