More than 300 Massachusetts hospital patients in 2008 suffered perilous falls, got the wrong medication, or had medical instruments left inside them, according to a report released by state health officials. The study tallies episodes at every hospital, with the number ranging from none to 25 per institution.