Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

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 "requested". When the Task is accepted by a Practitioner, it must be changed to status "accepted" (see owner)

intent

Is set to "plan" from the Processing Service

priority

Is set to "routine"

description

The text description of what needs to be done.

focus

Is a reference to the ServiceRequest containting the measurement regime

owner

The Practitioner that has accepted the Task (see status)


Task example in JSON
{
    "resourceType": "Task",
    "id": "3712",
    "meta": {
        "versionId": "1",
        "lastUpdated": "2022-06-28T01:30:38.956+00:00",
        "profile": ["http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task"]
    },
    "extension": [{
            "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-episodeOfCare",
            "valueReference": {
                "reference": "https://careplan.devenvcgi.ehealth.sundhed.dk/fhir/EpisodeOfCare/5258"
            }
        }, {
            "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.devenvcgi.ehealth.sundhed.dk/fhir/CareTeam/118323"
            }
        }, {
            "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-responsible",
            "valueReference": {
                "reference": "https://organization.devenvcgi.ehealth.sundhed.dk/fhir/CareTeam/119081"
            }
        }
    ],
    "status": "requested",
    "intent": "plan",
    "priority": "routine",
    "description": "Forventede 1 målinger, men fandt 0 i perioden fra Mon Jun 27 00:00:00 GMT 2022 til Tue Jun 28 00:00:00 GMT 2022",
    "focus": {
        "reference": "https://careplan.devenvcgi.ehealth.sundhed.dk/fhir/ServiceRequest/17394"
    },
    "authoredOn": "2022-06-28T01:30:38+00:00"
}
  • No labels