# Smart Intravenous Infusion Dosing System
## 5 Smart IV Infusion Dosing System
### Web Application  
A web application for monitoring and displaying the state of IV infusion in real time at a remote location, for PEB and PEI chemotherapy protocol was developed. It is used to simulate the functioning of the automated system for detection and signaling of fluid levels in IV bottle from Figure 4. All patients' data are located in a centralized database on the cloud server. Thanks to this, client devices (smart mobile phones, computers, tablets, etc.) can access the data by connecting to the server via hypertext transfer protocol (HTTP). However, if the communication between the cloud server and the client is interrupted for any reason, the data is not lost but is still on the server. In addition, it is not necessary to install the application on the client to access the data, but only to enter the internet protocol (IP) address in the browser. A computer system for monitoring and displaying the current state of the IV infusion for each patient individually is located at the nurse room. The system is started after the doctor's visit, when an instruction for administering IV chemotherapy is issued and the preparation of cytostatics, accompanying drugs, and other actions such as placing IV bottles on stands near the patient are performed. Upon activation of the application, the representation of the oncology department with buttons showing patient rooms is displayed on the computer screen, as shown in Figure 6a. By selecting the appropriate button/room, a new window opens and new buttons representing patient beds in the room are displayed. The button/patient is then selected to access data on daily IV chemotherapy, as shown in Figure 6b. The left side of the screen displays the information about the selected patient and the type of chemotherapy he is receiving. For the PEB protocol, the IV bottles that the patient should receive are shown in the form of icons with numbers from 1 to 5. After the first IV bottle is emptied, the icon with number 1 turns yellow, and so on. On the right side of the screen, there is a system reset button, a scale that shows the current state of the liquid in the IV bottle and possible alarms. If the internet communication between the server and the client is interrupted, the smart IV infusion dosing system will continue working, regardless. In doing so, the data are stored on the server all the time, and after the establishment of communication, it can be accessed again. Figure 6: Web application: (**a**) home screen layout; (**b**) screen layout for the selected patient. Figure 7 shows the cloud infrastructure related to patient data protection. A multi-layered client/server application consists of a user interface (UI), an application programming interface (API), and a structured query language (SQL) server on which the database is located. The IU is located on the computer at the nurse room, while the API layer allows communication between the UI and the SQL server. In order to protect the data, it is necessary to set the UI network settings to allow only incoming traffic on port 443 (standard port for hypertext transfer protocol secure (HTTPS) traffic) from the public IP address of the hospital using the virtual private network (VPN) gateway. In addition, it is necessary to include minimum transport layer security (TLS) 1.2 encryption, as well as protection against distributed denial-of-service (DDoS) attack. Moreover, logging in to the web application should only be allowed via two-factor authentication (2 FA) using a universal serial bus (USB) token or an official smartphone. The UI communicates with the SQL database via API that receives HTTP GET and POST commands, thus protecting the database from attacks in case someone takes over the UI server. The API communicates with the UI via the REST API call, and with the database via the database (DB) contained user. An additional level of security applies to network API settings. Therefore, the API should only be visible to the UI server by port 443 (HTTPS), and to the database by port 1433 (default port for SQL server).