This story should be told more often and Costa rica should be a model for the world in this regard.
Story: My wife's brother was crossing the street and was hit by a car, pretty badly at around 8pm. He was able to get able, and they took him to this public hospital. He has bleeding, vomiting (from concussion) and he waiting over 12 hours to be attended. The only they did was give him an IV for his dehydration (due to excessive vomiting for 12 hours from concussion), told him he was fine and to go home. He asked for a pill for vomiting, and doctor told him to go across the street to the pharmacy to buy it. Yes, really.
The private healthcare sector here is pretty good. A bit expensive, but good. I could have had my kids here in the "Caja" (public hospital) for free, but after hearing tons of complaints and horror stories it was better to just pay a $5000-$6000 fee to the doctors and hospital in the private sector to have each of my kids born.
Costa Rica is absolutely not a model for it's healthcare system. It's expensive, in huge debt, it's terrible, and no one cares about you. Would not recommend.