In contrast to serologic tests reporting a direct blood type phenotype, genotyping allows the prediction of a phenotype based on the knowledge of the molecular basis of the currently known antigens. This allows a more detailed determination of the blood type and therefore a better match for transfusion, which can be crucial in particular for patients with needs for many transfusions to prevent allo-immunization. History
Blood types were first discovered by an Austrian physician, Karl Landsteiner, working at the Pathological-Anatomical Institute of the University of Vienna (now Medical University of Vienna). In 1900, he found that blood sera from different persons would clump together (agglutinate) when mixed in test tubes, and not only that, some human blood also agglutinated with animal blood. He wrote a two-sentence footnote:

The serum of healthy human beings not only agglutinates animal red cells, but also often those of human origin, from other individuals. It remains to be seen whether this appearance is related to inborn differences between individuals or it is the result of some damage of bacterial kind. This was the first evidence that blood variation exists in humans. The next year, in 1901, he made a definitive observation that blood serum of an individual would agglutinate with only those of certain individuals. Based on this he classified human bloods into three groups, namely group A, group B, and group C. He defined that group A blood agglutinates with group B, but never with its own type. Similarly, group B blood agglutinates with group A.
In general, while the plasma fraction of a blood transfusion may carry donor antibodies not found in the recipient, a significant reaction is unlikely because of dilution. Additionally, red blood cell surface antigens other than A, B and Rh D, might cause adverse reactions and sensitization, if they can bind to the corresponding antibodies to generate an immune response. Transfusions are further complicated because platelets and white blood cells (WBCs) have their own systems of surface antigens, and sensitization to platelet or WBC antigens can occur as a result of transfusion. For transfusions of plasma, this situation is reversed. Type O plasma, containing both anti-A and anti-B antibodies, can only be given to O recipients. The antibodies will attack the antigens on any other blood type. Conversely, AB plasma can be given to patients of any ABO blood group, because it does not contain any anti-A or anti-B antibodies. Blood typing
Typically, blood type tests are performed through addition of a blood sample to a solution containing antibodies corresponding to each antigen. The presence of an antigen on the surface of the blood cells is indicated by agglutination. In these tests, rather than agglutination, a positive result is indicated by decolorization as red blood cells which bind to the nanoparticles are pulled toward a magnet and removed from solution. Blood group genotyping
In addition to the current practice of serologic testing of blood types, the progress in molecular diagnostics allows the increasing use of blood group genotyping.