@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/Claim/ExampleClaimLineAllocationForeignCurrency> a fhir:Claim ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "ExampleClaimLineAllocationForeignCurrency"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-claim" ;
       fhir:index -1 ;
       fhir:link <http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-claim>
     ]
  ] ;
  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: Claim ExampleClaimLineAllocationForeignCurrency</b></p><a name=\"ExampleClaimLineAllocationForeignCurrency\"> </a><a name=\"hcExampleClaimLineAllocationForeignCurrency\"> </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-claim.html\">Yêu cầu thanh toán KCB VN Core — VN Core Claim Profile</a></p></div><p><b>identifier</b>: Mã liên kết hồ sơ BHYT/LK-2026-NEG-LPA-USD</p><p><b>status</b>: Active</p><p><b>type</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/claim-type institutional}\">Institutional</span></p><p><b>subType</b>: <span title=\"Codes:{http://fhir.hl7.org.vn/core/CodeSystem/vn-patient-visit-type-cs 1.1}\">KCB đúng cơ sở nơi đăng ký KCB BHYT ban đầu</span></p><p><b>use</b>: Claim</p><p><b>patient</b>: <a href=\"Patient-ExamplePatientNguyenVanAn.html\">Nguyễn Văn An</a></p><p><b>created</b>: 2026-03-17</p><p><b>provider</b>: <a href=\"Organization-ExampleOrganizationChoRay.html\">Bệnh viện Chợ Rẫy</a></p><p><b>priority</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/processpriority normal}\">Normal</span></p><h3>Diagnoses</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Sequence</b></td><td><b>Diagnosis[x]</b></td><td><b>Type</b></td></tr><tr><td style=\"display: none\">*</td><td>1</td><td><span title=\"Codes:{http://fhir.hl7.org.vn/core/CodeSystem/vn-icd10-cs K35.8}\">Acute appendicitis, other and unspecified</span></td><td><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/ex-diagnosistype principal}\">Principal Diagnosis</span></td></tr></table><blockquote><p><b>insurance</b></p><p><b>sequence</b>: 1</p><p><b>focal</b>: false</p><p><b>coverage</b>: <a href=\"Coverage-ExampleCoverageBHYTNew.html\">Thẻ cũ — nhóm DN, mã số BHYT 0791234567</a></p></blockquote><blockquote><p><b>insurance</b></p><p><b>sequence</b>: 2</p><p><b>focal</b>: true</p><p><b>coverage</b>: <a href=\"Coverage-ExampleCoverageBHYTReissued.html\">Thẻ cấp mới từ 15/03/2026 — HC4790791234567</a></p></blockquote><blockquote><p><b>item</b></p><p><b>Khoa thực hiện — Claim Item Department Extension</b>: <span title=\"Codes:{http://fhir.hl7.org.vn/core/CodeSystem/vn-department-cs K22}\">Khoa Ngoại tiêu hoá</span></p><blockquote><p><b>Thông tin chi phí BHYT — Insurance Cost Info Extension</b></p><ul><li>benefitLevel: 80</li></ul></blockquote><p><b>sequence</b>: 1</p><p><b>category</b>: <span title=\"Codes:{http://fhir.hl7.org.vn/core/CodeSystem/vn-cost-category-cs 2.2}\">Ngày giường điều trị nội trú</span></p><p><b>productOrService</b>: <span title=\"Codes:{http://fhir.hl7.org.vn/core/CodeSystem/vn-bed-day-code-cs K22.NG1}\">Ngày giường Ngoại loại 1 - Khoa Ngoại tiêu hoá</span></p><p><b>serviced</b>: 2026-03-10 --&gt; 2026-03-14</p><p><b>quantity</b>: 5</p><h3>UnitPrices</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Value</b></td><td><b>Currency</b></td></tr><tr><td style=\"display: none\">*</td><td>360000</td><td>Vietnamese đồng</td></tr></table><h3>Nets</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Value</b></td><td><b>Currency</b></td></tr><tr><td style=\"display: none\">*</td><td>1800000</td><td>Vietnamese đồng</td></tr></table></blockquote><blockquote><p><b>item</b></p><p><b>Khoa thực hiện — Claim Item Department Extension</b>: <span title=\"Codes:{http://fhir.hl7.org.vn/core/CodeSystem/vn-department-cs K22}\">Khoa Ngoại tiêu hoá</span></p><blockquote><p><b>Thông tin chi phí BHYT — Insurance Cost Info Extension</b></p><ul><li>benefitLevel: 80</li></ul></blockquote><blockquote><p><b>Phân bổ nguồn thanh toán theo dòng — Line Payment Allocation</b></p><ul><li>insuranceFund: <span title=\"US Dollar\">US$576.000,00</span> (USD)</li><li>patientCopay: <span title=\"Vietnamese Dong\">₫144.000</span> (VND)</li><li>otherSource: <span title=\"Vietnamese Dong\">₫0</span> (VND)</li><li>patientSelfPay: <span title=\"Vietnamese Dong\">₫0</span> (VND)</li></ul></blockquote><p><b>sequence</b>: 2</p><p><b>category</b>: <span title=\"Codes:{http://fhir.hl7.org.vn/core/CodeSystem/vn-cost-category-cs 2.2}\">Ngày giường điều trị nội trú</span></p><p><b>productOrService</b>: <span title=\"Codes:{http://fhir.hl7.org.vn/core/CodeSystem/vn-bed-day-code-cs K22.NG1}\">Ngày giường Ngoại loại 1 - Khoa Ngoại tiêu hoá</span></p><p><b>serviced</b>: 2026-03-15 --&gt; 2026-03-16</p><p><b>quantity</b>: 2</p><h3>UnitPrices</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Value</b></td><td><b>Currency</b></td></tr><tr><td style=\"display: none\">*</td><td>360000</td><td>Vietnamese đồng</td></tr></table><h3>Nets</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Value</b></td><td><b>Currency</b></td></tr><tr><td style=\"display: none\">*</td><td>720000</td><td>Vietnamese đồng</td></tr></table></blockquote><h3>Totals</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Value</b></td><td><b>Currency</b></td></tr><tr><td style=\"display: none\">*</td><td>2520000</td><td>Vietnamese đồng</td></tr></table></div>"
  ] ;
  fhir:Claim.identifier [
     fhir:index -1 ;
     fhir:Identifier.type [
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         fhir:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-identifier-type-cs" ] ;
         fhir:Coding.code [ fhir:value "MA_LK" ] ;
         fhir:Coding.display [ fhir:value "Mã liên kết hồ sơ BHYT" ]
       ]
     ] ;
     fhir:Identifier.system [ fhir:value "http://fhir.hl7.org.vn/core/sid/ma-lk" ] ;
     fhir:Identifier.value [ fhir:value "LK-2026-NEG-LPA-USD" ] ;
     fhir:Identifier.assigner [
       fhir:Reference.display [ fhir:value "Bệnh viện Chợ Rẫy" ]
     ]
  ] ;
  fhir:Claim.status [ fhir:value "active"] ;
  fhir:Claim.type [
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/claim-type" ] ;
       fhir:Coding.code [ fhir:value "institutional" ] ;
       fhir:Coding.display [ fhir:value "Institutional" ]
     ]
  ] ;
  fhir:Claim.subType [
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-patient-visit-type-cs" ] ;
       fhir:Coding.code [ fhir:value "1.1" ] ;
       fhir:Coding.display [ fhir:value "KCB đúng cơ sở nơi đăng ký KCB BHYT ban đầu" ]
     ]
  ] ;
  fhir:Claim.use [ fhir:value "claim"] ;
  fhir:Claim.patient [
     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:Claim.created [ fhir:value "2026-03-17"^^xsd:date] ;
  fhir:Claim.provider [
     fhir:link <http://fhir.hl7.org.vn/core/Organization/ExampleOrganizationChoRay> ;
     fhir:Reference.reference [ fhir:value "Organization/ExampleOrganizationChoRay" ] ;
     fhir:Reference.display [ fhir:value "Bệnh viện Chợ Rẫy" ]
  ] ;
  fhir:Claim.priority [
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/processpriority" ] ;
       fhir:Coding.code [ fhir:value "normal" ] ;
       fhir:Coding.display [ fhir:value "Normal" ]
     ]
  ] ;
  fhir:Claim.diagnosis [
     fhir:index -1 ;
     fhir:Claim.diagnosis.sequence [ fhir:value "1"^^xsd:positiveInteger ] ;
     fhir:Claim.diagnosis.diagnosisCodeableConcept [
       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:Claim.diagnosis.type [
       fhir:index -1 ;
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/ex-diagnosistype" ] ;
         fhir:Coding.code [ fhir:value "principal" ] ;
         fhir:Coding.display [ fhir:value "Principal Diagnosis" ]
       ]
     ]
  ] ;
  fhir:Claim.insurance [
     fhir:index -1 ;
     fhir:Claim.insurance.sequence [ fhir:value "1"^^xsd:positiveInteger ] ;
     fhir:Claim.insurance.focal [ fhir:value "false"^^xsd:boolean ] ;
     fhir:Claim.insurance.coverage [
       fhir:link <http://fhir.hl7.org.vn/core/Coverage/ExampleCoverageBHYTNew> ;
       fhir:Reference.reference [ fhir:value "Coverage/ExampleCoverageBHYTNew" ] ;
       fhir:Reference.display [ fhir:value "Thẻ cũ — nhóm DN, mã số BHYT 0791234567" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:Claim.insurance.sequence [ fhir:value "2"^^xsd:positiveInteger ] ;
     fhir:Claim.insurance.focal [ fhir:value "true"^^xsd:boolean ] ;
     fhir:Claim.insurance.coverage [
       fhir:link <http://fhir.hl7.org.vn/core/Coverage/ExampleCoverageBHYTReissued> ;
       fhir:Reference.reference [ fhir:value "Coverage/ExampleCoverageBHYTReissued" ] ;
       fhir:Reference.display [ fhir:value "Thẻ cấp mới từ 15/03/2026 — HC4790791234567" ]
     ]
  ] ;
  fhir:Claim.item [
     fhir:index -1 ;
     fhir:Element.extension [
       fhir:index -1 ;
       fhir:Extension.url [ fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-claim-item-department" ] ;
       fhir:Extension.valueCodeableConcept [
         fhir:CodeableConcept.coding [
           fhir:index -1 ;
           fhir:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-department-cs" ] ;
           fhir:Coding.code [ fhir:value "K22" ] ;
           fhir:Coding.display [ fhir:value "Khoa Ngoại tiêu hoá" ]
         ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "benefitLevel" ] ;
         fhir:Extension.valueDecimal [ fhir:value "80"^^xsd:decimal ]
       ] ;
       fhir:Extension.url [ fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-insurance-cost-info" ]
     ] ;
     fhir:Claim.item.sequence [ fhir:value "1"^^xsd:positiveInteger ] ;
     fhir:Claim.item.category [
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         fhir:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-cost-category-cs" ] ;
         fhir:Coding.code [ fhir:value "2.2" ] ;
         fhir:Coding.display [ fhir:value "Ngày giường điều trị nội trú" ]
       ]
     ] ;
     fhir:Claim.item.productOrService [
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         fhir:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-bed-day-code-cs" ] ;
         fhir:Coding.code [ fhir:value "K22.NG1" ] ;
         fhir:Coding.display [ fhir:value "Ngày giường Ngoại loại 1 - Khoa Ngoại tiêu hoá" ]
       ]
     ] ;
     fhir:Claim.item.servicedPeriod [
       fhir:Period.start [ fhir:value "2026-03-10"^^xsd:date ] ;
       fhir:Period.end [ fhir:value "2026-03-14"^^xsd:date ]
     ] ;
     fhir:Claim.item.quantity [
       fhir:Quantity.value [ fhir:value "5"^^xsd:decimal ]
     ] ;
     fhir:Claim.item.unitPrice [
       fhir:Money.value [ fhir:value "360000"^^xsd:decimal ] ;
       fhir:Money.currency [ fhir:value "VND" ]
     ] ;
     fhir:Claim.item.net [
       fhir:Money.value [ fhir:value "1800000"^^xsd:decimal ] ;
       fhir:Money.currency [ fhir:value "VND" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:Element.extension [
       fhir:index -1 ;
       fhir:Extension.url [ fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-claim-item-department" ] ;
       fhir:Extension.valueCodeableConcept [
         fhir:CodeableConcept.coding [
           fhir:index -1 ;
           fhir:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-department-cs" ] ;
           fhir:Coding.code [ fhir:value "K22" ] ;
           fhir:Coding.display [ fhir:value "Khoa Ngoại tiêu hoá" ]
         ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "benefitLevel" ] ;
         fhir:Extension.valueDecimal [ fhir:value "80"^^xsd:decimal ]
       ] ;
       fhir:Extension.url [ fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-insurance-cost-info" ]
     ], [
       fhir:index -1 ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "insuranceFund" ] ;
         fhir:Extension.valueMoney [
           fhir:Money.value [ fhir:value "576000"^^xsd:decimal ] ;
           fhir:Money.currency [ fhir:value "USD" ]
         ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "patientCopay" ] ;
         fhir:Extension.valueMoney [
           fhir:Money.value [ fhir:value "144000"^^xsd:decimal ] ;
           fhir:Money.currency [ fhir:value "VND" ]
         ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "otherSource" ] ;
         fhir:Extension.valueMoney [
           fhir:Money.value [ fhir:value "0"^^xsd:decimal ] ;
           fhir:Money.currency [ fhir:value "VND" ]
         ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "patientSelfPay" ] ;
         fhir:Extension.valueMoney [
           fhir:Money.value [ fhir:value "0"^^xsd:decimal ] ;
           fhir:Money.currency [ fhir:value "VND" ]
         ]
       ] ;
       fhir:Extension.url [ fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-line-payment-allocation" ]
     ] ;
     fhir:Claim.item.sequence [ fhir:value "2"^^xsd:positiveInteger ] ;
     fhir:Claim.item.category [
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         fhir:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-cost-category-cs" ] ;
         fhir:Coding.code [ fhir:value "2.2" ] ;
         fhir:Coding.display [ fhir:value "Ngày giường điều trị nội trú" ]
       ]
     ] ;
     fhir:Claim.item.productOrService [
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         fhir:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-bed-day-code-cs" ] ;
         fhir:Coding.code [ fhir:value "K22.NG1" ] ;
         fhir:Coding.display [ fhir:value "Ngày giường Ngoại loại 1 - Khoa Ngoại tiêu hoá" ]
       ]
     ] ;
     fhir:Claim.item.servicedPeriod [
       fhir:Period.start [ fhir:value "2026-03-15"^^xsd:date ] ;
       fhir:Period.end [ fhir:value "2026-03-16"^^xsd:date ]
     ] ;
     fhir:Claim.item.quantity [
       fhir:Quantity.value [ fhir:value "2"^^xsd:decimal ]
     ] ;
     fhir:Claim.item.unitPrice [
       fhir:Money.value [ fhir:value "360000"^^xsd:decimal ] ;
       fhir:Money.currency [ fhir:value "VND" ]
     ] ;
     fhir:Claim.item.net [
       fhir:Money.value [ fhir:value "720000"^^xsd:decimal ] ;
       fhir:Money.currency [ fhir:value "VND" ]
     ]
  ] ;
  fhir:Claim.total [
     fhir:Money.value [ fhir:value "2520000"^^xsd:decimal ] ;
     fhir:Money.currency [ fhir:value "VND" ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.hl7.org.vn/core/Claim/ExampleClaimLineAllocationForeignCurrency.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

