Traceability code assigning method, traceability code recognizing method, and electronic device

By constructing a variable-length traceability code that includes basic identity, industry standards, and enterprise-defined information, the problem of information sharing obstacles under the multi-code system is solved, and product traceability efficiency and supply chain transparency are improved.

CN122636231APending Publication Date: 2026-08-25CHINA UNITED HEALTH MEDICAL BIG DATA CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610807411.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-05
Publication Date
2026-08-25

AI Technical Summary

Technical Problem

The diversification of traceability code systems across different sectors or enterprises hinders information sharing, affecting traceability efficiency, corporate compliance, and regulatory effectiveness during product cross-process circulation.

Method used

A traceability code assignment method is constructed, which obtains the basic identity of individual products, industry standards, and enterprise-defined information, and uses preset symbols to construct a variable-length traceability code containing basic identity identifiers, industry standard business information, and enterprise-defined business information, thereby achieving rapid identification and differentiation.

Benefits of technology

It has achieved traceability codes that are compatible with multiple needs, improved information parsing capabilities, ensured full lifecycle management of products and supply chain transparency, and reduced information gaps.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122636231A_ABST
    Figure CN122636231A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of traceability codes, and provides a traceability code assigning method, a traceability code identification method and electronic equipment. The traceability code assigning method comprises the following steps: obtaining first data, second data and third data of a target product individual, the first data is used for representing basic identity information of the target product individual, the second data is used for representing standard business information of an industry to which the target product individual belongs, and the third data is used for representing self-defined business information of an enterprise to which the target product individual belongs; a first code area is constructed according to a preset prefix code symbol and the first data, a second code area is constructed according to a preset visible separator symbol and the second data, and a third code area is constructed according to the preset visible separator symbol and the third data; the first code area, the second code area and the third code area are sequentially spliced to obtain a target traceability code; and the target product individual is assigned a code according to the target traceability code. Based on the application scheme, a traceability code capable of meeting multiple requirements can be constructed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of traceability code technology, and in particular to a traceability code assignment method, a traceability code recognition method, and an electronic device. Background Technology

[0002] Traceability codes are the technological foundation for achieving full product lifecycle management, ensuring quality and safety, and improving supply chain transparency, and are widely used in various industries such as pharmaceuticals and medical devices. With the rapid development of related industries and the deepening demand for traceability, different fields or enterprises have gradually formed various traceability code systems based on their respective business characteristics and historical development. However, this coexistence of multiple codes can easily lead to obstacles in information sharing between different systems, causing information gaps when products flow across different stages, which in turn adversely affects traceability efficiency, corporate compliance, and regulatory effectiveness. How to construct a traceability code system that can accommodate multiple needs has become an urgent technical problem to be solved. Summary of the Invention

[0003] This application provides a traceability code assignment method, a traceability code recognition method, and an electronic device to solve the technical problem of how to construct a traceability code that can be compatible with multiple needs.

[0004] In a first aspect, embodiments of this application provide a traceability code assignment method, including: Acquire the first data, second data, and third data of the target product individual. The first data is used to represent the basic identity information of the target product individual, the second data is used to represent the standard business information of the industry to which the target product individual belongs, and the third data is used to represent the custom business information of the enterprise to which the target product individual belongs. A first code region is constructed based on a preset prefix code symbol and first data; a second code region is constructed based on a preset visual separator symbol and second data; and a third code region is constructed based on a preset visual separator symbol and third data. By sequentially concatenating the first code area, the second code area, and the third code area, the target traceability code is obtained. The target product is assigned a code based on the target traceability code.

[0005] In conjunction with the first aspect, in some possible implementations, a first code region is constructed based on a preset prefix code symbol and first data, including: Based on the first data, determine the product identifier and the individual identifier; The first code area is obtained by sequentially concatenating the preset prefix code symbol, product identifier symbol, and individual identifier symbol.

[0006] Combining the first aspect and the above implementation methods, in some possible implementation methods, a second code region is constructed based on a preset visual separator symbol and second data, including: Based on the second data, determine at least one extension item identifier and the extension data symbol corresponding to each extension item identifier in the at least one extension item identifier; For each extension item identifier, a unit is constructed to obtain at least one extension item unit; wherein, the extension item unit is sequentially concatenated with a preset visual separator symbol, the corresponding extension item identifier symbol, and the corresponding extension data symbol; By concatenating at least one extension unit in sequence, the second code area is obtained.

[0007] Combining the first aspect and the above implementation methods, in some possible implementation methods, a third code area is constructed based on a preset visual separator symbol and third data, including: Based on the third data, determine at least one custom item identifier and the custom data symbol corresponding to each custom item identifier in the at least one custom item identifier; For each custom item identifier, a unit is constructed to obtain at least one custom item unit; wherein, the custom item unit is sequentially concatenated with a preset visual separator symbol, the corresponding custom item identifier symbol, and the corresponding custom data symbol; By concatenating at least one custom item unit in sequence, the third code area is obtained.

[0008] In combination with the first aspect and the above implementation methods, in some possible implementation methods, the standard business information represented by the extended item identifier and the corresponding extended data symbol includes at least one of the following: batch, production date, expiration date, formulation specification, packaging specification, packaging level, commodity code number, and medical insurance code number; The custom business information represented by the custom item identifier and the corresponding custom data symbol includes at least one of the following: anti-counterfeiting query link, production process control information, and sales activity code.

[0009] Combining the first aspect and the above implementation methods, in some possible implementation methods, the target product is coded according to the target traceability code, including: Perform format verification based on the target traceability code; If the format validation passes, determine at least one packaging level for the target product individual; Determine the target packaging level from at least one packaging level; The target traceability code is printed on the packaging corresponding to the target packaging level.

[0010] Combining the first aspect and the above implementation methods, in some possible implementation methods, after physically printing the target traceability code on the packaging corresponding to the target packaging level, the method further includes: Associate the target traceability code with the traceability codes of at least one packaging level other than the target packaging level to obtain the associated traceability code information corresponding to the target traceability code; The target traceability code and its associated traceability code information are uploaded to the enterprise traceability system, so that the enterprise traceability system can bind the target traceability code, its associated traceability code information, and the production process information corresponding to the target traceability code to obtain the comprehensive traceability information of the target product, and push the comprehensive traceability information of the target product to the traceability collaboration service platform.

[0011] In combination with the first aspect and the above implementation methods, in some possible implementation methods, before obtaining the first data, second data, and third data of the target product individual, the following steps are also included: Send a coding application request to the traceability coding management platform. The coding application request carries the product identification code of the target product. Receive the range of available individual identifiers returned by the traceability coding management platform based on the coding application request; Among them, the target product individual is the individual of the target product, and the individual identifier of the target product individual is determined from the range of available individual identifiers.

[0012] Secondly, embodiments of this application provide a traceability code identification method, including: Obtain the target traceability code for each individual target product; Identify the preset prefix code symbols in the target traceability code to obtain the target code system; Based on the target code system and the corresponding preset visual separator symbol, the target traceability code is split into the first code area, the second code area and the third code area; Parse the first code area to obtain the first data of the target product individual. The first data is used to represent the basic identity information of the target product individual. Parse the second code area to obtain the second data of the target product individual. The second data is used to characterize the standard business information of the industry to which the target product individual belongs. Parse the third code area to obtain the third data of the target product individual. The third data is used to represent the custom business information of the enterprise to which the target product individual belongs.

[0013] Among them, the target traceability code is a traceability code obtained by assigning a code to an individual target product based on the traceability code assignment method in the first aspect.

[0014] Thirdly, embodiments of this application provide an electronic device, including a processor and a memory storing a computer program, wherein the processor executes the program to implement the steps of the traceability code assignment method of the first or second aspect.

