Dynamic stock management and environment control method and system for intelligent dispensing

By establishing drug records through photoelectric scanners and smart cap weight sensors, combined with dynamic environmental control and dual-dimensional measurement, the problems of lagging inventory monitoring, crude environmental control, and insufficient dispensing accuracy in traditional drug management have been solved. Real-time and accurate inventory calculation, targeted environmental adjustment, and full-process data association have been achieved, improving inventory management efficiency and dispensing quality.

CN121483520APending Publication Date: 2026-02-06SHENZHEN DASHUANDU ARTIFICIAL INTELLIGENCE TECHNOLOGY CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202511436979.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-09
Publication Date
2026-02-06

AI Technical Summary

Technical Problem

Traditional medical drug management suffers from problems such as a lack of real-time and precision in inventory management, a crude and untargeted environmental control strategy, and a low degree of automation in the dispensing process with fragmented data.

Method used

A medicine file is established by reading the barcode identification information of medicine bottles through a photoelectric scanner. Combined with a smart cap weight sensor, the remaining inventory is calculated in real time, the storage environment is dynamically adjusted, dual-dimensional measurement is performed, and traceability information is printed to form a data association throughout the entire process.

Benefits of technology

It achieves real-time and accurate drug inventory calculation, targeted environmental control, automated dispensing process, and data traceability, meeting medical compliance requirements and reducing operational error rate and error rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121483520A_ABST
    Figure CN121483520A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of intelligent medical equipment and automatic dispensing, and discloses a dynamic stock management and environment control method and system for intelligent dispensing. The method comprises the following steps: reading bar code identification information of a medicine bottle body through a photoelectric scanner for establishing a medicament file; dynamically calculating the remaining amount in the medicine bottle according to the initial bottle weight in the medicine file and the accumulated medicine taking amount collected by the intelligent cover weight sensor in real time; controlling an environment control assembly to adjust a storage environment in the machine body according to storage conditions in the medicament file, recording and storing environment parameters collected by a temperature and humidity sensor according to a preset frequency, and forming an environment data log; when the electronic prescription is received, medicament information and dosage requirements in the electronic prescription are analyzed, the conveying assembly is dispatched to convey the corresponding medicine bottles to a dispensing station, the intelligent cover is controlled to carry out weight and volume two-dimensional metering according to the prescription dosage, and after metering is completed, mixed medicaments are subpackaged and sealed.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of intelligent medical devices and automated dispensing technology, and in particular to a dynamic inventory management and environmental control method and system for intelligent dispensing. BACKGROUND

[0002] In the traditional medical drug management and dispensing process, the following technical defects need to be solved urgently: 1. Lack of real-time and accuracy in inventory management: Existing solutions rely on manual periodic inventory or fixed sensor single-point detection, which cannot achieve real-time tracking of remaining inventory through dynamic coupling calculation of "initial bottle weight-cumulative drug quantity". For example, only the remaining weight is detected by the weight sensor once, without combining the time series data of the drug taking process for cumulative measurement, resulting in late replenishment warning and high error rate. Although the inventory management system in the industrial field involves weight monitoring, it does not adapt to the dosage unit conversion, intelligent triggering of safety thresholds, and other medical scene characteristics in drug management, and cannot be directly applied to precise control of drug inventory.

[0003] 2. Environmental control strategy is extensive and lacks pertinence: Traditional storage equipment uses a unified temperature and humidity adjustment mode without differentiated control according to drug characteristics such as hygroscopic powder and heat-sensitive liquid preparation. For example, the medicine storage cabinet only has basic temperature and humidity alarm function without integrated dust concentration monitoring, operation area blowing, and other protection measures, and cannot automatically switch to low humidity mode or constant humidity strategy for different dosage forms, making it difficult to meet the storage requirements of highly sensitive drugs. In addition, the recording of environmental parameters in existing technologies is mostly discrete storage, lacking correlation analysis with drug temperature and humidity sensitivity levels, and cannot form an effective environmental data traceability system.

[0004] 3. Low degree of automation in dispensing process and fragmented data: The analysis and dispensing execution of electronic prescriptions rely on manual intervention, and the measurement process generally uses single weight or volume measurement method, lacking cross-validation of dual-dimensional data, and the dosage accuracy cannot be guaranteed. At the same time, the data association of dispensing, sealing, traceability information printing, and dispensing process is missing, such as the dispensing system can only print simple labels without associating traceability information with inventory changes, environmental parameters, and measurement data throughout the process, making it difficult to meet the strict requirements of medical compliance for traceability of the dispensing process.

[0005] Therefore, a method is needed to solve at least one of the above problems. SUMMARY

[0006] The application provides a dynamic stock management and environment control method and system for intelligent dispensing, aiming to solve the problems of lack of real-time and accuracy in stock management, extensive and non-targeted environment control strategy, and low automation and data fragmentation in the dispensing process in the traditional medical drug management and dispensing process.

[0007] In a first aspect, the application provides a dynamic stock management and environment control method for intelligent dispensing, comprising: The barcode identification information of the medicine bottle body is read by an optical-electric scanning instrument, and the identification information includes the medicine name, initial weight, shelf life, and storage condition, which is used to establish a medicine file, and the medicine file includes the initial bottle weight, dose unit conversion relationship, and temperature and humidity sensitivity level; According to the initial bottle weight in the medicine file and the cumulative medicine taking amount collected by the intelligent cap weight sensor in real time, the remaining stock in the medicine bottle is dynamically calculated, and when the remaining stock is lower than the preset safety threshold, an audible and light alarm is triggered and a restocking request is sent to the pharmacy management system; According to the storage condition in the medicine file, the storage environment in the machine body is adjusted by controlling the environment control component, and before the medicine bottle is replaced or after the dispensing is completed, the negative pressure suction module is started to blow the operation area; the environmental parameters collected by the temperature and humidity sensor are recorded and stored at a preset frequency to form an environmental data log; When receiving an electronic prescription, the medicine information and dose requirement in the electronic prescription are analyzed, the conveying component is controlled to transport the corresponding medicine bottle to the dispensing station, the intelligent cap is controlled to measure the weight and volume in two dimensions according to the prescription dose, the mixed medicine is sealed after the measurement is completed, and the traceability information including the dispensing time, prescription code, and patient information is sprayed on the package by the spray printing unit.

[0008] In a second aspect, the application provides a dynamic stock management and environment control system for intelligent dispensing, comprising: The identification recognition unit is used to read the barcode identification information of the medicine bottle body by an optical-electric scanning instrument, and the identification information includes the medicine name, initial weight, shelf life, and storage condition, which is used to establish a medicine file, and the medicine file includes the initial bottle weight, dose unit conversion relationship, and temperature and humidity sensitivity level; The medicine amount collection unit is used to dynamically calculate the remaining stock in the medicine bottle according to the initial bottle weight in the medicine file and the cumulative medicine taking amount collected by the intelligent cap weight sensor in real time, and when the remaining stock is lower than the preset safety threshold, an audible and light alarm is triggered and a restocking request is sent to the pharmacy management system; The log forming unit is used to control the storage environment in the machine body by the environment control component according to the storage condition in the medicine file, and to start the negative pressure suction module to blow the operation area before the medicine bottle is replaced or after the dispensing is completed; the environmental parameters collected by the temperature and humidity sensor are recorded and stored at a preset frequency to form an environmental data log. The sealing completion unit is used for parsing the medicine information and dose requirement in the electronic prescription when receiving the electronic prescription, scheduling the conveying assembly to transport the corresponding medicine bottle to the dispensing station, controlling the intelligent cover to perform weight and volume double-dimension measurement according to the prescription dose, and sealing the mixed medicine after the measurement is completed, and spraying the traceability information including the dispensing time, the prescription code and the patient information on the package through the spraying unit.

