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

## CodeSystem: EPA Medication Service OperationOutcome Code System

Official URL: https://gematik.de/fhir/epa-medication/CodeSystem/epa-ms-operation-outcome-details | Version: 1.2.0-ballot.2
Draft as of 2025-09-02 | Computable Name: EPAMSOperationOutcomeDetailsCS

EPA Medication Service Operation Outcome Code System

This Code system is referenced in the content logical definition of the following value sets:

- EPAMSOperationOutcomeDetailsVS

This case-sensitive code system `https://gematik.de/fhir/epa-medication/CodeSystem/epa-ms-operation-outcome-details` defines the following codes:

Code | Display
MEDICATIONSVC_NO_VALID_STRUCTURE | Invalid Data Structure in Medication Service
MEDICATIONSVC_PRESCRIPTION_NO_EXIST | Prescription Not Found in Medication Service
MEDICATIONSVC_PRESCRIPTION_DUPLICATE | Duplicate Prescription Detected in Medication Service
MEDICATIONSVC_PRESCRIPTION_STATUS | Operation Not Permitted on Current Prescription Status
MEDICATIONSVC_DISPENSATION_NO_EXIST | Dispensation Not Found in Medication Service
MEDICATIONSVC_DISPENSATION_STATUS | Operation Not Permitted on Current Dispensation Status
MEDICATIONSVC_OPERATION_SUCCESS | Operation Successfully Completed in Medication Service
MEDICATIONSVC_PARAMETERS_REFERENCE_NO_EXIST | Unresolved Reference in Parameters
MEDSVC_STATUS_INVALID | Invalid Status in Parameters
MEDSVC_STATEMENT_NO_EXIST | MedicationStatement Not Found
MEDSVC_PARAMETERS_INVALID_CONTENT | Provided content not allowed
MEDSVC_DOSAGE_INVALID | Invalid dosage structure or content
MEDSVC_EMP_CHRONOLOGY_ID_MISMATCH | Mismatch between acknowledged and current eMP chronology ID
MEDSVC_OPERATION_OUTSIDE_BATCH | The operation can only be executed within a batch context