Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4580456B2 - Dispensing equipment controller - Google Patents
[go: Go Back, main page]

JP4580456B2 - Dispensing equipment controller - Google Patents

Dispensing equipment controller Download PDF

Info

Publication number
JP4580456B2
JP4580456B2 JP2009266624A JP2009266624A JP4580456B2 JP 4580456 B2 JP4580456 B2 JP 4580456B2 JP 2009266624 A JP2009266624 A JP 2009266624A JP 2009266624 A JP2009266624 A JP 2009266624A JP 4580456 B2 JP4580456 B2 JP 4580456B2
Authority
JP
Japan
Prior art keywords
dispensing
error
dispensing device
prescription
setting file
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.)
Expired - Fee Related
Application number
JP2009266624A
Other languages
Japanese (ja)
Other versions
JP2010042300A (en
Inventor
裕之 湯山
啓太 安岡
英一 福本
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.)
Yuyama Manufacturing Co Ltd
Original Assignee
Yuyama Manufacturing Co Ltd
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 Yuyama Manufacturing Co Ltd filed Critical Yuyama Manufacturing Co Ltd
Priority to JP2009266624A priority Critical patent/JP4580456B2/en
Publication of JP2010042300A publication Critical patent/JP2010042300A/en
Application granted granted Critical
Publication of JP4580456B2 publication Critical patent/JP4580456B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Medical Preparation Storing Or Oral Administration Devices (AREA)
  • Medical Treatment And Welfare Office Work (AREA)

Description

本発明は、病院や調剤薬局などの医療機関で使用される薬剤分包機や薬袋印刷機など、調剤作業のための各種・調剤機器を処方データに基づいて制御する調剤機器用制御装置に関するものである。   The present invention relates to a dispensing device control device for controlling various dispensing devices for dispensing operations based on prescription data, such as a medicine packaging machine and a medicine bag printer used in medical institutions such as hospitals and dispensing pharmacies. is there.

従来、処方データを入力して、錠剤や散剤の形態をした薬剤を分包紙に分割包装するための薬剤分包機を動作させる制御装置では、複数台の薬剤分包機を制御し、さらに、患者名と服用方法を明記して薬剤を入れる薬袋を作成するための薬袋印刷機を制御することが行われている。   Conventionally, in a control device that operates a medicine packaging machine for inputting prescription data and dividing and packaging medicines in the form of tablets or powders into wrapping paper, it controls a plurality of medicine packaging machines. Control of a medicine bag printing machine for creating a medicine bag for storing medicines with a name and a method of taking the medicine.

例えば、特許文献1には、薬剤についてのデータテーブルを使用して1台の操作卓で複数台の薬剤分包機を操作可能な薬剤分包装置が記載されている。   For example, Patent Document 1 describes a medicine packaging apparatus that can operate a plurality of medicine packaging machines with one console using a medicine data table.

また、特許文献2には、非動作状態の錠剤包装機に処方データを送信して、1台の制御器により多数の錠剤包装機を集中制御する錠剤包装装置が記載されている。   Patent Document 2 describes a tablet packaging device that transmits prescription data to a non-operating tablet packaging machine and centrally controls a number of tablet packaging machines with a single controller.

さらに、特許文献3には、ホストコンピュータからのデータを調剤の種類に適合した調剤機の入力装置に割り当てる調剤制御装置が記載されている。   Furthermore, Patent Document 3 describes a dispensing control device that assigns data from a host computer to an input device of a dispensing machine that is suitable for the type of dispensing.

さらにまた、特許文献4には、錠剤分包機を複数台用いる場合、手作業による薬品の追加投入を少なくするとともに各機の稼働を平均化して調剤時間の短縮を図る調剤システム制御装置が記載されている。   Furthermore, Patent Document 4 describes a dispensing system control device that reduces the dispensing time by reducing the additional input of chemicals manually and averaging the operation of each machine when using a plurality of tablet packaging machines. ing.

しかしながら、前記いずれの制御装置でも、調剤機器の種類毎に制御の方式を異ならせる必要がある。また、調剤機器の種類と台数は、施設毎に異なっているので、施設毎に個別の仕様で設計・製作をする必要がある。しかも、機種毎に装備や監視の方式が異なり、使用時の操作が複雑である。特に、薬剤分包機や薬袋印刷機では、各号機を入院/外来の区分で専用化して使用することが望まれているが、前記いずれの制御装置でも対応できていない。   However, in any of the above control devices, it is necessary to change the control method for each type of dispensing device. In addition, since the types and number of dispensing devices differ from facility to facility, it is necessary to design and manufacture according to individual specifications for each facility. In addition, the equipment and the monitoring method are different for each model, and the operation at the time of use is complicated. In particular, in a medicine packaging machine and a medicine bag printing machine, it is desired to specialize each machine in hospital / outpatient classification, but none of the above-mentioned control devices can cope with it.

また、前記いずれの制御装置でも、調剤機器がエラーで停止した場合の対策は不十分である。例えば、特公平4−57348号公報では、調剤できない種類の調剤データを調剤指示書として出力するだけに留まる。このため、繁忙な調剤室であれば、誰も気付かずに部分作業(錠剤・カプセル剤の分包作業、薬袋の作成作業等)が滞留するという問題がある。この問題は、調剤機器の種類や台数が多くなる程、顕在化する。したがって、集中的に使用状況を監視し、復旧に時間が掛かりそうな場合は、部分作業の滞留を避けるために、該当する調剤機器を使用不可にすることが望まれている。また、故障の原因を追及するために、エラーの発生状況についての情報を把握できることも望まれている。   Further, in any of the above control devices, measures are not sufficient when the dispensing device stops due to an error. For example, Japanese Examined Patent Publication No. 4-57348 simply outputs the type of dispensing data that cannot be dispensed as a dispensing instruction. For this reason, in a busy dispensing room, there is a problem that partial work (tablet / capsule packaging work, medicine bag creation work, etc.) stays without anyone noticing. This problem becomes more apparent as the number and type of dispensing devices increase. Accordingly, it is desired to disable the corresponding dispensing device in order to intensively monitor the usage status and take time to recover, in order to avoid the retention of partial work. In addition, in order to investigate the cause of the failure, it is also desired to be able to grasp information about the error occurrence status.

特公昭64−9201号公報Japanese Patent Publication No. 64-9201 特公平3−59号公報Japanese Patent Publication No. 3-59 特公平4−57348号公報Japanese Patent Publication No. 4-57348 特開平6−312010号公報JP-A-6-312010

そこで、本発明は、複数機種又は複数台の調剤機器を、同一方法で簡単に設定することが可能な調剤機器用制御装置を提供することを第1の課題とする。   Then, this invention makes it the 1st subject to provide the control apparatus for dispensing apparatuses which can set easily multiple types or multiple dispensing apparatuses with the same method.

また、本発明は、調剤機器のエラーの発生状況を一元管理して的確に把握することが可能な調剤機器用制御装置を提供することを第2の課題とする。   Moreover, this invention makes it the 2nd subject to provide the control apparatus for dispensing apparatuses which can unify and manage the occurrence condition of the error of a dispensing apparatus accurately.

本発明は、前記課題を解決するための手段として、
処方データに基づいて複数機種又は複数台の調剤機器を駆動制御する調剤機器用制御装置において、
記調剤機器毎に、設定した時間帯で処方箋区分の専用化を限定するための限定・時刻帯を含む使用条件からなる使用条件設定ファイルを記憶するハードディスク装置と、
前記処方データ及び前記使用条件設定ファイルに記憶された各調剤機器毎の使用条件に基づいて、使用可能な調剤機器を選択する中央処理装置と、
を備え、
前記ハードディスク装置に記憶する使用条件設定ファイルは、機種毎に付与される機種ID番号と、機種毎の各号機に付与される号機番号を含み、
前記中央処理装置は、使用条件として限定・時刻帯が有効であるか否かを判断し、有効であると判断した場合、設定した時間帯で、限定した処方箋区分に従って、該当する調剤機器の使用条件を決定するものである。
As a means for solving the above problems, the present invention provides:
In a dispensing device control device that drives and controls multiple types or multiple dispensing devices based on prescription data,
Before each Sulfur butterfly agent device, a hard disk device that stores use condition setting file consisting of conditions, including a limited-time zone to limit the dedicated prescription segment in the time zone set,
A central processing unit that selects a usable dispensing device based on the use conditions for each dispensing device stored in the prescription data and the use condition setting file;
With
The use condition setting file stored in the hard disk device includes a model ID number assigned to each model, and a machine number assigned to each machine for each model,
The central processing unit determines whether or not the limitation / time zone is valid as a use condition, and if it is determined to be valid, the use of the corresponding dispensing device in the set time zone according to the limited prescription category The condition is determined.

