JP2013183857A - Liquid medicine dispensing apparatus - Google Patents

Liquid medicine dispensing apparatus Download PDF

Info

Publication number
JP2013183857A
JP2013183857A JP2012050667A JP2012050667A JP2013183857A JP 2013183857 A JP2013183857 A JP 2013183857A JP 2012050667 A JP2012050667 A JP 2012050667A JP 2012050667 A JP2012050667 A JP 2012050667A JP 2013183857 A JP2013183857 A JP 2013183857A
Authority
JP
Japan
Prior art keywords
level
dispensing
image
liquid medicine
excipient
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
JP2012050667A
Other languages
Japanese (ja)
Other versions
JP5980528B2 (en
Inventor
Masahiro Ako
雅宏 阿古
Yoshihiro Inoki
義弘 猪木
Takeshi Ono
剛 小野
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.)
Hitachi Ltd
Original Assignee
Hitachi Aloka Medical 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 Hitachi Aloka Medical Ltd filed Critical Hitachi Aloka Medical Ltd
Priority to JP2012050667A priority Critical patent/JP5980528B2/en
Publication of JP2013183857A publication Critical patent/JP2013183857A/en
Application granted granted Critical
Publication of JP5980528B2 publication Critical patent/JP5980528B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

PROBLEM TO BE SOLVED: To appropriately set the dispensing amount of an excipient after dispensing liquid medicine with medicinal effect in a liquid medicine dispensing apparatus.SOLUTION: An empty medication bottle is imaged, and the levels of a plurality of horizons constituting a scale 100 are measured. A liquid level h2 is determined based on a container image after dispensing a prescribed amount of liquid medicine. A target level h1 is identified as a specific horizontal level on the basis of determination. The dispensing amount of an excipient, that is an adjustment amount 121, is determined from a difference between the levels. The horizontal level may be input based on visual observation. A target level may be set, added with a margin.

Description

本発明は水薬調剤装置に関し、特に賦形剤の注入制御に関する。   The present invention relates to a liquid medicine dispensing device, and more particularly, to injection control of an excipient.

水薬調剤装置は、病院の薬剤部、調剤薬局等において、薬剤師による調剤を支援するための装置である。特許文献1に記載された水薬調剤装置においては、処方箋データに従って、複数の水薬が順番に指定されつつ複数の注入工程(分注工程)が段階的に実行されている。個々の注入工程では、指定された水薬容器(元容器、水薬瓶、水薬ボトル)から取り出された特定の水薬が投薬容器(分注先容器、処方瓶、調剤ボトル)へ吐出される。ここで、水薬は分注対象であって、一般に薬効を有する液状の薬剤を指すが、本願においては水薬の概念に賦形剤も含めるものとする。   The liquid medicine dispensing device is a device for supporting dispensing by a pharmacist at a pharmacy in a hospital, a dispensing pharmacy, or the like. In the liquid medicine dispensing device described in Patent Document 1, a plurality of injection processes (dispensing processes) are executed in stages while a plurality of liquid medicines are sequentially specified according to prescription data. In each injection step, specific liquid medicines taken out from designated liquid medicine containers (original containers, liquid medicine bottles, liquid medicine bottles) are discharged into medication containers (dispensing destination containers, prescription bottles, dispensing bottles). The Here, the liquid medicine is an object to be dispensed, and generally refers to a liquid medicine having a medicinal effect, but in the present application, an excipient is also included in the concept of liquid medicine.

賦形剤は、その追加によっても薬剤の薬効に影響を与えないものであり、シロップ、水(蒸留水)等からなる。例えば、一回の投薬量が10.3mlになった場、1ml単位の目盛りが刻まれた計量カップを利用して、そのような中途半端な量を計量するのは困難であるので、そのような場合には一回の投薬量当たり0.7mlの賦形剤が追加される。すなわち、1回の投与量を整数値とするために賦形剤が追加される。また、投薬ボトルに刻まれている目盛りに総量を合わせるために賦形剤が追加される。より具体的に説明すると、薬剤師の手技による調剤時においては、薬効をもった複数の水薬の注入後に、投薬ボトル内の総量(液面レベル)を投薬ボトルの外壁面に形成された目盛(例えば10ml単位の目盛、日数単位の目盛等)に合わせるために、賦形剤の追加注入が実施されている。なお、特許文献2には鑑査用画像を表示する水薬調剤装置が開示されている。   The excipient does not affect the drug efficacy even when added, and is composed of syrup, water (distilled water) and the like. For example, when a single dose is 10.3 ml, it is difficult to measure such a half-way amount using a measuring cup engraved with a scale of 1 ml. In some cases, 0.7 ml of excipient is added per dose. That is, an excipient is added to make a single dose an integer value. In addition, excipients are added to match the total amount to the scale engraved on the medication bottle. More specifically, at the time of dispensing by a pharmacist's procedure, after injecting a plurality of medicinal liquid medicines, the total amount (liquid level) in the medication bottle is a scale formed on the outer wall surface of the medication bottle ( For example, in order to adjust to a scale of 10 ml, a scale of days, etc., additional injection of excipients is performed. Patent Document 2 discloses a liquid medicine dispensing device that displays an inspection image.

特開2009−112673号公報JP 2009-112673 A 特開2009−112636号公報JP 2009-112636 A

従来の水薬調剤装置においては、賦形剤の注入量が上記のように数値的な観点から単純に決定されており、実際の投薬容器上の目盛りとの関係(特に賦形剤注入後において最終的な液面レベルが目盛り上のどこに達するのか)までは考慮されていない。   In conventional liquid medicine dispensing devices, the amount of excipient injected is simply determined from the numerical point of view as described above, and the relationship with the scale on the actual medication container (especially after excipient injection) Where the final liquid level reaches on the scale) is not considered.

投薬容器は一般に樹脂成型品として構成され、それは比較的柔らかく、内容物によってある程度変形するものである。成形誤差の可能性も指摘できる。そのような要因により、その外面上に付されている目盛りが正確な液量を表示しないこともある。そうであっても患者においてはその目盛りを頼りに内容量を認識する。目盛り上、到達すべきレベルまで実際の液面レベルが到達していない場合、それが僅かであっても患者にとっては大きな不安要因となる。   The dosing container is generally configured as a resin molded product, which is relatively soft and deforms to some extent depending on the contents. The possibility of forming errors can also be pointed out. Due to such factors, the scale on the outer surface may not display an accurate liquid amount. Even so, the patient recognizes the content using the scale. If the actual liquid level does not reach the level to be reached on the scale, even if the actual liquid level is small, it is a great factor for the patient.

その一方、水薬調剤装置においては、かなり細かく個々の水薬の注入量を制御可能であり、また実際の注入量は一般に非常に正確である。賦形剤注入量が計算上妥当であっても、実際に投薬容器へ賦形剤を入れてみると、最終的な液面レベルが目盛り上の規定レベルに合わなくなることも多い。最終的な液面レベルが規定レベルを越えている場合、患者にとって不安感はあまりないようである。一回の投薬ごとに計量カップを利用した計量が行われるからである。最後に投薬容器内に多少の水薬が残留しても特に問題ではない。その一方、最終的な液面レベルが見掛け上規定レベルを下回っている場合、それを渡された患者において大きな不安感、危惧感が生じる。これを原因として薬剤師への苦情、不信感が生じる。   On the other hand, in a liquid medicine dispensing device, the injection amount of each individual liquid medicine can be controlled fairly finely, and the actual injection amount is generally very accurate. Even if the amount of excipient injection is reasonable, when the excipient is actually put into the dosing container, the final liquid level often does not meet the prescribed level on the scale. If the final liquid level is above the prescribed level, the patient seems less anxious. This is because weighing using a measuring cup is performed for each dose. Finally, even if some liquid medicine remains in the dosing container, there is no particular problem. On the other hand, if the final liquid level is apparently below the specified level, a great deal of anxiety and fear will occur in the patient who has passed it. This causes complaints and distrust to the pharmacist.

本発明の目的は、賦形剤の注入量(継ぎ足し量)を実際の投薬容器(原物)を基準として決定できる水薬調剤装置を提供することにある。あるいは、投薬容器での見掛け上の液量不足を解消できる水薬調剤装置を提供することにある。   An object of the present invention is to provide a liquid medicine dispensing device capable of determining an injection amount (addition amount) of an excipient based on an actual dosing container (original). Or it is providing the liquid medicine dispensing apparatus which can eliminate the shortage of the apparent liquid quantity in a dosing container.

本発明に係る水薬調剤装置は、目盛りを有する投薬容器と、前記投薬容器を撮像して容器画像を取得する撮像手段と、前記容器画像に対する目盛り解析の結果又は前記容器画像内の目盛りを視認したユーザーの入力に基づいて、現在注入対象となっている投薬容器において目標レベルを設定する目標レベル設定手段と、前記投薬容器に対して薬効をもった水薬を注入した後に前記投薬容器に対して賦形剤を注入する制御を実行する手段であって、前記賦形剤の注入量の調整により前記目標レベルに対して前記投薬容器内の液面レベルを合わせる注入制御手段と、を含むことを特徴とする。   The liquid medicine dispensing device according to the present invention includes a dosing container having a scale, an imaging unit that images the dosing container and obtains a container image, and visually recognizes the result of the scale analysis on the container image or the scale in the container image. And a target level setting means for setting a target level in the medication container that is currently infused based on the input of the user, and after injecting a liquid medicine having a medicinal effect to the medication container, Means for controlling the injection of the excipient, and injection control means for adjusting the liquid level in the dosing container with respect to the target level by adjusting the injection amount of the excipient. It is characterized by.

上記構成によれば、投薬容器を撮像することによって得られた容器画像に基づいて賦形剤の注入量が適応的に定められる。すなわち、賦形剤の注入量が数値的な条件だけから決定されるのではなく、投薬容器に付されている目盛りを考慮して、原物基準の下で賦形剤の注入量が決定される。よって、例えば、実際の目盛り上で特定される規定レベルまで液面レベルが達せず患者において不安感、不信感が生じるといった問題を解消又は軽減できる。   According to the above configuration, the injection amount of the excipient is adaptively determined based on the container image obtained by imaging the medication container. In other words, the injection amount of the excipient is not determined only from numerical conditions, but the injection amount of the excipient is determined under the original standard in consideration of the scale attached to the dosing container. The Therefore, for example, the problem that the liquid level does not reach the specified level specified on the actual scale and anxiety and distrust occur in the patient can be solved or reduced.

