<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="practitionertasklist" />
  <url value="http://fhir.xt.dev/StructureDefinition/PractitionerTaskList" />
  <version value="0.0.1" />
  <name value="PractitionerTaskList" />
  <status value="draft" />
  <date value="2024-12-15T22:17:08.6415665+00:00" />
  <publisher value="x-tention Informationstechnologie GmbH" />
  <contact>
    <telecom>
      <system value="email" />
      <value value="fhir.profiling@x-tention.com" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="List of tasks where the practitioner is the current performer. This includes current and completed tasks." />
  <copyright value="x-tention Informationstechnologie GmbH" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="List" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/List" />
  <derivation value="constraint" />
  <differential>
    <element id="List.status">
      <path value="List.status" />
      <fixedCode value="current" />
    </element>
    <element id="List.mode">
      <path value="List.mode" />
      <fixedCode value="working" />
    </element>
    <element id="List.title">
      <path value="List.title" />
      <min value="1" />
    </element>
    <element id="List.code">
      <path value="List.code" />
      <min value="1" />
    </element>
    <element id="List.code.coding">
      <path value="List.code.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="List.code.coding.system">
      <path value="List.code.coding.system" />
      <min value="1" />
      <fixedUri value="http://fhir.xt.dev/CodeSystem/ListPurpose" />
    </element>
    <element id="List.code.coding.code">
      <path value="List.code.coding.code" />
      <min value="1" />
      <fixedCode value="practitioner-task-list" />
    </element>
    <element id="List.code.text">
      <path value="List.code.text" />
      <max value="0" />
    </element>
    <element id="List.date">
      <path value="List.date" />
      <min value="1" />
    </element>
    <element id="List.source">
      <path value="List.source" />
      <short value="Performer for each task" />
      <definition value="The entity responsible for deciding what the contents of the list were. By assuming responsibility for performing the listed tasks, the Practitioner fulfills this role." />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <aggregation value="referenced" />
      </type>
    </element>
    <element id="List.source.reference">
      <path value="List.source.reference" />
      <min value="1" />
    </element>
    <element id="List.orderedBy">
      <path value="List.orderedBy" />
      <min value="1" />
    </element>
    <element id="List.orderedBy.coding">
      <path value="List.orderedBy.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="List.orderedBy.coding.system">
      <path value="List.orderedBy.coding.system" />
      <min value="1" />
      <fixedUri value="http://terminology.hl7.org/CodeSystem/list-order" />
    </element>
    <element id="List.orderedBy.coding.code">
      <path value="List.orderedBy.coding.code" />
      <min value="1" />
      <fixedCode value="entry-date" />
    </element>
    <element id="List.orderedBy.text">
      <path value="List.orderedBy.text" />
      <max value="0" />
    </element>
    <element id="List.entry.deleted">
      <path value="List.entry.deleted" />
      <max value="0" />
    </element>
    <element id="List.entry.date">
      <path value="List.entry.date" />
      <min value="1" />
    </element>
    <element id="List.entry.item">
      <path value="List.entry.item" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Task" />
        <aggregation value="referenced" />
      </type>
    </element>
    <element id="List.entry.item.reference">
      <path value="List.entry.item.reference" />
      <min value="1" />
    </element>
    <element id="List.emptyReason">
      <path value="List.emptyReason" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>