Closing the medication loop.