WASHINGTON -- Hospitals make mistakes, sometimes deadly mistakes. A patient may get the wrong medication or even undergo surgery intended for another person.When errors like these are reported, state and federal officials inspect that hospital and file a detailed report.Now, for the first time, this information on the quality and safety of the nation's hospitals has been made available to the public online.A new website, www.hospitalinspections.org, includes detailed reports of hospital violations dating to January 2011, searchable by city, state, name of the hospital and key word. Previously, these reports were filed with the Health and Human Services Department's Centers for Medicare and Medicaid and were released only through a Freedom of Information Act request. Even then, the reports were provided in paper format only, making them cumbersome to analyze.The new database makes full inspection reports for acute-care hospitals and rural critical-access hospitals instantly available to journalists and consumers interested in the quality of their local hospitals.The database also reveals national trends in hospital errors. For example, key word searches yield the incidence of certain violations across all hospitals. A search on the word abuse, for example, yields 862 violations at 204 hospitals since 2011.Once they receive a complaint, federal and state inspectors try to find the cause of a hospital error or violation. For example, poor safety procedures result in thousands of patients slipping and falling each year in U.S. hospitals, and poor sterilization methods cause thousands more to contract infections. Poor administrative procedures can result in patients receiving wrong treatments.Once the causes of specific problems are determined, federal and state authorities require hospitals to file a plan to correct them. These plans still remain under wraps, as do inspection reports on psychiatric hospitals and long-term care hospitals.