PackagesCanonicalsLogsProblems
    Packages
    io.health-samurai.core.r4@0.2601.0
    http://health-samurai.io/fhir/core/StructureDefinition/AidboxTask
{
  "description": null,
  "_filename": "StructureDefinition-AidboxTask.json",
  "package_name": "io.health-samurai.core.r4",
  "date": null,
  "derivation": "specialization",
  "publisher": null,
  "fhirVersion": "4.0.1",
  "name": "AidboxTask",
  "abstract": false,
  "type": "AidboxTask",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": null,
  "package_version": "0.2601.0",
  "status": "active",
  "id": "403e09ce-9b4d-42c7-b53e-2d499ab9890b",
  "kind": "resource",
  "url": "http://health-samurai.io/fhir/core/StructureDefinition/AidboxTask",
  "version": "0.2601.0",
  "differential": {
    "element": [ {
      "id": "AidboxTask",
      "max": "*",
      "min": 0,
      "path": "AidboxTask"
    }, {
      "id": "AidboxTask.definition",
      "max": "1",
      "min": 1,
      "path": "AidboxTask.definition",
      "type": [ {
        "code": "string"
      } ],
      "short": "Identifier for the task definition."
    }, {
      "id": "AidboxTask.params",
      "min": 1,
      "path": "AidboxTask.params",
      "short": "Parameters required for task execution.",
      "extension": [ {
        "url": "http://health-samurai.io/fhir/core/StructureDefinition/custom-type",
        "valueCode": "any"
      } ]
    }, {
      "id": "AidboxTask.status",
      "max": "1",
      "min": 1,
      "path": "AidboxTask.status",
      "type": [ {
        "code": "string"
      } ],
      "short": "Current status of the task.",
      "constraint": [ {
        "key": "enum-31",
        "human": "Status must be one of: created, ready, requested, in-progress, done, waiting",
        "severity": "error",
        "expression": "%context.subsetOf('created' | 'ready' | 'requested' | 'in-progress' | 'done' | 'waiting')"
      } ]
    }, {
      "id": "AidboxTask.inProgressTimeout",
      "max": "1",
      "min": 0,
      "path": "AidboxTask.inProgressTimeout",
      "type": [ {
        "code": "decimal"
      } ],
      "short": "Maximum duration in seconds that a task can remain in in-progress status before timing out."
    }, {
      "id": "AidboxTask.concurrencyPath",
      "max": "*",
      "min": 0,
      "path": "AidboxTask.concurrencyPath",
      "extension": [ {
        "url": "http://health-samurai.io/fhir/core/StructureDefinition/custom-type",
        "valueCode": "string"
      } ]
    }, {
      "id": "AidboxTask.executeAt",
      "max": "1",
      "min": 0,
      "path": "AidboxTask.executeAt",
      "type": [ {
        "code": "dateTime"
      } ],
      "short": "Scheduled time for task execution."
    }, {
      "id": "AidboxTask.retryCount",
      "max": "1",
      "min": 0,
      "path": "AidboxTask.retryCount",
      "type": [ {
        "code": "decimal"
      } ],
      "short": "Number of times the task has been retried."
    }, {
      "id": "AidboxTask.requestedToStartTimeout",
      "max": "1",
      "min": 0,
      "path": "AidboxTask.requestedToStartTimeout",
      "type": [ {
        "code": "decimal"
      } ],
      "short": "Maximum duration in seconds that a task can remain in requested status before timing out."
    }, {
      "id": "AidboxTask.outcome",
      "max": "1",
      "min": 0,
      "path": "AidboxTask.outcome",
      "type": [ {
        "code": "string"
      } ],
      "short": "Final outcome of the task execution.",
      "constraint": [ {
        "key": "enum-30",
        "human": "Outcome must be one of: succeeded, failed, canceled",
        "severity": "error",
        "expression": "%context.subsetOf('succeeded' | 'failed' | 'canceled')"
      } ]
    }, {
      "id": "AidboxTask.workflow-definition",
      "max": "1",
      "min": 0,
      "path": "AidboxTask.workflow-definition",
      "type": [ {
        "code": "string"
      } ],
      "short": "Reference to the workflow definition for this task."
    }, {
      "id": "AidboxTask.concurrencyLimit",
      "max": "1",
      "min": 0,
      "path": "AidboxTask.concurrencyLimit",
      "type": [ {
        "code": "decimal"
      } ],
      "short": "Maximum number of concurrent tasks allowed."
    }, {
      "id": "AidboxTask.retryDelay",
      "max": "1",
      "min": 0,
      "path": "AidboxTask.retryDelay",
      "type": [ {
        "code": "decimal"
      } ],
      "short": "Delay in seconds before retrying a failed task."
    }, {
      "id": "AidboxTask.requester",
      "max": "1",
      "min": 0,
      "path": "AidboxTask.requester",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "Entity that requested the task."
    }, {
      "id": "AidboxTask.requester.id",
      "max": "1",
      "min": 0,
      "path": "AidboxTask.requester.id",
      "type": [ {
        "code": "string"
      } ],
      "short": "Identifier of the requester."
    }, {
      "id": "AidboxTask.requester.resourceType",
      "max": "1",
      "min": 0,
      "path": "AidboxTask.requester.resourceType",
      "type": [ {
        "code": "string"
      } ],
      "short": "Type of resource that made the request."
    }, {
      "id": "AidboxTask.requester.display",
      "max": "1",
      "min": 0,
      "path": "AidboxTask.requester.display",
      "type": [ {
        "code": "string"
      } ],
      "short": "Human-readable display name of the requester."
    }, {
      "id": "AidboxTask.requester.service",
      "max": "1",
      "min": 0,
      "path": "AidboxTask.requester.service",
      "type": [ {
        "code": "string"
      } ],
      "short": "Service that initiated the request."
    }, {
      "id": "AidboxTask.requester.rule",
      "max": "1",
      "min": 0,
      "path": "AidboxTask.requester.rule",
      "type": [ {
        "code": "string"
      } ],
      "short": "Rule that authorized the request."
    }, {
      "id": "AidboxTask.result",
      "path": "AidboxTask.result",
      "short": "Result data produced by successful task execution.",
      "extension": [ {
        "url": "http://health-samurai.io/fhir/core/StructureDefinition/custom-type",
        "valueCode": "any"
      } ]
    }, {
      "id": "AidboxTask.execId",
      "max": "1",
      "min": 0,
      "path": "AidboxTask.execId",
      "type": [ {
        "code": "string"
      } ],
      "short": "Unique execution identifier."
    }, {
      "id": "AidboxTask.label",
      "max": "1",
      "min": 0,
      "path": "AidboxTask.label",
      "type": [ {
        "code": "string"
      } ],
      "short": "Label for the task."
    }, {
      "id": "AidboxTask.error",
      "path": "AidboxTask.error",
      "short": "Error details if task failed.",
      "extension": [ {
        "url": "http://health-samurai.io/fhir/core/StructureDefinition/custom-type",
        "valueCode": "any"
      } ]
    }, {
      "id": "AidboxTask.outcomeReason",
      "max": "1",
      "min": 0,
      "path": "AidboxTask.outcomeReason",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "Detailed reason for the task outcome."
    }, {
      "id": "AidboxTask.outcomeReason.type",
      "max": "1",
      "min": 1,
      "path": "AidboxTask.outcomeReason.type",
      "type": [ {
        "code": "string"
      } ],
      "short": "Type of outcome reason.",
      "constraint": [ {
        "key": "enum-32",
        "human": "Type must be one of: awf.task/failed-due-to-in-progress-timeout, awf.task/failed-by-executor, awf.executor/unknown-error",
        "severity": "error",
        "expression": "%context.subsetOf('awf.task/failed-due-to-in-progress-timeout' | 'awf.task/failed-by-executor' | 'awf.executor/unknown-error')"
      } ]
    }, {
      "id": "AidboxTask.outcomeReason.message",
      "max": "1",
      "min": 1,
      "path": "AidboxTask.outcomeReason.message",
      "type": [ {
        "code": "string"
      } ],
      "short": "Human-readable explanation of the outcome."
    }, {
      "id": "AidboxTask.outcomeReason.data",
      "path": "AidboxTask.outcomeReason.data",
      "short": "Additional data related to the outcome.",
      "extension": [ {
        "url": "http://health-samurai.io/fhir/core/StructureDefinition/custom-type",
        "valueCode": "any"
      } ]
    }, {
      "id": "AidboxTask.allowedRetryCount",
      "max": "1",
      "min": 0,
      "path": "AidboxTask.allowedRetryCount",
      "type": [ {
        "code": "integer"
      } ],
      "short": "Maximum number of retries allowed for this task."
    } ]
  },
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource"
}