この構成により、処方データが入力されれば、使用条件設定ファイルに基づいて、使用可能な調剤機器を自動的に選択することができる。また、使用条件設定ファイルには、各調剤機器の使用条件に関するデータが格納されているので、全調剤機器を一元管理することが可能である。つまり、各施設毎に個別の仕様で設計・製作することがなくなり、調剤機器を増設する場合でも制御装置を改変する手間が不要となる上、使用時の操作が簡単となる。   With this configuration, when prescription data is input, a usable dispensing device can be automatically selected based on the use condition setting file. In addition, since the usage condition setting file stores data related to the usage conditions of each dispensing device, it is possible to manage all the dispensing devices in an integrated manner. That is, it is no longer necessary to design and manufacture each facility for each specification, and even when dispensing equipment is added, there is no need to modify the control device, and the operation at the time of use is simplified.

この場合、前記ハードディスク装置に記憶する使用条件設定ファイルに、外来処方箋、入院処方箋又は指定なしのいずれかを示す処方箋区分を含ませると、複数台ある各号機を入院/外来の区分で専用化して使用できるようになり、調剤作業全体の効率を向上させることができる点で好ましい。   In this case, if the usage condition setting file stored in the hard disk device includes a prescription classification indicating either an outpatient prescription, an inpatient prescription, or no designation, a plurality of each unit is dedicated to the inpatient / outpatient classification. This is preferable in that it can be used and the efficiency of the entire dispensing operation can be improved.

前記各機種には、薬剤分包機、薬袋印刷機、散剤調剤監査機、水剤調剤監査機、水剤分包機が含まれ、新機種を追加する場合、前記ハードディスク装置に記憶する使用条件設定ファイルには、機種ID番号を追加し、号機が増えれば号機番号を増やすのが好ましい。  Each model includes a medicine packaging machine, a medicine bag printing machine, a powder dispensing inspection machine, a liquid medicine dispensing inspection machine, and a liquid medicine packaging machine. When a new model is added, a use condition setting file stored in the hard disk device It is preferable to add a model ID number and increase the number if the number of units increases.

前記中央処理装置は、前記処方データに含まれる形態コードに基づいて、動作させる調剤機器を特定し、特定した調剤機器の号機番号から使用条件を取得し、使用条件と一致した号機を決定し、該号機に機種毎に固有な動作コマンドを送信するのが好ましい。  The central processing unit specifies the dispensing device to be operated based on the form code included in the prescription data, obtains the use condition from the machine number of the specified dispensing device, determines the machine that matches the use condition, It is preferable to send an operation command unique to each model to the machine.

また、前記中央処理装置により、前記各調剤機器の使用状況はモニタ画面に一覧表示させるようにすると、エラーの早期発見が可能となり、調剤の部分作業の滞留を防止できる点で好ましい。   In addition, it is preferable that the use status of each dispensing device is displayed in a list on the monitor screen by the central processing unit, so that early detection of errors can be made and retention of partial work of dispensing can be prevented.

さらに、前記中央処理装置により、前記処方データ及び前記使用条件設定ファイルに基づいて、使用可能な調剤機器がないと判断した場合、処方データを一時的に記憶すると共に、モニタ画面にエラー状況を表示させると、より一層有効に調剤の部分作業の滞留を防止できる点で好ましい。   Further, when it is determined by the central processing unit that there is no usable dispensing device based on the prescription data and the use condition setting file, the prescription data is temporarily stored and the error status is displayed on the monitor screen. This is preferable in that the retention of partial work of the preparation can be prevented more effectively.

また、本発明は、さらに前記第2の課題を解決するための手段として、前記ハードディスク装置により、前記各調剤機器で発生するエラーのうち、任意に設定可能な重大エラーからなる重大エラー設定ファイルを記憶し、
前記中央処理装置により、前記いずれかの調剤機器から入力されるエラー信号が、前記重大エラー設定ファイル中の重大エラーに該当するか否かを判断するようにしたものである。
Further, the present invention provides a means for solving the second problem, wherein a serious error setting file comprising serious errors that can be arbitrarily set among errors generated in the respective dispensing devices by the hard disk device. Remember,
The central processing unit determines whether an error signal input from one of the dispensing devices corresponds to a serious error in the serious error setting file.

この構成により、調剤機器毎に重大エラーを任意に設定でき、しかも重大エラー設定ファイルによって一元管理することが可能となる。   With this configuration, it is possible to arbitrarily set a serious error for each dispensing device, and it is possible to perform unified management using a serious error setting file.

そして、前記中央処理装置により、前記いずれかの調剤機器から入力されるエラー信号が重大エラー設定ファイル中の重大エラーに該当すれば、モニタ画面に重大エラー状況を表示させるようにすると、使用者がエラー状況を把握容易となり、該当する調剤機器を使用不可にする等、的確かつ迅速に対応することが可能となる点で好ましい。   Then, if the error signal input from one of the dispensing devices corresponds to a serious error in the serious error setting file by the central processing unit, the user is allowed to display the serious error status on the monitor screen. It is preferable in that the error situation can be easily grasped, and the corresponding dispensing device can be disabled, so that it is possible to respond accurately and promptly.

また、前記中央処理装置により、前記いずれかの調剤機器から入力されるエラー信号が重大エラー設定ファイル中の重大エラーに該当すれば、モニタ画面にエラー対策を表示させるようにすると、対処方法が一目で把握でき、操作説明書などを調べるまでもなく、エラーの修復を的確かつ迅速に行うことが可能となる点で好ましい。   If the error signal input from one of the dispensing devices corresponds to a serious error in the serious error setting file by the central processing unit, an error countermeasure is displayed on the monitor screen. It is preferable in that the error can be accurately and promptly repaired without checking the operation manual.

さらに、前記中央処理装置により、前記いずれかの調剤機器から入力されるエラー信号が重大エラー設定ファイル中の重大エラーに該当すれば、当該調剤機器を使用不可とすると共に処方データの割り当てを中止すると、部分作業の滞留を自動的に回避できる点で好ましい。   Furthermore, if the error signal input from any one of the dispensing devices corresponds to a serious error in the serious error setting file by the central processing unit, the dispensing device is disabled and allocation of prescription data is stopped. It is preferable in that the retention of partial work can be automatically avoided.

また、前記中央処理装置により、前記いずれかの調剤機器から入力されるエラー信号が重大エラー設定ファイル中の重大エラーに該当すれば、当該重大エラー状況を重大エラー記録ファイルに記録すると、故障の原因を把握しやすくできる点で好ましい。   In addition, if the error signal input from one of the dispensing devices corresponds to a serious error in the serious error setting file by the central processing unit, the serious error status is recorded in the serious error recording file. It is preferable in that it can be easily grasped.

本発明によれば、複数機種又は複数台の調剤機器を同一方法で簡単に取り扱うことが可能となる。すなわち、調剤機器の装備状況が多様に異なる施設への対応において、制御装置の設計・製作の簡略化が図れ、使用時の操作も統一できて簡単になる。さらに、エラーの対処を円滑に進めることができる。   According to the present invention, it is possible to easily handle a plurality of types or a plurality of dispensing devices in the same method. In other words, the control device design and production can be simplified and the operation at the time of use can be unified in the facility corresponding to various facilities with different dispensing equipment. Furthermore, it is possible to smoothly deal with errors.

