{
  "resourceType": "StructureDefinition",
  "id": "MaiaRuleBasedEvaluationInteraction",
  "url": "https://tiplu.de/fhir/maia/StructureDefinition/MaiaRuleBasedEvaluationInteraction",
  "version": "1.0.0",
  "name": "MaiaRuleBasedEvaluationInteraction",
  "title": "Maia interaktion with rule-based evaluation",
  "status": "draft",
  "experimental": false,
  "date": "2025-04-30",
  "publisher": "Tiplu GmbH",
  "description": "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.\n\n*German:*\nDas 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": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Provenance",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Provenance",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Provenance.target",
        "path": "Provenance.target",
        "short": "RiskAssessment of the interaction",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://tiplu.de/fhir/maia/StructureDefinition/MaiaRuleBasedEvaluation"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Provenance.recorded",
        "path": "Provenance.recorded",
        "short": "Time of the interaction",
        "mustSupport": true
      },
      {
        "id": "Provenance.activity",
        "path": "Provenance.activity",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Provenance.activity.coding",
        "path": "Provenance.activity.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Provenance.activity.coding:MaiaRuleBasedEvaluationInteraction",
        "path": "Provenance.activity.coding",
        "sliceName": "MaiaRuleBasedEvaluationInteraction",
        "short": "Which interaction was performed.",
        "min": 1,
        "max": "1",
        "patternCoding": {
          "system": "https://tiplu.de/fhir/maia/StructureDefinition/MaiaRuleBasedEvaluationInteraction"
        },
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "https://tiplu.de/fhir/maia/ValueSet/MaiaRuleBasedEvaluationInteractionVS"
        }
      },
      {
        "id": "Provenance.agent",
        "path": "Provenance.agent",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "mustSupport": true
      },
      {
        "id": "Provenance.agent:PerformingUser",
        "path": "Provenance.agent",
        "sliceName": "PerformingUser",
        "min": 1,
        "max": "*",
        "mustSupport": true
      },
      {
        "id": "Provenance.agent:PerformingUser.type",
        "path": "Provenance.agent.type",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "performer"
            }
          ]
        },
        "mustSupport": true
      },
      {
        "id": "Provenance.agent:PerformingUser.who",
        "path": "Provenance.agent.who",
        "mustSupport": true
      },
      {
        "id": "Provenance.agent:PerformingUser.who.display",
        "path": "Provenance.agent.who.display",
        "short": "Name of the user performing the activity",
        "mustSupport": true
      }
    ]
  }
}