JP2022036392A - Prescription reading program and prescription reader - Google Patents

Prescription reading program and prescription reader Download PDF

Info

Publication number
JP2022036392A
JP2022036392A JP2020140581A JP2020140581A JP2022036392A JP 2022036392 A JP2022036392 A JP 2022036392A JP 2020140581 A JP2020140581 A JP 2020140581A JP 2020140581 A JP2020140581 A JP 2020140581A JP 2022036392 A JP2022036392 A JP 2022036392A
Authority
JP
Japan
Prior art keywords
prescription
text
layout type
algorithm
text area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2020140581A
Other languages
Japanese (ja)
Other versions
JP6870876B1 (en
Inventor
チョーザ・デルガド・カルロス・アルトウロ
Delgado Carlos Arturo Choza
幸久 山村
Yukihisa Yamamura
モーガン・ヘレラ・カルメン・ヴェロニカ
Herera Carmen Veronica Morgan
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mediconfia Co Ltd
Original Assignee
Mediconfia Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mediconfia Co Ltd filed Critical Mediconfia Co Ltd
Priority to JP2020140581A priority Critical patent/JP6870876B1/en
Application granted granted Critical
Publication of JP6870876B1 publication Critical patent/JP6870876B1/en
Publication of JP2022036392A publication Critical patent/JP2022036392A/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

To provide a prescription reading program and a prescription reader, capable of appropriately reading prescriptions even though unclear characters exist therein.SOLUTION: A prescription reading program causes an information processing device to execute: reception processing for receiving prescription data; layout type determination processing for, based on the prescription data received at the reception processing, determining a layout type; text area determination processing for, based on the layout type determined at the layout type determination processing, determining a text area; text recognition processing for, on the text area determined at the text area determination processing, performing recognition processing of text data using a machine-learned character recognition algorithm; and extraction processing for, on the text data recognized at the text recognition processing, extracting words including a name and a dose of a medication using a machine-learned word extraction algorithm.SELECTED DRAWING: Figure 4

Description

本発明は、処方箋の文字等の情報を読み取る処方箋読み取りプログラムおよび処方箋読み取り装置に関する。 The present invention relates to a prescription reading program and a prescription reading device that read information such as characters of a prescription.

特許文献1には、薬局業務支援システムが記載されている。特許文献1には、「処方情報は、例えば、医療機関から発行された処方箋を撮影した画像データである。なお、撮影画像を文字認識して処方内容をテキストデータ化し、画像データおよびテキストデータを処方情報として用いるようにしてもよい。」と記載されている。 Patent Document 1 describes a pharmacy business support system. In Patent Document 1, "The prescription information is, for example, image data obtained by photographing a prescription issued by a medical institution. In addition, the photographed image is character-recognized, the prescription content is converted into text data, and the image data and the text data are obtained. It may be used as prescription information. "

特開2020-086833号公報Japanese Unexamined Patent Publication No. 2020-086833

薬局は、医療機関から紙またはFAXを介して処方箋を受け取る。薬局は、紙で受け取った処方箋をテキストデータ化したい場合、スキャナで読み込み、OCR(Optical Character Recognition)によりテキストデータ化する。あるいは、薬局は、FAXで受け取った画像データをOCR(Optical Character Recognition)によりテキストデータ化する。しかし、スキャンした画像データおよびFAXで受け取った画像データは、文字が不鮮明な場合があり、従来のOCRでは適切に文字認識できない場合が多い。 The pharmacy receives the prescription from the medical institution via paper or fax. When a pharmacy wants to convert a prescription received on paper into text data, it reads it with a scanner and converts it into text data by OCR (Optical Character Recognition). Alternatively, the pharmacy converts the image data received by FAX into text data by OCR (Optical Character Recognition). However, the scanned image data and the image data received by FAX may have unclear characters, and in many cases, the characters cannot be properly recognized by the conventional OCR.

そこで、本発明の目的は、不鮮明な文字であっても適切に処方箋の読み取りが可能な処方箋読み取りプログラムおよび処方箋読み取り装置を提供することにある。 Therefore, an object of the present invention is to provide a prescription reading program and a prescription reading device capable of appropriately reading a prescription even if the characters are unclear.

本発明に係る処方箋読み取りプログラムは、処方箋データを受信する受信処理と、前記受信処理で受信した前記処方箋データに基づいて、レイアウトタイプを判断するレイアウトタイプ判断処理と、前記レイアウトタイプ判断処理で判断した前記レイアウトタイプに基づいて、テキスト領域を判断するテキスト領域判断処理と、前記テキスト領域判断処理で判断した前記テキスト領域に対して、機械学習済文字認識アルゴリズムを用いてテキストデータの認識処理を行なうテキスト認識処理と、前記テキスト認識処理で認識した前記テキストデータに対して、機械学習済単語抽出アルゴリズムを用いて薬の名称および分量を含む単語を抽出する抽出処理と、を情報処理装置に実行させることを特徴とする。 The prescription reading program according to the present invention is determined by a reception process for receiving prescription data, a layout type determination process for determining a layout type based on the prescription data received in the reception process, and a layout type determination process. A text area determination process for determining a text area based on the layout type and a text data recognition process for the text area determined by the text area determination process using a machine-learned character recognition algorithm. To have the information processing apparatus execute the recognition process and the extraction process of extracting the word including the name and quantity of the drug by using the machine-learned word extraction algorithm for the text data recognized by the text recognition process. It is characterized by.

この様に、本発明に係る処方箋読み取りプログラムは、処方箋のレイアウトタイプを判断してテキスト領域を判断し、判断したテキスト領域に対してニューラルネットワーク等の機械学習済文字認識アルゴリズムおよび機械学習済単語抽出アルゴリズムを用いて薬の名称および分量等の単語を抽出する。したがって、本発明に係る処方箋読み取りプログラムは、従来のOCRよりも極めて高い精度で文字認識および単語認識を行なうことができる。よって、本発明に係る処方箋読み取りプログラムは、FAXやスキャナで取り込んだ不鮮明な文字の処方箋データであっても適切に処方箋の読み取りを行なうことができる。 As described above, the prescription reading program according to the present invention determines the layout type of the prescription, determines the text area, and uses a machine-learned character recognition algorithm such as a neural network and machine-learned word extraction for the determined text area. Extract words such as drug name and quantity using an algorithm. Therefore, the prescription reading program according to the present invention can perform character recognition and word recognition with extremely higher accuracy than the conventional OCR. Therefore, the prescription reading program according to the present invention can appropriately read the prescription even if the prescription data is unclear characters captured by FAX or a scanner.

なお、処方箋読み取りプログラムは、前記テキスト認識処理で認識した前記テキストデータのエラーを、機械学習済アルゴリズムを用いて修正する修正処理をさらに実行し、さらに処方箋の読み取り精度を高めることもできる。この場合、前記抽出処理は、前記修正処理で修正されたテキストデータに対して行なわれる。 The prescription reading program can further execute a correction process of correcting the error of the text data recognized by the text recognition process by using a machine-learned algorithm, and can further improve the reading accuracy of the prescription. In this case, the extraction process is performed on the text data modified by the modification process.

また、修正処理は、薬の名称辞典と、処方箋に含まれる特定のパターンを含むパターン辞典と、を用いて行なわれる。パターン辞典は、例えばジェネリック医薬品に使用される「般」の文字や、カタカナの「ロ」と漢字の「口」等の情報を含む。これにより、処方箋の読み取り精度がさらに高まる。 Further, the correction process is performed using a drug name dictionary and a pattern dictionary including a specific pattern included in the prescription. The pattern dictionary contains information such as the characters "general" used in generic drugs, the katakana "ro" and the kanji "mouth". As a result, the reading accuracy of the prescription is further improved.

なお、機械学習済単語抽出アルゴリズムは、処方箋において関連するテキストの各部分の形式を判断し、タグ付けするように学習されている第1アルゴリズムと、処方箋における特有のキーワード間の関係を理解する様に学習されている第2アルゴリズムと、を有する。これにより、処方箋読み取りプログラムは、処方箋における特有の記載内容を高精度に抽出し、データベースに適切に登録可能かつ利用可能な形式として整理することができる。 The machine-learned word extraction algorithm is designed to understand the relationship between the first algorithm, which is learned to determine and tag the format of each part of the related text in the prescription, and the specific keywords in the prescription. Has a second algorithm, which is learned in. As a result, the prescription reading program can extract the unique description contents in the prescription with high accuracy and organize them in a format that can be appropriately registered in the database and can be used.

なお、レイアウトタイプ判断処理は、データベースに蓄積されたレイアウトタイプとの比較によって行なわれる。処方箋は、法改正等により新たなレイアウトタイプが生じる場合もあり、データベースに一致しない場合もある。しかし、処方箋読み取りプログラムは、データベースに一致するレイアウトタイプが無い場合に利用者からテキスト領域の操作を受け付けて、データベースに登録する登録処理を行なうことで、新たなレイアウトタイプが生じた場合でも、適切に読み取りを行なうことができる。 The layout type determination process is performed by comparing with the layout type stored in the database. Prescriptions may have new layout types due to revisions to the law, etc., and may not match the database. However, the prescription reading program accepts the operation of the text area from the user when there is no layout type that matches the database, and performs the registration process to register it in the database, so that it is appropriate even if a new layout type occurs. Can be read.

本発明によれば、不鮮明な文字であっても適切に処方箋の読み取りを行なうことができる。 According to the present invention, the prescription can be appropriately read even if the characters are not clear.

処方箋読み取りシステム1の構成を示すブロック図である。It is a block diagram which shows the structure of the prescription reading system 1. サーバ11の構成を示すブロック図である。It is a block diagram which shows the structure of a server 11. 処方箋読み取りシステム1の動作を示すフローチャートである。It is a flowchart which shows the operation of the prescription reading system 1. 処方箋読み取り時のサーバ11の動作を示すフローチャートである。It is a flowchart which shows the operation of the server 11 at the time of reading a prescription. 処方箋読み取り時のサーバ11の動作を示すフローチャートである。It is a flowchart which shows the operation of the server 11 at the time of reading a prescription. 処方箋データの一例を示す図である。It is a figure which shows an example of the prescription data.

以下、本発明の実施形態に係る処方箋読み取りシステム1について、図を参照しながら説明する。 Hereinafter, the prescription reading system 1 according to the embodiment of the present invention will be described with reference to the drawings.

図1は、処方箋読み取りシステム1の構成を示すブロック図である。処方箋読み取りシステム1は、サーバ11、受付用端末12、利用者端末13、およびレセコン14を備えている。サーバ11、受付用端末12、利用者端末13、およびレセコン14は、ネットワークを介して接続されている。 FIG. 1 is a block diagram showing a configuration of a prescription reading system 1. The prescription reading system 1 includes a server 11, a reception terminal 12, a user terminal 13, and a receipt computer 14. The server 11, the reception terminal 12, the user terminal 13, and the receipt computer 14 are connected via a network.

受付用端末12は、一般的な情報処理装置(パーソナルコンピュータ)で実現される。受付用端末12は、不図示のFAX機またはスキャナに接続されていて、処方箋を画像データに変換した処方箋データを受信する。処方箋は、医療機関から紙またはFAXで送付される。薬局の薬剤師は、処方線を紙で受け取った場合には、不図示のスキャナを用いて受付用端末12に処方箋データを入力する。また、処方箋をFAXで受信した場合、受付用端末12は、FAX機から処方箋データを受信する。あるいは、薬剤師は、FAX機で処方箋データを印刷し、印刷した処方箋をスキャナで読み込み、受付用端末12に入力してもよい。受付用端末12は、処方箋データをサーバ11に送信する。 The reception terminal 12 is realized by a general information processing device (personal computer). The reception terminal 12 is connected to a fax machine or a scanner (not shown) and receives prescription data obtained by converting a prescription into image data. The prescription will be sent by paper or fax from the medical institution. When the pharmacist at the pharmacy receives the prescription line on paper, he / she inputs the prescription data to the reception terminal 12 using a scanner (not shown). When the prescription is received by fax, the reception terminal 12 receives the prescription data from the fax machine. Alternatively, the pharmacist may print the prescription data with a fax machine, read the printed prescription with a scanner, and input it to the reception terminal 12. The reception terminal 12 transmits the prescription data to the server 11.

サーバ11は、本発明の処方箋読み取り装置の一例である。サーバ11は、薬局に設置されていてもよいし、インターネット上のサーバ群からなる態様であってもよい。サーバ11は、受付用端末12から処方箋データを受信し、処方箋の内容を読み取る動作を行なう。 The server 11 is an example of the prescription reading device of the present invention. The server 11 may be installed in a pharmacy or may consist of a group of servers on the Internet. The server 11 receives the prescription data from the reception terminal 12 and performs an operation of reading the contents of the prescription.

利用者端末13は、薬剤師等の薬局業務を行なう者(利用者)が用いる端末であり、例えばスマートフォンあるいはタブレット型コンピュータ等の携帯型の情報処理装置である。利用者は、利用者端末13を用いてサーバ11で読み取られた処方箋の内容を確認したり、処方箋の内容をレセコン14に入力したりする。また、利用者は、利用者端末13を用いて患者の薬歴を確認し、新たな薬歴を作成することもできる。 The user terminal 13 is a terminal used by a person (user) who performs pharmacy business such as a pharmacist, and is a portable information processing device such as a smartphone or a tablet computer. The user confirms the contents of the prescription read by the server 11 using the user terminal 13, and inputs the contents of the prescription to the receipt computer 14. In addition, the user can confirm the drug history of the patient using the user terminal 13 and create a new drug history.

レセコン14は、利用者端末13から入力される処方箋の内容に応じてレセプトを作成するコンピュータである。レセコン14は、一般的なパーソナルコンピュータ上にインストールされたアプリケーションプログラムによって実現される。 The receipt computer 14 is a computer that creates a receipt according to the contents of the prescription input from the user terminal 13. The receipt computer 14 is realized by an application program installed on a general personal computer.

図2は、サーバ11の構成を示すブロック図である。サーバ11は、ネットワークI/F51、記憶部52、CPU53、およびRAM54を備えている。 FIG. 2 is a block diagram showing the configuration of the server 11. The server 11 includes a network I / F 51, a storage unit 52, a CPU 53, and a RAM 54.

ネットワークI/F51は、インターネット等のネットワークに接続される。本実施形態では、サーバ11は、ネットワークI/F51を介して受付用端末12および利用者端末13に接続される。 The network I / F 51 is connected to a network such as the Internet. In the present embodiment, the server 11 is connected to the reception terminal 12 and the user terminal 13 via the network I / F 51.

CPU53は、記憶部52に記憶されているプログラムをRAM54に読み出して、種々の動作を行なう。記憶部52は、サーバ11の基本プログラム(OS)と、本実施形態における処方箋読み取りプログラムと、を記憶している。また、記憶部52は、後述の処方箋データのレイアウトタイプを示す情報や、患者の個人情報等の各種データベースを備えている。 The CPU 53 reads the program stored in the storage unit 52 into the RAM 54 and performs various operations. The storage unit 52 stores the basic program (OS) of the server 11 and the prescription reading program in the present embodiment. Further, the storage unit 52 includes various databases such as information indicating the layout type of the prescription data described later and personal information of the patient.

CPU53は、記憶部52から処方箋読み取りプログラムをRAM54に読み出すことで、処方箋読み取り装置として機能する。 The CPU 53 functions as a prescription reading device by reading the prescription reading program from the storage unit 52 into the RAM 54.

図3は、処方箋読み取りシステム1の動作を示すフローチャートである。まず、処方箋は、医療機関から紙またはFAXで送付される(S11)。薬局の薬剤師は、紙またはFAXで送付された処方箋を受け取る(S12)。 FIG. 3 is a flowchart showing the operation of the prescription reading system 1. First, the prescription is sent from the medical institution by paper or fax (S11). The pharmacist at the pharmacy receives the prescription sent by paper or fax (S12).

そして、薬局の薬剤師は、受付用端末12を用いて紙の処方箋をスキャンし、処方箋データとしてサーバ11に送信する、またはFAXで受信した処方箋データをサーバ11に送信する(S13)。なお、薬剤師は、利用者端末13のアプリケーションプログラムを用いて、処方箋データをサーバ11に送信してもよい。また、受付用端末12または利用者端末13は、FAXを介して処方箋データを受信した時点、またはスキャナから受信した時点で、当該処方箋データを自動的にサーバ11に送信してもよい。特に、老人福祉施設等の在宅向け薬局では、医療機関から同時に多数の処方箋を受け取る。そのため、本実施形態の処方箋読み取りシステム1は、処方箋データを受信した場合に自動的にサーバ11に処方箋データを送信して以下の読み取り動作を行うことで、薬局業務の負荷を著しく低減することができる。 Then, the pharmacist at the pharmacy scans the paper prescription using the reception terminal 12 and transmits it to the server 11 as prescription data, or transmits the prescription data received by FAX to the server 11 (S13). The pharmacist may send the prescription data to the server 11 by using the application program of the user terminal 13. Further, the reception terminal 12 or the user terminal 13 may automatically transmit the prescription data to the server 11 when the prescription data is received via FAX or received from the scanner. In particular, home-use pharmacies such as welfare facilities for the elderly receive a large number of prescriptions from medical institutions at the same time. Therefore, the prescription reading system 1 of the present embodiment automatically sends the prescription data to the server 11 when the prescription data is received, and performs the following reading operation, thereby significantly reducing the load on the pharmacy business. can.

次に、サーバ11は、処方箋読み取りプログラムを実行して処方箋読み取り動作を行なう(S14)。 Next, the server 11 executes a prescription reading program to perform a prescription reading operation (S14).

図4および図5は、処方箋読み取り時のサーバ11の動作を示すフローチャートである。まず、サーバ11は、処方箋データから、画像の特徴量の抽出を行なう(S101)。この処理は、例えばSIFT(Scale Invariant Feature Transform)等の特徴量を抽出するアルゴリズムで行なう。 4 and 5 are flowcharts showing the operation of the server 11 when reading the prescription. First, the server 11 extracts the feature amount of the image from the prescription data (S101). This process is performed by an algorithm for extracting features such as SIFT (Scale Invariant Feature Transform).

上述の様に、薬局は、FAXで処方箋データを受信する、あるいは処方箋スキャナで読み取る。したがって、処方箋データは、画像のサイズや傾きが一定ではない。サーバ11は、SIFTの特徴量抽出アルゴリズムを用いることにより、画像サイズおよび傾きに依存しない処方箋の画像の特徴量を抽出することができる。 As mentioned above, the pharmacy receives the prescription data by fax or reads it with a prescription scanner. Therefore, in the prescription data, the size and inclination of the image are not constant. The server 11 can extract the feature amount of the prescription image that does not depend on the image size and the inclination by using the feature amount extraction algorithm of SIFT.

次に、サーバ11は、抽出した特徴量に基づいて、データベースから対応するレイアウトタイプを判断する(S102)。データベースには、複数の処方箋のレイアウトタイプが蓄積されている。サーバ11は、RANSAC(Random Sample Consensus)等の推定アルゴリズムで、データベースを参照して、受信した処方箋データのレイアウトタイプに一致するレイアウトタイプを判断する。 Next, the server 11 determines the corresponding layout type from the database based on the extracted features (S102). The database stores multiple prescription layout types. The server 11 uses an estimation algorithm such as RANSAC (Random Sample Consensus) to refer to a database and determine a layout type that matches the layout type of the received prescription data.

サーバ11は、一致するレイアウトタイプが存在するか否かを判断する(S103)。サーバ11は、一致するレイアウトタイプが存在したと判断した場合、テキスト領域の判断処理を行なう(S104)。テキスト領域は、少なくとも患者の氏名等の患者の情報が記載された領域、日付が記載された領域、および薬の情報が記載された領域等を含む。データベースに登録されているレイアウトタイプは、処方箋データのどの位置にどのテキスト領域が存在するかを示す位置情報が含まれている。サーバ11は、データベースに登録されているレイアウトタイプから、テキスト領域の位置情報を読み出すことで、テキスト領域を判断する。 The server 11 determines whether or not a matching layout type exists (S103). When the server 11 determines that a matching layout type exists, the server 11 performs a determination process for the text area (S104). The text area includes at least an area in which patient information such as the patient's name is described, an area in which a date is described, an area in which drug information is described, and the like. The layout type registered in the database contains position information indicating which text area exists in which position in the prescription data. The server 11 determines the text area by reading the position information of the text area from the layout type registered in the database.

一方で、サーバ11は、一致するレイアウトタイプが無いと判断した場合、利用者からテキスト領域の受け付け処理を行なう(S105)。薬剤師等の利用者は、受付用端末12または利用者端末13のユーザI/Fを用いて、処方箋データの中からテキストが記載されている領域を手動で指定する。サーバ11は、指定されたテキスト領域を新たなレイアウトタイプとしてデータベース登録し(S106)、テキスト領域の判断処理を行なう(S104)。 On the other hand, when the server 11 determines that there is no matching layout type, the server 11 accepts the text area from the user (S105). A user such as a pharmacist manually designates an area in which the text is described in the prescription data by using the user I / F of the reception terminal 12 or the user terminal 13. The server 11 registers the designated text area as a new layout type in the database (S106), and performs the determination process of the text area (S104).

処方箋は、法改正等により新たなレイアウトタイプが生じる場合もあり、データベースに蓄積されたレイアウトタイプと一致しない場合もある。しかし、サーバ11は、データベースに一致するレイアウトタイプが無い場合に利用者からテキスト領域の指定操作を受け付けて、データベースに登録する登録処理を行なうことで、新たなレイアウトタイプが生じた場合でも、次回からは自動的にレイアウトタイプを判断することができる。 Prescriptions may have new layout types due to revisions to the law, etc., and may not match the layout types stored in the database. However, when the server 11 does not have a layout type that matches the database, the server 11 accepts a text area designation operation from the user and performs a registration process for registering in the database, so that even if a new layout type occurs, the next time. The layout type can be automatically determined from.

その後、サーバ11は、患者の情報が記載されたテキスト領域に対してテキスト認識処理を行なう(S107)。患者の情報は、患者の氏名および誕生日等の情報を含む。テキスト認識処理は、任意の文字認識アルゴリズム(例えばニューラルネットワーク等のアルゴリズムを搭載したTesseract-OCR)で行なわれる。 After that, the server 11 performs a text recognition process on the text area in which the patient information is described (S107). The patient information includes information such as the patient's name and birthday. The text recognition process is performed by an arbitrary character recognition algorithm (for example, Tesseract-OCR equipped with an algorithm such as a neural network).

サーバ11は、テキスト認識処理で認識した患者の情報をデータベースと対比して、対応する患者の情報が存在するか否かを判断する(S108)。サーバ11は、対応する患者が存在すると判断した場合、図5に示すS201~S207の処理を続ける。サーバ11は、対応する患者が存在しないと判断した場合、認識した患者の情報をデータベースに登録し(S109)、S201~S207の処理に移行する。 The server 11 compares the patient information recognized by the text recognition process with the database, and determines whether or not the corresponding patient information exists (S108). When the server 11 determines that the corresponding patient exists, the server 11 continues the processing of S201 to S207 shown in FIG. When the server 11 determines that the corresponding patient does not exist, the server 11 registers the recognized patient information in the database (S109) and proceeds to the process of S201 to S207.

次に、図5に示す様に、サーバ11は、薬の情報が記載されたテキスト領域においてセグメント処理を行なう(S201)。図6は、処方箋データの一例を示す図である。セグメント処理とは、図6のハッチング部分に示す様に、薬の情報が記載されたテキスト領域を一行毎のセグメントに区切る処理である。 Next, as shown in FIG. 5, the server 11 performs segment processing in the text area in which the drug information is described (S201). FIG. 6 is a diagram showing an example of prescription data. The segment processing is a processing for dividing a text area in which drug information is described into segments for each line, as shown in the hatched portion of FIG.

その後、サーバ11は、各セグメントでテキスト認識処理を行なう(S202)。テキスト認識処理は、任意の文字認識アルゴリズム(例えばニューラルネットワーク等のアルゴリズムを搭載したTesseract-OCR)で行なわれる。この処理は、処方箋用に機械学習された機械学習済文字認識アルゴリズムを用いることが好ましい。無論、サーバ11は、一般的な機械学習済アルゴリズムを用いてテキスト認識処理を行なってもよい。 After that, the server 11 performs text recognition processing in each segment (S202). The text recognition process is performed by an arbitrary character recognition algorithm (for example, Tesseract-OCR equipped with an algorithm such as a neural network). This process preferably uses a machine-learned character recognition algorithm machine-learned for prescriptions. Of course, the server 11 may perform text recognition processing using a general machine-learned algorithm.

次に、サーバ11は、認識したテキストデータに対してスペル修正処理を行なう(S203)。スペル修正処理は、例えばSymSpell等の任意のアルゴリズムを用いる。SymSpellアルゴリズムは、政府の提供する薬の名称辞典を用いて、薬の名称に係るテキスト認識の誤りを修正する。これにより、サーバ11は、S202のテキスト認識処理で生じたエラーを適切に修正することができる。 Next, the server 11 performs spell correction processing on the recognized text data (S203). The spelling correction process uses an arbitrary algorithm such as SymSpell. The SymSpel algorithm uses a government-provided drug name dictionary to correct text recognition errors related to drug names. As a result, the server 11 can appropriately correct the error generated in the text recognition process of S202.

さらに、サーバ11は、処方箋における特定パターンの修正処理を行なう(S204)。特定パターンの修正処理は、例えばn-gram等の任意のアルゴリズムを用いる。n-gramアルゴリズムは、処方箋における特定のパターンを含むパターン辞典を用いて、S203の処理では修正できなかったテキスト認識の誤りを修正する。処方箋における特定のパターンは、例えばジェネリック医薬品に使用される「般」の文字等を含む。また、n-gramアルゴリズムは、カタカナの「ロ」の字と漢字の「口」の違いも修正する。 Further, the server 11 performs a correction process of a specific pattern in the prescription (S204). An arbitrary algorithm such as n-gram is used for the correction process of the specific pattern. The n-gram algorithm corrects a text recognition error that could not be corrected by the processing of S203 by using a pattern dictionary containing a specific pattern in the prescription. Certain patterns in prescriptions include, for example, the letters "general" used in generic drugs. The n-gram algorithm also corrects the difference between the katakana "ro" character and the kanji "mouth".

サーバ11は、修正されたテキストデータを用いて第1単語抽出処理(S205)および第2単語抽出処理(S206)を行なう。第1単語抽出処理および第2単語抽出処理ともに、ニューラルネットワーク等の機械学習済単語抽出アルゴリズムを用いて行なう。機械学習済単語抽出アルゴリズムは、例えばNLP(Natural Language Processing)アルゴリズムである。本実施形態の第1単語抽出処理で用いる第1NLPアルゴリズムは、処方箋において関連するテキストの各部分の形式を判断し、タグ付けするように学習されている。各タグは、例えば薬の名称、投薬量、投薬期間、および摂取タイミング等を含む。 The server 11 performs the first word extraction process (S205) and the second word extraction process (S206) using the modified text data. Both the first word extraction process and the second word extraction process are performed using a machine-learned word extraction algorithm such as a neural network. The machine-learned word extraction algorithm is, for example, an NLP (Natural Language Processing) algorithm. The first NLP algorithm used in the first word extraction process of the present embodiment is learned to determine and tag the format of each part of the relevant text in the prescription. Each tag includes, for example, the name of the drug, dosage, duration of dosing, timing of ingestion, and the like.

第2単語抽出処理で用いる第2NLPアルゴリズムは、処方箋における特有のキーワード間の関係(構文および順序)を理解する様に学習されている。例えば、図6に示す処方箋データでは、第2NLPアルゴリズムは、1.一般名処方で薬の名称「○○○○錠」12mg、2.投薬量「3錠」で3.投薬期間「14日分」、4.摂取タイミング「1日1回寝る前」を、この順で関係付ける。同様に、第2NLPアルゴリズムは、1.一般名処方で薬の名称「○△△錠」7.5mg、2.投薬量「1錠」で、3.投薬期間「14日分」、4.摂取タイミング「1日1回寝る前」を、この順で関係付ける。 The second NLP algorithm used in the second word extraction process is learned to understand the relationships (syntax and order) between specific keywords in a prescription. For example, in the prescription data shown in FIG. 6, the second NLP algorithm is 1. Generic name Prescription drug name "○○○○ tablets" 12 mg, 2. Dosing "3 tablets" 3. Dosing period "14 days", 4. The intake timing "before going to bed once a day" is related in this order. Similarly, the second NLP algorithm is 1. Generic name Prescription drug name "○ △△ tablets" 7.5 mg, 2. With a dosage of "1 tablet", 3. Dosing period "14 days", 4. The intake timing "before going to bed once a day" is related in this order.

サーバ11は、以上の第1NLPアルゴリズムおよび第2NLPアルゴリズムを用いることにより、処方箋における特有の記載内容を高精度に抽出し、データベースに適切に登録可能かつ利用可能な形式として整理することができる。 By using the above-mentioned first NLP algorithm and second NLP algorithm, the server 11 can extract the specific description contents in the prescription with high accuracy and organize them in a format that can be appropriately registered in the database and can be used.

サーバ11は、以上の様にして抽出した単語をデータベースに登録する(S207)。そして、図3のフローチャートに戻り、サーバ11は、読み取り結果をレセコン14で読み取り可能な規格(例えばJAHIS)のQRコード(登録商標)に変換する(S15)。また、サーバ11は、読み取った処方箋データと、S207で登録した単語の位置情報(処方箋データ内の各単語の位置を示す情報)、およびS15で生成したQRコード(登録商標)を、データベースに登録する(S16)。 The server 11 registers the words extracted as described above in the database (S207). Then, returning to the flowchart of FIG. 3, the server 11 converts the reading result into a QR code (registered trademark) of a standard (for example, JAHIS) that can be read by the receipt computer 14 (S15). Further, the server 11 registers the read prescription data, the position information of the word registered in S207 (information indicating the position of each word in the prescription data), and the QR code (registered trademark) generated in S15 in the database. (S16).

一方、サーバ11は、データベースに登録した情報を利用者端末13に送信し、利用者端末13の情報を更新する(S17)。薬剤師は、利用者端末13のアプリケーションプログラムを用いて、各処方箋の内容を確認することができる。 On the other hand, the server 11 transmits the information registered in the database to the user terminal 13 and updates the information of the user terminal 13 (S17). The pharmacist can confirm the contents of each prescription by using the application program of the user terminal 13.

その後、サーバ11で生成されたQRコード(登録商標)は、利用者端末13のアプリケーションプログラムを介して、レセコン14に入力される(S18)。 After that, the QR code (registered trademark) generated by the server 11 is input to the receipt computer 14 via the application program of the user terminal 13 (S18).

以上の様に、本実施形態の処方箋読み取りプログラムは、処方箋のレイアウトタイプを判断してテキスト領域を判断し、判断したテキスト領域に対してニューラルネットワーク等の機械学習済文字認識アルゴリズムおよび機械学習済単語抽出アルゴリズムを用いて薬の名称および分量等の単語を抽出する。したがって、本実施形態の処方箋読み取りプログラムは、従来のOCRよりも極めて高い精度で文字認識および単語認識を行なうことができる。よって、本実施形態に係る処方箋読み取りプログラムは、FAXやスキャナで取り込んだ不鮮明な文字の処方箋データであっても適切に処方箋の読み取りを行なうことができる。特に、在宅向け薬局では、医療機関から同時に多数の処方箋を受け取るが、本実施形態の処方箋読み取りプログラムは、処方箋の読み取りおよびレセコンへの入力業務の負荷を著しく低減することができる。 As described above, the prescription reading program of the present embodiment determines the layout type of the prescription, determines the text area, and uses a machine-learned character recognition algorithm such as a neural network and a machine-learned word for the determined text area. Words such as the name and quantity of the drug are extracted using the extraction algorithm. Therefore, the prescription reading program of the present embodiment can perform character recognition and word recognition with extremely higher accuracy than the conventional OCR. Therefore, the prescription reading program according to the present embodiment can appropriately read the prescription even if the prescription data is unclear characters captured by FAX or a scanner. In particular, a home-use pharmacy receives a large number of prescriptions from a medical institution at the same time, but the prescription reading program of the present embodiment can significantly reduce the load of prescription reading and input work to a receipt computer.

なお、サーバ11は、患者毎に読み取り結果の情報をデータベースに蓄積している。薬剤師は、利用者端末13のアプリケーションプログラムを用いて、患者毎の過去の読み取り結果を全て参照することができる。図3のS17の処理において利用者端末13の情報が更新されると、薬剤師は、処方箋の内容を確認し、患者に電話等を介して、処方された薬の説明、および患者の服用状況等について確認を行うことができる。薬剤師は、利用者端末13を用いて、これらの内容を、薬剤服用歴管理記録(以下、「薬歴」と称する)として記録する。薬歴は、主観的情報(患者が話した内容、自覚症状)(S:Subjective)、客観的情報(処方内容、変更点、薬剤師の観察所見、検査データ)(O:Objective)、評価ならびに指導(SおよびOから薬剤師としての評価・判断とそれに基づく指導内容)(A:AAssessment)、および計画(次回に尋ねる点や注意すべきこと)(P:Plan)から構成される。薬剤師は、S17の処理において利用者端末13の情報が更新された後に、今回の処方箋に加えて過去の情報も参照することで、簡単に新たな薬歴を作成することができる。これにより、本実施形態の処方箋読み取りシステム1は、薬歴作成業務支援プログラムとしても機能する。 The server 11 stores the reading result information in the database for each patient. The pharmacist can refer to all the past reading results for each patient by using the application program of the user terminal 13. When the information of the user terminal 13 is updated in the process of S17 of FIG. 3, the pharmacist confirms the contents of the prescription, explains the prescribed medicine to the patient via a telephone or the like, and the patient's taking status. Can be confirmed. The pharmacist records these contents as a drug administration history management record (hereinafter referred to as “drug history”) using the user terminal 13. The drug history includes subjective information (contents spoken by the patient, subjective symptoms) (S: Subjective), objective information (prescription contents, changes, pharmacist's observations, test data) (O: Objective), evaluation and guidance. (Evaluation / judgment as a pharmacist from S and O and guidance content based on it) (A: AAssessment), and plan (points to ask next time and points to note) (P: Plan). The pharmacist can easily create a new drug history by referring to the past information in addition to the current prescription after the information of the user terminal 13 is updated in the process of S17. As a result, the prescription reading system 1 of the present embodiment also functions as a drug history creation business support program.

