digital-fuesim-manv icon indicating copy to clipboard operation
digital-fuesim-manv copied to clipboard

Improvement: Personnel can only (pre-)triage one patient at a time

Open lukasrad02 opened this issue 1 year ago • 0 comments

At the moment, (per-)triage ("triage" in the following) is handled just like regular treatment of patients, meaning that a single personnel can triage multiple patients at the same time and it takes 2 minutes of treatment until the triage of a patient is considered to be done.

It would be more realistic if a personnel can only triage one patient at a time but the triage would only take 1 minute.

This can be achieved by dropping getCateringStatus in shared/src/store/action-reducers/utils/calculate-treatments.ts which makes untriaged (white) patients to be considered yellow for treatment capacity, adding white to CatersFor in the same file and adding a limitation of a single patient if catersFor.white === 1 in couldCaterFor in the file.

Another option would be to add a white property to (Personnel | Material).canCaterFor, but this would require more refactoring, as white shall be considered exclusive (CanCaterFor.logicalOperator = 'or'), while the other statuses may still be cumulative ('and').

lukasrad02 avatar Feb 28 '23 09:02 lukasrad02