Thanks for the query to H.C.M. Forum. Helicobacter pylori
is a not contagious so need not to worry.
As far as concerned about treatment it depends upon many factors and depends upon treating doctor and symptomatic relief.
Usually course of 3-4 weeks is sufficient .
But important thing is AVOIDANCE .
If you use alcohol ,fried food ,junk food, excessive drugs, sweets, they will aggravate the condition.
Consult a physician and get his opinion and treatment.
Hope I have answered your question.
If further any question I will help.
Get well soon.