JPS60240623A - Controller for medicine packaging machine - Google Patents
Controller for medicine packaging machineInfo
- Publication number
- JPS60240623A JPS60240623A JP9329084A JP9329084A JPS60240623A JP S60240623 A JPS60240623 A JP S60240623A JP 9329084 A JP9329084 A JP 9329084A JP 9329084 A JP9329084 A JP 9329084A JP S60240623 A JPS60240623 A JP S60240623A
- Authority
- JP
- Japan
- Prior art keywords
- data
- drug
- storage area
- prescription
- stored
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Auxiliary Devices For And Details Of Packaging Control (AREA)
- Basic Packing Technique (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
(イ)産業上の利用分野
本発明は病院等に於いて、患者毎に異る処方箋に基づき
1種類または数種類の薬剤を選択的に包装できる薬剤包
装機に関する。DETAILED DESCRIPTION OF THE INVENTION (A) Field of Industrial Application The present invention relates to a drug packaging machine that can selectively package one or several types of drugs in hospitals and the like based on different prescriptions for each patient.
(ロ)従来技術
薬局業務において、患者の薬の服用歴を調べる必要が往
々にしてあり、薬局での処方箋管理システムが望まれて
いる。ところで薬局において使用される薬剤包装機は、
例えば特公昭56−48362号公報や特開昭54−3
8887号公報で開示されているように、医師の処方箋
にそって予め薬品種及び薬数なキー人力することで、こ
の入力処方データに基づく分包を連続して作成する構成
である。したがって入力される処方データを包装終了後
も記憶保持することで処方箋管理にも適用されるのであ
るが、かかる機能を備えた薬剤包装機は未だ存在しない
。しかして多種類の薬品を選択的に包装する薬剤包装機
は、現在のところ錠剤が主で水剤及び散剤等は包装でき
ないために、病院の薬局オペレータは各診療科から送ら
れてくる処方箋より薬剤包装機で分包可能な薬品のみを
選別して入力している。そのため現状の薬剤包装機では
、包装不能な薬品種は入力されないため罠、処方箋管理
を行うことは不可能である。(B) Prior Art In pharmacy operations, it is often necessary to check a patient's medication history, and a prescription management system for pharmacies is desired. By the way, drug packaging machines used in pharmacies are
For example, Japanese Patent Publication No. 56-48362 and Japanese Patent Publication No. 54-3
As disclosed in Japanese Patent No. 8887, the system is configured to manually input the drug type and number of drugs in advance according to the doctor's prescription, and then sequentially create sachets based on the input prescription data. Therefore, it can also be applied to prescription management by storing input prescription data even after packaging is completed, but there is no drug packaging machine equipped with such a function yet. However, drug packaging machines that selectively package many types of drugs currently only package tablets and cannot package liquids, powders, etc. Only drugs that can be packaged using a drug packaging machine are selected and input. Therefore, with current drug packaging machines, drug types that cannot be packaged are not input, making it impossible to manage traps and prescriptions.
に)発明の目的
本発明は、薬剤包装機で分包不可能な種類も含めて薬局
での全ての薬品種の入力を可能にすることで、処方箋に
沿って入力されるデータを記録して処方箋管理を成し得
る薬剤包装機を提供するものである。B) Purpose of the Invention The present invention enables the input of all types of drugs at pharmacies, including those that cannot be packaged separately using a drug packaging machine, thereby recording the data entered in accordance with the prescription. The present invention provides a drug packaging machine that can manage prescriptions.
(ホ)発明の構成
本発明は、1処方毎に入力される薬品種及びその薬数を
1処方データとして記憶し、且つこの処方データに示さ
れる薬品種のうちで包装可能な薬品種のみを指定の薬数
だけ包装して、包装終了によりこの処方データを外部記
憶′装置に蓄積し、処方データの表示指令に応答して外
部記憶装置に記録した所定の処方データを読出して表示
するように17た構成である。(E) Structure of the Invention The present invention stores the drug types and the number of drugs input for each prescription as one prescription data, and stores only the drug types that can be packaged among the drug types shown in this prescription data. A specified number of drugs are packaged, and upon completion of packaging, this prescription data is stored in an external storage device, and in response to a command to display prescription data, predetermined prescription data recorded in the external storage device is read out and displayed. It has a 17-piece configuration.
(ホ)発明の実施例
第1図は錠剤包装機の外観図を示1.、操作器(至)と
包装機(ロ)とから構成されている。操作器(2)はキ
ー人力部(2)のキー操作により処方データを作成して
包装機αηに転送し、包装機α℃は転送された処方゛デ
ータにより包装動作を行なう。(E) Embodiment of the invention FIG. 1 shows an external view of a tablet packaging machine. , an operating device (2) and a packaging machine (2). The operating device (2) creates prescription data by operating the keys of the key operator (2) and transfers it to the packaging machine αη, and the packaging machine α°C performs a packaging operation based on the transferred prescription data.
第2図は包装機αηの構成を示し、上部にタブレットケ
ース収納部(1)が形成されており、そのT1にホッパ
(2)及びシャッタ(3)と錠剤包装機構(4)が配置
されている。タブレットケース収納部(1)には錠剤の
種類に応じてタブレットケース(5)・・・(5)が載
置されており、タブレットケース(5)・・・(5)は
所定の摘出信号の入力により駆動して錠剤を摘出し、図
示しない落下通路を通してホッパ(2)へ導入するよう
に構成されている。錠剤包装機構(4)は、熱溶着が可
能で予め二つ折りにされた包装紙(6)を巻回したロー
ラ(7)、テンシコンローラ(8)、そして包装紙(6
)ヲ縦にヒートシールして連続した小袋を形成する縦ヒ
ートシール機構(9)、更に錠剤が投入された小袋の上
部開口を密封する横ヒートシール機構(ト)、及び送り
ローラαpとから構成されている。そして送りローラ(
ロ)は間欠的に駆動して包装紙(6)を搬送し、搬送停
止時に縦ヒートシールによる分包装の形成・シャッタ(
3)の開放による分包装への錠剤投入・横ヒートシール
による分包装の密封の各動作が成される。Figure 2 shows the configuration of the packaging machine αη, in which a tablet case storage section (1) is formed at the top, a hopper (2), a shutter (3), and a tablet packaging mechanism (4) are arranged at T1. There is. 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 set according to the predetermined extraction signal. It is configured to be driven by an input to extract tablets and introduce them into a hopper (2) through a falling passage (not shown). The tablet packaging mechanism (4) includes a roller (7) around which a wrapping paper (6) that can be thermally welded and is folded in half in advance, a tensicon roller (8), and a wrapping paper (6) are wound.
) consists of a vertical heat-sealing mechanism (9) that vertically heat-seals the pouches to form a continuous pouch, a horizontal heat-sealing mechanism (g) that seals the upper opening of the pouch into which tablets are inserted, and a feed roller αp. has been done. And the feed roller (
B) is driven intermittently to convey the wrapping paper (6), and when the conveyance is stopped, the shutter (
The operations of 3) of inserting the tablet into the divided package by opening and sealing the divided package by lateral heat sealing are performed.
第3図は本発明による錠剤包装機の制御装置を示し、(
ト)は操作器(転)側の制御装置、(ロ)は包装機(ロ
)側の制御装置で、送信データをシリアル変換して且つ
受信データをパラレル変換するインタフェイスOQa枠
を介し伝送線αηによって接続されている。FIG. 3 shows a control device for a tablet packaging machine according to the present invention, (
(g) is a control device on the operating device (transmission) side, and (b) is a control device on the packaging machine (b) side, which converts the transmitted data into serial data and the received data into parallel data via the transmission line OQa frame. connected by αη.
制御装置α3は、中央処理装置(ト)と、操作器輔側の
制御手順をプログラムしたシステムメモリα呻と、キー
人力部(2)の操作を検出してキー人力信号を発生スる
キーボードインターフェイス翰と、CRT翰の表示制御
を行うコントローラシカと、薬品種毎に対応する薬品フ
ァイルメモリM1.〜M、n及び処方データメモリM1
.〜M2nと、制御データメモリM3 と、レジスタR
3・R2と、処方データを記録する磁気ディスク或いは
フロッピーディスク等の外部記憶装置輪及びそのコント
ローラ輪と、プリンター及びプリンタコントロール0力
とを具備している。そして制御装置(ロ)は、包装機(
ロ)側の制御手順をプログラムしたシステムメモリ■と
、包装機αηの包装動作を制御する包装機コントローラ
翰と、中央処理装置(財)と、メモリM4と、制御カウ
ンタ■と、レジスタR1・R1とを具備している。The control device α3 includes a central processing unit (G), a system memory α in which the control procedure for the operating device is programmed, and a keyboard interface that detects the operation of the key human power unit (2) and generates a key human power signal. A controller for controlling the display of the screen and the CRT screen, and a drug file memory M1. ~M, n and prescription data memory M1
.. ~M2n, control data memory M3, and register R
3.R2, an external storage device such as a magnetic disk or floppy disk for recording prescription data, a controller thereof, a printer and a printer control unit. The control device (b) controls the packaging machine (
b) System memory ■ in which the control procedures on the side are programmed, a packaging machine controller that controls the wrapping operation of the packaging machine αη, a central processing unit, memory M4, a control counter ■, and registers R1 and R1. It is equipped with.
第4図は、制御装置cL3が薬品ファイルメモ’J M
sI〜M、nに薬局で扱う全ての薬品の名称・略称コー
ド及びコード番号を登録するときの動作を示すフローチ
ャートで、キー人力部(2)の登録開始を表わすファン
クションキーの操作にて処理が開始される。NOステッ
プでは、キー人力部(2)のテンキーの操作にて薬品種
についての任意のコード番号が入力される。このとき登
録すべき薬品が包装機(ロ)で分包可能で、何れかのタ
ブレットケース(5)・・・(5)に充填している場合
には、テンキーにて「0」以外のコード番号が入力され
、また包装機αηで分包不可能な散剤或いは水剤の場合
にはテンキーによって「0」が入力される。N、ステッ
プはキー人力されたコード番号データを薬品ファイルメ
モリM11−M1nにストアするものである。薬品種毎
に対応する薬品ファイルメモリM、1〜M1nは、夫々
第5図に示すように記憶領域町・m8・m、・my、を
有しており、薬品毎のコード番号データは記憶領域m、
にストアする。モしてN、ステップで当該薬品種に関し
ての略称がキー人力されると、N。Fig. 4 shows that the control device cL3 displays the drug file memo 'J M
This is a flowchart showing the operation when registering the name/abbreviation code and code number of all drugs handled at the pharmacy in sI~M,n. will be started. In the NO step, an arbitrary code number for the drug type is input by operating the numeric keypad of the key manual section (2). At this time, if the drug to be registered can be packaged using the packaging machine (B) and is being filled into any of the tablet cases (5)...(5), enter a code other than "0" using the numeric keypad. A number is input, and in the case of a powder or liquid medicine that cannot be packaged by the packaging machine αη, “0” is input using the numeric keypad. Step N is for storing the code number data entered manually in the drug file memories M11-M1n. The drug file memories M, 1 to M1n corresponding to each drug type each have storage areas .m8.m, .my, as shown in FIG. 5, and the code number data for each drug is stored in the storage area. m,
Store in. When the abbreviation for the drug type is entered in step N.
ステップではこの略称が既に登録されている他の薬品の
略称と重複しないかを判定して、重複しない場合にはN
4ステツプで略称コ、−ドを対応する記憶部M、1〜M
、nの記憶領域町にストアする。In the step, it is determined whether this abbreviation is the same as the abbreviation of another drug that has already been registered, and if it is not, it is N.
In 4 steps, write the abbreviation code to the corresponding memory section M, 1 to M.
, n storage area town.
例えば「A錠」という名称の薬品について略称として「
A」が入力されたとすると、文字rAJを表わすキャラ
クタコードが記憶領域町にストアされる。一方重複して
いる場合にはN3ステップからN、ステップとなってコ
ードが再度キー人力されるのを待機する。しかしてN、
ステップで当該薬品種の薬品名がキー人力されると、N
6ステノプで薬品名を構成する各文字を夫々キャラクタ
コードによって記憶領域町にストアする。斯る処理を薬
品種毎に繰り返して薬品ファイルメモリM1.〜M、n
にコード番号データ・略称コード及び薬品名を登録し、
N、ステップでキー人力部(6)の登録終了を表わすフ
ァンクションキーが操作されたことを検出すると登録動
作を終了する。For example, the abbreviation for a drug named "A tablet" is "
If "A" is input, a character code representing the character rAJ is stored in the storage area. On the other hand, if there is a duplicate, the process moves from step N3 to step N, and waits for the code to be entered manually again. However, N.
When the drug name of the relevant drug type is entered manually in the step, N
Each character constituting the drug name is stored in the storage area by character code using 6 stenops. This process is repeated for each drug type to store the drug file memory M1. ~M,n
Register code number data, abbreviation code, and drug name in
When it is detected in step N that the function key representing the end of registration of the key manual unit (6) has been operated, the registration operation is ended.
1 制御装置(141は制御装置Uより送信される制御
データに基づき包装制御を行うが、制御装置(至)α尋
問の転送モードは制御装置Q4が制御装置a3へ転送要
求信号を送信することで始まる。このとき制御装置(ロ
)は包装制御を行っていない状態で定期的にこの転送要
求信号を出方するものである。第6図は制御装置(2)
の通常の動作を示すフローチャートで、薬品ファイルメ
モリM、、 −M、nへの登録動作以外では常にこのフ
ローチャートに基づく処理を実行している。N、。ステ
ップはレジスタR8には「1」をストアして転送番号を
1にセットし、且つレジスタR4には「o」をストアし
、N1.ステップでは制御装置(ロ)からの転送要求信
号の有無を判定し、転送要求信号が出力されていないと
Nilステップでキー人力の有無を判定する。キー人力
部(6)が操作されて、朝・昼・夕・就寝前毎に投薬す
る薬品毎の略称及び薬数と服用する日数がキー人力され
ると、N8.ステップでは第7図のフォーマットにした
がってこのキー久方内容に基づ(処方データを作成して
何れかの処方データメモリM□〜M2nに記憶するが、
以下処方で一タメモ’J Mt+に記憶するものとして
説明する。1 The control device (141) performs packaging control based on the control data sent from the control device U, but the transfer mode of the control device (to) α interrogation is controlled by the control device Q4 sending a transfer request signal to the control device a3. At this time, the control device (B) periodically outputs this transfer request signal without performing packaging control. Fig. 6 shows the control device (2).
This is a flowchart showing the normal operation of this flowchart, and processes based on this flowchart are always executed except for the registration operation in the drug file memories M, -M, and n. N. The step is to store "1" in register R8 and set the transfer number to 1, store "o" in register R4, and store N1. In the step, the presence or absence of a transfer request signal from the control device (b) is determined, and if the transfer request signal is not output, the presence or absence of key human power is determined in the Nil step. When the key input unit (6) is operated and the abbreviation and number of drugs to be administered in the morning, afternoon, evening, and before bedtime and the number of days to be taken are entered, N8. In the step, prescription data is created and stored in one of the prescription data memories M□ to M2n based on the contents of this key according to the format shown in FIG.
The following description will be made assuming that the prescription is stored in IchitaMemo'J Mt+.
第8図はN、3ステツプでの動作を説明するフローチャ
ートである。ル。ステップで患者名及び処方年月日がキ
ー人力されると、ルイステップで処方データメモ17
M□の記憶領域m、に患者名を構成する各文字をキャラ
クタコードで記憶し、且つ記憶領域m、の各アドレスO
〜2までに年月日データを夫々記憶する。ルイステップ
で薬品の略称がキー人力されると、ルイステップでは薬
品ファイルメモリM11〜M1nを索引して倒れの薬品
がキー人力されたかを判定してfL4ステップとなる。FIG. 8 is a flowchart illustrating the operation in N, 3 steps. Le. When the patient name and prescription date are entered manually in the step, the prescription data memo 17 is entered in the Louis step.
Each character constituting the patient name is stored in the storage area m of M□ as a character code, and each address O of the storage area m is stored.
~ 2, the year, month, and day data are stored respectively. When the abbreviation of a drug is entered manually in the Louis step, the drug file memories M11 to M1n are indexed in the Louis step to determine whether the drug of interest has been entered manually, and the process proceeds to step fL4.
しかしながら何れの薬品ファイルメモリMu −Mly
lにもキー人力された略称と同じ略称がストアされてい
ないと、ルイステップに復帰じて再度の略称入力を待機
する。n4ステツプは、キー人力された略称に一致する
薬品のコード番号及び薬品名を薬品ファイルメモリM1
1 = Ml、1より読取って、夫々処方データメモリ
M2Iの記憶領域m、・m、にストアする。そし−(n
、ステップでその薬品の朝・昼・夕・就寝前毎の薬数が
入力されると、ルイステップでは処方データメモ’)
Muの記憶領域町のθ〜3までの各アドレスに朝・昼・
夕・就寝前毎の薬数データを書込み、n、ステップでキ
ー人力があると、ルイステップではキー人力の内容が薬
品に関する略称であるか或いは服用日数であるかを判定
する。1分包中に複数種の薬剤を包装する場合には略称
が再度入力されるために、n3ステツプに復帰して同様
な処理が繰返されて、処方データメモ’) M21には
この略称に一致する薬品のコード番号・薬品名・薬数が
ストアされる。しかして1分包中に包装すべき薬品及び
その薬数の設定が終了して、服用日数がrL7ステソプ
で入力されると、ルイステップからルイステップとなっ
て処方データメモリM21の記憶領域J K日数データ
をストアする。”1Gステツプは、日数データの入力に
より朝・昼・夕・就寝前毎の郭公包数を演算して、処方
データメモリM、1の記憶領域絢の各アドレス0〜3ま
でにストアする。rL11ステップでは、レジスタR3
にストアしている転送番号を処方データメモリM□の記
憶領域m4に書込み、rLI!ステップでレジスタR5
の内容を1加算計数して転送番号を1つ進めてNilス
テップに移行する。そして転送要求信号が送信されてい
ない状態で再び処方データのキー人力があると、メモリ
MBに処方データをストアするが、このとき処方データ
メモ’) Mttの記憶領域m4にはレジスタR8の内
容が1加算されているために、1つ進められた転送番号
がストアされる。However, which drug file memory Mu-Mly
If the same abbreviation as the one entered manually is not stored in l, the process returns to the Louis step and waits for the abbreviation to be input again. In the n4 step, the code number and drug name of the drug that match the abbreviation entered by the key are stored in the drug file memory M1.
1 = Ml, read from 1 and stored in storage areas m, .m, of prescription data memory M2I, respectively. Soshi-(n
, When the number of drugs for each morning, noon, evening, and before bedtime is entered in the step, the prescription data memo' is entered in the Louis step.
Morning, noon,
Data on the number of medicines in the evening and before going to bed is written, and if there is a key input in step n, the Louis step determines whether the content of the key input is an abbreviation related to the drug or the number of days it is taken. When multiple types of drugs are packaged in one sachet, the abbreviation is input again, so the process returns to step n3, the same process is repeated, and the prescription data memo') M21 is filled in with the abbreviation that matches this abbreviation. The code number, drug name, and number of drugs to be used are stored. When the setting of the drugs to be packaged in one sachet and the number of drugs thereof is completed, and the number of days of administration is entered in the rL7 step, the Louis step changes to the Louis step and the storage area JK of the prescription data memory M21 is entered. Store the number of days data. The 1G step calculates the number of Guo Gongbao for each morning, noon, evening, and before bedtime by inputting the number of days data, and stores it in each address 0 to 3 of the storage area Aya of the prescription data memory M, 1.rL11 In the step, register R3
Write the transfer number stored in the storage area m4 of the prescription data memory M□, and write the transfer number stored in the rLI! register R5 in step
The content of is incremented by 1, the transfer number is advanced by 1, and the process moves to the Nil step. Then, when the prescription data key is available again without the transfer request signal being sent, the prescription data is stored in the memory MB, but at this time, the contents of the register R8 are stored in the storage area m4 of the prescription data memo') Mtt. Since the transfer number is incremented by 1, the transfer number incremented by 1 is stored.
第9図はかかるキー人力時におけるCRT@の表示内接
を示しており、オペレータのキー人力にて指定される薬
品名及びこの薬品の朝・昼・夕・就寝前毎の剤数と日数
と処方年月日は表示部61)(至)曽に)で夫々表示し
、そして略称に基づき薬品ファイルメモリM、、 −M
、nより読取ったコード番号は表示部−で表示する。ま
た患者名と転送番号は表示部@(至)で表示する。この
第9図に示す入力例では、朝・昼・夕毎にA錠・B錠・
0錠を一錠づつ7日分分包し、朝・昼・夕・就寝前毎に
E散剤を一単位づつ7日分分包とすることがキー人力さ
れたことを示している。尚、散薬であるE散剤は、包装
機(ロ)にては分包不可能で他の散薬専用の包装機或い
は手作業により分包されるが、在庫管理のために入力さ
れる。したがって処方データメモリM、Iの嵐1から隘
4までの各記憶領域m、には夫々A−B−C−Eの各薬
品のコード番号データが書込まれ、且つ遅1から洩3ま
での薬数データをストアする各記憶領域m2の朝・昼・
夕・就寝前に対応するアドレスO〜2には夫々薬数デー
タ[1]が書込まれると共にアドレス3には「0」が書
込まれ、隨4の記憶領域絢の各アドレスO〜3には夫々
「1」が書込まれ、記憶領域m1には日数データ「7」
が書込まれる。そして薬数データと日数データの入力に
より、朝・昼・夕・就寝前毎の線分包数を演算して記憶
領域?FL3の各アドレスO〜3までにストアすると共
圧、CRTHの表示部−に表示する。またE散剤は、包
装機(ロ)で分包不可能なためコード番号としては「0
」が処方データメモリM!、にストアされているが、C
RT@の表示部(ロ)はE散剤については「・・・」な
表示して分包不能であることを示している。Figure 9 shows the display inscription of CRT@ when the key is manually operated, and shows the name of the drug specified by the operator's key manually, the number of doses and days of this drug for each morning, noon, evening, and before bedtime. The prescription date is displayed respectively on the display section 61) (to) soni), and the drug file memory M, -M is displayed based on the abbreviation.
, n are displayed on the display section -. Furthermore, the patient name and transfer number are displayed in the display section @ (to). In the input example shown in Fig. 9, A tablet, B tablet,
This shows that the key human effort was to package 0 tablets in 7-day doses, and to package 1 unit of E powder in the morning, at noon, in the evening, and before bedtime for 7 days. Powder E, which is a powdered medicine, cannot be packaged in a packaging machine (b) and is packaged manually or in another packaging machine dedicated to powdered medicines, but it is input for inventory management. Therefore, code number data for each drug A-B-C-E is written in each storage area m from Arashi 1 to Arashi 4 of prescription data memories M and I, and Morning, noon, and
Medication count data [1] is written to the addresses O to 2 corresponding to evening and before going to bed, and "0" is written to the address 3, and to each address O to 3 of the storage area Aya of the number 4. "1" is written to each of them, and the number of days data "7" is written in the storage area m1.
is written. Then, by inputting the drug number data and the number of days data, calculate the number of line segment packages for each morning, noon, evening, and before bedtime, and calculate the storage area. When stored in each address O to 3 of FL3, it is displayed on the display section - of the common pressure and CRTH. Powder E cannot be packaged using a packaging machine (B), so its code number is “0.”
” is the prescription data memory M! , but C
The display part (b) of RT@ shows "..." for powder E, indicating that it cannot be packaged.
このようにして処方データを作成してN11ステツプに
復帰し、制御装置α→かも転送要求信号が送信されてい
るのを検出すると、NニステップとなってレジスタR4
の内容が「0」以外の値であるかを判定する。レジスタ
R4は、包装機(ロ)が包装動作中であると、このとき
の包装動作の基となる処方データの転送番号をストアし
ている。したがって現在、包装機(ロ)が包装動作を停
止しているとレジスタR4の内容が「O」のために、N
、9ステツプに移行して処方データの有無を判定する。After creating the prescription data in this way, the process returns to the N11 step, and when it detects that a transfer request signal is being transmitted from the control device α, the N2 step occurs and the register R4
It is determined whether the content of is a value other than "0". When the packaging machine (b) 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 (B) has stopped the wrapping operation, the content of register R4 is "O", so N
Then, the process moves to step 9 to determine whether there is prescription data.
そして前述のN18ステツプの処理により処方データメ
モリM!lに処方データをストアしていると、Nわステ
ップとなって処方データメモlJMtの記憶領域TrL
4にストアされている転送番号をレジスタR4に書込み
、N、1ステツプで制御装置Q4に転送する処方データ
を第11図のフォーマットにしたがって制御データに変
換する。尚、何れか二つ以上の処方データメモリM、1
〜M□に処方データがストアされていると、記憶領域m
4にストアされている転送番号の小さい処方データを選
定する。Then, through the process of the N18 step mentioned above, the prescription data memory M! When prescription data is stored in l, the storage area TrL of prescription data memo lJMt becomes step N.
The transfer number stored in Q4 is written into the register R4, and the prescription data to be transferred to the control device Q4 in N,1 steps is converted into control data according to the format shown in FIG. In addition, any two or more prescription data memories M, 1
If prescription data is stored in ~M□, the storage area m
Select the prescription data stored in No. 4 with the smaller transfer number.
第10図は制御データ作成のフローチャートを示してお
り、rL20ステップは処方データをストアしているメ
モリM2.〜M2nを選定し、且つ選定したメモリM!
Iの各記憶領域m、・m2で先頭の記憶領域m、・m、
を指定する。n21ステツプは、処方データメモリM、
1の記憶領域WLsにストアしている薬品のコード番号
データを制御データメモリM3の記憶領域絢′に書込む
。制御データメモリM。FIG. 10 shows a flowchart for creating control data, and the rL20 step is the memory M2.M2 storing prescription data. ~M2n is selected and the selected memory M!
In each storage area m, ・m2 of I, the first storage area m, ・m,
Specify. The n21 step is the prescription data memory M,
The drug code number data stored in the storage area WLs of No. 1 is written into the storage area A' of the control data memory M3. Control data memory M.
は、処方データメモ’) MtI’= Mtnの記憶領
域m2・m、・m、に対応して記憶領域−′・m、’・
ms’を具備している。rLtt ステップは、記憶領
域m@’にストアしたコード番号データが「0」かを判
定し、「0」以外の場合はル、3ステップとなって、処
方データメモリM1.の記憶領域町の各アドレス0〜3
にストアしている朝・昼・夕・就寝前毎の薬数データを
、制御データメモIJM3の記憶領域TrLlの各アド
レス0〜3にストアする。また「0」の場合は、Wt4
ステップで制御データメモリM3の記憶領域m2’の各
アドレスθ〜3には夫々「0」を書込む。ル7.ステッ
プは、処方データメモIJ M2゜の記憶領域勧・m、
を夫々シフトし、−6ステツプは処方データメモリM!
Iの全ての記憶領域m。is the prescription data memo')
ms'. The rLtt step determines whether the code number data stored in the storage area m@' is "0", and if it is other than "0", then step 3 is performed and the prescription data memory M1. Storage area for each address 0 to 3 of the town
The drug count data for each morning, noon, evening, and before bedtime stored in is stored in each address 0 to 3 of the storage area TrLl of the control data memo IJM3. Also, if it is “0”, Wt4
In step, "0" is written in each address θ to 3 of the storage area m2' of the control data memory M3. 7. The steps are to expand the storage area of the prescription data memo IJ M2゜,
-6 step is the prescription data memory M!
All storage areas m of I.
を指定したかを判定する。かかるrLt1ステ、プかラ
n26ステノプまでの処理を繰り返して、ル、。ステッ
プで選定した処方データメモリM2Hの記憶領域m、に
ストアされている薬品のコード番号データを制御データ
メモリM3に移し換えると共に、コード番号データが1
0」以外の場合はその薬品様の薬数データをそのまま制
御データメモリM。is specified. Repeat the process up to rLt1 step and step n26 step. The drug code number data stored in the storage area m of the prescription data memory M2H selected in step is transferred to the control data memory M3, and the code number data is set to 1.
If the value is other than 0, the drug number data for that drug is stored in the control data memory M.
に書込み、「0」の場合はその薬品様の薬数データを「
0」に修正して制御データメモリM3に書込む。したが
って第9図に示す入力例では、制御データメモリM、の
隘1から隘3までの記憶領域町′にはA−B−C各錠剤
のコード番号データ、隘4の記憶領域m、/にはE散剤
に対応して「0」が夫々書込まれ、また制御データメモ
リM5の隔】から13までの各記憶領域m、/のアドレ
スO〜2までには「1」そしてアドレス3には「0」が
書込まれるとともに、N4の記憶領域m2’の0〜3ま
での各アドレスには「0」が夫々書込まれる。If it is "0", write the number data of the drug to "
0'' and write it into the control data memory M3. Therefore, in the input example shown in FIG. 9, the code number data of each tablet A-B-C is stored in the storage area 1 to 3 of the control data memory M, and the storage area m, / of the storage area 4 is "0" is written in each of the control data memory M5 corresponding to the E powder, and "1" is written in each storage area m from ] to 13 in the control data memory M5, and "1" is written in the addresses O to 2 of /. "0" is written, and "0" is also written to each address from 0 to 3 of the storage area m2' of N4.
rL11?ステップは、ル、。ステップで選定した処方
データメモリM21の記憶部の記憶領域m3における先
頭のアドレス0を指定するとともに、制御データメモリ
M、の各記憶領域m2’及びms’のうちのアドレスO
を夫々指定する。n、28ステツプは、各記憶領域m2
’のアドレスOに夫々ストアしている薬品種籾の薬数デ
ータの論理和が[o−1であるかを判定する。このとき
各記憶領域m2’のアドレスOにストアしている薬数デ
ータの少くとも一つが「0」以外であると、ル2.ステ
ップで記憶領域rrL3 のアドレス0にストアしてい
る朝についての総分包数データを、制御データメモIJ
M、の記憶領域7713’のアドレスOK書込む。ま
た各記憶領域m2’のアドレスOにストアしている薬数
データが全て「0」であると、rL3oステップで制御
データメモリM3の記憶領域rrL3′のアドレスOに
「o」を書込む。rL31ステップは、fL27ステツ
プで選定7た処方データメモリM2の記憶部の記憶領域
m3におけるアドレスをOかも1にシフトするとともに
、制御データメモリM3の各記憶領域m2’のアドレス
を全てOから1にシフトし、ル、2ステップは処方デー
タメモ’J M2の記憶領域m3のアドレスがオーバー
したかを判定して、アドレスが3以内のうちはル2.ス
テップに移行する。そしてル、。rL11? The steps are. Specify the first address 0 in the storage area m3 of the storage section of the prescription data memory M21 selected in step, and address O of each storage area m2' and ms' of the control data memory M.
Specify each. n, 28 steps are each storage area m2
It is determined whether the logical sum of the drug number data of the drug type paddy stored at the address O of ' is [o-1]. At this time, if at least one of the drug count data stored at address O of each storage area m2' is other than "0", then Ru2. In the step, the total number of packets data for the morning stored at address 0 of the storage area rrL3 is stored in the control data memo IJ.
OK write address of storage area 7713' of M. Further, if the drug number data stored at address O of each storage area m2' is all "0", "o" is written at address O of storage area rrL3' of control data memory M3 at step rL3o. The rL31 step shifts the address in the storage area m3 of the storage section of the prescription data memory M2 selected in the fL27 step from 0 to 1, and also shifts all the addresses of each storage area m2' of the control data memory M3 from 0 to 1. In step 2, it is determined whether the address of the storage area m3 of prescription data memo 'J M2 has exceeded the address, and if the address is within 3, step 2. Move to step. And Le.
ステップからル3.ステップまでの処理にて、制御デー
タメモリM、の各記憶領域mt’の各アドレス1にスト
アしている薬品種籾の薬数データの論理和がrOJであ
るかで昼の総分包数データの修正の要否を判定し、「O
」以外の場合は修正の要なしとして記憶領域m3のアド
レス1にストアしているデータを記憶領域m3’のアド
レス1に書込み、「0」の場合は記憶領域rrL3′の
アドレス1に「0」を書込んで総分包数データを修正す
る。同様に、夕及び就寝前についての総分包数も夫々n
28ステツプからrLstステップまでの処理により修
正が判定されて、制御データメモリM3の記憶領域m3
’のアドレス2及び3には夫々所定のデータが書込まれ
る。そして処方データメモリM、のアドレスが記憶領域
m、を越えると、’32ステップからN、。From step 3. In the processing up to the step, the total number of packets for daytime is calculated based on whether the logical sum of the drug number data of the drug type paddy stored in each address 1 of each storage area mt' of the control data memory M is rOJ. Determine whether or not correction is necessary, and select “O”.
'', the data stored at address 1 of storage area m3 is written to address 1 of storage area m3' as no modification is necessary, and if it is ``0'', write ``0'' to address 1 of storage area rrL3'. Correct the total number of sachets data by writing . Similarly, the total number of sachets in the evening and before going to bed is n.
The modification is determined by the processing from step 28 to step rLst, and the storage area m3 of the control data memory M3 is
Predetermined data is written to addresses 2 and 3 of ', respectively. Then, when the address of the prescription data memory M exceeds the storage area m, N from step '32.
ステップとなる。したがって本例の処方入力に依れば、
就寝前の服用はE散剤のみであり、制御データメモリM
3における各記憶領域m2’のアドレス3にストアされ
ているデータの論理和は[01のために、記憶領域m3
’のアドレス3には修正値であるrOJが書込まれる。It becomes a step. Therefore, according to the prescription input in this example,
Only E powder is taken before bedtime, and control data memory M
The logical sum of the data stored at address 3 of each storage area m2' in 3 is [01, so the storage area m3
The corrected value rOJ is written to address 3 of '.
N2.ステップは、制御データメモIJ M3の記憶領
域m3’のアドレス0〜3までにストアされている朝・
昼・夕・就寝前毎の総分包数が全てrOJかを判定し、
rOJの場合には包装機(ロ)で分包する必要がないた
めN、1ステツプに復帰する。しかして朝・昼・夕・就
寝前の少くとも何れか一つの総分包数がrOJ以外であ
ると、包装機(6)で分包する必要があって、N2.ス
テップで制御データを制御装置04)に転送するが、こ
のとき制御データはインターフェイス(ハ)でシリアル
変換されて送信される。しかして転送終了後、N1.ス
テップに復帰するが、制御装置α荀は制御データの受信
により包装機(6)の包装制御を行なっているために転
送要求信号を出力しない。したがって制御装置(至)は
N、2ステツフテキ一人力の有無を繰返し判定し、キー
人力があるとN13ステップとなり、処方データをスト
アしていない何れかの処方データメモ!JM21〜M、
nにキー人力データをストアする。N2. The step is the morning data stored at addresses 0 to 3 of the storage area m3' of the control data memo IJ M3.
Determine whether the total number of sachets for each day, evening, and before bedtime are all rOJ,
In the case of rOJ, there is no need to separate packages using the packaging machine (b), so the process returns to step N1. However, if the total number of packages for at least one of morning, noon, evening, and before going to bed is other than rOJ, it is necessary to use the packaging machine (6) to package it, and N2. In the step, the control data is transferred to the control device 04), and at this time, the control data is serially converted by the interface (c) and transmitted. However, after the transfer is completed, N1. Returning to the step, the control device α does not output the transfer request signal because it is controlling the packaging of the packaging machine (6) by receiving the control data. Therefore, the control device (to) repeatedly determines the presence or absence of key manual power in N, 2 steps, and if there is key manual power, the process goes to step N13, and any prescription data memo that does not store prescription data! JM21~M,
Store key human data in n.
制御装置041の動作を第12図のフローチャートによ
って説明する。No′ステップで転送要求信号を出力し
て制御データを受信すると、Nl’ステップからN2′
ステツプとなり制御データをメモリM4にストアする。The operation of the control device 041 will be explained with reference to the flowchart in FIG. When the transfer request signal is output and the control data is received at the No' step, the transfer request signal is output and the control data is received from the N1' step to the N2'
The control data is stored in the memory M4.
メモリM4は、メモリM3の各記憶領域mx’・ms’
・mXに対応して記憶領域m、′・。The memory M4 stores each storage area mx' and ms' of the memory M3.
・Storage area m,′・corresponding to mX.
mイ′・m、′を具備して、夫々薬数データ・総分包数
データ・薬品種のコード番号データをストアする。It is equipped with ``m'' and ``m,'' and stores drug number data, total package number data, and drug type code number data, respectively.
N、′ステップは、1が加算されるごとに順次「0」か
も「3」までを繰り返し計数する3進の制御カウンタ(
イ)をrOJにセットする。N4′ステツプは、メモリ
M4の記憶領域rJの内容が「0」かを判定する。記憶
領域mXは朝・昼・夕・就寝前に対応する0から3まで
の4つのアドレスに夫々線分包数をストアしているが、
この場合、制御カラン□り■の内容CNは「0」のため
にアドレス0が指定されて、朝の総分包数データが「0
」であるかが判定される。本例では制服用の分包数は7
日分でありNB′ステップに移行する。N、/ステップ
は、メモリM4の記憶領域叱“にストアしていムコード
番号データをレジスタR8にストアし、記憶領域1rL
2“にストアしている薬数データをレジスタR7にスト
アする。このとき記憶領域町“に関しては、制御カウン
タ翰の内容CNが「0」のために先ず各記憶領域1rL
:のアドレス0にストアされている薬数データが読出さ
れてレジスタR2にストアされる。したがってレジスタ
R8にはA−B−C各錠剤のコード番号データが書込ま
れ、レジスタR1にはこれら錠剤種について朝の分包分
の薬数データが書込まれる。N6’ステツプはレジスタ
R7の内容が「0」かを判定するが、A−B−Cの各錠
剤種について少くとも一つの錠剤種の薬数データが「0
」以外にあるとN?’ステップとなって錠剤の摘出動作
となる。N、′ステップに於いて、包装機コントローラ
翰には薬数データが「0.」以外にある錠剤種について
のコード番号データがレジスタR1より読出されて導入
される。そして包装機コントローラ翰はA−B−Cの各
種錠剤を収納したタブレットケース(5)・・・(5)
K対して摘出信号を出力する。したがって摘出信号が導
入されたタブレットケース(5)・・・(5)は駆動し
て一錠の錠剤を摘出する。N 、/ステップでは、摘出
動作を行なりた錠剤種についてその薬数データより「1
」を減算してNu’ステップに復帰する。本例では、朝
の分包にはA−B−Cの各種薬剤を一錠づつ包装するた
めにレジスタR1にストアされているA−B−Cの各種
薬剤の薬数データは「0」となる。したがって朝の1分
包分の錠剤が摘出されてホッパー(2)に導入され、次
のN、′ステップで包装動作が成される。Ng’ステッ
プで包装機コントローラ翰はシャッタ(3)・横ヒート
シール機構(ト)・縦ヒートシール機構(9)に夫々制
御信号を与えて錠剤投入・分包袋密封・分包袋形成の各
動作を制御し、しかる後、送りローラ(ロ)の駆動装置
へ制御信号を与え包装紙(6)を長手方向へ所定寸法移
送させて朝服用分の分包の包装動作を終了する。N、、
、’ステップは、制御カウンタに)の内容「0」により
メモリM4の記憶領域miのアドレスOを指定して、そ
こにストアしているデータより「1」を減算し、 N、
、’ステップでは記憶領域mlのθ〜3までの全てのア
ドレスのデータが「0」であるかを判定する。この場合
、朝服用分の分包が一つ終了して記憶領域ms”のアド
レス0のデータより「1」を減算した段階であり、N、
Jステップで制御カウンタ翰の内容CNを「0」から「
1」に進めてN4′ステツプに復帰する。セしてN4′
ステツプでは、制御カウンタ(ロ)の内容が「1」のた
めにm:のアドレス1を指定してその内容が「0」かを
判定するが、このときアドレス1の内容は「7」のため
にNS’ステップに移行して昼服用分の分包動作となる
。The N,' step is a ternary control counter (
Set b) to rOJ. In the N4' step, it is determined whether the contents of the storage area rJ of the memory M4 are "0". The storage area mX stores line segment numbers at four addresses from 0 to 3 corresponding to morning, noon, evening, and before bedtime, respectively.
In this case, the content CN of the control column □ri■ is "0", so address 0 is specified, and the data of the total number of sachets in the morning is "0".
” is determined. In this example, the number of sachets for uniforms is 7.
This is the current time, and the process moves to the NB' step. N, /step stores the code number data stored in the storage area ``1rL'' of the memory M4 in the register R8, and stores the code number data in the storage area 1rL of the memory M4.
2" is stored in the register R7. At this time, for the storage area "Machi", since the content CN of the control counter is "0", each storage area 1rL is first stored.
The medicine number data stored at address 0 of : is read out and stored in register R2. Therefore, the code number data of each tablet A, B, and C is written in the register R8, and the data on the number of medicines for the morning packet for these tablet types is written in the register R1. In the N6' step, it is determined whether the contents of register R7 are "0" or not.
” Is it N? ' This becomes a step to remove the tablet. In step N,', the code number data for the tablet type whose drug number data is other than "0." is read out from the register R1 and introduced into the packaging machine controller. And the packaging machine controller is a tablet case (5) that stores various tablets A-B-C.
An extraction signal is output to K. Therefore, the tablet cases (5)...(5) into which the extraction signal has been introduced are driven to extract one tablet. In the N,/step, "1" is determined based on the drug number data for the tablet type that was extracted.
" is subtracted and the process returns to the Nu' step. In this example, the drug number data for the various drugs A-B-C stored in register R1 is "0" because each drug A-B-C is packed one tablet at a time in the morning packet. Become. Therefore, one morning packet of tablets is extracted and introduced into the hopper (2), and the packaging operation is performed in the next step N,'. In the Ng' step, the packaging machine controller gives control signals to the shutter (3), horizontal heat-sealing mechanism (g), and vertical heat-sealing mechanism (9), respectively, to input tablets, seal sachets, and form sachets. After controlling the operation, a control signal is given to the drive device of the feed roller (b) to move the wrapping paper (6) by a predetermined length in the longitudinal direction, thereby completing the wrapping operation of the morning dose packet. N...
, 'step specifies the address O of the storage area mi of the memory M4 with the content "0" of ) in the control counter, subtracts "1" from the data stored there, and N.
, 'step determines whether the data at all addresses from θ to 3 in the storage area ml is "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 "ms", and N,
At the J step, change the content CN of the control counter from "0" to "
1" and return to step N4'. Set N4'
In step, since the content of the control counter (b) is "1", address 1 of m: is specified to determine whether the content is "0", but at this time, since the content of address 1 is "7", Then, the system moves to the NS' step and performs the packaging operation for daytime doses.
N5’ステツプでは、記憶領域m5’にストアしている
コード番号データをレジスタR7にストアし、各記憶領
域mlのアドレス1にストアしている薬数データをレジ
スタR7にストアする。そしてN6′ステツプからN、
′ステップとなると、レジスタR2にストアされている
薬数データが「0」以外にある錠剤種についてタブレッ
トケース(5)・・・(5)より錠剤を摘出し、N8′
ステツプではレジスタR2の薬数データより「1」を減
算する。本例では昼服用分の分包もA−B−Cの各種薬
剤を一錠づつ包装するために、レジスタR,の剤数デー
タは全て「0」となりN6’ステツプからN、′ステッ
プとなる。N9′ステツプでは、ホッパー(2)に取り
出した昼の一分包分の錠剤の包装動作を行ない、N、。In step N5', the code number data stored in the storage area m5' is stored in the register R7, and the drug number data stored in address 1 of each storage area ml is stored in the register R7. And from N6' step,
When it comes to step ', tablets are extracted from the tablet case (5)...(5) for tablet types whose drug number data stored in register R2 is other than "0", and N8'
In the step, "1" is subtracted from the medicine number data in register R2. In this example, since the daytime packets are packed with each drug A-B-C one tablet at a time, the data on the number of drugs in register R is all "0" and the process moves from step N6' to step N'. . In the N9' step, the one-daytime packet of tablets taken out into the hopper (2) is packed, and then N.
′ステップでは、記憶領域mB’のアドレス1にストア
しているデータから「1」を減算して、昼の一分包動作
が終了したことを記憶する。そしてNII′ステップか
らNl!’llステップと、制御カウンタ(2)の内容
CNを「1」から「2」に進める。したがって次のN4
’ステツプからは、制御カウンタ翰の内容が12」のた
め記憶領域ML、l″・TrLlはアドレス2が指定さ
れて夕の一分包動作についての処理となり、しかる後、
夕の分包についての処理を終了すると制御カウンタ(財
)の内容CNを「2」から「3」に進めてN4′ステツ
プに復帰する。このとき記憶領域mlのアドレス3の内
容は「0」1、 であり・N・テ・プからN・・″テ′
ブとなる・即ち、本例の入力処方では、就寝前には包装
機(ロ)で包装不能なE散剤を分包するために、就寝前
の服用分v−mいての包装動作は省略されたことになる
。そしてN、!’ステップで制御カウンタ(2)の内容
を「3」から「0」に進めて、再度朝の分包についての
処理を行う。このようにしてメモリM4の記憶領域m3
/のアドレスO〜3にストアされているデータが全て「
0」になるまで、朝・昼・夕の1−序で分包動作を繰返
す。(7かして朝・昼・夕の7日分の7分包づつの包装
が終了すると、1人力処方についての包装が終了したと
してN、1′ステツプからN6’ステツプに復帰する。In step ', ``1'' is subtracted from the data stored at address 1 of the storage area mB' to store that the daytime one-pack operation has been completed. And Nl from NII' step! 'll step and advance the content CN of the control counter (2) from "1" to "2". Therefore, the next N4
From step ', since the content of the control counter is 12', address 2 is specified for the storage areas ML, l' and TrLl, and processing is performed for the evening sachet operation, and after that,
When the processing for the evening parcel is completed, the content CN of the control counter (goods) is advanced from "2" to "3" and the process returns to step N4'. At this time, the contents of address 3 of the storage area ml are "0", 1, and N.
In other words, in the input prescription of this example, in order to package E-powder which cannot be packaged by the packaging machine (B) before bedtime, the packaging operation for the doses v-m before bedtime is omitted. That means that. And N! In step ', the content of the control counter (2) is advanced from "3" to "0", and the processing for the morning packets is performed again. In this way, storage area m3 of memory M4
All the data stored in addresses O to 3 of / is "
Repeat the packaging operation in the morning, afternoon, and evening order until the number reaches 0. (When the packaging of the 7-packs for 7 days in the morning, afternoon, and evening is completed, the process returns from the N, 1' step to the N6' step, assuming that the packaging for the one-person prescription has been completed.
そしてN。′ステップでは、次の包装動作に関する処方
データの転送要求信号を制御装置(2)に送信する。And N. In step ', a prescription data transfer request signal regarding the next packaging operation is transmitted to the control device (2).
そして制御装置0局が転送要求信号を出力しているのを
制御装置α場がNIIllステップ出すると、このとき
は処方データを制御装置0局に転送してレジスタR4に
は転送番号なス・ドアしているためにN、llステップ
からN16ステソプとなる。N16ステップは、処方デ
ータメモリM1.にストアしている処方データをディス
クコントローラ(至)へ導入し、ディスクコントローラ
(至)の作用により外部記憶装置に)に蓄積する。NI
、ステップでは処方データメモリM2.をクリアし、N
18ステツプではレジスタR4を「0」にしてN、。ス
テップとなる。このように制御装置(至)は、転送した
制御データに基づく包装動作が終了したことを、N、、
2テ・ツブでの転送要求信号の有無及びN1.ステッ
プでのレジスタR1の内容にて判定すると、N1.ステ
ップで包装の終了した処方データを外部記憶装置に)に
ファイルスル。モしてN、。ステップにおいて、処方デ
ータメモリM22〜M2nの何れかに処方データがスト
アされているのを検出すると、再び制御データを作成し
且つ包装機(ロ)で包装可能な場合にこの制御データを
制御装置a4に転送する。また外部記憶装置q4に蓄積
しくいる処方データは、キー人力部(6)の所定キーを
操作して中央処理装置(至)に処方箋管理指令な入力す
ることで、N、4ステツプからN25ステツプとなって
、適宜CRT@に表示される。Then, when the control device α outputs the NIIll step when the control device 0 station outputs a transfer request signal, the prescription data is transferred to the control device 0 station and the transfer number is stored in the register R4. Because of this, it becomes N16 steps from N, 11 steps. In step N16, prescription data memory M1. The prescription data stored in is introduced into the disk controller (to), and is stored in the external storage device by the action of the disk controller (to). N.I.
, the prescription data memory M2. Clear and N
In the 18th step, register R4 is set to "0" and N. It becomes a step. In this way, the control device (to) indicates that the wrapping operation based on the transferred control data has been completed.
The presence or absence of a transfer request signal at N1.2 and N1. Judging from the contents of register R1 in step N1. In this step, the prescription data that has been packaged is saved to an external storage device. Mo, N. In the step, when it is detected that prescription data is stored in any of the prescription data memories M22 to M2n, control data is created again, and if packaging is possible with the packaging machine (b), this control data is sent to the control device a4. Transfer to. In addition, the prescription data stored in the external storage device q4 can be changed from step N4 to step N25 by inputting prescription management commands to the central processing unit (to) by operating the specified keys of the key control section (6). will be displayed on the CRT@ as appropriate.
このN2.ステップでは、続いて入力される指定条件に
あわせて所定の処方データを表示するものである。This N2. In the step, predetermined prescription data is displayed in accordance with the specified conditions that are subsequently input.
一チャートである。n40ステツプで条件指定のキー人
力があり、rL41ステップでこのキー人力内容が患者
名及び処方年月日指定であることを判定すると、n4.
では指定の患者名及び処方年月日に基づき外部記憶装置
輪を索引し、該当する年月日における該当患者について
の処方データを読出してCRTコントローラQυへ導入
し、CRT(イ)はCRTコントローラQDの制御によ
り処方箋を表示する。This is a chart. If it is determined in step n40 that there is a key to specify a condition, and in step rL41 it is determined that the content of this key input is to specify the patient name and prescription date, n4.
Then, index the external storage device based on the specified patient name and prescription date, read out the prescription data for the corresponding patient on the corresponding date, and introduce it to the CRT controller Qυ. The prescription is displayed under the control of.
またrL4!ステップにおいて、ル、0ステップでのキ
ー人力内容が患者名のみの指定であることを判定すると
、ル、6ステツプでは指定の患者名に基づき外部記憶装
置−を索引し、該当患者についての全ての処方データを
読出してCRTコントローラQ1)へ導入し、CRTH
はCRTコントローラQ′Dの制御により処方箋を表示
する。更にrL48ステップにおいて、rL4oステッ
プでのキー人力内容が処方年月日のみの指定であること
を判定すると、ル。、ステップでは指定の年月日に入力
した全ての処方データを読出してCRTコントローラe
Aカヘ導入しC11T然πイ帆嘴笹か裏云イム−矛1.
イル6.ステノブにおいてキー人力内容が略称コードで
あることを判定すると、n48ステツプでは指定の薬品
槽を含む全ての処方データを読出してCRT@に表示す
るが、これにより麻薬、劇薬等の重点薬品目を含んだ処
方箋を管理できる。また中央処理装置(至)は読出した
処方データをプリンタコントローラ6カへも導入するこ
とでプリンタ(至)にても処方箋が表示される。そして
rL4+1ステップで、キー人力部(2)の所定キーの
操作により処方箋管理処理の終了が指令されているのを
検出すると、N、1ステツプに復帰する。See you again rL4! In step 2, if it is determined that the key input content in step 0 specifies only the patient name, in step 6, the external storage device is indexed based on the specified patient name, and all information about the patient is The prescription data is read out and introduced into the CRT controller Q1), and the CRTH
displays the prescription under the control of the CRT controller Q'D. Further, in step rL48, if it is determined that the key input content in step rL4o is the specification of only the date of prescription, then R. In step , all the prescription data entered on the specified date are read out and the CRT controller e.
Introduced to A Ka, C11 T natural π I sail beak bamboo grass or Ura Yun im - Spear 1.
Ile 6. When Stenobu determines that the key manual content is an abbreviation code, the n48 step reads out all prescription data including the specified drug tank and displays it on the CRT@. You can manage your prescriptions. Furthermore, the central processing unit (to) also introduces the read prescription data to the printer controller 6, so that the prescription is also displayed on the printer (to). Then, at step rL4+1, when it is detected that an instruction to end the prescription management process is issued by operating a predetermined key of the key manual section (2), the process returns to step N1.
(へ)発明の効果
本発明に依ると、薬品槽及びその薬数が入力されると、
その薬品槽のうちで包装可能な種類を取り出して包装す
るものである。したがって包装機で包装不能な種類を含
めて薬局で扱う全ての薬品槽を処方箋にしたがい入力し
て記録することができ、しかも入力した処方データは管
理指令に応答して読出して表示するため圧処方箋の管理
機能を備えた薬剤包装機が提供される。(F) Effects of the Invention According to the present invention, when the chemical tank and the number of medicines are input,
The type of medicine that can be packaged is taken out of the chemical tank and packaged. Therefore, all drug tanks handled by the pharmacy, including types that cannot be packaged by packaging machines, can be entered and recorded according to the prescription, and the entered prescription data can be read out and displayed in response to management commands, so the pressure prescription A drug packaging machine with management functions is provided.
第1図は本発明に依る薬剤包装機の外観図、第2図は包
装機の構成図、第3図は本発明に依る制御装置の構成図
、第4図は薬品ファイルメモ’)M、1〜M、。への登
録動作を示すフローチャート、第5図は薬品ファイルメ
モリM5.〜M1nの記憶フォーマットを示す図、第6
図は制御装置u′!jの動作を示すフローチャート、第
7図は処方データのフオニマットを示す図、第8図は処
方データ作成処理を示すフローチャート、第9図は1処
方の入力例を示す図、第10図は制御データ作成処理を
示すフローチャート、第11図は制御データメモリM。
の記憶フォーマットを示す図、第12図は制御装置α→
の動作を示すフローチャート、第13図は処(至)α局
・・・制御装置、 翰・・・c:aT、as・・・プリ
ンタ、M11〜M1n・・・薬品ファイルメモリ、 M
7.〜M、n・・・処方データメモリ、 M3・・・制
御データメモリ。
第1図
@2図
第13図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 memo') M. 1~M. FIG. 5 is a flowchart showing the registration operation in the medicine file memory M5. - Diagram showing the storage format of M1n, No. 6
The figure shows the control device u′! Fig. 7 is a flowchart showing the format of prescription data, Fig. 8 is a flowchart showing prescription data creation processing, Fig. 9 is a diagram showing an example of inputting one prescription, and Fig. 10 is a diagram showing control data. A flowchart showing the creation process, FIG. 11 shows the control data memory M. Figure 12 shows the storage format of the controller α→
FIG. 13 is a flowchart showing the operation of α station...control device, wire...c: aT, as...printer, M11 to M1n...medicine file memory, M
7. ~M, n...Prescription data memory, M3...Control data memory. Figure 1 @ Figure 2 Figure 13
Claims (1)
1処方毎に入力される薬品種及びその薬数な1処方デー
タとして記憶する手段と、該処方データに示される薬品
種のうちで包装可能な種類を取り出して包装する手段と
、包装動作の終了により当該包装動作での前記処方デー
タを蓄積する外部記憶装置と、処方データの管理指令に
応答して該処方データを読出して表示する手段とを備え
た薬剤包装機の制御装置。1. A means for inputting the type of drug to be administered and the number of drugs;
A means for storing the drug type and the number of drugs entered for each prescription as one prescription data, a means for extracting and packaging the types of drugs that can be packaged from among the drug types indicated in the prescription data, and terminating the packaging operation. A control device for a drug packaging machine, comprising: an external storage device for storing the prescription data in the packaging operation; and means for reading and displaying the prescription data in response to a prescription data management command.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP9329084A JPS60240623A (en) | 1984-05-09 | 1984-05-09 | Controller for medicine packaging machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP9329084A JPS60240623A (en) | 1984-05-09 | 1984-05-09 | Controller for medicine packaging machine |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS60240623A true JPS60240623A (en) | 1985-11-29 |
JPH0253283B2 JPH0253283B2 (en) | 1990-11-16 |
Family
ID=14078261
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP9329084A Granted JPS60240623A (en) | 1984-05-09 | 1984-05-09 | Controller for medicine packaging machine |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS60240623A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63203502A (en) * | 1987-02-20 | 1988-08-23 | 株式会社 東京商会 | Tablet partial packer |
JPS6484802A (en) * | 1987-09-25 | 1989-03-30 | Tokyo Shokai Kk | Medicine packaging machine |
JPH03264063A (en) * | 1990-03-14 | 1991-11-25 | Tokyo Shokai:Kk | Prescription medication system |
Citations (4)
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 |
JPS597756A (en) * | 1982-07-05 | 1984-01-14 | Diesel Kiki Co Ltd | Internal-combustion type stirling engine |
-
1984
- 1984-05-09 JP JP9329084A patent/JPS60240623A/en active Granted
Patent Citations (4)
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 |
JPS597756A (en) * | 1982-07-05 | 1984-01-14 | Diesel Kiki Co Ltd | Internal-combustion type stirling engine |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63203502A (en) * | 1987-02-20 | 1988-08-23 | 株式会社 東京商会 | Tablet partial packer |
JPS6484802A (en) * | 1987-09-25 | 1989-03-30 | Tokyo Shokai Kk | Medicine packaging machine |
JPH03264063A (en) * | 1990-03-14 | 1991-11-25 | Tokyo Shokai:Kk | Prescription medication system |
JPH067855B2 (en) * | 1990-03-14 | 1994-02-02 | 株式会社東京商会 | Prescription dispensing system |
Also Published As
Publication number | Publication date |
---|---|
JPH0253283B2 (en) | 1990-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS61232113A (en) | Tablet packaging machine | |
KR100457268B1 (en) | Drug packaging machine and method for packaging drug | |
JP4005239B2 (en) | Drug packaging device | |
JPH03628A (en) | Dose packer | |
JP3730370B2 (en) | Medicine bag printing device | |
JPS60240623A (en) | Controller for medicine packaging machine | |
JPH048282B2 (en) | ||
JP2883478B2 (en) | Control device for drug packaging machine | |
JPH0360721B2 (en) | ||
JP3519753B2 (en) | Tablet packing machine | |
JP3030286B2 (en) | Drug packaging machine | |
JP2000085728A (en) | Tablet packaging machine, and its cartridge printing method | |
JP2810627B2 (en) | Control device for drug packaging machine | |
JPH0253282B2 (en) | ||
JPH0253281B2 (en) | ||
JPH03629A (en) | Dose packer | |
JP3808531B2 (en) | Medicine bag printing device | |
JP2966798B2 (en) | Control method of drug packaging system | |
JPH05147627A (en) | Medicine package-printing emthod of tabletpacking machine | |
JP2691858B2 (en) | Dispensing control method | |
JP4110127B2 (en) | Medicine bag printing device | |
JPH0227215B2 (en) | ||
JP4691343B2 (en) | Dispensing management system | |
JPH02107223A (en) | Medical data processing apparatus | |
JPH0227216B2 (en) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
EXPY | Cancellation because of completion of term |