The invention provides a process technology of the pharmaceutical wastewater, which has the steps as follows in turns: preprocess system, ozone disinfection, softening, cartridge filtration, one-pass RO, two-pass RO, ozone disinfection, 254nm ultraviolet disinfection, EDI, active carbon filtration, 185nm ultraviolet disinfection and terminal filter. The invention adopts the disinfecting method combining the ozone and the ultraviolet radiation. The 254nm ultraviolet disinfection can not only function as disinfection but also can remove the remnant ozone and save the ozone removing equipments. The invention adopts EDI instead of the mixed bed resin to realize regeneration while exchanging and produce pharmaceutical water with high quality continuously, and the amount of the ion exchange resin only equals to 5 per cent of the traditional process. Compared with the mixed bed resin, the EDI can realize the continuous effluent, save the regeneration time of the resin and increase the utilization rate of the equipments. The invention combines the EDI and the RO, which effectively reduces the raw water hardness and is beneficial for the EDI membrane stack to operate stably for a long period; at the same time, the invention is beneficial for the fresh chamber water to dissociate and produce enough H+ and OH+, thereby realizing the electrochemical regeneration of the ion exchange resin.