getBpgDataUnallocated(devId: Object)

Requires:
@ray-js/ray≥1.5.40
import { health } from '@ray-js/ray';

const { getBpgDataUnallocated } = health;

// Promise usage
try {
  const res = await getBpgDataUnallocated({ ...params });
  console.log(res);
} catch (err) {
  console.log(err.errorMsg);
}

Description

Get unassigned blood pressure data

Parameters

PropertyTypeRequiredDescription
devIdstringYesDevice ID
limitnumberYesPage size
offsetnumberYesPage number

Return Value

Type: Promise<Object↓>
PropertyTypeDescription
Blood pressure data list
hasNextbooleanHas next page
totalCountnumberTotal number of blood pressure records

Valid Values

return.datas.bpLevel
ValueDescriptionSince
WHO_LV0--
WHO_LV1--
WHO_LV2--
WHO_LV3--
WHO_LV4--
WHO_LV5--
return.datas.reportType
ValueDescriptionSince
1--
2--

Examples

Basic usage

import { health } from '@ray-js/ray'

health.getBpgDataUnallocated({
  devId: 'vdevo169477319679442',
  offset: 0,
  limit: 20,
}).then((res) => {
  console.log('Unassigned data:', res);
}).catch((error) => {
  console.error(error);
});