JP6896780B2 - Inventory management equipment, inventory management methods and programs - Google Patents

Inventory management equipment, inventory management methods and programs Download PDF

Info

Publication number
JP6896780B2
JP6896780B2 JP2019020837A JP2019020837A JP6896780B2 JP 6896780 B2 JP6896780 B2 JP 6896780B2 JP 2019020837 A JP2019020837 A JP 2019020837A JP 2019020837 A JP2019020837 A JP 2019020837A JP 6896780 B2 JP6896780 B2 JP 6896780B2
Authority
JP
Japan
Prior art keywords
drug
data
code
inventory
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
JP2019020837A
Other languages
Japanese (ja)
Other versions
JP2020129200A (en
Inventor
賢二 岩井
賢二 岩井
Original Assignee
株式会社Epark
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 株式会社Epark filed Critical 株式会社Epark
Priority to JP2019020837A priority Critical patent/JP6896780B2/en
Publication of JP2020129200A publication Critical patent/JP2020129200A/en
Application granted granted Critical
Publication of JP6896780B2 publication Critical patent/JP6896780B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Description

本発明は、在庫管理装置、在庫管理方法及びプログラムに関する。 The present invention relates to an inventory management device, an inventory management method and a program.

一般に、調剤薬局においては、患者に対して病院から発行された処方箋に基づいて医薬品(薬剤)の調剤が行われる。 Generally, in a dispensing pharmacy, a drug (drug) is dispensed to a patient based on a prescription issued by a hospital.

しかしながら、調剤を行う際に必要な医薬品が調剤薬局に不足している場合、患者が処方箋を持参して当該調剤薬局に来局したとしても、調剤を行うことができない場合がある。 However, if the dispensing pharmacy lacks the medicines required for dispensing, even if the patient brings a prescription to the dispensing pharmacy, the dispensing may not be possible.

このような事態を回避するためには、調剤薬局において医薬品の在庫を常に把握しておく必要があるが、調剤薬局において取り扱われる医薬品の数は膨大であり、当該医薬品の在庫を正確に管理することは容易ではない。 In order to avoid such a situation, it is necessary to keep track of the inventory of medicines at the dispensing pharmacy, but the number of medicines handled at the dispensing pharmacy is enormous, and the inventory of the medicines is accurately managed. It's not easy.

特開2004−062607号公報Japanese Unexamined Patent Publication No. 2004-062607

そこで、本発明の目的は、調剤薬局における医薬品の在庫を管理することが可能な在庫管理装置、在庫管理方法及びプログラムを提供することにある。 Therefore, an object of the present invention is to provide an inventory management device, an inventory management method, and a program capable of managing the inventory of pharmaceutical products in a dispensing pharmacy.

本発明の1つの態様によれば、在庫管理装置は、第1格納手段と、第2格納手段と、第1算出手段と、第2算出手段と、第3格納手段と、第4格納手段とを具備する。前記第1格納手段は、調剤薬局において調剤された医薬品に付与されている第1コード及び当該調剤における当該医薬品の第1使用量を含む調剤データを格納する。前記第2格納手段は、前記調剤薬局において取り扱われる販売用包装単位の前記医薬品に付与されている第2コードを含む取扱品目データを格納する。前記第1算出手段は、前記第1格納手段に格納されている調剤データに含まれる第1コードが付与されている医薬品の第1使用量及び前記第2格納手段に格納されている取扱品目データに含まれる第2コードに基づいて、前記医薬品の第2使用量を前記販売用包装単位毎に算出する。前記第2算出手段は、前記算出された第2使用量に基づいて、前記医薬品の予想在庫数を前記販売用包装単位毎に算出する。前記第格納手段は、前記算出された在庫数を示す在庫データを格納する。前記第4格納手段は、前記調剤薬局において発注された販売用包装単位毎の前記医薬品に付与されている第2コード及び当該第2コードが付与されている前記販売用包装単位毎の前記医薬品の発注量を含む発注データを格納する。前記第2使用量は、前記第4格納手段に格納されている発注データに含まれている第2コードが付与されている医薬品の販売用包装単位毎の発注量の比率に基づいて補正される。 According to one aspect of the present invention, the inventory management device includes a first storage means, a second storage means, a first calculation means, a second calculation means, a third storage means, and a fourth storage means. Equipped with. The first storage means stores dispensing data including a first code given to a drug dispensed at a dispensing pharmacy and a first usage amount of the drug in the dispensing. The second storage means stores the handling item data including the second code given to the drug of the packaging unit for sale handled in the dispensing pharmacy. The first calculation means is the first usage amount of the drug to which the first code included in the dispensing data stored in the first storage means is given, and the handling item data stored in the second storage means. Based on the second code contained in the above, the second usage amount of the drug is calculated for each packaging unit for sale. The second calculation means calculates the expected number of pharmaceutical products in stock for each packaging unit for sale based on the calculated second usage amount. The third storage means stores inventory data indicating the calculated inventory quantity. The fourth storage means is a second code given to the drug for each packaging unit for sale ordered at the dispensing pharmacy and the drug for each packaging unit for sale to which the second code is given. Stores order data including order quantity. The second usage amount is corrected based on the ratio of the ordering amount for each sales packaging unit of the drug to which the second code included in the ordering data stored in the fourth storage means is given. ..

本発明は、調剤薬局における医薬品の在庫を管理することを可能とする。 The present invention makes it possible to manage the inventory of pharmaceutical products in dispensing pharmacies.

本発明の第1実施形態における在庫管理システムの構成の一例を示す図。The figure which shows an example of the structure of the inventory management system in 1st Embodiment of this invention. 在庫管理装置のハードウェア構成の一例を示す図。The figure which shows an example of the hardware composition of the inventory management apparatus. 在庫管理装置の機能構成の一例を示すブロック図。The block diagram which shows an example of the functional structure of the inventory management apparatus. 調剤データ格納部に格納されている調剤データのデータ構造の一例を示す図。The figure which shows an example of the data structure of the dispensing data stored in the dispensing data storage part. 発注データ格納部に格納されている発注データのデータ構造の一例を示す図。The figure which shows an example of the data structure of the order data stored in the order data storage part. 対応データ格納部に格納されている対応データのデータ構造の一例を示す図。The figure which shows an example of the data structure of the correspondence data stored in the correspondence data storage part. 在庫管理装置の処理手順の一例を示すフローチャート。The flowchart which shows an example of the processing procedure of the inventory management apparatus. 本発明の第2実施形態における在庫管理システムの構成の一例を示す図。The figure which shows an example of the structure of the inventory management system in 2nd Embodiment of this invention. 在庫管理装置の機能構成の一例を示すブロック図。The block diagram which shows an example of the functional structure of the inventory management apparatus. 出品処理の処理手順の一例を示すフローチャート。A flowchart showing an example of the processing procedure of the listing process. 出品データ格納部に格納された出品データのデータ構造の一例を示す図。The figure which shows an example of the data structure of the exhibition data stored in the exhibition data storage part. 購入予約処理の処理手順の一例を示すフローチャート。The flowchart which shows an example of the processing procedure of purchase reservation processing. 購入予約データ格納部に格納された購入予約データのデータ構造の一例を示す図。The figure which shows an example of the data structure of the purchase reservation data stored in the purchase reservation data storage part. マッチング処理の処理手順の一例を示すフローチャート。The flowchart which shows an example of the processing procedure of a matching process.

以下、図面を参照して、本発明の各実施形態について説明する。
(第1実施形態)
まず、本発明の第1実施形態について説明する。図1は、本実施形態における在庫管理システム(ネットワークシステム)の構成の一例を示す。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
(First Embodiment)
First, the first embodiment of the present invention will be described. FIG. 1 shows an example of the configuration of the inventory management system (network system) in the present embodiment.

本実施形態における在庫管理システムは、例えば患者に対して病院から発行された処方箋に基づいて医薬品の調剤を行う調剤薬局のような店舗(以下、単に調剤薬局と表記)における当該調剤に必要な医薬品の在庫を管理するために用いられるシステムである。 The inventory management system in the present embodiment is, for example, a drug required for dispensing in a store (hereinafter, simply referred to as a dispensing pharmacy) such as a dispensing pharmacy that dispenses a drug based on a prescription issued by a hospital to a patient. It is a system used to manage the inventory of.

図1に示すように、在庫管理システムは、在庫管理装置10及び店舗端末20を備える。なお、在庫管理装置10及び店舗端末20は、例えばインターネットのようなネットワーク30を介して通信可能に接続されている。 As shown in FIG. 1, the inventory management system includes an inventory management device 10 and a store terminal 20. The inventory management device 10 and the store terminal 20 are connected so as to be able to communicate with each other via a network 30 such as the Internet.

本実施形態に係る在庫管理装置10は、上記した調剤薬局における医薬品の在庫を管理する機能を有するサーバ装置である。 The inventory management device 10 according to the present embodiment is a server device having a function of managing the inventory of pharmaceutical products in the above-mentioned dispensing pharmacy.

店舗端末20は、医薬品の在庫が管理される調剤薬局に設置される端末(電子機器)であり、当該調剤薬局のスタッフ(例えば、薬剤師等)によって使用される。店舗端末20としては例えばパーソナルコンピュータ(PC)が利用可能であるが、スマートフォン及びタブレット端末等の他の電子機器が店舗端末20として用いられてもよい。 The store terminal 20 is a terminal (electronic device) installed in a dispensing pharmacy in which the inventory of pharmaceutical products is managed, and is used by the staff of the dispensing pharmacy (for example, a pharmacist). For example, a personal computer (PC) can be used as the store terminal 20, but other electronic devices such as smartphones and tablet terminals may be used as the store terminal 20.

図2は、図1に示す在庫管理装置10のハードウェア構成の一例を示す。図2に示すように、在庫管理装置10においては、バス11に、不揮発性メモリ12、CPU13、メインメモリ14及び通信デバイス15等が接続されている。なお、不揮発性メモリ12及びメインメモリ14は、在庫管理装置10の記憶装置を構成する。 FIG. 2 shows an example of the hardware configuration of the inventory management device 10 shown in FIG. As shown in FIG. 2, in the inventory management device 10, the non-volatile memory 12, the CPU 13, the main memory 14, the communication device 15, and the like are connected to the bus 11. The non-volatile memory 12 and the main memory 14 constitute a storage device of the inventory management device 10.

不揮発性メモリ12は、例えばオペレーティングシステム(OS)及び上記した医薬品の在庫を管理するためのプログラム(以下、在庫管理プログラムと表記)を含む各種プログラムを格納する。 The non-volatile memory 12 stores, for example, various programs including an operating system (OS) and a program for managing the inventory of the above-mentioned pharmaceutical products (hereinafter, referred to as an inventory management program).

CPU13は、例えば不揮発性メモリ12に格納されている各種プログラムを実行するプロセッサである。なお、CPU13は、在庫管理装置10全体の制御を実行する。 The CPU 13 is, for example, a processor that executes various programs stored in the non-volatile memory 12. The CPU 13 controls the entire inventory management device 10.

メインメモリ14は、例えばCPU13が各種プログラムを実行する際に必要とされるワークエリア等として用いられる。 The main memory 14 is used, for example, as a work area or the like required when the CPU 13 executes various programs.

図2においては不揮発性メモリ12及びメインメモリ14のみが示されているが、在庫管理装置10は、例えばHDD(Hard Disk Drive)及びSSD(Solid State Drive)等の他の記憶装置を備えていてもよい。 Although only the non-volatile memory 12 and the main memory 14 are shown in FIG. 2, the inventory management device 10 includes other storage devices such as an HDD (Hard Disk Drive) and an SSD (Solid State Drive). May be good.

通信デバイス15は、例えば上記したネットワーク30を介して店舗端末20等の外部装置と実行される通信を制御する。なお、通信デバイス15によれば、例えば無線LAN及びWifi(登録商標)等の無線通信機能を実現することができる。 The communication device 15 controls communication executed with an external device such as a store terminal 20 via the network 30 described above, for example. According to the communication device 15, for example, a wireless communication function such as a wireless LAN and Wifi (registered trademark) can be realized.

図3は、本実施形態に係る在庫管理装置10の機能構成の一例を示すブロック図である。図3に示すように、在庫管理装置10は、調剤データ格納部101、発注データ格納部102、対応データ格納部103、取扱品目データ格納部104、在庫データ格納部105、第1算出部106、補正部107、第2算出部108及び発注処理部109を含む。 FIG. 3 is a block diagram showing an example of the functional configuration of the inventory management device 10 according to the present embodiment. As shown in FIG. 3, the inventory management device 10 includes a dispensing data storage unit 101, an order data storage unit 102, a corresponding data storage unit 103, a handling item data storage unit 104, an inventory data storage unit 105, and a first calculation unit 106. It includes a correction unit 107, a second calculation unit 108, and an order processing unit 109.

本実施形態において、各格納部101〜105は、例えば図2に示す不揮発性メモリ12または他の記憶装置等によって実現される。 In the present embodiment, each of the storage units 101 to 105 is realized by, for example, the non-volatile memory 12 shown in FIG. 2 or another storage device or the like.

また、本実施形態において、各部106〜109は、例えば図2に示すCPU13(つまり、在庫管理装置10のコンピュータ)が不揮発性メモリ12に格納されている在庫管理プログラムを実行すること、すなわち、ソフトウェアによって実現されるものとする。なお、この在庫管理プログラムは、コンピュータ読み取り可能な記憶媒体に予め格納して頒布可能である。また、在庫管理プログラムは、例えばネットワーク30等を介して在庫管理装置10にダウンロードされても構わない。 Further, in the present embodiment, each unit 106 to 109 executes, for example, an inventory management program in which the CPU 13 (that is, the computer of the inventory management device 10) shown in FIG. 2 is stored in the non-volatile memory 12, that is, software. It shall be realized by. This inventory management program can be stored in advance in a computer-readable storage medium and distributed. Further, the inventory management program may be downloaded to the inventory management device 10 via, for example, a network 30 or the like.

ここでは、各部106〜109がソフトウェアによって実現されるものとして説明したが、当該各部106〜109は、ハードウェアによって実現されてもよいし、ソフトウェア及びハードウェアの組み合わせによって実現されてもよい。 Here, each part 106 to 109 has been described as being realized by software, but each part 106 to 109 may be realized by hardware or may be realized by a combination of software and hardware.

調剤データ格納部101には、店舗端末20が設置されている調剤薬局において既に行われた調剤に関する調剤データが格納される。調剤データは、調剤薬局において調剤された医薬品に付与されている第1コード及び当該調剤における当該医薬品の使用量等を含む調剤データを格納する。なお、第1コードは、種別(例えば、医薬品名)単位で医薬品に付与されるコードである。 The dispensing data storage unit 101 stores dispensing data related to dispensing that has already been performed at the dispensing pharmacy where the store terminal 20 is installed. The dispensing data stores the dispensing data including the first code given to the drug dispensed at the dispensing pharmacy and the amount of the drug used in the dispensing. The first code is a code given to a drug in units of type (for example, drug name).

なお、調剤データは、例えばレセプトと称される診療報酬明細書を作成するために用いられるレセプトコンピュータ内に格納されるデータであり、当該レセプトコンピュータから取得可能である。 The dispensing data is, for example, data stored in a receipt computer used for creating a medical fee statement called a receipt, and can be acquired from the receipt computer.

発注データ格納部102には、店舗端末20が設置されている調剤薬局における医薬品の過去の発注に関する発注データ(当該調剤薬局において医薬品が発注されたことを示す発注データ)が格納される。発注データは、調剤薬局において発注された販売用包装単位の医薬品に付与されている第2コード及び当該第2コードが付与されている医薬品の発注量を含む。なお、第2コードは、販売用包装単位、すなわち、例えば調剤薬局等への流通における商品としての医薬品に付与されるコードである。 The ordering data storage unit 102 stores ordering data (ordering data indicating that the drug has been ordered at the dispensing pharmacy) regarding the past ordering of the drug at the dispensing pharmacy where the store terminal 20 is installed. The ordering data includes the second code given to the drug in the packaging unit for sale ordered at the dispensing pharmacy and the order quantity of the drug to which the second code is given. The second code is a packaging unit for sale, that is, a code given to a drug as a product in distribution to, for example, a dispensing pharmacy.

ここで、上記した調剤データに含まれる第1コードは医薬品の種別単位で付与されている(つまり、調剤データは第1コードで管理されている)のに対し、例えば発注データに含まれる第2コードは販売用包装単位で付与されている(つまり、発注データは第2コードで管理されている)。 Here, while the first code included in the above-mentioned dispensing data is given for each type of drug (that is, the dispensing data is managed by the first code), for example, the second code included in the ordering data. The code is given for each packaging unit for sale (that is, the order data is managed by the second code).

すなわち、調剤データ上では同一の第1コードが付与されている医薬品であっても、販売用包装単位が異なる医薬品は、発注データ上では互いに異なる第2コードが付与されて管理されている。すなわち、本実施形態において、第1コードと第2コードとは、1対多の関係にあるといえる。 That is, even if the same first code is given on the dispensing data, the drugs having different packaging units for sale are managed by being given different second codes on the order data. That is, in the present embodiment, it can be said that the first code and the second code have a one-to-many relationship.

ところで、本実施形態においては、調剤データに含まれている第1コードが付与されている医薬品の使用量に基づいて医薬品の在庫を管理するが、この場合、調剤データに含まれる第1コードが付与されている医薬品の使用量から、当該第1コードに対応する第2コードの各々が付与されている医薬品の使用量を推測する必要がある。 By the way, in the present embodiment, the inventory of medicines is managed based on the amount of medicines used to which the first code included in the dispensing data is attached. In this case, the first code included in the dispensing data is used. From the amount of medicines used, it is necessary to estimate the amount of medicines given to each of the second codes corresponding to the first code.

このため、対応データ格納部103には、上記した第1コードと第2コードとの対応関係(上記した1対多の関係)を示す対応データが予め格納されている。 Therefore, the corresponding data storage unit 103 stores in advance the corresponding data indicating the correspondence relationship between the first code and the second code (the one-to-many relationship described above).

なお、以下の説明において、第1コードはYJコード(個別医薬品コード)、第2コードはJANコード(統一商品コード)と称する。 In the following description, the first code is referred to as a YJ code (individual drug code), and the second code is referred to as a JAN code (unified product code).

取扱品目データ格納部104には、調剤薬局において取り扱われる医薬品(取扱品目)を示す取扱品目データが予め格納される。取扱品目データは、調剤薬局において取り扱われる販売用包装単位の医薬品に付与されているJANコードを含む。換言すれば、取扱品目データは、発注データと同様に、JANコードで管理される。 The handling item data storage unit 104 stores in advance the handling item data indicating the medicines (handling items) handled by the dispensing pharmacy. The handling item data includes the JAN code given to the drug in the packaging unit for sale handled in the dispensing pharmacy. In other words, the handling item data is managed by the JAN code in the same manner as the order data.

なお、調剤薬局において取り扱われる医薬品には、当該調剤薬局において既に発注したことがある医薬品だけではなく、今後発注する予定がある医薬品等が含まれる。このため、取扱品目データは、上記した発注データとは別に管理されている。本実施形態においては上記したように取扱品目データが発注データとは別に管理されているものとして説明するが、当該発注データが取扱品目データを兼ねていてもよい。 The drugs handled at the dispensing pharmacy include not only drugs that have already been ordered at the dispensing pharmacy, but also drugs that are scheduled to be ordered in the future. Therefore, the handling item data is managed separately from the above-mentioned ordering data. In the present embodiment, it is assumed that the handling item data is managed separately from the ordering data as described above, but the ordering data may also serve as the handling item data.

第1算出部106は、調剤データ格納部101に格納されている調剤データに含まれるYJコードが付与されている医薬品の使用量、対応データ格納部103に格納されている対応データ及び取扱品目データ格納部104に格納されている取扱品目データに基づいて、当該医薬品の使用量を販売用包装単位(つまり、JANコード)毎に算出(推測)する。なお、第1算出部106によって算出される医薬品の使用量は予想値である。 The first calculation unit 106 uses the amount of the drug to which the YJ code included in the dispensing data stored in the dispensing data storage unit 101 is assigned, the corresponding data stored in the corresponding data storage unit 103, and the handling item data. Based on the handling item data stored in the storage unit 104, the usage amount of the drug is calculated (estimated) for each packaging unit for sale (that is, JAN code). The amount of the drug used calculated by the first calculation unit 106 is an expected value.

補正部107は、発注データ格納部102に格納されている発注データ(医薬品の過去の発注状況)に基づいて、第1算出部106によって販売用包装単位毎に算出された医薬品の使用量を補正する。 The correction unit 107 corrects the usage amount of the drug calculated for each packaging unit for sale by the first calculation unit 106 based on the order data (past order status of the drug) stored in the order data storage unit 102. To do.

第2算出部108は、補正部107によって補正された医薬品の使用量に基づいて、当該医薬品の在庫数を販売用包装単位毎に算出する。なお、第2算出部108によって算出される医薬品の在庫数は予想値(つまり、予想在庫数)である。 The second calculation unit 108 calculates the number of inventories of the drug for each packaging unit for sale based on the amount of the drug used corrected by the correction unit 107. The number of pharmaceutical products in stock calculated by the second calculation unit 108 is an expected value (that is, the expected number of inventories).

第2算出部108によって販売用包装単位毎に算出された在庫数を示す在庫データは、在庫データ格納部105に格納される。 Inventory data indicating the number of inventories calculated for each packaging unit for sale by the second calculation unit 108 is stored in the inventory data storage unit 105.

発注処理部109は、在庫データ格納部105に格納されている在庫データによって示される在庫数に基づいて、医薬品を販売用包装単位で発注する(つまり、JANコードが付与されている医薬品を発注する)処理を実行する。 The order processing unit 109 orders medicines in units of packaging for sale based on the number of stocks indicated by the inventory data stored in the inventory data storage unit 105 (that is, orders medicines to which a JAN code is assigned). ) Execute the process.

