This page is part of the FHIR Specification v6.0.0-ballot1: Release 6 Ballot (1st Draft) (see Ballot Notes). The current version is 5.0.0. For a full list of available versions, see the Directory of published versions
Example Provenance/example1 (Turtle)
Raw Turtle (+ also see Turtle/RDF Format Specification)
Targeted Provenance Example - got the patients name from the patient directly
@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 -------------------------------------------------------------------
[a fhir:Provenance ;
fhir:nodeRole fhir:treeRoot ;
fhir:id [ fhir:v "example1"] ; #
fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: Provenance</b><a name=\"example1\"> </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 Provenance "example1" </p></div><p><b>target</b>: <span title=\" \n Got the patient's official name from the patient directly\n \"><a href=\"patient-example-c.html\">Patient/pat3/_history/1</a> "Simon NOTSOWELL"(#n1)</span></p><p><b>recorded</b>: 7 Dec 2021, 12:23:45 pm</p><h3>Agents</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Who</b></td></tr><tr><td style=\"display: none\">*</td><td>informant <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/5.4.0/CodeSystem-v3-ParticipationType.html\">ParticipationType</a>#INF)</span></td><td><a href=\"patient-example-c.html\">Patient/pat3</a> "Simon NOTSOWELL"</td></tr></table></div>"
] ; #
# Got the patient's official name from the patient directly
#
fhir:target ( [
fhir:extension ( [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/targetElement"^^xsd:anyURI ] ;
fhir:value [ fhir:v "n1"^^xsd:anyURI ]
] ) ;
fhir:reference [ fhir:v "Patient/pat3/_history/1" ]
] ) ; #
fhir:recorded [ fhir:v "2021-12-07T12:23:45+11:00"^^xsd:dateTime] ; #
fhir:agent ( [
fhir:type [
fhir:coding ( [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ParticipationType"^^xsd:anyURI ] ;
fhir:code [ fhir:v "INF" ]
] )
] ;
fhir:who [
fhir:reference [ fhir:v "Patient/pat3" ]
]
] )] . #
# -------------------------------------------------------------------------------------
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.