Ventilator-based waveform plotting method, device, equipment and storage medium

By acquiring the coordinate axis position and parameter list of the display area in the ventilator, clearing data that has reached the threshold, and generating the target waveform, the problem of high CPU usage and inability to display segmented colors in ChartView waveform drawing is solved, achieving efficient and accurate waveform drawing and segmented color display.

CN119810250BActive Publication Date: 2025-11-18RESVENT MEDICAL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411929305.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-25
Publication Date
2025-11-18
Estimated Expiration
2044-12-25

AI Technical Summary

Technical Problem

In ventilators, using ChartView to draw waveforms results in high CPU usage, makes it impossible to display segmented colors, and fails to meet specific requirements.

Method used

By acquiring the waveform drawing area on the ventilator display screen, determining the coordinate axis position, and based on the actual data volume of the coordinate parameter list and color parameter list, clearing the data that reaches the threshold, generating the target waveform, and achieving segmented color display.

Benefits of technology

It effectively reduced CPU usage, improved the accuracy and efficiency of waveform drawing, and enabled segmented color display, overcoming the performance shortcomings of ChartView.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119810250B_ABST
    Figure CN119810250B_ABST
Patent Text Reader

Abstract

The application discloses a ventilator-based waveform drawing method and device, equipment and storage medium, including: determining the coordinate axis position according to the waveform drawing area; determining the first target data quantity and the second target data quantity according to the first actual data quantity in the coordinate parameter list, the second actual data quantity in the color parameter list, the data point coordinate parameter and the data point color parameter; when the first target data quantity and / or the second target data quantity reaches the corresponding quantity threshold, clearing the data in the coordinate parameter list and the color parameter list; adding the data point coordinate parameter and the data point color parameter to the coordinate parameter list and the color parameter list after clearing the data respectively; performing waveform drawing in the waveform drawing area according to the coordinate axis position, the target coordinate parameter list and the color parameter list, and generating a target waveform. The application can effectively reduce the CPU usage, improve the accuracy and efficiency of waveform drawing, and realize segmented color display.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of waveform drawing, and particularly relates to a waveform drawing method and device based on a breathing machine, equipment and a storage medium. BACKGROUND

[0002] The breathing machine can monitor the breathing state of the patient, and adjust the breathing parameter in real time to ensure that the patient can be supplied with appropriate oxygen. In the operation interface of the breathing machine, a waveform graph (such as an airflow waveform, a gas pressure waveform, a tidal volume waveform, etc.) is often used to display the breathing state of the patient and the working state of the machine, to help the doctor monitor the breathing process of the patient in real time. At present, Qt is widely used in the development of the graphical interface of the medical device as a cross-platform development framework. QML is a declarative language used for developing the user interface in the Qt framework, and is widely used in the graphical interface of many medical devices. The ChartView component is provided in QML, which is used to draw various charts, including the waveform graph. In the breathing machine, ChartView can be used to draw the data of the airflow waveform, the gas pressure waveform, etc. of the patient in real time, to provide an intuitive graphical interface. However, in the actual use process, the performance of ChartView is insufficient due to the real-time updating of the waveform graph by the breathing machine, especially under the condition of rapidly changing signals. ChartView needs to redraw the entire waveform graph every time a new data point is updated, which leads to a very high CPU occupancy rate, especially in the scene where the waveform graph needs to be frequently drawn and updated. The waveform graph of the breathing machine usually needs to show the changes of multiple parameters, such as airflow, gas pressure, tidal volume, etc., and the coordinate axis scale and label format of each waveform graph are often different. However, the coordinate axis customization function of ChartView itself is limited, and cannot meet the specific requirements. Moreover, ChartView does not directly support the function of segmented color display, and the developer can only use a uniform color to display the waveform, and cannot flexibly adjust the color interval according to different data values.

[0003] Therefore, how to reduce the CPU usage and realize the segmented color display of the waveform is a problem to be solved at present.

[0004] The above content is only used to assist in understanding the technical solutions of the present application, and does not mean that the above content is prior art. SUMMARY

[0005] The main purpose of the present application is to provide a waveform drawing method, device, equipment and storage medium based on a breathing machine, which aims to solve the technical problems of high CPU occupancy rate and inability to perform segmented color display when using ChartView to draw the waveform.

[0006] To achieve the above purpose, the present application provides a waveform drawing method based on a breathing machine, which comprises:

[0007] acquire a waveform drawing area in a ventilator display screen, and determine a coordinate axis position according to the waveform drawing area;

[0008] acquire a coordinate parameter list, a color parameter list, and data point coordinate parameters and data point color parameters of a waveform to be drawn;

[0009] determine a first target data amount in the coordinate parameter list and a second target data amount in the color parameter list according to a first actual data amount in the coordinate parameter list, a second actual data amount in the color parameter list, the data point coordinate parameters, and the data point color parameters;

[0010] when the first target data amount in the coordinate parameter list and / or the second target data amount in the color parameter list reaches a corresponding amount threshold, clear data in the coordinate parameter list and the color parameter list to obtain a cleared coordinate parameter list and a cleared color parameter list;

[0011] add the data point coordinate parameters and the data point color parameters to the cleared coordinate parameter list and the cleared color parameter list respectively to obtain a target coordinate parameter list and a target color parameter list;

[0012] perform waveform drawing in the waveform drawing area according to the coordinate axis position, the target coordinate parameter list, and the color parameter list to generate a target waveform.

[0013] In an embodiment, the waveform drawing in the waveform drawing area according to the coordinate axis position, the target coordinate parameter list, and the color parameter list to generate a target waveform includes:

[0014] detect whether there is a historical waveform in the waveform drawing area;

[0015] in a case where there is no historical waveform in the waveform drawing area, determine a drawing position according to the target coordinate parameter list;

[0016] perform waveform drawing in the waveform drawing area according to the drawing position, the coordinate axis position, the target coordinate parameter list, and the target color parameter list to generate a target waveform.

[0017] In an embodiment, after the detection of whether there is a historical waveform in the waveform drawing area, the method further includes:

[0018] in a case where there is a historical waveform in the waveform drawing area, determine a clearing position and a drawing position according to the target coordinate parameter list;

[0019] According to the clearing position, the historical waveform is cleared to obtain a cleared waveform drawing area;

[0020] According to the drawing position, the coordinate axis position, the target coordinate parameter list and the target color parameter list, waveform drawing is performed in the cleared waveform drawing area to generate a target waveform.

[0021] In an embodiment, the drawing position is determined according to the target coordinate parameter list, including:

[0022] A target data point at a preset position is selected from the target coordinate parameter list;

[0023] A drawing rectangle is determined according to the coordinate parameter of the target data point;

[0024] The drawing position is determined according to the drawing rectangle.

[0025] In an embodiment, the waveform drawing is performed according to the drawing position, the coordinate axis position, the target coordinate parameter list and the target color parameter list in the waveform drawing area to generate a target waveform, including:

[0026] The data point coordinates in the target coordinate parameter list are converted into graphic coordinates, and corresponding data point color parameters in the target color parameter list are obtained;

[0027] According to the coordinate axis position, the drawing position, the graphic coordinates and the corresponding data point color parameters, pressure waveform, flow waveform and volume waveform are drawn;

[0028] The drawn pressure waveform, flow waveform and volume waveform are taken as the target waveform.

[0029] In an embodiment, the pressure waveform, flow waveform and volume waveform are drawn according to the coordinate axis position, the drawing position, the graphic coordinates and the corresponding data point color parameters to generate a target waveform, including:

[0030] A plurality of X-axis labels and corresponding Y-axis labels are obtained;

[0031] According to the coordinate axis position, the plurality of X-axis labels and corresponding Y-axis labels, a plurality of coordinate systems are drawn;

[0032] According to the drawing position, the graphic coordinates and the corresponding data point color parameters, pressure waveform, flow waveform and volume waveform are drawn on the plurality of coordinate systems respectively.

[0033] In an embodiment, after determining the first target data amount in the coordinate parameter list and the second target data amount in the color parameter list according to the first actual data amount in the coordinate parameter list, the second actual data amount in the color parameter list, the data point coordinate parameter and the data point color parameter, the method further comprises:

[0034] When the first target data amount in the coordinate parameter list and the second target data amount in the color parameter list do not reach the corresponding quantity threshold, adding the data point coordinate parameter and the data point color parameter to the coordinate parameter list and the color parameter list respectively to obtain a target coordinate parameter list and a target color parameter list;

[0035] Performing waveform drawing in the waveform drawing area according to the coordinate axis position, the target coordinate parameter list and the color parameter list to generate a target waveform.

[0036] In addition, to achieve the above object, the application further provides a waveform drawing device based on a breathing machine, which comprises:

[0037] A determination module is configured to acquire a waveform drawing area in a display screen of a breathing machine and determine a coordinate axis position according to the waveform drawing area;

[0038] An acquisition module is configured to acquire a coordinate parameter list, a color parameter list, a data point coordinate parameter and a data point color parameter of a waveform to be drawn;

[0039] The determination module is further configured to determine a first target data amount in the coordinate parameter list and a second target data amount in the color parameter list according to a first actual data amount in the coordinate parameter list, a second actual data amount in the color parameter list, the data point coordinate parameter and the data point color parameter;

[0040] A clearing module is configured to clear data in the coordinate parameter list and the color parameter list when the first target data amount in the coordinate parameter list and / or the second target data amount in the color parameter list reaches a corresponding quantity threshold to obtain a coordinate parameter list after data clearing and a color parameter list after data clearing;

[0041] An adding module is configured to add the data point coordinate parameter and the data point color parameter to the coordinate parameter list after data clearing and the color parameter list after data clearing respectively to obtain a target coordinate parameter list and a target color parameter list;

[0042] A drawing module is configured to perform waveform drawing in the waveform drawing area according to the coordinate axis position, the target coordinate parameter list and the color parameter list to generate a target waveform.

[0043] In addition, to achieve the above object, the present application also provides a waveform drawing device based on a breathing machine, which comprises a memory, a processor and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the waveform drawing method based on the breathing machine.

[0044] In addition, to achieve the above object, the present application also provides a storage medium, which is a computer readable storage medium, and the storage medium stores a computer program, and the computer program is executed by a processor to implement the steps of the waveform drawing method based on the breathing machine.

[0045] In addition, to achieve the above object, the present application also provides a computer program product, which comprises a computer program, and the computer program is executed by a processor to implement the steps of the waveform drawing method based on the breathing machine.

[0046] The one or more technical solutions provided by the present application can obtain a waveform drawing area in a display screen of a breathing machine, and determine a coordinate axis position according to the waveform drawing area; obtain a coordinate parameter list, a color parameter list, and data point coordinate parameters and data point color parameters of a waveform to be drawn; determine a first target data amount in the coordinate parameter list and a second target data amount in the color parameter list according to a first actual data amount in the coordinate parameter list, a second actual data amount in the color parameter list, the data point coordinate parameters and the data point color parameters; when the first target data amount in the coordinate parameter list and / or the second target data amount in the color parameter list reaches a corresponding quantity threshold, clear the data in the coordinate parameter list and the color parameter list to obtain a coordinate parameter list after data is cleared and a color parameter list after data is cleared; add the data point coordinate parameters and the data point color parameters to the coordinate parameter list after data is cleared and the color parameter list after data is cleared respectively to obtain a target coordinate parameter list and a target color parameter list; and perform waveform drawing in the waveform drawing area according to the coordinate axis position, the target coordinate parameter list and the color parameter list to generate a target waveform, which can effectively reduce the CPU usage, improve the accuracy and efficiency of waveform drawing, and realize segmented color display.

[0047] In conclusion, the application determines the coordinate axis position, the first target data quantity in the coordinate parameter list and the second target data quantity in the color parameter list, so that when the first target data quantity and / or the second target data quantity in the color parameter list reaches the corresponding quantity threshold, the data in the coordinate parameter list and the color parameter list is cleared, the CPU usage can be effectively reduced, the data point coordinate parameter and the data point color parameter are added to the corresponding parameter list, and the waveform is drawn in the waveform drawing area according to the coordinate axis position, the target coordinate parameter list and the color parameter list, the waveform can be quickly and accurately drawn, the segmented color display of the waveform can be realized due to the consideration of the color parameter, the technical defects of high CPU occupancy rate and inability to perform segmented color display when using ChartView to draw the waveform are overcome, the CPU usage can be effectively reduced, the accuracy and efficiency of the waveform drawing are improved, and the segmented color display is realized. BRIEF DESCRIPTION OF DRAWINGS

[0048] The accompanying drawings, which are incorporated herein and constitute part of the specification, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application.

