Here is an ER diagram for the hospital management system. It depicts the various entities involved in the system, such as patients, doctors and users, and the relationships between these entities, which are represented as lines connecting the rectangles. It makes it easier to understand the relationships between different entities and to design and maintain the system.