-
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.
Switched duckdb sort to be pandas based
- Loading branch information
1 parent
bc33066
commit 29174e4
Showing
13 changed files
with
139 additions
and
134 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
2 changes: 1 addition & 1 deletion
2
tests/test_data/duckdb_data/expected_export/core/core__count_condition_month.cube.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,3 +1,3 @@ | ||
cnt,category_code,recordedDate_month,code_display | ||
15,encounter-diagnosis,, | ||
15,,, | ||
15,encounter-diagnosis,, |
20 changes: 10 additions & 10 deletions
20
tests/test_data/duckdb_data/expected_export/core/core__count_diagnosticreport_month.cube.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,20 +1,20 @@ | ||
cnt,category_display,code_display,issued_month | ||
13,Laboratory,CBC panel - Blood by Automated count, | ||
13,,, | ||
13,,History and physical note, | ||
13,,Evaluation + Plan note, | ||
13,,CBC panel - Blood by Automated count, | ||
13,Laboratory,, | ||
13,Laboratory,CBC panel - Blood by Automated count, | ||
13,History and physical note,, | ||
13,History and physical note,History and physical note, | ||
13,History and physical note,Evaluation + Plan note, | ||
13,History and physical note,, | ||
13,Evaluation + Plan note,, | ||
13,Evaluation + Plan note,History and physical note, | ||
13,Evaluation + Plan note,Evaluation + Plan note, | ||
13,Evaluation + Plan note,, | ||
13,,History and physical note, | ||
13,,Evaluation + Plan note, | ||
13,,CBC panel - Blood by Automated count, | ||
13,,, | ||
12,cumulus__none,, | ||
11,cumulus__none,Generalized anxiety disorder 7 item (GAD-7), | ||
11,,Generalized anxiety disorder 7 item (GAD-7), | ||
10,cumulus__none,Patient Health Questionnaire 2 item (PHQ-2) [Reported], | ||
10,cumulus__none,Alcohol Use Disorder Identification Test - Consumption [AUDIT-C], | ||
11,cumulus__none,Generalized anxiety disorder 7 item (GAD-7), | ||
10,,Patient Health Questionnaire 2 item (PHQ-2) [Reported], | ||
10,,Alcohol Use Disorder Identification Test - Consumption [AUDIT-C], | ||
10,cumulus__none,Patient Health Questionnaire 2 item (PHQ-2) [Reported], | ||
10,cumulus__none,Alcohol Use Disorder Identification Test - Consumption [AUDIT-C], |
12 changes: 6 additions & 6 deletions
12
...s/test_data/duckdb_data/expected_export/core/core__count_documentreference_month.cube.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,19 +1,19 @@ | ||
cnt,type_display,author_month,class_display | ||
50,,, | ||
50,Evaluation + Plan note,, | ||
50,Emergency department note,, | ||
50,,, | ||
46,,,ambulatory | ||
46,Evaluation + Plan note,,ambulatory | ||
46,Emergency department note,,ambulatory | ||
46,,,ambulatory | ||
26,,2018-07-01, | ||
26,Evaluation + Plan note,2018-07-01, | ||
26,Emergency department note,2018-07-01, | ||
26,,2018-07-01, | ||
24,,2018-07-01,ambulatory | ||
24,,2018-06-01, | ||
24,Evaluation + Plan note,2018-07-01,ambulatory | ||
24,Evaluation + Plan note,2018-06-01, | ||
24,Emergency department note,2018-07-01,ambulatory | ||
24,Emergency department note,2018-06-01, | ||
24,,2018-07-01,ambulatory | ||
24,,2018-06-01, | ||
22,,2018-06-01,ambulatory | ||
22,Evaluation + Plan note,2018-06-01,ambulatory | ||
22,Emergency department note,2018-06-01,ambulatory | ||
22,,2018-06-01,ambulatory |
12 changes: 6 additions & 6 deletions
12
tests/test_data/duckdb_data/expected_export/core/core__count_encounter_all_types.cube.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,9 +1,9 @@ | ||
cnt,class_display,type_display,serviceType_display,priority_display | ||
50,,,cumulus__none,cumulus__none | ||
50,,,cumulus__none, | ||
50,,,,cumulus__none | ||
50,,,, | ||
46,ambulatory,,cumulus__none,cumulus__none | ||
46,ambulatory,,cumulus__none, | ||
46,ambulatory,,,cumulus__none | ||
50,,,,cumulus__none | ||
50,,,cumulus__none, | ||
50,,,cumulus__none,cumulus__none | ||
46,ambulatory,,, | ||
46,ambulatory,,,cumulus__none | ||
46,ambulatory,,cumulus__none, | ||
46,ambulatory,,cumulus__none,cumulus__none |
38 changes: 19 additions & 19 deletions
38
...test_data/duckdb_data/expected_export/core/core__count_encounter_all_types_month.cube.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,25 +1,25 @@ | ||
cnt,class_display,type_display,serviceType_display,priority_display,period_start_month | ||
50,,,cumulus__none,cumulus__none, | ||
50,,,cumulus__none,, | ||
50,,,,cumulus__none, | ||
50,,,,, | ||
46,ambulatory,,cumulus__none,cumulus__none, | ||
46,ambulatory,,cumulus__none,, | ||
46,ambulatory,,,cumulus__none, | ||
50,,,,cumulus__none, | ||
50,,,cumulus__none,, | ||
50,,,cumulus__none,cumulus__none, | ||
46,ambulatory,,,, | ||
26,,,cumulus__none,cumulus__none,2018-07-01 | ||
26,,,cumulus__none,,2018-07-01 | ||
26,,,,cumulus__none,2018-07-01 | ||
46,ambulatory,,,cumulus__none, | ||
46,ambulatory,,cumulus__none,, | ||
46,ambulatory,,cumulus__none,cumulus__none, | ||
26,,,,,2018-07-01 | ||
24,ambulatory,,cumulus__none,cumulus__none,2018-07-01 | ||
24,ambulatory,,cumulus__none,,2018-07-01 | ||
24,ambulatory,,,cumulus__none,2018-07-01 | ||
24,ambulatory,,,,2018-07-01 | ||
24,,,cumulus__none,cumulus__none,2018-06-01 | ||
24,,,cumulus__none,,2018-06-01 | ||
24,,,,cumulus__none,2018-06-01 | ||
26,,,,cumulus__none,2018-07-01 | ||
26,,,cumulus__none,,2018-07-01 | ||
26,,,cumulus__none,cumulus__none,2018-07-01 | ||
24,,,,,2018-06-01 | ||
22,ambulatory,,cumulus__none,cumulus__none,2018-06-01 | ||
22,ambulatory,,cumulus__none,,2018-06-01 | ||
22,ambulatory,,,cumulus__none,2018-06-01 | ||
24,,,,cumulus__none,2018-06-01 | ||
24,,,cumulus__none,,2018-06-01 | ||
24,,,cumulus__none,cumulus__none,2018-06-01 | ||
24,ambulatory,,,,2018-07-01 | ||
24,ambulatory,,,cumulus__none,2018-07-01 | ||
24,ambulatory,,cumulus__none,,2018-07-01 | ||
24,ambulatory,,cumulus__none,cumulus__none,2018-07-01 | ||
22,ambulatory,,,,2018-06-01 | ||
22,ambulatory,,,cumulus__none,2018-06-01 | ||
22,ambulatory,,cumulus__none,,2018-06-01 | ||
22,ambulatory,,cumulus__none,cumulus__none,2018-06-01 |
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
14 changes: 7 additions & 7 deletions
14
.../test_data/duckdb_data/expected_export/core/core__count_encounter_priority_month.cube.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,13 +1,13 @@ | ||
cnt,class_display,priority_display,period_start_month | ||
50,,cumulus__none, | ||
50,,, | ||
46,ambulatory,cumulus__none, | ||
50,,cumulus__none, | ||
46,ambulatory,, | ||
26,,cumulus__none,2018-07-01 | ||
46,ambulatory,cumulus__none, | ||
26,,,2018-07-01 | ||
24,ambulatory,cumulus__none,2018-07-01 | ||
24,ambulatory,,2018-07-01 | ||
24,,cumulus__none,2018-06-01 | ||
26,,cumulus__none,2018-07-01 | ||
24,,,2018-06-01 | ||
22,ambulatory,cumulus__none,2018-06-01 | ||
24,,cumulus__none,2018-06-01 | ||
24,ambulatory,,2018-07-01 | ||
24,ambulatory,cumulus__none,2018-07-01 | ||
22,ambulatory,,2018-06-01 | ||
22,ambulatory,cumulus__none,2018-06-01 |
14 changes: 7 additions & 7 deletions
14
...s/test_data/duckdb_data/expected_export/core/core__count_encounter_service_month.cube.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,13 +1,13 @@ | ||
cnt,class_display,serviceType_display,period_start_month | ||
50,,cumulus__none, | ||
50,,, | ||
46,ambulatory,cumulus__none, | ||
50,,cumulus__none, | ||
46,ambulatory,, | ||
26,,cumulus__none,2018-07-01 | ||
46,ambulatory,cumulus__none, | ||
26,,,2018-07-01 | ||
24,ambulatory,cumulus__none,2018-07-01 | ||
24,ambulatory,,2018-07-01 | ||
24,,cumulus__none,2018-06-01 | ||
26,,cumulus__none,2018-07-01 | ||
24,,,2018-06-01 | ||
22,ambulatory,cumulus__none,2018-06-01 | ||
24,,cumulus__none,2018-06-01 | ||
24,ambulatory,,2018-07-01 | ||
24,ambulatory,cumulus__none,2018-07-01 | ||
22,ambulatory,,2018-06-01 | ||
22,ambulatory,cumulus__none,2018-06-01 |
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
14 changes: 7 additions & 7 deletions
14
...s/test_data/duckdb_data/expected_export/core/core__count_medicationrequest_month.cube.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,13 +1,13 @@ | ||
cnt,status,intent,authoredon_month,medication_display | ||
27,,order,, | ||
27,,,, | ||
26,stopped,order,, | ||
27,,order,, | ||
26,stopped,,, | ||
15,stopped,order,2018-07-01, | ||
15,stopped,,2018-07-01, | ||
15,,order,2018-07-01, | ||
26,stopped,order,, | ||
15,,,2018-07-01, | ||
12,,order,2018-06-01, | ||
15,,order,2018-07-01, | ||
15,stopped,,2018-07-01, | ||
15,stopped,order,2018-07-01, | ||
12,,,2018-06-01, | ||
11,stopped,order,2018-06-01, | ||
12,,order,2018-06-01, | ||
11,stopped,,2018-06-01, | ||
11,stopped,order,2018-06-01, |
22 changes: 11 additions & 11 deletions
22
tests/test_data/duckdb_data/expected_export/core/core__count_observation_lab_month.cube.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,15 +1,15 @@ | ||
cnt,effectiveDateTime_month,observation_code,valueCodeableConcept_display,class_display | ||
20,,,,ambulatory | ||
20,,,, | ||
10,,5778-6,Brown color (qualifier value),ambulatory | ||
10,,5778-6,Brown color (qualifier value), | ||
10,,5778-6,,ambulatory | ||
10,,5778-6,, | ||
10,,34533-0,Urine smell ammoniacal (finding),ambulatory | ||
10,,34533-0,Urine smell ammoniacal (finding), | ||
10,,34533-0,,ambulatory | ||
10,,34533-0,, | ||
10,,,Urine smell ammoniacal (finding),ambulatory | ||
20,,,,ambulatory | ||
10,,,Urine smell ammoniacal (finding), | ||
10,,,Brown color (qualifier value),ambulatory | ||
10,,,Urine smell ammoniacal (finding),ambulatory | ||
10,,,Brown color (qualifier value), | ||
10,,,Brown color (qualifier value),ambulatory | ||
10,,5778-6,, | ||
10,,5778-6,,ambulatory | ||
10,,5778-6,Brown color (qualifier value), | ||
10,,5778-6,Brown color (qualifier value),ambulatory | ||
10,,34533-0,, | ||
10,,34533-0,,ambulatory | ||
10,,34533-0,Urine smell ammoniacal (finding), | ||
10,,34533-0,Urine smell ammoniacal (finding),ambulatory |
50 changes: 25 additions & 25 deletions
50
tests/test_data/duckdb_data/expected_export/core/core__count_procedure_month.cube.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,33 +1,33 @@ | ||
cnt,category_display,code_display,performedDateTime_month | ||
13,cumulus__none,Medication Reconciliation (procedure),cumulus__none | ||
13,cumulus__none,Medication Reconciliation (procedure), | ||
13,cumulus__none,,cumulus__none | ||
13,cumulus__none,, | ||
13,,Medication Reconciliation (procedure),cumulus__none | ||
13,,Medication Reconciliation (procedure), | ||
13,,,cumulus__none | ||
13,,, | ||
11,cumulus__none,Depression screening (procedure),cumulus__none | ||
11,cumulus__none,Depression screening (procedure), | ||
11,cumulus__none,Assessment of substance use (procedure),cumulus__none | ||
11,cumulus__none,Assessment of substance use (procedure), | ||
11,cumulus__none,Assessment of anxiety (procedure),cumulus__none | ||
11,cumulus__none,Assessment of anxiety (procedure), | ||
11,,Depression screening (procedure),cumulus__none | ||
13,,,cumulus__none | ||
13,,Medication Reconciliation (procedure), | ||
13,,Medication Reconciliation (procedure),cumulus__none | ||
13,cumulus__none,, | ||
13,cumulus__none,,cumulus__none | ||
13,cumulus__none,Medication Reconciliation (procedure), | ||
13,cumulus__none,Medication Reconciliation (procedure),cumulus__none | ||
11,,Depression screening (procedure), | ||
11,,Assessment of substance use (procedure),cumulus__none | ||
11,,Depression screening (procedure),cumulus__none | ||
11,,Assessment of substance use (procedure), | ||
11,,Assessment of anxiety (procedure),cumulus__none | ||
11,,Assessment of substance use (procedure),cumulus__none | ||
11,,Assessment of anxiety (procedure), | ||
10,cumulus__none,Depression screening using Patient Health Questionnaire Two-Item score (procedure),cumulus__none | ||
10,cumulus__none,Depression screening using Patient Health Questionnaire Two-Item score (procedure), | ||
10,cumulus__none,Assessment using Alcohol Use Disorders Identification Test - Consumption (procedure),cumulus__none | ||
10,cumulus__none,Assessment using Alcohol Use Disorders Identification Test - Consumption (procedure), | ||
10,cumulus__none,Assessment of health and social care needs (procedure),cumulus__none | ||
10,cumulus__none,Assessment of health and social care needs (procedure), | ||
10,,Depression screening using Patient Health Questionnaire Two-Item score (procedure),cumulus__none | ||
11,,Assessment of anxiety (procedure),cumulus__none | ||
11,cumulus__none,Depression screening (procedure), | ||
11,cumulus__none,Depression screening (procedure),cumulus__none | ||
11,cumulus__none,Assessment of substance use (procedure), | ||
11,cumulus__none,Assessment of substance use (procedure),cumulus__none | ||
11,cumulus__none,Assessment of anxiety (procedure), | ||
11,cumulus__none,Assessment of anxiety (procedure),cumulus__none | ||
10,,Depression screening using Patient Health Questionnaire Two-Item score (procedure), | ||
10,,Assessment using Alcohol Use Disorders Identification Test - Consumption (procedure),cumulus__none | ||
10,,Depression screening using Patient Health Questionnaire Two-Item score (procedure),cumulus__none | ||
10,,Assessment using Alcohol Use Disorders Identification Test - Consumption (procedure), | ||
10,,Assessment of health and social care needs (procedure),cumulus__none | ||
10,,Assessment using Alcohol Use Disorders Identification Test - Consumption (procedure),cumulus__none | ||
10,,Assessment of health and social care needs (procedure), | ||
10,,Assessment of health and social care needs (procedure),cumulus__none | ||
10,cumulus__none,Depression screening using Patient Health Questionnaire Two-Item score (procedure), | ||
10,cumulus__none,Depression screening using Patient Health Questionnaire Two-Item score (procedure),cumulus__none | ||
10,cumulus__none,Assessment using Alcohol Use Disorders Identification Test - Consumption (procedure), | ||
10,cumulus__none,Assessment using Alcohol Use Disorders Identification Test - Consumption (procedure),cumulus__none | ||
10,cumulus__none,Assessment of health and social care needs (procedure), | ||
10,cumulus__none,Assessment of health and social care needs (procedure),cumulus__none |