Wife of Kohen Entering Cemetary

Can the pregnant wife of a kohen enter a cemetery if we take away one safek by doing a sonogram knowing that for sure it’s a boy and then there is only one safek that its a stillborn?

You don’t have to do such a sonogram, see rema siman קי that you don’t have to check on sfek sfeka. She can enter a cemetery.