Abstract:The paper compares the advantages and disadvantages of traditional centralized system and distributed system, points out that distributed architecture can solve the problems of high coupling between modules and low development efficiency existing in traditional architecture, proposes to design and build the distributed family doctor service system, including functional requirements, architecture, functional architecture, distributed service framework, service invocation process, etc. At the same time, the blockchain Electronic Medical Records (EMR) is developed in the system, and both the system and EMR passes the test.