PackagesCanonicalsLogsProblems
    Packages
    io.health-samurai.core.r4@0.2601.0
    http://health-samurai.io/fhir/core/StructureDefinition/AidboxWorkflow
{
  "description": null,
  "_filename": "StructureDefinition-AidboxWorkflow.json",
  "package_name": "io.health-samurai.core.r4",
  "date": null,
  "derivation": "specialization",
  "publisher": null,
  "fhirVersion": "4.0.1",
  "name": "AidboxWorkflow",
  "abstract": false,
  "type": "AidboxWorkflow",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": null,
  "package_version": "0.2601.0",
  "status": "active",
  "id": "531cfccd-977a-4fab-ad9d-a1514624c744",
  "kind": "resource",
  "url": "http://health-samurai.io/fhir/core/StructureDefinition/AidboxWorkflow",
  "version": "0.2601.0",
  "differential": {
    "element": [ {
      "id": "AidboxWorkflow",
      "max": "*",
      "min": 0,
      "path": "AidboxWorkflow"
    }, {
      "id": "AidboxWorkflow.definition",
      "max": "1",
      "min": 1,
      "path": "AidboxWorkflow.definition",
      "type": [ {
        "code": "string"
      } ],
      "short": "Workflow definition identifier."
    }, {
      "id": "AidboxWorkflow.status",
      "max": "1",
      "min": 1,
      "path": "AidboxWorkflow.status",
      "type": [ {
        "code": "string"
      } ],
      "short": "Current status of the workflow.",
      "constraint": [ {
        "key": "enum-155",
        "human": "Status must be one of: created, in-progress, done",
        "severity": "error",
        "expression": "%context.subsetOf('created' | 'in-progress' | 'done')"
      } ]
    }, {
      "id": "AidboxWorkflow.executeAt",
      "max": "1",
      "min": 0,
      "path": "AidboxWorkflow.executeAt",
      "type": [ {
        "code": "string"
      } ],
      "short": "Scheduled time for workflow execution."
    }, {
      "id": "AidboxWorkflow.params",
      "path": "AidboxWorkflow.params",
      "short": "Parameters required for workflow execution.",
      "extension": [ {
        "url": "http://health-samurai.io/fhir/core/StructureDefinition/custom-type",
        "valueCode": "any"
      } ]
    }, {
      "id": "AidboxWorkflow.retryCount",
      "max": "1",
      "min": 0,
      "path": "AidboxWorkflow.retryCount",
      "type": [ {
        "code": "decimal"
      } ],
      "short": "Number of times the workflow has been retried."
    }, {
      "id": "AidboxWorkflow.outcome",
      "max": "1",
      "min": 0,
      "path": "AidboxWorkflow.outcome",
      "type": [ {
        "code": "string"
      } ],
      "short": "Final outcome of the workflow execution.",
      "constraint": [ {
        "key": "enum-154",
        "human": "Outcome must be one of: succeeded, failed, canceled",
        "severity": "error",
        "expression": "%context.subsetOf('succeeded' | 'failed' | 'canceled')"
      } ]
    }, {
      "id": "AidboxWorkflow.requester",
      "max": "1",
      "min": 0,
      "path": "AidboxWorkflow.requester",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "Entity that requested the workflow."
    }, {
      "id": "AidboxWorkflow.requester.id",
      "max": "1",
      "min": 0,
      "path": "AidboxWorkflow.requester.id",
      "type": [ {
        "code": "string"
      } ],
      "short": "Identifier of the requester."
    }, {
      "id": "AidboxWorkflow.requester.resourceType",
      "max": "1",
      "min": 0,
      "path": "AidboxWorkflow.requester.resourceType",
      "type": [ {
        "code": "string"
      } ],
      "short": "Type of resource that made the request."
    }, {
      "id": "AidboxWorkflow.requester.display",
      "max": "1",
      "min": 0,
      "path": "AidboxWorkflow.requester.display",
      "type": [ {
        "code": "string"
      } ],
      "short": "Human-readable display name of the requester."
    }, {
      "id": "AidboxWorkflow.requester.service",
      "max": "1",
      "min": 0,
      "path": "AidboxWorkflow.requester.service",
      "type": [ {
        "code": "string"
      } ],
      "short": "Service that initiated the request."
    }, {
      "id": "AidboxWorkflow.requester.rule",
      "max": "1",
      "min": 0,
      "path": "AidboxWorkflow.requester.rule",
      "type": [ {
        "code": "string"
      } ],
      "short": "Rule that authorized the request."
    }, {
      "id": "AidboxWorkflow.result",
      "path": "AidboxWorkflow.result",
      "short": "Result data produced by successful workflow execution.",
      "extension": [ {
        "url": "http://health-samurai.io/fhir/core/StructureDefinition/custom-type",
        "valueCode": "any"
      } ]
    }, {
      "id": "AidboxWorkflow.execId",
      "max": "1",
      "min": 0,
      "path": "AidboxWorkflow.execId",
      "type": [ {
        "code": "string"
      } ],
      "short": "Unique execution identifier."
    }, {
      "id": "AidboxWorkflow.label",
      "max": "1",
      "min": 0,
      "path": "AidboxWorkflow.label",
      "type": [ {
        "code": "string"
      } ],
      "short": "Human-readable label for the workflow."
    }, {
      "id": "AidboxWorkflow.error",
      "path": "AidboxWorkflow.error",
      "short": "Error details if workflow failed.",
      "extension": [ {
        "url": "http://health-samurai.io/fhir/core/StructureDefinition/custom-type",
        "valueCode": "any"
      } ]
    }, {
      "id": "AidboxWorkflow.outcomeReason",
      "max": "1",
      "min": 0,
      "path": "AidboxWorkflow.outcomeReason",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "Detailed reason for the workflow outcome."
    }, {
      "id": "AidboxWorkflow.outcomeReason.type",
      "max": "1",
      "min": 1,
      "path": "AidboxWorkflow.outcomeReason.type",
      "type": [ {
        "code": "string"
      } ],
      "short": "Type of outcome reason.",
      "constraint": [ {
        "key": "enum-156",
        "human": "Type must be one of: awf.workflow/failed-by-executor, awf.executor/unknown-error",
        "severity": "error",
        "expression": "%context.subsetOf('awf.workflow/failed-by-executor' | 'awf.executor/unknown-error')"
      } ]
    }, {
      "id": "AidboxWorkflow.outcomeReason.message",
      "max": "1",
      "min": 1,
      "path": "AidboxWorkflow.outcomeReason.message",
      "type": [ {
        "code": "string"
      } ],
      "short": "Human-readable explanation of the outcome."
    }, {
      "id": "AidboxWorkflow.outcomeReason.data",
      "path": "AidboxWorkflow.outcomeReason.data",
      "short": "Additional data related to the outcome.",
      "extension": [ {
        "url": "http://health-samurai.io/fhir/core/StructureDefinition/custom-type",
        "valueCode": "any"
      } ]
    } ]
  },
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource"
}