This
page
is
part
of
the
Continuous
Integration
Build
of
FHIR
Specification
(v5.0.0:
R5
-
STU
).
This
is
the
current
published
version
in
it's
permanent
home
(it
will
always
(will
be
available
incorrect/inconsistent
at
this
URL).
For
a
full
list
of
available
versions,
see
times).
See
the
Directory
of
published
versions
.
Page
versions:
R5
R4B
R4
R3
Example
Consent/consent-example-smartonfhir
(XML)
Raw
XML
(
canonical
form
+
also
see
XML
Format
Specification
)
Jump
past
Narrative
Template
for
recording
a
Smart
on
FHIR
Authorization
(id
=
"consent-example-smartonfhir")
<?xml version="1.0" encoding="UTF-8"?>
<Consent xmlns="http://hl7.org/fhir">
<!--
<id value="consent-example-smartonfhir"/>
display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border:
1px solid #8da1b4; border-radius: 5px; line-height: 60% In this SMART on FHIR login, the user consents for data sharing for their elderly
parent's record there's no source record for a Smart on FHIR consent
smart on fhir requires a base opt-in policy each scope that relates to FHIR resource access is represented as an exception
this rule corresponds to MedicationRequest/read &#10; no actors here, or
anything, just read/write and the resource type MedicationRequest (Details: http://hl7.org/fhir/resource-types code MedicationRequest
= 'MedicationRequest', stated as 'null')
<status value="active"/>
<category>
<coding>
<system value="http://loinc.org"/>
<code value="59284-0"/>
</coding>
</category>
<!-- In this SMART on FHIR login, the user consents for data sharing for their elderly
parent's record -->
<subject>
<reference value="Patient/xcda"/>
</subject>
<date value="2016-06-23"/>
<grantor>
<!-- this is the patient record that matches the person
making the decision. note: it's not always a related person -->
<reference value="RelatedPerson/peter"/>
</grantor>
<controller>
<reference value="Organization/f001"/>
</controller>
<!-- there's no source record for a Smart on FHIR consent
smart on fhir requires a base opt-in policy -->
<regulatoryBasis>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
<code value="INFA"/>
</coding>
</regulatoryBasis>
<!-- each scope that relates to FHIR resource access is represented as an exception
-->
<decision value="permit"/>
<provision>
<period>
<start value="2016-06-23T17:02:33+10:00"/>
<end value="2016-06-23T17:32:33+10:00"/>
</period>
<provision>
<action>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/consentaction"/>
<code value="access"/>
</coding>
</action>
<action>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/consentaction"/>
<code value="correct"/>
</coding>
</action>
<resourceType>
<system value="http://hl7.org/fhir/resource-types"/>
<code value="MedicationRequest"/>
</resourceType>
</provision>
</provision>
</
Consent
>
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.