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
The Query message requests information from a patient’s health records. It identifies the patient and specifies searches to be performed on the responding system’s server.
It is a message Bundle with:
queryfocus (see below)
    query-string parameter elementsSee Processing Detail for patient matching and other processing expectations.
| Parameter | Cardinality | Type | Description, profile | 
|---|---|---|---|
| query-string | 1..* | string | Search string. See Search Conventions | 
| requester-patient | 1..1 | Patient | Patient resource representing the requesting party's (Data Consumer's) understanding of the patient Profile: specialty-rx-patient | 
| responder-patient | 0..1 | Patient | Patient resource representing the responding party's (Data Source's) understanding of the patient. SHALL be populated when the Data Consumer system has performed a patient match against the Data Source prior to transmitting the Query Message Profile: specialty-rx-patient | 
| medication-request | 0..1 | MedicationRequest | The associated specialty prescription, which may be included to assist patient matching Profile: specialty-rx-medicationrequest | 
| prescriber | 0..1 | Practitioner | The prescriber of the associated specialty prescription Profile: specialty-rx-practitioner | 
| pharmacy | 0..1 | Organization | The pharmacy dispensing the associated specialty prescription Profile: specialty-rx-organization-pharmacy | 
The Query Response message returns the requested information from a patient’s health records.
It is a message Bundle with:
query-responseSee Processing Detail for patient matching and other processing expectations.
| Parameter | Cardinality | Type | Description, profile | 
|---|---|---|---|
| requester-patient | 1..1 | Patient | Patient resource representing the requesting party's (Data Consumer's) understanding of the patient Profile: specialty-rx-patient | 
| responder-patient | 1..1 | Patient | Patient resource representing the responding party's (Data Source's) understanding of the patient Profile: specialty-rx-patient | 
| search-result | 1..* | Bundle | Searchset bundle containing the results from a single search contained in the request Profile: specialty-rx-bundle-search-result | 
The Query Response - Unsolicited message transmits information from a patient’s health record to a stakeholder involved in fulfillment of a specialty medication. This message is not preceded by a request but instead is by a process event–typically sent when the medication is prescribed.
It is a message Bundle with:
query-response-unsolicitedNotes:
| Parameter | Cardinality | Type | Description, profile | 
|---|---|---|---|
| source-patient | 1..1 | Patient | Patient resource representing the Data Source's understanding of the patient Profile: specialty-rx-patient | 
| medication-request | 1..1 | MedicationRequest | The associated specialty prescription Profile: specialty-rx-medicationrequest | 
| prescriber | 1..1 | Practitioner | The prescriber of the associated specialty prescription Profile: specialty-rx-practitioner | 
| pharmacy | 1..1 | Organization | The pharmacy dispensing the associated specialty prescription Profile: specialty-rx-organization-pharmacy | 
| search-result | 1..* | Bundle | Searchset bundle containing the results from a single search of patient data Profile: specialty-rx-bundle-search-result |