{
  "resourceType": "StructureDefinition",
  "url": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Task-ForISM",
  "name": "Task-ForISM",
  "title": "API Framework Task-ForISM",
  "status": "active",
  "experimental": false,
  "description": "Task dedicated to Issue Management",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Task",
  "baseDefinition": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Task",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Task.status",
        "path": "Task.status",
        "short": "draft | requested | accepted | rejected | cancelled | in-progress | completed"
      },
      {
        "id": "Task.code",
        "path": "Task.code",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSetUri": "http://apiframework.dedalus.eu/fhir/ValueSet/TaskCodes"
        }
      },
      {
        "id": "Task.code.coding",
        "path": "Task.code.coding",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Task.code.coding.code",
        "path": "Task.code.coding.code",
        "min": 1,
        "fixedCode": "ISM",
        "mustSupport": true
      },
      {
        "id": "Task.focus",
        "path": "Task.focus",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/DetectedIssue"
          }
        ]
      },
      {
        "id": "Task.for",
        "path": "Task.for",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Patient"
          }
        ]
      },
      {
        "id": "Task.owner",
        "path": "Task.owner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Task.input",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Parameter"
          }
        ],
        "path": "Task.input",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type.coding.code"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Task.input.type",
        "path": "Task.input.type",
        "mustSupport": true
      },
      {
        "id": "Task.input.value[x]",
        "path": "Task.input.value[x]",
        "mustSupport": true
      },
      {
        "id": "Task.input:originalTask",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Parameter"
          }
        ],
        "path": "Task.input",
        "sliceName": "originalTask",
        "requirements": "Task whose execution let the issue emerge (e.g. Order Task, Medication Task)",
        "max": "1"
      },
      {
        "id": "Task.input:originalTask.type.coding",
        "path": "Task.input.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Task.input:originalTask.type.coding.code",
        "path": "Task.input.type.coding.code",
        "min": 1,
        "fixedCode": "Task",
        "mustSupport": true
      },
      {
        "id": "Task.input:originalTask.value[x]:valueReference",
        "path": "Task.input.valueReference",
        "sliceName": "valueReference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/DiagnosticReport"
          }
        ]
      }
    ]
  }
}