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

Personnel shared between patients is perfered over personnel of higher priority

Open Nils1729 opened this issue 1 year ago • 0 comments

This is an anomaly in the assignment of treatments in simulated regions.

How to reproduce

Given two simulated regions A and B with each one leadership behavior and one treatment behavior.

  • Add 2 yellow (SK II) patients to each region.
  • Personnel: Add 1 GF and x Notartz to each region with x >= 3.
  • To region B, add 1 RettSan
  • Start the exercise

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.

Nils1729 avatar Apr 13 '23 12:04 Nils1729