Doctors are being urged to consider a patient's age before deciding if surgery is worthwhile.