@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 -------------------------------------------------------------------

<http://fhir.tiro.health/CodeSystem/operation-outcome-issue-detail> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "operation-outcome-issue-detail"] ; # 
  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 operation-outcome-issue-detail</b></p><a name=\"operation-outcome-issue-detail\"> </a><a name=\"hcoperation-outcome-issue-detail\"> </a><p>This case-sensitive code system <code>http://fhir.tiro.health/CodeSystem/operation-outcome-issue-detail</code> defines the following codes:</p><table class=\"codes\"><tr><td style=\"white-space:nowrap\"><b>Code</b></td><td><b>Display</b></td><td><b>Definition</b></td></tr><tr><td style=\"white-space:nowrap\">VALIDATE_PATIENT_SUCCESS<a name=\"operation-outcome-issue-detail-VALIDATE_PATIENT_SUCCESS\"> </a></td><td>Patient validation successful</td><td>Returned as an information/success issue when a Patient validation operation succeeds.</td></tr><tr><td style=\"white-space:nowrap\">VALIDATE_TASK_SUCCESS<a name=\"operation-outcome-issue-detail-VALIDATE_TASK_SUCCESS\"> </a></td><td>Task validation successful</td><td>Returned as an information/success issue when a Task validation operation succeeds.</td></tr><tr><td style=\"white-space:nowrap\">VALIDATE_TEMPLATE_FAILURE<a name=\"operation-outcome-issue-detail-VALIDATE_TEMPLATE_FAILURE\"> </a></td><td>Template validation failed</td><td>The template failed validation; check for empty blocks or groups.</td></tr><tr><td style=\"white-space:nowrap\">VALIDATE_RESOURCE_FAILURE<a name=\"operation-outcome-issue-detail-VALIDATE_RESOURCE_FAILURE\"> </a></td><td>Resource validation failed</td><td>The submitted resource failed validation; check for empty blocks or groups. Returned on 422 validation errors.</td></tr><tr><td style=\"white-space:nowrap\">TEMPLATE_NOT_ACTIVE<a name=\"operation-outcome-issue-detail-TEMPLATE_NOT_ACTIVE\"> </a></td><td>Template not active or does not exist</td><td>The referenced questionnaire template (canonical, optionally version-pinned) is not active — it was retired or superseded by a newer version, or does not exist. Returned as a 400 by Task/$initialize. Prefer a version-independent canonical.</td></tr><tr><td style=\"white-space:nowrap\">TEMPLATE_EXPERIMENTAL_VERSION_REQUIRED<a name=\"operation-outcome-issue-detail-TEMPLATE_EXPERIMENTAL_VERSION_REQUIRED\"> </a></td><td>Experimental template requires an explicit version</td><td>The referenced template is experimental and requires an explicit version in the canonical reference (e.g. `...|1.2.0`). Returned as a 400 by Task/$initialize.</td></tr><tr><td style=\"white-space:nowrap\">INITIAL_RESPONSE_PATIENT_MISMATCH<a name=\"operation-outcome-issue-detail-INITIAL_RESPONSE_PATIENT_MISMATCH\"> </a></td><td>Initial-response Patient mismatch</td><td>The supplied initial-response QuestionnaireResponse references a different Patient than the Task. Returned as a 400 by Task/$initialize.</td></tr><tr><td style=\"white-space:nowrap\">INITIAL_RESPONSE_CANONICAL_MISMATCH<a name=\"operation-outcome-issue-detail-INITIAL_RESPONSE_CANONICAL_MISMATCH\"> </a></td><td>Initial-response canonical mismatch</td><td>The supplied initial-response QuestionnaireResponse is based on a different questionnaire canonical than the Task. Returned as a 400 by Task/$initialize.</td></tr></table></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:url [
     fhir:v "http://fhir.tiro.health/CodeSystem/operation-outcome-issue-detail"^^xsd:anyURI ;
     fhir:l <http://fhir.tiro.health/CodeSystem/operation-outcome-issue-detail>
  ] ; # 
  fhir:version [ fhir:v "0.1.0"] ; # 
  fhir:name [ fhir:v "OperationOutcomeIssueDetail"] ; # 
  fhir:title [ fhir:v "Operation Outcome Issue Detail"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:experimental [ fhir:v false] ; # 
  fhir:date [ fhir:v "2026-06-09T06:13:55+00:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "Tiro.health"] ; # 
  fhir:contact ( [
     fhir:name [ fhir:v "Tiro.health" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://tiro.health" ]
     ] )
  ] ) ; # 
  fhir:description [ fhir:v "Tiro.health detail codes carried in `OperationOutcome.issue.details.coding`. They give a stable, machine-readable classification of an issue beyond the standard FHIR issue-type (`OperationOutcome.issue.code`). Consumers should branch on these codes rather than on the free-text `issue.details.text`. Documentation: https://docs.tiro.health/fhir/errors"] ; # 
  fhir:caseSensitive [ fhir:v true] ; # 
  fhir:content [ fhir:v "complete"] ; # 
  fhir:count [ fhir:v "8"^^xsd:nonNegativeInteger] ; # 
  fhir:concept ( [
     fhir:code [ fhir:v "VALIDATE_PATIENT_SUCCESS" ] ;
     fhir:display [ fhir:v "Patient validation successful" ] ;
     fhir:definition [ fhir:v "Returned as an information/success issue when a Patient validation operation succeeds." ]
  ] [
     fhir:code [ fhir:v "VALIDATE_TASK_SUCCESS" ] ;
     fhir:display [ fhir:v "Task validation successful" ] ;
     fhir:definition [ fhir:v "Returned as an information/success issue when a Task validation operation succeeds." ]
  ] [
     fhir:code [ fhir:v "VALIDATE_TEMPLATE_FAILURE" ] ;
     fhir:display [ fhir:v "Template validation failed" ] ;
     fhir:definition [ fhir:v "The template failed validation; check for empty blocks or groups." ]
  ] [
     fhir:code [ fhir:v "VALIDATE_RESOURCE_FAILURE" ] ;
     fhir:display [ fhir:v "Resource validation failed" ] ;
     fhir:definition [ fhir:v "The submitted resource failed validation; check for empty blocks or groups. Returned on 422 validation errors." ]
  ] [
     fhir:code [ fhir:v "TEMPLATE_NOT_ACTIVE" ] ;
     fhir:display [ fhir:v "Template not active or does not exist" ] ;
     fhir:definition [ fhir:v "The referenced questionnaire template (canonical, optionally version-pinned) is not active — it was retired or superseded by a newer version, or does not exist. Returned as a 400 by Task/$initialize. Prefer a version-independent canonical." ]
  ] [
     fhir:code [ fhir:v "TEMPLATE_EXPERIMENTAL_VERSION_REQUIRED" ] ;
     fhir:display [ fhir:v "Experimental template requires an explicit version" ] ;
     fhir:definition [ fhir:v "The referenced template is experimental and requires an explicit version in the canonical reference (e.g. `...|1.2.0`). Returned as a 400 by Task/$initialize." ]
  ] [
     fhir:code [ fhir:v "INITIAL_RESPONSE_PATIENT_MISMATCH" ] ;
     fhir:display [ fhir:v "Initial-response Patient mismatch" ] ;
     fhir:definition [ fhir:v "The supplied initial-response QuestionnaireResponse references a different Patient than the Task. Returned as a 400 by Task/$initialize." ]
  ] [
     fhir:code [ fhir:v "INITIAL_RESPONSE_CANONICAL_MISMATCH" ] ;
     fhir:display [ fhir:v "Initial-response canonical mismatch" ] ;
     fhir:definition [ fhir:v "The supplied initial-response QuestionnaireResponse is based on a different questionnaire canonical than the Task. Returned as a 400 by Task/$initialize." ]
  ] ) . # 

# -------------------------------------------------------------------------------------

