Display method and device for chest drainage volume data, electronic equipment and storage medium

By installing magnetoresistive sensor groups on both sides of the drainage bottle of the chest drainage device, the drainage volume data under shaking conditions is calculated, which solves the problem of inaccurate display of the drainage device when shaking, and achieves more accurate and stable data display.

CN121102603APending Publication Date: 2025-12-12HAINING LVJIAN MEDICAL PROD CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511545380.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2025-09-01
Filing Date
2025-10-28
Publication Date
2025-12-12

AI Technical Summary

Technical Problem

Existing chest drainage equipment displays inaccurate drainage volume data when the device is shaken, resulting in unstable display and making it difficult to provide reliable data reference.

Method used

Magnetoresistive sensor groups are set on both sides of the drainage bottle. The height data of the magnetic float is obtained through the two magnetoresistive sensor groups, the tilt angle is calculated, the drainage volume is directly calculated and displayed at the first frequency when there is no violent shaking, and the height data groups at multiple moments are collected when there is violent shaking. The target height data group is selected for calculation and displayed at a lower frequency.

Benefits of technology

It improves the accuracy and stability of traffic data, reduces calculation errors and display fluctuations caused by shaking, and provides reliable data reference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121102603A_ABST
    Figure CN121102603A_ABST
Patent Text Reader

Abstract

The invention provides a chest drainage amount data display method and device, electronic equipment and a storage medium, and the method is characterized in that magnetoresistive sensor groups are arranged on two opposite sides outside a drainage bottle, a height data group of a magnetic floating ball is obtained through the magnetoresistive sensor groups, and an inclination angle is calculated; the chest drainage data at each moment is directly calculated according to the height data set at each moment and is displayed at the first frequency, the display accuracy and timeliness of the chest drainage data can be ensured, when the inclination angle is larger than the preset angle, the height data sets at n continuous moments are firstly taken, then m target height data sets are selected, and the target height data sets are displayed at the same time. The chest drainage volume data is calculated on the basis and displayed at the second frequency, calculation errors caused by the fact that single-point value taking is affected by shaking can be solved, display jumping caused by frequent change of the drainage volume data can be relieved, and display of the chest drainage volume data is more accurate through integration of the two.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the medical technical field, and in particular to a chest drainage flow data display method and device, electronic equipment and storage medium. BACKGROUND

[0002] Monitoring the drainage flow of the drainage liquid by a digital chest drainage device has very important clinical significance in the treatment process, and can provide quantitative basis for the judgment of the extubation opportunity. When monitoring the drainage flow, the liquid level sensor is first used to measure the liquid level height in the drainage bottle, and then the drainage flow data is calculated and displayed on the display screen of the chest drainage device.

[0003] There are various schemes in the prior art for measuring the liquid level height by the liquid level sensor. For example, patent CN102121844B discloses that a plurality of giant magnetoresistance sensors are arranged on one side of the container, and a magnetic floating ball is arranged in the container. The liquid level height in the container is obtained by calculating the position of the magnetic floating ball by the giant magnetoresistance sensor. This scheme is used to measure the horizontal liquid level height. When it is necessary to measure the liquid level height of the inclined liquid surface placed in the horizontal state (hereinafter referred to as the inclined liquid level height), the prior art usually combines an inclination sensor to first measure the inclination angle, and then calculates the inclined liquid level height according to the inclination angle and the magnetic ball height. However, due to the data feedback delay and insufficient accuracy of the inclination sensor itself, the calculated inclined liquid level height is not accurate enough. To solve this problem, patent CN105004402B discloses that three ultrasonic sensors are arranged above the container. The liquid level of three different points of the inclined liquid surface is first calculated by the three ultrasonic sensors, and the inclination angle is calculated based on this. Finally, the inclined liquid level height is calculated. This scheme cancels the inclination sensor and uses the ultrasonic sensor itself to obtain the inclination angle, so that the accuracy is improved to a certain extent.

[0004] However, the above schemes calculate the inclined liquid level according to the inclined liquid surface as a flat inclined surface, and the digitalized chest drainage device is a portable device. If the patient moves during use, the liquid in the drainage bottle will shake. From the start of the shaking to the end of the shaking, the entire liquid surface does not directly transition from a flat horizontal surface to a flat inclined surface, but will produce irregular fluctuations. Therefore, the liquid surface is not always flat in the shaking state, and the more severe the shaking, the more uneven the liquid surface. When the liquid is in a shaking state, if the digitalized chest drainage device adopts the scheme in patent CN102121844B, the magnetic floating ball will be offset in the liquid due to the influence of shaking, which will cause inaccurate calculation of the position of the magnetic ball, and further cause large errors in the calculation of the inclined liquid level, which is not the true liquid level. If the digitalized chest drainage device adopts the scheme in patent CN105004402B, the inclined liquid level calculated based on the liquid level of three points still has a large error due to the uneven liquid surface in the shaking state. Therefore, when the liquid in the drainage bottle is in a shaking state, the above errors will cause the measured inclined liquid level to change frequently, and further cause the drainage volume displayed on the display screen of the chest drainage device to also fluctuate frequently, which is unstable. In fact, the drainage volume does not change much, which makes it difficult for the patient or medical staff to obtain data of reference value.

[0005] Therefore, the current chest drainage device has the technical problem of inaccurate display of drainage volume data, which needs to be improved. SUMMARY

[0006] The embodiments of the present application provide a chest drainage volume data display method and device, electronic equipment and storage medium, to alleviate the technical problem of inaccurate display of drainage volume data in the current chest drainage device.

[0007] To solve the above technical problems, the embodiments of the present application provide the following technical solutions:

[0008] The application provides a display method of thoracic drainage flow data, which is suitable for a thoracic drainage device, the thoracic drainage device comprises a host and a drainage bottle, the drainage bottle is detachably connected with the host, the drainage bottle comprises a first side and a second side arranged oppositely, a first magnetoresistance sensor group and a second magnetoresistance sensor group are arranged on the outside of the first side and the second side respectively, the first magnetoresistance sensor group comprises a first upper magnetoresistance sensor arranged on the top and a first lower magnetoresistance sensor arranged on the bottom, the second magnetoresistance sensor group comprises a second upper magnetoresistance sensor arranged on the top and a second lower magnetoresistance sensor arranged on the bottom, a first float ball channel and a second float ball channel extending along the height direction of the drainage bottle are arranged on the inside of the first side and the second side respectively, a first magnetic float ball is arranged in the first float ball channel, and a second magnetic float ball is arranged in the second float ball channel, and the method comprises the following steps:

[0009] First height data of the first magnetic float ball at each moment is acquired by the first magnetoresistance sensor group at a first frequency, second height data of the second magnetic float ball at each moment is acquired by the second magnetoresistance sensor group at the first frequency, and height data groups at each moment are obtained.

[0010] An inclination angle of the drainage bottle at each moment is obtained according to the width data of the drainage bottle and the height data groups at each moment.

[0011] It is judged whether the inclination angle at the current moment is greater than a preset angle.

[0012] If not, center liquid level height data of the drainage bottle is obtained according to the height mean value of the height data group at the current moment, thoracic drainage flow data is obtained according to the center liquid level height data, the maximum height data of the drainage bottle and the maximum capacity data of the drainage bottle, and the thoracic drainage flow data is displayed in the host at the first frequency.

[0013] If yes, n height data groups of n continuous moments are acquired, m target height data groups are determined from the n height data groups, center liquid level height data of the drainage bottle is obtained according to the height mean value of the m target height data groups, thoracic drainage flow data is obtained according to the center liquid level height data, the maximum height data of the drainage bottle and the maximum capacity data of the drainage bottle, and the thoracic drainage flow data is displayed in the host at a second frequency, the second frequency is equal to 1 / n of the first frequency, m and n are both integers greater than 1, and m is not greater than n.

[0014] In an embodiment, the step of acquiring n height data groups of n continuous moments comprises the following steps:

[0015] The height data groups of n continuous moments from the current moment are acquired, and the n height data groups are obtained.

[0016] In another embodiment, the step of obtaining n height data groups of n continuous time points comprises:

[0017] Obtaining height data groups of n1 continuous time points before the current time point and height data groups of n2 continuous time points from the current time point, obtaining the n height data groups, n1+n2=n.

[0018] In an embodiment, the step of determining m target height data groups from the n height data groups comprises:

[0019] Judging whether there is a non-target height data group in the n height data groups, the non-target height data group corresponding to the same inclination angle as any other height data group;

[0020] If yes, removing the non-target height data group from the n height data groups, and determining the remaining height data groups as the m target height data groups.

[0021] In another embodiment, the step of determining m target height data groups from the n height data groups comprises:

[0022] Obtaining a current flow rate at the current time point;

[0023] According to the current flow rate and the real-time sloshing time, determining the reference central liquid level height range corresponding to each time point in the n continuous time points, respectively;

[0024] Judging whether there is a non-target height mean in the n height means corresponding to the n height data groups, the non-target height mean not falling within the reference central liquid level height range at the corresponding time point;

[0025] If yes, removing the height data group corresponding to the non-target height mean from the n height data groups, and determining the remaining height data groups as the m target height data groups.

[0026] In an embodiment, the step of obtaining height data groups at each time point by the first magnetoresistance sensor group at a first frequency and the second magnetoresistance sensor group at the first frequency comprises:

[0027] When the flow rate is zero, obtaining the first minimum magnetic signal data and the first maximum magnetic signal data of the first magnetic floating ball by the first upper magnetoresistance sensor and the first lower magnetoresistance sensor, respectively, and obtaining the second minimum magnetic signal data and the second maximum magnetic signal data of the second magnetic floating ball by the second upper magnetoresistance sensor and the second lower magnetoresistance sensor, respectively.

[0028] When the flow volume is not zero, the first magnetic signal data of the first magnetic floating ball at each time is obtained through the first upper magnetic resistance sensor, and the second magnetic signal data of the second magnetic floating ball at each time is obtained through the second upper magnetic resistance sensor;

[0029] According to the first minimum magnetic signal data, the first maximum magnetic signal data, the first magnetic signal data, and the maximum height data of the transfusion bottle, the first height data of the first magnetic floating ball at each time is obtained.

[0030] According to the second minimum magnetic signal data, the second maximum magnetic signal data, the second magnetic signal data, and the maximum height data of the transfusion bottle, the second height data of the second magnetic floating ball at each time is obtained.

[0031] The first height data and the second height data at each time are combined to obtain the height data group at each time.

[0032] In an embodiment, the step of obtaining the first height data of the first magnetic floating ball at each time according to the first minimum magnetic signal data, the first maximum magnetic signal data, the first magnetic signal data, and the maximum height data of the transfusion bottle comprises:

[0033] The first difference value of the first maximum magnetic signal data and the first minimum magnetic signal data at each time, and the second difference value of the first magnetic signal data and the first minimum magnetic signal data are calculated.

[0034] The first ratio value of the first difference value and the second difference value at each time is calculated, and the first product of the first ratio value and the maximum height data of the transfusion bottle at each time is calculated.

[0035] The first product at each time is determined as the first height data of the first magnetic floating ball at each time.

[0036] The step of obtaining the second height data of the second magnetic floating ball at each time according to the second minimum magnetic signal data, the second maximum magnetic signal data, the second magnetic signal data, and the maximum height data of the transfusion bottle comprises:

[0037] The third difference value of the second maximum magnetic signal data and the second minimum magnetic signal data at each time, and the fourth difference value of the second magnetic signal data and the second minimum magnetic signal data are calculated.

[0038] calculating a second ratio of the third difference and the fourth difference at each time point, and calculating a second product of the second ratio and the maximum height data of the drainage bottle at each time point;

[0039] determining the second product at each time point as second height data of the second magnetic floating ball at each time point.

[0040] Meanwhile, the embodiment of the present application also provides a display device of thoracic cavity drainage flow data, the device is suitable for a thoracic cavity drainage equipment, the thoracic cavity drainage equipment includes a host computer and a drainage bottle, the drainage bottle is detachably connected with the host computer, the drainage bottle includes a first side and a second side arranged oppositely, the first side and the second side are respectively provided with a first magnetoresistance sensor group and a second magnetoresistance sensor group outside, the first magnetoresistance sensor group includes a first upper magnetoresistance sensor arranged at the top and a first lower magnetoresistance sensor arranged at the bottom, the second magnetoresistance sensor group includes a second upper magnetoresistance sensor arranged at the top and a second lower magnetoresistance sensor arranged at the bottom, the first side and the second side are respectively provided with a first floating ball channel and a second floating ball channel extending along the height direction of the drainage bottle inside, the first floating ball channel is provided with a first magnetic floating ball, and the second floating ball channel is provided with a second magnetic floating ball, and the device includes:

[0041] an acquisition module, configured to acquire first height data of the first magnetic floating ball at each time point by the first magnetoresistance sensor group at a first frequency, acquire second height data of the second magnetic floating ball at each time point by the second magnetoresistance sensor group at the first frequency, and obtain height data groups at each time point;

[0042] an obtaining module, configured to obtain an inclination angle of the drainage bottle at each time point according to width data of the drainage bottle and the height data groups at each time point;

[0043] a judging module, configured to judge whether the inclination angle at a current time point is greater than a preset angle;

[0044] a first display module, configured to, if not, obtain center liquid level height data of the drainage bottle according to a height mean value of the height data groups at the current time point, obtain thoracic cavity drainage flow data according to the center liquid level height data, maximum height data of the drainage bottle and maximum capacity data of the drainage bottle, and display the thoracic cavity drainage flow data in the host computer at the first frequency;

[0045] The second display module is used to acquire n height data groups at n consecutive time points, determine m target height data groups from the n height data groups, obtain the center liquid level height data of the drainage bottle based on the average height of the m target height data groups, obtain the chest cavity drainage volume data based on the center liquid level height data, the maximum height data of the drainage bottle, and the maximum capacity data of the drainage bottle, and display the data on the host computer at a second frequency, where the second frequency is equal to 1 / n of the first frequency, and m and n are both integers greater than 1, and m is not greater than n.

[0046] This application also provides an electronic device, including a memory and a processor; the memory stores an application program, and the processor is used to run the application program in the memory to perform the steps in the method for displaying chest drainage data as described in any of the preceding claims.

[0047] This application provides a computer-readable storage medium storing multiple instructions adapted for loading by a processor to execute the steps in the above-described method for displaying chest drainage data.

[0048] Beneficial Effects: This application provides a method, device, electronic device, and storage medium for displaying chest drainage volume data. The method involves setting magnetoresistive sensor groups on opposite sides of the drainage bottle. The height data of the magnetic float is acquired using these two magnetoresistive sensor groups, and the tilt angle is calculated accordingly. When the tilt angle is not greater than a preset angle, it is determined that the drainage bottle is not in a state of violent shaking. The chest drainage volume data for each moment is directly calculated based on the height data groups and displayed at a first frequency, ensuring the accuracy and timeliness of the chest drainage volume data display. When the tilt angle is greater than the preset angle, it is determined that the drainage bottle is in a state of violent shaking. In this case, n consecutive height data groups are first taken, and then m target height data groups are selected from them. The chest drainage volume data is calculated based on these and displayed at a second frequency. Since the second frequency is equal to 1 / n of the first frequency, it can solve the calculation error caused by the shaking of single-point values ​​and alleviate the display fluctuations caused by frequent changes in drainage volume data. The combination of these two factors makes the display of chest drainage volume data more accurate. Attached Figure Description

