The foundation contractor can build a foundation extension or areaway to fit the door system you choose ... to the foundation ...
You can construct the wall on the floor and raise it into position ... You don't normally need to worry about door and window headers when building basement partition walls.