Cisco recently proposed a new computing environment called fog computing to support latency-sensitive and real time applications. It is a connection of billions of devices nearest to the network edge. This computing will be appropriate for Electronic Medical Record (EMR) systems that are latency-sensitive in nature. In this paper, we aim to achieve two goals: (1) Managing and sharing Electronic Health Records (EHRs) between multiple fog nodes and cloud, (2) Focusing on security of EHR, which contains highly confidential information. So, we will secure access into EHR on Fog computing without effecting the performance of fog nodes. We will cater different users based on their attributes and thus providing Attribute Based Access Control ABAC into the EHR in fog to prevent unauthorized access. We focus on reducing the storing and processes in fog nodes to support low capabilities of storage and computing of fog nodes and improve its performance.