[0049] The technical solution and other beneficial effects of this application will become apparent from the following detailed description of specific embodiments in conjunction with the accompanying drawings.

[0050] Figure 1 This is a schematic diagram illustrating a method for displaying chest drainage data provided in an embodiment of this application.

[0051] Figure 2 for Figure 1Top view of a mid-thoracic drainage device.

[0052] Figure 3 for Figure 1 Front view of the mid-thoracic drainage device.

[0053] Figure 4 This is a flowchart illustrating the method for displaying chest drainage data provided in an embodiment of this application.

[0054] Figure 5 A schematic diagram of the structure of the display device for chest drainage data provided in the embodiments of this application.

[0055] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0056] Explanation of reference numerals in the attached figures:

[0057] Main unit 11; Drainage bottle 12; Display screen 111; First upper magnetoresistive sensor 1; First lower magnetoresistive sensor 2; Second upper magnetoresistive sensor 3; Second lower magnetoresistive sensor 4; First magnetic float 5; Second magnetic float 6; First float channel 7; Second float channel 8; First side 121; Second side 122; Acquisition module 10; Obtaining module 20; Judgment module 30; First display module 40; Second display module 50; Radio frequency circuit 101; Memory 102; Input unit 103; Display unit 104; Sensor 105; Audio circuit 106; WiFi module 107; Processor 108; Power supply 109. Detailed Implementation

[0058] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.

[0059] Please see Figure 1 , Figure 1 This is a schematic diagram illustrating a scenario in which the method for displaying chest drainage volume data provided in this application embodiment is applied. This scenario includes a chest drainage device. Figure 2 and Figure 3 These are the top and front views of a chest drainage device, respectively. Figures 1 to 3It is known that the chest drainage device includes a main unit 11 and a drainage bottle 12. The drainage bottle 12 is detachably connected to the main unit 11. The drainage bottle 12 includes a first side 121 and a second side 122 arranged opposite to each other. In the connection area between the two, a first magnetoresistive sensor group and a second magnetoresistive sensor group are respectively arranged on the outside of the first side 121 and the outside of the second side 122. The first magnetoresistive sensor group includes a first upper magnetoresistive sensor 1 arranged at the top and a first lower magnetoresistive sensor 2 arranged at the bottom. The second magnetoresistive sensor group includes a second upper magnetoresistive sensor 3 arranged at the top and a second lower magnetoresistive sensor 4 arranged at the bottom. A first float channel 7 and a second float channel 8 extending along the height direction of the drainage bottle 12 are respectively arranged inside the first side 121 and the second side 122. A first magnetic float 5 is arranged in the first float channel 7 and a second magnetic float 6 is arranged in the second float channel 8.

[0060] The host 11 obtains the first height data of the first magnetic float 5 and the second height data of the second magnetic float 6 through the first magnetoresistive sensor group and the second magnetoresistive sensor group, respectively, to obtain the height data group at each moment. The tilt angle is calculated based on this data. When the tilt angle is not greater than the preset angle, it is determined that the drainage bottle 12 has not entered a violent shaking state. The chest drainage volume data at each moment is directly calculated based on the height data group at each moment and displayed on the display screen 111 of the host 11 at the first frequency. This ensures the accuracy and timeliness of the chest drainage volume data display. When the tilt angle is greater than the preset angle, it is determined that the drainage bottle 12 has entered a violent shaking state. At this time, the height data group at n consecutive moments is taken first, and then m target height data groups are selected from them. The chest drainage volume data is calculated based on this data and displayed on the display screen 111 of the host 11 at the second frequency.

[0061] Since the second frequency is equal to 1 / n of the first frequency, it can both resolve the calculation error caused by the shaking of single-point values ​​and alleviate the display fluctuations caused by frequent changes in drainage volume data. The combination of these two factors makes the display of chest drainage volume data more accurate. In the following embodiments, the process of displaying chest drainage volume data will be described in detail in conjunction with the above structure.

[0062] Please see Figure 4 , Figure 4 This is a flowchart illustrating a method for displaying chest drainage data provided in an embodiment of this application. The method specifically includes:

[0063] S1: The first height data of the first magnetic buoy at each time moment is obtained by the first magnetoresistive sensor group at the first frequency, and the second height data of the second magnetic buoy at each time moment is obtained by the second magnetoresistive sensor group at the first frequency, so as to obtain the height data group at each time moment.

[0064] Combination Figures 1 to 3As shown, the drainage bottle 12 is connected to the human chest cavity via a drainage tube. Under the control of the main unit 11, the drainage fluid in the chest cavity can flow into the drainage bottle 12. As drainage proceeds, the fluid level gradually rises. The first magnetic float 5 and the second magnetic float 6, installed in the first float channel 7 and the second float channel 8, also rise with the fluid level. The dotted line between the first magnetic float 5 and the second magnetic float 6 indicates an inclined fluid surface. The first float channel 7 and the second float channel 8 can confine the first magnetic float 5 and the second magnetic float 6 within the channel, but drainage fluid from other areas can freely enter and exit the first float channel 7 and the second float channel 8. Therefore, the fluid levels inside and outside the two channels can be kept basically level. The height of the first magnetic float 5 and the second magnetic float 6 can be used to determine the fluid level at the location of the float.

[0065] Each magnetoresistive sensor operates based on the magnetoresistance effect, which refers to the change in resistivity of a magnetic material when placed in an external magnetic field. Specifically, each magnetoresistive sensor contains a sensing element, and each magnetic float provides the external magnetic field. When the sensing element is affected by the external magnetic field, its resistance changes. By measuring this change in resistance, the change in magnetic field can be determined. Since the change in magnetic field is related to the change in distance between the sensing element and the magnetic float, the data measured by each magnetoresistive sensor can be converted from digital to analog, outputting an AD value. This AD value is then used to obtain the distance data between the two elements, and thus the height data of each magnetic float.

[0066] In this embodiment, the first height data of the first magnetic float 5 can be obtained through the magnetoresistive effect between the first magnetoresistive sensor group and the first magnetic float 5, and the second height data of the second magnetic float 6 can be obtained through the magnetoresistive effect between the second magnetoresistive sensor group and the second magnetic float 6. The first height data and the second height data obtained at the same time constitute the height data set at that time. When acquiring the first height data and the second height data, a first frequency is used. The value of the first frequency can be set as needed. For example, a first frequency of 10Hz means that data from 10 moments are acquired per second, and the interval between any two adjacent moments in the 10 moments is equal. For ease of explanation, in the following embodiments, Hl and Hr are used to represent the first height data and the second height data, respectively.

[0067] In one embodiment, S1 specifically includes:

[0068] S11: When the drainage flow is zero, the first minimum magnetic signal data and the first maximum magnetic signal data of the first magnetic float are obtained by the first upper magnetoresistive sensor and the first lower magnetoresistive sensor, respectively. The second minimum magnetic signal data and the second maximum magnetic signal data of the second magnetic float are obtained by the second upper magnetoresistive sensor and the second lower magnetoresistive sensor, respectively.

[0069] The magnetic signal data measured by the magnetoresistive sensor is negatively correlated with the distance between the magnetoresistive sensor and the magnetic float; that is, the closer the distance, the stronger the magnetic signal. Initially, there is no drainage fluid in the drainage bottle 12, and the drainage flow is zero. At this time, the first magnetic float 5 is located at the bottom of the first float channel 7. The first upper magnetoresistive sensor 1 can acquire the first minimum magnetic signal data Vmin1 related to the first magnetic float 5, and the first lower magnetoresistive sensor 2 can acquire the first maximum magnetic signal data Vmax1 related to the first magnetic float 5. Similarly, the second upper magnetoresistive sensor 3 can acquire the second minimum magnetic signal data Vmin2 related to the second magnetic float 6, and the second lower magnetoresistive sensor 4 can acquire the second maximum magnetic signal data Vmax2 related to the second magnetic float 6.

