utils.py¶
Module providing reminder functions.
Note
The main function on the bottom should be run daily via a deamon or other solution around 9:00.
Function definitions:
-
apps.service.utils.send_questionnaire_reminder_sms(patient)[source]¶ Send a sms reminder to a patient who has not filled in a questionnaire
-
apps.service.utils.send_questionnaire_fillin_sms(patient)[source]¶ Send a sms and/or email message to a patient that a new series of questionnaires that should be filled in
-
apps.service.utils.send_urgent_report_reminder(urgent_questionnaire_request)[source]¶ Send a message to healthprofessional about an urgent control which he/she has not created a report for.
-
apps.service.utils.send_report_reminder(questionnaire_request)[source]¶ Send a message to healthprofessional about an controle which he/she has not created a report for.
-
apps.service.utils.remove_deleted_patients()[source]¶ Automatically remove patients that are set for deletion after 2 weeks
-
apps.service.utils.check_questionnaire_fillin_deadlines()[source]¶ Check if deadlines for filling in questionnaires are passed
-
apps.service.utils.insert_new_questionnaire_request_for_patient(patient)[source]¶ Add a new questionnaire request for a patient for periodic checking a patient.
-
apps.service.utils.insert_new_questionnaire_requests()[source]¶ Helper function for adding a new questionnaire request
-
apps.service.utils.check_unhandled_questionnaires()[source]¶ Check if there are unhandeld controls by healthprofessionals