<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="pt-ActivityDefinition" />
  <url value="http://medmij.nl/fhir/StructureDefinition/pt-ActivityDefinition" />
  <name value="PtActivityDefinition" />
  <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)." />
  <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" />
  <mapping>
    <identity value="pt-dataset-100-alpha1-20260511" />
    <name value="Dataset Aanbiedertaken MedMij 1.0.0-alpha.1 20260511" />
  </mapping>
  <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" />
      <short value="Digital Activity" />
      <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." />
      <alias value="Digitale Activiteit" />
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-9" />
        <comment value="Activity" />
      </mapping>
    </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" />
      <short value="Title" />
      <definition value="Short, human-friendly title for the digital activity." />
      <alias value="Titel" />
      <min value="1" />
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-10" />
        <comment value="Title" />
      </mapping>
    </element>
    <element id="ActivityDefinition.status">
      <path value="ActivityDefinition.status" />
      <short value="Status" />
      <definition value="Lifecycle status of the digital activity (e.g., draft, active, retired). A retired activity can no longer be selected or assigned." />
      <alias value="Status" />
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-11" />
        <comment value="Status" />
      </mapping>
    </element>
    <element id="ActivityDefinition.publisher">
      <path value="ActivityDefinition.publisher" />
      <short value="Publisher" />
      <definition value="Organization responsible for the content/functionality of this digital activity and its maintenance." />
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-12" />
        <comment value="Publisher" />
      </mapping>
    </element>
    <element id="ActivityDefinition.description">
      <path value="ActivityDefinition.description" />
      <short value="Description" />
      <definition value="Guidance on how this digital activity should be used in clinical workflows." />
      <alias value="Omschrijving" />
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-13" />
        <comment value="Description" />
      </mapping>
    </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>
    <element id="ActivityDefinition.timing[x]">
      <path value="ActivityDefinition.timing[x]" />
      <short value="Timing" />
      <definition value="Generic recommendation for how often/when the activity is typically performed. Patient-specific scheduling belongs in the clinical order (e.g., ServiceRequestExecutionOrder)." />
      <alias value="Tijdschema" />
      <type>
        <code value="Timing" />
      </type>
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-14" />
        <comment value="Timing" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>