A medical delivery device (300, 1200) comprising: - a drug reservoir holder (304, 1204) operable to receive a drug reservoir (320, 1000, 1002, 1006, 1008); - a detector (100, 500, 600, 700, 904) for detecting information related to the drug reservoir (320, 1000, 1002, 1006, 1008), the detector (100, 500, 600, 700, 904) being configured to be operable to determine an electrical property related to a coded material (120, 502, 606, 708, 900) disposed on the drug reservoir (320, 1000, 1002, 1006, 1008), wherein the coded material (120, 502, 606, 708, 900) comprises at least one circuit (122, 400, 800, 802, 804a-e, 902, 906, 908) and, based at least on the determined electrical property, to determine information related to the drug reservoir (320, 1000, 1002, 1006, 1008), wherein the detector (100, 500, 600, 700, 904) comprises a processor and a data storage comprising instructions executable by the processor, wherein, when a user attempts to load the drug reservoir (320, 1000, 1002, 1006, 1008) into the medical delivery device (300, 1200), the instructions are further executable by the processor to, based on the determined information, - identify the drug reservoir (320, 1000, 1002, 1006, 1008), determine whether the drug reservoir (320, 1000, 1002, 1006, 1008) is intended for use with the medical delivery device (300, 1200), characterized in that the instructions are further executable by the processor to - control dose selection based on the identified drug reservoir (320, 1000, 1002, 1006, 1008), wherein controlling dose selection comprises preventing dose selection when the identified drug reservoir (320, 1000, 1002, 1006, 1008) is not intended for use with the medical delivery device (300, 1200), and setting a maximum dose or setting a minimum dose when the identified drug reservoir (320, 1000, 1002, 1006, 1008) is intended for use with the medical delivery device (300, 1200) and to - control dispensing of the drug based on the identified drug reservoir (320, 1000, 1002, 1006, 1008), wherein controlling dispensing of the drug based on the identified drug reservoir (320, 1000, 1002, 1006, 1008) comprises preventing dispensing of the drug when the identified drug reservoir (320, 1000, 1002, 1006, 1008) is not intended for use with the medical delivery device (300, 1200) and controlling a dispense speed and a required dispense force when the identified drug reservoir (320, 1000, 1002, 1006, 1008) is intended for use with the medical delivery device (300, 1200). - a drug reservoir holder (304, 1204) operable to receive a drug reservoir (320, 1000, 1002, 1006, 1008); - a detector (100, 500, 600, 700, 904) for detecting information related to the drug reservoir (320, 1000, 1002, 1006, 1008), the detector (100, 500, 600, 700, 904) being configured to be operable to determine an electrical property related to a coded material (120, 502, 606, 708, 900) disposed on the drug reservoir (320, 1000, 1002, 1006, 1008), wherein the coded material (120, 502, 606, 708, 900) comprises at least one circuit (122, 400, 800, 802, 804a-e, 902, 906, 908) and, based at least on the determined electrical property, to determine information related to the drug reservoir (320, 1000, 1002, 1006, 1008), wherein the detector (100, 500, 600, 700, 904) comprises a processor and a data storage comprising instructions executable by the processor, wherein, when a user attempts to load the drug reservoir (320, 1000, 1002, 1006, 1008) into the medical delivery device (300, 1200), the instructions are further executable by the processor to, based on the determined information, - identify the drug reservoir (320, 1000, 1002, 1006, 1008), determine whether the drug reservoir (320, 1000, 1002, 1006, 1008) is intended for use with the medical delivery device (300, 1200), characterized in that the instructions are further executable by the processor to - control dose selection based on the identified drug reservoir (320, 1000, 1002, 1006, 1008), wherein controlling dose selection comprises preventing dose selection when the identified drug reservoir (320, 1000, 1002, 1006, 1008) is not intended for use with the medical delivery device (300, 1200), and setting a maximum dose or setting a minimum dose when the identified drug reservoir (320, 1000, 1002, 1006, 1008) is intended for use with the medical delivery device (300, 1200) and to - control dispensing of the drug based on the identified drug reservoir (320, 1000, 1002, 1006, 1008), wherein controlling dispensing of the drug based on the identified drug reservoir (320, 1000, 1002, 1006, 1008) comprises preventing dispensing of the drug when the identified drug reservoir (320, 1000, 1002, 1006, 1008) is not intended for use with the medical delivery device (300, 1200) and controlling a dispense speed and a required dispense force when the identified drug reservoir (320, 1000, 1002, 1006, 1008) is intended for use with the medical delivery device (300, 1200).