Skip to main content

Thank you for visiting You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer). In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript.

MorbiNet: multimorbidity networks in adult general population. Analysis of type 2 diabetes mellitus comorbidity


Multimorbidity has great impact on health care. We constructed multimorbidity networks in the general population, extracted subnets focused on common chronic conditions and analysed type 2 diabetes mellitus (T2DM) comorbidity network. We used electronic records from 3,135,948 adult people in Catalonia, Spain (539,909 with T2DM), with at least 2 coexistent chronic conditions within the study period (2006–2017). We constructed networks from odds-ratio estimates adjusted by age and sex and considered connections with OR > 1.2 and p-value < 1e-5. Directed networks and trajectories were derived from temporal associations. Interactive networks are freely available in a website with the option to customize characteristics and subnets. The more connected conditions in T2DM undirected network were: complicated hypertension and atherosclerosis/peripheral vascular disease (degree: 32), cholecystitis/cholelithiasis, retinopathy and peripheral neuritis/neuropathy (degree: 31). T2DM has moderate number of connections and centrality but is associated with conditions with high scores in the multimorbidity network (neuropathy, anaemia and digestive diseases), and severe conditions with poor prognosis. The strongest associations from T2DM directed networks were to retinopathy (OR: 23.8), glomerulonephritis/nephrosis (OR: 3.4), peripheral neuritis/neuropathy (OR: 2.7) and pancreas cancer (OR: 2.4). Temporal associations showed the relevance of retinopathy in the progression to complicated hypertension, cerebrovascular disease, ischemic heart disease and organ failure.


Multimorbidity is the simultaneous presence of two or more chronic medical conditions1. It is a common problem, more than one-third of the patients visited by primary care physicians have four or more chronic health problems and a small proportion has more than ten during their life2. The prevalence is higher in older people and low socioeconomic situations3. It is associated with a poorer quality of life, more disability4 and patient safety incidents5 and a greater, almost exponential, increase in health care costs6.

Multimorbidity has raised increasing interest in the last years. It is a complex phenomenon and can be studied with network analysis. Hidalgo et al. studied phenotypic networks and found that patients with diseases highly connected tend to die sooner7. This tool has been used to identify comorbidity associated with hypertension8, chronic pulmonary obstructive disease9 or mental disease10 and to compare multimorbidity by gender11. Most of the studies used hospital databases to construct the networks. It could be useful to approach the study of multimorbidity for an individual patient focusing on an initial condition or the one with the highest impact. Thus, comorbidity networks could help to analyse multimorbidity.

There are 425 million people with diabetes in the world and the prevalence is increasing (IDF Atlas) because of the aging population and lifestyle habits12. In Spain, the adjusted prevalence for age and sex of diabetes mellitus was estimated to be 13.8% (6.0% being undiagnosed)12. Comorbidities are common in patients with T2DM13 and the proportion of diabetic patients with multimorbidity increases after diagnosis (from 32% to 80% after 16 years)14. Multimorbidty in diabetics is associated with a reduced quality of life15, increased cost16 and mortality17. Diseases associated with diabetes have widely been studied, but not using the approach of network analysis.

We aimed to construct the multimorbidity network in the general population, extract subnets focused on the most common chronic health conditions, construct an interactive website openly available to visualize the networks and analyse T2DM comorbidity network.


Study design, population and variables

We performed a retrospective longitudinal population-based study in adults in Catalonia, Spain. We used electronic health records from the Information System for Research Development in Primary Care (SIDIAP), which includes clinical data from approximately 5.5 million people, 74% of the population in Catalonia. All of them are users of the public health care system.

We included subjects aged 18 years or more with at least two coexistent chronic health conditions active any time within the period 2006–2017. Diseases were coded with the International Statistical Classification of Diseases and Related Health Problems 10th revision (ICD-10) system18 in the electronic records. ICD-10 code diagnoses were mapped to the International Classification of Primary Care, 2nd edition (ICPC-2) system19. We followed an adapted version of the list of chronic conditions based on ICPC-2 codes described by O’Halloran20. We obtained the variables: date of birth, sex, diagnosis (date of diagnosis and resolution, ICPC-2 code), tobacco and alcohol consumption, socioeconomic group, weight, height and rurality). Patient’s age was defined as the mean value between the age when the first and last diagnoses were made within the study period or the age in the middle of the period for the cases without new diagnoses made in the period.

For the T2DM comorbidity analysis, we included the patients with multimorbidity with the ICPC-2 code T90 (diabetes non-insulin dependent), originally coded in ICD-10 as E11 (type 2 diabetes mellitus).

Network construction and analysis

We used logistic regression models, adjusted by age and sex, to construct the multimorbidity networks. A relational database was developed on a server to store the variables at the individual level, with a table for patient characteristics and another one for multiple diagnoses records. We used free R software and R Igraph library to prepare database, construct the networks and obtain network parameters and node attributes. The conditions with less than 1000 patients were not included in the networks. For the patients who died or transferred to a different region, we included the data until the date of death or transfer.

The basic elements of the networks are nodes (chronic health conditions) and edges (coexistence of disease) that connect nodes within the network. Graphs are visual representations of networks, with nodes and edges. Connections are defined according to the criteria of coexistence to a greater degree than expected by the prevalence of diseases. For these criteria, thresholds were used in the association measures (odds ratios (OR) ≥ 1.2) and p-value < 1e-5 (Bonferroni correction to account for multiple tests). These filters we applied because the large sample size analysed would generate significant associations even for very small magnitudes. Edge thickness in the network plots varied proportional to OR values. We constructed non-directional networks, and also directed networks and trajectories for the specific analysis of temporal associations.

Directed networks and trajectories

