System, method, and program for predicting the amount of medicine dispensed

A computer system using data analytics and machine learning predicts future dispensing amounts to optimize drug ordering, addressing the inaccuracies of conventional methods and enhancing inventory management.

JP7538516B2Active Publication Date: 2024-08-22PHARMACLOUD CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2020079539
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-04-28
Publication Date
2024-08-22
Estimated Expiration
2039-10-07

AI Technical Summary

Technical Problem

Conventional drug ordering systems that rely on daily dispensing records and inventory information fail to accurately determine the appropriate amount of medicines to order, leading to excessive or insufficient inventory.

Method used

A computer system that predicts future dispensing amounts using data including day of the week, holiday flags, and machine learning models like linear regression or neural networks, coupled with inventory data to recommend optimal order quantities.

Benefits of technology

Enables accurate prediction of future dispensing needs, reducing overstocking or understocking and improving ordering efficiency by providing recommended order amounts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007538516000002
    Figure 0007538516000002
  • Figure 0007538516000007
    Figure 0007538516000007
  • Figure 0007538516000008
    Figure 0007538516000008
Patent Text Reader

Abstract

To provide a system, etc. for predicting dosages of medical products.SOLUTION: The present invention provides a computer system for predicting dosages of medical products. The computer system is configured to acquire data relating to a pharmacy (step S601), to predict dosages of medical products in the pharmacy based on data relating to the pharmacy (step S602), and to output the predicted dosages (step S603).SELECTED DRAWING: Figure 6
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a system, method, and program for predicting the amount of a drug dispensed. [Background technology]

[0002] Pharmaceutical ordering systems have existed for some time (see Patent Document 1, etc.).

[0003] Pharmacies using conventional pharmaceutical ordering systems would refer to a system that separately managed dispensing history and a system that separately managed inventory information to determine the order quantity based on that day's dispensing history and inventory information. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2001-43279 A Summary of the Invention [Problem to be solved by the invention]

[0005] However, when an orderer determines the amount of medicine to be ordered based on the day's dispensing record and inventory information, it is not possible to order the appropriate amount of medicine, which can lead to excess or shortage of inventory.

[0006] The present invention has been made in consideration of the above circumstances, and aims to provide a system for predicting the amount of medicine to be dispensed, which can support appropriate ordering of medicines. [Means for solving the problem]

[0007] The present invention provides, for example, the following items. (Item 1) 1. A computer system for predicting a dispensing amount of a pharmaceutical product, comprising: A means for obtaining data on pharmacies; A prediction means for predicting a future dispensing amount of a drug at the pharmacy based on data regarding the pharmacy; an output means for outputting the predicted dispensing amount; A computer system comprising: (Item 2) 2. The computer system of claim 1, wherein the data regarding the pharmacy includes a month of the date the drug was dispensed. (Item 3) 3. The computer system of claim 2, wherein the data regarding the pharmacy further includes the day of the week. (Item 4) The computer system according to item 2 or 3, wherein the data relating to the pharmacy further includes a next week holiday flag indicating that one week after the date is a holiday. (Item 5) The computer system according to any one of items 2 to 4, wherein the data regarding the pharmacy further includes at least one of a previous week holiday flag indicating that one week before the day is a holiday, a current day holiday flag indicating that the day before the day is a holiday, and a next day holiday flag indicating that the day after the day is a holiday. (Item 6) The computer system according to any one of items 2 to 4, wherein the data regarding the pharmacy further includes a previous week holiday flag indicating that one week before the day is a holiday, a current day holiday flag indicating that the day before the day is a holiday, and a next day holiday flag indicating that the day after the day is a holiday. (Item 7) The system according to any one of items 1 to 6, wherein the prediction means predicts the amount of medicine dispensed at the pharmacy using a trained model, and the trained model is a model that has been trained based on data regarding the pharmacy. (Item 8) The trained model is a linear regression model, The computer system according to item 7, wherein the prediction means obtains a future dispensing amount of the drug by inputting data about the pharmacy into explanatory variables of the linear regression model. 9. The computer system according to any one of items 1 to 8, wherein the prediction means predicts the dispensing amount of the medicine for at least three days from 1 day later to 3 days later. (Item 10) The acquiring means further acquires drug inventory data; The computer system further comprises a second predicting means for predicting a recommended quantity to order of the pharmaceutical product based on the predicted dispensed amount and the inventory data; 10. The computer system according to any one of items 1 to 9, wherein the output means outputs a recommended value of the predicted amount to be ordered. (Item 11) The second prediction means includes: comparing a value obtained by subtracting the predicted dispensing amount from a current inventory amount of the drug with an appropriate inventory amount of the drug; predicting a recommended amount of the drug to be ordered when a current stock amount of the drug minus the predicted dispensing amount is less than an appropriate stock amount of the drug; Item 11. The computer system of item 10, configured to perform the steps of: (Item 12) 1. A method for predicting a dispensed amount of a pharmaceutical product, comprising: Obtaining data on pharmacies; forecasting future dispensing volumes of pharmaceutical products at the pharmacy based on the data regarding the pharmacy; outputting said predicted dispensing amount; The method includes: (Item 13) A program for predicting a dispensing amount of a medicine, the program being executed in a system having a processor, the program comprising: Obtaining data on pharmacies; forecasting future dispensing volumes of pharmaceutical products at the pharmacy based on the data regarding the pharmacy; outputting said predicted dispensing amount; A program for causing the processor unit to execute a process including the steps of: (Item 14) 1. A computer system for constructing a model used to predict a drug dispensing amount, comprising: A means for obtaining data on pharmacies; A learning means for learning data related to the pharmacy as training data; A computer system comprising: (Item 15) Item 15. The computer system according to item 14, wherein the pharmacy data includes data from 4 days ago to 90 days ago. (Item 16) 1. A method for constructing a model for use in predicting a drug dispensing amount, comprising: Obtaining data on pharmacies; learning data related to the pharmacy as training data; The method includes: (Item 17) A program for constructing a model used to predict a dispensing amount of a drug, the program being executed in a system having a processor, the program comprising: Obtaining data on pharmacies; learning data related to the pharmacy as training data; A program for causing the processor unit to execute a process including the steps of: Effect of the Invention

[0008] According to the present invention, it is possible to provide a system for predicting the amount of medicine to be dispensed. By utilizing this system in a medicine ordering system, it is possible to recommend an appropriate order amount and to support appropriate ordering of medicines. [Brief description of the drawings]

[0009] [Figure 1] FIG. 13 is a diagram showing an example of a screen displayed on a terminal device of a dispensing pharmacy that uses a service for supporting ordering medicines. [Figure 2A]FIG. 1 is a diagram showing an example of the configuration of a computer system 100 for predicting the amount of a drug dispensed. [Figure 2B] FIG. 1 is a diagram showing an example of a specific configuration of a computer system 100 for predicting a dispensed amount of a medicine. [Figure 3A] FIG. 2 is a diagram showing an example of a data configuration of prescription data stored in the database unit 200. [Figure 3B] FIG. 13 is a diagram showing another example of the data structure of prescription data stored in the database unit 200. [Figure 4A] FIG. 2 shows an example of the configuration of a processor unit 120. [Figure 4B] FIG. 2 shows an example of the configuration of a processor unit 120′ which is an alternative embodiment of the processor unit 120. [Diagram 5] FIG. 12 is a diagram showing an example of the structure of a neural network 1220 that can be used by the prediction means 122. [Figure 6] 1 is a flowchart showing an example of a process in a computer system 100 for predicting the amount of a drug dispensed. [Figure 7] 1 is a flowchart showing an example of a process in a computer system 100 for predicting the amount of a drug dispensed. [Figure 8] 1 is a flowchart showing an example of a process in a computer system 100 for predicting the amount of a drug dispensed. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

[0011] 1. New service to support ordering of medicines The inventor of the present invention has developed a new service to support ordering of medicines. One of the services is a service that presents the orderer with the future dispensing amount at a dispensing pharmacy in order to support the orderer in deciding which medicines to order. In this service, for example, the dispensing amount of medicine that can be dispensed on the day after the order date is presented to the orderer. By using this service, the orderer can decide the order amount taking into account the future dispensing amount. This improves the accuracy of ordering and makes it possible to avoid excess or insufficient inventory.

