WO2022041729A1 - Medication recommendation method, apparatus and device, and storage medium - Google Patents

Medication recommendation method, apparatus and device, and storage medium Download PDF

Info

Publication number
WO2022041729A1
WO2022041729A1 PCT/CN2021/084656 CN2021084656W WO2022041729A1 WO 2022041729 A1 WO2022041729 A1 WO 2022041729A1 CN 2021084656 W CN2021084656 W CN 2021084656W WO 2022041729 A1 WO2022041729 A1 WO 2022041729A1
Authority
WO
WIPO (PCT)
Prior art keywords
drug
patient
recommendation
consultation
medical
Prior art date
Application number
PCT/CN2021/084656
Other languages
French (fr)
Chinese (zh)
Inventor
侯永帅
王垂新
赵建双
Original Assignee
康键信息技术(深圳)有限公司
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 康键信息技术(深圳)有限公司 filed Critical 康键信息技术(深圳)有限公司
Publication of WO2022041729A1 publication Critical patent/WO2022041729A1/en

Links

Images

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H20/00ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance
    • G16H20/10ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance relating to drugs or medications, e.g. for ensuring correct administration to patients
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H50/00ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics
    • G16H50/70ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics for mining of medical data, e.g. analysing previous cases of other patients

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Biomedical Technology (AREA)
  • Public Health (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Molecular Biology (AREA)
  • Biophysics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Epidemiology (AREA)
  • Primary Health Care (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Databases & Information Systems (AREA)
  • Pathology (AREA)
  • Chemical & Material Sciences (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Medicinal Chemistry (AREA)
  • Medical Treatment And Welfare Office Work (AREA)

Abstract

A medication recommendation method, apparatus and device, and a storage medium, which are applied to the field of smart medical care. The method comprises: inputting a diagnosis result into a drug recommendation model for drug matching, so as to obtain a candidate drug list; performing screening on the basis of the candidate drug list combined with inquiry data, so as to obtain recommended drugs; and finally selecting drugs, that meet conditions, on the basis of the actual condition of a patient, and storing the drugs in an inquiry form for subsequent use and consultation. The automatic drug recommendation is realized, and the phenomenon that a physician prescribes a useless drug due to the false memory of drug properties is also avoided. When issuing a prescription, the physician can quickly determine a corresponding treatment prescription according to recommended drugs in an inquiry form, thereby improving the diagnosis efficiency for physicians.

Description

用药推荐方法、装置、设备及存储介质Recommended methods, devices, equipment and storage media for medication
本申请要求于2020年8月31日提交中国专利局、申请号为202010896613.3、发明名称为“用药推荐方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在申请中。This application claims the priority of the Chinese patent application with the application number 202010896613.3 and the invention title "Method, Apparatus, Equipment and Storage Medium for Recommending Medication", which was filed with the China Patent Office on August 31, 2020, the entire contents of which are incorporated by reference in Applying.
技术领域technical field
本申请涉及数据处理领域,具体涉及一种用药推荐方法、装置、设备及存储介质。The present application relates to the field of data processing, and in particular to a method, device, device and storage medium for recommending medication.
背景技术Background technique
随着人工智能技术的不断发展,该技术在各个领域得到关注和使用,各领域针对不同的应用场景,基于人工智能技术开发了对应的智能系统来帮助人们提升工作效率,在医院的医疗系统也不例外。发明人意识到,由于医院中的药品存储是以万级的数量来计算的,而每次医生在选择满足患者情况和诊断结果的药品时,需要在大规模的药品库中找出满足患者当前治疗需求的药品以及药品的药名、说明、库存情况等信息,对此,为了帮助医生从药品库中查询药品,当前使用的方法是依据药品的关键词在药品管理系统中查询药品相关信息,该查询功能只能依据药品名称或者特定关键词来查询,查询过程全凭医生的经验和记忆,对此在如此大规模的药品库中,医生很难记清楚每个药品的药名、药效、用量等药品信息,医生采用这种依据药名或者关键词查询的方法选药,开药的效率低,开药的针对性和准确性也难以保证。With the continuous development of artificial intelligence technology, this technology has received attention and use in various fields. For different application scenarios, various fields have developed corresponding intelligent systems based on artificial intelligence technology to help people improve work efficiency. The medical system in hospitals also No exception. The inventor realized that since the drug storage in the hospital is calculated in the quantity of tens of thousands, every time a doctor selects a drug that meets the patient's condition and diagnosis result, he needs to find a drug in a large-scale drug library that meets the patient's current situation. The drugs required for treatment and the drug names, descriptions, inventory and other information of the drugs. In this regard, in order to help doctors to query drugs from the drug library, the current method is to query the drug-related information in the drug management system based on the keywords of the drugs. The query function can only be queried based on the drug name or specific keywords. The query process depends on the doctor's experience and memory. In such a large-scale drug library, it is difficult for doctors to remember the drug name and efficacy of each drug. , dosage and other drug information, doctors use this method of drug selection based on drug name or keyword query, the efficiency of prescribing drugs is low, and the pertinence and accuracy of prescribing drugs are difficult to guarantee.
发明内容SUMMARY OF THE INVENTION
本申请的主要目的是为了解决现有的医疗系统中,由于医生查询药品困难,而导致开药效率较低的技术问题。The main purpose of this application is to solve the technical problem of low drug prescribing efficiency due to the difficulty of doctors inquiring about drugs in the existing medical system.
为实现上述目的,本申请第一方面提供了一种用药推荐方法,包括:通过数据爬虫工具从多个医疗数据库中获取历史药方,并采用机器学习算法对所述历史药方进行药性和用药规则的学习,构建药品推荐模型;获取当前患者的问诊单,并提取所述问诊单中的诊断结果和问诊数据;将所述诊断结果输入至所述药品推荐模型中进行药品匹配,生成候选药品列表;根据所述问诊数据对所述候选药品列表中的药品进行排序筛选过滤,得到最终的药品推荐结果;根据接收到的药品使用请求,从所述药品推荐结果中,选择满足患者的药品,并生成药方保存至所述问诊单中。In order to achieve the above purpose, a first aspect of the present application provides a method for recommending medication, including: obtaining historical prescriptions from multiple medical databases through a data crawler tool, and using machine learning algorithms to perform drug properties and medication rules on the historical prescriptions. Learning and constructing a drug recommendation model; obtaining the current patient's medical questionnaire, and extracting the diagnosis results and data from the medical questionnaire; inputting the diagnosis results into the drug recommendation model for drug matching, and generating candidates Drug list; sort and filter the drugs in the candidate drug list according to the consultation data to obtain the final drug recommendation result; according to the received drug use request, select the drug recommendation results that satisfy the patient's requirements Medicines are generated, and the prescriptions are generated and stored in the questionnaire.
本申请第二方面提供了一种用药推荐设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:通过数据爬虫工具从多个医疗数据库中获取历史药方,并采用机器学习算法对所述历史药方进行药性和用药规则的学习,构建药品推荐模型;获取当前患者的问诊单,并提取所述问诊单中的诊断结果和问诊数据;将所述诊断结果输入至所述药品推荐模型中进行药品匹配,生成候选药品列表;根据所述问诊数据对所述候选药品列表中的药品进行排序筛选过滤,得到最终的药品推荐结果;根据接收到的药品使用请求,从所述药品推荐结果中,选择满足患者的药品,并生成药方保存至所述问诊单中。A second aspect of the present application provides a medication recommendation device, comprising a memory, a processor, and computer-readable instructions stored on the memory and executable on the processor, and the processor executes the computer-readable instructions The following steps are implemented when instructing: obtaining historical prescriptions from multiple medical databases through a data crawler tool, and using machine learning algorithms to learn the medicinal properties and medication rules of the historical prescriptions to build a drug recommendation model; obtaining the current patient's consultation form , and extract the diagnosis result and inquiry data in the inquiry form; input the diagnosis result into the drug recommendation model for drug matching, and generate a candidate drug list; The drugs in the list are sorted and filtered to obtain the final drug recommendation result; according to the received drug use request, the drug that satisfies the patient is selected from the drug recommendation result, and the prescription is generated and stored in the consultation sheet.
本申请第三方面提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行如下步骤:通过数据爬虫工具从多个医疗数据库中获取历史药方,并采用机器学习算法对所述历史药方进行药性和用药规则的学习,构建药品推荐模型;获取当前患者的问诊单,并提取所述问诊单中的诊断结果和问诊数据;将所述诊断结果输入至所述药品推荐模型中进行药品匹配,生成候选药品列表;根据所述问诊数据对所述候选药品列表中的药品进行排序筛选过滤,得到最终的药品推荐结果;根据接收到的药品使用请求,从所述药品推荐结果中,选择满足患者的药品,并生成药方保存至所述问诊单中。A third aspect of the present application provides a computer-readable storage medium, where computer instructions are stored in the computer-readable storage medium, and when the computer instructions are executed on a computer, the computer is caused to perform the following steps: Obtain historical prescriptions from multiple medical databases, and use machine learning algorithms to learn the drug properties and medication rules of the historical prescriptions, and build a drug recommendation model; obtain the current patient's medical questionnaire, and extract the diagnosis in the medical questionnaire results and consultation data; input the diagnosis results into the drug recommendation model for drug matching to generate a candidate drug list; sort, filter and filter the drugs in the candidate drug list according to the consultation data to obtain the final According to the received drug use request, the drug that satisfies the patient is selected from the drug recommendation result, and the prescription is generated and stored in the consultation list.
本申请第四方面提供了一种用药推荐装置,包括:训练模块,用于通过数据爬虫工具从多个医疗数据库中获取历史药方,并采用机器学习算法对所述历史药方进行药性和用药规则的学习,构建药品推荐模型;提取模块,用于获取当前患者的问诊单,并提取所述问诊单中的诊断结果和问诊数据;匹配模块,用于将所述诊断结果输入至所述药品推荐模型中进行药品匹配,生成候选药品列表;筛选模块,用于根据所述问诊数据对所述候选药品列表中的药品进行排序筛选过滤,得到最终的药品推荐结果;推荐模块,用于根据接收到的药品使用请求,从所述药品推荐结果中,选择满足患者的药品,并生成药方保存至所述问诊单中。A fourth aspect of the present application provides a medication recommendation device, including: a training module for obtaining historical prescriptions from multiple medical databases through a data crawler tool, and using machine learning algorithms to perform drug properties and medication rules on the historical prescriptions learning and constructing a drug recommendation model; an extraction module, used to obtain the current patient's medical questionnaire, and extract the diagnosis results and data in the medical questionnaire; a matching module, used to input the diagnosis results into the In the drug recommendation model, drug matching is performed to generate a candidate drug list; the screening module is used to sort, filter and filter the drugs in the candidate drug list according to the consultation data to obtain the final drug recommendation result; the recommendation module is used for According to the received drug use request, the drug that satisfies the patient is selected from the drug recommendation result, and the prescription is generated and stored in the medical questionnaire.
本申请提供的技术方案中,通过模型来实现药品推荐,以提高医生的开药效率,具体是通过获取医生对患者的诊断数据,将诊断数据输入到药品推荐模型中,由药品推荐模型基于诊断数据推荐针对性的药品给医生进行选择使用,这样的方式不仅实现了药品的自动推荐,还是避免了医生由于对药品药性的错误记忆而导致无用药品的现象。In the technical solution provided by this application, the model is used to implement drug recommendation to improve the efficiency of doctors in prescribing drugs. Specifically, the diagnostic data of the patient is obtained by the doctor, and the diagnostic data is input into the drug recommendation model, and the drug recommendation model is based on the diagnosis. The data recommends targeted medicines for doctors to choose and use. This method not only realizes the automatic recommendation of medicines, but also avoids the phenomenon of useless medicines caused by doctors' false memory of the medicinal properties of medicines.
附图说明Description of drawings
图1为本申请实施例中用药推荐方法的第一个实施例示意图;Fig. 1 is the schematic diagram of the first embodiment of the method for recommending medication in the embodiment of the application;
图2为本申请实施例中用药推荐方法的第二个实施例示意图;2 is a schematic diagram of the second embodiment of the method for recommending medication in the embodiment of the application;
图3为本申请实施例中用药推荐方法的第三个实施例示意图;3 is a schematic diagram of the third embodiment of the method for recommending medication in the embodiment of the application;
图4为本申请实施例中用药推荐方法的第四个实施例示意图;4 is a schematic diagram of the fourth embodiment of the method for recommending medication in the embodiment of the application;
图5为本申请实施例中用药推荐装置的一个实施例示意图;FIG. 5 is a schematic diagram of an embodiment of the medication recommendation device in the embodiment of the present application;
图6为本申请实施例中用药推荐装置的另一个实施例示意图;6 is a schematic diagram of another embodiment of the medication recommendation device in the embodiment of the present application;
图7为本申请实施例中用药推荐设备的一个实施例示意图。FIG. 7 is a schematic diagram of an embodiment of a medication recommendation device in an embodiment of the present application.
具体实施方式detailed description
针对于现有技术中的缺陷,本申请提出了一种具有自学习能力的智能用药推荐方法,在医生开药过程中,能够根据患者的个人信息、主诉内容、医生患者的问诊对话内容、医生的诊断结果等信息自动为医生推荐适合患者当前用药需求候选药品;本方法通过为医生推荐候选药品,帮助医生减少药品查询过程消耗的时间,提高医生开药的效率;该方法在推荐药品时,从患者个人信息、患者主诉、问诊对话和医生诊断结果中抽取问诊单的特征信息,用事先训练好的智能推药模型推荐候选药品,推荐的药品考虑了患者的个人信息、主诉内容和诊断结果,与患者当前就诊场景更匹配,帮助医生提高了开药的针对性;同时由于推药方法在推荐候选药品时考虑了患者的年龄、性别、孕育、过敏、禁忌等情况,帮助医生避免开出与患者情况有冲突的药品,提高了医生开药的安全性。In view of the defects in the prior art, the present application proposes an intelligent drug recommendation method with self-learning ability. The information such as the doctor's diagnosis result automatically recommends candidate drugs for the doctor that are suitable for the patient's current medication needs; this method helps the doctor reduce the time consumed by the drug query process by recommending the candidate drug for the doctor, and improves the efficiency of the doctor's prescription; this method recommends drugs. , extract the characteristic information of the consultation form from the patient's personal information, the patient's chief complaint, the consultation dialogue and the doctor's diagnosis result, and use the pre-trained intelligent drug recommendation model to recommend candidate drugs. The recommended drugs consider the patient's personal information and chief complaint content. and diagnosis results, which are more compatible with the patient’s current treatment scene, helping doctors to improve the pertinence of prescribing drugs; at the same time, because the drug push method considers the patient’s age, gender, pregnancy, allergies, contraindications, etc., when recommending candidate drugs, helping doctors Avoid prescribing medicines that conflict with the patient's situation, improving the safety of physicians prescribing medicines.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”或“具有”及其任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of this application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances so that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" or "having" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed steps or units, but may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.
为便于理解,下面对本申请实施例的具体流程进行描述,请参阅图1,本申请实施例中用药推荐方法的第一个实施例包括:For ease of understanding, the specific flow of the embodiment of the present application will be described below. Please refer to FIG. 1 . The first embodiment of the method for recommending medication in the embodiment of the present application includes:
101、通过数据爬虫工具从多个医疗数据库中获取历史药方,并采用机器学习算法对历史药方进行药性和用药规则的学习,构建药品推荐模型;101. Obtain historical prescriptions from multiple medical databases through data crawler tools, and use machine learning algorithms to learn the medicinal properties and medication rules of historical prescriptions, and build a drug recommendation model;
该步骤中,具体可以通过数据爬虫工具从多个医疗数据库中获取医生的历史问诊数据,并从所述历史问诊数据中提取历史药方,构建推药数据集;In this step, the doctor's historical consultation data can be obtained from multiple medical databases through a data crawler tool, and historical prescriptions can be extracted from the historical consultation data to construct a medicine push data set;
提取所述推药数据集中的药品以及药品对应的药品特征信息,生成训练集;extracting the medicines in the medicine pushing data set and the medicine characteristic information corresponding to the medicines to generate a training set;
利用机器学习算法对所述训练集中的药品以及药品对应的药品特征信息进行深度学习,构建药品推荐模型。A machine learning algorithm is used to perform deep learning on the medicines in the training set and the medicine characteristic information corresponding to the medicines to construct a medicine recommendation model.
在实际应用中,该药品推荐模型具体可以采用XGBOOST算法、神经网络深度学习算法来实现构建,具体的实现步骤包括:In practical applications, the drug recommendation model can be constructed by using the XGBOOST algorithm and the neural network deep learning algorithm. The specific implementation steps include:
首先通过诊断单的填写模板来提取药方,例如通过模板中规定的药方填写字段来识别历史问诊数据中诊断单的药方填写字段,基于药方填写字段与内容位置的对应关系来读取信息,生成历史药方;First, the prescription is extracted through the filling template of the diagnosis sheet. For example, the prescription filling field specified in the template is used to identify the prescription filling field of the diagnosis sheet in the historical consultation data, and the information is read based on the corresponding relationship between the filling field and the content location of the prescription, and the generated historical prescriptions;
然后,采用TextRank关键词提取算法提取药方中的关键词,例如药品名称以及药品中的用法和用量;在实际应用中,具体在提取药品名称时,还可以结合药品的知识图谱,基于知识图谱中记载的实体对历史药方中的药品名称的实体命名进行比对识别,从而提取出药品的名称;Then, the TextRank keyword extraction algorithm is used to extract the keywords in the prescription, such as the name of the drug and the usage and dosage in the drug; in practical applications, when extracting the name of the drug, the knowledge map of the drug can also be combined, based on the knowledge map of the drug. The recorded entity compares and identifies the entity name of the drug name in the historical prescription, so as to extract the name of the drug;
进一步的,基于关键词提取算法提取历史药方对应的病种以及该病案的患者的发病症状,形成病症特征库;Further, based on the keyword extraction algorithm, the disease type corresponding to the historical prescription and the onset symptoms of the patient in the medical record are extracted to form a disease feature database;
构建病症特征库与药品之间的对应关系;Construct the corresponding relationship between the disease feature library and the drug;
基于对应关系,利用机器学习算法对所述对应关系进行学习,得到药品推荐模型。Based on the corresponding relationship, a machine learning algorithm is used to learn the corresponding relationship to obtain a drug recommendation model.
进一步的,在进行对应关系的学习时,具体包括:Further, when learning the corresponding relationship, it specifically includes:
将所述对应关系划分为训练数据集和验证数据集;dividing the corresponding relationship into a training data set and a verification data set;
基于训练数据集,利用机器学习算法,如神经网络深度学习算法进行药品和用药规则的学习,得到药品推荐模型;Based on the training data set, use machine learning algorithms, such as neural network deep learning algorithms, to learn drugs and medication rules, and obtain a drug recommendation model;
利用验证数据集对药品推荐模型进行验证,在验证通过后,输出最终的药品推荐模型;若不通过,则将训练数据集和验证数据集打乱,重新分配进行再次训练。Use the verification data set to verify the drug recommendation model. After the verification is passed, the final drug recommendation model is output; if it fails, the training data set and the verification data set are scrambled and reassigned for retraining.
102、获取当前患者的问诊单,并提取问诊单中的诊断结果和问诊数据;102. Obtain the medical questionnaire of the current patient, and extract the diagnosis results and data of the medical consultation in the medical questionnaire;
在该步骤中,该问诊单指的是患者在就医时由医生开具的疾病诊断回执单,而该问诊单中至少包括患者信息、问诊数据和诊断结果,而患者信息包括患者的性别、年龄、过敏史、禁忌和怀孕情况(女性患者)等信息,问诊数据为患者在就医时医生向用户询问的一些症状信息、患病历史,以及患者主动向医生陈述的发病信息等等。In this step, the consultation sheet refers to a disease diagnosis receipt issued by a doctor when the patient seeks a doctor, and the consultation sheet includes at least patient information, consultation data and diagnosis results, and the patient information includes the gender of the patient , age, allergy history, contraindications and pregnancy (female patients) and other information, the consultation data is some symptom information, disease history that the doctor asks the user when the patient seeks a doctor, and the disease information that the patient voluntarily stated to the doctor, etc.
在实际应用中,在获取问诊单时,具体是通过监控每个医生的开药界面上的操作信息和输入信息,并基于监控到的信息生成对应的问诊单,然后再对问诊单中的内容进行指定提取。In practical applications, when obtaining a medical consultation form, it monitors the operation information and input information on each doctor's prescription interface, generates a corresponding medical consultation form based on the monitored information, and then analyzes the medical consultation form. The content in the specified extraction.
当然,在提取问诊单中的诊断结果和问诊数据时,除了上述提供的从问诊单中提取诊断结果和问诊数据的方式之外,还可以是通过对医生的开药页面进行监控提取,具体是通过监控特定项目上的信息,例如,只对诊断结果项目的位置上的输入框进行监控识别和对医生提问项目的位置上的输入框进行监控识别。Of course, when extracting the diagnostic results and data from the medical questionnaire, in addition to the above-mentioned methods for extracting the diagnostic results and data from the medical questionnaire, it is also possible to monitor the doctor's prescription page. The extraction is specifically performed by monitoring information on specific items, for example, monitoring and identifying only the input box at the position of the diagnosis result item and monitoring and identifying the input box at the position of the doctor's question item.
在实际应用中,对于问诊数据的提取,除了从问诊单中获取到之外,还可以是实时提取,具体是从医生与患者之间的对话来提取得到。In practical applications, the extraction of medical consultation data can be extracted in real time, specifically from the dialogue between the doctor and the patient, in addition to the data obtained from the medical consultation sheet.
103、将诊断结果输入至药品推荐模型中进行药品匹配,生成候选药品列表;103. Input the diagnosis result into the drug recommendation model for drug matching, and generate a list of candidate drugs;
在本实施例中,在进行药品匹配时,所述药品推荐模型根据输入的诊断结果从药品存储库中查询其药理或者药性符合所述诊断结果使用的所有药品,然后再逐一计算所述查询的药品与所述诊断结果之间的匹配度,基于匹配度来选择匹配度大于预设百分比的药品作为药品推荐模型的数据结构,生成候选药品列表。In this embodiment, when performing drug matching, the drug recommendation model searches from the drug repository according to the input diagnosis result for all the drugs whose pharmacology or properties conform to the diagnosis result, and then calculates the queried drugs one by one. The matching degree between the drug and the diagnosis result, based on the matching degree, select the drug whose matching degree is greater than the preset percentage as the data structure of the drug recommendation model, and generate the candidate drug list.
在实际应用中,在生成候选药品列表的同时还包括对选择的药品按照匹配度从大到小进行排序,以便于后续对药品的选择使用。In practical applications, while generating the candidate drug list, it also includes sorting the selected drugs according to the matching degree from large to small, so as to facilitate the subsequent selection and use of the drugs.
进一步的,该步骤在生成候选药品列表之后,还包括对候选药品列表中的每个药品的药性进行提取,并判断每个药性在使用过程的危险等级,然后根据危险等级进行标注,以便后续对药品的使用选择。Further, after generating the candidate drug list, this step also includes extracting the medicinal properties of each drug in the candidate drug list, and judging the risk level of each medicinal property during use, and then marking according to the risk level for subsequent identification. Choice of use of medicines.
在实际应用中,由于药品存在多种药性,而每种药性都可能对应一种或者多种疾病的治疗使用,而所述危险等级的判定具体是根据当前的诊断结果来确定,也即是说根据具体的疾病来确定其化学反应对人体产生的影响程度,从而确定对应的危险等级。In practical applications, since there are multiple properties of medicines, each property may be used for the treatment of one or more diseases, and the determination of the risk level is specifically determined according to the current diagnosis results, that is to say According to the specific disease, the degree of influence of its chemical reaction on the human body is determined, so as to determine the corresponding risk level.
104、根据问诊数据对候选药品列表中的药品进行排序筛选过滤,得到最终的药品推荐结果;104. Sort, filter and filter the drugs in the candidate drug list according to the consultation data to obtain a final drug recommendation result;
在实际应用中,该步骤可以通过提取问诊数据中的特征词组来匹配筛选实现,具体可以采用模型来实现筛选过滤,例如:使用药品匹配模型,药品匹配模型包括各种药品特征的映射关系,该映射关系可以但不限于为从各种药品的药名、药品编号、使用对象、用法、功能、用量和禁忌等信息中提取的药品特征词组成,通过映射关系可以唯一确定对应的药品。通过药品匹配模型可以实现特征词组与药品特征的特征匹配,其可以根据输入的特征词组进行药品匹配,输出匹配的药品。具体的,药品匹配模型可以为基于贝叶斯算法得到的朴素贝叶斯概率模型,其可以根据输入的特征词组统计各药品的概率,并输出概率最高的药品。In practical applications, this step can be achieved by extracting characteristic phrases in the consultation data for matching and filtering. Specifically, a model can be used to achieve screening and filtering. For example, a drug matching model is used. The drug matching model includes the mapping relationship of various drug features. The mapping relationship can be, but is not limited to, drug feature words extracted from information such as drug names, drug numbers, objects of use, usage, functions, dosages, and contraindications of various drugs, and the corresponding drug can be uniquely determined through the mapping relationship. The drug matching model can realize the feature matching between the feature phrase and the drug feature, which can perform drug matching according to the input feature phrase, and output the matched drug. Specifically, the drug matching model may be a naive Bayesian probability model obtained based on a Bayesian algorithm, which can count the probability of each drug according to the input feature phrase, and output the drug with the highest probability.
在另一实施例中,药品匹配模型也可以基于人工神经网络算法得到的药品匹配神经网络,药品匹配神经网络可以为多层架构,如可以按照特征词组的优先级划分进行神经网络层结构划分,例如,若特征词组分为高、中和低三个优先级别,则药品匹配神经网络可以对应设置为三层隐藏层的结构,以与特征词组的优先级划分对应。In another embodiment, the drug matching model may also be based on a drug matching neural network obtained by an artificial neural network algorithm, and the drug matching neural network may be a multi-layer structure. For example, if the feature word group is divided into three priority levels, high, medium and low, the drug matching neural network can be correspondingly set to a structure of three hidden layers to correspond to the priority division of the feature word group.
在具体实现时,各医院职能科室对应的药品匹配模型可能不同,此时,可以先查询与医院职能科室对应的药品匹配模型后,再将特征词组输入进行特征匹配,得到相应输出结果。In the specific implementation, the drug matching models corresponding to the functional departments of each hospital may be different. In this case, the drug matching model corresponding to the functional departments of the hospital can be queried first, and then the feature phrases are input for feature matching to obtain the corresponding output results.
105、根据接收到的药品使用请求,从药品推荐结果中,选择满足患者的药品,并生成药方保存至问诊单中。105. According to the received drug use request, from the drug recommendation result, select a drug that satisfies the patient, and generate a prescription and save it in the consultation list.
在本实施例中,将得到的药品推荐结果在医生的开药界面中的药方位置上展示出来,医生通过对展示出来的药品进行选择,基于选择的药品生成药方,并添加到问诊单中,以便于后续的药品打包。In this embodiment, the obtained drug recommendation result is displayed on the prescription position in the doctor's prescription interface. The doctor selects the displayed drug, generates a prescription based on the selected drug, and adds it to the consultation list , so as to facilitate subsequent drug packaging.
在实际应用中,该步骤的药方还可以理解是处方药单,也可以是非处方药单,而处方药单是医生为患者开具的药品清单,为医生对当前患者用药的书面文件,是药剂人员调配药品的依据,处方推荐可以为作为医生开具处方时的参考,特别地,若处方推荐中药品清单合适,则可以直接作为处方。药品匹配模型根据输入的特征词组进行特征匹配后,输出的匹配结果中包括各种药品,根据该药品生成药品清单,得到处方推荐,具体的这里的推荐的处方可能存在多张,而在推荐给医生后,医生根据实际情况选择其中的一张,最后系统自动保存至问诊单中进行记录。In practical applications, the prescription in this step can also be understood as a prescription drug list or an over-the-counter drug list, and the prescription drug list is a list of drugs issued by a doctor for a patient, a written document for the doctor to administer the current patient, and is used by pharmacists to allocate drugs. Based on this, the prescription recommendation can be used as a reference when a doctor prescribes a prescription. In particular, if the list of drugs in the prescription recommendation is appropriate, it can be used directly as a prescription. After the drug matching model performs feature matching according to the input feature phrases, the output matching results include various drugs, generate a drug list according to the drugs, and obtain prescription recommendations. After the doctor, the doctor selects one of them according to the actual situation, and finally the system automatically saves it in the consultation list for recording.
通过对上述方法的实施例,通过获取医生对患者的诊断数据,将诊断数据输入到药品推荐模型中,由药品推荐模型基于诊断数据推荐针对性的药品给医生进行选择使用,这样的方式不仅实现了药品的自动推荐,还避免了医生由于对药品药性的错误记忆而导致无用药品的现象;Through the embodiment of the above method, by obtaining the diagnosis data of the doctor on the patient, the diagnosis data is input into the drug recommendation model, and the drug recommendation model recommends targeted drugs for the doctor to select and use based on the diagnosis data. This method not only realizes The automatic recommendation of medicines also avoids the phenomenon of useless medicines caused by doctors' false memory of the medicinal properties of medicines;
进一步的,推荐的药品可供医生开具处方时参考,使处方生成过程无需医生综合考虑多方面因素进行繁杂的操作,简化了医疗处方的生成过程,同时避免了因医生失误导致处方反复修改的问题,提高了处方的生成效率。Further, the recommended medicines can be used for reference by doctors when prescribing, so that the prescription generation process does not require doctors to comprehensively consider various factors to perform complicated operations, simplifies the generation process of medical prescriptions, and avoids the problem of repeated prescription revisions due to doctor errors. , improving the efficiency of prescription generation.
请参阅图2,本申请实施例中用药推荐方法的第二个实施例包括:Please refer to Fig. 2, the second embodiment of the method for recommending medication in the embodiment of the present application includes:
201、利用文字识别算法提取问诊单中所记载的患者信息、就诊科室、主诉信息、医生患者间的问诊对话内容和医生的诊断结果;201. Use a text recognition algorithm to extract the patient information, visiting department, chief complaint information, the content of the consultation dialogue between the doctor and the patient, and the doctor's diagnosis result recorded in the consultation sheet;
该步骤中,在使用文字识别算法进行识别时,具体可以通过获取问诊单的模板来实现,在模板中设置有多个字段信息,不同的字段信息设置对应的设置填写内容,如命名字段对应填写名字,身份字段对应填写身份证号,诊断内容字段对应填写的是诊断数据和问诊数据。In this step, when using the text recognition algorithm for recognition, it can be realized by obtaining the template of the medical consultation form. The template is set with multiple field information, and the corresponding setting and filling content of different field information settings, such as the corresponding name field Fill in the name, the identity field corresponds to the ID number, and the diagnosis content field corresponds to the diagnosis data and consultation data.
基于模板中的字段信息,利用文字识别算法识别出问诊单中的每个字段,然后根据字段与填写内容的对应位置关系,提取出问诊单中对应的字段的属性值,基于属性值确定患者信息、就诊科室、主诉信息、医生与患者之间的问诊对话内容和诊断结果。Based on the field information in the template, use the text recognition algorithm to identify each field in the medical consultation form, and then extract the attribute value of the corresponding field in the medical consultation form according to the corresponding position relationship between the field and the filled content, and determine based on the attribute value. Patient information, visiting department, chief complaint information, the content of the consultation dialogue between the doctor and the patient, and the diagnosis result.
在实际应用中,对于医生与患者之间的问诊对话内容和诊断结果具体可以是利用病症知识图谱来进行匹配识别,具体是提取对应字段信息上的其中多个关键特征,基于关键特征与疾病知识图谱中记载的实体进行配对识别,然后根据识别的结果,选择出对应的病症,并根据病症与字段信息对应的内容继续比对,从而得到最后的结果,例如问诊对话内容,首先从其中提取出几个关键特征后,从知识图谱中匹配出与几个关键特征组成的病种的所有病症,然后基于所有病症返回问诊对话内容进行全文匹配,从而得到有效的完整问诊对话内容。In practical applications, the content of the consultation dialogue and the diagnosis results between the doctor and the patient can be matched and identified by using the disease knowledge graph, specifically, multiple key features in the corresponding field information are extracted, and the key features and the disease The entities recorded in the knowledge graph are paired and identified, and then the corresponding symptoms are selected according to the identification results, and the content corresponding to the symptoms and the field information is continued to compare, so as to obtain the final result, such as the content of the consultation dialogue, first from which After extracting several key features, match all the symptoms of the disease with several key features from the knowledge graph, and then return the content of the consultation dialogue based on all symptoms for full-text matching, so as to obtain an effective and complete consultation dialogue content.
202、按照预设的优先级划分条件,将所述患者信息、就诊科室、主诉信息、医生患者间的问诊对话内容和医生的诊断结果进行优先级划分,得到查询条件列表;202. According to a preset priority classification condition, prioritize the patient information, the visiting department, the chief complaint information, the content of the consultation dialogue between the doctor and the patient, and the doctor's diagnosis result, to obtain a query condition list;
203、将查询条件列表中除了诊断结果之外的条件,按照优先级级别进行组合,得到特征词组;203. Combine the conditions except the diagnosis result in the query condition list according to the priority level to obtain the characteristic phrase;
在实际应用中,在提取问诊单中的条件信息是,具体可以基于TextRank关键词提取算法对问诊单中记载的信息进行病理特征词提取。例如,若问诊单中包括“受凉导致感冒,引发发烧,出现头痛、鼻塞”的表述,则可以将动词“导致”、“引发”、“出现”等冗余数据剔除,提取出“受凉”、“感冒”、“发烧”、“头痛”和“鼻塞”等核心的病理特征词,基于该病例特征词确定问诊单中的诊断结果,通过从问诊中提取病理特征词,可以有效清除冗余、无用数据,以便确保后续药方生成的处理效率及准确度。In practical applications, the conditional information in the medical questionnaire is extracted, specifically, pathological feature word extraction can be performed on the information recorded in the medical questionnaire based on the TextRank keyword extraction algorithm. For example, if the medical questionnaire includes the expression "cold leads to a cold, fever, headache, and nasal congestion", the verbs "cause", "cause", "appear" and other redundant data can be eliminated, and "catch cold" can be extracted. , "cold", "fever", "headache" and "nasal congestion" and other core pathological feature words, based on the case feature words to determine the diagnosis results in the inquiry form, and by extracting the pathological feature words from the inquiry, it can be effectively eliminated Redundant and useless data in order to ensure the processing efficiency and accuracy of subsequent prescription generation.
进一步的,在提取问诊单中的问诊数据,即是医生提问或者患者陈述的内容,例如“是否在本医院就医或者手术”、“是否存在过敏史或者有没有药物过敏”,通过TextRank关键词提取算法将其中的“本医院就医”、“手术”、“过敏史”和“过敏药”提取出来,甚至还包括患者信息、就诊科室、诊断医师等等关键词提取处理,按照预设的关键词对这些关键词进行排序组合得到特征词组。Further, the inquiry data in the extraction inquiry form is the content of the doctor's question or the patient's statement, such as "whether I am in this hospital for medical treatment or surgery", "whether there is an allergy history or whether there is any drug allergy", through the TextRank key The word extraction algorithm extracts the words "medical treatment in this hospital", "surgery", "allergic history" and "allergic medicine", and even includes keyword extraction processing such as patient information, visiting department, diagnosis doctor, etc., according to the preset Keywords Sort and combine these keywords to obtain characteristic phrases.
204、将诊断结果输入至所述药品推荐模型中进行药品匹配,生成候选药品列表;204. Input the diagnosis result into the drug recommendation model to perform drug matching, and generate a candidate drug list;
该步骤中,具体的所述药品推荐模型根据输入的诊断结果从药品存储库中查询其药理或者药性符合所述诊断结果使用的所有药品,然后再逐一计算所述查询的药品与所述诊断结果之间的匹配度,基于匹配度来选择匹配度大于预设百分比的药品作为药品推荐模型的数据结构,生成候选药品列表。In this step, the specific drug recommendation model inquires from the drug repository according to the input diagnosis results all the drugs whose pharmacology or properties conform to the diagnosis results, and then calculates the queried drugs and the diagnosis results one by one. The matching degree between the two, and based on the matching degree, a drug with a matching degree greater than a preset percentage is selected as the data structure of the drug recommendation model, and a candidate drug list is generated.
205、根据特征词组中条件对候选药品列表进行筛选过滤,剔除药品不满足所述患者信息的药品,得到新药品序列;205. Screening and filtering the candidate drug list according to the conditions in the characteristic phrase, eliminating the drugs whose drugs do not meet the patient information, and obtaining a new drug sequence;
在该步骤中,首先根据所述特征词组中的条件按照优先级对所述候选药品列表进行筛选过滤,具体是筛选掉其药品中对于诊断结果的匹配度不是很高的一部分,然后再对筛选后的候选药品按照患者信息来做进一步的剔除,剔除药理不满足患者使用药品,留下最后的药品形成新药品序列,这时的药品序列是以患者信息为最高优先级,特征词组中的条件 为次优先级进行排序得到。In this step, the candidate drug list is firstly screened and filtered according to the priority according to the conditions in the characteristic phrase, specifically, the part of the drug that does not have a high matching degree for the diagnosis result is screened out, and then the screening is performed. The candidate drugs are further eliminated according to the patient information, and the drugs that do not satisfy the patient's use in pharmacology are eliminated, and the last drug is left to form a new drug sequence. At this time, the drug sequence takes the patient information as the highest priority, and the condition in the characteristic phrase Sort by priority.
206、根据药品与问诊单的匹配情况对新药品序列中的每个药品进行打分排序,得到候选药品序列;206. Score and sort each drug in the new drug sequence according to the matching situation between the drug and the medical questionnaire to obtain a candidate drug sequence;
在实际应用中,所述匹配情况指的是药品的使用对象、用法、功能、用量和禁忌等信息与患者的具体信息的匹配程度,其中所述患者信息包括年龄、性别、孕育情况、过敏史和禁忌,通过比对新药品序列中的药品的使用对象、用法、功能、用量和禁忌与患者信息中的年龄、性别、孕育情况、过敏史和禁忌的匹配度是否满足预设阈值,将该匹配的情况输入到打分模型中进行推荐预测的评分,得到评分分值,基于评分分值对新药品序列进行排序,得到候选药品序列。In practical applications, the matching situation refers to the degree of matching between information such as the object of use, usage, function, dosage, and contraindication of the drug and the specific information of the patient, wherein the patient information includes age, gender, pregnancy status, and allergy history. and contraindications, by comparing whether the matching degree of the object of use, usage, function, dosage and contraindication of the drug in the new drug sequence and the age, sex, pregnancy, allergy history and contraindication in the patient information meets the preset threshold, the The matching situation is input into the scoring model for the scoring of recommendation prediction, and the scoring score is obtained, and the new drug sequence is sorted based on the scoring score to obtain the candidate drug sequence.
207、从候选药品序列中选择排序靠前的N个药品,得到药品推荐结果;207. Select the top N drugs from the candidate drug sequence to obtain a drug recommendation result;
在实际应用中,在根据排序选择药品时,还包括检测每个药品的库存数量是否足够,若不足够,则排序下一位的药品进行补全,直到补全N个药品的数量,当然在选择N个药品的同时,除了考虑库存量之外,还包括判断该药品是否有特别的药理副作用,比如存在抗生素较高或者是止疼成分比较高,进一步的,还可以是根据优先选择中成药为主,西药次之的规则选择,最后输出满足上述所有条件的药品。In practical applications, when selecting drugs according to the ranking, it also includes checking whether the inventory quantity of each drug is sufficient. If it is not enough, the next drug in the ranking will be filled until the number of N drugs is completed. Of course, in When selecting N drugs, in addition to considering the inventory, it also includes judging whether the drug has special pharmacological side effects, such as the presence of high antibiotics or high pain-relieving ingredients, and further, it can also be based on preference. The rule is selected as the main, followed by Western medicine, and finally the medicines that meet all the above conditions are output.
208、根据接收到的药品使用请求,从药品推荐结果中,选择满足患者的药品,并生成药方保存至问诊单中。208. According to the received drug use request, from the drug recommendation result, select a drug that satisfies the patient, and generate a prescription and save it in the consultation list.
本实施例中,选择合适患者的药品具体可以通过药品匹配模型来实现,具体的药品匹配模型是基于人工神经网络算法得到的药品匹配模型,药品匹配模型可以为多层架构,如可以按照特征词组的优先级划分进行模型结构划分,例如,若特征词组分为高、中和低三个优先级别,则药品匹配神经网络可以对应设置为三层隐藏层的结构,以与特征词组的优先级划分对应。In this embodiment, the selection of suitable medicines for patients can be specifically realized through a medicine matching model, and the specific medicine matching model is a medicine matching model obtained based on an artificial neural network algorithm. For example, if the feature word group is divided into three priority levels: high, medium and low, the drug matching neural network can be set to a three-layer hidden layer structure corresponding to the priority of the feature word group. correspond.
在具体实现时,各患者对应的药品匹配模型可能不同,此时,可以先查询与患者的病种对应的药品匹配模型后,再将提取到的病种的特征词组输入进行特征匹配,得到相应输出结果,而模型匹配药品的范围是上述提供的药品推荐结果这个范围进行匹配。In the specific implementation, the drug matching model corresponding to each patient may be different. In this case, the drug matching model corresponding to the disease type of the patient can be queried first, and then the characteristic phrases of the extracted disease type can be input for feature matching to obtain the corresponding The output results, and the range of the model matching drugs is the range of the drug recommendation results provided above to be matched.
通过对上述方法的实施,通过将诊断结果输入到药品推荐模型中进行药品的匹配,得到候选药品列表,基于候选药品列表结合问诊数据进行筛选,得到推荐药品,最后基于患者的实际情况来选择符合条件的药品,并保存在问诊单中,以供后续的使用查阅;这样的方式不仅实现了药品的自动推荐,还是避免了医生由于对药品药性的错误记忆而导致无用药品的现象,在开具药方时,医师根据问诊单中的推荐药品可以快速确定对应的治疗药方,从而提高了医师的诊断效率。Through the implementation of the above method, by inputting the diagnosis results into the drug recommendation model for drug matching, a list of candidate drugs is obtained, and based on the candidate drug list combined with the consultation data, the recommended drugs are obtained, and finally the selection is based on the actual situation of the patient. Eligible medicines are stored in the consultation sheet for subsequent use and reference; this method not only realizes the automatic recommendation of medicines, but also avoids the phenomenon of useless medicines caused by doctors' false memory of the medicinal properties of medicines. When prescribing a prescription, the physician can quickly determine the corresponding treatment prescription according to the recommended drugs in the consultation sheet, thereby improving the physician's diagnostic efficiency.
请参阅图3,本申请实施例中用药推荐方法的第三个实施例包括:Please refer to FIG. 3 , the third embodiment of the method for recommending medication in the embodiments of the present application includes:
301、获取当前患者的问诊单,并提取问诊单中的诊断结果和问诊数据;301. Obtain the medical consultation form of the current patient, and extract the diagnosis results and medical consultation data in the medical consultation document;
302、将诊断结果输入至所述药品推荐模型中进行药品匹配,生成候选药品列表;302. Input the diagnosis result into the drug recommendation model to perform drug matching, and generate a candidate drug list;
303、根据患者信息从医院诊断系统的诊断数据库中,查询对应的患者诊断历史记录;303. Query the corresponding patient diagnosis history record from the diagnosis database of the hospital diagnosis system according to the patient information;
304、根据诊断历史记录,确定患者的过敏史和禁忌信息;304. Determine the patient's allergy history and contraindication information according to the history of diagnosis;
在本实施例中,过敏源的筛选主要是保证开具药方的安全性和保证患者的生命安全,具体是通过历史诊断记录中查询。In this embodiment, the screening of allergens is mainly to ensure the safety of prescribing the prescription and the safety of the patient's life, specifically through the query in historical diagnosis records.
具体地,通过识别诊断数据中是否存在在本医院就医的特征词来启动该诊断数据库查询就医历史的流程,若识别到诊断数据中存在在本医院就医的特征词时,则根据患者的身份证信息或者是医保卡信息从医院系统的诊断数据库中查询出对应的就医历史记录,从就医历史记录中提取出医生的备注项的信息,基于该备注项的信息中确定对应的注意事项,即是过敏史和禁忌信息,甚至还可以是历史就医的诊断结果,基于该查询结果对候选药品 序列做进一步的筛选。Specifically, the process of inquiring the history of medical treatment in the diagnosis database is started by identifying whether there is a characteristic word for medical treatment in the hospital in the diagnosis data. Information or medical insurance card information to query the corresponding medical history records from the diagnosis database of the hospital system, extract the information of the doctor's remarks from the medical history records, and determine the corresponding precautions based on the information of the remarks, that is, Allergy history and contraindication information, or even the diagnosis results of historical medical treatment, further screening of candidate drug sequences based on the query results.
305、根据特征词组中条件对所述候选药品列表进行筛选过滤,剔除药品不满足患者信息的药品,得到新药品序列;305. Screen and filter the candidate drug list according to the conditions in the characteristic phrase, and remove the drugs whose drugs do not meet the patient information to obtain a new drug sequence;
306、根据过敏史和禁忌信息对新药品序列进行二次筛选过滤,得到第二药品序列;306. Perform secondary screening and filtering on the new drug sequence according to the allergy history and contraindication information to obtain a second drug sequence;
307、利用预置的打分模型对第二药品序列中的每个药品的匹配度进行打分,并按照分数从高到低进行排序,得到候选药品序列;307. Use a preset scoring model to score the matching degree of each drug in the second drug sequence, and sort the scores from high to low to obtain a candidate drug sequence;
具体地,从就医历史记录中提取病理特征词和从患者的个人档案信息中提取的档案特征词涉及的类别众多,各类别的特征词对于最终药方生成的影响权重并不同,如对于年龄未满18岁的未成年患者而言,针对成人的药物并不适用,此时患者的年龄对于药方药品的影响大,优先级高;又如对于性别为男的患者而言,则针对妇科疾病的药物也不适用,此时患者的性别优先级高;再如,患者病症部位为胃时,则针对大脑或肾等器官的药物也不适用作为对应的药方药品。本实施例中,将病理特征词和档案特征词进行优先级划分,可以区分出各类别特征词在药方生成时的所占权重,以提高药品匹配时的效率和准确度。Specifically, the pathological feature words extracted from the medical history records and the file feature words extracted from the patient's personal file information involve many categories, and the influence weights of each category of feature words on the final prescription generation are different. For 18-year-old minor patients, the drugs for adults are not suitable. At this time, the age of the patient has a great influence on the prescription drugs, and the priority is high; for patients whose gender is male, the drugs for gynecological diseases are used. It is also not applicable. At this time, the gender of the patient has a high priority; for another example, when the patient's disease site is the stomach, the drugs targeting the brain or kidneys and other organs are also not suitable as the corresponding prescription drugs. In this embodiment, the pathological feature words and the archive feature words are prioritized to distinguish the weights of each category of feature words when generating prescriptions, so as to improve the efficiency and accuracy of drug matching.
在其中一个实施例中,病理特征词还可以包括疾病部位、疾病名称和症状表现,档案特征词包括病患对象、过敏源和既往病史;将病理特征词和档案特征词进行优先级划分的步骤包括:将病患对象和过敏源划分为高优先级的特征词;将疾病部位和疾病名称划分为中优先级的特征词;将症状表现和既往病史划分为低优先级的特征词。In one embodiment, the pathological feature word may further include disease location, disease name and symptom expression, and the file feature word includes patient object, allergen and past medical history; the step of prioritizing the pathological feature word and the file feature word Including: classifying patient objects and allergens as high-priority feature words; classifying disease location and disease name as medium-priority feature words; classifying symptoms and past medical history as low-priority feature words.
308、从所述候选药品序列中选择排序靠前的N个药品,得到药品推荐结果;308. Select the top N drugs from the candidate drug sequence to obtain a drug recommendation result;
309、根据接收到的药品使用请求,从药品推荐结果中,选择满足患者的药品,并生成药方保存至问诊单中。309. According to the received drug use request, from the drug recommendation result, select a drug that satisfies the patient, and generate a prescription and save it in the consultation list.
综上,本实施例的方法通过自动从医生历史用药数据中学习药品推荐模型;从患者个人信息、主诉、问诊对话内容、医生的诊断结果等问诊信息中抽取问诊单特征信息,用已训练的药品推荐模型为医生推荐候选药品;药品推荐过程考虑患者的性别、年龄、禁忌、怀孕等信息,避免推荐的药品与患者自身情况冲突;该药品推荐方法实现了药品的自动推荐,帮助医生提高了开方效率,同时还能够帮助医生避免由于对药品药性的错误记忆而导致的用药失误的情况,提高用药的准确率性和安全性。To sum up, the method of this embodiment automatically learns the drug recommendation model from the doctor's historical medication data; extracts the feature information of the consultation sheet from the consultation information such as the patient's personal information, the main complaint, the content of the consultation dialogue, the doctor's diagnosis result, etc. The trained drug recommendation model recommends candidate drugs for doctors; the drug recommendation process considers the patient's gender, age, contraindication, pregnancy and other information to avoid conflicts between the recommended drugs and the patient's own situation; the drug recommendation method realizes the automatic recommendation of drugs, helping Doctors improve the efficiency of prescribing, and at the same time help doctors avoid medication errors caused by false memory of drug properties, and improve the accuracy and safety of medication.
在实际应用中,除了通过上述的方式来实现向医师推荐药品之外,还可以通过训练出模型的方式进行推荐,模型的方式更加能快速进行识别,请参阅图4,本申请实施例中用药推荐方法的第四个实施例包括:In practical applications, in addition to recommending medicines to physicians through the above methods, recommendations can also be made by training a model, which can be more quickly identified. Please refer to FIG. 4 . A fourth embodiment of the recommended method includes:
401、通过数据爬虫工具从多个医疗数据库中获取医生的历史问诊数据,并从所述历史问诊数据中提取历史药方,构建推药数据集;401. Acquire historical consultation data of doctors from multiple medical databases through a data crawler tool, and extract historical prescriptions from the historical consultation data to construct a medicine push data set;
402、提取所述推药数据集中的药品以及药品对应的药品特征信息,生成训练集;402. Extract the medicines in the medicine pushing data set and the medicine characteristic information corresponding to the medicines to generate a training set;
403、利用机器学习算法对所述训练集中的药品以及药品对应的药品特征信息进行深度学习,构建药品推荐模型;403. Use a machine learning algorithm to perform deep learning on the medicines in the training set and the medicine characteristic information corresponding to the medicines, to construct a medicine recommendation model;
在本实施例中,历史问诊数据可以医生的手写诊断单,也可以是利用该方法得到问诊单,具体是可以通过以下步骤实现:In the present embodiment, the historical consultation data can be a doctor's handwritten diagnosis sheet, or it can be obtained by using this method. Specifically, it can be realized through the following steps:
步骤1,特征抽取:从问诊的患者信息(包含年龄,性别,孕育情况,过敏史,禁忌)、就诊科室、主诉内容、问诊对话内容、医生的诊断结果等信息中抽取问诊的特征;Step 1, feature extraction: extract the features of the consultation from the information of the patient (including age, gender, pregnancy, allergy history, contraindications), the department of consultation, the content of the main complaint, the content of the consultation dialogue, and the doctor's diagnosis result. ;
步骤2,模型训练:模型的输入是问诊的特征,预测目标是针对目标问诊单的候选药品。模型训练模块的任务是用历史问诊单及其开药结果作为训练数据,采用机器学习算法训练构建预测候选药品的药品推荐模型;Step 2, model training: the input of the model is the characteristics of the consultation, and the prediction target is the candidate drug for the target consultation sheet. The task of the model training module is to use the historical inquiries and prescription results as training data, and use machine learning algorithms to train and build a drug recommendation model that predicts candidate drugs;
进一步的,测试药品推荐模型是否达到指定上线条件,如果达到指定上线条件,上线得到的药品推荐模型;Further, test whether the drug recommendation model meets the specified online conditions, and if the specified online conditions are met, the drug recommendation model obtained online;
然后,基于上线的药品推荐模型进行药品推荐:对给定的问诊数据,使用训练好的药品预测模型预测适合该问诊单的候选药品列表;具体的通过该收集输入问诊单的患者信息(包含年龄,性别,孕育情况,过敏史,禁忌)、就诊科室、主诉信息、医生患者间的问诊对话内容、医生的诊断结果等信息,使用步骤1的方法抽取问诊单的特征;然后将特诊输入到药品推荐模型中进行预测,得到预测结果。Then, perform drug recommendation based on the online drug recommendation model: for the given consultation data, use the trained drug prediction model to predict the list of candidate drugs suitable for the consultation form; specifically, collect the patient information input into the consultation form through the collection (including age, gender, pregnancy status, allergy history, contraindications), visiting department, chief complaint information, the content of the consultation dialogue between doctors and patients, the doctor's diagnosis results and other information, use the method of step 1 to extract the characteristics of the consultation sheet; then The special diagnosis is input into the drug recommendation model for prediction, and the prediction result is obtained.
进一步的,候选药品筛选及排序:根据问诊单中患者的年龄、性别、孕育情况、过敏史、禁忌等条件,筛选药品推荐模块推荐的候选药品,然后根据药品与问诊单的匹配情况对筛选后的候选药品打分排序;Further, candidate drug screening and sorting: according to the patient's age, gender, pregnancy, allergy history, contraindications and other conditions in the medical questionnaire, the candidate drugs recommended by the drug recommendation module are screened, and then based on the matching of the drug and the medical questionnaire Scoring and sorting of candidate drugs after screening;
最后,根据打分结果推送给医生进行药品的使用选择,并记录医生对推荐结果的使用情况。Finally, according to the scoring results, it is pushed to the doctor to choose the use of drugs, and the doctor's use of the recommended results is recorded.
404、获取当前患者的问诊单,并提取问诊单中的诊断结果和问诊数据;404. Obtain the medical consultation form of the current patient, and extract the diagnosis results and medical consultation data in the medical consultation document;
405、将诊断结果输入至所述药品推荐模型中进行药品匹配,生成候选药品列表;405. Input the diagnosis result into the drug recommendation model to perform drug matching, and generate a candidate drug list;
406、根据问诊数据对候选药品列表中的药品进行排序筛选过滤,得到最终的药品推荐结果;406. Sort and filter the drugs in the candidate drug list according to the consultation data to obtain a final drug recommendation result;
407、根据接收到的药品使用请求,从药品推荐结果中,选择满足患者的药品,并生成药方保存至问诊单中;407. According to the received drug use request, select the drug that satisfies the patient from the drug recommendation result, and generate a prescription and save it in the consultation list;
408、随机抽取若干张问诊单,并提取每张问诊单中对药品推荐结果的使用情况;408. Randomly select several medical questionnaires, and extract the usage of the drug recommendation results in each medical questionnaire;
409、若使用情况不满足预设的采纳率,读取所有未被采用药品推荐结果中的药品的问诊单,并基于问诊单对药品推荐模型进行重新训练,得到迭代优化后的药品推荐模型。409. If the usage does not meet the preset adoption rate, read the consultation sheets of all the drugs that are not used in the drug recommendation results, and retrain the drug recommendation model based on the consultation sheets to obtain iteratively optimized drug recommendations Model.
在本实施例中,对于药物的使用可能会根据患者阶段性的医疗会有不同的真多结果和药方的配比,对此为了实时适应药品的推荐,还包括:In this embodiment, the use of medicines may have different results and prescription ratios according to the staged medical treatment of patients. In order to adapt to the recommendation of medicines in real time, it also includes:
随机抽取若干张所述问诊单,并提取每张所述问诊单中对所述药品推荐结果的使用情况;Randomly select a number of the medical questionnaires, and extract the usage of the drug recommendation results in each of the medical questionnaires;
若所述使用情况不满足预设的采纳率,读取所有未被采用药品推荐结果中的药品的问诊单,并基于所述问诊单对所述药品推荐模型进行重新训练,得到迭代优化后的药品推荐模型。If the usage does not meet the preset adoption rate, read the questionnaires of all the medicines that are not used in the drug recommendation results, and retrain the drug recommendation model based on the questionnaires to obtain iterative optimization The post-drug recommendation model.
即是记录每次医生药品推荐模型推荐的药品的使用情况,如果医生没有采纳推荐结果,保存问诊单信息,当保存的未采纳的问诊单数量达到给定的条件时,重新执行阶段一进行模型训练,迭代优化药品推荐模型。That is to record the use of the drugs recommended by the doctor's drug recommendation model each time. If the doctor does not accept the recommended results, save the information of the medical questionnaire. When the number of saved non-adopted medical questionnaires reaches the given condition, re-execute Phase 1. Perform model training and iteratively optimize the drug recommendation model.
通过上述方案的实施,在医生开药过程中,能够根据患者的个人信息、主诉内容、医生患者的问诊对话内容、医生的诊断结果等信息自动为医生推荐适合患者当前用药需求候选药品;本方法通过为医生推荐候选药品,帮助医生减少药品查询过程消耗的时间,提高医生开药的效率;该方法在推荐药品时,从患者个人信息、患者主诉、问诊对话和医生诊断结果中抽取问诊单的特征信息,用事先训练好的智能推药模型推荐候选药品,推荐的药品考虑了患者的个人信息、主诉内容和诊断结果,与患者当前就诊场景更匹配,帮助医生提高了开药的针对性;同时由于推药方法在推荐候选药品时考虑了患者的年龄、性别、孕育、过敏、禁忌等情况,帮助医生避免开出与患者情况有冲突的药品,提高了医生开药的安全性。Through the implementation of the above scheme, in the process of prescribing the medicine, the doctor can automatically recommend candidate medicines suitable for the patient's current medication needs according to the patient's personal information, the content of the main complaint, the content of the doctor's patient's consultation dialogue, the doctor's diagnosis result and other information; Method By recommending candidate drugs for doctors, it helps doctors to reduce the time consumed by the drug query process and improve the efficiency of doctors' prescribing. When recommending drugs, the method extracts questions from patients' personal information, patient complaints, consultation dialogues and doctors' diagnosis results. The feature information of the medical bill, and the pre-trained intelligent drug recommendation model is used to recommend candidate drugs. The recommended drugs take into account the patient's personal information, main complaints and diagnosis results, which are more suitable for the patient's current medical treatment scene, helping doctors to improve their prescribing experience. Targeted; at the same time, because the drug push method considers the patient's age, gender, pregnancy, allergies, contraindications, etc. when recommending candidate drugs, it helps doctors avoid prescribing drugs that conflict with the patient's situation, and improves the safety of doctors prescribing drugs .
上面对本申请实施例中用药推荐方法进行了描述,下面对本申请实施例中用药推荐装置进行描述,请参阅图5,本申请实施例中用药推荐装置的第一个实施例包括:The method for recommending medication in the embodiment of the present application has been described above. The following describes the device for recommending medication in the embodiment of the present application. Please refer to FIG. 5 . The first embodiment of the device for recommending medication in the embodiment of the present application includes:
训练模块501,用于通过数据爬虫工具从多个医疗数据库中获取历史药方,并采用机器学习算法对所述历史药方进行药性和用药规则的学习,构建药品推荐模型;The training module 501 is used for obtaining historical prescriptions from multiple medical databases through a data crawler tool, and using a machine learning algorithm to learn the properties and medication rules of the historical prescriptions to build a drug recommendation model;
提取模块502,用于获取当前患者的问诊单,并提取所述问诊单中的诊断结果和问诊 数据;The extraction module 502 is used to obtain the medical questionnaire of the current patient, and extract the diagnosis result and the medical consultation data in the medical questionnaire;
匹配模块503,用于将所述诊断结果输入至所述药品推荐模型中进行药品匹配,生成候选药品列表;A matching module 503, configured to input the diagnosis result into the drug recommendation model for drug matching, and generate a candidate drug list;
筛选模块504,用于根据所述问诊数据对所述候选药品列表中的药品进行排序筛选过滤,得到最终的药品推荐结果;The screening module 504 is configured to sort, filter and filter the drugs in the candidate drug list according to the consultation data to obtain a final drug recommendation result;
推荐模块505,用于根据接收到的药品使用请求,从所述药品推荐结果中,选择满足患者的药品,并生成药方保存至所述问诊单中。The recommendation module 505 is configured to select a medicine that satisfies the patient from the medicine recommendation result according to the received medicine use request, and generate a prescription and save it in the consultation list.
在本实施例中,所述用药推荐装置运行上述用药推荐方法,该方法通过将诊断结果输入到药品推荐模型中进行药品的匹配,得到候选药品列表,基于候选药品列表结合问诊数据进行筛选,得到推荐药品,最后基于患者的实际情况来选择符合条件的药品,并保存在问诊单中,以供后续的使用查阅;这样的方式不仅实现了药品的自动推荐,还是避免了医生由于对药品药性的错误记忆而导致无用药品的现象,在开具药方时,医师根据问诊单中的推荐药品可以快速确定对应的治疗药方,从而提高了医师的诊断效率。In this embodiment, the drug recommendation device runs the above-mentioned drug recommendation method, the method performs drug matching by inputting the diagnosis result into the drug recommendation model, obtains a list of candidate drugs, and performs screening based on the candidate drug list combined with the consultation data, Obtain recommended drugs, and finally select qualified drugs based on the actual situation of the patient, and save them in the consultation sheet for subsequent use and review; this method not only realizes the automatic recommendation of drugs, but also avoids doctors When prescribing a prescription, the physician can quickly determine the corresponding treatment prescription according to the recommended drug in the consultation sheet, thereby improving the physician's diagnosis efficiency.
请参阅图6,本申请实施例中用药推荐装置的第二个实施例,该用药推荐装置具体包括:Please refer to FIG. 6 , the second embodiment of the medication recommendation device in the embodiment of the present application, the medication recommendation device specifically includes:
训练模块501,用于通过数据爬虫工具从多个医疗数据库中获取历史药方,并采用机器学习算法对所述历史药方进行药性和用药规则的学习,构建药品推荐模型;The training module 501 is used for obtaining historical prescriptions from multiple medical databases through a data crawler tool, and using a machine learning algorithm to learn the properties and medication rules of the historical prescriptions to build a drug recommendation model;
提取模块502,用于获取当前患者的问诊单,并提取所述问诊单中的诊断结果和问诊数据;The extraction module 502 is used to obtain the medical questionnaire of the current patient, and extract the diagnosis result and the medical consultation data in the medical questionnaire;
匹配模块503,用于将所述诊断结果输入至所述药品推荐模型中进行药品匹配,生成候选药品列表;A matching module 503, configured to input the diagnosis result into the drug recommendation model for drug matching, and generate a candidate drug list;
筛选模块504,用于根据所述问诊数据对所述候选药品列表中的药品进行排序筛选过滤,得到最终的药品推荐结果;The screening module 504 is configured to sort, filter and filter the drugs in the candidate drug list according to the consultation data to obtain a final drug recommendation result;
推荐模块505,用于根据接收到的药品使用请求,从所述药品推荐结果中,选择满足患者的药品,并生成药方保存至所述问诊单中。The recommendation module 505 is configured to select a medicine that satisfies the patient from the medicine recommendation result according to the received medicine use request, and generate a prescription and save it in the consultation list.
可选地,所述提取模块502包括:Optionally, the extraction module 502 includes:
识别单元5021,用于利用文字识别算法提取所述问诊单中所记载的患者信息、就诊科室、主诉信息、医生患者间的问诊对话内容和医生的诊断结果;The identification unit 5021 is used for extracting the patient information, the visiting department, the chief complaint information, the content of the consultation dialogue between the doctor and the patient, and the doctor's diagnosis result recorded in the consultation sheet by using a character recognition algorithm;
配置单元5022,用于按照预设的优先级划分条件,将所述患者信息、就诊科室、主诉信息、医生患者间的问诊对话内容和医生的诊断结果进行优先级划分,得到查询条件列表;The configuration unit 5022 is configured to prioritize the patient information, the visiting department, the chief complaint information, the content of the consultation dialogue between the doctor and the patient, and the doctor's diagnosis result according to the preset priority classification conditions to obtain a query condition list;
组合单元5023,用于将所述查询条件列表中除了所述诊断结果之外的条件,按照优先级级别进行组合,得到所述特征词组。The combining unit 5023 is configured to combine the conditions in the query condition list except the diagnosis result according to the priority level to obtain the characteristic phrase.
可选地,所述筛选模块504包括:Optionally, the screening module 504 includes:
过滤单元5041,用于根据所述特征词组中条件对所述候选药品列表进行筛选过滤,剔除药品不满足所述患者信息的药品,得到新药品序列;A filtering unit 5041, configured to screen and filter the candidate drug list according to the conditions in the characteristic phrase, and remove the drugs whose drugs do not meet the patient information to obtain a new drug sequence;
排序单元5042,用于根据药品与问诊单的匹配情况对所述新药品序列中的每个药品进行打分排序,得到候选药品序列;a sorting unit 5042, configured to score and sort each drug in the new drug sequence according to the matching situation between the drug and the medical questionnaire, to obtain a candidate drug sequence;
选择单元5043,用于从所述候选药品序列中选择排序靠前的N个药品,得到药品推荐结果。The selecting unit 5043 is configured to select the top N drugs from the candidate drug sequence to obtain a drug recommendation result.
其中,所述用药推荐装置还包括查询模块506,其具体用于:Wherein, the drug recommendation device further includes a query module 506, which is specifically used for:
根据所述患者信息从医院诊断系统的诊断数据库中,查询对应的患者诊断历史记录;According to the patient information, query the corresponding patient diagnosis history record from the diagnosis database of the hospital diagnosis system;
根据所述诊断历史记录,确定所述患者的过敏史和禁忌信息。Based on the diagnostic history, the patient's allergy history and contraindication information are determined.
可选地,所述排序单元5042具体用于:Optionally, the sorting unit 5042 is specifically used for:
根据所述过敏史和禁忌信息对所述新药品序列进行二次筛选过滤,得到第二药品序列;Perform secondary screening and filtering on the new drug sequence according to the allergy history and contraindication information to obtain a second drug sequence;
利用预置的打分模型对所述第二药品序列中的每个药品的匹配度进行打分,并按照分数从高到低进行排序,得到候选药品序列。The matching degree of each drug in the second drug sequence is scored using a preset scoring model, and the scores are sorted from high to low to obtain a candidate drug sequence.
在本实施例中,所述训练模块501,其具体用于:In this embodiment, the training module 501 is specifically used for:
通过数据爬虫工具从多个医疗数据库中获取医生的历史问诊数据,并从所述历史问诊数据中提取历史药方,构建推药数据集;Obtain the doctor's historical consultation data from multiple medical databases through a data crawler tool, and extract historical prescriptions from the historical consultation data to construct a drug push data set;
提取所述推药数据集中的药品以及药品对应的药品特征信息,生成训练集;extracting the medicines in the medicine pushing data set and the medicine characteristic information corresponding to the medicines to generate a training set;
利用机器学习算法对所述训练集中的药品以及药品对应的药品特征信息进行深度学习,构建药品推荐模型。A machine learning algorithm is used to perform deep learning on the medicines in the training set and the medicine characteristic information corresponding to the medicines to construct a medicine recommendation model.
在本实施例中,所述用药推荐装置还包括优化模块507,其具体用于:In this embodiment, the medication recommendation device further includes an optimization module 507, which is specifically used for:
随机抽取若干张所述问诊单,并提取每张所述问诊单中对所述药品推荐结果的使用情况;Randomly select a number of the medical questionnaires, and extract the usage of the drug recommendation results in each of the medical questionnaires;
若所述使用情况不满足预设的采纳率,读取所有未被采用药品推荐结果中的药品的问诊单,并基于所述问诊单对所述药品推荐模型进行重新训练,得到迭代优化后的药品推荐模型。If the usage does not meet the preset adoption rate, read the questionnaires of all the medicines that are not used in the drug recommendation results, and retrain the drug recommendation model based on the questionnaires to obtain iterative optimization The post-drug recommendation model.
上面图5和图6从模块化功能实体的角度对本申请实施例中的用药推荐装置进行详细描述,下面从硬件处理的角度对本申请实施例中用药推荐设备进行详细描述,而用药推荐装置可以插件的形式设置与所述用药推荐设备实现为医师在诊断完成后,为医师快速提供相关药品的推荐。5 and 6 above describe in detail the medication recommendation device in the embodiment of the present application from the perspective of a modular functional entity, and the medication recommendation device in the embodiment of the present application is described in detail below from the perspective of hardware processing, and the medication recommendation device can be plug-in. The form setting and the drug recommendation device realize that after the diagnosis is completed, the doctor can quickly provide the doctor with the recommendation of related drugs.
图7是本申请实施例提供的一种用药推荐设备的结构示意图,该用药推荐设备700可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上处理器(central processing units,CPU)710(例如,一个或一个以上处理器)和存储器720,一个或一个以上存储应用程序733或数据732的存储介质730(例如一个或一个以上海量存储设备)。其中,存储器720和存储介质730可以是短暂存储或持久存储。存储在存储介质730的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对用药推荐设备700中的一系列指令操作。更进一步地,处理器710可以设置为与存储介质730通信,在用药推荐设备700上执行存储介质730中的一系列指令操作,以实现上述用药推荐方法的步骤。FIG. 7 is a schematic structural diagram of a medication recommendation device provided by an embodiment of the present application. The medication recommendation device 700 may vary greatly due to different configurations or performances, and may include one or more processors (central processing units, CPUs) ) 710 (eg, one or more processors) and memory 720, one or more storage media 730 (eg, one or more mass storage devices) that store applications 733 or data 732. Among them, the memory 720 and the storage medium 730 may be short-term storage or persistent storage. The program stored in the storage medium 730 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the medication recommendation device 700 . Further, the processor 710 may be configured to communicate with the storage medium 730, and execute a series of instruction operations in the storage medium 730 on the medication recommendation device 700 to implement the steps of the above-mentioned medication recommendation method.
用药推荐设备700还可以包括一个或一个以上电源740,一个或一个以上有线或无线网络接口750,一个或一个以上输入输出接口760,和/或,一个或一个以上操作系统731,例如Windows Serve,Mac OS X,Unix,Linux,FreeBSD等等。本领域技术人员可以理解,图7示出的用药推荐设备结构并不构成对本申请提供的用药推荐设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。 Medication recommendation device 700 may also include one or more power supplies 740, one or more wired or wireless network interfaces 750, one or more input and output interfaces 760, and/or, one or more operating systems 731, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD and more. Those skilled in the art can understand that the structure of the medication recommendation device shown in FIG. 7 does not constitute a limitation on the medication recommendation device provided by the present application, and may include more or less components than those shown in the figure, or combine some components, or different component layout.
本申请所指区块链是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。区块链(Blockchain),本质上是一个去中心化的数据库,是一串使用密码学方法相关联产生的数据块,每一个数据块中包含了一批次网络交易的信息,用于验证其信息的有效性(防伪)和生成下一个区块。区块链可以包括区块链底层平台、平台产品服务层以及应用服务层等。The blockchain referred to in this application is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. Blockchain, essentially a decentralized database, is a series of data blocks associated with cryptographic methods. Each data block contains a batch of network transaction information to verify its Validity of information (anti-counterfeiting) and generation of the next block. The blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.
本申请还提供一种用药推荐设备,包括:存储器和至少一个处理器,所述存储器中存储有指令,所述存储器和所述至少一个处理器通过线路互连;所述至少一个处理器调用所述存储器中的所述指令,以使得所述用药推荐设备执行上述用药推荐方法中的步骤。The present application also provides a medication recommendation device, comprising: a memory and at least one processor, wherein instructions are stored in the memory, and the memory and the at least one processor are interconnected through a line; the at least one processor calls the The instructions in the memory are used to cause the medication recommendation device to perform the steps in the above-mentioned medication recommendation method.
本申请还提供一种计算机可读存储介质,该计算机可读存储介质可以为非易失性计算机可读存储介质,也可以为易失性计算机可读存储介质。计算机可读存储介质存储有计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行如下步骤:The present application also provides a computer-readable storage medium, and the computer-readable storage medium may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on the computer, the computer performs the following steps:
通过数据爬虫工具从多个医疗数据库中获取历史药方,并采用机器学习算法对所述历史药方进行药性和用药规则的学习,构建药品推荐模型;Obtain historical prescriptions from multiple medical databases through data crawler tools, and use machine learning algorithms to learn the medicinal properties and medication rules of the historical prescriptions to build a drug recommendation model;
获取当前患者的问诊单,并提取所述问诊单中的诊断结果和问诊数据;Obtain the medical questionnaire of the current patient, and extract the diagnosis result and the medical consultation data in the medical questionnaire;
将所述诊断结果输入至所述药品推荐模型中进行药品匹配,生成候选药品列表;Inputting the diagnosis result into the drug recommendation model for drug matching, and generating a candidate drug list;
根据所述问诊数据对所述候选药品列表中的药品进行排序筛选过滤,得到最终的药品推荐结果;Sorting, screening and filtering the drugs in the candidate drug list according to the consultation data to obtain a final drug recommendation result;
根据接收到的药品使用请求,从所述药品推荐结果中,选择满足患者的药品,并生成药方保存至所述问诊单中。According to the received drug use request, the drug that satisfies the patient is selected from the drug recommendation result, and the prescription is generated and stored in the medical questionnaire.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system, device and unit described above may refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes .
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: The technical solutions recorded in the embodiments are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions in the embodiments of the present application.

Claims (20)

  1. 一种用药推荐方法,包括:A method of drug recommendation that includes:
    通过数据爬虫工具从多个医疗数据库中获取历史药方,并采用机器学习算法对所述历史药方进行药性和用药规则的学习,构建药品推荐模型;Obtain historical prescriptions from multiple medical databases through data crawler tools, and use machine learning algorithms to learn the medicinal properties and medication rules of the historical prescriptions to build a drug recommendation model;
    获取当前患者的问诊单,并提取所述问诊单中的诊断结果和问诊数据;Obtain the medical questionnaire of the current patient, and extract the diagnosis result and the medical consultation data in the medical questionnaire;
    将所述诊断结果输入至所述药品推荐模型中进行药品匹配,生成候选药品列表;Inputting the diagnosis result into the drug recommendation model for drug matching, and generating a candidate drug list;
    根据所述问诊数据对所述候选药品列表中的药品进行排序筛选过滤,得到最终的药品推荐结果;Sorting, screening and filtering the drugs in the candidate drug list according to the consultation data to obtain a final drug recommendation result;
    根据接收到的药品使用请求,从所述药品推荐结果中,选择满足患者的药品,并生成药方保存至所述问诊单中。According to the received drug use request, the drug that satisfies the patient is selected from the drug recommendation result, and the prescription is generated and stored in the medical questionnaire.
  2. 根据权利要求1所述的用药推荐方法,其中,所述提取所述问诊单中的诊断结果和问诊数据包括:The method for recommending medication according to claim 1, wherein the extracting the diagnosis result and the inquiry data in the inquiry form comprises:
    利用文字识别算法提取所述问诊单中所记载的患者信息、就诊科室、主诉信息、医生患者间的问诊对话内容和医生的诊断结果;Extract the patient information, visiting department, chief complaint information, the content of the consultation dialogue between the doctor and the patient, and the doctor's diagnosis result recorded in the consultation sheet by using a text recognition algorithm;
    按照预设的优先级划分条件,将所述患者信息、就诊科室、主诉信息、医生患者间的问诊对话内容和医生的诊断结果进行优先级划分,得到查询条件列表;According to the preset priority classification conditions, the patient information, the visiting department, the chief complaint information, the content of the consultation dialogue between the doctor and the patient, and the doctor's diagnosis result are prioritized to obtain a query condition list;
    将所述查询条件列表中除了所述诊断结果之外的条件,按照优先级级别进行组合,得到所述特征词组。The conditions in the query condition list except the diagnosis result are combined according to the priority level to obtain the characteristic phrase.
  3. 根据权利要求2所述的用药推荐方法,其中,所述根据所述问诊数据对所述候选药品列表中的药品进行排序筛选过滤,得到最终的药品推荐结果包括:The drug recommendation method according to claim 2, wherein the sorting, screening and filtering of the drugs in the candidate drug list according to the consultation data to obtain a final drug recommendation result comprises:
    根据所述特征词组中条件对所述候选药品列表进行筛选过滤,剔除药品不满足所述患者信息的药品,得到新药品序列;Screening and filtering the candidate drug list according to the conditions in the characteristic phrase, and eliminating the drugs whose drugs do not meet the patient information, to obtain a new drug sequence;
    根据药品与问诊单的匹配情况对所述新药品序列中的每个药品进行打分排序,得到候选药品序列;Scoring and sorting each drug in the new drug sequence according to the matching of the drug and the medical questionnaire to obtain a candidate drug sequence;
    从所述候选药品序列中选择排序靠前的N个药品,得到药品推荐结果。The top N drugs are selected from the candidate drug sequence to obtain a drug recommendation result.
  4. 根据权利要求3所述的用药推荐方法,其中,在所述按照预设的优先级划分条件,将所述患者信息、就诊科室、主诉信息、医生患者间的问诊对话内容和医生的诊断结果进行优先级划分,得到查询条件列表之前,还包括:The method for recommending medication according to claim 3, wherein, in the pre-set priority classification condition, the patient information, the visiting department, the chief complaint information, the content of the consultation dialogue between the doctor and the patient, and the doctor's diagnosis result are divided into Prioritize and obtain the query condition list, including:
    根据所述患者信息从医院诊断系统的诊断数据库中,查询对应的患者诊断历史记录;According to the patient information, query the corresponding patient diagnosis history record from the diagnosis database of the hospital diagnosis system;
    根据所述诊断历史记录,确定所述患者的过敏史和禁忌信息。Based on the diagnostic history, the patient's allergy history and contraindication information are determined.
  5. 根据权利要求4所述的用药推荐方法,其中,所述根据药品与问诊单的匹配情况对所述新药品序列中的每个药品进行打分排序,得到候选药品序列包括:The drug recommendation method according to claim 4, wherein the scoring and sorting of each drug in the new drug sequence according to the matching situation between the drug and the medical questionnaire, and obtaining the candidate drug sequence comprises:
    根据所述过敏史和禁忌信息对所述新药品序列进行二次筛选过滤,得到第二药品序列;Perform secondary screening and filtering on the new drug sequence according to the allergy history and contraindication information to obtain a second drug sequence;
    利用预置的打分模型对所述第二药品序列中的每个药品的匹配度进行打分,并按照分数从高到低进行排序,得到候选药品序列。The matching degree of each drug in the second drug sequence is scored using a preset scoring model, and the scores are sorted from high to low to obtain a candidate drug sequence.
  6. 根据权利要求1-5任一项所述的用药推荐方法,其中,所述通过数据爬虫工具从多个医疗数据库中获取历史药方,并采用机器学习算法对所述历史药方进行药性和用药规则的学习,构建药品推荐模型包括:The method for recommending medication according to any one of claims 1-5, wherein the historical prescriptions are obtained from a plurality of medical databases through a data crawler tool, and a machine learning algorithm is used to perform the drug properties and medication rules on the historical prescriptions. Learning to build a drug recommendation model includes:
    通过数据爬虫工具从多个医疗数据库中获取医生的历史问诊数据,并从所述历史问诊数据中提取历史药方,构建推药数据集;Obtain the doctor's historical consultation data from multiple medical databases through a data crawler tool, and extract historical prescriptions from the historical consultation data to construct a drug push data set;
    提取所述推药数据集中的药品以及药品对应的药品特征信息,生成训练集;extracting the medicines in the medicine pushing data set and the medicine characteristic information corresponding to the medicines to generate a training set;
    利用机器学习算法对所述训练集中的药品以及药品对应的药品特征信息进行深度学习,构建药品推荐模型。A machine learning algorithm is used to perform deep learning on the medicines in the training set and the medicine characteristic information corresponding to the medicines to construct a medicine recommendation model.
  7. 根据权利要求6所述的用药推荐方法,其中,在所述根据接收到的药品使用请求,从所述药品推荐结果中,选择满足患者的药品,并生成药方保存至所述问诊单中之后,还包括:The drug recommendation method according to claim 6, wherein, according to the received drug use request, the drug that satisfies the patient is selected from the drug recommendation result, and the prescription is generated and stored in the medical questionnaire. ,Also includes:
    随机抽取若干张所述问诊单,并提取每张所述问诊单中对所述药品推荐结果的使用情况;Randomly select a number of the medical questionnaires, and extract the usage of the drug recommendation results in each of the medical questionnaires;
    若所述使用情况不满足预设的采纳率,读取所有未被采用药品推荐结果中的药品的问诊单,并基于所述问诊单对所述药品推荐模型进行重新训练,得到迭代优化后的药品推荐模型。If the usage does not meet the preset adoption rate, read the questionnaires of all the medicines that are not used in the drug recommendation results, and retrain the drug recommendation model based on the questionnaires to obtain iterative optimization The post-drug recommendation model.
  8. 一种用药推荐设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:A medication recommendation device, comprising a memory, a processor, and computer-readable instructions stored on the memory and executable on the processor, and the processor implements the following steps when executing the computer-readable instructions:
    通过数据爬虫工具从多个医疗数据库中获取历史药方,并采用机器学习算法对所述历史药方进行药性和用药规则的学习,构建药品推荐模型;Obtain historical prescriptions from multiple medical databases through data crawler tools, and use machine learning algorithms to learn the medicinal properties and medication rules of the historical prescriptions to build a drug recommendation model;
    获取当前患者的问诊单,并提取所述问诊单中的诊断结果和问诊数据;Obtain the medical questionnaire of the current patient, and extract the diagnosis result and the medical consultation data in the medical questionnaire;
    将所述诊断结果输入至所述药品推荐模型中进行药品匹配,生成候选药品列表;Inputting the diagnosis result into the drug recommendation model for drug matching, and generating a candidate drug list;
    根据所述问诊数据对所述候选药品列表中的药品进行排序筛选过滤,得到最终的药品推荐结果;Sorting, screening and filtering the drugs in the candidate drug list according to the consultation data to obtain a final drug recommendation result;
    根据接收到的药品使用请求,从所述药品推荐结果中,选择满足患者的药品,并生成药方保存至所述问诊单中。According to the received drug use request, the drug that satisfies the patient is selected from the drug recommendation result, and the prescription is generated and stored in the medical questionnaire.
  9. 根据权利要求8所述的用药推荐设备,所述处理器执行所述计算机程序时还实现以下步骤:The device for recommending medication according to claim 8, wherein the processor further implements the following steps when executing the computer program:
    利用文字识别算法提取所述问诊单中所记载的患者信息、就诊科室、主诉信息、医生患者间的问诊对话内容和医生的诊断结果;Extract the patient information, visiting department, chief complaint information, the content of the consultation dialogue between the doctor and the patient, and the doctor's diagnosis result recorded in the consultation sheet by using a text recognition algorithm;
    按照预设的优先级划分条件,将所述患者信息、就诊科室、主诉信息、医生患者间的问诊对话内容和医生的诊断结果进行优先级划分,得到查询条件列表;According to the preset priority classification conditions, the patient information, the visiting department, the chief complaint information, the content of the consultation dialogue between the doctor and the patient, and the doctor's diagnosis result are prioritized to obtain a query condition list;
    将所述查询条件列表中除了所述诊断结果之外的条件,按照优先级级别进行组合,得到所述特征词组。The conditions in the query condition list except the diagnosis result are combined according to the priority level to obtain the characteristic phrase.
  10. 根据权利要求9所述的用药推荐设备,所述处理器执行所述计算机程序时还实现以下步骤:The medication recommendation device according to claim 9, wherein the processor further implements the following steps when executing the computer program:
    根据所述特征词组中条件对所述候选药品列表进行筛选过滤,剔除药品不满足所述患者信息的药品,得到新药品序列;Screening and filtering the candidate drug list according to the conditions in the characteristic phrase, and eliminating the drugs whose drugs do not meet the patient information, to obtain a new drug sequence;
    根据药品与问诊单的匹配情况对所述新药品序列中的每个药品进行打分排序,得到候选药品序列;Scoring and sorting each drug in the new drug sequence according to the matching of the drug and the medical questionnaire to obtain a candidate drug sequence;
    从所述候选药品序列中选择排序靠前的N个药品,得到药品推荐结果。The top N drugs are selected from the candidate drug sequence to obtain a drug recommendation result.
  11. 根据权利要求10所述的用药推荐设备,所述处理器执行所述计算机程序时还实现以下步骤:The device for recommending medication according to claim 10, wherein the processor further implements the following steps when executing the computer program:
    根据所述患者信息从医院诊断系统的诊断数据库中,查询对应的患者诊断历史记录;According to the patient information, query the corresponding patient diagnosis history record from the diagnosis database of the hospital diagnosis system;
    根据所述诊断历史记录,确定所述患者的过敏史和禁忌信息。Based on the diagnostic history, the patient's allergy history and contraindication information are determined.
  12. 根据权利要求11所述的用药推荐设备,所述处理器执行所述计算机程序时还实现以下步骤:The device for recommending medication according to claim 11, wherein the processor further implements the following steps when executing the computer program:
    根据所述过敏史和禁忌信息对所述新药品序列进行二次筛选过滤,得到第二药品序列;Perform secondary screening and filtering on the new drug sequence according to the allergy history and contraindication information to obtain a second drug sequence;
    利用预置的打分模型对所述第二药品序列中的每个药品的匹配度进行打分,并按照分数从高到低进行排序,得到候选药品序列。The matching degree of each drug in the second drug sequence is scored using a preset scoring model, and the scores are sorted from high to low to obtain a candidate drug sequence.
  13. 根据权利要求8-12任一项所述的用药推荐设备,所述处理器执行所述计算机程序 时还实现以下步骤:The medication recommendation device according to any one of claims 8-12, wherein the processor also implements the following steps when executing the computer program:
    通过数据爬虫工具从多个医疗数据库中获取医生的历史问诊数据,并从所述历史问诊数据中提取历史药方,构建推药数据集;Obtain the doctor's historical consultation data from multiple medical databases through a data crawler tool, and extract historical prescriptions from the historical consultation data to construct a drug push data set;
    提取所述推药数据集中的药品以及药品对应的药品特征信息,生成训练集;extracting the medicines in the medicine pushing data set and the medicine characteristic information corresponding to the medicines to generate a training set;
    利用机器学习算法对所述训练集中的药品以及药品对应的药品特征信息进行深度学习,构建药品推荐模型。A machine learning algorithm is used to perform deep learning on the medicines in the training set and the medicine characteristic information corresponding to the medicines to construct a medicine recommendation model.
  14. 根据权利要求13所述的用药推荐设备,所述处理器执行所述计算机程序时还实现以下步骤:The device for recommending medication according to claim 13, wherein the processor further implements the following steps when executing the computer program:
    随机抽取若干张所述问诊单,并提取每张所述问诊单中对所述药品推荐结果的使用情况;Randomly select a number of the medical questionnaires, and extract the usage of the drug recommendation results in each of the medical questionnaires;
    若所述使用情况不满足预设的采纳率,读取所有未被采用药品推荐结果中的药品的问诊单,并基于所述问诊单对所述药品推荐模型进行重新训练,得到迭代优化后的药品推荐模型。If the usage does not meet the preset adoption rate, read the questionnaires of all the medicines that are not used in the drug recommendation results, and retrain the drug recommendation model based on the questionnaires to obtain iterative optimization The post-drug recommendation model.
  15. 一种计算机可读存储介质,所述计算机可读存储介质中存储计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行如下步骤:A computer-readable storage medium, storing computer instructions in the computer-readable storage medium, when the computer instructions are executed on a computer, the computer is made to perform the following steps:
    通过数据爬虫工具从多个医疗数据库中获取历史药方,并采用机器学习算法对所述历史药方进行药性和用药规则的学习,构建药品推荐模型;Obtain historical prescriptions from multiple medical databases through data crawler tools, and use machine learning algorithms to learn the medicinal properties and medication rules of the historical prescriptions to build a drug recommendation model;
    获取当前患者的问诊单,并提取所述问诊单中的诊断结果和问诊数据;Obtain the medical questionnaire of the current patient, and extract the diagnosis result and the medical consultation data in the medical questionnaire;
    将所述诊断结果输入至所述药品推荐模型中进行药品匹配,生成候选药品列表;Inputting the diagnosis result into the drug recommendation model for drug matching, and generating a candidate drug list;
    根据所述问诊数据对所述候选药品列表中的药品进行排序筛选过滤,得到最终的药品推荐结果;Sorting, screening and filtering the drugs in the candidate drug list according to the consultation data to obtain a final drug recommendation result;
    根据接收到的药品使用请求,从所述药品推荐结果中,选择满足患者的药品,并生成药方保存至所述问诊单中。According to the received drug use request, the drug that satisfies the patient is selected from the drug recommendation result, and the prescription is generated and stored in the medical questionnaire.
  16. 根据权利要求15所述的计算机可读存储介质,当所述计算机指令在计算机上运行时,使得计算机还执行以下步骤:The computer-readable storage medium of claim 15, when the computer instructions are executed on a computer, causing the computer to further perform the following steps:
    利用文字识别算法提取所述问诊单中所记载的患者信息、就诊科室、主诉信息、医生患者间的问诊对话内容和医生的诊断结果;Extract the patient information, visiting department, chief complaint information, the content of the consultation dialogue between the doctor and the patient, and the doctor's diagnosis result recorded in the consultation sheet by using a text recognition algorithm;
    按照预设的优先级划分条件,将所述患者信息、就诊科室、主诉信息、医生患者间的问诊对话内容和医生的诊断结果进行优先级划分,得到查询条件列表;According to the preset priority classification conditions, the patient information, the visiting department, the chief complaint information, the content of the consultation dialogue between the doctor and the patient, and the doctor's diagnosis result are prioritized to obtain a query condition list;
    将所述查询条件列表中除了所述诊断结果之外的条件,按照优先级级别进行组合,得到所述特征词组。The conditions in the query condition list except the diagnosis result are combined according to the priority level to obtain the characteristic phrase.
  17. 根据权利要求16所述的计算机可读存储介质,当所述计算机指令在计算机上运行时,使得计算机还执行以下步骤:The computer-readable storage medium of claim 16, when the computer instructions are executed on a computer, causing the computer to further perform the following steps:
    根据所述特征词组中条件对所述候选药品列表进行筛选过滤,剔除药品不满足所述患者信息的药品,得到新药品序列;Screening and filtering the candidate drug list according to the conditions in the characteristic phrase, and eliminating the drugs whose drugs do not meet the patient information, to obtain a new drug sequence;
    根据药品与问诊单的匹配情况对所述新药品序列中的每个药品进行打分排序,得到候选药品序列;Scoring and sorting each drug in the new drug sequence according to the matching of the drug and the medical questionnaire to obtain a candidate drug sequence;
    从所述候选药品序列中选择排序靠前的N个药品,得到药品推荐结果。The top N drugs are selected from the candidate drug sequence to obtain a drug recommendation result.
  18. 根据权利要求17所述的计算机可读存储介质,当所述计算机指令在计算机上运行时,使得计算机还执行以下步骤:The computer-readable storage medium of claim 17, which, when executed on a computer, causes the computer to further perform the following steps:
    根据所述患者信息从医院诊断系统的诊断数据库中,查询对应的患者诊断历史记录;According to the patient information, query the corresponding patient diagnosis history record from the diagnosis database of the hospital diagnosis system;
    根据所述诊断历史记录,确定所述患者的过敏史和禁忌信息。Based on the diagnostic history, the patient's allergy history and contraindication information are determined.
  19. 根据权利要求18所述的计算机可读存储介质,当所述计算机指令在计算机上运行 时,使得计算机还执行以下步骤:The computer-readable storage medium of claim 18, which, when executed on a computer, causes the computer to further perform the following steps:
    根据所述过敏史和禁忌信息对所述新药品序列进行二次筛选过滤,得到第二药品序列;Perform secondary screening and filtering on the new drug sequence according to the allergy history and contraindication information to obtain a second drug sequence;
    利用预置的打分模型对所述第二药品序列中的每个药品的匹配度进行打分,并按照分数从高到低进行排序,得到候选药品序列。The matching degree of each drug in the second drug sequence is scored using a preset scoring model, and the scores are sorted from high to low to obtain a candidate drug sequence.
  20. 一种用药推荐装置,所述用药推荐装置包括:A medication recommendation device, the medication recommendation device includes:
    训练模块,用于通过数据爬虫工具从多个医疗数据库中获取历史药方,并采用机器学习算法对所述历史药方进行药性和用药规则的学习,构建药品推荐模型;The training module is used to obtain historical prescriptions from multiple medical databases through a data crawler tool, and use machine learning algorithms to learn the medicinal properties and medication rules of the historical prescriptions, and build a drug recommendation model;
    提取模块,用于获取当前患者的问诊单,并提取所述问诊单中的诊断结果和问诊数据;The extraction module is used to obtain the medical questionnaire of the current patient, and extract the diagnosis result and the medical consultation data in the medical questionnaire;
    匹配模块,用于将所述诊断结果输入至所述药品推荐模型中进行药品匹配,生成候选药品列表;a matching module, configured to input the diagnosis result into the drug recommendation model for drug matching, and generate a candidate drug list;
    筛选模块,用于根据所述问诊数据对所述候选药品列表中的药品进行排序筛选过滤,得到最终的药品推荐结果;A screening module, configured to sort, screen and filter the drugs in the candidate drug list according to the consultation data to obtain a final drug recommendation result;
    推荐模块,用于根据接收到的药品使用请求,从所述药品推荐结果中,选择满足患者的药品,并生成药方保存至所述问诊单中。The recommendation module is used for selecting medicines that satisfy the patient from the medicine recommendation results according to the received medicine use request, and generating a prescription and saving it in the consultation list.
PCT/CN2021/084656 2020-08-31 2021-03-31 Medication recommendation method, apparatus and device, and storage medium WO2022041729A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010896613.3A CN112037880B (en) 2020-08-31 2020-08-31 Medication recommendation method, device, equipment and storage medium
CN202010896613.3 2020-08-31

Publications (1)

Publication Number Publication Date
WO2022041729A1 true WO2022041729A1 (en) 2022-03-03

Family

ID=73586007

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/084656 WO2022041729A1 (en) 2020-08-31 2021-03-31 Medication recommendation method, apparatus and device, and storage medium

Country Status (2)

Country Link
CN (1) CN112037880B (en)
WO (1) WO2022041729A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114661995A (en) * 2022-03-28 2022-06-24 北京泽桥医疗科技股份有限公司 Intelligent retrieval recommendation method for medical information
US20220223245A1 (en) * 2021-01-13 2022-07-14 Boe Technology Group Co., Ltd. Drug recommendation method, apparatus and system, electronic device and storage medium
CN116612852A (en) * 2023-07-20 2023-08-18 青岛美迪康数字工程有限公司 Method, device and computer equipment for realizing drug recommendation
CN116701561A (en) * 2023-06-09 2023-09-05 读书郎教育科技有限公司 Learning resource collection method matched with dictionary pen and system thereof

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112037880B (en) * 2020-08-31 2022-07-15 康键信息技术(深圳)有限公司 Medication recommendation method, device, equipment and storage medium
CN112568879B (en) * 2020-12-09 2023-07-28 中国人民解放军海军军医大学第一附属医院 Hemodynamic monitoring and medication guidance system
TWI780608B (en) * 2021-02-26 2022-10-11 華碩電腦股份有限公司 Drug recommendation system and method thereof
CN112802575B (en) * 2021-04-10 2021-09-03 浙江大学 Medication decision support method, device, equipment and medium based on graphic state machine
CN113241194B (en) * 2021-04-30 2022-09-09 上海市儿童医院 Intelligent medical question-answering method, system, terminal and storage medium
CN113284577B (en) * 2021-05-24 2023-08-11 康键信息技术(深圳)有限公司 Medicine prediction method, device, equipment and storage medium
CN113257383B (en) * 2021-06-16 2021-11-02 腾讯科技(深圳)有限公司 Matching information determination method, display method, device, equipment and storage medium
CN113436746B (en) * 2021-06-30 2024-04-12 平安科技(深圳)有限公司 Medication recommendation method, device, equipment and storage medium based on sorting algorithm
CN113628717B (en) * 2021-08-11 2024-02-09 广东省第二人民医院(广东省卫生应急医院) Medical article management data calculation method and device
CN113658662A (en) * 2021-08-31 2021-11-16 平安医疗健康管理股份有限公司 Medicine dispensing method, device, equipment and storage medium based on big medication data
CN113782144A (en) * 2021-09-10 2021-12-10 江西中医药大学 Traditional Chinese medicine preparation recommending and customizing method, electronic equipment and storage medium
CN114300127A (en) * 2021-12-30 2022-04-08 北京京东拓先科技有限公司 Method, device, equipment and storage medium for inquiry processing
CN114595380B (en) * 2022-02-14 2024-03-26 北京三快在线科技有限公司 Medicine recommendation method and device, electronic equipment and storage medium
CN115171836B (en) * 2022-09-07 2023-03-10 南京诺源医疗器械有限公司 Data processing method and system suitable for medical information
CN116741407B (en) * 2023-05-30 2024-02-20 广东省中医院(广州中医药大学第二附属医院、广州中医药大学第二临床医学院、广东省中医药科学院) Method, system and storage medium for selecting Chinese medicine
CN116453646A (en) * 2023-06-15 2023-07-18 山东志诚普惠健康科技有限公司 Automatic prescription filling method and device based on medical information system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108766561A (en) * 2018-05-31 2018-11-06 平安医疗科技有限公司 Illness information processing method, device, computer equipment and storage medium
CN108899070A (en) * 2018-05-31 2018-11-27 平安医疗科技有限公司 Prescription recommends generation method, device, computer equipment and storage medium
US20190259482A1 (en) * 2018-02-20 2019-08-22 Mediedu Oy System and method of determining a prescription for a patient
CN110289068A (en) * 2019-06-20 2019-09-27 北京百度网讯科技有限公司 Drug recommended method and equipment
CN111191020A (en) * 2019-12-27 2020-05-22 江苏省人民医院(南京医科大学第一附属医院) Prescription recommendation method and system based on machine learning and knowledge graph
CN112037880A (en) * 2020-08-31 2020-12-04 康键信息技术(深圳)有限公司 Medication recommendation method, device, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108986879B (en) * 2018-05-31 2024-04-05 平安医疗科技有限公司 Medicine recommendation method, device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190259482A1 (en) * 2018-02-20 2019-08-22 Mediedu Oy System and method of determining a prescription for a patient
CN108766561A (en) * 2018-05-31 2018-11-06 平安医疗科技有限公司 Illness information processing method, device, computer equipment and storage medium
CN108899070A (en) * 2018-05-31 2018-11-27 平安医疗科技有限公司 Prescription recommends generation method, device, computer equipment and storage medium
CN110289068A (en) * 2019-06-20 2019-09-27 北京百度网讯科技有限公司 Drug recommended method and equipment
CN111191020A (en) * 2019-12-27 2020-05-22 江苏省人民医院(南京医科大学第一附属医院) Prescription recommendation method and system based on machine learning and knowledge graph
CN112037880A (en) * 2020-08-31 2020-12-04 康键信息技术(深圳)有限公司 Medication recommendation method, device, equipment and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220223245A1 (en) * 2021-01-13 2022-07-14 Boe Technology Group Co., Ltd. Drug recommendation method, apparatus and system, electronic device and storage medium
CN114661995A (en) * 2022-03-28 2022-06-24 北京泽桥医疗科技股份有限公司 Intelligent retrieval recommendation method for medical information
CN116701561A (en) * 2023-06-09 2023-09-05 读书郎教育科技有限公司 Learning resource collection method matched with dictionary pen and system thereof
CN116701561B (en) * 2023-06-09 2024-04-26 读书郎教育科技有限公司 Learning resource collection method matched with dictionary pen and system thereof
CN116612852A (en) * 2023-07-20 2023-08-18 青岛美迪康数字工程有限公司 Method, device and computer equipment for realizing drug recommendation
CN116612852B (en) * 2023-07-20 2023-10-31 青岛美迪康数字工程有限公司 Method, device and computer equipment for realizing drug recommendation

Also Published As

Publication number Publication date
CN112037880A (en) 2020-12-04
CN112037880B (en) 2022-07-15

Similar Documents

Publication Publication Date Title
WO2022041729A1 (en) Medication recommendation method, apparatus and device, and storage medium
US11163763B2 (en) Decision-support application and system for medical differential-diagnosis and treatment using a question-answering system
US8121858B2 (en) Optimizing pharmaceutical treatment plans across multiple dimensions
US20190035506A1 (en) Intelligent auxiliary diagnosis method, system and machine-readable medium thereof
CN112700838A (en) Big data-based medication scheme recommendation method and device and related equipment
CN111191020A (en) Prescription recommendation method and system based on machine learning and knowledge graph
US11094400B2 (en) System, method and apparatus for processing patient information and feedback
US20190043606A1 (en) Patient-provider healthcare recommender system
WO2012122196A2 (en) A decision-support application and system for medical differential-diagnosis and treatment using a question-answering system
US20180121606A1 (en) Cognitive Medication Reconciliation
US20180121605A1 (en) Cognitive Medication Reconciliation
CN115565670A (en) Method for medical diagnosis
CN116013534A (en) Clinical auxiliary decision-making method and system based on medical guideline and data
Stark et al. Betterchoice: A migraine drug recommendation system based on neo4j
US20210391075A1 (en) Medical Literature Recommender Based on Patient Health Information and User Feedback
Miller et al. OptiPres: a distributed mobile agent decision support system for optimal patient drug prescription
US10936962B1 (en) Methods and systems for confirming an advisory interaction with an artificial intelligence platform
US10832822B1 (en) Methods and systems for locating therapeutic remedies
US20210133627A1 (en) Methods and systems for confirming an advisory interaction with an artificial intelligence platform
Goh Data mining for precision medicine in clinical decision support systems
US11940986B1 (en) Determining repair status information using unstructured textual repair data in response to natural language queries
US11869674B2 (en) Translation of medical evidence into computational evidence and applications thereof
Coelho et al. Automated Identification of Fall-Related Injuries in Unstructured Clinical Notes
US20240086771A1 (en) Machine learning to generate service recommendations
US20240054139A1 (en) Systems and methods for multi-dimensional ranking of experts

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21859578

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 21/06/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21859578

Country of ref document: EP

Kind code of ref document: A1