[0049] In order to more clearly illustrate the technical solutions in the embodiments of the application or the prior art, the accompanying drawings needed to be used in the embodiments or prior art description will be briefly introduced. Obviously, for those skilled in the art, other drawings can also be obtained based on these drawings without creative labor.

[0050] Figure 1 The flowchart provided by the embodiment one of the waveform drawing method based on the ventilator of the application;

[0051] Figure 2 The flowchart provided by the embodiment two of the waveform drawing method based on the ventilator of the application;

[0052] Figure 3 The module structure diagram of the waveform drawing device based on the ventilator of the embodiment of the application;

[0053] Figure 4 The device structure diagram of the hardware running environment involved in the waveform drawing method based on the ventilator in the embodiment of the application.

[0054] The purpose implementation, functional characteristics and advantages of the application will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION

[0055] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the application, and are not used to limit the application.

[0056] For better understanding of the technical solutions of the present application, the following will be described in detail in combination with the accompanying drawings and specific embodiments.

[0057] The main solution of the embodiment of the present application is: obtaining a waveform drawing area in a display screen of a breathing machine, and determining a coordinate axis position according to the waveform drawing area; obtaining a coordinate parameter list, a color parameter list, and data point coordinate parameters and data point color parameters of a waveform to be drawn; determining a first target data amount in the coordinate parameter list and a second target data amount in the color parameter list according to a first actual data amount in the coordinate parameter list, a second actual data amount in the color parameter list, the data point coordinate parameters, and the data point color parameters; when the first target data amount in the coordinate parameter list and / or the second target data amount in the color parameter list reaches a corresponding quantity threshold, clearing data in the coordinate parameter list and the color parameter list to obtain a coordinate parameter list after data is cleared and a color parameter list after data is cleared; adding the data point coordinate parameters and the data point color parameters to the coordinate parameter list after data is cleared and the color parameter list after data is cleared respectively to obtain a target coordinate parameter list and a target color parameter list; and performing waveform drawing in the waveform drawing area according to the coordinate axis position, the target coordinate parameter list, and the color parameter list to generate a target waveform.

[0058] A ventilator can monitor the patient's breathing status in real time to adjust the breathing parameters to ensure that the patient can receive appropriate oxygen supply. In the operation interface of the ventilator, a waveform graph (such as an air flow waveform, a gas pressure waveform, a tidal volume waveform, etc.) is often used to display the patient's breathing status and the working status of the machine, helping doctors to monitor the patient's breathing process in real time. At present, Qt is widely used in the development of graphical interfaces of medical devices as a cross-platform development framework. QML is a declarative language used in the Qt framework to develop user interfaces and is widely used in the graphical interfaces of many medical devices. ChartView components are provided in QML to draw various charts, including waveform graphs. In the ventilator, ChartView can be used to draw the air flow waveform, gas pressure waveform and other data of the patient in real time, providing an intuitive graphical interface. However, in actual use, the ventilator needs to update the waveform graph in real time, especially under rapidly changing signals, and the performance of ChartView is insufficient. ChartView needs to redraw the entire waveform graph every time a new data point is updated, resulting in a very high CPU usage, especially in scenarios where waveform graphs need to be frequently drawn and updated. The waveform graph of the ventilator usually needs to show the changes of multiple parameters such as air flow, gas pressure, tidal volume, etc., and the coordinate axis scale and label format of each waveform graph are often different. However, the customization function of ChartView's coordinate axis is limited and cannot meet specific needs, and ChartView does not directly support segmented color display, so developers can only use uniform colors to display waveforms and cannot flexibly adjust the color interval according to different data values. Therefore, how to reduce CPU usage and achieve segmented color display of waveforms is a problem that needs to be solved.

[0059] The present application can effectively reduce CPU usage by determining the coordinate axis position and determining the first target data amount in the coordinate parameter list and the second target data amount in the color parameter list, clearing the data in the coordinate parameter list and the color parameter list when the first target data amount and / or the second target data amount in the color parameter list reaches the corresponding quantity threshold, adding the data point coordinate parameters and the data point color parameters to the corresponding parameter list, and performing waveform drawing in the waveform drawing area according to the coordinate axis position, the target coordinate parameter list and the color parameter list. The present application can quickly and accurately perform waveform drawing, and can achieve segmented color display of waveforms due to the consideration of color parameters, overcoming the technical defects of high CPU usage and inability to perform segmented color display when using ChartView to draw waveforms, effectively reducing CPU usage, improving the accuracy and efficiency of waveform drawing, and achieving segmented color display.

[0060] It should be noted that the execution subject of the embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a waveform drawing device based on a breathing machine, etc. The following takes the waveform drawing device based on the breathing machine as an example to describe the embodiment and the following embodiments.

[0061] Based on this, the embodiment of the present application provides a waveform drawing method based on a breathing machine, which refers to Figure 1 , Figure 1 The flowchart of the first embodiment of the waveform drawing method based on a breathing machine of the present application is shown in the figure.

[0062] In the embodiment, the waveform drawing method based on a breathing machine includes steps S10-S70:

[0063] Step S10: Obtain the waveform drawing area in the breathing machine display screen, and determine the coordinate axis position according to the waveform drawing area.

[0064] It should be noted that the breathing machine display screen is an interface for real-time display and monitoring of the breathing state of a patient, which usually includes multiple waveform graphs, such as air flow waveform, air pressure waveform, etc., which are not specifically limited in the embodiment.

[0065] It can be understood that the waveform drawing area refers to a specific area on the breathing machine display screen for drawing waveforms, which is usually defined by software and can be a rectangular area on the screen for displaying specific respiratory parameter waveforms, such as air flow, air pressure, tidal volume, etc. The size and position of the waveform drawing area can be adjusted as needed to adapt to different display requirements and user preferences, for example, it can be adjusted according to the size of the entire graphical control, or it can be specified by the user, which is not specifically limited in the embodiment.

[0066] It is worth noting that the coordinate axis position can be the position of one or more reference lines in the waveform drawing area, including but not limited to X-axis, Y-axis, etc., for indicating the numerical range and trend of the waveform data. The coordinate axis position can be determined by software programming according to the waveform drawing area, for example, by analyzing the boundary information of the waveform drawing area, determining the starting point and ending point of the coordinate axis, and the interval and scale of the coordinate axis. The determination of the coordinate axis position is crucial for the correct display of the subsequent waveform data, as it provides a reference framework for the waveform data.