[0012] This service can also present the purchaser with a recommended order quantity for the medicine. By using this service, purchasers can reduce the burden of ordering work.

[0013] 1 shows an example of a screen displayed on a terminal device of a dispensing pharmacy that uses a service for supporting drug ordering. For example, in order to use the service for supporting drug ordering, the terminal device of the dispensing pharmacy can install an application for supporting drug ordering and start the application, or access a server that provides a web application for supporting drug ordering and start the web application. That is, the terminal device of the dispensing pharmacy can use the service for supporting drug ordering offline or online.

[0014] The ordering process at a dispensing pharmacy is a routine task carried out daily to prevent stockouts and excess inventory and to maintain an appropriate level of inventory. The ordering party places an order for pharmaceuticals after the close of business on that day.

[0015] Screen 10 shown in FIG. 1 is a screen for ordering medicines. On screen 10, medicines dispensed on that day are automatically displayed as medicines to be ordered. This means that the orderer does not need to pick up the medicines to be ordered from a medicine list. This also prevents omissions in ordering medicines.

[0016] The screen 10 has a drug information display field 11, a current drug dispensing amount display field 12, an inventory amount display field 13, and a predicted drug dispensing amount display field 14. The screen 10 further has, for each drug, a check box 15, a quantity input field 16, and a supplier input field 17. The screen 10 also has an order execution button 18.

[0017] The pharmaceutical information display field 11 displays information about each pharmaceutical. The pharmaceutical information is, for example, information about the pharmaceutical being sold, such as the pharmaceutical name, packaging unit (package), drug price per packaging unit (packaged drug price), sales company, drug price, etc. For example, in the example shown in FIG. 1, it is displayed that the pharmaceutical name "Zyzal Tablets 5 mg" has a packaging unit of 10 tablets x 10 PTPs, a drug price per packaging unit of 8,780 yen, is sold by GSK, and is 87.8 yen per tablet.

[0018] The dispensed amount for each drug on that day is displayed in the dispensed amount display field 12. For example, in the example shown in FIG. 1, it is displayed that the dispensed amount for that day of "Alamist nasal solution 27.5 μg 56 sprays" is 1 kit, the dispensed amount for that day of "Clarithromycin tablets 200 mg 'Towa'" is 14 tablets, the dispensed amount for that day of "Xyzal tablets 5 mg" is 7 tablets, and the dispensed amount for that day of "Singulair tablets 10 mg" is 7 tablets. The orderer can check the dispensing record for that day just by looking at the dispensed amount display field 12 for that day on the screen 10, without having to access a system that separately manages the dispensing record.

[0019] The inventory display field 13 displays the inventory of each drug on that day, that is, the inventory after the business hours of that day. The inventory may be displayed, for example, as an absolute amount or as a relative amount to the appropriate inventory amount. In the example shown in FIG. 1, the inventory is displayed as a relative amount to the appropriate inventory amount. For example, in the example shown in FIG. 1, the inventory amount of "Alamist nasal solution 27.5 μg 56 sprays" on that day is displayed as (appropriate inventory amount - 1 kit), the inventory amount of "clarithromycin tablets 200 mg 'Towa'" on that day is displayed as (appropriate inventory amount + 12 tablets), the inventory amount of "Zyzal tablets 5 mg" on that day is displayed as (appropriate inventory amount - 7 tablets), and the inventory amount of "Singulair tablets 10 mg" on that day is displayed as (appropriate inventory amount - 7 tablets). The purchaser can check the inventory amount of that day just by looking at the inventory display field 13 on the screen 10 without having to access a system that separately manages inventory information. The appropriate inventory amount is a value set for each drug and can be set by the purchaser.

[0020] The predicted dispensing amount display field 14 displays the predicted dispensing amount for each medicine for the next day. For example, in the example shown in FIG. 1, the predicted dispensing amount for the next day of "Alamist nasal solution 27.5 μg 56 sprays" is displayed as 3 kits, the predicted dispensing amount for the next day of "Clarithromycin tablets 200 mg 'Towa'" is displayed as 5 tablets, the predicted dispensing amount for the next day of "Xyzal tablets 5 mg" is displayed as 18 tablets, and the predicted dispensing amount for the next day of "Singulair tablets 10 mg" is displayed as 10 tablets. The orderer can check the predicted dispensing amount for the next day simply by looking at the predicted dispensing amount display field 14 on the screen 10.

[0021] The check box 15 is operated to select a medicine to actually order from the medicines to be ordered displayed on the screen 10. For example, by checking the check box 15, that medicine becomes the one to be ordered.

[0022] The quantity input field 16 is a field for inputting the quantity of the medicine to be ordered. For example, the quantity may be inputted into the quantity input field 16 by keying in the quantity, or the quantity may be inputted by selecting the quantity from a pull-down list.

[0023] The supplier input field 17 is a field for inputting the supplier of the pharmaceutical product to be ordered. For example, the supplier may be input into the supplier input field 17 by keying, or the supplier may be input by selecting the supplier from a pull-down list.

[0024] The order execution button 18 is a button that is operated to execute an order. For example, by using the check boxes 15, the quantity input field 16, and the supplier input field 17 to determine the medicine to be ordered, the order quantity, and the supplier, the order execution button 18 is operated to execute the order for the medicine.

[0025] Since the information required for ordering is collected on screen 10, the orderer can complete the ordering work of medicines simply by using screen 10. The orderer can easily decide how much of the medicine to be ordered displayed on screen 10 should be ordered, for example, by considering the dispensing amount displayed in the today's dispensing amount display field 12, the stock amount displayed in the stock amount display field 13, and the predicted dispensing amount displayed in the predicted dispensing amount display field 14. This can reduce the time required for ordering work. In addition, the accuracy of ordering is improved, and excess or insufficient stock can be avoided.

[0026] In another example, a recommended amount of the medicine to be ordered may be displayed by default in the quantity input field 16. This allows the purchaser to easily place an order by simply accepting the recommended amount displayed by default, which also reduces the time required for ordering and helps to prevent excess or insufficient inventory.

[0027] The new service for supporting drug ordering described above can be realized, for example, by a computer system for predicting the amount of drug dispensed, which will be described below.

[0028] 2. Configuration of a computer system for predicting the amount of medicine dispensed FIG. 2A illustrates an example of a configuration of a computer system 100 for predicting the amount of a drug dispensed.

[0029] The computer system 100 is connected to a database unit 200. The computer system 100 is also connected to at least one pharmacy terminal device 300 via a network 400.

[0030] The network 400 may be any type of network. For example, the network 400 may be the Internet or a LAN. The network 400 may be a wired network or a wireless network.

[0031] An example of the computer system 100 is a computer (e.g., a server device) installed in a service provider that provides a new service to support ordering of medicines, but is not limited thereto. An example of the pharmacy terminal device 300 is a computer (e.g., a terminal device) installed in a dispensing pharmacy, but is not limited thereto. For example, the pharmacy terminal device 300 may be connected to a receipt computer system (not shown) that manages dispensing data via a network. The receipt computer system may be located, for example, within a local network of the dispensing pharmacy to which the pharmacy terminal device 300 is connected, or may be located outside the local network of the dispensing pharmacy. In the latter case, the receipt computer system may be connected to the pharmacy terminal device 300 via a network 400. Here, the computer (server device or terminal device) may be any type of computer. For example, the terminal device may be any type of terminal device such as a smartphone, a tablet, a personal computer, or smart glasses.

[0032] In the database unit 200, for example, data relating to a pharmacy transmitted from at least one pharmacy terminal device 300 can be stored.

[0033] FIG. 2B shows an example of a specific configuration of a computer system 100 for predicting the amount of a drug dispensed.

[0034] The computer system 100 includes an interface section 110, a processor section 120, and a memory section .

