A method of securely distributing a controlled substance which includes the steps of inputting a plurality of parameters into a secure pill device having a tamper resistance mechanism, shipping the secure pill device from a first facility to a second facility, periodically evaluating a first condition, comparing a first parameter in the plurality of parameters against the first condition, and engaging the tamper resistance mechanism when the first condition exceeds the first parameter in the plurality of parameters. The method may also include the steps of transferring a plurality of the controlled substance from the pill secure pill device to a patient pill dispenser having a patient tamper resistance mechanism, inputting a plurality of patient parameters into the patient pill dispenser and comparing the plurality of patient parameters with a plurality of conditions.