At present, each user session maintains a cache of colours used for Workflow - Scheduling and Workflow - Tasks.
These are obtained by querying:
- appointment types
- task types
- calendar block types
To improve performance provide a system wide cache of these that updates automatically when the corresponding types/clinicians update.