Specialty Medication Enrollment
0.1.0 - STU1 Ballot

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

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

Raw xml | Download

    <CapabilityStatement xmlns="http://hl7.org/fhir">
      <id value="specialty-rx-data-source-messaging"/>
      <text>
        <status value="extensions"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><h2>SpecialtyRxDataSourceMessaging</h2><div><p>This CapabilityStatement describes the expected capabilities of a server that is capable of providing patient information using Specialty Rx Query messaging.</p>
    </div><table><tr><td>Mode</td><td>SERVER</td></tr><tr><td>Description</td><td><div><p>Specialty Rx Data Source <strong>SHALL</strong>:</p>
    <ol>
    <li>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.</li>
    <li>Support all required RESTful searches and search parameters.</li>
    <li>Support the json source format.</li>
    <li>Declare a CapabilityStatement identifying the profiles supported.</li>
    </ol>
    <p>Specialty Rx Data Source <strong>SHOULD</strong>:</p>
    <ol>
    <li>Respond to the Patient/$match operation.</li>
    <li>Support the xml source format.</li>
    <li>Identify the Specialty Rx profiles supported as part of the FHIR <code>meta.profile</code> attribute for each applicable instance.</li>
    </ol>
    <p>The Specialty Rx Data Source MAY</p>
    <ol>
    <li>Support the Unsolicited workflow defined in this guide, using the Specialty Rx Query Response - Unsolicited message.</li>
    <li>Support the Task / SMART application launch capability specified in the guide.</li>
    </ol>
    </div></td></tr><tr><td>Transaction</td><td></td></tr><tr><td>System History</td><td></td></tr><tr><td>System Search</td><td></td></tr></table><table><tr><th><b>Resource Type</b></th><th><b>Profile</b></th><th><b title="GET a resource (read interaction)">Read</b></th><th><b title="GET all set of resources of the type (search interaction)">Search</b></th><th><b title="PUT a new resource version (update interaction)">Update</b></th><th><b title="POST a new resource (create interaction)">Create</b></th></tr><tr><td>AllergyIntolerance</td><td><a href="http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance">http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance</a></td><td>y</td><td>y</td><td></td><td></td></tr><tr><td>Condition</td><td><a href="http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition">http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition</a></td><td>y</td><td>y</td><td></td><td></td></tr><tr><td>Coverage</td><td><a href="http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-coverage">http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-coverage</a></td><td>y</td><td>y</td><td></td><td></td></tr><tr><td>MedicationRequest</td><td><a href="http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest">http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest</a></td><td>y</td><td>y</td><td></td><td></td></tr><tr><td>Observation</td><td><a href="http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab">http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab</a></td><td>y</td><td>y</td><td></td><td></td></tr><tr><td>DocumentReference</td><td><a href="http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference">http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference</a></td><td>y</td><td>y</td><td></td><td></td></tr><tr><td>OperationOutcome</td><td><a href="http://hl7.org/fhir/StructureDefinition/OperationOutcome">http://hl7.org/fhir/StructureDefinition/OperationOutcome</a></td><td>y</td><td></td><td></td><td>y</td></tr><tr><td>Task</td><td><a href="http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-task-smart-launch">http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-task-smart-launch</a></td><td>y</td><td></td><td>y</td><td>y</td></tr></table></div>
      </text>
      <url
           value="http://hl7.org/fhir/us/specialty-rx/CapabilityStatement/specialty-rx-data-source-messaging"/>
      <version value="0.1.0"/>
      <name value="SpecialtyRxDataSourceMessaging"/>
      <title value="Specialty Rx CapabilityStatement - Data Source - Messaging"/>
      <status value="active"/>
      <experimental value="false"/>
      <date value="2020-08-24T00:00:00-05:00"/>
      <publisher value="HL7 International - Pharmacy"/>
      <contact>
        <name value="HL7 International - Pharmacy"/>
        <telecom>
          <system value="url"/>
          <value value="http://www.hl7.org/Special/committees/medication"/>
        </telecom>
      </contact>
      <contact>
        <name value="Frank McKinney"/>
        <telecom>
          <system value="email"/>
          <value value="frank.mckinney@pocp.com"/>
        </telecom>
      </contact>
      <description
                   value="This CapabilityStatement describes the expected capabilities of a server that is capable of providing patient information using Specialty Rx Query messaging."/>
      <jurisdiction>
        <coding>
          <system value="urn:iso:std:iso:3166"/>
          <code value="US"/>
          <display value="United States of America"/>
        </coding>
      </jurisdiction>
      <kind value="requirements"/>
      <fhirVersion value="4.0.1"/>
      <format value="xml"/>
      <format value="json"/>
      <patchFormat value="application/json-patch+json"/>
      <implementationGuide
                           value="http://hl7.org/fhir/us/specialty-rx/ImplementationGuide/specialty-rx"/>
      <rest>
        <mode value="server"/>
        <documentation
                       value="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.
    1. Support all required RESTful searches and search parameters.
    1. Support the json source format.
    1. Declare a CapabilityStatement identifying the profiles supported.

    Specialty Rx Data Source **SHOULD**:

    1. Respond to the Patient/$match operation.
    1. Support the xml source format.
    1. 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.
    1. Support the Task / SMART application launch capability specified in the guide."/>
        <security>
          <description
                       value="1. For general security considerations refer to [FHIR Security and Privacy Considerations](http://build.fhir.org/secpriv-module.html).
    1. For additional security guidance, refer to the [core FHIR Security guidance page](https://www.hl7.org/fhir/security.html).
    1. A server **SHALL** reject any unauthorized requests by returning an `HTTP 401` unauthorized response code."/>
        </security>
        <resource>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="SHALL"/>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination">
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHOULD"/>
            </extension>
            <extension url="required">
              <valueString value="patient"/>
            </extension>
            <extension url="required">
              <valueString value="clinical-status"/>
            </extension>
          </extension>
          <type value="AllergyIntolerance"/>
          <profile
                   value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance"/>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <code value="search-type"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <code value="read"/>
          </interaction>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="MAY"/>
            </extension>
            <name value="clinical-status"/>
            <definition
                        value="http://hl7.org/fhir/us/core/SearchParameter/us-core-allergyintolerance-clinical-status"/>
            <type value="token"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="patient"/>
            <definition
                        value="http://hl7.org/fhir/us/core/SearchParameter/us-core-allergyintolerance-patient"/>
            <type value="reference"/>
          </searchParam>
        </resource>
        <resource>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="SHALL"/>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination">
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHOULD"/>
            </extension>
            <extension url="required">
              <valueString value="patient"/>
            </extension>
            <extension url="required">
              <valueString value="onset-date"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination">
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHOULD"/>
            </extension>
            <extension url="required">
              <valueString value="patient"/>
            </extension>
            <extension url="required">
              <valueString value="category"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination">
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHOULD"/>
            </extension>
            <extension url="required">
              <valueString value="patient"/>
            </extension>
            <extension url="required">
              <valueString value="clinical-status"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination">
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHOULD"/>
            </extension>
            <extension url="required">
              <valueString value="patient"/>
            </extension>
            <extension url="required">
              <valueString value="code"/>
            </extension>
          </extension>
          <type value="Condition"/>
          <profile
                   value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition"/>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <code value="search-type"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <code value="read"/>
          </interaction>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="MAY"/>
            </extension>
            <name value="category"/>
            <definition
                        value="http://hl7.org/fhir/us/core/SearchParameter/us-core-condition-category"/>
            <type value="token"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="MAY"/>
            </extension>
            <name value="clinical-status"/>
            <definition
                        value="http://hl7.org/fhir/us/core/SearchParameter/us-core-condition-clinical-status"/>
            <type value="token"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="patient"/>
            <definition
                        value="http://hl7.org/fhir/us/core/SearchParameter/us-core-condition-patient"/>
            <type value="reference"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="MAY"/>
            </extension>
            <name value="onset-date"/>
            <definition
                        value="http://hl7.org/fhir/us/core/SearchParameter/us-core-condition-onset-date"/>
            <type value="date"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="MAY"/>
            </extension>
            <name value="code"/>
            <definition
                        value="http://hl7.org/fhir/us/core/SearchParameter/us-core-condition-code"/>
            <type value="token"/>
          </searchParam>
        </resource>
        <resource>
          <type value="Coverage"/>
          <profile
                   value="http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-coverage"/>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <code value="search-type"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <code value="read"/>
          </interaction>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="patient"/>
            <definition value="http://hl7.org/fhir/SearchParameter/Coverage-patient"/>
            <type value="reference"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="MAY"/>
            </extension>
            <name value="beneficiary"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/Coverage-beneficiary"/>
            <type value="reference"/>
          </searchParam>
        </resource>
        <resource>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="SHALL"/>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination">
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension url="required">
              <valueString value="patient"/>
            </extension>
            <extension url="required">
              <valueString value="intent"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination">
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHOULD"/>
            </extension>
            <extension url="required">
              <valueString value="patient"/>
            </extension>
            <extension url="required">
              <valueString value="intent"/>
            </extension>
            <extension url="required">
              <valueString value="encounter"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination">
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHOULD"/>
            </extension>
            <extension url="required">
              <valueString value="patient"/>
            </extension>
            <extension url="required">
              <valueString value="intent"/>
            </extension>
            <extension url="required">
              <valueString value="authoredon"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination">
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension url="required">
              <valueString value="patient"/>
            </extension>
            <extension url="required">
              <valueString value="intent"/>
            </extension>
            <extension url="required">
              <valueString value="status"/>
            </extension>
          </extension>
          <type value="MedicationRequest"/>
          <profile
                   value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest"/>
          <supportedProfile
                            value="http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-medicationrequest"/>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <code value="search-type"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <code value="read"/>
          </interaction>
          <referencePolicy value="resolves"/>
          <searchInclude value="MedicationRequest:medication"/>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="MAY"/>
            </extension>
            <name value="status"/>
            <definition
                        value="http://hl7.org/fhir/us/core/SearchParameter/us-core-medicationrequest-status"/>
            <type value="token"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="MAY"/>
            </extension>
            <name value="intent"/>
            <definition
                        value="http://hl7.org/fhir/us/core/SearchParameter/us-core-medicationrequest-intent"/>
            <type value="token"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="MAY"/>
            </extension>
            <name value="patient"/>
            <definition
                        value="http://hl7.org/fhir/us/core/SearchParameter/us-core-medicationrequest-patient"/>
            <type value="reference"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="MAY"/>
            </extension>
            <name value="encounter"/>
            <definition
                        value="http://hl7.org/fhir/us/core/SearchParameter/us-core-medicationrequest-encounter"/>
            <type value="reference"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="MAY"/>
            </extension>
            <name value="authoredon"/>
            <definition
                        value="http://hl7.org/fhir/us/core/SearchParameter/us-core-medicationrequest-authoredon"/>
            <type value="date"/>
          </searchParam>
        </resource>
        <resource>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="SHALL"/>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination">
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension url="required">
              <valueString value="patient"/>
            </extension>
            <extension url="required">
              <valueString value="category"/>
            </extension>
            <extension url="required">
              <valueString value="date"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination">
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHOULD"/>
            </extension>
            <extension url="required">
              <valueString value="patient"/>
            </extension>
            <extension url="required">
              <valueString value="category"/>
            </extension>
            <extension url="required">
              <valueString value="status"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination">
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHOULD"/>
            </extension>
            <extension url="required">
              <valueString value="patient"/>
            </extension>
            <extension url="required">
              <valueString value="code"/>
            </extension>
            <extension url="required">
              <valueString value="date"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination">
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension url="required">
              <valueString value="patient"/>
            </extension>
            <extension url="required">
              <valueString value="code"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination">
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension url="required">
              <valueString value="patient"/>
            </extension>
            <extension url="required">
              <valueString value="category"/>
            </extension>
          </extension>
          <type value="Observation"/>
          <profile
                   value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab"/>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <code value="search-type"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <code value="read"/>
          </interaction>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="MAY"/>
            </extension>
            <name value="status"/>
            <definition
                        value="http://hl7.org/fhir/us/core/SearchParameter/us-core-observation-status"/>
            <type value="token"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="MAY"/>
            </extension>
            <name value="category"/>
            <definition
                        value="http://hl7.org/fhir/us/core/SearchParameter/us-core-observation-category"/>
            <type value="token"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="MAY"/>
            </extension>
            <name value="code"/>
            <definition
                        value="http://hl7.org/fhir/us/core/SearchParameter/us-core-observation-code"/>
            <type value="token"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="MAY"/>
            </extension>
            <name value="date"/>
            <definition
                        value="http://hl7.org/fhir/us/core/SearchParameter/us-core-observation-date"/>
            <type value="date"/>
          </searchParam>
        </resource>
        <resource>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="SHALL"/>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination">
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHOULD"/>
            </extension>
            <extension url="required">
              <valueString value="patient"/>
            </extension>
            <extension url="required">
              <valueString value="type"/>
            </extension>
            <extension url="required">
              <valueString value="period"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination">
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension url="required">
              <valueString value="patient"/>
            </extension>
            <extension url="required">
              <valueString value="type"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination">
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension url="required">
              <valueString value="patient"/>
            </extension>
            <extension url="required">
              <valueString value="category"/>
            </extension>
            <extension url="required">
              <valueString value="date"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination">
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHOULD"/>
            </extension>
            <extension url="required">
              <valueString value="patient"/>
            </extension>
            <extension url="required">
              <valueString value="status"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination">
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension url="required">
              <valueString value="patient"/>
            </extension>
            <extension url="required">
              <valueString value="category"/>
            </extension>
          </extension>
          <type value="DocumentReference"/>
          <profile
                   value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference"/>
          <documentation
                         value="The DocumentReference.type binding SHOULD support at a minimum the 5 Common Clinical Notes defined in US Core: Discharge Summary, Consult Note, History and Physical Note, Progress Note, Procedure Note"/>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHOULD"/>
            </extension>
            <code value="search-type"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHOULD"/>
            </extension>
            <code value="read"/>
          </interaction>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHOULD"/>
            </extension>
            <name value="_id"/>
            <definition
                        value="http://hl7.org/fhir/us/core/SearchParameter/us-core-documentreference-id"/>
            <type value="token"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="MAY"/>
            </extension>
            <name value="status"/>
            <definition
                        value="http://hl7.org/fhir/us/core/SearchParameter/us-core-documentreference-status"/>
            <type value="token"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHOULD"/>
            </extension>
            <name value="patient"/>
            <definition
                        value="http://hl7.org/fhir/us/core/SearchParameter/us-core-documentreference-patient"/>
            <type value="reference"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="MAY"/>
            </extension>
            <name value="category"/>
            <definition
                        value="http://hl7.org/fhir/us/core/SearchParameter/us-core-documentreference-category"/>
            <type value="token"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="MAY"/>
            </extension>
            <name value="type"/>
            <definition
                        value="http://hl7.org/fhir/us/core/SearchParameter/us-core-documentreference-type"/>
            <type value="token"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="MAY"/>
            </extension>
            <name value="date"/>
            <definition
                        value="http://hl7.org/fhir/us/core/SearchParameter/us-core-documentreference-date"/>
            <type value="date"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="MAY"/>
            </extension>
            <name value="period"/>
            <definition
                        value="http://hl7.org/fhir/us/core/SearchParameter/us-core-documentreference-period"/>
            <type value="date"/>
          </searchParam>
        </resource>
        <resource>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="SHALL"/>
          </extension>
          <type value="OperationOutcome"/>
          <profile value="http://hl7.org/fhir/StructureDefinition/OperationOutcome"/>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <code value="create"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <code value="read"/>
          </interaction>
        </resource>
        <resource>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="MAY"/>
          </extension>
          <type value="Task"/>
          <profile
                   value="http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-task-smart-launch"/>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <code value="create"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <code value="update"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <code value="read"/>
          </interaction>
        </resource>
        <operation>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="SHALL"/>
          </extension>
          <name value="process-message"/>
          <definition
                      value="http://hl7.org/fhir/OperationDefinition/MessageHeader-process-message"/>
        </operation>
        <operation>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="SHOULD"/>
          </extension>
          <name value="patient-match"/>
          <definition value="https://www.hl7.org/fhir/operation-patient-match.html"/>
        </operation>
      </rest>
      <messaging>
        <supportedMessage>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="SHALL"/>
          </extension>
          <mode value="receiver"/>
          <definition
                      value="http://hl7.org/fhir/us/specialty-rx/MessageDefinition/specialty-rx-query"/>
        </supportedMessage>
        <supportedMessage>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="SHALL"/>
          </extension>
          <mode value="sender"/>
          <definition
                      value="http://hl7.org/fhir/us/specialty-rx/MessageDefinition/specialty-rx-query-response"/>
        </supportedMessage>
        <supportedMessage>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="SHALL"/>
          </extension>
          <mode value="sender"/>
          <definition
                      value="http://hl7.org/fhir/us/specialty-rx/MessageDefinition/specialty-rx-error"/>
        </supportedMessage>
        <supportedMessage>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="SHALL"/>
          </extension>
          <mode value="receiver"/>
          <definition
                      value="http://hl7.org/fhir/us/specialty-rx/MessageDefinition/specialty-rx-error"/>
        </supportedMessage>
        <supportedMessage>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="MAY"/>
          </extension>
          <mode value="sender"/>
          <definition
                      value="http://hl7.org/fhir/us/specialty-rx/MessageDefinition/specialty-rx-query-response-unsolicited"/>
        </supportedMessage>
      </messaging>
    </CapabilityStatement>