[0067] Step S20: Obtain the coordinate parameter list, the color parameter list, and the data point coordinate parameter and data point color parameter of the waveform to be drawn.

[0068] It should be noted that the coordinate parameter list is used to store the coordinate information of the waveform data points, including the X-axis and Y-axis coordinates of each data point, and the color parameter list is used to define the color information of the waveform data points, so as to distinguish different waveforms or different parts in the waveform. The data point coordinate parameters and data point color parameters of the waveform to be drawn are the key data actually used to draw the waveform, which determine the shape, position and color of the waveform. These parameters are usually collected in real time by the sensor of the ventilator and converted into a format suitable for display through a data processing algorithm.

[0069] Step S30: determining a first target data amount in the coordinate parameter list and a second target data amount in the color parameter list according to the first actual data amount in the coordinate parameter list, the second actual data amount in the color parameter list, the data point coordinate parameters and the data point color parameters.

[0070] It should be noted that the first actual data amount in the coordinate parameter list refers to the number of data point coordinates in the coordinate parameter list, and the second actual data amount in the color parameter list refers to the number of color information in the color parameter list. The first target data amount and the second target data amount are the number of data point coordinates and the number of color information in the coordinate parameter list and the color parameter list after adding the data point coordinate parameters and the data point color parameters of the waveform to be drawn.

[0071] It can be understood that the first target data amount in the coordinate parameter list and the second target data amount in the color parameter list are compared with the corresponding number threshold, respectively. If the first target data amount and the second target data amount both meet the preset threshold condition, the waveform is drawn in the next step; if not, the coordinate parameter list and the color parameter list need to be adjusted to ensure the accuracy and clarity of the waveform drawing.

[0072] In a feasible implementation, after step S30, it further includes: when the first target data amount in the coordinate parameter list and the second target data amount in the color parameter list do not reach the corresponding number threshold, adding the data point coordinate parameters and the data point color parameters to the coordinate parameter list and the color parameter list, respectively, to obtain a target coordinate parameter list and a target color parameter list; performing waveform drawing in the waveform drawing area according to the coordinate axis position, the target coordinate parameter list and the color parameter list, to generate a target waveform.

[0073] It should be noted that if the first target data quantity in the coordinate parameter list and the second target data quantity in the color parameter list both reach the corresponding quantity threshold, it indicates that the coordinate parameter list and the color parameter list can continue to store new waveform data points, without the need for data cleaning. At this time, the data point coordinate parameters and the data point color parameters of the waveform to be drawn are directly stored into the corresponding parameter list, and the waveform is drawn in the waveform drawing area according to these parameters.

[0074] It can be understood that the waveform is drawn using the parameter list after adding the data points. The waveform drawing area is a specific area on the display device for displaying the waveform, and the coordinate axis position defines the specific position and direction of the waveform in the area. In this way, the waveform drawing process is efficient and accurate, ensuring real-time updating and accurate display of the waveform data.

[0075] Step S40: When the first target data quantity in the coordinate parameter list and / or the second target data quantity in the color parameter list reaches the corresponding quantity threshold, the data in the coordinate parameter list and the color parameter list is cleaned, obtaining the coordinate parameter list after cleaning data and the color parameter list after cleaning data.

[0076] It should be noted that if either the first target data quantity in the coordinate parameter list or the second target data quantity in the color parameter list reaches the corresponding quantity threshold, the parameter list needs to be cleaned to avoid data overflow and ensure the smoothness of waveform drawing, thereby effectively reducing the CPU occupancy.

[0077] It can be understood that in the process of cleaning data, the latest waveform data points are retained, and the old data points that are no longer needed are deleted, thereby ensuring the real-time and accuracy of the waveform drawing area. The cleaning operation is usually performed according to a preset rule, for example, a time window can be set to retain only the data points within the time window, or selective cleaning can be performed according to the importance of the data points. After cleaning is completed, the coordinate parameter list and the color parameter list are updated to the latest state, ready for drawing new waveforms, which is not specifically limited in this embodiment.

[0078] Step S50: The data point coordinate parameters and the data point color parameters are added to the coordinate parameter list after cleaning data and the color parameter list after cleaning data respectively, obtaining a target coordinate parameter list and a target color parameter list.

[0079] It should be noted that after the addition of the data point coordinate parameters and the color parameters is completed, the target coordinate parameter list and the target color parameter list will contain the latest waveform data point information. These lists are subsequently used for waveform drawing, ensuring the continuity and accuracy of waveform display, thereby realizing real-time updating of the waveform.

[0080] Step S60: waveform drawing is performed in the waveform drawing area according to the coordinate axis position, the target coordinate parameter list and the color parameter list, to generate a target waveform.

[0081] It should be noted that during waveform drawing, new waveforms are dynamically drawn in the waveform drawing area according to the data in the target coordinate parameter list and the target color parameter list. This process is continuous, ensuring that the dynamic changes of the waveforms can be captured in time and reflected on the display screen. In addition, by dynamically updating the waveform data, the ventilator working state changes can be effectively responded.

[0082] It can be understood that during waveform drawing, the drawing area of the waveform is dynamically adjusted to adapt to the display needs of different waveforms. For example, when there are many waveform data points, the drawing area will automatically expand to avoid waveform overlap or crowding, ensuring that each waveform can be clearly displayed. Conversely, if there are fewer waveform data points, the drawing area will be correspondingly reduced to make full use of the screen space. In addition, the color and style of the waveform can be adjusted according to user settings or system default values to improve the readability and aesthetics of the waveform. After drawing is completed, the system will monitor the changes of the waveform data in real time, and once new data points are detected, the waveform update process will be triggered to ensure the real-time and accuracy of the waveform display.

[0083] The embodiment provides a waveform drawing method based on a ventilator. The waveform drawing area in the display screen of the ventilator is obtained, and the coordinate axis position is determined according to the waveform drawing area. The coordinate parameter list, the color parameter list, the data point coordinate parameter of the waveform to be drawn and the data point color parameter of the waveform to be drawn are obtained. The first target data amount in the coordinate parameter list and the second target data amount in the color parameter list are determined according to the first actual data amount in the coordinate parameter list, the second actual data amount in the color parameter list, the data point coordinate parameter and the data point color parameter. When the first target data amount in the coordinate parameter list and / or the second target data amount in the color parameter list reaches the corresponding quantity threshold, the data in the coordinate parameter list and the color parameter list is cleared to obtain the coordinate parameter list after data is cleared and the color parameter list after data is cleared. The data point coordinate parameter and the data point color parameter are added to the coordinate parameter list after data is cleared and the color parameter list after data is cleared respectively to obtain the target coordinate parameter list and the target color parameter list. Waveform drawing is performed in the waveform drawing area according to the coordinate axis position, the target coordinate parameter list and the color parameter list to generate a target waveform, which can effectively reduce the CPU usage, improve the accuracy and efficiency of waveform drawing and realize segmented color display.

