A medicine shelving method and system cooperating with an intelligent device

CN123014891APending Publication Date: 2026-10-30ANHUI GUOYI TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611219950.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-12
Publication Date
2026-10-30

AI Technical Summary

Technical Problem

上架库位分配呈现高度的随机性和随意性,易导致主库位与子库位利用率低下,且无法针对不同批号、不同供应商的同种药品进行精准的物理隔离,造成批次管理极其困难

Benefits of technology

1.实现了传统物理货架库位资源的高效智能化分配。通过多级递进的自动上架库位判定逻辑,在无专属库位时能够深度结合同品种库存的主库位、子库位、批号及供应商信息进行动态匹配,甚至在子库位数量不足时自动构建新虚拟子库位或分区空置库位,提升了药房有限空间内仓储库位的空间利用率,避免了传统人工无序堆放带来的空间浪费与批次混乱。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123014891A_ABST
    Figure CN123014891A_ABST
Patent Text Reader

Abstract

The application discloses a medicine shelving method and system cooperating with intelligent devices, and belongs to the technical field of warehouse management of medical institutions pharmacies, which comprises the following steps: obtaining warehouse-in medicine basic information of warehouse-in medicines; executing automatic shelving warehouse position determination logic based on the information to construct a physical shelf shelving target; executing intelligent terminal medicine shortage research and judgment and task splitting logic based on a data communication interface to construct an intelligent terminal shelving target; extracting the physical shelf and intelligent terminal shelving targets to generate a shelving task and distribute the shelving task to an execution terminal; executing a physical scanning action by the execution terminal to output a stock synchronization checking result; updating system stock data based on the result and constructing an operation log. The technical means of automatically allocating warehouse positions in combination with basic information and dynamically linking equipment to split tasks can realize cooperative fine shelving of physical shelves and intelligent devices, improve the utilization rate of pharmacy warehouse positions and ensure the consistency of accounts and actual conditions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of pharmacy inventory management technology in medical institutions, and in particular to a method and system for drug shelving using collaborative intelligent devices. Background Technology

[0002] In modern medical institution pharmacy management, with the increasing variety of drugs and the continuous upgrading of clinical drug safety supervision, pharmacy warehousing faces complex and refined requirements. Warehoused drugs not only include diverse dosage forms and classification attributes, but are also subject to strict compliance constraints regarding production batch numbers, expiration dates, and supplier channels. Furthermore, modern pharmacies often deploy various automated intelligent terminals such as dispensing machines and smart shelves in parallel. How to scientifically allocate physical shelf space amidst massive and high-frequency warehousing operations, respond in real-time to clinical replenishment gaps in intelligent equipment, and ensure absolute consistency between the records and actual stock of each batch of drugs, is a core technological bottleneck that needs to be addressed in the fields of medical informatization and modern pharmacy logistics.

[0003] Traditional pharmacy warehousing relies heavily on the personal experience of staff or manual allocation documents for inventory organization and shelving. When medications arrive at the pharmacy, warehouse staff typically need to rely on memory or paper forms to check each item for its designated storage location, or simply place it in an empty spot on traditional shelves. For automated dispensing machines and other equipment deployed in the pharmacy, the traditional approach is to have the clinical front desk report a shortage, followed by a manual replenishment order for secondary handling, or intermittent manual maintenance via independent equipment management software.

[0004] This traditional method has drawbacks in actual operation. The allocation of shelving locations is highly random and arbitrary, easily leading to low utilization rates of main and sub-locations. Furthermore, it cannot accurately physically separate the same type of medicine from different batches or suppliers, making batch management extremely difficult. The shelving process is completely disconnected from inventory counting and verification, resulting in significant lag in record updates. Manual counting is not only inefficient but also prone to missing expired or mismatched batches, leading to frequent discrepancies between records and actual inventory. The lack of real-time data communication and business linkage between the warehouse management system and front-end intelligent devices prevents out-of-stock alerts from being promptly translated into inbound splitting instructions. This fails to fully leverage the advantages of intelligent devices and limits the overall intelligent collaborative efficiency of the pharmacy's logistics system. Summary of the Invention

[0005] To address the aforementioned issues, this invention provides a method and system for collaborative intelligent device-based drug shelving. It employs a combination of basic drug information to automatically determine shelving locations, and uses a data communication interface to link intelligent terminals for drug shortage assessment and task breakdown. The system also utilizes physical scanning and synchronized inventory verification at the execution terminal. This approach enables collaborative and refined shelving between pharmacy physical shelves and intelligent devices, improving storage space utilization and ensuring dynamic consistency between accounting records and physical inventory throughout the entire process.

[0006] The above objectives can be achieved through the following approach: A method for pharmacy shelving using collaborative intelligent devices includes: acquiring basic information about the pharmacies entering the warehouse; executing automatic shelving location determination logic based on the basic information to construct physical shelf shelving targets; executing intelligent terminal drug shortage assessment and task splitting logic based on a data communication interface to construct intelligent terminal shelving targets; extracting the physical shelf shelving targets and the intelligent terminal shelving targets, generating shelving tasks and distributing them to execution terminals, wherein the shelving tasks include physical shelving tasks and intelligent terminal shelving tasks; performing physical scanning actions through the execution terminals and outputting inventory synchronization verification results; updating system inventory data based on the inventory synchronization verification results and constructing an operation log.

[0007] Optionally, the basic information of the drugs entering the warehouse includes: the allocation status of the dedicated storage location; the drug classification attributes and dosage form information of the drugs entering the warehouse; the batch number information, expiration date information and supplier information of the drugs entering the warehouse; the existing inventory quantity of the drugs entering the warehouse in each physical storage location within the system; and the deployment status information of the smart terminals in the medical institution pharmacy.

[0008] Optionally, the automatic shelving location determination logic includes: if the dedicated storage location allocation status is "allocated dedicated storage location", then extract the dedicated storage location as the target for physical shelf shelving; if the dedicated storage location allocation status is "unallocated dedicated storage location", then determine whether there is existing inventory of the same type as the inbound medicine in each physical storage location; if there is existing inventory of the same type, then locate the main storage location where the existing inventory is located as the matching basis to output the sub-storage location allocation result.

