<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="pt-DigitalActivity" />
  <url value="http://medmij.nl/fhir/StructureDefinition/pt-DigitalActivity" />
  <name value="PtDigitalActivity" />
  <title value="pt DigitalActivity" />
  <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="Reusable definition of a digital activity (module) that can be selected by a healthcare professional and presented to a patient as part of the care process. The activity describes what the patient will do (e.g., read information, complete a questionnaire, perform a home measurement) and provides the information needed to start or access the activity when applicable." />
  <purpose value="This ActivityDefinition resource represents the DigitalActivity building block for patient use cases in the context of the data service Provider Tasks (Aanbiedertaken)." />
  <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.2 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="Reusable definition of a digital activity (module) that can be selected by a healthcare professional and presented to a patient as part of the care process. The activity describes what the patient will do (e.g., read information, complete a questionnaire, perform a home measurement) and provides the information needed to start or access the activity when applicable." />
      <alias value="Digitale Activiteit" />
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-9" />
        <comment value="DigitalActivity" />
      </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: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 digital activity. Can be more than one endpoint." />
      <min value="1" />
      <max value="*" />
      <type>
        <code value="Extension" />
        <profile value="http://medmij.nl/fhir/StructureDefinition/ext-DigitalActivity.Endpoint" />
      </type>
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-36" />
        <comment value="Endpoint" />
      </mapping>
    </element>
    <element id="ActivityDefinition.url">
      <path value="ActivityDefinition.url" />
      <min value="1" />
    </element>
    <element id="ActivityDefinition.identifier">
      <path value="ActivityDefinition.identifier" />
      <short value="Identifier" />
      <definition value="Business identifier for this digital activity definition." />
      <alias value="Identificatie" />
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-31" />
        <comment value="Identifier" />
      </mapping>
    </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.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." />
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-30" />
        <comment value="Usage" />
      </mapping>
    </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 execution order (ServiceRequest)." />
      <alias value="Tijdschema" />
      <type>
        <code value="Timing" />
      </type>
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-14" />
        <comment value="Schedule" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>