Abstract
Introduction
The management of HIV patients is inherently complex, requiring the integration of evolving clinical guidelines such as GESIDA 2023. These guidelines are extensive and demand coordinated implementation by healthcare professionals with diverse expertise. These challenges highlight the need for strategies that facilitate their adoption and improve patient care. In this study, we evaluated the impact of digitalizing clinical guidelines for AIDS patients on the efficiency of the clinical workflow in the internal medical services at a secondary public hospital. For this, we developed HIV-matic, a software to automate the implementation of the Spanish clinical guideline (GESIDA) for HIV management.
Materials & methods
The software codifies the guideline into a comprehensive set of 69 “if-then” rules within the CLIPS environment, including AIDS data, antiretroviral treatment recommendations, biochemistry data, comorbidities, and neoplasm screenings. These rules rely on 103 input variables, categorized into laboratory data from the Laboratory Information System (Gestlab), diagnostic data from the Hospital Information System (OrionClinic), and specific information compiled by the doctors through a structured questionnaire in the HIV-matic web interface. The clinical guideline digitalization was evaluated on a generated dataset of 191 prospective unique patient visits attended by clinical authors of the manuscript between 24/09/2024 and 20/12/2024. Evaluation metrics were calculated for rules and patients.
Results
When evaluating the rules, we observed a precision of 99,82%, a recall of 99,36%, a specificity of 99,96%, and an F1 score of 99,59% across the test dataset. Moreover, 87.43% of the evaluated patients received 100% correct messages.
Conclusions
The GESIDA, implemented as a computerized clinical guideline in the HIV-matic software, supports clinicians in decision-making with a high level of performance. Its modular design and seamless integration with existing systems in the hospital make it scalable and adaptable for broader deployments in the health service for HIV patients.
Supplementary Information
The online version contains supplementary material available at 10.1186/s12913-025-13669-7.
Keywords: Clinical guideline, Digitalization, Human immunodeficiency viruses (HIV), Evaluation, Decision support, Internal medicine, Technology assessment
Introduction & background
Clinical guidelines are essential in modern healthcare, offering standardized, evidence-based recommendations to support medical decision-making. Their implementation is critical to ensuring consistent, high-quality care across diverse clinical settings [1, 2]. However, the manual application of these guidelines presents significant challenges, particularly in hospital environments where clinicians face time constraints, high patient volumes, and the need to consider complex individual factors. In complex diseases such as AIDS, where treatment decisions must account for variables like comorbidities, drug resistance, and individualized treatment histories, adherence to guidelines can be particularly challenging [3, 4].
Particularly, the GESIDA 2023 guideline [5], a cornerstone for HIV management in Spain and widely applied within internal medicine services, provides detailed, regularly updated recommendations to address the intricacies of HIV care. These intricacies include the evaluation and management of comorbidities, the initiation and adjustment of antiretroviral therapy based on patient-specific factors, strategies for addressing virological failure, and considerations for special populations, such as pregnant individuals or those with coinfections like hepatitis B or C. Similarly, global guidelines such as those issued by the World Health Organization (WHO) [6] emphasize the importance of tailoring interventions to individual patient contexts. These challenges underscore the necessity for more efficient systems to support the consistent and accurate application of clinical guidelines in real time.
To overcome the challenges of manual guideline implementation, the computerization of clinical guidelines emerged as a practical solution to support healthcare professionals in their decision-making processes [7, 8]. This approach involves translating evidence-based recommendations into structured, executable formats that can be integrated into clinical workflows. By codifying guidelines into machine-readable rules, healthcare systems can provide clinicians with effective, real-time support, thereby facilitating consistent adherence to clinical guidelines in everyday practice [9]. Beyond its clinical benefits, this approach aligns with broader efforts to optimize healthcare efficiency, helping systems address the growing complexity of patient care while managing resources effectively. In doing so, it supports clinicians in delivering high-quality care consistently, even in contexts where time or expertise may be constrained [10, 11].
Rule-based systems, such as those developed using C Language Integrated Production System (CLIPS) [12], offer a feasible and effective foundation for the computerization of clinical guidelines. CLIPS employs a forward-chaining inference engine to process rules encoded as “if-then” constructs, while its Rete algorithm ensures efficient pattern matching and rule application [13]. When applied to a guideline like GESIDA 2023, a rule-based system could dynamically evaluate patient-specific factors such as drug resistance, comorbidities, and treatment history, generating tailored recommendations in real time [14]. While this approach has shown promise in other complex conditions, such as sepsis [15] and tuberculosis [16], its application to HIV care remains underexplored.
A computerized implementation of the GESIDA 2023 guideline would not only ensure comprehensive adherence to its recommendations by clinicians but also has the potential to achieve high levels of precision, recall, and specificity, which are critical for improving clinical outcomes in HIV management.
This project seeks to address these gaps by proposing a system capable of implementing the GESIDA 2023 guideline into a rule-based digital platform. By doing so, we aim to provide clinicians with an effective tool to enhance decision-making, ensure consistent adherence to evidence-based practices, and optimize the management of HIV patients in hospital settings.
Materials & methods
System architecture
As shown in Fig. 1 (Step 1), the clinician selects a patient and the application retrieves the necessary inputs of the EHR (OrionClinic, the Hospital Information System in the Valencia region) and the laboratory system (Gestlab), supplemented by an ad-hoc questionnaire. Next in Step 2 of Fig. 1, the inputs are normalized and evaluated by a CLIPS rule engine that encodes 69 guideline-derived ‘if–then’ rules. In Fig. 1 (Step 3), when predefined conditions are met, the tool returns alerts, warnings, and recommendations, explicitly highlighting the criteria that triggered each message for transparent review.
Fig. 1.
HIV-matic workflow illustrated with a rule example. Step 1: The clinician requests patient data. The system retrieves data from the hospital’s databases, including OrionClinic (diagnoses), GESTLAB (clinical lab data), and additional information from the HIV-matic questionnaire; Step 2: HIV-matic gathers the necessary inputs for each rule and executes the corresponding logic within the CLIPS environment. Step 3: If the predefined conditions are met, the system displays a specific message. In this example, only one condition needs to be fulfilled, HIV-matic highlights the criteria satisfied to trigger the message, providing an actionable insight for the clinician
Data integration and clinical database
To facilitate access to the clinical guideline for clinicians, HIV-matic was integrated with the hospital’s clinical systems, OrionClinic and Gestlab, which manage patient records and lab results, respectively. It retrieves real-time data, such as diagnoses and medication histories, from the SQL Server 2022 database. Additionally, a custom questionnaire captures key patient data previously recorded as free text, structuring it for rule-based processing. A detailed description of the 103 input variables processed, including those from the questionnaire, is provided in Annex 1, ensuring transparency and facilitating future system replication or adaptation.
HIV-matic development
Development of the rule-based system
The development of the rule-based system involved translating the GESIDA 2023 clinical guidelines into executable rules within the CLIPS environment [12, 13]. These rules, structured as “if-then” statements, address various aspects of HIV management, such as treatment protocols, drug interactions, and patient-specific conditions, including comorbidities. Figure 1 illustrates an example of a rule applied by HIV-matic, showing how data from different sources such as diagnoses from OrionClinic, laboratory results from Gestlab, and patient information collected through the HIV-matic questionnaire are combined to generate an alert based on specific conditions. A comprehensive list of the 69 CLIPS rules used in the system is provided in Annex 2, detailing their data source, structure, and function.
System deployment and infrastructure
The system was deployed using Docker, a containerization platform that enables portability and consistent performance across different environments. Docker ensures that the HIV-matic system, along with its dependencies, can be easily migrated and scaled [17]. The application and rules engine are hosted on a secure hospital server, with access limited to authorized clinicians via the hospital’s internal network. User authentication and data security are managed in conformity with health data protection regulations, ensuring safe and controlled use [18]. The study was approved by the Ethics Committee of Arnau de Vilanova Hospital. Direct costs were primarily personnel-related; infrastructure relied on existing on-premise hospital servers, and all core technologies used for the rule engine and containerization (CLIPS and Docker) are free to use, incurring no licensing fees.
Evaluation metrics and testing procedure
The system’s performance was prospectively evaluated in a controlled setting using real patient data collected prior to patient interviews. We calculated four evaluation metrics—precision, recall, specificity, and F1 score—by comparing the digital guideline’s retrievals with the ground truth reported by the clinical expert. Precision measures how many retrieved rules are relevant, and recall measures how many relevant rules are retrieved, whereas specificity evaluates the ability of the system to avoid retrieving irrelevant rules. The F1 score provides a balanced measure of the system’s overall effectiveness by calculating the harmonic mean of the precision and recall. These metrics are further detailed in Fig. 2 for better understanding.
Fig. 2.
Evaluation metrics explanation. Precision is calculated as the proportion of correctly retrieved messages in HIV-matic to all messages retrieved by the system. Recall represents the proportion of correctly retrieved messages to the total number of relevant messages. Specificity measures the proportion of messages correctly identified as irrelevant to the total number of irrelevant messages. The F1 score combines precision and recall, calculated as twice their product divided by their sum
Internal medicine clinicians C.Tortajada and Á.Navarro, who are directly responsible for the care of the evaluated patients and possess extensive expertise in GESIDA 2023 and actively participated in the translation of its clinical recommendations into the digital rule-based format, reviewed from 24/09/2024 to 20/12/2024 only the alerts and warnings -as recommendations are complementary messages that follow the same rules as their corresponding alerts- generated by HIV-matic prospectively and provided feedback, which was used to iteratively refine the system’s rules and performance. The results were compared with clinical decisions made based on the manual application of the GESIDA 2023 guidelines.
System workflow and user interaction
To use the system, the internal medicine department physician follows a structured workflow designed for efficiency and ease of use. First, the clinician enters the patient’s ID, retrieving relevant clinical data from the Electronic Health Records (EHR), which is then consolidated for review. After reviewing the retrieved information, the clinician can update additional patient-specific details if necessary through a structured questionnaire. Once the data is verified, HIV-matic processes the information using the CLIPS engine, generating outputs categorized into alerts, warnings, and recommendations. Alerts highlight critical conditions requiring immediate attention, warnings indicate potential risks, and recommendations serve as complementary messages that provide additional guidance or actions related to the same rule. The system presents the generated outputs in two formats: a tree view, which organizes information into five sections—AIDS data, antiretroviral treatment recommendations, biochemistry data, comorbidities, and neoplasm screenings—and a free-text mode, allowing clinicians to edit and adjust the output for documentation or case-specific modifications.
Results
HIV-matic evaluation metrics
Tables 1 and 2 present the confusion matrix and evaluation metrics, respectively, derived from the assessment of clinician adherence to the GESIDA 2023 guidelines when supported by HIV-matic. In total, 191 prospective unique patient visits were included in the evaluation. The system generated 2,783 correctly displayed messages (true positives) and 5 incorrect messages (false positives), achieving a precision of 99.82%. The recall was calculated at 99.36%, with 18 missed messages (false negatives), while specificity reached 99.96%. The F1 score was 99.59%. Moreover, 87.43% of patients received all messages correctly. These metrics quantitatively assess the accuracy and completeness of the system’s outputs compared to physician assessments. On average, the number of rules displayed per patient during the evaluation was 14.55, with a median of 14, a maximum of 24, and a minimum of 9 rules.
Table 1.
Confusion matrix presenting the evaluation of clinician adherence to the GESIDA 2023 guideline when supported by HIV-matic, based on physician assessments. Percentages and corresponding marginal values are included

