Circuit Diagram:

 

               Initiator                                                  bid validator                            auction

 

 

 

 

All requests are sent to the database DB where the patients register for services. The priority numbers are placed in a queue. The database containing particulars about the nurses is also maintained by the initiator. In the bid validator stage, the priorities are checked one by one and compared to see which priority is the highest. The highest priority is sent to the next stage which is the “auction stage”. Correspondingly, the initiator keeps track of the nurses who are in the database and once the bid vaildator indicates the value true or valid bid to the initiator, the initiator sends the information that a nurse is available and her services will be rendered to the patient. If not, the result no service rendered will be given as a result.