General waveform drawing method, terminal and equipment

By creating a universal waveform control on the medical terminal, including background coordinate system, waveform and erasure block, combined with the event callback function, the problem that the existing waveform display cannot display multiple types of monitor data is solved, and the unification of multiple waveforms is achieved. display to meet the needs of a variety of monitors.

CN118570330APending Publication Date: 2024-08-30SHENZHEN COMEN MEDICAL INSTR
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410670602.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-28
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing waveform displays cannot effectively display data from multiple types of monitors, resulting in a limited scope of application and inability to meet the needs of multiple monitors.

Method used

A universal waveform drawing method is used to create waveform controls, including background coordinate systems, waveforms and erasure blocks, combined with event callback functions, to obtain and map medical data, and draw various types of waveforms on the waveform control to achieve unified display of waveforms.

Benefits of technology

It achieves universal waveform display on medical terminals and can draw ECG waveforms, respiratory waveforms, pulse waveforms, etc., avoiding the limitations of specific types of instruments and meeting the needs of a variety of monitors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570330A
    Figure CN118570330A
Patent Text Reader

Abstract

The invention discloses a general waveform drawing method, terminal and equipment, and the method comprises the steps: firstly creating a waveform control which comprises a background coordinate system, a waveform, a block elimination function and an event callback function; and obtaining display attributes of the background coordinate system, and drawing the background coordinate system on the waveform control. And obtaining a display attribute of the waveform, a display attribute of the block elimination and a configured event callback function. And acquiring monitored medical data, mapping the medical data into mapping coordinates on a background coordinate system, and transmitting the mapping coordinates into an event callback function to draw a waveform. Meanwhile, when the waveform starts to be redrawn, the display attribute of the elimination block is transmitted into an event callback function to draw the elimination block, and the waveform of the previous page in the waveform control is eliminated. The method has the advantages that various types of waveforms such as electrocardio waveforms, respiration waveforms and pulse waveforms can be drawn on the medical terminal through a unified interface and logic, namely, general waveform drawing can be achieved, and the method is not limited by specific types of instruments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of medical terminal technology, and in particular to a universal waveform drawing method, terminal and device. Background Art

[0002] There is currently no patent on the market for a universal waveform drawing method that is applicable to a variety of monitors. The waveform drawing methods in the prior art are usually designed for specific types of monitors. For example, a waveform display designed for a ventilator can only effectively display a respiratory waveform, while a waveform display designed for an ECG monitor can only effectively display a heartbeat waveform. This means that a waveform display of one device cannot effectively display the waveforms of other types of monitors. This limitation limits the scope of application of the waveform display and cannot meet the needs of a variety of monitors. Summary of the invention

[0003] Based on this, it is necessary to provide a universal waveform drawing method, terminal and device to solve the problem that the scope of application of the waveform display is limited and cannot meet the needs of various monitoring instruments.

[0004] A general waveform drawing method, applied to a medical terminal, comprising:

[0005] Creating a waveform control; wherein the waveform control includes a background coordinate system, a waveform, a block elimination and an event callback function;

[0006] Acquire a first display attribute of the background coordinate system, and draw the background coordinate system on the waveform control based on the first display attribute;

[0007] Acquire the second display attribute of the waveform, the third display attribute of the elimination block, and the configured event callback function;

[0008] Acquire the monitored medical data, map the medical data into mapping coordinates on the background coordinate system, and pass the mapping coordinates and the second display attribute into the event callback function to draw the waveform on the waveform control;

[0009] When the waveform begins to be redrawn, the third display attribute is passed into the event callback function to draw the elimination block on the waveform control; wherein the drawn elimination block is used to eliminate the previous page of waveform in the waveform control.

[0010] In one embodiment, the obtaining the first display attribute of the background coordinate system includes:

[0011] Get the background color, the horizontal coordinate reference, maximum and minimum values ​​of the coordinate system on the horizontal axis, and the vertical coordinate reference, maximum and minimum values ​​on the vertical axis;

[0012] The obtaining of the second display attribute of the waveform, the third display attribute of the elimination block and the configured event callback function includes:

[0013] Obtain the waveform step of the waveform, the block elimination step of the block elimination, and the configured event callback function.

[0014] In one embodiment, the mapping coordinates include a mapping abscissa and a mapping ordinate, and mapping the medical data to the mapping coordinates on the background coordinate system includes:

[0015] Obtaining a first horizontal coordinate of the currently drawn waveform at the end point, and taking the sum of the first horizontal coordinate and the waveform step length as a second horizontal coordinate;

[0016] If the second abscissa is greater than the maximum value of the abscissa axis, the difference between the second abscissa and the maximum value of the abscissa axis is used as the mapping abscissa of the medical data drawn at the next moment;

[0017] If the second horizontal coordinate is less than or equal to the maximum value of the horizontal coordinate axis, the second horizontal coordinate is used as the mapping horizontal coordinate of the medical data drawn at the next moment;

[0018] The medical data is mapped to a mapping ordinate on the background coordinate system based on the maximum and minimum values ​​on the ordinate axis of the coordinate system.

[0019] In one embodiment, mapping the medical data to a mapping ordinate on the background coordinate system based on the maximum and minimum values ​​of the coordinate system on the ordinate axis includes:

[0020] The pixel value of the mapped ordinate is determined according to the medical data, the minimum value on the ordinate axis, the maximum value on the ordinate axis, the pixel value corresponding to the maximum value on the ordinate axis, and the pixel value corresponding to the minimum value on the ordinate axis.

[0021] In one embodiment, after the mapping coordinates and the second display attribute are passed into the event callback function to draw the waveform on the waveform control, the method further includes:

[0022] Create abscissa space and ordinate space;

[0023] After the waveform drawing of each waveform step is completed, the mapped abscissa of the currently drawn waveform at the end position is stored in the abscissa space, and the mapped ordinate of the currently drawn waveform at the end position is stored in the ordinate space.

[0024] In one embodiment, the block elimination starting point of the block elimination is the end point of the currently drawn waveform, and the block elimination end point of the block elimination is the block elimination starting point plus the block elimination step size. After the mapping coordinates and the second display attribute are passed into the event callback function to draw the waveform on the waveform control, the method further includes:

[0025] If the sum of the abscissa of the currently drawn waveform at the end position and the block elimination step is equal to the maximum value of the abscissa axis for the first time, it is determined to start redrawing the waveform.

[0026] In one embodiment, when the waveform is started to be redrawn, the third display attribute is passed into the event callback function to draw the elimination block on the waveform control, and the previous page of waveform in the waveform control is eliminated, including:

[0027] When starting to redraw the waveform, determine whether the background color type is a solid color;

[0028] If the background color type is a solid color, the event callback function is used to set the elimination block to a waveform whose color is equal to the background color of the control, and the position of the drawn elimination block is the position of the waveform on the previous page in the elimination block area; wherein the elimination block area is the area covered from the elimination block starting point to the elimination block end point;

[0029] If the color type of the background is not a pure color, the background in the deblocking area is obtained through the event callback function and redrawn on the waveform control.

[0030] In one embodiment, the method further comprises:

[0031] If a pop-up window is detected and blocks the display of the waveform in the waveform control, the blocking area of ​​the pop-up window is located, and after the pop-up window is closed, the waveform is redrawn and / or the block is eliminated in the blocking area.

[0032] A medical terminal, comprising:

[0033] Monitors, used to monitor medical data;

[0034] A waveform display, connected to the monitoring instrument, for creating a waveform control; wherein the waveform control includes a background coordinate system, a waveform, a block elimination and an event callback function;

[0035] Acquire a first display attribute of the background coordinate system, and draw the background coordinate system on the waveform control based on the first display attribute;

[0036] Acquire the second display attribute of the waveform, the third display attribute of the elimination block, and the configured event callback function;

[0037] Acquire medical data monitored by the monitor, map the medical data into mapping coordinates on the background coordinate system, and pass the mapping coordinates and the second display attribute into the event callback function to draw the waveform on the waveform control;

[0038] When the waveform begins to be redrawn, the third display attribute is passed into the event callback function to draw the elimination block on the waveform control, eliminating the previous page of waveform in the waveform control.

[0039] A general waveform drawing device comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the general waveform drawing method.

