SAFEHR-data / ramses-package

R Package for Data-Driven Antimicrobial Stewardship & Surveillance in Hospitals
https://ramses-antibiotics.web.app/
GNU General Public License v3.0
2 stars 0 forks source link

Synthetic data generation for drug exposure and concept OMOP tables #36

Closed zsenousy closed 1 month ago

zsenousy commented 1 month ago

A script has been developed for issue #35 to generate Synthetic drug_exposure and Concept data. The data is generated using restrictions of: 1) concept table's concept_idmaps to drug_exposure table's drug_concept_id) and (route_concept_idmaps to 7 different routes from 20 unique drug names in the concept table). Number of Routes, Vocab_id, domain_id, and other variables can be changed to accommodate your needs.

razekmh commented 1 month ago

Well done @zsenousy Great work. I have one concern which is that AMR supports ATC but I do not think it supports RxNorm. I appreciate you might be busy with the new project now and I am happy to help amend this if you prefer.

zsenousy commented 1 month ago

@razekmh Thanks, Mahmoud for your review. Yes, I am aware of that. As you can see in the code, 'Rxnorm' has been assigned to all records just for the sake of having non nullable columns. What I focused on is to have logical connection between drug and concept while generating the synthetic data. Please feel free to modify the code to accommodate with your needs and to be fully logical.

razekmh commented 1 month ago

I am merging this now as I would like to use the data generator in the development for the administration table. We can add to the data generator later if needed.