@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/Task/assessment-review-min> a fhir:Task ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "assessment-review-min"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://sfaa.gov.tw/base/StructureDefinition/AssessmentReviewTask-twss-base" ;
       fhir:index 0 ;
       fhir:link <https://sfaa.gov.tw/base/StructureDefinition/AssessmentReviewTask-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>：<a href=\"Patient-pat-min.html\">Patient/pat-min</a></p><p><b>任務狀態</b>：completed</p><p><b>業務審核結果</b>：核定</p><p><b>是否開案</b>：<span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"><a href=\"CodeSystem-twss-open-case-status.html\">TWSS 是否開案代碼系統</a>#Y</span> 開案</p><p><b>建立案件</b>：<a href=\"EpisodeOfCare-episode-base.html\">EpisodeOfCare/episode-base</a></p><p><b>審核意見</b>：資料符合核定條件。</p><p><b>評估結果</b>：<a href=\"QuestionnaireResponse-adl-questionnaire-response-min.html\">ADL 日常生活功能評估</a></p></div>"
  ] ;
  fhir:Task.identifier [
     fhir:index 0 ;
     fhir:Identifier.system [ fhir:value "https://example.org/twss/assessment-review" ] ;
     fhir:Identifier.value [ fhir:value "ASSESSMENT-REVIEW-001" ]
  ] ;
  fhir:Task.status [ fhir:value "completed"] ;
  fhir:Task.businessStatus [
     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:Task.intent [ fhir:value "order"] ;
  fhir:Task.description [ fhir:value "個案服務評估審核"] ;
  fhir:Task.focus [
     fhir:link <https://sfaa.gov.tw/base/ServiceRequest/case-report-min> ;
     fhir:Reference.reference [ fhir:value "ServiceRequest/case-report-min" ]
  ] ;
  fhir:Task.for [
     fhir:link <https://sfaa.gov.tw/base/Patient/pat-min> ;
     fhir:Reference.reference [ fhir:value "Patient/pat-min" ]
  ] ;
  fhir:Task.note [
     fhir:index 0 ;
     fhir:Annotation.text [ fhir:value "審核意見：資料符合核定條件。" ]
  ] ;
  fhir:Task.input [
     fhir:index 0 ;
     fhir:Task.input.type [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "https://sfaa.gov.tw/base/CodeSystem/twss-task-input-type" ] ;
         fhir:Coding.code [ fhir:value "assessment-response" ] ;
         fhir:Coding.display [ fhir:value "評估回覆" ]
       ]
     ] ;
     fhir:Task.input.valueReference [
       fhir:link <https://sfaa.gov.tw/base/QuestionnaireResponse/adl-questionnaire-response-min> ;
       fhir:Reference.reference [ fhir:value "QuestionnaireResponse/adl-questionnaire-response-min" ]
     ]
  ] ;
  fhir:Task.output [
     fhir:index 0 ;
     fhir:Task.output.type [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "https://sfaa.gov.tw/base/CodeSystem/twss-task-output-type" ] ;
         fhir:Coding.code [ fhir:value "open-case-decision" ] ;
         fhir:Coding.display [ fhir:value "是否開案" ]
       ]
     ] ;
     fhir:Task.output.valueCodeableConcept [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "https://sfaa.gov.tw/base/CodeSystem/twss-open-case-status" ] ;
         fhir:Coding.code [ fhir:value "Y" ] ;
         fhir:Coding.display [ fhir:value "開案" ]
       ]
     ]
  ], [
     fhir:index 1 ;
     fhir:Task.output.type [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "https://sfaa.gov.tw/base/CodeSystem/twss-task-output-type" ] ;
         fhir:Coding.code [ fhir:value "opened-episode-of-care" ] ;
         fhir:Coding.display [ fhir:value "開案案件" ]
       ]
     ] ;
     fhir:Task.output.valueReference [
       fhir:link <https://sfaa.gov.tw/base/EpisodeOfCare/episode-base> ;
       fhir:Reference.reference [ fhir:value "EpisodeOfCare/episode-base" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://sfaa.gov.tw/base/Task/assessment-review-min.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

