Diplomats, yes, military on US territory, yes. Foreign soil, no.
I assume all overseas US military bases don’t have maternity facilities? And not all US military personnel overseas are assigned to bases. So some percentage of mil offspring get birthed on “foreign soil” I’d think - in foreign hospitals. So we need to allow for that.