A system comprising one or more of a programmable encapsulation for containing and regulating the release of a medicament, an encapsulating device used by a manufacturer which encloses the medicament within a programmable encapsulation, a programming device used by a pharmacy or dispensary which programs the encapsulation with an intended patient's health data and prescription data, a consumer encapsulation storage device configured to store one or more programmable encapsulations for one or more of a patient, authenticate the identity of a patient, and dispense medicaments to the patient in accordance with the patient's prescription, and a portable reader configured to scan a programmable encapsulation and display the details of the medicament and instructions for its consumption.