Release 4B Snapshot 3: Connectathon 32 Base

This page is part of the Snapshot #3 for FHIR Specification (v4.3.0: R4B - STU ). The current version which supercedes this version is 5.0.0 R5 , released to support Connectathon 32 . For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3

Provenance-example.ttl

Example Provenance/example (Turtle)

Security Work Group Maturity Level : N/A Standards Status : Informative Compartments : Device , Patient , Practitioner , RelatedPerson

Raw Turtle (+ also see Turtle/RDF Format Specification )

General Provenance Example - data extracted from CDA document from XDS

@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 sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

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

<http://hl7.org/fhir/Provenance/example> a fhir:Provenance;

[a fhir:Provenance;

  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "example"];

  fhir:Resource.id [ fhir:value "example"]; # 

  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">procedure record authored on 27-June 2015 by Harold Hippocrates, MD Content extracted from XDS managed CDA Referral received 26-June as authorized by a referenced Consent.</div>"
  ];

     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: Provenance</b><a name=\"example\"> </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 &quot;example&quot; </p></div><p><b>target</b>: <span title=\" \n	&lt;text&gt;\n		&lt;status value=&quot;additional&quot;/&gt;\n		&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;procedure record authored on 27-June 2015 by Harold Hippocrates, MD Content extracted from XDS managed CDA Referral received 26-June as authorized by a referenced Consent.&lt;/div&gt;\n	&lt;/text&gt;\n &amp;#10;  \n    where possible, provenance targets should be version specific,\n    so that there is no ambiguity about which version of the \n    record this relates to\n   \"><a href=\"procedure-example.html\">Procedure/example/_history/1</a></span></p><p><b>occurred</b>: 2015-06-27 --&gt; 2015-06-28</p><p><b>recorded</b>: 27 June 2015, 8:39:24 am</p><p><b>policy</b>: <span title=\"  reference to a patient consent to share inforamtion  \"><a href=\"http://acme.com/fhir/Consent/25\">http://acme.com/fhir/Consent/25</a></span></p><p><b>location</b>: <a href=\"location-example.html\">Location/1</a> &quot;South Wing, second floor&quot;</p><p><b>activity</b>: Referral <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://browser.ihtsdotools.org/\">SNOMED CT</a>#3457005)</span></p><blockquote><p><b>agent</b></p><p><b>type</b>: author (originator) <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>#AUT)</span></p><p><b>who</b>: <a href=\"practitioner-example-xcda-author.html\">Practitioner/xcda-author</a> &quot;Harold HIPPOCRATES&quot;</p></blockquote><blockquote><p><b>agent</b></p><p><b>type</b>: device <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>#DEV)</span></p><p><b>who</b>: <span>: Device/software</span></p></blockquote><h3>Entities</h3><table class=\"grid\"><tr><td>-</td><td><b>Role</b></td><td><b>What</b></td></tr><tr><td>*</td><td>source</td><td><span title=\"  \n      the document is in an XDS repository. \n      as a source, we're going to give an MHD \n      reference. (easier than XDS.b call with parameters!)\n	  Given the reference is to a FHIR DocumentReference, that resource describes the kind of content\n     \"><a href=\"documentreference-example.html\">DocumentReference/example: CDA Document in XDS repository</a></span></td></tr></table></div>"
  ]; #   
	<text>
		<status value="additional"/>
		<div xmlns="http://www.w3.org/1999/xhtml">procedure record authored on 27-June 2015 by Harold Hippocrates, MD Content extracted from XDS managed CDA Referral received 26-June as authorized by a referenced Consent.</div>
	</text>
  ,    
    where possible, provenance targets should be version specific,
    so that there is no ambiguity about which version of the 
    record this relates to
    

  fhir:Provenance.target [
     fhir:index 0;
     fhir:link <http://hl7.org/fhir/Procedure/example/_history/1>;

     fhir:Reference.reference [ fhir:value "Procedure/example/_history/1" ]
  ];

  ]; # 

  fhir:Provenance.occurredPeriod [
     fhir:Period.start [ fhir:value "2015-06-27"^^xsd:date ];
     fhir:Period.end [ fhir:value "2015-06-28"^^xsd:date ]
  ];
  fhir:Provenance.recorded [ fhir:value "2015-06-27T08:39:24+10:00"^^xsd:dateTime];

  ]; # 
  fhir:Provenance.recorded [ fhir:value "2015-06-27T08:39:24+10:00"^^xsd:dateTime]; # 

  fhir:Provenance.policy [
     fhir:value "http://acme.com/fhir/Consent/25";
     fhir:index 0
  ];

  ]; #    reference to a patient consent to share inforamtion   

  fhir:Provenance.location [
     fhir:link <http://hl7.org/fhir/Location/1>;

     fhir:Reference.reference [ fhir:value "Location/1" ]
  ];
  fhir:Provenance.reason [
     fhir:index 0;

  ]; # 
  fhir:Provenance.activity [

     fhir:CodeableConcept.coding [
       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.agent [
     fhir:index 0;
     fhir:Provenance.agent.type [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" ];
         fhir:Coding.code [ fhir:value "AUT" ]
       ]
     ];
     fhir:Provenance.agent.who [
       fhir:link <http://hl7.org/fhir/Practitioner/xcda-author>;

       fhir:Reference.reference [ fhir:value "Practitioner/xcda-author" ]
     ]
  ], [
     fhir:index 1;
     fhir:Element.id [ fhir:value "a1" ];
     fhir:Provenance.agent.type [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" ];
         fhir:Coding.code [ fhir:value "DEV" ]
       ]
     ];
     fhir:Provenance.agent.who [
       fhir:link <http://hl7.org/fhir/Device/software>;
       fhir:Reference.reference [ fhir:value "Device/software" ]

       fhir:Reference.display [ fhir:value "Device/software" ]

     ]
  ];

  ]; #    author = Harold Hippocrates   ,    reference to other agent defined within   ,      removed as unclear how to do this now     <onBehalfOf value="#a1"/>      ,   
		<onBehalfOf>
			<reference value="Practitioner/xcda-author"/>
		</onBehalfOf>>
	  

  fhir:Provenance.entity [
     fhir:index 0;
     fhir:Provenance.entity.role [ fhir:value "source" ];
     fhir:Provenance.entity.what [
       fhir:link <http://hl7.org/fhir/DocumentReference/example>;

       fhir:Reference.reference [ fhir:value "DocumentReference/example" ];
       fhir:Reference.display [ fhir:value "CDA Document in XDS repository" ]
     ]
  ] .

<http://hl7.org/fhir/Procedure/example/_history/1> a fhir:Procedure .

<http://hl7.org/fhir/Location/1> a fhir:Location .

<http://hl7.org/fhir/Practitioner/xcda-author> a fhir:Practitioner .

<http://hl7.org/fhir/Device/software> a fhir:Device .

<http://hl7.org/fhir/DocumentReference/example> a fhir:DocumentReference .

     ] #    \n      the document is in an XDS repository. \n      as a source, we're going to give an MHD \n      reference. (easier than XDS.b call with parameters!)\n	  Given the reference is to a FHIR DocumentReference, that resource describes the kind of content\n      
  ]] . #    information extract from a CCDA referral document   


# - ontology header ------------------------------------------------------------

<http://hl7.org/fhir/Provenance/example.ttl> a owl:Ontology;
  owl:imports fhir:fhir.ttl;
  owl:versionIRI <http://build.fhir.org/Provenance/example.ttl> .

[a owl:Ontology;
  owl:imports fhir:fhir.ttl] .


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


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.