Your next prescription might include pills with embedded sensors that can collect and transmit data on whether you’re taking them as instructed.

Abilify MyCite, a pill-app combination that can be used to track the ingestion of drugs for bipolar disorder and schizophrenia, was the first such product approved by the US Food and Drug Administration (FDA), in November 2017. Its roll-out to some Medicaid patients was announced last month.

“Smart pills” like these are part of a larger class of digital medicine products that include insulin pumps with continuous glucose …