OHDSI Home | Forums | Wiki | Github

Cohort analysis using JSON-based R

Hello my name is seok jun Park, researcher.

Since I am a M.S course student who is just starting my studies in data science, I would like to ask you a small question.

I would like to proceed with cohort generation in R for analysis through R of the JSON file that exists in the atlas.

But I’ve never worked with JSON files, so I’m having a hard time right from the start.

I would really appreciate it if you could tell me about parsing with R using JSON files.

We look forward to your kind reply.

thank you

Welcome to the community @ChelPark !

If you are starting with a JSON file containing a cohort definition created in ATLAS and want to translate it to SQL to execute against your data via R, then you can use the CirceR package: https://github.com/OHDSI/CirceR

If you would like to create a cohort definition JSON using R, then I suggest you look into the CapR package: https://github.com/OHDSI/Capr

1 Like