[0015] The traceability code assignment method, traceability code recognition method, and electronic device provided in this application first acquire first data, second data, and third data of a target product individual. The first data represents the basic identity information of the target product individual, the second data represents the standard business information of the industry to which the target product individual belongs, and the third data represents the custom business information of the enterprise to which the target product individual belongs. Then, a first code area is constructed based on a preset prefix code symbol and the first data; a second code area is constructed based on a preset visual separator symbol and the second data; and a third code area is constructed based on a preset visual separator symbol and the third data. Next, the first, second, and third code areas are sequentially concatenated to obtain the target traceability code. Finally, the target product individual is assigned a code based on the target traceability code. Through the above steps, the second data... The number of data items contained in the first and third code areas can be flexibly increased or decreased according to actual business needs, causing the lengths of the constructed second and third code areas to vary accordingly. This results in a variable length overall target traceability code obtained after sequential splicing. At the same time, the preset prefix code symbols used in constructing the first code area enable rapid identification and differentiation of the target traceability code, while the preset visual separator symbols used in constructing the second and third code areas ensure accurate parsing of different data segments. This construction method, which separates and flexibly splices data representing different dimensions of information using specific symbols, allows the final target traceability code to simultaneously accommodate basic identity information, standard business information of the industry, and custom business information of the enterprise, thus creating a traceability code that can effectively accommodate multiple needs. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is a flowchart illustrating the traceability code assignment method provided in the embodiments of this application; Figure 2 This is a flowchart illustrating the traceability code identification method provided in the embodiments of this application; Figure 3 This is a schematic diagram of the structure of a traditional 20-digit electronic supervision code provided in an embodiment of this application; Figure 4 This is a schematic diagram of the encoding structure of the target traceability code provided in the embodiments of this application; Figure 5 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0018] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0019] Traceability codes are the technological foundation for achieving full product lifecycle management, ensuring quality and safety, and improving supply chain transparency, and are widely used in various industries such as pharmaceuticals and medical devices. With the rapid development of related industries and the deepening demand for traceability, different fields or enterprises have gradually formed various traceability code systems based on their respective business characteristics and historical development. However, this coexistence of multiple codes can easily lead to obstacles in information sharing between different systems, causing information gaps when products flow across different stages, which in turn adversely affects traceability efficiency, corporate compliance operations, and regulatory effectiveness.

[0020] For example, Figure 3 A schematic diagram of a traditional 20-digit electronic supervision code is shown. A traditional 20-digit electronic supervision code refers to a traceability code with a fixed code length and a restricted segmented structure, using a one-dimensional code as its carrier. For example... Figure 3 As shown, the traditional 20-digit electronic regulatory code is divided into three parts: the first part is the drug identification code, the second part is the serial number, and the third part is the check digit. The drug identification code, located in positions 1 to 7, carries basic identity attributes such as the enterprise code, drug name, dosage form, approval number, and packaging specifications. The serial number, located in positions 8 to 16, uniquely identifies each package. The check digit, located in positions 17 to 20, verifies the legality of the entire traceability code. However, because the traditional 20-digit electronic regulatory code has a fixed length, its segmented structure can only accommodate the aforementioned limited attribute information. This means that critical information directly related to ensuring quality and safety, such as the production batch number, production date, and expiration date, cannot be directly included in the code. This incompleteness of information means that when products such as pharmaceuticals or medical devices are transferred across different stages, it is necessary to rely on back-end systems for data supplementation and correlation. Once the data standards between different systems are not consistent, information breaks will occur when products are transferred across stages, which will hinder information sharing between different systems. This will not only fail to achieve full life cycle management of products and improve supply chain transparency, but will also have an adverse impact on traceability efficiency, corporate compliance operations and regulatory effectiveness.

[0021] Therefore, how to construct a traceability code that can be compatible with multiple needs has become an urgent technical problem to be solved.

[0022] To address the aforementioned issues, the solution provided in this application mainly includes: firstly, acquiring first data, second data, and third data of a target product individual, wherein the first data is used to represent the basic identity information of the target product individual, the second data is used to represent the standard business information of the industry to which the target product individual belongs, and the third data is used to represent the custom business information of the enterprise to which the target product individual belongs; then, constructing a first code area based on a preset prefix code symbol and the first data, constructing a second code area based on a preset visual separator symbol and the second data, and constructing a third code area based on a preset visual separator symbol and the third data; next, sequentially concatenating the first code area, the second code area, and the third code area to obtain the target traceability code; finally, assigning a code to the target product individual based on the target traceability code; through the above steps, the second data and the third data... The number of data items included in the data can be flexibly increased or decreased according to actual business needs, causing the lengths of the constructed second and third code areas to vary accordingly. This results in a variable overall length for the target traceability code obtained after sequential splicing. At the same time, the preset prefix code symbols used when constructing the first code area enable rapid identification and differentiation of the target traceability code, while the preset visual separator symbols used when constructing the second and third code areas ensure accurate parsing of different data segments. This construction method, which separates and flexibly splices data representing different dimensions of information using specific symbols, allows the final target traceability code to simultaneously accommodate basic identity information, standard business information of the industry, and custom business information of the enterprise, thus creating a traceability code that can effectively accommodate multiple needs.

[0023] The following will provide a detailed description of the traceability code assignment method provided in the embodiments of this application.

[0024] Please see Figure 1 , Figure 1 This is a flowchart illustrating a traceability code assignment method provided in an embodiment of this application. Figure 1 As shown, the method in this application embodiment may include the following steps S101~S104: S101, Obtain the first data, second data and third data of the target product individual. The first data is used to represent the basic identity information of the target product individual, the second data is used to represent the standard business information of the industry to which the target product individual belongs, and the third data is used to represent the custom business information of the enterprise to which the target product individual belongs. S102, construct a first code area based on a preset prefix code symbol and first data, construct a second code area based on a preset visual separator symbol and second data, and construct a third code area based on a preset visual separator symbol and third data; S103, the first code area, the second code area and the third code area are concatenated in sequence to obtain the target traceability code; S104. Assign a code to each individual target product based on the target traceability code.

[0025] Specifically, the first step is to obtain the first, second, and third data of the target product individual.

[0026] Among them, the target product individual refers to a single target product that needs to be independently identified during the circulation process.

[0027] The first data is used to characterize the basic identity information of individual target products; the basic identity information refers to the set of core attribute data used to distinguish different product types and specific individuals.

[0028] The second data is used to characterize the standard business information of the industry to which the target product belongs; the industry to which the target product belongs refers to the specific production or distribution field involved in the target product, such as the pharmaceutical industry, medical device industry or food industry; standard business information refers to general data that is uniformly defined by industry norms or standards organizations and used to describe the specific business status of the target product.

[0029] The third data is used to characterize the customized business information of the enterprise to which the target product belongs; the enterprise to which the target product belongs refers to the specific business entity responsible for the production or management of the target product, such as a drug marketing authorization holder, a medical device manufacturer, or a commodity distribution company; the customized business information refers to non-standardized data that is set independently by the enterprise to which the target product belongs based on its own internal management or specific business needs.

[0030] Regarding the steps of obtaining the first, second, and third data of a target product individual, some possible implementations include receiving initial parameters of the target product individual sent by an external system, classifying and extracting these parameters according to preset mapping rules, using the extracted basic identity parameters as the first data, the extracted standard business parameters as the second data, and the extracted custom business parameters as the third data, thus completing the steps of obtaining the first, second, and third data of the target product individual. Alternatively, the historical records of the target product individual can be queried from a local database, and the fields in the historical records can be parsed. The parsed basic identity fields can be used as the first data, the parsed standard business fields as the second data, and the parsed custom business fields as the third data, thus completing the steps of obtaining the first, second, and third data of the target product individual.

[0031] Furthermore, a first code area is constructed based on preset prefix code symbols and first data; a second code area is constructed based on preset visual separator symbols and second data; and a third code area is constructed based on preset visual separator symbols and third data. Here, the preset prefix code symbols refer to a pre-defined specific character sequence used to identify the category of the traceability code encoding system; construction refers to the process of converting data into corresponding string segments according to preset arrangement rules; the first code area refers to a string segment formed by the combination of preset prefix code symbols and first data, used to carry basic identity information; the preset visual separator symbols refer to pre-defined specific separator characters that can be directly read by the human eye and identification devices; the second code area refers to a string segment formed by the combination of preset visual separator symbols and second data, used to carry standard business information; and the third code area refers to a string segment formed by the combination of preset visual separator symbols and third data, used to carry customized business information.

[0032] Regarding this step, in some possible implementations, the first data can be converted into a first data character sequence, and a preset prefix code symbol can be combined with the first data character sequence to construct a first code area based on the preset prefix code symbol and the first data; the second data can be converted into a second data character sequence, and a preset visual separator symbol can be combined with the second data character sequence to construct a second code area based on the preset visual separator symbol and the second data; the third data can be converted into a third data character sequence, and a preset visual separator symbol can be combined with the third data character sequence to construct a third code area based on the preset visual separator symbol and the third data.

[0033] Furthermore, the first, second, and third code areas are sequentially concatenated to obtain the target traceability code. Sequential concatenation refers to the operation of joining multiple string segments end-to-end in a predetermined order to form a complete string; the target traceability code is the final encoded result with variable length, generated by sequentially concatenating the first, second, and third code areas.

[0034] Regarding this step, in some possible implementations, the first code area, the second code area, and the third code area can be concatenated in a preset order to obtain a complete string composed of the above three code areas, and this complete string can be used as the target traceability code.

[0035] Furthermore, the target product is coded according to the target traceability code. This coding refers to the process of attaching the generated coded information to the corresponding carrier of the target product.

[0036] Regarding this step, in some possible implementations, the target traceability code can be converted into a two-dimensional barcode image, and the two-dimensional barcode image can be printed on the packaging of the target product individual to assign a code to the target product individual based on the target traceability code. Alternatively, the target traceability code can be written into an RFID tag, and the RFID tag can be attached to the surface of the target product individual to assign a code to the target product individual based on the target traceability code.

[0037] In this embodiment, firstly, first data, second data, and third data of the target product are acquired. The first data represents the basic identity information of the target product, the second data represents the standard business information of the industry to which the target product belongs, and the third data represents the custom business information of the enterprise to which the target product belongs. Then, a first code area is constructed based on a preset prefix code symbol and the first data; a second code area is constructed based on a preset visual separator symbol and the second data; and a third code area is constructed based on a preset visual separator symbol and the third data. Next, the first, second, and third code areas are sequentially concatenated to obtain the target traceability code. Finally, the target product is coded based on the target traceability code. Through the above steps, the data contained in the second and third data... The number of items can be flexibly increased or decreased according to actual business needs, allowing the lengths of the constructed second and third code areas to vary accordingly. This results in a variable overall length for the target traceability code obtained after sequential splicing. Simultaneously, the preset prefix code symbols used in constructing the first code area enable rapid identification and differentiation of the target traceability code, while the preset visual separator symbols used in constructing the second and third code areas ensure accurate parsing of different data segments. This construction method, which uses specific symbols to separate and flexibly splice data representing different dimensions of information, allows the final target traceability code to simultaneously accommodate basic identity information, standard business information of the industry, and custom business information of the enterprise, thus creating a traceability code that effectively accommodates multiple needs.

[0038] In one embodiment, the above step of "constructing a first code region based on a preset prefix code symbol and first data" can be further refined and may include the following steps: Based on the first data, determine the product identifier and the individual identifier; The first code area is obtained by sequentially concatenating the preset prefix code symbol, product identifier symbol, and individual identifier symbol.

[0039] Specifically, considering that the basic identity information contains attribute data of different dimensions, in order to distinguish the types of different target products and specific target product individuals in the first code area, this embodiment proposes a scheme to split the first data into product identifiers and individual identifiers for separate extraction and combination.

[0040] First, based on the initial data, it is necessary to determine the product identifier and the individual identifier. The product identifier refers to the coded character sequence used to distinguish different target product categories, such as a character sequence carrying information such as enterprise code, drug name, dosage form, approval number, and packaging specifications. The individual identifier refers to the coded character sequence used to uniquely identify a single target product within the same target product category, such as a single-item serial number.

[0041] Regarding this step, in some possible implementations, the first data of the target product can be obtained, the fields of the first data can be parsed, the product type field obtained from the parsing can be used as the product identifier, and the single item identifier field obtained from the parsing can be used as the individual identifier, so as to complete the step of determining the product identifier and the individual identifier based on the first data.

[0042] Furthermore, the preset prefix code symbol, product identifier symbol, and individual identifier symbol are concatenated sequentially to obtain the first code area.

[0043] Regarding this step, in some possible implementations, the character sequences corresponding to the preset prefix code symbol, product identifier symbol, and individual identifier symbol can be concatenated end to end according to the order of the preset prefix code symbol, product identifier symbol, and individual identifier symbol to obtain a complete string composed of the above three symbols, and this complete string can be used as the first code area.

[0044] In this embodiment, the product identifier and individual identifier are determined based on the first data, and the first code area is obtained by sequentially concatenating the preset prefix code symbol, the product identifier, and the individual identifier, thus clarifying the arrangement rules of different dimensions of information within the first data. This construction method enables the first code area to distinguish the encoding system through the preset prefix code symbol. At the same time, relying on the combination of the product identifier and the individual identifier, the basic identity information of the target product individual can be directly parsed from the first code area itself without relying on the query of the backend system, thereby improving the independent parsing capability of the target traceability code.

[0045] In one embodiment, the above step of "constructing a second code region based on a preset visual separator symbol and second data" can be further refined and may include the following steps: Based on the second data, determine at least one extension item identifier and the extension data symbol corresponding to each extension item identifier in the at least one extension item identifier; For each extension item identifier, a unit is constructed to obtain at least one extension item unit; wherein, the extension item unit is sequentially concatenated with a preset visual separator symbol, the corresponding extension item identifier symbol, and the corresponding extension data symbol; By concatenating at least one extension unit in sequence, the second code area is obtained.

[0046] Specifically, considering that the standard business information of the industry to which the target product belongs contains multiple different dimensions of business attributes, in order to accurately distinguish and parse different types of standard business information in the second code area, this embodiment proposes a scheme to split the second data into at least one extended item identifier and the extended data symbols corresponding to each extended item identifier in the at least one extended item identifier, and extract and unitize them separately.

[0047] First, based on the second data, it is necessary to determine at least one extended item identifier and the extended data symbol corresponding to each of the at least one extended item identifier. Here, the extended item identifier refers to a specific coded character sequence used to represent a standard business information category, such as a character sequence used to represent business categories like batch, production date, or expiration date; the extended data symbol corresponding to the extended item identifier refers to a specific business numerical character sequence corresponding to the business category represented by the extended item identifier.

[0048] Regarding this step, in some possible implementations, second data of the target product individual can be obtained, fields of the second data can be parsed, the parsed business category field can be used as at least one extended item identifier, and the parsed business value field can be used as the extended data symbol corresponding to each of the at least one extended item identifier, so as to complete the step of determining at least one extended item identifier and the extended data symbol corresponding to each of the at least one extended item identifier based on the second data.

[0049] Furthermore, for each extended item identifier, a unit is constructed to obtain at least one extended item unit; wherein, the extended item unit is sequentially concatenated with a preset visual separator symbol, the corresponding extended item identifier symbol, and the corresponding extended data symbol. Unit construction refers to the operation process of combining the character sequence representing the business category with the character sequence representing the specific business value in a preset order to form an independent data segment; an extended item unit refers to an independent string segment guided by a preset visual separator symbol and sequentially concatenated with the corresponding extended item identifier symbol and the corresponding extended data symbol.

[0050] Regarding this step, in some possible implementations, for each extension item identifier, the preset visual separator symbol, the corresponding extension item identifier, and the corresponding extension data symbol can be concatenated in sequence to obtain an independent string composed of the above three symbols. This independent string can then be used as one of the extension item units in at least one extension item unit to complete the step of constructing at least one extension item unit for each extension item identifier.

[0051] Furthermore, at least one extension unit is sequentially concatenated to obtain the second code area.

[0052] Regarding this step, in some possible implementations, at least one extension unit can be concatenated sequentially according to a preset arrangement order to obtain a complete string composed of the above at least one extension unit, and this complete string can be used as the second code area.

