- Research article
- Open Access
Algorithms for optimizing drug therapy
BMC Medical Informatics and Decision Making volume 4, Article number: 10 (2004)
Drug therapy has become increasingly efficient, with more drugs available for treatment of an ever-growing number of conditions. Yet, drug use is reported to be sub optimal in several aspects, such as dosage, patient's adherence and outcome of therapy. The aim of the current study was to investigate the possibility to optimize drug therapy using computer programs, available on the Internet.
Three types of algorithms were sufficient for the intended purpose. The simplest type is a list of factors, each of which implies that the particular patient should or should not receive treatment. This is adequate in situations where only one treatment exists. The second type, a more elaborate model, is required when treatment can by provided using drugs from different pharmacological classes and the selection of drug class is dependent on patient characteristics. An easily implemented set of if-then statements was able to manage the identified information in such instances. The third type was needed in the few situations where the selection and dosage of drugs were depending on the degree to which one or more patient-specific factors were present. In these cases the implementation of an established decision model based on fuzzy sets was required. Computer programs based on one of these three models could be constructed regarding all but one of the studied disorders. The single exception was depression, where reliable relationships between patient characteristics, drug classes and outcome of therapy remain to be defined.
Algorithms for optimizing drug therapy can, with presumably rare exceptions, be developed for any disorder, using standard Internet programming methods.
During the last decades the possibility of computer support for optimum management of various disorders has attracted interest [1–3]. Regarding drug therapy the approach has usually been limited to one particular disease [4–7]. Diabetes has been extensively studied and thoroughly analyzed also from a systems perspective . Several attempts have been made to develop a general model for medical guidelines, which could be used also for the development of computer programs [9–12]. Computerized physician order entry has been shown to reduce the frequency of serious medication errors. Decision support tools such as alerting functions for patient medication allergy are a key part of these applications. However, Abookire and co-workers  analyzed trend data obtained over a five-year period that showed decreasing compliance to allergy alert functions within computerized order entry. They concluded that optimal performance requires iterative refinement and that, as systems become increasingly complex, mechanisms to monitor their performance become increasingly critical . In another study large differences were seen for all main types of medication errors: dose errors, frequency errors, route errors, substitution errors, and allergies . In a university hospital setting, the reductions in transcription errors and medication turn-around times supported the view that computerized physician order entry and an electronic medication administration record can provide a good return on investment .
In the current study guidelines for 246 diseases were analyzed regarding the content of facts, and relationships between these facts, influencing the selection and dosage of therapeutic drugs. The aim of study was to identify one or more algorithms (descriptions of how to solve a problem in a definite number of steps), which could be used to support optimum drug therapy in any disease.
The studied material consisted of 110 officially endorsed text documents, published between 1996 and 2004. Forty-four of these documents were published by the Swedish Medical Products Agency , 13 by the Swedish Agency for Evaluation of Medical Technologies  and 53 (in three booklets) by the Swedish Strategic Programme for The Rational Use of Antimicrobial Agents and Surveillance of Resistance (STRAMA) , established in order to prevent bacterial resistance to common antibiotics. The documents contained guidelines for drug therapy in altogether 246 disorders. Information regarding contraindications, dosage etc was available from an existing pharmaceutical website  and was retrieved by linking to context-relevant pages.
These documents were analyzed as follows: All statements in the particular document regarding patient-, disease- and drug-related factors were recorded. In a second step the statements in the texts describing the relationship between these factors were identified. After that the obtained information was rewritten in a format similar to a generic computer language, using if-then statements and logical operators as needed. These rewritten documents were grouped according to similarity in structure, based on the number of if-then statements, the need for branching or calculations in the code and the occurrence of 'left-overs', i.e. information in the text that could not be explicitly expressed using if-then statements and logical operators. In theory this procedure could result in an intractable combinatorial explosion. This was observed only in one situation, regarding side effects of anti-hypertensive medication.
Figure 1 shows the number of facts, relevant for the selection of appropriate drug class in the 246 studied diseases. Three algorithms were sufficient for the intended purpose. The simplest model is a list, containing the data, which imply that the patient should or should not receive a particular treatment. This model is adequate in situations where only one pharmacological treatment modality exists, such as influenza, where neuramidase inhibitors are the only drug class approved in Sweden, see figure 2. A 16 page summary of 35 pages of background documentation contained the following data items influencing drug therapy: four risk groups, time from start of symptom, two available neuramidases, one of which was approved also for use in children. Pharmaceutical properties regarding all approved drugs is available online (accessed from the program using 'deep linking'). In the actual program implementation information was added about current epidemiological state regarding influenza by linking to a government authority website, diagnostic criteria and some management aspects (in pop-up windows) (Fig. 2).
In situations, where treatment can by provided using drugs from different pharmacological classes, a more elaborate model is required. An example is heart failure. A 25-page summary of 69 pages of background documentation described six physiological states and 11 available drug classes. This knowledge was modelled using an ordered set of it-then statements, see figure 3. The function containing these sets of ordered rules is activated every time the user enters some information on the screen. For an example of user interface, see figure 4. In the actual program implementation information was added about treatment in emergency situations and in different clinical stages of the disease (in pop-up windows) (Fig. 4). The algorithms mainly consist of sets of if-then statements, grouped in a single function, which is activated each time the user enters some information by checking a check box or radio button on the screen . This information is equivalent to a fact list, and the if-then rules mimic a knowledge base. Thus in these aspects the algorithms are similar to conventional expert systems , but a separate inference engine was not needed. However, the if-then rules had to be ordered according to the output such that positive information, i.e. recommendations to use a particular drug, always was overwritten when factors were present that implied that this particular drug was contra-indicated or less suitable. Such sets of if-then statements were able to manage the identified information in all, but one instance. The exception was depression, where explicit knowledge regarding the relationships between patient characteristics and optimum choice of drug is lacking.
In some diseases the selection and dosage of drugs depend on the degree to which one or more particular factors are present. In such cases a specific program implementation of an established decision model based on fuzzy set theory  could be used. An example is the adjustment of medication according the patient's description of side effects in the treatment of high blood pressure [6, 23], see figure 5. The data in this program were obtained from a study of 1013 treated and 125 untreated hypertensive patients . Thirteen types of complaints were recorded and correlated to the ten available drug classes. The resulting matrix was analysed by four physicians, one professor of endocrinology, with special interest in hypertension, two clinical pharmacologists and one family physician, and modified according to scientific evidence and clinical experience. Clicking on radio buttons enters the type and degree of complaint and the program ranks the available drug classes according to the degree to which they can be assumed not to cause the patient's complaint(s). The algorithm is an implementation of a decision theory, based on fuzzy sets . A verbal description of the implementation would be quite lengthy, but the workings of the algorithm and the code can be seen on the author's website .
The pharmaceutical information about all therapeutics drugs, approved in Sweden, is available on the Internet at a site managed by the association of pharmaceutical industries . By linking to this site, the programs provide access to the relevant and continously updated drug information regarding all drugs, registered for use in the current disease. In addition, each program is linked to the appropriate guideline document, so that the user can verify the program's treatment advice.
The main findings in the current study are that simple algorithms can support drug therapy and that such algorithms can be easily implemented using standard Internet programming techniques. Problems in the implementation of information system designed to support actual care are discussed in a study by Bates et. al. . The authors concluded that 'ten commandments' have to be taken into account. The most important factors for success were speed, anticipation of needs and good fit into the user's workflow. The programs developed in the current study easily meet these criteria, provided that the users have access to the Internet. However, it should be noted that the programs require no communication of patient-related information over the Internet, other than transmission of the prescription to the pharmacy, if such a system is implemented.
One disorder, depression, was identified for which relevant computer program support could not be constructed. Initially, the program model with the above-mentioned decision algorithm, based on fuzzy sets, was thought to be applicable, since the number of relevant facts is well within manageable range; four major classes of drugs, slightly more than ten diagnostic variables, some ten receptors and seven neurotransmitters. However, the information in the official consensus document , did not provide sufficient information, due to the lack of explicit relationships between the patient's characteristics, as described e.g. by diagnostic rating scales, and the pharmacological properties of the various types of antidepressants. Outcome studies regarding depression also give little information about which drug should be recommended for a particular patient. The exception is a recent report by Joyce et al , who found a markedly superior response to nortriptyline compared to fluoxetine in men above 40 years of age, and the reverse effect in women, aged 18 – 24 years.
Problems in pharmacotherapy related to the simultaneous occurrence of multiple disorders in the same patient are well studied and presented in the pharmacological information as contraindications or recommendations of "caution in patients with disease ...". This information is used as output from the programs in the current study.
The introduction of a new drug for treatment of a particular disease, or the results from new scientific studies may have considerable influence on guidelines. Yet only a few documents were changed during the study period and the lifespan of pharmacotherapeutic guidelines can be assumed to be 2–5 years. However, new information may appear unexpectedly, and a reasonably complete system for pharmacotherapy requires frequent updates. The approach taken in the current study, with the programs stored on a website as scripted HTML pages, facilitates the maintenance and update of the system and ensures that all users always have access to the latest version. An additional way to increase relevance over time is to link from the programs to recently published studies, e.g. by providing automatic searches in the PubMed database .
In summary, algorithms for optimizing drug therapy can, with presumably rare exceptions, be developed for any disorder using standard Internet programming methods.
Montani S, Bellazzi R, Quaglini S, d'Annunzio G: Meta-analysis of the effect of the use of computer-based systems on the metabolic control of patients with diabetes mellitus. Diabetes Technol Ther. 2001, 3: 347-56. 10.1089/15209150152607123.
Blackshear JL, Schwartz GL: Step care therapy for hypertension in diabetic patients. Mayo Clin Proc. 2001, 76: 266-74.
Schmidt R, Gierl L: Case-based reasoning for antibiotics therapy advice: an investigation of retrieval algorithms and prototypes. Artif Intell Med. 2001, 23: 171-86. 10.1016/S0933-3657(01)00083-5.
Wanger P, Martin L: Computer-assisted management of patients with open-angle glaucoma or ocular hypertension. Acta Ophthalmol. 1997, 75: 700-704.
Martin L, Wanger P: Prescription of anti-glaucoma drugs, patient characteristics and treatment results. 3rd International Glaucoma Symposium, Prag, Mars. 2001, (accessed 2004-05-28), [http://www.ste.ki.se/of/glaucomaX/prahaposter.pdf]
Wanger P, Martin L: Evaluation of a computerized decision-support system for managing patients with high blood pressure [abstract]. J Hypertension. 2001, 19: s226-
Seroussi B, Bouaud J, Dreau H, Falcoff H, Riou C, Joubert M, Simon C, Simon G, Venot A: ASTI: a guideline-based drug-ordering system for primary care. Medinfo. 2001, 10 (Pt 1): 528-32.
Carson ER: Decision support systems in diabetes: a systems perspective. Comput Methods Programs Biomed. 1998, 56: 77-91. 10.1016/S0169-2607(98)00017-0.
PROFORMA. (accessed 2004-06-13), [http://www.acl.icnet.uk/lab/proforma.html]
Prodigy. (accessed 2004-06-13), [http://www.prodigy.nhs.uk/]
Dufour J-C, Fieschi D, Fieschi M: Coupling computer-interpretable guidelines with a drug-database through a web-based system – The PRESGUID project. BMC Medical Informatics and Decision Making. 2004, 4: 2-10.1186/1472-6947-4-2.
Schiffman RN, Karras BT, Agrawal A, Chen R, Marenco L, Nath S: GEM: A proposal for a more comprehensive guideline document model using XML. J Am Med Inform Assoc. 2000, 7: 488-498.
Abookire SA, Teich JM, Sandige H, Paterno MD, Martin MT, Kuperman GJ, Bates DW: Improving allergy alerting in a computerized physician order entry system. In: Proc AMIA Symp. 2000, 2-6.
Bates DW, Teich JM, Lee J, Seger D, Kuperman GJ, Ma'Luf N, Boyle D, Leape L: The impact of computerized physician order entry on medication error prevention. J Am Med Inform Assoc. 1999, 6: 313-21.
Mekhjian HS: Immediate benefits realized following implementation of physician order entry at an academic medical center. J Am Med Inform Assoc. 2002, 9: 529-539. 10.1197/jamia.M1038.
Swedish Medical Products Agency. (accessed 2004-05-28), [http://www.mpa.se]
Swedish Agency for Evaluation of Medical Technologies. (accessed 2004-05-28), [http://www.sbu.se]
Strategy Group for Rational Use of Antibiotics. (accessed 2004-05-28), [http://www.strama.se]
Swedish Association of Pharmaceutical Manufacturers. (accessed 2004-05-28), [http://www.fass.se]
Heart Failure Treatment Guide. (accessed 2004-05-28), [http://www.ste.ki.se/of/lm/heart/]
Giarratano J, Riley G: Expert Systems, Principles and Programming. 1998, PWS Publishing Company Boston, Third
Yager RR: A New Methodology for Ordinal Multiple Aspect Decisions Based on Fuzzy Sets. Decision Sciences. 1981, 12: 589-600.
Demo of ordinal multiple aspects decision algorithm. (accessed 2004-05-28), [http://www.ste.ki.se/of/lm/dgkodjs.htm]
Kjellgren KI, Ahlner J, Dahllöf B, Gill H, Hedner T, Säljö R: Perceived symptoms among hypertensive patients in routine clinical practise – a population-based study. J Intern Med. 1998, 244 (4): 325-32. 10.1046/j.1365-2796.1998.00377.x.
Bates DW, Kupferman GJ, Wang S, Gandhi T, Kittler A, Volk L, Spurr C, Khorasani R, Tanasijevic M, Middleton B: Ten commandments for effective clinical decision support: making the practice of evidence-based medicine a reality. J Am Med Inform Assoc. 2000, 10: 6-
Swedish Agency for Evaluation of Medical Technologies. (accessed 2004-05-28), [http://www.sbu.se/Filter/Content1/Dokument/SBU_depression_eng.pdf]
Joyce PR, Mulder RT, Luty SE, McKenzie JM, Rae AM: A differential response to nortriptyline and fluoxetine in melancholic depression: the importance of age and gender. Acta Psychiatr Scand. 2003, 108: 20-23. 10.1034/j.1600-0447.2003.00120.x.
PubMed. (accessed 2004-05-28), [http://www.ncbi.nlm.nih.gov/entrez/]
The pre-publication history for this paper can be accessed here:http://www.biomedcentral.com/1472-6947/4/10/prepub
Both authors read and approved the final manuscript.
About this article
Cite this article
Wanger, P., Martin, L. Algorithms for optimizing drug therapy. BMC Med Inform Decis Mak 4, 10 (2004). https://doi.org/10.1186/1472-6947-4-10
- Drug Class
- Computerize Physician Order Entry
- Radio Button
- Optimize Drug Therapy
- Swedish Medical Product Agency