JP2020129200A - Inventory management device, inventory management method and program - Google Patents

Inventory management device, inventory management method and program Download PDF

Info

Publication number
JP2020129200A
JP2020129200A JP2019020837A JP2019020837A JP2020129200A JP 2020129200 A JP2020129200 A JP 2020129200A JP 2019020837 A JP2019020837 A JP 2019020837A JP 2019020837 A JP2019020837 A JP 2019020837A JP 2020129200 A JP2020129200 A JP 2020129200A
Authority
JP
Japan
Prior art keywords
data
drug
code
dispensing
inventory
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.)
Granted
Application number
JP2019020837A
Other languages
Japanese (ja)
Other versions
JP6896780B2 (en
Inventor
賢二 岩井
Kenji Iwai
賢二 岩井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Epark Inc
Original Assignee
Epark Inc
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 Inc filed Critical Epark Inc
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

Abstract

To make inventory management of medicines available in a dispensing pharmacy.SOLUTION: Based on a first usage quantity of medicines to which a first code is given and which is included in dispensing data stored in a dispensing data storage unit 101 and a second code included in handling item data stored in a handling item data storage unit 104, a first calculation unit 106 calculates a second usage quantity of medicines for each packaging unit for sale. A second calculation unit 108 calculates expected inventory figures of the medicines for each packaging unit for sale based on the second usage amount calculated by the first calculating unit 106. An inventory data storage unit 105 stores inventory data indicating the inventory figures calculated by the second calculation unit 108.SELECTED DRAWING: Figure 3

Description

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

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

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

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

特開2004−062607号公報JP, 2004-062607, A

そこで、本発明の目的は、調剤薬局における医薬品の在庫を管理することが可能な在庫管理装置、在庫管理方法及びプログラムを提供することにある。 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 medicines in a dispensing pharmacy.

本発明の1つの態様によれば、在庫管理装置は、第1格納手段と、第2格納手段と、第1算出手段と、第2算出手段と、第4格納手段とを具備する。前記第1格納手段は、調剤薬局において調剤された医薬品に付与されている第1コード及び当該調剤における当該医薬品の第1使用量を含む調剤データを格納する。前記第2格納手段は、前記調剤薬局において取り扱われる販売用包装単位の前記医薬品に付与されている第2コードを含む取扱品目データを格納する。前記第1算出手段は、前記第1格納手段に格納されている調剤データに含まれる第1コードが付与されている医薬品の第1使用量及び前記第2格納手段に格納されている取扱品目データに含まれる第2コードに基づいて、前記医薬品の第2使用量を前記販売用包装単位毎に算出する。前記第2算出手段は、前記算出された第2使用量に基づいて、前記医薬品の予想在庫数を前記販売用包装単位毎に算出する。前記第4格納手段は、前記算出された在庫数を示す在庫データを格納する。 According to one aspect of the present invention, the inventory management device includes a first storage unit, a second storage unit, a first calculation unit, a second calculation unit, and a fourth storage unit. 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 handling item data including a second code given to the medicine in the packaging unit for sale handled in the dispensing pharmacy. The first calculation means is the first usage amount of the medicine to which the first code included in the dispensing data stored in the first storage means is added, and the handling item data stored in the second storage means. The second usage amount of the medicine is calculated for each of the sales packaging units based on the second code included in. The second calculating means calculates the expected stock quantity of the medicine for each of the packaging units for sale based on the calculated second usage amount. The fourth storage means stores inventory data indicating the calculated inventory quantity.

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

本発明の第1実施形態における在庫管理システムの構成の一例を示す図。The figure which shows an example of a structure of the inventory management system in 1st Embodiment of this invention. 在庫管理装置のハードウェア構成の一例を示す図。The figure which shows an example of the hardware constitutions of an inventory management apparatus. 在庫管理装置の機能構成の一例を示すブロック図。FIG. 3 is a block diagram showing an example of a functional configuration of an inventory management device. 調剤データ格納部に格納されている調剤データのデータ構造の一例を示す図。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 corresponding data stored in the corresponding data storage part. 在庫管理装置の処理手順の一例を示すフローチャート。The flowchart which shows an example of the processing procedure of an inventory management apparatus. 本発明の第2実施形態における在庫管理システムの構成の一例を示す図。The figure which shows an example of a structure of the inventory management system in 2nd Embodiment of this invention. 在庫管理装置の機能構成の一例を示すブロック図。FIG. 3 is a block diagram showing an example of a functional configuration of an inventory management device. 出品処理の処理手順の一例を示すフローチャート。The flowchart which shows an example of the processing procedure of exhibition processing. 出品データ格納部に格納された出品データのデータ構造の一例を示す図。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 process 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, a first embodiment of the present invention will be described. FIG. 1 shows an example of the configuration of an inventory management system (network system) according to this embodiment.

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

店舗端末20は、医薬品の在庫が管理される調剤薬局に設置される端末(電子機器)であり、当該調剤薬局のスタッフ(例えば、薬剤師等)によって使用される。店舗端末20としては例えばパーソナルコンピュータ(PC)が利用可能であるが、スマートフォン及びタブレット端末等の他の電子機器が店舗端末20として用いられてもよい。 The store terminal 20 is a terminal (electronic device) installed in a dispensing pharmacy where the inventory of medicines is managed, and is used by staff (for example, a pharmacist) of the dispensing pharmacy. For example, a personal computer (PC) can be used as the store terminal 20, but other electronic devices such as a smartphone and a tablet terminal 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, a non-volatile memory 12, a CPU 13, a main memory 14, a communication device 15 and the like are connected to a bus 11. The non-volatile memory 12 and the main memory 14 configure a storage device of the inventory management device 10.

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

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

メインメモリ14は、例えばCPU13が各種プログラムを実行する際に必要とされるワークエリア等として用いられる。 The main memory 14 is used as, for example, a work area 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). Good.

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

図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 this 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 handled item data storage unit 104, an inventory data storage unit 105, a first calculation unit 106, The correction unit 107, the second calculation unit 108, and the order processing unit 109 are included.

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

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

ここでは、各部106〜109がソフトウェアによって実現されるものとして説明したが、当該各部106〜109は、ハードウェアによって実現されてもよいし、ソフトウェア及びハードウェアの組み合わせによって実現されてもよい。 Although the respective units 106 to 109 have been described as being realized by software here, the respective units 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 regarding dispensing that has already been performed at the dispensing pharmacy in which the store terminal 20 is installed. The dispensation data stores the dispensation data including the first code given to the drug dispensed at the dispensing pharmacy and the usage amount of the drug in the dispense. It should be noted that the first code is a code given to a drug in units of type (eg, drug name).

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

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

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

すなわち、調剤データ上では同一の第1コードが付与されている医薬品であっても、販売用包装単位が異なる医薬品は、発注データ上では互いに異なる第2コードが付与されて管理されている。すなわち、本実施形態において、第1コードと第2コードとは、1対多の関係にあるといえる。 In other words, even though the medicines have the same first code in the dispensing data, the medicines in different packaging units for sale are managed with the different second codes in the ordering data. That is, in this 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 the drug is managed based on the usage amount of the drug to which the first code included in the dispensing data is given. In this case, the first code included in the dispensing data is It is necessary to estimate the usage amount of the drug to which each of the second codes corresponding to the first code is applied from the usage amount of the granted drug.

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

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

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

なお、調剤薬局において取り扱われる医薬品には、当該調剤薬局において既に発注したことがある医薬品だけではなく、今後発注する予定がある医薬品等が含まれる。このため、取扱品目データは、上記した発注データとは別に管理されている。本実施形態においては上記したように取扱品目データが発注データとは別に管理されているものとして説明するが、当該発注データが取扱品目データを兼ねていてもよい。 Drugs handled by a dispensing pharmacy include not only drugs that have already been ordered by 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 order data. In the present embodiment, as described above, the handling item data is managed separately from the ordering data, 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 attached, the correspondence data and the handling item data stored in the correspondence data storage unit 103. 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 drug used calculated by the first calculator 106 is an estimated 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 stock quantity of the drug for each packaging unit for sale based on the usage amount of the drug corrected by the correction unit 107. The stock quantity of the medicine calculated by the second calculator 108 is an expected value (that is, the expected stock quantity).

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

