@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@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/MedicationDispense/ExampleMedicationDispenseOutpatientBHYT> a fhir:MedicationDispense ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "ExampleMedicationDispenseOutpatientBHYT"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-medication-dispense"^^xsd:anyURI ;
       fhir:l <http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-medication-dispense>
     ] )
  ] ; # 
  fhir:language [ fhir:v "vi"] ; # 
  fhir:text [
     fhir:status [ fhir:v "extensions" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"vi\" lang=\"vi\"><p class=\"res-header-id\"><b>Generated Narrative: MedicationDispense ExampleMedicationDispenseOutpatientBHYT</b></p><a name=\"ExampleMedicationDispenseOutpatientBHYT\"> </a><a name=\"hcExampleMedicationDispenseOutpatientBHYT\"> </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\">Profile: <a href=\"StructureDefinition-vn-core-medication-dispense.html\">Cấp phát thuốc VN Core — VN Core Medication Dispense Profile</a></p></div><blockquote><p><b>Thông tin chi phí BHYT — Insurance Cost Info Extension</b></p><ul><li>scope: <span title=\"Codes:{http://fhir.hl7.org.vn/core/CodeSystem/vn-insurance-scope-cs 1}\">Trong phạm vi hưởng BHYT</span></li><li>paymentRatio: 100</li><li>benefitLevel: 80</li></ul></blockquote><p><b>Số đăng ký thuốc (Visa) — Medication Registration Number</b>: VD-25123-18</p><p><b>status</b>: Completed</p><p><b>category</b>: <span title=\"Codes:{http://terminology.hl7.org/fhir/CodeSystem/medicationdispense-category outpatient}\">Outpatient</span></p><p><b>medication</b>: <span title=\"Codes:{http://www.whocc.no/atc C08CA01}\">Amlodipine 5mg viên nén</span></p><p><b>subject</b>: <a href=\"Patient-ExamplePatientNguyenVanAn.html\">Nguyễn Văn An</a></p><p><b>context</b>: <a href=\"Encounter-ExampleEncounterOutpatient.html\">Encounter: extension = Khám chữa bệnh ban đầu; 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><h3>Performers</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Actor</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"Organization-ExampleOrganizationChoRay.html\">Khoa Dược — Bệnh viện Chợ Rẫy</a></td></tr></table><p><b>authorizingPrescription</b>: <a href=\"MedicationRequest-ExampleMedicationRequestHypertension.html\">Đơn thuốc tăng huyết áp — Amlodipine 5mg</a></p><p><b>quantity</b>: 30 viên</p><p><b>daysSupply</b>: 30 ngày<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  coded = 'd')</span></p><p><b>whenHandedOver</b>: 2026-03-22 10:00:00+0700</p><blockquote><p><b>dosageInstruction</b></p><p><b>sequence</b>: 1</p><p><b>text</b>: Uống 1 viên mỗi sáng, trước ăn</p><p><b>timing</b>: Once per 1 day</p><p><b>route</b>: <span title=\"Codes:\">Uống</span></p><h3>DoseAndRates</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Dose[x]</b></td></tr><tr><td style=\"display: none\">*</td><td>1 viên</td></tr></table></blockquote></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:extension ( [
     fhir:extension ( [
       fhir:url [
         fhir:v "scope"^^xsd:anyURI ;
         fhir:l fhir:scope
       ] ;
       fhir:value [
         a fhir:CodeableConcept ;
         fhir:coding ( [
           fhir:system [
             fhir:v "http://fhir.hl7.org.vn/core/CodeSystem/vn-insurance-scope-cs"^^xsd:anyURI ;
             fhir:l <http://fhir.hl7.org.vn/core/CodeSystem/vn-insurance-scope-cs>
           ] ;
           fhir:code [ fhir:v "1" ] ;
           fhir:display [ fhir:v "Trong phạm vi hưởng BHYT" ]
         ] )
       ]
     ] [
       fhir:url [
         fhir:v "paymentRatio"^^xsd:anyURI ;
         fhir:l fhir:paymentRatio
       ] ;
       fhir:value [
         a fhir:Decimal ;
         fhir:v "100"^^xsd:decimal
       ]
     ] [
       fhir:url [
         fhir:v "benefitLevel"^^xsd:anyURI ;
         fhir:l fhir:benefitLevel
       ] ;
       fhir:value [
         a fhir:Decimal ;
         fhir:v "80"^^xsd:decimal
       ]
     ] ) ;
     fhir:url [
       fhir:v "http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-insurance-cost-info"^^xsd:anyURI ;
       fhir:l <http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-insurance-cost-info>
     ]
  ] [
     fhir:url [
       fhir:v "http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-med-reg-number"^^xsd:anyURI ;
       fhir:l <http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-med-reg-number>
     ] ;
     fhir:value [
       a fhir:String ;
       fhir:v "VD-25123-18"
     ]
  ] ) ; # 
  fhir:status [ fhir:v "completed"] ; # 
  fhir:category [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/fhir/CodeSystem/medicationdispense-category"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/fhir/CodeSystem/medicationdispense-category>
       ] ;
       fhir:code [ fhir:v "outpatient" ] ;
       fhir:display [ fhir:v "Outpatient" ]
     ] )
  ] ; # 
  fhir:medication [
     a fhir:CodeableConcept ;
     fhir:coding ( [
       fhir:system [
         fhir:v "http://www.whocc.no/atc"^^xsd:anyURI ;
         fhir:l <http://www.whocc.no/atc>
       ] ;
       fhir:code [ fhir:v "C08CA01" ] ;
       fhir:display [ fhir:v "Amlodipine" ]
     ] ) ;
     fhir:text [ fhir:v "Amlodipine 5mg viên nén" ]
  ] ; # 
  fhir:subject [
     fhir:l <http://fhir.hl7.org.vn/core/Patient/ExamplePatientNguyenVanAn> ;
     fhir:reference [ fhir:v "Patient/ExamplePatientNguyenVanAn" ] ;
     fhir:display [ fhir:v "Nguyễn Văn An" ]
  ] ; # 
  fhir:context [
     fhir:l <http://fhir.hl7.org.vn/core/Encounter/ExampleEncounterOutpatient> ;
     fhir:reference [ fhir:v "Encounter/ExampleEncounterOutpatient" ]
  ] ; # 
  fhir:performer ( [
     fhir:actor [
       fhir:l <http://fhir.hl7.org.vn/core/Organization/ExampleOrganizationChoRay> ;
       fhir:reference [ fhir:v "Organization/ExampleOrganizationChoRay" ] ;
       fhir:display [ fhir:v "Khoa Dược — Bệnh viện Chợ Rẫy" ]
     ]
  ] ) ; # 
  fhir:authorizingPrescription ( [
     fhir:l <http://fhir.hl7.org.vn/core/MedicationRequest/ExampleMedicationRequestHypertension> ;
     fhir:reference [ fhir:v "MedicationRequest/ExampleMedicationRequestHypertension" ] ;
     fhir:display [ fhir:v "Đơn thuốc tăng huyết áp — Amlodipine 5mg" ]
  ] ) ; # 
  fhir:quantity [
     fhir:value [ fhir:v "30"^^xsd:decimal ] ;
     fhir:unit [ fhir:v "viên" ]
  ] ; # 
  fhir:daysSupply [
     fhir:value [ fhir:v "30"^^xsd:decimal ] ;
     fhir:unit [ fhir:v "ngày" ] ;
     fhir:system [
       fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
       fhir:l <http://unitsofmeasure.org>
     ] ;
     fhir:code [ fhir:v "d" ]
  ] ; # 
  fhir:whenHandedOver [ fhir:v "2026-03-22T10:00:00+07:00"^^xsd:dateTime] ; # 
  fhir:dosageInstruction ( [
     fhir:sequence [ fhir:v 1 ] ;
     fhir:text [ fhir:v "Uống 1 viên mỗi sáng, trước ăn" ] ;
     fhir:timing [
       fhir:repeat [
         fhir:frequency [ fhir:v "1"^^xsd:positiveInteger ] ;
         fhir:period [ fhir:v "1"^^xsd:decimal ] ;
         fhir:periodUnit [ fhir:v "d" ]
       ]
     ] ;
     fhir:route [
       fhir:text [ fhir:v "Uống" ]
     ] ;
     fhir:doseAndRate ( [
       fhir:dose [
         a fhir:Quantity ;
         fhir:value [ fhir:v "1"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "viên" ]
       ]
     ] )
  ] ) . # 

# -------------------------------------------------------------------------------------

