Background

An algorithm is a widespread instrument for increasing efficacy and managing quality in medicine by the implementation of specified standards into a systematic, logical, evidence-based, and rational concept. A formalized sequence of instructions for solving a complex problem in finite processing steps is generally named an algorithm. The term algorithm goes back to the Arab mathematician and astronomer Al Khwarismi and the book About Calculating with Indian Numerals, written around 825 a.c. This book was translated in the twelfth century to Latin, beginning with the words dixit Algorisimi; at this time, algorithm became also the linguistic modification of the name Al Khwarismi, composed of the name Algus for the creator of the art and the Greek word arithmos for number [13]. Thus, it becomes clear that the term “algorithm” cannot be derived from rhythmos (an expression of a recurring condition), which is a common phonetic mistake, although both have the same phonetic roots.

When focusing on more complex problems in medicine, algorithms may help process a fast priority-orientated diagnostic or therapeutic process where single actions are based on a fixed logical sequence [4]. In recent years, a trend toward the formalization and standardization of healthcare can be observed [5]. These changes are most likely attributed to the need for quality assurance in healthcare. However, quality does not only imply the “what” but also the “why” and “how” of treatment. Thus, the often nontransparent and unstable concept of clinical opinion of leadership at single institutions based on experience has yielded to a more evidence-based approach to medicine. In recent years, algorithms formulated in direct accordance with the evidence in the literature are found to be used increasingly in both scientific papers and textbooks. However, a lack of understanding of the formal requirements of algorithms can often be observed, which sometimes makes the algorithms illogical and useless with regard to what was intended by their authors. Moreover, step-by-step schemes and decision trees have been equated to, or mistaken for, algorithms that may be of some clinical relevance. Hence, the present paper addresses these issues and clears up some misunderstandings regarding algorithms. We provide the technically correct basic symbols that should be used, their meanings, and the ways to generate an algorithm. In addition to that, clinical examples from different medical areas are provided for better clarification. Furthermore, we define the differences between step-by-step schemes, decision trees, and algorithms with respect to their specific characteristics and provide graphic examples. Finally, we discuss the current implications and limitations of algorithms in clinical medicine and quality management.

Results and discussion

Norms and symbols

Algorithms are correctly formulated in accordance with technical regulations by the International Organization for Standardization (ISO) norm where different symbols graphically characterize the program sequence for the solution of a problem [4]. In particular, the ISO 5807 norm defines different symbols for the single operation to create an operation plan having only one input and output [6]. On the basis of these norms, International Telecommunication Union (ITU-T) norm symbols have been incorporated almost 15 years ago to adapt the algorithm for clinical practicability [4, 714]. The basic symbols an algorithm should contain are: (1) a directed symbol for the message to network that indicates the initial criteria of the algorithm, while the endpoints (2) are characterized by the directed symbol message from user, which stands for output criteria. Both (1) and (2) signal the direction of the algorithms by the use of the arrow-shaped form, as opposed to the terminator symbol from the ISO norm, and are therefore more suitable for clinical use [4, 15]. The core symbols in between are the single processes (3) and decision (4) symbols. While the process symbol indicates an action or treatment with a monodirectional nature, the decision symbol indicates a binary decision between two options: yes and no. However, this typically diamond-shaped symbol for decision is not graphically optimal for clinical use because it needs too much vertical space and does not allow enough writing of text inside. Therefore, it should be replaced by the hexagon-shaped symbol indicating program modification. These symbols are generally enough to generate a clinical algorithm, although many other symbols are available. An illustration of the different symbols is given in Fig. 1. Although additional symbols can be used, they are not accessible to the general user and should be used with care.

Fig. 1
figure 1

List of symbols and their meanings. Basic symbols from the ISO 5807 norm (left) and their modifications taken from the ITU-T norm (middle). The terminator symbol from the ISO norm is replaced by directed “message to network” and “message from user” symbols from the ITU-T norm for better overview (right and middle). The program modification symbol (hexagon) was reinterpreted and used as a decision symbol to allow more writing inside compared to the decision symbol from the ISO norm. Checklists can reduce the number of decision and process symbols by referring to summarized single decisions as one general operation where appropriate (left)

