Smart pill bottle becomes one-size-fits-all dispenser cap