Provenance

The FHIR R4 Provenance resource tracks the origin, authorship, and transmission of clinical data. It identifies the agents, systems, and source documents involved in creating or importing a given resource. Health Gorilla automatically generates Provenance records for key clinical data to support data lineage, audit trails, and trustworthiness assessments.

Use Cases

  • Audit who created or imported a clinical record
  • Identify the source system or provider organization that authored a result
  • Investigate how a resource was derived or transmitted into the system

Base URLs

Authentication

All requests require OAuth 2.0 authentication using a Bearer Token. Unauthorized requests return 401 Unauthorized responses.

Required Scopes

  • provenance.read for GET

For more information, go to: OAuth 2.0 Authentication.

Supported Methods

Provenance Methods

MethodOperationDescription
GETRead ProvenanceRetrieves a specific Provenance record by its FHIR ID.
GETSearch ProvenanceSearches for Provenance records referencing a target resource or patient.

Note: POST, PUT, and DELETE are not supported. Provenance is system-managed.

Frequently Used Search Parameters

ParameterDescriptionFHIR Value Set / Example ValuesFHIR Data TypeRequired
targetFilters by the resource the provenance refers toObservation/{id}, DocumentReference/{id}ReferenceYes (recommended)
patientFilters by the patient related to the target resourcePatient/{id}ReferenceNo
recordedFilters by the timestamp the provenance was recordedge2023-01-01dateNo
agentFilters by the actor responsible for the activityPractitioner/{id}, Organization/{id}ReferenceNo
_idFilters by the Provenance FHIR resource IDProvenance/{id}tokenNo

Commonly Returned Resource Attributes

AttributeDescriptionExample ValuesFHIR Data TypeRequired
idUnique FHIR ID for the Provenance recordprov-123456idYes
targetResources the provenance applies toObservation/{id}, DocumentReference/{id}Reference[]Yes
recordedTimestamp when the activity was recorded2024-01-05T14:22:01ZinstantYes
agentActor(s) responsible for the activityPractitioner, Organization, or system IDProvenance.Agent[]Yes
agent.typeType of participant in the eventperformerCodeableConceptNo
agent.whoReference to the agent (person or system)Practitioner/{id}ReferenceYes
entitySource data or resource used to construct the targetDocumentReference/{id}, Observation/{id}Provenance.Entity[]No
entity.roleRole of the entity in the provenance eventsource, derivationcodeNo
signatureDigital signature for validation (if present)base64-encoded digital signatureSignature[]No

Linked Resource Types

Health Gorilla automatically creates Provenance records for the following resource types:

  • AllergyIntolerance
  • CarePlan
  • Condition
  • DeviceUseStatement
  • DiagnosticReport
  • Encounter
  • FamilyMemberHistory
  • Goal
  • Immunization
  • MedicationRequest
  • MedicationDispense
  • NutritionOrder
  • Observation (vitals, functional, social history)
  • Procedure
  • DocumentReference

Webhooks

Provenance resources are not directly pushed via webhooks, but may be referenced in webhook-triggering payloads (e.g., DocumentReference, Observation, DiagnosticReport).

For more information, go to: Webhooks & Polling.

Error Handling

All Provenance operations follow standard Health Gorilla error handling, including use of FHIR OperationOutcome for structured error responses.
For more information, go to: Error Handling.

Additional Resources

HL7 FHIR Provenance

{
    "resourceType": "Provenance",
    "id": "90a59b62d37d8a6c9ceb2770",
    "target": [
        {
            "reference": "DiagnosticReport/91a59b62da5c326b2d6b20ea",
            "display": "Imported Result"
        },
        {
            "reference": "Condition/91a59b6235b75ea4acdebfe5",
            "display": "Pseudoexfoliation glaucoma"
        },
        {
            "reference": "Condition/91a59b629e79a64f30203728",
            "display": "Ptosis of eyelid"
        },
        {
            "reference": "Condition/91a59b628985b5911cfb3c30",
            "display": "Excess skin of eyelid"
        },
        {
            "reference": "Condition/91a59b62ccda8f307b804ac7",
            "display": "Lesion of eyelid"
        },
        {
            "reference": "Condition/91a59b62c88b7dc49e6d79ec",
            "display": "Dry eyes"
        },
        {
            "reference": "AllergyIntolerance/91a59b626cb6561a8b83b121",
            "display": "NKDA, 10/27/2014"
        },
        {
            "reference": "Observation/vs-91a59b6267683301d71ffe0d",
            "display": "6/4/2022 6:33 PM, Body Height - 63 [in_i], Body Weight - 145 [lb_av], Body Mass Index - 25.7 kg/m2"
        },
        {
            "reference": "Observation/vs-91a59b6275421542db628899",
            "display": "6/4/2022 6:33 PM, Body Height - 63 [in_i], Body Weight - 145 [lb_av], Body Mass Index - 25.7 kg/m2"
        },
        {
            "reference": "Observation/vs-91a59b624da2b9a895d05d86",
            "display": "6/4/2022 6:33 PM, Body Height - 63 [in_i], Body Weight - 145 [lb_av], Body Mass Index - 25.7 kg/m2"
        },
        {
            "reference": "Observation/vs-91a59b62244ebfb81c49c5e8",
            "display": "6/4/2022 6:33 PM, Body Height - 63 [in_i], Body Weight - 145 [lb_av], Body Mass Index - 25.7 kg/m2"
        },
        {
            "reference": "Procedure/91a59b62b7f1ea939b32cd9b",
            "display": "SCANNING OPHTHAL DX IMAGE, OPTIC NERVE"
        },
        {
            "reference": "Procedure/91a59b6257b586ccb0c774e6",
            "display": "SCANNING OPHTHAL DX IMAGE, OPTIC NERVE"
        },
        {
            "reference": "Observation/sh-91a59b62311e138786d9ad29",
            "display": "ASSERTION"
        },
        {
            "reference": "Encounter/91a59b62bac9efbd03aeb8a7"
        }
    ],
    "recorded": "2022-06-04T18:33:52.658+00:00",
    "agent": [
        {
            "type": {
                "coding": [
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
                        "code": "performer",
                        "display": "Performer"
                    }
                ]
            },
            "who": {
                "reference": "Practitioner/fffe7f6082012f1d044a5834",
                "display": "Demo Doctor"
            }
        }
    ],
    "entity": [
        {
            "role": "source",
            "what": {
                "reference": "DocumentReference/90a59b62d37d8a6c9ceb2770",
                "display": "Ambulatory Summary"
            }
        }
    ]
}