容器画像の画像解析により、あるいは、目盛りを含む容器画像を表示した上でユーザーが目盛りを特定する入力を行うことにより、水薬調剤装置をして実際の目盛りを認識させることができる。画像解析方式を採用する場合、容器画像上において目盛りを構成する複数の水平線の全部又は一部について、レベル(高さ)が自動的に判定される。目盛りの特定は、水薬注入前の段階、薬効を有する水薬注入後(賦形剤の注入前)の段階、その他の段階で行うことが可能である。液面レベルの解析後にその直上にある水平線が特定されるようにしてもよい。ユーザー入力方式を採用する場合、容器画像上において目盛りを目視した状態で、それを構成する1又は全部の水平線の座標(高さ)を指定するようにしてもよい。その指定は、水薬注入前の段階、薬効を有する水薬注入後(賦形剤の注入前)の段階、その他の段階で行うことが可能である。目標レベルは、特定の水平線のレベルそのものであってもよいし、特定の水平線のレベルを基準としてそれよりも一定マージンを加えたレベルとするようにしてもよい。   It is possible to make the liquid medicine dispensing device recognize the actual scale by image analysis of the container image or by displaying the container image including the scale and the user making an input for specifying the scale. When the image analysis method is employed, the level (height) is automatically determined for all or some of the plurality of horizontal lines constituting the scale on the container image. The scale can be specified at the stage before liquid medicine injection, the stage after liquid medicine injection (before injection of excipient), and other stages. You may make it identify the horizontal line immediately above it after the analysis of a liquid level. When the user input method is adopted, the coordinates (heights) of one or all of the horizontal lines constituting the scale may be designated while visually checking the scale on the container image. The designation can be performed at a stage before liquid medicine injection, a stage after liquid medicine injection (before injection of excipients), and other stages. The target level may be the level of the specific horizontal line itself, or may be a level with a certain margin added to the level of the specific horizontal line as a reference.

いずれにしても実際の投薬容器における目盛りに関する座標情報を何らかの形で水薬調剤装置に認識させ、それを利用して賦形剤の注入量を決定あるいは調整できるように構成するのが望ましい。上記の投薬容器は、望ましくは、少なくとも一種類の目盛りがその外表面上に描かれあるいは成形されたものである。複数種類の目盛りが設けられている場合、画像処理対象又は画像表示対象となる目盛りを自動的に又はマニュアルで切り出すようにしてもよい。上記の撮像手段は、例えば、静止画像又は動画像を撮影するものであり、撮像手段を投薬容器と一緒に運動させるようにしてもよいし、撮像手段を固定設置しておいて必要なタイミングで投薬容器を撮像ポジションに位置決めるようにしてもよい。   In any case, it is desirable that the coordinate information related to the scale in the actual medication container is recognized in some way by the liquid medicine dispensing device, and the injection amount of the excipient can be determined or adjusted using this. The dosing container preferably has at least one scale drawn or molded on its outer surface. When a plurality of types of scales are provided, the scales to be subjected to image processing or image display may be cut out automatically or manually. The above imaging means is, for example, for taking a still image or a moving image, and the imaging means may be moved together with the medication container, or the imaging means is fixedly installed at a necessary timing. The medication container may be positioned at the imaging position.

望ましくは、前記容器画像内の目盛りを構成する少なくとも1つの水平線についてレベルを解析する画像解析手段を含み、前記目標レベル設定手段は、前記解析された水平線のレベルに基づいて前記目標レベルを設定する。水平線と背景との間に輝度差が生じる場合、それを利用して水平線を特定可能である。水平線に太さがある場合、そのセンター位置、上辺位置、等の高さが特定される。   Preferably, the image processing device includes image analysis means for analyzing the level of at least one horizontal line constituting the scale in the container image, and the target level setting means sets the target level based on the analyzed level of the horizontal line. . When a luminance difference is generated between the horizontal line and the background, the horizontal line can be specified using the difference. When the horizontal line has a thickness, the height of the center position, the upper side position, etc. is specified.

望ましくは、前記容器画像は空の状態にある投薬容器を撮像することにより取得され、前記画像解析手段は前記容器画像内の目盛りを構成する複数の水平線についてそれぞれのレベルを解析し、前記目標レベル設定手段は、前記複数の水平線の内で、前記薬効をもった水薬の注入完了時点において予測又は検出される液面レベルよりも高い特定水平線を認識し、当該特定水平線のレベルに基づいて前記目標レベルを設定する。上記構成によれば、空の状態において個々の水平線が特定された上で、その中から、規定分注処理の完了時点での予測液面レベル又は検出液面レベルよりも高い特定水平線が認識され、それに基づいて目標レベルが設定される。液面レベルの検出は容器画像の画像解析により行える。液面レベルは、水薬総量、投薬容器の種類、等に基づいて予測できる。   Preferably, the container image is acquired by imaging a medication container in an empty state, and the image analysis means analyzes each level of a plurality of horizontal lines constituting a scale in the container image, and the target level The setting means recognizes a specific horizontal line that is higher than a liquid level predicted or detected at the completion of injection of the medicinal liquid medicine among the plurality of horizontal lines, and based on the level of the specific horizontal line, Set the target level. According to the above configuration, after each horizontal line is specified in an empty state, a specific horizontal line higher than the predicted liquid level or the detected liquid level at the time when the prescribed dispensing process is completed is recognized. Based on this, a target level is set. The liquid level can be detected by image analysis of the container image. The liquid level can be predicted based on the total amount of liquid medicine, the type of medication container, and the like.

望ましくは、前記画像解析手段は前記賦形剤の注入中において前記容器画像に基づいて各時刻の液面レベルを検出し、前記注入制御手段は、前記検出された液面レベルが前記目標レベルに一致するまで前記賦形剤の注入を行う。すなわち、フィードバック制御を行うものである。この場合、賦形剤の注入量の事前計算は基本的に不要であり、両レベルが一致した時点で注入量が特定される。   Preferably, the image analysis means detects a liquid level at each time based on the container image during the injection of the excipient, and the injection control means sets the detected liquid level to the target level. The excipient is injected until it matches. That is, feedback control is performed. In this case, pre-calculation of the injection amount of the excipient is basically unnecessary, and the injection amount is specified when both levels coincide.

望ましくは、前記画像解析手段は前記薬効をもった水薬の注入完了時点において前記容器画像に基づいて賦形剤注入前の液面レベルを検出し、前記注入制御手段は、前記賦形剤注入前の液面レベルと前記目標レベルの差から前記賦形剤の注入量を決定する。   Preferably, the image analysis means detects a liquid level before the injection of the excipient based on the container image at the completion of the injection of the liquid medicine having the medicinal effect, and the injection control means The injection amount of the excipient is determined from the difference between the previous liquid level and the target level.

望ましくは、前記容器画像内の目盛りを視認したユーザーにより、前記目盛りを構成する少なくとも1つの水平線についてレベルを入力するための入力手段を含む。液量を示す水平ガイドラインを上下に移動させて水平線に合わせるようにしてもよい。
望ましくは、前記賦形剤の注入量を表す情報を含む鑑査用画像を表示する手段を含む。
Desirably, an input means for inputting a level for at least one horizontal line constituting the scale by a user who visually recognizes the scale in the container image is included. The horizontal guideline indicating the amount of liquid may be moved up and down to match the horizontal line.
Desirably, a means for displaying an inspection image including information indicating the injection amount of the excipient is included.

本発明によれば、賦形剤の注入量(継ぎ足し量)を実際の投薬容器(原物)を基準として決定できる。あるいは、投薬容器での見掛け上の液量不足を解消できる。  According to the present invention, the injection amount (addition amount) of the excipient can be determined based on the actual dosing container (original). Alternatively, the apparent shortage of liquid volume in the medication container can be resolved.

本発明に係る水薬調剤装置の好適な実施形態を示す概念図である。It is a conceptual diagram which shows suitable embodiment of the liquid medicine dispensing apparatus which concerns on this invention. 図1に示した水薬調剤装置の機能ブロック図である。It is a functional block diagram of the liquid medicine dispensing apparatus shown in FIG. 鑑査用画像の一例を示す図である。It is a figure which shows an example of the image for inspection. 投薬ボトルの一例を示す図である。It is a figure which shows an example of a medication bottle. 投薬ボトルセットの一例を示す図である。It is a figure which shows an example of a medication bottle set. 調整量の演算を説明するための図である。It is a figure for demonstrating calculation of adjustment amount. 1ピクセル当たりの注入量の計算を説明するための図である。It is a figure for demonstrating calculation of the injection amount per pixel. 液面レベルと目標レベルとの関係を示す図である。It is a figure which shows the relationship between a liquid level and a target level. 目盛り認識方法を説明するための図である。It is a figure for demonstrating the scale recognition method. 調整分注方法を説明するための図である。It is a figure for demonstrating the adjustment dispensing method. 事前画像解析及び画像に基づくフィードバック分注制御を含む第1動作例を示すフロチャートである。It is a flowchart which shows the 1st operation example including the feedback dispensing control based on a prior image analysis and an image. マニュアル入力及び画像に基づくフィードバック分注制御を含む第2動作例を示すフロチャートである。It is a flowchart which shows the 2nd operation example including the feedback dispensing control based on a manual input and an image. 事前画像解析及び重量センサに基づくフィードバック分注制御を含む第3動作例を示すフロチャートである。It is a flowchart which shows the 3rd operation example including the feedback image dispensing control based on a prior image analysis and a weight sensor. 事前画像解析及び事前分注量設定を含む第4動作例を示すフロチャートである。It is a flowchart which shows the 4th operation example including a prior image analysis and a prior dispensing amount setting.

以下、本発明の好適な実施形態を図面に基づいて説明する。   DESCRIPTION OF EXEMPLARY EMBODIMENTS Hereinafter, preferred embodiments of the invention will be described with reference to the drawings.

図1には、本発明に係る水薬調剤装置の好適な実施形態が示されており、図1はその全体構成を示す概念図である。この水薬調剤装置は、病院の薬剤部や調剤薬局等に設置されるものであり、薬剤師による調剤を支援する装置である。   FIG. 1 shows a preferred embodiment of a liquid medicine dispensing device according to the present invention, and FIG. 1 is a conceptual diagram showing the overall configuration thereof. This liquid medicine dispensing device is installed in a pharmacy or a dispensing pharmacy in a hospital, and is a device that supports dispensing by a pharmacist.

