Generates a mermaid graph TD diagram showing how cohorts in a
CohortManifest depend on each other. Dependency data is read directly from
the SQLite manifest database — no sidecar JSON files required.
Prints the mermaid string to the console (renders automatically in RStudio, Quarto, and GitHub markdown) and returns it invisibly.
Arguments
- manifest
A CohortManifest R6 object.
Details
Node shapes by cohort type:
Rectangle
[label]— circe (base) cohortCircle
(label)— subset cohortDiamond
{{label}}— union cohortHexagon
{{{{label}}}}— complement / composite cohort
Arrows show dependency direction: parent → dependent cohort.
For a tabular view of derived cohorts and their rule parameters, see
CohortManifest$reviewDependentCohorts().