[0070] S12: When the flow rate is not zero, the first magnetic signal data of the first magnetic float at each time is obtained through the first upper magnetoresistive sensor, and the second magnetic signal data of the second magnetic float at each time is obtained through the second upper magnetoresistive sensor.

[0071] At other times after the drainage begins, the drainage volume is not zero. At this time, the first magnetic float 5 is located between the top and bottom of the first float channel 7. The first magnetic signal data Va1 of the first magnetic float 5 can be obtained through the first upper magnetoresistive sensor 1, and the second magnetic signal data Va2 of the second magnetic float 6 can be obtained through the second upper magnetoresistive sensor 3.

[0072] S13: Based on the first minimum magnetic signal data, the first maximum magnetic signal data, the first magnetic signal data, and the maximum height data of the drainage bottle, obtain the first height data of the first magnetic float at each time point.

[0073] In existing technology, a single magnetoresistive sensor is used to directly measure the magnetic signal between itself and a magnetic float. The height of the magnetic float is then calculated from the magnetic signal, and this data is used as the liquid level height at the location of the magnetic float. However, zero-point offset of the magnetoresistive sensor can lead to inaccurate liquid level monitoring. For example, when the drainage flow is zero, the actual liquid level height at the location of the magnetic float is also zero, but the magnetoresistive sensor may measure a non-zero value, resulting in errors in all subsequent height measurements, and thus a relatively large error in the liquid level height.

[0074] In this embodiment of the application, after obtaining the above data, relevant calculations are performed on the data at each time to remove the influence caused by the zero-point offset of the first magnetoresistive sensor group. The first height data Hl of the first magnetic float 5 can reflect the true liquid level height at that position.

[0075] S14: Based on the second minimum magnetic signal data, the second maximum magnetic signal data, the second magnetic signal data, and the maximum height data of the drainage bottle, obtain the second height data of the second magnetic float at each time point.

[0076] Similarly, after obtaining the above data, relevant calculations are performed on the data at each time point to remove the influence caused by the zero-point offset of the second magnetoresistive sensor group. The resulting second height data Hr of the second magnetic float 6 can reflect the true liquid level height at that position.

[0077] S15: Combine the first altitude data and the second altitude data at each time point to obtain the altitude data set at each time point.

[0078] By combining the first altitude data Hl and the second altitude data Hr at each time point, the altitude data set at each time point can be obtained.

[0079] In one embodiment, S14 specifically includes:

[0080] S141: Calculate the first difference between the first maximum magnetic signal data and the first minimum magnetic signal data at each time point, and the second difference between the first magnetic signal data and the first minimum magnetic signal data.

[0081] S142: Calculate the first ratio of the first difference and the second difference at each time point, and calculate the first product of the first ratio and the maximum height data of the drainage bottle at each time point.

[0082] S143: Determine the first product at each time point as the first height data of the first magnetic buoy at each time point.

[0083] The first difference Va1-Vmin1 represents the change in magnetic signal data measured by the first upper magnetoresistive sensor 1 from the moment when the drainage volume is zero to any moment when the drainage volume is not zero. The second difference Vmax1-Vmin1 represents the range of magnetic signal data that can be measured within the capability range of the first magnetoresistive sensor group. The first ratio of the two is (Va1-Vmin1) / (Vmax1-Vmin1), which represents the proportion of the change in magnetic signal data corresponding to the first magnetic float 5 within the entire magnetic signal data range. Since the magnetic signal data corresponds one-to-one with the height data, this ratio can be used to represent the proportion of the change in the height of the first magnetic float 5 within the entire height range. Multiplying this proportion by the maximum height data Hmax of the drainage bottle 12, the first product is determined as the first height data Hl of the first magnetic float 5. This process can be expressed by the following formula:

[0084] (Formula 1)

[0085] In one embodiment, S15 specifically includes:

[0086] S151: Calculate the third difference between the second maximum magnetic signal data and the second minimum magnetic signal data at each time point, and the fourth difference between the second magnetic signal data and the second minimum magnetic signal data.

[0087] S152: Calculate the second ratio of the third and fourth differences at each time point, and calculate the second product of the second ratio and the maximum height data of the drainage bottle at each time point.

[0088] S153: Determine the second product at each time point as the second height data of the second magnetic buoy at each time point.

[0089] Similarly, the third difference Va2-Vmin2 represents the change in magnetic signal data measured by the first upper magnetoresistive sensor 1 from the moment when the drainage volume is zero to any moment when the drainage volume is not zero. The fourth difference Vmax2-Vmin2 represents the range of magnetic signal data that can be measured within the capability range of the second magnetoresistive sensor group. The second ratio of the two is (Va2-Vmin2) / (Vmax2-Vmin2), which represents the proportion of the change in magnetic signal data corresponding to the second magnetic float 6 within the entire magnetic signal data range. Since the magnetic signal data corresponds one-to-one with the height data, this ratio can be used to represent the proportion of the change in the height of the second magnetic float 6 within the entire height range. Multiplying this proportion by the maximum height data Hmax of the drainage bottle 12, the resulting second product is determined as the second height data Hr of the second magnetic float 6. This process can be expressed by the following formula:

[0090] (Formula 2)

[0091] Since the percentage of height variation within the entire height range is not affected by whether the magnetic sensor has zero-position offset, the calculated percentage is very accurate. The maximum height data Hmax of the drainage bottle 12 is a pre-designed fixed value. Therefore, the first height data Hl and the second height data Hr obtained based on the above two formulas can eliminate the influence of zero-position offset and have high accuracy.

[0092] S2: Based on the width data of the drainage bottle and the height data at each time point, obtain the tilt angle of the drainage bottle at each time point.

[0093] Let the width of the drainage bottle 12 be W, and the height data set at a certain moment include the first height data Hl and the second height data Hr. Then, the tilt angle θ of the drainage bottle 12 at that moment satisfies the following formula:

[0094] (Formula 3)

[0095] According to this formula, the tilt angle at each moment under the first frequency can be calculated, and this value is also the tilt angle of the liquid surface at each moment.

[0096] S3: Determine whether the tilt angle at the current moment is greater than the preset angle.

[0097] The current time can be any time at the first frequency. After calculating the tilt angle at the current time, first determine whether its value is greater than the preset angle. The value of the preset angle can be set based on experience, such as 15 degrees. The standard for setting this value is: when it exceeds this angle, the liquid surface will shake more violently, and vice versa.

[0098] S4: If not, obtain the center liquid level height data of the drainage bottle based on the average height of the height data group at the current moment. Based on the center liquid level height data, the maximum height data of the drainage bottle, and the maximum capacity data of the drainage bottle, obtain the chest drainage volume data and display it in the host at the first frequency.

[0099] If the judgment result is negative, it means that the liquid surface is not sloshing at the current moment, the liquid surface is a flat horizontal surface, or the sloshing amplitude is small, and the liquid surface can maintain a roughly flat inclined surface during sloshing and can quickly return to a flat horizontal surface. In this case, the average of the first height data Hl and the second height data Hr contained in the current height data group can be directly calculated, and the calculated average height is taken as the center liquid level height of the drainage bottle. This value can characterize the liquid level height after the inclined liquid surface is leveled. Let the center liquid level height be Hm, then Hm satisfies the following formula:

[0100] (Formula 4)

[0101] Let Hmax be the maximum height of the drainage bottle and Vmax be the maximum volume of the drainage bottle. Then, what is the chest drainage volume at the current moment? Satisfy the following formula:

[0102] (Formula 5)

