A computer-implemented method of securing a medical record associated with a patient, the method comprising: a. obtaining the medical record associated with the patient from a medical record database, wherein the medical record comprises a patient identifier, patient information and medical data; b. determining preferences of the patient with respect to privacy of the patient information in the medical record; c. masking one or more data fields in the patient information based on the determined preferences; and d. generating the medical record containing the masked data fields in the patient information, wherein masking the data fields of the patient information comprises: determining a privacy level associated with each of the data fields of the patient information based on the preferences with respect to the privacy of the patient; and masking the one or more data fields in the patient information according to the privacy level, wherein masking refers to hiding or anonymizing data fields of the medical record by removing, modifying or deleting information contained in the data fields related to patient information, wherein determining the preferences of the patient with respect to the privacy of the patient information comprises: a. determining whether any preferences are specified by the patient with respect to the privacy of the patient information in a patient profile information; b. if any preferences are specified, determining one or more data fields in the patient information to be masked based on the preferences specified by the patient; and characterized in that c. if no preferences are specified, requesting the patient to provide the preferences with respect to the privacy of the patient information. a. obtaining the medical record associated with the patient from a medical record database, wherein the medical record comprises a patient identifier, patient information and medical data; b. determining preferences of the patient with respect to privacy of the patient information in the medical record; c. masking one or more data fields in the patient information based on the determined preferences; and d. generating the medical record containing the masked data fields in the patient information, determining a privacy level associated with each of the data fields of the patient information based on the preferences with respect to the privacy of the patient; and masking the one or more data fields in the patient information according to the privacy level, wherein masking refers to hiding or anonymizing data fields of the medical record by removing, modifying or deleting information contained in the data fields related to patient information, wherein determining the preferences of the patient with respect to the privacy of the patient information comprises: a. determining whether any preferences are specified by the patient with respect to the privacy of the patient information in a patient profile information; b. if any preferences are specified, determining one or more data fields in the patient information to be masked based on the preferences specified by the patient; and characterized in that c. if no preferences are specified, requesting the patient to provide the preferences with respect to the privacy of the patient information. a. determining whether any preferences are specified by the patient with respect to the privacy of the patient information in a patient profile information; b. if any preferences are specified, determining one or more data fields in the patient information to be masked based on the preferences specified by the patient; and characterized in that c. if no preferences are specified, requesting the patient to provide the preferences with respect to the privacy of the patient information. <EOS>