Wonderful-Wednesdays

Repository to hold the data and materials for the Wonderful Wednesday webinar series https://www.psiweb.org/sigs-special-interest-groups/visualisation/welcome-to-wonderful-wednesdays

View the Project on GitHub VIS-SIG/Wonderful-Wednesdays

Designing visual patient profiles

Challenge

The aim of the challenge to to design a visual patient listing or patient profile.

We are interested in novel ways to present a combination of measurements for an individual patient. For example, how can we combine information on a patients adverse events, lab measurements, medication use, vital signs, etc. We are looking for interesting ways to combine different measurements that provide new insights and help inform study teams.

The challenge aim is to provide example of how to present individual patient information. In other words, how to best design visualizations that combine measurements at the patient level in an informative manner.

Data

We revisit the Alzheimer data from a previous challenge. The data sets are in ADaM format following the CDISC standard.

In this challenge we will focus not only on the ADSL (subject level) data but also:

In this challenge we have filtered the data for an individual patient and stored the files as .csv. We provide example data sets as /csv files for a specific patient. For example, adsl-01-701-1146.csv provides the study demog data for patient 01-701-1146, adae-01-701-1146.csv provides the adverse event information for the same patient, and so on.

We also provide the original source data as .xpt in data-raw folder. If you would prefer to select a different patient, there is example code below to illustrate how this can be achieved.

Documentation summarizing providing an overview over the variables in the data set and also the clinical study can be found in the data-raw folder:

Note, PHUSE host the original source of the CDISC pilot data and documents where additional information can be found.

Examples of graphical patient profiles

Here are a selection of graphical patient profiles:

knitr::include_graphics("assets/Tufte.jpg")
Tufte's graphical medical profile.

Tufte’s graphical medical profile.

See https://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0003mm for more details.

knitr::include_graphics("assets/SAS.jpg")
Developing patient profiles in SAS

Developing patient profiles in SAS

See https://blogs.sas.com/content/graphicallyspeaking/tag/patient-profile/ for more details.

knitr::include_graphics("assets/Rpatientprofile.png")
Producing patient profiles in R with the patientProfilesVis package

Producing patient profiles in R with the patientProfilesVis package

See https://cran.r-project.org/web/packages/patientProfilesVis/ for more details

Example code to prepare data for a specific patient

Example code to load, filter and store the patient data for a single patient. Run the code chunk below to save a set of csv files for a specific patient. The unique subject identifier is required.

library(tidyverse)
library(here)

## source funtion to load, filter and save. 
source(here::here("data/2022/2022-06-08", "get_patient_data.R"))

## Call function to save data as csv files for patient 01-701-1146
get_patient_data(id = "01-701-1146")