## 4 System Architecture
### Architecture Description  
#### 4.2.1 Context View  
The system context view describes the relationships, dependencies, and interactions between the system and its environment (people, systems, and external entities). Figure 2 shows the context view. Stakeholders want to know the utilities and benefits of the system to enhance their daily activities. Some examples are indicated below:  
* A doctor could immediately carry out medical follow-up and report the vital signs of a specific patient who is at home; \begin{table}
\begin{tabular}{c p{227.6 pt}} \hline \hline
**\#Req.** & **Requirements** \\ \hline R1 & Provide a wireless body area network (WBAN) to enable the collection of medical data through monitoring devices that the elderly person wears comfortably. This network must be part of a data collection component within the home and must be customizable, transparent, and non-intrusive. \\ \hline R2 & Make it easier for monitoring devices to send data to a device that acts as a gateway, which should be part of the data collection components within the home. This gateway should allow constant communication with the elderly person’s medical data collection sensors. This gateway must be customizable, transparent, and non-intrusive. \\ \hline R3 & Provide the communication components to transport the data from the monitoring process of the elderly person to the secure data repositories. \\ \hline R4 & There must be a flexible integration and communication of the different components of the system. \\ \hline R5 & Provide the distributed software services with facilities for maintaining the data of the different data entities of the system (elderly people, sensors and actuators, catalog of diets, family members, etc.) linked to the various applications for care of the health of the elderly person. \\ \hline R6 & The system must have the mechanisms for real-time control of the medical conditions of the elderly person and the generation of alerts that communicate emergencies. The emergency notifications can be used by the people who take care of the elderly person to execute the action protocols for immediate medical assistance. \\ \hline R7 & The system must have a repository for the safe storage of data: personal data of the elderly person, data of family members, medical data from monitoring, basic data of sensors or actuators, etc. This data repository must be scalable, adaptable, flexible, and support optimized data queries. \\ \hline R8 & Allow consultation of the medical data or medical condition of the elderly person remotely from anywhere/at any time, through software applications through electronic devices such as computers, tablets, or smartphones. The graphical interfaces of these software applications must be flexible and friendly. \\ \hline R9 & Provide the system with the elements for the treatment of big data. These components should have the ability to facilitate data analytics in real time and in batch mode. \\ \hline R10 & Apply security mechanisms to the entire system. \\ \hline R11 & Facilitate the development of new services and incorporate a flow of integration and deployment of software versions on the cloud computing infrastructure. \\ \hline R12 & Make the deployment of system components more flexible on a public cloud. The public cloud should facilitate the deployment and execution of containers, the management of clusters, and the automation of scaling. \\ \hline R13 & Provide reactive characteristics to obtain a flexible, low-coupling, and scalable system. A reactive system is easy to develop and upgrade, fault tolerant, and highly responsive. \\ \hline \hline \end{tabular}
\end{table} 
Table 2: System requirements. * Pharmacies may know if certain products should be provided if there are people in the area who use specific medications;
* The food stores could offer products oriented to the needs of the diets followed by elderly people;
* Medical research institutes can use the data collected by the system to develop plans that contribute to research results in the science and medicine field.