Medical report generation method, device and electronic equipment

By using unique identity tags and matching and conversion techniques of parsing elements, medical reports are generated, and manual input and file unreadable problems in medical data processing are solved, data readability and report accuracy are improved, and patient waiting time is reduced and the workload of medical staff.

CN117275651BActive Publication Date: 2024-11-12BEIJING HUAYI JINGDIAN BIOTECHNOLOGY CO LTD
View PDF 16 Cites 0 Cited by

Patent Information

Application Number
CN202311126546.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-01
Publication Date
2024-11-12
Estimated Expiration
2043-09-01

AI Technical Summary

Technical Problem

In the processing of medical data, doctors need to manually obtain and fill in the examination results from the color ultrasound equipment, resulting in long wait times for patients and the risk of input errors. The structured files on the color ultrasound equipment cannot be read and displayed directly, which increases medical services The workload of the staff.

Method used

By obtaining the files to be parsed, using preset unique identity tags for parsing elements to match and classify, converting them into target format, using unique identity tags and converted parsing elements to generate medical reports, reducing manual input, and improving data readability and reports accuracy.

Benefits of technology

It reduces the time-consuming process of patient consultation, improves the readability of data and the accuracy of reports, reduces the workload of medical staff, and avoids input errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117275651B_ABST
    Figure CN117275651B_ABST
Patent Text Reader

Abstract

The present application provides a medical report generation method, device and electronic device, the method comprising: obtaining a file to be parsed, matching parsed elements in the file to be parsed according to a unique identity tag of the preset parsed element; identifying the parsed element according to the unique identity tag, determining the type of the parsed element, and classifying the parsed element; converting the parsed elements of the same type into a target format to obtain the parsed elements after conversion; in response to the correspondence between the unique identity tag and the parsed element after conversion, obtaining a basic template of the medical report to be generated, obtaining the project name and project value position of the basic template, matching the project name with the element name of the parsed element after conversion and filling it, matching the project value with the parsed value of the parsed element after conversion and filling it, and generating a medical report. For the unreadable or low-readable files to be parsed, the medical report is generated by uniformly processing, saving the doctor's time for querying the parsed elements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of medical data processing technology, and in particular to a data analysis method, device, and electronic equipment. Background Art

[0002] The most time-consuming part of the consultation process is the interaction with the doctor. After each examination, the doctor needs to wait for the results and manually fill in the results in the corresponding report column. The whole process makes the patient physically and mentally exhausted.

[0003] Especially for heart examination, color ultrasound equipment is required, and each time the examination results are filled in, the corresponding display values ​​are found on the color ultrasound equipment, and then manually entered into the patient's examination report. While increasing the workload of medical staff, there may be input errors. The structured files on the color ultrasound equipment cannot be directly read and displayed. Therefore, in order to facilitate reading and accurate display of the examination structure, the structured files need to be parsed accordingly and directly filled into the corresponding data columns. Summary of the invention

[0004] In view of this, the purpose of the present application is to propose a medical report generation method, device and electronic device that solve the above-mentioned problems or at least partially solve the above-mentioned problems.

[0005] Based on the above objectives, the first aspect of the present application provides a method for generating a medical report, comprising:

[0006] Obtaining a file to be parsed, and matching parsing elements in the file to be parsed according to preset unique identity tags of the parsing elements;

[0007] Identify the parsed element according to the unique identity tag, determine the type of the parsed element, and classify the parsed element;

[0008] Convert the parsed elements of the same type into a target format to obtain converted parsed elements;

[0009] In response to the correspondence between the unique identity tag and the converted parsed element, a basic template of the medical report to be generated is obtained, the item name and item value position of the basic template are obtained, the item name is matched and filled with the element name of the converted parsed element, the item value is matched and filled with the parsed value of the converted parsed element, and a medical report is generated.

[0010] Optionally, the process of presetting a unique identity tag for the parsed element includes:

[0011] Create a certain number of unique identification tags in the database;

[0012] Establishing a correspondence between different unique identity tags and the parsed elements;

