DSTU2 QA Preview

This page is part of the FHIR Specification (v1.0.0: DSTU 2 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 R2

Provenance-example.xml

Raw XML (canonical form)

General Provenance Example (id = "example")

Raw XML

<Provenance xmlns="http://hl7.org/fhir">
  <id value="example"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml">procedure record authored on 27-June 2015 by Harold Hippocrates, MD Content extracted
       from Referral received 26-June</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
    -->
  <target>
    <reference value="Procedure/example/_history/1"/>
  </target>
  <period>
    <start value="2015-06-27"/>
  </period>
  <recorded value="2015-06-27T08:39:24+10:00"/>
  <reason>
    <coding>
      <system value="http://snomed.info/sct"/>
      <code value="3457005"/>
      <display value="Referral"/>
    </coding>
    <text value="Accepting a referral"/>
  </reason>
  <location>
    <reference value="Location/1"/>
  </location>
  <!--   reference to a patient consent to share inforamtion   -->
  <policy value="http://acme.com/fhir/Consent/25"/>
  
  <!--   author = Harold Hippocrates   -->
  <agent>
    <role>
      <system value="http://hl7.org/fhir/provenance-participant-role"/>
      <code value="author"/>
    </role>
    <actor>
      <reference value="Practitioner/xcda-author"/>
    </actor>
    <!--   very often, the user won't have a known system - these aren't available 
      for security system log ons. But where you can define it, you should   -->
    <userId>
      <system value="http://acme.com/fhir/users/sso"/>      
      <value value="hhd"/>
    </userId>
    <relatedAgent>
      <type>
        <text value="used"/>
      </type>
      <target value="#a1"/>
    </relatedAgent>
  </agent>
  <!--   device = software Harold used   -->
  <agent id="a1">
    <role>
      <system value="http://hl7.org/fhir/v3/ParticipationType"/>
      <code value="DEV"/>
    </role>
    <actor>
      <reference value="Device/software"/>
    </actor>
  </agent>
  <!--   information extract from a CCDA referral document   -->
  <entity>
    <role value="source"/>
    <!--   this code is extracted from the CDA source document   -->
    <type>
      <system value="http://loinc.org"/>
      <code value="57133-1"/>
      <display value="Referral note"/>      
    </type>
    <!--   
      the document is in an XDS repository. 
      as a source, we're going to give an MHD 
      reference. (easier than XDS.b call with parameters!)

      Note that though this is a URI, so that you can reference
      outside FHIR, you can also put a standard FHIR reference 
      here as well
      -->
    <reference value="DocumentReference/90f55916-9d15-4b8f-87a9-2d7ade8670c8"/>    
    <display value="CDA Document in XDS repository"/>
  </entity>
</Provenance>

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.