図4は、図3に示す調剤データ格納部101に格納されている調剤データのデータ構造の一例を示す。図4に示すように、調剤データは、処方箋ID、患者名、調剤年月日、処方医薬品、数量及び備考を含む。 FIG. 4 shows an example of the data structure of the dispensing data stored in the dispensing data storage unit 101 shown in FIG. As shown in FIG. 4, the dispensing data includes a prescription ID, a patient name, a dispensing date, a prescription drug, a quantity and remarks.

処方箋IDは、調剤薬局において医薬品が調剤される際に用いられた処方箋を識別するための識別情報である。患者名は、対応づけられている処方箋IDによって識別される処方箋が発行された患者の氏名である。本実施形態においては患者名として説明するが、当該患者名は例えば患者IDであっても構わない。以下の説明についても同様である。調剤年月日は、対応づけられている処方箋IDによって識別される処方箋に基づいて調剤薬局において調剤が行われた年月日である。 The prescription ID is identification information for identifying a prescription used when a drug is dispensed at a dispensing pharmacy. The patient name is the name of the patient for whom the prescription identified by the associated prescription ID has been issued. Although the description is given as a patient name in the present embodiment, the patient name may be, for example, a patient ID. The same applies to the following description. The dispensing date is the date when dispensing was performed at the dispensing pharmacy based on the prescription identified by the associated prescription ID.

処方医薬品は、対応づけられている処方箋IDによって識別される処方箋に基づいて調剤された医薬品を示す。なお、処方箋には当該処方箋に基づいて調剤されるべき医薬品の医薬品名が記載されているが、調剤データに含まれる処方医薬品は、当該医薬品名の医薬品に付与されているYJコードを含む。 Prescription drug refers to a drug dispensed based on a prescription identified by the associated prescription ID. The prescription describes the drug name of the drug to be dispensed based on the prescription, but the prescription drug included in the dispensing data includes the YJ code given to the drug with the drug name.

数量は、対応づけられている処方箋IDによって識別される処方箋に基づいて調剤された医薬品(YJコードが付与されている医薬品)の数量である。換言すれば、数量は、対応づけられている処方箋IDによって識別される処方箋に基づく調剤における医薬品(YJコードが付与されている医薬品)の使用量に相当する。 The quantity is the quantity of the drug (the drug to which the YJ code is given) dispensed based on the prescription identified by the associated prescription ID. In other words, the quantity corresponds to the amount of the drug (the drug to which the YJ code is given) used in the prescription-based dispensing identified by the associated prescription ID.

備考は、対応づけられている処方箋IDによって識別される処方箋の例えば備考欄に記載されている内容等を示す。なお、処方箋の備考欄には、例えば当該処方箋に基づいて調剤される医薬品を一包化するか否か等が記載されている。このため、調剤データに含まれる備考には、医薬品を一包化するか否かを示す情報(以下、一包化情報と表記)が含まれる。なお、一包化とは、例えば服用時間帯(服用時期)が同一の種別の異なる医薬品(錠剤等)を1つの袋にまとめて交付すること等をいう。なお、一包化の要否(つまり、一包化するか否か)は、処方箋を発行する病院の医師によって指示される。 The remarks indicate the contents described in, for example, the remarks column of the prescription identified by the associated prescription ID. In the remarks column of the prescription, for example, whether or not to package the medicines dispensed based on the prescription is described. Therefore, the remarks included in the dispensing data include information indicating whether or not the drug is packaged (hereinafter referred to as package information). In addition, one package means, for example, the delivery of different medicines (tablets, etc.) of the same type at the same time zone (dose time) in one bag. The necessity of packaging (that is, whether or not to package) is instructed by the doctor at the hospital issuing the prescription.

図4に示す例では、調剤データ格納部101には、調剤データ101a〜101cが格納されている。 In the example shown in FIG. 4, the dispensing data storage unit 101 stores the dispensing data 101a to 101c.

調剤データ101aは、処方箋ID「1」、患者名「A」、調剤年月日「平成30年11月22日」、処方内容「YJコード1」、数量「数量1」及び備考「−」を含む。この調剤データ101aによれば、患者名が「A」である患者に対して発行された処方箋ID「1」によって識別される処方箋に基づいて平成30年11月22日に「数量1」の「YJコード1」が付与されている医薬品が調剤されたことが示されている。また、この調剤データ101aによれば、処方箋ID「1」によって識別される処方箋に基づいて調剤された「YJコード1」が付与されている医薬品が一包化されていないことが示されている。 Dispensing data 101a contains prescription ID "1", patient name "A", dispensing date "November 22, 2018", prescription content "YJ code 1", quantity "quantity 1" and remarks "-". Including. According to this dispensing data 101a, on November 22, 2018, the "quantity 1" of "quantity 1" is based on the prescription identified by the prescription ID "1" issued to the patient whose patient name is "A". It is shown that the drug to which "YJ Code 1" is given has been dispensed. Further, according to the dispensing data 101a, it is shown that the medicines to which the "YJ code 1" dispensed based on the prescription identified by the prescription ID "1" is given are not packaged. ..

また、調剤データ101bは、処方箋ID「1」、患者名「A」、調剤年月日「平成30年11月22日」、処方内容「YJコード2」、数量「数量2」及び備考「−」を含む。この調剤データ101bによれば、患者名が「A」である患者に対して発行された処方箋ID「1」によって識別される処方箋に基づいて平成30年11月22日に「数量2」の「YJコード2」が付与されている医薬品が調剤されたことが示されている。また、この調剤データ101bによれば、処方箋ID「1」によって識別される処方箋に基づいて調剤された「YJコード2」が付与されている医薬品が一包化されていないことが示されている。 In addition, the dispensing data 101b includes the prescription ID "1", the patient name "A", the dispensing date "November 22, 2018", the prescription content "YJ code 2", the quantity "quantity 2", and the remarks "-". "including. According to this dispensing data 101b, on November 22, 2018, "Quantity 2" "" based on the prescription identified by the prescription ID "1" issued to the patient whose patient name is "A". It is shown that the drug to which "YJ Code 2" is given has been dispensed. Further, according to the dispensing data 101b, it is shown that the medicines to which the "YJ code 2" dispensed based on the prescription identified by the prescription ID "1" is given are not packaged. ..

上記した調剤データ101a及び101bに示すように、1つの処方箋(処方箋ID「1」によって識別される処方箋)に基づいて種別の異なる複数の医薬品が調剤されても構わない。 As shown in the above-mentioned dispensing data 101a and 101b, a plurality of drugs of different types may be dispensed based on one prescription (prescription identified by the prescription ID "1").

調剤データ101cは、処方箋ID「2」、患者名「B」、調剤年月日「平成30年11月23日」、処方内容「YJコード3」数量「数量3」及び備考「一包化」を含む。この調剤データ101cによれば、患者名が「B」である患者に対して発行された処方箋ID「2」によって識別される処方箋に基づいて平成30年11月23日に「数量3」の「YJコード3」が付与されている医薬品が調剤されたことが示されている。また、この調剤データ101cによれば、処方箋ID「2」によって識別される処方箋に基づいて調剤された「YJコード3」が付与されている医薬品が一包化されたことが示されている。 Dispensing data 101c includes prescription ID "2", patient name "B", dispensing date "November 23, 2018", prescription content "YJ code 3" quantity "quantity 3" and remarks "packaged". including. According to this dispensing data 101c, on November 23, 2018, "Quantity 3" "" based on the prescription identified by the prescription ID "2" issued to the patient whose patient name is "B". It is shown that the drug to which "YJ Code 3" has been given has been dispensed. Further, according to the dispensing data 101c, it is shown that the medicines to which the "YJ code 3" dispensed based on the prescription identified by the prescription ID "2" is given are packaged.

ここでは、調剤データ101a〜101cについてのみ説明したが、調剤データ格納部101には、調剤薬局において調剤された医薬品毎の調剤データが格納されている。 Here, only the dispensing data 101a to 101c have been described, but the dispensing data storage unit 101 stores the dispensing data for each drug dispensed at the dispensing pharmacy.

また、図4に示す例においては調剤データが処方箋ID、患者名、調剤年月日、処方内容、数量(使用量)及び備考(一包化情報)を含むものとして説明したが、当該調剤データは、これらの一部が省略されたものであってもよいし、他の情報を更に含むものであってもよい。 Further, in the example shown in FIG. 4, the dispensing data has been described as including the prescription ID, patient name, dispensing date, prescription content, quantity (usage amount) and remarks (packaged information). May include some of these omitted, or may further include other information.

なお、本実施形態における調剤データはレセプトコンピュータから取得されるが、当該調剤データは、上記した図4において説明したデータに相当するものであれば、例えばレセプトコンピュータとは独立して管理されるデータであってもよい(つまり、レセプトコンピュータから取得されるデータでなくてもよい)。 The dispensing data in the present embodiment is acquired from the receipt computer, but if the dispensing data corresponds to the data described in FIG. 4 above, for example, the data is managed independently of the receipt computer. (That is, it does not have to be the data obtained from the receipt computer).

図5は、図3に示す発注データ格納部102に格納されている発注データのデータ構造の一例を示す。図5に示すように、発注データは、発注医薬品、発注年月日及び発注量を含む。 FIG. 5 shows an example of the data structure of the order data stored in the order data storage unit 102 shown in FIG. As shown in FIG. 5, the order data includes the ordered drug, the order date and the order quantity.

発注医薬品は、調剤薬局において発注された医薬品を示す。発注内容は、調剤薬局において発注された商品としての医薬品(つまり、販売用包装単位の医薬品)に付与されているJANコードを含む。 The ordered drug indicates a drug ordered at a dispensing pharmacy. The content of the order includes the JAN code given to the drug as a product ordered at the dispensing pharmacy (that is, the drug in the packaging unit for sale).

発注年月日は、対応づけられている発注医薬品によって示される医薬品(つまり、JANコードが付与されている販売用包装単位の医薬品)が発注された年月日である。 The order date is the date on which the drug indicated by the associated ordered drug (that is, the drug in the packaging unit for sale to which the JAN code is attached) was ordered.

発注量は、対応づけられている発注医薬品によって示される医薬品(つまり、JANコードが付与されている販売用包装単位の医薬品)が発注された数量である。 The ordered quantity is the quantity ordered for the drug indicated by the associated ordered drug (that is, the drug in the packaging unit for sale to which the JAN code is attached).

図5に示す例では、発注データ格納部102には、発注データ102a及び102bが格納されている。 In the example shown in FIG. 5, the order data 102a and 102b are stored in the order data storage unit 102.

発注データ102aは、発注医薬品「JANコード11」、発注年月日「平成30年10月1日」及び発注量「500錠×1瓶」を含む。この発注データ102aによれば、「JANコード11」が付与されている販売用包装単位の医薬品が500錠×1瓶の数量で平成30年10月1日に発注されたことが示されている。 The ordering data 102a includes the ordered drug "JAN code 11", the ordering date "October 1, 2018", and the ordering quantity "500 tablets x 1 bottle". According to the ordering data 102a, it is shown that the drug in the packaging unit for sale to which the "JAN code 11" is given was ordered on October 1, 2018 in the quantity of 500 tablets x 1 bottle. ..

また、発注データ102bは、発注医薬品「JANコード12」、発注年月日「平成30年10月1日」及び発注量「10錠シート×50」を含む。この発注データ102bによれば、「JANコード12」が付与されている販売用包装単位の医薬品が10錠シート×50の数量で平成30年10月1日に発注されたことが示されている。 In addition, the ordering data 102b includes the ordered drug "JAN code 12", the ordering date "October 1, 2018", and the ordering quantity "10 tablet sheets x 50". According to this ordering data 102b, it is shown that the drug for sale packaging unit to which "JAN code 12" is given was ordered on October 1, 2018 in a quantity of 10 tablet sheets x 50. ..

ここでは、発注データ102a及び102bについてのみ説明したが、発注データ格納部102には、調剤薬局において発注された医薬品毎の発注データが格納されている。 Here, only the ordering data 102a and 102b have been described, but the ordering data storage unit 102 stores the ordering data for each drug ordered at the dispensing pharmacy.

また、図5に示す例においては発注データが発注医薬品、発注年月日及び発注量を含むものとして説明したが、当該発注データは、これらの一部が省略されたものであってもよいし、他の情報を更に含むものであってもよい。 Further, in the example shown in FIG. 5, the ordering data has been described as including the ordered drug, the ordering date, and the ordering quantity, but the ordering data may be partially omitted. , Other information may be further included.

図6は、図3に示す対応データ格納部103に格納されている対応データのデータ構造の一例を示す。図6に示すように、対応データは、YJコード及びJANコードを対応づけて含む。 FIG. 6 shows an example of the data structure of the corresponding data stored in the corresponding data storage unit 103 shown in FIG. As shown in FIG. 6, the corresponding data includes the YJ code and the JAN code in association with each other.

YJコードは、上記したように種別毎に医薬品に付与されるコードであり、例えば調剤データに含まれるものである。 The YJ code is a code given to a drug for each type as described above, and is included in, for example, dispensing data.

一方、JANコードは、販売用包装単位毎に医薬品に付与されるコードであり、例えば発注データ、取扱品目データ及び在庫データに含まれるものである。 On the other hand, the JAN code is a code given to a drug for each packaging unit for sale, and is included in, for example, order data, handling item data, and inventory data.

図6に示す例では、対応データ格納部103には、対応データ103a及び103bが格納されている。 In the example shown in FIG. 6, the corresponding data 103a and 103b are stored in the corresponding data storage unit 103.

対応データ103aは、YJコード「YJコード1」及びJANコード「JANコード11」を対応づけて含む。この対応データ103aによれば、「YJコード1」が付与されている医薬品は、「JANコード11」が付与されている販売用包装単位の医薬品(つまり、商品)として販売されている(流通している)ことが示されている。 The corresponding data 103a includes the YJ code “YJ code 1” and the JAN code “JAN code 11” in association with each other. According to the corresponding data 103a, the drug to which "YJ code 1" is given is sold (distributed) as a drug (that is, a product) in a packaging unit for sale to which "JAN code 11" is given. Is shown).

一方、対応データ103bは、YJコード「YJコード1」及びJANコード「JANコード12」を対応づけて含む。この対応データ103bによれば、「YJコード1」が付与されている医薬品は、「JANコード12」が付与されている販売用包装単位の医薬品(つまり、商品)として販売されている(流通している)ことが示されている。 On the other hand, the corresponding data 103b includes the YJ code "YJ code 1" and the JAN code "JAN code 12" in association with each other. According to the corresponding data 103b, the drug to which "YJ code 1" is given is sold (distributed) as a drug (that is, a product) in a packaging unit for sale to which "JAN code 12" is given. Is shown).

なお、本実施形態において販売用包装単位とは、医薬品(例えば、錠剤等)が販売される際の包装状態等をいい、例えば瓶詰またはシート状等が含まれる。これによれば、「YJコード1」が付与されている医薬品であっても、例えば瓶詰(つまり、バラ)で販売されている商品には「JANコード11」が付与され、シート状(例えば、10錠シート等)で販売されている商品には「JANコード12」が付与される。 In the present embodiment, the packaging unit for sale refers to a packaging state or the like when a pharmaceutical product (for example, a tablet or the like) is sold, and includes, for example, a bottle or a sheet. According to this, even if a drug is given "YJ code 1", for example, a product sold in a bottle (that is, in bulk) is given "JAN code 11" and is in the form of a sheet (for example, in bulk). "JAN code 12" is given to products sold as 10 tablet sheets, etc.).

すなわち、本実施形態においては、上記したように同一のYJコード(ここでは、「YJコード1」)に対して複数のJANコード(ここでは、「JANコード11」及び「JANコード12」)が対応づけられており、YJコードとJANコードとは1対多の関係にある。 That is, in the present embodiment, as described above, a plurality of JAN codes (here, "JAN code 11" and "JAN code 12") are used for the same YJ code (here, "YJ code 1"). It is associated, and there is a one-to-many relationship between the YJ code and the JAN code.

ここでは、対応データ103a及び103bについてのみ説明したが、対応データ格納部103には、YJコード毎の対応データが格納されている。 Here, only the corresponding data 103a and 103b have been described, but the corresponding data storage unit 103 stores the corresponding data for each YJ code.

なお、詳しいデータ構造については図示しないが、図3に示す取扱品目データ格納部104に格納されている取扱品目データは、少なくとも調剤薬局において取り扱われる(または取り扱う予定のある)販売用包装単位の医薬品に付与されているJANコードを含むものであればよい。 Although the detailed data structure is not shown, the handling item data stored in the handling item data storage unit 104 shown in FIG. 3 is at least a drug in a packaging unit for sale that is handled (or will be handled) at a dispensing pharmacy. Anything that includes the JAN code given to.

また、図3に示す在庫データ格納部105に格納されている在庫データは、販売用包装単位の医薬品に付与されているJANコード及び当該医薬品の在庫数を含むものであればよい。 Further, the inventory data stored in the inventory data storage unit 105 shown in FIG. 3 may include the JAN code assigned to the drug in the packaging unit for sale and the number of stocks of the drug.

以下、図7のフローチャートを参照して、本実施形態に係る在庫管理装置10の処理手順の一例について説明する。 Hereinafter, an example of the processing procedure of the inventory management device 10 according to the present embodiment will be described with reference to the flowchart of FIG. 7.

なお、調剤データ格納部101には、上記したように例えばレセプトコンピュータから取得された調剤データが既に格納されているものとする。また、対応データ格納部103には、上記した対応データが予め格納されているものとする。 It is assumed that the dispensing data storage unit 101 already stores the dispensing data acquired from, for example, the receipt computer as described above. Further, it is assumed that the corresponding data described above is stored in advance in the corresponding data storage unit 103.

