CN114496119A - Method and device for tracing evolution relationship of prescription and server - Google Patents

Method and device for tracing evolution relationship of prescription and server Download PDF

Info

Publication number
CN114496119A
CN114496119A CN202210100031.9A CN202210100031A CN114496119A CN 114496119 A CN114496119 A CN 114496119A CN 202210100031 A CN202210100031 A CN 202210100031A CN 114496119 A CN114496119 A CN 114496119A
Authority
CN
China
Prior art keywords
data
prescription
book
candidate
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210100031.9A
Other languages
Chinese (zh)
Inventor
马文辉
蔡芳正
高秋实
蔡少阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yideng Xuyan Shanghai Biotechnology Co ltd
Original Assignee
Yideng Xuyan Shanghai Biotechnology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yideng Xuyan Shanghai Biotechnology Co ltd filed Critical Yideng Xuyan Shanghai Biotechnology Co ltd
Priority to CN202210100031.9A priority Critical patent/CN114496119A/en
Publication of CN114496119A publication Critical patent/CN114496119A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16CCOMPUTATIONAL CHEMISTRY; CHEMOINFORMATICS; COMPUTATIONAL MATERIALS SCIENCE
    • G16C20/00Chemoinformatics, i.e. ICT specially adapted for the handling of physicochemical or structural data of chemical particles, elements, compounds or mixtures
    • G16C20/80Data visualisation
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16CCOMPUTATIONAL CHEMISTRY; CHEMOINFORMATICS; COMPUTATIONAL MATERIALS SCIENCE
    • G16C20/00Chemoinformatics, i.e. ICT specially adapted for the handling of physicochemical or structural data of chemical particles, elements, compounds or mixtures
    • G16C20/70Machine learning, data mining or chemometrics
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16CCOMPUTATIONAL CHEMISTRY; CHEMOINFORMATICS; COMPUTATIONAL MATERIALS SCIENCE
    • G16C20/00Chemoinformatics, i.e. ICT specially adapted for the handling of physicochemical or structural data of chemical particles, elements, compounds or mixtures
    • G16C20/90Programming languages; Computing architectures; Database systems; Data warehousing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Chemical & Material Sciences (AREA)
  • Crystallography & Structural Chemistry (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Medical Treatment And Welfare Office Work (AREA)

Abstract

The invention provides a method, a device and a server for tracing an evolution relation of a prescription, which relate to the technical field of computers and comprise the following steps: acquiring information of a prescription to be traced; determining target data matched with the information of the prescription to be traced based on a pre-established database set; and constructing an evolution relation diagram corresponding to the information of the prescription to be traced according to the component standard data and each book data. The invention can obviously improve the tracing rate of the traditional Chinese medicine prescription, improve the reliability of tracing information, reduce the labor cost and environmental limitation, and simplify the prescription tracing process, thereby effectively improving the practicability of the tracing scheme.

Description

Method and device for tracing evolution relationship of prescription and server
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for tracing an evolution relation of a prescription and a server.
Background
The analysis method for the evolution process of the traditional Chinese medicine prescription is traced according to the information of the name, the components, the origin and the like of the prescription. At present, a prescription tracing mode of manually browsing a large number of medical classics or writings is mostly adopted, the mode consumes more manpower, and human factors are difficult to control, so that the accuracy of data is low, and the timeliness of prescription tracing is low due to high difficulty of manual tracing.
Disclosure of Invention
In view of this, the invention aims to provide a tracing method, equipment and server for the evolution relationship of a prescription, which can significantly improve the tracing rate of the traditional Chinese medicine prescription, improve the reliability of tracing information, reduce the labor cost and environmental limitation of manpower, and simplify the tracing process of the prescription, thereby effectively improving the practicability of the tracing scheme.
In a first aspect, an embodiment of the present invention provides a method for tracing an evolutionary relationship of a prescription, including: acquiring information of a prescription to be traced; determining target data matched with the information of the prescription to be traced based on a pre-established database set, wherein the target data comprises component standard data and at least one book data; constructing an evolution relation diagram corresponding to the prescription information to be traced according to the component standard data and each book data; wherein the evolutionary relationship graph is used for representing the evolutionary relationship between the classical book data.
In one embodiment, the database collection includes a database of standard prescriptions and a database of prescriptions classical; the standard database comprises a corresponding relation between prescription standard data and the alias of the prescription, and also comprises a corresponding relation between component standard data of components contained in the prescription and the alias of the components; the prescription book database includes a correspondence between prescription standard identifications and book data including one or more of book names, publication times, chapter information, and historical prescription compositions.
In one embodiment, the step of determining target data matched with the prescription information to be traced based on a pre-established database set comprises the following steps: searching prescription standard data and component standard data matched with the information of the prescription to be traced in a standard database; and searching the book data matched with the prescription standard data in the book database.
In one embodiment, the step of constructing an evolutionary relationship diagram corresponding to the prescription information to be traced according to the component standard data and each book data comprises the following steps: determining a first node from the classical data according to the publication time in each classical data; for the other book data except the first node, dividing the other book data into a plurality of candidate book combinations according to the composition standard data, and determining the cascade relation between each candidate book combination; and constructing an evolutionary relationship diagram corresponding to the prescription information to be traced according to the first node, each candidate book combination and the cascade relationship among the candidate book combinations.
In one embodiment, the step of dividing the remaining book data into a plurality of sets of candidate book combinations based on the component criteria data and determining the cascade relationship between each of the candidate book combinations further comprises: dividing the rest of the book data into a plurality of groups of candidate book combinations according to the component standard data and the publication time of the book data; for each candidate classic combination, determining the classic data with the earliest publication time in the candidate classic combination as a second node of the candidate classic combination, and taking the rest of the classic data except the second node in the candidate classic combination as a third node under the second node; and sorting the third nodes in each candidate book combination from morning to evening according to the publishing time, and sorting the second nodes from morning to evening according to the publishing time.
In one embodiment, the step of dividing the remaining book data into a plurality of sets of candidate book combinations based on the component criteria data and determining the cascade relationship between each of the candidate book combinations further comprises: and determining historical prescription components shared by the book data in any group of candidate book combinations as the identifications of the candidate book combinations, wherein the identifications corresponding to different candidate book combinations are different.
In one embodiment, the step of determining the historical prescription components shared by the book data in any group of candidate book combinations as the identifiers of the candidate combinations, wherein the identifiers corresponding to different candidate combinations are different, further comprises the following steps: if any of the book data to be grouped comprises the identifications corresponding to the candidate book combinations, determining the second node of the corresponding candidate book combination and the publishing time contained in the book data in the second node according to the identifications; determining a second node whose publication time is before the publication time of the book data to be grouped and is closest to the publication time of the book data to be grouped; and dividing the book data to be grouped into candidate book combinations corresponding to the second node.
In a second aspect, an embodiment of the present invention further provides a device for tracing an evolution relationship of a prescription, including: the prescription information acquisition module is used for acquiring information of prescriptions to be traced; the target data determining module is used for determining target data matched with the information of the prescription to be traced based on a pre-established database set, wherein the target data comprises component standard data and at least one piece of classical data; the evolution relation building module is used for building an evolution relation graph corresponding to the information of the prescription to be traced according to the component standard data and each book data; wherein the evolutionary relationship graph is used for representing the evolutionary relationship between the classical book data.
In a third aspect, an embodiment of the present invention further provides a server, including a processor and a memory, where the memory stores computer-executable instructions capable of being executed by the processor, and the processor executes the computer-executable instructions to implement any one of the methods provided in the first aspect.
In a fourth aspect, embodiments of the present invention also provide a computer-readable storage medium storing computer-executable instructions that, when invoked and executed by a processor, cause the processor to implement any one of the methods provided in the first aspect.
The embodiment of the invention has the following beneficial effects:
the embodiment of the invention provides a method and a device for tracing an evolutionary relationship of a prescription, electronic equipment and a computer-readable storage medium, wherein when the evolutionary relationship of the prescription is traced, the method acquires information of the prescription to be traced, matches the prescription to be traced with a pre-established database set respectively to obtain target data, and obtains an evolutionary relationship diagram corresponding to the information of the prescription to be traced through circular calculation according to the target data. According to the method, when the evolutionary relationship of the traditional Chinese medicine prescription is traced, the evolutionary relationship of the tracing prescription can be intelligently calculated through a computer, the target data matched with the information of the prescription to be traced is determined by utilizing a pre-established database set, and the evolutionary relationship diagram of the information of the prescription to be traced is constructed on the basis.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic flow chart of a tracing method of a prescription evolution relationship provided in an embodiment of the present invention;
fig. 2 is a specific flow diagram of a tracing method for a prescription evolution relationship according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of another method for tracing an evolutionary relationship of a formula according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating names of prescriptions to be traced according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of target data according to an embodiment of the present invention;
fig. 6 is a schematic diagram of an evolution prescription grading of an ephedra decoction provided by an embodiment of the invention;
fig. 7 is a schematic diagram illustrating an evolution relationship of an ephedra decoction according to an embodiment of the invention;
fig. 8 is a schematic structural diagram of a tracing apparatus for an evolutionary relationship provided in an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the embodiments, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, the first writing of the prescription is generally the initial source of the prescription, the doctors of descendants can adjust the assistant and guide proportion of the prescription according to different age levels or seasons of different diseases or add and subtract medicinal materials to adapt to different diseases according to the writing of ancestors in the actual application process, and the evolution of the prescription is formed by recording in the classical books. According to the method, the tracing speed of the traditional Chinese medicine prescription evolution relation can be obviously improved, the tracing reliability of the tracing information can be improved, the labor cost and the environmental limit of the prescription can be reduced, the prescription tracing process can be simplified, and the practicability of the tracing scheme can be effectively improved.
Referring to fig. 1, a schematic flow chart of a tracing method of a prescription evolution relationship mainly includes the following steps S102 to S106:
and S102, acquiring information of the prescription to be traced. The prescription information to be traced can be understood as the acquired prescription name of the user prescription which is not standardized by the prescription name.
In one embodiment, the information of the formulas to be traced can be input into the computer, so that the process of tracing the evolution relationship of the formulas by the computer is started.
And step S104, determining target data matched with the prescription information to be traced based on a pre-established database set. The database comprises a standardized prescription database, a component database and a prescription classical database, wherein the standardized prescription database comprises the names of all prescriptions and the corresponding formal standard prescription names of the prescriptions, the component database comprises the medicinal material components of all prescriptions, the prescription classical database comprises the corresponding relation between the standard identifications of the prescriptions and the classical data, the classical data comprises one or more of the classical name, the publishing time, the chapter information and the historical prescription components, and the target data comprises the component standard data and at least one piece of the classical data.
In one embodiment, a standardized prescription database and a component database are combined to form a standard database, the standard database comprises a corresponding relation between prescription standard data and prescription alias names and a corresponding relation between component standard data and component alias names of components contained in a prescription, the prescription names and medicinal material names of the prescriptions and the component names which are consistent in efficacy but are of the eight families are standardized to obtain the standard names of the prescriptions and the medicinal materials, so that the acquired information of the prescription to be traced input by a user is ensured, and after the standardized database is matched with the component database, a computer system can match the prescriptions and the medicinal material names of the regular standard, and the source and the evolution relation of the prescription can be traced more normatively and accurately.
And S106, constructing an evolutionary relationship diagram corresponding to the prescription information to be traced according to the component standard data and each classical book data. The evolutionary relationship diagram corresponding to the information of the formulas to be traced can be understood as an evolutionary relationship diagram obtained by intelligently calculating the evolutionary relationship among the formulas according to the year of the formulas and the components of the formulas by a computer and displaying the evolutionary relationship in the form of an evolutionary relationship tree.
In one embodiment, the component standard data and each classical book data are circularly calculated to obtain a corresponding evolution relation graph, the evolution relation graph of the formula is similar to a family relation family spectrogram, a first-generation formula can be quoted by multiple persons and evolved to form a second-generation formula, a second-generation formula can be quoted by multiple persons and evolved to form a third-generation formula, a third-generation formula can be quoted by multiple persons and evolved to form a fourth-generation formula, and the like for development.
According to the method for tracing the evolutionary relationship of the formulas, provided by the embodiment of the invention, when the evolutionary relationship of the formulas is traced, the information of the formulas to be traced is obtained, the formulas to be traced are respectively matched with a pre-established database set to obtain target data, and an evolutionary relationship diagram corresponding to the information of the formulas to be traced is obtained through cyclic calculation according to the target data. According to the method, when the evolutionary relationship of the traditional Chinese medicine prescription is traced, the evolutionary relationship of the prescription can be traced through intelligent calculation of a computer, complex operation and a large amount of manpower are not needed, so that the tracing rate of the traditional Chinese medicine prescription is obviously improved, the reliability of tracing information is improved, the labor cost and environmental limitation of the manpower are reduced, the prescription tracing process is simplified, and the practicability of the tracing scheme is effectively improved.
In an implementation manner, when the step S104 is executed, the embodiment of the present invention may further search the standard database for prescription standard data and component standard data matching the information of the prescription to be traced, so as to obtain component standard data of the prescription to be traced, and search the classical book database for classical book data matching the prescription standard data, so as to obtain classical book data of the prescription to be traced.
In practical application, a one-to-many relationship between standard names and alias names of medicinal materials is established, and a standard database of medicinal material musk is established as shown in table 1 below, wherein the standard database contains description alias names (such as Dangmen, Xiuxiang, Yuanxiang and the like) and remark information of more than ten types of musk in prescription.
TABLE 1
In practical applications, each of the herbs in the prescription is read according to the standard name correspondence relationship of the herbs, and the names of the herbs in the prescription are standardized to establish a prescription-herb name standardization table, as shown in table 2 below.
TABLE 2
The embodiment of the invention also provides an implementation mode for calculating the evolution relationship of the prescription, which is specifically shown in the following (1) to (3):
(1) and determining a first node from the book data according to the publishing time in each book data, wherein only one first node exists, and selecting the prescription with the earliest time as the first node according to the time of recording the prescriptions.
In one embodiment, standardized formula A is extracted, the components in formula A are read into array (array function), all medical records containing formula A are read, and the medical records are sorted according to the order of the year to form a ListBook and a formula B sequence; b0 and ListBook 0 are recorded as TreeviewA root node, and B0's year, recipe name and work name are recorded.
(2) For the remaining classical data other than the first node, the remaining classical data is divided into a plurality of sets of candidate classical combinations according to the composition criterion data, and a cascade relationship between each of the candidate classical combinations is determined. For example, an embodiment of the present invention provides an implementation of determining a cascade relationship between each candidate book combination, see steps a1 to a3 as follows:
step a1, dividing the remaining book data into a plurality of candidate book combinations according to the component standard data and the publication time of the book data. In one embodiment, the step of dividing the candidate book combination may be performed as follows step a1.1 to step a 1.4:
a1.1, determining historical prescription components shared by book data in any group of candidate book combinations as the identifications of the candidate book combinations, wherein the identifications corresponding to different candidate book combinations are different;
a1.2, if any of the book data to be grouped comprises identifications corresponding to a plurality of candidate book combinations, determining a second node of the corresponding candidate book combination according to the identifications and publishing time contained in the book data in the second node;
a1.3, determining a second node which has the publication time before the publication time of the book data to be grouped and is closest to the publication time of the book data to be grouped;
a1.4, dividing the data of the book to be grouped into candidate book combinations corresponding to the second node. The nodes of the evolutionary relationship tree comprise a first node (root node), a second node and a third node (child nodes of the second node), only one first node exists, a formula with the earliest time is selected as the first node according to the time of recording the formulas, the second node and the third node exist in a plurality, and the second node and the third node are distinguished according to the similarity of components among the formulas and the publishing time recorded in the click record.
In one embodiment, B [0] and ListBook [1] records the first child node (second node) set as the root node of TreeviewA (evolutionary relationship Tree), and records the year, formula name, and work name of B [0 ].
Step a2, for each candidate family combination, determining the family data with the earliest publication time in the candidate family combination as the second node of the candidate family combination, and using the rest family data except the second node in the candidate family combination as the third node under the second node. The second node is the book data with the earliest publication time in the book combination, and the prescription components of the rest of book data in the book combination all comprise the prescription components in the book data of the second node.
In one embodiment, a loop is created to read node data from the prescription B3 record, component data in prescription B i is read, and a loop is created from j to i-1 according to traversed prescription B; reading the components in the prescription B [ j ], if the similarity between the B [ i ] components and the B [ j ] components is more than 90%, determining the component as a child node (third node) of the B [ j ], and if the similarity is less than 90%, determining the component as a second node; the year, name of the formula, title of the work of the formula are recorded and the loop is exited.
Step a3, sorting the third nodes in each candidate book combination by publication time from morning to evening, and sorting the second nodes by publication time from morning to evening. And sequencing the third nodes in the candidate classic combination and the second nodes according to the publication time so that all agents in the evolutionary relationship tree are convenient to query.
(3) And constructing an evolutionary relationship diagram corresponding to the prescription information to be traced according to the first node, each candidate book combination and the cascade relationship among the candidate book combinations. The evolutionary relationship diagram corresponding to the information of the formulas to be traced can be understood as an evolutionary relationship diagram obtained by intelligently calculating the evolutionary relationship among the formulas according to the year of the formulas and the components of the formulas by a computer and displaying the evolutionary relationship in the form of an evolutionary relationship tree.
In one embodiment, if record B [ i ] is the last one, the loop is ended, the evolutionary relationship tree is loaded, and the evolutionary relationship tree is dynamically displayed.
In order to facilitate understanding of the data processing method provided by the embodiment, the embodiment of the invention provides an application example of a tracing method for the evolution relationship of the formula, which is shown in fig. 2, and the specific flow diagram of the tracing method for the evolution relationship of the formula is shown, the names and the component names of the traditional Chinese medicine formula are standardized to establish a standardized formula database and a component database, and a traditional Chinese medical book database is established, so that the data base is established without computer intelligent calculation of the evolution relationship of the tracing formula, the information of the formula to be traced by a user is collected, the standardized name is matched, the evolutionary relationship of the standardized formula is subjected to computer calculation tracing, the evolutionary relationship of the standardized formula is displayed in the form of an evolutionary relationship tree, and on the basis, the tracing rate of the traditional Chinese medicine formula is increased, the reliability of tracing information is improved, the labor cost and the environmental limitation are reduced, the prescription tracing process is simplified, so that the practicability of the tracing scheme is effectively improved, see a flow diagram of another tracing method for the evolution relationship of the prescription shown in fig. 3, and the method mainly comprises the following steps S302 to S314:
step S302, a database set is established. The database comprises a standardized prescription database, a component database and a prescription classical database, wherein the standardized prescription database comprises the names of all prescriptions and the corresponding prescriptions with normal standards, the component database comprises the medicinal material components of all prescriptions, the prescription classical database comprises the corresponding relation between the standard identifications of the prescriptions and classical data, and the classical data comprises one or more of the classical name, the publishing time, the chapter information and the historical prescription components.
In one embodiment, a standardized prescription database and a component database are combined to form a standard database, the standard database comprises a corresponding relation between prescription standard data and prescription alias names and a corresponding relation between component standard data and component alias names of components contained in a prescription, the prescription names and medicinal material names of the prescriptions and the component names which are consistent in efficacy but are of the eight families are standardized to obtain the standard names of the prescriptions and the medicinal materials, so that the acquired information of the prescription to be traced input by a user is ensured, and after the standardized database is matched with the component database, a computer system can match the prescriptions and the medicinal material names of the regular standard, and the source and the evolution relation of the prescription can be traced more normatively and accurately.
And step S304, acquiring information of the prescription to be traced, and matching the information of the prescription to be traced with a database to acquire target data. The information of the prescriptions to be traced can be understood as the names of the prescriptions of the collected user prescriptions which are not standardized by the names of the prescriptions.
In one embodiment, as shown in a schematic diagram of names of formulas to be traced shown in fig. 4, a name of the formula to be traced, namely ephedra decoction, is obtained, and the formula number and the medicinal material component information of the ephedra decoction in a database are determined; as shown in a schematic diagram of target data shown in fig. 5, 32 prescription records containing ephedra decoction are screened out by matching the information of the prescription to be traced with a database.
Step S306, loop calculation is performed on the target data. Wherein the target data includes component standard data and at least one of classical data.
In one embodiment, the standard data of the ingredients of the prescriptions in the target data are sequentially read, a cycle is established according to the read data, and the similarity between different target data is determined according to the classical book time and the prescriptions ingredients, so that the cycle calculation is performed.
And S308, setting the formula evolutionary relationship tree, and determining each level of nodes of the formula evolutionary relationship tree according to the calculation result of the circular calculation. The node of the evolutionary relationship tree of the ephedra decoction comprises a first node (root node), a second node and a third node (child nodes of the second node), wherein the first node is only one, the formula with the earliest time is selected as the first node according to the time for recording the formulas, the second node and the third node are multiple, and the second node and the third node are distinguished according to the similarity of components among the formulas and the publishing time recorded in the click record.
In one embodiment, as shown in fig. 6, the evolutionary formula of an ephedra decoction is shown in a hierarchical schematic diagram, the publication time recorded in the classic data of the ephedra decoction is eastern Han years, the ephedra decoction is recorded in the book of Shanghai treatise, the ephedra decoction comprises the components of ephedra, cassia twig, liquorice and almond, and is the earliest record with classic, so that the ephedra decoction is selected as a root node; the ephedra almond licorice gypsum decoction is an evolved prescription of the ephedra almond licorice gypsum decoction from the name of the prescription, the cassia twig is removed and the gypsum is added on the basis of the original prescription components of the ephedra decoction, the prescription components are changed into ephedra, almond, licorice and gypsum, and the ephedra almond licorice gypsum decoction has various different effects, so that the evolved prescription is formed, and the ephedra almond licorice gypsum decoction is determined as a first node and a second node; the prescription components of the ephedra-cassia twig decoction comprise ephedra, cassia twig, radix paeoniae rubra, liquorice and almond, and the ephedra-cassia twig decoction comprises all prescription components of the ephedra decoction, and the radix paeoniae rubra is added on the basis of the prescription components of the ephedra decoction, so that the ephedra-cassia twig decoction is determined as a second node; the ephedra almond licorice gypsum decoction is prepared from ephedra, almond, licorice and gypsum, and has the same components as those of the ephedra almond licorice gypsum decoction, and the publication time recorded in the book data of the ephedra almond licorice gypsum decoction is before the ephedra almond gypsum decoction, so that the ephedra almond gypsum decoction is determined as a child node of a first node and a second node, and by analogy, all levels of nodes of the evolution relation tree of all formulas are determined.
And S310, determining an evolutionary relationship graph according to nodes of each level of the prescription evolutionary relationship tree. The evolutionary relationship diagram corresponding to the information of the formulas to be traced can be understood as an evolutionary relationship diagram obtained by intelligently calculating the evolutionary relationship among the formulas according to the year of the formulas and the components of the formulas by a computer and displaying the evolutionary relationship in the form of an evolutionary relationship tree.
In an embodiment, as shown in fig. 7, the evolutionary relationship diagram of ephedra decoction is obtained by sorting the third nodes included in the second nodes in the evolutionary relationship tree from the beginning to the end of the prescription record period, sorting the second nodes from the beginning to the end of the prescription record period, and dynamically displaying the sorted evolutionary relationship tree as the evolutionary relationship diagram of the prescription ephedra decoction.
In conclusion, the invention simplifies the tracing operation, reduces the tracing difficulty and improves the reliability of the traced evolution relationship of the formula when the evolution relationship of the formula is traced through the intelligent calculation of the computer.
As to the tracing method for the evolution relationship of a formula provided in the foregoing embodiment, an embodiment of the present invention provides a tracing apparatus for the evolution relationship of a formula, and referring to a schematic structural diagram of the tracing apparatus for the evolution relationship of a formula shown in fig. 8, the apparatus includes the following components:
the prescription information acquisition module 802 acquires information of prescriptions to be traced;
the target data determining module 804 is used for determining target data matched with the information of the prescription to be traced based on a pre-established database set, wherein the target data comprises component standard data and at least one book data;
the evolutionary relationship building module 806 builds an evolutionary relationship diagram corresponding to the prescription information to be traced according to the component standard data and each book data; wherein the evolutionary relationship graph is used for representing the evolutionary relationship between the classical book data.
When the data processing device provided by the embodiment of the application traces the evolutionary relationship of the prescriptions, the evolutionary relationship of the prescriptions can be traced through intelligent calculation of a computer, after the information of the prescriptions to be traced is acquired, the prescriptions to be traced are respectively matched with a pre-established database set to obtain target data, and an evolutionary relationship diagram corresponding to the information of the prescriptions to be traced is obtained through cyclic calculation according to the target data, so that the tracing rate of the traditional Chinese medicine prescriptions is remarkably increased, the reliability of the tracing information is improved, the labor cost and environmental limitation are reduced, the prescription tracing process is simplified, and the practicability of the tracing scheme is effectively improved.
In one embodiment, the target data determining module 804 is further configured to: determining that the database set comprises a standard prescription database and a prescription classical database; the standard database comprises a corresponding relation between the prescription standard data and the alias of the prescription, and also comprises a corresponding relation between the component standard data of the components contained in the prescription and the alias of the components; the prescription book database includes a correspondence between prescription standard identifications and book data including one or more of book names, publication times, chapter information, and historical prescription compositions.
In one embodiment, when the step of determining the target data matching the information of the prescription to be traced based on the pre-established database set is performed, the target data determining module 804 is further configured to: searching prescription standard data and component standard data matched with the information of the prescription to be traced in a standard database; and searching the book data matched with the prescription standard data in the book database.
In one embodiment, when performing the step of constructing the evolutionary relationship graph corresponding to the prescription information to be traced according to the component standard data and each book data, the evolutionary relationship constructing module 806 is further configured to: determining a first node from the classical data according to the publication time in each classical data; for the other book data except the first node, dividing the other book data into a plurality of candidate book combinations according to the composition standard data, and determining the cascade relation between each candidate book combination; and constructing an evolutionary relationship diagram corresponding to the prescription information to be traced according to the first node, each candidate book combination and the cascade relationship among the candidate book combinations.
In one embodiment, when performing the steps of dividing the remaining book data into a plurality of candidate book combinations according to the component standard data, and determining the cascade relationship between each candidate book combination, the evolutionary relationship building module 806 is further configured to: dividing the rest of the book data into a plurality of groups of candidate book combinations according to the component standard data and the publication time of the book data; for each candidate book combination, determining book data with the earliest publication time in the candidate book combination as a second node of the candidate book combination, and taking the rest book data except the second node in the candidate book combination as a third node under the second node; and sorting the third nodes in each candidate book combination from morning to evening according to the publishing time, and sorting the second nodes from morning to evening according to the publishing time.
In one embodiment, when performing the steps of dividing the remaining book data into a plurality of candidate book combinations according to the component standard data, and determining the cascade relationship between each candidate book combination, the evolutionary relationship building module 806 is further configured to: and determining historical prescription components shared by the book data in any group of candidate book combinations as the identifications of the candidate book combinations, wherein the identifications corresponding to different candidate book combinations are different.
In one embodiment, when performing the step of determining historical prescription components shared by book data in any group of candidate book combinations as the identifications of the candidate combinations, the evolutionary relationship building module 806 is further configured to: if any of the book data to be grouped comprises the identifications corresponding to the candidate book combinations, determining the second node of the corresponding candidate book combination and the publishing time contained in the book data in the second node according to the identifications; determining a second node whose publication time is before the publication time of the book data to be grouped and is closest to the publication time of the book data to be grouped; and dividing the book data to be grouped into candidate book combinations corresponding to the second node.
The device provided by the embodiment of the present invention has the same implementation principle and technical effect as the method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the method embodiments without reference to the device embodiments.
The embodiment of the invention provides electronic equipment, which particularly comprises a processor and a storage device; the storage means has stored thereon a computer program which, when executed by the processor, performs the method of any of the above described embodiments.
Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, where the electronic device 100 includes: a processor 90, a memory 91, a bus 92 and a communication interface 93, wherein the processor 90, the communication interface 93 and the memory 91 are connected through the bus 92; the processor 90 is arranged to execute executable modules, such as computer programs, stored in the memory 91.
The Memory 91 may include a high-speed Random Access Memory (RAM) and may further include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 93 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used.
Bus 92 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 9, but this does not indicate only one bus or one type of bus.
The memory 91 is used for storing a program, the processor 90 executes the program after receiving an execution instruction, and the method executed by the apparatus defined by the flow process disclosed in any of the foregoing embodiments of the present invention may be applied to the processor 90, or implemented by the processor 90.
The processor 90 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 90. The Processor 90 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in ram, flash, rom, prom, or eprom, registers, etc. as is well known in the art. The storage medium is located in the memory 91, and the processor 90 reads the information in the memory 91 and performs the steps of the above method in combination with the hardware thereof.
The computer program product of the readable storage medium provided in the embodiment of the present invention includes a computer readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the foregoing method embodiment, which is not described herein again.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and various media capable of storing program codes.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A tracing method for evolution relationship of a prescription is characterized by comprising the following steps:
acquiring information of a prescription to be traced;
determining target data matched with the information of the prescription to be traced based on a pre-established database set, wherein the target data comprises component standard data and at least one book data;
constructing an evolution relation diagram corresponding to the prescription information to be traced according to the component standard data and each book data; wherein the evolutionary relationship graph is used for representing evolutionary relationships among the classical data.
2. The method of claim 1, wherein the database collection comprises a standard prescription database and a prescription classic database; wherein the content of the first and second substances,
the standard database comprises a corresponding relation between the standard data of the prescriptions and the alias of the prescriptions and also comprises a corresponding relation between the standard data of the components contained in the prescriptions and the alias of the components;
the prescription book database comprises a corresponding relation between prescription standard identifications and book data, wherein the book data comprises one or more of book names, publication times, chapter information and historical prescription components.
3. The method according to claim 2, wherein the step of determining target data matched with the prescription information to be traced based on a pre-established database set comprises:
searching prescription standard data and component standard data matched with the information of the prescription to be traced in the standard database;
and searching the prescription classical data database for the classical data matched with the prescription standard data.
4. The method according to claim 1, wherein the step of constructing an evolutionary relationship graph corresponding to the prescription information to be traced according to the component standard data and each classical book data comprises:
determining a first node from the book data according to the publication time in each book data;
for the remaining book data except the first node, dividing the remaining book data into a plurality of candidate book combinations according to the composition standard data, and determining the cascade relation between each candidate book combination;
and constructing an evolutionary relationship diagram corresponding to the prescription information to be traced according to the first node, each candidate book combination and the cascade relationship among the candidate book combinations.
5. The method of claim 4, wherein said step of dividing remaining book data into a plurality of sets of candidate book combinations based on said component criteria data and determining a cascading relationship between each of said candidate book combinations further comprises:
dividing the rest of classical book data into a plurality of groups of candidate classical book combinations according to the component standard data and the publishing time of the classical book data;
for each candidate classic combination, determining the classic data with the earliest publication time in the candidate classic combination as a second node of the candidate classic combination, and taking the rest of the classic data except the second node in the candidate classic combination as a third node under the second node;
and sorting the third nodes in each candidate book combination from morning to evening according to publication time, and sorting the second nodes from morning to evening according to publication time.
6. The method of claim 4, wherein said step of dividing remaining book data into a plurality of sets of candidate book combinations based on said component criteria data and determining a cascading relationship between each of said candidate book combinations further comprises:
and determining historical prescription components shared by the book data in any group of candidate book combinations as the identifications of the candidate book combinations, wherein the identifications corresponding to different candidate book combinations are different.
7. The method of claim 6, wherein said step of determining said historical prescriptions shared by book data in any of said candidate book groups as identities of candidate groups, wherein the identities of different candidate groups are different further comprises:
if any book data to be grouped comprises a plurality of identifications corresponding to the candidate book combinations, determining a second node of the corresponding candidate book combination and the publication time contained in the book data in the second node according to the identifications;
determining the second node with the publication time before the publication time of the book data to be grouped and the smallest publication time interval with the book data to be grouped;
dividing the book data to be grouped into the candidate book combinations corresponding to the second node.
8. A device for tracing the evolution relationship of a prescription is characterized by comprising:
the prescription information acquisition module is used for acquiring information of prescriptions to be traced;
the target data determining module is used for determining target data matched with the information of the prescription to be traced based on a pre-established database set, wherein the target data comprises component standard data and at least one piece of book data;
the evolution relation building module is used for building an evolution relation graph corresponding to the prescription information to be traced according to the component standard data and each book data; wherein the evolutionary relationship graph is used for representing evolutionary relationships among the classical data.
9. A server comprising a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to implement the method of any one of claims 1 to 7.
10. A computer-readable storage medium having computer-executable instructions stored thereon which, when invoked and executed by a processor, cause the processor to implement the method of any of claims 1 to 7.
CN202210100031.9A 2022-01-27 2022-01-27 Method and device for tracing evolution relationship of prescription and server Pending CN114496119A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210100031.9A CN114496119A (en) 2022-01-27 2022-01-27 Method and device for tracing evolution relationship of prescription and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210100031.9A CN114496119A (en) 2022-01-27 2022-01-27 Method and device for tracing evolution relationship of prescription and server

Publications (1)

Publication Number Publication Date
CN114496119A true CN114496119A (en) 2022-05-13

Family

ID=81476653

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210100031.9A Pending CN114496119A (en) 2022-01-27 2022-01-27 Method and device for tracing evolution relationship of prescription and server

Country Status (1)

Country Link
CN (1) CN114496119A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117494811A (en) * 2023-11-20 2024-02-02 南京大经中医药信息技术有限公司 Knowledge graph construction method and system for Chinese medicine books

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109190113A (en) * 2018-08-10 2019-01-11 北京科技大学 A kind of knowledge mapping construction method of theory of traditional Chinese medical science ancient books and records
CN111159184A (en) * 2019-12-25 2020-05-15 上海中信信息发展股份有限公司 Metadata tracing method and device and server
CN112614565A (en) * 2020-12-04 2021-04-06 杨茜 Traditional Chinese medicine classic famous prescription intelligent recommendation method based on knowledge-graph technology
CN112635078A (en) * 2020-11-06 2021-04-09 辽宁工程技术大学 Traditional Chinese medicine knowledge graph construction and visualization method
CN113808751A (en) * 2020-06-15 2021-12-17 中国中医科学院中国医史文献研究所 Traditional Chinese medicine prescription evaluation and pushing method and device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109190113A (en) * 2018-08-10 2019-01-11 北京科技大学 A kind of knowledge mapping construction method of theory of traditional Chinese medical science ancient books and records
CN111159184A (en) * 2019-12-25 2020-05-15 上海中信信息发展股份有限公司 Metadata tracing method and device and server
CN113808751A (en) * 2020-06-15 2021-12-17 中国中医科学院中国医史文献研究所 Traditional Chinese medicine prescription evaluation and pushing method and device and electronic equipment
CN112635078A (en) * 2020-11-06 2021-04-09 辽宁工程技术大学 Traditional Chinese medicine knowledge graph construction and visualization method
CN112614565A (en) * 2020-12-04 2021-04-06 杨茜 Traditional Chinese medicine classic famous prescription intelligent recommendation method based on knowledge-graph technology

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
丁侃: "基于知识元的中医古籍方剂知识表示研究", 中国博士学位论文全文数据库 医药卫生科技辑, 15 January 2013 (2013-01-15), pages 056 - 3 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117494811A (en) * 2023-11-20 2024-02-02 南京大经中医药信息技术有限公司 Knowledge graph construction method and system for Chinese medicine books
CN117494811B (en) * 2023-11-20 2024-05-28 南京大经中医药信息技术有限公司 Knowledge graph construction method and system for Chinese medicine books

Similar Documents

Publication Publication Date Title
CN108108426B (en) Understanding method and device for natural language question and electronic equipment
CN107784611B (en) Medicine coding method and device
Grossi et al. On-line pattern matching on similar texts
CN110795526B (en) Mathematical formula index creating method and system for retrieval system
Mair et al. An analysis of data sets used to train and validate cost prediction systems
CN114496119A (en) Method and device for tracing evolution relationship of prescription and server
CN112632213A (en) Address information standardization method and device, electronic equipment and storage medium
CN109033173B (en) Data processing method and device for generating multidimensional index data
AU2010202901A1 (en) A system, method and computer program for preparing data for analysis
CN107193996B (en) Similar medical record matching and retrieving system
CN114238639A (en) Construction method and device of medical term standardized framework and electronic equipment
CN113680046A (en) Grid data storage method and device, electronic equipment and storage medium
CN117251517B (en) Annual-authentication administrative division information matching method and model under large data field of view
Chu et al. Automatic data extraction of websites using data path matching and alignment
CN109783139B (en) Software interface feature extraction method and device and electronic equipment
CN110782955B (en) Method and system for extracting natural product data information from research literature
CN117407505A (en) Question-answer retrieval method and system for integrating document knowledge and question-answer data
CN113988067B (en) Sentence word segmentation method and device and electronic equipment
CN115080594A (en) Method and system for carrying out multi-dimensional analysis on data and electronic equipment
CN110688530B (en) Json data processing method and device
CN116126918A (en) Data generation method, information screening method, device and medium
CN113282218A (en) Multi-dimensional report generation method, device, equipment and storage medium
CN113707302A (en) Service recommendation method, device, equipment and storage medium based on associated information
Mironov et al. Monitoring YouTube video views in the educational environment based on situation-oriented database and RESTful Web Services
Tabaszewski et al. Phylogenetic consensus for exact median trees

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination