Diabetes
The diabetes module owns the diabetes and complication state-transition calculations. It runs as a marginal disease process over the demographic population rather than maintaining a second population.
Screening, glycaemic-control and foot-care calculations live in separate intervention modules. Tobacco, alcohol, physical inactivity and selected dietary risk factors publish exposure or excess-risk inputs. Where several prevalence-based risk factors affect the same disease, the shared risk-factor reconciliation module calculates their common population-attributable-fraction denominator and publishes the final diabetes incidence modifier.
The compiler inserts selected components, reconciles the opening disease states and supplies annual population and mortality inputs. Baseline and comparison have the same graph and differ only in parameters.
The source repository is ncd-diabetes (opens in a new tab). Its contract declares the accepted intervention channels, risk-factor inputs, annual states and metric outputs.