更に、発注データ格納部102は、調剤薬局において発注された医薬品(JANコードが付与されている医薬品)毎の発注データが格納されているものとする。また、取扱品目データ格納部104には、例えば調剤薬局のスタッフ等によって指定されたJANコードを含む取扱品目データが予め格納されているものとする。 Further, it is assumed that the order data storage unit 102 stores the order data for each drug ordered at the dispensing pharmacy (the drug to which the JAN code is assigned). Further, it is assumed that the handling item data storage unit 104 stores in advance the handling item data including the JAN code designated by, for example, the staff of the dispensing pharmacy.

また、在庫データ格納部105には、例えば後述する図7に示す処理が繰り返し実行されることによって既に在庫データが格納されているものとする。なお、図7に示す処理が最初に実行される場合には、例えば初期設定された在庫データが格納されていればよい。初期設定された在庫データによって示される在庫数は、任意の数値(例えば、0または他の数値等)であってもよいし、実際に調剤薬局のスタッフが調べた在庫数等であってもよい。 Further, it is assumed that the inventory data is already stored in the inventory data storage unit 105, for example, by repeatedly executing the process shown in FIG. 7, which will be described later. When the process shown in FIG. 7 is executed for the first time, for example, the initially set inventory data may be stored. The inventory quantity indicated by the initialized inventory data may be an arbitrary numerical value (for example, 0 or another numerical value, etc.), or may be the inventory quantity actually examined by the staff of the dispensing pharmacy. ..

なお、図7に示す処理は、予め定められた期間毎に実行されるものとする。具体的には、図7に示す処理は、例えば1日に1回、調剤薬局の営業時間外に実行されるものとする。 The process shown in FIG. 7 shall be executed at predetermined intervals. Specifically, the process shown in FIG. 7 shall be executed, for example, once a day outside the business hours of the dispensing pharmacy.

在庫管理装置10においては、調剤データ格納部101に格納されている調剤データに含まれるYJコードの各々について、図7に示す処理が実行される。ここでは、調剤データに含まれているYJコードのうちの1つ(以下、対象YJコードと表記)について処理が実行される場合について説明する。 In the inventory management device 10, the process shown in FIG. 7 is executed for each of the YJ codes included in the dispensing data stored in the dispensing data storage unit 101. Here, a case where processing is executed for one of the YJ codes included in the dispensing data (hereinafter, referred to as a target YJ code) will be described.

まず、第1算出部106は、対象YJコードを含む調剤データを、調剤データ格納部101から取得する(ステップS1)。 First, the first calculation unit 106 acquires the dispensing data including the target YJ code from the dispensing data storage unit 101 (step S1).

なお、上記したように図7に示す処理は予め定められた期間(例えば、1日)毎に実行されるが、ステップS1においては、当該処理が前回実行されてから現在(つまり、当該処理が実行されている時点)までの間に行われた調剤に関する調剤データが取得される。 As described above, the process shown in FIG. 7 is executed every predetermined period (for example, one day), but in step S1, the process is currently (that is, the process) since the last execution. Dispensing data related to the dispensing performed up to the time of execution) is acquired.

具体的には、例えば図7に示す処理が平成30年11月23日の営業時間前に実行される場合、ステップS1においては、調剤年月日が「平成30年11月22日」である調剤データが取得される。同様に、図7に示す処理が平成30年11月24日の営業時間前に実行される場合には、ステップS1においては、調剤年月日が「平成30年11月23日」である調剤データが取得される。ステップS1においては、複数の調剤データが取得されても構わない。 Specifically, for example, when the process shown in FIG. 7 is executed before the business hours of November 23, 2018, the dispensing date is "November 22, 2018" in step S1. Dispensing data is acquired. Similarly, if the process shown in FIG. 7 is executed before the business hours of November 24, 2018, in step S1, the dispensing date is “November 23, 2018”. Data is retrieved. In step S1, a plurality of dispensing data may be acquired.

次に、第1算出部106は、ステップS1において取得された調剤データに基づいて、対象YJコードが付与されている医薬品の使用量(以下、対象YJコードの使用量と表記)を算出する(ステップS2)。ステップS2においては、ステップS1において取得された調剤データに含まれる数量(使用量)の合計値が算出される。 Next, the first calculation unit 106 calculates the usage amount of the drug to which the target YJ code is assigned (hereinafter, referred to as the usage amount of the target YJ code) based on the dispensing data acquired in step S1 (hereinafter referred to as the usage amount of the target YJ code). Step S2). In step S2, the total value of the quantities (used amounts) included in the dispensing data acquired in step S1 is calculated.

ステップS2の処理が実行されると、第1算出部106は、ステップS2において算出された対象YJコードの使用量に基づいて、当該対象YJコードに対応する複数のJANコードの各々が付与されている医薬品の使用量(以下、JANコードの使用量と表記)を算出する(ステップS3)。 When the process of step S2 is executed, the first calculation unit 106 is assigned each of the plurality of JAN codes corresponding to the target YJ code based on the usage amount of the target YJ code calculated in step S2. The amount of the drug used (hereinafter referred to as the amount of the JAN code used) is calculated (step S3).

ここで、ステップS3の処理について詳細に説明する。まず、第1算出部106は、対応データ格納部103に格納されている対応データを取得する。 Here, the process of step S3 will be described in detail. First, the first calculation unit 106 acquires the correspondence data stored in the correspondence data storage unit 103.

次に、第1算出部106は、取得された対応データにおいて対象YJコードに対応づけられている複数のJANコードのうち、取扱品目データ格納部104に格納されている取扱品目データに含まれるJANコードを特定する。ここで特定されるJANコードは、対象YJコードが付与されている医薬品が調剤された際に、使用された可能性がある医薬品(販売用包装単位の医薬品)に付与されているJANコードである。 Next, the first calculation unit 106 includes the JAN included in the handling item data stored in the handling item data storage unit 104 among the plurality of JAN codes associated with the target YJ code in the acquired correspondence data. Identify the code. The JAN code specified here is a JAN code given to a drug that may have been used (a drug in a packaging unit for sale) when a drug to which the target YJ code is given is dispensed. ..

ここでは、例えば対象YJコードが付与されている医薬品であって、包装状態が瓶詰である(つまり、販売用包装単位が瓶である)医薬品に付与されているJANコード(以下、第1JANコードと表記)及び包装状態がシート状である(つまり、販売用包装単位が10錠シートまたは14錠シート等である)医薬品に付与されているJANコード(以下、第2JANコードと表記)とが特定されたものとする。 Here, for example, a JAN code (hereinafter referred to as a first JAN code) given to a drug to which the target YJ code is given and whose packaging state is bottled (that is, the packaging unit for sale is a bottle). The JAN code (hereinafter referred to as the second JAN code) given to a drug whose packaging state is sheet-like (that is, the packaging unit for sale is a 10-tablet sheet or a 14-tablet sheet, etc.) is specified. It shall be.

ここで、上記したように調剤データには、一包化情報(対象YJコードが付与されている医薬品を一包化するか否かを示す情報)が含まれている。このため、第1算出部106は、ステップS1において取得された調剤データに含まれる一包化情報に基づいて、上記したステップS2において算出された対象YJコードの使用量における、一包化された医薬品の使用量と一包化されていない医薬品の使用量との比率(以下、一包化比率と表記)を算出する。 Here, as described above, the dispensing data includes packaged information (information indicating whether or not the drug to which the target YJ code is assigned is packaged). Therefore, the first calculation unit 106 is packaged in the usage amount of the target YJ code calculated in step S2 above based on the packaged information included in the dispensing data acquired in step S1. Calculate the ratio of the amount of medicines used to the amount of unpackaged medicines used (hereinafter referred to as the one-pack ratio).

なお、本実施形態において、調剤データに含まれるYJコードが付与されている医薬品が一包化された場合には、例えば瓶詰された医薬品(つまり、バラ)が使用されたものと推測する。一方、調剤データに含まれるYJコードが付与されている医薬品が一包化されていない場合には、シート状の医薬品が使用されたものと推測する。 In the present embodiment, when the drug to which the YJ code included in the dispensing data is attached is packaged, it is presumed that, for example, a bottled drug (that is, a rose) was used. On the other hand, if the drug to which the YJ code included in the dispensing data is attached is not packaged, it is presumed that the sheet-shaped drug was used.

本実施形態においては、上記した観点により、ステップS2において算出された対象YJコードの使用量に対して一包化比率を適用することによってJANコード毎の使用量を算出する。 In the present embodiment, from the above viewpoint, the usage amount for each JAN code is calculated by applying the one-pack ratio to the usage amount of the target YJ code calculated in step S2.

具体的には、上記した一包化比率が例えば1:9(一包化された医薬品の仕様量が1割、一包化されていない医薬品の使用量が9割)である場合には、対象YJコードの使用量の1割は瓶詰の医薬品(第1JANコードが付与されている医薬品)から使用されたものと推測する。同様に、対象YJコードの使用量の9割はシート状の医薬品(第2JANコードが付与されている医薬品)から使用されたものと推測する。 Specifically, when the above-mentioned packaging ratio is, for example, 1: 9 (the specified amount of the packaged drug is 10%, and the usage amount of the unpackaged drug is 90%), It is estimated that 10% of the amount of the target YJ code used is from bottled drugs (drugs to which the 1st JAN code is given). Similarly, it is estimated that 90% of the amount of the target YJ code used is from the sheet-shaped drug (the drug to which the second JAN code is given).

ステップS3においては、上記した処理が実行されることによって、第1JANコードの使用量及び第2JANコードの使用量を算出(推測)することができる。 In step S3, the usage amount of the first JAN code and the usage amount of the second JAN code can be calculated (estimated) by executing the above-mentioned processing.

次に、補正部107は、発注データ格納部102に格納されている発注データに基づいて、ステップS3において算出された第1及び第2JANコードの使用量を補正する(ステップS4)。 Next, the correction unit 107 corrects the usage amount of the first and second JAN codes calculated in step S3 based on the order data stored in the order data storage unit 102 (step S4).

具体的には、補正部107は、発注データ格納部102に格納されている発注データのうち、上記した第1JANコードを含む発注データ(以下、第1発注データと表記)及び第2JANコードを含む発注データ(以下、第2発注データと表記)を取得する。この場合、補正部107は、発注年月日が予め定められた期間に該当する(つまり、所定期間内に行われた発注に関する)第1発注データ及び第2発注データを取得する。 Specifically, the correction unit 107 includes the order data including the above-mentioned first JAN code (hereinafter referred to as the first order data) and the second JAN code among the order data stored in the order data storage unit 102. Acquire ordering data (hereinafter referred to as second ordering data). In this case, the correction unit 107 acquires the first order data and the second order data whose order date corresponds to a predetermined period (that is, regarding the order placed within the predetermined period).

補正部107は、第1発注データに含まれる発注量(の合計値)及び第2発注データに含まれる発注量(の合計値)に基づいて、第1JANコードが付与されている医薬品(例えば、瓶詰の医薬品)と第2JANコードが付与されている医薬品(例えば、シート状の医薬品)との過去の発注比率を算出する。 The correction unit 107 is a drug (for example, a drug) to which the first JAN code is assigned based on the order quantity (total value) included in the first order data and the order quantity (total value) included in the second order data. Calculate the past order ratio between the bottled drug) and the drug to which the second JAN code is given (for example, the sheet-shaped drug).

補正部107は、算出された発注比率に基づいて、上記した一包化比率を補正(変更)する。具体的には、補正部107は、上記した一包化比率を、当該一包化比率と発注比率との平均値等に補正する。 The correction unit 107 corrects (changes) the above-mentioned packaging ratio based on the calculated ordering ratio. Specifically, the correction unit 107 corrects the above-mentioned one-packing ratio to an average value of the one-packing ratio and the ordering ratio.

補正部107は、補正された一包化比率を対象YJコードの使用量に対して適用することによって、第1JANコードの使用量及び第2JANコードの使用量(つまり、補正後の使用量)を再度算出する。 The correction unit 107 applies the corrected one-pack ratio to the usage amount of the target YJ code to obtain the usage amount of the first JAN code and the usage amount of the second JAN code (that is, the usage amount after correction). Calculate again.

このようにステップS4においては、第1JANコードの使用量及び第2JANコードの使用量を、発注データ格納部102に格納されている発注データに基づいて補正することができる。 As described above, in step S4, the usage amount of the first JAN code and the usage amount of the second JAN code can be corrected based on the order data stored in the order data storage unit 102.

なお、例えば発注データ格納部102に十分な発注データが格納されていないような場合には、ステップS4の処理は省略されても構わない。 Note that, for example, when sufficient order data is not stored in the order data storage unit 102, the process of step S4 may be omitted.

以下、上記した第1JANコード及び第2JANコードの各々について、ステップS5〜S12の処理を実行する。このステップS5〜S12の処理の対象となるJANコードを対象JANコードと称する。 Hereinafter, the processes of steps S5 to S12 are executed for each of the above-mentioned first JAN code and second JAN code. The JAN code that is the target of the processing in steps S5 to S12 is referred to as a target JAN code.

第2算出部108は、ステップS4において補正された対象JANコードの使用量(第1JANコードの使用量または第2JANコードの使用量)及び在庫データ格納部105に格納されている在庫データに基づいて、当該対象JANコードが付与されている医薬品の在庫数(以下、対象JANコードの在庫数と表記)を算出する(ステップS5)。この場合、第2算出部108は、対象JANコードを含む在庫データに含まれる在庫数から対象JANコードの使用量を減算することによって現在の対象JANコードの在庫数を算出する。対象JANコードを含む在庫データに含まれる在庫数は、現時点で在庫管理装置10が把握(管理)している対象JANコードが付与されている医薬品の在庫数であり、具体的には図7の処理が前回実行された時点で算出された在庫数(前回算出時までの予想在庫数)であるが、例えば調剤薬局のスタッフによって指定された在庫数等であってもよい。 The second calculation unit 108 is based on the usage amount of the target JAN code corrected in step S4 (the usage amount of the first JAN code or the usage amount of the second JAN code) and the inventory data stored in the inventory data storage unit 105. , Calculate the inventory quantity of the drug to which the target JAN code is attached (hereinafter, referred to as the inventory quantity of the target JAN code) (step S5). In this case, the second calculation unit 108 calculates the current stock quantity of the target JAN code by subtracting the usage amount of the target JAN code from the stock quantity included in the inventory data including the target JAN code. The inventory quantity included in the inventory data including the target JAN code is the inventory quantity of the drug to which the target JAN code is assigned, which is currently grasped (managed) by the inventory management device 10. The number of inventories calculated at the time when the processing was executed last time (expected number of inventories up to the time of the previous calculation) may be, for example, the number of inventories specified by the staff of the dispensing pharmacy.

なお、本実施形態において、発注データ格納部102に格納されている発注データに含まれる対象JANコードが付与されている医薬品の発注量は、対象JANコードの在庫数に加算されるものとする。この発注量の加算は、発注データが発注データ格納部102に格納された時点で実行されてもよいし、ステップS5において実行されてもよい。ステップS5において実行される場合には、図7の処理が前回実行されてから現在までの間において行われた対象JANコードが付与されている医薬品の発注に関する発注データ(つまり、当該対象JANコードを含む発注データ)に含まれる発注量が在庫数に加算されればよい。 In the present embodiment, the order quantity of the drug to which the target JAN code included in the order data stored in the order data storage unit 102 is assigned is added to the inventory quantity of the target JAN code. This addition of the order quantity may be executed when the order data is stored in the order data storage unit 102, or may be executed in step S5. When executed in step S5, the order data (that is, the target JAN code) relating to the ordering of the drug to which the target JAN code is assigned, which was performed from the previous execution of the process of FIG. 7 to the present, is used. The order quantity included in the included order data) may be added to the number of stocks.

上記した現在の対象JANコードの在庫数は、当該対象JANコードを含む在庫データに含まれる在庫数に上書きされる。これにより、在庫データ格納部105に格納されている在庫データ(つまり、在庫数)を更新することができる。 The inventory quantity of the current target JAN code described above is overwritten with the inventory quantity included in the inventory data including the target JAN code. As a result, the inventory data (that is, the number of inventories) stored in the inventory data storage unit 105 can be updated.

本実施形態においては、上記したように在庫データ格納部105に格納されている在庫データを更新していくことによって、対象JANコードの在庫数を管理することができる。なお、在庫データ格納部105に格納されている在庫データによって示される対象JANコードの在庫数は、例えば店舗端末20に表示されることによって、調剤薬局のスタッフが確認することができるものとする。他のJANコードについても同様である。 In the present embodiment, the inventory quantity of the target JAN code can be managed by updating the inventory data stored in the inventory data storage unit 105 as described above. The inventory quantity of the target JAN code indicated by the inventory data stored in the inventory data storage unit 105 can be confirmed by the staff of the dispensing pharmacy by displaying it on the store terminal 20, for example. The same applies to other JAN codes.

ここで、本実施形態においては、図7に示す処理が例えば1日毎に実行されるところ、上記したステップS4において補正された対象JANコードの使用量は、1日の間に対象JANコードが付与されている医薬品が使用される量に相当する。 Here, in the present embodiment, where the process shown in FIG. 7 is executed, for example, every day, the target JAN code is assigned to the usage amount of the target JAN code corrected in step S4 above during the day. Corresponds to the amount of medicine used.

このため、発注処理部109は、ステップS5において算出された対象JANコードの在庫数(対象JANコードを含む在庫データに含まれる在庫数)を対象JANコードの使用量で除算することによって、対象JANコードが付与されている医薬品の残りの調剤日数(つまり、現在の在庫数で調剤可能な残りの日数)を算出する(ステップS6)。 Therefore, the order processing unit 109 divides the inventory quantity of the target JAN code calculated in step S5 (the inventory quantity included in the inventory data including the target JAN code) by the usage amount of the target JAN code, thereby dividing the target JAN code. The number of remaining dispensing days of the drug to which the code is assigned (that is, the number of remaining days that can be dispensed with the current inventory quantity) is calculated (step S6).

ステップS6の処理が実行されると、発注処理部109は、当該ステップS6において算出された調剤日数が予め定められた値(以下、閾値と表記)以上であるか否かを判定する(ステップS7)。 When the process of step S6 is executed, the order processing unit 109 determines whether or not the number of dispensing days calculated in step S6 is equal to or greater than a predetermined value (hereinafter referred to as a threshold value) (step S7). ).

調剤日数が閾値以上でないと判定された場合(ステップS7のNO)、発注処理部109は、対象JANコードが付与されている医薬品の発注に関する発注データを生成する(ステップS8)。ステップS8においては、例えば対象JANコードを発注医薬品とし、現時点において医薬品を発注可能な最短の年月日を発注年月日とし、予め定められた在庫数の上限数(上限値)から現在の対象JANの在庫数を減算した値を発注量とする発注データが生成される。なお、ステップS8において生成される発注データに含まれる発注年月日は、例えば上記した残りの調剤日数を考慮した年月日(例えば、現時点から残り調剤日数が経過する付近の年月日等)としてもよい。また、ステップS8において生成される発注データに含まれる発注量は、予め定められた値等であってもよい。 When it is determined that the number of dispensing days is not equal to or greater than the threshold value (NO in step S7), the order processing unit 109 generates order data regarding the ordering of the drug to which the target JAN code is assigned (step S8). In step S8, for example, the target JAN code is set as the ordered drug, the shortest date on which the drug can be ordered at the present time is set as the order date, and the current target is from the predetermined upper limit number (upper limit value) of the inventory quantity. Order data is generated with the value obtained by subtracting the number of JAN stocks as the order quantity. The ordering date included in the ordering data generated in step S8 is, for example, a date in consideration of the above-mentioned remaining dispensing days (for example, a date near the time when the remaining dispensing days have elapsed from the present time, etc.). May be. Further, the order quantity included in the order data generated in step S8 may be a predetermined value or the like.

