@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/ExampleCostStatementStentWithoutOrdinal> a fhir:Invoice ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "ExampleCostStatementStentWithoutOrdinal"] ;
  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 ExampleCostStatementStentWithoutOrdinal</b></p><a name=\"ExampleCostStatementStentWithoutOrdinal\"> </a><a name=\"hcExampleCostStatementStentWithoutOrdinal\"> </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-08-06 --&gt; 2026-08-06</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-STENT-0001</p><p><b>status</b>: draft</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-08-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-ExampleAccountCardiacEpisode.html\">Account Đợ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 10}\">Gói thiết bị y tế</span></li><li>serviced: 2026-08-06</li><li>unit: Cái</li><li>hospitalUnitPrice: <span title=\"Vietnamese Dong\">₫43.225.000</span> (VND)</li></ul></blockquote><blockquote><p><b>Ngữ cảnh tính chi phí dòng bảng kê — Cost Calculation Context</b></p><ul><li>lineRole: <span title=\"Codes:{http://fhir.hl7.org.vn/core/CodeSystem/vn-cost-calculation-axis-cs additional-stent}\">Stent bổ sung ngoài gói</span></li><li>calculationBasis: <span title=\"Codes:{http://fhir.hl7.org.vn/core/CodeSystem/vn-cost-calculation-axis-cs authoritative-reported}\">Giá trị báo cáo là căn cứ</span></li><li>capRule: <span title=\"Codes:{http://fhir.hl7.org.vn/core/CodeSystem/vn-cost-calculation-axis-cs cap-stent-third-fourth}\">Trần stent thứ ba hoặc thứ tư</span></li><li>formulaVersion: <a href=\"CodeSystem-vn-cost-calculation-axis-cs.html#vn-cost-calculation-axis-cs-formula-qd697-2026\">Trục tính chi phí bảng kê BHYT — BHYT Cost Calculation Axes: formula-qd697-2026</a> (Bộ công thức QĐ 697/QĐ-BYT)</li></ul></blockquote><blockquote><p><b>Thông tin chi phí BHYT — Insurance Cost Info Extension</b></p><ul><li>paymentRatio: 33.33</li><li>paymentRatioSourceLexical: 33,33</li><li>insuranceLineAmount: <span title=\"Vietnamese Dong\">₫12.000.000</span> (VND)</li></ul></blockquote><p><b>sequence</b>: 1</p><p><b>chargeItem</b>: <span title=\"Codes:\">Khung giá đỡ động mạch vành bổ sung (fixture âm)</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>43225000</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>43225000</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-08-06"^^xsd:date ] ;
         fhir:Period.end [ fhir:value "2026-08-06"^^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-STENT-0001" ] ;
     fhir:Identifier.assigner [
       fhir:Reference.display [ fhir:value "Bệnh viện Chợ Rẫy" ]
     ]
  ] ;
  fhir:Invoice.status [ fhir:value "draft"] ;
  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-08-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/ExampleAccountCardiacEpisode> ;
     fhir:Reference.reference [ fhir:value "Account/ExampleAccountCardiacEpisode" ]
  ] ;
  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 "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-08-06"^^xsd:date ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "unit" ] ;
         fhir:Extension.valueString [ fhir:value "Cái" ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "hospitalUnitPrice" ] ;
         fhir:Extension.valueMoney [
           fhir:Money.value [ fhir:value "43225000"^^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 "lineRole" ] ;
         fhir:Extension.valueCodeableConcept [
           fhir:CodeableConcept.coding [
             fhir:index -1 ;
             fhir:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-cost-calculation-axis-cs" ] ;
             fhir:Coding.code [ fhir:value "additional-stent" ] ;
             fhir:Coding.display [ fhir:value "Stent bổ sung ngoài gói" ]
           ]
         ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "calculationBasis" ] ;
         fhir:Extension.valueCodeableConcept [
           fhir:CodeableConcept.coding [
             fhir:index -1 ;
             fhir:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-cost-calculation-axis-cs" ] ;
             fhir:Coding.code [ fhir:value "authoritative-reported" ] ;
             fhir:Coding.display [ fhir:value "Giá trị báo cáo là căn cứ" ]
           ]
         ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "capRule" ] ;
         fhir:Extension.valueCodeableConcept [
           fhir:CodeableConcept.coding [
             fhir:index -1 ;
             fhir:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-cost-calculation-axis-cs" ] ;
             fhir:Coding.code [ fhir:value "cap-stent-third-fourth" ] ;
             fhir:Coding.display [ fhir:value "Trần stent thứ ba hoặc thứ tư" ]
           ]
         ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "formulaVersion" ] ;
         fhir:Extension.valueCoding [
           fhir:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-cost-calculation-axis-cs" ] ;
           fhir:Coding.code [ fhir:value "formula-qd697-2026" ] ;
           fhir:Coding.display [ fhir:value "Bộ công thức QĐ 697/QĐ-BYT" ]
         ]
       ] ;
       fhir:Extension.url [ fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-cost-calculation-context" ]
     ], [
       fhir:index -1 ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "paymentRatio" ] ;
         fhir:Extension.valueDecimal [ fhir:value "33.33"^^xsd:decimal ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "paymentRatioSourceLexical" ] ;
         fhir:Extension.valueString [ fhir:value "33,33" ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "insuranceLineAmount" ] ;
         fhir:Extension.valueMoney [
           fhir:Money.value [ fhir:value "12000000"^^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:Invoice.lineItem.sequence [ fhir:value "1"^^xsd:positiveInteger ] ;
     fhir:Invoice.lineItem.chargeItemCodeableConcept [
       fhir:CodeableConcept.text [ fhir:value "Khung giá đỡ động mạch vành bổ sung (fixture âm)" ]
     ] ;
     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 "43225000"^^xsd:decimal ] ;
         fhir:Money.currency [ fhir:value "VND" ]
       ]
     ]
  ] ;
  fhir:Invoice.totalNet [
     fhir:Money.value [ fhir:value "43225000"^^xsd:decimal ] ;
     fhir:Money.currency [ fhir:value "VND" ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.hl7.org.vn/core/Invoice/ExampleCostStatementStentWithoutOrdinal.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

