In late October, at the 2018 World Championships in Doha, Qatar, Biles went to an emergency room the night before the qualification round because of stomach pains that turned out to be a kidney stone. After confirming that it was not appendicitis, she checked herself out of the hospital. The following day, she qualified to the all-around, vault, balance beam, and floor exercise finals in first place, and to the uneven bars final in second place behind Nina Derwael of Belgium. After successfully performing the vault she premiered at the selection camp, it was named the Biles in the Code of Points and given a difficulty value of 6.4 (for the 2017–2020 code of points), which was tied with the Produnova for the most difficult women's vault ever competed. The US also qualified to the team final in first place. During the team final, Biles competed on all four events, recording the highest score of any competitor on vault, uneven bars, and floor exercise. The U.S. team won the gold medal with a score of 171.629, 8.766 points ahead of second place Russia, beating previous margin of victory records set in the open-ended code of points era at the 2014 World Championships (6.693) and the 2016 Summer Olympics (8.209).