We constructed directed networks to assess temporal disease associations. We identified sequential associations among pairs of diagnoses to study temporal patterns. We only considered a temporal association for probabilities below 40% or above 60% that a disease was diagnosed previously or afterward another one. Conditions diagnosed between 41 and 59% of the times before or after another one were considered to have no temporal association. Thus, a diagnosis Da was considered to precede diagnosis Db when in at least 60% of patients it took place before (sequence Da - Db). When Da was made before Db in less than 40% of the patients we assumed the sequence was Db - Da. This approach might be useful to analyse disease progression and study temporal directionality in multimorbidity.

With the directed networks for a specific disease, we constructed a trajectory. We considered only directed associations with odds ratios ≥ 1.5. The trajectory was made with the conditions connected to the disease of interest (first steps before it) and other chronic diseases connected to (up to three steps from the disease of interest).

Node attributes and network parameters

We obtained relevant node attributes such as the degree, clustering coefficient and PageRank index. The degree (Ki) measures the connectivity of the node21, as the number of links connected to node i. The clustering coefficient measures the likelihood that two nodes connected to node i are connected themselves. It is a density measure of local connections22 and shows the tendency of the network to aggregate in subgroups. It’s a number between 0 and 1, and is calculated as21:


Where ei is the number of existing links among the ki nodes that connect to node i

The pageRank measures node influence, based on the number of links it has to other nodes in the network and the links their connections have, taking into account links direction and weight.

In a directed network PageRank index for disease g, PR(g), is calculated as23:

$$PR(g)=(1-d){N}^{-1}+{\sum }_{u\in U(g)}PR(u)/{N}_{ds}(u).$$

where U(g) is the set of inbound conditions of disease g, Nds(u) is the number of outbound diseases of disease u and N is the total number of chronic conditions in the underlying network and d is a damping factor that has been set to 0.85.

In an undirected weighted network, the edges are considered as bi-directional and the classic centralities definition is applied.

Regarding the whole network, we calculated the number of nodes and edges, the clustering coefficient, diameter, density and centralization:

The Number of nodes is the number of network units and the Number of edges the number of links connecting the nodes.

The network clustering coefficient is the average of the clustering coefficients for all nodes in the network. It measures the degree to which nodes in a graph tend to cluster together.

Network diameter is the maximum distance between any two nodes in a network21:

$$Network\,Diameter=max\{{d}_{ij}|i,j{\epsilon }N\}$$

where N is the set of nodes in the network.

The network density is defined as the number of connections between nodes divided by the number of possible ties or connections22. It is a measure of the relative number of connections. It is a value between 0 and 1. A network with only isolated nodes has a density of 0. It is calculated as:

$$Density=\frac{{\sum }_{i}{\sum }_{j}{m}_{ij}}{n(n-1)}$$

where M = [mij] is the adjacency n×n matrix

Centralization is the extent to which network links are focused on one or a few nodes24. It is the difference between the number of links for each node divided by the maximum possible sum of differences. It indicates the degree to which a network approaches the configuration of a star network and is related to the degree of asymmetry. Centralization is expressed as a percentage, and it has values from 0 (every node is connected to every other node) to 100 (all nodes are connected to only one node). A centralized network will have many of its links around one or a few nodes.

Subnets focused on chronic conditions

The most common chronic conditions were zoomed, and subnets extracted from the general multimorbidity network. We analysed here the T2DM subnet with ICPC-2 codes and OR ≥ 1.2.

Quality of data and sensitivity analyses

Since this study was based on routinely collected data, and that can vary from doctor to doctor, we selected the group of patients who had recorded in their electronic health record the variables tobacco and alcohol consumption, weight and height, as a measure of better-quality records. The subgroup of patients with all these variables correctly recorded was 2,214,388 (70% from total) and was compared to the patients with any of them missing. We studied the correlations for the prevalence of diseases in both groups and only for the more infrequent chronic conditions the differences were slightly lower (for the different diseases r2 ranged from 0.94 to 0.98). The prevalence of most chronic conditions was similar in both groups. Because of this, we used the data of the entire population to construct the networks. Patients with a higher burden of disease would be expected to have more clinical information recorded. For health problems where alcohol, tobacco or weight are risk factors this information might be more carefully obtained. Older patients have more morbidity, are visited more often and have more chances to have this data in their health records. If we would have included only the patients with better quality records, we might be selecting the population with more diseases and introducing bias to the study.

As sensitivity analyses, we analysed how T2DM ICPC-2 networks changed when we modified several conditions (threshold OR value, including only the patients with more complete data versus all patients, changing the criteria to define directionality with probabilities <20% or >80% of previous/subsequent diagnosis among pairs of conditions versus <40% or >60%).