また、利用者端末13は、薬剤師が作成した薬歴をサーバ11に送信してもよい。サーバ11は、作成した新たな薬歴をデータベースに登録することで、次回新たな処方箋の読み取りを行なった時に、利用者端末13を介して薬剤師に薬歴を提示することができる。 Further, the user terminal 13 may transmit the drug history created by the pharmacist to the server 11. By registering the created new drug history in the database, the server 11 can present the drug history to the pharmacist via the user terminal 13 the next time the new prescription is read.

さらに、サーバ11は、新たに読み取った処方箋の内容と過去の薬歴に基づいて、今回新たに作成する薬歴を自動的に作成してもよい。薬歴の作成は、所定のアルゴリズムを用いて行なわれる。サーバ11は、作成した新たな薬歴を利用者端末13に送信する。薬剤師は、サーバ11で作成された薬歴を確認し、患者への説明および状況の確認の結果に応じて、サーバ11で作成された薬歴を修正する。あるいは、薬剤師は、患者への説明および状況の確認の結果、サーバ11で作成された薬歴で問題ないと判断した場合、サーバ11で作成された薬歴を確定する。薬剤師が薬歴を確定すると、確定した薬歴が利用者端末13からサーバ11およびレセコン14に登録される。 Further, the server 11 may automatically create the newly created drug history based on the contents of the newly read prescription and the past drug history. The drug history is created using a predetermined algorithm. The server 11 transmits the created new drug history to the user terminal 13. The pharmacist confirms the drug history created on the server 11, and corrects the drug history created on the server 11 according to the result of the explanation to the patient and the confirmation of the situation. Alternatively, if the pharmacist determines that there is no problem with the drug history created by the server 11 as a result of the explanation to the patient and the confirmation of the situation, the pharmacist determines the drug history created by the server 11. When the pharmacist confirms the drug history, the confirmed drug history is registered in the server 11 and the receipt computer 14 from the user terminal 13.