[0013] For any of the parsed elements, the unique identity tag corresponding to the parsed element is added to the first position of the parsed element.

[0014] Optionally, the types of parsed elements include: patient type, examination information, service information and image information;

[0015] The patient information includes the patient's basic personal information;

[0016] The inspection information includes inspection items and the time when the inspection items are carried out;

[0017] The service information includes inspection equipment information;

[0018] The image information includes numerical values ​​and images corresponding to the inspection items;

[0019] After the analysis elements are classified, they include:

[0020] Determining the element name of the parsed element;

[0021] Filtering the parsed elements according to their element names;

[0022] In response to determining that the parsed element does not match the medical report, and / or the parsed element includes the service information, the parsed element is deleted.

[0023] Optionally, converting the parsed elements of the same type into a target format to obtain converted parsed elements includes:

[0024] Extract characters of parsed elements of the same type in sequence and merge them into the first string;

[0025] Importing the first character string into a preset target format namespace;

[0026] Using the target format document type, create an empty target format document object;

[0027] Loading the first string into the target format document object;

[0028] Using the document element attribute of the target format document type, obtaining the root node of the target format document object;

[0029] Using the child node attributes of the target format, traverse the attributes of the elements of the characters in the first string, and add the characters of the first string to the corresponding positions in the target document object;

[0030] The target document object is converted into a second character string.

[0031] Optionally, after converting the target document object into a second character string, the method further includes:

[0032] Splitting the second character string based on the unique identity tag as a boundary to obtain a split result;

[0033] Obtain the element name and parsed value in the split result;

[0034] According to the element name, converting the unit of the parsed value; and

[0035] According to the element name, retain the decimal point of the parsed value;

[0036] In response to the parsed value not existing, filling a valueless item between the element name and the parsed value;

[0037] In response to the existence of the parsed value, the character length of the parsed value is obtained, and character length padding and value item padding are performed between the element name and the parsed value.

[0038] Optionally, in response to the correspondence between the unique identity tag and the converted parsed element, the method includes:

[0039] Using the unique identification to identify the converted parsed element;

[0040] Match the element name before format conversion and the element name after conversion;

[0041] In response to the element name before the conversion being the same as the element name after the conversion, it is determined that the unique identity tag corresponds to the parsed element after the conversion.

[0042] Optionally, in response to at least two parsed values ​​corresponding to the same parsed element, determining the execution time of the parsed element according to the unique identity identifier;

[0043] In response to the difference in the execution time of the parsed elements being no greater than a first threshold, taking the last parsed value of the execution time;

[0044] In response to the difference in the time of performing the parsing elements being greater than the first threshold and not greater than the second threshold, taking an average of all parsing values;

[0045] In response to the difference in the time of performing the parsed elements being greater than a third threshold, all parsed values ​​are extracted and filled in sequence; wherein the third threshold is greater than the second threshold.

[0046] Optionally, in response to the element name of the parsed element including a special disease, the element name is replaced by a first symbol and the parsed value is replaced by a second symbol in the generated medical report;

[0047] A two-dimensional code is generated and filled in a blank space of the medical report; wherein the two-dimensional code includes the element name replaced by the first symbol and the parsed value replaced by the second symbol.

[0048] In a second aspect of the present application, a medical report generating device is provided, comprising:

[0049] A matching module is used to obtain a file to be parsed and match parsed elements in the parsed file according to a preset unique identity tag of the parsed element;

[0050] a classification module, configured to identify the parsed element according to the unique identity tag, determine the type of the parsed element, and classify the parsed element;

[0051] A conversion module, used for converting the parsed elements of the same type into a target format to obtain converted parsed elements;

[0052] A generation module is used to obtain a basic template of a medical report to be generated in response to the correspondence between the unique identity tag and the converted parsed element, obtain the item name and item value position of the basic template, match the item name with the element name of the converted parsed element and fill it, match the item value with the parsed value of the converted parsed element and fill it, and generate a medical report.

[0053] According to a third aspect of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the medical report generating method as described in the first aspect is implemented.

