Medical cabinet
The test device determines the cabinet door status, controls the weighing device to update the initial weight value in the medical cabinet and counts when it is opened, solving the problem of inaccurate counting caused by the accumulation of the weighing sensor error, and achieving high-precision weighing counting.
Patent Information
- Application Number
- CN202510485789.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-09
- Publication Date
- 2025-08-08
AI Technical Summary
The weighing and counting methods of existing medical cabinets are prone to inaccurate counting results due to the accumulated error of the weighing sensor, especially when the accumulated errors are stored for a long time, resulting in counting errors.
The testing device determines whether the cabinet door is closed, and the weighing device controls the weighing device to update the initial weight value regularly when the cabinet door is closed, and counts according to the initial and current weight values when the cabinet door is opened to avoid error accumulation.
The impact of weighing sensor error on the counting result is reduced, the accuracy and accuracy of weighing counting is improved, and the counting error caused by long-term storage is prevented.
Smart Images

Figure CN120445375A_ABST
Abstract
Description
[0001] This application is a divisional application of the Chinese application with the application date of November 9, 2021, application number 2021113178873, and invention name “Weighing and counting method of medical cabinet and medical cabinet”. Technical Field
[0002] The present invention relates to the technical field of medical equipment, and in particular to a weighing and counting method for a medical cabinet and the medical cabinet. Background Art
[0003] Hospital cabinets, such as medication management cabinets and medical supplies cabinets, can weigh and count items placed within them. Simply put, a load cell is installed within the cabinet. After the load cell measures the total weight of the items, a controller divides the total weight by the weight of each item to determine the number of items in the cabinet.
[0004] However, medical cabinets capable of both weighing and counting are prone to inaccurate counting results due to weighing errors. Load cell errors are influenced by the physical properties of the weighing device itself and the weighing environment. When no items are placed or removed, the load cell's measurement results fluctuate. While the weight values measured by the load cell are random in the short term, they tend to accumulate over the long term. Over time, if the accumulated error is greater than the weight of a single item, the count will shift even if no items are actually added, leading to inaccurate results. Summary of the Invention
[0005] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention provides a weighing and counting method for a medical cabinet, which can reduce the impact of the accumulated error of the weighing sensor on the counting result and improve the accuracy of weighing and counting.
[0006] The present invention also provides a medical cabinet.
[0007] According to the first aspect of the present invention, a medical cabinet weighing and counting method includes: when the detection device detects that the cabinet door is closed, the weighing device periodically obtains the real-time weight value of the items in the medical cabinet and updates it to the initial weight value; when the detection device detects that the cabinet door is open, the weighing device obtains the current weight value of the items in the medical cabinet and counts the items in the medical cabinet based on the current weight value and the initial weight value.
[0008] The medical cabinet weighing and counting method according to an embodiment of the present invention has at least the following beneficial effects: The weighing and counting method of the present invention uses a detection device to determine whether the cabinet door is closed to determine whether the user performs the operation of taking or placing items, and then puts the weighing device into different operating modes. When the cabinet door is closed, the user does not perform the operation of taking or placing items, and the weighing device only updates the weighing result but not the counting result. Compared with weighing and counting items all the time, this setting can avoid counting errors caused by storing items for a long time. The weighing and counting method of the present invention can effectively reduce counting errors caused by the accumulation of errors, and the counting accuracy of this weighing and counting method is high.
[0009] According to some embodiments of the present invention, the detection device includes a trigger and a connecting rod, the weighing device includes a weighing sensor and a control board, the control board is respectively connected to the weighing sensor and the trigger in communication, when the cabinet door is closed, the connecting rod triggers the trigger, and when the cabinet door is opened, the connecting rod is separated from the trigger; when the detection device detects that the cabinet door is closed, the weighing device periodically obtains the real-time weight value of the items in the medical cabinet and updates it to the initial weight value, which includes: when the connecting rod triggers the trigger, a control instruction is generated; according to the control instruction, the weighing sensor The sensor obtains the real-time weight value of the items in the medical cabinet, and the control board updates the real-time weight value to the initial weight value; when the detection device detects that the cabinet door is open, the weighing device obtains the current weight value of the items in the medical cabinet, and counts the items in the medical cabinet according to the current weight value and the initial weight value, including: when the connecting rod is separated from the trigger, the weighing sensor obtains the current weight value of the items in the medical cabinet, and the control board counts the items in the medical cabinet according to the current weight value and the initial weight value.
[0010] According to some embodiments of the present invention, when the detection device detects that the cabinet door is open, the weighing device obtains the current weight value of the items in the medical cabinet, and counts the items in the medical cabinet based on the current weight value and the initial weight value, including: when the detection device detects that the cabinet door is open, obtaining a weighing change value based on the current weight value and the initial weight value, obtaining a changed number of items based on the weighing change value, and updating the item counting result based on the changed number.
[0011] According to some embodiments of the present invention, the method further includes: if the weight change value obtained based on the current weight value and the initial weight value is less than a preset value after exceeding a preset time, the weighing device generates an alarm instruction.
[0012] According to some embodiments of the present invention, the medical cabinet further includes at least one display device; when the detection device detects that the cabinet door is closed, the weighing device periodically obtains the real-time weight value of the items in the medical cabinet and updates it to the initial weight value, further comprising: the weighing device controls the display device to display the counting result before the cabinet door is closed; when the detection device detects that the cabinet door is open, the weighing device obtains the current weight value of the items in the medical cabinet, and counts the items in the medical cabinet according to the current weight value and the initial weight value, further comprising: the weighing device controls the display device to display the counting result after the cabinet door is opened.
[0013] According to the second aspect of the present invention, the medical cabinet includes: a cabinet body having a storage cavity for accommodating items; a cabinet door movably connected to the cabinet body, the cabinet door being able to move relative to the cabinet body to close the storage cavity or release the closure of the storage cavity; a detection device for detecting whether the cabinet door is closed; a weighing device installed in the storage cavity, the weighing device being communicatively connected to the detection device; the weighing device is used to periodically obtain the real-time weight value of the items in the cabinet body when the cabinet door is closed, and update it to the initial weight value; the weighing device is used to obtain the current weight value of the items in the cabinet body when the cabinet door is open, and count the items in the cabinet body according to the current weight value and the initial weight value.
[0014] The medical cabinet according to the embodiment of the present invention has at least the following beneficial effects: it can reduce the influence of the accumulated error of the weighing sensor on the counting result, and improve the accuracy of weighing and counting.
[0015] According to some embodiments of the present invention, the weighing device includes a weighing sensor and a control board, the weighing sensor is used to measure the weight of the items, the control board is communicated with the weighing sensor, and the control board is used to count the items according to the weighing results of the weighing sensor; the detection device includes a trigger and a connecting rod, the detection device is installed on the cabinet body, and the cabinet door can resist the connecting rod and drive the connecting rod to move, so that the connecting rod triggers the trigger.
[0016] According to some embodiments of the present invention, the trigger includes a contact switch, and the connecting rod can abut against or separate from the contact switch to change an output signal of the contact switch.
[0017] According to some embodiments of the present invention, the trigger includes a non-contact switch, and the connecting rod can enter and exit a detection area of the non-contact switch to change an output signal of the non-contact switch.
[0018] According to some embodiments of the present invention, at least one display device is further included. The display device is installed on the cabinet door or the cabinet body. The display device can receive signals from the weighing device and display the number of items in the cabinet body.
[0019] Additional aspects and advantages of the present invention will be set forth in part in the description which follows and, in part, will be obvious from the description which follows, or may be learned by practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:
[0021] Figure 1 is a flow chart of the weighing and counting method of the present invention;
[0022] Figure 2 This is a flow chart of a weighing and counting method according to an embodiment of the present invention;
[0023] Figure 3 This is a schematic diagram of the error accumulation process of the weighing sensor;
[0024] Figure 4 A schematic diagram showing changes in detection results of a weighing device over time in one embodiment;
[0025] Figure 5 is a schematic diagram of a medical cabinet of the present invention;
[0026] Figure 6 is a schematic diagram of a detection device for a medical cabinet;
[0027] Figure 7 for Figure 6 Schematic diagram of another state of the detection device in.
[0028] Figure numerals: 101 - cabinet body, 102 - cabinet door, 103 - storage chamber, 104 - weighing device, 105 - display device, 106 - detection device, 201 - electric control box, 202 - control panel, 203 - support plate, 204 - contact switch, 205 - connecting rod, 206 - support rib, 207 - mounting plate, 208 - elastic member. DETAILED DESCRIPTION
[0029] The following describes embodiments of the present invention in detail. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended only to explain the present invention and are not to be construed as limiting the present invention.
[0030] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, they cannot be understood as limitations on the present invention.
[0031] In the description of the present invention, "several" means more than one, "plurality" means more than two, "greater than," "less than," and "exceed" are understood to exclude the number itself, while "above," "below," and "within" are understood to include the number itself. The use of "first" and "second" in the description is solely for the purpose of distinguishing technical features and should not be construed as indicating or implying relative importance, implicitly specifying the number of the indicated technical features, or implicitly specifying the order of the indicated technical features.
[0032] In the description of the present invention, unless otherwise clearly defined, terms such as setting, installing, and connecting should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention based on the specific content of the technical solution.
[0033] In the description of the present invention, reference to terms such as "one embodiment," "some embodiments," "illustrative embodiments," "examples," "specific examples," or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the exemplary expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
[0034] The present invention provides a weighing and counting method for a medical cabinet (hereinafter referred to as the weighing and counting method), which can be applied to the medical cabinet. The present invention also provides a medical cabinet. To facilitate the introduction of the weighing and counting method, the structure of the medical cabinet is first described below.
[0035] The medical cabinet includes a cabinet body 101, a cabinet door 102, a detection device 106 and a weighing device 104. Figure 5The cabinet 101 has a storage cavity 103 for storing items inside, and a cabinet door 102 is movably connected to the cabinet 101. The cabinet door 102 can move relative to the cabinet 101 to close or release the storage cavity 103. The cabinet door 102 can be slidably connected to the cabinet 101, for example, the cabinet 101 is provided with a slide rail, and the cabinet door 102 is installed with a pulley, so that the user can push the cabinet door 102 to open the medical cabinet; the cabinet door 102 can also be rotatably connected to the cabinet 101, for example, the cabinet door 102 and the cabinet 101 are rotatably connected by a hinge, so that the user can rotate the cabinet door 102 to open the medical cabinet.
[0036] The weighing device 104 is used to weigh and count items in the cabinet 101. The weighing device 104 includes a weighing sensor, a loading platform, and a control board 202. The loading platform and the weighing sensor are both disposed within the storage cavity 103, and the loading platform for carrying items is mounted above the weighing sensor. The control board 202 is connected to the weighing sensor in communication, specifically by a cable or wireless transmission. The layout of the control board 202 is relatively flexible, and the control board 202 can be mounted on the cabinet 101 or on the cabinet door 102.
[0037] The detection device 106 can detect whether the cabinet door 102 is closed, and the detection device 106 is connected to the weighing device 104 so that the weighing device 104 can receive the signal of the detection device 106 and operate in different modes according to the state of the cabinet door 102. To achieve the above functions, the detection device 106 includes a connecting rod 205 and a trigger. Figures 6 and 7 The detection device 106 may further include an electric control box 201, which is mounted on the cabinet 101. The trigger and the connecting rod 205 may be mounted in the electric control box 201, and the control board 202 may also be disposed in the electric control box 201. The connecting rod 205 is used to trigger the trigger, which sends a control instruction to the control board 202. The control board 202 adjusts the operating mode of the entire weighing device 104 according to the control instruction (this will be explained in detail below when the weighing and counting method is introduced).
[0038] The cabinet door 102 also has a support plate 203, which is located at the movable end of the cabinet door 102. Figure 6 and Figure 7 In some embodiments, the trigger includes a contact switch 204, the detection device 106 includes a mounting plate 207, the mounting plate 207 is installed in the electric control box 201, the contact switch 204 is fixed on the mounting plate 207, and the connecting rod 205 can pass through the electric control box 201 and the mounting plate 207.
[0039] Specifically, refer to Figure 6 and Figure 7In some embodiments, the detection device further includes an elastic member 208, and the connecting rod 205 has an annular abutting rib 206. The two ends of the elastic member 208 abut against the mounting plate 207 and the abutting rib 206 respectively. It should be noted that, for the convenience of illustrating the abutting rib 206, Figure 6 The elastic member is omitted in the figure. When the user closes the cabinet door 102, the supporting plate 203 supports one end of the connecting rod 205 and pushes the connecting rod 205, thereby increasing the length of the connecting rod 205 inside the electric control box 201. The connecting rod 205 supports and triggers the contact switch 204. During this process, the compression degree of the elastic member 208 gradually increases. When the user opens the cabinet door 102, the elastic member 208 will return to its original length. Under the elastic force of the elastic member 208, the connecting rod 205 moves away from the contact switch 204. When the connecting rod is restored to its original length, the elastic member 208 will return to its original length. Under the elastic force of the elastic member 208, the connecting rod 205 moves away from the contact switch 204. Figure 7 In the state shown, the connecting rod 205 no longer triggers the contact closure 204.
[0040] When the cabinet door 102 is closed (see Figure 6 ), the connecting rod 205 contacts the contact switch 204, thereby changing the output signal of the contact switch 204, and the trigger sends a control instruction to the control board 202 according to the change of the output signal of the contact switch 204. On the contrary, when the cabinet door 102 is opened (as can be seen from FIG. Figure 7 ), the connecting rod 205 is separated from the contact switch 204, and the trigger no longer sends control instructions to the control board 202. It should be noted that when the connecting rod 205 is not separated from the contact switch 204, the control instructions can be continuously sent to the control board 202 at a preset frequency. The contact switch 204 can be a micro switch, a touch switch, etc. Figure 6 and Figure 7 The illustrated embodiment shows a case where the contact switch 204 is configured as a micro switch.
[0041] In other embodiments, the contact switch 204 can be modified to a non-contact switch. When the cabinet door 102 is closed, the connecting rod 205 enters the detection area of the non-contact switch, thereby changing the output signal of the non-contact switch. The non-contact switch can be a photoelectric switch, a magnetic switch, or the like.
[0042] In some embodiments, the medical cabinet further includes at least one display device 105, which may include a display screen. The display device 105 is communicatively connected to the control board 202 in the weighing device 104, and the display device 105 can receive signals from the control board 202 and display the item counting results accordingly, so that the user can check the number of items in the medical cabinet. The "check" here includes checking when taking and placing items, as well as checking during the storage of items. The display device 105 can be installed on the cabinet body 101, or on the cabinet door 102. If the display device 105 is installed on the cabinet body 101 and is in the storage cavity 103, at least a portion of the cabinet door 102 needs to be set to transparent (see Figure 5 , Figure 5 The cabinet door 102 shown is a transparent glass door); thus, the user can observe the information on the display device 105 during the storage process of the items without opening the cabinet door 102.
[0043] The weighing counting method of the present invention is described in detail below. Figure 1 , the weighing and counting method includes the following steps:
[0044] S1: When the detection device 106 detects that the cabinet door 102 is closed, the weighing device 104 regularly obtains the real-time weight value of the items in the medical cabinet and updates it to the initial weight value;
[0045] S2: When the detection device 106 detects that the cabinet door 102 is opened, the weighing device 104 obtains the current weight value of the items in the medical cabinet and counts the items in the medical cabinet according to the current weight value and the initial weight value.
[0046] To explain the principle of the weighing and counting method of the present invention, the following briefly describes the accumulation of the error of the weighing sensor. Figure 3 If the actual weight of the items detected by the load cell remains unchanged, the weight value measured by the load cell will fluctuate over short time intervals. However, if the weight value is observed over longer time intervals, the weight value measured by the load cell will tend to increase (fluctuate upward) over time. In other words, over the long term, if the actual weight of the items detected by the load cell remains unchanged, the error between the load cell's measured value and the actual weight of the items will gradually increase. When this error gradually increases and accumulates to a value exceeding the weight of a single item, even if the actual weight of the items remains unchanged (no items are added), the counting result will be altered, resulting in counting errors.
[0047] by Figure 4For example, imagine such a situation: in the initial state, there are no items stored in the cabinet 101; then the user (such as the item management personnel) puts N1 items into the cabinet 101, and the weight of each item is W0, and then closes the door to store these N1 items for a period of time; after a period of time, the user takes out N2 items from the medical cabinet (N1≥N2). Figure 4 In the example, segment AB corresponds to the stage of putting N1 items in, segment BD corresponds to the stage of storing N1 items, segment DG corresponds to the stage of taking out N2 items, and segment GH corresponds to the stage of storing (N1-N2) items. Figure 3 , Figure 4 The plot in ignores fluctuations in weight values over shorter time intervals.
[0048] First, consider the situation when N1 items are placed and stored. The user first opens the cabinet door 102 and places the items on the loading platform. The user can place the items on the loading platform one by one or in batches, or place N1 items on the loading platform at once. During the storage of these N1 items, the error value of the weighing sensor will accumulate. If the storage time of these N1 items is long enough (for example, several hours or days), the error value of the weighing sensor will be greater than W0. For example, if Figure 4 As shown in the figure, when N1 items are first stored, the weight value measured by the weighing sensor is W1. After N1 items have been stored for a period of time, the weight value measured by the weighing sensor is W2, and W2-W1>W0.
[0049] Therefore, to avoid this situation, when the cabinet door 102 is closed, the weighing sensor of the weighing device 104 continues to weigh the N1 items. An initial weight value is stored in the control board 202, and the control board 202 will update the initial weight value in real time based on the measured value of the weighing sensor. However, the control board 202 does not perform the corresponding counting operation. Assuming that the frequency of the A / D (analog / digital) value acquisition of the weighing sensor is 10Hz, then every 0.1s, the initial weight value in the control board 202 will be updated and updated to the weight value most recently measured by the weighing sensor. For example, from T1 to T2, this initial weight value is continuously updated starting from W1, and after a period of time, the initial weight value becomes W2. However, when the cabinet door 102 is not open, regardless of the initial weight value updated to which it is, the weighing device 104 does not update the counting result, and the counting result remains the counting result before the door was last closed.
[0050] Consider the case of removing N2 items. After N1 items have been stored for a certain period of time, the user opens cabinet door 102 to remove the items. When cabinet door 102 is opened, weighing device 104 pauses updating the initial weight value (the initial weight value remains at W2). After cabinet door 102 is opened, weighing device 104 not only weighs the items in the medical cabinet but also counts the items based on the weight. The weighing sensor detects the current weight of the items. The control board 202 calculates the weight change value by the difference between the current weight value and the initial weight value (the initial weight value is W2). This weight change value is then divided by the weight of each item to obtain the change in the number of items (rounded to the nearest integer). The change in the number of items (which is signed) is then added to the count result from the last time the door was opened to obtain a real-time count result.
[0051] For example, the count result when the door was last opened was N1, and the initial weight value when the door was opened was W2. Suppose the user takes away several items, the current weight value becomes W3, and the weight change value is (W3-W2). The change in quantity is recorded as ΔN, then ΔN = (W3-W2) / W0, and the item count result is updated from N1 to (N1+ΔN). If the user takes away several more items, the current weight value becomes W4, and the weight change value is (W4-W2), then ΔN = (W4-W2) / W0, and the item count result also changes accordingly.
[0052] After taking out the items, the cabinet door 102 can be closed. Then, during the storage process of (N1-N2) items (and before the next taking out and putting in of items), the weighing device 104 also only weighs but does not count. The initial weight value is continuously updated, but the item counting result is still the item counting result when the cabinet door 102 was last closed.
[0053] In summary, the weighing and counting method of the present invention uses detection device 106 to determine whether the cabinet door 102 is closed, thereby determining whether the user is performing an operation to remove or place an item, and then places the weighing device 104 in a different operating mode. When the cabinet door 102 is closed, the user does not perform an operation to remove or place an item, and the weighing device 104 only updates the weighing result but not the counting result. Compared to continuously weighing and counting items, this setting can avoid counting errors caused by long-term storage of items. The weighing and counting method of the present invention can effectively reduce counting errors caused by the accumulation of errors, and the counting accuracy of this weighing and counting method is high.
[0054] The following is some additional information on the weight counting method.
[0055] It can be determined whether the cabinet door 102 is closed by determining whether the connecting rod installed on the cabinet door 102 triggers the trigger. Figure 2In some embodiments, step S1 specifically includes step S11 and step S12, and step S2 specifically includes step S21; the weighing and counting method includes:
[0056] S11: When the connecting rod triggers the trigger, a control instruction is generated;
[0057] S12: According to the control instruction, the weighing sensor obtains the real-time weight value of the items in the medical cabinet, and the control board updates the real-time weight value to the initial weight value;
[0058] S21: When the connecting rod is separated from the trigger, the weighing sensor obtains the current weight value of the items in the medical cabinet, and the control board counts the items in the medical cabinet according to the current weight value and the initial weight value.
[0059] During the actual use of medical cabinets, the following situations may occur: (1) the user opens the cabinet door 102 but does not take or place items for a long period of time; (2) the user does not close the cabinet door 102 for a long period of time after taking or placing items; (3) after opening the cabinet door 102, the interval between taking or placing two items or two batches of items is too long. According to the description of error accumulation mentioned above, when these three situations occur, counting errors may occur, especially when the non-operation period is long and the weight of each item is light.
[0060] To reduce or even avoid this situation, step S2 may further include: if the weight change value remains less than a preset value after a preset time has passed, the weighing device 104 generates an alarm command. After the cabinet door 102 is opened, if the weight change value remains less than the preset value after a preset time has passed, the control panel 202 of the weighing device 104 generates an alarm command. This alarm command may be sent to the display device, which may then display an alarm message to alert the user.
[0061] The preset time and preset value are both related to the rate of error accumulation and the weight of a single item. The error accumulation rate can be obtained during the commissioning and testing of the weighing device. The preset time and the weight of a single item can be stored in the control panel 202 before the medical cabinet is actually used. The preset time should be less than the time required for the error value to accumulate to the weight of a single item, and the preset value should be less than the weight of a single item.
[0062] In some embodiments, step S1 further includes: the weighing device 104 controls the display device 105 to display the count result before the cabinet door 102 is closed; and step S2 further includes: the weighing device 104 controls the display device 105 to display the count result after the cabinet door 102 is opened. This allows for a visual display of the number of items, making it easier for the user to monitor the number of items. Since the count result is not updated when the medical cabinet door 102 is closed, the current count result is the same as the count result before the door was last closed. Therefore, it can also be simply understood that the display device 105 displays the real-time count result of the items.
[0063] The display device 105 displays the item count result. If the cabinet door 102 is closed and has not been opened, the item count result is not updated and should remain unchanged. Therefore, when the cabinet door 102 is closed, the user primarily checks to see if the count result has changed. If the item count result changes, the user will need to determine whether the medical cabinet is malfunctioning or if an item has been lost (e.g., stolen). When placing or removing medication, the user can use the information displayed on the display device 105 to determine whether they have placed or removed enough items.
[0064] While the embodiments of the present invention have been described in detail above with reference to the accompanying drawings, the present invention is not limited to the embodiments described above. Various modifications may be made within the scope of knowledge possessed by a person skilled in the art without departing from the spirit of the present invention. Furthermore, the embodiments of the present invention and the features thereof may be combined with one another unless there is a conflict.
Claims
1. A medical cabinet, characterized in that: include: A cabinet body having a storage cavity for accommodating items; a cabinet door movably connected to the cabinet body, wherein the cabinet door can move relative to the cabinet body to close or release the sealing of the storage cavity; A detection device, used to detect whether the cabinet door is closed; a weighing device installed in the storage cavity, the weighing device being communicatively connected to the detection device; the weighing device being configured to periodically obtain the real-time weight values of the items in the cabinet when the cabinet door is closed, and update the real-time weight values to the initial weight values; the weighing device being configured to obtain the current weight values of the items in the cabinet when the cabinet door is opened, and obtain a weight change value based on the current weight value and the initial weight value, obtain a change in the number of items based on the weight change value, and update an item counting result based on the change in the number of items; the weighing device being further configured to generate an alarm instruction if the weight change value is less than a preset value after exceeding a preset time, the preset time being less than the time required for the error value of the weighing device to accumulate to the weight value of a single item, and the preset value being less than the weight value of a single item; In which, the detection device includes a trigger and a connecting rod, the detection device is installed on the cabinet body, the cabinet door can resist the connecting rod and drive the connecting rod to move, so that the connecting rod triggers the trigger, the detection device includes an electrical control box, the electrical control box is installed on the cabinet body, and the trigger and the connecting rod are installed in the electrical control box.
2. The medical cabinet according to claim 1, characterized in that: The trigger includes a contact switch, and the connecting rod can abut against or be separated from the contact switch to change an output signal of the contact switch.
3. The medical cabinet according to claim 2, characterized in that: The detection device includes a mounting plate, the mounting plate is installed in the electric control box, the contact switch is fixed on the mounting plate, and the connecting rod can pass through the electric control box and the mounting plate.
4. The medical cabinet according to claim 3, characterized in that: The detection device further comprises the elastic member, the connecting rod has an annular supporting rib, and two ends of the elastic member respectively support the mounting plate and the supporting rib.
5. The medical cabinet according to claim 4, characterized in that: During the process of closing the cabinet door, the supporting plate supports one end of the connecting rod and pushes the connecting rod, and the elastic member is compressed, thereby increasing the length of the connecting rod inside the electric control box, and the connecting rod supports and triggers the contact switch.
6. The medical cabinet according to claim 4 or 5, characterized in that: During the process of opening the cabinet door, the elastic member recovers, and under the elastic force of the elastic member, the connecting rod moves away from the contact switch. When the connecting rod is reset to a preset state, the connecting rod no longer triggers the contact switch.
7. The medical cabinet according to claim 1, characterized in that: The weighing device includes a weighing sensor and a control board. The weighing sensor is used to measure the weight of the items. The control board is communicatively connected to the weighing sensor and is used to count the items according to the weighing results of the weighing sensor.
8. The medical cabinet according to claim 6, characterized in that: The connecting rod is conical at one end close to the contact switch.
9. The medical cabinet according to claim 6, characterized in that: The contact switch is a micro switch or a tactile switch.
10. The medical cabinet according to claim 7, characterized in that: The cabinet further comprises at least one display device, which is mounted on the cabinet door or the cabinet body. The display device can receive a signal from the weighing device and display the number of the items in the cabinet body.