October 9, 2017 / Volker Harm
Interactive Visualization of Clinical Laboratory Parameters with SAS - - PowerPoint PPT Presentation
Interactive Visualization of Clinical Laboratory Parameters with SAS - - PowerPoint PPT Presentation
Interactive Visualization of Clinical Laboratory Parameters with SAS Stored Processes and jQuery AJAX PhUSE Conference 2017, Edinburgh October 9, 2017 / Volker Harm Motivation Fundamental steps The dashboard structure The data
Agenda
Interactive Visualization of Clinical LaboratoryParameters Page 2
- Motivation
- Fundamental steps
- The dashboard structure
- The data
- The selections
- The graph
- Some refinements
- Autocomplete selection with jQuery AJAX
- One step beyond
Innovation initiatives at Bayer
- Visualizing data is one of the hot topics
What could be the part of our Research and Clinical Sciences Statistics department?
- Idea of my boss:
- Could we use the SAS Stored Processes to present Clinical Laboratory Data
in a “dashboard” interactively on the intranet?
- As a prerequisite he had a tool collect the data in one standardized SAS data
set.
- Typical Phase I studies are small and results are examined carefully for each
patient and parameter.
- A presentation on screen should much more convenient than wading through
a pile of tables and figures on paper.
Motivation
Interactive Visualization of Clinical LaboratoryParameters Page 3
And here is the requirements document:
Interactive Visualization of Clinical LaboratoryParameters Page 4
And this is, what I found with Google
Interactive Visualization of Clinical LaboratoryParameters Page 5
The main SAS Stored Process
Let’s start: SAS Sample 43723
Interactive Visualization of Clinical LaboratoryParameters Page 6
The dashboard structure
The first request
Interactive Visualization of Clinical LaboratoryParameters Page 7
The selection form
The second request
Interactive Visualization of Clinical LaboratoryParameters Page 8
Individual measurements (LBSTRESN, LBSTRESU)
- For each treatment (TRTP, TRTPN)
- For each parameter (LBTEST, LBTESTCD)
- For each subject (USUBJID)
- For each visit (VISIT, VISITNUM)
Summary data over subjects
- For each treatment
- For each parameter
- For each visit
Clinical Laboratory Parameter Data
Interactive Visualization of Clinical LaboratoryParameters Page 9
For sake of brevity we will concentrate on individual measurements.
Structure of Laboratory Data Set
Interactive Visualization of Clinical LaboratoryParameters Page 10
- cp. Shostack, Jack.2014. SAS Programming in the Pharmaceutical Industry, Second Edition. Cary, NC: SAS Institute Inc
Creation of selection tags with SAS
Interactive Visualization of Clinical LaboratoryParameters Page 11
The report for the selected parameters
The third request
Interactive Visualization of Clinical LaboratoryParameters Page 12
Visualization dashboard
Interactive Visualization of Clinical LaboratoryParameters Page 13
Autocomplete selection with jQuery AJAX
Interactive Visualization of Clinical LaboratoryParameters Page 14
The jQuery script
Interactive Visualization of Clinical LaboratoryParameters Page 15
Code for the SAS Stored Process lookupParameters is not presented.
The code for the layout
Interactive Visualization of Clinical LaboratoryParameters Page 16
One step beyond
Interactive Visualization of Clinical LaboratoryParameters Page 17
Use plotly.js present the graph
Interactive Visualization of Clinical LaboratoryParameters Page 18
Did I meet the requirements
Interactive Visualization of Clinical LaboratoryParameters Page 19
The structure of SAS Sample 43723 provides a means to produce basic dashboards.
- It is not easy to understand, how it works.
- The internet says it is outdated, so there is no documentation.
- But: It works! And there many, many ways to enhance it.
jQuery AJAX is mainly addressed at web page builder.
- You have to become one, if you want to use it effectively.
Wait for the paper!
- The paper contains code for fully worked out example and a long list of
recommended reading. If you are using SAS Stored Processes: Try out plotly.js! If you are interested in all this stuff: Go to presentation AD02!
Take home
Interactive Visualization of Clinical LaboratoryParameters Page 20