The same way anyone lacking knowledge can confident say that they got the right information from anyone with experience: You don't. You just trust them. That's what I did with my gastrenterologist, I ended up got misdiagnosed for 4 years and instead of getting the treatment that I should be getting I lost weight, got osteoporosis and vitamin D deficiency.
4 years later the second doctor asked me "I wonder why did my colleague decided not to take a tissue sample from insert some place in the stomach. I said out loud "I didn't even know what that is, let along ask him why he didn't".