@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-0119-to-request-status> a fhir:ConceptMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "v2-0119-to-request-status"] ;
  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-0119-to-request-status</b></p><a name=\"v2-0119-to-request-status\"> </a><a name=\"hcv2-0119-to-request-status\"> </a><p>Mapping from <a href=\"http://terminology.hl7.org/7.5.0/ValueSet-v2-0119.html\">hl7VS-orderControl</a> to <a href=\"http://hl7.org/fhir/R4/valueset-request-status.html\">RequestStatus</a></p><br/><p>Mapping from <a href=\"http://terminology.hl7.org/7.5.0/CodeSystem-v2-0119.html\">orderControlCodes</a> to <a href=\"http://hl7.org/fhir/R4/codesystem-request-status.html\">RequestStatus</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>NW (New order/service)</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>active</td><td>New order (LAB-1)</td></tr><tr><td>SN (Send order/service number)</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>active</td><td>Send order number - new order created by the Order Filler (LAB-2)</td></tr><tr><td>CA (Cancel order/service request)</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>revoked</td><td>Cancel order request (placer)</td></tr><tr><td>OC (Order/service canceled)</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>revoked</td><td>Order cancelled (filler)</td></tr><tr><td>DC (Discontinue order/service request)</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>revoked</td><td>Discontinue order request</td></tr><tr><td>SC (Status changed)</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>active</td><td>Status changed - the order status is in ORC-5</td></tr><tr><td>OK (Order/service accepted &amp; OK)</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>active</td><td>Order accepted and OK (response)</td></tr><tr><td>UA (Unable to accept order/service)</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>revoked</td><td>Unable to accept order (response)</td></tr><tr><td>XO (Change order/service request)</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>active</td><td>Change order request</td></tr></table></div>"
  ] ;
  fhir:ConceptMap.url [ fhir:value "https://examplesihe.org.uk/ConceptMap/v2-0119-to-request-status"] ;
  fhir:ConceptMap.version [ fhir:value "0.1.0"] ;
  fhir:ConceptMap.name [ fhir:value "V20119ToRequestStatus"] ;
  fhir:ConceptMap.title [ fhir:value "HL7 v2 Order Control to ServiceRequest.status"] ;
  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 0119 Order Control Codes (ORC-1) to FHIR `ServiceRequest.status`, for the codes used by Placer Order Management [LAB-1] and Filler Order Management [LAB-2]. Indicative."] ;
  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-0119"] ;
  fhir:ConceptMap.targetUri [ fhir:value "http://hl7.org/fhir/ValueSet/request-status"] ;
  fhir:ConceptMap.group [
     fhir:index -1 ;
     fhir:ConceptMap.group.source [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0119" ] ;
     fhir:ConceptMap.group.target [ fhir:value "http://hl7.org/fhir/request-status" ] ;
     fhir:ConceptMap.group.element [
       fhir:index -1 ;
       fhir:ConceptMap.group.element.code [ fhir:value "NW" ] ;
       fhir:ConceptMap.group.element.target [
         fhir:index -1 ;
         fhir:ConceptMap.group.element.target.code [ fhir:value "active" ] ;
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "wider" ] ;
         fhir:ConceptMap.group.element.target.comment [ fhir:value "New order (LAB-1)" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:ConceptMap.group.element.code [ fhir:value "SN" ] ;
       fhir:ConceptMap.group.element.target [
         fhir:index -1 ;
         fhir:ConceptMap.group.element.target.code [ fhir:value "active" ] ;
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "wider" ] ;
         fhir:ConceptMap.group.element.target.comment [ fhir:value "Send order number - new order created by the Order Filler (LAB-2)" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:ConceptMap.group.element.code [ fhir:value "CA" ] ;
       fhir:ConceptMap.group.element.target [
         fhir:index -1 ;
         fhir:ConceptMap.group.element.target.code [ fhir:value "revoked" ] ;
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "wider" ] ;
         fhir:ConceptMap.group.element.target.comment [ fhir:value "Cancel order request (placer)" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:ConceptMap.group.element.code [ fhir:value "OC" ] ;
       fhir:ConceptMap.group.element.target [
         fhir:index -1 ;
         fhir:ConceptMap.group.element.target.code [ fhir:value "revoked" ] ;
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "wider" ] ;
         fhir:ConceptMap.group.element.target.comment [ fhir:value "Order cancelled (filler)" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:ConceptMap.group.element.code [ fhir:value "DC" ] ;
       fhir:ConceptMap.group.element.target [
         fhir:index -1 ;
         fhir:ConceptMap.group.element.target.code [ fhir:value "revoked" ] ;
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "wider" ] ;
         fhir:ConceptMap.group.element.target.comment [ fhir:value "Discontinue order request" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:ConceptMap.group.element.code [ fhir:value "SC" ] ;
       fhir:ConceptMap.group.element.target [
         fhir:index -1 ;
         fhir:ConceptMap.group.element.target.code [ fhir:value "active" ] ;
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "wider" ] ;
         fhir:ConceptMap.group.element.target.comment [ fhir:value "Status changed - the order status is in ORC-5" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:ConceptMap.group.element.code [ fhir:value "OK" ] ;
       fhir:ConceptMap.group.element.target [
         fhir:index -1 ;
         fhir:ConceptMap.group.element.target.code [ fhir:value "active" ] ;
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "wider" ] ;
         fhir:ConceptMap.group.element.target.comment [ fhir:value "Order accepted and OK (response)" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:ConceptMap.group.element.code [ fhir:value "UA" ] ;
       fhir:ConceptMap.group.element.target [
         fhir:index -1 ;
         fhir:ConceptMap.group.element.target.code [ fhir:value "revoked" ] ;
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "wider" ] ;
         fhir:ConceptMap.group.element.target.comment [ fhir:value "Unable to accept order (response)" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:ConceptMap.group.element.code [ fhir:value "XO" ] ;
       fhir:ConceptMap.group.element.target [
         fhir:index -1 ;
         fhir:ConceptMap.group.element.target.code [ fhir:value "active" ] ;
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "wider" ] ;
         fhir:ConceptMap.group.element.target.comment [ fhir:value "Change order request" ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://examplesihe.org.uk/ConceptMap/v2-0119-to-request-status.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

