<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="MaiaRuleBasedEvaluationInteraction" />
  <url value="https://tiplu.de/fhir/maia/StructureDefinition/MaiaRuleBasedEvaluationInteraction" />
  <version value="1.0.0" />
  <name value="MaiaRuleBasedEvaluationInteraction" />
  <title value="Maia interaktion with rule-based evaluation" />
  <status value="draft" />
  <experimental value="false" />
  <date value="2025-04-30" />
  <publisher value="Tiplu GmbH" />
  <description value="The profile captures the interaction with a rule-based evaluation, including the type of interaction performed, the time of execution, the evaluated target, and the responsible agent.&#xA;&#xA;*German:*&#xA;Das Profil erfasst die Interaktion mit einer Verdachtsdiagnose, einschließlich der Art der durchgeführten Interaktion, des Ausführungszeitpunkts, des bewerteten Ziels und des zuständigen Agenten." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Provenance" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Provenance" />
  <derivation value="constraint" />
  <differential>
    <element id="Provenance.target">
      <path value="Provenance.target" />
      <short value="RiskAssessment of the interaction" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://tiplu.de/fhir/maia/StructureDefinition/MaiaRuleBasedEvaluation" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Provenance.recorded">
      <path value="Provenance.recorded" />
      <short value="Time of the interaction" />
      <mustSupport value="true" />
    </element>
    <element id="Provenance.activity">
      <path value="Provenance.activity" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Provenance.activity.coding">
      <path value="Provenance.activity.coding" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Provenance.activity.coding:MaiaRuleBasedEvaluationInteraction">
      <path value="Provenance.activity.coding" />
      <sliceName value="MaiaRuleBasedEvaluationInteraction" />
      <short value="Which interaction was performed." />
      <min value="1" />
      <max value="1" />
      <patternCoding>
        <system value="https://tiplu.de/fhir/maia/StructureDefinition/MaiaRuleBasedEvaluationInteraction" />
      </patternCoding>
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="https://tiplu.de/fhir/maia/ValueSet/MaiaRuleBasedEvaluationInteractionVS" />
      </binding>
    </element>
    <element id="Provenance.agent">
      <path value="Provenance.agent" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <mustSupport value="true" />
    </element>
    <element id="Provenance.agent:PerformingUser">
      <path value="Provenance.agent" />
      <sliceName value="PerformingUser" />
      <min value="1" />
      <max value="*" />
      <mustSupport value="true" />
    </element>
    <element id="Provenance.agent:PerformingUser.type">
      <path value="Provenance.agent.type" />
      <patternCodeableConcept>
        <coding>
          <code value="performer" />
        </coding>
      </patternCodeableConcept>
      <mustSupport value="true" />
    </element>
    <element id="Provenance.agent:PerformingUser.who">
      <path value="Provenance.agent.who" />
      <mustSupport value="true" />
    </element>
    <element id="Provenance.agent:PerformingUser.who.display">
      <path value="Provenance.agent.who.display" />
      <short value="Name of the user performing the activity" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>