図1において、水薬調剤装置10は暗室としての調剤室10Aを有しており、その調剤室10A内には複数の分注ユニット(注入ユニット)12,14,16が設けられている。水薬調剤装置10の下部には搬送機構18が設けられており、その搬送機構18は可動体20を水平方向に搬送する機構である。本実施形態においては、可動体20のX方向の位置及びY方向の位置を自在に設定することが可能である。可動体20は水薬が注入される投薬容器すなわち投薬ボトル22を備えている。投薬ボトル22は透明性を有する樹脂成型品であり、その外面上には下から上に並んだ複数の水平線からなる目盛りが設けられている(後に図4を用いて詳述する)。なお、投薬ボトル22のキャップは取り外されている。   In FIG. 1, the liquid medicine dispensing apparatus 10 has a dispensing chamber 10A as a dark room, and a plurality of dispensing units (injection units) 12, 14, and 16 are provided in the dispensing chamber 10A. A transport mechanism 18 is provided below the liquid medicine dispensing device 10, and the transport mechanism 18 is a mechanism that transports the movable body 20 in the horizontal direction. In the present embodiment, the position of the movable body 20 in the X direction and the position in the Y direction can be freely set. The movable body 20 includes a medication container or medication bottle 22 into which liquid medicine is injected. The prescription bottle 22 is a resin molded product having transparency, and a scale composed of a plurality of horizontal lines arranged from the bottom to the top is provided on the outer surface thereof (described in detail later with reference to FIG. 4). Note that the cap of the medication bottle 22 is removed.

水薬調剤装置10において、調剤室10Aは通路10Bを介して外界と連通しており、通路10Bの出口側が取り出しポジションP1である。符号20Aで示されるように、その取り出しポジションP1に可動体20が位置決められた状態において、投薬ボトル22Aの取り出し及びセットが行われる。それらの行為は本実施形態においてユーザーによって行われているが、もちろんそれを自動化してもよい。取り出しポジションP1の上方には、正面側を向いたタッチパネル23が設けられており、そのタッチパネル23は後に説明するように表示器及び入力器として機能する。符号24は制御部を表しており、制御部24はCPU及び動作プログラムに相当する。   In the liquid medicine dispensing apparatus 10, the dispensing chamber 10A communicates with the outside through the passage 10B, and the outlet side of the passage 10B is the take-out position P1. As indicated by reference numeral 20A, the medication bottle 22A is taken out and set in a state where the movable body 20 is positioned at the take-out position P1. These actions are performed by the user in this embodiment, but of course, it may be automated. A touch panel 23 facing the front side is provided above the take-out position P1, and the touch panel 23 functions as a display and an input device as will be described later. Reference numeral 24 represents a control unit, and the control unit 24 corresponds to a CPU and an operation program.

上述したように、調剤室10Aの上部には本実施形態において3つの分注ユニット12,14,16が設けられている。それらは互いに同一の構成を有しており、以下においては分注ユニット12を取り上げ、その構成を詳述する。   As described above, the three dispensing units 12, 14, and 16 are provided in the upper part of the dispensing chamber 10A in the present embodiment. They have the same configuration, and in the following, the dispensing unit 12 will be taken up and the configuration will be described in detail.

分注ユニット12は、回転台26を有しており、その回転台26は、符号30で示すように、図示されていない回転機構によって回転駆動されるものである。図においては、回転台26の倒立状態が示されている。回転台26には本実施形態において3つの水薬ボトル28が着脱自在に装着される。図1においては、X方向に3つの水薬ボトル28が並んでいるように描かれているが、実際には3つの水薬ボトル28はX方向に直交するY方向に配列されている。この場合において、回転台26の回転軸はX方向に平行となる。   The dispensing unit 12 has a turntable 26, and the turntable 26 is rotationally driven by a rotation mechanism (not shown) as indicated by reference numeral 30. In the figure, the inverted state of the turntable 26 is shown. In this embodiment, three liquid medicine bottles 28 are detachably mounted on the turntable 26. In FIG. 1, the three liquid medicine bottles 28 are depicted as being arranged in the X direction, but in reality, the three liquid medicine bottles 28 are arranged in the Y direction orthogonal to the X direction. In this case, the rotation axis of the turntable 26 is parallel to the X direction.

各水薬ボトル28は水薬注入用ノズル32を備えている。ノズル32は例えばストレートな形状を有し、それは例えば樹脂チューブにより構成される。ノズル32における所定の位置にバルブ34が設けられている。バルブ34を開状態にすると、倒立状態にある水薬ボトル28から水薬がノズル32内を下っていき、投薬ボトル22内に滴下する。バルブ34を閉状態とすれば、水薬の分注を停止させることができる。   Each liquid medicine bottle 28 includes a liquid medicine injection nozzle 32. The nozzle 32 has a straight shape, for example, and is constituted by a resin tube, for example. A valve 34 is provided at a predetermined position in the nozzle 32. When the valve 34 is opened, the liquid medicine falls from the liquid medicine bottle 28 in an inverted state through the nozzle 32 and drops into the medication bottle 22. If the valve 34 is closed, dispensing of liquid medicine can be stopped.

各水薬ボトル28にはバーコードラベル38が貼付されており、一方、各水薬ボトル28をセットする位置にもそれぞれバーコードラベル40が設けられている。図示されていないバーコードリーダーによってそれぞれのバーコードラベル38,40を読み取ることにより、個々の位置にどの水薬がセットされたのかを認識することが可能である。   A bar code label 38 is affixed to each liquid medicine bottle 28, while a bar code label 40 is also provided at a position where each liquid medicine bottle 28 is set. It is possible to recognize which liquid medicine is set at each position by reading each bar code label 38, 40 by a bar code reader (not shown).

ちなみに、回転台26の正立姿勢において、それぞれの水薬ボトル28がセットされ、セッティング完了後において、回転台26が180度回転し、各水薬ボトル28が倒立姿勢となる。分注対象となった水薬ボトルの下方に投薬ボトル22が位置決められ、つまり、それが有するノズルが投薬ボトルの上部開口の中心に位置するように投薬ボトルのXY座標が定められ、その状態で水薬分注が実施される。   Incidentally, each liquid medicine bottle 28 is set in the upright posture of the turntable 26, and after the setting is completed, the turntable 26 rotates 180 degrees, and each liquid medicine bottle 28 is in an inverted posture. The XY coordinate of the medication bottle is determined so that the medication bottle 22 is positioned below the liquid medication bottle to be dispensed, that is, the nozzle it has is located at the center of the top opening of the medication bottle, Liquid medicine dispensing is carried out.

回転台26を正方向及び逆方向に交互に回転させることにより、それぞれの水薬についての攪拌を行うことが可能である。ボトル交換が必要となった場合、分注ユニット12,14,16が装置の手前側に引き出され、その状態においてボトル交換が実行される。本実施形態においては、調剤室10A内に9つの水薬ボトル28をセットすることが可能であるが、それ以上又はそれ以下の個数の水薬ボトルがセットされるようにしてもよい。また9つの水薬ボトル28の中に、同じ水薬を収容した複数の水薬ボトルが含まれてもよい。   By alternately rotating the turntable 26 in the forward direction and the reverse direction, it is possible to stir each liquid medicine. When the bottle needs to be replaced, the dispensing units 12, 14, and 16 are pulled out to the front side of the apparatus, and the bottle is replaced in that state. In the present embodiment, it is possible to set nine liquid medicine bottles 28 in the dispensing chamber 10A, but more or less liquid medicine bottles may be set. The nine liquid medicine bottles 28 may include a plurality of liquid medicine bottles containing the same liquid medicine.

本実施形態においては、9個の水薬ボトルがX方向及びY方向に二次元整列しており、所望の水薬ボトルの直下に投薬ボトルが位置決められ、その状態で水薬分注が実行されているが、投薬ボトルを固定しておき、水薬ボトル列を運動させるようにしてもよい。例えば、ターンテーブル上に複数の水薬ボトルを設置しておき、ターンテーブルを回転させることにより、所望の水薬ボトルが選択されるように構成することも可能である。   In this embodiment, nine liquid medicine bottles are two-dimensionally aligned in the X direction and the Y direction, and the medication bottle is positioned immediately below the desired liquid medicine bottle, and liquid medicine dispensing is executed in this state. However, the medication bottle may be fixed and the liquid medicine bottle train may be moved. For example, a plurality of liquid medicine bottles may be installed on the turntable, and a desired liquid medicine bottle may be selected by rotating the turntable.

可動体20は、上述したように投薬ボトル22を備え、それを水平方向に搬送するためのステージを構成する。可動体20はベース42及びホルダ44を有している。ベース42上には重量センサ46が設けられ、投薬ボトル22の重量、より具体的には内容物の重量(分注量に相当)が検出されている。本実施形態では、重量センサ46の出力信号に基づいて分注停止が判断されている。   The movable body 20 includes the medication bottle 22 as described above, and constitutes a stage for transporting it in the horizontal direction. The movable body 20 has a base 42 and a holder 44. A weight sensor 46 is provided on the base 42 to detect the weight of the prescription bottle 22, more specifically, the weight of the contents (corresponding to the dispensed amount). In this embodiment, dispensing stop is determined based on the output signal of the weight sensor 46.

ホルダ44は投薬ボトル22を着脱自在に保持する機構である。投薬ボトル22の種類に応じて適切な高さにその投薬ボトル22を位置決めするために高さ方向に保持位置を調整可能な機構を採用してもよい。あるいは、投薬ボトル22の高さを自動調整する機構を設けるようにしてもよい。そのような構成によれば、対象となる水薬ボトルの直下に投薬ボトル22を位置決めた上で、それを上方に持ち上げて、投薬ボトル22の上部開口内にノズル32の先端を差し込むことが可能となる。より簡便に、投薬ボトルの種類ごとにホルダを用意してもよい。   The holder 44 is a mechanism for detachably holding the medication bottle 22. A mechanism capable of adjusting the holding position in the height direction in order to position the prescription bottle 22 at an appropriate height according to the type of the prescription bottle 22 may be adopted. Alternatively, a mechanism for automatically adjusting the height of the medication bottle 22 may be provided. According to such a configuration, it is possible to position the medication bottle 22 directly below the target liquid medicine bottle, lift it upward, and insert the tip of the nozzle 32 into the upper opening of the medication bottle 22. It becomes. More simply, a holder may be prepared for each type of medication bottle.

