This page is part of the Specialty Medication Enrollment (v0.1.0: STU1 Ballot 1) based on FHIR R4. . For a full list of available versions, see the Directory of published versions 
The Specialty Rx process supports two exchange patterns, which are described in Systematic Query Workflows:
Relating to both of those models, the sections below describe the requester’s and data source’s steps and responsibilities for:
In the solicited model, where a pharmacy or other party (Requesting System) requests patient information from an EHR or other responder (Data Source System), the Requesting System may either…
Pre-Match the Patient and include the Data Source’s Patient resource ID in RESTful searches or Specialty Rx Query message.
or
Defer Patient Matching when using the Specialty Rx Query message, and include only the Requesting System’s Patient resource in the request. In this method, patient matching is performed by the Data Source System as a pre-step to creating its response.
Depending on the situation, the Requesting System may already have the Data Source’s Patient resource (for example, if it received it in a previous FHIR exchange), or it may be in a position to request it using the Patient/$match operation.
In this scenario, the Requesting System submits a patient match operation against the Data Source’s server:
URL: [base]/Patient/$match
Input parameters. In the Specialty Rx process, this request SHALL contain two parameters:
onlyCertainMatches parameter with the value set to true. This prevents the responder from returning multiple possible Patient matches.Output parameter. The $match operation returns a Bundle containing…
the single Patient resource that the responder has confidently matched to the requester’s patient
or
an OperationOutcome resource if the responder is unable to return a patient, containing further advice regarding patient selection.
When retrieving information using RESTful searches…
patient parameter in the search containing the retrieved patient ID.When retrieving information using a Specialty Rx Query message, the Requesting System…
requester-patient parameter with a reference to the Requesting System’s Patient resourceresponder-patient parameter with the Data Source’s Patient resource
.meta.source element with the Data Source System’s FHIR server URLquery-string parameter. See Search ConventionsWhen retrieving information using RESTful searches…
When responding to a Specialty Rx Query message…
responder-patient element.
In this approach, which applies only to the Specialty Rx Query message, the request contains only the Requesting System’s Patient resource. The Data Source’s Patient ID is not referenced in the request.
The Requesting System:
requester-patient parameter with a reference to the Requesting System’s Patient resourcequery-string parameter. See Search ConventionsThe Data Source System performs patient matching using the request’s patient identifying information before compiling the response. The system…
requester-patient parameter.
query-string parameter in the request.
"Condition" to "Condition?patient=EHRPatient123".responder-patient element with a reference to the responder’s Patient resourcerequester-patient parameter and SHALL populate this Patient resource’s .meta.source element with the Requesting System’s FHIR server URLWhen the Requesting System processes a Specialty Rx Query Response or Query Response - Unsolicited message, it…
requester-patient parameter contains a reference to the Requesting System’s patient and that its .meta.source = requester’s FHIR server URLresponder-patient parameter matches the Requesting System’s patientresponder-patient parameterprescription parameter (including referenced prescribing Practitioner and pharmacy Organization) to the related prescription. The receiving party can handle non-match situations according to their own rules, e.g., accept the message and add the patient to their system after a manual review