项目作者: RhoInc

项目描述 :
AE Timelines built using Webcharts
高级语言: JavaScript
项目地址: git://github.com/RhoInc/ae-timelines.git
创建时间: 2016-02-08T19:09:36Z
项目社区:https://github.com/RhoInc/ae-timelines

开源协议:MIT License

下载


Adverse Event Timelines

alt tag

Overview

AE-timelines is a JavaScript library built using Webcharts (1, 2) that creates an adverse event timeline for each participant in a clinical trial. Clicking on the y-axis tick labels also opens an adverse event-level participant view.

Users can filter and sort the timelines and drill down to each participant; the full functionality is described here.
The library expects an ADaM data structure by default but can be customized to use any dataset that is one record per adverse event.
Full details about chart configuration are here.

Typical Usage

Provided the input data matches the ADaM standard, the code to initialize the chart looks like this:

  1. d3.csv('ADAE.csv', function(data) {
  2. aeTimelines('body', {}).init(data);
  3. });

The chart can be configured to facilitate non-standard data formats and to alter the chart itself. Overwrite the defaults with a custom settings object like so:

  1. let settings = {
  2. stdy_col: 'AESTDY',
  3. endy_col: 'AEENDY',
  4. color: {
  5. value_col: 'AEREL',
  6. label: 'Relationship'},
  7. filters: [
  8. {value_col: 'SEX', label: 'Sex'},
  9. {value_col: 'RACE', label: 'Race'},
  10. {value_col: 'ARM', label: 'Description of Planned Arm'}],
  11. details: [
  12. {value_col: 'INVID', label: 'Investigator Identifier'},
  13. {value_col: 'AGE', label: 'Age'},
  14. {value_col: 'AEDECOD', label: 'Dictionary-Derived Term'},
  15. {value_col: 'AEBODSYS', label: 'Body System or Organ Class'}],
  16. };
  17. d3.csv('AE.csv', function(data) {
  18. aeTimelines('body', settings).init(data);
  19. });