Task

See FHIR specification

Automatic Sharing

The task resource is automatically shared with all users referenced in Task.owner and Task.restriction.recipient.

Semantical type

The “code” field of the resource is used to determine the semantical type of the resource. If the field is not present the resource type will be used. Look at the List of registered codes for a complete list of codes registered in MIDATA. Include the required codes into your applications access filter if you need to use this resource.

Resource owner

If the resource contains a for which is a Patient or Practitioner that user is the owner of the resource. Otherwise the creator of the resource is the owner.

Default value for “for”

If a resource with no for field is send to MIDATA, the backend will set the for to the current user.

Read

Read a single Task by id.

Request:

[GET] /fhir/Task/<id>

Read specific version

Read a specific version of a single Task by id.

Request:

[GET] /fhir/Task/<id>/_history/<version>

Retrieve history

Retrieve all versions of a single resource.

Request:

[GET] /fhir/Task/<id>/_history

Search for resources of type Task

Request:

[GET] /fhir/Task?searchParams

List of supported search parameters:

Supported query parameters:

Name Type Description
_id string The resource identity
_lastUpdated date Only return resources which were last updated as specified by the given range
_page string  
authored-on date Search by creation date
based-on reference Search by requests this task is based on
business-status token Search by business status
code token Search by task code
encounter reference Search by encounter
focus reference Search by task focus
group-identifier token Search by group identifier
identifier token Search for a task instance by its business identifier
intent token Search by task intent
modified date Search by last modification date
owner reference Search by task owner
part-of reference Search by task this task is part of
patient reference Search by patient
performer token Search by recommended type of performer (e.g., Requester, Performer, Scheduler).
period date Search by period Task is/was underway
priority token Search by task priority
requester reference Search by task requester
status token Search by task status
subject reference Search by subject

Create

Create a new resource of type Task.

Request:

[POST] /fhir/Task

Update

Updates a resource of type Task.

Request:

[PUT] /fhir/Task/<id>