seismometer
seismometer copied to clipboard
High level (e.g., organization) data filtering
Is your feature request related to a problem? Please describe
It would be helpful to limit data to a specific organization/department at a higher level when Seismogram is initialized (i.e., in sg.dataframe).
We should also support dynamic widgets to provide better UI when there are meaningful hierarchies among certain subset of columns. E.g., facility->department->specialty where widget options for later columns is determined by the values selected for the earlier columns.
Describe the solution you'd like
Add a new item to usage_config of the form:
cohorts:
- source: org # column name in the dataframe
values: ["org1"] # list of associated values to keep
- source: dep
values: ["dep1", "dep2"]
we could also support:
- source: patient_number
lower_bound: 0
upper_bound: 100000
to filter numeric data.