Clinical codes are the building blocks used to create a picture of a patient's stay in hospital. The codes are grouped to generate a case mix group, or health-based allocation model (HBAM) Inpatient Grouper (HIG), which allows hospitals to gain a detailed understanding of the patients they treat.