{
"description": "Workflow definition with status, params, and context for SDC forms.",
"_filename": "StructureDefinition-SDCWorkflow.json",
"package_name": "io.health-samurai.sdc.r3",
"date": null,
"derivation": "specialization",
"publisher": null,
"fhirVersion": "3.0.2",
"name": "SDCWorkflow",
"abstract": false,
"type": "SDCWorkflow",
"experimental": null,
"resourceType": "StructureDefinition",
"title": null,
"package_version": "0.2601.0",
"status": "active",
"id": "9576b265-ea14-4e3a-a1f8-8b2bcf5835a5",
"kind": "resource",
"url": "http://health-samurai.io/fhir/sdc/StructureDefinition/SDCWorkflow",
"version": "0.2601.0",
"differential": {
"element": [ {
"id": "SDCWorkflow",
"max": "*",
"min": 0,
"path": "SDCWorkflow"
}, {
"id": "SDCWorkflow.params",
"max": "1",
"min": 0,
"path": "SDCWorkflow.params",
"short": "Workflow parameters schema definition",
"extension": [ {
"url": "http://health-samurai.io/fhir/core/StructureDefinition/additional-properties-custom-type",
"valueCode": "any"
} ]
}, {
"id": "SDCWorkflow.cancel-reason",
"max": "1",
"min": 0,
"path": "SDCWorkflow.cancel-reason",
"type": [ {
"code": "string"
} ],
"short": "Reason why the workflow was canceled"
}, {
"id": "SDCWorkflow.items",
"max": "1",
"min": 0,
"path": "SDCWorkflow.items",
"short": "Workflow items",
"extension": [ {
"url": "http://health-samurai.io/fhir/core/StructureDefinition/additional-properties-custom-type",
"valueCode": "any"
} ]
}, {
"id": "SDCWorkflow.workflow",
"max": "1",
"min": 0,
"path": "SDCWorkflow.workflow",
"type": [ {
"code": "string"
} ],
"short": "Workflow symbolic name"
}, {
"id": "SDCWorkflow.status",
"max": "1",
"min": 0,
"path": "SDCWorkflow.status",
"type": [ {
"code": "string"
} ],
"short": "Workflow lifecycle status. Change via RPC: cancel-wf, complete-wf, cancel-task, complete-task.",
"constraint": [ {
"key": "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')"
} ]
}, {
"id": "SDCWorkflow.order",
"max": "*",
"min": 0,
"path": "SDCWorkflow.order",
"type": [ {
"code": "string"
} ],
"short": "Order of items (array of item keys)"
}, {
"id": "SDCWorkflow.title",
"max": "1",
"min": 0,
"path": "SDCWorkflow.title",
"type": [ {
"code": "string"
} ],
"short": "Title of the workflow"
}, {
"id": "SDCWorkflow.version",
"max": "1",
"min": 0,
"path": "SDCWorkflow.version",
"type": [ {
"code": "decimal"
} ],
"short": "Workflow version"
}, {
"id": "SDCWorkflow.ctx",
"max": "1",
"min": 0,
"path": "SDCWorkflow.ctx",
"type": [ {
"code": "BackboneElement"
} ],
"short": "Workflow context, also accessible from tasks"
}, {
"id": "SDCWorkflow.ctx.encounter",
"max": "1",
"min": 0,
"path": "SDCWorkflow.ctx.encounter",
"type": [ {
"code": "BackboneElement"
} ]
}, {
"id": "SDCWorkflow.ctx.encounter.id",
"max": "1",
"min": 0,
"path": "SDCWorkflow.ctx.encounter.id",
"type": [ {
"code": "string"
} ]
}, {
"id": "SDCWorkflow.ctx.encounter.resourceType",
"max": "1",
"min": 0,
"path": "SDCWorkflow.ctx.encounter.resourceType",
"type": [ {
"code": "string"
} ]
}, {
"id": "SDCWorkflow.ctx.encounter.display",
"max": "1",
"min": 0,
"path": "SDCWorkflow.ctx.encounter.display",
"type": [ {
"code": "string"
} ]
}, {
"id": "SDCWorkflow.ctx.patient",
"max": "1",
"min": 0,
"path": "SDCWorkflow.ctx.patient",
"type": [ {
"code": "BackboneElement"
} ]
}, {
"id": "SDCWorkflow.ctx.patient.id",
"max": "1",
"min": 0,
"path": "SDCWorkflow.ctx.patient.id",
"type": [ {
"code": "string"
} ]
}, {
"id": "SDCWorkflow.ctx.patient.resourceType",
"max": "1",
"min": 0,
"path": "SDCWorkflow.ctx.patient.resourceType",
"type": [ {
"code": "string"
} ]
}, {
"id": "SDCWorkflow.ctx.patient.display",
"max": "1",
"min": 0,
"path": "SDCWorkflow.ctx.patient.display",
"type": [ {
"code": "string"
} ]
}, {
"id": "SDCWorkflow.ctx.user",
"max": "1",
"min": 0,
"path": "SDCWorkflow.ctx.user",
"type": [ {
"code": "BackboneElement"
} ]
}, {
"id": "SDCWorkflow.ctx.user.id",
"max": "1",
"min": 0,
"path": "SDCWorkflow.ctx.user.id",
"type": [ {
"code": "string"
} ]
}, {
"id": "SDCWorkflow.ctx.user.resourceType",
"max": "1",
"min": 0,
"path": "SDCWorkflow.ctx.user.resourceType",
"type": [ {
"code": "string"
} ]
}, {
"id": "SDCWorkflow.ctx.user.display",
"max": "1",
"min": 0,
"path": "SDCWorkflow.ctx.user.display",
"type": [ {
"code": "string"
} ]
} ]
},
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource"
}