There are diagnostic tests that may be performed include the following:
Blood tests for specific diseases that are suspected (such as low vitamin B12 or thyroid disease)
Cerebral angiographyCerebral angiography
Cognitive testsCognitive tests (psychometric tests)
CT scan or MRI of the headCT scan or MRI of the head
EEGEEG
Lumbar punctureLumbar puncture
The symptoms you describe such as memory loss can be temporary and sometimes permanently. I have given you a thread that provides some detail on the subject.
http://www.medhelp.org/posts/Neurology/RE-MEMORY-LOSS-AFTER-OPEN-HEART-