Drug delivery method and device, storage medium and electronic terminal

By establishing a multi-level relationship between packaging codes and quantities, and using fixed and dynamic conversion coefficients, the problems of low efficiency and accuracy in multi-level code conversion and collection in the drug traceability system were solved, thus achieving automation of drug delivery and data consistency.

CN121812098APending Publication Date: 2026-04-07SUZHOU IRON TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-30
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

Existing drug traceability systems suffer from problems such as manual calculation errors, cumbersome operation procedures, low outbound efficiency, and data inconsistencies when converting multi-level code coefficients and collecting multi-level codes. They also cannot automatically update the association between the split code and the upper-level packaging, resulting in discrepancies between inventory records and actual inventory and distorted traceability data.

Method used

By establishing a multi-level relationship between packaging codes and quantities, and using fixed and dynamic conversion coefficients, the system automatically completes the conversion of level coefficients and cross-validation, enabling synchronous collection and comparison of multi-level packaging codes, avoiding manual intervention, and ensuring accurate outbound quantities.

Benefits of technology

It has achieved highly efficient automation of the drug outbound process, avoided human error, improved outbound efficiency, and ensured the accuracy and consistency of traceability data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121812098A_ABST
    Figure CN121812098A_ABST
Patent Text Reader

Abstract

The invention discloses a drug delivery method and device, a storage medium and an electronic terminal, and the method comprises the steps: determining a drug reference unit, a packaging code corresponding to each packaging level, and an inter-level conversion coefficient based on the information of a drug dictionary, and building the incidence relation between the packaging codes of multiple levels and the number; the warehouse-out quantity of the target medicine is obtained, and the matching relation between the warehouse-out quantity and the medicine reference unit is judged; according to the matching relation, the packaging codes of the corresponding levels are selected for collection, and the corresponding numbers of the different packaging levels are converted through the incidence relation; and comparing the converted actual number with the ex-warehouse number, and adjusting the acquisition operation until the actual number is consistent with the ex-warehouse number, thereby finishing ex-warehouse. According to the method, by establishing the incidence relation between the multi-level packaging codes and the number, level coefficient conversion can be automatically completed according to the collected multi-level packaging codes, cross validation matching with the actual warehouse-out numerical value is carried out, manual intervention is not needed, and the overall efficiency of medicine warehouse-out is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of drug management technology, specifically to a drug dispensing method, apparatus, storage medium, and electronic terminal. Background Technology

[0002] With the gradual improvement of the pharmaceutical industry regulatory system, the state has successively issued relevant regulations and documents requiring traceability of drugs throughout their entire life cycle. Pharmaceutical manufacturers are required to assign unique traceability codes to drugs at different packaging levels and build a traceability code system. There are quantity conversion coefficients between different packaging levels. However, the existing drug traceability system and outbound management process face many technical problems in the conversion of multi-level code coefficients and the collection of multi-level codes.

[0003] Regarding coefficient conversion, if it is necessary to calculate the quantity of other levels through a certain level code or to cross-verify the quantity through multiple levels of codes when issuing goods, manual calculation and verification are required. Errors in coefficient entry and conversion can easily lead to deviations in the statistical analysis of the quantity issued, which in turn can cause discrepancies between the inventory records and the actual inventory, and distortion of traceability data.

[0004] Existing outbound data collection equipment only supports single-level code collection and cannot simultaneously collect multiple levels of codes for the same batch of medicines. If the outbound medicines contain different levels of packaging, it is necessary to switch the collection mode multiple times or manually supplement the data, which makes the operation process cumbersome, reduces outbound efficiency, and is prone to missed or incorrect data collection.

[0005] Currently, the system cannot automatically update the coefficient based on the splitting operation, which makes it impossible to link the splitting code with the upper packaging level, resulting in a broken chain problem where the source of split drugs cannot be traced and their destination is difficult to track.

[0006] In terms of multi-code collection and outbound value matching, existing technologies cannot automatically complete the level coefficient conversion and cross-verify the matching with the actual outbound values ​​based on the collected multi-level packaging codes. Manual intervention is required, which not only increases labor costs, but also easily leads to inconsistencies between outbound data and traceability system data due to human error.

[0007] Therefore, how to overcome the shortcomings of existing technologies using effective methods has become an urgent technical challenge. Summary of the Invention

[0008] The purpose of this invention is to address the above-mentioned problems by providing a method, apparatus, storage medium, and electronic terminal for dispensing medicines.

