@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<urn://example.com/ph-ereferral/fhir/Task/ExampleERefTaskAccepted> a fhir:Task ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "ExampleERefTaskAccepted"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "urn://example.com/ph-ereferral/fhir/StructureDefinition/ereferral-task"^^xsd:anyURI ;
       fhir:l <urn://example.com/ph-ereferral/fhir/StructureDefinition/ereferral-task>
     ] )
  ] ; # 
  fhir:language [ fhir:v "en"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Task ExampleERefTaskAccepted</b></p><a name=\"ExampleERefTaskAccepted\"> </a><a name=\"hcExampleERefTaskAccepted\"> </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-ereferral-task.html\">EReferral Task</a></p></div><p><b>status</b>: Accepted</p><p><b>intent</b>: order</p><p><b>code</b>: <span title=\"Codes:{http://snomed.info/sct 3457005}\">eReferral for cardiology consultation</span></p><p><b>focus</b>: <a href=\"ServiceRequest-ExampleERefServiceRequestTask.html\">ServiceRequest Referral to cardiology service</a></p><p><b>for</b>: <a href=\"Patient-ExampleERefPatientTask.html\">Juan Dela Cruz  Male, DoB: 1965-07-20 ( urn:oid:2.16.840.1.113883.2.9.4.3.2#PH-123456789)</a></p><p><b>executionPeriod</b>: 2025-03-15 14:22:00+0800 --&gt; (ongoing)</p><p><b>authoredOn</b>: 2025-03-15 09:30:00+0800</p><p><b>lastModified</b>: 2025-03-15 14:22:00+0800</p><p><b>requester</b>: <a href=\"PractitionerRole-ExampleERefPractitionerRoleRequester.html\">PractitionerRole Medical practitioner</a></p><p><b>owner</b>: <a href=\"Organization-ExampleERefOrganizationReceiving.html\">Organization Manila General Hospital</a></p><p><b>note</b>: , </p><blockquote><div><p>New referral for patient with chest pain. Awaiting acceptance by receiving facility.</p>\n</div></blockquote><blockquote><div><p>Accepted by Manila General Hospital. Care navigator assigned.</p>\n</div></blockquote></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:status [ fhir:v "accepted"] ; # 
  fhir:intent [ fhir:v "order"] ; # 
  fhir:code [
     fhir:coding ( [
       a sct:3457005 ;
       fhir:system [
         fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
         fhir:l <http://snomed.info/sct>
       ] ;
       fhir:code [ fhir:v "3457005" ] ;
       fhir:display [ fhir:v "Patient referral" ]
     ] ) ;
     fhir:text [ fhir:v "eReferral for cardiology consultation" ]
  ] ; # 
  fhir:focus [
     fhir:l <urn://example.com/ph-ereferral/fhir/ServiceRequest/ExampleERefServiceRequestTask> ;
     fhir:reference [ fhir:v "ServiceRequest/ExampleERefServiceRequestTask" ]
  ] ; # 
  fhir:for [
     fhir:l <urn://example.com/ph-ereferral/fhir/Patient/ExampleERefPatientTask> ;
     fhir:reference [ fhir:v "Patient/ExampleERefPatientTask" ]
  ] ; # 
  fhir:executionPeriod [
     fhir:start [ fhir:v "2025-03-15T14:22:00+08:00"^^xsd:dateTime ]
  ] ; # 
  fhir:authoredOn [ fhir:v "2025-03-15T09:30:00+08:00"^^xsd:dateTime] ; # 
  fhir:lastModified [ fhir:v "2025-03-15T14:22:00+08:00"^^xsd:dateTime] ; # 
  fhir:requester [
     fhir:l <urn://example.com/ph-ereferral/fhir/PractitionerRole/ExampleERefPractitionerRoleRequester> ;
     fhir:reference [ fhir:v "PractitionerRole/ExampleERefPractitionerRoleRequester" ]
  ] ; # 
  fhir:owner [
     fhir:l <urn://example.com/ph-ereferral/fhir/Organization/ExampleERefOrganizationReceiving> ;
     fhir:reference [ fhir:v "Organization/ExampleERefOrganizationReceiving" ]
  ] ; # 
  fhir:note ( [
     fhir:text [ fhir:v "New referral for patient with chest pain. Awaiting acceptance by receiving facility." ]
  ] [
     fhir:text [ fhir:v "Accepted by Manila General Hospital. Care navigator assigned." ]
  ] ) . # 

# -------------------------------------------------------------------------------------

