Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lukasrad02 opened this issue Feb 28, 2023 · 0 comments
Open
Labels
enhancement New feature or request shared Issues mainly related to shared

Comments

@lukasrad02
Copy link
Contributor

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 lukasrad02 added enhancement New feature or request shared Issues mainly related to shared labels Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request shared Issues mainly related to shared
Projects
None yet
Development

No branches or pull requests

1 participant