A code of ethics serves as a foundational guide for nursing practice. Organizations like the American Nurses Association (ANA) provide comprehensive codes that outline the ethical obligations of nurses. These codes help nurses navigate complex situations, promote patient welfare, and maintain professional standards.