patient class stuff