Organization of an algorithm and clinical examples

For practical considerations, an algorithm should generally fit on a single page. Moreover, it has to be organized logically and be priority-orientated. The direction of the decisions and treatments should be organized from the top to the bottom of the page. Problem solving loops will branch off to the right while checklists are located to the left side, where appropriate. These checklists are not integral components of the algorithm themselves but may reduce the total number of decisions and lead to a better overview. When a treatment loop branches off to the right, it should return to the main trunk of the algorithm. The single symbols are connected by horizontal and vertical flow lines with arrows. When a bidirectional decision is made, a “yes” or “no” should be written near the symbol. Examples of clinical algorithms from different medical areas including trauma and orthopedics, general surgery, and emergency medicine are provided in Figs. 2, 3, and 4.

Fig. 2
figure 2

Clinical algorithm for acute ankle injury

Fig. 3
figure 3

Clinical algorithm for suspected abscess in injecting drug users (IDU). Modified from [8]

Fig. 4
figure 4

Clinical algorithm for managing a mass casualty incident. Modified from [13]

Attributes of different schemes, trees, and algorithms

Step-by-step schemes, decision trees, and algorithms are often used synonymously, although they represent different types of formal instructions for handling a particular subject [4, 15]. They differ with respect to problem and priority orientation as well as in their basic linear structure, with regards to the presence of branching, loops, and endpoints [4]. Table 1 summarizes the attributes and differences of the step-by-step scheme, decision tree, and algorithm. Step-by-step schemes can be used in clinical medicine when the decision-making process has already been completed, for example, to process a further staged therapy. However, step-by-step schemes do not allow loops, branching, and more than one endpoint. Their nature follows a priority orientation, but not a problem orientation. In contrast, decision trees are characterized by a problem-orientated approach without a priority orientation. However, although branching of the decision is a characteristic feature of decision trees, their loops often do not lead to more than one possible endpoint. Finally, algorithms are characterized by both a problem-orientated as well as a priority-orientated approach. Furthermore, algorithms allow branching and loops and may lead to more than one endpoint (Figs. 5a–c).

Table 1 Characteristics of step-by-step schemes, decision trees, and algorithms
Fig. 5
figure 5

Graphical structures of a step-by-step scheme, decision tree, and algorithm. A step-by-step scheme has a linear structure and allows a priority-orientated process without branching and loops (a). In contrast, a decision tree is not arranged linearly and allows a problem-orientated flow with multiple possible endpoints (b). Algorithms allow both priority-orientated and a problem-orientated processing of a complex problem using branching and loops, where necessary (c). The terminator and decision symbols should be changed according to Figs. 2, 3, and 4 for clinical usage

Implications in clinical medicine and quality assurance

