Specialty Medication Enrollment
0.1.0 - STU1 Ballot

Publication Build: This will be filled in by the publication tooling

## CapabilityStatement: Specialty Rx CapabilityStatement - Data Source - Messaging

Raw OpenAPI-Swagger Definition file | Download

### FHIR RESTful Capabilities

Specialty Rx Data Source SHALL:

1. Support the Solicited workflow defined in this guide by responding to the $process-message operation containing a Specialty Rx Query message by returning a Specialty Rx Query Response message or Specialty Rx Error message.
2. Support all required RESTful searches and search parameters.
3. Support the json source format.
4. Declare a CapabilityStatement identifying the profiles supported.

Specialty Rx Data Source SHOULD:

1. Respond to the Patient/$match operation.
2. Support the xml source format.
3. Identify the Specialty Rx profiles supported as part of the FHIR `meta.profile` attribute for each applicable instance.

The Specialty Rx Data Source MAY

1. Support the Unsolicited workflow defined in this guide, using the Specialty Rx Query Response - Unsolicited message.
2. Support the Task / SMART application launch capability specified in the guide.

### Security

1. For general security considerations refer to FHIR Security and Privacy Considerations.
2. For additional security guidance, refer to the core FHIR Security guidance page.
3. A server SHALL reject any unauthorized requests by returning an `HTTP 401` unauthorized response code.

### Resources

- AllergyIntolerance, Condition, Coverage, DocumentReference, MedicationRequest and Observation actions are executed in the context of message processing.

- Task interactions are RESTful.

- OperationOutcome interactions are within both messaging and RESTful actions.

| Resource Type | Profile | Read | Search | Update | Create
--- | --- | --- | --- | --- | --- | ---
SHALL | AllergyIntolerance | http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance | y | y |  |
SHALL | Condition | http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition | y | y |  |
SHALL | Coverage | http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-coverage | y | y |  |
SHOULD | DocumentReference | http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference | y | y |  |
SHALL | MedicationRequest | Search results: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest Identifying the prescribed medication in messaging: http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-medicationrequest.html | y | y |  |
SHALL | Observation | http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab | y | y |  |
SHALL | OperationOutcome | http://hl7.org/fhir/StructureDefinition/OperationOutcome | y |  |  | y
MAY | Task | http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-task-smart-launch | y |  | y | y

### Messaging

| Mode | Message Type | Message Definition | Message Bundle
--- | --- | --- | --- | ---
SHALL | Receiver | Specialty Rx Query | http://hl7.org/fhir/us/specialty-rx/MessageDefinition/specialty-rx-query | http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-bundle-query
SHALL | Sender | Specialty Rx Query Response | http://hl7.org/fhir/us/specialty-rx/MessageDefinition/specialty-rx-query-response | http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-bundle-query-response
SHALL | Receiver and Sender | Specialty Rx Error | http://hl7.org/fhir/us/specialty-rx/MessageDefinition/specialty-rx-error | http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-bundle-error
MAY | Sender | Specialty Rx Query Response - Unsolicited | http://hl7.org/fhir/us/specialty-rx/MessageDefinition/specialty-rx-query-response-unsolicited | http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-bundle-query-response-unsolicited