Implementation Guide
ePA Medication Service
Version 1.3.0 - release

## : EPA Medication Service OperationOutcome Code System - TTL Representation

Active as of 2025-12-15

Raw ttl | Download

    @prefix fhir: <http://hl7.org/fhir/> .
    @prefix owl: <http://www.w3.org/2002/07/owl#> .
    @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
    @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
    @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

    # - resource -------------------------------------------------------------------

     a fhir:CodeSystem ;
      fhir:nodeRole fhir:treeRoot ;
      fhir:id [ fhir:v "epa-ms-operation-outcome-details"] ; #
      fhir:text [
    fhir:status [ fhir:v "generated" ] ;
    fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: CodeSystem epa-ms-operation-outcome-details</b></p><a name=\"epa-ms-operation-outcome-details\"> </a><a name=\"hcepa-ms-operation-outcome-details\"> </a><p>This case-sensitive code system <code>https://gematik.de/fhir/epa-medication/CodeSystem/epa-ms-operation-outcome-details</code> defines the following codes:</p><table class=\"codes\"><tr><td style=\"white-space:nowrap\"><b>Code</b></td><td><b>Display</b></td></tr><tr><td style=\"white-space:nowrap\">MEDSVC_NO_VALID_STRUCTURE<a name=\"epa-ms-operation-outcome-details-MEDSVC_NO_VALID_STRUCTURE\"> </a></td><td>Invalid Data Structure in Medication Service</td></tr><tr><td style=\"white-space:nowrap\">MEDSVC_PRESCRIPTION_NO_EXIST<a name=\"epa-ms-operation-outcome-details-MEDSVC_PRESCRIPTION_NO_EXIST\"> </a></td><td>Prescription Not Found in Medication Service</td></tr><tr><td style=\"white-space:nowrap\">MEDSVC_PRESCRIPTION_DUPLICATE<a name=\"epa-ms-operation-outcome-details-MEDSVC_PRESCRIPTION_DUPLICATE\"> </a></td><td>Duplicate Prescription Detected in Medication Service</td></tr><tr><td style=\"white-space:nowrap\">MEDSVC_PRESCRIPTION_STATUS<a name=\"epa-ms-operation-outcome-details-MEDSVC_PRESCRIPTION_STATUS\"> </a></td><td>Operation Not Permitted on Current Prescription Status</td></tr><tr><td style=\"white-space:nowrap\">MEDSVC_DISPENSATION_NO_EXIST<a name=\"epa-ms-operation-outcome-details-MEDSVC_DISPENSATION_NO_EXIST\"> </a></td><td>Dispensation Not Found in Medication Service</td></tr><tr><td style=\"white-space:nowrap\">MEDSVC_DISPENSATION_STATUS<a name=\"epa-ms-operation-outcome-details-MEDSVC_DISPENSATION_STATUS\"> </a></td><td>Operation Not Permitted on Current Dispensation Status</td></tr><tr><td style=\"white-space:nowrap\">MEDSVC_OPERATION_SUCCESS<a name=\"epa-ms-operation-outcome-details-MEDSVC_OPERATION_SUCCESS\"> </a></td><td>Operation Successfully Completed in Medication Service</td></tr><tr><td style=\"white-space:nowrap\">MEDSVC_PARAMETERS_REFERENCE_NO_EXIST<a name=\"epa-ms-operation-outcome-details-MEDSVC_PARAMETERS_REFERENCE_NO_EXIST\"> </a></td><td>Unresolved Reference in Parameters</td></tr><tr><td style=\"white-space:nowrap\">MEDSVC_STATUS_INVALID<a name=\"epa-ms-operation-outcome-details-MEDSVC_STATUS_INVALID\"> </a></td><td>Invalid Status in Parameters</td></tr><tr><td style=\"white-space:nowrap\">MEDSVC_STATEMENT_NO_EXIST<a name=\"epa-ms-operation-outcome-details-MEDSVC_STATEMENT_NO_EXIST\"> </a></td><td>MedicationStatement Not Found</td></tr><tr><td style=\"white-space:nowrap\">MEDSVC_PARAMETERS_INVALID_CONTENT<a name=\"epa-ms-operation-outcome-details-MEDSVC_PARAMETERS_INVALID_CONTENT\"> </a></td><td>Provided content not allowed</td></tr><tr><td style=\"white-space:nowrap\">MEDSVC_DOSAGE_INVALID<a name=\"epa-ms-operation-outcome-details-MEDSVC_DOSAGE_INVALID\"> </a></td><td>Invalid dosage structure or content</td></tr><tr><td style=\"white-space:nowrap\">MEDSVC_EMP_CHRONOLOGY_ID_MISMATCH<a name=\"epa-ms-operation-outcome-details-MEDSVC_EMP_CHRONOLOGY_ID_MISMATCH\"> </a></td><td>Mismatch between acknowledged and current eMP chronology ID</td></tr><tr><td style=\"white-space:nowrap\">MEDSVC_OPERATION_OUTSIDE_BATCH<a name=\"epa-ms-operation-outcome-details-MEDSVC_OPERATION_OUTSIDE_BATCH\"> </a></td><td>The operation can only be executed within a batch context</td></tr><tr><td style=\"white-space:nowrap\">MEDSVC_ALREADY_LINKED<a name=\"epa-ms-operation-outcome-details-MEDSVC_ALREADY_LINKED\"> </a></td><td>Already linked to another instance</td></tr><tr><td style=\"white-space:nowrap\">MEDSVC_EMP_ENTRY_ALREADY_EXISTS<a name=\"epa-ms-operation-outcome-details-MEDSVC_EMP_ENTRY_ALREADY_EXISTS\"> </a></td><td>eMP entry already exists</td></tr><tr><td style=\"white-space:nowrap\">MEDSVC_EMP_NO_EXIST<a name=\"epa-ms-operation-outcome-details-MEDSVC_EMP_NO_EXIST\"> </a></td><td>eMP does not exist</td></tr></table></div>"^^rdf:XMLLiteral ]
      ] ; #
      fhir:url [
    fhir:v "https://gematik.de/fhir/epa-medication/CodeSystem/epa-ms-operation-outcome-details"^^xsd:anyURI ;
    fhir:l <https://gematik.de/fhir/epa-medication/CodeSystem/epa-ms-operation-outcome-details>
      ] ; #
      fhir:version [ fhir:v "1.3.0"] ; #
      fhir:name [ fhir:v "EPAMSOperationOutcomeDetailsCS"] ; #
      fhir:title [ fhir:v "EPA Medication Service OperationOutcome Code System"] ; #
      fhir:status [ fhir:v "active"] ; #
      fhir:experimental [ fhir:v false] ; #
      fhir:date [ fhir:v "2025-12-15"^^xsd:date] ; #
      fhir:publisher [ fhir:v "gematik GmbH"] ; #
      fhir:contact ( [
        ( fhir:telecom [
    fhir:system [ fhir:v "url" ] ;
    fhir:value [ fhir:v "https://www.gematik.de" ]     ] )
      ] ) ; #
      fhir:description [ fhir:v "EPA Medication Service Operation Outcome Code System"] ; #
      fhir:jurisdiction ( [
        ( fhir:coding [
    fhir:system [
    fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ;
    fhir:l <urn:iso:std:iso:3166>       ] ;
    fhir:code [ fhir:v "DE" ]     ] )
      ] ) ; #
      fhir:copyright [ fhir:v "gematik GmbH / Dieses Artefakt ist lizenziert unter [Apache License](./license.html), Version 2.0."] ; #
      fhir:caseSensitive [ fhir:v true] ; #
      fhir:content [ fhir:v "complete"] ; #
      fhir:count [ fhir:v "17"^^xsd:nonNegativeInteger] ; #
      fhir:concept ( [
    fhir:code [ fhir:v "MEDSVC_NO_VALID_STRUCTURE" ] ;
    fhir:display [ fhir:v "Invalid Data Structure in Medication Service" ]
      ] [
    fhir:code [ fhir:v "MEDSVC_PRESCRIPTION_NO_EXIST" ] ;
    fhir:display [ fhir:v "Prescription Not Found in Medication Service" ]
      ] [
    fhir:code [ fhir:v "MEDSVC_PRESCRIPTION_DUPLICATE" ] ;
    fhir:display [ fhir:v "Duplicate Prescription Detected in Medication Service" ]
      ] [
    fhir:code [ fhir:v "MEDSVC_PRESCRIPTION_STATUS" ] ;
    fhir:display [ fhir:v "Operation Not Permitted on Current Prescription Status" ]
      ] [
    fhir:code [ fhir:v "MEDSVC_DISPENSATION_NO_EXIST" ] ;
    fhir:display [ fhir:v "Dispensation Not Found in Medication Service" ]
      ] [
    fhir:code [ fhir:v "MEDSVC_DISPENSATION_STATUS" ] ;
    fhir:display [ fhir:v "Operation Not Permitted on Current Dispensation Status" ]
      ] [
    fhir:code [ fhir:v "MEDSVC_OPERATION_SUCCESS" ] ;
    fhir:display [ fhir:v "Operation Successfully Completed in Medication Service" ]
      ] [
    fhir:code [ fhir:v "MEDSVC_PARAMETERS_REFERENCE_NO_EXIST" ] ;
    fhir:display [ fhir:v "Unresolved Reference in Parameters" ]
      ] [
    fhir:code [ fhir:v "MEDSVC_STATUS_INVALID" ] ;
    fhir:display [ fhir:v "Invalid Status in Parameters" ]
      ] [
    fhir:code [ fhir:v "MEDSVC_STATEMENT_NO_EXIST" ] ;
    fhir:display [ fhir:v "MedicationStatement Not Found" ]
      ] [
    fhir:code [ fhir:v "MEDSVC_PARAMETERS_INVALID_CONTENT" ] ;
    fhir:display [ fhir:v "Provided content not allowed" ]
      ] [
    fhir:code [ fhir:v "MEDSVC_DOSAGE_INVALID" ] ;
    fhir:display [ fhir:v "Invalid dosage structure or content" ]
      ] [
    fhir:code [ fhir:v "MEDSVC_EMP_CHRONOLOGY_ID_MISMATCH" ] ;
    fhir:display [ fhir:v "Mismatch between acknowledged and current eMP chronology ID" ]
      ] [
    fhir:code [ fhir:v "MEDSVC_OPERATION_OUTSIDE_BATCH" ] ;
    fhir:display [ fhir:v "The operation can only be executed within a batch context" ]
      ] [
    fhir:code [ fhir:v "MEDSVC_ALREADY_LINKED" ] ;
    fhir:display [ fhir:v "Already linked to another instance" ]
      ] [
    fhir:code [ fhir:v "MEDSVC_EMP_ENTRY_ALREADY_EXISTS" ] ;
    fhir:display [ fhir:v "eMP entry already exists" ]
      ] [
    fhir:code [ fhir:v "MEDSVC_EMP_NO_EXIST" ] ;
    fhir:display [ fhir:v "eMP does not exist" ]
      ] ) . #