The invention refers to an apparatus for controlling a
drug infusion pump. The
drug is preferably a
pain medication. The apparatus controls the
infusion pump to apply an infusion protocol, wherein an infusion protocol defines times and amounts of
drug infusion. A providing unit provides
monitoring data of a patient during the application of an infusion protocol, wherein the
monitoring data is indicative of an effect of the infused drug on the respective patient. A customized protocol determination unit determines a customized infusion protocol based on the currently applied infusion protocol and the
monitoring data. A controlling unit controls the
infusion pump to apply the customized infusion protocol instead of the currently applied protocol.