The Leapfrog Group, a national organization founded by business owners and leaders, ranked New Jersey fifth best, just as it had last year, in hospital safety. Scoring is based on 28 measures that include infection rates, errors, and preventive health practices.