この様にして、本実施形態のサーバ11は、薬歴を自動作成することで、薬歴作成業務を支援することができ、薬局業務の負荷をさらに低減することもできる。 In this way, the server 11 of the present embodiment can support the drug history creation work by automatically creating the drug history, and can further reduce the load of the pharmacy work.

なお、本実施形態の説明は、すべての点で例示であり、制限的なものではないと考えられるべきである。本発明の範囲は、上述の実施形態ではなく、特許請求の範囲によって示される。さらに、本発明の範囲は、特許請求の範囲と均等の範囲を含む。 It should be noted that the description of this embodiment is an example in all respects and should be considered not to be restrictive. The scope of the invention is indicated by the claims, not by the embodiments described above. Further, the scope of the present invention includes the scope equivalent to the claims.

例えば、処方箋読み取りプログラムは、サーバ11ではなく、受付用端末12、利用者端末13またはレセコン14で実行してもよい。 For example, the prescription reading program may be executed not on the server 11 but on the reception terminal 12, the user terminal 13, or the receipt computer 14.

1…処方箋読み取りシステム
11…サーバ
12…受付用端末
13…利用者端末
14…レセコン
51…ネットワークI/F
52…記憶部
53…CPU
54…RAM
1 ... Prescription reading system 11 ... Server 12 ... Reception terminal 13 ... User terminal 14 ... Receipt 51 ... Network I / F
52 ... Storage unit 53 ... CPU
54 ... RAM

