To provide high quality healthcare service, all relevant information of a patient is paramount. Most of the patient healthcare information is stored in disparate electronic medical record (EMR) systems of healthcare providers such as general practitioners (GP), specialists, hospitals etc. Integrating the existing heterogeneous EMRs for data sharing is crucial. All existing integration solutions need the numerous EMR software vendors to update their software to follow ever-changing messaging standards, provided interfaces or other criterions. The cost and efforts of the enormous amount of time required to negotiate with the large number of project participants for upgrading existing systems is extremely high. Almost exclusively, software today provides a graphical user interface (GUI) as the only method for users to access the functionality of the software. In this chapter, we propose a model for automating the procedure of operating the GUI based EMR and exchange information with them without the need of updating the existing EMR systems. The model is called parameterized GUI state model (PGUISM) which depicts the intrinsic logic of GUIs and enables the automated process of writing and reading information to and from EMR systems. --presented at the 19th International Conference on Information Systems Development, Prague, 25-27 August, 2010.