[0053] For example, assuming the second data of a target product individual includes batch information and production date information, the determined at least one extended item identifier symbol includes an identifier character representing the batch and an identifier character representing the production date, and the corresponding extended data symbol includes a specific batch numerical character and a specific production date numerical character; for the identifier character representing the batch, a unit is constructed by concatenating a preset visual separator symbol, the identifier character representing the batch, and the specific batch numerical character to obtain a batch extended item unit; for the identifier character representing the production date, a unit is constructed by concatenating a preset visual separator symbol, the identifier character representing the production date, and the specific production date numerical character to obtain a production date extended item unit; by concatenating the batch extended item unit and the production date extended item unit sequentially, a second code area containing batch information and production date information can be obtained.

[0054] In this embodiment, at least one extended item identifier and its corresponding extended data symbol are determined based on the second data. At least one extended item unit is then constructed for each extended item identifier. Finally, these units are sequentially concatenated to form the second code area, clarifying the arrangement rules for standard business information of different dimensions within the second data. This construction method enables the second code area to accurately distinguish and independently parse different types of standard business information through preset visual separators and extended item identifiers. Without relying on backend system queries, the standard business information of the target product's industry can be directly parsed from the second code area itself, improving the independent parsing capability of the target traceability code.

[0055] In one embodiment, the above step of "constructing a third code area based on a preset visual separator symbol and third data" can be further refined and may include the following steps: Based on the third data, determine at least one custom item identifier and the custom data symbol corresponding to each custom item identifier in the at least one custom item identifier; For each custom item identifier, a unit is constructed to obtain at least one custom item unit; wherein, the custom item unit is sequentially concatenated with a preset visual separator symbol, the corresponding custom item identifier symbol, and the corresponding custom data symbol; By concatenating at least one custom item unit in sequence, the third code area is obtained.

[0056] Specifically, considering that the custom business information of the enterprise to which the target product belongs contains multiple business attributes of different dimensions, in order to accurately distinguish and parse different types of custom business information in the third code area, this embodiment proposes a scheme to split the third data into at least one custom item identifier and the custom data symbol corresponding to each custom item identifier in the at least one custom item identifier, and extract and unitize them separately.

[0057] First, based on the third data, it is necessary to determine at least one custom item identifier and the custom data symbol corresponding to each custom item identifier. Here, the custom item identifier refers to a specific coded character sequence used to represent a custom business information category, such as a character sequence used to represent business categories like anti-counterfeiting query links, production process control information, or sales activity codes; the custom data symbol corresponding to the custom item identifier refers to a specific business numerical character sequence corresponding to the business category represented by the custom item identifier.

[0058] Regarding this step, in some possible implementations, third-party data of the target product can be obtained, the third-party data can be parsed, the parsed custom business category field can be used as at least one custom item identifier, and the parsed custom business value field can be used as the custom data symbol corresponding to each custom item identifier in the at least one custom item identifier, so as to complete the step of determining at least one custom item identifier and the custom data symbol corresponding to each custom item identifier in the at least one custom item identifier based on the third-party data.

[0059] Furthermore, for each custom item identifier, a unit is constructed to obtain at least one custom item unit; wherein, the custom item unit sequentially concatenates a preset visual separator symbol, the corresponding custom item identifier symbol, and the corresponding custom data symbol. Here, a custom item unit refers to an independent string segment guided by a preset visual separator symbol and formed by sequentially concatenating the corresponding custom item identifier symbol and the corresponding custom data symbol through unit construction.

[0060] Regarding this step, in some possible implementations, for each custom item identifier, the preset visual separator symbol, the corresponding custom item identifier, and the corresponding custom data symbol can be concatenated in sequence to obtain an independent string composed of the above three symbols. This independent string can then be used as one of the custom item units in at least one custom item unit to complete the step of constructing at least one custom item unit for each custom item identifier.

[0061] Furthermore, at least one custom item unit is sequentially concatenated to obtain the third code area.

[0062] Regarding this step, in some possible implementations, at least one custom item unit can be concatenated sequentially according to a preset arrangement order to obtain a complete string composed of the above at least one custom item unit, and this complete string can be used as the third code area.

[0063] For example, assuming the third data of a target product includes anti-counterfeiting query link information and production process control information, the determined at least one custom item identifier includes an identifier character representing the anti-counterfeiting query link and an identifier character representing production process control. The corresponding custom data symbols include a specific link address character and a specific equipment shift character. For the identifier character representing the anti-counterfeiting query link, a unit is constructed by concatenating a preset visual separator symbol, the identifier character representing the anti-counterfeiting query link, and the specific link address character to obtain an anti-counterfeiting query link custom item unit. For the identifier character representing production process control, a unit is constructed by concatenating a preset visual separator symbol, the identifier character representing production process control, and the specific equipment shift character to obtain a production process control custom item unit. By sequentially concatenating the anti-counterfeiting query link custom item unit and the production process control custom item unit, a third code area containing anti-counterfeiting query link information and production process control information can be obtained.

[0064] In this embodiment, at least one custom item identifier and a custom data symbol corresponding to each custom item identifier are determined based on third data. At least one custom item unit is then constructed for each custom item identifier. Finally, these at least one custom item unit are sequentially concatenated to form the third code area, clarifying the arrangement rules for custom business information of different dimensions within the third data. This construction method enables the third code area to accurately distinguish and independently parse different types of custom business information through preset visual separators and custom item identifiers. Without relying on backend system queries, the custom business information of the enterprise to which the target product belongs can be directly parsed from the third code area itself, improving the independent parsing capability of the target traceability code.

[0065] In one embodiment, the standard business information represented by the extended item identifier and the corresponding extended data symbol includes at least one of the following: batch number, production date, expiration date, formulation specification, packaging specification, packaging level, product code number, and medical insurance code number; the custom business information represented by the custom item identifier and the corresponding custom data symbol includes at least one of the following: anti-counterfeiting query link, production process control information, and sales activity code.

[0066] Specifically, regarding the quantity of standard business information, a combination of an extended item identifier symbol and its corresponding extended data symbol is used to characterize a standard business information.

[0067] A batch refers to a unique identifier created by an enterprise to distinguish production batches of products of the same variety and specification. This identifier may include information such as the production period and production line, and is used for quality traceability and recall of problematic products. The production date refers to the specific date on which an individual product completes all production processes, passes inspection, and is officially put into storage; it is the basic information for determining the product's production sequence. The expiration date refers to the final deadline by which an individual product can maintain its legal quality standards and efficacy under specified storage conditions. The formulation specification refers to the specific dosage form of the finished product and the content of the active ingredient in a single dose; it is a technical parameter for the production process and clinical use. The packaging specification refers to the quantity configuration corresponding to the packaging form used by an individual product in the distribution process, which is related to warehousing management and terminal sales. The packaging level refers to the packaging layers divided according to the distribution process; different levels respectively undertake functions such as product protection, label display, and warehousing and transportation adaptation. The commodity code number refers to the item code presented as a barcode, issued by the item coding center and used for settlement. The medical insurance code number refers to the unique code issued by the medical insurance management department to distinguish the category of medicine.

[0068] Regarding the quantity of custom business information, a combination of a custom item identifier symbol and its corresponding custom data symbol is used to represent a custom business information.

[0069] Anti-counterfeiting query link refers to the web address that allows consumers to scan the code and be redirected to the company's official query page to verify the authenticity of the product and trace its information; production process control information refers to the data used for internal quality traceability to identify the specific production line and operating team of the problematic batch; sales activity code refers to the identifier that allows consumers to scan the code to participate in points redemption or marketing activities, and which automatically expires after the code is scanned and verified.

[0070] In this embodiment, by clearly defining the specific types of standard business information represented by the extended item identifier and the corresponding extended data symbols, as well as the specific types of custom business information represented by the custom item identifier and the corresponding custom data symbols, the second code area and the third code area can match the corresponding data items according to business needs. Without relying on the backend system query, the standard business information of the industry to which the target product belongs and the custom business information of the enterprise to which the target product belongs can be parsed through the target traceability code itself, thereby improving the independent parsing capability of the target traceability code.

[0071] In one embodiment, the above step of "assigning a code to an individual target product based on the target traceability code" can be further refined and may include the following steps: Perform format verification based on the target traceability code; If the format validation passes, determine at least one packaging level for the target product individual; Determine the target packaging level from at least one packaging level; The target traceability code is printed on the packaging corresponding to the target packaging level.

