Multi-barcode specimen identification barcode contrast information processing method, device, equipment and medium
By preprocessing the barcode data of multiple barcode specimens, identifying the identification barcode and the comparison barcode, and establishing the comparison information, the difficulty of information interaction between multiple barcode specimens in laboratory modules is solved, and the application efficiency of laboratory information and automation systems is improved.
Patent Information
- Application Number
- CN202510175010.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-18
- Publication Date
- 2025-05-09
AI Technical Summary
In the regional medical testing center, there are difficulties in interacting information and data between laboratory software and hardware modules, resulting in the limitation of the application of laboratory information and automation systems.
By obtaining the barcode data on the target multi-barcode specimen for preprocessing, identifying the identification barcode and the comparison barcode, and establishing the comparison information and storage in the preset storage space to support the interaction between the information and the data.
The information and data interaction between multiple barcoded specimens in various modules of the laboratory is realized, and the application efficiency of laboratory information and automation systems in regional medical testing centers is improved.
Smart Images

Figure CN119961308A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, device, equipment and medium for processing barcode comparison information of multi-barcode specimen identifications. Background Art
[0002] At present, there are great difficulties in the application of laboratory information and automation in regional medical testing centers. The reason is that medical institutions at all levels in the region have internal specimen coding. When specimens are collected at the regional medical testing center, multiple barcodes will be pasted on the sample tube, mainly including: the barcode of the hospital sending the specimen, the transportation barcode, and the barcode of the testing center. When the sample is tested in the module and the information is exchanged, the unique barcode is usually confirmed as the basis for interaction. Since the hardware can only obtain one barcode on the sample tube, and the software system cannot share multiple barcode information for the same specimen, it is impossible to automatically circulate the test and transmit information for multi-barcode sample tubes in the laboratory. Therefore, pasting multiple barcodes on one specimen seriously restricts the promotion and application of laboratory information and automation systems in regional medical testing centers.
[0003] The current level of informatization in regional medical testing centers is still relatively low. For some regional testing centers that have completed informatization and automation, single barcode sample tubes need to be manually sorted out before automated testing can be performed through the laboratory information system. For sample tubes with multiple sample barcodes, testing center staff need to manually confirm the identification barcode used in the information system and use the sample rack to inject the sample.
[0004] From the above, it can be seen that how to support the information and data exchange between various software and hardware modules of the laboratory for specimens containing multiple barcodes so that the laboratory information and automation system can be better applied in regional medical testing centers is an urgent problem to be solved. Summary of the invention
[0005] In view of this, the purpose of the present invention is to provide a method, device, equipment and medium for processing barcode comparison information of multi-barcode specimen identification, which can support information and data exchange between various software and hardware modules of the laboratory for specimens containing multiple barcodes, so that laboratory information and automation systems can be better applied in regional medical testing centers. The specific scheme is as follows:
[0006] In a first aspect, the present application provides a method for processing barcode comparison information of multiple barcode specimen identifications, comprising:
[0007] Acquiring barcode data on a target multi-barcode specimen, and performing data preprocessing on the barcode data to obtain target barcode data;
[0008] Acquire work order data that meets a preset time condition from a database, and determine identification barcode data and reference barcode data from the target barcode data based on the work order data; the work order data includes work order barcode data and work order information data corresponding to the work order barcode data;
[0009] Establishing comparison information based on the identification barcode data and the comparison barcode data, and storing the comparison information in a preset storage space; the comparison information is information characterizing the correspondence between the identification barcode data and other target barcode data;
[0010] If an information query request for the barcode data to be queried is obtained, the target identification barcode data corresponding to the barcode data to be queried is queried from the preset storage space based on the barcode data to be queried, and the work order data corresponding to the barcode data to be queried is obtained based on the target identification barcode data.
[0011] Optionally, the performing data preprocessing on the barcode data to obtain target barcode data includes:
[0012] Performing a data format check on the barcode data to obtain formatted barcode data;
[0013] Performing a validity verification operation on the formatted barcode data based on a preset validity verification algorithm to determine valid barcode data from the formatted barcode data;
[0014] The effective barcode data is deduplicated to obtain target barcode data.
[0015] Optionally, determining the identification barcode data and the reference barcode data from the target barcode data based on the work order data includes:
[0016] Cleaning the work order barcode data in the work order data, and creating a hash table structure based on the work order barcode data;
[0017] Determine whether there is target work order barcode data matching the current target barcode data in the work order barcode data by calling a search function for the hash table structure;
[0018] If the target work order barcode data exists, the current target barcode data is determined as the identification barcode data, and the other target barcode data is determined as the reference barcode data; if the target work order barcode data does not exist, the current target barcode data is determined as the reference barcode data, the next target barcode data is used as the current target barcode data, and the process jumps to the step of determining whether there is target work order barcode data matching the current target barcode data in the work order barcode data by calling the search function for the hash table structure, until the determination of each target barcode data is completed.
[0019] Optionally, before establishing the comparison information based on the identification barcode data and the comparison barcode data and storing the comparison information in a preset storage space, the method further includes:
[0020] Creating the preset storage space based on a preset data structure, and creating a relationship comparison table for defining a comparison relationship between the identification barcode and the comparison barcode, and a counter for recording the number of comparison barcodes corresponding to each identification barcode;
[0021] The preset data structure includes a dictionary data structure.
[0022] Optionally, establishing comparison information based on the identification barcode data and the comparison barcode data includes:
[0023] The comparison information between the identification barcode data and the comparison barcode data is established based on the relationship comparison table, and the timestamp when the comparison barcode and the identification barcode are first correspondingly established and the number of comparison barcodes that are compared with the identification barcode are recorded to obtain the comparison information.
[0024] Optionally, the querying of the target identification barcode data corresponding to the barcode data to be queried from the preset storage space based on the barcode data to be queried includes:
[0025] Loading the comparison information from the preset storage space, and determining whether there is stored barcode data matching the barcode data to be queried through a preset query algorithm;
[0026] If the stored barcode data exists, comparison information corresponding to the barcode data to be queried is determined based on the stored barcode data, and target identification barcode data corresponding to the barcode data to be queried is determined based on the comparison information.
[0027] Optionally, before querying the target identification barcode data corresponding to the barcode data to be queried from the preset storage space based on the barcode data to be queried, the method further includes:
[0028] Performing a format check on the barcode data to be queried, and determining whether the format of the barcode data to be queried meets a preset format condition;
[0029] If the format of the barcode data to be queried meets the preset format condition, jump to the step of querying the target identification barcode data corresponding to the barcode data to be queried from the preset storage space based on the barcode data to be queried;
[0030] If the format of the barcode data to be queried does not meet the preset format condition, a message indicating that the information acquisition has failed is returned to respond to the information query request.
[0031] In a second aspect, the present application provides a multi-barcode specimen identification barcode comparison information processing device, comprising:
[0032] A target barcode data acquisition module is used to acquire the barcode data on the target multi-barcode specimen and perform data preprocessing on the barcode data to obtain the target barcode data;
[0033] An identification barcode data determination module is used to obtain work order data that meets a preset time condition from a database, and determine identification barcode data and reference barcode data from the target barcode data based on the work order data; the work order data includes work order barcode data and work order information data corresponding to the work order barcode data;
[0034] A comparison information storage module, used to establish comparison information based on the identification barcode data and the comparison barcode data, and store the comparison information in a preset storage space; the comparison information is information characterizing the correspondence between the identification barcode data and other target barcode data;
[0035] The control information query module is used to query the target identification barcode data corresponding to the barcode data to be queried from the preset storage space based on the barcode data to be queried if an information query request for the barcode data to be queried is obtained, and obtain the work order data corresponding to the barcode data to be queried based on the target identification barcode data.
[0036] In a third aspect, the present application provides an electronic device, including:
[0037] Memory, used to store computer programs;
[0038] The processor is used to execute the computer program to implement the aforementioned multi-barcode specimen identification barcode comparison information processing method.
[0039] In a fourth aspect, the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the aforementioned multi-barcode specimen identification barcode comparison information processing method.
[0040] The present application provides a method for processing identification barcode comparison information of multiple barcode specimens, which comprises the following steps: firstly obtaining barcode data on a target multiple barcode specimen, and performing data preprocessing on the barcode data to obtain target barcode data; then obtaining work order data satisfying a preset time condition from a database, and determining identification barcode data and comparison barcode data from the target barcode data based on the work order data; the work order data comprises work order barcode data and work order information data corresponding to the work order barcode data; then establishing comparison information based on the identification barcode data and the comparison barcode data, and storing the comparison information in a preset storage space; the comparison information is information characterizing the correspondence between the identification barcode data and other target barcode data; finally, if an information query request for the barcode data to be queried is obtained, the target identification barcode data corresponding to the barcode data to be queried is queried from the preset storage space based on the barcode data to be queried, and the work order data corresponding to the barcode data to be queried is obtained based on the target identification barcode data.
[0041] As can be seen from the above, the present application adds a barcode comparison mechanism for multi-barcoded sample tubes to identify corresponding identification barcodes, that is, comparison information is established based on the identification barcode data and the comparison barcode data, and the comparison information is stored in a preset storage space, so that the corresponding identification barcode can be identified through the comparison information during data interaction, thereby supporting information and data exchange between various software and hardware modules of the laboratory for specimens containing multiple barcodes, so that laboratory information and automation systems can be better applied in regional medical testing centers. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0043] Figure 1 A flowchart of a method for processing barcode comparison information of multiple barcode specimen identifications disclosed in this application;
[0044] Figure 2 A schematic diagram of a multi-barcode specimen identification barcode comparison information processing device disclosed in this application;
[0045] Figure 3This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0047] At present, there are great difficulties in the application of laboratory information and automation in regional medical testing centers. The reason is that medical institutions at all levels in the region have internal specimen coding. When specimens are collected in the regional medical testing center, multiple barcodes will be pasted on the sample tube, mainly including: the barcode of the hospital sending the specimen, the transport barcode and the barcode of the testing center, etc. The sample usually confirms a unique barcode as the basis for interaction during module detection and information interaction. Since the hardware can only obtain one barcode on the sample tube, and the software system cannot share multiple barcode information for the same specimen, it is impossible to automatically circulate test and transmit information for multi-barcode sample tubes in the laboratory, so that multiple barcodes are pasted on one specimen, which seriously restricts the promotion and application of laboratory information and automation systems in regional medical testing centers. To this end, the present application provides a multi-barcode specimen identification barcode comparison information processing solution, which can support specimens containing multiple barcodes to exchange information and data between various hardware and software modules in the laboratory, so that laboratory information and automation systems can be better applied in regional medical testing centers.
[0048] See also Figure 1 As shown, the embodiment of the present application discloses a method for processing barcode comparison information of multiple barcode specimen identifications, including:
[0049] Step S11, acquiring the barcode data on the target multi-barcode specimen, and performing data preprocessing on the barcode data to obtain target barcode data.
[0050] In this embodiment, all barcodes pasted on the target multi-barcode specimen are scanned by a barcode scanner to obtain the barcode data on the target multi-barcode specimen, and the barcode data is transmitted to the laboratory data management platform. Wherein, the laboratory data management platform is a medical laboratory detection automation and data management system, including data communication and data processing with Lis (Laboratory Information Management System, i.e., laboratory information management system), analytical instrument software, and assembly line control software, and can realize automated detection and control of samples. Further, the acquired barcode data is cleaned to complete the preprocessing of the barcode data. Specifically, the data preprocessing of the barcode data to obtain the target barcode data may include: performing a data format check on the barcode data to obtain formatted barcode data; performing a validity verification operation on the formatted barcode data based on a preset validity verification algorithm to determine valid barcode data from the formatted barcode data; and performing deduplication processing on the valid barcode data to obtain the target barcode data.
[0051] Step S12: Acquire work order data that meets a preset time condition from a database, and determine identification barcode data and reference barcode data from the target barcode data based on the work order data.
[0052] In this embodiment, the work order data within a specified number of days is obtained from the database through a SQL (Structured Query Language) query, wherein the work order data includes work order barcode data and work order information data corresponding to the work order barcode data.
[0053] Furthermore, the barcode data in the extracted work order data is cleaned to remove possible prefixes, suffixes, and spaces. The barcode data in the work order data is used as the key and the corresponding work order information data is used as the value to construct a work order information hash table structure, and the identification barcode data and the reference barcode data are determined from the target barcode data based on the hash table structure. Specifically,
[0054] The method of determining the identification barcode data and the reference barcode data from the target barcode data based on the work order data may include: cleaning the barcode data in the extracted work order data, removing the possible prefixes, suffixes and spaces. The barcode data in the work order data is used as the key, and the corresponding work order information data is used as the value to construct a work order information hash table structure; the barcode data to be screened is used as the key, and the target work order barcode data matching the current target barcode data is determined by calling the search function for the hash table structure; if the target work order barcode data exists, the current target barcode data is determined as the identification barcode data, and other target barcode data is determined as the reference barcode data; if the target work order barcode data does not exist, the current target barcode data is determined as the reference barcode data, and the next target barcode data is used as the current target barcode data, and the step of determining whether the target work order barcode data matching the current target barcode data exists in the work order barcode data by calling the search function for the hash table structure, until the determination of each target barcode data is completed. That is, unique identification barcode data is determined from a number of target barcode data.
[0055] Step S13: Create comparison information based on the identification barcode data and the comparison barcode data, and store the comparison information in a preset storage space.
[0056] In this embodiment, a dictionary data structure is used, in which a non-identification barcode is used as a key (Key), and the corresponding value (Value) is an identification barcode. A corresponding table is created to store barcode information and comparison information, the relationship between the main barcode and the sub-barcode is defined, and the barcode information and its comparison information are persisted in the database. The comparison information is information that characterizes the correspondence between the identification barcode data and other target barcode data. A counter is created to record the number of comparison barcodes corresponding to each identification barcode, and to perform data analysis and report generation. Specifically, the comparison information is established based on the identification barcode data and the comparison barcode data, and before the comparison information is stored in a preset storage space, it may also include: creating a data storage structure based on the dictionary data structure, and creating a relationship comparison table for defining the comparison relationship between the identification barcode and the comparison barcode, and a counter for recording the number of comparison barcodes corresponding to each identification barcode.
[0057] In this embodiment, the comparison relationship is stored in the data storage structure, and the comparison details are supplemented to establish the comparison information. Specifically, the comparison information established based on the identification barcode data and the comparison barcode data may include: establishing the comparison information of the identification barcode data and the comparison barcode data based on the relationship comparison table, and recording the timestamp when the comparison barcode and the identification barcode are first established in a corresponding relationship and the number of comparison barcodes that establish a comparison relationship with the identification barcode, so as to obtain the comparison information, and store the comparison information in the Redis cache and the database.
[0058] Step S14: if an information query request for the barcode data to be queried is obtained, the target identification barcode data corresponding to the barcode data to be queried is queried from the preset storage space based on the barcode data to be queried, and the work order data corresponding to the barcode data to be queried is obtained based on the target identification barcode data.
[0059] In this embodiment, if an information query request for the barcode data to be queried is obtained, the comparison information is loaded from the preset storage space, and a preset query algorithm is used to determine whether there is any stored barcode data matching the barcode data to be queried. Specifically, the querying of the target identification barcode data corresponding to the barcode data to be queried from the preset storage space based on the barcode data to be queried may include: obtaining stored barcode comparison relationship data from the Redis cache, and if the comparison information does not exist in the Redis cache, querying the database to obtain all comparison records, and storing the results in a memory dictionary data structure, and determining whether there is any stored barcode data matching the barcode data to be queried through a preset query algorithm; if the stored barcode data exists, the comparison information corresponding to the barcode data to be queried is determined based on the stored barcode data, and the target identification barcode data corresponding to the barcode data to be queried is determined based on the comparison information.
[0060] It is worth mentioning that after obtaining the information query request for the barcode data to be queried, it is also necessary to check the format of the barcode data to be queried to avoid errors in the query due to format errors. Specifically, before querying the target identification barcode data corresponding to the barcode data to be queried from the preset storage space based on the barcode data to be queried, it can also include: checking the format of the barcode data to be queried, and judging whether the format of the barcode data to be queried meets the preset format conditions; if the format of the barcode data to be queried meets the preset format conditions, jump to the step of querying the target identification barcode data corresponding to the barcode data to be queried from the preset storage space based on the barcode data to be queried; if the format of the barcode data to be queried does not meet the preset format conditions, return a message indicating that the information acquisition failed to respond to the information query request. Wherein, the preset format conditions include but are not limited to length and character type conditions.
[0061] As can be seen from the above, the embodiment of the present application adds a barcode control mechanism for multi-barcode sample tubes to identify the corresponding identification barcode, that is, to establish control information based on the identification barcode data and the control barcode data, and store the control information in a preset storage space, so that the corresponding identification barcode can be identified through the control information during data interaction, thereby supporting information and data interaction between various hardware and software modules in the laboratory for specimens containing multiple barcodes, increasing the range of barcode pasting types covered, and improving the degree of inspection automation. The laboratory information and automation system can be better applied in regional medical testing centers.
[0062] Furthermore, the embodiment of the present application provides a specific method for processing barcode comparison information of multiple barcode specimen identifications, including:
[0063] In this embodiment, the method for processing barcode comparison information of multi-barcode specimen identification mainly includes barcode data preprocessing, identification barcode confirmation, barcode comparison information generation, and arbitrary barcode work order acquisition. The barcode data preprocessing includes: the barcode scanner scans all barcodes pasted on the sample tube, and then transmits the barcode string information to the laboratory information and automation system through Socket communication. The collected barcodes are preprocessed to ensure consistent format. Including removing leading and trailing blank characters, converting to uniform case, determining string length, and processing special characters. And use the Luhn algorithm to check the validity of each barcode, mark and record invalid barcodes. Finally, all barcodes are sorted in a certain order, traversing the sorted list, and finding and removing duplicates.
[0064] The identification barcode confirmation includes: obtaining LIS work order data within a specified number of days from the database through SQL query. And cleaning the barcodes in the extracted LIS work order to remove possible prefixes, suffixes, and spaces. Then, the barcode in the LIS work order is used as the key, and the corresponding other work order information is used as the value to construct a work order information hash table (Hash Table) structure, and the barcode to be screened is used as the key to directly call the hash table search function to determine whether the barcode exists in the LIS work order. If it is confirmed that the corresponding barcode exists in the work order, it indicates that the barcode is an identification barcode, otherwise it is a control barcode.
[0065] The barcode comparison information generation includes: using a dictionary data structure, in which a non-identification barcode is used as a key (Key), and the corresponding value (Value) is an identification barcode. And create a corresponding table for storing barcode information and comparison information, define the relationship between the main barcode and the sub-barcode, and persist the barcode information and its comparison information in the database. Then, create a counter (Counter) to record the number of comparison barcodes corresponding to each identification barcode, and perform data analysis and report generation. The identification barcode and the comparison barcode set form a one-to-one correspondence relationship and store it in the established data structure. Record the timestamp of the first association between the comparison barcode and the identification barcode (achieved by obtaining the current system time), and record the module information of the reporting comparison barcode. Finally, the comparison information of the generated identification barcode and the comparison barcode is stored in the Redis cache and database. And in a table form, the identification barcode, the corresponding comparison barcode and the detailed comparison information details are listed in the table.
[0066] The acquisition of any barcode work order includes: obtaining the stored barcode comparison relation data from the Redis cache. If the comparison information does not exist in Redis, query the database and use the statement "SELECT * FROM BARCODE_RELATION_TABLE" to obtain all comparison records, and store the results in a memory dictionary (Dictionary), where the key (Key) is the barcode value in the multiple barcodes, and the value (Value) is a tuple (Tuple) containing the corresponding identification barcode and LIS work order information. Report any barcode on the sample tube scanned by the instrument to the system, and perform basic format verification on the input barcode to check whether it meets the standard format requirements of the barcode (length, character type). If the format is incorrect, return a failure result. Use the binary search algorithm to extract the comparison information dictionary for the corresponding line body, and then use the input barcode as the key and use the ContainsKey method in the comparison dictionary to check whether the key exists. If a matching barcode record is found, obtain the corresponding identification barcode and LIS work order information. Finally, store the extracted identification barcode and LIS work order information in the internal data structure List<Dictionary<identification barcode, LIS work order information>> for subsequent rapid acquisition of LIS work order information based on the identification barcode.
[0067] As can be seen from the above, in the embodiment of the present application, for a multi-barcode sample tube, a barcode comparison mechanism is added to identify the corresponding identification barcode. That is, based on the identification barcode data and the comparison barcode data, comparison information is established, and the comparison information is stored in a preset storage space so that the corresponding identification barcode can be identified through the comparison information during data interaction, thereby enabling information and data interaction between specimens with multiple barcodes among various software and hardware modules in the laboratory, increasing the coverage range of barcode pasting types, and improving the degree of inspection automation. The laboratory information and the automation system can be better applied in the regional medical inspection center.
[0068] Correspondingly, as shown in Figure 2 the embodiment of the present application provides a multi-barcode specimen identification barcode comparison information processing device, including:
[0069] A target barcode data acquisition module 11, configured to acquire barcode data on a target multi-barcode specimen and perform data preprocessing on the barcode data to obtain target barcode data;
[0070] An identification barcode data determination module 12, configured to acquire work order data that meets a preset time condition from a database, and determine identification barcode data and comparison barcode data from the target barcode data based on the work order data; the work order data includes work order barcode data and work order information data corresponding to the work order barcode data;
[0071] A comparison information storage module 13, used to establish comparison information based on the identification barcode data and the comparison barcode data, and store the comparison information in a preset storage space; the comparison information is information representing the correspondence between the identification barcode data and other target barcode data;
[0072] The control information query module 14 is used to query the target identification barcode data corresponding to the barcode data to be queried from the preset storage space based on the barcode data to be queried if an information query request for the barcode data to be queried is obtained, and obtain the work order data corresponding to the barcode data to be queried based on the target identification barcode data.
[0073] As can be seen from the above, the embodiment of the present application adds a barcode comparison mechanism for multi-barcoded sample tubes to identify corresponding identification barcodes, that is, comparison information is established based on the identification barcode data and the comparison barcode data, and the comparison information is stored in a preset storage space, so that the corresponding identification barcode can be identified through the comparison information during data interaction, thereby supporting information and data exchange between various software and hardware modules of the laboratory for specimens containing multiple barcodes, so that laboratory information and automation systems can be better applied in regional medical testing centers.
[0074] In some specific implementations, the target barcode data acquisition module 11 may specifically include:
[0075] A barcode data formatting unit performs a data format check on the barcode data to obtain formatted barcode data;
[0076] a valid barcode data determining unit, configured to perform a validity verification operation on the formatted barcode data based on a preset validity verification algorithm, so as to determine valid barcode data from the formatted barcode data;
[0077] The target barcode data generating unit is used to perform deduplication processing on the valid barcode data to obtain the target barcode data.
[0078] In some specific implementations, the identification barcode data determination module 12 may specifically include:
[0079] A work order barcode data hash table structure generating unit, used for performing data cleaning on the work order barcode data in the work order data and creating a hash table structure based on the work order barcode data;
[0080] A target work order barcode data query unit, used for determining whether there is target work order barcode data matching the current target barcode data in the work order barcode data by calling a search function for the hash table structure;
[0081] The target barcode data type determination unit is used to determine the current target barcode data as identification barcode data if the target work order barcode data exists, and determine other target barcode data as reference barcode data; if the target work order barcode data does not exist, determine the current target barcode data as reference barcode data, use the next target barcode data as the current target barcode data, and jump to the step of determining whether there is target work order barcode data matching the current target barcode data in the work order barcode data by calling a search function for the hash table structure, until the determination of each target barcode data is completed.
[0082] In some specific implementations, the control information storage module 13 may specifically include:
[0083] The comparison information acquisition unit is used to establish the comparison information between the identification barcode data and the comparison barcode data based on the relationship comparison table, and record the timestamp when the comparison barcode and the identification barcode are first correspondingly established and the number of comparison barcodes that establish a comparison relationship with the identification barcode to obtain the comparison information.
[0084] In some specific implementations, the control information query module 14 may specifically include:
[0085] A comparison information loading unit, used to load comparison information from the preset storage space, and determine whether there is stored barcode data matching the barcode data to be queried through a preset query algorithm;
[0086] The target identification barcode data query unit is used to determine the comparison information corresponding to the barcode data to be queried based on the stored barcode data if the stored barcode data exists, and determine the target identification barcode data corresponding to the barcode data to be queried based on the comparison information.
[0087] In some specific implementations, the multi-barcode specimen identification barcode comparison information processing device may further include:
[0088] A storage space creation unit, used to create the preset storage space based on a preset data structure, and to create a relationship comparison table for defining the comparison relationship between the identification barcode and the comparison barcode, and a counter for recording the number of comparison barcodes corresponding to each identification barcode; the preset data structure includes a dictionary data structure;
[0089] a barcode data format check unit to be queried, used for performing format check on the barcode data to be queried, and determining whether the format of the barcode data to be queried satisfies a preset format condition; if the format of the barcode data to be queried satisfies the preset format condition, jumping to the step of querying the target identification barcode data corresponding to the barcode data to be queried from the preset storage space based on the barcode data to be queried;
[0090] The information query request response unit is used to return a message indicating that the information acquisition fails to respond to the information query request if the format of the barcode data to be queried does not meet the preset format condition.
[0091] Furthermore, the present application also discloses an electronic device. Figure 3 This is a structural diagram of an electronic device 20 according to an exemplary embodiment, and the content in the figure cannot be regarded as any limitation on the scope of use of this application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the multi-barcode specimen identification barcode comparison information processing method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.
[0092] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0093] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.
[0094] The operating system 221 is used to manage and control the hardware devices and computer program 222 on the electronic device 20, and can be Windows Server, Netware, Unix, Linux, etc. In addition to the computer program that can be used to complete the multi-barcode specimen identification barcode comparison information processing method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include computer programs that can be used to complete other specific tasks.
[0095] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the aforementioned disclosed method for processing barcode comparison information of multiple barcode specimen identifications can be implemented. The specific steps of the method can be referred to the corresponding contents disclosed in the aforementioned embodiments, and will not be repeated here.
[0096] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0097] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0098] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0099] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0100] The technical solution provided by the present application is introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technicians in this field, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for processing barcode comparison information of multi-barcode specimen identification, characterized in that: include: Acquiring barcode data on a target multi-barcode specimen, and performing data preprocessing on the barcode data to obtain target barcode data; Acquire work order data that meets a preset time condition from a database, and determine identification barcode data and reference barcode data from the target barcode data based on the work order data; the work order data includes work order barcode data and work order information data corresponding to the work order barcode data; Establishing comparison information based on the identification barcode data and the comparison barcode data, and storing the comparison information in a preset storage space; The comparison information is information representing the correspondence between the identification barcode data and other target barcode data; If an information query request for the barcode data to be queried is obtained, the target identification barcode data corresponding to the barcode data to be queried is queried from the preset storage space based on the barcode data to be queried, and the work order data corresponding to the barcode data to be queried is obtained based on the target identification barcode data.
2. The method for processing barcode comparison information of multiple barcode specimen identifications according to claim 1, characterized in that: The performing data preprocessing on the barcode data to obtain target barcode data includes: Performing a data format check on the barcode data to obtain formatted barcode data; Performing a validity verification operation on the formatted barcode data based on a preset validity verification algorithm to determine valid barcode data from the formatted barcode data; The effective barcode data is deduplicated to obtain target barcode data.
3. The method for processing barcode comparison information of multiple barcode specimen identifications according to claim 1, characterized in that: The determining the identification barcode data and the reference barcode data from the target barcode data based on the work order data includes: Cleaning the work order barcode data in the work order data, and creating a hash table structure based on the work order barcode data; Determine whether there is target work order barcode data matching the current target barcode data in the work order barcode data by calling a search function for the hash table structure; If the target work order barcode data exists, the current target barcode data is determined as the identification barcode data, and the other target barcode data is determined as the reference barcode data; if the target work order barcode data does not exist, the current target barcode data is determined as the reference barcode data, the next target barcode data is used as the current target barcode data, and the process jumps to the step of determining whether there is target work order barcode data matching the current target barcode data in the work order barcode data by calling the search function for the hash table structure, until the determination of each target barcode data is completed.
4. The method for processing barcode comparison information of multiple barcode specimen identifications according to claim 1, characterized in that: Before establishing the comparison information based on the identification barcode data and the comparison barcode data and storing the comparison information in a preset storage space, the method further includes: Creating the preset storage space based on a preset data structure, and creating a relationship comparison table for defining a comparison relationship between the identification barcode and the comparison barcode, and a counter for recording the number of comparison barcodes corresponding to each identification barcode; The preset data structure includes a dictionary data structure.
5. The method for processing barcode comparison information of multiple barcode specimen identifications according to claim 4, characterized in that: The establishing of comparison information based on the identification barcode data and the comparison barcode data includes: The comparison information between the identification barcode data and the comparison barcode data is established based on the relationship comparison table, and the timestamp when the comparison barcode and the identification barcode are first correspondingly established and the number of comparison barcodes that are compared with the identification barcode are recorded to obtain the comparison information.
6. The method for processing barcode comparison information of multiple barcode specimen identifications according to claim 1, characterized in that: The step of querying the target identification barcode data corresponding to the barcode data to be queried from the preset storage space based on the barcode data to be queried includes: Loading the comparison information from the preset storage space, and determining whether there is stored barcode data matching the barcode data to be queried through a preset query algorithm; If the stored barcode data exists, comparison information corresponding to the barcode data to be queried is determined based on the stored barcode data, and target identification barcode data corresponding to the barcode data to be queried is determined based on the comparison information.
7. The method for processing barcode comparison information of multiple barcode specimen identifications according to any one of claims 1 to 6, characterized in that: Before searching the preset storage space for target identification barcode data corresponding to the barcode data to be queried based on the barcode data to be queried, the method further includes: Performing a format check on the barcode data to be queried, and determining whether the format of the barcode data to be queried meets a preset format condition; If the format of the barcode data to be queried meets the preset format condition, jump to the step of querying the target identification barcode data corresponding to the barcode data to be queried from the preset storage space based on the barcode data to be queried; If the format of the barcode data to be queried does not meet the preset format condition, a message indicating that the information acquisition has failed is returned to respond to the information query request.
8. A multi-barcode specimen identification barcode comparison information processing device, characterized in that: include: A target barcode data acquisition module is used to acquire the barcode data on the target multi-barcode specimen and perform data preprocessing on the barcode data to obtain the target barcode data; An identification barcode data determination module is used to obtain work order data that meets a preset time condition from a database, and determine identification barcode data and reference barcode data from the target barcode data based on the work order data; the work order data includes work order barcode data and work order information data corresponding to the work order barcode data; A comparison information storage module, used to establish comparison information based on the identification barcode data and the comparison barcode data, and store the comparison information in a preset storage space; The comparison information is information representing the correspondence between the identification barcode data and other target barcode data; The control information query module is used to query the target identification barcode data corresponding to the barcode data to be queried from the preset storage space based on the barcode data to be queried if an information query request for the barcode data to be queried is obtained, and obtain the work order data corresponding to the barcode data to be queried based on the target identification barcode data.
9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor is used to execute the computer program to implement the method for processing barcode comparison information of multiple barcode specimen identifiers as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein when the computer program is executed by a processor, the method for processing barcode comparison information of multiple barcode specimen identifiers according to any one of claims 1 to 7 is implemented.