You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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').
The text was updated successfully, but these errors were encountered:
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
inshared/src/store/action-reducers/utils/calculate-treatments.ts
which makes untriaged (white) patients to be considered yellow for treatment capacity, addingwhite
toCatersFor
in the same file and adding a limitation of a single patient ifcatersFor.white === 1
incouldCaterFor
in the file.Another option would be to add a
white
property to(Personnel | Material).canCaterFor
, but this would require more refactoring, aswhite
shall be considered exclusive (CanCaterFor.logicalOperator = 'or'
), while the other statuses may still be cumulative ('and'
).The text was updated successfully, but these errors were encountered: