Nonfatal injuries in the United States totaled more than $1.8 trillion in costs stemming from hospital visits in one year, according to an analysis.