[0009] The technical solution of the present invention is: a method for issuing medicines from a warehouse, comprising the following steps: S1: Based on drug dictionary information, determine the drug reference unit, the packaging code corresponding to each packaging level and the conversion coefficient between levels, and establish the correlation between multi-level packaging codes and quantity; S2: Obtain the outbound quantity of the target drug and determine the matching relationship between the outbound quantity and the drug's base unit; S3: Based on the matching relationship, select the corresponding level of packaging code for collection, and convert the corresponding quantity of different packaging levels through the association relationship; S4: Compare the converted actual quantity with the outbound quantity, and adjust the packaging code collection operation according to the comparison result until the actual quantity and the outbound quantity are consistent to complete the outbound process.

[0010] As an improvement to this embodiment of the invention, in step S1, the packaging codes corresponding to each packaging level are large packaging code, medium packaging code, small packaging code, and split code, respectively. The conversion coefficient between the levels includes a fixed coefficient and a dynamic coefficient. The conversion coefficient between any two of the large packaging code, medium packaging code, and small packaging code is a fixed coefficient, and the conversion coefficient between the small packaging code and the split code is a dynamic coefficient.

[0011] As an improvement to this embodiment of the invention, the dynamic coefficient is updated according to the splitting operation.

[0012] As an improvement to this embodiment of the invention, in step S2, the reference unit includes the smallest sales unit and the smallest packaging unit of the medicine. By determining the consistency between the outbound quantity and any reference unit, the packaging code level and conversion method are determined.

[0013] As an improvement to this embodiment of the invention, in step S3, multiple packaging codes of the same batch of target drugs are collected simultaneously, and the quantities corresponding to different packaging levels are converted through the association relationship.

[0014] As an improvement to this embodiment of the invention, in step S3, when the outbound quantity cannot be converted into an integer quantity corresponding to the base unit, the data is collected according to the packaging level and corresponding packaging code recorded at the time of entry.

[0015] As an improvement to this embodiment of the invention, in step S4, the comparison result includes whether the actual quantity of medicines is greater than, less than or equal to the quantity shipped out. When the actual quantity is greater than the quantity shipped out, a removal prompt is issued; when the actual quantity is less than the quantity shipped out, a supplement prompt is issued.

[0016] To achieve one of the above-mentioned objectives, one embodiment of the present invention provides a drug dispensing system, comprising the following modules: The association establishment module is used to determine the drug reference unit, the packaging code corresponding to each packaging level and the conversion coefficient between levels based on the drug dictionary information, and to establish the association relationship between multi-level packaging codes and quantities. The demand matching module is used to obtain the outbound quantity of the target drug and determine the matching relationship between the outbound quantity and the benchmark unit. The data collection and conversion module is used to select the corresponding level of packaging code for collection based on the matching relationship, and to convert the corresponding quantity of different packaging levels through the association relationship; The outbound comparison module is used to compare the converted actual quantity with the outbound quantity, and adjust the packaging code collection operation according to the comparison result until the actual quantity and the outbound quantity are consistent to complete the outbound process.

[0017] To achieve one of the above-mentioned objectives, one embodiment of the present invention provides a storage medium storing program instructions, which, when executed, implement the drug dispensing method as described in any of the preceding claims.

[0018] To achieve one of the above-mentioned objectives, one embodiment of the present invention provides an electronic terminal, including a processor and a memory, wherein the memory stores program instructions, and the processor executes the program instructions to implement the drug dispensing method as described in any of the preceding claims.

[0019] The drug dispensing method, apparatus, storage medium, and electronic terminal provided in this invention have the following advantages: This invention can simultaneously collect multiple levels of packaging codes for the same batch of medicines without requiring multiple switching of collection modes or manual data entry. By establishing a correlation between multi-level packaging codes and quantities, it can automatically perform level coefficient conversion based on the collected multi-level packaging codes. The dynamic coefficients for small package codes and repackage codes can be updated in real time based on repackage operations. This invention can cross-validate and match the conversion results with actual outbound values ​​without manual intervention, effectively avoiding coefficient entry errors and conversion mistakes, and significantly improving the overall efficiency of medicine outbound operations. Attached Figure Description

[0020] Figure 1 This is a flowchart illustrating the drug delivery method described in this invention; Figure 2 This is a schematic diagram of the structure of the drug delivery system described in this invention; Figure 3 This is a schematic diagram of the structure of the electronic terminal described in this invention. Detailed Implementation