[0084] In conclusion, the embodiment determines the coordinate axis position, the first target data quantity in the coordinate parameter list and the second target data quantity in the color parameter list, so that when the first target data quantity and / or the second target data quantity in the color parameter list reaches the corresponding quantity threshold, the data in the coordinate parameter list and the color parameter list is cleared, the CPU usage can be effectively reduced, the data point coordinate parameter and the data point color parameter are added to the corresponding parameter list, and waveform drawing is performed in the waveform drawing area according to the coordinate axis position, the target coordinate parameter list and the color parameter list, the waveform drawing can be quickly and accurately performed, the segmented color display can be realized due to the consideration of the color parameter, the technical defects of high CPU occupancy rate and inability to perform segmented color display when using ChartView to draw waveform are overcome, the CPU usage can be effectively reduced, the accuracy and efficiency of waveform drawing are improved, and segmented color display is realized.

[0085] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as the above-mentioned embodiment one can refer to the above introduction, and the subsequent will not be described in detail. On this basis, as shown in Figure 2 Figure 2 is a flowchart of the second embodiment of the waveform drawing method based on a respirator of the present application, and step S60 includes steps S601-S603:

[0086] Step S601: detecting whether there is a historical waveform in the waveform drawing area.

[0087] It should be noted that the historical waveform refers to the waveform that has been drawn in the waveform drawing area. Whether there is a historical waveform in the waveform drawing area can be detected by detecting the pixel color change of the waveform drawing area. If the pixel color change is detected, it means that there is a historical waveform, otherwise there is no historical waveform.

[0088] In one possible implementation, after step S601, it further includes: in the case that there is a historical waveform in the waveform drawing area, determining a clearing position and a drawing position according to the target coordinate parameter list; clearing the historical waveform according to the clearing position to obtain a cleared waveform drawing area; performing waveform drawing in the cleared waveform drawing area according to the drawing position, the coordinate axis position, the target coordinate parameter list and the target color parameter list to generate a target waveform.

[0089] It should be noted that if there is a historical waveform in the waveform drawing area, the historical waveform needs to be cleared to avoid waveform overlapping and confusion, which affects the clarity and accuracy of the waveform. The historical waveform can be cleared by covering or erasing, ensuring the cleanliness of the waveform drawing area, so that the new waveform data can be clearly displayed. ​

[0090] It can be understood that the clearing position refers to a specific position in the waveform drawing area occupied by old waveform data that needs to be cleared. The drawing position refers to the area where the new waveform data is to be drawn. By accurately determining the clearing position and the drawing position, it can be ensured that the new and old waveform data will not overlap, while ensuring the continuity and integrity of the waveform. After the clearing position is determined, the clearing operation will be performed, which can include restoring the pixel color of the area to the initial state, or covering the original waveform with a specific color, thereby making room for new waveform data.

[0091] It should be noted that after the clearing operation is completed, waveform drawing will be performed in the cleared waveform drawing area to ensure the accuracy and clarity of the new waveform data. When drawing the new waveform, the target coordinate parameter list and the target color parameter list will be used according to the drawing position, the coordinate axis position, and the established waveform drawing algorithm to accurately place the waveform data points on the corresponding positions of the waveform drawing area. In addition, through segmented color display, the trend of waveform data can be intuitively displayed, making waveform analysis more intuitive and efficient.

[0092] Step S602: determining the drawing position according to the target coordinate parameter list in the case that the waveform drawing area does not exist historical waveforms.

[0093] It should be noted that if the waveform drawing area does not exist historical waveforms, the clearing operation is not required, and the drawing position can be directly determined according to the target coordinate parameter list. The drawing position is determined according to the data point coordinates in the target coordinate parameter, which represents the specific area where the new waveform data is to be drawn. After the drawing position is determined, waveform drawing will be directly performed on the position without clearing any historical waveform data. This method simplifies the waveform drawing process, especially when the waveform drawing area is empty, it can quickly respond and draw new waveform data, improving the efficiency of waveform drawing.

[0094] In a possible implementation, the step S602 of "determining the drawing position according to the target coordinate parameter list" specifically includes: selecting a target data point of a preset position from the target coordinate parameter list; determining a drawing rectangle according to the coordinate parameter of the target data point; and determining the drawing position according to the drawing rectangle.

[0095] It should be noted that the preset position can be the last few data points in the target coordinate parameter list, for example, the last two data points, which represent the latest part of the waveform. By selecting these data points, the current drawing area of the waveform can be quickly located, thereby determining the position of the drawing rectangle. The drawing rectangle is a sub-area of the waveform drawing area, which defines the range to be filled by the new waveform data. After determining the drawing rectangle, waveform drawing can be performed in the rectangular area, ensuring that the new waveform data can be accurately reflected in the waveform drawing area. This method not only improves the efficiency of waveform drawing, but also ensures the real-time and accuracy of waveform data.

[0096] Step S603: performing waveform drawing in the waveform drawing area according to the drawing position, the coordinate axis position, the target coordinate parameter list and the target color parameter list, and generating a target waveform.

[0097] It should be noted that when performing waveform drawing, the generation of the target waveform is based on a series of accurate calculations and algorithms. First, the baseline of the waveform is determined according to the coordinate axis position, which provides a reference for the waveform. Then, the data points in the target coordinate parameter list are accurately positioned in the waveform drawing area according to the time sequence, and each data point corresponds to a specific time on the waveform. These points form the outline of the waveform. The target color parameter list is used to determine the color change of the waveform, which helps to distinguish different waveform data or display different stages of the waveform, for example, different colors can represent different physiological parameters or alarm levels. In this way, the waveform not only looks more attractive visually, but also is more intuitive and effective in information transmission.