調剤機器の制御装置の機器構成を示すブロック図である。It is a block diagram which shows the apparatus structure of the control apparatus of a dispensing apparatus. 使用条件設定ファイルの記憶内容を示す図表である。It is a table | surface which shows the memory content of a use condition setting file. 重大エラー設定ファイルの記憶内容を示す図表である。It is a graph which shows the memory content of a serious error setting file. 重大エラー記録ファイルの記憶内容を示す図表である。It is a chart which shows the storage contents of a serious error record file. 調剤機器の制御の処理を示すフローチャートである。It is a flowchart which shows the process of control of a dispensing apparatus. 処方データ入力の画面を示す図である。It is a figure which shows the screen of prescription data input. 使用状況モニタの画面を示す図である。It is a figure which shows the screen of a usage condition monitor. 調剤機器・エラー状況の監視の処理を示すフローチャートである。It is a flowchart which shows the process of monitoring a dispensing apparatus and an error condition. 調剤機器・動作の実行の処理を示すフローチャートである。It is a flowchart which shows the process of execution of dispensing apparatus and operation | movement. 調剤機器・動作の実行の処理を示すフローチャートである。It is a flowchart which shows the process of execution of dispensing apparatus and operation | movement.

以下、本発明に係る実施形態を添付図面に従って説明する。   Embodiments according to the present invention will be described below with reference to the accompanying drawings.

図1は、本実施形態に係る調剤機器用制御装置1と、この制御装置1によって駆動制御される複数の調剤機器2とを示す。   FIG. 1 shows a dispensing device control device 1 according to the present embodiment and a plurality of dispensing devices 2 that are driven and controlled by the control device 1.

調剤機器用制御装置1は、中央処理装置3(CPU)、ハードディスク装置4、多チャンネル通信部5、CRTディスプレイ6、キーボード7、及びマウス8を備える。   The dispensing device control device 1 includes a central processing unit 3 (CPU), a hard disk device 4, a multi-channel communication unit 5, a CRT display 6, a keyboard 7, and a mouse 8.

中央処理装置3(CPU)は、各種データを記憶するためのメモリ9(RAM)と、制御装置全体を制御する制御プログラム10(ROM)とを内蔵する。メモリ9(RAM)は、処方データを記憶する処方データメモリ、その他メモリ(処理上での作業エリア、変数等)として使用する。   The central processing unit 3 (CPU) incorporates a memory 9 (RAM) for storing various data and a control program 10 (ROM) for controlling the entire control device. The memory 9 (RAM) is used as a prescription data memory for storing prescription data and other memories (a work area, variables, etc. in processing).

ハードディスク装置4は、各機種・各号機毎の使用条件を設定する使用条件設定ファイル11、各機種毎の重大エラーを設定する重大エラー設定ファイル12、重大エラーの発生を記録する重大エラー記録ファイル13、処方データを入力する際などの関連情報を記憶する各種マスタファイル等からなる。なお、ハードディスク装置4には、フラッシュメモリなど、書換え可能な不揮発性記憶装置のいずれでも使用可能である。   The hard disk device 4 includes a use condition setting file 11 for setting use conditions for each model / unit, a serious error setting file 12 for setting a serious error for each model, and a serious error recording file 13 for recording occurrence of a serious error. It consists of various master files that store relevant information when inputting prescription data. The hard disk device 4 can be any rewritable nonvolatile storage device such as a flash memory.

使用条件設定ファイル11とは、複数機種又は複数台の調剤機器2の使用条件として、使用不可、専用・処方箋区分などの各種データを、装備する機種・号機毎に登録するデータファイルである。使用条件設定ファイル11の記憶内容は図2に示す通りである。   The use condition setting file 11 is a data file that registers various data such as unusable, exclusive / prescription classification, etc. for each equipped model / unit as the use conditions of a plurality of models or a plurality of dispensing devices 2. The stored contents of the use condition setting file 11 are as shown in FIG.

図2中、機種とは、調剤機器2の機種のID番号を示す。例えば、「錠剤分包機」であれば1、「薬袋印刷機」であれば2を入力する。新機種が追加になる場合は機種ID番号を追加して対応する。号機番号とは、調剤機器2の機種毎での号機の番号を示す。号機が増える場合は号機番号を増やして対応する。使用不可フラグには、号機の使用が「可」であれば0、「不可」であれば1を入力する。専用・処方箋区分とは、号機の処方データの割り当てにおいて、専用とする処方箋区分を示す。例えば、「指定なし」(全処方箋)であれば0、「入院処方箋・専用」であれば1、「外来処方箋・専用」であれば2を入力する。処方箋区分は入院/外来の区分のみではなく、入院処方箋をさらに、入院定期処方箋、入院臨時処方箋、退院処方箋など、詳細に区分してもよい。限定・時刻帯とは、「専用・処方箋区分」の専用化を限定する時刻帯を示す。「限定・時刻帯」を指定する場合、「有効」チェックボックス(□印)をオン(マウスでクリックして∨印を付ける)して、限定する時刻の範囲を入力する。   In FIG. 2, the model indicates the ID number of the model of the dispensing device 2. For example, 1 is input for the “tablet packaging machine” and 2 is input for the “medicine bag printing machine”. When a new model is added, a model ID number is added to deal with it. The unit number indicates the number of the unit for each model of the dispensing device 2. If the number of units increases, respond by increasing the unit number. In the unusable flag, 0 is input if the use of the car is “permitted”, and 1 is input if it is “unusable”. The dedicated / prescription category indicates a dedicated prescription category in the allocation of the prescription data of the machine. For example, 0 is input for “not specified” (all prescriptions), 1 for “hospital prescription / exclusive”, and 2 for “outpatient prescription / exclusive”. The prescription classification is not limited to the inpatient / outpatient classification, and the inpatient prescription may be further classified into details such as a regular inpatient prescription, a temporary admission prescription, and a discharge prescription. The limitation / time zone indicates a time zone that limits the specialization of the “dedicated / prescription category”. To specify “limited / time zone”, select the “valid” check box (marked with □) (click on it with a mouse to mark it) and enter the limited time range.

具体的に、錠剤分包機の1号機では、使用条件は「限定・時刻帯」が有効なので「8:00〜13:00」の範囲でのみ外来専用(外来処方箋・専用)である。これ以外の時刻では「限定・時刻帯」の範囲外になるので、専用の「指定なし」(つまり入院処方箋も可能)である。これに対して、薬袋印刷機の1号機では、使用条件は「限定・時刻帯」が有効でないために常時24時間にわたって外来専用である。   Specifically, in the No. 1 tablet packaging machine, since “limited / time zone” is effective as a use condition, it is only for outpatient use (outpatient prescription / exclusive use) within the range of “8:00 to 13:00”. At other times, it is outside the range of “Limited / Time zone”, so it is a dedicated “No designation” (that is, hospital prescription is also possible). On the other hand, the first use of the medicine bag printing machine is dedicated for outpatient use for 24 hours at all times because the “limitation / time zone” is not effective.

なお、限定が有効でなければ、「常時、24時間」の意味になる。記憶内容は、図1の機器構成に対応しており、機種1「錠剤分包機」はM台接続し、機種2「薬袋印刷機」はL台接続し、さらにその他の機種Nが続いている。また、使用条件設定ファイル11(図2)のデータは、メニュー画面(起動ボタンが並ぶだけの画面なので図示省略)から起動される使用条件設定登録の画面(ファイル構成と同じ画面構成なので図示省略)で入力する。   If the limitation is not effective, it means “always, 24 hours”. The stored contents correspond to the device configuration of FIG. 1, model 1 “tablet packaging machine” is connected to M units, model 2 “medicine bag printing machine” is connected to L units, and other models N continue. . Also, the data of the use condition setting file 11 (FIG. 2) is a use condition setting registration screen that is activated from a menu screen (not shown because it is a screen that only has start buttons) (not shown because it has the same screen structure as the file structure). Enter in.

