This page is part of the FHIR Specification (v0.4.0: DSTU 2 Draft). 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
Example Index:
Example of provenance | XML | JSON |
XML
Example of provenance (id = "example")
<Provenance xmlns="http://hl7.org/fhir"> <id value="example"/> <text> <status value="generated"/> <div xmlns="http://www.w3.org/1999/xhtml"><!-- Snipped for brevity --></div> </text> <target> <reference value="Patient/example/_history/1"/> </target><!-- nominal activity: editing the standard --> <period> <start value="2011-06-23"/> </period> <recorded value="2012-11-08T23:16:03+11:00"/> <reason> <text value="Editing the FHIR Specification"/> </reason> <location> <reference value="Location/2"/> </location><!-- author --> <agent> <role> <system value="http://hl7.org/fhir/provenance-participant-role"/> <code value="author"/> </role> <type> <system value="http://hl7.org/fhir/provenance-participant-type"/> <code value="person"/> </type> <reference value="mailto:grahame@healthintersections.com.au"/> <display value="Grahame Grieve"/> </agent><!-- actually, this example was extracted from ISO 21090 --> <agent> <role> <system value="http://hl7.org/fhir/provenance-participant-role"/> <code value="source"/> </role> <type> <system value="http://hl7.org/fhir/provenance-participant-type"/> <code value="document"/> </type> <reference value="urn:iso:std:21090"/> <display value="ISO 21090"/> </agent> </Provenance>
JSON
Example of provenance
{ "resourceType": "Provenance", "id": "example", "text": { "status": "generated", "div": "<div>!-- Snipped for Brevity --></div>" }, "target": [ { "reference": "Patient/example/_history/1" } ], "period": { "start": "2011-06-23" }, "recorded": "2012-11-08T23:16:03+11:00", "reason": { "text": "Editing the FHIR Specification" }, "location": { "reference": "Location/2" }, "agent": [ { "role": { "system": "http://hl7.org/fhir/provenance-participant-role", "code": "author" }, "type": { "system": "http://hl7.org/fhir/provenance-participant-type", "code": "person" }, "reference": "mailto:grahame@healthintersections.com.au", "display": "Grahame Grieve" }, { "role": { "system": "http://hl7.org/fhir/provenance-participant-role", "code": "source" }, "type": { "system": "http://hl7.org/fhir/provenance-participant-type", "code": "document" }, "reference": "urn:iso:std:21090", "display": "ISO 21090" } ] }
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.