@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 sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://fhir.hl7.org.vn/core/MedicationAdministration/ExampleMedicationAdministrationInpatientDifferentLot> a fhir:MedicationAdministration ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "ExampleMedicationAdministrationInpatientDifferentLot"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-medication-administration" ;
       fhir:index -1 ;
       fhir:link <http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-medication-administration>
     ]
  ] ;
  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: MedicationAdministration ExampleMedicationAdministrationInpatientDifferentLot</b></p><a name=\"ExampleMedicationAdministrationInpatientDifferentLot\"> </a><a name=\"hcExampleMedicationAdministrationInpatientDifferentLot\"> </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-administration.html\">Sử dụng/Cho dùng thuốc VN Core — VN Core Medication Administration Profile</a></p></div><p><b>status</b>: Completed</p><p><b>category</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/medication-admin-category inpatient}\">Inpatient</span></p><p><b>medication</b>: <a href=\"#hcExampleMedicationAdministrationInpatientDifferentLot/InlineMedicationCefotaximeOtherLot\">Cefotaxime 1g bột pha tiêm (lô CTX-2026-0099)</a></p><p><b>subject</b>: <a href=\"Patient-ExamplePatientNguyenVanAn.html\">Nguyễn Văn An</a></p><p><b>context</b>: <a href=\"Encounter-ExampleEncounterInpatient.html\">Encounter: extension = Khỏi; identifier = Mã lượt khám chữa bệnh: VNMaLuotKCB#LK-2026-03-10-NTRU-0042; status = finished; class = inpatient encounter (ActCode#IMP); period = 2026-03-10 14:00:00+0700 --&gt; 2026-03-17 10:00:00+0700; reasonCode = </a></p><p><b>effective</b>: 2026-03-16 16:00:00+0700</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=\"Practitioner-ExamplePractitionerRenewalPending.html\">Điều dưỡng Phạm Thị Hồng</a></td></tr></table><p><b>reasonCode</b>: <span title=\"Codes:{http://fhir.hl7.org.vn/core/CodeSystem/vn-icd10-cs K35.8}\">Kháng sinh hậu phẫu cắt ruột thừa</span></p><p><b>request</b>: <a href=\"MedicationRequest-ExampleMedicationRequestCefotaximeInpatient.html\">Y lệnh Cefotaxime 1g IV mỗi 8 giờ</a></p><h3>Dosages</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Route</b></td><td><b>Dose</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{http://snomed.info/sct 47625008}\">Tiêm tĩnh mạch</span></td><td>1 g<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  codeg = 'g')</span></td></tr></table><hr/><blockquote><p class=\"res-header-id\"><b>Generated Narrative: Medication #InlineMedicationCefotaximeOtherLot</b></p><a name=\"ExampleMedicationAdministrationInpatientDifferentLot/InlineMedicationCefotaximeOtherLot\"> </a><a name=\"hcExampleMedicationAdministrationInpatientDifferentLot/InlineMedicationCefotaximeOtherLot\"> </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.html\">Thuốc VN Core — VN Core Medication Profile</a></p></div><p><b>code</b>: <span title=\"Codes:{http://snomed.info/sct 372704003}, {http://www.whocc.no/atc J01DD01}\">Cefotaxime 1g bột pha tiêm</span></p><p><b>status</b>: Active</p><p><b>form</b>: <span title=\"Codes:{http://snomed.info/sct 385223009}\">Bột pha dung dịch tiêm</span></p><h3>Ingredients</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Item[x]</b></td><td><b>IsActive</b></td><td><b>Strength</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{http://snomed.info/sct 372704003}\">Cefotaxime (dạng natri)</span></td><td>true</td><td>1 g<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  codeg = 'g')</span>/1 lọ<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code{vial} = '{vial}')</span></td></tr></table><h3>Batches</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>LotNumber</b></td><td><b>ExpirationDate</b></td></tr><tr><td style=\"display: none\">*</td><td>CTX-2026-0099</td><td>2027-12-31</td></tr></table></blockquote></div>"
  ] ;
  fhir:DomainResource.contained [
     a fhir:Medication ;
     fhir:index -1 ;
     fhir:Resource.id [ fhir:value "InlineMedicationCefotaximeOtherLot" ] ;
     fhir:Resource.meta [
       fhir:Meta.profile [
         fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-medication" ;
         fhir:index -1 ;
         fhir:link <http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-medication>
       ]
     ] ;
     fhir:Medication.code [
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         a sct:372704003 ;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
         fhir:Coding.code [ fhir:value "372704003" ] ;
         fhir:Coding.display [ fhir:value "Cefotaxime" ]
       ], [
         fhir:index -1 ;
         fhir:Coding.system [ fhir:value "http://www.whocc.no/atc" ] ;
         fhir:Coding.code [ fhir:value "J01DD01" ] ;
         fhir:Coding.display [ fhir:value "Cefotaxime" ]
       ] ;
       fhir:CodeableConcept.text [ fhir:value "Cefotaxime 1g bột pha tiêm" ]
     ] ;
     fhir:Medication.status [ fhir:value "active" ] ;
     fhir:Medication.form [
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         a sct:385223009 ;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
         fhir:Coding.code [ fhir:value "385223009" ] ;
         fhir:Coding.display [ fhir:value "Powder for solution for injection" ]
       ] ;
       fhir:CodeableConcept.text [ fhir:value "Bột pha dung dịch tiêm" ]
     ] ;
     fhir:Medication.ingredient [
       fhir:index -1 ;
       fhir:Medication.ingredient.itemCodeableConcept [
         fhir:CodeableConcept.coding [
           fhir:index -1 ;
           a sct:372704003 ;
           fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
           fhir:Coding.code [ fhir:value "372704003" ] ;
           fhir:Coding.display [ fhir:value "Cefotaxime" ]
         ] ;
         fhir:CodeableConcept.text [ fhir:value "Cefotaxime (dạng natri)" ]
       ] ;
       fhir:Medication.ingredient.isActive [ fhir:value "true"^^xsd:boolean ] ;
       fhir:Medication.ingredient.strength [
         fhir:Ratio.numerator [
           fhir:Quantity.value [ fhir:value "1"^^xsd:decimal ] ;
           fhir:Quantity.unit [ fhir:value "g" ] ;
           fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
           fhir:Quantity.code [ fhir:value "g" ]
         ] ;
         fhir:Ratio.denominator [
           fhir:Quantity.value [ fhir:value "1"^^xsd:decimal ] ;
           fhir:Quantity.unit [ fhir:value "lọ" ] ;
           fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
           fhir:Quantity.code [ fhir:value "{vial}" ]
         ]
       ]
     ] ;
     fhir:Medication.batch [
       fhir:Medication.batch.lotNumber [ fhir:value "CTX-2026-0099" ] ;
       fhir:Medication.batch.expirationDate [ fhir:value "2027-12-31"^^xsd:date ]
     ]
  ] ;
  fhir:MedicationAdministration.status [ fhir:value "completed"] ;
  fhir:MedicationAdministration.category [
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/medication-admin-category" ] ;
       fhir:Coding.code [ fhir:value "inpatient" ] ;
       fhir:Coding.display [ fhir:value "Inpatient" ]
     ]
  ] ;
  fhir:MedicationAdministration.medicationReference [
     fhir:Reference.reference [ fhir:value "#InlineMedicationCefotaximeOtherLot" ] ;
     fhir:Reference.display [ fhir:value "Cefotaxime 1g bột pha tiêm (lô CTX-2026-0099)" ]
  ] ;
  fhir:MedicationAdministration.subject [
     fhir:link <http://fhir.hl7.org.vn/core/Patient/ExamplePatientNguyenVanAn> ;
     fhir:Reference.reference [ fhir:value "Patient/ExamplePatientNguyenVanAn" ] ;
     fhir:Reference.display [ fhir:value "Nguyễn Văn An" ]
  ] ;
  fhir:MedicationAdministration.context [
     fhir:link <http://fhir.hl7.org.vn/core/Encounter/ExampleEncounterInpatient> ;
     fhir:Reference.reference [ fhir:value "Encounter/ExampleEncounterInpatient" ]
  ] ;
  fhir:MedicationAdministration.effectiveDateTime [ fhir:value "2026-03-16T16:00:00+07:00"^^xsd:dateTime] ;
  fhir:MedicationAdministration.performer [
     fhir:index -1 ;
     fhir:MedicationAdministration.performer.actor [
       fhir:link <http://fhir.hl7.org.vn/core/Practitioner/ExamplePractitionerRenewalPending> ;
       fhir:Reference.reference [ fhir:value "Practitioner/ExamplePractitionerRenewalPending" ] ;
       fhir:Reference.display [ fhir:value "Điều dưỡng Phạm Thị Hồng" ]
     ]
  ] ;
  fhir:MedicationAdministration.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 "K35.8" ] ;
       fhir:Coding.display [ fhir:value "Acute appendicitis, other and unspecified" ]
     ] ;
     fhir:CodeableConcept.text [ fhir:value "Kháng sinh hậu phẫu cắt ruột thừa" ]
  ] ;
  fhir:MedicationAdministration.request [
     fhir:link <http://fhir.hl7.org.vn/core/MedicationRequest/ExampleMedicationRequestCefotaximeInpatient> ;
     fhir:Reference.reference [ fhir:value "MedicationRequest/ExampleMedicationRequestCefotaximeInpatient" ] ;
     fhir:Reference.display [ fhir:value "Y lệnh Cefotaxime 1g IV mỗi 8 giờ" ]
  ] ;
  fhir:MedicationAdministration.dosage [
     fhir:MedicationAdministration.dosage.route [
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         a sct:47625008 ;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
         fhir:Coding.code [ fhir:value "47625008" ] ;
         fhir:Coding.display [ fhir:value "Intravenous route" ]
       ] ;
       fhir:CodeableConcept.text [ fhir:value "Tiêm tĩnh mạch" ]
     ] ;
     fhir:MedicationAdministration.dosage.dose [
       fhir:Quantity.value [ fhir:value "1"^^xsd:decimal ] ;
       fhir:Quantity.unit [ fhir:value "g" ] ;
       fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
       fhir:Quantity.code [ fhir:value "g" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.hl7.org.vn/core/MedicationAdministration/ExampleMedicationAdministrationInpatientDifferentLot.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

