Specialty Medication Enrollment
2.1.0 - CI Build

Specialty Medication Enrollment, published by HL7 International - Pharmacy. This is not an authorized publication; it is the continuous build for version 2.1.0). This version is based on the current content of https://github.com/HL7/fhir-specialty-rx/ and changes regularly. See the Directory of published versions

## Example Bundle: Specialty Rx Query Response 3 with operation outcome

### Example data content

expand all | contract all Bundle
id@value: specialty-rx-query-response-3-w-op-outcome
meta profile@value: http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-bundle-query-response
type@value: message
timestamp@value: 2020-03-11T13:10:17-05:00 entry[1]fullUrl@value: http://example.org/MyEHR/MessageHeader/msgheader1
resource MessageHeader
id@value: res2
eventCoding system@value: http://hl7.org/fhir/us/specialty-rx/CodeSystem/specialty-rx-event-type code@value: query-response
source name@value: MyEHR endpoint@value: http://example.org/MyEHR
response identifier@value: req2 code@value: ok
focus reference@value: urn:uuid:61ebe359-bfdc-4613-8bf2-c5e300945f0c
entry[2]fullUrl@value: urn:uuid:61ebe359-bfdc-4613-8bf2-c5e300945f0c
resource Parameters
id@value: 61ebe359-bfdc-4613-8bf2-c5e300945f0c parameter[1]name@value: requester-patient valueReference reference@value: http://example.org/MyPharmacyApp/Patient/patient1
parameter[2]name@value: responder-patient valueReference reference@value: http://example.org/MyEHR/Patient/patientEHR
parameter[3]name@value: search-result valueReference reference@value: http://example.org/MyEHR/Bundle/3456789
parameter[4]name@value: search-result valueReference reference@value: http://example.org/MyEHR/Bundle/987654
entry[3]fullUrl@value: http://example.org/MyPharmacyApp/Patient/patient1
resource Patient
id@value: patient1
meta source@value: http://example.org/MyPharmacyApp profile@value: http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-patient
identifier system@value: http://example.org/patient-id value@value: 1234
active@value: true
name family@value: Doe given[1]@value: Timothy given[2]@value: V.telecom[1]system@value: phone value@value: 555-555-5555 use@value: home
telecom[2]system@value: email value@value: tim.doe@example.com gender@value: male
birthDate@value: 1987-02-20
address line@value: 2224 Century Ave city@value: Minnetonka state@value: MN postalCode@value: 55345 country@value: US
communication language coding system@value: urn:ietf:bcp:47 code@value: en-US display@value: English (Region=United States)
entry[4]fullUrl@value: http://example.org/MyEHR/Patient/patientEHR
resource Patient
id@value: patientEHR
meta profile@value: http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-patient
identifier type coding system@value: http://terminology.hl7.org/CodeSystem/v2-0203 code@value: MR display@value: Medical record number
text@value: Medical record number
system@value: http://example.org/MyEHR value@value: 30455
active@value: true
name family@value: Doe given@value: Tim telecom[1]system@value: phone value@value: 555-555-5555 use@value: home
telecom[2]system@value: email value@value: tim.doe@example.com gender@value: male
birthDate@value: 1987-02-20
address line@value: 2224 Century Avenue city@value: Minnetonka state@value: MN postalCode@value: 55345 country@value: US
communication language coding system@value: urn:ietf:bcp:47 code@value: en-US display@value: English (Region=United States)
entry[5]fullUrl@value: http://example.org/MyEHR/Bundle/3456789
resource Bundle
id@value: 3456789
meta profile@value: http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-bundle-search-result
type@value: searchset
timestamp@value: 2020-03-11T13:10:17-05:00
total@value: 3
link relation@value: self url@value: Condition?patient=patientEHR entry[1]fullUrl@value: http://example.org/MyEHR/Condition/1
resource Condition
id@value: 1
clinicalStatus coding system@value: http://terminology.hl7.org/CodeSystem/condition-clinical code@value: active display@value: Active
text@value: Active
verificationStatus coding system@value: http://terminology.hl7.org/CodeSystem/condition-ver-status code@value: confirmed display@value: Confirmed
text@value: Confirmed
category coding system@value: http://terminology.hl7.org/CodeSystem/condition-category code@value: problem-list-item display@value: Problem List Item
text@value: Problem
code coding system@value: http://snomed.info/sct code@value: 13644009 display@value: Hypercholesterolemia (disorder)
text@value: Hypercholesterolemia (disorder)
subject reference@value: Patient/patientEHR
search mode@value: match
entry[2]fullUrl@value: http://example.org/MyEHR/Condition/2
resource Condition
id@value: 2
clinicalStatus coding system@value: http://terminology.hl7.org/CodeSystem/condition-clinical code@value: active display@value: Active
text@value: Active
verificationStatus coding system@value: http://terminology.hl7.org/CodeSystem/condition-ver-status code@value: confirmed display@value: Confirmed
text@value: Confirmed
category coding system@value: http://terminology.hl7.org/CodeSystem/condition-category code@value: problem-list-item display@value: Problem List Item
text@value: Problem
code coding system@value: http://snomed.info/sct code@value: 84172003 display@value: Spondylitis (disorder)
text@value: Spondylitis (disorder)
subject reference@value: Patient/patientEHR
search mode@value: match
entry[3]fullUrl@value: http://example.org/MyEHR/Condition/3
resource Condition
id@value: 3
clinicalStatus coding system@value: http://terminology.hl7.org/CodeSystem/condition-clinical code@value: active display@value: Active
text@value: Active
verificationStatus coding system@value: http://terminology.hl7.org/CodeSystem/condition-ver-status code@value: confirmed display@value: Confirmed
text@value: Confirmed
category coding system@value: http://terminology.hl7.org/CodeSystem/condition-category code@value: problem-list-item display@value: Problem List Item
text@value: Problem
code coding system@value: http://snomed.info/sct code@value: 427603009 display@value: Intermittent asthma (disorder)
text@value: Intermittent asthma (disorder)
subject reference@value: Patient/patientEHR
search mode@value: match
entry[6]fullUrl@value: http://example.org/MyEHR/Bundle/987654
resource Bundle
id@value: 987654
meta profile@value: http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-bundle-search-result
type@value: searchset
timestamp@value: 2020-03-11T13:10:17-05:00
total@value: 0
link relation@value: self url@value: AllergyIn?patient=patientEHR
entry fullUrl@value: http://example.org/MyEHR/OperationOutcome/100
resource OperationOutcome
id@value: 100
issue severity@value: error code@value: processing diagnostics@value Unknown resource type 'AllergyIn' - Server knows how to handle: [RiskAssessment, Provenance, Organization, CareTeam, MedicationDispense, DiagnosticReport, ImagingStudy, HealthcareService, Specimen, CarePlan, FamilyMemberHistory, Goal, AllergyIntolerance, StructureDefinition, Medication, Procedure, Encounter, OperationDefinition, DocumentReference, Condition, MedicationRequest, Immunization, Device, Patient, PractitionerRole, ServiceRequest, Practitioner, Observation, MedicationAdministration, MedicationStatement, Location]
search mode@value: outcome

