Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Note

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 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.

...

When a Task is created by the Processing Servicemissing-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" from the Processing Service

priority

Is set to "routine"

...

The text description of what needs to be done.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

Code Block
languagejson
{
    "resourceType": "Task",
 
  "id": "3712341058",
 
  "meta": {
  
     "versionId": "1",
   
    "lastUpdated": "20222024-0602-28T0129T14:3010:3814.956070+00:00",
    "source": "#c69cbcf7-2216-92",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task"]
    }],
    "extensiontag": [{
      {
        "urlsystem": "http://ehealth.sundhed.dk/fhir/StructureDefinitioncs/ehealth-task-episodeOfCaresystem",
        "code": "xa"
      }
 "valueReference": {
   ]
  },
  "extension": [
    {
      "referenceurl": "httpshttp://careplan.devenvcgi.ehealth.sundhed.dk/fhir/EpisodeOfCare/5258"StructureDefinition/ehealth-resolved-timing",
      "extension": [
        {
          "url": "serviceRequestVersionId",
          "valueId": "1"
        },
        {
          "url": "start",
          "valueDateTime": "2024-02-29T14:00:00+00:00"
        },
{        {
          "url": "end",
          "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-category",valueDateTime": "2024-02-29T14:05:00+00:00"
        },
        {
          "valueCodeableConcepturl": {"type",
          "valueCodeableConcept": {
            "coding": [{
              {
                "system": "http://ehealth.sundhed.dk/cs/taskresolved-timing-categorytype",
                "code": "Resolved",
       "code         "display": "MissingMeasurementResolvingResolved",
              }
           "display": "Need resolving of why scheduled measurement has not been submitted" ]
          }
        }
      ]
    },
    {
      "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-restrictiontask-category",
    
       "valueCodeableConcept": {
                "coding": [{
          {
             "system": "http://ehealth.sundhed.dk/cs/restrictiontask-category",
            "code": "MissingMeasurementResolving",
            "codedisplay": "measurement-monitoring",Need resolving of why scheduled measurement has not been submitted"
          }
    "display": "Monitoring of measurement(s)" ]
      }
    },
    {
  }    "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-restriction-category",
      "valueCodeableConcept": {
   ]           "coding": [
 }         }, {
            "urlsystem": "http://ehealth.sundhed.dk/fhircs/StructureDefinition/ehealth-task-responsiblerestriction-category",
            "valueReferencecode": {
 "measurement-monitoring",
              "referencedisplay": "https://organization.devenvcgi.ehealth.sundhed.dk/fhir/CareTeam/118323"Monitoring of measurement(s)"
          }
   }     ]
      },
   { },
    {
      "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-responsible",

           "valueReference": {
       
        "reference": "https://organization.devenvcgidevtest.systematic-ehealth.sundhed.dkcom/fhir/CareTeam/1190811391154"
      }
    }
  ],
  "basedOn": [
   } {
       }
 "reference": "https://careplan.devtest.systematic-ehealth.com/fhir/ServiceRequest/1676874"
    }
  ],
 
  "status": "requested",
 
  "intent": "plan",
    "priority": "routine",
    "description": "Forventede 1 målingerat en aktivitet var udført, men fandt 0 i perioden fra Mon Jun 27 00:00:00 GMT 2022 til Tue Jun 28 00:00:00 GMT 2022",
    "focus ingen den Thu Feb 29 14:10:07 UTC 2024",
  "focus": {
    "reference": "https://careplan.devtest.systematic-ehealth.com/fhir/ServiceRequest/1676874"
  },
  "for": {
        "reference": "https://careplanpatient.devenvcgidevtest.systematic-ehealth.sundhed.dkcom/fhir/ServiceRequestPatient/17394451425"
    },
 
  "authoredOn": "20222024-0602-28T0129T14:3010:3813+00:00"
}