A medical delivery device may include at least one electronic sensor and a decoding module. The at least one electronic sensor and the decoding module are configured to (i) identify a coding feature of a drug reservoir inserted in the medical delivery device and (ii) determine information related to the drug reservoir based on the identified coding feature.