@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/ValueSet/vn-bhyt-processing-issue-vs> a fhir:ValueSet ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "vn-bhyt-processing-issue-vs"] ;
  fhir:Resource.language [ fhir:value "vi"] ;
  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: ValueSet vn-bhyt-processing-issue-vs</b></p><a name=\"vn-bhyt-processing-issue-vs\"> </a><a name=\"hcvn-bhyt-processing-issue-vs\"> </a><ul><li>Include these codes as defined in <a href=\"CodeSystem-vn-bhyt-review-issue-cs.html\"><code>http://fhir.hl7.org.vn/core/CodeSystem/vn-bhyt-review-issue-cs</code></a><span title=\"Version is not explicitly stated, which means it is fixed to the version provided in this specification\"> version ?0.10.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=\"CodeSystem-vn-bhyt-review-issue-cs.html#vn-bhyt-review-issue-cs-GATEWAY_RECEPTION_ERROR\">GATEWAY_RECEPTION_ERROR</a></td><td style=\"color: #cccccc\">Lỗi tiếp nhận cổng</td><td>Lỗi kỹ thuật hoặc cấu trúc hồ sơ do Cổng tiếp nhận trả về trước hoặc trong quá trình xử lý.</td></tr><tr><td><a href=\"CodeSystem-vn-bhyt-review-issue-cs.html#vn-bhyt-review-issue-cs-FIELD_ADJUSTMENT_REQUIRED\">FIELD_ADJUSTMENT_REQUIRED</a></td><td style=\"color: #cccccc\">Cần điều chỉnh trường dữ liệu</td><td>Hồ sơ cần chỉnh sửa trường dữ liệu, định danh, ngày giờ hoặc metadata trước khi được tiếp tục xử lý/quyết toán.</td></tr></table></li></ul></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:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-legal-basis-role" ] ;
         fhir:Extension.valueCode [ fhir:value "governing" ]
       ] ;
       fhir:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-legal-document-ref-cs" ] ;
       fhir:Coding.code [ fhir:value "TT-12-2026-BTC" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:Extension.url [ fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-legal-basis" ] ;
     fhir:Extension.valueCoding [
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-legal-basis-role" ] ;
         fhir:Extension.valueCode [ fhir:value "governing" ]
       ] ;
       fhir:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-legal-document-ref-cs" ] ;
       fhir:Coding.code [ fhir:value "ND-188-2025" ]
     ]
  ] ;
  fhir:ValueSet.url [ fhir:value "http://fhir.hl7.org.vn/core/ValueSet/vn-bhyt-processing-issue-vs"] ;
  fhir:ValueSet.identifier [
     fhir:index -1 ;
     fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ] ;
     fhir:Identifier.value [ fhir:value "urn:oid:2.25.161089673617632664299011809196868855799.48.15" ]
  ] ;
  fhir:ValueSet.version [ fhir:value "0.10.0"] ;
  fhir:ValueSet.name [ fhir:value "VNBHYTProcessingIssueVS"] ;
  fhir:ValueSet.title [ fhir:value "Issue tầng XỬ LÝ — VN BHYT Processing Issue ValueSet"] ;
  fhir:ValueSet.status [ fhir:value "draft"] ;
  fhir:ValueSet.experimental [ fhir:value "false"^^xsd:boolean] ;
  fhir:ValueSet.date [ fhir:value "2026-08-06"^^xsd:date] ;
  fhir:ValueSet.publisher [ fhir:value "Omi HealthTech / VN Core FHIR Community Initiative"] ;
  fhir:ValueSet.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:ValueSet.description [ fhir:value "Tập con của `VNBHYTReviewIssueCS` gồm các mã mô tả LỖI XỬ LÝ — tình huống khiến hồ sơ\nkhông thể được giám định, chứ không phải kết quả của việc giám định.\n\n**Vì sao tách tập này.** `ClaimResponse.error` trong FHIR R4 được định nghĩa là *\"Processing\nerrors — errors encountered during the processing of the adjudication\"*, và `error.code` là\n*\"an error code ... which details why the claim could not be adjudicated\"*. Từ chối thanh toán\nBHYT theo NĐ 188/2025/NĐ-CP Điều 51 thì ngược lại: nó là KẾT QUẢ của giám định, sau khi hồ sơ\nđã được xử lý xong. Dùng chung một ValueSet cho cả hai làm mờ ranh giới đó và khiến bên nhận\nkhông phân biệt được \"không xử lý được\" với \"đã xử lý và từ chối\".\n\nMã từ chối nghiệp vụ nằm ở [VNBHYTAdjudicationIssueVS](ValueSet-vn-bhyt-adjudication-issue-vs.html),\ndùng tại `ClaimResponse.adjudication.reason`."] ;
  fhir:ValueSet.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:ValueSet.compose [
     fhir:ValueSet.compose.include [
       fhir:index -1 ;
       fhir:ValueSet.compose.include.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-bhyt-review-issue-cs" ] ;
       fhir:ValueSet.compose.include.concept [
         fhir:index -1 ;
         fhir:ValueSet.compose.include.concept.code [ fhir:value "GATEWAY_RECEPTION_ERROR" ]
       ], [
         fhir:index -1 ;
         fhir:ValueSet.compose.include.concept.code [ fhir:value "FIELD_ADJUSTMENT_REQUIRED" ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.hl7.org.vn/core/ValueSet/vn-bhyt-processing-issue-vs.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