なお、サーバ11は、患者毎に読み取り結果の情報をデータベースに蓄積している。薬剤師は、利用者端末13のアプリケーションプログラムを用いて、患者毎の過去の読み取り結果を全て参照することができる。図3のS17の処理において利用者端末13の情報が更新されると、薬剤師は、処方箋の内容を確認し、患者に電話等を介して、処方された薬の説明、および患者の服用状況等について確認を行うことができる。薬剤師は、利用者端末13を用いて、これらの内容を、薬剤服用歴管理記録(以下、「薬歴」と称する)として記録する。薬歴は、主観的情報(患者が話した内容、自覚症状)(S:Subjective)、客観的情報(処方内容、変更点、薬剤師の観察所見、検査データ)(O:Objective)、評価ならびに指導(SおよびOから薬剤師としての評価・判断とそれに基づく指導内容)(A:Assessment)、および計画(次回に尋ねる点や注意すべきこと)(P:Plan)から構成される。薬剤師は、S17の処理において利用者端末13の情報が更新された後に、今回の処方箋に加えて過去の情報も参照することで、簡単に新たな薬歴を作成することができる。これにより、本実施形態の処方箋読み取りシステム1は、薬歴作成業務支援プログラムとしても機能する。 The server 11 stores the reading result information in the database for each patient. The pharmacist can refer to all the past reading results for each patient by using the application program of the user terminal 13. When the information of the user terminal 13 is updated in the process of S17 of FIG. 3, the pharmacist confirms the contents of the prescription, explains the prescribed medicine to the patient via a telephone or the like, and the patient's taking status. Can be confirmed. The pharmacist records these contents as a drug administration history management record (hereinafter referred to as “drug history”) using the user terminal 13. The drug history includes subjective information (contents spoken by the patient, subjective symptoms) (S: Subjective), objective information (prescription contents, changes, pharmacist's observations, test data) (O: Objective), evaluation and guidance. (Evaluation / judgment as a pharmacist from S and O and guidance content based on it) (A: Assessment ), and plan (points to ask next time and points to note) (P: Plan). The pharmacist can easily create a new drug history by referring to the past information in addition to the current prescription after the information of the user terminal 13 is updated in the process of S17. As a result, the prescription reading system 1 of the present embodiment also functions as a drug history creation business support program.

