Factory for the production of medicines