Disclosure of Invention
The invention aims to overcome the defect that an information system aiming at a retail pharmacy cannot directly and automatically identify a traceability code of a medicine in the prior art, such as high transformation cost, and provides a method, a system, equipment and a medium for identifying the traceability code of the medicine.
The invention solves the technical problems by the following technical scheme:
the invention provides a method for identifying a traceability code of a medicine, which is used for an information system of a retail pharmacy, and comprises the following steps:
acquiring a traceability code of the medicine;
Converting the traceability code of the medicine into a target commodity bar code according to the coding rule of the traceability code;
acquiring the input position and the operation ending key value of a commodity bar code in the information system based on a result of learning the manual operation step of the information system in advance;
And automatically injecting the target commodity bar code into the input position, and automatically triggering an execution instruction corresponding to the operation ending key value.
According to the scheme, the traceability code of the medicine is converted into the target commodity bar code, and then the target commodity bar code is automatically injected into the information system based on the result of learning the manual operation step of the information system in advance, so that the traceability code of the medicine can be automatically identified and the automatic injection can be completed under the condition that the information system of an original retail pharmacy is not modified.
Preferably, the converting the traceability code of the medicine into the target commodity bar code according to the coding rule of the traceability code includes:
judging whether the length of the traceability code is 20 bits, if so, judging whether a commodity bar code matched with the first 7 bits of the traceability code exists in the information system, if so, taking the matched commodity bar code as the target commodity bar code, and if not, submitting the traceability code to a cloud identification analysis middleware for analysis so as to obtain the target commodity bar code corresponding to the traceability code.
According to the scheme, the length of the traceability code is firstly judged to be 20 bits according to the coding rule of the traceability code, then whether a commodity bar code matched with the first 7 bits of the traceability code exists in the information system is judged, if the commodity bar code matched with the first 7 bits of the traceability code does not exist, the traceability code is submitted to the cloud identification analysis middleware for analysis, and therefore the traceability code of a medicine is converted into a target commodity bar code.
Preferably, when determining whether the length of the traceback code is 20 bits, the identifying method further includes: judging whether the traceability code is a GS1 (Global standard 1) code or not, if yes, judging whether a commodity bar code corresponding to a GTIN (Global TRADE ITEM Number, global trade item code) identification section of the traceability code exists in the information system, if yes, taking the commodity bar code corresponding to the GTIN identification section of the traceability code as the target commodity bar code, and if no, submitting the commodity bar code to a cloud identification analysis middleware for analysis so as to obtain the target commodity bar code corresponding to the traceability code.
According to the scheme, according to the coding rule of the traceability code, the length of the traceability code is judged to be not 20 bits, then whether a commodity bar code corresponding to the GTIN identification section of the traceability code exists in the information system is judged, if the commodity bar code does not exist, the commodity bar code is submitted to the cloud identification analysis middleware to be analyzed, and the target commodity bar code is obtained, so that the traceability code of the medicine is converted into the target commodity bar code.
Preferably, the learning the manual operation step of the information system in advance includes:
responding to a learning mode instruction, and entering a learning mode;
Under the learning mode, the step of manually operating the information system by a machine learning is performed, and the input position and the operation ending key value of the commodity bar code in the information system are recorded;
And/or, the identification method further comprises:
acquiring the traceability information of the medicine according to the traceability code of the medicine;
storing traceability information of the medicine;
The traceability information of the medicine comprises at least one of product identification, occurrence time, occurrence place and operator information.
According to the scheme, through the step of manually operating the information system by machine learning in the learning mode, the input position of the commodity bar code in the information system and the execution instruction of the operation ending key are recorded, so that the target commodity bar code obtained by converting the traceability code based on the medicine can be automatically injected into the information system in links of warehousing, sales and the like. In addition, in the scheme, the information such as the product identification, the occurrence time, the occurrence place, the information of operators and the like of the medicine is stored, so that the traceability information of the medicine can be conveniently obtained according to the traceability code of the medicine in the later period.
The invention also provides a system for identifying the traceability code of the medicine, which is used for an information system of a retail pharmacy, and comprises the following components:
the first acquisition module is used for acquiring the traceability code of the medicine;
the conversion module is used for converting the traceability code of the medicine into a target commodity bar code according to the coding rule of the traceability code;
The second acquisition module is used for acquiring the input position and the operation ending key value of the commodity bar code in the information system based on the result of learning the manual operation step of the information system in advance;
and the injection module is used for automatically injecting the target commodity bar code into the input position and automatically triggering the execution instruction of the operation ending key.
According to the scheme, the traceability code of the medicine is converted into the target commodity bar code, and then the target commodity bar code is automatically injected into the information system based on the result of learning the manual operation step of the information system in advance, so that the traceability code of the medicine can be automatically identified and the automatic injection can be completed under the condition that the information system of an original retail pharmacy is not modified.
Preferably, the conversion module includes:
And the first judging unit is used for judging whether the length of the tracing code is 20 bits, if so, judging whether a commodity bar code matched with the first 7 bits of the tracing code exists in the information system, if so, taking the matched commodity bar code as the target commodity bar code, and if not, submitting the tracing code to a cloud identification analysis middleware for analysis so as to acquire the target commodity bar code corresponding to the tracing code.
According to the scheme, the length of the traceability code is firstly judged to be 20 bits according to the coding rule of the traceability code, then whether a commodity bar code matched with the first 7 bits of the traceability code exists in the information system is judged, if the commodity bar code matched with the first 7 bits of the traceability code does not exist, the traceability code is submitted to the cloud identification analysis middleware for analysis, and therefore the traceability code of a medicine is converted into a target commodity bar code.
Preferably, when the length of the tracing code is 20 bits, the conversion module further includes a second judging unit, where the second judging unit is configured to judge whether the tracing code is a GS1 code, if yes, judge whether a commodity barcode corresponding to a GTIN identification section of the tracing code exists in the information system, if yes, take the commodity barcode corresponding to the GTIN identification section of the tracing code as the target commodity barcode, and if no, submit the commodity barcode to the cloud identification analysis middleware for analysis, so as to obtain the target commodity barcode corresponding to the tracing code.
According to the scheme, according to the coding rule of the traceability code, the length of the traceability code is judged to be not 20 bits, then whether a commodity bar code corresponding to the GTIN identification section of the traceability code exists in the information system is judged, if the commodity bar code does not exist, the commodity bar code is submitted to the cloud identification analysis middleware to be analyzed, and the target commodity bar code is obtained, so that the traceability code of the medicine is converted into the target commodity bar code.
Preferably, the second obtaining module includes:
the response unit is used for responding to the learning mode instruction and entering a learning mode;
The recording unit is used for recording the input position of the commodity bar code in the information system and the execution instruction of the operation ending key by the step of manually operating the information system through machine learning under the learning mode;
and/or, the identification system further comprises:
the third acquisition module is used for acquiring the traceability information of the medicine according to the traceability code of the medicine;
the storage module is used for storing the traceability information of the medicine;
The traceability information of the medicine comprises at least one of product identification, occurrence time, occurrence place and operator information.
According to the scheme, through the step of manually operating the information system by machine learning in the learning mode, the input position of the commodity bar code in the information system and the execution instruction of the operation ending key are recorded, so that the target commodity bar code obtained by converting the traceability code based on the medicine can be automatically injected into the information system in links of warehousing, sales and the like. In addition, in the scheme, the information such as the product identification, the occurrence time, the occurrence place, the information of operators and the like of the medicine is stored, so that the traceability information of the medicine can be conveniently obtained according to the traceability code of the medicine in the later period.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the identification method of the traceability code of the medicine when executing the computer program.
The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the aforementioned method for identifying a traceability code of a pharmaceutical product.
The invention has the positive progress effects that:
The invention provides a method, a system, equipment and a medium for identifying a traceability code of a medicine, which are characterized in that the traceability code of the medicine is converted into a commodity bar code according to the coding rule of the traceability code, then the input position and the operation end key value of the commodity bar code are automatically acquired from the information system based on the study of the manual operation steps of the information system in advance, and the commodity bar code is automatically injected into the information system, so that the traceability code of the medicine can be automatically identified and the automatic injection can be completed under the conditions that the information system of an original retail pharmacy is not modified and the hardware investment is not increased.
Detailed Description
The invention is further illustrated by means of the following examples, which are not intended to limit the scope of the invention.
Example 1
As shown in fig. 1, embodiment 1 discloses a method for identifying a traceability code of a drug, where the identifying method includes:
s101, acquiring a traceability code of a medicine; specifically, the medicine traceability code can be obtained through a scanning gun arranged outside an original information system of a retail pharmacy;
step S102, converting the traceability code of the medicine into a target commodity bar code according to the coding rule of the traceability code;
Step S103, acquiring the input position and the operation ending key value of the commodity bar code in the information system based on the result of learning the manual operation step of the information system in advance;
Step S104, automatically injecting the target commodity bar code into the input position, and automatically triggering an execution instruction corresponding to the operation ending key value.
In this embodiment, the traceability code of the drug is converted into the target commodity bar code, and then the target commodity bar code is automatically injected into the information system based on the result of learning the manual operation step of the information system in advance. According to the embodiment, the code scanning gun is arranged outside a retail pharmacy, the traceability codes on the product package are read in the links of goods intake, sales and the like, then the traceability codes read by the code scanning gun are intercepted and converted into the commodity bar codes, and finally the commodity bar codes are automatically injected according to the manual operation steps in the pharmacy informatization system learned by a machine, so that the traceability codes of medicines can be automatically identified and automatically injected under the conditions that the information system of the original retail pharmacy is not modified and the hardware investment is not increased.
In an alternative implementation, the method for identifying the traceability code of the medicine further includes the following steps:
acquiring the traceability information of the medicine according to the traceability code of the medicine, and storing the traceability information of the medicine; the traceability information of the medicine comprises at least one of product identification, occurrence time, occurrence place and operator information. The sequence of the steps may be performed before or after any one of the steps other than the step S101 is performed, and will not be described herein.
In this embodiment, the drug store owner may perform data analysis on the traceability information of the drug, or may perform a transaction with the brand manufacturer according to the traceability information.
As shown in fig. 2, step S102 specifically includes the following steps:
step S1021, judging whether the length of the tracing code is 20 bits, if so, executing step S1022, and if not, executing step S1025;
step S1022, judging whether a commodity bar code matched with the first 7 bits of the traceability code exists in the information system; if yes, step S1023 is executed, and if not, step S1024 is executed;
Step S1023, taking the matched commodity bar code as the target commodity bar code; after step S1023 is performed, the flow ends.
And step S1024, submitting the traceability code to a cloud identification analysis middleware for analysis to acquire a target commodity bar code corresponding to the traceability code. Step S1024 is performed and the flow ends.
Step S1025, judging whether the tracing code is a GS1 code, if so, executing step S1026; if not, executing step S1028;
Step S1026, judging whether a commodity bar code corresponding to the GTIN identification section of the traceability code exists in the information system, and if so, executing step S1027; if not, executing step S1028;
Step S1027, taking a commodity bar code corresponding to the GTIN identification section of the traceability code as the target commodity bar code; after step S1027 is performed, the flow ends.
And step 1028, submitting the commodity bar code to the cloud identification analysis middleware for analysis to acquire the target commodity bar code corresponding to the traceability code. Step S1028 is performed, and the flow ends.
In this embodiment, according to the encoding rule of the traceback code, the length of the traceback code is first determined to be 20 bits, then whether the commodity bar code adapted to the first 7 bits of the traceback code exists in the information system is determined, if the commodity bar code does not exist, the traceback code is submitted to the cloud identification analysis middleware for analysis, and therefore the traceback code of the medicine is converted into the target commodity bar code.
In this embodiment, according to the encoding rule of the traceback code, the length of the traceback code is judged to be not 20 bits, then whether the commodity bar code corresponding to the GTIN identification section of the traceback code exists in the information system is judged, if the commodity bar code does not exist, the commodity bar code is submitted to the cloud identification analysis middleware to be analyzed to obtain the target commodity bar code, and therefore the traceback code of the medicine is converted into the target commodity bar code.
As shown in fig. 3, in step S103, the step of learning the manual operation step of the information system in advance includes:
step S1031, responding to a learning mode instruction and entering a learning mode;
Step S1032, in the learning mode, the step of manually operating the information system is machine-learned, and the input position of the commodity bar code in the information system and the operation ending key value are recorded. Specifically, in the learning mode, the drug store related personnel perform specific operations in links such as simulating daily goods intake, sales and the like, and the identification system of the drug trace code learns the steps of manual operation of an information system through machine learning, for example, recording the input position and the operation end key value of the commodity bar code in the information system.
In this embodiment, through the step of machine learning the manual operation of the information system in the learning mode, the input position of the commodity barcode in the information system and the execution instruction of the operation end key are recorded, so that the target commodity barcode obtained by converting the traceability code based on the medicine can be automatically injected into the information system in links such as warehousing and sales. In addition, in the scheme, the information such as the product identification, the occurrence time, the occurrence place, the information of operators and the like of the medicine is stored, so that the traceability information of the medicine can be conveniently obtained according to the traceability code of the medicine in the later period.
The embodiment discloses a method for identifying a traceability code of a medicine, which is characterized in that the traceability code of the medicine is converted into a commodity bar code according to a coding rule of the traceability code, then the input position and the operation end key value of the commodity bar code are automatically acquired from an information system based on the study of manual operation steps of the information system in advance, and the commodity bar code is automatically injected into the information system, so that the traceability code of the medicine can be automatically identified and the automatic injection can be completed under the conditions that the information system of an original retail pharmacy is not modified and the hardware investment is not increased. Meanwhile, the traceability information of the medicine is obtained according to the traceability code of the medicine, and then the traceability information of the medicine is stored, so that the traceability information of the medicine can be obtained according to the traceability code of the medicine in the later period.
Example 2
As shown in fig. 4, this embodiment discloses a system for identifying a traceability code of a medicine, where the identifying system includes:
The first acquisition module 1 is used for acquiring a traceability code of the medicine; specifically, the medicine traceability code can be obtained through a scanning gun arranged outside an original information system of a retail pharmacy;
The conversion module 2 is used for converting the traceability code of the medicine into a target commodity bar code according to the coding rule of the traceability code;
the second obtaining module 3 is used for obtaining the input position and the operation ending key value of the commodity bar code in the information system based on the result of learning the manual operation step of the information system in advance;
The injection module 4 is used for automatically injecting the target commodity bar code into the input position and automatically triggering an execution instruction corresponding to the operation ending key value;
In this embodiment, the traceability code of the drug is converted into the target commodity bar code, and then the target commodity bar code is automatically injected into the information system based on the result of learning the manual operation step of the information system in advance. According to the embodiment, the code scanning gun is arranged outside a retail pharmacy, the traceability codes on the product package are read in the links of goods intake, sales and the like, then the traceability codes read by the code scanning gun are intercepted and converted into the commodity bar codes, and finally the commodity bar codes are automatically injected according to the manual operation steps in the pharmacy informatization system learned by a machine, so that the traceability codes of medicines can be automatically identified and automatically injected under the conditions that the information system of the original retail pharmacy is not modified and the hardware investment is not increased.
The third acquisition module 5 is used for acquiring the traceability information of the medicine according to the traceability code of the medicine;
The storage module 6 is used for storing the traceability information of the medicine;
The traceability information of the medicine comprises at least one of product identification, occurrence time, occurrence place and operator information.
In this embodiment, the drug store owner may perform data analysis on the traceability information of the drug, or may perform a transaction with the brand manufacturer according to the traceability information.
As shown in fig. 5, the conversion module 2 includes:
The first judging unit 21 is configured to judge whether the length of the traceback code is 20 bits, if yes, judge whether a commodity barcode matching with the first 7 bits of the traceback code exists in the information system, if yes, take the adapted commodity barcode as the target commodity barcode, and if no, submit the traceback code to a cloud identifier analysis middleware for analysis, so as to obtain the target commodity barcode corresponding to the traceback code.
In this embodiment, according to the encoding rule of the traceback code, the length of the traceback code is first determined to be 20 bits, then whether the commodity bar code adapted to the first 7 bits of the traceback code exists in the information system is determined, if the commodity bar code does not exist, the traceback code is submitted to the cloud identification analysis middleware for analysis, and therefore the traceback code of the medicine is converted into the target commodity bar code.
And the second judging unit 22 is configured to judge whether the traceback code is a GS1 code when the length of the traceback code is 20 bits, if yes, judge whether a commodity barcode corresponding to the GTIN identification section of the traceback code exists in the information system, and if yes, take the commodity barcode corresponding to the GTIN identification section of the traceback code as the target commodity barcode, and if no, submit the commodity barcode to the cloud identification analysis middleware for analysis, so as to obtain the target commodity barcode corresponding to the traceback code.
In this embodiment, according to the encoding rule of the traceback code, the length of the traceback code is judged to be not 20 bits, then whether the commodity bar code corresponding to the GTIN identification section of the traceback code exists in the information system is judged, if the commodity bar code does not exist, the commodity bar code is submitted to the cloud identification analysis middleware to be analyzed to obtain the target commodity bar code, and therefore the traceback code of the medicine is converted into the target commodity bar code.
As shown in fig. 6, the second acquisition module 3 includes:
a response unit 31 for entering a learning mode in response to a learning mode instruction;
A recording unit 32, configured to record an input position of the commodity barcode in the information system and an operation end key value by a step of machine learning a manual operation of the information system in the learning mode; specifically, in the learning mode, the drug store related personnel perform specific operations in links such as simulating daily goods intake, sales and the like, and the identification system of the drug trace code learns the steps of manual operation of an information system through machine learning, for example, recording the input position and the operation end key value of the commodity bar code in the information system. In this embodiment, through the step of machine learning the manual operation of the information system in the learning mode, the input position of the commodity barcode in the information system and the execution instruction of the operation end key are recorded, so that the target commodity barcode obtained by converting the traceability code based on the medicine can be automatically injected into the information system in links such as warehousing and sales. In addition, in the scheme, the information such as the product identification, the occurrence time, the occurrence place, the information of operators and the like of the medicine is stored, so that the traceability information of the medicine can be conveniently obtained according to the traceability code of the medicine in the later period.
The embodiment discloses a identification system of a traceability code of a medicine, which converts the traceability code of the medicine into a commodity bar code according to a coding rule of the traceability code, automatically acquires an input position and an operation end key value of the commodity bar code from an information system based on the study of manual operation steps of the information system in advance, and automatically injects the commodity bar code into the information system, so that the traceability code of the medicine can be automatically identified and automatically injected under the conditions of not modifying the information system of an original retail pharmacy and not increasing hardware investment. Meanwhile, the traceability information of the medicine is obtained according to the traceability code of the medicine, and then the traceability information of the medicine is stored, so that the traceability information of the medicine can be obtained according to the traceability code of the medicine in the later period.
Example 3
Fig. 7 is a schematic structural diagram of an electronic device according to embodiment 3 of the present invention. The electronic device comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the identification method of the traceability code of the medicine provided in the embodiment 1 when executing the program. The electronic device 60 shown in fig. 7 is only an example and should not be construed as limiting the functionality and scope of use of embodiments of the invention.
As shown in fig. 7, the electronic device 60 may be embodied in the form of a general purpose computing device, which may be a server device, for example. Components of electronic device 60 may include, but are not limited to: the at least one processor 61, the at least one memory 62, a bus 63 connecting the different system components, including the memory 62 and the processor 61.
The bus 63 includes a data bus, an address bus, and a control bus.
Memory 62 may include volatile memory such as Random Access Memory (RAM) 621 and/or cache memory 622, and may further include Read Only Memory (ROM) 623.
Memory 62 may also include a program/utility 625 having a set (at least one) of program modules 624, such program modules 624 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
The processor 61 executes various functional applications and data processing such as the identification method of the traceability code of the medicine provided in embodiment 1 of the present invention by running the computer program stored in the memory 62.
The electronic device 60 may also communicate with one or more external devices 64 (e.g., keyboard, pointing device, etc.). Such communication may occur through an input/output (I/O) interface 65. Also, the model-generating device 60 may also communicate with one or more networks, such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet, through a network adapter 66. As shown, the network adapter 66 communicates with other modules of the model-generating device 60 via the bus 63. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in connection with the model-generating device 60, including, but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, data backup storage systems, and the like.
It should be noted that although several units/modules or sub-units/modules of an electronic device are mentioned in the above detailed description, such a division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more units/modules described above may be embodied in one unit/module in accordance with embodiments of the present invention. Conversely, the features and functions of one unit/module described above may be further divided into ones that are embodied by a plurality of units/modules.
Example 4
The present embodiment provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the identification method of the traceback code of a drug provided in embodiment 1.
More specifically, among others, readable storage media may be employed including, but not limited to: portable disk, hard disk, random access memory, read only memory, erasable programmable read only memory, optical storage device, magnetic storage device, or any suitable combination of the foregoing.
In a possible embodiment, the invention may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps of the identification method implementing the traceback code of the drug provided in example 1, when said program product is run on the terminal device.
Wherein the program code for carrying out the invention may be written in any combination of one or more programming languages, which program code may execute entirely on the user device, partly on the user device, as a stand-alone software package, partly on the user device and partly on the remote device or entirely on the remote device.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that this is by way of example only, and the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the principles and spirit of the invention, but such changes and modifications fall within the scope of the invention.