New Zealanders have high rates of pre-diabetes and type 2 diabetes. The highest rates are seen in Pacific and Ma¯ori people. Additionally, Pacific peoples and Ma¯ori have much higher rates of infection with a bacterium called Helicobacter pylori, which might make type 2 diabetes more difficult to treat. A clinical trial comparing treatment of Helicobacter pylori to normal care is needed. However, the feasibility of such a study is not clear and a feasibility study is required to ensure its success. The aims of this feasibility study are to: 1) estimate how easily patients with pre-diabetes and type 2 diabetes can be identified from the primary healthcare electronic record, 2) estimate the proportion of potential participants who will consent to and submit stool tests, 3) estimate the proportion of patients who have Helicobacter pylori and 4) estimate the proportion of patients who would likely enrol in a clinical trial.