[0040] The present invention provides a general waveform drawing method, terminal and device. First, a waveform control is created, which includes a background coordinate system, a waveform, a block elimination and an event callback function. Then the display properties of the background coordinate system are obtained, and the background coordinate system is drawn on the waveform control. Then the display properties of the waveform, the display properties of the block elimination and the configured event callback function are obtained. Then the monitored medical data is obtained, and it is mapped to the mapping coordinates on the background coordinate system, and then passed into the event callback function to draw the waveform. At the same time, when the waveform starts to be redrawn, the display properties of the block elimination are passed into the event callback function to draw the block elimination, and the previous page of waveforms in the waveform control are eliminated. The benefit of this method is that various types of waveforms, such as electrocardiogram waveforms, respiratory waveforms, pulse waveforms, etc., can be drawn on the medical terminal through a unified interface and logic, that is, it is possible to realize the drawing of general waveforms without being restricted by a specific type of instrument. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the embodiments of the present invention 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, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0042] in:

[0043] Figure 1 It is a flowchart of a general waveform drawing method;

[0044] Figure 2 is a first schematic diagram of a waveform control;

[0045] Figure 3 A schematic diagram of a process for mapping medical data into mapping coordinates on a background coordinate system;

[0046] Figure 4is a second schematic diagram of the waveform control;

[0047] Figure 5 is a third schematic diagram of a waveform control;

[0048] Figure 6 is a fourth schematic diagram of a waveform control;

[0049] Figure 7 A schematic diagram of a process of passing the third display attribute into the event callback function to draw a block on the waveform control and eliminate the previous page of waveform in the waveform control;

[0050] Figure 8 is a fifth schematic diagram of a waveform control;

[0051] Fig. 9 It is a structural diagram of a medical terminal;

[0052] Fig.10 A block diagram of the general waveform drawing device. DETAILED DESCRIPTION

[0053] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0054] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0055] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0056] like Figure 1 As shown, Figure 1: is a flowchart of a general waveform drawing method in one embodiment. The steps provided by the general waveform drawing method in this embodiment include:

[0057] S101, create a waveform control.

[0058] Among them, the waveform control includes a background coordinate system, a waveform, a block elimination and an event callback function. The background coordinate system is used to provide a basic framework for waveform display, including horizontal and vertical coordinate axes and scale lines and labels on the coordinate axes. The waveform represents a graphical form of the medical data to be displayed. The block elimination is used to clear the previously drawn waveform when redrawing the waveform to ensure the continuity and accuracy of the waveform display. The event callback function will be called before and after the waveform and block elimination drawing. When the event callback function is called, the event type, time, coordinates, etc. will be passed in to facilitate the user to implement the corresponding function. Among them, the event type includes drawing block elimination, drawing waveform, redrawing waveform, redrawing control, destroying control, etc. The time includes drawing and drawing completion, and the coordinates are the coordinates currently being operated. In the present invention, each part of the waveform control can be encapsulated into a function separately to improve the maintainability and reusability of the code.

[0059] S102, obtaining a first display attribute of a background coordinate system, and drawing the background coordinate system on a waveform control based on the first display attribute.

[0060] In a specific embodiment, obtaining the first display attribute of the background coordinate system includes: obtaining the background color, the horizontal coordinate reference, maximum value and minimum value of the coordinate system on the horizontal axis, and the vertical coordinate reference, maximum value and minimum value on the vertical axis.

[0061] Based on these first display properties we draw Figure 2 , Figure 2 This is the first schematic diagram of the waveform control, where the horizontal axis reference is used to indicate the starting position of the coordinate system in the horizontal direction, and the vertical axis reference is used to indicate the starting position of the coordinate system in the vertical direction. The extreme values ​​on the horizontal axis and the vertical axis are very important for determining the display range of the data, which can help correctly locate and draw the waveform data.

[0062] S103, obtaining the second display attribute of the waveform, the third display attribute of the block elimination, and the configured event callback function.

[0063] In a specific embodiment, obtaining the second display attribute of the waveform, the third display attribute of the deblocking, and the configured event callback function includes: obtaining the waveform step of the waveform, the deblocking step of the deblocking, and the configured event callback function.

[0064] The waveform step (u8Step) refers to the distance between two adjacent data points on the horizontal axis. The waveform step determines the density of the waveform in the horizontal direction, that is, the horizontal distance between each data point. By obtaining the waveform step, you can ensure the uniform distribution of the waveform on the horizontal axis and the appropriate display effect.

[0065] The block elimination step (u8BkStep) refers to the width of the block on the horizontal axis. The block elimination step determines the length of the block elimination, that is, the distance of each elimination of the previous page of waveforms. By obtaining the block elimination step, you can ensure that the block is of the appropriate size on the horizontal axis to effectively clear the previously drawn waveform.

[0066] By configuring an event callback function, you can specify the actions to be performed when a specific event occurs.

[0067] In addition, you can also set other properties of each waveform, such as waveform type (such as curve, bar graph, etc.), waveform color and other waveform information. These additional waveform properties can be set according to specific needs to meet the user's personalized requirements for waveform display and enhance the recognizability and aesthetics of the waveform in the waveform control.

[0068] S104, acquiring the monitored medical data, mapping the medical data into mapping coordinates on the background coordinate system, and passing the mapping coordinates and the second display attribute into the event callback function to draw a waveform on the waveform control.

[0069] Among them, the scope of medical data applicable to this embodiment is very wide, which can be electrocardiogram data, respiratory data, pulse data, etc., and is not specifically limited here. After obtaining the medical data, the medical data is then converted into corresponding coordinates on the background coordinate system according to the setting of the background coordinate system. This process involves operations such as scaling and translating the data to ensure that the medical data can be correctly mapped to the waveform control. Finally, the event callback function can draw the corresponding waveform according to the incoming mapping coordinates and the second display attribute to ensure that the waveform can be correctly displayed on the waveform control.

[0070] In a specific embodiment, the mapping coordinates include a mapping abscissa and a mapping ordinate, such as Figure 3 As shown, mapping the medical data into mapping coordinates on the background coordinate system specifically includes the following steps:

[0071] S1041, obtaining the first horizontal coordinate of the currently drawn waveform at the end point, and taking the sum of the first horizontal coordinate and the waveform step length as the second horizontal coordinate.

[0072] S1042, determine whether the second horizontal coordinate is greater than the maximum value of the horizontal coordinate axis. If the second horizontal coordinate is greater than the maximum value of the horizontal coordinate axis, execute S1043; if the second horizontal coordinate is less than or equal to the maximum value of the horizontal coordinate axis, execute S1044.

[0073] It can be understood that the waveform of the present invention is repeatedly drawn between the horizontal coordinate reference value and the maximum value of the horizontal coordinate axis, and this step compares the calculated second horizontal coordinate with the maximum value of the horizontal coordinate axis, which can be used to determine whether the end point of the waveform drawn at the next moment has exceeded the coordinate axis. If it has exceeded, S1043 is executed, and if it has not exceeded, S1044 is executed.

[0074] For example, Figure 4 As shown, Figure 4 The second schematic diagram of the waveform control, in one of the waveforms, the horizontal coordinate of point A is the first horizontal coordinate, point B is the point corresponding to point A plus the waveform step, and the horizontal coordinate of point B is the second horizontal coordinate. Because the second horizontal coordinate is less than the maximum value of the horizontal coordinate axis, this waveform should be executed in S1044. Correspondingly, in another waveform, the horizontal coordinate of point C is the first horizontal coordinate, point D is the point corresponding to point C plus the waveform step, and the horizontal coordinate of point D is the second horizontal coordinate. Because the second horizontal coordinate is greater than the maximum value of the horizontal coordinate axis, this waveform should be executed in S1043.

[0075] S1043, taking the difference between the second horizontal coordinate and the maximum value of the horizontal coordinate axis as the mapping horizontal coordinate for drawing the medical data at the next moment.

[0076] S1044, using the second horizontal coordinate as the mapping horizontal coordinate for drawing the medical data at the next moment.

[0077] S1045, mapping the medical data to the mapping ordinate on the background coordinate system based on the maximum and minimum values ​​of the coordinate system on the ordinate axis.

[0078] In a specific embodiment, the pixel value of the mapped ordinate is determined based on medical data, the minimum value on the ordinate axis, the maximum value on the ordinate axis, the pixel value corresponding to the maximum value on the ordinate axis, and the pixel value corresponding to the minimum value on the ordinate axis.

