STU 3 Candidate

This page is part of the FHIR Specification (v1.4.0: STU 3 Ballot 3). 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 R3

Provenance-example.ttl

Raw Turtle, JSON-LD

General Provenance Example

@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <http://loinc.org/owl#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sct: <http://snomed.info/sct/> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org/fhir//Provenance/example> a fhir:Provenance;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "example"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ]
  ];
  fhir:Provenance.target [
     fhir:index 0;
     fhir:reference <http://hl7.org/fhir/Procedure/example/_history/1>;
     fhir:Reference.reference [ fhir:value "Procedure/example/_history/1" ]
  ];
  fhir:Provenance.period [
     fhir:Period.start [ fhir:value "2015-06-27"^^xs:date ]
  ];
  fhir:Provenance.recorded [ fhir:value "2015-06-27T08:39:24+10:00"^^xs:dateTime];
  fhir:Provenance.reason [
     fhir:index 0;
     a sct:3457005;
     fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
     fhir:Coding.code [ fhir:value "3457005" ];
     fhir:Coding.display [ fhir:value "Referral" ]
  ];
  fhir:Provenance.location [
     fhir:reference <http://hl7.org/fhir/Location/1>;
     fhir:Reference.reference [ fhir:value "Location/1" ]
  ];
  fhir:Provenance.policy [
     fhir:value "http://acme.com/fhir/Consent/25";
     fhir:index 0
  ];
  fhir:Provenance.agent [
     fhir:index 0;
     fhir:Provenance.agent.role [
       fhir:Coding.system [ fhir:value "http://hl7.org/fhir/provenance-participant-role" ];
       fhir:Coding.code [ fhir:value "author" ]     ];
     fhir:Provenance.agent.actorReference [
       fhir:reference <http://hl7.org/fhir/Practitioner/xcda-author>;
       fhir:Reference.reference [ fhir:value "Practitioner/xcda-author" ]     ];
     fhir:Provenance.agent.userId [
       fhir:Identifier.system [ fhir:value "http://acme.com/fhir/users/sso" ];
       fhir:Identifier.value [ fhir:value "hhd" ]     ];
     fhir:Provenance.agent.relatedAgent [
       fhir:index 0;
       fhir:Provenance.agent.relatedAgent.type [
         fhir:CodeableConcept.text [ fhir:value "used" ]       ];
       fhir:Provenance.agent.relatedAgent.target [ fhir:value "#a1" ]     ]
  ];
  fhir:Provenance.agent [
     fhir:index 1;
     fhir:Element.id [ fhir:value "a1" ];
     fhir:Provenance.agent.role [
       fhir:Coding.system [ fhir:value "http://hl7.org/fhir/v3/ParticipationType" ];
       fhir:Coding.code [ fhir:value "DEV" ]     ];
     fhir:Provenance.agent.actorReference [
       fhir:reference <http://hl7.org/fhir/Device/software>;
       fhir:Reference.reference [ fhir:value "Device/software" ]     ]
  ];
  fhir:Provenance.entity [
     fhir:index 0;
     fhir:Provenance.entity.role [ fhir:value "source" ];
     fhir:Provenance.entity.type [
       a loinc:57133-1;
       fhir:Coding.system [ fhir:value "http://loinc.org" ];
       fhir:Coding.code [ fhir:value "57133-1" ];
       fhir:Coding.display [ fhir:value "Referral note" ]     ];
     fhir:Provenance.entity.reference [ fhir:value "DocumentReference/90f55916-9d15-4b8f-87a9-2d7ade8670c8" ];
     fhir:Provenance.entity.display [ fhir:value "CDA Document in XDS repository" ]
  ].

# -------------------------------------------------------------------------------------


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.