A 90-year-old man is evaluated in the hospital for disorientation. He was admitted 5 days ago after having a myocardial infarction. Before hospitalization, he was living alone and functioning independently. Since hospitalization, the patient has had periods of daytime sleepiness alternating with periods of agitation. Medications are aspirin, clopidogrel, metoprolol, lisinopril, and atorvastatin.

On physical examination, temperature is normal, blood pressure is 130/82 mm Hg, pulse rate is 70/min, and respiration rate is 16/min. Cardiac examination shows an early systolic murmur and normal heart sounds. Neurologic evaluation shows sudden involuntary jerks of the upper extremities that increase in frequency when the arms are outstretched and wrists are extended. The patient is oriented to self and location but not to date and believes he has been hospitalized for only 1 day. He cannot spell the word “world” backwards, and his responses to questions are at times inappropriate or tangential. He requires frequent redirection during the interview and appears to be distracted by something on the wall. Findings from the rest of the physical examination are otherwise unremarkable.

Laboratory studies:

Complete blood count

Normal

Liver chemistry studies

Normal

Glucose, fasting

Normal

Creatine kinase

Normal

Creatinine

2.9 mg/dL (256 µmol/L) (2.0 mg/dL [177 µmol/L] on admission)

Which of the following is the most likely diagnosis?