Hi Chunk, this is super helpful.
I'm trying to follow it step by step and extract NDC codes for a specific drug from openFDA, I was able to print the "results" part (screenshot 1) but got stuck at the step of converting it to a Python df (screenshot 2, no output) and stata dataset (screenshot 3, error message). My guess is the drug/ndc has more nesting than the adverse event example here?
Could you give me any tips on how to select certain keys like ndc code, and product form from the nested elements?
Any suggestion is greatly appreciated!
Many thanks!
https://uploads.disquscdn.c...https://uploads.disquscdn.c...