models.py

This module contains all the default questionnaire models

Class definitions:

class apps.questionnaire.default.models.StartQuestionnaire(*args, **kwargs)[source]

Bases: apps.questionnaire.models.QuestionnaireBase

The start/first questionnaire for a normal control

Parameters:
  • id (AutoField) –
  • request_step_id (ForeignKey to RequestStep) –
  • current_status (CharField) – choices=[good, less_good, bad, really_bad, terrible]
  • problems (TextField) –
  • problem_severity (IntegerField) – choices=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
  • hospital_visit (CharField) – choices=[no, yes_urgent_care, yes_intestional_clinic, yes_other_specialist]
display_template
Returns:
The template path & name to be used for showing the details page for the filled in data for this questionnaire.
class apps.questionnaire.default.models.StartUrgentQuestionnaire(*args, **kwargs)[source]

Bases: apps.questionnaire.models.QuestionnaireBase

The start/first questionnaire for a urgent control

Parameters:
  • id (AutoField) –
  • request_step_id (ForeignKey to RequestStep) –
  • appointment_period (CharField) – choices=[tomorrow, within_3_days, this_week]
display_template
Returns:
The template path & name to be used for showing the details page for the filled in data for this questionnaire.
class apps.questionnaire.default.models.UrgentProblemQuestionnaire(*args, **kwargs)[source]

Bases: apps.questionnaire.models.QuestionnaireBase

The second part for the urgent control procedure.

Parameters:
  • id (AutoField) –
  • request_step_id (ForeignKey to RequestStep) –
  • problems (TextField) –
  • problem_severity (IntegerField) – choices=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
display_template
Returns:
The template path & name to be used for showing the details page for the filled in data for this questionnaire.
class apps.questionnaire.default.models.FinishQuestionnaire(*args, **kwargs)[source]

Bases: apps.questionnaire.models.QuestionnaireBase

Finish/last questionnaire for the normal control

Parameters:
  • id (AutoField) –
  • request_step_id (ForeignKey to RequestStep) –
  • appointment (CharField) – choices=[no, yes_phone_nurse, yes_phone_doctor, yes_nurse, yes_doctor]
  • appointment_period (CharField) – choices=[within_4_weeks, within_2_weeks, this_week]
  • appointment_preference (ChoiceOtherField) – choices=[None, other]
  • blood_sample (ChoiceOtherField) – choices=[umcg, martini_ziekenhuis, lab_noord, other]
  • blood_sample_date (DateField) –
display_template
Returns:
The template path & name to be used for showing the details page for the filled in data for this questionnaire.