[0103] In obtaining Then, it is displayed in the host at the first frequency, that is, every time a moment is calculated. All of these are refreshed and displayed on the display screen 111 of the host 11.

[0104] S5: If so, acquire n height data sets at n consecutive time points, determine m target height data sets from the n height data sets, obtain the center liquid level height data of the drainage bottle based on the average height of the m target height data sets, obtain the chest cavity drainage volume data based on the center liquid level height data, the maximum height data of the drainage bottle, and the maximum capacity data of the drainage bottle, and display it in the host at a second frequency. The second frequency is equal to 1 / n of the first frequency, where m and n are both integers greater than 1, and m is not greater than n.

[0105] If the judgment result is yes, it indicates that the current tilt is too large, and the liquid surface will enter a state of violent shaking. The center liquid level height Hm is calculated using only the first height data Hl and the second height data Hr measured at a single point, and then the result is obtained. There will be a large error, and this error will cause [the problem] at different times under the first frequency. The values ​​change frequently, and if they are still displayed at the highest frequency, it will cause the displayed data to fluctuate significantly.

[0106] Therefore, in this embodiment, if the judgment result is yes, then n consecutive height data groups at n consecutive moments will be acquired first. The n consecutive moments refer to n moments at the first frequency. During acquisition, a first data queue can be established for the first height data. Initially, the data insertion pointer points to 0. Each time a first height data is acquired from the first magnetoresistive sensor group, it is placed sequentially into the first data queue, and the data insertion pointer is moved one position to the right. When the total number of data in the first data queue is n, it can be taken out as n height data groups, and the data insertion pointer in the first data queue is reset to 0. The process continues to acquire the next n consecutive height data groups. The same applies to the second height data, and will not be elaborated further here. After acquiring n height data groups, m target height data groups that meet the requirements can be selected from them, where m and n are both integers greater than 1, and m is not greater than n.

[0107] When m equals n, it means that all n altitude data sets meet the requirements. In this case, the mean of the m first altitude data Hl is calculated respectively. The mean of m second altitude data Hr Finally, the calculation was completed. and The average height of the accumulator is taken as the center liquid level height of the drainage bottle. This value can characterize the liquid level height after the tilted liquid surface is leveled. Let the center liquid level height be... ,but Satisfy the following formula:

[0108] (Formula 6)

[0109] Let Hmax be the maximum height of the drainage bottle and Vmax be the maximum capacity of the drainage bottle, then the chest drainage volume data... Satisfy the following formula:

[0110] (Formula 7)

[0111] because The data is calculated based on n height data groups, and then it is displayed in the host at a second frequency. The second frequency is equal to 1 / n of the first frequency. If the first frequency is 10Hz and n is 10, then the second frequency is 1Hz, which means that it is displayed once every 1 second from the current moment.

[0112] In this step, when the drainage bottle 12 is shaken violently, the average of the height data at multiple moments is taken to calculate the final chest drainage volume data, which plays a role in smoothing and filtering. Compared with the single-point value and calculation scheme, the calculation result in this application is more accurate and has less error. In addition, this application uses a lower second frequency to display the data, which will reduce the display jitter problem caused by the above-mentioned error. The displayed chest drainage volume data can provide effective reference value for patients or medical staff.

[0113] There are multiple ways to obtain n sets of height data at n consecutive time points.

[0114] In one embodiment, S5 specifically includes:

[0115] S51: Obtain the altitude data sets for n consecutive time intervals starting from the current time, resulting in n altitude data sets.

[0116] In this embodiment, starting from the current time t1, n sets of height data are acquired sequentially from t1, resulting in a total of n sets of height data. This set of data can reflect the overall change of the liquid level from the current time onwards.

[0117] In another embodiment, S5 specifically includes:

[0118] S52: Obtain the altitude data sets for n1 consecutive moments before the current moment and the altitude data sets for n2 consecutive moments from the current moment, to obtain n altitude data sets, n1+n2=n.

[0119] In this embodiment, taking the current time t1 as the intermediate time, n1 consecutive time intervals before t1 are acquired, and n2 time intervals are acquired sequentially starting from t1, resulting in a total of n time intervals. Typically, the swaying state does not last long; therefore, the change in liquid level height from slight to significant swaying is not substantial. Since the calculated liquid level height before t1 is more accurate than under swaying conditions, using n1 time intervals of height data from before t1 for calculation can reduce the error caused by swaying, resulting in more accurate results.

[0120] The above steps S51 and S52 are parallel technical solutions. Those skilled in the art can choose one of the solutions to perform as needed to achieve the desired effect.

[0121] When m is less than n, it means that only a portion of the n height data groups meet the requirements, and further filtering is needed. Therefore, in one embodiment, the following is included after S51 or S52:

[0122] S53: Determine whether there is a non-target height data group among the n height data groups, and whether the tilt angle corresponding to the non-target height data group is equal to that of any other height data group.

[0123] S54: If so, remove the non-target height data groups from the n height data groups, and determine the remaining height data groups as m target height data groups.

[0124] Normally, when the liquid surface shakes violently, the highest and lowest points will alternately appear at the positions of the first magnetic float 5 and the second magnetic float 6. During this alternation, there will be instances where the left and right tilt angles are equal. For example, at a certain moment, the position of the first magnetic float 5 is lower than the position of the second magnetic float 6, with a left tilt angle of 16 degrees. As the shaking continues, the position of the first magnetic float 5 continues to descend, while the position of the second magnetic float 6 continues to rise, reaching a maximum left tilt angle of 17 degrees. Subsequently, the position of the first magnetic float 5 gradually rises, while the position of the second magnetic float 6 gradually descends until the position of the first magnetic float 5 is higher than the position of the second magnetic float 6, with a right tilt angle of 16 degrees. If the value of n is large, or if the maximum tilt angle is close to the preset angle, then two height data sets may have tilt angles that are equal (in opposite directions). The height data contained in the two height data sets will be quite similar. If the error of one is large, the error of the other will also be large. Including both in the calculation of the average will cause the error to accumulate doubly, resulting in the final value being... The error is also relatively large.

[0125] Therefore, in this embodiment, after obtaining n height data groups, it is first determined whether there are any non-target height data groups. A non-target height data group has the same tilt angle as any other height data group. If such a group exists, it is removed, and the remaining n-1 height data groups are used as m target height data groups. This method ensures that the tilt angles corresponding to the m target height data groups are all unequal, thus avoiding the accumulation of doubled errors and improving calculation accuracy. The accuracy.

[0126] In another embodiment, following S51 or S52, the following is further included:

[0127] S55: Get the current diversion rate at the current moment.

[0128] S56: Based on the current drainage rate and real-time sloshing time, determine the reference center liquid level height range for each of the n consecutive time moments.

[0129] S57: Determine whether there is a non-target height mean among the n height mean values ​​corresponding to the n height data groups. The non-target height mean value does not fall within the reference center liquid level height range at the corresponding time.

[0130] S58: If so, remove the height data group corresponding to the non-target height average from the n height data groups, and determine the remaining height data groups as m target height data groups.

[0131] Since the shaking time usually does not last very long, the drainage volume of fluid from the pleural cavity will not change significantly during the shaking period, and the corresponding central fluid level will not change significantly either. If the central fluid level calculated at a certain moment changes significantly, the data at that moment may have a large error and needs to be removed to reduce the error of the final calculation result.