[0072] Specifically, considering that the target traceability code needs to be accurately and reliably attached to the target product, and that the target product has different packaging forms in actual circulation, this embodiment proposes a detailed scheme to break down the coding process into format verification, packaging level determination, and physical printing.

[0073] First, the format of the target traceability code needs to be validated. Format validation refers to the process of verifying the rule compliance of the generated encoded string, such as verifying the legality of the character set, the correctness of the position of the preset visual separator, and the compliance of the length of each segment.

[0074] Regarding this step, in some possible implementations, the character sequence in the target traceability code can be extracted, the character sequence can be compared with a preset set of legal characters, and if the comparison result is consistent, the target traceability code can be output as the result of passing the format verification, so as to complete the step of performing format verification based on the target traceability code.

[0075] Furthermore, if the format verification passes, at least one packaging level of the target product is determined. Passing the format verification means that the target traceability code meets the preset coding construction rules; packaging level refers to the hierarchical structure of the target product's packaging during the distribution process, such as inner packaging level, middle packaging level, or outer packaging level.

[0076] Regarding this step, in some possible implementations, after receiving the trigger signal indicating that the format verification has passed, the product attribute information of the target product can be queried, the corresponding hierarchical configuration parameters can be extracted from the product attribute information, and the hierarchical configuration parameters can be used as at least one packaging level of the target product to complete the step of determining at least one packaging level of the target product.

[0077] Furthermore, a target packaging level is determined from at least one packaging level. Here, the target packaging level refers to the specific packaging level selected from the at least one packaging level that currently requires the coding operation.

[0078] Regarding this step, in some possible implementations, the current coding task instruction can be obtained, the level identifier carried in the coding task instruction can be matched with at least one packaging level, and the successfully matched packaging level can be used as the target packaging level to complete the step of determining the target packaging level from at least one packaging level.

[0079] Furthermore, the target traceability code is physically printed on the packaging corresponding to the target packaging level. Here, the corresponding packaging refers to the physical packaging container that matches the target packaging level and is used to carry the individual target product; physical printing refers to the operation process of using printing equipment to output character or image information and attach it to the surface of a physical medium.

[0080] Regarding this step, in some possible implementations, the target traceability code can be converted into a target barcode image, and the printing device can be controlled to output the target barcode image to the surface of the packaging corresponding to the target packaging level. The output packaging is then used as the result of physical printing, thus completing the step of physical printing on the packaging corresponding to the target packaging level based on the target traceability code.

[0081] Understandably, if the format verification fails, an error message is generated indicating that the target traceability code has failed, and the coding operation for the individual target product is terminated.

[0082] For example, assuming the target product is a box of medicine, after the system generates the target traceability code for the medicine, it first performs a format verification on the target traceability code to confirm that the preset visual separator symbols and character sets all conform to the rules, i.e., the format verification passes. Then, it determines that the medicine has at least one packaging layer, including an inner packaging layer, a middle packaging layer, and an outer packaging layer. Next, based on the current minimum packaging coding stage, it determines the inner packaging layer as the target packaging layer from at least one packaging layer. Finally, it converts the target traceability code into a QR code image, and prints the QR code image on the surface of the packaging corresponding to the inner packaging layer, i.e., the medicine box, through a printer, completing the physical printing.

[0083] In this embodiment, by introducing a format verification mechanism before coding, the accuracy and compliance of the target traceability code are ensured. Simultaneously, by accurately locating the target packaging layer based on at least one packaging layer of the target product, the operation of physically printing the traceability code onto the packaging corresponding to that layer becomes more standardized. Through these steps, format verification can eliminate non-compliant target traceability codes. Combined with the mechanism of determining the target packaging layer from at least one packaging layer, the process of physically printing the traceability code onto the packaging corresponding to that layer accurately matches the actual physical form of the target product, thereby improving the accuracy of attachment between the traceability code and the corresponding packaging.

[0084] In one embodiment, after the above step of "physically printing the target traceability code on the packaging corresponding to the target packaging level", the following steps may also be included: Associate the target traceability code with the traceability codes of at least one packaging level other than the target packaging level to obtain the associated traceability code information corresponding to the target traceability code; The target traceability code and its associated traceability code information are uploaded to the enterprise traceability system, so that the enterprise traceability system can bind the target traceability code, its associated traceability code information, and the production process information corresponding to the target traceability code to obtain the comprehensive traceability information of the target product, and push the comprehensive traceability information of the target product to the traceability collaboration service platform.

[0085] Specifically, considering that the target product involves multiple packaging levels in the circulation process and that there is a physical inclusion relationship between different packaging levels, this embodiment proposes a scheme to establish a mapping relationship between traceability codes of different packaging levels after physical printing and upload it to the system.

[0086] First, the target traceability code needs to be associated with the traceability codes of at least one packaging layer other than the target packaging layer to obtain the associated traceability code information corresponding to the target traceability code. Here, the traceability codes of other packaging layers refer to the coded data attached to at least one packaging layer other than the target packaging layer; association refers to establishing the correspondence between different data objects; and associated traceability code information refers to the data set that records the correspondence between the target traceability code and the traceability codes of other packaging layers.

[0087] Regarding this step, in some possible implementations, the traceability codes of at least one packaging layer other than the target packaging layer can be obtained, an association can be established between the target traceability code and the traceability codes of at least one packaging layer other than the target packaging layer, and the associated data set can be used as the associated traceability code information corresponding to the target traceability code, so as to complete the step of associating the target traceability code with the traceability codes of at least one packaging layer other than the target packaging layer and obtaining the associated traceability code information corresponding to the target traceability code.

[0088] Furthermore, the target traceability code and its corresponding associated traceability code information are uploaded to the enterprise traceability system. This allows the enterprise traceability system to bind the target traceability code, its associated traceability code information, and the production process information corresponding to the target traceability code to obtain comprehensive traceability information for the individual target product. Additionally, the comprehensive traceability information for the individual target product is pushed to the traceability collaboration service platform. Here, "upload" refers to the data transmission process of sending local data to a remote server; "enterprise traceability system" refers to the software system deployed by the manufacturing enterprise for managing product traceability data; "production process information" refers to data recording the status attributes of the individual target product during the production process; "binding" refers to the operation process of integrating multiple independent data objects into a unified data entity; "comprehensive traceability information" refers to a data set containing coded data, hierarchical associated data, and production data; "pushing" refers to the operation process of sending data to an external system according to preset interface rules; and "traceability collaboration service platform" refers to a system used to aggregate traceability data from different entities and provide data sharing services.

[0089] Regarding this step, in some possible implementations, a communication connection can be established with the enterprise traceability system. The target traceability code and its corresponding associated traceability code information can be uploaded, allowing the enterprise traceability system to receive the target traceability code and its associated traceability code information, obtain the production process information corresponding to the target traceability code, bind the target traceability code, its associated traceability code information, and the production process information to obtain comprehensive traceability information for the target product. Finally, the comprehensive traceability information for the target product can be pushed to the traceability collaboration service platform, thus completing the step of uploading the target traceability code and its corresponding associated traceability code information to the enterprise traceability system.

[0090] For example, suppose the target product is a box of medicine, and its target packaging level is the inner packaging level, with at least one packaging level also including an outer packaging level. After the physical printing of the inner packaging level is completed, the system obtains the traceability code corresponding to the outer packaging level, associates the target traceability code of the inner packaging level with the traceability code corresponding to the outer packaging level, and obtains the associated traceability code information corresponding to the target traceability code. Subsequently, the system uploads the target traceability code and the associated traceability code information corresponding to the target traceability code to the enterprise traceability system. The enterprise traceability system obtains the production process information corresponding to the target traceability code, binds the target traceability code, the associated traceability code information corresponding to the target traceability code, and the production process information corresponding to the target traceability code, and obtains the comprehensive traceability information of the target product. The comprehensive traceability information of the target product is then pushed to the traceability collaborative service platform.

