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

[Proposal for Feature Addition]: Stratification by lab measurement thresholds #192

Open
mdlavallee92 opened this issue Sep 19, 2024 · 0 comments

Comments

@mdlavallee92
Copy link

Cohort subsetting has been very useful when working on a study using circe cohorts. One feature that is not currently implemented (but comes up a lot) is stratifying by a measurement value. For example, stratify a target cohort by BMI thresholds [underweight (<18.5), normal (18.5-24.9), overweight (25.0-29.9) and obese (>=30)].

Requirements:

  • target cohorts to stratify
  • measurement concept ids
  • timing of measure (i.e. on or closest to index is probably the default)
  • unit concept ids (only include valid units)
  • option for plausible value bounds (min =0, max = 50)
  • strata categories

Questions:

  • should a missing category also be made as a cohort?
  • what other time bound option be considered?
    - first in window [-365 to -1; for example]
    - last in window

Will try to put together a PR based on some general code we have used in a project. Might need some help with the R6 classes.

Tagging @katy-sadowski and @alondhe for awareness.

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

No branches or pull requests

1 participant