The pandemic and economic conditions in recent years have been a strain to many hospitals in the United States.