Development of a Radiology Information Systems (RIS)
Abstract
Un sistema d'informació de radiologia o RIS és un sistema de programari unificat que té com a objectiu gestionar totes les dades i donar suport a tots els processos de negoci i fluxos de treball necessaris en un centre de radiologia. Aquest document mostra el procés de dissenyar, desenvolupar, i implantar una solució de nova creació. En aquest document s'explica tot el procés des de l'anàlisi prèvia fins al resultat final. És important tenir en compte que, a causa de les restriccions d'extensió i de temps, s'ha seleccionat acuradament un abast representatiu més reduït de manera que encara il·lustra el millor posible el projecte.
Full text
DEVELOPMENT OF A RADIOLOGY INFORMATION SYSTEM (RIS) By Biel Simon Rojas 25th October, 2021 Director: Carles Camins Giménez Ponent: Xavier Burgués Illa Bachelor Degree in Informatics Engineering Specialization: Software Engineering UNIVERSITAT POLITÈCNICA DE CATALUNYA (UPC) Facultat d’Informatica de Barcelona (FIB)
2 Table of Contents List of Tables ............................................................................................................................................. 5 List of Figures ............................................................................................................................................ 5 1 Introduction .......................................................................................................................................... 8 1.1 Goal of the project ........................................................................................................................ 8 1.2 MedicalOne ................................................................................................................................... 8 1.3 Justification and state of the art ................................................................................................... 9 1.4 Scope ........................................................................................................................................... 10 1.4.1 Scope of the whole system ................................................................................................. 10 1.4.2 Domain overview ................................................................................................................ 10 1.5 Scope of this project ................................................................................................................... 12 1.5.1 Goal: What is this project about ......................................................................................... 12 1.5.2 In Scope ............................................................................................................................... 12 1.5.3 Out of scope ........................................................................................................................ 12 1.6 Stakeholders ............................................................................................................................... 14 1.6.1 Patient ................................................................................................................................. 14 1.6.2 Reception personnel ........................................................................................................... 14 1.6.3 Radiology Technologists ...................................................................................................... 14 1.6.4 Administrative and accounting managers (invoicing, reviewing processes) ...................... 14 1.6.5 Executive officers (statistics, business intelligence) ........................................................... 14 1.6.6 MedicalOne Staff and Management ................................................................................... 14 2 Project Management .......................................................................................................................... 15 2.1 Project planning .......................................................................................................................... 15 2.1.1 Methodology being used .................................................................................................... 15 2.1.2 Description of tasks ............................................................................................................. 15 2.1.3 Estimates and Gantt diagram.............................................................................................. 19 2.1.4 Risk management: Alternative plans and obstacles ........................................................... 22 2.1.5 Resources needed ............................................................................................................... 23 2.2 Budget ......................................................................................................................................... 24 2.3 Sustainability report .................................................................................................................... 26 2.3.1 Economical Area ................................................................................................................. 26 2.3.2 Environmental Impact ......................................................................................................... 26 2.3.3 Social Area ........................................................................................................................... 26
3 3 Requirements and specification ......................................................................................................... 27 3.1 Requirements .............................................................................................................................. 27 3.1.1 Functional requirements ..................................................................................................... 27 3.1.2 Non functional requirements .............................................................................................. 28 3.2 Specification ................................................................................................................................ 28 3.2.1 Logical Domain Model of the complete system ................................................................. 28 3.2.2 Specific Logical Domain Model ........................................................................................... 30 4 Software Design .................................................................................................................................. 33 4.1 Overall architecture .................................................................................................................... 33 4.2 Frontend design .......................................................................................................................... 35 4.2.1 Introduction ........................................................................................................................ 35 4.2.2 Frontend General Navigation Map ..................................................................................... 35 4.2.3 Features (Main flows) ......................................................................................................... 36 4.3 Backend design ........................................................................................................................... 43 4.3.1 Introduction ........................................................................................................................ 43 4.3.2 Operations........................................................................................................................... 43 5 Implementation .................................................................................................................................. 45 5.1 Frontend ...................................................................................................................................... 45 5.1.1 Technology used ................................................................................................................. 45 5.2 Backend ....................................................................................................................................... 50 5.2.1 Technology used ................................................................................................................. 50 5.3 Database ..................................................................................................................................... 53 5.3.1 PostgreSQL .......................................................................................................................... 53 5.3.2 Schema of entities used by the features in the scope of this project ................................ 54 5.3.3 Fine tuning .......................................................................................................................... 55 5.4 Object Storage (S3) ..................................................................................................................... 56 5.5 Twelve-Factor App ...................................................................................................................... 57 6 Deployment, Workflow and CI / CD .................................................................................................... 59 6.1 Environments .............................................................................................................................. 59 6.2 Server architecture ..................................................................................................................... 60 6.2.1 Nginx (Reverse Proxy) ......................................................................................................... 60 6.2.2 PM2 (Process manager) ...................................................................................................... 61 6.3 Jenkins (CI / CD) .......................................................................................................................... 62
4 7 Legal Aspects ....................................................................................................................................... 63 8 Conclusions ......................................................................................................................................... 64 8.1 Accomplished objectives ............................................................................................................. 64 8.2 Technical competences accomplishment in relation to the software engineering specialization. 64 8.3 Planning and budget review ....................................................................................................... 65 8.4 Future work ................................................................................................................................. 65 9 References .......................................................................................................................................... 67
5 List of Tables Table 1. Tasks and workload estimation ..................................................................................................... 19 Table 2. The resources needed for the project with their typology, purpose and tasks it is planned to be used in ......................................................................................................................................................... 23 Table 3. Cost per hour of the different roles present in the team. Source: Own compilation, data extracted from salaryexpert.com (3) .......................................................................................................... 24 Table 4. Economic cost of performing the project tasks based on scenarios 1 and 2 ................................ 24 Table 5. Resources used in the project and their total used price ............................................................. 25 List of Figures Figure 1. Simple entity-relationship diagram representing the main domain entities. In the inception phase of the project, a lot more entities will likely be defined and will end up in the final product. ........ 11 Figure 2. Gantt diagram of the project ....................................................................................................... 21 Figure 3 Diagram of the Domain Model extracted directly from the documentation of the project within the company ............................................................................................................................................... 29 Figure 4 UML Class Diagram showing the entities and the relationships used to support the main workflow. All entities have id as an autogenerated surrogate key. ........................................................... 31 Figure 5 UML Class Diagram showing the additional entities and the relationships used to support the authentication and role-based authorization parts of the system: User, UserRole and Role. All entities have id as an autogenerated surrogate key. .............................................................................................. 32 Figure 6 UML Diagram showing the high-level architecture of the system with its main moving parts. It’s worth noting that there are many terminals interacting with the same Cloud Server instance. .............. 34 Figure 7 UML State diagram representing the main pages and navigation between them. ...................... 35 Figure 8 Navigation diagram using miniatures of the Mockups to show the global concept. Numbers correspond to states in the UML State Diagram. ....................................................................................... 36 Figure 9 UML Activity Diagram of the Frontend Flow 1: Appointment booking flow using calendar ........ 37 Figure 10 Patients Page. From this page the user will be able to browse, create, edit and deltete patients. The user can also create new appointments for the patients or view existing ones. ................. 37 Figure 11 Schedule Page while in the flow of creating new appointments. Numbered blue circles represent, in order, the actions taken to create 3 new appointments for 3 different resources. ............. 38 Figure 12 Visits Page after creating 3 new appointments using the schedule (as shown in the previous figure). ......................................................................................................................................................... 38 Figure 13 Visits Page after filling in the rest of the information for the visit lines. At this point the appointments are ready for the day the patient comes. ............................................................................ 39 Figure 14 UML Activity Diagram of the patient arrival flow ....................................................................... 40 Figure 15 Schedule view when opened from the main menu. Allows visits to be clicked and opens the visits for patient page as shown in Figure 17 .............................................................................................. 41 Figure 16 Visits page when opening it on a day in which the patient has appointments when the patient is on the reception desk showcasing the document uploading and classification UI concept. We can see that the selected document is associated to the entire Appointment 1 and only the first visit line of the Appointment 2 ............................................................................................................................................ 41 Figure 17 Visits page when opened for a patient that is ready to enter a visit or has already completed the radiology exams. ................................................................................................................................... 42
6 Figure 18 UML Sequence diagram illustrating the inner workings of the visitsForPatient operation, prepared to be called from the frontend. .................................................................................................. 43 Figure 19 UML Sequence diagram illustrating the process of attaching many documents. Note that the upload is made directly from the frontend to the directly to the S3 object storage server, reducing in this way the load the Business Logic Server has to take when uploading documents. .................................... 44 Figure 20 Typescript logo. Typescript adds static typing on top of Javascript and is the language of choice for our project. ............................................................................................................................................ 45 Figure 21 React logo. React is a frontend framework that takes care of the view layer. ........................... 46 Figure 22 Webpack logo. Webpack is a module bundler for the web . ...................................................... 46 Figure 23 Data grid example of usage in the final product. This page corresponds to the Patients Page and shows all patients in the system in a Data Grid. All data presented is anonymized to comply with data protection regulation. ......................................................................................................................... 47 Figure 24 Example of custom usage of the Data Grid in the final implementation of Visits Page. ............ 47 Figure 25 Example usage of the Calendar library found in the Schedule Page. This result was achieved by using FullCalendar as a base and adding some additional features on top such as custom event contents, mouse over tooltips and a time indicator by the side of the cursor. ......................................................... 48 Figure 26 Logo of BlueprintJS. Main source of components and inspiration for the design system. ........ 49 Figure 27 MobX Logo. MobX is the frontend state management library used to solve the state management needs in this project. ............................................................................................................ 49 Figure 28 Diagram showing how MobX extends the language to track dereferences (or property accesses) to build a reactive engine on top ob JavaScript. More information in MobX Documentation. Source: MobX Documentation.................................................................................................................... 50 Figure 29 Image explaining how MobX reactivity works. Source: MobX Documentation. ........................ 50 Figure 30 Logo of NestJS, the framework of choice for this project ........................................................... 50 Figure 31 Logo of TypeORM, the ORM of choice for this project ............................................................... 52 Figure 32 Diagram showing the tables relevant to the part of the project addressed in this document. The entire database schema is much larger and does not fit in a single page. .......................................... 55 Figure 33 MinIO logo. MinIO is a self-hosted S3 storage solution (13). ..................................................... 56 Figure 34 Diagram illustrating the three environments, the branches they use as source for their deployments and the databases they are connected to. ........................................................................... 59 Figure 35 Diagram illustrating how ingress traffic gets delivered to the different exposed services based on the requested subdomain. Note that not all services are directly accessed from the outside. In the diagram @ represents the domain through which the server is exposed to the internet. ........................ 61 Figure 36 PM2 logo. PM2 is a process manager for NodeJS adequate for production environments. It performs automatic restarts, healthchecks, monitoring, log aggregation and more. ............................... 62 Figure 37 Jenkins logo. Jenkins is a platform for easily automating tasks. In our case CI/CD deployments and database backups. ............................................................................................................................... 62 Figure 38 Activity Record page. This page shows the record of actions performed by all users sequentially. It also provides a filter UI to allow administrative staff to perform quick investigations. .... 63
7 Abstract English A Radiology Information System or RIS is a unified software system which that aims to manage all the data and support all the required business processes and workflows in a radiology center. This document showcases the process of designing, developing, and implanting a newly created solution. The whole process starting from the prior analysis up to the final result is explained in this document. It is important to note that due to extension and time constraints, a smaller representative scope has been carefully selected in a way that still illustrates the larger project as best as possible. Catalan Un sistema d'informació de radiologia o RIS és un sistema de programari unificat que té com a objectiu gestionar totes les dades i donar suport a tots els processos de negoci i fluxos de treball necessaris en un centre de radiologia. Aquest document mostra el procés de dissenyar, desenvolupar, i implantar una solució de nova creació. En aquest document s’explica tot el procés des de l’anàlisi prèvia fins al resultat final. És important tenir en compte que, a causa de les restriccions d’extensió i de temps, s’ha seleccionat acuradament un abast representatiu més reduït de manera que encara il·lustra el millor posible el projecte. Spanish Un sistema de información de radiología o RIS es un sistema de software unificado que tiene como objetivo gestionar todos los datos y dar soporte a todos los procesos de negocio y flujos de trabajo necesarios en un centro de radiología. Este documento muestra el proceso de diseñar, desarrollar e implantar una solución de nueva creación. En este documento se explica todo el proceso desde el análisis previo hasta la implementación e implantación final. Es importante tener en cuenta que, debido a las restricciones de extensión y de tiempo, se ha seleccionado cuidadosamente un alcance representativo más reducido que aún ilustre lo mejor posible el proyecto.
8 1 Introduction 1.1 Goal of the project The goal of this project is to create a Radiology Information System (RIS) for a client of the MedicalOne software company. A RIS is a subcategory inside the broader Healthcare Information System or HIS. To summarize, the scope of the system we plan to build includes managing all the data and support all the current workflows in the organization, except for some areas where already existing specialized tools fit better (1). In the case of this client, a complete solution that was able to handle all aspects of the business was requested. This included resource scheduling, patient electronic health record, invoicing, and medical image handling among many others. The system has to be extensible so that in the future more processes can be automated by adding additional features to the system. Since the process of building the entire planned system is too large to be covered by this End of Degree project (or TFG), only some aspects of it are going to be covered. The parts that are covered will be contextualized as best as possible in the “Scope of this project” section in a way that the reader can clearly understand where they fit in the global picture. During the entire writing of the document, there will be special attention placed into keeping this global picture in mind so that it is clear at all times why we are doing what we are doing. This document covers the entire process behind the project. It not only presents the final result, but also walks through each step in the process of making it and explains the why and how behind it. 1.2 MedicalOne MedicalOne is a software company that works with academic and scientific institutions and industry partners to develop new products and access new markets. It was founded in 1989 in Parc Científic de Barcelona (PCB) (2). Its current offerings include software solutions for Cardiology, Parenteral Nutrition and Radiology - the latter being the area concerning this project. MedicalOne is currently serving more than 700 corporations, universities, and organizations around the world. A list of the public clients and software solutions can be found on its website 1 . MedicalOne is currently migrating a lot of software solutions that were developed using older technologies over to web technologies. This project, being one of the first that is developed using web technologies, intends to serve as a basis to this re-engineering effort that should be able to modernize most of the products and offerings the company currently has in older technologies. 1 MedicalOne Website: https://www.medicalione.com/clients/
9 1.3 Justification and state of the art They have an existing information system with existing data that has to be migrated. The current system is does not fulfill their needs and they are looking for an upgrade. In particular, the following issues were present in the existing system: 1. Technical debt: Due to architectural issues and technical debt, the current codebase cannot be changed or altered in any meaningful way to add new features or fix existing problems 2. Not fitting their use case: Is based on a generic solution that does not exactly fit their use case and workflow. This is causing inefficiencies in the daily workflows of the 3. Security: Is based on older versions of the PHP stack without a clear upgrade path. Including language and framework versions which is a problem security-wise since those contain known vulnerabilities and bad security practices. The current solution for this problem has been to limit the access to the system to certain fixed IP addresses. But this hinders the usability of the system since it cannot be used from anywhere in the internet. These points defend the case for the replacement of the system. However the organization could choose one of the existing solutions in the market so satisfy their needs. This is a path that was already explored by the client when the company started with this project. There were some factors that made following this path infeasible: 1. Connections and integrations with physical equipment: A hard requirement for the system was that it had to be able to integrate with the existing radiology equipment. This was a strategic decision taken by the management of the medical center in order to optimize processes and increase efficiency and competitiveness. This eliminated a large chunk of existing solutions in the market. 2. Niche product: Large medical software providers often omit this market segment in their solutions because it is small when compared to others. It is in this type of products that MedicalOne specializes in. Taking all this points into consideration, a decision was made to start from scratch and implement a new system that would fulfil the requirements. This would come with the added benefit that the solution is going to be tailor-made for their business and is most likely to succeed in their attempt to increase efficiency and competitiveness in their sector.
16 Duration: 7 hours 2.1.2.1.5 T1.5 Final document writing This task consists of writing the final document. Duration: 3 hours 2.1.2.2 T2 Inception The main objective of this task is to determine the functional and non-functional requirements of the system. This includes all the features needed to satisfy the client’s needs as well as other requirements that apply to all software projects developed for this industry. Total duration: 105 hours 2.1.2.2.1 T2.1 System requirements and use case analysis In this phase consist of analyzing the need of the client and gathering all the requirements that the future software solution should fulfill. Duration: 35 hours 2.1.2.2.2 T2.2 Logical domain model This phase consists of extracting the logical domain model that the system is going to work with. It is important to go as much detail as possible in order to find flaws in the design as early as possible in the development process. This model should already be easily translatable into a database model. Duration: 30 hours 2.1.2.2.3 T.2.3 Detailed product sketch This task consists of generating visual artifacts that describe the entire product. Both from visual and user interface point of view and from behavioral and workflow point of view. At this point, the product should be clearly defined. The scope and expected result of this project should be well known and agreed upon by both the development team and the client. Duration: 40 hours 2.1.2.3 T3 First Development Iteration Total duration: 80 hours 2.1.2.3.1 T3.1 Detailed UI Designs The first step in this iteration is to create detailed sketches or mockup of all the user interface screens and elements that are going to be present in the system. These sketches should contain enough detail that no further decisions regarding placement or visual appearance of UI elements must be made during the rest of the development process. This allows the client to get a feel for the product before any code has been written and any miss understandings can be solved in this early stage of the process. Duration: 40 hours 2.1.2.3.2 T3.2 Database model The second step of this iteration is to create a detailed database model. At this point, we already have analyzed the logical domain and know how all the features we expect to build look visually. Basing on
17 that, we can design a data model containing all the tables and fields with their correct types that are going to be present in the final system. Duration: 10 hours 2.1.2.3.3 T3.3 Backend code architecture In this third step of the second iteration we will design the architecture of our back-end. At this point, we are going to make all the big decisions and trade-offs that will impact the project during its entire lifetime. Duration: 15 hours 2.1.2.3.4 T3.4 Frontend code architecture In this fourth step we will design the architecture of our frontend. We already know which technologies we are going to use based on similar projects done at the same company. But we will still need to make the big decisions that are needed to create the skeleton and code layout that will be the base of our frontend codebase. Duration: 15 hours 2.1.2.4 T4 Second Development Iteration Total duration: 35 hours 2.1.2.4.1 T4.1 Basic patient handling The goal of this task is to develop the feature of creating, updating and viewing registered patients in the system in grid-like UI. It includes both the frontend and backend sides of the development. Duration: 10 hours 2.1.2.4.2 T4.2 Patients advanced search functionality In this task we will iterate upon the basic patient handling functionality and include advanced feature that will allow to quickly find any patient in the system that meets certain criteria. Duration: 15 hours 2.1.2.4.3 T4.3 Additional patient information In this task we will add the functionality related to Electronic Health Record (EHR) to the existing patient system. The exact information will be already agreed upon by the client at this point. Duration: 10 hours 2.1.2.5 T5 Third Development Iteration In this third development iteration we will work on aspects related to the appointments and visits of a patient. Total duration: 73 hours 2.1.2.5.1 T5.1 Basic patient appointments screen The goal of this task is to create the skeleton of the screen that is going to show all the information about the patient. This includes the basic patient information as well as any appointments and previous visits it may have.
18 Duration: 15 hours 2.1.2.5.2 T5.2 Appointments of a patient visualizer In this task we build upon the basic skeleton generated in the previous task and create a viewer that allows the management of all the appointments and visits. We expect this to be the most complex part of the UI in the entire system. Duration: 40 hours 2.1.2.5.3 T5.3 Appointment process control interface In this task we plan to add a UI element that allows to keep track of in which stage each individual visit is and for which stages it has already past and while registering the timestamps of all those events. Duration: 8 hours 2.1.2.5.4 T5.4 Additional UI elemtents reqiured that may appear in the design IN this stage we will add additional elements that correspond to minor features designed to support staff at performing daily tasks that also appear in the mockups that we may have at this point. Duration: 10 hours 2.1.2.6 T6 Fourth Development Iteration Total duration: 55 hours 2.1.2.6.1 T6.1 Calendar UI In this task we will develop a feature that is able to present the existing appointments in the system in a calendar UI. We are going to start from an existing calendar system an adapt it to match our requirements. Duration: 30 hours 2.1.2.6.2 T6.2 Advanced calendar features This task is a continuation of the previous one and involves building advanced features for the calendar UI. Those include supporting advanced operations like drag and drop rescheduling, resizing to change the duration and dragging and dropping between different compatible resources. Duration: 25 hours 2.1.2.7 T7 Fifth Iteration In this fifth and last development iteration we are going to finish the implementation of the system by adding the capability of managing files. In this context, a file refers to all the entities which are not central to the system. Examples of those would be the Resource or the Product entity. This will allow users of the system to maintain and update those over time. Total duration: 45 hours 2.1.2.7.1 T7.1 Files dashboard This task consist of building a screen that will allow to access all the editors for the different file entities. Duration: 5 hours
19 2.1.2.7.2 T7.2 Individual file editing screens This task involves creating custom editing screens, as defined in the mockups, for each individual file entity. Those screens are then going to be accessed via the screen we created in the previous task. Duration: 40 hours 2.1.2.8 T8 Thesis defense preparation Total duration: 40 hours 2.1.3 Estimates and Gantt diagram 2.1.3.1 Tasks and workload estimation Table 1. Tasks and workload estimation Code Hours Dependencies T1 Project Planning T1 T1.1 Scope T1.1 20 T1.2 Planning T1.2 20 T1.1 T1.3 Estimate T1.3 25 T1.2 T1.4 Improvements T1.4 7 T1.3 T1.5 Final document writing T1.5 3 T1.4 T2 Inception T2 T1 T2.1 System requirements and use case analysis T2.1 35 T2.2 Logical domain model T2.2 30 T2.1 T2.3 Detailed product sketch T2.3 40 T2.1 T3 First Iteration T3 T2 T3.1 Detailed UI Designs T3.1 40 T3.2 Database model T3.2 10 T3.1 T3.3 Backend code architecture T3.3 15 T3.1 T3.4 Frontend code architecture T3.4 15 T3.1 T4 Second Iteration T4 T3 T4.1 Basic patient handling T4.1 10 T4.2 Patients advanced search functionality T4.2 15 T4.1 T4.3 Additional patient information T4.3 10 T4.1 T5 Third Iteration T5 T4 T5.1 Basic patient details screen T5.1 15 T5.2 Appointments of a patient visualliser T5.2 40 T5.1 T5.3 Appointment process control interface T5.3 8 T5.2 T5.4 Additional UI elemtents reqiured that may apear in the design T5.4 10 T5.1
20 T6 Fouth iteration T6 T5 T6.1 Calendar UI T6.1 30 T6.2 Advanced calendar features T6.2 25 T6.1 T7 Fifth Iteration T7 T6 T7.1 Files dashboard T7.1 5 T7.2 Individual file editing screens T7.2 40 T7.1 T8 Thesis defense preparation T8 40 T7 Total: 508
21 2.1.3.2 Gantt diagaram Figure 2. Gantt diagram of the project
22 2.1.4 Risk management: Alternative plans and obstacles In this section we go over potential risks we have considered and explain the mitigation plans we have for them. 2.1.4.1 R1 Deviation in the original planning While the aim has been to make the scope and planning of the project as detailed as possible, this is a big project and we have to take into account the risk of it or some parts of it deviating from the original planning in time. Probability: Medium 2.1.4.2 R2 Wrong product gets delivered in the end There could be the possibility that the product that gets finally delivered to the client does not exactly satisfy its needs. In the planning of the project, we make sure to have the complete specification of the final product as early as possible in the development process. Concretely, we should have it completely defined and validated by iteration 2. In case some deviation from expectations exists, we would correct it in the same iteration. Probability: Low 2.1.4.3 R3 Bugs and quality issues There exists the possibility of facing bugs and hard to resolve quality issues. This is a risk always present in software projects. However we are avoiding it as much as possible by using proven technology that has been already used in other projects at the same company for building similar products. Probability: Low 2.1.4.4 R4 Pushback from certain stakeholders There also exists the possibility that some stakeholders may oppose the implementation of the system due to personal or departmental interests. We plan to avoid this by issuing a clear contract and ensure all the stakeholders are on the same page, with special emphasis on the decision makers. Probability: Low
23 2.1.5 Resources needed Table 2. The resources needed for the project with their typology, purpose and tasks it is planned to be used in Code Resource Typology Purpose Tasks R1 Dell XPS 17 Laptop Technological, hardware resource Used as workstation PC T1, T2, T3, T4, T5, T6, T7, T8 R2 WebStorm IDE Technological, software resource Used as main code editing tool T2, T3, T4, T5, T6, T7 R3 GitHub Technological, software resource Code sharing and VCS (Version control system) tool T2, T3, T4, T5, T6, T7 R4 PostgreSQL Technological, software resource RDBMS (Database engine) used in the project. T2, T3, T4, T5, T6, T7 R5 NodeJS Technological, software resource Backend runtime and development platform T2, T3, T4, T5, T6, T7 R6 ReactJS Technological, software resource Frontend UI library T2, T3, T4, T5, T6, T7
24 2.2 Budget In this section an estimate of the cost of the project is presented. In order to quantify the cost of the project, two different alternative scenarios have been considered. 1. Scenario 1: The project is developed by a student that earns 9/€ hour which is the standard rate that applies to internships under the UPC regulation. 2. Scenario 2: The project is carried out by an experienced team that includes people from all the required roles earning standard industry rates. In both cases, in order to account for additional communication and other overheads, we added a 30% deviation on top of the results we got after applying hourly rates for each role. Table 3. Cost per hour of the different roles present in the team. Source: Own compilation, data extracted from salaryexpert.com (3) Role Scenario 1 (€/h) Scenario 2 (€/h) Project Manager 9 97.5 Senior System Analyst 9 71.5 Software Architect 9 78 Programmer 9 35 UI Designer 9 30 Table 4. Economic cost of performing the project tasks based on scenarios 1 and 2 Task Role Hours Scenario 1 Scenario 2 T1 Project Planning T1.1 Scope PM 20 180,00 € 1.950,00 € T1.2 Planning PM 20 180,00 € 1.950,00 € T1.3 Estimate PM 25 225,00 € 2.437,50 € T1.4 Improvements PM 7 63,00 € 682,50 € T1.5 Final document writing PM 3 27,00 € 292,50 € T2 Inception T2.1 System requirements and use case analysis SSA 35 315,00 € 2.502,50 € T2.2 Logical domain model SSA 30 270,00 € 2.145,00 € T2.3 Detailed product sketch SSA 40 360,00 € 2.860,00 € T3 First Iteration T3.1 Detailed UI Designs D 40 360,00 € 1.200,00 € T3.2 Database model SA 10 90,00 € 780,00 € T3.3 Backend code architecture SA 15 135,00 € 1.170,00 € T3.4 Frontend code architecture SA 15 135,00 € 1.170,00 € T4 Second Iteration
25 T4.1 Basic patient handling P 10 90,00 € 350,00 € T4.2 Patients advanced search functionality P 15 135,00 € 525,00 € T4.3 Additional patient information P 10 90,00 € 350,00 € T5 Third Iteration T5.1 Basic patient details screen P 15 135,00 € 525,00 € T5.2 Appointments of a patient visualizer P 40 360,00 € 1.400,00 € T5.3 Appointment process control interface P 8 72,00 € 280,00 € T5.4 Additional UI elements required that may appear in the design P 10 90,00 € 350,00 € T6 Fouth iteration T6.1 Calendar UI P 30 270,00 € 1.050,00 € T6.2 Advanced calendar features P 25 225,00 € 875,00 € T7 Fifth Iteration P T7.1 Files dashboard P 5 45,00 € 175,00 € T7.2 Individual file editing screens P 40 360,00 € 1.400,00 € T8 Thesis defense preparation - 40 0,00 € 0,00 € Total 508 4.212,00 € 26.420,00 € Total (30% deviation) 609,6 5.475,60 € 34.346,00 € Economic cost associated with the used resources: Table 5. Resources used in the project and their total used price Code Resource Price Used % Used Price R1 Dell XPS 17 Laptop 2849 €, lifespan 8 years 5,21% 148,69 € R2 WebStorm IDE 400 €/year 41 % 164,00 € R3 GitHub Free - - R4 PostgreSQL Free - - R5 NodeJS Free - - R6 ReactJS Free - - Total: 312,69 € Total estimated cost of the project: 1. Scenario 1: 5.475,60 + 312,69 = 5.788,29 € 2. Scenario 2: 34.346,00 + 312,69 = 34.658,69 €
32 • UserRole: Represents a role taken by a user. Stores the fact that certain user has a role and includes additional information such as whether it is read only or the level of permission. Those extra attributes are used to simplify the role management as well as allowing for future expansion of the role system if required in the future. Figure 5 UML Class Diagram showing the additional entities and the relationships used to support the authentication and role-based authorization parts of the system: User, UserRole and Role. All entities have id as an autogenerated surrogate key.
33 4 Software Design 4.1 Overall architecture The main aspect of the application design is a client - server architecture. We expect the client to be implemented using web technologies and distributed via a web application server. In Figure 6 the main components composing the system are shown: • Cloud Server: The cloud server instance where the server-side software will run. o Web App Server: Delivers the web application to the terminals where it’s going to be used. Using this approach has many advantages over the traditional desktop software distribution model. Clients are always up to date and updates are preformed at the same time for everyone. o Business Logic Server (or Backend): Responsible for providing the data and server-side functionality for the application. Its main job is to provide and manage the information the application works with. It is also a secure and trusted environment that is used to perform tasks where this safety is essential such as Authentication and Authorization. o Database: An RDBMS that stores relational data used by the system in a structured way so the access to it is fast and efficient. o S3 Object Storage: Stores any kind of documents and files that may be used by the system that would be too big to store and manage with the rest of the data efficiently. o Other services: In the future, other services consisting of existing software or of own implementation can be added if appropriate. • Client Terminal: The devices where the user client-side software runs. o Web App (or Frontend): Represents the code that runs on each terminal using the system. It has logic of its own where applicable and delegates processing to the Business Logic Server when appropriate. o Platform controller: Additional piece of software that is used to implement features that need access to features that are not provided by the browser. Examples include interfacing with radiology equipment or direct printing using platform drivers.
34 Figure 6 UML Diagram showing the high-level architecture of the system with its main moving parts. It’s worth noting that there are many terminals interacting with the same Cloud Server instance.
35 4.2 Frontend design 4.2.1 Introduction We are placing the frontend section first because we followed a frontend-first approach for the development of the system. This means that once the logical data model was clear, we proceeded to decide on the expected behavior of every feature from the point of view of what’s going to be shown on the screen. That implied that the decisions and specific requirements of the backend were strongly tied to the frontend. The main pattern followed to implement the frontend is what’s called a Single-Page Application or SPA. In an SPA, the application is loaded from the web server only once at the beginning. As the user interacts with the application and new data is required, it is requested to the respective Business Logic Server as needed. This contrasts with traditional web applications where a new page is fetched on every state transition. In this section we present the navigation flow of this frontend and the design for the features that handle the two main flows supported by the application. We also present mockups of the application for every state in the state diagram. 4.2.2 Frontend General Navigation Map Figure 7 UML State diagram representing the main pages and navigation between them.
36 Figure 8 Navigation diagram using miniatures of the Mockups to show the global concept. Numbers correspond to states in the UML State Diagram. 4.2.3 Features (Main flows) We will describe in depth the features that support the main flows of the app. 4.2.3.1 Frontend Flow 1: Book one or more appointments using calendar One of the main workflows that the application must support is the booking of new appointments by receptionists. The requesting patients could either be calling in from the outside or be in front of the reception desk. The flow, as shown in the UML state diagram in Figure 9, starts by searching the patient. The application must allow to find patients by any field to facilitate finding the patient in edge cases and minimize patient duplication. In case the patient is not found, it is created. Once the patient is ready and selected, the receptionist proceeds to indicate that he or she wants to book an appointment for this patient using the schedule. It is in this schedule where the receptionist selects free slots in the requested resources. Then, the receptionist can proceed to selecting the products requested for each resource. Followingly, additional information for each visit line can be added, completing in this way the process of booking the requested appointments for the patient. Mockups for the different stages of the processes along with their explanation can be found in Figure 10, Figure 11, Figure 12 and Figure 13.
37 Figure 9 UML Activity Diagram of the Frontend Flow 1: Appointment booking flow using calendar Figure 9 Figure 10 Patients Page. From this page the user will be able to browse, create, edit and deltete patients. The user can also create new appointments for the patients or view existing ones.
38 Figure 11 Schedule Page while in the flow of creating new appointments. Numbered blue circles represent, in order, the actions taken to create 3 new appointments for 3 different resources. Figure 12 Visits Page after creating 3 new appointments using the schedule (as shown in the previous figure).
39 Figure 13 Visits Page after filling in the rest of the information for the visit lines. At this point the appointments are ready for the day the patient comes. 4.2.3.2 Frontend Flow 2: Patient arrives for the appointment The next most important workflow is the handling of the patient arrival at the appointment. The patient arrives on a certain date and time with the intention of taking some radiology imaging procedures because they have requested and successfully booked and appointment previously. The flow, as shown in the UML state diagram in Figure 14, starts by the patient entering the radiology center. It is then attended by a receptionist which has the software running on their computer. At this point, the goal of the receptionist is to find the appointment for the patient. It can do so either by using the patients page and searching the patient by its name or other identifier, or by using the schedule page in the today view where it is easy to find the appointment visually after the patient provides its name. Once found, the receptionist can see the appointments the patient has for the day. The receptionist must the go over each appointment and request, scan and upload all the required documentation and complete any missing information for said appointment. The UI concept for this stage can be seen in Figure 16. When an appointment is validated and has its information completed, it gets converted into a Visit. Visits are represented by the blue color, as opposed to appointments which are represented by the orange color. The identifier remains the same when Appointments get converted into Visits. Finally, when all the documentation has been uploaded to the system the patient is ready to take the procedures and he is told to wait for his turn in the waiting room. Other procedures that are not in the scope of this project continue the flow from the waiting room up to completion.
40 Mockups for the different stages of the processes along with their explanation can be found in Figure 15, Figure 16 and Figure 17. Figure 14 UML Activity Diagram of the patient arrival flow
41 Figure 15 Schedule view when opened from the main menu. Allows visits to be clicked and opens the visits for patient page as shown in Figure 17 Figure 16 Visits page when opening it on a day in which the patient has appointments when the patient is on the reception desk showcasing the document uploading and classification UI concept. We can see that the selected document is associated to the entire Appointment 1 and only the first visit line of the Appointment 2
48 5.1.1.4.2 Calendar In order to implement the calendar, the consensus was to use an external library instead of doing an implementation of our own. After researching and comparing the available alternatives, FullCalendar was chosen. However, FullCalendar does not have all the needed customization options by default and some work on top of it was necessary before it was ready to suit our needs. In Figure 25 an example usage of the calendar in the Schedule Page of the finished application can be seen. Figure 25 Example usage of the Calendar library found in the Schedule Page. This result was achieved by using FullCalendar as a base and adding some additional features on top such as custom event contents, mouse over tooltips and a time indicator by the side of the cursor. 5.1.1.4.3 Form components For this project, we used the internal library of form components that provide the basic features to let the user edit and perform basic operations on data. Those components are used ubiquitously in the project. Components are sourced from various sources, but special credit must be given to the awesome opensource component library made available by Palantir: BlueprintJS. This library also served for inspiration for defining the design system used throughout the application. Examples of those components can be found in its Documentation (10) (11).
49 Figure 26 Logo of BlueprintJS. Main source of components and inspiration for the design system. 5.1.1.5 State management: MobX Figure 27 MobX Logo. MobX is the frontend state management library used to solve the state management needs in this project. State management is a crucial part of implementing a Single Page Application. There are lots of state management solutions available and there is no clear consensus on which one is the best. After considering other alternatives and testing it in smaller experimental projects, we decided to choose MobX as our state management library. We also evaluated Redux, the competing solution, in-depth but after carrying out these tests we came to the conclusion that MobX would allow us to move faster and achieve a greater development speed with little to no disadvantages. MobX essentially enables reactive programming in Javascript and Typescript. It does so by allowing the developer to define state, actions and derivations (11). It then uses its internal engine to trigger recalculations for values when and only when needed. The diagram in Figure 28 shows how MobX uses property accesses to track dependencies between state and actions and derivations (12). Based on this concept, MobX provides a sophisticated but easy to use reactive state management system. MobX is used throughout the frontend to solve all the reactivity and state management needs.
50 Figure 28 Diagram showing how MobX extends the language to track dereferences (or property accesses) to build a reactive engine on top ob JavaScript. More information in MobX Documentation. Source: MobX Documentation. Figure 29 Image explaining how MobX reactivity works. Source: MobX Documentation. 5.2 Backend 5.2.1 Technology used 5.2.1.1 NestJS Figure 30 Logo of NestJS, the framework of choice for this project NestJS is our backend framework of choice built on top of NodeJS. The framework is heavily inspired by the Angular framework by Google but translates those concepts to the backend. The main job of NestJS is to give a general and predictable structure to the project. This allows for easier onboarding of new team members because they may already be familiar with the structure presented by NestJS and even if they are not, they can be referred to NestJS documentation. It is recommended to take a look at NestJS documentation (13) to better understand the attached source code of the project.
51 5.2.1.1.1.1 Example of a NestJS Controller This section includes an implementation of a controller. Controllers are the entry points to the system and represent its exposed external API. All the methods annotated with @<Method>('<url>') get mapped to HTTP REST endpoints using the specified URLs and HTTP methods. An implementation for a Controller looks as follows, using the DocumentController as an example: @Controller('document') export class DocumentController { constructor(public service: DocumentService) { } @Patch(':documentId') async saveDocument(@Param('documentId') documentId, @Body() body) { return await this.service.saveDocument(parseInt(documentId), body) } @Get(':documentId/dl') async dlDocument(@Param('documentId') documentId) { return this.service.getDocumentForDl(parseInt(documentId)) } @Get(':documentId/ul') async ulDocument(@Param('documentId') documentId) { return this.service.getDocumentForUl(parseInt(documentId)) } } 5.2.1.1.1.2 Example of a NestJS Service This section includes an implementation of a service. Services expose all the required functionality which may then be used either by other services or by controllers Using the DocumentService as an example. The service, in this case, exposes all the functionality related to the handling of documents. @Injectable() export class DocumentService extends TypeOrmCrudService<Document> { constructor( @InjectRepository(Document) repo, @InjectRepository(Document) private readonly documentRepo: Repository<Document>, @Inject(MINIO_CONNECTION) private readonly minioClient: MinioClient, ) { super(repo); } async getUploadUrlForDoc(documentName) { return await new Promise((resolve, reject) => { this.minioClient.presignedPutObject(process.env.DOCUMENTS_BUCKET, documentName, (err, url) => { if (err) reject(err); resolve(url); }); }); } async getDownloadUrlForDoc(documentName) { return await new Promise((resolve, reject) => { this.minioClient.presignedGetObject(process.env.DOCUMENTS_BUCKET, documentName, (err, url) => { if (err) reject(err); resolve(url); }); }); } async getUrlForDocs(documentObjects: { name, [any: string]: any }[], upload: boolean) { for (let i = 0; i < documentObjects.length; i++) { let docObj = documentObjects[i]; if (upload) { let url = await this.getUploadUrlForDoc(docObj.name); docObj.uploadUrl = url; } else { let url = await this.getDownloadUrlForDoc(docObj.name); docObj.downloadUrl = url;
52 } } return documentObjects; } async getUrlForDoc(documentObject, upload: boolean) { return _.first(await this.getUrlForDocs([documentObject], upload)); } async createNewDocuments(body) { if (!_.isArray(body)) body = [body]; let getName = (docName) => { let split = docName.split('.'); return `${_.first(split).substring(0, 16)}-${nanoid(8)}.${_.last(split)}`; }; body.forEach(d => d.name = getName(d.name)); body.forEach(d => d.createdAt = new Date()); let res = await this.documentRepo.save(body); let resWithUrl = await this.getUrlForDocs(res, true); return resWithUrl; } async saveDocument(documentId, body) { let document = await this.documentRepo.findOne(documentId, { relations: ['visits', 'visitLines'] }); let addOnlyMode = false; if(addOnlyMode){ if (body.visits) body.visits = _.uniqBy([...body.visits, ...document.visits], v => v.id); if (body.visitLines) body.visitLines = _.uniqBy([...body.visitLines, ...document.visitLines], v => v.id); } await this.documentRepo.save({ ...body, }); return { saved: true } } async getDocumentForDl(documentId) { let document = await this.documentRepo.findOne(documentId); if (document == null) throw new NotFoundException('Document not found'); return await this.getUrlForDoc(document, false); } async getDocumentForUl(documentId) { let document = await this.documentRepo.findOne(documentId); if (document == null) throw new NotFoundException('Document for upload not found'); return await this.getUrlForDoc(document, true); } } 5.2.1.2 TypeORM Figure 31 Logo of TypeORM, the ORM of choice for this project Our ORM of choice is TypeORM. Although it has some caveats, this ORM is already used successfully in other projects developed in the same company. We use it to perform basic – but very common and repetitive – interactions with the database. Those usually fall under the category of CRUD (Create, Read, Update and Delete) operations, but there are some useful advanced features of the ORM being used. All the TypeORM features are detailed in its Documentation (13).
53 Another advantage of using the ORM is that it automatically escapes parameters for you, thus preventing SQL Injection attacks and other user input-related software bugs that would be present if the queries were sent to the database without escaping parameters by accident. 5.2.1.3 Manual SQL Queries (for Postgres) In many cases, the features, efficiency and quality of the generated queries provided by the orm, in our case TypeORM was not enough. In that case, the we bypassed the ORM and used manually crafted queries. This offered the best of both worlds. We were able to increase the development speed, maintainability and changeability of the project by using an ORM. But we were also able to use the advanced capabilities of the database for querying data in complex ways. This is an important design decision because it allows us to offload the processing of data to the database which is highly optimized for that task. In our case the chosen database is Postgres, which a part form being heavily multithreaded, it is written in C making it faster by nature than our NodeJS business logic server. NodeJS is slightly more focused in development speed than performance so it’s a good idea in general to offload complex tasks to the database to increase performance where needed to fulfill non-functional requirements. 5.3 Database 5.3.1 PostgreSQL The chosen RDBMS is PostgreSQL . While alternatives were evaluated, PostgreSQL was found to fit our use case and is already being used in other solutions in the same company. The fact that recent versions brought many improvements also helped to make this decision. The manual queries used use standard SQL in general, but there are no special restrictions and coupling to the PostgreSQL dialect is allowed. This is the case because switching databases is not expected given the status of the PostgreSQL project and that there is no cost for using the software. If in the future there was the need for some custom feature that can only be implemented in the database, it could be developed using a PostgreSQL extension, which minimizes the risk of blocking the project for a database related cause. In the next section we present the schema used for the database including all tables for all the features regarding this project. The entire database schema diagram is attached, but not shown inline because of size constraints.
54 5.3.2 Schema of entities used by the features in the scope of this project
55 Figure 32 Diagram showing the tables relevant to the part of the project addressed in this document. The entire database schema is much larger and does not fit in a single page. 5.3.3 Fine tuning In our case we were able to increase the performance of the database by paying attention to its configuration. We found that due to the scale and budget of the project it was appropriate to use a higher end dedicated cloud server that used an SSD and provided 32 Gigabytes of main memory. We then modified the configuration of PostgreSQL to take advantage of this hardware capabilities. We used the PgTune calculator found online (14) along with other online information and trial and error using relevant benchmark queries to find the best values for our configuration. Our application falls into the category of an OLTP (Online Transaction Processing) kind of application. This means that there may be some long transactions or complex queries but also lots of simple ones. It is important to note that the business intelligence needs are not taken care of using this database. Main changes made to the configuration: • Increase the maximum memory usage: The default memory usage limit much smaller than the amount we had available on the server. We changed this value to 26 GB, leaving the rest of the 32 GB for the Business Logic Server instances (NodeJS processes) and other services. • Decrease the heuristic cost of going to disk: Since the server used an SSD and the default configuration is prepared for slower HDDs, we researched what value was appropriate for this configuration option and used it. In the future if the system needs to scale and scaling vertically is not an option, we could easily use another server only for the database. However, having the database in the same machine as the web servers offers an advantage that must not be overlooked: Latency. It is important to note that when accessing the database in the same machine the latency is close to zero. While in a datacenter latencies are very small between servers, it can matter when lots of queries are required to perform an operation, as described in this article: “How Millisecond Delays May Kill Database Performance” (14).
56 5.4 Object Storage (S3) S3 is a term popularized by Amazon Web Services. It was originally a revolutionary product that offered storage as a service through a web interface. Since then it has evolved to a standard for handling large blobs of data in the web. It often takes the place and handles the features FTP servers would have handled in the past. Using an S3 service instead of handling uploads using application code offers the benefit that document uploads and downloads can use a secure side-channel which is more efficient and does not block other more trivial requests being made to the server. This especially important when using NodeJS because every instance is single-threaded so long-running requests can put many others on hold, reducing the performance for all users and threatening to fail at fulfilling non-functional requirements for the system. There are many vendors that offer S3 storage and also many self-hosted options. In our case a decision to start by self-hosting using MinIO was made. It is important to note that at any moment MinIO can be replaced by another S3 compatible option such as AWS S3. It can be replaced individually on select production environments or for all of them since there is no specific coupling to MinIO. Figure 33 MinIO logo. MinIO is a self-hosted S3 storage solution (15).
57 5.5 Twelve-Factor App We tried to incorporate the philosophy behind the Twelve-Factor App. The twelve-factor app is a methodology for building software-as-a-service apps. It concerns both the architecture of the software and the processes used to build and deploy it. When an app fulfills the twelve factors, it is a trivial task to convert it to a cloud-native app, which we intend to do in the future. The twelve factors (quoted from the official website) (16): I. Codebase One codebase tracked in revision control, many deploys II. Dependencies Explicitly declare and isolate dependencies III. Config Store config in the environment IV. Backing services Treat backing services as attached resources V. Build, release, run Strictly separate build and run stages VI. Processes Execute the app as one or more stateless processes VII. Port binding Export services via port binding VIII. Concurrency Scale out via the process model IX. Disposability Maximize robustness with fast startup and graceful shutdown X. Dev/prod parity Keep development, staging, and production as similar as possible XI. Logs Treat logs as event streams
64 8 Conclusions 8.1 Accomplished objectives At the time of writing, the software is installed and being used on three separate Radiology Centers. It is also important to note that the development and installation of the software have been done in the expected timeframe within margin of error. This implies that the main objective has been accomplished. In detail, the following objectives have been accomplished successfully: 1. Develop and deploy the software solution: As said, this was the main objective and its worth not within the expected timeframe 2. Cover the planned scope: The resulting software at the end of the project allows the radiology centers to operate completely and with improvements with respect to the last software solution being used already on the first version. 3. Fulfill non-functional requirements: We faced some challenges meeting performance requirements in the case of very low-end thin client devices but were able to overcome them by devoting extra time to researching and applying optimizations to the frontend code. 8.2 Technical competences accomplishment in relation to the software engineering specialization. • CES1.1: To develop, maintain and evaluate complex and/or critical software systems and services. [In Depth] o This competence is accomplished exhaustively because the product being developed covers a large enough scope and stands in the middle of critical processes being carried out daily in the radiology center. • CES1.2 To solve integration problems in function of the strategies, standards and available technologies. [In Depth] o A very big part of this project consists of exploring different possible solutions and technologies, evaluating them and selecting the combination of them that together are going to be part of the final product. Naturally this includes integrating those tools and technologies to conform a working final product that fulfills all functional and nonfunctional requirements. • CES1.3 To identify, evaluate and manage potential risks related to software building which could arise. [Medium] o Throughout the project we have been analyzing the possible risks that could threaten the success of the project. In fact, there have been some changes made with respect to the initial planning in order to avoid some of those risks • CES1.4 To develop, maintain and evaluate distributed services and applications with network support. [Somewhat]
65 o Since we are building a web application, we are in fact building a distributed system which consists of the cloud server and each one of the clients that use it. • CES1.5 To specify, design, implement and evaluate databases. [In depth] o We spent a lot of effort crafting first the domain model and later the database schema. We also spent some time evaluating which RDBMS to use. In the final stage of the project we fine-tuned the database to perform best on the cloud instance we used. • CES1.8 To develop, maintain and evaluate control and real-time systems. [A little] o The system is built to reflect changes to all pages in real time to allow collaboration and prevent data desynchronization. • CES2.1 To define and manage the requirements of a software system. [In Depth] o Defining, managing and finally fulfilling software requirements has been a very important part of this project. • CES2.2 To design adequate solutions in one or more application domains, using software engineering methods which integrate ethical, social, legal and economical aspects. [A little] o Ethical, social and legal aspects were considered and included in this document under the sustainability report section. Legal aspects were also considered. 8.3 Planning and budget review After reviewing the initial planning, we found that all the planned tasks have been completed successfully. Since the project required a lot of exploration and experimentation, some tasks were not performed in the same order they were planned. Also, some tasks were adapted as new insights came from the client and others were discarded or replaced by better approaches that were not considered in the planning phase. Overall, all the required features plus some extra ones were implemented in the expected time frame of the project. It is important to note that the initial planning has been useful in providing certainty to many of the major stakeholders in the project. In particular, when taking into account the planning for the whole system, it allowed us to give the client an accurate estimate for the expected duration of the project. It also allowed us to calculate the estimated cost and evaluate the viability of the project. Since there were no major deviations in the timeline, there were no major deviations in the budget either. 8.4 Future work • Improve the server architecture and increase automation: This would be important in the case of increasing the number of clients the company has using this solution. In order to be able to manage deployments and backups in a multi-production environment it is essential to have as much automation in place as possible. One option for doing that, although it should be carefully evaluated is to port the implemented system to cloud native technologies and deploy it using containers and an orchestrator such as Kubernetes or Hashicorp Nomad.
66 • Implement more features: That would increase the scope of the system and allow to replace some existing legacy systems that are currently being used. • Add Integrations with external systems: The system is definitely not operating in an isolated environment but rather it is surrounded by other systems in all areas of business. Often, integrating with those adds automation and increases the efficiency of processes, requiring less manual handling of data. • Add a public external API: This would allow other companies to make integrations for their software solutions without MedicalOne as a company having to intervene in the process of making those. This allows for a scalable way of increasing the variety of use cases the software can be used in. • Marketing of the newly born solution: After finishing the first usable version of the product, we must not forget that in order to be used, it needs to be known. Now is the time to start making marketing and awareness campaigns so potential costumers get to know that it is an option at the time of making a choice for a new solution. • Internationalization: Currently the application is only available in one language. As clients from other regions or that prefer to use another language come it will be essential to introduce multi language support as well as the ability to format numbers according to other locales and offer support for other currencies and units among other features required to allow users from other countries to adopt the software. While it has still not been implemented, an internationalization strategy is already in place in the project.
67 9 References 1. O'Connor, S. What Is a Radiology Information System? Adsc.com. [Online] 2021. [Cited: April 8, 2021.] https://www.adsc.com/blog/what-is-a-radiology-information-system. 2. MedicalOne Website Home Page. MedicalOne Website. [Online] [Cited: April 06, 2021.] https://www.medicalione.com/es/inicio/. 3. Salary Expert. [Online] [Cited: April 8, 2021.] https://www.salaryexpert.com/. 4. How Much Does Custom Software Cost in the Long Run? Worthwhile.com. [Online] 2021. [Cited: May 19, 2021.] https://worthwhile.com/insights/2017/09/11/software-long-term-costs/. 5. Musthaler, L. Energy-aware software design can reduce energy consumption by 30% to 90%. Network World. [Online] 2021. [Cited: May 14, 2021.] https://www.networkworld.com/article/2861005/energyaware-software-design-can-reduce-energy-consumption-by-30-to-90.html. 6. IEEE Communications Society. Energy Efficiency in Data Centers. Comsoc.org. [Online] 2021. [Cited: May 14, 2021.] https://www.comsoc.org/publications/tcn/2019-nov/energy-efficiency-data-centers. 7. Peurakoski, T. Automation and the Quality of Life. SogetiLabs. [Online] 2021. https://labs.sogeti.com/automation-and-the-quality-of-life/. 8. TypeScript. [Online] 2021. [Cited: October 15, 2021.] https://www.typescriptlang.org/. 9. Webpack. [Online] 2021. [Cited: October 16, 2021.] https://webpack.js.org/. 10. BlueprintJS Documentation. BlueprintJS. [Online] https://blueprintjs.com/docs/. 11. The gist of MobX. MobX. [Online] https://mobx.js.org/the-gist-of-mobx.html. 12. Understanding reactivity. MobX Documentation. [Online] 2021. [Cited: September 03, 2021.] https://mobx.js.org/understanding-reactivity.html. 13. TypeOrm Documentation. TypeOrm. [Online] 2021. [Cited: September 3, 2021.] https://typeorm.io/. 14. How Millisecond Delays May Kill Database Performance. [Online] 2021. [Cited: September 6, 2021.] https://blog.packet-foo.com/2014/09/how-millisecond-delays-may-kill-database-performance/. 15. MinIO. MinIO. [Online] 2021. [Cited: September 07, 2021.] https://min.io/. 16. The Twelve Factor App. [Online] 2021. [Cited: April 9, 2021.] https://12factor.net. 17. October 2021 Web Server Survey. Netcraft. [Online] 2021. [Cited: September 28, 2021.] https://news.netcraft.com/archives/2021/10/15/october-2021-web-server-survey.html. 18. PM2 Documantation. [Online] 2021. [Cited: October 5, 2021.] https://pm2.io. 19. Jenkins Documentation. [Online] 2021. [Cited: September 23, 2021.] http://jenkins.io.