Skip to content

About

Visualizations for FHIR data quality and characterization metrics generated with cumulus-library-data-metrics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Cumulus Data Metrics Reporting

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.

Demo

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.

Setup

  1. Install git, nodejs and python

  2. Install the Cumulus Data Metrics Library

    pip install cumulus-library-data-metrics
    
  3. Clone this repository

    git clone {repository path}
    
  4. Install dependencies

    npm i
    

Calculate Metrics

  1. Follow the instructions outlined in the Cumulus Data Metrics Library documentation.

    When running metrics, be sure to specify a db-type of duckdb, a database named metrics.duckdb and set the output-mode to aggregate. 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.duckdb using scripts/parquet_to_duckdb.py for local visualization.

  2. Once the metrics have run, launch the reporting server

    npm run dev
    
  3. You can also build a static copy of the report which will generate html files in the dist directory that can be loaded onto any web server

    npm run build
    

Updating and Customizing Reports

The metrics report is built with the open source Observable Framework and has no other nodejs dependencies.

About

Visualizations for FHIR data quality and characterization metrics generated with cumulus-library-data-metrics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages