Skip to content
On this page

Enabled Vital Signs

Enabled Vital Signs is a list of vital signs that are set to be measured in the course of a specific session. The Enabled Vital Signs list is the intersection of all vital signs that are supported according to the following criteria:

  • Device - vital signs that are supported by the current device.
  • Measurement Mode - vital signs that are supported by the current measurement mode (face/finger/polar).
  • License - vital signs that are determined by the current license, as specified in Binah's license agreement.

Receiving Enabled Vital Signs

The application can receive information regarding the enabled vital signs by using useEnabledVitalSigns hook:

TypeScript
import { 
    useEnabledVitalSigns
} from 'binah-react-native-sdk';

const enabledVitalSigns = useEnabledVitalSigns();

React.useEffect(() => {
    if (enabledVitalSigns) {
        // Receive the enabled vital signs for the session
    }
}, [enabledVitalSigns]);

Checking if a Vital Sign is Enabled

The following code can be used to determine the supported vital signs:

TypeScript
import { 
    VitalSignTypes,
    useEnabledVitalSigns
} from 'binah-react-native-sdk';

const enabledVitalSigns = useEnabledVitalSigns();

React.useEffect(() => {
    if (enabledVitalSigns) {
        // Checking if pulse rate is enabled
        console.log(`Is pulse rate enabled: ${enabledVitalSigns.isEnabled(VitalSignTypes.PULSE_RATE)}`)
        
        // Checking if pulse rate is enabled for the specific device:
        console.log(`Is pulse rate device enabled: ${enabledVitalSigns.deviceEnabled(VitalSignTypes.PULSE_RATE)}`);

        // Checking if pulse rate is enabled for the measurement mode:
        console.log(`Is pulse rate mode enabled: ${enabledVitalSigns.measurementModeEnabled(VitalSignTypes.PULSE_RATE)}`);

        // Checking if pulse rate is enabled for the license:
        console.log(`Is pulse rate license enabled: ${enabledVitalSigns.licenseEnabled(VitalSignTypes.PULSE_RATE)}`);
    }
}, [enabledVitalSigns]);