public function previousPrescriptionCheck() { if ($this->isPreviousPrescriptionChecked()) { print "Repeat Prescription Applied!"; } else { throw new BehaviorException("WARNING!! PREVIOUS PRESCRIPTION NOT APPLIED!!!"); } }