Facade Provenance

https://www.hl7.org/fhir/STU3/provenance.html

Overview

The Provenance resource is the mechanism by which PKB will return source information.

Currently, this is only supported for instances of [[Data Point]].

Relevant PKB entities

Mappings

FHIR

PKB

Notes

FHIR

PKB

Notes

Resource id

N/A

 

Provenance.target

A Reference to the data for which the Provenance applies.

  • target: Reference

    • reference = the relative URL of the resource

 

Provenance.recorded

[[Data Point.Persisted Timestamp]]

 

Provenance.agent

  • agent: BackboneElement

    • whoReference = onBehalfOfReference (excluding extensions). Until secondary provenance is fully supported, whoReference will match onBehalfOfReference.

    • onBehalfOfReference.extension[?]: Extension

      • url = "http://fhir.patientsknowbest.com/structuredefinition/source-person"

      • valueReference: Reference
        <conditional>

      • If Source Person is a Professional:

        • reference = the relative URL of the Practitioner resource

        • display = [[User.Title]] [[User.Given Name]] [[User.Family Name]]

      • Else if Source Person is a Patient:
        <conditional>

        • If Provenance.target references data in the same Patient's account:

          • reference = the relative URL of the Patient resource

          • display = [[User.Title]] [[User.Given Name]] [[User.Family Name]]

        • Else :

          • reference = a reference to a contained RelatedPerson instance (see RelatedPerson mappings)

          • display = [[User.Title]] [[User.Given Name]] [[User.Family Name]]

    • onBehalfOfReference.extension[?]: Extension

    • onBehalfOfReference.extension[?]: Extension

    • onBehalfOfReference: Reference 
      <conditional>

    • If any extension is present, use the valueReference from the first one (as determined by the documented order above.)

    • Else:

      • display = "No source information available"