Treating water for medical or cosmetic purposes