Core fundamentals ¶
Use of @
with Sites, Positions ¶
@
is a meta-hint currently used for Sites and Positions.
For Sites it’s, (eg. Foo Hospital @51), it indicates the matching customer id from quickbooks. This meta-data helps links Wheniwork Sites & to their corresponding Customer record in Quickbooks.
For Positions, if a position label is suffixed with a @ (eg. FooExam@) it means the position is private, for use by Admins, and not to be shown to managers. This acts globaly, so although we have the ability now to toggle positions visibile to hospitals, this global filtering means we don’t have to hide these positions for each geo location.
Seeded Positions ¶
id: 0, name: ‘Cancel’ id: 1, name: ‘None’
Core seeds these positions so the ID is consistent between sandbox and production. We cannot strictly trust Wheniwork to keep these IDs, since a position can easily be deleted by a user. So having something that we control & never changes was important.
In addition, labeling a shift as ‘Cancel/ed’ in Wheniwork has no special meaning, the shift would still be visibile. Instead when a shift is canceled in Wheniwork, the shift record is hard deleted.
‘None’ is a fallback for a no-position shift, although in practice this turned out not to happen once Core started driving the shift creation process since every shift is required to have a selected position.