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

## Batch API: eMP-Einträge

Mit der Batch API eMP-Einträge ($batch-emp) können Primärsysteme mehrere fachliche Änderungen am elektronischen Medikationsplan (eMP) gesammelt an den Medication Service übergeben. Innerhalb dieser Stapelverarbeitung werden die Operationen eMP-Eintrag hinzufügen ($add-emp-entry) und eMP-Eintrag aktualisieren ($update-emp-entry) gebündelt ausgeführt.

Der wesentliche Vorteil dieser Vorgehensweise liegt darin, dass mehrere Änderungen in einem konsistenten Kontext geprüft und übernommen werden können. Anstatt jede Änderung einzeln zu übertragen, lassen sich so ganze Änderungspakete gemeinsam validieren, was sowohl die Anzahl der notwendigen Serveraufrufe reduziert als auch die Gefahr von Zwischenzuständen vermeidet.

Am Ende der Stapelverarbeitung wird zusätzlich ein $emp-commit ausgeführt. Dieser Schritt erzeugt eine neue Version des eMP, in der alle zuvor übermittelten Änderungen nachvollziehbar und revisionssicher zusammengefasst sind. Damit wird gewährleistet, dass das Ergebnis der Batch-Verarbeitung als konsistente neue Plan-Version zur Verfügung steht.

### Nachricht

Im Rahmen der Batch-Verarbeitung werden sowohl das Hinzufügen neuer Medikationseinträge als auch die Aktualisierung bestehender Einträge im eMP gemeinsam als Bestandteile einer HTTP-POST-Anfrage an die Operation $batch-emp des Medication Service übermittelt.

#### Auslösung

Wenn das ePA-Client-System mehrere Medikationseinträge im eMP hinzufügen oder bestehende Einträge aktualisieren möchte, übermittelt es diese gebündelt über die Batch API eMP Einträg ($batch-emp) an den Medication Service. Am Ende der Stapelverarbeitung wird zusätzlich ein $emp-commit ausgeführt, durch den eine neue Version des eMP erzeugt wird.

#### Antwort

Die Operation liefert als Ergebnis ein Bundle vom Typ transaction-response, das für jeden im Batch verarbeiteten Eintrag den jeweiligen Rückgabekontext enthält. Dabei werden die Resultate der ausgeführten Operationen $add-emp-entry und $update-emp-entry als Parameters-Ressourcen in den Bundle-Einträgen zurückgegeben. Nach Abschluss der Stapelverarbeitung ist zusätzlich der Eintrag des $emp-commit enthalten, über den die neue Version des eMP in Form einer Provenance-Instanz bereitgestellt wird.

#### FHIR Batch API

