Full text
Universidade do Minho Escola de Engenharia Cristiana Marisa Pereira Neto Improving Hospital Workflows with Intelligent and Interoperable Artifacts April, 2024 Improving Hospital Workflows with Intelligent and Interoperable Artifacts Cristiana Neto UMinho |2024
ii
Universidade do Minho Escola de Engenharia Cristiana Marisa Pereira Neto Improving Hospital Workflows with Intelligent and Interoperable Artifacts Doctorate Thesis Doctorate in Biomedical Engineering Work developed under the supervision of: José Manuel Ferreira Machado António Carlos da Silva Abelha April, 2024
COPYRIGHT AND TERMS OF USE OF THIS WORK BY A THIRD PARTY This is academic work that can be used by third parties as long as internationally accepted rules and good practices regarding copyright and related rights are respected. Accordingly, this work may be used under the license provided below. If the user needs permission to make use of the work under conditions not provided for in the indicated licensing, they should contact the author through the RepositoriUM of Universidade do Minho. License granted to the users of this work Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International CC BY-NC-SA 4.0 https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en ii
Acknowledgements Like a marathon runner who accidentally signed up for an ultra-marathon, my doctoral journey has been long and challenging. However, I am thrilled to announce that I have finally crossed the finish line! This achievement would not have been possible without the unwavering support and encouragement of many remarkable individuals, to whom I owe a debt of gratitude. Firstly, I would like to thank the Fundação para a Ciência e a Tecnologia (FCT) for awarding me the doctoral research grant. I am grateful for the trust placed in me and my research. I am also deeply grateful to Professor José Machado, my supervisor, for not only providing expert guidance and constant encouragement during this journey but also for opening up numerous opportunities for growth and development. I also want to thank Professor António Abelha, my second supervisor for providing much-needed tranquility, and offering valuable guidance during this research project. I would like to express my sincere gratitude to all members of the ULSSA, especially the PCE team, who contributed and provided clinical expertise during my research. I want to extend my heartfelt thanks to all my lab mates at the KEG, for all the good times, with a special appreciation to Diana Ferreira, who is not just a research partner, but also a dear friend. I couldn’t have imagined this journey without you by my side. To all my friends who stayed by my side during both the joyful moments and the challenges, I am deeply thankful for your unwavering support and enduring friendship. Your presence has brought warmth and comfort to my journey, making the tough times easier and the good times sweeter. I am forever grateful for all the memories. To Mafalda, thank you for always being there for me, even from afar. A special thank you to my family who always supported me and believed in me even in the most difficult times. Especially to my parents for all the love and effort they have made over the years, without you, none of this would be possible. To my mother who followed this journey closely, thank you for your patience. To my father who always encouraged me, thank you for your understanding. I am also grateful for my nephews, who even without knowing it, gave me the strength to continue. Finally, a special thank you to my boyfriend João Paulo for all these years of companionship, love and understanding. Thank you for being my anchor and for not letting me give up. I am also grateful to our beautiful dog JSON for all the hours of company while writing this thesis. iii
STATEMENT OF INTEGRITY I hereby declare having conducted this academic work with integrity. I confirm that I have not used plagiarism or any form of undue use of information or falsification of results along the process leading to its elaboration. I further declare that I have fully acknowledged the Code of Ethical Conduct of the Universidade do Minho. , (Place) (Date) (Cristiana Marisa Pereira Neto) iv
Resumo Melhoria dos Fluxos de Trabalho Hospitalares com Artefatos Inteligentes e Interoperáveis Nos últimos anos, a implementação de sistemas de informação na saúde e soluções de automatização nas instituições hospitalares têm sido essenciais para lidar com a crescente quantidade de dados e promover uma prestação de cuidados mais eficiente e segura. Portanto, um sistema de informação hospitalar deve ser capaz de estruturar dados, descobrir conhecimento e fornecer apoio no processo de tomada de decisão. Neste sentido, esta tese tem como objetivo principal estudar a modelação, otimização e automatização de diferentes fluxos de trabalho hospitalares usando artefactos inteligentes e soluções interoperáveis. Assim, esta tese foca-se em desenvolver e implementar um sistema de automatização de fluxos de trabalho hospitalares baseado nas especificações do openEHR, visando melhorar a coordenação dos cuidados, a segurança dos dados dos pacientes, a eficiência operacional e a interoperabilidade entre diferentes sistemas. Para conduzir esta investigação, fundamentado numa filosofia pragmática, adotou-se uma abordagem mista, combinando técnicas qualitativas e quantitativas para uma análise mais abrangente. Além disso, a integração da abordagem Design Science Research (DSR) foi crucial uma vez que, através de ciclos iterativos, permitiu a criação de um artefacto adaptado para garantir a automatização dos fluxos de trabalho hospitalares. Uma investigação mais aprofundada destes fluxos de trabalho em diversos contextos hospitalares foi conseguida através da abordagem de casos de estudo. Assim, o sistema desenvolvido resultou na construção de um motor capaz de executar planos de tarefas modeladas de forma integrada, tendo sido implementado e avaliado em diferentes contextos da Unidade Local de Saúde de Santo António (Portugal) e estando integrado nas tarefas diárias de vários profissionais de saúde. Por fim, embora existam algumas áreas abertas para melhorias, o desenvolvimento e a implementação deste sistema revelaram-se bem-sucedidos e muito promissores para a sua expansão para contextos mais amplos. Palavras-chave: Fluxos de Trabalho Hospitalares, Interoperabilidade, OpenEHR, Processo Clínico Eletrónico, Sistemas de Informação em Saúde v
Abstract Improving Hospital Workflows with Intelligent and Interoperable Artifacts In recent years, the implementation of health information systems and automation solutions in hospital institutions has been essential to deal with the growing amount of data and promote more efficient and safer care delivery. Therefore, a hospital information system must be capable of structuring data, discovering knowledge and providing support in the decision-making process. In this sense, this thesis’ main objective is to study the modelling, optimisation and automation of different hospital workflows using intelligent artefacts and interoperable solutions. Hence, this thesis focuses on developing and implementing a hospital workflow automation system based on openEHR specifications, aiming to improve care coordination, patient data security, operational efficiency and interoperability between different systems. To conduct this research, based on a pragmatic philosophy, a mixed approach was adopted, combining qualitative and quantitative techniques for a more comprehensive analysis. Furthermore, the integration of the Design Science Research (DSR) approach was crucial since, through iterative cycles, it allowed the creation of an artefact adapted to guarantee the automation of hospital workflows. A more in-depth investigation of these workflows in different hospital contexts was achieved through a case study approach. Thus, the system developed resulted in the construction of an engine capable of executing modelled task plans in an integrated manner, having been implemented and evaluated in different contexts of the Local Health Unit of Santo António (Portugal) and being integrated into the daily tasks of several healthcare professionals. Finally, although there are some open areas for improvement, the development and implementation of this system have proven successful and have great promise for expansion into broader contexts. Keywords: Electronic Clinical Process, Health Information Systems, Hospital Workflows, Interoperability, OpenEHR vi
Contents List of Figures xii List of Tables xv Acronyms xvii 1 Introduction 1 1.1 ContextandScope ................................ 1 1.2 Motivation .................................... 3 1.3 Objectives .................................... 4 1.4 Dissertation Organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2 Background 8 2.1 HospitalWorkflows ................................ 9 2.2 Health Information Systems and Electronic Health Records . . . . . . . . . . . . . 13 2.3 Interoperability in Healthcare . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 2.3.1 Interoperability Standards and Initiatives . . . . . . . . . . . . . . . . . 18 2.3.2 ICD-10 and SNOMED-CT . . . . . . . . . . . . . . . . . . . . . . . . . 19 2.3.3 HL7andFHIR.............................. 21 2.3.4 openEHR ................................ 23 2.4 Automation and Decision Support in Clinical Workflows . . . . . . . . . . . . . . 27 2.4.1 openEHR Task Planning . . . . . . . . . . . . . . . . . . . . . . . . . 30 2.4.2 Clinical Decision Support Systems (CDSS) . . . . . . . . . . . . . . . . 33 2.4.3 Data Minning and Machine Learning in Healthcare . . . . . . . . . . . . 34 2.5 Conclusions ................................... 37 3 Research Strategies and Development Tools 39 3.1 Introduction.................................... 39 vii
54 Corneal transplant workflow mockup. . . . . . . . . . . . . . . . . . . . . . . . . . 101 55 Corneal transplant single indicators. . . . . . . . . . . . . . . . . . . . . . . . . . . 102 56 Corneal transplant tasks submitted over time. . . . . . . . . . . . . . . . . . . . . . 103 57 Corneal transplant Proposal: Template modelling. . . . . . . . . . . . . . . . . . . . 105 58 Call for corneal transplant: template modelling. . . . . . . . . . . . . . . . . . . . . 106 59 Anaesthesia consultation: template modelling. . . . . . . . . . . . . . . . . . . . . . 107 60 Cross-Industry Standard Process for Data Mining (CRISP-DM) methodology. . . . . . . . 108 61 Data preprocessing steps (removal and grouping). . . . . . . . . . . . . . . . . . . . 115 62 Scenarios created with different attributes of readmission of diabetic patients data. . . . 117 63 Weights’ distribution for the cardiovascular disease dataset attributes. . . . . . . . . . 123 64 ROC curves using cross-validation. . . . . . . . . . . . . . . . . . . . . . . . . . . 124 65 Scenarios used to predict CVD. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 66 Confusion matrices for the best models achieving the defined threshold. . . . . . . . . 126 67 Most prescribed medical tests associated with the presented diseases. . . . . . . . . . 130 68 Data preparation steps. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 xiv
List of Tables 1 Definition of constructs common to TAM, TAM 2, and TAM 3 in blue, common to TAM 2 and TAM 3 in yellow, and specific to TAM 3 in orange (Jeffrey, 2016; Venkatesh & Bala, 2008) 47 2 Group statistics of the imaging requests workflow . . . . . . . . . . . . . . . . . . . 85 3 Independent samples t-Test results of the imaging requests workflow . . . . . . . . . . 86 4 Inconsistent traces detected after conformance checking . . . . . . . . . . . . . . . . 88 5 Corneal transplant proposal: description of the coded values assigned to each coded text item ......................................... 95 6 Corneal transplant call: description of the coded values assigned to each coded text item 97 7 Anaesthesia consultation: description of the coded values assigned to each coded text item 100 8 Performance results of the DMM obtained for Scenario I . . . . . . . . . . . . . . . . 118 9 Performance results of the DMM obtained for Scenario II . . . . . . . . . . . . . . . . 118 10 Performance results of the DMM obtained for Scenario III . . . . . . . . . . . . . . . 119 11 Performance results of the DMM obtained for Scenario IV . . . . . . . . . . . . . . . 119 12 Performance results of the DMM obtained for Scenario V . . . . . . . . . . . . . . . . 119 13 Performance results of the DMM obtained for Scenario VI . . . . . . . . . . . . . . . 119 14 Best results obtained by Sample Approach and DMT . . . . . . . . . . . . . . . . . . 126 15 Best models achieving the defined threshold . . . . . . . . . . . . . . . . . . . . . . 126 16 Gridparameters ................................... 132 17 Best Results obtained using Grid Search and cross-validation . . . . . . . . . . . . . . 133 18 Acceptance evaluation questionnaire based on TAM3 . . . . . . . . . . . . . . . . . 152 19 Acceptance evaluation questionnaire based on TAM3 (continuation) . . . . . . . . . . 153 xv
Listings 4.1 Materialization request structure schema . . . . . . . . . . . . . . . . . . . . . 61 4.2 New event POST request structure schema . . . . . . . . . . . . . . . . . . . . 62 4.3 Get tasks request structure schema . . . . . . . . . . . . . . . . . . . . . . . . 64 xvi
Acronyms ADL Archetype Definition Language (pp. 26, 77) AI Artificial Intelligence (pp. 9, 36, 132) AM Archetype Model (pp. 25–27) AOM Archetype Object Model (p. 26) API Application Programming Interfaces (pp. 26, 27, 31, 34, 54, 57–59, 61, 65, 70, 74) AQL Archetype Query Model (p. 27) AUC Area Under the Curve (pp. 114, 128, 130) BASE Base Model (p. 27) BPMN Business Process Model and Notation (pp. 19, 29, 31, 33) CDS Clinical Decision Suport (p. 28) CDSS Clinical Decision Suport System (pp. 2, 6, 9, 13, 28, 34, 35) CKM Clinical Knowledge Manager (pp. 77, 95, 98) CMD Complementary Means of Diagnosis (pp. 82, 131) CMMN Case Management Model and Notation (pp. 29, 33) CRISP-DM Cross-Industry Standard Process for Data Mining (pp. xix, 111, 114) CT Computed Tomography (pp. 83, 85) CVD Cardiovascular Disease (pp. 124, 125, 127, 130) DL Decision Language (pp. 28, 30) DLM Decision Logic Module (pp. 29–31, 65, 77, 78, 85, 98, 106, 140) DM Data Mining (pp. 7, 9, 35–37, 39, 111, 112, 114, 115, 120, 123, 141) DMM Data Mining Models (pp. 112, 113, 120, 121, 127, 128, 130) DMN Decision Modelling Notation (p. 29) DMT Data Mining Technique (pp. 124, 127, 130, 141) xvii
DSR Design Science Research (pp. xvii, 6, 43–45) DT Decision Tree (pp. 112, 127, 130, 135, 136) EHR Electronic Health Record (pp. 2, 6, 9, 12–16, 20, 24, 36, 39, 45, 63, 91, 130, 132, 140) ER Emergency Room (pp. 23, 123) FHIR Fast Health Interoperability Resources (pp. 3, 6, 13, 19, 24, 39) GBT Gradient Boosted Tree (p. 127) GLD Guideline Definition Language (p. 28) GLM Generalized Linear Model (p. 127) HIMSS Health Information Management Systems Society (pp. xvii, 15, 17, 18) HIS Health Information System (pp. 2, 5, 9, 13–15, 17, 18, 20, 26, 39, 42, 85, 139) HL7 Health Level Seven (pp. 3, 9, 13, 19, 22–24, 39) HTTP Hypertext Transfer Protocol (pp. 58, 59, 61) ICD-10 International Classification of Diseases - 10th Edition (pp. 19, 20) IHE Integrating the Healthcare Enterprise (p. 19) IM Information Model (pp. 27, 28) IS Information Systems (pp. 1, 15, 19, 47, 48) IT Information Technology (pp. 2, 12, 15, 35, 38, 43, 47, 48, 92) ITS Implementation Technology Specifications (p. 26) JDT JSON Data Template (p. 77) JSON JavaScript Object Notation (pp. 57–59, 62–64, 77) k-NN k Nearest Neighbour (pp. 127, 135–137) LOINC Logical Observation Identifiers Names and Codes (p. 19) LR Logistic Regression (p. 127) ML Machine Learning (pp. 6, 7, 9, 29, 36, 37, 39, 112, 120, 131, 134, 141) MLP Multilayer Perceptron (pp. 115, 118, 119) MRI Magnetic Resonance Imaging (pp. 83, 85, 87) NB Naive Bayes (pp. 118–120, 123, 127, 135, 136) xviii
NoSQL Non-relational Database (pp. 5, 55–57) OPT Operational Template (pp. 62, 77) PoC Proof of Concept (pp. 6, 7, 47) PROC Process Model (p. 28) RDBMS Relational Database Management System (pp. 55, 56) RF Random Forest (pp. 115, 118–123, 127, 135, 136) RI Rule Induction (p. 127) RM Reference Model (pp. 25–27, 29, 77, 140) RNN Recurrent Neural Network (p. 135) ROC Receiver Operating Characteristic (pp. 114, 126) RQ Research Question (pp. 4, 5, 139) SEM Standard Error of the Mean (pp. 79–81) SM Service Model (p. 27) SNOMED-CT Systematized Nomenclature of Medicine - Clinical Term (pp. xvii, 6, 19–22, 96) SODA Simple Oracle Document Access (pp. 57, 59, 62–65, 77) SPMS Serviços Partilhados do Ministério da Saúde (p. 22) SPS Subject Proxy Service (pp. 28, 29, 140) SQL Structured Query Language (pp. 56, 57) SVM Support Vector Machine (pp. 112, 115, 135, 136) SWOT Strengths, Weaknesses, Opportunities, and Threats (pp. 7, 47, 51, 72) TAM Technology Acceptance Model (pp. 47, 48) TAM2 Extended Technology Acceptance Model (p. 48) TAM3 Technology Acceptance Model 3 (pp. 48, 50, 157) TP Task Planning (pp. 3, 6, 28–34, 53–55, 59, 61–64, 67, 68, 70, 74, 77, 78, 90, 91, 103, 105, 140, 142) TP-VML Task Planning Visual Modelling Language (pp. 30, 33, 76) UI User Interface (pp. 59, 77, 114) UID Unique Identifier (pp. 62–64) ULSSA Unidade Local de Saúde de Santo António (pp. 1, 48, 72, 94) WP Work Plan (pp. 31–33, 54, 62, 66, 70, 71, 75–78, 84, 102, 105, 106) xix
ACRONYMS xx YAWL Yet Another Workflow Language (p. 29)
1 Introduction The research project outlined in this document originated from the doctoral thesis titled ”Improving Hospital Workflows with Intelligent and Interoperable Artifacts” within the Doctoral Program in Biomedical Engineering at the University of Minho. This chapter aims to provide an overview of the study (research) conducted, which was carried out at the Algoritmi Research Centre, a research unit affiliated with(in) the School of Engineering at the University of Minho, Portugal, as well as at a Portuguese hospital, the Unidade Local de Saúde de Santo António (ULSSA). Hence, this introductory chapter encompasses the following elements: a discussion on the scope and contextual background of the research project (Section 1.1), an exploration of the underlying motivation (Section 1.2), an outline of the objectives to be achieved through its implementation (Section 1.3), and a breakdown of the document’s structure (Section 1.4), elucidating the organization of subsequent chapters. 1.1 Context and Scope Healthcare institutions face challenges in managing the vast amount of information they generate and handle daily. Often the information stored goes unused or disappears, making it challenging to produce indicators because of the overwhelming number of medical records and inconsistencies in data. Furthermore, a considerable amount of this data lacks structure due to inadequate Information Systems (IS) implementation in some health subsystems (Epizitone et al., 2023; Iroju & Olaleke, 2015; Noumeir, 2012; Raghupathi & Raghupathi, 2014; Stefanou & Revanoglou, 2006). This leads to an incapacity to exchange information among systems impacting healthcare entities’ effectiveness and cost efficiency (Stefanou & Revanoglou, 2006). Reports suggest that implementing IS presents many advantages for healthcare organizations including improved data quality, availability, accessibility, connectivity, exchange and sharing (Mantzana et al., 2010). Since the volume of data generated in the healthcare industry is rapidly growing, healthcare systems have to deal with extremely diverse clinical information, such as diagnostic images and laboratory or 1
CHAPTER 1. INTRODUCTION cardiology results (Churi & Pawar, 2019; Noumeir, 2012). It also presents vast volumes of narrative information obtained from discharge summaries/reports, physicians’ case notes, and pathologists, as well as radiologists’ reports (Iroju & Olaleke, 2015). While this narrative data provides rich contextual information about patient care, it presents a significant challenge for healthcare systems due to its unstructured nature. In light of this, there is an increasing need for structured data within healthcare systems, providing a standardised format that facilitates organization, analysis, and exchange of information across different healthcare settings. In order to address the challenges faced by healthcare institutions in managing this amount of information they generate and handle daily, the implementation of a robust Health Information System (HIS) is essential. A HIS, which encompasses the application of Information Technology (IT) in the health sector, facilitates the access and management of pertinent healthcare information, thereby promoting the quality of health services and supporting medical decision-making (Haux, 2006). One of the most sophisticated components of HIS is the Electronic Health Record (EHR), which serves as the repository of patients’ clinical history and integrates information generated by departmental systems, providing physicians with immediate access to comprehensive patient health status information (Haux, 2006). Additionally, the introduction of Clinical Decision Suport System (CDSS)s has gained increasing interest as a decision-support tool to reduce medical errors and enhance the quality and efficiency of healthcare delivery (Opoku-Agyeman & Menachemi, 2016). CDSSs are designed to assist medical staff in decision-making by utilizing patient data as inputs to provide warnings and alerts, thereby improving the quality of care (Opoku-Agyeman & Menachemi, 2016). The integration of CDSSs into clinical workflows is crucial for their success, as unincorporated CDSSs may not have a favourable effect (Opoku-Agyeman & Menachemi, 2016). Furthermore, the optimisation of clinical workflows in hospitals is a significant concern for senior healthcare management, as inefficient workflows can lead to wasted resources and compromised healthcare quality. To address these challenges, the implementation of technology innovations, such as interoperable systems, is crucial for optimizing workflows, improving care coordination, and enhancing the patient experience. Achieving proper interoperability in healthcare is a challenging undertaking, and solutions such as openEHR, which offers not only specifications for the structuring and management of healthcare data but also specifications for managing standardised clinical workflows, have emerged to address this issue (Iglesias et al., 2022). Several health care guidelines, such as protocols, care plans, and clinical guidelines, among others, are not in a format that can be consumed by computational systems. They are presented in reading formats that do not allow for quick integration into the EHR. Therefore, the use of guidelines and protocols at the frontline remains irregular and likely disjointed, as the contents are not integrated into clinical workflow diagrams and are only available offline, disconnected from the embedded workflow in the EHR. Hence, they cannot be efficiently used when associated with a computerised system. In this sense, this manuscript aims to outline the research project about a new health system focused on the automation of hospital workflows. This system is constructed on the open and adaptable openEHR data model, enabling smooth integration with a variety of healthcare systems and applications due to its 2
CHAPTER 1. INTRODUCTION flexibility and scalability. It specifically focuses on openEHR’s Task Planning (TP) to streamline and optimize task and resource allocation within clinical workflows, ultimately improving efficiency and productivity in healthcare delivery. Additionally, the system features intelligent decision support tools intended to aid healthcare professionals in making informed decisions. These tools utilize advanced algorithms and analytics to analyse data, delivering valuable insights and recommendations to clinicians. The novelty of this project is particularly significant in the context of healthcare in Portugal, where advancements in hospital workflow modelling and automation, especially in the use of openEHR TP, are scarce. Implementing this system in a Portuguese hospital not only fills a current gap in healthcare technology but also represents a pioneering effort in the country’s healthcare sector. Furthermore, conducting multiple case studies with the proposed system is essential for demonstrating its effectiveness and practicality within different healthcare contexts. These studies offer real-world insights into how the system performs across various hospital settings, helping to validate its functionality and identify areas for improvement. By assessing its impact on daily operations, workflow efficiency, and patient outcomes, case studies provide valuable feedback for refining the system to better meet the needs of healthcare professionals and patients. These studies can vary in focus, allowing for a more comprehensive exploration of the system’s capabilities. Hence, the subsequent chapters will offer a comprehensive exploration of the proposed system’s practical application and transformative potential within healthcare settings. Overall, they will contribute to a deeper understanding of how innovative technology can drive positive change and innovation within healthcare systems. 1.2 Motivation Automating hospital workflows using standardised solutions holds tremendous potential for revolutionizing healthcare delivery, optimizing resource allocation, and ultimately enhancing patient care. However, the realization of this potential is hindered by several challenges and unexplored areas within the field. Firstly, achieving seamless interoperability between different healthcare systems and applications remains a significant hurdle. While standards such as Health Level Seven (HL7) and Fast Health Interoperability Resources (FHIR) provide a foundation for data exchange, translating these standards into practical solutions that facilitate smooth interoperability across diverse healthcare settings requires further investigation. Additionally, barriers to adoption present formidable obstacles to the implementation of standardised automation solutions in hospitals. Organizational culture, workflow complexity, and resource constraints can impede the uptake of automation technologies. Understanding and addressing these barriers are crucial steps toward fostering widespread adoption and integration of standardised solutions. Moreover, the integration of standardised automation solutions with existing systems poses a complex 3
CHAPTER 2. BACKGROUND timely administrative processes is vital to upholding high standards of clinical practice and patient care (Jang et al., 2022). Finally, clinical processes involve the direct provision of patient care, including tasks such as patient assessment, diagnosis, treatment, and follow-up. More specifically, clinical workflows can be defined as the sequence of tasks and processes involved in providing patient care within healthcare settings (M. M. Davis et al., 2019). These workflows encompass the various steps and activities that healthcare professionals undertake to deliver high-quality care to patients. They involve the coordination of different healthcare providers, the use of medical technologies and tools, and the integration of patient information and data. Figure 2 shows a summary of the wide range of tasks that clinical workflows encompass. Figure 2: A brief description of clinical workflows’ tasks and their importance. The concept of clinical workflows is crucial in healthcare as it helps to ensure the efficient, effective and coordinated delivery of care. By mapping out the sequence of tasks and processes, healthcare organizations can identify areas for improvement, streamline operations, and enhance patient outcomes (Gooch & Roudsari, 2011). Clinical workflows in healthcare exhibit remarkable diversity, shaped by a multitude of factors: •Healthcare Specialties and Settings: Clinical workflows vary significantly based on the specific healthcare specialties and settings. Whether it’s the fast-paced environment of an emergency department (Kolker, 2008), the comprehensive care provided in a primary care clinic (Wooldridge et al., 2017), or the specialised protocols of an intensive care unit (Malhotra et al., 2007), each healthcare context demands its unique workflow. •Patient Conditions: The complexity and content of clinical workflows can be influenced by the patients’ medical conditions and needs. The workflows for chronic illnesses differ markedly from 10
CHAPTER 2. BACKGROUND those addressing acute conditions, necessitating tailored approaches to patient care (Zai et al., 2008). •Multidisciplinary Collaboration: Clinical workflows inherently involve collaboration among multiple healthcare disciplines and professionals, such as physicians, nurses, pharmacists, and therapists. The orchestration of these diverse roles within workflows adds complexity and diversity (Durojaiye et al., 2019). •Regulatory and Compliance Requirements: Compliance with healthcare regulations, standards and guidelines introduces variations in clinical workflows. Different specialties and healthcare systems may have specific requirements, driving workflow customization for adherence (Gooch & Roudsari, 2011). •Advancements in Medical Knowledge: Ongoing developments in medical knowledge and technology continually reshape clinical workflows. New diagnostic tools, treatment modalities, and best practices necessitate workflow adaptations to incorporate these innovations (Brewster et al., 2015). •Patient-Centred Care The shift towards patient-centred care adds another layer of diversity. Clinical workflows are increasingly designed to accommodate patient preferences and engagement, reflecting a more personalised approach to healthcare. •Healthcare Information Systems: The introduction of the EHR and healthcare IT has significantly impacted clinical workflows (Bowens et al., 2010). While EHRs offer potential process streamlining, they can also introduce new complexities and variations. In summary, the diversity of clinical workflows underscores the need for adaptability within healthcare systems. Providers and organizations must be prepared to tailor workflows to accommodate the specific requirements of patients, specialties, and regulatory standards while harnessing technological advancements to enhance efficiency and patient outcomes. Understanding and managing this diversity is pivotal in delivering high-quality healthcare services. Niazkhani et al. (Niazkhani et al., 2009) classify clinical workflow into four interconnected and mutually reliant components: 1. structuring of tasks : this involves organizing tasks and interactions to prevent conflicts among providers. It specifies who does what, when, where, and how, considering available resources and relationships. These tasks comprise a spectrum of tasks, ranging from initial patient assessment and diagnosis to treatment planning, administration, and thorough documentation. 2. coordination of work : co-workers need to coordinate their tasks in terms of roles, relationships, and temporal and spatial dimensions. This includes synchronizing tasks, scheduling, and managing 11
CHAPTER 2. BACKGROUND the movement of providers and patients. Effective role assignments optimize workflow efficiency and enhance patient outcomes. 3. information flow : medical work heavily relies on information collection, documentation, communication, and retrieval. Providers must integrate, interpret, and share information from various sources, such as patients, colleagues, and medical records. Accurate and timely information sharing is pivotal for informed decision-making and coordinated care delivery. 4. monitoring : providers need to actively adjust their actions based on the actions of their colleagues. Monitoring helps in supervising and controlling task execution and ensuring that tasks align with the changing requirements. Pervasive challenges within clinical workflows exert a profound and discernible influence on the field of healthcare delivery. These challenges encompass data management issues, inefficiencies, errors, lack of standardization, and communication barriers (Blaum et al., 2018; Song et al., 2006). Regarding the management of the vast amounts of patient data in clinical workflows, handling this data manually is not only time-consuming but also prone to errors. EHR and HIS can provide a computerised solution for efficient data management. These systems store patient information digitally, making it easily accessible, searchable, and secure (Raghupathi & Raghupathi, 2014; R. Zhang et al., 2019). They also facilitate data sharing among different healthcare providers, ensuring a comprehensive view of a patient’s medical history. Errors in clinical workflows can have severe consequences, including patient harm and increased healthcare costs. These errors can result from miscommunications, medication mix-ups, or documentation mistakes. In this scope, CDSSs can help mitigate errors by providing real-time guidance to healthcare professionals (Castañeda et al., 2015). CDSSs can flag potential issues, recommend evidence-based treatments, and reduce the likelihood of medical errors (Jia et al., 2016). On the other hand, the lack of standardised workflows across healthcare settings and specialties can lead to confusion, inconsistencies in care, and difficulties in data exchange. To address this issue, computerised solutions like interoperable EHR systems and standardised clinical protocols, like openEHR, HL7 and FHIR, promote consistency and information sharing (Rezaei et al., 2014; Saripalle et al., 2019). They enable healthcare providers to follow best practices and ensure that patients receive standardised care regardless of the healthcare facility they visit. Furthermore, effective communication among healthcare team members is crucial in a healthcare environment. Inadequate communication can lead to misunderstandings and delays in treatment. Secure messaging platforms and telemedicine tools can enhance communication by enabling real-time collaboration, remote consultations, and instant access to experts when needed (Wu et al., 2011). Finally, healthcare workflows often suffer from inefficiencies, leading to delays, increased costs, and reduced patient satisfaction (Weigl et al., 2011). Healthcare professionals may spend excessive time on administrative tasks, redundant documentation, or searching for information. In this scope, workflow 12
CHAPTER 2. BACKGROUND automation systems can streamline processes, automate routine tasks, and provide real-time access to patient data (Emanuele & Koetter, 2007; Zayas-Cabán et al., 2021). A more detailed account of these aspects is given in the following sections. 2.2 Health Information Systems and Electronic Health Records Information is the lifeblood of medicine and health information technology is destined to be the circulatory system for that information. David Blumenthal, 2010 In the 21st century, the healthcare industry is experiencing a revolutionary shift driven by the sheer volume of data that it generates and relies on (Islam et al., 2018). The importance of data in healthcare cannot be overstated, as it serves as the bedrock for informed decision-making, personalised treatment plans, and overall patient well-being. In this section, we will delve into the significance of information in healthcare and introduce two key components, EHR and HIS, which have revolutionised the way healthcare information is collected, stored, and utilised, as well as its role in clinical workflows. The modern healthcare landscape is repleted with vast amounts of data with distinctive characteristics that encompass a broad spectrum of information, including administrative health records, biomarker data, biometric data (e.g., from wearable technologies), and imaging data. Furthermore, these data can originate from various sources, including EHRs, clinical registries, biobanks, the internet, and patient self-reports (Dash et al., 2019; Shilo et al., 2020). Shilo et al. (2020) categorised health data based on several attributes, such as: 1. Structured vs. Unstructured : This distinction can be seen in data like diagnosis codes (structured) versus free-text entries in clinical notes (unstructured). 2. Patient-Care-Oriented vs. Research-Oriented : Differentiating between data from hospital medical records (patient-care-oriented) and data from biobanks (research-oriented) is another important aspect. 3. Explicit vs. Implicit : Data can be classified as explicit (e.g., checkup records) or implicit (e.g., data from social media platforms). 4. Raw vs. Ascertained : Medical data can be in a raw state, representing data as initially collected, or they can undergo processing, standardization, and validation processes, rendering them as ascertained data. Since the implementation of HISs has had a profound impact on the management and utilization of data in healthcare, the next section will focus on their transformative role in enhancing patient care, 13
CHAPTER 2. BACKGROUND streamlining administrative processes, and promoting informed decision-making in the healthcare industry. The advancement of IT is a readily apparent and unavoidable reality, and it currently holds a significant position in the healthcare industry, primarily aimed at enhancing the provision of highly efficient and topnotch healthcare services (Alotaibi & Federico, 2017). The introduction of IS in hospital settings emerged in the mid-1960s in response to the significant increase in clinical data over the years. During this period, their primary functions were predominantly limited to administrative management. After 1970, larger hospitals gradually established internal information departments (Pai & Huang, 2011). Consequently, the implementation of HIS significantly enhanced the organization of the vast amount of data within hospitals, aiming to automate its collection, storage, and analysis, thereby aiding in decision-making support. Initially, this innovation was primarily directed at supporting physicians, and it was only later extended to all healthcare professionals. HISs also catalyse more efficient hospital management, as they enable cost reduction and waste minimization (Haux, 2004; Khodambashi, 2013). In a hospital environment, errors and adverse events can occur, leading to increased costs for the institution and even loss of human lives. Some of these errors may be attributed to the burden of organizational tasks affecting healthcare professionals, such as scheduling appointments across various specialties, coordinating the performance of diagnostic procedures, planning and preparing medical procedures, and transmitting reports, among others. The fact that the implementation of HIS has streamlined and even automated many of these tasks, thereby reducing adverse and unexpected events, has resulted in significant enhancements in the quality of healthcare delivery (Haux, 2004; Khodambashi, 2013). In summary, HIS can be defined as socio-technological subsystems encompassing the entire scope of management and organizational information processing, as well as the roles of healthcare professionals (Haux, 2004; Sanjuluca et al., 2022). The design and implementation of an HIS should prioritize ensuring the efficient production of information, with the ultimate goal of providing clinical decision-making resources. Achieving this implementation requires the presence of a management structure with a specific function focused on the appropriate allocation of resources and the definition of organizational rules (Lippeveld et al., 2000). In order to provide comprehensive and valuable resources, HIS should also enable the extraction of clinical and management indicators. This not only enhances decision-making processes but also improves planning and logistics. Delving deeper into the realm of HIS, it’s essential to introduce one of its cornerstone components: the EHR. EHRs have revolutionised the way healthcare information is collected, stored, and utilised. In a 2006 National Institute of Health report, the HIMSS adopted this official definition of an EHR: ” The EHR is a longitudinal electronic record of patient health information generated by one or more encounters in any care delivery setting. Included in this information are patient demographics, progress notes, problems, medications, vital signs, past medical history, immunizations, laboratory data, and radiology reports. The EHR automates and streamlines the clinician’s workflow. The EHR has the ability to generate a complete 14
CHAPTER 2. BACKGROUND record of a clinical patient encounter, as well as supporting other care-related activities directly or indirectly via interface, including evidence-based decision support, quality management, and outcome’s reporting. ” Furthermore, the long-awaited expansion of EHRs from research into practice brought an important aspect: medical informaticists began to blend EHR systems into clinical workflows more effectively (James, 2005). Nowadays, clinical workflows deal with a huge amount of distinct data, information, interfaces, options and parameters that have to be observed or entered by the health professionals. Some of the same data has to be entered several times into different systems and modalities (Schneider & Haider, 2011). In this context, the organization and functionality of EHRs at the operational level remains a challenge insufficiently addressed by many contemporary healthcare solutions. EHRs are frequently perceived primarily as repositories for basic data access, limited to functions like document retrieval and viewing, rather than being recognised as comprehensive, sophisticated systems with integrated data and capabilities. Beyond issues of digital compatibility and interoperability, achieving ”meaningful use” of EHRs necessitates enhancing their functionality, enabling the implementation of adaptable workflows, and promoting their seamless integration into everyday clinical practices within healthcare settings (Bowens et al., 2010; Schweitzer et al., 2014). Moreover, the necessity of incorporating EHRs seamlessly into typical clinical workflows has been highlighted as a critical precondition for their acceptance and deployment (Bowens et al., 2010). As already explained, clinical workflows can be described as a series of tasks performed within a healthcare facility, ultimately contributing to a clinical outcome associated with patient assessment, diagnosis, or overall care management. Consequently, the utilization of EHRs can be seamlessly integrated into these tasks and can serve as a means to efficiently and flexibly execute implementations. In this sense, EHRs have intricate and multi-faceted relationships with clinical workflows, some of them represented in Figure 3. This visual representation provides a simplified overview of how EHRs are integrated into clinical workflows. EHRs are integral components of modern clinical workflows, deeply integrated into the daily operations of healthcare facilities. They provide a digital platform for managing and accessing patient information, thereby streamlining clinical tasks. In addition, EHRs serve as primary tools for data input and documentation in clinical workflows. For example, healthcare professionals use EHR systems to record patient information. Furthermore, EHRs enable real-time access to patient data, ensuring that healthcare providers can quickly retrieve and review critical information, facilitating timely decision-making and care delivery. 2.3 Interoperability in Healthcare Interoperability is the hidden hero that healthcare leaders can no longer afford to ignore. Alex Ryan, 2023 15
CHAPTER 2. BACKGROUND Figure 3: Relationships between EHRs and clinical workflows. The quantity of information shared within and between clinical settings and how well that information is integrated within each clinical settings’ systems and processes can affect the provision of effective, efficient, and high-quality healthcare. The availability of this information is conditioned by the levels of interoperability in the HIS (Walker et al., 2005). In this sense, it becomes a major concern the development of an efficient technological structure, allowing interaction between all HIS, so that there is a better overall performance of all systems. In the healthcare context, there is no standard definition of interoperability. According to the IEEE Standard Computer Dictionary, interoperability is “the ability of two or more systems or components to exchange information and to use the information that has been exchanged.” (Radatz, 1997). The concept of interoperability has been continuously enhanced by the HIMSS and more recently proposes the following definition: “ Interoperability is the ability of different information systems, devices and applications (‘systems’) to access, exchange, integrate and cooperatively use data in a coordinated manner, within and across organizational, regional and national boundaries, to provide timely and seamless portability of information and optimize the health of individuals and populations globally. Health data exchange architectures, application interfaces and standards enable data to be accessed and shared appropriately and securely across the complete spectrum of care, within all applicable settings and with relevant stakeholders, including by the individual. ” (HIMSS, n.d.). According to HIMSS, four levels of interoperability can be considered (HIMSS, n.d.), as illustrated in 16
CHAPTER 2. BACKGROUND Figure 4: •Foundational Level: often referred to as basic transport, it lays the groundwork for the exchange of healthcare data among different systems by defining the integration and compatibility criteria necessary for data sharing. At this stage, diverse software platforms and document management systems (DMS) can securely exchange and receive data from one another. Nonetheless, they cannot independently understand patient data without human intervention or additional technologies. •Structural interoperability: sometimes referred to as structured transport, it establishes the framework or configuration of medical data. This data standardization enables document management systems to automatically recognize and interpret predefined data components, preserving the clinical or operational context and significance of the information. •Semantic interoperability: also known as semantic transport, is realised when multiple systems are capable of sharing, comprehending, and effectively utilizing information. At the semantic tier, data standardization and coding are employed to guarantee that the systems engaged in the exchange possess a mutual understanding of the semantic significance of specific concepts, such as particular procedures, diagnoses, or laboratory results. •Organizational interoperability: represents the utmost level of interoperability, signifying the smooth exchange and comprehension of patient data among diverse organizations, each with distinct objectives, regulations, and prerequisites. Attaining this pinnacle of interoperability necessitates the incorporation of non-technical factors, including policy, legal, social, and organizational elements, given the involvement of multiple stakeholders, entities, and individuals. By encompassing both technical and non-technical facets, it becomes possible to collaboratively utilize shared data across and within organizational borders. Figure 4: Interoperability levels defined by HIMSS. The benefits of implementing interoperability in healthcare facilities and the consequent homogeneity among HIS are countless. Such benefits include better information quality by single patient identification, 17
CHAPTER 2. BACKGROUND time reduction in diagnostic and appointments, since physicians have access to relevant information whenever and wherever they need it, a correct association between all the IS and, consequently, collaboration at local, regional, national and international level. Ultimately, interoperability results in an improvement in the provision of medical care, by decreasing the number of occurrences of medical errors since decisionmakers have access to reliable information and results (M. Miranda et al., 2009; Weber-Jahnke et al., 2012) 2.3.1 Interoperability Standards and Initiatives Interoperability standards in healthcare are crucial for enabling the seamless exchange and sharing of healthcare information across different systems and organizations. These standards ensure that healthcare data can be accessed, understood, and used effectively by various stakeholders, including healthcare providers, researchers, and patients. The development of interoperability standards involves a collaborative and iterative process that aims to establish common frameworks, protocols, and data models for data exchange and integration (Oemig & Snelick, 2017). In this section, the foundational pillars of healthcare data exchange and integration come into focus. Notably, standards such as openEHR, HL7, FHIR, International Classification of Diseases - 10th Edition (ICD-10), and SNOMED-CT play an instrumental role in shaping the seamless flow of healthcare information and fostering unified communication among diverse systems and stakeholders. The diagram in Figure 5 serves as a visual gateway to explore the interplay of critical healthcare standards, each with its unique purpose and focus, and their complex relationships. In this diagram, there are three main groups (Dunscombe, n.d.): Exchange and Workflow that encompasses healthcare standards like HL7 and Integrating the Healthcare Enterprise (IHE), which are instrumental in shaping the exchange of healthcare information and the facilitation of clinical workflows; Clinical Terminology that features the likes of SNOMED-CT, Logical Observation Identifiers Names and Codes (LOINC) and ICD-10, which provide the ability to represent concepts unambiguously between a sender and receiver of information; Exchange and Workflow that centers around openEHR, a standard dedicated to the structured representation of clinical data. Within this last group, we find the intersection that showcases the convergence of FHIR, due to its unique characteristics and capabilities that bridge these two areas, and openEHR Task Planning, derived from openEHR and focused on the meticulous orchestration of healthcare workflows. Beyond the confines of the Venn diagram, there is a Workflow and Process Management group where Business Process Model and Notation (BPMN) stands as a pivotal standard. Although it is positioned outside the diagram because it is not a clinical standard, its closer position to the Exchange and Workflow group in the diagram signifies its relevance to the management and representation of healthcare workflows and processes. Navigating through this intricate landscape, the significance of these standards and initiatives in orchestrating the harmonious exchange of healthcare data is illuminated, ultimately contributing to the enhancement of healthcare delivery, decision-making, and innovation. 18
CHAPTER 2. BACKGROUND Figure 5: Healthcare standards. Adapted from (Dunscombe, n.d.). 2.3.2 ICD-10 and SNOMED-CT This section delves into two fundamental standards, ICD-10, and SNOMED-CT. Each standard serves a distinct yet interconnected purpose in the healthcare domain, contributing to the harmonization and precision of healthcare data, terminology, and clinical practices. This exploration sheds light on the critical roles of ICD-10 and SNOMED-CT, pivotal in shaping the foundational language of healthcare. Regarding ICD-10, its primary purpose is to standardize the classification of diseases and healthrelated conditions. In more detail, it contains codes for diseases, signs and symptoms, abnormal findings, complaints, social circumstances, and external causes of injury or diseases (Denecke, 2020). It is hierarchically organised in 24 chapters with 261 disease groups containing more than 2000 disease categories. Figure 6 shows an example of the structure of ICD-10. Furthermore, the use of ICD-10 in clinical workflows is important for several reasons, not only clinical but also administrative. As ICD-10 provides a standardised and comprehensive coding system that allows for accurate and consistent documentation of clinical conditions, this is essential for effective communication and information exchange between healthcare providers, as well as for research and statistical purposes (Quan et al., 2008). The use of standardised codes ensures that clinical information is recorded in a structured and organised manner, facilitating the retrieval and analysis of data for various purposes, such as quality improvement initiatives and population health management (Forster et al., 2023). Additionally, ICD-10 supports the integration of clinical data into EHRs and other HISs. The use of standardised codes enables interoperability and semantic computation, allowing for the exchange and 19
CHAPTER 2. BACKGROUND Within these categories, various components address specific topics. To facilitate understanding, some components are grouped, as illustrated in Figure 10. The CNF and ITS components are usually separated from the primary specifications due to their semantic differences. However, they serve as crucial artefacts for subsequent utilization in software engineering. Still in Figure 10, the left group contains the abstract specifications. Figure 10: Global view of the openEHR specifications. At a higher level of the abstract specifications, there is the openEHR Platform Service Model (SM), which identifies core components of the openEHR platform in a formal, abstract form, for use in developing concrete service API definitions such as SOAP, REST, Google protocol buffers and other interface technologies. On the other hand, at the bottom level is the Base Model (BASE), which defines identifiers, data types, data structures and various common design patterns that can be re-used ubiquitously in the RM, AM and SM. Furthermore, the formalisms of the abstract specialization include the AM, which encompasses the core artefact of the openEHR standard: the archetypes. The formalisms also present the specifications for generic modelling and other languages (LANG) and the query languages (QUERY), more specifically the Archetype Query Model (AQL), a query language based on archetype paths and pattern matching. In turn, the content aggregation includes the models of the primary content of the openEHR platform, including the RM (with Information Model (IM)s like demographics, EHR) and the openEHR Terminology (TERM), which is a set of vocabularies and code sets used by RM, AM and SM. The openEHR IM is segmented into two components: EHR and COMPOSITION. The latter consists of a primary package referred to as ENTRY, which encompasses classes like OBSERVATION, EVALUATION, INSTRUCTION, and ACTION. These classes, serving as clinical record subtypes, represent distinct stages in a potential clinical process. They establish the groundwork for entry archetypes such as blood pressure, medication order, procedure, and smokeless tobacco summary. The relevant data is stored in attributes of 26
CHAPTER 2. BACKGROUND DATA_STRUCTURES and is also articulated in attributes of DATA_TYPES. Each clinical action is performed by an individual and is linked to a specific subject in the Demographic IM. This package additionally outlines the actors involved, along with their information and the roles they assume in a clinical act, group, or organization. Finally, grouped as Process & Clinical Decision Suport (CDS), there are the Guidelines and TP. The CDS component of this group includes two versions of the Guideline Definition Language (GLD), a formal language for expressing decision support logic. It also encompasses the Process Model Process Model (PROC), which represents specifications for various models and languages to address the area of process and guideline-driven healthcare. These are as follows: • A plan definition formalism: the openEHR Task Planning specification (TP); • A guideline and rule language: the openEHR Decision Language (DL) specification (DL); • An expression language, which forms the basis for writing expressions and rules, defined by the openEHR Expression Language (EL); • A subject proxy service, which forms the bridge between Plans and Guidelines as consumers of subject data, and data sources: the openEHR Subject Proxy Service (SPS). • An underlying meta-model formalizing information models, expression language and decision constructs, defined by the openEHR Basic Meta-Model; Together these enable the authoring of care pathways, guidelines, executable care plans and inapplication active forms. It is important to highlight the importance of these components for the work presented in this thesis given the main focus on the standardization and automation of workflows in hospitals. 2.4 Automation and Decision Support in Clinical Workflows Recent advances in automation have the potential to improve all aspects of healthcare delivery, from diagnosis and treatment to administration and billing. Ben-Tzion Karsh, 2009 Building on the foundation of health standards, particularly the comprehensive exploration of openEHR in the preceding section, this segment delves into the intricate realm of Automation and Decision Support in Clinical Workflows . Since the openEHR TP represents a key component of this work, Section 2.4.1 aims to explore how this standard can lead to clinical workflows’ automatization and optimisation. Through a detailed examination, the intricacies of 2.4.1 within the openEHR standard and its profound implications for enhancing the efficiency and coherence of clinical processes are unravelled. Subsequently, the exploration is extended to encompass the broader landscape, examining the role of CDSS and delving into the 27
CHAPTER 2. BACKGROUND transformative potential of ML in healthcare. Together, these subsections paint a comprehensive picture of how technology, guided by robust health standards, is reshaping the landscape of clinical workflows and decision-making processes. The general category of formalisms that are appropriate for the computational representation of workflows and pathways includes: a) workflow languages for representing plans, consisting of tasks and decisions; b) decision rules to represent medical logic; and c) clinical content modelling language(s), to express data sets consisting of health variables (e.g., ‘status: diabetic’, ‘systolic blood pressure’, among others). A fourth need is a way to specify the connection of variables mentioned in plans and rules to data sources. The main, widely known formal languages for workflow specification available in the literature include: Yet Another Workflow Language (YAWL) (Yet Another Workflow Language) (Adams et al., 2020; W. M. Van Der Aalst & Ter Hofstede, 2005), the OMG BPMN, and Case Management Model and Notation (CMMN). These languages were developed to specify steps in relatively deterministic workflow charts whose subject (or “case”) is an inanimate object or substance, for example, a package in a logistics transportation network. Despite the academic importance of YAWL, it is no longer supported as a formalism by the industry. On the other hand, the BPMN notation has already been widely used in some work in the health sector, bringing better clarity to the involved professionals about the modelled processes (Pufahl et al., 2022). A recent effort was initiated based on the evolution of the OMG BPMN, CMMN, and Decision Modelling Notation (DMN) standards for healthcare use under the BPM+ community (Lario et al., 2020). This work involves developing a series of new standards and updating existing ones for use in healthcare, meaning that the emergence of a viable form that can be incorporated into EHR systems may still take some time. On the other hand, the most robust formalism, capable of integrating the definition of clinical domain data and healthcare work processes, is the openEHR standard. This standard encompasses the definition of clinical data (archetypes), clinical records (templates), clinical processes (TP), formal clinical decisionmaking definition language (Decision Logic Module (DLM)), data binding (SPS), combined with the RM of openEHR (“Guidelines and Planning Overview”, n.d.) and appropriate clinical terminologies. For openEHR, a care plan can be defined as a dynamic and personalised plan, related to one or more specific health problems, which describes the patient’s objectives and goals, defining diagnoses and steps for resolution and monitoring. Therefore, it can be said that, historically, a care plan is a description of the care established for a specific patient that can be carried out by a healthcare team. A subject may have one or more care plans and the content of each plan may come from one or more clinical protocols (“Guidelines and Planning Overview”, n.d.). Furthermore, openEHR views a care plan as a structured artefact whose content is consumed by human actors, rather than being a directly computerised entity. Based on the openEHR formalism (“Guidelines and Planning Overview”, n.d.), clinical artefacts are classified, for potential computerised representation, into automatable artefacts - service pathways, guidelines, order set management plans - and structured artefacts - care plans. 28
CHAPTER 2. BACKGROUND A real patient’s overall situation is made up of several conditions plus phenotypic specifics (e.g., allergies) and the current situation (e.g., being pregnant) plus nonclinical elements (e.g., patient preferences, type of health insurance coverage, among others). A computerised care plan can originate from a comprehensive care pathway, such as for a complex pregnancy, or a simple guideline (“Guidelines and Planning Overview”, n.d.). The various previously described clinical artefacts and related computational entities, along with their relationships, can be visualised in Figure 6. Furthermore, in the domain of workflows, it becomes imperative to delineate the intended relationship between humans and machines in the work environment. This significance emanates from the fact that any delineation of planned work functions as a set of instructions for actors tasked with executing the designated activities. Given that these instructions (task plans) are encoded in the IT layer, and the performing actors, typically human but potentially autonomous devices or software applications, operating in the real world, a comprehensive understanding of the interaction between the computing environment and reality is requisite (“Guidelines and Planning Overview”, n.d.). The work environment can be parsed into the computing environment, encompassing executable plan definitions (reusable work definitions with standardised tasks) and executable plan instances (runtime instances of task plans created for execution), and the real world, where performing actors (autonomous humans, machines, or software applications) execute tasks designed to attain a specific goal (“Guidelines and Planning Overview”, n.d.). A workflow application assumes a supportive role by upholding a representation of the plan and its execution progress. Nevertheless, a misalignment between the application’s perception of plan execution and the real-world state introduces a challenge of synchronization between the virtual and real-world workflows. Moreover, the communication between the workflow application and real-world actors entails commands (instructions from the plan system to real-world actors), notifications (signals between the plan system and real-world actors concerning work status), and data exchange (the collection and presentation of data between the system and actors). This conceptualization of the environment is visually exemplified in Figure 11. In Figure 11, computer-interpretable guidelines are presented as the primary computable entities crucial for automatable clinical plan development, so it becomes crucial to analyse its conceptual architecture (Figure 12). The core formal components of these executable plans include the Plan Definition (referred to as ’plan’) and the DLM, where plans are formally defined using the openEHR TP model and visualised in the Task Planning Visual Modelling Language (TP-VML). DLMs are scripted in the openEHR DL, a high-level syntax (“Guidelines and Planning Overview”, n.d.). Both plan and DLM incorporate references to subject variables, representing real-world subject states such as date_of_birth , weight , and systolic_BP . Some variables remain constant or change minimally over time, while others are time-varying, requiring periodic updates. The accumulation of subject variables pertinent to plans and DLMs is termed a Subject Proxy, serving as a proxy representation of a real-world subject for application by plans, DLMs, and other functionalities (“Guidelines and Planning Overview”, 29
CHAPTER 2. BACKGROUND Figure 11: Plan execution paradigm (“Guidelines and Planning Overview”, n.d.). n.d.). To execute a plan and its associated logic, a mechanism for populating a subject proxy is essential, known as a Subject Proxy Service. This service incorporates Data Access Bindings (DABs), establishing connections to specific source systems through queries or API calls. The ensuing diagram visually illustrates these conceptual components (“Guidelines and Planning Overview”, n.d.). 2.4.1 openEHR Task Planning Ultimately, the TP is a recent addition to the openEHR information structure and can be defined as a formal specification of information representing planned tasks that can define the modelling of clinical workflows. TP was developed to fulfil requirements in distinct areas that demand granular planning of clinical tasks, aiming to organize and optimize the scheduling of time clinical activities. The openEHR TP standard serves as a clinical process browser that enables users to make changes to tasks during the execution phase. Users can make logical deletions, additions and modifications to tasks, to alter temporal aspects or preconditions of tasks. TP provides auditing, reporting, and billing functionalities that allow users to analyse task performance, execution, and deviations from the original task plan. TP’s execution engine is the TP Engine, which executes both Work Plan (WP)s and DLM functions, encapsulating expert knowledge for decision-making. TP allows for the temporal specification of medication orders, with expressions like ’3 times a day before meals’ (“openEHR Architecture Overview”, n.d.), and has native process structuring to organize tasks in hierarchical structures of WPs, Task Plans, and Task Groups. Each of these structures includes well-defined start and end nodes, restricting branching, unlike BPMN (Zerbato et al., 2015). TP allows the grouping of tasks into Task Groups executing tasks sequentially or in parallel, using logical decision gates like AND, OR, or XOR, and decision structures like CASE or IF. It also delegates tasks to other actors, performs actions associated with tasks such as handoffs or requests to external systems, and 30
CHAPTER 2. BACKGROUND Figure 12: OpenEHR conceptual framework for care pathways and guidelines (“Guidelines and Planning Overview”, n.d.). includes numerous types of events, both deterministic and nondeterministic, with temporal primitives allowing time references, both absolute and relative, the use of timers, detection of value change events in globally monitored variables, sending notifications, or signaling task transition events (“Task planning (TP) specification”, n.d.). Hence, TP makes it possible to create a structured plan, or set of plans, to achieve a goal (e.g. the patient is getting well) (Adamczyk, 2019). A complete plan contains a WP, task plans, task groups, and tasks, as presented in Figure 13 and described next (“Task planning (TP) specification”, n.d.). • WP – The WP represents the top-level formal concept and can be composed of one or more task plans. The WP is a determination of work to be done by at least one healthcare professional in order to accomplish a certain goal regarding a single subject of care, like a patient. As an example, a WP could describe the complete treatment of a patient, when a WP is completed the treatment is finished. These plans adhere to established guidelines and pathways, with each Task Plan specifying work details within defined contexts and involving a principal performer and 31
CHAPTER 2. BACKGROUND Figure 13: Main components of openEHR Task Planning. potentially other participants. The existence of multiple Task Plans arises from the need for different performers in varied contexts and the inclusion of sub-plans under a parent Task Plan, allowing for task delegation within the same worker. Sub-plans serve the purpose of promoting plan reusability for smaller tasks and adjusting the level of detail based on the proficiency of performers. The assumption is that the entire WP is executable within a singular computational context, emphasizing the use of notification and communication methods for comprehensive progress tracking. • Task Plan - A Task Plan is the concrete definition of planned tasks to be performed by one or more actors. A task plan can include a set of tasks or task groups that are planned to achieve a particular goal within a larger plan. Task plans can also be described as logical fragments of a treatment that need to be completed in a given order to complete the treatment. • Task Group – As the name states, a task group is a group of tasks and/or more task groups within a task plan that are meant to be executed either sequentially or parallelly. A task group can enable the representation of logic structures in a task plan, in that case, the task group is considered a conditional. • Task – The definition of a task can be described as a separately performable item of work for a performer to execute. Tasks may be defined inline or inside a task group, sub-plan or a plan. Administrating medication to a patient or conducting a laboratory test, are two examples of a task. In order to enable visually efficient representations of Task Plans and to be able to understand the data structure of TP more easily, openEHR designed the TP-VML, similar to process representation graphical languages, like BPMN and CMMN, but developed to represent the 2.4.1 structure (“Task Planning Visual Modelling Language (TP-VML)”, n.d.). 32
CHAPTER 2. BACKGROUND TP is designed based on the segregation of responsibilities, and task models use symbolic references to patients or other EHR subjects (called proxies), in addition to logical decision functions. The abstract execution engine (TP Engine) executes both task plans and decision-making modules and is accessible to third-party applications through an API. The UML data metamodel of the TP standard includes three main packages: definition, materialised, and audit, corresponding to the design, execution, and post-execution stages, respectively (“Task planning (TP) specification”, n.d.). While the openEHR standard has been studied in many research works, the TP specification has received less attention, as it is still under development. A study conducted by Iglesias et al. (2022) showed that the clinical-oriented TP specification was able to successfully represent a complex catheter-related bloodstream infection process patterns depicted and identified possible extensions that can help increase its adequacy for modelling infection Clinical pathways and possibly other complex clinical conditions. Furthermore, Alves (2021) developed a proposal for a clinical model expressed through a computational formalism that represents the semantics of protocols, decision rules, and clinical data used in the perinatal care of a low-risk pregnancy to be implemented in an obstetric telemonitoring system, using openEHR TP. Hence, despite these recent efforts, there is still room for further research. 2.4.2 Clinical Decision Support Systems (CDSS) CDSS are defined as ” broadly to providing clinicians and patients with computer-generated clinical-knowledge and patient-related information, intelligently filtered or presented at appropriate times to enhance patient care ” (Osheroff et al., 2012), or as ” computer applications designed to help health-care professionals with making clinical decisions about individual patients ” (Shortliffe et al., 2014). In recent years, there has been a significant increase in the volume and diversity of medical knowledge and information, making it very challenging to have all the necessary data when making medical decisions, which are often critical. The field of medicine has witnessed the development of various types of CDSS over the years, supporting clinical work processes such as diagnosis or describing drug interactions, either as a complement to medical decision-making or as recommendations (Bright et al., 2012). A CDSS can be described using multiple dimensions. According to their structure, CDSS differ in the moment they provide support (before, during or after the clinical decision is made) and how active or passive they are in support, ie whether CDSS actively provides alerts or passively respond to physician input or patient-specific information (Berner & La Lande, 2007). Finally, CDSS varies in how easy the access for busy health professionals is. So, over a quarter of a century of experience with CDSS has led to some conclusions, among them (Berner, 2007; Jia et al., 2016): • The use of CDSSs can significantly reduce patient expenses and hospital costs; • CDSSs are important in preventing errors in medication-related parameters, for example, dosage; • A good presentation of previous exam results can reduce unnecessary exams; 33
CHAPTER 2. BACKGROUND • Users should not be overwhelmed, too many reminders or options can be worse than none. Messages and text should be kept short and focused; • Getting feedback from users is crucial. However, despite all the advantages presented by the use of CDSSs, due to the increasing the complexity of clinical workflows and the strictness of working hours for health professionals, the organizations implementing CDSSs need to be careful to ensure that these systems become a fluid and intrinsic part of the clinical work process. 2.4.3 Data Minning and Machine Learning in Healthcare Several innovations associated with CDSSs are being put into practice due to the ambition to improve the efficacy and efficiency of healthcare. With the increasing demand for health care services and the great amounts of data generated daily from parallel streams, the optimisation and streamlining of clinical workflows have become increasingly critical (Bi et al., 2019). The exponential growth of data in a hospital environment, along with its complexity and quantity, triggered the development of techniques and methodologies to synthesize and subsequently analyse these data for various purposes. In this sense, since the mid-1970s several researchers have been defining the concept of Data Science as a multidisciplinary technological area capable of dealing with problems such as the size, speed and huge diversity of information sources, in support of decision-making (Raghupathi & Raghupathi, 2014). One of the approaches is the concept of DM which consists of a process of extracting information and detecting patterns in large amounts of data (Ramageri et al., 2010). Thus, DM is a logical process used to search large databases with the main objective of finding previously unknown patterns. The discovery of these patterns allows make assertive decisions for business development. In general, its process boils down to three steps (Ramageri et al., 2010): 1. Exploration: Data Selection, Data Preprocessinng and Data transformation - The first stage refers to data exploration, where data is processed and transformed. data, as well as the selection of important attributes to be studied. 2. Pattern identification: Information - This step corresponds to the identification of hidden patterns in the data, which leads to the acquisition of relevant information. 3. Deployment: Knowledge - After acquiring information, it is necessary to analyse its veracity in order to transform the information into knowledge. This phase refers to the presentation of an output. DM has a wide field of application, being applicable in almost all sectors where there is existence of data. Therefore, it is considered one of the most important techniques in data processing and also one of the most promising developments in IT. 34
CHAPTER 2. BACKGROUND On the other hand, AI is a broader term that refers to technologies or systems being able to demonstrate human-like intelligence. Within AI, ML has emerged as the method of choice for developing practical software for computer vision, speech recognition, natural language processing, robot control, and other applications (Jordan & Mitchell, 2015). While DM and ML are closely related, they serve different purposes within the realm of data analysis. DM is concerned with discovering patterns in large datasets, whereas ML is focused on creating algorithms that learn from data to make predictions or decisions (Kelleher et al., 2020). The integration of ML into DM has proven beneficial across various applications, enhancing the ability to extract meaningful information from data (Neeraj & Maurya, 2020). DM often employs ML algorithms for tasks such as classification and pattern recognition (Goyal & Singh, 2023). However, ML extends beyond the scope of DM to include a broader range of applications, such as computer vision and natural language processing (Marco & Farinella, 2018). ML in medicine can lead to more accurate diagnostic algorithms and individualised patient treatment. There is a large amount of literature on ML based algorithms and their potential clinical utility (Rahmani et al., 2021). EHRs provide access to a large number and variety of variables that enable high-quality classification and prediction, while ML offers the methods to handle the large volumes of high-dimensional data that are typical in a healthcare setting (Knevel & Liao, 2023). As a result, the application of ML to EHR data analysis is at the forefront of modern clinical informatics (Callahan & Shah, 2017). There are some variations of how to define the types of ML algorithms but commonly they can be divided into categories according to their purpose and the main categories (Alloghani et al., 2020), as presented in Figure 14. Figure 14: Types of machine learning algorithms. Recommender systems are a classical example of ML applications. They facilitate sieving through 35
CHAPTER 3. RESEARCH STRATEGIES AND DEVELOPMENT TOOLS Although technology adoption in healthcare is on the rise, user satisfaction can remain generally low across various groups, failing to materialize the expected improvement in higher-value care. This dissatisfaction could be attributed, at least in part, to the inadequacy of existing systems, which fail to acknowledge the diverse needs of patients, doctors, nurses, and hospital administrators. To tackle this issue, a three-cycle DSR approach could effectively address user dissatisfaction and develop solutions tailored to meet the needs and objectives of all stakeholders (A. R. Hevner & Wickramasinghe, 2018). Figure 18: Three-cycle DSR approach. Adapted from (A. R. Hevner & Wickramasinghe, 2018). This iterative method, represented in Figure 18 can be understood through three intersecting cycles (A. R. Hevner & Wickramasinghe, 2018): • The Relevance Cycle focuses on bridging the healthcare environment with DSR activities, emphasizing the purposefulness of design improvements and practical goals to solve healthcare problems. It considers how improvements can be measured within the healthcare context, with the output of DSR returned for study and evaluation. • The Rigor Cycle connects design science activities with healthcare knowledge bases, ensuring innovation by incorporating technical and scientific foundations, experience, and expertise. It aims to provide new knowledge to the organization, validated by evidence of improvements in the healthcare environment. • The internal Design Cycle is the core of any DSR project, involving rapid iteration between constructing healthcare artefacts, evaluation, and feedback for refinement. This cycle generates design alternatives, evaluates them against requirements, and iterates until a satisfactory design is achieved. While the Relevance and Rigor Cycles provide input, the Design Cycle is where the primary work of DSR occurs, although it remains dependent on the other cycles during execution. In summary, following the principles of the DSR methodology can lead to improved outcomes when introducing new healthcare artefacts characterised by both purposefulness and innovation. It has been 42
CHAPTER 3. RESEARCH STRATEGIES AND DEVELOPMENT TOOLS promising to observe the growing adoption of DSR in healthcare improvement initiatives, as evidenced by several research projects in different areas: medical systems (Dünnebeil et al., 2013; A. Miranda & Miah, 2023), clinical protocols (Sibold, 2017; Szel�gowski et al., 2022), EHR (Harahap et al., 2023; Neto, Ferreira, et al., 2019), among others. 3.3 Scrum Framework Scrum is an agile framework designed to manage complex projects. It operates in iterative cycles called sprints, typically lasting 2-4 weeks, where the team delivers potentially shippable increments of the product. The core roles in Scrum include the Product Owner , responsible for defining and prioritizing the product backlog; the Scrum Master , who facilitates the Scrum process and removes impediments; and the Development Team , responsible for delivering the product increment (Schwaber & Beedle, 2001). At the start of each sprint, the team conducts sprint planning to select items from the product backlog and create a sprint backlog, outlining the tasks needed to achieve the sprint goal. Daily stand-up meetings are held to synchronize activities, identify any obstacles, and adjust the plan accordingly (Schwaber & Beedle, 2001). At the end of the sprint, the team conducts a sprint review to demonstrate the completed work to stakeholders and gather feedback. This is followed by a sprint retrospective to reflect on the sprint process and identify improvements for future sprints. Throughout the process, transparency, inspection, and adaptation are core principles, allowing the team to continuously improve and adapt to changing requirements. Scrum enables teams to deliver value incrementally, foster collaboration, and respond effectively to customer feedback (Schwaber & Beedle, 2001). Adapting Scrum to a doctoral thesis helps keep the project manageable, ensures regular progress checks, and can enhance focus and motivation. By breaking down the thesis into smaller, manageable units of work, you can mitigate the risk of overwhelming stress and enhance overall productivity. Hence, the adoption of the Scrum methodology within the scope of this research, which encompasses interdisciplinary collaboration across academic and clinical environments, finds its justification in its capacity to address prevailing challenges inherent to research management. Central to the ethos of Scrum is its emphasis on iterative, collaborative processes, aligning well with the exigencies of scientific inquiry that demand frequent interaction and coordination among diverse stakeholders. Furthermore, the acknowledged significance of effective resource allocation and temporal management in research underscores the applicability of Scrum’s structured yet adaptable framework. Notably, Scrum’s iterative approach, characterised by incremental deliveries, presents a congruent model for accommodating the iterative nature of research endeavours while ensuring alignment with overarching objectives. Additionally, the potential for interdisciplinary knowledge exchange engendered by Scrum’s cross-functional team dynamics holds considerable promise for augmenting the breadth and depth of research insights. The proposed establishment of a community platform dedicated to Scrum implementation in research endeavours further 43
CHAPTER 3. RESEARCH STRATEGIES AND DEVELOPMENT TOOLS underscores the methodological robustness and collaborative ethos inherent in this approach, offering a platform for discourse and knowledge dissemination among research practitioners (Hron & Obwegeser, 2022; Ota, 2010). Figure 19: Adapted Scrum framework. As depicted in Figure 19, adapted from the traditional Scrum framework, the Principal Investigator assumes the role of the Product Owner , responsible for defining the research objectives, prioritizing tasks, and ensuring alignment with the partner hospital’s needs. The Research Supervisor embodies the role of the Scrum Master , facilitating the Scrum process, removing impediments, and supporting the team in achieving their goals. The Research Team functions as the Development Team , tasked with executing the research tasks outlined in the sprint backlog and delivering incremental results. This adapted framework not only provides a clear delineation of roles and responsibilities but also promotes transparency, regular communication, and iterative progress toward the overarching research objectives. The Scrum meetings, although not daily, are adapted to the needs of the project, allowing for flexibility while ensuring that the team remains aligned and focused on delivering value throughout the research process. Through the implementation of the Scrum framework, the research team can effectively navigate the complexities of the research process, maximize productivity, and ultimately, contribute to the advancement of knowledge in the field. In this sense, despite its original design for software development project management, Scrum has the potential to be applied beyond this domain, having been effectively employed in various industrial contexts. Hence, the Scrum methodology can be adapted to diverse settings where collective efforts are required to attain shared objectives, including scientific research projects. 44
CHAPTER 3. RESEARCH STRATEGIES AND DEVELOPMENT TOOLS 3.4 Analysis and Evaluation Methods This section presents some frameworks used to evaluate and understand the feasibility and potential of the proposed solution. This section encompasses three subsections: Proof of Concept, Technology Acceptance Model (TAM) and SWOT Analysis, which will be detailed below. All of these serve different purposes in business and project management, but all of them are crucial for strategic planning and decision-making 3.4.1 Proof of Concept The realization of a PoC process allows for the gathering of sufficient evidence regarding the technical feasibility of a product or service in question. Some assumptions or conclusions about feasibility may need to be adjusted as new insights into the product emerge. The PoC generates knowledge about the design, performance, preliminary production requirements, and production costs of the product. The final result is a working model known as a prototype. The results of a PoC must be reproducible, and if relevant, the quality expectations of the entity where the product will be implemented are met (“Proof of Concept”, n.d.). Some essential but generic activities in the PoC include: • Examining the operational requirements of the product or process. • Identifying potential security risks. • Conducting a preliminary production assessment. • Performing a preliminary manufacturing assessment • Estimating prototype costs. Thus, it can be stated that one of the most important steps in the design, planning, development, implementation, and presentation of a prototype in the field of IT is the realization of a PoC, as it establishes whether the solution found meets its purpose, fulfiling the requirements and objectives initially defined. It also allows for the identification of potential failures or errors in the proposed solution. Additionally, TAM is commonly employed in ISs and is appropriate for validating PoC. TAM helps assess users’ acceptance and adoption of the developed IT solution. By considering factors such as perceived usefulness and ease of use, TAM provides insights into users’ intentions to use the system, thus informing further improvements and adjustments to enhance user satisfaction and adoption rates. 3.4.2 Technology Acceptance Model The TAM was introduced by Fred Davis in 1986, prompted by concerns over workers’ reluctance to use available IT resources. The proponents of this model argued that the key to increasing IT usage was to first 45
CHAPTER 3. RESEARCH STRATEGIES AND DEVELOPMENT TOOLS enhance its acceptance, which could be assessed by inquiring about people’s future intentions to use IT. Understanding the factors that shape an individual’s intentions would enable organizations to manipulate these factors to promote acceptance and thus increase IT usage (Holden & Karsh, 2010). The initial TAM research found that only three factors were necessary to explain, predict, and presumably control acceptance. To develop the model, its creators adapted the Theory of Reasoned Action, a general sociopsychological/behavioural theory proven useful in understanding a variety of behaviors. As customary when adapting this theory to new contexts, a preliminary study was conducted to determine the appropriate variables to include in understanding behaviour in IT use. This original version consisted of perceived usefulness , perceived ease of use , attitude toward use , intention to use , and actual use (F. D. Davis, 1989; Marangunić & Granić, 2015). The TAM assumes that two particular beliefs, perceived usefulness and perceived ease of use , are primarily relevant to computer acceptance behaviors. Perceived usefulness is defined as the subjective probability, from the user’s perspective, that using a particular IT will enhance their job performance and productivity. perceived ease of use refers to the level of belief about the ease and absence of effort in using the new IT. Although TAM has been widely tested with different samples in various situations and has proven to be a valid and reliable model for explaining ISs acceptance and usage, many researchers have suggested that TAM would need additional variables to provide an even stronger model, thus giving rise to Extended Technology Acceptance Model (TAM2) (Lai, 2017; Venkatesh & Davis, 2000). Figure 20 illustrates both TAM and TAM2. TAM2 added theoretical constructs involving social influence processes ( Subjective Norm , Voluntariness , and Image ), which determine whether the user conditions the use of the new IT based on the opinions of others, and cognitive instrumental processes ( Job Relevance , Output Quality , Demonstrability of Results , and Perceived Ease of Use ). This version was intended mainly to identify the variables that influence the perceived usefulness (Lai, 2017; Venkatesh & Davis, 2000). Finally, Technology Acceptance Model 3 (TAM3), refined by Viswanath Venkatesh and Fred Davis and presented in Figure 21, expands the number of determinants influencing individuals’ perceptions of a technology’s usefulness and ease of use. It retains the central concepts of perceived usefulness and perceived ease of use but takes into account other determinants, namely individual differences, system characteristics, social influence, and facilitating conditions. Furthermore, it is suggested that the determinants of perceived usefulness do not influence perceived ease of use and vice-versa (Venkatesh & Bala, 2008). The definition of all constructs, referring to TAM, TAM2, and TAM3, can be found in Table 1. Regarding the current study, it was decided that the most suitable model would be TAM3. This allows for the evaluation of the behaviour of individuals in the target community, in this case, healthcare professionals from the pilot hospital (ULSSA), regarding this new technology, predicting and justifying its acceptance or rejection and also possibly outlining improvements to be made. The analysis of scientific articles and meta-analyses of literature on TAM allowed inferring that the model application is typically carried out using questionnaires directed at individuals who will use the system being evaluated. Therefore, this methodology was also adopted here. The questionnaire developed, presented in Appendix A, consists 46
CHAPTER 3. RESEARCH STRATEGIES AND DEVELOPMENT TOOLS Table 1: Definition of constructs common to TAM, TAM 2, and TAM 3 in blue, common to TAM 2 and TAM 3 in yellow, and specific to TAM 3 in orange (Jeffrey, 2016; Venkatesh & Bala, 2008) Construct Definition Perceived Utility The degree to which an individual believes that using a new technology would enhance their job performance. Perceived Ease of Use The level of effort (physical and/or mental) that an individual expects to exert to correctly use a new technology. Intention to Use Voluntary intention of an individual to use a new technology. Actual Use Individual’s attitude towards the use of the new technology. Subjective Norm Individual’s perception of others’ opinion about whether they should or should not use a new technology. Image Individual’s perception that using a new technology will enhance their social status within or outside the company. Voluntariness The extent to which the use of new technology is perceived as voluntary or freely chosen. Demonstrability of Results The degree to which an individual believes that the results of using new technology are observable and communicable to others. Job Relevance Individual’s perception of the applicability of a new technology in their work. Output Quality Individual’s perception of the quality of the new technology, i.e., how well the system performs its tasks. Computer Self-Efficacy The degree to which an individual believes they have the ability to perform a specific task with a computer. Perception of External Control Individual’s perception of the existence of adequate technical and organizational resources to support the use of new technology. Computer Anxiety Individual’s apprehension or fear when faced with the possibility of using computers. Computer Playfulness Individual’s motivation for using computers. Perceived Enjoyment The extent to which the use of a new technology is perceived as enjoyable or unpleasant, regardless of the resulting consequences. Objective Usability A construct that allows for a comparison of systems based on actual (rather than perceived) level of usability. 47
CHAPTER 3. RESEARCH STRATEGIES AND DEVELOPMENT TOOLS Figure 20: Schematic representation of the Technology Acceptance Model and the Extended Schematic representation of the Technology Acceptance Model. Adapted from (Lai, 2017; Venkatesh & Davis, 2000). Figure 21: Schematic representation of the Technology Acceptance Model 3 (adapted from (Venkatesh & Bala, 2008). of numerous valid questions based on the constructs and their respective determinants defined by TAM3. 48
CHAPTER 3. RESEARCH STRATEGIES AND DEVELOPMENT TOOLS 3.4.3 SWOT Analysis The SWOT analysis aims to identify the strengths and weaknesses of an organization, as well as the opportunities and threats in the environment. Once these factors have been identified, strategies are developed that can be based on strengths, eliminate weaknesses, exploit opportunities, or counteract threats (Dyson, 2004). Furthermore, the SWOT analysis is a widely used tool for analysing internal and external environments, aiming to achieve a systematic approach and support for decision-making situations. In practice, once an objective has been established, a multidisciplinary team representing a broad range of perspectives should conduct the SWOT analysis, which is typically presented in the form of a matrix. Finally, the impressive capability of SWOT lies in the correspondence of specific internal and external factors, providing a strategic matrix with significant meaning. It is essential to note that internal factors are within the organization’s control, such as finances, operations, marketing, and other areas. On the other hand, external factors are outside the organization’s control, such as economic and political factors, new technologies, and competition. The SWOT matrix, presented in Figure 22, consists of four combinations known as maxi-maxi (strengths/opportunities), maxi-mini (strengths/threats), mini-maxi (weaknesses/opportunities), and mini-mini (weaknesses/threats) (Lee & Sai On Ko, 2000). Figure 22: SWOT analysis matrix. In theory, SWOT analyses are used as inputs for the creative generation of possible strategies, by repeatedly asking and answering the following four questions (Dyson, 2004): How can we leverage each strength? How can we address each weakness? How can we exploit each opportunity? How can we mitigate each threat? 49
CHAPTER 3. RESEARCH STRATEGIES AND DEVELOPMENT TOOLS Thus, the successive use of these questions throughout the development of the solution will lead to the highlighting of strengths and opportunities, while addressing weaknesses and threats. 50
4 The Development of a Task Planning Engine This chapter will focus on the development of the central artefact of this research: the TP Engine. The aim of the TP Engine is to automate the process of clinical task management, reducing manual workload and increasing the efficiency of hospital workflows. The development of this engine followed the openEHR specifications, mentioned earlier, which describe what functionalities it should have and how to structure the data involved in modelling and executing workflows. Before introducing the tools chosen for system development, this chapter outlines the main objectives based on the openEHR specifications. Additionally, it includes some requirements that were not mentioned or little developed by the specifications. The chapter also presents a detailed approach to all system components and concludes with some observations. 4.1 Objectives At a first phase, it was important to outline the objectives of the openEHR TP Engine implementation and provide a clear understanding of what the project aims to achieve. The objectives served as a guiding principle for the development and implementation of the engine and provided a basis for evaluating the success of the project. In this sense, the main objectives were: 1. To automate the process of clinical task management and reduce manual workload in hospital workflows. 2. To standardize the representation of clinical tasks using openEHR standards, ensuring seamless and efficient workflows across different healthcare settings. 3. To improve patient outcomes by providing healthcare providers with a comprehensive view of the patient’s care journey and enabling them to coordinate care, monitor progress, and track patient outcomes in real-time. 4. To reduce costs and improve staff satisfaction by streamlining hospital workflows and reducing errors and duplications. 51
CHAPTER 4. THE DEVELOPMENT OF A TASK PLANNING ENGINE Figure 24: Task Planning Engine developed architecture. Figure 25: Logic model for the developed relational database. 58
CHAPTER 4. THE DEVELOPMENT OF A TASK PLANNING ENGINE The backend services that were developed have been designed to handle workflow management and tasks autonomously, as well as communicate with clients. The TP Engine, which is the central point of the project, is a powerful engine with robust workflow processing functionalities. Figure 26 shows in more detail how the TP Engine handles requests together with Redis and Bull. All received requests initially pass through the controller, which is a script that handles HTTP requests and acts as the intermediary between the client-side (frontend) and the database or other services (backend). If the request regards the materialisation or communication of a new event, the bull is used to handle distributed background jobs and messages. In this context, the producer is responsible for adding jobs or messages to the queue, while a consumer is responsible for processing those jobs or messages. For this project, two of these queues are maintained in Redis: materialisations and events. The reason why only these two features use Bull and Redis is because they represent the vast majority of requests that are made to the API and therefore require assistance in processing. Figure 26: Task Planning Engine processing architecture. Furthermore, NodeJS works together with various microservices developed to support TP Engine operations, mainly to mediate communications with external services. To ensure secure client communications, the Express middleware is a crucial component in this architecture. Several frontend applications interact with the TP Engine, with special emphasis on the workflow management application that was developed within the scope of this research project. This application will be described in more detail in the next subsections. 59
CHAPTER 4. THE DEVELOPMENT OF A TASK PLANNING ENGINE 4.2.3 The Task Planning Engine (Backend) To effectively showcase the functionality of the developed engine, this section will be structured to highlight its core features and integration points. The goal is to illustrate the key intersections between the openEHR specifications and the multidisciplinary architecture devised for their implementation. The implementation steps of the TP Engine adhere closely to the extensive openEHR specifications. Given the sheer volume and complexity of these specifications, detailing every implementation step would not only be impractical but also potentially overwhelming. Instead, the focus can be placed on demonstrating how the engine aligns with and effectively implements the key principles and requirements outlined in the openEHR specifications. This approach ensures that the focus remains on the primary objectives of this research while still providing a comprehensive understanding of the engine’s functionality. It is also important to mention that in the developed system security stands as a paramount concern, ensuring the confidentiality, integrity, and availability of patient data throughout the healthcare ecosystem. Robust security measures are implemented at every level of the system architecture, encompassing access controls, encryption protocols, and audit trails to safeguard sensitive information from unauthorised access or tampering. Role-based access control mechanisms are employed to restrict data access to authorised personnel, ensuring that only individuals with appropriate permissions can view or modify patient records. Additionally, data encryption techniques are applied to protect data both in transit and at rest, mitigating the risk of interception or unauthorised disclosure. Moreover, comprehensive audit trails are established to monitor and track all user interactions with patient data, enabling accountability and traceability in the event of security incidents or breaches. By prioritizing security in the workflow automation system, patients and healthcare providers can trust in the confidentiality and integrity of their health information, fostering confidence and trust in the healthcare delivery process. 4.2.3.1 Work plans creation The first functionality of the TP Engine to be described is the management of WPs that can be materialised later on. Therefore, an endpoint was created to receive an Operational Template (OPT) that can be exported from the modelling tool, converting it to JSON in order to obtain a simplified structure. During this stage, each element of the WP will be attributed with an Unique Identifier (UID). UIDs are crucial to unambiguously identify the WP elements and storing it as a JSON document in the respective database. Thus, to store these modelled WP, the WORK_PLANS_JDTS collection was created in an Oracle 19c database using SODA. The use of SODA also helps in the versioning of the WP since it manages the versioning of the associated documents. 4.2.3.2 Materialization The materialisation of WPs associated with a specific patient represents one of the main features of TPEngine. Thus, the materialisation process consists of preparing a WP for use, instantiating it and, 60
CHAPTER 4. THE DEVELOPMENT OF A TASK PLANNING ENGINE normally, persisting it in patients’ EHR. During this process, some user input can be necessary. This materialised representation includes an instance of the Plan using Materialised model instances, i.e. the M_XXX classes shown in the openEHR TP specifications, representing the concrete executable Tasks, each with a reference back to a definition Task. At the end, the structure created will mirror the structure of the original definition, with extra copies for repeatable sections and potentially ’dead branches’ removed. An instance of EXECUTION_HISTORY is also created at materialisation time, providing a starting point to compile records of Plan execution events. Furthermore, during this stage, tasks may be assigned in advance to certain participants (performance allocation). The developed TP Engine is ready to receive materialisation requests with the structure presented in Listing 4.1. Listing 4.1: Materialization request structure schema 1{ 2"wp_id":string, 3"user":string, 4"ehr_id":string, 5"context":JSON 6} Hence, the developed TP Engine follows a set of steps when receiving a materialisation request. Below, some of these steps are summarised: (1) Using the id_wp received in the request body, fetch the WP from the SODA database; (2) Create the JSON that represents a materialised instance of the retrieved WP. (3) Register a new subject in the subject proxy in order to guarantee communication with this service for the current context (subject). (4) Add the context variables to the subject to the created subject proxy. (5) Iterate through the materialised JSON: 5.1 Add properties that are specific to the materialised model; 5.2 Add UIDs to each one of the materialised WP items in order to identify unequivocally each one of them; 5.3 Add the initial lifecycle state to each plan item (planned); 5.4 For the top level plans, allocate the performers by requesting them to the subject proxy. The performer allocation logic for each task plan should be added to the subject proxy in the modelling process. 61
CHAPTER 4. THE DEVELOPMENT OF A TASK PLANNING ENGINE 5.5 Find the first task to enable, changing its lifecycle state to available. (6) Insert the materialised data in the relational database described in Figure 25. (7) Save the materialised JSON document in the respective SODA collection in order to persist these data. (8) Respond to the client with a success or unsuccess message. 4.2.3.3 New events The communication of new events represents an essential component of the developed engine. These events record user interactions with WP and mainly allow changing the status of tasks. These events are communicated to TP Engine through POST requests, whose body schema is represented in Listing 4.2 Listing 4.2: New event POST request structure schema 1{ 2"m_wp_id":string, 3"task_id":string, 4"m_task_id":string, 5"user":string, 6"entry_instances":JSON 7} In this case, each event is linked to a specific Task, and it is mandatory to send repetitive UIDs that unambiguously identify the Task in question. In addition to the task and user identifier, entry instances data associated with the event, it can also be sent in the body. These entry instances can be pointers for submitted compositions to the patients EHR during the task execution. In order to understand the general phases behind the processing od new events, some steps are described bellow: (1) Validate the existence of the task presented in the request’s body and get task details from the database; (2) Validate the legitimacy of the received event, not only concerning the type of event but also with the current status of the task. In other words, the event may not be permitted for the lifecycle state the task is in; (3) Update data in the NEW_EVENT_RECORDS table with the new event data received; (4) Retrieve the m_wp collection, and search recursively for the task; (5) Update the task details in the collection; 62
CHAPTER 4. THE DEVELOPMENT OF A TASK PLANNING ENGINE (6) Deal with the consequences of the event, such as moving forward with execution or abandoning the plan. If a task is completed, searching for the next task involves selecting which type of plan item is next in line. This search can be summarised with the following points: 6.1 If the upcoming plan item is a performable task, the existence of waiting conditions and preconditions is verified. If they do not exist, indicating that the task can be executed immediately, that task is enabled and its data is updated in the document and the database. 6.2 When the upcoming plan item is a system request, it is processed by the engine, allowing the execution to progress accordingly. 6.3 In case the next plan item is a Task Group, an iteration for each of its items is performed, following the same logic presented in these steps. 6.4 If the next plan item is a decision structure, a request to the DLM Engine is performed in order to decide the branch to follow and the branch elements are also iterated. 6.5 In the case of a dispatchable task, among the different types it can assume, it is important to emphasize the case of hand-off where the execution will move to a new task plan. In this case, in addition to the iteration process described here, it is also necessary to allocate the performers of the new task plan triggered. (7) Both relational tables and SODA documents are updated with the data generated in this process. (8) A response is sent to the requesting client. In order to optimize and expedite not only this process but also the retrieval of available tasks, Redis has been implemented. Figure 27 illustrates the interaction with Redis, which in turn stores task details for quick and easy accessibility. 4.2.3.4 Tasks retrieval Task retrieval is a fundamental aspect of any system designed to manage workflows efficiently, particularly in contexts like healthcare, where tasks may vary based on user roles and patient needs. The task retrieval API was designed with a user-centric approach, focusing on delivering a seamless experience for users interacting with the system. It caters to various stakeholders, including users, patients, and administrators, by providing access to relevant tasks based on their roles and permissions. For users, the API developed ensures quick and easy access to tasks assigned to them, streamlining their workflow and allowing them to focus on their priorities. It also enables healthcare providers to efficiently manage and track patients’ care plans. Moreover, this service takes into account the lifecycle state of tasks, providing functionalities to retrieve tasks based on their current status, such as available or completed. This ensures that users have visibility into the progress of tasks and can take appropriate actions as needed. 63
CHAPTER 4. THE DEVELOPMENT OF A TASK PLANNING ENGINE Figure 27: Interaction between the TP Engine and Redis in a new event request. Additionally, the system supports the retrieval of tasks based on WP type, allowing users to filter tasks according to specific categories or workflows. Furthermore, it facilitates task retrieval based on dates, enabling users to view tasks scheduled for specific timeframes, such as today, this week, or custom date ranges. Listing 4.3 shows some of the parameters that are accepted by this service. Listing 4.3: Get tasks request structure schema 1{ 2"user":string, 3"start_date":string, 4"end_date":string, 5"ehr_id":string, 6"wp":string, 7"filters":JSON 8} Initially, the retrieval of required tasks was straightforward, utilizing a query to the relational database developed specifically for this purpose. This query was constructed dynamically, incorporating various parameters received in the request. This approach provided a basic yet functional method for accessing tasks based on specified criteria. However, with the introduction of Redis into the system, as presented in Figure 28, the process of task retrieval has been significantly enhanced. As the relational database query began to exhibit signs of slowing down, the integration of Redis emerged as a solution to this performance bottleneck. 64
CHAPTER 4. THE DEVELOPMENT OF A TASK PLANNING ENGINE Figure 28: Interaction between the TP Engine and Redis in a get tasks request. Analysing the interaction with Redis, when a task request arrives to return all tasks associated with a performer, it is checked whether this user exists as a key in Redis. If the key exists, a list with the IDs of their tasks is quickly returned. This list is then used to retrieve the details of each task from Redis and return the final response to the client. This process has proven to be very fast and efficient. If the user is not in Redis, a query is made to the Oracle database to retrieve their tasks, and, then, the data is stored in Redis so that the response to a subsequent request can be much faster. The TP Engine functionalities extend their reach across various applications, with a significant emphasis placed on the Professional Portal. This portal serves as a central hub where users can seamlessly access and manage their tasks, all powered by the TP Engine’s capabilities. Within the Professional Portal, users are provided with intuitive interfaces and comprehensive tools to efficiently navigate and interact with their tasks. Whether it’s reviewing pending assignments, updating task statuses, or initiating new workflows, the portal offers a user-friendly experience tailored to meet the diverse needs of professionals across different domains. 4.2.3.5 Microservices In this section, some microservices developed in Go within the TP Engine ecosystem that complements the main engine will be showcased. Using GoLang microservices alongside the main Node.js engine offered benefits in performance, scalability, and resource efficiency. Convert csv to compositions A microservice in GoLang, presented in Figure 29, was developed to convert CSV data into openEHR compositions. The service reads the CSV file, parses each row, maps the 65
CHAPTER 4. THE DEVELOPMENT OF A TASK PLANNING ENGINE data to openEHR archetypes, creates compositions for each row, and saves them to a storage system. In detail, the service iterates over each row in the CSV file and extracts the relevant data fields. Then, a defined mapping between the CSV columns and the openEHR archetypes or templates is loaded. This mapping specifies how each data field in the CSV corresponds to the attributes and elements within the openEHR compositions. It is also important to use a mapping for the coded text fields. For each row in the CSV, a new openEHR composition instance is created. The composition is populated with the data extracted from the CSV using the mapping defined previously. Finally, the generated openEHR compositions are stored in the EHRs. Get task values This service was developed to help fill out forms associated with performable tasks. Its creation stemmed from the necessity to automatically populate form fields with default values derived from subject variables. Thus, the planned solution involved placing the map between the form item paths and the associated subject variable in the task’s capture_dataset details. Thus, when the service receives a request with these details, it goes through this mapping and fetches from the subject proxy the value of each one of the variables. In the end, this service returns an object with the item paths as key and the current value of the associated variable as value . State machine The state machine microservice, based on openEHR TP specifications, receives the current task state and an event as input parameters. It determines the next state based on the current task state and the received event, following the state transition rules defined in the openEHR specifications. Events triggering state transitions could include task completion, cancellation, abandoning, etc. Upon receiving an event, the microservice evaluates the current task state and event type to determine and return the appropriate next state. The microservice includes error-handling mechanisms to manage invalid state transitions or unexpected events. 4.2.4 The Task Planning Package (Frontend) The frontend component for openEHR TP acts as the central hub for managing tasks efficiently in healthcare settings where the TP Engine is being used to automate workflows. It provides a versatile toolkit comprising various functions and profiles, customised to seamlessly integrate into different healthcare contexts. This adaptability ensures smooth incorporation into diverse software environments, thereby enhancing existing systems with advanced task management capabilities while fostering interoperability with other components and systems across the healthcare ecosystem. In pursuit of this goal, a specialised React package has been developed. This React package offers a comprehensive set of tools and components tailored specifically for implementing the frontend aspect of openEHR TP. Leveraging the flexibility and efficiency of React, it becomes 66
CHAPTER 4. THE DEVELOPMENT OF A TASK PLANNING ENGINE Figure 29: Flowchart of the CSV to compositions conversion process. easy to integrate these components into healthcare applications. With its modular design and customizable features, the React package empowers developers to create intuitive user interfaces that facilitate efficient task planning and execution. This standardised approach ensures consistency and compatibility across different applications, ultimately enhancing the overall user experience and promoting widespread 67
CHAPTER 5. AUTOMATION OF DIFFERENT WORKFLOWS USING HEALTHCARE STANDARDS Figure 34: Graphical representation of the adopted methods. system was carried out. The integration of all these components was also performed at this stage. Figure 35 represents all the steps taken in the modelling process of each openEHR ecosystem component. This modelling phase was conducted with the health professionals involved to ensure that all functional and technical requirements were met. Given the hospital community’s lack of modelling experience at the start of this project, the collaboration between the authors acquainted with openEHR and the health professionals was essential. Figure 35: Modelling steps for each openEHR component. During this modelling process, some tools available on the internet were used, namely draw.io complemented with specific libraries to provide a working palette for TP-VML diagrams, enabling a purely visual drawing of the WP, and the Archetype Designer, a service provided by Better and openEHR International 74
CHAPTER 5. AUTOMATION OF DIFFERENT WORKFLOWS USING HEALTHCARE STANDARDS which allows the export of modelling in several formats. In this case, the WP was exported in OPT format and, then, this file was converted to JSON and improved in order to include some points that were not possible to integrate with the modelling tool used. The final JSON was saved in the database as a SODA document and was ready to be materialised and computed by the TP Engine. In what concerns the openEHR structures, the stakeholders have decided on the information items to include in the archetypes, their structural organization, and applicable data constraints such as datatypes, cardinality, occurrences, and specific data values for instance terminologies for coded values. Then, it was necessary to search for relevant archetypes in the Clinical Knowledge Manager (CKM) to avoid archetype overdevelopment. CKM is an openEHR community pillar that enables global governance of domain knowledge artefacts as well as collaborative development, management, and publishing. The clinical concepts and data items identified in the requirements gathering were used as keywords to search for existing archetypes that fit the scope of the modelling scenario under consideration. Some archetypes can be used directly, while others may not fully represent the data elements and have to be adapted through specialization. When no corresponding archetypes exist, new ones are created using the ADL. The openEHR RM defines four major categories of archetypes: COMPOSITION, SECTION, ENTRY, and CLUSTER. A COMPOSITION is a container class, whereas a SECTION is an organizing class, both of which contain ENTRY objects (de Moraes et al., 2016). The ENTRY class is further specialised into ADMIN_ENTRY, OBSERVATION, EVALUATION, INSTRUCTION, and ACTION subclasses, of which the latter four are kinds of CARE_ENTRY. CLUSTERS are reusable archetypes that can be used within any ENTRY or CLUSTER (Yang et al., 2019). After the archetypes modelling, the creation of a template for each case study took place. A template differs from an archetype in that the former is tailored to a broader context-specific setting, with a focus on information usability rather than general reuse. To accomplish this, the Archetype Designer tool was used, which allowed the archetypes to be assembled and constrained into templates that represented the requirements of each of the initial scenarios of use. The templates were then exported in the OPT structure and later converted into the JSON Data Template (JDT) structure to ease its interpretation and manipulation. Finally, each JDT template was injected into the FormBuilder tool (a tool under development) in which professionals with modelling knowledge formatted the UI forms. In order to ensure the efficiency of the solution, decision rules were established for forms and task plans to define the logic and actions that should be taken based on specific data inputs. The rules are stored in a standardised structure that can be applied to patient data at runtime. Overall, by automating the application of decision rules, DLMs can help reduce the risk of errors and variability in decision-making, providing more consistent care. On one hand, the DLMS allow the forms to automatically adapt to the specific constraints for a given patient or scenario and to the responses of the healthcare professional filling in the form fields, ensuring that the information entered is always consistent with established clinical guidelines and best practices. The data collected through the forms is used as input for DLMS to support the delivery of real-time decision 75
CHAPTER 5. AUTOMATION OF DIFFERENT WORKFLOWS USING HEALTHCARE STANDARDS support. By automating the process of adjusting forms to specific scenarios and inputs, the solution can provide decision support to healthcare providers, guiding them through the process of entering data and making clinical decisions. On the other hand, DLMS enable healthcare organizations to implement algorithms and rules to determine the best course of action for a given patient. The output from a DLM can be used to guide clinical decision-making, and, therefore it is crucial to be integrated with TP. After everything was properly modelled, it was necessary to process the WP locally through TP Engine to guarantee its correct operation. In this phase, the performance of the TP Engine was also evaluated, as well as its deployment in the field. Each of these phases will be explained for all case studies in detail as well as the steps included in each one. By examining these specific case studies, we seek to analyse how effectively the openEHR system operates within varied scenarios, shedding light on its strengths, weaknesses, and overall impact on enhancing hospital processes. Through detailed exploration and analysis, we aim to provide valuable insights into the practical application and effectiveness of openEHR in real-world healthcare settings. 5.1.2 Deployment As already mentioned, this project was developed in partnership with a Portuguese hospital, so this case study was implemented in that institution. Hence, after all the modelling and validation of the workplans and forms, it was necessary to implement, test and deploy the automated process in the hospital centre. This implementation included the integration of a set of tools from the openEHR ecosystem, among them: •TP Engine - addressed in this thesis in detail, manages all workflows (materialisation, task status, decision management, allocation of performers, events and actions management...) modelled by the professionals; •Form Builder - a tool that converts openEHR templates into forms and in which professionals with modelling knowledge can format the user interface forms (colours, letters, show/hide fields, associate functions and refsets, etc.); •Professional portal - a web application that presents a detailed listing of the tasks assigned to the user and allows the submission of forms and consequent completion of these tasks. This application consumes the FormBuilder forms module. •DLM Engine - a decision logic engine that processes clinical or operational rules. According to a received request, it is checked if a predefined condition is valid and, if true, a specified event is triggered. This engine supports the forms logic, as well as the TP. Several demonstrations were carried out and the necessary documentation was supplied for the users involved to start using the tools provided. 76
CHAPTER 5. AUTOMATION OF DIFFERENT WORKFLOWS USING HEALTHCARE STANDARDS 5.1.3 Evaluation In the evaluation of the deployment of the new solution, a comprehensive approach was employed, utilizing both statistical analysis and process mining tools. It is importante to notice that following the successful implementation of the solution within the hospital environment, tasks began to be executed by health professionals using the openEHR ecosystem. These events were structured and stored within a dedicated database infrastructure. This structuring, following the openEHR specifications, facilitated the seamless extraction of data about the workflow execution, thus laying the groundwork for subsequent in-depth analysis. The data collection process involved systematically capturing various aspects of task execution, such as start and end times, task type, associated users or roles, and any pertinent attributes or metadata. Similarly, workflow executions were meticulously logged, documenting the sequence of steps, transitions between workflow states, as well as relevant contextual information. The data collection process for the case studies required careful planning, attention to detail, and adherence to ethical guidelines to ensure the accuracy and validity of the data. First, the databases and tables of interest were selected. Then, an anonymization process was carried out in order to preserve the identity and privacy of the patients, which involved removing any personal identifying information from the data. Once the data had been anonymised, the relevant queries were developed in order to extract the data required. Finally, after the data had been extracted, it was meticulously organised into descriptive statistics, in the form of indicators, charts, and graphs, to ease interpretation and help convey the findings. These pre-processing and transformation steps were crucial in preparing the data for subsequent analysis, facilitating the identification of patterns, trends, and performance metrics pertinent to our research objectives. Furthermore, in a data-driven world, statistical analysis has become critical to gain insights and draw conclusions that may not be immediately apparent through simple visual inspections. It holds particular significance in the realm of health research, where it can be used to evaluate the effectiveness and efficiency of IT solutions, such as EHRs, telemedicine platforms, and other digital health tools. In this way, healthcare professionals can identify areas for improvement, including the streamlining of workflows, the enhancement of usability, and the resolution of technical glitches, ultimately leading to improved patient outcomes and enhanced quality of care. Overall, the importance of data analytics in the healthcare domain cannot be overstated, as it has the potential to significantly impact the lives and well-being of countless individuals. In this sense, the collected data underwent statistical analysis using SPSS software through descriptive metrics. In statistical analysis, descriptive metrics such as mean, standard deviation, and Standard Error of the Mean (SEM) are commonly employed to summarize key characteristics of a dataset (Barde & Barde, 2012). •Mean: The mean, also known as the average, is a measure of central tendency that represents the typical value in a dataset. It is calculated by summing up all the values in the dataset and 77
CHAPTER 5. AUTOMATION OF DIFFERENT WORKFLOWS USING HEALTHCARE STANDARDS then dividing by the total number of values. The mean is sensitive to extreme values, also known as outliers, and provides a single numerical value that represents the central value of the data distribution. 𝜇= 1 𝑁 𝑁 Õ 𝑖=1 𝑥𝑖 In this formula: –𝜎represents the standard deviation. –𝑁is the total number of data points. –𝑥𝑖represents each individual data point. –𝜇is the mean of the data points. •Standard Deviation: The standard deviation is a measure of the dispersion or variability of a dataset around the mean. It quantifies the average distance of data points from the mean. A low standard deviation indicates that the data points are close to the mean, while a high standard deviation indicates that the data points are spread out over a wider range. Mathematically, the standard deviation is calculated by taking the square root of the variance, which is the average of the squared differences between each data point and the mean. 𝜎=v u t1 𝑁 𝑁 Õ 𝑖=1(𝑥𝑖−𝜇)2 In this formula: –𝜎represents the standard deviation. –𝑁is the total number of data points. –𝑥𝑖represents each individual data point. –𝜇is the mean of the data points. •SEM: The SEM is a measure of the precision or uncertainty associated with the sample mean. It quantifies the variability in sample means that would be expected if multiple samples were drawn from the same population. The SEM is calculated by dividing the standard deviation of the sample by the square root of the sample size. Essentially, it provides an estimate of how much the sample mean may vary from the true population mean. A smaller SEM indicates greater precision in estimating the population mean, while a larger SEM suggests more variability or uncertainty in the estimate. 78
CHAPTER 5. AUTOMATION OF DIFFERENT WORKFLOWS USING HEALTHCARE STANDARDS SEM = 𝜎 √𝑁 In this formula: –SEM represents the standard error of the mean. –𝜎is the standard deviation of the sample. –𝑁is the total number of data points in the sample. Incorporating the SEM alongside the mean and standard deviation provides researchers with a comprehensive understanding of the central tendency, variability, and precision of the dataset. This trio of descriptive metrics aids in drawing more robust conclusions and making informed decisions based on the analysed data. Furthermore, the Shapiro-Wilk test is a statistical method used to assess the normality of a dataset. It evaluates whether a given sample of data follows a normal distribution, which is a bell-shaped curve characterised by a symmetrical distribution of values around the mean (Ghasemi & Zahediasl, 2012). In the Shapiro-Wilk test, the null hypothesis (𝐻0) assumes that the data are drawn from a normally distributed population. The alternative hypothesis (𝐻𝑎) suggests that the data do not follow a normal distribution. The test statistic, denoted as 𝑊, is calculated based on the discrepancies between the observed sample values and what would be expected under a normal distribution. A smaller value of 𝑊indicates a departure from normality. If the calculated test statistic falls below the critical value or if the p-value associated with the test is less than the chosen significance level (e.g., 0.05), then the 𝐻0is rejected, indicating that the data significantly deviates from a normal distribution. Conversely, if the calculated statistic exceeds the critical value or if the p-value is greater than the significance level, then the null hypothesis cannot be rejected, suggesting that the data may be normally distributed. If the data is not normally distributed, Templeton’s (Templeton, 2011) two-step transformation method enables a t-sample test study. Briefly, an independent t-sample test is a statistical method for comparing the means of two independent groups or samples that can provide a reliable way to assess whether the observed difference in means is likely due to a genuine effect or mere random variation (Warner, 2012). The null hypothesis 𝐻0in a t-sample test states that the means of the two groups are equal. The alternative hypothesis 𝐻𝑎contradicts the null hypothesis, i.e., there is a significant difference between the means. The independent t-sample test calculates a p-value, representing the probability of observing such a difference under the assumption that the null hypothesis is true. A low p-value (typically less than the chosen significance level, often 0.05) indicates strong evidence against the null hypothesis, prompting its rejection in favor of the alternative hypothesis (Warner, 2012). 79
CHAPTER 5. AUTOMATION OF DIFFERENT WORKFLOWS USING HEALTHCARE STANDARDS Together, all these statistical methods provide a robust framework for analysing implementation data, deriving meaningful insights, and making informed decisions about solutions’ efficacy and impact. Additionally, conformance checking, already explained previously, played a pivotal role in ensuring that the implemented solution adhered to predefined standards or requirements. This involved systematically comparing the actual performance or behaviour of the solution against expected benchmarks or specifications, thereby validating its conformity and identifying any deviations or discrepancies that required attention. By integrating these diverse evaluation methods, a robust assessment of the deployment process could be conducted, ascertaining the degree to which the solution met its objectives and requirements. 5.2 Workflow Complementary Imaging Diagnostic Means This case study aims to evaluate the implementation of the new approach to hospital workflows, as outlined in this thesis, within the realm of imaging exams. The Complementary Means of Diagnosis (CMD) workflow, proposed herein, presents a systematic method for incorporating various diagnostic and therapeutic modalities alongside traditional approaches to enhance patient care. Within this process lie numerous crucial variables, including the types of exams conducted, the resources available, and the contextual factors surrounding their requisition and interpretation. Moreover, the workflow of imaging exams encompasses not only those conducted internally but also external requests or outsourcing, which involve exams performed by external providers. This comprehensive evaluation seeks to assess how the integration of complementary means, as delineated in the CMD workflow, influences the efficiency, accuracy, and overall quality of imaging exams within the hospital setting. Through meticulous analysis and exploration, we aim to uncover insights into the feasibility and effectiveness of this novel approach in optimizing imaging workflows and ultimately improving patient outcomes. In this case study, we are examining how a new hospital workflow system for imaging exams, as described in this thesis, is being implemented. The CMD workflow that is being proposed provides a systematic way to combine various diagnostic and therapeutic techniques with standard practices in order to enhance patient care. There are important factors to consider in this process, such as the types of exams being done, the resources at hand, and the surrounding circumstances regarding the exam requests and analyses. Additionally, the workflow for imaging exams covers both exams done in-house and those requested externally or done by third-party providers. This comprehensive approach aims to enhance both the efficiency and quality of patient care in a hospital setting. 5.2.1 Requirements Gathering The requirements gathering stage included several interviews and meetings with doctors and technicians involved in this workflow. The main requirement was to automate the clinical triage process of an imaging 80
CHAPTER 5. AUTOMATION OF DIFFERENT WORKFLOWS USING HEALTHCARE STANDARDS exam request, also involving the sending of this request to be performed externally, that is, in other health entities mainly due to capacity reasons. Initially, the design of the process was developed (Figure 36), serving as the basis for modelling. In this figure, there is a system installed in the hospital (AIDA-OGT), whose use is mandatory in the current context and, therefore, it was crucial to ensure interoperability. Figure 36: Initial draft of the imaging exams workflow. As it can be observed in Figure 36, this process involves distinct teams of professionals: the team referring to the Magnetic Resonance Imaging (MRI) realization, the team referring to the Computed Tomography (CT), and the team corresponding to the management office of external requests. Hence, it was also required that the members of each team be assigned to their specific tasks according to their respective capabilities, roles, and functions. Finally, the development process of the openEHR templates that originate the forms in which data can be introduced in some tasks of the imaging exam workflow also started with the collection of data requirements. The main stakeholders involved in this process were healthcare experts who were familiar with openEHR, the archetype development process, and clinical terminologies. During this process, three main tasks were identified: •T1: Clinical Screening/Triage •T2: Manage External Request •T3: Confirm External Result In turn, several rules were also raised to be associated with the filling of the forms. These points will be presented in detail later. 81
CHAPTER 5. AUTOMATION OF DIFFERENT WORKFLOWS USING HEALTHCARE STANDARDS 5.2.2 Results and Discussion As already mentioned, this case study culminated with the circuit implementation in a Portuguese hospital alongside the already existing openEHR advancements. The solution was gradually deployed to ensure a smooth transition, involving limited initial users. Functional demonstrations and tool usage explanations were essential for team members’ understanding. After the deployment, it was necessary to assess the impact of the solution. Hence, the development of this project resulted in a set of openEHR structures - WP, archetypes, templates, and forms - that will be presented in Subsection 5.2.2.1. In addition, the results obtained by a statistical analysis will be presented in Subsection 5.2.2.2. 5.2.2.1 openEHR structures The Manage Imaging Exam Request WP, presented in Figure 37, allows imaging exam triage and/or referral to other entities (outsourcing). Three linked task plans were modelled to fulfil the following prerequisites: Administrative Management of Imaging Exam Requests, Clinical Triage, and Outsourcing Management. Also, context variables support the overall functionality of the WP. Figure 37: Manage imaging request workflow. The first task of the top-level task plan entails a system request that guarantees interoperation with the information system responsible for managing all exam requests: sends a request, waits for a system 82
CHAPTER 5. AUTOMATION OF DIFFERENT WORKFLOWS USING HEALTHCARE STANDARDS response, and is later managed via custom actions. These actions are specified by distinct key values tailored for remote events, as illustrated in a partial table in Figure 37. Upon successful completion of the initial task, the decision stage ensues, directing the request toward clinical triage or outsourcing management. When clinical triage is necessary, the second task plan becomes operational, involving the assignment of performers (physicians) from the MRI/CT teams, with specific triage roles assigned in the demographic model. The primary task, performed by these doctors, involves deciding the request’s destination and inputting relevant data through the associated form. Subsequent decisions hinge on the physician’s triage task input. If the doctor deems the imaging exam appropriate to be performed at the institution, a system request loops the request back to administrative management. Conversely, if the triage doctor rejects the exam, a system request coordinates the return of the request to the petitioning doctor through the HIS interoperation. If the physician’s evaluation implies an outsourcing approach, the Outsourcing Management task plan is activated. Allocated to the external exams management team defined in the demographic model, this task plan comprises two performable tasks with distinct forms. In the first task, the management form allows professionals to determine if the request should proceed externally or be declined. If the outsourcing is settled, a confirmation task emerges to attest to the outsourcing results. The form for this task assesses the request’s outcome: confirming outsourcing result receipt, department refusal, or simple request refusal. In the case of result refusal, the process repeats, since the main task group contains a repeat task property, whose stopping condition is the ’Declined’ state of the variable outsourcing_result . As outlined in the modelling stage (Section 5.1.1), Figure 38 presents the forms exported from the FormBuilder tool, alongside developed archetypes and templates. These forms were linked to distinct performable tasks within the imaging exam workflow, serving as storage schemes for various patient tasks. They are integrated into the Professional Portal, a web application for healthcare teams to fulfil their assigned tasks. Each form features decision rules established and executed by the DLM Engine. 5.2.2.2 Statistical Analysis Following a successful testing stage, the initial version was launched in October 2021, though not all points were initially covered due to later requirements. In this context, a statistical analysis becomes crucial to objectively assess the solution’s implementation impact. Figure 39 provides an overview of both datasets for a broader perspective on the collected data. The initial plot illustrates the performable task numbers by type over a year post-hospital implementation, showcasing their monthly evolution. Notably, clinical triage tasks were predominant, with a shift in focus towards outsourced exams over months. This change can be explained by initial workflow constraints, where requests could only go through external management after being screened by a doctor. The substantial increase in the outsourcing management starting in February is noteworthy, which can be attributed to direct administrative outsourcing sending without clinical triage obligation. The second plot in Figure 39 shows outsourcing orders from 2018 to 2022 (bars) and average yearly 83
CHAPTER 5. AUTOMATION OF DIFFERENT WORKFLOWS USING HEALTHCARE STANDARDS openEHR structures offer a promising solution, providing a standardised framework for structuring and managing health data. In this sense, this case study seeks to explore the implementation of openEHR structures in the context of corneal transplantation, and its workflow automation, aiming to standardize data management practices and improve the quality and safety of patient care. 5.3.1 Requirements Gathering The initial phase of this process commenced with the identification of stakeholders, encompassing healthcare professionals and IT personnel involved in the corneal transplantation process within the hospital institution. The selection of stakeholders aimed to encompass various employees participating in the process. The process of gathering requirements to enhance corneal transplantation records using openEHR involved collaborative efforts among medical staff, the hospital’s IT personnel, and developers. Following stakeholder identification, a series of meetings were conducted to initiate the requirements gathering phase. Stakeholders actively participated, serving as the primary source of knowledge for modelling and guiding the design and development of openEHR structures. These collaborative sessions involved a thorough analysis of current documentation processes and data management practices to identify areas for improvement. The meetings were designed to encourage stakeholders to provide feedback on existing workflows, specific needs, pain points, and suggestions for enhancement. During discussions, it became evident that the hospital’s information system for managing corneal transplantation records had significant shortcomings, including potential data entry errors, information loss, difficulty in data sharing, and lack of standardization. Therefore, the primary objective was to address these issues and implement a more reliable and comprehensive information management system utilizing openEHR structures to mitigate acknowledged problems. Through collaboration, stakeholders delineated the scope, defined requirements, and outlined case studies of the clinical domain to be modelled. The work group identified five key events in the corneal transplantation process where data recording actions could occur: • Corneal Transplantation Request: Involves the recording of data regarding the corneal transplantation proposal such as type of transplant, laterality, diagnosis, priority, • Corneal Transplantation Call: Involves gathering information on the contact attempts, including date of contact, result, reason, and date of next contact. • Schedule Anaesthesia Consultation: Includes the recording of data regarding the scheduling of the anaesthesia consultation. • Perform Anaesthesia Consultation: Includes the registering of data about the result of the anaesthesia consultation. 90
CHAPTER 5. AUTOMATION OF DIFFERENT WORKFLOWS USING HEALTHCARE STANDARDS • Manage Suspended Request: Involves the recording of data regarding the decision regarding suspended corneal transplantation proposals. These moments underwent meticulous analysis to ensure accurate and consistent capture of all necessary data. In the subsequent development phase, the identified user stories were translated into actionable tasks for the development team. Figure 42 shows a table with all user stories derived from the collaborative sessions and requirements gathering phase. This table served as a roadmap for the development process, guiding the team in implementing the required functionalities effectively and efficiently. Figure 42: Corneal transplant user stories. Additionally, a mockup representing the corneal transplant process was created and labelled as Figure 91
CHAPTER 5. AUTOMATION OF DIFFERENT WORKFLOWS USING HEALTHCARE STANDARDS 43. This mockup visually depicted the various stages and interactions within the transplantation process, providing a clear understanding of the workflow and user interactions. It served as a visual aid for stakeholders and developers to align on the expected functionality and user experience of the system. The mockup facilitated discussions and decision-making throughout the development process, ensuring that the final product met the needs and expectations of all stakeholders involved. Figure 43: Corneal transplant workflow mockup. 5.3.2 Results and Discussion Similar to the previous case study, this case study also concluded with the implementation of the automated workflow in the pilot Portuguese hospital, ULSSA. The solution was introduced gradually to ensure a seamless transition, initially involving a limited number of users. It was imperative to provide functional demonstrations and explanations on tool usage to ensure comprehension among team members. Following deployment, an evaluation of the solution’s impact was necessary. Consequently, the project’s development yielded a collection of openEHR structures - including work packages, archetypes, templates, and forms - which will be detailed in Subsection 5.3.2.1. Additionally, the outcomes of a statistical analysis will be presented in Subsection 5.3.2.2. 92
CHAPTER 5. AUTOMATION OF DIFFERENT WORKFLOWS USING HEALTHCARE STANDARDS 5.3.2.1 openEHR structures The first openEHR structures resulting from this case study were the forms that would support the completion of the corneal transplant workflow tasks. Thus, each of the key events initially identified earlier went through a verification and three of them followed the modelling process in order to obtain the associated form. Proposal for corneal transplantation Starting with the proposal for corneal transplantation, the service request archetype (Figure 44), which is part of openEHR’s INSTRUCTION subclass of the ENTRY class, and the anatomical location archetype (Figure 45), which is part of the openEHR’s CLUSTER class, were found in the CKM and used in this context. It is important to note that the Service Request archetype is useful for both transplant requests and anaesthesia consultation requests if needed. Figure 44: Mind-map view of the ”Service Request” archetype. However, it was necessary to create a third archetype, named ”Eye Surgery Details”, to include some specific aspects, namely the risk, the complexity, the number of previous surgeries, and the need for 93
CHAPTER 5. AUTOMATION OF DIFFERENT WORKFLOWS USING HEALTHCARE STANDARDS Figure 45: Mind-map view of the ”Anatomical Location” archetype. anaesthesia consultation. This archetype belongs to the CLUSTER clas and its mind map is presented in Figure 46. Figure 46: Mind-map view of the ”Eye Surgery Details” archetype. This step culminates with the stipulation of details about relevant data constraints for each archetype, including datatypes, cardinality, occurrences, and specific data values (e.g., ranges for numerical values, terminologies for coded values, etc.). One important point to note is that the coded values of the ”Laterality” item inside the ”Anatomical Location” archetype were mapped using SNOMED-CT terminology. The remaining coded text items were expressed using local terms. An explanation of the coded values applied to each coded text item can be found in Table 5. After the discovery and development of the required archetypes, the Archetype Designer tool was used to assemble and constrain the archetypes into a template that represents the requirements of the corneal transplantation request. A template of the COMPOSITION type was created using the ”Encounter” archetype and named ”Corneal Transplantation Proposal”. All the archetypes shown earlier were incorporated into the content and the specific details attributes of the template, and some items were removed due to their insignificance to the context. Finally, some items were assigned specific default values: • The item Service Name in the archetype Service Request was assigned the value Corneal Transplantation as default for the proposal and the value Anaesthesia Consultation for the anaesthesia 94
CHAPTER 5. AUTOMATION OF DIFFERENT WORKFLOWS USING HEALTHCARE STANDARDS Table 5: Corneal transplant proposal: description of the coded values assigned to each coded text item Archetype Item Code Value Anatomical Location Laterality SNOMEDCT::362503005 Left eye Anatomical Location Laterality SNOMEDCT::362502000 Right eye Anatomical Location Laterality SNOMEDCT::362508001 Both eyes Eye Surgery Details Risk at0004 High Eye Surgery Details Risk at0005 Moderate Eye Surgery Details Risk at0006 Low Eye Surgery Details Complexity at0007 High Eye Surgery Details Complexity at0008 Moderate Eye Surgery Details Complexity at0009 Low Service Request Diagnosis H16319 Corneal abscess Service Request Diagnosis H1830 Corneal membrane alterations Service Request Diagnosis H52219 Irregular astigmatism Service Request Diagnosis H18739 Descemetocele Service Request Diagnosis H18519 Corneal endothelial dystrophy Service Request Diagnosis H18719 Corneal ectasia Service Request Diagnosis H1820 Corneal edema Service Request Diagnosis T868499 Corneal graft (complication) Service Request Type of Transplant 08R83KZ_tt_d Total transplantation (right eye) Service Request Type of Transplant 08R83KZ_tt_e Total transplantation (left eye) Service Request Type of Transplant 08R83KZ_dalk_d Anterior Transplantation - DALK (right eye) Service Request Type of Transplant 08R83KZ_dalk_e Anterior Transplantation - DALK (left eye) Service Request Type of Transplant 08R83KZ_dsaek_d Anterior Transplantation – DSAEK (right eye) Service Request Type of Transplant 08R83KZ_dsaek_e Anterior Transplantation – DSAEK (left eye) Service Request Type of Transplant 08R83KZ_dmek_d Anterior Transplantation – DMEK (right eye) Service Request Type of Transplant 08R83KZ_dmek_e Anterior Transplantation – DMEK (left eye) Service Request Urgency at0136 Emergency Service Request Urgency at0137 Urgent Service Request Urgency at0138 Routine request. • The item Body Site Name in the archetype Anatomical Location was assigned the value Eye as default. 95
CHAPTER 5. AUTOMATION OF DIFFERENT WORKFLOWS USING HEALTHCARE STANDARDS • The item Specific Site in the archetype Anatomical Location was assigned the value Cornea as default. Figure 57 shows the final structure of the ”Corneal Transplantation Proposal” template and Figure 47 shows the final form to be filled by physicians. Figure 47: Corneal transplant proposal: form. It is also important to address the DLM developed to associate rules to the modelled form. In this case, according to the requirements only one rule was applied and included in the DLM: If the patient’s age is equal or superior to 75 years, anaesthesia (Y/N) field is mandatory . Corneal Transplantation Call Regarding the corneal transplantation call, since it represents an administrative task, a ADMIN_ENTRY archetype called ”Contact with Patient” (Figure 48) was developed to encompass the administrative data. In this archetype, two items can be coded, namely the reason for contact and outcome. Table 6 describes the coded values used for each coded text item. Regarding the type of contact, this represents a CLUSTER to which an archetype of the Electronic communication type, found in CKM, can be associated. This archetype, represented in Figure 49, has 96
CHAPTER 5. AUTOMATION OF DIFFERENT WORKFLOWS USING HEALTHCARE STANDARDS Figure 48: Mind-map view of the ”Contact with Patient” archetype. Table 6: Corneal transplant call: description of the coded values assigned to each coded text item Archetype Item Code Value Contact with Patient Reason for contact SNOMEDCT::749001000000101 Appointment Contact with Patient Reason for contact SNOMEDCT::387713003 Surgery Contact with Patient Reason for contact SNOMEDCT::182813001 Emergency Contact with Patient Outcome SNOMEDCT::385645004 Accepted Contact with Patient Outcome SNOMEDCT::183671000 Removed from waiting list Contact with Patient Outcome SNOMEDCT::414939007 On suspended waiting list Electronic communication Type at0005 Mobile (cellular) telephone Electronic communication Type at0006 Telephone (excluding mobile telephone) Electronic communication Type at0007 Email Electronic communication Type at0008 Pager Electronic communication Type at0009 Fax Electronic communication Purpose at0010 Business use Electronic communication Purpose at0011 Personal use Electronic communication Purpose at0012 Both business and personal use 97
CHAPTER 5. AUTOMATION OF DIFFERENT WORKFLOWS USING HEALTHCARE STANDARDS the purpose of recording details about a specified type of electronic communication as it is known or understood in the course of clinical documentation. Figure 49: Mind-map view of the ”Electronic communication” archetype. In this archetype, two items can be coded, namely the Type and Purpose . Table 7 describes the coded values used for each coded text item. Following the identification and refinement of the necessary archetypes, the Archetype Designer tool was employed to organize and limit the archetypes into a framework that embodies the specifications of the calling for corneal transplantation. Then, a template of the COMPOSITION type was created using the ”Encounter” archetype and named ”Call for Corneal Transplantation”. To begin, the ”Contact with Patient” archetype was incorporated into the content attribute. The template was then modified to choose the data types of the ones with multiple options. Then, the ”Electronic communication” archetype was imported into the ”Contact type” cluster. The items ”Purpose” and “Comment” were excluded from the template. Subsequently, the item Reason for contact in the archetype Contact with patient was assigned the value Surgery as default. Figure 58 shows the final structure of the ”Call for Corneal Transplant” template and Figure 50 shows the final form to be filled by the clerks. Regarding the rules needed for this form, it was necessary to include a rule that guaranteed that if the patient intends to leave the transplant list, the filling of the motive in the Notes field is mandatory. Anaesthesia Consultation The last form to be addressed in the case study regards the anaesthesia consultation. Two archetypes are associated with this form: the Service (Figure 51) that belongs to the ACTION class and the Advance intervention decisions (Figure 52) that belongs to the EVALUATION class. The Entry subtype ACTION was used to model the information recorded due to the execution of the INSTRUCTION associated with the proposal task. On the other hand, the Advance intervention decisions archetype was used as complementary in order to record data about the physician’s decision during consultation. 98
CHAPTER 5. AUTOMATION OF DIFFERENT WORKFLOWS USING HEALTHCARE STANDARDS Figure 50: Call for corneal transplant: form. Figure 51: Mind-map view of the ”Service” archetype. In this archetype, the Decision was coded as presented in Table 7, which describes the coded values used for each coded text item. 99
CHAPTER 5. AUTOMATION OF DIFFERENT WORKFLOWS USING HEALTHCARE STANDARDS Figure 58: Call for corneal transplant: template modelling. 106
CHAPTER 5. AUTOMATION OF DIFFERENT WORKFLOWS USING HEALTHCARE STANDARDS Figure 59: Anaesthesia consultation: template modelling. 107
6 Clinical Decision Support in Different Healthcare Scenarios The component of integrating intelligent solutions into the developed system represents a key point in this research work. Therefore, initially, it was decided to carry out several DM studies with public data in order to study the feasibility of applying these technologies in completely different contexts before proceeding with their integration into real workflows. Therefore, to conduct these case studies, the CRISP-DM methodology, presented in Figure 60, serves as a comprehensive framework for guiding the DM process across various healthcare scenarios. Figure 60: CRISP-DM methodology. CRISP-DM encompasses six key phases. These phases, applied to the healthcare context, can be described by: 108
CHAPTER 6. CLINICAL DECISION SUPPORT IN DIFFERENT HEALTHCARE SCENARIOS Business Understanding This phase seeks to create a robust understanding of possible healthcare scenarios and establish the business’s needs. These scenarios constitute the various challenges and problems in healthcare that can be solved, improved, or addressed using clinical decision support system technology. Given that each case presented is a unique entity, it is vital to begin every case study overview by articulating the objectives and any stakeholder-centric needs to be addressed or met (Niaksu, 2015). Data Understanding This phase involves identifying the needed datasets and exploring them to establish the data quality, patterns, and statistics. Each case study aims to identify the best datasets for the measurements and variables, which include capturing data on baseline variables such as demographics and medical history, clinical tests, exit tests, treatment or therapy, and other relevant variables. Understanding the structure of all variables and their relationships based on the disease and the problems they present is very important (Niaksu, 2015). Data Preparation This third phase entails the identification, processing, and cleaning of the raw data into the target set, suitable for analysis. This stage aims to enhance the modelling process by identifying and analysing any issues or gaps in the data that may affect the accuracy and effectiveness of clinical decision support systems. This review involves rigorous data cleansing, including missing value handling, detecting possible duplicates of data, data formatting, and creation of new and related variables (Niaksu, 2015). Modelling The modelling phase focuses on developing predictive models or decision support algorithms using ML, statistical analysis, or other DM techniques. For each healthcare scenario, this phase involves selecting appropriate modelling approaches based on the specific objectives and characteristics of the data (Niaksu, 2015). A Data Mining Models (DMM) can be conceptualised as a holistic entity comprised of several key components, each contributing to its overall structure and functionality. Specifically, the DMM can be delineated into the following elements (Neto, Brito, et al., 2019): 𝐷𝑀𝑀 ={𝐴, 𝑆, 𝐷𝑀𝑇, 𝑆𝑀, 𝐷𝐴,𝑇 } • Approach (A): It articulates the foundational principles and the strategies governing how the data should be explored and analysed. For example, the approach may refer to supervised learning such as classification and regression, unsupervised learning, which includes clustering and association, and ensemble-based paradigms. • Scenario (S): It is the particular, specific context or domain under which the DMM is being performed. • Data Mining Technique (DMT): Refers to the algorithmic or computational method used to mine the pattern or insight or knowledge from the dataset. It includes Decision Tree (DT)s, neural networks, Support Vector Machine (SVM), clustering algorithms and association rule mining. 109
CHAPTER 6. CLINICAL DECISION SUPPORT IN DIFFERENT HEALTHCARE SCENARIOS • Sampling Method (SM): It regards the approach employed for selecting a subset of data from the larger population or dataset. Examples of sampling methods include cross-validation and splitvalidation. Cross-validation is performed by dividing the dataset into N folds. The model will then be repeatedly trained on N-1 folds and validated in the 1 fold, while with the similar case and as below each fold only once. It is an iterative method. Alternatively, data splitting will randomly select a subset of a whole dataset. The commonly used subsample set is 80% training and 20% validation. • Data Approach (DA): It describes the cleaning, preprocessing, and transformation of the raw data before analysing it. For example, to deal with class imbalance, the data approach can include undersampling and oversampling. Specifically, undersampling requires removing instances from the majority class to rebalance the category groups, while oversampling involves adding instances to the minority class. • Target (T): This is the outcome or response variable the DMM is trying to predict, classify or optimize. Evaluation In this stage, the performance of each DMM is assessed through some metrics to ensure the evaluation of the quality of the models, guaranteeing the reliability of the results (Niaksu, 2015). These metrics can be numerical measures, obtained from the confusion matrix, that quantify the performance of a given classifier. This matrix presents the number of True Positives (TP), False Positives (FP), True Negatives (TN) and False Negatives (FN). Examples of evaluation metrics include: • Accuracy: measures the overall correctness of the model’s predictions by comparing the number of correctly classified instances to the total number of instances (Neto, Brito, et al., 2019). 𝐴𝑐𝑐𝑢𝑟𝑎𝑐𝑦 = 𝑇𝑃 +𝑇 𝑁 𝑇𝑃 +𝑇 𝑁 +𝐹𝑃 +𝐹𝑁 • Precision: measures the proportion of true positive predictions among all positive predictions made by the model (Neto, Brito, et al., 2019). 𝑃𝑟𝑒𝑐𝑖𝑠𝑖𝑜𝑛 = 𝑇𝑃 𝑇𝑃 +𝐹𝑃 • Specificity: also known as the true negative rate, measures the proportion of true negatives among all actual negatives (Ferreira et al., 2022). 𝑆𝑝𝑒𝑐𝑖𝑓 𝑖𝑐𝑖𝑡𝑦 = 𝑇 𝑁 𝑇 𝑁 +𝐹𝑃 • Sensitivity: also known as recall or true positive rate, measures the proportion of true positives among all actual positives (Ferreira et al., 2022). 110
CHAPTER 6. CLINICAL DECISION SUPPORT IN DIFFERENT HEALTHCARE SCENARIOS 𝑆𝑒𝑛𝑠𝑖𝑡𝑖𝑣𝑖𝑡𝑦 = 𝑇𝑃 𝑇𝑃 +𝐹𝑁 • Kappa statistic: assesses the agreement between the observed classification results and the expected agreement by chance, corrected for the possibility of random agreement (McHugh, 2012). 𝜅= 𝑃𝑜−𝑃𝑒 1−𝑃𝑒 where 𝑃𝑜is the observed agreement and 𝑃𝑒is the expected agreement. • Area Under the Curve (AUC): measures the area under the Receiver Operating Characteristic (ROC) curve, which plots the true positive rate (sensitivity) against the false positive rate (1 - specificity) at various threshold settings (Neto, Brito, et al., 2019). Deployment This final stage involves incorporating the developed clinical decision support systems into clinical practice and ensuring that they are integrated into all clinical workflows and existent systems. In both case studies, deployment considers the ability to scale, interoperate, secure, and use the developed decision�support system. Deployment impacts to what extent healthcare providers can access and use the decision support system to support clinical decisions. As the baseline for all case studies in this chapter was the application of the CRISP-DM methodology, the systematic and structured implementation of developing and deploying clinical decision support systems that address various healthcare environments was established. For this study, the DM tools included RapidMiner and WEKA. The tools were chosen because they offer user-friendly UI, support an extensive range of features, and have a wide range of classifiers. Thus, it was easy to explore, preprocess, model, and assess data across different healthcare environments. Furthermore, the available classifiers enabled thorough analysis and comparison of the predictive models’ performance to address each healthcare environment’s unique challenges. 6.1 Different Scenarios for the Prediction of Hospital Readmission of Diabetic Patients Using readmission metrics, or determining whether a patient comes back to the hospital after being initially discharged, is one method of characterizing health systems (Hempstalk & Mordaunt, 2016). Readmissions can be classified as either planned, unplanned, or unavoidable. Because of the nature of the pathology or the state of the patient, the inevitable readmissions are quite predictable (Goudjerkan & Jayabalan, 2019). This study focuses on unplanned readmissions since planned readmissions are also easily anticipated. Despite all the continuous scientific and technological advances, diabetes remains a disease haunted by frequent hospital readmissions. A study of hospital utilization in five American states showed that 30% 111
CHAPTER 6. CLINICAL DECISION SUPPORT IN DIFFERENT HEALTHCARE SCENARIOS of patients hospitalised with diabetes were readmitted during the one-year study period, representing half of all hospital admissions among patients with this condition (Dungan, 2012). Approximately 366 million people worldwide suffer from diabetes and that number can escalate to 552 million in 2030 (Munnangi & Chakraborty, 2015). Due to the high expenses associated with these patients and the significant impact of their readmission on hospitals, precise forecasting can result in improved medical treatment during their stay and reduced hospital costs by preventing their readmission. Hence, the objective of this case study was to utilize DM techniques to forecast whether a diabetic patient would be readmitted within 30 days post-discharge (Neto et al., 2021). Since the discharge of a patient is determined by healthcare professionals, it inherently introduces subjectivity and increases the likelihood of errors, DM can help mitigate this subjectivity in decision-making processes. This research produced promising results compared to other studies that set out to predict readmissions for diabetic patients. Given the medical context, the continued search for highly accurate predictions is crucial to improving healthcare delivery. 6.1.1 Related Work The subject of this paper has been mentioned and studied in several articles that tried to achieve the goal outlined in this paper, also using similar datasets. The state-of-the-art findings provided opportunities for enhancement, setting the context for the development of this research. In the study conducted by Shankar and Manikandan (Siva Shankar & Manikandan, 2019), it was revealed that employing Linear SVM, Random Forest (RF), Multilayer Perceptron (MLP), and Deep Neural Network yielded a predictive accuracy of 0.840 for determining whether a discharged patient would return to the hospital within 30 days. Duggal, Shukla, Chandra, Shukla, and Khatri found in their research (Duggal et al., 2016) that utilizing RF as the classifier resulted in an accuracy of 0.876 for categorizing diabetic patients into two risk groups (Yes or No) for readmission within 30 days based on patients’ characteristics using 2-year clinical and administrative data. Finally, Tamin and Iswari’s study (Tamin & Iswari, 2017) demonstrated that implementing the C4.5 algorithm achieved an accuracy of 0.745 for determining the rate of hospital readmission among patients with diabetes, considering three values of the readmitted attribute (”<30”, ”>30”, and ”NO” in certain scenarios). 6.1.2 Bunsiness Understanding Diabetes Mellitus stands as the third leading cause of readmissions among Medicaid patients, contributing to 23,700 cases (Hines et al., 2014). According to data from the Agency for Healthcare Research and Quality, the United States experienced around 3.3 million 30-day readmissions, resulting in approximately 112
CHAPTER 6. CLINICAL DECISION SUPPORT IN DIFFERENT HEALTHCARE SCENARIOS $41 billion in hospital costs. Hospital readmissions serve as both a gauge of healthcare system effectiveness and a significant financial burden for many nations (Goudjerkan & Jayabalan, 2019). The Centers for Medicare & Medicaid Services have implemented various strategies to curb hospital readmission rates and enhance healthcare quality nationwide (Munnangi & Chakraborty, 2015). As previously noted, readmissions carry serious implications, with rates ranging from 8.5% to 13.5%. However, for patients with diabetes, this figure escalates to 14.4–21.0%. With the diabetic population steadily increasing each year, these rates are expected to rise (Rubin et al., 2014). Therefore, the primary objective of this project is to identify diabetic patients at risk of hospital readmission, intending to contribute to the reduction of these occurrences. 6.1.3 Data Understanding The dataset utilised in this study comprises information concerning the likelihood of hospital readmission among diabetic patients, gathered over a decade (1999-2008) from 130 hospitals in the United States (Strack, DeShazo, Gennings, Olmo, et al., 2014; Strack, DeShazo, Gennings, Olmo, et al., 2014). It encompasses data from 101,766 patients and has 50 attributes, including details about the patient’s personal information, hospital admissions, laboratory and additional tests, medications, therapies, and clinical history. The attributes of the dataset are: • encounter_id - unique identifier of an encounter; • patient_nbr - unique identifier of a patient; • race - race of the patient (Caucasian, African American,...); • gender - patient’s gender; • age - patient’s age grouped in 10-year intervals ([0, 10], ..., [90, 100]); • weight - patient’s weight in pounds; • admission_type_id - integer identifier corresponding to 8 distinct values (1-emergency, 2-urgent, 3-elective...); • discharge_disposition_id - integer identifier corresponding to 29 distinct values (1 - discharged to home, 2 - Discharged/transferred to another short-term hospital...); • admission_source_id - integer identifier corresponding to 25 distinct values (1-Physician Referral, 2-Clinic Referral...); • time_in_hospital - number of days between admission and discharge; • payer_code - payment method corresponding to 23 distinct values (MC – Medicare, SP – selfpay...); 113
CHAPTER 6. CLINICAL DECISION SUPPORT IN DIFFERENT HEALTHCARE SCENARIOS • medical_specialty - specialty of the admitting physician, corresponding to 84 distinct values such as cardiology and internal medicine; • num_lab_procedures - number of lab tests performed during the encounter; • num_procedures - number of procedures (other than lab tests) performed during the encounter; • num_medications - number of distinct generic names administered during the encounter; • number_outpatient - number of outpatient visits of the patient in the year preceding the encounter; • number_emergency - number of emergency visits of the patient in the year preceding the encounter; • number_inpatient - number of inpatient visits of the patient in the year preceding the encounter; • diag_1 - the primary diagnosis (coded as first three digits of ICD9); • diag_2 - secondary diagnosis (coded as first three digits of ICD9); • diag_3 - additional secondary diagnosis (coded as first three digits of ICD9); • number_diagnoses - number of diagnoses entered to the system; • max_glu_serum - value that indicates the range of the result or if the test was not taken. (>200, >300, normal, none - if not measured); • A1Cresult - value that Indicates the range of the result or if the test was not taken. (>8, >7 (>7 and <=8), normal (if the result was less than 7%) and none (if not measured)); • metformin , repaglinide , nateglinide , chlorpropamide , glimepiride , acetohexamide , glipizide , glyburide , tolbutamide , pioglitazone , rosiglitazone , acarbose , miglitol , troglitazone , tolazamide , examide , citoglipton , insulin , glyburide - metformin , glipizide - metformin , glimepiride - pioglitazone , metformin - rosiglitazone , metformin - pioglitazone - features that indicate whether the drug was prescribed or there was a change in the dosage(up-dosage was increased down-dosage was decreased); • change - indicates if there was a change in diabetic medications (either dosage or generic name); • diabetesMed - indicates if there was any diabetic medication prescribed (yes, no); • readmitted - value to predict and represent the number of days to inpatient readmission (<30, >30, NO); 114
CHAPTER 6. CLINICAL DECISION SUPPORT IN DIFFERENT HEALTHCARE SCENARIOS Most of the attributes are related to the patients’ personal features, their clinical history and drugs that can be administered or changed to the patient during the episode. Furthermore, it is possible to verify that 27 of 50 attributes are associated with drugs, and the patients’ personal characteristics are the remaining attributes (these can be divided into 5 variables for personal features, 10 for the patient’s encounter and, finally, 7 for his/her historical data). 6.1.4 Data Preparation This section delineates the data preprocessing steps applied to the dataset before implementing the DMM. Initially, some attributes were removed, as illustrated in Figure 61. Following this, it was necessary to address missing values given their potential to negatively affect the analysis by the lack of information. The outliers were also treated since they can create instability in attribute values. Furthermore, missing values in nominal attributes were replaced with the mode, while numerical ones were substituted with the mean. Instances containing attributes associated with death or hospice were excluded, as readmission did not apply to these patients. Certain attribute values were grouped, as shown in Figure 61, in order to facilitate de classifation process. Figure 61: Data preprocessing steps (removal and grouping). Finally, the dataset was balanced through the Oversampling of the minority class and the Undersampling of the majority class, followed by a randomization process to ensure data dispersion. Balancing was carried out without entirely equalizing the classes to prevent an overabundance of synthetic data, thereby bolstering model reliability. 6.1.5 Modelling In order to include different types of algorithms, this study used the IBk, J48, RF, Naive Bayes (NB) and MLP algorithms, available in WEKA software. 115
CHAPTER 6. CLINICAL DECISION SUPPORT IN DIFFERENT HEALTHCARE SCENARIOS 6.2.2 Data understanding Publicly available in Kaggle, the dataset used in this study included 70000 patient registrations and 12 attributes thought to be important for diagnosing the CVDs (Ulianova, 2019). The attributes were collected during the patient’s medical examination and grouped into 3 categories: • Objective data - factual information: – id - Patient’s unique identifier; – age - Patient’s age in days; – height - Patient’s height in cm; – weight Patient’s weight in kg; – gender - Patient’s gender. • Examination data - results from medical exams: – ap_hi - Systolic blood pressure; – ap_lo -Diastolic blood pressure; – cholesterol - Patient’s cholesterol; – gluc - Patient’s glucose. • Subjective data - the information given by the patient: – somke - Whether the patient smokes or not – alco - Whether the patient consumes alcohol or not – active - Whether the patient is physically active or not – gluc - Patient’s weight in kg; • Target - presence of CVD: cardio Regarding the target attribute, cardio , if the value is ”0” the patient is healthy, in contrast, if it is ”1” the patient has CVD. The next step was to determine whether any class disparities would affect how algorithms learned. However, the data was balanced, having 49.8% of type ”no” (34605 registers) and 50.2% of type ”yes” (34820 registers). 122
CHAPTER 6. CLINICAL DECISION SUPPORT IN DIFFERENT HEALTHCARE SCENARIOS 6.2.3 Data preparation At this stage, data integration and data cleaning were initially implemented. The presence of duplicate data, missing values, outliers, and discrepancies was examined in further depth and no redundant data, missing values, or inconsistencies were discovered. The WEKA software’s filters InterquartileRange , which finds outliers and extreme values based on interquartile ranges and RemoveWithValues , which eliminates occurrences based on a given value, filters were used to eliminate the outliers. Next, some data transformation steps were performed. As age was measured in days, an equation was used to convert it to years. Furthermore, by default, most attributes were imported as Integer, however, attributes active , alco , cardio and smoke correspond to the binominal type and cholesterol to the polynomial type. Hence, these attributes were transformed accordingly. Last but not least, several criteria were used to assess the feature weights, as can be observed in Figure 63. For example, Weight by Correlation offers a correlation with the label attribute ( cardio ), where extremely high correlation values may have a negative impact on the outcomes. The features were all retained to move on to the next stage because there was little correlation between any of them. Various weight measurements, including Gini Index , Information Gain , and Information Gain Ratio , have made it possible to define certain thresholds, for which various scenarios have been developed to be employed during the modelling stage. Figure 63: Weights’ distribution for the cardiovascular disease dataset attributes. 6.2.4 Modelling The primary selection of modelling techniques was done using the operator Compare ROCs , which computes the ROC curves. 123
CHAPTER 6. CLINICAL DECISION SUPPORT IN DIFFERENT HEALTHCARE SCENARIOS The results of this operator utilizing cross-validation are displayed in Figure 64. k Nearest Neighbour (k-NN), NB, DT, RF, Gradient Boosted Tree (GBT), Rule Induction (RI), Deep Learning, Generalized Linear Model (GLM), and, finally, Logistic Regression (LR) are the DMTs that were compared, showing that when the 10 curves were compared, DT performed the best. In contrast, the least successful classifiers were k-NN and NB, which presented an aleatory behavior. Therefore, for the next phases, only DT, RI, RF, and Deep Learning were employed. Since DT yielded the best results, to achieve even better results, the Optimized Parameters operator — a nested operator that executes the subprocess for every possible combination of parameter values and then returns the optimal parameter values — was used to optimize a few parameters: criterion , maximal depth , confidence , and minimal leaf size . Figure 64: ROC curves using cross-validation. Two sampling strategies were explored for each DMT: split validation with a split ratio of 70%, which only divides the data into one training and one test set, and cross-validation using 10 folds, where all data is used for testing and training. The Data Approach (DA) utilised in this study involved abstaining from sampling methods, as the dataset was inherently balanced and did not necessitate the use of such techniques. Finally, several scenarios (Figure 65) were generated in order to assess which attributes were most useful to predict the existence of CVD. As mentioned before, there was only one target variable named cardio . Regarding the DMMs of this case study, they can be characterised by: 124
CHAPTER 6. CLINICAL DECISION SUPPORT IN DIFFERENT HEALTHCARE SCENARIOS Figure 65: Scenarios used to predict CVD. •𝐴={ Classification }; •𝑆={𝑆1, 𝑆2, 𝑆3}; •𝐷𝑀𝑇 ={𝐷𝑇, 𝐷𝑇𝑜𝑝𝑡𝑖𝑚𝑖𝑠𝑒𝑑, 𝑅𝐼, 𝑅𝐹, 𝐷𝑒𝑒𝑝𝐿𝑒𝑎𝑟𝑛𝑖𝑛𝑔}; •𝑆𝑀 ={ Cross Validation, Split Validation }; •𝐷𝐴 ={ Without Undersampling and Oversampling }; •𝑇={ cardio } 6.2.5 Evaluation During this phase, the performance of every DMM was evaluated using several metrics to assure the assessment of the models’ quality and the reliability of the outcomes. These metrics — True Positives, False Positives, True Negatives, and False Negatives — are numerical measurements that were derived from the confusion matrix and were previously explained. In addition, the AUC has also been included, which represents the degree of separability of the model, ranging from 0 to 1, the higher the AUC, the better the model is at distinguishing between classes. 6.2.6 Results and Discussion Tables 14 present the models that achieved the best results in terms of accuracy, precision, sensitivity and specificity. Overall, 73.54%, 80.80%, 72.09%, and 86.73%, respectively, are the top results for accuracy, precision, sensitivity, and specificity. A criterion was developed to select the best model based on a combination of four metrics: accuracy ≥ 71%, precision ≥ 75%, sensitivity ≥ 68%, and specificity ≥ 77%. Based on the results, the threshold values were established to find a balance across all the indicators. Table 15 exhibits the models that achieved the threshold previously defined and Figure 66 displays the corresponding confusion matrices. 125
CHAPTER 6. CLINICAL DECISION SUPPORT IN DIFFERENT HEALTHCARE SCENARIOS Table 14: Best results obtained by Sample Approach and DMT Sample Approach DMT Accuracy Precision Sensitivity Specificity DT S3 72.55% S1; S2 73.55% S3 70.77% S1; S2 75.24% DT opt. S1 73.14% S1 75.35% S3 69.22% S1 77.63% RI S1 72.98% S3 77.32% S1 68.87% S3 81.82% RF S1 71.95% S2 80.11% S3 61.39% S2 85.75% Cross validation DL S2 71.95% S2 67.86% S2 81.33% S2 61.66% DT S3 73.02% S1; S2 76.18% S3 68.24% S1; S2 80.40% DT opt. S1 73.54% S1 75.82% S1 72.09% S1 78.16% RI S1 73.22% S3 76.67% S1 70.77% S3 80.37% RF S1 71.91% S2 80.80% S1 57.38% S2 86.73% Split validation Deep Learning S2 71.94% S3 68.85% S1 81.85% S2 64.18% Table 15: Best models achieving the defined threshold DMT S SM Accuracy Precision Sensitivity Specificity AUC DT S3 SV 73.02% 75.31% 68.24% 77.77% 0.757 DT opt. S1 CV 73.14% 75.30% 68.61% 77.63% 0.782 DT opt. S1 SV 73.54% 75.82% 68.89% 78.16% 0.788 DT opt. S3 SV 73.51% 75.71% 68.97% 78.01% 0.789 Figure 66: Confusion matrices for the best models achieving the defined threshold. It is possible to determine which of the sampling methods had the best performance scores by analysing the collected data. In general, Cross-Validation yielded inferior outcomes to Split Validation . Cross Validation is frequently employed when a more extensively tested model is desired; it affects the process’s computation when data is very large, like in this study, but it is an appropriate validation when it comes to critical health conditions. On the other hand, because Split Validation can tolerate some uncertainty regarding the robustness of the model, it is suitable for very large data sets and intricate preprocessing procedures. Consequently, Split Validation most likely had higher scores because it may have neglected some valuable information when computing information. 126
CHAPTER 6. CLINICAL DECISION SUPPORT IN DIFFERENT HEALTHCARE SCENARIOS With the exception of the DT algorithm, where performance values in both methods of sampling stayed the same, and the Deep Learning algorithm, where values improved, S1 and S2 performance values have declined depending on the DMT in practically every situation. Since the dataset only contains 13 attributes, eliminating some of them — even though they had weight values of 0 — could have a detrimental impact on the prediction. These attributes include smoke , alco , andtextitgender. Excluding DT and certain DT metrics, the results of the same comparison between S2 and S3 often do not get any better. Ultimately, when comparing the two most contrasting scenarios, S1 and S3, a similar pattern to the comparison between S1 and S2 is observed: there is an improvement in the metric values for DT, while other algorithms show mixed results with some metrics improving and others deteriorating. Consequently, drawing conclusions among different DMTs becomes quite challenging when metric values exhibit such unpredictable fluctuations. Table 15 indicates that, in accordance with DT’s results in Figure 64, DT was the DMT with the best performance. A few parameters were adjusted to get better results, and this time, the expected outcome — that is, improvements in all evaluation metrics — was attained. However, the values did not rise substantially. Although other parameters might have a greater influence on process improvement, computing these optimisations would take exponentially longer because of the large number of instances. Furthermore, out of the three scenarios, S1 stood out the most, albeit S2 and S3 were also included in the table with the best outcomes. Ultimately, split validation was the sampling method with the best performance, which is in line with the previously stated conclusions. The metrics used to compare the models’ performances in this particular study are not as equally significant since accuracy and specificity are considered less important than precision and sensitivity. The identification of the number of individuals who were accurately diagnosed with CVD (precision) and the proportion of diseased individuals who were correctly predicted (sensitivity) are more pertinent metrics to consider than the number of individuals who were accurately labelled (accuracy) and the proportion of predicted healthy individuals (specificity). Ultimately, it was possible to determine that, of the thirty models that were created, the best one was: 𝐷𝑀𝑀 ={ Classification , 𝑆1, DT optimised , Split Validation , Without Under and Oversampling , cardio }, achieving the highest values of precision (75.82%), accuracy (73.54%) and specificity (78.16%) and the second highest values of sensitivity (68.89%) and AUC (0.788). 6.2.7 Conclusions In summary, this case study demonstrated that it is feasible to employ DMMs to predict the presence or absence of CVDs using actual data from EHR. It was feasible to obtain scores over 70% for some of the created DMMs, which is a great result. With the DT optimised approach and the split validation method, the best-induced method was obtained with the first scenario of attributes. If more attributes were included, the variability and density of information would improve and the results would be more indicative of CVDs. 127
CHAPTER 6. CLINICAL DECISION SUPPORT IN DIFFERENT HEALTHCARE SCENARIOS The quantity of false positives in this particular case study needs to be reduced as much as possible. Therefore, even though the outcomes were satisfactory, more work needs to be done in the future before a decision-support system based on one of the models established during this study is implemented in a hospital setting. For example, the model’s performance needs to be increased by using more reliable algorithms, like neural networks. 6.3 Recommendation of Medical Exams to Support Clinical Diagnosis based on Patient’s Symptoms In the healthcare field, accurate and timely diagnosis is crucial for efficient patient treatment and care. The diagnostic process often relies on a careful analysis of the patient’s symptoms, along with diagnostic tests to confirm or rule out potential health conditions. However, with the vast amount of medical tests available and new options appearing regularly, healthcare professionals face the challenge of selecting the most appropriate ones, adapted to each patient’s unique context (Tran et al., 2021). This case study investigates the fundamental role of recommending medical tests to support clinical diagnosis based on patient symptoms (Neto et al., 2022). As already stated in this research, one of the most important workflows in a hospital environment, that can be enhanced by the referred technologies, is the CMD workflow. This workflow ranges from the request of the CMDs, to their scheduling and results reporting. Because of its importance, optimizing and enhancing this workflow is a key point in ensuring not only the proper functioning of the hospital institution but also better healthcare delivery. The current case study, which consists of the development and investigation of ML algorithms for decision support in recommender tests for patients based on their symptoms, has emerged in this context. Since the intended goal is to generate algorithms that can make an intermediate diagnosis —that is, manage to map the symptoms to the necessary exams—without having to think through which diseases the patient might have—it should be noted that the recommendation is based solely on their symptoms and not on their diseases. This makes the problem at hand more difficult. In this way, this case study contributes to the optimisation of the CMD workflow, since its successful implementation will reduce the prescription of unnecessary exams, as well as the overload of medical equipment, and consequently will improve the financial burden of the health institution. 6.3.1 Related Work The best methods for associating symptoms with diseases were already studied in a number of publications and other sources about recommender systems in healthcare. With no need for a diagnosis beforehand, this article aims to go further by immediately mapping the symptoms to the targeted medical 128
CHAPTER 6. CLINICAL DECISION SUPPORT IN DIFFERENT HEALTHCARE SCENARIOS evaluations. Since there isn’t much research on this specific topic, it is hoped that this case study will serve as a valuable resource for future studies. Initially concentrating on generic recommender systems in the medical domain, it is widely recognised that certain medical conditions can have treatments that are costly and time-consuming. In order to prevent this, systems that can identify disease symptoms and even assist medical practitioners in making better decisions when treating patients are required. Hence, recommender systems have previously been put forth to forecast risk factors (such as potential complications or subsequent diseases) that a particular chronic disease patient would encounter in the future (Itachi9604, 2022; Nasiri et al., 2016). Collaborative filtering is commonly used in these specific systems to suggest items to a user based on the notion that ”if users shared the same interests in the past, then they would have similar tastes.” ”Patients who share similar diseases and health status might face the same risk factors” (Tran et al., 2021) is how this method can be understood in the context of these healthcare systems. Similar to this, Watson Health, IBM’s AI system, can already suggest appropriate courses of action for patients based on evidence-based medicine and the results of other patients. IBM reports that 81% of healthcare executives who are aware of Watson Health think it improves their company (Stark et al., 2019). This indicates that the use of analytics and technology in healthcare has grown in significance. Prediction research and development in the field of medical exams is still relatively new and has not yet received much attention. We contend that the tremendous context complexity of the medical sector and the particularities of benchmarking criteria in medical scenarios are the reasons for this. Particularly in the clinical setting, risk perceptions about data security and privacy, as well as confidence in reliable technical solutions, are crucial. These factors are mostly responsible for such systems’ acceptability. 6.3.2 Business Understanding In healthcare, recommending medical exams based on patient symptoms is vital for accurate diagnosis and effective treatment. By selecting appropriate tests, healthcare providers can enhance diagnostic accuracy, improve patient outcomes, and optimize healthcare delivery. It also facilitates efficient resource allocation and minimizes unnecessary testing, reducing healthcare costs. Compliance with regulatory standards ensures patient safety and ethical healthcare practices. The integration of technology, including EHRs and clinical decision support tools, assists providers in selecting tests based on evidence-based guidelines and patient data. Hence, at this stage, it is critical to comprehend the primary objectives in order to guarantee that the process is carried out rigorously. Thus, a set of objectives was set for this study: to obtain a competitive edge in the assessment of medical tests by healthcare providers; to be capable of providing tailored recommendations considering the type and amount of symptoms; and to identify the recommendation algorithm and parameterization that results in the best overall performance in the recommendation system. 129
CHAPTER 6. CLINICAL DECISION SUPPORT IN DIFFERENT HEALTHCARE SCENARIOS 6.3.3 Data Understanding The data used to conduct this study originates from the Disease Symptom Prediction dataset (Itachi9604, 2022), which is openly available. This primary dataset comprises 4920 entries on 41 distinct diseases and the corresponding symptoms reported by individuals afflicted with said diseases. The dataset encompasses 131 unique symptoms, with precisely 120 entries delineating symptom combinations experienced for each disease. Notably, this dataset includes a severity weighting associated with each symptom, graded on a scale ranging from one to seven. Given the sensitive nature of medical data and the scarcity of comprehensive datasets encompassing diagnostic examinations, the task of mapping the requisite diagnostic tests for disease detection necessitated manual curation through exhaustive scrutiny of reputable medical repositories, including PubMed, the National Institutes of Health (NIH), and the Centers for Disease Control and Prevention (CDC). Consequently, a complementary dataset mapping each disease featured in the primary dataset was constructed. Notably, certain diseases are linked to highly specific sets of diagnostic tests, while others necessitate no more than routine physical examination or blood analysis for detection by healthcare professionals. In aggregate, a total of 102 distinct diagnostic examinations were collated. Figure 67 illustrates the prevalent diagnostic tests prescribed, underscoring the significance of blood analysis and physical examination by healthcare providers as fundamental practices guiding subsequent diagnostic procedures. Figure 67: Most prescribed medical tests associated with the presented diseases. 6.3.4 Data Preparation In order to achieve high-performing models, it was necessary to properly prepare the data, as represented in Figure 68. This step involved consolidating all the selected datasets into one cohesive dataset and processing the raw data to ensure seamless integration with the models. 130
CHAPTER 6. CLINICAL DECISION SUPPORT IN DIFFERENT HEALTHCARE SCENARIOS Figure 68: Data preparation steps. To begin with, each symptom was transformed into its own column using one-hot encoding. This technique allowed the assignment of a value of 0 for cases where the symptom did not apply to the disease and a value of 1 for when it did. This approach made it possible to represent each symptom in a binary format, which in turn made it easier to handle the data. In addition, each symptom in the public dataset was mapped to its corresponding severity level. This allowed for a more nuanced and detailed representation of the data, which was essential for the success of the models. Next, one-hot encoding was employed to transform the dataset containing medical exams associated with each disease. This dataset was then merged with the previous one, using the disease as a common attribute. This enabled the integration of all relevant information into one comprehensive dataset, which was crucial for the success of the models. As the aim was to abstract the disease factor, the attribute was eliminated as it was not essential to the study. Finally, the dataset was randomly divided, with 80% of the data allocated for model training and 20% for testing. 6.3.5 Modelling During this stage, six different ML models were implemented and their hyperparameters were optimised to determine which model performs best in the evaluation stage. Hyperparameter tuning is a crucial step in the ML pipeline, as it aims to identify the optimal set of hyperparameters for a given algorithm. Unlike model parameters, which are learned from the training data during the training process, hyperparameters are predefined configuration settings that influence the learning process itself. By adjusting these hyperparameters, one can fine-tune the behaviour and performance of the model to achieve better results. One popular technique for hyperparameter tuning is GridSearchCV . This method systematically explores a specified grid of hyperparameters, evaluating the model’s performance using cross-validation on 131