the medicine vending machine will allow the patient to receive his medicines without standing in a long queue, or receiving a wrong medicine. The patient only needs the barcode on the prescription to be scanned by the vending machine in order to obtain his/her medicines.