[0054] From the above, it can be seen that the medical report generation method, device and electronic device provided by the present application use unique identity tags to correspond to different parsing elements, use unique identity tags to effectively identify parsing elements, classify the files to be parsed and store them according to certain rules, and then convert the parsing elements of the same type to the target format. The parsing elements of the files to be parsed are more readable and have a clear structure. The element names and parsing values ​​of the converted parsing elements are uniformly matched and filled with the project names and project values ​​in the basic template to generate a medical report. If there is no need to measure an item, enter it manually to reduce the time spent on patient consultation. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0056] Figure 1 A flow chart of a method for generating a medical report according to an embodiment of the present application;

[0057] Figure 2 A schematic diagram showing a parsed element in an embodiment of the present application after adding a unique identity tag;

[0058] Figure 3 This is a schematic diagram of the analytical elements after transformation in an embodiment of the present application;

[0059] Figure 4 A schematic diagram of a medical report according to an embodiment of the present application;

[0060] Figure 5 A schematic diagram of a medical report generating device according to an embodiment of the present application;

[0061] Figure 6 A schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0062] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0063] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be the usual meanings understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0064] Based on this, reference Figure 1As shown, the present application provides a method for generating a medical report, comprising:

[0065] S101, obtaining a file to be parsed, and matching parsing elements in the file to be parsed according to preset unique identity tags of the parsing elements.

[0066] S102: Identify the parsed element according to the unique identity tag, determine the type of the parsed element, and classify the parsed element.

[0067] S103: Convert the parsed elements of the same type into a target format to obtain converted parsed elements.

[0068] S104. In response to the correspondence between the unique identity tag and the converted parsed element, obtain the basic template of the medical report to be generated, obtain the item name and item value position of the basic template, match the item name with the element name of the converted parsed element and fill it in, match the item value with the parsed value of the converted parsed element and fill it in, and generate a medical report.

[0069] In some embodiments, the file to be parsed is mainly aimed at the medical field, especially at the color ultrasound examination commonly performed in the medical field using color ultrasound equipment. After the patient undergoes color ultrasound examination on the medical color ultrasound equipment, the patient reads the value corresponding to the examination from the medical color ultrasound equipment, for example, the inner diameter of the aortic sinus is 2.5 cm, then the doctor fills in the position corresponding to the examination item according to the read value, and for this file to be parsed, due to the particularity of its format, common terminal devices cannot directly read its corresponding content, and also cannot directly store and display it in the examination report. Exemplarily, the naming format of the file to be parsed is SRc., such as SRc.1.2.840.113663.1500.1.441353263, etc., and there is no relevant rule in the naming, that is, common terminal devices cannot directly open and read files in the SRc. format, such as desktop computers, mobile phones, mobile computers, tablet computers, media players, smart wearable devices, personal digital assistants (PDAs) or other electronic devices that can achieve the above functions.

[0070] In step S101, the unique identity tag preset for the parsed element can be used to identify the parsed element, and the unique identity tag is used as the "identity card" of the parsed element, so as to facilitate the classification of the parsed element later.

[0071] In step S102, the number of parsed elements returned for the file in the SRc. format is huge, nearly 500, and the parsed elements are not stored according to a specific rule. Many of the parsed elements have multiple records, so it is necessary to summarize the returned parsed elements. First, the unique identity tags of the parsed elements are preset to summarize the parsed elements. The parsed elements are classified by the type of parsed elements, and the parsed elements are stored according to the corresponding rules. For medical reports, they are also displayed according to certain rules. In the process of generating medical reports later, the rules are used to perform corresponding matching and filling. There is no need to traverse the unique identity tags of all parsed elements for matching during any filling in the medical report.

[0072] In the related art, after the corresponding inspection, the inspection value needs to be filled in. During the filling process, one item is checked and one item is read, or the whole inspection is completed and one item is read one by one, instead of directly presenting the overall inspection value. In other words, the parsed name and parsed value of the parsed element need to be checked one by one, and then filled in one by one, which increases the interaction time between the patient and the doctor and wastes time. The parsed name and parsed value of all parsed elements in the format of SRc. cannot be opened and displayed by common terminal devices. Therefore, the overall format of the file to be parsed needs to be converted into the target format to increase the readability of the parsed elements in the file to be parsed. In step S103, the file to be parsed composed of the classified parsed elements is converted into the target format so that common terminal devices can recognize and display the content therein.

