@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/ExampleCostStatementUninsuredSelfPayMismatch> a fhir:Invoice ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "ExampleCostStatementUninsuredSelfPayMismatch"] ;
  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 ExampleCostStatementUninsuredSelfPayMismatch</b></p><a name=\"ExampleCostStatementUninsuredSelfPayMismatch\"> </a><a name=\"hcExampleCostStatementUninsuredSelfPayMismatch\"> </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-04-05 --&gt; 2026-04-05</li></ul></blockquote><p><b>identifier</b>: Mã liên kết hồ sơ BHYT/LK-NEG-SELFPAY-2026-0002</p><p><b>status</b>: issued</p><p><b>subject</b>: <a href=\"Patient-ExamplePatientNguyenVanAn.html\">Nguyễn Văn An Male, DoB: 1985-03-15 ( Căn cước công dân: VNCCCD#001085012345)</a></p><p><b>recipient</b>: <a href=\"Patient-ExamplePatientNguyenVanAn.html\">Nguyễn Văn An Male, DoB: 1985-03-15 ( Căn cước công dân: VNCCCD#001085012345)</a></p><p><b>date</b>: 2026-04-06</p><p><b>issuer</b>: <a href=\"Organization-ExampleOrganizationChoRay.html\">Organization Bệnh viện Chợ Rẫy</a></p><p><b>account</b>: <a href=\"Account-ExampleAccountUninsuredVisit.html\">Account Lượt khám ngoại trú 05/04/2026 — không BHYT</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 1}\">Khám bệnh</span></li><li>serviced: 2026-04-05</li><li>unit: Lần</li><li>hospitalUnitPrice: <span title=\"Vietnamese Dong\">₫200.000</span> (VND)</li></ul></blockquote><blockquote><p><b>Thông tin chi phí BHYT — Insurance Cost Info Extension</b></p><ul><li>paymentRatio: 0</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\">₫0</span> (VND)</li><li>patientCopay: <span title=\"Vietnamese Dong\">₫0</span> (VND)</li><li>otherSource: <span title=\"Vietnamese Dong\">₫50.000</span> (VND)</li><li>patientSelfPay: <span title=\"Vietnamese Dong\">₫150.000</span> (VND)</li></ul></blockquote><p><b>sequence</b>: 1</p><p><b>chargeItem</b>: <span title=\"Codes:{http://fhir.hl7.org.vn/core/CodeSystem/vn-examination-code-cs 10.22}\">Khám chuyên khoa Ngoại tiêu hoá</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>200000</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>200000</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-04-05"^^xsd:date ] ;
         fhir:Period.end [ fhir:value "2026-04-05"^^xsd:date ]
       ]
     ] ;
     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-SELFPAY-2026-0002" ] ;
     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:Invoice.recipient [
     fhir:link <http://fhir.hl7.org.vn/core/Patient/ExamplePatientNguyenVanAn> ;
     fhir:Reference.reference [ fhir:value "Patient/ExamplePatientNguyenVanAn" ]
  ] ;
  fhir:Invoice.date [ fhir:value "2026-04-06"^^xsd:date] ;
  fhir:Invoice.issuer [
     fhir:link <http://fhir.hl7.org.vn/core/Organization/ExampleOrganizationChoRay> ;
     fhir:Reference.reference [ fhir:value "Organization/ExampleOrganizationChoRay" ]
  ] ;
  fhir:Invoice.account [
     fhir:link <http://fhir.hl7.org.vn/core/Account/ExampleAccountUninsuredVisit> ;
     fhir:Reference.reference [ fhir:value "Account/ExampleAccountUninsuredVisit" ]
  ] ;
  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 "1" ] ;
             fhir:Coding.display [ fhir:value "Khám bệnh" ]
           ]
         ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "serviced" ] ;
         fhir:Extension.valueDate [ fhir:value "2026-04-05"^^xsd:date ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "unit" ] ;
         fhir:Extension.valueString [ fhir:value "Lần" ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "hospitalUnitPrice" ] ;
         fhir:Extension.valueMoney [
           fhir:Money.value [ fhir:value "200000"^^xsd:decimal ] ;
           fhir:Money.currency [ fhir:value "VND" ]
         ]
       ] ;
       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 "paymentRatio" ] ;
         fhir:Extension.valueDecimal [ fhir:value "0"^^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 "0"^^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 "0"^^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 "50000"^^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 "150000"^^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.chargeItemCodeableConcept [
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         fhir:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-examination-code-cs" ] ;
         fhir:Coding.code [ fhir:value "10.22" ] ;
         fhir:Coding.display [ fhir:value "Ngoại tiêu hoá" ]
       ] ;
       fhir:CodeableConcept.text [ fhir:value "Khám chuyên khoa Ngoại tiêu hoá" ]
     ] ;
     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 "200000"^^xsd:decimal ] ;
         fhir:Money.currency [ fhir:value "VND" ]
       ]
     ]
  ] ;
  fhir:Invoice.totalNet [
     fhir:Money.value [ fhir:value "200000"^^xsd:decimal ] ;
     fhir:Money.currency [ fhir:value "VND" ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.hl7.org.vn/core/Invoice/ExampleCostStatementUninsuredSelfPayMismatch.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