[0098] It can be understood that during the drawing process, the smoothness and continuity of the waveform also need to be considered. This usually involves interpolation algorithms to ensure that the waveform is smooth in vision without unnecessary jaggies or breakpoints. In addition, scaling and scrolling functions of the waveform are also necessary so that users can view the details or overall trend of the waveform as needed.

[0099] In one possible implementation, step S603 includes: converting the data point coordinates in the target coordinate parameter list into graphic coordinates and obtaining the corresponding data point color parameters in the target color parameter list; drawing pressure waveform, flow waveform and volume waveform according to the coordinate axis position, the drawing position, the graphic coordinates and the corresponding data point color parameters; and taking the drawn pressure waveform, flow waveform and volume waveform as the target waveform.

[0100] It should be noted that the target waveform to be drawn can include pressure waveform, flow waveform and volume waveform, and the present embodiment does not make specific limitations thereto. The pressure waveform is a waveform reflecting the change of the ventilator output pressure with time, the flow waveform shows the rate of change of gas flow, and the volume waveform indicates the volume change of gas, which collectively provide important information about the respiratory state. In addition, the color change of the waveform can be used to distinguish different respiratory cycles or display specific alarm states, further enhancing the readability of the waveform information.

[0101] It can be understood that the graphic coordinates are the coordinate conversion results relative to the screen coordinate system, which allows accurate representation of the waveform data points on the screen. During the waveform drawing process, the graphic coordinates ensure that the waveform data points can be accurately mapped according to the predetermined coordinate axis positions and drawing positions. In this way, each part of the waveform can be correctly displayed on the screen. Converting the data point coordinates in the target coordinate parameter list into graphic coordinates ensures that the data points can be accurately mapped to the display device, thereby presenting a clear and accurate waveform image on the user interface.

[0102] It should be noted that obtaining the corresponding data point color parameters in the target color parameter list can further enhance the visual effect and information differentiation of the waveform, for example, by setting different colors for different waveform segments, the working state of the ventilator at different stages can be intuitively displayed, or normal and abnormal breathing patterns can be distinguished. In addition, the acquisition of color parameters can also be adjusted according to the user's visual preference or specific medical standards to meet different clinical needs and personalized settings.

[0103] In a possible implementation, the drawing of the pressure waveform, the flow waveform and the volume waveform according to the coordinate axis position, the drawing position, the graphic coordinates and the corresponding data point color parameters to generate the target waveform comprises: obtaining a plurality of X-axis labels and corresponding Y-axis labels; drawing a plurality of coordinate systems according to the coordinate axis position, the plurality of X-axis labels and the corresponding Y-axis labels; drawing the pressure waveform, the flow waveform and the volume waveform on the plurality of coordinate systems respectively according to the drawing position, the graphic coordinates and the corresponding data point color parameters.

[0104] It should be noted that the ventilator display screen can display multiple waveforms at the same time, for example, the pressure waveform can display the pressure applied by the ventilator to the patient's airway, the flow waveform can reflect the rate of gas inhaled and exhaled by the patient, and the volume waveform can provide the gas volume information of each breath of the patient. The X-axis label and the Y-axis label provide the specific values of the waveform data points, so that the user can more accurately interpret the waveform data, for example, the X-axis label usually represents time, and the Y-axis label represents the specific values of pressure, flow or volume. Through these labels, key points in the waveform can be quickly identified, such as the start and end of the breathing cycle, peak pressure or flow, etc.

[0105] It can be understood that multiple X-axis labels and corresponding Y-axis labels are drawn according to the coordinate axis position to draw multiple coordinate systems, which ensures accurate display of waveform data on the screen. Each coordinate system corresponds to a specific waveform type, such as a pressure waveform, a flow waveform or a volume waveform, so that the user can easily compare and analyze different types of waveform data on the same screen.

[0106] It should be noted that the specific implementation steps of drawing waveforms on multiple coordinate systems according to the drawing position, graphical coordinates and corresponding data point color parameters include: applying the graphical coordinates and color parameters to the corresponding coordinate system, and drawing the pressure waveform, flow waveform and volume waveform in the natural flow order of the waveform.

[0107] The embodiment detects whether there is a historical waveform in the waveform drawing area, and in the case where there is no historical waveform, quickly determines the drawing position according to the target coordinate parameter list, and then draws the waveform according to the drawing position, in combination with the coordinate axis position, the target coordinate parameter list and the target color parameter list, thereby effectively improving the waveform drawing efficiency and accuracy.

[0108] It should be noted that the above examples are only for understanding the present application and do not constitute a limitation on the waveform drawing method based on the ventilator of the present application. Further simple transformations based on this technical concept are within the scope of protection of the present application.

[0109] The present application also provides a waveform drawing device based on a ventilator, please refer to Figure 3 The waveform drawing device based on the ventilator comprises:

[0110] The determination module 10 is configured to acquire a waveform drawing area in a ventilator display screen, and determine a coordinate axis position according to the waveform drawing area.

[0111] The acquisition module 20 is configured to acquire a coordinate parameter list, a color parameter list, and data point coordinate parameters and data point color parameters of a waveform to be drawn.

[0112] The determining module 10 is further configured to determine a first target data amount in the coordinate parameter list and a second target data amount in the color parameter list according to the first actual data amount in the coordinate parameter list, the second actual data amount in the color parameter list, the data point coordinate parameter, and the data point color parameter.

[0113] The clearing module 30 is configured to clear data in the coordinate parameter list and the color parameter list when the first target data amount in the coordinate parameter list and / or the second target data amount in the color parameter list reaches a corresponding threshold, to obtain a cleared coordinate parameter list and a cleared color parameter list.

[0114] The adding module 40 is configured to add the data point coordinate parameter and the data point color parameter to the cleared coordinate parameter list and the cleared color parameter list respectively, to obtain a target coordinate parameter list and a target color parameter list.

[0115] The drawing module 50 is configured to draw a waveform in the waveform drawing area according to the coordinate axis position, the target coordinate parameter list, and the target color parameter list, to generate a target waveform.

[0116] The waveform drawing device based on a respirator provided in the present application adopts the waveform drawing method based on a respirator in the above embodiments, and can solve the technical problems of high CPU occupancy rate when using ChartView to draw a waveform and inability to perform segmented color display. Compared with the prior art, the waveform drawing device based on a respirator provided in the present application has the same beneficial effects as the waveform drawing method based on a respirator provided in the above embodiments, and other technical features in the waveform drawing device based on a respirator are the same as the features disclosed in the above method embodiments, which will not be described herein.

