Drug sorting method and system
By setting up sorting grids on the sorting cart and sorting them according to the volume and similarity of drug orders, picking details are generated, solving the problem of low drug sorting efficiency and achieving efficient and accurate drug sorting and shipping.
Patent Information
- Application Number
- CN202111510971.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-10
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2041-12-10
AI Technical Summary
In the current technology, the efficiency of drug sorting is low. Sorting staff need to travel to multiple storage points, and the matching of drug documents is time-consuming and labor-intensive, resulting in low efficiency.
A sorting cart is pre-set, with multiple sorting compartments. The cart sorts the medicines according to their volume and similarity, generating a picking list. The sorter places the medicines into the corresponding sorting compartments and obtains the order through the picking list.
It improved the efficiency and accuracy of drug sorting, reduced the chance of drug confusion, reduced the time sorters spent searching for documents in the warehouse, and improved shipping efficiency.
Smart Images

Figure CN114331590B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of medical equipment, and in particular to a medicine sorting method and system. Background Art
[0002] Currently, when selling medicines online, the system generates a medicine order based on the buyer's needs. The medicine order is sent to the warehouse where the medicines are stored, and the sorters sort the medicines in the warehouse according to the medicine information contained in the medicine order.
[0003] To avoid drug confusion, the drugs in the warehouse are stored in categories. Sorters need to go back and forth between multiple storage points to pick up drugs for a drug order. On the one hand, there is the defect of low sorting efficiency of the sorters; on the other hand, in the process of drug circulation, the drug documents are the basis for sorting drugs. The documents must be issued together with the drug orders and drugs. Printing the documents and matching them with the corresponding drug orders is also time-consuming and labor-intensive, and the matching efficiency is not high. Summary of the invention
[0004] In view of the problems existing in the prior art, the present invention provides a medicine sorting method, in which at least one sorting vehicle is pre-set, and a plurality of sorting grids are arranged on the sorting vehicle, and each of the sorting grids has a volume upper limit;
[0005] The drug sorting method comprises:
[0006] Step S1, obtaining all drug orders within a preset time period, and adding each of the drug orders to a first set;
[0007] Step S2, for each of the idle sorting vehicles, respectively counting the total volume of the drugs contained in each of the drug orders in the first set, and adding the drug orders whose total volume is not greater than the volume upper limit to a second set;
[0008] Step S3, extracting a first number of the drug orders from the second set and adding them to a third set according to the similarity between the drug orders in the second set, wherein the first number is not greater than the total number of the sorting grids of the sorting vehicle;
[0009] Step S4, binding each drug order in the third set to the corresponding sorting grid and generating a picking detail;
[0010] The sorter uses the sorting vehicle to sort the medicines according to the picking details, so as to place the medicines contained in each of the medicine orders in the third set into the bound sorting grids;
[0011] Step S5, removing each of the drug orders in the third set from the first set to update the first set, and determining whether the updated first set is an empty set:
[0012] If yes, return to step S1 to obtain the medicine order for the next preset time period for sorting;
[0013] If not, return to step S2.
[0014] Preferably, in step S2, the total drug volume is calculated as follows:
[0015] ;
[0016] ;
[0017] in, is the length value of the nth drug in the drug order, is the width value of the nth drug in the drug order, is the height value of the nth drug in the drug order, is the volume of the nth drug in the drug order, is the total drug volume.
[0018] Preferably, step S3 comprises:
[0019] Step S31, extracting any one of the drug orders in the second set as a target order, and taking all other drug orders in the second set as similar orders;
[0020] Step S32, respectively calculating the similarity between the target order and each of the similar orders, and sorting all the similar orders in descending order of the similarity to form an order sequence;
[0021] Step S33, extracting a second number of similar orders that are ranked first from the order sequence, and adding the target order and each of the similar orders as the first number of drug orders to the third set;
[0022] The difference between the first number and the second number is not less than 1.
[0023] Preferably, in step S32, the target order is set to , the similar order is set to , then the calculation formula of the similarity is as follows:
[0024] ;
[0025] in, is the similarity, is the nth drug in the target order, It is the nth drug in the similar order.
[0026] Preferably, each of the sorting grids has a corresponding first number, then in step S4, each of the drug orders is bound to the first number, and the sorter puts the drug into the corresponding sorting grid according to the first number.
[0027] Preferably, the picking details include drug information, a sorting quantity and the first number corresponding to all the drugs contained in each of the drug orders in the third set.
[0028] Preferably, step S4 also includes: the sorter places the documents corresponding to each of the drugs into the corresponding sorting grid according to the picking details, each of the documents is pre-placed on a corresponding storage location, and each of the storage locations is bound to a corresponding second number. The picking details also include the second number for the sorter to pick up the documents corresponding to each of the drugs.
[0029] Preferably, a drug sorting system, using any one of the drug sorting methods described above, comprises:
[0030] A collection module, used for acquiring all drug orders within a preset time period, and adding each of the drug orders into a first set;
[0031] a statistics module, connected to the collection module, for counting the total volume of the drugs contained in each of the drug orders in the first set for each of the idle sorting vehicles, and adding the drug orders whose total volume is not greater than the upper volume limit to a second set;
[0032] An extraction module, connected to the statistical module, for extracting, according to the similarity between the drug orders in the second set, a preset number of drug orders from the second set to be added to a third set, wherein the preset number is not greater than the total number of the sorting grids of the sorting vehicle;
[0033] A binding module, connected to the extraction module, for binding each drug order in the third set to the corresponding sorting grid and generating a picking detail;
[0034] The sorter uses the sorting vehicle to sort the medicines according to the picking details, so as to place the medicines contained in each of the medicine orders in the third set into the bound sorting grids;
[0035] An updating module, connected to the statistical module and the binding module respectively, and used for removing each of the drug orders in the third set from the first set to update the first set;
[0036] A detection module, connected to the acquisition module, the statistics module and the update module respectively, and used to detect the remaining quantity of each of the drug orders in the first set after the update;
[0037] When the remaining quantity indicates that the updated first set is an empty set, the detection module outputs a collection signal, and the collection module obtains the drug orders for the next preset time period according to the collection signal for sorting;
[0038] When the remaining quantity indicates that the updated first set is a non-empty set, the detection module outputs a statistical signal, and the statistical module counts each of the drug orders according to the statistical signal and the updated first set to obtain the second set for the next sorting.
[0039] Preferably, the extraction module comprises:
[0040] an extraction unit, configured to extract any one of the drug orders in the second set as a target order, and to take all other drug orders in the second set as similar orders;
[0041] a calculation unit, connected to the extraction unit, for respectively calculating the similarity between the target order and each of the similar orders, and sorting all the similar orders in descending order of the similarity to form an order sequence;
[0042] a sorting unit, connected to the calculation unit, configured to extract a second number of similar orders that are sorted first according to the order sequence, and add the target order and each of the similar orders as the first number of drug orders to the third set;
[0043] The difference between the first number and the second number is not less than 1.
[0044] Preferably, each of the sorting grids has a corresponding first number, and in the binding module, each of the drug orders is bound to the first number, and the sorter puts the drug into the corresponding sorting grid according to the first number.
[0045] The above technical solution has the following advantages or beneficial effects:
[0046] (1) According to the similarity between any drug order in the second set and all other drug orders in the second set, the drug orders are sorted to obtain an order sequence. In the order sequence, the drug orders are sorted in descending order according to the similarity, and the target orders and similar orders that are sorted first are added to the third set, so that the sorter can sort drugs from multiple drug orders at the same time during one sorting operation, thereby improving the picking efficiency.
[0047] (2) In the picking details, each drug order is bound to a corresponding first number. After the sorter sorts the drugs in a drug order, the sorter puts the drugs in the sorting grid corresponding to the first number bound to the drug order. This has the effect of improving the accuracy of drug sorting, reducing the probability that the drugs placed in the sorting grid do not correspond to the drug order bound to the sorting grid, and improving the efficiency of manual sorting.
[0048] (3) The sorter obtains the location of the storage location where the document corresponding to the currently picked medicine is placed based on the second number in the picking details, thereby reducing the time spent by the sorter in searching for the required document in multiple storage locations, thereby improving the efficiency of medicine shipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 This is a flow chart of a drug sorting method in a preferred embodiment of the present invention;
[0050] Figure 2 This is a flow chart of step S3 in the drug sorting method in a preferred embodiment of the present invention;
[0051] Figure 3 This is a control schematic diagram of a drug sorting system in a preferred embodiment of the present invention. DETAILED DESCRIPTION
[0052] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. The present invention is not limited to this embodiment, and other embodiments may also fall within the scope of the present invention as long as they conform to the gist of the present invention.
[0053] In a preferred embodiment of the present invention, based on the above problems existing in the prior art, a drug sorting method is provided. Figure 1 As shown, at least one sorting vehicle is pre-set, and a plurality of sorting grids are arranged on the sorting vehicle, and each sorting grid has a volume upper limit;
[0054] The drug sorting method includes:
[0055] Step S1, obtaining all drug orders within a preset time period, and adding each drug order to a first set;
[0056] Step S2: for each idle sorting vehicle, respectively count the total volume of the drugs contained in each drug order in the first set, and add the drug orders whose total volume is not greater than the upper limit to a second set;
[0057] Step S3, extracting a first number of drug orders from the second set according to the similarity between the drug orders in the second set and adding them to a third set, wherein the first number is not greater than the total number of sorting grids of the sorting vehicle;
[0058] Step S4, binding each drug order in the third set to a corresponding sorting grid and generating a picking list;
[0059] The sorter uses a sorting vehicle to sort the medicines according to the picking details, so as to place the medicines contained in each medicine order in the third set into the bound sorting grid;
[0060] Step S5, remove each drug order in the third set from the first set to update the first set, and determine whether the updated first set is an empty set:
[0061] If yes, return to step S1 to obtain the medicine orders for the next preset time period for sorting;
[0062] If not, return to step S2.
[0063] Specifically, in this embodiment, the form in which the sorters sort the medicines corresponding to each medicine order one by one is transformed into a form in which the sorters sort the medicines corresponding to multiple similar medicine orders at one time, thereby improving the efficiency of medicine sorting.
[0064] There are multiple sorting grids on the sorting vehicle. The upper volume limit of each sorting grid on a sorting vehicle is the same. The medicines sorted by the sorters are placed in the sorting grids. In order to distinguish each drug order, the medicines corresponding to each drug order are placed in different sorting grids to reduce the probability of drug confusion between different drug orders during a sorting process.
[0065] In step S2, a second set is obtained according to the first set and the running state of the sorting vehicle, wherein the running state of the sorting vehicle includes: a running state and an idle state.
[0066] Running state: each sorting grid on the sorting vehicle has a first number. When there is a drug order bound to the first number, the running state of the sorting vehicle automatically switches to the running state;
[0067] Idle state: When the sorter completes a sorting operation using the sorting cart, the sorter will unload the sorted medicine order from the sorting cart and manually enter the running state of the sorting cart as idle state.
[0068] In another embodiment, the driving trajectory of the sorting vehicle is a preset planned path, and the planned path is determined by the warehouse structure where the medicines are stored. When the sorter drives the sorting vehicle along the planned path to perform sorting operations, the sorter can traverse all the medicines in the warehouse.
[0069] Since all sorting vehicles move in the same direction along the planned path, the probability of conflict between the sorting vehicles during driving is reduced, thereby improving the sorting efficiency of medicines.
[0070] In a preferred embodiment of the present invention, in step S2, the total drug volume is calculated as follows:
[0071] ;
[0072] ;
[0073] in, is the length value of the nth drug in the drug order, is the width value of the nth drug in the drug order, is the height value of the nth drug in the drug order, is the volume of the nth drug in the drug order, is the total drug volume.
[0074] Specifically, in this embodiment, the method for calculating the total drug volume is simple. According to the volume of each drug included in the drug order, a drug order is screened out in which the sum of the volumes of all drugs in the drug order is not greater than the volume upper limit of the sorting grid.
[0075] The sorting grids are matched according to the total drug volume of each drug order, so that the sorting grids are large enough to place all the drugs included in the corresponding drug order, thereby improving the applicability of the drug sorting method.
[0076] In a preferred embodiment of the present invention, Figure 2 As shown, step S3 includes:
[0077] Step S31, extracting any drug order in the second set as a target order, and taking all other drug orders in the second set as similar orders;
[0078] Step S32, respectively calculating the similarity between the target order and each similar order, and sorting all similar orders in descending order of similarity to form an order sequence;
[0079] Step S33, extracting a second number of similar orders that are ranked first from the order sequence, and adding the target order and each similar order as the first number of drug orders into the third set;
[0080] The difference between the first number and the second number is not less than 1.
[0081] Specifically, in this embodiment, the third set consists of the target order and a second number of similar orders that are sorted first. For similar orders and target orders with high similarity, when sorting medicines included in both the target order and the similar orders, the sorter can pick up medicines from multiple drug orders at one time and place the same medicines in the corresponding sorting grids according to the picking details, thereby improving the sorting efficiency.
[0082] In a preferred embodiment of the present invention, in step S32, the target order is set to , similar orders are set to , then the similarity calculation formula is as follows:
[0083] ;
[0084] in, is the similarity, is the nth drug in the target order, It is the nth drug in similar orders.
[0085] Specifically, in this embodiment, the calculation formula of the similarity reflects the linear correlation between the target order and the similar order. The greater the similarity, the closer the drugs included in the similar order are to the drugs included in the target order.
[0086] When sorters sort drugs from multiple drug orders in a drug storage warehouse, due to the influence of drug types, there are problems such as complex sorting paths and a wide variety of drugs to be sorted. By extracting similar orders that are ranked first in similarity to the target order and adding them to the third set, the probability of different drugs contained in each drug order in the third set is reduced, which facilitates the sorting operation of the sorters.
[0087] In a preferred embodiment of the present invention, each sorting grid has a corresponding first number. In step S4, each drug order is bound to a first number, and the sorter puts the drug into the corresponding sorting grid according to the first number.
[0088] Specifically, in this embodiment, the first number corresponding to each sorting grid is unique. After the sorter sorts the medicines according to the picking details, he obtains the first number associated with the sorted medicines in the picking details, and then matches the sorter in the picking details with the first number set on the sorting grid, so that the picked medicines can be accurately placed in the corresponding sorting grid.
[0089] In a preferred embodiment of the present invention, the picking details include drug information, a sorting quantity and a first number corresponding to all drugs included in each drug order in the third set.
[0090] In a preferred embodiment of the present invention, step S4 also includes: the sorter places the documents corresponding to each drug into the corresponding sorting grid according to the picking details, each document is pre-placed in the corresponding storage location, and each storage location is bound to a corresponding second number. The picking details also include the second number for the sorter to pick up the documents corresponding to each drug.
[0091] Specifically, in this embodiment, during the sorting process, the sorter also needs the documents corresponding to each drug to be sorted, and the picking details contain the second number corresponding to the document. The sorter can pick up the document in the storage location corresponding to the second number based on the second number corresponding to each drug in the picking details.
[0092] In a preferred embodiment of the present invention, a drug sorting system is provided, which applies any of the above drug sorting methods, such as Figure 3 As shown, the medicine sorting system includes:
[0093] Collection module 1, used for acquiring all drug orders within a preset time period, and adding each drug order into a first set;
[0094] The statistical module 2 is connected to the collection module 1 and is used to count the total volume of the drugs contained in each drug order in the first set for each idle sorting vehicle, and add the drug orders whose total volume is not greater than the upper limit of the volume into a second set;
[0095] Extraction module 3, connected to statistical module 2, for extracting a preset number of drug orders from the second set and adding them to a third set according to the similarity between the drug orders in the second set, wherein the preset number is not greater than the total number of sorting grids of the sorting vehicle;
[0096] The binding module 4 is connected to the extraction module 3 and is used to bind each drug order in the third set to a corresponding sorting grid and generate a picking detail;
[0097] The sorter uses a sorting vehicle to sort the medicines according to the picking details, so as to place the medicines contained in each medicine order in the third set into the bound sorting grid;
[0098] The updating module 5 is connected to the statistical module 2 and the binding module 4 respectively, and is used to remove each drug order in the third set from the first set to update the first set;
[0099] The detection module 6 is connected to the collection module 1, the statistical module 2 and the update module 5 respectively, and is used to detect the remaining quantity of each drug order in the first set after the update;
[0100] When the remaining quantity indicates that the updated first set is an empty set, the detection module 6 outputs a collection signal, and the collection module 1 obtains the medicine orders for the next preset time period according to the collection signal for sorting;
[0101] When the remaining quantity indicates that the updated first set is a non-empty set, the detection module 6 outputs a statistical signal, and the statistical module 2 counts each drug order according to the statistical signal and the updated first set to obtain a second set for the next sorting.
[0102] In a preferred embodiment of the present invention, the extraction module 3 includes:
[0103] An extraction unit 31 is used to extract any drug order in the second set as a target order, and take all other drug orders in the second set as similar orders;
[0104] The calculation unit 32 is connected to the extraction unit 31 and is used to calculate the similarity between the target order and each similar order, and sort all similar orders in descending order of similarity to form an order sequence;
[0105] A sorting unit 33, connected to the calculation unit 32, is used to extract a second number of similar orders that are sorted first in the order sequence, and add the target order and each similar order as the first number of drug orders to a third set;
[0106] The difference between the first number and the second number is not less than 1.
[0107] In a preferred embodiment of the present invention, each sorting grid has a corresponding first number. In the binding module 4, each drug order is bound to a first number, and the sorter puts the drug into the corresponding sorting grid according to the first number.
[0108] Specifically, in this embodiment, with the help of the sorting vehicle, the sorter can immediately place the medicine into the sorting grid after picking it up, which reduces the need for the sorter to go back and forth from the medicine warehouse to the sorting place, thereby improving work efficiency.
[0109] In another embodiment, the drug sorting system further includes a first order prompting module, connected to the extraction module 3, and the first order prompting module includes:
[0110] A storage unit, used for storing all drug orders in the third set as historical orders;
[0111] A comparison unit, connected to the storage unit, for comparing the customer information corresponding to the current drug order with the customer information corresponding to each historical order and outputting a comparison result;
[0112] The prompt unit is connected to the comparison unit. When the comparison result indicates that the customer information corresponding to the current drug order is different from the customer information corresponding to any historical order, a first order identifier is associated with the drug order to send the first order information.
[0113] Specifically, in this embodiment, historical orders are compared with current drug orders. When the comparison result indicates that the customer is purchasing for the first time, the first order information is sent out together with the drugs.
[0114] The first-order information includes the company's public first-sale information and the drug's public first-sale information, which plays a role in promoting corporate culture, popularizing drug knowledge, and improving customers' shopping experience.
[0115] In summary, each drug order corresponds to each sorting grid. The sorter can accurately place the drugs in the pre-assigned sorting grid according to the location information, which reduces the probability that the drugs in the sorting grid do not correspond to the drug order and improves the efficiency of manual sorting.
[0116] By comparing the similarity of drug orders and adding drug orders with high similarity to the third set, on the one hand, the sorters can sort multiple drug orders at the same time during one sorting operation; on the other hand, the sorters can obtain the documents corresponding to the drugs according to the second number on the picking details, which reduces the manpower spent by the sorters on matching documents and improves the delivery efficiency of drug orders.
[0117] The above description is only a preferred embodiment of the present invention, and does not limit the implementation mode and protection scope of the present invention. For those skilled in the art, it should be aware that all solutions obtained by equivalent substitutions and obvious changes made using the contents of this specification and illustrations should be included in the protection scope of the present invention.
Claims
1. A drug sorting method, characterized in that: At least one sorting vehicle is pre-set, and a plurality of sorting grids are arranged on the sorting vehicle, and each of the sorting grids has a volume upper limit; The drug sorting method comprises: Step S1, obtaining all drug orders within a preset time period, and adding each of the drug orders to a first set; Step S2, for each of the idle sorting vehicles, respectively counting the total volume of the drugs contained in each of the drug orders in the first set, and adding the drug orders whose total volume is not greater than the volume upper limit to a second set; Step S3, extracting a first number of the drug orders from the second set and adding them to a third set according to the similarity between the drug orders in the second set, wherein the first number is not greater than the total number of the sorting grids of the sorting vehicle; Step S4, binding each drug order in the third set to the corresponding sorting grid and generating a picking detail; The sorter uses the sorting vehicle to sort the medicines according to the picking details, so as to place the medicines contained in each of the medicine orders in the third set into the bound sorting grids; Step S5, removing each of the drug orders in the third set from the first set to update the first set, and determining whether the updated first set is an empty set: If yes, return to step S1 to obtain the medicine order for the next preset time period for sorting; If not, return to step S2; The step S3 comprises: Step S31, extracting any one of the drug orders in the second set as a target order, and taking all other drug orders in the second set as similar orders; Step S32, respectively calculating the similarity between the target order and each of the similar orders, and sorting all the similar orders in descending order of the similarity to form an order sequence; Step S33, extracting a second number of similar orders that are ranked first from the order sequence, and adding the target order and each of the similar orders as the first number of drug orders to the third set; The difference between the first number and the second number is not less than 1; In step S32, the target order is set to , the similar order is set to , then the calculation formula of the similarity is as follows: ; in, is the similarity, is the nth drug in the target order, It is the nth drug in the similar order.
2. The drug sorting method according to claim 1, characterized in that: In step S2, the total drug volume is calculated as follows: ; ; in, is the length value of the nth drug in the drug order, is the width value of the nth drug in the drug order, is the height value of the nth drug in the drug order, is the volume of the nth drug in the drug order, is the total drug volume.
3. The drug sorting method according to claim 1, characterized in that: Each of the sorting grids has a corresponding first number. In step S4, each of the drug orders is bound to the first number, and the sorter puts the drug into the corresponding sorting grid according to the first number.
4. The drug sorting method according to claim 3, characterized in that: The picking details include drug information, a sorting quantity and the first number corresponding to all the drugs included in each of the drug orders in the third set.
5. The drug sorting method according to claim 1, characterized in that: The step S4 also includes: the sorter places the documents corresponding to each of the drugs into the corresponding sorting grid according to the picking details, each of the documents is pre-placed on a corresponding storage location, each of the storage locations is bound to a corresponding second number, and the picking details also include the second number for the sorter to pick up the documents corresponding to each of the drugs.
6. A medicine sorting system, characterized in that: The drug sorting method according to any one of claims 1 to 5 is applied, wherein the drug sorting system comprises: A collection module, used for acquiring all drug orders within a preset time period, and adding each of the drug orders into a first set; a statistics module, connected to the collection module, for counting the total volume of the drugs contained in each of the drug orders in the first set for each of the idle sorting vehicles, and adding the drug orders whose total volume is not greater than the upper volume limit to a second set; An extraction module, connected to the statistical module, for extracting, according to the similarity between the drug orders in the second set, a first number of drug orders selected from the second set to be added to a third set, wherein the first number is not greater than the total number of the sorting grids of the sorting vehicle; A binding module, connected to the extraction module, for binding each drug order in the third set to the corresponding sorting grid and generating a picking detail; The sorter uses the sorting vehicle to sort the medicines according to the picking details, so as to place the medicines contained in each of the medicine orders in the third set into the bound sorting grids; An updating module, connected to the statistical module and the binding module respectively, for removing each of the drug orders in the third set from the first set to update the first set; A detection module, connected to the acquisition module, the statistics module and the update module respectively, and used to detect the remaining quantity of each of the drug orders in the first set after the update; When the remaining quantity indicates that the updated first set is an empty set, the detection module outputs a collection signal, and the collection module obtains the drug orders for the next preset time period according to the collection signal for sorting; When the remaining quantity indicates that the updated first set is a non-empty set, the detection module outputs a statistical signal, and the statistical module performs statistics on each of the drug orders according to the statistical signal and the updated first set to obtain the second set for the next sorting; The extraction module comprises: an extraction unit, configured to extract any one of the drug orders in the second set as a target order, and to take all other drug orders in the second set as similar orders; a calculation unit, connected to the extraction unit, for respectively calculating the similarity between the target order and each of the similar orders, and sorting all the similar orders in descending order of the similarity to form an order sequence; a sorting unit, connected to the calculation unit, configured to extract a second number of similar orders that are sorted first according to the order sequence, and add the target order and each of the similar orders as the first number of drug orders to the third set; The difference between the first number and the second number is not less than 1.
7. The drug sorting system according to claim 6, characterized in that: Each of the sorting grids has a corresponding first number. In the binding module, each of the drug orders is bound to the first number, and the sorter puts the drug into the corresponding sorting grid according to the first number.