発注処理部109は、在庫データ格納部105に格納されている在庫データによって示される在庫数に基づいて、医薬品を販売用包装単位で発注する(つまり、JANコードが付与されている医薬品を発注する)処理を実行する。 The order processing unit 109 orders a drug 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 a drug to which a JAN code is attached). ) Perform 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 a remark.

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

処方医薬品は、対応づけられている処方箋IDによって識別される処方箋に基づいて調剤された医薬品を示す。なお、処方箋には当該処方箋に基づいて調剤されるべき医薬品の医薬品名が記載されているが、調剤データに含まれる処方医薬品は、当該医薬品名の医薬品に付与されているYJコードを含む。 The prescription drug indicates a drug dispensed based on the 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 assigned to the drug having the drug name.

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

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

図4に示す例では、調剤データ格納部101には、調剤データ101a〜101cが格納されている。 In the example shown in FIG. 4, the dispensing data storage unit 101 stores 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」が付与されている医薬品が一包化されていないことが示されている。 The dispensing data 101a includes a prescription ID "1", a patient name "A", a dispensing date "November 22, 2018", a prescription content "YJ code 1", a quantity "quantity 1", and a remark "-". Including. According to this dispensing data 101a, based on the prescription identified by the prescription ID “1” issued to the patient whose patient name is “A”, on November 22, 2018, the “quantity 1” of “ It is shown that a medicine to which “YJ code 1” is given has been dispensed. Further, according to the dispensing data 101a, it is shown that the medicine to which the “YJ code 1” is dispensed based on the prescription identified by the prescription ID “1” is 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」が付与されている医薬品が一包化されていないことが示されている。 Further, the dispensing data 101b includes a prescription ID "1", a patient name "A", a dispensing date "November 22, 2018", a prescription content "YJ code 2", a quantity "quantity 2", and a remark "-". "including. According to this dispensing data 101b, based on the prescription identified by the prescription ID “1” issued to the patient whose patient name is “A”, the “quantity 2” It is shown that a drug to which “YJ code 2” is given has been dispensed. Further, according to the dispensing data 101b, it is shown that the medicine to which the “YJ code 2” dispensed based on the prescription identified by the prescription ID “1” is not packaged. ..

上記した調剤データ101a及び101bに示すように、1つの処方箋(処方箋ID「1」によって識別される処方箋)に基づいて種別の異なる複数の医薬品が調剤されても構わない。 As shown in the above-mentioned dispensing data 101a and 101b, a plurality of pharmaceuticals 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」が付与されている医薬品が一包化されたことが示されている。 The dispensing data 101c includes a prescription ID "2", a patient name "B", a dispensing date "November 23, 2018", a prescription content "YJ code 3", a quantity "quantity 3", and a remark "packaging". including. According to this dispensing data 101c, based on the prescription identified by the prescription ID "2" issued to the patient whose patient name is "B", " It is shown that a drug to which “YJ code 3” is given has been dispensed. Further, according to the dispensing data 101c, it is shown that the medicine to which the “YJ code 3” that is dispensed based on the prescription identified by the prescription ID “2” is attached is packaged.

ここでは、調剤データ101a〜101cについてのみ説明したが、調剤データ格納部101には、調剤薬局において調剤された医薬品毎の調剤データが格納されている。 Although only the dispensing data 101a to 101c has been described here, the dispensing data storage unit 101 stores 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, the patient name, the dispensing date, the prescription content, the quantity (usage amount) and the remark (packaging information). May have some of them omitted, or may further include other information.

なお、本実施形態における調剤データはレセプトコンピュータから取得されるが、当該調剤データは、上記した図4において説明したデータに相当するものであれば、例えばレセプトコンピュータとは独立して管理されるデータであってもよい(つまり、レセプトコンピュータから取得されるデータでなくてもよい)。 Note that 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 managed independently of the receipt computer. (That is, the data does not have to be obtained from the receiving computer).

図5は、図3に示す発注データ格納部102に格納されている発注データのデータ構造の一例を示す。図5に示すように、発注データは、発注医薬品、発注年月日及び発注量を含む。 FIG. 5 shows an example of the data structure of 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 ordered date, and the ordered quantity.

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

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

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

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

発注データ102aは、発注医薬品「JANコード11」、発注年月日「平成30年10月1日」及び発注量「500錠×1瓶」を含む。この発注データ102aによれば、「JANコード11」が付与されている販売用包装単位の医薬品が500錠×1瓶の数量で平成30年10月1日に発注されたことが示されている。 The order data 102a includes the ordered drug “JAN code 11”, the order date “October 1, 2018”, and the order amount “500 tablets×1 bottle”. The order data 102a indicates that the medicine in the packaging unit for sale to which the "JAN code 11" is attached is ordered on October 1, 2018 in a 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 order data 102b includes the ordered drug “JAN code 12”, the order date “October 1, 2018”, and the order quantity “10 tablets/sheet×50”. The order data 102b indicates that the medicine in the packaging unit for sale to which the "JAN code 12" is attached has been ordered on October 1, 2018 in a quantity of 10 tablets sheet x 50. ..

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

また、図5に示す例においては発注データが発注医薬品、発注年月日及び発注量を含むものとして説明したが、当該発注データは、これらの一部が省略されたものであってもよいし、他の情報を更に含むものであってもよい。 In the example shown in FIG. 5, the order data has been described as including the ordered drug, the ordered date, and the ordered quantity, but the ordered data may be a part of these 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 correspondence data includes a YJ code and a 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 medicine for each packaging unit for sale, and is included in, for example, order data, handled item data, and inventory data.

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

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

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

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

すなわち、本実施形態においては、上記したように同一の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 provided for the same YJ code (here, “YJ code 1”). They are associated with each other, and the YJ code and the JAN code have a one-to-many relationship.

ここでは、対応データ103a及び103bについてのみ説明したが、対応データ格納部103には、YJコード毎の対応データが格納されている。 Here, only the correspondence data 103a and 103b have been described, but the correspondence data storage unit 103 stores the correspondence 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. Anything including the JAN code assigned to

また、図3に示す在庫データ格納部105に格納されている在庫データは、販売用包装単位の医薬品に付与されているJANコード及び当該医薬品の在庫数を含むものであればよい。 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 inventory number 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 in FIG. 7.

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

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

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

なお、図7に示す処理は、予め定められた期間毎に実行されるものとする。具体的には、図7に示す処理は、例えば1日に1回、調剤薬局の営業時間外に実行されるものとする。 It should be noted that the processing shown in FIG. 7 is executed every predetermined period. Specifically, the processing shown in FIG. 7 is executed once a day, for example, 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 will be described in which the process is executed for one of the YJ codes included in the dispensing data (hereinafter referred to as the target YJ code).

