capacity to consent for treatment