Specialty Medication Enrollment
2.0.0 - STU2 US United States of America flag

This page is part of the Specialty Medication Enrollment (v2.0.0: STU2) based on FHIR R4. This is the current published version. 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 - fullUrl = http://hapi.fhir.org/baseR4/AllergyIntolerance/7961399

Search:Mode = match

Resource AllergyIntolerance:

Generated Narrative: AllergyIntolerance

Resource AllergyIntolerance "7961399" Version "1" Updated "2019-07-09 15:26:23+0000"

Profile: US Core AllergyIntolerance Profile

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

-ManifestationOnset
*Unknown (NullFlavor#UNK)2017-09


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

Search:Mode = include

Resource Provenance:

Provenance for See above (AllergyIntolerance/7961399)

Summary

RecordedSep 1, 2017, 3:26:23 PM

Agents

Typewho
AuthorPractitioner/specialty-rx-practitioner-1 " SMITH"