With the rapid development of the internet, mobile medical care also develops rapidly, but the "three long and one short" problems in the hospital is still unsolved. We present a system of rational planning of walking route for patients based on WeChat platform. We firstly introduce the intelligent guidance and the considering the spatial distance among different departments, the shortest path waiting system is designed by using the backtracking method. The simulation results of the shortest path algorithm in this paper show that the algorithm can effectively plan the clinic route to save time while providing convenience for patients.