[0035] The interface unit 110 exchanges information with the outside of the computer system 100. The processor unit 120 of the computer system 100 can receive information from the outside of the computer system 100 and can transmit information to the outside of the computer system 100 via the interface unit 110. The interface unit 110 can exchange information in any format.

[0036] The interface unit 110 includes, for example, an input unit that allows information to be input to the computer system 100. It does not matter in what manner the input unit allows information to be input to the computer system 100. For example, if the input unit is a touch panel, the user may input information by touching the touch panel. Alternatively, if the input unit is a mouse, the user may input information by operating the mouse. Alternatively, if the input unit is a keyboard, the user may input information by pressing a key on the keyboard. Alternatively, if the input unit is a microphone, the user may input information by inputting voice into the microphone. Alternatively, if the input unit is a camera, the information captured by the camera may be input. Alternatively, if the input unit is a data reading device, the information may be input by reading information from a storage medium connected to the computer system 100. Alternatively, if the input unit is a receiver, the receiver may input information from outside the computer system 100 via a network.

[0037] The interface unit 110 includes, for example, an output unit that enables information to be output from the computer system 100. It does not matter in what manner the output unit enables information to be output from the computer system 100. For example, when the output unit is a display screen, the information may be output on the display screen. Alternatively, when the output unit is a speaker, the information may be output by voice from the speaker. Alternatively, when the output unit is a data writing device, the information may be output by writing the information to a storage medium connected to the computer system 100. Alternatively, when the output unit is a transmitter, the information may be output by the transmitter transmitting the information to the outside of the computer system 100 via a network. For example, the output unit of the interface unit 110 can transmit information to the pharmacy terminal device 300 via the network 400 and display the information on the output unit (for example, a display screen) of the pharmacy terminal device 300. For example, a screen such as the screen 10 in FIG. 1 can be displayed on the display screen of the pharmacy terminal device 300. The output unit of the interface unit 110 can output, for example, a dispensing amount predicted by the processor unit 120. In one embodiment, the output of the interface unit 110 may output, for example, a recommendation of the quantity of the medication to be ordered as predicted by the processor unit 120 .

[0038] The processor unit 120 executes the processing of the computer system 100 and controls the operation of the entire computer system 100. The processor unit 120 reads out a program stored in the memory unit 130 and executes the program. This makes it possible for the computer system 100 to function as a system that executes desired steps. The processor unit 120 may be implemented by a single processor or by multiple processors.

[0039] The memory unit 130 stores a program required to execute the processing of the computer system 100, data required to execute the program, and the like. The memory unit 130 may store a program for causing the processor unit 120 to execute a process for predicting the dispensing amount of a medicine (for example, a program for realizing the processes shown in Figs. 6, 7, and 8 described later). Here, there is no limit to how the program is stored in the memory unit 130. For example, the program may be pre-installed in the memory unit 130. Alternatively, the program may be installed in the memory unit 130 by being downloaded via a network. In this case, the type of network does not matter. The memory unit 130 may be implemented by any storage means.

[0040] The database unit 200 may store, for example, data related to pharmacies. The database unit 200 may store data related to pharmacies transmitted via the network 400 by the pharmacy terminal device 300 of each pharmacy or an associated receipt computer system.

[0041] The data related to the pharmacy includes, for example, dispensing data related to dispensing at the pharmacy. The dispensing data includes, for example, data on which pharmacy dispensed which medicine to which patient, when, and how much, and is generated for each dispensing by the receipt computer system of each pharmacy. The dispensing data may include, for example, a pharmacy ID, a patient ID, dispensing date and time, a medicine ID, and a dispensed amount. For example, the dispensing date and time may be in any unit, such as seconds, minutes, hours, days, or weeks, but is preferably in days in order to predict the daily dispensing amount. For example, the medicine ID may be a dispensing unit code that is associated one-to-one with the medicine, such as a YJ code.

[0042] The prescription data may further include the month (January, February, March, . . . etc.) and day of the week (Sunday, Monday, Tuesday, Wednesday, . . . etc.) on which the prescription was dispensed.

[0043] The dispensing data may further include a holiday flag. The holiday flag is a flag indicating that a specific day is a holiday. The holiday flag includes, for example, a current day holiday flag indicating that the day dispensed (dispensing day) is a holiday, a next week holiday flag indicating that one week after the dispensing day is a holiday, a previous week holiday flag indicating that one week before the dispensing day is a holiday, a next day holiday flag indicating that the day after the dispensing day is a holiday, and a previous day holiday flag indicating that the day before the dispensing day is a holiday. Here, a holiday may include a day when the pharmacy is closed (store holiday) in addition to a holiday in the general sense defined by law.

[0044] The data on the pharmacy may include, for example, weather information on the day the prescription was dispensed (e.g., temperature, humidity, etc.), the amount of pollen dispersed on the day the prescription was dispensed, the number of patients with a particular disease on the day the prescription was dispensed (e.g., the number of influenza patients), and if the particular disease is viral, the virus type (e.g., influenza virus type). For example, the number of influenza patients may use information published by the National Institute of Infectious Diseases. The data on the pharmacy may include, for example, location information / location conditions of the pharmacy (e.g., distance from a station, distance from a hospital, etc.), and location information / location conditions of hospitals around the pharmacy (e.g., distance from a station, surrounding population density, etc.).

[0045] The database unit 200 may further store, for example, order data. The order data is data generated for each order. The order data includes, for example, an order unit code, order date and time, order amount, order destination, etc. The order unit code is a code that is associated one-to-one with a packaging unit (order unit), and may be, for example, a GTIN (Global Trade Item Number) code or a JAN code.

[0046] The database unit 200 may further store, for example, inventory data. The inventory data includes, for example, information indicating the current inventory amount and the appropriate inventory amount of the pharmacy. The current inventory amount may be calculated, for example, based on the initial inventory amount, the dispensing data, and the order data. For example, since the outgoing amount is known from the dispensing data and the incoming amount is known from the inventory data, the current inventory amount is calculated by cumulatively calculating the relationship between the initial inventory amount and the incoming and outgoing amounts. This eliminates the need to perform frequent inventory checks, and reduces the effort required for inventory management. Of course, the current inventory amount may be the result of an actual inventory check. The appropriate inventory amount is a value set for each medicine and can be set by each pharmacy.

[0047] Fig. 3A shows an example of the data configuration of the prescription data stored in the database unit 200. Fig. 3A shows an example of prescription data 310 generated for each prescription.

[0048] For example, the receipt computer system generates data 310 by assigning an ID (8ze2g4, ixd6f3, v89smz, etc. in the example shown in FIG. 3A) to each dispensing. For example, the receipt computer system can generate dispensing data 310 by parsing input receipt data. The generated dispensing data 310 is sent to the database unit 200 and stored for each dispensing. Each dispensing data 310 includes items such as dispensing date and time, pharmacy ID, drug ID, patient ID, and dispensed amount.

[0049] Fig. 3B shows another example of the data structure of the dispensing data stored in the database unit 200. Fig. 3B shows data 320 in which the dispensing data 310 shown in Fig. 3A is aggregated for each pharmacy and for each drug.

[0050] In the example shown in Figure 3B, dispensing data 310 for a pharmacy with pharmacy ID: 5DJ1, dispensing data 310 for a pharmacy with pharmacy ID: J7F5, and dispensing data 310 for a pharmacy with pharmacy ID: E1XH are aggregated. The dispensed volume subtotal represents the total dispensed volume of a particular drug dispensed at that pharmacy on that day.

[0051] The above-mentioned data examples are merely examples, and the database unit 200 may store any other data.

[0052] In the example shown in FIG. 2A and FIG. 2B, the database unit 200 is provided outside the computer system 100, but the present invention is not limited to this. It is also possible to provide at least a part of the database unit 200 inside the computer system 100. In this case, at least a part of the database unit 200 may be implemented by the same storage means as the storage means implementing the memory unit 130, or may be implemented by a storage means different from the storage means implementing the memory unit 130. In any case, at least a part of the database unit 200 is configured as a storage unit for the computer system 100. The configuration of the database unit 200 is not limited to a specific hardware configuration. For example, the database unit 200 may be configured as a single hardware part, or may be configured as a plurality of hardware parts. For example, the database unit 200 may be configured as an external hard disk device of the computer system 100, or may be configured as a cloud storage connected via a network.

