Medical instrument used for recording heartbeats