A Two-Phase ASP Encoding for Solving Rehabilitation Scheduling