PackagesCanonicalsLogsProblems
    Packages
    io.health-samurai.sdc.r5@0.2601.0
    http://health-samurai.io/fhir/sdc/StructureDefinition/SDCWorkflow
description: Workflow definition with status, params, and context for SDC forms.
package_name: io.health-samurai.sdc.r5
derivation: specialization
name: SDCWorkflow
type: SDCWorkflow
elements:
  params: {short: Workflow parameters schema definition, index: 0}
  title: {type: string, short: Title of the workflow, index: 6}
  workflow: {type: string, short: Workflow symbolic name, index: 3}
  status:
    type: string
    short: 'Workflow lifecycle status. Change via RPC: cancel-wf, complete-wf, cancel-task, complete-task.'
    constraint:
      enum-10: {human: 'Status must be one of: new, in-progress, canceled, completed, in-amendment, amended', severity: error, expression: '%context.subsetOf(''new'' | ''in-progress'' | ''canceled'' | ''completed'' | ''in-amendment'' | ''amended'')'}
    index: 4
  order: {type: string, short: Order of items (array of item keys), array: true, index: 5}
  items: {short: Workflow items, index: 2}
  ctx:
    type: BackboneElement
    short: Workflow context, also accessible from tasks
    index: 8
    elements:
      encounter:
        type: BackboneElement
        index: 9
        elements:
          id: {type: string, index: 10}
          resourceType: {type: string, index: 11}
          display: {type: string, index: 12}
      patient:
        type: BackboneElement
        index: 13
        elements:
          id: {type: string, index: 14}
          resourceType: {type: string, index: 15}
          display: {type: string, index: 16}
      user:
        type: BackboneElement
        index: 17
        elements:
          id: {type: string, index: 18}
          resourceType: {type: string, index: 19}
          display: {type: string, index: 20}
  version: {type: decimal, short: Workflow version, index: 7}
  cancel-reason: {type: string, short: Reason why the workflow was canceled, index: 1}
package_version: 0.2601.0
class: resource
kind: resource
url: http://health-samurai.io/fhir/sdc/StructureDefinition/SDCWorkflow
base: http://hl7.org/fhir/StructureDefinition/DomainResource
version: 0.2601.0