Appearance
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).
- 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 implementing onEnabledVitalSigns
as part of SessionInfoListener
:
Dart
void onSessionStateChange(SessionState sessionState) {
// Receive session state updates
}
void onWarning(WarningData warningData) {
// Receive warnings
}
void onError(ErrorData errorData) {
// Receive errors
}
void onLicenseInfo(LicenseInfo licenseInfo) {
// Receive license info
}
void onEnabledVitalSigns(SessionEnabledVitalSigns enabledVitalSigns) {
// Receive the enabled vital signs for the session
}
Checking if a Vital Sign is Enabled
The following code can be used to determine the supported vital signs:
Dart
@override
void onEnabledVitalSigns(SessionEnabledVitalSigns enabledVitalSigns) {
// Checking if pulse rate is enabled
print("Is pulse rate enabled: ${enabledVitalSigns.isEnabled(VitalSignTypes.pulseRate)}");
// Checking if pulse rate is enabled for the specific device:
print("Is pulse rate device enabled: ${enabledVitalSigns.isDeviceEnabled(VitalSignTypes.pulseRate)}");
// Checking if pulse rate is enabled for the measurement mode:
print("Is pulse rate mode enabled: ${enabledVitalSigns.isMeasurementModeEnabled(VitalSignTypes.pulseRate)}");
// Checking if pulse rate is enabled for the license:
print("Is pulse rate license enabled: ${enabledVitalSigns.isLicenseEnabled(VitalSignTypes.pulseRate)}");
}