Not enough to go on there Surfingpilot to give an adequate answer. What do you consider "safe" and what do you consider "good" medical care?
I live in Costa Rica (4 years now) and consider it very safe, even safer than the States, especially in the area where we are. Petty theft in San José is more than in the States, but murder rates are much lower, and SJ is considered the least safe place to live in inside the country.
Medical care is good here. For small stuff you go to any pharmacy, they all have a doctor on staff who doesn't charge for a short consult and will refer you to another Dr. for anything more complicated. Private care costs about 25% of what it does in the States and is modern, but the offices are small and the decor is not so fancy as in the States (I don't care about that!). Dental care here is excellent, also about the same percentage of cost (lots of people have major dental done here, which more than makes up for the ticket and they get a nice vacation out of it).
Overall, due mostly to lower medical, housing, and utilities costs, Costa Rica has a lower cost of living than in the States, but it is certainly not the cheapest country in which to reside in Central America. Panamá is less expensive, but hotter, Nicaragua is a lot cheaper (outside heavily touristed areas), but less safe and medical standards are not as high.
Hope that helps.