@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 -------------------------------------------------------------------

<https://sfaa.gov.tw/base/ClaimResponse/claimresponse-min> a fhir:ClaimResponse ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "claimresponse-min"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://sfaa.gov.tw/base/StructureDefinition/ClaimResponse-twss-base" ;
       fhir:index 0 ;
       fhir:link <https://sfaa.gov.tw/base/StructureDefinition/ClaimResponse-twss-base>
     ]
  ] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h3><b>補助審核或核付結果資料</b></h3><p><b>審核結果狀態</b>：Active</p><p><b>用途</b>：Claim</p><p><b>申請類型</b>：補助審核結果</p><p><b>個案</b>： <a href=\"Patient-pat-min.html\">Patient/pat-min</a> \"王小明\"</p><p><b>建立日</b>：2026-06-30</p><p><b>核付單位</b>： <a href=\"Organization-org-min.html\">Organization/org-min</a> \"社家署示範機構\"</p><p><b>申請人員</b>： <a href=\"PractitionerRole-pracrole-min.html\">PractitionerRole/pracrole-min</a> \"主責社工\"</p><p><b>對應申請</b>： <a href=\"Claim-claim-min.html\">Claim/claim-min</a> \"補助申請範例\"</p><p><b>結果</b>：Complete</p><p><b>審核結果</b>：通過</p><p><b>補助撥款狀況</b>：已出帳</p><p><b>補助月分</b>：6</p><p><b>結果說明</b>：核定通過</p><p><b>項目核定金額</b>：1000 TWD</p><p><b>補助資格</b>： <a href=\"Coverage-coverage-min.html\">Coverage/coverage-min</a> \"中低收入戶\"</p><p><b>處理備註</b>：審核日期：2026-06-30；審核結果：符合。</p><p><b>核定金額</b>：1000 TWD</p></div>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index 0 ;
     fhir:Extension.url [ fhir:value "https://sfaa.gov.tw/base/StructureDefinition/twss-claim-review-status" ] ;
     fhir:Extension.valueCodeableConcept [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "https://sfaa.gov.tw/base/CodeSystem/twss-review-result" ] ;
         fhir:Coding.code [ fhir:value "Y" ] ;
         fhir:Coding.display [ fhir:value "通過" ]
       ]
     ]
  ], [
     fhir:index 1 ;
     fhir:Extension.url [ fhir:value "https://sfaa.gov.tw/base/StructureDefinition/twss-claim-payment-status" ] ;
     fhir:Extension.valueCodeableConcept [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "https://sfaa.gov.tw/base/CodeSystem/twss-payment-status" ] ;
         fhir:Coding.code [ fhir:value "1" ] ;
         fhir:Coding.display [ fhir:value "已出帳" ]
       ]
     ]
  ], [
     fhir:index 2 ;
     fhir:Extension.url [ fhir:value "https://sfaa.gov.tw/base/StructureDefinition/twss-claim-subsidy-month" ] ;
     fhir:Extension.valueInteger [ fhir:value "6"^^xsd:integer ]
  ] ;
  fhir:ClaimResponse.status [ fhir:value "active"] ;
  fhir:ClaimResponse.type [
     fhir:CodeableConcept.text [ fhir:value "補助審核結果" ]
  ] ;
  fhir:ClaimResponse.use [ fhir:value "claim"] ;
  fhir:ClaimResponse.patient [
     fhir:link <https://sfaa.gov.tw/base/Patient/pat-min> ;
     fhir:Reference.reference [ fhir:value "Patient/pat-min" ]
  ] ;
  fhir:ClaimResponse.created [ fhir:value "2026-06-30"^^xsd:date] ;
  fhir:ClaimResponse.insurer [
     fhir:link <https://sfaa.gov.tw/base/Organization/org-min> ;
     fhir:Reference.reference [ fhir:value "Organization/org-min" ]
  ] ;
  fhir:ClaimResponse.requestor [
     fhir:link <https://sfaa.gov.tw/base/PractitionerRole/pracrole-min> ;
     fhir:Reference.reference [ fhir:value "PractitionerRole/pracrole-min" ]
  ] ;
  fhir:ClaimResponse.request [
     fhir:link <https://sfaa.gov.tw/base/Claim/claim-min> ;
     fhir:Reference.reference [ fhir:value "Claim/claim-min" ]
  ] ;
  fhir:ClaimResponse.outcome [ fhir:value "complete"] ;
  fhir:ClaimResponse.disposition [ fhir:value "核定通過"] ;
  fhir:ClaimResponse.item [
     fhir:index 0 ;
     fhir:ClaimResponse.item.itemSequence [ fhir:value "1"^^xsd:positiveInteger ] ;
     fhir:ClaimResponse.item.adjudication [
       fhir:index 0 ;
       fhir:ClaimResponse.item.adjudication.category [
         fhir:CodeableConcept.coding [
           fhir:index 0 ;
           fhir:Coding.system [ fhir:value "https://sfaa.gov.tw/base/CodeSystem/twss-claim-adjudication-category" ] ;
           fhir:Coding.code [ fhir:value "approved-amount" ] ;
           fhir:Coding.display [ fhir:value "核定補助金額" ]
         ]
       ] ;
       fhir:ClaimResponse.item.adjudication.amount [
         fhir:Money.value [ fhir:value "1000"^^xsd:decimal ] ;
         fhir:Money.currency [ fhir:value "TWD" ]
       ]
     ]
  ] ;
  fhir:ClaimResponse.total [
     fhir:index 0 ;
     fhir:ClaimResponse.total.category [
       fhir:CodeableConcept.text [ fhir:value "核定金額" ]
     ] ;
     fhir:ClaimResponse.total.amount [
       fhir:Money.value [ fhir:value "1000"^^xsd:decimal ] ;
       fhir:Money.currency [ fhir:value "TWD" ]
     ]
  ] ;
  fhir:ClaimResponse.processNote [
     fhir:index 0 ;
     fhir:ClaimResponse.processNote.number [ fhir:value "1"^^xsd:positiveInteger ] ;
     fhir:ClaimResponse.processNote.type [ fhir:value "display" ] ;
     fhir:ClaimResponse.processNote.text [ fhir:value "已完成補助核定作業。" ]
  ] ;
  fhir:ClaimResponse.insurance [
     fhir:index 0 ;
     fhir:ClaimResponse.insurance.sequence [ fhir:value "1"^^xsd:positiveInteger ] ;
     fhir:ClaimResponse.insurance.focal [ fhir:value "true"^^xsd:boolean ] ;
     fhir:ClaimResponse.insurance.coverage [
       fhir:link <https://sfaa.gov.tw/base/Coverage/coverage-min> ;
       fhir:Reference.reference [ fhir:value "Coverage/coverage-min" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://sfaa.gov.tw/base/ClaimResponse/claimresponse-min.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

