How long does optometrist have to keep patient records?

Generally 7 years. Medical practioners such as ophthalmologists have to keep records for seven years legally although many are kept longer for patients continuing in their practice. Optometrists are not medical doctors although they probably have the same set of rules.