重大エラー設定ファイル12は、調剤機器2の機種毎に異なる重大エラーを任意に登録するデータファイルである。重大エラー設定ファイル12の記憶内容は図3に示す通りである。図3中、機種とは、調剤機器2の機種のID番号を示す。「錠剤分包機」であれば1、「薬袋印刷機」であれば2を入力する。重大エラー番号とは、機種毎に異なる重大エラーの番号を示す。調剤機器2から受信するエラー番号の中で、重大と判断するエラー番号のみを入力する。重大エラー状況は、重大エラーの状況を任意の文字列で入力したものである。エラー対策は、重大エラーの対策方法を任意の文字列で入力したものである。重大エラー状況及びエラー対策のデータは後述する「使用状況モニタ」画面(図7)に表示する。なお、前記重大エラー設定ファイル12(図3)のデータは、メニュー画面(図示省略)から起動される、重大エラー設定登録の画面(ファイル構成と同じ画面構成なので図示省略)で入力する。   The serious error setting file 12 is a data file for arbitrarily registering a serious error that is different for each model of the dispensing device 2. The stored contents of the serious error setting file 12 are as shown in FIG. In FIG. 3, the model indicates the ID number of the model of the dispensing device 2. Enter 1 if it is a “tablet packaging machine” and 2 if it is a “medicine bag printing machine”. The severe error number indicates a serious error number that is different for each model. Of the error numbers received from the dispensing device 2, only the error numbers judged to be serious are input. The severe error status is obtained by inputting the status of the severe error with an arbitrary character string. The error countermeasure is a method for inputting a countermeasure method for a serious error in an arbitrary character string. Severe error status and error countermeasure data are displayed on a “use status monitor” screen (FIG. 7) to be described later. The data of the serious error setting file 12 (FIG. 3) is input on a serious error setting registration screen (not shown) because it is the same as the file structure, which is activated from a menu screen (not shown).

重大エラー記録ファイル13は、重大エラーの発生状況を記録するファイルである。重大エラー記録ファイル13のデータは、図4に示すように、発生日時・機種・号機毎に重大エラー番号が記録される。なお、重大エラー記録ファイル13の内容は、保守サービス員が、CSV(カンマ区切り)形式ファイルに変換し、表計算ソフトを使って一覧表形式に表示して確認する。   The serious error recording file 13 is a file for recording the occurrence status of a serious error. As shown in FIG. 4, the data of the serious error recording file 13 is recorded with a serious error number for each occurrence date / time / model / unit. The contents of the serious error recording file 13 are checked by a maintenance service person by converting it into a CSV (comma delimited) format file and displaying it in a list format using spreadsheet software.

各種マスタファイルには、薬剤マスタ、患者マスタ、用法マスタ、診療科マスタ、医師マスタ、病棟マスタ、処方箋区分マスタがあるが、コードと名称などを格納するような簡単な構成のファイルなので図は省略する。   Various master files include drug master, patient master, usage master, department master, doctor master, ward master, and prescription category master, but the diagram is omitted because it is a simple file that stores codes and names. To do.

多チャンネル通信部5は、調剤機器2の各号機との通信に利用する。また、CRTディスプレイ6、キーボード7、及びマウス8は、処方データの入力や各種ファイルのデータ入力に使用する。   The multi-channel communication unit 5 is used for communication with each unit of the dispensing device 2. The CRT display 6, the keyboard 7, and the mouse 8 are used for inputting prescription data and various files.

調剤機器2は、主に薬剤分包機や薬袋印刷機であり、この他には、散剤調剤を監査する散剤調剤監査機、水剤調剤を監査する水剤調剤監査機、水剤分包機等の機器が含まれ、制御装置1には、1機種以上・1台以上接続されている。調剤機器2の各機種には機種ID番号が付与されると共に、機種毎の各号機には号機番号が付与されることにより、識別と制御に用いられる。新機種が追加になる場合は機種ID番号を追加して対応する。号機が増える場合は号機番号を増やして対応する。制御装置1と調剤機器2の間は高速シリアル通信で接続するが、汎用バス接続やネットワーク(LAN)接続など、どのような接続・通信方式でも採用可能である。   The dispensing device 2 is mainly a medicine packaging machine or a medicine bag printing machine. Besides this, a dispensing medicine inspection machine for auditing powder dispensing, a medicine dispensing inspection machine for auditing medicine dispensing, a medicine dispensing machine, etc. Devices are included, and one or more models or one or more devices are connected to the control device 1. A model ID number is assigned to each model of the dispensing device 2 and a machine number is assigned to each model for each model, which is used for identification and control. When a new model is added, a model ID number is added to deal with it. If the number of units increases, respond by increasing the unit number. The control device 1 and the dispensing device 2 are connected by high-speed serial communication, but any connection / communication method such as general-purpose bus connection or network (LAN) connection can be employed.

なお、14は、ホストコンピュータで、外部システムから処方データを受信するために使用する。但し、CRTディスプレイ6、キーボード7、及びマウス8だけでも新規に処方データを入力できるので、ホストコンピュータ14は必ずしも必要なものではない。   Reference numeral 14 denotes a host computer used for receiving prescription data from an external system. However, since the prescription data can be newly input only with the CRT display 6, the keyboard 7, and the mouse 8, the host computer 14 is not necessarily required.

また、中央処理装置3(CPU)、CRTディスプレイ6、キーボード7、マウス8、及びハードディスク装置4はパーソナルコンピュータで構成してもよい。また、ハードディスク装置4が独立したファイルサーバ装置(CPU内蔵)であって、中央処理装置3(CPU)がクライアント端末としてサーバ装置とネットワーク(LAN)で接続したようなクライアント・サーバ構成でもよい。さらに、調剤機器2の各号機との通信については、多チャンネル通信部5を使う代わりに、調剤機器2の各号機も含めて同一のネットワーク(LAN)に接続して通信してもよい。   Further, the central processing unit 3 (CPU), the CRT display 6, the keyboard 7, the mouse 8, and the hard disk device 4 may be constituted by a personal computer. The hard disk device 4 may be an independent file server device (built-in CPU), and the central processing device 3 (CPU) may be connected to the server device as a client terminal via a network (LAN). Further, for communication with each unit of the dispensing device 2, instead of using the multi-channel communication unit 5, the communication may be performed by connecting to the same network (LAN) including each unit of the dispensing device 2.

次に、前記制御装置1により、錠剤分包機と薬袋印刷機を駆動制御する場合について、図5に示すフローチャートに従って説明する。   Next, the case where the control device 1 controls the drive of the tablet packaging machine and the medicine bag printing machine will be described with reference to the flowchart shown in FIG.

まず、CRTディスプレイ6に、メニュー画面(起動ボタンが並ぶだけの画面なので図示省略)から制御用の画面を表示させる(ステップS1)。制御用の画面とは、図6に示す「処方データの入力」画面と、図7に示す「使用状況モニタ」画面とを指し、これらは別々のウィンドウで表示される。なお、使用状況モニタの画面は、調剤機器2の監視専用にCRTディスプレイ6を別個に設けて、そこに表示するようにしてもよい。   First, a control screen is displayed on the CRT display 6 from a menu screen (not shown because it is a screen where only start buttons are arranged) (step S1). The control screen refers to the “prescription data input” screen shown in FIG. 6 and the “usage status monitor” screen shown in FIG. 7, which are displayed in separate windows. In addition, the CRT display 6 may be provided separately for the usage status monitor screen for monitoring the dispensing device 2 and displayed there.

