{
  "resourceType": "StructureDefinition",
  "id": "pt-ActivityDefinition",
  "url": "http://medmij.nl/fhir/StructureDefinition/pt-ActivityDefinition",
  "name": "ProviderTasksActivityDefinition",
  "status": "draft",
  "publisher": "MedMij",
  "contact": [
    {
      "name": "MedMij",
      "telecom": [
        {
          "system": "email",
          "value": "info@medmij.nl",
          "use": "work"
        }
      ]
    }
  ],
  "description": "This (FHIR) ActivityDefinition profile describes a reusable definition of a launchable digital (eHealth) activity that can be requested for a patient in MedMij and/or Koppeltaal workflows. It captures the clinical intent and the technical launch information (e.g., endpoint) so that systems can consistently create patient-specific Tasks that reference this definition.",
  "copyright": "Copyright and related rights waived via CC0, https://creativecommons.org/publicdomain/zero/1.0/. This does not apply to information from third parties, for example a medical terminology system. The implementer alone is responsible for identifying and obtaining any necessary licenses or authorizations to utilize third party IP in connection with the specification or otherwise.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "ActivityDefinition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "ActivityDefinition",
        "path": "ActivityDefinition",
        "definition": "Definition of a launchable digital (eHealth) activity that can be used as a template for patient-specific workflow requests. The definition may describe different activity types (e.g., launching a third-party module, presenting information, completing a questionnaire, or performing a measurement) and includes the technical launch details needed to invoke the activity in the correct context."
      },
      {
        "id": "ActivityDefinition.extension",
        "path": "ActivityDefinition.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "ActivityDefinition.extension:resource-origin",
        "path": "ActivityDefinition.extension",
        "sliceName": "resource-origin",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://koppeltaal.nl/fhir/StructureDefinition/resource-origin"
            ]
          }
        ]
      },
      {
        "id": "ActivityDefinition.extension:endpoint",
        "path": "ActivityDefinition.extension",
        "sliceName": "endpoint",
        "short": "Endpoint for launching the activity",
        "definition": "Mandatory reference to the service application (endpoint) that provides the launchable eHealth activity. Can be more than one endpoint.",
        "min": 1,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://koppeltaal.nl/fhir/StructureDefinition/KT2EndpointExtension"
            ]
          }
        ]
      },
      {
        "id": "ActivityDefinition.extension:publisherId",
        "path": "ActivityDefinition.extension",
        "sliceName": "publisherId",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://koppeltaal.nl/fhir/StructureDefinition/KT2PublisherId"
            ]
          }
        ]
      },
      {
        "id": "ActivityDefinition.url",
        "path": "ActivityDefinition.url",
        "min": 1
      },
      {
        "id": "ActivityDefinition.title",
        "path": "ActivityDefinition.title",
        "min": 1
      },
      {
        "id": "ActivityDefinition.useContext",
        "path": "ActivityDefinition.useContext",
        "definition": "The context for the content of the eHealth activity.",
        "comment": "E.g. the activity is targeted to a certain age group."
      },
      {
        "id": "ActivityDefinition.usage",
        "path": "ActivityDefinition.usage",
        "definition": "A detailed description of how the activity definition is used from a clinical perspective. In the MedMij use case, this text is intended for the healthcare professional who is selecting and assigning the activity to the patient."
      },
      {
        "id": "ActivityDefinition.topic",
        "path": "ActivityDefinition.topic",
        "short": "E.g. Self-Treatment and Self-Assessment, etc.",
        "definition": "Descriptive topics related to the content of the activity. The topic is used to indicate that the activity is intended or suitable for initialization by patients.",
        "binding": {
          "strength": "extensible",
          "valueSet": "http://vzvz.nl/fhir/ValueSet/koppeltaal-definition-topic",
          "description": "High-level categorization of the definition, used for indicating special patient initialised activities"
        }
      }
    ]
  }
}