Introduction: The right to health and patients' rights are essential for a humanized medicine that respects human dignity. Objectives: To assess the knowledge of healthcare professionals in the field of patients' rights, and to propose a strategy for improving healthcare professionals' knowledge in this area. Materials and methods: Our work consists of two parts: a questionnaire and preventive recommendations. The questionnaire, divided into three parts, assesses the participants' profile, their knowledge of patients' rights and medical ethics, and the rights of persons deprived of liberty. This was a descriptive and analytical cross-sectional study, including healthcare professionals from the public sector (university hospitals and regional hospitals). Results: Out of 384 questionnaires distributed, 243 were fully completed, giving a response rate of 63.28%. According to the score used, most participants had an average level of knowledge. Conclusion: This study revealed shortcomings in doctors' knowledge of patients' rights and health ethics, impacting on quality of care.