An example to illustrate a task regarding a colonoscopy

Table View

Task.id[0]UKCore-Task-Colonoscopy-Example
Task.identifier[0].system[0]https://tools.ietf.org/html/rfc4122
Task.identifier[0].value[0]b269d1d7-1acf-47bb-8b3c-e38b583d9a07
Task.status[0]in-progress
Task.intent[0]order
Task.priority[0]routine
Task.code[0].coding[0].system[0]http://hl7.org/fhir/CodeSystem/task-code
Task.code[0].coding[0].code[0]fulfill
Task.code[0].coding[0].display[0]Fulfill the focal request
Task.focus[0].reference[0]ServiceRequest/UKCore-ServiceRequest-ColonoscopyRequest-Example
Task.focus[0].display[0]Colonoscopy Request
Task.for[0].reference[0]Patient/UKCore-Patient-RichardSmith-Example
Task.for[0].display[0]Richard Smith
Task.encounter[0].reference[0]Encounter/UKCore-Encounter-InpatientEncounter-Example
Task.encounter[0].display[0]In-Patient Encounter
Task.executionPeriod[0].start[0]2021-10-13T16:20:27+07:00
Task.executionPeriod[0].end[0]2021-10-13T18:20:27+07:00
Task.authoredOn[0]2021-10-13T16:20:27+07:00
Task.lastModified[0]2021-10-13T16:20:27+07:00
Task.requester[0].reference[0]Practitioner/UKCore-Practitioner-DoctorPaulRastall-Example
Task.requester[0].display[0]Dr Paul Rastall
Task.performerType[0].coding[0].system[0]http://snomed.info/sct
Task.performerType[0].coding[0].code[0]71838004
Task.performerType[0].coding[0].display[0]Gastroenterologist
Task.performerType[0].text[0]Performer
Task.owner[0].reference[0]Practitioner/UKCore-Practitioner-ConsultantSandraGose-Example
Task.owner[0].display[0]Dr Sandra Gose
Task.restriction[0].repetitions[0]1
Task.restriction[0].period[0].end[0]2021-10-13T18:30:00+07:00
Task.output[0].type[0].text[0]Colonoscopy Appointment
Task.output[0].value[0].reference[0]ServiceRequest/UKCore-ServiceRequest-ColonoscopyRequest-Example

XML View

<Task xmlns="http://hl7.org/fhir">
    <id value="UKCore-Task-Colonoscopy-Example" />
    <identifier>
        <system value="https://tools.ietf.org/html/rfc4122" />
        <value value="b269d1d7-1acf-47bb-8b3c-e38b583d9a07" />
    </identifier>
    <status value="in-progress" />
    <intent value="order" />
    <priority value="routine" />
    <code>
        <coding>
            <system value="http://hl7.org/fhir/CodeSystem/task-code" />
            <code value="fulfill" />
            <display value="Fulfill the focal request" />
        </coding>
    </code>
    <focus>
        <reference value="ServiceRequest/UKCore-ServiceRequest-ColonoscopyRequest-Example" />
        <display value="Colonoscopy Request" />
    </focus>
    <for>
        <reference value="Patient/UKCore-Patient-RichardSmith-Example" />
        <display value="Richard Smith" />
    </for>
    <encounter>
        <reference value="Encounter/UKCore-Encounter-InpatientEncounter-Example" />
        <display value="In-Patient Encounter" />
    </encounter>
    <executionPeriod>
        <start value="2021-10-13T16:20:27+07:00" />
        <end value="2021-10-13T18:20:27+07:00" />
    </executionPeriod>
    <authoredOn value="2021-10-13T16:20:27+07:00" />
    <lastModified value="2021-10-13T16:20:27+07:00" />
    <requester>
        <reference value="Practitioner/UKCore-Practitioner-DoctorPaulRastall-Example" />
        <display value="Dr Paul Rastall" />
    </requester>
    <performerType>
        <coding>
            <system value="http://snomed.info/sct" />
            <code value="71838004" />
            <display value="Gastroenterologist" />
        </coding>
        <text value="Performer" />
    </performerType>
    <owner>
        <reference value="Practitioner/UKCore-Practitioner-ConsultantSandraGose-Example" />
        <display value="Dr Sandra Gose" />
    </owner>
    <restriction>
        <repetitions value="1" />
        <period>
            <end value="2021-10-13T18:30:00+07:00" />
        </period>
    </restriction>
    <output>
        <type>
            <text value="Colonoscopy Appointment" />
        </type>
        <valueReference>
            <reference value="ServiceRequest/UKCore-ServiceRequest-ColonoscopyRequest-Example" />
        </valueReference>
    </output>
</Task>

JSON View

{
    "resourceType": "Task",
    "id": "UKCore-Task-Colonoscopy-Example",
    "identifier":  [
        {
            "system": "https://tools.ietf.org/html/rfc4122",
            "value": "b269d1d7-1acf-47bb-8b3c-e38b583d9a07"
        }
    ],
    "status": "in-progress",
    "intent": "order",
    "priority": "routine",
    "code": {
        "coding":  [
            {
                "system": "http://hl7.org/fhir/CodeSystem/task-code",
                "code": "fulfill",
                "display": "Fulfill the focal request"
            }
        ]
    },
    "focus": {
        "reference": "ServiceRequest/UKCore-ServiceRequest-ColonoscopyRequest-Example",
        "display": "Colonoscopy Request"
    },
    "for": {
        "reference": "Patient/UKCore-Patient-RichardSmith-Example",
        "display": "Richard Smith"
    },
    "encounter": {
        "reference": "Encounter/UKCore-Encounter-InpatientEncounter-Example",
        "display": "In-Patient Encounter"
    },
    "executionPeriod": {
        "start": "2021-10-13T16:20:27+07:00",
        "end": "2021-10-13T18:20:27+07:00"
    },
    "authoredOn": "2021-10-13T16:20:27+07:00",
    "lastModified": "2021-10-13T16:20:27+07:00",
    "requester": {
        "reference": "Practitioner/UKCore-Practitioner-DoctorPaulRastall-Example",
        "display": "Dr Paul Rastall"
    },
    "performerType":  [
        {
            "coding":  [
                {
                    "system": "http://snomed.info/sct",
                    "code": "71838004",
                    "display": "Gastroenterologist"
                }
            ],
            "text": "Performer"
        }
    ],
    "owner": {
        "reference": "Practitioner/UKCore-Practitioner-ConsultantSandraGose-Example",
        "display": "Dr Sandra Gose"
    },
    "restriction": {
        "repetitions": 1,
        "period": {
            "end": "2021-10-13T18:30:00+07:00"
        }
    },
    "output":  [
        {
            "type": {
                "text": "Colonoscopy Appointment"
            },
            "valueReference": {
                "reference": "ServiceRequest/UKCore-ServiceRequest-ColonoscopyRequest-Example"
            }
        }
    ]
}