Skip to main content

Cardio Risk

This example demonstrates a privacy-preserving cardiovascular risk assessment program. It calculates a risk score based on several private health metrics (such as blood pressure, cholesterol levels, etc.) without exposing the individual values. The program uses secure computation to protect sensitive medical data while still providing meaningful risk assessment results.

The risk score is computed on a scale from 0 to 100, where:

  • 0-20: Low risk
  • 21-50: Moderate risk
  • 51-100: High risk
src/cardio_risk.py
loading...

Run and test the cardio_risk program

1. Open "Nada by Example"

Open in Gitpod

2. Run the program with inputs from the test file

nada run cardio_risk_0_test

3. Test the program with inputs from the test file against the expected_outputs from the test file

nada test cardio_risk_0_test