没有什么语法问题需要修正,个别修辞、用词不同而已:
The ER doctor didn't write "food prisoning" as the result. But he didn't order a test of my stool sample at that time. Without tests, it'd be hard to identify what's wrong in the food that might make me sick because there are thousand kinds of elements in food.