How long does it take to eliminate h. Pylori, and how can I prevent my roommates from contracting it from me?

2 weeks. H pylori is usually a chronic bacterial infection of the stomach. It can usually be cured by taking several prescription medications every day for 2 weeks. Most people who have h pylori got infected in childhood, but it can be spread by oral secretions from person to person. H pylori can be diagnosed by blood tests, stools tests, breath tests, or endoscopy with biopsy.