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'
.