[0009] The application automatically calculates the remaining inventory and triggers the replenishment mechanism through the real-time data coupling of the initial bottle weight and the intelligent cover weight sensor, reduces the inventory calculation error rate compared with the traditional manual inventory or single-point detection, shortens the replenishment response time to the real-time level, and significantly improves the efficiency and safety of inventory management. Based on the dynamic adjustment of temperature and humidity of the medicine storage condition, the low humidity mode is automatically started for hygroscopic powder, combined with dust purification and operation area blowing function, the temperature and humidity fluctuation range of the storage environment is controlled within ±1℃ and ±3%RH, the dust concentration exceeds the standard processing response time is less than 10 seconds, which effectively guarantees the stability of the medicine quality. After the electronic prescription is parsed, the medicine bottle is automatically scheduled, the double-dimension measurement is performed, and the pre-sterilization packaging and sealing process is used to avoid medicine pollution, so that the dispensing efficiency is improved and the human operation error rate tends to be zero. Through the association of the traceability information, the inventory change, the environmental parameters and the measurement data in the block chain, an unalterable dispensing whole-process log is formed, which meets the strict requirements of HIPAA, GMP and other medical and drug management specifications for data traceability, and provides a complete and reliable electronic evidence chain for medical dispute evidence and quality problem traceability.

[0010] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory, and cannot limit the application. BRIEF DESCRIPTION OF DRAWINGS

[0011] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creating labor.

[0012] Figure 1 is a step schematic flow chart of the dynamic inventory management and environment control method for intelligent dispensing provided by an embodiment of the present application; Figure 2 is a structural schematic diagram of the dynamic inventory management and environment control equipment for intelligent dispensing provided by an embodiment of the present application; Figure 3 is a partial structural schematic diagram of the dynamic inventory management and environment control equipment for intelligent dispensing provided by an embodiment of the present application; Figure 4is a structural schematic block diagram of a dynamic inventory management and environment control system for intelligent dispensing provided by an embodiment of the present application. Figure 5 is a structural schematic block diagram of a computer control device provided by an embodiment of the present application.

[0013] It should be understood that the above general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. DETAILED DESCRIPTION

[0014] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.

[0015] The flowcharts shown in the drawings are only exemplary and are not necessarily required to include all the contents and operations / steps, and are not necessarily executed in the described order. For example, some operations / steps can be further decomposed, combined or partially merged, and thus the actual execution order can be changed according to the actual situation.

[0016] It should be understood that, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, the terms of “first”, “second”, etc. are used to distinguish the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the terms of “first”, “second”, etc. do not limit the quantity and execution order, and the terms of “first”, “second”, etc. also do not necessarily mean the difference.

[0017] It should be understood that the terms used in the present application specification are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in the present application specification and the appended claims, unless otherwise clearly indicated by the context, the singular forms “a”, “an” and “the” are intended to include the plural forms.

[0018] It should also be understood that the term “and / or” used in the present application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.

[0019] Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The following embodiments and features in the embodiments can be combined with each other without conflict.

[0020] In the traditional medical drug management and dispensing process, the following technical defects need to be solved urgently: 1. Inventory management lacks real-time and accuracy: existing solutions rely on manual periodic inventory or fixed sensor single-point detection, which cannot achieve real-time tracking of remaining inventory through dynamic coupling calculation of "initial bottle weight-cumulative dispensing amount". For example, only through single detection of remaining weight by weight sensor, without combining time series data of dispensing process for cumulative measurement, leading to high error rate and lagging of replenishment warning; although the inventory management system in the industrial field involves weight monitoring, it does not adapt to the dose unit conversion, intelligent triggering of safety threshold and other medical scene characteristics in the management of pharmaceuticals, and cannot be directly applied to the accurate control of pharmaceutical inventory.

[0021] 2. Environmental control strategy is extensive and lacks pertinence: traditional storage equipment adopts unified temperature and humidity adjustment mode, without differentiated control according to pharmaceutical characteristics (such as hygroscopic powder, heat-sensitive liquid preparation). For example, the medicine storage cabinet only has basic temperature and humidity alarm function, without integrating dust concentration monitoring, operation area blowing and other protection measures, and cannot automatically switch low humidity mode or constant humidity strategy for different dosage forms, making it difficult to meet the storage requirements of highly sensitive pharmaceuticals. In addition, the record of environmental parameters in existing technologies is mostly discrete storage, lacking correlation analysis with pharmaceutical temperature and humidity sensitivity level, and cannot form an effective environmental data traceability system.

[0022] 3. Low degree of automation in dispensing process and fragmented data: the analysis and dispensing execution of electronic prescriptions rely on manual intervention, and the measurement process generally uses single weight or volume measurement method, lacking cross-validation of dual-dimensional data, and the dose accuracy cannot be guaranteed. At the same time, the data correlation of dispensing and sealing, traceability information printing and dispensing process is missing, for example, the dispensing system can only print simple labels, without correlating traceability information with inventory changes, environmental parameters and measurement data throughout the process, making it difficult to meet the strict requirements of medical compliance on traceability of dispensing process.

[0023] Although there are scattered pharmaceutical management, environmental control or dispensing equipment in existing technologies, there is no solution to systematically integrate "dynamic inventory calculation based on initial bottle weight and cumulative dispensing amount" "differential environmental control combined with temperature and humidity sensitivity level" "weight-volume dual-dimensional measurement driven by electronic prescription" and "traceability system with whole-process data blockchain correlation". The present application deeply cooperates the above functional modules through computer control equipment, forming a closed-loop management system from pharmaceutical filing, inventory monitoring, environmental regulation to dispensing execution, solving the core problems of inventory monitoring lag, extensive environmental control, insufficient dispensing accuracy and traceability information discontinuity in traditional methods. The creativity of the technical solution lies in the organic combination of multiple modules and the pertinence optimization for medical scenes.

[0024] Please refer to Figure 1 , Figure 1is a step schematic flowchart of a method for dynamic inventory management and environmental control for intelligent dispensing provided by an embodiment of the present application. The method is applied to a computer control device for a dynamic inventory management and environmental control device for intelligent dispensing as shown in Figures 2-3 The computer control device for the dynamic inventory management and environmental control device for intelligent dispensing includes a plurality of medicine bottles, a machine body, a conveying assembly, a metering and mixing assembly, a dispensing and printing assembly, and a computer control device. The computer control device can be deployed on a single server or a server cluster. It can also be deployed on a handheld terminal, a notebook computer, a wearable system, or a robot, etc. to realize steps S101 to S104 and the corresponding embodiments thereof.

[0025] It should be noted that the acquisition of any information mentioned in the provided method is in accordance with relevant regulations and with the consent of the user, and does not infringe on the privacy of the user or violate relevant laws and regulations.

[0026] As shown in Figure 1 The provided method includes steps S101 to S104.

[0027] Step S101. Read the barcode identification information of the medicine bottle body by the photoelectric scanner, which includes the medicine name, initial weight, shelf life, and storage conditions, to establish a medicine file, which contains the initial bottle weight, dose unit conversion relationship, and temperature and humidity sensitivity level.

[0028] Specifically, the photoelectric scanner collects information on the barcode of the medicine bottle body, and combines multi-source data fusion technology to establish a medicine file containing key parameters, providing basic data support for subsequent inventory management, environmental control, and dispensing operations.

[0029] The barcode information reading is automatically triggered by the high-precision photoelectric scanner (such as a CCD scanning module or a laser scanning head) built in the machine body to align the medicine bottle barcode, and analyzes the basic identification information such as the medicine name, initial weight (including the weight of the entire bottle including packaging), shelf life, storage conditions (such as temperature range 2-8℃, humidity ≤60%RH, light avoidance, etc.). The scanning process supports dynamic focusing and multi-angle recognition to ensure that the barcodes (one-dimensional code / two-dimensional code) of different sizes and materials of the bottle body can be accurately read.

[0030] Data fusion and file establishment include: if the barcode information is incomplete (such as missing medicine specifications, production batch number), manually input the supplementary information through the device operation interface or the matching terminal, and the system automatically matches the fields with the scanning data (such as associating “medicine specifications 100ml / bottle” with the initial weight); support through HL7 / FHIR data interface to connect hospital information system (HIS) or pharmaceutical enterprise database, directly pull the basic data of the medicine (such as approval number, ingredient composition), to avoid repeated entry.

