JPH0253281B2 - - Google Patents
Info
- Publication number
- JPH0253281B2 JPH0253281B2 JP59084873A JP8487384A JPH0253281B2 JP H0253281 B2 JPH0253281 B2 JP H0253281B2 JP 59084873 A JP59084873 A JP 59084873A JP 8487384 A JP8487384 A JP 8487384A JP H0253281 B2 JPH0253281 B2 JP H0253281B2
- Authority
- JP
- Japan
- Prior art keywords
- drug
- data
- storage area
- stored
- packaging
- 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 - Lifetime
Links
Landscapes
- Basic Packing Technique (AREA)
Description
【発明の詳細な説明】
(イ) 産業上の利用分野
本発明は病院等に於いて、患者毎に異る処方箋
に基づき一種類または数種類の薬剤を選択的に包
装できる薬剤包装機の制御装置に関する。[Detailed description of the invention] (a) Industrial application field The present invention provides a control device for a drug packaging machine that can selectively package one or several types of drugs based on different prescriptions for each patient in hospitals and the like. Regarding.
(ロ) 従来技術
薬剤包装機は、例えば特公昭56−48362号公報
や特開昭54−38887号公報で開示されているよう
に予め薬品種及び薬数をキー入力することでこの
入力データに基づく分包を連続して作成する構成
である。したがつて処方箋に基づき薬品種及び薬
数を入力するために、薬剤包装機の制御装置は薬
品の在庫管理にも適用されるのであるが、斯る機
能を有した錠剤包装機は未だ存在しない。しかし
て多種類の薬品を選択的に分包する薬剤包装機
は、現在のところ錠剤が主で水剤及び散剤等は分
包できず、そのため病院の薬局オペレータは各診
療科より送られてくる処方箋から薬剤包装機で分
包可能な薬品のみを選択して入力することで分包
を行つている。よつて従来の薬剤包装機では処方
箋にて服用が指示される全ての薬品種を入力する
ことができないために、薬局における全薬品の在
庫管理を行うのは現状のままでは不可能である。(b) Prior art A drug packaging machine inputs the drug type and number of drugs in advance using a key, as disclosed in, for example, Japanese Patent Publication No. 56-48362 and Japanese Patent Application Laid-open No. 54-38887. This is a configuration that continuously creates sachets based on Therefore, the control device of a drug packaging machine is also applied to drug inventory management in order to input the drug type and number of drugs based on the prescription, but there is still no tablet packaging machine with such a function. . However, drug packaging machines that selectively package many types of drugs currently only package tablets and cannot package liquids, powders, etc. Therefore, hospital pharmacy operators are forced to use packaging machines sent from each clinical department. Packaging is performed by selecting and inputting only the drugs that can be packaged into a drug packaging machine from a prescription. Therefore, since conventional drug packaging machines cannot input all types of drugs that are instructed to be taken in a prescription, it is currently impossible to manage the inventory of all drugs at a pharmacy.
(ハ) 発明の目的
本発明は、薬品包装機で分包不可能な種類を含
めた薬局の全薬品種の在庫管理を成し得る薬剤包
装機の制御装置を提供するものである。(c) Purpose of the Invention The present invention provides a control device for a drug packaging machine that can manage the inventory of all drug types in a pharmacy, including those that cannot be packaged separately by a drug packaging machine.
(ニ) 発明の構成
本発明は、入力された薬品種及びその薬数を処
方データとして記憶するとともに、入力薬品種の
うちで包装機において分包不可能な種類を検出
し、処方データに分包不可能な薬品種が含まれて
いるとこの薬品種の薬数を「0」に修正した制御
データを作成して該制御データに基づき包装し、
包装終了により処方データに基づき薬品種毎の薬
数を累積する構成である。(d) Structure of the Invention The present invention stores input drug types and the number of drugs as prescription data, and also detects types of input drug types that cannot be packaged in a packaging machine and divides them into prescription data. If a drug type that cannot be packaged is included, control data is created in which the number of drugs for this drug type is corrected to "0", and the product is packaged based on the control data.
The system is configured to accumulate the number of drugs for each drug type based on prescription data upon completion of packaging.
(ホ) 発明の実施例
第1図は錠剤包装機の外観図を示し、操作器1
0と包装機11とから構成されている。操作器1
0はキー入力部12のキー操作により処方データ
を作成して包装機11に転送し、包装機11に転
送された処方データにより包装動作を行なう。(E) Embodiments of the invention FIG. 1 shows an external view of a tablet packaging machine, in which the operating device 1
0 and a packaging machine 11. Controller 1
0 creates prescription data by operating keys on the key input unit 12 and transfers it to the packaging machine 11, and performs a packaging operation based on the prescription data transferred to the packaging machine 11.
第2図は包装機11の構成を示し、上部にタブ
レツトケース収納部11が形成されており、その
下方にホツパ2及びシヤツタ3と錠剤包装機構4
が配置されている。タブレツトケース収納部1に
は錠剤の種類に応じてタブレツトケース5…5が
載置されており、タブレツトケース5…5は所定
の摘出信号の入力により駆動して錠剤を摘出し、
図示しない落下通路を通してホツパ2へ導入する
ように構成されている。錠剤包装機構4は、熱溶
着が可能で予め二つ折りにされた包装紙6を巻回
したローラ7、テンシヨンローラ8、そして包装
紙6を縦にヒートシールして連続した小袋を形成
する縦ヒートシール機構9、更に錠剤が投入され
た小袋の上部開口を密封する横ヒートシール機構
10、及び送りローラ11とから構成されてい
る。そして送りローラ11は間欠的に駆動して包
装紙6を搬送し、搬送停止時に縦ヒートシールに
よる分包袋の形成・シヤツタ3の開放による分包
袋への錠剤投入・横ヒートシールによる分包袋の
密封の各動作が成される。 FIG. 2 shows the configuration of the packaging machine 11, in which a tablet case storage section 11 is formed in the upper part, and a hopper 2, a shutter 3, and a tablet packaging mechanism 4 are provided below.
is located. Tablet cases 5...5 are placed in the tablet case storage section 1 according to the type of tablet, and the tablet cases 5...5 are driven by the input of a predetermined extraction signal to extract the tablet.
It is configured to be introduced into the hopper 2 through a falling passage (not shown). The tablet packaging mechanism 4 includes a roller 7 wound with wrapping paper 6 that can be thermally welded and folded in half in advance, a tension roller 8, and a vertical roller that vertically heat-seals the wrapping paper 6 to form a continuous pouch. It consists of a heat sealing mechanism 9, a lateral heat sealing mechanism 10 that seals the upper opening of the pouch into which tablets are placed, and a feed roller 11. Then, the feed roller 11 is driven intermittently to convey the wrapping paper 6, and when the conveyance is stopped, the packaging bag is formed by vertical heat sealing, the tablets are inserted into the packaging bag by opening the shutter 3, and the packaging paper is packaged by horizontal heat sealing. Each operation of sealing the bag is performed.
第3図は本発明による錠剤包装機の制御装置を
示し、13は操作器10側の制御装置、14は包
装機11側の制御装置で、送信データをシリアル
変換して且つ受信データをパラレル変換するイン
タフエイス15,16を介して伝送線17によつ
て接続されている。制御装置13は、中央処理装
置18と、操作器10側の制御手順をプログラム
したシステムメモリ19と、キー入力部12の操
作を検出してキー入力信号を発生するキーボード
インタ−フエイス20と、CRT22の表示制御
を行うコントローラ21と、薬品種毎に対応する
薬品フアイルメモリM11〜M1o及び処方データメ
モリM21〜M2oと、制御データメモリM3と、レジ
スタR3,R4とを具備している。そして制御装置
14は、包装機11側の制御手順をプログラムし
たシステムメモリ25と、包装機11の包装動作
を制御する包装機コントローラ28と、中央処理
装置24と、メモリM4と、制御カウンタ27と、
レジスタR1,R2とを具備している。 FIG. 3 shows a control device for a tablet packaging machine according to the present invention, where 13 is a control device on the operating device 10 side, and 14 is a control device on the packaging machine 11 side, which converts transmitted data into serial data and converts received data into parallel data. They are connected by a transmission line 17 via interfaces 15 and 16. The control device 13 includes a central processing unit 18, a system memory 19 in which control procedures for the operating device 10 are programmed, a keyboard interface 20 that detects operations on the key input unit 12 and generates key input signals, and a CRT 22. It is equipped with a controller 21 that controls the display, drug file memories M 11 to M 1o and prescription data memories M 21 to M 2o corresponding to each drug type, a control data memory M 3 , and registers R 3 and R 4 . are doing. The control device 14 includes a system memory 25 in which control procedures for the packaging machine 11 are programmed, a packaging machine controller 28 that controls the packaging operation of the packaging machine 11, a central processing unit 24, a memory M4 , and a control counter 27. and,
It is equipped with registers R 1 and R 2 .
第4図は、制御装置13が薬品フアイルメモリ
M11〜M1oに薬局で扱う全ての薬品の名称・略称
コード及びコード番号を登録するときの動作を示
すフローチヤートで、キー入力部12の登録開始
を表わすフアンクシヨンキーの操作にて処理が開
始される。N0ステツプでは、キー入力部12の
テンシヨンの操作にて薬品種についての任意のコ
ード番号が入力される。このとき登録すべき薬品
が包装機11で分包可能で、何れかのタブレツト
ケース5…5に充填している場合には、テンキー
にて「0」以外のコード番号が入力され、また包
装機11で分包不可能な散剤或いは水剤の場合に
はテンキーによつて「0」が入力される。N1ス
テツプはキー入力されたコード番号データを薬品
フアイルメモリM11〜M1oにストアするものであ
る。薬品種毎に対応する薬品フアイルメモリM11
〜M1oは、夫々第5図に示すように記憶領域
m7・m8・m9・m10を有しており、薬品毎のコー
ド番号データは記憶領域m7にストアする。そし
てN2ステツプで当該薬品種に関しての略称がキ
ー入力されると、N3ステツプではこの略称が既
に登録されている他の薬品の略称と重複しないか
を判定して、重複しない場合にはN4ステツプで
略称コードを対応する記憶部M11〜M1oの記憶領
域m9にストアする。例えば「A錠」という名称
の薬品について略称として「A」が入力されたす
ると、文字「A」を表わすキヤラクタコードが記
憶領域m8にストアされる。一方重複している場
合にはN3ステツプからN2ステツプとなつてコー
ドが再度キー入力されるのを待機する。しかして
N5ステツプで当該薬品種の薬品名がキー入力さ
れると、N6ステツプで薬品名を構成する各文字
を夫々キヤラクターコードによつて記憶領域m9
にストアする。斯る処理を薬品種毎に繰り返して
薬品フアイルメモリM11〜M1oにコード番号デー
タ・略称コード及び薬品名を登録し、N7ステツ
プでキー入力部12の登録終了を表わすフアンク
シヨンキーが操作されたことを検出すると登録動
作を終了する。 FIG. 4 shows that the control device 13
This is a flowchart showing the operation when registering the name/abbreviation code and code number of all drugs handled at a pharmacy in M11 to M1o . will be started. At the N0 step, an arbitrary code number for the drug type is input by operating the tension of the key input section 12. At this time, if the drug to be registered can be packaged in the packaging machine 11 and filled in any of the tablet cases 5...5, a code number other than "0" is input using the numeric keypad, and the packaging If the powder or liquid medicine cannot be packaged by the machine 11, "0" is input using the numeric keypad. The N1 step stores key-input code number data in the drug file memories M11 to M1o . Drug file memory M 11 corresponding to each drug type
~M 1o are storage areas as shown in Figure 5, respectively.
It has m7 , m8 , m9 , and m10 , and the code number data for each drug is stored in the storage area m7 . Then, when the abbreviation for the drug type is key-input in step N2 , it is determined in step N3 whether this abbreviation overlaps with the abbreviation of another drug that has already been registered, and if there is no overlap, N In four steps, the abbreviation code is stored in the storage area m9 of the corresponding storage units M11 to M1o . For example, when "A" is input as an abbreviation for a drug named "A tablet", a character code representing the letter "A" is stored in the storage area m8 . On the other hand, if there is a duplicate code, the process moves from step N3 to step N2 and waits for the code to be entered again. However
When the drug name of the drug type is key-input in step N5 , each character composing the drug name is stored in the memory area m 9 by character code in step N6 .
Store in. This process is repeated for each drug type to register the code number data, abbreviation code, and drug name in the drug file memories M11 to M1o , and in step N7 , the function key indicating the end of registration in the key input section 12 is operated. When it is detected that it has been registered, the registration operation is terminated.
制御装置14は制御装置13より送信される制
御データに基づき包装制御を行うが、制御装置1
3,14間の転送モードは制御装置14が制御装
置13へ転送要求信号を送信することで始まる。
このとき制御装置14は包装制御を行つていない
状態で定期的にこの転送要求信号を出力するもの
である。第6図は制御装置13の通常の動作を示
すフローチヤートで、薬品メモリフアイルメモリ
M11〜M1oへの登録動作以外では常にこのフロー
チヤートに基づく処理を実行している。N10ステ
ツプはレジスタR3には「1」をストアして転送
番号を1にセツトし、且つレジスタR4には「0」
をストアし、N11ステツプでは制御装置14から
の転送要求信号の有無を判定し、転転送要求信号
が出力されていないとN12ステツプでキー入力の
有無を判定する。キー入力部12が操作されて、
朝・昼・夕・就寝前毎に投薬する薬品の略称及び
薬数と服用する日数がキー入力されると、N13ス
テツプでは第7図のフオーマツトにしたがつてこ
のキー入力内容に基づく処方データを作成して何
れかの処方データメモリM21〜M2oに記憶する
が、以下処方データメモリM21に記憶するものと
する。 The control device 14 performs packaging control based on control data transmitted from the control device 13, but the control device 1
The transfer mode between 3 and 14 starts when the control device 14 transmits a transfer request signal to the control device 13.
At this time, the control device 14 periodically outputs this transfer request signal without performing packaging control. FIG. 6 is a flowchart showing the normal operation of the control device 13.
Processing based on this flowchart is always executed except for registration operations for M 11 to M 1o . The N10 step stores "1" in register R3 and sets the transfer number to 1, and also stores "0" in register R4 .
In step N11 , the presence or absence of a transfer request signal from the control device 14 is determined. If the transfer request signal is not output, it is determined in step N12 whether or not there is a key input. When the key input section 12 is operated,
When the abbreviation of the medicine to be administered in the morning, afternoon, evening, and before bedtime, the number of medicines, and the number of days to be taken are entered using the key, in the N13 step, prescription data based on the contents of the key entry is created according to the format shown in Figure 7. is created and stored in any of the prescription data memories M 21 to M 2o , but it will be stored in the prescription data memory M 21 below.
第8図はN13ステツプでの動作を説明するフロ
ーチヤートである。n0ステツプで薬品の略称がキ
ー入力されると、n1ステツプでは薬品フアイルメ
モリM11〜M1oを索引して何れの薬品がキー入力
されたかを判定してn2ステツプとなる。しかしな
がら何れの薬品フアイルメモリM11〜M1oにもキ
ー入力された略称と同じ略称がストアされていな
いと、n0ステツプに復帰して再度の略称入力を待
機する。n2ステツプは、キー入力された略称に一
致する薬品のコード番号及び薬品名を薬品フアイ
ルメモリM11〜M1oより読み取つて、夫々処方デ
ータメモリM21の記憶領域m5・m6にストアする。
そしてn3ステツプでその薬品の朝・昼・夕・就寝
前毎の薬数が入力されると、n4ステツプでは処方
データメモリM21の記憶領域m2の0〜3までの
各アドレスに朝・昼・夕・就寝前毎の薬数データ
を書込み、n5ステツプでキー入力があると、n6ス
テツプではキー入力の内容が薬品に関する略称で
あるか或いは服用日数であるかを判定する。1分
包中に複数種の錠剤を包装する場合には略称が再
度入力されるために、n1ステツプに復帰して同様
な処理が繰返されて、処理データメモリM21には
この略称に一致する薬品のコード番号・薬品名・
薬数がストアされる。しかして1分包中に包装す
べき薬品及びその薬数の設定が終了して、服用日
数がn5ステツプで入力されると、n6ステツプから
n7ステツプとなつて処方データメモリM21の記憶
領域m1に日数データをストアする。n8ステツプ
では、日数データの入力により朝・昼・夕・就寝
前毎の総分包数を演算して、処方データメモリ
M21の記憶領域m3の各アドレス0〜3までにス
トアする。n9ステツプでは、レジスタR3にスト
アしている転送番号を処方データメモリM21の記
憶領域m4に書込み、n10ステツプでレジスタR3の
内容を1加算計数して転送番号を1つ進めてN11
ステツプに移行する。そして転送要求信号が送信
されていない状態で再び処方データのキー入力が
あると、メモリM22に処方データをストアする
が、このとき処方データメモリM22の記憶領域
m4にはレジスタR3の内容が1加算されているた
めに、1つ進められた転送番号がストアされる。 FIG. 8 is a flowchart explaining the operation at step N13 . When the abbreviation of a drug is keyed in in step n0 , the drug file memories M11 to M1o are indexed in step n1 to determine which drug has been keyed in, and step n2 follows. However, if the same abbreviation as the keyed-in abbreviation is not stored in any of the drug file memories M11 to M1o , the process returns to step n0 and waits for the abbreviation to be input again. The n2 step reads the code number and drug name of the drug that match the key-input abbreviation from the drug file memories M11 to M1o , and stores them in storage areas m5 and m6 of the prescription data memory M21 , respectively. .
Then, in step n3 , when the number of drugs for each morning, afternoon, evening, and before bedtime is input, in step n4 , each address from 0 to 3 in the storage area m2 of the prescription data memory M21 is・When data on the number of drugs for lunch, evening, and before bedtime is written, and there is a key input in step n5 , it is determined in step n6 whether the content of the key input is an abbreviation related to the drug or the number of days to take it. When multiple types of tablets are packaged in one sachet, the abbreviation is input again, so the process returns to the n1 step and the same process is repeated, and the processing data memory M21 stores data matching this abbreviation. Code number, drug name,
The number of drugs is stored. After setting the drugs and number of drugs to be packed in one sachet, and entering the number of days of administration in step n5 , the process starts from step n6 .
In step n7 , the number of days data is stored in the storage area m1 of the prescription data memory M21 . In the n8 step, the total number of sachets for morning, noon, evening, and before bedtime is calculated by inputting the number of days data, and the prescription data memory is stored.
Store in each address 0 to 3 of storage area m3 of M21 . In step n9 , the transfer number stored in register R3 is written to storage area m4 of prescription data memory M21 , and in step n10 , the contents of register R3 are incremented by 1 and the transfer number is advanced by one. teN 11
Move to step. If the prescription data key is input again while the transfer request signal has not been sent, the prescription data is stored in the memory M 22 , but at this time, the storage area of the prescription data memory M 22 is
Since the contents of register R3 have been incremented by 1, the transfer number advanced by one is stored in m4 .
第9図はかかるキー入力時におけるCRT22
の表示内容を示しており、オペレータのキー入力
にて指定される薬品名及びこの薬品の朝・昼・
夕・就寝前毎の剤数と日数は表示部31,32,
33で夫々表示し、そして略称に基づき薬品フア
イルメモリM11〜M1oより読取つたコード番号は
表示部34で表示する。この第9図に示す入力例
では、朝・昼・夕毎にA錠・B錠・C錠を一錠づ
つ7日分分包し、朝・昼・夕・就寝前毎にE散剤
を一単位づつ7日分分包することがキー入力され
たことを示している。尚、散薬であるE散剤は、
包装機11にては分包不可能で他の散薬専用の包
装機或いは手作業により分包されるが、在庫管理
のために入力される。したがつて処方データメモ
リM21のNo.1からNo.4までの各記憶領域m5には
夫々A・B・C・Eの各薬品コード番号データが
書込まれ、且つNo.1からNo.3までの薬数データを
ストアする各記憶領域m2の朝・昼・夕・就寝前
に対応するアドレス0〜2には夫々薬数データ
「1」が書込まれると共にアドレス3には「0」
が書込まれ、No.4の記憶領域m2の各アドレス0
〜3には夫々「1」が書込まれ、記憶領域m1に
は日数データ「7」が書込まれる。そして薬数デ
ータと日数データの入力により、朝・昼・夕・就
寝前毎の総分包数を演算して記憶領域m3の各ア
ドレス0〜3までにストアすると共に、CRT2
2の表示部35に表示する。またE散剤は、包装
機11で分包不可能なためコード番号としては
「0」が処方データメモリM21にストアされてい
るが、CRT22の表示部34はE散剤について
は「…」を表示して分包不能であることを示して
いる。 Figure 9 shows the CRT22 at the time of key input.
It shows the display contents, including the drug name specified by the operator's key input and the morning, afternoon, and
The number of drugs to be taken in the evening and before going to bed and the number of days are shown on the display sections 31, 32,
33, and the code numbers read from the drug file memories M11 to M1o based on the abbreviations are displayed on the display section 34. In the input example shown in Fig. 9, tablets A, B, and C are packed for 7 days each in the morning, noon, and evening, and one powder E is packed in the morning, afternoon, evening, and before bedtime. This indicates that a key input has been made to package each unit for 7 days. In addition, the powder medicine E powder is
The packaging machine 11 cannot package the packaged medicines, so they are packaged manually or using other packaging machines dedicated to powdered medicines, but they are input for inventory management. Therefore, each drug code number data of A, B, C, and E is written in each storage area m5 from No. 1 to No. 4 of the prescription data memory M 21 , and In each storage area m2 that stores drug count data up to .3, drug count data ``1'' is written to addresses 0 to 2 corresponding to morning, noon, evening, and before bedtime, and ``1'' is written to address 3. 0"
is written, and each address 0 of storage area m2 of No. 4
3 are respectively written with "1", and the number of days data "7" is written in the storage area m1 . Then, by inputting the drug number data and the number of days data, the total number of sachets for morning, noon, evening, and before bedtime is calculated and stored in each address 0 to 3 of the storage area m3 .
It is displayed on the display section 35 of No. 2. Furthermore, since Powder E cannot be packaged in the packaging machine 11, the code number "0" is stored in the prescription data memory M 21 , but the display section 34 of the CRT 22 displays "..." for Powder E. This indicates that it cannot be packaged.
このようにして処方データを作成してN11ステ
ツプに復帰し、制御装置14から転送要求信号が
送信されているのを検出すると、N14ステツプと
なつてレジスタR4の内容が「0」以外の値であ
るかを判定する。レジスタR4は、包装機11が
包装動作中であると、このときの包装動作の基と
なる処方データの転送番号をストアしている。し
たがつて現在、包装機11が包装動作を停止して
いるとレジスタR4の内容が「0」のために、N10
ステツプに移行して処方データの有無を判定す
る。そして前述のN13ステツプの処理により処方
データメモリM21に処方データをストアしている
と、N20ステツプとなつて処方データメモリM21
の記憶領域m4にストアされている転送番号をレ
ジスタR4に書込み、N21ステツプで制御装置14
に転送する処方データを第11図のフオーマツト
にしたがつて制御データに変換する。尚、何れか
二つ以上の処方データメモリM21〜M2oに処方デ
ータがストアされていると、記憶領域m4にスト
アされている転送番号の小さい処方データを選定
する。 After creating the prescription data in this way, the program returns to the N11 step, and when it detects that a transfer request signal is being sent from the control device 14, the N14 step is reached and the contents of the register R4 are other than "0". Determine whether the value is . When the packaging machine 11 is in a packaging operation, the register R4 stores the transfer number of the prescription data that is the basis of the packaging operation at this time. Therefore, currently, when the packaging machine 11 has stopped its wrapping operation, the contents of register R4 are "0", so N10
The process moves to step and determines the presence or absence of prescription data. Then, when the prescription data is stored in the prescription data memory M21 by the process of the N13 step described above, the prescription data is stored in the prescription data memory M21 at the N20 step.
The transfer number stored in the storage area m4 of is written to the register R4 , and the controller 14
The prescription data to be transferred to the computer is converted into control data according to the format shown in FIG. Incidentally, if prescription data is stored in any two or more of the prescription data memories M21 to M2o , the prescription data stored in the storage area m4 with the smallest transfer number is selected.
第10図は制御データ作成のフローチヤートを
示しており、n20ステツプは処方データをストア
しているメモリM21〜M2oを選定し、且つ選定し
たメモリM21の各記憶領域m5・m2で先頭の記憶
領域m5・m2を指定する。n21ステツプは、処方デ
ータメモリM21の記憶領域m5にストアしている
薬品のコード番号データを制御データメモリM3
の記憶領域m5′に書込む。制御データメモリM5
は、処方データメモリM21〜M2oの記憶領域m2・
m3・m5に対応して記憶領域m2′・m3′・m5′を具
備している。n22ステツプは、記憶領域m5′にスト
アしたコード番号データが「0」かを判定し、
「0」以外の場合はn23ステツプとなつて、処方デ
ータメモリM21の記憶領域m2の各アドレス0〜
3にストアしている朝・昼・夕・就寝前毎の薬数
データを、制御データメモリM3の記憶領域m2′の
各アドレス0〜3にストアする。また「0」の場
合は、n24ステツプで制御データメモリM3の記憶
領域m2′の各アドレス0〜3には夫々「0」を書
込む。n25ステツプは、処方データメモリM21の
記憶領域m5・m2を夫々シフトし、n26ステツプは
処方データメモリM21の全ての記憶領域m5を指
定したかを判定する。かかるn21ステツプからn26
ステツプまでの処理を繰り返して、n20ステツプ
で選定した処方データメモリM21の記憶領域m5
にストアされている薬品のコード番号データを制
御データメモリM3に移し換えると共に、コード
番号データが「0」以外の場合はその薬品種の薬
数のデータをそのまま制御データメモリM3に書
込み、「0」の場合はその薬品種の薬数データを
「0」に修正して制御データメモリM3に書込む。
したがつて第9図に示す入力例では、制御データ
メモリM3のNo.1からNo.3までの記憶領域m5′には
A・B・Cの各錠剤のコード番号データ、No.4の
記憶領域m5′にはE散剤に対応して「0」が夫々
書込まれ、また制御データメモリM3のNo.1から
No.3までの各記憶領域m2′のアドレス0〜2まで
には「1」そしてアドレス3には「0」が書込ま
れるとともに、No.4の記憶領域m2′の0〜3まで
の各アドレスには「0」が夫々書込まれる。 FIG. 10 shows a flowchart for creating control data, in which the n20 step selects memories M21 to M2o that store prescription data, and stores each storage area m5.m of the selected memory M21 . 2 specifies the first storage area m 5 /m 2 . The n21 step transfers the drug code number data stored in the storage area m5 of the prescription data memory M21 to the control data memory M3.
write to the storage area m 5 ′. Control data memory M5
is the storage area m2 of the prescription data memory M21 to M2o .
It has storage areas m 2 ′, m 3 ′, and m 5 ′ corresponding to m 3 and m 5 . The n22 step determines whether the code number data stored in the storage area m5 ' is "0",
If it is other than "0", it becomes n 23 steps and each address 0 to 2 of storage area m 2 of prescription data memory M 21 is processed.
The data on the number of medicines for each morning, noon, evening, and before bedtime stored in M3 are stored in each address 0 to 3 of the storage area m2 ' of the control data memory M3. In the case of "0", "0" is written in each address 0 to 3 of the storage area m2 ' of the control data memory M3 in step n24 . The n25 step shifts the storage areas m5 and m2 of the prescription data memory M21 , respectively, and the n26 step determines whether all the storage areas m5 of the prescription data memory M21 have been designated. Takes n 21 steps to n 26
Repeat the process up to step n20 to save the storage area m5 of the prescription data memory M21 selected in step n20.
The code number data of the drug stored in is transferred to the control data memory M3 , and if the code number data is other than "0", the data of the number of drugs of the drug type is written as is to the control data memory M3 , If it is "0", the drug number data of the drug type is corrected to "0" and written in the control data memory M3 .
Therefore, in the input example shown in FIG. 9, the storage areas m 5 ' from No. 1 to No. 3 of the control data memory M 3 contain code number data for each tablet A, B, and C, and No. 4. ``0'' is written in the storage area m5 ' corresponding to the powder E, and data from No. 1 of the control data memory M3 is written.
“1” is written to addresses 0 to 2 of each storage area m 2 ′ up to No. 3, “0” is written to address 3, and 0 to 3 of storage area m 2 ′ of No. 4 is written. "0" is written to each address.
n27ステツプは、n20ステツプで選定した処方デ
ータメモリM21の記憶部の記憶領域m3における
先頭のアドレス0を指定するとともに、制御デー
タメモリM3の各記憶領域m2′及びm3′のうちのア
ドレス0を夫々指定する。n28ステツプは、各記
憶領域m2′のアドレス0に夫々ストアしている薬
品種毎の薬数データの論理和が「0」であるかを
判定する。このとき各記憶領域m2′のアドレス0
にストアしている薬数データの少くとも一つが
「0」以外であると、n20ステツプで記憶領域m3
のアドレス0にストアしている朝についての総分
包数データを、制御データメモリM3の記憶領域
m3′のアドレス0に書込む。また各記憶領域
m2′のアドレス0にストアしている薬数データが
全て「0」であると、n30ステツプで制御データ
メモリM3の記憶領域m3′のアドレス0に「0」を
書込む。n31ステツプは、n27ステツプで選定した
処方データメモリM2の記憶部の記憶領域m3にお
けるアドレスを0から1にシフトするとともに、
制御データメモリM3の各記憶領域m2′のアドレス
を全て0から1にシフトし、n32ステツプは処方
データメモリM2の記憶領域m3のアドレスがオー
バーしたかを判定して、アドレスが3以内のうち
はn28ステツプに移行する。そしてn28ステツプか
らn32ステツプまでの処理にて制御データメモリ
M3の各記憶領域m2′の各アドレス1にストアして
いる薬品種毎の薬数データの論理和が「0」であ
るかで昼の総分包数データの修正の要否を判定し
「0」以外の場合は修正の要なしとして記憶領域
m3のアドレス1にストアしているデータを記憶
領域m3′のアドレス1に書込み、「0」の場合は
記憶領域m3′のアドレス1に「0」を書込んで総
分包数データを修正する。同様に、夕及び就寝前
についての総分包数も夫々n28ステツプからn32ス
テツプまでの処理により修正が判定されて、制御
データメモリM3の記憶領域m3′のアドレス2及び
3には夫々所定のデータが書込まれる。そして処
方データメモリM2のアドレスが記憶領域m2を越
えると、ステツプからN22ステツプとなる。した
がつて本例の処方入力に依れば、就寝前の服用は
E散剤のみであり、制御データメモリM3におけ
る各記憶領域m2′のアドレス3にストアされてい
るデータの論理和は「0」のために、記憶領域
m3′のアドレス3には修正値である「0」が書込
まれる。 The n 27 step specifies the first address 0 in the storage area m 3 of the storage section of the prescription data memory M 21 selected in the n 20 step, and also specifies each storage area m 2 ′ and m 3 ′ of the control data memory M 3 . Specify address 0 of each. In step n28 , it is determined whether the logical sum of the drug number data for each drug type stored at address 0 of each storage area m2 ' is "0". At this time, address 0 of each storage area m 2 '
If at least one of the drug count data stored in is other than "0", the storage area m 3 will be reduced in n 20 steps.
The total number of packets for the morning stored at address 0 of the control data memory M3 is stored in the storage area of the control data memory M3.
Write to address 0 of m 3 '. Also each storage area
If the drug count data stored at address 0 of m 2 ' is all "0", "0" is written to address 0 of storage area m 3 ' of control data memory M 3 in step n30 . The n31 step shifts the address in the storage area m3 of the storage section of the prescription data memory M2 selected in the n27 step from 0 to 1, and
The addresses of each storage area m 2 ' of the control data memory M 3 are all shifted from 0 to 1, and the n 32 step determines whether the address of the storage area m 3 of the prescription data memory M 2 has exceeded, and the address is If it is within 3, move to n28 step. The control data memory is then processed from step n28 to step n32 .
Determine whether or not the daytime total number of packets data needs to be corrected based on whether the logical sum of drug number data for each drug type stored at each address 1 of each storage area m 2 ' of M 3 is "0". If it is other than "0", no modification is necessary and the storage area is
Write the data stored at address 1 of m 3 to address 1 of storage area m 3 ′, and if it is “0”, write “0” to address 1 of storage area m 3 ′ and write the total number of packages data. Correct. Similarly, the total number of sachets for the evening and before going to bed is determined to be corrected by the processing from step n28 to step n32 , respectively, and is stored in addresses 2 and 3 of storage area m3 ' of control data memory M3. Predetermined data is written respectively. When the address of the prescription data memory M2 exceeds the storage area m2 , the process moves from step N22 . Therefore, according to the prescription input in this example, only powder E is to be taken before bedtime, and the logical sum of the data stored at address 3 of each storage area m 2 ' in control data memory M 3 is " 0”, storage area
The corrected value "0" is written to address 3 of m 3 '.
N22ステツプは、制御データメモリM3の記憶
領域m3′のアドレス0〜3までにストアされてい
る朝・昼・夕・就寝前毎の総分包数が全て「0」
かを判定し、「0」の場合には包装機11で分包
する必要がないためN11ステツプに復帰する。し
かして朝・昼・夕・就寝前の少くとも何れか一つ
の総分包数が「0」以外であると、包装機11で
分包する必要があつて、N23ステツプで制御デー
タを制御装置14に転送するが、このとき制御デ
ータはインターフエイス15でシリアル変換され
て送信される。かくして転送終了後、N11ステツ
プに復帰するが、制御装置14は制御データの受
信により包装機11の包装制御を行なつているた
めに転送要求信号を出力しない。したがつて制御
装置13はN12ステツプでキー入力の有無を繰返
し判定し、キー入力があるとN13ステツプとな
り、処方データをストアしていない何れかの処方
データメモリM21〜N2oにキー入力データをスト
アする。 In the N22 step, the total number of sachets for each morning, noon, evening, and before bedtime stored in addresses 0 to 3 of the storage area m3 ' of the control data memory M3 is all "0".
If it is "0", there is no need to separate packages using the packaging machine 11, and the process returns to step N11 . However, if the total number of packages in at least one of the morning, noon, evening, and before bedtime periods is other than 0, the packaging machine 11 must be used to package the packages, and the control data is controlled in step N23. The control data is transferred to the device 14, but at this time, the control data is serially converted by the interface 15 and transmitted. After the transfer is completed, the process returns to step N11 , but since the control device 14 is controlling the packaging of the packaging machine 11 by receiving the control data, it does not output a transfer request signal. Therefore, the control device 13 repeatedly determines whether or not there is a key input in step N12 , and if there is a key input, the step goes to step N13 , and the key is stored in any prescription data memory M21 to N2o that does not store prescription data. Store input data.
制御装置14の動作を第12図のフローチヤー
トによつて説明する。N0′ステツプで転送要求信
号を出力して制御データを受信すると、N1′ステ
ツプからN2′ステツプとなり制御データをメモリ
M4にストアする。メモリM4は、メモリM3の各
記憶領域m2′・m3′・m5′に対応して記憶領域
m2″・m3″・m5″を具備して、夫々薬数データ・
総分包数データ・薬品種のコード番号データをス
トアする。N3′ステツプでは、1が加算されるご
とに順次「0」から「3」までを繰り返し計数す
る3進の制御カウンタ27を「0」にセツトす
る。N4′ステツプは、メモリM4の記憶領域m3″の
内容が「0」かを判定する。記憶領域m3″は朝・
昼・夕・就寝前に対応する0から3までの4つの
アドレスに夫々総分包数をストアしているが、こ
の場合、制御カウンタ27の内容CNは「0」の
ためにアドレス0が指定されて、朝の総分包数デ
ータが「0」であるかが判定される。本例では朝
服用の分包数は7日分でありN5′ステツプに移行
する。N5′ステツプは、メモリM4の記憶領域
m5″にストアしているコード番号データをレジス
タR1にストアし、記憶領域m2″にストアしている
薬数データをレジスタR2にストアする。このと
き記憶領域m2″に関しては、制御カウンタ27の
内容CNが「0」のために先ず各記憶領域m2″の
アドレス0にストアされている薬数データが読出
されてレジスタR2にストアされる。したがつて
レジスタR1にはA・B・C各錠剤のコード番号
データが書込まれ、レジスタR2にはこれら錠剤
種について朝の分包分の薬数データが書込まれ
る。N6′ステツプはレジスタR2の内容が「0」か
を判定するが、A・B・Cの各錠剤種について少
くとも一つの錠剤種の薬数データが「0」以外に
あるとN7′ステツプとなつて錠剤の摘出動作とな
る。N7′ステツプに於いて、包装機コントローラ
28には薬数データが「0」以外にある錠剤種に
ついてのコード番号データがレジスタR1より読
出されて導入される。そして包装機コントローラ
28はA・B・Cの各種錠剤を収納したタプレツ
トケース5…5に対して摘出信信号を出力する。
したがつて摘出信号が導入されたタブレツトケー
ス5…5は駆動して一錠の錠剤を摘出する。
N8′ステツプでは、摘出動作を行なつた錠剤種に
ついてその薬数データより「1」を減算して
N6′ステツプに復帰する。本例では、朝の分包に
はA・B・Cの各種薬剤を一錠づつ包装するため
にレジスタR2にストアされているA・B・Cの
各種薬剤の薬数データは「0」となる。したがつ
て朝の1分包分の錠剤が摘出されてホツパー2に
導入され、次のN9′ステツプで包装動作が成され
る。N9′ステツプで包装機コントローラ28はシ
ヤツタ3・横ヒートシール機構10・縦ヒートシ
ール機構9に夫々制御信号を与えて錠剤投入・分
包袋密封・分包袋形成の各動作を制御し、しかる
後、送りローラ11の駆動装置へ制御信号を与え
包装紙6を長手方向へ所定寸法移送させて朝服用
分の分包の包装動作を終了する。N10′ステツプ
は、制御カウンタ27の内容「0」によりメモリ
M4の記憶領域m3″のアドレス0を指定して、そ
こにストアしているデータより「1」を減算し、
N11′ステツプでは記憶領域m3″の0〜3までの全
てのアドレスのデータが「0」であるかを判定す
る。この場合、朝服用分の分包が一つ終了して記
憶領域m3″のアドレス0のデータより「1」を減
算した段階であり、N12′ステツプで制御カウンタ
27の内容CNを「0」から「1」に進めて
N4′ステツプに復帰する。そしてN4′ステツプで
は、制御カウンタ27の内容が「1」のために
m3″のアドレス1を指定してその内容が「0」か
を判定するが、このときアドレス1の内容は
「7」のためにN5′ステツプに移行して昼服用分
の分包動作となる。 The operation of the control device 14 will be explained with reference to the flowchart shown in FIG. When the transfer request signal is output and control data is received at the N 0 ′ step, the N 1 ′ step changes to the N 2 ′ step, and the control data is stored in the memory.
Store in M4 . Memory M 4 has storage areas corresponding to each storage area m 2 ′ , m 3 ′, m 5 ′ of memory M 3.
Equipped with m 2 ″, m 3 ″, and m 5 ″, each has drug count data and
Stores total package number data and drug type code number data. In the N 3 ' step, the ternary control counter 27, which repeatedly counts from "0" to "3" each time 1 is added, is set to "0". The N 4 ′ step determines whether the contents of the storage area m 3 ″ of the memory M 4 are “0”. Storage area m 3 ″
The total number of sachets is stored in four addresses from 0 to 3 corresponding to daytime, evening, and before bedtime, but in this case, address 0 is specified because the content CN of the control counter 27 is "0". Then, it is determined whether the morning total number of sachets data is "0". In this example, the number of packets to be taken in the morning is for 7 days, and the process moves to the N5 ' step. N 5 ′ step is the storage area of memory M 4
The code number data stored in m 5 ″ is stored in register R 1 , and the drug number data stored in storage area m 2 ″ is stored in register R 2 . At this time, regarding the storage area m 2 '', since the content CN of the control counter 27 is "0", first the drug number data stored at address 0 of each storage area m 2 '' is read out and stored in the register R 2 . Therefore, the code number data for each tablet A, B, and C is written in register R1 , and the data on the number of medicines for the morning packet for these tablet types is written in register R2 . The N 6 ′ step determines whether the contents of register R 2 are “0” or not, but if the drug count data of at least one tablet type for each tablet type A, B, and C is other than “0”, N 7 ' step and the tablet extraction operation. In the N7 ' step, the code number data for the tablet types whose drug number data is other than "0" is read out from the register R1 and introduced into the packaging machine controller 28. Then, the packaging machine controller 28 outputs an extraction signal to the tapet cases 5...5 storing various tablets A, B, and C.
Therefore, the tablet cases 5 to which the extraction signal has been introduced are driven to extract one tablet.
In the N8 ' step, "1" is subtracted from the drug number data for the tablet type for which the extraction operation was performed.
N 6 Return to step. In this example, each drug A, B, and C are packed one tablet each in the morning packet, so the drug count data for each drug A, B, and C stored in register R2 is "0". becomes. Therefore, one morning packet of tablets is extracted and introduced into the hopper 2, and the packaging operation is performed in the next step N9 '. At step N9 ', the packaging machine controller 28 gives control signals to the shutter 3, the horizontal heat sealing mechanism 10, and the vertical heat sealing mechanism 9, respectively, to control each operation of inserting tablets, sealing sachets, and forming sachets, Thereafter, a control signal is applied to the drive device of the feed roller 11 to transport the wrapping paper 6 by a predetermined distance in the longitudinal direction, thereby completing the wrapping operation of the morning dose packet. At the N10 ' step, the content of the control counter 27 is ``0''.
Specify address 0 of the storage area m 3 ″ of M 4 and subtract “1” from the data stored there,
In step N11 ', it is determined whether the data at all addresses 0 to 3 in the storage area m3 '' are "0". In this case, one packet for the morning dose has been completed and "1" has been subtracted from the data at address 0 in the storage area m 3 '', and the content CN of the control counter 27 is set to "0" at step N12 '. ” to “1”
N 4 Return to step. Then, in the N 4 ' step, since the content of the control counter 27 is "1",
Address 1 of m 3 '' is specified and it is determined whether the content is ``0'', but at this time, the content of address 1 is ``7'', so the process moves to the N 5 ' step and the daytime portion packaging operation is performed. becomes.
N5′ステツプでは、記憶領域m5″にストアして
いるコード番号データをレジスタR1にストアし、
各記憶領域m2″のアドレス1にストアしている薬
数データをレジスタR2にストアする。そして
N6′ステツプからN7′ステツプとなると、レジス
タR2にストアされている薬数データが「0」以
外にある錠剤種についてタブレツトケース5…5
より錠剤を摘出し、N8′ステツプではレジスタR2
の薬数データより「1」を減算する。本例では、
昼服用分の分包もA・B・Cの各種薬剤を一錠づ
つ包装するために、レジスタR2の薬数データは
全て「0」となりN6′ステツプからN9′ステツプ
となる。N9′ステツプでは、ホツパー2に取り出
した昼の一分包分の錠剤の包装動作を行ない、
N10′ステツプでは、記憶領域m3″のアドレス1に
ストアしているデータから「1」を減算して、昼
の一分包動作が終了したことを記憶する。そして
N11′ステツプからN12′ステツプとなると、制御カ
ウンタ27の内容CNを「1」から「2」に進め
る。したがつて次のN4′ステツプからは、制御カ
ウンタ27の内容が「2」のため記憶領域m5″・
m2″はアドレス2が指定されて夕の一分包動作に
ついての処理となり、しかる後、夕の分包につい
ての処理を終了すると制御カウンタ27の内容
CNを「2」から「3」に進めてN4′ステツプに
復帰する。このとき記憶領域m3″のアドレス3の
内容は「0」であり、N4′ステツプからN11′ステ
ツプとなる。即ち、本例の入力処方では、就寝前
には包装機11で包装不能なE散剤を分包するた
めに、就寝前の服用分についての包装動作は省略
されたことになる。そしてN12′ステツプで制御カ
ウンタ27の内容を「3」から「0」に進めて、
再度、朝の分包についての処理を行う。このよう
にしてメモリM4の記憶領域m3′のアドレス0〜3
にストアされているデータが全て「0」になるま
で、朝・昼・夕の順序で分包動作を繰返す。しか
して朝・昼・夕の7日分の7分包づつの包装が終
了すると、1入力処方についての包装が終了した
としてN11′ステツプからN0′ステツプに復帰する。
そしてN0′ステツプでは、次の包装動作に関する
処方データの転送要求信号を制御装置13に送信
する。 In the N 5 ′ step, the code number data stored in the storage area m 5 ″ is stored in register R 1 , and
The medicine number data stored at address 1 of each storage area m 2 ″ is stored in register R 2. Then
When going from the N 6 ′ step to the N 7 ′ step, tablet cases 5...5 for tablet types whose drug number data stored in register R 2 are other than "0"
Remove the tablet from the N 8 ′ step and register R 2
Subtract "1" from the drug count data. In this example,
Since the daytime packets also contain each drug, A, B, and C, one tablet at a time, the data on the number of drugs in register R2 is all "0" and the steps are from N6 ' step to N9 '. In the N9 ' step, the one daytime packet of tablets taken out into the hopper 2 is wrapped.
In the N10 ' step, "1" is subtracted from the data stored at address 1 of the storage area m3 " to store that the daytime one-pack operation has been completed. and
When the step changes from the N 11 ' step to the N 12 ' step, the content CN of the control counter 27 is advanced from "1" to "2". Therefore, from the next N 4 ′ step, since the content of the control counter 27 is “2”, the storage area m 5 ″・
m 2 '' is specified by address 2, and processing is performed for the evening sachet operation. After that, when the evening sachet operation is completed, the contents of the control counter 27 are
Advance CN from "2" to "3" and return to the N 4 ' step. At this time, the content of address 3 of the storage area m 3 '' is "0", and the step is from N 4 ' to N 11 '. That is, in the input prescription of this example, since the E-powder which cannot be packaged by the packaging machine 11 before going to bed is packaged, the packaging operation for the dose taken before going to bed is omitted. Then, in step N12 ', the content of the control counter 27 is advanced from "3" to "0",
Processing for morning parcels is performed again. In this way, addresses 0 to 3 of storage area m 3 ' of memory M 4
The packaging operation is repeated in the order of morning, noon, and evening until all the data stored in is 0. When the packaging of 7-packs for 7 days in the morning, afternoon, and evening is completed, it is assumed that the packaging for one input prescription has been completed, and the process returns from the N 11 ' step to the N 0 ' step.
Then, in step N 0 ', a signal requesting transfer of prescription data regarding the next packaging operation is transmitted to the control device 13.
そして制御装置14が転送要求信号を出力して
いるのを、制御装置13がN11ステツプで検出す
ると、このときは処方データを制御装置14に転
送してレジスタR4には転送番号をストアしてい
るためにN14ステツプからN15ステツプとなる。
N16ステツプは、処方データメモリM21ストアし
ている薬品名より対応する薬品フアイルメモリ
M11〜M1oを索引し、N16ステツプで該メモリの
薬数記憶領域m10に薬数の累積を記録する。N17
ステツプでは処方データメモリM21をクリアし、
N18ステツプではレジスタR4を「0」にしてN19
ステツプとなる。このように制御装置13は、転
送した制御データに基づく包装動作が終了したこ
とを、N11ステツプでの転送要求信号の有無及び
N14ステツプでのレジスタR4の内容にて判断する
と、包装の終了した処方データに示される薬品種
に対応した薬品フアイルメモリM11〜M1oを指定
して、その記憶領域m10にストアしている累積薬
数に当該薬品種の薬数データを加算するものであ
る。そして何れかの処方データメモリM22〜M2o
に処方データがストアされていると、再び制御デ
ータを作成し且つ包装機11で包装可能な薬品種
の場合にこの制御データを制御装置14に転送す
る。また薬品フアイルメモリM11〜M1oにストア
しているデータは、キー入力部12の所定キーを
操作してかかるデータの表示を指示する表示指令
をを中央処理装置18に入力することで、CRT
22において表示される。即ち、第6図のフロー
チヤートで、制御装置14より転送要求信号が送
信されておらず、そしてキー入力部12に処方入
力が成されていない状態で表示指令が発生したこ
とをN24ステツプで検出すると、N25ステツプと
なつて薬品フアイルメモリM11〜M1oにストアし
ているデータをCRTコントローラ21へ導入し、
CRT22は各薬品種毎のコード番号・略称コー
ド・薬品名・累積薬数を表示する。 When the control device 13 detects in step N11 that the control device 14 is outputting a transfer request signal, it transfers the prescription data to the control device 14 and stores the transfer number in register R4 . Because of this, the number of steps is N15 instead of N14 .
N 16 step selects the drug file memory corresponding to the drug name stored in the prescription data memory M 21 .
M11 to M1o are indexed, and the cumulative number of medicines is recorded in the medicine number storage area m10 of the memory in step N16 . N17
In step clear prescription data memory M21 ,
At the N18 step, set register R4 to ``0'' and set N19.
It becomes a step. In this way, the control device 13 determines whether or not there is a transfer request signal at step N11 to indicate that the packaging operation based on the transferred control data has been completed.
Judging from the contents of register R4 in step N14 , the drug file memories M11 to M1o corresponding to the drug type indicated in the packaged prescription data are specified and stored in the storage area m10 . The data on the number of drugs for the relevant drug type is added to the cumulative number of drugs in the list. and any prescription data memory M22 to M2o
If the prescription data is stored in , control data is created again, and in the case of a drug type that can be packaged by the packaging machine 11 , this control data is transferred to the control device 14 . The data stored in the drug file memories M 11 to M 1o can be transferred to the CRT by inputting a display command to the central processing unit 18 by operating a predetermined key on the key input section 12 to instruct the display of such data.
22. That is, in the flowchart of FIG. 6, it is determined in step N24 that the display command has been generated in a state where no transfer request signal has been transmitted from the control device 14 and no prescription input has been made to the key input section 12 . When detected, the data stored in the drug file memories M11 to M1o is introduced into the CRT controller 21 at step N25 .
The CRT22 displays the code number, abbreviation code, drug name, and cumulative number of drugs for each drug type.
(ヘ) 発明の効果
本発明に依ると、薬品種及びその薬数が入力さ
れると、処方データとして記憶した包装不否の情
報により、入力された薬品種から包装機で包装不
可能な種類を判別し包装不可能な薬品種がある
と、その薬数は「0」に修正し包装動作を行うよ
う制御するものである。したがつて包装機で包装
不可能な薬品を含めて薬局で扱う全ての薬品種を
処方箋にしたがつて入力することが可能なため、
薬局での薬剤管理機能を備えた薬剤包装機が提供
される。(F) Effects of the Invention According to the present invention, when the drug type and the number of drugs are input, the information on whether or not to pack the drug stored as prescription data is used to select types that cannot be packaged by the packaging machine based on the input drug type. If there is a drug type that cannot be packaged, the number of drugs is corrected to "0" and the packaging operation is performed. Therefore, it is possible to enter all types of drugs handled at pharmacies, including drugs that cannot be packaged with a packaging machine, according to the prescription.
A drug packaging machine with a drug management function in a pharmacy is provided.
第1図は本発明に依る薬剤包装機の外観図、第
2図は包装機の構成図、第3図は本発明に依る制
御装置の構成図、第4図は薬品フアイルメモリ
M11〜M1oへの登録動作を示すフローチヤート、
第5図は薬品フアイルメモリM11〜M1oの記憶フ
オーマツトを示す図、第6図は制御装置13の動
作を示すフローチヤート、第7図は処方データの
フオーマツトを示す図、第8図は処方データ作成
処理を示すフローチヤート、第9図は1処方の入
力例を示す図、第10図は制御データ作成処理を
示すフローチヤート、第11図は制御データメモ
リM3の記憶フオーマツトを示す図、第12図は
制御装置14の動作を示すフローチヤートであ
る。
10……制御器、11……包装機、12……キ
ー入力部、13,14……制御装置、M11〜M1o
……薬品フアイルメモリ、M21〜M2o……処方デ
ータメモリ、M3……制御データメモリ。
Fig. 1 is an external view of a drug packaging machine according to the present invention, Fig. 2 is a block diagram of the packaging machine, Fig. 3 is a block diagram of a control device according to the present invention, and Fig. 4 is a drug file memory.
A flowchart showing the registration operation for M 11 to M 1o ,
FIG. 5 is a diagram showing the storage format of drug file memories M 11 to M 1o , FIG. 6 is a flowchart showing the operation of the control device 13, FIG. 7 is a diagram showing the format of prescription data, and FIG. 8 is a diagram showing the prescription data format. 9 is a flowchart showing an input example of one prescription; FIG. 10 is a flowchart showing control data creation processing; FIG. 11 is a diagram showing the storage format of the control data memory M3 ; FIG. 12 is a flowchart showing the operation of the control device 14. 10... Controller, 11... Packaging machine, 12... Key input unit, 13, 14... Control device, M 11 to M 1o
...Medical file memory, M21 to M2o ...Prescription data memory, M3 ...Control data memory.
Claims (1)
と、入力された薬品種及び薬数を処方データとし
て記憶する手段と、処方データとして記憶した包
装可否の情報により入力された薬品種から包装機
において包装不可能な種類を判別する手段と、前
記処方データに包装不可能な薬品種が含まれてい
ると該薬品種を除いて前記処方データに基づき包
装機の包装動作を行なうよう制御される包装機コ
ントローラと、前記包装動作の終了により前記処
方データに基づき薬品種毎の薬数を累積して記憶
する手段と、この薬品種毎の薬数の累積を呼び出
す手段とから成る薬剤包装機の制御装置。1. A means for inputting the drug type and number of drugs to be administered, a means for storing the entered drug type and number of drugs as prescription data, and a method for packaging based on the input drug type based on packaging availability information stored as prescription data. A means for determining a type of drug that cannot be packaged in the machine, and a means for controlling the packaging machine to perform a packaging operation based on the prescription data, excluding the drug type when the prescription data includes a drug type that cannot be packaged. a packaging machine controller, means for accumulating and storing the number of drugs for each drug type based on the prescription data upon completion of the packaging operation, and means for calling up the cumulative number of drugs for each drug type. control device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP8487384A JPS60228223A (en) | 1984-04-25 | 1984-04-25 | Controller for medicine packaging machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP8487384A JPS60228223A (en) | 1984-04-25 | 1984-04-25 | Controller for medicine packaging machine |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP24192891A Division JP2883478B2 (en) | 1991-09-20 | 1991-09-20 | Control device for drug packaging machine |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS60228223A JPS60228223A (en) | 1985-11-13 |
JPH0253281B2 true JPH0253281B2 (en) | 1990-11-16 |
Family
ID=13842912
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP8487384A Granted JPS60228223A (en) | 1984-04-25 | 1984-04-25 | Controller for medicine packaging machine |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS60228223A (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0769302A (en) * | 1994-01-22 | 1995-03-14 | Tokyo Shokai:Kk | Medicine partial packer |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS53137642A (en) * | 1977-05-07 | 1978-12-01 | Toshiba Corp | Managing system for hospital information |
JPS5553768A (en) * | 1978-10-16 | 1980-04-19 | Sumitomo Electric Ind Ltd | Processor for turn-around prescription data |
JPS5734265A (en) * | 1980-08-05 | 1982-02-24 | Fujitsu Ltd | Medical business system |
JPS5977568A (en) * | 1982-10-26 | 1984-05-04 | Tokyo Shokai:Kk | Processor of medical prescription |
JPH0253282A (en) * | 1988-08-13 | 1990-02-22 | Sony Corp | Half for disk cartridge |
-
1984
- 1984-04-25 JP JP8487384A patent/JPS60228223A/en active Granted
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS53137642A (en) * | 1977-05-07 | 1978-12-01 | Toshiba Corp | Managing system for hospital information |
JPS5553768A (en) * | 1978-10-16 | 1980-04-19 | Sumitomo Electric Ind Ltd | Processor for turn-around prescription data |
JPS5734265A (en) * | 1980-08-05 | 1982-02-24 | Fujitsu Ltd | Medical business system |
JPS5977568A (en) * | 1982-10-26 | 1984-05-04 | Tokyo Shokai:Kk | Processor of medical prescription |
JPH0253282A (en) * | 1988-08-13 | 1990-02-22 | Sony Corp | Half for disk cartridge |
Also Published As
Publication number | Publication date |
---|---|
JPS60228223A (en) | 1985-11-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4733362A (en) | Drug dispensing apparatus with a printer having programmable format | |
US20020053183A1 (en) | Medication packing apparatus | |
JPH0549534B2 (en) | ||
JP2001273367A (en) | Stock control system for medicine | |
JP3730370B2 (en) | Medicine bag printing device | |
JPH048282B2 (en) | ||
JPH0253281B2 (en) | ||
JPH0253283B2 (en) | ||
JPH0253282B2 (en) | ||
JP2919579B2 (en) | Inventory control device for drug packaging machine | |
JPH0360721B2 (en) | ||
JP2810627B2 (en) | Control device for drug packaging machine | |
JP3519753B2 (en) | Tablet packing machine | |
JP2966798B2 (en) | Control method of drug packaging system | |
JP2883478B2 (en) | Control device for drug packaging machine | |
JP3030286B2 (en) | Drug packaging machine | |
JPS6077840A (en) | Method of controlling tablet packer | |
JPS63125101A (en) | Medicine packer | |
JPH03629A (en) | Dose packer | |
JP4691343B2 (en) | Dispensing management system | |
JPH07121721B2 (en) | Control device for drug packaging machine | |
JP3021584B2 (en) | Inventory control device for drug packaging machine | |
JP2000085728A (en) | Tablet packaging machine, and its cartridge printing method | |
JPH0227215B2 (en) | ||
JPH0444904A (en) | Medicine packaging machine |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
EXPY | Cancellation because of completion of term |