Closed odunbar closed 4 years ago
What are the specific differences between the way we model contacts between health care workers and hospitalized patients, and in ordinary interactions within the community?
I have added a simple example to show the health service in action with discharging, admitting, demonstrating the limit capacity and putting people on a waiting list.
I believe it now ready for merge.
To resolve #53 This implements a
HealthService
class that modifies the contact network of apopulation
so that nodes may be identified always with patients in the solvers. It's purpose is to tackle the administration of the networks, so that theKineticModel
and theMasterEquations
do not have to know about the movements of nodes due to hospitalizations, for example do not require solving extra equations for node categories.Another benefit is that it works by modification of the
edges
of a network and not thenodes
. Therefore for new contact networks the hospitalization do not perturb any node data or diagram data used by theKineticModel
which was missed before (and therefore a bug). The only edge data which needs to be set (very) carefully is the new contact duration weights.The current implementation still requires an example and testing. hence is WIP, also I had to implement quite a delicate system for weighting due to the contact duration weights, There may be an external solution to the
HealthService
to tackle this