Scheduling method of three-dimensional cache library of traditional Chinese medicine decoction system
By installing identification tags and dividing storage units and expedited channels in the three-dimensional cache of the traditional Chinese medicine decoction system, and by adopting load balancing and dynamic priority strategies, the problems of low scheduling efficiency and weak emergency response in the existing technology are solved, and efficient centralized storage and rapid retrieval of containers are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-29
- Publication Date
- 2026-04-21
AI Technical Summary
Existing three-dimensional caching solutions cannot meet the large-scale and complex production needs of the traditional Chinese medicine decoction industry, resulting in low scheduling efficiency, insufficient adaptability to complex scenarios, and weak emergency response capabilities.
By installing identification tags on containers, dividing storage units and expedited channels, and adopting load balancing and dynamic priority strategies, dynamic allocation of containers and outbound priority control are achieved, ensuring centralized storage and rapid response of containers in the same target cooking area.
It improves the efficiency of cache library flow, avoids outbound blockage, ensures the rapid delivery of urgent prescriptions, meets the needs of urgent tasks, and enhances the system's emergency response capability.
Smart Images

Figure CN121905448A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of automated traditional Chinese medicine decoction system technology, and specifically to a scheduling method for a three-dimensional cache library of a traditional Chinese medicine decoction system. Background Technology
[0002] Existing three-dimensional caching library solutions suffer from problems such as rigid architecture design, simple scheduling logic, and lack of perception verification, which cannot meet the large-scale and complex production needs of the traditional Chinese medicine decoction industry. The core defects are as follows:
[0003] Low scheduling efficiency: Inter-layer transfer equipment only supports single-container operation and cannot achieve parallel inbound and outbound operations; the scheduling strategy is static and fixed, and does not consider path optimization (such as prioritizing layers closer to the entrance and exit) and load balancing, resulting in long container movement distances and easy overload of specific units, making it difficult to meet the needs of large-scale production.
[0004] Insufficient adaptation to complex scenarios: The lack of a prescription splitting management mechanism means that multiple splitting containers for the same prescription may be stored separately, and some may be prematurely dispatched, leading to idle resources in the decoction unit; the failure to centrally store and accurately match containers according to their target decoction areas can easily cause blockages during dispatch and make it impossible to accurately connect to the corresponding decoction unit.
[0005] Weak emergency response: There is no express prescription channel. The containers for express prescriptions must go through the storage and queuing process along with the containers for regular prescriptions, and cannot be delivered to the decoction area quickly, making it difficult to meet the time requirements of express prescriptions. Summary of the Invention
[0006] The purpose of this invention is to provide a scheduling method for a three-dimensional cache library in a traditional Chinese medicine decoction system, so as to solve the technical problems of low cache library circulation efficiency, insufficient adaptation to complex scenarios, and weak emergency response capability caused by static scheduling strategies and lack of emergency channels in the prior art.
[0007] To solve the above-mentioned technical problems, the present invention specifically provides the following technical solution:
[0008] A scheduling method for a three-dimensional cache library in a traditional Chinese medicine decoction system includes the following steps:
[0009] Integrated container identity identifier: An identity identifier is installed on each container, and the container identity information is associated with the identity identifier. The container identity information includes container type, prescription-bound hospital, prescription ID and prescription attributes, as well as stored drug information, and a mapping relationship between prescription-bound hospital and target decoction area is constructed.
[0010] Storage Unit Division: Each three-dimensional cache library is divided into storage units, express channels, or empty container layers. Based on the target cooking area corresponding to each container, the corresponding storage unit is dynamically allocated to the container, so that containers in the same target cooking area are stored together.
[0011] Inbound: Identify the container's identity information at the entry point of each three-dimensional cache library, and transfer the container to each storage unit based on the container's identity information using a load balancing strategy, and update the inventory status of each three-dimensional cache library;
[0012] Outbound: Dynamically set the outbound priority of the container, identify the container's identity information at the exit of each three-dimensional cache, outbound based on the container's outbound priority, and update the inventory status of each three-dimensional cache.
[0013] As a preferred embodiment of the present invention, after the prescription binding hospital of the entrance identification container of each three-dimensional cache library is identified, a binding relationship is established between the storage unit and the container corresponding to the same prescription binding hospital in the three-dimensional cache library, so that the storage unit of the three-dimensional cache library is only allowed to receive containers of the same target decoction area.
[0014] Based on the mapping relationship between the prescription-bound hospital and the target decoction area, and the mapping relationship between the target decoction area and the storage unit of the three-dimensional cache library, the matching relationship between the prescription-bound hospital and the storage unit of the three-dimensional cache library is determined.
[0015] When a container can be allocated more than two storage units, the container is allocated to each storage unit in the order of arrival using a round-robin strategy.
[0016] As a preferred embodiment of the present invention, the container type is divided into soaking container and empty container, wherein the soaking container is divided into expedited soaking container and ordinary soaking container, and the prescription attribute is divided into split prescription and single prescription;
[0017] Each of the three-dimensional cache libraries is divided into: storage units that match different target cooking zones, and express channels or empty container layers;
[0018] When a container is put into storage, the container identity information of the container is identified at the entrance of each three-dimensional cache library. When the container is empty, the three-dimensional cache library corresponding to the empty container is selected by a partitioned round-robin comparison method to achieve load balancing of the empty container layer of all three-dimensional cache libraries.
[0019] When the container is a regular soaking container, and the corresponding storage unit is matched based on the identified prescription and the hospital, regular soaking containers in the same target decoction area are assigned to the same storage unit to avoid outbound blockage caused by the mixed storage of regular soaking containers in different target decoction areas.
[0020] When the container is an expedited soaking container, it shall be assigned to the expedited channel;
[0021] The number of partitions for empty container layers and storage units within the same three-dimensional cache library is dynamically allocated, and the total number of partitions for empty container layers, expedited channels, and storage units is equal to the total storage capacity of the three-dimensional cache library.
[0022] As a preferred embodiment of the present invention, after the containers are put into storage and taken out of storage, the inventory status of each of the three-dimensional cache libraries is updated, including updating the total inventory of ordinary soaking containers in each storage unit and the total inventory of empty containers in each empty container layer.
[0023] Update the total inventory of all ordinary soaking containers, the total inventory of all empty containers, and the current storage capacity of the current 3D cache library;
[0024] Furthermore, when the total inventory of ordinary soaking containers in a certain storage unit is zero, the binding relationship between that storage unit and the original target simmering area is automatically released.
[0025] As a preferred embodiment of the present invention, when the container is released from the warehouse, the release method of the container is set according to the container type, prescription ID and prescription attributes, target decoction area and decoction status of the target decoction area.
[0026] Based on the target decoction area that is currently idle, the ordinary soaking container is triggered to go out of the warehouse. When the ordinary soaking container is going out of the warehouse, the prescription attribute of the ordinary soaking container is identified, and all disassembled containers with the same prescription ID in all unit storage warehouses are coordinated to see if they are ready.
[0027] The empty container is dispatched based on the real-time demand of the distribution area. When an empty container moving to the exit is detected in the empty container layer, the empty container is dispatched or waited in the warehouse according to the idle status of the dispatch transfer equipment.
[0028] When an expedited soaking container is detected moving toward the exit, it is transferred to the target cooking area via the expedited passage.
[0029] As a preferred embodiment of the present invention, when the target decoction area is in an idle state, the storage unit that needs to be driven out is determined based on the prescription-bound hospital corresponding to the target decoction area and the matching relationship between the prescription-bound hospital and the storage unit of the three-dimensional cache library.
[0030] Based on the stored drug information identified at the time of entry into the warehouse, using the same prescription and prescription ID, verify whether all soaking containers under that prescription ID have been fully dispensed.
[0031] Once all associated soaking containers have been prepared, the interlayer transfer equipment is activated to release the containers from the warehouse.
[0032] If the soaking containers are not fully adjusted in all associated soaking containers, the soaking containers are adjusted to wait in the three-dimensional buffer library.
[0033] As a preferred embodiment of the present invention, when the container to be shipped is an empty container and the shipping transfer equipment is not idle, the empty container is controlled to wait in the three-dimensional buffer warehouse.
[0034] When the container to be shipped is empty and the shipping transfer equipment is idle, the inter-layer transfer equipment is adjusted to execute the container shipping in parallel.
[0035] Furthermore, when regulating the release of empty containers, the empty container layer with the lowest total inventory of empty containers in a certain three-dimensional cache is set as the first priority for releasing empty containers, and the priority of releasing empty containers is sequentially reduced in order of increasing total inventory of empty containers.
[0036] As a preferred embodiment of the present invention, when regulating the outbound shipment of the empty containers, if there are at least two empty container layers that are fully loaded, the empty container layers that are fully loaded are emptied in sequence according to the traversal order.
[0037] As a preferred embodiment of the present invention, when ordinary soaking containers are dispatched, ordinary soaking containers with the same prescription ID in all storage units are dispatched sequentially according to a polling strategy.
[0038] As a preferred embodiment of the present invention, the interlayer transfer device is fixedly installed on the entrance side of each storage unit of the three-dimensional cache library and the exit side. The interlayer transfer device establishes a connection between the three-dimensional cache library and the external conveyor line, and is used to send containers on the external conveyor line into the entrance of the storage unit, or send containers in the storage unit out to the external conveyor line.
[0039] The horizontal transport of containers within each storage unit is accomplished by an independent transport mechanism within each storage unit, which is responsible for moving the containers from the entrance to the exit of that storage unit.
[0040] Compared with the prior art, the present invention has the following advantages:
[0041] This invention dynamically divides storage areas according to the target decoction zone of the container, realizing centralized storage and outbound matching of containers in the same zone, thereby avoiding outbound congestion. It introduces a pre-outbound verification mechanism for containers with the same prescription, ensuring that all disassembled containers of the same prescription are ready before outbound, preventing decoction resources from being occupied due to some containers being outbound in advance. It also establishes a dedicated channel for urgent soaking containers, allowing them to bypass the regular storage queuing process and achieve rapid direct access, ensuring the timeliness of response to emergency tasks. Attached Figure Description
[0042] To more clearly illustrate the embodiments of the present invention or the technical solutions in 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 merely exemplary, and those skilled in the art can derive other embodiments based on the provided drawings without creative effort.
[0043] Figure 1 This is a schematic diagram of the warehousing process according to an embodiment of the present invention;
[0044] Figure 2 This is a schematic diagram of the outbound process according to an embodiment of the present invention; Detailed Implementation
[0045] 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, and 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.
[0046] like Figure 1 and Figure 2 As shown, this invention provides a scheduling method for a three-dimensional cache library in a traditional Chinese medicine decoction system, comprising the following steps:
[0047] Integrated container identity identifier: An identity identifier is installed on each container, and the container identity information is associated with the identity identifier. The container identity information includes container type, prescription-bound hospital, prescription ID and prescription attributes, as well as stored drug information, and a mapping relationship between prescription-bound hospital and target decoction area is constructed.
[0048] Storage Unit Division: Each three-dimensional cache library is divided into storage units, express channels, or empty container layers. Based on the target cooking area corresponding to each container, the corresponding storage unit is dynamically allocated to the container, so that containers in the same target cooking area are stored together.
[0049] Inbound: Identify the container's identity information at the entry point of each three-dimensional cache library, and use a load balancing strategy to transfer the container to each storage unit based on the container's identity information, and update the inventory status of each three-dimensional cache library;
[0050] Outbound: Dynamically set the outbound priority of containers, identify the identity information of containers at the exit of each three-dimensional cache, perform outbound based on the outbound priority of the container, and update the inventory status of each three-dimensional cache.
[0051] Container types are divided into soaking containers and empty containers. Soaking containers are further divided into expedited soaking containers and regular soaking containers. Prescription attributes are divided into split prescriptions and single prescriptions. A split prescription means that the same prescription ID contains more than one drug, while a single prescription means that the same prescription ID contains only one drug.
[0052] Each three-dimensional cache library is divided into: storage units that match different target cooking zones, express channels, or empty container layers;
[0053] In this embodiment, after the medicine is placed into an empty container in the dispensing area, the soaking container is transported to the three-dimensional buffer warehouse via an external conveyor line. At the same time, after the soaking container completes the process of "heating and decocting → pouring out the medicine → cleaning and drying", it becomes a clean empty container. The empty container is then returned to the three-dimensional buffer warehouse via the external conveyor line.
[0054] Specifically, the soaking container refers to a container that has already contained Chinese medicinal herbs and has completed the soaking process with water. It is in a "ready to be decocted" state and stored in the three-dimensional buffer. The next step is to send it to the decoction unit for heating and decoction. After the soaking container completes the process of "heating and decoction → pouring out the decoction → cleaning and drying", it becomes a clean empty container. The empty container is temporarily stored back in the three-dimensional buffer, waiting to be dispatched to the front-end dispensing area so that it can be refilled with medicinal herbs, bound to a prescription, and thus enter a new round of "soaking → decoction" cycle.
[0055] Therefore, in this embodiment, the three-dimensional buffer library is a material buffer located between the dispensing area and the decoction area. In order to perform the "decoction" process, each decoction unit in the target decoction area is bound to a specific hospital. For example, decoction units 1, 2, and 3 can be dedicated to prescriptions from Hospital A, and decoction units 4 and 5 can be dedicated to prescriptions from Hospital B; decoction units 6 and 7 are general-purpose units used to process hospital prescriptions without special process requirements.
[0056] Upon receipt of a container, the system identifies its identity and, based on the hospital associated with each prescription, determines the pre-assigned target decoction area and unit for that container. For example, if a container is associated with a prescription from Hospital A, its target decoction area will be decoction units 1, 2, and 3, which specifically serve Hospital A. The system determines the target decoction area for containers upon receipt through identification and then avoids path overlap and congestion between containers from different hospitals by assigning containers with the same target decoction area to the same storage unit.
[0057] After identifying the prescription-bound hospital of the container at the entrance of each three-dimensional cache library, a binding relationship is established between the storage unit of the three-dimensional cache library and the container corresponding to the same prescription-bound hospital, so that the storage unit of the three-dimensional cache library is only allowed to receive containers from the same target decoction area.
[0058] Based on the mapping relationship between prescription-bound hospitals and target decoction areas, and the mapping relationship between target decoction areas and storage units of the three-dimensional cache library, the matching relationship between prescription-bound hospitals and storage units of the three-dimensional cache library is determined.
[0059] Specifically, when a container is added to the cache, the container's identity information is identified at the entry point of each three-dimensional cache library. When the container is empty, the three-dimensional cache library corresponding to the empty container is selected through a partitioned round-robin comparison method to achieve load balancing of the empty container layer of all three-dimensional cache libraries.
[0060] When the container is a regular soaking container, and the corresponding storage unit is matched based on the identified prescription and the hospital, regular soaking containers in the same target decoction area are assigned to the same storage unit to avoid outbound blockage caused by the mixed storage of regular soaking containers in different target decoction areas. Empty containers and regular soaking containers share storage resources. The system dynamically defines the storage attributes of each layer of storage unit in the three-dimensional cache library according to the type of the container entering the library in real time and its target decoction area.
[0061] When the container is an expedited soaking container, it shall be assigned to the expedited channel.
[0062] The number of partitions for empty container layers and storage units within the same three-dimensional cache library is dynamically allocated, and the total number of partitions for empty container layers, expedited channels, and storage units is equal to the total storage capacity of the three-dimensional cache library.
[0063] Suppose that after identifying the container's identity information at the entry point of each three-dimensional cache library, based on the identified container type (such as empty container, expedited soaking container, and ordinary soaking container) and the hospital bound to the prescription, when the container type is an empty container, the empty container is not bound to a prescription and has no target decoction area (therefore, the empty container layer has no target decoction area).
[0064] The specific method for comparing the partitions of empty containers is as follows: real-time statistics are collected on the number of empty containers in all three-dimensional cache libraries, and the inter-layer drive devices that drive the operation are adjusted based on the number of empty containers in all three-dimensional cache libraries to achieve a balance of the number of empty containers in all three-dimensional cache libraries.
[0065] When the container type is a regular soaking container, the target decoction area and decoction unit corresponding to the regular soaking container are determined based on the hospital bound to the prescription corresponding to the regular soaking container. When there is a free and unbound storage unit in the three-dimensional buffer library, the regular soaking container is received through the inter-layer transfer device and transferred to the corresponding storage unit, thus completing the automatic binding of the regular soaking container, storage unit and target decoction area. After that, the storage unit is only allowed to receive containers from the same target decoction area, thereby realizing the centralized storage of containers in the same area.
[0066] When a new ordinary soaking container arrives at the storage unit, the system needs to allocate storage space for it. However, if all layers already bound to that area are full, the system automatically traverses all storage units in the three-dimensional cache library to find an available empty layer. Once found, the new ordinary soaking container is assigned to that storage unit, and a mapping relationship is established between that storage unit and the target cooking area of the new ordinary soaking container.
[0067] When a container has more than two available storage units, it is allocated to these units in a round-robin fashion based on its arrival order. Round-robin is a scheduling algorithm used to achieve load balancing among multiple units. Assuming there are three storage units, the system allocates the first arriving container to unit 1, the second to unit 2, the third to unit 3, and the fourth back to unit 1, and so on, forming a fixed allocation cycle of "1→2→3→1→2→3…". In actual operation, if the currently polled target unit does not meet the storage requirements for the target container, the algorithm skips that unit and continues searching for the next suitable unit.
[0068] Each time a container is added to the warehouse, the total inventory of ordinary soaking containers in each storage unit and the total inventory of empty containers in each empty container layer are updated. The system also saves the prescription ID, target decoction area and stored drug information for each ordinary soaking container. Based on the prescription ID, the system verifies whether the stored drug information in containers with the same prescription ID in all three-dimensional caches has been completely stored.
[0069] Once all containers in a storage layer have been removed from the warehouse, i.e., when the total inventory of ordinary soaking containers in a storage unit is zero, the binding relationship between that storage unit and the original target cooking zone is automatically released. When new soaking containers are received, the system will re-establish the corresponding mapping relationship for that layer based on their target cooking zone information.
[0070] When the container type is an expedited soaking container, a specific layer is reserved in the three-dimensional cache library. The expedited channel does not participate in regular storage, but only serves as a fast passage path for expedited containers to achieve "instant entry and exit". Expedited containers can achieve direct flow through an independent fast channel layer that does not participate in storage.
[0071] After containers are put into and taken out of the warehouse, the inventory status of each three-dimensional cache warehouse is updated, including updating the total inventory of ordinary soaking containers in each storage unit, the total inventory of empty containers in each empty container layer, the total inventory of all ordinary soaking containers in the current three-dimensional cache warehouse, the total inventory of all empty containers, and the current storage balance of the three-dimensional cache warehouse, so as to facilitate the adjustment of the next container's put into and take out position.
[0072] When a container is issued, the issuance method is set according to the container type, prescription ID and prescription attributes, target decoction area and decoction status of the target decoction area.
[0073] Among them, the process of triggering the release of ordinary soaking containers based on the target decoction area that is currently in an idle state is used. When ordinary soaking containers are released, the prescription attributes of the ordinary soaking containers are identified, and all disassembled containers with the same prescription ID in all unit storage stores are coordinated to ensure that they are ready.
[0074] When a prescription is split, meaning all medications from the same prescription are split into different containers for storage (e.g., all medications are split into different ordinary soaking containers), the stored medication information in all split containers based on the same prescription ID is compared with the prescription information within the same prescription ID to ensure that all split containers with the same prescription ID in all unit storage repositories are ready.
[0075] When a prescription is a single prescription, all medications for the same prescription are stored in the same container. In this case, there is no need to coordinate whether the stored medications are cached and ready.
[0076] Specifically, when the target decoction area is idle, based on the prescription-bound hospital corresponding to the target decoction area and the matching relationship between the prescription-bound hospital and the storage units of the three-dimensional cache library, the storage units that need to be driven out are determined.
[0077] Based on the stored drug information identified at the time of entry into the warehouse, using the same prescription and prescription ID, verify whether all soaking containers under that prescription ID have been fully dispensed.
[0078] Once all associated soaking containers have been prepared, the interlayer transfer equipment is activated to release the containers from the warehouse.
[0079] While not fully adjusted in all associated soaking containers, the control soaking containers wait in the three-dimensional cache library.
[0080] Specifically, when issuing ordinary soaking containers, a polling strategy is used to issue ordinary soaking containers with the same prescription ID from all storage units in sequence.
[0081] The real-time demand in the distribution area triggers the outbound process of empty containers. When an empty container moving to the exit is detected in the empty container layer, the empty container is either released from the warehouse or waits in the warehouse based on the idle status of the outbound transfer equipment.
[0082] When the container to be shipped is empty and the shipping transfer equipment is not idle, the empty container is controlled to wait in the three-dimensional buffer.
[0083] When the container to be shipped is empty and the shipping transfer equipment is idle, the inter-layer transfer equipment is adjusted to execute the container shipping in parallel.
[0084] Furthermore, when adjusting the release of empty containers, the layer with the lowest total inventory of empty containers in a given three-dimensional cache is set as the first priority for release. The priority of releasing empty containers decreases sequentially according to the total inventory of empty containers, prioritizing layers with fewer empty containers. The aim is to quickly empty a layer, transforming it into an "empty layer." Since layers containing empty containers cannot store soaking containers, "empty layers" are extremely valuable storage resources during peak periods. Prioritizing the release of empty containers from layers with low inventory accelerates the emptying process, allowing the layer to be converted into a soaking container storage layer more quickly, thereby alleviating the pressure on soaking container storage.
[0085] When regulating the release of empty containers, if at least two empty container layers are fully loaded, each fully loaded empty container layer is released and cleared in the traversal order. That is, during the morning peak, each unit of the three-dimensional cache library stores a large number of empty containers. At this time, releasing one storage unit at a time and then releasing another single storage unit at a time can enable multiple storage units to receive new containers as soon as possible. This makes full use of the independent conveying and access equipment of each storage unit to achieve parallel operation. Prioritizing the release of "storage units with completely empty containers" can avoid a single unit becoming a system bottleneck.
[0086] When an expedited soaking container is detected moving toward the exit, it is transferred to the target cooking area via the expedited passage.
[0087] Expedited Stream (Faster Stream): This refers to a specially designed, fast-flow layer that does not perform regular storage functions. Located on a specific layer of a specific storage unit, this stream is dedicated to handling containers bound to expedited prescriptions, enabling their rapid transport from storage to the target decoction area, bypassing the regular storage queuing process.
[0088] The expedited passage is physically identical to other layers within the unit, and the interlayer transfer equipment operates on this layer in the same way as on other layers.
[0089] Each 3D cache library features a multi-layered structure (e.g., 3 or 4 layers). Each layer's storage unit can hold multiple containers, which enter through the entrance and exit in a queue. Similar to supermarket shelves, but goods must be placed at one end and retrieved at the other.
[0090] Interlayer transfer equipment is fixedly installed at the entrance side of each storage unit of the three-dimensional buffer warehouse. The interlayer transfer equipment establishes a connection between the three-dimensional buffer warehouse and the external conveyor line, and is used to send containers on the external conveyor line into the entrance of the storage unit, or send containers in the storage unit out to the external conveyor line.
[0091] The horizontal transport of containers within each storage unit is accomplished by an independent transport mechanism within each storage unit, which is responsible for moving the containers from the entrance to the exit of that storage unit.
[0092] Each storage unit is equipped with independent entry and exit points and inter-layer transfer equipment. The scheduling system can issue different entry and exit instructions to multiple units simultaneously, and the equipment in each unit operates synchronously without interfering with each other.
[0093] Each unit's inter-layer transfer equipment has the capability to transport multiple containers in a single operation. During inbound and outbound operations, the scheduling algorithm combines multiple containers within the same unit into a single task unit, which is then transported by the inter-layer transfer equipment in a single action.
[0094] Therefore, this implementation dynamically divides storage areas according to the target decoction area of the container, realizing centralized storage and outbound matching of containers in the same area, thereby avoiding outbound congestion. A pre-outbound verification mechanism for containers with the same prescription is introduced to ensure that all disassembled containers of the same prescription are ready before outbound, preventing decoction resources from being occupied due to some containers being outbound in advance. A dedicated channel is set up for urgent soaking containers, allowing them to bypass the regular storage queuing process and achieve rapid direct access, ensuring the response time of emergency tasks.
[0095] The above embodiments are merely exemplary embodiments of this application and are not intended to limit this application. The scope of protection of this application is defined by the claims. Those skilled in the art can make various modifications or equivalent substitutions to this application within its substance and scope of protection, and such modifications or equivalent substitutions should also be considered to fall within the scope of protection of this application.
Claims
1. A scheduling method for a three-dimensional cache library in a traditional Chinese medicine decoction system, characterized in that, Includes the following steps: Integrated container identity identifier: An identity identifier is installed on each container, and the container identity information is associated with the identity identifier. The container identity information includes container type, prescription-bound hospital, prescription ID and prescription attributes, as well as stored drug information, and a mapping relationship between prescription-bound hospital and target decoction area is constructed. Divide the storage unit: Divide each three-dimensional cache library into storage units, express channels or empty container layers, and dynamically allocate the corresponding storage unit to each container based on the target decoction area corresponding to each container, so that containers with the same target decoction area are stored together. Inbound: Identify the container's identity information at the entry point of each three-dimensional cache library, and use a load balancing strategy to transfer the container to each storage unit based on the container's identity information, and update the inventory status of each three-dimensional cache library; Outbound: Dynamically set the outbound priority of the container, identify the container's identity information at the exit of each three-dimensional cache, outbound based on the container's outbound priority, and update the inventory status of each three-dimensional cache.
2. The scheduling method for a three-dimensional cache library of a traditional Chinese medicine decoction system according to claim 1, characterized in that, After the prescription binding hospital is identified in the entrance of each three-dimensional cache library, a binding relationship is established between the storage unit and the corresponding container when the prescription binding hospital is the same in the three-dimensional cache library, so that the storage unit of the three-dimensional cache library can only receive containers from the same target decoction area. Based on the mapping relationship between the prescription-bound hospital and the target decoction area, and the mapping relationship between the target decoction area and the storage unit of the three-dimensional cache library, the matching relationship between the prescription-bound hospital and the storage unit of the three-dimensional cache library is determined. When a container can be allocated more than two storage units, the container is allocated to each storage unit in the order of arrival using a round-robin strategy.
3. The scheduling method for a three-dimensional cache library of a traditional Chinese medicine decoction system according to claim 1, characterized in that, The container types are divided into soaking containers and empty containers. Among them, soaking containers are divided into expedited soaking containers and ordinary soaking containers. The prescription attributes are divided into split prescriptions and single prescriptions. Each of the three-dimensional cache libraries is divided into: storage units that match different target cooking zones, and express channels or empty container layers; When a container is put into storage, the container identity information of the container is identified at the entrance of each three-dimensional cache library. When the container is empty, the three-dimensional cache library corresponding to the empty container is selected by a partitioned round-robin comparison method to achieve load balancing of the empty container layer of all three-dimensional cache libraries. When the container is a regular soaking container, and the corresponding storage unit is matched based on the identified prescription and the hospital, regular soaking containers in the same target decoction area are assigned to the same storage unit to avoid outbound blockage caused by the mixed storage of regular soaking containers in different target decoction areas. When the container is an expedited soaking container, it shall be assigned to the expedited channel; The number of partitions for empty container layers and storage units within the same three-dimensional cache library is dynamically allocated, and the total number of partitions for empty container layers, expedited channels, and storage units is equal to the total storage capacity of the three-dimensional cache library.
4. The scheduling method for a three-dimensional cache library of a traditional Chinese medicine decoction system according to claim 1, characterized in that, After containers are put into storage and taken out of storage, the inventory status of each of the three-dimensional cache libraries is updated, including updating the total inventory of ordinary soaking containers in each storage unit and the total inventory of empty containers in each empty container layer. Update the total inventory of all ordinary soaking containers, the total inventory of all empty containers, and the current storage capacity of the current 3D cache library; Furthermore, when the total inventory of ordinary soaking containers in a certain storage unit is zero, the binding relationship between that storage unit and the original target simmering area is automatically released.
5. The scheduling method for a three-dimensional cache library of a traditional Chinese medicine decoction system according to claim 2, characterized in that, When a container is issued, the issuance method is set according to the container type, prescription ID and prescription attributes, target decoction area and decoction status of the target decoction area; Based on the target decoction area that is currently idle, the ordinary soaking container is triggered to go out of the warehouse. When the ordinary soaking container is going out of the warehouse, the prescription attribute of the ordinary soaking container is identified, and all disassembled containers with the same prescription ID in all unit storage warehouses are coordinated to see if they are ready. The empty container is dispatched based on the real-time demand of the distribution area. When an empty container moving to the exit is detected in the empty container layer, the empty container is dispatched or waited in the warehouse according to the idle status of the dispatch transfer equipment. When an expedited soaking container is detected moving toward the exit, it is transferred to the target cooking area via the expedited passage.
6. The scheduling method for a three-dimensional cache library of a traditional Chinese medicine decoction system according to claim 5, characterized in that, When the target decoction area is idle, based on the prescription-bound hospital corresponding to the target decoction area and the matching relationship between the prescription-bound hospital and the storage unit of the three-dimensional cache library, the storage unit that needs to be driven out is determined. Based on the stored drug information identified at the time of entry into the warehouse, using the same prescription and prescription ID, verify whether all soaking containers under that prescription ID have been fully dispensed. Once all associated soaking containers have been prepared, the interlayer transfer equipment is activated to release the containers from the warehouse. If the soaking containers are not fully adjusted in all associated soaking containers, the soaking containers are adjusted to wait in the three-dimensional buffer library.
7. The scheduling method for a three-dimensional cache library of a traditional Chinese medicine decoction system according to claim 5, characterized in that, When the container to be shipped is empty and the shipping transfer equipment is not idle, the empty container is controlled to wait in the three-dimensional buffer. When the container to be shipped is empty and the shipping transfer equipment is idle, the inter-layer transfer equipment is adjusted to execute the container shipping in parallel. Furthermore, when regulating the release of empty containers, the empty container layer with the lowest total inventory of empty containers in a certain three-dimensional cache is set as the first priority for releasing empty containers, and the priority of releasing empty containers is sequentially reduced in order of increasing total inventory of empty containers.
8. The scheduling method for a three-dimensional cache library of a traditional Chinese medicine decoction system according to claim 7, characterized in that, When controlling the outbound shipment of empty containers, if at least two empty container layers are in a full-load state, each full-load empty container layer is emptied in turn according to the traversal order.
9. The scheduling method for a three-dimensional cache library of a traditional Chinese medicine decoction system according to claim 2, characterized in that, When issuing ordinary soaking containers, a polling strategy is used to issue ordinary soaking containers with the same prescription ID from all storage units in sequence.
10. The scheduling method for a three-dimensional cache library of a traditional Chinese medicine decoction system according to claim 1, characterized in that, The interlayer transfer device is fixedly installed on the entrance side of each storage unit of the three-dimensional cache library and the external conveyor line. The interlayer transfer device establishes a connection between the three-dimensional cache library and the external conveyor line, and is used to send containers on the external conveyor line into the entrance of the storage unit, or send containers in the storage unit out to the external conveyor line. The horizontal transport of containers within each storage unit is accomplished by an independent transport mechanism within each storage unit, which is responsible for moving the containers from the entrance to the exit of that storage unit.