@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://fhir.acmeexample.org.uk/PatientCareCoordination/Task/ExerciseReferralInProgress> a fhir:Task ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "ExerciseReferralInProgress"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://fhir.acmeexample.org.uk/PatientCareCoordination/StructureDefinition/ReferralTask" ;
       fhir:index -1 ;
       fhir:link <https://fhir.acmeexample.org.uk/PatientCareCoordination/StructureDefinition/ReferralTask>
     ]
  ] ;
  fhir:Resource.language [ fhir:value "en"] ;
  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 ExerciseReferralInProgress</b></p><a name=\"ExerciseReferralInProgress\"> </a><a name=\"hcExerciseReferralInProgress\"> </a><div style=\"display: inline-block; background-color: #fbffeb; 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-ReferralTask.html\">Referral Task</a></p></div><p><b>basedOn</b>: <a href=\"ServiceRequest-ExerciseReferral.html\">ServiceRequest Referral to exercise on referral programme</a></p><p><b>status</b>: In Progress</p><p><b>businessStatus</b>: <span title=\"Codes:{https://fhir.acmeexample.org.uk/PatientCareCoordination/CodeSystem/referral-workflow-status accepted}\">Referral accepted</span></p><p><b>intent</b>: order</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-ExerciseReferral.html\">ServiceRequest Referral to exercise on referral programme</a></p><p><b>for</b>: <a href=\"Patient-Patient-Tameside.html\">Hodor TAMESIDE  Male, DoB: 1960-07-27 ( National Health Plan Identifier: NHS Number#9737383397)</a></p><p><b>authoredOn</b>: 2026-10-20 10:00:00+0100</p><p><b>lastModified</b>: 2026-10-23 10:00:00+0100</p><p><b>requester</b>: <a href=\"PractitionerRole-GPAllenRole.html\">Allen (https://fhir.hl7.org.uk/Id/gmp-number#GMP Number#G1234567): General practitioner at HT PRACTICE (https://fhir.nhs.uk/Id/ods-organization-code#ODS Organisation Code#P89020)</a></p><p><b>owner</b>: <a href=\"HealthcareService-ExerciseReferralService.html\">Exercise on Referral Programme (Referral to exercise on referral programme) by Example Leisure Trust (https://fhir.nhs.uk/Id/ods-organization-code#ODS Organisation Code#Y00002)</a></p><h3>Inputs</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:{https://fhir.acmeexample.org.uk/PatientCareCoordination/CodeSystem/referral-task-parameter questionnaire}\">Form to complete</span></td><td><a href=\"Questionnaire-ExercisePreParticipationForm.html\">Physical activity readiness (PAR-Q+ structure, illustrative)</a></td></tr></table><blockquote><p><b>output</b></p><p><b>type</b>: <span title=\"Codes:{https://fhir.acmeexample.org.uk/PatientCareCoordination/CodeSystem/referral-task-parameter questionnaire-response}\">Completed form</span></p><p><b>value</b>: <a href=\"QuestionnaireResponse-ExercisePreParticipationResponse.html\">Response to Questionnaire '-&gt;Physical activity readiness (PAR-Q+ structure, illustrative)' about '-&gt;Hodor TAMESIDE  Male, DoB: 1960-07-27 ( National Health Plan Identifier: NHS Number#9737383397)'</a></p></blockquote><blockquote><p><b>output</b></p><p><b>type</b>: <span title=\"Codes:{https://fhir.acmeexample.org.uk/PatientCareCoordination/CodeSystem/referral-task-parameter observation}\">Progress observation</span></p><p><b>value</b>: <a href=\"Observation-ExerciseVitalSignBaseline.html\">Observation Exercise Vital Sign (EVS)</a></p></blockquote></div>"
  ] ;
  fhir:Task.basedOn [
     fhir:index -1 ;
     fhir:link <https://fhir.acmeexample.org.uk/PatientCareCoordination/ServiceRequest/ExerciseReferral> ;
     fhir:Reference.reference [ fhir:value "ServiceRequest/ExerciseReferral" ] ;
     fhir:Reference.identifier [
       fhir:Identifier.type [
         fhir:CodeableConcept.coding [
           fhir:index -1 ;
           fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0203" ] ;
           fhir:Coding.code [ fhir:value "PLAC" ]
         ]
       ] ;
       fhir:Identifier.system [ fhir:value "https://fhir.example-practice.nhs.uk/Id/referral" ] ;
       fhir:Identifier.value [ fhir:value "REF-2026-000789" ] ;
       fhir:Identifier.assigner [
         fhir:Reference.identifier [
           fhir:Identifier.system [ fhir:value "https://fhir.nhs.uk/Id/ods-organization-code" ] ;
           fhir:Identifier.value [ fhir:value "P89020" ]
         ]
       ]
     ]
  ] ;
  fhir:Task.status [ fhir:value "in-progress"] ;
  fhir:Task.businessStatus [
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "https://fhir.acmeexample.org.uk/PatientCareCoordination/CodeSystem/referral-workflow-status" ] ;
       fhir:Coding.code [ fhir:value "accepted" ]
     ]
  ] ;
  fhir:Task.intent [ fhir:value "order"] ;
  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:Task.focus [
     fhir:link <https://fhir.acmeexample.org.uk/PatientCareCoordination/ServiceRequest/ExerciseReferral> ;
     fhir:Reference.reference [ fhir:value "ServiceRequest/ExerciseReferral" ]
  ] ;
  fhir:Task.for [
     fhir:link <https://fhir.acmeexample.org.uk/PatientCareCoordination/Patient/Patient-Tameside> ;
     fhir:Reference.reference [ fhir:value "Patient/Patient-Tameside" ]
  ] ;
  fhir:Task.authoredOn [ fhir:value "2026-10-20T10:00:00+01:00"^^xsd:dateTime] ;
  fhir:Task.lastModified [ fhir:value "2026-10-23T10:00:00+01:00"^^xsd:dateTime] ;
  fhir:Task.requester [
     fhir:link <https://fhir.acmeexample.org.uk/PatientCareCoordination/PractitionerRole/GPAllenRole> ;
     fhir:Reference.reference [ fhir:value "PractitionerRole/GPAllenRole" ]
  ] ;
  fhir:Task.owner [
     fhir:link <https://fhir.acmeexample.org.uk/PatientCareCoordination/HealthcareService/ExerciseReferralService> ;
     fhir:Reference.reference [ fhir:value "HealthcareService/ExerciseReferralService" ]
  ] ;
  fhir:Task.input [
     fhir:index -1 ;
     fhir:Task.input.type [
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         fhir:Coding.system [ fhir:value "https://fhir.acmeexample.org.uk/PatientCareCoordination/CodeSystem/referral-task-parameter" ] ;
         fhir:Coding.code [ fhir:value "questionnaire" ]
       ]
     ] ;
     fhir:Task.input.valueCanonical [
       fhir:value "https://fhir.acmeexample.org.uk/PatientCareCoordination/Questionnaire/ExercisePreParticipationForm" ;
       fhir:link <https://fhir.acmeexample.org.uk/PatientCareCoordination/Questionnaire/ExercisePreParticipationForm>
     ]
  ] ;
  fhir:Task.output [
     fhir:index -1 ;
     fhir:Task.output.type [
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         fhir:Coding.system [ fhir:value "https://fhir.acmeexample.org.uk/PatientCareCoordination/CodeSystem/referral-task-parameter" ] ;
         fhir:Coding.code [ fhir:value "questionnaire-response" ]
       ]
     ] ;
     fhir:Task.output.valueReference [
       fhir:link <https://fhir.acmeexample.org.uk/PatientCareCoordination/QuestionnaireResponse/ExercisePreParticipationResponse> ;
       fhir:Reference.reference [ fhir:value "QuestionnaireResponse/ExercisePreParticipationResponse" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:Task.output.type [
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         fhir:Coding.system [ fhir:value "https://fhir.acmeexample.org.uk/PatientCareCoordination/CodeSystem/referral-task-parameter" ] ;
         fhir:Coding.code [ fhir:value "observation" ]
       ]
     ] ;
     fhir:Task.output.valueReference [
       fhir:link <https://fhir.acmeexample.org.uk/PatientCareCoordination/Observation/ExerciseVitalSignBaseline> ;
       fhir:Reference.reference [ fhir:value "Observation/ExerciseVitalSignBaseline" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://fhir.acmeexample.org.uk/PatientCareCoordination/Task/ExerciseReferralInProgress.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

