Therapy program selection based on patient state