A medical cabinet and its weighing and counting method
By combining the weighing device and the cabinet door position detection device in the medical cabinet, the initial weight value is updated when the cabinet door is closed and the drug counting is performed when the cabinet door is opened, the problem of increasing the weight counting error in the medical cabinet is solved and the counting accuracy is improved.
Patent Information
- Application Number
- CN202111321108.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-09
- Publication Date
- 2025-06-20
- Estimated Expiration
- 2041-11-09
AI Technical Summary
During the long-term use of existing medical cabinets, the weighing and counting errors gradually increase, resulting in errors in counting results.
A weighing counting method for a medical cabinet is provided, including a weighing device and a detection device for cabinet door position. When the detection device detects that the cabinet door is in the first position, the weighing device regularly obtains the real-time weight value of the drug and updates it to the initial weight value; when the detection device detects that the cabinet door is in the second position, the weighing device acquires the current weight value and counts based on the current and initial weight values.
Through this method, weighing errors are reduced, counting accuracy is improved, and counting errors caused by long-term storage of drugs are avoided.
Smart Images

Figure CN114034368B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of medical devices, and particularly to a medical cabinet and a weighing and counting method thereof. Background Art
[0002] For medical cabinets used in hospitals, such as medicine management cabinets and medical consumable cabinets, it is necessary to count medical products, such as medicines, to judge the usage status of the medicines. Currently, counting of medical products such as medicines is mainly achieved by weighing, and a weighing pressure sensor is required for weighing. The accuracy of the weighing pressure sensor is closely related to its cost. If it is necessary to weigh medicines with a single light weight and a large weighing quantity, only a high-precision weighing pressure sensor can be selected, but this will cause a sharp increase in the cost of the weighing pressure sensor. If a weighing pressure sensor with low cost and low precision is selected, the counting error will be relatively large under the influence of the physical properties of the weighing device itself and weighing environmental factors, such as temperature, vibration, creep, etc., resulting in an error in the weighing and counting result.
[0003] In the related art, the weight change value is used for weighing and counting. Each weighing is to obtain the change value by subtracting the weighing value after the previous medicine pick-up and placement from the weighing value after the current medicine pick-up and placement. If the time interval between two weighings and counts is very long and the pressure sensor itself has already generated an error, there may be an error in the weighing and counting updated through this change value. Summary of the Invention
[0004] The purpose of the present invention is to provide a medical cabinet and a weighing and counting method thereof, aiming to solve the problem that the weighing and counting error of the existing medical cabinet gradually increases during long-term use.
[0005] To solve the above technical problems, the purpose of the present invention is achieved through the following technical solutions: A weighing and counting method for a medical cabinet is provided. The medical cabinet includes a weighing device and a detection device for the position of the cabinet door. The weighing and counting method includes:
[0006] When the detection device detects that the cabinet door is in the first position, the weighing device regularly obtains the real-time weight value of the medicines in the medical cabinet and updates it as the initial weight value;
[0007] When the detection device detects that the cabinet door is in the second position, the weighing device obtains the current weight value of the medicines in the medical cabinet and counts the medicines in the medical cabinet according to the current weight value and the initial weight value.
[0008] In addition, another technical problem to be solved by the present invention is to provide a medical cabinet, which includes a weighing device and a detection device;
[0009] The weighing device is used to regularly obtain the real-time weight value of the drugs in the medical cabinet and update it as the initial weight value when the detection device detects that the cabinet door is in the first position;
[0010] The weighing device is used to obtain the current weight value of the drugs in the medical cabinet and count the drugs in the medical cabinet according to the current weight value and the initial weight value when the detection device detects that the cabinet door is in the second position.
[0011] An embodiment of the present invention discloses a weighing and counting method for a medical cabinet. The medical cabinet includes a weighing device and a detection device for the position of the cabinet door. The weighing and counting method includes: when the detection device detects that the cabinet door is in the first position, the weighing device regularly obtains the real-time weight value of the drugs in the medical cabinet and updates it as the initial weight value; when the detection device detects that the cabinet door is in the second position, the weighing device obtains the current weight value of the drugs in the medical cabinet and counts the drugs in the medical cabinet according to the current weight value and the initial weight value. In the present invention, when it is detected that the cabinet door is in the first position, that is, when the door is closed, weighing continues but counting is not performed, and the latest actual weighing value is retained. When it is detected that the cabinet door is in the second position, that is, when the door is opened, the weight change value is used to count the drugs, which has the advantages of reducing weighing errors and improving counting accuracy. Description of the Drawings
[0012] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0013] Figure 1 It is a schematic flowchart of the weighing and counting method for the medical cabinet provided by the embodiment of the present invention;
[0014] Figure 2 It is a schematic sub-flowchart of the weighing and counting method for the medical cabinet provided by the embodiment of the present invention;
[0015] Figure 3 It is another schematic sub-flowchart of the weighing and counting method for the medical cabinet provided by the embodiment of the present invention;
[0016] Figure 4 It is a schematic diagram of the error accumulation process of the weighing device provided by the embodiment of the present invention;
[0017] Figure 5 It is a schematic diagram of the change of the detection result of the weighing device with time provided by the embodiment of the present invention;
[0018] Figure 6 It is a simplified schematic diagram of the medical cabinet provided by the embodiment of the present invention;
[0019] Figure 7 Internal structure diagram of the detection device provided by an embodiment of the present invention;
[0020] Figure 8 Schematic structural diagram of the detection device when the cabinet door of the embodiment of the present invention is in the closed state;
[0021] Figure 9 Schematic structural diagram of the detection device when the cabinet door of the embodiment of the present invention is in the open state;
[0022] Figure 10 Another internal structure diagram of the detection device provided by an embodiment of the present invention.
[0023] Description of the drawings: 1. Cabinet body; 2. Cabinet door; 21. Lock ring; 3. Detection device; 31. Device shell; 32. Link rod; 33. Elastic member; 34. Optocoupler; 341. Detection module; 35. Mounting plate; 36. Lock assembly; 361. Lock port; 4. Weighing device; 5. Display device. Detailed implementation manners
[0024] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0025] It should be understood that when used in this specification and the appended claims, the terms "comprises" and "comprising" indicate the presence of the described features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their combinations.
[0026] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in this specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an", and "the" are intended to include the plural forms.
[0027] It should be further understood that the term " / and" used in this specification of the present invention and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0028] Please refer to Figure 1 , Figure 1 Flow schematic diagram of the weighing and counting method for the medical cabinet provided by an embodiment of the present invention;
[0029] A weighing and counting method for a medical cabinet, the medical cabinet includes a weighing device and a detection device for the position of the cabinet door, and the weighing and counting method includes steps S101 to S102.
[0030] S101. When the detection device detects that the cabinet door is in the first position, the weighing device regularly obtains the real-time weight value of the drugs in the medical cabinet and updates it as the initial weight value.
[0031] S102. When the detection device detects that the cabinet door is in the second position, the weighing device obtains the current weight value of the drugs in the medical cabinet and counts the drugs in the medical cabinet according to the current weight value and the initial weight value.
[0032] In this embodiment, the medical cabinet is used for storing and retrieving drugs. The weighing device is used to weigh the drugs in the medical cabinet, and the detection device is used to detect the position of the cabinet door. When the cabinet door is in the first position, it is in the closed state. When the cabinet door is in the closed state, the weighing device regularly obtains the real-time weight value of the drugs in the medical cabinet and updates it as the initial weight value. In this embodiment, only the real-time weight value of the drugs in the medical cabinet is regularly obtained and updated as the initial weight value, and it is not used to update the count of the drugs in the medical cabinet.
[0033] When the cabinet door is in the second position, it is in the open state. At this time, the drugs in the medical cabinet can be stored and retrieved. The weighing device obtains the current weight value of the drugs in the medical cabinet when the cabinet door is open, and obtains the weighing change value according to the current weight value and the initial weight value. The weighing change value at this time only occurs in a short period of time, greatly reducing the error caused by the physical properties of the weighing device itself and the influence of the weighing environment factors under the long-term closed state of the cabinet door. Therefore, the obtained weighing change value is relatively accurate, and it is also relatively accurate to update the count of the drugs in the medical cabinet according to this weighing change value.
[0034] To explain the principle of the weighing and counting method of the present invention, the accumulation of the error of the weighing device will be briefly described below. Refer to Figure 4 , without changing the actual weight of the drugs detected by the weighing device, if observed at a short time interval, the weight value measured by the weighing device will fluctuate continuously; if observed at a long time interval, over time, the weight value measured by the weighing device has an upward trend (fluctuating upward). That is, in the long run, without changing the actual weight of the drugs detected by the weighing device, the error between the detection value of the weighing device and the actual weight value of the drugs will gradually increase. When the error gradually increases and the accumulated error exceeds the weight value of a single drug, even if the actual weight of the drugs has not changed (no drugs have been added), the counting result will be changed, resulting in a counting error.
[0035] Refer to Figure 5For example, in the initial state, no drugs are stored in the medical cabinet body. Subsequently, the user (such as a drug administrator) puts N1 drugs into the cabinet body. The weight of a single drug is W0. Then the door is closed and these N1 drugs are stored for a period of time. After a period of time, the user takes out N2 drugs (N1≥N2) from the medical cabinet. Next Figure 5 Among them, the AB segment corresponds to the stage of putting in N1 drugs, the BD segment corresponds to the stage of storing N1 drugs, the DG segment corresponds to the stage of taking out N2 drugs, and the GH segment corresponds to the stage of storing (N1 - N2) drugs. In addition, it should be noted that relative to the above Figure 4 , next Figure 5 in the figure line, the fluctuations of the weight value within a short time interval are ignored.
[0036] First, consider the situation when N1 drugs are put in and stored. The user first opens the cabinet door and places the drugs on the loading platform inside the medical cabinet. The user can place the drugs one by one or in batches on the loading platform, or place N1 drugs on the loading platform at one time. During the storage process of these N1 drugs, the error values of the weighing device will accumulate. If the storage time of these N1 drugs is long enough (such as several hours or several days), then the error value of the weighing device will be greater than W0. For example, as Figure 5 shown, when N1 drugs start to be stored, the weight value measured by the weighing device is W1. After N1 drugs are stored for a period of time, the weight value measured by the weighing device is W2, and W2 - W1 > W0.
[0037] Therefore, to avoid this situation, when the cabinet door is closed, the weighing device of the weighing device still weighs these N1 drugs. An initial weight value is stored in the control board inside the medical cabinet. The control board will update the initial weight value in real time according to the measurement value of the weighing device, but the control board does not perform corresponding counting operations. Assume that the frequency of collecting the A / D (analog / digital) value of the weighing device is 10Hz. Then every 0.1s, the initial weight value in the control board will be updated and updated to the weight value measured by the weighing device most recently. For example, from T1 to T2, this initial weight value starts to be continuously updated from W1. After a period of time, the initial weight value becomes W2. But when the cabinet door is not opened, no matter which value the initial weight value is updated to, the weighing device does not update the counting result, and the counting result is still the counting result before the previous door closing.
[0038] Consider the case of taking out N2 drugs. After the N1 drugs are stored for a certain period of time, the user opens the cabinet door to take out the drugs. When the cabinet door is opened, the weighing device pauses updating the initial weight value (the initial weight value stays at W2); after the cabinet door is opened, the weighing device not only weighs the drugs in the medical cabinet, but also counts the drugs according to the drug results. The weighing device will detect the current weight value of the drugs, and the control board will obtain the weighing change value by taking the difference between the current weight value and the initial weight value (the initial weight value is W2), and then divide the weighing change value by the weight of a single drug to obtain the drug quantity change value (which can be rounded to an integer); then, based on the counting result at the previous door opening, add the drug quantity change value (the quantity change value itself has a positive or negative sign) to obtain the real-time counting result.
[0039] For example, the counting result at the previous door opening is N1, the initial weight value at the door opening is W2. Assume the user takes away several drugs and the current weight value becomes W3, the weighing change value is (W3 - W2). Denote the quantity change value as ΔN, then ΔN = (W3 - W2) / W0, and the drug counting result is updated from N1 to (N1 + ΔN). If the user takes away several more drugs and the current weight value becomes W4, the weighing change value is (W4 - W2), then ΔN = (W4 - W2) / W0, and the drug counting result also changes accordingly.
[0040] After taking out the drugs, the cabinet door can be closed. Subsequently, during the storage process of (N1 - N2) drugs (and before the next taking or placing of drugs), the weighing device only weighs without counting. The initial weight value is continuously updated, but the drug counting result is still the drug counting result when the cabinet door was closed last time.
[0041] In summary, for the weighing and counting method of the present invention, the position of the cabinet door is judged by the detection device, and the position state of the cabinet door is judged by different positions of the detection device. For example, it is judged whether the cabinet door is opened or closed to judge whether the user performs the operation of taking or placing drugs, and then the weighing device is in different operating modes. When the cabinet door is in the first position, the user does not perform the operation of taking or placing drugs, and the weighing device only updates the weighing result without updating the counting result. When the cabinet door is in the second position, the weighing device obtains the current weight value of the drugs in the medical cabinet and counts the drugs in the medical cabinet according to the current weight value and the initial weight value. Compared with continuously weighing and counting the drugs, such a setting can avoid the counting error caused by long-term storage of drugs. The weighing and counting method of the present invention can effectively reduce the counting error caused by the accumulation of errors, and the counting accuracy of this weighing and counting method is high.
[0042] Next, the present invention will be further introduced in combination with the medical cabinet to which this weighing and counting method is applied, as Figure 6As shown in the figure; the medical cabinet includes: a cabinet body 1, a cabinet door 2, a detection device 3, a weighing device 4, and a display device 5;
[0043] Please refer to Figure 6 , the interior of the cabinet body 1 has a storage cavity for accommodating medicines. The cabinet door 2 is movably connected to the cabinet body 1, and the cabinet door 2 can move relative to the cabinet body 1 to close or release the closure of the storage cavity. The cabinet door 2 can be slidably connected to the cabinet body 1. For example, a slide rail is provided on the cabinet body 1, and a pulley is installed on the cabinet door 2. The user can push the cabinet door 2 to open the medical cabinet; the cabinet door 2 can also be rotatably connected to the cabinet body 1. For example, the cabinet door 2 and the cabinet body 1 are rotatably connected through a hinge, and the user can rotate the cabinet door 2 to open the medical cabinet.
[0044] The detection device 3 is provided on the cabinet body 1 and is used to detect the opening and closing state of the cabinet door 2. Preferably, the detection device 3 can be provided on one side of the cabinet body 1 and corresponding to the closing position when the cabinet door 2 is closed, so as to facilitate the detection of the opening and closing state of the cabinet door 2.
[0045] Specifically, in combination with Figure 7 , Figure 8 and Figure 9 , Figure 8 is Figure 7 the enlarged structure diagram of the partial A in
[0046] The detection device 3 includes a device housing 31, a connecting rod 32, an elastic member 33 sleeved on the connecting rod 32, and an optocoupler 34. One end of the connecting rod 32 passes out of the device housing 31, and the other end of the connecting rod 32 faces the optocoupler 34. The principle of the detection device 3 for detecting the opening and closing state of the cabinet door 2 is as follows: when the cabinet door 2 is closed, the cabinet door 2 presses against the end of the connecting rod 32 that passes out, causing the connecting rod 32 to move inward and driving the elastic member 33 to compress. At the same time, the other end of the connecting rod 32 extends into the detection area of the optocoupler 34, thereby triggering the optocoupler 34 to determine that the cabinet door 2 is in the closed state at this time; it can be understood that when the cabinet door 2 is opened, the elastic member 33 generates a rebound potential energy to cause the connecting rod 32 to extend out of the detection area of the optocoupler 34.
[0047] The weighing device 4 is provided in the cabinet body 1 and is used to weigh and count the medicines in the cabinet body 1. The weighing device 4 includes a weighing sensor, a loading platform, and a control board; the loading platform is used to carry medicines and is installed above the weighing sensor. The control board is respectively communicatively connected to the weighing sensor and the optocoupler 34. Specifically, it can be connected through a cable or through a wireless transmission method; the layout position of the control board is relatively flexible. The control board can be installed in the cabinet body 1, on the cabinet door 2, or in the detection component, which is convenient for connecting with the optocoupler 34 through a cable.
[0048] A display device 5, which may include a display screen. The display device 5 is communicatively connected to the control board in the weighing device 4. The display device 5 can receive signals from the control board and accordingly display the item counting result for the user to check the quantity of items in the medical cabinet. Here, "check" includes checking when taking and placing items and during the storage process of items. The display device 5 can be installed inside the cabinet body 1 (refer to the position when it is set inside the cabinet body 1 in Figure 6 ), or it can be installed on the cabinet door 2. If the display device 5 is installed inside the cabinet body 1 and is in the storage cavity, at least a part of the cabinet door 2 needs to be set to be transparent; in this way, without opening the cabinet door 2, the user can also observe the information on the display device 5 during the storage process of items.
[0049] Continuing to combine Figure 8 and Figure 9 , a further introduction to the structure inside the detection device 3:
[0050] A detection module 341 is provided on the optocoupler 34, and a detection port for the link 32 to extend in or out is provided on the detection module 341. The detection module 341 includes an upper detection module 341 and a lower detection module 341 that are opposite to each other. A detection port for detecting the extension or retraction of the link 32 is formed between the upper detection module 341 and the lower detection module 341. Through this detection port, data such as the extension distance, retraction distance, and retraction time of the link 32 can be detected.
[0051] Furthermore, in combination with Figure 10 , an installation plate 35 and a lock assembly 36 fixedly installed on one side of the installation plate 35 are also provided inside the detection device 3. The optocoupler 34 can be installed on the other side of the installation plate 35. The lock assembly 36 and the optocoupler 34 can be fixed to the installation plate 35 with screws from their corner positions.
[0052] In an embodiment, a lock port 361 is provided on the lock assembly 36, and a lock ring 21 that snaps into the lock port 361 is provided on the cabinet door 2. When the cabinet door 2 is closed, the lock ring 21 snaps into the lock port 361 to complete the closing of the cabinet door 2.
[0053] Next, in combination with Figure 8 shown, the step S101 will be further introduced with the state when the link 32 extends into the optocoupler 34. The process of step S101 is as shown in Figure 2 shown, and includes:
[0054] S201. When the link 32 extends into the detection area of the optocoupler 34, a first control instruction is generated;
[0055] S202. According to the first control instruction, the weighing sensor periodically obtains the real-time weight value of the medicine in the medical cabinet, and the control board updates the real-time weight value to the initial weight value;
[0056] In this embodiment, when the connecting rod 32 extends into the detection area of the optocoupler 34, it is determined that the cabinet door 2 is being closed, triggering the generation of a first control instruction and sending it to the control board. The control board controls the weighing sensor to regularly obtain the real-time weight value of the drugs in the medical cabinet according to the first control instruction and updates the real-time weight value to the initial weight value, but interrupts the process of converting the regularly obtained real-time weight value into a counting result. At this time, the drug counting result is still the counting result before the interruption.
[0057] The following combines Figure 9 As shown, the state when the connecting rod 32 extends out of the optocoupler 34 is further used to introduce step S102. The process of step S102 is as Figure 3 shown and includes:
[0058] S301. When the connecting rod 32 extends out of the detection area of the optocoupler 34, generate a second control instruction;
[0059] S302. According to the second control instruction, the weighing sensor obtains the current weight value of the drugs in the medical cabinet, and the control board counts the drugs in the medical cabinet according to the current weight value and the initial weight value;
[0060] In this embodiment, when the connecting rod 32 extends into the detection area of the optocoupler 34, it is determined that the cabinet door 2 is being opened, triggering the generation of a second control instruction and sending it to the control board. The control board controls the weighing sensor to obtain the current weight value of the drugs in the medical cabinet according to the second control instruction, and counts the drugs in the medical cabinet according to the current weight value and the initial weight value.
[0061] Among them, counting the drugs in the medical cabinet according to the current weight value and the initial weight value: calculating the absolute value of the difference between the current weight value and the initial weight value, taking the obtained absolute value as the weighing change value, obtaining the drug change quantity according to the weighing change value and the weight of a single drug, and updating the drug counting result before the previous interruption based on the drug change quantity to obtain the current drug counting result.
[0062] The present invention triggers the generation of corresponding instructions by opening and closing the cabinet door 2. When the cabinet door 2 is closed, continue weighing but turn off the drug counting function. When the cabinet door 2 is opened, restore the drug counting function and count after accessing the drugs. After counting, turn off the counting function until the next access to the drugs; adopting the method proposed by the present invention effectively reduces the counting error when using the weight change value to count the drugs.
[0063] In one embodiment, continue to refer to Figure 8 and Figure 9 , step S201 includes:
[0064] When the cabinet door 2 is closed and the connecting rod 32 is driven to extend into the detection area of the optocoupler 34, the extension distance of the connecting rod 32 extending into the detection area of the optocoupler 34 is detected. When the extension distance is greater than the first preset distance, a first control instruction is generated and sent to the control board.
[0065] In this embodiment, when the cabinet door 2 is closed, vibrations will occur, and the vibrations will cause errors in the sensor. Therefore, by using the detection function of the optocoupler, during the closing process of the cabinet door 2, by judging the extension distance of the connecting rod 32 extending into the detection area of the optocoupler. For example, when the extension distance of the connecting rod 32 extending into the detection area of the optocoupler is greater than the first preset distance (1 / 3 of the total extension distance or other ratio), at this time, the cabinet door 2 is not completely closed yet and no vibrations have occurred. A first control instruction is generated and sent to the control board before complete closing, and the control board controls the counting function of the weighing sensor to be turned off, thus avoiding errors in the sensor caused by vibrations when the cabinet door 2 is closed.
[0066] In one embodiment, continue to refer to Figure 8 and Figure 9 , step S301 includes:
[0067] In a specific scenario, when the cabinet door 2 is opened and the connecting rod 32 is driven to extend out of the detection area of the optocoupler 34, the extension distance of the connecting rod 32 extending out of the detection area of the optocoupler 34 is detected. When the extension distance is greater than the second preset distance, a second control instruction is generated and sent to the control board.
[0068] When the cabinet door 2 is opened, vibrations will occur, and the vibrations will cause errors in the sensor. Therefore, by using the detection function of the optocoupler, during the opening process of the cabinet door 2, by judging the extension distance of the connecting rod 32 extending out of the detection area of the optocoupler. For example, when the extension distance of the connecting rod 32 extending out of the detection area of the optocoupler is greater than the second preset distance (4 / 5 of the total extension distance or other ratio), a second control instruction is generated and sent to the control board, and the control board controls the counting function of the weighing sensor to resume, thus avoiding vibrations generated at the moment when the cabinet door 2 is opened.
[0069] In one embodiment, continue to refer to Figure 8 and Figure 9 , step S301 includes:
[0070] In another specific scenario, when the cabinet door 2 is opened and the connecting rod 32 is driven to extend out of the detection area of the optocoupler 34, the extension time of the connecting rod 32 extending out of the detection area of the optocoupler 34 is detected. When the extension time is greater than the preset time threshold, a second control instruction is generated and sent to the control board.
[0071] When the cabinet door 2 is opened, vibrations will be generated, and the vibrations will cause errors in the sensor. Therefore, by utilizing the detection function of the optocoupler, during the process of opening the cabinet door 2, by judging the extension time of the connecting rod 32 extending out of the detection area of the optocoupler. For example, when the extension time of the connecting rod 32 extending out of the detection area of the optocoupler is greater than the preset time threshold, a second control instruction is generated and sent to the control board, and the control board controls the counting function of the weighing sensor to resume. At this time, the opening time of the cabinet door 2 has been greater than the preset time threshold, and the vibrations generated at the moment of opening the cabinet door 2 are also avoided.
[0072] Those skilled in the art can clearly understand that for the convenience and conciseness of description, the specific working process of the above-described structure can refer to the corresponding process in the foregoing method embodiment, and will not be elaborated herein.
[0073] The above is only the specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of various equivalent modifications or substitutions, and these modifications or substitutions should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A weighing and counting method for a medical cabinet, characterized in that, The medical cabinet includes a weighing device and a detection device for the position of the cabinet door. The detection device includes a connecting rod and an optocoupler. The weighing device includes a weighing sensor and a control board. The control board is communicatively connected to the weighing sensor and the optocoupler respectively. When the cabinet door is in the first position, the connecting rod extends into the detection area of the optocoupler. When the cabinet door is in the second position, the connecting rod extends out of the detection area of the optocoupler. The weighing and counting method includes: When the cabinet door is closed and drives the connecting rod to extend into the detection area of the optocoupler, detect the extension distance of the connecting rod into the detection area of the optocoupler. When the extension distance is greater than a first preset distance, generate a first control instruction. According to the first control instruction, the weighing sensor periodically obtains the real-time weight value of the drugs in the medical cabinet, and the control board updates the real-time weight value to the initial weight value. When the connecting rod extends out of the detection area of the optocoupler, generate a second control instruction. According to the second control instruction, the weighing sensor obtains the current weight value of the drugs in the medical cabinet, and the control board counts the drugs in the medical cabinet according to the current weight value and the initial weight value.
2. The weighing and counting method for a medical cabinet according to claim 1, characterized in that, The counting of the drugs in the medical cabinet according to the current weight value and the initial weight value includes: obtaining a weighing change value according to the current weight value and the initial weight value, obtaining the number of drug changes according to the weighing change value, and updating the drug counting result based on the number of changes.
3. The weighing and counting method according to claim 1 or 2, characterized in that, The medical cabinet further includes at least one display device, and the method further includes: Controlling the display device to display the counting result when the cabinet door is in the second position.
4. The weighing and counting method for a medical cabinet according to claim 2, characterized in that, The generating of the second control instruction when the connecting rod extends out of the detection area of the optocoupler includes: When the cabinet door is opened and drives the connecting rod to extend out of the detection area of the optocoupler, detect the extension distance of the connecting rod out of the detection area of the optocoupler. When the extension distance is greater than a second preset distance, generate a second control instruction and send the second control instruction to the control board.
5. The weighing and counting method for a medical cabinet according to claim 2, characterized in that, The generating of the second control instruction when the connecting rod extends out of the detection area of the optocoupler includes: When the cabinet door is opened and drives the connecting rod to extend out of the detection area of the optocoupler, detect the extension time of the connecting rod out of the detection area of the optocoupler. When the extension time is greater than a preset time threshold, generate a second control instruction and send the second control instruction to the control board.
6. A medical cabinet applied to the weighing and counting method according to claim 1, characterized in that, Includes A cabinet body having a storage cavity for accommodating drugs; A cabinet door movably connected to the cabinet body; A detection device provided on the cabinet body and used for detecting the opening and closing state of the cabinet door; A weighing device provided on the cabinet body and communicatively connected to the detection device, The weighing device is used to periodically obtain the real-time weight value of the drugs in the medical cabinet and update it to the initial weight value when the detection device detects that the cabinet door is in the first position; The weighing device is used to obtain the current weight value of the drugs in the medical cabinet and count the drugs in the medical cabinet according to the current weight value and the initial weight value when the detection device detects that the cabinet door is in the second position.
7. The medical cabinet according to claim 6, characterized in that, The detection device includes a device shell, a connecting rod, an elastic member sleeved on the connecting rod, and an optical coupler. One end of the connecting rod passes through the device shell, and the other end of the connecting rod faces the optical coupler. When the cabinet door is closed, one end of the connecting rod is pressed and the other end of the connecting rod is extended into the detection area of the optical coupler. When the cabinet door is opened, the elastic member drives the connecting rod to extend out of the detection area of the optical coupler. The optical coupler is used to detect the distance of the connecting rod extending into the optical coupler detection area when the cabinet door is closed and the connecting rod is linked to extend into the optical coupler detection area, and to generate a first control instruction when the extending distance is greater than a first preset distance; The weighing device is used to obtain the real-time weight value of the medicines in the medical cabinet at regular intervals according to the first control instruction, and update the current weight value to the initial weight value; The optical coupler is used to generate a second control instruction when the connecting rod extends out of the detection area of the optical coupler; The weighing device is used to obtain the current weight value of the medicines in the medical cabinet according to the second control instruction, and count the medicines in the medical cabinet according to the current weight value and the initial weight value; Among them, counting the medicines in the medical cabinet according to the current weight value and the initial weight value includes: obtaining a weighing change value according to the current weight value and the initial weight value, obtaining a changed quantity of medicines according to the weighing change value, and updating the medicine counting result based on the changed quantity.
8. The medical cabinet according to claim 7, characterized in that, The optical coupler is provided with a detection module, and the detection module is provided with a detection port for the connecting rod to extend in or out.
9. The medical cabinet according to claim 6, characterized in that, It also includes at least one display device, which is installed on the cabinet door or the cabinet body. The display device can receive signals from the weighing device and display the quantity of medicines in the cabinet body.
Citation Information
Patent Citations
Drug measuring method of smart medicine cabinet, smart medicine cabinet and storage medium
CN109141594A
Automatic shelling method for cargo access weighing
CN109870227A
Unmanned retail cabinet with monitoring function, working method of unmanned retail cabinet and user side
CN110084959A
Locker door operating device
JP2000336990A