[0009] Optionally, locating the main storage location where the existing inventory is located as the matching basis to output the sub-storage location allocation result includes: extracting the existing batch number and existing supplier information recorded in the sub-storage locations associated with the main storage location; comparing the inbound batch number information with the existing batch number, and the inbound supplier information with the existing supplier information; if the comparison results are consistent, then extracting the corresponding sub-storage location as the physical shelf placement target; if the comparison results are inconsistent, then extracting the vacant sub-storage location with no existing inventory quantity under the main storage location as the physical shelf placement target, and constructing a new virtual sub-storage location as the physical shelf placement target when the number of sub-storage locations is insufficient.

[0010] Optionally, the method further includes: if it is determined that there is no existing inventory of the same type of drug as the drug being stored in each physical storage location, then the partition to which the drug belongs is matched based on the drug classification attribute and the dosage form information; and the vacant storage locations under the partition are extracted as the targets for the physical shelves.

[0011] Optionally, the intelligent terminal's drug shortage assessment and task breakdown logic includes: When it is determined that the smart terminal exists in the pharmacy of the medical institution, the out-of-stock reminder status of the smart terminal is actively obtained through the data communication interface; if the out-of-stock reminder status includes the medicine to be put into storage, a prompt message is generated to perform the storage operation on the smart terminal; the total quantity of the medicine to be put into storage is extracted, and the total quantity to be put into storage is broken down into the smart terminal shelf placement target pointing to the smart terminal and the physical shelf shelf placement target pointing to the physical shelf.

[0012] Optionally, the smart terminal includes a dispensing machine deployed in the pharmacy of the medical institution, and the step of breaking down the total quantity to be put into storage into smart terminal shelf targets pointing to the smart terminal includes: obtaining the allowed catalog of the dispensing machine's entry track; and generating the smart terminal shelf target pointing to the dispensing machine when the put-in medicine matches the allowed catalog of the entry track.

[0013] Optionally, the step of extracting the physical shelf placement target and the smart terminal placement target, generating a placement task and distributing it to the execution terminal includes: encapsulating the physical shelf placement target and the basic information of the inbound medicines into the physical placement task and pushing it to the operator's handheld execution terminal; converting the smart terminal placement target into a device execution instruction and sending it to the control unit of the target smart terminal.

[0014] Optionally, the step of performing physical scanning through the execution terminal and outputting inventory synchronization verification results includes: reading the physical barcode identifier through the scanning device of the execution terminal to obtain the physical batch number and dosage form information; performing a consistency check and comparison between the physical batch number and dosage form information and the instruction parameters in the shelving task; reading the existing inventory information of the target shelving location and accumulating the number of items added to calculate the actual inventory in real time; if the consistency check and comparison results are inconsistent or the expiration date information is exceeded, a real-time alarm signal is output and an anomaly report is generated.

[0015] Based on the same inventive concept, the present invention also provides a collaborative intelligent device-based drug shelf system, the system comprising: The basic information acquisition module is used to acquire the basic information of the drugs entering the warehouse; The storage location determination module is used to execute automatic shelving location determination logic based on the basic information of the inbound medicines and construct physical shelf shelving targets; The analysis and breakdown module is used to perform drug shortage analysis and task breakdown logic for smart terminals based on the data communication interface, and to build smart terminal listing targets. The task generation and distribution module is used to extract the physical shelf placement target and the smart terminal placement target, generate placement tasks and distribute them to the execution terminal. The placement tasks include physical placement tasks and smart terminal placement tasks. The verification execution module is used to perform physical scanning actions through the execution terminal and output the inventory synchronization verification results; The system update module is used to update the system inventory data and build an operation log based on the inventory synchronization verification results.

[0016] Compared with the prior art, the present invention has the following advantages: 1. It achieves efficient and intelligent allocation of traditional physical shelving storage space resources. Through a multi-level progressive automatic shelving location determination logic, it can dynamically match the main storage location, sub-storage location, batch number, and supplier information of the same product when there is no dedicated storage location. It can even automatically create new virtual sub-storage locations or partition vacant storage locations when the number of sub-storage locations is insufficient, thereby improving the space utilization rate of storage space in the limited space of the pharmacy and avoiding the space waste and batch confusion caused by traditional manual disorderly stacking.

[0017] 2. An efficient collaborative replenishment mechanism between smart terminals and physical shelves has been established. The system proactively acquires the drug shortage status of smart devices via data communication interfaces and dynamically breaks down the total inbound quantity into collaborative tasks targeting both smart terminals and physical shelves. It even uses the inbound track's allowable catalog for precise interception and diversion. This not only improves the automation utilization rate of smart devices such as dispensing machines but also ensures efficient and continuous medication use at the clinical level, eliminating the problems of equipment idleness or shortages of critical medications.

[0018] 3. A seamless closed-loop process of shelving execution and dynamic inventory verification has been achieved. Physical scanning is directly integrated into the shelving execution process. The execution terminal performs real-time consistency verification and dynamic cumulative counting of batch numbers, dosage forms, and expiration dates of physical goods. Once an anomaly is detected, an alarm is immediately triggered and a report is generated. This allows the previously lagging inventory work to be completed synchronously at the forefront of business operations, fundamentally eliminating the safety risks of discrepancies between records and actual goods, batch mix-ups, and the storage of expired drugs. At the same time, the fully traceable operation log provides solid data support for subsequent auditing and traceability.

[0019] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention may be realized and obtained by means of the structures pointed out in the description, claims and drawings. Attached Figure Description

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

[0021] Figure 1 This is a flowchart illustrating a method for pharmacy shelving using a collaborative intelligent device, according to an embodiment of the present invention.

[0022] Figure 2 This is a schematic diagram of the structure of a collaborative intelligent device for drug shelving according to an embodiment of the present invention.

[0023] Figure 3 This is a schematic diagram of a pharmacy storage space classification and dosage form mapping matrix model of a collaborative intelligent device for drug shelving method and system according to an embodiment of the present invention.

[0024] Figure 4 This is a schematic diagram of a collaborative intelligent device for drug shelving and a system for breaking down the total number of drugs to be put into storage, according to an embodiment of the present invention.

[0025] Figure 5 This is a schematic diagram of the compatibility range model of the packaging length of the dispensing machine track in a collaborative intelligent device for drug shelving method and system according to an embodiment of the present invention.

[0026] Figure 6 This is a schematic diagram of a collaborative intelligent device for drug shelving and a system for dynamic accumulation and update of warehouse inventory, according to an embodiment of the present invention. Detailed Implementation

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

[0028] Reference Figure 1One embodiment of the present invention proposes a method for drug shelving using collaborative intelligent devices. This method uses a combination of basic drug information to automatically determine the shelving location, and uses a data communication interface to link with intelligent terminals to determine drug shortages and break down tasks. The execution terminal performs physical scanning and synchronous inventory verification. This method enables collaborative and refined shelving of pharmacy physical shelves and intelligent devices, improves storage space utilization, and ensures dynamic consistency between accounts and physical inventory throughout the entire process.

[0029] The method described in this embodiment specifically includes: Obtain basic information about the drugs entering the warehouse; Based on the basic information of the inbound medicines, execute the automatic shelving location determination logic to construct the physical shelf shelving target; Based on the data communication interface, the logic for judging drug shortage on smart terminals and splitting tasks is executed to construct the target for smart terminal deployment. Extract the physical shelf placement target and the smart terminal placement target, generate a placement task and distribute it to the execution terminal. The placement task includes physical placement task and smart terminal placement task. The execution terminal performs a physical scanning action and outputs the inventory synchronization verification result. The system inventory data is updated based on the inventory synchronization verification results, and an operation log is constructed.

[0030] Specifically, a comprehensive assessment is conducted on the basic attributes of incoming medicines, the current status of physical storage locations within the pharmacy, and the deployment of smart terminals. Basic attributes include the status of dedicated storage locations, dosage forms, batch numbers, and supplier information. Based on this, a two-dimensional shelving path decision is automatically executed: on the one hand, precise physical shelf positioning is achieved based on dedicated storage locations or existing inventory of the same product; on the other hand, real-time drug shortage assessment is conducted and the incoming task is dynamically split through data communication interfaces and linkage with smart devices. The physical shelving task and the smart terminal task are pushed collaboratively to the mobile execution terminal, and the physical information is forcibly compared with the accounting information through the barcode scanning execution process, ensuring closed-loop management of the entire process from task issuance and execution to real-time inventory updates and operation traceability. It achieves optimal allocation of storage space resources. By combining drug attributes with real-time inventory to automatically allocate shelving paths, it effectively avoids disorderly stacking, greatly improves shelf space utilization, and standardizes drug batch management. Secondly, it breaks down the information barriers between traditional manual logistics and automated dispensing systems. Through a task splitting mechanism, it ensures efficient replenishment of intelligent equipment and reduces the labor intensity and error rate of manual intervention. Finally, by integrating physical scanning verification at the end of the inbound process, it fundamentally solves the drawbacks of discrepancies between records and actual inventory and information lag in the traditional manual inbound process. This ensures the absolute accuracy and full traceability of pharmacy inventory records, thereby guaranteeing the continuity and safety of clinical drug supply in medical institutions.

[0031] Optionally, the basic information of the drugs entering the warehouse includes: Dedicated storage location allocation status; The drug classification attributes and dosage form information of the drugs entering the warehouse; The batch number, expiration date, and supplier information of the drugs entering the warehouse; The current inventory quantity of the medicines mentioned in the system at each physical storage location; Deployment status information of smart terminals in medical institution pharmacies.

[0032] Specifically, the process begins by initiating the warehousing process and obtaining basic information about the incoming medicines. Pre-set database records are retrieved to check the dedicated storage location allocation status for the medicine, determining whether a dedicated storage location has been pre-assigned. The category characteristics of the medicine are read to obtain its classification attributes and dosage form information, identifying whether it belongs to Western medicine, traditional Chinese medicine, herbal medicine, or infusion, and its dosage form (tablets, capsules, powder injections, injections, or plasters). Relevant billing or barcode data is parsed to extract the batch number, expiration date, and supplier information for the incoming medicine, obtaining the specific batch number, expiration date, and supplier identifier. Real-time inventory data is retrieved from the warehouse inventory module to extract the current inventory quantity of the medicine in each physical storage location within the system. Through the network communication interface, the deployment status information of intelligent terminals within the medical institution's pharmacy is obtained, clarifying whether dispensing machines, intelligent shelves, repackaging machines, and other intelligent terminals are deployed in the pharmacy and their current network activation status. To quantify the quantity distribution of medicines in storage between traditional physical storage locations and smart terminals, a basic quantity balance formula was constructed and is shown below: ; In the above formula, the meanings of each parameter are defined as follows: This represents the total quantity of medicines to be received into the warehouse, measured in boxes. The quantity of physical shelving tasks assigned to physical shelves is measured in boxes. The quantity of smart terminal shelving tasks allocated to smart terminals is measured in boxes. The dedicated storage location allocation status is the pre-established binding status identifier between a specific drug and a fixed shelf code in the pharmacy. Drug classification attributes are the management categories categorized by drug administration or pharmacological characteristics. Dosage form information is the specific physical form classification of the drug. Batch number information is the unique traceability code assigned to each batch of drugs by the manufacturer. Expiry date information is the legal expiry date parameter to ensure the safety and effectiveness of the drug. Supplier information is the supply chain qualification code of the drug procurement source channel. Current inventory quantity is the digital representation of the actual drug balance in each physical storage location. Deployment status information refers to the online connection and function activation parameters of external automated hardware terminals within the local area network.

[0033] For example, the outpatient pharmacy receives a batch of medicine B to be put into storage. It executes the basic information acquisition process, reading that medicine B's dedicated storage location allocation status is "no dedicated storage location preset," its medicine classification attribute is traditional Chinese medicine, its dosage form is plaster, and its batch number is C20240701. Simultaneously, it obtains the current inventory quantity of medicine B in physical storage location D05 as 20 boxes, and the deployment status information of the smart terminal in the pharmacy is obtained: a dispensing machine exists, and the machine has initiated a notification of a shortage of 10 boxes. The principle of the overall method is to fully extract the physical form, batch expiration time, spatial inventory, and real-time replenishment gap of the medicine in the pre-inbound process, thereby providing accurate data support for the precise flow of storage locations and task allocation in the subsequent storage process. Combining the aforementioned quantity balance relationship, the total quantity of medicines to be put into storage at this time... The number of boxes to be processed on the smart terminal of the dispensing machine is 30. The number of physical shelving tasks allocated to physical shelves is 10 boxes. The calculation and verification process is as follows Substituting the data, we get 30 + 10 = 20, and finally calculate the number of physical shelving tasks assigned to physical shelves. The value is 20 boxes. This calculation result is completely consistent with the number of boxes put into storage location D05 after subsequent splitting, which successfully realizes the reading of basic information of inbound drugs and forward quantity verification.