### Generated Narrative

Bundle specialty-rx-query-response-3-w-op-outcome of type message

Entry 1 - fullUrl = http://example.org/MyEHR/MessageHeader/msgheader1

Resource MessageHeader:

> Generated Narrative: MessageHeader

> Resource MessageHeader "res2"

> Profile: Specialty Rx Query Response MessageHeader

> event: Query Response (Details: http://hl7.org/fhir/us/specialty-rx/CodeSystem/specialty-rx-event-type code query-response = 'Query Response', stated as 'null')

> ### Sources

> - | Name | Endpoint
> * | MyEHR | http://example.org/MyEHR

> ### Responses

> - | Identifier | Code
> * | id: req2 | OK

> focus: See above (urn:uuid:61ebe359-bfdc-4613-8bf2-c5e300945f0c)

Entry 2 - fullUrl = urn:uuid:61ebe359-bfdc-4613-8bf2-c5e300945f0c

Resource Parameters:

> ## Parameters

> requester-patient | http://example.org/MyPharmacyApp/Patient/patient1
> responder-patient | http://example.org/MyEHR/Patient/patientEHR
> search-result | http://example.org/MyEHR/Bundle/3456789
> search-result | http://example.org/MyEHR/Bundle/987654

Entry 3 - fullUrl = http://example.org/MyPharmacyApp/Patient/patient1

Resource Patient:

> Timothy V. Doe Male, DoB: 1987-02-20 ( id: 1234)

Entry 4 - fullUrl = http://example.org/MyEHR/Patient/patientEHR

Resource Patient:

> Tim Doe Male, DoB: 1987-02-20 ( Medical record number: 30455)

Entry 5 - fullUrl = http://example.org/MyEHR/Bundle/3456789

Resource Bundle:

> Bundle 3456789 of type searchset

> Entry 1 - fullUrl = http://example.org/MyEHR/Condition/1

> Search:Mode = match

> Resource Condition:

> > Generated Narrative: Condition

> > Resource Condition "1"

> > clinicalStatus: Active (Condition Clinical Status Codes#active)

> > verificationStatus: Confirmed (ConditionVerificationStatus#confirmed)

> > category: Problem (Condition Category Codes#problem-list-item "Problem List Item")

> > code: Hypercholesterolemia (disorder) (SNOMED CT#13644009)

> > subject: See above (Patient/patientEHR)

> Entry 2 - fullUrl = http://example.org/MyEHR/Condition/2

> Search:Mode = match

> Resource Condition:

> > Generated Narrative: Condition

> > Resource Condition "2"

> > clinicalStatus: Active (Condition Clinical Status Codes#active)

> > verificationStatus: Confirmed (ConditionVerificationStatus#confirmed)

> > category: Problem (Condition Category Codes#problem-list-item "Problem List Item")

> > code: Spondylitis (disorder) (SNOMED CT#84172003)

> > subject: See above (Patient/patientEHR)

> Entry 3 - fullUrl = http://example.org/MyEHR/Condition/3

> Search:Mode = match

> Resource Condition:

> > Generated Narrative: Condition

> > Resource Condition "3"

> > clinicalStatus: Active (Condition Clinical Status Codes#active)

> > verificationStatus: Confirmed (ConditionVerificationStatus#confirmed)

> > category: Problem (Condition Category Codes#problem-list-item "Problem List Item")

> > code: Intermittent asthma (disorder) (SNOMED CT#427603009)

> > subject: See above (Patient/patientEHR)

Entry 6 - fullUrl = http://example.org/MyEHR/Bundle/987654

Resource Bundle:

> Bundle 987654 of type searchset

> Entry 1 - fullUrl = http://example.org/MyEHR/OperationOutcome/100

> Search:Mode = outcome

> Resource OperationOutcome:

> > Severity | Location | Code | Details | Diagnostics
> > ERROR |  | Processing Failure |  | Unknown resource type 'AllergyIn' - Server knows how to handle: [RiskAssessment, Provenance, Organization, CareTeam, MedicationDispense, DiagnosticReport, ImagingStudy, HealthcareService, Specimen, CarePlan, FamilyMemberHistory, Goal, AllergyIntolerance, StructureDefinition, Medication, Procedure, Encounter, OperationDefinition, DocumentReference, Condition, MedicationRequest, Immunization, Device, Patient, PractitionerRole, ServiceRequest, Practitioner, Observation, MedicationAdministration, MedicationStatement, Location]