[0079] Specifically, the calculation formula of the pixel value of the mapping ordinate is expressed as:

[0080]

[0081] In the above formula, s16y represents the pixel value of the mapped ordinate, f32Value represents medical data, s16ValueMax represents the maximum value on the ordinate axis, s16ValueMin represents the minimum value on the ordinate axis, s16ValueMaxPix represents the pixel value corresponding to the maximum value on the ordinate axis, and s16ValueMinPix represents the pixel value corresponding to the minimum value on the ordinate axis.

[0082] These steps ensure that the medical data can be correctly mapped onto the background coordinate system. Subsequently, the event callback function can draw the corresponding waveforms based on the input data, ensuring that the waveforms are correctly displayed on the waveform control.

[0083] In a specific embodiment, after passing the mapped coordinates and the second display attribute to the event callback function to draw waveforms on the waveform control, the following steps are further executed: creating a horizontal coordinate space and a vertical coordinate space; after the waveform drawing for each waveform step is completed, storing the mapped horizontal coordinate of the currently drawn waveform at the end position into the horizontal coordinate space, and storing the mapped vertical coordinate of the currently drawn waveform at the end position into the vertical coordinate space.

[0084] Among them,

[0085] Horizontal coordinate space or vertical coordinate space = sizeof(INT16) * u16BuffMax

[0086]

[0087] In the above formula, sizeof(INT16) represents the byte size of the coordinate; u16BuffMax represents the maximum number of waveform points that can be displayed within the waveform control.

[0088] That is to say, during the process of drawing waveforms, at each step, the end coordinates of the waveforms drawn in this step are respectively stored in these two spaces. Among them, the horizontal coordinate is stored in s16BuffX[u16Count], and the vertical coordinate is stored in s16BuffY[u16Count]. And after storing the coordinates of each point, let u16Count = (u16Count + 1) % u16BuffMax. If the number of waveform points u16BufNum currently displayed within the waveform control < u16BuffMax, then let u16BufNum + 1. If u16BufNum = u16BuffMax, it is determined that one page of waveform drawing is completed, and u16BufNum is cleared.

[0089] In addition, it can also be understood that multiple waveforms can be drawn simultaneously in the present invention, provided that the specified waveform upper limit is not exceeded.

[0090] S105, when starting to redraw the waveforms, pass the third display attribute to the event callback function to draw erasing blocks on the waveform control.

[0091] Among them, the waveforms of the present invention are repeatedly drawn between the horizontal coordinate reference value and the maximum value of the horizontal axis, as Figure 5 shown. Figure 5This is the third schematic diagram of the waveform control. The latest page waveform and the previous page waveform constitute the currently drawn waveform. Because the medical terminal will display waveform data for a period of time, such as the electrocardiogram waveform and respiratory waveform in the past few seconds or minutes. When the waveform data of the second page and later arrives, the display needs to be updated. At this time, the waveform of the previous page will be replaced by the latest page waveform, and the drawn elimination block is used to eliminate the waveform of the previous page in the waveform control, so as to maintain the accuracy and continuity of the waveform display and avoid interference and confusion.

[0092] In a specific embodiment, Figure 6 As shown, Figure 6 The fourth schematic diagram of the waveform control, the starting point of the block elimination is the end point of the currently drawn waveform, and the end point of the block elimination is the starting point of the block elimination plus the block elimination step length, which means that the starting point of the block elimination coincides with the end point of the currently drawn waveform, and the end point of the block elimination is moved to the right by a certain distance based on the starting point, that is, the block elimination step length. In this specific embodiment, the step of determining whether to start redrawing the waveform includes: if the sum of the horizontal coordinate of the currently drawn waveform at the end point position and the block elimination step length is equal to the maximum value of the horizontal coordinate axis for the first time, it is determined to start redrawing the waveform. Because this block elimination drawing method can delay the time of drawing the block elimination to the greatest extent, it effectively reduces memory usage.

[0093] In a specific embodiment, Figure 7 As shown, when the waveform starts to be redrawn, the third display attribute is passed into the event callback function to draw the block on the waveform control. The specific steps of eliminating the previous page of waveform in the waveform control include:

[0094] S1051, when the waveform is started to be redrawn, it is determined whether the color type of the background is a pure color. If the color type of the background is a pure color, S1052 is executed; if the color type of the background is not a pure color, S1053 is executed.

[0095] S1052, setting the elimination block to a waveform whose color is equal to the background color of the control through the event callback function, and the position of the drawn elimination block is the position of the waveform on the previous page in the elimination block area.

[0096] Among them, the block elimination area is the area covered from the block elimination starting point to the block elimination end point.

[0097] Specifically, each time the block is eliminated, the loop is u8BkStep times, and each time the horizontal axis moves the length of u8Step, and the vertical axis is the value in s16BuffY[(u16Count+i)%u16BuffMax], which specifically corresponds to the position of the waveform on the previous page in the block elimination area. For subsequent block elimination drawings, the starting point is: (u16Count+u8BkStep-1)%u16BuffMax, and the end point is: only one block elimination step length is needed. It can be understood that this operation in this step can minimize memory usage.

[0098] S1053, obtain the background in the block elimination area through the event callback function and redraw it on the waveform control.

[0099] Specifically, each time the block is drawn, the horizontal and vertical coordinates of the block are set separately by the user with reference to the values ​​in s16BuffX[(u16Count+i)%u16BuffMax], s16BuffY[(u16Count+i)%u16BuffMax], which specifically correspond to the size of the block-eliminating area. When drawing impure color blocks, it is necessary to use the memory device to redraw the background of the area from the starting point to the end point of the block-eliminating onto the control. Similarly, for the subsequent block-eliminating drawings, the starting point: (u16Count+u8BkStep-1)%u16BuffMax, the end point: only one block-eliminating step is needed. It can be understood that this step can ensure that after the block-eliminating drawing, the background of the waveform control can be displayed correctly and will not be affected by the block-eliminating drawing.

[0100] The above-mentioned general waveform drawing method first creates a waveform control, which includes a background coordinate system, a waveform, a block elimination, and an event callback function. Then obtain the display properties of the background coordinate system and draw the background coordinate system on the waveform control. Then obtain the display properties of the waveform, the display properties of the block elimination, and the configured event callback function. Then obtain the monitored medical data and map it to the mapping coordinates on the background coordinate system, and then pass it into the event callback function to draw the waveform. At the same time, when the waveform starts to be redrawn, the display properties of the block elimination are passed into the event callback function to draw the block elimination and eliminate the previous page of waveforms in the waveform control. The benefit of this method is that through a unified interface and logic, various types of waveforms can be drawn on the medical terminal, such as ECG waveforms, respiratory waveforms, pulse waveforms, etc., that is, it is possible to realize the drawing of general waveforms without being restricted by specific types of instruments.

[0101] Furthermore, the general waveform drawing method can also perform the following steps: if a pop-up window is detected and blocks the display of the waveform in the waveform control, the blocking area of ​​the pop-up window is located, and after the pop-up window is closed, the waveform is redrawn and / or the block is eliminated in the blocking area.

[0102] For example, when a warning window or other pop-up window appears, it may block the waveform data being displayed in the waveform control, affecting the user's viewing. Therefore, through this method, after the pop-up window is closed, the waveform in the area blocked by the pop-up window can be redrawn and / or eliminated, thereby reducing the impact of the pop-up window on the user's viewing of the waveform, ensuring that the user can obtain the waveform data in time and make corresponding processing.

[0103] Furthermore, the waveform control not only supports solid waveforms, but also supports dotted waveforms, filled waveforms, and virtual waveforms. Supporting these different types of waveforms can make the waveform control more flexible and feature-rich, meeting the needs of different scenarios, and providing more diverse data visualization methods. Figure 8 As shown, Figure 8 is the fifth schematic diagram of the waveform control.

[0104] Dashed waveform: On the basis of the solid waveform, a ratio of real to virtual is set to convert the solid line into a dashed line. By changing this ratio, the style of the dashed line can be directly changed, which is more convenient and flexible.

[0105] Filled waveform: Compared with the solid line waveform, it is composed of trapezoids. At each step of drawing, it is no longer just a line segment from the latest starting point to the latest end point, but a trapezoid composed of the latest starting point to the latest end point and the filling line.