Table 2.
Evaluation metrics summarizing precision, recall, specificity, and F1 score, along with 95% confidence intervals (CI 95%)

HIV-matic interface
Figure 3 illustrates the HIV-matic interface, showing the main data input panel, clinical information, and generated alerts and recommendations
Fig. 3.

HIV-matic interface. (A) Main interface of HIV-matic, where the clinician inputs the patient ID to load clinical data and initiate case processing. (B) Data panel, including clinical data, diagnoses, questionnaires. (C) Output panel (tree version) showing generated alerts, warnings, and recommendations based on the processed data, organized by categories such as HIV disease status, comorbidities, and screening for neoplasms
Discussion
The HIV-matic system demonstrates high effectiveness in implementing the GESIDA 2023 guidelines. Final evaluation metrics, including robust precision, recall, specificity, and F1 score, reflect the system’s effectiveness in facilitating accurate clinician adherence to evidence-based recommendations in real-time workflows.
Based on prior evidence on decision support, HIV-matic may have a clinical and socioeconomic impact by showing high clinician adherence to evidence-based guidelines when supported by this software and simplifying the workload of the Internal Medicine Department managing AIDS patients. This effectiveness enhances care quality, allowing more focus on patient interaction and reducing preventable complications [8, 19]. Consequently, better health outcomes decrease the need for costly interventions, optimizing resource utilization and lowering overall healthcare costs while improving the quality of life for patients living with HIV [20, 21].
HIV-matic differs from systems like EuResist and FastTrack by offering highly granular outputs, generating up to 69 tailored alerts, warnings, and recommendations. While EuResist provides aggregated treatment probabilities [22], and FastTrack focuses on interactive alerts for lab abnormalities [23], HIV-matic delivers context-specific messages, ensuring detailed guidance for clinicians while also performing a wide range of tasks, such as monitoring comorbidities, warning for screening for neoplasms, identifying potential secondary infectious diseases, and detecting antiretroviral treatment failure in HIV patients [24]. Observed reductions in look-ups and documentation steps suggest efficiency gains; future tests will include longitudinal monitoring of time-on-task and alert handling to ensure benefits persist without increasing alert fatigue.
A critical aspect to consider in this study is the distinction between the capability of digital clinical guidelines to retrieve accurate alerts and the clinical adherence to the clinical guidelines. In this work, we evaluated the first one, obtaining high performance of the HIV-matic. Nevertheless, we have not evaluated how HIV-matic is influencing in clinician’s adherence to the clinical guidelines. As clinicians may experience alert fatigue, leading to overridden or ignored alerts, as highlighted in previous research [25, 26], further evaluations may focus on tracking clinician responses to alerts, aiming to effectively mitigate alert fatigue.
Additionally, this study has some limitations that warrant consideration. A potential source of confirmation bias arises from the involvement of clinicians who helped design the rule-based system in its evaluation, as their familiarity with the rules may inadvertently influence their assessment of the system’s outputs. Furthermore, generalizing the HIV-matic system to other contexts or versions of the clinical guideline may require adjustments, such as modifying the CLIPS rules and adapting to different clinical databases. Additionally, the system’s performance may be influenced by the quality and completeness of the data used, as well as the variability in clinician feedback during the refinement process. Despite these challenges, the system’s modular design and reliance on structured data make it adaptable to new environments with reasonable effort.
The implementation of HIV-matic, based on the Spanish HIV guideline, ensures its direct applicability across all internal medicine services in Spain. Furthermore, the guideline aligns with global recommendations, making the system suitable for exportation to other regions. Future HIV-matic development will focus on three main areas: implementation, adaptation, and expansion. First, the system will be fully deployed within the Infectious Disease Unit of the Hospital Arnau de Vilanova, and second, efforts will be made to adapt the system for broader use within the Valencian Health System, ensuring compatibility with regional clinical workflows and databases. Finally, we aim to explore the potential of HIV-matic as a model for computerizing other clinical guidelines, leveraging its modular rule-based architecture for scalability.
Conclusions
The HIV-matic system effectively automates the GESIDA 2023 clinical guidelines, achieving high precision, recall, specificity, and F1 score while streamlining real-time clinical workflows. By providing structured alerts, warnings, and recommendations based on patient-specific data, it enhances clinician adherence with evidence-based practices and reduces clinicians’ workload without compromising accuracy. Its modular design and seamless integration with EHR underscore its scalability and adaptability, offering a practical model for computerizing other complex clinical guidelines. Beyond improving the quality of HIV care, HIV-matic demonstrates how computerized clinical guidelines can optimize healthcare efficacy, reduce costs, and improve patient outcomes, establishing a robust framework for advancing evidence-based decision support systems.
Supplementary Information
Below is the link to the electronic supplementary material.
Supplementary Material 1: Annex 1: Variables description
Supplementary Material 2: Annex 2: Rules description
Acknowledgements
Not applicable.
Abbreviations
- WHO
World Health Organization
- CLIPS
C Language Integrated Production System
- EHR
Electronic Health Records
- GESIDA
Grupo de Estudio del SIDA de la Sociedad Española de Enfermedades Infecciosas y Microbiologia Clinica
Author contributions
**Víctor Montosa-i-Micó:** Conceptualization, Methodology, Data curation, Data analysis, Writing - Original draft; **Cecilia Tortajada: ** Conceptualization, Methodology, Data curation, Data analysis, Review & Editing; **Álvaro Navarro Batet: ** Conceptualization, Methodology, Data curation, Data analysis, Review & Editing; **Raquel Alcalde Castillo: ** Data analysis, Review & editing ; **Miguel Camacho: ** Conceptualization, Methodology, Software, Data curation **David Rosello Perez: ** Conceptualization, Methodology, Software, Data curation; **Daniel Sánchez García: ** Conceptualization, Methodology, Software, Data curation; **Juan M García-Gómez: ** Conceptualization, Supervision, Writing – review & editing.
Funding
Funding for this project was provided by ViiV Healthcare through a grant from the “Optimal model of care for patients with HIV infection program” and Programa INVESTIGO (INVEST/2022/298).
Data availability
The datasets generated and/or analyzed during the current study are not publicly available due to privacy and data protection regulations but can be accessed from the Spanish Electronic Health Records system upon reasonable request and with appropriate institutional approvals.
Declarations
Ethics approval and consent to participate
All the data used in this article were reviewed and approved by the Ethics Committee of Arnau de Vilanova Hospital (CEIm No. 44/2022, Study No. PI 41/2022, issued on November 24, 2022). The Committee determined that obtaining individual informed consent from participants was not required for this study in accordance with applicable national regulations and institutional policy. The research was conducted in accordance with the principles outlined in the Declaration of Helsinki.
Consent for publication
Not applicable.
Consent to participate
Not applicable.
Competing interests
The authors declare no competing interests.
Footnotes
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
References
- 1.Clumeck N, Pozniak A, Raffi F. European AIDS clinical society (EACS) guidelines for the clinical management and treatment of HIV-infected adults. HIV Med. Feb. 2008;9(2):65–71. 10.1111/J.1468-1293.2007.00533.X. [DOI] [PubMed]
- 2.He Y, Lu H. Clinical guidelines for the diagnosis and treatment of HIV/AIDS in china: their potential benefits and impact on public health. Biosci Trends. 2021;15(6):413–7. 10.5582/BST.2021.01514. [DOI] [PubMed] [Google Scholar]
- 3.Justice AC. HIV and aging: time for a new paradigm. Curr HIV/AIDS Rep. May 2010;7(2):69–76. 10.1007/S11904-010-0041-9. [DOI] [PubMed]
- 4.Sande M, Volberding P. The medical management of AIDS. Ann Intern Med. 1989;110(1):96. 10.7326/0003-4819-110-1-96_3.
- 5.Palacios R et al. Documento de consenso de GeSIDA/ División de Control de VIH, ITS, Hepatitis virales y Tuberculosis del Ministerio de Sanidad respecto al tratamiento antirretroviral en adultos infectados por el virus de la inmunodeficiencia humana (Actualización enero 2023).
- 6.Consolidated guidelines on HIV testing services for a changing epidemic. Accessed: Jan. 16. 2025. [Online]. Available: https://www.who.int/publications/i/item/WHO-CDS-HIV-19.31.
- 7.Ash JS, et al. Multiple perspectives on clinical decision support: a qualitative study of fifteen clinical and vendor organizations clinical decision-making, knowledge support systems, and theory. BMC Med Inf Decis Mak. Apr. 2015;15(1):1–12. 10.1186/S12911-015-0156-4/FIGURES/1. [DOI] [PMC free article] [PubMed]
- 8.Damiani G, et al. The effectiveness of computerized clinical guidelines in the process of care: a systematic review. BMC Health Serv Res. Jan. 2010;10(1):1–11. 10.1186/1472-6963-10-2/FIGURES/2. [DOI] [PMC free article] [PubMed]
- 9.Hoelscher SH, McBride S. Digitizing infectious disease clinical guidelines for improved clinician satisfaction. CIN - Computers Inf Nurs. 2020;38:303–11. 10.1097/CIN.0000000000000612. [DOI] [PubMed] [Google Scholar]
- 10.Gugerty B, Maranda M, Rook D. The clinical information system implementation evaluation scale, pp. 621–5, 2006. [PubMed]
- 11.Oluoch T, et al. The effect of electronic medical record-based clinical decision support on HIV care in resource-constrained settings: a systematic review. Int J Med Inf. Oct. 2012;81(10):e83–92. 10.1016/J.IJMEDINF.2012.07.010. [DOI] [PubMed]
- 12.CLIPS. A Tool for Building Expert Systems. Accessed: Sep. 24, 2024. [Online]. Available: https://www.clipsrules.net/.
- 13.Liu D, Gu T, Xue JP. Rule engine based on improvement rete algorithm. 2010 Int Conf Apperceiving Comput Intell Anal ICACIA 2010 - Proceeding. 2010;346–9. 10.1109/ICACIA.2010.5709916.
- 14.Batista-Navarro RTB et al. Mar., ESP: An expert system for poisoning diagnosis and management. Inform Health Soc Care. 2010;35(2):53–63. 10.3109/17538157.2010.490624. [DOI] [PubMed]
- 15.Hou Y-T, et al. Efficacy of a sepsis clinical decision support system in identifying patients with sepsis in the emergency department. Shock Oct. 2024. 10.1097/SHK.0000000000002394. [DOI] [PubMed] [Google Scholar]
- 16.Verboven L, et al. A treatment recommender clinical decision support system for personalized medicine: method development and proof-of-concept for drug resistant tuberculosis. BMC Med Inf Decis Mak. Dec. 2022;22(1):1–11. 10.1186/S12911-022-01790-0/TABLES/2. [DOI] [PMC free article] [PubMed]
- 17.MerkelDirk D. Linux J. Mar. 2014. 10.5555/2600239.2600241.
- 18.BOE-A-2018-16673-consolidado.
- 19.Oluoch T, et al. The effect of electronic medical record-based clinical decision support on HIV care in resource-constrained settings: a systematic review. Int J Med Inf. Oct. 2012;81(10). 10.1016/J.IJMEDINF.2012.07.010. [DOI] [PubMed]
- 20.Bright TJ, et al. Effect of clinical decision-support systems: a systematic review. Ann Intern Med. Jul. 2012;157(1):29–43. 10.7326/0003-4819-157-1-201207030-00450. [DOI] [PubMed]
- 21.Lewkowicz D, Wohlbrandt A, Boettinger E. Economic impact of clinical decision support interventions based on electronic health records. BMC Health Serv Res. Sep. 2020;20(1):1–12. 10.1186/S12913-020-05688-3/TABLES/4. [DOI] [PMC free article] [PubMed]
- 22.Zazzi M, et al. Prediction of response to antiretroviral therapy by human experts and by the euresist data-driven expert system (the EVE study). HIV Med. Apr. 2011;12(4):211–8. 10.1111/j.1468-1293.2010.00871.x. [DOI] [PubMed]
- 23.Robbins GK, et al. Efficacy of a clinical decision-support system in an HIV practice: a randomized trial. Ann Intern Med. 2012;157(11):757–68. 10.7326/0003-4819-157-11-201212040-00003. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24.Spini G, et al. New approach to privacy-preserving clinical decision support systems for HIV treatment. J Med Syst. Dec. 2022;46(12). 10.1007/s10916-022-01851-x. [DOI] [PMC free article] [PubMed]
- 25.Gani I, Litchfield I, Shukla D, Delanerolle G, Cockburn N, Pathmanathan A. Understanding ‘Alert fatigue’ in primary care: qualitative systematic review of general practitioners attitudes and experiences of clinical Alerts, Prompts, and reminders. J Med Internet Res. 2025;27:e62763. 10.2196/62763. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 26.Poly TN, Islam MM, Yang HC, Li YCJ. Appropriateness of overridden alerts in computerized physician order entry: systematic review. JMIR Med Inf. Jul. 2020;8(7):e15653. 10.2196/15653. [DOI] [PMC free article] [PubMed]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Supplementary Material 1: Annex 1: Variables description
Supplementary Material 2: Annex 2: Rules description
Data Availability Statement
The datasets generated and/or analyzed during the current study are not publicly available due to privacy and data protection regulations but can be accessed from the Spanish Electronic Health Records system upon reasonable request and with appropriate institutional approvals.


