Fig. 6 illustrates the logical architecture showing the various packages and the relations between them. All the application classes are included in the package 'com.ehealth'. We organized the system in packages detailed in Table 1 to better structure it and facilitate the understanding of its features.