This page is part of the Specialty Medication Enrollment (v2.0.0-ballot: STU2 Ballot 1) based on FHIR (HL7® FHIR® Standard) R4. The current version which supersedes this version is 2.0.0.  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
 
 
     Bundle specialty-rx-search-response-2-w-revinclude of type searchset
  
Entry 1 - Full URL = http://hapi.fhir.org/baseR4/AllergyIntolerance/7961399
Search:mode = match 
Resource AllergyIntolerance:
Generated Narrative: AllergyIntolerance
clinicalStatus: Active  (AllergyIntolerance Clinical Status Codes#active)
verificationStatus: Confirmed  (AllergyIntolerance Verification Status#confirmed)
category: MEDICATION
criticality: HIGH
code: Peanuts  (SNOMED CT#762952008)
patient: Patient/specialty-rx-patient-1 " DOE"
onset: 2017-09
Reactions
| - | Manifestation | Onset | 
| * | Unknown  (NullFlavor#UNK) | 2017-09 | 
  
Entry 2 - Full URL = http://hapi.fhir.org/baseR4/Provenance/7961499
Search:mode = include 
Resource Provenance:
Provenance for AllergyIntolerance/7961399
Summary
| Recorded | Sep 1, 2017 3:26:23 PM | 
Agents