Implementation Guide
ePA Medication Service
Version 1.3.5 - 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 rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

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

<http://hl7.org/fhir/CodeSystem/epa-ms-operation-outcome-details> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "epa-ms-operation-outcome-details"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<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>"
  ] ;
  fhir:CodeSystem.url [ fhir:value "https://gematik.de/fhir/epa-medication/CodeSystem/epa-ms-operation-outcome-details"] ;
  fhir:CodeSystem.version [ fhir:value "1.3.0"] ;
  fhir:CodeSystem.name [ fhir:value "EPAMSOperationOutcomeDetailsCS"] ;
  fhir:CodeSystem.title [ fhir:value "EPA Medication Service OperationOutcome Code System"] ;
  fhir:CodeSystem.status [ fhir:value "active"] ;
  fhir:CodeSystem.experimental [ fhir:value "false"^^xsd:boolean] ;
  fhir:CodeSystem.date [ fhir:value "2025-12-15"^^xsd:date] ;
  fhir:CodeSystem.publisher [ fhir:value "gematik GmbH"] ;
  fhir:CodeSystem.contact [
     fhir:index 0 ;
     fhir:ContactDetail.telecom [
       fhir:index 0 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://www.gematik.de" ]
     ]
  ] ;
  fhir:CodeSystem.description [ fhir:value "EPA Medication Service Operation Outcome Code System"] ;
  fhir:CodeSystem.jurisdiction [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ] ;
       fhir:Coding.code [ fhir:value "DE" ]
     ]
  ] ;
  fhir:CodeSystem.copyright [ fhir:value "gematik GmbH / Dieses Artefakt ist lizenziert unter [Apache License](./license.html), Version 2.0."] ;
  fhir:CodeSystem.caseSensitive [ fhir:value "true"^^xsd:boolean] ;
  fhir:CodeSystem.content [ fhir:value "complete"] ;
  fhir:CodeSystem.count [ fhir:value "17"^^xsd:nonNegativeInteger] ;
  fhir:CodeSystem.concept [
     fhir:index 0 ;
     fhir:CodeSystem.concept.code [ fhir:value "MEDSVC_NO_VALID_STRUCTURE" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Invalid Data Structure in Medication Service" ]
  ], [
     fhir:index 1 ;
     fhir:CodeSystem.concept.code [ fhir:value "MEDSVC_PRESCRIPTION_NO_EXIST" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Prescription Not Found in Medication Service" ]
  ], [
     fhir:index 2 ;
     fhir:CodeSystem.concept.code [ fhir:value "MEDSVC_PRESCRIPTION_DUPLICATE" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Duplicate Prescription Detected in Medication Service" ]
  ], [
     fhir:index 3 ;
     fhir:CodeSystem.concept.code [ fhir:value "MEDSVC_PRESCRIPTION_STATUS" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Operation Not Permitted on Current Prescription Status" ]
  ], [
     fhir:index 4 ;
     fhir:CodeSystem.concept.code [ fhir:value "MEDSVC_DISPENSATION_NO_EXIST" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Dispensation Not Found in Medication Service" ]
  ], [
     fhir:index 5 ;
     fhir:CodeSystem.concept.code [ fhir:value "MEDSVC_DISPENSATION_STATUS" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Operation Not Permitted on Current Dispensation Status" ]
  ], [
     fhir:index 6 ;
     fhir:CodeSystem.concept.code [ fhir:value "MEDSVC_OPERATION_SUCCESS" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Operation Successfully Completed in Medication Service" ]
  ], [
     fhir:index 7 ;
     fhir:CodeSystem.concept.code [ fhir:value "MEDSVC_PARAMETERS_REFERENCE_NO_EXIST" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Unresolved Reference in Parameters" ]
  ], [
     fhir:index 8 ;
     fhir:CodeSystem.concept.code [ fhir:value "MEDSVC_STATUS_INVALID" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Invalid Status in Parameters" ]
  ], [
     fhir:index 9 ;
     fhir:CodeSystem.concept.code [ fhir:value "MEDSVC_STATEMENT_NO_EXIST" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "MedicationStatement Not Found" ]
  ], [
     fhir:index 10 ;
     fhir:CodeSystem.concept.code [ fhir:value "MEDSVC_PARAMETERS_INVALID_CONTENT" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Provided content not allowed" ]
  ], [
     fhir:index 11 ;
     fhir:CodeSystem.concept.code [ fhir:value "MEDSVC_DOSAGE_INVALID" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Invalid dosage structure or content" ]
  ], [
     fhir:index 12 ;
     fhir:CodeSystem.concept.code [ fhir:value "MEDSVC_EMP_CHRONOLOGY_ID_MISMATCH" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Mismatch between acknowledged and current eMP chronology ID" ]
  ], [
     fhir:index 13 ;
     fhir:CodeSystem.concept.code [ fhir:value "MEDSVC_OPERATION_OUTSIDE_BATCH" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "The operation can only be executed within a batch context" ]
  ], [
     fhir:index 14 ;
     fhir:CodeSystem.concept.code [ fhir:value "MEDSVC_ALREADY_LINKED" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Already linked to another instance" ]
  ], [
     fhir:index 15 ;
     fhir:CodeSystem.concept.code [ fhir:value "MEDSVC_EMP_ENTRY_ALREADY_EXISTS" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "eMP entry already exists" ]
  ], [
     fhir:index 16 ;
     fhir:CodeSystem.concept.code [ fhir:value "MEDSVC_EMP_NO_EXIST" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "eMP does not exist" ]
  ] .

# - ontology header ------------------------------------------------------------

<http://hl7.org/fhir/CodeSystem/epa-ms-operation-outcome-details.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl ;
  owl:versionIRI <http://build.fhir.org/CodeSystem/epa-ms-operation-outcome-details.ttl> .