Der Medication Service MUSS die Batch API: eMP-Einträge gemäß der FHIR OperationDefinition Batch eMP Einträge implementieren. Der Medication Service MUSS die Ausführung der Batch API: eMP-Einträge gemäß den Vorgaben von [FHIR_RESTful_API:batch/transaction] umsetzen.

          {"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":"batch-emp-entries-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 batch-emp-entries-op</p><a name=\"batch-emp-entries-op\"> </a><a name=\"hcbatch-emp-entries-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]/$$batch-empParameters<table class=\"grid\">UseNameScopeCardinalityTypeBindingDocumentationINresource1..1<a href=\"http://hl7.org/fhir/R4/bundle.html\">Bundle</a>FHIR-Bundle vom Typ transaction gemäß des Profils gemäß EPABatchEmpRequestBundle.\nDie Ausführungssemantik ist serverseitig festgelegt. Verboten: direkte POST/PUT/DELETE auf Ressourcen außerhalb von Operationen.\nOUTreturn1..1<a href=\"http://hl7.org/fhir/R4/bundle.html\">Bundle</a>Antwort ist ein Bundle vom Typ transaction-response (bei atomarer Server-Policy.\nFür jeden Request-Entry enthält die Antwort einen korrespondierenden Entry mit:\n\nresponse.status (HTTP-Status),\nresource = Parameters (Ergebnisse von $add-emp-entry / $update-emp-entry),\nbeim letzten Eintrag ($emp-commit): eine Provenance-Instanz (neue eMP-Plan-Version).\n\n</table></div>"},"extension":[{"url":"https://gematik.de/fhir/ti/StructureDefinition/extension-http-method","valueCode":"POST"}],"url":"https://gematik.de/fhir/epa-medication/OperationDefinition/batch-emp-entries-op","version":"1.2.0-ballot.2","name":"batchEMPEntries_MedicationSvc","title":"Batch eMP Einträge","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":"Mit der Batch Operation $batch-emp können Primärsysteme mehrere fachliche Änderungen am eMP in einem Aufruf\nan den Medication Service übergeben. Innerhalb des Request-Bundles werden ausschließlich FHIR-Operationen\nausgeführt (keine direkten Resource-CRUDs). Am Ende wird ein emp-commit ausgeführt, der eine neue\nPlan-Version (Provenance) erzeugt. Die Operation antwortet mit einem Bundle vom Typ transaction-response.","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"DE"}]}],"purpose":"Stapelverarbeitung von eMP-Änderungen mit konsistenter, atomarer Ausführung und anschließender\nVersionierung des eMP. Reduziert Roundtrips, vermeidet Zwischenzustände und stellt eine neue Plan-Version bereit.","affectsState":true,"code":"batch-emp","system":true,"type":false,"instance":false,"parameter":[{"name":"resource","use":"in","min":1,"max":"1","documentation":"FHIR-Bundle vom Typ transaction gemäß des Profils gemäß EPABatchEmpRequestBundle.\nDie Ausführungssemantik ist serverseitig festgelegt. Verboten: direkte POST/PUT/DELETE auf Ressourcen außerhalb von Operationen.","type":"Bundle"},{"name":"return","use":"out","min":1,"max":"1","documentation":"Antwort ist ein Bundle vom Typ transaction-response (bei atomarer Server-Policy. \nFür jeden Request-Entry enthält die Antwort einen korrespondierenden Entry mit:\n- response.status (HTTP-Status),\n- resource = Parameters (Ergebnisse von $add-emp-entry / $update-emp-entry),\n- beim letzten Eintrag ($emp-commit): eine Provenance-Instanz (neue eMP-Plan-Version).","type":"Bundle"}]}

    {
      "resourceType" : "Bundle",
      "id" : "example-epa-batch-emp-request-bundle",
      "meta" : {
        "profile" : [
          🔗 "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-batch-emp-request-bundle"
        ]
      },
      "type" : "transaction",
      "entry" : [
        {
          "fullUrl" : "urn:uuid:42a697f3-3989-4be8-bf27-92c05a025e79",
          "resource" : {
            "resourceType" : "Parameters",
            "id" : "517301af-f07c-4694-9780-451132352d95",
            "meta" : {
              "profile" : [
                🔗 "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-add-emp-entry-input-parameters"
              ]
            },
            "parameter" : [
              {
                "name" : "empEntry",
                "resource" : {
                  "resourceType" : "MedicationRequest",
                  "id" : "881f3c6d-20e6-443e-b7dc-580a40fa3d14",
                  "meta" : {
                    "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"
                      }
                    }
                  ],
                  "status" : "active",
                  "intent" : "plan",
                  "medicationReference" : {
                    "reference" : "Medication/1193c409-3df4-4b55-b672-811665aaa1b7"
                  },
                  "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"
                          }
                        }
                      ]
                    }
                  ]
                }
              },
              {
                "name" : "medication",
                "resource" : {
                  "resourceType" : "Medication",
                  "id" : "1193c409-3df4-4b55-b672-811665aaa1b7",
                  "meta" : {
                    "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
                    }
                  ],
                  "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."
                        }
                      }
                    }
                  ]
                }
              }
            ]
          },
          "request" : {
            "method" : "POST",
            "url" : "$add-emp-entry"
          }
        },
        {
          "fullUrl" : "urn:uuid:cae0c349-08bc-4fe5-9233-ca5a9a4c4673",
          "resource" : {
            "resourceType" : "Parameters",
            "id" : "7ccb2670-7178-4f82-912a-de70f68ecd51",
            "meta" : {
              "profile" : [
                🔗 "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-update-emp-entry-input-parameters"
              ]
            },
            "parameter" : [
              {
                "name" : "medicationPlanIdentifier",
                "valueIdentifier" : {
                  "system" : "https://gematik.de/fhir/sid/emp-identifier",
                  "value" : "266620a9-2c26-41c1-b0cb-a10947b867f5"
                }
              },
              {
                "name" : "empEntry",
                "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"
                          }
                        }
                      ]
                    }
                  ]
                }
              }
            ]
          },
          "request" : {
            "method" : "POST",
            "url" : "$update-emp-entry"
          }
        },
        {
          "fullUrl" : "urn:uuid:ba863a1b-f6bc-45f7-92ba-cc8bf79cf8c2",
          "resource" : {
            "resourceType" : "Parameters",
            "id" : "4beaf1af-daec-4c7a-930d-c2062517b42c",
            "meta" : {
              "profile" : [
                🔗 "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-rmp-commit-input-parameters"
              ]
            },
            "parameter" : [
              {
                "name" : "acknowledgedChronologyId",
                "valueId" : "b467ce05-e0e5-4d71-9a0b-d824dbb492ef"
              }
            ]
          },
          "request" : {
            "method" : "POST",
            "url" : "$emp-commit"
          }
        }
      ]
    }

    <Bundle xmlns="http://hl7.org/fhir">
      <id value="example-epa-batch-emp-request-bundle"/>
      <meta>
        <profile
                 value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-batch-emp-request-bundle"/>
      </meta>
      <type value="transaction"/>
      <entry>
        <fullUrl value="urn:uuid:42a697f3-3989-4be8-bf27-92c05a025e79"/>
        <resource>
          <Parameters>
            <id value="517301af-f07c-4694-9780-451132352d95"/>
            <meta>
              <profile
                       value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-add-emp-entry-input-parameters"/>
            </meta>
            <parameter>
              <name value="empEntry"/>
              <resource>
                <MedicationRequest>
                  <id value="881f3c6d-20e6-443e-b7dc-580a40fa3d14"/>
                  <meta>
                    <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>
                  <status value="active"/>
                  <intent value="plan"/>
                  <medicationReference>
                    <reference
                               value="Medication/1193c409-3df4-4b55-b672-811665aaa1b7"/>
                  </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>
            </parameter>
            <parameter>
              <name value="medication"/>
              <resource>
                <Medication>
                  <id value="1193c409-3df4-4b55-b672-811665aaa1b7"/>
                  <meta>
                    <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>
                  <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>
            </parameter>
          </Parameters>
        </resource>
        <request>
          <method value="POST"/>
          <url value="$add-emp-entry"/>
        </request>
      </entry>
      <entry>
        <fullUrl value="urn:uuid:cae0c349-08bc-4fe5-9233-ca5a9a4c4673"/>
        <resource>
          <Parameters>
            <id value="7ccb2670-7178-4f82-912a-de70f68ecd51"/>
            <meta>
              <profile
                       value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-update-emp-entry-input-parameters"/>
            </meta>
            <parameter>
              <name value="medicationPlanIdentifier"/>
              <valueIdentifier>
                <system value="https://gematik.de/fhir/sid/emp-identifier"/>
                <value value="266620a9-2c26-41c1-b0cb-a10947b867f5"/>
              </valueIdentifier>
            </parameter>
            <parameter>
              <name value="empEntry"/>
              <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>
            </parameter>
          </Parameters>
        </resource>
        <request>
          <method value="POST"/>
          <url value="$update-emp-entry"/>
        </request>
      </entry>
      <entry>
        <fullUrl value="urn:uuid:ba863a1b-f6bc-45f7-92ba-cc8bf79cf8c2"/>
        <resource>
          <Parameters>
            <id value="4beaf1af-daec-4c7a-930d-c2062517b42c"/>
            <meta>
              <profile
                       value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-rmp-commit-input-parameters"/>
            </meta>
            <parameter>
              <name value="acknowledgedChronologyId"/>
              <valueId value="b467ce05-e0e5-4d71-9a0b-d824dbb492ef"/>
            </parameter>
          </Parameters>
        </resource>
        <request>
          <method value="POST"/>
          <url value="$emp-commit"/>
        </request>
      </entry>
    </Bundle>

    {
      "resourceType" : "Bundle",
      "id" : "example-epa-batch-emp-response-bundle",
      "type" : "transaction-response",
      "entry" : [
        {
          "resource" : {
            "resourceType" : "Parameters",
            "id" : "0fe348cc-adee-496c-9359-3cf3eaa1d355",
            "meta" : {
              "profile" : [
                🔗 "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-emp-entry-output-parameters"
              ]
            },
            "parameter" : [
              {
                "name" : "empEntry",
                "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"
                          }
                        }
                      ]
                    }
                  ]
                }
              },
              {
                "name" : "medication",
                "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."
                        }
                      }
                    }
                  ]
                }
              },
              {
                "name" : "relatedActivity",
                "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"
                      }
                    }
                  ]
                }
              }
            ]
          },
          "response" : {
            "status" : "200 OK"
          }
        },
        {
          "resource" : {
            "resourceType" : "Parameters",
            "id" : "946af3ef-eec2-4a5d-81c4-fe46bc115d58",
            "meta" : {
              "profile" : [
                🔗 "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-emp-entry-output-parameters"
              ]
            },
            "parameter" : [
              {
                "name" : "empEntry",
                "resource" : {
                  "resourceType" : "MedicationRequest",
                  "id" : "266620a9-2c26-41c1-b0cb-a10947b867f5",
                  "meta" : {
                    "versionId" : "3",
                    "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" : "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"
                          }
                        }
                      ]
                    }
                  ]
                }
              },
              {
                "name" : "medication",
                "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
                    }
                  }
                }
              },
              {
                "name" : "relatedActivity",
                "resource" : {
                  "resourceType" : "Provenance",
                  "id" : "20335453-d103-4957-a370-03c9007db2f6",
                  "meta" : {
                    "profile" : [
                      🔗 "https://gematik.de/fhir/epa/StructureDefinition/epa-activity-provenance"
                    ]
                  },
                  "target" : [
                    {
                      "reference" : "MedicationRequest/266620a9-2c26-41c1-b0cb-a10947b867f5/_history/3"
                    }
                  ],
                  "recorded" : "2026-12-01T14:00:00.400Z",
                  "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"
                      }
                    }
                  ]
                }
              }
            ]
          },
          "response" : {
            "status" : "200 OK"
          }
        },
        {
          "resource" : {
            "resourceType" : "Provenance",
            "id" : "319fcc6e-049d-4eb1-9a5c-82c33438cf94",
            "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/3"
              },
              {
                "reference" : "MedicationRequest/71b66f1b-8032-4886-b7bf-e775daee22fb/_history/1"
              }
            ],
            "occurredDateTime" : "2026-12-01T14:00:00.400Z",
            "recorded" : "2026-12-01T14:00:00.400Z",
            "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"
                }
              }
            ]
          },
          "response" : {
            "status" : "200 OK"
          }
        }
      ]
    }

    <Bundle xmlns="http://hl7.org/fhir">
      <id value="example-epa-batch-emp-response-bundle"/>
      <type value="transaction-response"/>
      <entry>
        <resource>
          <Parameters>
            <id value="0fe348cc-adee-496c-9359-3cf3eaa1d355"/>
            <meta>
              <profile
                       value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-emp-entry-output-parameters"/>
            </meta>
            <parameter>
              <name value="empEntry"/>
              <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>
            </parameter>
            <parameter>
              <name value="medication"/>
              <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>
            </parameter>
            <parameter>
              <name value="relatedActivity"/>
              <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>
            </parameter>
          </Parameters>
        </resource>
        <response>
          <status value="200 OK"/>
        </response>
      </entry>
      <entry>
        <resource>
          <Parameters>
            <id value="946af3ef-eec2-4a5d-81c4-fe46bc115d58"/>
            <meta>
              <profile
                       value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-op-emp-entry-output-parameters"/>
            </meta>
            <parameter>
              <name value="empEntry"/>
              <resource>
                <MedicationRequest>
                  <id value="266620a9-2c26-41c1-b0cb-a10947b867f5"/>
                  <meta>
                    <versionId value="3"/>
                    <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="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>
            </parameter>
            <parameter>
              <name value="medication"/>
              <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>
            </parameter>
            <parameter>
              <name value="relatedActivity"/>
              <resource>
                <Provenance>
                  <id value="20335453-d103-4957-a370-03c9007db2f6"/>
                  <meta>
                    <profile
                             value="https://gematik.de/fhir/epa/StructureDefinition/epa-activity-provenance"/>
                  </meta>
                  <target>
                    <reference
                               value="MedicationRequest/266620a9-2c26-41c1-b0cb-a10947b867f5/_history/3"/>
                  </target>
                  <recorded value="2026-12-01T14:00:00.400Z"/>
                  <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>
            </parameter>
          </Parameters>
        </resource>
        <response>
          <status value="200 OK"/>
        </response>
      </entry>
      <entry>
        <resource>
          <Provenance>
            <id value="319fcc6e-049d-4eb1-9a5c-82c33438cf94"/>
            <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/3"/>
            </target>
            <target>
              <reference
                         value="MedicationRequest/71b66f1b-8032-4886-b7bf-e775daee22fb/_history/1"/>
            </target>
            <occurredDateTime value="2026-12-01T14:00:00.400Z"/>
            <recorded value="2026-12-01T14:00:00.400Z"/>
            <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>
        <response>
          <status value="200 OK"/>
        </response>
      </entry>
    </Bundle>

