Hepatitis B screening is an infectious disease of general concern worldwide, especially in developing countries. Therefore it is perfectly possible for you to be tested and treated for Hepatitis B at your local major hospital or infectious disease hospital.
If you have not yet left the country, you can go to a major hospital in your city for a period of time for testing and treatment.