[0132] When determining these data with large errors, it is necessary to first obtain the current drainage rate at the current moment. Then, for all other moments from the current moment, the current drainage rate is used as a reference. For each moment, the reference center liquid level height range corresponding to each moment can be calculated based on the current drainage rate and the real-time agitation time. Here, the real-time agitation time refers to the difference between the agitation moment and the current moment. Specifically, assuming the current drainage rate is v, and the real-time agitation time from the current moment t1 to the next moment t2 is t2-t1, then the increase in drainage volume during this time is v*(t2-t1). Based on this value, the center liquid level height data at the current moment, and the width data of the drainage bottle, the reference center liquid level height corresponding to the next moment t2 can be calculated. Considering errors and fluctuations, the reference center liquid level height ±x% can be used as the reference center liquid level height range. The value of x% can be set as needed, for example, 5%. For moment t3 after moment t2, a reference center liquid level height range can also be obtained in the same way, and so on for other moments.

[0133] Having obtained n height data sets, for each set, calculate the average height of its first and second height data. Then, determine whether this average height falls within the reference center liquid level height range at that moment. If it does, the set is retained; otherwise, it is treated as a non-target height data set and removed from the n height data sets. The remaining height data sets are then identified as m target height data sets.

[0134] Using the above method, non-target altitude data groups with obvious errors or large errors can be removed from n altitude data groups, improving efficiency. The accuracy.

[0135] Steps S53 to S54 and S55 to S58 above are two technical solutions. Those skilled in the art can choose one of the solutions for screening as needed, or they can combine the two solutions for screening to achieve the desired effect.

[0136] As can be seen from the above embodiments, the method for displaying chest drainage volume data provided in this application sets magnetoresistive sensor groups on both opposite sides of the drainage bottle. The height data of the magnetic float is obtained through the two magnetoresistive sensor groups, and the tilt angle is calculated based on this. When the tilt angle is not greater than a preset angle, it is determined that the drainage bottle has not entered a state of violent shaking. The chest drainage volume data at each moment is directly calculated based on the height data group at each moment and displayed at a first frequency, which can ensure the accuracy and timeliness of the chest drainage volume data display. When the tilt angle is greater than the preset angle, it is determined that the drainage bottle has entered a state of violent shaking. At this time, n consecutive height data groups are first taken, and then m target height data groups are selected from them. The chest drainage volume data is calculated based on these and displayed at a second frequency. Since the second frequency is equal to 1 / n of the first frequency, it can solve the calculation error caused by the shaking of single-point values ​​and alleviate the display jump caused by frequent changes in drainage volume data. The combination of the two makes the display of chest drainage volume data more accurate.

[0137] Based on the method described in the above embodiments, this embodiment will further describe the method from the perspective of a display device for chest drainage volume data. This device is suitable for chest drainage equipment, which includes a main unit and a drainage bottle. The drainage bottle is detachably connected to the main unit. The drainage bottle includes a first side and a second side arranged opposite to each other. A first magnetoresistive sensor group and a second magnetoresistive sensor group are respectively disposed on the outside of the first side and the outside of the second side. The first magnetoresistive sensor group includes a first upper magnetoresistive sensor disposed at the top and a first lower magnetoresistive sensor disposed at the bottom. The second magnetoresistive sensor group includes a second upper magnetoresistive sensor disposed at the top and a second lower magnetoresistive sensor disposed at the bottom. A first float channel and a second float channel extending along the height direction of the drainage bottle are respectively disposed inside the first side and the second side. A first magnetic float is disposed in the first float channel, and a second magnetic float is disposed in the second float channel. Please refer to [link to previous text]. Figure 5 The display device for chest drainage data may include:

[0138] The acquisition module 10 is used to acquire the first height data of the first magnetic buoy at each time moment through the first magnetoresistive sensor group at a first frequency, and acquire the second height data of the second magnetic buoy at each time moment through the second magnetoresistive sensor group at the first frequency, so as to obtain the height data group at each time moment.

[0139] The module 20 is used to obtain the tilt angle of the drainage bottle at each time point based on the width data of the drainage bottle and the height data group at each time point.

[0140] The judgment module 30 is used to determine whether the tilt angle at the current moment is greater than a preset angle;

[0141] The first display module 40 is used to, if not, obtain the center liquid level height data of the drainage bottle based on the average height of the height data group at the current moment, obtain the chest cavity drainage volume data based on the center liquid level height data, the maximum height data of the drainage bottle, and the maximum capacity data of the drainage bottle, and display it in the host at the first frequency;

[0142] The second display module 50 is configured to: acquire n height data groups at n consecutive time points, determine m target height data groups from the n height data groups, obtain the center liquid level height data of the drainage bottle based on the average height of the m target height data groups, obtain the chest cavity drainage volume data based on the center liquid level height data, the maximum height data of the drainage bottle, and the maximum capacity data of the drainage bottle, and display the data on the host computer at a second frequency, wherein the second frequency is equal to 1 / n of the first frequency, and m and n are both integers greater than 1, and m is not greater than n.

[0143] In one embodiment, the second display module 50 includes:

[0144] The first acquisition submodule is used to acquire height data groups for n consecutive time periods starting from the current time, thereby obtaining the n height data groups.

[0145] In one embodiment, the second display module 50 further includes:

[0146] The second acquisition submodule is used to acquire the height data groups for n1 consecutive moments before the current moment and the height data groups for n2 consecutive moments from the current moment, to obtain the n height data groups, n1+n2=n.

[0147] In one embodiment, the second display module 50 includes:

[0148] The first judgment submodule is used to determine whether there is a non-target height data group among the n height data groups, wherein the tilt angle of the non-target height data group is equal to that of any other height data group;

[0149] The first determining submodule is used to, if so, remove the non-target height data group from the n height data groups and determine the remaining height data groups as m target height data groups.

[0150] In one embodiment, the second display module 50 further includes:

[0151] The third acquisition submodule is used to acquire the current diversion rate at the current moment;

[0152] The second determining submodule is used to determine the reference center liquid level height range corresponding to each of the n consecutive moments based on the current drainage rate and the real-time shaking time.

[0153] The second judgment submodule is used to determine whether there is a non-target height average among the n height averages corresponding to the n height data groups, and the non-target height average does not fall within the reference center liquid level height range at the corresponding time.

[0154] The third determining submodule is used to, if so, remove the height data group corresponding to the non-target height average from the n height data groups, and determine the remaining height data groups as m target height data groups.

[0155] In one embodiment, the acquisition module 10 includes:

[0156] The fourth acquisition submodule is used to acquire, when the drainage flow is zero, the first minimum magnetic signal data and the first maximum magnetic signal data of the first magnetic float through the first upper magnetoresistive sensor and the first lower magnetoresistive sensor respectively, and to acquire the second minimum magnetic signal data and the second maximum magnetic signal data of the second magnetic float through the second upper magnetoresistive sensor and the second lower magnetoresistive sensor respectively.

[0157] The fifth acquisition submodule is used to acquire the first magnetic signal data of the first magnetic float at each time through the first upper magnetoresistive sensor and the second magnetic signal data of the second magnetic float at each time through the second upper magnetoresistive sensor when the flow rate is not zero.

[0158] The first obtaining submodule is used to obtain the first height data of the first magnetic float at each time point based on the first minimum magnetic signal data, the first maximum magnetic signal data, the first magnetic signal data, and the maximum height data of the drainage bottle;

[0159] The second obtaining submodule is used to obtain the second height data of the second magnetic float at each time point based on the second minimum magnetic signal data, the second maximum magnetic signal data, the second magnetic signal data, and the maximum height data of the drainage bottle;

[0160] The third submodule is used to combine the first altitude data and the second altitude data at each time point to obtain the altitude data group at each time point.

[0161] In one embodiment, the first obtaining submodule includes:

[0162] The first calculation unit is used to calculate the first difference between the first maximum magnetic signal data and the first minimum magnetic signal data at each time point, and the second difference between the first magnetic signal data and the first minimum magnetic signal data.

[0163] The second calculation unit is used to calculate the first ratio of the first difference and the second difference at each time point, and to calculate the first product of the first ratio and the maximum height data of the drainage bottle at each time point;

