Implementation Guide
ePA Medication Service
Version 1.2.0-ballot.2 - draft

## : EPA CapabilityStatement für den Medication Service - XML Representation

Draft as of 2025-09-02

Raw xml | Download

    <CapabilityStatement xmlns="http://hl7.org/fhir">
      <id value="epa-medication-service-server"/>
      <meta>
        <profile
                 value="https://gematik.de/fhir/ti/StructureDefinition/ti-capability-statement"/>
      </meta>
      <extension
                 url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-header">
        <extension url="name">
          <valueString value="X-Request-ID"/>
        </extension>
        <extension url="type">
          <valueString value="string"/>
        </extension>
        <extension url="description">
          <valueString value="UUID of the request message"/>
        </extension>
        <extension url="format">
          <valueString value="uuid"/>
        </extension>
        <extension url="required">
          <valueBoolean value="true"/>
        </extension>
      </extension>
      <extension
                 url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-header">
        <extension url="name">
          <valueString value="x-insurantid"/>
        </extension>
        <extension url="type">
          <valueString value="string"/>
        </extension>
        <extension url="description">
          <valueString value="Health Record Identifier"/>
        </extension>
        <extension url="pattern">
          <valueString value="^[A-Z]{1}\d{9}$"/>
        </extension>
        <extension url="required">
          <valueBoolean value="true"/>
        </extension>
      </extension>
      <extension
                 url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-header">
        <extension url="name">
          <valueString value="x-useragent"/>
        </extension>
        <extension url="type">
          <valueString value="string"/>
        </extension>
        <extension url="description">
          <valueString value="user agent information"/>
        </extension>
        <extension url="pattern">
          <valueString value="^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$"/>
        </extension>
        <extension url="required">
          <valueBoolean value="true"/>
        </extension>
      </extension>
      <extension
                 url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
        <extension url="statusCode">
          <valueString value="403"/>
        </extension>
        <extension url="description">
          <valueString
                       value="Requestor not authorized (no user session with valid ID-Token available)"/>
        </extension>
        <extension url="responseType">
          <valueString value="application/json"/>
        </extension>
        <extension url="errorCode">
          <valueString value="invalAuth"/>
        </extension>
      </extension>
      <extension
                 url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
        <extension url="statusCode">
          <valueString value="403"/>
        </extension>
        <extension url="description">
          <valueString value="Requestor has no valid entitlement"/>
        </extension>
        <extension url="responseType">
          <valueString value="application/json"/>
        </extension>
        <extension url="errorCode">
          <valueString value="notEntitled"/>
        </extension>
      </extension>
      <extension
                 url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
        <extension url="statusCode">
          <valueString value="403"/>
        </extension>
        <extension url="description">
          <valueString
                       value="Requestor role is not in the list of allowed user groups"/>
        </extension>
        <extension url="responseType">
          <valueString value="application/json"/>
        </extension>
        <extension url="errorCode">
          <valueString value="invalidOid"/>
        </extension>
      </extension>
      <extension
                 url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
        <extension url="statusCode">
          <valueString value="403"/>
        </extension>
        <extension url="description">
          <valueString
                       value="Device registration does not exist (if requestor role is oid_versicherter only)"/>
        </extension>
        <extension url="responseType">
          <valueString value="application/json"/>
        </extension>
        <extension url="errorCode">
          <valueString value="unregisteredDevice"/>
        </extension>
      </extension>
      <extension
                 url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
        <extension url="statusCode">
          <valueString value="404"/>
        </extension>
        <extension url="description">
          <valueString value="Health record is in state UNKNOWN or INITIALIZED"/>
        </extension>
        <extension url="responseType">
          <valueString value="application/json"/>
        </extension>
        <extension url="errorCode">
          <valueString value="noHealthRecord"/>
        </extension>
      </extension>
      <extension
                 url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
        <extension url="statusCode">
          <valueString value="409"/>
        </extension>
        <extension url="description">
          <valueString
                       value="Health record is in state SUSPENDED or MAINTENANCE"/>
        </extension>
        <extension url="responseType">
          <valueString value="application/json"/>
        </extension>
        <extension url="errorCode">
          <valueString value="statusMismatch"/>
        </extension>
      </extension>
      <extension
                 url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
        <extension url="statusCode">
          <valueString value="500"/>
        </extension>
        <extension url="description">
          <valueString value="Any other error"/>
        </extension>
        <extension url="responseType">
          <valueString value="application/json"/>
        </extension>
        <extension url="errorCode">
          <valueString value="internalError"/>
        </extension>
      </extension>
      <extension
                 url="https://gematik.de/fhir/ti/StructureDefinition/extension-base-url">
        <valueString value="http://epa4all/epa/medication/api/v1/fhir"/>
      </extension>
      <extension
                 url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
        <extension url="statusCode">
          <valueString value="423"/>
        </extension>
        <extension url="description">
          <valueString
                       value="If the insurant objected to the medication process or objected to the submission of prescription and dispensation data into the ePA system, the Medication Service is locked."/>
        </extension>
        <extension url="responseType">
          <valueString value="application/json"/>
        </extension>
        <extension url="errorCode">
          <valueString value="locked"/>
        </extension>
      </extension>
      <url
           value="https://gematik.de/fhir/epa-medication/CapabilityStatement/epa-medication-service-server"/>
      <version value="1.2.0-ballot.2"/>
      <name value="EPAMedicationServiceServer"/>
      <title value="EPA CapabilityStatement für den Medication Service"/>
      <status value="draft"/>
      <date value="2025-09-02"/>
      <publisher value="gematik GmbH"/>
      <contact>
        <telecom>
          <system value="url"/>
          <value value="https://www.gematik.de"/>
        </telecom>
      </contact>
      <description value="EPA CapabilityStatement für den Medication Service"/>
      <jurisdiction>
        <coding>
          <system value="urn:iso:std:iso:3166"/>
          <code value="DE"/>
        </coding>
      </jurisdiction>
      <kind value="requirements"/>
      <imports
               value="https://gematik.de/fhir/epa/CapabilityStatement/epa-basic-server">🔗
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
      </imports>
      <fhirVersion value="4.0.1"/>
      <format value="application/fhir+json"/>
      <format value="application/fhir+xml"/>
      <rest>
        <mode value="server"/>
        <resource>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="SHALL"/>
          </extension>
          <type value="Medication"/>
          <supportedProfile
                            value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication">🔗
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
          </supportedProfile>
          <supportedProfile
                            value="https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication">🔗
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
          </supportedProfile>
          <supportedProfile
                            value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-pharmaceutical-product">🔗
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
          </supportedProfile>
          <supportedProfile
                            value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-pzn-ingredient">🔗
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
          </supportedProfile>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown search parameter"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_PARAM_UNKNOWN"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid query parameter(s)"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_SYNTAX"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <code value="search-type"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid request"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_FORMAT"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <code value="history-type"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid request"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_FORMAT"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Resource is not known"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_RESOURCE_ID_FAIL"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="410"/>
              </extension>
              <extension url="description">
                <valueString value="Resource was deleted"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
            </extension>
            <code value="read"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid request"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_FORMAT"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Resource is not known"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_RESOURCE_ID_FAIL"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="410"/>
              </extension>
              <extension url="description">
                <valueString value="Resource was deleted"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
            </extension>
            <code value="history-instance"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid request"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_FORMAT"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Resource is not known"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_RESOURCE_ID_FAIL"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="410"/>
              </extension>
              <extension url="description">
                <valueString value="Resource was deleted"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
            </extension>
            <code value="vread"/>
          </interaction>
          <versioning value="versioned-update"/>
          <readHistory value="true"/>
          <searchRevInclude value="MedicationRequest:medication"/>
          <searchRevInclude value="MedicationDispense:medication"/>
          <searchRevInclude value="MedicationStatement:medication"/>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="_id"/>
            <definition value="http://hl7.org/fhir/SearchParameter/Resource-id"/>
            <type value="token"/>
            <documentation value="Resource.id"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="_lastUpdated"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/Resource-lastUpdated"/>
            <type value="date"/>
            <documentation value="Resource.meta.lastUpdated"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="_has"/>
            <type value="string"/>
            <documentation
                           value="Return resources linked to by the given target"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="identifier"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/clinical-identifier"/>
            <type value="token"/>
            <documentation value="Medication.identifier"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="code"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/clinical-code"/>
            <type value="token"/>
            <documentation value="Medication.code"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="status"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/Medication-status"/>
            <type value="token"/>
            <documentation value="Medication.status"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="ingredient-code"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/Medication-ingredient-code"/>
            <type value="token"/>
            <documentation value="Medication.ingredient.item as CodeableConcept"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="rx-prescription"/>
            <definition
                        value="https://gematik.de/fhir/epa-medication/SearchParameter/rx-prescription-process-sp"/>
            <type value="token"/>
            <documentation value="Medication.extension"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="context"/>
            <definition
                        value="https://gematik.de/fhir/epa-medication/SearchParameter/context-sp"/>
            <type value="token"/>
            <documentation value="Medication.extension:context"/>
          </searchParam>
        </resource>
        <resource>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="SHALL"/>
          </extension>
          <type value="MedicationRequest"/>
          <supportedProfile
                            value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request">🔗
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
          </supportedProfile>
          <supportedProfile
                            value="https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request">🔗
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
          </supportedProfile>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown search parameter"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_PARAM_UNKNOWN"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid query parameter(s)"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_SYNTAX"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <code value="search-type"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid request"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_FORMAT"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <code value="history-type"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid request"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_FORMAT"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Resource is not known"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_RESOURCE_ID_FAIL"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="410"/>
              </extension>
              <extension url="description">
                <valueString value="Resource was deleted"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
            </extension>
            <code value="read"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid request"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_FORMAT"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Resource is not known"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_RESOURCE_ID_FAIL"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="410"/>
              </extension>
              <extension url="description">
                <valueString value="Resource was deleted"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
            </extension>
            <code value="history-instance"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid request"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_FORMAT"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Resource is not known"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_RESOURCE_ID_FAIL"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="410"/>
              </extension>
              <extension url="description">
                <valueString value="Resource was deleted"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
            </extension>
            <code value="vread"/>
          </interaction>
          <versioning value="versioned-update"/>
          <readHistory value="true"/>
          <searchInclude value="MedicationRequest:medication"/>
          <searchInclude value="MedicationRequest:requester"/>
          <searchInclude value="MedicationRequest:activity"/>
          <searchRevInclude value="MedicationDispense:prescription"/>
          <searchRevInclude value="MedicationStatement:derived-from"/>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="_id"/>
            <definition value="http://hl7.org/fhir/SearchParameter/Resource-id"/>
            <type value="token"/>
            <documentation value="Resource.id"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="_lastUpdated"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/Resource-lastUpdated"/>
            <type value="date"/>
            <documentation value="Resource.meta.lastUpdated"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="_has"/>
            <type value="string"/>
            <documentation
                           value="Return resources linked to by the given target"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="identifier"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/clinical-identifier"/>
            <type value="token"/>
            <documentation value="MedicationRequest.identifier"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="authoredon"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/MedicationRequest-authoredon"/>
            <type value="date"/>
            <documentation value="MedicationRequest.authoredOn"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="intent"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/MedicationRequest-intent"/>
            <type value="token"/>
            <documentation value="MedicationRequest.intent"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="status"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/medications-status"/>
            <type value="token"/>
            <documentation value="MedicationRequest.status"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="requester"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/MedicationRequest-requester"/>
            <type value="reference"/>
            <documentation value="MedicationRequest.requester"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="medication"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/medications-medication"/>
            <type value="reference"/>
            <documentation value="MedicationRequest.medication as Reference"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="context"/>
            <definition
                        value="https://gematik.de/fhir/epa-medication/SearchParameter/context-sp"/>
            <type value="token"/>
            <documentation value="MedicationRequest.extension:context"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="activity"/>
            <definition
                        value="https://gematik.de/fhir/epa-medication/SearchParameter/medication-statement-activity-sp"/>
            <type value="reference"/>
            <documentation value="MedicationRequest.extension:activity"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="effective-dose-period"/>
            <definition
                        value="https://gematik.de/fhir/epa-medication/SearchParameter/medicationrequest-effective-dose-period-sp"/>
            <type value="date"/>
            <documentation
                           value="MedicationRequest.extension:effectiveDosePeriod"/>
          </searchParam>
        </resource>
        <resource>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="SHALL"/>
          </extension>
          <type value="MedicationDispense"/>
          <supportedProfile
                            value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense">🔗
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
          </supportedProfile>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown search parameter"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_PARAM_UNKNOWN"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid query parameter(s)"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_SYNTAX"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <code value="search-type"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid request"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_FORMAT"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <code value="history-type"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid request"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_FORMAT"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Resource is not known"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_RESOURCE_ID_FAIL"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="410"/>
              </extension>
              <extension url="description">
                <valueString value="Resource was deleted"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
            </extension>
            <code value="read"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid request"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_FORMAT"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Resource is not known"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_RESOURCE_ID_FAIL"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="410"/>
              </extension>
              <extension url="description">
                <valueString value="Resource was deleted"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
            </extension>
            <code value="history-instance"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid request"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_FORMAT"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Resource is not known"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_RESOURCE_ID_FAIL"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="410"/>
              </extension>
              <extension url="description">
                <valueString value="Resource was deleted"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
            </extension>
            <code value="vread"/>
          </interaction>
          <versioning value="versioned-update"/>
          <readHistory value="true"/>
          <searchInclude value="MedicationDispense:medication"/>
          <searchInclude value="MedicationDispense:performer"/>
          <searchInclude value="MedicationDispense:prescription"/>
          <searchRevInclude value="MedicationStatement:derived-from"/>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="_id"/>
            <definition value="http://hl7.org/fhir/SearchParameter/Resource-id"/>
            <type value="token"/>
            <documentation value="Resource.id"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="_lastUpdated"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/Resource-lastUpdated"/>
            <type value="date"/>
            <documentation value="Resource.meta.lastUpdated"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="_has"/>
            <type value="string"/>
            <documentation
                           value="Return resources linked to by the given target"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="identifier"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/clinical-identifier"/>
            <type value="token"/>
            <documentation value="MedicationDispense.identifier"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="whenhandedover"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/MedicationDispense-whenhandedover"/>
            <type value="date"/>
            <documentation value="MedicationDispense.whenHandedOver"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="prescription"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/medications-prescription"/>
            <type value="reference"/>
            <documentation value="MedicationDispense.authorizingPrescription"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="performer"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/MedicationDispense-performer"/>
            <type value="reference"/>
            <documentation value="MedicationDispense.performer.actor"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="status"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/medications-status"/>
            <type value="token"/>
            <documentation value="MedicationDispense.status"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="medication"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/medications-medication"/>
            <type value="reference"/>
            <documentation value="MedicationDispense.medication as Reference"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="rx-prescription"/>
            <definition
                        value="https://gematik.de/fhir/epa-medication/SearchParameter/rx-prescription-process-sp"/>
            <type value="token"/>
            <documentation value="MedicationDispense.extension"/>
          </searchParam>
        </resource>
        <resource>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="SHALL"/>
          </extension>
          <type value="MedicationStatement"/>
          <supportedProfile
                            value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement">🔗
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
          </supportedProfile>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown search parameter"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_PARAM_UNKNOWN"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid query parameter(s)"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_SYNTAX"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <code value="search-type"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid request"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_FORMAT"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <code value="history-type"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid request"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_FORMAT"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Resource is not known"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_RESOURCE_ID_FAIL"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="410"/>
              </extension>
              <extension url="description">
                <valueString value="Resource was deleted"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
            </extension>
            <code value="read"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid request"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_FORMAT"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Resource is not known"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_RESOURCE_ID_FAIL"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="410"/>
              </extension>
              <extension url="description">
                <valueString value="Resource was deleted"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
            </extension>
            <code value="history-instance"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid request"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_FORMAT"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Resource is not known"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_RESOURCE_ID_FAIL"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="410"/>
              </extension>
              <extension url="description">
                <valueString value="Resource was deleted"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
            </extension>
            <code value="vread"/>
          </interaction>
          <versioning value="versioned-update"/>
          <readHistory value="true"/>
          <searchInclude value="MedicationStatement:medication"/>
          <searchInclude value="MedicationStatement:part-of"/>
          <searchInclude value="MedicationStatement:derived-from"/>
          <searchInclude value="MedicationStatement:based-on-emp"/>
          <searchRevInclude value="Provenance:target"/>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="_id"/>
            <definition value="http://hl7.org/fhir/SearchParameter/Resource-id"/>
            <type value="token"/>
            <documentation value="Resource.id"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="_lastUpdated"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/Resource-lastUpdated"/>
            <type value="date"/>
            <documentation value="Resource.meta.lastUpdated"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="_has"/>
            <type value="string"/>
            <documentation
                           value="Return resources linked to by the given target"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="identifier"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/clinical-identifier"/>
            <type value="token"/>
            <documentation value="MedicationStatement.identifier"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="medication"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/medications-medication"/>
            <type value="reference"/>
            <documentation value="MedicationStatement.medication as Reference"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="part-of"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/MedicationStatement-part-of"/>
            <type value="reference"/>
            <documentation value="MedicationStatement.partOf as Reference"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="status"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/medications-status"/>
            <type value="token"/>
            <documentation value="MedicationStatement.status"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="effective"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/MedicationStatement-effective"/>
            <type value="date"/>
            <documentation value="MedicationStatement.effective"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="rx-prescription"/>
            <definition
                        value="https://gematik.de/fhir/epa-medication/SearchParameter/rx-prescription-process-sp"/>
            <type value="token"/>
            <documentation value="Medication.extension"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="derived-from"/>
            <definition
                        value="https://gematik.de/fhir/epa-medication/SearchParameter/derived-from-sp"/>
            <type value="reference"/>
            <documentation value="MedicationStatement.derivedFrom as Reference"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="context"/>
            <definition
                        value="https://gematik.de/fhir/epa-medication/SearchParameter/context-sp"/>
            <type value="token"/>
            <documentation value="MedicationStatement.extension:context"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="based-on-emp"/>
            <definition
                        value="https://gematik.de/fhir/epa-medication/SearchParameter/based-on-emp-sp"/>
            <type value="reference"/>
            <documentation
                           value="MedicationStatement.basedOn mit Extension:is-emp = true"/>
          </searchParam>
          <operation>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-header">
              <extension url="name">
                <valueString value="X-Requesting-Organization"/>
              </extension>
              <extension url="type">
                <valueString value="string"/>
              </extension>
              <extension url="description">
                <valueString
                             value="Base64 encoded FHIR Organization resource in JSON format used to identify the originator of the request"/>
              </extension>
              <extension url="format">
                <valueString value="base64(fhir+json:Organization)"/>
              </extension>
              <extension url="required">
                <valueBoolean value="true"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
              <extension url="responseType">
                <valueString value="Parameters"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="403"/>
              </extension>
              <extension url="description">
                <valueString value="ID-Token or Insurant-ID mismatch"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="SVC_IDENTITY_MISMATCH"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Profile mismatch in header Organization"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="SVC_ORG_HEADER_PROFILE_MISMATCH"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString
                             value="Invalid Data Structure in Medication Service"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MEDICATIONSVC_NO_VALID_STRUCTURE"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid dosage structure or content"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MEDSVC_DOSAGE_INVALID"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Parameter with wrong status"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MEDSVC_STATUS_INVALID"/>
              </extension>
            </extension>
            <name value="add-eml-entry"/>
            <definition
                        value="https://gematik.de/fhir/epa-medication/OperationDefinition/add-eml-entry-op"/>
          </operation>
          <operation>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-header">
              <extension url="name">
                <valueString value="X-Requesting-Organization"/>
              </extension>
              <extension url="type">
                <valueString value="string"/>
              </extension>
              <extension url="description">
                <valueString
                             value="Base64 encoded FHIR Organization resource in JSON format used to identify the originator of the request"/>
              </extension>
              <extension url="format">
                <valueString value="base64(fhir+json:Organization)"/>
              </extension>
              <extension url="required">
                <valueBoolean value="true"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
              <extension url="responseType">
                <valueString value="Parameters"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="403"/>
              </extension>
              <extension url="description">
                <valueString value="ID-Token or Insurant-ID mismatch"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="SVC_IDENTITY_MISMATCH"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Profile mismatch in header Organization"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="SVC_ORG_HEADER_PROFILE_MISMATCH"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Resource is not known"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_RESOURCE_ID_FAIL"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="405"/>
              </extension>
              <extension url="description">
                <valueString value="Operation %s not allowed for resource %s"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_OP_NOT_ALLOWED"/>
              </extension>
            </extension>
            <name value="cancel-eml-entry"/>
            <definition
                        value="https://gematik.de/fhir/epa-medication/OperationDefinition/cancel-eml-entry-op"/>
          </operation>
          <operation>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-header">
              <extension url="name">
                <valueString value="X-Requesting-Organization"/>
              </extension>
              <extension url="type">
                <valueString value="string"/>
              </extension>
              <extension url="description">
                <valueString
                             value="Base64 encoded FHIR Organization resource in JSON format used to identify the originator of the request"/>
              </extension>
              <extension url="format">
                <valueString value="base64(fhir+json:Organization)"/>
              </extension>
              <extension url="required">
                <valueBoolean value="true"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
              <extension url="responseType">
                <valueString value="Parameters"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="403"/>
              </extension>
              <extension url="description">
                <valueString value="ID-Token or Insurant-ID mismatch"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="SVC_IDENTITY_MISMATCH"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Profile mismatch in header Organization"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="SVC_ORG_HEADER_PROFILE_MISMATCH"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString
                             value="Invalid Data Structure in Medication Service"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MEDICATIONSVC_NO_VALID_STRUCTURE"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Resource is not known"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_RESOURCE_ID_FAIL"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Parameter with wrong status"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MEDSVC_STATUS_INVALID"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString
                             value="MedicationStatement could not be linked to an eMP-Entry successfully"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="LINKING_NOT_SUCCESSFUL"/>
              </extension>
            </extension>
            <name value="link-emp"/>
            <definition
                        value="https://gematik.de/fhir/epa-medication/OperationDefinition/link-emp-op"/>
          </operation>
          <operation>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-header">
              <extension url="name">
                <valueString value="X-Requesting-Organization"/>
              </extension>
              <extension url="type">
                <valueString value="string"/>
              </extension>
              <extension url="description">
                <valueString
                             value="Base64 encoded FHIR Organization resource in JSON format used to identify the originator of the request"/>
              </extension>
              <extension url="format">
                <valueString value="base64(fhir+json:Organization)"/>
              </extension>
              <extension url="required">
                <valueBoolean value="true"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
              <extension url="responseType">
                <valueString value="Parameters"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="403"/>
              </extension>
              <extension url="description">
                <valueString value="ID-Token or Insurant-ID mismatch"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="SVC_IDENTITY_MISMATCH"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Profile mismatch in header Organization"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="SVC_ORG_HEADER_PROFILE_MISMATCH"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString
                             value="Invalid Data Structure in Medication Service"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MEDICATIONSVC_NO_VALID_STRUCTURE"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Resource is not known"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_RESOURCE_ID_FAIL"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="405"/>
              </extension>
              <extension url="description">
                <valueString value="Operation %s not allowed for resource %s"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_OP_NOT_ALLOWED"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString
                             value="MedicationStatement could not be unlinked from an eMP-Entry successfully"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="UNLINKING_NOT_SUCCESSFUL"/>
              </extension>
            </extension>
            <name value="unlink-emp"/>
            <definition
                        value="https://gematik.de/fhir/epa-medication/OperationDefinition/unlink-emp-op"/>
          </operation>
        </resource>
        <resource>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="SHALL"/>
          </extension>
          <type value="Organization"/>
          <supportedProfile
                            value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory">🔗
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
          </supportedProfile>
          <supportedProfile
                            value="https://gematik.de/fhir/ti/StructureDefinition/ti-organization">🔗
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
          </supportedProfile>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown search parameter"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_PARAM_UNKNOWN"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid query parameter(s)"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_SYNTAX"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <code value="search-type"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid request"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_FORMAT"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <code value="history-type"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid request"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_FORMAT"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Resource is not known"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_RESOURCE_ID_FAIL"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="410"/>
              </extension>
              <extension url="description">
                <valueString value="Resource was deleted"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
            </extension>
            <code value="read"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid request"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_FORMAT"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Resource is not known"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_RESOURCE_ID_FAIL"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="410"/>
              </extension>
              <extension url="description">
                <valueString value="Resource was deleted"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
            </extension>
            <code value="history-instance"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid request"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_FORMAT"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Resource is not known"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_RESOURCE_ID_FAIL"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="410"/>
              </extension>
              <extension url="description">
                <valueString value="Resource was deleted"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
            </extension>
            <code value="vread"/>
          </interaction>
          <versioning value="versioned-update"/>
          <readHistory value="true"/>
          <searchRevInclude value="MedicationDispense:performer"/>
          <searchRevInclude value="PractitionerRole:organization"/>
          <searchRevInclude value="MedicationRequest:requester"/>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="_id"/>
            <definition value="http://hl7.org/fhir/SearchParameter/Resource-id"/>
            <type value="token"/>
            <documentation value="Resource.id"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="_lastUpdated"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/Resource-lastUpdated"/>
            <type value="date"/>
            <documentation value="Resource.meta.lastUpdated"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="_has"/>
            <type value="string"/>
            <documentation
                           value="Return resources linked to by the given target"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="identifier"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/Organization-identifier"/>
            <type value="token"/>
            <documentation value="Organization.identifier"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="name"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/Organization-name"/>
            <type value="string"/>
            <documentation value="Organization.name | Organization.alias"/>
          </searchParam>
        </resource>
        <resource>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="SHALL"/>
          </extension>
          <type value="Practitioner"/>
          <supportedProfile
                            value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory">🔗
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
          </supportedProfile>
          <supportedProfile
                            value="https://gematik.de/fhir/ti/StructureDefinition/ti-practitioner">🔗
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
          </supportedProfile>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown search parameter"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_PARAM_UNKNOWN"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid query parameter(s)"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_SYNTAX"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <code value="search-type"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid request"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_FORMAT"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <code value="history-type"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid request"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_FORMAT"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Resource is not known"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_RESOURCE_ID_FAIL"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="410"/>
              </extension>
              <extension url="description">
                <valueString value="Resource was deleted"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
            </extension>
            <code value="read"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid request"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_FORMAT"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Resource is not known"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_RESOURCE_ID_FAIL"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="410"/>
              </extension>
              <extension url="description">
                <valueString value="Resource was deleted"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
            </extension>
            <code value="history-instance"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid request"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_FORMAT"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Resource is not known"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_RESOURCE_ID_FAIL"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="410"/>
              </extension>
              <extension url="description">
                <valueString value="Resource was deleted"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
            </extension>
            <code value="vread"/>
          </interaction>
          <versioning value="versioned-update"/>
          <readHistory value="true"/>
          <searchRevInclude value="PractitionerRole:practitioner"/>
          <searchRevInclude value="MedicationRequest:requester"/>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="_id"/>
            <definition value="http://hl7.org/fhir/SearchParameter/Resource-id"/>
            <type value="token"/>
            <documentation value="Resource.id"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="_lastUpdated"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/Resource-lastUpdated"/>
            <type value="date"/>
            <documentation value="Resource.meta.lastUpdated"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="_has"/>
            <type value="string"/>
            <documentation
                           value="Return resources linked to by the given target"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="identifier"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/Practitioner-identifier"/>
            <type value="token"/>
            <documentation value="Practitioner.identifier"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="name"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/Practitioner-name"/>
            <type value="string"/>
            <documentation value="Practitioner.name"/>
          </searchParam>
        </resource>
        <resource>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="SHALL"/>
          </extension>
          <type value="PractitionerRole"/>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown search parameter"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_PARAM_UNKNOWN"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid query parameter(s)"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_SYNTAX"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <code value="search-type"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid request"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_FORMAT"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <code value="history-type"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid request"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_FORMAT"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Resource is not known"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_RESOURCE_ID_FAIL"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="410"/>
              </extension>
              <extension url="description">
                <valueString value="Resource was deleted"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
            </extension>
            <code value="read"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid request"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_FORMAT"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Resource is not known"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_RESOURCE_ID_FAIL"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="410"/>
              </extension>
              <extension url="description">
                <valueString value="Resource was deleted"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
            </extension>
            <code value="history-instance"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid request"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_FORMAT"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Resource is not known"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_RESOURCE_ID_FAIL"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="410"/>
              </extension>
              <extension url="description">
                <valueString value="Resource was deleted"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
            </extension>
            <code value="vread"/>
          </interaction>
          <versioning value="versioned-update"/>
          <readHistory value="true"/>
          <searchInclude value="PractitionerRole:practitioner"/>
          <searchInclude value="PractitionerRole:organization"/>
          <searchRevInclude value="MedicationDispense:performer"/>
          <searchRevInclude value="MedicationRequest:requester"/>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="_id"/>
            <definition value="http://hl7.org/fhir/SearchParameter/Resource-id"/>
            <type value="token"/>
            <documentation value="Resource.id"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="_lastUpdated"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/Resource-lastUpdated"/>
            <type value="date"/>
            <documentation value="Resource.meta.lastUpdated"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="_has"/>
            <type value="string"/>
            <documentation
                           value="Return resources linked to by the given target"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="identifier"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/PractitionerRole-identifier"/>
            <type value="token"/>
            <documentation value="PractitionerRole.identifier"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="practitioner"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/PractitionerRole-practitioner"/>
            <type value="reference"/>
            <documentation value="PractitionerRole.practitioner"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="organization"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/PractitionerRole-organization"/>
            <type value="reference"/>
            <documentation value="PractitionerRole.organization"/>
          </searchParam>
        </resource>
        <resource>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="SHALL"/>
          </extension>
          <type value="Provenance"/>
          <supportedProfile
                            value="https://gematik.de/fhir/epa/StructureDefinition/epa-activity-provenance">🔗
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
          </supportedProfile>
          <supportedProfile
                            value="https://gematik.de/fhir/epa-medication/StructureDefinition/emp-chronology-provenance">🔗
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
          </supportedProfile>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown search parameter"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_PARAM_UNKNOWN"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid query parameter(s)"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_SYNTAX"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <code value="search-type"/>
          </interaction>
          <interaction>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="200"/>
              </extension>
              <extension url="description">
                <valueString value="Successful operation"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid request"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_FORMAT"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Unknown resource type"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_UNKNOWN_TYPE"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="404"/>
              </extension>
              <extension url="description">
                <valueString value="Resource is not known"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_RESOURCE_ID_FAIL"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="410"/>
              </extension>
              <extension url="description">
                <valueString value="Resource was deleted"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
            </extension>
            <extension
                       url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
              <extension url="statusCode">
                <valueString value="400"/>
              </extension>
              <extension url="description">
                <valueString value="Invalid request"/>
              </extension>
              <extension url="responseType">
                <valueString value="EPAMSOperationOutcome"/>
              </extension>
              <extension url="errorCode">
                <valueString value="MSG_BAD_FORMAT"/>
              </extension>
            </extension>
            <code value="read"/>
          </interaction>
          <versioning value="versioned-update"/>
          <readHistory value="true"/>
          <searchInclude value="Provenance:agent"/>
          <searchInclude value="Provenance:target"/>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="_id"/>
            <definition value="http://hl7.org/fhir/SearchParameter/Resource-id"/>
            <type value="token"/>
            <documentation value="Resource.id"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="_lastUpdated"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/Resource-lastUpdated"/>
            <type value="date"/>
            <documentation value="Resource.meta.lastUpdated"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="_has"/>
            <type value="string"/>
            <documentation
                           value="Return resources linked to by the given target"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="identifier"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/clinical-identifier"/>
            <type value="token"/>
            <documentation value="MedicationStatement.identifier"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="agent"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/Provenance-agent"/>
            <type value="reference"/>
            <documentation value="Who participated"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="target"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/Provenance-target"/>
            <type value="reference"/>
            <documentation value="Target References - usually version specific"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="recorded"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/Provenance-recorded"/>
            <type value="date"/>
            <documentation value="When the activity was recorded / updated"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="when"/>
            <definition
                        value="http://hl7.org/fhir/SearchParameter/Provenance-when"/>
            <type value="date"/>
            <documentation value="Provenance.occurred as dateTime"/>
          </searchParam>
          <searchParam>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
              <valueCode value="SHALL"/>
            </extension>
            <name value="is-emp-chronology"/>
            <definition
                        value="https://gematik.de/fhir/epa-medication/SearchParameter/is-emp-chronology-sp"/>
            <type value="token"/>
            <documentation value="Provenance.extension:isEMPChronology"/>
          </searchParam>
        </resource>
        <operation>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="SHALL"/>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="200"/>
            </extension>
            <extension url="description">
              <valueString value="Successful operation"/>
            </extension>
            <extension url="responseType">
              <valueString value="Parameters"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="400"/>
            </extension>
            <extension url="description">
              <valueString value="Unknown search parameter"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MSG_PARAM_UNKNOWN"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="400"/>
            </extension>
            <extension url="description">
              <valueString value="Invalid query parameter(s)"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MSG_BAD_SYNTAX"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="400"/>
            </extension>
            <extension url="description">
              <valueString value="Invalid request"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MSG_BAD_FORMAT"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="403"/>
            </extension>
            <extension url="description">
              <valueString value="ID-Token or Insurant-ID mismatch"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="SVC_IDENTITY_MISMATCH"/>
            </extension>
          </extension>
          <name value="provide-prescription-erp"/>
          <definition
                      value="https://gematik.de/fhir/epa-medication/OperationDefinition/provide-prescription-erp-OP"/>
        </operation>
        <operation>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="SHALL"/>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="200"/>
            </extension>
            <extension url="description">
              <valueString value="Successful operation"/>
            </extension>
            <extension url="responseType">
              <valueString value="Parameters"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="400"/>
            </extension>
            <extension url="description">
              <valueString value="Unknown search parameter"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MSG_PARAM_UNKNOWN"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="400"/>
            </extension>
            <extension url="description">
              <valueString value="Invalid query parameter(s)"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MSG_BAD_SYNTAX"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="400"/>
            </extension>
            <extension url="description">
              <valueString value="Invalid request"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MSG_BAD_FORMAT"/>
            </extension>
          </extension>
          <name value="cancel-prescription-erp"/>
          <definition
                      value="https://gematik.de/fhir/epa-medication/OperationDefinition/cancel-prescription-erp-OP"/>
        </operation>
        <operation>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="SHALL"/>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="200"/>
            </extension>
            <extension url="description">
              <valueString value="Successful operation"/>
            </extension>
            <extension url="responseType">
              <valueString value="Parameters"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="400"/>
            </extension>
            <extension url="description">
              <valueString value="Unknown search parameter"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MSG_PARAM_UNKNOWN"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="400"/>
            </extension>
            <extension url="description">
              <valueString value="Invalid query parameter(s)"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MSG_BAD_SYNTAX"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="400"/>
            </extension>
            <extension url="description">
              <valueString value="Invalid request"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MSG_BAD_FORMAT"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="403"/>
            </extension>
            <extension url="description">
              <valueString value="ID-Token or Insurant-ID mismatch"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="SVC_IDENTITY_MISMATCH"/>
            </extension>
          </extension>
          <name value="provide-dispensation-erp"/>
          <definition
                      value="https://gematik.de/fhir/epa-medication/OperationDefinition/provide-dispensation-erp-OP"/>
        </operation>
        <operation>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="SHALL"/>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="200"/>
            </extension>
            <extension url="description">
              <valueString value="Successful operation"/>
            </extension>
            <extension url="responseType">
              <valueString value="Parameters"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="400"/>
            </extension>
            <extension url="description">
              <valueString value="Unknown search parameter"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MSG_PARAM_UNKNOWN"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="400"/>
            </extension>
            <extension url="description">
              <valueString value="Invalid query parameter(s)"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MSG_BAD_SYNTAX"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="400"/>
            </extension>
            <extension url="description">
              <valueString value="Invalid request"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MSG_BAD_FORMAT"/>
            </extension>
          </extension>
          <name value="cancel-dispensation-erp"/>
          <definition
                      value="https://gematik.de/fhir/epa-medication/OperationDefinition/cancel-dispensation-erp-OP"/>
        </operation>
        <operation>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="SHALL"/>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="200"/>
            </extension>
            <extension url="description">
              <valueString value="Successful operation"/>
            </extension>
            <extension url="responseType">
              <valueString value="Bundle"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="400"/>
            </extension>
            <extension url="description">
              <valueString value="Unknown search parameter"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MSG_PARAM_UNKNOWN"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="400"/>
            </extension>
            <extension url="description">
              <valueString value="Invalid query parameter(s)"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MSG_BAD_SYNTAX"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="400"/>
            </extension>
            <extension url="description">
              <valueString value="Invalid request"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MSG_BAD_FORMAT"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="404"/>
            </extension>
            <extension url="description">
              <valueString value="No Resource found matching the query"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MSG_NO_MATCH"/>
            </extension>
          </extension>
          <name value="medication-list"/>
          <definition
                      value="https://gematik.de/fhir/epa-medication/OperationDefinition/get-medication-list-op"/>
        </operation>
        <operation>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="SHALL"/>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="200"/>
            </extension>
            <extension url="description">
              <valueString value="Successful operation"/>
            </extension>
            <extension url="responseType">
              <valueString value="Bundle"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="400"/>
            </extension>
            <extension url="description">
              <valueString value="Unknown search parameter"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MSG_PARAM_UNKNOWN"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="400"/>
            </extension>
            <extension url="description">
              <valueString value="Invalid query parameter(s)"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MSG_BAD_SYNTAX"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="400"/>
            </extension>
            <extension url="description">
              <valueString value="Invalid request"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MSG_BAD_FORMAT"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="404"/>
            </extension>
            <extension url="description">
              <valueString value="No Resource found matching the query"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MSG_NO_MATCH"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="404"/>
            </extension>
            <extension url="description">
              <valueString value="Resource is not known"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MSG_RESOURCE_ID_FAIL"/>
            </extension>
          </extension>
          <name value="medication-plan"/>
          <definition
                      value="https://gematik.de/fhir/epa-medication/OperationDefinition/get-medication-plan-op"/>
        </operation>
        <operation>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="SHALL"/>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="200"/>
            </extension>
            <extension url="description">
              <valueString value="Successful operation"/>
            </extension>
            <extension url="responseType">
              <valueString value="Bundle"/>
            </extension>
          </extension>
          <name value="medication-plan-log"/>
          <definition
                      value="https://gematik.de/fhir/epa-medication/OperationDefinition/medication-plan-log-op"/>
        </operation>
        <operation>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="SHALL"/>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-header">
            <extension url="name">
              <valueString value="X-Requesting-Organization"/>
            </extension>
            <extension url="type">
              <valueString value="string"/>
            </extension>
            <extension url="description">
              <valueString
                           value="Base64 encoded FHIR Organization resource in JSON format used to identify the originator of the request"/>
            </extension>
            <extension url="format">
              <valueString value="base64(fhir+json:Organization)"/>
            </extension>
            <extension url="required">
              <valueBoolean value="true"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="200"/>
            </extension>
            <extension url="description">
              <valueString value="Successful operation"/>
            </extension>
            <extension url="responseType">
              <valueString value="Parameters"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="403"/>
            </extension>
            <extension url="description">
              <valueString value="ID-Token or Insurant-ID mismatch"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="SVC_IDENTITY_MISMATCH"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="400"/>
            </extension>
            <extension url="description">
              <valueString value="Profile mismatch in header Organization"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="SVC_ORG_HEADER_PROFILE_MISMATCH"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="400"/>
            </extension>
            <extension url="description">
              <valueString value="Invalid dosage structure or content"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MEDSVC_DOSAGE_INVALID"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="400"/>
            </extension>
            <extension url="description">
              <valueString value="Invalid Data Structure in Medication Service"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MEDICATIONSVC_NO_VALID_STRUCTURE"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="400"/>
            </extension>
            <extension url="description">
              <valueString value="Parameter with wrong status"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MEDSVC_STATUS_INVALID"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="409"/>
            </extension>
            <extension url="description">
              <valueString
                           value="Mismatch between acknowledged and current eMP chronology ID"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MEDSVC_EMP_CHRONOLOGY_ID_MISMATCH"/>
            </extension>
          </extension>
          <name value="add-emp-entry"/>
          <definition
                      value="https://gematik.de/fhir/epa-medication/OperationDefinition/add-emp-entry-op"/>
        </operation>
        <operation>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="SHALL"/>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-header">
            <extension url="name">
              <valueString value="X-Requesting-Organization"/>
            </extension>
            <extension url="type">
              <valueString value="string"/>
            </extension>
            <extension url="description">
              <valueString
                           value="Base64 encoded FHIR Organization resource in JSON format used to identify the originator of the request"/>
            </extension>
            <extension url="format">
              <valueString value="base64(fhir+json:Organization)"/>
            </extension>
            <extension url="required">
              <valueBoolean value="true"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="200"/>
            </extension>
            <extension url="description">
              <valueString value="Successful operation"/>
            </extension>
            <extension url="responseType">
              <valueString value="Parameters"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="403"/>
            </extension>
            <extension url="description">
              <valueString value="ID-Token or Insurant-ID mismatch"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="SVC_IDENTITY_MISMATCH"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="400"/>
            </extension>
            <extension url="description">
              <valueString value="Profile mismatch in header Organization"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="SVC_ORG_HEADER_PROFILE_MISMATCH"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="409"/>
            </extension>
            <extension url="description">
              <valueString
                           value="Update Conflict (server current version = %s, client version referenced = %s)"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MSG_VERSION_AWARE_CONFLICT"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="404"/>
            </extension>
            <extension url="description">
              <valueString value="Resource is not known"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MSG_RESOURCE_ID_FAIL"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="400"/>
            </extension>
            <extension url="description">
              <valueString value="Invalid dosage structure or content"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MEDSVC_DOSAGE_INVALID"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="400"/>
            </extension>
            <extension url="description">
              <valueString value="Invalid Data Structure in Medication Service"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MEDICATIONSVC_NO_VALID_STRUCTURE"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="400"/>
            </extension>
            <extension url="description">
              <valueString value="Parameter with wrong status"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MEDSVC_STATUS_INVALID"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="409"/>
            </extension>
            <extension url="description">
              <valueString
                           value="Mismatch between acknowledged and current eMP chronology ID"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MEDSVC_EMP_CHRONOLOGY_ID_MISMATCH"/>
            </extension>
          </extension>
          <name value="update-emp-entry"/>
          <definition
                      value="https://gematik.de/fhir/epa-medication/OperationDefinition/update-emp-entry-op"/>
        </operation>
        <operation>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="SHALL"/>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-header">
            <extension url="name">
              <valueString value="X-Requesting-Organization"/>
            </extension>
            <extension url="type">
              <valueString value="string"/>
            </extension>
            <extension url="description">
              <valueString
                           value="Base64 encoded FHIR Organization resource in JSON format used to identify the originator of the request"/>
            </extension>
            <extension url="format">
              <valueString value="base64(fhir+json:Organization)"/>
            </extension>
            <extension url="required">
              <valueBoolean value="true"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="200"/>
            </extension>
            <extension url="description">
              <valueString value="Successful operation"/>
            </extension>
            <extension url="responseType">
              <valueString value="Bundle"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="400"/>
            </extension>
            <extension url="description">
              <valueString value="Invalid request"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MSG_BAD_FORMAT"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="409"/>
            </extension>
            <extension url="description">
              <valueString
                           value="Mismatch between acknowledged and current eMP chronology ID"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MEDSVC_EMP_CHRONOLOGY_ID_MISMATCH"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="400"/>
            </extension>
            <extension url="description">
              <valueString value="Invalid dosage structure or content"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MEDSVC_DOSAGE_INVALID"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="400"/>
            </extension>
            <extension url="description">
              <valueString value="Invalid Data Structure in Medication Service"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MEDICATIONSVC_NO_VALID_STRUCTURE"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="400"/>
            </extension>
            <extension url="description">
              <valueString value="Parameter with wrong status"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MEDSVC_STATUS_INVALID"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="409"/>
            </extension>
            <extension url="description">
              <valueString
                           value="Update Conflict (server current version = %s, client version referenced = %s)"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MSG_VERSION_AWARE_CONFLICT"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="404"/>
            </extension>
            <extension url="description">
              <valueString value="Resource is not known"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MSG_RESOURCE_ID_FAIL"/>
            </extension>
          </extension>
          <name value="batch-emp"/>
          <definition
                      value="https://gematik.de/fhir/epa-medication/OperationDefinition/batch-emp-entries-op"/>
        </operation>
        <operation>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
            <valueCode value="SHALL"/>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-header">
            <extension url="name">
              <valueString value="X-Requesting-Organization"/>
            </extension>
            <extension url="type">
              <valueString value="string"/>
            </extension>
            <extension url="description">
              <valueString
                           value="Base64 encoded FHIR Organization resource in JSON format used to identify the originator of the request"/>
            </extension>
            <extension url="format">
              <valueString value="base64(fhir+json:Organization)"/>
            </extension>
            <extension url="required">
              <valueBoolean value="true"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="200"/>
            </extension>
            <extension url="description">
              <valueString value="Successful operation"/>
            </extension>
            <extension url="responseType">
              <valueString value="Parameters"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="405"/>
            </extension>
            <extension url="description">
              <valueString
                           value="The operation can only be executed within a batch context"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MEDSVC_OPERATION_OUTSIDE_BATCH"/>
            </extension>
          </extension>
          <extension
                     url="https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info">
            <extension url="statusCode">
              <valueString value="409"/>
            </extension>
            <extension url="description">
              <valueString
                           value="Mismatch between acknowledged and current eMP chronology ID"/>
            </extension>
            <extension url="responseType">
              <valueString value="EPAMSOperationOutcome"/>
            </extension>
            <extension url="errorCode">
              <valueString value="MEDSVC_EMP_CHRONOLOGY_ID_MISMATCH"/>
            </extension>
          </extension>
          <name value="emp-commit"/>
          <definition
                      value="https://gematik.de/fhir/epa-medication/OperationDefinition/emp-commit-op"/>
        </operation>
      </rest>
    </CapabilityStatement>