@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://fhir.hl7.org.vn/core/CodeSystem/vn-admin-state-metadata-cs> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "vn-admin-state-metadata-cs"] ;
  fhir:Resource.meta [
     fhir:Meta.tag [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "urn:vn-core:review-status" ] ;
       fhir:Coding.code [ fhir:value "scoped-history" ]
     ]
  ] ;
  fhir:Resource.language [ fhir:value "vi"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xml:lang=\"vi\" xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"vi\"><p class=\"res-header-id\"><b>Generated Narrative: CodeSystem vn-admin-state-metadata-cs</b></p><a name=\"vn-admin-state-metadata-cs\"> </a><a name=\"hcvn-admin-state-metadata-cs\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Language: vi</p><p style=\"margin-bottom: 0px\">Tag: </p></div><p>This case-sensitive code system <code>http://fhir.hl7.org.vn/core/CodeSystem/vn-admin-state-metadata-cs</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><td><b>English (English, en)</b></td></tr><tr><td style=\"white-space:nowrap\">code-name<a name=\"vn-admin-state-metadata-cs-code-name\"> </a></td><td>Mã và tên</td><td>Code and official name are evidenced; parent and entity continuity are not asserted.</td><td>Code and name</td></tr><tr><td style=\"white-space:nowrap\">code-name-parent<a name=\"vn-admin-state-metadata-cs-code-name-parent\"> </a></td><td>Mã, tên và đơn vị cha</td><td>Code, official name and parent assignment are evidenced within the stated interval.</td><td>Code, name and parent</td></tr><tr><td style=\"white-space:nowrap\">closed<a name=\"vn-admin-state-metadata-cs-closed\"> </a></td><td>Đã biết mốc kết thúc</td><td>An evidenced ending date is supplied in validTo; this is a state boundary, not a blanket inactive-code assertion.</td><td>Known ending date</td></tr><tr><td style=\"white-space:nowrap\">unknown<a name=\"vn-admin-state-metadata-cs-unknown\"> </a></td><td>Chưa biết mốc kết thúc</td><td>The ending date is unknown; queries remain bounded by verifiedThrough and must not infer infinity.</td><td>Unknown ending date</td></tr><tr><td style=\"white-space:nowrap\">tableApplicableFrom<a name=\"vn-admin-state-metadata-cs-tableApplicableFrom\"> </a></td><td>Mốc áp dụng bảng mã</td><td>The table applicability date provides a scope lower bound, not the unit establishment date.</td><td>Table applicability lower bound</td></tr><tr><td style=\"white-space:nowrap\">changeEffectiveFrom<a name=\"vn-admin-state-metadata-cs-changeEffectiveFrom\"> </a></td><td>Mốc hiệu lực thay đổi</td><td>The starting date is supported by an explicit effective change event.</td><td>Effective change date</td></tr><tr><td style=\"white-space:nowrap\">rename<a name=\"vn-admin-state-metadata-cs-rename\"> </a></td><td>Đổi tên</td><td>A directed change of official name with the same level and code.</td><td>Rename</td></tr><tr><td style=\"white-space:nowrap\">reclassify<a name=\"vn-admin-state-metadata-cs-reclassify\"> </a></td><td>Đổi loại hình</td><td>A directed change of unit classification reflected in the official name, preserving level and code.</td><td>Reclassification</td></tr><tr><td style=\"white-space:nowrap\">reparent<a name=\"vn-admin-state-metadata-cs-reparent\"> </a></td><td>Đổi đơn vị cha</td><td>A directed change between two evidenced parent assignments, preserving level and code.</td><td>Parent reassignment</td></tr><tr><td style=\"white-space:nowrap\">merge<a name=\"vn-admin-state-metadata-cs-merge\"> </a></td><td>Hợp nhất</td><td>A predecessor state contributes to an evidenced successor; code inheritance does not establish entity continuity.</td><td>Merge</td></tr><tr><td style=\"white-space:nowrap\">split<a name=\"vn-admin-state-metadata-cs-split\"> </a></td><td>Chia đơn vị</td><td>A source state has at least two evidenced destinations with distinct codes.</td><td>Split</td></tr><tr><td style=\"white-space:nowrap\">reorganize<a name=\"vn-admin-state-metadata-cs-reorganize\"> </a></td><td>Sắp xếp đơn vị khác cấp</td><td>A documented one-to-one district-to-ward reorganization using the whole natural area and population of the source as stated in the cited act. This relates code states without asserting coding equivalence, continuous legal entity identity or independently verified geographic equality.</td><td>One-to-one cross-level reorganization</td></tr><tr><td style=\"white-space:nowrap\">close<a name=\"vn-admin-state-metadata-cs-close\"> </a></td><td>Kết thúc trạng thái</td><td>The source state ends with no evidenced destination asserted by this event.</td><td>State closure</td></tr><tr><td style=\"white-space:nowrap\">code-state-only<a name=\"vn-admin-state-metadata-cs-code-state-only\"> </a></td><td>Chỉ trạng thái mã</td><td>A relation between code states; it does not assert continuous legal entities or geographic boundaries.</td><td>Code states only</td></tr></table></div>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index -1 ;
     fhir:Extension.url [ fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-legal-basis" ] ;
     fhir:Extension.valueCoding [
       fhir:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-legal-basis-exception-cs" ] ;
       fhir:Coding.code [ fhir:value "technical-infrastructure" ]
     ]
  ] ;
  fhir:CodeSystem.url [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-admin-state-metadata-cs"] ;
  fhir:CodeSystem.identifier [
     fhir:index -1 ;
     fhir:Identifier.system [ fhir:value "urn:vn-core:admin-input-sha256" ] ;
     fhir:Identifier.value [ fhir:value "d05c8f6fc662fe31f10ff4fba4e1d9fc8071e0e01207e1670e33037b2eabe9bd" ]
  ], [
     fhir:index -1 ;
     fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ] ;
     fhir:Identifier.value [ fhir:value "urn:oid:2.25.161089673617632664299011809196868855799.16.177" ]
  ] ;
  fhir:CodeSystem.version [ fhir:value "0.10.0"] ;
  fhir:CodeSystem.name [ fhir:value "VNAdminStateMetadataCS"] ;
  fhir:CodeSystem.title [ fhir:value "Từ vựng trạng thái hành chính — Administrative state metadata"] ;
  fhir:CodeSystem.status [ fhir:value "draft"] ;
  fhir:CodeSystem.experimental [ fhir:value "false"^^xsd:boolean] ;
  fhir:CodeSystem.date [ fhir:value "2026-09-20"^^xsd:date] ;
  fhir:CodeSystem.publisher [ fhir:value "Omi HealthTech / VN Core FHIR Community Initiative"] ;
  fhir:CodeSystem.contact [
     fhir:index -1 ;
     fhir:ContactDetail.name [ fhir:value "Omi HealthTech / VN Core FHIR Community Initiative" ] ;
     fhir:ContactDetail.telecom [
       fhir:index -1 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://hl7.org.vn" ]
     ], [
       fhir:index -1 ;
       fhir:ContactPoint.system [ fhir:value "email" ] ;
       fhir:ContactPoint.value [ fhir:value "info@hl7.org.vn" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:ContactDetail.name [ fhir:value "Omi HealthTech (OmiGroup)" ] ;
     fhir:ContactDetail.telecom [
       fhir:index -1 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://omihealthtech.vn" ]
     ], [
       fhir:index -1 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://omigroup.vn" ]
     ], [
       fhir:index -1 ;
       fhir:ContactPoint.system [ fhir:value "email" ] ;
       fhir:ContactPoint.value [ fhir:value "info@hl7.org.vn" ]
     ]
  ] ;
  fhir:CodeSystem.description [ fhir:value "Từ vựng kỹ thuật do VN Core thiết kế cho trường bằng chứng trạng thái và sự kiện hành chính; không phải mã đơn vị hành chính do cơ quan nhà nước ban hành. English: Project-defined administrative evidence tokens, not official unit codes. Phạm vi lịch sử chưa đầy đủ; không chứng nhận H5, tính liên tục của thực thể hay khả năng phát hành. English: Historical evidence is incomplete; H5, legal-entity continuity and publication readiness are not certified."] ;
  fhir:CodeSystem.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 "VN" ] ;
       fhir:Coding.display [ fhir:value "Viet Nam" ]
     ]
  ] ;
  fhir:CodeSystem.purpose [ fhir:value "Dùng để kiểm kiểu và giới hạn tập giá trị của các trường bằng chứng trong hai extension hành chính. Mã, cấu trúc và ràng buộc này do VN Core thiết kế. English: Technical vocabulary for typed fields and required bindings of the administrative evidence extensions."] ;
  fhir:CodeSystem.caseSensitive [ fhir:value "true"^^xsd:boolean] ;
  fhir:CodeSystem.content [ fhir:value "complete"] ;
  fhir:CodeSystem.count [ fhir:value "14"^^xsd:nonNegativeInteger] ;
  fhir:CodeSystem.concept [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "code-name" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Mã và tên" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Code and official name are evidenced; parent and entity continuity are not asserted." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Code and name" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "code-name-parent" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Mã, tên và đơn vị cha" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Code, official name and parent assignment are evidenced within the stated interval." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Code, name and parent" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "closed" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Đã biết mốc kết thúc" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "An evidenced ending date is supplied in validTo; this is a state boundary, not a blanket inactive-code assertion." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Known ending date" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "unknown" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Chưa biết mốc kết thúc" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "The ending date is unknown; queries remain bounded by verifiedThrough and must not infer infinity." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Unknown ending date" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "tableApplicableFrom" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Mốc áp dụng bảng mã" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "The table applicability date provides a scope lower bound, not the unit establishment date." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Table applicability lower bound" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "changeEffectiveFrom" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Mốc hiệu lực thay đổi" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "The starting date is supported by an explicit effective change event." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Effective change date" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "rename" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Đổi tên" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "A directed change of official name with the same level and code." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Rename" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "reclassify" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Đổi loại hình" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "A directed change of unit classification reflected in the official name, preserving level and code." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Reclassification" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "reparent" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Đổi đơn vị cha" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "A directed change between two evidenced parent assignments, preserving level and code." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Parent reassignment" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "merge" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Hợp nhất" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "A predecessor state contributes to an evidenced successor; code inheritance does not establish entity continuity." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Merge" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "split" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Chia đơn vị" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "A source state has at least two evidenced destinations with distinct codes." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Split" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "reorganize" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Sắp xếp đơn vị khác cấp" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "A documented one-to-one district-to-ward reorganization using the whole natural area and population of the source as stated in the cited act. This relates code states without asserting coding equivalence, continuous legal entity identity or independently verified geographic equality." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "One-to-one cross-level reorganization" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "close" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Kết thúc trạng thái" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "The source state ends with no evidenced destination asserted by this event." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "State closure" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "code-state-only" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Chỉ trạng thái mã" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "A relation between code states; it does not assert continuous legal entities or geographic boundaries." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Code states only" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.hl7.org.vn/core/CodeSystem/vn-admin-state-metadata-cs.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