[0164] The first determining unit is used to determine the first product at each time point as the first height data of the first magnetic buoy at each time point.

[0165] The second submodule includes:

[0166] The third calculation unit is used to calculate the third difference between the second maximum magnetic signal data and the second minimum magnetic signal data at each time point, and the fourth difference between the second magnetic signal data and the second minimum magnetic signal data.

[0167] The fourth calculation unit is used to calculate the second ratio of the third difference and the fourth difference at each time point, and to calculate the second product of the second ratio and the maximum height data of the drainage bottle at each time point;

[0168] The second determining unit is used to determine the second product at each time point as the second height data of the second magnetic buoy at each time point.

[0169] Unlike existing technologies, the chest drainage data display device provided in this application has magnetoresistive sensor groups on both opposite sides of the drainage bottle. These two groups acquire height data of the magnetic float and use this data to calculate the tilt angle. When the tilt angle is no greater than a preset angle, the drainage bottle is determined not to be in a state of violent shaking. The chest drainage data for each moment is directly calculated based on the height data and displayed at a first frequency, ensuring the accuracy and timeliness of the chest drainage data display. When the tilt angle is greater than the preset angle, the drainage bottle is determined to be in a state of violent shaking. In this case, n consecutive height data sets are first taken, and then m target height data sets are selected from these. The chest drainage data is calculated based on these and displayed at a second frequency. Since the second frequency is equal to 1 / n of the first frequency, it can solve the calculation error caused by the shaking of single-point values ​​and alleviate the display fluctuations caused by frequent changes in drainage data. The combination of these two factors makes the display of chest drainage data more accurate.

[0170] Accordingly, embodiments of this application also provide an electronic device, such as... Figure 6As shown, the electronic device may include a radio frequency (RF) circuit 101, a memory 102 including one or more computer-readable storage media, an input unit 103, a display unit 104, a sensor 105, an audio circuit 106, a WiFi module 107, a processor 108 including one or more processing cores, and a power supply 109, among other components. Those skilled in the art will understand that... Figure 6 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:

[0171] The radio frequency circuit 101 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink information from the base station and hands it over to one or more processors 108 for processing; additionally, it transmits uplink data to the base station. The memory 102 can be used to store software programs and modules. The processor 108 executes various functional applications by running the software programs and modules stored in the memory 102. The input unit 103 can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to customer settings and function control.

[0172] Display unit 104 can be used to display information input by the customer or information provided to the customer, as well as various graphical client interfaces of the server. These graphical client interfaces can be composed of graphics, text, icons, videos, and any combination thereof.

[0173] The electronic device may also include at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Audio circuitry 106 includes a speaker that provides an audio interface between the client and the electronic device.

[0174] WiFi is a wireless transmission technology. Electronic devices using the WiFi module 107 can help customers send and receive emails, browse web pages, and access streaming media, providing customers with wireless broadband internet access. Although Figure 6 WiFi module 107 is shown, but it is understood that it is not a necessary component of the electronic device and can be omitted as needed without changing the nature of the application.

[0175] The processor 108 is the control center of the electronic device. It connects various parts of the phone through various interfaces and lines. By running or executing software programs and / or modules stored in the memory 102, and calling data stored in the memory 102, it performs various functions of the electronic device and processes data, thereby monitoring the phone as a whole.

[0176] The electronic device also includes a power supply 109 (such as a battery) that supplies power to the various components. Preferably, the power supply can be logically connected to the processor 108 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system.

[0177] Although not shown, electronic devices may also include cameras, Bluetooth modules, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 108 in the server loads the executable files corresponding to the processes of one or more applications into the memory 102 according to the following instructions, and the processor 108 runs the applications stored in the memory 102 to achieve the following functions:

[0178] The first height data of the first magnetic buoy is obtained at a first frequency by the first magnetoresistive sensor group, and the second height data of the second magnetic buoy is obtained at the first frequency by the second magnetoresistive sensor group, so as to obtain the height data group at each time.

[0179] Based on the width data of the drainage bottle and the height data at each time point, the tilt angle of the drainage bottle at each time point is obtained;

[0180] Determine whether the tilt angle at the current moment is greater than a preset angle;

[0181] If not, the center liquid level height data of the drainage bottle is obtained based on the average height of the height data group at the current moment. Based on the center liquid level height data, the maximum height data of the drainage bottle, and the maximum capacity data of the drainage bottle, the chest drainage volume data is obtained and displayed on the host at the first frequency.

[0182] If so, acquire n height data sets at n consecutive time points, determine m target height data sets from the n height data sets, obtain the center liquid level height data of the drainage bottle based on the average height of the m target height data sets, obtain the chest cavity drainage volume data based on the center liquid level height data, the maximum height data of the drainage bottle, and the maximum capacity data of the drainage bottle, and display it on the host at a second frequency, where the second frequency is equal to 1 / n of the first frequency, m and n are both integers greater than 1, and m is not greater than n.

[0183] The electronic device provided in this application can make the display of chest drainage data more accurate.

[0184] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the detailed description above, which will not be repeated here.

[0185] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0186] Therefore, embodiments of this application provide a computer-readable storage medium, which can be disposed on.

[0187] The computer-readable storage medium stores multiple instructions that can be loaded by a processor to perform the following functions:

[0188] The first height data of the first magnetic buoy is obtained at a first frequency by the first magnetoresistive sensor group, and the second height data of the second magnetic buoy is obtained at the first frequency by the second magnetoresistive sensor group, so as to obtain the height data group at each time.

[0189] Based on the width data of the drainage bottle and the height data at each time point, the tilt angle of the drainage bottle at each time point is obtained;

[0190] Determine whether the tilt angle at the current moment is greater than a preset angle;

[0191] If not, the center liquid level height data of the drainage bottle is obtained based on the average height of the height data group at the current moment. Based on the center liquid level height data, the maximum height data of the drainage bottle, and the maximum capacity data of the drainage bottle, the chest drainage volume data is obtained and displayed on the host at the first frequency.

[0192] If so, acquire n height data sets at n consecutive time points, determine m target height data sets from the n height data sets, obtain the center liquid level height data of the drainage bottle based on the average height of the m target height data sets, obtain the chest cavity drainage volume data based on the center liquid level height data, the maximum height data of the drainage bottle, and the maximum capacity data of the drainage bottle, and display it on the host at a second frequency, where the second frequency is equal to 1 / n of the first frequency, m and n are both integers greater than 1, and m is not greater than n.

[0193] The computer-readable storage medium provided in this application enables more accurate display of chest drainage data.

[0194] The foregoing has provided a detailed description of a method, apparatus, electronic device, and computer-readable storage medium for displaying thoracic drainage data according to embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the technical solutions and core ideas of this application. Those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. These modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A method for displaying chest drainage volume data, characterized in that, The method is applicable to a chest drainage device, which includes a main unit and a drainage bottle. The drainage bottle is detachably connected to the main unit. The drainage bottle includes a first side and a second side disposed opposite to each other. A first magnetoresistive sensor group and a second magnetoresistive sensor group are respectively disposed on the outside of the first side and the outside of the second side. The first magnetoresistive sensor group includes a first upper magnetoresistive sensor disposed at the top and a first lower magnetoresistive sensor disposed at the bottom. The second magnetoresistive sensor group includes a second upper magnetoresistive sensor disposed at the top and a second lower magnetoresistive sensor disposed at the bottom. A first float channel and a second float channel extending along the height direction of the drainage bottle are respectively disposed inside the first side and the second side. A first magnetic float is disposed in the first float channel, and a second magnetic float is disposed in the second float channel. The method includes: The first height data of the first magnetic buoy is obtained at a first frequency by the first magnetoresistive sensor group, and the second height data of the second magnetic buoy is obtained at the first frequency by the second magnetoresistive sensor group, so as to obtain the height data group at each time. Based on the width data of the drainage bottle and the height data at each time point, the tilt angle of the drainage bottle at each time point is obtained; Determine whether the tilt angle at the current moment is greater than a preset angle; If not, the center liquid level height data of the drainage bottle is obtained based on the average height of the height data group at the current moment. Based on the center liquid level height data, the maximum height data of the drainage bottle, and the maximum capacity data of the drainage bottle, the chest drainage volume data is obtained and displayed on the host at the first frequency. If so, acquire n height data sets at n consecutive time points, determine m target height data sets from the n height data sets, obtain the center liquid level height data of the drainage bottle based on the average height of the m target height data sets, obtain the chest cavity drainage volume data based on the center liquid level height data, the maximum height data of the drainage bottle, and the maximum capacity data of the drainage bottle, and display it on the host at a second frequency, where the second frequency is equal to 1 / n of the first frequency, m and n are both integers greater than 1, and m is not greater than n.

