{
  "resourceType": "StructureDefinition",
  "id": "c8737fd1-3b28-4f70-9b82-bba3cdb6c5b3",
  "meta": {
    "lastUpdated": "2021-10-08T12:24:03.036+00:00"
  },
  "url": "https://example.org/fhir/StructureDefinition/PatientDataToEHRTask",
  "name": "PatientDataTransferTask",
  "status": "draft",
  "date": "2021-09-20T08:00:14.7292165+00:00",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Task",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Task",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Task.basedOn",
        "path": "Task.basedOn",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/CarePlan"
            ]
          }
        ]
      },
      {
        "id": "Task.status",
        "path": "Task.status",
        "definition": "The current status of the task. suggested usage: Requested: wellness application requests EHR system's attention for a specific patient activity. Recieved: EHR has recieved the request. Accepted: EHR has accepted the Task. Rejected: EHR rejects the Task. in-progress: The Task is in progress in the EHR workflow"
      },
      {
        "id": "Task.for",
        "path": "Task.for",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
            ]
          }
        ]
      },
      {
        "id": "Task.input",
        "path": "Task.input",
        "label": "SymptomSummary",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type"
            }
          ],
          "rules": "open"
        },
        "short": "Symptom information used to perform task"
      },
      {
        "id": "Task.input:symptomSummary",
        "path": "Task.input",
        "sliceName": "symptomSummary"
      },
      {
        "id": "Task.input:symptomSummary.type",
        "path": "Task.input.type",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://hl7.org/fhir/sid/icd-10",
              "code": "TODO-SymptomSummary-code"
            }
          ]
        }
      },
      {
        "id": "Task.input:symptomSummary.value[x]",
        "path": "Task.input.value[x]",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/ActivityDefinition"
            ]
          }
        ]
      }
    ]
  }
}