There are also seven decide modules on our model. The first one decides whether patients need a wheel chair or not; if yes, they will be sent to a clerk who is responsible for specifying wheel chairs for patients, and if not, they will directly go to the front desk. This decide module is based on two ways by chance, and we expect 5% of patients need wheel chairs. The second decide module decides if a patient has an urgent case, so it is based on condition; if a patient comes by an ambulance car or has a high priority, he/she will go to the nurse. If not, the patient will go to the third decide module which checks whether the number of patients in all queues equals to or larger than twenty patients; if yes, patients will exit from the emergency room without being served, and if not they will go to the nurse. The fourth decide module looks for the patient type in order to assign it to urgent or normal doctor. Once patients finish from doctor, they will be checked if they have already finished from the lab or not in the fifth decide module. In the lab or x-ray sub-model, there are two decide modules: one checks whether patients need lab or x-ray or not, and the other decides if patients come back to the urgent or the normal doctor.