[0034] Optionally, the automatic shelving location determination logic includes: If the dedicated storage location allocation status is "allocated dedicated storage location", then extract the dedicated storage location as the target for the physical shelf placement; If the dedicated storage location allocation status is "no dedicated storage location allocated", then determine whether there is existing inventory of the same type of drug as the drug to be stored in each physical storage location. If there is existing inventory of the same product, the main storage location of the existing inventory is located as the matching basis to output the sub-storage location allocation result.

[0035] Specifically, after obtaining the basic information of the incoming medicines, the automatic shelving location determination logic is executed. The dedicated storage location allocation status of the medicine is read. If the allocation status shows an allocated dedicated storage location, this location is directly extracted as the physical shelf placement target, terminating subsequent branch searches and achieving rapid shelving. If the allocation status shows an unallocated dedicated storage location, the real-time inventory data of each physical storage location is automatically traversed to determine if there is existing inventory of the same type as the incoming medicine in each physical storage location. If existing inventory of the same type is found, the spatial coordinates of the medicine are further extracted, and the main storage location where the existing inventory is located is located as the matching basis to output the sub-storage location allocation result. The automatic shelving location determination logic is a conditional branch algorithm that automatically calculates and filters physical storage locations based on preset rules. The dedicated storage location allocation status is a pre-established binding relationship identifier between a specific medicine and a fixed shelf in the pharmacy. The physical shelf placement target is the finally determined spatial coordinate parameters used to guide personnel in placing the medicine. "Same type" refers to a set of medicine categories with the same generic name and specifications. The main storage location is a large hierarchical spatial unit comprising multiple sub-storage locations within the physical structure of the shelving. The sub-storage location allocation results are refined positioning data derived from further subdivision of the main hierarchical coordinates.

[0036] For example, the outpatient pharmacy receives a batch of traditional Chinese medicine plasters (patch B) to be put into storage. The storage location determination module is executed, and the system reads that the dedicated storage location allocation status for patch B is "no preset dedicated storage location." Subsequently, the product traversal program is automatically started, searching the inventory records in each physical storage location online to determine if there is existing inventory of the same product in each physical storage location. It is detected that physical storage location D05 already contains 20 boxes of the same product plaster. Based on this determination, it is determined that there is existing inventory of the same product. The main storage location of this existing inventory, storage location D05, is immediately located as the matching basis to output the sub-storage location allocation result. This successfully demonstrates the complete logic for physical shelf target location by finding existing inventory of the same product when there is no preset fixed storage location.

[0037] Optionally, the step of locating the main storage location where the existing inventory is located as the matching basis to output the sub-storage location allocation result includes: Extract the existing batch numbers and existing supplier information recorded in the sub-warehouse locations associated with the main warehouse location; Compare the incoming batch number information with the existing batch number, and the incoming supplier information with the existing supplier information; If the comparison results are all consistent, the corresponding sub-location is extracted as the target for the physical shelf placement; If the comparison results are inconsistent, then the available sub-stores with no existing inventory under the main store location are extracted as the physical shelf placement targets, and when the number of sub-stores is insufficient, new virtual sub-stores are constructed as the physical shelf placement targets.

[0038] Specifically, in the process of locating the main storage location where existing inventory is located as the matching basis to output the sub-storage location allocation results, data retrieval and comparison operations are performed. Existing batch numbers and existing supplier information recorded in the sub-storage locations associated with the main storage location are extracted. The batch number information of the medicine to be received is compared with the existing batch numbers, and the receiving supplier information is compared with the existing supplier information. If the comparison results are consistent, the corresponding sub-storage location is directly extracted as the physical shelf placement target. If the comparison results are inconsistent, an empty sub-storage location with no existing inventory under the main storage location is extracted as the physical shelf placement target. During the extraction process, if it is determined that the number of sub-storage locations is insufficient, a new virtual sub-storage location is constructed online, and the newly created virtual sub-storage location is re-evaluated and obtained. Finally, this virtual sub-storage location is used as the physical shelf placement target to ensure that the same medicine from different batches or different suppliers is spatially separated with fine precision. The existing batch number is the production traceability code associated with the medicine already stored in the warehousing database. The existing supplier information is the procurement channel identifier corresponding to the medicine already in stock in the system. The receiving batch number information refers to the production batch code of the medicines to be received. The receiving supplier information refers to the channel code of the source of the medicines for this procurement. Available sub-locations are subdivided storage units within the corresponding main storage space that currently have no inventory records. New virtual sub-locations are logical storage nodes automatically added by the system in the software account set when physical storage space is insufficient. Physical shelf placement targets are spatial location parameters that guide on-site personnel in placing medicines.

[0039] For example, taking a traditional Chinese medicine plaster (B) entering the outpatient pharmacy as an example, this medicine B does not have a pre-set dedicated storage location. Its batch number is C20240701, and the quantity to be received is 20 boxes. According to the previous matching logic for the same product, it is located in the main storage location D05 where there is already inventory. At this time, a sub-storage location allocation decision is executed, retrieving the existing batch number and existing supplier information recorded in the sub-storage locations associated with the main storage location D05. After data reading, it is found that there are already 20 boxes in inventory in the sub-storage locations associated with the main storage location D05, and the recorded existing batch number is A20240101. The batch number information C20240701 is compared with the existing batch number A20240101, and it is determined that the comparison result is inconsistent. Subsequently, an empty sub-storage location with no existing inventory is searched under the main storage location D05. If the number of available physical sub-storage locations planned under the main storage location D05 is insufficient at this time, the logical expansion program is immediately started to construct a new virtual sub-storage location online. The newly created virtual sub-storage location is then obtained through re-judgment and finally allocated as the physical shelf placement target to the 20 boxes of medicine B to be put into storage. This successfully runs the complete process of strictly isolating and storing medicines by adding virtual storage locations online when there is a batch number conflict and physical storage locations are exhausted.

