{
  "resourceType": "StructureDefinition",
  "url": "http://apiframework.dedalus.eu/fhir/StructureDefinition/ActivityDefinition-WithTaskConstraints",
  "name": "ActivityDefinition-WithTaskConstraints",
  "title": "API Framework ActivityDefinition-WithTaskConstraints",
  "status": "active",
  "experimental": false,
  "description": "Dedalus API Framework use case profile for ActivityDefinition, purpose is to allow to create Task instances based on the Activity Definition by providing additional information such as executing application and constraints on the created task instances via a FHIR Profile reference.",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "ActivityDefinition",
  "baseDefinition": "http://apiframework.dedalus.eu/fhir/StructureDefinition/ActivityDefinition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "ActivityDefinition.extension",
        "path": "ActivityDefinition.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "ActivityDefinition.extension:executingApplication",
        "path": "ActivityDefinition.extension",
        "sliceName": "executingApplication",
        "requirements": "Defines the url of the application that will take care of any Task instance created based upon this Activity Definition",
        "min": 1,
        "type": [
          {
            "code": "Extension",
            "profile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/activityDefinition-executingApplication"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ActivityDefinition.extension:executingApplication.valueUri:valueUri",
        "path": "ActivityDefinition.extension.valueUri",
        "sliceName": "valueUri",
        "min": 1
      },
      {
        "id": "ActivityDefinition.extension:targetTaskProfile",
        "path": "ActivityDefinition.extension",
        "sliceName": "targetTaskProfile",
        "requirements": "Defines a reference to an instance of a FHIR Profile over the Task element. Each of the Tasks created based upon this Activity Definition must be compliant with the referenced profile.",
        "type": [
          {
            "code": "Extension",
            "profile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/activityDefinition-targetTaskProfile"
          }
        ],
        "mustSupport": true
      }
    ]
  }
}