Patient safety is a global public health concern because of increases in the number of mistreatments due to the improper identification of patients or the improper administration of drugs. Risk in clinic management refers to the systematic process used to specify, control, and analyze organizational risks. The present article developed a new method to detect different objects automatically in real-time by monitoring and controlling the hospital workflow using radio frequency identification (RFID). The system methodology starts with identifying the functional area by detecting the room optical characters. Then clustering and matching the symmetrical functional area using histogram matching technique. For the monitoring process, the radio frequency network planning RNP has been used. Density-based scan algorithm (DBSCAN) was used for clustering and extracting the area, then all gathered data transferred to the firefly algorithm to track drug distribution and specify doctor and nurse locations. The simulation results observe real-time tracking and identification of people and drugs based on hospital zone designs. The results present 87% tag real-time coverage for managing and monitoring human inside the hospital. The effectiveness of this system shows that it was useful in monitoring clinic operations and effective for a hospital network solution.