A method of optimizing the effectiveness of a medication for the treatment of a neurobehavioral or psychiatric disorder in a patient is presented. Medication is administered to a patient. Patient information is obtained and stored in a computer database. Real-time current information is received, for example from a mobile computer device, by the patient relating to (i) medication being taken by the patient; (ii) at least one benefit or lack of benefit of the medication to the patient; (iii) characteristics of one or more current tasks being performed by the patient; and (iv) a current condition of the patient. The effectiveness of the medication is evaluated based on stored patient information and received real-time current information. Accordingly, the dosage or frequency of the medication administered to the patient may be modified, eliminated or maintained.