the 'locations' collection has a 'patients' subcollection for each location where it contains a reference to all the patients who went through that location.
calculate,
The hotspot index of a location = number of patients came to that location ie(patients.size) / (sum of all locations patient size)
the 'locations' collection has a 'patients' subcollection for each location where it contains a reference to all the patients who went through that location. calculate, The hotspot index of a location = number of patients came to that location ie(patients.size) / (sum of all locations patient size)
{the index should be a number between 0 and 1}