Claims (6)

処方箋データを受信する受信処理と、
前記受信処理で受信した前記処方箋データに基づいて、レイアウトタイプを判断するレイアウトタイプ判断処理と、
前記レイアウトタイプ判断処理で判断した前記レイアウトタイプに基づいて、テキスト領域を判断するテキスト領域判断処理と、
前記テキスト領域判断処理で判断した前記テキスト領域に対して、機械学習済文字認識アルゴリズムを用いてテキストデータの認識処理を行なうテキスト認識処理と、
前記テキスト認識処理で認識した前記テキストデータに対して、機械学習済単語抽出アルゴリズムを用いて薬の名称および分量を含む単語を抽出する抽出処理と、
を情報処理装置に実行させる処方箋読み取りプログラム。
Receiving process to receive prescription data and
A layout type determination process for determining a layout type based on the prescription data received in the reception process, and a layout type determination process.
The text area determination process for determining the text area based on the layout type determined in the layout type determination process, and the text area determination process.
A text recognition process for recognizing text data using a machine-learned character recognition algorithm for the text area determined by the text area determination process, and a text recognition process.
An extraction process for extracting words including the name and quantity of a drug using a machine-learned word extraction algorithm for the text data recognized by the text recognition process.
A prescription reading program that causes the information processing device to execute.
前記テキスト認識処理で認識した前記テキストデータのエラーを、機械学習済アルゴリズムで修正する修正処理をさらに実行させ、
前記抽出処理は、前記修正処理で修正されたテキストデータに対して行なわれる、
請求項1に記載の処方箋読み取りプログラム。
Further, a correction process for correcting the error of the text data recognized by the text recognition process by the machine-learned algorithm is executed.
The extraction process is performed on the text data corrected by the correction process.
The prescription reading program according to claim 1.
前記修正処理は、薬の名称辞典を用いた修正処理と、処方箋に含まれる特定のパターンを示すパターン辞典と、を用いて行なわれる、
請求項2に記載の処方箋読み取りプログラム。
The correction process is performed using a correction process using a drug name dictionary and a pattern dictionary showing a specific pattern included in the prescription.
The prescription reading program according to claim 2.
前記機械学習済単語抽出アルゴリズムは、
処方箋において関連するテキストの各部分の形式を判断し、タグ付けするように学習されている第1アルゴリズムと、
処方箋における特有のキーワード間の関係を理解する様に学習されている第2アルゴリズムと、
を有する、
請求項1乃至請求項3のいずれか1項に記載の処方箋読み取りプログラム。
The machine-learned word extraction algorithm
The first algorithm, which is learned to determine and tag the format of each part of the relevant text in a prescription, and
A second algorithm that is learned to understand the relationships between unique keywords in prescriptions,
Have,
The prescription reading program according to any one of claims 1 to 3.
前記レイアウトタイプ判断処理は、データベースに蓄積されたレイアウトタイプとの比較によって行なわれ、
前記データベースに一致するレイアウトタイプが無い場合に利用者からテキスト領域の操作を受け付けて、前記データベースに登録する登録処理をさらに実行させる、
請求項4に記載の処方箋読み取りプログラム。
The layout type determination process is performed by comparing with the layout type stored in the database.
When there is no layout type that matches the database, the operation of the text area is accepted from the user, and the registration process to be registered in the database is further executed.
The prescription reading program according to claim 4.
処方箋データを受信する受信部と、
前記受信部で受信した前記処方箋データに基づいて、レイアウトタイプを判断するレイアウトタイプ判断部と、
前記レイアウトタイプ判断部で判断した前記レイアウトタイプに基づいて、テキスト領域を判断するテキスト領域判断部と、
前記テキスト領域判断部で判断した前記テキスト領域に対してテキストデータの認識処理を行なうテキスト認識部と、
前記テキスト認識部で認識した前記テキストデータに対して、機械学習済アルゴリズムを用いて薬の名称および分量を含む単語を抽出する抽出部と、
を備えた処方箋読み取り装置。
A receiver that receives prescription data and
A layout type determination unit that determines the layout type based on the prescription data received by the reception unit, and a layout type determination unit.
A text area determination unit that determines a text area based on the layout type determined by the layout type determination unit, and a text area determination unit.
A text recognition unit that performs text data recognition processing for the text area determined by the text area determination unit, and a text recognition unit.
An extraction unit that extracts words including the name and amount of a drug from the text data recognized by the text recognition unit using a machine-learned algorithm, and an extraction unit.
A prescription reader equipped with.
JP2020140581A 2020-08-24 2020-08-24 Prescription reading program and prescription reading device Active JP6870876B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020140581A JP6870876B1 (en) 2020-08-24 2020-08-24 Prescription reading program and prescription reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020140581A JP6870876B1 (en) 2020-08-24 2020-08-24 Prescription reading program and prescription reading device

