Circuit Diagram

Key:
h-High
l- Low
m-Medium
s-Severe
cd-current date
pad-patient appointment date
ct-current time
pat-patient appointment time
Explanation of the circuit flow:
At the initiator end, all patients register for medical care at first by
entering all their particulars in the database. These particulars include the
patient name and address and contact number as well. The patient enters his
priority based on the severity of his condition by means of a ticket which is
high-h, low-l, medium-m or severe-s. Also the patient indicates the date and
time that he wishes to be seen and given medical attention. The nurse also
enters all her particulars including her contact number and shift timings. At
the bidding and validation end, we have the following. The current date and time
are already stored indicated as ‘cd’ and ‘ct’ respectively. The patient must
make an appointment ‘pad’ which is greater than or equal to the current date
‘cd’. He must also make an appointment at a time ‘pat’ greater than the current
time ‘ct’. Only if both the date and time are correctly entered by the patient
will it be recognized as a valid request. Validation is necessary for the nurse
database as well. The nurse details are indicated by N. If an already registered
nurse attempts to enter her details again indicated by C, it will return
‘Invalid nurse record’ else it will return ‘Correct nurse record’. Both outcomes
will be sent to the result generator. If the date and time are incorrectly
entered by the patient it will return an invalid message and he will have to
register again and indicate his requirements correctly. When the date and time
are correctly entered by the patient along with his priority, it enters into the
‘service given’ circuit which determines which patient has the highest priority
and allocates the nurse available and the patient receives the required medical
attention.