@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-practice-license-status-cs> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "vn-practice-license-status-cs"] ;
  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: CodeSystem vn-practice-license-status-cs</b></p><a name=\"vn-practice-license-status-cs\"> </a><a name=\"hcvn-practice-license-status-cs\"> </a><p><b>Properties</b></p><p><b>This code system defines the following properties for its concepts</b></p><table class=\"grid\"><tr><td><b>Name</b></td><td><b>Code</b></td><td><b>URI</b></td><td><b>Type</b></td><td><b>Description</b></td></tr><tr><td>codeSource</td><td>codeSource</td><td>http://fhir.hl7.org.vn/core/CodeSystem/vn-practice-license-status-cs#codeSource</td><td>code</td><td>Nguồn của mã: project-assigned — mã do VN Core đặt vì văn bản căn cứ không ban hành bộ mã.</td></tr></table><p><b>Concepts</b></p><p>This case-sensitive code system <code>http://fhir.hl7.org.vn/core/CodeSystem/vn-practice-license-status-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>codeSource</b></td><td><b>English (English, en)</b></td></tr><tr><td style=\"white-space:nowrap\">active<a name=\"vn-practice-license-status-cs-active\"> </a></td><td>Đang có hiệu lực</td><td>Giấy phép hành nghề đang có hiệu lực bình thường trong thời hạn 05 năm theo Luật 15/2023/QH15 Điều 27 khoản 2.</td><td>project-assigned</td><td>Active</td></tr><tr><td style=\"white-space:nowrap\">renewal-pending-continued<a name=\"vn-practice-license-status-cs-renewal-pending-continued\"> </a></td><td>Tiếp tục hiệu lực trong khi chờ gia hạn</td><td>Cơ quan có thẩm quyền đã nhận đủ hồ sơ gia hạn nhưng đến ngày hết hạn ghi trên giấy phép vẫn chưa có văn bản trả lời; giấy phép tiếp tục có hiệu lực theo Luật 15/2023/QH15 Điều 32 khoản 5 điểm b. Ngày hết hạn ghi trên giấy phép có thể đã qua — đây là trạng thái hợp lệ, không phải dữ liệu lỗi.</td><td>project-assigned</td><td>Continued pending renewal</td></tr><tr><td style=\"white-space:nowrap\">cchn-transition-continued<a name=\"vn-practice-license-status-cs-cchn-transition-continued\"> </a></td><td>CCHN tiếp tục được dùng như giấy phép hành nghề</td><td>Chứng chỉ hành nghề cấp theo Luật KCB 40/2009/QH12 đang được tiếp tục sử dụng như giấy phép hành nghề cho tới khi chuyển đổi, theo NĐ 96/2023/NĐ-CP Điều 143 khoản 2. Phạm vi hành nghề theo phạm vi đã được cấp có thẩm quyền phê duyệt.</td><td>project-assigned</td><td>Transitional certificate in continued use</td></tr><tr><td style=\"white-space:nowrap\">partially-suspended<a name=\"vn-practice-license-status-cs-partially-suspended\"> </a></td><td>Đình chỉ một phần phạm vi hành nghề</td><td>Một phần phạm vi hành nghề đang bị đình chỉ theo NĐ 96/2023/NĐ-CP Điều 30 khoản 4 điểm a. Người hành nghề VẪN hành nghề hợp pháp ở phần phạm vi còn lại — vì vậy trạng thái này KHÔNG chặn nghĩa vụ credential, nhưng phần bị đình chỉ phải được nêu rõ.</td><td>project-assigned</td><td>Partially suspended</td></tr><tr><td style=\"white-space:nowrap\">fully-suspended<a name=\"vn-practice-license-status-cs-fully-suspended\"> </a></td><td>Đình chỉ toàn bộ phạm vi hành nghề</td><td>Toàn bộ phạm vi hành nghề đang bị đình chỉ. Người hành nghề không được hành nghề trong thời hạn đình chỉ.</td><td>project-assigned</td><td>Fully suspended</td></tr><tr><td style=\"white-space:nowrap\">revoked<a name=\"vn-practice-license-status-cs-revoked\"> </a></td><td>Đã bị thu hồi</td><td>Credential đã bị cơ quan có thẩm quyền thu hồi.</td><td>project-assigned</td><td>Revoked</td></tr><tr><td style=\"white-space:nowrap\">expired<a name=\"vn-practice-license-status-cs-expired\"> </a></td><td>Đã hết hiệu lực</td><td>Credential đã hết hiệu lực và KHÔNG thuộc nhánh tiếp tục hiệu lực khi chờ gia hạn hay nhánh CCHN chuyển tiếp.</td><td>project-assigned</td><td>Expired</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: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 "L-15-2023" ]
     ]
  ], [
     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-96-2023" ]
     ]
  ] ;
  fhir:CodeSystem.url [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-practice-license-status-cs"] ;
  fhir:CodeSystem.identifier [
     fhir:index -1 ;
     fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ] ;
     fhir:Identifier.value [ fhir:value "urn:oid:2.25.161089673617632664299011809196868855799.16.144" ]
  ] ;
  fhir:CodeSystem.version [ fhir:value "0.10.0"] ;
  fhir:CodeSystem.name [ fhir:value "VNPracticeLicenseStatusCS"] ;
  fhir:CodeSystem.title [ fhir:value "Trạng thái credential hành nghề KCB (bộ mã) — Practice Credential Status Code System"] ;
  fhir:CodeSystem.status [ fhir:value "draft"] ;
  fhir:CodeSystem.experimental [ fhir:value "false"^^xsd:boolean] ;
  fhir:CodeSystem.date [ fhir:value "2026-08-06"^^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 "Trạng thái pháp lý của giấy phép hành nghề (GPHN) hoặc chứng chỉ hành nghề (CCHN) chuyển tiếp.\n\n**Vì sao không suy hiệu lực từ `identifier.period.end`.** GPHN có thời hạn 05 năm\n(Luật 15/2023/QH15 Điều 27 khoản 2), nhưng Điều 32 khoản 5 điểm b tạo ngoại lệ: khi cơ quan\ncó thẩm quyền đã nhận đủ hồ sơ gia hạn mà đến ngày hết hạn vẫn không có văn bản trả lời thì\ngiấy phép TIẾP TỤC có hiệu lực. Một hệ thống so `period.end >= today()` sẽ từ chối sai người\nhành nghề đang hợp pháp. Mã `renewal-pending-continued` biểu diễn đúng nhánh đó.\n\n**CCHN không thuần lịch sử.** NĐ 96/2023/NĐ-CP Điều 143 khoản 2: từ 01/01/2024, CCHN cấp\ntheo Luật KCB 40/2009/QH12 được tiếp tục sử dụng NHƯ giấy phép hành nghề cho tới khi chuyển\nđổi khi làm thủ tục gia hạn. Điều 143 khoản 3 đặt mốc: áp thời hạn 05 năm từ năm 2030,\nhết hiệu lực năm 2035. Mã `cchn-transition-continued` biểu diễn CCHN đang trong cửa sổ đó.\n\n**Vì sao tách đình chỉ một phần khỏi đình chỉ toàn bộ.** NĐ 96/2023/NĐ-CP Điều 30 khoản 4 điểm a buộc\nquyết định đình chỉ ghi rõ là đình chỉ *một phần hay toàn bộ* phạm vi hành nghề, và nếu một phần thì\nphải nêu rõ phạm vi. Khoản 5 điểm a cho thấy hệ quả thực tế: cơ quan \"thực hiện việc giới hạn phạm vi\nhành nghề\" chứ không tước quyền hành nghề. Gộp hai thứ vào một mã `suspended` sẽ khiến người bị đình\nchỉ một phần — vẫn hành nghề hợp pháp phần còn lại — bị hệ thống từ chối oan.\n\nTrạng thái này là thuộc tính của CHÍNH credential, không phải của con người."] ;
  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 "Mã trong bộ này là ĐỊNH DANH KỸ THUẬT do VN Core đặt để tham chiếu ổn định trong hồ sơ FHIR — văn bản pháp luật nêu ở căn cứ quy định nội dung của từng khái niệm nhưng không ban hành bộ mã. Khi đối chiếu với văn bản, tra theo `display` và `definition`, không tra theo `code`."] ;
  fhir:CodeSystem.caseSensitive [ fhir:value "true"^^xsd:boolean] ;
  fhir:CodeSystem.content [ fhir:value "complete"] ;
  fhir:CodeSystem.count [ fhir:value "7"^^xsd:nonNegativeInteger] ;
  fhir:CodeSystem.property [
     fhir:index -1 ;
     fhir:CodeSystem.property.code [ fhir:value "codeSource" ] ;
     fhir:CodeSystem.property.uri [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-practice-license-status-cs#codeSource" ] ;
     fhir:CodeSystem.property.description [ fhir:value "Nguồn của mã: project-assigned — mã do VN Core đặt vì văn bản căn cứ không ban hành bộ mã." ] ;
     fhir:CodeSystem.property.type [ fhir:value "code" ]
  ] ;
  fhir:CodeSystem.concept [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "active" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Đang có hiệu lực" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Giấy phép hành nghề đang có hiệu lực bình thường trong thời hạn 05 năm theo Luật 15/2023/QH15 Điều 27 khoản 2." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Active" ]
     ] ;
     fhir:CodeSystem.concept.property [
       fhir:index -1 ;
       fhir:CodeSystem.concept.property.code [ fhir:value "codeSource" ] ;
       fhir:CodeSystem.concept.property.valueCode [ fhir:value "project-assigned" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "renewal-pending-continued" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Tiếp tục hiệu lực trong khi chờ gia hạn" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Cơ quan có thẩm quyền đã nhận đủ hồ sơ gia hạn nhưng đến ngày hết hạn ghi trên giấy phép vẫn chưa có văn bản trả lời; giấy phép tiếp tục có hiệu lực theo Luật 15/2023/QH15 Điều 32 khoản 5 điểm b. Ngày hết hạn ghi trên giấy phép có thể đã qua — đây là trạng thái hợp lệ, không phải dữ liệu lỗi." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Continued pending renewal" ]
     ] ;
     fhir:CodeSystem.concept.property [
       fhir:index -1 ;
       fhir:CodeSystem.concept.property.code [ fhir:value "codeSource" ] ;
       fhir:CodeSystem.concept.property.valueCode [ fhir:value "project-assigned" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "cchn-transition-continued" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "CCHN tiếp tục được dùng như giấy phép hành nghề" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Chứng chỉ hành nghề cấp theo Luật KCB 40/2009/QH12 đang được tiếp tục sử dụng như giấy phép hành nghề cho tới khi chuyển đổi, theo NĐ 96/2023/NĐ-CP Điều 143 khoản 2. Phạm vi hành nghề theo phạm vi đã được cấp có thẩm quyền phê duyệt." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Transitional certificate in continued use" ]
     ] ;
     fhir:CodeSystem.concept.property [
       fhir:index -1 ;
       fhir:CodeSystem.concept.property.code [ fhir:value "codeSource" ] ;
       fhir:CodeSystem.concept.property.valueCode [ fhir:value "project-assigned" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "partially-suspended" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Đình chỉ một phần phạm vi hành nghề" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Một phần phạm vi hành nghề đang bị đình chỉ theo NĐ 96/2023/NĐ-CP Điều 30 khoản 4 điểm a. Người hành nghề VẪN hành nghề hợp pháp ở phần phạm vi còn lại — vì vậy trạng thái này KHÔNG chặn nghĩa vụ credential, nhưng phần bị đình chỉ phải được nêu rõ." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Partially suspended" ]
     ] ;
     fhir:CodeSystem.concept.property [
       fhir:index -1 ;
       fhir:CodeSystem.concept.property.code [ fhir:value "codeSource" ] ;
       fhir:CodeSystem.concept.property.valueCode [ fhir:value "project-assigned" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "fully-suspended" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Đình chỉ toàn bộ phạm vi hành nghề" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Toàn bộ phạm vi hành nghề đang bị đình chỉ. Người hành nghề không được hành nghề trong thời hạn đình chỉ." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Fully suspended" ]
     ] ;
     fhir:CodeSystem.concept.property [
       fhir:index -1 ;
       fhir:CodeSystem.concept.property.code [ fhir:value "codeSource" ] ;
       fhir:CodeSystem.concept.property.valueCode [ fhir:value "project-assigned" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "revoked" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Đã bị thu hồi" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Credential đã bị cơ quan có thẩm quyền thu hồi." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Revoked" ]
     ] ;
     fhir:CodeSystem.concept.property [
       fhir:index -1 ;
       fhir:CodeSystem.concept.property.code [ fhir:value "codeSource" ] ;
       fhir:CodeSystem.concept.property.valueCode [ fhir:value "project-assigned" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeSystem.concept.code [ fhir:value "expired" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Đã hết hiệu lực" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Credential đã hết hiệu lực và KHÔNG thuộc nhánh tiếp tục hiệu lực khi chờ gia hạn hay nhánh CCHN chuyển tiếp." ] ;
     fhir:CodeSystem.concept.designation [
       fhir:index -1 ;
       fhir:CodeSystem.concept.designation.language [ fhir:value "en" ] ;
       fhir:CodeSystem.concept.designation.value [ fhir:value "Expired" ]
     ] ;
     fhir:CodeSystem.concept.property [
       fhir:index -1 ;
       fhir:CodeSystem.concept.property.code [ fhir:value "codeSource" ] ;
       fhir:CodeSystem.concept.property.valueCode [ fhir:value "project-assigned" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.hl7.org.vn/core/CodeSystem/vn-practice-license-status-cs.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

