MediRecords FHIR Implementation Guide
20220217 - ci-build


: Not Found Error Example - TTL Representation

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 -------------------------------------------------------------------

 a fhir:OperationOutcome;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "mr-operation-outcome-404-not-found"];
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://fhir.medirecords.com/StructureDefinition/mr-operation-outcome-core";
       fhir:index 0;
       fhir:link <https://fhir.medirecords.com/StructureDefinition/mr-operation-outcome-core>     ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: OperationOutcome</b><a name=\"mr-operation-outcome-404-not-found\"> </a></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource OperationOutcome \"mr-operation-outcome-404-not-found\" </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-mr-operation-outcome-core.html\">MediRecords Core OperationOutcome</a></p></div><h3>Issues</h3><table class=\"grid\"><tr><td>-</td><td><b>Severity</b></td><td><b>Code</b></td><td><b>Details</b></td><td><b>Diagnostics</b></td></tr><tr><td>*</td><td>error</td><td>not-found</td><td>Resource Id \"%s\" does not exist <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/4.0.0/CodeSystem-operation-outcome.html\">Operation Outcome Codes</a>#MSG_NO_EXIST)</span></td><td>Not Found: No matching resource found</td></tr></table></div>"
  ];
  fhir:OperationOutcome.issue [
     fhir:index 0;
     fhir:OperationOutcome.issue.severity [ fhir:value "error" ];
     fhir:OperationOutcome.issue.code [ fhir:value "not-found" ];
     fhir:OperationOutcome.issue.details [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/operation-outcome" ];
         fhir:Coding.code [ fhir:value "MSG_NO_EXIST" ];
         fhir:Coding.display [ fhir:value "Resource Id \"%s\" does not exist" ]       ]     ];
     fhir:OperationOutcome.issue.diagnostics [ fhir:value "Not Found: No matching resource found" ]
  ].

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

 a owl:Ontology;
  owl:imports fhir:fhir.ttl.