This study aims to assess the technical efficiency of hospital networks in each health directorate region in Morocco and analyze the impact of staff personnel health on inefficiency. The study uses Data Envelopment Analysis Programming (DEAP) software version 2.1 and generative Artificial Intelligent ChatGPT 3.5 to analyze 12 hospital network health directorate regions. Tobit regression was employed to analyze the impact of worker health and hospital activity on inefficiency. Results showed that the average technical efficiency was more inefficient in generative AI ChatGPT 3.5 than in DEAP software version 2.1. Hospital activity and nurse staffing significantly impacted inefficiency levels. The study concludes that inefficiency in hospital networks and staff personnel health pose challenges for managers in health directorate regions, emphasizing the need for New Public Management principles based on contractualization, accountability, and managerial practices.