Diagnosis codes are generally used as a representation of admitted episodes in health care settings. The principal diagnosis, additional diagnoses alongside intervention codes essentially depict a patient's admission to a hospital.