The idea i came up with is a modular pill holder with user-defined caps.
Say you have to take pills at 3 different times of day, you can print 3 holders (2 terminal and that connect to each other and close them with caps that reflect the time when you need to take the pills: morning, lunch, before bedtime
You have to take them 4 days a week? (i.e. monday through thursday) print two ending holders and 2 central ones, then print the caps for the days you need.