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
- Nada program
- Test 0
- Test 1
- Test 2
- Test 3
src/cardio_risk.py
loading...
tests/cardio_risk_0_test.yaml
loading...
tests/cardio_risk_1_test.yaml
loading...
tests/cardio_risk_2_test.yaml
loading...
tests/cardio_risk_3_test.yaml
loading...
Run and test the cardio_risk program
1. Open "Nada by Example"
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