そこで、操作対象の表示画面を「処方データの入力」画面(図6)とする。「処方データの入力」画面では、データ入力欄は全て空の初期状態となっているので、処方データを入力する(ステップS2)。処方データの入力は、ホストコンピュータ14からのデータ受信やキーボード7及びマウス8の入力により行う。調剤日には、中央処理装置3(CPU)に内蔵したカレンダ時計が刻む本日の日付が表示される。また、他の空欄には、ホストコンピュータ14から受信した処方データの内容が表示される。ホストコンピュータ14からの受信データは、通信のデータ量を少なくするため、各種コードのみで構成されているので、処方データの内容を表示する際には、各種コードを検索キーとして各種マスタファイルから名称データなどの読み出し処理が行われる。例えば、受信データ内には薬剤コード「シヨウエ」としか格納されていないので、薬剤名称「錠剤A」は薬剤マスタファイルから読み出す。なお、薬剤コードは、薬剤師が入力し易いように、薬剤の略称から濁点を除いて縮めたような、薬剤毎に一意なコードである(例えば「ジョウザイエー」は「シヨウエ」とする)。薬剤師は、表示された処方データの内容を監査して問題がなければ、「入力OK」ボタンをマウス8でクリックする。また、処方データの内容はキーボード7及びマウス8を使用して任意に変更可能である。   Therefore, the display screen to be operated is set as an “input prescription data” screen (FIG. 6). On the “input prescription data” screen, all the data input fields are in an empty initial state, so prescription data is input (step S2). The prescription data is input by receiving data from the host computer 14 or inputting from the keyboard 7 and mouse 8. On the dispensing date, today's date engraved by a calendar clock built in the central processing unit 3 (CPU) is displayed. Further, the contents of the prescription data received from the host computer 14 are displayed in other blanks. Since the data received from the host computer 14 is composed only of various codes in order to reduce the amount of communication data, when displaying the contents of the prescription data, the names from the various master files are used with the various codes as search keys. Data is read out. For example, since only the drug code “Shioe” is stored in the received data, the drug name “Tablet A” is read from the drug master file. Note that the drug code is a unique code for each drug, for example, shortened from the abbreviation of the drug by removing the cloud point so that the pharmacist can easily input the drug code (for example, “Jouzaie” is “Shioe”). If the pharmacist audits the contents of the displayed prescription data and there is no problem, the pharmacist clicks the “input OK” button with the mouse 8. The contents of the prescription data can be arbitrarily changed using the keyboard 7 and the mouse 8.

「処方データの入力」画面中、引換番号は、外来患者の場合のみ、会計終了時に予め渡しておく「おくすり引換券」の番号を示す。この処方データ(図6)の例では処方箋区分が「02」入院であり(入院患者)、引換番号は意味がないので「0000」と表示される。診療科、医師、病棟、処方箋区分は、各コードを入力すると、対応する各種マスタファイルから名称データが読み出されて表示される。(例えば、診療科でコード「01」を入力すると「内科」と表示される)「処方No.」欄は、薬剤(複数可)と用法が一組みになった「処方」の連続番号である。この「処方」は複数個の入力ができる。「コード」入力欄は、薬剤コード又は用法コードを入力するための欄である。コードを入力すると薬剤マスタファイル又は用法マスタファイルから名称データが読み出されて表示される。「コード」入力欄は、通常は薬剤コードを入力するが(例えば「シヨウエ」)、先頭に「/」記号を入力すると、その後に用法コードを入力する(例えば「201」。そして、用法コード「201」に対応する用法名が「分2 朝・夕 食後」)。なお、用法コードを入力した用法行では、用法名が表示された後、「日数」入力欄が表示されて日数を入力する(例えば「7日分」)。「用量」欄はその薬剤の1日量を入力するための欄である。単位(錠、カプセル、g、ml、など)は薬剤マスタファイルから読み出されて表示される。「服用時期」欄は、1日量である用量を服用時期毎に分割した1回量を入力するための欄である。1回量は、錠剤、カプセル剤、丸剤などの固形製剤の場合は個数(錠数)だが、散剤の場合はグラム数である。「形態」欄の形態コードは薬剤マスタファイルから読み出されて表示される。形態コードとは、調剤作業において薬剤を形態で分類するためのコードである。「分包」は薬剤フィーダから自動的に供給して包装することを意味し、「ヒートシール」は製薬メーカで包装されたヒートシール包装のまま患者に渡すことを意味する。「錠剤で分包」=11、「錠剤でヒートシール」=13、「カプセル剤で分包」=14、「カプセル剤でヒートシール」=16、「散剤で分包」=17、「散剤でヒートシール」=19、などを入力する。「新規入力」ボタンをクリックすると、その時に表示している処方データを後回しにするために待避記憶してから表示が消去され、任意の処方データを患者番号から新規に入力可能となる。この場合、例えば、患者番号「93026571」とキーボード入力すると、患者名(カナ、漢字)、性別、生年月日が患者マスタファイルから読み出されて表示される。年齢は、生年月日と本日の日付とから自動的に計算されて表示される。また、「入力OK」ボタンが操作されると、「調剤機器・エラー状況の監視」処理が行われる(ステップS3)。   In the “prescription data input” screen, the exchange number indicates the number of the “subscription voucher” that is handed over in advance at the end of the transaction only for outpatients. In the example of this prescription data (FIG. 6), the prescription classification is “02” hospitalized (inpatient), and the exchange number is meaningless, so “0000” is displayed. When each code is input, the name data is read from the corresponding various master files and displayed in the clinical department, doctor, ward, and prescription category. (For example, when the code “01” is entered in the clinical department, “Internal Medicine” is displayed.) The “Prescription No.” field is a serial number of “Prescription” in which a drug (multiple) and usage are combined. . This “prescription” can be entered in multiple numbers. The “code” input field is a field for inputting a drug code or a usage code. When a code is entered, name data is read from the medicine master file or usage master file and displayed. In the “code” input field, a drug code is normally input (for example, “Shioe”), but when a “/” symbol is input at the beginning, a usage code is input thereafter (for example, “201”. The usage name corresponding to “201” is “minute 2 morning / after dinner”). In the usage line in which the usage code is input, after the usage name is displayed, the “days” input field is displayed and the number of days is input (for example, “7 days”). The “Dose” column is a column for inputting the daily dose of the drug. Units (tablets, capsules, g, ml, etc.) are read from the drug master file and displayed. The “dosage time” column is a column for inputting a single dose obtained by dividing a daily dose by dose. The single dose is the number (number of tablets) in the case of solid preparations such as tablets, capsules and pills, but the number of grams in the case of powders. The form code in the “form” column is read from the medicine master file and displayed. The form code is a code for classifying medicines by form in the dispensing operation. “Separation” means that the medicine feeder automatically supplies and packages, and “heat seal” means that the heat-sealed package packaged by the pharmaceutical manufacturer is delivered to the patient. “Packaging with tablets” = 11, “Sealing with tablets” = 13, “Packaging with capsules” = 14, “Sealing with capsules” = 16, “Packaging with powders” = 17, “With powders” Enter “heat seal” = 19. When the “new input” button is clicked, the prescription data being displayed at that time is saved to save later, the display is erased, and arbitrary prescription data can be newly input from the patient number. In this case, for example, when the patient number “93026571” is input from the keyboard, the patient name (kana, kanji), gender, and date of birth are read from the patient master file and displayed. The age is automatically calculated from the date of birth and today's date and displayed. When the “input OK” button is operated, a “dispensing device / error status monitoring” process is performed (step S3).

調剤機器2・エラー状況の監視処理では、図8のフローチャートに示すように、まず、使用条件設定ファイル11(図2)から使用条件設定データ(行レコード)を取得する(ステップS11)。   In the dispensing device 2 / error status monitoring process, as shown in the flowchart of FIG. 8, first, use condition setting data (row record) is obtained from the use condition setting file 11 (FIG. 2) (step S11).

そして、使用不可フラグが1(不可)か否かを判断する(ステップS12)。使用条件設定データの使用不可フラグが「不可」ならば、その機種NのM号機は使用不可なので、終了判断(ステップS18)に進む。一方、使用条件設定データの使用不可フラグが「可」ならば、使用条件設定データに設定された機種NのM号機からエラー状況信号(エラー番号)を受信する(ステップS13)。   Then, it is determined whether or not the unusable flag is 1 (unusable) (step S12). If the unusable flag in the use condition setting data is “unusable”, the model No. M of the model N is unusable, and the process proceeds to the end determination (step S18). On the other hand, if the unusable flag in the use condition setting data is “permitted”, an error status signal (error number) is received from the model No. M of the model N set in the use condition setting data (step S13).

続いて、重大エラーが発生したか否かを判断する(ステップS14)。すなわち、重大エラー設定ファイル(図3)内の機種Nのデータを検索し、受信したエラー番号が重大エラー番号として設定されているか否かを判断する。重大エラー番号として設定されていなければ通常のエラーなので終了判断(ステップS18)に進む。   Subsequently, it is determined whether or not a serious error has occurred (step S14). That is, the data of the model N in the serious error setting file (FIG. 3) is searched to determine whether or not the received error number is set as a serious error number. If it is not set as a serious error number, it is a normal error and the process proceeds to the end determination (step S18).

