HLA typing, also known as human leukocyte antigen typing, is a genetic test that determines an individual's specific human leukocyte antigen alleles. The human leukocyte antigen system plays a crucial role in the immune system by helping to distinguish between self and non-self cells. HLA molecules are found on the surface of cells and are responsible for presenting antigens to the immune system.