ステップS8において生成された発注データは、在庫管理装置10から店舗端末20に送信される。在庫管理装置10から店舗端末20に送信された発注データは、店舗端末20において表示される(つまり、対象JANコードが付与されている医薬品の発注が調剤薬局のスタッフに通知される)。 The order data generated in step S8 is transmitted from the inventory management device 10 to the store terminal 20. The order data transmitted from the inventory management device 10 to the store terminal 20 is displayed on the store terminal 20 (that is, the staff of the dispensing pharmacy is notified of the order for the drug to which the target JAN code is assigned).

ここで、調剤薬局のスタッフは、店舗端末20に表示された発注データの内容(つまり、発注内容)を確認し、当該店舗端末20を操作することによって当該発注内容を変更することができる。具体的には、調剤薬局のスタッフは、店舗端末20に表示された発注データに含まれる例えば発注年月日または発注量等を変更することができる。なお、調剤薬局のスタッフは、発注自体をキャンセルすることも可能である。調剤薬局のスタッフによって発注内容が変更された場合、当該変更された発注内容が店舗端末20から在庫管理装置10に送信(通知)される。 Here, the staff of the dispensing pharmacy can change the order contents by checking the contents of the order data displayed on the store terminal 20 (that is, the order contents) and operating the store terminal 20. Specifically, the staff of the dispensing pharmacy can change, for example, the order date or the order quantity included in the order data displayed on the store terminal 20. The staff of the dispensing pharmacy can also cancel the order itself. When the order contents are changed by the staff of the dispensing pharmacy, the changed order contents are transmitted (notified) from the store terminal 20 to the inventory management device 10.

発注処理部109は、上記した店舗端末20からの通知の有無に基づいて、調剤薬局のスタッフによって発注内容が変更されたか否かを判定する(ステップS9)。 The order processing unit 109 determines whether or not the order contents have been changed by the staff of the dispensing pharmacy based on the presence or absence of the notification from the store terminal 20 described above (step S9).

発注内容が変更されたと判定された場合(ステップS9のYES)、発注処理部109は、当該発注内容の変更をステップS8において生成された発注データに反映する(ステップS10)。 When it is determined that the order contents have been changed (YES in step S9), the order processing unit 109 reflects the change in the order contents in the order data generated in step S8 (step S10).

また、上記したように調剤薬局のスタッフによって発注内容が変更された場合には、当該発注内容の変更を在庫データ格納部105に格納されている在庫データにフィードバックするものとする。 Further, when the order contents are changed by the staff of the dispensing pharmacy as described above, the change of the order contents shall be fed back to the inventory data stored in the inventory data storage unit 105.

この場合、発注処理部109は、発注内容の変更に基づいて対象JANコードを含む在庫データに含まれる在庫数を変更する(ステップS11)。
例えば発注時期(発注年月日)を遅らせるような変更がされた場合には、在庫管理装置10において管理されている対象JANコードの在庫数よりも実際の在庫数の方が多いために、調剤薬局のスタッフはこのような変更をしたと推測される。このため、発注時期を遅らせるような変更がされた場合には、上記したステップS4において補正された対象JANコードの使用量(つまり、1日の間に対象JANコードが付与されている医薬品が使用される量)に当該遅らせた日数を乗算した量を、対象JANコードを含む在庫データに含まれる在庫数に加算することによって、当該在庫数を変更する(増加させる)。なお、発注量を減少させるような変更がされた場合及び発注自体をキャンセルする変更がされた場合にも同様に、対象JANコードを含む在庫データに含まれる在庫数を増加させるものとする。
In this case, the order processing unit 109 changes the number of stocks included in the stock data including the target JAN code based on the change in the order contents (step S11).
For example, if a change is made to delay the ordering time (ordering date), the actual inventory quantity is larger than the inventory quantity of the target JAN code managed by the inventory management device 10, so dispensing is performed. It is presumed that the pharmacy staff made such a change. Therefore, if a change is made to delay the ordering time, the amount of the target JAN code used corrected in step S4 above (that is, the drug to which the target JAN code is assigned during the day is used. The quantity is changed (increased) by adding the quantity obtained by multiplying the quantity to be delayed by the number of days delayed to the quantity of stock included in the stock data including the target JAN code. Similarly, when a change is made to reduce the order quantity or a change is made to cancel the order itself, the number of stocks included in the inventory data including the target JAN code shall be increased.

一方、発注時期(発注年月日)を早めるような変更がされた場合には、在庫管理装置10において管理されている対象JANコードの在庫数よりも実際の在庫数の方が少ないために、調剤薬局のスタッフはこのような変更したと推測される。このため、発注時期を早めるような変更がされた場合には、ステップS4において補正された対象JANコードの使用量に当該早めた日数を乗算した量を、対象JANコードを含む在庫データに含まれる在庫数から減算することによって、当該在庫数を変更する(減少させる)。発注量を増加させるような変更がされた場合にも同様に、対象JANコードを含む在庫データに含まれる在庫数を減少させるものとする。 On the other hand, if the ordering time (ordering date) is changed to be earlier, the actual inventory quantity is smaller than the inventory quantity of the target JAN code managed by the inventory management device 10. It is presumed that the staff of the dispensing pharmacy made such a change. Therefore, if a change is made to advance the ordering time, the amount obtained by multiplying the usage amount of the target JAN code corrected in step S4 by the number of days earlier is included in the inventory data including the target JAN code. The inventory quantity is changed (decreased) by subtracting from the inventory quantity. Similarly, when a change is made to increase the order quantity, the number of stocks included in the stock data including the target JAN code shall be reduced.

ステップS11の処理が実行された場合、発注処理部109は、ステップS10において発注内容の変更が反映された発注データに基づいて発注処理を実行する(ステップS12)。なお、発注処理は、例えば調剤薬局からの医薬品の発注を管理する外部のシステムに対して発注データを送信することによって完了する。発注データは、医薬品の卸会社等に直接送信されても構わない。なお、発注処理が完了した場合、発注処理において用いられた発注データは、発注データ格納部102に格納(蓄積)される。 When the process of step S11 is executed, the order processing unit 109 executes the order process based on the order data in which the change of the order contents is reflected in step S10 (step S12). The ordering process is completed, for example, by transmitting the ordering data to an external system that manages the ordering of the drug from the dispensing pharmacy. The order data may be sent directly to a pharmaceutical wholesaler or the like. When the order processing is completed, the order data used in the order processing is stored (stored) in the order data storage unit 102.

ステップS12の処理は、例えばステップS8またはステップS10の処理が実行された後、予め定められた時間が経過した際に実行されてもよいし、店舗端末20を介した調剤薬局のスタッフの指示に応じて実行されてもよい。 The process of step S12 may be executed when a predetermined time elapses after the process of step S8 or step S10 is executed, or is instructed by the staff of the dispensing pharmacy via the store terminal 20. It may be executed accordingly.

ステップS12の処理が実行されると、全てのJANコード(ここでは、第1JANコード及び第2JANコード)についてステップS5〜S12の処理が実行されたか否かを判定する(ステップS13)。 When the process of step S12 is executed, it is determined whether or not the process of steps S5 to S12 is executed for all the JAN codes (here, the first JAN code and the second JAN code) (step S13).

全てのJANコードについて処理が実行されていないと判定された場合(ステップS13のNO)、上記したステップS5に戻って処理が繰り返される。この場合、ステップS5〜S12の処理が実行されていないJANコードを対象JANコードとして当該処理が実行される。 When it is determined that the processing has not been executed for all the JAN codes (NO in step S13), the process returns to step S5 described above and the processing is repeated. In this case, the process is executed with the JAN code for which the process of steps S5 to S12 has not been executed as the target JAN code.

一方、全てのJANコードについて処理が実行されたと判定された場合(ステップS13のYES)、図7に示す処理は終了される。 On the other hand, when it is determined that the processing has been executed for all the JAN codes (YES in step S13), the processing shown in FIG. 7 is terminated.

なお、ステップS7において調剤日数が閾値以上であると判定された場合(ステップS7のYES)、対象JANコードが付与されている医薬品を発注する必要はないとして、ステップS13の処理が実行される。 If it is determined in step S7 that the number of dispensing days is equal to or greater than the threshold value (YES in step S7), the process of step S13 is executed, assuming that it is not necessary to order the drug to which the target JAN code is assigned.

また、ステップS9において発注内容が変更されていないと判定された場合(ステップS9のNO)、ステップS8において生成された発注データに基づいてステップS12の処理が実行される。 If it is determined in step S9 that the order details have not been changed (NO in step S9), the process of step S12 is executed based on the order data generated in step S8.

なお、図7に示す処理においては、対象JANコードが付与されている医薬品の発注が調剤薬局のスタッフに通知されるものとして説明したが、当該発注が通知されることなく自動的に発注される構成とすることも可能である。この場合には、図7に示すステップS9〜S11の処理は省略されてもよい。 In the process shown in FIG. 7, the order for the drug to which the target JAN code is assigned is explained as being notified to the staff of the dispensing pharmacy, but the order is automatically placed without being notified. It can also be configured. In this case, the processes of steps S9 to S11 shown in FIG. 7 may be omitted.

図7においては調剤データに含まれているYJコードのうちの1つについて実行される処理について説明したが、当該図7に示す処理は、当該調剤データに含まれているYJコードの各々に対して実行されるものとする。これにより、本実施形態に係る在庫管理装置10においては、調剤データに含まれているYJコードの各々に対応するJANコード毎の在庫が管理される。 Although the process to be executed for one of the YJ codes included in the dispensing data has been described in FIG. 7, the process shown in FIG. 7 is applied to each of the YJ codes included in the dispensing data. It shall be executed. As a result, in the inventory management device 10 according to the present embodiment, the inventory for each JAN code corresponding to each of the YJ codes included in the dispensing data is managed.

なお、例えば1日に実行される発注処理の回数の上限が予め設定されていてもよい。具体的には、発注処理は1日最大3回まで可能としてもよい。この場合、例えば1回目は在庫更新時の自動発注であり、2回目及び3回目については任意とする。 For example, the upper limit of the number of ordering processes executed in one day may be set in advance. Specifically, the order processing may be possible up to three times a day. In this case, for example, the first order is an automatic order at the time of inventory renewal, and the second and third orders are optional.

また、JANコードの各々について図7に示すステップS5〜S11の処理が繰り返され、発注が必要な医薬品についてまとめて発注処理(つまり、ステップS12の処理)が実行される構成としてもよい。 Further, the processes of steps S5 to S11 shown in FIG. 7 may be repeated for each of the JAN codes, and the ordering process (that is, the process of step S12) may be collectively executed for the drugs that need to be ordered.

上記したように本実施形態においては、調剤データ格納部101に格納されている調剤データに含まれるYJコード(第1コード)が付与されている医薬品の使用量及び取扱品目データ格納部104に格納されている取扱品目データに含まれるJANコード(第2コード)に基づいて、当該医薬品の使用量を販売用包装単位毎に算出し、当該算出された使用量に基づいて医薬品の在庫数を販売用包装単位毎に算出し、当該算出された在庫数を示す在庫データを在庫データ格納部105に格納する。 As described above, in the present embodiment, the amount of the drug used and the handling item data storage unit 104 to which the YJ code (first code) included in the dispensing data stored in the dispensing data storage unit 101 is assigned is stored. Based on the JAN code (second code) included in the handling item data, the usage amount of the drug is calculated for each packaging unit for sale, and the number of drugs in stock is sold based on the calculated usage amount. It is calculated for each packaging unit, and inventory data indicating the calculated number of stocks is stored in the inventory data storage unit 105.

本実施形態においては、このような構成により、調剤データに含まれるYJコードと発注データ等に含まれるJANコードとの対応関係を考慮して、適切に調剤薬局における医薬品(JANコード)の在庫を管理することができる。また、本実施形態においては、このような医薬品の在庫管理を実現することによって、例えば調剤薬局に患者が来店した際に医薬品の不足により調剤を行うことができないような事態を回避することが可能となる。 In the present embodiment, with such a configuration, the inventory of pharmaceutical products (JAN code) at the dispensing pharmacy is appropriately taken into consideration in consideration of the correspondence between the YJ code included in the dispensing data and the JAN code included in the ordering data and the like. Can be managed. Further, in the present embodiment, by realizing such inventory management of pharmaceutical products, it is possible to avoid a situation in which dispensing cannot be performed due to a shortage of pharmaceutical products, for example, when a patient visits a dispensing pharmacy. It becomes.

また、本実施形態においては、調剤データに含まれるYJコードの使用量に対する一包化された医薬品の使用量の比率に基づいてJANコードの使用量(つまり、販売用包装単位毎の使用量)を算出する。本実施形態においては、このような構成により、調剤データに含まれる一包化情報を利用してYJコードに対応する各JANコードの使用量を推測することが可能となる。 Further, in the present embodiment, the usage amount of the JAN code (that is, the usage amount for each packaging unit for sale) is based on the ratio of the usage amount of the packaged drug to the usage amount of the YJ code included in the dispensing data. Is calculated. In the present embodiment, with such a configuration, it is possible to estimate the usage amount of each JAN code corresponding to the YJ code by using the packaged information included in the dispensing data.

更に、本実施形態においては、発注データ格納部102に格納されている発注データに含まれているJANコードが付与されている医薬品の発注比率に基づいて、当該JANコードの使用量を補正することにより、推測された各JANコードの使用量を過去の発注実績に沿うように補正することができる。 Further, in the present embodiment, the usage amount of the JAN code is corrected based on the ordering ratio of the drug to which the JAN code included in the ordering data stored in the ordering data storage unit 102 is assigned. Therefore, the estimated usage amount of each JAN code can be corrected so as to be in line with the past ordering record.

また、本実施形態においては、上記したように各JANコードの在庫数を管理した上で、当該在庫数に基づいて当該JANコードが付与されている医薬品を発注する発注処理を実行する。 Further, in the present embodiment, after managing the inventory quantity of each JAN code as described above, the order processing for ordering the drug to which the JAN code is given is executed based on the inventory quantity.

具体的には、発注処理は、現在のJANコードの在庫数及び当該JANコードの1日の使用量に基づいて残りの調剤日数を算出し、当該調剤日数が閾値以下である場合に実行される。また、発注処理が実行される際の発注量は、予め定められた上限数から在庫数を減算した数とする。 Specifically, the order processing is executed when the remaining number of dispensing days is calculated based on the current number of JAN codes in stock and the daily usage of the JAN code, and the number of dispensing days is equal to or less than the threshold value. .. Further, the order quantity when the order processing is executed is the number obtained by subtracting the inventory quantity from the predetermined upper limit number.

本実施形態においては、このような構成により、在庫数が減少した医薬品を適切なタイミング及び適切な数量で自動的に発注することができ、調剤薬局のスタッフが発注する手間を減少させることができる。なお、JANコード毎に医薬品を自動発注した場合には、当該発注に関する発注データが発注データ格納部102に追加されるとともに、当該発注データに含まれる発注量が当該JANコードの在庫数に加算される(つまり、在庫データに数値が反映される)。 In the present embodiment, with such a configuration, it is possible to automatically order medicines whose inventory has decreased at an appropriate timing and at an appropriate quantity, and it is possible to reduce the time and effort required for the staff of the dispensing pharmacy to place an order. .. When a drug is automatically ordered for each JAN code, the order data related to the order is added to the order data storage unit 102, and the order quantity included in the order data is added to the stock quantity of the JAN code. (That is, the numerical value is reflected in the inventory data).

また、本実施形態においては、店舗端末20に対する操作に基づいて発注内容が変更された場合に、在庫データ格納部105に格納されている在庫データによって示される在庫数を変更する構成により、在庫管理装置10において管理されている在庫数が実際の在庫数と異なっているような場合であっても、調剤薬局のスタッフによる発注内容の変更をフィードバックすることによって、当該在庫管理装置10において管理されている在庫数を修正することが可能となる。 Further, in the present embodiment, when the order contents are changed based on the operation on the store terminal 20, the inventory management is configured by changing the inventory quantity indicated by the inventory data stored in the inventory data storage unit 105. Even if the inventory quantity managed by the device 10 is different from the actual inventory quantity, it is managed by the inventory management device 10 by feeding back the change of the order contents by the staff of the dispensing pharmacy. It is possible to correct the number of stocks in stock.

本実施形態においては主に1つの調剤薬局における医薬品(JANコード)の在庫を管理する場合について説明したが、本実施形態に係る在庫管理装置10は、上記した図7において説明した処理を調剤薬局毎に実行することによって、複数の調剤薬局における医薬品の在庫を管理することも可能である。この場合、上記した調剤データ、発注データ、取扱品目データ及び在庫データは、調剤薬局毎に管理(格納)されていればよい。 In the present embodiment, the case of managing the inventory of pharmaceutical products (JAN code) in one dispensing pharmacy has been mainly described, but the inventory management device 10 according to the present embodiment performs the process described in FIG. 7 described above at the dispensing pharmacy. It is also possible to manage the inventory of medicines in multiple dispensing pharmacies by executing each time. In this case, the above-mentioned dispensing data, ordering data, handling item data, and inventory data may be managed (stored) for each dispensing pharmacy.

なお、本実施形態においては在庫管理装置10が各格納部101〜105を含むものとして説明したが、当該各格納部101〜105の少なくとも一部は在庫管理装置10の外部装置等に備えられていてもよい。この場合、在庫管理装置10は、必要なデータを外部装置から取得(受信)する構成であればよい。 Although the inventory management device 10 has been described as including the storage units 101 to 105 in the present embodiment, at least a part of the storage units 101 to 105 is provided in an external device or the like of the inventory management device 10. You may. In this case, the inventory management device 10 may be configured to acquire (receive) necessary data from the external device.

また、本実施形態においては在庫管理装置10が1つの装置であるものとして説明したが、当該在庫管理装置10は例えば複数の装置の連係動作によって実現されても構わない。 Further, in the present embodiment, the inventory management device 10 has been described as one device, but the inventory management device 10 may be realized by, for example, a linked operation of a plurality of devices.

(第2実施形態)
次に、本発明の第2実施形態について説明する。なお、本実施形態においては、前述した第1実施形態の説明で用いた図面と同様の部分には同一参照符号を付して説明するものとする。また、以下の説明では、前述した第1実施形態と異なる部分について主に述べる。
(Second Embodiment)
Next, the second embodiment of the present invention will be described. In the present embodiment, the same reference numerals as those in the drawings used in the above-described description of the first embodiment will be added to the description. Further, in the following description, the parts different from the above-described first embodiment will be mainly described.

図8は、本実施形態における在庫管理システム(ネットワークシステム)の構成の一例を示す。 FIG. 8 shows an example of the configuration of the inventory management system (network system) in the present embodiment.

図8に示すように、在庫管理システムは、在庫管理装置10、第1店舗端末20a及び第2店舗端末20bを備える。なお、在庫管理装置10は、第1店舗端末20a及び第2店舗端末20bの各々とネットワーク30を介して通信可能に接続されている。 As shown in FIG. 8, the inventory management system includes an inventory management device 10, a first store terminal 20a, and a second store terminal 20b. The inventory management device 10 is communicably connected to each of the first store terminal 20a and the second store terminal 20b via the network 30.

本実施形態において、在庫管理装置10は、第1店舗端末20aが設置されている調剤薬局(以下、第1調剤薬局と表記)における医薬品の在庫及び第2店舗端末20bが設置されている調剤薬局(以下、第2調剤薬局と表記)における医薬品の在庫を管理する機能(以下、在庫管理機能と表記)を有する。 In the present embodiment, the inventory management device 10 is a dispensing pharmacy in which the first store terminal 20a is installed (hereinafter referred to as the first dispensing pharmacy) and a dispensing pharmacy in which the second store terminal 20b is installed. It has a function of managing the inventory of pharmaceutical products (hereinafter referred to as the second dispensing pharmacy) (hereinafter referred to as the inventory management function).

更に、本実施形態に係る在庫管理装置10は、マッチング機能を有する。本実施形態においてマッチング機能とは、例えば第1調剤薬局から出品された医薬品を第2調剤薬局が購入することを可能とする機能である。本実施形態は、マッチング機能を有する点で、前述した第1実施形態とは異なる。このマッチング機能の詳細については後述する。 Further, the inventory management device 10 according to the present embodiment has a matching function. In the present embodiment, the matching function is a function that enables the second dispensing pharmacy to purchase, for example, a drug exhibited by the first dispensing pharmacy. This embodiment is different from the above-described first embodiment in that it has a matching function. The details of this matching function will be described later.

なお、上記した第1店舗端末20a及び第2店舗端末20bは、前述した第1実施形態において説明した店舗端末20と同様の端末(電子機器)である。 The first store terminal 20a and the second store terminal 20b described above are terminals (electronic devices) similar to the store terminal 20 described in the first embodiment described above.

図9は、本実施形態に係る在庫管理装置10の機能構成の一例を示すブロック図である。ここでは、前述した図3と異なる部分について主に説明し、図3と共通する部分についてはその詳しい説明を省略する。 FIG. 9 is a block diagram showing an example of the functional configuration of the inventory management device 10 according to the present embodiment. Here, the parts different from those in FIG. 3 described above will be mainly described, and the detailed description of the parts common to FIG. 3 will be omitted.

なお、本実施形態に係る在庫管理装置10のハードウェア構成は前述した第1実施形態と同様であるため、適宜、図3を用いて説明する。 Since the hardware configuration of the inventory management device 10 according to the present embodiment is the same as that of the first embodiment described above, it will be described with reference to FIG. 3 as appropriate.

図9に示すように、在庫管理装置10は、出品処理部110、購入予約処理部111、マッチング処理部112、出品データ格納部113及び購入予約データ格納部114を含む。 As shown in FIG. 9, the inventory management device 10 includes an exhibition processing unit 110, a purchase reservation processing unit 111, a matching processing unit 112, an exhibition data storage unit 113, and a purchase reservation data storage unit 114.

本実施形態において、各部110〜112は、例えば図2に示すCPU13(つまり、在庫管理装置10のコンピュータ)が不揮発性メモリ12に格納されている在庫管理プログラムを実行すること、すなわち、ソフトウェアによって実現されるものとする。 In the present embodiment, each unit 110-112 is realized by, for example, executing an inventory management program in which the CPU 13 (that is, the computer of the inventory management device 10) shown in FIG. 2 is stored in the non-volatile memory 12, that is, by software. It shall be done.

ここでは、各部110〜112がソフトウェアによって実現されるものとして説明したが、当該各部110〜112は、ハードウェアによって実現されてもよいし、ソフトウェア及びハードウェアの組み合わせによって実現されてもよい。 Here, each unit 110-112 has been described as being realized by software, but each unit 110-112 may be realized by hardware or may be realized by a combination of software and hardware.

また、本実施形態において、各格納部113及び114は、例えば図2に示す不揮発性メモリ12または他の記憶装置等によって実現される。 Further, in the present embodiment, the storage units 113 and 114 are realized by, for example, the non-volatile memory 12 shown in FIG. 2 or another storage device or the like.

出品処理部110は、例えば第1調剤薬局において在庫のある医薬品を出品する処理を実行する。この場合、出品処理部110は、在庫データ格納部105に格納されている在庫データによって示される在庫数が、予め定められた期間、変動していない場合に、当該在庫数が変動していない医薬品(JANコードが付与されている医薬品)を出品するための出品データを生成する。この出品データは、第1調剤薬局から出品される医薬品を示すデータであり、当該医薬品(販売用包装単位の医薬品)に付与されているJANコード及び当該医薬品に関する情報(以下、医薬品情報と表記)を含む。出品処理部110によって生成された出品データは、出品データ格納部113に格納される。なお、在庫データによって示される在庫数は、前述した第1実施形態において説明したように在庫数の予想値(つまり、予想在庫数)である。 The listing processing unit 110 executes a process of listing a drug in stock at, for example, the first dispensing pharmacy. In this case, the listing processing unit 110 determines that the inventory quantity does not change when the inventory quantity indicated by the inventory data stored in the inventory data storage unit 105 does not change for a predetermined period. Generate listing data for listing (medicines with a JAN code). This listing data is data indicating a drug to be listed from the first dispensing pharmacy, and is the JAN code given to the drug (drug in the packaging unit for sale) and information on the drug (hereinafter referred to as drug information). including. The listing data generated by the listing processing unit 110 is stored in the listing data storage unit 113. The inventory quantity indicated by the inventory data is an expected value of the inventory quantity (that is, the expected inventory quantity) as described in the first embodiment described above.

購入予約処理部111は、例えば第2調剤薬局が他の調剤薬局から出品される医薬品の購入を予約するための購入予約データを生成する。この購入予約データには、第2調剤薬局が購入を予約する医薬品の種別(YJコード)及び当該第2調剤薬局によって指定された条件を含む。購入予約処理部111によって生成された購入予約データは、購入予約データ格納部114に格納される。 The purchase reservation processing unit 111 generates, for example, purchase reservation data for the second dispensing pharmacy to reserve the purchase of a drug to be exhibited by another dispensing pharmacy. This purchase reservation data includes the type of drug (YJ code) reserved for purchase by the second dispensing pharmacy and the conditions specified by the second dispensing pharmacy. The purchase reservation data generated by the purchase reservation processing unit 111 is stored in the purchase reservation data storage unit 114.

マッチング処理部112は、出品データ格納部113に格納された出品データを購入予約データ格納部114に格納された購入予約データとマッチングさせる。この場合、マッチング処理部112は、出品データに含まれるJANコードと購入予約データに含まれるYJコードとが対応関係にあり、当該出品データに含まれる医薬品情報が当該購入予約データに含まれる条件を満たす場合に、当該出品データを当該購入予約データとマッチングさせる。 The matching processing unit 112 matches the exhibition data stored in the exhibition data storage unit 113 with the purchase reservation data stored in the purchase reservation data storage unit 114. In this case, the matching processing unit 112 sets a condition that the JAN code included in the listing data and the YJ code included in the purchase reservation data are in a corresponding relationship, and the drug information included in the listing data is included in the purchase reservation data. If so, the listing data is matched with the purchase reservation data.

マッチング処理部112によって出品データと購入予約データとがマッチングされた場合、当該出品データに含まれるJANコードが付与されている医薬品を第2調剤薬局が購入するための処理が実行される。 When the listing data and the purchase reservation data are matched by the matching processing unit 112, a process for the second dispensing pharmacy to purchase the drug to which the JAN code included in the listing data is attached is executed.

なお、上記したように本実施形態に係る在庫管理装置10においては、第1調剤薬局における医薬品の在庫及び第2調剤薬局における医薬品の在庫が管理されている。この場合、在庫データ格納部105には、第1調剤薬局における医薬品(JANコードが付与されている医薬品)の各々の在庫数を示す在庫データ及び第2調剤薬局における医薬品(JANコードが付与されている医薬品)の各々の在庫数を示す在庫データがそれぞれ格納されている。 As described above, in the inventory management device 10 according to the present embodiment, the inventory of pharmaceutical products in the first dispensing pharmacy and the inventory of pharmaceutical products in the second dispensing pharmacy are managed. In this case, the inventory data storage unit 105 is provided with inventory data indicating the number of inventories of each drug (drug to which the JAN code is assigned) at the first dispensing pharmacy and the drug (JAN code) at the second dispensing pharmacy. Inventory data indicating the number of inventories of each drug) is stored.

