A growing number of hospitals implement health information exchange (HIE) to mitigate problems caused by fragmentation of medical information and improve their medical service level as well as their reputation. This paper considers the dynamic HIE process between a Grade-A hospital and a community hospital using the differential game theory, and then analyzes the HIE participation extent as well as hospital profit for the following three types of hospital relationships: independent decision-making (IDM), regional medical informatization (RMI), and government led cooperation (GLC). The results indicate that patient transfer percentage is one of the most important factors influencing HIE decision making, cost sharing and hospital profit. Through a comparative study under different hospital relationships, we find that RMI is a Pareto improvement as compared with IDM, in terms of hospitals' HIE participation extent and profit. Although GLC can bring the largest total profit, the Grade-A hospitals' HIE participation extent is the lowest under GLC.