A medical log processing method, device, edge node and storage medium
By handling medical logs on the edge nodes, using the preset log rules to extract and assemble log fragments, solve the problem of non -standard chemical medical information management, improve the processing efficiency and storage transmission efficiency.
Patent Information
- Application Number
- CN202210123611.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-10
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2042-02-10
AI Technical Summary
The existing technology cannot effectively and uniformly manage non-standardized medical information, resulting in low data processing efficiency, excessive redundant information, large storage space, and low transmission efficiency.
By obtaining a full -scale logs generated by the medical client on the edge node, the log fragments of the preset medical services are used to use the log rules of preset medical services, and these fragments are transmitted to the log server for assembly to generate log files for preset medical services.
The unified management of non -standardized medical information has been realized, the logging efficiency is improved, the redundant information is reduced, the storage space occupation is reduced, and the transmission efficiency is improved.
Smart Images

Figure CN114913967B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data management, and in particular to a medical log processing method, device, edge node and storage medium. Background Art
[0002] With the rapid development of science and technology, the amount of data has exploded, and how to manage and query massive amounts of data is particularly important. Especially in the pharmaceutical industry, historical data has a reference and guiding significance for existing treatments.
[0003] After decades of development, a large number of medical institutions have basically completed the construction of mature medical information systems in China, and are constantly expanding their applications. The management technology for standardized information is already quite mature, and it can be processed and collected according to its standardized characteristics. However, in addition to standardized medical information, there is also a large amount of non-standardized medical information in the medical information system. When storing this information, there may be multiple names and no unified standard.
[0004] Since there is no uniform feature in non-standardized medical information and different people process data in different standards, there is an urgent need for a method for uniformly managing non-standardized medical information. Summary of the invention
[0005] The purpose of the present invention is to provide a medical log processing method, device, edge node and storage medium to address the deficiencies in the above-mentioned prior art, so as to solve the problems in the prior art such as the inability to uniformly manage non-standardized medical information.
[0006] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0007] In a first aspect, an embodiment of the present application provides a medical log processing method, which is applied to an edge node, and the method includes:
[0008] Obtain the full logs generated by the medical client corresponding to the edge node;
[0009] Using a preset log rule for medical services, extracting a plurality of log segments matching the log rule from the full log;
[0010] The multiple log segments are transmitted to a log server, so that the log server assembles the multiple log segments to obtain the log file of the preset medical service.
[0011] Optionally, before extracting a plurality of log segments matching the log rule from the full log using the preset log rule for the medical service, the method further comprises:
[0012] Acquire the segment information of each sample log segment input for at least one sample log segment in the log sample of the preset medical service;
[0013] The log rule of the preset medical service is generated according to the segment information of the at least one sample log segment.
[0014] Optionally, the fragment information includes: a fragment name, a fragment separator, and a fragment type.
[0015] Optionally, before transmitting the plurality of log segments to the log server, the method further includes:
[0016] Performing edge data conversion on preset information segments in the multiple log segments to obtain segment additional information of the preset information segments;
[0017] The transmitting the plurality of log segments to the log server comprises:
[0018] The multiple log segments and the segment additional information are transmitted to the log server, so that the log server assembles the multiple log segments and the segment additional information to obtain the log file of the preset medical service.
[0019] Optionally, performing edge data conversion on a preset information segment in the multiple log segments to obtain segment additional information of the preset information segment includes:
[0020] Information expansion is performed on a first preset information segment among the multiple log segments to obtain segment additional information of the first preset information segment.
[0021] Optionally, performing edge data conversion on a preset information segment in the multiple log segments to obtain segment additional information of the preset information segment includes:
[0022] An information tag is added to a second preset information segment among the multiple log segments to obtain segment additional information of the second preset information segment.
[0023] Optionally, the edge node is an edge server, and the medical client includes: all medical clients of the preset medical service;
[0024] Alternatively, the edge node is an edge workstation, and the medical client is a single medical client of the preset medical service.
[0025] In a second aspect, an embodiment of the present application provides a medical log processing device, the device comprising:
[0026] An acquisition module, used to acquire the full logs generated by the medical client corresponding to the edge node;
[0027] A matching module, configured to extract a plurality of log segments matching the log rules from the full log by using a preset log rule for medical services;
[0028] An assembling module is used to transmit the multiple log fragments to a log server so that the log server assembles the multiple log fragments to obtain the log file of the preset medical service.
[0029] In a third aspect, an embodiment of the present application provides an edge node, comprising: a processor and a storage medium, wherein the processor and the storage medium are connected to each other via a bus communication, the storage medium stores program instructions executable by the processor, and the processor calls the program stored in the storage medium to execute the steps of the medical log processing method as described in any one of the first aspects.
[0030] In a fourth aspect, an embodiment of the present application provides a storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the medical log processing method as described in any one of the first aspects are executed.
[0031] Compared with the prior art, this application has the following beneficial effects:
[0032] The embodiment of the present application provides a medical log processing method, device, edge node and storage medium. The method obtains the full log generated by the medical client corresponding to the edge node; adopts the log rule of the preset medical service to extract multiple log fragments matching the log rule from the full log; transmits the multiple log fragments to the log server so that the log server assembles the multiple log fragments to obtain the log file of the preset medical service. Thereby meeting the log processing needs of different users, allowing non-professionals to complete log processing, and uniformly processing non-standardized medical information, making log processing more effective, obtaining high-value information, avoiding obtaining redundant and useless information, reducing the storage space occupied by the log file of the preset medical service, and improving transmission efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0034] Figure 1 A schematic diagram of a medical log processing system provided in an embodiment of the present application;
[0035] Figure 2 A flowchart of a medical log processing method provided in an embodiment of the present application;
[0036] Figure 3 A flowchart of a method for generating log processing rules provided in an embodiment of the present application;
[0037] Figure 4 A flowchart of a method for performing edge data conversion on a log provided in an embodiment of the present application;
[0038] Figure 5 A schematic diagram of a medical log processing device provided in an embodiment of the present application;
[0039] Figure 6 A schematic diagram of an edge node provided in an embodiment of the present application.
[0040] Icon: 101 - edge node; 102 - log server; 501 - acquisition module; 502 - matching module; 503 - assembly module; 601 - processor; 602 - storage medium. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the technical scheme 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, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0042] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for protection, but merely represents selected embodiments of the present application. 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 the present application.
[0043] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0044] In addition, the terms “first”, “second”, etc., if used, are merely used to distinguish between the descriptions and should not be understood as indicating or implying relative importance.
[0045] It should be noted that, in the absence of conflict, the features in the embodiments of the present invention may be combined with each other.
[0046] In order to improve the processing efficiency of medical logs, the present application provides a medical log processing method, device, edge node and storage medium, which can also process non-standardized medical information and meet the log processing needs of different users.
[0047] Before explaining the medical log processing method, the processing system for medical log processing is first explained. Figure 1 A schematic diagram of a medical log processing system provided in an embodiment of the present application. Figure 1 As shown, the edge node 101 is connected to the log server 102. The edge node 101 is used to obtain the full log generated by the medical client corresponding to the edge node 101, perform rule matching processing on the full log, and transmit the matched multiple log segments to the log server 102. The log server 102 is used to obtain the matched multiple log segments from the edge node 101, and assemble the multiple log segments to generate a log file of the preset medical service.
[0048] The following is an explanation of a medical log processing method provided in an embodiment of the present application through a specific example. Figure 2 The following is a flow chart of a medical log processing method provided in an embodiment of the present application. The execution subject of the method may be an edge node, such as a desktop computer or a laptop computer with computing and processing functions. Figure 2 As shown, the method includes:
[0049] S101. Obtain the full logs generated by the medical client corresponding to the edge node.
[0050] Medical clients generate a large amount of logs during their work, and users need to obtain valuable information from the logs of medical clients. Different edge nodes correspond to different medical clients, so edge nodes need to obtain the full logs generated by the medical clients corresponding to the edge nodes for processing.
[0051] S102: Using the preset log rules for medical services, extract multiple log fragments matching the log rules from the full log.
[0052] There are multiple logs in the acquired full log. The preset medical service log rules are used to match each log in the order of the log context to obtain multiple log fragments, and multiple log fragments that meet the log rules are extracted. The multiple log fragments are the log content required by the user.
[0053] Among them, the log rules for preset medical services are log rules preset according to user needs. The log rules corresponding to each user are unique to the user, which can meet the user's needs for log processing, making log processing more personalized and the processing results more accurate, and obtaining high-value information that meets user needs.
[0054] For example, if the log rules for the preset medical service are:
[0055] {"[(? <project>\w+(-\w+){0,9}):%{IP:ipclient}.*]\s*%{TIMESTAMP:datetime}"}.
[0056] Then, according to the preset log rules of medical services, multiple log fragments matching the log rules are extracted from the full log as follows:
[0057] Project:{"connent":"Wxxxxxxx-xxxxxx-server","type":"string"}.
[0058] Ipclient:{"connent":"100.100.100.100","type":"IP"}.
[0059] datetime:{"connent":"2021-12-06 11:23:12.231","type":"TIMESTAMP"}.
[0060] By comparing the log rules of the preset medical service with multiple log fragments that match the log rules, it can be seen that the content in the multiple log fragments meets the specifications in the log rules. For example, the content in the multiple log fragments includes "Project, Ipclient, datetime" in the log rules. Since the multiple log fragments meet the log rules, and the log rules meet the needs of users, the multiple log fragments meet the needs of users.
[0061] S103: transmitting the multiple log fragments to the log server, so that the log server assembles the multiple log fragments to obtain a log file of the preset medical service.
[0062] Multiple log fragments that meet the log rules are added to the transmission queue in the order of matching and transmitted to the log server. The log server assembles multiple log fragments into a new log structure, that is, a new log file is obtained again. The content in the new log file is all the log content in the full log that meets the user's needs, that is, the log file of the preset medical service. At the same time, in order to improve the transmission efficiency of the log file and reduce the transmission cost, the assembled log file of the preset medical service is compressed and transmitted for user use.
[0063] For example, the extracted multiple log fragments may be:
[0064] Project:{"connent":"Wxxxxxxx-xxxxxx-server","type":"string"}.
[0065] Ipclient:{"connent":"100.100.100.100","type":"IP"}.
[0066] datetime:{"connent":"2021-12-06 11:23:12.231","type":"TIMESTAMP"}.
[0067] The assembled log file is:
[0068] "log":{[{"Project":{"connent":"Wxxxxxxx-xxxxxx-server","type":"string"}},{"Ipclient":{"connent":"100.100.100.100","type":"IP"}},{"datetime":{"connent":"2021-12-06 11:23:12.231","type":"TIMESTAMP"}}]}.
[0069] By comparing multiple log fragments and the assembled log files, it can be seen that since the multiple log fragments are obtained using the log rules of the preset medical services, the log files of the preset medical services only contain log content that meets user needs and do not contain redundant useless information, which greatly reduces the storage space occupied by the log files of the preset medical services and improves the transmission efficiency.
[0070] In summary, the medical log processing method provided by the embodiment of the present application obtains the full log generated by the medical client corresponding to the edge node; adopts the log rules of the preset medical service to extract multiple log fragments matching the log rules from the full log; transmits the multiple log fragments to the log server so that the log server assembles the multiple log fragments to obtain the log file of the preset medical service. Thereby meeting the log processing needs of different users, allowing non-professionals to complete log processing, and uniformly processing non-standardized medical information, making log processing more effective, obtaining high-value information, avoiding obtaining redundant useless information, reducing the storage space occupied by the compressed log file, and improving transmission efficiency.
[0071] In the above Figure 2 Based on a medical log processing method, an embodiment of the present application also provides a method for generating log processing rules. Figure 3 A flow chart of a method for generating log processing rules provided in an embodiment of the present application is as follows: Figure 3 As shown, in S102, before using the log rule of the preset medical service to extract multiple log segments matching the log rule from the full log, the method includes:
[0072] S201. Obtaining segment information of each sample log segment input for at least one sample log segment in a log sample of a preset medical service.
[0073] In the actual log processing process, each user has different requirements for log processing. If the user inputs his own requirements and then identifies them, the processing pressure will increase sharply. Therefore, in order to make the log processing process more convenient, it is necessary to standardize user requirements.
[0074] The user uploads a log of a preset medical service as a log sample. The user segments the log sample in the order of the log context to obtain multiple log segments. The user selects at least one log segment that meets the user's needs as a sample log segment. The user fills in the segment information content of the sample log segment on the visual interface based on the sample log segment. Since the segment information type of the sample log segment is fixed, the segment information filled in by the user is also within the recognizable range. When processing the log, it can be quickly processed based on the segment information of each sample log segment entered by the user, thereby improving the recognition efficiency.
[0075] Continue to refer to Figure 3 , the fragment information includes: fragment name, fragment separator, and fragment type. Among them, the fragment name is the name of the sample log fragment; the fragment separator is the iconic punctuation marks before and after the sample log fragment; the fragment type is the type of the content of the sample log fragment.
[0076] For example, the fragment information of each sample log fragment can be as follows:
[0077] Fragment 1: fragment name = project, fragment separator = "[", ":", fragment type = string.
[0078] Fragment 2: Fragment name = ipclient (IP client), fragment separator = "", ":", fragment type = IP.
[0079] Fragment 3: fragment name = datetime (date time), fragment separator = "[", "]", fragment type = TIMESTAMP (timestamp).
[0080] For example, when a user enters the fragment information content of a log fragment on the visual interface, the visual interface will display the commonly used fragment names, fragment separators, and fragment types for the user to choose. If the fragment name, fragment separator, and fragment type displayed on the visual interface do not meet the user's needs, the user can manually enter the fragment information. At the same time, the input specification will be displayed in the visual interface to remind the user. If the user's input does not meet the input specification, it will be displayed as incorrect input. For example, if the user enters character information in the fragment separator, the user will be reminded that the input format is incorrect and please re-enter.
[0081] By setting standardized fragment information and ensuring standardized input of the fragment information, the fragment information is easier to identify during log processing, thereby improving processing efficiency.
[0082] S202: Generate a log rule for a preset medical service according to the fragment information of at least one sample log fragment.
[0083] The fragment information of the sample log fragment already contains the features of the sample log fragment, that is, the log features selected by the user. Therefore, the log rule for the preset medical service generated based on the fragment information of at least one sample log fragment is the rule of the log content selected by the user. The log is processed according to the log rule of the preset medical service that meets the user's needs, so that the processing result is more accurate and of higher quality.
[0084] For example, the log rules for the preset medical service include: segment name, segment separator, segment type. If the segment information of the sample log segment includes:
[0085] Fragment 1: Fragment name = project, fragment separator = "[", ":", fragment type = string.
[0086] Fragment 2: Fragment name = ipclient, Fragment separator = "", ":", Fragment type = IP.
[0087] Fragment 3: Fragment name = datetime, fragment separator = "[", "]", fragment type = TIMESTAMP.
[0088] The generated log rules for the preset medical service are:
[0089] {"[(? <project>\w+(-\w+){0,9}):%{IP:ipclient}.*]\s*%{TIMESTAMP:datetime}"}.
[0090] The log rules of the preset medical service can accurately display the segment name, segment separator, and segment type of the target log segment, so as to match the log segment that meets the log rules of the preset medical service.
[0091] In summary, the method for generating log processing rules provided in the embodiment of the present application obtains the fragment information of each sample log fragment input for at least one sample log fragment in the log sample of the preset medical service; and generates the log rules of the preset medical service according to the fragment information of at least one sample log fragment. Thus, the user needs are obtained in a standardized manner, and log rules are generated according to the user needs, and multiple rules are constructed to centrally control the logs, so that the log rules are more accurate, so that non-professionals can also complete log processing.
[0092] In the above Figure 2 Based on a medical log processing method, an embodiment of the present application also provides a method for performing edge data conversion on a log. Figure 4 A flow chart of a method for converting edge data of a log provided in an embodiment of the present application is shown as follows: Figure 4 As shown, before transmitting the plurality of log segments to the log server in S103, the method includes:
[0093] S301: Perform edge data conversion on preset information segments in multiple log segments to obtain segment additional information of the preset information segments.
[0094] After obtaining multiple log segments that match the log rules, edge data conversion is performed on the preset information segments in the multiple log segments at the edge node to obtain the segment additional information of the preset information segment. That is, the important information in the preset information segment is extracted as the segment additional information, making the information of the log segment more direct and clear, convenient for users to use, and reducing redundant information.
[0095] Among them, the preset information segment can also be an information segment that meets the edge data conversion conditions and can perform edge data conversion; the preset information segment can be a log segment specified by the user, and edge data conversion can be performed at the same time. The preset information segment can be converted into edge data to meet user needs.
[0096] It should be noted that, if the additional information of the fragment is not obtained or fails to be obtained during the edge data conversion process, the fragment log is not affected and the transmission of the fragment log continues.
[0097] In the above S103, the multiple log segments are transmitted to the log server, so that the log server assembles the multiple log segments to obtain a log file of the preset medical service, including:
[0098] S302: transmitting the plurality of log segments and the additional information of the segments to a log server, so that the log server assembles the plurality of log segments and the additional information of the segments to obtain a log file of a preset medical service.
[0099] Multiple log segments and segment additional information are added to the transmission queue in the order of matching, and transmitted to the log server. The log server assembles the log segments and the segment additional information corresponding to the log segments together, and then assembles multiple log segments to form a new log structure, and obtains the log file of the preset medical service containing the segment additional information. At the same time, in order to improve the transmission efficiency of the log file and reduce the transmission cost, the log file of the preset medical service containing the segment additional information is compressed and transmitted for user use.
[0100] In summary, the embodiment of the present application provides a method for edge data conversion of logs, which performs edge data conversion on preset information fragments in multiple log fragments to obtain fragment additional information of the preset information fragments; transmits multiple log fragments and fragment additional information to the log server, so that the log server assembles multiple log fragments and fragment additional information to obtain the log file of the preset medical service. Thus, the log data is further converted through the edge node, so that the log fragments in the log file of the preset medical service are accompanied by the fragment additional information, which is convenient for users to use, and at the same time makes the important information in the log file of the preset medical service more prominent, thereby improving the user's efficiency and user experience.
[0101] In the above Figure 4 Based on a method for performing edge data conversion on a log, an embodiment of the present application further provides a method for obtaining additional information of a segment. In S301, edge data conversion is performed on a preset information segment in a plurality of log segments to obtain additional information of the preset information segment, including:
[0102] Information expansion is performed on a first preset information segment among the multiple log segments to obtain segment additional information of the first preset information segment.
[0103] Expanding the first preset information segment refers to adding information of the same type that belongs to a different dimension than the first preset information segment. For example, the first preset information segment may be a location or date information segment.
[0104] If the first preset information segment is a location information segment, geographical location information and / or regional location information can be added to the first preset information segment. For example, if the first preset information segment is an IP information segment, after the IP information segment is expanded, the additional information obtained can be: 103.38.133.13, Shanghai.
[0105] If the first preset information segment is a date information segment, date information and / or holiday information may be added to the first preset information segment. For example, if the first preset information segment is a date information segment, after the date information is expanded, the obtained segment additional information may be: 2022.2.1, Spring Festival.
[0106] The embodiment of the present application provides a method for obtaining additional information of a segment, which obtains the additional information of the first preset information segment by expanding the information of the first preset information segment in multiple log segments, thereby enriching the additional information of the segment.
[0107] In the above Figure 4 Based on a method for performing edge data conversion on a log, an embodiment of the present application also provides another method for obtaining additional information of a segment. In S301, edge data conversion is performed on a preset information segment in multiple log segments to obtain additional information of the preset information segment, and further includes:
[0108] An information tag is added to the second preset information segment in the plurality of log segments to obtain segment additional information of the second preset information segment.
[0109] Adding an information tag to the second preset information segment refers to adding an information tag to the second preset information segment to indicate the content of the second preset information segment. The added information tag may be an information tag input by a user or an information tag obtained by automatically identifying the second preset information segment.
[0110] For example, if the information tag of the second preset information segment is a service tag, and the service tag identifying the second preset information segment is: third-party service, then the obtained segment additional information is: third-party service. The information tag can also be a tag of other content, such as: a tag of "desensitization" or a tag of "quality control", which can be set according to the user's input and will not be described here one by one.
[0111] The embodiment of the present application also provides another method for obtaining segment additional information, which obtains the segment additional information of the second preset information segment by adding information tags to the second preset information segment in multiple log segments, thereby enriching the segment additional information.
[0112] In all the above embodiments, if the edge node is an edge server, the medical client includes: all medical clients of the preset medical service; or, if the edge node is an edge workstation, the medical client is a single medical client of the preset medical service. The edge workstation and the edge server are at the same level. In the actual log processing process, the edge node is selected as the edge server or edge workstation according to the processed log content, so that the edge processing is more efficient, the log processing is supplemented and enhanced by the edge node, and the computing power of the edge node agent is used to further convert the log data.
[0113] The following describes a medical log processing device, edge node, storage medium, etc. provided by the present application for execution. The specific implementation process and technical effects are described above and will not be repeated below.
[0114] Figure 5 A schematic diagram of a medical log processing device provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the processing device may include:
[0115] The acquisition module 501 is used to acquire the full logs generated by the medical client corresponding to the edge node.
[0116] The matching module 502 is used to extract multiple log segments matching the log rules from the full log using the log rules of the preset medical service.
[0117] The assembling module 503 is used to transmit the multiple log segments to the log server, so that the log server assembles the multiple log segments to obtain the log file of the preset medical service.
[0118] Furthermore, the matching module 502 is specifically used to obtain the fragment information of each sample log fragment input for at least one sample log fragment in the log sample of the preset medical service; and generate the log rule of the preset medical service according to the fragment information of at least one sample log fragment. The fragment information includes: fragment name, fragment separator, and fragment type.
[0119] Furthermore, the assembly module 503 is specifically used to perform edge data conversion on preset information segments in multiple log segments to obtain segment additional information of the preset information segments; transmit multiple log segments and segment additional information to the log server, so that the log server assembles multiple log segments and segment additional information to obtain the log file of the preset medical service.
[0120] Furthermore, the assembling module 503 is further configured to perform information expansion on the first preset information segment in the plurality of log segments to obtain segment additional information of the first preset information segment.
[0121] Furthermore, the assembling module 503 is further configured to add information tags to the second preset information segments in the plurality of log segments to obtain segment additional information of the second preset information segments.
[0122] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more digital singnal processors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0123] Figure 6 A schematic diagram of an edge node provided in an embodiment of the present application, the edge node may be a device with computing and processing capabilities.
[0124] The edge node includes: a processor 601 and a storage medium 602. The processor 601 and the storage medium 602 are connected via a bus.
[0125] The storage medium 602 is used to store programs, and the processor 601 calls the programs stored in the storage medium 602 to execute the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.
[0126] Optionally, the present invention also provides a program product, such as a computer-readable storage medium, comprising a program, which is used to execute the above method embodiment when executed by a processor.
[0127] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0128] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0129] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0130] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.< / project> < / project>
Claims
1. A medical log processing method, characterized in that: Applied to an edge node, the method comprises: Obtain the full logs generated by the medical client corresponding to the edge node; Using a preset log rule for medical services, extracting a plurality of log segments matching the log rule from the full log; Transmitting the multiple log segments to a log server, so that the log server assembles the multiple log segments to obtain a log file of the preset medical service; Before extracting a plurality of log segments matching the log rule from the full log using the preset log rule for the medical service, the method further includes: Acquire the segment information of each sample log segment input for at least one sample log segment in the log sample of the preset medical service; generating a log rule for the preset medical service according to the fragment information of the at least one sample log fragment; Before transmitting the plurality of log segments to the log server, the method further comprises: Performing edge data conversion on preset information segments in the multiple log segments to obtain segment additional information of the preset information segments; The transmitting the multiple log segments to the log server so that the log server assembles the multiple log segments to obtain the log file of the preset medical service includes: Transmitting the multiple log segments and the segment additional information to the log server, so that the log server assembles the multiple log segments and the segment additional information to obtain the log file of the preset medical service; The performing edge data conversion on the preset information segments in the multiple log segments to obtain segment additional information of the preset information segments includes: Performing information expansion on a first preset information segment among the multiple log segments to obtain segment additional information of the first preset information segment; The performing edge data conversion on the preset information segments in the plurality of log segments to obtain segment additional information of the preset information segments further includes: An information tag is added to a second preset information segment among the multiple log segments to obtain segment additional information of the second preset information segment.
2. The method according to claim 1, characterized in that The segment information includes: segment name, segment separator, and segment type.
3. The method according to any one of claims 1-2, characterized in that: If the edge node is an edge server, the medical clients include: all medical clients of the preset medical service; Alternatively, the edge node is an edge workstation, and the medical client is a single medical client of the preset medical service.
4. A medical log processing device, characterized in that: The device comprises: The acquisition module is used to obtain the full logs generated by the medical client corresponding to the edge node; A matching module, configured to extract a plurality of log segments matching the log rules from the full log by using a preset log rule for medical services; An assembling module, used for transmitting the plurality of log segments to a log server, so that the log server assembles the plurality of log segments to obtain a log file of the preset medical service; The matching module is specifically used to obtain the fragment information of each sample log fragment input for at least one sample log fragment in the log sample of the preset medical service; and generate the log rule of the preset medical service according to the fragment information of the at least one sample log fragment; The assembling module is specifically used to perform edge data conversion on the preset information segments in the multiple log segments to obtain the segment additional information of the preset information segment; transmit the multiple log segments and the segment additional information to the log server, so that the log server assembles the multiple log segments and the segment additional information to obtain the log file of the preset medical service; The assembling module is further configured to perform information expansion on a first preset information segment in the plurality of log segments to obtain segment additional information of the first preset information segment; The assembling module is further specifically used to add an information tag to the second preset information segment in the multiple log segments to obtain the segment additional information of the second preset information segment.
5. An edge node, characterized in that: include: A processor and a storage medium, wherein the processor and the storage medium are connected to each other via a bus communication, the storage medium stores program instructions executable by the processor, and the processor calls the program stored in the storage medium to execute the steps of the medical log processing method as described in any one of claims 1 to 3.
6. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the medical log processing method according to any one of claims 1 to 3 are executed.
Citation Information
Patent Citations
Distributed server cluster log data processing method, device and system
CN111680016A