Controlling drug delivery for the application of extended or sustained-release drug products for parenteral administration