1. Device (2, 3), comprising: a connecting unit (20-1, 20-2; 31) for detachable connection of the device (2) to a medical device (1) for supplying a drug or for detachable installation in it at least parts of a medical device (1), wherein said medical device is an injection device or an infusion device, one or more optical sensors (25, 26) for determining information related to the condition and / or use of said medical device (1), said definition does not contain character recognition. 2. A device (2, 3) according to claim 1, wherein said information related to the condition and / or use of said medical device (1) contains at least information about a selected dose of a drug to be supplied by said medical device. A device (2, 3) according to any one of claims 1 and 2, wherein said medical device is an injection syringe or an infusion pump. The device (2, 3) according to claim 1, in which the aforementioned one or more optical sensors (25, 26) comprise at least one optical sensor (25), configured to obtain an image of a part that carries information, or a part that displays ( 13) information of said medical device (1), wherein said device (2, 3) is configured to recognize characters from said received image. The device according to claim 4, wherein said device is further configured to capture at least two images of said information carrying part, or information displaying part (13), said1. Устройство (2, 3), содержащее:соединительный блок (20-1, 20-2; 31) для разъемного присоединения устройства (2) к медицинскому устройству (1) для подачи лекарственного средства или для разъемной установки в него по меньшей мере части медицинского устройства (1), при этом упомянутое медицинское устройство является инъекционным устройством или инфузионным устройством, иодин или более оптических датчиков (25, 26) для определения информации, относящейся к состоянию и/или использованию упомянутого медицинского устройства (1), причем упомянутое определение содержит распознавание символов