@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 sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://fhir.hl7.org.vn/core/MedicationRequest/ExampleMedicationRequestAmoxicillin> a fhir:MedicationRequest ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "ExampleMedicationRequestAmoxicillin"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-medication-request"^^xsd:anyURI ;
       fhir:l <http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-medication-request>
     ] )
  ] ; # 
  fhir:language [ fhir:v "vi"] ; # 
  fhir:text [
     fhir:status [ fhir:v "extensions" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: MedicationRequest ExampleMedicationRequestAmoxicillin</b></p><a name=\"ExampleMedicationRequestAmoxicillin\"> </a><a name=\"hcExampleMedicationRequestAmoxicillin\"> </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-medication-request.html\">Đơn thuốc VN Core — VN Core MedicationRequest Profile</a></p></div><p><b>Ngày y lệnh — Order Date Extension</b>: 2026-03-19 09:30:00+0700</p><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>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:{http://www.whocc.no/atc J01CA04}\">Amoxicillin 500mg viên nang</span></p><p><b>subject</b>: <a href=\"Patient-ExamplePatientNguyenVanAn.html\">Nguyễn Văn An</a></p><p><b>encounter</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><p><b>authoredOn</b>: 2026-03-19 09:30:00+0700</p><p><b>requester</b>: <a href=\"Practitioner-ExamplePractitionerBSCKII.html\">BS CKII Nguyễn Thị Lan</a></p><p><b>reasonCode</b>: <span title=\"Codes:{http://hl7.org/fhir/sid/icd-10 J18.9}\">Viêm phổi, không xác định</span></p><p><b>insurance</b>: <a href=\"Coverage-ExampleCoverageBHYTNew.html\">Coverage: extension = Người lao động trong doanh nghiệp,-&gt;Bệnh viện Chợ Rẫy; identifier = http://fhir.hl7.org.vn/core/sid/bhyt#VNBHYT#001085012345; status = active; type = Medical; relationship = Self; period = 2025-08-01 --&gt; 2026-07-31</a></p><p><b>note</b>: </p><blockquote><div><p>Bệnh nhân không dị ứng Penicillin. Tái khám sau 7 ngày nếu không đỡ.</p>\n</div></blockquote><blockquote><p><b>dosageInstruction</b></p><p><b>sequence</b>: 1</p><p><b>text</b>: Uống 1 viên 500mg, 3 lần/ngày, sau ăn</p><p><b>timing</b>: 3 per 1 day</p><p><b>route</b>: <span title=\"Codes:{http://snomed.info/sct 26643006}\">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>500 mg<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  codemg = 'mg')</span></td></tr></table></blockquote><blockquote><p><b>dispenseRequest</b></p><p><b>quantity</b>: 21 viên</p><h3>ExpectedSupplyDurations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Value</b></td><td><b>Unit</b></td><td><b>System</b></td><td><b>Code</b></td></tr><tr><td style=\"display: none\">*</td><td>7</td><td>ngày</td><td><a href=\"http://unitsofmeasure.org\">http://unitsofmeasure.org</a></td><td>d</td></tr></table></blockquote></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:extension ( [
     fhir:url [
       fhir:v "http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-order-date"^^xsd:anyURI ;
       fhir:l <http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-order-date>
     ] ;
     fhir:value [
       a fhir:DateTime ;
       fhir:v "2026-03-19T09:30:00+07:00"^^xsd:dateTime
     ]
  ] [
     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:status [ fhir:v "active"] ; # 
  fhir:intent [ fhir:v "order"] ; # 
  fhir:category ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/medicationrequest-category"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/medicationrequest-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 "J01CA04" ] ;
       fhir:display [ fhir:v "Amoxicillin" ]
     ] ) ;
     fhir:text [ fhir:v "Amoxicillin 500mg viên nang" ]
  ] ; # 
  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:encounter [
     fhir:l <http://fhir.hl7.org.vn/core/Encounter/ExampleEncounterOutpatient> ;
     fhir:reference [ fhir:v "Encounter/ExampleEncounterOutpatient" ]
  ] ; # 
  fhir:authoredOn [ fhir:v "2026-03-19T09:30:00+07:00"^^xsd:dateTime] ; # 
  fhir:requester [
     fhir:l <http://fhir.hl7.org.vn/core/Practitioner/ExamplePractitionerBSCKII> ;
     fhir:reference [ fhir:v "Practitioner/ExamplePractitionerBSCKII" ] ;
     fhir:display [ fhir:v "BS CKII Nguyễn Thị Lan" ]
  ] ; # 
  fhir:reasonCode ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://hl7.org/fhir/sid/icd-10"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/sid/icd-10>
       ] ;
       fhir:code [ fhir:v "J18.9" ] ;
       fhir:display [ fhir:v "Pneumonia, unspecified" ]
     ] ) ;
     fhir:text [ fhir:v "Viêm phổi, không xác định" ]
  ] ) ; # 
  fhir:insurance ( [
     fhir:l <http://fhir.hl7.org.vn/core/Coverage/ExampleCoverageBHYTNew> ;
     fhir:reference [ fhir:v "Coverage/ExampleCoverageBHYTNew" ]
  ] ) ; # 
  fhir:note ( [
     fhir:text [ fhir:v "Bệnh nhân không dị ứng Penicillin. Tái khám sau 7 ngày nếu không đỡ." ]
  ] ) ; # 
  fhir:dosageInstruction ( [
     fhir:sequence [ fhir:v 1 ] ;
     fhir:text [ fhir:v "Uống 1 viên 500mg, 3 lần/ngày, sau ăn" ] ;
     fhir:timing [
       fhir:repeat [
         fhir:frequency [ fhir:v "3"^^xsd:positiveInteger ] ;
         fhir:period [ fhir:v "1"^^xsd:decimal ] ;
         fhir:periodUnit [ fhir:v "d" ]
       ]
     ] ;
     fhir:route [
       fhir:coding ( [
         a sct:26643006 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "26643006" ] ;
         fhir:display [ fhir:v "Oral route" ]
       ] ) ;
       fhir:text [ fhir:v "Uống" ]
     ] ;
     fhir:doseAndRate ( [
       fhir:dose [
         a fhir:Quantity ;
         fhir:value [ fhir:v "500"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "mg" ] ;
         fhir:system [
           fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
           fhir:l <http://unitsofmeasure.org>
         ] ;
         fhir:code [ fhir:v "mg" ]
       ]
     ] )
  ] ) ; # 
  fhir:dispenseRequest [
     fhir:quantity [
       fhir:value [ fhir:v "21"^^xsd:decimal ] ;
       fhir:unit [ fhir:v "viên" ]
     ] ;
     fhir:expectedSupplyDuration [
       fhir:value [ fhir:v "7"^^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" ]
     ]
  ] . # 

# -------------------------------------------------------------------------------------

