Example
Consent/consent-example-CDA
(Turtle)
Vocabulary
Community
Based
Collaborative
Care
Work
Group
|
Maturity
Level
:
1
N/A
|
Standards
Status
:
Informative
|
Use
Context
Compartments
:
Not
Intended
for
Production
use
This
is
a
code
system
defined
by
the
FHIR
project.
Summary
Defining
URL:
http://hl7.org/fhir/episodeofcare-type
Name:
EpisodeOfCareType
Definition:
This
example
value
set
defines
a
set
of
codes
that
can
be
used
to
express
the
usage
type
of
an
EpisodeOfCare
record.
Committee:
Patient
Administration
Work
Group
OID:
2.16.840.1.113883.4.642.1.651
(for
OID
based
terminology
systems)
|
Source
Resource
XML
/
JSON
This
Code
system
is
used
in
the
following
value
sets:
-
EpisodeOfCareType
(This
example
value
set
defines
a
set
of
codes
that
can
be
used
to
express
the
usage
type
of
an
EpisodeOfCare
record.)
Narrative
4.2.12.651.1
Content
-
XML
-
4.2.12.651.2
JSON
EpisodeOfCareType
-
TTL
This
example
value
set
defines
a
set
of
codes
that
can
be
used
to
express
the
usage
type
of
an
EpisodeOfCare
record.
This
code
system
http://hl7.org/fhir/episodeofcare-type
defines
the
following
codes:
Code
Display
Definition
hacc
Home
and
Community
Care
pac
Post
Acute
Care
diab
Post
co-ordinated
diabetes
program
da
Raw
Turtle
Drug
and
alcohol
rehabilitation
cacp
(+
also
see
Turtle/RDF
Format
Specification
Community-based
aged
care
)
See
the
full
registry
of
value
sets
defined
as
part
of
FHIR.
Share
CDA
documents
from
a
specific
author
to
a
specific
recipient
@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <https://loinc.org/rdf/> .
@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 -------------------------------------------------------------------
[a fhir:Consent ;
fhir:nodeRole fhir:treeRoot ;
fhir:id [ fhir:v "consent-example-CDA"] ; #
fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: Consent</b><a name=\"consent-example-CDA\"> </a></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource Consent "consent-example-CDA" </p></div><p><b>identifier</b>: <span title=\" The patient opts in to sharing CDA documents from a specific author to a specific recipient for a limited period \">id: 494e0c7a-a69e-4fb4-9d02-6aae747790d7</span></p><p><b>status</b>: active</p><p><b>category</b>: Notice of Privacy Practices <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/4.0.0/CodeSystem-consentcategorycodes.html\">Consent Category Codes</a>#npp)</span></p><p><b>subject</b>: <a href=\"patient-example-b.html\">Patient/pat2</a> "Duck DONALD"</p><p><b>date</b>: 2018-12-28</p><p><b>grantee</b>: <a href=\"patient-example-b.html\">Patient/pat2</a> "Duck DONALD"</p><p><b>controller</b>: <span title=\" this consent relates to sharing data with a specific recipient \"><a href=\"organization-example-f001-burgers.html\">Organization/f001</a> "Burgers University Medical Center"</span></p><p><b>sourceReference</b>: <a href=\"pcd-example-notAuthor.html\">Contract/pcd-example-notAuthor</a></p><p><b>regulatoryBasis</b>: information access <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/4.0.0/CodeSystem-v3-ActCode.html\">ActCode</a>#INFA)</span></p><p><b>decision</b>: <span title=\" A base denial of access to Dr. F001 but allows for sharing CDA documents of type Discharge Summary + Summarization of Episode Note from a specific author for a limited period \">permit</span></p><blockquote><p><b>provision</b></p><p><b>period</b>: 2018-10-10 --> 2019-10-10</p><h3>Actors</h3><table class=\"grid\"><tr><td>-</td><td><b>Role</b></td><td><b>Reference</b></td></tr><tr><td>*</td><td>primary information recipient <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/4.0.0/CodeSystem-v3-ParticipationType.html\">ParticipationType</a>#PRCP)</span></td><td><a href=\"practitioner-example-f001-evdb.html\">Practitioner/f001</a> "Eric VAN DEN BROEK"</td></tr></table><blockquote><p><b>provision</b></p><blockquote><p><b>actor</b></p></blockquote><p><b>documentType</b>: <span title=\" CDA documents \">application/hl7-cda+xml (Details: urn:ietf:bcp:13 code application/hl7-cda+xml = 'application/hl7-cda+xml', stated as 'null')</span></p><p><b>code</b>: <span title=\" code rules \">Summary of episode note <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://loinc.org/\">LOINC</a>#34133-9)</span></span>, Discharge summary <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://loinc.org/\">LOINC</a>#18842-5)</span></p></blockquote></blockquote></div>"
] ; # The patient opts in to sharing CDA documents from a specific author to a specific recipient for a limited period
fhir:identifier ( [
fhir:system [ fhir:v "urn:oid:2.16.840.1.113883.3.72.5.9.1"^^xsd:anyURI ] ;
fhir:value [ fhir:v "494e0c7a-a69e-4fb4-9d02-6aae747790d7" ]
] ) ; # consent GUID generated by application
fhir:status [ fhir:v "active"] ; #
fhir:category ( [
fhir:coding ( [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/consentcategorycodes"^^xsd:anyURI ] ;
fhir:code [ fhir:v "npp" ]
] )
] ) ; #
fhir:subject [
fhir:reference [ fhir:v "Patient/pat2" ]
] ; # one of the stock examples
fhir:date [ fhir:v "2018-12-28"^^xsd:date] ; #
fhir:grantee ( [
fhir:reference [ fhir:v "Patient/pat2" ]
] ) ; # author is patient themselves, and they sign
fhir:controller ( [
fhir:reference [ fhir:v "Organization/f001" ]
] ) ; # this consent relates to sharing data with a specific recipient
fhir:sourceReference ( [
fhir:reference [ fhir:v "Contract/pcd-example-notAuthor" ] # This Consent would be the machine usable version of a Contract resource where the original language and signatures are located
] ) ; #
fhir:regulatoryBasis ( [
fhir:coding ( [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActCode"^^xsd:anyURI ] ;
fhir:code [ fhir:v "INFA" ]
] )
] ) ; #
fhir:decision [ fhir:v "permit"] ; # A base denial of access to Dr. F001 but allows for sharing CDA documents of type Discharge Summary + Summarization of Episode Note from a specific author for a limited period
fhir:provision ( [
fhir:period [
fhir:start [ fhir:v "2018-10-10"^^xsd:date ] ;
fhir:end [ fhir:v "2019-10-10"^^xsd:date ]
] ;
fhir:actor ( [
fhir:role [
fhir:coding ( [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ParticipationType"^^xsd:anyURI ] ;
fhir:code [ fhir:v "PRCP" ]
] )
] ;
fhir:reference [
fhir:reference [ fhir:v "Practitioner/f001" ]
] # Stock practitioner
] ) ;
fhir:provision ( [
fhir:actor ( [
fhir:role [
fhir:coding ( [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ParticipationType"^^xsd:anyURI ] ;
fhir:code [ fhir:v "AUT" ]
] )
] ;
fhir:reference [
fhir:reference [ fhir:v "Practitioner/xcda-author" ]
]
] ) ;
fhir:documentType ( [
fhir:system [ fhir:v "urn:ietf:bcp:13"^^xsd:anyURI ] ;
fhir:code [ fhir:v "application/hl7-cda+xml" ]
] ) ; # CDA documents
fhir:code ( [
fhir:coding ( [
a loinc:34133-9 ;
fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "34133-9" ]
] )
] [
fhir:coding ( [
a loinc:18842-5 ;
fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "18842-5" ]
] )
] ) # code rules
] )
] )] . #
# -------------------------------------------------------------------------------------
Explanation
of
the
columns
that
may
appear
on
this
page:
Level
A
few
code
lists
Usage
note:
every
effort
has
been
made
to
ensure
that
FHIR
defines
are
hierarchical
-
each
code
is
assigned
a
level.
In
this
scheme,
some
codes
the
examples
are
under
other
codes,
correct
and
imply
that
the
code
useful,
but
they
are
under
also
applies
Source
The
source
of
the
definition
of
the
code
(when
the
value
set
draws
in
codes
defined
elsewhere)
Code
The
code
(used
as
the
code
in
the
resource
instance).
If
the
code
is
in
italics,
this
indicates
that
the
code
is
not
selectable
('Abstract')
Display
The
display
(used
in
the
display
element
of
a
Coding
).
If
there
is
no
display,
implementers
should
not
simply
display
the
code,
but
map
the
concept
into
their
application
Definition
An
explanation
of
the
meaning
normative
part
of
the
concept
Comments
Additional
notes
about
how
to
use
the
code
specification.