Foundation
This
page
is
part
of
the
FHIR
Specification
(v4.0.1:
R4
(v5.0.0-draft-final:
Final
QA
Preview
for
R5
-
Mixed
Normative
and
STU
see
ballot
notes
)
in
it's
permanent
home
(it
will
always
be
available
at
this
URL).
).
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
|
|
Maturity Level : N/A | Standards Status : Informative | Compartments : Device , Patient , Practitioner |
Raw
Turtle
(+
also
see
Turtle/RDF
Format
Specification
ShEx
)
Example
risk
assessment
ShEx
statement
for
deviceassociation
PREFIX fhir: <http://hl7.org/fhir/> PREFIX fhirvs: <http://hl7.org/fhir/ValueSet/> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#># - resource -------------------------------------------------------------------IMPORT <Group.shex> IMPORT <Device.shex> IMPORT <Period.shex> IMPORT <Patient.shex> IMPORT <Reference.shex> IMPORT <Identifier.shex> IMPORT <Practitioner.shex> IMPORT <RelatedPerson.shex> IMPORT <BodyStructure.shex> IMPORT <DomainResource.shex> IMPORT <CodeableConcept.shex> IMPORT <BackboneElement.shex><http://hl7.org/fhir/RiskAssessment/riskexample> a fhir:RiskAssessment; fhir:nodeRole fhir:treeRoot; fhir:Resource.id [ fhir:value "riskexample"]; fhir:DomainResource.text [ fhir:Narrative.status [ fhir:value "generated" ]; fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">Risk assessment for reference only</div>" ]; fhir:RiskAssessment.identifier [ fhir:index 0; fhir:Identifier.use [ fhir:value "official" ]; fhir:Identifier.system [ fhir:value "http://example.org" ]; fhir:Identifier.value [ fhir:value "risk-assessment-breastcancer1" ] ]; fhir:RiskAssessment.basedOn [ fhir:link <http://hl7.org/fhir/ImmunizationRecommendation/example>; fhir:Reference.reference [ fhir:value "ImmunizationRecommendation/example" ] ]; fhir:RiskAssessment.parent [ fhir:link <http://hl7.org/fhir/DiagnosticReport/example>; fhir:Reference.reference [ fhir:value "DiagnosticReport/example" ] ]; fhir:RiskAssessment.status [ fhir:value "final"]; fhir:RiskAssessment.code [ fhir:CodeableConcept.coding [ fhir:index 0; fhir:Coding.system [ fhir:value "http://browser.ihtsdotools.org/" ]; fhir:Coding.code [ fhir:value "709510001" ]; fhir:Coding.display [ fhir:value "Assessment of risk for disease (procedure)" ] ] ]; fhir:RiskAssessment.subject [ fhir:link <http://hl7.org/fhir/Patient/example>; fhir:Reference.reference [ fhir:value "Patient/example" ] ]; fhir:RiskAssessment.encounter [ fhir:link <http://hl7.org/fhir/Encounter/example>; fhir:Reference.reference [ fhir:value "Encounter/example" ]; fhir:Reference.display [ fhir:value "Encounter with patient @example" ] ]; fhir:RiskAssessment.occurrenceDateTime [ fhir:value "2017-10-10"^^xsd:date]; fhir:RiskAssessment.condition [ fhir:link <http://hl7.org/fhir/Condition/example>; fhir:Reference.reference [ fhir:value "Condition/example" ] ]; fhir:RiskAssessment.performer [ fhir:link <http://hl7.org/fhir/Practitioner/example>; fhir:Reference.reference [ fhir:value "Practitioner/example" ] ]; fhir:RiskAssessment.basis [ fhir:index 0; fhir:link <http://hl7.org/fhir/DiagnosticReport/example>; fhir:Reference.reference [ fhir:value "DiagnosticReport/example" ] ], [ fhir:index 1; fhir:link <http://hl7.org/fhir/Observation/example>; fhir:Reference.reference [ fhir:value "Observation/example" ] ]; fhir:RiskAssessment.prediction [ fhir:index 0; fhir:RiskAssessment.prediction.outcome [ fhir:CodeableConcept.text [ fhir:value "Breast Cancer" ] ]; fhir:RiskAssessment.prediction.probabilityDecimal [ fhir:value "0.000368"^^xsd:decimal ]; fhir:RiskAssessment.prediction.whenRange [ fhir:Range.low [ fhir:Quantity.value [ fhir:value "54"^^xsd:decimal ]; fhir:Quantity.unit [ fhir:value "years" ]; fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ]; fhir:Quantity.code [ fhir:value "a" ] ]; fhir:Range.high [ fhir:Quantity.value [ fhir:value "57"^^xsd:decimal ]; fhir:Quantity.unit [ fhir:value "years" ]; fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ]; fhir:Quantity.code [ fhir:value "a" ] ] ] ]; fhir:RiskAssessment.note [ fhir:index 0; fhir:Annotation.text [ fhir:value "This risk assessment is for reference only" ] ] .<http://hl7.org/fhir/ImmunizationRecommendation/example> a fhir:ImmunizationRecommendation .start=@<DeviceAssociation> AND {fhir:nodeRole [fhir:treeRoot]}<http://hl7.org/fhir/DiagnosticReport/example> a fhir:DiagnosticReport .# A record of association or dissociation of a device with a patient <DeviceAssociation> EXTENDS @<DomainResource> CLOSED {<http://hl7.org/fhir/Patient/example> a fhir:Patient .a [fhir:DeviceAssociation]?; fhir:nodeRole [fhir:treeRoot]?;<http://hl7.org/fhir/Encounter/example> a fhir:Encounter .fhir:identifier @<OneOrMore_Identifier>?; # Instance identifier fhir:device @<Reference> AND {fhir:link @<Device> ? }; # Reference to the devices # associated with the patient or # group fhir:category @<OneOrMore_CodeableConcept>?; # Describes the relationship between # the device and subject fhir:status @<CodeableConcept>; # implanted | explanted | attached | # entered-in-error | unknown fhir:statusReason @<OneOrMore_CodeableConcept>?; # The reasons given for the current # association status fhir:subject @<Reference> AND {fhir:link @<Device> OR @<Group> OR @<Patient> OR @<Practitioner> OR @<RelatedPerson> ? }?; # The individual, group of # individuals or device that the # device is on or associated with fhir:bodyStructure @<Reference> AND {fhir:link @<BodyStructure> ? }?; # Current anatomical location of the # device in/on subject fhir:period @<Period>?; # Begin and end dates and times for # the device association fhir:operation @<OneOrMore_DeviceAssociation.operation>?; # The details about the device when # it is in use to describe its # operation }<http://hl7.org/fhir/Condition/example> a fhir:Condition .# The details about the device when it is in use to describe its operation <DeviceAssociation.operation> EXTENDS @<BackboneElement> CLOSED { fhir:status @<CodeableConcept>; # Device operational condition fhir:operator @<OneOrMore_Reference_Patient_OR_Practitioner_OR_RelatedPerson>?; # The individual performing the # action enabled by the device fhir:period @<Period>?; # Begin and end dates and times for # the device's operation }<http://hl7.org/fhir/Practitioner/example> a fhir:Practitioner .#---------------------- Cardinality Types (OneOrMore) -------------------<http://hl7.org/fhir/Observation/example> a fhir:Observation .<OneOrMore_Identifier> CLOSED { rdf:first @<Identifier> ; rdf:rest [rdf:nil] OR @<OneOrMore_Identifier> }# - ontology header ------------------------------------------------------------<OneOrMore_CodeableConcept> CLOSED { rdf:first @<CodeableConcept> ; rdf:rest [rdf:nil] OR @<OneOrMore_CodeableConcept> }<http://hl7.org/fhir/RiskAssessment/riskexample.ttl> a owl:Ontology; owl:imports fhir:fhir.ttl; owl:versionIRI <http://build.fhir.org/RiskAssessment/riskexample.ttl> .<OneOrMore_DeviceAssociation.operation> CLOSED { rdf:first @<DeviceAssociation.operation> ; rdf:rest [rdf:nil] OR @<OneOrMore_DeviceAssociation.operation> }# -------------------------------------------------------------------------------------<OneOrMore_Reference_Patient_OR_Practitioner_OR_RelatedPerson> CLOSED { rdf:first @<Reference> AND {fhir:link @<Patient> OR @<Practitioner> OR @<RelatedPerson> } ; rdf:rest [rdf:nil] OR @<OneOrMore_Reference_Patient_OR_Practitioner_OR_RelatedPerson> }
Usage
note:
every
effort
has
been
made
to
ensure
that
the
examples
ShEx
files
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)
R5
hl7.fhir.core#5.0.0-draft-final
generated
on
Fri,
Nov
Wed,
Mar
1,
2019
09:36+1100.
QA
Page
2023
23:06+1100.
Links:
Search
|
Version
History
|
Table
of
Contents
|
Credits
Glossary
|
QA
|
Compare
to
R3
R4B
|
Compare
to
R5
Draft
|
|
Propose
a
change