Calculates the instantaneous heart rate, average heart rate, input time interval, and also indicates conditions like Bradycardia and Tachycardia for the window size selected.
The output also includes the total number of requests made to the service.
LICENSE.md ( MIT License)
The program may be started by posting the following inputs for Average Heart Rate and Instantaneous heart rate respectively on the web server:
Python 3.6
Input parameters:
FOR INSTANTANEOUS HEART RATE:
{
"time": [1, 2, 3, ...],
"voltage": [20, 1, 20, 14, ...]
}
FOR AVERAGE HEART RATE:
{
"averaging_period": 20,
"time": [1, 2, 3, ...],
"voltage": [100, 60, 62, ...]
}
The output for the Instantaneous Heart Rate with the HR and Tachy and Brady cardia vectors is in the following form:
{
"time": [1, 2, 3, ...],
"instantaneous_heart_rate": [100, 60, 62, ...],
"tachycardia_annotations": [true, false, true, ...],
"bradycardia_annotations": [true, false, true, ...]
}
The output for the Average Heart Rate with the Avg HR, Brady and Tachcardia vectors is in the following form:
{
"time": [1, 2, 3, ...],
"averaging_period": 20,
"instantaneous_heart_rate": [100, 60, 62, ...],
"tachycardia_annotations": [true, false, true, ...],
"bradycardia_annotations": [true, false, true, ...]
}