There are only a few different symbols necessary for creating an algorithm. However, the challenge of a technical and qualitative algorithm is the development of a logical, priority-orientated, and practical flow [4, 15]. In algorithms, the time and process of an action is defined and should be carefully considered during its initial formal creation. The problem- and priority-orientated standardized structure for fast access of a complex problem led emergency medicine to the cutting edge of the development of clinical algorithms back in the 1970s [1618]. However, algorithms were also used in other diverse medical subspecialties at the time. This circumstance might be attributed to the trend of formalization and the shift toward standardization in healthcare driven by the need for quality management [5]. Standards are needed to assure quality in healthcare, which in general is based on three components: (1) structure, (2) process, and (3) outcome. An algorithm can build a central link between a set value (standard) and an actual value (process). The standard itself is influenced by both the science provided by evidence and the quality management influenced by the outcome (Fig. 6). In this context, structure means the necessary infrastructure such as diagnostic equipment, while process describes how it should be done and outcome provides the final results. The internal compliance describes the proportion between the set value and actual value at one institution, which influences quality management and can also be compared to other institutions (external compliance). The importance of algorithms in this canon has been shown previously [4]. Thus, evidence has been provided that clinical algorithms can contribute to better results, e.g., in major trauma patients [1924]. In addition, there is a worse outcome within this particular collective that is predominately related to errors in management rather than the treatment itself [24]. Therefore, it is imperative that management errors are minimized to increase outcome and, thereby, quality; this can be figuratively equated to the Gaussian distribution where a variable part under the curve at the left side with a negative prefix can be deleted to support an overall higher percentage with a more favorable qualitative outcome. A widespread approach in medicine and quality management is to focus on the operative side (do) rather than to analyze (check) what might further improve the plan (plan) by action (act) on the science side (Fig. 7). In our hands, algorithms can become the central interface that promotes both the operational and science sides which might stimulate research where actual and test values are frequently compared by random samples and may lead to the improvement or retention of the algorithm or parts of it. Evidence is largely lacking in some medical areas, including emergency medicine. The implementation of study protocols may be promoted by algorithms and their further analysis. For clinical use, it is recommended that the total number of operations be reduced to fit the whole algorithm on one page whenever possible. Otherwise, the algorithm’s strength, such as the fast problem-orientated access and ease of survey, might be lost. Thus, checklists located at the left or right side of the algorithm referring to single decisions summarized as one general operation are appropriate for reducing the total number of operations listed, and should be used. It is obvious that algorithms have features of step-by-step schemes and decision trees but allow both problem-orientated and priority-orientated approaches for solving a complex problem in medicine. However, it is imperative that the algorithm, as a formalized process canon, is based on standards and evidence rather than on individual opinion. Step-by-step schemes can be used in clinical medicine, for example, when a diagnosis has already been made to run a fixed priority-orientated protocol step-by-step without any further alternatives in the decision or treatment. Decision trees and algorithms differ most with respect to the priority orientation and loops, which are possible in algorithms. In algorithms, a complex situation or circumstance is solved problem-by-problem, as illustrated by the classical example of the ABCDE survey of trauma care for identifying life-threatening conditions [25]. In contrast, decision trees are more appropriate when a diagnosis is made by step-by-step schemes and different therapeutic strategies exist according to various clinical constellations. Here, changes of the protocol, for example, based on new findings, are not possible due to missing loops. In clinical medicine, algorithms cannot only provide a fast access for solving complex problems but must also assure a transparent protocol and democratic treatment such that every patient receives the same quality of treatment. Thus, a treatment by chance can be excluded by standardization, which might impact the overall work needed to guide patients through diagnostics and therapy and may ultimately reduce cost. Algorithms are useful not only for quality in healthcare but also for undergraduate and continuous medical education as well as paramedical professionals such as those in emergency medical services or nurses. It is obvious that algorithms have a clinical application characterized by fast access, evidence-based externalized supports and target-orientated learning. From a more philosophical point of view, we can raise the question of whether medical pathways and thereby the medical art should be disclosed to the general public by algorithms. Hippocrates form Kos held the view in the so-called Hippocratic Oath that medical art should only be revealed to medical scholars. However, reality might have changed compared to past ideals [26, 27].

Fig. 6
figure 6

The algorithm as a central interface in quality management and science. Evidence by external compliance and quality management influences the standard which determines the algorithm that influences the outcome by the structure and process, respectively. The process itself depends on the structure. Internal and external compliance, as well as the outcome, influences the quality management that determines the standard

Fig. 7
figure 7

Operation and science sides in quality management according to the plan–do–check–act principle

Conclusions

Step-by-step schemes, decision trees, and algorithms are often used synonymously, although they represent different types of formal instructions for handling a particular subject. Thus, they differ with respect to problem and priority orientation as well as in their basic linear structure, with regards to the presence of branching, loops, and endpoints. When focusing on more complex problems in medicine, algorithms may help process a fast priority-orientated diagnostic or therapeutic process where single actions are based on a fixed logical sequence. However, a lack of understanding of the formal requirements can often be observed, which sometimes makes algorithms, step-by-step schemes, and decision trees illogical and useless with regard to what was intended by their authors. In clinical medicine, algorithms cannot only provide a fast access for solving complex problems but must also assure a transparent protocol and democratic treatment such that every patient receives the same quality of treatment. Thus, a treatment by chance can be excluded by standardization, which might impact the overall work needed to guide patients though diagnostics and therapy and may ultimately reduce cost. Algorithms are useful not only for quality in healthcare but also for undergraduate and continuous medical education.