Specialty Medication Enrollment
1.0.0 - STU 1

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 allBundle
id@value:  specialty-rx-search-response-2-w-revinclude
metalastUpdated@value:  2020-07-09T18:49:01.235+00:00
type@value:  searchset
total@value:  1
linkrelation@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
resource
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
resource
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

clinicalStatus: Active

verificationStatus: Confirmed

category: MEDICATION

criticality: HIGH

code: Peanuts

patient: Generated Summary: id: 1234; active; Timothy V. Doe ; Phone: 555-555-5555, tim.doe@example.com; gender: male; birthDate: 1987-02-20

onset: 2017-09

Reactions

-ManifestationOnset
*Unknown2017-09

Entry 2 - Full URL = http://hapi.fhir.org/baseR4/Provenance/7961499

Search:mode = include

Resource Provenance:

Provenance for Generated Summary: type: searchset; 1

Summary

RecordedSep 1, 2017 3:26:23 PM

Agents

Typewho
AuthorGenerated Summary: id: 9941339108; Jane Smith ; Phone: 555-555-5555, Fax: 555-555-1234, jane.smith@example.org