module documentation

The views module in the dataexplorer app mostly handles the DashboardView, which takes care of initializing the complex forms.DashboardForm, passing the cleaned values to all the filtering functions in the query module to finally pass the queried information to the context variable that is rendered into the HTML response.

Class DashboardView Use the forms.DashboardForm and the patients.models.Patient model along with the query functions to extract the requested information from the database and render it into the HTML response displaying the lymphatic patterns of progression.
Function dashboard_AJAX_view View that receives JSON data from the AJAX request and cleans it using the same method as the class-based DashboardView.
Function help_view Simply display the dashboard help text.
Function transform_np_to_lists If stats contains any values that are of type np.ndarray, then they are converted to normal lists.
Variable logger Undocumented
def dashboard_AJAX_view(request):

View that receives JSON data from the AJAX request and cleans it using the same method as the class-based DashboardView.

def help_view(request):

Simply display the dashboard help text.

Returns
HttpResponseUndocumented
def transform_np_to_lists(stats):

If stats contains any values that are of type np.ndarray, then they are converted to normal lists.

Parameters
stats:Dict[str, Any]Undocumented
Returns
Dict[str, Any]Undocumented
logger =

Undocumented