[0031] The initial bottle weight is obtained by extracting the "initial weight" from the barcode and deducting the packaging weight (if the system has a preset standard packaging weight library), or by calibrating the empty bottle using a smart cap weight sensor to obtain the net drug weight. The dosage unit conversion relationship is established based on the drug specification (such as "50mg / 1ml") to establish a "weight-volume-dosage" conversion model. For example, if a 100ml bottle of drug contains 5g of solute, it is converted to a dosage unit mapping relationship of "1ml=50mg". The temperature and humidity sensitivity level is set by pre-setting three levels of parameters based on the temperature and humidity requirements of the storage conditions (e.g., Level I: temperature 2-8℃ and humidity 45-60%RH; Level II: temperature 10-25℃ and humidity ≤70%RH), which are used for automatic matching of subsequent environmental control strategies.

[0032] The generated medication files are stored in a local database on the computer control device in a structured data format (JSON / XML), and simultaneously synchronized to the hospital's central management system via an encrypted network (HTTPS / TLS), supporting data sharing and real-time updates across multiple devices.

[0033] Step S102. Based on the initial bottle weight in the medicine file and the cumulative amount of medicine taken in real time by the smart cap weight sensor, dynamically calculate the remaining amount in the medicine bottle. When the remaining amount is lower than the preset safety threshold, trigger an audible and visual alarm and send a replenishment request to the pharmacy management system.

[0034] Specifically, based on real-time data collection from the smart cap weight sensor, the consumption of medicines is dynamically tracked through a time-series cumulative algorithm, enabling accurate calculation of remaining stock and intelligent replenishment early warning.

[0035] Weight sensor data acquisition is achieved through an integrated smart cap on each vial, housing a high-precision pressure sensor (accuracy ±0.1g). After each dispensing operation (such as pouring or aspiration), the instantaneous weight change value ΔW (weight after dispensing - weight before dispensing; a negative value indicates medication has been dispensed) is collected in real time. Sensor data is transmitted to a computer control device in real time via Bluetooth Low Energy (BLE) or NFC technology, with a sampling frequency ≥10 times / second, ensuring accurate detection of minute dose changes (e.g., 0.5mg).

[0036] The cumulative medication dispensing volume is calculated by maintaining a time-series array through the inventory management module of the computer-controlled equipment. Each dispensing operation (ΔW) is recorded sequentially by time, and the cumulative dispensing volume ΣΔW (sum of absolute values) is generated using an accumulation algorithm. For example, if the first dispensing volume ΔW = -2g and the second dispensing volume ΔW = -1.5g, the cumulative dispensing volume is 3.5g. The module supports abnormal data filtering. If a single dispensing volume ΔW exceeds 50% of the medication dosage (e.g., dispensing more than 60ml of a 100ml medication in a single operation), it is considered a misoperation and triggers data verification (prompting manual confirmation or retrieving surveillance footage).

[0037] The dynamic calculation of remaining inventory includes: real-time remaining inventory = initial bottle weight - cumulative medication volume ΣΔW. The calculation process is automatically executed by the module and updated once per second. The results are displayed synchronously on the device operation interface and the hospital management system terminal.

[0038] The preset dual safety thresholds include: Level 1 threshold (warning value, such as remaining inventory ≤ 20%): triggers a local audible and visual alarm on the device (flashing yellow light + buzzer) and sends a warning notification to the pharmacy management system; Level 2 threshold (replenishment value, such as remaining inventory ≤ 5%): automatically generates a replenishment work order, including the drug name, specifications, current inventory, and suggested replenishment quantity, and pushes it to the hospital procurement system via API interface.

[0039] The data verification mechanism automatically triggers a "weight-volume" cross-verification once a week (by detecting the volume of the medicine through the liquid level sensor built into the smart cap and calculating the weight using the density formula). If the error between the two is greater than 5%, it is marked as data anomaly and a manual verification process is initiated.

[0040] Step S103. According to the storage conditions in the drug file, control the environmental control component to adjust the storage environment inside the machine body. Before replacing the medicine bottle or after the preparation is completed, start the negative pressure suction module to purge the operation area; record and store the environmental parameters collected by the temperature and humidity sensor at a preset frequency to form an environmental data log.

[0041] Specifically, the storage environment is dynamically adjusted according to the storage characteristics of the medicine, the purification function of the operating area is integrated, and a full-time environmental data traceability system is established.

[0042] Real-time parameter acquisition is achieved through an array of temperature and humidity sensors deployed inside the unit (each storage compartment is independently configured), with an accuracy of ±0.5℃ (temperature) and ±2%RH (humidity). The environmental parameters of each area are collected in real time and uploaded to the computer control equipment.

[0043] The computer-controlled equipment automatically matches and adjusts strategies based on the temperature and humidity sensitivity levels in the drug's file: Temperature control: When the detected temperature deviates from the preset range (e.g., for Class I drugs, the temperature > 8℃), the semiconductor cooling chip or heating wire is automatically activated, and the temperature fluctuation is controlled to ≤ ±0.5℃ through a PID algorithm; Humidity control: When the humidity exceeds the standard (e.g., > 60%RH), the dehumidifier (condenser or rotary type) is activated, and when the humidity is insufficient, the ultrasonic humidifier is activated to ensure that the humidity is stable within the target range of ±3%RH; Light avoidance control: For photosensitive drugs, the storage compartment is equipped with an electromagnetic light shield, which automatically closes after receiving the "light avoidance" command from the corresponding drug file, with a light-shielding rate > 99%.

[0044] When a bottle replacement instruction is received (such as manual scanning to replace an empty bottle) or a dispensing completion signal is received (the dispensing and sealing module provides feedback on the completion status), the computer control equipment activates the negative pressure suction module (power adjustable vacuum pump, air pressure range 5-20kPa).

[0045] The suction port, via a robotic arm or fixed pipe, is aimed at the dispensing station, the medicine bottle placement area, and the surrounding 20cm area. It blows at a preset air pressure (e.g., 15kPa) for 10-30 seconds (the duration can be dynamically adjusted based on historical residue data), sucking powder residue and liquid droplets into the high-efficiency filter collection device (containing a HEPA filter and activated carbon layer, with a filtration accuracy ≥0.3μm). After blowing, the system automatically records the operation time, air pressure, duration, and other parameters, storing them in the equipment log. A filter replacement reminder is sent to the maintenance terminal after 50 cumulative blows.

[0046] Step S104. When an electronic prescription is received, the medication information and dosage requirements in the electronic prescription are analyzed, the dispatching and conveying components are used to transport the corresponding medicine bottle to the dispensing station, the smart cap is controlled to perform weight and volume measurement according to the prescription dosage, after the measurement is completed, the mixed medicine is dispensed and sealed, and traceability information including dispensing time, prescription code and patient information is printed on the packaging through the printing unit.

[0047] Specifically, the fully automated dispensing process is driven by electronic prescriptions, and dosage accuracy is ensured through dual-dimensional measurement. The process is made traceable throughout by combining dispensing and sealing with blockchain technology.

[0048] Prescription format recognition, achieved through a computer-controlled prescription parsing module, supports multiple format parsing methods, including: standard medical formats: HL7 v2 / XSD (structured data), FHIR resources (RESTful interface); document formats: PDF (using OCR technology to identify key information), Excel spreadsheets (template matching required). Key information extracted includes: generic / brand name of the drug, dosage value (e.g., 20mg), dosage unit (mg / ml), frequency of administration (3 times / day), patient medical record number, and unique prescription identifier.

[0049] Dosage unit verification and standardization automatically converts the dosage units in the prescription (e.g., "ml") to a unified measurement standard by matching the dosage unit conversion relationship in the medication file (e.g., 1ml = 50mg) (e.g., converting "20mg" to "0.4ml"). If the units do not match (e.g., the prescription says "g" but the file does not have a corresponding conversion), a manual review pop-up is triggered. Standardized dispensing instructions are generated, including the target medication number, target dosage value (e.g., medication A-001, target dosage 0.4ml), and patient identification information.

[0050] The conveying component performs scheduling as follows: Based on dispensing instructions, the conveying component retrieves the target vial from the storage compartment, supporting three conveying methods: Track-based conveying: Positioned to the designated compartment via a circular guide rail and intelligent trolley, suitable for large pharmacies with fixed layouts; Robotic arm grasping: A six-axis robotic arm equipped with a vision recognition system accurately grasps vials of different sizes and places them in the dispensing station slots; AGV carrier: An unmanned transport vehicle automatically navigates to the compartment, suitable for distributed storage scenarios. Once the vial is in place, the alignment sensor (infrared beam / pressure sensor) on the robotic arm confirms a sealed connection between the bottle cap and the intelligent cap, ensuring leak-free dispensing.

[0051] The dual-dimensional measurement and cross-validation include: weight measurement: the smart cap weight sensor acquires the real-time drug weight W (accuracy ±0.1g), and calculates the remaining weight by combining it with the initial bottle weight; volume measurement: the real-time volume V (accuracy ±0.05ml) is acquired through a volume measurement unit (such as a capacitive liquid level sensor or a piston-type metering chamber); cross-validation: according to the drug density formula (density = weight / volume), if the error between the calculated density and the preset density in the file is >1% (excluding normal volatilization factors), it is judged as a measurement abnormality, and a secondary measurement is automatically initiated and the cause of the deviation is recorded.

[0052] The dispensing process includes: after confirming that the dosage meets the standards, controlling the peristaltic pump (accuracy ±0.5%) or valve assembly of the dispensing machine to inject the drug into the pre-sterilized polypropylene / glass packaging container, supporting single-dose dispensing (e.g., 5ml vials) or multi-dose bags (e.g., 100ml infusion bags). After dispensing, sealing is achieved through a heat-sealing machine (temperature control ±5℃) or a film-sealing process. The seal strength detection module automatically verifies the seal performance (e.g., pressure test leakage rate <0.1%), and unqualified products are marked as defective and isolated.

[0053] The printing unit receives traceability data generated by the computer-controlled equipment, including: basic information: dispensing completion timestamp (accurate to the second), prescription code, patient name, and medical record number; process data: inventory change value (weight difference before and after dispensing), environmental parameters (temperature 25℃ / humidity 55%RH during dispensing), and measurement data (weight 20.1mg / volume 0.402ml). The information is printed on the side of the packaging using laser marking technology (font height ≥2mm). Simultaneously, the above data undergoes blockchain hashing to generate a unique traceability code, which is linked to the hospital's information system's blockchain node to ensure data immutability. Finally, the traceability information is synchronously uploaded to the hospital's traceability database, supporting barcode scanning to query the entire dispensing process record (all operation logs from medication registration to dispensing completion).

[0054] In some embodiments, please refer to Figures 1-2This application provides a dynamic inventory management and environmental control device for intelligent dispensing, including multiple medicine bottles, a machine body, a conveying assembly, a metering and mixing assembly, a dispensing and printing assembly, and a computer control device; the medicine bottles are used to load any one of bulk granules, powders, or liquid preparations, and the bottle openings are equipped with locking rings, with identification information on the bottle body; the machine body includes a closed shell, a support frame, and an environmental control assembly, the closed shell including a medicine bottle replacement and replenishment window, an observation window, and an empty bottle exit port, and the environmental control assembly is used to achieve constant temperature, constant humidity, purification, and negative pressure suction; the conveying assembly is ring-shaped. The chain conveyor belt includes an openable slot and a triggering device. A pre-set mechanical hand and photoelectric scanner are used to open the slot and identify the identification information. The metering and mixing component includes a smart cap, an installation component, a dispensing support, and a mixing tank. The smart cap integrates weight and volume measurement functions. The installation component snaps the smart cap to the medicine bottle. The dispensing support fixes the medicine bottle and is powered on. The mixing tank centrally mixes the medicine. The dispensing and printing component seals the mixed medicine in single-use packages and prints the medicine information. The computer control equipment is used to generate dispensing instructions, manage medicine inventory, provide early warning of shortages, and regulate the ambient temperature and humidity.

[0055] Specifically, this system addresses the shortcomings of traditional dispensing systems in terms of automation, metering accuracy, environmental control, collaborative efficiency, and traceability. Through integrated hardware design and intelligent software control, it constructs a closed-loop system covering the entire process, achieving fully automated operations from drug storage, precise metering, intelligent mixing, compliant dispensing, to data traceability. The core technology revolves around six major components, each achieving information interaction and coordinated action through computer-controlled equipment.

[0056] The medicine bottles are used to hold bulk granules, powders, or liquid preparations. The bottle opening is equipped with a locking ring (such as a standard threaded lock or a flexible claw structure) that mechanically engages with the smart cap mounting assembly of the metering and mixing unit. The bottle body is labeled with a barcode / QR code (storing parameters such as the medicine name, specifications, initial weight, shelf life, and storage conditions), supporting rapid identification by a photoelectric scanner. Medicine is loaded into the bottle through the bottle replacement window on the machine body. The locking ring and the smart cap mounting assembly automatically align and engage, forming a sealed connection. Upon initial loading, the computer-controlled equipment reads the labeling information via a scanner and, in conjunction with manual input or integration with the hospital's HIS system, establishes a medicine file (including initial bottle weight, dosage unit conversion, temperature and humidity sensitivity level, etc.).

[0057] The unit features a sealed outer shell (stainless steel / ABS antibacterial material) with an internal support frame to secure all components. It includes an observation window (explosion-proof glass), a medicine bottle replacement window (with a magnetic sealing door), and an empty bottle ejection port (automatic sliding door). Environmental control components include: a constant temperature module with an embedded heating wire (200W) and a semiconductor cooling chip (TEC1-12706), working in conjunction with a temperature sensor (accuracy ±0.5℃) for real-time adjustment, supporting a wide temperature range of 2-40℃; a constant humidity module with a dehumidifier (rotary type) and an ultrasonic humidifier, automatically activating a low humidity mode (≤40%RH) for hygroscopic powders (such as amoxicillin granules) and maintaining a constant humidity (50±5%RH) for liquid preparations based on humidity sensor data (accuracy ±2%RH); and a purification module with a three-stage filtration system (pre-filter + activated carbon layer + HEPA filter). When the dust concentration sensor reading exceeds the limit (>0.5mg / m³), the system will activate the humidifier. 3 The system automatically increases the fan speed to high speed; the negative pressure suction module: before replacing medicine bottles or after dispensing, it blows the operating area through the top suction port (wind speed ≥10m / s) to prevent the spread of medicine powder. The computer-controlled equipment dynamically adjusts the parameters of each environmental module according to the storage requirements indicated on the medicine bottle (e.g., the "thermal sensitive" label triggers a 2-8℃ low-temperature mode) using a PID algorithm, recording and archiving temperature and humidity data every 5 minutes.

[0058] The conveyor system is a ring-shaped chain conveyor belt (100mm link spacing), with each link equipped with an openable slot (electromagnetically controlled). It works in conjunction with a robotic arm (six-axis robot arm, positioning accuracy ±0.1mm) and a photoelectric scanner (reading speed ≤0.2 seconds / time). The computer-controlled equipment uses a scheduling algorithm (based on a path planning model optimized by a genetic algorithm) to schedule the transport path of medicine bottles according to prescription priority (emergency prescriptions > regular prescriptions). It monitors the conveyor belt position (encoder feedback) and the robotic arm status in real time to avoid positioning conflicts (e.g., dynamically adjusting the waiting position of one bottle if two bottles arrive at the dispensing station simultaneously). The conveyor belt runs at a constant speed of 0.5m / s. The scanner identifies the bottle barcode in real time. When the target bottle is three links away from the dispensing station, a preheating device is triggered to heat the cap mounting assembly. Upon arrival at the station, the slot electromagnetic device de-energizes and releases the bottle, and the robotic arm grasps and moves it to the dispensing support (secured by an electromagnetic chuck).

[0059] The smart cap integrates: a weight measurement unit with a high-precision pressure sensor (range 0-500g, accuracy ±0.05g) to collect real-time changes in bottle weight; a volume measurement unit with a plunger-type dispensing chamber (adjustable volume 0.1-50mL), where liquid preparations are measured by an infrared level sensor (accuracy ±0.1mm), and granules / powders are quantitatively delivered by a screw propeller (1mm pitch); and a density compensation module with a capacitive humidity sensor to detect moisture content (resolution 0.1%RH), a laser scattering instrument to measure particle size distribution, and historical data to establish a density model (e.g., ρ=k*(1-ω) / d, where ω is moisture content and d is average particle size), automatically calibrating the weight-to-volume conversion relationship. The mixing tank is made of stainless steel and has a built-in vortex mixer (adjustable speed 0-3000rpm). After dispensing, an air shower self-cleaning function is activated (compressed air pressure 0.6MPa, purging time 10 seconds).

[0060] The computer-controlled equipment prioritizes volumetric metering for initial sampling (250 μL pre-sampling in the plunger chamber) based on the prescription dosage (e.g., "amoxicillin granules 0.25 g / dose"), and then uses a weight sensor for fine calibration (a second sampling is triggered when the error is > ±1%). Multiple drugs are added to the mixing tank in the order of "powder first, then liquid". The vortex mixer runs at 2000 rpm for 30 seconds to ensure uniform mixing.

[0061] The dosage dispensing unit includes: a servo motor-driven screw propeller (for powder / granules) or a peristaltic pump (for liquid formulations), with an accuracy of ±0.5%FS; the sealing and packaging unit consists of an aluminum-plastic composite film roll (0.15mm thick) and a heat-sealing device (temperature control ±2℃, pressure 50N / cm). 2 Supports three-sided or four-sided sealing; Printing unit: industrial-grade inkjet printer (300dpi resolution), synchronously prints variable information (prescription code, patient name, method of administration, dispensing time, shelf life), and uploads data to the computer control equipment database in real time (storage time ≥ 5 years).

[0062] The dispensing process includes: the mixed medication is delivered to the dispensing mold through a catheter (4mm inner diameter) (the volume of the single-dose cavity matches the prescription requirements), and the servo motor precisely controls the advance distance according to the pulse signal (1 pulse = 0.1mg medication); the prescription code of each individual package is associated with the entire dispensing process data (such as smart cap number, environmental parameters, dispensing timestamp), and supports scanning the code to query the hospital pharmacy management system.

[0063] The computer-controlled equipment is based on an industrial-grade PLC controller (1.5GHz CPU, 8GB memory) and equipped with customized control software. Its functions include: prescription processing: receiving electronic prescriptions from the HIS system, parsing information such as drug name, dosage (supporting conversion between "tablets," "grams," and "milliliters"), and frequency using NLP algorithms, and automatically verifying prescription compliance (e.g., dosage over-limit warning); inventory management: calculating remaining inventory in real time based on "initial bottle weight - cumulative dispensing volume," triggering an audible and visual alarm when inventory falls below a safety threshold (e.g., 10% capacity), and sending a replenishment request to the pharmacy management system; collaborative control: communicating with each component via the Modbus protocol, collecting system status data (e.g., conveyor belt speed, smart cap pressure) every 10ms, automatically pausing and generating fault codes in case of abnormalities (e.g., mechanical tentacles failing to return to their original position). Operators monitor the system status via a 10.1-inch touchscreen (1280×800 resolution), supporting manual intervention (e.g., emergency stop, single-step debugging), and all operation records are synchronously generated into an audit trail log.

[0064] The computer-controlled equipment receives electronic prescriptions via network port, parses them, and generates dispensing instructions (including a drug list, environmental parameters, and dispensing sequence). Operators load the corresponding drugs into the bottle via the replacement window, and the scanner automatically records the identification information. A conveyor belt carries the bottles, and the scanner identifies the target drugs in real time. Upon arrival at the dispensing station, a robotic arm grasps the bottle and places it on the dispensing support. The smart cap engages with the bottle neck locking ring and is powered on. The smart cap extracts the dosage using a "volume initial measurement + weight fine-tuning" mode. Multiple drugs are sequentially added to the mixing tank, where a vortex mixer stirs according to a preset program. After completion, an air shower cleans the smart cap and the inner wall of the mixing tank. The mixed drugs are dispensed into an aluminum-plastic film mold via a quantitative device, heat-sealed, and then printed with a unique prescription code and patient information. The data is simultaneously archived in the database. Empty bottles are returned to the conveyor belt by the robotic arm and discharged through the empty bottle exit. A negative pressure suction module activates to purge the operating area, and the environmental control components adaptively adjust the temperature and humidity according to the next dispensing task.

[0065] In some embodiments, the process of establishing a drug record, which includes an initial bottle weight, a dosage unit conversion relationship, and a temperature and humidity sensitivity level, includes: fusing data from barcode identification information read by the photoelectric scanner with manually input supplementary information, or obtaining basic drug data by connecting to a hospital information system through a data interface; establishing a conversion relationship between the initial bottle weight and dosage unit based on the initial weight and drug specifications; and presetting temperature and humidity sensitivity level parameters according to the temperature and humidity requirements in the storage conditions; the supplementary information includes at least the drug specifications and production batch number.

[0066] By using multi-source data fusion technology to establish drug records, integrating barcode scanning information, manually supplemented information, and data from hospital system interfaces, a basic data model is constructed that includes initial bottle weight, dosage conversion relationships, and temperature and humidity sensitivity levels.

[0067] Multi-source data acquisition and fusion obtains basic information (drug name, initial weight, shelf life, storage conditions) by reading barcodes using an optoelectronic scanner. If information is missing (such as drug specifications or production batch number), it can be manually entered and supplemented through the device's touch screen or a matching terminal. It supports direct connection to the hospital's HIS system through medical data interfaces such as HL7 / FHIR, automatically synchronizing standardized data such as drug approval number and ingredient composition, and matching fields with scanned / manually entered information (such as binding the "production batch number" to the physical drug bottle).

[0068] The initial bottle weight includes: subtracting the preset packaging weight (the system has a built-in standard packaging weight library for different bottle materials, such as 20g for a 50ml glass bottle) from the "initial weight" of the barcode, or obtaining the net drug weight after empty calibration by the smart cap sensor; Dosage unit conversion relationships include: establishing a mathematical conversion model based on drug specifications (such as "100ml:5g"), generating a unit mapping table of "1ml=50mg", and supporting user-defined corrections (such as considering differences in drug density). Temperature and humidity sensitivity levels include mapping the temperature and humidity requirements in storage conditions to three preset parameters (Level I / Level II / Level III). For example, "2-8℃, 45-60%RH" corresponds to Level I. The system automatically marks and associates these parameters with subsequent environmental control strategies.

[0069] In some embodiments, the step of dynamically calculating the remaining amount in the medicine bottle based on the initial bottle weight in the medicine file and the cumulative amount of medicine taken in real time by the weight sensor of the smart cap includes: acquiring the instantaneous weight change value after each medicine take-out in real time through the weight sensor corresponding to the smart cap, generating the cumulative amount of medicine taken out based on the cumulative summation of the time series, and obtaining the real-time remaining amount by subtracting the cumulative amount of medicine taken out from the initial bottle weight. The calculation process of the remaining amount is automatically executed and updated in real time by the inventory management module of the computer control device.

[0070] By collecting real-time weight changes based on a smart cap weight sensor and dynamically tracking drug consumption through a time-series cumulative algorithm, the remaining stock can be calculated automatically and accurately.

[0071] The smart cap has a built-in MEMS pressure sensor (accuracy ±0.1g). After each medication dispensing operation (such as rotating the cap to open or drawing out the medication), data acquisition is triggered. The "weight before dispensing" and "weight after dispensing" are transmitted to the computer control device in real time via BLE 5.0. The instantaneous change value ΔW = weight after dispensing - weight before dispensing (a negative value indicates that the medication has been taken out).

[0072] The inventory management module maintains a ΔW array sorted by timestamp. Each time new data is added, it automatically accumulates to generate the cumulative drug dispensing amount ΣΔW (the sum of absolute values). It supports marking abnormal data (e.g., triggering a manual confirmation pop-up when a single ΔW > 30% of the drug specification). When the drug is changed or sensor offset is detected, the system automatically corrects the cumulative drug dispensing amount ΣΔW by scanning the code to input the current actual inventory.

[0073] In some embodiments, controlling the environmental control component to adjust the storage environment inside the machine according to the storage conditions in the drug file includes: collecting environmental parameters in real time through temperature and humidity sensors, and automatically activating the heating wire or semiconductor cooling chip to adjust the temperature and controlling the dehumidifier or humidifier to adjust the humidity when the temperature is detected to deviate from the preset range.

[0074] Based on the storage conditions in the drug records, the temperature and humidity sensors monitor in real time and work in conjunction with the actuators to achieve adaptive and precise adjustment of the storage environment.

[0075] Real-time environmental parameter monitoring is achieved by deploying high-precision temperature and humidity sensors (temperature accuracy ±0.5℃, humidity accuracy ±2%RH) in different areas inside the device. Data is collected every 10 seconds and uploaded to the computer control equipment, and compared in real time with the preset range of temperature and humidity sensitivity levels in the drug file.

[0076] Temperature regulation is achieved by automatically activating the semiconductor cooling chip (cooling efficiency 0.5℃ / min) when the detected temperature exceeds the preset upper limit (e.g., for Class I reagents > 8℃); and activating the heating wire (heating efficiency 1℃ / min) when the temperature falls below the lower limit (< 2℃). The temperature fluctuation is controlled to be ≤ ±0.3℃ through a PID algorithm. Humidity is regulated by activating the dehumidifier (5L / hour dehumidification capacity) when humidity exceeds the target upper limit and activating the ultrasonic humidifier (300ml / hour atomization capacity) when humidity is below the target lower limit, ensuring that the humidity remains stable within the preset range of ±3%RH.

[0077] In some embodiments, activating the negative pressure suction module to purge the operation area before replacing the medicine bottle or after dispensing includes: activating the negative pressure suction module through preset triggering conditions, controlling the suction port of the module to align with the medicine bottle placement position, dispensing support and surrounding area of ​​the operation area, and purging with preset air pressure and duration to suck residual medicine powder or liquid residue into the filter collection device, automatically stopping and recording the purging operation time after purging is completed; wherein, the preset triggering conditions include receiving a replacement command or a dispensing completion signal.

[0078] After the medicine bottle is replaced or the medicine is dispensed, the operating area is purged and cleaned by a negative pressure suction module to remove residual medicine and avoid cross-contamination.

[0079] When the computer control equipment receives a "vase replacement instruction" (triggered when a medicine bottle is manually removed by scanning the code) or a "dispensing completion signal" (reported as completed by the dispensing and sealing module), it automatically activates the negative pressure suction module (power adjustable from 100-300W). The suction port is positioned in the operating area (covering the dispensing station, medicine bottle placement area, and a 20cm radius around the bottle) via a robotic arm or fixed pipeline. It then blows at a preset air pressure (e.g., 18kPa) for 15-45 seconds (dynamically adjusted based on historical residual data, default 20 seconds), drawing powder and droplets into the built-in HEPA filter (filtration efficiency ≥99.97%@0.3μm). After blowing, the system automatically records the operation time, air pressure, duration, and other parameters, storing them in the equipment log. A filter replacement reminder is sent to the maintenance terminal after 100 cumulative blows.

[0080] In some embodiments, the step of recording and storing environmental parameters collected by the temperature and humidity sensor at a preset frequency to form an environmental data log includes: setting the temperature and humidity data collection frequency through the computer control device, having the temperature and humidity sensor collect ambient temperature and relative humidity values ​​in real time at the preset frequency, automatically generating a timestamped record entry each time data is collected, storing it in a local database in chronological order or synchronizing it to a cloud server via a network, and the environmental data log includes a storage area number, collection time, temperature value, humidity value, and a comparison result of a preset range corresponding to the temperature and humidity sensitivity level.

[0081] Collect temperature and humidity data at a preset frequency and generate time-stamped environmental logs to establish a time-traceable environmental parameter recording system.

[0082] Data acquisition and formatting are controlled by a computer that supports customizable temperature and humidity sampling frequencies (5 seconds / sample for sensitive drugs, 1 minute / sample for common drugs). Temperature and humidity sensors generate data at the set frequency, and each record is automatically appended with a timestamp accurate to milliseconds (e.g., 2025-08-20T18:19:14.035Z). Log entries include: storage area number, sampling time, temperature value, humidity value, and comparison results of preset ranges corresponding to the temperature and humidity sensitivity level (e.g., "Temperature Normal" "Humidity Exceeds Standard"). Log data is stored on a local solid-state drive in CSV or database table format and simultaneously synchronized to the hospital's cloud server via HTTPS encryption. It supports searching by "drug name + time interval" and generates environmental parameter change curves (e.g., temperature trend charts, humidity fluctuation tables).

[0083] In some embodiments, when an electronic prescription is received, parsing the drug information and dosage requirements in the electronic prescription includes: identifying the standard data format of the electronic prescription through the prescription parsing module of the computer control device, extracting the generic / trade name of the drug, dosage value, dosage unit, frequency of use, and patient identification information from the prescription, matching and verifying the dosage unit with the dosage unit conversion relationship in the drug file, and generating standardized dispensing instruction data; wherein, the dispensing instruction data includes the target drug number and the target dosage value.

[0084] By analyzing the drug and dosage information in electronic prescriptions and generating standardized dispensing instructions through unit conversion verification, the compatibility between prescription data and drug records is ensured.

[0085] The prescription parsing module supports formats such as HL7 v2, FHIR, PDF (OCR recognition), and Excel, extracting key information such as generic / trade name of the drug, dosage value (e.g., "20"), dosage unit (e.g., "mg"), frequency of use, patient medical record number, and unique prescription identification code. For unstructured data (e.g., handwritten PDF), it uses a deep learning OCR model for recognition, triggering a manual review process when recognition fails.

[0086] Unit conversion and instruction generation automatically converts prescription dosage units (e.g., "ml") to a unified measurement standard (e.g., "20mg" is converted to "0.4ml") by matching the dosage unit conversion relationship in the medication file (e.g., "1ml=50mg"). If the units do not match (e.g., the prescription contains "g" but the file does not have a corresponding conversion), a pop-up window prompts for manual correction. Standardized dispensing instructions are generated, including the target medication number (e.g., A-001), the target dosage value (0.4ml), and patient identification information (medical record number is encrypted and stored).

[0087] In some embodiments, the scheduling and conveying component transports the corresponding medicine bottle to the dispensing station, controls the smart cap to perform dual-dimensional measurement of weight and volume according to the prescription dosage, and after measurement, dispenses and seals the mixed medicine. This includes: the conveying component, according to the scheduling instructions of the computer control device, transports the target medicine bottle from the storage compartment to the positioning slot of the dispensing station via a track-type transmission mechanism, a robotic arm, or an AGV carrier; the alignment sensor of the robotic arm ensures the sealed connection between the medicine bottle and the smart cap; the smart cap first obtains the real-time weight of the medicine through a weight sensor, and then obtains the real-time volume data through a volume measurement unit; cross-validation is performed based on the dual-dimensional measurement values ​​of weight and volume; after confirming that the prescription dosage requirement is met, the peristaltic pump or valve assembly of the dispensing machine is controlled to inject the medicine into the pre-sterilized packaging container, and the sealing is completed by heat sealing or film pressing.

[0088] The medicine bottles are dispatched to the dispensing station by the conveyor component, and the smart cap is used to achieve dual-dimensional measurement of weight and volume. Combined with the dispensing and sealing process, accurate dispensing is completed.

[0089] The conveying components support multiple transmission methods: track-type conveying mechanism (suitable for fixed silos), six-axis robotic arm (with vision recognition, positioning accuracy ±1mm), AGV carrier (suitable for distributed storage), and automatically select the optimal path according to the equipment layout; After the medicine bottle arrives at the dispensing station, the alignment sensor (infrared beam + pressure feedback) of the mechanical hand confirms that the bottle cap and the smart cap are sealed and connected, ensuring that there is no leakage during the metering process (sealing detection pressure ≥5kPa).

[0090] The dual-dimensional metering and dispensing process includes: Weight metering: The smart cap sensor acquires the real-time weight W of the medicine, and calculates the weight taken (initial bottle weight - current weight) by combining it with the initial bottle weight; Volume metering: The volume metering unit (such as a piston metering pump with an accuracy of ±0.05ml) directly measures the volume V taken out, and cross-validates it using the density formula (density = weight / volume). If the error with the preset density in the archive is >1.5%, a second metering is initiated; During dispensing, the peristaltic pump (flow rate accuracy ±0.5%) is controlled to inject the medicine into the pre-sterilized container. After completion, it is sealed by a heat sealer (temperature control ±5℃). After the seal strength test is qualified (pressure test shows no leakage), it proceeds to the next stage.

[0091] In some embodiments, the step of printing traceability information, including dispensing time, prescription code, and patient information, onto the packaging via a printing unit includes: the printing unit receiving traceability information data generated by the computer control device, printing the information onto a designated area of ​​the packaging container using thermal transfer, laser coding, or inkjet printing technology, and simultaneously associating the traceability information with inventory change data, environmental parameter logs, and measurement data during the dispensing process using blockchain hashing to form an immutable full-process traceability chain for dispensing, which is then uploaded in real time to the traceability database of the hospital information system for archiving; the traceability information data includes a dispensing completion timestamp, a unique prescription identification code, the patient's name, and medical record number.

[0092] Traceability information is generated on packaging using inkjet printing technology, and the entire process data of the formulation is linked to a blockchain to form an immutable traceability chain.

[0093] The traceability information generation and printing process integrates information such as dispensing timestamp (accurate to the second), prescription unique identification code, patient name (de-sensitized), medical record number, inventory change value, environmental parameters, and measurement data through computer-controlled equipment to generate a traceability dataset. The printing unit supports laser coding (high temperature resistant, suitable for glass containers), thermal transfer printing (suitable for plastic packaging), and ink printing (high contrast) to print information on designated areas of the packaging (font height ≥ 2mm, scannable).

[0094] By performing SHA-256 hashing on the traceability dataset, a unique hash value is generated and linked with the hash value of the previous block in the blockchain node to form an immutable traceability chain. The traceability data is uploaded to the hospital's traceability database in real time, and the entire process log (all operation records and environmental parameters from drug filing to dispensing) can be queried by scanning a code. The data storage complies with relevant regulatory requirements.

[0095] Please see Figure 4 As shown, Figure 4 This is a schematic diagram of the structure of a dynamic inventory management and environmental control system 200 for intelligent dispensing provided in an embodiment of this application. The dynamic inventory management and environmental control system 200 for intelligent dispensing is used to execute the steps of the dynamic inventory management and environmental control methods for intelligent dispensing shown in the above embodiments. The dynamic inventory management and environmental control system 200 for intelligent dispensing can be a single server or a server cluster, or it can be a terminal, such as a handheld terminal, a laptop computer, a wearable device, or a robot.

[0096] like Figure 4 As shown, the dynamic inventory management and environmental control system 200 for intelligent dispensing includes: The identification unit 201 is used to read the barcode identification information on the body of the medicine bottle through a photoelectric scanner. The identification information includes the name of the medicine, the initial weight, the shelf life and storage conditions, and is used to establish a medicine file. The medicine file includes the initial bottle weight, the dosage unit conversion relationship and the temperature and humidity sensitivity level. The medication collection unit 202 is used to dynamically calculate the remaining amount in the medicine bottle based on the initial bottle weight in the medication file and the cumulative amount of medication collected in real time by the smart cap weight sensor. When the remaining amount is lower than a preset safety threshold, it triggers an audible and visual alarm and sends a replenishment request to the pharmacy management system. The log forming unit 203 is used to control the environmental control component to adjust the storage environment inside the machine body according to the storage conditions in the medicine file. Before the medicine bottle is replaced or after the preparation is completed, the negative pressure suction module is activated to purge the operation area. The environmental parameters collected by the temperature and humidity sensor are recorded and stored at a preset frequency to form an environmental data log. The sealing completion unit 204 is used to parse the drug information and dosage requirements in the electronic prescription when it receives the electronic prescription, dispatch the conveying component to transport the corresponding medicine bottle to the dispensing station, control the smart cap to perform weight and volume measurement according to the prescription dosage, and after the measurement is completed, dispense and seal the mixed medicine, and print traceability information including dispensing time, prescription code and patient information on the packaging through the printing unit.

[0097] It should be noted that those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the dynamic inventory management and environmental control system for intelligent dispensing and each module described above can be referred to the corresponding contents in the various embodiments of the dynamic inventory management and environmental control method for intelligent dispensing, and will not be repeated here.

[0098] The aforementioned dynamic inventory management and environmental control method for intelligent dispensing can be implemented as a computer program, which can be used in, for example... Figure 4 It runs on the device shown.

[0099] Please see Figure 5 , Figure 5 This is a schematic block diagram of the structure of a computer control device provided in an embodiment of this application. The computer control device includes a processor, a memory, and a network interface connected via a system bus, wherein the memory may include a storage medium and internal memory.

[0100] The storage medium may store an operating system and a computer program. The computer program includes program instructions that, when executed, cause a processor to perform any embodiment of a dynamic inventory management and environmental control system for intelligent dispensing.

[0101] The processor provides computing and control capabilities, supporting the operation of the entire computer control system.

[0102] Internal memory provides an environment for the execution of computer programs in non-volatile storage media. When executed by a processor, the computer program enables the processor to execute any method based on dynamic inventory management and environmental control systems for intelligent dispensing.

[0103] This network interface is used for network communication, such as sending assigned tasks. Those skilled in the art will understand that... Figure 5 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the terminal to which the present application is applied. Specific computer control devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0104] It should be understood that the processor can be a Central Processing Unit (CPU), but it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among these, a general-purpose processor can be a microprocessor or any conventional processor.

[0105] In one embodiment, the processor is configured to run a computer program stored in memory to perform the following steps: It receives clinical electronic prescriptions, identifies the drug type, dosage, frequency of administration, and patient information in the prescriptions, and generates execution instructions including dispensing order and environmental parameters; it inserts the drug bottle to be dispensed through the bottle replacement and replenishment window, and the bottle mouth buckle connects with the smart cap mounting component; the photoelectric scanner scans the identification information on the bottle body to obtain the drug type, volume, shelf life, and initial bottle weight; The ring-shaped chain conveyor belt of the control conveyor component carries the medicine bottle, and the photoelectric scanner scans and identifies the target medicine bottle in real time; when the medicine bottle arrives at the dispensing station, the computer control equipment sends a command to the trigger device to open the conveyor belt slot and release the medicine bottle; the mechanical tentacles grab the medicine bottle and transfer it to the dispensing support of the metering and mixing component; The smart cap uses a weight sensor to weigh the medicine in the bottle in real time and uses a volumetric measuring chamber to measure the dosage required by the prescription. Combined with real-time detection of the medicine's moisture content and particle size data, the system automatically calibrates the correspondence between weight and volume to ensure the accurate extraction of the smallest dosage unit. After measurement, each type of medicine is put into the mixing tank in sequence. The mixing tank has a built-in stirring device or vortex mixer to mix evenly according to the preset time. After each preparation is completed, the smart cover starts the micro air shower self-cleaning device to remove the residual medicine inside. At the same time, the negative pressure suction air shower device of the mixing tank is turned on to clean the inner wall of the tank and avoid cross-contamination. The dispensing and printing unit, based on the prescription single-dose dosage, uses a servo motor-driven quantitative dispensing device to divide the mixed medicine into aluminum-plastic composite film molds; the hot-press sealing device automatically adjusts the temperature according to the film material characteristics to complete the sealed packaging and form an independent unit; the printing unit simultaneously prints the prescription code on the surface of the packaging film; the empty bottles after medicine extraction are transferred to the conveyor belt by mechanical tentacles and discharged from the system through the empty bottle exit port; the entire process data of this dispensing is recorded to generate a traceable dispensing log.

[0106] It should be noted that those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the processor described above can be referred to the corresponding process in the method embodiments of the above embodiments, and will not be repeated here.

[0107] The embodiments of this application also provide a computer-readable storage medium storing a computer program, the computer program including program instructions, and the processor executing the program instructions to implement the steps of the dynamic inventory management and environmental control system for intelligent dispensing provided in the above embodiments of this application.

[0108] The computer-readable storage medium can be an internal storage unit of the computer control device described in the foregoing embodiments, such as the hard disk or memory of the computer control device. Alternatively, the computer-readable storage medium can be an external storage system of the computer control device, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card equipped on the computer control device.

[0109] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for dynamic inventory management and environmental control of intelligent dispensing, characterized in that, include: The barcode information on the medicine bottle is read by a photoelectric scanner. The information includes the medicine name, initial weight, shelf life and storage conditions, which is used to establish a medicine file. The medicine file includes the initial bottle weight, dosage unit conversion relationship and temperature and humidity sensitivity level. Based on the initial bottle weight in the medicine file and the cumulative amount of medicine taken in real time by the smart cap weight sensor, the remaining amount in the medicine bottle is dynamically calculated. When the remaining amount is lower than the preset safety threshold, an audible and visual alarm is triggered and a replenishment request is sent to the pharmacy management system. According to the storage conditions in the drug file, the environmental control component adjusts the storage environment inside the machine body, and the negative pressure suction module is activated to purge the operation area before the medicine bottle is replaced or after the preparation is completed. Record and store the environmental parameters collected by the temperature and humidity sensor at a preset frequency to form an environmental data log; When an electronic prescription is received, the medication information and dosage requirements in the electronic prescription are analyzed. The dispatching and conveying components transport the corresponding medicine bottle to the dispensing station. The smart cap is controlled to perform dual-dimensional measurement of weight and volume according to the prescription dosage. After the measurement is completed, the mixed medicine is dispensed and sealed. The printing unit prints traceability information including dispensing time, prescription code and patient information on the packaging.

2. The method according to claim 1, characterized in that, The method for establishing a drug record includes the initial bottle weight, dosage unit conversion relationship, and temperature and humidity sensitivity level, including: The data is fused by the barcode identification information read by the photoelectric scanner and the supplementary information entered manually, or by connecting to the hospital information system through the data interface to obtain the basic data of the medicine. Based on the initial weight and medicine specifications, the conversion relationship between the initial bottle weight and the dosage unit is established, and the temperature and humidity sensitivity level parameters are preset according to the temperature and humidity requirements in the storage conditions. The supplementary information includes at least the drug specification and production batch number.

3. The method according to claim 1, characterized in that, The step of dynamically calculating the remaining amount of medicine in the bottle based on the initial bottle weight in the medicine file and the cumulative amount of medicine taken in real time by the smart cap weight sensor includes: The instantaneous weight change value after each medicine dispensing is obtained in real time by the weight sensor corresponding to the smart cap. The cumulative dispensing amount is generated by summing the time series data. The real-time remaining stock is obtained by subtracting the cumulative dispensing amount from the initial bottle weight. The calculation process of the remaining stock is automatically executed and updated in real time by the stock management module of the computer-controlled device.

4. The method according to claim 1, characterized in that, The step of adjusting the storage environment within the machine body according to the storage conditions in the drug file includes: The system collects environmental parameters in real time using temperature and humidity sensors. When the temperature deviates from the preset range, it automatically activates the heating wire or semiconductor cooling chip to adjust the temperature and controls the dehumidifier or humidifier to adjust the humidity.

5. The method according to claim 1, characterized in that, The step of activating the negative pressure suction module to purge the operating area before replacing the medicine bottle or after dispensing includes: The negative pressure suction module is activated by a preset trigger condition, and the suction port of the module is controlled to be aligned with the medicine bottle placement position, dispensing support and surrounding area of ​​the operation area. It is then purged with preset wind pressure and duration to suck the residual medicine powder or liquid residue into the filter collection device. The purging is automatically stopped after the purging is completed and the purging operation time is recorded. The preset triggering conditions include receiving a replacement instruction or a dosing completion signal.

6. The method according to claim 1, characterized in that, The process of recording and storing environmental parameters collected by temperature and humidity sensors at a preset frequency to form an environmental data log includes: The computer control device sets the frequency of temperature and humidity data acquisition. The temperature and humidity sensor collects the ambient temperature and relative humidity values ​​in real time according to the frequency. Each time data is collected, a record entry with a timestamp is automatically generated and stored in the local database in chronological order or synchronized to the cloud server via the network. The environmental data log includes the storage area number, acquisition time, temperature value, humidity value, and the comparison result of the preset range corresponding to the temperature and humidity sensitivity level.

7. The method according to claim 1, characterized in that, When an electronic prescription is received, parsing the medication information and dosage requirements in the electronic prescription includes: The computer-controlled device's prescription parsing module identifies the standard data format of electronic prescriptions, extracts the generic / trade name of the drug, dosage value, dosage unit, frequency of use, and patient identification information from the prescription, matches and verifies the dosage unit with the dosage unit conversion relationship in the drug file, and generates standardized dispensing instruction data. The dosing instruction data includes the target drug number and the target dosage value.

8. The method according to claim 1, characterized in that, The scheduling and conveying component transports the corresponding medicine bottle to the dispensing station, controls the smart cap to perform dual-dimensional measurement of weight and volume according to the prescription dosage, and after measurement, dispenses and seals the mixed medicine, including: According to the scheduling instructions of the computer control equipment, the conveying component transports the target medicine bottle from the storage compartment to the positioning slot of the dispensing station via a track-type conveying mechanism, a robotic arm, or an AGV carrier. The alignment sensor of the robotic arm ensures a sealed connection between the medicine bottle and the smart cap. The smart cap first obtains the real-time weight of the medicine through a weight sensor, and then obtains the real-time volume data through a volume measurement unit. Based on the dual-dimensional measurement values ​​of weight and volume, cross-validation is performed to confirm that the prescription dosage requirements are met. Then, the peristaltic pump or valve assembly of the dispensing machine is controlled to inject the medicine into the pre-sterilized packaging container, and the sealing is completed through heat sealing or film pressing.

9. The method according to claim 1, characterized in that, The process of printing traceability information, including dispensing time, prescription code, and patient information, onto the packaging via a printing unit includes: The printing unit receives traceability information data generated by the computer control device and prints the information on a designated area of ​​the packaging container using thermal transfer, laser coding, or ink printing technology. At the same time, it associates the traceability information with inventory change data, environmental parameter logs, and measurement data during the dispensing process using blockchain hashing to form an immutable full-process traceability chain for dispensing, which is then uploaded to the traceability database of the hospital information system in real time for archiving. The traceability information data includes the dispensing completion timestamp, the prescription unique identifier, the patient's name, and the medical record number.

10. A dynamic inventory management and environmental control system for intelligent dispensing, characterized in that, include: The identification unit is used to read the barcode identification information on the body of the medicine bottle through a photoelectric scanner. The identification information includes the medicine name, initial weight, shelf life and storage conditions, and is used to establish a medicine file. The medicine file includes the initial bottle weight, dosage unit conversion relationship and temperature and humidity sensitivity level. The medication collection unit is used to dynamically calculate the remaining amount in the medicine bottle based on the initial bottle weight in the medication file and the cumulative amount of medication collected in real time by the smart cap weight sensor. When the remaining amount is lower than the preset safety threshold, it triggers an audible and visual alarm and sends a replenishment request to the pharmacy management system. The log forming unit is used to control the environmental control component to adjust the storage environment inside the machine body according to the storage conditions in the drug file, and to start the negative pressure suction module to purge the operation area before the drug bottle is replaced or after the preparation is completed. Record and store the environmental parameters collected by the temperature and humidity sensor at a preset frequency to form an environmental data log; The sealing completion unit is used to parse the drug information and dosage requirements in the electronic prescription when it receives the electronic prescription, dispatch the delivery component to transport the corresponding medicine bottle to the dispensing station, control the smart cap to measure the weight and volume according to the prescription dosage, and after the measurement is completed, dispense and seal the mixed medicine, and print traceability information including dispensing time, prescription code and patient information on the packaging through the inkjet printing unit.

Citation Information

Patent Citations

  • Intravenous infusion control method and system, computer equipment and storage medium

    CN115910275A

  • Monitoring management method and system for nursing tasks

    CN116206773A

  • Drug vending machine based on artificial intelligence inquiry

    CN120472588A

  • Integrated device and system for remote medications management

    US20230147994A1

  • Medical supply inventory management system

    US20240177841A1