A coded cartridge holder (200, 300) for use with a drug delivery device (100) is provided. The cartridge holder (200, 300) includes a fastener (212, 216, 308, 310, 402, 404) that becomes operative based in part on a length of a cartridge (120) or a diameter of the cartridge (120). In one embodiment, the cartridge holder (200, 300) is coupled to the drug delivery device (100). The cartridge holder (200, 300) comprises a first blocking feature (202, 204). The drug delivery device (100) includes a cartridge detector (206, 208, 210) comprising a second blocking feature (210). This feature (210) may be a pin (210), for engagement with the first blocking feature (202, 204) of the cartridge holder (200, 300) when the cartridge (120) acts on the cartridge detector (206, 208, 210). The cartridge holder (200, 300) may further include a fastening mechanism configured to fasten the cartridge holder (200, 300) to the drug delivery device (100) only when the second blocking feature (210) engages the first blocking feature (202, 204).薬物送達デバイス(100)と一緒に使用するためのコード化されたカートリッジホルダ(200、300)が提供される。カートリッジホルダ(200、300)は、部分的に、カートリッジ(120)の長さ又はカートリッジ(120)の直径に基づいて操作可能になる締結具(212、216、308、310、402、404)を含む。一つの実施態様において、カートリッジホルダ(200、300)は、薬物送達デバイス(100)に連結される。カートリッジホルダ(200、300)は、第一のブロッキング機能(202、204)を含む。薬物送達デバイス(100)は、第二のブロッキング機能(210)を含むカートリッジ検出器(206、208、210)を含有する。この機能(210)は、カートリッジ(120)がカートリッジ検出器(206、208、210)に作用するとき、カートリッジホルダ(200、300)の第一のブロッキング機能(202、204)と係合するためのピン(210)であってもよい。カートリッジホルダ(200、300)は、更に、第二のブロッキング機能(210)が第一のブロッキング機能(202、204)と係合するとき、カートリッジホルダ(200、300)を薬物送達デバイス(100)にのみ締結するように構成された締結機構を含み得る。【選択図】図7