views.py¶
This module contains all views used by the patient self or by other healhtpersons that administrate patients.
Class definitions:
-
apps.healthperson.patient.views.get_patient(request, patient_session_id)[source]¶ Helper function for getting the patient from a patient_session_id
- Args:
- request: the request instance
- patient_session_id: the patient_session_id coupled to the patient
- Returns:
- the patient instance
-
class
apps.healthperson.patient.views.PatientBaseView(**kwargs)[source]¶ Bases:
django.views.generic.base.ViewBase view which adds the patient by using the patient_session_id or logged in user
-
class
apps.healthperson.patient.views.PatientIndexView(**kwargs)[source]¶ Bases:
apps.base.views.BaseIndexTemplateViewView which shows the homepage of the patient
-
class
apps.healthperson.patient.views.PatientGenericView(**kwargs)[source]¶ Bases:
apps.healthperson.patient.views.PatientBaseView,django.views.generic.base.TemplateViewGeneric view based on the patient baseview and TemplateView
-
class
apps.healthperson.patient.views.PatientNotificationView(**kwargs)[source]¶ Bases:
apps.healthperson.patient.views.PatientGenericViewShow the notification settings used by a different roles
-
class
apps.healthperson.patient.views.PatientNotificationEditView(**kwargs)[source]¶ Bases:
apps.healthperson.patient.views.PatientBaseView,core.views.FormViewEdit the notification settings used by a patient
-
form_class¶ alias of
PatientNotificationEditForm
-
-
class
apps.healthperson.patient.views.PatientProfileView(**kwargs)[source]¶ Bases:
apps.healthperson.patient.views.PatientGenericViewShows the profile information of a patient used by a multiple roles
-
class
apps.healthperson.patient.views.PatientProfileEditView(**kwargs)[source]¶ Bases:
apps.healthperson.patient.views.PatientBaseView,core.views.FormViewEdit the profile information of a patient used by a patient
-
form_class¶ alias of
PatientProfileEditForm
-
-
class
apps.healthperson.patient.views.PatientAppointmentsView(**kwargs)[source]¶ Bases:
apps.healthperson.patient.views.PatientBaseView,django.views.generic.base.TemplateViewShow the appointments information of a patient used by a healthprofessional
-
class
apps.healthperson.patient.views.PatientPersonaliaView(**kwargs)[source]¶ Bases:
apps.healthperson.patient.views.PatientBaseView,django.views.generic.base.TemplateViewShow the profile information of a patient used by a patient admins
-
class
apps.healthperson.patient.views.PatientMessagesView(**kwargs)[source]¶ Bases:
apps.healthperson.patient.views.PatientBaseView,django.views.generic.base.TemplateViewShow the messages sent to a patient used by healthprofessionals
-
class
apps.healthperson.patient.views.PatientReportsView(**kwargs)[source]¶ Bases:
apps.healthperson.patient.views.PatientBaseView,django.views.generic.base.TemplateViewShow the report for a patient used by healthprofessionals
-
class
apps.healthperson.patient.views.PatientControlesView(**kwargs)[source]¶ Bases:
apps.healthperson.patient.views.PatientBaseView,django.views.generic.base.TemplateViewShow the finished controls for a patient used by healthprofessionals
-
class
apps.healthperson.patient.views.PatientFreqControlView(**kwargs)[source]¶ Bases:
apps.healthperson.patient.views.PatientBaseView,django.views.generic.base.TemplateViewShow the control and blood taken frequencies for a patient used by patient admins
-
class
apps.healthperson.patient.views.PatientPersonaliaEditView(**kwargs)[source]¶ Bases:
apps.healthperson.patient.views.PatientBaseView,core.views.FormViewEdit the personalia of a patient used by patient admins.
- ..Note::
- Managers use a different form for editing, including options for resetting the password.
-
form_class¶ alias of
PatientPersonaliaEditForm
-
class
apps.healthperson.patient.views.QuestionnaireForDiagnose(**kwargs)[source]¶ Bases:
django.views.generic.base.ViewReturns a JSON list of questionnaires available for a diagnose
-
class
apps.healthperson.patient.views.PatientFreqControlEditView(**kwargs)[source]¶ Bases:
apps.healthperson.patient.views.PatientBaseView,core.views.FormViewEdit the patient control and blood take frequency used by patient admins
-
form_class¶ alias of
PatientDiagnoseControleEditForm
-
-
class
apps.healthperson.patient.views.PatientSearchView(**kwargs)[source]¶ Bases:
core.views.FormViewSearch for patients view used by patient admins
-
form_class¶ alias of
PatientSearchForm
-
-
class
apps.healthperson.patient.views.SearchView(**kwargs)[source]¶ Bases:
django.views.generic.base.TemplateViewSearch view for in the homepage of the patient allows searching for answers on questionnaires and messages
-
get_inner_context(request, patient, model_display_name)[source]¶ Gets the questionnaires to be included into the results.
- Args:
- request: the current request
- patient: the patient who is searching
- model_display_name: the model_display_name of the questionnaire to search for.
- Returns:
- a list of questionnaires
-
-
class
apps.healthperson.patient.views.HealthPatientAddView(**kwargs)[source]¶ Bases:
apps.healthperson.views.BaseAddViewClass based view for adding a new patient used by patient admins
-
form_class¶ alias of
PatientAddForm
-
-
class
apps.healthperson.patient.views.PatientRemoveView(**kwargs)[source]¶ Bases:
apps.healthperson.patient.views.PatientBaseView,django.views.generic.base.TemplateViewClass based view for removing a patient used by patient admins