The networks and results of the study can be freely accessed on an open website25. We have developed an application where users can visualize interactively different networks according to the selection of characteristics of interest. We used Shiny free software (, R visNetwork library and R Igraph library to visualize networks and obtained descriptive and topological parameters.

The networks can be viewed with different formats to analyse the relationships among diseases. It is possible to select the disease classification system: ICD-10 with 3 digits, ICPC-2 and a simplified ICPC-2 version listed in Supplementary Table S1. It is also possible to select the minimum odds ratio considered to accept a risk association is present (ranging from 1.2 to 2) and to plot the global multimorbidity network or zoom the subnet of specific chronic conditions. It is also possible to represent protective interactions, with a maximum OR to accept them ranging from 0.8 to 0.5.

The node size shown in plots depends on the degree of the condition in the network and the node colour can be selected according to different criteria: clustering coefficient, pageRank value, system location (such as cardiovascular, respiratory…). For a chronic condition subnet, users can select the colour and the size of the nodes according to the selected attribute value in the general network or within the subnet.

The network parameters can be visualized and downloaded. These include the number of nodes and edges, diameter, shortest pathway, density, average neighbours, clustering coefficient and centralization, both for the general network or subnetwork. The degree for each node and OR for each pair of nodes can also be visualized and downloaded.

Directed networks (or subnetworks) can also be plotted for the selected disease classification system and OR value and it is possible to visualize the network descriptive parameters and node attributes.

The website also includes a tab to obtain descriptive statistics of the study population with some filtering options: gender, age group, diagnose period, tobacco use, region, rurality, and socioeconomic group.

Ethical issues

We obtained the approval from Consorci Sanitari Integral Ethics Committee (16/457) and IDIAP Jordi Gol Ethics Committee (P17/207) to conduct the study. IDIAP Jordi Gol provided the data and Consorci Sanitari Integral is the institution to which the first author is affiliated and that received funding to perform the research.

Because of the observational, retrospective and population-based design, it was not possible to obtain the informed consent from patients to use their clinical information. The data used for the analysis were completely anonymized with no variables that might allow identification of individual patients. We followed the Spanish law on the protection of personal data (LOPD 15/1999 of December 14).


We included the information of 3,135,948 patients with multimorbidity; 539,909 of them with T2DM (Fig. 1). We used the data from 2006 to 2017 to study disease associations and construct the networks, but we used 2017 information to calculate prevalences. In 2017 the prevalence of multimorbidity in patients aged 18 and over was 52.8% for chronic conditions coded with the ICPC-2 system. In Supplementary Table S2 we present it for different age and sex groups. It was higher in women for all age groups and it increased with age: 94.2% of patients aged 70 or more have multimorbidity.

Figure 1

Study population. We included the information of 3,135,948 adult patients with multimorbidity (539,909 of them with T2DM) from SIDIAP database, which contains clinical data from 73.5% of population in Catalonia, Spain.

The general multimorbidity undirected network using ICD-10 code system with 3 digits and minimum OR 1.2 had 323 nodes and 7159 edges, using ICPC-2 system it had 148 nodes and 2766 edges (Supplementary Table S3) and with the simplified ICPC-2 version it had 111 nodes and 1607 edges. Multimorbidity networks and subnetworks for specific chronic conditions can be visualized at the open website25.

The total prevalence of T2DM (ICPC-2 code: T90) in 2017 was 7.9% (8.8% in men and 6.9% in women). In the study period T2DM was present in 20.7% of men and 14.4% of women with multimorbidity (Supplementary Table S2). This percentage varied according to the age group considered and was highest in older patients and lower socioeconomic groups, though it was similar in rural and urban areas. In men with T2DM, ex-smoker was the more frequent category in tobacco use while most diabetic women were non-smokers. Tobacco use was still present in 24.15% of men and 7.4% of women with T2DM (Supplementary Table S4).

Figure 2 represents T2DM (T90 ICPC-2 code) comorbidity undirected network with chronic conditions associated with an OR ≥ 1.2. It had 38 nodes and 448 edges (see network parameters in Supplementary Table S3). The degrees of the nodes in T2DM subnets are listed in Table 1. The conditions with more connections in non-directed networks were hypertension complicated and atherosclerosis/peripheral vascular disease (both with degree 32), and cholecystitis/cholelithiasis, retinopathy and peripheral neuritis (all with degree 31). The OR values for all pairs of connected nodes are shown in Supplementary Table S5.

Figure 2

Type 2 diabetes mellitus comorbidity undirected network (OR > 1.2). It represents chronic conditions associated with an OR > 1.2. The node size shown is proportional to the degree and the colour to the pageRank index (both in the global multimorbidity network). The edges thickness is related to the OR value for the conditions connected. Thus, a big node with a dark colour has many connections and is very central in the general multimorbidity network. Abbreviations: Dis: disease; Ca: cancer; Un: unspecified. T1D: type 1 diabetes mellitus, Isch: ischemic; Ac Myoc Infarct: acute myocardial infarction; Chron: chronic; Pulm: pulmonary; HT comp: hypertension complicated; Trans: transient; ATC: atherosclerosis; fail: failure; Atr.: atrial, deg: degeneration. Figure created with the MorbiNet application v2.225,

Table 1 Degree of nodes in type 2 diabetes mellitus subnets. Abbreviations: Dis: disease, Ca: cancer, NOS: not otherwise specified.

The degree, PageRank and position the nodes of T2DM subnet have in the general multimorbidity network (calculated with all diseases), are shown in Supplementary Table S6. Some nodes of the T2DM subnet, such as peripheral neuritis/neuropathy, anaemia unspecified and diseases of digestive system, have the highest number of connections and are very central in the global multimorbidity network.

Figure 3a represents the directed T2DM network, considering the temporal associations, filtered to show only chronic conditions with an OR ≥ 1.5. It had 23 nodes and 221 edges (Supplementary Table S3). In the cases where the temporal direction is not clear, the edges are represented with a double arrow (in both directions). The edges with undefined direction are counted twice and for this reason, the number of edges is higher in directed networks as compared to undirected for the same minimum OR value. Table 2 includes the OR values for the nodes with direct links with T2DM in directed networks. The strongest associations from T2DM were to: retinopathy (OR: 23.83), glomerulonephritis/nephrosis (OR: 3.44), peripheral neuritis/neuropathy (OR: 2.70) and pancreas cancer (OR: 2.42). T2DM received the strongest connections from obesity/overweight (OR: 2.58) and ischemic heart disease with angina (1.89). The OR values for all pairs of connected nodes in each direction are shown in Supplementary Table S7. The nodes in Fig. 3b are the conditions with an OR ≥ 2 in a directed network. This network restricted to stronger associations had 11 nodes and 46 edges (Supplementary Table S3). Table 1 also included the degree of nodes in the directed T2DM subnets (in-degree or number of connections received and out-degree or connections from the considered node), both with OR ≥ 1.5 and OR > 2.

Figure 3

Type 2 diabetes mellitus comorbidity directed network for OR ≥ 1.5 (3a, left) and OR ≥ 2 (3b, right). The directed T2DM networks considers the temporal associations, filtered to show only chronic conditions with an OR ≥ 1.5 or ≥ 2 (stronger associations). In the cases where the temporal direction is not clear, the edges are represented with a double arrow (in both directions). The strongest associations from T2DM are to retinopathy, glomerulonephritis/nephrosis, peripheral neuritis/neuropathy and pancreas cancer. T2DM receives the strongest connections from obesity/overweight. Figures created with the MorbiNet application v2.225,

Table 2 Odds ratio values for T90 direct links in type 2 diabetes mellitus directed network.

In Fig. 4 we present the trajectories for T2DM, including one-step previous to diabetes and two steps from it with OR ≥ 1.5. The thickness of the arrows is proportional to the OR value. Again, the important role of retinopathy can be visualized. Some chronic conditions could be reached through different paths. Pulmonary heart disease could be directly reached (Supplementary Table S8) from 10 different previous conditions considering the trajectories up to three steps from T2DM and OR ≥ 1.5, including retinopathy, ischemic heart disease, other heart diseases, complicated hypertension, peripheral neuritis, heart failure and atrial fibrillation. Other conditions with a high number of different previous connected diseases were: atrial fibrillation/flutter and other diseases of digestive system (both with 7 different previous diseases connecting them), ischemic heart disease without angina (6 different diseases) and hypertension complicated, heart failure, chronic renal failure, and peripheral neuritis (all with 5 previous different immediate disease connections).

Figure 4

Temporal comorbid associations. We present the trajectories for T2DM, including one-step previous to diabetes and two steps from it with strong associations (OR ≥ 1.5). The thickness of the arrows is proportional to the OR value. The important role of retinopathy can be visualized. Abbreviations: dis: disease; Isch: ischemic; T2: type 2; Ac Myoc Infarct: acute myocardial infarction; chron: chronic; Pulm: pulmonary; HT comp: hypertension complicated; Trans: transient; Atheroscl: atherosclerosis; PVD: peripheral vascular disease. Figure elaborated by authors with data exported from the MorbiNet application v2.225,

As expected, the number of nodes and significant interactions increased in T2DM networks when we reduced the threshold OR value (Supplementary Table S9). For OR 2.0 there were only 11 nodes and 32 links, for OR 1.5 the network had 23 nodes and 156 links and for OR 1.2 it had 38 nodes and 439 links. For other OR values see Supplementary Table S9. All networks can be visualized in the website.

If we only included the patients with more complete data in T2DM networks the number of nodes and interactions were slightly reduced, which can be explained because the number of patients was lower and so was the statistical power. For OR 1.5, when all data were included the network had 23 nodes and 156 interactions and when we included the data with higher quality we had the same number of nodes and 150 links. For other OR values see Supplementary Table S9. Thus, this variable did not seem to have a great impact on the results.

The criterion to define direction of temporal associations in T2DM was arbitrarily set at < 40% or > 60% of previous/subsequent diagnosis among pairs of chronic conditions. When this criterion was changed to a more stringent threshold of < 20% or > 80%, there was an important reduction on the number of temporal associations identified. As can be seen in Supplementary Table S10, the number of directional associations were reduced 80% on average, similar for different OR values. This means most directional interactions for pairs of chronic conditions of T2DM networks were between probabilities of 20–40% or 60–80%. In Supplementary table S11 we included the list of directional associations using the < 20% or 80% criteria in T2DM network.


We have estimated multimorbidity associations in the general adult population and developed an interactive tool to construct and visualize them graphically, with network parameters. We used a large database, including the information of 3,135,948 adult people with multimorbidity recorded in a long period (12 years), which also allowed estimating temporal direction of the associations. This interactive application can be customized to different needs. Networks can be constructed using different classification systems and can be used both for primary or specialized care. The burden of disease should be considered globally. However, usually in the clinical practice, there is a first chronic disease that occurs, or physicians may be interested in one specific disease because it is more serious or require a more complex treatment. For this reason, it might be useful to extract the comorbidity network for that condition and visualize the diseases associated. This approach might help to analyse the multimorbidity network and to adapt it to clinical practice situations. It is possible to extract subnets for 324 chronic conditions with the ICD-10 system, and 148 chronic diseases using ICPC-2 classification. Apart from the multimorbidity network adjusted by sex and age, stratified networks for gender and different age groups can also be plotted. With this application, both health professionals and the general public can visualize and explore the relationships between diseases according to their specific interests.

We have analysed in detail the T2DM comorbidity network. Most of the conditions T2DM is connected to (Table 2, Fig. 3) are well-known complications of diabetes: retinopathy, renal disease, neuropathy, and cardiovascular disease. T2DM is an important risk factor for cardiovascular events, which is a leading cause of mortality in diabetic patients26, Essential hypertension was reported to play an important role in the association between T2DM and comorbid diseases, such as stroke and dyslipidaemia27 and it is an important risk factor for dying from diabetes28.

Retinopathy reflects the damage to microvasculature and is a marker for cerebral vascular disease29 and system diabetic vasculopathy30. Patients with severe stages of retinopathy (macular oedema or proliferative retinopathy) have an increased risk of developing cardiovascular disease31. Our results confirm patients with T2DM also have a higher risk of cataracts32 and open-angle glaucoma33.

We found T2DM to be associated with liver diseases, which includes non-alcoholic fatty liver disease. When they both coexist, the risk of complications of diabetes and more severe liver disease increases34. Non-alcoholic fatty liver disease is linked with insulin resistance which affects glucose and lipid metabolism, increasing lipogenesis and gluconeogenesis35. Diabetes has been independently associated with an increased incidence of anaemia of chronic diseases, which is normochromic and normocytic in the context of inflammatory states36. Anaemia is associated with a higher risk of death in patients with T2DM37. Atrial fibrillation-flutter also connects to T2DM (Table 2). This association has also been reported in several studies38.

Alonso-Moran et al. conducted a study in a large data set of patients with T2DM and found more risk in 21 out of 51 chronic diseases39. Our OR values are higher, which might be in part because they included older patients. They found an increased risk for emphysema-chronic bronchitis, depression, and psoriasis-eczema, but with OR values were below 1.2. This might be the reason why we did not find these associations. They obtained a reduced risk for malignancies (overall), while we obtained an increased risk for other gynaecological cancers (X77, which includes the uterus, ovarium, vagina, vulva, and others), other digestive cancers (D77, which includes mouth, oesophagus, small intestine, liver, biliary cancers and others) and pancreas cancer. T2DM is a known risk factor associated with pancreatic cancer40. A higher risk of endometrial cancer has also been observed in patients with T2DM41. Insulin resistance, chronic inflammation, and elevated free steroid hormones have been suggested as possible mechanisms involved. Some studies found an increased risk of gastric cancer in diabetes42, while others reported little or no change in the risk43.

High levels of uric acid were attributed to insulin resistance because of a reduced excretion of uric acid, and recently hyperuricemia has also been reported to have a potential role in incident diabetes44. According to our results, T2DM would precede gout more often than otherwise.

We did not find some of the associations reported by Klime et al. such as Parkinson or epilepsy, whose study included persons with diabetes who had received inpatient care45. Our study was based in general population and we focused on diseases with strong associations, with OR values at least above 1.2, which may hide real associations but with small magnitude.

Regarding directed networks, the analysis showed that both psychosis and schizophrenia precede T2DM (Table 2). Other studies have also found these comorbidities39,45. Lifestyle risk factors for diabetes were common in patients with schizophrenia (sedentarism, poor diet, obesity) and atypical neuroleptics have been associated with T2DM46.

Carpal tunnel syndrome was associated with T2DM. A meta-analysis suggests that diabetes is a risk factor for carpal tunnel syndrome, and the mechanisms of this increased risk are still being investigated47.

These networks show association, and even in the directed networks no causal link should be attributed, since diseases might be associated because they share a risk factor, pathogeny pathway, genetic links or might be caused or influenced by medication (adverse events or protective effect). Many chronic diseases might share some common underlying mechanisms which are driven by oxidative stress48.

A prevalent disease can coexist with T2DM, but it can be present no more frequently than in patients without diabetes. The networks we constructed show associations greater than those expected because of their prevalence. Some studies describe the most common comorbidities of T2DM, without considering the prevalence of diseases or having a control group and give complementary information to our results49,50,51.

Networks offer a more global picture because it includes not only direct connections but also indirect associations which give more accurate information about comorbidity. T2DM is not one of the chronic diseases with more connections. In the multimorbidity network, with ICPC-2 nodes and OR ≥1.2, the degree is 37 with position 80 out of 148. It is not very central either, its centrality PageRank index is in position 65/148. However, it is connected to nodes with a very high degree and very central in the global multimorbidity network and some of its connections include severe chronic conditions with a poor prognosis. PageRank gives information about the node centrality in the global network. A node with a high value is very connected directly or through other nodes. It connects different clusters or communalities. Pulmonary heart disease has the second-highest PageRank value in the multimorbidity network, although its prevalence is very low. Some conditions with higher prevalence are very central and have a lot of connections in the global multimorbidity network: neuropathy (highest number of connections and 4th position in centrality), anaemia (2nd in degree and 5th more central), and other digestive diseases (9th position both in number of connections and centrality). D99, other digestive system diseases, includes vascular intestine alterations, intestinal malabsorption, celiac disease, pancreas conditions, and others. Cholecystitis/cholelithiasis and cataract have also a high degree (6th and 7th position out of 148) in the general network. The causal genes of central diseases, with a major impact on multimorbidity, have the potential to influence multiple diseases52.

Because of the long study period (2006–2017), we could analyse temporal associations and draw trajectories. They show the relevance of retinopathy in the progress of T2DM. It is not only the condition with the strongest association following T2DM, in Fig. 4 we can see how many chronic diseases have direct links with origin in retinopathy. They include severe conditions with increased disability, reduced quality of life, increased mortality and important use of health resources such as complicated hypertension, cerebrovascular disease, ischemic heart disease, pulmonary heart disease and organ failure (chronic renal failure, heart failure). We have shown the key role of retinopathy. It suggests the importance to prevent it and monitor fundus exploration for early detection. We would like to note in Fig. 4 we just included the conditions with a strong association (OR ≥ 1.5), otherwise, the picture would be even more complex. Some diseases can be reached from different pathways (Supplementary Table S8), so the risk might be higher than expected if we just looked at immediate connections. Directed networks and disease trajectories consider time and can be useful to identify risk factors and complications of diseases but also study associations to other conditions that take place earlier or later in lifetime and can affect the health status.

Jansen et al. studied temporal trajectories of some chronic diseases including diabetes cluster, analysing acute and chronic conditions with hospital encounters data of a large population in 14.9 years53. They also identified the retinal disease as a keystone diagnosis marking the progression to worse conditions.


We used SIDIAP database, which contains information from 73% of the Catalan population using the public health care system. Users of private healthcare, presumably with a higher socioeconomic status and probably better health situation were not included. SIDIAP database contains information from electronic medical records. They might include diagnostic errors and some conditions might have been assigned wrong codes or not be recorded in the electronic files. This could conduct to selection bias and limit in part the extrapolation of results, although the large sample size and population-based approach probably protects against major biases.

Directed networks were constructed considering when a diagnosis was made and recorded which does not necessarily imply the moment when the disease started. A condition could have been diagnosed after another one even though it might have started before, leading to wrong temporal assumptions. An additional limitation in T2DM directional networks was the fact that most of the directional interactions were not strongly defined, since 80% of them were in the range of probabilities between 20–40% or 60–80%. That means that only 20% of the temporal associations identified had 80% or more consistency (or less than 20% temporal discordances).

Since the 2014 version, the ICD-10 descriptor for code E11 is “type 2 diabetes mellitus”. But in previous versions, at the time when a lot of the patients might have been diagnosed, the descriptor for E11 was “non-insulin dependent diabetes mellitus” and as some patients with T2DM are treated with insulin this descriptor might create confusion. For this reason, the associations between type1 and type 2 diabetes should be looked with caution.

In the networks, we included diseases associated to T2DM more than what would be expected because of their prevalence. Thus, frequent diseases can also coexist with diabetes but no more often than in patients without this condition.


We presented T2DM comorbidities with a strong association and so most of them have already been reported. Our study provides a visual representation based on a large general population and a long follow up period and shows not only direct associations but indirect ones as well as parameters that define the position of T2DM comorbidities in the global multimorbidity network. Neuropathy, anaemia and digestive diseases are comorbidities very connected and central in the general multimorbidity network. We also constructed trajectories that show temporal associations and identify the diseases with an important role in the progression of T2DM, such as retinopathy. Our open interactive website might be useful to explore multimorbidity in a customized way.

Data availability

The data that support the results of the study are available from SIDIAP. Some restrictions apply to the availability of them. They were released after the signature of a contract and can only be used for the current study, and so they are not publicly available. However, they are available from the authors upon reasonable request and with permission of SIDIAP.


  1. 1.

    Fortin, M., Bravo, G., Hudon, C., Vanasse, A. & Lapointe, L. Prevalence of multimorbidity among adults seen in family practice. Ann. Fam. Med. 3, 223–228, (2005).

    Article  PubMed  PubMed Central  Google Scholar 

  2. 2.

    Vos, R., van den Akker, M., Boesten, J., Robertson, C. & Metsemakers, J. Trajectories of multimorbidity: exploring patterns of multimorbidity in patients with more than ten chronic health problems in life course. BMC Fam. Pract. 16, 2, (2015).

    Article  PubMed  PubMed Central  Google Scholar 

  3. 3.

    Violán, C. et al. Burden of multimorbidity, socioeconomic status and use of health services across stages of life in urban areas: a cross-sectional study. BMC Public. Health 14, 530, (2014).

    Article  PubMed  PubMed Central  Google Scholar 

  4. 4.

    Williams, J. S. & Egede, L. E. The Association Between Multimorbidity and Quality of Life, Health Status and Functional Disability. Am. J. Med. Sci. 352, 45–52, (2016).

    Article  PubMed  Google Scholar 

  5. 5.

    Panagioti, M. et al. Multimorbidity and Patient Safety Incidents in Primary Care: A Systematic Review and Meta-Analysis. PLoS One 10, e0135947, (2015).

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  6. 6.

    McPhail, S. M. Multimorbidity in chronic disease: impact on health care resources and costs. Risk Manag. Healthc. Policy 9, 143–156, (2016).

    Article  PubMed  PubMed Central  Google Scholar 

  7. 7.

    Hidalgo, C. A., Blumm, N., Barabási, A. L. & Christakis, N. A. A dynamic network approach for the study of human phenotypes. PLoS Comput. Biol. 5, e1000353, (2009).

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  8. 8.

    Liu, J. et al. Comorbidity Analysis According to Sex and Age in Hypertension Patients in China. Int. J. Med. Sci. 13, 99–107, (2016).

    Article  PubMed  PubMed Central  Google Scholar 

  9. 9.

    Divo, M. J. et al. COPD comorbidities network. Eur. Respir. J. 46, 640–650, (2015).

    Article  PubMed  Google Scholar 

  10. 10.

    Goekoop, R. & Goekoop, J. G. A network view on psychiatric disorders: network clusters of symptoms as elementary syndromes of psychopathology. PLoS One 9, e112734, (2014).

    ADS  CAS  Article  PubMed  PubMed Central  Google Scholar 

  11. 11.

    Kalgotra, P., Sharda, R. & Croff, J. M. Examining health disparities by gender: A multimorbidity network analysis of electronic medical record. Int. J. Med. Inf. 108, 22–28, (2017).

    Article  Google Scholar 

  12. 12.

    International-Diabetes-Federation. (International Diabetes Federation, Brussels, Belgium, 2017).

  13. 13.

    Hermans, M. P. & Dath, N. Prevalence and co-prevalence of comorbidities in Belgian patients with type 2 diabetes mellitus: a transversal, descriptive study. Acta. Clin. Belg. 73, 68–74, (2018).

    Article  PubMed  Google Scholar 

  14. 14.

    Pouplier, S. et al. The development of multimorbidity during 16 years after diagnosis of type 2 diabetes. J Comorb 8, 2235042X18801658, (2018).

    Article  Google Scholar 

  15. 15.

    Wasem, J. et al. Co-morbidity but not dysglycaemia reduces quality of life in patients with type-2 diabetes treated with oral mono- or dual combination therapy–an analysis of the DiaRegis registry. Cardiovasc. Diabetol. 12, 47, (2013).

    Article  PubMed  PubMed Central  Google Scholar 

  16. 16.

    O’Shea, M., Teeling, M. & Bennett, K. The prevalence and ingredient cost of chronic comorbidity in the Irish elderly population with medication treated type 2 diabetes: a retrospective cross-sectional study using a national pharmacy claims database. BMC Health Serv. Res. 13, 23, (2013).

    Article  PubMed  PubMed Central  Google Scholar 

  17. 17.

    Chiang, J. I. et al. Associations between multimorbidity, all-cause mortality and glycaemia in people with type 2 diabetes: A systematic review. PLoS One 13, e0209585, (2018).

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  18. 18.

    Health, W. & Organization. ICD-10 International Statistical Classification of Diseases and Related Health Problems. 10th revision. (2016).

  19. 19.

    International, W. & Committee, C. (Oxford University Press, 1998).

  20. 20.

    O’Halloran, J., Miller, G. C. & Britt, H. Defining chronic conditions for primary care with ICPC-2. Fam. Pract. 21, 381–386, (2004).

    Article  PubMed  Google Scholar 

  21. 21.

    Zhu, X., Gerstein, M. & Snyder, M. Getting connected: analysis and principles of biological networks. Genes. Dev. 21, 1010–1024, (2007).

    CAS  Article  PubMed  Google Scholar 

  22. 22.

    Dong, J. & Horvath, S. Understanding network concepts in modules. BMC Syst. Biol. 1, 24, (2007).

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  23. 23.

    Devkota, P., Danzi, M. C. & Wuchty, S. Beyond degree and betweenness centrality: Alternative topological measures to predict viral targets. PLoS One 13, e0197595, (2018).

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  24. 24.

    Freeman, L. Vol. 1, 215–239 (Social Networks, 1978).

  25. 25.

    Aguado, A., Moratalla, F., López-Simarro, F. & Moreno, V. MorbiNet: Multimorbidity Networks in Adult General Population. MorbiNet v 2.2. Accessed 1 Oct 2019 (2019).

  26. 26.

    Danaei, G., Lawes, C. M., Vander Hoorn, S., Murray, C. J. & Ezzati, M. Global and regional mortality from ischaemic heart disease and stroke attributable to higher-than-optimum blood glucose concentration: comparative risk assessment. Lancet 368, 1651–1659, (2006).

    Article  PubMed  Google Scholar 

  27. 27.

    Kim, H. S., Shin, A. M., Kim, M. K. & Kim, Y. N. Comorbidity study on type 2 diabetes mellitus using data mining. Korean J. Intern. Med. 27, 197–202, (2012).

    Article  PubMed  PubMed Central  Google Scholar 

  28. 28.

    Collaboration, G. Bo. M. R. Ff. C. D. Cardiovascular disease, chronic kidney disease, and diabetes mortality burden of cardiometabolic risk factors from 1980 to 2010: a comparative risk assessment. Lancet Diabetes Endocrinol. 2, 634–647, (2014).

    Article  Google Scholar 

  29. 29.

    Moss, H. E. Retinal Vascular Changes are a Marker for Cerebral Vascular Diseases. Curr. Neurol. Neurosci. Rep. 15, 40, (2015).

    CAS  Article  PubMed  PubMed Central  Google Scholar 

  30. 30.

    Moss, S. E., Klein, R., Klein, B. E. & Wong, T. Y. Retinal vascular changes and 20-year incidence of lower extremity amputations in a cohort with diabetes. Arch. Intern. Med. 163, 2505–2510, (2003).

    Article  PubMed  Google Scholar 

  31. 31.

    Xie, J. et al. Association of Diabetic Macular Edema and Proliferative Diabetic Retinopathy With Cardiovascular Disease: A Systematic Review and Meta-analysis. JAMA Ophthalmol. 135, 586–593, (2017).

    Article  PubMed  PubMed Central  Google Scholar 

  32. 32.

    Li, L., Wan, X. H. & Zhao, G. H. Meta-analysis of the risk of cataract in type 2 diabetes. BMC Ophthalmol. 14, 94, (2014).

    Article  PubMed  PubMed Central  Google Scholar 

  33. 33.

    Zhou, M., Wang, W., Huang, W. & Zhang, X. Diabetes mellitus as a risk factor for open-angle glaucoma: a systematic review and meta-analysis. PLoS One 9, e102972, (2014).

    ADS  CAS  Article  PubMed  PubMed Central  Google Scholar 

  34. 34.

    Hazlehurst, J. M., Woods, C., Marjot, T., Cobbold, J. F. & Tomlinson, J. W. Non-alcoholic fatty liver disease and diabetes. Metab. 65, 1096–1108, (2016).

    CAS  Article  Google Scholar 

  35. 35.

    Samuel, V. T. & Shulman, G. I. Nonalcoholic Fatty Liver Disease as a Nexus of Metabolic and Hepatic Diseases. Cell Metab. 27, 22–41, (2018).

    CAS  Article  PubMed  Google Scholar 

  36. 36.

    Lee, Y. G. et al. Risk factors for incident anemia of chronic diseases: A cohort study. PLoS One 14, e0216062, (2019).

    Article  PubMed  PubMed Central  Google Scholar 

  37. 37.

    Gauci, R., Hunter, M., Bruce, D. G., Davis, W. A. & Davis, T. M. E. Anemia complicating type 2 diabetes: Prevalence, risk factors and prognosis. J. Diabetes Complications 31, 1169–1174, (2017).

    Article  PubMed  Google Scholar 

  38. 38.

    Tadic, M. & Cuspidi, C. Type 2 diabetes mellitus and atrial fibrillation: From mechanisms to clinical practice. Arch. Cardiovasc. Dis. 108, 269–276, (2015).

    Article  PubMed  Google Scholar 

  39. 39.

    Alonso-Morán, E. et al. Multimorbidity in people with type 2 diabetes in the Basque Country (Spain): Prevalence, comorbidity clusters and comparison with other chronic patients. Eur. J. Intern. Med. 26, 197–202, (2015).

    Article  PubMed  Google Scholar 

  40. 40.

    Liao, W. C. et al. Blood glucose concentration and risk of pancreatic cancer: systematic review and dose-response meta-analysis. BMJ 350, g7371, (2015).

    Article  PubMed  PubMed Central  Google Scholar 

  41. 41.

    Anastasi, E. et al. Linking type 2 diabetes and gynecological cancer: an introductory overview. Clin. Chem. Lab. Med. 56, 1413–1425, (2018).

    CAS  Article  PubMed  Google Scholar 

  42. 42.

    Yoon, J. M., Son, K. Y., Eom, C. S., Durrance, D. & Park, S. M. Pre-existing diabetes mellitus increases the risk of gastric cancer: a meta-analysis. World J. Gastroenterol. 19, 936–945, (2013).

    Article  PubMed  PubMed Central  Google Scholar 

  43. 43.

    Miao, Z. F. et al. Diabetes mellitus and the risk of gastric cancer: a meta-analysis of cohort studies. Oncotarget 8, 44881–44892, (2017).

    Article  PubMed  PubMed Central  Google Scholar 

  44. 44.

    King, C. et al. Uric Acid as a Cause of the Metabolic Syndrome. Contrib. Nephrol. 192, 88–102, (2018).

    Article  PubMed  Google Scholar 

  45. 45.

    Klimek, P., Kautzky-Willer, A., Chmiel, A., Schiller-Frühwirth, I. & Thurner, S. Quantification of diabetes comorbidity risks across life using nation-wide big claims data. PLoS Comput. Biol. 11, e1004125, (2015).

    ADS  CAS  Article  PubMed  PubMed Central  Google Scholar 

  46. 46.

    Suvisaari, J., Keinänen, J., Eskelinen, S. & Mantere, O. Diabetes and Schizophrenia. Curr. Diab. Rep. 16, 16, (2016).

    Article  PubMed  Google Scholar 

  47. 47.

    Pourmemari, M. H. & Shiri, R. Diabetes as a risk factor for carpal tunnel syndrome: a systematic review and meta-analysis. Diabet. Med. 33, 10–16, (2016).

    CAS  Article  PubMed  Google Scholar 

  48. 48.

    Barnes, P. J. Mechanisms of development of multimorbidity in the elderly. Eur. Respir. J. 45, 790–806, (2015).

    CAS  Article  PubMed  Google Scholar 

  49. 49.

    Iglay, K. et al. Prevalence and co-prevalence of comorbidities among patients with type 2 diabetes mellitus. Curr. Med. Res. Opin. 32, 1243–1252, (2016).

    Article  PubMed  Google Scholar 

  50. 50.

    Teljeur, C., Smith, S. M., Paul, G., Kelly, A. & O’Dowd, T. Multimorbidity in a cohort of patients with type 2 diabetes. Eur. J. Gen. Pract. 19, 17–22, (2013).

    Article  PubMed  Google Scholar 

  51. 51.

    Bralić Lang, V. & Bergman Marković, B. Prevalence of comorbidity in primary care patients with type 2 diabetes and its association with elevated HbA1c: A cross-sectional study in Croatia. Scand. J. Prim. Health Care 34, 66–72, (2016).

    Article  PubMed  PubMed Central  Google Scholar 

  52. 52.

    Amell, A. et al. Disease networks identify specific conditions and pleiotropy influencing multimorbidity in the general population. Sci. Rep. 8, 15970, (2018).

    ADS  CAS  Article  PubMed  PubMed Central  Google Scholar 

  53. 53.

    Jensen, A. B. et al. Temporal disease trajectories condensed from population-wide registry data covering 6.2 million patients. Nat. Commun. 5, 4022, (2014).

    ADS  CAS  Article  PubMed  PubMed Central  Google Scholar 

Download references


The study was funded by Instituto de Salud Carlos III, co-funded by FEDER funds –a way to build Europe, grant: PI17/01182 and the Agency for Management of University and Research Grants (AGAUR) of the Catalan Government grant 2017SGR723.

Author information




A.A. and V.M. designed the study. F.M. prepared the database, performed the statistical analysis and constructed the website. V.M. coordinated the analysis and website. A.A., F.M., F.L.S. and V.M. analysed the results. A.A. and F.L.S. wrote and edited the manuscript. All authors provided critical review of manuscript.

Corresponding authors

Correspondence to Alba Aguado or Victor Moreno.

Ethics declarations

Competing interests

The authors declare no competing interests.

Additional information

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Supplementary information

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this license, visit

Reprints and Permissions

About this article

Verify currency and authenticity via CrossMark

Cite this article

Aguado, A., Moratalla-Navarro, F., López-Simarro, F. et al. MorbiNet: multimorbidity networks in adult general population. Analysis of type 2 diabetes mellitus comorbidity. Sci Rep 10, 2416 (2020).

Download citation

Further reading


By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.


Quick links

Nature Briefing

Sign up for the Nature Briefing newsletter — what matters in science, free to your inbox daily.

Get the most important science stories of the day, free in your inbox. Sign up for Nature Briefing