refractoring patient and whenever_task models