[0073] In step S104, further, the converted parsed element is identified using the unique identity identifier;

[0074] Match the element name before format conversion and the element name after conversion;

[0075] In response to the element name before the conversion being the same as the element name after the conversion, it is determined that the unique identity tag corresponds to the parsed element after the conversion.

[0076] During the format conversion process, the content of the unique identity tag will not be changed. The stored unique identity tag is used to identify the preset unique identity tag in the parsing element, and the corresponding parsing element after the format conversion is obtained. The element name of the matching parsing element is the same before and after the conversion. If the same, it is determined that the unique identity tag corresponds to the parsing element after the conversion. During the format conversion process, the content of the parsing element is not changed. Obtain the basic template of the medical report to be generated, match the element name of the parsing element with the project name in the basic template, and fill it with the element name after the match. Match the parsing value of the parsing element with the project value in the basic template, and fill it with the parsing element after the match. After the overall completion, refer to Figure 4 As shown, an electronic version of the medical report is generated. For example: the element name is the inner diameter of the aortic sinus, and the parsed value is 2.5 cm. Optionally, the electronic version of the medical report can be printed to form a paper version. At this point, after the inspection, for the returned file to be parsed, all the parsed elements in the file to be parsed are uniformly classified and formatted, and then the element name and parsed value of the converted parsed element are matched with the project name and project value of the basic template of the medical report to be generated to generate a medical report.

[0077] refer to Figure 2 As shown, box A represents a unique identity tag, box B represents a parsed element, and each parsed element has a unique identity tag to identify the parsed element.

[0078] The correspondence between the parsed element and the unique identity tag is preset, and the process of presetting the unique identity tag for the parsed element includes:

[0079] Create a certain number of unique identification tags in the database;

[0080] Establishing a correspondence between different unique identity tags and the parsed elements;

[0081] For any of the parsed elements, the unique identity tag corresponding to the parsed element is added to the first position of the parsed element.

[0082] It is understandable that, for the parsing element, the corresponding parsing element exists in the hospital database and can be directly obtained from the database to correspond to the unique identity tag.

[0083] In some embodiments, the correspondence between different unique identity tags and parsed elements can be established by specifying the correspondence. For example, the unique identity tag 0008, 0020 is specified as the inspection date June 28, 2023.

[0084] In some embodiments, the parsed element types include: patient type, examination information, service information, and image information;

[0085] Patient information includes basic personal information of the patient;

[0086] Inspection information includes inspection items and inspection time;

[0087] Service information includes inspection equipment information;

[0088] Image information includes numerical values ​​and images corresponding to the inspection items;

[0089] After classifying the parsing elements, they include:

[0090] Determine the element name of the parsed element;

[0091] Filter parsed elements according to their element names;

[0092] In response to determining that the parsed element does not match the report, and / or the parsed element includes the service information, deleting the parsed element.

[0093] refer to Figure 2 As shown, each parsed element includes an element name and a parsed value, and the parsed value will appear after the corresponding element name is checked accordingly. If no corresponding check is performed, the parsed value is empty. In the above embodiment, the number of parsed elements returned by the public parsed file is huge, and the parsed elements that do not need to be generated in the medical report can be deleted accordingly to reduce the number of parsed elements to be processed in the parsed file and speed up the processing speed.

[0094] In some embodiments, the patient information includes the patient's basic personal information, such as personal name, birthday, age, gender, native place, contact information, identification and certification information, etc., so as to facilitate the confirmation of relevant information about the patient's basic situation through the patient information. As for personal information, except for name, gender, age and contact information, the remaining personal information does not need to appear in the medical report. Accordingly, the native place, identification, certification information, etc. do not match the medical report, and the native place, identification, certification information, etc. in the parsing element are deleted. In the corresponding examinations in the hospital, there are routine physical examinations and special examinations. For special examinations, such as heart examinations, the parsing element about the patient's height does not need to appear in the medical report. Therefore, the patient's height does not match the medical report, and the parsing element about the patient's height is deleted.

