Visualizations for Qualifer FHIR data quality and characterization metrics generated using the open source Cumulus tool. Cumulus can be run directly on files returned from a Bulk FHIR export, or on a Cumulus AWS Athena FHIR data lake.
These reports are intended to be a starting point for your FHIR data quality reporting needs, and can be easily customized to highlight different aspects of the Qualifier metrics.
Data visualizations of metrics for a sample patient population generated with Synthea. Note that while the visualizations themselves work in all modern browsers, the github hosted version used by the demo is not compatible with Firefox.
-
Install the Cumulus Data Metrics Library
pip install cumulus-library-data-metrics -
Clone this repository
git clone {repository path} -
Install dependencies
npm i
-
Follow the instructions outlined in the Cumulus Data Metrics Library documentation.
When running metrics, be sure to specify a
db-typeofduckdb, adatabasenamedmetrics.duckdband set theoutput-modetoaggregate. Your command should look something like the one below. Note that you'll need to change the path in the last parameter to point to your actual ndjson data:cumulus-library build \ --option output-mode:aggregate \ --option min-bucket-size:0 \ --db-type duckdb \ --database src/data/metrics.duckdb \ --target data_metrics \ --load-ndjson-dir {path/to/ndjson/root}Alternatively, metrics can be run on AWS Athena instance of Cumulus and metric tables can be exported to Parquet and imported into a new DuckDB database at
src/data/metrics.duckdbusingscripts/parquet_to_duckdb.pyfor local visualization. -
Once the metrics have run, launch the reporting server
npm run dev -
You can also build a static copy of the report which will generate html files in the
distdirectory that can be loaded onto any web servernpm run build
The metrics report is built with the open source Observable Framework and has no other nodejs dependencies.