Functional v genetic
It is only minimally a genetic issue, based on blood group type which is readily found by decades old tests.
The primary HDN is related to Rh factor & seen if mom is Rh neg while dad is Rh pos & easily detected & avoided when properly managed. No other Rh pairing causes a problem. ABO blood group incompatibility produces minor HDN is some cases which is easy to manage.