[0053] For example, instead of computer system 100 receiving the dispensing data from database unit 200, it is also within the scope of the present invention that computer system 100 is connected to a prescription computer system (not shown) via interface unit 110 and receives the dispensing data directly from the prescription computer system.

[0054] FIG. 4A shows an example of the configuration of the processor unit 120.

[0055] The processor unit 120 includes an acquisition unit 121 and a prediction unit 122 .

[0056] The acquiring means 121 is configured to acquire data related to pharmacies. The data related to pharmacies includes, for example, dispensing data. The dispensing data includes, for example, data on which pharmacy dispensed what medicine, how much, and when to which patient. The dispensing data may have, for example, a data structure as described above with reference to FIG. 3A or a data structure as described above with reference to FIG. 3B.

[0057] The acquiring means 121 may, for example, perform filtering using a time stamp given to the data related to the pharmacy or a dispensing date and time in the dispensing data, and acquire only data related to the pharmacy within a predetermined date and time in the past or a predetermined period. For example, the acquiring means 121 may acquire only data related to the pharmacy from one week to one year before the dispensing date, for example, data related to the pharmacy from 14 days before the dispensing date, data related to the pharmacy from 30 days before the dispensing date, data related to the pharmacy from 60 days before the dispensing date, data related to the pharmacy from 90 days before the dispensing date, or data related to the pharmacy from 180 days before the dispensing date. For example, the acquiring means 121 may acquire only data related to the pharmacy from 4 days to one week before the dispensing date, for example, data related to the pharmacy from 4 days to 14 days before the dispensing date, data related to the pharmacy from 4 days to 30 days before the dispensing date, data related to the pharmacy from 4 days to 60 days before the dispensing date, data related to the pharmacy from 4 days to 90 days before the dispensing date, or data related to the pharmacy from 4 days to 180 days before the dispensing date. For example, it is preferable that the acquisition means 121 acquires data on pharmacies for 90 days prior to the dispensing date, or data on pharmacies between 4 days prior to the dispensing date and 90 days prior to the dispensing date. This is because 90 days is the maximum number of days for which a drug can be prescribed, the data up to 90 days prior best reflects dispensing trends, and by using data on pharmacies up to 90 days prior for learning, the accuracy of prediction by the prediction means 122 described below is improved.

[0058] The acquiring means 121 may acquire, for example, data related to a pharmacy stored in the database unit 200 via the communication interface unit 110. Alternatively, the acquiring means 121 may acquire data related to a pharmacy received from the pharmacy terminal device 300 or an associated receipt computer system via the communication interface unit 110. The acquired data related to a pharmacy is passed to the determining means 122.

[0059] The acquiring means 121 may further be configured to acquire order data. The order data is data generated for each order. The acquiring means 121 may further be configured to acquire inventory data including information indicating the inventory of the dispensing pharmacy. The inventory data may be, for example, data that may be generated for each inventory check, or may be, for example, data calculated based on the initial inventory amount, the dispensing data, and the order data. The acquiring means 121 may, for example, filter using date and time information in the order data or the inventory data to acquire only the order data or inventory data for a specific date and time or period. This makes it possible to handle only the inventory data as of the day on which the drug is to be ordered, thereby reducing the subsequent processing load.

[0060] The acquiring means 121 may, for example, acquire order data and / or inventory data stored in the database unit 200 via the communication interface unit 110. The acquired order data and inventory data may be passed to the conversion means 123 for further processing.

[0061] The prediction means 122 is configured to predict the amount of medicine dispensed at the pharmacy based on the data regarding the pharmacy acquired by the acquisition means 121, for example.

[0062] In one embodiment, the prediction means 122 can predict the amount of medicine dispensed in the pharmacy by using, for example, machine learning. The prediction means 122 may predict the amount of medicine dispensed in the pharmacy by, for example, machine learning using a linear regression model. The linear regression model is a trained model that has been trained in advance using the data acquired by the acquisition means 121. The linear regression model may be defined for each medicine.

[0063] For example, the linear regression model y for drug i i teeth, y i =w1x1+w2x2+···+w k x k +α In the learning process based on the data acquired by the acquisition means 121, for example, the month of the dispensing date, the day of the week of the dispensing date, and the holiday flag for the dispensing date among the data related to the pharmacy are used as the explanatory variable x k The subtotal of dispensing volume among the pharmacy data is the objective variable y i As the coefficient w k For example, the month, day of the week, and holiday flag of a certain prescription date are determined as explanatory variables x k The subtotal of the prescription amount on the day after the prescription date is the objective variable y i The trained model constructed above is a trained model capable of predicting the amount of prescription for the next day. For example, if the month, day of the week, and holiday flag for a certain prescription date are set as explanatory variables x k The subtotal of the prescription amount on the day after the prescription date is the objective variable y iThe constructed trained model is a trained model capable of predicting the dispensing amount on the day after the next day. In this way, by changing the dispensing amount subtotal used for learning according to the future day for which the dispensing amount is to be predicted, a trained model capable of predicting the dispensing amount on a desired future day can be constructed. At this time, a trained model specific to the pharmacy (dedicated trained model) may be constructed using data related to the pharmacy acquired from a specific pharmacy, or a general trained model (general-purpose trained model) may be constructed using data related to the pharmacy acquired from an unspecified pharmacy. For example, in the learning process, the data related to the pharmacy may be preprocessed, and then the trained model may be constructed using the data related to the pharmacy that has been preprocessed. As the preprocessing, any processing can be performed. For example, the dispensing amount subtotal used in the objective variable may be increased or decreased based on the presence or absence of a holiday flag. This may enable a more precise prediction that corresponds to the specific fluctuation in demand for medicines and the required inventory amount due to seasonal factors such as the end of the month or the end of the year.

[0064] For example, when data relating to the pharmacy for that day obtained in the operation phase is input into the explanatory variables of a trained linear regression model capable of predicting the dispensing volume for the next day, the predicted dispensing volume for the next day can be output.For example, when data relating to the pharmacy for that day obtained in the operation phase is input into the explanatory variables of a trained linear regression model capable of predicting the dispensing volume for the day after that, the predicted dispensing volume for the day after that can be output.

[0065] The prediction means 122 may predict the amount of the medicine dispensed in the pharmacy by machine learning using a neural network, for example. A neural network may be defined for each medicine.

[0066] FIG. 5 shows an example of the structure of a neural network 1220 that the predictor 122 may use.

[0067] The neural network 1220 has an input layer, at least one hidden layer, and an output layer. The number of nodes in the input layer of the neural network 1220 corresponds to the number of dimensions of the input data. The hidden layer of the neural network 300 can include any number of nodes. The number of nodes in the output layer of the neural network 1220 corresponds to the number of dimensions of the output data. For example, when predicting the dispensing amount of a medicine on the next day, the dispensing amount two days later, and the dispensing amount three days later, the number of nodes in the output layer is three.

[0068] The neural network 1220 may be subjected to a learning process in advance using the data acquired by the acquisition means 121. The learning process is a process of calculating a weight coefficient of each node in a hidden layer of the neural network 1220 using the data acquired by the acquisition means 121. In the learning process, for example, data related to a pharmacy (e.g., the month of the day on which the medicine was dispensed, the day of the week on which the medicine was dispensed, the holiday flag of the week after the day on which the medicine was dispensed, the holiday flag of the week before the day on which the medicine was dispensed, the holiday flag of the day on which the medicine was dispensed, the holiday flag of the day after the day on which the medicine was dispensed, the subtotal of the amount of the medicine dispensed, etc.) is used as input teacher data, and the subtotal of the amount of the medicine dispensed the next day is used as output teacher data, and a learned model capable of predicting the amount of the medicine dispensed the next day is constructed by calculating a weight coefficient of each node in the hidden layer of the neural network 1220 using a plurality of data within a predetermined period (e.g., 90 days, or 87 days from 4 days before to 90 days before, etc.). In the learning process, for example, data on the pharmacy on the day the medicine was dispensed is used as input training data, and the subtotal of the dispensing amount the next day, the subtotal of the dispensing amount two days later, and the subtotal of the dispensing amount three days later are used as output training data, and a weight coefficient for each node in the hidden layer of neural network 1220 is calculated using a plurality of data within a predetermined period, thereby constructing a trained model capable of predicting the dispensing amount the next day, two days later, and three days later. At this time, a trained model specific to a specific pharmacy (dedicated trained model) may be constructed using data on a pharmacy acquired from a specific pharmacy, or a general trained model (general-purpose trained model) may be constructed using data on a pharmacy acquired from an unspecified pharmacy.

