<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="pt-lm-Activity" />
  <text>
    <status value="empty" />
    <div xmlns="http://www.w3.org/1999/xhtml">No narrative is provided for definitional resources. A human-readable rendering can be found in the implementation guide(s) where this resource is used.</div>
  </text>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics">
    <valueCode value="can-be-target" />
  </extension>
  <url value="http://medmij.nl/fhir/StructureDefinition/pt-lm-Activity" />
  <name value="LmActivity" />
  <title value="Digital Activity" />
  <status value="active" />
  <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="To describe a reusable digital activity that can be selected and assigned by a healthcare professional to support the care process for a patient. The activity provides patient-facing content or actions (e.g., information, questionnaires, or home measurements)." />
  <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="logical" />
  <abstract value="true" />
  <type value="http://medmij.nl/fhir/StructureDefinition/pt-lm-Activity" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Element" />
  <derivation value="specialization" />
  <snapshot>
    <element id="pt-lm-Activity">
      <path value="pt-lm-Activity" />
      <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" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="pt-lm-Activity" />
        <min value="0" />
        <max value="*" />
      </base>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-9" />
        <comment value="Activity" />
      </mapping>
    </element>
    <element id="pt-lm-Activity.id">
      <path value="pt-lm-Activity.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="pt-lm-Activity.extension">
      <path value="pt-lm-Activity.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="pt-lm-Activity.Title">
      <path value="pt-lm-Activity.Title" />
      <short value="Short, human-friendly title for the digital activity." />
      <definition value="Short, human-friendly title for the digital activity." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <alias value="Titel" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="pt-lm-Activity.Title" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-10" />
        <comment value="Title" />
      </mapping>
    </element>
    <element id="pt-lm-Activity.Status">
      <path value="pt-lm-Activity.Status" />
      <short value="Lifecycle status of the digital activity (e.g., draft, active, retired). A retired activity can no longer be selected or assigned." />
      <definition value="Lifecycle status of the digital activity (e.g., draft, active, retired). A retired activity can no longer be selected or assigned." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <alias value="Status" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="pt-lm-Activity.Status" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-11" />
        <comment value="Status" />
      </mapping>
    </element>
    <element id="pt-lm-Activity.Publisher">
      <path value="pt-lm-Activity.Publisher" />
      <short value="Organization responsible for the content/functionality of this digital activity and its maintenance." />
      <definition value="Organization responsible for the content/functionality of this digital activity and its maintenance." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="pt-lm-Activity.Publisher" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-12" />
        <comment value="Publisher" />
      </mapping>
    </element>
    <element id="pt-lm-Activity.Description">
      <path value="pt-lm-Activity.Description" />
      <short value="Guidance on how this digital activity should be used in clinical workflows." />
      <definition value="Guidance on how this digital activity should be used in clinical workflows." />
      <comment value="Systems are not required to have markdown support, so the text should be readable without markdown processing. The markdown syntax is GFM - see https://github.github.com/gfm/" />
      <alias value="Omschrijving" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="pt-lm-Activity.Description" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="markdown" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-13" />
        <comment value="Description" />
      </mapping>
    </element>
    <element id="pt-lm-Activity.Timing">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="pt-lm-Activity.Timing" />
      <short value="Generic recommendation for how often/when the activity is typically performed. Patient-specific scheduling belongs in the clinical order (e.g., ServiceRequest)." />
      <definition value="Generic recommendation for how often/when the activity is typically performed. Patient-specific scheduling belongs in the clinical order (e.g., ServiceRequest)." />
      <comment value="Describes the occurrence of an event that may occur multiple times. Timing schedules are used for specifying when events are expected or requested to occur, and may also be used to represent the summary of a past or ongoing event.  For simplicity, the definitions of Timing components are expressed as 'future' events, but such components can also be used to describe historic or ongoing events.&#xA;&#xA;A Timing schedule can be a list of events and/or criteria for when the event happens, which can be expressed in a structured form and/or as a code. When both event and a repeating specification are provided, the list of events should be understood as an interpretation of the information in the repeat structure." />
      <alias value="Tijdschema" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="pt-lm-Activity.Timing" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Timing" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="N/A" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="QSET&lt;TS&gt; (GTS)" />
      </mapping>
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-14" />
        <comment value="Timing" />
      </mapping>
    </element>
  </snapshot>
  <differential>
    <element id="pt-lm-Activity">
      <path value="pt-lm-Activity" />
      <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="Activity" />
      </mapping>
    </element>
    <element id="pt-lm-Activity.Title">
      <path value="pt-lm-Activity.Title" />
      <short value="Short, human-friendly title for the digital activity." />
      <definition value="Short, human-friendly title for the digital activity." />
      <alias value="Titel" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-10" />
        <comment value="Title" />
      </mapping>
    </element>
    <element id="pt-lm-Activity.Status">
      <path value="pt-lm-Activity.Status" />
      <short value="Lifecycle status of the digital activity (e.g., draft, active, retired). A retired activity can no longer be selected or assigned." />
      <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" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-11" />
        <comment value="Status" />
      </mapping>
    </element>
    <element id="pt-lm-Activity.Publisher">
      <path value="pt-lm-Activity.Publisher" />
      <short value="Organization responsible for the content/functionality of this digital activity and its maintenance." />
      <definition value="Organization responsible for the content/functionality of this digital activity and its maintenance." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-12" />
        <comment value="Publisher" />
      </mapping>
    </element>
    <element id="pt-lm-Activity.Description">
      <path value="pt-lm-Activity.Description" />
      <short value="Guidance on how this digital activity should be used in clinical workflows." />
      <definition value="Guidance on how this digital activity should be used in clinical workflows." />
      <alias value="Omschrijving" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="markdown" />
      </type>
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-13" />
        <comment value="Description" />
      </mapping>
    </element>
    <element id="pt-lm-Activity.Timing">
      <path value="pt-lm-Activity.Timing" />
      <short value="Generic recommendation for how often/when the activity is typically performed. Patient-specific scheduling belongs in the clinical order (e.g., ServiceRequest)." />
      <definition value="Generic recommendation for how often/when the activity is typically performed. Patient-specific scheduling belongs in the clinical order (e.g., ServiceRequest)." />
      <alias value="Tijdschema" />
      <min value="0" />
      <max value="1" />
      <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>