Compatibility is ensured through blood typing and crossmatching. Neonates are usually given blood that is O-negative to minimize the risk of adverse reactions. Additionally, the blood is screened for infections and other contaminants to ensure its safety.