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 renderer | In safety.viz | What it shows |
|---|---|---|
safety-histogram | Safety Histogram available | Distribution of a chosen lab or vital-sign measure with filters, grouping, normal-range overlay, and a linked participant listing. |
safety-outlier-explorer | Safety Outlier Explorer available | Participant-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-time | Safety Results Over Time available | Population-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-plot | Safety Shift Plot available | Baseline 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-delta | Safety Delta-Delta available | Paired 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-explorer | Hepatic Safety Explorer available | eDISH 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-explorer | Paneled Outlier Explorer planned | Small-multiple outlier views across a panel of related measures. |
aeexplorer | Adverse Event Explorer planned | Hierarchical adverse-event incidence explorer with treatment-arm comparison and drill-down to participant detail. |
ae-timelines | Adverse Event Timelines available | Participant-level adverse-event timelines by severity and onset relative to study start, with serious-event marks and click-through participant detail. |
web-codebook | Web Codebook planned | Interactive 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.