まず、第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においては、当該処理が前回実行されてから現在(つまり、当該処理が実行されている時点)までの間に行われた調剤に関する調剤データが取得される。 Note that, as described above, the process shown in FIG. 7 is executed every predetermined period (for example, one day), but in step S1, since the process was executed last time (that is, the process is Dispensing data regarding the dispensing performed up to the point (at 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 business hours on November 23, 2018, the dispensing date is “November 22, 2018” in step S1. Dispensing data is acquired. Similarly, when the process shown in FIG. 7 is executed before business hours on November 24, 2018, in step S1, the dispensing date is “November 23, 2018”. The data is acquired. In step S1, a plurality of dispensing data may be acquired.

次に、第1算出部106は、ステップS1において取得された調剤データに基づいて、対象YJコードが付与されている医薬品の使用量(以下、対象YJコードの使用量と表記)を算出する(ステップS2)。ステップS2においては、ステップS1において取得された調剤データに含まれる数量(使用量)の合計値が算出される。 Next, the first calculating unit 106 calculates the usage amount of the drug to which the target YJ code is attached (hereinafter, referred to as the usage amount of the target YJ code) based on the dispensing data acquired in step S1 ( Step S2). In step S2, the total value of the quantities (usage 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 calculating unit 106 assigns 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 usage amount of the existing medicine (hereinafter referred to as the usage amount of JAN code) 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 corresponding data stored in the corresponding data storage unit 103.

次に、第1算出部106は、取得された対応データにおいて対象YJコードに対応づけられている複数のJANコードのうち、取扱品目データ格納部104に格納されている取扱品目データに含まれるJANコードを特定する。ここで特定されるJANコードは、対象YJコードが付与されている医薬品が調剤された際に、使用された可能性がある医薬品(販売用包装単位の医薬品)に付与されているJANコードである。 Next, the first calculating unit 106 includes the JAN included in the handled item data stored in the handled 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 the JAN code given to the drug (the drug in the packaging unit for sale) that may have been used when the drug to which the target YJ code was given was dispensed. ..

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

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

なお、本実施形態において、調剤データに含まれるYJコードが付与されている医薬品が一包化された場合には、例えば瓶詰された医薬品(つまり、バラ)が使用されたものと推測する。一方、調剤データに含まれるYJコードが付与されている医薬品が一包化されていない場合には、シート状の医薬品が使用されたものと推測する。 In addition, in the present embodiment, when the medicine to which the YJ code included in the dispensing data is attached is packaged, it is estimated that, for example, a bottled medicine (that is, a rose) is used. On the other hand, when the medicine to which the YJ code included in the dispensing data is attached is not packaged, it is presumed that the medicine in the sheet form 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 encapsulation 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 specification amount of the packaged drug is 10%, the amount of the drug not packaged is 90%), It is estimated that 10% of the usage amount of the target YJ code was used from the bottled medicine (medicine to which the 1st JAN code is given). Similarly, it is estimated that 90% of the usage amount of the target YJ code is used from the sheet-shaped drug (medicine 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-described processing.

次に、補正部107は、発注データ格納部102に格納されている発注データに基づいて、ステップS3において算出された第1及び第2JANコードの使用量を補正する(ステップS4)。 Next, the correction unit 107 corrects the usage amounts 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, among the order data stored in the order data storage unit 102, order data including the above-mentioned first JAN code (hereinafter referred to as first order data) and a second JAN code. Ordering data (hereinafter referred to as second ordering data) is acquired. In this case, the correction unit 107 acquires the first order data and the second order data in which the order date falls within a predetermined period (that is, regarding orders placed within the predetermined period).

補正部107は、第1発注データに含まれる発注量(の合計値)及び第2発注データに含まれる発注量(の合計値)に基づいて、第1JANコードが付与されている医薬品(例えば、瓶詰の医薬品)と第2JANコードが付与されている医薬品(例えば、シート状の医薬品)との過去の発注比率を算出する。 The correction unit 107, 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, the drug to which the first JAN code is assigned (for example, The past ordering ratio between the bottled medicine) and the medicine to which the second JAN code is added (for example, a sheet medicine) is calculated.

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

補正部107は、補正された一包化比率を対象YJコードの使用量に対して適用することによって、第1JANコードの使用量及び第2JANコードの使用量(つまり、補正後の使用量)を再度算出する。 The correction unit 107 applies the corrected encapsulation ratio to the usage amount of the target YJ code to determine the usage amount of the first JAN code and the usage amount of the second JAN code (that is, the corrected usage amount). 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の処理は省略されても構わない。 If, for example, the order data storage unit 102 does not store sufficient order data, 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 the 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 (the usage amount of the first JAN code or the usage amount of the second JAN code) corrected in step S4 and the inventory data stored in the inventory data storage unit 105. Then, the stock number of medicines to which the target JAN code is given (hereinafter referred to as the stock number of the target JAN code) is calculated (step S5). In this case, the second calculating unit 108 calculates the current inventory quantity of the target JAN code by subtracting the usage amount of the target JAN code from the inventory quantity included in the inventory data including the target JAN code. The number of stocks included in the inventory data including the target JAN code is the number of stocks of the medicine to which the target JAN code is given which is currently grasped (managed) by the inventory management device 10, and specifically, in FIG. It is the inventory quantity calculated when the process was executed last time (expected inventory quantity up to the previous calculation time), but may be the inventory quantity specified by the staff of the dispensing pharmacy, for example.

なお、本実施形態において、発注データ格納部102に格納されている発注データに含まれる対象JANコードが付与されている医薬品の発注量は、対象JANコードの在庫数に加算されるものとする。この発注量の加算は、発注データが発注データ格納部102に格納された時点で実行されてもよいし、ステップS5において実行されてもよい。ステップS5において実行される場合には、図7の処理が前回実行されてから現在までの間において行われた対象JANコードが付与されている医薬品の発注に関する発注データ(つまり、当該対象JANコードを含む発注データ)に含まれる発注量が在庫数に加算されればよい。 In the present embodiment, the order quantity of a drug to which the target JAN code is added, which is included in the order data stored in the order data storage unit 102, is added to the stock 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 ordering data (that is, the target JAN code is related to the ordering of the drug to which the target JAN code has been given between the time when the process of FIG. The order quantity included in the included order data) may be added to the stock quantity.

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

本実施形態においては、上記したように在庫データ格納部105に格納されている在庫データを更新していくことによって、対象JANコードの在庫数を管理することができる。なお、在庫データ格納部105に格納されている在庫データによって示される対象JANコードの在庫数は、例えば店舗端末20に表示されることによって、調剤薬局のスタッフが確認することができるものとする。他のJANコードについても同様である。 In the present embodiment, the stock quantity of the target JAN code can be managed by updating the stock data stored in the stock data storage unit 105 as described above. The stock quantity of the target JAN code indicated by the stock data stored in the stock data storage unit 105 can be confirmed by the staff of the dispensing pharmacy by being displayed 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, when the processing shown in FIG. 7 is executed, for example, every day, the usage amount of the target JAN code corrected in step S4 described above is given by the target JAN code during one day. It corresponds to the amount of medicines used.

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

ステップS6の処理が実行されると、発注処理部109は、当該ステップS6において算出された調剤日数が予め定められた値(以下、閾値と表記)以上であるか否かを判定する(ステップS7)。 When the process of step S6 is executed, the order processing unit 109 determines whether the number of dispensing days calculated in step S6 is equal to or more than a predetermined value (hereinafter, referred to as a threshold) (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 more than the threshold value (NO in step S7), the order processing unit 109 generates order data regarding the order of the medicine to which the target JAN code is attached (step S8). In step S8, for example, the target JAN code is set as the ordered drug, the shortest date when the drug can be ordered at this time is set as the ordered date, and the current target is determined from the upper limit number (upper limit value) of the stock quantity determined in advance. Order data is generated with the order quantity being a value obtained by subtracting the JAN inventory quantity. The ordering date included in the ordering data generated in step S8 is, for example, a date in consideration of the remaining number of dispensing days described above (for example, a date around which the remaining number of dispensing days elapses from the present time). 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 of the drug with the target JAN code).

ここで、調剤薬局のスタッフは、店舗端末20に表示された発注データの内容(つまり、発注内容)を確認し、当該店舗端末20を操作することによって当該発注内容を変更することができる。具体的には、調剤薬局のスタッフは、店舗端末20に表示された発注データに含まれる例えば発注年月日または発注量等を変更することができる。なお、調剤薬局のスタッフは、発注自体をキャンセルすることも可能である。調剤薬局のスタッフによって発注内容が変更された場合、当該変更された発注内容が店舗端末20から在庫管理装置10に送信(通知)される。 Here, the staff of the dispensing pharmacy can confirm the content of the order data displayed on the store terminal 20 (that is, the order content) and operate the store terminal 20 to change the order content. Specifically, the staff of the dispensing pharmacy can change, for example, the order date or the order amount included in the order data displayed on the store terminal 20. Note that the staff of the dispensing pharmacy can 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 details 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 content has been changed (YES in step S9), the order processing unit 109 reflects the change in the order content 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 is 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 stock quantity included in the stock data including the target JAN code based on the change of the order contents (step S11).
For example, when a change is made to delay the ordering time (ordering date), the actual stock quantity is larger than the stock quantity of the target JAN code managed by the stock management device 10, and therefore the dispensing It is speculated that pharmacy staff have made such changes. Therefore, if the ordering time is delayed, the usage amount of the target JAN code corrected in step S4 described above (that is, the drug to which the target JAN code is assigned during the day is used. The quantity obtained by multiplying the number of days) by the number of delayed days is added to the quantity of inventory included in the inventory data including the target JAN code to change (increase) the quantity of inventory. Note that the stock quantity included in the stock data including the target JAN code is also increased when the order quantity is changed or the order itself is canceled.

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

ステップ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 content 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 medicine from the dispensing pharmacy. The ordering data may be directly transmitted to a drug 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 has elapsed after the process of step S8 or step S10 is executed, or may be executed by the staff of the dispensing pharmacy via the store terminal 20. May be performed accordingly.

ステップS12の処理が実行されると、全てのJANコード(ここでは、第1JANコード及び第2JANコード)についてステップS5〜S12の処理が実行されたか否かを判定する(ステップS13)。 When the process of step S12 is executed, it is determined whether or not the processes of steps S5 to S12 have been executed for all 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 process has not been executed for all JAN codes (NO in step S13), the process returns to step S5 and the process is repeated. In this case, the JAN code for which the processing of steps S5 to S12 has not been executed is 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 JAN codes (YES in step S13), the processing shown in FIG. 7 is ended.

なお、ステップ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), it is determined that it is not necessary to order the drug with the target JAN code, and the process of step S13 is executed.

また、ステップS9において発注内容が変更されていないと判定された場合(ステップS9のNO)、ステップS8において生成された発注データに基づいてステップS12の処理が実行される。 When it is determined in step S9 that the order contents 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 processing shown in FIG. 7, the description has been made on the assumption that the staff of the dispensing pharmacy is notified of the order of the drug to which the target JAN code is added, but the order is automatically placed without notification. 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 processing executed for one of the YJ codes included in the dispensing data has been described with reference to FIG. 7, the processing illustrated in FIG. 7 is performed for each YJ code included in the dispensing data. Shall be executed. As a result, the inventory management device 10 according to the present embodiment manages the inventory for each JAN code corresponding to each YJ code included in the dispensing data.

なお、例えば1日に実行される発注処理の回数の上限が予め設定されていてもよい。具体的には、発注処理は1日最大3回まで可能としてもよい。この場合、例えば1回目は在庫更新時の自動発注であり、2回目及び3回目については任意とする。 Note that, for example, the upper limit of the number of ordering processes executed on 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 processing of steps S5 to S11 shown in FIG. 7 may be repeated for each JAN code, and the ordering processing (that is, the processing of step S12) may be collectively executed for the medicines that need to be ordered.

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

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

また、本実施形態においては、調剤データに含まれるYJコードの使用量に対する一包化された医薬品の使用量の比率に基づいてJANコードの使用量(つまり、販売用包装単位毎の使用量)を算出する。本実施形態においては、このような構成により、調剤データに含まれる一包化情報を利用してYJコードに対応する各JANコードの使用量を推測することが可能となる。 Further, in the present embodiment, the usage amount of the JAN code (that is, the usage amount of 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. To calculate. 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 packaging 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 medicine to which the JAN code included in the ordering data stored in the ordering data storage unit 102 is added. As a result, the estimated usage amount of each JAN code can be corrected so as to conform to the past order record.

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

具体的には、発注処理は、現在のJANコードの在庫数及び当該JANコードの1日の使用量に基づいて残りの調剤日数を算出し、当該調剤日数が閾値以下である場合に実行される。また、発注処理が実行される際の発注量は、予め定められた上限数から在庫数を減算した数とする。 Specifically, the ordering process is executed when the remaining number of dispensing days is calculated based on the current inventory number of the JAN code and the daily usage amount of the JAN code, and when 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 stock quantity from the predetermined upper limit quantity.

本実施形態においては、このような構成により、在庫数が減少した医薬品を適切なタイミング及び適切な数量で自動的に発注することができ、調剤薬局のスタッフが発注する手間を減少させることができる。なお、JANコード毎に医薬品を自動発注した場合には、当該発注に関する発注データが発注データ格納部102に追加されるとともに、当該発注データに含まれる発注量が当該JANコードの在庫数に加算される(つまり、在庫データに数値が反映される)。 In the present embodiment, with such a configuration, it is possible to automatically place an order for a medicine whose inventory quantity has decreased at an appropriate timing and in an appropriate quantity, and reduce the time and effort required for staff of the dispensing pharmacy to place an order. .. When a drug is automatically ordered for each JAN code, the order data relating 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 inventory quantity of the JAN code. (In other words, 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 shop terminal 20, the inventory quantity indicated by the inventory data stored in the inventory data storage unit 105 is changed. Even when the inventory quantity managed in the device 10 is different from the actual inventory quantity, the inventory management device 10 manages the inventory 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 the drug (JAN code) in one dispensing pharmacy has been mainly described, but the inventory management device 10 according to the present embodiment performs the processing described in FIG. 7 described above in the dispensing pharmacy. It is also possible to manage the stocks of the medicines in a plurality of dispensing pharmacies by executing them every time. In this case, the above-mentioned dispensing data, order 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 of the inventory management device 10 or the like. May be. In this case, the inventory management device 10 may be configured to acquire (receive) necessary data from an external device.

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

(第2実施形態)
次に、本発明の第2実施形態について説明する。なお、本実施形態においては、前述した第1実施形態の説明で用いた図面と同様の部分には同一参照符号を付して説明するものとする。また、以下の説明では、前述した第1実施形態と異なる部分について主に述べる。
(Second embodiment)
Next, a second embodiment of the present invention will be described. In the present embodiment, the same parts as those in the drawings used in the description of the first embodiment described above will be denoted by the same reference numerals. Further, in the following description, the part 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 this 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 includes an inventory of medicines in a dispensing pharmacy in which the first store terminal 20a is installed (hereinafter, referred to as a first dispensing pharmacy) and a dispensing pharmacy in which the second store terminal 20b is installed. (Hereinafter, referred to as a second dispensing pharmacy) has a function of managing the inventory of medicines (hereinafter referred to as an inventory management function).

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

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

図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 this embodiment. Here, parts different from those in FIG. 3 described above will be mainly described, and detailed description of parts common to FIG. 3 will be omitted.

なお、本実施形態に係る在庫管理装置10のハードウェア構成は前述した第1実施形態と同様であるため、適宜、図3を用いて説明する。 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, and therefore 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, the respective units 110 to 112 are realized by, for example, the CPU 13 shown in FIG. 2 (that is, the computer of the inventory management device 10) executing the inventory management program stored in the nonvolatile memory 12, that is, software. Shall be done.

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

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

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

購入予約処理部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 put up by another dispensing pharmacy. The purchase reservation data includes the type (YJ code) of the medicine reserved for purchase by the second dispensing pharmacy and the condition designated 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 determines that the JAN code included in the exhibition data and the YJ code included in the purchase reservation data have a correspondence relationship, and the drug information included in the exhibition data is included in the purchase reservation data. When it is satisfied, the exhibition data is matched with the purchase reservation data.

マッチング処理部112によって出品データと購入予約データとがマッチングされた場合、当該出品データに含まれるJANコードが付与されている医薬品を第2調剤薬局が購入するための処理が実行される。 When the auction data and the purchase reservation data are matched by the matching processing unit 112, a process for the second dispensing pharmacy to purchase a drug to which the JAN code included in the auction 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 the drug in the first dispensing pharmacy and the inventory of the drug in the second dispensing pharmacy are managed. In this case, the inventory data storage unit 105 stores inventory data indicating the number of stocks of each drug (medicine to which a JAN code is assigned) at the first dispensing pharmacy and the drug (JAN code at the second dispensing pharmacy). The stock data indicating the number of stocks of each drug) is stored.

以下、本実施形態に係る在庫管理装置10の動作について説明する。ここでは、上記したマッチング機能に関する処理について主に説明する。具体的には、第1調剤薬局が医薬品を出品するための処理(以下、出品処理と表記)、第2調剤薬局が医薬品の購入を予約するための処理(以下、購入予約処理と表記)及び出品データを購入予約データとマッチングさせるための処理(以下、マッチング処理と表記)について説明する。 The operation of the inventory management device 10 according to this embodiment will be described below. Here, the processing relating to the matching function described above 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 A process for matching auction data with purchase reservation data (hereinafter referred to as matching process) will be described.

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

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

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

この場合、第1調剤薬局における医薬品の在庫数を示す在庫データに含まれるJANコードの各々について、ステップS21〜S24の処理が実行される。以下、ステップS21〜S24の処理の対象となるJANコードを対象JANコードと称する。 In this case, the processes of steps S21 to S24 are executed for each JAN code included in the inventory data indicating the inventory quantity of the drug in the first dispensing pharmacy. Hereinafter, the JAN code that is the target of the processing of steps S21 to S24 will be referred to as the 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 exhibition processing unit 110 has a change in the stock quantity (that is, the stock quantity of the drug to which the target JAN code is added) included in the stock data acquired in step S21 within a predetermined period. It is determined whether or not (step S22).

ここで、在庫データ格納部105に格納されている在庫データには、当該在庫データに含まれる在庫数が更新(変更)された日付を示す更新日情報が含まれているものとする。 Here, it is assumed that the inventory data stored in the inventory data storage unit 105 includes update date information indicating the date when the inventory quantity 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 exhibition processing unit 110 can determine that the inventory quantity has changed within a predetermined period. On the other hand, 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 longer than the predetermined period, the exhibition processing unit 110 It can be determined that the number of stocks does not change within a predetermined period.

在庫数に変動がないと判定された場合(ステップS22のNO)、出品処理部110は、対象JANコードが付与されている医薬品(つまり、在庫数に変動がない不動在庫の医薬品)を出品するための出品データを生成する(ステップS23)。 When it is determined that the stock quantity does not change (NO in step S22), the auction processing unit 110 puts up the medicine to which the target JAN code is added (that is, the immovable stock medicine whose stock quantity does not change). To generate exhibition data (step S23).

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

ステップS23において生成された出品データは、出品データ格納部113に登録(格納)される(ステップS24)。 The auction data generated in step S23 is registered (stored) in the auction 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, JAN code, quantity, drug price ratio, and expiration date.

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

数量は、対応づけられている店舗IDによって識別される調剤薬局によって出品されている医薬品(対応づけられているJANコードが付与されている医薬品)の数量である。 The quantity is the quantity of the drug (medicine to which the associated JAN code is attached) put up 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 (medicine to which the associated JAN code is assigned) put up by the dispensing pharmacy identified by the associated store ID. The official price of a drug is a price that is set in advance for the drug by the country or a prescribed institution.

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

なお、出品データに含まれる数量、対薬価率及び使用期限は、対応づけられている店舗IDによって識別される調剤薬局によって出品されている医薬品に関する医薬品情報に相当する。 The quantity, the drug price ratio, and the expiration date included in the auction data correspond to the drug information on the drug auctioned 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 exhibition data corresponds to the number of stocks included in the inventory data (inventory data including the JAN code included in the exhibition data) stored in the inventory data storage unit 105. The drug price ratio included in the auction data may be, for example, a preset value, or may be designated (input by the staff of the first dispensing pharmacy when the process of step S23 shown in FIG. 10 is executed). ). The expiration date included in the auction data may be based on the expiration date set when the drug to which the JAN code included in the auction data is attached is purchased. It may be designated (input) by the staff or the like of the first dispensing pharmacy when the processing of step S23 shown is executed. Regarding the quantity included in the exhibition data, the staff of the first dispensing pharmacy may make a final decision by confirming the actual stock quantity.

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

出品データ113aは、店舗ID「X1」、JANコード「JANコード11」、数量「500錠×1瓶」、対薬価率「80%」及び使用期限「○か月」を含む。この出品データ113aによれば、店舗ID「X1」によって識別される調剤薬局が「JANコード11」が付与されている医薬品を出品しており、当該医薬品の数量が500錠×1瓶であり、当該医薬品の対薬価率が80%であり、当該医薬品の使用期限(までの残り)が○か月であることが示されている。 The exhibition data 113a includes a store ID “X1”, a JAN code “JAN code 11”, a quantity “500 tablets×1 bottle”, a drug price ratio “80%”, and an expiration date “◯month”. According to this exhibition data 113a, the dispensing pharmacy identified by the store ID "X1" is exhibiting a drug to which the "JAN code 11" is assigned, 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%であり、当該医薬品の使用期限(までの残り)が×か月であることが示されている。 Further, the exhibition data 113b includes a store ID “X2”, a JAN code “JAN code 12”, a quantity “10 tablet sheets×20”, a drug price ratio “70%”, and an expiration date “×month”. According to this auction data 113b, the dispensing pharmacy identified by the store ID “X2” is exhibiting a drug to which the “JAN code 12” is attached, and the quantity of the drug is 10 tablets sheet×20. It is shown that the drug price ratio of the drug is 70% and the expiration date (remaining until) of the drug is x months.

ここでは、出品データ113a及び113bについてのみ説明したが、出品データ格納部113には、他の出品データが格納されていてもよい。 Although only the exhibition data 113a and 113b have been described here, 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 processes of steps S21 to S24 have been executed for all JAN codes included in the inventory data indicating the stock quantity of the drug in the first dispensing pharmacy. Is determined (step S25).

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

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

なお、本実施形態においては、出品データが上記した図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 described above, but the exhibition data may be generated at the first store terminal 20a provided in the first dispensing pharmacy, for example. It may be generated by the staff of the first dispensing pharmacy specifying a JAN code or the like. That is, the medicine managed in the first dispensing pharmacy may be automatically put up, for example, when the stock quantity is not changed, or may be put up manually by the staff of the first dispensing pharmacy.

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

次に、図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, according 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, for example, expecting to be put up by another dispensing pharmacy (for example, the first dispensing pharmacy). In this case, the staff of the second dispensing pharmacy can specify the type of drug to be reserved for purchase and the conditions regarding the drug by operating the second store terminal 20b provided in the second drug dispensing pharmacy. .. It should be noted that, for example, a YJ code is designated as the type of drug.

この場合、購入予約処理部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 the condition designated by the staff of the second dispensing pharmacy according to the operation of the staff of the second dispensing pharmacy on the second store terminal 20b. It is generated (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, and thereby the medicines that meet the YJ code and the conditions specified by the staff of the second dispensing pharmacy. You can book the purchase of.

ここで、図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, registration date and time, YJ code, standard capacity, quantity, drug price ratio, and expiration date.

店舗IDは、医薬品の購入を予約している調剤薬局を識別するための識別情報である。登録日時は、対応づけられている店舗IDによって識別される調剤薬局が医薬品の購入を予約した日時(つまり、購入予約データが登録された日時)である。YJコードは、対応づけられている店舗IDによって識別される調剤薬局が購入を予約している医薬品(の種別)に付与されているYJコードである。 The store ID is identification information for identifying a dispensing pharmacy that reserves the purchase of medicines. 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 the YJ code assigned to (the type of) the medicine reserved for purchase by the dispensing pharmacy identified by the associated store ID.

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

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

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

購入予約データ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 a store ID "Y1", a registration date and time "10:30 on November 10, 2018", a YJ code "YJ code 1", a standard capacity "bottle", a quantity "400 tablets", and a drug price. Including the rate "65% to 75%" and the expiration date "Δ months". According to the purchase reservation data 114a, the dispensing pharmacy identified by the store ID "Y1" reserves the purchase of the drug to which the "YJ code 1" is given at 10:30 on November 10, 2018. The condition for the drug is 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 (remaining period until) is Δ months or more. Has been shown to be.

また、購入予約データ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%であり、使用期限(までの残りの期間)が□か月以上であることが示されている。 Further, the purchase reservation data 114b includes the store ID “Y2”, the registration date and time “November 11, 2018 11:10”, the YJ code “YJ code 2”, the standard capacity “10 tablets/sheet”, and the quantity “30”. The drug price ratio "60% to 70%" and the expiration date "□ months" are included. According to the purchase reservation data 114b, the dispensing pharmacy identified by the store ID "Y2" reserves the purchase of the drug to which the "YJ code 2" is given at 11:10 on November 11, 2018. The condition for the drug is that the standard capacity is 10 tablet sheets, the quantity is 30 or more, the drug price ratio is 60% to 70%, and the expiration date (remaining period until) is □ months or more. Is shown.

ここでは、購入予約データ114a及び114bについてのみ説明したが、購入予約データ格納部114には、他の購入予約データが格納されていてもよい。 Although only the purchase reservation data 114a and 114b have been described here, 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 a YJ code, but a JAN code may be included instead of the YJ code.

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

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

以下の説明においては、出品データ格納部113に登録された新たな出品データを対象出品データと称する。ここでは、対象出品データは、上記した第1調剤薬局から出品された医薬品を示すデータであるものとする。すなわち、対象出品データに含まれる店舗IDによって識別される調剤薬局は第1調剤薬局であるものとする。 In the following description, the new exhibition data registered in the exhibition data storage unit 113 will be referred to as target exhibition data. Here, it is assumed that the target exhibition data is data indicating the medicine exhibited by the above-mentioned first dispensing pharmacy. That is, 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 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 processing 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 for 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 concerned. It is determined whether the YJ code specified from the code matches the YJ code included in the target purchase reservation data. Accordingly, the matching processing unit 112 determines whether 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 exhibition 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 causes the drug included in the target exhibition data. It is determined whether the information satisfies the conditions 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 exhibition data is attached matches the standard capacity included in the target purchase reservation data, and the quantity included in the target exhibition data is the target purchase reservation data. Is greater than or equal to the quantity included in, the drug price ratio included in the target auction data is within the drug price ratio included in the target purchase reservation data, and the expiration date included in the target auction data is included in the target purchase reservation data. If the expiration date is not less than the expiration date, it is determined that the drug information included in the target exhibition data satisfies the condition included in the target purchase reservation data.

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

一方、例えば対象出品データが図11に示す出品データ113bであり、対象購入予約データが図13に示す購入予約データ114bである場合には、出品データ113bに含まれる使用期限が購入予約データ114bに含まれる使用期限以上であれば、対象出品データに含まれる医薬品情報が対象購入予約データに含まれる条件を満たすと判定される。 On the other hand, for example, when the target exhibition data is the exhibition 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 exhibition data 113b becomes 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 exhibition 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 exhibition data satisfies the condition included in the target purchase reservation data (YES in step S44), the matching processing unit 112 stores the target purchase reservation data in the matching list with the target exhibition data. Add (step S45).

ここでは対象購入予約データにYJコードが含まれている場合について説明したが、対象購入予約データにJANコードが含まれている場合には、対象購入予約データに含まれるJANコードと対象出品データに含まれるJANコードとが一致し、かつ、対象出品データに含まれる医薬品情報が対象購入予約データに含まれる条件を満たすと判定された場合に、当該対象購入予約データがマッチングリストに追加される。 Although the case where the target purchase reservation data includes the YJ code has been described here, when the target purchase reservation data includes the JAN code, the target purchase reservation data includes the JAN code and the target exhibition data. When it is determined that the included JAN code matches and the drug information included in the target exhibition data satisfies the condition 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 in steps S44 and S45 are not executed. .. When it is determined in step S44 that the drug information included in the target exhibition 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 purchase reservation data stored in the purchase reservation data storage unit 114 (step S46).

全ての購入予約データについて処理が実行されていないと判定された場合(ステップS46のNO)、ステップS42に戻って処理が繰り返される。この場合、ステップS42〜S45の処理が実行されていない購入予約データを対象購入予約データとして、当該処理が実行される。 If it is determined that the process has not been executed for all purchase reservation data (NO in step S46), the process returns to step S42 and the process is repeated. In this case, the purchase reservation data for which the processing of steps S42 to S45 has not been executed is used as the target purchase reservation data, and the processing 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 data from the purchase reservation data added to the matching list in step S45. The purchase reservation data with the earliest registration date and time included in the data is specified, and the target exhibition data is matched with the specified purchase reservation data. In this case, the matching processing unit 112 transmits the target exhibition 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 exhibition 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 exhibition data is the second dispensing pharmacy, and the store terminal to which the target exhibition data is transmitted is the second store terminal. 20b.

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

ここで、第2店舗端末20bに対象出品データが表示された場合、第2調剤薬局のスタッフは、当該対象出品データの内容(つまり、第1調剤薬局からの医薬品の出品内容)を確認し、当該第2店舗端末20bに対して当該医薬品の購入を指示する操作(以下、購入指示操作と表記)を行うことができる。第2店舗端末20bに対して購入指示操作が行われた場合、当該購入指示操作(が行われたこと)は、当該第2店舗端末20bから在庫管理装置10に対して通知される。 Here, when the target exhibition data is displayed on the second store terminal 20b, the staff of the second dispensing pharmacy confirms the content of the target exhibition data (that is, the content of the drug listing from the first dispensing pharmacy), It is possible to perform an operation (hereinafter, referred to as a purchase instruction operation) to instruct the second store terminal 20b to purchase the drug. When the purchase instruction operation is performed on the second store terminal 20b, the purchase instruction operation (that is 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 a 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 exhibition data based on the target exhibition data and the purchase reservation data matched with the target exhibition data. A process for purchasing the medicine (medicine put up by the first dispensing pharmacy) by the second dispensing pharmacy identified by the store ID included in the purchase reservation data is executed (step S49).

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

また、第2調剤薬局が対象医薬品を購入する際には、当該第2調剤薬局は第1調剤薬局に対して支払いを行う必要がある。このため、ステップS49においては、対象出品データに含まれる対薬価率等に基づいて、第2調剤薬局の対象医薬品に対する支払いに関する処理(決済処理)が実行される。この決済処理は、例えば予め登録されたクレジットカードの情報等を用いて実行される。なお、第2調剤薬局が第1調剤薬局に支払うべき金額の算出に必要な情報(例えば、対象出品データによって示される医薬品の公定価格等)は、在庫管理装置10において予め管理されていてもよいし、在庫管理装置10とは異なる外部装置から取得されてもよい。 Further, when the second dispensing pharmacy purchases the target drug, the second dispensing pharmacy needs to pay the first dispensing pharmacy. Therefore, in step S49, processing (payment processing) relating to payment of the target drug by the second dispensing pharmacy is executed based on the drug price ratio included in the target exhibition data. This payment processing is executed using, for example, information of a credit card registered in advance. The 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 exhibition data) may be managed in advance by 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, in the order data storage unit 102, order data indicating that the target drug has been ordered by the second dispensing pharmacy, for example. 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 the stock quantity of the target drug in the first dispensing pharmacy included in the inventory data stored in the inventory data storage unit 105, for example, based on the quantity included in the target exhibition data (that is, , If the target drug of the first dispensing pharmacy is sold, the sales number is subtracted from the inventory number of the target drug of the first dispensing pharmacy).

一方、購入指示操作が行われていないと判定された場合(ステップS48のNO)、ステップS47に戻って処理が繰り返される。この場合、マッチングリストに追加された購入予約データのうちの既にステップS47の処理が実行された購入予約データ以外の購入予約データの中から登録日時が最も早い購入予約データが特定され、ステップS47の処理が実行される。 On the other hand, when it is determined that the purchase instruction operation is not performed (NO in step S48), the process returns to step S47 and the process is repeated. In this case, the purchase reservation data with 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 among the purchase reservation data added to the matching list, and the purchase reservation data with the earliest registration date is specified. 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 exhibition data in the order of earlier registration date and time, and the staff of the dispensing pharmacy identified by the store ID included in the matched purchase reservation data is The target drug can be purchased by performing a purchase instruction operation on a 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 is not performed on all of the purchase reservation data added to the matching list, the process of FIG. 14 is terminated. To do. As for the exhibition data for which the purchase instruction operation has not been performed (that is, the exhibition data for which the purchase processing has not been executed), the processing shown in FIG. 14 is executed again after, for example, a predetermined period has elapsed. Shall be.

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

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

上記したように本実施形態においては、在庫データ格納部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. The auction data for selling a drug is generated, and the generated auction data is stored in the auction 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 is stored for a long time (that is, a drug in immovable inventory) is automatically It is possible to sell at. That is, in the present embodiment, it becomes possible to avoid the situation in which a fixed inventory drug must be discarded due to the expiration of the usage period, and to effectively utilize the drug.

また、本実施形態においては、第2調剤薬局(他の調剤薬局)が医薬品の購入を予約するための購入予約データが購入予約データ格納部114に格納され、出品データ格納部113に格納された出品データと当該購入予約データとをマッチングさせる。 Further, in the present embodiment, purchase reservation data for the second dispensing pharmacy (other 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. The exhibition data and the purchase reservation data are matched.

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

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

本実施形態においては、このような構成により、例えば第2調剤薬局の所望する医薬品の購入を予約しておき、当該医薬品が他の調剤薬局(例えば、第1調剤薬局)から出品された場合に、当該第2調剤薬局が当該医薬品を購入するようなことを実現することができる。 In the present embodiment, with such a configuration, for example, when reservation of purchase of a desired drug by the second dispensing pharmacy is reserved and the drug is put up by another dispensing pharmacy (for example, the first dispensing pharmacy), It is possible to realize 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. Good. In this case, the inventory management device 10 may be configured to acquire (receive) necessary data from an external device.

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

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

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

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

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

また、記憶媒体は1つに限らず、複数の媒体から各実施形態における処理が実行される場合も本発明における記憶媒体に含まれ、媒体構成は何れの構成であってもよい。 Further, the number of storage media 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 media of the present invention, and the medium configuration may be any configuration.

なお、本発明におけるコンピュータは、記憶媒体に記憶されたプログラムに基づき、本実施形態における各処理を実行するものであって、パーソナルコンピュータ等の1つからなる装置、複数の装置がネットワーク接続されたシステム等の何れの構成であってもよい。 The computer according to 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 or a plurality of devices are network-connected. It may have any configuration such as a system.

また、本発明におけるコンピュータとは、パーソナルコンピュータに限らず、情報処理機器に含まれる演算処理装置、マイコン等も含み、プログラムによって本発明の機能を実現することが可能な機器、装置を総称している。 In addition, 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 information processing equipment, and is a generic term for equipment and devices that can realize the functions of the present invention by a program. There is.

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

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... Nonvolatile memory, 13... CPU, 14... Main memory, 15... Communication device, 101 Dispensing data storage unit (first storage unit), 102... Order data storage unit (fourth storage unit), 103... Corresponding data storage unit, 104... Handling item data storage unit (second storage unit), 105... Inventory data Storage unit (third storage unit), 106... First 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 section, 113... Exhibition data storage section (fifth storage means), 114... Purchase reservation data storage section (sixth storage means).

Claims (14)

調剤薬局において調剤された医薬品に付与されている第1コード及び当該調剤における当該医薬品の第1使用量を含む調剤データを格納する第1格納手段と、
前記調剤薬局において取り扱われる販売用包装単位の前記医薬品に付与されている第2コードを含む取扱品目データを格納する第2格納手段と、
前記第1格納手段に格納されている調剤データに含まれる第1コードが付与されている医薬品の第1使用量及び前記第2格納手段に格納されている取扱品目データに含まれる第2コードに基づいて、前記医薬品の第2使用量を前記販売用包装単位毎に算出する第1算出手段と、
前記算出された第2使用量に基づいて、前記医薬品の予想在庫数を前記販売用包装単位毎に算出する第2算出手段と、
前記算出された予想在庫数を示す在庫データを格納する第3格納手段と
を具備する在庫管理装置。
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;
Second storing means for storing handling item data including a second code given to the medicine in the packaging unit for sale handled in the dispensing pharmacy;
The first usage amount of the medicine to which the first code included in the dispensing data stored in the first storage means is given and the second code included in the handling item data stored in the second storage means A first calculating means for calculating a second usage amount of the medicine for each of the sales packaging units based on the
Second calculating means for calculating the expected stock quantity of the medicine for each of the sales packaging units based on the calculated second usage amount;
A third storage unit for storing the inventory data indicating the calculated expected inventory quantity.
前記第2算出手段は、前記在庫管理装置で管理している前記医薬品の在庫数から前記算出された第2使用量を減算することによって前記医薬品の予想在庫数を算出する請求項1記載の在庫管理装置。 The inventory according to claim 1, wherein the second calculation unit calculates the expected inventory quantity of the drug by subtracting the calculated second usage amount from the inventory quantity 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 added,
The first calculating means is configured to determine the second amount based on a 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 added. The inventory management device according to claim 1, which calculates a usage amount.
前記調剤薬局において発注された販売用包装単位の前記医薬品に付与されている第2コード及び当該第2コードが付与されている医薬品の発注量を含む発注データを格納する第4格納手段と、
前記第4格納手段に格納されている発注データに含まれている第2コードが付与されている医薬品の発注量の比率に基づいて、前記算出された第2使用量を補正する補正手段と
を更に具備する請求項1〜3のいずれか一項に記載の在庫管理装置。
Fourth storing means for storing order data including a second code given to the medicine of the packaging unit for sale ordered at the dispensing pharmacy and an order amount of the medicine given the second code;
Correction means for correcting the calculated second usage amount based on the ratio of the order amount of the medicine to which the second code included in the order data stored in the fourth storage means is added. The inventory management device according to any one of claims 1 to 3, further comprising:
前記第3格納手段に格納された在庫データによって示される予想在庫数に基づいて前記第2コードが付与されている医薬品を発注するまたは当該発注を通知する処理を実行する発注処理手段を更に具備する請求項1〜4のいずれか一項に記載の在庫管理装置。 It further comprises ordering processing means for ordering the medicine to which the second code is attached or executing processing of notifying the order based on the expected stock quantity indicated by the inventory data stored in the third storage means. The inventory management device according to claim 1. 前記第3格納手段に格納された在庫データによって示される予想在庫数及び前記算出された第2使用量に基づいて、前記第2コードが付与されている医薬品の残りの調剤日数を算出する第3算出手段を更に具備し、
前記発注処理手段は、前記算出された調剤日数が予め定められた値以下である場合、当該調剤日数が算出された医薬品を発注するまたは当該発注を通知する処理を実行する
請求項5記載の在庫管理装置。
A third calculating the remaining number of days of dispensing of the medicine to which the second code is given, based on the expected stock quantity indicated by the inventory data stored in the third storing means and the calculated second usage amount. Further comprising a calculating means,
The inventory according to claim 5, wherein when the calculated number of dispensing days is less than or equal to a predetermined value, the order processing unit orders a drug for which the number of dispensing days is calculated or notifies the order. Management device.
前記発注処理手段は、予め定められている上限数から前記第3格納手段に格納された在庫データによって示される予想在庫数を減算した数の前記医薬品を発注するまたは当該発注を通知する処理を実行する請求項5または6記載の在庫管理装置。 The order processing means orders the number of the medicines obtained by subtracting an expected stock quantity indicated by the stock data stored in the third storage means from a predetermined upper limit quantity or executes processing for notifying the order. The inventory management device according to claim 5 or 6. 前記調剤薬局に設置されている端末に対する操作に基づいて前記発注処理手段による発注内容が変更された場合に、前記第3格納手段に格納されている在庫データによって示される予想在庫数を変更する変更手段を更に具備する請求項5〜7のいずれか一項に記載の在庫管理装置。 Change to change the expected stock quantity indicated by the stock 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 5 to 7, further comprising means. 前記第3格納手段に格納されている在庫データによって示される予想在庫数が、予め定められた期間、変動していない場合に、当該予想在庫数が変動していない医薬品を出品するための出品データを生成する出品処理手段と、
前記生成された出品データを格納する第5格納手段と
を更に具備する請求項1〜8のいずれか一項に記載の在庫管理装置。
When the expected inventory quantity indicated by the inventory data stored in the third storage means has not changed for a predetermined period, the exhibition data for exhibiting a drug for which the expected inventory quantity has not changed. A listing processing means for generating
The inventory management device according to claim 1, further comprising: a fifth storage unit that stores the generated auction data.
他の調剤薬局が医薬品を購入するための購入予約データを格納する第6格納手段と、
前記出品データを前記購入予約データとマッチングさせるマッチング処理手段と
を更に具備し、
前記出品データは、前記調剤薬局から出品される医薬品に付与されている第2コード及び当該医薬品に関する医薬品情報を含み、
前記購入予約データは、前記他の調剤薬局が購入を予約する医薬品に付与されている第1コードまたは第2コードと当該他の調剤薬局によって指定された条件とを含み、
前記マッチング処理手段は、
前記購入予約データに第1コードが含まれている場合、前記出品データに含まれている第2コードと当該購入予約データに含まれている第1コードとが対応関係にあり、前記医薬品情報が前記条件を満たす場合に、前記出品データを前記購入予約データとマッチングさせ
前記購入予約データに第2コードが含まれている場合、前記出品データに含まれている第2コードと当該購入予約データに含まれている第2コードとが一致し、前記医薬品情報が前記条件を満たす場合に、前記出品データを前記購入予約データとマッチングさせる
請求項9記載の在庫管理装置。
A sixth storage means for storing purchase reservation data for the other dispensing pharmacy to purchase the medicine;
Matching processing means for matching the auction data with the purchase reservation data,
The auction data includes a second code given to a drug put up 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 for which the other dispensing pharmacy reserves a purchase, and a condition designated 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 have a correspondence relationship, and the drug information is When the condition is satisfied, the auction data is matched with the purchase reservation data, and when the purchase reservation data includes a second code, the second code included in the auction data and the purchase reservation data are included. The inventory management device according to claim 9, wherein the auction data is matched with the purchase reservation data when the included second code matches and the drug information satisfies the condition.
前記出品データと前記購入予約データとがマッチングされた場合、前記出品データに含まれる第2コードが付与されている医薬品を前記他の調剤薬局が購入するための処理が実行される請求項10記載の在庫管理装置。 11. The process for the other dispensing pharmacy to purchase a drug to which the second code included in the auction data is attached when the auction data and the purchase reservation data are matched. Inventory management equipment. 前記出品データに含まれる医薬品情報は、前記調剤薬局から出品される医薬品の数量を含み、
前記出品データを前記購入予約データとマッチングさせた場合、前記第3格納手段に格納されている在庫データによって示される予想在庫数は、前記医薬品情報に含まれる数量に基づいて更新される
請求項11記載の在庫管理装置。
The drug information included in the auction data includes the quantity of the drug auctioned from the dispensing pharmacy,
The expected stock quantity indicated by the stock data stored in the third storage means is updated based on the quantity included in the drug information when the exhibition data is matched with the purchase reservation data. Inventory management device described.
調剤薬局において調剤された医薬品に付与されている第1コード及び当該調剤における当該医薬品の第1使用量を含む調剤データを格納する第1格納手段と、前記調剤薬局において取り扱われる販売用包装単位の前記医薬品に付与されている第2コードを含む取扱品目データを格納する第2格納手段とを備える在庫管理装置が実行する在庫管理方法であって、
前記第1格納手段に格納されている調剤データに含まれる第1コードが付与されている医薬品の第1使用量及び前記第2格納手段に格納されている取扱品目データに含まれる第2コードに基づいて、前記医薬品の第2使用量を前記販売用包装単位毎に算出するステップと、
前記算出された第2使用量に基づいて、前記医薬品の予想在庫数を前記販売用包装単位毎に算出するステップと、
前記算出された予想在庫数を示す在庫データを第3格納手段に格納するステップと
を具備する在庫管理方法。
A first storage means for storing dispensing data including a first code given to a drug dispensed in a dispensing pharmacy and a first usage amount of the drug in the dispensing, and a sales packaging unit handled in the dispensing pharmacy. An inventory management method executed by an inventory management device, comprising: a second storage means for storing handling item data including a second code assigned to the medicine.
The first usage amount of the medicine to which the first code included in the dispensing data stored in the first storage means is given and the second code included in the handling item data stored in the second storage means Calculating a second usage amount of the pharmaceutical product for each of the packaging units for sale based on the following:
Calculating the expected stock quantity of the medicine for each of the packaging units for sale based on the calculated second usage amount;
Storing the inventory data indicating the calculated expected inventory quantity in a third storage means.
調剤薬局において調剤された医薬品に付与されている第1コード及び当該調剤における当該医薬品の第1使用量を含む調剤データを格納する第1格納手段と、前記調剤薬局において取り扱われる販売用包装単位の前記医薬品に付与されている第2コードを含む取扱品目データを格納する第2格納手段とを備える在庫管理装置のコンピュータによって実行されるプログラムであって、
前記コンピュータに、
前記第1格納手段に格納されている調剤データに含まれる第1コードが付与されている医薬品の第1使用量及び前記第2格納手段に格納されている取扱品目データに含まれる第2コードに基づいて、前記医薬品の第2使用量を前記販売用包装単位毎に算出するステップと、
前記算出された第2使用量に基づいて、前記医薬品の予想在庫数を前記販売用包装単位毎に算出するステップと、
前記算出された予想在庫数を示す在庫データを第3格納手段に格納するステップと
を実行させるためのプログラム。
A first storage means for storing dispensing data including a first code given to a drug dispensed in a dispensing pharmacy and a first usage amount of the drug in the dispensing, and a packaging unit for sale handled in the dispensing pharmacy. A program executed by a computer of an inventory management device, comprising: a second storage means for storing handling item data including a second code assigned to the medicine;
On the computer,
The first code used in the dispensing data stored in the first storage means is assigned the first usage amount of the drug, and the second code is included in the handling item data stored in the second storage means. Calculating a second usage amount of the pharmaceutical product for each of the packaging units for sale based on the following:
Calculating the expected stock quantity of the medicine for each of the packaging units for sale based on the calculated second usage amount;
A step of storing the inventory data indicating the calculated expected inventory quantity in a third storage means.
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 true JP2020129200A (en) 2020-08-27
JP6896780B2 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)

Cited By (3)

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

Citations (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
JP2006285815A (en) * 2005-04-04 2006-10-19 Higashi Nihon Medicom Kk Ordering prediction type stock management system by individual patient, ordering prediction type stock management program and recording medium therefor
US20120259655A1 (en) * 2011-04-06 2012-10-11 Madreperla Steven A Drug Inventory System
CN103020789A (en) * 2011-05-21 2013-04-03 奥索临床诊断有限公司 System and method of inventory management
JP2014191476A (en) * 2013-03-26 2014-10-06 Canon Inc Information processing device, information processing method and program
JP2014228931A (en) * 2013-05-20 2014-12-08 株式会社平安堂 Medicine stock management system
JP2018142151A (en) * 2017-02-27 2018-09-13 株式会社Gyh Medicine inventory management program and medicine inventory management method

Patent Citations (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
JP2006285815A (en) * 2005-04-04 2006-10-19 Higashi Nihon Medicom Kk Ordering prediction type stock management system by individual patient, ordering prediction type stock management program and recording medium therefor
US20120259655A1 (en) * 2011-04-06 2012-10-11 Madreperla Steven A Drug Inventory System
CN103020789A (en) * 2011-05-21 2013-04-03 奥索临床诊断有限公司 System and method of inventory management
JP2014191476A (en) * 2013-03-26 2014-10-06 Canon Inc Information processing device, information processing method and program
JP2014228931A (en) * 2013-05-20 2014-12-08 株式会社平安堂 Medicine stock management system
JP2018142151A (en) * 2017-02-27 2018-09-13 株式会社Gyh Medicine inventory management program and medicine inventory management method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
室 高広、外6名: "錠剤自動分包機のコンベア作動データ集計システムの構築と有用性評価", 医療情報学, vol. 第33巻 第6号, JPN6020048863, 7 March 2014 (2014-03-07), JP, pages 321 - 326, ISSN: 0004411199 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022074694A (en) * 2020-11-05 2022-05-18 三菱電機Itソリューションズ株式会社 Medication order management device, medication order management method, and medication 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
JP2022162516A (en) * 2021-04-12 2022-10-24 株式会社カケハシ Apparatus and method for performing product order processing in medical institution, and program therefor

Also Published As

Publication number Publication date
JP6896780B2 (en) 2021-06-30

Similar Documents

Publication Publication Date Title
US11928913B2 (en) Medication management systems and methods for health and health-related facilities
JP6253254B2 (en) Drug inventory management system
JP6896780B2 (en) Inventory management equipment, inventory management methods and programs
US8412538B2 (en) System and method for prepurchased replenishment of pharmaceuticals
US8050941B2 (en) System and method for dispersing medications using a single point purchase
US20230099084A1 (en) Dynamic user interface generation for delivery scheduling optimization
JP2004287833A (en) Dispensing work support system, medicine storage system and medicine distribution management system
US20230066432A1 (en) Multi-furcated allocation system
JP2007094839A (en) Dispensing pharmacy support method and dispensing pharmacy support system
JP6078193B1 (en) Inventory transaction system and program
KR102121226B1 (en) Distribution management method and distribution management system
US11361862B2 (en) Optimized drug supply logistical techniques
JP2022111035A (en) Apparatus and method for managing product inventory in medical institution and program therefore
US10720234B1 (en) Account reconciliation based on dispensing medication under a drug discount program
JP2003095439A (en) Physical distribution system for medicine
JP7154361B1 (en) Device, method and program for order processing of products in medical institutions
US11848085B2 (en) Methods and systems for managing prescriptions
WO2022059309A1 (en) Article management system and article management program
JP2022162201A (en) Apparatus and method for performing product order processing in medical institution, and program therefor
JP2023067509A (en) Medicine stock management system and medicine stock management device
JP2022124444A (en) Dispensing system, information processing device, program and dispensing method
JP2024047486A (en) Apparatus, method and program for ordering products at medical institutions
JP2022110315A (en) Apparatus and method for managing product inventory in medical institution and program therefore
JP2023128543A (en) Management server, medicine matching system, medicine matching method and medicine matching program
JP2021059403A (en) Medicine inventory operation supporting system

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