@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 -------------------------------------------------------------------

<https://gematik.de/fhir/tiflow-erezept/ValueSet/tiflow-erezept-operation-outcome-details-vs> a fhir:ValueSet ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "tiflow-erezept-operation-outcome-details-vs"] ; # 
  fhir:text [
     fhir:status [ fhir:v "extensions" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: ValueSet tiflow-erezept-operation-outcome-details-vs</b></p><a name=\"tiflow-erezept-operation-outcome-details-vs\"> </a><a name=\"hctiflow-erezept-operation-outcome-details-vs\"> </a><p>This value set includes codes based on the following rules:</p><ul><li>Include all codes defined in <a href=\"CodeSystem-tiflow-erezept-operation-outcome-details-cs.html\"><code>https://gematik.de/fhir/tiflow-erezept/CodeSystem/tiflow-erezept-operation-outcome-details-cs</code></a><span title=\"Version is not explicitly stated, which means it is fixed to the version provided in this specification\"> version ?2.0.0-ballot.1</span></li><li>Include these codes as defined in <a href=\"https://gematik.de/fhir/tiflow/2.0.0-ballot.1/CodeSystem-tiflow-operation-outcome-details-cs.html\"><code>https://gematik.de/fhir/tiflow/CodeSystem/tiflow-operation-outcome-details-cs</code></a><span title=\"Version is not explicitly stated, which means it is fixed to 2.0.0-ballot.1, the version found through the package references\"> version ?2.0.0-ballot.1</span><table class=\"none\"><tr><td style=\"white-space:nowrap\"><b>Code</b></td><td><b>Display</b></td><td><b>Definition</b></td></tr><tr><td><a href=\"https://gematik.de/fhir/tiflow/2.0.0-ballot.1/CodeSystem-tiflow-operation-outcome-details-cs.html#tiflow-operation-outcome-details-cs-TIFLOW_AUTH_ROLE_NOT_ALLOWED\">TIFLOW_AUTH_ROLE_NOT_ALLOWED</a></td><td>Access role not allowed</td><td>The authenticated actor role is not permitted to execute this operation</td></tr><tr><td><a href=\"https://gematik.de/fhir/tiflow/2.0.0-ballot.1/CodeSystem-tiflow-operation-outcome-details-cs.html#tiflow-operation-outcome-details-cs-TIFLOW_SECRET_MISMATCH\">TIFLOW_SECRET_MISMATCH</a></td><td>Task secret mismatch</td><td>The provided task secret does not match the secret stored for the task</td></tr><tr><td><a href=\"https://gematik.de/fhir/tiflow/2.0.0-ballot.1/CodeSystem-tiflow-operation-outcome-details-cs.html#tiflow-operation-outcome-details-cs-TIFLOW_TASK_STATUS_MISMATCH\">TIFLOW_TASK_STATUS_MISMATCH</a></td><td>Task status mismatch</td><td>The task is in a status that does not allow execution of this operation</td></tr><tr><td><a href=\"https://gematik.de/fhir/tiflow/2.0.0-ballot.1/CodeSystem-tiflow-operation-outcome-details-cs.html#tiflow-operation-outcome-details-cs-TIFLOW_MEDICATION_DISPENSE_INVALID\">TIFLOW_MEDICATION_DISPENSE_INVALID</a></td><td>MedicationDispense invalid</td><td>The provided MedicationDispense resource is invalid for this operation</td></tr><tr><td><a href=\"https://gematik.de/fhir/tiflow/2.0.0-ballot.1/CodeSystem-tiflow-operation-outcome-details-cs.html#tiflow-operation-outcome-details-cs-TIFLOW_MEDICATION_DISPENSE_MISSING\">TIFLOW_MEDICATION_DISPENSE_MISSING</a></td><td>MedicationDispense missing</td><td>A required MedicationDispense resource is missing for this operation</td></tr><tr><td><a href=\"https://gematik.de/fhir/tiflow/2.0.0-ballot.1/CodeSystem-tiflow-operation-outcome-details-cs.html#tiflow-operation-outcome-details-cs-TIFLOW_SIGNATURE_NO_OCSP_RESPONSE\">TIFLOW_SIGNATURE_NO_OCSP_RESPONSE</a></td><td>No OCSP response for signature</td><td>Certificate revocation status could not be determined because no OCSP response was available</td></tr><tr><td><a href=\"https://gematik.de/fhir/tiflow/2.0.0-ballot.1/CodeSystem-tiflow-operation-outcome-details-cs.html#tiflow-operation-outcome-details-cs-TIFLOW_AUTH_NOT_OWNER\">TIFLOW_AUTH_NOT_OWNER</a></td><td>Authenticated actor is not owner</td><td>The authenticated actor is not the owner of the addressed task</td></tr><tr><td><a href=\"https://gematik.de/fhir/tiflow/2.0.0-ballot.1/CodeSystem-tiflow-operation-outcome-details-cs.html#tiflow-operation-outcome-details-cs-TIFLOW_ACCESSCODE_MISMATCH\">TIFLOW_ACCESSCODE_MISMATCH</a></td><td>Access code mismatch</td><td>The provided access code does not match the access code assigned to the task</td></tr><tr><td><a href=\"https://gematik.de/fhir/tiflow/2.0.0-ballot.1/CodeSystem-tiflow-operation-outcome-details-cs.html#tiflow-operation-outcome-details-cs-TIFLOW_TASK_ID_REQUIRED\">TIFLOW_TASK_ID_REQUIRED</a></td><td>Task id required</td><td>The operation requires a task id in the request</td></tr><tr><td><a href=\"https://gematik.de/fhir/tiflow/2.0.0-ballot.1/CodeSystem-tiflow-operation-outcome-details-cs.html#tiflow-operation-outcome-details-cs-TIFLOW_KVNR_MISMATCH\">TIFLOW_KVNR_MISMATCH</a></td><td>KVNR mismatch</td><td>The KVNR in the request does not match the KVNR assigned to the task context</td></tr><tr><td><a href=\"https://gematik.de/fhir/tiflow/2.0.0-ballot.1/CodeSystem-tiflow-operation-outcome-details-cs.html#tiflow-operation-outcome-details-cs-TIFLOW_SIGNATURE_INVALID_ISSUING_ROLE\">TIFLOW_SIGNATURE_INVALID_ISSUING_ROLE</a></td><td>Signature issuing role invalid</td><td>The signature was created by an actor role that is not allowed for the signed artifact</td></tr><tr><td><a href=\"https://gematik.de/fhir/tiflow/2.0.0-ballot.1/CodeSystem-tiflow-operation-outcome-details-cs.html#tiflow-operation-outcome-details-cs-TIFLOW_FLOWTYPE_MISMATCH\">TIFLOW_FLOWTYPE_MISMATCH</a></td><td>Flow type mismatch</td><td>The task flow type does not match the expected flow for this operation</td></tr><tr><td><a href=\"https://gematik.de/fhir/tiflow/2.0.0-ballot.1/CodeSystem-tiflow-operation-outcome-details-cs.html#tiflow-operation-outcome-details-cs-TIFLOW_COVERAGE_TYPE_MISMATCH\">TIFLOW_COVERAGE_TYPE_MISMATCH</a></td><td>Coverage type mismatch</td><td>The coverage type does not match the expected coverage context</td></tr><tr><td><a href=\"https://gematik.de/fhir/tiflow/2.0.0-ballot.1/CodeSystem-tiflow-operation-outcome-details-cs.html#tiflow-operation-outcome-details-cs-TIFLOW_CERTIFICATE_INVALID\">TIFLOW_CERTIFICATE_INVALID</a></td><td>Certificate invalid</td><td>The certificate used for authentication or signature validation is invalid</td></tr><tr><td><a href=\"https://gematik.de/fhir/tiflow/2.0.0-ballot.1/CodeSystem-tiflow-operation-outcome-details-cs.html#tiflow-operation-outcome-details-cs-TIFLOW_OCSP_BACKEND_ERROR\">TIFLOW_OCSP_BACKEND_ERROR</a></td><td>Invalid OCSP response</td><td>Failed to retrieve the OCSP response for the certificate of the signature</td></tr><tr><td><a href=\"https://gematik.de/fhir/tiflow/2.0.0-ballot.1/CodeSystem-tiflow-operation-outcome-details-cs.html#tiflow-operation-outcome-details-cs-TIFLOW_SIGNATURE_INVALID\">TIFLOW_SIGNATURE_INVALID</a></td><td>Signature invalid</td><td>The digital signature is invalid or cannot be verified</td></tr><tr><td><a href=\"https://gematik.de/fhir/tiflow/2.0.0-ballot.1/CodeSystem-tiflow-operation-outcome-details-cs.html#tiflow-operation-outcome-details-cs-TIFLOW_KVNR_INVALID\">TIFLOW_KVNR_INVALID</a></td><td>KVNR invalid</td><td>The provided KVNR is invalid or does not conform to the expected format</td></tr><tr><td><a href=\"https://gematik.de/fhir/tiflow/2.0.0-ballot.1/CodeSystem-tiflow-operation-outcome-details-cs.html#tiflow-operation-outcome-details-cs-TIFLOW_SIGNATURE_AUTHOREDON_MISMATCH\">TIFLOW_SIGNATURE_AUTHOREDON_MISMATCH</a></td><td>Signature authoredOn mismatch</td><td>The authoredOn timestamp does not match the signed content</td></tr><tr><td><a href=\"https://gematik.de/fhir/tiflow/2.0.0-ballot.1/CodeSystem-tiflow-operation-outcome-details-cs.html#tiflow-operation-outcome-details-cs-TIFLOW_IKNR_INVALID\">TIFLOW_IKNR_INVALID</a></td><td>IKNR invalid</td><td>The provided IKNR is invalid or not accepted in this context</td></tr><tr><td><a href=\"https://gematik.de/fhir/tiflow/2.0.0-ballot.1/CodeSystem-tiflow-operation-outcome-details-cs.html#tiflow-operation-outcome-details-cs-TIFLOW_LANR_ZANR_INVALID\">TIFLOW_LANR_ZANR_INVALID</a></td><td>LANR or ZANR invalid</td><td>The provided LANR or ZANR is invalid or not accepted for this operation</td></tr><tr><td><a href=\"https://gematik.de/fhir/tiflow/2.0.0-ballot.1/CodeSystem-tiflow-operation-outcome-details-cs.html#tiflow-operation-outcome-details-cs-TIFLOW_TASK_DELETED\">TIFLOW_TASK_DELETED</a></td><td>Task deleted</td><td>The task was already cancelled or deleted and can no longer be processed</td></tr><tr><td><a href=\"https://gematik.de/fhir/tiflow/2.0.0-ballot.1/CodeSystem-tiflow-operation-outcome-details-cs.html#tiflow-operation-outcome-details-cs-TIFLOW_TASK_EXPIRED\">TIFLOW_TASK_EXPIRED</a></td><td>Task expired</td><td>The task cannot be processed because its redemption period has expired</td></tr><tr><td><a href=\"https://gematik.de/fhir/tiflow/2.0.0-ballot.1/CodeSystem-tiflow-operation-outcome-details-cs.html#tiflow-operation-outcome-details-cs-TIFLOW_MESSAGE_TO_SELF\">TIFLOW_MESSAGE_TO_SELF</a></td><td>Message to self not allowed</td><td>A communication message addressed to the sender itself is not permitted</td></tr><tr><td><a href=\"https://gematik.de/fhir/tiflow/2.0.0-ballot.1/CodeSystem-tiflow-operation-outcome-details-cs.html#tiflow-operation-outcome-details-cs-TIFLOW_COMMUNICATION_PAYLOAD_INVALID\">TIFLOW_COMMUNICATION_PAYLOAD_INVALID</a></td><td>Communication payload invalid</td><td>The communication payload is syntactically or semantically invalid</td></tr><tr><td><a href=\"https://gematik.de/fhir/tiflow/2.0.0-ballot.1/CodeSystem-tiflow-operation-outcome-details-cs.html#tiflow-operation-outcome-details-cs-TIFLOW_INSURANT_NOT_ELIGIBLE\">TIFLOW_INSURANT_NOT_ELIGIBLE</a></td><td>Insurant not eligible</td><td>The insurant does not meet the eligibility constraints for this communication flow</td></tr><tr><td><a href=\"https://gematik.de/fhir/tiflow/2.0.0-ballot.1/CodeSystem-tiflow-operation-outcome-details-cs.html#tiflow-operation-outcome-details-cs-TIFLOW_RECIPIENT_INVALID\">TIFLOW_RECIPIENT_INVALID</a></td><td>Recipient invalid</td><td>The specified recipient is invalid for the requested communication</td></tr><tr><td><a href=\"https://gematik.de/fhir/tiflow/2.0.0-ballot.1/CodeSystem-tiflow-operation-outcome-details-cs.html#tiflow-operation-outcome-details-cs-TIFLOW_TASK_NOT_FOUND\">TIFLOW_TASK_NOT_FOUND</a></td><td>Task not found</td><td>The referenced task does not exist</td></tr><tr><td><a href=\"https://gematik.de/fhir/tiflow/2.0.0-ballot.1/CodeSystem-tiflow-operation-outcome-details-cs.html#tiflow-operation-outcome-details-cs-TIFLOW_MVO_NOT_VALID_YET\">TIFLOW_MVO_NOT_VALID_YET</a></td><td>MVO not valid yet</td><td>The multi-prescription is not yet valid at the current point in time</td></tr></table></li><li>Include these codes as defined in <a href=\"https://simplifier.net/resolve?scope=de.gematik.epa.medication@1.3.2&amp;canonical=https://gematik.de/fhir/ti/CodeSystem/operation-outcome-details-codes\"><code>https://gematik.de/fhir/ti/CodeSystem/operation-outcome-details-codes</code></a><span title=\"Version is explicitly stated to be 1.3.0\"> version ?1.3.0</span><table class=\"none\"><tr><td style=\"white-space:nowrap\"><b>Code</b></td><td><b>Display</b></td></tr><tr><td><a href=\"https://simplifier.net/resolve?scope=de.gematik.epa.medication@1.3.2&amp;canonical=https://gematik.de/fhir/ti/CodeSystem/operation-outcome-details-codes#operation-outcome-details-codes-SVC_VALIDATION_FAILED\">SVC_VALIDATION_FAILED</a></td><td>FHIR Profile Validation Failed</td></tr><tr><td><a href=\"https://simplifier.net/resolve?scope=de.gematik.epa.medication@1.3.2&amp;canonical=https://gematik.de/fhir/ti/CodeSystem/operation-outcome-details-codes#operation-outcome-details-codes-SVC_IDENTITY_MISMATCH\">SVC_IDENTITY_MISMATCH</a></td><td>Identity mismatch: Access token or x-insurantid header does not match FHIR data (Telematik-ID / KVNR)</td></tr><tr><td><a href=\"https://simplifier.net/resolve?scope=de.gematik.epa.medication@1.3.2&amp;canonical=https://gematik.de/fhir/ti/CodeSystem/operation-outcome-details-codes#operation-outcome-details-codes-SVC_TELEMATIKID_TEMPORARILY_BLOCKED\">SVC_TELEMATIKID_TEMPORARILY_BLOCKED</a></td><td>The specified Telematik-ID is temporarily blocked</td></tr></table></li></ul></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:url [
     fhir:v "https://gematik.de/fhir/tiflow-erezept/ValueSet/tiflow-erezept-operation-outcome-details-vs"^^xsd:anyURI ;
     fhir:l <https://gematik.de/fhir/tiflow-erezept/ValueSet/tiflow-erezept-operation-outcome-details-vs>
  ] ; # 
  fhir:version [ fhir:v "2.0.0-ballot.1"] ; # 
  fhir:name [ fhir:v "TIFLOWEREZEPTOperationOutcomeDetailsVS"] ; # 
  fhir:title [ fhir:v "TIFLOW EREZEPT Operation Outcome Details VS"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:experimental [ fhir:v false] ; # 
  fhir:date [ fhir:v "2028-04-01"^^xsd:date] ; # 
  fhir:publisher [ fhir:v "gematik GmbH"] ; # 
  fhir:contact ( [
     fhir:name [ fhir:v "gematik GmbH" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "https://gematik.de" ]
     ] [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "erp-umsetzung@gematik.de" ]
     ] )
  ] ) ; # 
  fhir:description [ fhir:v "E-Rezept-spezifische Codes, die im Rahmen des TIFlow in den OperationOutcomes.details angegeben werden können"] ; # 
  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:display [ fhir:v "Germany" ]
     ] )
  ] ) ; # 
  fhir:immutable [ fhir:v false] ; # 
  fhir:copyright [ fhir:v "gematik GmbH / Dieses Artefakt ist lizenziert unter [Apache License](./license.html), Version 2.0."] ; # 
  fhir:compose [
     fhir:include ( [
       fhir:system [
         fhir:v "https://gematik.de/fhir/tiflow-erezept/CodeSystem/tiflow-erezept-operation-outcome-details-cs"^^xsd:anyURI ;
         fhir:l <https://gematik.de/fhir/tiflow-erezept/CodeSystem/tiflow-erezept-operation-outcome-details-cs>
       ]
     ] [
       fhir:system [
         fhir:v "https://gematik.de/fhir/tiflow/CodeSystem/tiflow-operation-outcome-details-cs"^^xsd:anyURI ;
         fhir:l <https://gematik.de/fhir/tiflow/CodeSystem/tiflow-operation-outcome-details-cs>
       ] ;
       fhir:concept ( [
         fhir:code [ fhir:v "TIFLOW_AUTH_ROLE_NOT_ALLOWED" ] ;
         fhir:display [ fhir:v "Access role not allowed" ]
       ] [
         fhir:code [ fhir:v "TIFLOW_SECRET_MISMATCH" ] ;
         fhir:display [ fhir:v "Task secret mismatch" ]
       ] [
         fhir:code [ fhir:v "TIFLOW_TASK_STATUS_MISMATCH" ] ;
         fhir:display [ fhir:v "Task status mismatch" ]
       ] [
         fhir:code [ fhir:v "TIFLOW_MEDICATION_DISPENSE_INVALID" ] ;
         fhir:display [ fhir:v "MedicationDispense invalid" ]
       ] [
         fhir:code [ fhir:v "TIFLOW_MEDICATION_DISPENSE_MISSING" ] ;
         fhir:display [ fhir:v "MedicationDispense missing" ]
       ] [
         fhir:code [ fhir:v "TIFLOW_SIGNATURE_NO_OCSP_RESPONSE" ] ;
         fhir:display [ fhir:v "No OCSP response for signature" ]
       ] [
         fhir:code [ fhir:v "TIFLOW_AUTH_NOT_OWNER" ] ;
         fhir:display [ fhir:v "Authenticated actor is not owner" ]
       ] [
         fhir:code [ fhir:v "TIFLOW_ACCESSCODE_MISMATCH" ] ;
         fhir:display [ fhir:v "Access code mismatch" ]
       ] [
         fhir:code [ fhir:v "TIFLOW_TASK_ID_REQUIRED" ] ;
         fhir:display [ fhir:v "Task id required" ]
       ] [
         fhir:code [ fhir:v "TIFLOW_KVNR_MISMATCH" ] ;
         fhir:display [ fhir:v "KVNR mismatch" ]
       ] [
         fhir:code [ fhir:v "TIFLOW_SIGNATURE_INVALID_ISSUING_ROLE" ] ;
         fhir:display [ fhir:v "Signature issuing role invalid" ]
       ] [
         fhir:code [ fhir:v "TIFLOW_FLOWTYPE_MISMATCH" ] ;
         fhir:display [ fhir:v "Flow type mismatch" ]
       ] [
         fhir:code [ fhir:v "TIFLOW_COVERAGE_TYPE_MISMATCH" ] ;
         fhir:display [ fhir:v "Coverage type mismatch" ]
       ] [
         fhir:code [ fhir:v "TIFLOW_CERTIFICATE_INVALID" ] ;
         fhir:display [ fhir:v "Certificate invalid" ]
       ] [
         fhir:code [ fhir:v "TIFLOW_OCSP_BACKEND_ERROR" ] ;
         fhir:display [ fhir:v "Invalid OCSP response" ]
       ] [
         fhir:code [ fhir:v "TIFLOW_SIGNATURE_INVALID" ] ;
         fhir:display [ fhir:v "Signature invalid" ]
       ] [
         fhir:code [ fhir:v "TIFLOW_KVNR_INVALID" ] ;
         fhir:display [ fhir:v "KVNR invalid" ]
       ] [
         fhir:code [ fhir:v "TIFLOW_SIGNATURE_AUTHOREDON_MISMATCH" ] ;
         fhir:display [ fhir:v "Signature authoredOn mismatch" ]
       ] [
         fhir:code [ fhir:v "TIFLOW_IKNR_INVALID" ] ;
         fhir:display [ fhir:v "IKNR invalid" ]
       ] [
         fhir:code [ fhir:v "TIFLOW_LANR_ZANR_INVALID" ] ;
         fhir:display [ fhir:v "LANR or ZANR invalid" ]
       ] [
         fhir:code [ fhir:v "TIFLOW_TASK_DELETED" ] ;
         fhir:display [ fhir:v "Task deleted" ]
       ] [
         fhir:code [ fhir:v "TIFLOW_TASK_EXPIRED" ] ;
         fhir:display [ fhir:v "Task expired" ]
       ] [
         fhir:code [ fhir:v "TIFLOW_MESSAGE_TO_SELF" ] ;
         fhir:display [ fhir:v "Message to self not allowed" ]
       ] [
         fhir:code [ fhir:v "TIFLOW_COMMUNICATION_PAYLOAD_INVALID" ] ;
         fhir:display [ fhir:v "Communication payload invalid" ]
       ] [
         fhir:code [ fhir:v "TIFLOW_INSURANT_NOT_ELIGIBLE" ] ;
         fhir:display [ fhir:v "Insurant not eligible" ]
       ] [
         fhir:code [ fhir:v "TIFLOW_RECIPIENT_INVALID" ] ;
         fhir:display [ fhir:v "Recipient invalid" ]
       ] [
         fhir:code [ fhir:v "TIFLOW_TASK_NOT_FOUND" ] ;
         fhir:display [ fhir:v "Task not found" ]
       ] [
         fhir:code [ fhir:v "TIFLOW_MVO_NOT_VALID_YET" ] ;
         fhir:display [ fhir:v "MVO not valid yet" ]
       ] )
     ] [
       fhir:system [
         fhir:v "https://gematik.de/fhir/ti/CodeSystem/operation-outcome-details-codes"^^xsd:anyURI ;
         fhir:l <https://gematik.de/fhir/ti/CodeSystem/operation-outcome-details-codes>
       ] ;
       fhir:version [ fhir:v "1.3.0" ] ;
       fhir:concept ( [
         fhir:code [ fhir:v "SVC_VALIDATION_FAILED" ] ;
         fhir:display [ fhir:v "FHIR Profile Validation Failed" ]
       ] [
         fhir:code [ fhir:v "SVC_IDENTITY_MISMATCH" ] ;
         fhir:display [ fhir:v "Identity mismatch: Access token or x-insurantid header does not match FHIR data (Telematik-ID / KVNR)" ]
       ] [
         fhir:code [ fhir:v "SVC_TELEMATIKID_TEMPORARILY_BLOCKED" ] ;
         fhir:display [ fhir:v "The specified Telematik-ID is temporarily blocked" ]
       ] )
     ] )
  ] . # 

# -------------------------------------------------------------------------------------

