@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/ConceptMap/air-gender-code-map> a fhir:ConceptMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "air-gender-code-map"] ;
  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 air-gender-code-map</b></p><a name=\"air-gender-code-map\"> </a><a name=\"hcair-gender-code-map\"> </a><p>Mapping from <a href=\"http://terminology.hl7.org/7.2.0/ValueSet-v2-0001.html\">hl7VS-administrativeSex</a> to <a href=\"http://hl7.org/fhir/R4/valueset-administrative-gender.html\">AdministrativeGender</a></p><br/><p>Mapping from <a href=\"http://terminology.hl7.org/7.2.0/CodeSystem-v2-0001.html\">administrativeSex</a> to <a href=\"http://hl7.org/fhir/R4/codesystem-administrative-gender.html\">AdministrativeGender</a></p><table class=\"grid\"><tr><td><b>Source Code</b></td><td><b>Relationship</b></td><td><b>Target Code</b></td></tr><tr><td>U (Unknown)</td><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>unknown</td></tr></table></div>"
  ] ;
  fhir:ConceptMap.url [ fhir:value "https://nzhts.digital.health.nz/fhir/ValueSet/air-gender-code-map"] ;
  fhir:ConceptMap.version [ fhir:value "2.7.0"] ;
  fhir:ConceptMap.name [ fhir:value "HL7PID-AIRAdministrativeGenderCode-Map"] ;
  fhir:ConceptMap.title [ fhir:value "Concept Map -- Gender Code HL7v2 PID < -- > Administrative Gender used in FHIR R4"] ;
  fhir:ConceptMap.status [ fhir:value "draft"] ;
  fhir:ConceptMap.date [ fhir:value "2026-07-20T21:32:10+00:00"^^xsd:dateTime] ;
  fhir:ConceptMap.publisher [ fhir:value "Te Whatu Ora"] ;
  fhir:ConceptMap.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:ConceptMap.description [ fhir:value "This maps the gender codes listed in the NIR Message Spec v4.5, Sep 2020 (HL7 Table 0001) to the codes returned by the NHI Service."] ;
  fhir:ConceptMap.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:ConceptMap.sourceCanonical [
     fhir:value "http://terminology.hl7.org/ValueSet/v2-0001" ;
     fhir:link <http://terminology.hl7.org/ValueSet/v2-0001>
  ] ;
  fhir:ConceptMap.targetCanonical [
     fhir:value "http://hl7.org/fhir/ValueSet/administrative-gender" ;
     fhir:link <http://hl7.org/fhir/ValueSet/administrative-gender>
  ] ;
  fhir:ConceptMap.group [
     fhir:index 0 ;
     fhir:ConceptMap.group.source [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0001" ] ;
     fhir:ConceptMap.group.target [ fhir:value "http://hl7.org/fhir/administrative-gender" ] ;
     fhir:ConceptMap.group.element [
       fhir:index 0 ;
       fhir:ConceptMap.group.element.code [ fhir:value "U" ] ;
       fhir:ConceptMap.group.element.target [
         fhir:index 0 ;
         fhir:ConceptMap.group.element.target.code [ fhir:value "unknown" ] ;
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://standards.digital.health.nz/fhir/air/ConceptMap/air-gender-code-map.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

