Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add function to calculate DDD #2

Open
razekmh opened this issue Jan 8, 2025 · 0 comments
Open

add function to calculate DDD #2

razekmh opened this issue Jan 8, 2025 · 0 comments

Comments

@razekmh
Copy link

razekmh commented Jan 8, 2025

I would like to build on the work already done in processing the OMOP CDM to get the DDD. There's a function that computes DDD in RAMSES however the function requires:

  • ATC_code: a character vector of ATC codes
  • ATC_administration: a character vector indicating the ATC route of administration
  • dose: a numeric vector indicating the total dose for the drug serving as the ATC DDD basis of strength. For prescriptions, provide the total dose to be given in one day, rather than per administration.
  • unit: a character vector coercible to a units object with as_units.

Starting from OMOP data and getting to ATC codes is already done by @andysouth. I think I could build the rest of the table and either replicate the compute_ddd function from Ramses or build the table and call it.

The compute_ddd function calls the atc-ddd index offered by the WHO Collaborating Centre for Drug Statistics Methodology which could be parsed for the target drugs and stored instead of pinging the API for each instance. This risks stale data but we might refresh the data on intervals.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant