Medical ethics deals with the moral principles that should guide medical professionals in their dealings with patients, each other, and the state. There are various codes of ethics that have been developed over time to provide guidance. The regulation of medical practice is overseen by organizations like the World Medical Association, National Medical Council, and State Medical Councils. These councils are responsible for functions like recognizing medical qualifications and institutions, handling disciplinary matters, and ensuring compliance with regulations. Both medical professionals and patients have certain rights and responsibilities in the patient-doctor relationship.