{
  "resourceType": "StructureDefinition",
  "url": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Task-FromDefinition",
  "name": "Task-FromDefinition",
  "title": "API Framework Task-FromDefinition",
  "status": "active",
  "experimental": false,
  "description": "Dedalus API Framework use case profile for Task, describes the case of Tasks created based on Executable Activity Definition (see ActivityDefinition-Executable profile). This profile is designed to attach the ActivityDefinition-Executable instance as a contained resource. This allows to freeze the definition as it was at the time of the Task instance creation.",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Task",
  "baseDefinition": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Task",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Task.meta.profile",
        "path": "Task.meta.profile",
        "requirements": "The URL of the task profile inherited from the activity definition (see ActivityDefinition-Executable.targetTaskProfile.valueReference.reference)",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Task.extension",
        "path": "Task.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Task.extension:executingApplication",
        "path": "Task.extension",
        "sliceName": "executingApplication",
        "min": 1,
        "type": [
          {
            "code": "Extension",
            "profile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/activityDefinition-executingApplication"
          }
        ]
      },
      {
        "id": "Task.extension:targetTaskProfile",
        "path": "Task.extension",
        "sliceName": "targetTaskProfile",
        "type": [
          {
            "code": "Extension",
            "profile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/activityDefinition-targetTaskProfile"
          }
        ]
      },
      {
        "id": "Task.definition[x]:definitionReference",
        "path": "Task.definitionReference",
        "sliceName": "definitionReference",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/ActivityDefinition-WithTaskConstraints",
            "aggregation": [
              "referenced"
            ]
          }
        ],
        "mustSupport": true
      }
    ]
  }
}