The invention provides a medical wholesale and retail comprehensive service method and
system based on
the Internet, and relates to the technical field of medicines.The medical wholesale and retail comprehensive service method comprises the steps that a hospital HIS
system is docked in real time through an API, and electronic
prescription data are collected; the collected electronic
prescription data is connected with a
medicine wholesale enterprise ERP
system, the inventory state,
batch number and validity period information of each
medicine are obtained, and inventory information is obtained. According to the invention, through real-time connection of the hospital HIS system, the
drug wholesale enterprise ERP system and the retail terminal POS system, inventory information can be obtained and
dynamic management can be carried out. The real-
time data updating not only improves the inventory turnover rate, but also can automatically warn the medicines close to the
expiration date, and reduces the loss of the expired medicines. The LSTM neural network is adopted to predict the
drug demand, and the replenishment suggestion is generated in combination with the
linear programming model, so that the replenishment process can be optimized while the operation cost is minimized, and sufficient and efficient inventory is ensured.