Versions Compared

Key

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

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




Code Block
languagejava
titleTask example in JSON
{
    "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": "MeasurementForAssessment"
                        }
                      ]
                    }
                  },
                  {
                    "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",
                "description": "Vurdering af indgående telemedicinsk data",
                "focus": {
                    "reference": "http://vendortest2.ehealth.sundhed.dk/hapi-fhir-server/fhir/ClinicalImpression/265"
                },
                "context": {
                  "reference": "http://vendortest2.ehealth.sundhed.dk/hapi-fhir-server/fhir/EpisodeOfCare/67"
                }
              },
            "request": {
                "method": "POST",
                "url": "Task"
            }
        }
    ]
  }{
    "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": "MeasurementForAssessment"
                        }
                      ]
                    }
                  },
                  {
                    "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",
                "description": "Vurdering af indgående telemedicinsk data",
                "focus": {
                    "reference": "http://vendortest2.ehealth.sundhed.dk/hapi-fhir-server/fhir/ClinicalImpression/265"
                },
                "context": {
                  "reference": "http://vendortest2.ehealth.sundhed.dk/hapi-fhir-server/fhir/EpisodeOfCare/67"
                }
              },
            "request": {
                "method": "POST",
                "url": "Task"
            }
        }
    ]
  }