What if an implantable device could tell you what medicines you need?