Methods, systems, and apparatus for quantifying the quality of a fiducial time marker for a candidate heart beat, quantifying the quality of a candidate heart beat, or determining a time of beat sequence of the patient's heart. A fiducial time marker is obtained for a candidate heart beat. A quality index of said candidate heart beat is set to a first value. The candidate heart beat is tested with at least one beat validity test. At least a second value is added to said quality index of said candidate heart beat if said candidate heart beat passes said at least one beat validity test. The candidate heart beat is tested with at least a second heart beat validity test. At least a third value is added to said quality index of said candidate heart beat if said candidate heart beat passes said at least second heart beat validity test. In one class of beat validity test, a constraint defining a pass is modified at one or more times after the most recent prior valid heart beat that is greater than a constraint modification time threshold.