[0069] For example, when constructing a trained model capable of predicting the next day's dispensed amount for Losartan Potassium Tablets 25 mg "Amel" represented by pharmaceutical ID: 622144801 using the data shown in Figure 3B, the set of (input training data, output training data) for constructing a trained model specific to Pharmacy A represented by pharmacy ID: 5DJ1 may be (data for Pharmacy A on September 10, 2019, subtotal of dispensed amount at Pharmacy A on September 11, 2019), (data for Pharmacy A on September 9, 2019, subtotal of dispensed amount at Pharmacy A on September 10, 2019), ... (data for Pharmacy A on June 12, 2019, subtotal of dispensed amount at Pharmacy A on June 13, 2019), etc. In this case, the set of (input training data, output training data) for constructing a general trained model is (data for Pharmacy A on September 10, 2019, subtotal of dispensed amount at Pharmacy A on September 11, 2019), (data for Pharmacy B on September 10, 2019, subtotal of dispensed amount at Pharmacy B on September 11, 2019), ... (data for Pharmacy A on September 9, 2019, 2 (data for Pharmacy B on September 9, 2019, subtotal of dispensed volume at Pharmacy B on September 10, 2019), ···(data for Pharmacy A on June 12, 2019, subtotal of dispensed volume at Pharmacy A on June 13, 2019), (data for Pharmacy B on June 12, 2019, subtotal of dispensed volume at Pharmacy B on June 13, 2019), ···, etc.

[0070] For example, when building a trained model capable of predicting the dispensing amount the next day, two days later, and three days later for Losartan Potassium Tablets 25 mg "Amel" represented by Drug ID: 622144801 using the data shown in Figure 3B, the set of [input training data, output training data] for building a trained model specific to Pharmacy A represented by Pharmacy ID: 5DJ1 is [Data for Pharmacy A on September 8, 2019, (Subtotal Dispensing Amount at Pharmacy A on September 9, 2019, Data for Pharmacy A on September 10, 2019, the subtotal dispensing volume at Pharmacy A on September 11, 2019)], [data for Pharmacy A on September 7, 2019, (subtotal dispensing volume at Pharmacy A on September 8, 2019, subtotal dispensing volume at Pharmacy A on September 9, 2019, subtotal dispensing volume at Pharmacy A on September 10, 2019)], ···[data for Pharmacy A on June 10, 2019, (subtotal dispensing volume at Pharmacy A on June 11, 2019, subtotal dispensing volume at Pharmacy A on June 12, 2019, subtotal dispensing volume at Pharmacy A on June 13, 2019)], etc.In this case, the set of [input training data, output training data] for constructing a general trained model is as follows: [data for Pharmacy A on September 8, 2019, (subtotal of dispensing volume at Pharmacy A on September 9, 2019, subtotal of dispensing volume at Pharmacy A on September 10, 2019, subtotal of dispensing volume at Pharmacy A on September 11, 2019)], [data for Pharmacy B on September 8, 2019, (subtotal of dispensing volume at Pharmacy A on September 9, 2019, subtotal of dispensing volume at Pharmacy B on September 10, 2019, subtotal of dispensing volume at Pharmacy B on September 11, 2019)], ... [data for Pharmacy A on September 7, 2019, (subtotal of dispensing volume at Pharmacy A on September 8, 2019, subtotal of dispensing volume at Pharmacy A on September 9, 2019, subtotal of dispensing volume at Pharmacy A on September 11, 2019]. subtotal dispensing volume at Pharmacy A on June 10, 2019)], [data related to Pharmacy B on September 7, 2019, (subtotal dispensing volume at Pharmacy B on September 8, 2019, subtotal dispensing volume at Pharmacy B on September 9, 2019, subtotal dispensing volume at Pharmacy B on September 10, 2019)], ···[data related to Pharmacy A on June 10, 2019, (subtotal dispensing volume at Pharmacy A on June 11, 2019, subtotal dispensing volume at Pharmacy A on June 12, 2019, subtotal dispensing volume at Pharmacy A on June 13)], [data related to Pharmacy B on June 10, 2019, (subtotal dispensing volume at Pharmacy B on June 11, 2019, subtotal dispensing volume at Pharmacy B on June 12, 2019, subtotal dispensing volume at Pharmacy B on June 13)], ···, etc.

[0071] For example, when data relating to the pharmacy for that day obtained in the operation phase is input to the input layer of trained neural network 1220 capable of predicting the dispensing amount for the next day, the dispensing amount for the next day can be output to the output layer. For example, when data relating to the pharmacy for that day obtained in the operation phase is input to the input layer of trained neural network 1220 capable of predicting the dispensing amount for the next day, two days later, and three days later, the dispensing amount for the next day, the dispensing amount for two days later, and the dispensing amount for three days later can be output to the output layer.

[0072] For example, by using the "month of the day the medicine was dispensed" as input data, the amount of medicine dispensed is predicted taking into account the season. Taking into account the season is particularly useful, for example, when predicting the amount of medicine dispensed for seasonal illnesses. This is because the number of patients who need medicines for seasonal illnesses varies depending on the season. For example, by using the "day of the week of the day the medicine was dispensed" as input data, the amount of medicine dispensed is predicted taking into account the behavior of patients. In general, the number of patients at pharmacies tends to increase after holidays such as Mondays at the beginning of the week. By taking into account such patient behavior related to the day of the week, the accuracy of the prediction can be improved. For example, by using the "holiday flag" as input data, the amount of medicine dispensed is predicted taking into account the pharmacy's holidays. Since the amount of medicine dispensed is zero on pharmacy holidays, the accuracy of the prediction can be improved by taking into account such special days when the amount of medicine dispensed is zero. For example, by using the "next week holiday flag" of the "holiday flag" as input data, the amount of medicine dispensed is predicted taking into account the pharmacy's holidays as well as the irregular behavior of patients. For example, a patient who receives regular prescriptions may receive prescriptions even if they still have medicines left if a holiday falls on the following week due to a national holiday or the like. Even such irregular patient behavior can be taken into consideration, improving the accuracy of predictions. For example, by using the "previous day holiday flag" from the "holiday flags" as input data, the amount of medicine to be dispensed can be predicted taking into account patient behavior in addition to the pharmacy's holiday days described above. As described above, the number of patients at pharmacies tends to increase after holidays, so by taking into consideration patient behavior related to holidays, the accuracy of predictions can be improved.

[0073] There is no restriction on the timing at which computer system 100 acquires the pharmacy-related data used for learning. For example, computer system 100 may acquire the pharmacy-related data from pharmacy terminal device 300 periodically (e.g., every day, every 7 days, every 14 days, every 30 days, every 90 days, every 180 days, etc.), or may acquire the pharmacy-related data from pharmacy terminal device 300 irregularly (e.g., when a medicine is dispensed at a pharmacy and prescription data is generated by pharmacy terminal device 300). For example, computer system 100 may not acquire the pharmacy-related data used for learning once the learning process is completed, or may continue to acquire the pharmacy-related data used for learning in order to update the learned model.

[0074] The dispensing amount predicted by the prediction means 122 is output to the outside of the computer system 100 via the interface unit 110. In one example, the dispensing amount predicted by the prediction means 122 is transmitted to the pharmacy terminal device 300 via the interface unit 110 and can be displayed on an output unit (e.g., a display screen) of the pharmacy terminal device 300. For example, the predicted dispensing amount can be displayed in the predicted dispensing amount display field 14 on the screen 10 of FIG. 1. This allows the orderer to take the future predicted dispensing amount into consideration when ordering a medicine, improving the accuracy of the order.

[0075] Fig. 4B shows an example of the configuration of a processor unit 120' which is an alternative embodiment of the processor unit 120. In Fig. 4B, the same elements as those shown in Fig. 4A are given the same reference numerals, and the description thereof will be omitted here. The processor unit 120' shown in Fig. 4B has a configuration including a second prediction means 123 in addition to the configuration shown in Fig. 4A.

[0076] The second prediction means 123 predicts a recommended amount of medicine to be ordered based on the inventory data acquired by the acquisition means 121 and the dispensing amount predicted by the prediction means 122. The second prediction means 123 can predict a recommended amount of medicine to be ordered based on, for example, the current inventory amount indicated by the inventory data, the optimum inventory amount, and the predicted dispensing amount. The optimum inventory amount is a value set for each medicine, and can be set by each pharmacy.

[0077] The second prediction means 123 may be configured to, for example, compare a value obtained by subtracting the predicted dispensing amount from the current stock amount with an appropriate stock amount, and predict a recommended amount of the medicine to be ordered if the value obtained by subtracting the predicted dispensing amount from the current stock amount is less than the appropriate stock amount. This is because if the value obtained by subtracting the predicted dispensing amount from the current stock amount is less than the appropriate stock amount, it is expected that the stock amount will fall below the appropriate stock amount due to future dispensing of medicines.

[0078] The second prediction means 123 can predict the recommended value of the amount to be ordered by using, for example, the current stock amount S1, the appropriate stock amount S0, and the predicted dispensing amount. For example, the recommended value E of the amount to be ordered is calculated by dividing the current stock amount S1, the appropriate stock amount S0, and the predicted dispensing amount S E Using E=S E +(S0-S1)+α Here, α is an index of how much margin there is with respect to the optimum inventory amount, and is a value that can be set by each pharmacy for each drug.

[0079] The recommended value predicted by the second prediction means 123 is output to the outside of the computer system 100 via the interface unit 110. In one example, the recommended value predicted by the second prediction means 123 is transmitted to the pharmacy terminal device 300 via the interface unit 110 and can be displayed on an output unit (e.g., a display screen) of the pharmacy terminal device 300. For example, the predicted recommended value can be displayed by default in the quantity input field 16 on the screen 10 of FIG. 1. At this time, for example, the recommended value may be converted into an order unit and displayed. The purchaser can easily place an order by simply accepting the recommended value displayed by default, which makes it possible to reduce the time required for ordering operations.

[0080] Each component of the computer system 100 described above may be composed of a single hardware part or may be composed of multiple hardware parts. When composed of multiple hardware parts, the manner in which each hardware part is connected does not matter. Each hardware part may be connected wirelessly or by wire. The computer system 100 of the present invention is not limited to a specific hardware configuration. It is also within the scope of the present invention to configure the processor units 120, 120' by analog circuits rather than digital circuits. The configuration of the computer system 100 of the present invention is not limited to the above as long as it can realize its functions.

[0081] 3. Processing of a computer system for predicting the amount of medicines to be dispensed 6 shows an example of a process in computer system 100 for predicting the amount of a drug dispensed. Process 600 is executed in processor unit 120 of computer system 100. In the following, an example of predicting the amount of a drug a that can be dispensed at pharmacy A will be described.

[0082] In step S601, the acquisition means 121 of the processor unit 120 acquires data related to pharmacy A. The data related to pharmacy A includes, for example, dispensing data related to dispensing of drug a at pharmacy A, for example, data on how much drug a was dispensed at pharmacy A on the day when prediction processing is performed. The data related to pharmacy A may include, for example, but is not limited to, the month of the day when prediction processing is performed (the day when drug a was dispensed), the day of the week when drug a was dispensed, a holiday flag for the week after the day when drug a was dispensed, a holiday flag for the week before the day when drug a was dispensed, a holiday flag for the day when drug a was dispensed, a holiday flag for the day after the day when drug a was dispensed, a holiday flag for the day after the day when drug a was dispensed, a subtotal of the dispensed amount on the day when drug a was dispensed, and the like.

[0083] The acquiring means 121 can acquire data about pharmacy A on the day when the prediction process is performed, for example, by filtering using a time stamp given to the data about the pharmacy or the dispensing date and time in the dispensing data. The acquiring means 121 may acquire data about pharmacy A stored in the database unit 200 via the communication interface unit 110. Alternatively, the acquiring means 121 may acquire data about pharmacy A received from the pharmacy terminal device 300 of pharmacy A or an associated receipt computer system via the communication interface unit 110. The acquired data about pharmacy A is passed to the prediction means 122.

[0084] In step S602, the prediction means 122 of the processor unit 120 predicts the dispensed amount of the drug a based on the data related to the pharmacy A acquired in step S601.

[0085] The prediction means 122 predicts the dispensing amount of drug A at a pharmacy by, for example, machine learning. The trained model used may be a model that has been trained based on data related to the pharmacy. The trained model may be a dedicated trained model built individually for pharmacy A, or a general-purpose trained model built for all of a plurality of pharmacies. Since the dedicated trained model has been trained based on data related to the pharmacy, it can make predictions specific to that pharmacy, and generally has higher accuracy than a general-purpose trained model.

[0086] The machine learning may be, for example, machine learning using a linear regression model or machine learning using a neural network. For example, when the data on pharmacy A acquired in step S601 is input to a trained model constructed by machine learning, the dispensed amount of drug a may be output. For example, the output of a trained model constructed to predict the dispensed amount on the next day is the dispensed amount of drug a on the next day, and the output of a trained model constructed to predict the dispensed amount on the next day, two days later, and three days later is the dispensed amount of drug a on the next day, the dispensed amount of drug a two days later, and the dispensed amount of drug a three days later.

[0087] The prediction means 121 can predict the amount of medicine dispensed at pharmacy A by any statistical analysis, such as regression analysis, instead of machine learning, for example.

[0088] When the dispensed amount of drug a is predicted, in step S603, the processor unit 120 passes the dispensed amount of drug a to the interface unit 110 and outputs the dispensed amount of drug a via the output unit of the interface unit 110.

[0089] In one example, the dispensing amount predicted by the prediction means 122 can be transmitted to the pharmacy terminal device 300 via the interface unit 110 and displayed on an output unit (eg, a display screen) of the pharmacy terminal device 300.

[0090] By repeating steps S601 to S603 for each of the multiple medicines, the predicted dispensing amount for each of the multiple medicines can be output. This makes it possible to determine the medicine to be ordered, for example, taking into account the predicted dispensing amounts of the multiple medicines.

[0091] After steps S601 to S603, the learning model may be updated by performing a process similar to the learning process described below. This allows the learning model to be adjusted to correspond to changes over time in the state of the pharmacy, improving the accuracy of prediction.

[0092] The timing of each of steps S601 to S603 of the process 600 described above does not matter. For example, steps S601 to S603 can be performed in response to the computer system 100 receiving a request for a predicted dispensing amount from the pharmacy terminal device 300. For example, step S601 is performed periodically (e.g., every hour, 12 hours, day, week, January, March, June, year, etc.) or irregularly (e.g., when a medicine is dispensed at a pharmacy and the data on the receipt is input to the pharmacy terminal device 300), so that the acquisition means 121 of the computer system 100 acquires data related to the pharmacy, and in response to the computer system 100 receiving a request for a predicted dispensing amount from the pharmacy terminal device 300, steps S602 and S603 can be performed using the data related to the pharmacy acquired at that time. For example, steps S601 to S602 can be performed periodically (e.g., every hour, 12 hours, day, week, month, March, June, year, etc.) or irregularly (e.g., when a medicine is dispensed at a pharmacy and the prescription data is entered into the pharmacy terminal device 300), so that the prediction means 122 of the computer system 100 predicts the amount of medicine to be dispensed, and in response to receiving a request for the predicted amount of medicine from the pharmacy terminal device 300, step S603 can be performed to output the amount of medicine to be dispensed that was predicted at that time.

[0093] 7 shows an example of processing in computer system 100 for predicting the amount of medicine to be dispensed. Processing 700 is executed in processor unit 120 of computer system 100. Processing 700 is processing for predicting and outputting a recommended value for the amount of medicine to be ordered. In the following, an example will be described in which a recommended value for the amount of medicine a that can be dispensed at pharmacy A to be ordered is predicted and output.

[0094] In step S701, the acquisition means 121 of the processor unit 120 acquires data related to pharmacy A. Step S701 is the same process as step S601, and therefore a description thereof will be omitted here.

[0095] In step S702, the acquisition means 121 of the processor unit 120 acquires inventory data of the drug a at the pharmacy A. The inventory data may be, for example, data that can be generated each time the inventory is checked, or may be, for example, data calculated based on the initial inventory amount, dispensing data, and order data.

[0096] The acquiring means 121 may, for example, filter using date and time information in the inventory data to acquire only the inventory data for the day on which the prediction process is performed. The acquiring means 121 may, for example, acquire the inventory data stored in the database unit 200 via the communication interface unit 110. Alternatively, the acquiring means 121 may acquire the inventory data received from the pharmacy terminal device 300 of Pharmacy A via the communication interface unit 110. The acquired inventory data is passed to the second prediction means 123.

[0097] In step S703, the prediction means 122 of the processor unit 120 predicts the dispensed amount of the drug a based on the data related to the pharmacy A acquired in step S701. Step S703 is the same process as step S602, and therefore a description thereof will be omitted here.

[0098] In step S704, the second prediction means 123 of the processor unit 120 predicts a recommended amount of the drug a to be ordered based on the dispensing amount predicted in step S703 and the inventory data acquired in step S702. The second prediction means 123 can predict a recommended amount of the drug a to be ordered based on, for example, the current inventory amount of the drug a indicated by the inventory data, the appropriate inventory amount of the drug a, and the dispensing amount predicted in step S703. The appropriate inventory amount is a value set for each drug, and can be set by each pharmacy.

[0099] In step S704, for example, the second prediction means 123 may compare a value obtained by subtracting the predicted dispensing amount from the current stock amount of drug a with an appropriate stock amount of drug a, and may predict a recommended value for the amount of drug a to be ordered if the value obtained by subtracting the predicted dispensing amount from the current stock amount of drug a is less than the appropriate stock amount of drug a. If the value obtained by subtracting the predicted dispensing amount from the current stock amount of drug a is equal to or greater than the appropriate stock amount of drug a, it is considered that there is no need to order drug a in the first place, so the second prediction means 123 may not need to predict a recommended value for the amount of drug a to be ordered, but may still predict a recommended value for the amount of drug a to be ordered.

[0100] For example, the recommended amount of drug a to be ordered E a is the current inventory of drug a, S 1a and the appropriate inventory amount of drug a, S 0a and the predicted dispensing amount S of drug a Ea Using E a =S Ea +(S 0a -S 1a )+α a Here, α a is an indicator of how much surplus to stock of drug a is available relative to the appropriate inventory level, and is a value that can be set by each pharmacy.

[0101] When the recommended amount of drug a to be ordered is predicted, in step S705, the processor unit 120 passes the recommended amount of drug a to be ordered to the interface unit 110, and outputs the recommended amount of drug a to be ordered via the output unit of the interface unit 110.

[0102] In one example, the recommended value predicted by the second prediction means 123 can be transmitted to the pharmacy terminal device 300 via the interface unit 110 and displayed on an output unit (e.g., a display screen) of the pharmacy terminal device 300.

[0103] By repeating steps S701 to S705 for each of the multiple medicines, it is possible to output a recommended amount to be ordered for each of the multiple medicines. This makes it possible to determine the order amount of the medicine to be ordered, for example, by taking into account the recommended amount to be ordered for each of the multiple medicines.

[0104] There is no restriction on the timing at which steps S701 to S705 of the above-mentioned process 700 are performed. Steps S701 to S705 can be performed at any timing.

[0105] 8 shows an example of a process for predicting the amount of a drug dispensed in the computer system 100. The process 800 is a process for constructing a model used to predict the amount of a drug dispensed, and is executed in the processor unit 120 of the computer system 100.

[0106] In step S801, the acquisition means 121 of the processor unit 120 acquires data related to pharmacies. The data related to pharmacies includes, for example, dispensing data. The dispensing data includes, for example, data on which pharmacy dispensed what medicine to which patient, when, and how much. The dispensing data may be, for example, data having the data configuration described above with reference to FIG. 3A, or data having the data configuration described above with reference to FIG. 3B. In the case of data such as that described above with reference to FIG. 3A, the processor unit 120 can perform preprocessing on the acquired data related to pharmacies so as to obtain data aggregated for each pharmacy and each medicine as described above with reference to FIG. 3B.

[0107] The data relating to the pharmacy may include, for example, but is not limited to, the month on which the medicine was dispensed, the day of the week on which the medicine was dispensed, a holiday flag for the week after the day on which the medicine was dispensed, a holiday flag for the week before the day on which the medicine was dispensed, a holiday flag for the day on which the medicine was dispensed, a holiday flag for the day after the day on which the medicine was dispensed, a subtotal of the amount dispensed on the day on which the medicine was dispensed, etc.

[0108] The acquiring means 121 may, for example, perform filtering using a time stamp given to the data related to the pharmacy or a dispensing date and time in the dispensing data, and acquire only data related to the pharmacy within a predetermined date and time in the past or a predetermined period. For example, the acquiring means 121 may acquire only data related to the pharmacy from one week to one year before the dispensing date, for example, data related to the pharmacy from 14 days before the dispensing date, data related to the pharmacy from 30 days before the dispensing date, data related to the pharmacy from 60 days before the dispensing date, data related to the pharmacy from 90 days before the dispensing date, or data related to the pharmacy from 180 days before the dispensing date. For example, the acquiring means 121 may acquire only data related to the pharmacy from 4 days to one week before the dispensing date, for example, data related to the pharmacy from 4 days to 14 days before the dispensing date, data related to the pharmacy from 4 days to 30 days before the dispensing date, data related to the pharmacy from 4 days to 60 days before the dispensing date, data related to the pharmacy from 4 days to 90 days before the dispensing date, or data related to the pharmacy from 4 days to 180 days before the dispensing date. For example, it is preferable that the acquiring means 121 acquires data on pharmacies for 90 days prior to the dispensing date, or data on pharmacies between 4 days prior to the dispensing date and 90 days prior to the dispensing date. This is because 90 days is the maximum number of days for which a drug can be prescribed, the data up to 90 days prior best reflects dispensing trends, and by using data on pharmacies up to 90 days prior in step S802, the accuracy of prediction by the constructed model is improved.

[0109] The acquiring means 121 may acquire, for example, data relating to a pharmacy stored in the database unit 200 via the communication interface unit 110. Alternatively, the acquiring means 121 may acquire data relating to a pharmacy received from the pharmacy terminal device 300 or an associated receipt computer system via the communication interface unit 110.

[0110] For example, the acquisition unit 121 may acquire only data related to a specific pharmacy when constructing a dedicated trained model, or may acquire data related to multiple pharmacies when constructing a general-purpose trained model. The acquired data related to the pharmacy is passed to the determination unit 122.

[0111] In step S802, the processor unit 120 learns the data related to the pharmacy acquired in step S801 as training data, thereby constructing a model (trained model) used to predict the dispensed amount of medicines.

[0112] For example, when constructing a trained model using a linear regression model, for example, the linear regression model y for drug i i teeth, y i =w1x1+w2x2+···+w k x k +α In step S802, the processor unit 120 calculates, for example, at least one of the following data on the pharmacy acquired in step S801, namely, the month of the dispensing date, the day of the week of the dispensing date, the holiday flag in the week following the dispensing date, the holiday flag in the week preceding the dispensing date, the holiday flag on the day of the dispensing date, and the holiday flag on the day following the dispensing date, as an explanatory variable x k The subtotal of dispensing volume among the pharmacy data is the objective variable y i As the coefficient w k By determining the objective variable y, a trained model can be constructed. i For example, if the objective variable y i If the dispensing amount subtotal two days after the dispensing date is used as the dispensing amount, the constructed trained model is capable of predicting the dispensing amount on the day after that. In this way, by changing the dispensing amount subtotal used for learning depending on the future date for which the dispensing amount is to be predicted, a trained model capable of predicting the dispensing amount for a desired future date can be constructed.

[0113] For example, when constructing a trained model using a neural network, in step S802, the processor unit 120 uses at least one of the month of the dispensing date, the day of the week of the dispensing date, the holiday flag of the week after the dispensing date, the holiday flag of the week before the dispensing date, the holiday flag of the day of the dispensing date, the holiday flag of the day after the dispensing date, and the subtotal of the dispensing amount for the medical dispensing date as input training data, and uses the subtotal of the dispensing amount for a specific day as output training data from the data on the pharmacy, thereby calculating the weight coefficient of each node in the hidden layer of the neural network to construct a trained model. For example, if the subtotal of the dispensing amount for the day after the dispensing date is used as the output training data, the constructed trained model becomes a trained model capable of predicting the dispensing amount for the next day. For example, if the subtotal of the dispensing amount for the day after the dispensing date, the subtotal of the dispensing amount two days later, and the subtotal of the dispensing amount three days later are used as the output training data, the constructed trained model becomes a trained model capable of predicting the dispensing amount for the next day, two days later, and three days later. In this way, by changing the dispensing amount subtotal used for learning depending on the future date for which the dispensing amount is to be predicted, a trained model capable of predicting the dispensing amount for the desired future date can be constructed.

[0114] For example, by using the "month of the day the medicine was dispensed" as input data, the amount of medicine dispensed is predicted taking into account the season. Taking into account the season is particularly useful, for example, when predicting the amount of medicine dispensed for seasonal illnesses. This is because the number of patients who need medicines for seasonal illnesses varies depending on the season. For example, by using the "day of the week of the day the medicine was dispensed" as input data, the amount of medicine dispensed is predicted taking into account the behavior of patients. In general, the number of patients at pharmacies tends to increase after holidays such as Mondays at the beginning of the week. By taking into account such patient behavior related to the day of the week, the accuracy of the prediction can be improved. For example, by using the "holiday flag" as input data, the amount of medicine dispensed is predicted taking into account the pharmacy's holidays. Since the amount of medicine dispensed is zero on pharmacy holidays, the accuracy of the prediction can be improved by taking into account such special days when the amount of medicine dispensed is zero. For example, by using the "next week holiday flag" of the "holiday flag" as input data, the amount of medicine dispensed is predicted taking into account the pharmacy's holidays as well as the irregular behavior of patients. For example, a patient who receives regular prescriptions may receive prescriptions even if they still have medicines left if a holiday falls on the following week due to a national holiday or the like. Even such irregular patient behavior can be taken into consideration, improving the accuracy of predictions. For example, by using the "previous day holiday flag" from the "holiday flags" as input data, the amount of medicine to be dispensed can be predicted taking into account patient behavior in addition to the pharmacy's holiday days described above. As described above, the number of patients at pharmacies tends to increase after holidays, so by taking into consideration patient behavior related to holidays, the accuracy of predictions can be improved.

[0115] Although the above examples have been described as performing operations in a particular order, the order of each operation is not limited to that described and may be performed in any order that is logically possible.

[0116] In the examples described above with reference to Figures 6 and 7, the processes of the steps shown in Figures 6, 7, and 8 are implemented by the processor unit 120 and the programs stored in the memory unit 130, but the present invention is not limited to this. At least one of the processes of the steps shown in Figures 6, 7, and 8 may be implemented by a hardware configuration such as a control circuit.

[0117] In the above example, the computer system 100 is a computer (e.g., a server device) connected to the pharmacy terminal device 300 via the network 400, but the present invention is not limited to this. The computer system 100 may be any information processing device equipped with a processor. For example, the computer system 100 may be the pharmacy terminal device 300. In this case, the data available to the computer system 100 is limited to data related to the pharmacy, so the trained model constructed by the computer system 100 may be a dedicated trained model specific to the pharmacy.

[0118] The present invention is not limited to the above-mentioned embodiment. It is understood that the scope of the present invention should be interpreted only by the claims. It is understood that a person skilled in the art can implement an equivalent scope based on the description of the present invention and technical common sense from the description of the specific preferred embodiment of the present invention. [Industrial Applicability]

[0119] INDUSTRIAL APPLICABILITY The present invention is useful for providing a system for predicting the amount of medicine to be dispensed, which can support appropriate ordering of medicines. [Explanation of symbols]

[0120] 10 Screens 100 Computer Systems 110 Interface section 120 Processor Unit 130 Memory section

Claims

1. A computer system for supporting pharmaceutical ordering, comprising: A means of obtaining data on pharmacies; means for forecasting future dispensing volumes of pharmaceutical products at the pharmacy based on data relating to the pharmacy; means for predicting whether the drug needs to be ordered after the pharmacy closes for the day based on the predicted dispensing volume; Equipped with The data regarding the pharmacy includes a next week holiday flag indicating that one week after the day on which the medicine is dispensed is a holiday; a computer system, wherein the means for predicting the dispensing amount predicts the dispensing amount using a trained model, the trained model being constructed by a learning process using at least data regarding the pharmacy and a dispensing amount subtotal for the day the medicine was dispensed as training data, the learning process including pre-processing of the training data, the pre-processing including increasing or decreasing the dispensing amount subtotal for the day the medicine was dispensed, which is used in the learning process, based on the presence or absence of a holiday flag for the week following the day the medicine was dispensed.

2. 10. The computer system of claim 1, further comprising: means for predicting a recommended quantity in which to order the medication if the medication is predicted to need to be ordered.

3. 1. A method for facilitating pharmaceutical ordering, the method being executed in a computer system having a processor, the method comprising: The processor unit acquires data related to a pharmacy; the processor unit predicting a future dispensing amount of the drug at the pharmacy based on the data regarding the pharmacy; The processor predicts whether the drug needs to be ordered after the pharmacy closes for the day based on the predicted dispensed amount. Including, The data regarding the pharmacy includes a next week holiday flag indicating that one week after the day on which the medicine is dispensed is a holiday; a training data set that includes a training data set for predicting the dispensing amount based on whether or not a holiday flag is set for the week following the day on which the medicine is dispensed, the training data set including ... day on which the medicine is dispensed, the training data set including a training data set for predicting the dispensing amount based on whether or not a holiday flag is set for the day on which the medicine is dispensed, the training data set including a training data set for predicting

4. A program for supporting ordering of medicines, the program being executed in a system having a processor, the program comprising: Obtaining data on pharmacies; forecasting future dispensing volumes of pharmaceutical products at the pharmacy based on the data regarding the pharmacy; predicting whether the drug needs to be ordered after the pharmacy closes for the day based on the predicted dispensing volume; causing the processor unit to execute a process including The data regarding the pharmacy includes a next week holiday flag indicating that one week after the day on which the medicine is dispensed is a holiday; a program in which predicting the dispensing amount includes predicting the dispensing amount using a trained model, the trained model being constructed by a learning process using at least data regarding the pharmacy and a dispensing amount subtotal for the day the medicine was dispensed as training data, the learning process including pre-processing of the training data, the pre-processing including increasing or decreasing the dispensing amount subtotal for the day the medicine was dispensed that is used in the learning process based on the presence or absence of a holiday flag for the week next to the day the medicine was dispensed.

Citation Information

Patent Citations

  • Pharmacy system

    JP2001043279A

  • Medicine wholesale business management system

    JP2002149819A

  • Ordering prediction type stock management system by individual patient, ordering prediction type stock management program and recording medium therefor

    JP2006285815A