可動体20は、本実施形態において、カメラ50を搭載している。カメラ50は例えば二次元CCDカメラであり、投薬ボトル22を撮像し容器画像データを出力している。容器画像は静止画像であってもよいし、動画像であってもよい。分注実行中において動画像の撮像を行い、分注完了後に動画像をフリーズするか新しく静止画像を取り込むようにしてもよい。カメラ50は支持部材48を介してベース42に固定されており、より詳しくは、投薬ボトル22からその横方向に所定距離隔てた位置にカメラ50が設けられている。ベース上には光源も搭載されており、その光源は、投薬ボトル22から見てカメラ50側に設けられ、あるいは、それとは逆側に設けられる。後者の場合、シルエット像が取得される。カメラ50による撮像に当たっては、望ましくは並行投影結果が得られるように、画像データに対して画像補正が適用され、あるいは、光学系が設けられる。カメラを上下に移動させながら複数の画像を撮像し、それらをつなぎ合わせるようにしてもよい。また上下に並んだ複数の撮像素子を設けるようにしてもよい。鑑査用の画像と目盛り解析(液面解析)用の画像とを異ならせることも可能である。垂直方向に並んだ画素データを取得する一次元のカメラを利用することも可能である。   The movable body 20 is equipped with a camera 50 in this embodiment. The camera 50 is a two-dimensional CCD camera, for example, and images the prescription bottle 22 and outputs container image data. The container image may be a still image or a moving image. A moving image may be picked up during the dispensing operation, and the moving image may be frozen after the dispensing is completed, or a new still image may be captured. The camera 50 is fixed to the base 42 via a support member 48. More specifically, the camera 50 is provided at a position spaced apart from the prescription bottle 22 by a predetermined distance in the lateral direction. A light source is also mounted on the base, and the light source is provided on the camera 50 side when viewed from the prescription bottle 22 or on the opposite side. In the latter case, a silhouette image is acquired. In imaging by the camera 50, image correction is applied to the image data or an optical system is provided so that a parallel projection result is desirably obtained. A plurality of images may be taken while moving the camera up and down, and the images may be joined together. Moreover, you may make it provide the some image pick-up element located in a line up and down. It is also possible to make the inspection image different from the image for scale analysis (liquid level analysis). It is also possible to use a one-dimensional camera that acquires pixel data arranged in the vertical direction.

本実施形態においては、可動体20にカメラ50を搭載したので、分注過程を動画像として撮影することが可能である。一方、暗室10A内に撮像ポジションを設け、そこに可動体20つまり投薬ボトル22を位置決め、そこで撮像を行うようにしてもよい。その場合、各分注後に撮像が実行される。その場合、複数の固定カメラを設置して、各分注ポジションで撮影を行えるようにしてもよい。なお、図1に示される水薬調剤装置は、上述した以外にも各種のセンサを備えており、例えば投薬ボトル22にキャップが設けられているか否かを判定するセンサや、投薬ボトルの種別を判定するセンサ等を有している。   In the present embodiment, since the camera 50 is mounted on the movable body 20, the dispensing process can be taken as a moving image. On the other hand, an imaging position may be provided in the dark room 10 </ b> A, and the movable body 20, that is, the medication bottle 22 may be positioned therein, and imaging may be performed there. In that case, imaging is performed after each dispensing. In that case, a plurality of fixed cameras may be installed so that photographing can be performed at each dispensing position. The liquid medicine dispensing device shown in FIG. 1 includes various sensors other than those described above. For example, a sensor for determining whether or not a cap is provided on the prescription bottle 22 or a type of the prescription bottle. It has a sensor to judge.

図2には図1に示した水薬調剤装置の機能がブロック図として示されている。制御部24は各構成の動作制御及び画像処理を行うものである。制御部24は上述した3つの分注ユニット12,14,16を制御している。具体的には、各分注ユニット12,14,16に設けられている電磁バルブ及び回転機構等の制御を行っている。撮像機構54は上述したようにカメラ50と光源52とからなり、カメラ50の出力信号が制御部24に送られている。制御部24は光源52の制御も行っている。制御部24に対しては、上位システムからの処方箋データ等の情報が与えられる。制御部24はそのようなデータに基づいて各分注工程における分注量(すなわち分注指示量)の演算や設定等を行う。制御部24は搬送機構18を制御しており、複数の分注工程の実行に際しては、搬送機構18を制御しながらそれぞれの分注ユニット12,14,16の動作制御を行っている。タッチスパネル23は表示器56及び入力器58からなり、表示されている画面上において所定のボタンに対して指先でタッチを行うことによりユーザー入力を行うことが可能である。   FIG. 2 shows a function of the liquid medicine dispensing device shown in FIG. 1 as a block diagram. The control unit 24 performs operation control and image processing of each component. The control unit 24 controls the three dispensing units 12, 14, and 16 described above. Specifically, the electromagnetic valves and the rotation mechanisms provided in the dispensing units 12, 14, and 16 are controlled. As described above, the imaging mechanism 54 includes the camera 50 and the light source 52, and an output signal of the camera 50 is sent to the control unit 24. The control unit 24 also controls the light source 52. Information such as prescription data from the host system is given to the control unit 24. Based on such data, the control unit 24 calculates and sets a dispensing amount (that is, a dispensing instruction amount) in each dispensing step. The control unit 24 controls the transport mechanism 18, and controls the operations of the respective dispensing units 12, 14, 16 while controlling the transport mechanism 18 when performing a plurality of dispensing processes. The touch panel 23 includes a display device 56 and an input device 58, and can perform user input by touching a predetermined button with a fingertip on a displayed screen.

より詳しくは、制御部24は画像解析部60及び分注制御部62を有している。画像解析部60は、必要に応じて、分注対象となっている実際の投薬ボトルに設けられた目盛りについて高さ座標を解析する。また、必要に応じて、液面レベルを解析する。分注制御部62は、薬効を有する1又は複数の水薬についての分注を制御し、またその後において賦形剤についての分注を制御する。本実施形態においては、賦形剤の分注量が実際の投薬ボトルに設けられた目盛りを考慮して決定されており、特に目盛り上における規定レベル(特定の水平線)よりも液面が下回らない条件を満たすように賦形剤の継ぎ足し分注(多め分注)が実現されている。ここで、賦形剤は、薬効を有しないシロップ、蒸留水等である。1種類の賦形剤を利用してもよいし、複数種類の賦形剤が併用されてもよい。制御部24は、以下に説明する画像を形成する機能も有している。   More specifically, the control unit 24 includes an image analysis unit 60 and a dispensing control unit 62. The image analysis unit 60 analyzes the height coordinates of the scales provided on the actual medication bottles to be dispensed as necessary. In addition, the liquid level is analyzed as necessary. The dispensing control unit 62 controls dispensing of one or more liquid medicines having medicinal effects, and thereafter controls dispensing of excipients. In this embodiment, the dispensing amount of the excipient is determined in consideration of the scale provided on the actual medication bottle, and the liquid level is not lower than the specified level (specific horizontal line) on the scale. In order to satisfy the conditions, additional dispensing of excipients (larger dispensing) has been realized. Here, the excipient is syrup, distilled water or the like having no medicinal effect. One type of excipient may be used, or multiple types of excipients may be used in combination. The control unit 24 also has a function of forming an image described below.

図3には表示器に表示される画像が例示されている。表示画面64上には、薬剤リスト66、鑑査用画像(モニタリング画像)68、各種情報70、ボタン群72等が表示されている。薬剤リスト66は、特定の処方箋に基づいて実行される調剤において使用される1又は複数の水薬の名称を列記したものである。符号74は水薬番号を示しており、それは同時に分注順序を示している。符号76は水薬名を示しており、符号78は分注量(指示値)を示している。ここでは、1番から5番までの水薬が列記されており、符号82で示す5番目の水薬は賦形剤である。それは1番から4番までの薬効を有する水剤の分注後に液量を調整するために注入されるものである。総量80を整数値とするために賦形剤が継ぎ足される他、本実施形態においては、実際の投薬ボトルの目盛り上において、ボトル変形や成形誤差等によって、実際の液面が規定レベルより下回らないようにするために賦形剤が継ぎ足される。符号84で示す賦形剤の分注量(数値)は、賦形剤の調整量が確定あるいは実測された段階で表示される。総量80も同様である。   FIG. 3 illustrates an image displayed on the display. On the display screen 64, a medicine list 66, an inspection image (monitoring image) 68, various information 70, a button group 72, and the like are displayed. The medicine list 66 lists the names of one or more liquid medicines used in dispensing performed based on a specific prescription. The code | symbol 74 has shown the liquid medicine number, and it has shown the dispensing order simultaneously. The code | symbol 76 has shown the liquid medicine name, and the code | symbol 78 has shown dispensing amount (indication value). Here, the first to fifth liquid medicines are listed, and the fifth liquid medicine indicated by reference numeral 82 is an excipient. It is injected to adjust the amount of liquid after dispensing liquid medicines having medicinal effects from No. 1 to No. 4. In addition to adding the excipient to make the total amount 80 an integer value, in this embodiment, on the scale of the actual medication bottle, the actual liquid level does not fall below the prescribed level due to bottle deformation, molding error, etc. Excipients are added to make sure. The amount (numerical value) of the excipient indicated by reference numeral 84 is displayed when the adjustment amount of the excipient is confirmed or actually measured. The same applies to the total amount 80.

鑑査用画像68は、複数の容器画像86を水平方向に連結してなるものであって、個々の容器画像は投薬ボトルの全体画像又は部分画像である。いずれの場合にも投薬ボトルの外表面に成形された目盛りが映り込むように画像が取得され、あるいは画像の加工が行われる。ここで、符号86Aは分注前の空の状態にある投薬ボトルを撮像することによって得られた容器画像を示しており、符号86Bは最後の賦形剤分注後の投薬ボトルを示す容器画像を示している。符号88で示す数字は分注工程を示しており、ここで0は分注前の状態を示している。個々の投薬画像86は、最初の容器画像86Aを除き、動画像として表示可能であり、つまり分注動作の過程を動画として観察可能であり、分注完了後において動画像がフリーズされ、あるいはその後においては別途取得された静止画像が表示される。単一の容器画像が動画像として表示されてもよい。   The inspection image 68 is formed by connecting a plurality of container images 86 in the horizontal direction, and each container image is an entire image or a partial image of a medication bottle. In either case, an image is acquired or the image is processed so that the scale formed on the outer surface of the medication bottle is reflected. Here, reference numeral 86A shows a container image obtained by imaging an empty prescription bottle before dispensing, and reference numeral 86B shows a container image showing the prescription bottle after the last excipient dispensing. Is shown. Reference numeral 88 indicates a dispensing process, where 0 indicates a state before dispensing. The individual medication images 86 can be displayed as moving images except for the first container image 86A, that is, the process of the dispensing operation can be observed as a moving image, and the moving image is frozen after the dispensing is completed, or thereafter The still image acquired separately is displayed. A single container image may be displayed as a moving image.

鑑査用画像68によれば、分注進行中においてあるいは分注完了後において、個々の分注工程が的確に実行されたことを液面レベルの推移(又は位置)として容易に確認することができる。例えば、分注量に不足が生じた場合、それがどの段階でどの程度生じたのかを直ちに特定可能である。また、異物や泡立ちが生じた場合、それがどの段階でどの程度生じたのかを直ちに特定可能である。   According to the inspection image 68, it can be easily confirmed as a transition (or position) of the liquid level that the individual dispensing process has been accurately executed during the dispensing progress or after the dispensing is completed. . For example, when a shortage occurs in the dispensing amount, it is possible to immediately specify how much and how much it has occurred. In addition, when foreign matter or bubbling occurs, it is possible to immediately specify how much and how much it has occurred.

水平ライン列90は、図示の例において、等間隔で上下方向に並んだ複数の水平ライン90aからなり、それらは容器画像内に映り込んでいる目盛り(実目盛り)を構成する複数の水平線上に描かれている。目盛りが目視上、あまり明瞭に表現されていないような場合でも、それらの水平ラインの表示によって個々の段階における液量を明確に認識することができる。符号92で示すように、各水平ラインに付随して液量が数値表示されている。符号94は各分注工程での分注量を示している。それは重量センサに基づく実績値であるのが望ましいが、指示値であってもよい。   In the illustrated example, the horizontal line row 90 is composed of a plurality of horizontal lines 90a arranged in the vertical direction at equal intervals, and these are arranged on a plurality of horizontal lines constituting a scale (actual scale) reflected in the container image. It is drawn. Even when the scale is not clearly expressed visually, the liquid amount at each stage can be clearly recognized by displaying those horizontal lines. As indicated by reference numeral 92, the amount of liquid is numerically displayed along with each horizontal line. Reference numeral 94 indicates a dispensing amount in each dispensing process. It is desirable that the actual value is based on a weight sensor, but it may be an indicated value.

後に説明するように、実際の目盛り(複数の水平線)が、画像解析によって自動的に特定されるようにしてもよいし、画像を観察したユーザーにより特定されるようにしてもよい。後者の場合、例えば、鑑査用画像68上において、個々の水平線を目視して、それに各水平ラインの上下方向の位置を合わせることにより、個々の水平線レベルの登録が行われるようにしてもよい。   As will be described later, an actual scale (a plurality of horizontal lines) may be automatically specified by image analysis, or may be specified by a user who has observed the image. In the latter case, for example, each horizontal line level may be registered by visually observing each horizontal line on the inspection image 68 and aligning the horizontal line with the vertical position of each horizontal line.

図4には、投薬ボトルの一例が示されている。投薬ボトル98には複数の目盛り100,101,102が設けられている。それらは投薬ボトル98の外表面上における周囲方向に並んでおり、それぞれの単位は異なっている。例えばml単位の目盛りや日数単位の目盛りが設けられている。したがって、鑑査用の画像を取得するのに際しては、処方箋に対応したあるいは分注条件に対応した目盛りを選択する必要があり、またその目盛りを含む画像部分が切り出される必要がある。本実施形態においては、水薬調剤装置においてボトルの種別が特定され、且つ処方箋データにしたがって投薬単位が認識されると、容器画像内において目盛りを含む切り出し領域が特定されており、それに対して画像解析が実行されている。この場合において、目盛りの解析対象となる画像部分と、鑑査用画像として表示する容器画像と、液面レベルを解析するための画像と、をそれぞれ別のものにするようにしてもよい。   FIG. 4 shows an example of a medication bottle. The prescription bottle 98 is provided with a plurality of scales 100, 101, 102. They are arranged in a circumferential direction on the outer surface of the medication bottle 98, each unit being different. For example, a scale in ml or a scale in days is provided. Therefore, when acquiring an inspection image, it is necessary to select a scale corresponding to a prescription or a dispensing condition, and an image portion including the scale needs to be cut out. In the present embodiment, when the bottle type is specified in the liquid medicine dispensing device and the dosage unit is recognized according to the prescription data, the cutout area including the scale is specified in the container image, and the image An analysis is being performed. In this case, the image portion to be analyzed for the scale, the container image displayed as the inspection image, and the image for analyzing the liquid level may be made different from each other.

図5には投薬ボトルセットの例が示されている。投薬ボトル98の上部にはキャップ103が設けられており、それを包み込むように計量カップ104が取付けられている。計量カップ104は、個々の投薬時において患者自身が計量を行うためのものである。投薬ボトル98を水薬調剤装置にセットする場合に、計量カップ104は取り外され、またキャップ103も取り外される。   FIG. 5 shows an example of a medication bottle set. A cap 103 is provided on the top of the prescription bottle 98, and a measuring cup 104 is attached so as to enclose it. The measuring cup 104 is for the patient himself to measure at the time of each medication. When the medication bottle 98 is set in the liquid medicine dispensing device, the measuring cup 104 is removed, and the cap 103 is also removed.

なお、目盛りは複数の水平線からなり、それらは上下方向に一定の間隔をもって配列されている。各水平線は凹部又は凸部として構成され、あるいは印刷によって描かれたものである。粗面加工等によって水平線が表示されることもある。   The scale consists of a plurality of horizontal lines, which are arranged at regular intervals in the vertical direction. Each horizontal line is configured as a concave or convex portion, or is drawn by printing. A horizontal line may be displayed by roughing or the like.

図6には、目標レベルと液面レベルとに基づく調整量の設定方法が示されている。(A)は投薬ボトルイメージを含む容器画像106を示している。投薬ボトルは上述したように複数の目盛りを有しており、参照する目盛り100に対して関心領域108が設定されている。目盛り100は上下方向に並んだ複数の水平線により構成され、関心領域108は上下方向に少なくともそれらの全部をカバーするように設定される。左右方向については、個々の水平線の全部を包含するように関心領域108を設定してもよいし、そうでなくてもよい。   FIG. 6 shows an adjustment amount setting method based on the target level and the liquid level. (A) has shown the container image 106 containing a medication bottle image. The medication bottle has a plurality of scales as described above, and the region of interest 108 is set for the scale 100 to be referred to. The scale 100 is composed of a plurality of horizontal lines arranged in the vertical direction, and the region of interest 108 is set to cover at least all of them in the vertical direction. Regarding the left-right direction, the region of interest 108 may or may not be set so as to encompass all of the individual horizontal lines.

(B)には輝度分布が示されている。すなわち関心領域108において水平方向に輝度値が積算され、それがI軸上に表されている。H軸は高さ軸である。輝度分布110においては、個々の水平線に対応した位置に輝度値の変化すなわち落ち込みが生じており、ここで符号102aは1つの水平線に対応する1つの輝度変化を示している。輝度分布110を所定の閾値c1と比較することにより、個々の水平線に♯1〜♯6対応する輝度変化位置を特定でき、これにより個々の水平線♯1〜♯6の高さすなわちレベルを自動認識することが可能となる。図6においては、空の状態にある投薬ボトルが撮像され、それにより得られた容器画像106上において輝度分布110が取得されている。これにより目盛り100を構成する全ての水平線♯1〜♯6についてその高さ座標を取得することが可能である。もちろん、全ての水平線ではなく特定が必要ない1又は複数の水平線だけを特定するようにしてもよい。なお、輝度値の落ち込み部分の高さ方向の幅が大きいような場合あるいはその波形がなまっているような場合にはピーク値あるいは中心点を特定する処理を適用すればよい。あるいは輝度値の変化を検出し、その立ち下がりから立ち上がりまでの範囲を特定することにより、水平線の中心座標等を演算するようにしてもよい。   (B) shows a luminance distribution. That is, the luminance values are accumulated in the horizontal direction in the region of interest 108 and are represented on the I axis. The H axis is the height axis. In the luminance distribution 110, a change in luminance value, that is, a drop occurs at a position corresponding to each horizontal line. Here, reference numeral 102a indicates one luminance change corresponding to one horizontal line. By comparing the luminance distribution 110 with a predetermined threshold c1, the luminance change positions corresponding to # 1 to # 6 can be specified for the individual horizontal lines, thereby automatically recognizing the heights or levels of the individual horizontal lines # 1 to # 6. It becomes possible to do. In FIG. 6, the medication bottle in an empty state is imaged, and the luminance distribution 110 is acquired on the container image 106 obtained thereby. As a result, the height coordinates of all the horizontal lines # 1 to # 6 constituting the scale 100 can be acquired. Of course, not all horizontal lines but only one or a plurality of horizontal lines that need not be specified may be specified. In addition, when the width in the height direction of the portion where the luminance value falls is large, or when the waveform is distorted, processing for specifying the peak value or the center point may be applied. Alternatively, the center coordinate of the horizontal line may be calculated by detecting a change in luminance value and specifying a range from the fall to the rise.

一方、(C)には、薬効を有する1又は複数の水薬の分注処理を完了した後における容器画像114が示されている。すなわち容器画像114は賦形剤分注前の投薬ボトルを示している。これに対して例えば符号116で示すような関心領域が設定され、その関心領域116内における輝度分布が取得される。それが(D)に示されている。輝度分布118は液面レベルに相当する位置において急峻な変化120を有しており、閾値c2を用いてその変化位置すなわち液面レベルを特定することが可能である。   On the other hand, (C) shows a container image 114 after completing the dispensing process of one or more liquid medicines having medicinal effects. That is, the container image 114 shows the medication bottle before the excipient dispensing. On the other hand, for example, a region of interest as indicated by reference numeral 116 is set, and a luminance distribution in the region of interest 116 is acquired. This is shown in (D). The luminance distribution 118 has a steep change 120 at a position corresponding to the liquid level, and the change position, that is, the liquid level can be specified using the threshold c2.

図6に示す例では、関心領域116が設定され、水平方向に輝度値が積算されていたが、容器画像全体を解析対象とするようにしてもよいし、一次元のウィンドウを設定して、その輝度分布を得るようにしてもよい。液面をより特定し易いようにコントラスト像を取得するようにしてもよい。   In the example shown in FIG. 6, the region of interest 116 is set and the luminance value is accumulated in the horizontal direction. However, the entire container image may be set as an analysis target, or a one-dimensional window is set, The luminance distribution may be obtained. You may make it acquire a contrast image so that a liquid level may be specified more easily.

以上の画像解析により(E)に示す液面レベルh2が特定される。本実施形態においては、その液面レベルh2の直上にある水平線レベルh1が特定される。すなわち液面レベルh2から見て上方に最も近い位置にある水平線のレベルが特定される。もちろん、その場合において液面レベルh2から上方に2番目あるいは3番目といった水平線のレベルが特定されるようにしてもよい。   The liquid level h2 shown in (E) is specified by the above image analysis. In the present embodiment, the horizontal line level h1 immediately above the liquid level h2 is specified. That is, the level of the horizontal line closest to the upper side as viewed from the liquid level h2 is specified. Of course, in that case, the level of the horizontal line such as the second or third level may be specified upward from the liquid level h2.

図6に示す例において特定の水平線レベルh1が目標レベルと設定されており、その目標レベルh1と現在の液面レベルh2との差Δhが調整量121として決定される。すなわち、そのようなΔh分の賦形剤が継ぎ足されるように賦形剤の分注量として調整量121が設定される。そのような賦形剤の調整分注処理が実行されると、液面レベルがΔh分だけ上方に引き上げられるので、結果として特定の水平線に実際の液面レベルを一致させることが可能となる。   In the example shown in FIG. 6, a specific horizontal line level h <b> 1 is set as a target level, and a difference Δh between the target level h <b> 1 and the current liquid level h <b> 2 is determined as the adjustment amount 121. That is, the adjustment amount 121 is set as the dispensing amount of the excipient so that the excipient for such Δh is added. When the adjustment dispensing process of such an excipient is executed, the liquid level is raised upward by Δh, and as a result, the actual liquid level can be matched with a specific horizontal line.

以上のような自動調整を実行することにより、例えば目標レベルよりも液面レベルが何らかの理由によって下がってしまっているような場合に、液面レベルを目標レベルに合わせることができるので、見掛け上の液量不足という問題を解消することが可能である。あるいは賦形剤の分注量を決めずに、以上のような手法を利用して事後的に最適な分注量を設定することが可能である。上記手法においては、目盛りを構成する個々の水平線の座標が実測され、また液面レベルが実測されており、そのように計測された液面レベルから実際の目標レベルを定めることが可能であるので、個々の投薬ボトルにおいて生じる成形誤差等にも対処できるという利点が得られる。すなわち本実施形態においては投薬ボトルごとにそれに最適な賦形剤分注量を設定できるという利点を得られる。   By performing the automatic adjustment as described above, for example, when the liquid level is lower than the target level for some reason, the liquid level can be adjusted to the target level. It is possible to solve the problem of insufficient liquid volume. Alternatively, it is possible to set an optimal dispensing amount afterwards using the above-described method without determining the dispensing amount of the excipient. In the above method, the coordinates of the individual horizontal lines constituting the scale are actually measured, and the liquid level is measured, and the actual target level can be determined from the measured liquid level. The advantage of being able to deal with molding errors and the like occurring in individual medication bottles is obtained. That is, in this embodiment, the advantage that the optimal amount of excipient can be set for each medication bottle can be obtained.

ちなみに、表示画面上において高さ方向のピクセルに相当する分注量を図7に示すような手法により特定することが可能である。例えば符号200は0mLのレベルを示しており、符号202は20mLのレベルを示している。それらの間におけるピクセル数が例えば40個であれば、符号204で示すように20mLを40ピクセルで割ることにより、1ピクセル当たりの液量すなわち分注量を特定することが可能である。もちろん、投薬ボトルの水平断面形状がその高さ方向に変化している場合もあり、そのような場合にはそのような形状変化を考慮して個々のピクセルごとにそれに対応する液量を求めるようにすればよい。   Incidentally, it is possible to specify a dispensing amount corresponding to a pixel in the height direction on the display screen by a method as shown in FIG. For example, reference numeral 200 indicates a level of 0 mL, and reference numeral 202 indicates a level of 20 mL. If the number of pixels between them is, for example, 40, it is possible to specify the amount of liquid, that is, the amount dispensed per pixel, by dividing 20 mL by 40 pixels as indicated by reference numeral 204. Of course, the horizontal cross-sectional shape of the medication bottle may change in the height direction. In such a case, taking into account such a change in shape, the amount of liquid corresponding to each pixel should be determined. You can do it.

図8には、マージンを加えた目標レベルの設定が示されている。上述したように、液面124の特定により規定分注後の液面レベルh2が特定され、それを基準として特定の水平線126のレベルh1が特定される。図示される例においては、そのレベルh1に対して所定のマージンαが加えられ、それを含んだΔhを現在の液面レベルh2に加えることにより目標レベルh3が決定されている。このような手法によれば、目標とする水平線126よりも若干上のレベルに目標レベルh3を設定しておけるので、投薬ボトルの変形によって液面レベルが目標とする水平線126よりも見掛け上、若干下がったように見えてしまう事態を解消又は軽減することができる。一般には、常にこのようなマージンを加えて特定の水平線よりも液面レベルが上方になるように調整量を定めるのが望ましい。そのような構成によれば患者に対して常に安心感を与えることが可能となる。   FIG. 8 shows the setting of the target level with a margin added. As described above, the liquid level h2 after the specified dispensing is specified by specifying the liquid level 124, and the level h1 of the specific horizontal line 126 is specified based on that. In the illustrated example, a predetermined margin α is added to the level h1, and Δh including the margin α is added to the current liquid level h2, and the target level h3 is determined. According to such a method, the target level h3 can be set at a level slightly above the target horizontal line 126, so that the liquid level is apparently slightly higher than the target horizontal line 126 due to deformation of the medication bottle. The situation of appearing to be lowered can be eliminated or reduced. In general, it is desirable that the adjustment amount be determined so that the liquid level is always higher than a specific horizontal line by always adding such a margin. According to such a configuration, it is possible to always give the patient a sense of security.

図9には、幾つかの目盛り認識方法が整理されている。また図10においては幾つかの調整分注方法が整理されている。まず図9においては、目盛り認識方法としてA1〜A4までの4つの類型が示されている。それらは、大別して、分注前の認識方法と、規定分注後すなわち薬効をもった薬剤の分注後における認識方法と、に分けられる。類型A1においては、分注開始前において画像解析によって個々の水平線のレベルが解析され、その上で、薬効をもった薬剤の分注すなわち規定分注が行われた後において液面レベルから特定の水平線を認識することにより結果として目標レベルが判定されている。これに関しては図11、図13、図14を用いて説明する。   In FIG. 9, several scale recognition methods are arranged. In FIG. 10, several adjustment dispensing methods are arranged. First, in FIG. 9, four types A1 to A4 are shown as the scale recognition methods. They are roughly classified into a recognition method before dispensing and a recognition method after prescribed dispensing, that is, after dispensing a medicinal drug. In type A1, the level of each horizontal line is analyzed by image analysis before the start of dispensing, and after that, after the dispensing of a medicinal drug, that is, the prescribed dispensing is performed, a specific level is determined from the liquid level. As a result, the target level is determined by recognizing the horizontal line. This will be described with reference to FIGS. 11, 13, and 14. FIG.

類型A2においては、分注前において目視によって個々の水平線のレベルが登録されており、その上で、規定分注後において目標レベルが上記同様に自動判定される。これに関しては後に図12を用いて説明する。類型A3においては、規定分注後において画像解析により液面レベル直上の水平線が特定され、それに基づいて自動的に目標レベルが判定される。類型A4においては、規定分注後において容器画像の目視により目標レベルがユーザーにより登録される。例えば画面上において特定の水平線あるいは特定のレベルを指定することにより、その座標が目標レベルとして認識される。規定分注後に容器画像が表示されるため、当該画像上において特定のレベルを指し示すことにより簡便に賦形剤の継ぎ足し分注を実現することが可能である。   In the type A2, the level of each horizontal line is registered by visual observation before dispensing, and then the target level is automatically determined in the same manner as described above after the prescribed dispensing. This will be described later with reference to FIG. In type A3, a horizontal line immediately above the liquid level is specified by image analysis after prescribed dispensing, and the target level is automatically determined based on the horizontal line. In type A4, the target level is registered by the user by visual inspection of the container image after the prescribed dispensing. For example, by designating a specific horizontal line or a specific level on the screen, the coordinates are recognized as the target level. Since the container image is displayed after the prescribed dispensing, it is possible to easily add and dispense excipients by indicating a specific level on the image.

図10に示す調整分注方法は3つの類型に区分される。類型B1においては、目標レベルに対する予測液面レベルの差から調整量が事前に計算され、その調整量分の調整分注が実行される。この場合においては例えば重量センサの出力値に基づいて調整量分の分注が行われた否かが判定され、すなわち重量センサの出力に基づいてフィードバック制御が実行される。これに関しては後に図14を用いて説明する。   The adjustment dispensing method shown in FIG. 10 is divided into three types. In the type B1, the adjustment amount is calculated in advance from the difference between the predicted liquid level and the target level, and adjustment dispensing for the adjustment amount is executed. In this case, for example, it is determined whether or not dispensing for the adjustment amount has been performed based on the output value of the weight sensor, that is, feedback control is executed based on the output of the weight sensor. This will be described later with reference to FIG.

類型B2においては、目標レベルに対する検出液面レベルの差から調整量が事前に実測され、その調整量分の調整分注が実行される。検出液面レベルを特定するために静止画像が参照される。一方、適量を分注するために重量センサの出力信号が参照され、すなわちそのような信号に基づいてフィードバック制御が実行される。これに対しては後に図13を用いて説明する。類型B3においては、目標レベルに対して検出液面レベルを一致させるフィードバック分注制御が実行される。すなわち賦形剤の分注工程が動画像として観測され、各時刻において液面レベルをリアルタイム計測することにより、目標レベルに液面レベルが一致した時点をもって賦形剤の分注を終了されるものである。これに関しては後に図11及び図12を用いて説明する。   In the type B2, the adjustment amount is actually measured in advance from the difference in the detected liquid level with respect to the target level, and adjustment dispensing for the adjustment amount is executed. The still image is referred to specify the detected liquid level. On the other hand, in order to dispense an appropriate amount, the output signal of the weight sensor is referred to, that is, feedback control is executed based on such a signal. This will be described later with reference to FIG. In the type B3, feedback dispensing control for matching the detected liquid level with the target level is executed. In other words, the excipient dispensing process is observed as a moving image, and the dispensing of the excipient is completed when the liquid level matches the target level by measuring the liquid level at each time in real time. It is. This will be described later with reference to FIGS.

図11には第1動作例がフローチャートとして示されている。S101においては、水薬の分注に先立って、空の投薬ボトルが撮像され、これによって静止画像としての容器画像が取得される。S102においては、容器画像に対する画像解析が実行され、投薬ボトルに付されている特定の目盛りについてそれを構成する個々の水平線のレベルが自動的に計測される。   FIG. 11 shows a first operation example as a flowchart. In S101, an empty medication bottle is imaged prior to the dispensing of the liquid medicine, thereby obtaining a container image as a still image. In S102, image analysis is performed on the container image, and the level of individual horizontal lines constituting the specific scale attached to the medication bottle is automatically measured.

S103においては、図3に示したような画像表示が実行される。この場合において、鑑査用画像は各分注の実行に伴って成長していくことになる。S104においては、1又は複数の水薬についての分注処理、すなわち規定分注処理が実行される。この場合においては、個々の分注過程が動画像として表示されるのが望ましい。また、個々の分注工程の完了後において、動画像がフリーズされ、静止画像として表示されるのが望ましい。   In S103, image display as shown in FIG. 3 is executed. In this case, the inspection image grows with the execution of each dispensing. In S104, a dispensing process for one or a plurality of liquid medicines, that is, a prescribed dispensing process is executed. In this case, it is desirable that each dispensing process is displayed as a moving image. In addition, it is desirable that the moving image is frozen and displayed as a still image after completion of each dispensing process.

S105においては、規定分注後における容器画像が解析される。すなわち賦形剤の分注前の状態における投薬ボトルの様子が撮像され、その画像解析によって液面レベルが実測されることになる。S106においては、液面レベルの直上にある水平線のレベルとして目標レベルが特定される。その場合においては、直上の水平線レベルにマージンを加えたレベルとして目標レベルを定めることも可能である。また液面レベルから見て2つあるいは3つ上の水平線レベルを目標レベルとして定めることも可能である。   In S105, the container image after the prescribed dispensing is analyzed. That is, the state of the medication bottle in a state before dispensing of the excipient is imaged, and the liquid level is actually measured by the image analysis. In S106, the target level is specified as the level of the horizontal line immediately above the liquid level. In that case, the target level can be determined as a level obtained by adding a margin to the level of the horizontal line immediately above. It is also possible to determine two or three horizontal line levels as a target level when viewed from the liquid level.

S107においては、調整分注条件を満たすか否かが判断される。具体的には、液面レベルと目標レベルあるいは特定水平線との間のレベル差が一定値以内である場合、あるいは、液面レベルの上方に水平線が存在せずにS106においてエラーが発生したような場合、調整分注条件を満たさないことが判断される。逆に言えば、それらのような特定の例外的事象に該当しなければ調整分注条件を満たすと判断される。調整分注条件を満たすと判断された場合、処理がS107からS108へ移行し、そうでない場合には処理がS107からS113へ移行する。   In S107, it is determined whether or not the adjustment dispensing condition is satisfied. Specifically, when the level difference between the liquid level and the target level or the specific horizontal line is within a certain value, or there is no horizontal line above the liquid level, an error has occurred in S106. In this case, it is determined that the adjusted dispensing condition is not satisfied. In other words, it is determined that the adjusted dispensing condition is satisfied unless a specific exceptional event such as those described above is satisfied. If it is determined that the adjusted dispensing condition is satisfied, the process proceeds from S107 to S108, and if not, the process proceeds from S107 to S113.

S108においては、投薬ボトルが賦形剤分注ポジションに位置決められる。その上で、S109において、賦形剤の分注が開始される。すなわちバルブが開状態とされる。それと共に投薬ボトルに対する動画像の撮影及び液面レベルの解析が開始される。S110において、液面レベルが目標レベルに到達したか否かが判断され、到達している場合にはS111が実行される。   In S108, the medication bottle is positioned at the excipient dispensing position. Then, in S109, the dispensing of the excipient is started. That is, the valve is opened. At the same time, shooting of a moving image for the medication bottle and analysis of the liquid level are started. In S110, it is determined whether or not the liquid level has reached the target level, and if it has reached, S111 is executed.

S111においては、賦形剤の分注が停止され、これと共に動画像の解析すなわち液面レベルの解析も終了する。賦形剤の分注が完了した時点で鑑査用画像として静止画像が表示される。S112においては、賦形剤の分注量が計測され、また必要に応じてその分注量が表示され、また記録される。第1動作例においては、分注量のフィードバック制御が実行されており、すなわち賦形剤の分注の終了時点をもって賦形剤の分注量が確定することになるため、その時の液面レベル差あるいは重量センサの出力値から賦形剤の分注量が演算される。S113においては、投薬ボトルが取り出しポジションへ搬送される。そしてS114においては、鑑査画像を観察したユーザーにおいて確認の旨が入力される。これによって鑑査画像の表示が終了する。   In S111, the dispensing of the excipient is stopped, and at the same time, the analysis of the moving image, that is, the analysis of the liquid level is ended. When dispensing of the excipient is completed, a still image is displayed as an inspection image. In S112, the amount of excipient dispensed is measured, and the amount dispensed is displayed and recorded as necessary. In the first operation example, the dispensing amount feedback control is executed, that is, since the dispensing amount of the excipient is determined at the end of the dispensing of the excipient, the liquid level at that time The dispensed amount of the excipient is calculated from the difference or the output value of the weight sensor. In S113, the medication bottle is conveyed to the take-out position. In S114, the user who has observed the inspection image inputs confirmation. This ends the display of the inspection image.

上記の第1動作例においては、事前に目盛りを構成する各水平線の高さ座標が特定され、それに基づいて目標レベルが定められた上で、フィードバック制御により実際の液面レベルが目標レベルに一致するまで賦形剤の分注が実行されている。ちなみに、目標レベルの設定にあたっては、上述したようにマージンを加えるようにしてもよい。空の状態後に変形により水平線のレベルに若干の変動が生じるような場合には改めて水平線の解析を行うようにしてもよい。   In the first operation example described above, the height coordinate of each horizontal line constituting the scale is specified in advance, the target level is determined based on the coordinate, and the actual liquid level matches the target level by feedback control. Dispensing of excipients is carried out until Incidentally, in setting the target level, a margin may be added as described above. If the horizontal line level slightly changes due to deformation after the empty state, the horizontal line may be analyzed again.

図12には第2の動作例がフローチャートとして示されている。なお、図1に示した工程と同様の工程には同一のステップ番号を付すことにする。これは図13及び図14においても同様である。   FIG. 12 shows a second operation example as a flowchart. Note that the same step numbers are assigned to the same steps as those shown in FIG. The same applies to FIGS. 13 and 14.

図12において、S101では、空の投薬ボトルが撮影され、これによって静止画像が取得される。S202においては、鑑査画像の表示が開始される。この場合において鑑査画像には水平ライン列が含まれる。   In FIG. 12, in S101, an empty medication bottle is photographed, and a still image is acquired thereby. In S202, display of the inspection image is started. In this case, the inspection image includes a horizontal line row.

S203においては、表示された容器画像における目盛りを構成する個々の水平線と水平ライン列を構成する個々の水平ラインとが一致しているか否かが判断され、一致していないものがあれば、S204において、水平ラインを上下に移動させることにより、それを対応する水平線に合わせる入力が実行される。このような入力により、実際の目盛りにおける個々の水平線のレベルを装置に認識させることが可能となる。   In S203, it is determined whether or not the individual horizontal lines constituting the scale in the displayed container image and the individual horizontal lines constituting the horizontal line row match. In FIG. 5, by moving the horizontal line up and down, an input for matching it with the corresponding horizontal line is executed. Such an input allows the apparatus to recognize the level of each horizontal line on the actual scale.

S104においては、規定分注処理が実行される。S105においては規定分注後の最後の容器画像に対する画像解析が実行され、これによって液面レベルが計測される。S106においては、特定された液面レベルから目標レベルが特定される。この場合においては、上述のように登録された複数の水平線レベルの内から目標とする水平線が特定され、そのレベルが目標レベルとされる。もちろん、マージンが加えられるようにしてもよい。   In S104, the prescribed dispensing process is executed. In S105, an image analysis is performed on the last container image after the prescribed dispensing, whereby the liquid level is measured. In S106, the target level is specified from the specified liquid level. In this case, a target horizontal line is specified from the plurality of horizontal line levels registered as described above, and that level is set as the target level. Of course, a margin may be added.

S107においては調整分注条件を満たすか否かが判断され、それを満たす場合にはS108以降の各工程が実行され、これを満たさない場合にはS113以降の各工程が実行される。S108以降の各工程については図11を用いて既に説明したため、ここでの説明は省略する。   In S107, it is determined whether or not the adjustment dispensing condition is satisfied. If the condition is satisfied, each process after S108 is executed. If this condition is not satisfied, each process after S113 is executed. Since each step after S108 has already been described with reference to FIG. 11, description thereof is omitted here.

上記の第2動作例においては、ユーザーの目視による水平線のレベル登録が行われることになるため、画像解析によって個々の水平線のレベルを特定しなくても簡便に必要な情報を得ることが可能となる。その上で、自動的に目標レベルを特定して、フィードバック制御の下、目標レベルに液面レベルを合わせることができる。   In the second operation example described above, since the level of the horizontal line is visually confirmed by the user, it is possible to easily obtain necessary information without specifying the level of each horizontal line by image analysis. Become. In addition, the target level can be automatically specified, and the liquid level can be adjusted to the target level under feedback control.

図13には、第3動作例がフローチャートとして示されている。   FIG. 13 shows a third operation example as a flowchart.

S101では空の投薬ボトルが撮像され、これによって静止画像が取得される。S102においては静止画像の画像解析が実行され、これによって目盛りを構成する各水平線の高さ座標が解析される。S103においては鑑査画像の表示が開始され、S104においては、規定分注処理が実行される。S105においては規定分注後の容器画像に対する画像解析が実行され、これによってその時点での液面レベルが計測されることになる。S106では液面レベルに基づいて目標レベルが特定される。S107においては調整分注条件を満たすか否かが判断される。   In S101, an empty medication bottle is imaged, and a still image is acquired. In S102, image analysis of a still image is executed, and thereby the height coordinate of each horizontal line constituting the scale is analyzed. In S103, display of the inspection image is started, and in S104, the prescribed dispensing process is executed. In S105, image analysis is performed on the container image after the prescribed dispensing, whereby the liquid level at that time is measured. In S106, the target level is specified based on the liquid level. In S107, it is determined whether or not the adjustment dispensing condition is satisfied.

S108においては賦形剤分注ポジションに投薬ボトルが位置決められる。S301においては、賦形剤分注量が演算される。すなわち、既に目標レベルが特定され、また現在の液面レベルも特定されているため、それらのレベル差から賦形剤の分注量すなわち調整量を演算することが可能である。S302において賦形剤の分注が開始され、S303においてはリアルタイムで賦形剤の分注量が観測され、それが目標量すなわち目標レベルに到達したか否かが判断されている。その場合においては重量センサの出力値が参照されている。   In S108, the medication bottle is positioned at the excipient dispensing position. In S301, the amount of excipient dispensed is calculated. That is, since the target level has already been specified and the current liquid level has also been specified, it is possible to calculate the dispensed amount of the excipient, that is, the adjustment amount from the level difference. In S302, the dispensing of the excipient is started, and in S303, the quantity of the excipient dispensed is observed in real time, and it is determined whether or not it has reached the target quantity, that is, the target level. In that case, the output value of the weight sensor is referred to.

分注量が目標量に到達した場合、すなわち液面レベルが目標レベルに到達したとみなされた場合、S304において賦形剤分注が停止され、更にその時点でのの静止画像が取得される。S112以降の各工程については既に説明した通りである。   When the dispensing amount reaches the target amount, that is, when the liquid level is considered to have reached the target level, the excipient dispensing is stopped in S304, and a still image at that time is acquired. . Each process after S112 is as already described.

上述した第2動作例によれば、動画像の撮像を行わなくてもフィードバック制御により最適な分注量を決定できるという利点が得られる。すなわち重量センサの出力値に基づいて目標量に分注量が到達したか否かを判断することにより、結果として目標レベルに対して液面レベルを合わせることが可能となる。   According to the second operation example described above, there is an advantage that an optimum dispensing amount can be determined by feedback control without capturing a moving image. That is, by determining whether or not the dispensing amount has reached the target amount based on the output value of the weight sensor, the liquid level can be adjusted to the target level as a result.

図14には第4動作例がフローチャートとして示されている。   FIG. 14 shows a fourth operation example as a flowchart.

S101においては空の投薬ボトルが撮影され、これにより静止画像が取得される。S102においては、静止画像の解析により、各水平線の高さ座標が計測される。S401においては個々の水薬の分注量を加算することにより、予測液面レベルを特定した上で、その直上の水平線のレベルとして目標レベルが設定される。その場合においてマージンが加えられるようにしてもよい。   In S101, an empty medication bottle is photographed, whereby a still image is acquired. In S102, the height coordinate of each horizontal line is measured by analyzing a still image. In S401, the target level is set as the level of the horizontal line immediately after the predicted liquid level is specified by adding the dispensing amounts of the individual liquid medicines. In that case, a margin may be added.

S107においては調整分注条件を満たすか否かが判断され、満たした場合にはS402において、賦形剤分注量として、規定量、すなわち、小数値を解消して整数値に合わせる量あるいは日数単位に合わせる量に対して付加量が加えられ、それが分注量とされる。つまり、本来的な賦形剤の分注量すなわち規定量に見掛け上の液量不足を解消するための付加量が加えられて、それらの総量が分注量とされる。一方、S107においては調整分注量条件を満たさないと判断された場合、S403において規定量だけが分注量として設定される。   In S107, it is determined whether or not the adjusted dispensing condition is satisfied. If satisfied, in S402, as the excipient dispensing amount, the prescribed amount, that is, the amount to be adjusted to the integer value by eliminating the decimal value or the number of days An additional amount is added to the amount to match the unit, and this is used as a dispensing amount. That is, an additional amount for eliminating the apparent shortage of the liquid amount is added to the original dispensing amount of the excipient, that is, the prescribed amount, and the total amount is used as the dispensing amount. On the other hand, when it is determined in S107 that the adjusted dispensing amount condition is not satisfied, only the prescribed amount is set as the dispensing amount in S403.

S404においては、鑑査画像の表示が開始される。その場合において、付加量が加えられた場合には、規定量と付加量が個別に表示される。これによってユーザーにおいて継ぎ足し量と正規量とがどの程度であるかのを区別して認識することが可能となる。S405においては分注処理が実行される。この場合において薬効を有する1又は複数の水薬に対する分注とその後に行われる賦形剤の分注とが連続して実行されることになる。賦形剤の分注量は上述したS402又はS403において決定されたものである。S113及びS114については既に説明したのでその説明を省略する。   In S404, display of the inspection image is started. In this case, when the additional amount is added, the specified amount and the additional amount are individually displayed. This makes it possible for the user to distinguish and recognize the extent of the addition amount and the normal amount. In S405, a dispensing process is executed. In this case, the dispensing of one or a plurality of liquid medicines having medicinal effects and the subsequent dispensing of the excipient are performed continuously. The amount of excipient dispensed was determined in S402 or S403 described above. Since S113 and S114 have already been described, description thereof will be omitted.

上記の第4動作例においては、事前に賦形剤分注量を計算しておき、その分注量分の賦形剤を調整工程において自動的に分注することが可能である。   In the fourth operation example described above, it is possible to calculate the amount of excipient dispensed in advance, and automatically dispense the amount of excipient dispensed in the adjustment step.

以上のように第1動作例から第4動作例までの内容を説明したが、図9及び図10に示したように、賦形剤の分注すなわち調整分注については各種のバリエーションが考えられる。いずれにおいても、実際の分注対象となる投薬ボトル上における実際の目盛りを参照し、それに基づいて目標レベルを設定するように構成するのが望ましい。   As described above, the contents from the first operation example to the fourth operation example have been described. As shown in FIGS. 9 and 10, various variations are considered for the dispensing of the excipient, that is, the adjustment dispensing. . In any case, it is desirable to refer to an actual scale on a medication bottle to be actually dispensed and to set a target level based on the scale.

10 水薬調剤装置、12,14,16 分注ユニット、18 搬送機構、20 可動体、22 投薬ボトル、66 薬剤リスト、68 鑑査画像(鑑査用画像)。   10 liquid medicine dispensing device, 12, 14, 16 dispensing unit, 18 transport mechanism, 20 movable body, 22 medication bottle, 66 drug list, 68 inspection image (inspection image).

Claims (7)

目盛りを有する投薬容器と、
前記投薬容器を撮像して容器画像を取得する撮像手段と、
前記容器画像に対する目盛り解析の結果又は前記容器画像内の目盛りを視認したユーザーの入力に基づいて、現在注入対象となっている投薬容器において目標レベルを設定する目標レベル設定手段と、
前記投薬容器に対して薬効をもった水薬を注入した後に前記投薬容器に対して賦形剤を注入する制御を実行する手段であって、前記賦形剤の注入量の調整により前記目標レベルに対して前記投薬容器内の液面レベルを合わせる注入制御手段と、
を含むことを特徴とする水薬調剤装置。
A dosing container having a scale;
Imaging means for imaging the medication container to obtain a container image;
Based on the result of the scale analysis on the container image or the input of the user who visually recognizes the scale in the container image, target level setting means for setting a target level in the medication container that is currently the injection target;
A means for executing control for injecting an excipient into the dosing container after injecting a liquid medicine having a medicinal effect into the dosing container, wherein the target level is adjusted by adjusting an injection amount of the excipient Injection control means for adjusting the liquid level in the dosing container,
A liquid medicine dispensing device comprising:
請求項1記載の装置において、
前記容器画像内の目盛りを構成する少なくとも1つの水平線についてレベルを解析する画像解析手段を含み、
前記目標レベル設定手段は、前記解析された水平線のレベルに基づいて前記目標レベルを設定する、
ことを特徴とする水薬調剤装置。
The apparatus of claim 1.
Image analysis means for analyzing the level of at least one horizontal line constituting the scale in the container image;
The target level setting means sets the target level based on the analyzed level of the horizon;
A liquid medicine dispensing device characterized by that.
請求項2記載の装置において、
前記容器画像は空の状態にある投薬容器を撮像することにより取得され、
前記画像解析手段は前記容器画像内の目盛りを構成する複数の水平線についてそれぞれのレベルを解析し、
前記目標レベル設定手段は、前記複数の水平線の内で、前記薬効をもった水薬の注入完了時点において予測又は検出される液面レベルよりも高い特定水平線を認識し、当該特定水平線のレベルに基づいて前記目標レベルを設定する、
ことを特徴とする水薬調剤装置。
The apparatus of claim 2.
The container image is acquired by imaging a medication container in an empty state,
The image analysis means analyzes each level for a plurality of horizontal lines constituting a scale in the container image,
The target level setting means recognizes a specific horizontal line higher than a liquid level predicted or detected at the completion of injection of the medicinal liquid medicine among the plurality of horizontal lines, and sets the level of the specific horizontal line. Based on the target level,
A liquid medicine dispensing device characterized by that.
請求項1記載の装置において、
前記画像解析手段は前記賦形剤の注入中において前記容器画像に基づいて各時刻の液面レベルを検出し、
前記注入制御手段は、前記検出された液面レベルが前記目標レベルに一致するまで前記賦形剤の注入を行う、
ことを特徴とする水薬調剤装置。
The apparatus of claim 1.
The image analysis means detects the liquid level at each time based on the container image during injection of the excipient,
The injection control means injects the excipient until the detected liquid level matches the target level.
A liquid medicine dispensing device characterized by that.
請求項1記載の装置において、
前記画像解析手段は前記薬効をもった水薬の注入完了時点において前記容器画像に基づいて賦形剤注入前の液面レベルを検出し、
前記注入制御手段は、前記賦形剤注入前の液面レベルと前記目標レベルの差から前記賦形剤の注入量を決定する、
ことを特徴とする水薬調剤装置。
The apparatus of claim 1.
The image analysis means detects the liquid level before excipient injection based on the container image at the completion of injection of the liquid medicine having the medicinal effect
The injection control means determines the injection amount of the excipient from the difference between the liquid level before the excipient injection and the target level;
A liquid medicine dispensing device characterized by that.
請求項1記載の装置において、
前記容器画像内の目盛りを視認したユーザーにより、前記目盛りを構成する少なくとも1つの水平線についてレベルを入力するための入力手段を含む、
ことを特徴とする水薬調剤装置。
The apparatus of claim 1.
An input means for inputting a level of at least one horizontal line constituting the scale by a user who visually recognizes the scale in the container image;
A liquid medicine dispensing device characterized by that.
請求項1記載の装置において、
前記賦形剤の注入量を表す情報を含む鑑査用画像を表示する手段を含む、
ことを特徴とする水薬調剤装置。
The apparatus of claim 1.
Including means for displaying an inspection image containing information representing the amount of the excipient injected,
A liquid medicine dispensing device characterized by that.
JP2012050667A 2012-03-07 2012-03-07 Liquid medicine dispensing device Active JP5980528B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012050667A JP5980528B2 (en) 2012-03-07 2012-03-07 Liquid medicine dispensing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012050667A JP5980528B2 (en) 2012-03-07 2012-03-07 Liquid medicine dispensing device

Publications (2)

Publication Number Publication Date
JP2013183857A true JP2013183857A (en) 2013-09-19
JP5980528B2 JP5980528B2 (en) 2016-08-31

Family

ID=49385851

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012050667A Active JP5980528B2 (en) 2012-03-07 2012-03-07 Liquid medicine dispensing device

Country Status (1)

Country Link
JP (1) JP5980528B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112915011A (en) * 2021-01-22 2021-06-08 北京中关村水木医疗科技有限公司 Liquid discharging method and device for liquid separating instrument

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009112636A (en) * 2007-11-08 2009-05-28 Aloka Co Ltd Liquid medicine dispensing device
JP2010254334A (en) * 2009-04-23 2010-11-11 Aloka Co Ltd Liquid medicine preparation system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009112636A (en) * 2007-11-08 2009-05-28 Aloka Co Ltd Liquid medicine dispensing device
JP2010254334A (en) * 2009-04-23 2010-11-11 Aloka Co Ltd Liquid medicine preparation system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112915011A (en) * 2021-01-22 2021-06-08 北京中关村水木医疗科技有限公司 Liquid discharging method and device for liquid separating instrument

Also Published As

Publication number Publication date
JP5980528B2 (en) 2016-08-31

Similar Documents

Publication Publication Date Title
AU2020294345B2 (en) Enhanced platen for pharmaceutical compounding
JP5260793B2 (en) Chemical determination device and chemical determination method
US20170079885A1 (en) Visual counting system
JP5968648B2 (en) Liquid medicine dispensing device
JP5980528B2 (en) Liquid medicine dispensing device
JP5980527B2 (en) Liquid medicine dispensing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150202

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20151210

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20151215

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160204

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20160523

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160727

R150 Certificate of patent or registration of utility model

Ref document number: 5980528

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150