Pharmaceutical water purification process