Advice and action for a maze of medical rules