The Food and Drug Administration has approved a digital pill for the first time, the NYT reports.