This page is part of the Specialty Medication Enrollment (v1.0.0: STU1) based on FHIR R4. . For a full list of available versions, see the Directory of published versions
Example Bundle: Search Response 2 with _revincluded Provenance Resource
Example notes
This example illustrates a response to a search that includes a _revinclude
parameter requesting that the response include any Provenance resources that reference the returned AllergyIntolerance resources. For example:
GET [base]/AllergyIntolerance?patient=specialty-rx-patient-1&_revinclude=Provenance:target
Example data content
expand all | contract allBundleid@value: specialty-rx-search-response-2-w-revincludemetalastUpdated@value: 2020-07-09T18:49:01.235+00:00type@value: searchsettotal@value: 1linkrelation@value: selfurl@value: http://hapi.fhir.org/baseR4/AllergyIntolerance?patient=specialty-rx-patient-1&_revinclude=Provenance:targetentry[1]fullUrl@value: http://hapi.fhir.org/baseR4/AllergyIntolerance/7961399
resourceAllergyIntolerance
id@value: 7961399
metaversionId@value: 1lastUpdated@value: 2019-07-09T15:26:23.217+00:00profile@value: http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance
clinicalStatuscodingsystem@value: http://terminology.hl7.org/CodeSystem/allergyintolerance-clinicalcode@value: activedisplay@value: Active
verificationStatuscodingsystem@value: http://terminology.hl7.org/CodeSystem/allergyintolerance-verificationcode@value: confirmeddisplay@value: Confirmed
category@value: medication
criticality@value: high
codecodingsystem@value: http://snomed.info/sctcode@value: 762952008display@value: Peanuts
text@value: Peanuts
patientreference@value: Patient/specialty-rx-patient-1
onsetDateTime@value: 2017-09
reactionmanifestationcodingsystem@value: http://terminology.hl7.org/CodeSystem/v3-NullFlavorcode@value: UNKdisplay@value: Unknown
onset@value: 2017-09
searchmode@value: match
entry[2]fullUrl@value: http://hapi.fhir.org/baseR4/Provenance/7961499
resourceProvenance
id@value: 7961499
metaversionId@value: 1lastUpdated@value: 2019-07-09T15:26:23.217+00:00profile@value: http://hl7.org/fhir/us/core/StructureDefinition/us-core-provenance
targetreference@value: AllergyIntolerance/7961399
recorded@value: 2017-09-01T15:26:23.217+00:00
agenttypecodingsystem@value: http://terminology.hl7.org/CodeSystem/provenance-participant-typecode@value: authordisplay@value: Author
whoreference@value: Practitioner/specialty-rx-practitioner-1
searchmode@value: include
Generated Narrative