@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/Coverage/coverage-min> a fhir:Coverage ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "coverage-min"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://sfaa.gov.tw/base/StructureDefinition/Coverage-twss-base" ;
       fhir:index 0 ;
       fhir:link <https://sfaa.gov.tw/base/StructureDefinition/Coverage-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>：social service program <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\">（ <a href=\"http://terminology.hl7.org/CodeSystem/v3-ActCode\">ActCode</a>#SOCIAL）</span></p><p><b>福利身分別</b>：中低收入戶 <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\">（ <a href=\"CodeSystem-twss-welfare-type.html\">TWSS 福利身分別</a>#B）</span></p><p><b>受補助人</b>： <a href=\"Patient-pat-min.html\">Patient/pat-min</a> \"王小明\"</p><p><b>給付單位</b>： <a href=\"Organization-org-min.html\">Organization/org-min</a> \"社家署示範機構\"</p><p><b>補助期間</b>：2026-01-01至2026-12-31</p><p><b>補助年度[extension: <a href=\"StructureDefinition-twss-coverage-aid-year.html\">twss-coverage-aid-year</a>]</b>：2026</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-coverage-aid-year" ] ;
     fhir:Extension.valueString [ fhir:value "2026" ]
  ] ;
  fhir:Coverage.status [ fhir:value "active"] ;
  fhir:Coverage.type [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ActCode" ] ;
       fhir:Coding.code [ fhir:value "SOCIAL" ] ;
       fhir:Coding.display [ fhir:value "social service program" ]
     ], [
       fhir:index 1 ;
       fhir:Coding.system [ fhir:value "https://sfaa.gov.tw/base/CodeSystem/twss-welfare-type" ] ;
       fhir:Coding.code [ fhir:value "B" ] ;
       fhir:Coding.display [ fhir:value "中低收入戶" ]
     ] ;
     fhir:CodeableConcept.text [ fhir:value "中低收入戶" ]
  ] ;
  fhir:Coverage.beneficiary [
     fhir:link <https://sfaa.gov.tw/base/Patient/pat-min> ;
     fhir:Reference.reference [ fhir:value "Patient/pat-min" ]
  ] ;
  fhir:Coverage.period [
     fhir:Period.start [ fhir:value "2026-01-01"^^xsd:date ] ;
     fhir:Period.end [ fhir:value "2026-12-31"^^xsd:date ]
  ] ;
  fhir:Coverage.payor [
     fhir:index 0 ;
     fhir:link <https://sfaa.gov.tw/base/Organization/org-min> ;
     fhir:Reference.reference [ fhir:value "Organization/org-min" ]
  ] ;
  fhir:Coverage.costToBeneficiary [
     fhir:index 0 ;
     fhir:Coverage.costToBeneficiary.type [
       fhir:CodeableConcept.text [ fhir:value "核定補助金額" ]
     ] ;
     fhir:Coverage.costToBeneficiary.valueMoney [
       fhir:Money.value [ fhir:value "1000"^^xsd:decimal ] ;
       fhir:Money.currency [ fhir:value "TWD" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://sfaa.gov.tw/base/Coverage/coverage-min.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