[0106] Virtual waveform: The virtual waveform here is a general concept, which refers to other waveforms besides the above three waveforms, such as indicator waves, labels displayed with the waveforms, etc.

[0107] In one embodiment, Fig. 9 As shown, the present invention also proposes a medical terminal, which includes:

[0108] Monitor 901 is used to monitor medical data.

[0109] The monitor 901 applicable to this embodiment has a wide range, which may be an electrocardiogram monitor, a respiratory monitor, a pulse monitor, etc., and is not specifically limited here. Correspondingly, the medical data applicable to this embodiment is also very wide, which may be electrocardiogram data, respiratory data, pulse data, etc.

[0110] The waveform display 902 is connected to the monitor 901 and is used to create a waveform control; wherein the waveform control includes a background coordinate system, a waveform, deblocking and an event callback function; and obtains a first display attribute of the background coordinate system, and draws the background coordinate system on the waveform control based on the first display attribute; and obtains a second display attribute of the waveform, a third display attribute of deblocking and a configured event callback function; and obtains medical data monitored by the monitor 901, maps the medical data into mapping coordinates on the background coordinate system, and passes the mapping coordinates and the second display attribute into the event callback function to draw the waveform on the waveform control; and when the waveform starts to be redrawn, the third display attribute is passed into the event callback function to draw deblocking on the waveform control to eliminate the previous page of waveform in the waveform control.

[0111] Correspondingly, the types of waveforms drawn in this embodiment are also very wide, and may be electrocardiogram waveforms, breathing waveforms, pulse waveforms, etc.

[0112] The above-mentioned medical terminal can draw various types of waveforms, such as ECG waveforms, respiratory waveforms, pulse waveforms, etc. through a unified interface and logic, that is, it can realize the drawing of universal waveforms without being restricted by a specific type of instrument.

[0113] Fig.10 FIG. 2 shows an internal structure diagram of a general waveform drawing device in one embodiment. Fig.10 As shown, the general waveform drawing device includes a processor, a memory and a network interface connected via a system bus. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the general waveform drawing device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor can implement the general waveform drawing method. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor can execute the general waveform drawing method. Those skilled in the art can understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the present application scheme, and does not constitute a limitation on the general waveform drawing device to which the present application scheme is applied. The specific general waveform drawing device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0114] A general waveform drawing device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: creating a waveform control; wherein the waveform control comprises a background coordinate system, a waveform, deblocking and an event callback function; obtaining a first display attribute of the background coordinate system, and drawing the background coordinate system on the waveform control based on the first display attribute; obtaining a second display attribute of the waveform, a third display attribute of deblocking and a configured event callback function; obtaining monitored medical data, mapping the medical data to mapping coordinates on the background coordinate system, and passing the mapping coordinates and the second display attribute into the event callback function to draw the waveform on the waveform control; when starting to redraw the waveform, passing the third display attribute into the event callback function to draw deblocking on the waveform control; wherein the drawn deblocking is used to eliminate the previous page of waveform in the waveform control.

[0115] It should be noted that the above-mentioned general waveform drawing method, terminal and device belong to a general inventive concept, and the contents in the embodiments of the general waveform drawing method, terminal and device are applicable to each other.

[0116] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0117] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0118] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A general waveform drawing method, characterized in that: Applied to a medical terminal, the method comprises: Creating a waveform control; wherein the waveform control includes a background coordinate system, a waveform, a block elimination and an event callback function; Acquire a first display attribute of the background coordinate system, and draw the background coordinate system on the waveform control based on the first display attribute; Acquire the second display attribute of the waveform, the third display attribute of the elimination block, and the configured event callback function; Acquire the monitored medical data, map the medical data into mapping coordinates on the background coordinate system, and pass the mapping coordinates and the second display attribute into the event callback function to draw the waveform on the waveform control; When the waveform begins to be redrawn, the third display attribute is passed into the event callback function to draw the elimination block on the waveform control; wherein the drawn elimination block is used to eliminate the previous page of waveform in the waveform control.

2. The method according to claim 1, characterized in that The obtaining of the first display attribute of the background coordinate system includes: Get the background color, the horizontal coordinate reference, maximum and minimum values ​​of the coordinate system on the horizontal axis, and the vertical coordinate reference, maximum and minimum values ​​on the vertical axis; The obtaining of the second display attribute of the waveform, the third display attribute of the elimination block and the configured event callback function includes: Obtain the waveform step of the waveform, the block elimination step of the block elimination, and the configured event callback function.

