Treatment of non conformity

Hi, please what are the procedures when we had anomalies in the raw material(for medical device) in process and we put it as non conforme?

Thank you