It would make sense to have a 'plan group' concept for related TASK_PLANs that are designed to execute together, either for a team (multiple performers) or a single performer (multiple component plans) or any combination.
The EXTERNAL_PLAN (rename to LINKED_PLAN) TASK subtype can only link to a Plan known in the Plan Group.
Data for a PLAN GROUP would include:
Can there be a TASK_PLAN with no PLAN_GROUP?
What is an Order Set: a design level concept from a service catalogue, consisting of Instruction archetypes / templates + potentially Task Plan or Plans, if a Team implicated.
Order catalogue concept:
General picture of order sets:
Need better criteria for whether Task Plan goes into EHR, and where.
Need to better describe allocation concept.
How queries for 'current state' of Task Plan work (also Team Plan).
Need a queryable representation of patient care context, including:
It should be possible to reference these facts from with a Task Plan.
simple model is preferred - attach only to Task Plan?
at least repetition period; max repetitions (ex. chemo); while condition?
Some kinds of 'tasks'
Alternative to single Task Plan 'definition': setup, main, cleanup, all of type TASK_GROUP - would address task plans with that kind of structure, and make repetition clearer.
Training_level - what granularity: better on a per Task level?
Task Plans with timing need to be adjustable for ward-specific timing
Indications - on Task Plan or Task (or both)?
How to specify absolute times on Task Def, e.g. 'Monday, Tuesday, Wednesday'; 13:00, etc?
Should TASK_PARTICIPATION.roles be multiple? Probably yes.
Retry concept; should tasks be marked as 'retryable'?
Preparatory Task - do at -2d before main Task: should be solvable with current model.
Lifecycle
Could a Group be signed off or Cancelled? IHC approach: this is just a UI short cut for signoff or cancellation of all remaining Tasks in the Group
Better idea of rolled-up state of lifecycle state for Task Group (Bjorn)
i.e. add an 'active' state that results if there are any planned or available Tasks remaining in Group.
Individual worker's Work list or schedule is the result of all current Task Plans that he/she is / can be included on; merged and possibly optimised.
Task Scheduling - not in scope, but describe the need. Schedule building requires examination of full resources needed for work items.
Patient's schedule is merge of all Task Plans targetted to the patient, possibly optimised for time and resources.
How to group Instructions from same Order set at runtime
One Instruction can create multiple Task Plans, e.g. draw blood ; send to lab etc