[0117] In an embodiment, the drawing module 50 is further configured to detect whether there is a historical waveform in the waveform drawing area, and in the case that there is no historical waveform in the waveform drawing area, determine a drawing position according to the target coordinate parameter list, and draw a waveform in the waveform drawing area according to the drawing position, the coordinate axis position, the target coordinate parameter list, and the target color parameter list, to generate a target waveform.

[0118] In an embodiment, the drawing module 50 is further configured to, in the case that there is a historical waveform in the waveform drawing area, determine a clearing position and a drawing position according to the target coordinate parameter list, clear the historical waveform according to the clearing position to obtain a cleared waveform drawing area, and draw a waveform in the cleared waveform drawing area according to the drawing position, the coordinate axis position, the target coordinate parameter list, and the target color parameter list, to generate a target waveform.

[0119] In one embodiment, the drawing module 50 is further configured to select a target data point at a preset position from the target coordinate parameter list; determine a drawing rectangle based on the coordinate parameters of the target data point; and determine a drawing position based on the drawing rectangle.

[0120] In one embodiment, the drawing module 50 is further configured to convert the data point coordinates in the target coordinate parameter list into graphic coordinates, and obtain the corresponding data point color parameters in the target color parameter list; draw pressure waveforms, flow waveforms, and volume waveforms according to the coordinate axis position, the drawing position, the graphic coordinates, and the corresponding data point color parameters; and use the drawn pressure waveforms, flow waveforms, and volume waveforms as target waveforms.

[0121] In one embodiment, the drawing module 50 is further configured to acquire multiple X-axis labels and corresponding Y-axis labels; draw multiple coordinate systems according to the coordinate axis positions, the multiple X-axis labels and the corresponding Y-axis labels; and draw pressure waveforms, flow waveforms and volume waveforms on the multiple coordinate systems according to the drawing position, the graphic coordinates and the corresponding data point color parameters.

[0122] In one embodiment, the determining module 10 is further configured to, when the first target data quantity in the coordinate parameter list and the second target data quantity in the color parameter list do not reach the corresponding quantity threshold, add the data point coordinate parameters and the data point color parameters to the coordinate parameter list and the color parameter list respectively, to obtain a target coordinate parameter list and a target color parameter list; and draw a waveform in the waveform drawing area according to the coordinate axis position, the target coordinate parameter list and the color parameter list to generate a target waveform.

[0123] This application provides a waveform plotting device based on a ventilator. The waveform plotting device based on a ventilator includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the waveform plotting method based on a ventilator in the first embodiment described above.

[0124] The following is for reference. Figure 4The diagram illustrates a structural schematic of a ventilator-based waveform plotting device suitable for implementing embodiments of this application. The ventilator-based waveform plotting device in the embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 4 The waveform plotting device based on a ventilator shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0125] like Figure 4 As shown, the waveform plotting device based on a ventilator may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the ventilator-based waveform plotting device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the ventilator-based waveform plotting device to communicate wirelessly or wiredly with other devices to exchange data. Although a ventilator-based waveform plotting device with various systems is shown in the figure, it should be understood that it is not required to implement or possess all the systems shown. More or fewer systems may be implemented alternatively.

[0126] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0127] The waveform drawing device based on a ventilator provided in this application, employing the waveform drawing method based on a ventilator in the above embodiments, can solve the technical problems of high CPU usage and inability to perform segmented color display when drawing waveforms using ChartView. Compared with the prior art, the beneficial effects of the waveform drawing device based on a ventilator provided in this application are the same as those of the waveform drawing method based on a ventilator provided in the above embodiments, and other technical features in this waveform drawing device based on a ventilator are the same as those disclosed in the previous embodiment method, and will not be repeated here.

[0128] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0129] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0130] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the waveform drawing method based on a ventilator in the above embodiments.

[0131] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

[0132] The aforementioned computer-readable storage medium may be included in a ventilator-based waveform plotting device; or it may exist independently and not assembled into a ventilator-based waveform plotting device.

[0133] The aforementioned computer-readable storage medium carries one or more programs that, when executed by a ventilator-based waveform drawing device, cause the ventilator-based waveform drawing device to: acquire a waveform drawing area on the ventilator display screen and determine the coordinate axis position based on the waveform drawing area; acquire a coordinate parameter list, a color parameter list, and data point coordinate parameters and data point color parameters of the waveform to be drawn; and determine a first target data quantity in the coordinate parameter list and a second target data quantity in the color parameter list based on a first actual data quantity in the coordinate parameter list, a second actual data quantity in the color parameter list, the data point coordinate parameters, and the data point color parameters. According to the quantity; when the first target data quantity in the coordinate parameter list and / or the second target data quantity in the color parameter list reach the corresponding quantity threshold, clear the data in the coordinate parameter list and the color parameter list to obtain a cleared coordinate parameter list and a cleared color parameter list; add the data point coordinate parameters and the data point color parameters to the cleared coordinate parameter list and the cleared color parameter list respectively to obtain a target coordinate parameter list and a target color parameter list; draw a waveform in the waveform drawing area according to the coordinate axis position, the target coordinate parameter list and the color parameter list to generate a target waveform.

[0134] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0135] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0136] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0137] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described waveform drawing method based on a ventilator. This solves the technical problems of high CPU usage and inability to display segmented colors when drawing waveforms using ChartView. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the waveform drawing method based on a ventilator provided in the above embodiments, and will not be repeated here.

[0138] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the waveform drawing method based on a ventilator as described above.

[0139] The computer program product provided in this application can solve the technical problems of high CPU usage and inability to display segmented colors when drawing waveforms using ChartView. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the waveform drawing method based on a ventilator provided in the above embodiments, and will not be repeated here.

[0140] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.

Claims

