Check with your health insurance provider or employer before booking your treatment as it may be covered by your health insurance. Many insurance groups are now including medical tourism in their coverage.
Then check with your chosen provider in Costa Rica whether they require you to pay for treatment and then reclaim from insurance or whether the hospital or clinic in Costa Rica can process a treatment pre-authorisation from your insurance company.