Open-eObs Mobile Controller Extensions

class nh_eobs_mental_health.models.nh_eobs_mobile_main.NHEobsMobileMain(pool, cr)[source]
static calculate_ews_class(clinical_risk)[source]
get_status_map_for_patient_ids(*args, **kwargs)[source]

Take a list of patient IDs and return the spells

Parameters:
  • cr – Odoo cursor
  • uid – user
  • patient_ids – list of patient IDs
  • context – Odoo context
Returns:

dict containing patient ID to status flag mapping

process_patient_list(*args, **kwargs)[source]

Process the patient list.

Parameters:
  • cr
  • uid
  • patient_list
  • context
Returns:

process_task_list(*args, **kwargs)[source]

Process the task list from nh.eobs.api.get_activities

Parameters:
  • cr – Odoo cursor
  • uid – user id
  • task_list – list of tasks from get_activities
  • context – Odoo context
Returns:

list of tasks with extra processing