modified managetask_medical_schedule