Skip to content

Commit

Permalink
v2 cutover
Browse files Browse the repository at this point in the history
  • Loading branch information
dogversioning committed Apr 3, 2024
1 parent 368507d commit f31256e
Show file tree
Hide file tree
Showing 7 changed files with 951 additions and 302 deletions.
14 changes: 5 additions & 9 deletions cumulus_library_covid/covid_symptom/counts.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from pathlib import Path
from cumulus_library.schema.counts import CountsBuilder
from cumulus_library.statistics.counts import CountsBuilder


class CovidCountsBuilder(CountsBuilder):
Expand Down Expand Up @@ -98,21 +98,17 @@ def count_symptom(self, duration="week"):
]
return self.count_encounter(view_name, from_table, cols)

def prepare_queries(self, cursor=None, schema=None):
def prepare_queries(self, cursor=None, schema=None, **kwargs):
self.queries = [
self.count_dx("month"),
self.count_dx("week"),
self.count_pcr("month"),
self.count_pcr("week"),
#self.count_pcr("month"),
#self.count_pcr("week"),
self.count_study_period("month"),
self.count_study_period("week"),
self.count_symptom("week"),
self.count_symptom("month"),
self.count_prevalence_ed("month"),
self.count_prevalence_ed("week"),
]


if __name__ == "__main__":
builder = CovidCountsBuilder()
builder.write_counts(f"{Path(__file__).resolve().parent}/counts.sql")
self.write_queries(path=Path(__file__).resolve().parent/ "counts.sql")
Loading

0 comments on commit f31256e

Please sign in to comment.