Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7674176B2 - Text data analysis system, text data analysis method, and computer program - Google Patents
[go: Go Back, main page]

JP7674176B2 - Text data analysis system, text data analysis method, and computer program - Google Patents

Text data analysis system, text data analysis method, and computer program Download PDF

Info

Publication number
JP7674176B2
JP7674176B2 JP2021117846A JP2021117846A JP7674176B2 JP 7674176 B2 JP7674176 B2 JP 7674176B2 JP 2021117846 A JP2021117846 A JP 2021117846A JP 2021117846 A JP2021117846 A JP 2021117846A JP 7674176 B2 JP7674176 B2 JP 7674176B2
Authority
JP
Japan
Prior art keywords
character string
keyword
string
character
search
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
Application number
JP2021117846A
Other languages
Japanese (ja)
Other versions
JP2023013559A (en
Inventor
直 上野
明哲 北岡
香奈子 安念
Original Assignee
株式会社Ubicomホールディングス
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 株式会社Ubicomホールディングス filed Critical 株式会社Ubicomホールディングス
Priority to JP2021117846A priority Critical patent/JP7674176B2/en
Publication of JP2023013559A publication Critical patent/JP2023013559A/en
Priority to JP2025047496A priority patent/JP2025089415A/en
Application granted granted Critical
Publication of JP7674176B2 publication Critical patent/JP7674176B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Machine Translation (AREA)

Description

本発明は、テキストデータ解析システム、テキストデータ解析方法およびコンピュータプログラムに関する。 The present invention relates to a text data analysis system, a text data analysis method, and a computer program.

従来、光学文字読取装置で文書を読み取る文書読取装置が知られている(特許文献1)。この技術では、誤認識した文字を含む誤認識文字列と、誤認識した文字を修正する修正文字列とを対応して記憶する誤認識データベースを有し、光学文字読取装置で文書を読み取った読取データの文字列を誤認識データベースで検索し、誤認識文字列の場合は対応した修正文字列に変換した修正データを作成する。また、正しく修正されなかったものについては、誤認識データベースに追加していくことで誤認識の成功率を高くする。 Conventionally, a document reading device that reads a document using an optical character reader is known (Patent Document 1). This technology has an error recognition database that stores misrecognized character strings that include misrecognized characters and correction character strings that correct the misrecognized characters in correspondence with each other, and searches the error recognition database for character strings in read data obtained by reading a document using the optical character reader, and in the case of misrecognized character strings, creates correction data that converts them into the corresponding correction character string. In addition, for characters that were not correctly corrected, the success rate of misrecognition is increased by adding them to the error recognition database.

特許第3349699号公報Patent No. 3349699

ところで、所定の文字列をキーワードとして、医療行為や医薬品、傷病名を表す文字列を記憶するマスタから、キーワードと一致する文字列がヒットするかを検索する場合において、診療明細書等に記載されていた文字列がマスタに記憶されている文字列と同一でなかったり、診療明細書等に記載されている文字列を正確にテキストデータ化できなかったりした場合、そのままでは医療行為等を表す文字列を抽出することはできない。 However, when searching for a string that matches a given keyword in a master that stores strings representing medical procedures, medicines, and illnesses and injuries, if the string listed in the medical bill or other document is not identical to the string stored in the master, or if the string listed in the medical bill or other document cannot be accurately converted into text data, it is not possible to extract the string representing the medical procedure or other document.

これに対して、従来、マスタに、キーワードと一致する文字列が記憶されていない場合、当該キーワードをマスタに追加していくことで、検索の成功率を高くする技術もあるが、マスタに新たなキーワードを追加する前は文字列を抽出することができないし、マスタに新たなキーワードを追加していくことでマスタのデータ容量が大きくなっていくという問題がある。 In response to this, there is a conventional technique for increasing the success rate of searches when a character string that matches a keyword is not stored in the master by adding that keyword to the master. However, this technique has the problem that it is not possible to extract a character string before adding a new keyword to the master, and the data capacity of the master increases as new keywords are added to the master.

本発明は、以上の背景に鑑みてなされたものであり、マスタにキーワードを必要以上に追加していくことなく、テキストデータから医療行為や医薬品、傷病名を表す文字列を抽出することができるテキストデータ解析システム、テキストデータ解析方法およびコンピュータプログラムを提供することを目的とする。 The present invention has been made in consideration of the above background, and aims to provide a text data analysis system, a text data analysis method, and a computer program that can extract character strings representing medical procedures, medicines, and names of injuries and illnesses from text data without adding more keywords than necessary to the master.

前記した目的を達成するためのテキストデータ解析システムは、テキストデータを取得するデータ取得手段と、データ取得手段が取得したテキストデータから、一の項目を表す一群の文字列を抽出する文字列抽出手段と、前記文字列抽出手段が抽出した文字列を第1キーワードとして、医療行為または医薬品を表す文字列を記憶する医療行為・医薬品マスタから、前記第1キーワードと一致する文字列がヒットするかを検索する第1検索手段であって、検索の結果、前記第1キーワードと一致する文字列がヒットした場合、ヒットした文字列に対応する医療行為または医薬品の情報を出力する第1検索手段と、前記第1検索手段による検索の結果、前記第1キーワードと一致する文字列がヒットしない場合、文字列の先頭に付く特定の文字列である接頭語を記憶する接頭語マスタを参照して、前記第1キーワードから、接頭語を取り除いた文字列を生成する第1文字列生成手段と、前記第1文字列生成手段が生成した文字列を第2キーワードとして、前記医療行為・医薬品マスタから、前記第2キーワードと一致する文字列がヒットするかを検索する第2検索手段であって、検索の結果、前記第2キーワードと一致する文字列がヒットした場合、ヒットした文字列に対応する医療行為または医薬品の情報を出力する第2検索手段と、前記第2検索手段による検索の結果、前記第2キーワードと一致する文字列がヒットしない場合、前記第2キーワードから、少なくとも、括弧および当該括弧によって囲われた文字列を取り除いた文字列を生成する第2文字列生成手段と、前記第2文字列生成手段が生成した文字列を第3キーワードとして、前記医療行為・医薬品マスタから、前記第3キーワードを含む文字列を抽出する類似文字列抽出手段と、前記類似文字列抽出手段が抽出した文字列に対応する少なくとも1つの医療行為または医薬品の情報を出力する出力手段と、を備えることを特徴とする。 A text data analysis system for achieving the above-mentioned object includes a data acquisition means for acquiring text data, a character string extraction means for extracting a group of character strings representing one item from the text data acquired by the data acquisition means, a first search means for searching a medical practice/drug master that stores character strings representing medical practices or pharmaceuticals for a character string that matches the first keyword, using the character string extracted by the character string extraction means as a first keyword, and if a character string that matches the first keyword is found as a result of the search, a first search means for outputting information on the medical practice or pharmaceutical corresponding to the hit character string, and if a character string that matches the first keyword is not found as a result of the search by the first search means, a first character string generation means for generating a character string from the first keyword by removing the prefix, by referring to a prefix master that stores a prefix, which is a specific character string that is added to the beginning of a character string, and a first string generation means for generating a character string by removing the prefix from the first keyword, and a second search means for searching the medical practice/drug master for a string that matches the second keyword using the string generated by the generating means as a second keyword, and for outputting information on the medical practice or drug corresponding to the hit string when the search results in a string that matches the second keyword; a second string generating means for generating a string from the second keyword by removing at least parentheses and the string enclosed by the parentheses when the search results in no string that matches the second keyword; a similar string extracting means for extracting a string including the third keyword from the medical practice/drug master using the string generated by the second string generating means as a third keyword; and an output means for outputting information on at least one medical practice or drug corresponding to the string extracted by the similar string extracting means.

このようなシステムによれば、マスタにキーワードを必要以上に追加していくことなく、テキストデータから医療行為または医薬品を表す文字列を抽出することができる。 With such a system, it is possible to extract character strings representing medical procedures or medicines from text data without adding more keywords than necessary to the master.

また、テキストデータ解析システムは、前記類似文字列抽出手段が抽出した文字列が複数ある場合、前記類似文字列抽出手段が抽出した文字列と、前記第2キーワードとの類似度をそれぞれ算出する第1類似度算出手段をさらに備え、前記出力手段は、前記類似文字列抽出手段が抽出した文字列のうち、前記第1類似度算出手段が算出した類似度が所定以上である文字列に対応する医療行為または医薬品の情報を出力する構成とすることができる。 The text data analysis system may further include a first similarity calculation means for calculating the similarity between each of the character strings extracted by the similar character string extraction means and the second keyword when there are multiple character strings extracted by the similar character string extraction means, and the output means may be configured to output information on medical procedures or medicines corresponding to character strings among the character strings extracted by the similar character string extraction means that have a similarity calculated by the first similarity calculation means that is equal to or greater than a predetermined value.

これによれば、医療行為、医薬品の情報を絞り込んで出力することができる。 This allows you to narrow down and output information on medical procedures and medicines.

また、前記医療行為・医薬品マスタは、一または複数の医療行為または医薬品を表す文字列と、当該一または複数の医療行為または医薬品を表す文字列に含まれる文字列である索引文字列とを対応させて記憶しており、テキストデータ解析システムは、前記類似文字列抽出手段が、前記医療行為・医薬品マスタから前記第3キーワードを含む文字列を抽出できなかった場合、前記第3キーワードと、前記索引文字列との類似度を算出する第2類似度算出手段をさらに備え、前記類似文字列抽出手段は、前記第2類似度算出手段が算出した類似度が所定以上である索引文字列がある場合、前記医療行為・医薬品マスタから、当該索引文字列に対応する文字列を抽出する構成とすることができる。 The medical practice/drug master stores character strings representing one or more medical practices or drugs in correspondence with index character strings that are character strings included in the character strings representing the one or more medical practices or drugs, and the text data analysis system further includes a second similarity calculation means for calculating the similarity between the third keyword and the index character string when the similar character string extraction means is unable to extract a character string including the third keyword from the medical practice/drug master, and the similar character string extraction means can be configured to extract a character string corresponding to the index character string from the medical practice/drug master when there is an index character string whose similarity calculated by the second similarity calculation means is equal to or greater than a predetermined value.

これによれば、テキストデータから医療行為または医薬品を表す文字列をより確実に抽出することができる。 This makes it possible to more reliably extract character strings representing medical procedures or medicines from text data.

また、テキストデータ解析システムは、前記第2類似度算出手段が算出した類似度が所定以上である索引文字列がない場合、医療行為または医薬品を表す文字列に含まれる特定の文字列である要素文字列を記憶する要素文字列マスタを参照して、前記第2キーワードから、少なくとも1つの要素文字列を抽出する要素文字列抽出手段をさらに備え、前記類似文字列抽出手段は、前記要素文字列抽出手段が抽出した要素文字列を第4キーワードとして、前記医療行為・医薬品マスタから、前記第4キーワードを含む文字列を抽出する構成とすることができる。 The text data analysis system may further include an element string extraction means for extracting at least one element string from the second keyword by referring to an element string master that stores element strings that are specific strings included in strings representing medical procedures or medicines when there is no index string with a similarity calculated by the second similarity calculation means that is equal to or greater than a predetermined value, and the similar string extraction means may be configured to extract a string including the fourth keyword from the medical procedure/medicine master by using the element string extracted by the element string extraction means as a fourth keyword.

これによれば、テキストデータから医療行為または医薬品を表す文字列をさらに確実に抽出することができる。 This makes it possible to more reliably extract character strings representing medical procedures or medicines from text data.

また、テキストデータ解析システムは、前記要素文字列抽出手段が抽出した要素文字列が複数ある場合、前記第2キーワードの中央に近い位置にある要素文字列を第4キーワードとして前記類似文字列抽出手段が抽出した文字列について、他の要素文字列よりも先に前記第2キーワードとの類似度を算出する第3類似度算出手段をさらに備え、前記出力手段は、前記第3類似度算出手段が先に類似度を算出した文字列の中に類似度が所定以上である文字列がある場合、当該文字列に対応する医療行為または医薬品の情報を出力する構成とすることができる。 The text data analysis system may further include a third similarity calculation means for calculating the similarity between the second keyword and the string extracted by the similar string extraction means, using an element string located close to the center of the second keyword as a fourth keyword, before other element strings, when there are multiple element strings extracted by the element string extraction means, and the output means may be configured to output information on a medical procedure or medicine corresponding to the string when a string with a similarity equal to or greater than a predetermined value is included among the strings for which the third similarity calculation means has calculated the similarity first.

これによれば、医療行為または医薬品の情報を出力するまでの処理量を少なくして処理速度を速くすることができる。 This reduces the amount of processing required to output information about medical procedures or medicines, thereby increasing processing speed.

また、前記第2文字列生成手段は、前記第2キーワードから、以下の文字列(1)~(5)の少なくとも1つをさらに取り除いた文字列を生成する構成とすることができる。
(1)先頭または後尾にある空白
(2)途中にある空白および当該空白以降の文字列
(3)中黒
(4)読点
(5)数字および当該数字の直後にある単位を表す文字列
The second character string generating means may be configured to generate a character string by further removing at least one of the following character strings (1) to (5) from the second keyword:
(1) A space at the beginning or end of a word; (2) A space in the middle of a word and the characters following that space; (3) A dot; (4) A comma; (5) A number and the characters immediately following that number that represent the unit.

これによれば、医療行為、医薬品の情報を絞り込みやすくすることができる。 This makes it easier to narrow down information on medical procedures and medicines.

また、前記した目的を達成するためのテキストデータ解析システムは、テキストデータを取得するデータ取得手段と、データ取得手段が取得したテキストデータから、一の項目を表す一群の文字列を抽出する文字列抽出手段と、前記文字列抽出手段が抽出した文字列を第1キーワードとして、傷病名を表す文字列を記憶する傷病名マスタから、前記第1キーワードと一致する文字列がヒットするかを検索する第1検索手段であって、検索の結果、前記第1キーワードと一致する文字列がヒットした場合、ヒットした文字列に対応する傷病名の情報を出力する第1検索手段と、前記第1検索手段による検索の結果、前記第1キーワードと一致する文字列がヒットしない場合、文字列の後尾に付く特定の文字列である接尾語を記憶する接尾語マスタを参照して、前記第1キーワードから、接尾語を取り除いた文字列を生成する第1文字列生成手段と、前記第1文字列生成手段が生成した文字列を第2キーワードとして、前記傷病名マスタから、前記第2キーワードと一致する文字列がヒットするかを検索する第2検索手段であって、検索の結果、前記第2キーワードと一致する文字列がヒットした場合、ヒットした文字列に対応する傷病名の情報を出力する第2検索手段と、前記第2検索手段による検索の結果、前記第2キーワードと一致する文字列がヒットしない場合、文字列の先頭に付く特定の文字列である接頭語を記憶する接頭語マスタを参照して、前記第2キーワードから、接頭語を取り除いた文字列を生成する第2文字列生成手段と、前記第2文字列生成手段が生成した文字列を第3キーワードとして、前記傷病名マスタから、前記第3キーワードと一致する文字列がヒットするかを検索する第3検索手段であって、検索の結果、前記第3キーワードと一致する文字列がヒットした場合、ヒットした文字列に対応する傷病名の情報を出力する第3検索手段と、を備えることを特徴とする。 A text data analysis system for achieving the above-mentioned object includes a data acquisition means for acquiring text data, a character string extraction means for extracting a group of character strings representing one item from the text data acquired by the data acquisition means, a first search means for searching a disease name master storing character strings representing names of injuries or illnesses, using the character string extracted by the character string extraction means as a first keyword, to see if a character string matching the first keyword is found, and if a character string matching the first keyword is found as a result of the search, a first search means for outputting information on the disease name corresponding to the found character string, a first character string generation means for generating a character string from the first keyword by removing the suffix, by referring to a suffix master storing suffixes, which are specific character strings added to the end of a character string, if a character string matching the first keyword is not found as a result of the search by the first search means, and a second character string generation means for generating a character string by removing the suffix from the first keyword, and a second character string generation means for generating a character string by referring to a suffix master storing suffixes, which are specific character strings added to the end of a character string, and a second character string generation means for generating a character string by removing the suffix from the first keyword, if the character string generated by the first character string generation means is not found as a result of the search by the first search means. The present invention is characterized in that it includes a second search means for searching the injury/illness name master as a first keyword to see if a character string matching the second keyword is found, and outputting information on the injury/illness name corresponding to the found character string when a character string matching the second keyword is found as a result of the search by the second search means; a second character string generation means for generating a character string from the second keyword by removing the prefix by referring to a prefix master that stores a prefix, which is a specific character string attached to the beginning of a character string, when a character string matching the second keyword is not found as a result of the search by the second search means; and a third search means for searching the injury/illness name master as a third keyword to see if a character string matching the third keyword is found, and outputting information on the injury/illness name corresponding to the found character string when a character string matching the third keyword is found as a result of the search by the second search means.

このようなシステムによれば、マスタにキーワードを必要以上に追加していくことなく、テキストデータから傷病名を表す文字列を抽出することができる。 With this type of system, it is possible to extract character strings representing the names of injuries and illnesses from text data without adding more keywords than necessary to the master.

また、テキストデータ解析システムは、前記第3検索手段による検索の結果、前記第3キーワードと一致する文字列がヒットしない場合、傷病名に含まれる特定の文字列である要素文字列を記憶する要素文字列マスタを参照して、前記第3キーワードから、少なくとも1つの要素文字列を抽出する要素文字列抽出手段と、前記要素文字列抽出手段が抽出した要素文字列を第4キーワードとして、前記傷病名マスタから、前記第4キーワードを含む文字列を抽出する類似文字列抽出手段と、前記類似文字列抽出手段が抽出した文字列に対応する少なくとも1つの傷病名の情報を出力する出力手段と、をさらに備える構成とすることができる。 The text data analysis system may further include an element string extraction means for extracting at least one element string from the third keyword by referring to an element string master that stores element strings that are specific strings contained in the injury or illness name when the search by the third search means does not hit a string matching the third keyword, a similar string extraction means for extracting a string including the fourth keyword from the injury or illness name master using the element string extracted by the element string extraction means as a fourth keyword, and an output means for outputting information on at least one injury or illness name corresponding to the string extracted by the similar string extraction means.

これによれば、テキストデータから傷病名を表す文字列をより確実に抽出することができる。 This makes it possible to more reliably extract character strings representing the names of injuries and illnesses from text data.

また、テキストデータ解析システムは、前記類似文字列抽出手段が抽出した文字列と、前記第3キーワードとの類似度を算出する類似度算出手段をさらに備え、前記出力手段は、前記類似文字列抽出手段が抽出した文字列のうち、前記類似度算出手段が算出した類似度が所定以上である文字列に対応する傷病名の情報を出力する構成とすることができる。 The text data analysis system may further include a similarity calculation means for calculating a similarity between the character string extracted by the similar character string extraction means and the third keyword, and the output means may be configured to output information on the names of injuries or illnesses corresponding to character strings among the character strings extracted by the similar character string extraction means that have a similarity calculated by the similarity calculation means that is equal to or greater than a predetermined value.

これによれば、傷病名の情報を絞り込んで出力することができる。 This allows you to narrow down and output information on injury or illness names.

また、前記類似度算出手段は、前記要素文字列抽出手段が抽出した要素文字列が複数ある場合、前記第3キーワードの中央に近い位置にある要素文字列を第4キーワードとして前記類似文字列抽出手段が抽出した文字列について、他の要素文字列よりも先に前記第3キーワードとの類似度を算出し、前記出力手段は、先に類似度を算出した文字列の中に類似度が所定以上である文字列がある場合、当該文字列に対応する傷病名の情報を出力する構成とすることができる。 The similarity calculation means may be configured to, when there are a plurality of element strings extracted by the element string extraction means, calculate the similarity between the element string located close to the center of the third keyword and the third keyword for the string extracted by the similar string extraction means as the fourth keyword before calculating the similarity between the element string and the third keyword for the string extracted by the similar string extraction means ..., when the output means is configured to output information on the name of the injury or illness corresponding to the string if the string includes a string with a similarity equal to or greater than a predetermined value among the strings whose similarity has been calculated earlier.

これによれば、傷病名の情報を出力するまでの処理量を少なくして処理速度を速くすることができる。 This reduces the amount of processing required to output the injury or illness information, thereby speeding up the processing speed.

また、前記した目的を達成するためのテキストデータ解析方法は、コンピュータが備える手段が、テキストデータを取得するデータ取得ステップと、データ取得ステップで取得したテキストデータから、一の項目を表す一群の文字列を抽出する文字列抽出ステップと、前記文字列抽出ステップで抽出した文字列を第1キーワードとして、医療行為または医薬品を表す文字列を記憶する医療行為・医薬品マスタから、前記第1キーワードと一致する文字列がヒットするかを検索する第1検索ステップであって、検索の結果、前記第1キーワードと一致する文字列がヒットした場合、ヒットした文字列に対応する医療行為または医薬品の情報を出力する第1検索ステップと、前記第1検索ステップにおける検索の結果、前記第1キーワードと一致する文字列がヒットしない場合、文字列の先頭に付く特定の文字列である接頭語を記憶する接頭語マスタを参照して、前記第1キーワードから、接頭語を取り除いた文字列を生成する第1文字列生成ステップと、前記第1文字列生成ステップで生成した文字列を第2キーワードとして、前記医療行為・医薬品マスタから、前記第2キーワードと一致する文字列がヒットするかを検索する第2検索ステップであって、検索の結果、前記第2キーワードと一致する文字列がヒットした場合、ヒットした文字列に対応する医療行為または医薬品の情報を出力する第2検索ステップと、前記第2検索ステップにおける検索の結果、前記第2キーワードと一致する文字列がヒットしない場合、前記第2キーワードから、少なくとも、括弧および当該括弧によって囲われた文字列を取り除いた文字列を生成する第2文字列生成ステップと、前記第2文字列生成ステップで生成した文字列を第3キーワードとして、前記医療行為・医薬品マスタから、前記第3キーワードを含む文字列を抽出する類似文字列抽出ステップと、前記類似文字列抽出ステップで抽出した文字列に対応する少なくとも1つの医療行為または医薬品の情報を出力する出力ステップと、を実行することを特徴とする。 In addition, a text data analysis method for achieving the above-mentioned object includes a computer having means including a data acquisition step for acquiring text data, a string extraction step for extracting a group of strings representing one item from the text data acquired in the data acquisition step, a first search step for searching a medical practice/drug master that stores strings representing medical practices or pharmaceuticals for a string that matches the first keyword using the string extracted in the string extraction step as a first keyword, and if a string that matches the first keyword is found as a result of the search, a first search step for outputting information on the medical practice or pharmaceutical corresponding to the hit string, and a first string generation step for generating a string from the first keyword by removing the prefix, by referring to a prefix master that stores a prefix, which is a specific string that is added to the beginning of a string, if a string that matches the first keyword is not found as a result of the search in the first search step, and The method includes a second search step in which the character string generated in the first character string generation step is used as a second keyword to search the medical practice/medicine master for a character string that matches the second keyword, and if a character string that matches the second keyword is found as a result of the search, a second search step in which information on the medical practice or medicine corresponding to the hit character string is output; a second character string generation step in which, if a character string that matches the second keyword is not found as a result of the search in the second search step, a character string is generated by removing at least parentheses and the character string enclosed by the parentheses from the second keyword; a similar character string extraction step in which, using the character string generated in the second character string generation step as a third keyword, a character string including the third keyword is extracted from the medical practice/medicine master; and an output step in which information on at least one medical practice or medicine corresponding to the character string extracted in the similar character string extraction step is output.

このような方法によれば、マスタにキーワードを必要以上に追加していくことなく、テキストデータから医療行為または医薬品を表す文字列を抽出することができる。 This method makes it possible to extract character strings representing medical procedures or medicines from text data without adding more keywords than necessary to the master.

また、前記した目的を達成するためのテキストデータ解析方法は、コンピュータが備える手段が、テキストデータを取得するデータ取得ステップと、データ取得ステップで取得したテキストデータから、一の項目を表す一群の文字列を抽出する文字列抽出ステップと、前記文字列抽出ステップで抽出した文字列を第1キーワードとして、傷病名を表す文字列を記憶する傷病名マスタから、前記第1キーワードと一致する文字列がヒットするかを検索する第1検索ステップであって、検索の結果、前記第1キーワードと一致する文字列がヒットした場合、ヒットした文字列に対応する傷病名の情報を出力する第1検索ステップと、前記第1検索ステップにおける検索の結果、前記第1キーワードと一致する文字列がヒットしない場合、文字列の後尾に付く特定の文字列である接尾語を記憶する接尾語マスタを参照して、前記第1キーワードから、接尾語を取り除いた文字列を生成する第1文字列生成ステップと、前記第1文字列生成ステップで生成した文字列を第2キーワードとして、前記傷病名マスタから、前記第2キーワードと一致する文字列がヒットするかを検索する第2検索ステップであって、検索の結果、前記第2キーワードと一致する文字列がヒットした場合、ヒットした文字列に対応する傷病名の情報を出力する第2検索ステップと、前記第2検索ステップにおける検索の結果、前記第2キーワードと一致する文字列がヒットしない場合、文字列の先頭に付く特定の文字列である接頭語を記憶する接頭語マスタを参照して、前記第2キーワードから、接頭語を取り除いた文字列を生成する第2文字列生成ステップと、前記第2文字列生成ステップで生成した文字列を第3キーワードとして、前記傷病名マスタから、前記第3キーワードと一致する文字列がヒットするかを検索する第3検索ステップであって、検索の結果、前記第3キーワードと一致する文字列がヒットした場合、ヒットした文字列に対応する傷病名の情報を出力する第3検索ステップと、を実行することを特徴とする。 In addition, a text data analysis method for achieving the above-mentioned object includes a computer having a means for performing a data acquisition step of acquiring text data, a string extraction step of extracting a group of strings representing one item from the text data acquired in the data acquisition step, a first search step of searching a disease name master storing strings representing names of injuries and illnesses for a string matching the first keyword using the string extracted in the string extraction step as a first keyword, and if a string matching the first keyword is found as a result of the search, a first search step of outputting information on the disease name corresponding to the hit string, a first string generation step of generating a string from the first keyword by removing the suffix, by referring to a suffix master storing a suffix that is a specific string added to the end of a string, if a string matching the first keyword is not found as a result of the search in the first search step, and The method includes a second search step in which a character string is used as a second keyword to search the injury/illness name master for a character string that matches the second keyword, and if a character string that matches the second keyword is found as a result of the search, outputting information on the injury/illness name corresponding to the matched character string; a second string generation step in which, if a character string that matches the second keyword is not found as a result of the search in the second search step, a character string is generated from the second keyword by removing the prefix by referring to a prefix master that stores a prefix, which is a specific character string that is added to the beginning of a character string; and a third search step in which, using the character string generated in the second string generation step as a third keyword, the injury/illness master is searched for a character string that matches the third keyword, and if a character string that matches the third keyword is found as a result of the search, outputting information on the injury/illness name corresponding to the matched character string.

このような方法によれば、マスタにキーワードを必要以上に追加していくことなく、テキストデータから傷病名を表す文字列を抽出することができる。 This method makes it possible to extract character strings representing the names of illnesses and injuries from text data without adding more keywords than necessary to the master.

また、前記した目的を達成するためのコンピュータプログラムは、コンピュータを、テキストデータを取得するデータ取得手段と、データ取得手段が取得したテキストデータから、一の項目を表す一群の文字列を抽出する文字列抽出手段と、前記文字列抽出手段が抽出した文字列を第1キーワードとして、医療行為または医薬品を表す文字列を記憶する医療行為・医薬品マスタから、前記第1キーワードと一致する文字列がヒットするかを検索する第1検索手段であって、検索の結果、前記第1キーワードと一致する文字列がヒットした場合、ヒットした文字列に対応する医療行為または医薬品の情報を出力する第1検索手段と、前記第1検索手段による検索の結果、前記第1キーワードと一致する文字列がヒットしない場合、文字列の先頭に付く特定の文字列である接頭語を記憶する接頭語マスタを参照して、前記第1キーワードから、接頭語を取り除いた文字列を生成する第1文字列生成手段と、前記第1文字列生成手段が生成した文字列を第2キーワードとして、前記医療行為・医薬品マスタから、前記第2キーワードと一致する文字列がヒットするかを検索する第2検索手段であって、検索の結果、前記第2キーワードと一致する文字列がヒットした場合、ヒットした文字列に対応する医療行為または医薬品の情報を出力する第2検索手段と、前記第2検索手段による検索の結果、前記第2キーワードと一致する文字列がヒットしない場合、前記第2キーワードから、少なくとも、括弧および当該括弧によって囲われた文字列を取り除いた文字列を生成する第2文字列生成手段と、前記第2文字列生成手段が生成した文字列を第3キーワードとして、前記医療行為・医薬品マスタから、前記第3キーワードを含む文字列を抽出する類似文字列抽出手段と、前記類似文字列抽出手段が抽出した文字列に対応する少なくとも1つの医療行為または医薬品の情報を出力する出力手段として機能させることを特徴とする。 A computer program for achieving the above-mentioned object includes a computer including: a data acquisition means for acquiring text data; a character string extraction means for extracting a group of character strings representing one item from the text data acquired by the data acquisition means; a first search means for searching a medical practice/drug master that stores character strings representing medical practices or pharmaceuticals, using the character string extracted by the character string extraction means as a first keyword, to see if a character string matching the first keyword is found; and a first search means for outputting information on the medical practice or pharmaceutical corresponding to the hit character string when a character string matching the first keyword is found as a result of the search by the first search means; a first character string generation means for generating a character string from the first keyword by removing the prefix, by referring to a prefix master that stores a prefix, which is a specific character string added to the beginning of a character string; and a first search means for generating a character string by removing the prefix from the first keyword when a character string matching the first keyword is not found as a result of the search by the first search means. The device is characterized by having a second search means that uses the character string generated by the character string generating means as a second keyword to search the medical practice/medicine master for a character string that matches the second keyword, and when a character string that matches the second keyword is found as a result of the search, outputs information on the medical practice or medicine corresponding to the hit character string; a second character string generating means that generates a character string from the second keyword by removing at least parentheses and the character string surrounded by the parentheses when a character string that matches the second keyword is not found as a result of the search by the second search means; a similar character string extracting means that uses the character string generated by the second character string generating means as a third keyword to extract a character string including the third keyword from the medical practice/medicine master; and an output means that outputs information on at least one medical practice or medicine corresponding to the character string extracted by the similar character string extracting means.

このようなプログラムによれば、マスタにキーワードを必要以上に追加していくことなく、テキストデータから医療行為または医薬品を表す文字列を抽出することができる。 With such a program, it is possible to extract character strings representing medical procedures or medicines from text data without adding more keywords than necessary to the master.

また、前記した目的を達成するためのコンピュータプログラムは、コンピュータを、テキストデータを取得するデータ取得手段と、データ取得手段が取得したテキストデータから、一の項目を表す一群の文字列を抽出する文字列抽出手段と、前記文字列抽出手段が抽出した文字列を第1キーワードとして、傷病名を表す文字列を記憶する傷病名マスタから、前記第1キーワードと一致する文字列がヒットするかを検索する第1検索手段であって、検索の結果、前記第1キーワードと一致する文字列がヒットした場合、ヒットした文字列に対応する傷病名の情報を出力する第1検索手段と、前記第1検索手段による検索の結果、前記第1キーワードと一致する文字列がヒットしない場合、文字列の後尾に付く特定の文字列である接尾語を記憶する接尾語マスタを参照して、前記第1キーワードから、接尾語を取り除いた文字列を生成する第1文字列生成手段と、前記第1文字列生成手段が生成した文字列を第2キーワードとして、前記傷病名マスタから、前記第2キーワードと一致する文字列がヒットするかを検索する第2検索手段であって、検索の結果、前記第2キーワードと一致する文字列がヒットした場合、ヒットした文字列に対応する傷病名の情報を出力する第2検索手段と、前記第2検索手段による検索の結果、前記第2キーワードと一致する文字列がヒットしない場合、文字列の先頭に付く特定の文字列である接頭語を記憶する接頭語マスタを参照して、前記第2キーワードから、接頭語を取り除いた文字列を生成する第2文字列生成手段と、前記第2文字列生成手段が生成した文字列を第3キーワードとして、前記傷病名マスタから、前記第3キーワードと一致する文字列がヒットするかを検索する第3検索手段であって、検索の結果、前記第3キーワードと一致する文字列がヒットした場合、ヒットした文字列に対応する傷病名の情報を出力する第3検索手段として機能させることを特徴とする。 A computer program for achieving the above-mentioned object includes a computer including: a data acquisition means for acquiring text data; a character string extraction means for extracting a group of character strings representing an item from the text data acquired by the data acquisition means; a first search means for searching, using the character string extracted by the character string extraction means as a first keyword, a disease name master storing character strings representing names of injuries or illnesses to see if a character string matching the first keyword is found; and, if a character string matching the first keyword is found as a result of the search, a first search means for outputting information on the disease name corresponding to the found character string; a first character string generation means for, if a character string matching the first keyword is not found as a result of the search by the first search means, referring to a suffix master storing suffixes, which are specific character strings added to the end of a character string, generating a character string from the first keyword by removing the suffix; and a second search means for generating the character string generated by the first character string generation means. A second search means searches the injury/illness name master as a second keyword to see if a character string matching the second keyword is found, and if a character string matching the second keyword is found as a result of the search, outputs information on the injury/illness name corresponding to the found character string; a second string generation means, if a character string matching the second keyword is not found as a result of the search by the second search means, references a prefix master that stores a prefix, which is a specific character string that is added to the beginning of a character string, to generate a character string from the second keyword with the prefix removed; and a third search means, using the character string generated by the second string generation means as a third keyword, searches the injury/illness name master to see if a character string matching the third keyword is found, and if a character string matching the third keyword is found as a result of the search, functions as a third search means that outputs information on the injury/illness name corresponding to the found character string.

このようなプログラムによれば、マスタにキーワードを必要以上に追加していくことなく、テキストデータから傷病名を表す文字列を抽出することができる。 With such a program, it is possible to extract character strings representing the names of injuries and illnesses from text data without adding more keywords than necessary to the master.

本発明によれば、マスタにキーワードを必要以上に追加していくことなく、テキストデータから医療行為や医薬品、傷病名を表す文字列を抽出することができる。 According to the present invention, it is possible to extract character strings representing medical procedures, medicines, and names of injuries and illnesses from text data without adding more keywords than necessary to the master.

第1実施形態に係るテキストデータ解析システムのブロック図である。1 is a block diagram of a text data analysis system according to a first embodiment. 第1医療行為・医薬品マスタを説明する図である。FIG. 13 is a diagram illustrating the first medical practice/drug master. 第2医療行為・医薬品マスタを説明する図である。FIG. 13 is a diagram for explaining the second medical practice/drug master. 接頭語マスタを説明する図(a)と、要素文字列マスタを説明する図(b)である。FIG. 1A is a diagram for explaining a prefix master, and FIG. 1B is a diagram for explaining an element character string master. 第1実施形態のテキストデータ解析システムにおける処理の第1の例を説明する図である。FIG. 2 is a diagram illustrating a first example of a process in the text data analysis system of the first embodiment. 第1実施形態のテキストデータ解析システムにおける処理の第2の例を説明する図である。FIG. 11 is a diagram illustrating a second example of the processing in the text data analysis system of the first embodiment. 第1実施形態のテキストデータ解析システムにおける処理の第3の例を説明する図である。FIG. 11 is a diagram illustrating a third example of a process in the text data analysis system of the first embodiment. 第1実施形態のテキストデータ解析システムにおける処理の第3の例を説明する、図7に続く図である。FIG. 8 is a diagram continuing from FIG. 7 for explaining a third example of processing in the text data analysis system of the first embodiment. 第1実施形態のテキストデータ解析システムの動作を説明するフローチャートである。4 is a flowchart illustrating the operation of the text data analysis system of the first embodiment. 第1実施形態のテキストデータ解析システムの動作を説明する、図9に続くフローチャートである。10 is a flowchart continuing from FIG. 9 , illustrating the operation of the text data analysis system of the first embodiment. 第2実施形態に係るテキストデータ解析システムのブロック図である。FIG. 11 is a block diagram of a text data analysis system according to a second embodiment. 傷病名マスタを説明する図である。FIG. 13 is a diagram for explaining the injury/illness name master. 接尾語マスタを説明する図(a)と、接頭語マスタを説明する図(b)と、要素文字列マスタを説明する図(c)である。1A is a diagram for explaining a suffix master, FIG. 1B is a diagram for explaining a prefix master, and FIG. 1C is a diagram for explaining an element character string master. 第2実施形態のテキストデータ解析システムにおける処理の第1の例を説明する図である。FIG. 11 is a diagram illustrating a first example of a process in the text data analysis system of the second embodiment. 第2実施形態のテキストデータ解析システムにおける処理の第2の例を説明する図である。FIG. 11 is a diagram illustrating a second example of a process in the text data analysis system according to the second embodiment. 第2実施形態のテキストデータ解析システムにおける処理の第2の例を説明する、図15に続く図である。FIG. 15 is a diagram illustrating a second example of processing in the text data analysis system of the second embodiment. 第2実施形態のテキストデータ解析システムの動作を説明するフローチャートである。10 is a flowchart illustrating the operation of the text data analysis system according to the second embodiment.

次に、第1実施形態について説明する。
図1に示すように、第1実施形態に係るテキストデータ解析システム1は、例えば、診断書、診療明細書、調剤明細書等に記載された項目に基づいて作成されたテキストデータから、医療行為に関する項目や医薬品に関する項目を厚生労働省が定めた基本マスタに収載された形式に変換して抽出するシステムである。テキストデータ解析システム1は、データ取得手段11と、文字列抽出手段12と、第1検索手段13と、第1文字列生成手段14と、第2検索手段15と、第2文字列生成手段16と、類似文字列抽出手段17と、第1類似度算出手段18と、出力手段19と、第2類似度算出手段20と、要素文字列抽出手段21と、第3類似度算出手段22とを備える。
Next, a first embodiment will be described.
As shown in Fig. 1, the text data analysis system 1 according to the first embodiment is a system that converts and extracts items related to medical procedures and items related to pharmaceuticals from text data created based on items described in, for example, a medical certificate, a medical treatment statement, a prescription statement, etc., into a format included in a basic master defined by the Ministry of Health, Labor and Welfare. The text data analysis system 1 includes a data acquisition means 11, a character string extraction means 12, a first search means 13, a first character string generation means 14, a second search means 15, a second character string generation means 16, a similar character string extraction means 17, a first similarity calculation means 18, an output means 19, a second similarity calculation means 20, an element character string extraction means 21, and a third similarity calculation means 22.

テキストデータ解析システム1は、図示しないCPU、RAM、ROM等と、記憶装置90とを備えるコンピュータからなる。テキストデータ解析システム1は、ROMや記憶装置90に記憶させておいたコンピュータプログラムをRAMに読み込んで実行することで各手段を実現する。言い換えると、コンピュータプログラムは、テキストデータ解析システム1を構成するコンピュータを、データ取得手段11と、文字列抽出手段12と、第1検索手段13と、第1文字列生成手段14と、第2検索手段15と、第2文字列生成手段16と、類似文字列抽出手段17と、第1類似度算出手段18と、出力手段19と、第2類似度算出手段20と、要素文字列抽出手段21と、第3類似度算出手段22として機能させる。 The text data analysis system 1 is made up of a computer including a CPU, RAM, ROM, etc. (not shown), and a storage device 90. The text data analysis system 1 realizes each means by loading a computer program stored in the ROM or storage device 90 into the RAM and executing it. In other words, the computer program causes the computer constituting the text data analysis system 1 to function as a data acquisition means 11, a string extraction means 12, a first search means 13, a first string generation means 14, a second search means 15, a second string generation means 16, a similar string extraction means 17, a first similarity calculation means 18, an output means 19, a second similarity calculation means 20, a component string extraction means 21, and a third similarity calculation means 22.

記憶装置90には、医療行為・医薬品マスタと、接頭語マスタと、要素文字列マスタとが記憶されている。
医療行為・医薬品マスタは、医療行為または医薬品を表す文字列を記憶する。ここで、医療行為は、医科診療行為マスタに収載された診療行為、歯科診療行為マスタに収載された診療行為、および、調剤行為マスタに収載された調剤行為の少なくとも1つを含む。また、医薬品は、医薬品マスタに収載された医薬品、および、特定器材マスタに収載された特定器材の少なくとも1つを含む。医科診療行為マスタ、歯科診療行為マスタ、調剤行為マスタ、医薬品マスタおよび特定器材マスタとは、厚生労働省が定めた基本マスタである。
The storage device 90 stores a medical practice/drug master, a prefix master, and an element character string master.
The medical procedure/drug master stores a character string representing a medical procedure or a drug. Here, the medical procedure includes at least one of the medical procedures listed in the medical procedure master, the medical procedures listed in the dental procedure master, and the dispensing procedures listed in the dispensing procedure master. Furthermore, the drugs include at least one of the drugs listed in the drug master and the specific equipment listed in the specific equipment master. The medical procedure master, the dental procedure master, the dispensing procedure master, the drug master, and the specific equipment master are basic masters established by the Ministry of Health, Labor and Welfare.

第1実施形態では、医療行為として、医科診療行為マスタに収載された診療行為を例示し、医薬品として、医薬品マスタに収載された医薬品を例示する。 In the first embodiment, examples of medical procedures include medical procedures listed in the medical procedure master, and examples of pharmaceuticals include pharmaceuticals listed in the pharmaceutical master.

医療行為・医薬品マスタは、第1医療行為・医薬品マスタと、第2医療行為・医薬品マスタとを含む。 The medical practice/drug master data includes a first medical practice/drug master data and a second medical practice/drug master data.

図2に示すように、第1医療行為・医薬品マスタは、医科診療行為マスタまたは診療報酬点数表に収載された診療行為(省略漢字名称および基本漢字名称)を表す文字列と点数表区分番号とを対応させて記憶するとともに、医薬品マスタに収載された医薬品(漢字名称および基本漢字名称)を表す文字列と薬価基準コードとを対応させて記憶するテーブルとして構成されている。 As shown in FIG. 2, the first medical procedure/drug master is configured as a table that stores character strings representing medical procedures (abbreviated kanji names and basic kanji names) listed in the medical procedure master or the medical fee schedule in association with fee schedule category numbers, and also stores character strings representing drugs (kanji names and basic kanji names) listed in the drug master in association with drug price standards codes.

図3に示すように、第2医療行為・医薬品マスタは、類似文字列抽出手段17が後述する第3キーワードを含む文字列を抽出しやすくするために用意されたデータであり、一または複数の医療行為または医薬品を表す文字列と、当該一または複数の医療行為または医薬品を表す文字列に含まれる文字列である索引文字列とを対応させて記憶している。詳しくは、第2医療行為・医薬品マスタは、第3キーワードを含む文字列を抽出しやすくするために用意された索引文字列、例えば、「食道切除再建術」、「内視鏡的大腸ポリープ粘膜切除術」、「水晶体再建術」等の索引文字列と、索引文字列を含む医療行為または医薬品を表す文字列に対応する少なくとも1つの点数表区分番号または薬価基準コードとを対応させて記憶するテーブルとして構成されている。 As shown in FIG. 3, the second medical procedure/drug master is data prepared to make it easier for the similar string extraction means 17 to extract strings including a third keyword described below, and stores strings representing one or more medical procedures or drugs in correspondence with index strings that are strings included in the strings representing the one or more medical procedures or drugs. In more detail, the second medical procedure/drug master is configured as a table that stores index strings prepared to make it easier to extract strings including the third keyword, such as index strings such as "esophageal resection reconstruction," "endoscopic colonic polyp mucosal resection," and "lens reconstruction," in correspondence with at least one fee schedule classification number or drug price code that corresponds to a string representing a medical procedure or drug that includes the index string.

図4(a)に示すように、接頭語マスタは、文字列の先頭に付く特定の文字列である接頭語を記憶するテーブルとして構成されている。接頭語は、診療明細書等に記載される医療行為や医薬品の先頭に付けられることがある、例えば、部位名や、「下」、「上」、「左」、「左側」、「右」、「右側」等の位置を表す文字列である。なお、本発明において、文字列は、1文字の場合を含む。接頭語は、例えば、厚生労働省が定めた基本マスタの修飾語マスタに収載された接頭語に使用する修飾語を参考に決めることができる。 As shown in FIG. 4(a), the prefix master is configured as a table that stores prefixes, which are specific character strings that are added to the beginning of a character string. A prefix is a character string that may be added to the beginning of a medical procedure or medicine listed on a medical bill, etc., and indicates, for example, the name of a body part or a position such as "lower," "upper," "left," "left side," "right," or "right side." Note that in the present invention, a character string includes a single character. A prefix can be determined, for example, by referring to modifiers used for prefixes listed in the modifier master of the basic master defined by the Ministry of Health, Labor and Welfare.

図4(b)に示すように、要素文字列マスタは、要素文字列を記憶するテーブルとして構成されている。要素文字列は、医療行為または医薬品を表す文字列に含まれる特定の文字列であり、例えば、「レンズ」、「挿入」等の文字列である。要素文字列としては、医療行為または医薬品を表す文字列を絞り込む際にヒットする候補が多くなりすぎないような文字列、例えば、候補を500件以下程度に絞り込めるような文字列を採用している。 As shown in FIG. 4(b), the element string master is configured as a table that stores element strings. An element string is a specific string contained in a string representing a medical procedure or medicine, such as "lens" or "insertion." As element strings, strings that do not result in too many candidates being hit when narrowing down strings representing medical procedures or medicines, for example, strings that can narrow down the candidates to around 500 or less, are used.

図1に戻り、データ取得手段11は、テキストデータを取得する。データ取得手段11は、例えば、予め作成されたテキストデータであって記憶装置90や記憶媒体等に記憶されたテキストデータを読み込んで取得する構成であってもよいし、テキストデータ解析システム1に接続されたキーボード等の入力装置によって入力されたテキストデータを取得する構成であってもよい。予め作成されるテキストデータは、例えば、診療明細書等をスキャナで読み取って光学文字認識(OCR)により生成したデータであってもよい。また、データ取得手段11は、診療明細書等を、テキストデータ解析システム1に接続されたスキャナで読み取ってOCRにより生成したテキストデータを取得する構成であってもよい。 Returning to FIG. 1, the data acquisition means 11 acquires text data. The data acquisition means 11 may be configured to acquire text data that is created in advance and stored in the storage device 90 or a storage medium, for example, by reading the data, or may be configured to acquire text data that is input by an input device such as a keyboard connected to the text data analysis system 1. The text data created in advance may be, for example, data generated by reading a medical statement or the like with a scanner and using optical character recognition (OCR). The data acquisition means 11 may also be configured to acquire text data generated by reading a medical statement or the like with a scanner connected to the text data analysis system 1 and using OCR.

文字列抽出手段12は、データ取得手段11が取得したテキストデータから、一の項目を表す一群の文字列を抽出する。文字列抽出手段12は、図5(a)に示すように、一の項目を表す一群の文字列が複数行にまたがって存在する場合、図5(b)に示すように、当該文字列を1行の文字列にして抽出する。 The character string extraction means 12 extracts a group of character strings representing an item from the text data acquired by the data acquisition means 11. When a group of character strings representing an item exists across multiple lines as shown in FIG. 5(a), the character string extraction means 12 extracts the character strings as a single line of character strings as shown in FIG. 5(b).

第1検索手段13は、文字列抽出手段12が抽出した文字列を第1キーワードとして、医療行為・医薬品マスタから、第1キーワードと一致する文字列がヒットするかを検索する。詳しくは、第1検索手段13は、第1医療行為・医薬品マスタを参照して、第1キーワードと一致する文字列がヒットするかを検索する。第1検索手段13は、検索の結果、第1キーワードと一致する文字列がヒットした場合、ヒットした文字列に対応する医療行為または医薬品の情報を出力する。 The first search means 13 uses the character string extracted by the character string extraction means 12 as a first keyword and searches the medical practice/drug master for a character string that matches the first keyword. In detail, the first search means 13 refers to the first medical practice/drug master and searches for a character string that matches the first keyword. If the search results in a character string that matches the first keyword, the first search means 13 outputs information about the medical practice or drug corresponding to the hit character string.

ここで、第1実施形態において、第1検索手段13、第2検索手段15および出力手段19は、医療行為または医薬品の情報として、診療行為名と点数表区分番号の情報、および、医薬品名と薬価基準コードの情報の少なくとも一方を出力する。なお、診療行為名は、医科診療行為マスタに収載された省略漢字名称および基本漢字名称の少なくとも一方であり、医薬品名は、医薬品マスタに収載された漢字名称および基本漢字名称の少なくとも一方である。 Here, in the first embodiment, the first search means 13, the second search means 15, and the output means 19 output at least one of the medical procedure name and fee schedule classification number, and the drug name and drug price standard code information as information on the medical procedure or drug. The medical procedure name is at least one of the abbreviated kanji name and basic kanji name listed in the medical procedure master, and the drug name is at least one of the kanji name and basic kanji name listed in the drug master.

また、出力の方法は、任意である。例えば、テキストデータ解析システム1に接続されたディスプレイに表示する方法で出力してもよいし、テキストデータ解析システム1に接続されたプリンタによって印刷する方法で出力してもよいし、テキストデータ解析システム1にインターネット等のネットワークを通じて接続されたユーザの端末に情報を送信する方法で出力してもよい。 The output method is arbitrary. For example, the information may be output by displaying it on a display connected to the text data analysis system 1, by printing it using a printer connected to the text data analysis system 1, or by transmitting the information to a user's terminal connected to the text data analysis system 1 via a network such as the Internet.

第1文字列生成手段14は、第1検索手段13による検索の結果、第1キーワードと一致する文字列がヒットしない場合、接頭語マスタを参照して、第1キーワードから、接頭語を取り除いた文字列を生成する。また、第1文字列生成手段14は、第1キーワードに、接頭語マスタに記憶された接頭語がない場合、生成する文字列を第1キーワードとする。 When the search by the first search means 13 does not find a string matching the first keyword, the first character string generating means 14 refers to the prefix master and generates a string from the first keyword by removing the prefix. Furthermore, when the first keyword does not have a prefix stored in the prefix master, the first character string generating means 14 regards the generated string as the first keyword.

第2検索手段15は、第1文字列生成手段14が生成した文字列を第2キーワードとして、医療行為・医薬品マスタから、第2キーワードと一致する文字列がヒットするかを検索する。詳しくは、第2検索手段15は、第1医療行為・医薬品マスタを参照して、第2キーワードと一致する文字列がヒットするかを検索する。第2検索手段15は、検索の結果、第2キーワードと一致する文字列がヒットした場合、ヒットした文字列に対応する医療行為または医薬品の情報を出力する。 The second search means 15 uses the character string generated by the first character string generation means 14 as a second keyword and searches the medical practice/drug master for a character string that matches the second keyword. In detail, the second search means 15 refers to the first medical practice/drug master and searches for a character string that matches the second keyword. If the search results in a character string that matches the second keyword, the second search means 15 outputs information about the medical practice or drug corresponding to the hit character string.

第2文字列生成手段16は、第2検索手段15による検索の結果、第2キーワードと一致する文字列がヒットしない場合、第2キーワードから、括弧および当該括弧によって囲われた文字列を取り除いた文字列を生成する。また、第2文字列生成手段16は、第2キーワードから、以下の文字列(1)~(5)をさらに取り除いた文字列を生成する。
(1)先頭または後尾にある空白
(2)途中にある空白および当該空白以降の文字列
(3)中黒
(4)読点
(5)数字および当該数字の直後にある単位を表す文字列
The second character string generating means 16 generates a character string by removing parentheses and the character string enclosed by the parentheses from the second keyword when the search by the second search means 15 does not find a character string matching the second keyword. The second character string generating means 16 also generates a character string by further removing the following character strings (1) to (5) from the second keyword.
(1) A space at the beginning or end of a word; (2) A space in the middle of a word and the characters following that space; (3) A dot; (4) A comma; (5) A number and the characters immediately following that number that represent the unit.

一例として、第2文字列生成手段16は、第2キーワードから、まず、先頭または後尾にある空白を取り除く処理を実行し、次に、途中にある空白および当該空白以降の文字列を取り除く処理を実行する。次に、第2文字列生成手段16は、丸括弧“(”、“)”や鉤括弧“「”、“」”等の括弧および当該括弧によって囲われた文字列を取り除く処理を実行し、次に、中黒“・”や読点“、”を取り除く処理を実行する。さらに、第2文字列生成手段16は、数字および当該数字の直後にある単位を表す文字列、例えば、“10mg”、“2%”等を取り除く処理を実行する。 As an example, the second character string generating means 16 first performs a process of removing any spaces at the beginning or end of the second keyword, and then performs a process of removing any spaces in the middle and any characters following the spaces. Next, the second character string generating means 16 performs a process of removing parentheses such as parentheses "(", ")" and brackets "", """ and any characters enclosed by such parentheses, and then performs a process of removing a dot "." and a comma ",". Furthermore, the second character string generating means 16 performs a process of removing numbers and any characters representing units immediately following the numbers, such as "10 mg" or "2%".

なお、第1キーワードと第2キーワードが同じ文字列である場合、第2検索手段15は、第2キーワードと一致する文字列がヒットするかを検索することなく、第2文字列生成手段16が、第2キーワードから、括弧および当該括弧によって囲われた文字列等を取り除いた文字列を生成してもよい。 In addition, when the first keyword and the second keyword are the same character string, the second search means 15 may not search for a character string that matches the second keyword, and the second character string generation means 16 may generate a character string by removing parentheses and the character string enclosed by the parentheses from the second keyword.

また、第2文字列生成手段16は、第2キーワードに、括弧および当該括弧によって囲われた文字列、並びに、上記の文字列(1)~(5)がない場合、生成する文字列を第2キーワードとする。 In addition, if the second keyword does not contain parentheses, a character string enclosed by the parentheses, or any of the above character strings (1) to (5), the second character string generating means 16 regards the generated character string as the second keyword.

類似文字列抽出手段17は、第2文字列生成手段16が生成した文字列を第3キーワードとして、医療行為・医薬品マスタから、第3キーワードを含む文字列を抽出する。詳しくは、類似文字列抽出手段17は、第2医療行為・医薬品マスタおよび第1医療行為・医薬品マスタを参照して、第3キーワードを含む文字列(以下、「第1類似文字列」ともいう。)を抽出する。より詳しくは、類似文字列抽出手段17は、第3キーワードと第2医療行為・医薬品マスタから、第1類似文字列に対応づけられた点数表区分番号または薬価基準コードを抽出し、第1医療行為・医薬品マスタから、抽出した点数表区分番号または薬価基準コードに対応づけられた第1類似文字列を抽出する。 The similar string extraction means 17 extracts a string including the third keyword from the medical practice/drug master using the string generated by the second string generation means 16 as the third keyword. In detail, the similar string extraction means 17 refers to the second medical practice/drug master and the first medical practice/drug master to extract a string including the third keyword (hereinafter also referred to as a "first similar string"). In more detail, the similar string extraction means 17 extracts a fee table category number or drug price code associated with the first similar string from the third keyword and the second medical practice/drug master, and extracts a first similar string associated with the extracted fee table category number or drug price code from the first medical practice/drug master.

第1類似度算出手段18は、類似文字列抽出手段17が抽出した第1類似文字列が複数ある場合、類似文字列抽出手段17が抽出した第1類似文字列と、第2キーワードとの類似度をそれぞれ算出する。 When there are multiple first similar strings extracted by the similar string extraction means 17, the first similarity calculation means 18 calculates the similarity between each of the first similar strings extracted by the similar string extraction means 17 and the second keyword.

ここで、第1実施形態において、第1類似度算出手段18、第2類似度算出手段20および第3類似度算出手段22は、一例として、レーベンシュタイン距離およびジャロ・ウィンクラー距離の少なくとも一方に基づいて、2つの文字列の類似度を算出する。 Here, in the first embodiment, the first similarity calculation means 18, the second similarity calculation means 20, and the third similarity calculation means 22 calculate the similarity between two character strings based on at least one of the Levenshtein distance and the Jaro-Winkler distance, as an example.

出力手段19は、類似文字列抽出手段17が抽出した第1類似文字列に対応する少なくとも1つの医療行為または医薬品の情報を出力する。詳しくは、出力手段19は、類似文字列抽出手段17が抽出した第1類似文字列が1つである場合、当該第1類似文字列に対応する一の医療行為または医薬品の情報を出力する。また、出力手段19は、類似文字列抽出手段17が抽出した第1類似文字列が複数ある場合、複数の第1類似文字列のうち、第1類似度算出手段18が算出した類似度が所定以上である第1類似文字列に対応する医療行為または医薬品の情報を出力する。 The output means 19 outputs information on at least one medical procedure or drug corresponding to the first similar string extracted by the similar string extraction means 17. In particular, when the similar string extraction means 17 extracts one first similar string, the output means 19 outputs information on the medical procedure or drug corresponding to the first similar string. Furthermore, when the similar string extraction means 17 extracts a plurality of first similar strings, the output means 19 outputs information on the medical procedure or drug corresponding to the first similar string among the plurality of first similar strings, the similarity calculated by the first similarity calculation means 18 being equal to or greater than a predetermined value.

第1実施形態において、類似度は、0から1の数値として算出され、数値が大きいほど2つの文字列の類似度が高いことを表し、1の場合、2つの文字列が一致していることを表す。類似度の所定値は、例えば、0.8である。なお、テキストデータ解析システム1は、類似度の所定値をユーザが任意に設定可能な構成であってもよい。 In the first embodiment, the similarity is calculated as a value between 0 and 1, with a larger value indicating a higher similarity between the two character strings, and a value of 1 indicating that the two character strings match. The specified value of the similarity is, for example, 0.8. Note that the text data analysis system 1 may be configured to allow the user to arbitrarily set the specified value of the similarity.

第2類似度算出手段20は、類似文字列抽出手段17が、医療行為・医薬品マスタから第3キーワードを含む文字列(第1類似文字列)を抽出できなかった場合、第2文字列生成手段16が生成した第3キーワードと、第2医療行為・医薬品マスタに記憶されている索引文字列との類似度を算出する。 If the similar string extraction means 17 is unable to extract a string (first similar string) containing the third keyword from the medical practice/drug master, the second similarity calculation means 20 calculates the similarity between the third keyword generated by the second string generation means 16 and the index string stored in the second medical practice/drug master.

類似文字列抽出手段17は、第2類似度算出手段20が算出した類似度が所定以上である索引文字列がある場合、医療行為・医薬品マスタから、当該索引文字列に対応する文字列を抽出する。詳しくは、類似文字列抽出手段17は、第3キーワードとの類似度が所定以上である索引文字列がある場合、第2医療行為・医薬品マスタから、当該類似文字列に対応づけられた点数表区分番号または薬価基準コードを抽出し、第1医療行為・医薬品マスタから、抽出した点数表区分番号または薬価基準コードに対応づけられた文字列(以下、「対応文字列」ともいう。)を抽出する。 If there is an index string whose similarity calculated by the second similarity calculation means 20 is equal to or greater than a predetermined level, the similar string extraction means 17 extracts a string corresponding to the index string from the medical procedure/drug master. In detail, if there is an index string whose similarity to the third keyword is equal to or greater than a predetermined level, the similar string extraction means 17 extracts the point table category number or drug price code corresponding to the similar string from the second medical procedure/drug master, and extracts a string (hereinafter also referred to as a "corresponding string") corresponding to the extracted point table category number or drug price code from the first medical procedure/drug master.

類似文字列抽出手段17が抽出した対応文字列が複数ある場合、第1類似度算出手段18は、類似文字列抽出手段17が抽出した対応文字列と、第2キーワードとの類似度をそれぞれ算出し、出力手段19は、第1類似度算出手段18が算出した類似度が所定以上である対応文字列に対応する医療行為または医薬品の情報を出力する。 When there are multiple corresponding character strings extracted by the similar character string extraction means 17, the first similarity calculation means 18 calculates the similarity between each of the corresponding character strings extracted by the similar character string extraction means 17 and the second keyword, and the output means 19 outputs information on the medical procedure or medicine that corresponds to the corresponding character string whose similarity calculated by the first similarity calculation means 18 is equal to or greater than a predetermined value.

要素文字列抽出手段21は、第2類似度算出手段20が算出した類似度が所定以上である索引文字列がない場合、要素文字列マスタを参照して、第2キーワードから、少なくとも1つの要素文字列を抽出する。 If there is no index string whose similarity calculated by the second similarity calculation means 20 is equal to or greater than a predetermined value, the element string extraction means 21 refers to the element string master and extracts at least one element string from the second keyword.

類似文字列抽出手段17は、要素文字列抽出手段21が抽出した要素文字列を第4キーワードとして、医療行為・医薬品マスタから、第4キーワードを含む文字列を抽出する。詳しくは、類似文字列抽出手段17は、第1医療行為・医薬品マスタから、第4キーワードを含む文字列(以下、「第2類似文字列」ともいう。)を抽出する。第1実施形態では、類似文字列抽出手段17は、要素文字列抽出手段21が抽出した要素文字列が複数ある場合、第2キーワードの中央に近い位置にある要素文字列(以下、第1実施形態において「優先要素文字列」ともいう。)を、まず、第4キーワードとして、医療行為・医薬品マスタから、第2類似文字列を抽出する。 The similar string extraction means 17 extracts strings including the fourth keyword from the medical practice/medicine master, using the element string extracted by the element string extraction means 21 as the fourth keyword. In more detail, the similar string extraction means 17 extracts strings including the fourth keyword (hereinafter also referred to as "second similar strings") from the first medical practice/medicine master. In the first embodiment, when there are multiple element strings extracted by the element string extraction means 21, the similar string extraction means 17 first extracts the second similar string from the medical practice/medicine master, using the element string (hereinafter also referred to as "priority element string" in the first embodiment) located close to the center of the second keyword as the fourth keyword.

第3類似度算出手段22は、類似文字列抽出手段17が抽出した第2類似文字列と、第2キーワードとの類似度を算出する。詳しくは、第3類似度算出手段22は、優先要素文字列を第4キーワードとして類似文字列抽出手段17が抽出した第2類似文字列について、他の要素文字列よりも先に第2キーワードとの類似度を算出する。 The third similarity calculation means 22 calculates the similarity between the second keyword and the second similar string extracted by the similar string extraction means 17. In detail, the third similarity calculation means 22 calculates the similarity between the second keyword and the second similar string extracted by the similar string extraction means 17 with the priority element string as the fourth keyword before calculating the similarity between the second keyword and the other element strings.

出力手段19は、第3類似度算出手段22が先に類似度を算出した第2類似文字列の中に類似度が所定以上である文字列がある場合、当該第2類似文字列に対応する医療行為または医薬品の情報を出力する。出力手段19が、先に類似度を算出した第2類似文字列に対応する医療行為または医薬品の情報を出力した場合、それ以降、類似文字列抽出手段17は、他の要素文字列について第2類似文字列を抽出せず、第3類似度算出手段22は、類似度を算出しない。 If there is a string whose similarity is equal to or greater than a predetermined level among the second similar strings whose similarity has been previously calculated by the third similarity calculation means 22, the output means 19 outputs information about the medical procedure or medicine corresponding to the second similar string. When the output means 19 outputs information about the medical procedure or medicine corresponding to the second similar string whose similarity has been previously calculated, thereafter, the similar string extraction means 17 does not extract second similar strings for other element strings, and the third similarity calculation means 22 does not calculate similarity.

類似文字列抽出手段17は、先に類似度を算出した第2類似文字列の中に類似度が所定以上である文字列がない場合、次に第2キーワードの中央に近い位置にある要素文字列を第4キーワードとして、第1医療行為・医薬品マスタから、第2類似文字列を抽出し、第3類似度算出手段22は、抽出した第2類似文字列について第2キーワードとの類似度を算出する。そして、出力手段19は、類似度を算出した第2類似文字列の中に類似度が所定以上である文字列がある場合、当該第2類似文字列に対応する医療行為または医薬品の情報を出力する。 If there is no string with a similarity equal to or greater than a predetermined level among the second similar strings for which similarity has been previously calculated, the similar string extraction means 17 next extracts a second similar string from the first medical procedure/drug master using an element string located close to the center of the second keyword as a fourth keyword, and the third similarity calculation means 22 calculates the similarity between the extracted second similar string and the second keyword. Then, if there is a string with a similarity equal to or greater than a predetermined level among the second similar strings for which similarity has been calculated, the output means 19 outputs information on the medical procedure or drug corresponding to the second similar string.

要素文字列抽出手段21が抽出した要素文字列が複数ある場合において、2つの要素文字列の第2キーワードの中央からの位置が同じである場合、類似文字列抽出手段17は、各要素文字列を第4キーワードとして、医療行為・医薬品マスタから、第2類似文字列をそれぞれ抽出し、抽出した第2類似文字列について第2キーワードとの類似度をそれぞれ算出する。そして、出力手段19は、類似度を算出した第2類似文字列の中に類似度が所定以上である文字列がある場合、当該第2類似文字列に対応する医療行為または医薬品の情報を出力する。なお、この場合、抽出した第2類似文字列の数が少ない方について、多い方よりも先に類似度を算出し、先に類似度を算出した第2類似文字列の中に類似度が所定以上である文字列がある場合、当該第2類似文字列に対応する医療行為または医薬品の情報を出力して、処理を終了してもよい。 When the element string extraction means 21 extracts a plurality of element strings, and the positions of the second keyword from the center of the two element strings are the same, the similar string extraction means 17 extracts second similar strings from the medical practice/drug master with each element string as a fourth keyword, and calculates the similarity between the extracted second similar strings and the second keyword. Then, if there is a string with a predetermined similarity or higher among the second similar strings for which similarity has been calculated, the output means 19 outputs information on the medical practice or drug corresponding to the second similar string. Note that in this case, the similarity may be calculated for the one with fewer extracted second similar strings before the one with a larger number, and if there is a string with a predetermined similarity or higher among the second similar strings for which similarity has been calculated first, information on the medical practice or drug corresponding to the second similar string may be output and processing may end.

ここで、具体的な例を示しながら、第1実施形態のテキストデータ解析システム1における処理について説明する。
第1の例として、図5(c)に示すように、第1検索手段13は、データ取得手段11が取得し、文字列抽出手段12が抽出した文字列“左水晶体再建術(眼内レンズを挿入する場合・その他のもの)”を第1キーワードとして、第1医療行為・医薬品マスタから、第1キーワードと一致する文字列がヒットするかを検索する。
Here, the processing in the text data analysis system 1 of the first embodiment will be described with reference to a specific example.
As a first example, as shown in FIG. 5(c), the first search means 13 uses the character string “left lens reconstruction (intraocular lens insertion and others)” acquired by the data acquisition means 11 and extracted by the character string extraction means 12 as the first keyword, and searches the first medical procedure/drug master for a character string that matches the first keyword.

第1文字列生成手段14は、第1検索手段13による検索の結果、第1キーワードと一致する文字列がヒットしない場合、図5(d)に示すように、第1キーワードから、接頭語マスタを参照して、接頭語“左”を取り除いた文字列“水晶体再建術(眼内レンズを挿入する場合・その他のもの)”を生成する。 If the search by the first search means 13 does not yield a string matching the first keyword, the first string generation means 14 refers to the prefix master and generates the string "Lens reconstruction surgery (when inserting an intraocular lens or other procedures)" by removing the prefix "left" from the first keyword, as shown in FIG. 5(d).

第2検索手段15は、第1文字列生成手段14が生成した文字列“水晶体再建術(眼内レンズを挿入する場合・その他のもの)”を第2キーワードとして、第1医療行為・医薬品マスタから、第2キーワードと一致する文字列がヒットするかを検索する。 The second search means 15 uses the character string generated by the first character string generation means 14, "Lens reconstruction surgery (intraocular lens insertion and others)" as a second keyword, and searches the first medical procedure/drug master for a character string that matches the second keyword.

第2文字列生成手段16は、第2検索手段15による検索の結果、第2キーワードと一致する文字列がヒットしない場合、図5(e)に示すように、第2キーワードから、括弧および当該括弧によって囲われた文字列“(眼内レンズを挿入する場合・その他のもの)”を取り除いた文字列“水晶体再建術”を生成する。 If the search by the second search means 15 does not yield a string matching the second keyword, the second string generation means 16 generates the string "Lens reconstruction surgery" by removing the parentheses and the string enclosed by the parentheses "(when inserting an intraocular lens/other)" from the second keyword, as shown in FIG. 5(e).

類似文字列抽出手段17は、第2文字列生成手段16が生成した文字列“水晶体再建術”を第3キーワードとして、第2医療行為・医薬品マスタから、第3キーワードを含む文字列(第1類似文字列)に対応づけられた点数表区分番号「K2821イ」、「K2821ロ」、「K2822」および「K2823」を抽出する。その後、類似文字列抽出手段17は、第1医療行為・医薬品マスタから、抽出した点数表区分番号に対応づけられた、図5(f)に示す4つの第1類似文字列を抽出する。 The similar string extraction means 17 uses the string "lens reconstruction surgery" generated by the second string generation means 16 as the third keyword, and extracts from the second medical procedure/drug master the point table category numbers "K2821I", "K2821B", "K2822", and "K2823" that are associated with the string containing the third keyword (first similar string). The similar string extraction means 17 then extracts from the first medical procedure/drug master the four first similar strings shown in FIG. 5(f) that are associated with the extracted point table category numbers.

第1類似度算出手段18は、類似文字列抽出手段17が抽出した第1類似文字列が複数ある場合、図5(g)に示すように、各第1類似文字列と、第2キーワード“水晶体再建術(眼内レンズを挿入する場合・その他のもの)”との類似度をそれぞれ算出する。 When there are multiple first similar strings extracted by the similar string extraction means 17, the first similarity calculation means 18 calculates the similarity between each of the first similar strings and the second keyword "lens reconstruction surgery (intraocular lens insertion and others)" as shown in FIG. 5(g).

出力手段19は、類似文字列抽出手段17が抽出した第1類似文字列のうち、第1類似度算出手段18が算出した類似度が所定値0.8以上である第1類似文字列に対応する医療行為・医薬品の情報を出力する。具体的には、出力手段19は、診療行為名「水晶体再建術(眼内レンズを挿入する場合)(その他のもの)」と点数表区分番号「K2821ロ」、および、診療行為名「水晶体再建術(眼内レンズを挿入しない場合)」と点数表区分番号「K2822」の情報を出力する。なお、出力手段19は、第1類似度算出手段18が算出した類似度の情報をさらに出力する構成であってもよい。 The output means 19 outputs information on medical procedures and medicines corresponding to the first similar strings, among the first similar strings extracted by the similar string extraction means 17, whose similarity calculated by the first similarity calculation means 18 is equal to or greater than a predetermined value of 0.8. Specifically, the output means 19 outputs information on the medical procedure name "Lens reconstruction surgery (when an intraocular lens is inserted) (other)" and the point table category number "K2821ro", and the medical procedure name "Lens reconstruction surgery (when an intraocular lens is not inserted)" and the point table category number "K2822". The output means 19 may be configured to further output information on the similarity calculated by the first similarity calculation means 18.

次に、第2の例について説明する。第2の例は、第1の例と同じ文字列“左水晶体再建術(眼内レンズを挿入する場合・その他のもの)”について、“水晶体再建術”の部分が、OCRにより“水昌体再律術”と誤って読み取られた場合である。 Next, we will explain the second example. In the second example, the same character string as in the first example, "Left lens reconstruction surgery (in case of inserting an intraocular lens, etc.)", is mistakenly read as "water crystal reconstruction surgery" by OCR.

第2の例の場合、図6(a)に示すように、第1検索手段13は、文字列“左水昌体再律術(眼内レンズを挿入する場合・その他のもの)”を第1キーワードとして、第1医療行為・医薬品マスタから、第1キーワードと一致する文字列がヒットするかを検索し、ヒットしないので、図6(b)に示すように、第1文字列生成手段14は、第1キーワードから、接頭語マスタを参照して、接頭語“左”を取り除いた文字列“水昌体再律術(眼内レンズを挿入する場合・その他のもの)”を生成する。 In the second example, as shown in FIG. 6(a), the first search means 13 searches the first medical procedure/drug master for a character string that matches the first keyword, using the character string "left hydrate resection (when inserting an intraocular lens/other)" as the first keyword. Since there is no match, the first character string generation means 14 refers to the prefix master and generates the character string "hydrate resection (when inserting an intraocular lens/other)" by removing the prefix "left" from the first keyword, as shown in FIG. 6(b).

第2検索手段15は、文字列“水昌体再律術(眼内レンズを挿入する場合・その他のもの)”を第2キーワードとして、第1医療行為・医薬品マスタから、第2キーワードと一致する文字列がヒットするかを検索し、ヒットしないので、図6(c)に示すように、第2文字列生成手段16は、第2キーワードから、括弧および当該括弧によって囲われた文字列“(眼内レンズを挿入する場合・その他のもの)”を取り除いた文字列“左水昌体再律術”を生成する。 The second search means 15 searches the first medical procedure/drug master for a character string that matches the second keyword, using the character string "Hydrangea resection (when inserting an intraocular lens/other)" as the second keyword, and since there is no hit, the second character string generation means 16 generates the character string "Left hydrangea resection" by removing the parentheses and the character string "(when inserting an intraocular lens/other)" enclosed by the parentheses from the second keyword, as shown in FIG. 6(c).

類似文字列抽出手段17は、文字列“水昌体再律術”を第3キーワードとして、第2医療行為・医薬品マスタから、第3キーワードを含む文字列を抽出しようとするが、第2の例では、第3キーワードを含む文字列を抽出することができない。そこで、図6(d)に示すように、第2類似度算出手段20は、第3キーワード“水昌体再律術”と、第2医療行為・医薬品マスタに記憶されている各索引文字列との類似度をそれぞれ算出する。 The similar string extraction means 17 attempts to extract a string containing the third keyword from the second medical practice/drug master using the string "Suichangtai Sairyunjutsu" as the third keyword, but in the second example, it is not possible to extract a string containing the third keyword. Therefore, as shown in FIG. 6(d), the second similarity calculation means 20 calculates the similarity between the third keyword "Suichangtai Sairyunjutsu" and each index string stored in the second medical practice/drug master.

類似文字列抽出手段17は、第2類似度算出手段20が算出した類似度が所定値0.8以上である索引文字列がある場合、第1医療行為・医薬品マスタから、当該索引文字列に対応する文字列(対応文字列)を抽出する。具体的には、類似文字列抽出手段17は、類似度が所定値0.8以上である索引文字列“水晶体再建術”があるので、第1医療行為・医薬品マスタから、図5(e)に示す4つの対応文字列を抽出する。 When there is an index string whose similarity calculated by the second similarity calculation means 20 is equal to or greater than a predetermined value of 0.8, the similar string extraction means 17 extracts a string that corresponds to the index string (corresponding string) from the first medical practice/drug master. Specifically, since there is an index string "lens reconstruction surgery" whose similarity is equal to or greater than a predetermined value of 0.8, the similar string extraction means 17 extracts the four corresponding strings shown in FIG. 5(e) from the first medical practice/drug master.

第1類似度算出手段18は、類似文字列抽出手段17が抽出した対応文字列が複数ある場合、図6(f)に示すように、各対応文字列と、第2キーワード“水昌体再律術(眼内レンズを挿入する場合・その他のもの)”との類似度をそれぞれ算出する。
出力手段19は、類似文字列抽出手段17が抽出した対応文字列のうち、第1類似度算出手段18が算出した類似度が所定値0.8以上である対応文字列に対応する医療行為・医薬品の情報を出力する。
When there are multiple corresponding character strings extracted by the similar character string extraction means 17, the first similarity calculation means 18 calculates the similarity between each corresponding character string and the second keyword “water crystal resection (in case of inserting an intraocular lens and others)” as shown in FIG. 6(f).
The output means 19 outputs information on medical procedures and medicines corresponding to corresponding strings extracted by the similar string extraction means 17, the similarity calculated by the first similarity calculation means 18 being a predetermined value of 0.8 or more.

次に、第3の例について説明する。第3の例は、診療明細書等に記載された項目“短手3(水晶体再建術・眼内レンズ挿入・その他のもの(片側))”が、OCRにより“垣手3(水晶体再建指・硯内レンズ挿入・その他のもの(片例))”と誤って読み取られた場合である。 Next, we will explain the third example. In the third example, the item "Short hand 3 (Lens reconstruction surgery, intraocular lens insertion, other items (one side))" written on the medical statement etc. is mistakenly read as "Fence 3 (Lens reconstruction finger, intraocular lens insertion, other items (one side))" by OCR.

第3の例の場合、図7(a)に示すように、第1検索手段13は、文字列“垣手3(水晶体再建指・硯内レンズ挿入・その他のもの(片例))”を第1キーワードとして、第1医療行為・医薬品マスタから、第1キーワードと一致する文字列がヒットするかを検索し、ヒットしないので、第1文字列生成手段14は、第1キーワードから、接頭語マスタを参照して、接頭語を取り除いた文字列を生成しようとする。第3の例では、第1キーワードに、接頭語マスタに記憶された接頭語がないため、図7(b)に示すように、第1文字列生成手段14は、第1キーワードと同じ文字列“垣手3(水晶体再建指・硯内レンズ挿入・その他のもの(片例))”を生成する。 In the case of the third example, as shown in FIG. 7(a), the first search means 13 searches the first medical practice/drug master for a character string that matches the first keyword, using the character string "Kakide 3 (Lens reconstruction finger/Intra-capsule lens insertion/Other (One example))" as the first keyword, and since there is no match, the first character string generation means 14 attempts to generate a character string from the first keyword with the prefix removed, referring to the prefix master. In the third example, since the first keyword does not have a prefix stored in the prefix master, as shown in FIG. 7(b), the first character string generation means 14 generates the same character string as the first keyword, "Kakide 3 (Lens reconstruction finger/Intra-capsule lens insertion/Other (One example))".

第2検索手段15は、文字列“垣手3(水晶体再建指・硯内レンズ挿入・その他のもの(片例))”を第2キーワードとして、第1医療行為・医薬品マスタから、第2キーワードと一致する文字列がヒットするかを検索し、ヒットしないので、図7(c)に示すように、第2文字列生成手段16は、第2キーワードから、括弧および当該括弧によって囲われた文字列“(水晶体再建指・硯内レンズ挿入・その他のもの(片例))”を取り除いた文字列“垣手3”を生成する。 The second search means 15 searches the first medical practice/drug master for a character string that matches the second keyword, using the character string "Kakide 3 (Lens reconstruction finger/Intra-lens insertion/Other (example))" as the second keyword, and since there is no hit, the second character string generation means 16 generates the character string "Kakide 3" by removing the parentheses and the character string "(Lens reconstruction finger/Intra-lens insertion/Other (example))" enclosed by the parentheses from the second keyword, as shown in FIG. 7(c).

類似文字列抽出手段17は、文字列“垣手3”を第3キーワードとして、第2医療行為・医薬品マスタから、第3キーワードを含む文字列を抽出しようとするが、第3の例では、第3キーワードを含む文字列を抽出することができない。そこで、第2類似度算出手段20は、第3キーワード“垣手3”と、第2医療行為・医薬品マスタに記憶されている各索引文字列との類似度をそれぞれ算出する。 The similar string extraction means 17 attempts to extract a string containing the third keyword from the second medical practice/drug master using the string "Fence 3" as the third keyword, but in the third example, it is unable to extract a string containing the third keyword. Therefore, the second similarity calculation means 20 calculates the similarity between the third keyword "Fence 3" and each index string stored in the second medical practice/drug master.

第3の例では、第2類似度算出手段20が算出した類似度は、すべて所定値0.8未満となり、図7(d)に示すように、要素文字列抽出手段21は、要素文字列マスタを参照して、第2キーワード(図7(b)参照)から、要素文字列“レンズ”および“挿入”を抽出する。 In the third example, all of the similarities calculated by the second similarity calculation means 20 are less than the predetermined value of 0.8, and as shown in FIG. 7(d), the element string extraction means 21 refers to the element string master and extracts the element strings "lens" and "insertion" from the second keyword (see FIG. 7(b)).

類似文字列抽出手段17は、要素文字列抽出手段21が抽出した要素文字列が複数あるので、第2キーワードの中央に近い位置にある要素文字列“レンズ”を、まず、第4キーワードとして、第1医療行為・医薬品マスタから、図8(a)に示すような、第4キーワード“レンズ”を含む文字列(第2類似文字列)を抽出する。 Since there are multiple element strings extracted by the element string extraction means 21, the similar string extraction means 17 first selects the element string "lens" located near the center of the second keyword as the fourth keyword, and extracts strings (second similar strings) containing the fourth keyword "lens" from the first medical practice/drug master, as shown in Figure 8 (a).

図8(b)に示すように、第3類似度算出手段22は、抽出した第2類似文字列について、第2キーワード“垣手3(水晶体再建指・硯内レンズ挿入・その他のもの(片例))”との類似度をそれぞれ算出する。 As shown in FIG. 8(b), the third similarity calculation means 22 calculates the similarity between the extracted second similar character string and the second keyword "Kakide 3 (cataract reconstruction finger, intraocular lens insertion, other (example))".

出力手段19は、類似文字列抽出手段17が抽出した第2類似文字列のうち、第3類似度算出手段22が算出した類似度が所定値0.8以上である類似文字列に対応する医療行為または医薬品の情報を出力する。具体的には、出力手段19は、診療行為名「短手3(水晶体再建術・眼内レンズ挿入・その他・片側)」と点数表区分番号「A4003ホ」、診療行為名「短手3(水晶体再建術・眼内レンズ挿入・その他・両側)」と点数表区分番号「A4003ヘ」、および、診療行為名「短手3(水晶体再建術・眼内レンズ挿入・その他・片側)(生活療養)」と点数表区分番号「A4003ホ」の情報を出力する。なお、出力手段19は、第3類似度算出手段22が算出した類似度の情報をさらに出力する構成であってもよい。 The output means 19 outputs information on medical procedures or medicines corresponding to similar strings whose similarity calculated by the third similarity calculation means 22 is equal to or greater than a predetermined value of 0.8 among the second similar strings extracted by the similar string extraction means 17. Specifically, the output means 19 outputs information on the medical procedure name "Short 3 (Lens reconstruction, intraocular lens insertion, other, one side)" and the point table classification number "A4003ho", the medical procedure name "Short 3 (Lens reconstruction, intraocular lens insertion, other, both sides)" and the point table classification number "A4003he", and the medical procedure name "Short 3 (Lens reconstruction, intraocular lens insertion, other, one side) (lifestyle care)" and the point table classification number "A4003ho". The output means 19 may be configured to further output information on the similarity calculated by the third similarity calculation means 22.

次に、第1実施形態のテキストデータ解析システム1の動作(テキストデータ解析システム1を構成するコンピュータが備える手段が実行するテキストデータ解析方法)の一例について、フローチャートを参照しながら説明する。 Next, an example of the operation of the text data analysis system 1 of the first embodiment (a text data analysis method executed by the means provided in the computer constituting the text data analysis system 1) will be described with reference to a flowchart.

図9に示すように、テキストデータ解析システム1は、まず、テキストデータを取得する(S110)(データ取得ステップ)。次に、テキストデータ解析システム1は、データ取得ステップで取得したテキストデータから、一の項目を表す一群の文字列を抽出する(S120)(文字列抽出ステップ)。 As shown in FIG. 9, the text data analysis system 1 first acquires text data (S110) (data acquisition step). Next, the text data analysis system 1 extracts a group of character strings representing one item from the text data acquired in the data acquisition step (S120) (character string extraction step).

次に、テキストデータ解析システム1は、文字列抽出ステップで抽出した文字列を第1キーワードとして、第1医療行為・医薬品マスタから、第1キーワードと一致する文字列がヒットするかを検索する(S131)(第1検索ステップ)。そして、検索の結果、第1キーワードと一致する文字列がヒットした場合(S132,Yes)、ステップS183に進む。 Next, the text data analysis system 1 uses the character string extracted in the character string extraction step as a first keyword and searches the first medical practice/drug master for a character string that matches the first keyword (S131) (first search step). Then, if the search results in a character string that matches the first keyword (S132, Yes), the system proceeds to step S183.

一方、第1検索ステップにおける検索の結果、第1キーワードと一致する文字列がヒットしない場合(S132,No)、テキストデータ解析システム1は、接頭語マスタを参照して、第1キーワードから、接頭語を取り除いた文字列を生成する(S140)(第1文字列生成ステップ)。 On the other hand, if the search in the first search step does not result in a string that matches the first keyword (S132, No), the text data analysis system 1 refers to the prefix master and generates a string from the first keyword with the prefix removed (S140) (first string generation step).

次に、テキストデータ解析システム1は、第1文字列生成ステップで生成した文字列を第2キーワードとして、第1医療行為・医薬品マスタから、第2キーワードと一致する文字列がヒットするかを検索する(S151)(第2検索ステップ)。そして、検索の結果、第2キーワードと一致する文字列がヒットした場合(S152,Yes)、ステップS183に進む。 Next, the text data analysis system 1 uses the character string generated in the first character string generation step as a second keyword and searches the first medical practice/drug master for a character string that matches the second keyword (S151) (second search step). If the search results in a character string that matches the second keyword (S152, Yes), the system proceeds to step S183.

一方、第2検索ステップにおける検索の結果、第2キーワードと一致する文字列がヒットしない場合(S152,No)、テキストデータ解析システム1は、第2キーワードから、括弧および当該括弧によって囲われた文字列等を取り除いた文字列を生成する(S160)(第2文字列生成ステップ)。 On the other hand, if the search in the second search step does not result in a string that matches the second keyword (S152, No), the text data analysis system 1 generates a string from the second keyword by removing parentheses and the string enclosed by the parentheses (S160) (second string generation step).

次に、テキストデータ解析システム1は、第2文字列生成ステップで生成した文字列を第3キーワードとして、第2医療行為・医薬品マスタおよび第1医療行為・医薬品マスタから、第3キーワードを含む文字列(第1類似文字列)を抽出する(S171)(類似文字列抽出ステップ)。そして、テキストデータ解析システム1は、第1類似文字列を抽出できたかを判定する(S172)。 Next, the text data analysis system 1 extracts a string containing the third keyword (first similar string) from the second medical practice/drug master and the first medical practice/drug master using the string generated in the second string generation step as the third keyword (S171) (similar string extraction step). Then, the text data analysis system 1 determines whether the first similar string has been extracted (S172).

第1類似文字列を抽出できた場合(S172,Yes)、テキストデータ解析システム1は、抽出した第1類似文字列が複数あるかを判定する(S173)。そして、抽出した第1類似文字列が1つである場合(S173,No)、ステップS183に進む。 If a first similar string is extracted (S172, Yes), the text data analysis system 1 determines whether multiple first similar strings are extracted (S173). If only one first similar string is extracted (S173, No), the process proceeds to step S183.

一方、類似文字列抽出ステップで抽出した文字列が複数ある場合(S173,Yes)、テキストデータ解析システム1は、類似文字列抽出ステップで抽出した第1類似文字列と、第2キーワードとの類似度をそれぞれ算出する(S181)(第1類似度算出ステップ)。そして、テキストデータ解析システム1は、類似文字列抽出ステップで抽出した第1類似文字列のうち、第1類似度算出ステップで算出した類似度が所定以上である第1類似文字列を抽出し(S182)、ステップS183に進む。 On the other hand, if there are multiple strings extracted in the similar string extraction step (S173, Yes), the text data analysis system 1 calculates the similarity between each of the first similar strings extracted in the similar string extraction step and the second keyword (S181) (first similarity calculation step). Then, the text data analysis system 1 extracts, from among the first similar strings extracted in the similar string extraction step, first similar strings whose similarity calculated in the first similarity calculation step is equal to or greater than a predetermined value (S182), and proceeds to step S183.

ここで、例えば、診療明細書や調剤明細書等には、手術名等の診療行為に関する項目や医薬品に関する項目が複数記載されていたり、当該項目以外のほかの項目が記載されていたりすることがあるため、テキストデータには、一の項目を表す一群の文字列が複数存在する場合がある。そこで、テキストデータ解析システム1は、ステップS183において、次の、一の項目を表す一群の文字列があるかを判定する。テキストデータ解析システム1は、次の文字列がある場合(S183,Yes)、ステップS120に戻って以降の処理を実行し、次の文字列がない場合(S183,No)、ステップS191に進む。 For example, a medical care statement or a prescription statement may contain multiple items related to medical procedures such as the name of surgery or items related to medicines, or may contain items other than the items in question, so that the text data may contain multiple groups of character strings representing one item. Therefore, in step S183, the text data analysis system 1 determines whether there is a next group of character strings representing one item. If there is a next character string (S183, Yes), the text data analysis system 1 returns to step S120 and executes the subsequent processes, and if there is no next character string (S183, No), the text data analysis system 1 proceeds to step S191.

ステップS191において、テキストデータ解析システム1は、第1検索ステップまたは第2検索ステップでヒットした文字列に対応する医療行為・医薬品の情報を抽出し、抽出した医療行為・医薬品の情報を出力する(S192)。または、テキストデータ解析システム1は、類似文字列抽出ステップで抽出した第1類似文字列に対応する少なくとも1つの医療行為・医薬品の情報を抽出し(S191)、抽出した医療行為・医薬品の情報を出力する(S192)(出力ステップ)。 In step S191, the text data analysis system 1 extracts information on medical procedures and medicines that correspond to the character strings found in the first search step or the second search step, and outputs the extracted information on medical procedures and medicines (S192). Alternatively, the text data analysis system 1 extracts information on at least one medical procedure and medicine that corresponds to the first similar character string extracted in the similar character string extraction step (S191), and outputs the extracted information on medical procedures and medicines (S192) (output step).

ステップS172において、第2医療行為・医薬品マスタおよび第1医療行為・医薬品マスタから、第3キーワードを含む文字列(第1類似文字列)を抽出できなかった場合(No)、図10に示すように、テキストデータ解析システム1は、第3キーワードと、第2医療行為・医薬品マスタに記憶された各索引文字列との類似度をそれぞれ算出する(S201)(第2類似度算出ステップ)。 In step S172, if a string containing the third keyword (first similar string) cannot be extracted from the second medical practice/drug master and the first medical practice/drug master (No), as shown in FIG. 10, the text data analysis system 1 calculates the similarity between the third keyword and each index string stored in the second medical practice/drug master (S201) (second similarity calculation step).

そして、テキストデータ解析システム1は、第2類似度算出ステップで算出した類似度が所定以上である索引文字列があるかを判定する(S202)。類似度が所定以上である索引文字列がある場合(S202,Yes)、テキストデータ解析システム1は、第2医療行為・医薬品マスタおよび第1医療行為・医薬品マスタから、当該索引文字列に対応する文字列(対応文字列)を抽出する(S203)。 Then, the text data analysis system 1 determines whether there is an index string whose similarity calculated in the second similarity calculation step is equal to or greater than a predetermined level (S202). If there is an index string whose similarity is equal to or greater than a predetermined level (S202, Yes), the text data analysis system 1 extracts a string that corresponds to the index string (corresponding string) from the second medical practice/drug master and the first medical practice/drug master (S203).

その後、テキストデータ解析システム1は、図9のステップS173に進み、抽出した対応文字列が複数あるかを判定し、1つである場合(S173,No)は、ステップS183に進み、複数である場合(S173,Yes)は、抽出した対応文字列と、第2キーワードとの類似度をそれぞれ算出し(S181)、以降の処理を実行する。 Then, the text data analysis system 1 proceeds to step S173 in FIG. 9 to determine whether there are multiple extracted corresponding character strings. If there is one (S173, No), it proceeds to step S183. If there are multiple extracted corresponding character strings (S173, Yes), it calculates the similarity between each of the extracted corresponding character strings and the second keyword (S181) and executes the subsequent processes.

図10に戻り、ステップS202において、第2類似度算出ステップ(S201)で算出した類似度が所定以上である索引文字列がない場合(S202,No)、テキストデータ解析システム1は、要素文字列マスタを参照して、第2キーワードから、要素文字列を抽出する(S211)(要素文字列抽出ステップ)。 Returning to FIG. 10, in step S202, if there is no index string whose similarity calculated in the second similarity calculation step (S201) is equal to or greater than a predetermined value (S202, No), the text data analysis system 1 refers to the element string master and extracts element strings from the second keyword (S211) (element string extraction step).

次に、テキストデータ解析システム1は、抽出した要素文字列が複数あるかを判定する(S212)。抽出した要素文字列が複数ある場合(S212,Yes)、テキストデータ解析システム1は、先に第2類似文字列を抽出する要素文字列、具体的には、第2キーワードの中央に近い位置にある要素文字列を決定し(S213)、決定した要素文字列を第4キーワードとして、第1医療行為・医薬品マスタから、第4キーワードを含む文字列(第2類似文字列)を抽出する(S214)。また、抽出した要素文字列が1つである場合(S212,No)、テキストデータ解析システム1は、当該要素文字列を第4キーワードとして、第1医療行為・医薬品マスタから、第2類似文字列を抽出する(S214)。 Next, the text data analysis system 1 determines whether multiple element strings have been extracted (S212). If multiple element strings have been extracted (S212, Yes), the text data analysis system 1 first determines the element string from which the second similar string will be extracted, specifically, the element string located close to the center of the second keyword (S213), and extracts a string containing the fourth keyword (second similar string) from the first medical practice/drug master using the determined element string as the fourth keyword (S214). If only one element string has been extracted (S212, No), the text data analysis system 1 extracts the second similar string from the first medical practice/drug master using the element string as the fourth keyword (S214).

次に、テキストデータ解析システム1は、抽出した第2類似文字列と、第2キーワードとの類似度を算出する(S221)(第3類似度算出ステップ)。次に、テキストデータ解析システム1は、算出した類似度が所定以上である第2類似文字列があるかを判定する(S222)。類似度が所定以上である第2類似文字列がない場合(S222,No)、ステップS213に戻って、次の、先に第2類似文字列を抽出する要素文字列を決定し、以降の処理を実行する。一方、ステップS222において、類似度が所定以上である第2類似文字列がある場合(Yes)、テキストデータ解析システム1は、図9のステップ182に進み、類似度が所定以上である第2類似文字列を抽出し(S182)、以降の処理を実行する。 Next, the text data analysis system 1 calculates the similarity between the extracted second similar string and the second keyword (S221) (third similarity calculation step). Next, the text data analysis system 1 determines whether there is a second similar string whose calculated similarity is equal to or greater than a predetermined level (S222). If there is no second similar string whose similarity is equal to or greater than a predetermined level (S222, No), the process returns to step S213 to determine the next element string from which the second similar string is to be extracted first, and executes the subsequent processes. On the other hand, if there is a second similar string whose similarity is equal to or greater than a predetermined level in step S222 (Yes), the text data analysis system 1 proceeds to step 182 in FIG. 9, extracts a second similar string whose similarity is equal to or greater than a predetermined level (S182), and executes the subsequent processes.

以上の第1実施形態によれば、マスタにキーワードを必要以上に追加していくことなく、テキストデータから医療行為または医薬品を表す文字列を抽出することができる。また、テキストデータから医療行為または医薬品を表す文字列を、厚生労働省が定めた基本マスタに収載された形式に変換して抽出することができる。 According to the first embodiment described above, character strings representing medical procedures or medicines can be extracted from text data without adding more keywords than necessary to the master. In addition, character strings representing medical procedures or medicines can be extracted from text data by converting them into a format included in the basic master defined by the Ministry of Health, Labor and Welfare.

また、第1類似度算出手段18をさらに備えることで、医療行為、医薬品の情報を絞り込んで出力することができる。 Furthermore, by further providing a first similarity calculation means 18, it is possible to narrow down and output information on medical procedures and medicines.

また、第2類似度算出手段20をさらに備えることで、テキストデータから医療行為または医薬品を表す文字列をより確実に抽出することができる。 In addition, by further providing a second similarity calculation means 20, character strings representing medical procedures or medicines can be extracted more reliably from the text data.

また、要素文字列抽出手段21をさらに備えることで、テキストデータから医療行為または医薬品を表す文字列をさらに確実に抽出することができる。 In addition, by further providing an element string extraction means 21, it is possible to more reliably extract strings representing medical procedures or medicines from text data.

また、第3類似度算出手段22をさらに備え、先に類似度を算出した第2類似文字列の中に類似度が所定以上である第2類似文字列がある場合に、当該第2類似文字列に対応する傷病名の情報を出力して処理を終了するので、医療行為または医薬品の情報を出力するまでの処理量を少なくして処理速度を速くすることができる。 The system further includes a third similarity calculation means 22, which, if there is a second similar string whose similarity is equal to or greater than a predetermined level among the second similar strings whose similarity has been calculated previously, outputs information on the name of the injury or illness corresponding to the second similar string and terminates the process, thereby reducing the amount of processing required to output information on the medical procedure or medicine, thereby increasing the processing speed.

また、第2文字列生成手段16が、第2キーワードから、括弧および当該括弧によって囲われた文字列を取り除くだけでなく、上記の文字列(1)~(5)をさらに取り除くので、医療行為、医薬品の情報を絞り込みやすくすることができる。 In addition, the second character string generating means 16 not only removes parentheses and character strings enclosed by those parentheses from the second keywords, but also removes the above character strings (1) to (5), making it easier to narrow down information on medical procedures and medicines.

なお、第1実施形態では、第2文字列生成手段16は、第2文字列生成ステップで第2キーワードから、上述の文字列(1)~(5)を取り除いたが、第2キーワードから、上述の文字列(1)~(5)の少なくとも1つを取り除く構成であればよい。また、例えば、第2文字列生成手段16は、第2文字列生成ステップで第2キーワードから、括弧および当該括弧によって囲われた文字列のみを取り除く構成であってもよい。 In the first embodiment, the second character string generating means 16 removes the above character strings (1) to (5) from the second keyword in the second character string generating step, but it is sufficient that the second character string generating means 16 is configured to remove at least one of the above character strings (1) to (5) from the second keyword. Also, for example, the second character string generating means 16 may be configured to remove only parentheses and character strings enclosed by the parentheses from the second keyword in the second character string generating step.

また、第1実施形態では、類似文字列抽出手段17は、第2医療行為・医薬品マスタおよび第1医療行為・医薬品マスタを参照して、第1類似文字列を抽出したが、例えば、第1医療行為・医薬品マスタのみを参照して、第1類似文字列を抽出する構成であってもよい。すなわち、テキストデータ解析システムは、第2医療行為・医薬品マスタを備えない構成であってもよい。また、第1医療行為・医薬品マスタに、索引文字列を、医療行為・医薬品を表す文字列等と対応させて記憶させておいてもよい。 In the first embodiment, the similar string extraction means 17 extracts the first similar string by referring to the second medical practice/drug master and the first medical practice/drug master, but, for example, the first similar string may be extracted by referring to only the first medical practice/drug master. In other words, the text data analysis system may not be provided with the second medical practice/drug master. Also, the index string may be stored in the first medical practice/drug master in association with a string representing a medical practice/drug, etc.

また、第1実施形態では、医療行為・医薬品マスタは、点数表区分番号や薬価基準コードを記憶していたが、その他のコード、例えば、医科診療行為マスタの診療行為コードや、医薬品マスタの医薬品コードなどを記憶するものであってもよい。 In addition, in the first embodiment, the medical procedure/drug master stored the fee schedule category number and drug price standard code, but it may also store other codes, such as the medical procedure code from the medical procedure master or the drug code from the drug master.

次に、第2実施形態について説明する。なお、以下では、第1実施形態と異なる点について詳細に説明し、同じ点については同一の要素に同一の符号を付す等して適宜説明を省略する。 Next, the second embodiment will be described. Note that, below, differences from the first embodiment will be described in detail, and explanations of the same points will be omitted as appropriate by assigning the same reference numerals to the same elements.

図11に示すように、第2実施形態に係るテキストデータ解析システム1は、例えば、診断書等に記載された項目に基づいて作成されたテキストデータから、傷病名に関する項目をICD10対応標準病名マスタに収載された形式に変換して抽出するシステムである。テキストデータ解析システム1は、データ取得手段11と、文字列抽出手段12と、第1検索手段23と、第1文字列生成手段24と、第2検索手段25と、第2文字列生成手段26と、第3検索手段27と、要素文字列抽出手段28と、類似文字列抽出手段29と、類似度算出手段30と、出力手段31と、記憶装置90とを備える。 As shown in FIG. 11, the text data analysis system 1 according to the second embodiment is a system that converts and extracts items related to the names of illnesses and injuries from text data created based on items written on a medical certificate or the like into a format included in the ICD10-compatible standard disease name master. The text data analysis system 1 includes a data acquisition means 11, a character string extraction means 12, a first search means 23, a first character string generation means 24, a second search means 25, a second character string generation means 26, a third search means 27, an element character string extraction means 28, a similar character string extraction means 29, a similarity calculation means 30, an output means 31, and a storage device 90.

第2実施形態において、ROMや記憶装置90に記憶させておいたコンピュータプログラムは、テキストデータ解析システム1を構成するコンピュータを、データ取得手段11と、文字列抽出手段12と、第1検索手段23と、第1文字列生成手段24と、第2検索手段25と、第2文字列生成手段26と、第3検索手段27と、要素文字列抽出手段28と、類似文字列抽出手段29と、類似度算出手段30と、出力手段31として機能させる。 In the second embodiment, the computer program stored in the ROM or storage device 90 causes the computer constituting the text data analysis system 1 to function as a data acquisition means 11, a string extraction means 12, a first search means 23, a first string generation means 24, a second search means 25, a second string generation means 26, a third search means 27, an element string extraction means 28, a similar string extraction means 29, a similarity calculation means 30, and an output means 31.

記憶装置90には、傷病名マスタと、接尾語マスタと、接頭語マスタと、要素文字列マスタとが記憶されている。
図12に示すように、傷病名マスタは、傷病名を表す文字列を記憶するテーブルとして構成されている。傷病名マスタは、ICD10対応標準病名マスタに収載された傷病名を表す文字列と、ICDコードとを対応させて記憶している。
The storage device 90 stores an injury/disease name master, a suffix master, a prefix master, and an element character string master.
As shown in Fig. 12, the injury/disease name master is configured as a table that stores character strings representing injury/disease names. The injury/disease name master stores character strings representing injury/disease names included in the ICD10-compatible standard illness name master in association with ICD codes.

図13(a)に示すように、接尾語マスタは、文字列の後尾に付く特定の文字列である接尾語を記憶するテーブルとして構成されている。接尾語は、診断書等に記載される傷病名の後尾に付けられることがある、例えば、「の疑い」、「の術後」、「の術前」、「の増悪」、「の治療後」、「の二次感染」等の文字列である。接尾語は、例えば、修飾語マスタに収載された接尾語に使用する修飾語を参考に決めることができる。 As shown in FIG. 13(a), the suffix master is configured as a table that stores suffixes, which are specific character strings that are added to the end of a character string. Suffixes are character strings that are sometimes added to the end of the name of an injury or illness written on a medical certificate, etc., such as "suspected of," "post-surgery of," "pre-surgery of," "exacerbation of," "post-treatment of," and "secondary infection of." Suffixes can be determined, for example, by referring to modifiers used for suffixes listed in the modifier master.

図13(b)に示すように、接頭語マスタは、文字列の先頭に付く特定の文字列である接頭語を記憶するテーブルとして構成されている。接頭語は、診断書等に記載される傷病名の先頭に付けられることがある、例えば、「下」、「急性」、「上」、「左」、「左側」、「右」、「右側」等の文字列である。接頭語は、例えば、修飾語マスタに収載された接頭語に使用する修飾語を参考に決めることができる。 As shown in FIG. 13(b), the prefix master is configured as a table that stores prefixes, which are specific character strings that are added to the beginning of a character string. Prefixes are character strings such as "lower", "acute", "upper", "left", "left side", "right", and "right side" that are sometimes added to the beginning of the name of an injury or illness written on a medical certificate, etc. Prefixes can be determined, for example, by referring to modifiers used for prefixes listed in the modifier master.

図13(c)に示すように、要素文字列マスタは、要素文字列を記憶するテーブルとして構成されている。要素文字列は、傷病名に含まれる特定の文字列であり、例えば、「真珠」、「腱」、「室」、「耳」、「縮」、「潰」、「中耳」等の文字列である。要素文字列としては、傷病名を絞り込む際にヒットする候補が多くなりすぎないような文字列、例えば、候補を500件以下程度に絞り込めるような文字列を採用している。 As shown in FIG. 13(c), the element string master is configured as a table that stores element strings. An element string is a specific string contained in the name of an injury or illness, such as "pearl," "tendon," "room," "ear," "shrink," "crush," and "middle ear." As element strings, strings are used that do not generate too many candidates when narrowing down the injury or illness names, for example, strings that can narrow down the candidates to around 500 or less.

図11に戻り、第1検索手段23は、文字列抽出手段12が抽出した文字列を第1キーワードとして、傷病名マスタから、第1キーワードと一致する文字列がヒットするかを検索する。第1検索手段23は、検索の結果、第1キーワードと一致する文字列がヒットした場合、ヒットした文字列に対応する傷病名の情報を出力する。 Returning to FIG. 11, the first search means 23 uses the character string extracted by the character string extraction means 12 as a first keyword and searches the injury/illness name master for a character string that matches the first keyword. If the search finds a character string that matches the first keyword, the first search means 23 outputs information on the injury/illness name that corresponds to the hit character string.

ここで、第2実施形態において、第1検索手段23、第2検索手段25、第3検索手段27および出力手段31は、傷病名の情報として、傷病名とICDコードの情報を出力する。 Here, in the second embodiment, the first search means 23, the second search means 25, the third search means 27 and the output means 31 output information on the injury or illness name and the ICD code.

第1文字列生成手段24は、第1検索手段23による検索の結果、第1キーワードと一致する文字列がヒットしない場合、接尾語マスタを参照して、第1キーワードから、接尾語を取り除いた文字列を生成する。また、第1文字列生成手段24は、第1キーワードに、接尾語マスタに記憶された接尾語がない場合、生成する文字列を第1キーワードとする。 When the search by the first search means 23 does not find a string matching the first keyword, the first character string generating means 24 refers to the suffix master and generates a string from the first keyword by removing the suffix. Also, when the first keyword does not have a suffix stored in the suffix master, the first character string generating means 24 sets the generated string as the first keyword.

第2検索手段25は、第1文字列生成手段24が生成した文字列を第2キーワードとして、傷病名マスタから、第2キーワードと一致する文字列がヒットするかを検索する。第2検索手段25は、検索の結果、第2キーワードと一致する文字列がヒットした場合、ヒットした文字列に対応する傷病名の情報を出力する。 The second search means 25 uses the character string generated by the first character string generation means 24 as a second keyword and searches the injury/illness name master for a character string that matches the second keyword. If the search finds a character string that matches the second keyword, the second search means 25 outputs information on the injury/illness name that corresponds to the matched character string.

第2文字列生成手段26は、第2検索手段25による検索の結果、第2キーワードと一致する文字列がヒットしない場合、接頭語マスタを参照して、第2キーワードから、接頭語を取り除いた文字列を生成する。 If the search by the second search means 25 does not find a string that matches the second keyword, the second string generation means 26 refers to the prefix master and generates a string from the second keyword with the prefix removed.

なお、第1キーワードと第2キーワードが同じ文字列である場合、第2検索手段25は、第2キーワードと一致する文字列がヒットするかを検索することなく、第2文字列生成手段26が、第2キーワードから、接尾語を取り除いた文字列を生成してもよい。 In addition, when the first keyword and the second keyword are the same character string, the second search means 25 may not search for a character string that matches the second keyword, and the second character string generation means 26 may generate a character string from the second keyword by removing the suffix.

また、第2文字列生成手段26は、第2キーワードに、接頭語マスタに記憶された接頭語がない場合、生成する文字列を第2キーワードとする。 In addition, if the second keyword does not have a prefix stored in the prefix master, the second character string generating means 26 treats the generated character string as the second keyword.

第3検索手段27は、第2文字列生成手段26が生成した文字列を第3キーワードとして、傷病名マスタから、第3キーワードと一致する文字列がヒットするかを検索する。第3検索手段27は、検索の結果、第3キーワードと一致する文字列がヒットした場合、ヒットした文字列に対応する傷病名の情報を出力する。 The third search means 27 uses the character string generated by the second character string generation means 26 as a third keyword and searches the injury/illness name master for a character string that matches the third keyword. If the search finds a character string that matches the third keyword, the third search means 27 outputs information on the injury/illness name that corresponds to the matched character string.

要素文字列抽出手段28は、第3検索手段27による検索の結果、第3キーワードと一致する文字列がヒットしない場合、要素文字列マスタを参照して、第3キーワードから、少なくとも1つの要素文字列を抽出する。 When the search by the third search means 27 does not find a string that matches the third keyword, the element string extraction means 28 refers to the element string master and extracts at least one element string from the third keyword.

なお、第2キーワードと第3キーワードが同じ文字列である場合、第3検索手段27は、第3キーワードと一致する文字列がヒットするかを検索することなく、要素文字列抽出手段28が、第3キーワードから、要素文字列を抽出してもよい。 In addition, if the second keyword and the third keyword are the same character string, the third search means 27 may not search for a character string that matches the third keyword, and the element string extraction means 28 may extract the element string from the third keyword.

類似文字列抽出手段29は、要素文字列抽出手段28が抽出した要素文字列を第4キーワードとして、傷病名マスタから、第4キーワードを含む文字列(以下、「類似文字列」ともいう。)を抽出する。 The similar string extraction means 29 uses the element string extracted by the element string extraction means 28 as the fourth keyword and extracts strings (hereinafter also referred to as "similar strings") that include the fourth keyword from the injury/illness name master.

類似度算出手段30は、類似文字列抽出手段29が抽出した類似文字列と、第3キーワードとの類似度を算出する。一例として、類似度算出手段30は、レーベンシュタイン距離およびジャロ・ウィンクラー距離の少なくとも一方に基づいて、類似文字列と、第3キーワードとの類似度を算出する。第2実施形態においても、類似度は、0から1の数値として算出される。 The similarity calculation means 30 calculates the similarity between the similar string extracted by the similar string extraction means 29 and the third keyword. As an example, the similarity calculation means 30 calculates the similarity between the similar string and the third keyword based on at least one of the Levenshtein distance and the Jaro-Winkler distance. In the second embodiment, the similarity is also calculated as a numerical value between 0 and 1.

出力手段31は、類似文字列抽出手段29が抽出した類似文字列に対応する少なくとも1つの傷病名の情報を出力する。詳しくは、出力手段31は、類似文字列抽出手段29が抽出した類似文字列のうち、類似度算出手段30が算出した類似度が所定以上である文字列に対応する傷病名の情報を出力する。 The output means 31 outputs information on at least one injury or illness name corresponding to the similar string extracted by the similar string extraction means 29. In detail, the output means 31 outputs information on the injury or illness name corresponding to a string having a similarity calculated by the similarity calculation means 30 equal to or greater than a predetermined value, among the similar strings extracted by the similar string extraction means 29.

第2実施形態では、類似文字列抽出手段29は、要素文字列抽出手段28が抽出した要素文字列が複数ある場合、第3キーワードの中央に近い位置にある要素文字列(以下、第2実施形態において「優先要素文字列」ともいう。)を、まず、第4キーワードとして、傷病名マスタから、類似文字列を抽出する。 In the second embodiment, when there are multiple element strings extracted by the element string extraction means 28, the similar string extraction means 29 first extracts similar strings from the injury/illness name master using the element string (hereinafter, also referred to as the "priority element string" in the second embodiment) that is located close to the center of the third keyword as the fourth keyword.

類似度算出手段30は、優先要素文字列を第4キーワードとして類似文字列抽出手段29が抽出した類似文字列について、他の要素文字列よりも先に第3キーワードとの類似度を算出する。 The similarity calculation means 30 calculates the similarity between the priority element string and the third keyword before other element strings for the similar strings extracted by the similar string extraction means 29 using the priority element string as the fourth keyword.

出力手段31は、先に類似度を算出した類似文字列の中に類似度が所定以上である文字列がある場合、当該類似文字列に対応する傷病名の情報を出力する。出力手段31が、先に類似度を算出した類似文字列に対応する傷病名の情報を出力した場合、それ以降、類似文字列抽出手段29は、他の要素文字列について類似文字列を抽出せず、類似度算出手段30は、類似度を算出しない。 If there is a string whose similarity is equal to or greater than a predetermined level among the similar strings whose similarity has been calculated previously, the output means 31 outputs information on the name of the injury or illness corresponding to the similar string. When the output means 31 outputs information on the name of the injury or illness corresponding to the similar string whose similarity has been calculated previously, the similar string extraction means 29 does not thereafter extract similar strings for other element strings, and the similarity calculation means 30 does not calculate similarity.

類似文字列抽出手段29は、先に類似度を算出した類似文字列の中に類似度が所定以上である文字列がない場合、次に第3キーワードの中央に近い位置にある要素文字列を第4キーワードとして、傷病名マスタから、類似文字列を抽出し、類似度算出手段30は、抽出した類似文字列について第3キーワードとの類似度を算出する。そして、出力手段31は、類似度を算出した類似文字列の中に類似度が所定以上である文字列がある場合、当該類似文字列に対応する傷病名の情報を出力する。 If there is no string with a similarity equal to or greater than a predetermined level among the similar strings whose similarity has been calculated earlier, the similar string extraction means 29 next extracts a similar string from the injury/illness name master using an element string located close to the center of the third keyword as the fourth keyword, and the similarity calculation means 30 calculates the similarity between the extracted similar string and the third keyword. Then, if there is a string with a similarity equal to or greater than a predetermined level among the similar strings whose similarity has been calculated, the output means 31 outputs information on the injury/illness name corresponding to the similar string.

要素文字列抽出手段28が抽出した要素文字列が複数ある場合において、2つの要素文字列の第3キーワードの中央からの位置が同じである場合、類似文字列抽出手段29は、各要素文字列を第4キーワードとして、傷病名マスタから、類似文字列をそれぞれ抽出し、抽出した類似文字列について第3キーワードとの類似度をそれぞれ算出する。そして、出力手段31は、類似度を算出した類似文字列の中に類似度が所定以上である文字列がある場合、当該類似文字列に対応する傷病名の情報を出力する。なお、この場合、抽出した類似文字列の数が少ない方について、多い方よりも先に類似度を算出し、先に類似度を算出した類似文字列の中に類似度が所定以上である文字列がある場合、当該類似文字列に対応する傷病名の情報を出力して、処理を終了してもよい。 When the element string extraction means 28 extracts multiple element strings, and the positions of the third keyword from the center of two element strings are the same, the similar string extraction means 29 extracts similar strings from the illness/injury name master with each element string as the fourth keyword, and calculates the similarity between the extracted similar strings and the third keyword. Then, if there is a string with a predetermined similarity or higher among the similar strings whose similarity has been calculated, the output means 31 outputs information on the illness/injury name corresponding to the similar string. Note that in this case, the similarity may be calculated for the string with fewer extracted similar strings before the string with a larger number, and if there is a string with a predetermined similarity or higher among the similar strings whose similarity has been calculated first, information on the illness/injury name corresponding to the similar string may be output and the process terminated.

ここで、具体的な例を示しながら、第2実施形態のテキストデータ解析システム1における処理について説明する。
第1の例として、図14(a)に示すように、第1検索手段23は、データ取得手段11が取得し、文字列抽出手段12が抽出した文字列“急性インフルエンザ肺炎の疑い”を第1キーワードとして、傷病名マスタから、第1キーワードと一致する文字列がヒットするかを検索する。
Here, the processing in the text data analysis system 1 of the second embodiment will be described with reference to a specific example.
As a first example, as shown in FIG. 14(a), the first search means 23 uses the character string “suspected acute influenza pneumonia” acquired by the data acquisition means 11 and extracted by the character string extraction means 12 as a first keyword, and searches the injury/illness name master for a character string that matches the first keyword.

第1文字列生成手段24は、第1検索手段23による検索の結果、第1キーワードと一致する文字列がヒットしない場合、図14(b)に示すように、接尾語マスタを参照して、第1キーワードから、接尾語“の疑い”を取り除いた文字列“急性インフルエンザ肺炎”を生成する。 If the search by the first search means 23 does not result in a string matching the first keyword, the first string generation means 24 refers to the suffix master and generates the string "acute influenza pneumonia" by removing the suffix "suspected of" from the first keyword, as shown in FIG. 14(b).

第2検索手段25は、第1文字列生成手段24が生成した文字列“急性インフルエンザ肺炎”を第2キーワードとして、傷病名マスタから、第2キーワードと一致する文字列がヒットするかを検索する。 The second search means 25 uses the character string "acute influenza pneumonia" generated by the first character string generation means 24 as a second keyword and searches the injury/disease name master for a character string that matches the second keyword.

第2文字列生成手段26は、第2検索手段25による検索の結果、第2キーワードと一致する文字列がヒットしない場合、図14(c)に示すように、接頭語マスタを参照して、第2キーワードから、接頭語“急性”を取り除いた文字列“インフルエンザ肺炎”を生成する。 If the search by the second search means 25 does not result in a string matching the second keyword, the second string generation means 26 refers to the prefix master and generates the string "influenza pneumonia" by removing the prefix "acute" from the second keyword, as shown in FIG. 14(c).

第3検索手段27は、第2文字列生成手段26が生成した文字列“インフルエンザ肺炎”を第3キーワードとして、傷病名マスタから、第3キーワードと一致する文字列がヒットするかを検索する。第3検索手段27は、検索の結果、第3キーワードと一致する文字列がヒットした場合、ヒットした文字列に対応する傷病名の情報を出力する。具体的には、第3検索手段27は、図14(d)に示すように、傷病名「インフルエンザ肺炎」とICDコード「J110」の情報を出力する。 The third search means 27 uses the character string "influenza pneumonia" generated by the second character string generation means 26 as a third keyword and searches the illness name master for a character string that matches the third keyword. If a character string that matches the third keyword is found as a result of the search, the third search means 27 outputs information on the illness name corresponding to the hit character string. Specifically, the third search means 27 outputs information on the illness name "influenza pneumonia" and the ICD code "J110", as shown in FIG. 14(d).

また、第2の例として、図15(a)に示すように、第1検索手段23は、データ取得手段11が取得し、文字列抽出手段12が抽出した文字列“右真珠性中耳炎の術後”を第1キーワードとして、傷病名マスタから、第1キーワードと一致する文字列がヒットするかを検索する。 As a second example, as shown in FIG. 15(a), the first search means 23 uses the character string "Postoperative period for right pearlescent otitis media" acquired by the data acquisition means 11 and extracted by the character string extraction means 12 as the first keyword, and searches the injury/disease name master for a character string that matches the first keyword.

第1文字列生成手段24は、第1検索手段23による検索の結果、第1キーワードと一致する文字列がヒットしない場合、図15(b)に示すように、接尾語マスタを参照して、第1キーワードから、接尾語“の術後”を取り除いた文字列“右真珠性中耳炎”を生成する。 If the search by the first search means 23 does not result in a string matching the first keyword, the first string generation means 24 refers to the suffix master and generates the string "right pearlescent otitis media" by removing the suffix "post-operative" from the first keyword, as shown in FIG. 15(b).

第2検索手段25は、第1文字列生成手段24が生成した文字列“右真珠性中耳炎”を第2キーワードとして、傷病名マスタから、第2キーワードと一致する文字列がヒットするかを検索する。 The second search means 25 uses the character string "right pearlescent otitis media" generated by the first character string generation means 24 as a second keyword and searches the injury/disease name master for a character string that matches the second keyword.

第2文字列生成手段26は、第2検索手段25による検索の結果、第2キーワードと一致する文字列がヒットしない場合、図15(c)に示すように、接頭語マスタを参照して、第2キーワードから、接頭語“右”を取り除いた文字列“真珠性中耳炎”を生成する。 If the search by the second search means 25 does not result in a string matching the second keyword, the second string generation means 26 refers to the prefix master and generates the string "pearlogenic otitis media" by removing the prefix "right" from the second keyword, as shown in Figure 15 (c).

第3検索手段27は、第2文字列生成手段26が生成した文字列“真珠性中耳炎”を第3キーワードとして、傷病名マスタから、第3キーワードと一致する文字列がヒットするかを検索する。 The third search means 27 uses the character string "pearlogenic otitis media" generated by the second character string generation means 26 as a third keyword and searches the injury/disease name master for a character string that matches the third keyword.

要素文字列抽出手段28は、第3検索手段27による検索の結果、第3キーワードと一致する文字列がヒットしない場合、図15(d)に示すように、要素文字列マスタを参照して、第3キーワードから、要素文字列“真珠”および“中耳”を抽出する。 If the search by the third search means 27 does not find a string that matches the third keyword, the element string extraction means 28 refers to the element string master and extracts the element strings "pearl" and "middle ear" from the third keyword, as shown in FIG. 15(d).

類似文字列抽出手段29は、要素文字列抽出手段28が抽出した要素文字列が複数あるので、第3キーワードの中央に近い位置にある要素文字列“中耳”を、まず、第4キーワードとして、傷病名マスタから、図16(a)に示すような、第4キーワード“中耳”を含む文字列(類似文字列)を抽出する。 Since there are multiple element strings extracted by the element string extraction means 28, the similar string extraction means 29 first selects the element string "middle ear" located near the center of the third keyword as the fourth keyword, and extracts strings (similar strings) containing the fourth keyword "middle ear" from the injury/illness name master, as shown in FIG. 16(a).

図16(b)に示すように、類似度算出手段30は、抽出した類似文字列について、第3キーワード“真珠性中耳炎”との類似度をそれぞれ算出する。 As shown in FIG. 16(b), the similarity calculation means 30 calculates the similarity between each of the extracted similar strings and the third keyword "pearlogenic otitis media."

出力手段31は、類似文字列抽出手段29が抽出した類似文字列のうち、類似度算出手段30が算出した類似度が所定値、例えば、0.8以上である類似文字列に対応する傷病名の情報を出力する。具体的には、出力手段31は、傷病名「真珠腫性中耳炎」とICDコード「H71」、傷病名「急性中耳炎」とICDコード「H669」、および、傷病名「慢性中耳炎」とICDコード「H669」の情報を出力する。なお、出力手段31は、類似度算出手段30が算出した類似度の情報をさらに出力する構成であってもよい。 The output means 31 outputs information on the disease name corresponding to the similar character strings whose similarity calculated by the similarity calculation means 30 is a predetermined value, for example, 0.8 or more, among the similar character strings extracted by the similar character string extraction means 29. Specifically, the output means 31 outputs information on the disease name "cholesteatomatous otitis media" and the ICD code "H71", the disease name "acute otitis media" and the ICD code "H669", and the disease name "chronic otitis media" and the ICD code "H669". The output means 31 may be configured to further output information on the similarity calculated by the similarity calculation means 30.

次に、第2実施形態のテキストデータ解析システム1の動作の一例について、フローチャートを参照しながら説明する。 Next, an example of the operation of the text data analysis system 1 of the second embodiment will be described with reference to a flowchart.

図17に示すように、テキストデータ解析システム1は、文字列抽出ステップ(S120)で抽出した文字列を第1キーワードとして、傷病名マスタから、第1キーワードと一致する文字列がヒットするかを検索する(S231)(第1検索ステップ)。そして、検索の結果、第1キーワードと一致する文字列がヒットした場合(S232,Yes)、ステップS304に進む。 As shown in FIG. 17, the text data analysis system 1 uses the character string extracted in the character string extraction step (S120) as a first keyword and searches the injury/disease name master for a character string that matches the first keyword (S231) (first search step). Then, if the search results in a character string that matches the first keyword (S232, Yes), the process proceeds to step S304.

一方、第1検索ステップにおける検索の結果、第1キーワードと一致する文字列がヒットしない場合(S232,No)、テキストデータ解析システム1は、接尾語マスタを参照して、第1キーワードから、接尾語を取り除いた文字列を生成する(S240)(第1文字列生成ステップ)。 On the other hand, if the search in the first search step does not result in a string that matches the first keyword (S232, No), the text data analysis system 1 refers to the suffix master and generates a string from the first keyword with the suffix removed (S240) (first string generation step).

次に、テキストデータ解析システム1は、第1文字列生成ステップで生成した文字列を第2キーワードとして、傷病名マスタから、第2キーワードと一致する文字列がヒットするかを検索する(S251)(第2検索ステップ)。そして、検索の結果、第2キーワードと一致する文字列がヒットした場合(S252,Yes)、ステップS304に進む。 Next, the text data analysis system 1 uses the character string generated in the first character string generation step as a second keyword and searches the injury/illness name master for a character string that matches the second keyword (S251) (second search step). If the search results in a character string that matches the second keyword (S252, Yes), the system proceeds to step S304.

一方、第2検索ステップにおける検索の結果、第2キーワードと一致する文字列がヒットしない場合(S252,No)、テキストデータ解析システム1は、接頭語マスタを参照して、第2キーワードから、接頭語を取り除いた文字列を生成する(S260)(第2文字列生成ステップ)。 On the other hand, if the search in the second search step does not result in a string that matches the second keyword (S252, No), the text data analysis system 1 refers to the prefix master and generates a string from the second keyword with the prefix removed (S260) (second string generation step).

次に、テキストデータ解析システム1は、第2文字列生成ステップで生成した文字列を第3キーワードとして、傷病名マスタから、第3キーワードと一致する文字列がヒットするかを検索する(S271)(第3検索ステップ)。そして、検索の結果、第3キーワードと一致する文字列がヒットした場合(S272,Yes)、ステップS304に進む。 Next, the text data analysis system 1 uses the character string generated in the second character string generation step as a third keyword and searches the injury/illness name master for a character string that matches the third keyword (S271) (third search step). If the search results in a character string that matches the third keyword (S272, Yes), the system proceeds to step S304.

一方、第3検索ステップにおける検索の結果、第3キーワードと一致する文字列がヒットしない場合(S272,No)、テキストデータ解析システム1は、要素文字列マスタを参照して、第3キーワードから、要素文字列を抽出する(S280)(要素文字列抽出ステップ)。 On the other hand, if the search in the third search step does not yield a string that matches the third keyword (S272, No), the text data analysis system 1 refers to the element string master and extracts an element string from the third keyword (S280) (element string extraction step).

次に、テキストデータ解析システム1は、抽出した要素文字列が複数あるかを判定する(S291)。抽出した要素文字列が複数ある場合(S291,Yes)、テキストデータ解析システム1は、先に類似文字列を抽出する要素文字列、具体的には、第3キーワードの中央に近い位置にある要素文字列を決定し(S292)、決定した要素文字列を第4キーワードとして、傷病名マスタから、第4キーワードを含む文字列(類似文字列)を抽出する(S293)。また、抽出した要素文字列が1つである場合(S291,No)、テキストデータ解析システム1は、当該要素文字列を第4キーワードとして、傷病名マスタから、類似文字列を抽出する(S293)(類似文字列抽出ステップ)。 Next, the text data analysis system 1 determines whether multiple element strings have been extracted (S291). If multiple element strings have been extracted (S291, Yes), the text data analysis system 1 first determines the element string from which to extract a similar string, specifically, the element string located close to the center of the third keyword (S292), and extracts strings containing the fourth keyword (similar strings) from the injury/illness name master using the determined element string as the fourth keyword (S293). If only one element string has been extracted (S291, No), the text data analysis system 1 extracts similar strings from the injury/illness name master using the element string as the fourth keyword (S293) (similar string extraction step).

次に、テキストデータ解析システム1は、抽出した類似文字列と、第3キーワードとの類似度を算出する(S301)(類似度算出ステップ)。次に、テキストデータ解析システム1は、算出した類似度が所定以上である類似文字列があるかを判定する(S302)。類似度が所定以上である類似文字列がない場合(S302,No)、ステップS292に戻って、次の、先に類似文字列を抽出する要素文字列を決定し、以降の処理を実行する。一方、ステップS302において、類似度が所定以上である類似文字列がある場合(Yes)、テキストデータ解析システム1は、類似度が所定以上である類似文字列を抽出し(S303)、ステップS304に進む。 Next, the text data analysis system 1 calculates the similarity between the extracted similar string and the third keyword (S301) (similarity calculation step). Next, the text data analysis system 1 determines whether there is a similar string whose calculated similarity is equal to or greater than a predetermined level (S302). If there is no similar string whose similarity is equal to or greater than a predetermined level (S302, No), the process returns to step S292 to determine the next element string from which a similar string will be extracted first, and executes subsequent processing. On the other hand, if there is a similar string whose similarity is equal to or greater than a predetermined level in step S302 (Yes), the text data analysis system 1 extracts a similar string whose similarity is equal to or greater than a predetermined level (S303) and proceeds to step S304.

ステップS304において、テキストデータ解析システム1は、次の、一の項目を表す一群の文字列があるかを判定する。そして、次の文字列がある場合(S304,Yes)、ステップS120に戻って以降の処理を実行し、次の文字列がない場合(S304,No)、ステップS311に進む。 In step S304, the text data analysis system 1 determines whether there is a next group of character strings representing an item. If there is a next character string (S304, Yes), the process returns to step S120 and executes the subsequent processes. If there is no next character string (S304, No), the process proceeds to step S311.

ステップS311において、テキストデータ解析システム1は、第1検索ステップ、第2検索システムまたは第3検索ステップでヒットした文字列に対応する傷病名の情報を抽出し、抽出した傷病名の情報を出力する(S312)。または、テキストデータ解析システム1は、類似文字列抽出ステップで抽出した類似文字列に対応する少なくとも1つの傷病名の情報を抽出し(S311)、抽出した傷病名の情報を出力する(S312)(出力ステップ)。 In step S311, the text data analysis system 1 extracts information on the injury or illness name corresponding to the character string hit in the first search step, the second search step, or the third search step, and outputs the extracted injury or illness name information (S312). Alternatively, the text data analysis system 1 extracts information on at least one injury or illness name corresponding to the similar character string extracted in the similar character string extraction step (S311), and outputs the extracted injury or illness name information (S312) (output step).

以上の第2実施形態によれば、マスタにキーワードを必要以上に追加していくことなく、テキストデータから傷病名を表す文字列を抽出することができる。また、テキストデータから傷病名を表す文字列を、ICD10対応標準病名マスタに収載された形式に変換して抽出することができる。 According to the second embodiment described above, it is possible to extract character strings representing names of illnesses and injuries from text data without adding more keywords than necessary to the master. In addition, character strings representing names of illnesses and injuries can be extracted from text data by converting them into a format included in the ICD-10 standard illness name master.

また、要素文字列抽出手段28、類似文字列抽出手段29および出力手段31をさらに備えることで、テキストデータから傷病名を表す文字列をより確実に抽出することができる。 In addition, by further providing an element string extraction means 28, a similar string extraction means 29, and an output means 31, it is possible to more reliably extract strings representing the names of injuries and illnesses from text data.

また、類似度算出手段30をさらに備えることで、傷病名の情報を絞り込んで出力することができる。 Furthermore, by further providing a similarity calculation means 30, it is possible to narrow down and output information on injury or illness names.

また、先に類似度を算出した類似文字列の中に類似度が所定以上である類似文字列がある場合に、当該類似文字列に対応する傷病名の情報を出力して処理を終了するので、傷病名の情報を出力するまでの処理量を少なくして処理速度を速くすることができる。 In addition, if there is a similar string whose similarity is equal to or greater than a predetermined level among the similar strings whose similarity has been calculated previously, information on the name of the injury or illness corresponding to that similar string is output and processing ends, so the amount of processing required to output the information on the name of the injury or illness can be reduced, thereby increasing processing speed.

なお、第2実施形態では、傷病名マスタは、ICDコードを記憶していたが、その他のコード、例えば、ICD10対応標準病名マスタの病名管理番号などを記憶するものであってもよい。また、第2実施形態では、傷病名マスタは、ICD10対応標準病名マスタに基づいて作成されていたが、例えば、基本マスタの傷病名マスタなどに基づいて作成してもよい。 In the second embodiment, the injury/illness name master stored ICD codes, but it may also store other codes, such as the disease name management number of the ICD10-compatible standard disease name master. In the second embodiment, the injury/illness name master was created based on the ICD10-compatible standard disease name master, but it may also be created based on the injury/illness name master of the basic master, for example.

以上、実施形態について説明したが、本発明は前記実施形態に限定されることなく、以下に例示するように適宜変形して実施することができる。 Although the embodiment has been described above, the present invention is not limited to the above embodiment, and can be modified as appropriate as shown in the following examples.

例えば、前記実施形態では、抽出された要素文字列が複数ある場合、所定のキーワードの中央に近い位置にある要素文字列について、他の要素文字列よりも先に類似度を算出したが、これに限定されない。例えば、抽出された要素文字列が複数ある場合、抽出された各要素文字列について、それぞれ類似文字列を抽出し、抽出した類似文字列の数が他よりも少ないものについて、先に類似度を算出し、先に類似度を算出した類似文字列の中に類似度が所定以上である文字列がある場合、当該類似文字列に対応する医療行為等の情報を出力して、処理を終了してもよい。また、要素文字列マスタに、要素文字列と、類似度を算出する際の優先順位を表す数字等とを対応させて記憶させておいてもよい。 For example, in the above embodiment, when multiple element strings are extracted, the similarity is calculated for element strings that are closer to the center of a specified keyword before other element strings, but this is not limited to the above. For example, when multiple element strings are extracted, similar strings are extracted for each of the extracted element strings, and the similarity is calculated first for those with fewer extracted similar strings than the others. If there is a string with a similarity equal to or higher than a specified level among the similar strings whose similarity is calculated first, information on the medical procedure or the like corresponding to the similar string is output and the process is terminated. Also, the element string master may store element strings in correspondence with numbers or the like that indicate the priority when calculating the similarity.

また、前記実施形態では、類似度算出手段が、類似文字列抽出手段が抽出した類似文字列と、所定のキーワードとの類似度を算出し、出力手段が、類似度算出手段が算出した類似度が所定以上である類似文字列に対応する情報を出力したが、これに限定されない。例えば、出力手段は、類似文字列抽出手段が抽出した類似文字列の数が所定以下であれば、類似度を算出することなく、類似文字列抽出手段が抽出した類似文字列に対応する情報を出力する構成であってもよい。 In the above embodiment, the similarity calculation means calculates the similarity between the similar strings extracted by the similar string extraction means and a predetermined keyword, and the output means outputs information corresponding to the similar strings whose similarity calculated by the similarity calculation means is equal to or greater than a predetermined value, but this is not limited to the above. For example, the output means may be configured to output information corresponding to the similar strings extracted by the similar string extraction means without calculating the similarity if the number of similar strings extracted by the similar string extraction means is equal to or less than a predetermined value.

また、前記した実施形態および変形例で説明した各要素は、任意に組み合わせて実施してもよい。また、例えば、第1実施形態と第2実施形態を組み合わせて実施する場合、第1実施形態の接頭語マスタと第2実施形態の接頭語マスタは共通のマスタとしてもよいし、第1実施形態の要素文字列マスタと第2実施形態の要素文字列マスタは共通のマスタとしてもよい。 The elements described in the above-mentioned embodiments and variations may be implemented in any combination. For example, when the first embodiment and the second embodiment are implemented in combination, the prefix master of the first embodiment and the prefix master of the second embodiment may be a common master, and the element string master of the first embodiment and the element string master of the second embodiment may be a common master.

1 テキストデータ解析システム
11 データ取得手段
12 文字列抽出手段
13 第1検索手段
14 第1文字列生成手段
15 第2検索手段
16 第2文字列生成手段
17 類似文字列抽出手段
18 第1類似度算出手段
19 出力手段
20 第2類似度算出手段
21 要素文字列算出手段
22 第3類似度算出手段
23 第1検索手段
24 第1文字列生成手段
25 第2検索手段
26 第2文字列生成手段
27 第3検索手段
28 要素文字列抽出手段
29 類似文字列抽出手段
30 類似度算出手段
31 出力手段
REFERENCE SIGNS LIST 1 Text data analysis system 11 Data acquisition means 12 Character string extraction means 13 First search means 14 First character string generation means 15 Second search means 16 Second character string generation means 17 Similar character string extraction means 18 First similarity calculation means 19 Output means 20 Second similarity calculation means 21 Element character string calculation means 22 Third similarity calculation means 23 First search means 24 First character string generation means 25 Second search means 26 Second character string generation means 27 Third search means 28 Element character string extraction means 29 Similar character string extraction means 30 Similarity calculation means 31 Output means

Claims (8)

テキストデータを取得するデータ取得手段と、
データ取得手段が取得したテキストデータから、一の項目を表す一群の文字列を抽出する文字列抽出手段と、
前記文字列抽出手段が抽出した文字列を第1キーワードとして、医療行為または医薬品を表す文字列を記憶する医療行為・医薬品マスタから、前記第1キーワードと一致する文字列がヒットするかを検索する第1検索手段であって、検索の結果、前記第1キーワードと一致する文字列がヒットした場合、ヒットした文字列に対応する医療行為または医薬品の情報を出力する第1検索手段と、
前記第1検索手段による検索の結果、前記第1キーワードと一致する文字列がヒットしない場合、文字列の先頭に付く特定の文字列である接頭語を記憶する接頭語マスタを参照して、前記第1キーワードから、接頭語を取り除いた文字列を生成する第1文字列生成手段と、
前記第1文字列生成手段が生成した文字列を第2キーワードとして、前記医療行為・医薬品マスタから、前記第2キーワードと一致する文字列がヒットするかを検索する第2検索手段であって、検索の結果、前記第2キーワードと一致する文字列がヒットした場合、ヒットした文字列に対応する医療行為または医薬品の情報を出力する第2検索手段と、
前記第2検索手段による検索の結果、前記第2キーワードと一致する文字列がヒットしない場合、前記第2キーワードから、少なくとも、括弧および当該括弧によって囲われた文字列を取り除いた文字列を生成する第2文字列生成手段と、
前記第2文字列生成手段が生成した文字列を第3キーワードとして、前記医療行為・医薬品マスタから、前記第3キーワードを含む文字列を抽出する類似文字列抽出手段と、
前記類似文字列抽出手段が抽出した文字列に対応する少なくとも1つの医療行為または医薬品の情報を出力する出力手段と、を備えることを特徴とするテキストデータ解析システム。
A data acquisition means for acquiring text data;
a character string extraction means for extracting a group of character strings representing one item from the text data acquired by the data acquisition means;
a first search means for searching a medical practice/drug master storing character strings representing medical practices or drugs, using the character string extracted by the character string extraction means as a first keyword, to see if a character string matching the first keyword is found, and for outputting information on the medical practice or drug corresponding to the character string that is found as a result of the search;
a first character string generating means for generating a character string obtained by removing the prefix from the first keyword when a character string matching the first keyword is not found as a result of a search by the first search means, by referring to a prefix master storing a prefix which is a specific character string added to the beginning of a character string;
a second search means for searching the medical practice/drug master for a character string that matches the second keyword, using the character string generated by the first character string generation means as a second keyword, and for outputting information on the medical practice or drug corresponding to the character string that matches the second keyword when the search results in a hit;
a second character string generating means for generating a character string by removing at least parentheses and the character string enclosed by the parentheses from the second keyword when a character string matching the second keyword is not found as a result of the search by the second search means;
a similar character string extracting means for extracting a character string including the third keyword from the medical practice/drug master using the character string generated by the second character string generating means as a third keyword;
and an output unit that outputs information on at least one medical practice or drug corresponding to the character string extracted by the similar character string extraction unit.
前記類似文字列抽出手段が抽出した文字列が複数ある場合、前記類似文字列抽出手段が抽出した文字列と、前記第2キーワードとの類似度をそれぞれ算出する第1類似度算出手段をさらに備え、
前記出力手段は、前記類似文字列抽出手段が抽出した文字列のうち、前記第1類似度算出手段が算出した類似度が所定以上である文字列に対応する医療行為または医薬品の情報を出力することを特徴とする請求項1に記載のテキストデータ解析システム。
a first similarity calculation means for calculating a similarity between each of the character strings extracted by the similar character string extraction means and the second keyword when the similar character string extraction means extracts a plurality of character strings,
The text data analysis system according to claim 1, characterized in that the output means outputs information on medical procedures or medicines corresponding to character strings among the character strings extracted by the similar character string extraction means, the character strings having a similarity calculated by the first similarity calculation means that is equal to or greater than a predetermined value.
前記医療行為・医薬品マスタは、一または複数の医療行為または医薬品を表す文字列と、当該一または複数の医療行為または医薬品を表す文字列に含まれる文字列である索引文字列とを対応させて記憶しており、
テキストデータ解析システムは、前記類似文字列抽出手段が、前記医療行為・医薬品マスタから前記第3キーワードを含む文字列を抽出できなかった場合、前記第3キーワードと、前記索引文字列との類似度を算出する第2類似度算出手段をさらに備え、
前記類似文字列抽出手段は、前記第2類似度算出手段が算出した類似度が所定以上である索引文字列がある場合、前記医療行為・医薬品マスタから、当該索引文字列に対応する文字列を抽出することを特徴とする請求項1または請求項2に記載のテキストデータ解析システム。
The medical practice/drug master stores character strings representing one or more medical practices or drugs in association with index character strings that are character strings included in the character strings representing the one or more medical practices or drugs,
The text data analysis system further includes a second similarity calculation means for calculating a similarity between the third keyword and the index string when the similar string extraction means is unable to extract a string including the third keyword from the medical practice/drug master,
3. The text data analysis system according to claim 1, wherein when there is an index string whose similarity calculated by the second similarity calculation means is equal to or greater than a predetermined value, the similar string extraction means extracts a string corresponding to the index string from the medical procedure/drug master.
前記第2類似度算出手段が算出した類似度が所定以上である索引文字列がない場合、医療行為または医薬品を表す文字列に含まれる特定の文字列である要素文字列を記憶する要素文字列マスタを参照して、前記第2キーワードから、少なくとも1つの要素文字列を抽出する要素文字列抽出手段をさらに備え、
前記類似文字列抽出手段は、前記要素文字列抽出手段が抽出した要素文字列を第4キーワードとして、前記医療行為・医薬品マスタから、前記第4キーワードを含む文字列を抽出することを特徴とする請求項3に記載のテキストデータ解析システム。
and an element string extracting means for extracting at least one element string from the second keyword when there is no index string having a similarity equal to or greater than a predetermined value calculated by the second similarity calculating means, by referring to an element string master storing element strings that are specific character strings included in character strings representing medical procedures or medicines;
The text data analysis system according to claim 3, characterized in that the similar string extraction means extracts strings including the fourth keyword from the medical procedure/drug master, using the element string extracted by the element string extraction means as a fourth keyword.
前記要素文字列抽出手段が抽出した要素文字列が複数ある場合、前記第2キーワードの中央に近い位置にある要素文字列を第4キーワードとして前記類似文字列抽出手段が抽出した文字列について、他の要素文字列よりも先に前記第2キーワードとの類似度を算出する第3類似度算出手段をさらに備え、
前記出力手段は、前記第3類似度算出手段が先に類似度を算出した文字列の中に類似度が所定以上である文字列がある場合、当該文字列に対応する医療行為または医薬品の情報を出力することを特徴とする請求項4に記載のテキストデータ解析システム。
a third similarity calculation means for calculating a similarity between the second keyword and a character string extracted by the similar character string extraction means, the third similarity calculation means being configured to calculate a similarity between the second keyword and a character string extracted by the similar character string extraction means, the fourth keyword being a fourth keyword, before calculating a similarity between the second keyword and other character strings, when a plurality of element character strings are extracted by the element character string extraction means;
The text data analysis system according to claim 4, characterized in that, when a character string whose similarity is equal to or greater than a predetermined value is included among the character strings whose similarity has been previously calculated by the third similarity calculation means, the output means outputs information about a medical procedure or medicine corresponding to the character string.
前記第2文字列生成手段は、前記第2キーワードから、以下の文字列(1)~(5)の少なくとも1つをさらに取り除いた文字列を生成することを特徴とする請求項1から請求項5のいずれか1項に記載のテキストデータ解析システム。
(1)先頭または後尾にある空白
(2)途中にある空白および当該空白以降の文字列
(3)中黒
(4)読点
(5)数字および当該数字の直後にある単位を表す文字列
The text data analysis system according to any one of claims 1 to 5, characterized in that the second character string generation means generates a character string by further removing at least one of the following character strings (1) to (5) from the second keyword.
(1) A space at the beginning or end of a word; (2) A space in the middle of a word and the characters following that space; (3) A dot; (4) A comma; (5) A number and the characters immediately following that number that represent the unit.
コンピュータが備える手段が、
テキストデータを取得するデータ取得ステップと、
データ取得ステップで取得したテキストデータから、一の項目を表す一群の文字列を抽出する文字列抽出ステップと、
前記文字列抽出ステップで抽出した文字列を第1キーワードとして、医療行為または医薬品を表す文字列を記憶する医療行為・医薬品マスタから、前記第1キーワードと一致する文字列がヒットするかを検索する第1検索ステップであって、検索の結果、前記第1キーワードと一致する文字列がヒットした場合、ヒットした文字列に対応する医療行為または医薬品の情報を出力する第1検索ステップと、
前記第1検索ステップにおける検索の結果、前記第1キーワードと一致する文字列がヒットしない場合、文字列の先頭に付く特定の文字列である接頭語を記憶する接頭語マスタを参照して、前記第1キーワードから、接頭語を取り除いた文字列を生成する第1文字列生成ステップと、
前記第1文字列生成ステップで生成した文字列を第2キーワードとして、前記医療行為・医薬品マスタから、前記第2キーワードと一致する文字列がヒットするかを検索する第2検索ステップであって、検索の結果、前記第2キーワードと一致する文字列がヒットした場合、ヒットした文字列に対応する医療行為または医薬品の情報を出力する第2検索ステップと、
前記第2検索ステップにおける検索の結果、前記第2キーワードと一致する文字列がヒットしない場合、前記第2キーワードから、少なくとも、括弧および当該括弧によって囲われた文字列を取り除いた文字列を生成する第2文字列生成ステップと、
前記第2文字列生成ステップで生成した文字列を第3キーワードとして、前記医療行為・医薬品マスタから、前記第3キーワードを含む文字列を抽出する類似文字列抽出ステップと、
前記類似文字列抽出ステップで抽出した文字列に対応する少なくとも1つの医療行為または医薬品の情報を出力する出力ステップと、を実行することを特徴とするテキストデータ解析方法。
The computer includes:
A data acquisition step of acquiring text data;
a character string extraction step of extracting a group of character strings representing one item from the text data acquired in the data acquisition step;
a first search step of searching a medical practice/drug master storing character strings representing medical practices or drugs, using the character string extracted in the character string extraction step as a first keyword, to see if a character string matching the first keyword is found, and outputting information on the medical practice or drug corresponding to the hit character string when a character string matching the first keyword is found as a result of the search;
a first character string generating step of generating a character string obtained by removing the prefix from the first keyword by referring to a prefix master that stores a prefix, which is a specific character string added to the beginning of a character string, when a character string matching the first keyword is not found as a result of the search in the first search step;
a second search step of searching the medical practice/drug master for a character string that matches the second keyword using the character string generated in the first character string generation step as a second keyword, and outputting information on the medical practice or drug corresponding to the hit character string when the character string matches the second keyword as a result of the search;
a second character string generating step of generating a character string by removing at least parentheses and the character string enclosed by the parentheses from the second keyword when a character string matching the second keyword is not found as a result of the search in the second search step;
a similar string extraction step of extracting a string including the third keyword from the medical practice/drug master using the string generated in the second string generation step as a third keyword;
and an output step of outputting information on at least one medical practice or drug corresponding to the character string extracted in the similar character string extraction step.
コンピュータを、
テキストデータを取得するデータ取得手段と、
データ取得手段が取得したテキストデータから、一の項目を表す一群の文字列を抽出する文字列抽出手段と、
前記文字列抽出手段が抽出した文字列を第1キーワードとして、医療行為または医薬品を表す文字列を記憶する医療行為・医薬品マスタから、前記第1キーワードと一致する文字列がヒットするかを検索する第1検索手段であって、検索の結果、前記第1キーワードと一致する文字列がヒットした場合、ヒットした文字列に対応する医療行為または医薬品の情報を出力する第1検索手段と、
前記第1検索手段による検索の結果、前記第1キーワードと一致する文字列がヒットしない場合、文字列の先頭に付く特定の文字列である接頭語を記憶する接頭語マスタを参照して、前記第1キーワードから、接頭語を取り除いた文字列を生成する第1文字列生成手段と、
前記第1文字列生成手段が生成した文字列を第2キーワードとして、前記医療行為・医薬品マスタから、前記第2キーワードと一致する文字列がヒットするかを検索する第2検索手段であって、検索の結果、前記第2キーワードと一致する文字列がヒットした場合、ヒットした文字列に対応する医療行為または医薬品の情報を出力する第2検索手段と、
前記第2検索手段による検索の結果、前記第2キーワードと一致する文字列がヒットしない場合、前記第2キーワードから、少なくとも、括弧および当該括弧によって囲われた文字列を取り除いた文字列を生成する第2文字列生成手段と、
前記第2文字列生成手段が生成した文字列を第3キーワードとして、前記医療行為・医薬品マスタから、前記第3キーワードを含む文字列を抽出する類似文字列抽出手段と、
前記類似文字列抽出手段が抽出した文字列に対応する少なくとも1つの医療行為または医薬品の情報を出力する出力手段として機能させることを特徴とするコンピュータプログラム。
Computer,
A data acquisition means for acquiring text data;
a character string extraction means for extracting a group of character strings representing one item from the text data acquired by the data acquisition means;
a first search means for searching a medical practice/drug master storing character strings representing medical practices or drugs, using the character string extracted by the character string extraction means as a first keyword, to see if a character string matching the first keyword is found, and for outputting information on the medical practice or drug corresponding to the character string that is found as a result of the search;
a first character string generating means for generating a character string obtained by removing the prefix from the first keyword when a character string matching the first keyword is not found as a result of a search by the first search means, by referring to a prefix master storing a prefix which is a specific character string added to the beginning of a character string;
a second search means for searching the medical practice/drug master for a character string that matches the second keyword, using the character string generated by the first character string generation means as a second keyword, and for outputting information on the medical practice or drug corresponding to the character string that matches the second keyword when the search results in a hit;
a second character string generating means for generating a character string by removing at least parentheses and the character string enclosed by the parentheses from the second keyword when a character string matching the second keyword is not found as a result of the search by the second search means;
a similar character string extracting means for extracting a character string including the third keyword from the medical practice/drug master using the character string generated by the second character string generating means as a third keyword;
A computer program that functions as an output means for outputting information on at least one medical practice or drug corresponding to the character string extracted by the similar character string extraction means.
JP2021117846A 2021-07-16 2021-07-16 Text data analysis system, text data analysis method, and computer program Active JP7674176B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2021117846A JP7674176B2 (en) 2021-07-16 2021-07-16 Text data analysis system, text data analysis method, and computer program
JP2025047496A JP2025089415A (en) 2021-07-16 2025-03-21 Text data analysis system, text data analysis method, and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021117846A JP7674176B2 (en) 2021-07-16 2021-07-16 Text data analysis system, text data analysis method, and computer program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2025047496A Division JP2025089415A (en) 2021-07-16 2025-03-21 Text data analysis system, text data analysis method, and computer program

Publications (2)

Publication Number Publication Date
JP2023013559A JP2023013559A (en) 2023-01-26
JP7674176B2 true JP7674176B2 (en) 2025-05-09

Family

ID=85128942

Family Applications (2)

Application Number Title Priority Date Filing Date
JP2021117846A Active JP7674176B2 (en) 2021-07-16 2021-07-16 Text data analysis system, text data analysis method, and computer program
JP2025047496A Pending JP2025089415A (en) 2021-07-16 2025-03-21 Text data analysis system, text data analysis method, and computer program

Family Applications After (1)

Application Number Title Priority Date Filing Date
JP2025047496A Pending JP2025089415A (en) 2021-07-16 2025-03-21 Text data analysis system, text data analysis method, and computer program

Country Status (1)

Country Link
JP (2) JP7674176B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116167352B (en) * 2023-04-03 2023-07-21 联仁健康医疗大数据科技股份有限公司 Data processing method, device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003196383A (en) 2001-12-25 2003-07-11 Pharmarise Kk Receipt examination system
JP2005275510A (en) 2004-03-23 2005-10-06 Oki Electric Ind Co Ltd Character recognition processing method, and method and device for recognition processing of content of medical fee bill
JP2006309585A (en) 2005-04-28 2006-11-09 Mizuho Information & Research Institute Inc Wound and disease name coding method and wound and disease name coding program
JP2008077589A (en) 2006-09-25 2008-04-03 Oki Electric Ind Co Ltd Bill medical computer processing system code acquisition device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4739812B2 (en) * 2005-05-12 2011-08-03 株式会社湯山製作所 Disease name identification device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003196383A (en) 2001-12-25 2003-07-11 Pharmarise Kk Receipt examination system
JP2005275510A (en) 2004-03-23 2005-10-06 Oki Electric Ind Co Ltd Character recognition processing method, and method and device for recognition processing of content of medical fee bill
JP2006309585A (en) 2005-04-28 2006-11-09 Mizuho Information & Research Institute Inc Wound and disease name coding method and wound and disease name coding program
JP2008077589A (en) 2006-09-25 2008-04-03 Oki Electric Ind Co Ltd Bill medical computer processing system code acquisition device

Also Published As

Publication number Publication date
JP2025089415A (en) 2025-06-12
JP2023013559A (en) 2023-01-26

Similar Documents

Publication Publication Date Title
US20090299977A1 (en) Method for Automatic Labeling of Unstructured Data Fragments From Electronic Medical Records
CN113707300A (en) Search intention identification method, device, equipment and medium based on artificial intelligence
CN114913953A (en) Medical entity relationship identification method and device, electronic equipment and storage medium
JP2025089415A (en) Text data analysis system, text data analysis method, and computer program
CN113724830A (en) Medicine taking risk detection method based on artificial intelligence and related equipment
CN111611775A (en) Entity identification model generation method, entity identification method, device and equipment
CN111104481A (en) Method, device and equipment for identifying matching field
CN116757207A (en) ICD automatic coding method based on artificial intelligence and related equipment
JP2007034871A (en) Character input apparatus and character input apparatus program
JP6679954B2 (en) Attribute assignment control program, information processing apparatus, and attribute assignment control method
CN114722825A (en) Label generation method and device, storage medium and computer equipment
JP5392120B2 (en) Information processing apparatus, determination program, and determination method
CN113657114B (en) Method, device, equipment and storage medium for generating disease name code list
CN114385919A (en) Medical content recommendation method, device, equipment and storage medium
CN113139875B (en) Fraud case searching method and device, electronic equipment and storage medium
CN113282761A (en) Department information pushing method, device, equipment and storage medium
US20240070544A1 (en) Model generation apparatus, document generation apparatus, model generation method, document generation method, and program
CN119252449A (en) Diagnosis guidance methods, equipment, media and products based on large models
JP7554151B2 (en) Multi-stage inference device and method
CN113435194B (en) Vocabulary segmentation method and device, terminal equipment and storage medium
JP5513985B2 (en) CHARACTER VECTOR GENERATION DEVICE, CHARACTER VECTOR GENERATION METHOD, PROGRAM, AND COMPUTER-READABLE RECORDING MEDIUM CONTAINING THE PROGRAM
CN111814061B (en) Medicine searching method and system
TWM579318U (en) Text relationship analysis system
TWI736831B (en) Textual relationship analysis method and system
Chen et al. Efficient automatic OCR word validation using word partial format derivation and language model

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20240419

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20250204

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20250321

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: 20250415

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20250424

R150 Certificate of patent or registration of utility model

Ref document number: 7674176

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150