[0021] The present invention will now be described in detail with reference to the specific embodiments shown in the accompanying drawings. However, these embodiments do not limit the present invention, and any structural, methodological, or functional modifications made by those skilled in the art based on these embodiments are included within the scope of protection of the present invention.

[0022] The scope of the embodiments described herein includes the entire scope of the claims and all available equivalents thereof. Throughout this document, the terms “first,” “second,” etc., are used only to distinguish one element from another without requiring or implying any actual relationship or order between the elements. Indeed, a first element can also be referred to as a second element, and vice versa. Furthermore, the terms “comprising,” “including,” or any other variations thereof are intended to cover non-exclusive inclusion, such that a structure, apparatus, or device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a structure, apparatus, or device. Without further limitations, an element defined by the phrase “comprising one…” does not exclude the presence of other identical elements in the structure, apparatus, or device that includes said element. The various embodiments described herein are presented in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably.

[0023] The terms "longitudinal," "lateral," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer" used in this document to indicate orientation or positional relationships are based on the orientation or positional relationships shown in the accompanying drawings and are used only for the convenience of describing this document and simplifying the description. They do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as limiting the invention. In the description herein, unless otherwise specified and limited, the terms "installed," "connected," and "linked" should be interpreted broadly. For example, they can refer to mechanical or electrical connections, or internal connections between two elements, or direct connections or indirect connections through an intermediate medium. Those skilled in the art can understand the specific meaning of the above terms according to the specific circumstances.

[0024] This invention provides a method for issuing medicines from a warehouse, comprising the following steps: S1: Based on drug dictionary information, determine the drug reference unit, the packaging code corresponding to each packaging level and the conversion coefficient between levels, and establish the correlation between multi-level packaging codes and quantity; Here, the drug dictionary information is a standardized database of basic drug attributes, packaging specifications, and coding rules. It includes the smallest sales unit, smallest packaging unit, specification parameters of each packaging level, preset packaging code coding rules, fixed conversion benchmark data, and basic configuration information related to splitting operations. The drug dictionary information is filed and entered by the drug manufacturer in accordance with the relevant national drug traceability regulations, and serves as the data basis for packaging code association, coefficient conversion, and outbound operations.

[0025] In this embodiment, the packaging codes corresponding to each packaging level are the large packaging code, medium packaging code, small packaging code, and split-item code, respectively. Specifically, each packaging level includes a large packaging level, a medium packaging level, a small packaging level, and a split-item level; the large packaging level corresponds to the large packaging code, the medium packaging level corresponds to the medium packaging code, the small packaging level corresponds to the small packaging code, and the split-item level corresponds to the split-item code; the conversion coefficient between the levels includes a fixed coefficient and a dynamic coefficient, wherein the conversion coefficient between any two of the large packaging code, medium packaging code, and small packaging code is a fixed coefficient, and the conversion coefficient between the small packaging code and the split-item code is a dynamic coefficient. Preferably, the dynamic coefficient is updated according to the split-item operation.

[0026] In practice, the drug dictionary information database is first accessed to extract the baseline unit of the target drug. This baseline unit includes the smallest sales unit A and the smallest packaging unit B. The smallest sales unit A is the smallest distribution unit after the repackaging process, and the smallest packaging unit B is the smallest independent packaging unit. Based on the packaging level classification rules recorded in the drug dictionary information, four packaging levels of the target drug and their corresponding packaging codes are determined. Specifically, the large packaging code corresponds to the third-level value C, the medium packaging code corresponds to the second-level value D, the small packaging code corresponds to the first-level value E, and the repackaging code corresponds to the repackaging value F. Each packaging code complies with the national drug traceability code coding requirements, and each packaging level forms a unique and non-repeatable mapping relationship with its corresponding packaging code and value.

