@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 -------------------------------------------------------------------

<https://examplesihe.org.uk/ConceptMap/v2-0485-to-request-priority> a fhir:ConceptMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "v2-0485-to-request-priority"] ;
  fhir:Resource.language [ fhir:value "en"] ;
  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: ConceptMap v2-0485-to-request-priority</b></p><a name=\"v2-0485-to-request-priority\"> </a><a name=\"hcv2-0485-to-request-priority\"> </a><p>Mapping from <a href=\"http://terminology.hl7.org/7.5.0/ValueSet-v2-0485.html\">hl7VS-extendedPriorityCodes</a> to <a href=\"http://hl7.org/fhir/R4/valueset-request-priority.html\">Request priority</a></p><br/><p>Mapping from <a href=\"http://terminology.hl7.org/7.5.0/CodeSystem-v2-0485.html\">extendedPriorityCodes</a> to <a href=\"http://hl7.org/fhir/R4/codesystem-request-priority.html\">RequestPriority</a></p><table class=\"grid\"><tr><td><b>Source Code</b></td><td><b>Relationship</b></td><td><b>Target Code</b></td><td><b>Comment</b></td></tr><tr><td>S (Stat)</td><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#concept-map-equivalence-equivalent\" title=\"equivalent\">is equivalent to</a></td><td>stat</td><td/></tr><tr><td>A (ASAP)</td><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#concept-map-equivalence-equivalent\" title=\"equivalent\">is equivalent to</a></td><td>asap</td><td/></tr><tr><td>R (Routine)</td><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#concept-map-equivalence-equivalent\" title=\"equivalent\">is equivalent to</a></td><td>routine</td><td/></tr><tr><td>P (Preop)</td><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#concept-map-equivalence-source-is-narrower-than-target\" title=\"source-is-narrower-than-target\">is narrower than</a></td><td>urgent</td><td/></tr><tr><td>C (Callback)</td><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#concept-map-equivalence-source-is-narrower-than-target\" title=\"source-is-narrower-than-target\">is narrower than</a></td><td>urgent</td><td/></tr><tr><td>T (Timing critical)</td><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#concept-map-equivalence-source-is-narrower-than-target\" title=\"source-is-narrower-than-target\">is narrower than</a></td><td>urgent</td><td/></tr><tr><td>PRN (As needed)</td><td colspan=\"2\" style=\"background-color: #efefef\">(not mapped)</td><td style=\"background-color: #efefef\">As needed - not a priority in FHIR; use ServiceRequest.asNeeded[x]</td></tr></table></div>"
  ] ;
  fhir:ConceptMap.url [ fhir:value "https://examplesihe.org.uk/ConceptMap/v2-0485-to-request-priority"] ;
  fhir:ConceptMap.version [ fhir:value "0.1.0"] ;
  fhir:ConceptMap.name [ fhir:value "V20485ToRequestPriority"] ;
  fhir:ConceptMap.title [ fhir:value "HL7 v2 Extended Priority to ServiceRequest.priority"] ;
  fhir:ConceptMap.status [ fhir:value "draft"] ;
  fhir:ConceptMap.experimental [ fhir:value "true"^^xsd:boolean] ;
  fhir:ConceptMap.date [ fhir:value "2026-11-04"^^xsd:date] ;
  fhir:ConceptMap.publisher [ fhir:value "Kevin Mayfield"] ;
  fhir:ConceptMap.contact [
     fhir:index -1 ;
     fhir:ContactDetail.telecom [
       fhir:index -1 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://github.com/KevinMayfield/PathologyAndLaboratory" ]
     ]
  ] ;
  fhir:ConceptMap.description [ fhir:value "HL7 v2 table 0485 Extended Priority Codes (TQ1-9) to FHIR `ServiceRequest.priority`. Indicative, based on the HL7 v2-to-FHIR IG. The absence of TQ1 means routine."] ;
  fhir:ConceptMap.jurisdiction [
     fhir:index -1 ;
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ] ;
       fhir:Coding.code [ fhir:value "GB" ] ;
       fhir:Coding.display [ fhir:value "United Kingdom of Great Britain and Northern Ireland" ]
     ]
  ] ;
  fhir:ConceptMap.sourceUri [ fhir:value "http://terminology.hl7.org/ValueSet/v2-0485"] ;
  fhir:ConceptMap.targetUri [ fhir:value "http://hl7.org/fhir/ValueSet/request-priority"] ;
  fhir:ConceptMap.group [
     fhir:index -1 ;
     fhir:ConceptMap.group.source [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0485" ] ;
     fhir:ConceptMap.group.target [ fhir:value "http://hl7.org/fhir/request-priority" ] ;
     fhir:ConceptMap.group.element [
       fhir:index -1 ;
       fhir:ConceptMap.group.element.code [ fhir:value "S" ] ;
       fhir:ConceptMap.group.element.target [
         fhir:index -1 ;
         fhir:ConceptMap.group.element.target.code [ fhir:value "stat" ] ;
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:ConceptMap.group.element.code [ fhir:value "A" ] ;
       fhir:ConceptMap.group.element.target [
         fhir:index -1 ;
         fhir:ConceptMap.group.element.target.code [ fhir:value "asap" ] ;
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:ConceptMap.group.element.code [ fhir:value "R" ] ;
       fhir:ConceptMap.group.element.target [
         fhir:index -1 ;
         fhir:ConceptMap.group.element.target.code [ fhir:value "routine" ] ;
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:ConceptMap.group.element.code [ fhir:value "P" ] ;
       fhir:ConceptMap.group.element.target [
         fhir:index -1 ;
         fhir:ConceptMap.group.element.target.code [ fhir:value "urgent" ] ;
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "wider" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:ConceptMap.group.element.code [ fhir:value "C" ] ;
       fhir:ConceptMap.group.element.target [
         fhir:index -1 ;
         fhir:ConceptMap.group.element.target.code [ fhir:value "urgent" ] ;
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "wider" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:ConceptMap.group.element.code [ fhir:value "T" ] ;
       fhir:ConceptMap.group.element.target [
         fhir:index -1 ;
         fhir:ConceptMap.group.element.target.code [ fhir:value "urgent" ] ;
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "wider" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:ConceptMap.group.element.code [ fhir:value "PRN" ] ;
       fhir:ConceptMap.group.element.target [
         fhir:index -1 ;
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "unmatched" ] ;
         fhir:ConceptMap.group.element.target.comment [ fhir:value "As needed - not a priority in FHIR; use ServiceRequest.asNeeded[x]" ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://examplesihe.org.uk/ConceptMap/v2-0485-to-request-priority.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