2. The method for displaying chest drainage volume data according to claim 1, characterized in that, The steps to obtain n altitude data sets at n consecutive time points include: Obtain the altitude data sets for n consecutive time intervals starting from the current time, thus obtaining the n altitude data sets.

3. The method for displaying chest drainage volume data according to claim 1, characterized in that, The steps to obtain n altitude data sets at n consecutive time points include: Obtain the altitude data sets for n1 consecutive moments before the current moment and the altitude data sets for n2 consecutive moments starting from the current moment to obtain the n altitude data sets, where n1 + n2 = n.

4. The method for displaying thoracic drainage volume data according to claim 2 or 3, characterized in that, The step of determining m target altitude data groups from the n altitude data groups includes: Determine whether there is a non-target height data group among the n height data groups, wherein the tilt angle corresponding to the non-target height data group is equal to that of any other height data group; If so, remove the non-target height data groups from the n height data groups, and determine the remaining height data groups as m target height data groups.

5. The method for displaying thoracic drainage volume data according to claim 2 or 3, characterized in that, The step of determining m target altitude data groups from the n altitude data groups includes: Obtain the current drainage rate at the current moment; Based on the current drainage rate and the real-time agitation time, the reference center liquid level height range corresponding to each of the n consecutive time moments is determined respectively; Determine whether there is a non-target height mean among the n height mean values ​​corresponding to the n height data groups, and the non-target height mean value does not fall within the reference center liquid level height range at the corresponding time. If so, remove the height data group corresponding to the non-target height average from the n height data groups, and determine the remaining height data groups as m target height data groups.

6. The method for displaying chest drainage volume data according to claim 1, characterized in that, The steps of obtaining a set of height data at each moment by acquiring the first height data of the first magnetic buoy at a first frequency using the first magnetoresistive sensor group and acquiring the second height data of the second magnetic buoy at the first frequency using the second magnetoresistive sensor group, include: When the drainage flow is zero, the first minimum magnetic signal data and the first maximum magnetic signal data of the first magnetic float are obtained by the first upper magnetoresistive sensor and the first lower magnetoresistive sensor, respectively; and the second minimum magnetic signal data and the second maximum magnetic signal data of the second magnetic float are obtained by the second upper magnetoresistive sensor and the second lower magnetoresistive sensor, respectively. When the flow rate is not zero, the first magnetic signal data of the first magnetic float at each time is obtained through the first upper magnetoresistive sensor, and the second magnetic signal data of the second magnetic float at each time is obtained through the second upper magnetoresistive sensor. Based on the first minimum magnetic signal data, the first maximum magnetic signal data, the first magnetic signal data, and the maximum height data of the drainage bottle, the first height data of the first magnetic float at each time point is obtained; Based on the second minimum magnetic signal data, the second maximum magnetic signal data, the second magnetic signal data, and the maximum height data of the drainage bottle, the second height data of the second magnetic float at each time point is obtained; Combine the first and second altitude data at each time point to obtain the altitude data set for each time point.

7. The method for displaying thoracic drainage volume data according to claim 6, characterized in that, The step of obtaining the first height data of the first magnetic float at each time point based on the first minimum magnetic signal data, the first maximum magnetic signal data, the first magnetic signal data, and the maximum height data of the drainage bottle includes: Calculate the first difference between the first maximum magnetic signal data and the first minimum magnetic signal data at each time point, and the second difference between the first magnetic signal data and the first minimum magnetic signal data; Calculate the first ratio of the first difference and the second difference at each time point, and calculate the first product of the first ratio and the maximum height data of the drainage bottle at each time point; The first product at each time point is determined as the first height data of the first magnetic buoy at each time point; The step of obtaining the second height data of the second magnetic float at each time point based on the second minimum magnetic signal data, the second maximum magnetic signal data, the second magnetic signal data, and the maximum height data of the drainage bottle includes: Calculate the third difference between the second maximum magnetic signal data and the second minimum magnetic signal data at each time point, and the fourth difference between the second magnetic signal data and the second minimum magnetic signal data; Calculate the second ratio of the third difference and the fourth difference at each time point, and calculate the second product of the second ratio and the maximum height data of the drainage bottle at each time point; The second product at each time point is determined as the second height data of the second magnetic buoy at each time point.

8. A display device for chest drainage volume data, characterized in that, The device is applicable to a chest drainage system, which includes a main unit and a drainage bottle. The drainage bottle is detachably connected to the main unit. The drainage bottle includes a first side and a second side disposed opposite to each other. A first magnetoresistive sensor group and a second magnetoresistive sensor group are respectively disposed on the outside of the first side and the outside of the second side. The first magnetoresistive sensor group includes a first upper magnetoresistive sensor disposed at the top and a first lower magnetoresistive sensor disposed at the bottom. The second magnetoresistive sensor group includes a second upper magnetoresistive sensor disposed at the top and a second lower magnetoresistive sensor disposed at the bottom. A first float channel and a second float channel extending along the height direction of the drainage bottle are respectively disposed inside the first side and the second side. A first magnetic float is disposed in the first float channel, and a second magnetic float is disposed in the second float channel. The device includes: The acquisition module is used to acquire the first height data of the first magnetic buoy at each time point through the first magnetoresistive sensor group at a first frequency, and acquire the second height data of the second magnetic buoy at each time point through the second magnetoresistive sensor group at the first frequency, so as to obtain the height data group at each time point. The module is used to obtain the tilt angle of the drainage bottle at each time point based on the width data of the drainage bottle and the height data set at each time point; The judgment module is used to determine whether the tilt angle at the current moment is greater than a preset angle; The first display module is used to, if not, obtain the center liquid level height data of the drainage bottle based on the average height of the height data group at the current moment, obtain the chest drainage volume data based on the center liquid level height data, the maximum height data of the drainage bottle, and the maximum capacity data of the drainage bottle, and display it in the host at the first frequency; The second display module is used to acquire n height data groups at n consecutive time points, determine m target height data groups from the n height data groups, obtain the center liquid level height data of the drainage bottle based on the average height of the m target height data groups, obtain the chest cavity drainage volume data based on the center liquid level height data, the maximum height data of the drainage bottle, and the maximum capacity data of the drainage bottle, and display the data on the host computer at a second frequency, where the second frequency is equal to 1 / n of the first frequency, and m and n are both integers greater than 1, and m is not greater than n.

9. An electronic device, characterized in that, It includes a memory and a processor; the memory stores an application program, and the processor runs the application program within the memory to perform the steps in the method for displaying thoracic drainage data as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that is executed by a processor to implement the steps of the method for displaying thoracic drainage data according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Non-contact liquid level meter based on giant magneto-resistance sensors

    CN102121844B

  • A Wireless Monitoring Method and System for Dynamic Liquid Level

    CN105004402B