@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/Invoice/ExampleCostStatementMissingRelatedService> a fhir:Invoice ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "ExampleCostStatementMissingRelatedService"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-cost-statement-invoice" ;
       fhir:index -1 ;
       fhir:link <http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-cost-statement-invoice>
     ]
  ] ;
  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: Invoice ExampleCostStatementMissingRelatedService</b></p><a name=\"ExampleCostStatementMissingRelatedService\"> </a><a name=\"hcExampleCostStatementMissingRelatedService\"> </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-cost-statement-invoice.html\">Bảng kê chi phí khám bệnh, chữa bệnh — VN Core Cost Statement Invoice</a></p></div><blockquote><p><b>Phân đoạn thẻ và mức hưởng trên bảng kê — Cost Statement Card Segment</b></p><ul><li>sequence: 1</li><li>period: 2026-03-18 --&gt; 2026-03-26</li><li>coverage: <a href=\"Coverage-ExampleCoverageBHYTNew.html\">Coverage: extension = Người lao động trong doanh nghiệp nhà nước,-&gt;Bệnh viện Chợ Rẫy; identifier = http://fhir.hl7.org.vn/core/sid/bhyt#VNBHYT#0791234567; status = active; type = Medical; relationship = Self; period = 2025-08-01 --&gt; 2026-07-31</a></li><li>benefitLevel: 80</li></ul></blockquote><p><b>identifier</b>: Mã liên kết hồ sơ BHYT/LK-NEG-RELSVC-2026-0001</p><p><b>status</b>: issued</p><p><b>subject</b>: <a href=\"Patient-ExamplePatientNguyenVanAn.html\">Nguyễn Văn An</a></p><p><b>recipient</b>: <a href=\"Patient-ExamplePatientNguyenVanAn.html\">Nguyễn Văn An</a></p><p><b>date</b>: 2026-03-26</p><p><b>issuer</b>: <a href=\"Organization-ExampleOrganizationChoRay.html\">Bệnh viện Chợ Rẫy</a></p><p><b>account</b>: <a href=\"Account-ExampleAccountCardiacEpisode.html\">Tài khoản viện phí của đợt nội trú tim mạch 18/03–26/03/2026</a></p><blockquote><p><b>lineItem</b></p><blockquote><p><b>Thuộc tính dòng bảng kê chi phí — Cost Statement Line Attributes</b></p><ul><li>segmentSequence: 1</li><li>category: <span title=\"Codes:{http://fhir.hl7.org.vn/core/CodeSystem/vn-cost-category-cs 6}\">Phẫu thuật, thủ thuật</span></li><li>serviced: 2026-03-18</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=\"Vietnamese Dong\">₫6.400.000</span> (VND)</li><li>patientCopay: <span title=\"Vietnamese Dong\">₫1.600.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>: 1</p><p><b>chargeItem</b>: <a href=\"ChargeItem-ExampleChargeItemPCI.html\">ChargeItem Nong và đặt stent động mạch vành</a></p><blockquote><p><b>priceComponent</b></p><p><b>type</b>: base price</p><p><b>factor</b>: 1</p><h3>Amounts</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>8000000</td><td>Vietnamese đồng</td></tr></table></blockquote></blockquote><blockquote><p><b>lineItem</b></p><blockquote><p><b>Thuộc tính dòng bảng kê chi phí — Cost Statement Line Attributes</b></p><blockquote><p><b>url</b></p>segmentSequence</blockquote><p><b>value</b>: 1</p><blockquote><p><b>url</b></p>category</blockquote><p><b>value</b>: <span title=\"Codes:{http://fhir.hl7.org.vn/core/CodeSystem/vn-cost-category-cs 10}\">Gói thiết bị y tế</span></p><blockquote><p><b>url</b></p>serviced</blockquote><p><b>value</b>: 2026-03-18</p><blockquote><p><b>url</b></p>relatedServiceSequence</blockquote><p><b>value</b>: 99</p><blockquote><p><b>url</b></p>unit</blockquote><p><b>value</b>: gói</p><blockquote><p><b>url</b></p>hospitalUnitPrice</blockquote><p><b>value</b>: <span title=\"Vietnamese Dong\">₫42.000.000</span> (VND)</p><p><b>item</b>: <span title=\"Codes:\">Stent động mạch vành phủ thuốc</span></p><p><b>unit</b>: Cái</p><p><b>quantity</b>: 1</p><p><b>hospitalUnitPrice</b>: <span title=\"Vietnamese Dong\">₫28.000.000</span> (VND)</p><p><b>insuranceUnitPrice</b>: <span title=\"Vietnamese Dong\">₫28.000.000</span> (VND)</p><p><b>serviceRate</b>: 100</p><p><b>hospitalAmount</b>: <span title=\"Vietnamese Dong\">₫28.000.000</span> (VND)</p><p><b>insuranceRate</b>: 100</p><p><b>insuranceAmount</b>: <span title=\"Vietnamese Dong\">₫28.000.000</span> (VND)</p><blockquote><p><b>url</b></p>packageComponent</blockquote><p><b>item</b>: <span title=\"Codes:\">Bóng nong động mạch vành</span></p><p><b>unit</b>: Cái</p><p><b>quantity</b>: 1</p><p><b>hospitalUnitPrice</b>: <span title=\"Vietnamese Dong\">₫9.000.000</span> (VND)</p><p><b>insuranceUnitPrice</b>: <span title=\"Vietnamese Dong\">₫9.000.000</span> (VND)</p><p><b>serviceRate</b>: 100</p><p><b>hospitalAmount</b>: <span title=\"Vietnamese Dong\">₫9.000.000</span> (VND)</p><p><b>insuranceRate</b>: 100</p><p><b>insuranceAmount</b>: <span title=\"Vietnamese Dong\">₫9.000.000</span> (VND)</p><blockquote><p><b>url</b></p>packageComponent</blockquote><p><b>item</b>: <span title=\"Codes:\">Ống thông can thiệp (guide catheter)</span></p><p><b>unit</b>: Cái</p><p><b>quantity</b>: 1</p><p><b>hospitalUnitPrice</b>: <span title=\"Vietnamese Dong\">₫5.000.000</span> (VND)</p><p><b>insuranceUnitPrice</b>: <span title=\"Vietnamese Dong\">₫5.000.000</span> (VND)</p><p><b>serviceRate</b>: 100</p><p><b>hospitalAmount</b>: <span title=\"Vietnamese Dong\">₫5.000.000</span> (VND)</p><p><b>insuranceRate</b>: 100</p><p><b>insuranceAmount</b>: <span title=\"Vietnamese Dong\">₫5.000.000</span> (VND)</p><blockquote><p><b>url</b></p>packageComponent</blockquote></blockquote><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>insuranceLineAmount: <span title=\"Vietnamese Dong\">₫42.000.000</span> (VND)</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=\"Vietnamese Dong\">₫33.600.000</span> (VND)</li><li>patientCopay: <span title=\"Vietnamese Dong\">₫8.400.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>chargeItem</b>: <span title=\"Codes:\">Gói vật tư can thiệp động mạch vành</span></p><blockquote><p><b>priceComponent</b></p><p><b>type</b>: base price</p><p><b>factor</b>: 1</p><h3>Amounts</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>42000000</td><td>Vietnamese đồng</td></tr></table></blockquote></blockquote><h3>TotalNets</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>50000000</td><td>Vietnamese đồng</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-03-18"^^xsd:date ] ;
         fhir:Period.end [ fhir:value "2026-03-26"^^xsd:date ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Extension.url [ fhir:value "coverage" ] ;
       fhir:Extension.valueReference [
         fhir:link <http://fhir.hl7.org.vn/core/Coverage/ExampleCoverageBHYTNew> ;
         fhir:Reference.reference [ fhir:value "Coverage/ExampleCoverageBHYTNew" ]
       ]
     ], [
       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-cost-statement-segment" ]
  ] ;
  fhir:Invoice.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-NEG-RELSVC-2026-0001" ] ;
     fhir:Identifier.assigner [
       fhir:Reference.display [ fhir:value "Bệnh viện Chợ Rẫy" ]
     ]
  ] ;
  fhir:Invoice.status [ fhir:value "issued"] ;
  fhir:Invoice.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:Invoice.recipient [
     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:Invoice.date [ fhir:value "2026-03-26"^^xsd:date] ;
  fhir:Invoice.issuer [
     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:Invoice.account [
     fhir:link <http://fhir.hl7.org.vn/core/Account/ExampleAccountCardiacEpisode> ;
     fhir:Reference.reference [ fhir:value "Account/ExampleAccountCardiacEpisode" ] ;
     fhir:Reference.display [ fhir:value "Tài khoản viện phí của đợt nội trú tim mạch 18/03–26/03/2026" ]
  ] ;
  fhir:Invoice.lineItem [
     fhir:index -1 ;
     fhir:Element.extension [
       fhir:index -1 ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "segmentSequence" ] ;
         fhir:Extension.valuePositiveInt [ fhir:value "1"^^xsd:positiveInteger ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "category" ] ;
         fhir:Extension.valueCodeableConcept [
           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 "6" ] ;
             fhir:Coding.display [ fhir:value "Phẫu thuật, thủ thuật" ]
           ]
         ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "serviced" ] ;
         fhir:Extension.valueDate [ fhir:value "2026-03-18"^^xsd:date ]
       ] ;
       fhir:Extension.url [ fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-cost-statement-line" ]
     ], [
       fhir:index -1 ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "insuranceFund" ] ;
         fhir:Extension.valueMoney [
           fhir:Money.value [ fhir:value "6400000"^^xsd:decimal ] ;
           fhir:Money.currency [ fhir:value "VND" ]
         ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "patientCopay" ] ;
         fhir:Extension.valueMoney [
           fhir:Money.value [ fhir:value "1600000"^^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:Invoice.lineItem.sequence [ fhir:value "1"^^xsd:positiveInteger ] ;
     fhir:Invoice.lineItem.chargeItemReference [
       fhir:link <http://fhir.hl7.org.vn/core/ChargeItem/ExampleChargeItemPCI> ;
       fhir:Reference.reference [ fhir:value "ChargeItem/ExampleChargeItemPCI" ]
     ] ;
     fhir:Invoice.lineItem.priceComponent [
       fhir:index -1 ;
       fhir:Invoice.lineItem.priceComponent.type [ fhir:value "base" ] ;
       fhir:Invoice.lineItem.priceComponent.factor [ fhir:value "1"^^xsd:decimal ] ;
       fhir:Invoice.lineItem.priceComponent.amount [
         fhir:Money.value [ fhir:value "8000000"^^xsd:decimal ] ;
         fhir:Money.currency [ fhir:value "VND" ]
       ]
     ]
  ], [
     fhir:index -1 ;
     fhir:Element.extension [
       fhir:index -1 ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "segmentSequence" ] ;
         fhir:Extension.valuePositiveInt [ fhir:value "1"^^xsd:positiveInteger ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "category" ] ;
         fhir:Extension.valueCodeableConcept [
           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 "10" ] ;
             fhir:Coding.display [ fhir:value "Gói thiết bị y tế" ]
           ]
         ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "serviced" ] ;
         fhir:Extension.valueDate [ fhir:value "2026-03-18"^^xsd:date ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "relatedServiceSequence" ] ;
         fhir:Extension.valuePositiveInt [ fhir:value "99"^^xsd:positiveInteger ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "unit" ] ;
         fhir:Extension.valueString [ fhir:value "gói" ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "hospitalUnitPrice" ] ;
         fhir:Extension.valueMoney [
           fhir:Money.value [ fhir:value "42000000"^^xsd:decimal ] ;
           fhir:Money.currency [ fhir:value "VND" ]
         ]
       ], [
         fhir:index -1 ;
         fhir:Element.extension [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "item" ] ;
           fhir:Extension.valueCodeableConcept [
             fhir:CodeableConcept.text [ fhir:value "Stent động mạch vành phủ thuốc" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "unit" ] ;
           fhir:Extension.valueString [ fhir:value "Cái" ]
         ], [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "quantity" ] ;
           fhir:Extension.valueDecimal [ fhir:value "1"^^xsd:decimal ]
         ], [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "hospitalUnitPrice" ] ;
           fhir:Extension.valueMoney [
             fhir:Money.value [ fhir:value "28000000"^^xsd:decimal ] ;
             fhir:Money.currency [ fhir:value "VND" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "insuranceUnitPrice" ] ;
           fhir:Extension.valueMoney [
             fhir:Money.value [ fhir:value "28000000"^^xsd:decimal ] ;
             fhir:Money.currency [ fhir:value "VND" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "serviceRate" ] ;
           fhir:Extension.valueDecimal [ fhir:value "100"^^xsd:decimal ]
         ], [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "hospitalAmount" ] ;
           fhir:Extension.valueMoney [
             fhir:Money.value [ fhir:value "28000000"^^xsd:decimal ] ;
             fhir:Money.currency [ fhir:value "VND" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "insuranceRate" ] ;
           fhir:Extension.valueDecimal [ fhir:value "100"^^xsd:decimal ]
         ], [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "insuranceAmount" ] ;
           fhir:Extension.valueMoney [
             fhir:Money.value [ fhir:value "28000000"^^xsd:decimal ] ;
             fhir:Money.currency [ fhir:value "VND" ]
           ]
         ] ;
         fhir:Extension.url [ fhir:value "packageComponent" ]
       ], [
         fhir:index -1 ;
         fhir:Element.extension [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "item" ] ;
           fhir:Extension.valueCodeableConcept [
             fhir:CodeableConcept.text [ fhir:value "Bóng nong động mạch vành" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "unit" ] ;
           fhir:Extension.valueString [ fhir:value "Cái" ]
         ], [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "quantity" ] ;
           fhir:Extension.valueDecimal [ fhir:value "1"^^xsd:decimal ]
         ], [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "hospitalUnitPrice" ] ;
           fhir:Extension.valueMoney [
             fhir:Money.value [ fhir:value "9000000"^^xsd:decimal ] ;
             fhir:Money.currency [ fhir:value "VND" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "insuranceUnitPrice" ] ;
           fhir:Extension.valueMoney [
             fhir:Money.value [ fhir:value "9000000"^^xsd:decimal ] ;
             fhir:Money.currency [ fhir:value "VND" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "serviceRate" ] ;
           fhir:Extension.valueDecimal [ fhir:value "100"^^xsd:decimal ]
         ], [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "hospitalAmount" ] ;
           fhir:Extension.valueMoney [
             fhir:Money.value [ fhir:value "9000000"^^xsd:decimal ] ;
             fhir:Money.currency [ fhir:value "VND" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "insuranceRate" ] ;
           fhir:Extension.valueDecimal [ fhir:value "100"^^xsd:decimal ]
         ], [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "insuranceAmount" ] ;
           fhir:Extension.valueMoney [
             fhir:Money.value [ fhir:value "9000000"^^xsd:decimal ] ;
             fhir:Money.currency [ fhir:value "VND" ]
           ]
         ] ;
         fhir:Extension.url [ fhir:value "packageComponent" ]
       ], [
         fhir:index -1 ;
         fhir:Element.extension [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "item" ] ;
           fhir:Extension.valueCodeableConcept [
             fhir:CodeableConcept.text [ fhir:value "Ống thông can thiệp (guide catheter)" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "unit" ] ;
           fhir:Extension.valueString [ fhir:value "Cái" ]
         ], [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "quantity" ] ;
           fhir:Extension.valueDecimal [ fhir:value "1"^^xsd:decimal ]
         ], [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "hospitalUnitPrice" ] ;
           fhir:Extension.valueMoney [
             fhir:Money.value [ fhir:value "5000000"^^xsd:decimal ] ;
             fhir:Money.currency [ fhir:value "VND" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "insuranceUnitPrice" ] ;
           fhir:Extension.valueMoney [
             fhir:Money.value [ fhir:value "5000000"^^xsd:decimal ] ;
             fhir:Money.currency [ fhir:value "VND" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "serviceRate" ] ;
           fhir:Extension.valueDecimal [ fhir:value "100"^^xsd:decimal ]
         ], [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "hospitalAmount" ] ;
           fhir:Extension.valueMoney [
             fhir:Money.value [ fhir:value "5000000"^^xsd:decimal ] ;
             fhir:Money.currency [ fhir:value "VND" ]
           ]
         ], [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "insuranceRate" ] ;
           fhir:Extension.valueDecimal [ fhir:value "100"^^xsd:decimal ]
         ], [
           fhir:index -1 ;
           fhir:Extension.url [ fhir:value "insuranceAmount" ] ;
           fhir:Extension.valueMoney [
             fhir:Money.value [ fhir:value "5000000"^^xsd:decimal ] ;
             fhir:Money.currency [ fhir:value "VND" ]
           ]
         ] ;
         fhir:Extension.url [ fhir:value "packageComponent" ]
       ] ;
       fhir:Extension.url [ fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-cost-statement-line" ]
     ], [
       fhir:index -1 ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "scope" ] ;
         fhir:Extension.valueCodeableConcept [
           fhir:CodeableConcept.coding [
             fhir:index -1 ;
             fhir:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-insurance-scope-cs" ] ;
             fhir:Coding.code [ fhir:value "1" ] ;
             fhir:Coding.display [ fhir:value "Trong phạm vi hưởng BHYT" ]
           ]
         ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "paymentRatio" ] ;
         fhir:Extension.valueDecimal [ fhir:value "100"^^xsd:decimal ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "insuranceLineAmount" ] ;
         fhir:Extension.valueMoney [
           fhir:Money.value [ fhir:value "42000000"^^xsd:decimal ] ;
           fhir:Money.currency [ fhir:value "VND" ]
         ]
       ] ;
       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 "33600000"^^xsd:decimal ] ;
           fhir:Money.currency [ fhir:value "VND" ]
         ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "patientCopay" ] ;
         fhir:Extension.valueMoney [
           fhir:Money.value [ fhir:value "8400000"^^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:Invoice.lineItem.sequence [ fhir:value "2"^^xsd:positiveInteger ] ;
     fhir:Invoice.lineItem.chargeItemCodeableConcept [
       fhir:CodeableConcept.text [ fhir:value "Gói vật tư can thiệp động mạch vành" ]
     ] ;
     fhir:Invoice.lineItem.priceComponent [
       fhir:index -1 ;
       fhir:Invoice.lineItem.priceComponent.type [ fhir:value "base" ] ;
       fhir:Invoice.lineItem.priceComponent.factor [ fhir:value "1"^^xsd:decimal ] ;
       fhir:Invoice.lineItem.priceComponent.amount [
         fhir:Money.value [ fhir:value "42000000"^^xsd:decimal ] ;
         fhir:Money.currency [ fhir:value "VND" ]
       ]
     ]
  ] ;
  fhir:Invoice.totalNet [
     fhir:Money.value [ fhir:value "50000000"^^xsd:decimal ] ;
     fhir:Money.currency [ fhir:value "VND" ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.hl7.org.vn/core/Invoice/ExampleCostStatementMissingRelatedService.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

