@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://standards.digital.health.nz/fhir/air/CodeSystem/air-status-reason-terms> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "air-status-reason-terms"] ;
  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 air-status-reason-terms</b></p><a name=\"air-status-reason-terms\"> </a><a name=\"hcair-status-reason-terms\"> </a><p>This case-insensitive code system <code>https://standards.digital.health.nz/ns/air-status-reason-terms</code> defines the following codes:</p><table class=\"codes\"><tr><td style=\"white-space:nowrap\"><b>Code</b></td><td><b>Display</b></td></tr><tr><td style=\"white-space:nowrap\">ALTGIVN<a name=\"air-status-reason-terms-ALTGIVN\"> </a></td><td>Alternative vaccination</td></tr><tr><td style=\"white-space:nowrap\">DMC<a name=\"air-status-reason-terms-DMC\"> </a></td><td>Permanent contraindication</td></tr><tr><td style=\"white-space:nowrap\">DPC<a name=\"air-status-reason-terms-DPC\"> </a></td><td>Declined by parent/guardian</td></tr><tr><td style=\"white-space:nowrap\">DIC<a name=\"air-status-reason-terms-DIC\"> </a></td><td>Declined by individual</td></tr><tr><td style=\"white-space:nowrap\">DNI<a name=\"air-status-reason-terms-DNI\"> </a></td><td>Immune</td></tr><tr><td style=\"white-space:nowrap\">GIVNOS<a name=\"air-status-reason-terms-GIVNOS\"> </a></td><td>Overseas vaccination</td></tr><tr><td style=\"white-space:nowrap\">RESCHO<a name=\"air-status-reason-terms-RESCHO\"> </a></td><td>Parental/individual choice to reschedule</td></tr><tr><td style=\"white-space:nowrap\">RESREF<a name=\"air-status-reason-terms-RESREF\"> </a></td><td>Referred elsewhere for immunisation</td></tr><tr><td style=\"white-space:nowrap\">RESTC<a name=\"air-status-reason-terms-RESTC\"> </a></td><td>Temporary contraindication</td></tr><tr><td style=\"white-space:nowrap\">GIVEN<a name=\"air-status-reason-terms-GIVEN\"> </a></td><td>Vaccination given</td></tr><tr><td style=\"white-space:nowrap\">HSTGIVN<a name=\"air-status-reason-terms-HSTGIVN\"> </a></td><td>Historic vaccination</td></tr><tr><td style=\"white-space:nowrap\">CIS<a name=\"air-status-reason-terms-CIS\"> </a></td><td>Closed - change in schedule</td></tr><tr><td style=\"white-space:nowrap\">CPI<a name=\"air-status-reason-terms-CPI\"> </a></td><td>Closed not required</td></tr></table></div>"
  ] ;
  fhir:CodeSystem.url [ fhir:value "https://standards.digital.health.nz/ns/air-status-reason-terms"] ;
  fhir:CodeSystem.version [ fhir:value "1.28.0-SNAPSHOT"] ;
  fhir:CodeSystem.name [ fhir:value "AIRStatusReasonTerms"] ;
  fhir:CodeSystem.title [ fhir:value "AIR Status Reason Terms Code System"] ;
  fhir:CodeSystem.status [ fhir:value "active"] ;
  fhir:CodeSystem.experimental [ fhir:value "false"^^xsd:boolean] ;
  fhir:CodeSystem.date [ fhir:value "2026-08-04T03:40:16+00:00"^^xsd:dateTime] ;
  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 "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://tewhatuora.govt.nz" ]
     ]
  ] ;
  fhir:CodeSystem.description [ fhir:value "This AIR code system includes the terms used in NIR HL7v2 messages to populate the RXA-18 field and and in FHIR payloads to populate immunization.statusReason."] ;
  fhir:CodeSystem.jurisdiction [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ] ;
       fhir:Coding.code [ fhir:value "US" ] ;
       fhir:Coding.display [ fhir:value "New Zealand" ]
     ]
  ] ;
  fhir:CodeSystem.caseSensitive [ fhir:value "false"^^xsd:boolean] ;
  fhir:CodeSystem.content [ fhir:value "complete"] ;
  fhir:CodeSystem.count [ fhir:value "13"^^xsd:nonNegativeInteger] ;
  fhir:CodeSystem.concept [
     fhir:index 0 ;
     fhir:CodeSystem.concept.code [ fhir:value "ALTGIVN" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Alternative vaccination" ]
  ], [
     fhir:index 1 ;
     fhir:CodeSystem.concept.code [ fhir:value "DMC" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Permanent contraindication" ]
  ], [
     fhir:index 2 ;
     fhir:CodeSystem.concept.code [ fhir:value "DPC" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Declined by parent/guardian" ]
  ], [
     fhir:index 3 ;
     fhir:CodeSystem.concept.code [ fhir:value "DIC" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Declined by individual" ]
  ], [
     fhir:index 4 ;
     fhir:CodeSystem.concept.code [ fhir:value "DNI" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Immune" ]
  ], [
     fhir:index 5 ;
     fhir:CodeSystem.concept.code [ fhir:value "GIVNOS" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Overseas vaccination" ]
  ], [
     fhir:index 6 ;
     fhir:CodeSystem.concept.code [ fhir:value "RESCHO" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Parental/individual choice to reschedule" ]
  ], [
     fhir:index 7 ;
     fhir:CodeSystem.concept.code [ fhir:value "RESREF" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Referred elsewhere for immunisation" ]
  ], [
     fhir:index 8 ;
     fhir:CodeSystem.concept.code [ fhir:value "RESTC" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Temporary contraindication" ]
  ], [
     fhir:index 9 ;
     fhir:CodeSystem.concept.code [ fhir:value "GIVEN" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Vaccination given" ]
  ], [
     fhir:index 10 ;
     fhir:CodeSystem.concept.code [ fhir:value "HSTGIVN" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Historic vaccination" ]
  ], [
     fhir:index 11 ;
     fhir:CodeSystem.concept.code [ fhir:value "CIS" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Closed - change in schedule" ]
  ], [
     fhir:index 12 ;
     fhir:CodeSystem.concept.code [ fhir:value "CPI" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Closed not required" ]
  ] .

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

<https://standards.digital.health.nz/fhir/air/CodeSystem/air-status-reason-terms.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

