Maximum HP depends totally on three factors: function(role, race, XL) + function2(XL, Con) + (all bonuses or penalties from other sources, like nurses, full healing potions, fire traps, etc), with some diminishing returns on the third factor.