Skip to content
/ cgm Public
forked from jmandel/cgm

CGM Data: FHIR Representation, Visualization, and Sharing

Notifications You must be signed in to change notification settings

RAVCARE/cgm

 
 

Repository files navigation

CGM Data in FHIR: Playground for Visualization and Sharing

This project demonstrates how to represent Continuous Glucose Monitoring (CGM) data using the FHIR standard, generate an Ambulatory Glucose Profile (AGP) from the CGM data, and share the data using a SMART Health Link.

Overview

The project consists of the following main components:

  • CGM Data Parsing: The parseCSV function in parseCSV.ts reads a CSV file containing CGM data and converts it into a FHIR Bundle resource. The Bundle resource includes Device and Observation resources representing the CGM device and glucose readings, respectively.
  • AGP Generation: The AGPReport component in AGP.tsx takes the parsed CGM data as input and generates an Ambulatory Glucose Profile (AGP) visualization. The AGP includes various charts and metrics, such as the glucose profile chart, glucose statistics, time in ranges, and daily glucose profiles.
  • SMART Health Link Integration: The createEncryptedHealthCard function in createEncryptedHealthCard.ts encrypts the FHIR Bundle containing the CGM data and generates a SMART Health Link. The SMART Health Link allows sharing the encrypted CGM data with other applications or individuals.

About

CGM Data: FHIR Representation, Visualization, and Sharing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 95.6%
  • CSS 2.8%
  • Other 1.6%