CN114219057A - Sample coding management method, device, equipment and storage medium - Google Patents

Sample coding management method, device, equipment and storage medium Download PDF

Info

Publication number
CN114219057A
CN114219057A CN202111568686.0A CN202111568686A CN114219057A CN 114219057 A CN114219057 A CN 114219057A CN 202111568686 A CN202111568686 A CN 202111568686A CN 114219057 A CN114219057 A CN 114219057A
Authority
CN
China
Prior art keywords
serial number
sample
code
target
mother
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111568686.0A
Other languages
Chinese (zh)
Inventor
吕荣璋
吴麒优
李湘庭
吕超文
黄树炼
廖山剑
全智慧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Huayinkang Medical Group Co ltd
Guangzhou Huayin Medical Laboratory Center Co Ltd
Original Assignee
Guangzhou Huayinkang Medical Group Co ltd
Guangzhou Huayin Medical Laboratory Center Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huayinkang Medical Group Co ltd, Guangzhou Huayin Medical Laboratory Center Co Ltd filed Critical Guangzhou Huayinkang Medical Group Co ltd
Priority to CN202111568686.0A priority Critical patent/CN114219057A/en
Publication of CN114219057A publication Critical patent/CN114219057A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06018Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking one-dimensional coding
    • G06K19/06028Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking one-dimensional coding using bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06046Constructional details

Abstract

The invention discloses a sample coding management method, a sample coding management device, sample coding management equipment and a storage medium. The method comprises the following steps: the method comprises the steps of obtaining sample codes of sub samples, wherein the sample codes comprise a mother code representing a mother sample and a serial number representing the sub samples, extracting a serial number from the mother code to serve as an original serial number, the mother code comprises a main number and the serial number, transcoding the serial number according to a preset transcoding mode to obtain the transcoded serial number serving as a target serial number, splicing the target serial number and the main number, and adding the serial number to obtain the target codes with the same digits as the mother code in the sample codes. The serial number in the mother code of the mother sample is recoded to obtain a new serial number, and the new serial number is spliced with the main number in the mother code and the serial number in the sample code of the child sample, so that the number of the new code of the child sample is the same as the number of the mother code of the mother sample, the codes are managed uniformly, and the management cost is reduced.

Description