3. The method according to claim 2, characterized in that The mapping coordinates include a mapping abscissa and a mapping ordinate, and mapping the medical data to mapping coordinates on the background coordinate system includes: Obtaining a first horizontal coordinate of the currently drawn waveform at the end point, and taking the sum of the first horizontal coordinate and the waveform step length as a second horizontal coordinate; If the second abscissa is greater than the maximum value of the abscissa axis, the difference between the second abscissa and the maximum value of the abscissa axis is used as the mapping abscissa of the medical data drawn at the next moment; If the second horizontal coordinate is less than or equal to the maximum value of the horizontal coordinate axis, the second horizontal coordinate is used as the mapping horizontal coordinate of the medical data drawn at the next moment; The medical data is mapped to a mapping ordinate on the background coordinate system based on the maximum and minimum values ​​on the ordinate axis of the coordinate system.

4. The method according to claim 3, characterized in that The mapping of the medical data to a mapping ordinate on the background coordinate system based on the maximum and minimum values ​​of the coordinate system on the ordinate axis includes: The pixel value of the mapped ordinate is determined according to the medical data, the minimum value on the ordinate axis, the maximum value on the ordinate axis, the pixel value corresponding to the maximum value on the ordinate axis, and the pixel value corresponding to the minimum value on the ordinate axis.

5. The method according to claim 2, characterized in that: After the mapping coordinates and the second display attribute are passed into the event callback function to draw the waveform on the waveform control, the method further includes: Create abscissa space and ordinate space; After the waveform drawing of each waveform step is completed, the mapped abscissa of the currently drawn waveform at the end position is stored in the abscissa space, and the mapped ordinate of the currently drawn waveform at the end position is stored in the ordinate space.

6. The method according to claim 2, characterized in that The block elimination starting point of the block elimination is the end point of the currently drawn waveform, and the block elimination end point of the block elimination is the block elimination starting point plus the block elimination step length. After the mapping coordinates and the second display attribute are passed into the event callback function to draw the waveform on the waveform control, the method further includes: If the sum of the abscissa of the currently drawn waveform at the end position and the block elimination step is equal to the maximum value of the abscissa axis for the first time, it is determined to start redrawing the waveform.

7. The method according to claim 6, characterized in that When the waveform is started to be redrawn, the third display attribute is passed into the event callback function to draw the elimination block on the waveform control, and the previous page of waveform in the waveform control is eliminated, including: When starting to redraw the waveform, determine whether the background color type is a solid color; If the background color type is a solid color, the event callback function is used to set the elimination block to a waveform whose color is equal to the background color of the control, and the position of the drawn elimination block is the position of the waveform on the previous page in the elimination block area; wherein the elimination block area is the area covered from the elimination block starting point to the elimination block end point; If the color type of the background is not a pure color, the background in the deblocking area is obtained through the event callback function and redrawn on the waveform control.

8. The method according to claim 1, characterized in that The method further comprises: If a pop-up window is detected and blocks the display of the waveform in the waveform control, the blocking area of ​​the pop-up window is located, and after the pop-up window is closed, the waveform is redrawn and / or the block is eliminated in the blocking area.

9. A medical terminal, characterized in that: The medical terminal comprises: Monitors, used to monitor medical data; A waveform display, connected to the monitoring instrument, for creating a waveform control; wherein the waveform control includes a background coordinate system, a waveform, a block elimination and an event callback function; Acquire a first display attribute of the background coordinate system, and draw the background coordinate system on the waveform control based on the first display attribute; Acquire the second display attribute of the waveform, the third display attribute of the elimination block, and the configured event callback function; Acquire medical data monitored by the monitor, map the medical data into mapping coordinates on the background coordinate system, and pass the mapping coordinates and the second display attribute into the event callback function to draw the waveform on the waveform control; When the waveform begins to be redrawn, the third display attribute is passed into the event callback function to draw the elimination block on the waveform control, eliminating the previous page of waveform in the waveform control.

10. A universal waveform drawing device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method according to any one of claims 1 to 8.