Health-tech companies and hospitals are using AI to build staff schedules and cut the time clinicians spend on paperwork.