In a method and an apparatus for creating hemodynamic sensor signal templates using an implantable medical device connectable to a patient heart activity of the patient is sensed in order to identify a paste or sensed sequence of events of a heart cycle. Hemodynamic sensor signals for consecutive heart cycles are sensed and the sensed hemodynamic sensor signals for consecutive heart cycles are stored. The sensed sensor signals are classified dependent on at least one predetermined heart event sequence condition. A template may be created using the classified sensor signals.