About safety.viz

An agentic rebuild of the safetyGraphics interactive renderers, documented in the open for R/Pharma 2026.

The project

safety.viz is one workstream of a larger experiment: modernizing the safetyGraphics clinical-safety graphics ecosystem with AI agents doing the engineering — requirements, tests, implementation, and this site — under human review, with every requirement, design decision, and release tracked in public. The build is the subject of a developer-diary keynote at R/Pharma 2026; the running story lives on the obot roadmap.

The working method is deliberately conservative for safety software: each renderer starts from a reviewed requirement matrix in safety.agent, extracted from the original renderer's documented behavior; development is red-green (a failing, requirement-keyed test first, then the minimal change); and a renderer only counts as migrated when its live demo, requirement-traced test-evidence report, and generated API reference are all on this site. The R-side companion, gsm.safety, wraps the same committed bundle as Widget_* htmlwidgets, mirroring how gsm.kri consumes gsm.viz in the OpenRBQM ecosystem.

The audience is anyone who reviews clinical-trial safety data — medical monitor, biostatistician, or data scientist. For each migrated renderer, the proof is on this site: a live demo against real example data, an audit-style test-evidence report, and a generated API reference.

Lineage

The charts themselves are not new — that is the point. Each renderer re-implements an interactive display designed, reviewed, and used in practice under the safetyGraphics project, the open-source framework for clinical-trial safety monitoring that grew out of the ASA Biopharm / DIA Safety Working Group's Interactive Safety Graphics task force. The original implementations were built by the open-source team at Rho, Inc. on their Webcharts D3 library. safety.viz ports that behavior onto maintained Chart.js, preserving each chart's clinical intent while adding JSON-Schema data contracts and requirement-traced evidence.

Original renderers

Full credit to the original authors — each safety.viz module traces to one of these open-source Rho, Inc. repositories:

Original rendererIn safety.vizWhat it shows
safety-histogramSafety Histogram availableDistribution of a chosen lab or vital-sign measure with filters, grouping, normal-range overlay, and a linked participant listing.
safety-outlier-explorerSafety Outlier Explorer availableParticipant-level results over time: one line per participant for the selected measure against a population normal-range band, with filters, x-axis and y-limit controls, color-by grouping, and click-to-select participant detail.
safety-results-over-timeSafety Results Over Time availablePopulation-level distribution of a measure at each study visit as box-and-whisker marks, with grouping, an outlier overlay, and linear/log y-axis controls.
safety-shift-plotSafety Shift Plot availableBaseline versus comparison-visit values for a measure on a scatter with an identity line, measure and visit controls, filters, and a brush selection that opens a linked participant listing.
safety-delta-deltaSafety Delta-Delta availablePaired change-from-baseline comparison of two measures on one scatter — quadrant reference lines, an optional regression line, measure and visit pickers, and a linked per-measure detail table with sparklines.
hep-explorerHepatic Safety Explorer availableeDISH scatter of peak ALT vs peak total bilirubin (×ULN) with Hy's-Law quadrant cut-lines, a quadrant summary table, eDISH/mDISH display modes, R-Ratio and timing controls, and click-to-inspect participant visit paths.
paneled-outlier-explorerPaneled Outlier Explorer plannedSmall-multiple outlier views across a panel of related measures.
aeexplorerAdverse Event Explorer plannedHierarchical adverse-event incidence explorer with treatment-arm comparison and drill-down to participant detail.
ae-timelinesAdverse Event Timelines availableParticipant-level adverse-event timelines by severity and onset relative to study start, with serious-event marks and click-through participant detail.
web-codebookWeb Codebook plannedInteractive data codebook: variable-level summaries, distributions, and filters for any dataset.

If you use these displays in your own work, please also cite the safetyGraphics project and the original repositories above.