[0091] In this embodiment, by associating the target traceability code with traceability codes of at least one packaging level other than the target packaging level, associated traceability code information corresponding to the target traceability code is obtained. The target traceability code and its associated traceability code information are then uploaded to the enterprise traceability system. This allows the enterprise traceability system to bind the target traceability code, its associated traceability code information, and the production process information corresponding to the target traceability code to obtain comprehensive traceability information for the individual target product. Furthermore, this comprehensive traceability information for the individual target product is pushed to the traceability collaboration service platform. Through these steps, a coding mapping relationship is established between different packaging levels, ensuring that the comprehensive traceability information for the individual target product includes cross-level associated data and production data, thus improving the integrity of traceability data flow between different systems.

[0092] In one embodiment, before the above-described step of "obtaining the first data, second data, and third data of the target product individual", the following steps may also be included: Send a coding application request to the traceability coding management platform. The coding application request carries the product identification code of the target product. Receive the range of available individual identifier codes returned by the traceability coding management platform based on the coding application request.

[0093] Specifically, considering that the individual identifier of the target product needs to be globally unique to avoid encoding conflicts, this embodiment proposes a scheme to pre-allocate the identifier range through platform interaction before acquiring data.

[0094] First, a coding application request needs to be sent to the traceability coding management platform. The coding application request carries the product identifier of the target product. Here, the traceability coding management platform refers to the remote system that provides coding allocation and management; the coding application request refers to the instruction data used to request coding resources from the remote system; and the target product refers to the specific product type that needs to be traced.

[0095] Regarding this step, in some possible implementations, the product identifier of the target product can be obtained, the product identifier of the target product can be encapsulated into a coding application request, and the coding application request can be sent to the traceability coding management platform to complete the step of sending a coding application request to the traceability coding management platform, with the coding application request carrying the product identifier of the target product.

[0096] Furthermore, the system receives the range of available individual identifiers returned by the traceability coding management platform based on the coding application request. The range of available individual identifiers refers to the set of unused individual identifiers allocated by the platform; the target product individual refers to a single physical entity of the target product in the circulation process; the individual identifier of the target product individual is determined from the range of available individual identifiers, meaning that a specific sequence of identifying characters is selected for the single physical entity within the obtained set.

[0097] Regarding this step, in some possible implementations, the data response from the traceability coding management platform can be monitored. After receiving the response data, the range of available individual identifiers can be extracted from the response data. This range of available individual identifiers can then be used as the result of receiving the range of available individual identifiers returned by the traceability coding management platform based on the coding application request, thus completing the step of receiving the range of available individual identifiers returned by the traceability coding management platform based on the coding application request.

[0098] For example, assuming the target product is a certain model of medicine, the system obtains the product identifier of the target product and sends a coding application request carrying the product identifier to the traceability coding management platform. The traceability coding management platform performs deduplication and allocation based on the coding application request and returns a range of available individual identifiers. The system receives this range of available individual identifiers, and subsequently, when generating the traceability code for an individual target product of the medicine, the individual identifier of that target product is determined from this range of available individual identifiers.

[0099] In this embodiment, by sending a coding application request to the traceability coding management platform, carrying the product identifier of the target product, and receiving the range of available individual identifiers returned by the platform based on the coding application request, the individual identifier of the target product can be determined from the range of available individual identifiers when the first data of the target product is subsequently obtained. Through these steps, the allocation process of individual identifiers is brought forward, and the range of available individual identifiers is uniformly controlled by the traceability coding management platform, avoiding coding conflicts between different manufacturers and improving the global uniqueness of the target traceability code.

[0100] Please see Figure 2 , Figure 2 This is a flowchart illustrating a traceability code identification method provided in an embodiment of this application. Figure 2 As shown, the method in this application embodiment may include the following steps S201~S206: S201, Obtain the target traceability code for the individual target product; S202, Identify the preset prefix code system symbols in the target traceability code to obtain the target code system; S203, based on the target code system and the preset visual separator symbol corresponding to the target code system, the target traceability code is split into the first code area, the second code area and the third code area; S204, parse the first code area to obtain the first data of the target product individual. The first data is used to represent the basic identity information of the target product individual. S205, parse the second code area to obtain the second data of the target product individual. The second data is used to characterize the standard business information of the industry to which the target product individual belongs. S206, parse the third code area to obtain the third data of the target product individual. The third data is used to represent the custom business information of the enterprise to which the target product individual belongs.

[0101] The target traceability code is the traceability code obtained by assigning a code to the target product in the relevant embodiments of the above traceability code assignment method.

[0102] Specifically, the first step is to obtain the target traceability code for each individual product. The target traceability code is the final encoding result with variable length, generated by sequentially concatenating the first, second, and third code areas.

[0103] Regarding this step, in some possible implementations, an image acquisition device can scan the carrier corresponding to the target product, decode the acquired image, and use the decoded string as the target traceability code for the target product. Alternatively, the initial encoded data of the target product can be received from a remote server, its format converted, and the converted string used as the target traceability code for the target product.

[0104] Furthermore, the target code system is obtained by identifying the preset prefix code system symbols in the target traceability code. Here, the target code system refers to the category of traceability code encoding system identified by the preset prefix code system symbols.

[0105] Regarding this step, in some possible implementations, the first character sequence in the target traceability code can be extracted, and the extracted character sequence can be matched with a preset code symbol library. If the match is successful, the encoding system category recorded in the successfully matched code symbol library is taken as the target code system, so as to complete the step of identifying the preset prefix code symbol in the target traceability code and obtaining the target code system.

[0106] Furthermore, based on the target code system and the corresponding preset visual separator symbol, the target traceability code is split into a first code area, a second code area, and a third code area.

[0107] Regarding this step, in some possible implementations, a corresponding preset visual separator symbol can be determined based on the target code system. The location of the preset visual separator symbol can be found in the target traceability code. Based on the found location, the target traceability code can be divided into multiple string segments. These multiple string segments can be arranged in order as the first code area, the second code area, and the third code area, respectively. This completes the step of splitting the target traceability code into the first code area, the second code area, and the third code area based on the target code system and the preset visual separator symbol corresponding to the target code system.

[0108] Furthermore, by parsing the first code area, the first data of the target product individual is obtained. The first data is used to represent the basic identity information of the target product individual.

[0109] Regarding this step, in some possible implementations, the product identifier and individual identifier can be extracted from the first code area according to the data parsing rules corresponding to the target code system. The extracted product identifier and individual identifier can then be combined into the first data of the target product individual to complete the step of parsing the first code area and obtaining the first data of the target product individual.

[0110] Furthermore, the second code area is parsed to obtain the second data of the target product individual. The second data is used to characterize the standard business information of the industry to which the target product individual belongs.

[0111] Regarding this step, in some possible implementations, the second code area can be split twice according to the preset visual separator symbol corresponding to the target code system to obtain at least one extension item unit. For each extension item unit, the corresponding extension item identifier symbol and the corresponding extension data symbol are extracted. All the extracted extension item identifier symbols and the corresponding extension data symbols are combined into the second data of the target product individual to complete the step of parsing the second code area and obtaining the second data of the target product individual.

[0112] Furthermore, the third code area is parsed to obtain the third data of the target product individual. The third data is used to characterize the customized business information of the enterprise to which the target product individual belongs.

[0113] Regarding this step, in some possible implementations, the third code area can be split twice according to the preset visual separator symbol corresponding to the target code system to obtain at least one custom item unit. For each custom item unit, the corresponding custom item identifier symbol and the corresponding custom data symbol are extracted. All the extracted custom item identifier symbols and the corresponding custom data symbols are combined into the third data of the target product individual to complete the step of parsing the third code area and obtaining the third data of the target product individual.

[0114] For example, assuming the target product is a box of medicine, after obtaining the target traceability code of the medicine, the system identifies the target code format at the first digit of the target traceability code. Based on the preset visual separator symbol corresponding to this target code format, the system splits the target traceability code into a first code area, a second code area, and a third code area. Parsing the first code area yields the basic identification information of the medicine; parsing the second code area yields standard business information such as the batch number and production date; and parsing the third code area yields custom business information such as the anti-counterfeiting query link, thus completing the comprehensive identification and parsing of the target traceability code of the medicine.

