Latest profile of Task: http://ehealth-documentation.s3-website-eu-west-1.amazonaws.com/latest/ig/StructureDefinition-ehealth-task.html
Tasks are currently only generated by the Processing Service, but can be stubbed using the test-only-create operation:
Example endpoint to the eHealth stub:
http://vendortest2.ehealth.sundhed.dk/hapi-fhir-server/fhir/$test-only-create (POST only)
When a is created for resolving a missing measurement, a corresponding ClinicalImpression will not be available.
Points of Interest:
ehealth-task-category
The type of Task. The example shows a "MissingMeasurementResolving" task.
See the API documentation for other Task categories.
ehealth-task-responsible
A reference to the CareTeam that has received the Task
status
When a Task is created by the Processing Service, it is in status "ready". When the Task is accepted by a Practitioner, it must be changed to status "accepted" (see owner)
intent
Is set to "order" from the Processing Service
priority
The rules for the ActivityDefinition/ServiceRequest decides a priority statically, since there is no measurement to triage.
A missing weight Observation might be less important than a missing blood pressure Observation.
description
The text description of what needs to be done.
focus
Is not present since a measurement has not been received and therefore there is no ClinicalImpression.
owner
The Practitioner that has accepted the Task (see status)
{ "resourceType": "Bundle", "type": "transaction", "entry": [ { "fullUrl": "Task", "resource": { "resourceType": "Task", "meta": { "profile": [ "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task" ] }, "extension": [ { "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-category", "valueCodeableConcept": { "coding": [ { "system": "http://ehealth.sundhed.dk/cs/task-category", "code": "MissingMeasurementResolving" } ] } }, { "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-responsible", "valueReference": { "reference": "http://vendortest2.ehealth.sundhed.dk/organization/fhir/CareTeam/60" } } ], "language": "da", "status": "ready", "intent": "order", "priority": "routine", "owner": { "reference": "http://vendortest2.ehealth.sundhed.dk/organization/fhir/Practitioner/59" }, "description": "Der er manglende målinger i henhold til måleregimet.", "context": { "reference": "http://vendortest2.ehealth.sundhed.dk/hapi-fhir-server/fhir/EpisodeOfCare/67" } }, "request": { "method": "POST", "url": "Task" } } ] }