The present invention relates to a dosing mechanism including: a body (2); and a disposable portion (3) that is removably attached to the body (2), in which the disposable portion (3) includes: a pump that sucks a medicine from a medicine vessel and discharges the medicine to a patient; a suction-side tube (33) that extends from the pump toward the medicine vessel; a discharge-side tube (34) that extends from the pump toward the patient; and a connector (331, 341) that is located at a front end of at least one of the suction-side tube (33) and the discharge-side tube (34), and the body (2) includes a sensor (24) in a position corresponding to the suction-side tube (33) or the discharge-side tube (34) attached to the body (2).本發明係關於一種給藥機構,其包含本體(2)、及可裝卸於本體(2)之即棄部(3),即棄部(3)包含:幫浦,其自藥劑容器吸引藥劑而向患者噴出;吸引側管(33),其自幫浦向藥劑容器側延伸;噴出側管(34),其自幫浦向患者側延伸;及連接器(331,341),其位於吸引側管(33)或噴出側管(34)之至少一者之前端,本體(2)係於與安裝於本體(2)之吸引側管(33)或噴出側管(34)對應之位置具備感測器(24)。