Your correct but in some cases i dont think it has to do with the passport part.. for example a person passport can be expired in the next 10 years but the medical expires n may... so its mostly about the medical and police check...
And its not every medical gets an extension, they will ask some...