Electronic Health Records (EHR) allow health records to be easily integrated, shared, and exchanged between health institutions. However, the system heterogeneity and the lack of standards present current challenges which hinder efficient exchange of medical information between institutions. Health Level 7 (HL7) Clinical Document Architecture (CDA) is a renowned exchange standard. Presently, there are many studies regarding CDA to resolve the problems discussed above. This paper implements a tool to simplify the CDA generation and provide a friendly user interface. It is divided into three main parts: Template Designer, Mapping engine and CDA Generator. The CDA tool helps users to create and edit the template (e.g. discharge summary) through an efficient user interface. In addition, it maps the CDA elements to the field of the legacy information table. Ultimately, the CDA generator generates the CDA documents and saves them as XML files. The application of CDA as a promising standard in the hospital environment ensures the efficient exchange of health records.