Heart beatting detector

hi

I´d like to make a heart beat machine, that one with the green line that shows the heart beatting pulse in a hospital.
anyone knows where I can find something about that?

thanks