A flexible-dose dispenser for immediate and extended release 3D printed tablets.