Task resource example - missing measurement
Tasks concerning missing measurements for a ServiceRequest are created by the missing-measurement service. They can also be created for test purposes 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 Task 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 missing-measurement service, it is in status "requested". When the Task is accepted by a Practitioner, it must be changed to status "accepted" (see owner)
intent
Is set to "plan"
priority
Is set to "routine"
description
The text description of what was expected.
"Forventede at en aktivitet var udfĂžrt, men fandt ingen den %s";
"Forventede at %d aktiviteter var udfĂžrt, men fandt %d den %s";
focus
Is a reference to the ServiceRequest containing the measurement regime
resolvedTiming
The resolved timing that was expected as defined by the measurement regime (occurrence) on the ServiceRequest.
owner
The Practitioner that has accepted the Task (see status)
Task example in JSON
{
"resourceType": "Task",
"id": "341058",
"meta": {
"versionId": "1",
"lastUpdated": "2024-02-29T14:10:14.070+00:00",
"source": "#c69cbcf7-2216-92",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task"
],
"tag": [
{
"system": "http://ehealth.sundhed.dk/cs/ehealth-system",
"code": "xa"
}
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-resolved-timing",
"extension": [
{
"url": "serviceRequestVersionId",
"valueId": "1"
},
{
"url": "start",
"valueDateTime": "2024-02-29T14:00:00+00:00"
},
{
"url": "end",
"valueDateTime": "2024-02-29T14:05:00+00:00"
},
{
"url": "type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/resolved-timing-type",
"code": "Resolved",
"display": "Resolved"
}
]
}
}
]
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-episodeOfCare",
"valueReference": {
"reference": "https://careplan.devtest.systematic-ehealth.com/fhir/EpisodeOfCare/1676774"
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-category",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/task-category",
"code": "MissingMeasurementResolving",
"display": "Need resolving of why scheduled measurement has not been submitted"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-restriction-category",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/restriction-category",
"code": "measurement-monitoring",
"display": "Monitoring of measurement(s)"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-responsible",
"valueReference": {
"reference": "https://organization.devtest.systematic-ehealth.com/fhir/CareTeam/1391154"
}
}
],
"basedOn": [
{
"reference": "https://careplan.devtest.systematic-ehealth.com/fhir/ServiceRequest/1676874"
}
],
"status": "requested",
"intent": "plan",
"priority": "routine",
"description": "Forventede at en aktivitet var udfĂžrt, men fandt ingen den Thu Feb 29 14:10:07 UTC 2024",
"focus": {
"reference": "https://careplan.devtest.systematic-ehealth.com/fhir/ServiceRequest/1676874"
},
"for": {
"reference": "https://patient.devtest.systematic-ehealth.com/fhir/Patient/451425"
},
"authoredOn": "2024-02-29T14:10:13+00:00"
}