@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/Task/ExampleTaskReferralReturned> a fhir:Task ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "ExampleTaskReferralReturned"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-task" ;
       fhir:index -1 ;
       fhir:link <http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-task>
     ]
  ] ;
  fhir:Resource.language [ fhir:value "vi"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Task ExampleTaskReferralReturned</b></p><a name=\"ExampleTaskReferralReturned\"> </a><a name=\"hcExampleTaskReferralReturned\"> </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-task.html\">Công việc điều phối VN Core — VN Core Task Profile</a></p></div><p><b>status</b>: Completed</p><p><b>businessStatus</b>: <span title=\"Codes:{http://fhir.hl7.org.vn/core/CodeSystem/vn-task-business-status-cs REF-RETURNED}\">Đã chuyển người bệnh trở lại cơ sở chuyển đi</span></p><p><b>intent</b>: order</p><p><b>priority</b>: Routine</p><p><b>code</b>: <span title=\"Codes:{http://hl7.org/fhir/CodeSystem/task-code fulfill}\">Fulfill the focal request</span></p><p><b>focus</b>: <a href=\"ServiceRequest-ExampleServiceRequestCounterReferral.html\">Giấy chuyển về tuyến dưới sau đợt cấp cứu</a></p><p><b>for</b>: <a href=\"Patient-ExamplePatientNguyenVanAn.html\">Nguyễn Văn An</a></p><p><b>executionPeriod</b>: 2026-04-21 05:45:00+0700 --&gt; 2026-04-21 06:00:00+0700</p><p><b>authoredOn</b>: 2026-04-21 05:45:00+0700</p><p><b>lastModified</b>: 2026-04-21 06:00:00+0700</p><p><b>requester</b>: <a href=\"Organization-ExampleOrganizationChoRay.html\">Bệnh viện Chợ Rẫy</a></p><p><b>owner</b>: <a href=\"Organization-ExampleOrganizationTramYTe.html\">Trạm Y tế phường Ngọc Hà</a></p><p><b>note</b>: </p><blockquote><div><p>Bàn giao kèm tóm tắt ra viện và kết quả ECG/men tim. Trạm Y tế xác nhận tiếp nhận theo dõi từ 21/04/2026.</p>\n</div></blockquote><h3>Restrictions</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Period</b></td></tr><tr><td style=\"display: none\">*</td><td>2026-04-21 --&gt; 2026-12-31</td></tr></table><h3>Outputs</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Value[x]</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:\">Lượt cấp cứu đã kết thúc tại cơ sở chuyển đi</span></td><td><a href=\"Encounter-ExampleEncounterEmergency.html\">Encounter: extension = Cấp cứu,Đỡ; identifier = Mã lượt khám chữa bệnh: VNMaLuotKCB#LK-2026-04-20-CC-0015; status = finished; class = emergency (ActCode#EMER); type = Khám bệnh; period = 2026-04-20 20:30:00+0700 --&gt; 2026-04-21 06:00:00+0700; reasonCode = </a></td></tr></table></div>"
  ] ;
  fhir:Task.status [ fhir:value "completed"] ;
  fhir:Task.businessStatus [
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-task-business-status-cs" ] ;
       fhir:Coding.code [ fhir:value "REF-RETURNED" ] ;
       fhir:Coding.display [ fhir:value "Đã chuyển người bệnh trở lại cơ sở chuyển đi" ]
     ]
  ] ;
  fhir:Task.intent [ fhir:value "order"] ;
  fhir:Task.priority [ fhir:value "routine"] ;
  fhir:Task.code [
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "http://hl7.org/fhir/CodeSystem/task-code" ] ;
       fhir:Coding.code [ fhir:value "fulfill" ] ;
       fhir:Coding.display [ fhir:value "Fulfill the focal request" ]
     ]
  ] ;
  fhir:Task.focus [
     fhir:link <http://fhir.hl7.org.vn/core/ServiceRequest/ExampleServiceRequestCounterReferral> ;
     fhir:Reference.reference [ fhir:value "ServiceRequest/ExampleServiceRequestCounterReferral" ] ;
     fhir:Reference.display [ fhir:value "Giấy chuyển về tuyến dưới sau đợt cấp cứu" ]
  ] ;
  fhir:Task.for [
     fhir:link <http://fhir.hl7.org.vn/core/Patient/ExamplePatientNguyenVanAn> ;
     fhir:Reference.reference [ fhir:value "Patient/ExamplePatientNguyenVanAn" ] ;
     fhir:Reference.display [ fhir:value "Nguyễn Văn An" ]
  ] ;
  fhir:Task.executionPeriod [
     fhir:Period.start [ fhir:value "2026-04-21T05:45:00+07:00"^^xsd:dateTime ] ;
     fhir:Period.end [ fhir:value "2026-04-21T06:00:00+07:00"^^xsd:dateTime ]
  ] ;
  fhir:Task.authoredOn [ fhir:value "2026-04-21T05:45:00+07:00"^^xsd:dateTime] ;
  fhir:Task.lastModified [ fhir:value "2026-04-21T06:00:00+07:00"^^xsd:dateTime] ;
  fhir:Task.requester [
     fhir:link <http://fhir.hl7.org.vn/core/Organization/ExampleOrganizationChoRay> ;
     fhir:Reference.reference [ fhir:value "Organization/ExampleOrganizationChoRay" ] ;
     fhir:Reference.display [ fhir:value "Bệnh viện Chợ Rẫy" ]
  ] ;
  fhir:Task.owner [
     fhir:link <http://fhir.hl7.org.vn/core/Organization/ExampleOrganizationTramYTe> ;
     fhir:Reference.reference [ fhir:value "Organization/ExampleOrganizationTramYTe" ] ;
     fhir:Reference.display [ fhir:value "Trạm Y tế phường Ngọc Hà" ]
  ] ;
  fhir:Task.note [
     fhir:index -1 ;
     fhir:Annotation.text [ fhir:value "Bàn giao kèm tóm tắt ra viện và kết quả ECG/men tim. Trạm Y tế xác nhận tiếp nhận theo dõi từ 21/04/2026." ]
  ] ;
  fhir:Task.restriction [
     fhir:Task.restriction.period [
       fhir:Period.start [ fhir:value "2026-04-21"^^xsd:date ] ;
       fhir:Period.end [ fhir:value "2026-12-31"^^xsd:date ]
     ]
  ] ;
  fhir:Task.output [
     fhir:index -1 ;
     fhir:Task.output.type [
       fhir:CodeableConcept.text [ fhir:value "Lượt cấp cứu đã kết thúc tại cơ sở chuyển đi" ]
     ] ;
     fhir:Task.output.valueReference [
       fhir:link <http://fhir.hl7.org.vn/core/Encounter/ExampleEncounterEmergency> ;
       fhir:Reference.reference [ fhir:value "Encounter/ExampleEncounterEmergency" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.hl7.org.vn/core/Task/ExampleTaskReferralReturned.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

