Abstract:The paper introduces the purpose of using graph database in Electronic Medical Record(EMR)system, expounds the whole process of using Neo4j to model the relational data of EMR system, constructs the multi-relational heterogeneous diagnosis and treatment knowledge graph of outpatient records of a hospital, realizes the visualization of the structure of relational database in EMR system, and explores the potential of using graph database to promote data management and analysis.