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

## Operation API: Medikationsplan abrufen (eMP)

Die auf dieser Seite dargestellten Inhalte geben den Stand der Version 1.2.0-ballot.1 wieder. Rückmeldungen aus dem laufenden Kommentierungsverfahren sowie daraus resultierende fachliche oder technische Anpassungen sind in dieser Fassung noch nicht oder nur teilweise berücksichtigt.

Die Operation Medikationsplan abrufen (eMP) ermöglicht den gezielten Zugriff auf eine konsolidierte FHIR-Darstellung eines elektronischen Medikationsplans (eMP) aus dem Datenraum des Medication Service. Der zurückgegebene eMP umfasst eine Sammlung relevanter Ressourceninstanzen (z.B. MedicationRequest (eMP), MedicationStatement (eML) oder Medication (eMP)), die zu einem definierten Zeitpunkt gemeinsam gültig waren, ergänzt um die zugehörige Patient-Ressource aus dem Patient Service.

Als optionaler Eingabeparameter kann eine Provenance-ID übergeben werden (Provenance.id der EMPChronologyProvenance). Diese ID verweist auf einen eMP-Chronologieeintrag des Medikationsplans und referenziert eine spezifische Version des eMP, wie sie durch die Provenance-Instanz dokumentiert ist. Bei Angabe dieses Parameters liefert die Operation exakt den durch die angegebene Provenance beschriebenen Zustand des Medikationsplans, gegebenenfalls ergänzt durch aktuelle, zugehörige Verschreibungsdaten. Dadurch wird eine Abfrage vergangener Planstände ermöglicht.

Wird keine Provenance-ID übermittelt, gibt die Operation den aktuellen Zustand des eMP zurück – also die zur Abfragezeit gültige Kombination aus aktiven, vorgesehenen und pausierten Medikationsdaten, wie sie systemseitig als letzte Version ermittelt wurde.

Das Operationsergebnis ist ein FHIR Bundle vom Typ collection, das sämtliche zum angegebenen Stand gehörenden Ressourcen enthält.

### Nachricht

Die Nachricht zum Abruf der FHIR-Instanzen des eMP wird als HTTP GET-Anfrage an den Medication Service gesendet.

#### Auslösung

Wenn das ePA-Client-System den eMP als strukturierte FHIR-Daten abrufen möchte, sendet es eine Operation API: Medikationsplan abrufen (eMP)-Anfrage an den Medication Service. Der Medication Service verarbeitet die Anfrage und stellt den Medikationsplan zur Verfügung, damit dieser im ePA-Client-System verarbeitet werden kann.

Das ePA-FdV MUSS es dem Versicherten ermöglichen, einen ICD-10-Code eines eMP-Eintrags mit Informationen des Nationalen Gesundheitsportals [NGP] zu verknüpfen, um eine patientenverständliche Erläuterung des Codes zur Anzeige zu bringen, sodass das Feld reasonCode für den Versicherten nachvollziehbar wird. Das Primärsystem MUSS bei der Darstellung der eMP-Einträge im eMP die Einträge nach den Statuswerten aktiv (active) und pausiert (on-hold) gruppieren und den jeweiligen Status für den Benutzer eindeutig sichtbar darstellen.

#### FHIR Operation API

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

