Maintenance Notice

Due to necessary scheduled maintenance, the JMIR Publications website will be unavailable from Wednesday, July 01, 2020 at 8:00 PM to 10:00 PM EST. We apologize in advance for any inconvenience this may cause you.

Who will be affected?

Accepted for/Published in: JMIR Formative Research

Date Submitted: Jul 19, 2023
Date Accepted: Feb 5, 2024

The final, peer-reviewed published version of this preprint can be found here:

Using a Semiautomated Procedure (CleanADHdata.R Script) to Clean Electronic Adherence Monitoring Data: Tutorial

Bandiera C, Pasquier J, Locatelli I, Schneider MP

Using a Semiautomated Procedure (CleanADHdata.R Script) to Clean Electronic Adherence Monitoring Data: Tutorial

JMIR Form Res 2024;8:e51013

DOI: 10.2196/51013

PMID: 38776539

PMCID: 11153970

Semi-automated Procedure to Clean Electronic Adherence Monitoring Data: A Tutorial to Use the CleanADHdata.R script

  • Carole Bandiera; 
  • Jérôme Pasquier; 
  • Isabella Locatelli; 
  • Marie P. Schneider

ABSTRACT

Background:

Patient adherence to medications can be assessed using digital technology such as electronic monitors (EMs). Changes in treatment regimens and deviations from EM use over time must be characterised to establish the actual level of medication adherence.

Objective:

We developed the computer script CleanADHdata.R to clean raw EM adherence data and this tutorial is a guide for users.

Methods:

In addition to raw EM data, we collected adherence start and stop monitoring dates and identified the prescribed regimens, the expected number of EM openings per day based on the prescribed regimen, EM use deviations, and patients’ demographic data. The script (https://github.com/jpasquier/CleanADHdata) formats the data longitudinally and calculates each day’s medication implementation. We provided a simulated dataset for 10 patients, for which 15 EMs were used over a median period of 187 days (IQR 135–342).

Results:

The median patient imple-mentation before and after EM raw data cleaning was respectively 83.3% (IQR 71.5–93.9) and 97.3% (IQR 95.8–97.6), Δ+14%.

Conclusions:

This difference is substantial enough to consider EM data cleaning to avoid data misinterpretation and provide a cleaned dataset for the adherence analysis in terms of implementation and persistence. Moreover, a semi-automated procedure increases standardisation and reproducibility.


 Citation

Please cite as:

Bandiera C, Pasquier J, Locatelli I, Schneider MP

Using a Semiautomated Procedure (CleanADHdata.R Script) to Clean Electronic Adherence Monitoring Data: Tutorial

JMIR Form Res 2024;8:e51013

DOI: 10.2196/51013

PMID: 38776539

PMCID: 11153970

Download PDF


Request queued. Please wait while the file is being generated. It may take some time.

© The authors. All rights reserved. This is a privileged document currently under peer-review/community review (or an accepted/rejected manuscript). Authors have provided JMIR Publications with an exclusive license to publish this preprint on it's website for review and ahead-of-print citation purposes only. While the final peer-reviewed paper may be licensed under a cc-by license on publication, at this stage authors and publisher expressively prohibit redistribution of this draft paper other than for review purposes.