"target": [
{
"reference": "Procedure/example/_history/1"
}
]
"occurred[x]":
"recorded": "2015-06-27T08:39:24+10:00"
"policy": [
"http://acme.com/fhir/Consent/25"
]
"location": {
"reference": "Location/1"
}
"reason": [
{
"coding": [
{
"system": "http://snomed.info/sct",
"code": "3457005",
"display": "Referral"
}
]
}
]
"activity":
"agent": [
{
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
"code": "AUT"
}
]
},
"who": {
"reference": "Practitioner/xcda-author"
}
},
{
"id": "a1",
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
"code": "DEV"
}
]
},
"who": {
"reference": "Device/software"
}
}
]
"entity": [
{
"role": "source",
"what": {
"reference": "DocumentReference/example",
"display": "CDA Document in XDS repository"
}
}
]
"signature":
{
"resourceType": "Provenance",
"id": "example",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">procedure record authored on 27-June 2015 by Harold Hippocrates, MD Content extracted from XDS managed CDA Referral received 26-June as authorized by a referenced Consent.</div>"
},
"target": [
{
"reference": "Procedure/example/_history/1"
}
],
"occurredPeriod": {
"start": "2015-06-27",
"end": "2015-06-28"
},
"recorded": "2015-06-27T08:39:24+10:00",
"policy": [
"http://acme.com/fhir/Consent/25"
],
"location": {
"reference": "Location/1"
},
"reason": [
{
"coding": [
{
"system": "http://snomed.info/sct",
"code": "3457005",
"display": "Referral"
}
]
}
],
"agent": [
{
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
"code": "AUT"
}
]
},
"who": {
"reference": "Practitioner/xcda-author"
}
},
{
"id": "a1",
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
"code": "DEV"
}
]
},
"who": {
"reference": "Device/software"
}
}
],
"entity": [
{
"role": "source",
"what": {
"reference": "DocumentReference/example",
"display": "CDA Document in XDS repository"
}
}
]
}
{
"resourceType" : "Provenance",
// from Resource: id, meta, implicitRules, and language
// from DomainResource: text, contained, extension, and modifierExtension
"target" : [{ Reference(Any) }], // R! Target Reference(s) (usually version specific)
// occurred[x]: When the activity occurred. One of these 2:
"occurredPeriod" : { Period },
"occurredDateTime" : "<dateTime>",
"recorded" : "<instant>", // R! When the activity was recorded / updated
"policy" : ["<uri>"], // Policy or plan the activity was defined by
"location" : { Reference(Location) }, // Where the activity occurred, if relevant
"reason" : [{ CodeableConcept }], // Reason the activity is occurring
"activity" : { CodeableConcept }, // Activity that occurred
"agent" : [{ // R! Actor involved
"type" : { CodeableConcept }, // How the agent participated
"role" : [{ CodeableConcept }], // What the agents role was
"who" : { Reference(Practitioner|PractitionerRole|RelatedPerson|Patient|
Device|Organization) }, // R! Who participated
"onBehalfOf" : { Reference(Practitioner|PractitionerRole|RelatedPerson|
Patient|Device|Organization) } // Who the agent is representing
}],
"entity" : [{ // An entity used in this activity
"role" : "<code>", // R! derivation | revision | quotation | source | removal
"what" : { Reference(Any) }, // R! Identity of entity
"agent" : [{ Content as for Provenance.agent }] // Entity is attributed to this agent
}],
"signature" : [{ Signature }] // Signature on target
}
The following search parameters can be used to query Provenance resources. Just submit them like so:
https://api.1up.health/fhir/r4/Provenance?query-param=queryvalue
Search Parameter | Field Type | Resource Fields Searched |
---|---|---|
agent | reference | agent.who |
agent-role | text | agent.role |
agent-type | text | agent.type |
entity | reference | entity.what |
location | reference | location |
patient | reference | target.where |
recorded | date | recorded |
signature-type | text | signature.type |
target | reference | target |
when | date | occurred |