一方、重大エラー番号として設定されていれば、使用条件設定ファイル11(図2)内の使用条件設定データの使用不可フラグを「不可」に設定する(ステップS15)。そして、図7に示すように、「使用状況モニタ」画面の「使用不可フラグ」欄に「不可」を表示し、「重大エラー」欄に重大エラー番号と重大エラー状況を表示する(ステップS16)。   On the other hand, if it is set as a serious error number, the unusable flag of the use condition setting data in the use condition setting file 11 (FIG. 2) is set to “impossible” (step S15). Then, as shown in FIG. 7, “unusable” is displayed in the “unusable flag” column of the “usage status monitor” screen, and the severe error number and the severe error status are displayed in the “serious error” column (step S16). .

なお、「使用状況モニタ」画面中、「機種」「号機番号」「使用不可フラグ」欄には使用条件設定ファイル11(図2)の内容をそのまま表示する。また、次の「専用・処方箋区分」欄には、使用条件設定ファイル11(図2)の内容に基づいて、現在時刻での状況を表示する。例えば、図7での錠剤分包機の1号機は、現在時刻は「09:05」であって、使用条件設定ファイル11(図2)の「限定・時刻帯」の範囲内なので、「専用・処方箋区分」欄には現在の状況として「2(外来専用)」と表示する。そして、「限定・時刻帯」の範囲外になれば、「0(指定なし)」と表示する。また、「重大エラー」欄には、重大エラー設定ファイル(図3)の内容に基づいて、エラー発生の番号と状況を表示する。「★」印と反転表示行は処理対象とする行データを示し、上下矢印キーやマウス8のクリックで任意に行を移動できる。「エラー対策」欄には、行データに重大エラーが含まれている場合、その対策を表示する。エラー対策は、重大エラー設定ファイル(図3)に設定された内容である。「使用不可/可」ボタンは、クリックする度に行データの使用不可フラグの内容を「1=不可」と「0=可」で交互に切り替え、使用不可を任意に設定・解除するためのものである。「キャンセル」ボタンは、ウィンドウを消去するためのものである。   In the “Usage Status Monitor” screen, the contents of the usage condition setting file 11 (FIG. 2) are displayed as they are in the “Model”, “Unit Number”, and “Unusable Flag” fields. In the next “dedicated / prescription category” field, the status at the current time is displayed based on the contents of the use condition setting file 11 (FIG. 2). For example, the first time of the tablet packaging machine in FIG. 7 is “09:05” and is within the range of “limited / time zone” in the use condition setting file 11 (FIG. 2). In the “Prescription category” field, “2 (external only)” is displayed as the current situation. Then, “0 (no designation)” is displayed when it is out of the range of “limited / time zone”. Further, the “severe error” column displays the error occurrence number and status based on the contents of the serious error setting file (FIG. 3). The “★” mark and the highlighted line indicate line data to be processed, and the line can be arbitrarily moved by clicking the up / down arrow keys or the mouse 8. In the “error countermeasure” column, if a serious error is included in the row data, the countermeasure is displayed. The error countermeasure is the content set in the severe error setting file (FIG. 3). The “unusable / unusable” button is used to switch the contents of the unusable flag of the row data alternately between “1 = unavailable” and “0 = enabled” each time it is clicked, and to set / cancel the uselessness arbitrarily It is. The “Cancel” button is for deleting the window.

さらに、重大エラーの発生状況を重大エラー記録ファイル13(図4)に記録する(ステップS17)。この記録内容は、後に保守サービス員が確認し、調剤機器2の稼働状況を的確に把握して適切な対策をとることが可能となる。   Further, the occurrence status of the serious error is recorded in the serious error recording file 13 (FIG. 4) (step S17). This recorded content can be confirmed later by a maintenance service person, and it is possible to accurately grasp the operating status of the dispensing device 2 and take appropriate measures.

その後、使用条件設定ファイル11(図2)から取得する使用条件設定データが終了したか否かを判断する(ステップS18)。終了していれば、図5のステップS4に戻り、終了していなければ、次の使用条件設定データを検索し(ステップS19)、ステップS11に戻ってデータ取得から繰り返す。   Thereafter, it is determined whether or not the use condition setting data acquired from the use condition setting file 11 (FIG. 2) has ended (step S18). If completed, the process returns to step S4 in FIG. 5, and if not completed, the next use condition setting data is retrieved (step S19), and the process returns to step S11 to repeat from the data acquisition.

「調剤機器・エラー状況の監視」処理が終了すれば、図5のステップS4に戻って錠剤分包機を動作させるか否かを判断する。これは、処方データの薬剤の中に錠剤分包機で自動分包する「錠剤」又は「カプセル剤」が存在するか否かを薬剤の形態コードで判断することにより行う。   When the “dispensing device / error status monitoring” process is completed, the process returns to step S4 in FIG. 5 to determine whether or not to operate the tablet packaging machine. This is performed by determining whether or not “tablet” or “capsule” to be automatically packaged by the tablet packaging machine is present in the drug of the prescription data based on the form code of the drug.

該当する薬剤の形態コードがあれば、錠剤分包機を動作させると判断し、調剤機器(引数:機種=1「錠剤分包機」)の動作を実行する(ステップS5)。詳しくは、図5のフローチャートに示すように、「調剤機器・動作の実行」手続きを、引数の機種に「1」(錠剤分包機)を設定して呼び出すことにより実行する。   If there is a corresponding form code of the medicine, it is determined that the tablet packaging machine is operated, and the operation of the dispensing device (argument: model = 1 “tablet packaging machine”) is executed (step S5). Specifically, as shown in the flowchart of FIG. 5, the “dispensing device / execution execution” procedure is executed by calling “1” (tablet packaging machine) with the argument model set to “1”.

「調剤機器・動作の実行」処理では、図9及び図10のフローチャートに示すように、まず、変数N(機種)に引数の機種を設定し(ステップS21)、変数M(号機番号)に「1」を初期設定する(ステップS22)。そして、使用条件設定ファイル11(図2)から「機種NのM号機」の使用条件設定データ(行レコード)を取得する(ステップS23)。   In the “execution of dispensing device / operation” process, as shown in the flowcharts of FIGS. 9 and 10, first, the model of the argument is set to the variable N (model) (step S21), and the variable M (unit number) is set to “ 1 ”is initialized (step S22). Then, the usage condition setting data (row record) of “M model No. M” is acquired from the usage condition setting file 11 (FIG. 2) (step S23).

ここで、使用不可フラグが1(不可)であるか否かを判断する(ステップS24)。使用条件設定データの使用不可フラグが「不可」ならば、その機種N・M号機は使用不可なので、号機の終了判断(ステップS29)に進む。一方、使用条件設定データの使用不可フラグが「可」ならば、処方データ(図6)の「処方箋区分」が、使用条件設定データの「専用・処方箋区分」と一致するか判断する(ステップS25)。なお、「専用・処方箋区分」が「指定なし」(全処方箋)であれば、一致と判断する。   Here, it is determined whether or not the unusable flag is 1 (unusable) (step S24). If the unusable flag of the use condition setting data is “unusable”, the model N / M is unusable, and the process proceeds to the end determination of the car (step S29). On the other hand, if the unusable flag in the use condition setting data is “permitted”, it is determined whether the “prescription category” in the prescription data (FIG. 6) matches the “dedicated / prescription category” in the use condition setting data (step S25). ). If “dedicated / prescription category” is “not specified” (all prescriptions), it is determined that they match.

「処方箋区分」が、使用条件設定データの「専用・処方箋区分」と一致していれば、ステップS28でM号機を使用可能候補に設定した後、号機の終了判断を行う(ステップS29)。但し、最終的な号機の決定は後の処理ステップ(ステップS32)で行う。一方、「専用・処方箋区分」と一致していなければ、時刻帯が有効か否かを判断する(ステップS26)。使用条件設定データの「限定・時刻帯」の「有効」チェックボックス(□印)がオン(∨印)であれば時刻帯は有効であり、オフ(∨印なし)であれば無効と判断する。   If the “prescription category” matches the “dedicated / prescription category” in the use condition setting data, the M machine is set as a usable candidate in step S28, and then the end of the machine is determined (step S29). However, the final number is determined in a later processing step (step S32). On the other hand, if it does not match the “dedicated / prescription category”, it is determined whether or not the time zone is valid (step S26). The time zone is valid if the “valid” check box (□) in the “limited / time zone” of the use condition setting data is on (∨), and is invalid if it is off (no tick). .

