Appearance
ASCVD Risk
The ASCVD Risk value is sent as part of the final results.
Note
The ASCVD (Atherosclerotic Cardiovascular Disease) Risk Score is a percentage value that estimates an individual's 10-year risk of developing heart disease or stroke. The SDK returns a maximum value of 30, meaning that any result at this threshold represents a high ASCVD risk, including cases where the actual risk may be greater.
The User Information is required to calculate the ASCVD Risk result. If any details are missing from the User Information, the ASCVD Risk will not be calculated. For more information on User Information, see the User Information page.
This indicator is supported for face measurements.
The application can receive the ASCVD Risk result by implementing VitalSignsListener:
Kotlin
override fun onFinalResults(results: VitalSignsResults) {
runOnUiThread {
(results.getResult(VitalSignTypes.ASCVD_RISK) as? VitalSignASCVDRisk)?.let { ascvdRisk ->
Log.i("VITAL SIGN", "ASCVD Risk: ${ascvdRisk.value}")
}
}
}Java
@Override
public void onFinalResults(final VitalSignsResults results) {
runOnUiThread(() -> {
VitalSignASCVDRisk ascvdRisk = (VitalSignDiabetesRisk) results.getResult(VitalSignTypes.ASCVD_RISK);
if (ascvdRisk != null) {
Log.i("VITAL SIGN", "ASCVD Risk: " + ascvdRisk.getValue());
}
});
}For general information about vital signs see the Vital Signs and Health Indicators Information Document.
For a list of supported vital signs by platform and measurement mode (face/polar), along with their required measurement durations, refer to the Indicators Technical Information page.
Important
Note that vital signs are sent on a background thread. The application must switch to the UI thread in order to perform UI updates.