Interactive Activity Heat Maps with Meditech Data

ScreenShot

Cal-Heatmaps wih CSV data

A simple set of multivariate, time series heat maps using cal-heatmapsd3.js and data from the Meditech Dirty Repository.

Code now at the Github Repo (I’ve abandoned the infuriating and frankly futile process of trying to embed and format code blocks here in WordPress.com).

The trailing seven days of data is illustrated by day and summarized by hour of each day.

Each cell represents an hour and the roll-over tool tip summarizes the activity for that hour.

The data source is a series of flat files (CSV) exported from the Meditech DR. You can automate this CSV Export with some PowerShell.

[gist https://gist.github.com/nyquist212/ccf18a7959fe66c8abee]

Save this code with a .PS1 file extension and schedule it to execute with either Windows Task Scheduler or a SQL Server Agent Job.

If you want to connect the visualization to a live query and feed the visualization directly from the DR, see this post –

https://nyquist212.wordpress.com/2014/03/04/getting-json-from-ms-sql-server-2012-with-php/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s