1. A waveform plotting method based on a ventilator, characterized in that, The method includes: Obtain the waveform drawing area on the ventilator display screen, and determine the coordinate axis position based on the waveform drawing area; Obtain the list of coordinate parameters, the list of color parameters, and the coordinate and color parameters of the data points for the waveform to be drawn; The first target data quantity in the coordinate parameter list and the second target data quantity in the color parameter list are determined based on the first actual data quantity in the coordinate parameter list, the second actual data quantity in the color parameter list, the data point coordinate parameters, and the data point color parameters. When the first target data quantity in the coordinate parameter list and / or the second target data quantity in the color parameter list reach the corresponding quantity threshold, the data in the coordinate parameter list and the color parameter list are cleared to obtain the coordinate parameter list and the color parameter list after clearing the data. The data point coordinate parameters and the data point color parameters are added to the coordinate parameter list and the color parameter list after clearing the data, respectively, to obtain the target coordinate parameter list and the target color parameter list. Based on the coordinate axis positions, the target coordinate parameter list, and the color parameter list, a waveform is drawn in the waveform drawing area to generate the target waveform; The step of drawing a waveform in the waveform drawing area according to the coordinate axis position, the target coordinate parameter list, and the color parameter list to generate a target waveform includes: Detect whether a historical waveform exists in the waveform drawing area; If no historical waveform exists in the waveform drawing area, the drawing position is determined according to the target coordinate parameter list; Based on the drawing position, the coordinate axis position, the target coordinate parameter list, and the target color parameter list, a waveform is drawn in the waveform drawing area to generate a target waveform; The step of drawing a waveform in the waveform drawing area according to the drawing position, the coordinate axis position, the target coordinate parameter list, and the target color parameter list to generate a target waveform includes: Convert the coordinates of the data points in the target coordinate parameter list into graphic coordinates, and obtain the corresponding color parameters of the data points in the target color parameter list; Pressure waveform, flow waveform, and volume waveform are drawn based on the coordinate axis position, the plotting position, the graphic coordinates, and the corresponding data point color parameters. The pressure waveform, the flow waveform, and the volume waveform are used as target waveforms.

2. The method as described in claim 1, characterized in that, After detecting whether a historical waveform exists in the waveform drawing area, the method further includes: If historical waveforms exist in the waveform drawing area, the clearing position and drawing position are determined according to the target coordinate parameter list; The historical waveform is cleared according to the clearing location to obtain the cleared waveform drawing area; Based on the drawing position, the coordinate axis position, the target coordinate parameter list, and the target color parameter list, a waveform is drawn in the cleared waveform drawing area to generate the target waveform.

3. The method as described in claim 1, characterized in that, Determining the drawing position based on the target coordinate parameter list includes: Select a target data point at a preset location from the target coordinate parameter list; The drawing rectangle is determined based on the coordinate parameters of the target data points; The drawing position is determined based on the drawing rectangle.

4. The method as described in claim 1, characterized in that, The step of drawing pressure waveforms, flow waveforms, and volume waveforms based on the coordinate axis positions, the plotting positions, the graphic coordinates, and the corresponding data point color parameters includes: Get multiple X-axis labels and their corresponding Y-axis labels; Multiple coordinate systems are drawn based on the coordinate axis positions, the multiple X-axis labels, and the corresponding Y-axis labels; Pressure waveforms, flow waveforms, and volume waveforms are drawn on multiple coordinate systems based on the drawing position, the graphic coordinates, and the corresponding data point color parameters.

5. The method as described in claim 1, characterized in that, After determining the first target data quantity in the coordinate parameter list and the second target data quantity in the color parameter list based on the first actual data quantity in the coordinate parameter list, the second actual data quantity in the color parameter list, the data point coordinate parameters, and the data point color parameters, the process further includes: When the first target data quantity in the coordinate parameter list and the second target data quantity in the color parameter list do not reach the corresponding quantity threshold, the data point coordinate parameters and the data point color parameters are added to the coordinate parameter list and the color parameter list respectively to obtain the target coordinate parameter list and the target color parameter list. Based on the coordinate axis position, the target coordinate parameter list, and the color parameter list, a waveform is drawn in the waveform drawing area to generate the target waveform.

6. A waveform plotting device based on a ventilator, characterized in that, The waveform plotting device based on the ventilator includes: The determination module is used to acquire the waveform drawing area on the ventilator display screen and determine the coordinate axis position based on the waveform drawing area; The acquisition module is used to acquire the coordinate parameter list, the color parameter list, and the coordinate parameters and color parameters of the data points of the waveform to be drawn; The determining module is further configured to determine the first target data quantity in the coordinate parameter list and the second target data quantity in the color parameter list based on the first actual data quantity in the coordinate parameter list, the second actual data quantity in the color parameter list, the data point coordinate parameters, and the data point color parameters; The clearing module is used to clear the data in the coordinate parameter list and the color parameter list when the first target data volume in the coordinate parameter list and / or the second target data volume in the color parameter list reach the corresponding quantity threshold, so as to obtain the coordinate parameter list and the color parameter list after clearing the data. An adding module is used to add the data point coordinate parameters and the data point color parameters to the coordinate parameter list and the color parameter list after clearing the data, respectively, to obtain the target coordinate parameter list and the target color parameter list. The drawing module is used to draw a waveform in the waveform drawing area according to the coordinate axis position, the target coordinate parameter list and the color parameter list, and generate a target waveform; The step of drawing a waveform in the waveform drawing area according to the coordinate axis position, the target coordinate parameter list, and the color parameter list to generate a target waveform includes: Detect whether a historical waveform exists in the waveform drawing area; If no historical waveform exists in the waveform drawing area, the drawing position is determined according to the target coordinate parameter list; Based on the drawing position, the coordinate axis position, the target coordinate parameter list, and the target color parameter list, a waveform is drawn in the waveform drawing area to generate a target waveform; The step of drawing a waveform in the waveform drawing area according to the drawing position, the coordinate axis position, the target coordinate parameter list, and the target color parameter list to generate a target waveform includes: Convert the coordinates of the data points in the target coordinate parameter list into graphic coordinates, and obtain the corresponding color parameters of the data points in the target color parameter list; Pressure waveform, flow waveform, and volume waveform are drawn based on the coordinate axis position, the plotting position, the graphic coordinates, and the corresponding data point color parameters. The pressure waveform, the flow waveform, and the volume waveform are used as target waveforms.

7. A waveform plotting device based on a ventilator, characterized in that, The ventilator-based waveform plotting device includes: a memory, a processor, and a ventilator-based waveform plotting program stored in the memory and executable on the processor, wherein the ventilator-based waveform plotting program is configured to implement the ventilator-based waveform plotting method as described in any one of claims 1 to 5.

8. A storage medium, characterized in that, The storage medium stores a waveform drawing program based on a ventilator, which, when executed by a processor, implements the waveform drawing method based on a ventilator as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Data drawing method and device, electronic equipment and storage medium

    CN112700511A

  • System for displaying medical monitoring data

    US20150097701A1