Personnel shared between patients is perfered over personnel of higher priority #858
Labels
BP2022HG1 - Needs Discussion or Decisions
shared
Issues mainly related to shared
simulation
Issues related to the simulation logic
This is an anomaly in the assignment of treatments in simulated regions.
How to reproduce
Given two simulated regions
A
andB
with each one leadership behavior and one treatment behavior.x
Notartz to each region withx >= 3
.Observed behavior
After some time, treatment will be secured in region A with GF as leader, 2 Notartz treating each patient 100% and one treating each 50%.
In region B, GF is leader, the RettSan is treating each patient with 50% and one Notarzt does the same. Despite the two excess Notarzt, treatment will never be secured because the SK II patients need exclusive treatment.
Expected behavior
Because region B has more personnel than region A, and the latter one has secured treatment, one could assume region B should also secure treatment.
The underlying problem is in the
activities/reassign-treatment->findAssignablePersonnel
function. Because yellow needs a RettSan, the partial RettSan is preferred over exclusive Notarzt, even when exclusive treatment is required for securing.The text was updated successfully, but these errors were encountered: