JP6709483B1 - Systems, methods, and programs for predicting drug dosage - Google Patents

Systems, methods, and programs for predicting drug dosage Download PDF

Info

Publication number
JP6709483B1
JP6709483B1 JP2019184745A JP2019184745A JP6709483B1 JP 6709483 B1 JP6709483 B1 JP 6709483B1 JP 2019184745 A JP2019184745 A JP 2019184745A JP 2019184745 A JP2019184745 A JP 2019184745A JP 6709483 B1 JP6709483 B1 JP 6709483B1
Authority
JP
Japan
Prior art keywords
pharmacy
drug
day
data
dispensing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2019184745A
Other languages
Japanese (ja)
Other versions
JP2021060821A (en
Inventor
翔一 大友
翔一 大友
祥平 金本
祥平 金本
洋介 山口
洋介 山口
Original Assignee
株式会社ファーマクラウド
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 株式会社ファーマクラウド filed Critical 株式会社ファーマクラウド
Priority to JP2019184745A priority Critical patent/JP6709483B1/en
Application granted granted Critical
Publication of JP6709483B1 publication Critical patent/JP6709483B1/en
Publication of JP2021060821A publication Critical patent/JP2021060821A/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Medical Treatment And Welfare Office Work (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

【課題】医薬品の調剤量を予測するためのシステム等を提供すること。【解決手段】本発明は、医薬品の調剤量を予測するためのコンピュータシステムを提供し、前記コンピュータシステムは、薬局に関するデータを取得すること(ステップS601)と、前記薬局に関するデータに基づいて、前記薬局における医薬品の調剤量を予測すること(ステップS602)と、前記予測された調剤量を出力すること(ステップS603)とを行うように構成されている。【選択図】図6PROBLEM TO BE SOLVED: To provide a system and the like for predicting a dispensing amount of a drug. The present invention provides a computer system for predicting a dispensing amount of a drug, the computer system acquiring data on a pharmacy (step S601), and based on the data on the pharmacy, It is configured to predict the dispensing amount of the drug in the pharmacy (step S602) and output the predicted dispensing amount (step S603). [Selection diagram] Fig. 6

Description

本発明は、医薬品の調剤量を予測するためのシステム、方法、およびプログラムに関する。 The present invention relates to systems, methods, and programs for predicting the dosage of a drug.

従来から医薬品発注システムが存在していた(特許文献1等)。 Conventionally, there has been a drug ordering system (Patent Document 1, etc.).

従来の医薬品発注システムを用いる薬局の発注者は、調剤実績を別途管理するシステムおよび在庫情報を別途管理するシステムを参照して、その日の調剤実績および在庫情報に基づいて発注量を決定していた。 The pharmacy orderer using the conventional drug ordering system refers to the system that separately manages the dispensing history and the system that separately manages inventory information, and determines the order amount based on the dispensing history and inventory information on that day. ..

特開2001−43279号公報JP, 2001-43279, A

しかしながら、発注者が、その日の調剤実績および在庫情報に基づいて医薬品の発注量を決定するのでは、適切な医薬品の発注が達成できておらず、過剰な在庫状態または不足する在庫状態を招いていた。 However, if the orderer decides the order quantity of the drug based on the dispensing history and inventory information on that day, an appropriate order for the drug cannot be achieved, resulting in an excessive inventory condition or an insufficient inventory condition. It was

本発明は、上記事情に鑑みてなされたものであり、適切な医薬品の発注を支援することが可能な、医薬品の調剤量を予測するためのシステム等を提供することを目的とする。 The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a system or the like for predicting the dispensing amount of a drug, which can support an appropriate ordering of a drug.

本発明は、例えば、以下の項目を提供する。
(項目1)
医薬品の調剤量を予測するためのコンピュータシステムであって、
薬局に関するデータを取得する取得手段と、
前記薬局に関するデータに基づいて、前記薬局における医薬品の将来の調剤量を予測する予測手段と、
前記予測された調剤量を出力する出力手段と
を備えるコンピュータシステム。
(項目2)
前記薬局に関するデータは、前記医薬品を調剤した日の月を含む、項目1に記載のコンピュータシステム。
(項目3)
前記薬局に関するデータは、前記日の曜日をさらに含む、項目2に記載のコンピュータシステム。
(項目4)
前記薬局に関するデータは、前記日の1週間後が休日であることを示す翌週休日フラグをさらに含む、項目2または項目3に記載のコンピュータシステム。
(項目5)
前記薬局に関するデータは、前記日の1週間前が休日であることを示す前週休日フラグ、前記日が休日であることを示す当日休日フラグ、前記日の翌日が休日であることを示す翌日休日フラグのうちの少なくとも1つをさらに含む、項目2〜4のいずれか一項に記載のコンピュータシステム。
(項目6)
前記薬局に関するデータは、前記日の1週間前が休日であることを示す前週休日フラグと、前記日が休日であることを示す当日休日フラグと、前記日の翌日が休日であることを示す翌日休日フラグとをさらに含む、項目2〜4のいずれか一項に記載のコンピュータシステム。
(項目7)
前記予測手段は、学習済モデルを用いて前記薬局における医薬品の調剤量を予測し、前記学習済モデルは、前記薬局に関するデータに基づいて学習処理がなされたモデルである、項目1〜6のいずれか一項に記載のシステム。
(項目8)
前記学習済モデルは、線形回帰モデルであり、
前記予測手段は、前記薬局に関するデータを前記線形回帰モデルの説明変数に入力することにより、前記医薬品の将来の調剤量を得る、項目7に記載のコンピュータシステム。
(項目9)
前記予測手段は、少なくとも1日後〜3日後の3日間の前記医薬品の調剤量を予測する、項目1〜8のいずれか一項に記載のコンピュータシステム。
(項目10)
前記取得手段は、医薬品の在庫データをさらに取得し、
前記コンピュータシステムは、前記予測された調剤量と、前記在庫データとに基づいて、前記医薬品を発注すべき量の推奨値を予測する第2の予測手段をさらに備え、
前記出力手段は、前記予測された発注すべき量の推奨値を出力する、項目1〜9のいずれか一項に記載のコンピュータシステム。
(項目11)
前記第2の予測手段は、
前記医薬品の現在の在庫量から前記予測された調剤量を減算した値と、前記医薬品の適正在庫量とを比較することと、
前記医薬品の現在の在庫量から前記予測された調剤量を減算した値が前記医薬品の適正在庫量を下回る場合に、前記医薬品を発注すべき量の推奨値を予測することと
を行うように構成されている、項目10に記載のコンピュータシステム。
(項目12)
医薬品の調剤量を予測するための方法であって、
薬局に関するデータを取得することと、
前記薬局に関するデータに基づいて、前記薬局における医薬品の将来の調剤量を予測することと、
前記予測された調剤量を出力することと
を含む方法。
(項目13)
医薬品の調剤量を予測するためのプログラムであって、前記プログラムは、プロセッサ部を備えるシステムにおいて実行され、前記プログラムは、
薬局に関するデータを取得することと、
前記薬局に関するデータに基づいて、前記薬局における医薬品の将来の調剤量を予測することと、
前記予測された調剤量を出力することと
を含む処理を前記プロセッサ部に実行させる、プログラム。
(項目14)
医薬品の調剤量を予測するために用いられるモデルを構築するためのコンピュータシステムであって、
薬局に関するデータを取得する取得手段と、
前記薬局に関するデータを教師データとして学習する学習手段と
を備えるコンピュータシステム。
(項目15)
前記薬局に関するデータは、4日前〜90日前の期間内のデータを含む、項目14に記載のコンピュータシステム。
(項目16)
医薬品の調剤量を予測するために用いられるモデルを構築するための方法であって、
薬局に関するデータを取得することと、
前記薬局に関するデータを教師データとして学習することと
を含む方法。
(項目17)
医薬品の調剤量を予測するために用いられるモデルを構築するためのプログラムであって、前記プログラムは、プロセッサ部を備えるシステムにおいて実行され、前記プログラムは、
薬局に関するデータを取得することと、
前記薬局に関するデータを教師データとして学習することと
を含む処理を前記プロセッサ部に実行させる、プログラム。
The present invention provides the following items, for example.
(Item 1)
A computer system for predicting the dispensing amount of a medicine,
An acquisition means for acquiring data about the pharmacy,
Prediction means for predicting the future dispensing amount of the drug in the pharmacy, based on the data related to the pharmacy,
An output unit that outputs the predicted dispensing amount.
(Item 2)
The computer system according to item 1, wherein the data related to the pharmacy includes the month of the day when the drug is dispensed.
(Item 3)
The computer system of item 2, wherein the pharmacy data further includes the day of the week.
(Item 4)
The computer system according to Item 2 or Item 3, wherein the data regarding the pharmacy further includes a next week holiday flag indicating that one week after the day is a holiday.
(Item 5)
The data related to the pharmacy includes a previous weekly holiday flag indicating that one week before the day is a holiday, a current day holiday flag indicating that the day is a holiday, and a next day holiday flag indicating that the day after the day is a holiday. The computer system of any of items 2-4, further comprising at least one of:
(Item 6)
The data related to the pharmacy 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 is a holiday, and a next day indicating that the next day is a holiday. The computer system according to any one of Items 2 to 4, further including a holiday flag.
(Item 7)
Any one of Items 1 to 6, wherein the predicting unit predicts the amount of a drug dispensed in the pharmacy by using a learned model, and the learned model is a model on which learning processing is performed based on data on the pharmacy. The system according to paragraph 1.
(Item 8)
The trained model is a linear regression model,
8. The computer system according to item 7, wherein the predicting unit obtains a future dispensing amount of the drug by inputting data regarding the pharmacy into an explanatory variable of the linear regression model.
(Item 9)
9. The computer system according to any one of Items 1 to 8, wherein the predicting unit predicts a dosage amount of the drug for at least one day to three days after three days.
(Item 10)
The acquisition means further acquires drug inventory data,
The computer system further comprises second predicting means for predicting a recommended value of the quantity to be ordered for the medicine, based on the predicted dispensing amount and the inventory data.
The computer system according to any one of Items 1 to 9, wherein the output unit outputs the predicted recommended value of the quantity to be ordered.
(Item 11)
The second prediction means is
Comparing a value obtained by subtracting the predicted dispensing amount from the current inventory amount of the drug, and an appropriate inventory amount of the drug,
When the value obtained by subtracting the predicted dispensing amount from the current inventory amount of the drug is less than the appropriate inventory amount of the drug, the recommended value of the amount to be ordered of the drug is predicted. The computer system according to item 10, which is:
(Item 12)
A method for predicting the amount dispensed of a drug, comprising:
To get data about the pharmacy,
Predicting a future dispensed amount of a drug at the pharmacy based on data about the pharmacy;
Outputting the predicted dispensed amount.
(Item 13)
A program for predicting a dispensing amount of a drug, wherein the program is executed in a system including a processor unit, and the program is
To get data about the pharmacy,
Predicting a future dispensed amount of a drug at the pharmacy based on data about the pharmacy;
A program that causes the processor unit to perform processing including outputting the predicted dispensing amount.
(Item 14)
A computer system for building a model used to predict a drug dosage, comprising:
An acquisition means for acquiring data about the pharmacy,
A learning system that learns data about the pharmacy as teacher data.
(Item 15)
15. The computer system of item 14, wherein the pharmacy data includes data for a period of 4 days to 90 days.
(Item 16)
A method for building a model used to predict a drug dosage
To get data about the pharmacy,
Learning the data about the pharmacy as teacher data.
(Item 17)
A program for constructing a model used for predicting a dispensing amount of a drug, wherein the program is executed in a system including a processor unit, and the program is
To get data about the pharmacy,
A program that causes the processor unit to perform processing including learning data related to the pharmacy as teacher data.

本発明によれば、医薬品の調剤量を予測するためのシステム等を提供することができる。このシステムを医薬品発注システムに利用することにより、適切な発注量を推奨することができ、医薬品の適切な発注を支援することができる。 According to the present invention, it is possible to provide a system or the like for predicting the amount of a drug to be dispensed. By using this system for a drug ordering system, it is possible to recommend an appropriate order amount and support an appropriate drug order.

医薬品の発注を支援するためのサービスを利用する調剤薬局の端末装置に表示される画面の一例を示す図。The figure which shows an example of the screen displayed on the terminal device of the dispensing pharmacy which uses the service for supporting the ordering of pharmaceuticals. 医薬品の調剤量を予測するためのコンピュータシステム100の構成の一例を示す図。The figure which shows an example of a structure of the computer system 100 for estimating the dispensing amount of a pharmaceutical. 医薬品の調剤量を予測するためのコンピュータシステム100の具体的な構成の一例を示す図。The figure which shows an example of the specific structure of the computer system 100 for estimating the dispensing amount of a pharmaceutical. データベース部200に格納される調剤データのデータ構成の一例を示す図。The figure which shows an example of the data structure of dispensing data stored in the database part 200. データベース部200に格納される調剤データのデータ構成の別の一例を示す図。The figure which shows another example of the data structure of dispensing data stored in the database part 200. プロセッサ部120の構成の一例を示す図。The figure which shows an example of a structure of the processor part 120. プロセッサ部120の代替実施形態であるプロセッサ部120’の構成の一例を示す図。The figure which shows an example of a structure of processor part 120' which is an alternative embodiment of processor part 120. 予測手段122が利用し得るニューラルネットワーク1220の構造の一例を示す図。The figure which shows an example of the structure of the neural network 1220 which the prediction means 122 can utilize. 医薬品の調剤量を予測するためのコンピュータシステム100における処理の一例を示すフローチャート。The flowchart which shows an example of the process in the computer system 100 for estimating the dispensing amount of a pharmaceutical. 医薬品の調剤量を予測するためのコンピュータシステム100における処理の一例を示すフローチャート。The flowchart which shows an example of the process in the computer system 100 for estimating the dispensing amount of a pharmaceutical. 医薬品の調剤量を予測するためのコンピュータシステム100における処理の一例を示すフローチャート。The flowchart which shows an example of the process in the computer system 100 for estimating the dispensing amount of a pharmaceutical.

以下、図面を参照しながら、本発明の実施の形態を説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.

1.医薬品の発注を支援するための新たなサービス
本発明の発明者は、医薬品の発注を支援するための新たなサービスを開発した。そのサービスの1つは、発注すべき医薬品を決定することを支援するために、調剤薬局における将来の調剤量を発注者に提示するサービスである。このサービスでは、例えば、発注日の次の日に調剤され得る医薬品の調剤量が発注者に提示される。発注者は、このサービスを利用することにより、将来の調剤量を考慮して発注量を決定することができるようになる。これにより、発注の精度が向上し、過剰な在庫状態または不足する在庫状態を回避することができる。
1. New Service to Support Ordering of Drugs The inventor of the present invention has developed a new service to support ordering of drugs. One of the services is a service that presents a future dispensing amount at a dispensing pharmacy to a client in order to assist in deciding a medicine to be ordered. In this service, for example, the orderer is presented with the dispensing amount of a drug that can be dispensed the day after the ordering date. By using this service, the orderer can determine the order quantity in consideration of the future dispensing quantity. As a result, the accuracy of ordering is improved, and it is possible to avoid an excessive inventory state or an insufficient inventory state.

このサービスでは、さらに、発注すべき医薬品の発注量の推奨値を発注者に提示することもできる。発注者は、このサービスを利用することにより、発注業務にかかる負担を削減することができる。 The service can also present the recommended value of the ordered quantity of the medicine to be ordered to the orderer. By using this service, the orderer can reduce the burden of ordering work.

図1は、医薬品の発注を支援するためのサービスを利用する調剤薬局の端末装置に表示される画面の一例を示す。例えば、調剤薬局の端末装置は、医薬品の発注を支援するためのサービスを利用するために、医薬品の発注を支援するためのアプリケーションをインストールして、そのアプリケーションを起動するか、医薬品の発注を支援するためのウェブアプリケーションを提供するサーバにアクセスして、そのウェブアプリケーションを起動することができる。すなわち、調剤薬局の端末装置は、医薬品の発注を支援するためのサービスをオフラインでまたはオンラインで利用することができる。 FIG. 1 shows an example of a screen displayed on a terminal device of a dispensing pharmacy that uses a service for supporting ordering of medicines. For example, the terminal device of the dispensing pharmacy installs an application for supporting the ordering of the drug and activates the application or supports the ordering of the drug in order to use the service for supporting the ordering of the drug. It is possible to access a server that provides a web application for executing the web application and start the web application. That is, the terminal device of the dispensing pharmacy can use the service for supporting the ordering of the drug offline or online.

調剤薬局の発注業務は、欠品・過剰在庫を防ぎ適正在庫を保つように毎日行われる定期業務である。発注者は、当日の営業終了後に、医薬品を発注することになる。 The ordering business of a dispensing pharmacy is a regular business that is carried out daily to prevent shortages and excess inventory and maintain proper inventory. The orderer will order the drug after the business closes on the day.

図1に示される画面10は、医薬品を発注するための画面である。画面10には、その日に調剤された医薬品が、発注すべき医薬品として自動的に表示される。これにより、発注者は、医薬品リストから発注すべき医薬品をピックアップする必要がない。また、発注する医薬品の抜け漏れも防止される。 The screen 10 shown in FIG. 1 is a screen for ordering a drug. On the screen 10, the medicine dispensed on that day is automatically displayed as the medicine to be ordered. As a result, the orderer does not need to pick up the medicine to be ordered from the medicine list. In addition, leakage of ordered medicines is prevented.

画面10は、医薬品情報表示欄11と、当日調剤量表示欄と12と、在庫量表示欄13と、予測調剤量表示欄14とを備える。画面10はさらに、医薬品毎に、チェックボックス15と、数量入力欄16と、発注先入力欄17とを備える。画面10はまた、発注実行ボタン18を備える。 The screen 10 is provided with a drug information display column 11, a daily dose display column and 12, a stock amount display column 13, and a predicted dose display column 14. The screen 10 further includes a check box 15, a quantity input field 16 and an order input field 17 for each drug. The screen 10 also includes an order execution button 18.

医薬品情報表示欄11には、各医薬品の情報が表示される。医薬品の情報は、例えば、医薬品名、包装単位(包装)、包装単位あたりの薬価(包装薬価)、販売会社、薬価等の販売される医薬品に関する情報である。例えば、図1に示される例では、医薬品名「ザイザル錠5mg」について、包装単位が10錠×10PTPであり、包装単位当たりの薬価が8780円であり、GSK社が販売し、1錠当たり87.8円であることが表示されている。 Information on each drug is displayed in the drug information display column 11. The drug information is, for example, a drug name, a packaging unit (packaging), a drug price per packaging unit (packaging drug price), a selling company, a drug price, and other information about the drug to be sold. For example, in the example shown in FIG. 1, for the drug name “Zaizar tablet 5 mg”, the packaging unit is 10 tablets×10 PTP, the drug price per packaging unit is 8780 yen, and GSK sells 87 tablets per tablet. It is displayed that it is .8 yen.

当日調剤量表示欄12には、各医薬品のその日の調剤量が表示される。例えば、図1に示される例では、「アラミスト点鼻液27.5μg56噴霧用」のその日の調剤量が1キットであり、「クラリスロマイシン錠200mg『トーワ』」のその日の調剤量が14錠であり、「ザイザル錠5mg」のその日の調剤量が7錠であり、「シングレア錠10mg」のその日の調剤量が7錠であることが表示されている。発注者は、画面10の当日調剤量表示欄12を見るだけで、調剤実績を別途管理するシステムに自らアクセスすることなく、その日の調剤実績を確認することができる。 The daily dose display field 12 displays the daily dose of each drug. For example, in the example shown in FIG. 1, the amount of the "Alamyst nasal solution 27.5 μg 56 for spraying" that day is 1 kit, and the amount of "Clarithromycin tablets 200 mg "Towa"" that day is 14 tablets. It is displayed that the daily dosage of "Zaizar tablet 5 mg" is 7 tablets and the daily dosage of "Zingurea tablet 10 mg" is 7 tablets. The orderer can confirm the dispensing record of the day by only looking at the same-day dispensing amount display column 12 on the screen 10 without accessing the system for separately managing the dispensing record.

在庫量表示欄13には、各医薬品のその日の在庫量、すなわち、その日の営業終了後の在庫量が表示される。在庫量は、例えば、絶対量として表示されてもよいし、適正在庫量に対する相対量として表示されてもよい。図1に示される例では、適正在庫量に対する相対量として表示されている。例えば、図1に示される例では、「アラミスト点鼻液27.5μg56噴霧用」のその日の在庫量が(適正在庫量−1キット)であり、「クラリスロマイシン錠200mg『トーワ』」のその日の在庫量が(適正在庫量+12錠)であり、「ザイザル錠5mg」のその日の在庫量が(適正在庫量−7錠)であり、「シングレア錠10mg」のその日の在庫量が(適正在庫量−7錠)であることが表示されている。発注者は、画面10の在庫量表示欄13を見るだけで、在庫情報を別途管理するシステムに自らアクセスすることなく、その日の在庫量を確認することができる。なお、適正在庫量は、医薬品毎に設定される値であり、発注者によって設定されることができる。 The inventory amount display column 13 displays the inventory amount of each drug on that day, that is, the inventory amount after the end of business on that day. The stock amount may be displayed as, for example, an absolute amount or a relative amount with respect to the proper stock amount. In the example shown in FIG. 1, it is displayed as a relative amount with respect to the appropriate inventory amount. For example, in the example shown in FIG. 1, the stock amount of “Alamist nasal solution 27.5 μg 56 for spraying” on that day is (appropriate stock amount-1 kit), and that day of “clarithromycin tablet 200 mg “Towa”” Is (appropriate inventory +12 tablets), "Zaizar Tablets 5mg" is the inventory of that day (appropriate inventory -7 tablets), and "Singleair Tablets 10mg" is the inventory of that day (appropriate inventory Amount-7 tablets) is displayed. The orderer can confirm the stock amount of the day by only looking at the stock amount display column 13 of the screen 10 without accessing the system for separately managing the stock information. The appropriate stock amount is a value set for each drug and can be set by the orderer.

予測調剤量表示欄14には、各医薬品の次の日の予測調剤量が表示される。例えば、図1に示される例では、「アラミスト点鼻液27.5μg56噴霧用」の次の日の予測調剤量が3キットであり、「クラリスロマイシン錠200mg『トーワ』」の次の日の予測調剤量が5錠であり、「ザイザル錠5mg」の次の日の予測調剤量が18錠であり、「シングレア錠10mg」の次の日の予測調剤量が10錠であることが表示されている。発注者は、画面10の予測調剤量表示欄14を見るだけで、次の日の予測調剤量を確認することができる。 In the predicted dispensing amount display field 14, the predicted dispensing amount of the next day of each drug is displayed. For example, in the example shown in FIG. 1, the predicted dose for the next day of “Alamist nasal solution 27.5 μg 56 for spraying” is 3 kits and the next day of “Clarithromycin tablets 200 mg “Towa””. It is displayed that the predicted dosage is 5 tablets, the predicted dosage for the next day for "Zaizar tablet 5 mg" is 18 tablets, and the predicted dosage for the next day for "Singleair tablets 10 mg" is 10 tablets. ing. The orderer can confirm the predicted dispensing amount for the next day only by looking at the predicted dispensing amount display field 14 on the screen 10.

チェックボックス15は、画面10に表示された発注すべき医薬品から実際に発注する医薬品を選択するために操作される。例えば、チェックボックス15にチェックすることにより、その医薬品が発注対象となる。 The check box 15 is operated to select a drug to be actually ordered from the drugs to be ordered displayed on the screen 10. For example, by checking the check box 15, the medicine is ordered.

数量入力欄16は、発注する医薬品の数量を入力するための欄である。数量入力欄16には、例えば、キー入力によって数量を入力するようにしてもよいし、プルダウンリストから数量を選択することによって数量を入力するようにしてもよい。 The quantity input field 16 is a field for inputting the quantity of medicines to be ordered. In the quantity input field 16, for example, the quantity may be input by key input, or the quantity may be input by selecting the quantity from a pull-down list.

発注先入力欄17は、発注する医薬品の発注先を入力するための欄である。発注先入力欄17には、例えば、キー入力によって発注先を入力するようにしてもよいし、プルダウンリストから発注先を選択することによって発注先を入力するようにしてもよい。 The order entry field 17 is a field for entering the order recipient of the medicine to be ordered. In the order entry destination input column 17, for example, the order entry party may be entered by key input, or the order entry party may be entered by selecting the order entry party from the pull-down list.

発注実行ボタン18は、発注を実行するために操作されるボタンである。例えば、チェックボックス15、数量入力欄16、および発注先入力欄17を用いて、発注する医薬品ならびにその発注量および発注先を決定したうえで発注実行ボタン18を操作すると、医薬品の発注が実行される。 The order execution button 18 is a button operated to execute an order. For example, by using the check box 15, the quantity input field 16 and the order input field 17, the drug to be ordered and the order quantity and the order destination are determined, and then the order execution button 18 is operated, whereby the order of the drug is executed. It

発注のために必要な情報が画面10に集約されているため、発注者は、画面10を利用するだけで医薬品の発注業務を完遂することができる。発注者は、例えば、当日調剤量表示欄12に表示された調剤量と、在庫量表示欄13に表示された在庫量と、予測調剤量表示欄14に表示された予測調剤量とを考慮して、画面10に表示された発注すべき医薬品をどの程度発注するかを簡単に決定することができる。これにより、発注業務に要する時間を削減することができる。また、発注の精度が向上し、過剰な在庫状態または不足する在庫状態を回避することができる。 Since the information necessary for ordering is collected on the screen 10, the orderer can complete the drug ordering work only by using the screen 10. The orderer considers, for example, the dispensing amount displayed in the dispensing amount display column 12 on the day, the inventory amount displayed in the inventory amount display column 13, and the predicted dispensing amount displayed in the predicted dispensing amount display column 14. Thus, it is possible to easily determine how much the medicine displayed on the screen 10 should be ordered. This can reduce the time required for ordering work. Further, the accuracy of ordering is improved, and an excessive stock state or an insufficient stock state can be avoided.

別の例では、医薬品の発注すべき量の推奨値が数量入力欄16にデフォルトで表示されるようにしてもよい。これにより、発注者は、デフォルトで表示された推奨値を承諾するだけで、簡単に発注を行うことができ、これもまた、発注業務に要する時間の削減、および、過剰な在庫状態または不足する在庫状態を回避につながる。 In another example, the recommended value of the quantity to be ordered for the medicine may be displayed in the quantity input field 16 by default. This allows the orderer to place an order simply by accepting the recommended value displayed by default, which also reduces the time required for ordering work, and excessive inventory or shortage. It leads to avoiding stock status.

上述した医薬品の発注を支援するための新たなサービスは、例えば、以下に説明する医薬品の調剤量を予測するためのコンピュータシステムによって実現され得る。 The new service for supporting the ordering of the above-mentioned medicine can be realized by, for example, a computer system for predicting the dispensing amount of the medicine described below.

2.医薬品の調剤量を予測するためのコンピュータシステムの構成
図2Aは、医薬品の調剤量を予測するためのコンピュータシステム100の構成の一例を示す。
2. Configuration of Computer System for Predicting Dispensed Amount of Pharmaceutical Product FIG. 2A shows an example of the configuration of a computer system 100 for predicting a dispensed amount of medical product.

コンピュータシステム100は、データベース部200に接続されている。また、コンピュータシステム100は、少なくとも1つの薬局端末装置300にネットワーク400を介して接続されている。 The computer system 100 is connected to the database unit 200. Further, the computer system 100 is connected to at least one pharmacy terminal device 300 via a network 400.

ネットワーク400は、任意の種類のネットワークであり得る。ネットワーク400は、例えば、インターネットであってもよいし、LANであってもよい。ネットワーク400は、有線ネットワークであってもよいし、無線ネットワークであってもよい。 The network 400 can be any type of network. The network 400 may be the Internet or a LAN, for example. The network 400 may be a wired network or a wireless network.

コンピュータシステム100の一例は、医薬品の発注を支援するための新たなサービスを提供するサービスプロバイダに設置されているコンピュータ(例えば、サーバ装置)であるが、これに限定されない。薬局端末装置300の一例は、調剤薬局に設置されているコンピュータ(例えば、端末装置)であるが、これに限定されない。例えば、薬局端末装置300は、ネットワークを介して、調剤データを管理するレセプトコンピュータシステム(図示せず)に接続され得る。レセプトコンピュータシステムは、例えば、薬局端末装置300が接続されている調剤薬局のローカルネットワーク内に位置してもよいし、調剤薬局のローカルネットワーク外に位置してもよい。後者の場合には、レセプトコンピュータシステムは、ネットワーク400を介して薬局端末装置300に接続されることができる。ここで、コンピュータ(サーバ装置または端末装置)は、任意のタイプのコンピュータであり得る。例えば、端末装置は、スマートフォン、タブレット、パーソナルコンピュータ、スマートグラス等の任意のタイプの端末装置であり得る。 An example of the computer system 100 is a computer (for example, a server device) installed in a service provider that provides a new service for supporting ordering of medicines, but is not limited to this. An example of the pharmacy terminal device 300 is a computer (for example, a terminal device) installed in a dispensing pharmacy, but is not limited to this. For example, the pharmacy terminal device 300 may be connected via a network to a receipt computer system (not shown) that manages dispensing data. The receipt computer system may be located, for example, in the 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 can be connected to the pharmacy terminal device 300 via the 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, smart glasses, or the like.

データベース部200には、例えば、少なくとも1つの薬局端末装置300から送信された薬局に関するデータが格納され得る。 The database unit 200 may store, for example, data about a pharmacy transmitted from at least one pharmacy terminal device 300.

図2Bは、医薬品の調剤量を予測するためのコンピュータシステム100の具体的な構成の一例を示す。 FIG. 2B shows an example of a specific configuration of the computer system 100 for predicting the amount of medicine to be dispensed.

コンピュータシステム100は、インターフェース部110と、プロセッサ部120と、メモリ130部とを備える。 The computer system 100 includes an interface unit 110, a processor unit 120, and a memory unit 130.

インターフェース部110は、コンピュータシステム100の外部と情報のやり取りを行う。コンピュータシステム100のプロセッサ部120は、インターフェース部110を介して、コンピュータシステム100の外部から情報を受信することが可能であり、コンピュータシステム100の外部に情報を送信することが可能である。インターフェース部110は、任意の形式で情報のやり取りを行うことができる。 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 via the interface unit 110, and can send the information to the outside of the computer system 100. The interface unit 110 can exchange information in any format.

インターフェース部110は、例えば、コンピュータシステム100に情報を入力することを可能にする入力部を備える。入力部が、どのような態様でコンピュータシステム100に情報を入力することを可能にするかは問わない。例えば、入力部がタッチパネルである場合には、ユーザがタッチパネルにタッチすることによって情報を入力するようにしてもよい。あるいは、入力部がマウスである場合には、ユーザがマウスを操作することによって情報を入力するようにしてもよい。あるいは、入力部がキーボードである場合には、ユーザがキーボードのキーを押下することによって情報を入力するようにしてもよい。あるいは、入力部がマイクである場合には、ユーザがマイクに音声を入力することによって情報を入力するようにしてもよい。あるいは、入力部がカメラである場合には、カメラが撮像した情報を入力するようにしてもよい。あるいは、入力部がデータ読み取り装置である場合には、コンピュータシステム100に接続された記憶媒体から情報を読み取ることによって情報を入力するようにしてもよい。あるいは、入力部が受信器である場合、受信器がネットワークを介してコンピュータシステム100の外部から情報を受信することにより入力してもよい。 The interface unit 110 includes, for example, an input unit that enables information to be input to the computer system 100. It does not matter how the input unit enables information to be input to the computer system 100. For example, when the input unit is a touch panel, the user may input the information by touching the touch panel. Alternatively, when the input unit is a mouse, the user may input the information by operating the mouse. Alternatively, when the input unit is a keyboard, the user may input information by pressing a key on the keyboard. Alternatively, when the input unit is a microphone, the user may input information by inputting voice into the microphone. Alternatively, when the input unit is a camera, information captured by the camera may be input. Alternatively, when the input unit is a data reading device, the information may be input by reading the information from a storage medium connected to the computer system 100. Alternatively, when the input unit is a receiver, the receiver may input information by receiving information from outside the computer system 100 via a network.

インターフェース部110は、例えば、コンピュータシステム100から情報を出力することを可能にする出力部を備える。出力部が、どのような態様でコンピュータシステム100から情報を出力することを可能にするかは問わない。例えば、出力部が表示画面である場合、表示画面に情報を出力するようにしてもよい。あるいは、出力部がスピーカである場合には、スピーカからの音声によって情報を出力するようにしてもよい。あるいは、出力部がデータ書き込み装置である場合、コンピュータシステム100に接続された記憶媒体に情報を書き込むことによって情報を出力するようにしてもよい。あるいは、出力部が送信器である場合、送信器がネットワークを介してコンピュータシステム100の外部に情報を送信することにより出力してもよい。例えば、インターフェース部110の出力部は、ネットワーク400を介して薬局端末装置300に情報を送信し、薬局端末装置300の出力部(例えば、表示画面)に情報を表示させることができる。例えば、薬局端末装置300の表示画面に、図1の画面10等の画面を表示させることができる。インターフェース部110の出力部は、例えば、プロセッサ部120によって予測された調剤量を出力することができる。一実施形態では、インターフェース部110の出力部は、例えば、プロセッサ部120によって予測された医薬品を発注すべき量の推奨値を出力することができる。 The interface unit 110 includes, for example, an output unit that enables the computer system 100 to output information. It does not matter how the output unit enables the computer system 100 to output information. For example, when the output unit is a display screen, 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 in a storage medium connected to the computer system 100. Alternatively, when the output unit is a transmitter, the transmitter may output the information by 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 (eg, 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 the dispensing amount predicted by the processor unit 120, for example. In one embodiment, the output unit of the interface unit 110 may output, for example, a recommended value of the quantity to be ordered of the drug predicted by the processor unit 120.

プロセッサ部120は、コンピュータシステム100の処理を実行し、かつ、コンピュータシステム100全体の動作を制御する。プロセッサ部120は、メモリ部130に格納されているプログラムを読み出し、そのプログラムを実行する。これにより、コンピュータシステム100を所望のステップを実行するシステムとして機能させることが可能である。プロセッサ部120は、単一のプロセッサによって実装されてもよいし、複数のプロセッサによって実装されてもよい。 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 the program stored in the memory unit 130 and executes the program. This allows 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 multiple processors.

メモリ部130は、コンピュータシステム100の処理を実行するために必要とされるプログラムやそのプログラムの実行に必要とされるデータ等を格納する。メモリ部130は、医薬品の調剤量を予測するための処理をプロセッサ部120に行わせるためのプログラム(例えば、後述する図6、図7、図8に示される処理を実現するプログラム)を格納してもよい。ここで、プログラムをどのようにしてメモリ部130に格納するかは問わない。例えば、プログラムは、メモリ部130にプリインストールされていてもよい。あるいは、プログラムは、ネットワークを経由してダウンロードされることによってメモリ部130にインストールされるようにしてもよい。この場合、ネットワークの種類は問わない。メモリ部130は、任意の記憶手段によって実装され得る。 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 stores a program for causing the processor unit 120 to perform a process for predicting a dispensing amount of a drug (for example, a program that implements a process shown in FIGS. 6, 7, and 8 described later). May be. Here, it does not matter how the program is stored in the memory unit 130. For example, the program may be preinstalled in the memory unit 130. Alternatively, the program may be installed in the memory unit 130 by being downloaded via the network. In this case, the type of network does not matter. The memory unit 130 can be implemented by any storage means.

データベース部200は、例えば、薬局に関するデータを格納し得る。データベース部200は、各薬局の薬局端末装置300または付随するレセプトコンピュータシステムによってネットワーク400を介して送信された薬局に関するデータを格納し得る。 The database unit 200 may store, for example, data regarding a pharmacy. The database unit 200 may store data about the pharmacy transmitted via the network 400 by the pharmacy terminal device 300 of each pharmacy or the accompanying receipt computer system.

薬局に関するデータは、例えば、薬局での調剤に関する調剤データを含む。調剤データは、例えば、どの薬局が、どの患者に対して、いつ、何の医薬品を、どのくらい調剤したかのデータを含み、各薬局のレセプトコンピュータシステムによって調剤毎に生成される。調剤データは、例えば、薬局ID、患者ID、調剤日時、医薬品ID、調剤量を含み得る。例えば、調剤日時は、任意の単位であり得、秒単位であってもよいし、分単位であってもよいし、時間単位であってもよいし、日単位であってもよいし、週単位であってもよいが、日単位の調剤量予測を行うためには、日単位であることが好ましい。例えば、医薬品IDは、医薬品と1対1で対応付けられる調剤単位コードであり得、例えば、YJコードであり得る。 The data on the pharmacy includes, for example, dispensing data on dispensing at the pharmacy. The dispensation data includes, for example, data of which pharmacy dispensed which medicine to which patient at what time 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, a dispensing date and time, a drug ID, and a dispensing amount. For example, the dispensing date and time may be in arbitrary units, may be in seconds, may be in minutes, may be in hours, may be in days, week Although it may be in units, it is preferably in units of days in order to predict the dosage amount on a daily basis. For example, the drug ID may be a dispensing unit code that is associated with the drug one-to-one, and may be, for example, a YJ code.

調剤データは、調剤した日の月(1月、2月、3月、・・・等)、曜日(日、月、火、水、・・・等)をさらに含み得る。 The dispensing data may further include the month of the dispensed day (January, February, March,... Etc.) and the day of the week (Sunday, Mon, Tue, Wed..., Etc.).

調剤データは、休日フラグをさらに含み得る。休日フラグは、特定の日が休日であることを示すフラグである。休日フラグは、例えば、調剤した日(調剤日)が休日であることを示す当日休日フラグ、調剤日の1週間後が休日であることを示す翌週休日フラグ、調剤日の1週間前が休日であることを示す前週休日フラグ、調剤日の翌日が休日であることを示す翌日休日フラグ、調剤日の前日が休日であることを示す前日休日フラグを含む。ここで、休日とは、法律で定められた一般的な意味での休日に加えて、薬局が業務を休む日(店休日)も含み得る。 The dispensing data may further include holiday flags. The holiday flag is a flag indicating that a specific day is a holiday. The holiday flag is, for example, a current day holiday flag indicating that the dispensing day (dispensing day) is a holiday, a next week holiday flag indicating that one week after the dispensing day is a holiday, and one week before the dispensing day is a holiday. It includes a previous-week holiday flag indicating that there is a day, a next-day holiday flag indicating that the next day of the dispensing day is a holiday, and a previous-day holiday flag indicating that the day before the dispensing day is a holiday. Here, the holiday may include a day when the pharmacy is closed (store holiday) in addition to a holiday in a general sense defined by law.

薬局に関するデータは、例えば、調剤した日の気象情報(例えば、気温、湿度等)、調剤した日の花粉の飛散量、調剤した日の特定の疾病の患者数(例えば、インフルエンザ患者数)、その特定の疾病がウイルス性である場合にはウイルス型(例えば、インフルエンザウイルス型)を含み得る。例えば、インフルエンザ患者数は、国立感染症研究所によって公開されている情報を用いることができる。薬局に関するデータは、例えば、薬局の位置情報/立地条件(例えば、駅からの距離、病院からの距離等)、薬局周辺の病院の位置情報/立地条件(例えば、駅からの距離、周辺の人口密度等)を含み得る。 Data relating to pharmacies include, for example, weather information on the day of dispensing (eg, temperature, humidity, etc.), the amount of pollen scattered on the day of dispensing, the number of patients with a particular disease on the day of dispensing (eg, the number of influenza patients), If the particular disease is viral, it may include a viral type (eg, influenza virus type). For example, the number of influenza patients can use information published by the National Institute of Infectious Diseases. Data related to pharmacies include, for example, location information/location conditions of pharmacies (eg, distance from station, distance from hospital, etc.), location information/location conditions of hospitals around pharmacies (eg, distance from station, population of the surrounding area). Density, etc.).

データベース部200は、例えば、発注データをさらに格納するようにしてもよい。発注データは、発注毎に生成されるデータである。発注データは、例えば、発注単位コード、発注日時、発注量、発注先等を含む。発注単位コードは、包装単位(発注単位)と1対1で対応付けられるコードであり、例えば、GTIN(Global Trade Item Number)コードまたはJANコードであり得る。 The database unit 200 may further store order data, for example. The order data is data generated for each order. The order data includes, for example, an order unit code, order date and time, order quantity, order destination, and the like. The ordering unit code is a code that is associated with the packaging unit (ordering unit) on a one-to-one basis, and may be, for example, a GTIN (Global Trade Item Number) code or a JAN code.

データベース部200は、例えば、在庫データをさらに格納するようにしてもよい。在庫データは、例えば、薬局の現在の在庫量および適正在庫量を示す情報を含む。現在の在庫量は、例えば、初期在庫量と、調剤データと、発注データとに基づいて算出され得る。例えば、調剤データによって出庫量が分かり、在庫データによって入庫量が分かることから、初期在庫量と、入庫量および出庫量との関係を累積的に計算することにより、現在の在庫量が算出される。これにより、頻繁な在庫チェックを行う必要がなくなり、在庫管理の手間が削減されることになる。もちろん、現在の在庫量は、実際の在庫チェックの結果であってもよい。適正在庫量は、医薬品毎に設定される値であり、各薬局によって設定されることができる。 The database unit 200 may further store inventory data, for example. The inventory data includes, for example, information indicating the current inventory amount and the proper inventory amount of the pharmacy. The current stock amount can be calculated, for example, based on the initial stock amount, the dispensing data, and the order data. For example, the dispensing amount is known from the dispensing data, and the receipt amount is known from the inventory data. Therefore, the current inventory amount is calculated by cumulatively calculating the relationship between the initial inventory amount and the receipt amount and the delivery amount. .. This eliminates the need for frequent inventory checks and reduces the labor of inventory management. Of course, the current inventory quantity may be the result of the actual inventory check. The appropriate stock amount is a value set for each drug and can be set by each pharmacy.

図3Aは、データベース部200に格納される調剤データのデータ構成の一例を示す。図3Aでは、調剤毎に生成される調剤データ310の一例を示す。 FIG. 3A shows an example of the data structure of the dispensing data stored in the database unit 200. In FIG. 3A, an example of the dispensing data 310 generated for each dispensing is shown.

例えば、レセプトコンピュータシステムが、調剤毎にID(図3Aに示される例では、8ze2g4、ixd6f3、v89smz等)を付与してデータ310を生成する。例えば、レセプトコンピュータシステムは、入力されたレセプトデータを構文解析することにより、調剤データ310を生成することができる。生成された調剤データ310は、データベース部200に送られ、調剤毎に格納される。各調剤データ310は、例えば、調剤日時、薬局ID、医薬品ID、患者ID、調剤量の項目を含む。 For example, the receipt computer system assigns an ID (8ze2g4, ixd6f3, v89smz, etc. in the example shown in FIG. 3A) to each dispensing to generate the data 310. For example, the receipt computer system can generate the dispensing data 310 by parsing the 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 of dispensing date, pharmacy ID, drug ID, patient ID, and dispensing amount, for example.

図3Bは、データベース部200に格納される調剤データのデータ構成の別の一例を示す。図3Bでは、図3Aに示される調剤データ310を薬局毎にかつ医薬品毎に集約したデータ320を示す。 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.

図3Bに示される例では、薬局ID:5DJ1の薬局の調剤データ310、薬局ID:J7F5の薬局の調剤データ310、薬局ID:E1XHの薬局の調剤データ310が集約されている。調剤量小計は、その薬局でその日に調剤された特定の医薬品の合計調剤量を表している。 In the example shown in FIG. 3B, the pharmacy dispensing data 310 of the pharmacy ID: 5DJ1, the pharmacy dispensing data 310 of the pharmacy ID: J7F5, and the pharmacy dispensing data 310 of the pharmacy ID: E1XH are aggregated. The dispensed subtotal represents the total dispensed amount of a particular drug dispensed at that pharmacy that day.

上述したデータの例は一例であり、データベース部200は、他の任意のデータを格納し得る。 The example of the data described above is an example, and the database unit 200 may store other arbitrary data.

図2Aおよび図2Bに示される例では、データベース部200は、コンピュータシステム100の外部に設けられているが、本発明はこれに限定されない。データベース部200の少なくとも一部をコンピュータシステム100の内部に設けることも可能である。このとき、データベース部200の少なくとも一部は、メモリ部130を実装する記憶手段と同一の記憶手段によって実装されてもよいし、メモリ部130を実装する記憶手段とは別の記憶手段によって実装されてもよい。いずれにせよ、データベース部200の少なくとも一部は、コンピュータシステム100のための格納部として構成される。データベース部200の構成は、特定のハードウェア構成に限定されない。例えば、データベース部200は、単一のハードウェア部品で構成されてもよいし、複数のハードウェア部品で構成されてもよい。例えば、データベース部200は、コンピュータシステム100の外付けハードディスク装置として構成されてもよいし、ネットワークを介して接続されるクラウド上のストレージとして構成されてもよい。 In the example shown in FIGS. 2A and 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. At this time, at least a part of the database unit 200 may be implemented by the same storage unit that implements the memory unit 130, or may be implemented by a storage unit different from the storage unit that implements the memory unit 130. May be. 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 particular hardware configuration. For example, the database unit 200 may be composed of a single hardware component or may be composed of a plurality of hardware components. 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.

例えば、コンピュータシステム100がデータベース部200から調剤データを受信する代わりに、コンピュータシステム100は、レセプトコンピュータシステム(図示せず)にインターフェース部110を介して接続され、レセプトコンピュータシステムから直接調剤データを受信することも本発明の範囲内である。 For example, instead of the computer system 100 receiving the dispensing data from the database unit 200, the computer system 100 is connected to the receiving computer system (not shown) via the interface unit 110 and receives the dispensing data directly from the receiving computer system. It is also within the scope of the present invention.

図4Aは、プロセッサ部120の構成の一例を示す。 FIG. 4A shows an example of the configuration of the processor unit 120.

プロセッサ部120は、取得手段121と、予測手段122とを備える。 The processor unit 120 includes an acquisition unit 121 and a prediction unit 122.

取得手段121は、薬局に関するデータを取得するように構成されている。薬局に関するデータは、例えば、調剤データを含む。調剤データは、例えば、どの薬局が、どの患者に対して、いつ、何の医薬品を、どのくらい調剤したかのデータを含む。調剤データは、例えば、図3Aを参照して上述したようなデータ構成または図3Bを参照して上述したようなデータ構成を有し得る。 The acquisition means 121 is configured to acquire data regarding a pharmacy. The data regarding the pharmacy includes, for example, dispensing data. The dispensing data includes, for example, data of which pharmacy dispensed what medicine to which patient, when, and how much. 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.

取得手段121は、例えば、薬局に関するデータに付与されるタイムスタンプまたは調剤データ内の調剤日時を用いてフィルタリングし、過去の所定日時または所定期間内の薬局に関するデータのみを取得するようにしてもよい。例えば、取得手段121は、調剤日前1週間〜1年間の薬局に関するデータ、例えば、調剤日前14日間の薬局に関するデータ、調剤日前30日間の薬局に関するデータ、調剤日前60日間の薬局に関するデータ、調剤日前90日間の薬局に関するデータ、または、調剤日前180日間の薬局に関するデータのみを取得することができる。例えば、取得手段121は、調剤日4日前〜1週間の薬局に関するデータ、例えば、調剤日4日前〜14日前の間の薬局に関するデータ、調剤日4日前〜30日前の間の薬局に関するデータ、調剤日4日前〜60日前の間の薬局に関するデータ、調剤日4日前〜90日前の間の薬局に関するデータ、または、調剤日4日前〜180日前の間の薬局に関するデータのみを取得することができる。例えば、取得手段121は、調剤日前90日間の薬局に関するデータ、または、調剤日4日前〜90日前の間の薬局に関するデータを取得することが好ましい。90日が医薬品を処方可能な最大日数であり、90日前までが調剤の傾向を最もよく反映しており、90日前までの薬局に関するデータを学習に用いることにより、後述する予測手段122による予測の精度が、向上するからである。 The acquisition unit 121 may perform filtering by using, for example, a time stamp added to the data on the pharmacy or the dispensing date and time in the dispensing data to obtain only the data on the pharmacy within a predetermined date and time in the past or a predetermined period. .. For example, the acquisition unit 121 includes data on a pharmacy for 1 week to 1 year before the dispensing day, for example, data on a pharmacy for 14 days before the dispensing day, data on a pharmacy for 30 days before the dispensing day, data on a pharmacy for 60 days before the dispensing day, and a dispensing day before Only data for 90 days of pharmacies or 180 days before the dispensing day can be obtained. For example, the acquisition unit 121 includes data on a pharmacy from 4 days before to 1 week before the dispensing day, for example, data on a pharmacy from 4 days to 14 days before the dispensing day, data on a pharmacy from 4 days before to 30 days before the dispensing day, and dispensing. Only data on pharmacies between 4 and 60 days before the day, data on pharmacies between 4 and 90 days before the dispensing day, or data on pharmacies between 4 and 180 days before the dispensing date can be obtained. For example, the acquisition unit 121 preferably acquires data on a pharmacy for 90 days before the dispensing day, or data on a pharmacy for 4 days to 90 days before the dispensing day. 90 days is the maximum number of days that a drug can be prescribed, and the tendency of dispensing is best reflected up to 90 days before. By using the data on the pharmacy up to 90 days before for learning, This is because the accuracy is improved.

取得手段121は、例えば、データベース部200に格納されている薬局に関するデータを通信インターフェース部110を介して取得するようにしてもよい。あるいは、取得手段121は、通信インターフェース部110を介して薬局端末装置300または付随するレセプトコンピュータシステムから受信された薬局に関するデータを取得するようにしてもよい。取得された薬局に関するデータは、決定手段122に渡される。 The acquisition unit 121 may acquire, for example, the data about the pharmacy stored in the database unit 200 via the communication interface unit 110. Alternatively, the acquisition unit 121 may acquire the data regarding the pharmacy received from the pharmacy terminal device 300 or the attendant receipt computer system via the communication interface unit 110. The acquired data about the pharmacy is passed to the determining unit 122.

取得手段121はさらに、発注データを取得するように構成され得る。発注データは、発注毎に生成されるデータである。取得手段121はさらに、調剤薬局の在庫を示す情報を含む在庫データを取得するように構成され得る。在庫データは、例えば、在庫をチェックする毎に生成され得るデータであってもよいし、例えば、初期在庫量と、調剤データと、発注データとに基づいて算出されるデータであってもよい。取得手段121は、例えば、発注データまたは在庫データ内の日時の情報を用いてフィルタリングし、特定の日時または期間の発注データまたは在庫データのみを取得するようにしてもよい。これにより、医薬品を発注しようとする日現在の在庫データのみを扱うことができるようになり、後続の処理負荷が軽減される。 The acquisition means 121 may be further configured to acquire order data. The order data is data generated for each order. The acquisition means 121 may be further configured to acquire inventory data including information indicating inventory of a dispensing pharmacy. The inventory data may be, for example, data that can be generated each time the inventory is checked, or may be data that is calculated based on the initial inventory amount, the dispensing data, and the order data, for example. For example, the acquisition unit 121 may perform filtering by using the date and time information in the order data or the inventory data to acquire only the order data or the inventory data of a specific date and time or period. As a result, it becomes possible to handle only the inventory data as of the day when the medicine is ordered, and the subsequent processing load is reduced.

取得手段121は、例えば、データベース部200に格納されている発注データおよび/または在庫データを通信インターフェース部110を介して取得するようにしてもよい。取得された発注データおよび在庫データは、後の処理のために変換手段123に渡され得る。 The acquisition unit 121 may acquire the order data and/or inventory data stored in the database unit 200 via the communication interface unit 110, for example. The acquired order data and inventory data can be passed to the conversion means 123 for later processing.

予測手段122は、例えば、取得手段121が取得した薬局に関するデータに基づいて、薬局における医薬品の調剤量を予測するように構成されている。 The prediction unit 122 is configured to predict the dispensing amount of the drug at the pharmacy, for example, based on the data about the pharmacy acquired by the acquisition unit 121.

一実施形態において、予測手段122は、例えば、機械学習を用いて、薬局における医薬品の調剤量を予測することができる。予測手段122は、例えば、線形回帰モデルを利用した機械学習によって薬局における医薬品の調剤量を予測するようにしてもよい。線形回帰モデルは、取得手段121によって取得されたデータを使用して予め学習処理がなされた学習済みモデルである。線形回帰モデルは、各医薬品について定義され得る。 In one embodiment, the prediction means 122 can predict the dispensed amount of the drug at the pharmacy, for example, using machine learning. The prediction unit 122 may predict the dispensing amount of the drug in the pharmacy by machine learning using a linear regression model, for example. The linear regression model is a learned model that has been subjected to a learning process in advance using the data acquired by the acquisition means 121. A linear regression model can be defined for each drug.

例えば、医薬品iの線形回帰モデルyは、
=w+w+・・・+w+α
で表される。取得手段121によって取得されたデータに基づく学習処理では、例えば、薬局に関するデータのうちの調剤日の月、調剤日の曜日、調剤日に関する休日フラグを説明変数xとし、薬局に関するデータのうちの調剤量小計を目的変数yとして、係数wを決定することにより、学習済モデルが構築される。例えば、或る調剤日の月、曜日、休日フラグを説明変数xとし、その調剤日の翌日の調剤量小計を目的変数yとして、構築された学習済モデルは、翌日の調剤量を予測することが可能な学習済モデルとなる。例えば、或る調剤日の月、曜日、休日フラグを説明変数xとし、その調剤日の翌々日の調剤量小計を目的変数yとして、構築された学習済モデルは、翌々日の調剤量を予測することが可能な学習済モデルとなる。このように、調剤量を予測したい将来の日に応じて、学習に用いる調剤量小計を変えることにより、所望の将来の日の調剤量を予測することが可能な学習済モデルを構築することができる。このとき、特定の薬局から取得された薬局に関するデータを用いて、その薬局特有の学習済モデル(専用学習済モデル)を構築するようにしてもよいし、不特定の薬局から取得された薬局に関するデータを用いて、一般的な学習済モデル(汎用学習済モデル)を構築するようにしてもよい。例えば、学習処理では、薬局に関するデータに対して前処理を施したうえで、前処理を施された薬局に関するデータを用いて学習済みモデルを構築するようにしてもよい。前処理として、任意の処理を行うことができる。例えば、休日フラグの有無に基づいて、目的変数に用いられる調剤量小計を増減させるようにしてもよい。これにより、例えば、月末や年末等の時期的な要因で薬剤の需要および必要在庫量が特異的に変動することに対応した、より精緻な予測が可能になり得る。
For example, the linear regression model y i of drug i is
y i =w 1 x 1 +w 2 x 2 +...+w k x k
It is represented by. In the learning process based on the data acquired by the acquisition means 121, for example, the month of the dispensing day, the day of the week of the dispensing day, and the holiday flag related to the dispensing day in the data related to the pharmacy are set as the explanatory variables x k, and the data related to the pharmacy is selected. The learned model is constructed by determining the coefficient w k with the subtotal of the dispensing amount as the target variable y i . For example, the month of some dispensing date, day of the week, the holiday flag as explanatory variable x k, the next day of the dispensing amount subtotal of the preparation date for the purpose of variable y i, learned model that has been built, predict the next day of the dispensing amount It becomes a learned model that can be done. For example, the month of some dispensing date, day of the week, the holiday flag as explanatory variable x k, the dispensing amount subtotal of two days later of its preparation date as objective variable y i, trained model that has been built, predict the dispensing amount of two days later It becomes a learned model that can be done. In this way, it is possible to construct a learned model that can predict the dispensing amount of a desired future day by changing the dispensing amount subtotal used for learning according to the future day for which the dispensing amount is desired to be predicted. it can. At this time, the learned model (dedicated learned model) peculiar to the pharmacy may be constructed using the data on the pharmacy acquired from the specific pharmacy, or the pharmacy acquired from the unspecified pharmacy A general trained model (general-purpose trained model) may be constructed using the data. For example, in the learning process, pre-processing may be performed on the data on the pharmacy, and then the learned model may be constructed using the pre-processed data on the pharmacy. Arbitrary processing can be performed as preprocessing. For example, the dispensing subtotal used as the objective variable may be increased or decreased based on the presence or absence of a holiday flag. As a result, for example, it is possible to make a more precise forecast corresponding to a specific change in demand and required stock amount of a drug due to a time factor such as the end of the month or the end of the year.

例えば、翌日の調剤量を予測することが可能な学習済の線形回帰モデルの説明変数に、運用段階で得られたその日の薬局に関するデータを入力すると、翌日の予測調剤量が出力され得る。例えば、翌々日の調剤量を予測することが可能な学習済の線形回帰モデルの説明変数に、運用段階で得られたその日の薬局に関するデータを入力すると、翌々日の予測調剤量が出力され得る。 For example, if the data about the pharmacy of the day obtained at the operation stage is input to the explanatory variable of the learned linear regression model capable of predicting the dispensing amount of the next day, the predicted dispensing amount of the next day can be output. For example, when the data about the pharmacy of the day obtained at the operation stage is input to the explanatory variable of the learned linear regression model capable of predicting the dose of the day after the next day, the dose of the day after the forecast can be output.

予測手段122は、例えば、ニューラルネットワークを利用した機械学習によって薬局における医薬品の調剤量を予測するようにしてもよい。ニューラルネットワークは、各医薬品について定義され得る。 The predicting means 122 may predict the amount of a drug dispensed in a pharmacy by machine learning using a neural network, for example. A neural network can be defined for each drug.

図5は、予測手段122が利用し得るニューラルネットワーク1220の構造の一例を示す。 FIG. 5 shows an example of the structure of the neural network 1220 that can be used by the prediction means 122.

ニューラルネットワーク1220は、入力層と、少なくとも1つの隠れ層と、出力層とを有する。ニューラルネットワーク1220の入力層のノード数は、入力されるデータの次元数に対応する。ニューラルネットワーク300の隠れ層は、任意の数のノードを含むことができる。ニューラルネットワーク1220の出力層のノード数は、出力されるデータの次元数に対応する。例えば、医薬品の翌日の調剤量を予測する場合、出力層のノード数は1となる。例えば、医薬品の翌日の調剤量、2日後の調剤量、3日後の調剤量を予測する場合、出力層のノード数は3となる。 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 input data. The hidden layer of neural network 300 may 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 output data. For example, when predicting the dispensing amount of a drug on the next day, the number of nodes in the output layer is 1. For example, when predicting the amount of medicine dispensed the next day, the amount of drug dispensed two days later, and the amount of drug dispensed three days later, the number of nodes in the output layer is three.

ニューラルネットワーク1220は、取得手段121が取得したデータを使用して予め学習処理がなされ得る。学習処理は、取得手段121が取得したデータを使用して、ニューラルネットワーク1220の隠れ層の各ノードの重み係数を計算する処理である。学習処理では、例えば、薬局に関するデータ(例えば、医薬品を調剤した日の月、医薬品を調剤した日の曜日、医薬品を調剤した日の翌週休日フラグ、医薬品を調剤した日の前週休日フラグ、医薬品を調剤した日の当日休日フラグ、医薬品を調剤した日の翌日休日フラグ、医薬品を調剤した日の調剤量小計等)を入力用教師データとし、その翌日の調剤量小計を出力用教師データとして、所定期間内(例えば、90日間、または4日前〜90日前までの87日間等)の複数のデータを使用してニューラルネットワーク1220の隠れ層の各ノードの重み係数を計算することにより、翌日の調剤量を予測することが可能な学習済モデルを構築することができる。学習処理では、例えば、医薬品を調剤した日の薬局に関するデータを入力用教師データとし、その翌日の調剤量小計と、2日後の調剤量小計と、3日後の調剤量小計とを出力用教師データとして、所定期間内の複数のデータを使用してニューラルネットワーク1220の隠れ層の各ノードの重み係数を計算することにより、翌日、2日後、および3日後の調剤量をそれぞれ予測することが可能な学習済モデルを構築することができる。このとき、特定の薬局から取得された薬局に関するデータを用いて、その薬局特有の学習済モデル(専用学習済モデル)を構築するようにしてもよいし、不特定の薬局から取得された薬局に関するデータを用いて、一般的な学習済モデル(汎用学習済モデル)を構築するようにしてもよい。 The neural network 1220 can 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 the weight coefficient of each node in the hidden layer of the neural network 1220 using the data acquired by the acquisition unit 121. In the learning process, for example, data about the pharmacy (for example, the month when the drug is dispensed, the day when the drug is dispensed, the holiday flag next week when the drug is dispensed, the previous week holiday flag when the drug is dispensed, the drug The same day holiday flag on the day the drug was dispensed, the holiday flag on the day after the drug was dispensed, and the dispensing amount subtotal on the day the drug was dispensed) were used as input teacher data, and the dispensing amount subtotal for the next day was used as output teacher data. By calculating the weighting coefficient of each node of the hidden layer of the neural network 1220 using a plurality of data within a period (for example, 90 days, or 87 days from 4 days before to 90 days before), the amount of dispensing on the next day A trained model capable of predicting can be constructed. In the learning process, for example, the data about the pharmacy on the day when the drug is dispensed is used as the input teacher data, and the dispensing amount subtotal on the next day, the dispensing amount subtotal after 2 days, and the dispensing amount subtotal after 3 days are output as teacher data for output. By calculating the weighting coefficient of each node in the hidden layer of the neural network 1220 using a plurality of data within a predetermined period, it is possible to predict the dispensing amount on the next day, 2 days, and 3 days later, respectively. A trained model can be built. At this time, the learned model (dedicated learned model) peculiar to the pharmacy may be constructed using the data on the pharmacy acquired from the specific pharmacy, or the pharmacy acquired from the unspecified pharmacy A general trained model (general-purpose trained model) may be constructed using the data.

例えば、医薬品ID:622144801で表されるロサルタンカリウム錠25mg「アメル」について、図3Bに示されるデータを用いて、翌日の調剤量を予測することが可能な学習済モデルを構築する場合、薬局ID:5DJ1で表される薬局Aに特有の学習済モデルを構築するための(入力用教師データ,出力用教師データ)の組は、(2019年9月10日の薬局Aに関するデータ,2019年9月11日の薬局Aでの調剤量小計)、(2019年9月9日の薬局Aに関するデータ,2019年9月10日の薬局Aでの調剤量小計)、・・・(2019年6月12日の薬局Aに関するデータ,2019年6月13日の薬局Aでの調剤量小計)等であり得る。また、この場合、一般的な学習済モデルを構築するための(入力用教師データ,出力用教師データ)の組は、(2019年9月10日の薬局Aに関するデータ,2019年9月11日の薬局Aでの調剤量小計)、(2019年9月10日の薬局Bに関するデータ,2019年9月11日の薬局Bでの調剤量小計)、・・・(2019年9月9日の薬局Aに関するデータ,2019年9月10日の調剤量小計)、(2019年9月9日の薬局Bに関するデータ,2019年9月10日の薬局Bでの調剤量小計)、・・・(2019年6月12日の薬局Aに関するデータ,2019年6月13日の薬局Aでの調剤量小計)、(2019年6月12日の薬局Bに関するデータ,2019年6月13日の薬局Bでの調剤量小計)、・・・等であり得る。 For example, for a losartan potassium tablet 25 mg “Amel” represented by drug ID: 622144801, when using the data shown in FIG. 3B to construct a learned model capable of predicting the amount to be dispensed the next day, the pharmacy ID : (DJ teacher data for output, teacher data for output) for constructing a trained model peculiar to pharmacy A represented by 5DJ1 (data about pharmacy A on September 10, 2019, September 9, 2019 (Pharmacy A subtotal on March 11th), (Data regarding pharmacy A on September 9, 2019, Dispensing subtotal on pharmacy A on September 10, 2019), ... (June 2019 The data may be the data on the pharmacy A on the 12th, the dispensing amount subtotal on the pharmacy A on June 13, 2019). Further, in this case, a set of (input teacher data, output teacher data) for constructing a general learned model is (data relating to pharmacy A on September 10, 2019, September 11, 2019). (Pharmacy A subtotal of Pharmacy A), (Data on pharmacy B on September 10, 2019, Pharmacy B subtotal on September 11, 2019), ... (September 9, 2019 (Data on pharmacy A, subtotal amount of dispensing on September 10, 2019), (Data on pharmacy B on September 9, 2019, subtotal amount of dispensing on pharmacy B on September 10, 2019),... ( Data for pharmacy A on June 12, 2019, sub-dispensed amount for pharmacy A on June 13, 2019), (Data for pharmacy B on June 12, 2019, Pharmacy B on June 13, 2019) The sub-dispensing amount in the above),...

例えば、医薬品ID:622144801で表されるロサルタンカリウム錠25mg「アメル」について、図3Bに示されるデータを用いて、翌日、2日後、および3日後の調剤量を予測することが可能な学習済モデルを構築する場合、薬局ID:5DJ1で表される薬局Aに特有の学習済モデルを構築するための[入力用教師データ,出力用教師データ]の組は、[2019年9月8日の薬局Aに関するデータ,(2019年9月9日の薬局Aでの調剤量小計、2019年9月10日の薬局Aでの調剤量小計、2019年9月11日の薬局Aでの調剤量小計)]、[2019年9月7日の薬局Aに関するデータ,(2019年9月8日の薬局Aでの調剤量小計、2019年9月9日の薬局Aでの調剤量小計、2019年9月10日の薬局Aでの調剤量小計)]、・・・[2019年6月10日の薬局Aに関するデータ,(2019年6月11日の薬局Aでの調剤量小計、2019年6月12日の薬局Aでの調剤量小計、2019年6月13日の薬局Aでの調剤量小計)]等であり得る。また、この場合、一般的な学習済モデルを構築するための[入力用教師データ,出力用教師データ]の組は、[2019年9月8日の薬局Aに関するデータ,(2019年9月9日の薬局Aでの調剤量小計、2019年9月10日の薬局Aでの調剤量小計、2019年9月11日の薬局Aでの調剤量小計)]、[2019年9月8日の薬局Bに関するデータ,(2019年9月9日の薬局Aでの調剤量小計、2019年9月10日の薬局Bでの調剤量小計、2019年9月11日の薬局Bでの調剤量小計)]、・・・[2019年9月7日の薬局Aに関するデータ,(2019年9月8日の薬局Aでの調剤量小計、2019年9月9日の薬局Aでの調剤量小計、2019年9月10日の薬局Aでの調剤量小計)]、[2019年9月7日の薬局Bに関するデータ,(2019年9月8日の薬局Bでの調剤量小計、2019年9月9日の薬局Bでの調剤量小計、2019年9月10日の薬局Bでの調剤量小計)]、・・・[2019年6月10日の薬局Aに関するデータ,(2019年6月11日の薬局Aでの調剤量小計、2019年6月12日の薬局Aでの調剤量小計、2019年6月13日の薬局Aでの調剤量小計)]、[2019年6月10日の薬局Bに関するデータ,(2019年6月11日の薬局Bでの調剤量小計、2019年6月12日の薬局Bでの調剤量小計、2019年6月13日の薬局Bでの調剤量小計)]、・・・等であり得る。 For example, with respect to losartan potassium tablet 25 mg “Amel” represented by drug ID: 622144801, a learned model capable of predicting the amount to be dispensed the next day, 2 days, and 3 days after using the data shown in FIG. 3B. , The set of [input teacher data, output teacher data] for building the learned model peculiar to pharmacy A represented by pharmacy ID: 5DJ1 is [pharmacy on September 8, 2019] Data on A, (Subtotal amount of dispensing at Pharmacy A on September 9, 2019, Subtotal amount of dispensing at Pharmacy A on September 10, 2019, Subtotal amount of dispensing at Pharmacy A on September 11, 2019) ], [Data on Pharmacy A on September 7, 2019, (Subtotal amount of dispensing at Pharmacy A on September 8, 2019, Subtotal amount of dispensing at Pharmacy A on September 9, 2019, September 2019 10: Pharmacy A subtotal on day 10]],... [Data on pharmacy A on June 10, 2019, (Subtotal dosage on pharmacy A on June 11, 2019, June 12, 2019] Sub-total amount dispensed at Pharmacy A for the day, Sub-total amount dispensed at Pharmacy A on June 13, 2019)] and the like. In this case, the set of [input teacher data, output teacher data] for constructing a general learned model is [data relating to pharmacy A on September 8, 2019, (September 9, 2019 Sub-total of the amount dispensed at the pharmacy A on Sunday, Sub-total of the amount dispensed at the pharmacy A on September 10, 2019, Sub-total amount dispensed at the pharmacy A on September 11, 2019)], [September 8, 2019 Data on pharmacy B, (Subtotal amount of pharmacy A on September 9, 2019, Subtotal amount of pharmacy B on September 10, 2019, Subtotal amount of pharmacy B on September 11, 2019 )],... [Data on Pharmacy A on September 7, 2019, (Subtotal amount of pharmacy A at September 8, 2019, Subtotal amount of pharmacy A at September 9, 2019, Subtotal of the amount dispensed at Pharmacy A on September 10, 2019]], [Data for Pharmacy B on September 7, 2019, (Subtotal amount dispensed at Pharmacy B on September 8, 2019, September 2019] 9: Pharmacy B subtotal on September 9, 2019 Pharmacy B pharmacy B on September 10, 2019]],... [Data on pharmacy A on June 10, 2019, (June 11, 2019 Sub-total amount dispensed at pharmacy A for the day, Sub-total total dose for pharmacy A on June 12, 2019, Sub-total dose for pharmacy A on June 13, 2019)], [June 10, 2019 Data on pharmacy B, (Subtotal amount of pharmacy B on June 11, 2019, Subtotal amount of pharmacy B on June 12, 2019, Subtotal amount of pharmacy B on June 13, 2019 )],..., etc.

例えば、翌日の調剤量を予測することが可能な学習済のニューラルネットワーク1220の入力層に、運用段階で得られたその日の薬局に関するデータを入力すると、出力層に翌日の調剤量が出力され得る。例えば、翌日、2日後、および3日後の調剤量を予測することが可能な学習済のニューラルネットワーク1220の入力層に、運用段階で得られたその日の薬局に関するデータを入力すると、出力層に翌日の調剤量、2日後の調剤量、3日後の調剤量が出力され得る。 For example, if the data of the pharmacy of the day obtained in the operation stage is input to the input layer of the learned neural network 1220 capable of predicting the dose of the next day, the dose of the next day can be output to the output layer. .. For example, if the input layer of the learned neural network 1220 capable of predicting the dispensing amount on the following day, 2 days, and 3 days is input with the data on the pharmacy of the day obtained at the operation stage, the next day is input to the output layer. The amount dispensed after 2 days, the amount dispensed after 2 days, and the amount dispensed after 3 days can be output.

例えば、「医薬品を調剤した日の月」を入力データに用いることにより、季節を考慮して医薬品の調剤量を予測するようになる。季節を考慮することは、例えば、季節性の病気に効く医薬品の調剤量を予測する際に特に有用である。季節性の病気に効く医薬品は、季節によって必要とする患者の数が変動するからである。例えば、「医薬品を調剤した日の曜日」を入力データに用いることにより、患者の行動を考慮して医薬品の調剤量を予測するようになる。概して、週明けの月曜日等の休日明けは、薬局の患者数が増える傾向がある。このような、曜日に関連した患者の行動を考慮に入れることにより、予測の精度を向上させることができる。例えば、「休日フラグ」を入力データに用いることにより、薬局の休業日を考慮して医薬品の調剤量を予測するようになる。薬局の休業日には調剤量がゼロになるため、そのような調剤量がゼロになる特異日を考慮に入れることにより、予測の精度を向上させることができる。例えば、「休日フラグ」のうち「翌週休日フラグ」を入力データに用いることにより、上述した薬局の休業日に加えて、患者の変則的な行動を考慮して医薬品の調剤量を予測するようになる。例えば、定期的な調剤を受けている患者は、1週間後が祝日等により休日となる場合には、医薬品がまだ残っているにもかかわらず調剤を受けることがある。このような患者の変則的な行動までも考慮に入れることができるため、予測の精度を向上させることができる。例えば、「休日フラグ」のうち「前日休日フラグ」を入力データに用いることにより、上述した薬局の休業日に加えて、患者の行動を考慮して医薬品の調剤量を予測するようになる。上述したように、休日明けは、薬局の患者数が増える傾向があるため、休日に関連した患者の行動を考慮に入れることにより、予測の精度を向上させることができる。 For example, by using "month of the day on which a drug is dispensed" as input data, it becomes possible to predict the amount of drug dispensed in consideration of the season. Considering the season is particularly useful, for example, in predicting the dosage of a drug that is effective against seasonal diseases. This is because the number of patients required for a drug that is effective against seasonal diseases varies depending on the season. For example, by using “the day of the week when a drug is dispensed” as input data, the dose of the drug can be predicted in consideration of the behavior of the patient. In general, the number of patients in the pharmacy tends to increase at the end of holidays such as Monday after new week. The accuracy of the prediction can be improved by taking into consideration such patient behavior related to the day of the week. For example, by using the “holiday flag” as input data, the dispensing amount of the drug can be predicted in consideration of the holidays of the pharmacy. Since the dispensed amount becomes zero on a pharmacy holiday, the accuracy of the prediction can be improved by taking into account such a specific day when the dispensed amount becomes zero. For example, by using the "next week's holiday flag" out of the "holiday flags" as input data, in addition to the pharmacy holidays described above, it is possible to predict the dispensing amount of a drug in consideration of the patient's anomalous behavior. Become. For example, a patient who receives regular dispensing may receive the dispensing when one week later becomes a holiday due to a holiday or the like, even though the medicine remains. Since even such irregular behavior of the patient can be taken into consideration, the accuracy of prediction can be improved. For example, by using the "previous day holiday flag" of the "holiday flag" as input data, the dispensing amount of the drug can be predicted in consideration of the behavior of the patient in addition to the above-mentioned closed days of the pharmacy. As described above, since the number of patients in the pharmacy tends to increase at the end of the holiday, the accuracy of the prediction can be improved by taking into consideration the behavior of the patients related to the holiday.

学習に用いられる薬局に関するデータをコンピュータシステム100が取得するタイミングは問わない。例えば、コンピュータシステム100は、定期的(例えば、1日毎、7日毎、14日毎、30日毎、90日毎、180日毎等)に薬局に関するデータを薬局端末装置300から取得するようにしてもよいし、不定期に(例えば、薬局において医薬品が調剤され、レセプトのデータが薬局端末装置300によって生成されたとき)に薬局に関するデータを薬局端末装置300から取得するようにしてもよい。例えば、コンピュータシステム100は、一度学習処理が完了した後は、学習に用いられる薬局に関するデータを取得しないようにしてもよいし、学習済モデルの更新のために、学習に用いられる薬局に関するデータを取得し続けるようにしてもよい。 The timing at which the computer system 100 acquires the data about the pharmacy used for learning does not matter. For example, the computer system 100 may periodically (for example, every 1 day, every 7 days, every 14 days, every 30 days, every 90 days, every 180 days, etc.) acquire data regarding a pharmacy from the pharmacy terminal device 300, Data relating to the pharmacy may be acquired from the pharmacy terminal device 300 irregularly (for example, when a drug is dispensed in the pharmacy and data of the receipt is generated by the pharmacy terminal device 300). For example, the computer system 100 may not acquire the data on the pharmacies used for the learning after the learning process is completed once, or may update the data on the pharmacies used for the learning to update the learned model. You may make it continue to acquire.

予測手段122によって予測された調剤量は、インターフェース部110を介して、コンピュータシステム100の外部に出力される。一例において、予測手段122によって予測された調剤量は、インターフェース部110を介して、薬局端末装置300に送信され、薬局端末装置300の出力部(例えば、表示画面)に表示されることができる。例えば、予測された調剤量は、図1の画面10の予測調剤量表示欄14に表示され得る。これにより、発注者は、医薬品を発注する際に将来の予測調剤量を考慮することができ、発注の精度が向上する。 The dispensing amount predicted by the prediction unit 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 unit 122 can be transmitted to the pharmacy terminal device 300 via the interface unit 110 and displayed on the output unit (eg, 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 of the screen 10 of FIG. As a result, the orderer can consider the future predicted dispensing amount when ordering the drug, and the ordering accuracy is improved.

図4Bは、プロセッサ部120の代替実施形態であるプロセッサ部120’の構成の一例を示す。図4Bでは、図4Aに示される要素と同一の要素に同じ参照番号を付し、ここでは説明を省略する。図4Bに示されるプロセッサ部120’は、図4Aに示される構成に加えて、第2の予測手段123を備えている構成である。 FIG. 4B shows an example of the configuration of a processor unit 120 ′ that is an alternative embodiment of the processor unit 120. In FIG. 4B, the same elements as those shown in FIG. 4A are designated by 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 unit 123 in addition to the configuration shown in FIG. 4A.

第2の予測手段123は、取得手段121によって取得された在庫データと、予測手段122によって予測された調剤量とに基づいて、医薬品を発注すべき量の推奨値を予測する。第2の予測手段123は、例えば、在庫データが示す現在の在庫量と、適正在庫量と、予測された調剤量とに基づいて、医薬品を発注すべき量の推奨値を予測することができる。適正在庫量は、医薬品毎に設定される値であり、各薬局によって設定されることができる。 The second predicting means 123 predicts a recommended value of the quantity to be ordered for the drug, based on the inventory data acquired by the acquiring means 121 and the dispensing amount predicted by the predicting means 122. The second predicting unit 123 can predict the recommended value of the quantity to order the drug based on, for example, the current stock quantity indicated by the stock data, the appropriate stock quantity, and the predicted dispensing quantity. .. The appropriate stock amount is a value set for each drug and can be set by each pharmacy.

第2の予測手段123は、例えば、予測された調剤量を現在の在庫量から減算した値と、適正在庫量とを比較し、予測された調剤量を現在の在庫量から減算した値が、適正在庫量を下回る場合に、医薬品を発注すべき量の推奨値を予測するように構成され得る。予測された調剤量を現在の在庫量から減算した値が適正在庫量を下回る場合には、将来の医薬品の調剤により、適正在庫量を下回ることが想定されるからである。 The second predicting means 123 compares, for example, a value obtained by subtracting the predicted dispensing amount from the current inventory amount with an appropriate inventory amount, and a value obtained by subtracting the predicted dispensing amount from the current inventory amount is It may be configured to predict a recommended value for the quantity of medicinal product to be ordered when the quantity is below the proper stock quantity. This is because if the value obtained by subtracting the predicted dispensing amount from the current inventory amount is less than the appropriate inventory amount, it may be expected to fall below the appropriate inventory amount due to future pharmaceutical dispensing.

第2の予測手段123は、例えば、現在の在庫量と、適正在庫量と、予測された調剤量とを用いて、発注すべき量の推奨値を予測することができる。例えば、発注すべき量の推奨値Eは、現在の在庫量Sと、適正在庫量Sと、予測された調剤量Sを用いて、
E=S+(S−S)+α
と表され得る。ここで、αは、適正在庫量に対してどれだけ余裕を持つかの指標であり、医薬品毎に各薬局によって設定され得る値である。
The second predicting unit 123 can predict the recommended value of the quantity to be ordered by using, for example, the current stock quantity, the proper stock quantity 0, and the predicted dispensing quantity. For example, the recommended value E of the quantity to be ordered is calculated using the current stock quantity S 1 , the proper stock quantity S 0, and the predicted dispensing quantity S E ,
E=S E +(S 0 −S 1 )+α
Can be expressed as Here, α is an index of how much margin is available for the appropriate inventory amount, and is a value that can be set by each pharmacy for each drug.

第2の予測手段123によって予測された推奨値は、インターフェース部110を介して、コンピュータシステム100の外部に出力される。一例において、第2の予測手段123によって予測された推奨値は、インターフェース部110を介して、薬局端末装置300に送信され、薬局端末装置300の出力部(例えば、表示画面)に表示されることができる。例えば、予測された推奨値は、図1の画面10の数量入力欄16にデフォルトで表示され得る。このとき、例えば、推奨値を発注単位に変換して表示するようにしてもよい。発注者は、デフォルトで表示された推奨値を承諾するだけで、簡単に発注を行うことができ、発注業務に要する時間を削減することができるようになる。 The recommended value predicted by the second predicting unit 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 unit 123 is transmitted to the pharmacy terminal device 300 via the interface unit 110 and displayed on the output unit (for example, display screen) of the pharmacy terminal device 300. You can For example, the predicted recommended value may be displayed by default in the quantity input field 16 of the screen 10 of FIG. At this time, for example, the recommended value may be converted into an order unit and displayed. The orderer can simply place an order by accepting the recommended value displayed by default, and the time required for ordering work can be reduced.

なお、上述したコンピュータシステム100の各構成要素は、単一のハードウェア部品で構成されていてもよいし、複数のハードウェア部品で構成されていてもよい。複数のハードウェア部品で構成される場合は、各ハードウェア部品が接続される態様は問わない。各ハードウェア部品は、無線で接続されてもよいし、有線で接続されてもよい。本発明のコンピュータシステム100は、特定のハードウェア構成には限定されない。プロセッサ部120、120’をデジタル回路ではなくアナログ回路によって構成することも本発明の範囲内である。本発明のコンピュータシステム100の構成は、その機能を実現できる限りにおいて上述したものに限定されない。 Each component of the computer system 100 described above may be configured by a single hardware component or may be configured by a plurality of hardware components. When it is configured with a plurality of hardware components, it does not matter how each hardware component is connected. Each hardware component may be connected wirelessly or by wire. The computer system 100 of the present invention is not limited to a particular hardware configuration. It is within the scope of the invention to configure the processor sections 120, 120' with analog circuits rather than digital circuits. The configuration of the computer system 100 of the present invention is not limited to that described above as long as its function can be realized.

3.医薬品の調剤量を予測するためのコンピュータシステムの処理
図6は、医薬品の調剤量を予測するためのコンピュータシステム100における処理の一例を示す。処理600は、コンピュータシステム100のプロセッサ部120において実行される。以下では、薬局Aで調剤され得る医薬品aの調剤量を予測する場合を例に説明する。
3. Processing of Computer System for Predicting Dispensed Amount of Pharmaceuticals FIG. 6 shows an example of processing in the computer system 100 for predicting a dispensed amount of pharmaceuticals. The process 600 is executed in the processor unit 120 of the computer system 100. In the following, a case will be described as an example in which the dispensing amount of the drug a that can be dispensed at the pharmacy A is predicted.

ステップS601では、プロセッサ部120の取得手段121が、薬局Aに関するデータを取得する。薬局Aに関するデータは、例えば、薬局Aでの医薬品aの調剤に関する調剤データ、例えば、薬局Aにおいて、予測処理を行う日に、医薬品aが、どのくらい調剤されたかのデータを含む。薬局Aに関するデータは、例えば、予測処理を行う日(医薬品aを調剤した日)の月、医薬品aを調剤した日の曜日、医薬品aを調剤した日の翌週休日フラグ、医薬品aを調剤した日の前週休日フラグ、医薬品aを調剤した日の当日休日フラグ、医薬品aを調剤した日の翌日休日フラグ、医薬品aを調剤した日の調剤量小計等を含み得るがこれらに限定されない。 In step S601, the acquisition unit 121 of the processor unit 120 acquires data regarding the pharmacy A. The data on the pharmacy A includes, for example, dispensing data on the dispensing of the drug a at the pharmacy A, for example, data on how much the drug a was dispensed on the day of the prediction process at the pharmacy A. The data relating to the pharmacy A is, for example, the month of the day on which the prediction process is performed (the day when the drug a is dispensed), the day of the week when the drug a is dispensed, the holiday flag next week on the day when the drug a is dispensed, the date when the drug a is dispensed. It may include, but is not limited to, the previous week's holiday flag, the current day's holiday flag on the day when the drug a is dispensed, the next day holiday flag on the day when the drug a is dispensed, and the dispensing amount subtotal on the day when the drug a is dispensed.

取得手段121は、例えば、薬局に関するデータに付与されるタイムスタンプまたは調剤データ内の調剤日時を用いてフィルタリングし、予測処理を行う日の薬局Aに関するデータを取得することができる。取得手段121は、例えば、データベース部200に格納されている薬局Aに関するデータを通信インターフェース部110を介して取得するようにしてもよい。あるいは、取得手段121は、通信インターフェース部110を介して薬局Aの薬局端末装置300または付随するレセプトコンピュータシステムから受信された薬局Aに関するデータを取得するようにしてもよい。取得された薬局Aに関するデータは、予測手段122に渡される。 The acquisition unit 121 can acquire the data on the pharmacy A on the day of performing the prediction process by filtering using the time stamp added to the data on the pharmacy or the dispensing date and time in the dispensing data, for example. The acquisition unit 121 may acquire the data on the pharmacy A stored in the database unit 200 via the communication interface unit 110, for example. Alternatively, the acquisition unit 121 may acquire the data about the pharmacy A received from the pharmacy terminal device 300 of the pharmacy A or the accompanying receipt computer system via the communication interface unit 110. The acquired data on the pharmacy A is passed to the prediction unit 122.

ステップS602では、プロセッサ部120の予測手段122が、ステップS601で取得された薬局Aに関するデータに基づいて、医薬品aの調剤量を予測する。 In step S602, the prediction unit 122 of the processor unit 120 predicts the dispensing amount of the drug a based on the data on the pharmacy A acquired in step S601.

予測手段122は、例えば、機械学習によって薬局における医薬品aの調剤量を予測する。利用される学習済モデルは、薬局に関するデータに基づいて学習処理がなされたモデルであり得る。学習済モデルは、薬局Aに対して個別に構築された専用学習済モデルであってもよいし、複数の薬局全体のために構築された汎用学習済モデルであってもよい。専用学習済モデルは、その薬局に関するデータに基づいて学習処理を施されているので、その薬局に特化した予測をすることができ、概して、精度は、汎用学習済モデルよりも高い。 The prediction means 122 predicts the dispensing amount of the drug a at the pharmacy, for example, by machine learning. The learned model used may be a model that has been subjected to a learning process based on data related to pharmacies. The trained model may be a dedicated trained model individually built for the pharmacy A, or may be a general-purpose trained model constructed for all of the pharmacies. Since the dedicated learned model is subjected to the learning process based on the data related to the pharmacy, it is possible to make a prediction specific to the pharmacy, and generally, the accuracy is higher than that of the generalized learned model.

機械学習は、例えば、線形回帰モデルを利用した機械学習であってもよいし、ニューラルネットワークを利用した機械学習であってもよい。例えば、機械学習によって構築された学習済モデルに、ステップS601で取得された薬局Aに関するデータを入力すると、医薬品aの調剤量が出力され得る。例えば、翌日の調剤量を予測するように構築された学習済モデルの出力は、医薬品aの翌日の調剤量となり、翌日、2日後、3日後の調剤量を予測するように構築された学習済モデルの出力は、医薬品aの翌日の調剤量、医薬品aの2日後の調剤量、および医薬品aの3日後の調剤量となる。 The machine learning may be machine learning using a linear regression model or machine learning using a neural network, for example. For example, when the data on the pharmacy A acquired in step S601 is input to the learned model constructed by machine learning, the dispensing amount of the drug a can be output. For example, the output of the trained model constructed to predict the dispensing amount of the next day is the dispensing amount of the next day of the medicine a, and the learned model constructed to predict the dispensing amount of the next day, 2 days, 3 days later. The output of the model is the dose of the drug a on the next day, the dose of the drug a after 2 days, and the dose of the drug a after 3 days.

予測手段121は、例えば、機械学習に代えて、任意の統計分析、例えば、回帰分析によって薬局Aにおける医薬品の調剤量を予測することができる。 The prediction means 121 can predict the dispensing amount of the drug in the pharmacy A by, for example, an arbitrary statistical analysis, for example, regression analysis, instead of machine learning.

医薬品aの調剤量が予測されると、ステップS603では、プロセッサ部120が、医薬品aの調剤量をインターフェース部110に渡し、インターフェース部110の出力部を介して、医薬品aの調剤量を出力する。 When the dispensing amount of the drug a is predicted, in step S603, the processor unit 120 passes the dispensing amount of the drug a to the interface unit 110, and outputs the dispensing amount of the drug a via the output unit of the interface unit 110. ..

一例において、予測手段122によって予測された調剤量は、インターフェース部110を介して、薬局端末装置300に送信され、薬局端末装置300の出力部(例えば、表示画面)に表示されることができる。 In one example, the dispensing amount predicted by the prediction unit 122 can be transmitted to the pharmacy terminal device 300 via the interface unit 110 and displayed on the output unit (eg, display screen) of the pharmacy terminal device 300.

複数の医薬品のそれぞれについて、ステップS601〜ステップS603を繰り返すことにより、複数の医薬品のそれぞれについての予測調剤量を出力することができる。これにより、例えば、複数の医薬品の予測調剤量を考慮して、発注すべき医薬品を決定することができるようになる。 By repeating Step S601 to Step S603 for each of the plurality of medicines, the predicted dispensing amount for each of the plurality of medicines can be output. Thereby, for example, it becomes possible to determine the medicine to be ordered in consideration of the predicted dispensing amounts of the plurality of medicines.

ステップS601〜ステップS603を行った後に、後述する学習処理と同様の処理を行うことにより、学習モデルを更新するようにしてもよい。これにより、学習モデルが薬局の状態の経時的変化に対応するように調節され、予測の精度を向上させることができる。 After performing steps S601 to S603, the learning model may be updated by performing the same processing as the learning processing described later. As a result, the learning model is adjusted to correspond to the change in the state of the pharmacy over time, and the accuracy of prediction can be improved.

上述した処理600の各ステップS601〜ステップS603が行われるタイミングは問わない。例えば、コンピュータシステム100が薬局端末装置300から予測調剤量のリクエストを受信したことに応答して、ステップS601〜ステップS603を行うようにすることができる。例えば、定期的(例えば、1時間、12時間、1日、1週間、1月、3月、6月、1年等)または不定期(例えば、薬局において医薬品が調剤され、レセプトのデータが薬局端末装置300に入力されたとき)にステップS601が行われることにより、コンピュータシステム100の取得手段121が薬局に関するデータを取得しておき、コンピュータシステム100が薬局端末装置300から予測調剤量のリクエストを受信したことに応答して、そのときに取得してある薬局に関するデータを用いて、ステップS602およびステップS603を行うようにすることができる。例えば、定期的(例えば、1時間、12時間、1日、1週間、1月、3月、6月、1年等)または不定期(例えば、薬局において医薬品が調剤され、レセプトのデータが薬局端末装置300に入力されたとき)にステップS601〜ステップS602が行われることにより、コンピュータシステム100の予測手段122が医薬品の調剤量を予測しておき、薬局端末装置300から予測調剤量のリクエストを受信したことに応答して、そのときに予測してある医薬品の調剤量を出力するように、ステップS603を行うようにすることができる。 The timing at which each of step S601 to step S603 of the process 600 described above is performed does not matter. For example, step S601 to step S603 can be performed in response to the computer system 100 receiving the request for the predicted dispensing amount from the pharmacy terminal device 300. For example, regularly (for example, 1 hour, 12 hours, 1 day, 1 week, 1 month, 3 months, 6 months, 1 year, etc.) or irregularly (for example, a drug is dispensed at a pharmacy, and data on the receipt is stored at the pharmacy. When input to the terminal device 300), step S601 is performed so that the acquisition unit 121 of the computer system 100 acquires data regarding a pharmacy, and the computer system 100 requests a predicted dispensing amount from the pharmacy terminal device 300. In response to the reception, the step S602 and the step S603 can be performed using the data about the pharmacy acquired at that time. For example, regularly (for example, 1 hour, 12 hours, 1 day, 1 week, 1 month, 3 months, 6 months, 1 year, etc.) or irregularly (for example, a drug is dispensed at a pharmacy, and data on the receipt is stored at the pharmacy. (When input to the terminal device 300), the prediction means 122 of the computer system 100 predicts the dispensing amount of the drug by performing steps S601 to S602, and requests the predicted dispensing amount from the pharmacy terminal device 300. In response to the reception, step S603 may be performed so as to output the predicted dispensing amount of the medicine at that time.

図7は、医薬品の調剤量を予測するためのコンピュータシステム100における処理の一例を示す。処理700は、コンピュータシステム100のプロセッサ部120において実行される。処理700は、医薬品を発注すべき量の推奨値を予測して出力するための処理である。以下では、薬局Aで調剤され得る医薬品aの発注すべき量の推奨値を予測して出力する場合を例に説明する。 FIG. 7 shows an example of processing in the computer system 100 for predicting the amount of medicine to be dispensed. The process 700 is executed in the processor unit 120 of the computer system 100. A process 700 is a process for predicting and outputting a recommended value of the quantity of medicines to be ordered. Hereinafter, a case will be described as an example in which the recommended value of the quantity to be ordered of the medicine a that can be dispensed at the pharmacy A is predicted and output.

ステップS701では、プロセッサ部120の取得手段121が、薬局Aに関するデータを取得する。ステップS701は、ステップS601と同様の処理であるため、ここでは説明を省略する。 In step S701, the acquisition unit 121 of the processor unit 120 acquires data regarding the pharmacy A. Since step S701 is the same process as step S601, description thereof will be omitted here.

ステップS702では、プロセッサ部120の取得手段121が、薬局Aの医薬品aの在庫データを取得する。在庫データは、例えば、在庫をチェックする毎に生成され得るデータであってもよいし、例えば、初期在庫量と、調剤データと、発注データとに基づいて算出されるデータであってもよい。 In step S702, the acquisition unit 121 of the processor unit 120 acquires the inventory data of the drug a in the pharmacy A. The inventory data may be, for example, data that can be generated each time the inventory is checked, or may be data that is calculated based on the initial inventory amount, the dispensing data, and the order data, for example.

取得手段121は、例えば、在庫データ内の日時の情報を用いてフィルタリングし、予測処理を行う日の在庫データのみを取得するようにしてもよい。取得手段121は、例えば、データベース部200に格納されている在庫データを通信インターフェース部110を介して取得するようにしてもよい。あるいは、取得手段121は、通信インターフェース部110を介して薬局Aの薬局端末装置300から受信された在庫データを取得するようにしてもよい。取得された在庫データは、第2の予測手段123に渡される。 For example, the acquisition unit 121 may perform filtering by using the date and time information in the inventory data and acquire only the inventory data on the day when the prediction process is performed. The acquisition unit 121 may acquire the inventory data stored in the database unit 200 via the communication interface unit 110, for example. Alternatively, the acquisition unit 121 may acquire the inventory data received from the pharmacy terminal device 300 of the pharmacy A via the communication interface unit 110. The acquired inventory data is passed to the second prediction means 123.

ステップS703では、プロセッサ部120の予測手段122が、ステップS701で取得された薬局Aに関するデータに基づいて、医薬品aの調剤量を予測する。ステップS703は、ステップS602と同様の処理であるため、ここでは説明を省略する。 In step S703, the prediction unit 122 of the processor unit 120 predicts the dispensing amount of the drug a based on the data on the pharmacy A acquired in step S701. Since step S703 is the same process as step S602, description thereof is omitted here.

ステップS704では、プロセッサ部120の第2の予測手段123が、ステップS703で予測された調剤量と、ステップS702で取得された在庫データとに基づいて、医薬品aを発注すべき量の推奨値を予測する。第2の予測手段123は、例えば、在庫データが示す医薬品aの現在の在庫量と、医薬品aの適正在庫量と、ステップS703で予測された調剤量とに基づいて、医薬品aを発注すべき量の推奨値を予測することができる。適正在庫量は、医薬品毎に設定される値であり、各薬局によって設定されることができる。 In step S704, the second predicting means 123 of the processor unit 120 makes a recommended value of the quantity to be ordered for the medicine a based on the dispensing amount predicted in step S703 and the inventory data acquired in step S702. Predict. The second prediction unit 123 should order the drug a based on 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, for example. Recommended values for quantity can be predicted. The appropriate stock amount is a value set for each drug and can be set by each pharmacy.

ステップS704では、例えば、第2の予測手段123が、予測された調剤量を医薬品aの現在の在庫量から減算した値と、医薬品aの適正在庫量とを比較し、予測された調剤量を医薬品aの現在の在庫量から減算した値が、医薬品aの適正在庫量を下回る場合に、医薬品aを発注すべき量の推奨値を予測するようにしてもよい。予測された調剤量を医薬品aの現在の在庫量から減算した値が医薬品aの適正在庫量以上である場合には、そもそも医薬品aを発注する必要がないと考えられるため、第2の予測手段123は、医薬品aを発注すべき量の推奨値を予測しなくてもよいが、それでもなお医薬品aを発注すべき量の推奨値を予測するようにしてもよい。 In step S704, for example, the second predicting means 123 compares the value obtained by subtracting the predicted dispensing amount from the current inventory amount of the drug a with the appropriate inventory amount of the drug a to determine the predicted dispensing amount. If the value subtracted from the current inventory amount of the drug a is less than the appropriate inventory amount of the drug a, the recommended value of the amount to be ordered for the drug a may be predicted. If the value obtained by subtracting the predicted dispensing amount from the current inventory amount of drug a is equal to or greater than the appropriate inventory amount of drug a, it is considered that it is not necessary to order drug a in the first place, so the second predicting means Although 123 does not have to predict the recommended value of the quantity for which drug a should be ordered, it may nevertheless predict the recommended value of the quantity for which drug a should be ordered.

例えば、医薬品aの発注すべき量の推奨値Eは、医薬品aの現在の在庫量S1aと、医薬品aの適正在庫量S0aと、医薬品aの予測された調剤量SEaを用いて、
=SEa+(S0a−S1a)+α
と表され得る。ここで、αは、医薬品aの適正在庫量に対してどれだけ余裕を持つかの指標であり、各薬局によって設定され得る値である。
For example, the recommended value E a of the quantity to be ordered for the drug a is calculated by using the current inventory amount S 1a of the drug a, the appropriate inventory amount S 0a of the drug a, and the predicted dispensing amount S Ea of the drug a. ,
E a =S Ea +(S 0a −S 1a )+α a
Can be expressed as Here, α a is an index of how much margin is available with respect to the appropriate stock amount of the drug a, and is a value that can be set by each pharmacy.

医薬品aを発注すべき量の推奨値が予測されると、ステップS705では、プロセッサ部120が、医薬品aを発注すべき量の推奨値をインターフェース部110に渡し、インターフェース部110の出力部を介して、医薬品aを発注すべき量の推奨値を出力する。 When the recommended value of the quantity to be ordered for the medicine a is predicted, the processor unit 120 passes the recommended value of the quantity to be ordered for the medicine a to the interface unit 110 through the output unit of the interface unit 110 in step S705. Then, the recommended value of the quantity to be ordered for the medicine a is output.

一例において、第2の予測手段123によって予測された推奨値は、インターフェース部110を介して、薬局端末装置300に送信され、薬局端末装置300の出力部(例えば、表示画面)に表示されることができる。 In one example, the recommended value predicted by the second prediction unit 123 is transmitted to the pharmacy terminal device 300 via the interface unit 110 and displayed on the output unit (for example, display screen) of the pharmacy terminal device 300. You can

複数の医薬品のそれぞれについて、ステップS701〜ステップS705を繰り返すことにより、複数の医薬品のそれぞれについての発注すべき量の推奨値を出力することができる。これにより、例えば、複数の医薬品の発注すべき量の推奨値を考慮して、発注すべき医薬品の発注量を決定することができるようになる。 By repeating steps S701 to S705 for each of the plurality of medicines, it is possible to output the recommended value of the quantity to be ordered for each of the plurality of medicines. Thereby, for example, it becomes possible to determine the order quantity of the medicine to be ordered in consideration of the recommended value of the quantity to be ordered of the plurality of medicines.

上述した処理700の各ステップS701〜ステップS705が行われるタイミングは問わない。任意のタイミングで各ステップS701〜ステップS605を行うことができる。 The timing at which each of step S701 to step S705 of the process 700 described above is performed does not matter. Each step S701 to step S605 can be performed at an arbitrary timing.

図8は、医薬品の調剤量を予測するためのコンピュータシステム100における処理の一例を示す。処理800は、医薬品の調剤量を予測するために用いられるモデルを構築するための処理であり、コンピュータシステム100のプロセッサ部120において実行される。 FIG. 8 shows an example of processing in the computer system 100 for predicting the amount of medicine to be dispensed. The process 800 is a process for constructing a model used for predicting the dispensing amount of a drug, and is executed by the processor unit 120 of the computer system 100.

ステップS801では、プロセッサ部120の取得手段121が、薬局に関するデータを取得する。薬局に関するデータは、例えば、調剤データを含む。調剤データは、例えば、どの薬局が、どの患者に対して、いつ、何の医薬品を、どのくらい調剤したかのデータを含む。調剤データは、例えば、図3Aを参照して上述したようなデータ構成を有するデータであってもよいし、図3Bを参照して上述したようなデータ構成を有するデータであってもよい。図3Aを参照して上述したようなデータである場合には、プロセッサ部120は、図3Bを参照して上述したような薬局毎にかつ医薬品毎に集約したデータとなるように、取得された薬局に関するデータに前処理を施すことができる。 In step S801, the acquisition unit 121 of the processor unit 120 acquires data regarding a pharmacy. The data regarding the pharmacy includes, for example, dispensing data. The dispensing data includes, for example, data of which pharmacy dispensed what medicine to which patient, when, and how much. The dispensing data may be, for example, data having the data structure described above with reference to FIG. 3A, or may be data having the data structure described above with reference to FIG. 3B. In the case of the data as described above with reference to FIG. 3A, the processor unit 120 is acquired so as to be the data aggregated for each pharmacy and for each drug as described above with reference to FIG. 3B. Data about the pharmacy can be preprocessed.

薬局に関するデータは、例えば、医薬品を調剤した日の月、医薬品を調剤した日の曜日、医薬品を調剤した日の翌週休日フラグ、医薬品を調剤した日の前週休日フラグ、医薬品を調剤した日の当日休日フラグ、医薬品を調剤した日の翌日休日フラグ、医薬品を調剤した日の調剤量小計等を含み得るがこれらに限定されない。 Data on pharmacies include, for example, the month on which the drug was dispensed, the day of the day on which the drug was dispensed, the next week's holiday flag on the day on which the drug was dispensed, the previous week's holiday flag on the day on which the drug was dispensed, the day on which the drug was dispensed It may include, but is not limited to, a holiday flag, a next-day holiday flag on the day when a medicine is dispensed, a subtotal of the amount of medicine dispensed on the day when a medicine is dispensed, and the like.

取得手段121は、例えば、薬局に関するデータに付与されるタイムスタンプまたは調剤データ内の調剤日時を用いてフィルタリングし、過去の所定日時または所定期間内の薬局に関するデータのみを取得するようにしてもよい。例えば、取得手段121は、調剤日前1週間〜1年間の薬局に関するデータ、例えば、調剤日前14日間の薬局に関するデータ、調剤日前30日間の薬局に関するデータ、調剤日前60日間の薬局に関するデータ、調剤日前90日間の薬局に関するデータ、または、調剤日前180日間の薬局に関するデータのみを取得することができる。例えば、取得手段121は、調剤日4日前〜1週間の薬局に関するデータ、例えば、調剤日4日前〜14日前の間の薬局に関するデータ、調剤日4日前〜30日前の間の薬局に関するデータ、調剤日4日前〜60日前の間の薬局に関するデータ、調剤日4日前〜90日前の間の薬局に関するデータ、または、調剤日4日前〜180日前の間の薬局に関するデータのみを取得することができる。例えば、取得手段121は、調剤日前90日間の薬局に関するデータ、または、調剤日4日前〜90日前の間の薬局に関するデータを取得することが好ましい。90日が医薬品を処方可能な最大日数であり、90日前までが調剤の傾向を最もよく反映しており、90日前までの薬局に関するデータをステップS802で用いることにより、構築されるモデルによる予測の精度が、向上するからである。 The acquisition unit 121 may perform filtering by using, for example, a time stamp added to the data on the pharmacy or the dispensing date and time in the dispensing data to obtain only the data on the pharmacy within a predetermined date and time in the past or a predetermined period. .. For example, the acquisition unit 121 includes data on a pharmacy for 1 week to 1 year before the dispensing day, for example, data on a pharmacy for 14 days before the dispensing day, data on a pharmacy for 30 days before the dispensing day, data on a pharmacy for 60 days before the dispensing day, and a dispensing day before Only data for 90 days of pharmacies or 180 days before the dispensing day can be obtained. For example, the acquisition unit 121 includes data on a pharmacy from 4 days before to 1 week before the dispensing day, for example, data on a pharmacy from 4 days to 14 days before the dispensing day, data on a pharmacy from 4 days before to 30 days before the dispensing day, and dispensing. Only data on pharmacies between 4 and 60 days before the day, data on pharmacies between 4 and 90 days before the dispensing day, or data on pharmacies between 4 and 180 days before the dispensing date can be obtained. For example, the acquisition unit 121 preferably acquires data on a pharmacy for 90 days before the dispensing day, or data on a pharmacy for 4 days to 90 days before the dispensing day. 90 days is the maximum number of days that a drug can be prescribed, and 90 days ago best reflects the tendency of dispensation. By using the data on the pharmacy up to 90 days ago in step S802, the prediction by the model constructed can be performed. This is because the accuracy is improved.

取得手段121は、例えば、データベース部200に格納されている薬局に関するデータを通信インターフェース部110を介して取得するようにしてもよい。あるいは、取得手段121は、通信インターフェース部110を介して薬局端末装置300または付随するレセプトコンピュータシステムから受信された薬局に関するデータを取得するようにしてもよい。 The acquisition unit 121 may acquire, for example, the data about the pharmacy stored in the database unit 200 via the communication interface unit 110. Alternatively, the acquisition unit 121 may acquire the data regarding the pharmacy received from the pharmacy terminal device 300 or the attendant receipt computer system via the communication interface unit 110.

取得手段121は、例えば、専用学習済モデルを構築する場合には、特定の薬局に関するデータのみを取得するようにしてもよいし、汎用学習済モデルを構築する場合には、複数の薬局に関するデータを取得するようにしてもよい。取得された薬局に関するデータは、決定手段122に渡される。 For example, the acquisition unit 121 may acquire only the data regarding a specific pharmacy when constructing a dedicated learned model, or the data regarding a plurality of pharmacies when constructing a general-purpose learned model. May be acquired. The acquired data about the pharmacy is passed to the determining unit 122.

ステップS802では、プロセッサ部120が、ステップS801で取得された薬局に関するデータを教師データとして学習する。これにより、医薬品の調剤量を予測するために用いられるモデル(学習済モデル)が構築される。 In step S802, the processor unit 120 learns the data about the pharmacy acquired in step S801 as teacher data. As a result, a model (learned model) used for predicting the dispensing amount of the drug is constructed.

例えば、線形回帰モデルを利用して学習済モデルを構築する場合、例えば、医薬品iの線形回帰モデルyは、
=w+w+・・・+w+α
で表される。ステップS802では、プロセッサ部120は、例えば、ステップS801で取得された薬局に関するデータのうちの調剤日の月、調剤日の曜日、調剤日の翌週休日フラグ、調剤日の前週休日フラグ、調剤日の当日休日フラグ、調剤日の翌日休日フラグのうちの少なくとも1つを説明変数xとし、薬局に関するデータのうちの調剤量小計を目的変数yとして、係数wを決定することにより、学習済モデルを構築することができる。例えば、目的変数yとして、調剤日の翌日の調剤量小計を用いると、構築された学習済モデルは、翌日の調剤量を予測することが可能な学習済モデルとなる。例えば、目的変数yとして、調剤日の2日後の調剤量小計を用いると、構築された学習済モデルは、翌々日の調剤量を予測することが可能な学習済モデルとなる。このように、調剤量を予測したい将来の日に応じて、学習に用いる調剤量小計を変えることにより、所望の将来の日の調剤量を予測することが可能な学習済モデルを構築することができる。
For example, when a trained model is constructed using a linear regression model, for example, the linear regression model y i of the drug i is
y i =w 1 x 1 +w 2 x 2 +...+w k x k
It is represented by. In step S802, the processor unit 120, for example, the month of the dispensing day, the day of the week of the dispensing day, the next weekday holiday flag of the dispensing day, the previous weekday holiday flag of the dispensing day, and the dispensing day of the data related to the pharmacy acquired in step S801. day holiday flag, and an explanatory variable x k at least one of the following day holiday flag dispensing date, the dispensing amount subtotal of the data relating to pharmacies as a dependent variable y i, by determining the coefficients w k, already learned Models can be built. For example, if a subtotal of the amount of the drug for the day following the drug dispensing day is used as the objective variable y i , the constructed learned model becomes a model for which the amount of the drug for the next day can be predicted. For example, when the dispensing amount subtotal two days after the dispensing day is used as the objective variable y i , the constructed learned model becomes a learned model capable of predicting the dispensing amount on the next day. In this way, it is possible to construct a learned model that can predict the dispensing amount of a desired future day by changing the dispensing amount subtotal used for learning according to the future day for which the dispensing amount is desired to be predicted. it can.

例えば、ニューラルネットワークを利用して学習済モデルを構築する場合、ステップS802では、プロセッサ部120は、ステップS801で取得された薬局に関するデータのうちの調剤日の月、調剤日の曜日、調剤日の翌週休日フラグ、調剤日の前週休日フラグ、調剤日の当日休日フラグ、調剤日の翌日休日フラグ、医調剤日の調剤量小計のうちの少なくとも1つを入力用教師データとし、薬局に関するデータのうちの特定の日の調剤量小計を出力用教師データとして、ニューラルネットワークの隠れ層の各ノードの重み係数を計算することにより、学習済モデルを構築することができる。例えば、出力用教師データとして、調剤日の翌日の調剤量小計を用いると、構築された学習済モデルは、翌日の調剤量を予測することが可能な学習済モデルとなる。例えば、出力用教師データとして、調剤日の翌日の調剤量小計、2日後の調剤量小計、および3日後の調剤量小計を用いると、構築された学習済モデルは、翌日、2日後、および3日後の調剤量を予測することが可能な学習済モデルとなる。このように、調剤量を予測したい将来の日に応じて、学習に用いる調剤量小計を変えることにより、所望の将来の日の調剤量を予測することが可能な学習済モデルを構築することができる。 For example, in the case of building a learned model using a neural network, in step S802, the processor unit 120, in the data on the pharmacy acquired in step S801, the month of the dispensing day, the day of the dispensing day, and the dispensing day. At least one of the following week's holiday flag, the previous week's holiday flag on the dispensing day, the same day's holiday flag on the dispensing day, the next day's holiday flag on the dispensing day, and the dispensing amount subtotal of the dispensing day of the dispensing day is used as input teacher data, and the pharmacy data The learned model can be constructed by calculating the weighting coefficient of each node in the hidden layer of the neural network using the subtotal of the amount of dispensing on the specific day as the output teacher data. For example, when the dispensing amount subtotal on the day after the dispensing day is used as the output teacher data, the constructed learned model becomes a learned model capable of predicting the dispensing amount on the next day. For example, when the dispensing amount subtotal on the next day of the dispensing day, the dispensing amount subtotal on the 2nd day, and the dispensing amount subtotal on the 3rd day are used as the teacher data for output, the learned model constructed is the next day, 2 days, and 3 days later. It is a learned model that can predict the amount of drug dispensed after day. In this way, it is possible to construct a learned model that can predict the dispensing amount of a desired future day by changing the dispensing amount subtotal used for learning according to the future day for which the dispensing amount is desired to be predicted. it can.

例えば、「医薬品を調剤した日の月」を入力データに用いることにより、季節を考慮して医薬品の調剤量を予測するようになる。季節を考慮することは、例えば、季節性の病気に効く医薬品の調剤量を予測する際に特に有用である。季節性の病気に効く医薬品は、季節によって必要とする患者の数が変動するからである。例えば、「医薬品を調剤した日の曜日」を入力データに用いることにより、患者の行動を考慮して医薬品の調剤量を予測するようになる。概して、週明けの月曜日等の休日明けは、薬局の患者数が増える傾向がある。このような、曜日に関連した患者の行動を考慮に入れることにより、予測の精度を向上させることができる。例えば、「休日フラグ」を入力データに用いることにより、薬局の休業日を考慮して医薬品の調剤量を予測するようになる。薬局の休業日には調剤量がゼロになるため、そのような調剤量がゼロになる特異日を考慮に入れることにより、予測の精度を向上させることができる。例えば、「休日フラグ」のうち「翌週休日フラグ」を入力データに用いることにより、上述した薬局の休業日に加えて、患者の変則的な行動を考慮して医薬品の調剤量を予測するようになる。例えば、定期的な調剤を受けている患者は、1週間後が祝日等により休日となる場合には、医薬品がまだ残っているにもかかわらず調剤を受けることがある。このような患者の変則的な行動までも考慮に入れることができるため、予測の精度を向上させることができる。例えば、「休日フラグ」のうち「前日休日フラグ」を入力データに用いることにより、上述した薬局の休業日に加えて、患者の行動を考慮して医薬品の調剤量を予測するようになる。上述したように、休日明けは、薬局の患者数が増える傾向があるため、休日に関連した患者の行動を考慮に入れることにより、予測の精度を向上させることができる。 For example, by using "month of the day on which a drug is dispensed" as input data, it becomes possible to predict the amount of drug dispensed in consideration of the season. Considering the season is particularly useful, for example, in predicting the dosage of a drug that is effective against seasonal diseases. This is because the number of patients required for a drug that is effective against seasonal diseases varies depending on the season. For example, by using “the day of the week when a drug is dispensed” as input data, the dose of the drug can be predicted in consideration of the behavior of the patient. In general, the number of patients in the pharmacy tends to increase at the end of holidays such as Monday after new week. The accuracy of the prediction can be improved by taking into consideration such patient behavior related to the day of the week. For example, by using the “holiday flag” as input data, the dispensing amount of the drug can be predicted in consideration of the holidays of the pharmacy. Since the dispensed amount becomes zero on a pharmacy holiday, the accuracy of the prediction can be improved by taking into account such a specific day when the dispensed amount becomes zero. For example, by using the "next week's holiday flag" out of the "holiday flags" as input data, in addition to the pharmacy holidays described above, it is possible to predict the dispensing amount of a drug in consideration of the patient's anomalous behavior. Become. For example, a patient who receives regular dispensing may receive the dispensing when one week later becomes a holiday due to a holiday or the like, even though the medicine remains. Since even such irregular behavior of the patient can be taken into consideration, the accuracy of prediction can be improved. For example, by using the "previous day holiday flag" of the "holiday flag" as input data, the dispensing amount of the drug can be predicted in consideration of the behavior of the patient in addition to the above-mentioned closed days of the pharmacy. As described above, since the number of patients in the pharmacy tends to increase at the end of the holiday, the accuracy of the prediction can be improved by taking into consideration the behavior of the patients related to the holiday.

上述した例では、特定の順序で処理が行われることを説明したが、各処理の順序は説明されたものに限定されず、論理的に可能な任意の順序で行われ得る。 In the above-described example, it has been described that the processing is performed in a specific order, but the order of each processing is not limited to that described, and the processing may be performed in any logically possible order.

図6、図7を参照して上述した例では、図6、図7、図8に示される各ステップの処理は、プロセッサ部120とメモリ部130に格納されたプログラムとによって実現することが説明されたが、本発明はこれに限定されない。図6、図7、図8に示される各ステップの処理のうちの少なくとも1つは、制御回路などのハードウェア構成によって実現されてもよい。 In the example described above with reference to FIGS. 6 and 7, it is explained that the processing of each step shown in FIGS. 6, 7, and 8 is realized by the processor unit 120 and the program stored in the memory unit 130. However, the present invention is not limited to this. At least one of the processes of the steps shown in FIGS. 6, 7, and 8 may be realized by a hardware configuration such as a control circuit.

上述した例では、コンピュータシステム100が、薬局端末装置300にネットワーク400を介して接続されるコンピュータ(例えば、サーバ装置)である場合を例に説明したが、本発明は、これに限定されない。コンピュータシステム100は、プロセッサ部を備える任意の情報処理装置であり得る。例えば、コンピュータシステム100は、薬局端末装置300であり得る。この場合、コンピュータシステム100が利用できるデータは、その薬局に関するデータに限られるため、コンピュータシステム100によって構築される学習済モデルは、その薬局特有の専用学習済モデルとなり得る。 In the above-described example, the case where the computer system 100 is a computer (for example, a server device) connected to the pharmacy terminal device 300 via the network 400 has been described as an example, but the present invention is not limited to this. The computer system 100 may be any information processing device including a processor unit. For example, the computer system 100 may be the pharmacy terminal device 300. In this case, since the data that can be used by the computer system 100 is limited to the data related to the pharmacy, the learned model constructed by the computer system 100 can be a dedicated learned model specific to the pharmacy.

本発明は、上述した実施形態に限定されるものではない。本発明は、特許請求の範囲によってのみその範囲が解釈されるべきであることが理解される。当業者は、本発明の具体的な好ましい実施形態の記載から、本発明の記載および技術常識に基づいて等価な範囲を実施することができることが理解される。 The present invention is not limited to the above embodiments. It is understood that the scope of the present invention should be construed only by the scope of the claims. It is understood that those skilled in the art can implement an equivalent range based on the description of the present invention and common general knowledge from the description of the specific preferred embodiments of the present invention.

本発明は、適切な医薬品の発注を支援することが可能な、医薬品の調剤量を予測するためのシステム等を提供するものとして有用である。 INDUSTRIAL APPLICABILITY The present invention is useful as a system and the like for predicting the amount of a drug to be dispensed, which can support the ordering of an appropriate drug.

10 画面
100 コンピュータシステム
110 インターフェース部
120 プロセッサ部
130 メモリ部
10 screens 100 computer system 110 interface unit 120 processor unit 130 memory unit

Claims (15)

医薬品の調剤量を予測するためのコンピュータシステムであって、
薬局に関するデータを取得する取得手段であって、前記薬局に関するデータは、前記医薬品を調剤した日の1週間後が休日であることを示す翌週休日フラグを含む、取得手段と、
前記薬局に関するデータに基づいて、学習済モデルを用いて前記薬局における医薬品の将来の調剤量を予測する予測手段であって、前記学習済モデルは、少なくとも前記薬局に関するデータと前記医薬品を調剤した日の調剤量小計とを教師データとする学習処理によって構築され、前記学習処理は、前記教師データに対する前処理を含み、前記前処理は、前記医薬品を調剤した日の翌週休日フラグの有無に基づいて、前記学習処理に用いられる前記医薬品を調剤した日の調剤量小計を増減させることを含む、予測手段と、
前記予測された調剤量を出力する出力手段と
を備えるコンピュータシステム。
A computer system for predicting the dispensing amount of a medicine,
An acquisition means for acquiring data regarding a pharmacy, wherein the data regarding the pharmacy includes a next week holiday flag indicating that one week after the day when the drug is dispensed is a holiday ;
A predicting means for predicting a future dispensing amount of a drug in the pharmacy by using a learned model based on data on the pharmacy , the learned model being at least data on the pharmacy and the date of dispensing the drug. It is constructed by a learning process with the dispensing amount subtotal of and the teacher data, the learning process includes a pre-process for the teacher data, the pre-process is based on the presence or absence of a holiday flag next week on the day the drug is dispensed. A prediction means including increasing or decreasing a dispensing subtotal on the day when the drug used in the learning process is dispensed ,
An output unit that outputs the predicted dispensing amount.
前記薬局に関するデータは、前記医薬品を調剤した日の月を含む、請求項1に記載のコンピュータシステム。 The computer system according to claim 1, wherein the data related to the pharmacy includes the month of the day when the drug is dispensed. 前記薬局に関するデータは、前記日の曜日をさらに含む、請求項2に記載のコンピュータシステム。 The computer system of claim 2, wherein the pharmacy data further includes the day of the week. 前記薬局に関するデータは、前記日の1週間前が休日であることを示す前週休日フラグ、前記日が休日であることを示す当日休日フラグ、前記日の翌日が休日であることを示す翌日休日フラグのうちの少なくとも1つをさらに含む、請求項2または請求項3に記載のコンピュータシステム。 The data related to the pharmacy includes a previous weekly holiday flag indicating that one week before the day is a holiday, a current day holiday flag indicating that the day is a holiday, and a next day holiday flag indicating that the day after the day is a holiday. The computer system of claim 2 or claim 3 , further comprising at least one of: 前記薬局に関するデータは、前記日の1週間前が休日であることを示す前週休日フラグと、前記日が休日であることを示す当日休日フラグと、前記日の翌日が休日であることを示す翌日休日フラグとをさらに含む、請求項2または請求項3に記載のコンピュータシステム。 The data related to the pharmacy 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 is a holiday, and a next day indicating that the next day is a holiday. The computer system according to claim 2 or 3 , further comprising a holiday flag. 前記学習済モデルは、線形回帰モデルであり、
前記予測手段は、前記薬局に関するデータを前記線形回帰モデルの説明変数に入力することにより、前記医薬品の将来の調剤量を得る、請求項1〜5のいずれか一項に記載のコンピュータシステム。
The trained model is a linear regression model,
The computer system according to any one of claims 1 to 5, wherein the prediction unit obtains a future dispensing amount of the drug by inputting data related to the pharmacy into an explanatory variable of the linear regression model.
前記予測手段は、少なくとも1日後〜3日後の3日間の前記医薬品の調剤量を予測する、請求項1〜のいずれか一項に記載のコンピュータシステム。 The prediction means predicts the dispensing amount of the medicament for at least one day after 1-3 days after three days, according to any one of claims 1 to 6 computer system. 前記取得手段は、医薬品の在庫データをさらに取得し、
前記コンピュータシステムは、前記予測された調剤量と、前記在庫データとに基づいて、前記医薬品を発注すべき量の推奨値を予測する第2の予測手段をさらに備え、
前記出力手段は、前記予測された発注すべき量の推奨値を出力する、請求項1〜のいずれか一項に記載のコンピュータシステム。
The acquisition means further acquires drug inventory data,
The computer system further comprises second predicting means for predicting a recommended value of the quantity to be ordered for the medicine, based on the predicted dispensing amount and the inventory data.
And the output means, the outputs of the recommended value of the predicted amount to be ordered has, according to any one of claims 1-7 computer system.
前記第2の予測手段は、
前記医薬品の現在の在庫量から前記予測された調剤量を減算した値と、前記医薬品の適正在庫量とを比較することと、
前記医薬品の現在の在庫量から前記予測された調剤量を減算した値が前記医薬品の適正在庫量を下回る場合に、前記医薬品を発注すべき量の推奨値を予測することと
を行うように構成されている、請求項に記載のコンピュータシステム。
The second prediction means is
Comparing a value obtained by subtracting the predicted dispensing amount from the current inventory amount of the drug, and an appropriate inventory amount of the drug,
When the value obtained by subtracting the predicted dispensing amount from the current inventory amount of the drug is less than the appropriate inventory amount of the drug, the recommended value of the amount to be ordered of the drug is predicted. The computer system according to claim 8 , which is:
医薬品の調剤量を予測するための方法であって、前記方法は、プロセッサ部を備えるコンピュータシステムにおいて実行され、前記方法は、
前記プロセッサ部が、薬局に関するデータを取得することであって、前記薬局に関するデータは、前記医薬品を調剤した日の1週間後が休日であることを示す翌週休日フラグを含む、ことと、
前記プロセッサ部が、前記薬局に関するデータに基づいて、学習済モデルを用いて前記薬局における医薬品の将来の調剤量を予測することであって、前記学習済モデルは、少なくとも前記薬局に関するデータと前記医薬品を調剤した日の調剤量小計とを教師データとする学習処理によって構築され、前記学習処理は、前記教師データに対する前処理を含み、前記前処理は、前記医薬品を調剤した日の翌週休日フラグの有無に基づいて、前記学習処理に用いられる前記医薬品を調剤した日の調剤量小計を増減させることを含む、ことと、
前記プロセッサ部が、前記予測された調剤量を出力することと
を含む方法。
A method for predicting a dose of a pharmaceutical product, the method being executed in a computer system including a processor unit, the method comprising:
The processor unit is to obtain data regarding a pharmacy, and the data regarding the pharmacy includes a next-week holiday flag indicating that one week after the day when the drug is dispensed is a holiday, and
The processor unit predicts a future dispensing amount of a drug in the pharmacy using a learned model based on the data related to the pharmacy, and the learned model includes at least data related to the pharmacy and the drug. Is constructed by a learning process with the dispensing amount subtotal of the day when the drug is dispensed as teacher data, the learning process includes a pre-process for the teacher data, and the pre-process includes a holiday flag of the week following the day when the drug is dispensed. Based on the presence or absence, including increasing or decreasing the dispensing amount subtotal of the day of dispensing the drug used in the learning process ,
The processor unit outputting the predicted dispensed amount.
医薬品の調剤量を予測するためのプログラムであって、前記プログラムは、プロセッサ部を備えるシステムにおいて実行され、前記プログラムは、
薬局に関するデータを取得することであって、前記薬局に関するデータは、前記医薬品を調剤した日の1週間後が休日であることを示す翌週休日フラグを含む、ことと、
前記薬局に関するデータに基づいて、学習済モデルを用いて前記薬局における医薬品の将来の調剤量を予測することであって、前記学習済モデルは、少なくとも前記薬局に関するデータと前記医薬品を調剤した日の調剤量小計とを教師データとする学習処理によって構築され、前記学習処理は、前記教師データに対する前処理を含み、前記前処理は、前記医薬品を調剤した日の翌週休日フラグの有無に基づいて、前記学習処理に用いられる前記医薬品を調剤した日の調剤量小計を増減させることを含む、ことと、
前記予測された調剤量を出力することと
を含む処理を前記プロセッサ部に実行させる、プログラム。
A program for predicting a dispensing amount of a drug, wherein the program is executed in a system including a processor unit, and the program is
Obtaining data regarding a pharmacy, wherein the data regarding the pharmacy includes a next-week holiday flag indicating that one week after the day when the drug is dispensed is a holiday, and
Predicting the future dose of a drug in the pharmacy using a learned model based on data about the pharmacy , wherein the learned model is at least data about the pharmacy and the date on which the drug was dispensed. Constructed by a learning process with the dispensing amount subtotal and teacher data, the learning process includes a pre-process for the teacher data, the pre-process, based on the presence or absence of the next week holiday flag of the day the drug was dispensed, Including increasing or decreasing a dispensing subtotal on the day when the drug used in the learning process is dispensed ,
A program that causes the processor unit to perform processing including outputting the predicted dispensing amount.
医薬品の調剤量を予測するために用いられるモデルを構築するためのコンピュータシステムであって、
薬局に関するデータを取得する取得手段であって、前記薬局に関するデータは、前記医薬品を調剤した日の1週間後が休日であることを示す翌週休日フラグと、前記医薬品を調剤した日の調剤量小計を含む、取得手段と、
前記薬局に関するデータを教師データとして学習処理を行う学習手段であって、前記学習処理は、前記教師データに対する前処理を含み、前記前処理は、前記医薬品を調剤した日の翌週休日フラグの有無に基づいて、前記学習処理に用いられる前記医薬品を調剤した日の調剤量小計を増減させることを含む、学習手段
を備えるコンピュータシステム。
A computer system for building a model used to predict a drug dosage, comprising:
An acquisition means for acquiring data regarding a pharmacy, wherein the data regarding the pharmacy includes a next week holiday flag indicating that one week after the day when the drug is dispensed is a holiday, and a dispensing amount subtotal on the day when the drug is dispensed. Acquisition means, including
A learning means for performing a learning process using the data relating to the pharmacy as teacher data , wherein the learning process includes a pre-process for the teacher data, wherein the pre-process determines whether or not there is a holiday flag next week on the day the drug is dispensed. And a learning means for increasing or decreasing a dispensing subtotal on the day when the drug used in the learning process is dispensed .
前記薬局に関するデータは、4日前〜90日前の期間内のデータを含む、請求項12に記載のコンピュータシステム。 The computer system according to claim 12 , wherein the data regarding the pharmacy includes data within a period of 4 days to 90 days ago. 医薬品の調剤量を予測するために用いられるモデルを構築するための方法であって、前記方法は、プロセッサ部を備えるコンピュータシステムにおいて実行され、前記方法は、
前記プロセッサ部が、薬局に関するデータを取得することであって、前記薬局に関するデータは、前記医薬品を調剤した日の1週間後が休日であることを示す翌週休日フラグと、前記医薬品を調剤した日の調剤量小計を含む、ことと、
前記プロセッサ部が、前記薬局に関するデータを教師データとして学習処理を行うことであって、前記学習処理は、前記教師データに対する前処理を含み、前記前処理は、前記医薬品を調剤した日の翌週休日フラグの有無に基づいて、前記学習処理に用いられる前記医薬品を調剤した日の調剤量小計を増減させることを含む、こと
を含む方法。
A method for constructing a model used for predicting a drug dosage, the method being performed in a computer system comprising a processor unit, the method comprising:
The processor unit is to obtain data on a pharmacy, and the data on the pharmacy is a next-week holiday flag indicating that one week after the day on which the drug is dispensed is a holiday and the date on which the drug is dispensed. Including a subtotal of the dispensing amount of
The processor unit is to perform a learning process using the data related to the pharmacy as teacher data, the learning process includes a pre-process for the teacher data, and the pre-process is a holiday next week on the day when the drug is dispensed. Increasing or decreasing a dispensing subtotal on the day when the drug used in the learning process is dispensed based on the presence or absence of a flag .
医薬品の調剤量を予測するために用いられるモデルを構築するためのプログラムであって、前記プログラムは、プロセッサ部を備えるシステムにおいて実行され、前記プログラムは、
薬局に関するデータを取得することであって、前記薬局に関するデータは、前記医薬品を調剤した日の1週間後が休日であることを示す翌週休日フラグと、前記医薬品を調剤した日の調剤量小計を含む、ことと、
前記薬局に関するデータを教師データとして学習処理を行うことであって、前記学習処理は、前記教師データに対する前処理を含み、前記前処理は、前記医薬品を調剤した日の翌週休日フラグの有無に基づいて、前記学習処理に用いられる前記医薬品を調剤した日の調剤量小計を増減させることを含む、こと
を含む処理を前記プロセッサ部に実行させる、プログラム。
A program for constructing a model used for predicting a dispensing amount of a drug, wherein the program is executed in a system including a processor unit, and the program is
Acquiring data on a pharmacy, the data on the pharmacy is a next week holiday flag indicating that one week after the day when the drug is dispensed is a holiday, and a dispensing subtotal on the day when the drug is dispensed. Including, and
A learning process is performed by using the data related to the pharmacy as teacher data, and the learning process includes pre-processing for the teacher data, and the pre-processing is based on the presence or absence of a holiday flag next week on the day when the drug is dispensed. And increasing or decreasing a dispensing amount subtotal on the day when the drug is dispensed used in the learning process .
JP2019184745A 2019-10-07 2019-10-07 Systems, methods, and programs for predicting drug dosage Active JP6709483B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019184745A JP6709483B1 (en) 2019-10-07 2019-10-07 Systems, methods, and programs for predicting drug dosage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019184745A JP6709483B1 (en) 2019-10-07 2019-10-07 Systems, methods, and programs for predicting drug dosage

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2020079539A Division JP2021060958A (en) 2020-04-28 2020-04-28 System, method and program for predicting dosage of medical product

Publications (2)

Publication Number Publication Date
JP6709483B1 true JP6709483B1 (en) 2020-06-17
JP2021060821A JP2021060821A (en) 2021-04-15

Family

ID=71079412

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019184745A Active JP6709483B1 (en) 2019-10-07 2019-10-07 Systems, methods, and programs for predicting drug dosage

Country Status (1)

Country Link
JP (1) JP6709483B1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112465294A (en) * 2020-10-21 2021-03-09 郑州大学第一附属医院 Hospital medicine intelligent supply method and device based on audit result
JP7154361B1 (en) 2021-04-12 2022-10-17 株式会社カケハシ Device, method and program for order processing of products in medical institutions

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7101304B1 (en) 2021-07-01 2022-07-14 株式会社カケハシ Devices, methods and programs for predicting drug demand in medical institutions

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05250387A (en) * 1992-03-09 1993-09-28 Nec Corp Ordering system uising predicted volume of inventories
JP2002149819A (en) * 2000-11-15 2002-05-24 Kuraya Sanseido Inc Medicine wholesale business management system
JP2004062607A (en) * 2002-07-30 2004-02-26 Higashi Nihon Medicom Kk Prescription tabulation system and pharmacist arrangement system
JP2019053433A (en) * 2017-09-13 2019-04-04 ヤフー株式会社 Prediction apparatus, prediction method, and prediction program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05250387A (en) * 1992-03-09 1993-09-28 Nec Corp Ordering system uising predicted volume of inventories
JP2002149819A (en) * 2000-11-15 2002-05-24 Kuraya Sanseido Inc Medicine wholesale business management system
JP2004062607A (en) * 2002-07-30 2004-02-26 Higashi Nihon Medicom Kk Prescription tabulation system and pharmacist arrangement system
JP2019053433A (en) * 2017-09-13 2019-04-04 ヤフー株式会社 Prediction apparatus, prediction method, and prediction program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
医療法人社団久保田産婦人科病院: "土曜日/祝日前後の外来診療についてのご案内", 新着情報バックナンバー, JPN6020005310, 4 July 2017 (2017-07-04), JP, ISSN: 0004211477 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112465294A (en) * 2020-10-21 2021-03-09 郑州大学第一附属医院 Hospital medicine intelligent supply method and device based on audit result
CN112465294B (en) * 2020-10-21 2023-08-22 郑州大学第一附属医院 Intelligent hospital medicine supply method and device based on audit result
JP7154361B1 (en) 2021-04-12 2022-10-17 株式会社カケハシ Device, method and program for order processing of products in medical institutions
JP2022162516A (en) * 2021-04-12 2022-10-24 株式会社カケハシ Apparatus and method for performing product order processing in medical institution, and program therefor

Also Published As

Publication number Publication date
JP2021060821A (en) 2021-04-15

Similar Documents

Publication Publication Date Title
Dong et al. The impact of delay announcements on hospital network coordination and waiting times
JP6709483B1 (en) Systems, methods, and programs for predicting drug dosage
US8429034B2 (en) Inventory control over pharmaceutical sample distributions software, systems and methodologies
US11442139B2 (en) Clinic wait-time visibility and reservations
JP2009265747A (en) Marketing support system, marketing support method, marketing support program, and computer readable medium
Vila-Parrish et al. A simulation-based approach for inventory modeling of perishable pharmaceuticals
TWI467507B (en) Information processing devices, information processing methods and programs
KR102370556B1 (en) Funeral system using artificial neural network
JP2024040508A (en) System, program and method for supporting ordering of medical product
Paul et al. Inventory management strategies for mitigating unfolding epidemics
JP6722927B2 (en) Systems, methods and programs for supporting the distribution of pharmaceuticals
US20020077994A1 (en) System and associated methods for providing claimant services with prioritized dispatch
JP2005063456A (en) Disease symptoms prediction server, disease symptoms predicting system, disease symptoms prediction method, and program
Tang et al. Optimal appointment scheduling with no-shows and exponential service time considering overtime work
JP2021060958A (en) System, method and program for predicting dosage of medical product
JP2002259663A (en) Device and method for generating customer visit schedule
JP2003016190A (en) System and method for managing care support, and care support management program
CA2915585C (en) Systems and methods for managing an electronic database
JP2020149716A (en) System, method, and program for supporting distribution of pharmaceuticals
WO2021245894A1 (en) Drug inventory management terminal and drug management system
JP6476153B2 (en) Task management system and program
JP7336112B1 (en) Consumer evaluation information display system
US11113736B1 (en) Method, apparatus, and computer program product for estimating inventory based on distribution data
JP4880552B2 (en) Date identification method, date identification program, and product information processing apparatus
US11244756B1 (en) Integrated system and method for receiving and processing real-time digital data concerning transportation and service monitoring scheduling

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20191024

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20191024

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20191031

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200206

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200212

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200330

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20200417

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200428

R150 Certificate of patent or registration of utility model

Ref document number: 6709483

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250