[0115] In this embodiment, the target traceability code of an individual product is obtained, and the target code system is obtained by identifying the preset prefix code system symbols in the target traceability code. Then, based on the target code system and the preset visual separator symbols corresponding to the target code system, the target traceability code is split into a first code area, a second code area, and a third code area. Finally, the first code area, the second code area, and the third code area are parsed to obtain the first data, the second data, and the third data of the individual product. Through the above steps, the target code system is determined using the preset prefix code system symbols, and the target traceability code is accurately split based on the preset visual separator symbols corresponding to the target code system. This allows the basic identity information of the individual product, the standard business information of the industry to which it belongs, and the custom business information of the enterprise to which it belongs to be parsed directly from the target traceability code itself without relying on the query of the backend system, thereby improving the independent parsing capability of the target traceability code.

[0116] In conjunction with the preset visual separator symbol in this embodiment and the above embodiments, the preset visual separator symbol is configured to be a character that can be directly read by the human eye or recognized by conventional image acquisition equipment. Because the preset visual separator symbol has visual characteristics, when splitting the target traceability code, it is not necessary to rely on dedicated reading equipment with a specific decoding protocol. Accurate separation of the first, second, and third code areas can be achieved through conventional character matching methods, reducing the equipment dependence in the traceability code recognition process and improving the versatility of the target traceability code in different recognition scenarios.

[0117] In one embodiment, please refer to Figure 4 , Figure 4 This is a schematic diagram of the encoding structure of the target traceability code provided in the embodiments of this application.

[0118] Specifically, Figure 4This document showcases a new traceability QR code standard that conforms to the ISO / IEC 15459 series standards (i.e., compliant with the 15459 specification) and supports unlimited expansion of business positions. The target traceability code is in QR code format. The encoding structure of the target traceability code is divided into a fixed area, an extended area, and a custom area. The preset visual separator is a wavy line "~". The fixed area corresponds to the first code area in the above embodiment. The fixed area includes ~01, the drug identification code, ~02, and 241028. ~01 corresponds to the preset prefix code symbol in the above embodiment, the drug identification code corresponds to the product identification symbol in the above embodiment, ~02 serves as a guide identifier for the individual identification symbol, and 241028 corresponds to the specific value of the individual identification symbol in the above embodiment. ~02 and 241028 together constitute the individual identification symbol in the above embodiment. The extended area corresponds to the second code area in the above embodiments. The extended area contains multiple extended data items, such as ~13 and 25. ~13 is formed by combining the preset visual separator symbol of the above embodiments with the corresponding extended item identifier symbol, and 25 serves as the extended data symbol of the above embodiments. The extended area also contains ~11 and 251126. ~11 is formed by combining the preset visual separator symbol of the above embodiments with the corresponding extended item identifier symbol, and 251126 serves as the extended data symbol of the above embodiments. The ellipsis in the extended area indicates that more extended data items can be added according to actual business needs. The custom area corresponds to the third code area in the above embodiments. The custom area contains ~91 and XA01ABF422S006010123456. ~91 is formed by combining the preset visual separator symbol of the above embodiments with the corresponding custom item identifier symbol, and XA01ABF422S006010123456 serves as the custom data symbol of the above embodiments. By publishing extended data item standards, an industry coding guide is formed. Figure 4 The table also shows the correspondence between extended data items and codes. For example, the code for batch is 10, the code for specification is 13, the code for production date is 11, the code for product code number is 41, the code for expiration date (or validity period) is 12, the code for medical insurance code number is 42, and the code for custom items is greater than 90. The ellipsis in the correspondence indicates the existence of other unlisted extended data items and their corresponding codes.

[0119] In this embodiment, through the above-mentioned coding structure and extended data item standard, the traceability code can clearly divide the first code area, the second code area, and the third code area, so that the second code area and the third code area can be flexibly configured with extended data items and custom items according to the industry coding guidelines formed by the release of extended data item standards, thereby realizing the unlimited expansion of business positions and ensuring that the traceability code can be compatible with various needs.

[0120] In one embodiment, taking a box of medicine as an example, the specific application of the above-mentioned traceability code assignment method and traceability code identification method in a medical scenario is explained.

[0121] During the coding process, the manufacturing enterprise sends a coding application request to the traceability coding management platform. This request carries the product identifier of the target product, and the enterprise receives a range of available individual identifiers returned by the platform based on the coding application request. Subsequently, the enterprise obtains the first, second, and third data for the target product individual. The first data represents the basic identity information of the target product individual, including the product identifier and the individual identifier determined from the range of available individual identifiers. The second data represents the standard business information of the industry to which the target product individual belongs, including extended item identifiers representing the batch (e.g., ~10) and their corresponding extended data symbols, extended item identifiers representing the production date (e.g., ~11) and their corresponding extended data symbols, extended item identifiers representing the expiration date (e.g., ~12) and their corresponding extended data symbols, extended item identifiers representing the formulation specification (e.g., ~13) and their corresponding extended data symbols, and extended item identifiers representing the packaging specification (e.g., ~14) and their corresponding extended data symbols. The third data represents the customized business information of the enterprise to which the target product individual belongs, including customized item identifiers representing the anti-counterfeiting query link (e.g., ~91) and their corresponding customized data symbols. A first code area is constructed based on a preset prefix code symbol and first data. A second code area is constructed based on a preset visual separator symbol and second data. A third code area is constructed based on a preset visual separator symbol and third data. The first, second, and third code areas are then concatenated sequentially to obtain the target traceability code. The target traceability code undergoes format verification. If the format verification passes, at least one packaging layer for the target product is determined. This at least one packaging layer includes an inner packaging layer, a middle packaging layer, and an outer packaging layer. The inner packaging layer is identified as the target packaging layer from the at least one packaging layer. The target traceability code is then physically printed on the packaging corresponding to the target packaging layer. The target traceability code is associated with the traceability codes of at least one packaging level other than the target packaging level to obtain the associated traceability code information corresponding to the target traceability code. The target traceability code and the associated traceability code information corresponding to the target traceability code are uploaded to the enterprise traceability system so that the enterprise traceability system can bind the target traceability code, the associated traceability code information corresponding to the target traceability code, and the production process information corresponding to the target traceability code to obtain the comprehensive traceability information of the target product. The comprehensive traceability information of the target product is then pushed to the traceability collaboration service platform.

[0122] During the goods receipt confirmation process, the recipient scans the outer packaging layer using an image acquisition device to obtain the target traceability code for each individual product. The target traceability code is then identified by recognizing the preset prefix code symbols to obtain the target code system. Based on the target code system and its corresponding preset visual separator symbols, the target traceability code is split into three code areas: the first code area, the second code area, and the third code area. The second code area is parsed to obtain the second data for each individual product, specifically extracting the following extended data symbols: the extended item identifier (e.g., ~41) representing the product code number and its corresponding extended data symbol; the extended item identifier (e.g., ~10) representing the batch number and its corresponding extended data symbol; the extended item identifier (e.g., ~11) representing the production date and its corresponding extended data symbol; the extended item identifier (e.g., ~12) representing the expiration date and its corresponding extended data symbol; the extended item identifier (e.g., ~14) representing the packaging specifications and its corresponding extended data symbol; and the extended item identifier (e.g., ~15) representing the packaging level and its corresponding extended data symbol. The system confirms the current location as the outer packaging layer based on the extended data symbol corresponding to the extended item identifier (e.g., ~15) representing the packaging level. It then automatically verifies the consistency of the target traceability codes corresponding to the inner and middle packaging layers within the box based on the associated traceability code information. Simultaneously, the system determines whether it is a known problematic batch based on the extended data symbol corresponding to the extended item identifier (e.g., ~10) representing the batch size. Finally, it calculates the remaining shelf life based on the extended data symbols corresponding to the extended item identifiers representing the production date (e.g., ~11) and the extended item identifiers representing the expiration date (e.g., ~12), thus completing the receipt confirmation.

[0123] In the medical insurance settlement process, the hospital workstation scans the inner packaging layers using image acquisition equipment to obtain the target traceability code for each individual product. It identifies the preset prefix code system symbols in the target traceability code to obtain the target code system. Based on the target code system and its corresponding preset visual separator symbols, the target traceability code is split into a first code area, a second code area, and a third code area. The second code area is parsed to obtain the second data for each individual product, specifically extracting the extended item identifier symbol (e.g., ~42) representing the medical insurance code number and its corresponding extended data symbol, and the extended item identifier symbol (e.g., ~12) representing the expiration date and its corresponding extended data symbol. The system transmits the extended item identifier symbol (e.g., ~42) and its corresponding extended data symbol to the medical insurance settlement system for matching, and simultaneously intercepts and verifies the extended item identifier symbol (e.g., ~12) based on its corresponding extended data symbol.

