Skip to content

v1.0.0

Latest
Compare
Choose a tag to compare
@lazarulian lazarulian released this 14 Aug 03:10
· 9 commits to main since this release
300dab5

Initial release for @enhancedcpet/system-interface.

Features in v1.0.0

  • Flexible System Interface: Easily extensible to support more systems in the future.
  • COSMED Data Extraction: Extracts demographic and time series data from COSMED system files.

Installation

To extract data from a supported system:

npm i system-interface

Usage

import { SystemInterface } from 'system-interface';

const dataFromFile = SystemInterface.extractFileData('filepath', 'system');
const dataFromBuffer = SystemInterface.extractFileData(buffer, 'system');

// output
{
  demographics: {
    id: '1',
    fname: 'Apurva',
    lname: 'Shah',
    ...
  },
  timeSeries: {
    t: [...],
    power: [...],
    vo2: [...],
    vco2: [...],
    ve: [...],
    hr: [...],
  }
}

Valid systems as of right now consist of: 'cosmed'.