As electronic patient record (EPR) is the basis of clinical information and the core of a hospital information system (HIS), the research on EPR is an important element of HIS and digital hospital construction. Based on B/S architecture, a three-layer EPR management system is presented. Its expandable, maintainable and secure B/S system architecture is cost-effective and is developed with Eclipse platform. The dataflow and activities at a hospital are analyzed. Based on the function and operation analysis of the clinical department in a hospital, the database structure for the EPR management system is designed using E-R charts. The functioning process of the server in the B/S architecture is discussed. The server is developed with the components registered in Struts-config.xml file. At the client, JSP pages are created with dreamweaver. The prototype system is tested by test run and its correctness is validated.