@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/MedicationRequest/ExampleRxNarcoticCoursesNotConsecutive> a fhir:MedicationRequest ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "ExampleRxNarcoticCoursesNotConsecutive"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-cancer-pain-narcotic-prescription" ;
       fhir:index -1 ;
       fhir:link <http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-cancer-pain-narcotic-prescription>
     ]
  ] ;
  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: MedicationRequest ExampleRxNarcoticCoursesNotConsecutive</b></p><a name=\"ExampleRxNarcoticCoursesNotConsecutive\"> </a><a name=\"hcExampleRxNarcoticCoursesNotConsecutive\"> </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\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-vn-core-cancer-pain-narcotic-prescription.html\">Đơn thuốc gây nghiện giảm đau ung thư VN Core — VN Core Cancer Pain Narcotic Prescription Profile</a></p></div><blockquote><p><b>Đợt điều trị thuốc gây nghiện — Narcotic Treatment Course Extension</b></p><ul><li>sequence: 1</li><li>period: 2026-09-01 --&gt; 2026-09-10</li></ul></blockquote><blockquote><p><b>Đợt điều trị thuốc gây nghiện — Narcotic Treatment Course Extension</b></p><ul><li>sequence: 2</li><li>period: 2026-09-11 --&gt; 2026-09-20</li></ul></blockquote><blockquote><p><b>Đợt điều trị thuốc gây nghiện — Narcotic Treatment Course Extension</b></p><ul><li>sequence: 3</li><li>period: 2026-09-25 --&gt; 2026-09-30</li></ul></blockquote><p><b>status</b>: Active</p><p><b>intent</b>: Order</p><p><b>category</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/medicationrequest-category outpatient}\">Outpatient</span></p><p><b>medication</b>: <span title=\"Codes:\">Morphine sulfate 30mg viên giải phóng kéo dài</span></p><p><b>subject</b>: <a href=\"Patient-ExamplePatientNguyenVanAn.html\">Nguyễn Văn An Male, DoB: 1985-03-15 ( Căn cước công dân: VNCCCD#001085012345)</a></p><p><b>encounter</b>: <a href=\"Encounter-ExampleEncounterOutpatient.html\">Encounter: identifier = Mã lượt khám chữa bệnh: VNMaLuotKCB#LK-2026-03-19-NGT-0207; status = finished; class = ambulatory (ActCode#AMB); period = 2026-03-19 08:30:00+0700 --&gt; 2026-03-19 11:00:00+0700; reasonCode = </a></p><p><b>authoredOn</b>: 2026-08-31</p><p><b>requester</b>: <a href=\"Practitioner-ExamplePractitionerBSCKII.html\">Practitioner Nguyễn Thị Lan</a></p><p><b>reasonCode</b>: <span title=\"Codes:{http://fhir.hl7.org.vn/core/CodeSystem/vn-icd10-cs C34.9}\">Ung thư phế quản-phổi, chưa xác định vị trí</span></p><p><b>groupIdentifier</b>: <a href=\"NamingSystem-vn-prescription-code-ns.html\" title=\"Hệ thống định danh Mã đơn thuốc điện tử — 14 ký tự, ghép từ mã cơ sở KCB (05) + mã đơn (07) + dấu gạch + ký tự loại đơn. Cơ sở bán lẻ thuốc bán theo mã đơn và báo cáo về donthuocquocgia.vn.#xA;#xA;**Ai sinh mã.** Bộ Y tế là cơ quan quản trị cấu trúc mã và Hệ thống đơn thuốc quốc gia, nhưng mã cụ thể do phần mềm nguồn của cơ sở KCB (HIS) tự sinh theo cấu trúc rồi gửi lên: QĐ 808/QĐ-BYT đặt `ma_don_thuoc` trong FormData của request `/api/v1/gui-don-thuoc`, còn TT 26/2025/TT-BYT Phụ lục I chỉ nói mã 'được tạo ra tự động theo cấu trúc quy định' mà không nêu chủ thể. Không mô tả cổng quốc gia như bên cấp phát từng mã.#xA;#xA;**Ký tự loại đơn.** TT 26/2025/TT-BYT: `N` đơn thuốc gây nghiện, `H` đơn thuốc hướng thần/tiền chất, `C` đơn thuốc khác. TT 55/2025/TT-BYT dùng `T` cho đơn thuốc thang. QĐ 808/QĐ-BYT (contract cổng, ban hành trước) dùng bộ `C/N/H/Y` với `Y` cho đơn y học cổ truyền — giá trị legacy ở tầng transport, không dùng cho dữ liệu canonical.#xA;Căn cứ:#xA;- **TT 26/2025/TT-BYT** — kê đơn thuốc hoá dược, sinh phẩm ngoại trú; Điều 12 (liên thông đơn thuốc quốc gia, lĩnh thuốc trong 05 ngày kể từ ngày kê), Phụ lục I (cấu trúc mã đơn thuốc điện tử 14 ký tự); bãi bỏ TT 27/2021/TT-BYT từ 01/07/2025#xA;- **QĐ 808/QĐ-BYT (01/4/2022)** — hướng dẫn kết nối Hệ thống đơn thuốc quốc gia; cấu trúc mã đơn 14 ký tự#xA;- **QĐ 425/QĐ-BYT (05/02/2025)** — Quy chế quản lý, vận hành, sử dụng Hệ thống thông tin Quốc gia về quản lý kê đơn thuốc và bán thuốc theo đơn.\">VNPrescriptionCode</a>/791790000403-N</p><h3>DosageInstructions</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Text</b></td></tr><tr><td style=\"display: none\">*</td><td>Uống 1 viên mỗi 12 giờ</td></tr></table></div>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index -1 ;
     fhir:Element.extension [
       fhir:index -1 ;
       fhir:Extension.url [ fhir:value "sequence" ] ;
       fhir:Extension.valuePositiveInt [ fhir:value "1"^^xsd:positiveInteger ]
     ], [
       fhir:index -1 ;
       fhir:Extension.url [ fhir:value "period" ] ;
       fhir:Extension.valuePeriod [
         fhir:Period.start [ fhir:value "2026-09-01"^^xsd:date ] ;
         fhir:Period.end [ fhir:value "2026-09-10"^^xsd:date ]
       ]
     ] ;
     fhir:Extension.url [ fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-narcotic-treatment-course" ]
  ], [
     fhir:index -1 ;
     fhir:Element.extension [
       fhir:index -1 ;
       fhir:Extension.url [ fhir:value "sequence" ] ;
       fhir:Extension.valuePositiveInt [ fhir:value "2"^^xsd:positiveInteger ]
     ], [
       fhir:index -1 ;
       fhir:Extension.url [ fhir:value "period" ] ;
       fhir:Extension.valuePeriod [
         fhir:Period.start [ fhir:value "2026-09-11"^^xsd:date ] ;
         fhir:Period.end [ fhir:value "2026-09-20"^^xsd:date ]
       ]
     ] ;
     fhir:Extension.url [ fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-narcotic-treatment-course" ]
  ], [
     fhir:index -1 ;
     fhir:Element.extension [
       fhir:index -1 ;
       fhir:Extension.url [ fhir:value "sequence" ] ;
       fhir:Extension.valuePositiveInt [ fhir:value "3"^^xsd:positiveInteger ]
     ], [
       fhir:index -1 ;
       fhir:Extension.url [ fhir:value "period" ] ;
       fhir:Extension.valuePeriod [
         fhir:Period.start [ fhir:value "2026-09-25"^^xsd:date ] ;
         fhir:Period.end [ fhir:value "2026-09-30"^^xsd:date ]
       ]
     ] ;
     fhir:Extension.url [ fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-narcotic-treatment-course" ]
  ] ;
  fhir:MedicationRequest.status [ fhir:value "active"] ;
  fhir:MedicationRequest.intent [ fhir:value "order"] ;
  fhir:MedicationRequest.category [
     fhir:index -1 ;
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/medicationrequest-category" ] ;
       fhir:Coding.code [ fhir:value "outpatient" ] ;
       fhir:Coding.display [ fhir:value "Outpatient" ]
     ]
  ] ;
  fhir:MedicationRequest.medicationCodeableConcept [
     fhir:CodeableConcept.text [ fhir:value "Morphine sulfate 30mg viên giải phóng kéo dài" ]
  ] ;
  fhir:MedicationRequest.subject [
     fhir:link <http://fhir.hl7.org.vn/core/Patient/ExamplePatientNguyenVanAn> ;
     fhir:Reference.reference [ fhir:value "Patient/ExamplePatientNguyenVanAn" ]
  ] ;
  fhir:MedicationRequest.encounter [
     fhir:link <http://fhir.hl7.org.vn/core/Encounter/ExampleEncounterOutpatient> ;
     fhir:Reference.reference [ fhir:value "Encounter/ExampleEncounterOutpatient" ]
  ] ;
  fhir:MedicationRequest.authoredOn [ fhir:value "2026-08-31"^^xsd:date] ;
  fhir:MedicationRequest.requester [
     fhir:link <http://fhir.hl7.org.vn/core/Practitioner/ExamplePractitionerBSCKII> ;
     fhir:Reference.reference [ fhir:value "Practitioner/ExamplePractitionerBSCKII" ]
  ] ;
  fhir:MedicationRequest.reasonCode [
     fhir:index -1 ;
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-icd10-cs" ] ;
       fhir:Coding.code [ fhir:value "C34.9" ] ;
       fhir:Coding.display [ fhir:value "Ung thư phế quản-phổi, chưa xác định vị trí" ]
     ]
  ] ;
  fhir:MedicationRequest.groupIdentifier [
     fhir:Identifier.system [ fhir:value "http://fhir.hl7.org.vn/core/sid/don-thuoc-quoc-gia" ] ;
     fhir:Identifier.value [ fhir:value "791790000403-N" ]
  ] ;
  fhir:MedicationRequest.dosageInstruction [
     fhir:index -1 ;
     fhir:Dosage.text [ fhir:value "Uống 1 viên mỗi 12 giờ" ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.hl7.org.vn/core/MedicationRequest/ExampleRxNarcoticCoursesNotConsecutive.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