[0027] The preset conversion rules between each packaging level are retrieved from the drug dictionary information to obtain the type and initial value of the conversion coefficient between levels. Among them, the conversion coefficients between the third-level value C and the second-level value D, between the third-level value C and the first-level value E, and between the second-level value D and the first-level value E are fixed coefficients, determined by the standard packaging specifications of the drug, and the corresponding relationship is C=xD=yE, where x is the fixed conversion coefficient between C and D, and y is the fixed conversion coefficient between C and E, consistent with the drug manufacturing process and packaging parameters; the conversion coefficient between the first-level value E and the value F for dispensing is a dynamic coefficient. The initial value of the dynamic coefficient can be preset in the drug dictionary information according to the regular dispensing requirements of the drug, and the corresponding relationship is E=zF, where z is the dynamic conversion coefficient between the first-level value E and the value F for dispensing, and the value of z can be updated in real time according to the actual dispensing operation. Understandably, based on the established packaging codes, corresponding values, fixed coefficients, dynamic coefficients, and reference unit information for each packaging level, a multi-level packaging code and quantity association relationship C=xD=yE=zF is constructed. In this association relationship, the fixed coefficients establish the quantity derivation relationship between the third-level value C, the second-level value D, and the first-level value E, enabling mutual conversion between the values ​​corresponding to any two packaging codes. The dynamic coefficients establish the real-time quantity association between the first-level value E and the break-off value F, enabling quantity conversion between the break-off value F and the upper-level packaging levels, thus forming a complete quantity association relationship.

[0028] S2: Obtain the outbound quantity of the target drug and determine the matching relationship between the outbound quantity and the drug's reference unit; specifically, by determining the consistency between the outbound quantity and any reference unit, determine the packaging code level and conversion method.

[0029] In practice, it can be integrated with a drug outbound management system or ERP system to automatically read the outbound quantity of the target drug in the outbound order. The outbound order is generated in advance by warehouse management personnel according to the sales order requirements and includes information such as drug name, specifications, and outbound quantity. If it is not integrated with the relevant management system, the management personnel can manually enter the outbound quantity of the target drug through the system's interactive interface; alternatively, they can scan the QR code or barcode on the outbound order to parse the outbound quantity of the target drug in the outbound order.

[0030] If the outbound quantity G is the same as the smallest sales unit A, then the packaging code level is the split code, and the conversion method is the dynamic coefficient conversion rule E=zF. If the outbound quantity G is the same as the smallest packaging unit B, then the packaging code level is the small packaging code, medium packaging code, or large packaging code, and the conversion method is the fixed coefficient conversion rule C=xD=yE.

[0031] S3: Based on the matching relationship, select the corresponding level of packaging code for collection, and convert the corresponding quantity of different packaging levels through the association relationship; In practice, if step S2 determines that the outbound quantity G is consistent with the minimum sales unit A and the outbound quantity G can be converted into an integer multiple of the first-level value E, then a single-level collection mode is adopted. After the user places the target medicine at the small packaging level as prompted, the corresponding small packaging code information is collected through the barcode scanning device. At the same time, based on the fixed coefficient relationship of C=xD=yE, the conversion of the target medicine quantity is completed.

[0032] If step S2 determines that the outbound quantity G is consistent with the smallest packaging unit B, then a multi-level synchronous collection mode is adopted. Users can place any number of target drugs from the same batch of large packaging level, medium packaging level, and small packaging level at the same time. The collection device scans all placed packaging code information synchronously without switching collection modes. Then, based on a fixed coefficient relationship, the quantities corresponding to the different levels of packaging codes are converted according to C=xD=yE.

[0033] If step S2 determines that G is consistent with the minimum sales unit A, but the outbound quantity G cannot be converted into an integer multiple of E, then retrieve the packaging level and corresponding packaging code information recorded when the target drug was put into storage, prompt the user to collect the packaging code recorded when it was put into storage, and after the collection is completed, the quantity conversion is completed based on the dynamic coefficient relationship of E=zF.

[0034] S4: Compare the converted actual quantity with the outbound quantity, and adjust the packaging code collection operation according to the comparison result. Specifically, the comparison result includes whether the actual quantity of medicine is greater than, less than or equal to the outbound quantity. When the actual quantity is greater than the outbound quantity, a removal prompt is issued. When the actual quantity is less than the outbound quantity, a supplement prompt is issued until the actual quantity and the outbound quantity are consistent and the outbound is completed.

[0035] In practice, if the comparison result shows that the actual quantity is equal to the outbound quantity G, then the outbound condition is determined to be met, an outbound confirmation instruction is generated, and the outbound operation is completed.

