-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Keep
value_as_concept_id
in the summary stats table (#122)
* Use `test_data/internal` to store monthly test data * Use `test_data/internal` as input for dev data * Regenerate dev data * RStudio project now has a `ProjectId` * Keep the `value_as_concept_id` column in the summary stats Helps avoiding duplicate rows in case there is no matching concept for the `value_as_concept_id` * Fix typo * Update test snapshot
- Loading branch information
Showing
15 changed files
with
65 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
concept_id,concept_name,date_year,date_quarter,record_count,person_count,records_per_person | ||
3003573,C Ag [Presence] on Red Blood Cells,2020,2,2.5,2.5,2.5 | ||
3005673,Hemoglobin A1c/Hemoglobin.total in Blood by HPLC,2019,3,2.5,2.5,2.5 | ||
3005673,Hemoglobin A1c/Hemoglobin.total in Blood by HPLC,2020,3,2.5,2.5,2.5 | ||
3005673,Hemoglobin A1c/Hemoglobin.total in Blood by HPLC,2021,1,2.5,2.5,2.5 | ||
concept_id,concept_name,date_year,date_month,record_count,person_count,records_per_person | ||
3003573,C Ag [Presence] on Red Blood Cells,2020,5,2.5,2.5,2.5 | ||
3005673,Hemoglobin A1c/Hemoglobin.total in Blood by HPLC,2019,8,2.5,2.5,2.5 | ||
3005673,Hemoglobin A1c/Hemoglobin.total in Blood by HPLC,2020,8,2.5,2.5,2.5 | ||
3005673,Hemoglobin A1c/Hemoglobin.total in Blood by HPLC,2021,2,2.5,2.5,2.5 | ||
3005673,Hemoglobin A1c/Hemoglobin.total in Blood by HPLC,2021,4,2.5,2.5,2.5 | ||
3021714,Do sup(a) Ag [Presence] on Red Blood Cells,2020,4,2.5,2.5,2.5 | ||
3022250,Lactate dehydrogenase [Enzymatic activity/volume] in Serum or Plasma by Lactate to pyruvate reaction,2021,3,2.5,2.5,2.5 | ||
3022250,Lactate dehydrogenase [Enzymatic activity/volume] in Serum or Plasma by Lactate to pyruvate reaction,2021,4,2.5,2.5,2.5 | ||
3022250,Lactate dehydrogenase [Enzymatic activity/volume] in Serum or Plasma by Lactate to pyruvate reaction,2023,2,2.5,2.5,2.5 | ||
4092281,Ex-cigarette smoker,2022,2,2.5,2.5,2.5 | ||
4276526,Cigarette smoker,2021,2,2.5,2.5,2.5 | ||
4276526,Cigarette smoker,2022,4,2.5,2.5,2.5 | ||
4298794,Smoker,2019,1,2.5,2.5,2.5 | ||
4298794,Smoker,2021,3,2.5,2.5,2.5 | ||
40760007,HIV 1+2 Ab+HIV1 p24 Ag [Presence] in Serum or Plasma by Immunoassay,2019,3,2.5,2.5,2.5 | ||
40762352,Hemoglobin A1c/Hemoglobin.total in Blood by IFCC protocol,2019,2,2.5,2.5,2.5 | ||
40762352,Hemoglobin A1c/Hemoglobin.total in Blood by IFCC protocol,2019,4,2.5,2.5,2.5 | ||
40762352,Hemoglobin A1c/Hemoglobin.total in Blood by IFCC protocol,2020,2,2.5,2.5,2.5 | ||
40762352,Hemoglobin A1c/Hemoglobin.total in Blood by IFCC protocol,2021,4,2.5,2.5,2.5 | ||
3005673,Hemoglobin A1c/Hemoglobin.total in Blood by HPLC,2021,6,2.5,2.5,2.5 | ||
3005673,Hemoglobin A1c/Hemoglobin.total in Blood by HPLC,2021,11,2.5,2.5,2.5 | ||
3021714,Do sup(a) Ag [Presence] on Red Blood Cells,2020,11,2.5,2.5,2.5 | ||
3021714,Do sup(a) Ag [Presence] on Red Blood Cells,2020,12,2.5,2.5,2.5 | ||
3022250,Lactate dehydrogenase [Enzymatic activity/volume] in Serum or Plasma by Lactate to pyruvate reaction,2021,9,2.5,2.5,2.5 | ||
3022250,Lactate dehydrogenase [Enzymatic activity/volume] in Serum or Plasma by Lactate to pyruvate reaction,2021,10,2.5,2.5,2.5 | ||
3022250,Lactate dehydrogenase [Enzymatic activity/volume] in Serum or Plasma by Lactate to pyruvate reaction,2021,12,2.5,2.5,2.5 | ||
3022250,Lactate dehydrogenase [Enzymatic activity/volume] in Serum or Plasma by Lactate to pyruvate reaction,2023,4,2.5,2.5,2.5 | ||
4092281,Ex-cigarette smoker,2022,6,2.5,2.5,2.5 | ||
4276526,Cigarette smoker,2021,5,2.5,2.5,2.5 | ||
4276526,Cigarette smoker,2022,12,2.5,2.5,2.5 | ||
4298794,Smoker,2019,2,2.5,2.5,2.5 | ||
4298794,Smoker,2021,7,2.5,2.5,2.5 | ||
40760007,HIV 1+2 Ab+HIV1 p24 Ag [Presence] in Serum or Plasma by Immunoassay,2019,9,2.5,2.5,2.5 | ||
40762352,Hemoglobin A1c/Hemoglobin.total in Blood by IFCC protocol,2019,5,2.5,2.5,2.5 | ||
40762352,Hemoglobin A1c/Hemoglobin.total in Blood by IFCC protocol,2019,10,2.5,2.5,2.5 | ||
40762352,Hemoglobin A1c/Hemoglobin.total in Blood by IFCC protocol,2020,6,2.5,2.5,2.5 | ||
40762352,Hemoglobin A1c/Hemoglobin.total in Blood by IFCC protocol,2021,10,2.5,2.5,2.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
concept_id,concept_name,summary_attribute,value_as_number,value_as_string | ||
3003573,C Ag [Presence] on Red Blood Cells,frequency,2.5,Not present | ||
3005673,Hemoglobin A1c/Hemoglobin.total in Blood by HPLC,mean,123.66666666666667,NA | ||
3005673,Hemoglobin A1c/Hemoglobin.total in Blood by HPLC,sd,9.993331109628395,NA | ||
3021714,Do sup(a) Ag [Presence] on Red Blood Cells,frequency,2.5,NA | ||
3021714,Do sup(a) Ag [Presence] on Red Blood Cells,frequency,2.5,NA | ||
3022250,Lactate dehydrogenase [Enzymatic activity/volume] in Serum or Plasma by Lactate to pyruvate reaction,mean,128.83333333333334,NA | ||
3022250,Lactate dehydrogenase [Enzymatic activity/volume] in Serum or Plasma by Lactate to pyruvate reaction,sd,23.65938855225694,NA | ||
4092281,Ex-cigarette smoker,frequency,2.5,Well nourished | ||
4276526,Cigarette smoker,mean,12.799999999999999,NA | ||
4276526,Cigarette smoker,sd,3.469870314579495,NA | ||
4298794,Smoker,mean,5.666666666666667,NA | ||
4298794,Smoker,sd,1.1547005383792517,NA | ||
40760007,HIV 1+2 Ab+HIV1 p24 Ag [Presence] in Serum or Plasma by Immunoassay,mean,0.6666666666666666,NA | ||
40760007,HIV 1+2 Ab+HIV1 p24 Ag [Presence] in Serum or Plasma by Immunoassay,sd,0,NA | ||
40762352,Hemoglobin A1c/Hemoglobin.total in Blood by IFCC protocol,mean,132.8,NA | ||
40762352,Hemoglobin A1c/Hemoglobin.total in Blood by IFCC protocol,sd,21.25323504786977,NA | ||
concept_id,concept_name,summary_attribute,value_as_number,value_as_concept_id,value_as_string | ||
3003573,C Ag [Presence] on Red Blood Cells,frequency,2.5,45878588,Not present | ||
3005673,Hemoglobin A1c/Hemoglobin.total in Blood by HPLC,mean,123.66666666666667,NA,NA | ||
3005673,Hemoglobin A1c/Hemoglobin.total in Blood by HPLC,sd,9.993331109628395,NA,NA | ||
3021714,Do sup(a) Ag [Presence] on Red Blood Cells,frequency,2.5,1633781,NA | ||
3021714,Do sup(a) Ag [Presence] on Red Blood Cells,frequency,2.5,1635564,NA | ||
3022250,Lactate dehydrogenase [Enzymatic activity/volume] in Serum or Plasma by Lactate to pyruvate reaction,mean,128.83333333333334,NA,NA | ||
3022250,Lactate dehydrogenase [Enzymatic activity/volume] in Serum or Plasma by Lactate to pyruvate reaction,sd,23.65938855225694,NA,NA | ||
4092281,Ex-cigarette smoker,frequency,2.5,4086518,Well nourished | ||
4276526,Cigarette smoker,mean,12.799999999999999,NA,NA | ||
4276526,Cigarette smoker,sd,3.469870314579495,NA,NA | ||
4298794,Smoker,mean,5.666666666666667,NA,NA | ||
4298794,Smoker,sd,1.1547005383792517,NA,NA | ||
40760007,HIV 1+2 Ab+HIV1 p24 Ag [Presence] in Serum or Plasma by Immunoassay,mean,0.6666666666666666,NA,NA | ||
40760007,HIV 1+2 Ab+HIV1 p24 Ag [Presence] in Serum or Plasma by Immunoassay,sd,0,NA,NA | ||
40762352,Hemoglobin A1c/Hemoglobin.total in Blood by IFCC protocol,mean,132.8,NA,NA | ||
40762352,Hemoglobin A1c/Hemoglobin.total in Blood by IFCC protocol,sd,21.25323504786977,NA,NA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
Version: 1.0 | ||
ProjectId: 2afffd4f-205d-4d1b-9fea-8d996c5e2b91 | ||
|
||
RestoreWorkspace: No | ||
SaveWorkspace: No | ||
|
34 changes: 17 additions & 17 deletions
34
app/tests/testthat/_snaps/utils_get_data/summary_stats.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
concept_id,concept_name,summary_attribute,value_as_number,value_as_string | ||
3003573,C Ag [Presence] on Red Blood Cells,frequency,2.5,Not present | ||
3005673,Hemoglobin A1c/Hemoglobin.total in Blood by HPLC,mean,123.66666666666669,NA | ||
3005673,Hemoglobin A1c/Hemoglobin.total in Blood by HPLC,sd,9.993331109628397,NA | ||
3021714,Do sup(a) Ag [Presence] on Red Blood Cells,frequency,2.5,NA | ||
3021714,Do sup(a) Ag [Presence] on Red Blood Cells,frequency,2.5,NA | ||
3022250,Lactate dehydrogenase [Enzymatic activity/volume] in Serum or Plasma by Lactate to pyruvate reaction,mean,128.83333333333334,NA | ||
3022250,Lactate dehydrogenase [Enzymatic activity/volume] in Serum or Plasma by Lactate to pyruvate reaction,sd,23.65938855225694,NA | ||
4092281,Ex-cigarette smoker,frequency,2.5,Well nourished | ||
4276526,Cigarette smoker,mean,12.8,NA | ||
4276526,Cigarette smoker,sd,3.469870314579495,NA | ||
4298794,Smoker,mean,5.666666666666667,NA | ||
4298794,Smoker,sd,1.1547005383792517,NA | ||
40760007,HIV 1+2 Ab+HIV1 p24 Ag [Presence] in Serum or Plasma by Immunoassay,mean,0.6666666666666666,NA | ||
40760007,HIV 1+2 Ab+HIV1 p24 Ag [Presence] in Serum or Plasma by Immunoassay,sd,0,NA | ||
40762352,Hemoglobin A1c/Hemoglobin.total in Blood by IFCC protocol,mean,132.8,NA | ||
40762352,Hemoglobin A1c/Hemoglobin.total in Blood by IFCC protocol,sd,21.25323504786977,NA | ||
concept_id,concept_name,summary_attribute,value_as_number,value_as_concept_id,value_as_string | ||
3003573,C Ag [Presence] on Red Blood Cells,frequency,2.5,45878588,Not present | ||
3005673,Hemoglobin A1c/Hemoglobin.total in Blood by HPLC,mean,123.66666666666669,NA,NA | ||
3005673,Hemoglobin A1c/Hemoglobin.total in Blood by HPLC,sd,9.993331109628397,NA,NA | ||
3021714,Do sup(a) Ag [Presence] on Red Blood Cells,frequency,2.5,1633781,NA | ||
3021714,Do sup(a) Ag [Presence] on Red Blood Cells,frequency,2.5,1635564,NA | ||
3022250,Lactate dehydrogenase [Enzymatic activity/volume] in Serum or Plasma by Lactate to pyruvate reaction,mean,128.83333333333334,NA,NA | ||
3022250,Lactate dehydrogenase [Enzymatic activity/volume] in Serum or Plasma by Lactate to pyruvate reaction,sd,23.65938855225694,NA,NA | ||
4092281,Ex-cigarette smoker,frequency,2.5,4086518,Well nourished | ||
4276526,Cigarette smoker,mean,12.8,NA,NA | ||
4276526,Cigarette smoker,sd,3.469870314579495,NA,NA | ||
4298794,Smoker,mean,5.666666666666667,NA,NA | ||
4298794,Smoker,sd,1.1547005383792517,NA,NA | ||
40760007,HIV 1+2 Ab+HIV1 p24 Ag [Presence] in Serum or Plasma by Immunoassay,mean,0.6666666666666666,NA,NA | ||
40760007,HIV 1+2 Ab+HIV1 p24 Ag [Presence] in Serum or Plasma by Immunoassay,sd,0,NA,NA | ||
40762352,Hemoglobin A1c/Hemoglobin.total in Blood by IFCC protocol,mean,132.8,NA,NA | ||
40762352,Hemoglobin A1c/Hemoglobin.total in Blood by IFCC protocol,sd,21.25323504786977,NA,NA |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
Version: 1.0 | ||
ProjectId: 5a758118-3fd4-4083-bcab-ef118645ab42 | ||
|
||
RestoreWorkspace: No | ||
SaveWorkspace: No | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters