@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://cdc.gov.tw/nidrs/ValueSet/country> a fhir:ValueSet ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "country"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "extensions" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: 取值集合 country</b></p><a name=\"country\"> </a><a name=\"hccountry\"> </a><p>This value set includes codes based on the following rules:</p><ul><li>Include codes from<a href=\"http://terminology.hl7.org/6.1.0/CodeSystem-ISO3166Part1.html\"><code>urn:iso:std:iso:3166</code></a><span title=\"Version is not explicitly stated. No matching Code System found\"> version Not Stated (use latest from terminology server)</span> where code  matches (by regex) [A-Z]{3}</li><li>Include all codes defined in <a href=\"CodeSystem-cdc-country.html\"><code>https://cdc.gov.tw/nidrs/CodeSystem/cdc-country</code></a><span title=\"Version is not explicitly stated, which means it is fixed to the version provided in this specification\"> version ?0.1.0</span></li><li>Include these codes as defined in <a href=\"http://terminology.hl7.org/7.3.0/CodeSystem-v3-NullFlavor.html\"><code>http://terminology.hl7.org/CodeSystem/v3-NullFlavor</code></a><span title=\"Version is explicitly stated to be 4.0.0\"> version ?4.0.0</span><table class=\"none\"><tr><td style=\"white-space:nowrap\"><b>Code</b></td><td><b>Display</b></td><td><b>Definition</b></td></tr><tr><td><a href=\"http://terminology.hl7.org/7.3.0/CodeSystem-v3-NullFlavor.html#v3-NullFlavor-OTH\">OTH</a></td><td style=\"color: #cccccc\">other</td><td>**Description:**The actual value is not a member of the set of permitted data values in the constrained value domain of a variable. (e.g., concept not provided by required code system).<br/><br/>**Usage Notes**: This flavor and its specializations are most commonly used with the CD datatype and its flavors. However, it may apply to \\*any\\* datatype where the constraints of the type are tighter than can be conveyed. For example, a PQ that is for a true measured amount whose units are not supported in UCUM, a need to convey a REAL when the type has been constrained to INT, etc.<br/><br/>With coded datatypes, this null flavor may only be used if the vocabulary binding has a coding strength of CNE. By definition, all local codes and original text are part of the value set if the coding strength is CWE.</td></tr></table></li></ul></div>"
  ] ;
  fhir:ValueSet.url [ fhir:value "https://cdc.gov.tw/nidrs/ValueSet/country"] ;
  fhir:ValueSet.version [ fhir:value "0.1.0"] ;
  fhir:ValueSet.name [ fhir:value "Country"] ;
  fhir:ValueSet.title [ fhir:value "ISO 3166 + HL7 - 國家值集"] ;
  fhir:ValueSet.status [ fhir:value "active"] ;
  fhir:ValueSet.experimental [ fhir:value "false"^^xsd:boolean] ;
  fhir:ValueSet.date [ fhir:value "2026-10-01"^^xsd:date] ;
  fhir:ValueSet.publisher [ fhir:value "衛福部疾病管制署"] ;
  fhir:ValueSet.contact [
     fhir:index 0 ;
     fhir:ContactDetail.name [ fhir:value "衛福部疾病管制署" ] ;
     fhir:ContactDetail.telecom [
       fhir:index 0 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://www.cdc.gov.tw" ]
     ]
  ] ;
  fhir:ValueSet.description [ fhir:value "ISO 3166 + HL7 - 國家值集"] ;
  fhir:ValueSet.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 "TW" ]
     ]
  ] ;
  fhir:ValueSet.compose [
     fhir:ValueSet.compose.include [
       fhir:index 0 ;
       fhir:ValueSet.compose.include.system [ fhir:value "urn:iso:std:iso:3166" ] ;
       fhir:ValueSet.compose.include.filter [
         fhir:index 0 ;
         fhir:ValueSet.compose.include.filter.property [ fhir:value "code" ] ;
         fhir:ValueSet.compose.include.filter.op [ fhir:value "regex" ] ;
         fhir:ValueSet.compose.include.filter.value [ fhir:value "[A-Z]{3}" ]
       ]
     ], [
       fhir:index 1 ;
       fhir:ValueSet.compose.include.system [ fhir:value "https://cdc.gov.tw/nidrs/CodeSystem/cdc-country" ]
     ], [
       fhir:index 2 ;
       fhir:ValueSet.compose.include.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-NullFlavor" ] ;
       fhir:ValueSet.compose.include.version [ fhir:value "4.0.0" ] ;
       fhir:ValueSet.compose.include.concept [
         fhir:index 0 ;
         fhir:ValueSet.compose.include.concept.code [ fhir:value "OTH" ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://cdc.gov.tw/nidrs/ValueSet/country.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