以下、本実施形態に係る在庫管理装置10の動作について説明する。ここでは、上記したマッチング機能に関する処理について主に説明する。具体的には、第1調剤薬局が医薬品を出品するための処理(以下、出品処理と表記)、第2調剤薬局が医薬品の購入を予約するための処理(以下、購入予約処理と表記)及び出品データを購入予約データとマッチングさせるための処理(以下、マッチング処理と表記)について説明する。 Hereinafter, the operation of the inventory management device 10 according to the present embodiment will be described. Here, the processing related to the above-mentioned matching function will be mainly described. Specifically, the process for the first dispensing pharmacy to list the drug (hereinafter referred to as the listing process), the process for the second dispensing pharmacy to reserve the purchase of the drug (hereinafter referred to as the purchase reservation process), and The process for matching the listing data with the purchase reservation data (hereinafter referred to as matching process) will be described.

なお、本実施形態に係る在庫管理装置10は、上記した在庫管理機能を有するが、当該在庫管理機能を実現するための処理については例えば前述した図7等において説明した通りであるため、ここではその詳しい説明を省略する。 The inventory management device 10 according to the present embodiment has the above-mentioned inventory management function, but since the processing for realizing the above-mentioned inventory management function is as described in FIG. 7 and the like described above, for example, here. The detailed description will be omitted.

まず、図10に示すフローチャートを参照して、上記した出品処理の処理手順の一例について説明する。なお、図10に示す出品処理は、例えば前述した図7に示す処理が実行されるタイミングで実行されてもよいし、当該図7に示す処理とは独立して定期的に実行されてもよい。 First, an example of the processing procedure of the above-mentioned listing processing will be described with reference to the flowchart shown in FIG. The listing process shown in FIG. 10 may be executed at the timing when the process shown in FIG. 7 described above is executed, or may be executed periodically independently of the process shown in FIG. 7. ..

ここでは、前述した図7に示す処理が実行されることによって、在庫データ格納部105には第1調剤薬局における医薬品(JANコードが付与されている医薬品)の在庫数を示す在庫データが既に格納(管理)されているものとする。 Here, by executing the process shown in FIG. 7 described above, the inventory data storage unit 105 has already stored inventory data indicating the number of drugs (pharmaceuticals to which the JAN code is assigned) in stock at the first dispensing pharmacy. It shall be (managed).

この場合、第1調剤薬局における医薬品の在庫数を示す在庫データに含まれるJANコードの各々について、ステップS21〜S24の処理が実行される。以下、ステップS21〜S24の処理の対象となるJANコードを対象JANコードと称する。 In this case, the processes of steps S21 to S24 are executed for each of the JAN codes included in the inventory data indicating the number of pharmaceutical products in stock at the first dispensing pharmacy. Hereinafter, the JAN code to be processed in steps S21 to S24 will be referred to as a target JAN code.

まず、出品処理部110は、対象JANコードを含む在庫データを取得する(ステップS21)。 First, the exhibition processing unit 110 acquires inventory data including the target JAN code (step S21).

次に、出品処理部110は、予め定められた期間内に、ステップS21において取得された在庫データに含まれる在庫数(つまり、対象JANコードが付与されている医薬品の在庫数)に変動があるか否かを判定する(ステップS22)。 Next, the listing processing unit 110 has a change in the number of inventories included in the inventory data acquired in step S21 (that is, the number of inventories of pharmaceutical products to which the target JAN code is assigned) within a predetermined period. Whether or not it is determined (step S22).

ここで、在庫データ格納部105に格納されている在庫データには、当該在庫データに含まれる在庫数が更新(変更)された日付を示す更新日情報が含まれているものとする。 Here, it is assumed that the inventory data stored in the inventory data storage unit 105 includes the update date information indicating the date when the number of stocks included in the inventory data is updated (changed).

これによれば、ステップS21において取得された在庫データに含まれる更新日情報によって示される日付(つまり、更新日)から現在の日付までの期間が予め定められた期間よりも短い場合、出品処理部110は、予め定められた期間内に在庫数に変動があると判定することができる。一方、ステップS21において取得された在庫データに含まれる更新日情報によって示される日付(つまり、更新日)から現在の日付までの期間が予め定められた期間よりも長い場合、出品処理部110は、予め定められた期間内に在庫数に変動がないと判定することができる。 According to this, when the period from the date indicated by the update date information included in the inventory data acquired in step S21 (that is, the update date) to the current date is shorter than the predetermined period, the listing processing unit 110 can determine that the number of stocks fluctuates within a predetermined period. On the other hand, if the period from the date indicated by the update date information included in the inventory data acquired in step S21 (that is, the update date) to the current date is longer than the predetermined period, the listing processing unit 110 will perform the listing processing unit 110. It can be determined that there is no change in the number of stocks within a predetermined period.

在庫数に変動がないと判定された場合(ステップS22のNO)、出品処理部110は、対象JANコードが付与されている医薬品(つまり、在庫数に変動がない不動在庫の医薬品)を出品するための出品データを生成する(ステップS23)。 When it is determined that there is no change in the number of stocks (NO in step S22), the listing processing unit 110 sells a drug to which the target JAN code is assigned (that is, a drug in immovable inventory in which the number of stocks does not change). Generate listing data for (step S23).

ステップS23においては、対象JANコード及び当該対象JANコードが付与されている医薬品に関する医薬品情報等を含む出品データが生成される。 In step S23, listing data including the target JAN code and drug information related to the drug to which the target JAN code is attached is generated.

ステップS23において生成された出品データは、出品データ格納部113に登録(格納)される(ステップS24)。 The listing data generated in step S23 is registered (stored) in the listing data storage unit 113 (step S24).

ここで、図11は、出品データ格納部113に格納された出品データのデータ構造の一例を示す。図11に示すように、出品データは、店舗ID、JANコード、数量、対薬価率及び使用期限を含む。 Here, FIG. 11 shows an example of the data structure of the exhibition data stored in the exhibition data storage unit 113. As shown in FIG. 11, the exhibition data includes a store ID, a JAN code, a quantity, a drug price ratio, and an expiration date.

店舗IDは、医薬品を出品している調剤薬局を識別するための識別情報である。JANコードは、対応づけられている店舗IDによって識別される調剤薬局によって出品されている医薬品(販売用包装単位の医薬品)に付与されているJANコードである。 The store ID is identification information for identifying a dispensing pharmacy that sells a drug. The JAN code is a JAN code given to a drug (a drug in a packaging unit for sale) listed by a dispensing pharmacy identified by the associated store ID.

数量は、対応づけられている店舗IDによって識別される調剤薬局によって出品されている医薬品(対応づけられているJANコードが付与されている医薬品)の数量である。 The quantity is the quantity of the drug (the drug to which the associated JAN code is given) listed by the dispensing pharmacy identified by the associated store ID.

対薬価率は、対応づけられている店舗IDによって識別される調剤薬局によって出品されている医薬品(対応づけられているJANコードが付与されている医薬品)の公定価格に対する販売価格の割合である。なお、医薬品の公定価格とは、国または所定の機関等によって当該医薬品に対して予め定められている価格である。 The drug price ratio is the ratio of the selling price to the official price of the drug (the drug to which the associated JAN code is given) listed by the dispensing pharmacy identified by the associated store ID. The official price of a drug is a price predetermined for the drug by the national government or a designated institution.

使用期限は、対応づけられている店舗IDによって識別される調剤薬局によって出品されている医薬品(対応づけられているJANコードが付与されている医薬品)の使用期限までの残りの期間である。 The expiration date is the remaining period until the expiration date of the drug (the drug to which the associated JAN code is attached) listed by the dispensing pharmacy identified by the associated store ID.

なお、出品データに含まれる数量、対薬価率及び使用期限は、対応づけられている店舗IDによって識別される調剤薬局によって出品されている医薬品に関する医薬品情報に相当する。 The quantity, drug price ratio, and expiration date included in the listing data correspond to drug information related to the drug listed by the dispensing pharmacy identified by the associated store ID.

出品データに含まれる数量は、在庫データ格納部105に格納されている在庫データ(当該出品データに含まれるJANコードを含む在庫データ)に含まれる在庫数に相当する。出品データに含まれる対薬価率は、例えば予め設定された値であってもよいし、上記した図10に示すステップS23の処理が実行される際に第1調剤薬局のスタッフ等によって指定(入力)された値であってもよい。出品データに含まれる使用期限は、例えば当該出品データに含まれるJANコードが付与されている医薬品が購入された際に設定された期限日に基づくものであってもよいし、上記した図10に示すステップS23の処理が実行される際に第1調剤薬局のスタッフ等によって指定(入力)されたものであってもよい。なお、出品データに含まれる数量については、第1調剤薬局のスタッフが実際の在庫数を確認して最終判断をするようにしてもよい。 The quantity included in the listing data corresponds to the number of stocks included in the inventory data (inventory data including the JAN code included in the listing data) stored in the inventory data storage unit 105. The drug price rate included in the exhibition data may be, for example, a preset value, or is designated (input) by the staff of the first dispensing pharmacy or the like when the process of step S23 shown in FIG. 10 is executed. ) May be the value. The expiration date included in the listing data may be based on, for example, the expiration date set when the drug to which the JAN code included in the listing data is attached is purchased, and is shown in FIG. 10 above. It may be designated (input) by the staff of the first dispensing pharmacy or the like when the process of step S23 shown is executed. Regarding the quantity included in the exhibition data, the staff of the first dispensing pharmacy may confirm the actual number of stocks and make a final decision.

図11に示す例では、出品データ格納部113には、出品データ113a及び113bが格納されている。 In the example shown in FIG. 11, the exhibition data 113a and 113b are stored in the exhibition data storage unit 113.

出品データ113aは、店舗ID「X1」、JANコード「JANコード11」、数量「500錠×1瓶」、対薬価率「80%」及び使用期限「○か月」を含む。この出品データ113aによれば、店舗ID「X1」によって識別される調剤薬局が「JANコード11」が付与されている医薬品を出品しており、当該医薬品の数量が500錠×1瓶であり、当該医薬品の対薬価率が80%であり、当該医薬品の使用期限(までの残り)が○か月であることが示されている。 The exhibition data 113a includes the store ID "X1", the JAN code "JAN code 11", the quantity "500 tablets x 1 bottle", the drug price rate "80%", and the expiration date "○ months". According to this exhibition data 113a, the dispensing pharmacy identified by the store ID "X1" is selling a drug to which "JAN code 11" is given, and the quantity of the drug is 500 tablets x 1 bottle. It is shown that the drug price ratio of the drug is 80% and the expiration date (remaining until) of the drug is ○ months.

また、出品データ113bは、店舗ID「X2」、JANコード「JANコード12」、数量「10錠シート×20」、対薬価率「70%」及び使用期限「×か月」を含む。この出品データ113bによれば、店舗ID「X2」によって識別される調剤薬局が「JANコード12」が付与されている医薬品を出品しており、当該医薬品の数量が10錠シート×20であり、当該医薬品の対薬価率が70%であり、当該医薬品の使用期限(までの残り)が×か月であることが示されている。 In addition, the exhibition data 113b includes the store ID "X2", the JAN code "JAN code 12", the quantity "10 tablet sheets x 20", the drug price rate "70%", and the expiration date "x months". According to this exhibition data 113b, the dispensing pharmacy identified by the store ID "X2" is selling a drug to which "JAN code 12" is given, and the quantity of the drug is 10 tablet sheets x 20. It is shown that the drug price ratio of the drug is 70%, and the expiration date (remaining until) of the drug is × months.

ここでは、出品データ113a及び113bについてのみ説明したが、出品データ格納部113には、他の出品データが格納されていてもよい。 Here, only the exhibition data 113a and 113b have been described, but other exhibition data may be stored in the exhibition data storage unit 113.

再び図10に戻ると、ステップS24の処理が実行された場合、第1調剤薬局における医薬品の在庫数を示す在庫データに含まれる全てのJANコードについてステップS21〜S24の処理が実行されたか否かが判定される(ステップS25)。 Returning to FIG. 10 again, when the process of step S24 is executed, whether or not the process of steps S21 to S24 is executed for all the JAN codes included in the inventory data indicating the number of medicines in stock at the first dispensing pharmacy. Is determined (step S25).

全てのJANコードについて処理が実行されていないと判定された場合(ステップS25のNO)、ステップS21に戻って処理が繰り返される。この場合、ステップS21〜S24の処理が実行されていないJANコードを対象JANコードとして処理が実行される。 When it is determined that the processing has not been executed for all the JAN codes (NO in step S25), the process returns to step S21 and the processing is repeated. In this case, the processing is executed with the JAN code in which the processing of steps S21 to S24 has not been executed as the target JAN code.

一方、全てのJANコードについて処理が実行されたと判定された場合(ステップS25のYES)、図10に示す処理は終了される。 On the other hand, when it is determined that the processing has been executed for all the JAN codes (YES in step S25), the processing shown in FIG. 10 is terminated.

上記した図10に示す出品処理によれば、在庫管理装置10において管理されている在庫数に変動がない不動在庫の医薬品については、自動的に出品することができる。 According to the listing process shown in FIG. 10 described above, a drug in immovable inventory whose inventory quantity managed by the inventory management device 10 does not change can be automatically listed.

なお、本実施形態においては、出品データが上記した図10に示すステップS23において生成されるものとして説明したが、当該出品データは、例えば第1調剤薬局に設けられている第1店舗端末20aにおいて当該第1調剤薬局のスタッフがJANコード等を指定することによって生成されても構わない。すなわち、第1調剤薬局において管理されている医薬品は、例えば在庫数が変動していない場合に自動で出品されてもよいし、当該第1調剤薬局のスタッフによって手動で出品されてもよい。 In the present embodiment, the exhibition data has been described as being generated in step S23 shown in FIG. 10, but the exhibition data is, for example, in the first store terminal 20a provided in the first dispensing pharmacy. It may be generated by the staff of the first dispensing pharmacy specifying a JAN code or the like. That is, the drug managed in the first dispensing pharmacy may be automatically listed, for example, when the number of stocks does not fluctuate, or may be manually listed by the staff of the first dispensing pharmacy.

また、図10においては第1調剤薬局から医薬品を出品する場合について説明したが、第2調剤薬局等の他の調剤薬局が医薬品を出品することも可能である。 Further, in FIG. 10, the case where the drug is listed from the first dispensing pharmacy has been described, but it is also possible for another dispensing pharmacy such as the second dispensing pharmacy to list the drug.

次に、図12に示すフローチャートを参照して、上記した購入予約処理の処理手順の一例について説明する。なお、図12に示す購入予約処理は、例えば第2店舗端末20bに対する第2調剤薬局のスタッフの操作に応じて実行される。 Next, an example of the processing procedure of the above-mentioned purchase reservation processing will be described with reference to the flowchart shown in FIG. The purchase reservation process shown in FIG. 12 is executed, for example, in response to the operation of the staff of the second dispensing pharmacy with respect to the second store terminal 20b.

ここで、第2調剤薬局のスタッフは、例えば他の調剤薬局(例えば、第1調剤薬局)から出品されることを期待して、予め所望の医薬品の購入を予約しておくことができる。この場合、第2調剤薬局のスタッフは、当該第2調剤薬局に設けられている第2店舗端末20bを操作することによって、購入を予約する医薬品の種別及び当該医薬品に関する条件を指定することができる。なお、医薬品の種別としては、例えばYJコードが指定されるものとする。 Here, the staff of the second dispensing pharmacy can reserve the purchase of the desired drug in advance in the expectation that it will be put up for sale from, for example, another dispensing pharmacy (for example, the first dispensing pharmacy). In this case, the staff of the second dispensing pharmacy can specify the type of the drug to be reserved for purchase and the conditions related to the drug by operating the second store terminal 20b provided in the second dispensing pharmacy. .. As the type of drug, for example, a YJ code is specified.

この場合、購入予約処理部111は、第2店舗端末20bに対する第2調剤薬局のスタッフの操作に応じて、当該第2調剤薬局のスタッフによって指定されたYJコード及び条件等を含む購入予約データを生成する(ステップS31)。 In this case, the purchase reservation processing unit 111 receives the purchase reservation data including the YJ code and conditions specified by the staff of the second dispensing pharmacy in response to the operation of the staff of the second dispensing pharmacy with respect to the second store terminal 20b. Generate (step S31).

ステップS31において生成された購入予約データは、購入予約データ格納部114に登録(格納)される(ステップS32)。 The purchase reservation data generated in step S31 is registered (stored) in the purchase reservation data storage unit 114 (step S32).

上記した図12に示す購入予約処理によれば、第2調剤薬局のスタッフは、第2店舗端末20bを操作することによって、第2調剤薬局のスタッフによって指定されたYJコード及び条件に合致する医薬品の購入を予約することができる。 According to the purchase reservation process shown in FIG. 12 described above, the staff of the second dispensing pharmacy operates the second store terminal 20b to operate the drug that matches the YJ code and the conditions specified by the staff of the second dispensing pharmacy. You can book your purchase.

ここで、図13は、購入予約データ格納部114に格納された購入予約データのデータ構造の一例を示す。図13に示すように、購入予約データは、店舗ID、登録日時、YJコード、規格容量、数量、対薬価率及び使用期限を含む。 Here, FIG. 13 shows an example of the data structure of the purchase reservation data stored in the purchase reservation data storage unit 114. As shown in FIG. 13, the purchase reservation data includes a store ID, a registration date and time, a YJ code, a standard capacity, a quantity, a drug price rate, and an expiration date.

店舗IDは、医薬品の購入を予約している調剤薬局を識別するための識別情報である。登録日時は、対応づけられている店舗IDによって識別される調剤薬局が医薬品の購入を予約した日時(つまり、購入予約データが登録された日時)である。YJコードは、対応づけられている店舗IDによって識別される調剤薬局が購入を予約している医薬品(の種別)に付与されているYJコードである。 The store ID is identification information for identifying a dispensing pharmacy that has reserved the purchase of a drug. The registration date and time is the date and time when the dispensing pharmacy identified by the associated store ID reserved the purchase of the drug (that is, the date and time when the purchase reservation data was registered). The YJ code is a YJ code given to (type of) a drug reserved for purchase by a dispensing pharmacy identified by the associated store ID.

規格容量は、対応づけられている店舗IDによって識別される調剤薬局が購入を予約している医薬品(対応づけられているYJコードが付与されている医薬品)に対する規格容量である。なお、規格容量は、販売用包装単位に相当し、例えば瓶または10錠シート等を含む。 The standard capacity is a standard capacity for a drug (a drug to which the associated YJ code is assigned) reserved for purchase by a dispensing pharmacy identified by the associated store ID. The standard capacity corresponds to a packaging unit for sale, and includes, for example, a bottle or a 10-tablet sheet.

数量は、対応づけられている店舗IDによって識別される調剤薬局が購入を予約している医薬品(対応づけられているYJコードが付与されている医薬品)の数量の下限値である。 The quantity is the lower limit of the quantity of the drug (the drug to which the associated YJ code is given) reserved for purchase by the dispensing pharmacy identified by the associated store ID.

対薬価率は、対応づけられている店舗IDによって識別される調剤薬局が購入を予約している医薬品(対応づけられているYJコードが付与されている医薬品)の公定価格に対する販売価格の割合の範囲である。 The drug price ratio is the ratio of the selling price to the official price of the drug (the drug with the associated YJ code) reserved for purchase by the dispensing pharmacy identified by the associated store ID. The range.

使用期限は、対応づけられている店舗IDによって識別される調剤薬局が購入を予約している医薬品(対応づけられているYJコードが付与されている医薬品)の使用期限までの残りの期間の下限値である。 The expiration date is the lower limit of the remaining period until the expiration date of the drug (the drug with the associated YJ code) reserved for purchase by the dispensing pharmacy identified by the associated store ID. The value.

なお、購入予約データに含まれる規格容量、数量、対薬価率及び使用期限は、当該購入予約データに含まれる店舗IDによって識別される調剤薬局が購入を予約している医薬品に関する条件に相当する。 The standard capacity, quantity, drug price rate, and expiration date included in the purchase reservation data correspond to the conditions relating to the drug reserved for purchase by the dispensing pharmacy identified by the store ID included in the purchase reservation data.

図13に示す例では、購入予約データ格納部114には、購入予約データ114a及び114bが格納されている。 In the example shown in FIG. 13, purchase reservation data 114a and 114b are stored in the purchase reservation data storage unit 114.

購入予約データ114aは、店舗ID「Y1」、登録日時「平成30年11月10日10時30分」、YJコード「YJコード1」、規格容量「瓶」、数量「400錠」、対薬価率「65%〜75%」及び使用期限「△か月」を含む。この購入予約データ114aによれば、店舗ID「Y1」によって識別される調剤薬局が「YJコード1」が付与されている医薬品の購入を平成30年11月10日10時30分に予約しており、当該医薬品に関する条件が、規格容量が瓶であり、数量が400錠以上であり、対薬価率が65%〜75%であり、使用期限(までの残りの期間)が△か月以上であることが示されている。 The purchase reservation data 114a includes the store ID "Y1", the registration date and time "10:30 on November 10, 2018", the YJ code "YJ code 1", the standard capacity "bottle", the quantity "400 tablets", and the drug price. Includes rate "65% -75%" and expiration date "△ months". According to this purchase reservation data 114a, the dispensing pharmacy identified by the store ID "Y1" makes a reservation for the purchase of the drug to which "YJ code 1" is given at 10:30 on November 10, 2018. The conditions for the drug are that the standard capacity is a bottle, the quantity is 400 tablets or more, the drug price ratio is 65% to 75%, and the expiration date (the remaining period until) is △ months or more. It is shown that there is.

また、購入予約データ114bは、店舗ID「Y2」、登録日時「平成30年11月11日11時10分」、YJコード「YJコード2」、規格容量「10錠シート」、数量「30」、対薬価率「60%〜70%」及び使用期限「□か月」を含む。この購入予約データ114bによれば、店舗ID「Y2」によって識別される調剤薬局が「YJコード2」が付与されている医薬品の購入を平成30年11月11日11時10分に予約しており、当該医薬品に関する条件が、規格容量が10錠シートであり、数量が30以上であり、対薬価率が60%〜70%であり、使用期限(までの残りの期間)が□か月以上であることが示されている。 In addition, the purchase reservation data 114b includes the store ID "Y2", the registration date and time "11:10 on November 11, 2018", the YJ code "YJ code 2", the standard capacity "10 lock sheets", and the quantity "30". , Includes drug price ratio "60% -70%" and expiration date "□ months". According to this purchase reservation data 114b, the dispensing pharmacy identified by the store ID "Y2" makes a reservation for the purchase of the drug to which "YJ code 2" is given at 11:10 on November 11, 2018. The conditions for the drug are that the standard capacity is 10 tablets, the quantity is 30 or more, the drug price ratio is 60% to 70%, and the expiration date (the remaining period until) is □ months or more. It is shown to be.

ここでは、購入予約データ114a及び114bについてのみ説明したが、購入予約データ格納部114には、他の購入予約データが格納されていてもよい。 Here, only the purchase reservation data 114a and 114b have been described, but other purchase reservation data may be stored in the purchase reservation data storage unit 114.

また、図13に示す例では、購入予約データにYJコードが含まれているが、当該YJコードに代えて、JANコードが含まれていてもよい。 Further, in the example shown in FIG. 13, the purchase reservation data includes the YJ code, but the JAN code may be included instead of the YJ code.

次に、図14のフローチャートを参照して、上記したマッチング処理の処理手順の一例について説明する。 Next, an example of the processing procedure of the matching process described above will be described with reference to the flowchart of FIG.

なお、図14に示すマッチング処理は、例えば新たな出品データが出品データ格納部113に登録された際に実行されるものとする。 The matching process shown in FIG. 14 is executed, for example, when new exhibition data is registered in the exhibition data storage unit 113.

以下の説明においては、出品データ格納部113に登録された新たな出品データを対象出品データと称する。ここでは、対象出品データは、上記した第1調剤薬局から出品された医薬品を示すデータであるものとする。すなわち、対象出品データに含まれる店舗IDによって識別される調剤薬局は第1調剤薬局であるものとする。 In the following description, the new listing data registered in the listing data storage unit 113 is referred to as the target listing data. Here, it is assumed that the target listing data is data indicating the medicines listed from the first dispensing pharmacy described above. That is, it is assumed that the dispensing pharmacy identified by the store ID included in the target exhibition data is the first dispensing pharmacy.

まず、マッチング処理部112は、対象出品データを出品データ格納部113から取得する(ステップS41)。 First, the matching processing unit 112 acquires the target exhibition data from the exhibition data storage unit 113 (step S41).

次に、マッチング処理部112は、購入予約データ格納部114に格納されている購入予約データの各々について、ステップS42〜S45の処理を実行する。以下、ステップS42〜S45の処理が実行される購入予約データを対象購入予約データと称する。 Next, the matching processing unit 112 executes the processes of steps S42 to S45 for each of the purchase reservation data stored in the purchase reservation data storage unit 114. Hereinafter, the purchase reservation data in which the processes of steps S42 to S45 are executed will be referred to as target purchase reservation data.

この場合、マッチング処理部112は、対象購入予約データを購入予約データ格納部114から取得する(ステップS42)。 In this case, the matching processing unit 112 acquires the target purchase reservation data from the purchase reservation data storage unit 114 (step S42).

ステップS42の処理が実行されると、マッチング処理部112は、対応データ格納部103に格納されている対応データに基づいて対象出品データに含まれるJANコードに対応するYJコードを特定し、当該JANコードから特定されたYJコードが対象購入予約データに含まれるYJコードと一致するか否かを判定する。これにより、マッチング処理部112は、対象出品データに含まれるJANコードが対象購入予約データに含まれるYJコードに対応するJANコードであるか否かを判定する(ステップS43)。 When the process of step S42 is executed, the matching processing unit 112 identifies the YJ code corresponding to the JAN code included in the target exhibition data based on the corresponding data stored in the corresponding data storage unit 103, and the JAN It is determined whether or not the YJ code specified from the code matches the YJ code included in the target purchase reservation data. As a result, the matching processing unit 112 determines whether or not the JAN code included in the target exhibition data is the JAN code corresponding to the YJ code included in the target purchase reservation data (step S43).

対象出品データに含まれるJANコードが対象購入予約データに含まれるYJコードに対応するJANコードであると判定された場合(ステップS43のYES)、マッチング処理部112は、対象出品データに含まれる医薬品情報が対象購入予約データに含まれる条件を満たすか否かを判定する(ステップS44)。 When it is determined that the JAN code included in the target listing data is the JAN code corresponding to the YJ code included in the target purchase reservation data (YES in step S43), the matching processing unit 112 determines the drug included in the target listing data. It is determined whether or not the information satisfies the condition included in the target purchase reservation data (step S44).

ステップS44においては、対象出品データに含まれるJANコードが付与されている医薬品の販売用包装単位が対象購入予約データに含まれる規格容量と合致し、対象出品データに含まれる数量が対象購入予約データに含まれる数量以上であり、対象出品データに含まれる対薬価率が対象購入予約データに含まれる対薬価率の範囲内にあり、対象出品データに含まれる使用期限が対象購入予約データに含まれる使用期限以上である場合に、対象出品データに含まれる医薬品情報が対象購入予約データに含まれる条件を満たすと判定される。 In step S44, the packaging unit for sale of the drug to which the JAN code included in the target listing data is attached matches the standard capacity included in the target purchase reservation data, and the quantity included in the target listing data is the target purchase reservation data. The drug price rate included in the target listing data is within the range of the drug price rate included in the target purchase reservation data, and the expiration date included in the target listing data is included in the target purchase reservation data. When the expiration date is exceeded, it is determined that the drug information included in the target listing data satisfies the condition included in the target purchase reservation data.

詳細な説明については省略するが、具体的には、例えば対象出品データが図11に示す出品データ113aであり、対象購入予約データが図13に示す購入予約データ114aである場合には、当該出品データ113aに含まれる対薬価率が購入予約データ114aに含まれる対薬価率の範囲内にないため、対象出品データに含まれる医薬品情報が対象購入予約データに含まれる条件を満たさないと判定される。 Although detailed description will be omitted, specifically, for example, when the target listing data is the listing data 113a shown in FIG. 11 and the target purchase reservation data is the purchase reservation data 114a shown in FIG. 13, the listing is concerned. Since the drug price rate included in the data 113a is not within the range of the drug price rate included in the purchase reservation data 114a, it is determined that the drug information included in the target listing data does not satisfy the conditions included in the target purchase reservation data. ..

一方、例えば対象出品データが図11に示す出品データ113bであり、対象購入予約データが図13に示す購入予約データ114bである場合には、出品データ113bに含まれる使用期限が購入予約データ114bに含まれる使用期限以上であれば、対象出品データに含まれる医薬品情報が対象購入予約データに含まれる条件を満たすと判定される。 On the other hand, for example, when the target listing data is the listing data 113b shown in FIG. 11 and the target purchase reservation data is the purchase reservation data 114b shown in FIG. 13, the expiration date included in the listing data 113b is the purchase reservation data 114b. If it is equal to or longer than the included expiration date, it is determined that the drug information included in the target listing data satisfies the condition included in the target purchase reservation data.

対象出品データに含まれる医薬品情報が対象購入予約データに含まれる条件を満たすと判定された場合(ステップS44のYES)、マッチング処理部112は、対象出品データとのマッチングリストに対象購入予約データを追加する(ステップS45)。 When it is determined that the drug information included in the target listing data satisfies the conditions included in the target purchase reservation data (YES in step S44), the matching processing unit 112 puts the target purchase reservation data in the matching list with the target listing data. Add (step S45).

ここでは対象購入予約データにYJコードが含まれている場合について説明したが、対象購入予約データにJANコードが含まれている場合には、対象購入予約データに含まれるJANコードと対象出品データに含まれるJANコードとが一致し、かつ、対象出品データに含まれる医薬品情報が対象購入予約データに含まれる条件を満たすと判定された場合に、当該対象購入予約データがマッチングリストに追加される。 Here, the case where the target purchase reservation data includes the YJ code has been described, but when the target purchase reservation data includes the JAN code, the JAN code and the target exhibition data included in the target purchase reservation data When it is determined that the included JAN code matches and the drug information included in the target listing data satisfies the conditions included in the target purchase reservation data, the target purchase reservation data is added to the matching list.

なお、ステップS43において対象出品データに含まれるJANコードが対象購入予約データに含まれるYJコードに対応するJANコードでないと判定された場合(ステップS43のNO)、ステップS44及びS45の処理は実行されない。また、ステップS44において対象出品データに含まれる医薬品情報が対象購入予約データに含まれる条件を満たさないと判定された場合(ステップS44のNO)、ステップS45の処理は実行されない。 If it is determined in step S43 that the JAN code included in the target exhibition data is not the JAN code corresponding to the YJ code included in the target purchase reservation data (NO in step S43), the processes of steps S44 and S45 are not executed. .. Further, if it is determined in step S44 that the drug information included in the target listing data does not satisfy the condition included in the target purchase reservation data (NO in step S44), the process of step S45 is not executed.

次に、購入予約データ格納部114に格納されている全ての購入予約データについてステップS42〜S45の処理が実行されたか否かが判定される(ステップS46)。 Next, it is determined whether or not the processes of steps S42 to S45 have been executed for all the purchase reservation data stored in the purchase reservation data storage unit 114 (step S46).

全ての購入予約データについて処理が実行されていないと判定された場合(ステップS46のNO)、ステップS42に戻って処理が繰り返される。この場合、ステップS42〜S45の処理が実行されていない購入予約データを対象購入予約データとして、当該処理が実行される。 When it is determined that the processing has not been executed for all the purchase reservation data (NO in step S46), the process returns to step S42 and the processing is repeated. In this case, the purchase reservation data in which the processes of steps S42 to S45 have not been executed is set as the target purchase reservation data, and the process is executed.

一方、全ての購入予約データについて処理が実行されたと判定された場合(ステップS46のYES)、マッチング処理部112は、上記したステップS45においてマッチングリストに追加された購入予約データの中から当該購入予約データに含まれる登録日時が最も早い購入予約データを特定し、対象出品データを当該特定された購入予約データとマッチングさせる。この場合、マッチング処理部112は、対象出品データとマッチングされた購入予約データに含まれる店舗IDによって識別される調剤薬局に設けられている店舗端末に対して、当該対象出品データを送信する(ステップS44)。 On the other hand, when it is determined that the processing has been executed for all the purchase reservation data (YES in step S46), the matching processing unit 112 selects the purchase reservation from the purchase reservation data added to the matching list in step S45 described above. The purchase reservation data with the earliest registration date and time included in the data is specified, and the target listing data is matched with the specified purchase reservation data. In this case, the matching processing unit 112 transmits the target listing data to the store terminal provided in the dispensing pharmacy identified by the store ID included in the purchase reservation data matched with the target listing data (step). S44).

以下の説明においては、対象出品データとマッチングされた購入予約データに含まれる店舗IDによって識別される調剤薬局は第2調剤薬局であり、当該対象出品データが送信された店舗端末は第2店舗端末20bであるものとする。 In the following description, the dispensing pharmacy identified by the store ID included in the purchase reservation data matched with the target listing data is the second dispensing pharmacy, and the store terminal to which the target listing data is transmitted is the second store terminal. It is assumed that it is 20b.

ステップS44において第2店舗端末20bに対象出品データが送信された場合、当該対象出品データは、当該第2店舗端末20bにおいて表示される。 When the target exhibition data is transmitted to the second store terminal 20b in step S44, the target exhibition data is displayed on the second store terminal 20b.

ここで、第2店舗端末20bに対象出品データが表示された場合、第2調剤薬局のスタッフは、当該対象出品データの内容(つまり、第1調剤薬局からの医薬品の出品内容)を確認し、当該第2店舗端末20bに対して当該医薬品の購入を指示する操作(以下、購入指示操作と表記)を行うことができる。第2店舗端末20bに対して購入指示操作が行われた場合、当該購入指示操作(が行われたこと)は、当該第2店舗端末20bから在庫管理装置10に対して通知される。 Here, when the target listing data is displayed on the second store terminal 20b, the staff of the second dispensing pharmacy confirms the content of the target listing data (that is, the listing content of the drug from the first dispensing pharmacy). An operation for instructing the purchase of the drug to the second store terminal 20b (hereinafter referred to as a purchase instruction operation) can be performed. When the purchase instruction operation is performed on the second store terminal 20b, the purchase instruction operation (that the purchase instruction operation has been performed) is notified from the second store terminal 20b to the inventory management device 10.

マッチング処理部112は、第2店舗端末20bからの通知の有無に基づいて、当該第2店舗端末20bに対して購入指示操作が行われたか否かを判定する(ステップS48)。 The matching processing unit 112 determines whether or not the purchase instruction operation has been performed on the second store terminal 20b based on the presence or absence of the notification from the second store terminal 20b (step S48).

購入指示操作が行われたと判定された場合(ステップS48のYES)、マッチング処理部112は、対象出品データ及び当該対象出品データとマッチングされた購入予約データに基づいて、当該対象出品データによって示される医薬品(第1調剤薬局から出品された医薬品)を当該購入予約データに含まれる店舗IDによって識別される第2調剤薬局が購入するための処理を実行する(ステップS49)。 When it is determined that the purchase instruction operation has been performed (YES in step S48), the matching processing unit 112 is indicated by the target listing data based on the target listing data and the purchase reservation data matched with the target listing data. A process for the second dispensing pharmacy identified by the store ID included in the purchase reservation data to purchase the drug (the drug exhibited by the first dispensing pharmacy) is executed (step S49).

ここで、上記したように第1調剤薬局から出品された医薬品(以下、対象医薬品と表記)を第2調剤薬局が購入するものとすると、第1調剤薬局は、当該対象医薬品を第2調剤薬局に発送する必要がある。このため、ステップS49においては、例えば第1調剤薬局に設けられている第1店舗端末20aを介して、第2調剤薬局に対象医薬品を発送する必要があることを、当該第1調剤薬局に通知する。なお、対象医薬品を発送するために必要な情報(例えば、第2調剤薬局の住所等)は、在庫管理装置10において予め管理されていてもよいし、在庫管理装置10とは異なる外部装置から取得されてもよい。ここでは、第2調剤薬局に対象医薬品が直接発送されるものとして説明しているが、当該対象医薬品は、例えば一旦所定の配送センター等に発送された後、当該配送センターから第2調剤薬局に発送されるようにしても構わない。 Here, assuming that the second dispensing pharmacy purchases the drug exhibited by the first dispensing pharmacy (hereinafter referred to as the target drug) as described above, the first dispensing pharmacy purchases the target drug from the second dispensing pharmacy. Need to ship to. Therefore, in step S49, the first dispensing pharmacy is notified that it is necessary to ship the target drug to the second dispensing pharmacy, for example, via the first store terminal 20a provided in the first dispensing pharmacy. To do. Information necessary for shipping the target drug (for example, the address of the second dispensing pharmacy) may be managed in advance by the inventory management device 10, or may be acquired from an external device different from the inventory management device 10. May be done. Here, it is explained that the target drug is directly shipped to the second dispensing pharmacy, but the target drug is, for example, once shipped to a predetermined distribution center or the like, and then from the distribution center to the second dispensing pharmacy. It does not matter if it is shipped.

また、第2調剤薬局が対象医薬品を購入する際には、当該第2調剤薬局は第1調剤薬局に対して支払いを行う必要がある。このため、ステップS49においては、対象出品データに含まれる対薬価率等に基づいて、第2調剤薬局の対象医薬品に対する支払いに関する処理(決済処理)が実行される。この決済処理は、例えば予め登録されたクレジットカードの情報等を用いて実行される。なお、第2調剤薬局が第1調剤薬局に支払うべき金額の算出に必要な情報(例えば、対象出品データによって示される医薬品の公定価格等)は、在庫管理装置10において予め管理されていてもよいし、在庫管理装置10とは異なる外部装置から取得されてもよい。 In addition, when the second dispensing pharmacy purchases the target drug, the second dispensing pharmacy needs to pay to the first dispensing pharmacy. Therefore, in step S49, a process (settlement process) related to payment for the target drug of the second dispensing pharmacy is executed based on the drug price rate and the like included in the target listing data. This payment process is executed using, for example, pre-registered credit card information or the like. Information necessary for calculating the amount to be paid by the second dispensing pharmacy to the first dispensing pharmacy (for example, the official price of the drug indicated by the target listing data) may be managed in advance in the inventory management device 10. However, it may be acquired from an external device different from the inventory management device 10.

上記したステップS49の処理が実行された場合、マッチング処理部112は、例えば第2調剤薬局において対象医薬品が発注されたことを示す発注データを発注データ格納部102に格納する。この場合、対象医薬品の発注量は、第2調剤薬局における対象医薬品の在庫数(在庫データ)に反映される。また、マッチング処理部112は、例えば在庫データ格納部105に格納されている在庫データに含まれる第1調剤薬局における対象医薬品の在庫数を、対象出品データに含まれる数量に基づいて更新する(つまり、第1調剤薬局の対象医薬品が販売された場合には、当該第1調剤薬局における対象医薬品の在庫数から当該販売数が減算される)。 When the process of step S49 described above is executed, the matching processing unit 112 stores, for example, ordering data indicating that the target drug has been ordered at the second dispensing pharmacy in the ordering data storage unit 102. In this case, the order quantity of the target drug is reflected in the inventory quantity (inventory data) of the target drug at the second dispensing pharmacy. Further, the matching processing unit 112 updates, for example, the number of target drugs in stock at the first dispensing pharmacy included in the inventory data stored in the inventory data storage unit 105 based on the quantity included in the target listing data (that is,). , When the target drug of the first dispensing pharmacy is sold, the number of the target drug is subtracted from the number of the target drug in stock at the first dispensing pharmacy).

一方、購入指示操作が行われていないと判定された場合(ステップS48のNO)、ステップS47に戻って処理が繰り返される。この場合、マッチングリストに追加された購入予約データのうちの既にステップS47の処理が実行された購入予約データ以外の購入予約データの中から登録日時が最も早い購入予約データが特定され、ステップS47の処理が実行される。 On the other hand, if it is determined that the purchase instruction operation has not been performed (NO in step S48), the process returns to step S47 and the process is repeated. In this case, among the purchase reservation data added to the matching list, the purchase reservation data having the earliest registration date and time is specified from the purchase reservation data other than the purchase reservation data for which the process of step S47 has already been executed, and in step S47 The process is executed.

すなわち、本実施形態において、マッチングリストに追加された購入予約データは登録日時が早い順に対象出品データとマッチングされ、当該マッチングされた購入予約データに含まれる店舗IDによって識別される調剤薬局のスタッフは、当該調剤薬局に設けられている店舗端末に対して購入指示操作を行うことによって対象医薬品を購入することが可能となる。 That is, in the present embodiment, the purchase reservation data added to the matching list is matched with the target listing data in the order of the earliest registration date and time, and the staff of the dispensing pharmacy identified by the store ID included in the matched purchase reservation data , It is possible to purchase the target drug by performing a purchase instruction operation on the store terminal provided in the dispensing pharmacy.

なお、図14においては示されていないが、マッチングリストに追加された購入予約データの全てにおいて購入指示操作が行われていないと判定された場合には、図14の処理は終了されるものとする。このように購入指示操作が行われなかった出品データ(つまり、購入処理が実行されていない出品データ)については、例えば予め定められた期間が経過した後に、再度、図14に示す処理が実行されるものとする。 Although not shown in FIG. 14, if it is determined that the purchase instruction operation has not been performed in all of the purchase reservation data added to the matching list, the process of FIG. 14 is terminated. To do. For the listing data for which the purchase instruction operation has not been performed (that is, the listing data for which the purchase process has not been executed), for example, the process shown in FIG. 14 is executed again after a predetermined period has elapsed. It shall be.

ここでは、購入指示操作が行われた場合に購入処理が実行されるものとして説明したが、例えば予め定められた期間(例えば、24時間等)以内に購入をキャンセルする操作が行われない場合に、自動的に購入処理が実行されるような構成としても構わない。 Here, it has been described that the purchase process is executed when the purchase instruction operation is performed, but for example, when the operation of canceling the purchase is not performed within a predetermined period (for example, 24 hours). , The purchase process may be automatically executed.

また、マッチングリストに追加された購入予約データは登録日時が早い順に対象出品データとマッチングされるものとして説明したが、当該購入予約データは、例えば対象出品データに含まれる条件との適合率が高い順に対象出品データとマッチングされてもよいし、他の観点に基づいてマッチングされても構わない。 In addition, the purchase reservation data added to the matching list has been described as being matched with the target listing data in the order of the earliest registration date and time, but the purchase reservation data has a high degree of conformity with the conditions included in the target listing data, for example. It may be matched with the target listing data in order, or may be matched based on other viewpoints.

上記したように本実施形態においては、在庫データ格納部105に格納されている在庫データによって示される在庫数が、予め定められた期間、変動していない場合に、当該在庫数が変動していない医薬品を出品するための出品データを生成し、当該生成された出品データを出品データ格納部113に格納する。 As described above, in the present embodiment, when the inventory quantity indicated by the inventory data stored in the inventory data storage unit 105 has not changed for a predetermined period, the inventory quantity has not changed. Listing data for listing a drug is generated, and the generated listing data is stored in the listing data storage unit 113.

本実施形態においては、このような構成により、例えば第1調剤薬局において購入(発注)されたにもかかわらず、長期にわたって保管されているような医薬品(つまり、不動在庫の医薬品)について、自動的に出品することが可能となる。すなわち、本実施形態においては、使用期限の経過によって不動在庫の医薬品を廃棄しなければならなくなるような事態を回避し、当該医薬品を有効に活用することが可能となる。 In the present embodiment, with such a configuration, for example, a drug that has been purchased (ordered) at the first dispensing pharmacy but has been stored for a long period of time (that is, a drug in immovable stock) is automatically set. It will be possible to list in. That is, in the present embodiment, it is possible to avoid a situation in which a drug in immovable stock must be discarded due to the lapse of the expiration date, and it is possible to effectively utilize the drug.

また、本実施形態においては、第2調剤薬局(他の調剤薬局)が医薬品の購入を予約するための購入予約データが購入予約データ格納部114に格納され、出品データ格納部113に格納された出品データと当該購入予約データとをマッチングさせる。 Further, in the present embodiment, the purchase reservation data for the second dispensing pharmacy (another dispensing pharmacy) to reserve the purchase of the drug is stored in the purchase reservation data storage unit 114 and stored in the exhibition data storage unit 113. Match the listing data with the purchase reservation data.

なお、本実施形態において、出品データは、第1調剤薬局から出品されている医薬品に付与されているJANコード及び当該医薬品に関する医薬品情報を含む。また、購入予約データは、第2調剤薬局が購入を予約する医薬品の種別(YJコード)及び当該第2調剤薬局によって指定された条件を含む。 In the present embodiment, the listing data includes the JAN code given to the drug listed by the first dispensing pharmacy and the drug information related to the drug. In addition, the purchase reservation data includes the type of drug (YJ code) reserved for purchase by the second dispensing pharmacy and the conditions specified by the second dispensing pharmacy.

本実施形態においては、出品データに含まれているJANコードと購入予約データに含まれているYJコードとが対応関係にあり、当該出品データに含まれている医薬品情報が当該購入予約データに含まれている条件を満たす場合に、当該出品データを当該購入予約データとマッチングさせる。なお、出品データと購入予約データとがマッチングされた場合、当該出品データによって示される医薬品(当該出品データに含まれるJANコードが付与されている医薬品)を第2調剤薬局が購入するための処理が実行される。 In the present embodiment, the JAN code included in the listing data and the YJ code included in the purchase reservation data have a corresponding relationship, and the drug information included in the listing data is included in the purchase reservation data. When the above conditions are met, the exhibition data is matched with the purchase reservation data. If the listing data and the purchase reservation data are matched, the process for the second dispensing pharmacy to purchase the drug indicated by the listing data (the drug to which the JAN code included in the listing data is attached) is processed. Will be executed.

本実施形態においては、このような構成により、例えば第2調剤薬局の所望する医薬品の購入を予約しておき、当該医薬品が他の調剤薬局(例えば、第1調剤薬局)から出品された場合に、当該第2調剤薬局が当該医薬品を購入するようなことを実現することができる。 In the present embodiment, with such a configuration, for example, when the purchase of the desired drug of the second dispensing pharmacy is reserved and the drug is exhibited by another dispensing pharmacy (for example, the first dispensing pharmacy). , It can be realized that the second dispensing pharmacy purchases the drug.

なお、本実施形態においては在庫管理装置10が各格納部113及び114を含むものとして説明したが、当該各格納部113及び114の少なくとも一部は在庫管理装置10の外部装置等に備えられてもよい。この場合、在庫管理装置10は、必要なデータを外部装置から取得(受信)する構成であればよい。 Although the inventory management device 10 has been described as including the storage units 113 and 114 in the present embodiment, at least a part of the storage units 113 and 114 is provided in an external device or the like of the inventory management device 10. May be good. In this case, the inventory management device 10 may be configured to acquire (receive) necessary data from the external device.

また、本実施形態においては在庫管理装置10が1つの装置であるものとして説明したが、前述した第1実施形態において説明したように、当該在庫管理装置10は例えば複数の装置の連係動作によって実現されても構わない。 Further, in the present embodiment, the inventory management device 10 has been described as one device, but as described in the first embodiment described above, the inventory management device 10 is realized by, for example, a linked operation of a plurality of devices. It doesn't matter if it is done.

なお、上記した各実施形態に記載した手法は、コンピュータに実行させることのできるプログラムとして、磁気ディスク(フロッピー(登録商標)ディスク、ハードディスクなど)、光ディスク(CD−ROM、DVDなど)光磁気ディスク(MO)、半導体メモリなどの記憶媒体に格納して頒布することもできる。 The method described in each of the above embodiments is a program that can be executed by a computer, such as a magnetic disk (floppy (registered trademark) disk, hard disk, etc.), an optical disk (CD-ROM, DVD, etc.), a magneto-optical disk ( It can also be stored and distributed in a storage medium such as MO) or semiconductor memory.

また、この記憶媒体としては、プログラムを記憶でき、かつコンピュータが読み取り可能な記憶媒体であれば、その記憶形式は何れの形態であってもよい。 Further, the storage medium may be in any form as long as it is a storage medium capable of storing a program and readable by a computer.

また、記憶媒体からコンピュータにインストールされたプログラムの指示に基づきコンピュータ上で稼働しているOS(オペレーティングシステム)や、データベース管理ソフト、ネットワークソフト等のMW(ミドルウェア)等が本実施形態を実現するための各処理の一部を実行してもよい。 Further, in order to realize this embodiment, an OS (operating system) running on the computer based on instructions of a program installed on the computer from a storage medium, MW (middleware) such as database management software and network software, etc. You may execute a part of each process of.

更に、本発明における記憶媒体は、コンピュータと独立した媒体に限らず、LANやインターネット等により伝送されたプログラムをダウンロードして記憶または一時記憶した記憶媒体も含まれる。 Further, the storage medium in the present invention is not limited to a medium independent of a computer, but also includes a storage medium in which a program transmitted by a LAN, the Internet, or the like is downloaded and stored or temporarily stored.

また、記憶媒体は1つに限らず、複数の媒体から各実施形態における処理が実行される場合も本発明における記憶媒体に含まれ、媒体構成は何れの構成であってもよい。 Further, the storage medium is not limited to one, and the case where the processing in each embodiment is executed from a plurality of media is also included in the storage medium in the present invention, and the medium configuration may be any configuration.

なお、本発明におけるコンピュータは、記憶媒体に記憶されたプログラムに基づき、本実施形態における各処理を実行するものであって、パーソナルコンピュータ等の1つからなる装置、複数の装置がネットワーク接続されたシステム等の何れの構成であってもよい。 The computer in the present invention executes each process in the present embodiment based on the program stored in the storage medium, and one device such as a personal computer and a plurality of devices are connected to the network. Any configuration such as a system may be used.

また、本発明におけるコンピュータとは、パーソナルコンピュータに限らず、情報処理機器に含まれる演算処理装置、マイコン等も含み、プログラムによって本発明の機能を実現することが可能な機器、装置を総称している。 The computer in the present invention is not limited to a personal computer, but also includes an arithmetic processing unit, a microcomputer, and the like included in an information processing device, and is a general term for devices and devices capable of realizing the functions of the present invention by a program. There is.

なお、本願発明は、上記実施形態そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できる。また、上記実施形態に開示されている複数の構成要素の適宜な組合せにより種々の発明を形成できる。例えば、実施形態に示される全構成要素から幾つかの構成要素を削除してもよい。更に、異なる実施形態に亘る構成要素を適宜組合せてもよい。 The present invention is not limited to the above-described embodiment as it is, and at the implementation stage, the components can be modified and embodied within a range that does not deviate from the gist thereof. In addition, various inventions can be formed by an appropriate combination of the plurality of components disclosed in the above-described embodiment. For example, some components may be removed from all the components shown in the embodiments. Further, the components of different embodiments may be combined as appropriate.