[0095] In some embodiments, the service information includes device information, and the device information includes device model, device name, etc. However, the service information does not need to be displayed in the medical report, and the service information in the parsed element is deleted.

[0096] According to different patient information, such as different ages, after detecting the patient's corresponding physical indicators, the patient's physical condition is judged by combining the physical indicators with the age.

[0097] In some embodiments, converting the same type of parsed elements into a target format to obtain converted parsed elements includes:

[0098] Extract characters of parsed elements of the same type in sequence and merge them into the first string;

[0099] Importing the first character string into a preset target format namespace;

[0100] Using the target format document type, create an empty target format document object;

[0101] Loading the first string into the target format document object;

[0102] Using the document element attribute of the target format document type, obtaining the root node of the target format document object;

[0103] Using the child node attributes of the target format, traverse the attributes of the elements of the characters in the first string, and add the characters of the first string to the corresponding positions in the target document object;

[0104] The target document object is converted into a second character string.

[0105] In some embodiments, the target format may be any file format recognizable by the terminal device, such as the XML format. For conversion to the XML format, the System.Xml namespace needs to be imported first in order to use Xml-related classes and methods.

[0106] Then use the XmlDocument class to create an empty Xml document object.

[0107] Use the LoadXml() method of the XmlDocument class to load the first string to be converted into the Xml document object.

[0108] Use the DocumentElement property of the XmlDocument class to get the root node of the Xml document object.

[0109] Use the ChildNodes property and Attribute property of the XmlNode class to traverse the elements and attributes in the first string and add them to the corresponding positions in the Xml document object.

[0110] Use the OuterXml property of the XmlDocument class to convert the Xml document object into a second string. Through the above steps, the first string can be converted into an Xml structure, and the generated second string is in Xml format.

[0111] In view of the unreadability of the SRc. file format of the file to be parsed, the readability of the file to be parsed is increased after conversion to the target format.

[0112] For example, after conversion to Xml format, the data can be made more unified, more readable, with a clearer structure, and support cross-platform languages.

[0113] In some embodiments, reference Figure 3 As shown, after converting the target document object into the second character, it also includes:

[0114] The second string is split with the unique identity tag as the boundary to obtain the split result. After the conversion of the first string to the second string is completed, the parsed elements of the same type are in the same string, and the second string is split with the unique identity tag as the boundary to obtain the split result. It can be understood that the unique identity tag is located at the first position of the parsed element. In the process of splitting the second string, the unique identity tag is encountered and split once. The split result is the element name + parsed value, and the first position of the split result still has the corresponding unique identity tag. The hierarchy of the split result is clearer, which is convenient for using the unique identity tag to identify the element name of the parsed element and the generation of subsequent medical reports.

[0115] Get the element name and parsed value in the split result.

[0116] According to the element name, the unit of the analyzed value is converted. After the corresponding analyzed value is obtained, for example, the unit of the left atrial diameter is mm, and in the medical field, the doctor obtains information based on the medical report, and the information of the left atrial diameter is recorded in cm. By presetting the unit of the left atrial diameter to cm, the unit that is not cm is converted accordingly during the format conversion process. It should be noted that by presetting the commonly used units and conversion algorithms of all analyzed elements, the corresponding conversion is performed during the conversion process.

[0117] According to the element name, the decimal point of the analyzed value is retained. After obtaining the corresponding analyzed value, for example, the value of one decimal place is usually taken for the mitral valve blood flow velocity. The doctor obtains information based on the medical report. For the information of the mitral valve blood flow velocity, one decimal place is retained to obtain relevant information. Similarly, similar to other analyzed elements, the decimal point of the analyzed value is retained based on the sufficient information that can be obtained. It should be noted that the decimal point retention of all analyzed elements is preset, and the required number of decimal places can be intercepted in the process of storing the analyzed value, so that patients and doctors can obtain relevant information of the analyzed elements and carry out relevant treatments.