時刻帯が有効であれば、現在時刻が時刻帯の範囲内にあるか否かを判断する(ステップS27)。この判断は、中央処理装置3(CPU)に内蔵したカレンダ時計が刻む現在時刻が、使用条件設定データの「限定・時刻帯」の範囲内であるか否かによって行う。現在時刻が時刻帯の範囲内にあれば、号機の終了判断(ステップS29)に進み、範囲内になければ、ステップS28でM号機を使用可能候補に設定した後、号機の終了判断に進む(ステップS29)。   If the time zone is valid, it is determined whether or not the current time is within the time zone range (step S27). This determination is made based on whether or not the current time recorded by the calendar clock built in the central processing unit 3 (CPU) is within the “limited / time zone” range of the use condition setting data. If the current time is within the range of the time zone, the process proceeds to the end determination of the unit (step S29). If not, the unit M is set as a usable candidate in step S28, and then proceeds to the end determination of the unit ( Step S29).

号機の終了判断では、使用条件設定ファイル11(図2)から取得する使用条件設定データにおいて機種Nの号機の終了か判断する。号機が終了していなければ、変数M(号機番号)を「+1」(M←M+1)して(ステップS30)、次の使用条件設定データの取得から繰り返す。一方、号機が終了していれば、使用可能候補がないか否かを判断する(ステップS31)。   In the end determination of the number machine, it is determined whether or not the model number N is ended in the use condition setting data acquired from the use condition setting file 11 (FIG. 2). If the number has not ended, the variable M (the number of the number) is set to “+1” (M ← M + 1) (step S30), and the process is repeated from the acquisition of the next use condition setting data. On the other hand, if the number machine has been completed, it is determined whether or not there is a usable candidate (step S31).

使用可能候補があれば、使用可能候補の号機の中から実際に使用する号機を決定する(ステップS32)。決定の方式には、号機への処方データの割り当て数を均等にする方式や、処方データ内の薬剤の種類に応じて適当な号機に割り当てる方式等がある。そして、機種Nの中で決定した号機に、機種毎に固有な動作コマンドを送信する(ステップS33)。例えば、機種が錠剤分包機ならば分包コマンドであり、薬袋印刷機ならば印刷コマンドである。   If there is an available candidate, the actual number to be used is determined from the usable candidate numbers (step S32). As a determination method, there are a method for equalizing the number of prescription data assigned to the number machine, a method for assigning to an appropriate number machine according to the type of medicine in the prescription data, and the like. Then, an operation command unique to each model is transmitted to the machine determined in model N (step S33). For example, if the model is a tablet packaging machine, it is a packaging command, and if it is a medicine bag printing machine, it is a printing command.

一方、使用可能候補がなければ、処方データが消去されないように待避記憶する(ステップS34)。待避記憶した処方データは再び「処方データの入力」画面(図6)に表示される。そして、稼働できる号機が1台もない旨のエラー状況を使用状況モニタ画面(図7)に表示する(ステップS35)。   On the other hand, if there is no usable candidate, the prescription data is saved so as not to be erased (step S34). The saved prescription data is again displayed on the “input prescription data” screen (FIG. 6). Then, an error status indicating that there is no unit that can be operated is displayed on the usage status monitor screen (FIG. 7) (step S35).

