<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="pt-ActivityDefinition" />
  <url value="http://medmij.nl/fhir/StructureDefinition/pt-ActivityDefinition" />
  <name value="ProviderTasksActivityDefinition" />
  <status value="draft" />
  <publisher value="MedMij" />
  <contact>
    <name value="MedMij" />
    <telecom>
      <system value="email" />
      <value value="info@medmij.nl" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="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 value="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 value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="ActivityDefinition" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition" />
  <derivation value="constraint" />
  <differential>
    <element id="ActivityDefinition">
      <path value="ActivityDefinition" />
      <definition value="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." />
    </element>
    <element id="ActivityDefinition.extension">
      <path value="ActivityDefinition.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="ActivityDefinition.extension:resource-origin">
      <path value="ActivityDefinition.extension" />
      <sliceName value="resource-origin" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://koppeltaal.nl/fhir/StructureDefinition/resource-origin" />
      </type>
    </element>
    <element id="ActivityDefinition.extension:endpoint">
      <path value="ActivityDefinition.extension" />
      <sliceName value="endpoint" />
      <short value="Endpoint for launching the activity" />
      <definition value="Mandatory reference to the service application (endpoint) that provides the launchable eHealth activity. Can be more than one endpoint." />
      <min value="1" />
      <max value="*" />
      <type>
        <code value="Extension" />
        <profile value="http://koppeltaal.nl/fhir/StructureDefinition/KT2EndpointExtension" />
      </type>
    </element>
    <element id="ActivityDefinition.extension:publisherId">
      <path value="ActivityDefinition.extension" />
      <sliceName value="publisherId" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://koppeltaal.nl/fhir/StructureDefinition/KT2PublisherId" />
      </type>
    </element>
    <element id="ActivityDefinition.url">
      <path value="ActivityDefinition.url" />
      <min value="1" />
    </element>
    <element id="ActivityDefinition.title">
      <path value="ActivityDefinition.title" />
      <min value="1" />
    </element>
    <element id="ActivityDefinition.useContext">
      <path value="ActivityDefinition.useContext" />
      <definition value="The context for the content of the eHealth activity." />
      <comment value="E.g. the activity is targeted to a certain age group." />
    </element>
    <element id="ActivityDefinition.usage">
      <path value="ActivityDefinition.usage" />
      <definition value="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." />
    </element>
    <element id="ActivityDefinition.topic">
      <path value="ActivityDefinition.topic" />
      <short value="E.g. Self-Treatment and Self-Assessment, etc." />
      <definition value="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 value="extensible" />
        <description value="High-level categorization of the definition, used for indicating special patient initialised activities" />
        <valueSet value="http://vzvz.nl/fhir/ValueSet/koppeltaal-definition-topic" />
      </binding>
    </element>
  </differential>
</StructureDefinition>