Scientists analyzed depictions of bioethical issues and professionalism over a full season of two popular medical dramas — “Grey’s Anatomy” and “House, M.D.” — and found that the shows were “rife” with ethical dilemmas and actions that often ran afoul of professional codes of conduct.