[0124] During the consumer inquiry process, consumers scan the inner packaging layer using an image acquisition device to obtain the target traceability code for the individual product. The system identifies the preset prefix code symbols in the target traceability code to obtain the target code system. Based on the target code system and its corresponding preset visual separator symbols, the target traceability code is split into a first code area, a second code area, and a third code area. The third code area is parsed to obtain the third data for the individual product, specifically extracting the custom item identifier symbol (e.g., ~91) representing the anti-counterfeiting query link and its corresponding custom data symbol. The system automatically redirects to the official enterprise query page based on the custom item identifier symbol (e.g., ~91) representing the anti-counterfeiting query link and its corresponding custom data symbol, displaying the basic identification information and standard business information of the individual product.

[0125] In this embodiment, by applying the traceability code assignment method and the traceability code recognition method to the production, receipt, settlement and query stages of medicines, the target traceability code is accurately constructed and independently parsed in multiple medical circulation nodes by using preset prefix code symbols and preset visual separator symbols. Without relying on the back-end system query, information comparison and verification can be completed directly through the target traceability code itself, which improves the independent parsing capability and circulation integrity of the target traceability code in medical scenarios.

[0126] Figure 5 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 5 As shown, the electronic device may include: a processor 1301, a communication interface 1302, a memory 1303, and a communication bus 1304. The processor 1301, communication interface 1302, and memory 1303 communicate with each other via the communication bus 1304. The processor 1301 can call a computer program stored in the memory 1303 to execute steps of the traceability code assignment method, such as: Acquire the first data, second data, and third data of the target product individual. The first data is used to represent the basic identity information of the target product individual, the second data is used to represent the standard business information of the industry to which the target product individual belongs, and the third data is used to represent the custom business information of the enterprise to which the target product individual belongs. A first code region is constructed based on a preset prefix code symbol and first data; a second code region is constructed based on a preset visual separator symbol and second data; and a third code region is constructed based on a preset visual separator symbol and third data. By sequentially concatenating the first code area, the second code area, and the third code area, the target traceability code is obtained. The target product is assigned a code based on the target traceability code.

[0127] Or include: Obtain the target traceability code for each individual target product; Identify the preset prefix code symbols in the target traceability code to obtain the target code system; Based on the target code system and the corresponding preset visual separator symbol, the target traceability code is split into the first code area, the second code area and the third code area; Parse the first code area to obtain the first data of the target product individual. The first data is used to represent the basic identity information of the target product individual. Parse the second code area to obtain the second data of the target product individual. The second data is used to characterize the standard business information of the industry to which the target product individual belongs. Parse the third code area to obtain the third data of the target product individual. The third data is used to represent the custom business information of the enterprise to which the target product individual belongs.

[0128] Furthermore, the logical instructions in the aforementioned memory can be implemented as software functional units and sold or used as independent products, and can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the traceability code assignment method / traceability code identification method of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0129] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods of various embodiments or some parts of embodiments.

[0130] All actions involving the acquisition of signal information or data in this application were carried out in compliance with the relevant data protection laws and policies of the country where the application is located, and with the authorization granted by the owner of the relevant device. Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A method for assigning traceability codes, characterized in that, include: Acquire first data, second data, and third data of a target product individual. The first data is used to characterize the basic identity information of the target product individual, the second data is used to characterize the standard business information of the industry to which the target product individual belongs, and the third data is used to characterize the custom business information of the enterprise to which the target product individual belongs. A first code region is constructed based on a preset prefix code symbol and the first data; a second code region is constructed based on a preset visual separator symbol and the second data; and a third code region is constructed based on the preset visual separator symbol and the third data. The first code area, the second code area, and the third code area are sequentially concatenated to obtain the target traceability code; The target product is assigned a code based on the target traceability code.

2. The traceability code assignment method according to claim 1, characterized in that, The step of constructing the first code region based on the preset prefix code symbol and the first data includes: Based on the first data, determine the product identifier and the individual identifier; The first code area is obtained by sequentially concatenating the preset prefix code symbol, the product identifier symbol, and the individual identifier symbol.

3. The traceability code assignment method according to claim 1, characterized in that, The step of constructing the second code region based on the preset visual separator symbol and the second data includes: Based on the second data, at least one extension item identifier and the extension data symbol corresponding to each of the at least one extension item identifiers are determined. For each of the extended item identifiers, a unit is constructed to obtain at least one extended item unit; wherein, the extended item unit is sequentially concatenated with a preset visual separator symbol, the corresponding extended item identifier symbol, and the corresponding extended data symbol; By sequentially concatenating the at least one extension unit, a second code region is obtained.

4. The traceability code assignment method according to claim 3, characterized in that, The step of constructing the third code region based on the preset visual separator symbol and the third data includes: Based on the third data, at least one custom item identifier and a custom data symbol corresponding to each custom item identifier in the at least one custom item identifier are determined; For each custom item identifier, a unit is constructed to obtain at least one custom item unit; wherein, the custom item unit is sequentially concatenated with a preset visual separator symbol, the corresponding custom item identifier symbol, and the corresponding custom data symbol; By sequentially concatenating the at least one custom item unit, the third code area is obtained.

5. The traceability code assignment method according to claim 3, characterized in that, The standard business information represented by the extended item identifier and the corresponding extended data symbol includes at least one of the following: batch number, production date, expiration date, formulation specification, packaging specification, packaging level, product code number, and medical insurance code number. The custom item identifier and the corresponding custom data symbol represent custom business information including at least one of the following: anti-counterfeiting query link, production process control information, and sales activity code.

6. The traceability code assignment method according to claim 1, characterized in that, Assigning a code to the individual target product based on the target traceability code includes: Perform format verification based on the target traceability code; If the format verification passes, at least one packaging level of the target product individual is determined; Determine the target packaging level from the at least one packaging level; The target traceability code is printed on the packaging corresponding to the target packaging level.

7. The traceability code assignment method according to claim 6, characterized in that, After physically printing the target traceability code on the packaging corresponding to the target packaging level, the process further includes: The target traceability code is associated with the traceability codes of other packaging layers besides the target packaging layer in the at least one packaging layer to obtain the associated traceability code information corresponding to the target traceability code; The target traceability code and its associated traceability code information are uploaded to the enterprise traceability system, so that the enterprise traceability system can bind the target traceability code, its associated traceability code information, and its production process information to obtain the comprehensive traceability information of the target product, and push the comprehensive traceability information of the target product to the traceability collaboration service platform.

8. The traceability code assignment method according to any one of claims 1 to 7, characterized in that, Before obtaining the first, second, and third data of the target product individual, the process also includes: Send a coding application request to the traceability coding management platform, wherein the coding application request carries the product identification code of the target product; Receive the range of available individual identifiers returned by the traceability coding management platform based on the coding application request; Wherein, the target product individual is the individual of the target product, and the individual identifier of the target product individual is determined from the range of available individual identifiers.

9. A traceability code identification method, characterized in that, include: Obtain the target traceability code for each individual target product; Identify the preset prefix code symbols in the target traceability code to obtain the target code system; Based on the target code system and the preset visual separator symbol corresponding to the target code system, the target traceability code is split into a first code area, a second code area and a third code area. Parse the first code area to obtain the first data of the target product individual, the first data being used to characterize the basic identity information of the target product individual; Parse the second code area to obtain the second data of the target product individual. The second data is used to characterize the standard business information of the industry to which the target product individual belongs. Parse the third code area to obtain the third data of the target product individual. The third data is used to characterize the customized business information of the enterprise to which the target product individual belongs. The target traceability code is a traceability code obtained by assigning a code to the target product individual based on the traceability code assignment method according to any one of claims 1 to 8.

10. An electronic device comprising a processor and a memory storing a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the traceability code assignment method according to any one of claims 1 to 8, or the steps of the traceability code identification method according to claim 9.