Security
and
Privacy
This
page
is
part
of
the
Continuous
Integration
Build
of
FHIR
Specification
(v4.0.1:
R4
-
Mixed
Normative
and
STU
)
in
it's
permanent
home
(it
will
always
(will
be
available
incorrect/inconsistent
at
this
URL).
The
current
version
which
supercedes
this
version
is
5.0.0
.
For
a
full
list
of
available
versions,
see
times).
See
the
Directory
of
published
versions
.
Page
versions:
R5
R4B
R4
R3
| Responsible Owner: Community Based Collaborative Care Work Group | Standards Status : Informative | Compartments : Group , Patient |
Raw Turtle (+ also see Turtle/RDF Format Specification )
Template for recording a Smart on FHIR Authorization
@prefix fhir: <http://hl7.org/fhir/> .@prefix loinc: <http://loinc.org/rdf#> .@prefix loinc: <https://loinc.org/rdf/> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @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>scope</b>: Privacy Consent <span>(Details : {http://terminology.hl7.org/CodeSystem/consentscope code 'patient-privacy' = 'Privacy Consent)</span></p><p><b>category</b>: Patient Consent <span>(Details : {LOINC code '59284-0' = 'Patient Consent)</span></p><p><b>patient</b>: <a>Patient/xcda</a></p><p><b>dateTime</b>: 23/06/2016 5:02:33 PM</p><p><b>performer</b>: <a>RelatedPerson/peter</a></p><p><b>organization</b>: <a>Organization/f001</a></p><p><b>policyRule</b>: opt-in <span>(Details : {http://terminology.hl7.org/CodeSystem/v3-ActCode code 'OPTIN' = 'opt-in)</span></p><blockquote><p><b>provision</b></p><p><b>period</b>: 23/06/2016 5:02:33 PM --> 23/06/2016 5:32:33 PM</p><h3>Provisions</h3><table><tr><td>-</td></tr><tr><td>*</td></tr></table></blockquote></div>" ]; fhir:Consent.status [ fhir:value "active"]; fhir:Consent.scope [ fhir:CodeableConcept.coding [ fhir:index 0; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/consentscope" ]; fhir:Coding.code [ fhir:value "patient-privacy" ] ] ]; fhir:Consent.category [ fhir:index 0; fhir:CodeableConcept.coding [ fhir:index 0; a loinc:59284-0; fhir:Coding.system [ fhir:value "http://loinc.org" ]; fhir:Coding.code [ fhir:value "59284-0" ] ] ]; fhir:Consent.patient [ fhir:link <http://hl7.org/fhir/Patient/xcda>; fhir:Reference.reference [ fhir:value "Patient/xcda" ] ]; fhir:Consent.dateTime [ fhir:value "2016-06-23T17:02:33+10:00"^^xsd:dateTime]; fhir:Consent.performer [ fhir:index 0; fhir:link <http://hl7.org/fhir/RelatedPerson/peter>; fhir:Reference.reference [ fhir:value "RelatedPerson/peter" ] ]; fhir:Consent.organization [ fhir:index 0; fhir:link <http://hl7.org/fhir/Organization/f001>; fhir:Reference.reference [ fhir:value "Organization/f001" ] ]; fhir:Consent.policyRule [ fhir:CodeableConcept.coding [ fhir:index 0; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ActCode" ]; fhir:Coding.code [ fhir:value "OPTIN" ] ] ]; fhir:Consent.provision [ fhir:Consent.provision.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.provision.provision [ fhir:index 0; fhir:Consent.provision.type [ fhir:value "permit" ]; fhir:Consent.provision.action [ fhir:index 0; fhir:CodeableConcept.coding [ fhir:index 0; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/consentaction" ]; fhir:Coding.code [ fhir:value "access" ] ] ]; fhir:Consent.provision.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/Consent/consent-example-smartonfhir> a fhir:Consent ; fhir:nodeRole fhir:treeRoot ; fhir:id [ fhir:v "consent-example-smartonfhir"] ; # # This example provides a basic template for recording # the consent associated with a SMART on FHIR OAuth dance. # # In SMART on FHIR, the user grants (consents) to a set # of actions that the server can take when with regard to # release of information from their own record to the application # # This is not the main intended use of the Consent resource, # and there's no need for the consent resource as part of # the SMART on FHIR Authorization process, or when using # Heart UMA. Using a Consent resource to record and exchange # the users consent may be useful for recording and storing # the consent and making it available to the user later, # or for exchanging the patient's consent between AS and RS, # or between systems in a multi-system virtual RS a very # common scenario) # # Note that whichever system builds this Content resource, # it needs access to information from both the AS and the # RS. # # Note also, that a situation where a practitioner type user # authorises the application to access information on a general # set of patients does not count as 'consent'. # fhir:status [ fhir:v "active"] ; # fhir:category ( [ fhir:coding ( [ a loinc:59284-0 ; fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ; fhir:l <http://loinc.org> ] ; fhir:code [ fhir:v "59284-0" ] ] ) ] ) ; # fhir:subject [ fhir:l <http://hl7.org/fhir/Patient/xcda> ; fhir:reference [ fhir:v "Patient/xcda" ] ] ; # In this SMART on FHIR login, the user consents for data sharing for their elderly parent's record fhir:date [ fhir:v "2016-06-23"^^xsd:date] ; # fhir:grantor ( [ fhir:l <http://hl7.org/fhir/RelatedPerson/peter> ; fhir:reference [ fhir:v "RelatedPerson/peter" ] # this is the patient record that matches the person\n making the decision. note: it's not always a related person ] ) ; # fhir:controller ( [ fhir:l <http://hl7.org/fhir/Organization/f001> ; fhir:reference [ fhir:v "Organization/f001" ] # The organization running the Authentication server ] ) ; # fhir:regulatoryBasis ( [ fhir:coding ( [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActCode"^^xsd:anyURI ; fhir:l <http://terminology.hl7.org/CodeSystem/v3-ActCode> ] ; fhir:code [ fhir:v "INFA" ] ] ) ] ) ; # there's no source record for a Smart on FHIR consent # smart on fhir requires a base opt-in policy fhir:decision [ fhir:v "permit"] ; # each scope that relates to FHIR resource access is represented as an exception fhir:provision ( [ fhir:period [ fhir:start [ fhir:v "2016-06-23T17:02:33+10:00"^^xsd:dateTime ] ; fhir:end [ fhir:v "2016-06-23T17:32:33+10:00"^^xsd:dateTime ] ] ; fhir:provision ( [ fhir:action ( [ fhir:coding ( [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/consentaction"^^xsd:anyURI ; fhir:l <http://terminology.hl7.org/CodeSystem/consentaction> ] ; fhir:code [ fhir:v "access" ] ] ) ] [ fhir:coding ( [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/consentaction"^^xsd:anyURI ; fhir:l <http://terminology.hl7.org/CodeSystem/consentaction> ] ; fhir:code [ fhir:v "correct" ] ] ) ] ) ; # this rule corresponds to MedicationRequest\/read , no actors here, or anything, just read\/write and the resource type fhir:resourceType ( [ fhir:system [ fhir:v "http://hl7.org/fhir/resource-types"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/resource-types> ] ; fhir:code [ fhir:v "MedicationRequest" ] ] ) ] ) ] ) . # <http://hl7.org/fhir/Patient/xcda> a fhir:Patient . <http://hl7.org/fhir/RelatedPerson/peter> a fhir:RelatedPerson . <http://hl7.org/fhir/Organization/f001> a fhir:Organization .# - ontology header ------------------------------------------------------------ <http://hl7.org/fhir/Consent/consent-example-smartonfhir.ttl> a owl:Ontology; owl:imports fhir:fhir.ttl; owl:versionIRI <http://build.fhir.org/Consent/consent-example-smartonfhir.ttl> .# -------------------------------------------------------------------------------------
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.
FHIR
®©
HL7.org
2011+.
FHIR
Release
4
(Technical
Correction
#1)
(v4.0.1)
R6
hl7.fhir.core#6.0.0-ballot3
generated
on
Fri,
Nov
1,
2019
09:34+1100.
QA
Page
14,
2025
20:58+0000.
Links:
Search
|
Version
History
|
Table
of
Contents
|
Credits
Glossary
|
QA
|
Compare
to
R3
R4
|
Compare
to
R5
|
Compare
to
Last
Ballot
|
|
Propose
a
change