Implementation Guide (Release 1.2.0)

US_Meds, published by HL7 International - Pharmacy Work Group. This is not an authorized publication; it is the continuous build for version 1.2.0). This version is based on the current content of https://github.com/HL7/FHIR-ONC-Meds/ and changes regularly. See the Directory of published versions

JSON Format: CapabilityStatement-server

Download Raw json

{
  "resourceType" : "CapabilityStatement",
  "id" : "server",
  "text" : {
    "status" : "additional",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n\t\t\t<ul id=\"markdown-toc\">\n\t\t\t\t<li>\n\t\t\t\t\t<a href=\"#conformance-requirements-for-the-us-meds-server\" id=\"markdown-toc-conformance-requirements-for-the-us-meds-server\">Conformance requirements for the US Meds Server</a>\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<a href=\"#behavior\" id=\"markdown-toc-behavior\">Behavior</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<a href=\"#security\" id=\"markdown-toc-security\">Security:</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<a href=\"#profile-interaction-summary\" id=\"markdown-toc-profile-interaction-summary\">Profile Interaction Summary:</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<a href=\"#resource--details\" id=\"markdown-toc-resource--details\">Resource  Details:</a>\n\t\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t\t<a href=\"#medication\" id=\"markdown-toc-medication\">1. Medication</a>\n\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t\t<a href=\"#medicationadministration\" id=\"markdown-toc-medicationadministration\">2. MedicationAdministration</a>\n\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t\t<a href=\"#medicationdispense\" id=\"markdown-toc-medicationdispense\">3. MedicationDispense</a>\n\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t\t<a href=\"#medicationrequest\" id=\"markdown-toc-medicationrequest\">4. MedicationRequest</a>\n\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t\t<a href=\"#medicationstatement\" id=\"markdown-toc-medicationstatement\">5. MedicationStatement</a>\n\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t\t\n\t\t\t<h3 id=\"conformance-requirements-for-the-us-meds-server\">Conformance requirements for the US Meds Server</h3>\n\t\t\t<ul>\n\t\t\t\t<li>FHIR Version: 3.0.0</li>\n\t\t\t\t<li>Supported formats: xml, json</li>\n\t\t\t\t<li>Published: 2017-03-08</li>\n\t\t\t\t<li>Published by: Health Level Seven International Pharmacy Work Group</li>\n\t\t\t</ul>\n\t\t\t<p>The section describes the expected capabilities of the US Meds Server actor which is responsible for providing responses to the queries submitted by the US Med Client applications. It is expected that this CapabilityStatement will be used with the <a href=\"http://hl7.org/fhir/us/core/capstatements.html\">US Core CapabilityStatement</a>. Together they describe the complete list of FHIR profiles, RESTful operations, and search parameters supported by US Meds Servers. US Meds Clients have the option of choosing from this list to access necessary data based on their local use cases and other contextual requirements.</p>\n\t\t\t<h4 id=\"behavior\">Behavior</h4>\n\t\t\t<p>Description: The US Meds Server <strong>SHALL</strong>:</p>\n\t\t\t<ul>\n\t\t\t\t<li>Support the <a href=\"http://hl7.org/fhir/us/core/StructureDefinition-us-core-patient.html\">US Core Patient</a> resource profile.</li>\n\t\t\t\t<li>At a minimum, support the US Core MedicationStatement Profile.</li>\n\t\t\t\t<li>Implement the RESTful behavior according to the FHIR specification.</li>\n\t\t\t\t<li>Return the following response classes:\n    <ul>\n\t\t\t\t\t\t<li>(Status 200): successful operation</li>\n\t\t\t\t\t\t<li>(Status 400): invalid parameter</li>\n\t\t\t\t\t\t<li>(Status 401/4xx): unauthorized request</li>\n\t\t\t\t\t\t<li>(Status 403): insufficient scope</li>\n\t\t\t\t\t\t<li>(Status 404): unknown resource</li>\n\t\t\t\t\t\t<li>(Status 410): deleted resource.</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</li>\n\t\t\t\t<li>Support <em>json</em> resource formats for all US Meds interactions.</li>\n\t\t\t\t<li>Declare a CapabilityStatement identifying the list of profiles, operations, and search parameters supported.</li>\n\t\t\t</ul>\n\t\t\t<p>The US Meds Server <strong>SHOULD</strong>:</p>\n\t\t\t<ul>\n\t\t\t\t<li>Support the following US Core and US Meds resource profiles:\n    <ul>\n\t\t\t\t\t\t<li>US Core Medication</li>\n\t\t\t\t\t\t<li>US Meds MedicationAdministration</li>\n\t\t\t\t\t\t<li>US Meds MedicationDispense</li>\n\t\t\t\t\t\t<li>US Core MedicationRequest</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</li>\n\t\t\t\t<li>Support <em>xml</em> resource formats for all US Meds interactions.</li>\n\t\t\t\t<li>Identify the US Core profile(s) and US Meds profiles supported as part of the FHIR <code class=\"highlighter-rouge\">meta.profile</code> attribute for each instance.</li>\n\t\t\t</ul>\n\t\t\t<p>The US Meds Server <strong>MAY</strong>:</p>\n\t\t\t<ul>\n\t\t\t\t<li>Support other US Core and US Meds resource profile</li>\n\t\t\t</ul>\n\t\t\t<h4 id=\"security\">Security:</h4>\n\t\t\t<p>US Meds Servers <strong>SHALL</strong>:</p>\n\t\t\t<ul>\n\t\t\t\t<li>Implement the security requirements documented in the <a href=\"http://hl7.org/fhir/us/core/security.html\">US-Core IG</a>.</li>\n\t\t\t\t<li>A server has ensured that every API request includes a valid Authorization token, supplied via: <code class=\"highlighter-rouge\">Authorization: Bearer {server-specific-token-here}</code>\n\t\t\t\t</li>\n\t\t\t\t<li>A server has rejected any unauthorized requests by returning an <code class=\"highlighter-rouge\">HTTP 401</code> Unauthorized response code.</li>\n\t\t\t</ul>\n\t\t\t<h4 id=\"profile-interaction-summary\">Profile Interaction Summary:</h4>\n\t\t\t<ul>\n\t\t\t\t<li>All servers <strong>SHALL</strong> make available the <a href=\"https://hl7.org/fhir/STU3/http.html#read.html\">read</a> and <a href=\"http://hl7.org/fhir/STU3/http.html#search\">search</a> interactions for the Profiles the server chooses to support.</li>\n\t\t\t\t<li>All servers <strong>SHOULD</strong> make available the <a href=\"https://hl7.org/fhir/STU3/http.html#vread.html\">vread</a> and <a href=\"http://hl7.org/fhir/STU3/http.html#history\">history-instance</a> interactions for the Profiles the server chooses to support.</li>\n\t\t\t</ul>\n\t\t\t<p>\n\t\t\t\t<strong>Summary of US Meds search criteria</strong>\n\t\t\t</p>\n\t\t\t<p>Specific server search capabilities are described in detail below in each of the resource sections.  The MedicationAdministration, MedicationDispense, MedicationStatement and MedicationRequest resources can represent a medication using either a code or refer to the Medication resource.  When referencing a Medication resource, the resource may be contained or an external resource. The server application can choose any one way or more than one method, but <em>if</em> the an external reference to Medication is used, the server <strong>SHALL</strong> support the <a href=\"http://hl7.org/fhir/STU3/http.html#include\">\n\t\t\t\t\t<code class=\"highlighter-rouge\">_include</code>\n\t\t\t\t</a> parameter for searching this element. The client application must support all methods.</p>\n\t\t\t<table class=\"grid\">\n\t\t\t\t<thead>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th>Resource Type</th>\n\t\t\t\t\t\t<th>Supported Profiles</th>\n\t\t\t\t\t\t<th>Supported Searches</th>\n\t\t\t\t\t\t<th>Supported _includes</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<a href=\"#medication\">Medication</a>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td>US Core Medication Profile</td>\n\t\t\t\t\t\t<td> </td>\n\t\t\t\t\t\t<td> </td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<a href=\"#medicationadministration\">MedicationAdministration</a>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td>US Meds MedicationAdministration Profile</td>\n\t\t\t\t\t\t<td>patient</td>\n\t\t\t\t\t\t<td>MedicationAdministration:medication</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<a href=\"#medicationdispense\">MedicationDispense</a>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td>US Meds MedicationDispense Profile</td>\n\t\t\t\t\t\t<td>patient</td>\n\t\t\t\t\t\t<td>MedicationDispense:medication</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<a href=\"#medicationrequest\">MedicationRequest</a>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td>US Core MedicationRequest Profile</td>\n\t\t\t\t\t\t<td>patient, status, patient + status</td>\n\t\t\t\t\t\t<td>MedicationRequest:medication</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<a href=\"#medicationstatement\">MedicationStatement</a>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td>patient, status, context, patient + status, patient + context</td>\n\t\t\t\t\t\t<td>MedicationStatement:medication</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t\t<h4 id=\"resource--details\">Resource  Details:</h4>\n\t\t\t<h5 id=\"medication\">1. Medication</h5>\n\t\t\t<p>Supported Profiles:  <a href=\"http://hl7.org/fhir/us/core/StructureDefinition-us-core-medication.html\">US Core Medication Profile</a>\n\t\t\t</p>\n\t\t\t<h5 id=\"medicationadministration\">2. MedicationAdministration</h5>\n\t\t\t<p>Supported Profiles:  <a href=\"StructureDefinition-medicationadministration.html\">US Meds MedicationAdministration Profile</a>\n\t\t\t</p>\n\t\t\t<p>Search Criteria:</p>\n\t\t\t<p>A server <strong>SHALL</strong> be capable of fetching a patient’s administered medications using one of or both:</p>\n\t\t\t<ul>\n\t\t\t\t<li>\n\t\t\t\t\t<code class=\"highlighter-rouge\">GET /MedicationAdministration?patient=[id]</code>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<code class=\"highlighter-rouge\">GET /MedicationAdministration?patient=[id]&amp;_include=MedicationAdministration:medication</code>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t\t<p>Search Parameters:</p>\n\t\t\t<table class=\"grid\">\n\t\t\t\t<thead>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th>Conformance</th>\n\t\t\t\t\t\t<th>Parameter</th>\n\t\t\t\t\t\t<th>Type</th>\n\t\t\t\t\t\t<th>_include (see documentation)</th>\n\t\t\t\t\t\t<th>Modifiers</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<strong>SHALL</strong>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td>patient</td>\n\t\t\t\t\t\t<td>reference</td>\n\t\t\t\t\t\t<td>MedicationAdministration:medication</td>\n\t\t\t\t\t\t<td> </td>\n\t\t\t\t\t</tr>\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t\t<h5 id=\"medicationdispense\">3. MedicationDispense</h5>\n\t\t\t<p>Supported Profiles:  <a href=\"http://hl7.org/fhir/us/meds/STU1/StructureDefinition-medicationdispense.html\">US Meds MedicationDispense Profile</a>\n\t\t\t</p>\n\t\t\t<p>Search Criteria:</p>\n\t\t\t<p>A server <strong>SHALL</strong> be capable of returning a patient’s dispensed medications using one of or both:</p>\n\t\t\t<ul>\n\t\t\t\t<li>\n\t\t\t\t\t<code class=\"highlighter-rouge\">GET /MedicationDispense?patient=[id]</code>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<code class=\"highlighter-rouge\">GET /MedicationDispense?patient=[id]&amp;_include=MedicationDispense:medication</code>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t\t<table class=\"grid\">\n\t\t\t\t<thead>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th>Conformance</th>\n\t\t\t\t\t\t<th>Parameter</th>\n\t\t\t\t\t\t<th>Type</th>\n\t\t\t\t\t\t<th>_include (see documentation)</th>\n\t\t\t\t\t\t<th>Modifiers</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<strong>SHALL</strong>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td>patient</td>\n\t\t\t\t\t\t<td>reference</td>\n\t\t\t\t\t\t<td>MedicationDispense:medication</td>\n\t\t\t\t\t\t<td> </td>\n\t\t\t\t\t</tr>\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t\t<h5 id=\"medicationrequest\">4. MedicationRequest</h5>\n\t\t\t<p>Supported Profiles:  <a href=\"http://hl7.org/fhir/us/core/StructureDefinition-us-core-medicationrequest.html\">US Core MedicationRequest Profile</a>\n\t\t\t</p>\n\t\t\t<p>Search Criteria:</p>\n\t\t\t<p>A server <strong>SHALL</strong> be capable of returning a patient’s active medications orders using one of or both:</p>\n\t\t\t<ul>\n\t\t\t\t<li>\n\t\t\t\t\t<code class=\"highlighter-rouge\">GET /MedicationRequest?patient=[id]</code>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<code class=\"highlighter-rouge\">GET /MedicationRequest?patient=[id]&amp;_include=MedicationRequest:medication</code>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t\t<p>Search Parameters:</p>\n\t\t\t<table class=\"grid\">\n\t\t\t\t<thead>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th>Conformance</th>\n\t\t\t\t\t\t<th>Parameter</th>\n\t\t\t\t\t\t<th>Type</th>\n\t\t\t\t\t\t<th>_include (see documentation)</th>\n\t\t\t\t\t\t<th>Modifiers</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<strong>SHALL</strong>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td>status + status</td>\n\t\t\t\t\t\t<td>reference + token</td>\n\t\t\t\t\t\t<td>MedicationRequest:medication</td>\n\t\t\t\t\t\t<td> </td>\n\t\t\t\t\t</tr>\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t\t<h5 id=\"medicationstatement\">5. MedicationStatement</h5>\n\t\t\t<p>Search Criteria:</p>\n\t\t\t<p>A server <strong>SHALL</strong> be capable of returning all medications for a patient using one of or both:</p>\n\t\t\t<ul>\n\t\t\t\t<li>\n\t\t\t\t\t<code class=\"highlighter-rouge\">GET /MedicationStatement?patient=[id]</code>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<code class=\"highlighter-rouge\">GET /MedicationStatement?patient=[id]&amp;_include=MedicationStatement:medication</code>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t\t<p>A server <strong>SHALL</strong> be capable of returning all active medications for a patient using:</p>\n\t\t\t<ul>\n\t\t\t\t<li>\n\t\t\t\t\t<code class=\"highlighter-rouge\">GET /MedicationStatement?patient=[id]&amp;status=active</code>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<code class=\"highlighter-rouge\">GET /MedicationStatement?patient=[id]&amp;status=active&amp;_include=MedicationStatement:medication</code>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t\t<p>A server <strong>SHALL</strong> be capable of returning all medications for a patient for an encounter using:</p>\n\t\t\t<ul>\n\t\t\t\t<li>\n\t\t\t\t\t<code class=\"highlighter-rouge\">GET /MedicationStatement?patient=[id]&amp;context=[id]</code>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<code class=\"highlighter-rouge\">GET /MedicationStatement?patient=[id]&amp;context=[id]&amp;_include=MedicationStatement:medication</code>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t\t<p>Search Parameters:</p>\n\t\t\t<table class=\"grid\">\n\t\t\t\t<thead>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th>Conformance</th>\n\t\t\t\t\t\t<th>Parameter</th>\n\t\t\t\t\t\t<th>Type</th>\n\t\t\t\t\t\t<th>_include (see documentation)</th>\n\t\t\t\t\t\t<th>Modifiers</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<strong>SHALL</strong>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td>patient</td>\n\t\t\t\t\t\t<td>reference</td>\n\t\t\t\t\t\t<td>MedicationStatement:medication</td>\n\t\t\t\t\t\t<td> </td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<strong>SHALL</strong>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td>patient + status</td>\n\t\t\t\t\t\t<td>reference + token</td>\n\t\t\t\t\t\t<td>MedicationStatement:medication</td>\n\t\t\t\t\t\t<td> </td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<strong>SHALL</strong>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td>patient + context</td>\n\t\t\t\t\t\t<td>reference</td>\n\t\t\t\t\t\t<td>MedicationStatement:medication</td>\n\t\t\t\t\t\t<td> </td>\n\t\t\t\t\t</tr>\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t\t<p>\n\t\t\t\t<br/>\n\t\t\t</p>\n\t\t</div>"
  },
  "url" : "http://hl7.org/fhir/us/meds/CapabilityStatement/server",
  "version" : "1.2.0",
  "name" : "US_Meds_Server",
  "status" : "draft",
  "date" : "2017-03-08",
  "publisher" : "Health Level Seven International Pharmacy Work Group",
  "contact" : [
    {
      "telecom" : [
        {
          "system" : "other",
          "value" : "http://www.hl7.org/Special/committees/medication/index.cfm"
        }
      ]
    }
  ],
  "description" : "This resource defines the expected capabilities of the US Meds Server actor when conforming to the US Meds IG and It is expected that it will be used in conjuction with the US Core CapabilityStatement. Together they describe the complete list of actual profiles, RESTful operations, and search parameters supported by US Meds Servers.  US Meds Clients have the option of choosing from this list to access necessary data based on their local use cases and other contextual requirements.",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "urn:iso:std:iso:3166",
          "code" : "US"
        }
      ]
    }
  ],
  "kind" : "requirements",
  "fhirVersion" : "4.0.1",
  "format" : [
    "xml",
    "json"
  ],
  "rest" : [
    {
      "mode" : "server",
      "resource" : [
        {
          "type" : "Medication",
          "interaction" : [
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
                  "valueCode" : "SHOULD"
                }
              ],
              "code" : "search-type",
              "documentation" : "IF the Medication Resource is used in a MedicationStatement or a MedicationRequest.   Allows discovery of existing US Core Medication resources using different search criteria."
            },
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
                  "valueCode" : "SHOULD"
                }
              ],
              "code" : "read",
              "documentation" : "IF the Medication Resource is used in a MedicationStatement or a MedicationRequest.  Allows retrieval of a specific US Core Medication by id"
            },
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
                  "valueCode" : "SHOULD"
                }
              ],
              "code" : "history-instance",
              "documentation" : "Allows review of changes to US Core Medication instance over time"
            },
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
                  "valueCode" : "SHOULD"
                }
              ],
              "code" : "vread",
              "documentation" : "Allows retrieval of a historical version of a US Core Medication instance"
            }
          ]
        },
        {
          "type" : "MedicationAdministration",
          "interaction" : [
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
                  "valueCode" : "SHALL"
                }
              ],
              "code" : "search-type",
              "documentation" : "Allows discovery of existing US Core medicationadmnistration resources using different search criteria"
            },
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
                  "valueCode" : "SHALL"
                }
              ],
              "code" : "read",
              "documentation" : "Allows retrieval of a specific US Core medicationadmnistration by id"
            },
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
                  "valueCode" : "SHOULD"
                }
              ],
              "code" : "history-instance",
              "documentation" : "Allows review of changes to US Core medicationadmnistration instance over time"
            },
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
                  "valueCode" : "SHOULD"
                }
              ],
              "code" : "vread",
              "documentation" : "Allows retrieval of a historical version of a US Core medicationadmnistration instance"
            }
          ],
          "searchInclude" : [
            "MedicationAdministration:medication"
          ],
          "_searchInclude" : [
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
                  "valueCode" : "MAY"
                }
              ]
            }
          ]
        },
        {
          "type" : "MedicationDispense",
          "interaction" : [
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
                  "valueCode" : "SHALL"
                }
              ],
              "code" : "search-type",
              "documentation" : "Allows discovery of existing US Core medicationdispense resources using different search criteria"
            },
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
                  "valueCode" : "SHALL"
                }
              ],
              "code" : "read",
              "documentation" : "Allows retrieval of a specific US Core medicationdispense by id"
            },
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
                  "valueCode" : "SHOULD"
                }
              ],
              "code" : "history-instance",
              "documentation" : "Allows review of changes to US Core medicationdispense instance over time"
            },
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
                  "valueCode" : "SHOULD"
                }
              ],
              "code" : "vread",
              "documentation" : "Allows retrieval of a historical version of a US Core medicationdispense instance"
            }
          ],
          "searchInclude" : [
            "MedicationDispense:medication"
          ],
          "_searchInclude" : [
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
                  "valueCode" : "MAY"
                }
              ]
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "required",
                  "valueString" : "patient"
                },
                {
                  "url" : "required",
                  "valueString" : "status"
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination"
            }
          ],
          "type" : "MedicationRequest",
          "interaction" : [
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
                  "valueCode" : "SHALL"
                }
              ],
              "code" : "search-type",
              "documentation" : "Allows discovery of existing US Core medicationrequest resources using different search criteria"
            },
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
                  "valueCode" : "SHALL"
                }
              ],
              "code" : "read",
              "documentation" : "Allows retrieval of a specific US Core medicationrequest by id"
            },
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
                  "valueCode" : "SHOULD"
                }
              ],
              "code" : "history-instance",
              "documentation" : "Allows review of changes to US Core medicationrequest instance over time"
            },
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
                  "valueCode" : "SHOULD"
                }
              ],
              "code" : "vread",
              "documentation" : "Allows retrieval of a historical version of a US Core medicationrequest instance"
            }
          ],
          "searchInclude" : [
            "MedicationRequest:medication"
          ],
          "_searchInclude" : [
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
                  "valueCode" : "MAY"
                }
              ]
            }
          ],
          "searchParam" : [
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
                  "valueCode" : "SHALL"
                }
              ],
              "name" : "status",
              "definition" : "http://hl7.org/fhir/SearchParameter/medications-status",
              "type" : "token"
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "required",
                  "valueString" : "patient"
                },
                {
                  "url" : "required",
                  "valueString" : "status"
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination"
            },
            {
              "extension" : [
                {
                  "url" : "required",
                  "valueString" : "patient"
                },
                {
                  "url" : "required",
                  "valueString" : "context"
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination"
            }
          ],
          "type" : "MedicationStatement",
          "interaction" : [
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
                  "valueCode" : "SHALL"
                }
              ],
              "code" : "search-type",
              "documentation" : "Allows discovery of existing US Core medicationstatement resources using different search criteria"
            },
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
                  "valueCode" : "SHALL"
                }
              ],
              "code" : "read",
              "documentation" : "Allows retrieval of a specific US Core medicationstatement by id"
            },
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
                  "valueCode" : "SHOULD"
                }
              ],
              "code" : "history-instance",
              "documentation" : "Allows review of changes to US Core medicationstatement instance over time"
            },
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
                  "valueCode" : "SHOULD"
                }
              ],
              "code" : "vread",
              "documentation" : "Allows retrieval of a historical version of a US Core medicationstatement instance"
            }
          ],
          "searchInclude" : [
            "MedicationStatement:medication"
          ],
          "_searchInclude" : [
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
                  "valueCode" : "MAY"
                }
              ]
            }
          ],
          "searchParam" : [
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
                  "valueCode" : "SHALL"
                }
              ],
              "name" : "status",
              "definition" : "http://hl7.org/fhir/SearchParameter/medications-status",
              "type" : "token"
            },
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
                  "valueCode" : "SHALL"
                }
              ],
              "name" : "context",
              "definition" : "http://hl7.org/fhir/SearchParameter/MedicationStatement-context",
              "type" : "reference"
            },
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
                  "valueCode" : "MAY"
                }
              ],
              "name" : "category",
              "definition" : "http://hl7.org/fhir/SearchParameter/MedicationStatement-category",
              "type" : "token"
            }
          ]
        }
      ]
    }
  ]
}