Api reference
components.health_programs.public.business_logic ¶
actions ¶
health_program_override ¶
update_health_program_override_for_user ¶
update_health_program_override_for_user(
user,
program_slug,
overridden_segment_slug,
custom_program_id,
dedicated_time,
commit=True,
)
Update or create the health program override for a user given some parameters.
Source code in components/health_programs/public/business_logic/actions/health_program_override.py
health_program_progress ¶
mark_health_program_as_ready ¶
mark_health_program_as_ready(
user,
program_slug,
coach_name,
coach_picture_url,
has_booked_appointment,
commit=True,
)
Source code in components/health_programs/public/business_logic/actions/health_program_progress.py
queries ¶
health_program_override ¶
get_all_health_program_overrides ¶
Source code in components/health_programs/public/business_logic/queries/health_program_override.py
get_health_program_override ¶
Source code in components/health_programs/public/business_logic/queries/health_program_override.py
health_program_progress ¶
get_all_user_health_program_data ¶
Get all health program progresses for a user.
Source code in components/health_programs/public/business_logic/queries/health_program_progress.py
get_all_user_health_program_progresses ¶
Get all health program progresses for a user.
Source code in components/health_programs/public/business_logic/queries/health_program_progress.py
get_health_program_progress ¶
Get the health program progress for a user and a program.
Source code in components/health_programs/public/business_logic/queries/health_program_progress.py
components.health_programs.public.controllers ¶
health_program ¶
HealthProgramController ¶
Bases: BaseController
get_health_programs_override ¶
Source code in components/health_programs/public/controllers/health_program.py
get_health_programs_progress_for_sync ¶
Source code in components/health_programs/public/controllers/health_program.py
post_health_program_progress ¶
Source code in components/health_programs/public/controllers/health_program.py
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 | |
components.health_programs.public.entities ¶
health_program_complete_data ¶
HealthProgramCompleteData
dataclass
¶
HealthProgramCompleteData(
program_slug,
program_name,
program_id,
custom_program_id,
overridden_segment_slug,
program_status,
preferred_notification_time_in_minutes,
tasks,
current_day,
survey_source_type,
last_updated_at,
assigned_coach_medical_admin_id,
dedicated_time,
)
Bases: DataClassJsonMixin
from_health_program_models
classmethod
¶
Source code in components/health_programs/public/entities/health_program_complete_data.py
health_program_override ¶
HealthProgramCustomTask
dataclass
¶
HealthProgramOverrideData
dataclass
¶
HealthProgramOverrideData(
program_slug,
segment_slug,
custom_program_id,
custom_tasks,
dedicated_time,
)
Bases: DataClassJsonMixin
from_health_program_override_model
classmethod
¶
Source code in components/health_programs/public/entities/health_program_override.py
health_program_progress ¶
HealthProgramProgressData
dataclass
¶
HealthProgramProgressData(
program_slug,
program_name,
program_status,
preferred_notification_time_in_minutes,
tasks,
current_day,
survey_source_type,
last_updated_at,
assigned_coach_medical_admin_id,
)
Bases: DataClassJsonMixin
from_health_program_progress_model
classmethod
¶
Source code in components/health_programs/public/entities/health_program_progress.py
HealthProgramTask
dataclass
¶
HealthProgramTask(
id,
status,
name,
day,
exercise_titles,
first_task_activity_date,
last_task_activity_date,
)
Bases: DataClassJsonMixin