[0118] In response to the non-existence of the resolved value, a valueless item is filled between the element name and the resolved value. In the process of performing relevant checks, if the check items corresponding to the element name are not checked, there will be a situation where the resolved value does not exist, for example Figure 3 The vm="0" shown in represents the valueless item filling. Accordingly, the element name in the parsed element does not have a parsed value, and the character length of the parsed value len="0". The valueless item filling is performed to facilitate the inspection of the parsed value filled in the subsequent report.

[0119] In response to the existence of the parsed value, the character length of the parsed value is obtained, and the character length and value items are filled between the element name and the parsed value. In response to the non-existence of the parsed value, after checking the check items corresponding to the element name, the corresponding parsed value exists. For example Figure 3 As shown in , vm="1" represents that there is a value, and the characters of the parsed value have a corresponding length, for example, len="16". By the length of the characters of the parsed value, a corresponding storage space is provided for the parsed value, thereby optimizing the storage space.

[0120] In some embodiments, if the parsed value does not exist, the parsed elements are traversed using the unique identity tag of the parsed element where the parsed value is located to further determine that the current parsed element does not have a parsed value to avoid omissions.

[0121] For the file to be parsed, there are multiple parsed elements of the same type, and the parsed values ​​in the parsed elements are stored in the file to be parsed. For multiple parsed values, corresponding values ​​need to be taken to achieve accurate feedback on the patient's physical condition. For example, for some physical indicators, doctors have high proficiency requirements during the corresponding examination process. Even doctors with rich clinical experience may repeat certain indicators to complete the examination of the corresponding indicators. For another example, for some indicators, it is necessary to take the average value of the parsed values ​​to judge the overall condition of the patient. For another example, for some indicators, it is necessary to take all the parsed values ​​to judge the changes. For the above different situations, the time difference of the parsed elements is used to determine the value of the corresponding parsed element.

[0122] In some embodiments, in response to at least two parsed values ​​corresponding to the same parsed element, the progress time of the parsed element is determined according to the unique identity tag. In view of the parsed element having a unique identity tag, the same parsed element is found using the same unique identity tag, and the corresponding progress time is obtained according to the same parsed element using the relative relationship between the unique identity tag and the progress time.

[0123] In response to the difference in the time of the analytical element being no greater than the first threshold, the last analytical value of the time is taken. When the time difference is no greater than the first threshold, the doctor conducts the corresponding examination. If the first examination is inaccurate, the doctor immediately conducts a second or more examinations until there is no problem with the operation and the value is accurate, and then the examination is stopped. Then the last value is most consistent with the actual condition of the patient, and the analytical value obtained from the last examination is taken. Optionally, the first threshold can be 10s.

[0124] In response to the difference in the time of the analysis element being greater than the first threshold and not greater than the second threshold, the average of all the analysis values ​​is taken. For some analysis elements, multiple inspections are required, thereby taking multiple values, and the average of the analysis values ​​of the analysis elements is calculated to judge the overall condition of the patient. Optionally, the second threshold can be 10 minutes.

[0125] In response to the difference in the time of the analysis element being greater than the third threshold, all the analysis values ​​are extracted and filled in sequence. For some analysis elements, multiple inspections are required, so that multiple values ​​are taken. The patient's physical condition is determined according to the changes in the multiple analysis values. In this case, the multiple values ​​need to be listed separately for the doctor to make corresponding judgments. Optionally, the third threshold can be 24h.

[0126] In some embodiments, in response to the element name of the parsed element including a specific disease, the element name is replaced with a first symbol and the parsed value is replaced with a second symbol in the generated medical report;

[0127] A QR code is generated and filled in a blank space of the medical report; wherein the QR code includes the element name replaced by the first symbol and the parsed value replaced by the second symbol.

[0128] In some embodiments, special diseases may be diseases that include patient privacy. However, if private diseases and related data appear in medical reports, it may cause the patient's privacy to be leaked. In order to ensure the comprehensiveness of the examination, the corresponding examination data needs to be reflected to facilitate doctors and patients to view. The first symbol is used to replace the name of the private disease, and the second symbol is used to replace the numerical value related to the private disease to be displayed in the medical report. Furthermore, in order to facilitate the review of content related to private diseases, a QR code is used to replace the hiding of private disease names and related data. If the patient needs to view it accordingly, he can scan the QR code for review. Avoid privacy leaks caused by direct appearance in medical reports. The optional first symbol can be #, and the second symbol can be *.

[0129] It should be noted that when doctors view medical reports through terminal devices, special diseases and corresponding analytical values ​​will be displayed normally without the need to scan codes to view them.

[0130] In some embodiments, private diseases are screened, and the screened private diseases are preset. At the same time, a unique identity tag is corresponding to the corresponding private disease. After the corresponding unique identity tag is obtained, the first symbol is used to replace the element name, and the second symbol is used to replace the parsed value in the process of generating the report.

[0131] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.

[0132] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0133] Based on the same technical concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a data analysis device.

[0134] refer to Figure 5 , the medical report generating device comprises:

[0135] The matching module 501 is used to obtain a file to be parsed and match the parsed elements in the parsed file according to the unique identity tags of the preset parsed elements;

[0136] A classification module 502, for identifying the parsed element according to the unique identity tag, determining the type of the parsed element, and classifying the parsed element;

[0137] The conversion module 503 is used to convert the parsed elements of the same type into a target format, and obtain the parsed elements after the conversion;

[0138] Generation module 504 is used to obtain the basic template of the medical report to be generated in response to the correspondence between the unique identity tag and the converted parsed element, obtain the item name and item value position of the basic template, match the item name with the element name of the converted parsed element and fill it, match the item value with the parsed value of the converted parsed element and fill it, and generate a medical report.

[0139] For the convenience of description, the above device is described in terms of functions divided into various modules. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0140] The device of the above embodiment is used to implement the corresponding data analysis method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0141] Based on the same technical concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the data analysis method described in any of the above embodiments is implemented.

[0142] Figure 6 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.

[0143] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0144] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.

[0145] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0146] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).

[0147] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).

[0148] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.

[0149] The electronic device of the above embodiment is used to implement the corresponding medical report generation method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0150] Based on the same technical concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the medical report generation method described in any of the above embodiments.

[0151] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0152] The computer instructions stored in the storage medium of the above embodiments are used to enable the computer to execute the data analysis method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0153] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.

[0154] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.

[0155] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.

[0156] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.

Claims

1. A method for generating a medical report, characterized in that: include: Obtaining a file to be parsed, and matching parsing elements in the file to be parsed according to preset unique identity tags of the parsing elements; Identify the parsed element according to the unique identity tag, determine the type of the parsed element, and classify the parsed element; Convert the parsed elements of the same type into a target format to obtain converted parsed elements, wherein the converted parsed elements include element names and parsed values; In response to the correspondence between the unique identity tag and the converted parsed element, a basic template of the medical report to be generated is obtained, the item name and item value position of the basic template are obtained, the item name is matched with the element name of the converted parsed element and filled, the item value is matched with the parsed value of the converted parsed element and filled, and a medical report is generated; In response to the correspondence between the unique identity tag and the converted parsed element, the method includes: identifying the converted parsed element using the unique identity tag; Match the element name before format conversion and the element name after conversion; In response to the element name before the conversion and the element name after the conversion being the same, determining that the unique identity tag corresponds to the parsed element after the conversion; In response to at least two parsed values ​​corresponding to the same parsed element, determining a progress time of the parsed element according to the unique identity tag; In response to the difference in the execution time of the parsed elements being no greater than a first threshold, taking the last parsed value of the execution time; In response to the difference in the time of performing the parsing elements being greater than the first threshold and not greater than the second threshold, taking an average of all parsing values; In response to the difference in the time of performing the parsed elements being greater than a third threshold, all parsed values ​​are extracted and filled in sequence; wherein the third threshold is greater than the second threshold.

2. The method according to claim 1, characterized in that The process of presetting a unique identity tag for the parsed element includes: Create a certain number of unique identification tags in the database; Establishing a correspondence between different unique identity tags and the parsed elements; For any of the parsed elements, the unique identity tag corresponding to the parsed element is added to the first position of the parsed element.

3. The method according to claim 1, characterized in that The types of parsed elements include: patient type, examination information, service information and image information; The patient type includes the patient's basic personal information; The inspection information includes inspection items and the time when the inspection items are carried out; The service information includes inspection equipment information; The image information includes numerical values ​​and images corresponding to the inspection items; After the analysis elements are classified, they include: Determining the element name of the parsed element; Filtering the parsed elements according to their element names; In response to determining that the parsed element does not match the medical report, and / or the parsed element includes the service information, the parsed element is deleted.

4. The method according to claim 1, characterized in that: The converting the parsed elements of the same type into a target format to obtain the converted parsed elements includes: Extract characters of parsed elements of the same type in sequence and merge them into the first string; Importing the first character string into a preset target format namespace; Using the target format document type, create an empty target format document object; Loading the first string into the target format document object; Using the document element attribute of the target format document type, obtaining the root node of the target format document object; Using the child node attributes of the target format, traverse the attributes of the elements of the characters in the first string, and add the characters of the first string to the corresponding positions in the target document object; The target document object is converted into a second character string.

5. The method according to claim 4, characterized in that After converting the target document object into a second character string, the method further includes: Splitting the second character string based on the unique identity tag as a boundary to obtain a split result; Obtain the element name and parsed value in the split result; According to the element name, converting the unit of the parsed value; and According to the element name, retain the decimal point of the parsed value; In response to the parsed value not existing, filling a valueless item between the element name and the parsed value; In response to the existence of the parsed value, the character length of the parsed value is obtained, and character length padding and value item padding are performed between the element name and the parsed value.

6. The method according to claim 1, characterized in that In response to the element name of the parsed element including a special disease, the element name is replaced with a first symbol and the parsed value is replaced with a second symbol in the generated medical report; A two-dimensional code is generated and filled in a blank space of the medical report; wherein the two-dimensional code includes the element name replaced by the first symbol and the parsed value replaced by the second symbol.

7. A medical report generating device, characterized in that: include, A matching module is used to obtain a file to be parsed and match parsed elements in the parsed file according to a preset unique identity tag of the parsed element; a classification module, configured to identify the parsed element according to the unique identity tag, determine the type of the parsed element, and classify the parsed element; A conversion module, used for converting the parsed elements of the same type into a target format to obtain converted parsed elements, wherein the converted parsed elements include element names and parsed values; A generating module, configured to obtain a basic template of a medical report to be generated in response to the correspondence between the unique identity tag and the converted parsed element, obtain the item name and item value position of the basic template, match the item name with the element name of the converted parsed element and fill it, match the item value with the parsed value of the converted parsed element and fill it, and generate a medical report; In response to the correspondence between the unique identity tag and the converted parsed element, the method includes: identifying the converted parsed element using the unique identity tag; Match the element name before format conversion and the element name after conversion; In response to the element name before the conversion and the element name after the conversion being the same, determining that the unique identity tag corresponds to the parsed element after the conversion; In response to at least two parsed values ​​corresponding to the same parsed element, determining a progress time of the parsed element according to the unique identity tag; In response to the difference in the execution time of the parsed elements being no greater than a first threshold, taking the last parsed value of the execution time; In response to the difference in the time of performing the parsing elements being greater than the first threshold and not greater than the second threshold, taking an average of all parsing values; In response to the difference in the time of performing the parsed elements being greater than a third threshold, all parsed values ​​are extracted and filled in sequence; wherein the third threshold is greater than the second threshold.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the medical report generating method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • XML (extensive markup language) parsing method and implementation method of custom XML structural forms in medical records

    CN103294796A

  • Domain ontology-based breast ultrasonic examination report structuring method

    CN110413963A

  • Medical data analysis method and device, electronic equipment and storage medium

    CN111933241A

  • Medical data analysis method and device, medium and electronic equipment

    CN112328551A

  • Ultrasonic report post-structured analysis method and system, equipment and medium

    CN112420151A