Method, device, electronic device and medium for updating electronic medical record template
By analyzing the medical record data in the electronic medical record template, the relevance and importance of the new elements are determined, which solves the problem of unreasonable positions in the template update and improves the convenience and efficiency of use after the template is updated.
Patent Information
- Application Number
- CN202410797302.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-06-20
AI Technical Summary
In the process of updating the hospital's electronic medical record template, due to the differences between the templates, the positions of the new elements are unreasonable, resulting in low convenience and reduced work efficiency for medical staff. How to accurately determine the location of the new elements in different templates? Reasonable location becomes an issue.
By obtaining the new elements of the updated hospital-level template and the modules to which they belong, determine the templates to be updated in the department-level and individual-level templates, extract the target medical record data, and analyze the relevance and importance of the preset sample content and the original elements. , determine the appropriate location of the new element within the module, and update it.
It realizes the reasonable positioning of new elements in the template, improves the convenience of using the template and the work efficiency of medical staff, and makes the updated template more in line with usage habits.
Smart Images

Figure CN118366598B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic medical records, and in particular to an electronic medical record template updating method, device, electronic equipment and medium. Background Art
[0002] Medical informationization is developing rapidly, and hospital informationization construction with electronic medical records as the core has become an important task in the medical system. At present, hospitals usually use electronic medical record templates to record and archive patients' diagnosis and treatment. The electronic medical record template includes multiple modules, and each module includes multiple elements. Medical staff call the electronic medical record template to fill it out. Usually, electronic medical record templates include three levels: hospital-level templates, department-level templates, and personal-level templates. The templates at each level are different. There are differences between templates at the same level, such as department-level templates and personal-level templates, so they may also be different. This results in the number of templates in a hospital being hundreds or thousands.
[0003] At present, when the superior supervision departments update the electronic medical record templates of the hospital, if there are new elements, since the templates are different, it is a lot of work to add the new elements to different templates. Due to the differences between the templates, if the new elements are added to the same position in different templates, the position of the new elements may be unreasonable for different templates. Medical staff are less convenient to use the updated templates and need to be familiar with the updated templates, resulting in reduced work efficiency. Therefore, how to accurately determine the reasonable position of the new elements on different templates and perform adaptive updates becomes a problem. Summary of the invention
[0004] In order to accurately determine the appropriate positions of newly added elements on different templates and perform adaptive updates, the present application provides an electronic medical record template updating method, device, electronic device and medium.
[0005] In a first aspect, the present application provides a method for updating an electronic medical record template, which adopts the following technical solution:
[0006] A method for updating an electronic medical record template, comprising:
[0007] Obtain the newly added elements of the updated hospital-wide template and the modules to which each newly added element belongs, each of which corresponds to at least one preset sample content;
[0008] Determine the templates to be updated that include the module in the department-level templates and the personal-level templates, and the elements to be added in the newly added elements hit by each template to be updated;
[0009] Determine the target medical records from the electronic medical record library of each template to be updated, and extract the medical record data in each target medical record, as well as the medical record content of each original element in the module where the element to be added is located, wherein the target medical records include the medical records that match the preset example content of the element to be added;
[0010] Determine, from the target medical record based on the medical record data, target content that hits the preset example content and the number of the preset example content that hits;
[0011] Determine the importance of each to-be-added element based on the target content and the number, and determine the relevance between each to-be-added element and each original element based on the target content and the medical record content;
[0012] The position of each to-be-added element in the module is determined based on the relevance and importance, and the template to be updated is updated based on the position and the to-be-added element to obtain an updated template.
[0013] By adopting the above technical solution, when there are new elements in the updated hospital-level template, the new elements and the modules to which the new elements belong are obtained, and the templates to be updated are determined from the department-level templates and the personal-level templates according to the modules, and the new elements in each template to be updated that hit the new elements to be added, and the medical record data in the target medical record with the preset example content of each hit element to be added, as well as the medical record content of each original element in the module where the new element is located, the target patients of different templates are different, and the medical record content of the original elements can reflect the specific conditions of the target patients, and the appropriate positions of the elements to be added are different in the same modules of different templates, so the medical record content of each original element is extracted, and the medical record content is analyzed to facilitate the subsequent determination of the elements to be added. The position of the element in the module is determined, and the target content and the number of the preset example contents that hit the preset example contents are determined from the target medical record. Then, the importance of the element to be added is determined according to the target content and the number. Since there is a certain correlation between different elements in the medical record, it is convenient to determine the correlation between each element to be added and each original element by analyzing the target content and the medical record content. After determining the importance and correlation, the appropriate position of the element to be added in the module can be accurately determined. Finally, the template to be updated is updated according to the position and the element to be added to obtain an updated template, so that the updated template is more reasonable and more in line with the medical staff's usage habits of the template, which is convenient for medical staff to quickly adapt to the updated template.
[0014] In another possible implementation, determining the importance of each to-be-added element based on the target content and the number includes:
[0015] Determining a first quantity of target content and a second quantity of the target medical records, and determining a first ratio of the first quantity to the second quantity;
[0016] Determine a second ratio of the second number to the total number of medical records in the electronic medical record library, and a third ratio of the number of hits on the preset example content to the total number of preset example contents;
[0017] A first score of the element to be added is determined based on the first ratio, the second ratio, the third ratio and their respective corresponding first coefficients, where the first score represents the importance.
[0018] In another possible implementation, determining the relevance between each to-be-added element and each original element based on the target content and the medical record content includes:
[0019] Extracting the text of each target medical record to obtain a text paragraph of each target medical record;
[0020] Determine the number of characters between any target content and each medical record content in each text paragraph based on all text paragraphs, and determine the average number of characters between any target content and each medical record content;
[0021] Determine a target text paragraph whose number of characters does not reach the average number of characters, a third number of the target text paragraphs, and a fourth ratio, wherein the fourth ratio is a ratio of the third number to the second number;
[0022] If the fourth ratio reaches a preset ratio, a new average number of characters is determined based on the number of characters between any target content and each medical record content in the target text paragraph;
[0023] A second score is determined based on the new average value of the number of characters, the fourth ratio, and the respective corresponding second coefficients, where the second score represents the correlation between any element to be added and each original element.
[0024] In another possible implementation, determining the position of each to-be-added element in the module based on the relevance and importance includes:
[0025] Determine the two original elements with the highest correlation corresponding to each element to be added, and determine the difference between the correlations corresponding to the two original elements;
[0026] If the importance of the element to be added reaches a preset importance threshold, and the difference is less than a preset difference, then the position of the element to be added is determined to be between the two original elements and adjacent to the original element with the highest correlation;
[0027] If the importance of the element to be added reaches a preset importance threshold, and the difference is not less than the preset difference, then the position of the element to be added is determined to be adjacent to the original element with the highest correlation, and is located in front of the original element with the highest correlation;
[0028] If the importance of the element to be added does not reach the preset importance threshold, and the difference is not less than the preset difference, the position of the element to be added is determined to be adjacent to the original element with the highest correlation and behind the original element with the highest correlation.
[0029] In another possible implementation, the method further includes:
[0030] The preset example content with the largest number of characters is determined from the hit preset example content, and the area occupied by the to-be-added element is determined according to the number of characters of the preset example content with the largest number of characters.
[0031] In another possible implementation, the updated template and the medical record data are stored separately, and the method further includes:
[0032] When an operation of opening an unarchived electronic medical record is detected, obtaining medical record data of the unarchived electronic medical record and an updated template corresponding to the unarchived electronic medical record;
[0033] The medical record data of the unarchived electronic medical record is rendered onto an updated template corresponding to the unarchived electronic medical record to obtain an updated electronic medical record, and the updated electronic medical record is output and displayed.
[0034] In another possible implementation, the method further includes:
[0035] Control the elements to be added in the updated electronic medical record to be displayed in a preset format.
[0036] In a second aspect, the present application provides an electronic medical record template updating device, which adopts the following technical solution:
[0037] An electronic medical record template updating device, comprising:
[0038] The first acquisition module is used to acquire the newly added elements of the updated hospital-wide template and the module to which each newly added element belongs, and each newly added element corresponds to at least one preset example content;
[0039] A first determination module is used to determine the templates to be updated including the module in the department-level templates and the personal-level templates, and the elements to be added in the newly added elements hit by each template to be updated;
[0040] A data extraction module, used to determine target medical records from the electronic medical record library of each template to be updated, and extract the medical record data in each target medical record, as well as the medical record content of each original element in the module where the element to be added is located, wherein the target medical record includes the medical record that hits the preset example content of the element to be added;
[0041] A second determination module is used to determine the target content that hits the preset example content and the number of the preset example content that hits from the target medical record based on the medical record data;
[0042] A third determination module is used to determine the importance of each to-be-added element based on the target content and the number, and to determine the relevance between each to-be-added element and each original element based on the target content and the medical record content;
[0043] The updating module is used to determine the position of each to-be-added element in the module based on the relevance and importance, and to update the to-be-added template based on the position and the to-be-added element to obtain an updated template.
[0044] By adopting the above technical scheme, when there are new elements in the updated hospital-level template, the first acquisition module obtains the new elements and the modules to which the new elements belong. The first determination module determines the template to be updated from the department-level template and the personal-level template according to the modules, and the new elements to be added in each template to be updated. The data extraction module extracts the medical record data in the target medical record of each preset example content that hits the element to be added, as well as the medical record content of each original element in the module where the element to be added is located. The target patients of different templates are different, and the medical record content of the original elements can reflect the specific conditions of the target patients. The suitable positions of the elements to be added are different in the same modules of different templates. Therefore, the medical record content of each original element is extracted, and the subsequent determination of the element to be added in the module is facilitated according to the medical record content. The position within, the second determination module determines the target content that hits the preset example content and the number of hits in the preset example content from the target medical record, and then the third determination module determines the importance of the element to be added according to the target content and the number. Since there is a certain correlation between different elements in the medical record, the third determination module analyzes the target content and the medical record content to facilitate the determination of the correlation between each element to be added and each original element. After determining the importance and correlation, the update module can accurately determine the appropriate position of the element to be added in the module. Finally, the template to be updated is updated according to the position and the elements to be added to obtain an updated template, so that the updated template is more reasonable and more in line with the medical staff's usage habits of the template, which is convenient for medical staff to quickly adapt to the updated template.
[0045] In another possible implementation, when the third determination module determines the importance of each to-be-added element based on the target content and the number, it is specifically configured to:
[0046] Determining a first quantity of target content and a second quantity of the target medical records, and determining a first ratio of the first quantity to the second quantity;
[0047] Determine a second ratio of the second number to the total number of medical records in the electronic medical record library, and a third ratio of the number of hits on the preset example content to the total number of preset example contents;
[0048] A first score of the element to be added is determined based on the first ratio, the second ratio, the third ratio and their respective corresponding first coefficients, where the first score represents the importance.
[0049] In another possible implementation, when the third determination module determines the relevance between each to-be-added element and each original element based on the target content and the medical record content, it is specifically configured to:
[0050] Extracting the text of each target medical record to obtain a text paragraph of each target medical record;
[0051] Determine the number of characters between any target content and each medical record content in each text paragraph based on all text paragraphs, and determine the average number of characters between any target content and each medical record content;
[0052] Determine a target text paragraph whose number of characters does not reach the average number of characters, a third number of the target text paragraphs, and a fourth ratio, wherein the fourth ratio is a ratio of the third number to the second number;
[0053] If the fourth ratio reaches a preset ratio, a new average number of characters is determined based on the number of characters between any target content and each medical record content in the target text paragraph;
[0054] A second score is determined based on the new average value of the number of characters, the fourth ratio, and the respective corresponding second coefficients, where the second score represents the correlation between any element to be added and each original element.
[0055] In another possible implementation, when the updating module determines the position of each to-be-added element in the module based on the relevance and importance, it is specifically configured to:
[0056] Determine the two original elements with the highest correlation corresponding to each element to be added, and determine the difference between the correlations corresponding to the two original elements;
[0057] If the importance of the element to be added reaches a preset importance threshold, and the difference is less than a preset difference, then the position of the element to be added is determined to be between the two original elements and adjacent to the original element with the highest correlation;
[0058] If the importance of the element to be added reaches a preset importance threshold, and the difference is not less than the preset difference, then the position of the element to be added is determined to be adjacent to the original element with the highest correlation, and is located in front of the original element with the highest correlation;
[0059] If the importance of the element to be added does not reach the preset importance threshold, and the difference is not less than the preset difference, the position of the element to be added is determined to be adjacent to the original element with the highest correlation and behind the original element with the highest correlation.
[0060] In another possible implementation, the device further includes:
[0061] The occupied area determination module is used to determine the preset example content with the largest number of characters from the hit preset example content, and determine the occupied area of the element to be added according to the number of characters of the preset example content with the largest number of characters.
[0062] In another possible implementation, the updated template and the medical record data are stored separately, and the device further includes:
[0063] A second acquisition module is used to acquire the medical record data of the unarchived electronic medical record and the updated template corresponding to the unarchived electronic medical record when an operation of opening the unarchived electronic medical record is detected;
[0064] The first display module is used to render the medical record data of the unarchived electronic medical record onto an updated template corresponding to the unarchived electronic medical record to obtain an updated electronic medical record, and output and display the updated electronic medical record.
[0065] In another possible implementation, the device further includes:
[0066] The second display module is used to control the display of the elements to be added in the updated electronic medical record according to a preset format.
[0067] In a third aspect, the present application provides an electronic device, which adopts the following technical solution:
[0068] An electronic device, comprising:
[0069] at least one processor;
[0070] Memory;
[0071] At least one application, wherein at least one application is stored in a memory and configured to be executed by at least one processor, and at least one is configured to: execute an electronic medical record template updating method shown in any possible implementation of the first aspect.
[0072] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution:
[0073] A computer-readable storage medium, when the computer program is executed in a computer, enables the computer to execute an electronic medical record template updating method as described in any one of the first aspects.
[0074] In summary, the present application includes at least one of the following beneficial technical effects:
[0075] When there are new elements in the updated hospital-wide template, obtain the new elements and the modules to which the new elements belong, determine the templates to be updated from the department-level templates and the personal-level templates according to the modules, and extract the medical record data in the target medical record of each preset example content that hits the element to be added, as well as the medical record content of each original element in the module where the element to be added is located. The target patients of different templates are different, and the medical record content of the original elements can reflect the specific conditions of the target patients. The appropriate positions of the elements to be added are different in the same modules of different templates. Therefore, the medical record content of each original element is extracted, and the medical record content is analyzed to facilitate the subsequent determination of the location of the elements to be added in the module. Position, determine the target content that hits the preset example content and the number of hits of the preset example content from the target medical record, and then determine the importance of the element to be added based on the target content and the number. Since there is a certain correlation between different elements in the medical record, it is convenient to determine the correlation between each element to be added and each original element by analyzing the target content and the medical record content. After determining the importance and correlation, the appropriate position of the element to be added in the module can be accurately determined. Finally, the template to be updated is updated according to the position and the element to be added to obtain an updated template, so that the updated template is more reasonable and more in line with the medical staff's usage habits of the template, which is convenient for medical staff to quickly adapt to the updated template. BRIEF DESCRIPTION OF THE DRAWINGS
[0076] Figure 1 It is a flowchart of an electronic medical record template updating method according to an embodiment of the present application.
[0077] Figure 2 This is an example diagram of a medical record template in an embodiment of the present application.
[0078] Figure 3 It is a schematic diagram of a specific process for determining importance in an embodiment of the present application.
[0079] Figure 4 It is a schematic diagram of a specific process for determining relevance in an embodiment of the present application.
[0080] Figure 5 It is a structural schematic diagram of an electronic medical record template updating device according to an embodiment of the present application.
[0081] Figure 6 It is a structural schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0082] The present application is further described in detail below in conjunction with the accompanying drawings.
[0083] After reading this specification, those skilled in the art may make non-creative modifications to this embodiment as needed, but such modifications are protected by patent law as long as they are within the scope of the claims of this application.
[0084] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0085] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.
[0086] The embodiments of the present application are further described in detail below in conjunction with the drawings in the specification.
[0087] The embodiment of the present application provides an electronic medical record template update method, which is executed by an electronic device, which can be a server or a terminal device, wherein the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services. The terminal device can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc., but is not limited thereto. The terminal device and the server can be directly or indirectly connected via wired or wireless communication, and the embodiment of the present application does not limit this. Figure 1 As shown, the method includes step S101, step S102, step S103, step S104, step S105 and step S106, wherein:
[0088] S101, obtaining the newly added elements of the updated hospital-wide template and the module to which each newly added element belongs.
[0089] Each newly added element corresponds to at least one preset example content.
[0090] For the embodiments of the present application, in the electronic medical record system of the hospital, it usually includes a hospital-wide template, a department-level template derived from the hospital-wide template, and a personal-level template derived from the department-level template. Each template is composed of multiple elements. Derivation means deriving a child template based on the parent template. The child template completely inherits the structure and style of the parent template. The program marks all structures derived from the parent template in the child template, and modifications and operations on the child template will not affect the parent template. Therefore, the hospital-wide template serves as the parent template, the department-level template is the child template, and when the department-level template serves as the parent template, the personal-level template is the child template.
[0091] When the electronic medical record template needs to be updated, usually only the hospital-wide template is updated, and the sub-templates other than the hospital-wide template can be updated according to the hospital-wide template. When the hospital-wide template is updated, new elements are added, that is, newly added elements. The electronic device can obtain the update log of the hospital-wide template, or compare the updated hospital-wide template with the hospital-wide template before the update, so as to obtain the newly added elements and the module to which the newly added elements belong. For example, the newly added element is "existing chronic diseases", and the module to which the newly added element belongs is "special circumstances of the patient". In order to facilitate medical staff to fill in the newly added elements and other operations, the newly added elements correspond to preset example content. Taking "existing chronic diseases" as an example, the corresponding preset example content may include "hypertension", "chronic gastritis", "chronic arrhythmia", etc. Examples of medical record templates are as follows: Figure 2 As shown, Figure 2 It includes a "personal information" module and a "patient special circumstances" module, each of which includes four original elements. Specifically, the "patient special circumstances" module includes a "past history" element and a "drug allergy" element. Taking the above example, the newly added element is "existing chronic diseases". It is necessary to add the "existing chronic diseases" element to the "patient special circumstances" module, and determine the specific location of the "existing chronic diseases" element through subsequent embodiments.
[0092] S102, determining the templates to be updated including the modules in the department-level template and the personal-level template, and the elements to be added in the newly added elements hit by each template to be updated.
[0093] For the embodiment of the present application, after the electronic device determines the module to which the newly added element belongs, it can search for the template containing the module in all department-level templates and all personal-level templates, that is, the template to be updated. After determining the template to be updated, since there may be more than one newly added element and they may belong to different modules, the newly added elements hit by each template to be updated may be different. Therefore, the electronic device matches the module in each template to be updated with the module to which the newly added element in the hospital-level template belongs, thereby determining the newly added element in each template to be updated.
[0094] S103, determining the target medical record from the electronic medical record library of each template to be updated, and extracting the medical record data in each target medical record, as well as the medical record content of each original element in the module where the element to be added is located.
[0095] The target medical records include medical records that match the preset example content of the element to be added.
[0096] For the embodiment of the present application, each template to be updated corresponds to a plurality of archived electronic medical records, and forms an electronic medical record library. The electronic device retrieves the electronic medical record library, and screens the electronic medical records in the electronic medical record library according to the preset example content of the element to be added, and obtains the medical records that hit the preset example content. The electronic device extracts the medical record data of the target medical record, as well as the medical record content of each original element in the module where the element to be added is located. Taking step S101 as an example, the module is "Patient's Special Conditions", which may include original elements such as "Past History" and "Drug Allergy". Since the target patients of each template are different, and the medical record content of the original elements can reflect the specific conditions of the target patients, the appropriate positions of the elements to be added are different in the same modules of different templates. Therefore, the electronic device extracts the medical record content of each original element, and facilitates the subsequent determination of the position of the element to be added in the module according to the medical record content.
[0097] S104, determining target content that hits preset example content and the number of hit preset example content from the target medical record based on the medical record data.
[0098] For the embodiment of the present application, the electronic device can filter the medical record data of all target medical records according to the preset sample content to obtain all target contents that hit the preset sample content, that is, a preset sample content appears multiple times in all target medical records. The number of preset sample contents that hit is assuming that there are 10 preset sample contents in total, and only 6 of the 10 preset sample contents are hit in all target contents, and 6 is the number of preset sample contents that hit.
[0099] S105, determining the importance of each to-be-added element based on the target content and the number, and determining the relevance between each to-be-added element and each original element based on the target content and the medical record content.
[0100] For the embodiment of the present application, the more the target content appears, the more important the corresponding element to be added is, and vice versa. Similarly, the more the number of preset example contents hits, the more important the corresponding element to be added is, and vice versa. Therefore, the electronic device can accurately determine the importance of the element to be added based on the target content and the number of preset example contents hits. In order to better determine the appropriate position of the element to be added in the module, since there is a certain correlation between different elements in the medical record, the correlation between the element to be added and each original element can be determined by analyzing the target content and the medical record content of each original element.
[0101] S106, determining the position of each to-be-added element in the module based on the relevance and importance, and updating the to-be-added template based on the position and the to-be-added element to obtain an updated template.
[0102] For the embodiment of the present application, after the electronic device determines the importance of the element to be added and the correlation with each original element, it can determine the position of the element to be added in the module. After the electronic device determines the position, it can edit and update the template to be updated according to the position and the element to be added to obtain an updated template. When there is an element to be added, the appropriate position is determined by calculating the correlation between the element to be added and the original element, and the importance of the element to be added, and the template to be updated is updated, so that the updated template is more reasonable and more in line with the template usage habits, which is convenient for medical staff to quickly adapt to the updated template.
[0103] In a possible implementation of the embodiment of the present application, the importance of each element to be added is determined based on the target content and the number in step S105, which specifically includes steps Sa, Sb and Sc. Figure 3 As shown,
[0104] Sa, determine a first quantity of target content and a second quantity of target medical records, and determine a first ratio of the first quantity to the second quantity.
[0105] For the embodiment of the present application, the first number is the total number of target contents that hit the preset example contents in the medical record data of all target medical records. Assume that the first number is 2200 and the second number of target medical records is 2000. The electronic device determines that the first ratio of the first number to the second number is 1.1. The first ratio represents the average number of preset example contents that appear in each target medical record. The larger the first ratio, the more frequently the preset example contents of the element to be added appear, and thus the more important the element to be added is.
[0106] Sb, determining a second ratio of the second number to the total number of medical records in the electronic medical record library, and a third ratio of the number of hits on the preset example content to the total number of preset example content.
[0107] For the embodiment of the present application, the electronic device counts the number of medical records in the electronic medical record library to obtain the total number of medical records. Assume that the total number of medical records is 6000. Taking step Sa as an example, the electronic device determines that the second ratio of the second number to the total number of medical records is approximately 0.33. The second ratio is the proportion of the target medical records in the total number of medical records. Since the target medical records are medical records containing preset example content, the larger the proportion of the target medical records, that is, the larger the second ratio, indicates that the element to be added is more important among the recipient patients of the template to be updated. Therefore, the second ratio can characterize the importance of the element to be added.
[0108] Assume that the number of preset example contents hit is 6, the total number of preset example contents is 10, and the electronic device determines that the third ratio is 0.6. A higher third ratio indicates that the preset example contents used in the template to be updated are richer, and thus indicates that the element to be added is more important.
[0109] Sc, determining a first score of the element to be added based on the first ratio, the second ratio, the third ratio and their respective corresponding first coefficients.
[0110] Among them, the first score represents the importance.
[0111] For the embodiment of the present application, since the first ratio, the second ratio and the third ratio are all key factors affecting the importance of the element to be added, and the above three have different degrees of influence on the importance, different first coefficients are set for the above three, assuming that the first coefficient of the first ratio is 0.4, the first coefficient of the second ratio is 0.4, and the first coefficient of the third ratio is 0.2. Taking step Sa and step Sb as an example, the electronic device determines that the first score of the element to be added is 1.1×0.4+0.33×0.4+0.6×0.2=0.692. 0.692 is the importance of the element to be added. By calculating the three ratios related to the importance and combining the sum of the three ratios to determine the first score that can characterize the importance, it is more accurate, and by expressing the importance with a numerical value, it is more intuitive. It should be known that the first coefficient can be adaptively adjusted according to the actual situation or actual needs, and the above is only used as an example.
[0112] In a possible implementation of the embodiment of the present application, in step S105, the correlation between each element to be added and each original element is determined based on the target content and the medical record content, specifically including steps S1, S2, S3, S4 and S5. Figure 4 As shown,
[0113] S1, extract the text of each target medical record to obtain the text paragraph of each target medical record.
[0114] For the embodiment of the present application, after the electronic device determines the target medical record, it can scan and recognize the characters in the medical record through optical character recognition (OCR) technology to obtain a text paragraph. After the characters are recognized through OCR technology, all the recognized characters are sorted by deleting blank lines and other operations to obtain a text paragraph.
[0115] S2, based on all text paragraphs, determine the number of characters between any target content and each medical record content in each text paragraph, and determine the average number of characters between any target content and each medical record content.
[0116] For the embodiment of the present application, the electronic device marks the medical record content of each original element. Assuming that there is any target content "hypertension" in a certain text paragraph, the electronic device counts the number of characters from "hypertension" to each medical record content. Assuming that the number of characters from "hypertension" to the medical record content a in the text paragraph is 10, it can be understood that the number of characters from "hypertension" to the original element a corresponding to the medical record content a is 10. Then the electronic device determines the number of characters from "hypertension" to each original element a in all text paragraphs, and determines the average number of characters through the average calculation formula. Assume that the average number of characters is 12. The more characters there are, the farther the distance from the target content to the original element, the smaller the relationship between them, and the less relevant they are. Conversely, the larger the relationship, the more relevant they are.
[0117] S3, determining the target text paragraphs whose character counts do not reach the average character count, the third number of the target text paragraphs, and the fourth ratio.
[0118] The fourth ratio is a ratio of the third quantity to the second quantity.
[0119] For the embodiment of the present application, the fourth ratio is the ratio of the third number to the second number of the target medical records. The larger the fourth ratio is, the more times the number of characters between the target content and the medical record content of the original element does not reach the average number of characters for a certain target content, and the less accurate the correlation between the target content and the original element represented by the average value is.
[0120] S4: If the fourth ratio reaches the preset ratio, a new average number of characters is determined based on the number of characters between any target content and each medical record content in the target text paragraph.
[0121] For the embodiment of the present application, assuming that the preset ratio is 0.6, the preset ratio is used as the calculated average number of characters to represent the dividing point of the correlation between the element to be added and each original element. Reaching the preset ratio of 0.6 means that the number of times the average number of characters is not reached is too many and the proportion is too large. The error of using the average number of characters to represent the correlation is large. Therefore, the electronic device determines the number of characters of the target content in the target text paragraph and the medical record content of the original elements, and determines a new average number of characters according to the average value calculation formula.
[0122] If the fourth ratio does not reach the preset ratio, the electronic device may determine the average value of the number of characters calculated for the first time as a basis for subsequent steps.
[0123] S5, determining a second score based on the new average value of the number of characters, the fourth ratio, and the respective corresponding coefficients.
[0124] The second score represents the correlation between any element to be added and each original element.
[0125] For the embodiment of the present application, the new average value of the number of characters and the fourth ratio are both factors affecting the relevance between the target content and each medical record content, and the degree of influence of the two is different. Therefore, different second coefficients are set for the new average value of the number of characters and the fourth ratio. Assuming that the second coefficient of the new average value of the number of characters is 0.6 and the second coefficient of the fourth ratio is 7, assuming that the new average value of the number of characters is 8 and the fourth ratio is 0.7, the second score of the target content "hypertension" and the medical record content a (original element a) is 8×0.6+0.7×7=9.7. That is, the relevance between the target content "hypertension" and the medical record content a (original element a) is 9.7. Since the target content represents the element to be added and the medical record content represents the original element, the second score represents the relevance between the element to be added and each original element. The size of the average value of the number of characters is determined by the preset ratio as the judgment of the relevance. The relevance is calculated more accurately by determining the new average value of the number of characters. Combined with the fourth ratio with a high degree of influence on the relevance, the comprehensive determination of the relevance is more accurate, and the relevance is more intuitively concretized by the second score. The second coefficient can also be adaptively adjusted according to actual conditions or actual needs, and the above is only used as an example.
[0126] In a possible implementation of the embodiment of the present application, in step S106, the position of each element to be added in the module is determined based on the relevance and importance, which specifically includes step 1, step 2, step 3 and step 4, wherein:
[0127] Step 1: determine the two original elements with the highest correlation corresponding to each element to be added, and determine the difference in correlation between the two original elements.
[0128] For the embodiment of the present application, it is assumed that the two original elements with the highest correlation corresponding to a certain element to be added are original element b and original element c, and the correlation of original element b is greater than the correlation of original element c. The electronic device calculates the difference between the two correlations (second scores). The larger the difference, the more relevant the element to be added is only to the original element b, and vice versa, the more relevant it is to both the original element b and the original element c.
[0129] Step 2: If the importance of the element to be added reaches a preset importance threshold and the difference is less than the preset difference, the position of the element to be added is determined to be between two original elements and adjacent to the original element with the highest correlation.
[0130] For the embodiment of the present application, the preset importance threshold is used as the dividing point of whether the importance of the element to be added is high. If the importance reaches the preset importance threshold, it can be set in front of the original element with the highest correlation. The preset difference is used as the dividing point of whether the two original elements with the highest correlation are both related to the element to be added. If the difference in the correlation of the two original elements is less than the preset difference at this time, it means that the element to be added is relatively relevant to both original elements. Therefore, the electronic device determines that the position of the element to be added is between the two original elements and adjacent to the original element with the highest correlation. As a result, the element to be added is relatively close to the two most relevant original elements but adjacent to the original element with the highest correlation, so that the position of the element to be added is more reasonable, and the elements with the highest correlation are placed together, so that medical staff can adapt more easily when using the updated template.
[0131] Step three: if the importance of the element to be added reaches a preset importance threshold and the difference is not less than the preset difference, the position of the element to be added is determined to be adjacent to the original element with the highest correlation and located in front of the original element with the highest correlation.
[0132] For the embodiment of the present application, if the difference reaches the preset difference, it means that the element to be added is only related to the original element with the highest correlation. At this time, the importance of the element to be added reaches the preset importance threshold, which means that the importance of the element to be added is highly correlated with the original element with the highest correlation. Therefore, it is more reasonable to determine the position of the element to be added as the front of the original element with the highest correlation and adjacent to the original element. If the preset importance threshold is not reached and the difference is not less than the preset difference, it means that the importance of the element to be added is low, and it is more reasonable for the electronic device to determine the position of the element to be added as the back of the original element and adjacent to the original element.
[0133] Step 4: If the importance of the element to be added does not reach the preset importance threshold and the difference is not less than the preset difference, the position of the element to be added is determined to be adjacent to the original element with the highest correlation and behind the original element with the highest correlation.
[0134] For the embodiment of the present application, if the difference is not less than the preset difference, it means that the element to be added is related to the original element with the highest correlation, and there is no need to consider the original element with the second highest correlation. At this time, if the importance does not reach the preset importance threshold, the electronic device determines that the position of the element to be added is adjacent to and behind the original element with the highest correlation.
[0135] In a possible implementation manner of the embodiment of the present application, the method further includes step 5, wherein step 5 may be performed after step S104, wherein:
[0136] Step 5: determine the preset example content with the largest number of characters from the hit preset example content, and determine the area occupied by the element to be added according to the number of characters in the preset example content with the largest number of characters.
[0137] For the embodiment of the present application, when there are multiple preset example contents, different preset example contents have different character lengths, that is, different numbers of characters, so the electronic device determines the preset example content with the largest number of characters from the hit preset example contents, and determines the area occupied by the element to be added according to the number of characters of the preset example content. After the electronic device determines the position of the element to be added, it adds the element to be added to the module based on the area occupied, so that the updated template is more harmonious and easier to operate and view.
[0138] In a possible implementation of the embodiment of the present application, the updated template and the medical record data are saved separately, and the method further includes step 6 and step 7, wherein step 6 can be performed after step S106, wherein:
[0139] Step six, when an operation of opening an unarchived electronic medical record is detected, the medical record data of the unarchived electronic medical record and the updated template corresponding to the unarchived electronic medical record are obtained.
[0140] For the embodiments of the present application, the unarchived electronic medical records are the electronic medical records that medical staff still need to operate, that is, the medical records written using the template before the update, and the archived electronic medical records are the electronic medical records in the medical record library. The medical record template and the medical record data are saved separately, and are rendered in real time when viewing the electronic medical record, so that the historical electronic medical record can adapt to the updated template. The electronic device detects the operation of opening an unarchived electronic medical record by detecting an input device such as a mouse to trigger a formulation program. After detecting that the unarchived electronic medical record is opened, the electronic device obtains the case data of the medical record and obtains the updated template.
[0141] Step seven, rendering the medical record data of the unarchived electronic medical record onto the updated template corresponding to the unarchived electronic medical record to obtain an updated electronic medical record, and outputting and displaying the updated electronic medical record.
[0142] For the embodiment of the present application, the electronic device retrieves the target content of the element to be added in the medical record data, and renders the target content to the updated template. At the same time, the electronic device renders other medical record data to other locations in the updated template, thereby obtaining an updated electronic medical record. The electronic medical record control display or other display device can display the updated electronic medical record. The electronic device renders in the background, and there is no need for medical staff to manually make changes to the template, etc., thereby improving the operating experience of medical staff and facilitating medical staff to adapt to the updated template in a timely manner.
[0143] In a possible implementation of the embodiment of the present application, the method further includes: controlling the updated electronic medical record to display the elements to be added in a preset format. This step may be performed after step seven, wherein:
[0144] For the embodiments of the present application, the preset format may be a format such as a font, font size, and color that is different from other elements, or it may be to circle the elements to be added, thereby highlighting the elements to be added, so that medical staff can understand the updated parts more clearly and become familiar with the updated electronic medical records.
[0145] The above embodiment introduces an electronic medical record template updating method from the perspective of method flow, and the following embodiment introduces an electronic medical record template updating device from the perspective of a virtual module or a virtual unit. Please refer to the following embodiment for details.
[0146] The present application embodiment provides an electronic medical record template updating device 20, such as Figure 5 As shown, the electronic medical record template updating device 20 may specifically include:
[0147] The first acquisition module 201 is used to acquire the newly added elements of the updated hospital-wide template and the modules to which each newly added element belongs, and each newly added element corresponds to at least one preset example content;
[0148] The first determination module 202 is used to determine the templates to be updated including the modules in the department-level template and the personal-level template, and the elements to be added in the newly added elements hit by each template to be updated;
[0149] The data extraction module 203 is used to determine the target medical records from the electronic medical record library of each template to be updated, and extract the medical record data in each target medical record, as well as the medical record content of each original element in the module where the element to be added is located. The target medical records include the medical records that hit the preset example content of the element to be added;
[0150] A second determination module 204 is used to determine target content that hits preset example content and the number of preset example content that hits from the target medical record based on the medical record data;
[0151] The third determination module 205 is used to determine the importance of each to-be-added element based on the target content and the number, and to determine the relevance between each to-be-added element and each original element based on the target content and the medical record content;
[0152] The updating module 206 is used to determine the position of each to-be-added element in the module based on the relevance and importance, and to update the to-be-added template based on the position and the to-be-added element to obtain an updated template.
[0153] The embodiment of the present application discloses an electronic medical record template updating device 20, wherein when there are new elements in the updated hospital-level template, the first acquisition module 201 acquires the new elements and the modules to which the new elements belong, the first determination module 202 determines the template to be updated from the department-level template and the personal-level template according to the modules, and the new elements to be added in each template to be updated that hits the new elements, the data extraction module 203 extracts the medical record data in the target medical record of each preset example content that hits the new elements to be added, and the medical record content of each original element in the module where the new elements to be added are located, the target patients of different templates are different, and the medical record content of the original elements can reflect the specific conditions of the target patients, the suitable positions of the new elements to be added are different in the same modules of different templates, so the medical record content of each original element is extracted, and the medical record content of the new elements to be added is convenient for subsequent determination according to the medical record content. The position of the newly added element in the module, the second determination module 204 determines the target content and the number of hits of the preset example content from the target medical record, and then the third determination module 205 determines the importance of the element to be added according to the target content and the number. Since there is a certain correlation between different elements in the medical record, the third determination module 205 analyzes the target content and the medical record content to facilitate the determination of the correlation between each element to be added and each original element. After determining the importance and correlation, the update module 206 can accurately determine the appropriate position of the element to be added in the module. Finally, the template to be updated is updated according to the position and the element to be added to obtain an updated template, so that the updated template is more reasonable and more in line with the medical staff's usage habits of the template, which is convenient for medical staff to quickly adapt to the updated template.
[0154] In a possible implementation of the embodiment of the present application, when the third determination module 204 determines the importance of each to-be-added element based on the target content and the number, it is specifically configured to:
[0155] Determining a first quantity of target content and a second quantity of target medical records, and determining a first ratio of the first quantity to the second quantity;
[0156] Determine a second ratio of the second number to the total number of medical records in the electronic medical record library, and a third ratio of the number of hits on the preset example content to the total number of preset example content;
[0157] A first score of the element to be added is determined based on the first ratio, the second ratio, the third ratio and the first coefficients corresponding to each of them, where the first score represents the importance.
[0158] In a possible implementation of the embodiment of the present application, when the third determination module 204 determines the relevance between each to-be-added element and each original element based on the target content and the medical record content, it is specifically used to:
[0159] Extracting the text of each target medical record to obtain a text paragraph of each target medical record;
[0160] Determine the number of characters between any target content and each medical record content in each text paragraph based on all text paragraphs, and determine the average number of characters between any target content and each medical record content;
[0161] determining a target text paragraph whose number of characters does not reach the average number of characters, a third number of the target text paragraphs, and a fourth ratio, wherein the fourth ratio is a ratio of the third number to the second number;
[0162] If the fourth ratio reaches the preset ratio, a new average number of characters is determined based on the number of characters between any target content and each medical record content in the target text paragraph;
[0163] A second score is determined based on the new average value of the number of characters, the fourth ratio, and the respective corresponding second coefficients, where the second score represents the correlation between any element to be added and each original element.
[0164] In a possible implementation of the embodiment of the present application, when the updating module 206 determines the position of each element to be added in the module based on the relevance and importance, it is specifically used to:
[0165] Determine the two original elements with the highest correlation corresponding to each element to be added, and determine the difference between the correlations of the two original elements;
[0166] If the importance of the element to be added reaches the preset importance threshold and the difference is less than the preset difference, the position of the element to be added is determined to be between the two original elements and adjacent to the original element with the highest correlation;
[0167] If the importance of the element to be added reaches the preset importance threshold and the difference is not less than the preset difference, the position of the element to be added is determined to be adjacent to the original element with the highest correlation and in front of the original element with the highest correlation;
[0168] If the importance of the element to be added does not reach the preset importance threshold and the difference is not less than the preset difference, the position of the element to be added is determined to be adjacent to the original element with the highest correlation and behind the original element with the highest correlation.
[0169] In a possible implementation of the embodiment of the present application, the device 20 further includes:
[0170] The occupied area determination module is used to determine the preset example content with the largest number of characters from the hit preset example content, and determine the occupied area of the element to be added according to the number of characters of the preset example content with the largest number of characters.
[0171] In a possible implementation of the embodiment of the present application, the updated template and the medical record data are stored separately, and the device 20 further includes:
[0172] A second acquisition module is used to acquire the medical record data of the unarchived electronic medical record and the updated template corresponding to the unarchived electronic medical record when an operation of opening the unarchived electronic medical record is detected;
[0173] The first display module is used to render the medical record data of the unarchived electronic medical record onto the updated template corresponding to the unarchived electronic medical record to obtain the updated electronic medical record, and output and display the updated electronic medical record.
[0174] In a possible implementation of the embodiment of the present application, the device 20 further includes:
[0175] The second display module is used to control the display of the elements to be added in the updated electronic medical record according to a preset format.
[0176] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the electronic medical record template updating device 20 described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0177] An electronic device is provided in an embodiment of the present application, such as Figure 6 As shown, Figure 6 The electronic device 30 shown includes: a processor 301 and a memory 303. The processor 301 and the memory 303 are connected, such as through a bus 302. Optionally, the electronic device 30 may also include a transceiver 304. It should be noted that in actual applications, the transceiver 304 is not limited to one, and the structure of the electronic device 30 does not constitute a limitation on the embodiments of the present application.
[0178] The processor 301 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor 301 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0179] The bus 302 may include a path to transmit information between the above components. The bus 302 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 302 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but it does not mean that there is only one bus or only one type of bus.
[0180] The memory 303 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0181] The memory 303 is used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 301. The processor 301 is used to execute the application code stored in the memory 303 to implement the contents shown in the above method embodiment.
[0182] The electronic devices include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital TVs, desktop computers, etc. It can also be a server, etc. Figure 6 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0183] The embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed on a computer, enables the computer to execute the corresponding contents in the aforementioned method embodiment. Compared with the related art, in the embodiment of the present application, when there are new elements in the updated hospital-wide template, the new elements and the modules to which the new elements belong are obtained, and the templates to be updated are determined from the department-level templates and the personal-level templates according to the modules, and the new elements to be added in each template to be updated are hit, and the medical record data in the target medical record of each preset example content that hits the new elements to be added, as well as the medical record content of each original element in the module where the new elements are located, are extracted. The target patients of different templates are different, and the medical record content of the original elements can reflect the specific conditions of the target patients. The suitable positions of the new elements to be added are different in the same modules of different templates, so the medical record content of each original element is extracted, and the medical record content is analyzed to facilitate the subsequent determination of the new elements to be added. The position of the added element in the module is determined, the target content that hits the preset example content and the number of the hit preset example content are determined from the target medical record, and then the importance of the element to be added is determined based on the target content and the number. Since there is a certain correlation between different elements in the medical record, it is convenient to determine the correlation between each element to be added and each original element by analyzing the target content and the medical record content. After determining the importance and correlation, the appropriate position of the element to be added in the module can be accurately determined. Finally, the template to be updated is updated according to the position and the element to be added to obtain an updated template, so that the updated template is more reasonable and more in line with the medical staff's usage habits of the template, which is convenient for medical staff to quickly adapt to the updated template.
[0184] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0185] The above description is only a partial implementation method of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for updating an electronic medical record template, It is characterized in that include: Obtain the newly added elements of the updated hospital-wide template and the modules to which each newly added element belongs, each of which corresponds to at least one preset sample content; Determine the templates to be updated that include the module in the department-level templates and the personal-level templates, and the elements to be added in the newly added elements hit by each template to be updated; Determine the target medical records from the electronic medical record library of each template to be updated, and extract the medical record data in each target medical record, as well as the medical record content of each original element in the module where the element to be added is located, wherein the target medical records include the medical records that match the preset example content of the element to be added; Determine, from the target medical record based on the medical record data, target content that hits the preset example content and the number of the preset example content that hits; Determine the importance of each to-be-added element based on the target content and the number, and determine the relevance between each to-be-added element and each original element based on the target content and the medical record content; Determine the position of each to-be-added element in the module based on the relevance and importance, and update the to-be-added template based on the position and the to-be-added element to obtain an updated template; The determining the importance of each to-be-added element based on the target content and the number includes: Determining a first quantity of target content and a second quantity of the target medical records, and determining a first ratio of the first quantity to the second quantity; Determine a second ratio of the second number to the total number of medical records in the electronic medical record library, and a third ratio of the number of hits on the preset example content to the total number of preset example contents; Determine a first score of the element to be added based on the first ratio, the second ratio, the third ratio, and the first coefficients corresponding to each of them, wherein the first score represents the importance; The determining the relevance between each to-be-added element and each original element based on the target content and the medical record content includes: Extracting the text of each target medical record to obtain a text paragraph of each target medical record; Determine the number of characters between any target content and each medical record content in each text paragraph based on all text paragraphs, and determine the average number of characters between any target content and each medical record content; Determine a target text paragraph whose number of characters does not reach the average number of characters, a third number of the target text paragraphs, and a fourth ratio, wherein the fourth ratio is a ratio of the third number to the second number; If the fourth ratio reaches a preset ratio, a new average number of characters is determined based on the number of characters between any target content and each medical record content in the target text paragraph; A second score is determined based on the new average value of the number of characters, the fourth ratio, and the respective corresponding second coefficients, where the second score represents the correlation between any element to be added and each original element.
2. A method for updating an electronic medical record template according to claim 1, It is characterized in that The determining the position of each to-be-added element in the module based on the relevance and importance includes: Determine the two original elements with the highest correlation corresponding to each element to be added, and determine the difference between the correlations corresponding to the two original elements; If the importance of the element to be added reaches a preset importance threshold, and the difference is less than a preset difference, then the position of the element to be added is determined to be between the two original elements and adjacent to the original element with the highest correlation; If the importance of the element to be added reaches a preset importance threshold, and the difference is not less than the preset difference, then the position of the element to be added is determined to be adjacent to the original element with the highest correlation, and is located in front of the original element with the highest correlation; If the importance of the element to be added does not reach the preset importance threshold, and the difference is not less than the preset difference, the position of the element to be added is determined to be adjacent to the original element with the highest correlation and behind the original element with the highest correlation.
3. The method for updating an electronic medical record template according to claim 1, It is characterized in that The method further comprises: The preset example content with the largest number of characters is determined from the hit preset example content, and the area occupied by the to-be-added element is determined according to the number of characters of the preset example content with the largest number of characters.
4. The method for updating an electronic medical record template according to claim 1, It is characterized in that The updated template and the medical record data are stored separately, and the method further comprises: When an operation of opening an unarchived electronic medical record is detected, obtaining medical record data of the unarchived electronic medical record and an updated template corresponding to the unarchived electronic medical record; The medical record data of the unarchived electronic medical record is rendered onto an updated template corresponding to the unarchived electronic medical record to obtain an updated electronic medical record, and the updated electronic medical record is output and displayed.
5. The method for updating an electronic medical record template according to claim 1, It is characterized in that The method further comprises: Control the elements to be added in the updated electronic medical record to be displayed in a preset format.
6. An electronic medical record template updating device, It is characterized in that include: The first acquisition module is used to acquire the newly added elements of the updated hospital-wide template and the module to which each newly added element belongs, and each newly added element corresponds to at least one preset example content; A first determination module is used to determine the templates to be updated including the module in the department-level templates and the personal-level templates, and the elements to be added in the newly added elements hit by each template to be updated; A data extraction module, used to determine target medical records from the electronic medical record library of each template to be updated, and extract the medical record data in each target medical record, as well as the medical record content of each original element in the module where the element to be added is located, wherein the target medical record includes the medical record that hits the preset example content of the element to be added; A second determination module is used to determine the target content that hits the preset example content and the number of the preset example content that hits from the target medical record based on the medical record data; A third determination module is used to determine the importance of each to-be-added element based on the target content and the number, and to determine the relevance between each to-be-added element and each original element based on the target content and the medical record content; An updating module, configured to determine the position of each to-be-added element in the module based on the relevance and importance, and to update the to-be-added template based on the position and the to-be-added element to obtain an updated template; When the third determination module determines the importance of each to-be-added element based on the target content and the number, it is specifically used to: Determining a first quantity of target content and a second quantity of the target medical records, and determining a first ratio of the first quantity to the second quantity; Determine a second ratio of the second number to the total number of medical records in the electronic medical record library, and a third ratio of the number of hits on the preset example content to the total number of preset example contents; Determine a first score of the element to be added based on the first ratio, the second ratio, the third ratio, and the first coefficients corresponding to each of them, wherein the first score represents the importance; When the third determination module determines the relevance between each to-be-added element and each original element based on the target content and the medical record content, it is specifically used to: Extracting the text of each target medical record to obtain a text paragraph of each target medical record; Determine the number of characters between any target content and each medical record content in each text paragraph based on all text paragraphs, and determine the average number of characters between any target content and each medical record content; Determine a target text paragraph whose number of characters does not reach the average number of characters, a third number of the target text paragraphs, and a fourth ratio, wherein the fourth ratio is a ratio of the third number to the second number; If the fourth ratio reaches a preset ratio, a new average number of characters is determined based on the number of characters between any target content and each medical record content in the target text paragraph; A second score is determined based on the new average value of the number of characters, the fourth ratio, and the respective corresponding second coefficients, where the second score represents the correlation between any element to be added and each original element.
7. An electronic device, It is characterized in that It includes: at least one processor; Memory; At least one application, wherein the at least one application is stored in the memory and is configured to be executed by the at least one processor, and the at least one application is used to execute an electronic medical record template updating method according to any one of claims 1 to 5.
8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed in a computer, the computer is caused to execute the electronic medical record template updating method according to any one of claims 1 to 5.
