JPH0253282B2 - - Google Patents
Info
- Publication number
- JPH0253282B2 JPH0253282B2 JP59084874A JP8487484A JPH0253282B2 JP H0253282 B2 JPH0253282 B2 JP H0253282B2 JP 59084874 A JP59084874 A JP 59084874A JP 8487484 A JP8487484 A JP 8487484A JP H0253282 B2 JPH0253282 B2 JP H0253282B2
- 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, with conventional drug packaging machines, it is not possible to input all drug types that are instructed to be taken in a prescription, and 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 the input drug type and the number of drugs as prescription data, and when input for each drug type specifies that packaging is not required, this drug type in the prescription data is stored. Correct the number of drugs to "0" and create control data, control the packaging machine based on the control data, and accumulate and store the number of drugs for each drug type stored in the prescription data upon completion of packaging. It is the composition.
(ホ) 発明の実施例
第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 the packaging machine 11 performs a packaging operation based on the transferred prescription data.
第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 section 12 and generates key input signals, and a CRT 22 . It is equipped with a controller 21 that performs display control, 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 . ing. 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の登録開始
を表わすフアンクシヨンキーの操作にて処理が開
始される。この登録動作では、登録する薬品種が
水剤や散剤であつたり、または錠剤であつてもタ
ブレツトケース5…5に収納されていない場合は
包装機11で包装不能なために、コード番号を設
定しないことを示すフアンクシヨンキーを操作す
るものである。したがつてN0ステツプでキー入
力部12にキー入力があると、N1ステツプでは、
このキー入力内容が設定コード番号を示すテンキ
ーの操作による数値データか、或いはフアンクシ
ヨンキーの操作によるコード番号の不要を示すも
のであるかを判定する。数値データの場合、N2
ステツプでこの数値が示すコード番号を薬品フア
イルメモリM11〜M1oにストアする。薬品種毎に
対応する薬品フアイルメモリM11〜M1oは、第5
図に示すように記憶領域m7・m8・m9・m10を有
しており、薬品毎のコード番号データは記憶領域
m7にストアする。一方、テンキーの操作による
コード番号の入力に代つて、コード番号を設定し
ないことを示すフアンクシヨンキーが操作される
と、N1ステツプからN3ステツプとなる。N3ステ
ツプで当該薬品種に関しての略称がキー入力され
ると、N4ステツプではこの略称が既に登録され
ている他の薬品の略称と重複しないかを判定し
て、重複しない場合にはN5ステツプで略称コー
ドを対応する記憶部M11〜M1oの記憶領域m8にス
トアする。例えば「A錠」という名称の薬品につ
いて略称として「A」が入力されたとすると、文
字「A」を表わすキヤラクタコードが記憶領域
m8にストアされる。一方重複している場合には
N4ステツプからN3ステツプとなつてコードが再
度キー入力されるのを待機する。しかしてN6ス
テツプで当該薬品種の薬品名がキー入力される
と、N7ステツプで薬品名を構成する各文字を
夫々キヤラクタコードによつて記憶領域m9にス
トアする。斯る処理を薬品種毎に繰り返して薬品
フアイルメモリM11〜M1oにコード番号データ・
略称コード及び薬品名を登録し、N8ステツプで
キー入力部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. In this registration operation, if the drug type to be registered is a liquid medicine, a powder medicine, or even a tablet, if it is not stored in the tablet case 5...5, the packaging machine 11 cannot pack it, so the code number is not entered. This is to operate a function key that indicates not to set. Therefore, if there is a key input in the key input section 12 at step N0 , then at step N1 ,
It is determined whether the key input content is numerical data indicating a set code number by operating the ten keys, or indicating that the code number is not required by operating the function keys. For numerical data, N 2
In this step, the code number indicated by this value is stored in the drug file memories M11 to M1o . The drug file memories M 11 to M 1o corresponding to each drug type are the fifth
As shown in the figure, it has a storage area of m 7 , m 8 , m 9 , and m 10 , and the code number data for each drug is stored in the storage area.
Store in m7 . On the other hand, if a function key indicating that a code number is not set is operated instead of inputting a code number by operating the numeric keypad, steps N1 to N3 occur. When the abbreviation for the drug type is entered in step N3 , it is determined in step N4 whether this abbreviation overlaps with the abbreviation of another drug that has already been registered, and if there is no overlap, the abbreviation is In this step, the abbreviation code is stored in the storage area m8 of the corresponding storage unit M11 to M1o . For example, if "A" is entered as the abbreviation for a drug named "A tablet," the character code representing the letter "A" is stored in the storage area.
Stored in m8 . On the other hand, if there are duplicates,
The code changes from step N4 to step N3 and waits for the code to be keyed in again. When the drug name of the drug type is key-input in step N6 , each character constituting the drug name is stored in the storage area m9 in step N7 using a character code. This process is repeated for each drug type to store code number data in drug file memories M11 to M1o .
The abbreviation code and drug name are registered, and when it is detected in step N8 that the function key indicating the end of registration in the key input unit 12 has been operated, the registration operation is ended.
制御装置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 to M1o . In the N10 step, "1" is stored in the register R3 and the transfer number is set to 1, and "0" is stored in the register R4.In the N11 step, the transfer request signal from the control device 14 is stored. The presence or absence is determined, and if the transfer request signal is not output, the presence or absence of key input is determined in step N12 . When the key input section 12 is operated,
Once the abbreviations and number of drugs to be administered at noon, evening, and before bedtime, as well as the number of days to take them, are entered using the keypad, in step N13 , the prescription data based on the contents of the keystrokes is entered in the format shown in Figure 7. Create and store in any prescription data memory M21 to M2o ,
Hereinafter, it is assumed that the prescription data is stored in the prescription data memory M21 .
第8図はN13ステツプでの動作を説明するフロ
ーチヤートである。n0ステツプで薬品の略称がキ
ー入力されると、n1ステツプでは薬品フアイルメ
モリM11〜M1oを牽引して何れの薬品がキー入力
されたかを判定してn2ステツプとなる。しかしな
がら何れの薬品フアイルメモリM11〜M1oにもキ
ー入力された略称と同じ略称がストアされていな
いと、n0ステツプに復帰して再度の略称入力を待
機する。n2ステツプは、キー入力された略称に一
致する薬品のコード番号及び薬品名を薬品フアイ
ルメモリM11〜M1oより読み取つて、夫々処方デ
ータメモリM21の記憶領域m5・m6にストアする。
しかして入力された薬品種が水剤や散剤であつた
り、または錠剤でもタブレツトケース5…5に収
納されていない種類であつたりして分包不能であ
ると、キー入力部12の分包不要キーが操作され
る。したがつて分包不要キーが操作されるとn3ス
テツプからn4ステツプとなつて、処方データメモ
リM21の記憶領域m5には「0」が書込まれる。
そしてn5ステツプでその薬品の朝・昼・夕・就寝
前毎の薬数が入力されると、n6ステツプでは処方
データメモリM21の記憶領域m2の0〜3までの
各アドレスに朝・昼・夕・就寝前毎の薬数データ
を書込み、n7ステツプでキー入力があると、n8ス
テツプではキー入力の内容が薬品に関する略称で
あるか或いは服用日数であるかを判定する。1分
包中に複数種の錠剤を包装する場合には略称が再
度入力されるために、n1ステツプに復帰して同様
な処理が繰返されて、処方データメモリM21には
この略称に一致する薬品のコード番号・薬品名及
び薬数がストアされる。しかして1分包中に包装
すべき薬品及びその薬数の設定が終了して、服用
日数がn7ステツプで入力されると、n8ステツプか
らn9ステツプとなつて処方データメモリM21の記
憶領域m1に日数データをストアする。n10ステツ
プは、日数データの入力により朝・昼・夕・就寝
前毎の総分包数を演算して、処方データメモリ
M21の記憶領域m3の各アドレス0〜3までにス
トアする。n11ステツプでは、レジスタR3にスト
アしている転送番号を処方データメモリM21の記
憶領域m4に書込み、n12ステツプでレジスタ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 at step n0 , the drug file memories M11 to M1o are checked at step n1 to determine which drug has been keyed in, and step n2 is reached. 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. .
However, if the entered drug type is a liquid medicine or powder medicine, or a type of tablet that is not stored in the tablet case 5...5 and cannot be packed, the key input section 12 Unnecessary keys are operated. Therefore, when the sachet-free key is operated, "0" is written in the storage area m5 of the prescription data memory M21 from step n3 to step n4 .
Then, in step n5 , when the number of drugs in the morning, afternoon, evening, and before bedtime is input, in step n6 , each address from 0 to 3 in the storage area m2 of the prescription data memory M21 is entered in the morning, afternoon, evening, and before bedtime. - When data on the number of drugs for lunch, evening, and before bedtime is written, and there is a key input at step n7 , it is determined at step n8 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 prescription data memory M21 stores data that matches this abbreviation. The code number, drug name, and number of drugs to be used are stored. When the setting of the medicines to be packed in one sachet and the number of medicines is completed, and the number of days to be taken is entered in step n7 , steps n8 to n9 are entered in the prescription data memory M21 . Store the number of days data in storage area m1 . n 10 steps calculate the total number of sachets for each morning, noon, evening, and before bedtime by inputting the number of days data, and store it in the prescription data memory.
Store in each address 0 to 3 of storage area m3 of M21 . In step n11 , the transfer number stored in register R3 is written to storage area m4 of prescription data memory M21 , and in step n12 , 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 such key input.
It shows the display contents, including the drug name specified by the operator's key input and the morning date of this drug. noon·
The number of medicines taken in the evening and before going to bed and the number of days are displayed on display parts 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 Figure 9, one tablet A, one B, and one C are packed in the morning, noon, and evening for 7 days, and one powder E is packed in the morning, noon, 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 by other powder medicine packaging machines, but they are input for inventory management. Therefore, code number data for each drug 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 from No. 1 to No. Medication number data "1" is written in addresses 0 to 2 corresponding to morning, noon, evening, and before bedtime in each storage area m2 that stores drug number data up to No. 3, and address 3 is written with drug number data "1". "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 number of medicines data and the number of days data, the total number of sachets for each 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 using 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ステツプとなつて処方データメモリM2
の記憶領域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 M 21 through the process of the N 13 step described above, the prescription data is stored in the prescription data memory M 2 at the N 20 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図は制御データ作成のフローチヤートを
示しており、m20ステツプは処方データをストア
しているメモリM21〜M2oを選定し、且つ選定し
たメモリM21の各記憶領域m5・m2で先頭の記憶
領域m5・m2を指定する。n21ステツプは、処方デ
ータメモリM21の記憶領域m5にストアしている
薬品のコード番号データを制御データメモリM3
の記憶領域m5′に書込む。制御データメモリM3
は、処方データメモリ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 m20 step selects the memories M21 to M2o that store prescription data, and selects each memory 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 M3
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 n23 steps and each address 0 to 2 of storage area m2 of prescription data memory M21 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
By repeating the process up to step n20 , the storage area m5 of the prescription data memory M21 selected in step n20 is
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 into 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 m 5 ' corresponding to the E powder, and data from No. 1 of the control data memory M 3 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′のうちのアドレス0
を夫々指定する。n28ステツプは各記憶領域m2′の
アドレス0に夫々ストアしている薬品種毎の薬数
データの論理和が「0」であるかを判定する。こ
のとき各記憶領域m2′のアドレス0にストアして
いる薬数データの少くとも一つが「0」以外であ
ると、n29ステツプで記憶領域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のアドレスが記憶領域m3を越える
と、n32ステツプからN22ステツプとなる。したが
つて本例の処方入力に依れば、就寝前の服用はE
散剤のみであり、制御データメモリM3における
各記憶領域m2′のアドレス3にストアされている
データの論理和は「0」のために、記憶領域
m3′のアドレス3には修正値である「0」が書込
まれる。 The n27 step specifies the first address 0 in the storage area m3 of the storage section of the prescription data memory M21 selected in the n20 step, and also specifies the address 0 of each storage area m2 ' of the control data memory M3. 0
Specify each. The n28 step determines whether the logical sum of the drug number data for each drug type stored at address 0 of each storage area m 2 ' is "0". At this time, if at least one of the drug count data stored at address 0 of each storage area m 2 ' is other than "0", the data stored at address 0 of storage area m 3 at step n 29 is The total number of sachets data is
Address 0 of storage area m 3 ' of control data memory M 3
write to. Also, if the drug number data stored at address 0 of each storage area m 2 ' is all "0",
Control data memory M3 storage area with n 30 steps
Write "0" to address 0 of m 3 '. The n31 step stores the prescription data memory M2 selected in the n27 step.
Shifts the address in the storage area m3 of the storage unit from 0 to 1, and also shifts the address in the control data memory
The addresses of each storage area m 2 ' of 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 prescription data memory M 2 has exceeded, and the address is within 3. We are moving to n28 step. In the processing from step n28 to step n32 , the logical sum of the drug number data for each drug type stored in each address 1 of each storage area m2 ' of the control data memory M3 is "0". It is determined whether or not it is necessary to correct the daytime total number of packets data, and if it is other than "0", it is assumed that no correction is necessary and the data stored at address 1 of the storage area m 3 is transferred to the storage area m 3 ′. Write to address 1 of , and if it is "0", the storage area
Write "0" to address 1 of m 3 ' to correct the data on the total number of packages. 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 m3 , the step changes from n32 steps to N22 steps. Therefore, according to the prescription input in this example, the dose before bedtime is E.
Since the logical sum of the data stored at address 3 of each storage area m 2 ' in the control data memory M 3 is "0", the 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〜M2oにキー入力データをスト
アする。 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 M2o 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 tablet 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 N 8 ' step, "1" is subtracted from the drug number data for the tablet type for which the extraction operation was performed, and the process returns to the N 6 ' step. In this example, the morning parcels include A, B,
A register is used to package various drugs of C, one tablet at a time.
The data for the number of various drugs A, B, and C stored in R 2 is "0". Therefore, 1 in the morning
The divided tablets are taken out 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, After that,
A control signal is applied to the drive device of the feed roller 11 to transport the wrapping paper 6 by a predetermined length in the longitudinal direction, thereby completing the wrapping operation of the morning dose packet. In the N 10 ′ step, address 0 of the storage area m 3 ″ of the memory M 4 is specified by the content “0” of the control counter 27, and “ 1 ” is subtracted from the data stored there. In the step, it is determined whether the data at all addresses 0 to 3 in the storage area m 3 '' are "0". In this case, one packet for the morning dose is completed and the storage area is
This is the stage where "1" has been subtracted from the data at address 0 of m 3 ", and the content CN of the control counter 27 is advanced from "0" to "1" at step N 12 ', and the process returns to step N 4 '. 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". At this time, the content of address 1 is "7". "for
The program moves to the N5 ' step and begins the packaging operation for daytime meals.
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,
In the daytime packets, each drug A, B, and C is packed one tablet at a time, so 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ステツプとなる。
N15ステツプは、処方データメモリ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 .
The N15 step selects the drug file memory corresponding to the drug name stored in the prescription data memory M21 .
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, this is stored as prescription data, and when the input drug type specifies that separate packaging is not required, the drug is Control is performed so that the number of seeds is corrected to "0" and the packaging operation is performed. Therefore, it becomes possible to input all types of drugs handled at a pharmacy, including drugs that cannot be packaged by a packaging machine, according to prescriptions, and a drug packaging machine with drug management functions is provided. Furthermore, in order to specify whether or not packaging is required for each drug type, it is not only possible to determine whether or not the drug is stored in the packaging machine, but also to set the stored drug types to be unpacked as appropriate, resulting in the effects described below. There is. That is, the drug packaging machine is configured so that if the drug specified for packaging cannot be extracted normally due to a malfunction in the tablet case, the machine stops operating as an abnormality. However, if recovery requires time, it is customary for pharmacies to manually package the drug types that will not be extracted, and use a packaging machine to package other drug types that can be successfully extracted. Therefore, in such a case, if a drug type that is not extracted is entered, the packaging machine will not operate and the input will not be possible, which will cause problems in drug inventory management.
However, according to the present invention, it is possible to input the types of medicines that are not extracted normally, so that the cumulative number of medicines can be accurately recorded.
第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 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 specifying whether or not packaging is required for each input drug type, and a means for storing the entered drug type and number of drugs as prescription data; If the prescription data includes a drug type for which packaging is not required by the packaging necessity specifying means, the packaging machine is controlled to perform a packaging operation based on the prescription data, excluding the drug type. A control device for a drug packaging machine comprising: a packaging machine controller; means for accumulating and storing the number of drugs for each drug type based on the prescription data; and means for calling up the accumulated number of drugs for each drug type.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP8487484A JPS60228224A (en) | 1984-04-25 | 1984-04-25 | Controller for medicine packaging machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP8487484A JPS60228224A (en) | 1984-04-25 | 1984-04-25 | Controller for medicine packaging machine |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP24192991A Division JPH07121721B2 (en) | 1991-09-20 | 1991-09-20 | Control device for drug packaging machine |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS60228224A JPS60228224A (en) | 1985-11-13 |
JPH0253282B2 true JPH0253282B2 (en) | 1990-11-16 |
Family
ID=13842937
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP8487484A Granted JPS60228224A (en) | 1984-04-25 | 1984-04-25 | Controller for medicine packaging machine |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS60228224A (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07149301A (en) * | 1994-06-20 | 1995-06-13 | Sanyo Electric Co Ltd | Medicine 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 |
JPH0253281A (en) * | 1988-08-16 | 1990-02-22 | Sony Corp | Disk cartridge shutter opening/closing mechanism |
-
1984
- 1984-04-25 JP JP8487484A patent/JPS60228224A/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 |
JPH0253281A (en) * | 1988-08-16 | 1990-02-22 | Sony Corp | Disk cartridge shutter opening/closing mechanism |
Also Published As
Publication number | Publication date |
---|---|
JPS60228224A (en) | 1985-11-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH0335181B2 (en) | ||
US7155396B2 (en) | Drug preparation instruction system | |
US20020053183A1 (en) | Medication packing apparatus | |
JPH0549534B2 (en) | ||
JP5304433B2 (en) | Drug management system | |
JP2001273367A (en) | Stock control system for medicine | |
JPH048282B2 (en) | ||
JPH0253282B2 (en) | ||
JPH0253283B2 (en) | ||
JPH0253281B2 (en) | ||
JP2919579B2 (en) | Inventory control device for drug packaging machine | |
JPH0360721B2 (en) | ||
JP2810627B2 (en) | Control device for drug packaging machine | |
JP2966798B2 (en) | Control method of drug packaging system | |
JP2883478B2 (en) | Control device for drug packaging machine | |
JP3030286B2 (en) | Drug packaging machine | |
JPH06227526A (en) | Tablet-wrapping machine | |
JP4691343B2 (en) | Dispensing management system | |
JPH0227215B2 (en) | ||
JP2000085728A (en) | Tablet packaging machine, and its cartridge printing method | |
JPH07121721B2 (en) | Control device for drug packaging machine | |
JPH03629A (en) | Dose packer | |
JP3021584B2 (en) | Inventory control device for drug packaging machine | |
JPH0227216B2 (en) | ||
JPH05147627A (en) | Medicine package-printing emthod of tabletpacking machine |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
EXPY | Cancellation because of completion of term |