june.distributors.hospital_distributor.HospitalDistributor¶
-
class
june.distributors.hospital_distributor.
HospitalDistributor
(hospitals: june.groups.hospital.Hospitals, medic_min_age: int, patients_per_medic: int, healthcare_sector_label: Optional[str] = None) Distributes people to work as health care workers in hospitals
#TODO: sub sectors of doctors and nurses should be found Healthcares sector 2211: Medical practitioners 2217: Medical radiographers 2231: Nurses 2232: Midwives
- hospitals:
hospitals to populate with workers
- medic_min_age:
minimum age to qualify as a worker
- patients_per_medic:
ratio of patients per medic
- healthcare_sector_label:
string that characterizes the helathcare workers
-
__init__
(hospitals: june.groups.hospital.Hospitals, medic_min_age: int, patients_per_medic: int, healthcare_sector_label: Optional[str] = None) - hospitals:
hospitals to populate with workers
- medic_min_age:
minimum age to qualify as a worker
- patients_per_medic:
ratio of patients per medic
- healthcare_sector_label:
string that characterizes the helathcare workers
-
assign_closest_hospitals_to_super_areas
(super_areas)
-
distribute_medics_from_world
(people: List[Person]) Randomly distribute people from the world to work as medics for hospitals, useful if we don’t have data on where do people work. It will still match the patients to medic ratio and the minimum age to be a medic.
- people:
list of Persons in the world
-
distribute_medics_to_hospitals
(super_area: june.geography.geography.SuperArea) Distribute medics to hospitals within a super area Parameters ———- super_area:
super area to distribute medics
-
distribute_medics_to_super_areas
(super_areas: june.geography.geography.SuperAreas) Distribute medics to super areas, flow data is necessary to find medics in the super area according to their sector.
- super_areas:
object containing all the super areas to distribute medics
-
classmethod
from_file
(hospitals, config_filename=PosixPath('/home/sadie/JUNE/configs/defaults/distributors/hospital_distributor.yaml'))
-
get_hospitals_in_super_area
(super_area: june.geography.geography.SuperArea) → List[Hospital] From all hospitals, filter the ones placed in a given super_area
- super_area:
super area