A substance-dispensing device that is programmed by a healthcare provider and whose bulk medication supply is inaccessible to a patient or user at one time. The user will only have access to the dose programmed by the healthcare provider at a specified time and not have access to the internal supply of the medication. The dispensing device denies medication requests to anyone except those authorized by the healthcare provider. The dispensing device keeps a record of the device access and functions performed in the database of the device. The dispensing device will only dispense medication when medication is requested and only if the medication is due. The dispensing device is re-usable and may only be setup by the prescribing authority and filled by the healthcare provider or pharmacist who is assigned to the device.