以上のようにして「調剤機器・動作の実行」処理が終了すれば、「調剤機器の制御」(図5)のステップS6で調剤機器2・動作の実行(引数:機種=2「薬袋印刷機」)を行う。この処理は、前記同様、「調剤機器・動作の実行」手続き(図9)を、引数の機種に「2」(薬袋印刷機)を設定して呼び出すことにより行う。   When the “dispensing device / operation execution” process is completed as described above, the dispensing device 2 / operation execution (argument: model = 2 “medicine bag printing machine” is executed in step S6 of “dispensing device control” (FIG. 5). ")I do. This processing is performed by calling the “dispensing device / execution execution” procedure (FIG. 9) by setting “2” (medicine bag printing machine) as the argument model.

その後、処方データが終了したか否かを判断する(ステップS7)。処方データ入力の画面(図6)で「キャンセル」ボタンがクリックされると、処方データ入力の画面が終了し、メニュー画面(図示省略)に復帰する。「キャンセル」ボタンがクリックされない場合、ステップS2に戻って処方データ入力から繰り返す。   Thereafter, it is determined whether or not the prescription data is completed (step S7). When the “Cancel” button is clicked on the prescription data input screen (FIG. 6), the prescription data input screen is terminated and the screen returns to the menu screen (not shown). If the “cancel” button is not clicked, the process returns to step S2 and repeats from the prescription data input.

なお、他の機種を接続する場合、その機種を動作させるか否かの判断ステップと、その機種の機種ID番号を引数として「調剤機器・動作の実行」手続きを呼び出すステップとを一組みにして追加する。但し、薬袋印刷機は、例外的に、どのような処方データの場合でも必ず動作させる必要があるので、動作要否の判断ステップは不要となる。   When connecting other models, the determination step for determining whether or not to operate the model is combined with a step for calling the “Execute Dispensing Equipment / Operation” procedure with the model ID number of the model as an argument. to add. However, the medicine bag printing machine is exceptionally required to be operated for any prescription data, so that the step of determining whether or not to operate is not necessary.

1…制御装置
2…調剤機器
3…中央処理装置
4…ハードディスク装置
5…多チャンネル通信部
6…CRTディスプレイ
9…メモリ
10…制御プログラム
11…使用条件設定ファイル
12…重大エラー設定ファイル
13…重大エラー記録ファイル
14…ホストコンピュータ
DESCRIPTION OF SYMBOLS 1 ... Control apparatus 2 ... Dispensing apparatus 3 ... Central processing unit 4 ... Hard disk apparatus 5 ... Multichannel communication part 6 ... CRT display 9 ... Memory 10 ... Control program 11 ... Use condition setting file 12 ... Severe error setting file 13 ... Severe error Recording file 14 ... Host computer

Claims (11)

処方データに基づいて複数機種又は複数台の調剤機器を駆動制御する調剤機器用制御装置において、
記調剤機器毎に、設定した時間帯で処方箋区分の専用化を限定するための限定・時刻帯を含む使用条件からなる使用条件設定ファイルを記憶するハードディスク装置と、
前記処方データ及び前記使用条件設定ファイルに記憶された各調剤機器毎の使用条件に基づいて、使用可能な調剤機器を選択する中央処理装置と、
を備え、
前記ハードディスク装置に記憶する使用条件設定ファイルは、機種毎に付与される機種ID番号と、機種毎の各号機に付与される号機番号を含み、
前記中央処理装置は、使用条件として限定・時刻帯が有効であるか否かを判断し、有効であると判断した場合、設定した時間帯で、限定した処方箋区分に従って、該当する調剤機器の使用条件を決定することを特徴とする調剤機器用制御装置。
In a dispensing device control device that drives and controls multiple types or multiple dispensing devices based on prescription data,
Before each Sulfur butterfly agent device, a hard disk device that stores use condition setting file consisting of conditions, including a limited-time zone to limit the dedicated prescription segment in the time zone set,
A central processing unit that selects a usable dispensing device based on the use conditions for each dispensing device stored in the prescription data and the use condition setting file;
With
The use condition setting file stored in the hard disk device includes a model ID number assigned to each model, and a machine number assigned to each machine for each model,
The central processing unit determines whether or not the limitation / time zone is valid as a use condition, and if it is determined to be valid, the use of the corresponding dispensing device in the set time zone according to the limited prescription category A controller for a dispensing device, characterized in that a condition is determined.
前記ハードディスク装置に記憶する使用条件設定ファイルは、外来処方箋、入院処方箋又は指定なしのいずれかを示す処方箋区分を含むことを特徴とする請求項1に記載の調剤機器用制御装置。   2. The dispensing device control device according to claim 1, wherein the use condition setting file stored in the hard disk device includes a prescription section indicating any one of an outpatient prescription, an inpatient prescription, and no designation. 前記各機種には、薬剤分包機、薬袋印刷機、散剤調剤監査機、水剤調剤監査機、水剤分包機含まれ、新機種を追加する場合、前記ハードディスク装置に記憶する使用条件設定ファイルには、機種ID番号を追加し、号機が増えれば号機番号を増やすことを特徴とする請求項1又は2項に記載の調剤機器用制御装置。 Wherein the each model, medicine packing machine, medicine bag printing machine, powder dispensing audit machines, liquid medication dispensing auditing machine, contains liquid medication packing machine, when you add a new model, the hard disk drive using condition setting file to be stored in 3. The dispensing device control device according to claim 1 or 2 , wherein a model ID number is added, and the number of the machine is increased when the number of machines is increased. 前記中央処理装置は、前記処方データに含まれる形態コードに基づいて、動作させる調剤機器を特定し、特定した調剤機器の号機番号から使用条件を取得し、使用条件と一致した号機を決定し、該号機に機種毎に固有な動作コマンドを送信することを特徴とする請求項3に記載の調剤機器用制御装置。 The central processing unit specifies the dispensing device to be operated based on the form code included in the prescription data, obtains the use condition from the machine number of the specified dispensing device, determines the machine that matches the use condition, 4. The dispensing device control device according to claim 3, wherein an operation command unique to each model is transmitted to the machine. 前記中央処理装置は、各調剤機器の使用状況をモニタ画面に一覧表示させることを特徴とする請求項1からのいずれか1項に記載の調剤機器用制御装置。 The said central processing unit displays the usage condition of each dispensing apparatus as a list on a monitor screen, The control apparatus for dispensing apparatuses of any one of Claim 1 to 4 characterized by the above-mentioned. 前記中央処理装置は、前記処方データ及び前記使用条件設定ファイルに基づいて、使用可能な調剤機器がないと判断した場合、処方データを一時的に記憶すると共に、モニタ画面にエラー状況を表示させることを特徴とする請求項1からのいずれか1項に記載の調剤機器用制御装置。 When the central processing unit determines that there is no usable dispensing device based on the prescription data and the use condition setting file, the central processing unit temporarily stores prescription data and displays an error status on the monitor screen. The control apparatus for dispensing apparatuses according to any one of claims 1 to 5 , wherein: 前記ハードディスク装置は、前記各調剤機器で発生するエラーのうち、任意に設定可能な重大エラーからなる重大エラー設定ファイルを記憶し、
前記中央処理装置は、前記いずれかの調剤機器から入力されるエラー信号が、前記重大エラー設定ファイル中の重大エラーに該当するか否かを判断することを特徴とする請求項1からのいずれか1項に記載の調剤機器用制御装置。
The hard disk device stores a serious error setting file including a serious error that can be arbitrarily set among errors generated in each dispensing device,
The central processing unit, the error signal input from any one of the dispensing device, either the claim 1, characterized in that determining whether corresponds to severe error serious error set in the file 6 The control apparatus for dispensing apparatuses of Claim 1.
前記中央処理装置は、前記いずれかの調剤機器から入力されるエラー信号が重大エラー設定ファイル中の重大エラーに該当すれば、モニタ画面に重大エラー状況を表示させることを特徴とする請求項に記載の調剤機器用制御装置。 The central processing unit, if applicable to serious error in the one in the error signal serious error setting file inputted from the dispensing device, in claim 7, characterized in that to display the critical error conditions on a monitor screen The controller for dispensing equipment as described. 前記中央処理装置は、前記いずれかの調剤機器から入力されるエラー信号が重大エラー設定ファイル中の重大エラーに該当すれば、モニタ画面にエラー対策を表示させることを特徴とする請求項に記載の調剤機器用制御装置。 The central processing unit, according to claim 7 where the error signal inputted from any one of the dispensing devices if applicable to serious error in serious error setting file, and wherein the displaying the error measures the monitor screen Dispensing equipment controller. 前記中央処理装置は、前記いずれかの調剤機器から入力されるエラー信号が重大エラー設定ファイル中の重大エラーに該当すれば、当該調剤機器を使用不可に設定すると共に、使用不可の設定後は、当該調剤機器への処方データの割り当てを中止することを特徴とする請求項に記載の調剤機器用制御装置。 If the error signal input from one of the dispensing devices corresponds to a serious error in the serious error setting file, the central processing unit sets the dispensing device to be unusable, and after setting the unusable, 8. The dispensing device control device according to claim 7 , wherein assignment of prescription data to the dispensing device is stopped. 前記中央処理装置は、前記いずれかの調剤機器から入力されるエラー信号が重大エラー設定ファイル中の重大エラーに該当すれば、当該重大エラー状況を重大エラー記録ファイルに記録することを特徴とする請求項に記載の調剤機器用制御装置。 The central processing unit, if an error signal input from one of the dispensing devices corresponds to a serious error in a serious error setting file, records the serious error situation in a serious error recording file. Item 8. A dispensing device control device according to Item 7 .
JP2009266624A 2009-11-24 2009-11-24 Dispensing equipment controller Expired - Fee Related JP4580456B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009266624A JP4580456B2 (en) 2009-11-24 2009-11-24 Dispensing equipment controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009266624A JP4580456B2 (en) 2009-11-24 2009-11-24 Dispensing equipment controller

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP33119999A Division JP4953495B2 (en) 1999-11-22 1999-11-22 Dispensing equipment controller

Publications (2)

Publication Number Publication Date
JP2010042300A JP2010042300A (en) 2010-02-25
JP4580456B2 true JP4580456B2 (en) 2010-11-10

Family

ID=42014131

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009266624A Expired - Fee Related JP4580456B2 (en) 2009-11-24 2009-11-24 Dispensing equipment controller

Country Status (1)

Country Link
JP (1) JP4580456B2 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6030161Y2 (en) * 1982-01-28 1985-09-11 株式会社東京商会 Automatic tablet packaging machine for medication
JPH0662124B2 (en) * 1987-09-11 1994-08-17 株式会社東京商会 Medicine packing machine
JPH0277831A (en) * 1988-06-27 1990-03-16 Mitsubishi Electric Corp Printer controller
JPH06183112A (en) * 1992-12-15 1994-07-05 Fuji Xerox Co Ltd Printer system
JPH0771576B2 (en) * 1993-11-29 1995-08-02 株式会社東京商会 Dispensing control device

Also Published As

Publication number Publication date
JP2010042300A (en) 2010-02-25

Similar Documents

Publication Publication Date Title
JP6981499B2 (en) Ward drug business support system
JP6476973B2 (en) Drug distribution support system
KR101122501B1 (en) Preparation control system
JP4953495B2 (en) Dispensing equipment controller
JP6969582B2 (en) Dispensing information management system
JP7147939B2 (en) Medication support system
JP7134614B2 (en) Drug information display program, recording medium and drug information display device
WO2008038775A1 (en) Medicine management guidance support system
US20130317839A1 (en) System and method for increasing patient adherence to medication treatment regimens
JP4546605B2 (en) Chemical inventory management system
JP7311747B2 (en) Medication Guidance Support System, Medication Guidance Support Program
JP7436780B2 (en) Packaging data generation device, packaging system, number of packages determining device, limit date determining device, and packaging data generation program
JP4580456B2 (en) Dispensing equipment controller
JP4903841B2 (en) Chemical management device
JP4330238B2 (en) Dispensing control device and dispensing control method
JPH02107223A (en) Medical data processing apparatus
JP2020177263A (en) Medicine delivery support system, and medicine delivery support program
CA2918798C (en) System and method for increasing patient adherence to medication treatment regimens
JP7440736B2 (en) Medical information processing system, medical information processing program
JP2025088302A (en) Drug weighing device and dispensing system
JP2025088305A (en) Medicine weighing device
WO2015013694A2 (en) System and method for increasing patient adherence to medication treatment regimens
EP3108439A1 (en) Methods, apparatuses and computer program products for providing an annotated clinical data management process
JP2022047180A (en) Dispensing support system, dispensing support program
WO2015013693A2 (en) System and method for increasing patient adherence to medication treatment regimens

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20091124

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100518

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100714

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100827

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130903

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4580456

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees