JPH06143753A - Slip printer - Google Patents
Slip printerInfo
- Publication number
- JPH06143753A JPH06143753A JP14190992A JP14190992A JPH06143753A JP H06143753 A JPH06143753 A JP H06143753A JP 14190992 A JP14190992 A JP 14190992A JP 14190992 A JP14190992 A JP 14190992A JP H06143753 A JPH06143753 A JP H06143753A
- Authority
- JP
- Japan
- Prior art keywords
- data
- card
- slip
- read
- patient
- 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.)
- Pending
Links
- 238000003780 insertion Methods 0.000 claims description 12
- 230000037431 insertion Effects 0.000 claims description 12
- 238000000034 method Methods 0.000 description 29
- 239000011295 pitch Substances 0.000 description 17
- 238000010586 diagram Methods 0.000 description 10
- 239000004973 liquid crystal related substance Substances 0.000 description 10
- 238000001514 detection method Methods 0.000 description 9
- 238000013500 data storage Methods 0.000 description 8
- 238000006243 chemical reaction Methods 0.000 description 5
- 230000006835 compression Effects 0.000 description 3
- 238000007906 compression Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000009182 swimming Effects 0.000 description 2
- 235000016496 Panda oleosa Nutrition 0.000 description 1
- 240000000220 Panda oleosa Species 0.000 description 1
- 239000003990 capacitor Substances 0.000 description 1
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
- Printers Characterized By Their Purpose (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】この発明は伝票プリンタに関し、
特に、伝票に印字されるIDナンバー、生年月日等のデ
ータを判読し易くした伝票プリンタに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a slip printer,
In particular, the present invention relates to a slip printer in which data such as ID number and date of birth printed on a slip can be easily read.
【0002】[0002]
【従来の技術】病院によっては、患者が診察を終えた
後、図17に示されているような伝票を患者に手渡す所
がある。この伝票は、図示されているように、伝票タイ
トル、患者カードデータ、予約データ、コメントデータ
等からなり、伝票タイトル、コメントデータ、患者カー
ドデータ中の「氏名」、「殿」、予約データ中の「予約
日」、「月日」、「曜日」の文字は伝票に印刷済みであ
り、患者カードを読込むことにより、患者のID番号、
名前、生年月日、性別をプリンタで印字していた。ま
た、予約日、曜日については、事務員がボールペン等で
記入していた。2. Description of the Related Art In some hospitals, a voucher as shown in FIG. 17 is handed to a patient after the patient finishes the examination. As shown in the figure, this voucher is composed of a voucher title, patient card data, reservation data, comment data, etc., and the voucher title, comment data, “name” in the patient card data, “customer”, and reservation data The characters "reservation date", "month day", and "day of the week" have been printed on the slip, and by reading the patient card, the patient ID number,
I printed my name, date of birth, and gender on a printer. In addition, the clerk entered the reservation date and the day of the week with a ballpoint pen.
【0003】また、他の従来例としては、病院に勤務し
ている医師の一人々々の磁気カード(以下、医師カード
と呼ぶ)と、互いに異なるコメントを記憶している複数
枚の磁気カード(以下、コメントカードと呼ぶ)とを用
意しておき、患者に伝票を発行する際に、患者カード、
担当医の医師カードおよび患者に適合するコメントカー
ドを選択し、カードリーダからカードデータを読込み、
読込んだデータを予め用意されているフォーマットの伝
票に印字することにより、図17のような伝票を発行し
ていた。なお、この例の場合には、担当医のデータが、
図17の伝票に追加され、コメントデータがその都度印
字されることになる。Further, as another conventional example, a magnetic card (hereinafter, referred to as a doctor card) of each doctor working at a hospital and a plurality of magnetic cards storing different comments ( (Hereinafter referred to as a comment card) and prepare a patient card when issuing a slip to a patient.
Select the doctor card of the doctor in charge and the comment card that matches the patient, read the card data from the card reader,
By printing the read data on a slip having a prepared format, a slip as shown in FIG. 17 is issued. In this example, the data of the doctor in charge is
The comment data is added to the slip shown in FIG. 17 and printed each time.
【0004】また、スイミングスクール等の学校におい
ても、生徒用のカードと、指導教官用のカードと、コメ
ントカードとを用意し、例えば泳力のランクが上がった
時とか、月謝を収める時期が近付いた時等に、図17に
示されているような形式の伝票が、生徒に発行されてい
た。At schools such as swimming schools, cards for students, cards for teaching professors, and comment cards are prepared. For example, when the rank of swimming ability rises, the time to get a monthly fee is approaching. At some point, a slip of the format shown in FIG. 17 was issued to the student.
【0005】[0005]
【発明が解決しようとする課題】前記伝票プリンタで
は、例えば、ID番号、生年月日が、それぞれ「036
601110007」、「S200329」と、数字列
が印字されているだけであり、判読がし難いという問題
があった。In the above slip printer, for example, the ID number and the date of birth are each "036".
There is a problem in that it is difficult to read because only the number strings such as "601110007" and "S200329" are printed.
【0006】この発明の目的は、前記した従来装置の問
題点に鑑み、ID番号、生年月日等の途中で区切りが入
る数字列を、判読しやすく印字することができる伝票プ
リンタを提供することにある。In view of the above-mentioned problems of the conventional apparatus, an object of the present invention is to provide a voucher printer which can easily print legible numbers of numbers, such as ID numbers and dates of birth. It is in.
【0007】[0007]
【課題を解決するための手段】前記目的を達成するため
に、請求項1の発明は、患者カードから読み出されたデ
ータを記憶する患者カード内容記憶手段と、該患者カー
ド内容記憶手段に記憶されている数字列データに区切り
文字を挿入する区切り文字挿入手段とを具備した点に特
徴がある。In order to achieve the above-mentioned object, the invention of claim 1 stores the data read from the patient card in a patient card content storage means and in the patient card content storage means. It is characterized in that it is provided with a delimiter insertion means for inserting a delimiter into the existing digit string data.
【0008】[0008]
【作用】本発明によれば、患者カード内容記憶手段に記
憶されている数字列データに区切り文字を挿入すること
ができるので、例えば、ID番号を0366−0111
−0007と印字でき、また生年月日をS20−03−
29と印字することができる。よって、数字列が判読し
易くなると共に、読み間違いを低減することができる。According to the present invention, a delimiter can be inserted in the numeral string data stored in the patient card content storage means, so that the ID number is, for example, 0366-0111.
-0007 can be printed and the date of birth is S20-03-
It can be printed as 29. Therefore, the number string can be easily read and misreading can be reduced.
【0009】[0009]
【実施例】以下に、図面を参照して、本発明を詳細に説
明する。図2は本発明の伝票プリンタの一実施例の外観
斜視図を示す。なお、以下では、病院で使用する伝票プ
リンタを例にして説明するが、本発明はこれに限定され
るものではない。DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described in detail below with reference to the drawings. FIG. 2 is an external perspective view of an embodiment of the slip printer of the present invention. It should be noted that, in the following, a slip printer used in a hospital will be described as an example, but the present invention is not limited to this.
【0010】図において、1はトップカバーであり、内
部に配置されている機構部を覆っている。該トップカバ
ー1の前面には、ストップ、医師、コメント、伝票の各
キー11が配置され、その上段に、入力されているデー
タの一部、あるいは使用者に対してメッセージ等を表示
する液晶表示装置12が組付けられている。In the figure, reference numeral 1 denotes a top cover, which covers a mechanism portion arranged inside. Stop, doctor, comment, and slip keys 11 are arranged on the front surface of the top cover 1, and a liquid crystal display for displaying a part of the input data or a message to the user is provided on the upper part thereof. The device 12 is assembled.
【0011】2はインクリボン(図示せず)を交換した
り、ジャムが発生した時等に開けられるフロントカバー
であり、凹部3に指をかけることにより、これを開ける
ことができる。Reference numeral 2 denotes a front cover which can be opened when an ink ribbon (not shown) is replaced or when a jam occurs, and can be opened by putting a finger on the recess 3.
【0012】4はデータを記憶した磁気カードを通し、
データを読込むためのカード挿入孔であり、その後方に
は、磁気カードの挿入方向を決めやすくするための案内
突起5が設けられている。6は前記液晶表示装置12の
後方に設けられたカードポケットであり、複数枚の医師
カード、コメントカード等のカード13を保管するため
に使用される。4 is a magnetic card storing data,
A card insertion hole for reading data, and a guide protrusion 5 is provided behind the card insertion hole to facilitate determination of the insertion direction of the magnetic card. A card pocket 6 is provided at the rear of the liquid crystal display device 12, and is used for storing a plurality of cards 13 such as doctor cards and comment cards.
【0013】7は印字台であり、印字する時に、印字部
が空欄の伝票がその上に乗せられる。8は伝票の左右方
向の位置決め用ガイドである。Reference numeral 7 denotes a printing table on which a slip having a blank print portion is placed when printing. Reference numeral 8 is a guide for laterally positioning the slip.
【0014】次に、図3を参照して、前記フロントカバ
ー2の内部に配置された伝票送り機構について説明す
る。図において、20は紙送りモータ、21、22はギ
ャ、23は前記ギャ21、22を介して動力が伝達され
る第1のローラである。24は第2のローラであり、図
示されていないばねにより、下方向に付勢されている。
25は印字ヘッドであり、X方向に移動して、図示され
ていないインクリボンにより、挿入された伝票用紙に印
字する。26は印字台ストッパである。この印字台スト
ッパ26と前記印字ヘッド25との距離は、伝票のトッ
プマージンの最大値と、最大印字行数を加味して決めら
れている。Next, with reference to FIG. 3, the slip feeding mechanism arranged inside the front cover 2 will be described. In the figure, 20 is a paper feed motor, 21 and 22 are gears, and 23 is a first roller to which power is transmitted via the gears 21 and 22. A second roller 24 is urged downward by a spring (not shown).
Reference numeral 25 denotes a print head which moves in the X direction and prints on the inserted slip paper by an ink ribbon (not shown). Reference numeral 26 is a print stand stopper. The distance between the print stand stopper 26 and the print head 25 is determined in consideration of the maximum value of the top margin of the slip and the maximum number of print lines.
【0015】また、27、28は印字台7上を搬送され
る伝票を検知する第1、第2の紙検出センサである。本
実施例では、前記第1の紙検出センサ27として、アク
チュエータ型フォトセンサが使用され、第2の紙検出セ
ンサ28として、反射型フォトセンサが使用されてい
る。なお、前記以外の符号は、図2と同一又は同等物を
示す。Further, 27 and 28 are first and second paper detection sensors for detecting a slip conveyed on the printing table 7. In this embodiment, an actuator type photo sensor is used as the first paper detection sensor 27, and a reflection type photo sensor is used as the second paper detection sensor 28. The reference numerals other than the above indicate the same or equivalent parts as in FIG.
【0016】図3において、印字台7に伝票用紙が乗せ
られて奥の方へ挿入され、その先端が第1の紙検出セン
サ27により検出されると、該検出信号により、前記紙
送りモータ20が起動される。そうすると、紙送りモー
タ20の動力はギャ21、22を介して、第1のローラ
23に伝えられる。In FIG. 3, when a slip sheet is placed on the printing table 7 and is inserted in the back and the leading edge of the slip sheet is detected by the first sheet detection sensor 27, the sheet feed motor 20 is detected by the detection signal. Is started. Then, the power of the paper feed motor 20 is transmitted to the first roller 23 via the gears 21 and 22.
【0017】前記伝票用紙が第1と第2のローラ23、
24の間に入るようにさらに挿入されると、伝票用紙は
第1のローラ23の回転により奥の方(図のY方向)へ
送られる。伝票用紙は、印字ヘッド25の下を通過した
後、第2の紙検出センサ28で先端が検出され、印字ヘ
ッド25と伝票用紙の位置決めがなされる。その後、所
定のトップマージン分さらに紙送りされた後、印字ヘッ
ド25は印字中心25aを中心として、第1行の印字を
開始する。ここに、前記トップマージンとは、図16に
示されているように、伝票の最初の非印字部分であり、
通常は伝票のタイトルが予め印刷されている箇所であ
る。なお、図16の説明は後で行う。The slip sheet is composed of first and second rollers 23,
When the slip paper is further inserted so as to be inserted between 24, the slip paper is sent to the inner side (Y direction in the drawing) by the rotation of the first roller 23. After the slip sheet passes under the print head 25, the leading edge of the slip sheet is detected by the second sheet detection sensor 28, and the print head 25 and the slip sheet are positioned. Then, after the paper is further fed by a predetermined top margin, the print head 25 starts printing the first line around the print center 25a. Here, the top margin is, as shown in FIG. 16, the first non-printed portion of the slip,
Normally, the title of the slip is printed in advance. The description of FIG. 16 will be given later.
【0018】以上のようにして、1行々々印字が進めら
れ、必要な印字が全て終了すると、前記紙送りモータ2
0は逆回転する。これにより、第1のローラ23も逆回
転し、伝票は伝票送り機構から自動的に排出される。As described above, the printing is advanced line by line, and when all necessary printing is completed, the paper feed motor 2
0 rotates in the reverse direction. As a result, the first roller 23 also rotates in the reverse direction, and the slip is automatically ejected from the slip feeding mechanism.
【0019】次に、本実施例の伝票プリンタのハード構
成を、図4のブロック図を参照して説明する。Next, the hardware configuration of the slip printer of this embodiment will be described with reference to the block diagram of FIG.
【0020】図4において、31はCPU、32は本伝
票プリンタの制御プログラムや制御データが格納された
ROM、33はカードから読込まれたデータ等を電源が
オフされるまで保持したり、データ編集等のワークエリ
アを提供するRAMである。また、34は書込みが可能
なEEPROMである。このEEPROM34には、各
種のパラメータが格納され、このパラメータは電源オフ
後も記憶保持される。In FIG. 4, 31 is a CPU, 32 is a ROM in which the control program and control data of this slip printer are stored, 33 is a memory for holding the data read from the card, etc. until the power is turned off, and data editing. It is a RAM that provides a work area such as. Further, 34 is a writable EEPROM. Various parameters are stored in the EEPROM 34, and these parameters are stored and held even after the power is turned off.
【0021】35は漢字変換ROMである。この漢字変
換ROM35には、JIS第1、第2水準漢字、非漢字
のフォントデータが記憶されている。36は磁気カード
に記録されているデータを読込むカードリーダである。
カードリーダ36は、カードロード信号(CLD)によ
りカードの挿入/離脱の判別ができ、リードクロック信
号(RCL)のタイミングで、リードデータ信号(RD
T)が読込まれる。37は時計ICであり、伝票発行年
月日時分のデータを提供する。この時計IC37は、大
容量のコンデンサによりバックアップされており、電源
切断後も、数日間であれば、動作を継続する。Reference numeral 35 is a Kanji conversion ROM. The Kanji conversion ROM 35 stores font data of JIS first, second level Kanji and non-Kanji. A card reader 36 reads data recorded on a magnetic card.
The card reader 36 can determine the insertion / removal of the card by the card load signal (CLD), and the read data signal (RD) at the timing of the read clock signal (RCL).
T) is read. Reference numeral 37 is a clock IC, which provides data for the date and time when the slip is issued. The timepiece IC 37 is backed up by a large-capacity capacitor, and continues to operate for several days even after the power is turned off.
【0022】また、38は第1の入出力装置(I/O)
であり、該第1の入出力装置38には、前記キー11
と、第1、第2の紙検出センサ27、28が接続されて
いる。39は第2の入出力装置(I/O)であり、これ
には、前記液晶表示装置12とブザー40が接続されて
いる。Numeral 38 is a first input / output device (I / O)
In the first input / output device 38, the key 11
And the first and second paper detection sensors 27 and 28 are connected. A second input / output device (I / O) 39 is connected to the liquid crystal display device 12 and the buzzer 40.
【0023】さらに、41は第3の入出力装置(I/
O)であり、これには、Y方向(図3参照)モータ、す
なわち紙送りモータ20のドライバ42が接続されてい
る。また、43は第4の入出力装置(I/O)であり、
これには、X方向(図3参照)モータ、すなわちヘッド
移動モータ45のドライバ44が接続されている。ま
た、ソレノイドドライバ48を介して、印字ヘッドを構
成するソレノイド49に制御信号を提供する。46はヘ
ッドの初期位置を検出するホームポジションセンサ(HP
SENS)であり、47は前記ソレノイドの動作タイミング
を取るためのドットパルスセンサ(DP SENS) である。ま
た、50はデータバスラインである。Further, 41 is a third input / output device (I /
O), which is connected to the Y-direction (see FIG. 3) motor, that is, the driver 42 of the paper feed motor 20. 43 is a fourth input / output device (I / O),
The driver 44 of the X-direction (see FIG. 3) motor, that is, the head moving motor 45 is connected to this. In addition, a control signal is provided to a solenoid 49 forming the print head via the solenoid driver 48. 46 is a home position sensor (HP
SENS), and 47 is a dot pulse sensor (DP SENS) for determining the operation timing of the solenoid. Further, 50 is a data bus line.
【0024】なお、前記ヘッド移動モータ45、ホーム
ポジションセンサ46、ドットパルスセンサ47および
ソレノイド49はプリンタユニットを構成している。The head moving motor 45, the home position sensor 46, the dot pulse sensor 47, and the solenoid 49 constitute a printer unit.
【0025】次に、前記カードリーダ36によって読込
まれる患者カード、医師カードおよびコメントカードの
構成の概要を、図5、図6および図7を参照して説明す
る。Next, the outline of the configuration of the patient card, doctor card and comment card read by the card reader 36 will be described with reference to FIGS. 5, 6 and 7.
【0026】患者カードは、図5に示されているよう
に、カード判別情報(ID)、患者コード、氏名(片仮
名)、氏名(漢字)、生年月日、性別およびパリティチ
ェックの情報を有している。As shown in FIG. 5, the patient card has card discrimination information (ID), patient code, name (Katakana), name (Kanji), date of birth, sex, and parity check information. ing.
【0027】また、医師カードは、図6に示されている
ように、カード判別情報(DR)、氏名(片仮名)、医
師コード、氏名(漢字)、所属およびパリティチェック
の情報を有している。なお、氏名(片仮名)は液晶表示
装置に表示するために使用される。Further, as shown in FIG. 6, the doctor card has card discrimination information (DR), name (Katakana), doctor code, name (Kanji), affiliation and parity check information. . The name (Katakana) is used for displaying on the liquid crystal display device.
【0028】さらに、コメントカードは、図7(a) に示
されているように、カード判別情報(CT)、第1行コ
メント情報、第2行コメント情報、第3行コメント情
報、およびパリティチェックの情報から構成されてい
る。図7(b) は、前記第1〜3行コメント情報の一具体
例を示す。Further, as shown in FIG. 7A, the comment card has card discrimination information (CT), first line comment information, second line comment information, third line comment information, and parity check. It is composed of information. FIG. 7B shows a specific example of the comment information on the first to third lines.
【0029】次に、前記RAM33に設定される記憶領
域について、図8を参照して説明する。Next, the storage area set in the RAM 33 will be described with reference to FIG.
【0030】CD格納ポインタは、後述するリードクロ
ック信号(RCL)による割込み時に、磁気カードデー
タを記憶するために使用されるポインタである。カード
データバッファは、前記リードクロック信号(RCL)
と同期して読み出された磁気カードデータを、1アドレ
スに対し、1ビット記憶するメモリエリアである。この
カードデータバッファには、カードの種別に関係なく、
読込まれたデータが一時格納されることになる。The CD storage pointer is a pointer used for storing magnetic card data at the time of interruption by a read clock signal (RCL) described later. The card data buffer uses the read clock signal (RCL).
This is a memory area for storing the magnetic card data read in synchronization with 1 bit for 1 address. In this card data buffer, regardless of the type of card,
The read data will be temporarily stored.
【0031】次のIDカードデータは、患者カードのデ
ータを記憶するメモリエリアである。 次に、DR格納
ポインタ、DR読み出しポインタ、#1DRカードデー
タ、#2DRカードデータ、……、#5DRカードデー
タが設けられている。DR格納ポインタは、医師カード
データの格納位置、すなわち#1〜#5DRカードデー
タのいずれかを示すポインタである。DR読み出しポイ
ンタは、医師カードデータの読み出し位置、すなわち#
1〜#5DRカードデータのいずれかを示すポインタで
ある。#1DRカードデータは、医師カード#1のデー
タが格納されるメモリエリアである。#2〜#5DRカ
ードデータは、医師カード#2〜#5のデータが格納さ
れるメモリエリアである。The next ID card data is a memory area for storing the data of the patient card. Next, a DR storage pointer, a DR read pointer, # 1DR card data, # 2DR card data, ..., # 5DR card data are provided. The DR storage pointer is a pointer indicating a storage position of doctor card data, that is, any of # 1 to # 5 DR card data. The DR read pointer is a read position of the doctor card data, that is, #
It is a pointer indicating any of 1 to # 5 DR card data. The # 1DR card data is a memory area in which the data of the doctor card # 1 is stored. The # 2 to # 5 DR card data is a memory area in which the data of the doctor cards # 2 to # 5 is stored.
【0032】なお、医師キーを押して、DR読み出しポ
インタを0にすると、液晶表示装置12に[クウハク]
と表示される。そして、この状態で印字すると、医師名
は印字されず、空白となる。It should be noted that when the doctor key is pressed and the DR read pointer is set to 0, the liquid crystal display device 12 displays [chuckling].
Is displayed. Then, when printing is performed in this state, the doctor name is not printed and is blank.
【0033】次に、CT格納ポインタ、CT読み出しポ
インタ、#1CTカードデータ、#2CTカードデー
タ、……、#5CTカードデータが設けられている。C
T格納ポインタは、コメントカードデータの格納位置、
すなわち#1〜#5CTカードデータのいずれかを示す
ポインタである。CT読み出しポインタは、コメントカ
ードデータの読み出し位置、すなわち#1〜#5CTカ
ードデータのいずれかを示すポインタである。#1〜#
5CTカードデータは、コメントカード#1〜#5のデ
ータが格納されるメモリエリアである。Next, a CT storage pointer, a CT read pointer, # 1 CT card data, # 2 CT card data, ..., # 5 CT card data are provided. C
The T storage pointer is a storage position of the comment card data,
That is, it is a pointer indicating any of # 1 to # 5 CT card data. The CT read pointer is a pointer indicating the read position of the comment card data, that is, any of # 1 to # 5 CT card data. # 1 to #
The 5CT card data is a memory area in which the data of the comment cards # 1 to # 5 are stored.
【0034】なお、コメントキーを押して、CT読み出
しポインタを0にすると、液晶表示装置12に[クウハ
ク]と表示される。そして、この状態で印字すると、コ
メントは印字されず、空白となる。When the CT key is set to 0 by pressing the comment key, the LCD display device 12 displays [Quhaku]. When printing is performed in this state, the comment is not printed and is blank.
【0035】なお、本実施例では、DRカードデータお
よびCTカードデータの格納領域を5個設け、5枚のカ
ードデータを記憶できるようにしたが、本発明はこれに
限定されず、6個以上のカードデータ格納領域を設け、
6枚以上のカードデータを記憶できるようにしてもよ
い。In this embodiment, five storage areas for DR card data and CT card data are provided so that five pieces of card data can be stored, but the present invention is not limited to this, and six or more storage areas are provided. The card data storage area of
It may be possible to store data of six or more cards.
【0036】次に、時刻データが設けられている。この
時刻データは、刻時手段である時計ICのデータを記憶
するメモリエリアである。このメモリエリア内のデータ
は、前記時計IC37のデータにより更新される。この
時刻データは、伝票の発行日を印字するために使用され
る。Next, time data is provided. This time data is a memory area for storing the data of the clock IC, which is the clock means. The data in this memory area is updated by the data of the clock IC 37. This time data is used to print the issue date of the slip.
【0037】次に、EX格納ポインタ、EX読み出しポ
インタおよび展開データがある。EX格納ポインタは、
文字列データを9ピンヘッドに出力する9個のドットデ
ータの記憶位置を指定するポインタである。EX読み出
しポインタは、1組のドットデータを印字ヘッドに出力
する時、読み出し位置を指定するポインタである。Next, there are an EX storage pointer, an EX read pointer and expanded data. The EX storage pointer is
It is a pointer for designating the storage positions of the 9 dot data for outputting the character string data to the 9-pin head. The EX read pointer is a pointer for designating a read position when outputting a set of dot data to the print head.
【0038】展開データは、前記第1の検出センサ27
がオンになった時点のIDカードデータと、DR読出し
ポインタの指すDRカードデータと、CT読出しポイン
タの指すCTカードデータと、日付モードデータの指す
時刻関連データとからなる文字列データを個々の文字の
印字フォントデータに変換したものである。The expanded data is the first detection sensor 27.
Character string data consisting of ID card data at the time when is turned on, DR card data pointed to by the DR read pointer, CT card data pointed by the CT read pointer, and time related data pointed to by the date mode data. It is converted to the print font data of.
【0039】次に、PP格納ポインタ、PP読み出しポ
インタおよび紙送りデータがある。PP格納ポインタ
は、改行毎の紙送りデータの記憶位置を指定するポイン
タである。PP読み出しポインタは、改行時に、紙送り
データの読み出し位置を指定するポインタである。紙送
りデータは、カードデータ等からドットデータを作成す
る時に、作成される改行量を示すデータである。行間の
改行量は4ドット、漢字の上半分印字後、下半分を印字
する時の改行量は1/2ドットである。Next, there are a PP storage pointer, a PP read pointer, and paper feed data. The PP storage pointer is a pointer that specifies the storage position of the paper feed data for each line feed. The PP read pointer is a pointer that specifies the read position of the paper feed data at the time of line feed. The paper feed data is data indicating the line feed amount created when dot data is created from card data or the like. The line feed amount between lines is 4 dots, and the line feed amount when printing the lower half after printing the upper half of Chinese characters is 1/2 dot.
【0040】次に、SP格納ポインタ、SP読み出しポ
インタおよび#1〜#5SPパラメータがある。SP格
納ポインタは、SPパラメータすなわち伝票パラメータ
(例えば、トップマージン、紙厚さ、文字配列等)の記
憶位置を指定するポインタである。SP読み出しポイン
タは、SPパラメータの読み出し位置、すなわち#1〜
#5SPパラメータのいずれかを示すポインタである。
このポインタは、前記伝票キーが押される毎に更新され
る。#1〜#5SPパラメータは、伝票パラメータ#1
〜#5のデータが格納されるメモリエリアである。伝票
キーを押すことにより、伝票プリンタ設置時に設定され
た伝票パラメータが伝票名と共に表示され、この状態で
印字すると、表示されている伝票パラメータで印字が実
行され、図16に示されている印字が得られる。Next, there are SP storage pointer, SP read pointer and # 1 to # 5 SP parameters. The SP storage pointer is a pointer for designating the storage position of the SP parameter, that is, the slip parameter (for example, top margin, paper thickness, character arrangement, etc.). The SP read pointer is a SP parameter read position, that is, # 1 to # 1.
It is a pointer indicating one of the # 5SP parameters.
This pointer is updated every time the slip key is pressed. # 1 to # 5 SP parameters are slip parameters # 1
This is a memory area in which data of # 5 to # 5 are stored. By pressing the slip key, the slip parameters set when the slip printer is installed are displayed together with the slip name. If printing is performed in this state, printing is executed with the displayed slip parameters, and the printing shown in FIG. 16 is performed. can get.
【0041】なお、その他の記憶エリアは、ワーキング
エリア、スタックエリア等に使用される。The other storage areas are used as a working area, a stack area and the like.
【0042】次に、前記のカードを読込むカードリーダ
36の読込み動作を、図9のフローチャートを参照し
て、詳細に説明する。Next, the reading operation of the card reader 36 for reading the above card will be described in detail with reference to the flowchart of FIG.
【0043】同図(a) に示されているように、カードデ
ータの読込みはリードクロック信号(RCL)による割
込みで行われる。ステップS1では、カードが前記カー
ド挿入孔4に差込まれたか否かの判断が行われる。この
判断は、カードロード信号がハイかロウかで判断され
る。ハイであれば、差込まれていると判断し、ステップ
S2に進む。ステップS2では、リードクロック信号
(RCL)が立下がったか否かの判断をする。立下がっ
た時には、ステップS3に進み、割込み処理をする。
割込み処理は、同図(b) に示されているように、CD格
納ポインタ(図8参照)で指示されているカードデータ
バッファのアドレスに、カードデータの1ビットが書き
込まれる(ステップS301)。続いて、次のデータの
書込みのために、CD格納ポインタはインクリメントさ
れる(ステップS302)。以上の割込み処理により、
カードリーダ36で読込まれたデータは、一時的に、カ
ードデータバッファに格納されることになる。As shown in FIG. 9A, reading of card data is performed by interruption by the read clock signal (RCL). In step S1, it is determined whether a card has been inserted into the card insertion hole 4. This judgment is made based on whether the card load signal is high or low. If it is high, it is determined that it is inserted, and the process proceeds to step S2. In step S2, it is determined whether or not the read clock signal (RCL) has fallen. When it has fallen, the process proceeds to step S3 and interrupt processing is performed.
In the interrupt processing, as shown in FIG. 8B, 1 bit of the card data is written in the address of the card data buffer designated by the CD storage pointer (see FIG. 8) (step S301). Then, the CD storage pointer is incremented for writing the next data (step S302). By the above interrupt processing,
The data read by the card reader 36 is temporarily stored in the card data buffer.
【0044】次に、本発明の伝票プリンタを用いて印字
を行う前の動作、すなわち、通常印字モード処理の動作
を、図10、図11のフローチャートを参照して説明す
る。Next, the operation before printing using the slip printer of the present invention, that is, the operation of the normal print mode process will be described with reference to the flowcharts of FIGS.
【0045】ステップS11では、時計IC37より時
刻データを読み出し、RAM33の時刻データを更新す
る動作を行う。ステップS12では、カードリーダ3
6、キー11およびセンサ27の処理を行う。In step S11, the time data is read from the clock IC 37 and the time data in the RAM 33 is updated. In step S12, the card reader 3
6, the key 11 and the sensor 27 are processed.
【0046】ステップS13では、カードがカードリー
ダ36から離脱したことが、カードロード信号がロウレ
ベルになることにより検出されると、前記カードデータ
バッファの内容が新たなカード挿入により書き替えられ
るのを防止するために、リードクロック信号による割込
みが禁止される。ステップS14では、読込まれたカー
ドデータのチェックが行われる。このチェックは、デー
タ列の先頭および終端に所定のデータ(DEL 機能キャラ
クタ)が存在するか、パリティは正しいかにより行われ
る。In step S13, when it is detected that the card is removed from the card reader 36 by the low level of the card load signal, the contents of the card data buffer are prevented from being rewritten by inserting a new card. Therefore, the interrupt by the read clock signal is prohibited. In step S14, the read card data is checked. This check is made based on whether the specified data (DEL function character) exists at the beginning and end of the data string and whether the parity is correct.
【0047】前記チェックによりカードデータが正しい
と判断された時には、ステップS16に進む。一方、正
しくないと判定された時には、ステップS15に進み、
もう一度カードを挿入するように、前記液晶表示装置1
2にエラー表示が行われる。その後、ステップS21に
進む。If it is determined by the above-mentioned check that the card data is correct, the process proceeds to step S16. On the other hand, when it is determined that it is not correct, the process proceeds to step S15,
The liquid crystal display device 1 so that the card can be inserted again.
An error is displayed on 2. Then, it progresses to step S21.
【0048】ステップS16では、予め定められている
カード種類判別データを調べる動作が行われる。この判
別は、各カードに予め登録されているカード判別情報に
より行われる。ステップS17では、カードデータバッ
ファの値が、アルファベット・数字・仮名(ANK)又
は漢字の文字列データに変換して、当該カードデータエ
リアに格納される。例えば、医師カードのデータであれ
ば、図8のDRカードデータ格納領域に格納される。In step S16, an operation of checking predetermined card type discrimination data is performed. This determination is performed based on the card determination information registered in advance on each card. In step S17, the value of the card data buffer is converted into character string data of alphabets, numbers, kana (ANK) or kanji, and stored in the card data area. For example, doctor card data is stored in the DR card data storage area in FIG.
【0049】ステップS20では、上記のカードデータ
が液晶表示装置12に表示される。In step S20, the above card data is displayed on the liquid crystal display device 12.
【0050】以上により、カードデータバッファからカ
ードに対応したカードデータ格納領域へのデータの転送
は終了したので、ステップS21に進んで、前記CD格
納ポインタを初期化する動作が実行される。続いてステ
ップS22に進んで、前記リードクロックRCLによる
割込みが許可され、前記ステップS11に戻る。As described above, the transfer of the data from the card data buffer to the card data storage area corresponding to the card is completed. Therefore, the process proceeds to step S21, and the operation of initializing the CD storage pointer is executed. Then, the process proceeds to step S22, the interrupt by the read clock RCL is permitted, and the process returns to step S11.
【0051】次に、ステップS12において、医師キー
がオンにされたと判断されると、ステップS23に進
み、DR読出しポインタがインクリメントされ、次の位
置のDRカードデータが前記DRカードデータ格納領域
から読み出され、液晶表示装置12に表示される(ステ
ップS24)。これを繰返すことにより、所望の医師名
が選択される。Next, in step S12, when it is determined that the doctor key is turned on, the process proceeds to step S23, the DR read pointer is incremented, and the DR card data at the next position is read from the DR card data storage area. And is displayed on the liquid crystal display device 12 (step S24). By repeating this, a desired doctor name is selected.
【0052】次に、前記ステップS12において、コメ
ントキーがオンにされると、ステップS25に進み、C
T読出しポインタがインクリメントされ、次の位置のC
Tカードデータが前記CTカードデータ格納領域から読
み出され、液晶表示装置12に表示される(ステップS
26)。これを繰返すことにより、所望のコメントが選
択される。Next, in step S12, when the comment key is turned on, the process proceeds to step S25 and C
The T read pointer is incremented and C at the next position
The T card data is read from the CT card data storage area and displayed on the liquid crystal display device 12 (step S
26). By repeating this, a desired comment is selected.
【0053】次に、ステップS12で前記第1の紙検出
センサ27がオンにされたと判断されると、印字制御に
動作が進む。なお、印字制御の詳細については、同一出
願人の特願平4−25986号「伝票パラメータ設定機
能を有する伝票プリンタ」に記されているので、説明を
省略する。Next, when it is determined in step S12 that the first paper detection sensor 27 is turned on, the operation proceeds to print control. The details of the print control are described in Japanese Patent Application No. 4-25986 “Voucher printer having a voucher parameter setting function” of the same applicant, and thus the description thereof is omitted.
【0054】また、ステップS12で前記伝票キーがオ
ンにされると、ステップS29に進み、前記SP読出し
ポインタ(図8参照)を1だけインクリメントする。次
に、ステップS30に進んで、該SP読出しポインタが
指す伝票パラメータを液晶表示装置(LCD)12に表
示する。When the chit key is turned on in step S12, the flow advances to step S29 to increment the SP read pointer (see FIG. 8) by one. Next, in step S30, the slip parameter pointed to by the SP read pointer is displayed on the liquid crystal display (LCD) 12.
【0055】伝票キーがオンされる毎に、前記SP読出
しポインタはインクリメントされ、予め設定された伝票
1〜5の伝票パラメータが順次表示される。そこで、オ
ペレータは、これから印字する伝票の種類に適合した伝
票パラメータを選択することができる。Each time the slip key is turned on, the SP read pointer is incremented and the preset slip parameters for slips 1 to 5 are sequentially displayed. Therefore, the operator can select a slip parameter suitable for the type of slip to be printed.
【0056】次に、前記ステップS27の印字制御の動
作を、図12、13、14、15のフローチャートと、
図16の印字例を参照して、詳細に説明する。Next, the print control operation in step S27 will be described with reference to the flow charts of FIGS.
This will be described in detail with reference to the print example of FIG.
【0057】前記ステップS12において、センサ27
がオンになったと判断されると、ステップS501に進
み、患者カードデータの内容、すなわちIDカードデー
タの内容がRAMのワーキングエリアに取り込まれる。
次に、サブルーチンS502に進んで、ID番号に区切
り文字が挿入される。In step S12, the sensor 27
If it is determined that the ON state has been turned on, the process proceeds to step S501, and the content of the patient card data, that is, the content of the ID card data is taken into the working area of the RAM.
Next, the process proceeds to the subroutine S502, and a delimiter character is inserted in the ID number.
【0058】該サブルーチンS502を、図14を参照
して説明する。まず、ステップS601において、ID
番号の文字数が求められる。ステップS602では、こ
の文字数が4より小さいか否かの判断がなされ、4より
大きければ、ステップS603に進む。ステップS60
3では、4文字目の次にハイフン(−)が挿入される。
一方、4より小さければ、何の処理もされず、ステップ
S503に進む。The subroutine S502 will be described with reference to FIG. First, in step S601, the ID
The number of characters in the number is required. In step S602, it is determined whether the number of characters is smaller than 4, and if it is larger than 4, the process proceeds to step S603. Step S60
In 3, a hyphen (-) is inserted after the fourth character.
On the other hand, if it is smaller than 4, no processing is performed and the process proceeds to step S503.
【0059】同様にして、ステップS604〜S607
の処理により、8文字目の次、12文字目の次に、ハイ
フンが挿入され、図12のステップS503に戻る。な
お、区切り文字は、スペースやスラッシュであってもよ
い。Similarly, steps S604 to S607.
By the process of, a hyphen is inserted after the eighth character and after the twelfth character, and the process returns to step S503 in FIG. The delimiter may be a space or a slash.
【0060】ステップS503では、区切り文字を挿入
した患者ID番号に対応した印字フォントデータを生成
し、これを前記展開データエリアに記憶し、EX格納ポ
インタを更新する。以上により、図16の第1行目の印
字フォントデータが作成されたことになる。In step S503, print font data corresponding to the patient ID number in which the delimiter is inserted is generated, stored in the expanded data area, and the EX storage pointer is updated. As described above, the print font data of the first line in FIG. 16 is created.
【0061】次に、ステップS504に進み、行間スペ
ース4ピッチと、印字ヘッドのピンの数9ピッチとを加
えた13ピッチを改行量として、紙送りデータエリアへ
記憶し、PP格納ポインタを更新する。次いで、ステッ
プS505に進み、患者名(片仮名)に対応した印字フ
ォントデータを生成する。以上により、図16の第2行
目の印字フォントデータが作成されたことになる。Next, in step S504, 13 pitches, which is 4 pitches between line spaces and 9 pitches of print head pins, are stored as a line feed amount in the paper feed data area, and the PP storage pointer is updated. . Next, in step S505, print font data corresponding to the patient name (Katakana) is generated. As described above, the print font data of the second line in FIG. 16 is created.
【0062】次に、ステップS506にて、ステップS
504と同様にして、第1行と第2行の行間スペース4
ピッチと、印字ヘッドのピンの数9ピッチとを加えた1
3ピッチの改行量を得、ステップS507に進んで、患
者名(漢字)に対応した漢字の上半分のフォントデータ
を漢字変換ROM35より読み出し、図16の患者名
(漢字)の上半分のフォントデータを生成する。Next, in step S506, step S
Similarly to 504, the space 4 between the first and second rows
1 pitch plus 9 pitches of print head pins
After obtaining the line feed amount of 3 pitches, the process proceeds to step S507, the upper half font data of the kanji corresponding to the patient name (kanji) is read from the kanji conversion ROM 35, and the upper half font data of the patient name (kanji) of FIG. 16 is read. To generate.
【0063】次いで、ステップS508に進み、漢字フ
ォントデータの縦方向16ドットのうちの下半分8ドッ
トを印字するために、改行量を8ピッチとする。そし
て、ステップS509にて、患者名(漢字)に対応した
漢字の下半分のフォントデータを生成する。以上によ
り、図16の第3行目の印字フォントデータが作成され
たことになる。Next, in step S508, the line feed amount is set to 8 pitches in order to print the lower half 8 dots of the 16 dots in the vertical direction of the Kanji font data. Then, in step S509, font data of the lower half of the kanji corresponding to the patient name (kanji) is generated. As described above, the print font data on the third line in FIG. 16 is created.
【0064】続いて、ステップS510に進み、行間ス
ペース4ピッチと、第3行下半分で実際に印字した印字
ヘッド8ピンを加えた12ピッチ分改行する。ステップ
S510の処理が終わると、サブルーチンS511に進
む。該サブルーチンS511では、生年月日文字列に区
切り文字を挿入する処理が行われる。Subsequently, the flow proceeds to step S510, and line feed is performed for 12 pitches, which is 4 pitches between line spaces and 8 pins of the print head actually printed in the lower half of the third row. When the process of step S510 ends, the process proceeds to subroutine S511. In the subroutine S511, a process of inserting a delimiter into the birth date character string is performed.
【0065】該サブルーチンS511の処理を、図15
のフローチャートを参照して、詳細に説明する。The process of the subroutine S511 is shown in FIG.
This will be described in detail with reference to the flowchart of FIG.
【0066】まず、ステップS701にて、生年月日文
字列の文字数Nが求められる。ステップS702に進む
と、元の文字列のN−4文字目の次に、ハイフンが入れ
られる。この処理により、元の文字列の年と月の文字の
間に、ハイフンが入ることになる。First, in step S701, the number of characters N of the birth date character string is obtained. In step S702, a hyphen is inserted after the N-4th character of the original character string. By this process, a hyphen will be inserted between the year and month characters in the original character string.
【0067】次に、ステップS703にて、元の文字列
のN−2文字目の次にハイフンを入れる。この処理によ
り、元の文字列の月と日の文字の間に、ハイフンが入る
ことになる。Next, in step S703, a hyphen is inserted after the (N-2) th character of the original character string. By this process, a hyphen will be inserted between the month and day characters in the original string.
【0068】生年月日区切り文字を、上記のように定め
たのは、病院によって、生年月日の文字数が、下記のよ
うにまちまちであるからである。The reason for defining the date of birth delimiter as described above is that the number of characters of the date of birth varies depending on the hospital, as shown below.
【0069】 元の文字列 ハイフンを挿入した後の文字列 S400508 → S40−05−08 19650508 → 1965−05−08 650508 → 65−05−08 以上のサブルーチンの処理が終了すると、図12のステ
ップS512に進み、区切り文字を挿入した生年月日文
字列に対応した印字フォントデータが生成される。この
処理により、図16の第4行目の前半の文字列が生成さ
れる。Original Character String Character String After Inserting Hyphen S400508 → S40-05-08 19650508 → 1965-05-08 650508 → 65-05-08 When the processing of the above subroutine ends, step S512 of FIG. The print font data corresponding to the birth date character string in which the delimiter is inserted is generated. By this processing, the character string in the first half of the fourth line in FIG. 16 is generated.
【0070】次に、ステップS513に進み、性別デー
タがMであれば半角の男文字を、M以外であれば半角の
女文字を第4行の15文字目に挿入し、印字フォントデ
ータを生成する。Next, in step S513, if the gender data is M, a half-width male character is inserted into the 15th character of the fourth line if it is other than M, and print font data is generated. To do.
【0071】以上のステップS510〜S513によ
り、図16の第4行目の印字フォントデータが作成され
たことになる。By the above steps S510 to S513, the print font data of the fourth line in FIG. 16 is created.
【0072】次に、ステップS514に進み、第4行と
第5行の行間スペース8ピッチと印字ヘッドのピンの数
9ピッチを加えた17ピッチ分を改行量とする。図13
のステップS515に進むと、DR読出しポインタが0
であるか否かが判定される。そして、0であればステッ
プS521に進み、医師名(漢字)は印字されずに、ス
テップS521に進む。Next, in step S514, the line feed amount is 17 pitches, which is the sum of 8 pitches between the 4th and 5th rows and 9 pitches of the pins of the print head. FIG.
In step S515, the DR read pointer becomes 0.
Is determined. If it is 0, the process proceeds to step S521, the doctor name (kanji) is not printed, and the process proceeds to step S521.
【0073】前記DR読出しポインタが0でなければ、
ステップS516に進んで、このポインタが指す医師カ
ードデータをRAMのワーキングエリアに取り込む。続
いて、ステップS517に進み、医師名(漢字)に対応
した漢字フォントを漢字変換ROM35より読みだし、
紙送り方向の奇数番目の印字フォントを生成する。If the DR read pointer is not 0,
In step S516, the doctor card data pointed to by this pointer is loaded into the working area of the RAM. Succeedingly, in a step S517, a kanji font corresponding to the doctor's name (kanji) is read from the kanji conversion ROM 35,
Generates an odd-numbered print font in the paper feed direction.
【0074】次に、ステップS518に進んで、改行量
を1/2ピッチとした後、ステップS519に進み、医
師名(漢字)に対応した漢字フォントを漢字変換ROM
35より読みだし、紙送り方向の偶数番目の印字フォン
トを生成する。Next, in step S518, the line feed amount is reduced to 1/2 pitch, and then in step S519, a kanji font corresponding to the doctor's name (kanji) is converted into a kanji conversion ROM.
It is read from 35 and an even-numbered print font in the paper feed direction is generated.
【0075】以上のステップS517〜S519の処理
により、医師名(漢字)のサイズを前記患者名(漢字)
のサイズの約1/2に圧縮することができる。Through the above steps S517 to S519, the size of the doctor's name (kanji) is changed to the patient name (kanji).
Can be compressed to about 1/2 the size of
【0076】次いで、ステップS520に進み、改行量
は16ピッチに設定され、ステップS521に進んで、
CT読み出しポインタが0に等しいか否かの判断がなさ
れる。この判断が肯定の場合には、ステップS529に
進む。一方、否定の場合には、ステップS522に進
む。Then, the process proceeds to step S520, the line feed amount is set to 16 pitches, and the process proceeds to step S521.
A determination is made whether the CT read pointer is equal to 0. If this determination is positive, the process proceeds to step S529. On the other hand, if the result is negative, the process proceeds to step S522.
【0077】ステップS522では、CT読み出しポイ
ンタが指すCTカードデータが取り込まれ、ステップS
523ではコメントの第1行に対する印字フォントデー
タが生成される。これにより、伝票の第6行の文字が生
成されたことになる。At step S522, the CT card data pointed by the CT read pointer is fetched, and at step S522.
At 523, print font data for the first line of the comment is generated. As a result, the character on the sixth line of the slip has been generated.
【0078】続いて、ステップS524に進んで、改行
量が13ピッチに改められ、ステップS525でコメン
トの第2行に対する印字フォントデータが生成される。
これにより、伝票の第7行の文字が生成されたことにな
る。同様にして、ステップS526で改行量が13ピッ
チに設定され、ステップS527にてコメントの第3行
(伝票の第8行)に対する印字フォントデータが生成さ
れる。次いで、ステップS528に進んで、改行量が1
7ピッチに設定される。Then, in step S524, the line feed amount is revised to 13 pitches, and in step S525, print font data for the second line of the comment is generated.
As a result, the character on the seventh line of the slip has been generated. Similarly, the line feed amount is set to 13 pitches in step S526, and the print font data for the third line of the comment (the eighth line of the slip) is generated in step S527. Next, in step S528, the line feed amount is 1
It is set to 7 pitches.
【0079】ステップS529に進むと、時刻データに
対応した印字フォントデータが生成される。このデータ
は伝票の第9行に印字されることになる。ステップS5
30では、印字が実行される。In step S529, print font data corresponding to the time data is generated. This data will be printed on the ninth line of the slip. Step S5
At 30, printing is executed.
【0080】以上のように、本実施例によれば、前記ス
テップS502、S503と、ステップS511、S5
12とを設けたので、患者のID番号および生年月日に
区切り文字を挿入することができる。As described above, according to this embodiment, the steps S502 and S503 and the steps S511 and S5 are performed.
Since 12 and 12 are provided, a delimiter can be inserted into the patient's ID number and date of birth.
【0081】次に、図1を参照して、本発明の要部の機
能を説明する。患者カード61、医師カード62および
コメントカード63が、カード読出し手段64から読込
まれると、カード判別手段65は読込まれたカードの種
類を判別し、それぞれのカードのデータを、それぞれに
対応した記憶手段66、67および68に記憶する。刻
時手段69から出力された時刻データは、時刻データ記
憶手段70に記憶される。Next, referring to FIG. 1, the function of the essential part of the present invention will be described. When the patient card 61, the doctor card 62 and the comment card 63 are read from the card reading means 64, the card discriminating means 65 discriminates the kind of the read card and stores the data of each card in correspondence with each other. Means 66, 67 and 68. The time data output from the clock means 69 is stored in the time data storage means 70.
【0082】患者カード内容記憶手段66に格納された
データのうち、ID番号と生年月日のデータは、区切り
文字挿入手段71に挿入され、前記のように、所定位置
にハイフン等の区切り文字が挿入される。また、医師カ
ード内容記憶手段67中の医師名(漢字)データは、医
師名圧縮手段72に送られ圧縮される。Of the data stored in the patient card content storage means 66, the ID number and the date of birth data are inserted into the delimiter insertion means 71, and as described above, delimiters such as hyphens are placed at predetermined positions. Is inserted. Further, the doctor name (kanji) data in the doctor card content storage means 67 is sent to the doctor name compression means 72 and compressed.
【0083】次に、印字開始手段73により、伝票に印
字が開始されると、前記時刻データ記憶手段70から時
刻データが、前記患者カード内容記憶手段66から患者
名(カタカナおよび漢字)データが、区切り文字挿入手
段71から区切り文字の入った患者のID番号および生
年月日が、医師名圧縮手段72から医師名データが、ま
たコメントカード内容記憶手段68からコメントデータ
が、印字制御手段74に送られる。この結果、印字機構
は、図16に示されているような内容の印字を伝票に行
う。Next, when printing is started on the slip by the printing start means 73, time data is stored in the time data storage means 70 and patient name (katakana and kanji) data is stored in the patient card content storage means 66. The ID number and the date of birth of the patient having the delimiter are sent from the delimiter insertion means 71, the doctor name data from the doctor name compression means 72, and the comment data from the comment card content storage means 68 to the print control means 74. To be As a result, the printing mechanism prints the contents as shown in FIG. 16 on the slip.
【0084】なお、図1において、実線はデータ読込み
を表すライン、太線は印字時に読み出しを表すラインで
ある。In FIG. 1, a solid line is a line representing data reading, and a thick line is a line representing reading during printing.
【0085】[0085]
【発明の効果】以上のように、本発明によれば、患者の
IDデータや生年月日等の数字列に、区切り文字を入れ
ることができるので、該数字列が読みやすくなると共
に、読み間違いを低減することができるという効果があ
る。As described above, according to the present invention, since a delimiter can be put in a numerical string such as patient ID data and date of birth, the numerical string is easy to read and is erroneously read. Is effective.
【図1】 本発明の機能ブロック図である。FIG. 1 is a functional block diagram of the present invention.
【図2】 本発明の一実施例の伝票プリンタの外観斜視
図である。FIG. 2 is an external perspective view of the slip printer according to the embodiment of the present invention.
【図3】 本実施例の印字機構の構成図である。FIG. 3 is a configuration diagram of a printing mechanism of the present embodiment.
【図4】 本実施例の伝票プリンタのハード構成を示す
ブロック図である。FIG. 4 is a block diagram showing a hardware configuration of a slip printer of this embodiment.
【図5】 患者カード情報の一例の説明図である。FIG. 5 is an explanatory diagram of an example of patient card information.
【図6】 医師カード情報の一例の説明図である。FIG. 6 is an explanatory diagram of an example of doctor card information.
【図7】 コメントカード情報の一例の説明図である。FIG. 7 is an explanatory diagram of an example of comment card information.
【図8】 RAMマップの一例の説明図である。FIG. 8 is an explanatory diagram of an example of a RAM map.
【図9】 カードリーダの読込み動作を説明するフロー
チャートである。FIG. 9 is a flowchart illustrating a reading operation of the card reader.
【図10】 通常印字処理モード処理の動作を説明する
フローチャートである。FIG. 10 is a flowchart illustrating an operation of normal print processing mode processing.
【図11】 図10の続きのフローチャートである。FIG. 11 is a continuation of the flowchart of FIG.
【図12】 本発明の一実施例の印字制御動作を説明す
るためのフローチャートである。FIG. 12 is a flowchart illustrating a print control operation according to an exemplary embodiment of the present invention.
【図13】 図12の続きのフロ―チャ―トである。FIG. 13 is a flowchart following on from FIG. 12;
【図14】 図12のサブルーチンS502の動作を説
明するためのフローチャートである。14 is a flowchart for explaining the operation of a subroutine S502 of FIG.
【図15】 図12のサブルーチンS511の動作を説
明するためのフローチャートである。FIG. 15 is a flowchart for explaining the operation of the subroutine S511 of FIG.
【図16】 本発明によって印字された伝票の一例を示
す図である。FIG. 16 is a diagram showing an example of a slip printed according to the present invention.
【図17】 従来の伝票の一例を示す図である。FIG. 17 is a diagram showing an example of a conventional slip.
66…患者カード内容記憶手段、67…医師カード内容
記憶手段、68…コメントカード内容記憶手段、70…
時刻データ記憶手段、71…区切り文字挿入手段、72
…医師名(漢字)圧縮手段、73…印字開始手段、74
…印字制御手段66 ... Patient card content storage means, 67 ... Doctor card content storage means, 68 ... Comment card content storage means, 70 ...
Time data storage means, 71 ... Delimiter insertion means, 72
... Doctor name (kanji) compression means, 73 ... Printing start means, 74
... Print control means
───────────────────────────────────────────────────── フロントページの続き (72)発明者 渕上 伸一 東京都八王子市狭間町1463番地 蛇の目ミ シン工業株式会社内 (72)発明者 小玉 長大 東京都八王子市狭間町1463番地 蛇の目ミ シン工業株式会社内 (72)発明者 山口 俊明 東京都八王子市狭間町1463番地 蛇の目ミ シン工業株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Shinichi Fuchigami, 1463 Asama-cho, Hachioji-shi, Tokyo Within Jamome Machine Industry Co., Ltd. (72) Inventor Toshiaki Yamaguchi 1463, Sakumacho, Hachioji City, Tokyo
Claims (3)
する患者カード内容記憶手段と、 該患者カード内容記憶手段に記憶されている数字列デー
タに区切り文字を挿入する区切り文字挿入手段とを具備
し、 印字開始時に、前記数字列データに区切り文字を挿入し
て印字制御手段に送出するようにしたことを特徴とする
伝票プリンタ。1. A patient card content storage means for storing data read from a patient card, and a delimiter insertion means for inserting a delimiter character in the numeral string data stored in the patient card content storage means. The slip printer is characterized in that a delimiter is inserted in the numeral string data and sent to the print control means at the start of printing.
字数をNとする時、N−4、N−8およびN−12文字
目の次の少なくとも一つの区間に、区切り文字を挿入す
るようにしたことを特徴とする請求項1記載の伝票プリ
ンタ。2. The delimiter insertion means inserts a delimiter into at least one section next to the N-4th, N-8th and N-12th characters, where N is the number of characters of the ID number. The voucher printer according to claim 1, wherein:
字数をNとする時、N−4およびN−2文字目の次の区
間に、区切り文字を挿入するようにしたことを特徴とす
る請求項1記載の伝票プリンタ。3. The delimiter insertion means inserts a delimiter in the section next to the N-4th and N-2th characters, where N is the number of characters of the birth date. The slip printer according to claim 1.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14190992A JPH06143753A (en) | 1992-05-08 | 1992-05-08 | Slip printer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14190992A JPH06143753A (en) | 1992-05-08 | 1992-05-08 | Slip printer |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH06143753A true JPH06143753A (en) | 1994-05-24 |
Family
ID=15302986
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP14190992A Pending JPH06143753A (en) | 1992-05-08 | 1992-05-08 | Slip printer |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH06143753A (en) |
-
1992
- 1992-05-08 JP JP14190992A patent/JPH06143753A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0790565B1 (en) | Word processor | |
| US6817537B2 (en) | Time card and time recorder system using time card | |
| US5290109A (en) | Electronic typewriter for printing of documents having a fixed format | |
| JPH06143753A (en) | Slip printer | |
| JPH06143754A (en) | Slip printer with bar code printing function | |
| JP2791988B2 (en) | Hospital slip printer capable of printing patient age | |
| JP2791987B2 (en) | Slip printer with date printing function | |
| JP4719920B2 (en) | Barcode creation method and barcode word processor | |
| JP2969019B2 (en) | Slip printer for card data entry | |
| JP2751129B2 (en) | Slip printer | |
| JPH05193224A (en) | Screen control system in slip printer | |
| JP2667091B2 (en) | Label printing device | |
| JP2703461B2 (en) | Label printing device | |
| JP2915674B2 (en) | Slip printer | |
| JPH05193190A (en) | Slip printer having slip parameter setting function | |
| JP2667093B2 (en) | Label printing device | |
| JPH05193210A (en) | Printing device in slip printer | |
| JPH10250157A (en) | Drug history list-printing system and drug history list-reading apparatus | |
| JP2578721B2 (en) | Return slip issuing device | |
| JP3932629B2 (en) | Securities issuing equipment | |
| JP2667085B2 (en) | Label printing device | |
| JPH079702A (en) | Method of reading card data of slip printer | |
| JPH06143750A (en) | Printing system in slip printer | |
| JP2718603B2 (en) | Label printing device | |
| JP2667083B2 (en) | Label printing device |