Accepted for/Published in: JMIR Formative Research
Date Submitted: Jul 19, 2023
Date Accepted: Feb 5, 2024
Semi-automated Procedure to Clean Electronic Adherence Monitoring Data: A Tutorial to Use the CleanADHdata.R script
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
Request queued. Please wait while the file is being generated. It may take some time.
Copyright
© 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.