### Geschäftslogik

Das Primärsystem MUSS für Aufrufe der Batch API eMP Einträge ein FHIR‑Bundle vom Typ transaction gemäß des Profils EPABatchEmpRequestBundle als Request-Body verwenden. Der Medication Service MUSS im Erfolgsfall auf die Batch API eMP Einträge mit dem HTTP-Statuscode 200 OK antworten und als Ergebnis ein Bundle vom Typ transaction-response zurückgeben. Der Medication Service MUSS die Batch API eMP Einträge atomar (transaction) ausführen, sodass alle Verarbeitungsschritte im Stapel fehlerfrei durchgeführt werden. Tritt ein Fehler auf, wird ein Rollback aller Änderungen durchgeführt und die Verarbeitung an dieser Stelle mit einem Fehler-Response abgebrochen. Der Medication Service MUSS für die Batch API eMP-Einträge ein serverinternes Ausführungskontext‑Flag (beispielsweise isBatchContext) führen, das vom Dispatcher der Batch API eMP-Einträge gesetzt wird und vom Client nicht beeinflussbar ist. Ist das Flag aktiv, werden die aufgerufenen Teiloperationen in Batch‑Semantik ausgeführt. Der Medication Service MUSS die Verarbeitung der übergebenen Operationen in einer festen Reihenfolge durchführen:

1. Alle Operationen eMP-Eintrag hinzufügen ($add-emp-entry)
2. Danach alle Operationen eMP-Eintrag aktualisieren ($update-emp-entry)
3. Abschließend die Operation eMP-Commit ($emp-commit)

Diese Reihenfolge ist zwingend einzuhalten, um eine konsistente Verarbeitung und die korrekte Erzeugung einer neuen Version des eMP sicherzustellen. Der Medication Service MUSS die Geschäftlogik der Batch API eMP-Einträge gemäß dem Aktivitätsdiagramm mit der ID IG-MED-BL-BATCH-EMP-ENTRY-V1 ausführen. Dabei sind alle mit transaction gekennzeichneten Abschnitte entsprechend den Transaktionssicherheitsregeln der ePA umzusetzen, sodass diese Abschnitte mit ihren Verarbeitungsschritten atomar, konsistent und isoliert durchgeführt werden.
Abbildung: Geschäftslogik für die Batch API eMP-Einträge

### Sicherheitsanforderungen

Generelle Sicherheitsanforderungen werden hier festgehalten.