Skip to content

Commit

Permalink
Uprev unit test python, sqlfluff pass
Browse files Browse the repository at this point in the history
  • Loading branch information
dogversioning committed Apr 4, 2024
1 parent 4a60dc4 commit 749a0b7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cumulus_library_covid/covid_symptom/define_ed_note.sql
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ FROM
'Emergency department Consult note'
)
)
AS t (from_system, from_code, from_display, system, code, display); --noqa: AL05
AS t (from_system, from_code, from_display, system, code, display); --noqa: AL05
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ FROM (
('delta', date('2021-06-21'), date('2021-12-19')),
('omicron', date('2021-12-20'), date('2022-06-01'))
)
AS t (variant_era, variant_start, variant_end);
AS t (variant_era, variant_start, variant_end);
2 changes: 1 addition & 1 deletion cumulus_library_covid/covid_symptom/define_symptom.sql
Original file line number Diff line number Diff line change
Expand Up @@ -528,4 +528,4 @@ FROM (
('C0242429', 'T184', '162397003', 'SNOMEDCT_US', 'dynophagia', 'Sore throat'),
('C0242429', 'T184', 'R07.0', 'ICD10CM', 'R07.0', 'Sore throat')
)
AS t (cui, tui, code, code_system, text, pref);
AS t (cui, tui, code, code_system, text, pref);
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ join_2020 AS (
COALESCE(pcr.covid_pcr_result_display, 'None') AS covid_pcr_result,
COALESCE(dx.cond_code, 'None') AS covid_icd10,
(dx.cond_code IS NOT NULL OR pcr.covid_pcr_result_display = 'POSITIVE')
AS covid_dx,
AS covid_dx,
COALESCE(cn.symptom_display, 'None') AS covid_symptom,
COALESCE(icd10.icd10_display, 'None') AS symptom_icd10_display
FROM study_period AS p
Expand Down
3 changes: 1 addition & 2 deletions cumulus_library_covid/covid_symptom/table_symptom.sql
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ WITH temp_period AS (
age_group,
gender,
race_display,
enc_class_display
AS ed_note
enc_class_display AS ed_note
FROM covid_symptom__study_period
),

Expand Down

0 comments on commit 749a0b7

Please sign in to comment.