@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-service-request-code-vs> a fhir:ValueSet ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "vn-service-request-code-vs"] ;
  fhir:Resource.language [ fhir:value "vi"] ;
  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: ValueSet vn-service-request-code-vs</b></p><a name=\"vn-service-request-code-vs\"> </a><a name=\"hcvn-service-request-code-vs\"> </a><p>This value set includes codes based on the following rules:</p><ul><li>Import all the codes that are contained in the intersection of <a href=\"ValueSet-vn-procedure-code-vs.html\">Mã thủ thuật/dịch vụ kỹ thuật — VN Core Procedure Code ValueSet</a></li><li>Include codes from<a href=\"http://loinc.org\"><code>http://loinc.org</code></a><span title=\"Version is not explicitly stated. No matching Code System found\"> version Not Stated (use latest from terminology server)</span> where ORDER_OBS  in Order,Both and STATUS  in ACTIVE,TRIAL</li><li>Import all the codes that are contained in the intersection of <a href=\"ValueSet-vn-cls-vs.html\">Chỉ số cận lâm sàng — VN Clinical Lab Indicator ValueSet</a></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 "issuing" ]
       ] ;
       fhir:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-legal-document-ref-cs" ] ;
       fhir:Coding.code [ fhir:value "QD-1227-2025" ]
     ]
  ], [
     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 "issuing" ]
       ] ;
       fhir:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-legal-document-ref-cs" ] ;
       fhir:Coding.code [ fhir:value "TT-23-2024" ]
     ]
  ] ;
  fhir:ValueSet.url [ fhir:value "http://fhir.hl7.org.vn/core/ValueSet/vn-service-request-code-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.191" ]
  ] ;
  fhir:ValueSet.version [ fhir:value "0.10.0"] ;
  fhir:ValueSet.name [ fhir:value "VNServiceRequestCodeVS"] ;
  fhir:ValueSet.title [ fhir:value "Mã dịch vụ yêu cầu — VN Service Request Code ValueSet"] ;
  fhir:ValueSet.status [ fhir:value "draft"] ;
  fhir:ValueSet.experimental [ fhir:value "false"^^xsd:boolean] ;
  fhir:ValueSet.date [ fhir:value "2026-08-12"^^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 giá trị cho `ServiceRequest.code` — hợp nhất các hệ mã mà một chỉ định dịch vụ\ntại Việt Nam có thể mang, theo đúng prose của profile:\n\n- **Danh mục thủ thuật/DVKT** (`vn-procedure-code-vs`: DVKT TT 23/2024/TT-BYT, ICD-9-CM QĐ 387/QĐ-BYT, SNOMED CT Procedure) — cho chỉ định thủ thuật/phẫu thuật.\n- **LOINC** (`http://loinc.org`) — cho chỉ định xét nghiệm theo hệ quốc tế.\n- **Danh mục chỉ số cận lâm sàng** (`vn-cls-vs` — toàn bộ ba miền QĐ 1227/QĐ-BYT) — cho chỉ định XN/GPB/CĐHA theo danh mục quốc gia.\n\n**Vì sao phải hợp nhất.** Trước 0.10.0 `ServiceRequest.code` bind `vn-procedure-code-vs` trong khi\n^definition hứa 'XN: LOINC hoặc mã CLS VN' — prose, binding và chính example glucose (LOINC) mâu\nthuẫn nhau; một router phân luồng theo binding sẽ gán nhầm miền dịch vụ (CORE-P1-02/T-03, review 97).\nRàng buộc THEO MIỀN nay có hai tầng: (1) phần LOINC lọc ngay ở compose bằng\n`ORDER_OBS in Order, Both` — trục chuẩn của LOINC phân biệt mã CHỈ ĐỊNH ĐƯỢC với mã chỉ dùng\nghi kết quả — cộng `STATUS in ACTIVE, TRIAL`; (2) graph validator đối chiếu `category` với miền\ncho mã CLS nội (vn-cls-cs) và đối chiếu thuộc tính LOINC offline qua gate `[LOINC-DOMAIN]`."] ;
  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.purpose [ fhir:value "Binding đích cho VNCoreServiceRequest.code: khép mâu thuẫn prose/binding/example của 0.9.x. Router phân luồng dịch vụ đối chiếu thêm category với miền của mã; từ 0.10.0 phần LOINC đã lọc theo ORDER_OBS + STATUS ở tầng compose nên membership của VS này đã mang nghĩa miền (mã chỉ-ghi-kết-quả không còn hợp lệ)."] ;
  fhir:ValueSet.copyright [ fhir:value "Bộ Y tế Việt Nam — QĐ 1227/QĐ-BYT, TT 23/2024/TT-BYT, QĐ 387/QĐ-BYT. LOINC là tài sản của Regenstrief Institute, Inc.; SNOMED CT của SNOMED International."] ;
  fhir:ValueSet.compose [
     fhir:ValueSet.compose.include [
       fhir:index -1 ;
       fhir:ValueSet.compose.include.valueSet [
         fhir:value "http://fhir.hl7.org.vn/core/ValueSet/vn-procedure-code-vs" ;
         fhir:index -1 ;
         fhir:link <http://fhir.hl7.org.vn/core/ValueSet/vn-procedure-code-vs>
       ]
     ], [
       fhir:index -1 ;
       fhir:ValueSet.compose.include.system [ fhir:value "http://loinc.org" ] ;
       fhir:ValueSet.compose.include.filter [
         fhir:index -1 ;
         fhir:ValueSet.compose.include.filter.property [ fhir:value "ORDER_OBS" ] ;
         fhir:ValueSet.compose.include.filter.op [ fhir:value "in" ] ;
         fhir:ValueSet.compose.include.filter.value [ fhir:value "Order,Both" ]
       ], [
         fhir:index -1 ;
         fhir:ValueSet.compose.include.filter.property [ fhir:value "STATUS" ] ;
         fhir:ValueSet.compose.include.filter.op [ fhir:value "in" ] ;
         fhir:ValueSet.compose.include.filter.value [ fhir:value "ACTIVE,TRIAL" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:ValueSet.compose.include.valueSet [
         fhir:value "http://fhir.hl7.org.vn/core/ValueSet/vn-cls-vs" ;
         fhir:index -1 ;
         fhir:link <http://fhir.hl7.org.vn/core/ValueSet/vn-cls-vs>
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.hl7.org.vn/core/ValueSet/vn-service-request-code-vs.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