10…在庫管理装置、20…店舗端末、20a…第1店舗端末、20b…第2店舗端末、11…バス、12…不揮発性メモリ、13…CPU、14…メインメモリ、15…通信デバイス、101…調剤データ格納部(第1格納手段)、102…発注データ格納部(第4格納手段)、103…対応データ格納部、104…取扱品目データ格納部(第2格納手段)、105…在庫データ格納部(第3格納手段)、106…第1算出部、107…補正部、108…第2算出部、109…発注処理部、110…出品処理部、111…購入予約処理部、112…マッチング処理部、113…出品データ格納部(第5格納手段)、114…購入予約データ格納部(第6格納手段)。 10 ... Inventory management device, 20 ... Store terminal, 20a ... First store terminal, 20b ... Second store terminal, 11 ... Bus, 12 ... Non-volatile memory, 13 ... CPU, 14 ... Main memory, 15 ... Communication device, 101 ... Dispensing data storage unit (first storage means), 102 ... Order data storage unit (fourth storage means), 103 ... Corresponding data storage unit, 104 ... Handling item data storage unit (second storage means), 105 ... Inventory data Storage unit (third storage means), 106 ... 1st calculation unit, 107 ... correction unit, 108 ... second calculation unit, 109 ... order processing unit, 110 ... exhibition processing unit, 111 ... purchase reservation processing unit, 112 ... matching Processing unit, 113 ... Exhibition data storage unit (fifth storage means), 114 ... Purchase reservation data storage unit (sixth storage means).

Claims (13)

調剤薬局において調剤された医薬品に付与されている第1コード及び当該調剤における当該医薬品の第1使用量を含む調剤データを格納する第1格納手段と、
前記調剤薬局において取り扱われる販売用包装単位の前記医薬品に付与されている第2コードを含む取扱品目データを格納する第2格納手段と、
前記第1格納手段に格納されている調剤データに含まれる第1コードが付与されている医薬品の第1使用量及び前記第2格納手段に格納されている取扱品目データに含まれる第2コードに基づいて、前記医薬品の第2使用量を前記販売用包装単位毎に算出する第1算出手段と、
前記算出された第2使用量に基づいて、前記医薬品の予想在庫数を前記販売用包装単位毎に算出する第2算出手段と、
前記算出された予想在庫数を示す在庫データを格納する第3格納手段と
前記調剤薬局において発注された販売用包装単位毎の前記医薬品に付与されている第2コード及び当該第2コードが付与されている前記販売用包装単位毎の前記医薬品の発注量を含む発注データを格納する第4格納手段と
を具備し、
前記第2使用量は、前記第4格納手段に格納されている発注データに含まれている第2コードが付与されている医薬品の販売用包装単位毎の発注量の比率に基づいて補正される
庫管理装置。
A first storage means for storing dispensing data including a first code given to a drug dispensed at a dispensing pharmacy and a first usage amount of the drug in the dispensing, and a first storage means.
A second storage means for storing handling item data including a second code given to the drug of the packaging unit for sale handled in the dispensing pharmacy, and a second storage means.
In the first usage amount of the drug to which the first code included in the dispensing data stored in the first storage means is given, and in the second code included in the handling item data stored in the second storage means. Based on the first calculation means for calculating the second usage amount of the drug for each packaging unit for sale,
Based on the calculated second usage amount, a second calculation means for calculating the expected inventory quantity of the drug for each packaging unit for sale, and
A third storage means for storing inventory data indicating the expected number inventory the calculated,
Order data including the second code given to the drug for each sales packaging unit ordered at the dispensing pharmacy and the order quantity of the drug for each sales packaging unit to which the second code is given. A fourth storage means for storing is provided , and the storage means is provided.
The second usage amount is corrected based on the ratio of the ordering amount for each sales packaging unit of the drug to which the second code included in the ordering data stored in the fourth storage means is given.
Inventory management device.
前記第2算出手段は、前記在庫管理装置で管理している前記医薬品の在庫数から前記算出された第2使用量を減算することによって前記医薬品の予想在庫数を算出する請求項1記載の在庫管理装置。 The inventory according to claim 1, wherein the second calculation means calculates the expected inventory number of the drug by subtracting the calculated second usage amount from the inventory number of the drug managed by the inventory management device. Management device. 前記調剤データは、当該調剤データに含まれる第1コードが付与された医薬品を一包化するか否かを示す一包化情報を更に含み、
前記第1算出手段は、前記調剤データに含まれる第1コードが付与されている医薬品の第1使用量に対する前記一包化された当該医薬品の第1使用量の比率に基づいて、前記第2使用量を算出する
請求項1または2記載の在庫管理装置。
The dispensing data further includes packaging information indicating whether or not to package the drug to which the first code included in the dispensing data is attached.
The first calculation means is based on the ratio of the first usage amount of the packaged drug to the first usage amount of the drug to which the first code included in the dispensing data is given. The inventory management device according to claim 1 or 2, which calculates the usage amount.
前記第3格納手段に格納された在庫データによって示される予想在庫数に基づいて前記第2コードが付与されている医薬品を発注するまたは当該発注を通知する処理を実行する発注処理手段を更に具備する請求項1〜のいずれか一項に記載の在庫管理装置。 Further provided with an order processing means for ordering a drug to which the second code is assigned or executing a process of notifying the order based on the expected inventory quantity indicated by the inventory data stored in the third storage means. The inventory management device according to any one of claims 1 to 3. 前記第3格納手段に格納された在庫データによって示される予想在庫数及び前記算出された第2使用量に基づいて、前記第2コードが付与されている医薬品の残りの調剤日数を算出する第3算出手段を更に具備し、
前記発注処理手段は、前記算出された調剤日数が予め定められた値以下である場合、当該調剤日数が算出された医薬品を発注するまたは当該発注を通知する処理を実行する
請求項記載の在庫管理装置。
A third calculation of the remaining dispensing days of a drug to which the second code is given, based on the expected inventory quantity indicated by the inventory data stored in the third storage means and the calculated second usage amount. Further equipped with calculation means,
The inventory according to claim 4 , wherein the order processing means executes a process of ordering a drug for which the calculated dispensing days are calculated or notifying the order when the calculated dispensing days are equal to or less than a predetermined value. Management device.
前記発注処理手段は、予め定められている上限数から前記第3格納手段に格納された在庫データによって示される予想在庫数を減算した数の前記医薬品を発注するまたは当該発注を通知する処理を実行する請求項または記載の在庫管理装置。 The order processing means executes a process of ordering or notifying the order of the drug in a number obtained by subtracting the expected inventory number indicated by the inventory data stored in the third storage means from the predetermined upper limit number. The inventory management device according to claim 4 or 5. 前記調剤薬局に設置されている端末に対する操作に基づいて前記発注処理手段による発注内容が変更された場合に、前記第3格納手段に格納されている在庫データによって示される予想在庫数を変更する変更手段を更に具備する請求項のいずれか一項に記載の在庫管理装置。 Change to change the expected inventory quantity indicated by the inventory data stored in the third storage means when the order contents by the order processing means are changed based on the operation on the terminal installed in the dispensing pharmacy. The inventory management device according to any one of claims 4 to 6 , further comprising means. 前記第3格納手段に格納されている在庫データによって示される予想在庫数が、予め定められた期間、変動していない場合に、当該予想在庫数が変動していない医薬品を出品するための出品データを生成する出品処理手段と、
前記生成された出品データを格納する第5格納手段と
を更に具備する請求項1〜のいずれか一項に記載の在庫管理装置。
When the expected inventory quantity indicated by the inventory data stored in the third storage means does not fluctuate for a predetermined period, listing data for listing a drug whose expected inventory quantity does not fluctuate. And the listing processing means to generate
The inventory management device according to any one of claims 1 to 7 , further comprising a fifth storage means for storing the generated listing data.
他の調剤薬局が医薬品を購入するための購入予約データを格納する第6格納手段と、
前記出品データを前記購入予約データとマッチングさせるマッチング処理手段と
を更に具備し、
前記出品データは、前記調剤薬局から出品される医薬品に付与されている第2コード及び当該医薬品に関する医薬品情報を含み、
前記購入予約データは、前記他の調剤薬局が購入を予約する医薬品に付与されている第1コードまたは第2コードと当該他の調剤薬局によって指定された条件とを含み、
前記マッチング処理手段は、
前記購入予約データに第1コードが含まれている場合、前記出品データに含まれている第2コードと当該購入予約データに含まれている第1コードとが対応関係にあり、前記医薬品情報が前記条件を満たす場合に、前記出品データを前記購入予約データとマッチングさせ
前記購入予約データに第2コードが含まれている場合、前記出品データに含まれている第2コードと当該購入予約データに含まれている第2コードとが一致し、前記医薬品情報が前記条件を満たす場合に、前記出品データを前記購入予約データとマッチングさせる
請求項記載の在庫管理装置。
A sixth storage means for storing purchase reservation data for other dispensing pharmacies to purchase medicines,
Further provided with a matching processing means for matching the exhibition data with the purchase reservation data,
The listing data includes a second code given to a drug listed by the dispensing pharmacy and drug information about the drug.
The purchase reservation data includes a first code or a second code given to a drug reserved for purchase by the other dispensing pharmacy and conditions specified by the other dispensing pharmacy.
The matching processing means
When the purchase reservation data includes the first code, the second code included in the exhibition data and the first code included in the purchase reservation data are in a corresponding relationship, and the drug information is obtained. When the above conditions are satisfied, the listing data is matched with the purchase reservation data, and when the purchase reservation data includes a second code, the second code included in the listing data and the purchase reservation data The inventory management device according to claim 8 , wherein the listing data is matched with the purchase reservation data when the included second code matches and the drug information satisfies the above conditions.
前記出品データと前記購入予約データとがマッチングされた場合、前記出品データに含まれる第2コードが付与されている医薬品を前記他の調剤薬局が購入するための処理が実行される請求項記載の在庫管理装置。 The ninth aspect of claim 9, wherein when the listing data and the purchase reservation data are matched, a process for the other dispensing pharmacy to purchase the drug to which the second code included in the listing data is attached is executed. Inventory management device. 前記出品データに含まれる医薬品情報は、前記調剤薬局から出品される医薬品の数量を含み、
前記出品データを前記購入予約データとマッチングさせた場合、前記第3格納手段に格納されている在庫データによって示される予想在庫数は、前記医薬品情報に含まれる数量に基づいて更新される
請求項10記載の在庫管理装置。
The drug information included in the listing data includes the quantity of drugs listed from the dispensing pharmacy.
If the exhibition data to the ordered book data and matching the expected inventory is indicated by stored in and inventory data to a third storage unit, according to claim 10, which is updated based on the quantity contained in the drug information The listed inventory management device.
調剤薬局において調剤された医薬品に付与されている第1コード及び当該調剤における当該医薬品の第1使用量を含む調剤データを格納する第1格納手段と、前記調剤薬局において取り扱われる販売用包装単位の前記医薬品に付与されている第2コードを含む取扱品目データを格納する第2格納手段とを備える在庫管理装置が実行する在庫管理方法であって、
前記第1格納手段に格納されている調剤データに含まれる第1コードが付与されている医薬品の第1使用量及び前記第2格納手段に格納されている取扱品目データに含まれる第2コードに基づいて、前記医薬品の第2使用量を前記販売用包装単位毎に算出するステップと、
前記算出された第2使用量に基づいて、前記医薬品の予想在庫数を前記販売用包装単位毎に算出するステップと、
前記算出された予想在庫数を示す在庫データを第3格納手段に格納するステップと
前記調剤薬局において発注された販売用包装単位毎の前記医薬品に付与されている第2コード及び当該第2コードが付与されている前記販売用包装単位毎の前記医薬品の発注量を含む発注データを第4格納手段に格納するステップと
を具備し、
前記第2使用量は、前記第4格納手段に格納されている発注データに含まれている第2コードが付与されている医薬品の販売用包装単位毎の発注量の比率に基づいて補正される
庫管理方法。
A first storage means for storing a first code given to a drug dispensed at a dispensing pharmacy and dispensing data including a first usage amount of the drug in the dispensing, and a packaging unit for sale handled at the dispensing pharmacy. An inventory management method executed by an inventory management device including a second storage means for storing handling item data including a second code given to the drug.
In the first usage amount of the drug to which the first code included in the dispensing data stored in the first storage means is given, and in the second code included in the handling item data stored in the second storage means. Based on the step of calculating the second usage amount of the drug for each packaging unit for sale,
Based on the calculated second usage amount, the step of calculating the expected inventory quantity of the drug for each packaging unit for sale, and
And storing the inventory data indicating an expected number inventory the calculated Third storage means,
Order data including the second code given to the drug for each sales packaging unit ordered at the dispensing pharmacy and the order quantity of the drug for each sales packaging unit to which the second code is given. It is provided with a step of storing in the fourth storage means.
The second usage amount is corrected based on the ratio of the ordering amount for each sales packaging unit of the drug to which the second code included in the ordering data stored in the fourth storage means is given.
Inventory management method.
調剤薬局において調剤された医薬品に付与されている第1コード及び当該調剤における当該医薬品の第1使用量を含む調剤データを格納する第1格納手段と、前記調剤薬局において取り扱われる販売用包装単位の前記医薬品に付与されている第2コードを含む取扱品目データを格納する第2格納手段とを備える在庫管理装置のコンピュータによって実行されるプログラムであって、
前記コンピュータに、
前記第1格納手段に格納されている調剤データに含まれる第1コードが付与されている医薬品の第1使用量及び前記第2格納手段に格納されている取扱品目データに含まれる第2コードに基づいて、前記医薬品の第2使用量を前記販売用包装単位毎に算出するステップと、
前記算出された第2使用量に基づいて、前記医薬品の予想在庫数を前記販売用包装単位毎に算出するステップと、
前記算出された予想在庫数を示す在庫データを第3格納手段に格納するステップと
前記調剤薬局において発注された販売用包装単位毎の前記医薬品に付与されている第2コード及び当該第2コードが付与されている前記販売用包装単位毎の前記医薬品の発注量を含む発注データを第4格納手段に格納するステップと
を実行させ
前記第2使用量は、前記第4格納手段に格納されている発注データに含まれている第2コードが付与されている医薬品の販売用包装単位毎の発注量の比率に基づいて補正される
ログラム。
A first storage means for storing a first code given to a drug dispensed at a dispensing pharmacy and dispensing data including a first usage amount of the drug in the dispensing, and a packaging unit for sale handled at the dispensing pharmacy. A program executed by a computer of an inventory management device including a second storage means for storing handling item data including a second code given to the drug.
On the computer
In the first usage amount of the drug to which the first code included in the dispensing data stored in the first storage means is given, and in the second code included in the handling item data stored in the second storage means. Based on the step of calculating the second usage amount of the drug for each packaging unit for sale,
Based on the calculated second usage amount, the step of calculating the expected inventory quantity of the drug for each packaging unit for sale, and
And storing the inventory data indicating an expected number inventory the calculated Third storage means,
Order data including the second code given to the drug for each sales packaging unit ordered at the dispensing pharmacy and the order quantity of the drug for each sales packaging unit to which the second code is given. Execute the step of storing in the fourth storage means ,
The second usage amount is corrected based on the ratio of the ordering amount for each sales packaging unit of the drug to which the second code included in the ordering data stored in the fourth storage means is given.
Program.
JP2019020837A 2019-02-07 2019-02-07 Inventory management equipment, inventory management methods and programs Active JP6896780B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019020837A JP6896780B2 (en) 2019-02-07 2019-02-07 Inventory management equipment, inventory management methods and programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019020837A JP6896780B2 (en) 2019-02-07 2019-02-07 Inventory management equipment, inventory management methods and programs

Publications (2)

Publication Number Publication Date
JP2020129200A JP2020129200A (en) 2020-08-27
JP6896780B2 true JP6896780B2 (en) 2021-06-30

Family

ID=72175347

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019020837A Active JP6896780B2 (en) 2019-02-07 2019-02-07 Inventory management equipment, inventory management methods and programs

Country Status (1)

Country Link
JP (1) JP6896780B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7055182B1 (en) * 2020-11-05 2022-04-15 三菱電機Itソリューションズ株式会社 Drug order management device, drug order management method, and drug order management program
JP7061222B1 (en) 2021-01-18 2022-04-27 株式会社カケハシ Equipment, methods and programs for managing product inventories in medical institutions
JP7154361B1 (en) 2021-04-12 2022-10-17 株式会社カケハシ Device, method and program for order processing of products in medical institutions

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004302593A (en) * 2003-03-28 2004-10-28 Japan Research Institute Ltd Medicine distribution management system and medicine distribution management program
JP2004310364A (en) * 2003-04-04 2004-11-04 Itsuki Yamashiro Pharmaceutical trade mediation system
JP4856387B2 (en) * 2005-04-04 2012-01-18 東日本メディコム株式会社 Order-predicted inventory management system for individual patients
US20120259655A1 (en) * 2011-04-06 2012-10-11 Madreperla Steven A Drug Inventory System
US9818079B2 (en) * 2011-05-21 2017-11-14 Ortho-Clinical Diagnostics, Inc. System and method of inventory management
JP6249619B2 (en) * 2013-03-26 2017-12-20 キヤノン株式会社 Information processing apparatus, information processing method, and program
JP6253254B2 (en) * 2013-05-20 2017-12-27 株式会社平安堂 Drug inventory management system
JP6943399B2 (en) * 2017-02-27 2021-09-29 株式会社ファーマクラウド Drug inventory management program and drug inventory management method

Also Published As

Publication number Publication date
JP2020129200A (en) 2020-08-27

Similar Documents

Publication Publication Date Title
JP6253254B2 (en) Drug inventory management system
JP6896780B2 (en) Inventory management equipment, inventory management methods and programs
JP2004287833A (en) Dispensing work support system, medicine storage system and medicine distribution management system
Mawengkang An Optimization Model for Hospitals Inventory Management in Pharmaceutical Supply Chain.
JP6801869B2 (en) Drug inventory management system, drug inventory management device, drug inventory management method, program
US20230066432A1 (en) Multi-furcated allocation system
US10685390B1 (en) Optimized drug supply logistical techniques for a central drug distribution center
JP7135232B1 (en) Fudo Pharmaceutical Matching System, Fudo Pharmaceutical Matching Method, Fudo Pharmaceutical Matching Server and Program
JP2007094839A (en) Dispensing pharmacy support method and dispensing pharmacy support system
US11361862B2 (en) Optimized drug supply logistical techniques
JP2022111035A (en) Apparatus and method for managing product inventory in medical institution and program therefore
JP2022124444A (en) Dispensing system, information processing device, program and dispensing method
JP6781104B2 (en) Predictors, prediction methods, and prediction programs
JP2003095439A (en) Physical distribution system for medicine
KR102121226B1 (en) Distribution management method and distribution management system
JP6994196B2 (en) Drug traceability system
JP2017199081A (en) Stock trading system and program
US10720234B1 (en) Account reconciliation based on dispensing medication under a drug discount program
WO2022059309A1 (en) Article management system and article management program
JP7154361B1 (en) Device, method and program for order processing of products in medical institutions
JP2003296821A (en) Dispensary store management supporting method
WO2021245894A1 (en) Drug inventory management terminal and drug management system
JP7216170B1 (en) Merchandise management device, merchandise management method, and merchandise management program
JP7392285B2 (en) Pharmaceutical demand forecasting system and pharmaceutical distribution system
KR102403624B1 (en) Method, system, and computer-readable medium for providing compensation information according to drug price reduction

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20191107

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20201210

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20201222

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20210222

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210419

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: 20210511

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210609

R150 Certificate of patent or registration of utility model

Ref document number: 6896780

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

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