[0036] If the comparison result shows that the actual quantity is greater than the outbound quantity G, a removal prompt will be issued. The prompt message will indicate the corresponding packaging level and specific quantity that exceeds the outbound quantity G. After the user removes the excess medicine as prompted, the packaging codes of the remaining medicines will be collected again and the calculation and comparison will be performed again until the actual quantity matches the outbound quantity G. Then, the outbound condition will be determined to be met, an outbound confirmation instruction will be generated, and the outbound operation will be completed.

[0037] If the comparison result shows that the actual quantity is less than the outbound quantity G, a supplement prompt will be issued. The prompt message will indicate the specific quantity that is insufficient to be outbound quantity G and the packaging level that can be supplemented. After the user supplements the corresponding level of medicine according to the prompt, the packaging code of the newly added medicine will be collected and converted and compared again. The supplement and comparison process will be repeated until the actual quantity matches G. Then, the outbound condition will be determined to be met, an outbound confirmation instruction will be generated, and the outbound operation will be completed.

[0038] Example 1: Outbound shipment based on the smallest packaging unit Step S1: Based on drug dictionary information: The smallest sales unit of a certain cold medicine is A=1 tablet, the smallest packaging unit is B=10 tablets; the first-level value is E=10 tablets, the second-level value is D=5 small packages, the third-level value is C=2 medium packages; the initial value of the dynamic coefficient between the split-out value F and the first-level value E is z=10; establish the association relationship C=2D=10E=100F.

[0039] Step S2: Obtain the outbound quantity G=350 pieces, determine that the outbound quantity G is consistent with the smallest packaging unit B, adopt a multi-level synchronous acquisition mode, and perform conversion according to the fixed coefficient conversion rule.

[0040] Step S3: The user simultaneously places 1 large package, 3 medium packages and 5 small packages. The data collection device scans all package codes at once; it automatically converts 1C=10E=100 pieces, 3D=15E=150 pieces, 5E=50 pieces, and the actual quantity is 300 pieces.

[0041] Step S4: If 300 pieces < 350 pieces, a replenishment prompt is issued: 50 pieces need to be replenished, and the user can choose 1 medium package or 5 small packages; if the user replenishes 1 medium package, after data collection, 150 pieces will be added, and the total actual quantity = 300 + 150 = 450 pieces; if 450 pieces > 350 pieces, a prompt is issued to remove 1 small package; after removal, the actual quantity is 350 pieces, which is consistent with the outbound quantity G, and the outbound process is completed.

[0042] Example 2: Shipment by minimum sales unit Step S1: Based on drug dictionary information: the smallest sales unit of a certain antibiotic is A=1 tablet, the smallest packaging unit is B=20 tablets; the first-level value is E=20 tablets, the second-level value is D=4 small packages, and the third-level value is C=3 medium packages; establish the association relationship C=3D=12E=zF, and the dynamic coefficient z is initially 20.

[0043] Step S2: Obtain the outbound quantity G=35 pieces. Determine that the outbound quantity G is consistent with the minimum sales unit A, but cannot be converted into an integer multiple of the first-level value E. Retrieve the small package code recorded when entering the warehouse and convert it according to the dynamic coefficient conversion rule.

[0044] Step S3: The user collects one small package code as prompted. Based on the outbound demand, the dynamic coefficient z is updated to 20, and 20 pieces are split off. The remaining 15 pieces need to be split into one small package E. The z is temporarily updated to 20, and 15 pieces are split off. The splitting operation log is recorded simultaneously, and the actual quantity is 35 pieces.

[0045] Step S4: The actual quantity is 35 pieces, which is consistent with the outbound quantity G. The split code F is linked with the upper-level small package code E, medium package code D, and large package code C to form a complete traceability chain and complete the outbound process.

[0046] The present invention also provides a drug dispensing system, comprising the following modules: The association establishment module 201 is used to determine the drug reference unit, the packaging code corresponding to each packaging level and the conversion coefficient between levels based on the drug dictionary information, and to establish the association relationship between multi-level packaging codes and quantities. The demand matching module 202 is used to obtain the outbound quantity of the target drug and determine the matching relationship between the outbound quantity and the benchmark unit; The data collection and conversion module 203 is used to select the corresponding level of packaging code for collection according to the matching relationship, and to convert the corresponding quantity of different packaging levels through the association relationship; The outbound comparison module 204 is used to compare the converted actual quantity with the outbound quantity, and adjust the packaging code collection operation according to the comparison result until the actual quantity and the outbound quantity are consistent to complete the outbound process.

[0047] The present invention also provides a storage medium storing program instructions, which, when executed, implement the drug dispensing method as described in any of the preceding claims.

[0048] The present invention also provides an electronic terminal, such as Figure 3 As shown, it includes a processor and a memory, the memory storing program instructions, and the processor executing the program instructions to implement the drug dispensing method as described in any of the preceding claims.

[0049] This invention can be an apparatus, method, and / or computer program product. A computer program product may include a readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of the invention.

[0050] Storage media can be tangible devices that hold and store instructions for use by instruction execution devices. Storage media can include, but are not limited to, electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital multifunction disc (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or recessed protrusions storing instructions thereon, and any suitable combination thereof.

[0051] It should be understood that although this specification describes embodiments, not every embodiment contains only one independent technical solution. This way of describing the specification is only for clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment can also be appropriately combined to form other embodiments that can be understood by those skilled in the art.

[0052] The detailed descriptions listed above are merely specific descriptions of feasible embodiments of the present invention, and are not intended to limit the scope of protection of the present invention. All equivalent embodiments or modifications made without departing from the spirit of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for issuing medicines from a warehouse, characterized in that, Includes the following steps: S1: Based on drug dictionary information, determine the drug reference unit, the packaging code corresponding to each packaging level and the conversion coefficient between levels, and establish the correlation between multi-level packaging codes and quantity; S2: Obtain the outbound quantity of the target drug and determine the matching relationship between the outbound quantity and the drug's base unit; S3: Based on the matching relationship, select the corresponding level of packaging code for collection, and convert the corresponding quantity of different packaging levels through the association relationship; S4: Compare the converted actual quantity with the outbound quantity, and adjust the packaging code collection operation according to the comparison result until the actual quantity and the outbound quantity are consistent to complete the outbound process.

2. The method for issuing medicines according to claim 1, characterized in that, In step S1, the packaging codes corresponding to each packaging level are large packaging code, medium packaging code, small packaging code, and split code, respectively. The conversion coefficient between the levels includes a fixed coefficient and a dynamic coefficient. The conversion coefficient between any two of the large packaging code, medium packaging code, and small packaging code is a fixed coefficient, while the conversion coefficient between the small packaging code and the split code is a dynamic coefficient.

3. The method for issuing medicines according to claim 2, characterized in that, The dynamic coefficients are updated based on the splitting operation.

4. The method for issuing medicines according to claim 1, characterized in that, In step S2, the reference unit includes the smallest sales unit and the smallest packaging unit of the drug. By determining the consistency between the outbound quantity and any reference unit, the packaging code level and conversion method are determined.

5. The method for issuing medicines according to claim 1, characterized in that, In step S3, multiple packaging codes of the same batch of target drugs are collected simultaneously, and the quantities corresponding to different packaging levels are converted through the association relationship.

6. The method for issuing medicines according to claim 1, characterized in that, In step S3, when the outbound quantity cannot be converted into the integer quantity corresponding to the base unit, the data is collected according to the packaging level and corresponding packaging code recorded at the time of entry.

7. The method for issuing medicines according to claim 1, characterized in that, In step S4, the comparison result includes whether the actual quantity of medicines is greater than, less than or equal to the quantity shipped out. When the actual quantity is greater than the quantity shipped out, a removal prompt is issued; when the actual quantity is less than the quantity shipped out, a supplement prompt is issued.

8. A drug dispensing system, characterized in that, Includes the following modules: The association establishment module is used to determine the drug reference unit, the packaging code corresponding to each packaging level and the conversion coefficient between levels based on the drug dictionary information, and to establish the association relationship between multi-level packaging codes and quantities. The demand matching module is used to obtain the outbound quantity of the target drug and determine the matching relationship between the outbound quantity and the benchmark unit. The data collection and conversion module is used to select the corresponding level of packaging code for collection based on the matching relationship, and to convert the corresponding quantity of different packaging levels through the association relationship; The outbound comparison module is used to compare the converted actual quantity with the outbound quantity, and adjust the packaging code collection operation according to the comparison result until the actual quantity and the outbound quantity are consistent to complete the outbound process.

9. A storage medium storing program instructions, characterized in that, When the program instructions are executed, the drug release method as described in any one of claims 1 to 7 is implemented.

10. An electronic terminal, characterized in that, It includes a processor and a memory, the memory storing program instructions, and the processor, when executing the program instructions, implements the drug dispensing method as described in any one of claims 1 to 7.