Production line for the production of ophthalmic lenses, in particular contact lenses such as soft contact lenses, the production line comprising - a manufacturing module in which the ophthalmic lenses are manufactured, - an extraction and treatment module for the extraction and chemical treatment of the ophthalmic lenses manufactured in the manufacturing module, - an inspection module in which the ophthalmic lenses manufactured are inspected, and - a packaging module in which the ophthalmic lenses which have been identified by the inspection module as being acceptable are packed into primary packages, wherein interfaces are arranged at fixed locations between the manufacturing module, the extraction module, the inspection module and the packaging module, and wherein the manufacturing module comprises a plurality of manufacturing stations (300, 301, 302, 310, 320, 321, 322, 330, 331, 340, 341, 342, 350, 351, 352) for manufacturing the ophthalmic lenses, with at least one of these manufacturing stations (310; 320, 321, 322, 330, 331) being configured to apply a lens identification code (70, 71, 72) to the respective ophthalmic lens, the lens identification code (70, 71, 72) including information indicative of the type of the respective ophthalmic lens manufactured, wherein either the inspection module or the packaging module includes a lens detection station (502, 604) configured to read the lens identification code (70, 71, 72) applied to the respective ophthalmic lens and to detect the type of the ophthalmic lens from the lens identification code (70, 71, 72) read from the respective ophthalmic lens in order to determine whether the type of ophthalmic lens detected actually is the type of ophthalmic lens which is expected to be detected by the lens detection station (502, 604) at that time. - a manufacturing module in which the ophthalmic lenses are manufactured, - an extraction and treatment module for the extraction and chemical treatment of the ophthalmic lenses manufactured in the manufacturing module, - an inspection module in which the ophthalmic lenses manufactured are inspected, and - a packaging module in which the ophthalmic lenses which have been identified by the inspection module as being acceptable are packed into primary packages, wherein interfaces are arranged at fixed locations between the manufacturing module, the extraction module, the inspection module and the packaging module, and wherein the manufacturing module comprises a plurality of manufacturing stations (300, 301, 302, 310, 320, 321, 322, 330, 331, 340, 341, 342, 350, 351, 352) for manufacturing the ophthalmic lenses, with at least one of these manufacturing stations (310; 320, 321, 322, 330, 331) being configured to apply a lens identification code (70, 71, 72) to the respective ophthalmic lens, the lens identification code (70, 71, 72) including information indicative of the type of the respective ophthalmic lens manufactured, wherein either the inspection module or the packaging module includes a lens detection station (502, 604) configured to read the lens identification code (70, 71, 72) applied to the respective ophthalmic lens and to detect the type of the ophthalmic lens from the lens identification code (70, 71, 72) read from the respective ophthalmic lens in order to determine whether the type of ophthalmic lens detected actually is the type of ophthalmic lens which is expected to be detected by the lens detection station (502, 604) at that time.