Sample coding management method, device, equipment and storage medium
Technical Field
The present invention relates to a code management technology, and in particular, to a sample code management method, apparatus, device, and storage medium.
Background
In the fields of logistics, commodity circulation, medical detection and the like, a sample (comprising a commodity, a medical detection sample and the like) is coded, so that the code becomes a unique main key in a business processing process, and the information of the sample and the specific process of the sample in the current business can be obtained by searching the code of the sample.
In the process of business processing, there is often a need to split a sample into a plurality of sub-samples, and then perform different processing on the plurality of sub-samples. For example, in a medical examination, a laboratory may need to process a sample by using a plurality of different processes or a plurality of examination apparatuses may need to be used to examine a sample. In order to avoid cross contamination to the sample during the processing process of different processes or different detection instruments, and to improve the processing efficiency, the sample is usually divided into a plurality of sub-samples, and a plurality of process flows or a plurality of detection instruments are respectively used for processing the sub-samples synchronously.
When a sample is split into a plurality of subsamples, in order to facilitate tracing and distinguishing of the subsamples, the subsamples need to be encoded. In general, the sub-samples are encoded by adding a sequence number indicating the sequence number of the sub-sample to the end of the encoding of the parent sample (i.e., the split sample). However, this encoding method increases the number of encoded bits, so that the number of encoded bits of the mother sample is different from the number of encoded bits of the child sample, which requires a new management rule, increases the management cost, and is not convenient for unified management.
Disclosure of Invention
The invention provides a sample coding management method, a device, equipment and a storage medium, which are used for unifying the digits of a mother sample and a child sample, facilitating the unified management of coding and reducing the management cost.
In a first aspect, an embodiment of the present invention provides a sample coding management method, including:
obtaining a sample code of a sub-sample, wherein the sample code comprises a mother code representing a mother sample and a serial number representing the sub-sample;
extracting a serial number from the mother code as an original serial number, wherein the mother code comprises a main number and a serial number;
transcoding the serial number according to a preset transcoding mode to obtain a transcoded serial number as a target serial number;
and splicing the target serial number and the main number, and adding the serial number to obtain a target code with the same digits as the mother code in the sample code.
Optionally, obtaining a sample code of the subsample includes:
and acquiring a sample code acquired when the bar code of the sub-sample is scanned by the bar code scanner.
Optionally, extracting the serial number from the mother code as the original serial number includes:
and intercepting the digits after the preset digits in the mother code as an original serial number.
Optionally, the original serial number includes 6 digits, and transcoding the serial number according to a preset transcoding method includes:
and converting the original serial number into a 32-system serial number to obtain a target serial number.
Optionally, after converting the original serial number into a 32-ary serial number to obtain a target serial number, the method further includes:
judging whether the digit of the target serial number is 4 digits or not;
when the digits of the target serial number are less than 4 digits, zero padding is performed before the target serial number so that the digits of the target serial number are 4 digits.
Optionally, splicing the target serial number and the primary number, and adding the serial number to obtain a target code, including:
adding a variable expansion bit after the primary number;
splicing the target serial number after the capacity expansion bit;
splicing the serial number after the target serial number to obtain a target code.
Optionally, the subsample is a coronavirus nucleic acid detection sample.
In a second aspect, an embodiment of the present invention further provides a sample coding management apparatus, including:
the sample code acquisition module is used for acquiring a sample code of a sub sample, wherein the sample code comprises a mother code representing a mother sample and a serial number representing the sub sample;
the serial number extraction module is used for extracting a serial number from the mother code as an original serial number, and the mother code comprises a main number and the serial number;
the transcoding module is used for transcoding the serial number according to a preset transcoding mode to obtain the transcoded serial number as a target serial number;
and the splicing module is used for splicing the target serial number and the main number and adding the serial number to obtain a target code with the same digits as the mother code in the sample codes.
Optionally, the sample code acquiring module includes:
and the sample code acquisition unit is used for acquiring the sample code acquired when the bar code of the sub-sample is scanned by the bar code scanner.
Optionally, the serial number extracting module includes:
and the serial number extraction unit is used for intercepting the digits after the preset digits in the mother code as the original serial number.
Optionally, the original serial number includes 6 digits, and the transcoding module includes:
and the transcoding unit is used for converting the original serial number into a 32-system serial number to obtain a target serial number.
Optionally, the transcoding module further includes:
the judging unit is used for judging whether the digits of the target serial number are 4 digits or not after the original serial number is converted into a 32-system serial number to obtain a target serial number;
a bit padding unit, configured to pad zero before the target serial number when the number of bits of the target serial number is less than 4 bits, so that the number of bits of the target serial number is 4 bits.
Optionally, the splicing module includes:
a capacity bit adding unit for adding a variable capacity bit after the primary number;
a first splicing unit, configured to splice the target serial number after the capacity expansion bit;
and the second splicing unit is used for splicing the serial number after the target serial number to obtain a target code.
Optionally, the subsample is a coronavirus nucleic acid detection sample.
In a third aspect, an embodiment of the present invention further provides a computer device, including:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a sample coding management method as provided in the first aspect of the invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the sample coding management method according to the first aspect of the present invention.
The sample coding management method provided by the embodiment of the invention comprises the following steps: the method comprises the steps of obtaining sample codes of sub samples, wherein the sample codes comprise a mother code representing a mother sample and a serial number representing the sub samples, extracting a serial number from the mother code to serve as an original serial number, the mother code comprises a main number and the serial number, transcoding the serial number according to a preset transcoding mode to obtain the transcoded serial number serving as a target serial number, splicing the target serial number and the main number, and adding the serial number to obtain the target codes with the same digits as the mother code in the sample codes. The serial number in the mother code of the mother sample is recoded to obtain a new serial number, and the new serial number is spliced with the main number in the mother code and the serial number in the sample code of the child sample, so that the number of the new code of the child sample is the same as the number of the mother code of the mother sample, the codes are managed uniformly, and the management cost is reduced.
Drawings
Fig. 1 is a flowchart of a sample coding management method according to an embodiment of the present invention;
fig. 2A is a flowchart of a sample coding management method according to a second embodiment of the present invention;
FIG. 2B is a schematic diagram of a barcode of a seed sample according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a sample coding management apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a sample code management method according to an embodiment of the present invention, where this embodiment is applicable to a case where codes of a child sample and a parent sample are managed in a unified manner, and the method may be executed by a sample code management apparatus according to an embodiment of the present invention, where the apparatus may be implemented by software and/or hardware, and is generally configured in a computer device, as shown in fig. 1, the method specifically includes the following steps:
s101, obtaining sample codes of the sub samples, wherein the sample codes comprise mother codes representing the mother samples and serial numbers representing the sub samples.
In the embodiment of the present invention, the sample may be a commodity, a medical specimen, a test sample, or the like, and the embodiment of the present invention is not limited herein. As described above, in the embodiments of the present invention, in order to avoid cross contamination of samples during processing by different processes or different detection apparatuses, and to improve processing efficiency, the samples are generally divided into a plurality of sub-samples, and a plurality of process flows or a plurality of detection apparatuses are respectively used for processing simultaneously. The mother sample is a sample before splitting, and the child sample is a sample obtained after splitting the mother sample.
In the embodiment of the present invention, as described above, the sub-samples are encoded in such a way that the serial numbers representing the sub-samples are added to the end of the encoding of the parent sample, and the two are usually separated by a bar. The mother code is the code of the mother sample. The sequence number of the subsample indicates the sequence number of the subsample among the plurality of subsamples. For example, the sample code of a certain subsample is "1C 5321132572-04", where "1C 5321132572" is the code of the parent sample and "04" is the serial number of the subsample, i.e. the 4 th subsample.
S102, extracting the serial number from the mother code as an original serial number, wherein the mother code comprises a main number and the serial number.
In embodiments of the invention, the parent code of the parent sample is typically made up of two parts, the first part being a primary number, which is typically the customer number, e.g., for the medical testing field, the primary number typically indicates the number of the hospital from which the sample came. The second part is a water line number, which usually represents the sampling or sample presentation order of the samples, and which usually consists of decimal numbers.
The major and serial numbers typically have fixed digits, e.g., the first digits in a parent code are the major and the last digits are the serial number. For example, in the mother code, "1C 5321132572", "1C 5321" indicates a primary number, and "132572" indicates a serial number. Therefore, the serial number can be extracted from the mother code as the original serial number based on this.
S103, transcoding the serial number according to a preset transcoding mode to obtain the transcoded serial number as a target serial number.
In the embodiment of the present invention, the serial number is transcoded according to a preset transcoding manner, for example, the decimal serial number is converted into 8, 16, or 32, or other encoding manners, which is not limited herein.
And after transcoding the serial number according to a preset transcoding mode, obtaining the transcoded serial number as a target serial number.
And S104, splicing the target serial number and the primary number, and adding the serial number to obtain the target code with the same digits as the primary code in the sample code.
In the embodiment of the invention, after the target serial number is obtained, the target serial number and the main number are spliced, the serial number is added, and the target code is obtained, wherein the digits of the target code are the same as the digits of the mother code in the sample code. For example, the mother code has 12-bit characters and the target code also has 12-bit characters.
The sample coding management method provided by the embodiment of the invention comprises the following steps: the method comprises the steps of obtaining sample codes of sub samples, wherein the sample codes comprise a mother code representing a mother sample and a serial number representing the sub samples, extracting a serial number from the mother code to serve as an original serial number, the mother code comprises a main number and the serial number, transcoding the serial number according to a preset transcoding mode to obtain the transcoded serial number serving as a target serial number, splicing the target serial number and the main number, and adding the serial number to obtain the target codes with the same digits as the mother code in the sample codes. The serial number in the mother code of the mother sample is recoded to obtain a new serial number, and the new serial number is spliced with the main number in the mother code and the serial number in the sample code of the child sample, so that the number of the new code of the child sample is the same as the number of the mother code of the mother sample, the codes are managed uniformly, and the management cost is reduced.
Example two
Fig. 2A is a flowchart of a sample code management method according to a second embodiment of the present invention, which is further refined based on the first embodiment, and details a specific process of each step in the sample code management method, as shown in fig. 2A, the method includes:
s201, acquiring sample codes acquired when the bar codes of the sub-samples are scanned by the bar code scanner.
Illustratively, in the present embodiment, the parent sample is a coronavirus nucleic acid detection sample, which may be a mixed sample obtained by mixing "5-mix 1" or "10-mix 1". The term "5 mix 1" or "10 mix 1" refers to a plurality of human samples are put into a collection tube, and the mixed sample in the collection tube is a mother sample. The collection tube is typically affixed with a barcode for traceability, which is printed with a mother code of the mother sample. After a sample is received by a laboratory, the sample needs to be split to obtain a plurality of subsamples, and the barcodes of the subsamples are attached to the subsamples. And (3) sufficiently shaking and eluting before detection, and then performing nucleic acid extraction and amplification experiments.
In the embodiment of the invention, the bar code on the sub-sample is scanned by the code scanner, so that the sample code of the sub-sample collected by the code scanner is obtained. The bar code is a symbol in which lines and spaces are combined according to a certain coding rule, and represents certain data such as letters and numbers. During identification, the bar code is scanned by the scanner to obtain a set of reflected light signals, which are converted into a set of electronic signals corresponding to lines and spaces after photoelectric conversion, and the electronic signals are decoded and restored into corresponding data strings and then transmitted to a computer (i.e. a computer). Fig. 2B is a schematic diagram of a barcode of a sub-sample provided in an embodiment of the present invention, and as shown in fig. 2B, a sample code of the sub-sample obtained by a scanner is "1L 3030999999-B08L-01", where the first 12 bits are a mother code of the mother sample, "B08L" is a department number, and "01" is a serial number of the sub-sample.
S202, capturing the digits after the preset digits in the mother code as the original serial number.
In the embodiment of the present invention, as shown in fig. 2B, the first 6 digits in the mother code are the customer number, which represents the hospital number. The last 6 bits are the serial number, which represents the sample sampling or sample presentation order, and the serial number is usually composed of decimal numbers.
In the embodiment of the invention, the last 6 digits in the mother code are intercepted as the original serial number.
And S203, converting the original serial number into a 32-system serial number to obtain a target serial number.
Illustratively, in the embodiment of the present invention, the decimal original serial number is converted into 32-ary serial number, so as to obtain the target serial number. Illustratively, in the embodiment of the present invention, after the original serial number "999999" is converted into 32-ary, the obtained target serial number is "UGHV".
S204, judging whether the digit of the target serial number is 4 digits.
In the embodiment of the present invention, in order to ensure that the new code of the sub sample is the same as the number of bits of the mother code of the mother sample, it is necessary to ensure that the number of bits of the target serial number is 4 bits, so after the original serial number is converted into 32-ary system to obtain the target serial number, it is necessary to determine whether the number of bits of the target serial number is 4 bits, if the number of bits of the target serial number is less than 4 bits, step S205 is executed, and if the number of bits of the target serial number is equal to 4 bits, no operation is required. Of course, the original serial number is a 6-bit number, and the number of bits converted into the 32-ary target serial number does not exceed 4 bits.
S205, zero padding is performed before the target serial number so that the digits of the target serial number are 4 digits.
If the number of digits of the target serial number is less than 4 digits, zero padding is performed before the target serial number so that the number of digits of the target serial number is 4 digits.
And S206, adding variable capacity expansion bits after the primary number.
Considering that the sample sending quantity of a hospital is huge, a serial number with 6 digits may not meet the huge sample sending quantity, and the problem of serial number overflow or repeated coding is caused. In the embodiment of the invention, because the number of the transcoded serial number is reduced relative to the number of the original serial number, a variable capacity expansion bit can be added after the primary number of the primary code, and the capacity expansion bit can be filled with numbers or letters, so that the capacity of the serial number is expanded, and more sample sending requirements are met. For example, the expansion bit may be a letter of a-Z, and starting from a, when the serial number after a reaches 99999999 or UGHV, the expansion bit of the serial number of the next sample is changed to B, the serial number is reset to 0000001 or 0001, and so on, and the expansion of the serial number is realized.
And S207, splicing the target serial number after the expansion bit.
In the embodiment of the invention, after the variable capacity expansion bit is added, the target serial number is spliced behind the capacity expansion bit.
And S208, splicing the serial number after the target serial number to obtain a target code.
In the embodiment of the invention, the sequence number is spliced after the target serial number to obtain the target code. For example, after the sub-sample with the sample code of "1L 3030999999-B08L-01" is processed by the foregoing steps, the obtained target code is "1L 3030AUGHV 1", where "1L 3030" is the main number in the mother code, "a" expansion number of expansion bits, "UGHV" is the target stream number after transcoding, and the last digit "1" is the serial number of the sub-sample, which represents the second sub-sample. 0-9 represent the first through tenth subsamples, respectively. The target code obtained after the sample code conversion of the sub-sample is the same as the number of the mother code of the mother sample, so that the code is convenient to manage uniformly, and the management cost is reduced.
It should be noted that, in the embodiment of the present invention, the original serial number is 6 bits, 32-ary conversion is performed, and the maximum number of sub samples is 10 as an example, and an exemplary description is given to the embodiment of the present invention, in other embodiments of the present invention, the number of the original serial number may also be greater than 6 or less than 6, the number of the sub samples may also be greater than 10, and other transcoding methods are used to transcode the original serial number, which is not limited herein.
According to the sample code management method provided by the embodiment of the invention, the serial number in the mother code of the mother sample is recoded to obtain a new serial number, and the new serial number is spliced with the main number in the mother code and the serial number in the sample code of the child sample, so that the number of the new code of the child sample is the same as the number of the mother code of the mother sample, the unified management of the codes is facilitated, and the management cost is reduced. In addition, the capacity expansion bit is added to expand the capacity of the serial number, so that the serial number meets more sample sending requirements, and the problem of overflow or repeated coding caused by insufficient serial number is avoided.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a sample coding management apparatus according to a third embodiment of the present invention, as shown in fig. 3, the apparatus includes:
a sample code obtaining module 301, configured to obtain a sample code of a sub-sample, where the sample code includes a mother code representing a mother sample and a serial number representing the sub-sample;
a serial number extracting module 302, configured to extract a serial number from the mother code as an original serial number, where the mother code includes a major number and a serial number;
the transcoding module 303 is configured to transcode the serial number according to a preset transcoding manner to obtain a transcoded serial number as a target serial number;
and the splicing module 304 is configured to splice the target serial number and the primary number, and add the serial number to obtain a target code having the same digits as the parent code in the sample code.
In some embodiments of the present invention, the sample code acquisition module 301 comprises:
and the sample code acquisition unit is used for acquiring the sample code acquired when the bar code of the sub-sample is scanned by the bar code scanner.
In some embodiments of the invention, serial number extraction module 302 comprises:
and the serial number extraction unit is used for intercepting the digits after the preset digits in the mother code as the original serial number.
In some embodiments of the present invention, the original serial number includes 6 digits, and the transcoding module 303 includes:
and the transcoding unit is used for converting the original serial number into a 32-system serial number to obtain a target serial number.
In some embodiments of the present invention, transcoding module 303 further comprises:
the judging unit is used for judging whether the digits of the target serial number are 4 digits or not after the original serial number is converted into a 32-system serial number to obtain a target serial number;
a bit padding unit, configured to pad zero before the target serial number when the number of bits of the target serial number is less than 4 bits, so that the number of bits of the target serial number is 4 bits.
In some embodiments of the present invention, the stitching module 304 comprises:
a capacity bit adding unit for adding a variable capacity bit after the primary number;
a first splicing unit, configured to splice the target serial number after the capacity expansion bit;
and the second splicing unit is used for splicing the serial number after the target serial number to obtain a target code.
In some embodiments of the invention, the subsample is a coronavirus nucleic acid test sample.
The sample code management device can execute the sample code management method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the sample code management method.
Example four
A fourth embodiment of the present invention provides a computer device, and fig. 4 is a schematic structural diagram of the computer device provided in the fourth embodiment of the present invention, as shown in fig. 4, the computer device includes:
a processor 401, a memory 402, a communication module 403, an input device 404, and an output device 405; the number of the processors 401 in the mobile terminal may be one or more, and one processor 401 is taken as an example in fig. 4; the processor 401, the memory 402, the communication module 403, the input device 404 and the output device 405 in the mobile terminal may be connected by a bus or other means, and fig. 4 illustrates an example of a connection by a bus. The processor 401, memory 402, communication module 403, input device 404, and output device 405 described above may be integrated on a computer device.
The memory 402 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as the modules corresponding to the sample coding management method in the above embodiments. The processor 401 executes various functional applications and data processing of the computer device by executing software programs, instructions and modules stored in the memory 402, namely, implements the sample encoding management method described above.
The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the microcomputer, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 402 may further include memory located remotely from the processor 401, which may be connected to an electronic device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
And a communication module 403, configured to establish a connection with an external device (e.g., an intelligent terminal), and implement data interaction with the external device. The input device 404 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function controls of the computer apparatus.
The computer device provided by this embodiment may execute the sample coding management method provided by any of the above embodiments of the present invention, and has corresponding functions and beneficial effects.
EXAMPLE five
An embodiment of the present invention provides a storage medium containing computer-executable instructions, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the method for sample coding management according to any of the above embodiments of the present invention is implemented, where the method includes:
obtaining a sample code of a sub-sample, wherein the sample code comprises a mother code representing a mother sample and a serial number representing the sub-sample;
extracting a serial number from the mother code as an original serial number, wherein the mother code comprises a main number and a serial number;
transcoding the serial number according to a preset transcoding mode to obtain a transcoded serial number as a target serial number;
and splicing the target serial number and the main number, and adding the serial number to obtain a target code with the same digits as the mother code in the sample code.
It should be noted that, as for the apparatus, the device and the storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and in relevant places, reference may be made to the partial description of the method embodiments.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a robot, a personal computer, a server, or a network device) to execute the sample code management method according to any embodiment of the present invention.
It should be noted that, in the above apparatus, each module and unit included in the apparatus is only divided according to functional logic, but is not limited to the above division as long as the corresponding function can be realized; in addition, the specific names of the functional modules are only for convenience of distinguishing from each other and are not used for limiting the protection scope of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by suitable instruction execution devices. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A sample code management method, comprising:
obtaining a sample code of a sub-sample, wherein the sample code comprises a mother code representing a mother sample and a serial number representing the sub-sample;
extracting a serial number from the mother code as an original serial number, wherein the mother code comprises a main number and a serial number;
transcoding the serial number according to a preset transcoding mode to obtain a transcoded serial number as a target serial number;
and splicing the target serial number and the main number, and adding the serial number to obtain a target code with the same digits as the mother code in the sample code.
2. The sample code management method according to claim 1, wherein obtaining the sample codes of the subsamples comprises:
and acquiring a sample code acquired when the bar code of the sub-sample is scanned by the bar code scanner.
3. The sample code management method according to claim 1, wherein extracting a serial number as an original serial number from the mother code includes:
and intercepting the digits after the preset digits in the mother code as an original serial number.
4. The sample coding management method according to claim 1, wherein the original serial number includes 6 digits, and transcoding the serial number according to a preset transcoding method includes:
and converting the original serial number into a 32-system serial number to obtain a target serial number.
5. The sample code management method according to claim 4, wherein after converting the original serial number into a 32-ary serial number to obtain a target serial number, the method further comprises:
judging whether the digit of the target serial number is 4 digits or not;
when the digits of the target serial number are less than 4 digits, zero padding is performed before the target serial number so that the digits of the target serial number are 4 digits.
6. The sample code management method according to any one of claims 1 to 5, wherein splicing the target serial number with the primary number and adding the serial number to obtain a target code comprises:
adding a variable expansion bit after the primary number;
splicing the target serial number after the capacity expansion bit;
splicing the serial number after the target serial number to obtain a target code.
7. The method of claim 6, wherein the subsample is a coronavirus nucleic acid test sample.
8. A sample code management apparatus, comprising:
the sample code acquisition module is used for acquiring a sample code of a sub sample, wherein the sample code comprises a mother code representing a mother sample and a serial number representing the sub sample;
the serial number extraction module is used for extracting a serial number from the mother code as an original serial number, and the mother code comprises a main number and the serial number;
the transcoding module is used for transcoding the serial number according to a preset transcoding mode to obtain the transcoded serial number as a target serial number;
and the splicing module is used for splicing the target serial number and the main number and adding the serial number to obtain a target code with the same digits as the mother code in the sample codes.
9. A computer device, comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the sample code management method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method for sample coding management according to any one of claims 1 to 7.
CN202111568686.0A 2021-12-21 2021-12-21 Sample coding management method, device, equipment and storage medium Pending CN114219057A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111568686.0A CN114219057A (en) 2021-12-21 2021-12-21 Sample coding management method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111568686.0A CN114219057A (en) 2021-12-21 2021-12-21 Sample coding management method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114219057A true CN114219057A (en) 2022-03-22

Family

ID=80704701

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111568686.0A Pending CN114219057A (en) 2021-12-21 2021-12-21 Sample coding management method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114219057A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112989861A (en) * 2021-02-08 2021-06-18 北京声智科技有限公司 Sample identification code reading method and device, electronic equipment and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112989861A (en) * 2021-02-08 2021-06-18 北京声智科技有限公司 Sample identification code reading method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106407201B (en) Data processing method and device and computer readable storage medium
CN108108342B (en) Structured text generation method, search method and device
US20110288785A1 (en) Compression of genomic base and annotation data
WO2019042349A1 (en) Translation method, mobile terminal and storage device of operating system framework
CN112395251A (en) Intelligent analysis method and device for data file, electronic equipment and storage medium
CN110769002A (en) LabVIEW-based message analysis method, system, electronic device and medium
CN110888862A (en) Data storage method, data query method, data storage device, data query device, server and storage medium
CN112765427A (en) Environment-friendly monitoring data processing method and device based on mqtt protocol
CN114219057A (en) Sample coding management method, device, equipment and storage medium
CN111898340A (en) File processing method and device and readable storage medium
CN108989902B (en) Barrage message processing method and device, terminal and storage medium
CN116501846A (en) Open dialogue method, device, electronic equipment and medium
CN106569939B (en) Control script program multi-country character analysis system and multi-country character analysis method
CN113268247B (en) HL7 message analysis method based on state machine
CN112698825B (en) Programming building block conversion method, device, processing equipment and storage medium
CN113138767B (en) Code language conversion method, device, electronic equipment and storage medium
CN114741697A (en) Malicious code classification method and device, electronic equipment and medium
CN100440778C (en) Device and method for recognizing quick response codes run on mobile terminals
CN109992293B (en) Method and device for assembling Android system component version information
CN109033467B (en) Compression method, device, medium and electronic equipment for multi-option form
CN111079185A (en) Database information processing method and device, storage medium and electronic equipment
CN114491040B (en) Information mining method and device
CN115361456B (en) Data message processing method, device and system
CN117707541A (en) Character string data collection method, device, electronic equipment and computer readable medium
CN109545279B (en) Method, device, equipment and storage medium for analyzing chromosome microarray data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination