The above activity diagram is for generating the reports. The receptionist will login to the system. He will take the patient number and search the record. If the record found, the report will be generated. If the record is not in the database then after some time the record will be checked again so that the report can be generated.