Healthcare systems is preservation of patients knowledge against the potential contender. It is essential to own certain
data access mechanisms that ensures approved entities can access the patients medical documentation. The Electronic Health
Records (EHR) possess the patient`s medical details and their health history. Electronic health record will improve quality care
by using the data and analytics to prevent hospitalizations among risky patients. The health records draw the attention of the
attackers because it preserves key data. Now a days, healthcare data are often generated, reproduce and alter quicker than ever
before. We developed to ensure the security by means of proper encryption and decryption in the Electronic Health Record in the
Healthcare System. The proposed algorithm uses Discrete Cosine Transform (DCT) for image transformation(that is to change the
pixel position with less memory)