Oxygen generator for medical purposes