To lower your risk of getting a bladder infection:
Urinate regularly and empty your bladder completely.
Wear cotton underwear and loose, nonbinding clothing that does not trap heat and moisture.
In general, practice good hygiene.
Drink plenty of liquids. Cranberry juice may be helpful in preventing a bladder infection, according to some studies. It may keep bacteria from attaching to the bladder and creating an infection.
Avoid substances known to irritate the bladder, such as alcohol...
Doctors who suspect E. coli infection will order a type of stool culture that detects strains of E. coli. Because the bacteria can leave the body in only a few days, the sample should be obtained as soon as possible after symptoms appear.
Other tests are sometimes used when the diagnosis is unclear, but these are not yet widely available.
If a child or older adult is diagnosed with E. coli infection, he or she may be watched for development of severe blood or kidney problems. Monitoring requires blood and urine tests to measure essential elements of blood and body fluids.