1.1 Background
Hospitals play a crucial role in achieving Sustainable Development Goals (SDG) 3, "Good Health and Well-Being," by providing essential healthcare services across various domains, including communicable diseases, non-communicable diseases, mental health, maternal, newborn, and child health, as well as contributing to the realisation of universal health coverage (UHC). They ensure access to skilled healthcare professionals and necessary medical interventions (UN, 2020; WHO, 2019, 2023).
Optimising hospital establishment efficiency, particularly in staffing and resource utilisation, is critical for achieving SDG 3 objectives such as quality healthcare services, universal health coverage, and individual well-being. Especially in countries with medium and low incomes, such as African nations, there is a notable lack of financing, disparities in access to healthcare, prolonged waiting times, inadequate patient care and healthcare services in hospitals, and a delay in using generative artificial intelligence (GAI) such as ChatGPT (Er-Rays & M’dioud, 2024).
Morocco, like African countries, consumes a significant health budget for hospital network (HN), approximately 60%. Thus, monitoring the technical efficiency of hospitals is crucial for several reasons, including maximise patient care, minimise costs, enhance staff satisfaction, adapt to changing demands, and make data-driven decisions to improve health outcomes and achieve SDG 3 targets. Efficient management of medical and nursing staff ensures timely and high-quality care; predicting failures leads to avoiding or mitigating human, economic, and material losses; reducing wait times; improving patient outcomes; and improving health management quality (En-Naaoui et al., 2024). This contributes to SDG 3 by promoting good health and well-being.
Key indicators linked to the SDG 2030 in Morocco, focusing on three main areas: good health and well-being, no poverty, and sero hunger (WB, 2023). In terms of good health and well-being, Morocco has made significant progress. The maternal mortality ratio, a crucial indicator of maternal health, stands at 72 per 100,000 live births as of 2020, reflecting improvements in maternal care and healthcare access. Additionally, the under-5 mortality rate, both overall and disaggregated by gender, has declined to 18 per 1,000 live births as of 2021, indicating advancements in child health and survival. Although relatively low at 26 births per 1,000 women aged 15–19 in 2021, the adolescent fertility rate indicates the need for ongoing efforts to ensure adolescents have access to reproductive healthcare and education (WB, 2023).
In terms of poverty, Morocco shows promising trends. The poverty headcount ratio at $2.15 a day, an important measure of extreme poverty, stood at 1.4% of the population in 2013, indicating a relatively low incidence of extreme poverty. Similarly, the poverty headcount ratio at the national poverty line was 4.8% in 2013, reflecting a relatively low overall poverty rate in the country. These figures suggest that Morocco has made strides in poverty reduction efforts, although continued efforts are necessary to address the remaining pockets of poverty and inequality (WB, 2023).
Morocco faces challenges in the realm of sero hunger, but also shows progress. The prevalence of stunting, which reflects chronic malnutrition in children under 5, remained at 14.2% in 2019, indicating that a significant portion of children experience growth faltering (WB, 2023). However, efforts to combat undernourishment have shown promise, with only 6% of the population experiencing it as of 2021. Moreover, the prevalence of stunting, disaggregated by gender, shows relatively balanced rates among male and female children. These findings underscore the importance of continued investments in nutrition programmes and food security initiatives to ensure all Moroccans have access to adequate nutrition and achieve optimal health outcomes.
1.2 Up to day
Measuring the performance of healthcare systems requires the development of a conceptual framework to model system components and identify key performance indicators (Smith, Mossialos, Papanicolas, & Leatherman, 2012). This process assists stakeholders in pinpointing the information required for effective evaluation and streamlines the selection of appropriate performance metrics (Vrijens et al., 2014).
In the late 1970s, William W. Cooper, Lawrence M. Seiford (Cooper et al., 2004), and Kaoru Tone developed Data Envelopment Analysis (DEA), a non-parametric method, to measure the efficiency of decision-making units (DMUs) that convert multiple inputs into multiple outputs (Debreu, 1951) and (Koopmans, 1951).
It compares DMUs' performance to a hypothetical best-practice frontier, allowing for the assessment of relative efficiency without explicit assumptions about the underlying production process or functional form. Various fields such as economics, operations research, management science, and healthcare widely apply DEA (Cooper et al., 2000a, 2000b, 2011a, 2011b; Seiford, 1996).
Many studies show that hospitals in African countries have a low score on technical efficiency. The low levels of technical efficiency in hospitals exacerbate resource scarcity and hinder efforts to provide accessible, high-quality healthcare services in many countries (Africa WHO, 2023; Arhin et al., 2023; Babalola et al., 2022; Ibrahim et al., 2019; M. Kirigia Joses, 2015; Musoke et al., 2023). The studies conducted in Morocco (Er Rays & Ait-Lemqeddem, 2020; Er-Rays, 2021a; Er-Rays, Ait-Lemqaddem, et al., 2024; Er-Rays, M’dioud, & Ait-Lemqaddem, 2024; Er-Rays, M’dioud, Ait-Lemqeddem, et al., 2024; Er-Rays & Ait Lemqeddem, 2020b; Er-Rays & M’Dioud, 2024), Benin (Asbu et al., 2003), Ethiopia (Ali et al., 2017), Burkina Faso (Marschall & Flessa, 2009), Botswana (Tlotlego et al., 2010), and Eritrea (J. M. Kirigia & Asbu, 2013). Additionally, research has been carried out in specific regions such as KwaSulu-Natal Province, South Africa (Babalola et al., 2022); Ghana (Vukey et al., 2023); northwestern Ethiopia (Lamesgen et al., 2022); and Uganda (Mujasi et al., 2016), Egypt (Habib & Shahwan, 2020).
For example, Asbu et al. conducted a study to assess the changes in productivity of sone hospitals in Benin over five years, using the Malmquist data envelopment analysis method. Through physical visits, they collected health inputs and utilisation data from the records of sampled hospitals (Asbu et al., 2003). Marschall et Flessa proposed a study to evaluate the relative efficiency of health centres in rural Burkina Faso and investigate reasons for inefficient performance. They used data envelope analysis (DEA) to account for the situation in that country and applied the Tobit model to identify the spatial effect of the catchment area on efficiency (Marschall & Flessa, 2009). Another study for Kirigia and Asbu (2013), whose used Tobit regression analysis to figure out how inefficient public secondary level community hospitals in Eritrea are in terms of technical and scale. They also figured out how much output and/or input reductions would have to happen for hospitals to become more efficient, and they found out how institutional and contextual/environmental variables affected hospital inefficiency (J. M. Kirigia & Asbu, 2013). As for Babalola and his colleagues used data from 38 public district hospitals in KwaSulu-Natal province from 2014/15 to 2016/17. They used both constant return to scale (CRS) and variable return to scale (VRS) models to determine the technical efficiency of the hospitals.
Among these studies is the use of data envelope analysis (DEA) as the primary method for assessing efficiency. DEA allows researchers to evaluate the relative efficiency of healthcare facilities by comparing their input-output relationships. Regarding input and output variables, there is variation among the studies based on the specific context and objectives. Inputs commonly include factors such as non-salary recurrent costs, salary costs, the number of beds, and health resources. Outputs typically consist of measures related to patient care, such as neonatal admissions, outpatient visits, referrals, bed occupancy rates, average length of stay, and bed turnover rates. The analysis's orientation also differs. Some studies adopt an output-oriented approach, focusing on maximising outputs given a set of inputs. Others may take an input-oriented approach, seeking to minimise inputs while maintaining a certain level of output. Additionally, some studies explore both technical and scale efficiency, while others focus on total factor productivity or assess changes in efficiency over time using methods like the Malmquist productivity index. Despite these differences, the common thread of utilising DEA for efficiency analysis, along with consideration of inputs, outputs, and analysis orientation, underscores the importance of this method in evaluating healthcare system performance across diverse contexts.
Generally, the majority of these studies concentrate on the first stage, assessing the efficacy of either hospital-provided curative care or primary healthcare settings' preventive care. However, there remains a notable gap in the research relating to the second stage of the analysis. This phase involves comprehensively evaluating hospitals while exploring the determinants of technical efficiency or inefficiency, often using panel data methodologies. Although this study focuses on the first and second stages of DEA analysis, it is critical to acknowledge the broader landscape of research in this area.
Each study in this area adapts its approach based on the available data and the researchers' perspectives regarding the selection of input and output variables. This customisation allows for a nuanced examination of hospital effectiveness, taking into account the unique characteristics and objectives of different studies.
Additionally, it is essential to recognise the critical link between the quality of patient care and population health outcomes. Improvements in patient safety and the efficiency of hospital healthcare delivery systems have contributed significantly to improvements in overall population health metrics. The observed increase in life expectancy and decrease in infant mortality rates demonstrate this positive impact, underscoring the interdependence between hospital system performance and broader public health outcomes.
1.3 Research Gaps
The study discusses the importance of understanding healthcare hospital system efficiency through various methodologies and analyses. However, gaps in research exist in Moroccan HN.
Moroccan HN suffers from many dysfunctional regional healthcare disparities. A minority of health directorate regions (HDR), including the administrative capital Rabat-Sale-Kénitra, the economic hub Casablanca-Settat, and the touristic Marrakech-Safi HDR, host the majority of healthcare hospitals. Despite the concentration of health care in these regions, the efficient use and distribution of resources remains elusive.
As far as we know, Morocco hasn't done any research that uses the Data Envelopment Analysis (DEA) method and its parts to look at the technical efficiency of hospital networks (HN) for each HDR, as estimated by DEAP Software version 2.1 and GAI ChatGPT 3.5.
1.4 The study's purpose
The goal of this study is to look into how well DEAP Software version 2.1 and GAI ChatGPT 3.5 can be used to make HNs more efficient in each HDR in Morocco. This will be done through scientific research in the areas of health economics, econometrics, accounting, and computer sciences. Additionally, it seeks to provide valuable insights and recommendations to academics and practitioners across various healthcare sectors, including hospitals.
1.5 Motivation
The objective of this analysis is to provide significant insights into the recent improvements and capabilities of HN efficiency, with a specific focus on its effectiveness in enhancing the operational efficiency of healthcare HNs. This study seeks to stimulate discovery and innovation in the realm of healthcare efficiency by providing researchers with current information about the possibilities of improving Moroccan hospital performance.
1.6 The study's contribution
This study contributes to exploring the integration GAI in monitoring of hospital efficiency and its potential applications in HN in each HDR in Morocco settings to improve efficiency. By examining existing literature, the research aims to identify gaps, challenges, and opportunities for leveraging technical efficiency to streamline workflows and improve HN outcomes and efficiency.
1.7 Brief country profile
Morocco, a country in North Africa and the Middle East, falls into the middle-income category, a lower segment. This economic position reflects both the challenges and opportunities the country faces. Despite its strategic geographical location and rich cultural heritage, Morocco faces obstacles such as unemployment, poverty, and socio-economic inequalities. However, the Moroccan government is implementing policies aimed at stimulating economic growth, diversifying productive sectors, and improving access to education and health services. These efforts aim to create an environment conducive to sustainable development and social inclusion in order to promote a more prosperous future for all Moroccan citisens.
Morocco's healthcare system has undergone several phases over the years, reflecting evolving priorities and challenges (Errami & Cargnello, 2016; Harfaoui et al., 2024).
From 1959 to 1980, the focus was on establishing the national health system, with infrastructure development, nationalisation of resources (Ministry of Health, 2013), and initiatives against epidemics being key. Notable milestones included the creation of medical faculties, vocational training schools, and delegating healthcare responsibilities to local authorities (Espace, 2015).
From 1981 to 1995, Morocco emphasised primary healthcare, extending services, strengthening basic health structures, developing health programmes, and adopting health promotion measures. Major restructuring efforts in 1994 laid the groundwork for hospital reform, including the creation of central directorates (Ministry of Health & WHO, 2016).
Between 1996 and 2010, Morocco embarked on significant healthcare reforms, focusing on regionalisation and financing. Morocco fostered partnerships to enhance regionalisation, hospital reform, and health insurance. We initiated major projects aimed at improving hospital management, care quality, and sector financing. Legislative changes, such as Law 65 − 00, facilitated the implementation of reforms, including the Basic Medical Coverage (BMC) reform (Er-Rays & Ait-Lemqeddem, 2021; Harfaoui et al., 2024; Hazimi, 2006; Ministry of Health, 2008; UNDP, 2016).
From 2011 to 2019, Morocco focused on developing the right to health in new constitution 2011 and further reforming the healthcare system. International commitments to SDG and programmes aimed at equitable access and quality improvement were prominent. The COVID-19 pandemic prompted mobilisation efforts and further healthcare system reforms (Constitution, 2017; La Loi Cadre N° 34 − 09 Relative Au Système de Santé Et À L’offre de Soins PDF | PDF, s. d.; IRES, 2022).
Morocco is undergoing a new phase of reform from 2020 to 2024, aiming for a more efficient and equitable healthcare system. Royal directives in 2020 called for a system overhaul, while legislative measures like Framework Law 09–21 (Official Bulletin No. 6975: Implementing Framework Law no. 09.21 on Social Protection (2021), 2021) and Reform 06.22 (Official Bulletin No. 7178: Promulgating Framework Law No. 06–22 Relating to the National Health System, 2023) facilitate social security coverage generalisation and system reorganisation.
In 2022, new reforms were implemented, including the reform aimed at improving the productivity of HNs for each region, namely: the National Health System, the creation of Territorial Health Groupings (Law No. 08–22 Relating to the Creation of Territorial Health Groups. (2023), 2023), the establishment of the Health Function (Law No. 09–22 Relating to Healthcare Employment. (2023), 2023), the creation of the Moroccan Agency for Medicines and Health Products (Law No. 10–22 Relating to the Creation of the Moroccan Agency for Medicines and Health Products, 2023), the creation of the Moroccan Blood Agency and its derivatives (Law No. 11–22 Relating to the Creation of the Moroccan Agency for Blood and Blood Products. (2023), 2023), the establishment of the High Authority for Health (Law No. 07.22 Establishing the High Authority for Health. (2023), 2023), and the complete revision of the responsibilities, functions, and organisation of the central administration. While the Ministry of Health and Social Protection reorganisation aims to improve system quality and efficiency, improvement of healthcare facilities, both hospitals and primary healthcare, generalisation of medical coverage, rehabilitation of healthcare provision, strengthening of the budget of the Ministry of Public Health and Health, digitisation of the healthcare system, consolidation of health programs and epidemiological surveillance, enhancement of access to medicines and healthcare products, and assessment of digital communication activities.
The funding, legal framework, and health segmentation determine the structure of the HN in Morocco.
Hospital funding is based on a combination of public resources from the state budget as well as private funding and health insurance.
With regard to the legal framework, health areas are defined by articles 17, 18, and 19 of Decree 2-14-562. They correspond to the regions' territories, as defined by the Kingdom's administrative division. Each health region consists of two or more health prefectures and provinces and is the field of intervention of the Regional Health Directorate under the Ministry of Health (Health Card - Situation of health care provision - Year 2022: Health care provision, 2022) (Er-Rays & Ait Lemqeddem, 2020b; Er-Rays & M’Dioud, 2024) .
In terms of hospital care, the HN's health facilities include different types of facilities, such as prefectural and provincial hospitals, regional hospitals, and interregional hospitals. Psychiatric hospitals include regional, oncology centres, hemodialysis centres, neighbourhood hospitals, day clinics, excellence centres, and reference centres. There are also specialised support structures for hospital facilities, such as the National and Regional Centre for Blood Transfusions and Haematology, the National Institute of Hygiene, the National Centre for Poisoning and Pharmacovigilance, and the National Centre for Radiation Protection (Health Card - Situation of health care provision - Year 2022: Health care provision, 2022).
In terms of public hospital infrastructure in 2022, there were 159 hospitals with 25,889 beds, 11 psychiatric hospitals with 1,512 beds, and 131 hemodialysis centres equipped with 2,739 dialysis devices (Health, 2022).
In analysing the production indicators of public hospitals in Morocco, several key metrics shed light on healthcare provision and resource utilisation (Table 4). With a total population of 37,140,944, the Ministry of Health and Social Protection's budget for 2022 stands at 23,542,550,000 Moroccan Dirham (DH), representing 7.14% of the total state budget. Despite this, the global budget, as a percentage of GDP, is 1.76%. Hospital capacity, both functional and existing, is significant, with 21,455 and 27,401 beds, respectively. Admissions totaled 1,043,904, with 4,289,970 hospitalisation days and 300,162 surgical interventions (Health, 2022). Outpatient consultations average 613 per physician, while caesarean section rates stand at 18%, with instrumental and non-instrumental low-path deliveries at 37.3% and 44.7%, respectively. The average occupancy rate is 60.8%, with a mean length of stay of 4.1 days and a turnover rate of 48.7%. Each physician performs an average of 154 surgical interventions (Health, 2022). These indicators collectively offer insight into the performance and efficiency of Morocco's public hospital system in delivering healthcare services to its population.
The organisation of this paper was as follows: the next section (Section 2) presents the method adopted to develop this model by presenting the DEA method and Tobit regression steps. Section 3 describes the results of testing these two stages in a Moroccan public HN. Section 4 provides a discussion of the results.