Want a free year on Tuts+ (worth $180)? Start an InMotion Hosting plan for $3.49/mo.
You can find EKGs made with After Effects everywhere. The good thing about this one is that it just uses shape layers and mattes to create a realistic effect.
This tutorial will teach you how to create the basic shape of the line and how to make it appear over the screen.
Adapting what you learn here, you can move on to create the whole piece, such as this complete EKG for sale at VideoHive.