Hi Steve,
I will assume that you are applying outland. Inland, they have a landing interview where they get their COPR. For outland, the landing 'window' will directly depend on the medical expiry. The medical must be valid for a person to claim the PR.