A medical 
service resource optimization system based on multi-
pharmacy collaboration technology, including a virtual 
drug library as a 
data center, which collects, stores, analyzes and uses data in a standardized manner; the 
computing center can schedule intelligent optimization algorithms to calculate the inventory of multiple pharmacies in real time  , out-of-stock, etc., according to the patient's historical 
drug purchase records, etc., portray patient portraits, obtain group labels, and predict market demand; the 
situation awareness module obtains the patient's situation through sensors, etc., and the 
computing center gives "one person, one policy" personalized  Service plan; the display interface provides each member with the 
optimal decision-making plan, such as the best place for patients to take 
medicine; the feedback center supports multiple ways of taking 
medicine, such as online ordering store 
pickup, online ordering store delivery, etc., and sends them to the corresponding 
pharmacy in real time through the panel.  The invention helps to realize the service-oriented, profitable and refined pharmaceutical supply chain, optimize the allocation of medical service resources, support new medical service 
modes such as telemedicine, mobile 
medical treatment, and smart 
medical treatment, and improve the level of medical service in my country.