Traditional Chinese medicine external treatment recommendation method, traditional Chinese medicine external treatment recommendation device and electronic equipment
By determining syndrome differentiation characteristics from patient medical records and generating external treatment recommendation data, the problem of insufficient syndrome differentiation ability of TCM external treatment practitioners is solved, and auxiliary decision-making and program optimization of TCM external treatment are achieved.
Patent Information
- Application Number
- CN202410798164.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-10-11
AI Technical Summary
Practitioners of TCM external treatment lack the ability to differentiate syndromes and treat patients, resulting in patients being unable to obtain TCM external treatment plans with reference value.
Determine the characteristics of medical syndrome differentiation through the patient's medical record text, generate applicable external treatment recommendation data based on the syndrome differentiation results, including recommended techniques, treatment locations and techniques, and use the traditional Chinese medicine knowledge base to assist decision-making.
It realizes the auxiliary decision-making of TCM external treatment, helps patients obtain TCM external treatment plans with reference value, and improves the pertinence and processing efficiency of TCM external treatment.
Smart Images

Figure CN118762799A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of medical data processing technology, and in particular relates to a method for recommending external treatment of traditional Chinese medicine, a device for recommending external treatment of traditional Chinese medicine, an electronic device, and a computer-readable storage medium. Background Art
[0002] External treatment in Traditional Chinese Medicine refers to the techniques and methods of treating diseases outside the body, including treatment methods using medical devices such as acupuncture, scraping and cupping, as well as manual treatment methods such as Tuina and massage, and treatment methods using natural physical factors.
[0003] In addition to being used in TCM clinical practice to treat diseases, TCM external treatment has unique advantages and value in TCM's "preventive treatment". In today's society, people generally realize that they can alleviate sub-health conditions through health massage and physical therapy to achieve the purpose of health care and disease prevention, which has made the concept of "preventive treatment" in TCM widely accepted by people. Based on this, more and more health management service agencies have sprung up to meet the market demand for "preventive treatment" through TCM external treatment. However, the current capabilities of TCM external treatment practitioners are often uneven, and most of them do not have the basic ability of TCM syndrome differentiation and treatment, which results in patients being unable to obtain TCM external treatment plans with reference value. Summary of the invention
[0004] The present application provides a method for recommending TCM external treatment, a device for recommending TCM external treatment, an electronic device and a computer-readable storage medium, which can realize auxiliary decision-making for TCM external treatment and help patients obtain TCM external treatment plans with reference value.
[0005] In a first aspect, the present application provides a method for recommending external treatment with traditional Chinese medicine, comprising:
[0006] Determine the patient's medical syndrome characteristics through the patient's medical record text;
[0007] Deducing the patient's syndrome differentiation results based on the medical syndrome differentiation characteristics;
[0008] Based on the results of syndrome differentiation, recommended external treatment data suitable for the patient is generated. The recommended external treatment data includes: recommended techniques, recommended treatment locations and recommended manipulations.
[0009] In a second aspect, the present application provides a TCM external treatment recommendation device, comprising:
[0010] The first determination module is used to determine the medical syndrome differentiation characteristics of the patient through the patient's medical record text;
[0011] A derivation module is used to derive the patient's syndrome differentiation results based on the medical syndrome differentiation characteristics;
[0012] The generation module is used to generate external treatment recommendation data suitable for the patient based on the syndrome differentiation results. The external treatment recommendation data includes: recommended techniques, recommended treatment locations and recommended manipulations.
[0013] In a third aspect, the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method of the first aspect when executing the computer program.
[0014] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method of the first aspect are implemented.
[0015] In a fifth aspect, the present application provides a computer program product, which includes a computer program. When the computer program is executed by one or more processors, it implements the steps of the method of the first aspect.
[0016] Compared with the prior art, the present application has the following beneficial effects: in order to solve the problem that practitioners of TCM external treatment lack the ability to differentiate and treat, the present application introduces the dialectical thinking in TCM, firstly, the patient's medical dialectical characteristics are determined from the patient's medical record text, and then the dialectical results are derived based on this, so as to have a clearer understanding of the patient's specific situation, and finally, the external treatment recommendation data suitable for the patient is generated based on this dialectical result, wherein the external treatment recommendation data includes recommended techniques, recommended treatment positions and recommended methods, etc., which are all the data required for TCM external treatment. As can be seen from the above, through the present application, auxiliary decision-making for TCM external treatment can be realized, which helps patients obtain TCM external treatment plans with reference value.
[0017] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0019] Figure 1 It is a schematic diagram of the implementation process of the recommended method for external treatment of traditional Chinese medicine provided in the embodiment of the present application;
[0020] Figure 2 is an example diagram of multimedia data provided by an embodiment of the present application;
[0021] Figure 3 is an example diagram of a display interface provided in an embodiment of the present application;
[0022] Figure 4 It is a structural block diagram of a TCM external treatment recommendation device provided in an embodiment of the present application;
[0023] Figure 5 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0025] In order to illustrate the technical solution proposed in this application, a specific embodiment is provided below for illustration.
[0026] The following is an explanation of the recommended method of TCM external treatment proposed in the embodiment of the present application. The electronic device can be a personal computer, a medical auxiliary device, a server or other device with data processing function. The embodiment of the present application does not limit the specific type of the electronic device. Figure 1 The implementation process of the recommended method of TCM external treatment is described in detail as follows:
[0027] Step 101, determining the patient's medical syndrome differentiation characteristics through the patient's medical record text.
[0028] The electronic device may first obtain the patient's medical record text. The electronic medical record contains information about the patient's clinical visit, which is specifically expressed in natural language; that is, the electronic medical record is actually presented as a natural language text. The electronic device may perform natural language processing (NLP) on the medical record text to obtain the medical syndrome differentiation characteristics for the patient; or, the electronic device may also display the medical record text and all possible medical syndrome differentiation characteristics to the user based on the questioning strategy tree, and the user may consult the medical record text and check the medical syndrome differentiation characteristics, and determine multiple medical syndrome differentiation characteristics for the patient according to the user's selection; or, the user may also determine multiple medical syndrome differentiation characteristics for the patient by asking the patient for a consultation (such as Chinese medicine's observation, smell, questioning, etc.), and the embodiment of the present application does not limit the determination method of the medical syndrome differentiation characteristics. Among them, the patient's medical record text may be a virtual case or a real case of desensitization treatment, which is not limited here. In addition, the medical record text may be imported through a file interface or directly entered on the display interface, which is not limited here.
[0029] In one application scenario, the medical syndrome differentiation feature may be a set of four diagnostic elements extracted from the patient's medical record text; in another application scenario, the medical syndrome differentiation feature may also be a set of four diagnostic elements and Chinese and Western medicine diseases extracted from the patient's medical record text. The embodiments of the present application do not limit the specific type of the medical syndrome differentiation feature.
[0030] Step 102, deriving the patient's syndrome differentiation result based on the medical syndrome differentiation characteristics.
[0031] The electronic device can be based on various mainstream dialectical ideas proposed in the current field of traditional Chinese medicine, and can make corresponding deductions according to the determined medical dialectical characteristics of the patient to obtain the patient's dialectical results.
[0032] In an application scenario, if the medical syndrome differentiation feature is a set of four diagnostic elements, step 102 can be a syndrome differentiation derivation based on the syndrome differentiation element, and the obtained syndrome differentiation result can be specifically a syndrome element list. Specifically, in this application scenario, step 102 can be specifically manifested as: deriving multiple target syndrome elements based on the four diagnostic element set and the preset Chinese medicine knowledge base; sorting multiple target syndrome elements based on the preset syndrome element sorting order to obtain a syndrome element list. It can be understood that the Chinese medicine knowledge base is set with a correlation relationship between the four diagnostic elements and the syndrome element, so the derivation of the target syndrome element can be realized based on the Chinese medicine knowledge base. When the target syndrome element is derived, the score corresponding to each target syndrome element can also be obtained, and the syndrome element sorting order can be specifically: the order of the score from high to low.
[0033] In another application scenario, if the medical syndrome differentiation feature is a set of four diagnostic elements and Chinese and Western medicine diseases, step 102 can be a syndrome differentiation deduction based on disease differentiation, and the obtained syndrome differentiation result can be specifically a list of Chinese medicine treatment prescriptions. Specifically, in this application scenario, step 102 can be specifically manifested as: through a preset dynamic query algorithm, with a set of four diagnostic elements or Chinese and Western medicine diseases as input, combined with the patient's basic information, the Chinese medicine treatment prescription is queried in a preset Chinese medicine knowledge base to obtain a list of Chinese medicine treatment prescriptions, and the basic information includes: age information, gender information and pregnancy information. It can be understood that in the dynamic query algorithm, it is actually based on the current input to perform a preliminary query on the content to be queried, and then on the basis of the results obtained from the preliminary query, it is combined with the patient's basic information for specific further screening to obtain the final query result. The dynamic query algorithm will be further explained later.
[0034] It should be noted that the generally obtained four diagnostic element set may contain multiple four diagnostic elements. Considering that the general patient and user may only pay attention to one or several of the four diagnostic elements, after obtaining the four diagnostic element set, the user may also specify several of the four diagnostic elements that he is concerned about for subsequent steps, which will not be repeated here. Similarly, the generally obtained syndrome element list may contain multiple target syndrome elements. Considering that the general patient and user may only pay attention to one or several of the target syndrome elements, after obtaining the syndrome element list, the user may also specify several of the target syndrome elements that he is concerned about for subsequent steps, which will not be repeated here. That is, the embodiment of the present application can specify the four diagnostic elements and / or specify the target syndrome elements based on the user's choice to perform subsequent steps; and the operation of specifying the four diagnostic elements and / or specifying the target syndrome elements can be repeated multiple times based on the user's needs. This can not only improve the pertinence of the embodiment of the present application, but also increase the processing efficiency of the embodiment of the present application.
[0035] In actual applications, electronic devices can provide corresponding options on their display interfaces based on the above two application scenarios for users to choose from; that is, users can choose whether to obtain syndrome differentiation results by using syndrome differentiation elements or by using disease differentiation based on their own actual needs, which is not limited here.
[0036] Step 103, generating external treatment recommendation data suitable for the patient based on the syndrome differentiation results.
[0037] The external treatment recommendation data includes, but is not limited to, recommended techniques, recommended treatment locations, and recommended manipulations. For example, the external treatment recommendation data may also include a treatment plan based on this, and the treatment plan includes: duration of each treatment, number of treatments (how many times a day), and / or number of treatment days (how many days). The embodiments of the present application do not limit the external treatment recommendation data.
[0038] It should be noted that the treatment positions in the embodiments of the present application include but are not limited to acupuncture points and parts, which are not limited here. Specifically, under the logic of syndrome differentiation and treatment in traditional Chinese medicine, the electronic device will usually first generate recommended techniques and recommended treatment positions suitable for the patient based on the syndrome differentiation results, and then generate recommended techniques based on the recommended techniques and the recommended treatment positions combined with the obtained syndrome differentiation results. After obtaining the external treatment recommendation data, the user can perform further subsequent processing, such as issuing an external treatment prescription for the user with reference to the external treatment recommendation data, etc., which is not limited here.
[0039] In some embodiments, in order to enable electronic devices to efficiently implement the above steps and realize intelligent auxiliary decision-making of electronic devices, the present application embodiment proposes a traditional Chinese medicine knowledge base. The traditional Chinese medicine knowledge base can store a structured database, and can also store an algorithm library and a rule library related to external treatment, etc. The present application embodiment does not limit the specific content stored in the traditional Chinese medicine knowledge base.
[0040] In some examples, the structured databases in the TCM knowledge base may include, but are not limited to, the following: a four-diagnosis element database, a TCM syndrome element database, a disease database, a TCM treatment prescription database, a TCM technique database, a TCM acupoint database, and a TCM manipulation database.
[0041] The four-diagnosis element library can be constructed based on national textbooks, national standards, and classical masterpieces related to TCM external treatment, and contains relevant information on all possible four-diagnosis elements. Among them, the four-diagnosis elements refer to: the disease-related characteristics of patients described from the perspective of TCM four-diagnosis. The structured entry format in the four-diagnosis element library can be as follows: {four-diagnosis element ID|four-diagnosis element name|applicable gender|applicable minimum age|applicable maximum age|pregnancy mark|other information}. Among them, the four-diagnosis element ID represents the unique identifier of the element; the four-diagnosis element name represents the standardized four-diagnosis element name; the applicable gender represents the gender to which the four-diagnosis element is applicable, for example, 0 represents universal, 1 represents only applicable to men, and 2 represents only applicable to women; the applicable minimum age and applicable maximum age represent the age range to which the element is applicable; the pregnancy mark represents whether the element is applicable during pregnancy, for example, 0 represents universal, 1 represents prohibited during pregnancy, and 2 represents applicable during pregnancy; other information represents other information related to the element.
[0042] The TCM syndrome database can be constructed based on national textbooks and national standards, and contains relevant information about all possible syndromes. Among them, syndromes are existing concepts in the syndrome differentiation system of TCM, which will not be repeated here. The structured entry format in the TCM syndrome database can be as follows: {Syndrome ID|Syndrome name|Syndrome classification mark|Applicable gender|Applicable minimum age|Applicable maximum age|Pregnancy mark|Other information}. Among them, syndrome ID represents the unique identifier of the syndrome; syndrome name represents the standardized syndrome name; syndrome classification mark represents the syndrome category, for example, 1 represents the disease location syndrome, and 2 represents the disease nature syndrome; applicable gender represents the gender to which the syndrome is applicable, for example, 0 represents universal, 1 represents only applicable to men, and 2 represents only applicable to women; applicable minimum age and applicable maximum age represent the age range to which the syndrome is applicable; pregnancy mark represents whether the syndrome is applicable to pregnancy, for example, 0 represents universal, 1 represents prohibited for pregnancy, and 2 represents applicable for pregnancy; other information represents other information related to the syndrome.
[0043] The disease library can be constructed based on national textbooks, national standards, and classical masterpieces related to TCM external treatment, and contains relevant information on all possible diseases. It should be noted that the diseases in the embodiments of the present application include not only TCM diseases, but also Western medicine diseases, which are not limited here. The structured entry format in the disease library can be as follows: {Disease ID|Disease Name|Applicable Gender|Applicable Minimum Age|Applicable Maximum Age|Pregnancy Mark|Other Information}. Among them, the disease ID represents the unique identifier of the disease; the disease name represents the standardized disease name; the applicable gender represents the gender to which the disease is applicable, for example, 0 represents universal for both men and women, 1 represents only applicable to men, and 2 represents only applicable to women; the applicable minimum age and applicable maximum age represent the age range for which the disease is applicable; the pregnancy mark represents whether the disease is applicable for pregnancy, for example, 0 represents universal, 1 represents disabled for pregnancy, and 2 represents available for pregnancy; other information represents other information related to the disease.
[0044] The TCM treatment prescription library can be constructed based on national textbooks, national standards, and classical masterpieces related to TCM external treatment, and contains relevant information on all possible TCM treatment prescriptions. As an example only, the TCM treatment prescription may include classic acupuncture prescriptions, emergency acupuncture prescriptions, and TCM treatment prescriptions for common diseases (such as diabetes and hypertension, etc.), which are not limited here. The structured entry format in the TCM treatment prescription library can be as follows: {treatment prescription ID|treatment prescription name|grading node mark|applicable gender|pregnancy mark|applicable minimum age|applicable maximum age|other information}. Among them, the treatment prescription ID represents the unique identification of the TCM treatment prescription; the treatment prescription name represents the name of the TCM treatment prescription, which can be displayed in the display interface; the hierarchical node flag represents whether the TCM treatment prescription is a hierarchical node, for example, 0 represents not a hierarchical node, and 1 represents a hierarchical node. Just as an example: a certain node is a TCM treatment prescription for diabetes, and several sub-nodes can be set under it, including: diabetes physical sign prescription, diabetes ear acupuncture prescription and diabetes massage method, etc., then its hierarchical node flag can be set to 1; the applicable gender represents the gender to which the treatment prescription is applicable, for example, 0 represents unisex, 1 represents only applicable to males, and 2 represents only applicable to females; the applicable minimum age and applicable maximum age represent the age range to which the treatment prescription is applicable; the pregnancy flag represents whether the treatment prescription is applicable for pregnancy, for example, 0 represents universal, 1 represents prohibited for pregnancy, and 2 represents applicable for pregnancy; other information represents other information related to the treatment prescription.
[0045] The TCM technique library can be constructed based on national textbooks, national standards, and classical masterpieces related to TCM external treatment, and contains relevant information on all possible TCM techniques. As an example only, the TCM technique library may include external treatment acupuncture (such as body acupuncture, giant needle method, and awn needle method), moxibustion (such as moxibustion and lamp moxibustion), massage therapy (such as massage and bone setting), etc., which are not limited here. The structured entry format in the TCM technique library can be as follows: {technique ID|technique name|grading node mark|applicable gender|pregnancy mark|applicable minimum age|applicable maximum age|other information}. Among them, the technique ID represents the unique identifier of the TCM technique; the technique name represents the name of the TCM technique, which can be displayed in the display interface; the hierarchical node mark represents whether the TCM technique is a hierarchical node, for example, 0 represents not a hierarchical node, and 1 represents a hierarchical node; the applicable gender represents the gender to which the technique is applicable, for example, 0 represents both men and women, 1 represents only men, and 2 represents only women; the applicable minimum age and applicable maximum age represent the age range to which the technique is applicable; the pregnancy mark represents whether the technique is applicable during pregnancy, for example, 0 represents universal, 1 represents prohibited during pregnancy, and 2 represents applicable during pregnancy; other information represents other information related to the technique.
[0046] The TCM acupoint library defines information and pictures of human meridians, acupoints and parts related to TCM external treatment. In some examples, the TCM acupoint library may include an acupoint library, a part library and a human meridian picture library, which are not limited here.
[0047] The acupoint library can be constructed based on national textbooks and national standards, and contains relevant information about all possible acupoints. As an example only, the acupoint library can include all acupoints on the human body (such as Quchi acupoint, Yangbai acupoint, and Rangu acupoint, etc.). The structured entry format in the acupoint library can be as follows: {acupoint ID|acupoint name|international code|grading node mark|applicable gender|pregnancy mark|human body picture ID where the acupoint is located|name of the meridian where the acupoint is located|acupoint X-axis coordinate|acupoint Y-axis coordinate|acupoint color|other information}. Among them, the acupoint ID indicates the unique identification of the acupoint; the acupoint name indicates the display name of the acupoint, which can be displayed in the display interface; the international code indicates the international code of the acupoint, which refers to the national standard definition; the graded node flag indicates whether the acupoint is a graded node, for example, 0 indicates that it is not a graded node, and 1 indicates that it is a graded node; the applicable gender indicates the gender to which the acupoint is applicable, for example, 0 indicates that it is applicable to both men and women, 1 indicates that it is applicable only to men, and 2 indicates that it is applicable only to women; the applicable minimum age and applicable maximum age indicate the age range to which the acupoint is applicable; the pregnancy flag indicates whether the acupoint is applicable during pregnancy, for example, 0 indicates that it is applicable to both men and women, 1 indicates that it is applicable only to men, and 2 indicates that it is applicable only to women. Indicates that pregnancy is available; the human body picture ID where the acupoint is located indicates the human body picture ID that displays the acupoint; the meridian name where the acupoint is located indicates the meridian name where the acupoint is located, and the relationship between the acupoint and the meridian can be defined; the acupoint X-axis coordinate indicates the X-axis coordinate of the acupoint display position in the image coordinate system of the human body picture; the acupoint Y-axis coordinate indicates the Y-axis coordinate of the acupoint display position in the image coordinate system of the human body picture; the acupoint color indicates the color corresponding to the acupoint when it is displayed, for example, according to the nature of the meridian where the acupoint is located, red can be set to correspond to the yang meridian, blue to the yin meridian, and black to the extraordinary acupoint; other information indicates other information related to the acupoint.
[0048] It should be noted that the human body picture can be a two-dimensional human front view, a two-dimensional human side view, or a three-dimensional human body picture (in this case, the Z-axis coordinates of the acupoint need to be added to the entry), which is not limited here. In addition, the same acupoint usually corresponds to at least one human body picture, and when the acupoint corresponds to multiple human body pictures, the coordinates of the acupoint in different human body pictures are often different, which will result in multiple corresponding records in the acupoint library.
[0049] The part library can be constructed by searching for relevant parts from the literature corresponding to specific techniques (such as massage, scraping and cupping techniques). The various parts involved in the part library are mainly used for the specific techniques, including but not limited to different parts such as the head (such as the front head and face), shoulders (such as the upper shoulder and the outer shoulder), and the stomach area. The structured entry format in the part library can be as follows: {Part ID|Part Name|Grading Node Flag|Applicable Gender|Pregnancy Flag|Human Body Picture ID of the Part|Part X-axis Coordinate|Part Y-axis Coordinate|Other Information}. Among them, the part ID represents the unique identification of the part; the part name represents the official name of the part, which can be displayed in the display interface; the hierarchical node mark represents whether the part is a hierarchical node, for example, 0 represents not a hierarchical node, and 1 represents a hierarchical node; the applicable gender represents the gender to which the part is applicable, for example, 0 represents unisex, 1 represents only applicable to males, and 2 represents only applicable to females; the applicable minimum age and applicable maximum age represent the applicable age range of the part; the pregnancy mark represents whether the part is applicable during pregnancy, for example, 0 represents universal, 1 represents prohibited during pregnancy, and 2 represents available during pregnancy; the human body picture ID where the part is located represents the human body picture ID that displays the part; the part X-axis coordinate represents the X-axis coordinate of the positioning point of the part in the image coordinate system of the human body picture; the part Y-axis coordinate represents the Y-axis coordinate of the positioning point of the part in the image coordinate system of the human body picture; and other information represents other information related to the part.
[0050] It should be noted that since a part is usually a large area, when a part is displayed in a human body image, the positioning point of the part is usually highlighted. In addition, the same part usually corresponds to at least one positioning point, and when the part corresponds to multiple positioning points, there will be multiple corresponding records in the part library.
[0051] The human meridian library can be constructed based on national textbooks, national standards, and classical works related to external treatment of traditional Chinese medicine. As an example only, the human meridian library includes a human body library and a meridian library, which helps to highlight each acupoint or each part, and can better assist users in making external treatment prescriptions. The details are as follows:
[0052] The human body image library includes two types of human body images, one for displaying meridians and acupuncture points, including human front images, human side images, human back images, and images of special parts of the human body (such as ears); the other for displaying parts, including human front area images and human back area images. The structured entry format in the human body image library can be as follows: {human body image ID|human body image type|human body image name|human body image content|image display height|image display width|other information}. Among them, the human body picture ID represents the unique identification of the picture; the human body picture type is defined as the front picture of the human body, the side picture of the human body, the back picture of the human body and the picture of special parts of the human body (such as the ear) showing the meridians and acupuncture points, as well as the front area picture of the human body and the back area picture of the human body showing the parts; the human body picture name represents the name displayed on the display interface of the human body picture; the human body picture content can be defined in Base64 or other common encoding formats to support browser parsing and display, and its field type is defined as nvarchar(max) according to the database where the picture is located; the picture display height represents the height of the human body picture displayed on the display interface; the picture display width represents the width of the human body picture displayed on the display interface; the picture other information represents other information related to the human body picture.
[0053] The meridian image library is used to provide images of the fourteen meridians of the human body. The structured entry format in the meridian image library can be as follows: {meridian image ID|meridian image name|meridian image content|belonging human image ID|image other information}. The meridian image ID represents the unique identifier of the human meridian; the meridian image name represents the display name of the human meridian in the display interface, such as the Governor Vessel or the Hand Taiyin Lung Meridian; the meridian image content can be defined in Base64 or other common encoding formats to support browser parsing and display, and its field type is defined as nvarchar(max) according to the database where the image is located; the belonging human image ID represents the human image ID to which the meridian image belongs; and the image other information represents other information related to the meridian image.
[0054] It should be noted that the same meridian is usually displayed differently in different human body pictures. For example, the Governor Vessel can be displayed in human front pictures, human side pictures, and human back pictures, respectively, so the Governor Vessel can correspond to three meridian pictures; the Hand Taiyin Lung Meridian can be displayed in human front pictures and human side pictures, respectively, so the Hand Taiyin Lung Meridian can correspond to two meridian pictures.
[0055] The TCM manipulation library includes the manipulation library and manipulation picture library related to TCM external treatment, which are described in detail as follows:
[0056] Among them, the technique library can be constructed based on national textbooks, national standards, and classical masterpieces related to external treatment of traditional Chinese medicine. The structured entry format in the technique library can be as follows: {technique ID|technique name|technique image ID|parent technique ID|hierarchical node|applicable gender|pregnancy mark|applicable minimum age|applicable maximum age|other information of the technique}, wherein the technique ID represents the unique identifier of the technique; the technique name represents the name of the technique displayed in the display interface; the technique image ID represents the operation reference image ID of the technique; the parent technique ID represents the parent technique ID corresponding to the technique, and if it is 0, there is no parent technique; the hierarchical node mark represents whether the technique is a hierarchical node, for example, 0 represents not a hierarchical node, and 1 represents a hierarchical node; the applicable gender represents the gender to which the technique is applicable, for example, 0 represents universal, 1 represents only applicable to men, and 2 represents only applicable to women; the applicable minimum age and applicable maximum age represent the age range to which the technique is applicable; the pregnancy mark represents whether the technique is applicable during pregnancy, for example, 0 represents universal, 1 represents prohibited during pregnancy, and 2 represents applicable during pregnancy; other information of the technique represents other information related to the technique.
[0057] Among them, the manipulation library is used to provide reference diagrams for manipulation operations, which can be used to guide the manipulation operations of clinical Chinese medicine physicians or other practitioners of Chinese medicine external treatment. The structured entry format in the manipulation library can be as follows: {manipulation image ID|manipulation image name|manipulation image content|image display height|image display width|image other information}. Among them, the manipulation image ID is used to represent the unique identification of the image; the manipulation image name is used to represent the name of the image displayed in the display interface; the manipulation image content can be defined using Base64 or other common encoding formats to support browser parsing and display, and its field type is defined as nvarchar(max) according to the database where the image is located; the image display height represents the height of the manipulation image displayed on the display interface; the image display width represents the width of the manipulation image displayed on the display interface; and the image other information represents other information related to the manipulation image.
[0058] In some examples, the rule base in the TCM knowledge base may include but is not limited to the following: a source table-target table association rule base, a node type-patient information association rule base, a technique-treatment location type association rule base, and a recursive relationship rule base.
[0059] The source table-target table association rule base defines association rules between different types of nodes, which can be used to derive target nodes based on source nodes. The structured entry format of the source table-target table association rule base can be as follows: {source table-target table association rule ID|source node type|source node ID|target node type|target node ID|other information}. Among them, the source table-target table rule ID represents the unique identifier of the corresponding association rule; the value range of the source node type and the corresponding source node type are specifically: sym-four diagnostic elements, ill-disease, snf-syndrome element, top-technique, acu-TCM treatment, ana-acupoint, par-part and hnd-manipulation, etc.; the source node ID represents the unique identifier of the source node; the value range of the target node type and the corresponding target node type are: sym-four diagnostic elements, ill-disease, snf-syndrome element, top-technique, acu-TCM treatment, ana-acupoint, par-part and hnd-manipulation, etc.; the target node ID represents the unique identifier of the target node; and the other information represents other relevant information of the corresponding association rule.
[0060] It should be noted that there can be a many-to-many relationship between the source node and the target node. Accordingly, there can be multiple records in the source table-target table association rule base. For example, the source node is the heart (symptom) node under the syndrome type. With this node as the source node, the corresponding target nodes for the target node type of technique can include body acupuncture, massage, and moxibustion, etc.; similarly, the source node is the cold (symptom) node under the syndrome type. With this node as the source node, the corresponding target nodes for the target node type of technique can also include massage and moxibustion, etc., which will not be repeated here. In addition, the source node type and the target node type in the same entry must be different to achieve the definition of the association relationship between different types of nodes.
[0061] The node type-patient information association rule library is used to further filter the results obtained from the preliminary derivation according to the patient information, specifically defining the patient conditions that the node type needs to match. The structured entry format of the node type-patient information association rule library can be as follows: {node type-patient information association rule ID|node type|patient conditions to be matched|other information}. Among them, the node type-patient information association rule ID represents the unique identifier of the corresponding association rule; the value range of the node type and the corresponding source node type are specifically: sym-four diagnostic elements, ill-disease, snf-syndrome element, top-technique, acu-TCM treatment, ana-acupoint, par-position, hnd-manipulation, etc.; the value of the patient condition to be matched can be expressed as an "XYZ" digital string, where X, Y and Z correspond to the patient's age, gender and pregnancy condition, respectively, and each can take the value of 0 or 1. When the value is 0, it means that the corresponding patient conditions do not need to be matched. When the value is 1, it means that the corresponding patient conditions need to be matched. For example, ana (acupoint). This node type has nothing to do with the patient's age, so the patient condition that needs to be matched is "011", which is used to indicate that for this node type, the patient's gender and pregnancy status need to be considered, but the patient's age does not need to be considered; other information represents other relevant information of the corresponding association rule.
[0062] The technique-treatment location type association rule base is used to define the association relationship in which a certain type of technique in TCM external treatment only operates on a specific treatment location (such as a specific acupoint and / or a specific part). The structured entry format of the technique-treatment location type association rule base can be as follows: {technique-treatment location type association rule ID|technique type ID|technique type name|associated acupoint / part type ID|associated acupoint / part type name|other information}. Among them, the technique-treatment location type association rule ID represents the unique identifier of the corresponding association rule; the technique type ID represents a certain type of technique ID; the technique type name represents the name of the technique type, such as "scalp acupuncture", "cupping" or "electrotherapy", etc.; the associated acupoint / part type ID represents the acupoint / part type ID associated with this type of technique; the associated acupoint / part type name represents the acupoint or part type name associated with this type of technique; other information represents other relevant information of the corresponding association rule. Just as an example, a certain technique type is "scalp acupuncture" (its technique type ID is 105), and its associated acupoint type is "head acupoint" (acupoint type ID is 556).
[0063] It should be noted that the technique type ID and the associated acupoint / part type ID are both root nodes, that is, what is described here is the association between a technique type belonging to the root node and another acupoint / part type belonging to the root node; in addition, the same technique type may be associated with multiple acupoints or part types, and accordingly, there can be multiple records in the technique-treatment location type association rule base.
[0064] The recursive relationship rule base defines the recursive relationship of parent-child nodes under various node types. The structured entry format of the recursive relationship rule base can be as follows: {recursive relationship rule ID|node type|specific node ID|parent node ID|other information}. Among them, the recursive relationship rule ID represents the unique identifier of the corresponding recursive rule relationship; the value range of the node type and the corresponding node type are specifically: sym-four diagnostic elements, ill-disease, snf-syndrome element, top-technique, acu-TCM treatment, ana-acupoint, par-position and hnd-manipulation, etc.; the specific node ID represents the ID of the specific node; the parent node ID represents the parent node ID of the specific node; other information corresponds to other relevant information of the recursive rule relationship.
[0065] In some examples, the algorithm library in the TCM knowledge base may include but is not limited to the following: dynamic query algorithm and recursive algorithm. The recursive algorithm may include: a first recursive algorithm for obtaining the parent node of the previous level, a second recursive algorithm for obtaining the root node upward, and a third recursive algorithm for obtaining the child node downward.
[0066] The following is an explanation of the dynamic query algorithm in conjunction with the dynamic query model. The dynamic query model is shown as follows:
[0067]
[0068] Based on the above, we can know that:
[0069] The input of the dynamic query model includes: source node type (limited to 1 to avoid overly complex input), source node ID list, target node type list and patient basic information (age information, gender information and pregnancy information, etc.). Among them, the patient's basic information can be obtained through the patient's medical record text.
[0070] The query operations performed by the dynamic query model are:
[0071] Execute dynamic SQL1 to perform preliminary query: It is obtained by combining Select dynamic statement + From statement + Where dynamic statement, in which the dynamic statement is dynamically determined according to the input source node type, source node ID list and target node type list.
[0072] Execute dynamic SQL2 for further query: It is obtained by combining Select statement + From dynamic statement + Where dynamic statement, in which the dynamic statement is dynamically determined according to the input target node type list, the patient's basic information and the output of SQL1.
[0073] The output of the dynamic query model includes: a target node structure list, wherein the target node structure list can be defined based on a node general infrastructure model, and then adaptively adjusted according to the target node type by the output of SQL2.
[0074] For the convenience of the following description, the source node type is recorded as input 1, the source node ID list is recorded as input 2, the target node type list is recorded as input 3, and the basic information of the patient is recorded as input 4, so as to explain the specific implementation process of the dynamic query algorithm in more detail:
[0075] First, parse input 1, input 2, and input 3, and determine whether they are empty; if one is empty, prompt and exit the subsequent processing; if none of them are empty, convert all the strings in the input 1 and input 3 lists into a form supported by the algorithm (for example, convert to lowercase).
[0076] Then, a dynamic SQL1 statement is combined, where: the From statement is the source table-target table association rule base; the Select dynamic statement includes the source node ID, the target node type and the target node ID; the Where statement is dynamically determined according to the input, where the source node type field = input 1, the source node ID field is in input 2, and the target node type field is in input 3. Based on this, the resulting dynamic SQL1 statement is: SELECT source node ID, target node type, target node ID FROM source table-target table association rule base WHERE source node type field = source node type AND source node ID field in source node ID list AND target node type in target node type list.
[0077] Next, execute dynamic SQL1 to get the output of SQL1, that is, the query result list of SQL1. Using the target node type as the keyword, integrate the query result list into List1. The resulting List1 can be expressed as:
[0078] <{target node type 1,{source node ID1|target node ID1|target node ID2|...},{source node ID2|target node IDx|target node IDx+1|...},{...}},{target node type 2,{...}},{...}>.
[0079] Finally, the following loop processing is performed based on each target node type in List1:
[0080] A. Get all target node IDs under the target node type of the current loop and write them into the target node ID list;
[0081] B. According to the target node type, obtain the patient condition XYZ that the target node type needs to match from the node type-patient information association rule library and parse the values of each digit, and then combine with input 4 to obtain the content related to the patient condition required by the Where clause in dynamic SQL2. The implementation mechanism of this step is: define an empty string String1, and perform the following processing according to the obtained values of each digit of XYZ:
[0082] ① Determine the X-digit value (corresponding to the patient's age information). If it is 0, skip this step and proceed to step ②; if it is 1, obtain the patient's age information age from input 4 (that is, the patient's basic information); if the patient's age cannot be obtained, skip this step and proceed to step ②; if the patient's age is obtained, set String1 = "ANDage>[target node type corresponding model library table name].MinAge AND age<[target node type corresponding model library table name].MaxAge". It should be noted that the target node type corresponding model library table name here is the target node type name, MinAge and MaxAge are the corresponding fields of the target node type corresponding model library table, which are the applicable minimum age and applicable maximum age respectively;
[0083] ② Determine the Y-bit value (corresponding to the patient's gender information). If it is 0, skip this step and proceed to step ③; if it is 1, obtain the patient's gender information sex from input 4 (that is, the patient's basic information); if the gender information cannot be obtained, skip this step and proceed to step ③; if the patient's gender is obtained, set String1+="AND[target node type corresponding to the model library table name].Gender=sex". It should be noted that Gender is the applicable gender field in the model library table corresponding to the target node type;
[0084] ③ Determine the Z-bit value (corresponding to the patient's pregnancy information). If it is 0, end step B and proceed to step C below; if it is 1, obtain the patient's pregnancy information isPregnancy from input 4 (that is, the patient's basic information); if the pregnancy information cannot be obtained, end step B and proceed to step C below; if the information is obtained, set String1+="AND[target node type corresponding to the model library table name].IsPregnancy=isPregnancy". Among them, IsPregnancy is the pregnancy flag field in the model library table corresponding to the target node type.
[0085] Combine dynamic SQL2 statements, where: Select statement is determined to obtain all fields in the table corresponding to the target node type; From dynamic statement can be determined according to the target node type, and the name of the library table in the corresponding model is the name of the target node type; Where dynamic statement combination needs to consider two parts: first, the node ID field must be included in the target node ID list of the target node type in List1, and second, the content of String1 obtained in step B. Based on this, the obtained dynamic SQL2 statement is: SELECT*FROM the library table name corresponding to the target node type in the model WHERE ID in the target node ID list + String1.
[0086] C. Execute dynamic SQL2 to obtain the output of SQL2, that is, the query result list of SQL2; considering that different node types have different node structure lists, the query result list can be adapted to the target node structure list of different node types based on the node common infrastructure model.
[0087] D. Continue looping in List1 until the end.
[0088] The following describes the first recursive algorithm, the second recursive algorithm, and the third recursive algorithm in combination with the recursive relationship rule base:
[0089] The implementation of the first recursive algorithm is as follows:
[0090]
[0091]
[0092] The implementation of the second recursive algorithm is as follows:
[0093]
[0094] The implementation of the third recursive algorithm is as follows:
[0095]
[0096]
[0097] Based on the knowledge base proposed in the previous article, in the application scenario of syndrome differentiation based on disease differentiation proposed in the previous article, when obtaining the list of TCM treatment prescriptions through the preset dynamic query algorithm, the input used can be specifically: the source node type (that is, input 1) is the disease type "ill" or the four-diagnosis element type "sym"; the source node ID list (that is, input 2) is the disease ID list or the four-diagnosis element ID list; the target node type list (that is, input 3) includes the TCM treatment prescription type "acu"; the patient's basic information includes age information, gender information, and pregnancy information. Based on the above input, the dynamic query algorithm proposed in the previous article is used to obtain the syndrome differentiation result of the TCM treatment prescription list.
[0098] Based on the knowledge base proposed above, step 103 may specifically include:
[0099] A1. Through the preset dynamic query algorithm, the results of syndrome differentiation are used as input, and the techniques are queried in the preset TCM knowledge base in combination with the patient's basic information to obtain recommended techniques suitable for the patient.
[0100] In this step, based on the knowledge base proposed in the previous article, when obtaining the recommended techniques for the patient through the preset dynamic query algorithm, the input used can be specifically: the source node type (i.e., input 1) is the syndrome type "snf" or the TCM treatment type "acu"; the source node ID list (i.e., input 2) is the syndrome ID list or the TCM treatment ID list; the target node type list (i.e., input 3) includes the technique type "top"; the patient's basic information is age information, gender information, and pregnancy information. Based on the above input, using the dynamic query algorithm proposed in the previous article, more than one recommended technique suitable for the patient can be obtained.
[0101] A2. Through the preset dynamic query algorithm, the syndrome differentiation result is used as input, and the treatment location is queried in the preset traditional Chinese medicine knowledge base in combination with the patient's basic information to obtain candidate treatment locations.
[0102] In this step, based on the knowledge base proposed in the previous article, when obtaining the recommended techniques for the patient through the preset dynamic query algorithm, the input used can be specifically: the source node type (i.e., input 1) is the syndrome type "snf" or the TCM treatment type "acu"; the source node ID list (i.e., input 2) is the syndrome ID list or the TCM treatment ID list; the target node type list (i.e., input 3) includes the acupoint type "ana" and the part type "par"; the patient's basic information is age information, gender information, and pregnancy information. Based on the above input, using the dynamic query algorithm proposed in the previous article, at least one candidate treatment position can be obtained, including at least one candidate acupoint and at least one candidate part.
[0103] A3. Using the preset dynamic query algorithm, taking the syndrome differentiation result as input and combining the patient's basic information, the technique is queried in the preset TCM knowledge base to obtain candidate techniques;
[0104] In this step, based on the knowledge base proposed in the previous article, when obtaining the recommended techniques for the patient through the preset dynamic query algorithm, the input used can be specifically: the source node type (i.e., input 1) is the syndrome type "snf" or the TCM treatment type "acu"; the source node ID list (i.e., input 2) is the syndrome ID list or the TCM treatment ID list; the target node type list (i.e., input 3) includes the technique type "hnd"; the patient's basic information is age information, gender information, and pregnancy information. Based on the above input, the dynamic query algorithm proposed in the previous article is used to obtain more than one candidate technique suitable for the patient.
[0105] A4. Based on the recommended techniques, candidate treatment positions and candidate techniques are screened to obtain recommended treatment positions and recommended techniques.
[0106] In this step, there are certain differences in the implementation of the screening of candidate treatment locations and candidate techniques.
[0107] The following describes the specific process of screening candidate treatment locations based on the recommendation technique to obtain the recommended treatment location:
[0108] B1. Derivation based on a preset recursive algorithm and a recommended technique to obtain an associated treatment position, where the associated treatment position is associated with the recommended technique;
[0109] For ease of processing, the associated treatment position only focuses on the root node. Based on this, the recursive algorithm used in this step is specifically the first recursive algorithm and the third recursive algorithm. The specific implementation of this step is as follows:
[0110] ① Find the acupoint type ID and part type ID associated with the recommended technique:
[0111] i. According to the recommended technique TblID, search for the associated acupoint type ID and part type ID in the technique-treatment position type association rule base. If the record is found, the acupoint type ID and part type ID found are returned, and the recursive call in step ① ends, and the processing of step ② is entered. If no record is found, the processing of step ii is entered;
[0112] ii. Take the TblID and TblName of the recommended technique as the input of the first recursive algorithm to obtain the parent node TblID of the recommended technique. If the parent node TblID of the previous level = the specified technique TblID, it means that the recommended technique has no parent node, and the recursive call in step ① ends, and the processing of step ② is entered. On the contrary, if the parent node TblID of the previous level ≠ the specified technique TblID, the parent node TblID of the previous level is taken as the specified technique TblID, and the processing of step i in step ① is continued, and the recursive call is continued.
[0113] ② Determine whether step ① returns acupoint type ID and / or part type ID. If not, it means that the current recommended technique has no associated acupoint type and part type, and the screening step can be directly skipped, that is, there is no associated treatment position, and there is no need to screen the candidate treatment positions. On the contrary, if yes, go to step ③.
[0114] ③ Taking the returned acupoint type TblID and TblName, and / or the part type TblID and TblName as the input of the third recursive algorithm, taking the acupoint list and part list output by the third recursive algorithm as the associated treatment positions for subsequent processing.
[0115] B2. Screen candidate treatment positions based on associated treatment positions to obtain recommended treatment positions.
[0116] The electronic device can directly perform intersection processing on the associated treatment position and the candidate treatment position, and the obtained intersection result is the recommended treatment position.
[0117] The following describes the specific process of screening candidate techniques based on recommendation techniques to obtain recommended techniques:
[0118] C1. Based on the obtained recommendation techniques, perform root node search to obtain the recommended root node technique.
[0119] In this step, the second recursive algorithm is called in sequence, wherein the input TblName is "top", and the input TblID is the technique ID of each recommended technique in sequence, thereby obtaining the root node technique information of the technique, and obtaining multiple recommended root node techniques.
[0120] For the convenience of the following description, the list of multiple recommended root node techniques is recorded as the technique list topList, which includes the technique name and technique ID of the root node technique corresponding to each recommended technique. In addition, the list of multiple candidate techniques can also be recorded as technique hndList1.
[0121] C2. Traverse the technique list topList and perform the following operations based on the recommended root node technique currently traversed:
[0122] ① Traverse the technique list hndList1, and call the first recursive algorithm A with the input TblName as "hnd" and the input TblID as the currently traversed technique ID. In this way, the root node information of each technique in the technique list hndList1 can be obtained to form the technique list hndList2, which includes the technique name and technique ID of the root node technique corresponding to each candidate technique;
[0123] ②Clear the word “technique” from the names of all root node techniques in the technique list hndList2.
[0124] For example, based on the data structure currently set in the TCM knowledge base, a certain technique root node is "moxibustion technique", which should theoretically match the technique node "moxibustion". However, because the technique root node contains the text description "technique", the two cannot be completely matched, which may affect the matching efficiency. Based on this, in order to improve processing efficiency, the word "technique" in the name of all root node techniques in the technique list hndList2 can be cleared.
[0125] ③ Traverse the cleaned technique list hndList2 to determine whether the name of the currently traversed root node technique is equal to the name of the currently traversed recommended root node technique. If they are equal, add them to the recommended technique list tophndList, which uses the technique ID as the key. The definition of tophndList is as follows: <{topID1,{hndName1,hndID1},{hndName2,hndID2},{...}},{topID2,{...}},{...}>.
[0126] After completing the traversal of the technique list topList, the obtained recommended technique list tophndList is the result of the screening of the recommended techniques.
[0127] In some embodiments, in order to broaden the applicable population range of the TCM external treatment recommendation method and improve the versatility of the TCM external treatment recommendation method, after step 103, the TCM external treatment recommendation method may further include:
[0128] D1. In response to a selection instruction input by a user, a target treatment position and a target technique are determined from recommended treatment positions and recommended techniques.
[0129] It is understandable that there may actually be multiple recommended treatment positions; similarly, there may actually be multiple recommended techniques. For ordinary people who do not have relevant knowledge of traditional Chinese medicine, or practitioners of external treatment of traditional Chinese medicine who have just come into contact with traditional Chinese medicine, it may be difficult for them to obtain direct external treatment information from the recommended treatment positions and recommended techniques. For example, they may not know which specific position a certain recommended treatment position is, or they do not know how to perform a certain recommended technique. Based on this, the user can input selection instructions for the recommended treatment positions and recommended techniques, and select the recommended treatment positions and recommended techniques that they currently want to learn more about. The selected recommended treatment position can be recorded as the target treatment position, and the selected recommended technique can be recorded as the target technique.
[0130] D2. outputting first multimedia data according to the target treatment position, wherein the first multimedia data is used to provide an example of the target treatment position to the user in a multimedia form; and / or,
[0131] As described above, the knowledge base of the electronic device can be set to include an acupoint library, a body part library and a human meridian library, all of which contain information related to multimedia data (such as pictures). Based on this, the electronic device can perform the following operations: first, obtain the image information of the target human body picture corresponding to the target treatment position from the preset traditional Chinese medicine knowledge base, and the image information includes: the target image ID and the target treatment position coordinates; then, according to the target image ID, determine whether the target human body picture matches the foreground human body picture, wherein the foreground human body picture is: the human body picture currently displayed in the foreground of the display interface; then, if the target human body picture matches the foreground human body picture, according to the target treatment position coordinates, highlight the target treatment position in the foreground human body picture; finally, if the target human body picture does not match the foreground human body picture, update the foreground human body picture to the target human body picture, and highlight the target treatment position in the updated foreground human body picture.
[0132] It should be noted that if there are multiple target human body pictures, when updating the foreground human body picture to the target human body picture, considering that there can usually be only one foreground human body picture, for the acupoints, the target human body picture switched to the foreground display can be set in the priority order of: human body front view-human body side view-human body back view-ear view; similarly, for the parts, the target human body picture switched to the foreground display can be set in the priority order of: human body front area picture-human body back area picture.
[0133] D3. Output second multimedia data according to the target technique, where the second multimedia data is used to provide an example of the target technique to the user in a multimedia form.
[0134] The electronic device can obtain the corresponding manipulation picture from the preset traditional Chinese medicine knowledge base according to the manipulation picture ID corresponding to the target manipulation, and display it on the front-end display interface.
[0135] As an example, the electronic device may consider combining the target manipulation and the target treatment position and outputting comprehensive multimedia data. Figure 2 , Figure 2 An example of the output of comprehensive multimedia data is given when the target manipulation is kneading and the target treatment location is Baihui acupoint. Figure 2 The grey dot in the middle is the Baihui acupoint.
[0136] In some embodiments, the electronic device may also input a meridian selection instruction based on a human body picture when a human body picture is already displayed in the foreground, thereby highlighting specific meridians in the human body picture, which will not be elaborated here.
[0137] See also Figure 3 , Figure 3 An example of a display interface in an embodiment of the present application is given. The upper half of the display interface may display a front view of a human body by default (limited by space, Figure 3 In the front view of the human body, only part of it is displayed), it can be switched to the side view or the back view of the human body according to needs or based on the content to be displayed. In the front view of the human body, all relevant acupoints can be displayed. The lower part of the display interface can display external treatment recommendation data, such as recommended techniques, treatment plans, recommended treatment sites and recommended techniques, etc., and a search bar can also be displayed to provide a search function. In addition, a meridian acupoint tree table can also be displayed to provide users with a reference for meridian acupoint knowledge. When the user selects the meridian acupoint they want to know in the meridian tree table, the meridian and acupoints can be displayed in the human body diagram displayed in the upper part of the display interface.
[0138] As can be seen from the above, the embodiment of the present application introduces the dialectical thinking in traditional Chinese medicine to address the problem that practitioners of traditional Chinese medicine external treatment lack the ability to distinguish and treat symptoms. First, the patient's medical dialectical characteristics are determined from the patient's medical record text, and then the dialectical results are derived based on this, so as to have a clearer understanding of the patient's specific situation. Finally, based on this dialectical result, external treatment recommendation data suitable for the patient is generated, wherein the external treatment recommendation data includes recommended techniques, recommended treatment locations, and recommended techniques, etc. These are all data required for traditional Chinese medicine external treatment. As can be seen from the above, through the embodiment of the present application, auxiliary decision-making for traditional Chinese medicine external treatment can be achieved, which helps patients obtain traditional Chinese medicine external treatment plans with reference value.
[0139] Corresponding to the TCM external treatment recommendation method provided above, the present application embodiment also provides a TCM external treatment recommendation device. Figure 4As shown, the TCM external treatment recommendation device 4 includes: a first determination module 401, a derivation module 404 and a generation module 403;
[0140] The first determination module 401 is used to determine the medical syndrome differentiation characteristics of the patient through the patient's medical record text;
[0141] A derivation module 404 is used to derive the patient's syndrome differentiation result according to the medical syndrome differentiation characteristics;
[0142] The generation module 403 is used to generate external treatment recommendation data suitable for the patient based on the syndrome differentiation results. The external treatment recommendation data includes: recommended techniques, recommended treatment locations and recommended manipulations.
[0143] In some embodiments, the medical syndrome differentiation result includes: a set of four diagnostic elements; the set of four diagnostic elements includes multiple four diagnostic elements, and the four diagnostic elements are disease-related characteristics of the patient described from the perspective of the four diagnostics of traditional Chinese medicine; the syndrome differentiation result includes: a syndrome element list; the derivation module 404 includes:
[0144] The first derivation unit is used to derive multiple target syndrome elements according to the four diagnostic element sets and a preset TCM knowledge base;
[0145] The sorting unit is used to sort multiple target certificate elements based on a preset certificate element sorting order to obtain a certificate element list.
[0146] In some embodiments, the medical syndrome differentiation result includes: a set of Chinese and Western medicine diseases and four diagnostic elements; the four diagnostic element set includes multiple four diagnostic elements, and the four diagnostic elements are disease-related characteristics of the patient described from the perspective of the four diagnostics of traditional Chinese medicine; the syndrome differentiation result includes: a list of traditional Chinese medicine treatment prescriptions; the derivation module 404 includes:
[0147] The first query unit is used to use a preset dynamic query algorithm, with a set of four diagnostic elements or Chinese and Western medicine diseases as input, and in combination with the patient's basic information, to query the TCM treatment prescriptions in a preset TCM knowledge base to obtain a list of TCM treatment prescriptions, the basic information of which includes: age information, gender information and pregnancy information.
[0148] In some embodiments, the generating module 403 includes:
[0149] The second query unit is used to query the techniques in a preset TCM knowledge base by using a preset dynamic query algorithm and taking the syndrome differentiation result as input in combination with the basic information of the patient, so as to obtain the recommended techniques suitable for the patient;
[0150] A third query unit is used to query the treatment location in a preset TCM knowledge base by using a preset dynamic query algorithm and taking the syndrome differentiation result as input in combination with the basic information of the patient to obtain a candidate treatment location;
[0151] The fourth query unit is used to query the technique in a preset TCM knowledge base by using a preset dynamic query algorithm and taking the syndrome differentiation result as input and combining the basic information of the patient to obtain candidate techniques;
[0152] The screening unit is used to screen candidate treatment positions and candidate techniques based on the recommended techniques to obtain recommended treatment positions and recommended techniques.
[0153] In some embodiments, the screening unit comprises:
[0154] A derivation subunit, used for derivation based on a preset recursive algorithm and a recommended technique to obtain an associated treatment position and an associated technique, wherein the associated treatment position and the associated technique are both associated with the recommended technique;
[0155] A first screening subunit, configured to screen candidate treatment positions based on associated treatment positions to obtain recommended treatment positions;
[0156] The second screening subunit is used to screen the candidate techniques based on the associated techniques to obtain the recommended techniques.
[0157] In some embodiments, the TCM external treatment recommendation device 4 further includes:
[0158] A second selection module is used to determine a target treatment position and a target technique from the recommended treatment positions and recommended techniques in response to a selection instruction input by a user;
[0159] A first output module is used to output first multimedia data according to the target treatment position, wherein the first multimedia data is used to provide an example of the target treatment position to the user in a multimedia form; and / or,
[0160] The second output module is used to output second multimedia data according to the target technique, and the second multimedia data is used to provide an example of the target technique to the user in a multimedia form.
[0161] In some embodiments, the first output module includes:
[0162] An acquisition unit is used to acquire image information of a target human body image corresponding to a target treatment position from a preset traditional Chinese medicine knowledge base, wherein the image information includes: a target image ID and coordinates of a target treatment position;
[0163] A judgment unit, used to judge whether the target human body picture matches the foreground human body picture according to the target picture ID, wherein the foreground human body picture is: the human body picture currently displayed in the foreground of the display interface;
[0164] A first display unit is used to highlight the target treatment position in the foreground human body picture according to the target treatment position coordinates when the target human body picture matches the foreground human body picture;
[0165] The second display unit is used to update the foreground human body image to the target human body image when the target human body image does not match the foreground human body image, and highlight the target treatment position in the updated foreground human body image.
[0166] The embodiment of the present application aims at the problem that practitioners of TCM external treatment lack the ability to distinguish and treat syndromes, and introduces the dialectical thinking in TCM. First, the patient's medical dialectical characteristics are determined from the patient's medical record text, and then the dialectical results are derived based on this, so as to have a clearer understanding of the patient's specific situation. Finally, based on this dialectical result, external treatment recommendation data suitable for the patient is generated, wherein the external treatment recommendation data includes recommended techniques, recommended treatment locations and recommended methods, etc. These are all data required for TCM external treatment. As can be seen from the above, through the embodiment of the present application, auxiliary decision-making for TCM external treatment can be realized, which helps patients obtain TCM external treatment plans with reference value.
[0167] Corresponding to the recommended method of TCM external treatment provided above, the present application embodiment also provides an electronic device. Figure 5 The electronic device 5 in the embodiment of the present application includes: a memory 501, one or more processors 502 ( Figure 5 Only one is shown) and a computer program stored in the memory 501 and executable on the processor. Among them: the memory 501 is used to store software programs and units, and the processor 502 executes various functional applications and data processing by running the software programs and units stored in the memory 501 to obtain the resources corresponding to the above-mentioned preset events. Specifically, the processor 502 implements each step in the above-mentioned method embodiment by running the above-mentioned computer program stored in the memory 501, which will not be repeated here.
[0168] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0169] The memory 501 may include a read-only memory and a random access memory, and provide instructions and data to the processor 502. A part or all of the memory 501 may also include a non-volatile random access memory. For example, the memory 501 may also store information of a device category.
[0170] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0171] It can be understood that the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the associated hardware through a computer program. The above-mentioned computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the above-mentioned computer program includes computer program code, and the above-mentioned computer program code can be in source code form, object code form, executable file or some intermediate form. The above-mentioned computer-readable storage medium may include: any entity or device capable of carrying the above-mentioned computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer-readable memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the above-mentioned computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage medium does not include electric carrier signal and telecommunication signal.
[0172] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A recommended method of external treatment of traditional Chinese medicine, characterized in that: include: Determine the medical syndrome characteristics of the patient through the patient's medical record text; Deducing the syndrome differentiation result of the patient according to the medical syndrome differentiation characteristics; Based on the syndrome differentiation result, external treatment recommendation data suitable for the patient is generated, and the external treatment recommendation data includes: recommended techniques, recommended treatment locations and recommended manipulations.
2. The recommended method of TCM external treatment as claimed in claim 1, characterized in that: The medical syndrome differentiation feature includes: a set of four diagnostic elements; the set of four diagnostic elements includes multiple four diagnostic elements, and the four diagnostic elements are disease-related characteristics of the patient described from the perspective of the four diagnostic methods of traditional Chinese medicine; the syndrome differentiation result includes: a syndrome element list; the syndrome differentiation result of the patient derived from the medical syndrome differentiation feature includes: Derivation of multiple target syndrome elements based on the four diagnostic element sets and a preset TCM knowledge base; Based on a preset certificate element sorting order, the plurality of target certificate elements are sorted to obtain the certificate element list.
3. The recommended method of TCM external treatment as claimed in claim 1, characterized in that: The medical syndrome differentiation characteristics include: a set of Chinese and Western medicine diseases and four diagnostic elements; the four diagnostic element set includes multiple four diagnostic elements, and the four diagnostic elements are disease-related characteristics of the patient described from the perspective of the four diagnostics of traditional Chinese medicine; the syndrome differentiation results include: a list of traditional Chinese medicine treatment prescriptions; the syndrome differentiation results of the patient derived from the medical syndrome differentiation characteristics include: Through a preset dynamic query algorithm, the four diagnostic element set or the Chinese and Western medicine diseases are used as input, and combined with the patient's basic information, the Chinese medicine treatment prescriptions are queried in the preset Chinese medicine knowledge base to obtain the Chinese medicine treatment prescription list, and the basic information includes: age information, gender information and pregnancy information.
4. The recommended method of TCM external treatment as claimed in claim 1, characterized in that: The generating of external treatment recommendation data suitable for the patient based on the syndrome differentiation result comprises: By using a preset dynamic query algorithm, taking the syndrome differentiation result as input and combining the basic information of the patient, the techniques are queried in a preset TCM knowledge base to obtain a recommended technique suitable for the patient; By using a preset dynamic query algorithm, taking the syndrome differentiation result as input and combining the basic information of the patient, querying the treatment location in a preset traditional Chinese medicine knowledge base to obtain candidate treatment locations; By using a preset dynamic query algorithm, the syndrome differentiation result is used as input, and the technique is queried in a preset TCM knowledge base in combination with the basic information of the patient to obtain candidate techniques; The candidate treatment positions and the candidate techniques are screened based on the recommended techniques to obtain recommended treatment positions and recommended techniques.
5. The recommended method of TCM external treatment as claimed in claim 4, characterized in that: The screening of the candidate treatment positions and the candidate techniques based on the recommended technique to obtain the recommended treatment positions and the recommended techniques includes: Deducing based on a preset recursive algorithm and the recommended technique, obtaining an associated treatment position and an associated technique, wherein the associated treatment position and the associated technique are both associated with the recommended technique; The candidate treatment positions are screened based on the associated treatment positions to obtain the recommended treatment positions.
6. The recommended method of TCM external treatment according to any one of claims 1 to 5, characterized in that: After generating the external treatment recommendation data suitable for the patient, the TCM external treatment recommendation method further includes: In response to a selection instruction input by a user, determining a target treatment position and a target technique from among the recommended treatment positions and the recommended techniques; outputting first multimedia data according to the target treatment position, wherein the first multimedia data is used to provide an example of the target treatment position to a user in a multimedia form; and / or, According to the target technique, second multimedia data is output, where the second multimedia data is used to provide an example of the target technique to the user in a multimedia form.
7. The recommended method of TCM external treatment as claimed in claim 6, characterized in that: Outputting first multimedia data according to the target treatment position, wherein the first multimedia data is used to provide an example of the target treatment position to a user in a multimedia form, including: Obtaining image information of a target human body image corresponding to the target treatment position from a preset traditional Chinese medicine knowledge base, wherein the image information includes: a target image ID and target treatment position coordinates; According to the target image ID, determine whether the target human body image matches the foreground human body image, wherein the foreground human body image is: the human body image currently displayed in the foreground of the display interface; When the target human body image matches the foreground human body image, highlighting the target treatment position in the foreground human body image according to the target treatment position coordinates; In the case that the target human body image does not match the foreground human body image, the foreground human body image is updated to the target human body image, and the target treatment position is highlighted in the updated foreground human body image.
8. A device for recommending external treatment of traditional Chinese medicine, characterized in that: include: A first determination module is used to determine the medical syndrome differentiation characteristics of the patient through the patient's medical record text; A derivation module, used for derivation of the syndrome differentiation result of the patient according to the medical syndrome differentiation characteristics; A generation module is used to generate external treatment recommendation data suitable for the patient based on the syndrome differentiation result, and the external treatment recommendation data includes: recommended techniques, recommended treatment locations and recommended manipulations.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
