@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 -------------------------------------------------------------------

<http://hl7.org.nz/fhir/ig/bsa/CodeSystem/pathway-state> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "pathway-state"] ;
  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: CodeSystem pathway-state</b></p><a name=\"pathway-state\"> </a><a name=\"hcpathway-state\"> </a><p>This case-sensitive code system <code>http://hl7.org.nz/fhir/ig/bsa/CodeSystem/pathway-state</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\">available-for-invitation<a name=\"pathway-state-available-for-invitation\"> </a></td><td>Available for invitation</td><td>Participant is eligible and ready to be invited for screening</td></tr><tr><td style=\"white-space:nowrap\">invited<a name=\"pathway-state-invited\"> </a></td><td>Invited</td><td>Invitation has been sent to the participant</td></tr><tr><td style=\"white-space:nowrap\">booked<a name=\"pathway-state-booked\"> </a></td><td>Booked</td><td>Screening appointment has been scheduled</td></tr><tr><td style=\"white-space:nowrap\">deferred<a name=\"pathway-state-deferred\"> </a></td><td>Deferred</td><td>Screening has been deferred to a later date</td></tr><tr><td style=\"white-space:nowrap\">screening<a name=\"pathway-state-screening\"> </a></td><td>Screening</td><td>Participant is currently undergoing screening</td></tr><tr><td style=\"white-space:nowrap\">reading<a name=\"pathway-state-reading\"> </a></td><td>Reading</td><td>Screening images are being reviewed</td></tr><tr><td style=\"white-space:nowrap\">returned-to-routine<a name=\"pathway-state-returned-to-routine\"> </a></td><td>Returned to routine screening</td><td>Participant has returned to routine screening cycle</td></tr><tr><td style=\"white-space:nowrap\">exited<a name=\"pathway-state-exited\"> </a></td><td>Exited</td><td>Participant has exited the screening pathway</td></tr></table></div>"
  ] ;
  fhir:CodeSystem.url [ fhir:value "http://hl7.org.nz/fhir/ig/bsa/CodeSystem/pathway-state"] ;
  fhir:CodeSystem.version [ fhir:value "1.1.0"] ;
  fhir:CodeSystem.name [ fhir:value "PathwayState"] ;
  fhir:CodeSystem.title [ fhir:value "Pathway State Code System"] ;
  fhir:CodeSystem.status [ fhir:value "active"] ;
  fhir:CodeSystem.experimental [ fhir:value "false"^^xsd:boolean] ;
  fhir:CodeSystem.date [ fhir:value "2025-11-14"^^xsd:date] ;
  fhir:CodeSystem.publisher [ fhir:value "Te Whatu Ora"] ;
  fhir:CodeSystem.contact [
     fhir:index 0 ;
     fhir:ContactDetail.name [ fhir:value "Te Whatu Ora" ] ;
     fhir:ContactDetail.telecom [
       fhir:index 0 ;
       fhir:ContactPoint.system [ fhir:value "email" ] ;
       fhir:ContactPoint.value [ fhir:value "mailto:integration@health.govt.nz" ]
     ]
  ] ;
  fhir:CodeSystem.description [ fhir:value "Codes representing states in the screening pathway workflow."] ;
  fhir:CodeSystem.caseSensitive [ fhir:value "true"^^xsd:boolean] ;
  fhir:CodeSystem.content [ fhir:value "complete"] ;
  fhir:CodeSystem.count [ fhir:value "8"^^xsd:nonNegativeInteger] ;
  fhir:CodeSystem.concept [
     fhir:index 0 ;
     fhir:CodeSystem.concept.code [ fhir:value "available-for-invitation" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Available for invitation" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Participant is eligible and ready to be invited for screening" ]
  ], [
     fhir:index 1 ;
     fhir:CodeSystem.concept.code [ fhir:value "invited" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Invited" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Invitation has been sent to the participant" ]
  ], [
     fhir:index 2 ;
     fhir:CodeSystem.concept.code [ fhir:value "booked" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Booked" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Screening appointment has been scheduled" ]
  ], [
     fhir:index 3 ;
     fhir:CodeSystem.concept.code [ fhir:value "deferred" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Deferred" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Screening has been deferred to a later date" ]
  ], [
     fhir:index 4 ;
     fhir:CodeSystem.concept.code [ fhir:value "screening" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Screening" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Participant is currently undergoing screening" ]
  ], [
     fhir:index 5 ;
     fhir:CodeSystem.concept.code [ fhir:value "reading" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Reading" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Screening images are being reviewed" ]
  ], [
     fhir:index 6 ;
     fhir:CodeSystem.concept.code [ fhir:value "returned-to-routine" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Returned to routine screening" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Participant has returned to routine screening cycle" ]
  ], [
     fhir:index 7 ;
     fhir:CodeSystem.concept.code [ fhir:value "exited" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Exited" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Participant has exited the screening pathway" ]
  ] .

# - ontology header ------------------------------------------------------------

<http://hl7.org.nz/fhir/ig/bsa/CodeSystem/pathway-state.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

