A CDA document management method and system
Through word segmentation and window division analysis of CDA documents, the evaluation value of keywords is determined, and documents matching the actual situation of the patient are screened out, which solves the problem of poor CDA document management in the existing technology and improves the reference value of documents and medical services. efficiency.
Patent Information
- Application Number
- CN202410796744.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-06-20
AI Technical Summary
It is difficult to effectively manage CDA documents with the existing technology, making it difficult for patients to obtain documents with reference value from downloaded shared file medical records, and the reference value of the file medical records is low.
By performing word segmentation processing, window division and co-occurrence analysis on the CDA documents, the target evaluation value of the keywords is determined, thereby selecting documents that match the actual situation of the target patients as recommended documents to improve the reference value of the documents.
It achieves more effective management of CDA documents, improves the reference value of recommended documents, can better reflect the actual situation of patients, reduces medical costs and improves the quality of medical services.
Smart Images

Figure CN118352012B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a CDA document management method and system. Background Art
[0002] CDA (Clinical Document Architecture) is a document type used to record patient information. For example, CDA documents can record patient medical history, test results, treatment plans, and drug prescriptions. By recording patient information in CDA documents, patients can view their medical records and other information, and medical staff can view and analyze patient information, thereby improving the quality and efficiency of medical services.
[0003] CDA documents can also enable the exchange of patient information between different medical institutions. For example, when a patient changes hospitals for treatment, the patient information recorded in the first hospital can provide a reference for the patient's treatment in the second hospital, reducing the communication cost between doctors and patients and reducing repeated examinations of patients. Therefore, effective management of CDA documents can effectively reduce patients' medical costs and improve the quality of medical services.
[0004] To achieve the management of CDA documents, relevant technologies, such as the Chinese patent application document with publication number CN117954030A, provide an electronic medical record interconnection method, which combines PDF with CDA and provides patients with shared PDF file medical records of the same medical record category based on their CDA documents, so that patients can download shared PDF file medical records.
[0005] However, in the related art, when shared file medical records are provided to patients based on their medical record categories, the amount of data in the file medical records provided to patients is large, and it is difficult for patients to obtain documents with reference value from the shared file medical records that can be downloaded. The reference value of the file medical records to patients is low. Therefore, the related art fails to achieve effective management of CDA documents. Summary of the invention
[0006] In order to overcome the problem that the relevant technologies fail to achieve effective management of CDA documents, the present application provides a CDA document management method and system.
[0007] According to a first aspect of an embodiment of the present application, a CDA document management method is provided, comprising: obtaining a first document of a CDA document type corresponding to a target patient, and performing word segmentation processing on the first document to obtain a plurality of words in the first document; dividing the first document into windows using a target window length to obtain a plurality of windows; in the case where a first word and a second word among the plurality of words co-occur in the same window, obtaining a first frequency of occurrence of the first word and a second frequency of occurrence of the second word when co-occurring, and obtaining a word distance between the first word and the second word when co-occurring; determining a target evaluation value of the first word according to the first frequency, the second frequency and the word distance when the first word co-occurs with the plurality of second words respectively; the target evaluation value is used to characterize the probability that the first word is a keyword; determining a keyword from the plurality of words in the first document according to the target evaluation value of the first word, and determining at least one second document similar to the first document from the plurality of CDA documents according to the keyword, so as to archive the second document as a recommended document for the target patient.
[0008] In this way, since the second document is determined based on the keywords of the first document, compared with the patient's medical record type, the keywords in the CDA document can better reflect the patient's actual situation. Therefore, through the keywords of the CDA document, the second document that better matches the actual situation of the target patient can be screened out from multiple CDA documents, and the second document can be archived as a recommended document for the target patient, which can make the recommended document for the target patient more valuable for reference and achieve better management of the CDA document.
[0009] Furthermore, the target evaluation value used to characterize the probability that the first word is a keyword is determined based on the first frequency of the first word when the first word co-occurs with the second word, the second frequency of the second word, and the word distance between the words. Compared with the frequency of occurrence of the words in the full text of the first document, the word distance when different words co-occur with each other can better reflect the importance of the words in the document. Therefore, the target evaluation value of the first word obtained can better characterize the probability that the first word is a keyword in the first document, which helps to archive the second document that better matches the patient's actual situation as a recommended document for the target patient.
[0010] Optionally, a target evaluation value of the first word is determined based on a first frequency, a second frequency and a word distance when the first word co-occurs with multiple second words, including: determining a first correlation coefficient between the first word and the second word based on the first frequency, the second frequency and the word distance when the first word and the second word co-occur in the same window; determining a second correlation coefficient between the first word and the second word based on a first average of multiple first correlation coefficients when the first word and the second word co-occur in multiple windows; determining the target evaluation value of the first word based on a second average of multiple second correlation coefficients between the first word and multiple second words.
[0011] Optionally, a target evaluation value of the first word is determined based on a second average of multiple second correlation coefficients between the first word and multiple second words, including: inputting the first word into a pre-trained word vector model to obtain a first word vector; inputting the second word into a pre-trained word vector model to obtain a second word vector; using the first similarity between the first word vector and the second word vector as the third correlation coefficient between the first word and the second word; determining a third average of multiple third correlation coefficients between the first word and multiple second words, and adding the second average to the third average to obtain the target evaluation value of the first word.
[0012] In this way, the third average value of the multiple third correlation coefficients between the first word and the multiple second words can comprehensively reflect the correlation between the first word and other words except the first word as a whole, and the second average value is added to the third average value to obtain the target evaluation value of the first word. Since the second average value and the third average value can both reflect the correlation between the first word and other words except the first word, the obtained target evaluation value of the first word can better represent the probability that the first word is a keyword in the first document.
[0013] Optionally, a target evaluation value of the first word is determined based on a second average value of multiple second correlation coefficients between the first word and multiple second words, including: obtaining a first frequency of occurrence of the first word among all words in the first document; obtaining an inverse frequency of the first word in other CDA documents except the first document; and multiplying the first frequency, the inverse frequency and the second average value to obtain the target evaluation value of the first word.
[0014] In this way, the first frequency of the first word appearing in all the words in the first document can better reflect the importance of the first word in the first document, the inverse frequency of the first word in other CDA documents except the first document can better reflect the importance of the first word relative to other documents, and the second average value can better reflect the correlation between the first word and other words in the document in terms of semantic information. Therefore, multiplying the first frequency, the inverse frequency and the second average value to obtain the target evaluation value of the first word can enable the target evaluation value to better represent the probability that the first word is a keyword in the first document.
[0015] Optionally, the target window length is obtained in the following manner: arranging the words in the first document in order of precedence to obtain a word string that includes all the words in the first document after arrangement; dividing the word string according to the preset window lengths among a plurality of different preset window lengths to obtain a plurality of word substrings after division; obtaining the number of words contained in the word substrings, and using the variance of the number of multiple words in the plurality of word substrings as the target parameter value of the preset window length; using the preset window length with the smallest target parameter value among a plurality of preset window lengths as the target window length.
[0016] In this way, by using the preset window length with the smallest target parameter value among multiple preset window lengths as the target window length, the loss of semantic information caused by splitting the same word into different character substrings can be reduced as much as possible.
[0017] Optionally, when the first word and the second word co-occur among the multiple words, the word distance between the first word and the second word when they co-occur is obtained, including: when the first word and the second word co-occur among the multiple words, if the number of second words co-occurring with the first word is multiple, obtaining multiple first distances between the first word and the multiple second words; and taking the largest of the multiple first distances as the word distance between the first word and the second word when they co-occur.
[0018] In this way, by taking the largest of multiple first distances as the word distance between the first word and the second word when they co-occur, the influence of the closer distance between different words caused by window division on the word distance can be avoided. The word distance between different words can be used to better characterize the degree of association between different words, so as to better determine the target evaluation value of the word.
[0019] Optionally, when the first word and the second word co-occur among the multiple words, the word distance between the first word and the second word when they co-occur is obtained, including: when the first word and the second word co-occur among the multiple words, if the number of second words co-occurring with the first word is multiple, obtaining multiple first distances between the first word and the multiple second words; and using the fourth average of the multiple first distances as the word distance between the first word and the second word when they co-occur.
[0020] In this way, by taking the average of multiple first distances as the word distance between the first word and the second word when they co-occur, it can avoid the adverse effect of the close distance between words caused by window division on the degree of association between words, and it can also avoid the influence of the long distance between words on the judgment of the degree of association between words.
[0021] Optionally, determining at least one second document similar to the first document from a plurality of CDA documents according to the keyword includes: determining, for a third document among the plurality of CDA documents, a second similarity between the third document and the first document according to the number of the keywords contained in the third document; and taking the third document whose second similarity is greater than a preset similarity threshold as a second document similar to the first document, so as to obtain at least one second document similar to the first document.
[0022] In this way, a third document whose second similarity is greater than a preset similarity threshold is taken as a second document similar to the first document to obtain at least one second document similar to the first document, and a second document including at least one keyword among multiple keywords of the first document can be obtained. Since the second similarity between the second document and the first document is greater than the preset similarity threshold, the second document can provide valuable reference for the condition of the target patient.
[0023] Optionally, obtaining a first document whose document type is a CDA document corresponding to the target patient includes: obtaining an initial fourth document whose document type is a CDA document for the target patient; obtaining a key medical information set, and using the key medical information set to process the fourth document to obtain a first document containing the key medical information in the key medical information set.
[0024] In this way, by processing the fourth document through the key medical information set to obtain the first document containing the key medical information in the key medical information set, the redundancy of data in the first document can be reduced, which helps to reduce the amount of calculation when recommending recommended documents with reference value to target patients, thereby reducing the operating memory pressure of the device.
[0025] According to a second aspect of an embodiment of the present application, a CDA document management system is provided, comprising: a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the steps of the CDA document management method provided in the first aspect of the present application are implemented.
[0026] The technical solution provided by the embodiments of the present application may include the following beneficial effects: since the second document is determined based on the keywords of the first document, compared with the patient's medical record type, the keywords in the CDA document can better reflect the patient's actual situation. Therefore, through the keywords of the CDA document, a second document that better matches the actual situation of the target patient can be screened out from multiple CDA documents, and the second document can be archived as a recommended document for the target patient, which can make the recommended document for the target patient more valuable for reference and achieve better management of the CDA document.
[0027] Furthermore, the target evaluation value used to characterize the probability that the first word is a keyword is determined based on the first frequency of the first word when the first word co-occurs with the second word, the second frequency of the second word, and the word distance between the words. Compared with the frequency of occurrence of the words in the full text of the first document, the word distance when different words co-occur with each other can better reflect the importance of the words in the document. Therefore, the target evaluation value of the first word obtained can better characterize the probability that the first word is a keyword in the first document, which helps to archive the second document that better matches the patient's actual situation as a recommended document for the target patient.
[0028] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0030] Figure 1 is a schematic diagram of an exemplary application scenario of an embodiment of the present application;
[0031] Figure 2 is a flowchart of a CDA document management method according to an exemplary embodiment;
[0032] Figure 3 The figure is a schematic diagram showing the structure of a CDA document management system according to an exemplary embodiment. DETAILED DESCRIPTION
[0033] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0034] First, the application scenario of the embodiment of the present application is briefly introduced. In the application scenario of the present application, as a document recording the patient information of the patient, the CDA document can realize the exchange of the patient information of the patient between different medical institutions, such as Figure 1 As shown, when a patient receives medical treatment at a first hospital, the patient's information can be recorded at a first terminal in the first hospital, thereby generating a CDA document for the patient, and the first terminal can send the CDA document to a server; alternatively, the first terminal located at the first hospital can send the recorded patient information to a server, and the server can generate a CDA document for the patient.
[0035] The second terminal can obtain the patient's CDA document from the server so as to understand the patient's information through the CDA document. The second terminal can be, for example, the patient's terminal; or, the second terminal can be a second hospital that the patient visits, which is different from the first hospital. The medical staff of the second hospital can adopt a targeted medical plan for the patient based on the patient information recorded in the CDA document.
[0036] In the related art, a shared PDF file medical record of the same category as the patient's medical record is provided to the patient based on the patient's CDA document so that the patient can download the shared PDF file medical record; however, the amount of data in the shared file medical record provided to the patient based on the patient's medical record category is large, and it is difficult for the patient to obtain documents with reference value from the shared file medical records that can be downloaded. The reference value of the file medical record to the patient is low. Therefore, the related art fails to achieve effective management of CDA documents.
[0037] In response to the above technical problems, an embodiment of the present application provides a CDA document management method and system. Since the second document is determined based on the keywords of the first document, compared with the patient's medical record type, the keywords in the CDA document can better reflect the patient's actual situation. Therefore, through the keywords of the CDA document, a second document that better matches the actual situation of the target patient can be screened out from multiple CDA documents, and the second document can be archived as a recommended document for the target patient, which can make the recommended document for the target patient more valuable for reference and achieve better management of the CDA document.
[0038] Furthermore, the target evaluation value used to characterize the probability that the first word is a keyword is determined based on the first frequency of the first word when the first word co-occurs with the second word, the second frequency of the second word, and the word distance between the words. Compared with the frequency of occurrence of the words in the full text of the first document, the word distance when different words co-occur with each other can better reflect the importance of the words in the document. Therefore, the target evaluation value of the first word obtained can better characterize the probability that the first word is a keyword in the first document, which helps to archive the second document that better matches the patient's actual situation as a recommended document for the target patient.
[0039] It should be noted that all actions of acquiring signals, information or data in this application are carried out in compliance with the relevant data protection laws and policies of the country where they are located and with the authorization given by the owner of the corresponding device.
[0040] Figure 2 is a flowchart of a CDA document management method according to an exemplary embodiment. Figure 2 As shown, the method includes the following steps.
[0041] In step S101, a first document of a CDA document type corresponding to a target patient is obtained, and word segmentation processing is performed on the first document to obtain a plurality of words in the first document.
[0042] The CDA document of the target patient can record a variety of information about the target patient, such as the patient's family medical history, historical symptoms, historical examination records, gender, age, name, etc. Through the information recorded in the CDA document, it can not only realize the information sharing between different hospitals when the patient seeks medical treatment, but also realize the information sharing between different departments when the patient seeks medical treatment across departments, so as to give the corresponding medical plan according to the patient's actual situation, or avoid the patient from undergoing repeated examinations, thereby reducing the patient's medical costs and improving the patient's medical experience.
[0043] The target patient may have corresponding identification information. For example, the identification information of the target patient may be personal information such as the patient's ID number or mobile phone number, or the identification information of the target patient may be the number of the target patient's medical card in the hospital. By inputting the identification information of the target patient into the target database for query, the CDA document of the target patient may be obtained. The target database may be, for example, a server or local storage device storing multiple CDA documents of multiple patients.
[0044] In one embodiment, obtaining a first document whose document type is a CDA document corresponding to a target patient includes: obtaining an initial fourth document whose document type is a CDA document of the target patient; obtaining a key medical information set, and using the key medical information set to process the fourth document to obtain a first document containing the key medical information in the key medical information set.
[0045] For example, the key medical information set may include the patient's family medical history, historical symptoms, historical examination records, gender, age and other medical information.
[0046] In this way, by processing the fourth document through the key medical information set to obtain the first document containing the key medical information in the key medical information set, the redundancy of data in the first document can be reduced, which helps to reduce the amount of calculation when recommending recommended documents with reference value to target patients, thereby reducing the operating memory pressure of the device.
[0047] Performing word segmentation processing on the first document to obtain multiple words in the first document can facilitate obtaining keywords among the multiple words, thereby facilitating determining a CDA document that matches the actual situation of the target patient based on the keywords.
[0048] Word segmentation is a link in natural language processing, which refers to dividing a continuous text sequence into a meaningful word sequence. Commonly used word segmentation methods include: word segmentation methods based on string matching, word segmentation methods based on understanding, word segmentation methods based on statistics, word segmentation methods based on deep learning, and word segmentation methods based on rules. For example, the rule-based word segmentation method implements word segmentation through a pre-defined set of rules, and the rules may include lexical rules, syntactic rules, and semantic rules. The deep learning-based word segmentation method can use pre-trained Bi-LSTM (Bidirectional Long Short-Term Memory) network models, CNN (Convolutional Neural Networks) models, or Transformer models to implement word segmentation for documents.
[0049] In step S102, the first document is divided into windows using the target window length to obtain a plurality of windows.
[0050] For example, for the text nodes in the first document, the text information contained in the text nodes is usually coherent. By dividing the first document into windows using the target window length, multiple sentences with a certain degree of coherence can be divided into the same window, thereby obtaining multiple windows after division. The text nodes can, for example, be text paragraphs and paragraph titles in the document.
[0051] In this way, using the target window length to divide the first document into windows helps determine whether different words appear together in the same window. When different words appear together in the same window, since the sentences in the same window usually have a certain logic, there is a greater probability that there is a connection between the co-occurring words, which helps determine the probability that the words are keywords in the first document.
[0052] In one embodiment, the target window length can be obtained in the following manner: arrange the words in the first document in order of precedence to obtain a word string that includes all the words in the first document after arrangement; for a preset window length among multiple different preset window lengths, divide the word string according to the preset window length to obtain multiple word substrings after division; obtain the number of words contained in the word substring, and use the variance of the number of multiple words in the multiple word substrings as the target parameter value of the preset window length; use the preset window length with the smallest target parameter value among the multiple preset window lengths as the target window length.
[0053] For example, the preset window length may refer to the length corresponding to the number of characters, and a variety of different preset window lengths may include, for example, the length corresponding to 10 characters, the length corresponding to 15 characters, the length corresponding to 20 characters, and the length corresponding to 21 characters.
[0054] Arrange the words in the first document in order of chronological order to obtain a word string including all the words in the first document after arrangement, divide the word string according to a preset window length to obtain multiple word substrings after division, and under different preset window lengths, word substrings of different lengths can be obtained; for example, when the word string is divided according to the number of 10 characters, the number of characters in the obtained multiple word substrings is 10; when the word string is divided according to the number of 15 characters, the number of characters in the obtained multiple word substrings is 15.
[0055] The number of words contained in a word substring is obtained, and the variance of the number of words in multiple word substrings is used as the target parameter value of the preset window length. The division of the word string by the preset window length may make the words in some of the divided word substrings lack logic. For example, the character substring obtained by dividing according to the number of characters is "Blood system: no dizziness, paleness", while the relatively complete information is "Blood system: no history of dizziness, paleness, fatigue, no vertigo, tinnitus, etc.". The "pallor" and "white" in "pale" are split into two different character substrings, and the number of words in the character substring is 2.
[0056] Under the same preset window length, the number of words contained in different character substrings obtained is different, and some words may lose their original semantic information due to being split into different character substrings; under different preset window lengths, the words split into different character substrings are in different, or, perhaps due to the difference in preset window lengths, the words originally split into different character substrings are retained in the same character substring, and the semantic information of the words is completely preserved. The variance of the number of multiple words in multiple word substrings can reflect the overall loss of semantic information when the words are split into different character substrings; therefore, using the preset window length with the smallest target parameter value among multiple preset window lengths as the target window length can minimize the loss of semantic information caused by the same word being split into different character substrings.
[0057] In step S103, when a first word and a second word among multiple words co-occur in the same window, a first frequency of occurrence of the first word and a second frequency of occurrence of the second word are obtained, and a word distance between the first word and the second word is obtained.
[0058] When the first word and the second word among multiple words co-occur in the same window, it means that there is a greater probability that the first word and the second word are connected; the first frequency of occurrence of the first word can reflect the importance of the first word in the window in which it co-occurs with the second word. For example, the greater the first frequency of occurrence of the first word when the first word and the second word co-occur, the greater the importance of the first word in the window in which the first word and the second word appear together; on the contrary, the smaller the first frequency of occurrence of the first word when the first word and the second word co-occur, the smaller the importance of the first word in the window in which the first word and the second word appear together.
[0059] When the first word and the second word co-occur in the same window, the second frequency of the second word can reflect the importance of the second word in the window in which it co-occurs with the first word. For example, the greater the second frequency of the second word when they co-occur with the first word, the greater the importance of the second word in the window in which they co-occur; conversely, the smaller the second frequency of the second word when they co-occur with the first word, the smaller the importance of the second word in the window in which they co-occur with the first word.
[0060] Since different related words are usually located close to each other in a text paragraph, when the first word and the second word co-occur in the same window, the word distance between the first word and the second word when they co-occur can better reflect the degree of association between the first word and the second word, thereby reflecting the importance of the first word, so as to determine the probability that the first word belongs to the keyword in the first document.
[0061] In one embodiment, when a first word and a second word co-occur among the multiple words, obtaining the word distance between the first word and the second word when they co-occur, including: when a first word and a second word co-occur among the multiple words, if there are multiple second words co-occurring with the first word, obtaining multiple first distances between the first word and the multiple second words; and using the largest of the multiple first distances as the word distance between the first word and the second word when they co-occur.
[0062] For example, due to the division of text information in a document by the window, words with weaker associations may be divided into the same window, so that the distance between two words with weaker associations is closer in the window. When there are multiple second words co-occurring with a first word, the largest of the multiple first distances is used as the word distance between the first word and the second word when they co-occur. This can avoid the influence of the closer distances between different words caused by window division on the word distance, thereby better representing the degree of association between different words through the word distances between different words, so as to better determine the target evaluation value of the word.
[0063] In another possible implementation, in one embodiment, when a first word and a second word co-occur among the multiple words, obtaining the word distance between the first word and the second word when they co-occur, including: when a first word and a second word co-occur among the multiple words, if the number of second words co-occurring with the first word is multiple, obtaining multiple first distances between the first word and the multiple second words; and using a fourth average of the multiple first distances as the word distance between the first word and the second word when they co-occur.
[0064] For example, there is a first word and multiple second words in the same window, the first second word among the multiple second words in the window is located at the starting position of the window, and the last second word among the multiple second words may be located at the end position of the window, and in normal circumstances the first word may be neither a word adjacent to the second word nor a word separated from the second word by the entire window. Therefore, using the fourth average of multiple first distances as the word distance between the first word and the second word when they co-occur can make the word distance better reflect the degree of association between the first word and the second word.
[0065] In this way, by taking the average of multiple first distances as the word distance between the first word and the second word when they co-occur, it can avoid the adverse effect of the close distance between words caused by window division on the degree of association between words, and it can also avoid the influence of the long distance between words on the judgment of the degree of association between words.
[0066] In step S104, a target evaluation value of the first word is determined according to the first frequency, the second frequency, and the word distance when the first word co-occurs with a plurality of second words.
[0067] The target evaluation value is used to characterize the probability that the first word is a keyword; wherein, the larger the target evaluation value, the greater the probability that the first word is a keyword in the first document; conversely, the smaller the target evaluation value, the smaller the probability that the first word is a keyword in the first document.
[0068] In one embodiment, a target evaluation value of a first word is determined based on a first frequency, a second frequency and a word distance when the first word co-occurs with multiple second words, including: determining a first correlation coefficient between the first word and the second word based on the first frequency, the second frequency and the word distance when the first word and the second word co-occur in the same window; determining a second correlation coefficient between the first word and the second word based on a first average value of multiple first correlation coefficients when the first word and the second word co-occur in multiple windows; determining the target evaluation value of the first word based on a second average value of multiple second correlation coefficients between the first word and multiple second words.
[0069] For example, the first frequency, second frequency and word distance of the co-occurrence of the first word and the second word in the same window can better characterize the correlation or association between the first word and the second word; for example, the greater the word distance between different words, the smaller the correlation or association between the first word and the second word; the smaller the first frequency or second frequency of the co-occurrence of the first word and the second word in the same window, the smaller the correlation or association between the first word and the second word; therefore, determining the first correlation coefficient between the first word and the second word based on the first frequency, second frequency and word distance of the co-occurrence of the first word and the second word in the same window can better characterize the degree of correlation or association between the first word and the second word.
[0070] For example, the first correlation coefficient is positively correlated with the first frequency, the first correlation coefficient is positively correlated with the second frequency, and the first correlation coefficient is negatively correlated with the word distance.
[0071] The following is an example of an exemplary calculation formula to illustrate the process of obtaining the first correlation coefficient in the embodiment of the present application: ; Among them, X 1 is the first correlation coefficient between the first word and the second word, n 1 is the first frequency of the first word in the window where the first word co-occurs with the second word, n 2is the second frequency of the second word in the window where the first word and the second word co-occur, norm is the normalization function, exp is an exponential function with a natural constant as the base, and d is the word distance between the first word and the second word in the window where the first word and the second word co-occur.
[0072] Here, the first correlation coefficient between the first word and the second word can also be determined in combination with the difference value between the first frequency and the second frequency, and the difference value is negatively correlated with the first correlation coefficient; the smaller the difference value between the first frequency and the second frequency, the higher the probability of the first word and the second word appearing at the same time, and the greater the correlation between the first word and the second word, thus helping to obtain a more accurate target evaluation value for the first word.
[0073] The second correlation coefficient between the first word and the second word can be determined based on the first average value of multiple first correlation coefficients when the first word and the second word co-occur in multiple windows respectively; since the first document is divided into multiple windows, the correlation between the first word and the second word in multiple windows can be comprehensively considered through the first average value of multiple first correlation coefficients when the first word and the second word co-occur in multiple windows respectively, so as to obtain the overall correlation between the first word and the second word.
[0074] Since the correlations between the first word and different second words are different, the target evaluation value of the first word can be determined according to the second average of multiple second correlation coefficients between the first word and multiple second words, thereby obtaining the target evaluation value of the first word by comprehensively considering multiple second correlation coefficients between the first word and different second words, so that the target evaluation value of the first word can better represent the probability that the first word is a keyword in the first document.
[0075] For example, the greater the correlation coefficient between the first word and other words except the first word as a whole, the more likely the first word is a keyword in the first document.
[0076] In one embodiment, a target evaluation value of a first word is determined based on a second average of multiple second correlation coefficients between the first word and multiple second words, including: inputting the first word into a pre-trained word vector model to obtain a first word vector; inputting the second word into a pre-trained word vector model to obtain a second word vector; using the first similarity between the first word vector and the second word vector as the third correlation coefficient between the first word and the second word; determining a third average of multiple third correlation coefficients between the first word and multiple second words, and adding the second average to the third average to obtain the target evaluation value of the first word.
[0077] A word vector model is a model used in natural language processing to convert words into vectors. The vectors output by the word vector model can capture the semantic information of the words. For example, the word vector model can be the Word2Vec model, the GloVe model, and the FastText model.
[0078] By converting the first word into a first word vector, converting the second word into a second word vector, and comparing the first similarity between the first word vector and the second word vector, the first similarity can better reflect the correlation between the first word and the second word. The similarity between the vectors can be, for example, the cosine similarity between the two vectors, or the similarity between the vectors can be, for example, the Euclidean distance between the two vectors in the coordinate system.
[0079] The third average of multiple third correlation coefficients between the first word and multiple second words can comprehensively reflect the correlation between the first word and other words except the first word as a whole. The second average and the third average are added to obtain the target evaluation value of the first word. Since both the second average and the third average can reflect the correlation between the first word and other words except the first word, the obtained target evaluation value of the first word can better represent the probability that the first word is a keyword in the first document.
[0080] In one embodiment, a target evaluation value of a first word is determined based on a second average value of multiple second correlation coefficients between the first word and multiple second words, including: obtaining a first frequency of the first word appearing in all words in the first document; obtaining an inverse frequency of the first word in other CDA documents except the first document; and multiplying the first frequency, the inverse frequency and the second average value to obtain the target evaluation value of the first word.
[0081] TF-IDF (Term Frequency-Inverse Document Frequency) is a statistical method commonly used in information retrieval and text mining to evaluate the importance of a word to a document set or a document in a corpus. The higher the TF-IDF value, the more important the word is in the current document and the rarer it is in the entire document set; TF-IDF consists of two parts: TF and IDF.
[0082] TF (Term Frequency) refers to the number of times a word appears in a document. The higher the term frequency, the more important the word is in the document. However, using term frequency alone may result in a bias towards longer documents. Therefore, term frequency is usually normalized, for example, by dividing term frequency by the total number of words in the document. IDF (Inverse Document Frequency) refers to the inverse of the number of documents containing a word in a document set, and then taking the logarithm. The purpose of IDF is to reduce the weight of words that are prevalent in a document set, while increasing the weight of words that are uncommon in a document set.
[0083] In this way, the first frequency of the first word appearing in all the words in the first document can better reflect the importance of the first word in the first document, the inverse frequency of the first word in other CDA documents except the first document can better reflect the importance of the first word relative to other documents, and the second average value can better reflect the correlation between the first word and other words in the document in terms of semantic information. Therefore, multiplying the first frequency, the inverse frequency and the second average value to obtain the target evaluation value of the first word can enable the target evaluation value to better represent the probability that the first word is a keyword in the first document.
[0084] In step S105, a keyword is determined from multiple words in the first document according to the target evaluation value of the first word, and at least one second document similar to the first document is determined from multiple CDA documents according to the keyword, so as to archive the second document as a recommended document for the target patient.
[0085] Determining keywords from multiple words in the first document according to the target evaluation value of the first word may include, for example, taking the first word having a target evaluation value greater than a preset evaluation threshold as a keyword in the first document.
[0086] Among them, the preset evaluation threshold can be determined according to the value range of the target evaluation value. For example, when the value range of the target evaluation value is [0, 1], the preset evaluation threshold can be between [0.6, 0.9], for example, the preset evaluation threshold can be 0.75.
[0087] Since the target evaluation value can represent the probability that the first word is a keyword in the first document, the larger the target evaluation value of the first word is, the greater the probability that the target evaluation first word is a keyword in the first document; conversely, the target evaluation value can represent the probability that the first word is a keyword in the first document, the smaller the target evaluation value of the first word is, the smaller the probability that the target evaluation first word is a keyword in the first document; therefore, taking the first word whose target evaluation value is greater than the preset evaluation threshold as the keyword in the first document can effectively screen out the keywords in the first document.
[0088] In a possible implementation, multiple first words with the largest target evaluation values may be used as keywords in the first document; for example, the first five words with the largest target evaluation values may be used as keywords in the first document.
[0089] In one embodiment, determining at least one second document similar to a first document from a plurality of CDA documents according to the keyword includes: determining, for a third document among the plurality of CDA documents, a second similarity between the third document and the first document according to the number of the keywords contained in the third document; and taking the third document whose second similarity is greater than a preset similarity threshold as a second document similar to the first document, so as to obtain at least one second document similar to the first document.
[0090] For example, if the keywords determined according to the first document of the target patient are "thyroid", "pain" and "nodule", the second similarity between the third document and the first document can be determined according to the number of keywords contained in the third document among multiple CDA documents. For example, for the third document that includes all the keywords of the first document at the same time, the second similarity between the third document and the first document is 100%, and for the third document that does not contain any of the multiple keywords of the first document, the second similarity between the third document and the first document is 0.
[0091] A third document whose second similarity is greater than a preset similarity threshold is used as a second document similar to the first document to obtain at least one second document similar to the first document. A second document including at least one keyword among multiple keywords of the first document can be obtained. Since the second similarity between the second document and the first document is greater than the preset similarity threshold, the second document can provide a valuable reference for the condition of the target patient.
[0092] Through the CDA document management method provided in the embodiment of the present application, since the second document is determined based on the keywords of the first document, compared with the patient's medical record type, the keywords in the CDA document can better reflect the patient's actual situation. Therefore, through the keywords of the CDA document, a second document that better matches the actual situation of the target patient can be screened out from multiple CDA documents, and the second document can be archived as a recommended document for the target patient, which can make the recommended document for the target patient more valuable for reference and achieve better management of the CDA document.
[0093] Furthermore, the target evaluation value used to characterize the probability that the first word is a keyword is determined based on the first frequency of the first word when the first word co-occurs with the second word, the second frequency of the second word, and the word distance between the words. Compared with the frequency of occurrence of the words in the full text of the first document, the word distance when different words co-occur with each other can better reflect the importance of the words in the document. Therefore, the target evaluation value of the first word obtained can better characterize the probability that the first word is a keyword in the first document, which helps to archive the second document that better matches the patient's actual situation as a recommended document for the target patient.
[0094] Figure 3 A schematic diagram of a CDA document management system 1000 according to an exemplary embodiment. Figure 3 The CDA document management system 1000 includes: a processor 1100 and a memory 1200, wherein the memory 1200 stores computer program instructions, and when the computer program instructions are executed by the processor 1100, all or part of the steps of the CDA document management method in the present application are implemented.
[0095] For example, the processor 1100 can be configured to perform the following steps: obtain a first document whose document type is a CDA document corresponding to the target patient, and perform word segmentation processing on the first document to obtain multiple words in the first document; divide the first document into windows using a target window length to obtain multiple windows; when a first word and a second word co-occur in the same window among the multiple words, obtain a first frequency of occurrence of the first word and a second frequency of occurrence of the second word when they co-occur, and obtain a word distance between the first word and the second word when they co-occur; determine a target evaluation value of the first word based on the first frequency, the second frequency and the word distance when the first word co-occurs with multiple second words respectively; the target evaluation value is used to characterize the probability that the first word is a keyword; determine a keyword from the multiple words in the first document based on the target evaluation value of the first word, and determine at least one second document similar to the first document from the multiple CDA documents based on the keyword, so as to archive the second document as a recommended document for the target patient.
[0096] Through the CDA document management system provided by the embodiment of the present application, since the second document is determined based on the keywords of the first document, compared with the patient's medical record type, the keywords in the CDA document can better reflect the patient's actual situation. Therefore, through the keywords of the CDA document, a second document that better matches the actual situation of the target patient can be screened out from multiple CDA documents, and the second document can be archived as a recommended document for the target patient, which can make the recommended document for the target patient more valuable for reference and achieve better management of the CDA document.
[0097] Furthermore, the target evaluation value used to characterize the probability that the first word is a keyword is determined based on the first frequency of the first word when the first word co-occurs with the second word, the second frequency of the second word, and the word distance between the words. Compared with the frequency of occurrence of the words in the full text of the first document, the word distance when different words co-occur with each other can better reflect the importance of the words in the document. Therefore, the target evaluation value of the first word obtained can better characterize the probability that the first word is a keyword in the first document, which helps to archive the second document that better matches the patient's actual situation as a recommended document for the target patient.
[0098] It should be understood that the features of some embodiments of the various applications described herein may be combined with each other, unless specifically stated otherwise.
[0099] Although terms such as "first", "second", and "third" may be used herein to describe various components, parts, regions, layers, or sections, these components, parts, regions, layers, or sections are not limited to these terms. Instead, these terms are only used to distinguish one component, part, region, layer, or section from another component, part, region, layer, or section. Therefore, without departing from the teachings of the examples described herein, the first component, part, region, layer, or section mentioned in the examples may also be referred to as the second component, part, region, layer, or section.
[0100] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description herein, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0101] In addition, the word "exemplary" is used herein to mean serving as an example, instance, or diagram. Any aspect or design described herein as "exemplary" is not necessarily to be understood as being advantageous over other aspects or designs. Instead, the use of the word exemplary is intended to present concepts in a concrete manner. As used herein, the term "or" is intended to mean an inclusive "or" rather than an exclusive "or".
[0102] Likewise, although the present application has been shown and described with respect to one or more implementations, equivalent variations and modifications will occur to those skilled in the art upon reading and understanding this specification and the accompanying drawings. With particular regard to the various functions performed by the components (e.g., elements, resources, etc.) described above, unless otherwise noted, the terms used to describe such components are intended to correspond to any component (functionally equivalent) that performs the specific functions of the described components, even if not structurally equivalent to the disclosed structures.
[0103] In addition, while particular features of the present application may have been disclosed with respect to only one of several implementations, such features may be combined with one or more other features of other implementations as may be desired and advantageous for any given or particular application.
[0104] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary technical means in the art that are not disclosed in the present application, and the specification and embodiments are only considered as exemplary.
[0105] It should be understood that the present application is not limited to the exact construction that has been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof.
Claims
1. A CDA document management method, characterized in that: include: Acquire a first document of a CDA document type corresponding to a target patient, and perform word segmentation processing on the first document to obtain a plurality of words in the first document; Dividing the first document into windows using the target window length to obtain a plurality of windows; When a first word and a second word among multiple words co-occur in the same window, obtain a first frequency of occurrence of the first word and a second frequency of occurrence of the second word when they co-occur, and obtain a word distance between the first word and the second word when they co-occur; Determining a target evaluation value of the first word according to the first frequency, the second frequency and the word distance when the first word co-occurs with multiple second words respectively, including: determining a first correlation coefficient between the first word and the second word according to the first frequency, the second frequency and the word distance when the first word and the second word co-occur in the same window; determining a second correlation coefficient between the first word and the second word according to a first average value of multiple first correlation coefficients when the first word and the second word co-occur in multiple windows respectively; determining a target evaluation value of the first word according to a second average value of multiple second correlation coefficients between the first word and multiple second words respectively; the target evaluation value is used to characterize the probability that the first word is a keyword; According to the target evaluation value of the first word, a keyword is determined from multiple words in the first document, and according to the keyword, at least one second document similar to the first document is determined from multiple CDA documents to archive the second document as a recommended document for the target patient.
2. The CDA document management method according to claim 1, characterized in that: Determining a target evaluation value of the first word according to a second average value of a plurality of second correlation coefficients between the first word and a plurality of second words, including: Input the first word into the pre-trained word vector model to obtain the first word vector; Input the second word into the pre-trained word vector model to obtain a second word vector; Using the first similarity between the first word vector and the second word vector as the third correlation coefficient between the first word and the second word; Determine a third average value of multiple third correlation coefficients between the first word and multiple second words respectively, and add the second average value to the third average value to obtain a target evaluation value of the first word.
3. The CDA document management method according to claim 1, characterized in that: Determining a target evaluation value of the first word according to a second average value of a plurality of second correlation coefficients between the first word and a plurality of second words, including: Obtaining a first frequency of occurrence of a first word among all words in the first document; Obtaining the inverse frequency of the first word in other CDA documents except the first document; The first frequency, the inverse frequency and the second average value are multiplied to obtain a target evaluation value of the first word.
4. The CDA document management method according to claim 1, characterized in that: The target window length is obtained by: Arranging the words in the first document in order of precedence to obtain a word string that includes all the words in the first document after arrangement; For a preset window length among a plurality of different preset window lengths, dividing the word string according to the preset window length to obtain a plurality of divided word substrings; Obtaining the word count of the words contained in the word substring, and using the variance of the word counts of the multiple word substrings as the target parameter value of the preset window length; The preset window length with the smallest target parameter value among multiple preset window lengths is used as the target window length.
5. The CDA document management method according to claim 1, characterized in that: When a first word and a second word co-occur in the plurality of words, obtaining the word distance between the first word and the second word when they co-occur includes: In the case where a first word and a second word co-occur in the plurality of words, if there are multiple second words co-occurring with the first word, obtaining multiple first distances between the first word and the multiple second words; The largest one of the plurality of first distances is used as the word distance between the first word and the second word when they co-occur.
6. The CDA document management method according to claim 1, characterized in that: When a first word and a second word co-occur in the plurality of words, obtaining the word distance between the first word and the second word when they co-occur includes: In the case where a first word and a second word co-occur in the plurality of words, if there are multiple second words co-occurring with the first word, obtaining multiple first distances between the first word and the multiple second words; A fourth average of the plurality of first distances is used as the word distance between the first word and the second word when they co-occur.
7. The CDA document management method according to claim 1, characterized in that: Determining at least one second document similar to the first document from a plurality of CDA documents according to the keyword comprises: For a third document among the plurality of CDA documents, determining a second similarity between the third document and the first document according to the number of the keywords included in the third document; The third document whose second similarity is greater than a preset similarity threshold is taken as a second document similar to the first document, so as to obtain at least one second document similar to the first document.
8. The CDA document management method according to any one of claims 1 to 7, characterized in that: The first document of the CDA document type corresponding to the target patient is obtained, including: Acquire an initial fourth document of the target patient whose document type is a CDA document; A key medical information set is obtained, and the fourth document is processed using the key medical information set to obtain a first document containing the key medical information in the key medical information set.
9. A CDA document management system, characterized in that: include: A processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the CDA document management method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Electronic medical record interconnection method and system, electronic equipment and medium
CN117954030A
A text processing method and apparatus
CN109508456A
Data analysis method and device based on NLP technology
CN109977399A
Big data-based patient education article pushing method, system and device, and storage medium
CN110569349A
Electronic document classification method and device
CN111177375A
