[x] Confirm that the number and percentage of participants is displayed in their own container, above the controls, in the top left corner
[x] Confirm that A ⇓ Data button is displayed in the population details container and that the button exports the currently filtered data to .csv with one record per ID per event.
[x] Confirm that the Controls and Filters are positioned vertically on the left side of the chart, in a container below the population/participant details
[x] Confirm that legend renders at the top of the chart with a legend item for each event type present in the data
[x] Confirm that each event type is represented by a distinct color
[x] Confirm that clicking on and off event types in the legend acts to update the Event Type filter and which events are seen in the table
[x] Confirm that the participants displayed is working correctly by using a filter and noting a change in the number and percentage of participants shown
[x] Confirm that filtering by participant ID brings the user to the details view for that user
[x] Confirm that within the participant details view, there is a prominent Back button in the participant details container in the top left corner.
[x] Confirm that within the details view, selecting to view all participants brings the user back to the original chart screen
[x] Confirm that filtering by event type shows data for only that event type
[x] Confirm that clicking a legend item with a gray background removes that event type from the chart
[x] Confirm that clicking a legend item with a white background adds that event type to the chart
[x] Confirm that clicking a legend item updates the event type filter accordingly
[x] Confirm that Site is not one of the default filters, but that it can be added using: {"filters":[ {"value_col":"SITE","label":"Site"} ]}
[x] Confirm that if added, filtering by site changes the data points shown and alters the number and percentage of participants displayed
[x] Confirm that filtering to "Y" on ongoing status only shows data points with the right arrow icon on the end and some single day events that are designated as ongoing
[x] Confirm that filtering to "N" on ongoing status shows all data points except the ones with the right arrow icon on the end
[x] Confirm that when filters are applied, a subject not shown in the chart can be selected from the Participant View and their details listing appears as expected
[x] Confirm that entering the following settings removes the ongoing status icons and corresponding filter from the chart: "ongo_col":null
[x] Confirm that the user can highlight any one event type and it receives a bold, black fill and also outlines the event type box within the legend
[x] Confirm that the user can sort the x-axis by Day
[x] Confirm that the user can sort the x-axis by Date
[x] Confirm that the user can sort the y-axis by earliest event
[x] Confirm that the user can sort the y-axis alphanumerically
[x] Confirm that the default view does not contain the Y-axis grouping filter, but Y-axis grouping options can be added via custom settings. Ex: {"groupings":["SITE","AGE","SEX","RACE"]}
[x] Confirm that grouping the participants by a y-axis variable shows a timeline for each variable in the group
[x] Confirm that grouped variables can still be sorted using the y-axis sort dropdown
[x] Confirm that Start and End controls appear in the controls section, defaulted to the current time range. When the x-axis scale is set to date, the Start and End controls display a date range, when set to day, the Start and End controls will be numbers.
[x] Confirm that the Start and End controls allow the user to specify a day or date, depending on the current time scale
[x] Confirm that the Start control cannot be greater than the End control, and vice versa.
[x] Confirm that other functionality (filter, sort, search, etc.) works while grouping is active
[x] Confirm that the tools work when there are missing values for either day or date variables. Can use the "testData/ADTIMELINES_partialMissing.csv" dataset and note that there are 10 participants with no "Day" info, and 5 participants with no "Date" info in this data set. Participant numbers should change accordingly when switching the x-axis type between Date and Day.
[x] Confirm that all ID with missing day or date info are included in the Participant drop down. (In particular, 01-011 through 01-015 in ADTIMELINES_PartialMissing.csv should be visible in the dropdown when x-axis scale is filtered to date and those participants are not visible in the chart).
[x] Confirm that a chart can be drawn with only one x-axis type, and that in this case, the x-axis control is hidden. Use ADTIMELINES_noDays.csv - which only has date information, but not day information to make sure the X-axis control does not display.
Chart
[x] Confirm that hovering anywhere other than over a mark displays a tooltip with the x-position of the mouse (Study Day or Date)
[x] Confirm that adding the following settings to the CAT produces vertical reference lines: {"reference_lines": [ {"timepoint":100,"label":"More than 99"}, 150, {"timepoint":'2016-01-07',"label":"Half-way through"}, '2016-07-07' ]}
[x] Confirm that hovering over a vertical line displays a text that matches the reference line specification
[x] Confirm that hovering the mouse over a data point displays metadata (the name of the event, the day the event started, the day the event stopped) about that point
[x] Confirm that custom tooltips appear on mouseover by default
[x] Change the "tooltip_col" setting in CAT to another variable (e.g. "STDY") and confirm that the variable is shown within the tooltip
[x] Confirm that a reference line can be added and a corresponding frequency table appears in the left column beneath the controls, where the title of the frequency table matches the reference line tooltip, and the frequency table breaks down the events that overlap the reference line by event type, and if the timelines are grouped, by the group variable. Ex settings: {"groupings":[{"value_col":"SEX","label":"sex"}],"reference_lines":[{"timepoint":"2015-05-01","label":"timepoint"}]}
[x] Confirm that horizontal group annotations have a white background and that reference lines that overlap horizontal grouping annotations are not visible behind the horizontal grouping annotations. Ex settings: {groupings: ['RACE'], grouping_initial: 'RACE', reference_lines: ['2015-02-07']}
[x] Confirm that reference lines are draggable. Hovering over the reference lines displays a pointer hand, and clicking and dragging the reference line moves the reference line. When moved, the reference line should update the reference line's tooltip to the corresponding timepoint, and the tooltip should appear beside the cursor. When the reference line is moved, the frequency table should update accordingly as well.
[x] Confirm that a second legend appears to the left of the event type legend.
[x] Confirm that the options in the dropdowns are identical across browsers.
[x] Confirm that Custom marks (triangle, squares, diamonds) can be highlit.
Details View
[x] Confirm that clicking on an individual's ID will take the user to the individual's participant timeline
[x] Confirm that the participant's ID appears in the top left corner
[x] Confirm that legend renders at the top of the chart with a legend item for each event type present in the data
[x] Confirm that each event type is represented by a distinct color
[x] Confirm that clicking on and off event types in the legend acts to update the Event Type filter and which events are seen in the table
[x] Confirm that all controls except the Participant view, Event highlighting, and X-axis scale; and all Filters except the Event Type; are hidden in the individual participant view.
[x] Confirm that entering the following settings adds the demographic values to the participant ID presented in the participant details in the top left corner: {"id_characteristics": ["RFSTDTC", "ARM", "SEX"]}
[x] Confirm that entering the following settings changes the participant details and detail labels in the top left corner: {"id_characteristics": [ {"value_col": "RFSTDTC", "label": "Reference Start Date"}, {"value_col": "ARM", "label": "Treatment Group"}, {"value_col": "SEX", "label": "Sex"} ]}
[x] Confirm that a data listing for the participant appears below the timeline with default columns of: event type, sequence number for the event, the date and study day the event started, the date and study day the event stopped, and whether or not it is ongoing. The participant ID should not appear in the details listing, as it is shown in the participant details container at the top left of the chart. The tooltip_col variable should appear in the details listing (by default, this will be the Details column, but it can be configured).
[x] Confirm that entering the following settings changes the columns presented in the participant detail listing: {"details": ["RFSTDTC", "ARM", "SEX"]}
[x] Confirm that entering the following settings changes the columns and column headers presented in the participant detail listing: {"details": [ {"value_col": "RFSTDTC", "label": "Reference Start Date"}, {"value_col": "ARM", "label": "Treatment Group"}, {"value_col": "SEX", "label": "Sex"} ]}
[x] Confirm that changing the input on the data filters updates the timeline and listing as expected
[x] Confirm that a message stating 'No data selected.' is displayed when a combination of participant and event type is selected that returns no results
[x] Confirm the participant timeline and listing only display events that correspond with the filters selected
[x] Confirm that the table at the bottom of the participant details page has Search, sort, pagination, and CSV export turned on by default
[x] Confirm pagination is listed at the bottom of the page and the page links work
[x] Type a value into the search box and confirm that the data listing and the "records displayed" value to the right of the box both update
[x] Delete the entered value from the search bar and confirm that the data listing resets
[x] Confirm that a message stating 'No data selected.' is displayed when the search returns no results
[x] Click a column header to confirm that it sorts the data values
[x] Click the “x” on the sorted column name box and confirm that the box disappears and the sorting is no longer in effect
[x] Confirm that selecting the CSV export button allows the user to download a CSV of the data shown
[x] Confirm that entering the following settings turns off the corresponding functionality in the participant detail listing: {"details_config": { "searchable": false, "sortable": false, "pagination": false, "exportable": false }}
[x] Confirm that selecting the 'Back' button above the timeline takes the user to the main clinical timeline
[x] Confirm that no error is thrown when the x-axis time scale is toggled in the participant view, regardless of whether that ID is missing data for one or both time scales. (Use the testData/ADTIMELINES_partialMissing.csv dataset, and a participant with no Participant 01-010 or 01-011.)
Regression Tests
Chart
Details View