[0040] Optionally, the method further includes: If it is determined that there is no existing inventory of the same type of drug as the drug in each physical storage location, then the partition to which the drug belongs is matched based on the drug classification attribute and the dosage form information; Extract the vacant storage locations under the partition as the targets for physical shelving.

[0041] Specifically, when executing the automatic shelving location determination logic, if the underlying database search determines that there is no existing inventory of the same type of drug as the incoming drug in any physical storage location, a partitioned vacant storage location addressing mechanism based on basic attributes is initiated. The drug classification attributes and dosage form information of the drug obtained from the basic information acquisition module are extracted. These attribute features are used as joint search conditions and logically compared in a pre-set pharmacy storage space mapping table. The partition to which the drug belongs is matched based on the drug classification attributes and dosage form information. After determining the target physical partition, the inventory status of all shelf storage units within the matched partition is traversed, and vacant storage locations under that partition are located and extracted as physical shelf shelving targets, thereby ensuring that newly introduced drug varieties or drugs with no inventory can be reasonably classified and stored. Here, "same type" refers to a set of drug categories with the same generic name and specifications. Drug classification attributes are macro-management labels based on pharmacological characteristics or pharmaceutical regulatory requirements. Dosage form information is the classification of the physical form of the drug. A partition is an independent storage space pre-defined at the physical level within the pharmacy based on drug category or storage environment requirements. An vacant storage location is a standard shelf storage unit within the target zone that currently has no bound drug inventory records and whose physical space is fully available. A physical shelf placement target is the spatial location instruction ultimately determined by the system to guide warehouse operators in storing drugs. For example... Figure 3 The diagram shown is a pharmacy storage space classification and dosage form mapping matrix model in an embodiment of the present invention. This diagram, in the form of a two-dimensional decision grid matrix, illustrates how the system, when faced with the entry of entirely new drugs without any existing inventory, categorizes and partitions the drugs by cross-combining their basic attributes.

[0042] For example, suppose a clinic pharmacy purchases a brand-new type of traditional Chinese medicine plaster for the first time and performs an inventory entry operation. The warehouse database is searched to determine if there is any existing inventory of the same type of medicine in any physical storage location. The medicine's classification attribute is then read as traditional Chinese medicine, and its dosage form is plaster. Based on the aforementioned classification and dosage form data, a background spatial mapping search is performed, successfully matching the pre-defined traditional Chinese medicine plaster zone within the pharmacy. After determining the target zone, the corresponding shelf inventory status is scanned, revealing multiple unused spaces within the shelf area. An empty storage location E12 under this zone is randomly selected and directly used as the target physical shelf for shelving. This verification example successfully reproduces the complete execution process of intelligently matching and allocating new physical storage locations for this medicine when the pharmacy has no historical inventory of it.

[0043] Optionally, the intelligent terminal's drug shortage assessment and task breakdown logic includes: When it is determined that the smart terminal exists in the pharmacy of a medical institution, the out-of-medicine reminder status of the smart terminal is actively obtained through the data communication interface; If the out-of-stock alert status includes the in-stock medicine, a prompt message is generated to perform an in-stock operation on the smart terminal; Extract the total quantity of the medicines to be put into storage, and break down the total quantity into the smart terminal shelf placement target pointing to the smart terminal and the physical shelf placement target pointing to the physical shelf.

[0044] Specifically, while determining the storage location, the system automatically triggers and executes the intelligent terminal drug shortage assessment and task splitting logic. When it is determined that an intelligent terminal is deployed in the medical institution's pharmacy, the underlying service program will proactively send a status polling request to the hardware device through the data communication interface to obtain the current drug shortage alert status of the intelligent terminal. Parsing the returned data packet, if the drug shortage alert status indicates that the drug being processed for inbound storage includes currently being processed, a prompt message is immediately generated on the interactive interface to directly execute the inbound operation on the intelligent terminal. Based on this, the total quantity of drugs to be inbound for this batch is extracted, and according to the actual replenishment gap of the intelligent terminal, the total quantity to be inbound is precisely broken down into intelligent terminal shelving targets pointing to the intelligent terminal and physical shelf shelving targets pointing to regular shelves. The intelligent terminal drug shortage assessment and task splitting logic is an algorithm program of the system that dynamically distributes inbound storage paths based on the real-time load gap of external automated equipment. The intelligent terminal is an electromechanical integrated device, such as a dispensing machine, deployed in the pharmacy with automatic drug sorting or storage management capabilities. The data communication interface is a standardized protocol channel, such as an application programming interface, for bidirectional signaling transmission between the system's business middleware and the underlying hardware. The "out-of-stock alert" status is the replenishment request data reported to the main system after the smart terminal triggers a low-inventory warning line. The total quantity to be received is the physical summary quantity of a single batch of goods received, determined after physical counting. The smart terminal's shelving objective is the instruction parameters guiding operators to deliver physical goods to automated equipment for replenishment. The physical shelf shelving objective is the endpoint coordinate instruction guiding remaining medicines to be stored on traditional static shelves. Figure 4 The diagram shown is a task breakdown model for the total quantity to be received in an embodiment of the present invention. This diagram visually illustrates the refined flow of the total quantity to be received after triggering a drug shortage interception, presented in a scaled format. Based on the real-time drug shortage status transmitted from the dispensing machine, the total quantity is precisely broken down and distributed into replenishment target quantities directed to smart terminals and shelving target quantities directed to conventional physical shelves, graphically demonstrating the conservation and distribution logic of the receiving quantity in the initial stage.

[0045] For example, the outpatient pharmacy receives an inbound task for drug B, and the system obtains that the total quantity of this batch of drugs to be inbound is 30 boxes. The system determines that there is a dispensing machine in the pharmacy acting as a smart terminal, and actively obtains the dispensing machine's out-of-stock alert status through the data communication interface. The system analyzes and finds that the dispensing machine has initiated a replenishment request for drug B, specifically a shortage of 10 boxes. The system then generates a prompt message on the interface to directly inbound the drugs to the dispensing machine and starts the task splitting engine. The system directly converts the shortage of 10 boxes from the dispensing machine into the number of boxes to be allocated for the smart terminal shelving task. Based on the formula, the specific derivation and verification process of the number of boxes to be allocated for the physical shelf shelving task is shown below. The calculation and conversion process is as follows: Substituting the actual quantity into the equation yields... The system ultimately calculates the number of tasks to be assigned to the physical shelves. The value is 20 boxes. Based on this, a target of 10 boxes for smart terminal shelving and a target of 20 boxes for physical shelf shelving were split. The verification case of actively intercepting physical items and accurately splitting the quantity based on the real-time drug shortage status of the dispensing machine was successfully run. This changed the redundant process of the traditional model where all medicines were first put into the large warehouse and then manually transported out of the warehouse to the dispensing machine.

[0046] Optionally, the smart terminal includes a dispensing machine deployed in the pharmacy of the medical institution, and the step of breaking down the total quantity to be received into smart terminal shelf targets includes: Obtain the permitted entry track directory for the dispensing machine; When the incoming medicine matches the allowed catalog of the dispensing machine track, a target for the smart terminal to be put on the shelf is generated, pointing to the dispensing machine.

[0047] Specifically, when executing the intelligent terminal drug shortage assessment and task splitting logic, the intelligent terminals are clearly defined to include dispensing machines deployed in medical institution pharmacies. In the process of breaking down the total quantity of drugs to be received into intelligent terminal shelving targets, a data retrieval command is sent to the dispensing machine's control system via the underlying communication interface to obtain the permitted entry track catalog for that dispensing machine. Basic information of the currently received drugs is extracted and compared against the database entries in the permitted entry track catalog. When the system determines that a drug matches the permitted entry track catalog, it confirms at the software level that the drug's packaging specifications and physical properties fully comply with the access requirements of the dispensing machine's internal mechanical transmission track. Only then is task splitting permitted, and an intelligent terminal shelving target for that dispensing machine is officially generated. This effectively avoids the risk of equipment jams and downtime caused by forcibly inserting drugs with incorrect sizes or unsuitable packaging. The dispensing machine is an electromechanical integrated device deployed in medical institution pharmacies that achieves automatic drug storage and dispensing through track transmission and mechanical structures. The feed track allows access to a pre-configured electronic directory of standard drug codes that the dispensing machine system can recognize and recognize. A "hit" is a status determination result confirming the presence of the drug in the electronic directory database after logical retrieval of the drug's basic information. The smart terminal's "target" is a system-generated and issued instruction instructing operators to place physical items into the automated equipment's feed inlet to execute a replenishment operation. For example... Figure 5 The diagram shown is a model of the packaging length adaptation range of the dispensing machine's feed track in an embodiment of the present invention. This diagram illustrates the physical basis for the system's software-level interception of conflicting packaging. The boundary scale line represents the maximum allowable packaging length limit of the dispensing machine track, and the coverage scale line represents the actual packaging length of the medicine to be received. Its actual length is within the red line range of the equipment's hardware safety access, representing a quantitative model for preventing mechanical medication jamming and hardware downtime risks.

[0048] For example, the outpatient pharmacy receives an inbound task for drug B and discovers a replenishment shortage at the dispensing machine. Before formally issuing the splitting task, the underlying program obtains the permitted entry track directory for the dispensing machine through an interface. It extracts the code data of drug B and performs a search within this directory. A comparison confirms that the code for drug B is explicitly recorded in this directory, thus determining that the inbound drug matches the permitted entry track directory. After confirming hardware access compliance, it then formally generates a smart terminal shelving target for the dispensing machine based on the actual drug shortage quantity. This guides the warehouse manager to add the corresponding quantity of drug B to the dispensing machine. This successfully runs the verification example of inbound target generation based on device access whitelist verification, ensuring the absolute executability of the task splitting and issuing to the smart terminal on the physical hardware.

[0049] Optionally, the step of extracting the physical shelf placement target and the smart terminal placement target, generating a placement task, and distributing it to the execution terminal includes: The physical shelf placement target and the basic information of the inbound medicines are packaged into the physical shelf placement task and pushed to the operator's handheld execution terminal; The smart terminal is converted into a device execution instruction and sent to the control unit of the target smart terminal.

[0050] Specifically, after extracting the physical shelf placement targets and smart terminal placement targets, the process enters the task generation and distribution phase to generate placement tasks and distribute them to the execution terminals. A data encapsulation operation is performed, combining the physical shelf placement targets with the previously acquired basic information on the inbound medicines to form a physical placement task. After encapsulation, this physical placement task is directly pushed to the mobile application panel of the handheld execution terminal equipped by the on-site operator via a wireless network. Simultaneously, for the portion flowing to automated equipment, the extracted smart terminal placement targets are converted into equipment execution instructions recognizable by the underlying machine. These instructions are directly sent to the control unit inside the target smart terminal via a preset interface communication protocol, thus achieving parallel scheduling of manual handling guidance and equipment response. The physical shelf placement target is the specific coordinates or serial number data assigned by the system for placing the medicines into static conventional shelves. The smart terminal placement target is the replenishment parameter result assigned by the system for placing the medicines into the automated equipment. The placement task is a comprehensive data instruction carrier that drives pharmacy personnel to perform physical handling or triggers actions on the underlying hardware equipment. The execution terminal is a hardware interactive device that receives task information and provides feedback on the on-site execution status. The physical shelving task is a data package containing specific storage locations and drug details, designed for manual reading and guidance of manual handling and storage. The handheld execution terminal is a portable tool, such as a personal digital assistant, carried by pharmacy staff and equipped with wireless communication and data display capabilities. Device execution commands are standard interface control messages generated by the system to drive the operation of external automated hardware. The control unit is the core microprocessor within the intelligent terminal responsible for receiving commands from the business system and controlling the movement of mechanical components.

[0051] For example, the outpatient pharmacy's back-end service engine transforms the inbound target of drug B into a substantive action dispatch instruction. After completing the pre-processing, it extracts the physical shelf placement target (location D05) and the smart terminal placement target (dispensing machine). The target parameters of location D05 and the basic information of drug B are combined and encapsulated into a physical shelf placement task numbered T1. This task is then pushed to the handheld execution terminal held by the pharmacy warehouse manager via a wireless network, displaying an operation guide on the handheld device indicating that 20 boxes of drug B need to be moved to location D05. Simultaneously, the back-end converts the dispensing machine's replenishment target into a device execution instruction, namely a dispensing machine placement task numbered T2. The T2 task instruction is directly sent to the dispensing machine's control unit via a communication interface. Upon receiving the task, the dispensing machine prepares to receive 10 boxes of drug B. Pharmacy warehouse staff used handheld execution terminals to simultaneously obtain handling tasks for ordinary shelves and medication dispensing tasks for dispensing machines, achieving synchronous and accurate distribution of software and hardware tasks and collaborative operation flow. This successfully tested a task distribution verification case that meets actual business needs and is fully reproducible.

[0052] Optionally, the step of performing a physical scanning action through the execution terminal and outputting the inventory synchronization verification result includes: The scanning device of the execution terminal reads the physical barcode to obtain the physical batch number and dosage form information; Perform a consistency check and comparison between the physical batch number and the physical dosage form information and the instruction parameters in the shelf placement task; Read the existing inventory information of the target storage location and accumulate the number of items added to calculate the actual inventory in real time; If the consistency verification comparison result is inconsistent or the validity period information is exceeded, a real-time alarm signal will be output and an anomaly report will be generated.

[0053] Specifically, during the process of performing physical scanning via the execution terminal to output inventory synchronization verification results, after arriving at the target physical location, the operator uses a handheld execution terminal's scanning device to read the physical barcode on the outer packaging of the medicine, thereby accurately obtaining the physical batch number and dosage form information of the medicine to be put into storage. The background comparison engine will be activated to perform a consistency check and comparison between the physical batch number and dosage form information collected on-site and the instruction parameters in the previously issued shelving task. If the comparison is confirmed to be consistent and the verification is passed, the system synchronously requests to read the existing inventory information of the target storage location and accumulates the quantity added to the warehouse in the internal logic to calculate the actual inventory in real time. To ensure absolute synchronization between the accounting and physical quantities, the system uses an inventory accumulation update formula for calculation, the formula of which is shown below: ; In the above formula, the meanings of each parameter are defined as follows. The updated actual inventory is measured in boxes. The existing inventory information on the books for the target storage location is displayed, and its unit is boxes. The quantity of goods received is the actual quantity confirmed by the barcode scan, measured in boxes. If the consistency check result is inconsistent, or if the comparison date reveals expired information, the underlying blocking program will forcibly intercept the current shelving operation, directly outputting a real-time alarm signal to the execution terminal and generating an anomaly report recording the details of the conflict. The execution terminal is a portable hardware tool that receives task instructions and has data acquisition and network feedback capabilities. The physical barcode is a regular graphic label or electronic tag printed on the surface of the drug's outer packaging or attached to the outer shell, used to carry production traceability attributes. The physical batch number is the actual production traceability character set of the single batch of drugs, parsed through on-site scanning. The physical dosage form information is the classification of the drug's physical morphological characteristics collected during on-site scanning. The instruction parameters are the system's expected baseline values, pre-issued in the shelving task data package to guide the current verification. The consistency check comparison is a verification process that compares the characteristic values ​​of the on-site physical sampling with the system's preset theoretical expected values ​​using an equation. The existing inventory information is the historical inventory value accumulated within the system before this warehousing operation occurred at the target storage location. The actual inventory is the latest absolute inventory result obtained by adding the original book balance to the actual quantity received this time. Real-time alarm signals are warnings pushed to the user interface when the system detects abnormal risks. Anomaly reports are error logs that record in detail the reasons for rule conflicts for subsequent review and tracing.

[0054] For example, a pharmacy warehouse clerk arrives at physical storage location D05 with an execution terminal and uses the device's laser scanner to read the physical barcode of the traditional Chinese medicine plaster (medicinal plaster) to be shelved. The device instantly extracts the batch number C20240701 and the dosage form information (plaster) of the medicine, comparing them with the command parameters in the locally cached shelving task. After logic gate checks, it is found that the physical information on-site is completely consistent with the system command requirements, and there is no expired information, so no real-time alarm signal is triggered. The system then retrieves the current inventory information for the target storage location D05. The actual quantity measured was 20 boxes. The actual quantity received into this warehouse location was also extracted. The inventory is 20 boxes. Based on the aforementioned inventory accumulation and update formula, the system performs arithmetic calculations to obtain the latest actual inventory. The derivation and verification process involves 20 + 20 = 40. The final calculated actual inventory is then determined. The value was 40 boxes. After the system verified that the storage location matched the inventory, it successfully updated the inventory of storage location D05 to 40 boxes, thus completing a reproducible verification example of physical scan comparison and dynamic account-to-physical reconciliation with pre-emptive interception defense attributes. Figure 6The diagram illustrates the dynamic accumulation and update model of warehouse inventory in an embodiment of the present invention. The diagram uses a comparative bar chart structure to quantitatively display the inventory evolution status of the target warehouse location before and after the operator scans and confirms the inventory. The legend clearly shows the closed-loop verification process of dynamically updating the actual inventory to the latest actual inventory by arithmetically adding the original book inventory of the target warehouse location to the quantity actually moved into the warehouse.

[0055] Reference Figure 2 Based on the same inventive concept, the present invention also provides a collaborative intelligent device-based drug shelf system, the system comprising: The basic information acquisition module is used to acquire the basic information of the drugs entering the warehouse; The storage location determination module is used to execute automatic shelving location determination logic based on the basic information of the inbound medicines and construct physical shelf shelving targets; The analysis and breakdown module is used to perform drug shortage analysis and task breakdown logic for smart terminals based on the data communication interface, and to build smart terminal listing targets. The task generation and distribution module is used to extract the physical shelf placement target and the smart terminal placement target, generate placement tasks and distribute them to the execution terminal. The placement tasks include physical placement tasks and smart terminal placement tasks. The verification execution module is used to perform physical scanning actions through the execution terminal and output the inventory synchronization verification results; The system update module is used to update the system inventory data and build an operation log based on the inventory synchronization verification results.

[0056] It should be noted that the electrical connections between the various units described above do not necessarily represent direct or indirect connections. Any indirect connection method can be applied to the embodiments of the present invention as long as it achieves the purpose of the present invention. The above descriptions are merely exemplary embodiments of the present invention and should not be construed as limiting the scope of the present invention.

[0057] All equivalent changes and modifications made in accordance with the teachings of this invention are still within the scope of this invention. Those skilled in the art will readily conceive of other embodiments of this invention upon considering the specification and the disclosure of practical truth. This application is intended to cover any variations, uses, or adaptations of this invention that follow the general principles of this invention and include common knowledge or conventional techniques in the art not described herein.

Claims

1. A method for pharmacy shelving using a collaborative intelligent device, characterized in that, include: Obtain basic information about the drugs entering the warehouse; Based on the basic information of the inbound medicines, execute the automatic shelving location determination logic to construct the physical shelf shelving target; Based on the data communication interface, the logic for judging drug shortage on smart terminals and splitting tasks is executed to construct the target for smart terminal deployment. Extract the physical shelf placement target and the smart terminal placement target, generate a placement task and distribute it to the execution terminal. The placement task includes physical placement task and smart terminal placement task. The execution terminal performs a physical scanning action and outputs the inventory synchronization verification result. The system inventory data is updated based on the inventory synchronization verification results, and an operation log is constructed.

2. The method for pharmacy shelving using a collaborative intelligent device according to claim 1, characterized in that, The basic information of the drugs entering the warehouse includes: Dedicated storage location allocation status; The drug classification attributes and dosage form information of the drugs entering the warehouse; The batch number, expiration date, and supplier information of the drugs entering the warehouse; The current inventory quantity of the medicines mentioned in the system at each physical storage location; Deployment status information of smart terminals in medical institution pharmacies.

3. The method for pharmacy shelving using a collaborative intelligent device according to claim 2, characterized in that, The automatic shelving location determination logic includes: If the dedicated storage location allocation status is "allocated dedicated storage location", then extract the dedicated storage location as the target for the physical shelf placement; If the dedicated storage location allocation status is "no dedicated storage location allocated", then determine whether there is existing inventory of the same type of drug as the drug to be stored in each physical storage location. If there is existing inventory of the same product, the main storage location of the existing inventory is located as the matching basis to output the sub-storage location allocation result.

4. The method for pharmacy shelving using a collaborative intelligent device according to claim 3, characterized in that, The step of locating the main storage location where the existing inventory is located as the matching basis to output the sub-storage location allocation result includes: Extract the existing batch numbers and existing supplier information recorded in the sub-warehouse locations associated with the main warehouse location; Compare the incoming batch number information with the existing batch number, and the incoming supplier information with the existing supplier information; If the comparison results are all consistent, the corresponding sub-location is extracted as the target for the physical shelf placement; If the comparison results are inconsistent, then the available sub-stores with no existing inventory under the main store location are extracted as the physical shelf placement targets, and when the number of sub-stores is insufficient, new virtual sub-stores are constructed as the physical shelf placement targets.

5. The method for pharmacy shelving using a collaborative intelligent device according to claim 3, characterized in that, The method further includes: If it is determined that there is no existing inventory of the same type of drug as the drug in each physical storage location, then the partition to which the drug belongs is matched based on the drug classification attribute and the dosage form information; Extract the vacant storage locations under the partition as the targets for physical shelving.

6. The method for pharmacy shelving using a collaborative intelligent device according to claim 1, characterized in that, The intelligent terminal drug shortage assessment and task breakdown logic includes: When it is determined that the smart terminal exists in the pharmacy of a medical institution, the out-of-medicine reminder status of the smart terminal is actively obtained through the data communication interface; If the out-of-stock alert status includes the in-stock medicine, a prompt message is generated to perform an in-stock operation on the smart terminal; Extract the total quantity of the medicines to be put into storage, and break down the total quantity into the smart terminal shelf placement target pointing to the smart terminal and the physical shelf placement target pointing to the physical shelf.

7. A method for pharmacy shelving using a collaborative intelligent device according to claim 6, characterized in that, The smart terminal includes a dispensing machine deployed in the pharmacy of the medical institution, and the step of breaking down the total quantity to be received into smart terminal shelf targets includes: Obtain the permitted entry track directory for the dispensing machine; When the incoming medicine matches the allowed catalog of the dispensing machine track, a target for the smart terminal to be put on the shelf is generated, pointing to the dispensing machine.

8. A method for pharmacy shelving using a collaborative intelligent device according to claim 1, characterized in that, The step of extracting the physical shelf placement target and the smart terminal placement target, generating a placement task, and distributing it to the execution terminal includes: The physical shelf placement target and the basic information of the inbound medicines are packaged into the physical shelf placement task and pushed to the operator's handheld execution terminal; The target smart terminal is converted into a device execution instruction and sent to the control unit of the target smart terminal.

9. A method for pharmacy shelving using a collaborative intelligent device according to claim 1, characterized in that, The step of performing physical scanning through the execution terminal and outputting inventory synchronization verification results includes: The scanning device of the execution terminal reads the physical barcode to obtain the physical batch number and dosage form information; Perform a consistency check and comparison between the physical batch number and the physical dosage form information and the instruction parameters in the shelf placement task; Read the existing inventory information of the target storage location and accumulate the number of items added to calculate the actual inventory in real time; If the consistency verification comparison result is inconsistent or the validity period information is exceeded, a real-time alarm signal will be output and an anomaly report will be generated.

10. A collaborative intelligent device drug shelving system, applied to the collaborative intelligent device drug shelving method as described in any one of claims 9, characterized in that, The system includes: The basic information acquisition module is used to acquire the basic information of the drugs entering the warehouse; The storage location determination module is used to execute automatic shelving location determination logic based on the basic information of the inbound medicines and construct physical shelf shelving targets; The analysis and breakdown module is used to perform drug shortage analysis and task breakdown logic for smart terminals based on the data communication interface, and to build smart terminal listing targets. The task generation and distribution module is used to extract the physical shelf placement target and the smart terminal placement target, generate placement tasks and distribute them to the execution terminal. The placement tasks include physical placement tasks and smart terminal placement tasks. The verification execution module is used to perform physical scanning actions through the execution terminal and output the inventory synchronization verification results; The system update module is used to update the system inventory data and build an operation log based on the inventory synchronization verification results.