ld be used. The SD is used to differentiate between tenants with the same slice number to provide each tenant with customized processing if needed. 7.2.2 MOBILE EDGE COMPUTING Mobile edge computing is an architecture that provides computing capabilities within the network of radio accesses, as shown in Figure 7.2. Pushing cloud services to MEC servers near the access network decreases response latency and improves user experi- ence. In order to satisfy the strict QoS criteria for some services, 5G networks will benefit from MEC technology. Healthcare IoT devices have limited computing capabilities and cannot run demanding algorithms such as seizure detection algorithms. In MEC architecture, healthcare devices can offload the task of seizure detection to a MEC server. Offloading a task to the MEC server rather than the cloud has the advantage of sending an alert faster to the nearest hospital in case a seizure is detected. Offloading can also be used even if the healthcare device has enough computational power to save the devices' energy and reduce task latency. Power saving is significant for healthcare IoT devices that must have a long lifetime. This meets the goals of 5G networks in providing a better user experience and decreasing the energy consumption of services. MEC servers can also be used for aggregating and preprocessing data coming from Integrated Blockchain and MEC Systems Access Devices Layer Layer ((Q))) Server Cloud (((g))) Server (((q))) FIGURE 7.2 MEC architecture. several healthcare sensors. Aggregation of sensor data can provide more insightful analytics about each patient. Furthermore, aggregation and preprocessing of data at MEC servers reduces the size of data added to the patient record on the cloud, which reduces the traffic on the telemedicine network. The storage on MEC servers can be used to cache records of patients who have appointments to be retrieved faster by the doctors. 7.3 THE BLOCKCHAIN IN HEALTHCARE The blockchain is a distributed ledger technology that could provide a simple 