StructureDefinition Provenance

The Genomics Provenance SHOULD be provided alongside updates to controlled documents such as ServiceRequests and DiagnosticReports by integrated systems on any update operation to ensure auditability for any changes to resources.

It is not expected that updates which do not affect the clinical content of the document will need associated Provenance resources, e.g. addition of local identifiers (though for the purporses of the Genomic Order Management Alpha, all updates to ServiceRequest and DiagnosticReport resources will be expected to have accompanying Provenance resources). On material changes to controlled resources, ServiceRequest and DiagnosticReport, users SHOULD use the transaction endpoint on the server to bundle the updated resource and Provenance event into a single transaction.

The HL7 FHIR specification also provides the capability to attach a Provenance resource using a custom header parameter. Using this mechanism would allow clients to submit requests to the resource specific PUT enpoints for ServiceRequests and DiagnosticReports, while still aloowing changes to be captured within a Provenance resource using a single interaction. This mechanism will not be supported within the Genomic Order Management Alpha but will be investigated by the NHS England Genomics Unit for implementation in future phases.

Profile url FHIR Module Normative Status
http://hl7.org/fhir/StructureDefinition/Provenance HL7 International trial-use

idΣ0..1string
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
text0..1Narrative
contained0..*Resource
extensionI0..*Extension
modifierExtension?! I0..*Extension
targetΣ I1..*Reference(Resource)
occurredPeriodPeriod
occurredDateTimedateTime
recordedΣ1..1instant
policy0..*uri
locationI0..1Reference(Location)
reason0..*CodeableConceptBinding
activity0..1CodeableConceptBinding
id0..1string
extensionI0..*Extension
modifierExtensionΣ ?! I0..*Extension
typeΣ0..1CodeableConceptBinding
role0..*CodeableConcept
whoΣ I1..1Reference(Practitioner | PractitionerRole | RelatedPerson | Patient | Device | Organization)
onBehalfOfI0..1Reference(Practitioner | PractitionerRole | RelatedPerson | Patient | Device | Organization)
id0..1string
extensionI0..*Extension
modifierExtensionΣ ?! I0..*Extension
roleΣ1..1codeBinding
whatΣ I1..1Reference(Resource)
agent0..*see (agent)
signature0..*Signature


Additional Guidance

target

SHALL be provided. This SHOULD be a reference to the resource on the central GMS system that was updated.
"target":  [
        {
            "reference": "ServiceRequest/ServiceRequest-SavedTestOrderUpdated-Example"
        }
    ],

recorded

SHALL be provided, the date/time when the update took place.
"recorded": "2023-08-10T11:10:00Z",

reason

The reason why the update took place. If the codes provided by HL7 are not granular enough, or additional notes need to be recorded detailing the reasoning behind a change, this SHOULD be added as text to 'reason.text'.
"reason":  [
        {
            "coding":  [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
                    "code": "TREAT",
                    "display": "treatment"
                }
            ],
            "text": "Test inappropriate for patient"
        }
    ],

agent

SHOULD be provided where actions are user initiated. The user which performed the change, as identified through CIS2 authentication token.
"agent":  [
        {
            "type": {
                "coding":  [
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
                        "code": "author",
                        "display": "Author"
                    }
                ]
            },
            "who": {
                "reference": "PractitionerRole/PractitionerRole-TestClinicalScientist-Example",
                "identifier": {
                    "system": "https://fhir.nhs.uk/Id/sds-user-id",
                    "value": "9999999997"
                }
            }
        }
    ],

signature

Signed, encrypted copy of the document, for validation that the document has not been tampered with (the requirement to include this field has not yet been validated).
 "signature":  [
        {
            "type":  [
                {
                    "system": "urn:iso-astm:E1762-95:2013",
                    "code": "1.2.840.10065.1.12.1.15",
                    "display": "Addendum Signature"
                }
            ],
            "when": "2023-08-10T11:10:00Z",
            "who": {
                "reference": "PractitionerRole/PractitionerRole-TestClinicalScientist-Example",
                "identifier": {
                    "system": "https://fhir.nhs.uk/Id/sds-user-id",
                    "value": "9999999997"
                }
            },
            "data": "DQo8U2lnbm...F0dXJlPg0K"
        }
    ]