Waveform drawing method, device and equipment based on breathing machine and storage medium
By obtaining and processing the coordinates and color parameters of the waveform drawing area in the ventilator, the problem of segmented color display and reducing CPU occupancy is realized, solving the problem of insufficient performance of ChartView in the ventilator.
Patent Information
- Application Number
- CN202411929305.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2044-12-25
AI Technical Summary
When ChartView is used in a ventilator to draw waveforms, the CPU occupancy rate is high, and it is impossible to achieve segmented color display, which cannot meet specific needs.
By obtaining the waveform drawing area in the ventilator display screen, determining the coordinate axis position, obtaining the coordinate parameter list and color parameter list, and clearing and adding data according to the actual and target data volume to realize the segmented color display of the waveform.
It effectively reduces CPU usage, improves the accuracy and efficiency of waveform drawing, and realizes segmented color display, overcoming the problems of insufficient performance and limited customization functions of ChartView.
Smart Images

Figure CN119810250A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of waveform drawing technology, and in particular to a waveform drawing method, device, equipment and storage medium based on a ventilator. Background Art
[0002] The ventilator can monitor the patient's respiratory status and adjust the respiratory parameters in real time to ensure that the patient can get proper oxygen supply. In the operation interface of the ventilator, waveforms (such as airflow waveforms, pressure waveforms, tidal volume waveforms, etc.) are often used to display the patient's respiratory status and the working status of the machine, helping doctors to monitor the patient's breathing process in real time. At present, Qt, as a cross-platform development framework, is widely used in the development of graphical interfaces for medical devices. QML is a declarative language used to develop user interfaces in the Qt framework and is widely used in the graphical interfaces of many medical devices. QML provides a ChartView component for drawing various charts, including waveforms. In the ventilator, ChartView can be used to draw data such as the patient's airflow waveform and pressure waveform in real time, providing an intuitive graphical interface. However, in actual use, because the ventilator needs to update the waveform in real time, especially under rapidly changing signals, the performance of ChartView is insufficient. Whenever a new data point is updated, ChartView needs to redraw the entire waveform, resulting in a very high CPU occupancy rate, especially in scenarios where waveforms need to be drawn and updated frequently. The waveform graph of a ventilator usually needs to show the changes of multiple parameters, such as airflow, air pressure, tidal volume, etc. The coordinate axis scale and label format of each waveform graph are often different. However, the coordinate axis customization function of ChartView itself is relatively limited and cannot meet specific needs. In addition, ChartView does not directly support the segmented color display function. Developers can only use a unified color to display the waveform and cannot flexibly adjust the color range according to different data values.
[0003] Therefore, how to reduce CPU usage and achieve waveform segmentation color display is a problem that needs to be solved urgently.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of this application is to provide a ventilator-based waveform drawing method, device, equipment and storage medium, aiming to solve the technical problems of high CPU occupancy and inability to perform segmented color display when using ChartView to draw waveforms.
[0006] To achieve the above purpose, the present application proposes a waveform drawing method based on a ventilator, and the waveform drawing method based on a ventilator includes:
[0007] Acquire a waveform drawing area in a display screen of the ventilator, and determine a coordinate axis position according to the waveform drawing area;
[0008] Get the coordinate parameter list, color parameter list, and the data point coordinate parameters and data point color parameters of the 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 quantity threshold, clearing the data in the coordinate parameter list and the color parameter list to obtain a coordinate parameter list after clearing the data and a color parameter list after clearing the data;
[0011] 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;
[0012] 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.
[0013] In one embodiment, 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:
[0014] Detecting whether there is a historical waveform in the waveform drawing area;
[0015] In the case where there is no historical waveform in the waveform drawing area, determining a drawing position according to the target coordinate parameter list;
[0016] Waveform drawing is performed 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 one embodiment, after detecting whether there is a historical waveform in the waveform drawing area, the method further includes:
[0018] In the case where 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;
[0019] Clear the historical waveform according to the clear position to obtain a waveform drawing area after clearing;
[0020] Waveform drawing is performed 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.
[0021] In one embodiment, determining the drawing position according to the target coordinate parameter list includes:
[0022] Selecting a target data point at a preset position from the target coordinate parameter list;
[0023] Determine a drawing rectangle according to the coordinate parameters of the target data point;
[0024] A drawing position is determined according to the drawing rectangle.
[0025] In one embodiment, 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:
[0026] 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;
[0027] Draw a pressure waveform, a flow waveform, and a volume waveform according to the coordinate axis position, the drawing position, the graphic coordinates, and corresponding data point color parameters;
[0028] The drawn pressure waveform, the flow waveform, and the volume waveform are used as target waveforms.
[0029] In one embodiment, the step of drawing a pressure waveform, a flow waveform, and a volume waveform according to the coordinate axis position, the drawing position, the graphic coordinates, and corresponding data point color parameters to generate a target waveform includes:
[0030] Get multiple X-axis labels and corresponding Y-axis labels;
[0031] Draw a plurality of coordinate systems according to the coordinate axis positions, the plurality of X-axis labels and the corresponding Y-axis labels;
[0032] The pressure waveform, flow waveform and volume waveform are drawn on the plurality of coordinate systems respectively according to the drawing position, the graphic coordinates and the corresponding data point color parameters.
[0033] In one 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 parameters, and the data point color parameters, the method further includes:
[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 thresholds, 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 a target coordinate parameter list and a target color parameter list;
[0035] 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.
[0036] In addition, to achieve the above-mentioned purpose, the present application also proposes a waveform drawing device based on a ventilator, and the waveform drawing device based on a ventilator comprises:
[0037] A determination module, used to obtain a waveform drawing area in the ventilator display screen, and determine a coordinate axis position according to the waveform drawing area;
[0038] An acquisition module is used to acquire a coordinate parameter list, a color parameter list, and coordinate parameters and color parameters of data points of the waveform to be drawn;
[0039] The determination module is further used 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 parameters and the data point color parameters;
[0040] A clearing module, configured to clear the 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, and obtain a coordinate parameter list after clearing the data and a color parameter list after clearing the data;
[0041] An adding module, used for 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;
[0042] A 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 to generate a target waveform.
[0043] In addition, to achieve the above-mentioned purpose, the present application also proposes a ventilator-based waveform drawing device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the ventilator-based waveform drawing method as described above.
[0044] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the ventilator-based waveform drawing method as described above are implemented.
[0045] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the ventilator-based waveform drawing method as described above.
[0046] One or more technical solutions proposed in the present application are as follows: by acquiring a waveform drawing area in a ventilator display screen, and determining a coordinate axis position according to the waveform drawing area; acquiring a coordinate parameter list, a color parameter list, and data point coordinate parameters and data point color parameters of the 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 the data in the coordinate parameter list and the color parameter list to obtain a coordinate parameter list after clearing the data and a color parameter list after clearing the data; adding the data point coordinate parameters and the data point color parameters to the coordinate parameter list after clearing the data and the color parameter list after clearing the data, respectively, to obtain a target coordinate parameter list and a target color parameter list; 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, which can effectively reduce CPU usage, improve the accuracy and efficiency of waveform drawing, and realize segmented color display.
[0047] In summary, the present application determines the coordinate axis position and determines the first target data amount in the coordinate parameter list and the second target data amount in the color parameter list, so that when the first target data amount 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 are cleared, which can effectively reduce the CPU usage rate, thereby adding the data point coordinate parameters and the data point color parameters to the corresponding parameter lists respectively, and drawing the waveform in the waveform drawing area according to the coordinate axis position, the target coordinate parameter list and the color parameter list, which can quickly and accurately draw the waveform, and because the color parameters are taken into consideration, segmented color display of the waveform can be achieved, which overcomes the technical defects of high CPU occupancy and inability to perform segmented color display when drawing waveforms using ChartView, can effectively reduce the CPU usage rate, improve the accuracy and efficiency of waveform drawing, and achieve segmented color display. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0049] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0050] Figure 1 A flow chart of the first embodiment of the waveform drawing method based on a ventilator provided in the present application;
[0051] Figure 2 A flow chart of the second embodiment of the waveform drawing method based on a ventilator provided in the present application;
[0052] Figure 3 This is a schematic diagram of the module structure of a waveform drawing device based on a ventilator according to an embodiment of the present application;
[0053] Figure 4 Schematic diagram of the device structure of the hardware operating environment involved in the waveform drawing method based on the ventilator in the embodiment of the present application.
[0054] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to 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 present application and are not used to limit the present application.
[0056] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0057] The main solution of the embodiment of the present application is: obtain the waveform drawing area in the ventilator display screen, and determine the coordinate axis position according to the waveform drawing area; obtain a coordinate parameter list, a color parameter list, and the data point coordinate parameters and data point color parameters of the waveform to be drawn; determine 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 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 the corresponding quantity threshold, clear the data in the coordinate parameter list and the color parameter list to obtain the coordinate parameter list after the data is cleared and the color parameter list after the data is cleared; add the data point coordinate parameters and the data point color parameters to the coordinate parameter list after the data is cleared and the color parameter list after the data is cleared, respectively, to obtain the target coordinate parameter list and the target color parameter list; draw the waveform in the waveform drawing area according to the coordinate axis position, the target coordinate parameter list and the color parameter list to generate the target waveform.
[0058] The ventilator can monitor the patient's respiratory status and adjust the respiratory parameters in real time to ensure that the patient can get proper oxygen supply. In the operation interface of the ventilator, waveforms (such as airflow waveforms, pressure waveforms, tidal volume waveforms, etc.) are often used to display the patient's respiratory status and the working status of the machine, helping doctors to monitor the patient's breathing process in real time. At present, Qt, as a cross-platform development framework, is widely used in the development of graphical interfaces for medical devices. QML is a declarative language used to develop user interfaces in the Qt framework and is widely used in the graphical interfaces of many medical devices. QML provides a ChartView component for drawing various charts, including waveforms. In the ventilator, ChartView can be used to draw data such as the patient's airflow waveform and pressure waveform in real time, providing an intuitive graphical interface. However, in actual use, because the ventilator needs to update the waveform in real time, especially under rapidly changing signals, the performance of ChartView is insufficient. Whenever a new data point is updated, ChartView needs to redraw the entire waveform, resulting in a very high CPU occupancy rate, especially in scenarios where waveforms need to be drawn and updated frequently. The waveform graph of a ventilator usually needs to show the changes of multiple parameters, such as airflow, air pressure, tidal volume, etc. The coordinate axis scale and label format of each waveform graph are often different. However, the coordinate axis customization function of ChartView itself is relatively limited and cannot meet specific needs. In addition, ChartView does not directly support the function of segmented color display. Developers can only use a unified color to display the waveform and cannot flexibly adjust the color range according to different data values. Therefore, how to reduce CPU usage and realize the segmented color display of waveforms is a problem that needs to be solved urgently.
[0059] The present application determines the coordinate axis position and determines the first target data amount in the coordinate parameter list and the second target data amount in the color parameter list, so that when the first target data amount 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 are cleared, which can effectively reduce the CPU usage rate, thereby adding the data point coordinate parameters and the data point color parameters to the corresponding parameter lists respectively, and drawing the waveform in the waveform drawing area according to the coordinate axis position, the target coordinate parameter list and the color parameter list, which can quickly and accurately draw the waveform, and because the color parameters are taken into consideration, segmented color display of the waveform can be achieved, which overcomes the technical defects of high CPU occupancy and inability to perform segmented color display when drawing waveforms using ChartView, can effectively reduce the CPU usage rate, improve the accuracy and efficiency of waveform drawing, and achieve segmented color display.
[0060] It should be noted that the execution subject of this 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 ventilator, etc. The following takes a waveform drawing device based on a ventilator as an example to illustrate this embodiment and the following embodiments.
[0061] Based on this, the embodiment of the present application provides a waveform drawing method based on a ventilator, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the ventilator-based waveform drawing method of the present application.
[0062] In this embodiment, the ventilator-based waveform drawing method includes steps S10 to S70:
[0063] Step S10: Acquire the waveform drawing area in the ventilator display screen, and determine the coordinate axis position according to the waveform drawing area.
[0064] It should be noted that the ventilator display screen is an interface for real-time display and monitoring of the patient's respiratory status, which usually includes multiple waveform graphs, such as airflow waveforms, air pressure waveforms, etc. This embodiment does not go into detail.
[0065] It is understood that the waveform drawing area refers to a specific area on the ventilator 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 airflow, 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 graphic control or specified by the user, and this embodiment does not impose specific restrictions on this.
[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 the X-axis, Y-axis, etc., which are used to indicate the numerical range and change trend of the waveform data. Determining the coordinate axis position according to the waveform drawing area can be achieved through software programming, for example, by analyzing the boundary information of the waveform drawing area, determining the starting point and end point of the coordinate axis, as well as the interval and scale of the coordinate axis. The determination of the coordinate axis position is crucial for the correct display of subsequent waveform data because they provide a reference framework for the waveform data.
[0067] Step S20: Obtain a coordinate parameter list, a color parameter list, and the coordinate parameters and color parameters of the data points 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 of 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. They 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: Determine 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 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 that should be in the coordinate parameter list and the color parameter list after adding the data point coordinate parameters and 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 quantity thresholds respectively. If the first target data amount and the second target data amount both meet the preset threshold conditions, the next step of drawing the waveform is entered; 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 also 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 quantity thresholds, 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; 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.
[0073] It should be noted that if the first target data amount in the coordinate parameter list and the second target data amount in the color parameter list both reach the corresponding quantity thresholds, it indicates that the coordinate parameter list and the color parameter list can continue to store new waveform data points without the need to clear data. At this time, the data point coordinate parameters and data point color parameters of the waveform to be drawn are directly stored in 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 update and accurate display of the waveform data.
[0075] Step S40: 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, clear the data in the coordinate parameter list and the color parameter list to obtain a coordinate parameter list after clearing the data and a color parameter list after clearing the data.
[0076] It should be noted that if either the first target data amount in the coordinate parameter list or the second target data amount in the color parameter list reaches the corresponding quantity threshold, the parameter list needs to be cleaned up to avoid data overflow and ensure the smoothness of waveform drawing, thereby effectively reducing CPU occupancy.
[0077] It is understandable that in the process of clearing data, the latest waveform data points will be retained, while the old data points that are no longer needed will be deleted, so as to ensure the real-time and accuracy of the waveform drawing area. The clearing operation is usually performed according to preset rules. For example, a time window can be set to only retain the data points within the time window, or selective clearing can be performed based on the importance of the data points. After the clearing is completed, the coordinate parameter list and the color parameter list will be updated to the latest state to prepare for drawing a new waveform. This embodiment does not impose specific restrictions on this.
[0078] Step S50: 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.
[0079] It should be noted that after the data point coordinate parameters and color parameters are added, the target coordinate parameter list and the target color parameter list will contain the latest waveform data point information. These lists are then used to draw the waveform to ensure the continuity and accuracy of the waveform display, thereby achieving real-time updating of the waveform.
[0080] Step S60: 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.
[0081] It should be noted that during the waveform drawing process, a new waveform is 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 waveform can be captured and reflected on the display screen in a timely manner. In addition, by dynamically updating the waveform data, it is possible to effectively respond to changes in the working state of the ventilator.
[0082] It is understandable that during the waveform drawing process, the drawing area of the waveform is dynamically adjusted to adapt to the display requirements 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. On the contrary, if there are fewer waveform data points, the drawing area will be reduced accordingly 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 defaults to improve the readability and aesthetics of the waveform. After the drawing is completed, the system will monitor the changes in the waveform data in real time. Once a new data point is detected, it will trigger the waveform update process to ensure the real-time and accuracy of the waveform display.
[0083] The present embodiment provides a waveform drawing method based on a ventilator, which obtains a waveform drawing area in a ventilator display screen and determines a coordinate axis position according to the waveform drawing area; obtains a coordinate parameter list, a color parameter list, and data point coordinate parameters and data point color parameters of the waveform to be drawn; determines 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, clears the data in the coordinate parameter list and the color parameter list to obtain a coordinate parameter list after the data is cleared and a color parameter list after the data is cleared; adds the data point coordinate parameters and the data point color parameters to the coordinate parameter list after the data is cleared and the color parameter list after the data is cleared, respectively, to obtain a target coordinate parameter list and a target color parameter list; draws 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, which can effectively reduce CPU usage, improve the accuracy and efficiency of waveform drawing, and realize segmented color display.
[0084] In summary, this embodiment determines the coordinate axis position and determines the first target data amount in the coordinate parameter list and the second target data amount in the color parameter list, so that when the first target data amount 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 are cleared, which can effectively reduce the CPU usage rate, thereby adding the data point coordinate parameters and the data point color parameters to the corresponding parameter lists, respectively, 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, which can quickly and accurately perform waveform drawing, and because the color parameters are taken into consideration, segmented color display of the waveform can be achieved, which overcomes the technical defects of high CPU occupancy and inability to perform segmented color display when drawing waveforms using ChartView, can effectively reduce CPU usage, improve the accuracy and efficiency of waveform drawing, and achieve segmented color display.
[0085] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 2 As shown, Figure 2 This is a flow chart of the second embodiment of the waveform drawing method based on a ventilator of the present application, step S60 includes steps S601 to S603:
[0086] Step S601: Detect 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. Detecting whether there is a historical waveform in the waveform drawing area can be achieved by detecting the pixel color change in the waveform drawing area. If a pixel color change is detected, it means that there is a historical waveform, otherwise there is no historical waveform.
[0088] In a feasible implementation, after step S601, it also includes: when 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; drawing 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.
[0089] It should be noted that if there are historical waveforms in the waveform drawing area, the historical waveforms need to be cleared to avoid waveform overlap and confusion, which affects the clarity and accuracy of the waveform. The historical waveforms can be cleared by overwriting or erasing to ensure that the waveform drawing area is clean so that the new waveform data can be clearly displayed.
[0090] It is understood that the clearing position refers to the specific position occupied by the old waveform data that needs to be cleared in the waveform drawing area. The drawing position refers to the area where the new waveform data will 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 may include restoring the pixel color of the area to the initial state, or overwriting the original waveform with a specific color to make room for the new waveform data.
[0091] It is worth noting that after the clearing operation is completed, the waveform will be drawn in the cleared waveform drawing area to ensure the accuracy and clarity of the new waveform data. When drawing a new waveform, the target coordinate parameter list and the target color parameter list will be used according to the drawing position and the coordinate axis position, and the waveform data points will be accurately placed in the corresponding position of the waveform drawing area according to the established waveform drawing algorithm. In addition, the segmented color display can intuitively display the changing trend of the waveform data, making the waveform analysis more intuitive and efficient.
[0092] Step S602: when there is no historical waveform in the waveform drawing area, determining the drawing position according to the target coordinate parameter list.
[0093] It should be noted that if there is no historical waveform in the waveform drawing area, there is no need to clear it, and the drawing position can be determined directly 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 will be drawn. After the drawing position is determined, the waveform will be drawn directly at that 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 feasible implementation, "determining the drawing position according to the target coordinate parameter list" in step S602 specifically includes: selecting a target data point at a preset position from the target coordinate parameter list; determining a drawing rectangle according to the coordinate parameters 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 to determine 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 with new waveform data. After determining the drawing rectangle, the waveform can be drawn in the rectangular area to ensure 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: 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.
[0097] It should be noted that when drawing a waveform, the generation of the target waveform is based on a series of precise 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 used to accurately locate these points in the waveform drawing area according to the time series. The position of each data point corresponds to a specific moment on the waveform, and these points are connected into a line to 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 is not only more visually attractive, but also more intuitive and effective in conveying information.
[0098] It is understandable that in the drawing process, the smoothness and continuity of the waveform also need to be considered. This usually involves an interpolation algorithm to ensure that the waveform is visually smooth without unnecessary jagged edges or breakpoints. In addition, the waveform zoom and scroll functions are also necessary so that users can view the details or overall trends of the waveform as needed.
[0099] In a feasible 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 a pressure waveform, a flow waveform, and a volume waveform according to the coordinate axis position, the drawing position, the graphic coordinates, and the corresponding data point color parameters; and using the drawn pressure waveform, the flow waveform, and the volume waveform as target waveforms.
[0100] It should be noted that the drawn target waveform may include a pressure waveform, a flow waveform, and a volume waveform, and this embodiment does not impose specific restrictions on this. The pressure waveform is a waveform that reflects the change in the output pressure of the ventilator over time, the flow waveform shows the change in the rate of gas flow, and the volume waveform represents the change in the volume of the gas. These waveforms together 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 is understood that the graphic coordinates are the result of a coordinate transformation relative to the screen coordinate system, which allows the waveform data points to be accurately represented 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 to 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 is worth noting 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 status of the ventilator at different stages can be intuitively displayed, or normal breathing and abnormal breathing patterns can be distinguished. In addition, the acquisition of color parameters can also be adjusted according to the user's visual preferences or specific medical standards to meet different clinical needs and personalized settings.
[0103] In a feasible implementation, the method of drawing a pressure waveform, a flow waveform, and a volume waveform according to the coordinate axis position, the drawing position, the graphic coordinates, and the corresponding data point color parameters to generate a target waveform includes: obtaining multiple X-axis labels and corresponding Y-axis labels; drawing multiple coordinate systems according to the coordinate axis position, the multiple X-axis labels, and the corresponding Y-axis labels; and drawing the pressure waveform, the flow waveform, and the volume waveform on the multiple coordinate systems according to the drawing position, the graphic coordinates, and the corresponding data point color parameters.
[0104] It should be noted that the ventilator display can display multiple waveforms at the same time. For example, the pressure waveform can show the pressure applied by the ventilator to the patient's airway, the flow waveform can reflect the rate at which the patient inhales and exhales gas, and the volume waveform provides information about the volume of gas each time the patient breathes. The X-axis label and the Y-axis label provide specific values of the waveform data points, allowing users to interpret the waveform data more accurately. For example, the X-axis label usually represents time, while the Y-axis label represents the specific value of pressure, flow or volume. Through these labels, key points in the waveform can be quickly identified, such as the beginning and end of the respiratory cycle, peak pressure or flow, etc.
[0105] It can be understood that multiple coordinate systems are drawn according to the coordinate axis positions, multiple X-axis labels and corresponding Y-axis labels, ensuring 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 users can easily compare and analyze different types of waveform data on the same screen.
[0106] It is worth noting that the specific implementation steps of drawing waveforms on multiple coordinate systems according to the drawing position, graphic coordinates and corresponding data point color parameters include: applying the graphic coordinates and color parameters to the corresponding coordinate system, and drawing the pressure waveform, flow waveform and volume waveform according to the natural flow order of the waveform.
[0107] This embodiment detects whether there is a historical waveform in the waveform drawing area. If there is no historical waveform, the drawing position is quickly determined according to the target coordinate parameter list, and then the waveform is drawn 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 used to understand the present application and do not constitute a limitation on the waveform drawing method based on the ventilator of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0109] This application also provides a waveform drawing device based on a ventilator, please refer to Figure 3 , the ventilator-based waveform drawing device comprises:
[0110] The determination module 10 is used to obtain the waveform drawing area in the ventilator display screen and determine the coordinate axis position according to the waveform drawing area.
[0111] The acquisition module 20 is used to acquire a coordinate parameter list, a color parameter list, and coordinate parameters and color parameters of data points of the waveform to be drawn.
[0112] The determination module 10 is further used to determine the first target data amount in the coordinate parameter list and the second target data amount in the color parameter list based on 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.
[0113] The clearing module 30 is used to clear the 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, so as to obtain a coordinate parameter list after clearing the data and a color parameter list after clearing the data.
[0114] The adding module 40 is used to 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.
[0115] The drawing module 50 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 to generate a target waveform.
[0116] The ventilator-based waveform drawing device provided in the present application adopts the ventilator-based waveform drawing method in the above embodiment, which can solve the technical problems of high CPU occupancy and inability to display segmented colors when using ChartView to draw waveforms. Compared with the prior art, the beneficial effects of the ventilator-based waveform drawing device provided in the present application are the same as the beneficial effects of the ventilator-based waveform drawing method provided in the above embodiment, and other technical features in the ventilator-based waveform drawing device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0117] In one embodiment, the drawing module 50 is further used to detect whether there is a historical waveform in the waveform drawing area; when there is no historical waveform in the waveform drawing area, determine the drawing position according to the target coordinate parameter list; draw the 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 one embodiment, the drawing module 50 is further used to determine a clearing position and a drawing position according to the target coordinate parameter list when a historical waveform exists in the waveform drawing area; clear the historical waveform according to the clearing position to obtain a cleared waveform drawing area; 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 used to select a target data point at a preset position from the target coordinate parameter list; determine a drawing rectangle according to the coordinate parameters of the target data point; and determine a drawing position according to the drawing rectangle.
[0120] In one embodiment, the drawing module 50 is also used 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 the 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 use the drawn pressure waveform, the flow waveform and the volume waveform as the target waveform.
[0121] In one embodiment, the drawing module 50 is also used to obtain 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 positions, the graphic coordinates and the corresponding data point color parameters.
[0122] In one embodiment, the determination module 10 is further used to 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 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 thresholds; 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] The present application provides a ventilator-based waveform drawing device, which 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 so that the at least one processor can execute the ventilator-based waveform drawing method in the above-mentioned embodiment one.
[0124] Reference below Figure 4, which shows a schematic diagram of the structure of a ventilator-based waveform drawing device suitable for implementing the embodiment of the present application. The ventilator-based waveform drawing device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The ventilator-based waveform drawing device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0125] like Figure 4 As shown, the waveform drawing device based on the ventilator may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the waveform drawing device based on the ventilator are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the ventilator-based waveform drawing device to communicate wirelessly or wired with other devices to exchange data. Although the ventilator-based waveform drawing device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.
[0126] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0127] The ventilator-based waveform drawing device provided by the present application adopts the ventilator-based waveform drawing method in the above embodiment, which can solve the technical problems of high CPU occupancy and inability to display segmented colors when using ChartView to draw waveforms. Compared with the prior art, the beneficial effects of the ventilator-based waveform drawing device provided by the present application are the same as the beneficial effects of the ventilator-based waveform drawing method provided in the above embodiment, and other technical features in the ventilator-based waveform drawing device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0128] It should be understood that the various parts disclosed in this application can be implemented by 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 one or more embodiments or examples in a suitable manner.
[0129] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0130] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, the computer-readable program instructions being used to execute the ventilator-based waveform drawing method in the above-mentioned embodiment.
[0131] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. 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 combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0132] The computer-readable storage medium may be included in a waveform drawing device based on a ventilator; or may exist independently without being assembled into a waveform drawing device based on a ventilator.
[0133] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by a waveform drawing device based on a ventilator, the waveform drawing device based on the ventilator: obtains a waveform drawing area in a ventilator display screen, and determines a coordinate axis position according to the waveform drawing area; obtains a coordinate parameter list, a color parameter list, and data point coordinate parameters and data point color parameters of the waveform to be drawn; determines 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; data amount; 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, clear the data in the coordinate parameter list and the color parameter list to obtain the coordinate parameter list after clearing the data and the color parameter list after clearing the data; add the data point coordinate parameters and the data point color parameters to the coordinate parameter list after clearing the data and the color parameter list after clearing the data, respectively, to obtain the target coordinate parameter list and the 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 the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0135] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0136] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0137] The readable storage medium provided in this application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned ventilator-based waveform drawing method, which can solve the technical problems of high CPU occupancy and inability to display segmented colors when using ChartView to draw waveforms. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the ventilator-based waveform drawing method provided in the above-mentioned embodiment, and will not be repeated here.
[0138] The present application also provides a computer program product, comprising a computer program, which implements the steps of the above-mentioned ventilator-based waveform drawing method when executed by a processor.
[0139] The computer program product provided by this application can solve the technical problems of high CPU occupancy and inability to display segmented colors when using ChartView to draw waveforms. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the ventilator-based waveform drawing method provided in the above embodiment, which will not be repeated here.
[0140] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A waveform drawing method based on a ventilator, characterized in that: The method comprises: Acquire a waveform drawing area in a ventilator display screen, and determine a coordinate axis position according to the waveform drawing area; Get the coordinate parameter list, color parameter list, and the data point coordinate parameters and data point color parameters of the 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, clearing the data in the coordinate parameter list and the color parameter list to obtain a coordinate parameter list after clearing the data and a color parameter list after clearing the data; 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; 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.
2. The method according to claim 1, characterized in that 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 comprises: Detecting whether there is a historical waveform in the waveform drawing area; In the case where there is no historical waveform in the waveform drawing area, determining the drawing position according to the target coordinate parameter list; Waveform drawing is performed 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.
3. The method according to claim 2, characterized in that After detecting whether there is a historical waveform in the waveform drawing area, the method further includes: In the case where 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; Clear the historical waveform according to the clear position to obtain a waveform drawing area after clearing; Waveform drawing is performed 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.
4. The method according to claim 2, characterized in that The step of determining the drawing position according to the target coordinate parameter list includes: Selecting a target data point at a preset position from the target coordinate parameter list; Determine a drawing rectangle according to the coordinate parameters of the target data point; A drawing position is determined according to the drawing rectangle.
5. The method according to claim 2, characterized in that 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 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 a pressure waveform, a flow waveform, and a volume waveform according to the coordinate axis position, the drawing position, the graphic coordinates, and corresponding data point color parameters; The drawn pressure waveform, the flow waveform, and the volume waveform are taken as target waveforms.
6. The method according to claim 5, characterized in that The step of drawing a waveform according to the waveform drawing range, the drawing position, the graphic coordinates and the corresponding data point color parameters to generate a target waveform includes: Get multiple X-axis labels and corresponding Y-axis labels; Draw a plurality of coordinate systems according to the coordinate axis positions, the plurality of X-axis labels and the corresponding Y-axis labels; The pressure waveform, flow waveform and volume waveform are drawn on the plurality of coordinate systems respectively according to the drawing position, the graphic coordinates and the corresponding data point color parameters.
7. The method according to claim 1, characterized in that 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 parameters and the data point color parameters, the method 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 quantity thresholds, 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 a target coordinate parameter list and a 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.
8. A waveform drawing device based on a ventilator, characterized in that: The ventilator-based waveform drawing device comprises: A determination module, used to obtain a waveform drawing area in the ventilator display screen, and determine a coordinate axis position according to the waveform drawing area; An acquisition module is used to acquire a coordinate parameter list, a color parameter list, and coordinate parameters and color parameters of data points of the waveform to be drawn; The determination module is further used 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 parameters and the data point color parameters; A clearing module, configured to clear the 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, and obtain a coordinate parameter list after clearing the data and a color parameter list after clearing the data; An adding module, used for 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; A 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 to generate a target waveform.
9. A waveform drawing device based on a ventilator, characterized in that: The ventilator-based waveform drawing device includes: a memory, a processor, and a ventilator-based waveform drawing program stored in the memory and executable on the processor, wherein the ventilator-based waveform drawing program is configured to implement the ventilator-based waveform drawing method as described in any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium stores a ventilator-based waveform drawing program, and when the ventilator-based waveform drawing program is executed by the processor, the ventilator-based waveform drawing method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Data drawing method and device, electronic equipment and storage medium
CN112700511A
System for displaying medical monitoring data
US20150097701A1
Respiratory therapy data management systems, devices, and methods
US20220148701A1