Confidentiality is maintained through various measures, including secure storage of medical records, restricted access to data, and the use of encryption technologies for electronic health records. Staff training on confidentiality protocols is also essential.