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 in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions

Example Bundle: Search Response 1 with _included Medication Resource

Example notes

This example illustrates a response to a search that includes an _include parameter requesting that the response include any Medication resources referenced by returned MedicationResponse resources. For example:

GET [base]/MedicationRequest?patient=specialty-rx-patient-1&intent=order&_include=MedicationRequest:medication

Example data content

expand all | contract allBundle
id@value:  specialty-rx-search-response-1-w-include
type@value:  searchset
timestamp@value:  2020-03-11T13:10:17-05:00
total@value:  1
linkrelation@value:  selfurl@value:  MedicationRequest?patient=specialty-rx-patient-1&intent=order&_include=MedicationRequest:medicationentry[1]fullUrl@value:  http://example.org/MyEHR/MedicationRequest/prescription-1
resource
id@value:  prescription-1
status@value:  stopped
intent@value:  order
medicationReferencereference@value:  Medication/11111
subjectreference@value:  Patient/specialty-rx-patient-1
authoredOn@value:  2020-05-11
requesterreference@value:  http://example.org/MyEHR/Practitioner/specialty-rx-practitioner-1
dispenseRequestquantityvalue@value:  4unit@value:  {each}
expectedSupplyDurationvalue@value:  30unit@value:  dayssystem@value:  http://unitsofmeasure.orgcode@value:  d
performerreference@value:  http://example.org/MyEHR/Organization/specialty-rx-organization-pharmacy-1
substitutionallowedBoolean@value:  false

searchmode@value:  match
entry[2]fullUrl@value:  http://example.org/MyEHR/Medication/11111
resource
id@value:  11111
codecodingsystem@value:  http://www.nlm.nih.gov/research/umls/rxnormcode@value:  802652display@value:  1 ML Enbrel 50 MG/ML Prefilled Syringe

searchmode@value:  include

Generated Narrative

Bundle specialty-rx-search-response-1-w-include of type searchset


Entry 1 - fullUrl = http://example.org/MyEHR/MedicationRequest/prescription-1

Search:Mode = match

Resource MedicationRequest:

Generated Narrative: MedicationRequest

Resource MedicationRequest "prescription-1"

status: STOPPED

intent: ORDER

subject: Patient/specialty-rx-patient-1 " DOE"

authoredOn: 2020-05-11

requester: http://example.org/MyEHR/Practitioner/specialty-rx-practitioner-1

dispenseRequest

quantity: 4 {each}

ExpectedSupplyDurations

-ValueUnitSystemCode
*30daysUnified Code for Units of Measure (UCUM)d

Substitutions

-Allowed[x]
*false


Entry 2 - fullUrl = http://example.org/MyEHR/Medication/11111

Search:Mode = include

Resource Medication:

Generated Narrative: Medication

Resource Medication "11111"

code: 1 ML Enbrel 50 MG/ML Prefilled Syringe (RxNorm#802652)