# IoT-Based Medical Image Monitoring System Using HL7 in a Hospital Database
## 2 Materials and Methods
### Ultrasound Machine to Raspberry Pi HL7 Messaging Process
#### 2.1.1 HL7 Block Formation and Messages
\begin{table}
\begin{tabular}{c c c} \hline \hline
**Data/Packet Size (MB)** & **Bandwidth (Mbps)** & **Response Time (s)** \\ \hline \multirow{5}{*}{5} & 1 & 43.3442083 \\ \cline{2-3}  & 5 & 12.40370939 \\ \cline{2-3}  & 10 & 8.816277328 \\ \cline{2-3}  & 15 & 7.366890492 \\ \cline{2-3}  & 20 & 3.967757723 \\ \hline \multirow{5}{*}{10} & 1 & 84.60675146 \\ \cline{2-3}  & 5 & 17.92090079 \\ \cline{2-3}  & 10 & 10.41828778 \\ \cline{2-3}  & 15 & 8.005866191 \\ \cline{2-3}  & 20 & 5.078943865 \\ \hline \multirow{5}{*}{15} & 1 & 123.7062426 \\ \cline{2-3}  & 5 & 25.7373848 \\ \cline{2-3}  & 10 & 15.89119732 \\ \cline{2-3}  & 15 & 9.30444808 \\ \cline{2-3}  & 20 & 7.922080678 \\ \hline \hline \end{tabular}
\end{table} 
Table 3: ULSM to HMS (Intranet). \begin{table}
\begin{tabular}{c c c} \hline \hline
**Data/Packet Size (Byte)** & **Bandwidth (Mbps)** & **(S) Response Time (s)** \\ \hline \multirow{2}{*}{93.2324224} & 1 & 1.25220553 \\ \cline{2-3}  & 89.36158621 & 5 & 1.726590514 \\ \hline \multirow{2}{*}{94.16620009} & 10 & 1.217828047 \\ \cline{2-3}  & 94.49036105 & 15 & 0.5540504 \\ \hline \multirow{2}{*}{89.44453449} & 20 & 0.738210043 \\ \cline{2-3}  & 10 & 10.01965412 \\ \cline{2-3}  & 15 & 8.12423431 \\ \cline{2-3}  & 20 & 6.908335693 \\ \hline \multirow{2}{*}{15} & 1 & 122.5305769 \\ \cline{2-3}  & 5 & 25.36579175 \\ \cline{2-3}  & 10 & 14.6547472 \\ \cline{2-3}  & 15 & 9.84765541 \\ \cline{2-3}  & 20 & 7.490648534 \\ \hline \hline \end{tabular}
\end{table} 
Table 5: HMS To IoT (Internet). Image transfer response time was based on NS3 for performance evaluation, and the proposed model used three metrics: throughput, packet receipt rate and received packet size. This study calculated request response time based on packet size and bandwidth to trace the data transfer protocol from source to destination on the IoT server. The outcomes are presented in Tables 3-5, where the data signify the request and response results depending on bandwidth and packet size. Furthermore, Tables 3 and 4 indicate the reaction time when packet data are sent from UISM to HMS and from HMS to FTP server, respectively. Based on the bandwidth and packet size, this study computed the response times. The data shown in Tables 3 and 4 are displayed in the line charts in Figure 13, which implies that the response time and the package time increases. Additionally, when bandwidth increases, response time decreases. Again, Table 5 shows the response time from the HMS to the IoT server. From this outcome, we can see that response time is at a minimum below 3 s and, in line with that, the response time in Figure 13c is almost constant and not dependent on bandwidth because of the minimum packet size. To decrease the response time, this model has transferred telemetry data and an encrypted image link to the IoT server where encrypted image links are below 100 bytes. Our proposed method is compared with others of the best health monitoring methods on the following criteria: (i) what types of data they are using, (ii) the machine they are collecting data from, (iii) if there is any machine-to-machine based communication, (iv) whether it supports real time monitoring, and (v) is there any IoT dashboard for displaying patient diagnostic information. Using those criteria, the proposed method is compared with other existing methods in Table 6.

With the use of the internet, we may access any LIS data from anywhere. In the IoT server, we can customize the dashboard or device access by sharing patient data in a variety of ways, including public, private, and personalized ways. Additionally, we have computed data source links using encryption, transmitted patient information, sent time data, and sent total data over time for the particular criterion. The results are based on how quickly the data are supplied to the IoT server, and the total number of images transmitted each minute. When we compare the criteria, we can see that the amount of data exchanged is dependent on time and is secure. This data line is directly connected to the ultrasonic machine.