<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="pt-lm-ExecutionOrder" />
  <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-ExecutionOrder" />
  <name value="PtLmExecutionOrder" />
  <title value="Execution Order" />
  <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="Patient-specific execution order for a digital activity, created by a healthcare professional for a patient." />
  <purpose value="This LogicalModel represents the ExecutionOrder 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="logical" />
  <abstract value="false" />
  <type value="http://medmij.nl/fhir/StructureDefinition/pt-lm-ExecutionOrder" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Element" />
  <derivation value="specialization" />
  <differential>
    <element id="pt-lm-ExecutionOrder">
      <path value="pt-lm-ExecutionOrder" />
      <short value="Execution order" />
      <definition value="Patient-specific execution order for a digital activity, created by a healthcare professional for a patient." />
      <alias value="Uitvoeringsopdracht" />
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-15" />
        <comment value="ExecutionOrder" />
      </mapping>
    </element>
    <element id="pt-lm-ExecutionOrder.Identifier">
      <path value="pt-lm-ExecutionOrder.Identifier" />
      <short value="Identifier" />
      <definition value="Business identifier for this execution order." />
      <alias value="Identificatie" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Identifier" />
      </type>
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-32" />
        <comment value="Identifier" />
      </mapping>
    </element>
    <element id="pt-lm-ExecutionOrder.PatientInstruction">
      <path value="pt-lm-ExecutionOrder.PatientInstruction" />
      <short value="Patient instruction" />
      <definition value="Patient-oriented instructions that may differ from or add to the generic activity information. These instructions should be shown alongside the task(s) created from this order." />
      <alias value="PatiëntenInstructie" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-16" />
        <comment value="PatientInstruction" />
      </mapping>
    </element>
    <element id="pt-lm-ExecutionOrder.Schedule[x]">
      <path value="pt-lm-ExecutionOrder.Schedule[x]" />
      <short value="Schedule" />
      <definition value="Requested schedule for performing the activity." />
      <alias value="Tijdschema" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <type>
        <code value="Period" />
      </type>
      <type>
        <code value="Timing" />
      </type>
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-17" />
        <comment value="Schedule" />
      </mapping>
    </element>
    <element id="pt-lm-ExecutionOrder.Requester">
      <path value="pt-lm-ExecutionOrder.Requester" />
      <short value="Requester" />
      <definition value="Healthcare professional that requests this activity for the patient." />
      <alias value="Aanvrager" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://medmij.nl/fhir/StructureDefinition/medmij-core-lm-HealthProfessional" />
      </type>
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-18" />
        <comment value="Requester" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>