Skip to content

Repository files navigation

CVD Risk Table Engine

Dart and JavaScript implementations of a 10-year cardiovascular-risk table lookup configured from the South-East Asia / Indonesia data used by KalDu PKV.

Production showcase

These packages contain reusable calculation components extracted from KalDu PKV. They are not the complete application source code.

Packages

Package Runtime
packages/dart Dart and Flutter
packages/javascript Node.js and modern browsers

Both implementations are checked against shared cases in fixtures/golden-cases.json.

Example result

For the synthetic male-smoker-non-lab fixture, both packages return the same essential output:

{
  "risk": 0.13,
  "riskPercent": 13,
  "timeHorizonYears": 10,
  "region": "south-east-asia-indonesia",
  "tableVersion": "south-east-asia-indonesia-unverified-v1",
  "usesAgeEndpoint": false,
  "requestedAge": 55,
  "effectiveAge": 55
}

The runtime result also includes a machine-readable category and medical disclaimer.

Important release status

This repository is not ready for public package-registry publication. The calculation code is testable and MIT-licensed, but the official table edition, source URL, attribution wording, and redistribution license have not been confirmed from local project materials. See DATA_PROVENANCE.md, DATA-LICENSE.md, and LICENSE-STATUS.md.

License

Original code and documentation are available under the MIT License. The numeric table contents in packages/dart/lib/data/risk_prediction_tables.dart and packages/javascript/risk-tables.js are excluded from that grant; see DATA-LICENSE.md.

Medical boundary

The output is an educational table-based estimate, not a diagnosis or treatment recommendation. By default, ages outside the source table range of 40–74 are rejected. Endpoint mapping must be explicitly requested by the caller and is reported in the result.

Read MEDICAL_SAFETY.md before integrating either package.

About

Cross-language CVD risk table engine that implemented on KalDu PKV

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages