Medicine amount adjusting method and device, storage medium and electronic device
By determining in the target review unit whether the target dose in the medicine container meets the target dose of the prescription and adjusting the dose according to the target dose, the problem of low efficiency of adjusting the dose in the existing technology has been solved, and automated calibration and adjustment have been achieved, and efficiency has been improved.
Patent Information
- Application Number
- CN202411696549.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-25
- Publication Date
- 2025-02-28
AI Technical Summary
The efficiency of adjusting the dosage in the prior art is low, which leads to the dosage of the drug that does not match the dosage of the prescription, and requires manual adjustment, which is inefficient.
By determining the target audit unit, it is controlled to determine whether the target dosage in the medicine container meets the target dosage of the prescription. If it is not met, adjust the target dosage of the drug to be adjusted according to the target dosage.
Automatic calibration of the drugs to be adjusted and the target dose is adjusted, which improves the efficiency of dosage adjustment and solves the problem of inefficiency.
Smart Images

Figure CN119541755A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of communications, and in particular, to a method, device, storage medium and electronic device for adjusting drug dosage. Background Art
[0002] In the related art, when automatically dispensing medicine according to a prescription, the dosage of the medicine usually does not match the dosage in the prescription, and the dosage of the medicine needs to be adjusted. However, the related art has a technical problem of low efficiency in adjusting the dosage.
[0003] With respect to the above-mentioned problems existing in the related technologies, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present invention provide a method, device, storage medium and electronic device for adjusting drug dosage, so as to at least solve the problem of low efficiency of drug dosage adjustment existing in the related art.
[0005] According to one embodiment of the present invention, a method for adjusting drug dosage is provided, comprising: determining a target audit unit included in an audit unit for calibrating drugs, wherein a target workload to be verified of the target audit unit is less than other workloads to be verified of other audit units included in the audit unit except the target audit unit; controlling the target audit unit to determine a drug to be adjusted whose target dosage included in a drug container does not meet a target dosage in a prescription corresponding to the drug container; and adjusting the target dosage of the drug to be adjusted in the drug container according to the target dosage.
[0006] In an exemplary embodiment, adjusting the target amount of the drug to be adjusted in the medicine container according to the target dose includes: when the target dose is greater than the target amount, determining a first difference between the target dose and the target amount; determining a first allowable error range based on the first difference; acquiring and placing a supplementary drug on a target weighing platform to obtain a first weight of the supplementary drug, wherein the supplementary drug is the same drug as the drug to be adjusted; and placing the supplementary drug in the medicine container when the first weight is within the first allowable error range.
[0007] In an exemplary embodiment, adjusting the target amount of the drug to be adjusted in the drug container according to the target dose includes: when the target dose is less than the target dose, determining a second difference between the target dose and the target dose; determining a second error tolerance range based on the second difference; obtaining the drug to be adjusted from the drug container to a target weighing platform to obtain a second weight of the obtained drug to be adjusted; and when the second weight is within the second error tolerance range, stopping obtaining the drug to be adjusted from the drug container.
[0008] In an exemplary embodiment, after stopping obtaining the to-be-adjusted drug from the drug container, the method further includes: transporting the to-be-adjusted drug in the target weighing platform to a drug library storing the to-be-adjusted drug.
[0009] In an exemplary embodiment, determining a target audit unit included in an audit unit for calibrating medicines comprises one of the following: determining a first quantity of medicines to be calibrated for each sub-audit unit included in the audit unit, and determining a sub-audit unit corresponding to a minimum quantity included in the first quantity as the target audit unit; determining a maximum calibration quantity for each sub-audit unit included in the audit unit and a second quantity of medicines to be calibrated, determining a ratio of the second quantity to the maximum calibration quantity, and determining a sub-audit unit corresponding to a minimum ratio included in the ratio as the target audit unit; determining a calibration speed for each sub-audit unit included in the audit unit, and a third quantity of medicines to be calibrated for each sub-audit unit, determining a time required for the sub-audit unit to complete the calibration of the medicines to be calibrated based on the calibration speed and the third quantity, and determining a sub-audit unit corresponding to the shortest time included in the time as the target audit unit.
[0010] In an exemplary embodiment, the first barcode of the medicine container is updated, wherein the first barcode is used to indicate that the adjustment of the medicine to be adjusted is complete; and the medicine container with the updated first barcode is transported to an area where the adjustment of medicines has been completed.
[0011] In an exemplary embodiment, controlling the target review unit to determine the drug to be adjusted whose target drug amount included in the drug container does not meet the target dose in the prescription corresponding to the drug container includes: controlling the target review unit to scan the second barcode of the drug container to obtain a drug ordering list for the drug container; and determining the drug included in the drug ordering list with a to-be-adjusted mark as the drug to be adjusted.
[0012] According to another embodiment of the present invention, a device for adjusting drug dosage is provided, comprising: a determination module for determining a target audit unit included in an audit unit for calibrating drugs, wherein a target workload to be verified of the target audit unit is less than other workloads to be verified of other audit units included in the audit unit except the target audit unit; a control module for controlling the target audit unit to determine a drug to be adjusted whose target drug dosage included in a drug container does not satisfy a target dosage in a prescription corresponding to the drug container; and an adjustment module for adjusting the target drug dosage of the drug to be adjusted in the drug container according to the target dosage.
[0013] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when run.
[0014] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0015] According to yet another embodiment of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps of the method described in each embodiment of the present application are implemented.
[0016] Through the present invention, after determining that the target audit unit in the audit unit has a target workload that is less than that of other audit units, the target audit unit can be controlled to determine the target dosage of the drug to be adjusted in the drug container that does not meet the target dosage corresponding to the prescription, and the target dosage of the drug to be adjusted is adjusted according to the target dosage, thereby realizing automatic verification of the drug to be adjusted and adjustment of the target dosage. Therefore, the technical problem of low efficiency in adjusting the dosage in the related technology can be solved, thereby achieving the effect of improving the efficiency of dosage adjustment. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is a hardware structure block diagram of a mobile terminal according to a method for adjusting a dosage of medicine according to an embodiment of the present invention;
[0018] Figure 2 is a flow chart of a method for adjusting a dosage of a drug according to an embodiment of the present invention;
[0019] Figure 3 is a complete process diagram of a method for adjusting a dosage of a drug according to an embodiment of the present invention;
[0020] Figure 4 4 is a structural block diagram of a device for adjusting the dosage of medicine according to an embodiment of the present invention. DETAILED DESCRIPTION
[0021] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.
[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0023] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a method for adjusting drug dosage according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0024] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for adjusting the dosage in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0025] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0026] In this embodiment, a method for adjusting the dosage of a drug is provided. Figure 2 is a flow chart of a method for adjusting the dosage of medicine according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0027] Step S202, determining a target audit unit included in the audit unit for calibrating the medicine, wherein the target workload to be calibrated of the target audit unit is less than the other workload to be calibrated of other audit units included in the audit unit except the target audit unit;
[0028] Step S204, controlling the target review unit to determine that the target drug amount included in the drug container does not meet the target dose of the drug to be adjusted in the prescription corresponding to the drug container;
[0029] Step S206, adjusting the target dosage of the drug to be adjusted in the drug container according to the target dosage.
[0030] In the above embodiment, the audit unit is used to verify the medicine, wherein the number of the audit units can be 1, 2, 3, etc., but is not limited thereto. The medicine container is a container for holding medicines, which can be a medicine barrel, a medicine box, etc. The method for adjusting the amount of medicine can be executed by the medicine replenishment subsystem, and the code reader of the medicine replenishment subsystem can identify the work order information of the medicine container, and determine whether the target medicine barrel needs to adjust the amount of medicine according to the work order information. When it is determined that the target medicine barrel needs to adjust the amount of medicine, the medicine replenishment subsystem can communicate with the PLC (Progammadble Controller) through the Modbus-Tcp protocol, and the PLC can read the cached work number in the audit unit and send the cached work number to the medicine replenishment subsystem. The medicine replenishment subsystem can determine the audit unit with the smallest workload to be verified among all the audit units as the target audit unit, wherein the medicine replenishment subsystem is a system including multiple audit units, which can be used to instruct the PLC and the audit unit. After the target audit unit is determined, a control instruction can be sent to the PLC to instruct the PLC to control the movement of the conveyor belt corresponding to the target audit unit according to the control instruction to transfer the target medicine barrel to the audit area of the target audit unit. Among them, the work order information can be understood as the specific information of the medicine, which can include: prescription information (patient information, name and content of the medicine, etc.), decoction time and decoction method of the medicine, storage method of the medicine, use time of the medicine, etc. The prescription information also includes the actual weight of the medicine included in the target medicine barrel, that is, the target amount of medicine and the target dosage of the medicine specified in the prescription, but is not limited to this.
[0031] In the above embodiment, the target dose can be understood as the prescribed drug weight recorded in the prescription in the work order information, and the target drug quantity can be the drug weight included in the drug container. When the target audit unit is determined, an idle unit number can be assigned to this target audit unit and the PLC controller can be instructed to control the conveyor line to transfer the drug container to the cache area of the target audit unit. The main controller adds 1 to the work number of the cache area, wherein the cache area is used to store the drug containers and sort all the drug containers in chronological order. The audit terminal device identifies the work order information on the first drug container in the cache area and displays the list of automatically adjusted drugs. The target audit unit can determine whether the target drug quantity in the drug container meets the target dose based on the target dose.
[0032] In the above embodiment, when the target drug amount meets the target dosage, the display screen of the audit terminal system will display green, and when the target drug amount does not meet the target dosage, the display screen of the audit terminal system will display red, reminding that there is a problem with the weight of the drug contained in this drug container, wherein the target drug amount not meeting the target dosage can be understood as the target drug amount exceeding the target dosage or the target drug amount being less than the target dosage. After the target audit unit determines that the target drug amount in the drug container does not meet the target dosage of the drug to be adjusted, the drug to be adjusted in the drug container can be adjusted according to the target dosage to reach the standard drug amount, wherein the adjustment of the drug to be adjusted can be performed manually, can be operated by a robot, and can be adjusted by controlling a robotic arm, but is not limited thereto.
[0033] Through the present invention, after determining that the target audit unit in the audit unit has a target workload that is less than that of other audit units, the target audit unit can be controlled to determine the target dosage of the drug to be adjusted in the drug container that does not meet the target dosage corresponding to the prescription, and the target dosage of the drug to be adjusted is adjusted according to the target dosage, thereby realizing automatic verification of the drug to be adjusted and adjustment of the target dosage. Therefore, the technical problem of low efficiency in adjusting the dosage in the related technology can be solved, thereby achieving the effect of improving the efficiency of dosage adjustment.
[0034] Optionally, the execution subject of the above steps may be a medicine supplement subsystem managed by a server main control unit, or a unit including a processor, but is not limited thereto.
[0035] In an exemplary embodiment, adjusting the target amount of the drug to be adjusted in the medicine container according to the target dose includes: when the target dose is greater than the target amount, determining a first difference between the target dose and the target amount; determining a first allowable error range based on the first difference; acquiring and placing a supplementary drug on a target weighing platform to obtain a first weight of the supplementary drug, wherein the supplementary drug is the same drug as the drug to be adjusted; and placing the supplementary drug in the medicine container when the first weight is within the first allowable error range.
[0036] In the above embodiment, when the dosage of the medicine in the medicine container exceeds the prescribed dosage recorded in the prescription (i.e., the above target dosage is greater than the target dosage), the excess medicine can be taken out manually or by a robot arm and placed in an intermediate container for real-time dosage weighing to determine the excess portion of the medicine dosage in the medicine container (i.e., the above first difference). The allowable error range (i.e., the above first error allowable range) can be determined based on the first difference and the records of the Chinese Pharmacopoeia. The supplementary medicine that is the same as the medicine to be adjusted is weighed on the target weighing platform. If the weight obtained (i.e., the above first weight) is within the first error allowable range, the supplementary medicine can be added to the medicine container.
[0037] In an exemplary embodiment, adjusting the target amount of the drug to be adjusted in the drug container according to the target dose includes: when the target dose is less than the target dose, determining a second difference between the target dose and the target dose; determining a second error tolerance range based on the second difference; obtaining the drug to be adjusted from the drug container to a target weighing platform to obtain a second weight of the obtained drug to be adjusted; and when the second weight is within the second error tolerance range, stopping obtaining the drug to be adjusted from the drug container.
[0038] In the above embodiment, when the dosage of the medicine in the medicine container is less than the prescribed dosage recorded in the prescription (i.e., the above target dosage is less than the target dosage), the medicine can be placed in the intermediate container manually or by a robot arm for real-time dosage weighing, and the missing portion of the dosage of the medicine in the medicine container (i.e., the above second difference) can be determined. The allowed error range (i.e., the above second error tolerance range) can be determined based on the second difference and the records of the Chinese Pharmacopoeia. The supplementary medicine that is the same as the medicine to be adjusted is weighed on the target weighing platform. If the weight obtained (i.e., the above second weight) is within the second error tolerance range, the adjustment of the medicine to be adjusted in the medicine container is stopped.
[0039] In an exemplary embodiment, after stopping obtaining the drug to be adjusted from the drug container, the method further includes: transporting the drug to be adjusted in the target weighing platform to a drug warehouse where the drug to be adjusted is stored. In this embodiment, when the target dose is less than the target drug amount, after stopping obtaining the drug to be adjusted from the drug container, the drug to be adjusted in the target weighing platform can be transported to the drug warehouse through a conveyor line and stored. Among them, after stopping obtaining the drug to be adjusted from the drug container, the drug in the target weighing platform can be directly calculated to the drug warehouse, and the drug in the target weighing platform can also be placed in an intermediate container, and when the amount of drugs in the intermediate container reaches a predetermined threshold, the drugs in the intermediate container are transported to the drug warehouse.
[0040] In the above embodiment, the transportation of the drugs to be adjusted to the drug warehouse where the drugs to be adjusted are stored may include determining a conveying path for conveying the drugs to be adjusted to the drug warehouse, controlling a mechanical arm or a robot to place the drugs to be adjusted on a conveyor belt corresponding to the starting point of the conveying path, and sequentially controlling the conveyor belts included in the conveying path to work so as to place the drugs to be adjusted in the drug warehouse. The transportation of the drugs to be adjusted to the drug warehouse where the drugs to be adjusted are stored may also include determining a walking path for a robot that conveys the drugs to be adjusted to the drug warehouse, and controlling the robot to convey the drugs to be adjusted to the drug warehouse according to the walking path.
[0041] In an exemplary embodiment, determining a target audit unit included in an audit unit for calibrating medicines comprises one of the following: determining a first quantity of medicines to be calibrated for each sub-audit unit included in the audit unit, and determining a sub-audit unit corresponding to a minimum quantity included in the first quantity as the target audit unit; determining a maximum calibration quantity for each sub-audit unit included in the audit unit and a second quantity of medicines to be calibrated, determining a ratio of the second quantity to the maximum calibration quantity, and determining a sub-audit unit corresponding to a minimum ratio included in the ratio as the target audit unit; determining a calibration speed for each sub-audit unit included in the audit unit, and a third quantity of medicines to be calibrated for each sub-audit unit, determining a time required for the sub-audit unit to complete the calibration of the medicines to be calibrated based on the calibration speed and the third quantity, and determining a sub-audit unit corresponding to the shortest time included in the time as the target audit unit.
[0042] In the above embodiment, after receiving a work order with the status of "pending for replenishment and verification", the medicine replenishment subsystem can issue a command to the PLC system to read the cached work number of the audit unit and store the queried work number in an array. The read cached work number is compared with the work number in the cache database of the host computer. If they are consistent, the operation of selecting the target audit unit is performed. If there is a difference, an alarm prompt is issued.
[0043] In the above embodiment, the target audit unit can be determined by the workload to be verified in the audit unit (i.e., the above-mentioned medicines to be verified): the number of medicines to be verified of each sub-audit unit in the audit unit (i.e., the above-mentioned first number) is calculated, and the sub-audit unit with the least number of medicines to be verified can be determined as the target audit unit; in this embodiment, the target audit unit can also be determined by the maximum verification number and the workload to be verified (i.e., the above-mentioned second number) in the audit unit: the ratio of the second number of medicines to be verified of each sub-audit unit in the audit unit to the maximum verification number is calculated, and the sub-audit unit corresponding to the minimum ratio can be determined as the target audit unit; in this embodiment, the target audit unit can also be determined by the verification speed in the audit unit and the third number of medicines to be verified: the time required for each sub-audit unit in the audit unit to complete the verification is calculated according to the third number of medicines to be verified and the verification speed, and the sub-audit unit with the shortest time required to complete the verification can be determined as the target audit unit. If there are sub-audit units with the same number of drugs to be checked, the same ratio of the second number of drugs to be checked to the maximum number of checks, or the same time required to complete the check, the front unit can be selected as the target audit unit.
[0044] In an exemplary embodiment, after adjusting the target amount of the drug to be adjusted in the medicine container according to the target dose, the method further includes: updating a first barcode of the medicine container after the adjustment of the drug to be adjusted included in the medicine container is completed, wherein the first barcode is used to indicate that the adjustment of the drug to be adjusted is completed; and transporting the medicine container with the updated first barcode to an area where the adjustment of the drug has been completed.
[0045] In the above embodiment, after the target dosage of the drug to be adjusted is completed, the work order status is updated to "adjusted", and a first barcode is generated according to the work order status, indicating that the target dosage in this drug container has been adjusted, and the updated drug container is transported to the area where the adjustment of the drug has been completed.
[0046] In the above embodiment, it is possible to determine whether the adjusted medicine container needs to be replenished. If it is not necessary to replenish the medicine, the medicine container is directly placed in the conveyor line; if it is necessary to replenish the medicine, the medicine container is placed in the mobile medicine replenishment platform. The medicine replenishment platform system can identify the work order information in the medicine container and display the list of medicines to be replenished. Manual or robotic arms address the medicines one by one according to the list of medicines to be replenished, click on a certain medicine in the replenishment list, and place the medicine in the middle container on the electronic scale of the mobile platform. The main control system weighs in real time through the protocol until the theoretical adjustment amount is reached. The main control system takes a photo to record the completion of the medicine replenishment, and prompts that the medicine adjustment operation is completed. Manual or robotic arms pour the decoction pieces in the middle container into the medicine barrel. Repeat the replenishment operation until all the medicines to be replenished are adjusted, update the work order status to replenishment completion, and place the medicine container on the conveyor line of the completed buffer area.
[0047] In the above embodiment, the main control system identifies the work order information of the medicine container on the input line of the buffer area, determines whether the work order has been verified and the medicine replenishment has been completed, and if it is not completed, an alarm prompt is issued, and the red warning light flashes; if it is completed, the main control system sends instructions to the PLC controller through the Modbus-Tcp protocol, and the PLC controller conveys the medicine container to the main conveying line and feedbacks the work order status as verified and replenished. Among them, the deviation value of the theoretical adjustment amount can refer to the range of allowable errors in the Chinese Pharmacopoeia. The medicine replenishment operation is aimed at medicines that cannot be automatically adjusted by the above-mentioned control mechanical arm or robot, such as centipedes, toads, etc.
[0048] In an exemplary embodiment, controlling the target review unit to determine the drug to be adjusted whose target drug amount included in the drug container does not meet the target dose in the prescription corresponding to the drug container includes: controlling the target review unit to scan the second barcode of the drug container to obtain a drug ordering list for the drug container; and determining the drug included in the drug ordering list with a to-be-adjusted mark as the drug to be adjusted.
[0049] In the above embodiment, a two-dimensional code (i.e., the second barcode) is attached to the surface of each medicine container, and the barcode reader in the target audit unit can scan the two-dimensional code to identify the corresponding work order information and obtain the medicine list of the medicine container. The target audit unit can adjust the medicines to be adjusted in the target capacity according to the medicines with the to-be-adjusted mark in the medicine list.
[0050] The method for adjusting the dosage is described below in conjunction with a specific implementation method:
[0051] Figure 3 is a flow chart of a method for adjusting the dosage of a drug according to a specific embodiment of the present invention. Figure 3 As shown, the method includes:
[0052] Step S3002, the server main system starts working;
[0053] Step S3004, the subsystem receives a work order with a status of "pending replenishment and verification";
[0054] Step S3006, querying the number of work in the buffer area of the audit unit;
[0055] Step S3008, the query instruction is sent to the PLC;
[0056] Step S3010, query the work number stored in the array;
[0057] Step S3012, comparing with the work number of the host computer cache database;
[0058] Step S3014, determine whether they are consistent? If yes, execute step S3018; if no, execute step S3016;
[0059] Step S3016, alarm prompt;
[0060] Step S3018, calculating the idlest unit among the audit units;
[0061] Step S3020, determine whether there is an idle unit? If yes, execute step S3022; if no, execute step S2018;
[0062] Step S3022, allocating free unit numbers;
[0063] Step S3024, the PLC controller works;
[0064] Step S3026, controlling the conveyor line to transfer the medicine barrel to the buffer area of the audit unit;
[0065] Step S3028, the main control system increases the working number of the buffer area by 1;
[0066] Step S3030, taking out the first medicine barrel in the buffer area;
[0067] Step S3032, insert the audit terminal device;
[0068] Step S3034, reviewing the terminal device scanning the code to identify the medicine barrel work order information;
[0069] Step S3036, the server API analyzes and stores the information;
[0070] Step S3038, the review terminal system displays the list of "automatically adjusted drugs";
[0071] Step S3040, determine whether the dosage is qualified. If yes, execute step S3042; if no, execute step S3044;
[0072] Step S3042, displaying green;
[0073] Step S3044, displaying red;
[0074] Step S3046, determine whether the amount exceeds the limit: if yes, execute step S3048; if no, execute step S3050;
[0075] Step S3048, manually taking out excess medicinal pieces;
[0076] Step S3050, manually supplementing the insufficient amount of decoction pieces;
[0077] Step S3052, determine whether all verifications are completed, if yes, execute step S3054; if no, execute step S3038;
[0078] Step S3054, update the work order status to "reviewed but not refilled";
[0079] Step S3056, determine whether tonic medicine is needed? If yes, execute step S3056; if no, execute step S3082;
[0080] Step S3058, the medicine barrel is placed in the medicine replenishment buffer area;
[0081] Step S3060, extracting to the tonic mobile platform;
[0082] Step S3062, the medicine replenishment platform system identifies the medicine barrel work order information;
[0083] Step S3064, the server API analyzes and stores the information;
[0084] Step S3066, the medicine replenishment platform system displays a list of "medicines to be replenished";
[0085] Step S3068, manually searching for the medicine for each medicine;
[0086] Step S3070, click on the medicine in the medicine replenishment list;
[0087] Step S3072, grab the medicine and put it into the electronic scale on the upper part of the mobile platform;
[0088] Step S3074, the mobile platform system collects weight data through a protocol;
[0089] Step S3076, determine whether it is qualified? If yes, execute step S3078; if no, execute step S3074;
[0090] Step S3078, the medicine list shows that the tonic medicine is completed;
[0091] Step S3080, determine whether all tonic medicines have been taken. If yes, execute step S3082; if no, execute step S3070;
[0092] Step S3082, updating the work order status to "drug refill completed";
[0093] Step S3084, the server API analyzes and stores the information;
[0094] Step S3086, putting into the completion buffer area;
[0095] Step S3088, the main control system identifies the work order information;
[0096] Step S3090, the server API analyzes and stores the information;
[0097] Step S3092, determine whether the review of the medicine replenishment is completed? If yes, execute step S3100; if no, execute step S3094;
[0098] Step S3094, system warning;
[0099] Step S3096, PLC controller;
[0100] Step S3098, the red warning light flashes;
[0101] Step S3100, sending a command to move back to the main conveyor line;
[0102] Step S3102, PLC controller;
[0103] Step S3104, conveying the medicine barrel back to the main conveying line;
[0104] Step S3106, feedback to the server main control system, the work order status is "reviewed and refilled".
[0105] In the above embodiment, the server main control system is turned on, and the barcode reader in the subsystem scans the QR code on the medicine barrel (i.e., the above-mentioned medicine container), and a work order with the status of "pending replenishment and verification" can be received. Communicate with the PLC through the Modbus-Tcp protocol, send query instructions to the PLC, control the PLC to query and store the cached work number of the audit unit, and compare it with the database work number cached in the host computer. If it is inconsistent, an alarm is processed; if it is consistent, the most idle sub-unit in each audit unit is calculated, and the most idle unit is selected as the target audit unit. If there is no idle unit, the calculation steps are continued until the most idle unit is selected. Assign an idle unit number to the target audit unit, and the main control system instructs the PLC controller through the Modbus-Tcp protocol to control the conveyor line to transfer the medicine barrel to the cache area of the audit unit, and increase the work number of the cache area by 1. Manual or robotic arms take out the first medicine barrel in the cache area and put it into the designated position of the audit terminal device. The audit terminal device scans the code to identify the work order information on the medicine barrel and sends it to the server API for analysis and storage. The system displays the list of "automatic adjustment of medicines" to determine whether the amount of medicine is qualified. If it is qualified, the system displays green, if it is unqualified, it displays red. Determine whether there is an overdose of medicine barrels with unqualified medicine dosage. In the case of overdose of medicine, the excess medicine is taken out by manual or robotic arms and placed in the intermediate container. If the dosage of the intermediate container weighed in real time reaches the excess dosage, the medicine in the intermediate container is returned to the warehouse. In the case of insufficient medicine dosage, the medicine is placed in the intermediate container by manual or robotic arms. If the dosage of the intermediate container weighed in real time reaches the insufficient dosage, the medicine in the intermediate container is poured into the medicine barrel. Among them, the deviation value of the dosage of the medicine taken out or added can refer to the allowable error range of the pharmacopoeia.
[0106] In the above embodiment, when all the drugs to be reviewed that are automatically adjusted in the work order have been reviewed, the system determines whether the work order needs to be supplemented (i.e., the drugs that cannot be adjusted by the automatic adjustment device in the previous link). If no supplement is needed, the medicine barrel is placed in the conveyor line of the completed buffer area. If supplement is needed, the medicine barrel is placed in the mobile replenishment platform. The replenishment platform system can identify the work order information in the medicine container and display the list of drugs to be replenished. Manual or robotic arms address the drugs one by one according to the list of drugs to be replenished, click on a certain drug in the replenishment list, and place the drugs in the middle container on the electronic scale of the mobile platform. The main control system weighs in real time through the protocol until the theoretical adjustment amount is reached. The main control system takes a photo to record the completion of the drug replenishment, and prompts that the drug adjustment operation is completed. Manual or robotic arms pour the decoction pieces in the middle container into the medicine barrel. Repeat the replenishment operation until all the drugs to be replenished are adjusted, update the work order status to replenishment completion, and place the drug container in the conveyor line of the completed buffer area.
[0107] In the above embodiment, the main control system identifies the work order information of the medicine container on the buffer area input line, determines whether the work order has been verified and the medicine replenishment has been completed, and if it is not completed, an alarm prompt is given and the red warning light flashes; if it is completed, the main control system sends instructions to the PLC controller through the Modbus-Tcp protocol, and the PLC controller transports the medicine container to the main conveying line and feeds back to the main control system that the work order status has been verified and replenished.
[0108] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0109] In this embodiment, a device for adjusting the dosage of medicine is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0110] Figure 4 is a structural block diagram of a device for adjusting the amount of medicine according to an embodiment of the present invention. Figure 4 As shown, the device comprises:
[0111] A determination module 42 is used to determine a target audit unit included in the audit unit for calibrating the medicine, wherein the target workload to be calibrated of the target audit unit is less than the other workload to be calibrated of other audit units included in the audit unit except the target audit unit;
[0112] A control module 44, configured to control the target review unit to determine that the target drug amount included in the drug container does not satisfy the target dose of the drug to be adjusted in the prescription corresponding to the drug container;
[0113] The adjustment module 46 is used to adjust the target dosage of the drug to be adjusted in the drug container according to the target dosage.
[0114] In an exemplary embodiment, the adjustment module 46 can adjust the target amount of the drug to be adjusted in the medicine container according to the target dose in the following manner: when the target dose is greater than the target amount, determine a first difference between the target dose and the target amount; determine a first error allowable range based on the first difference; obtain and place the supplementary drug on a target weighing platform to obtain a first weight of the supplementary drug, wherein the supplementary drug and the drug to be adjusted are the same drug; and when the first weight is within the first error allowable range, place the supplementary drug in the medicine container.
[0115] In an exemplary embodiment, the adjustment module 46 can also adjust the target dosage of the drug to be adjusted in the drug container according to the target dosage in the following manner: when the target dosage is less than the target dosage, determine a second difference between the target dosage and the target dosage; determine a second error tolerance range based on the second difference; obtain the drug to be adjusted from the drug container to a target weighing platform to obtain a second weight of the drug to be adjusted; when the second weight is within the second error tolerance range, stop obtaining the drug to be adjusted from the drug container.
[0116] In an exemplary embodiment, the device may be used to transport the drug to be adjusted in the target weighing platform to a drug library storing the drug to be adjusted after stopping obtaining the drug to be adjusted from the drug container.
[0117] In an exemplary embodiment, the determination module 42 determines the target audit unit included in the audit unit for calibrating the medicine, which may include one of the following: determining a first quantity of medicines to be calibrated for each sub-audit unit included in the audit unit, and determining the sub-audit unit corresponding to the minimum quantity included in the first quantity as the target audit unit; determining a maximum calibration quantity for each sub-audit unit included in the audit unit and a second quantity of medicines to be calibrated, determining a ratio of the second quantity to the maximum calibration quantity, and determining the sub-audit unit corresponding to the minimum ratio included in the ratio as the target audit unit; determining a calibration speed for each sub-audit unit included in the audit unit, and a third quantity of medicines to be calibrated for each sub-audit unit, determining the time required for the sub-audit unit to complete the calibration of the medicines to be calibrated based on the calibration speed and the third quantity, and determining the sub-audit unit corresponding to the shortest time included in the time as the target audit unit.
[0118] In an exemplary embodiment, the device can also be used to adjust the target amount of the drug to be adjusted in the medicine container according to the target dose: after the adjustment of the drug to be adjusted included in the medicine container is completed, update the first barcode of the medicine container, wherein the first barcode is used to indicate that the adjustment of the drug to be adjusted is completed; and transport the medicine container with the updated first barcode to the area where the adjustment of the medicine has been completed.
[0119] In an exemplary embodiment, the control module 44 can control the target review unit to determine the target drug quantity included in the drug container that does not meet the target dose of the drug to be adjusted in the prescription corresponding to the drug container in the following manner: control the target review unit to scan the second barcode of the drug container to obtain the drug list of the drug container; and determine the drug included in the drug list with a to-be-adjusted mark as the drug to be adjusted.
[0120] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0121] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0122] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0123] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0124] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0125] An embodiment of the present invention further provides a computer program product, including a computer program, which implements the steps of the method in each embodiment of the present application when the computer program is executed by a processor.
[0126] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0127] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0128] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for adjusting drug dosage, characterized in that: include: Determine a target audit unit included in the audit unit for calibrating the medicine, wherein the target workload to be calibrated of the target audit unit is less than other workload to be calibrated of other audit units included in the audit unit except the target audit unit; Controlling the target review unit to determine that the target drug amount included in the drug container does not meet the target dose of the drug to be adjusted in the prescription corresponding to the drug container; The target amount of the drug to be adjusted in the drug container is adjusted according to the target dose.
2. The method according to claim 1, characterized in that Adjusting the target amount of the drug to be adjusted in the drug container according to the target dose includes: In a case where the target dose is greater than the target drug amount, determining a first difference between the target dose and the target drug amount; determining a first error allowable range based on the first difference; Acquiring and placing a supplementary drug on a target weighing platform to obtain a first weight of the supplementary drug, wherein the supplementary drug and the drug to be adjusted are the same drug; When the first weight is within the first allowable error range, the supplementary medicine is placed in the medicine container.
3. The method according to claim 1, characterized in that: Adjusting the target amount of the drug to be adjusted in the drug container according to the target dose includes: In a case where the target dose is less than the target drug amount, determining a second difference between the target drug amount and the target dose; determining a second error tolerance range based on the second difference; Obtaining the drug to be adjusted from the drug container and placing it on a target weighing platform to obtain a second weight of the drug to be adjusted; When the second weight is within the second allowable error range, stop obtaining the medicine to be adjusted from the medicine container.
4. The method according to claim 3, characterized in that After stopping obtaining the medicine to be adjusted from the medicine container, the method further includes: The medicine to be adjusted in the target weighing platform is transported to a medicine warehouse where the medicine to be adjusted is stored.
5. The method according to claim 1, characterized in that The target audit units included in the audit unit for checking the drug include one of the following: Determine a first quantity of the medicines to be checked of each sub-audit unit included in the audit unit, and determine the sub-audit unit corresponding to the minimum quantity included in the first quantity as the target audit unit; Determine the maximum verification quantity of each sub-audit unit included in the audit unit and the second quantity of the medicine to be verified, determine the ratio of the second quantity to the maximum verification quantity, and determine the sub-audit unit corresponding to the minimum ratio included in the ratio as the target audit unit; Determine the verification speed of each sub-audit unit included in the audit unit, and the third quantity of the medicines to be verified of each sub-audit unit, determine the time required for the sub-audit unit to complete the verification of the medicines to be verified based on the verification speed and the third quantity, and determine the sub-audit unit corresponding to the shortest time included in the time as the target audit unit.
6. The method according to claim 1, characterized in that After adjusting the target amount of the drug to be adjusted in the drug container according to the target dose, the method further includes: After the adjustment of the drug to be adjusted contained in the drug container is completed, updating the first barcode of the drug container, wherein the first barcode is used to indicate that the adjustment of the drug to be adjusted is completed; The medicine container with the updated first barcode is transported to the area where the medicine adjustment has been completed.
7. The method according to claim 1, characterized in that Controlling the target review unit to determine that the target drug amount included in the drug container does not meet the target dose of the drug to be adjusted in the prescription corresponding to the drug container includes: Controlling the target audit unit to scan the second barcode of the medicine container to obtain a medicine list of the medicine container; The drugs included in the drug ordering list and having a to-be-adjusted mark are determined as the to-be-adjusted drugs.
8. A device for adjusting the dosage of a drug, characterized in that: include: A determination module, used for determining a target audit unit included in the audit unit for calibrating the medicine, wherein the target workload to be calibrated of the target audit unit is less than the other workload to be calibrated of other audit units included in the audit unit except the target audit unit; A control module, configured to control the target review unit to determine that the target drug amount included in the drug container does not satisfy the target dose of the drug to be adjusted in the prescription corresponding to the drug container; The adjustment module is used to adjust the target dosage of the drug to be adjusted in the drug container according to the target dosage.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 7 when executed.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 7.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.