As someone also in a similar position to you, I think the challenge for the non-medical community is that medicine/health frames things in terms of some entity, instead of failures in a systemic set of interconnected processes.

"I HAVE cancer. I HAVE this autoimmune condition. I GOT a cold."

So people are in search of a label and the "thing" to get rid or fight, but imagine if all technology problems were labeled similarly. Rendering-itis. Memory-itis. PCI-Bus-itis. Imagine someone coming to a person going, "I think I have keyboard-itis, because when I type a key into the keyboard, it takes a couple seconds for the character to show up on the screen." When in reality, as the engineer, your intuition is that there's something amiss in the auto-complete microservice. Perhaps that service needs to be scaled up or something else is DOS'ing the service, Perhaps the autocomplete service is running across the country instead of the same datacenter, so you know which tests to run to isolate and solve the source of the problem. Medicine is basically that now.

Medicine has developed to the point where they have several hammers where if bloodwork == X || symptoms == Y, then A or B or C drug/procedure. So doctors are mostly the level 1 engineer after the level 1 tech support rep on a script.

----

Most medicine is merely a collections of latin labels, and unless the conditions map to well-known treatments, most doctors are in the dark. You were lucky that you responded to PPIs.

Gastritis is "inflammation of the GI lining" and the use of a PPI, is similar to a common second-line option like "reset the software settings" after the first suggestion of "reboot your computer." They scoped you, because they had no clue what was up. Scoping is basically like lighting up the debugger. They go in with a camera, and basically found nothing but inflammation, thus came the PPIs. They were mostly ruling out cancer or growths or other weird things like outside items. (ie ate a non-digestible item).

Basically, doctors are relying on pharmaceuticals to help out for a couple days/weeks, while the body addresses things on their own such that they don't become necessary anymore. That's probably most medicine. As most pharmaceuticals are symptom management, doctors really only have tools to help someone manage symptoms or alleviate the pain. They are just practiced in that troubleshooting process, the way tech folks get deep into the stack of the architecture of computing, networks, etc and can troubleshoot issues in the tech stack.

----

The way that there's only a handful of the most brilliant engineers who deeply understand the stack top to bottom in such a way that they can thread their way to "that's a problem in this specific subsystem and the latest change now makes the datastructures exceed the L3 cache size of that node and that's causing an additional 10 millis degradation." There's really only a handful of doctors who are intimate enough with the all the subsystems of the body to be able to drill into what's going on with a person, otherwise most operate on rules and mentally null pointer when they run into something that doesn't fit into their flow chart.

Outside of very specific genetic conditions, incredible amounts of sickness out there could be alleviated by supporting the biochemistry (limiting reagents) of the body, so its processes can keep it in tip-top shape.