@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/EpisodeOfCare/episode-base> a fhir:EpisodeOfCare ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "episode-base"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://sfaa.gov.tw/base/StructureDefinition/EpisodeOfCare-twss-base" ;
       fhir:index 0 ;
       fhir:link <https://sfaa.gov.tw/base/StructureDefinition/EpisodeOfCare-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><blockquote><p><b>案件編號</b>：EOC-BASE-001 （https://example.org/twss/episode-id）</p></blockquote><p><b>案件狀態</b>：Active</p><p><b>案件類型</b>：兒童發展通報轉介及個案管理服務 <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\">（ <a href=\"CodeSystem-twss-episode-of-care-type.html\">TWSS 個案服務或補助案件類型</a>#early-intervention）</span></p><p><b>個案</b>： <a href=\"Patient-pat-min.html\">Patient/pat-min</a> \"王小明\"</p><p><b>服務期間</b>：自 2026-01-01 起</p></div>"
  ] ;
  fhir:EpisodeOfCare.identifier [
     fhir:index 0 ;
     fhir:Identifier.system [ fhir:value "https://sfaa.gov.tw/base/identifier/case-number" ] ;
     fhir:Identifier.value [ fhir:value "EOC-BASE-001" ]
  ] ;
  fhir:EpisodeOfCare.status [ fhir:value "active"] ;
  fhir:EpisodeOfCare.type [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "https://sfaa.gov.tw/base/CodeSystem/twss-episode-of-care-type" ] ;
       fhir:Coding.code [ fhir:value "early-intervention" ] ;
       fhir:Coding.display [ fhir:value "兒童發展通報轉介及個案管理服務" ]
     ] ;
     fhir:CodeableConcept.text [ fhir:value "兒童發展通報轉介及個案管理服務案件" ]
  ] ;
  fhir:EpisodeOfCare.patient [
     fhir:link <https://sfaa.gov.tw/base/Patient/pat-min> ;
     fhir:Reference.reference [ fhir:value "Patient/pat-min" ]
  ] ;
  fhir:EpisodeOfCare.period [
     fhir:Period.start [ fhir:value "2026-01-01"^^xsd:date ]
  ] .

# - ontology header ------------------------------------------------------------

<https://sfaa.gov.tw/base/EpisodeOfCare/episode-base.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

