Your history and exam you do have no bearing in the exam coding any more. However, IMHO, if you have the past medical history and it notes diabetes or hypertension and medications or other treatment for those condition, it does justify the medical necessity for the visit, plus it also records the presence of chronic conditions. However, in order to be counted for the MDM code selection, those two chronic conditions would have to be "addressed" during the visit as shown in the exam notes and A/P part of the record.
Tom Cheezum, OD, CPC, COPC