###

          {"resourceType":"OperationDefinition","id":"get-medication-plan-op","meta":{"profile":["https://gematik.de/fhir/ti/StructureDefinition/ti-operationdefinition"]},"text":{"status":"generated","div":"<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\">Generated Narrative: OperationDefinition get-medication-plan-op</p><a name=\"get-medication-plan-op\"> </a><a name=\"hcget-medication-plan-op\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"https://gematik.de/fhir/ti/1.1.1-ballot.1/StructureDefinition-ti-operationdefinition.html\">OperationDefinition Profil für TI FHIR Data Service</a></p></div>URL: [base]/$$medication-planParameters<table class=\"grid\">UseNameScopeCardinalityTypeBindingDocumentationINprovenance0..1<a href=\"http://hl7.org/fhir/R4/datatypes.html#uuid\">uuid</a>Die UUID der Provenance-Instanz, die eine bestimmte Version des elektronischen Medikationsplans (eMP) identifiziert. Diese Provenance-Instanz repräsentiert den Zustand zu einem bestimmten Zeitpunkt und bündelt die zu diesem Zeitpunkt aktiven eMP-Elemente. Wird kein provenance-Parameter angegeben, liefert die Operation den aktuellsten bekannten Zustand des eMP zurück.\nOUTreturn1..1<a href=\"http://hl7.org/fhir/R4/bundle.html\">Bundle</a>Ein Bundle vom Typ collection, das alle relevanten Ressourceninstanzen enthält, die zum angegebenen eMP-Zustand gehören. Diese Ressourcen stammen aus dem Datenraum des Medication Service und bilden gemeinsam den logischen Medikationsplan zum gewünschten Stand ab.\n</table></div>"},"extension":[{"url":"https://gematik.de/fhir/ti/StructureDefinition/extension-http-method","valueCode":"GET"}],"url":"https://gematik.de/fhir/epa-medication/OperationDefinition/get-medication-plan-op","version":"1.2.0-ballot.2","name":"getMedicationPlan_MedicationSvc","title":"Medication Plan (eMP)","status":"draft","kind":"operation","date":"2025-09-02","publisher":"gematik GmbH","contact":[{"name":"gematik GmbH","telecom":[{"system":"url","value":"https://www.gematik.de"},{"system":"email","value":"patientteam [ at ] gematik.de"}]}],"description":"Diese Operation ermöglicht den gezielten Abruf eines elektronischen Medikationsplans (eMP) aus dem Datenraum des Medication Service. Der zurückgegebene Medikationsplan besteht aus einer Sammlung relevanter Ressourceninstanzen, die zu einem bestimmten Zeitpunkt gemeinsam gültig waren, sowie die zugehörige Versicherteninformation (Patient) aus dem Patient Service. Die Operation akzeptiert optional eine Provenance-Referenz.id als Eingabeparameter. Wird diese übergeben, liefert die Operation exakt den Zustand des Medikationsplans, wie er durch diese Provenance-Version beschrieben ist. So kann auch ein vergangener Stand des eMP nachvollziehbar wiedergegeben werden. Wird keine Provenance angegeben, gibt die Operation den aktuellsten Stand des Medikationsplans zurück - also die derzeit gültige Kombination aus aktiven und pausierten Medikationsdaten. Das Ergebnis ist ein Bundle vom Typ collection, das alle zugehörigen Ressourcendaten enthält.","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"DE"}]}],"affectsState":false,"code":"medication-plan","system":true,"type":false,"instance":false,"parameter":[{"name":"provenance","use":"in","min":0,"max":"1","documentation":"Die UUID der Provenance-Instanz, die eine bestimmte Version des elektronischen Medikationsplans (eMP) identifiziert. Diese Provenance-Instanz repräsentiert den Zustand zu einem bestimmten Zeitpunkt und bündelt die zu diesem Zeitpunkt aktiven eMP-Elemente. Wird kein provenance-Parameter angegeben, liefert die Operation den aktuellsten bekannten Zustand des eMP zurück.","type":"uuid"},{"name":"return","use":"out","min":1,"max":"1","documentation":"Ein Bundle vom Typ collection, das alle relevanten Ressourceninstanzen enthält, die zum angegebenen eMP-Zustand gehören. Diese Ressourcen stammen aus dem Datenraum des Medication Service und bilden gemeinsam den logischen Medikationsplan zum gewünschten Stand ab.","type":"Bundle"}]}

    {
      "resourceType" : "Bundle",
      "id" : "example-get-medication-plan-bundle-1",
      "identifier" : {
        "system" : "urn:ietf:rfc:3986",
        "value" : "urn:uuid:6da4d89d-09f9-4c9a-9117-10c7e7948566"
      },
      "type" : "collection",
      "timestamp" : "2027-01-10T10:10:00Z",
      "entry" : [
        {
          "fullUrl" : "http://epa4all/epa/medication/api/v1/fhir/Patient/641f4cf5-e54b-406c-b8a8-1d3292fd5087",
          "resource" : {
            "resourceType" : "Patient",
            "id" : "641f4cf5-e54b-406c-b8a8-1d3292fd5087",
            "meta" : {
              "profile" : [
                🔗 "https://gematik.de/fhir/epa/StructureDefinition/epa-patient"
              ]
            },
            "identifier" : [
              {
                "system" : "http://fhir.de/sid/gkv/kvid-10",
                "value" : "X110411319"
              }
            ],
            "active" : true,
            "name" : [
              {
                "use" : "official",
                "family" : "Mustermann",
                "given" : [
                  "Max"
                ]
              }
            ],
            "gender" : "male",
            "birthDate" : "1976-02-01"
          }
        },
        {
          "fullUrl" : "http://epa4all/epa/medication/api/v1/fhir/Provenanc/63e6938b-18a3-4b0f-9423-084d53edba7b",
          "resource" : {
            "resourceType" : "Provenance",
            "id" : "63e6938b-18a3-4b0f-9423-084d53edba7b",
            "meta" : {
              "profile" : [
                🔗 "https://gematik.de/fhir/epa-medication/StructureDefinition/emp-chronology-provenance"
              ]
            },
            "extension" : [
              {
                "url" : "https://gematik.de/fhir/epa-medication/StructureDefinition/is-emp-chronology-extension",
                "valueBoolean" : true
              }
            ],
            "target" : [
              {
                "reference" : "MedicationRequest/266620a9-2c26-41c1-b0cb-a10947b867f5/_history/2"
              },
              {
                "reference" : "MedicationRequest/71b66f1b-8032-4886-b7bf-e775daee22fb/_history/1"
              }
            ],
            "occurredDateTime" : "2026-11-01T15:43:33.244Z",
            "recorded" : "2026-11-01T15:43:33.244Z",
            "activity" : {
              "coding" : [
                {
                  "system" : "http://terminology.hl7.org/CodeSystem/v3-DataOperation",
                  "code" : "UPDATE"
                }
              ]
            },
            "agent" : [
              {
                "type" : {
                  "coding" : [
                    {
                      "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
                      "code" : "author"
                    }
                  ]
                },
                "who" : {
                  🔗 "reference" : "Organization/450a9511-53e5-4af7-be36-a18444bb8dd2",
                  "identifier" : {
                    "type" : {
                      "coding" : [
                        {
                          "system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
                          "code" : "PRN"
                        }
                      ]
                    },
                    "system" : "https://gematik.de/fhir/sid/telematik-id",
                    "value" : "9-2.58.00000089"
                  },
                  "display" : "Die Hausarztpraxis"
                }
              }
            ]
          }
        },
        {
          "fullUrl" : "http://epa4all/epa/medication/api/v1/fhir/MedicationRequest/71b66f1b-8032-4886-b7bf-e775daee22fb",
          "resource" : {
            "resourceType" : "MedicationRequest",
            "id" : "71b66f1b-8032-4886-b7bf-e775daee22fb",
            "meta" : {
              "versionId" : "1",
              "lastUpdated" : "2026-12-01T14:00:00.400Z",
              "profile" : [
                🔗 "https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request"
              ]
            },
            "extension" : [
              {
                "url" : "https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension",
                "valueCode" : "EMP"
              },
              {
                "url" : "https://gematik.de/fhir/epa-medication/StructureDefinition/reason-patient-instruction-extension",
                "valueString" : "Bluthochdruck"
              },
              {
                "url" : "https://gematik.de/fhir/epa-medication/StructureDefinition/patient-note-extension",
                "valueAnnotation" : {
                  "text" : "Benazepril kann anfangs Schwindel verursachen - daher zuerst in Ruhe einnehmen und Autofahren vermeiden."
                }
              },
              {
                "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.effectiveDosePeriod",
                "valuePeriod" : {
                  "start" : "2026-12-01"
                }
              }
            ],
            "identifier" : [
              {
                "system" : "https://gematik.de/fhir/sid/emp-identifier",
                "value" : "71b66f1b-8032-4886-b7bf-e775daee22fb"
              }
            ],
            "status" : "active",
            "intent" : "plan",
            "medicationReference" : {
              🔗 "reference" : "Medication/13c66845-d0ce-43e1-9b0b-884cbbe8df7f"
            },
            "subject" : {
              "identifier" : {
                "system" : "http://fhir.de/sid/gkv/kvid-10",
                "value" : "X110411319"
              }
            },
            "authoredOn" : "2026-12-01",
            "note" : [
              {
                "text" : "Hinweis für den LE"
              }
            ],
            "dosageInstruction" : [
              {
                "extension" : [
                  {
                    "extension" : [
                      {
                        "url" : "algorithm",
                        "valueCoding" : {
                          "system" : "http://ig.fhir.de/igs/medication/CodeSystem/DosageTextAlgorithm",
                          "version" : "1.0.0",
                          "code" : "GematikDosageTextGenerator"
                        }
                      },
                      {
                        "url" : "algorithmVersion",
                        "valueString" : "1.0.0"
                      },
                      {
                        "url" : "language",
                        "valueCode" : "de-DE"
                      },
                      {
                        "url" : "text",
                        "valueString" : "2 x täglich: morgens und abends — je 1 Stück"
                      }
                    ],
                    "url" : "http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructions"
                  }
                ],
                "timing" : {
                  "repeat" : {
                    "frequency" : 2,
                    "period" : 1,
                    "periodUnit" : "d",
                    "when" : [
                      "MORN",
                      "EVE"
                    ]
                  }
                },
                "doseAndRate" : [
                  {
                    "doseQuantity" : {
                      "value" : 1,
                      "unit" : "Stück",
                      "system" : "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_BMP_DOSIEREINHEIT",
                      "code" : "1"
                    }
                  }
                ]
              }
            ]
          }
        },
        {
          "fullUrl" : "http://epa4all/epa/medication/api/v1/fhir/Medication/13c66845-d0ce-43e1-9b0b-884cbbe8df7f",
          "resource" : {
            "resourceType" : "Medication",
            "id" : "13c66845-d0ce-43e1-9b0b-884cbbe8df7f",
            "meta" : {
              "versionId" : "1",
              "lastUpdated" : "2026-12-01T14:00:00.200Z",
              "profile" : [
                🔗 "https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication"
              ]
            },
            "extension" : [
              {
                "url" : "https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension",
                "valueCode" : "EMP"
              },
              {
                "url" : "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-type-extension",
                "valueCoding" : {
                  "system" : "http://snomed.info/sct",
                  "code" : "763158003",
                  "display" : "Medicinal product (product)"
                }
              },
              {
                "url" : "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension",
                "valueCoding" : {
                  "system" : "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs",
                  "code" : "00"
                }
              },
              {
                "url" : "http://fhir.de/StructureDefinition/normgroesse",
                "valueCode" : "N3"
              },
              {
                "url" : "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension",
                "valueBoolean" : false
              }
            ],
            "identifier" : [
              {
                "system" : "https://gematik.de/fhir/epa-medication/sid/epa-medication-unique-identifier",
                "value" : "D15E4956F59A13CD3BB365799857D6FA9757C62D36DBDB9578D018CA4B6D969F"
              }
            ],
            "code" : {
              "coding" : [
                {
                  "system" : "http://fhir.de/CodeSystem/ifa/pzn",
                  "code" : "04351736",
                  "display" : "Benazepril AL 20mg 98 Filmtabletten N3"
                }
              ],
              "text" : "Benazepril AL 20mg 98 Filmtabletten N3"
            },
            "status" : "active",
            "form" : {
              "coding" : [
                {
                  "system" : "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM",
                  "code" : "FTA"
                }
              ]
            },
            "amount" : {
              "numerator" : {
                "extension" : [
                  {
                    "url" : "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-total-quantity-formulation-extension",
                    "valueString" : "98"
                  }
                ],
                "unit" : "Stück"
              },
              "denominator" : {
                "value" : 1
              }
            },
            "ingredient" : [
              {
                "itemCodeableConcept" : {
                  "coding" : [
                    {
                      "system" : "http://fhir.de/CodeSystem/ask",
                      "code" : "23413"
                    }
                  ],
                  "text" : "Benazepril hydrochlorid"
                },
                "strength" : {
                  "numerator" : {
                    "value" : 20,
                    "unit" : "mg"
                  },
                  "denominator" : {
                    "value" : 1,
                    "unit" : "Filmtbl."
                  }
                }
              }
            ]
          }
        },
        {
          "fullUrl" : "http://epa4all/epa/medication/api/v1/fhir/Provenance/8faa45dd-b2dc-4a80-8956-94aeab1db04b",
          "resource" : {
            "resourceType" : "Provenance",
            "id" : "8faa45dd-b2dc-4a80-8956-94aeab1db04b",
            "meta" : {
              "profile" : [
                🔗 "https://gematik.de/fhir/epa/StructureDefinition/epa-activity-provenance"
              ]
            },
            "target" : [
              {
                "reference" : "MedicationRequest/71b66f1b-8032-4886-b7bf-e775daee22fb/_history/1"
              }
            ],
            "recorded" : "2026-12-01T14:00:00.600Z",
            "activity" : {
              "coding" : [
                {
                  "system" : "http://terminology.hl7.org/CodeSystem/v3-DataOperation",
                  "code" : "CREATE"
                }
              ]
            },
            "agent" : [
              {
                "type" : {
                  "coding" : [
                    {
                      "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
                      "code" : "author"
                    }
                  ]
                },
                "who" : {
                  🔗 "reference" : "Organization/450a9511-53e5-4af7-be36-a18444bb8dd2",
                  "identifier" : {
                    "type" : {
                      "coding" : [
                        {
                          "system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
                          "code" : "PRN"
                        }
                      ]
                    },
                    "system" : "https://gematik.de/fhir/sid/telematik-id",
                    "value" : "9-2.58.00000089"
                  },
                  "display" : "Die Hausarztpraxis"
                }
              }
            ]
          }
        },
        {
          "fullUrl" : "http://epa4all/epa/medication/api/v1/fhir/MedicationRequest/266620a9-2c26-41c1-b0cb-a10947b867f5",
          "resource" : {
            "resourceType" : "MedicationRequest",
            "id" : "266620a9-2c26-41c1-b0cb-a10947b867f5",
            "meta" : {
              "versionId" : "2",
              "lastUpdated" : "2026-11-01T15:43:33.244Z",
              "profile" : [
                🔗 "https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request"
              ]
            },
            "extension" : [
              {
                "url" : "https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension",
                "valueCode" : "EMP"
              },
              {
                "url" : "https://gematik.de/fhir/epa-medication/StructureDefinition/reason-patient-instruction-extension",
                "valueString" : "akuten Behandlung von Migräneanfällen mit und ohne Aura"
              },
              {
                "url" : "https://gematik.de/fhir/epa-medication/StructureDefinition/patient-note-extension",
                "valueAnnotation" : {
                  "text" : "Bitte schützen Sie das Arzneimittel vor hohen Temperaturen und direkter Sonneneinstrahlung."
                }
              },
              {
                "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.effectiveDosePeriod",
                "valuePeriod" : {
                  "start" : "2027-02-01"
                }
              },
              {
                "url" : "https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medicationrequest-activity-extension",
                "valueReference" : {
                  🔗 "reference" : "MedicationStatement/f29f1d0c-be05-4b0d-a335-3e508da39c0c"
                }
              }
            ],
            "identifier" : [
              {
                "system" : "https://gematik.de/fhir/sid/emp-identifier",
                "value" : "266620a9-2c26-41c1-b0cb-a10947b867f5"
              }
            ],
            "status" : "active",
            "intent" : "plan",
            "medicationReference" : {
              🔗 "reference" : "Medication/87f08ba2-da7e-467e-86aa-404d9035297c"
            },
            "subject" : {
              "identifier" : {
                "system" : "http://fhir.de/sid/gkv/kvid-10",
                "value" : "X110411319"
              }
            },
            "authoredOn" : "2026-11-01",
            "note" : [
              {
                "text" : "Hinweis für den LE"
              }
            ],
            "dosageInstruction" : [
              {
                "extension" : [
                  {
                    "extension" : [
                      {
                        "url" : "algorithm",
                        "valueCoding" : {
                          "system" : "http://ig.fhir.de/igs/medication/CodeSystem/DosageTextAlgorithm",
                          "version" : "1.0.0",
                          "code" : "GematikDosageTextGenerator"
                        }
                      },
                      {
                        "url" : "algorithmVersion",
                        "valueString" : "1.0.0"
                      },
                      {
                        "url" : "language",
                        "valueCode" : "de-DE"
                      },
                      {
                        "url" : "text",
                        "valueString" : "täglich: morgens — je 1 Stück"
                      }
                    ],
                    "url" : "http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructions"
                  }
                ],
                "timing" : {
                  "repeat" : {
                    "frequency" : 1,
                    "period" : 1,
                    "periodUnit" : "d",
                    "when" : [
                      "MORN"
                    ]
                  }
                },
                "doseAndRate" : [
                  {
                    "doseQuantity" : {
                      "value" : 1,
                      "unit" : "Stück",
                      "system" : "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_BMP_DOSIEREINHEIT",
                      "code" : "1"
                    }
                  }
                ]
              }
            ]
          }
        },
        {
          "fullUrl" : "http://epa4all/epa/medication/api/v1/fhir/Medication/87f08ba2-da7e-467e-86aa-404d9035297c",
          "resource" : {
            "resourceType" : "Medication",
            "id" : "87f08ba2-da7e-467e-86aa-404d9035297c",
            "meta" : {
              "versionId" : "1",
              "lastUpdated" : "2026-11-01T14:00:00.200Z",
              "profile" : [
                🔗 "https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication"
              ]
            },
            "extension" : [
              {
                "url" : "https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension",
                "valueCode" : "EMP"
              },
              {
                "url" : "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-type-extension",
                "valueCoding" : {
                  "system" : "http://snomed.info/sct",
                  "code" : "781405001",
                  "display" : "Medicinal product package (product)"
                }
              },
              {
                "url" : "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension",
                "valueCoding" : {
                  "system" : "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs",
                  "code" : "00"
                }
              },
              {
                "url" : "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension",
                "valueBoolean" : false
              },
              {
                "url" : "http://fhir.de/StructureDefinition/normgroesse",
                "valueCode" : "N1"
              }
            ],
            "identifier" : [
              {
                "system" : "https://gematik.de/fhir/epa-medication/sid/epa-medication-unique-identifier",
                "value" : "5CA9B89A31D81FFF6869E6A93B192C03C7F715FC4A568FB060630DD639F94EF1"
              }
            ],
            "code" : {
              "coding" : [
                {
                  "system" : "http://fhir.de/CodeSystem/ifa/pzn",
                  "code" : "06313728"
                }
              ],
              "text" : "Sumatriptan-1a Pharma 100 mg Tabletten"
            },
            "status" : "active",
            "form" : {
              "coding" : [
                {
                  "system" : "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM",
                  "code" : "TAB",
                  "display" : "Tabletten"
                }
              ]
            },
            "amount" : {
              "numerator" : {
                "extension" : [
                  {
                    "url" : "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-total-quantity-formulation-extension",
                    "valueString" : "20 St."
                  }
                ],
                "value" : 20,
                "unit" : "St"
              },
              "denominator" : {
                "value" : 1
              }
            }
          }
        },
        {
          "fullUrl" : "http://epa4all/epa/medication/api/v1/fhir/Provenance/9090b28c-e165-4823-b82b-15bb63012123",
          "resource" : {
            "resourceType" : "Provenance",
            "id" : "9090b28c-e165-4823-b82b-15bb63012123",
            "meta" : {
              "profile" : [
                🔗 "https://gematik.de/fhir/epa/StructureDefinition/epa-activity-provenance"
              ]
            },
            "target" : [
              {
                "reference" : "MedicationRequest/266620a9-2c26-41c1-b0cb-a10947b867f5/_history/1"
              }
            ],
            "recorded" : "2026-11-01T15:43:33.244Z",
            "activity" : {
              "coding" : [
                {
                  "system" : "http://terminology.hl7.org/CodeSystem/v3-DataOperation",
                  "code" : "UPDATE"
                }
              ]
            },
            "agent" : [
              {
                "type" : {
                  "coding" : [
                    {
                      "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
                      "code" : "author"
                    }
                  ]
                },
                "who" : {
                  🔗 "reference" : "Organization/450a9511-53e5-4af7-be36-a18444bb8dd2",
                  "identifier" : {
                    "type" : {
                      "coding" : [
                        {
                          "system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
                          "code" : "PRN"
                        }
                      ]
                    },
                    "system" : "https://gematik.de/fhir/sid/telematik-id",
                    "value" : "9-2.58.00000089"
                  },
                  "display" : "Die Hausarztpraxis"
                }
              }
            ]
          }
        },
        {
          "fullUrl" : "http://epa4all/epa/medication/api/v1/fhir/MedicationStatement/f29f1d0c-be05-4b0d-a335-3e508da39c0c",
          "resource" : {
            "resourceType" : "MedicationStatement",
            "id" : "f29f1d0c-be05-4b0d-a335-3e508da39c0c",
            "meta" : {
              "versionId" : "2",
              "lastUpdated" : "2026-11-01T15:43:33.244Z",
              "profile" : [
                🔗 "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement"
              ]
            },
            "extension" : [
              {
                "url" : "https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension",
                "valueIdentifier" : {
                  "system" : "https://gematik.de/fhir/epa-medication/sid/rx-prescription-process-identifier",
                  "value" : "160.100.000.000.007.24_20261101"
                }
              },
              {
                "url" : "https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension",
                "valueCode" : "PRESCRIPTION"
              }
            ],
            "basedOn" : [
              {
                🔗 "extension" : [
                  {
                    "url" : "https://gematik.de/fhir/epa-medication/StructureDefinition/is-emp-extension",
                    "valueBoolean" : true
                  }
                ],
                "reference" : "MedicationRequest/266620a9-2c26-41c1-b0cb-a10947b867f5"
              }
            ],
            "status" : "unknown",
            "medicationReference" : {
              🔗 "reference" : "Medication/fc7b28e8-05ac-4ac8-86d7-7677d9c6134e"
            },
            "subject" : {
              "identifier" : {
                "system" : "http://fhir.de/sid/gkv/kvid-10",
                "value" : "X110411319"
              }
            },
            "effectivePeriod" : {
              "start" : "2025-11-01"
            },
            "dateAsserted" : "2026-11-01",
            "derivedFrom" : [
              {
                🔗 "reference" : "MedicationRequest/4dd6f19d-002c-44ac-ae2f-3c9d08ad35b8"
              },
              {
                🔗 "reference" : "MedicationDispense/fa0c29e1-c4e7-4f08-91ab-598a2233867c"
              }
            ],
            "dosage" : [
              {
                "extension" : [
                  {
                    "extension" : [
                      {
                        "url" : "algorithm",
                        "valueCoding" : {
                          "system" : "http://ig.fhir.de/igs/medication/CodeSystem/DosageTextAlgorithm",
                          "version" : "1.0.0",
                          "code" : "GematikDosageTextGenerator"
                        }
                      },
                      {
                        "url" : "algorithmVersion",
                        "valueString" : "1.0.0"
                      },
                      {
                        "url" : "language",
                        "valueCode" : "de-DE"
                      },
                      {
                        "url" : "text",
                        "valueString" : "täglich: morgens — je 1 Stück"
                      }
                    ],
                    "url" : "http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructions"
                  }
                ],
                "timing" : {
                  "repeat" : {
                    "frequency" : 1,
                    "period" : 1,
                    "periodUnit" : "d",
                    "when" : [
                      "MORN"
                    ]
                  }
                },
                "doseAndRate" : [
                  {
                    "doseQuantity" : {
                      "value" : 1,
                      "unit" : "Stück",
                      "system" : "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_BMP_DOSIEREINHEIT",
                      "code" : "1"
                    }
                  }
                ]
              }
            ]
          }
        },
        {
          "fullUrl" : "http://epa4all/epa/medication/api/v1/fhir/Provenance/176eec9c-8d5a-46a7-96e3-7af3f68c49ed",
          "resource" : {
            "resourceType" : "Provenance",
            "id" : "176eec9c-8d5a-46a7-96e3-7af3f68c49ed",
            "meta" : {
              "profile" : [
                🔗 "https://gematik.de/fhir/epa/StructureDefinition/epa-activity-provenance"
              ]
            },
            "target" : [
              {
                "reference" : "MedicationStatement/f29f1d0c-be05-4b0d-a335-3e508da39c0c/_history/2"
              }
            ],
            "recorded" : "2026-11-01T15:43:33.244Z",
            "activity" : {
              "coding" : [
                {
                  "system" : "http://terminology.hl7.org/CodeSystem/v3-DataOperation",
                  "code" : "UPDATE"
                }
              ]
            },
            "agent" : [
              {
                "type" : {
                  "coding" : [
                    {
                      "system" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
                      "code" : "author"
                    }
                  ]
                },
                "who" : {
                  "display" : "MEDSVC"
                }
              }
            ]
          }
        },
        {
          "fullUrl" : "http://epa4all/epa/medication/api/v1/fhir/Medication/fc7b28e8-05ac-4ac8-86d7-7677d9c6134e",
          "resource" : {
            "resourceType" : "Medication",
            "id" : "fc7b28e8-05ac-4ac8-86d7-7677d9c6134e",
            "meta" : {
              "versionId" : "2",
              "lastUpdated" : "2026-11-01T14:43:33.244Z",
              "profile" : [
                🔗 "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"
              ]
            },
            "extension" : [
              {
                "url" : "https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension",
                "valueIdentifier" : {
                  "system" : "https://gematik.de/fhir/epa-medication/sid/rx-prescription-process-identifier",
                  "value" : "160.100.000.000.007.24_20261101"
                }
              },
              {
                "url" : "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-type-extension",
                "valueCoding" : {
                  "system" : "http://snomed.info/sct",
                  "code" : "781405001",
                  "display" : "Medicinal product package (product)"
                }
              },
              {
                "url" : "https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension",
                "valueCoding" : {
                  "system" : "https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs",
                  "code" : "00"
                }
              },
              {
                "url" : "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension",
                "valueBoolean" : false
              },
              {
                "url" : "http://fhir.de/StructureDefinition/normgroesse",
                "valueCode" : "N1"
              }
            ],
            "identifier" : [
              {
                "system" : "https://gematik.de/fhir/epa-medication/sid/epa-medication-unique-identifier",
                "value" : "5CA9B89A31D81FFF6869E6A93B192C03C7F715FC4A568FB060630DD639F94EF1"
              },
              {
                "system" : "https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier",
                "value" : "a3197c39-d03c-45fa-bcb7-b32578143c56_160.100.000.000.007.24"
              }
            ],
            "code" : {
              "coding" : [
                {
                  "system" : "http://fhir.de/CodeSystem/ifa/pzn",
                  "code" : "06313728"
                }
              ],
              "text" : "Sumatriptan-1a Pharma 100 mg Tabletten"
            },
            "status" : "active",
            "form" : {
              "coding" : [
                {
                  "system" : "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM",
                  "code" : "TAB",
                  "display" : "Tabletten"
                }
              ]
            },
            "amount" : {
              "numerator" : {
                "extension" : [
                  {
                    "url" : "https://gematik.de/fhir/epa-medication/StructureDefinition/medication-total-quantity-formulation-extension",
                    "valueString" : "20 St."
                  }
                ],
                "value" : 20,
                "unit" : "St"
              },
              "denominator" : {
                "value" : 1
              }
            }
          }
        },
        {
          "fullUrl" : "http://epa4all/epa/medication/api/v1/fhir/MedicationRequest/4dd6f19d-002c-44ac-ae2f-3c9d08ad35b8",
          "resource" : {
            "resourceType" : "MedicationRequest",
            "id" : "4dd6f19d-002c-44ac-ae2f-3c9d08ad35b8",
            "meta" : {
              "versionId" : "2",
              "lastUpdated" : "2026-11-01T14:43:33.244Z",
              "profile" : [
                🔗 "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"
              ]
            },
            "extension" : [
              {
                "extension" : [
                  {
                    "url" : "indicator",
                    "valueBoolean" : false
                  }
                ],
                "url" : "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"
              }
            ],
            "identifier" : [
              {
                "system" : "https://gematik.de/fhir/epa-medication/sid/rx-prescription-process-identifier",
                "value" : "160.100.000.000.007.24_20250425"
              },
              {
                "system" : "https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier",
                "value" : "5f4bc41c-480e-4ee4-b58e-a99268c1a1d0_160.100.000.000.007.24"
              }
            ],
            "status" : "active",
            "intent" : "filler-order",
            "medicationReference" : {
              🔗 "reference" : "Medication/fc7b28e8-05ac-4ac8-86d7-7677d9c6134e"
            },
            "subject" : {
              "identifier" : {
                "system" : "http://fhir.de/sid/gkv/kvid-10",
                "value" : "X110411319"
              }
            },
            "authoredOn" : "2026-11-01",
            "requester" : {
              🔗 "reference" : "PractitionerRole/b9eb9668-b61e-43b5-b3ea-485234836d59"
            },
            "basedOn" : [
              {
                "identifier" : {
                  "system" : "https://gematik.de/fhir/sid/emp-identifier",
                  "value" : "4dd6f19d-002c-44ac-ae2f-3c9d08ad35b8"
                }
              }
            ],
            "dosageInstruction" : [
              {
                "extension" : [
                  {
                    "extension" : [
                      {
                        "url" : "algorithm",
                        "valueCoding" : {
                          "system" : "http://ig.fhir.de/igs/medication/CodeSystem/DosageTextAlgorithm",
                          "version" : "1.0.0",
                          "code" : "GematikDosageTextGenerator"
                        }
                      },
                      {
                        "url" : "algorithmVersion",
                        "valueString" : "1.0.0"
                      },
                      {
                        "url" : "language",
                        "valueCode" : "de-DE"
                      },
                      {
                        "url" : "text",
                        "valueString" : "täglich: morgens — je 1 Stück"
                      }
                    ],
                    "url" : "http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructions"
                  }
                ],
                "timing" : {
                  "repeat" : {
                    "frequency" : 1,
                    "period" : 1,
                    "periodUnit" : "d",
                    "when" : [
                      "MORN"
                    ]
                  }
                },
                "doseAndRate" : [
                  {
                    "doseQuantity" : {
                      "value" : 1,
                      "unit" : "Stück",
                      "system" : "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_BMP_DOSIEREINHEIT",
                      "code" : "1"
                    }
                  }
                ]
              }
            ],
            "dispenseRequest" : {
              "quantity" : {
                "value" : 1,
                "system" : "http://unitsofmeasure.org",
                "code" : "{Package}"
              }
            },
            "substitution" : {
              "allowedBoolean" : true
            }
          }
        },
        {
          "fullUrl" : "http://epa4all/epa/medication/api/v1/fhir/MedicationDispense/fa0c29e1-c4e7-4f08-91ab-598a2233867c",
          "resource" : {
            "resourceType" : "MedicationDispense",
            "id" : "fa0c29e1-c4e7-4f08-91ab-598a2233867c",
            "meta" : {
              "versionId" : "1",
              "lastUpdated" : "2026-11-01T15:43:33.244Z",
              "profile" : [
                🔗 "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"
              ]
            },
            "extension" : [
              {
                "url" : "https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension",
                "valueIdentifier" : {
                  "system" : "https://gematik.de/fhir/epa-medication/sid/rx-prescription-process-identifier",
                  "value" : "160.100.000.000.007.24_20261101"
                }
              }
            ],
            "identifier" : [
              {
                "system" : "https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier",
                "value" : "1da91bd3-d5cb-459b-a270-32fad7d5d5d5_160.100.000.000.007.24"
              }
            ],
            "status" : "completed",
            "medicationReference" : {
              🔗 "reference" : "Medication/fc7b28e8-05ac-4ac8-86d7-7677d9c6134e"
            },
            "subject" : {
              "identifier" : {
                "system" : "http://fhir.de/sid/gkv/kvid-10",
                "value" : "X110411319"
              }
            },
            "performer" : [
              {
                "actor" : {
                  🔗 "reference" : "Organization/151f1697-7512-4e21-9466-1b75207475d8",
                  "identifier" : {
                    "type" : {
                      "coding" : [
                        {
                          "system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
                          "version" : "2.9.0",
                          "code" : "PRN",
                          "display" : "Provider number"
                        }
                      ]
                    },
                    "system" : "https://gematik.de/fhir/sid/telematik-id",
                    "value" : "9-2.58.00000023"
                  },
                  "display" : "gematik Apotheke"
                }
              }
            ],
            "authorizingPrescription" : [
              {
                🔗 "reference" : "MedicationRequest/4dd6f19d-002c-44ac-ae2f-3c9d08ad35b8"
              }
            ],
            "whenHandedOver" : "2026-11-01",
            "substitution" : {
              "wasSubstituted" : false
            }
          }
        },
        {
          "fullUrl" : "http://epa4all/epa/medication/api/v1/fhir/PractitionerRole/b9eb9668-b61e-43b5-b3ea-485234836d59",
          "resource" : {
            "resourceType" : "PractitionerRole",
            "id" : "b9eb9668-b61e-43b5-b3ea-485234836d59",
            "practitioner" : {
              🔗 "reference" : "Practitioner/498c345f-31f5-4da6-9f04-00fa2bc8af7c",
              "identifier" : {
                "type" : {
                  "coding" : [
                    {
                      "system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
                      "version" : "2.9.0",
                      "code" : "PRN",
                      "display" : "Provider number"
                    }
                  ]
                },
                "system" : "https://gematik.de/fhir/sid/telematik-id",
                "value" : "1-1.58.00000056"
              },
              "display" : "Dr. Max Manfred Mustermann"
            },
            "organization" : {
              🔗 "reference" : "Organization/450a9511-53e5-4af7-be36-a18444bb8dd2",
              "identifier" : {
                "type" : {
                  "coding" : [
                    {
                      "system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
                      "version" : "2.9.0",
                      "code" : "PRN",
                      "display" : "Provider number"
                    }
                  ]
                },
                "system" : "https://gematik.de/fhir/sid/telematik-id",
                "value" : "9-2.58.00000089"
              },
              "display" : "Die Hausarztpraxis"
            }
          }
        },
        {
          "fullUrl" : "http://epa4all/epa/medication/api/v1/fhir/Organization/450a9511-53e5-4af7-be36-a18444bb8dd2",
          "resource" : {
            "resourceType" : "Organization",
            "id" : "450a9511-53e5-4af7-be36-a18444bb8dd2",
            "meta" : {
              "profile" : [
                🔗 "https://gematik.de/fhir/ti/StructureDefinition/ti-organization"
              ]
            },
            "identifier" : [
              {
                "system" : "https://gematik.de/fhir/sid/telematik-id",
                "value" : "9-2.58.00000089"
              },
              {
                "system" : "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR",
                "value" : "721111100"
              }
            ],
            "active" : true,
            "type" : [
              {
                "coding" : [
                  {
                    "system" : "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID",
                    "code" : "1.2.276.0.76.4.50",
                    "display" : "Betriebsstätte Arzt"
                  }
                ]
              }
            ],
            "name" : "Die Hausarztpraxis",
            "address" : [
              {
                "text" : "Friedrichstr. 136,\n10117 Berlin",
                "line" : [
                  "Friedrichstr. 136"
                ],
                "city" : "Berlin",
                "district" : "Mitte",
                "state" : "Berlin",
                "postalCode" : "10117",
                "country" : "DE"
              }
            ],
            "contact" : [
              {
                "telecom" : [
                  {
                    "system" : "phone",
                    "value" : "0301234567"
                  },
                  {
                    "system" : "fax",
                    "value" : "030123456789"
                  },
                  {
                    "system" : "email",
                    "value" : "hausarztpraxis@example.com"
                  }
                ]
              }
            ]
          }
        },
        {
          "fullUrl" : "http://epa4all/epa/medication/api/v1/fhir/Practitioner/498c345f-31f5-4da6-9f04-00fa2bc8af7c",
          "resource" : {
            "resourceType" : "Practitioner",
            "id" : "498c345f-31f5-4da6-9f04-00fa2bc8af7c",
            "meta" : {
              "profile" : [
                🔗 "https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"
              ],
              "tag" : [
                {
                  "system" : "https://gematik.de/fhir/directory/CodeSystem/Origin",
                  "code" : "ldap"
                }
              ]
            },
            "identifier" : [
              {
                "system" : "https://gematik.de/fhir/sid/telematik-id",
                "value" : "1-1.58.00000056"
              },
              {
                "system" : "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR",
                "value" : "123456789"
              }
            ],
            "active" : true,
            "name" : [
              {
                "text" : "Dr. Max Manfred Mustermann",
                "family" : "Musterman",
                "given" : [
                  "Max",
                  "Manfred"
                ],
                "prefix" : [
                  "Dr."
                ]
              }
            ]
          }
        },
        {
          "fullUrl" : "http://epa4all/epa/medication/api/v1/fhir/Organization/151f1697-7512-4e21-9466-1b75207475d8",
          "resource" : {
            "resourceType" : "Organization",
            "id" : "151f1697-7512-4e21-9466-1b75207475d8",
            "meta" : {
              "profile" : [
                🔗 "https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"
              ],
              "tag" : [
                {
                  "system" : "https://gematik.de/fhir/directory/CodeSystem/Origin",
                  "code" : "ldap"
                }
              ]
            },
            "identifier" : [
              {
                "system" : "https://gematik.de/fhir/sid/telematik-id",
                "value" : "9-2.58.00000023"
              }
            ],
            "active" : true,
            "type" : [
              {
                "coding" : [
                  {
                    "system" : "https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID",
                    "code" : "1.2.276.0.76.4.54",
                    "display" : "Öffentliche Apotheke"
                  }
                ]
              }
            ],
            "name" : "gematik Apotheke",
            "alias" : [
              "Apotheke"
            ],
            "address" : [
              {
                "text" : "gematik Apotheke\nFriedrichstr. 136,\n10117 Berlin",
                "line" : [
                  "Friedrichstr. 136"
                ],
                "city" : "Berlin",
                "district" : "Mitte",
                "state" : "Berlin",
                "postalCode" : "10117",
                "country" : "DE"
              }
            ],
            "contact" : [
              {
                "purpose" : {
                  "coding" : [
                    {
                      "system" : "http://terminology.hl7.org/CodeSystem/contactentity-type",
                      "code" : "ADMIN"
                    }
                  ]
                },
                "name" : {
                  "text" : "gematik ITSM"
                },
                "telecom" : [
                  {
                    "system" : "email",
                    "value" : "betrieb@gematik.de"
                  }
                ]
              }
            ]
          }
        }
      ]
    }

    <Bundle xmlns="http://hl7.org/fhir">
      <id value="example-get-medication-plan-bundle-1"/>
      <identifier>
        <system value="urn:ietf:rfc:3986"/>
        <value value="urn:uuid:6da4d89d-09f9-4c9a-9117-10c7e7948566"/>
      </identifier>
      <type value="collection"/>
      <timestamp value="2027-01-10T10:10:00Z"/>
      <entry>
        <fullUrl
                 value="http://epa4all/epa/medication/api/v1/fhir/Patient/641f4cf5-e54b-406c-b8a8-1d3292fd5087"/>
        <resource>
          <Patient>
            <id value="641f4cf5-e54b-406c-b8a8-1d3292fd5087"/>
            <meta>
              <profile
                       value="https://gematik.de/fhir/epa/StructureDefinition/epa-patient"/>
            </meta>
            <identifier>
              <system value="http://fhir.de/sid/gkv/kvid-10"/>
              <value value="X110411319"/>
            </identifier>
            <active value="true"/>
            <name>
              <use value="official"/>
              <family value="Mustermann"/>
              <given value="Max"/>
            </name>
            <gender value="male"/>
            <birthDate value="1976-02-01"/>
          </Patient>
        </resource>
      </entry>
      <entry>
        <fullUrl
                 value="http://epa4all/epa/medication/api/v1/fhir/Provenanc/63e6938b-18a3-4b0f-9423-084d53edba7b"/>
        <resource>
          <Provenance>
            <id value="63e6938b-18a3-4b0f-9423-084d53edba7b"/>
            <meta>
              <profile
                       value="https://gematik.de/fhir/epa-medication/StructureDefinition/emp-chronology-provenance"/>
            </meta>
            <extension
                       url="https://gematik.de/fhir/epa-medication/StructureDefinition/is-emp-chronology-extension">
              <valueBoolean value="true"/>
            </extension>
            <target>
              <reference
                         value="MedicationRequest/266620a9-2c26-41c1-b0cb-a10947b867f5/_history/2"/>
            </target>
            <target>
              <reference
                         value="MedicationRequest/71b66f1b-8032-4886-b7bf-e775daee22fb/_history/1"/>
            </target>
            <occurredDateTime value="2026-11-01T15:43:33.244Z"/>
            <recorded value="2026-11-01T15:43:33.244Z"/>
            <activity>
              <coding>
                <system
                        value="http://terminology.hl7.org/CodeSystem/v3-DataOperation"/>
                <code value="UPDATE"/>
              </coding>
            </activity>
            <agent>
              <type>
                <coding>
                  <system
                          value="http://terminology.hl7.org/CodeSystem/provenance-participant-type"/>
                  <code value="author"/>
                </coding>
              </type>
              <who>🔗
                <reference
                           value="Organization/450a9511-53e5-4af7-be36-a18444bb8dd2"/>
                <identifier>
                  <type>
                    <coding>
                      <system
                              value="http://terminology.hl7.org/CodeSystem/v2-0203"/>
                      <code value="PRN"/>
                    </coding>
                  </type>
                  <system value="https://gematik.de/fhir/sid/telematik-id"/>
                  <value value="9-2.58.00000089"/>
                </identifier>
                <display value="Die Hausarztpraxis"/>
              </who>
            </agent>
          </Provenance>
        </resource>
      </entry>
      <entry>
        <fullUrl
                 value="http://epa4all/epa/medication/api/v1/fhir/MedicationRequest/71b66f1b-8032-4886-b7bf-e775daee22fb"/>
        <resource>
          <MedicationRequest>
            <id value="71b66f1b-8032-4886-b7bf-e775daee22fb"/>
            <meta>
              <versionId value="1"/>
              <lastUpdated value="2026-12-01T14:00:00.400Z"/>
              <profile
                       value="https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request"/>
            </meta>
            <extension
                       url="https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension">
              <valueCode value="EMP"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/epa-medication/StructureDefinition/reason-patient-instruction-extension">
              <valueString value="Bluthochdruck"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/epa-medication/StructureDefinition/patient-note-extension">
              <valueAnnotation>
                <text
                      value="Benazepril kann anfangs Schwindel verursachen - daher zuerst in Ruhe einnehmen und Autofahren vermeiden."/>
              </valueAnnotation>
            </extension>
            <extension
                       url="http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.effectiveDosePeriod">
              <valuePeriod>
                <start value="2026-12-01"/>
              </valuePeriod>
            </extension>
            <identifier>
              <system value="https://gematik.de/fhir/sid/emp-identifier"/>
              <value value="71b66f1b-8032-4886-b7bf-e775daee22fb"/>
            </identifier>
            <status value="active"/>
            <intent value="plan"/>
            <medicationReference>🔗
              <reference value="Medication/13c66845-d0ce-43e1-9b0b-884cbbe8df7f"/>
            </medicationReference>
            <subject>
              <identifier>
                <system value="http://fhir.de/sid/gkv/kvid-10"/>
                <value value="X110411319"/>
              </identifier>
            </subject>
            <authoredOn value="2026-12-01"/>
            <note>
              <text value="Hinweis für den LE"/>
            </note>
            <dosageInstruction>
              <extension
                         url="http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructions">
                <extension url="algorithm">
                  <valueCoding>
                    <system
                            value="http://ig.fhir.de/igs/medication/CodeSystem/DosageTextAlgorithm"/>
                    <version value="1.0.0"/>
                    <code value="GematikDosageTextGenerator"/>
                  </valueCoding>
                </extension>
                <extension url="algorithmVersion">
                  <valueString value="1.0.0"/>
                </extension>
                <extension url="language">
                  <valueCode value="de-DE"/>
                </extension>
                <extension url="text">
                  <valueString
                               value="2 x täglich: morgens und abends — je 1 Stück"/>
                </extension>
              </extension>
              <timing>
                <repeat>
                  <frequency value="2"/>
                  <period value="1"/>
                  <periodUnit value="d"/>
                  <when value="MORN"/>
                  <when value="EVE"/>
                </repeat>
              </timing>
              <doseAndRate>
                <doseQuantity>
                  <value value="1"/>
                  <unit value="Stück"/>
                  <system
                          value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_BMP_DOSIEREINHEIT"/>
                  <code value="1"/>
                </doseQuantity>
              </doseAndRate>
            </dosageInstruction>
          </MedicationRequest>
        </resource>
      </entry>
      <entry>
        <fullUrl
                 value="http://epa4all/epa/medication/api/v1/fhir/Medication/13c66845-d0ce-43e1-9b0b-884cbbe8df7f"/>
        <resource>
          <Medication>
            <id value="13c66845-d0ce-43e1-9b0b-884cbbe8df7f"/>
            <meta>
              <versionId value="1"/>
              <lastUpdated value="2026-12-01T14:00:00.200Z"/>
              <profile
                       value="https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication"/>
            </meta>
            <extension
                       url="https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension">
              <valueCode value="EMP"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-type-extension">
              <valueCoding>
                <system value="http://snomed.info/sct"/>
                <code value="763158003"/>
                <display value="Medicinal product (product)"/>
              </valueCoding>
            </extension>
            <extension
                       url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension">
              <valueCoding>
                <system
                        value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/>
                <code value="00"/>
              </valueCoding>
            </extension>
            <extension url="http://fhir.de/StructureDefinition/normgroesse">
              <valueCode value="N3"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension">
              <valueBoolean value="false"/>
            </extension>
            <identifier>
              <system
                      value="https://gematik.de/fhir/epa-medication/sid/epa-medication-unique-identifier"/>
              <value
                     value="D15E4956F59A13CD3BB365799857D6FA9757C62D36DBDB9578D018CA4B6D969F"/>
            </identifier>
            <code>
              <coding>
                <system value="http://fhir.de/CodeSystem/ifa/pzn"/>
                <code value="04351736"/>
                <display value="Benazepril AL 20mg 98 Filmtabletten N3"/>
              </coding>
              <text value="Benazepril AL 20mg 98 Filmtabletten N3"/>
            </code>
            <status value="active"/>
            <form>
              <coding>
                <system
                        value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/>
                <code value="FTA"/>
              </coding>
            </form>
            <amount>
              <numerator>
                <extension
                           url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-total-quantity-formulation-extension">
                  <valueString value="98"/>
                </extension>
                <unit value="Stück"/>
              </numerator>
              <denominator>
                <value value="1"/>
              </denominator>
            </amount>
            <ingredient>
              <itemCodeableConcept>
                <coding>
                  <system value="http://fhir.de/CodeSystem/ask"/>
                  <code value="23413"/>
                </coding>
                <text value="Benazepril hydrochlorid"/>
              </itemCodeableConcept>
              <strength>
                <numerator>
                  <value value="20"/>
                  <unit value="mg"/>
                </numerator>
                <denominator>
                  <value value="1"/>
                  <unit value="Filmtbl."/>
                </denominator>
              </strength>
            </ingredient>
          </Medication>
        </resource>
      </entry>
      <entry>
        <fullUrl
                 value="http://epa4all/epa/medication/api/v1/fhir/Provenance/8faa45dd-b2dc-4a80-8956-94aeab1db04b"/>
        <resource>
          <Provenance>
            <id value="8faa45dd-b2dc-4a80-8956-94aeab1db04b"/>
            <meta>
              <profile
                       value="https://gematik.de/fhir/epa/StructureDefinition/epa-activity-provenance"/>
            </meta>
            <target>
              <reference
                         value="MedicationRequest/71b66f1b-8032-4886-b7bf-e775daee22fb/_history/1"/>
            </target>
            <recorded value="2026-12-01T14:00:00.600Z"/>
            <activity>
              <coding>
                <system
                        value="http://terminology.hl7.org/CodeSystem/v3-DataOperation"/>
                <code value="CREATE"/>
              </coding>
            </activity>
            <agent>
              <type>
                <coding>
                  <system
                          value="http://terminology.hl7.org/CodeSystem/provenance-participant-type"/>
                  <code value="author"/>
                </coding>
              </type>
              <who>🔗
                <reference
                           value="Organization/450a9511-53e5-4af7-be36-a18444bb8dd2"/>
                <identifier>
                  <type>
                    <coding>
                      <system
                              value="http://terminology.hl7.org/CodeSystem/v2-0203"/>
                      <code value="PRN"/>
                    </coding>
                  </type>
                  <system value="https://gematik.de/fhir/sid/telematik-id"/>
                  <value value="9-2.58.00000089"/>
                </identifier>
                <display value="Die Hausarztpraxis"/>
              </who>
            </agent>
          </Provenance>
        </resource>
      </entry>
      <entry>
        <fullUrl
                 value="http://epa4all/epa/medication/api/v1/fhir/MedicationRequest/266620a9-2c26-41c1-b0cb-a10947b867f5"/>
        <resource>
          <MedicationRequest>
            <id value="266620a9-2c26-41c1-b0cb-a10947b867f5"/>
            <meta>
              <versionId value="2"/>
              <lastUpdated value="2026-11-01T15:43:33.244Z"/>
              <profile
                       value="https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request"/>
            </meta>
            <extension
                       url="https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension">
              <valueCode value="EMP"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/epa-medication/StructureDefinition/reason-patient-instruction-extension">
              <valueString
                           value="akuten Behandlung von Migräneanfällen mit und ohne Aura"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/epa-medication/StructureDefinition/patient-note-extension">
              <valueAnnotation>
                <text
                      value="Bitte schützen Sie das Arzneimittel vor hohen Temperaturen und direkter Sonneneinstrahlung."/>
              </valueAnnotation>
            </extension>
            <extension
                       url="http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.effectiveDosePeriod">
              <valuePeriod>
                <start value="2027-02-01"/>
              </valuePeriod>
            </extension>
            <extension
                       url="https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medicationrequest-activity-extension">
              <valueReference>🔗
                <reference
                           value="MedicationStatement/f29f1d0c-be05-4b0d-a335-3e508da39c0c"/>
              </valueReference>
            </extension>
            <identifier>
              <system value="https://gematik.de/fhir/sid/emp-identifier"/>
              <value value="266620a9-2c26-41c1-b0cb-a10947b867f5"/>
            </identifier>
            <status value="active"/>
            <intent value="plan"/>
            <medicationReference>🔗
              <reference value="Medication/87f08ba2-da7e-467e-86aa-404d9035297c"/>
            </medicationReference>
            <subject>
              <identifier>
                <system value="http://fhir.de/sid/gkv/kvid-10"/>
                <value value="X110411319"/>
              </identifier>
            </subject>
            <authoredOn value="2026-11-01"/>
            <note>
              <text value="Hinweis für den LE"/>
            </note>
            <dosageInstruction>
              <extension
                         url="http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructions">
                <extension url="algorithm">
                  <valueCoding>
                    <system
                            value="http://ig.fhir.de/igs/medication/CodeSystem/DosageTextAlgorithm"/>
                    <version value="1.0.0"/>
                    <code value="GematikDosageTextGenerator"/>
                  </valueCoding>
                </extension>
                <extension url="algorithmVersion">
                  <valueString value="1.0.0"/>
                </extension>
                <extension url="language">
                  <valueCode value="de-DE"/>
                </extension>
                <extension url="text">
                  <valueString value="täglich: morgens — je 1 Stück"/>
                </extension>
              </extension>
              <timing>
                <repeat>
                  <frequency value="1"/>
                  <period value="1"/>
                  <periodUnit value="d"/>
                  <when value="MORN"/>
                </repeat>
              </timing>
              <doseAndRate>
                <doseQuantity>
                  <value value="1"/>
                  <unit value="Stück"/>
                  <system
                          value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_BMP_DOSIEREINHEIT"/>
                  <code value="1"/>
                </doseQuantity>
              </doseAndRate>
            </dosageInstruction>
          </MedicationRequest>
        </resource>
      </entry>
      <entry>
        <fullUrl
                 value="http://epa4all/epa/medication/api/v1/fhir/Medication/87f08ba2-da7e-467e-86aa-404d9035297c"/>
        <resource>
          <Medication>
            <id value="87f08ba2-da7e-467e-86aa-404d9035297c"/>
            <meta>
              <versionId value="1"/>
              <lastUpdated value="2026-11-01T14:00:00.200Z"/>
              <profile
                       value="https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication"/>
            </meta>
            <extension
                       url="https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension">
              <valueCode value="EMP"/>
            </extension>
            <extension
                       url="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-type-extension">
              <valueCoding>
                <system value="http://snomed.info/sct"/>
                <code value="781405001"/>
                <display value="Medicinal product package (product)"/>
              </valueCoding>
            </extension>
            <extension
                       url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension">
              <valueCoding>
                <system
                        value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/>
                <code value="00"/>
              </valueCoding>
            </extension>
            <extension
                       url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension">
              <valueBoolean value="false"/>
            </extension>
            <extension url="http://fhir.de/StructureDefinition/normgroesse">
              <valueCode value="N1"/>
            </extension>
            <identifier>
              <system
                      value="https://gematik.de/fhir/epa-medication/sid/epa-medication-unique-identifier"/>
              <value
                     value="5CA9B89A31D81FFF6869E6A93B192C03C7F715FC4A568FB060630DD639F94EF1"/>
            </identifier>
            <code>
              <coding>
                <system value="http://fhir.de/CodeSystem/ifa/pzn"/>
                <code value="06313728"/>
              </coding>
              <text value="Sumatriptan-1a Pharma 100 mg Tabletten"/>
            </code>
            <status value="active"/>
            <form>
              <coding>
                <system
                        value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/>
                <code value="TAB"/>
                <display value="Tabletten"/>
              </coding>
            </form>
            <amount>
              <numerator>
                <extension
                           url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-total-quantity-formulation-extension">
                  <valueString value="20 St."/>
                </extension>
                <value value="20"/>
                <unit value="St"/>
              </numerator>
              <denominator>
                <value value="1"/>
              </denominator>
            </amount>
          </Medication>
        </resource>
      </entry>
      <entry>
        <fullUrl
                 value="http://epa4all/epa/medication/api/v1/fhir/Provenance/9090b28c-e165-4823-b82b-15bb63012123"/>
        <resource>
          <Provenance>
            <id value="9090b28c-e165-4823-b82b-15bb63012123"/>
            <meta>
              <profile
                       value="https://gematik.de/fhir/epa/StructureDefinition/epa-activity-provenance"/>
            </meta>
            <target>
              <reference
                         value="MedicationRequest/266620a9-2c26-41c1-b0cb-a10947b867f5/_history/1"/>
            </target>
            <recorded value="2026-11-01T15:43:33.244Z"/>
            <activity>
              <coding>
                <system
                        value="http://terminology.hl7.org/CodeSystem/v3-DataOperation"/>
                <code value="UPDATE"/>
              </coding>
            </activity>
            <agent>
              <type>
                <coding>
                  <system
                          value="http://terminology.hl7.org/CodeSystem/provenance-participant-type"/>
                  <code value="author"/>
                </coding>
              </type>
              <who>🔗
                <reference
                           value="Organization/450a9511-53e5-4af7-be36-a18444bb8dd2"/>
                <identifier>
                  <type>
                    <coding>
                      <system
                              value="http://terminology.hl7.org/CodeSystem/v2-0203"/>
                      <code value="PRN"/>
                    </coding>
                  </type>
                  <system value="https://gematik.de/fhir/sid/telematik-id"/>
                  <value value="9-2.58.00000089"/>
                </identifier>
                <display value="Die Hausarztpraxis"/>
              </who>
            </agent>
          </Provenance>
        </resource>
      </entry>
      <entry>
        <fullUrl
                 value="http://epa4all/epa/medication/api/v1/fhir/MedicationStatement/f29f1d0c-be05-4b0d-a335-3e508da39c0c"/>
        <resource>
          <MedicationStatement>
            <id value="f29f1d0c-be05-4b0d-a335-3e508da39c0c"/>
            <meta>
              <versionId value="2"/>
              <lastUpdated value="2026-11-01T15:43:33.244Z"/>
              <profile
                       value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement"/>
            </meta>
            <extension
                       url="https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension">
              <valueIdentifier>
                <system
                        value="https://gematik.de/fhir/epa-medication/sid/rx-prescription-process-identifier"/>
                <value value="160.100.000.000.007.24_20261101"/>
              </valueIdentifier>
            </extension>
            <extension
                       url="https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension">
              <valueCode value="PRESCRIPTION"/>
            </extension>
            <basedOn>🔗
              <extension
                         url="https://gematik.de/fhir/epa-medication/StructureDefinition/is-emp-extension">
                <valueBoolean value="true"/>
              </extension>
              <reference
                         value="MedicationRequest/266620a9-2c26-41c1-b0cb-a10947b867f5"/>
            </basedOn>
            <status value="unknown"/>
            <medicationReference>🔗
              <reference value="Medication/fc7b28e8-05ac-4ac8-86d7-7677d9c6134e"/>
            </medicationReference>
            <subject>
              <identifier>
                <system value="http://fhir.de/sid/gkv/kvid-10"/>
                <value value="X110411319"/>
              </identifier>
            </subject>
            <effectivePeriod>
              <start value="2025-11-01"/>
            </effectivePeriod>
            <dateAsserted value="2026-11-01"/>
            <derivedFrom>🔗
              <reference
                         value="MedicationRequest/4dd6f19d-002c-44ac-ae2f-3c9d08ad35b8"/>
            </derivedFrom>
            <derivedFrom>🔗
              <reference
                         value="MedicationDispense/fa0c29e1-c4e7-4f08-91ab-598a2233867c"/>
            </derivedFrom>
            <dosage>
              <extension
                         url="http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructions">
                <extension url="algorithm">
                  <valueCoding>
                    <system
                            value="http://ig.fhir.de/igs/medication/CodeSystem/DosageTextAlgorithm"/>
                    <version value="1.0.0"/>
                    <code value="GematikDosageTextGenerator"/>
                  </valueCoding>
                </extension>
                <extension url="algorithmVersion">
                  <valueString value="1.0.0"/>
                </extension>
                <extension url="language">
                  <valueCode value="de-DE"/>
                </extension>
                <extension url="text">
                  <valueString value="täglich: morgens — je 1 Stück"/>
                </extension>
              </extension>
              <timing>
                <repeat>
                  <frequency value="1"/>
                  <period value="1"/>
                  <periodUnit value="d"/>
                  <when value="MORN"/>
                </repeat>
              </timing>
              <doseAndRate>
                <doseQuantity>
                  <value value="1"/>
                  <unit value="Stück"/>
                  <system
                          value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_BMP_DOSIEREINHEIT"/>
                  <code value="1"/>
                </doseQuantity>
              </doseAndRate>
            </dosage>
          </MedicationStatement>
        </resource>
      </entry>
      <entry>
        <fullUrl
                 value="http://epa4all/epa/medication/api/v1/fhir/Provenance/176eec9c-8d5a-46a7-96e3-7af3f68c49ed"/>
        <resource>
          <Provenance>
            <id value="176eec9c-8d5a-46a7-96e3-7af3f68c49ed"/>
            <meta>
              <profile
                       value="https://gematik.de/fhir/epa/StructureDefinition/epa-activity-provenance"/>
            </meta>
            <target>
              <reference
                         value="MedicationStatement/f29f1d0c-be05-4b0d-a335-3e508da39c0c/_history/2"/>
            </target>
            <recorded value="2026-11-01T15:43:33.244Z"/>
            <activity>
              <coding>
                <system
                        value="http://terminology.hl7.org/CodeSystem/v3-DataOperation"/>
                <code value="UPDATE"/>
              </coding>
            </activity>
            <agent>
              <type>
                <coding>
                  <system
                          value="http://terminology.hl7.org/CodeSystem/provenance-participant-type"/>
                  <code value="author"/>
                </coding>
              </type>
              <who>
                <display value="MEDSVC"/>
              </who>
            </agent>
          </Provenance>
        </resource>
      </entry>
      <entry>
        <fullUrl
                 value="http://epa4all/epa/medication/api/v1/fhir/Medication/fc7b28e8-05ac-4ac8-86d7-7677d9c6134e"/>
        <resource>
          <Medication>
            <id value="fc7b28e8-05ac-4ac8-86d7-7677d9c6134e"/>
            <meta>
              <versionId value="2"/>
              <lastUpdated value="2026-11-01T14:43:33.244Z"/>
              <profile
                       value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication"/>
            </meta>
            <extension
                       url="https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension">
              <valueIdentifier>
                <system
                        value="https://gematik.de/fhir/epa-medication/sid/rx-prescription-process-identifier"/>
                <value value="160.100.000.000.007.24_20261101"/>
              </valueIdentifier>
            </extension>
            <extension
                       url="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-type-extension">
              <valueCoding>
                <system value="http://snomed.info/sct"/>
                <code value="781405001"/>
                <display value="Medicinal product package (product)"/>
              </valueCoding>
            </extension>
            <extension
                       url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension">
              <valueCoding>
                <system
                        value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/>
                <code value="00"/>
              </valueCoding>
            </extension>
            <extension
                       url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension">
              <valueBoolean value="false"/>
            </extension>
            <extension url="http://fhir.de/StructureDefinition/normgroesse">
              <valueCode value="N1"/>
            </extension>
            <identifier>
              <system
                      value="https://gematik.de/fhir/epa-medication/sid/epa-medication-unique-identifier"/>
              <value
                     value="5CA9B89A31D81FFF6869E6A93B192C03C7F715FC4A568FB060630DD639F94EF1"/>
            </identifier>
            <identifier>
              <system
                      value="https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier"/>
              <value
                     value="a3197c39-d03c-45fa-bcb7-b32578143c56_160.100.000.000.007.24"/>
            </identifier>
            <code>
              <coding>
                <system value="http://fhir.de/CodeSystem/ifa/pzn"/>
                <code value="06313728"/>
              </coding>
              <text value="Sumatriptan-1a Pharma 100 mg Tabletten"/>
            </code>
            <status value="active"/>
            <form>
              <coding>
                <system
                        value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"/>
                <code value="TAB"/>
                <display value="Tabletten"/>
              </coding>
            </form>
            <amount>
              <numerator>
                <extension
                           url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-total-quantity-formulation-extension">
                  <valueString value="20 St."/>
                </extension>
                <value value="20"/>
                <unit value="St"/>
              </numerator>
              <denominator>
                <value value="1"/>
              </denominator>
            </amount>
          </Medication>
        </resource>
      </entry>
      <entry>
        <fullUrl
                 value="http://epa4all/epa/medication/api/v1/fhir/MedicationRequest/4dd6f19d-002c-44ac-ae2f-3c9d08ad35b8"/>
        <resource>
          <MedicationRequest>
            <id value="4dd6f19d-002c-44ac-ae2f-3c9d08ad35b8"/>
            <meta>
              <versionId value="2"/>
              <lastUpdated value="2026-11-01T14:43:33.244Z"/>
              <profile
                       value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request"/>
            </meta>
            <extension
                       url="https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension">
              <extension url="indicator">
                <valueBoolean value="false"/>
              </extension>
            </extension>
            <identifier>
              <system
                      value="https://gematik.de/fhir/epa-medication/sid/rx-prescription-process-identifier"/>
              <value value="160.100.000.000.007.24_20250425"/>
            </identifier>
            <identifier>
              <system
                      value="https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier"/>
              <value
                     value="5f4bc41c-480e-4ee4-b58e-a99268c1a1d0_160.100.000.000.007.24"/>
            </identifier>
            <status value="active"/>
            <intent value="filler-order"/>
            <medicationReference>🔗
              <reference value="Medication/fc7b28e8-05ac-4ac8-86d7-7677d9c6134e"/>
            </medicationReference>
            <subject>
              <identifier>
                <system value="http://fhir.de/sid/gkv/kvid-10"/>
                <value value="X110411319"/>
              </identifier>
            </subject>
            <authoredOn value="2026-11-01"/>
            <requester>🔗
              <reference
                         value="PractitionerRole/b9eb9668-b61e-43b5-b3ea-485234836d59"/>
            </requester>
            <basedOn>
              <identifier>
                <system value="https://gematik.de/fhir/sid/emp-identifier"/>
                <value value="4dd6f19d-002c-44ac-ae2f-3c9d08ad35b8"/>
              </identifier>
            </basedOn>
            <dosageInstruction>
              <extension
                         url="http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructions">
                <extension url="algorithm">
                  <valueCoding>
                    <system
                            value="http://ig.fhir.de/igs/medication/CodeSystem/DosageTextAlgorithm"/>
                    <version value="1.0.0"/>
                    <code value="GematikDosageTextGenerator"/>
                  </valueCoding>
                </extension>
                <extension url="algorithmVersion">
                  <valueString value="1.0.0"/>
                </extension>
                <extension url="language">
                  <valueCode value="de-DE"/>
                </extension>
                <extension url="text">
                  <valueString value="täglich: morgens — je 1 Stück"/>
                </extension>
              </extension>
              <timing>
                <repeat>
                  <frequency value="1"/>
                  <period value="1"/>
                  <periodUnit value="d"/>
                  <when value="MORN"/>
                </repeat>
              </timing>
              <doseAndRate>
                <doseQuantity>
                  <value value="1"/>
                  <unit value="Stück"/>
                  <system
                          value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_BMP_DOSIEREINHEIT"/>
                  <code value="1"/>
                </doseQuantity>
              </doseAndRate>
            </dosageInstruction>
            <dispenseRequest>
              <quantity>
                <value value="1"/>
                <system value="http://unitsofmeasure.org"/>
                <code value="{Package}"/>
              </quantity>
            </dispenseRequest>
            <substitution>
              <allowedBoolean value="true"/>
            </substitution>
          </MedicationRequest>
        </resource>
      </entry>
      <entry>
        <fullUrl
                 value="http://epa4all/epa/medication/api/v1/fhir/MedicationDispense/fa0c29e1-c4e7-4f08-91ab-598a2233867c"/>
        <resource>
          <MedicationDispense>
            <id value="fa0c29e1-c4e7-4f08-91ab-598a2233867c"/>
            <meta>
              <versionId value="1"/>
              <lastUpdated value="2026-11-01T15:43:33.244Z"/>
              <profile
                       value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense"/>
            </meta>
            <extension
                       url="https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension">
              <valueIdentifier>
                <system
                        value="https://gematik.de/fhir/epa-medication/sid/rx-prescription-process-identifier"/>
                <value value="160.100.000.000.007.24_20261101"/>
              </valueIdentifier>
            </extension>
            <identifier>
              <system
                      value="https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier"/>
              <value
                     value="1da91bd3-d5cb-459b-a270-32fad7d5d5d5_160.100.000.000.007.24"/>
            </identifier>
            <status value="completed"/>
            <medicationReference>🔗
              <reference value="Medication/fc7b28e8-05ac-4ac8-86d7-7677d9c6134e"/>
            </medicationReference>
            <subject>
              <identifier>
                <system value="http://fhir.de/sid/gkv/kvid-10"/>
                <value value="X110411319"/>
              </identifier>
            </subject>
            <performer>
              <actor>🔗
                <reference
                           value="Organization/151f1697-7512-4e21-9466-1b75207475d8"/>
                <identifier>
                  <type>
                    <coding>
                      <system
                              value="http://terminology.hl7.org/CodeSystem/v2-0203"/>
                      <version value="2.9.0"/>
                      <code value="PRN"/>
                      <display value="Provider number"/>
                    </coding>
                  </type>
                  <system value="https://gematik.de/fhir/sid/telematik-id"/>
                  <value value="9-2.58.00000023"/>
                </identifier>
                <display value="gematik Apotheke"/>
              </actor>
            </performer>
            <authorizingPrescription>🔗
              <reference
                         value="MedicationRequest/4dd6f19d-002c-44ac-ae2f-3c9d08ad35b8"/>
            </authorizingPrescription>
            <whenHandedOver value="2026-11-01"/>
            <substitution>
              <wasSubstituted value="false"/>
            </substitution>
          </MedicationDispense>
        </resource>
      </entry>
      <entry>
        <fullUrl
                 value="http://epa4all/epa/medication/api/v1/fhir/PractitionerRole/b9eb9668-b61e-43b5-b3ea-485234836d59"/>
        <resource>
          <PractitionerRole>
            <id value="b9eb9668-b61e-43b5-b3ea-485234836d59"/>
            <practitioner>🔗
              <reference
                         value="Practitioner/498c345f-31f5-4da6-9f04-00fa2bc8af7c"/>
              <identifier>
                <type>
                  <coding>
                    <system
                            value="http://terminology.hl7.org/CodeSystem/v2-0203"/>
                    <version value="2.9.0"/>
                    <code value="PRN"/>
                    <display value="Provider number"/>
                  </coding>
                </type>
                <system value="https://gematik.de/fhir/sid/telematik-id"/>
                <value value="1-1.58.00000056"/>
              </identifier>
              <display value="Dr. Max Manfred Mustermann"/>
            </practitioner>
            <organization>🔗
              <reference
                         value="Organization/450a9511-53e5-4af7-be36-a18444bb8dd2"/>
              <identifier>
                <type>
                  <coding>
                    <system
                            value="http://terminology.hl7.org/CodeSystem/v2-0203"/>
                    <version value="2.9.0"/>
                    <code value="PRN"/>
                    <display value="Provider number"/>
                  </coding>
                </type>
                <system value="https://gematik.de/fhir/sid/telematik-id"/>
                <value value="9-2.58.00000089"/>
              </identifier>
              <display value="Die Hausarztpraxis"/>
            </organization>
          </PractitionerRole>
        </resource>
      </entry>
      <entry>
        <fullUrl
                 value="http://epa4all/epa/medication/api/v1/fhir/Organization/450a9511-53e5-4af7-be36-a18444bb8dd2"/>
        <resource>
          <Organization>
            <id value="450a9511-53e5-4af7-be36-a18444bb8dd2"/>
            <meta>
              <profile
                       value="https://gematik.de/fhir/ti/StructureDefinition/ti-organization"/>
            </meta>
            <identifier>
              <system value="https://gematik.de/fhir/sid/telematik-id"/>
              <value value="9-2.58.00000089"/>
            </identifier>
            <identifier>
              <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"/>
              <value value="721111100"/>
            </identifier>
            <active value="true"/>
            <type>
              <coding>
                <system
                        value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/>
                <code value="1.2.276.0.76.4.50"/>
                <display value="Betriebsstätte Arzt"/>
              </coding>
            </type>
            <name value="Die Hausarztpraxis"/>
            <address>
              <text value="Friedrichstr. 136,
    10117 Berlin"/>
              <line value="Friedrichstr. 136"/>
              <city value="Berlin"/>
              <district value="Mitte"/>
              <state value="Berlin"/>
              <postalCode value="10117"/>
              <country value="DE"/>
            </address>
            <contact>
              <telecom>
                <system value="phone"/>
                <value value="0301234567"/>
              </telecom>
              <telecom>
                <system value="fax"/>
                <value value="030123456789"/>
              </telecom>
              <telecom>
                <system value="email"/>
                <value value="hausarztpraxis@example.com"/>
              </telecom>
            </contact>
          </Organization>
        </resource>
      </entry>
      <entry>
        <fullUrl
                 value="http://epa4all/epa/medication/api/v1/fhir/Practitioner/498c345f-31f5-4da6-9f04-00fa2bc8af7c"/>
        <resource>
          <Practitioner>
            <id value="498c345f-31f5-4da6-9f04-00fa2bc8af7c"/>
            <meta>
              <profile
                       value="https://gematik.de/fhir/directory/StructureDefinition/PractitionerDirectory"/>
              <tag>
                <system
                        value="https://gematik.de/fhir/directory/CodeSystem/Origin"/>
                <code value="ldap"/>
              </tag>
            </meta>
            <identifier>
              <system value="https://gematik.de/fhir/sid/telematik-id"/>
              <value value="1-1.58.00000056"/>
            </identifier>
            <identifier>
              <system value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR"/>
              <value value="123456789"/>
            </identifier>
            <active value="true"/>
            <name>
              <text value="Dr. Max Manfred Mustermann"/>
              <family value="Musterman"/>
              <given value="Max"/>
              <given value="Manfred"/>
              <prefix value="Dr."/>
            </name>
          </Practitioner>
        </resource>
      </entry>
      <entry>
        <fullUrl
                 value="http://epa4all/epa/medication/api/v1/fhir/Organization/151f1697-7512-4e21-9466-1b75207475d8"/>
        <resource>
          <Organization>
            <id value="151f1697-7512-4e21-9466-1b75207475d8"/>
            <meta>
              <profile
                       value="https://gematik.de/fhir/directory/StructureDefinition/OrganizationDirectory"/>
              <tag>
                <system
                        value="https://gematik.de/fhir/directory/CodeSystem/Origin"/>
                <code value="ldap"/>
              </tag>
            </meta>
            <identifier>
              <system value="https://gematik.de/fhir/sid/telematik-id"/>
              <value value="9-2.58.00000023"/>
            </identifier>
            <active value="true"/>
            <type>
              <coding>
                <system
                        value="https://gematik.de/fhir/directory/CodeSystem/OrganizationProfessionOID"/>
                <code value="1.2.276.0.76.4.54"/>
                <display value="Öffentliche Apotheke"/>
              </coding>
            </type>
            <name value="gematik Apotheke"/>
            <alias value="Apotheke"/>
            <address>
              <text value="gematik Apotheke
    Friedrichstr. 136,
    10117 Berlin"/>
              <line value="Friedrichstr. 136"/>
              <city value="Berlin"/>
              <district value="Mitte"/>
              <state value="Berlin"/>
              <postalCode value="10117"/>
              <country value="DE"/>
            </address>
            <contact>
              <purpose>
                <coding>
                  <system
                          value="http://terminology.hl7.org/CodeSystem/contactentity-type"/>
                  <code value="ADMIN"/>
                </coding>
              </purpose>
              <name>
                <text value="gematik ITSM"/>
              </name>
              <telecom>
                <system value="email"/>
                <value value="betrieb@gematik.de"/>
              </telecom>
            </contact>
          </Organization>
        </resource>
      </entry>
    </Bundle>

Beispiel für den Abruf der aktuellen Version des eMP:

    GET [base] /epa/medication/api/v1/fhir/$medication-plan

Beispiel für den Abruf einer äteren Version des eMP:

    GET [base] /epa/medication/api/v1/fhir/$medication-plan?provenance=F530632C-7CE9-4369-B99B-2DE68B0C9F25

Beispiel für den Abruf eines Medikationsplans in XML:

    GET [base] /epa/medication/api/v1/fhir/$medication-plan?_format=xml

Der Medication Service MUSS in der Operation Medikationsplan abrufen (eMP) das Ergebnis als FHIR Bundle mit dem type collection zurückgeben. Der Medication Service MUSS sicherstellen, dass das Ergebnis der Operation Medikationsplan abrufen (eMP) ausschließlich relevante Instanzen des adressierten eMP-Chronologieeintrags enthält.
Das zurückgegebene FHIR Collection Bundle MUSS folgende Instanzen enthalten:

- Instanz des Profils EPAPatient aus dem Patient Service,
- die adressierte Provenance Instanz des Profils EMPChronologyProvenance,
- alle Versionen von Instanzen des Profils EMPMedicationRequest, die in Provenance.target (EMPChronologyProvenance) referenziert sind,
- alle Instanzen des Profils EMPMedication, die in MedicationRequest.medicationReference (EMPMedicationRequest) referenziert sind (eMP-Medikation),
- alle Instanzen des Profils EPAActivityProvenance, die in Provenance.target (EPAActivityProvenance) auf die relevanten Versionen von MedicationRequest (EMPMedicationRequest) verweisen,
- alle Instanzen des Profils TIOrganization, die in Provenance.agent.who (EPAActivityProvenance) referenziert werden,
- falls vorhanden:
  - jeweils die in MedicationRequest.activity (EMPMedicationRequest) referenzierte Instanz des Profils EPAMedicationStatement (erlaubter Status: unknown). Werden mehrere Instanzen des Profils EPAMedicationStatement referenziert, wird die gemäß MedicationStatement.effective jeweils jüngste Instanz verwendet.
  - alle durch die relevanten Instanzen des Profils EPAMedicationStatement in MedicationStatement.derivedFrom referenzierten Instanzen des Profils EPAMedicationDispense,
  - alle durch die relevanten Instanzen des Profils EPAMedicationStatement in MedicationStatement.derivedFrom referenzierten Instanzen des Profils EPAMedicationRequest,
  - alle durch die relevanten Instanzen des Profils EPAMedicationRequest und EPAMedicationDispense in medicationReference referenzierten Instanzen des Profils EPAMedication,
  - alle in MedicationDispense.performer.actor (EPAMedicationDispense) referenzierten Instanzen des Profils OrganizationDirectory,
  - alle in MedicationRequest.requester (EPAMedicationRequest) referenzierten Instanzen des Profils PractitionerRole, sowie deren in PractitionerRole.practitioner referenzierten Instanzen des Profils PractitionerDirectory und in PractitionerRole.organization referenzierten Instanzen des Profils OrganizationDirectory.

Der Medication Service MUSS die eMP-Einträge im Suchergebnis der Operation Medikationsplan abrufen (eMP) entsprechend des Elements MedicationRequest.extension[effectiveDosePeriod] der Instanzen des Profils EMPMedicationRequest auflisten (neueste zuerst) und bei gleichem MedicationRequest.extension[effectiveDosePeriod] alphabetisch aufsteigend entsprechend Medication.ingredient.item[x]:itemCodeableConcept.text (Wirkstoff) sortieren. Der Medication Service MUSS die Operation Medikationsplan abrufen (eMP) abbrechen und mit einer OperationOutcome-Ressource und Wert MSG_NO_MATCH antworten, wenn die relevante EMPChronologyProvenance auf keinen eMP-Eintrag (EMPMedicationRequest) verweist.

Das folgende Beispiel zeigt die erwartete Antwort bei einem eMP ohne Einträge:

    {
      "resourceType" : "OperationOutcome",
      "id" : "a4da96e5-84d6-4883-8789-5df2e1363c40",
      "meta" : {
        "profile" : [
          🔗 "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-ms-operation-outcome"
        ]
      },
      "issue" : [
        {
          "severity" : "error",
          "code" : "processing",
          "details" : {
            "coding" : [
              {
                "system" : "http://terminology.hl7.org/CodeSystem/operation-outcome",
                "code" : "MSG_NO_MATCH",
                "display" : "No Resource found matching the query \"%s\""
              }
            ]
          },
          "diagnostics" : "No Resource found matching the query $medication-list"
        }
      ]
    }

    <OperationOutcome xmlns="http://hl7.org/fhir">
      <id value="a4da96e5-84d6-4883-8789-5df2e1363c40"/>
      <meta>
        <profile
                 value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-ms-operation-outcome"/>
      </meta>
      <issue>
        <severity value="error"/>
        <code value="processing"/>
        <details>
          <coding>
            <system
                    value="http://terminology.hl7.org/CodeSystem/operation-outcome"/>
            <code value="MSG_NO_MATCH"/>
            <display value="No Resource found matching the query &quot;%s&quot;"/>
          </coding>
        </details>
        <diagnostics
                     value="No Resource found matching the query $medication-list"/>
      </issue>
    </OperationOutcome>

Der Medication Service MUSS die Operation Medikationsplan abrufen (eMP) abbrechen und mit einer OperationOutcome-Ressource und Wert MSG_RESOURCE_ID_FAIL antworten, wenn:

- die durch den Parameter Provenance-ID adressierte EMPChronologyProvenance nicht vorhanden ist
- oder wenn bei Abruf des aktuellen eMP keine EMPChronologyProvenance existiert.

Das folgende Beispiel zeigt die erwartete Antwort bei einem nicht existierenden eMP:

    {
      "resourceType" : "OperationOutcome",
      "id" : "98ca7dff-aa8d-47d0-a074-4055f55cb4db",
      "meta" : {
        "profile" : [
          🔗 "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-ms-operation-outcome"
        ]
      },
      "issue" : [
        {
          "severity" : "error",
          "code" : "not-found",
          "details" : {
            "coding" : [
              {
                "system" : "http://terminology.hl7.org/CodeSystem/operation-outcome",
                "code" : "MSG_RESOURCE_ID_FAIL",
                "display" : "unable to allocate resource id"
              }
            ]
          },
          "diagnostics" : "unable to allocate resource id"
        }
      ]
    }

    <OperationOutcome xmlns="http://hl7.org/fhir">
      <id value="98ca7dff-aa8d-47d0-a074-4055f55cb4db"/>
      <meta>
        <profile
                 value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-ms-operation-outcome"/>
      </meta>
      <issue>
        <severity value="error"/>
        <code value="not-found"/>
        <details>
          <coding>
            <system
                    value="http://terminology.hl7.org/CodeSystem/operation-outcome"/>
            <code value="MSG_RESOURCE_ID_FAIL"/>
            <display value="unable to allocate resource id"/>
          </coding>
        </details>
        <diagnostics value="unable to allocate resource id"/>
      </issue>
    </OperationOutcome>

### Sicherheitsanforderungen

Generelle Sicherheitsanforderungen werden hier festgehalten.