Skip to content

Commit

Permalink
refactor GlucoseEnpointsByDate, add Endpoint All report, improve navi…
Browse files Browse the repository at this point in the history
…gation between glucose reports
  • Loading branch information
erikvw committed Aug 22, 2024
1 parent 5ce4150 commit 2baec16
Show file tree
Hide file tree
Showing 20 changed files with 655 additions and 365 deletions.
14 changes: 8 additions & 6 deletions meta_analytics/dataframes/glucose_endpoints/constants.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
OGTT_THRESHOLD_MET = "OGTT >= 11.1"
EOS_DM_MET = "EOS - Patient developed diabetes"
CASE_OGTT = 1
CASE_EOS = 7
CASE_FBGS_WITH_FIRST_OGTT = 2
CASE_FBGS_WITH_SECOND_OGTT = 3
CASE_FBG_ONLY = 4
CASE_OGTT = 1
EOS_DM_MET = "EOS - Patient developed diabetes"
OGTT_THRESHOLD_MET = "OGTT >= 11.1"

endpoint_columns = [
"subject_identifier",
Expand All @@ -24,8 +26,8 @@

endpoint_cases = {
CASE_OGTT: OGTT_THRESHOLD_MET,
2: "FBG >= 7 x 2, first OGTT<=11.1",
3: "FBG >= 7 x 2, second OGTT<=11.1",
4: "FBG >= 7 x 2, OGTT not considered",
CASE_FBGS_WITH_FIRST_OGTT: "FBG >= 7 x 2, first OGTT<=11.1",
CASE_FBGS_WITH_SECOND_OGTT: "FBG >= 7 x 2, second OGTT<=11.1",
CASE_FBG_ONLY: "FBG >= 7 x 2, OGTT not considered",
CASE_EOS: EOS_DM_MET,
}
Loading

0 comments on commit 2baec16

Please sign in to comment.