JP7635978B2 - Prescription reading program, prescription reading device, and prescription creation computer - Google Patents
Prescription reading program, prescription reading device, and prescription creation computer Download PDFInfo
- Publication number
- JP7635978B2 JP7635978B2 JP2021065835A JP2021065835A JP7635978B2 JP 7635978 B2 JP7635978 B2 JP 7635978B2 JP 2021065835 A JP2021065835 A JP 2021065835A JP 2021065835 A JP2021065835 A JP 2021065835A JP 7635978 B2 JP7635978 B2 JP 7635978B2
- Authority
- JP
- Japan
- Prior art keywords
- prescription
- data
- standard
- text
- word
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 claims description 68
- 239000003814 drug Substances 0.000 claims description 25
- 238000012545 processing Methods 0.000 claims description 24
- 229940079593 drug Drugs 0.000 claims description 22
- 238000012937 correction Methods 0.000 claims description 10
- 239000000284 extract Substances 0.000 claims description 7
- 230000010365 information processing Effects 0.000 claims description 5
- 238000010801 machine learning Methods 0.000 claims description 3
- 238000003058 natural language processing Methods 0.000 description 27
- 238000000605 extraction Methods 0.000 description 11
- 238000012015 optical character recognition Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 238000013528 artificial neural network Methods 0.000 description 4
- 238000011156 evaluation Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 239000003168 generic drug Substances 0.000 description 2
- 230000008676 import Effects 0.000 description 2
- 230000011218 segmentation Effects 0.000 description 2
- 208000024891 symptom Diseases 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Landscapes
- Character Discrimination (AREA)
- Medical Treatment And Welfare Office Work (AREA)
Description
本発明は、処方箋の文字等の情報を読み取る処方箋読み取りプログラム、処方箋読み取り装置、およびレセプト作成用コンピュータに関する。 The present invention relates to a prescription reading program that reads information such as text on a prescription, a prescription reading device, and a computer for creating prescriptions.
特許文献1には、薬局業務支援システムが記載されている。特許文献1には、「処方情報は、例えば、医療機関から発行された処方箋を撮影した画像データである。なお、撮影画像を文字認識して処方内容をテキストデータ化し、画像データおよびテキストデータを処方情報として用いるようにしてもよい。」と記載されている。
薬局は、医療機関から紙またはFAXを介して処方箋を受け取る。薬局は、紙で受け取った処方箋をテキストデータ化したい場合、スキャナで読み込み、OCR(Optical Character Recognition)によりテキストデータ化する。あるいは、薬局は、FAXで受け取った画像データをOCR(Optical Character Recognition)によりテキストデータ化する。しかし、スキャンした画像データおよびFAXで受け取った画像データは、文字が不鮮明な場合があり、従来のOCRでは適切に文字認識できない場合が多い。 Pharmacies receive prescriptions from medical institutions on paper or via fax. When a pharmacy wishes to convert a paper prescription received by pharmacy into text data, it scans the prescription and converts it into text data using OCR (Optical Character Recognition). Alternatively, a pharmacy may convert image data received by fax into text data using OCR (Optical Character Recognition). However, scanned image data and image data received by fax may contain unclear characters, and conventional OCR often cannot properly recognize the characters.
そこで、本発明の目的は、不鮮明な文字であっても適切に処方箋の読み取りが可能な処方箋読み取りプログラム、処方箋読み取り装置、およびレセプト作成用コンピュータを提供することにある。 The object of the present invention is to provide a prescription reading program, a prescription reading device, and a computer for creating prescriptions that can properly read prescriptions even if the characters are unclear.
本発明に係る処方箋読み取りプログラムは、処方箋データを受信する受信処理と、前記受信処理で受信した前記処方箋データに対して、機械学習済文字認識アルゴリズムを用いてテキストデータの認識処理を行なうテキスト認識処理と、前記テキスト認識処理で認識した前記テキストデータに対して、所定の処方箋の標準規格で規定されている単語を抽出して、各単語に対して前記標準規格に対応するタグを付ける第1NLPアルゴリズム処理と、前記標準規格で定められた構文を理解し、前記第1NLPアルゴリズムで付与された各単語のタグに基づいて各単語を当該標準規格で規定された順序に整理する第2NLPアルゴリズム処理と、前記第2NLPアルゴリズムで整理されたデータに基づいて、レセプト作成用コンピュータで読み取り可能な汎用のデータを生成するデータ生成処理と、
を情報処理装置に実行させる。
The prescription reading program according to the present invention includes a receiving process for receiving prescription data, a text recognition process for performing a text data recognition process on the prescription data received in the receiving process using a machine learning character recognition algorithm, a first NLP algorithm process for extracting words defined in a prescribed prescription standard from the text data recognized in the text recognition process and attaching tags corresponding to the standard to each word, a second NLP algorithm process for understanding a syntax defined in the standard and arranging each word in an order defined in the standard based on the tags of each word assigned by the first NLP algorithm, and a data generation process for generating general-purpose data readable by a prescription creation computer based on the data organized by the second NLP algorithm.
The information processing device is caused to execute the above.
処方箋読み取りプログラムは、以上の第1NLPアルゴリズムおよび第2NLPアルゴリズムを用いることにより、読み取ったテキストデータを、JAHIS等により定められた、所定の処方箋の標準規格で規定されている単語を抽出し、当該標準規格で規定された順序に整理する。処方箋の記載されている各テキストは、必ずしもJAHIS等の標準規格で規定されている順序に並んでいるとは限らない。処方箋は、例えば、病院や施設毎に記載順が異なっていたり、あるいは手書きで修正されたり、内容が追記されたりする。しかし、本実施形態の処方箋読み取りプログラムは、第1NLPアルゴリズムおよび第2NLPアルゴリズムにより、読み取ったテキストデータをJAHIS等により定められた標準規格に準じた形式に整理する。したがって、処方箋読み取りプログラムは、JAHIS等により定められた標準規格に対応するレセコン等の機器に対し、利用可能なデータとして整理することができる。 The prescription reading program uses the above-mentioned first NLP algorithm and second NLP algorithm to extract words defined in the standard specifications for a specific prescription established by JAHIS or the like from the read text data, and organizes the data in the order defined by the standard specifications. The texts written on a prescription are not necessarily arranged in the order defined by the standard specifications such as JAHIS. For example, the order of writing on a prescription may differ depending on the hospital or facility, or the prescription may be corrected by hand or additional content may be added. However, the prescription reading program of this embodiment organizes the read text data into a format conforming to the standard specifications defined by JAHIS or the like, using the first NLP algorithm and the second NLP algorithm. Therefore, the prescription reading program can organize the data into usable data for devices such as receipt computers that comply with the standard specifications defined by JAHIS or the like.
また、処方箋読み取りプログラムは、前記第2NLPアルゴリズムで整理されたデータに基づいて、レセプト作成用コンピュータで読み取り可能な汎用のデータ(例えばCSVデータ)を生成する、あるいは、処方箋読み取りプログラムは、前記第2NLPアルゴリズムで整理されたデータAPI等を介してレセコンに入力してもよい。 The prescription reading program may also generate general-purpose data (e.g., CSV data) that can be read by a prescription creation computer based on the data organized by the second NLP algorithm, or the prescription reading program may input the data organized by the second NLP algorithm to a prescription computer via an API or the like.
なお、処方箋読み取りプログラムは、前記テキスト認識処理で認識した前記テキストデータのエラーを、機械学習済アルゴリズムを用いて修正する修正処理をさらに実行し、さらに処方箋の読み取り精度を高めることもできる。この場合、前記抽出処理は、前記修正処理で修正されたテキストデータに対して行なわれる。 The prescription reading program can also perform a correction process to correct errors in the text data recognized in the text recognition process using a machine learning algorithm, thereby further improving the accuracy of reading prescriptions. In this case, the extraction process is performed on the text data corrected in the correction process.
また、修正処理は、薬の名称辞典と、処方箋に含まれる特定のパターンを含むパターン辞典と、を用いて行なわれる。パターン辞典は、例えばジェネリック医薬品に使用される「般」の文字や、カタカナの「ロ」と漢字の「口」等の情報を含む。これにより、処方箋の読み取り精度がさらに高まる。 The correction process is performed using a drug name dictionary and a pattern dictionary that contains specific patterns contained in prescriptions. The pattern dictionary contains information such as the character "han" used in generic drugs, the katakana character "ro" and the kanji character "kuchi". This further improves the accuracy of reading prescriptions.
本発明によれば、不鮮明な文字であっても適切に処方箋の読み取りを行なうことができる。 The present invention makes it possible to properly read prescriptions even if the characters are unclear.
以下、本発明の実施形態に係る処方箋読み取りシステム1について、図を参照しながら説明する。
The following describes the
図1は、処方箋読み取りシステム1の構成を示すブロック図である。処方箋読み取りシステム1は、サーバ11、受付用端末12、利用者端末13、およびレセコン14を備えている。サーバ11、受付用端末12、利用者端末13、およびレセコン14は、ネットワークを介して接続されている。
Figure 1 is a block diagram showing the configuration of a
受付用端末12は、一般的な情報処理装置(パーソナルコンピュータ)で実現される。受付用端末12は、不図示のFAX機またはスキャナに接続されていて、処方箋を画像データに変換した処方箋データを受信する。処方箋は、医療機関から紙またはFAXで送付される。薬局の薬剤師は、処方線を紙で受け取った場合には、不図示のスキャナを用いて受付用端末12に処方箋データを入力する。また、処方箋をFAXで受信した場合、受付用端末12は、FAX機から処方箋データを受信する。あるいは、薬剤師は、FAX機で処方箋データを印刷し、印刷した処方箋をスキャナで読み込み、受付用端末12に入力してもよい。受付用端末12は、処方箋データをサーバ11に送信する。
The
サーバ11は、本発明の処方箋読み取り装置の一例である。サーバ11は、薬局に設置されていてもよいし、インターネット上のサーバ群からなる態様であってもよい。サーバ11は、受付用端末12から処方箋データを受信し、処方箋の内容を読み取る動作を行なう。
The
利用者端末13は、薬剤師等の薬局業務を行なう者(利用者)が用いる端末であり、例えばスマートフォンあるいはタブレット型コンピュータ等の携帯型の情報処理装置である。利用者は、利用者端末13を用いてサーバ11で読み取られた処方箋の内容を確認したり、処方箋の内容をレセコン14に入力したりする。また、利用者は、利用者端末13を用いて患者の薬歴を確認し、新たな薬歴を作成することもできる。
The
レセコン14は、利用者端末13から入力される処方箋の内容に応じてレセプトを作成するレセプト作成用コンピュータである。レセコン14は、一般的なパーソナルコンピュータ上にインストールされたアプリケーションプログラムによって実現される。
The
図2は、サーバ11の構成を示すブロック図である。サーバ11は、ネットワークI/F51、記憶部52、CPU53、およびRAM54を備えている。
Figure 2 is a block diagram showing the configuration of the
ネットワークI/F51は、インターネット等のネットワークに接続される。本実施形態では、サーバ11は、ネットワークI/F51を介して受付用端末12および利用者端末13に接続される。
The network I/F 51 is connected to a network such as the Internet. In this embodiment, the
CPU53は、記憶部52に記憶されているプログラムをRAM54に読み出して、種々の動作を行なう。記憶部52は、サーバ11の基本プログラム(OS)と、本実施形態における処方箋読み取りプログラムと、を記憶している。また、記憶部52は、後述の処方箋データのレイアウトタイプを示す情報や、患者の個人情報等の各種データベースを備えている。
The
CPU53は、記憶部52から処方箋読み取りプログラムをRAM54に読み出すことで、処方箋読み取り装置として機能する。
The
図3は、処方箋読み取りシステム1の動作を示すフローチャートである。まず、処方箋は、医療機関から紙またはFAXで送付される(S11)。薬局の薬剤師は、紙またはFAXで送付された処方箋を受け取る(S12)。
Figure 3 is a flowchart showing the operation of the
そして、薬局の薬剤師は、受付用端末12を用いて紙の処方箋をスキャンし、処方箋データとしてサーバ11に送信する、またはFAXで受信した処方箋データをサーバ11に送信する(S13)。なお、薬剤師は、利用者端末13のアプリケーションプログラムを用いて、処方箋データをサーバ11に送信してもよい。また、受付用端末12または利用者端末13は、FAXを介して処方箋データを受信した時点、またはスキャナから受信した時点で、当該処方箋データを自動的にサーバ11に送信してもよい。特に、老人福祉施設等の在宅向け薬局では、医療機関から同時に多数の処方箋を受け取る。そのため、本実施形態の処方箋読み取りシステム1は、処方箋データを受信した場合に自動的にサーバ11に処方箋データを送信して以下の読み取り動作を行うことで、薬局業務の負荷を著しく低減することができる。
Then, the pharmacist at the pharmacy uses the
次に、サーバ11は、処方箋読み取りプログラムを実行して処方箋読み取り動作を行なう(S14)。
Next, the
図4および図5は、処方箋読み取り時のサーバ11の動作を示すフローチャートである。まず、サーバ11は、処方箋データから、画像の特徴量の抽出を行なう(S101)。この処理は、例えばSIFT(Scale Invariant Feature Transform)等の特徴量を抽出するアルゴリズムで行なう。
Figures 4 and 5 are flowcharts showing the operation of the
上述の様に、薬局は、FAXで処方箋データを受信する、あるいは処方箋スキャナで読み取る。したがって、処方箋データは、画像のサイズや傾きが一定ではない。サーバ11は、SIFTの特徴量抽出アルゴリズムを用いることにより、画像サイズおよび傾きに依存しない処方箋の画像の特徴量を抽出することができる。
As described above, pharmacies receive prescription data by fax or scan it with a prescription scanner. Therefore, the image size and inclination of the prescription data are not constant. By using the SIFT feature extraction algorithm,
次に、サーバ11は、抽出した特徴量に基づいて、データベースから対応するレイアウトタイプを判断する(S102)。データベースには、複数の処方箋のレイアウトタイプが蓄積されている。サーバ11は、RANSAC(Random Sample Consensus)等の推定アルゴリズムで、データベースを参照して、受信した処方箋データのレイアウトタイプに一致するレイアウトタイプを判断する。
Next, the
サーバ11は、一致するレイアウトタイプが存在するか否かを判断する(S103)。サーバ11は、一致するレイアウトタイプが存在したと判断した場合、テキスト領域の判断処理を行なう(S104)。テキスト領域は、少なくとも患者の氏名等の患者の情報が記載された領域、日付が記載された領域、および薬の情報が記載された領域等を含む。データベースに登録されているレイアウトタイプは、処方箋データのどの位置にどのテキスト領域が存在するかを示す位置情報が含まれている。サーバ11は、データベースに登録されているレイアウトタイプから、テキスト領域の位置情報を読み出すことで、テキスト領域を判断する。
The
一方で、サーバ11は、一致するレイアウトタイプが無いと判断した場合、利用者からテキスト領域の受け付け処理を行なう(S105)。薬剤師等の利用者は、受付用端末12または利用者端末13のユーザI/Fを用いて、処方箋データの中からテキストが記載されている領域を手動で指定する。サーバ11は、指定されたテキスト領域を新たなレイアウトタイプとしてデータベース登録し(S106)、テキスト領域の判断処理を行なう(S104)。
On the other hand, if the
処方箋は、法改正等により新たなレイアウトタイプが生じる場合もあり、データベースに蓄積されたレイアウトタイプと一致しない場合もある。しかし、サーバ11は、データベースに一致するレイアウトタイプが無い場合に利用者からテキスト領域の指定操作を受け付けて、データベースに登録する登録処理を行なうことで、新たなレイアウトタイプが生じた場合でも、次回からは自動的にレイアウトタイプを判断することができる。
New layout types may arise for prescriptions due to legal changes, etc., and may not match the layout types stored in the database. However, if there is no matching layout type in the database, the
その後、サーバ11は、患者の情報が記載されたテキスト領域に対してテキスト認識処理を行なう(S107)。患者の情報は、患者の氏名および誕生日等の情報を含む。テキスト認識処理は、任意の文字認識アルゴリズム(例えばニューラルネットワーク等のアルゴリズムを搭載したTesseract-OCR)で行なわれる。
Then, the
サーバ11は、テキスト認識処理で認識した患者の情報をデータベースと対比して、対応する患者の情報が存在するか否かを判断する(S108)。サーバ11は、対応する患者が存在すると判断した場合、図5に示すS201~S207の処理を続ける。サーバ11は、対応する患者が存在しないと判断した場合、認識した患者の情報をデータベースに登録し(S109)、S201~S207の処理に移行する。
The
次に、図5に示す様に、サーバ11は、薬の情報が記載されたテキスト領域においてセグメント処理を行なう(S201)。図6は、処方箋データの一例を示す図である。セグメント処理とは、図6のハッチング部分に示す様に、薬の情報が記載されたテキスト領域を一行毎のセグメントに区切る処理である。
Next, as shown in FIG. 5, the
その後、サーバ11は、各セグメントでテキスト認識処理を行なう(S202)。テキスト認識処理は、任意の文字認識アルゴリズム(例えばニューラルネットワーク等のアルゴリズムを搭載したTesseract-OCR)で行なわれる。この処理は、処方箋用に機械学習された機械学習済文字認識アルゴリズムを用いることが好ましい。無論、サーバ11は、一般的な機械学習済アルゴリズムを用いてテキスト認識処理を行なってもよい。
Then, the
次に、サーバ11は、認識したテキストデータに対してスペル修正処理を行なう(S203)。スペル修正処理は、例えばSymSpell等の任意のアルゴリズムを用いる。SymSpellアルゴリズムは、政府の提供する薬の名称辞典を用いて、薬の名称に係るテキスト認識の誤りを修正する。これにより、サーバ11は、S202のテキスト認識処理で生じたエラーを適切に修正することができる。
Next, the
さらに、サーバ11は、処方箋における特定パターンの修正処理を行なう(S204)。特定パターンの修正処理は、例えばn-gram等の任意のアルゴリズムを用いる。n-gramアルゴリズムは、処方箋における特定のパターンを含むパターン辞典を用いて、S203の処理では修正できなかったテキスト認識の誤りを修正する。処方箋における特定のパターンは、例えばジェネリック医薬品に使用される「般」の文字等を含む。また、n-gramアルゴリズムは、カタカナの「ロ」の字と漢字の「口」の違いも修正する。
Furthermore, the
サーバ11は、修正されたテキストデータを用いて第1単語抽出処理(S205)および第2単語抽出処理(S206)を行なう。第1単語抽出処理および第2単語抽出処理ともに、ニューラルネットワーク等の機械学習済単語抽出アルゴリズムを用いて行なう。機械学習済単語抽出アルゴリズムは、例えばNLP(Natural Language Processing)アルゴリズムである。本実施形態の第1単語抽出処理で用いる第1NLPアルゴリズムは、所定の処方箋の標準規格で規定されている単語を抽出して、各単語に対して、該標準規格に対応するタグを付ける。所定の処方箋の標準規格とは、例えばJAHISで定められた処方箋のデータに関する標準規格である。当該標準規格は、処方箋の内容を示す各種情報の順序を規定している。JAHISで定められた標準規格に準ずるデータは、レセコン14に入力して利用可能になる。第1NLPアルゴリズムは、当該JAHISで定められた標準規格で規定されている単語を抽出し、タグ付けするように学習されている。各タグは、例えば薬の名称、投薬量、投薬期間、および摂取タイミング等を含む。
The
第2単語抽出処理で用いる第2NLPアルゴリズムは、処方箋における特有のキーワード間の関係(構文および順序)を理解する様に学習されている。つまり、第2NLPアルゴリズムは、JAHISで定められた標準規格の内容に応じた構文および順序を学習している。例えば、本実施形態とは異なるが、英語の文章の読み取り用に学習されたNLPアルゴリズムは、読み取った英単語の形式(名詞、動詞等)にタグを付け、英語の構文で定められた順序に単語を並べ替える。これに対して本実施形態の第2NLPアルゴリズムは、JAHISで定められた標準規格の構文を理解し、第1NLPアルゴリズムで付与された各単語のタグに基づいて、当該単語を当該JAHISの標準規格で規定されている順序に並び替えて整理する。例えば、図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 trained to understand the relationship (syntax and order) between keywords specific to prescriptions. In other words, the second NLP algorithm learns syntax and order according to the contents of the standard defined by JAHIS. For example, an NLP algorithm trained to read English sentences, which is different from the present embodiment, tags the form of the English words read (nouns, verbs, etc.) and rearranges the words in the order defined by the English syntax. In contrast, the second NLP algorithm of the present embodiment understands the syntax of the standard defined by JAHIS and rearranges and organizes the words in the order defined by the JAHIS standard based on the tags of each word assigned by the first NLP algorithm. For example, in the prescription data shown in FIG. 6, the second NLP algorithm performs the following steps: 1. Generic name prescription with the name of the drug "XXXX tablets" 12 mg, 2. Dosage "3 tablets", 3. Medication period "14 days", 4. The timing of intake, "once a day before going to bed," is associated in this order. Similarly, the second NLP algorithm associates, in this order, 1. generic name prescription, drug name "○△△ tablets" 7.5 mg, 2. dosage "1 tablet," 3. dosing period "14 days," and 4. timing of intake, "once a day before going to bed."
サーバ11は、以上の第1NLPアルゴリズムおよび第2NLPアルゴリズムを用いることにより、読み取ったテキストデータを、JAHISの標準規格で規定されているデータの順序に整理することができる。処方箋に記載されている各テキストは、必ずしもJAHISの標準規格で規定されている順序に並んでいるとは限らない。処方箋は、例えば、病院や施設毎に記載順が異なっていたり、あるいは手書きで修正されたり、内容が追記されたりする。しかし、本実施形態の処方箋読み取りプログラムは、第1NLPアルゴリズムおよび第2NLPアルゴリズムにより、読み取ったテキストデータをJAHISの標準規格に準じた形式に整理する。したがって、処方箋読み取りプログラムは、処方箋における特有の記載内容を高精度に抽出し、データベースに適切に登録可能かつ利用可能な形式として整理する。つまり、処方箋読み取りプログラムは、あらゆる処方箋をJAHISの標準規格に準じた順序のデータに整理するため、どの様な形式の処方箋であってもレセコンに入力して利用可能なデータとして整理することができる。
By using the above-mentioned first NLP algorithm and second NLP algorithm, the
サーバ11は、以上の様にして抽出、整理した単語をデータベースに登録する(S207)。そして、図3のフローチャートに戻り、サーバ11は、読み取り結果をレセコン14で読み取り可能な規格(例えばJAHIS)の二次元コード(QRコード(登録商標))に変換する(S15)。また、サーバ11は、読み取った処方箋データと、S207で登録した単語の位置情報(処方箋データ内の各単語の位置を示す情報)、およびS15で生成したQRコード(登録商標)を、データベースに登録する(S16)。
The
一方、サーバ11は、データベースに登録した情報を利用者端末13に送信し、利用者端末13の情報を更新する(S17)。薬剤師は、利用者端末13のアプリケーションプログラムを用いて、各処方箋の内容を確認することができる。
Meanwhile, the
その後、サーバ11で生成されたQRコード(登録商標)は、利用者端末13のアプリケーションプログラムを介して、レセコン14に入力される(S18)。例えばアプリケーションプログラムは、サーバ11で生成されたQRコード(登録商標)を表示器(不図示)に表示する。薬剤師は、表示されたQRコード(登録商標)をスキャナで読み取る。これにより、処方箋読み取りプログラムで読み取った処方箋のデータは、レセコン14に入力される。
Then, the QR code (registered trademark) generated by the
また、処方箋読み取りプログラムは、第2NLPアルゴリズムで整理された順序でテキストを記載したCSV形式等の汎用のデータを生成してもよい。処方箋読み取りプログラムは、生成したCSV等のデータをレセコン14におけるデータインポート用のフォルダに入力する。レセコン14は、データインポート用のフォルダを介して、処方箋読み取りプログラムから処方箋のデータを受信する。レセコン14は、JAHISの標準規格に準じたCSVデータを入力可能に構成されている。したがって、本実施形態の処方箋読み取りプログラムは、レセコン14に、正確かつ自動的に処方箋のデータを入力することができる。
The prescription reading program may also generate general-purpose data such as CSV format in which text is written in the order organized by the second NLP algorithm. The prescription reading program inputs the generated CSV data into a data import folder in the
あるいは処方箋読み取りプログラムは、API(アプリケーションプログラミングインタフェース:Application Programming Interface)を介して、レセコン14に処方箋のデータを入力してもよい。この場合、レセコン14は、JAHISの標準規格に準じたデータを、APIを介して入力可能に構成されている。これにより、処方箋読み取りプログラムは、レセコン14に処方箋のデータを、APIを介して入力することもできる。したがってこの場合も、本実施形態の処方箋読み取りプログラムは、レセコン14に、正確かつ自動的に処方箋のデータを入力することができる。
Alternatively, the prescription reading program may input prescription data to the
この様に、処方箋読み取りプログラムは、QRコード(登録商標)を用いずにレセコン14に処方箋のデータを入力することもできる。この場合、処方箋読み取りプログラムは、薬剤師等の作業者がスキャナで読み取る作業負荷も低減することができ、レセコン14への処方箋のデータ入力を自動化できる。
In this way, the prescription reading program can also input prescription data into the
本実施形態の処方箋読み取りプログラムは、処方箋のレイアウトタイプを判断してテキスト領域を判断し、判断したテキスト領域に対してニューラルネットワーク等の機械学習済文字認識アルゴリズムおよび機械学習済単語抽出アルゴリズムを用いて薬の名称および分量等の単語を抽出する。したがって、本実施形態の処方箋読み取りプログラムは、従来のOCRよりも極めて高い精度で文字認識および単語認識を行なうことができる。よって、本実施形態に係る処方箋読み取りプログラムは、FAXやスキャナで取り込んだ不鮮明な文字の処方箋データであっても適切に処方箋の読み取りを行なうことができる。また、処方箋読み取りプログラムは、読み取ったテキストデータをJAHISの標準規格に準じたデータ形式に整理するため、処方箋内の各種情報の記載順が異なっていたり、あるいは手書きで修正されたり、内容が追記されたりしていても、正確かつ自動的に処方箋のデータをレセコンに入力することができる。特に、在宅向け薬局では、医療機関から同時に多数の処方箋を受け取るが、本実施形態の処方箋読み取りプログラムは、処方箋の読み取りおよびレセコンへの入力業務の負荷を著しく低減することができる。 The prescription reading program of this embodiment determines the layout type of the prescription to determine the text area, and extracts words such as the name and amount of the medicine from the determined text area using a machine-learned character recognition algorithm and a machine-learned word extraction algorithm such as a neural network. Therefore, the prescription reading program of this embodiment can perform character recognition and word recognition with much higher accuracy than conventional OCR. Therefore, the prescription reading program of this embodiment can properly read the prescription even if the prescription data is unclear and has been captured by fax or scanner. In addition, since the prescription reading program organizes the read text data into a data format that conforms to the JAHIS standard, the prescription data can be accurately and automatically entered into the receipt computer even if the order of various information in the prescription is different, or if the information has been corrected by hand or additional information has been added. In particular, at home pharmacies, many prescriptions are received from medical institutions at the same time, and the prescription reading program of this embodiment can significantly reduce the burden of reading prescriptions and entering them into the receipt computer.
なお、サーバ11は、患者毎に読み取り結果の情報をデータベースに蓄積している。薬剤師は、利用者端末13のアプリケーションプログラムを用いて、患者毎の過去の読み取り結果を全て参照することができる。図3のS17の処理において利用者端末13の情報が更新されると、薬剤師は、処方箋の内容を確認し、患者に電話等を介して、処方された薬の説明、および患者の服用状況等について確認を行うことができる。薬剤師は、利用者端末13を用いて、これらの内容を、薬剤服用歴管理記録(以下、「薬歴」と称する)として記録する。薬歴は、主観的情報(患者が話した内容、自覚症状)(S:Subjective)、客観的情報(処方内容、変更点、薬剤師の観察所見、検査データ)(O:Objective)、評価ならびに指導(SおよびOから薬剤師としての評価・判断とそれに基づく指導内容)(A:Assessment)、および計画(次回に尋ねる点や注意すべきこと)(P:Plan)から構成される。薬剤師は、S17の処理において利用者端末13の情報が更新された後に、今回の処方箋に加えて過去の情報も参照することで、簡単に新たな薬歴を作成することができる。これにより、本実施形態の処方箋読み取りシステム1は、薬歴作成業務支援プログラムとしても機能する。
The
また、利用者端末13は、薬剤師が作成した薬歴をサーバ11に送信してもよい。サーバ11は、作成した新たな薬歴をデータベースに登録することで、次回新たな処方箋の読み取りを行なった時に、利用者端末13を介して薬剤師に薬歴を提示することができる。
The
さらに、サーバ11は、新たに読み取った処方箋の内容と過去の薬歴に基づいて、今回新たに作成する薬歴を自動的に作成してもよい。薬歴の作成は、所定のアルゴリズムを用いて行なわれる。サーバ11は、作成した新たな薬歴を利用者端末13に送信する。薬剤師は、サーバ11で作成された薬歴を確認し、患者への説明および状況の確認の結果に応じて、サーバ11で作成された薬歴を修正する。あるいは、薬剤師は、患者への説明および状況の確認の結果、サーバ11で作成された薬歴で問題ないと判断した場合、サーバ11で作成された薬歴を確定する。薬剤師が薬歴を確定すると、確定した薬歴が利用者端末13からサーバ11およびレセコン14に登録される。
Furthermore, the
この様にして、本実施形態のサーバ11は、薬歴を自動作成することで、薬歴作成業務を支援することができ、薬局業務の負荷をさらに低減することもできる。
In this way, the
なお、本実施形態の説明は、すべての点で例示であり、制限的なものではないと考えられるべきである。本発明の範囲は、上述の実施形態ではなく、特許請求の範囲によって示される。さらに、本発明の範囲は、特許請求の範囲と均等の範囲を含む。 The description of this embodiment should be considered to be illustrative in all respects and not restrictive. The scope of the present invention is indicated by the claims, not by the above-described embodiment. Furthermore, the scope of the present invention includes the scope equivalent to the claims.
例えば、処方箋読み取りプログラムは、サーバ11ではなく、受付用端末12、利用者端末13またはレセコン14で実行してもよい。レセコン14が処方箋読み取りプログラムを実行する場合、レセコン14は、第2NLPアルゴリズムでJAHISの標準規格に準じた形式に整理したデータをそのまま受け付ける受付処理を行う。この場合、処方箋読み取りプログラムは、薬剤師等の作業者がスキャナで読み取る作業負荷もなく、CSVデータやAPIを介してデータの送受信を行う必要もなくなり、1つのプログラムの中で処方箋読み取りと処方箋のデータの受け付けとを完全に自動化できる。なお、レセコン14は、処方箋読み取りプログラムをプラグインソフトウェアとして実行してもよい。
For example, the prescription reading program may be executed not by the
1…処方箋読み取りシステム
11…サーバ
12…受付用端末
13…利用者端末
14…レセコン
51…ネットワークI/F
52…記憶部
53…CPU
54…RAM
1...
52...
54...RAM
Claims (8)
前記受信処理で受信した前記処方箋データに対して、機械学習済文字認識アルゴリズムを用いてテキストデータの認識処理を行なうテキスト認識処理と、
前記テキスト認識処理で認識した前記テキストデータに対して、所定の処方箋の標準規格で規定されている単語を抽出して、各単語に対して前記標準規格に対応するタグを付ける第1NLPアルゴリズム処理と、
前記標準規格で定められた構文を理解し、前記第1NLPアルゴリズム処理で付与された各単語のタグに基づいて各単語を当該標準規格で規定された順序に整理する第2NLPアルゴリズム処理と、
前記第2NLPアルゴリズム処理で整理されたデータに基づいて、レセプト作成用コンピュータで読み取り可能な汎用のデータを生成するデータ生成処理と、
を情報処理装置に実行させる処方箋読み取りプログラム。 A receiving process for receiving prescription data;
A text recognition process that performs a recognition process of text data on the prescription data received in the receiving process using a machine-learned character recognition algorithm;
A first NLP algorithm process for extracting words defined in a standard specification for a predetermined prescription from the text data recognized by the text recognition process and attaching a tag corresponding to the standard to each word;
A second NLP algorithm process that understands the syntax defined in the standard and organizes each word in an order defined in the standard based on the tag of each word assigned in the first NLP algorithm process;
A data generation process for generating general-purpose data readable by a computer for creating a medical receipt based on the data organized by the second NLP algorithm process ;
A prescription reading program that causes an information processing device to execute the above.
前記受信処理で受信した前記処方箋データに対して、機械学習済文字認識アルゴリズムを用いてテキストデータの認識処理を行なうテキスト認識処理と、
前記テキスト認識処理で認識した前記テキストデータに対して、所定の処方箋の標準規格で規定されている単語を抽出して、各単語に対して前記標準規格に対応するタグを付ける第1NLPアルゴリズム処理と、
前記標準規格で定められた構文を理解し、前記第1NLPアルゴリズム処理で付与された各単語のタグに基づいて各単語を当該標準規格で規定された順序に整理する第2NLPアルゴリズム処理と、
前記第2NLPアルゴリズム処理で整理されたデータを、アプリケーションプログラミングインタフェースを介して、レセプト作成用コンピュータに入力する入力処理と、
を情報処理装置に実行させる処方箋読み取りプログラム。 A receiving process for receiving prescription data;
A text recognition process that performs a recognition process of text data on the prescription data received in the receiving process using a machine-learned character recognition algorithm;
A first NLP algorithm process for extracting words defined in a standard specification for a predetermined prescription from the text data recognized by the text recognition process and attaching a tag corresponding to the standard to each word;
A second NLP algorithm process that understands the syntax defined in the standard and organizes each word in an order defined in the standard based on the tag of each word assigned in the first NLP algorithm process;
An input process of inputting the data organized by the second NLP algorithm process into a computer for creating a medical receipt via an application programming interface;
A prescription reading program that causes an information processing device to execute the above.
前記受信処理で受信した前記処方箋データに対して、機械学習済文字認識アルゴリズムを用いてテキストデータの認識処理を行なうテキスト認識処理と、
前記テキスト認識処理で認識した前記テキストデータに対して、所定の処方箋の標準規格で規定されている単語を抽出して、各単語に対して前記標準規格に対応するタグを付ける第1NLPアルゴリズム処理と、
前記標準規格で定められた構文を理解し、前記第1NLPアルゴリズム処理で付与された各単語のタグに基づいて各単語を当該標準規格で規定された順序に整理する第2NLPアルゴリズム処理と、
前記第2NLPアルゴリズム処理で整理されたデータを受け付ける受付処理と、
をレセプト作成用コンピュータに実行させる処方箋読み取りプログラム。 A receiving process for receiving prescription data;
A text recognition process that performs a recognition process of text data on the prescription data received in the receiving process using a machine-learned character recognition algorithm;
A first NLP algorithm process for extracting words defined in a standard specification for a predetermined prescription from the text data recognized by the text recognition process and attaching a tag corresponding to the standard to each word;
A second NLP algorithm process that understands the syntax defined in the standard and organizes each word in an order defined in the standard based on the tag of each word assigned in the first NLP algorithm process;
A reception process for receiving data organized by the second NLP algorithm process ;
A prescription reading program that causes a prescription creation computer to execute the above.
前記単語を抽出する処理は、前記修正処理で修正されたテキストデータに対して行なわれる、
請求項1乃至請求項3のいずれか1項に記載の処方箋読み取りプログラム。 Further executing a correction process for correcting errors in the text data recognized by the text recognition process using a machine learning algorithm;
The process of extracting words is performed on the text data corrected in the correction process.
The prescription reading program according to any one of claims 1 to 3.
請求項4に記載の処方箋読み取りプログラム。 The correction process is performed using a drug name dictionary and a pattern dictionary that indicates a specific pattern included in the prescription.
The prescription reading program according to claim 4.
前記受信部で受信した前記処方箋データに対してテキストデータの認識処理を行なうテキスト認識部と、
前記テキスト認識部で認識した前記テキストデータに対して、所定の処方箋の標準規格で規定されている単語を抽出して、各単語に対して前記標準規格に対応するタグを付ける第1NLPアルゴリズム処理部と、
前記標準規格で定められた構文を理解し、前記第1NLPアルゴリズム処理部で付与された各単語のタグに基づいて各単語を当該標準規格で規定された順序に整理する第2NLPアルゴリズム処理部と、
前記第2NLPアルゴリズム処理部で整理されたデータに基づいて、レセプト作成用コンピュータで読み取り可能な汎用のデータを生成するデータ生成処理部と、
を備えた処方箋読み取り装置。 A receiving unit for receiving prescription data;
a text recognition unit that performs a text data recognition process on the prescription data received by the receiving unit;
A first NLP algorithm processing unit that extracts words defined in a standard specification of a predetermined prescription from the text data recognized by the text recognition unit and attaches a tag corresponding to the standard to each word;
A second NLP algorithm processing unit that understands a syntax defined in the standard and organizes each word in an order defined in the standard based on the tag of each word assigned by the first NLP algorithm processing unit;
A data generation processing unit that generates general-purpose data that can be read by a prescription creation computer based on the data organized by the second NLP algorithm processing unit;
A prescription reading device comprising:
前記受信部で受信した前記処方箋データに対してテキストデータの認識処理を行なうテキスト認識部と、
前記テキスト認識部で認識した前記テキストデータに対して、所定の処方箋の標準規格で規定されている単語を抽出して、各単語に対して前記標準規格に対応するタグを付ける第1NLPアルゴリズム処理部と、
前記標準規格で定められた構文を理解し、前記第1NLPアルゴリズム処理部で付与された各単語のタグに基づいて各単語を当該標準規格で規定された順序に整理する第2NLPアルゴリズム処理部と、
前記第2NLPアルゴリズム処理部で整理されたデータを、レセプト作成用コンピュータに入力する入力処理部と、
を備えた処方箋読み取り装置。 A receiving unit for receiving prescription data;
a text recognition unit that performs a text data recognition process on the prescription data received by the receiving unit;
A first NLP algorithm processing unit that extracts words defined in a standard specification of a predetermined prescription from the text data recognized by the text recognition unit and attaches a tag corresponding to the standard to each word;
A second NLP algorithm processing unit that understands a syntax defined in the standard and organizes each word in an order defined in the standard based on the tag of each word assigned by the first NLP algorithm processing unit;
An input processing unit that inputs the data organized by the second NLP algorithm processing unit into a prescription creation computer;
A prescription reading device comprising:
前記受信部で受信した前記処方箋データに対してテキストデータの認識処理を行なうテキスト認識部と、
前記テキスト認識部で認識した前記テキストデータに対して、所定の処方箋の標準規格で規定されている単語を抽出して、各単語に対して前記標準規格に対応するタグを付ける第1NLPアルゴリズム処理部と、
前記標準規格で定められた構文を理解し、前記第1NLPアルゴリズム処理部で付与された各単語のタグに基づいて各単語を当該標準規格で規定された順序に整理する第2NLPアルゴリズム処理部と、
前記第2NLPアルゴリズム処理部で整理されたデータを受け付ける受付処理部と、
を備えたレセプト作成用コンピュータ。 A receiving unit for receiving prescription data;
a text recognition unit that performs a text data recognition process on the prescription data received by the receiving unit;
A first NLP algorithm processing unit that extracts words defined in a standard specification of a predetermined prescription from the text data recognized by the text recognition unit and attaches a tag corresponding to the standard to each word;
A second NLP algorithm processing unit that understands a syntax defined in the standard and organizes each word in an order defined in the standard based on the tag of each word assigned by the first NLP algorithm processing unit;
A reception processing unit that receives the data organized by the second NLP algorithm processing unit;
A prescription creation computer equipped with the following:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2021065835A JP7635978B2 (en) | 2021-04-08 | 2021-04-08 | Prescription reading program, prescription reading device, and prescription creation computer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2021065835A JP7635978B2 (en) | 2021-04-08 | 2021-04-08 | Prescription reading program, prescription reading device, and prescription creation computer |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2022161210A JP2022161210A (en) | 2022-10-21 |
| JP7635978B2 true JP7635978B2 (en) | 2025-02-26 |
Family
ID=83658474
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2021065835A Active JP7635978B2 (en) | 2021-04-08 | 2021-04-08 | Prescription reading program, prescription reading device, and prescription creation computer |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7635978B2 (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2001318987A (en) | 2000-05-11 | 2001-11-16 | Sanyo Electric Co Ltd | Prescription data inputting device |
| JP2007141040A (en) | 2005-11-21 | 2007-06-07 | Tosho Inc | Prescription acceptance device |
| JP2020123272A (en) | 2019-01-31 | 2020-08-13 | 富士ゼロックス株式会社 | Information processing device and information processing program |
| JP2020129198A (en) | 2019-02-07 | 2020-08-27 | 株式会社Epark | Service providing device, service providing method, and program |
| JP2021039694A (en) | 2019-09-05 | 2021-03-11 | キヤノン株式会社 | Data processing system, learning device, image processing device, method, and program |
-
2021
- 2021-04-08 JP JP2021065835A patent/JP7635978B2/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2001318987A (en) | 2000-05-11 | 2001-11-16 | Sanyo Electric Co Ltd | Prescription data inputting device |
| JP2007141040A (en) | 2005-11-21 | 2007-06-07 | Tosho Inc | Prescription acceptance device |
| JP2020123272A (en) | 2019-01-31 | 2020-08-13 | 富士ゼロックス株式会社 | Information processing device and information processing program |
| JP2020129198A (en) | 2019-02-07 | 2020-08-27 | 株式会社Epark | Service providing device, service providing method, and program |
| JP2021039694A (en) | 2019-09-05 | 2021-03-11 | キヤノン株式会社 | Data processing system, learning device, image processing device, method, and program |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2022161210A (en) | 2022-10-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20200013491A1 (en) | Interoperable Record Matching Process | |
| CN111210917A (en) | Medication guiding method and system based on offline code scanning | |
| US11010604B2 (en) | Documentation determination device and documentation determination program | |
| CN109815958B (en) | Laboratory test report identification method and device, electronic equipment and storage medium | |
| WO2021010276A1 (en) | Identification assistance system, identification assistance client, identification assistance server, and identification assistance method | |
| JP6870876B1 (en) | Prescription reading program and prescription reading device | |
| JP7635978B2 (en) | Prescription reading program, prescription reading device, and prescription creation computer | |
| JP2020119195A (en) | Prescription reading system, prescription reading method, and prescription reading program | |
| CN114743209A (en) | Prescription identification and verification method, system, electronic equipment and storage medium | |
| JP7649367B2 (en) | Medication support system, medication support method, and medication support program | |
| RU2701702C2 (en) | System and method for uniform comparison of unstructured recorded features with associated therapeutic features | |
| Butala et al. | Natural language parser for physician’s handwritten prescription | |
| KR20040106633A (en) | An Apparatus and Method for inputting a Medical Prescription Sheet by Image Recognition | |
| JP6655745B1 (en) | Information processing apparatus, information processing method, and information processing program | |
| US20180308567A1 (en) | System and method for storing and delivering healthcare informatics data | |
| JP2015002918A (en) | Prescription input device and method | |
| JP7481053B1 (en) | Medication support system, medication support method, and medication support program | |
| Al-Anazi et al. | An Electronic Prescribing System for Teleconsultation Using Healthcare 5.0 Innovations | |
| JP2020177595A (en) | Prescription information reception device, method, and computer program | |
| JP7378830B2 (en) | Prescription 2D code generation system | |
| JP7619568B2 (en) | Information processing device and program | |
| WO2007029625A1 (en) | Prescription receiving device | |
| KR101825383B1 (en) | Method and system for managing prescription medicines using electric code | |
| JP5191716B2 (en) | Receipt computer data check system | |
| KR102545795B1 (en) | Loss medical insurance proxy claim method and system through address book registration |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20240214 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20241107 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20241210 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20241218 |
|
| 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: 20250107 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20250205 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7635978 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |