A medical device (100) comprises a container receiver unit (110) configured to receive and hold a container (120), wherein the container (120) accommodates a pharmaceutical product (125) and comprises a first communication tag (130) configured to store information regarding the pharmaceutical product (125), a reader unit (140) configured to wirelessly read the information from the first communication tag (130), and a control unit (150) configured to control the medical device (100) based on the information read from the first communication tag (130). The medical device (100) further comprises an opening or a transparent window (165) allowing to at least partially see from the outside the container (120) inserted into the container receiver unit (110), wherein the reader unit (140) comprises a first antenna unit (142, 144), and the container (120) inserted into the container receiver unit (110) is located between (i) the opening or the transparent window (165) and (ii) the first antenna unit (142, 144).