The prescribed duration algorithm: utilising 'free text' from multiple primary care electronic systems.
OBJECTIVE
To develop and test an algorithm that translates total dose and daily regimen, inputted as 'free text' on a prescription, into numerical values to calculate the prescribed treatment duration.


METHODS
The algorithm was developed using antibiotic prescriptions (n = 711,714) from multiple primary care computer systems. For validation, the prescribed treatment duration of an independent sample of antibiotic scripts was calculated in two ways: (a) computer algorithm, (b) manually reviewed by a researcher blinded to the results of (a). The outputs of the two methods were compared and the level of agreement assessed, using confidence intervals for differences in proportions. This was repeated on sample of antidepressant scripts to test generalisability of the algorithm.


RESULTS
For the antibiotic prescriptions, the algorithm processed 98.5% with an accuracy of 99.8% and the manual review processed 98.5% with 98.9% accuracy. The differences between these proportions are 0.0% (95%CI of -0.9, 0.9%) and 1.0% (95%CI of -0.1, 2.3%), respectively. For the antidepressant prescriptions, the algorithm processed 91.5% with an accuracy of 96.6% compared to the manual review with 96.4% processed and 99.8% accuracy; difference between these proportions is 4.9% (95%CI of 2.0, 8.0%) and 3.2% (95%CI of 1.6, 5.3%), respectively.


CONCLUSIONS
The algorithm proved to be applicable and efficient for assessing prescribed duration, with sensitivity and specificity values close to the manual review, but with the added advantage that the computer can process large volume of scripts rapidly and automatically.
Brooks
Caroline J
CJ
Health Information Research Unit (HIRU), Centre for Health Information Research & Evaluation (CHIRAL), School of Medicine, Swansea University, Wales, UK. c.brooks@swansea.ac.uk
Lyons
Ronan A
RA
Jones
Kerina H
KH
Hutton
Andrew J
AJ
Walker
Roger
R
Evans
Karen A
KA
Lloyd
Keith
K
Ford
David V
DV
D000465:Algorithms; D000900:Anti-Bacterial Agents / Q000008:administration & dosage*; D000928:Antidepressive Agents / Q000008:administration & dosage*; D016208:Databases, Factual; D004305:Dose-Response Relationship, Drug; D004334:Drug Administration Schedule; D004360:Drug Therapy, Computer-Assisted / Q000379:methods*; D006801:Humans; D011320:Primary Health Care
D000900:Anti-Bacterial Agents; D000928:Antidepressive Agents