Publications (2)

Publication Number Publication Date
JP6870876B1 JP6870876B1 (en) 2021-05-12
JP2022036392A true JP2022036392A (en) 2022-03-08

Family

ID=75801943

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020140581A Active JP6870876B1 (en) 2020-08-24 2020-08-24 Prescription reading program and prescription reading device

Country Status (1)

Country Link
JP (1) JP6870876B1 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016071898A (en) * 2014-09-30 2016-05-09 メディア株式会社 Form recognition device, form recognition system, program for form recognition system, control method for form recognition system and recording medium loaded with form recognition system program

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016071898A (en) * 2014-09-30 2016-05-09 メディア株式会社 Form recognition device, form recognition system, program for form recognition system, control method for form recognition system and recording medium loaded with form recognition system program

Also Published As

Publication number Publication date
JP6870876B1 (en) 2021-05-12

Similar Documents

Publication Publication Date Title
CN107783950B (en) Method and device for processing drug instruction
US20200013491A1 (en) Interoperable Record Matching Process
JP6711523B2 (en) Form recognition system
JP2001043279A (en) Pharmacy system
CN111210917A (en) Medication guiding method and system based on offline code scanning
CN113130038A (en) Medicine data matching method, device, equipment and storage medium
US11010604B2 (en) Documentation determination device and documentation determination program
JP2020119195A (en) Prescription reading system, prescription reading method, and prescription reading program
JP4955197B2 (en) Receipt file generation system
JP6870876B1 (en) Prescription reading program and prescription reading device
WO2021010276A1 (en) Identification assistance system, identification assistance client, identification assistance server, and identification assistance method
JP6249619B2 (en) Information processing apparatus, information processing method, and program
KR102405985B1 (en) Method And Apparatus for Providing Medication Guidance
JP2022161210A (en) Prescription reading program, prescription reading device, and medical statement creation computer
CN114743209A (en) Prescription identification and verification method, system, electronic equipment and storage medium
RU2701702C2 (en) System and method for uniform comparison of unstructured recorded features with associated therapeutic features
US9443139B1 (en) Methods and apparatus for identifying labels and/or information associated with a label and/or using identified information
TWM613338U (en) Medical Order Information Retrieval System
KR20040101980A (en) Management system and the method for prescription
KR101825383B1 (en) Method and system for managing prescription medicines using electric code
JP7481053B1 (en) Medication support system, medication support method, and medication support program
JP2003058822A (en) Character information extraction device and its method, program and storage medium
WO2014203749A1 (en) Prescription input device and method
JP5191716B2 (en) Receipt computer data check system
TWI712979B (en) System and method for processing insurance claims using long short-term memory model of deep learning

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200908

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20200908

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210126

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20210205

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210209

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210310

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20210406

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210408

R150 Certificate of patent or registration of utility model

Ref document number: 6870876

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250