Display method and device of chest drainage data, electronic equipment and storage medium
By implementing single-finger sliding touch operation on the touch display screen of the chest drainage device, and determining and performing scaling or translation operations, the problems of inconvenience in operation of existing equipment and intricate data display are solved, and operation efficiency and data accuracy are improved.
Patent Information
- Application Number
- CN202411867999.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-18
- Publication Date
- 2025-04-22
AI Technical Summary
Existing chest drainage equipment has problems such as inconvenience in operating and inability to display details in detail when viewing chest drainage data.
The reference coordinate system and initial chest drainage data are displayed through the interactive interface of the touch display screen, and a single-finger sliding touch operation is received, and the operation is determined to be zooming or translation, and the position of the reference coordinate system and data points is updated.
It realizes the scaling or translation of data on the chest drainage device through single-finger touch operation. It is simple to operate, can display details in detail carefully, improve work efficiency, and ensure the accuracy and reliability of data.
Smart Images

Figure CN119861856A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of medical technology, and in particular to a method, device, electronic device and storage medium for displaying chest drainage data. Background Art
[0002] Chest drainage is an important medical method used to discharge gas, fluid or blood in the chest cavity to restore normal pressure and physiological function in the chest cavity. In clinical practice, timely viewing and accurate analysis of chest drainage data are crucial. Traditional chest drainage data viewing methods all use fixed coordinates to view data curves, and the data cannot display details in detail, which may cause inconvenience to medical staff in some cases. For example, when medical staff are performing other emergency operations, they cannot view chest drainage data at the same time; or in an environment with limited space, two-handed operation may be restricted. Therefore, the current chest drainage equipment has technical problems such as inconvenient operation and inability to display details in detail when viewing chest drainage data, which need to be improved. Summary of the invention
[0003] The embodiments of the present application provide a method, device, electronic device and storage medium for displaying chest drainage data, so as to solve technical problems such as the inconvenience of operation and inability to accurately display details of current chest drainage equipment when viewing chest drainage data.
[0004] To solve the above technical problems, the present application provides the following technical solutions:
[0005] The present application provides a method for displaying chest drainage data, which is applicable to a chest drainage device, wherein the chest drainage device includes a touch display screen, and the touch display screen includes an interactive interface. The method includes:
[0006] displaying a reference coordinate system and initial chest drainage data through the interactive interface, wherein the reference coordinate system includes a first reference coordinate axis along a first direction and a second reference coordinate axis along a second direction, wherein the first direction is perpendicular to the second direction, and the initial chest drainage data includes a first curve formed by connecting a plurality of first data points, wherein the plurality of first data points are displayed in the reference coordinate system based on a first pixel interval in the first direction;
[0007] Receiving a sliding touch operation based on a single-finger operation through the interactive interface;
[0008] In response to the sliding touch operation, determining a first coordinate of an initial touch point in the reference coordinate system and a second coordinate of the sliding touch point in the reference coordinate system;
[0009] Determining, according to the first coordinate and the second coordinate, whether the sliding touch operation is a zoom operation or a translation operation;
[0010] If the sliding touch operation is a zoom operation, a zoom factor is determined according to the first coordinate and the second coordinate, and based on the zoom factor, a first reference scale of the first reference coordinate axis is updated to a second reference scale to obtain an updated reference coordinate system, and a second pixel interval in the first direction is obtained according to the zoom factor and the first pixel interval, and each second data point corresponding to each first data point is obtained based on the second pixel interval; the updated reference coordinate system is displayed through the interactive interface, and a second curve formed by connecting multiple second data points is displayed in the updated reference coordinate system to obtain zoomed first chest drainage data;
[0011] If the sliding touch operation is a translation operation, based on the first coordinate and the second coordinate, the first data point corresponding to the sliding touch point is updated to the first data point corresponding to the initial touch point, and the coordinate label corresponding to the sliding touch point on the first reference coordinate axis is updated to the coordinate label corresponding to the initial touch point on the first reference coordinate axis; based on the updated first data point corresponding to the sliding touch point, other first data points on the first curve are updated to obtain third data points corresponding to each first data point, and based on the updated coordinate label corresponding to the sliding touch point, other coordinate labels on the first reference coordinate axis are updated to obtain an updated reference coordinate system; the updated reference coordinate system is displayed through the interactive interface, and a third curve formed by connecting multiple third data points is displayed in the updated reference coordinate system to obtain the translated second chest drainage data.
[0012] In one embodiment, the step of determining, according to the first coordinate and the second coordinate, whether the sliding touch operation is a zoom operation or a translation operation includes:
[0013] Acquire a first coordinate difference between the second coordinate and the first coordinate in the first direction, and acquire a second coordinate difference between the second coordinate and the first coordinate in the second direction;
[0014] If the first coordinate difference is greater than the second coordinate difference, the sliding touch operation is determined to be a translation operation; otherwise, the sliding touch operation is determined to be a zoom operation.
[0015] In one embodiment, the step of determining the zoom factor according to the first coordinate and the second coordinate includes:
[0016] obtaining a sliding distance in the second direction according to the second coordinate difference;
[0017] The zoom factor is determined according to a ratio of the sliding distance to a preset reference distance.
[0018] In one embodiment, the steps of updating the first reference scale of the first reference coordinate axis to a second reference scale based on the zoom factor to obtain an updated reference coordinate system, obtaining a second pixel interval in the first direction according to the zoom factor and the first pixel interval, and obtaining each second data point corresponding to each first data point based on the second pixel interval include:
[0019] Dividing the first reference scale by the zoom factor, and determining the ratio as the second reference scale;
[0020] Replacing the scale values of the first reference scale with the scale values of the second reference scale to obtain an updated reference coordinate system;
[0021] multiplying the first pixel interval by the zoom factor, and determining the product as the second pixel interval;
[0022] Taking the coordinate origin as the scaling center, the first data points are arranged in the first direction according to the second pixel interval to obtain the second data points corresponding to the first data points.
[0023] In one embodiment, the step of updating the first data point corresponding to the sliding touch point to the first data point corresponding to the initial touch point according to the first coordinate and the second coordinate includes:
[0024] Acquire a first video memory address corresponding to the initial touch point and a second video memory address corresponding to the sliding touch point according to the first coordinate and the second coordinate;
[0025] The data queue address associated with the first display memory address is updated to be associated with the second display memory address, the data queue address indicating a first data point corresponding to the initial touch point.
[0026] In one embodiment, based on the updated first data point corresponding to the sliding touch point, other first data points on the first curve are updated to obtain third data points corresponding to the first data points, and based on the updated coordinate label corresponding to the sliding touch point, other coordinate labels on the first reference coordinate axis are updated to obtain an updated reference coordinate system, including:
[0027] Acquire a first coordinate difference between the second coordinate and the first coordinate in the first direction;
[0028] updating the other first data points at the initial positions to the first data points at the target positions respectively, to obtain third data points corresponding to the first data points, wherein the coordinate difference between the target position and the corresponding initial position in the first direction is equal to the first coordinate difference;
[0029] The other initial coordinate labels on the first reference coordinate axis are updated to target coordinate labels respectively to obtain an updated reference coordinate system, wherein the difference between the target coordinate label and the corresponding initial coordinate label is equal to the first coordinate difference.
[0030] In one embodiment, the interactive interface includes a first interactive area and a second interactive area, and before the step of displaying the reference coordinate system and the initial chest drainage data through the interactive interface, further includes:
[0031] Receiving, through the first interactive area, a configuration operation of a display parameter based on a single-finger operation;
[0032] In response to the configuration operation, the type, interval, and corresponding reference coordinate system of the chest drainage data to be displayed in the second interactive area are determined.
[0033] At the same time, the embodiment of the present application also provides a display device for chest drainage data, which is arranged in a chest drainage device, the chest drainage device includes a touch display screen, the touch display screen includes an interactive interface, and the device includes:
[0034] a first display module, configured to display a reference coordinate system and initial chest drainage data through the interactive interface, the reference coordinate system comprising a first reference coordinate axis along a first direction and a second reference coordinate axis along a second direction, the first direction being perpendicular to the second direction, the initial chest drainage data comprising a first curve formed by connecting a plurality of first data points, the plurality of first data points being displayed in the reference coordinate system based on a first pixel interval in the first direction;
[0035] A receiving module, used for receiving a sliding touch operation based on a single-finger operation through the interactive interface;
[0036] a determination module, configured to determine, in response to the sliding touch operation, a first coordinate of the initial touch point in the reference coordinate system and a second coordinate of the sliding touch point in the reference coordinate system;
[0037] A determination module, configured to determine whether the sliding touch operation is a zoom operation or a translation operation according to the first coordinate and the second coordinate;
[0038] a second display module, for, if the sliding touch operation is a zoom operation, determining a zoom factor according to the first coordinate and the second coordinate, updating the first reference scale of the first reference coordinate axis to a second reference scale based on the zoom factor to obtain an updated reference coordinate system, obtaining a second pixel interval in the first direction according to the zoom factor and the first pixel interval, and obtaining each second data point corresponding to each first data point based on the second pixel interval; displaying the updated reference coordinate system through the interactive interface, and displaying a second curve formed by connecting a plurality of second data points in the updated reference coordinate system to obtain zoomed first chest drainage data;
[0039] The third display module is used for updating the first data point corresponding to the sliding touch point to the first data point corresponding to the initial touch point according to the first coordinate and the second coordinate if the sliding touch operation is a translation operation, and updating the coordinate label corresponding to the sliding touch point on the first reference coordinate axis to the coordinate label corresponding to the initial touch point on the first reference coordinate axis; based on the updated first data point corresponding to the sliding touch point, updating other first data points on the first curve to obtain third data points corresponding to each first data point, and based on the updated coordinate label corresponding to the sliding touch point, updating other coordinate labels on the first reference coordinate axis to obtain an updated reference coordinate system; displaying the updated reference coordinate system through the interactive interface, and displaying a third curve formed by connecting multiple third data points in the updated reference coordinate system to obtain the translated second chest drainage data.
[0040] The present application also provides an electronic device, comprising a memory and a processor; the memory stores an application, and the processor is used to run the application in the memory to execute the steps in any of the above-mentioned methods for displaying chest drainage data.
[0041] An embodiment of the present application provides a computer-readable storage medium, which stores a plurality of instructions suitable for loading by a processor to execute the steps in the above-mentioned method for displaying chest drainage data.
[0042] Beneficial effect: The present application provides a method, device, electronic device and storage medium for displaying chest drainage data. The method is applicable to a chest drainage device, wherein the chest drainage device comprises a touch display screen, and the touch display screen comprises an interactive interface. The device first displays a reference coordinate system and initial chest drainage data through the interactive interface, and then receives a sliding touch operation based on a single-finger operation through the interactive interface, and determines whether the sliding touch operation is a zoom operation or a translation operation; if it is a zoom operation, the first reference scale of the first reference coordinate axis of the reference coordinate system and the first pixel interval of each first data point corresponding to the initial chest drainage data are updated based on the zoom multiple, and finally the reference coordinate system and the initial chest drainage data are displayed on the interactive interface. The reference coordinate system displays the updated second reference scale, and each first data point is displayed in the updated reference coordinate system according to the updated second pixel interval, so as to obtain the scaled first chest drainage data; if it is a translation operation, first update the first data point corresponding to the sliding touch point to the first data point corresponding to the initial touch point, and update the coordinate label corresponding to the sliding touch point on the first reference coordinate axis to the coordinate label corresponding to the initial touch point, and then update the other first data points and other coordinate labels, and finally display the reference coordinate system after the coordinate label is updated on the interactive interface, and each third data point corresponding to each updated first data point, so as to obtain the translated second chest drainage data. The present application can realize the scaling or translation of chest drainage data by single-finger touch operation on the chest drainage device, which is simple to operate, can display details in detail, improve work efficiency, and ensure the accuracy and reliability of the data at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The technical solution and other beneficial effects of the present application will be made apparent by describing in detail the specific implementation methods of the present application in conjunction with the accompanying drawings.
[0044] Figure 1 A schematic diagram of a scene of a method for displaying chest drainage data provided in an embodiment of the present application.
[0045] Figure 2 This is a first schematic diagram of the interactive interface in the embodiment of the present application.
[0046] Figure 3 A schematic flow chart of a method for displaying chest drainage data provided in an embodiment of the present application.
[0047] Figure 4 This is a second schematic diagram of the interactive interface in the embodiment of the present application.
[0048] Figure 5 This is a schematic diagram of the arrangement of two adjacent first data points before scaling in an embodiment of the present application.
[0049] Figure 6 It is a schematic diagram of the arrangement of two adjacent second data points after scaling in an embodiment of the present application.
[0050] Figure 7 This is a third schematic diagram of the interactive interface in the embodiment of the present application.
[0051] Figure 8 This is a fourth schematic diagram of the interactive interface in the embodiment of the present application.
[0052] Fig. 9 A schematic diagram of the structure of a device for displaying chest drainage data provided in an embodiment of the present application.
[0053] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0054] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0055] See also Figure 1 , Figure 1 A schematic diagram of a scenario for the application of the method for displaying chest drainage data provided in an embodiment of the present application, the scenario includes a chest drainage device, the chest drainage device is connected to the human chest cavity, under normal circumstances, the chest cavity is in a negative pressure environment and will not leak, when there is a problem with the chest cavity or after certain thoracic surgeries, persistent leakage may occur, the chest drainage device can observe the leakage, and calculate and display the chest drainage data, so that medical staff can use this as a basis to determine the next diagnosis and treatment plan. The chest drainage device includes a touch display screen, the touch display screen includes an interactive interface, and medical staff can operate on the interactive interface with a single finger, specifically a sliding touch operation, the chest drainage device responds to the sliding operation, determines whether the operation is a zoom operation or a translation operation, and zooms or translates the reference coordinate system and the initial touch data displayed on the interactive interface according to the judgment result, so as to show the details to the medical staff in detail.
[0056] like Figure 2 As shown, the initial display content of the interactive interface includes a reference coordinate system and initial chest drainage data, the reference coordinate system includes a first reference coordinate axis along a first direction and a second reference coordinate axis along a second direction, Figure 2The first direction is horizontal, the second direction is vertical, the first reference coordinate axis is used to represent time, and the second reference coordinate axis is used to represent leakage or drainage volume. Taking leakage as an example, the initial chest drainage data includes a first curve formed by connecting multiple first data points, the horizontal coordinate of each first data point is time, the vertical coordinate is leakage, and multiple first data points are displayed in a reference coordinate system based on the first pixel interval along the horizontal direction. Among them, the first pixel interval refers to the distance between two adjacent first data points measured with a pixel width as the basic unit, and its specific value indicates that the distance between two adjacent first data points is equal to a few pixel widths.
[0057] If it is a zoom operation, the zoom factor is calculated first, and then the first reference scale of the first reference coordinate axis in the horizontal direction of the reference coordinate system is scaled according to the zoom factor. At the same time, the second pixel interval in the horizontal direction is calculated according to the zoom factor, and the first data points are rearranged in the horizontal direction according to the second pixel interval to obtain the second data points corresponding to each first data point. Finally, the reference coordinate system after the scale update and the second curve formed by connecting multiple second data points are displayed on the interactive interface as the zoomed first chest drainage data. Among them, the second pixel interval refers to the distance between two adjacent second data points measured with a pixel width as the basic unit, and its specific value indicates how many pixel widths the distance between two adjacent second data points is equal to.
[0058] If it is a translation operation, first update the first data point corresponding to the sliding touch point to the first data point corresponding to the initial touch point, and update the coordinate label corresponding to the sliding touch point on the first horizontal reference coordinate axis to the coordinate label corresponding to the initial touch point on the first horizontal reference coordinate axis, and then use this as a reference to update other first data points to obtain the third data points corresponding to each first data point, and update other coordinate labels to obtain an updated reference coordinate system, and finally display the reference coordinate system after the coordinate label is updated on the interactive interface, and the third curve formed by connecting multiple third data points, which is used as the second chest drainage data after translation. Among them, the first data point corresponding to the sliding touch point refers to the first data point with the same horizontal coordinate as the sliding touch point, the first data point corresponding to the initial touch point refers to the first data point with the same horizontal coordinate as the initial touch point, the coordinate label corresponding to the sliding touch point on the horizontal coordinate axis refers to the horizontal coordinate value corresponding to the sliding touch point, and the coordinate label corresponding to the initial touch point on the horizontal coordinate axis refers to the horizontal coordinate value corresponding to the initial touch point.
[0059] Through the above process, it is possible to zoom or translate chest drainage data on the chest drainage device through a single-finger touch operation, which is simple to operate, can finely display details, improve work efficiency, and ensure the accuracy and reliability of data. In the following embodiments, the specific implementation process of the method for displaying chest drainage data will be further described.
[0060] See also Figure 3 , Figure 3 : is a flow chart of a method for displaying chest drainage data provided in an embodiment of the present application, the method specifically comprising:
[0061] S1: Displaying a reference coordinate system and initial chest drainage data through an interactive interface, wherein the reference coordinate system includes a first reference coordinate axis along a first direction and a second reference coordinate axis along a second direction, wherein the first direction and the second direction are perpendicular, and the initial chest drainage data includes a first curve formed by connecting a plurality of first data points, wherein the plurality of first data points are displayed in the reference coordinate system based on a first pixel interval in the first direction.
[0062] There are many types of chest drainage data, such as air leakage, drainage volume, etc. For ease of explanation, in the following embodiments, air leakage is taken as an example, and the principle of drainage volume is the same. Figure 2 As shown, the interactive interface displays a reference coordinate system and initial chest drainage data, the reference coordinate system includes a first reference coordinate axis along a first direction and a second reference coordinate axis along a second direction, the first direction and the second direction are perpendicular, Figure 2 The first direction is defined as the horizontal direction, the second direction is the vertical direction, the first reference coordinate axis is used to represent time, and the time interval that can be displayed on the interface can be pre-set, for example, it can display 0 to 8 hours, and the second reference coordinate axis is used to represent the leakage volume, and the leakage volume interval that can be displayed on the interface can also be pre-set, for example, 0 to 2700ml / min. When the chest drainage device starts working, the leakage volume within the set 8 hours can be displayed on the interactive interface. The leakage volume calculated each time can be represented by a first data point in the reference coordinate system. For example, the first data point (2, 1800) indicates that the leakage volume in the second hour is 1800ml / min. Connecting all the first data points within 8 hours forms a first curve.
[0063] In the first direction, multiple first data points are displayed in the reference coordinate system based on the first pixel interval. The first pixel interval refers to the distance between two adjacent first data points measured with one pixel width as the basic unit, and its specific value indicates that the distance between two adjacent first data points is equal to several pixel widths. Specifically, let the first pixel interval be w1, and the pixel width be w0. If w1 / w0=1, it means that the distance between two adjacent first data points is equal to one pixel width. If w1 / w0=2, it means that the distance between two adjacent first data points is equal to two pixel widths, and so on. It should be noted that since the pixel is the smallest display unit, the first pixel interval w1 will not be less than the pixel width w0 at least, that is, w1≥w0. Let the total number of pixels (that is, the total pixel width) of the touch display screen in the horizontal direction be W, and the first pixel interval w1=w0, then a total of W / w1 first data points can be displayed in the horizontal direction, and connecting these first data points can form Figure 2 The first curve shown in FIG. 1 is used as the initial chest drainage data.
[0064] S2: receiving a sliding touch operation based on a single-finger operation through an interactive interface.
[0065] The medical staff performs a sliding touch operation on the interactive interface with a single finger, that is, presses a certain point on the interactive interface and keeps the pressing state and slides from this point to other points in any direction. The chest drainage device receives the sliding touch operation through the interactive interface.
[0066] In the prior art, when you want to zoom or pan the screen, you need to use both hands or two fingers to operate, which is cumbersome. In actual scenarios, if both hands are occupied by other tasks or an emergency occurs, the zoom operation cannot be completed. In the embodiment of the present application, both zooming and panning are completed by single-finger operation, which makes the operation very simple. Only one hand is needed to complete the zooming of the screen, without putting down the tool in hand or interrupting the ongoing operation, which greatly improves work efficiency.
[0067] S3: In response to the sliding touch operation, determining a first coordinate of the initial touch point in the reference coordinate system and a second coordinate of the sliding touch point in the reference coordinate system.
[0068] Since the sliding touch operation acts on the touch display screen, the coordinates of each point passed by during pressing and sliding can be sensed, such as Figure 2As shown, the sliding touch operation will generate the initial touch point A and the sliding touch point B. The initial touch point A refers to the point of initial pressing, and the sliding touch point B refers to the point at the end of the sliding track generated from the initial touch point. When the finger stops pressing at a certain point, that is, the finger is lifted, the sliding touch operation ends. After the next press, the new pressing point will be used as the initial touch point and participate in subsequent operations according to the next sliding touch operation.
[0069] In response to the sliding touch operation, the chest drainage device determines the first coordinate (x1, y1) of the initial touch point A in the reference coordinate system and the second coordinate (x2, y2) of the sliding touch point B in the reference coordinate system. Before the end of this sliding touch operation, the position of the initial touch point A is fixed, and the position of the sliding touch point B changes with the change of the sliding trajectory and is not fixed, then the chest drainage device will obtain the second coordinate in real time.
[0070] S4: Determine, according to the first coordinate and the second coordinate, whether the sliding touch operation is a zoom operation or a translation operation.
[0071] After obtaining the first coordinate and the second coordinate, it is possible to determine whether the sliding touch operation is a zoom operation or a translation operation based on the positions of the two points in combination with a preset algorithm, and to zoom or translate the displayed content based on the determination result.
[0072] In one embodiment, S4 specifically includes:
[0073] S41: Acquire a first coordinate difference between the second coordinate and the first coordinate in the first direction, and acquire a second coordinate difference between the second coordinate and the first coordinate in the second direction.
[0074] S42: If the first coordinate difference is greater than the second coordinate difference, determining the sliding touch operation is a translation operation; otherwise, determining the sliding touch operation is a zoom operation.
[0075] The judgment is mainly based on the position difference between the initial touch point A and the sliding touch point B. Specifically, the first coordinate difference between the second coordinate and the first coordinate in the first direction, that is, x2-x1, is calculated first, and the second coordinate difference between the second coordinate and the first coordinate in the second direction, that is, y2-y1, is calculated. If (x2-x1)>(y2-y1), the operation is judged to be a translation operation, otherwise it is judged to be a zoom operation. In layman's terms, sliding up and down is zooming, and sliding left and right is translation.
[0076] S5: If the sliding touch operation is a zoom operation, determine the zoom factor according to the first coordinate and the second coordinate, update the first reference scale of the first reference coordinate axis to the second reference scale based on the zoom factor to obtain an updated reference coordinate system, obtain the second pixel interval in the first direction according to the zoom factor and the first pixel interval, and obtain each second data point corresponding to each first data point based on the second pixel interval; display the updated reference coordinate system through the interactive interface, and display a second curve formed by connecting multiple second data points in the updated reference coordinate system to obtain the zoomed first chest drainage data.
[0077] If the operation is determined to be a zoom operation, the zoom factor n is first calculated based on the coordinate difference between the initial touch point A and the sliding touch point B, and then the first reference coordinate axis and each first data point are updated based on the zoom factor n. Specifically, the first reference coordinate axis has a first reference scale. After obtaining the zoom factor n, the first reference scale needs to be updated based on the zoom factor n to obtain a second reference scale. The second reference coordinate axis does not need to change at all. The reference coordinate system after the scale is updated is called the updated reference coordinate system. The first data points were originally arranged horizontally according to the first pixel interval. After obtaining the zoom factor n, the second pixel interval needs to be calculated based on the zoom factor n and the first pixel interval, and then the first data points are rearranged based on the second pixel interval to obtain the second data points corresponding to the first data. Finally, the updated reference coordinate system is displayed through the interactive interface, and the second curve formed by connecting the second data points is displayed in the updated reference coordinate system. These contents constitute the zoomed first chest drainage data.
[0078] In one embodiment, S5 specifically includes:
[0079] S51: Obtaining a sliding distance in a second direction according to the second coordinate difference.
[0080] S52: Determine a zoom factor according to a ratio of the sliding distance to a preset reference distance.
[0081] When calculating the zoom factor, the sliding distance of the two touch points in the second direction is mainly used as the basis. Specifically, the sliding distance y2-y1 of the two in the second direction is calculated, and then the ratio (y2-y1) / s of the sliding distance y2-y1 to the preset reference distance s is calculated, and the ratio is used as the zoom factor n. The size of the preset reference distance s can be set as needed.
[0082] In another embodiment, the length of the straight line between the two touch points can be calculated first according to the first coordinate and the second coordinate, and then the ratio of the straight line length to the preset reference distance is used as the zoom factor. In another embodiment, the total length of the sliding track between the two touch points can be calculated first, and then the ratio of the total length of the sliding track to the preset reference distance is used as the zoom factor. Those skilled in the art can select one of the solutions to obtain the zoom factor as needed.
[0083] In one embodiment, S5 specifically further includes:
[0084] S53: Multiply the first reference scale by the zoom factor, and determine the ratio as the second reference scale.
[0085] S54: Replace the scale values of the first reference scale with the scale values of the second reference scale to obtain an updated reference coordinate system.
[0086] S55: multiply the first pixel interval by the zoom factor, and determine the product as the second pixel interval.
[0087] S56: Taking the coordinate origin as the scaling center, arrange the first data points in the first direction at a second pixel interval to obtain second data points corresponding to the first data points.
[0088] Divide the scale value of the first reference scale by the zoom factor, and the obtained ratio is the scale value of the second reference scale. Before and after zooming, the position of the scale line on the first reference coordinate axis does not change. Figure 2 As shown, the time interval is 8 hours, and the scale values of the 8 first reference scales are respectively equal to 1 hour, 2 hours, 3 hours, 4 hours, 5 hours, 6 hours, 7 hours, and 8 hours. When the zoom factor n is equal to 2, that is, the zoom factor is 2 times, as shown in Figure 4 As shown, the positions of the eight scale lines remain unchanged, and the original eight scale values of the first reference scale are divided by the zoom factor n respectively, and the obtained ratios are used as the scale values of the second reference scale, and these scale values are used to replace Figure 2 The scale values in are Figure 4 0.5 hours, 1 hour, 1.5 hours, 2 hours, 2.5 hours, 3 hours, 3.5 hours, 4 hours. In addition, Figure 2 In addition to the main scale (8 first reference scales), there are 5 secondary scales between two adjacent main scales. The scale lines of these secondary scales will not change during the zooming process. Only the corresponding scale values will change. For example Figure 2 The scale value of the first sub-scale after 1 hour is 1.2 hours, and the scale value of the sub-scale at the same position after magnification 2 times is 0.6 hours.
[0089] Multiply the value of the first pixel interval by the zoom factor n, and the product is the value of the second pixel interval. Assume that the first pixel interval is w1, and the second pixel interval w2 is equal to w1*n. Take the origin of the coordinate system as the zoom center, that is, the origin of the coordinate system is always 0 during zooming. In the first direction, arrange the first data points originally arranged according to the first pixel interval w1 according to the second pixel interval w2, and then you can get the second data points corresponding to the first data points. For example, Figure 2 As shown, the time interval is 8 hours, and the total number of horizontal pixels W is 480, then 1 hour corresponds to 480 / 8=60 pixels, 1 minute corresponds to 1 pixel, and the first data point is arranged 1 minute, then Figure 2 The first pixel interval w1 between two adjacent first data points is equal to the pixel width w0, and the specific arrangement is as follows: Figure 5 When the zoom factor n is equal to 2, that is, when the zoom factor is 2 times, Figure 2 The two first data points in correspond to Figure 6 In this case, the second pixel interval w2 between two adjacent second data points is equal to 2 pixel width w0. After all the second data points are arranged and connected according to the 2 pixel width 2*w0, the following can be formed: Figure 4 The second curve is shown magnified 2 times.
[0090] In one embodiment, S5 specifically further includes: determining whether the second pixel interval is greater than a threshold; if so, displaying associated data of each second data point; if not, folding the displayed associated data.
[0091] Since the second pixel interval between each data point will change after scaling, if the interval is large enough, the associated data of the second data point can be displayed at the interval. The associated data can be the notes added by the medical staff, the alarm information of the abnormal point, etc. This solution allows the medical staff to obtain more details. At the same time, since the interval between adjacent second data points is large enough, it does not affect the normal display of each second data point. If the interval is small enough and the associated data has been displayed, these associated data can be folded and not displayed. This solution allows the medical staff to view each second data point without interference. Technicians in this field can set the threshold size as needed to flexibly adapt to the needs of various scenarios.
[0092] There are some technologies for scaling the display image in the prior art, but they have many defects.
[0093] First, the prior art usually enlarges the entire picture together. If a data point originally occupies 1 pixel, when it is enlarged 4 times, the data point needs to occupy 4 pixels. The result of such enlargement will make the picture clarity worse as it is larger, and it is impossible to display details in detail. In the embodiment of the present application, the enlargement of the data point is achieved by increasing the pixel spacing between adjacent data points. If a data point originally occupies 1 pixel, when it is enlarged 4 times, the data point still only occupies 1 pixel, but the spacing between two adjacent data points becomes larger. The result of such enlargement will not cause a decrease in the clarity of the picture, and the details can be displayed in detail.
[0094] Secondly, in the prior art, when the entire screen is scaled, the reference scale value on the coordinate axis will not change accordingly, that is, this method will only scale the length of each reference scale, and the corresponding value under the scale will only change position, not size. For example, the value under a certain scale originally shows 1 hour. After zooming in 4 times, the scale line and the value 1 will move to the original value 4. The position where the value 1 was originally displayed will not display any value, and there will be no scale line. When you want to view the corresponding data point at that place, you cannot see at a glance which time point that place corresponds to, resulting in a decrease in viewing efficiency. In the embodiment of the present application, the reference scale value on the coordinate axis will change accordingly when zooming. For example, the value under a certain scale originally shows 1 hour. After zooming in 4 times, the position that originally showed 4 hours will change to show 1 hour, and the position that originally showed 1 hour will change to show 0.25 hours. The scale line still exists. In this way, when you want to view the corresponding data point at that place, you can see at a glance which time point that place corresponds to, which greatly improves viewing efficiency.
[0095] Finally, in the prior art, when the entire screen is scaled, the horizontal axis and the vertical axis are scaled together, which will cause some of the data points to be moved out of the display screen in the vertical direction after the enlargement, and cannot be displayed, and the overall amount of information that can be seen is reduced. In the embodiment of the present application, only the horizontal axis can be scaled, and the vertical axis remains unchanged. In this way, no matter how many data points there are in the horizontal direction, they will not be moved out of the screen in the vertical direction, ensuring the integrity of the amount of information.
[0096] S6: If the sliding touch operation is a translation operation, based on the first coordinate and the second coordinate, the first data point corresponding to the sliding touch point is updated to the first data point corresponding to the initial touch point, and the coordinate label corresponding to the sliding touch point on the first reference coordinate axis is updated to the coordinate label corresponding to the initial touch point on the first reference coordinate axis; based on the first data point corresponding to the updated sliding touch point, other first data points on the first curve are updated to obtain third data points corresponding to each first data point, and based on the coordinate label corresponding to the updated sliding touch point, other coordinate labels on the first reference coordinate axis are updated to obtain an updated reference coordinate system; the updated reference coordinate system is displayed through an interactive interface, and a third curve formed by connecting multiple third data points is displayed in the updated reference coordinate system to obtain the second chest drainage data after translation.
[0097] If the operation is determined to be a translation operation, the first data point corresponding to the sliding touch point is first updated to the first data point corresponding to the initial touch point. Specifically, the first data point corresponding to the sliding touch point refers to the first data point with the same horizontal coordinate as the sliding touch point, and the first data point corresponding to the initial touch point refers to the first data point with the same horizontal coordinate as the initial touch point. Figure 7 As shown, the sliding touch point B corresponds to the first data point D, and the horizontal coordinates of the two are equal. The initial touch point A corresponds to the first data point C, and the horizontal coordinates of the two are also equal. Assume that the first coordinate of the initial touch point A is (x1, y1), the second coordinate of the sliding touch point B is (x2, y2), the coordinate of the first data point C is (x1, y3), and the coordinate of the second data point D is (x2, y4). Updating the first data point D corresponding to the sliding touch point B to the first data point C corresponding to the initial touch point A means updating the first data point D at the original x2 to the first data point C. After the update, the horizontal coordinate of the first data point C in the reference coordinate system changes from x1 to x2, and the vertical coordinate remains unchanged, which means that the first data point C is horizontally translated to the original x2 position. Specifically, Figure 8 as shown in .
[0098] At the same time, the coordinate label corresponding to the sliding touch point on the first reference coordinate axis must be updated to the coordinate label corresponding to the initial touch point on the first reference coordinate axis. Specifically, the coordinate label corresponding to the sliding touch point B on the horizontal coordinate axis refers to the horizontal coordinate value x2 corresponding to the sliding touch point, and the coordinate label corresponding to the initial touch point A on the horizontal coordinate axis refers to the horizontal coordinate value x1 corresponding to the initial touch point. Figure 7As shown, the coordinate label x2 corresponding to the sliding touch point B is equal to 3 hours, and the coordinate label x1 corresponding to the initial touch point A is equal to 4 hours. The coordinate label corresponding to the sliding touch point B on the first reference coordinate axis is updated to the coordinate label corresponding to the initial touch point A on the first reference coordinate axis, which means that the value of x2 is updated to the value of x1 4 hours, that is, the coordinate label x1 is horizontally translated to the original x2. Specifically, Figure 8 shown.
[0099] After the position of the first data point C is updated, the curve display is refreshed, and the other first data points on the first curve will change with the change of the position of the first data point C. After the change, the third data points corresponding to each first data point are obtained, and the relative positions between the third data points are consistent with the relative positions between the first data points. After the coordinate label x2 corresponding to the sliding touch point B is updated to x1, the coordinate display is refreshed, and the other coordinate labels on the first reference coordinate axis will change with the change of x1. The difference between the coordinate labels after the change is consistent with the difference between the coordinate labels before the change. It should be noted that although each pixel corresponds to a coordinate label, only the scale value corresponding to the first reference scale will be displayed in actual display. Therefore, after each coordinate label is updated, the effect that can be seen in actual display is that the scale value corresponding to the first reference scale has changed. Although the changes of other coordinate labels occur, they are not displayed. After all coordinate labels are updated, an updated reference coordinate system is formed.
[0100] Finally, the updated reference coordinate system is displayed through the interactive interface, and a third curve formed by connecting multiple third data points is displayed in the updated reference coordinate system. The overall shape of the third curve is consistent with the first curve, and only the lateral position changes. These contents constitute the second chest drainage data after translation.
[0101] In one embodiment, S6 specifically includes:
[0102] S61: Acquire a first video memory address corresponding to the initial touch point and a second video memory address corresponding to the sliding touch point according to the first coordinate and the second coordinate.
[0103] The first coordinate of the initial touch point A is (x1, y1), which corresponds to the first data point C (x1, y3), and the second coordinate of the sliding touch point B is (x2, y2), which corresponds to the first data point D (x2, y4). When a data point needs to be displayed at a certain position in the touch display screen, it is necessary to first extract the data point from the video memory address of the position and then display it at the position. When the video memory address of a certain position extracts the first data point C, the first data point C will be displayed at the position. If the video memory address of another position extracts the first data point D, the first data point D will be displayed at the position. In this embodiment, the first video memory address d1 corresponding to the initial touch point A refers to the video memory address at x1 from which the first data point C can be extracted, and the second video memory address d2 corresponding to the sliding touch point B refers to the video memory address at x2 from which the first data point D can be extracted. After x1 and x2 are determined, the first video memory address d1 and the second video memory address d2 can be obtained respectively.
[0104] S62: Update the data queue address associated with the first display memory address to be associated with the second display memory address, the data queue address indicating the first data point corresponding to the initial touch point.
[0105] Taking leakage as an example, when multiple first data points need to be displayed, the vertical coordinate values (leakage) corresponding to each first data point need to be arranged in chronological order in advance to form a data queue. Each video memory address is associated with a data queue address, and the data queue address can indicate the data that currently needs to be displayed. Specifically, during the initial display, if the leakage corresponding to the first data point C is located at the 100th bit in the data queue, and the data queue address associated with the first video memory address d1 indicates that the display starts from the 100th bit in the data queue, then the first data point C can be displayed at the corresponding position on the touch screen eventually. The leakage corresponding to the first data point D is located at the 60th bit in the data queue, and the data queue address associated with the second video memory address d2 indicates that the display starts from the 60th bit in the data queue, then the first data point D can be displayed at the corresponding position on the touch screen eventually, forming the following: Figure 7 In this embodiment, the data queue address associated with the first display memory address d1 is updated to be associated with the second display memory address d2. After the update, when obtaining data from the data queue address associated with the second display address d2, the 100th leakage amount will be obtained and displayed at the original x2, so as to update the original x2 display of the first data point D to display the first data point C, forming the following Figure 8 The effect shown.
[0106] When changing the association relationship, the specific operation is to copy the data queue address associated with the first video memory address d1 to the second video memory address d2, so that it overwrites the original data queue address. When the coordinate label x2 corresponding to the sliding touch point B is subsequently updated to the coordinate label x1 corresponding to the initial touch point A, the specific operation is also to copy the coordinate label x2 to the coordinate label x1, so that it overwrites the original coordinate label x2.
[0107] In one embodiment, S6 specifically includes:
[0108] S63: Obtain a first coordinate difference between the second coordinate and the first coordinate in the first direction.
[0109] First, calculate the first coordinate difference between the second coordinate and the first coordinate in the first direction, that is, x2-x1.
[0110] S64: Update the other first data points at the initial positions to the first data points at the target positions respectively, and obtain the third data points corresponding to the first data points, wherein the coordinate difference between the target position and the corresponding initial position in the first direction is equal to the first coordinate difference.
[0111] After the position of the first data point C is updated from x1 to x2, the curve display is refreshed, and the other first data points on the first curve will change with the position of the first data point C, and will be updated from the initial position to the target position. Assuming that the target position corresponds to xi on the first reference coordinate axis, and the initial position corresponds to x0 on the first reference coordinate axis, the coordinate difference xi-x0 between the target position and the initial position in the first direction is equal to x2-x1. For example, the first data point E is Figure 7 The first data point E is located at the initial position x0. Figure 8 If the target position xi is reached, x2-x1 equals 1 hour, then xi-x0 also equals 1 hour.
[0112] S65: updating other initial coordinate labels on the first reference coordinate axis to target coordinate labels respectively, to obtain an updated reference coordinate system, wherein the difference between the target coordinate label and the corresponding initial coordinate label is equal to the first coordinate difference.
[0113] After the coordinate label x2 corresponding to the sliding touch point B is updated to x1, the coordinate display is refreshed, and the other coordinate labels on the first reference coordinate axis will change with the change of x1, and the initial coordinate label will be updated to the target coordinate label. Assuming the initial coordinate label is x0 and the target coordinate label is xi, the difference between the target coordinate label and the corresponding initial coordinate label xi-x0 is equal to x2-x1. For example, Figure 7The initial coordinate label x0 is 5, and the target coordinate label after the update is xi. If x2-x1 equals 1 hour, then xi-x0 also equals 1 hour, and xi is 6. After all the coordinate labels on the first reference coordinate axis are updated, the updated reference coordinate system is obtained. The coordinate labels on the second reference coordinate axis remain unchanged.
[0114] There are some technologies for shifting the display screen in the prior art, but they have many defects.
[0115] First, in the prior art, the entire screen is translated together. During the movement, the value of the coordinate label at the same position will not change, only the position of the coordinate label will change, and the displayed content is fixed. When translating one unit to the left, the coordinate label and data point of the unit on the far right will both display blank. The greater the moving distance, the more blank areas will be displayed, which will result in a reduction in the amount of information. In the embodiment of the present application, the display interval is fixed, but the display content within the interval is not fixed. The value of the coordinate label at the same position will change with the change of the translation distance, and the data point will also be updated. When translating one unit to the left, the new data point and coordinate label will still be displayed on the far right, ensuring the integrity of the amount of information.
[0116] Secondly, in the prior art, when the entire screen is translated, the horizontal axis and the vertical axis will be translated together, which will cause the vertical axis to be moved out of the display screen during the movement, making it impossible to intuitively see the vertical coordinate of each data point after the translation, and the viewing efficiency is reduced. In the embodiment of the present application, only the horizontal axis can be translated, and the vertical axis remains unchanged. Then, regardless of the translation distance, the vertical axis is always displayed on the screen, and the vertical coordinate value of each data point can be intuitively seen, which greatly improves the viewing efficiency.
[0117] In one embodiment, the interactive interface includes a first interactive area and a second interactive area, and before S1, further includes:
[0118] S01: receiving, through a first interactive area, a configuration operation on a display parameter based on a single-finger operation.
[0119] S02: In response to the configuration operation, determining the type, interval and corresponding reference coordinate system of the chest drainage data to be displayed in the second interactive area.
[0120] like Figure 2 and Figure 7As shown, the interactive interface includes a first interactive area and a second interactive area. The first interactive area has configuration controls for displaying parameters, such as leakage / drainage selection controls, time interval selection controls, etc. The second interactive area is used to display the reference coordinate system and various chest drainage data mentioned in the above embodiments. Medical staff can first touch these controls in the first interactive area to configure the display parameters, for example, configure the quantity type of chest drainage data to be leakage, and configure the time interval to be 8 hours. After configuration, the chest drainage device responds to the configuration operation and determines that the type of chest drainage data to be displayed in the second interactive area is leakage, the interval is 8 hours, and the ordinate axis of the corresponding reference coordinate system represents leakage. If the quantity type of chest drainage data is configured as drainage, the data type and ordinate axis displayed subsequently will also change accordingly. That is, the present application can be implemented in the same interactive interface, with one part of the area used for parameter configuration and another part of the area used for displaying content, and only part of the area is targeted when zooming and panning.
[0121] Through the above simple and intuitive user interface design, complex chest drainage data can be presented in an easy-to-understand way, reducing visual interference and allowing medical staff to view the data more attentively. At the same time, the optimized interface layout and operation process make single-finger operation more natural and comfortable, improving the user experience.
[0122] In one embodiment, after S5 or S6, the method further includes: after the sliding touch operation ends, maintaining the zoomed or translated display content, or after the sliding touch operation ends, waiting for a preset time to restore the display content to an initial state.
[0123] After performing a sliding touch operation, the reference coordinate system and the first curve corresponding to the initial chest drainage data are either scaled or translated. When the sliding touch operation is completed, there are two options for continuing the display. One is to maintain the scaled or translated state until manually restored, and the other is to wait for a preset time (for example, 10 seconds) before automatically restoring the screen to the initial state. Technicians in this field can choose one of the options for display as needed to meet the needs of different scenarios.
[0124] It can be seen from the above embodiments that the display method of chest drainage data provided by the present application can realize the scaling or translation of chest drainage data on the chest drainage device through a single-finger touch operation. The single-finger operation can reduce the errors caused by panic or uncoordinated operation when operating with both hands. Through the concise and intuitive single-finger operation design, medical staff can view the data more attentively and reduce the risk of misoperation. At the same time, the above algorithm is used for scaling or translation, which can finely display the treatment information, improve the accuracy and reliability of the data, and provide accurate basis for the historical situation of the treatment and the next treatment plan. In addition, the single-finger operation greatly saves the occupancy rate of system resources compared with the two-handed or two-finger operation, which is conducive to saving machine costs and improving efficiency.
[0125] Based on the method described in the above embodiment, this embodiment is further described from the perspective of a display device for chest drainage data. The device is located in a chest drainage device. The chest drainage device includes a touch screen, and the touch screen includes an interactive interface. Fig. 9 The display device for chest drainage data may include:
[0126] A first display module 10, configured to display a reference coordinate system and initial chest drainage data through the interactive interface, wherein the reference coordinate system includes a first reference coordinate axis along a first direction and a second reference coordinate axis along a second direction, wherein the first direction is perpendicular to the second direction, and the initial chest drainage data includes a first curve formed by connecting a plurality of first data points, wherein the plurality of first data points are displayed in the reference coordinate system based on a first pixel interval in the first direction;
[0127] A receiving module 20, configured to receive a sliding touch operation based on a single-finger operation through the interactive interface;
[0128] A determination module 30, configured to determine, in response to the sliding touch operation, a first coordinate of the initial touch point in the reference coordinate system and a second coordinate of the sliding touch point in the reference coordinate system;
[0129] A determination module 40, configured to determine whether the sliding touch operation is a zoom operation or a translation operation according to the first coordinate and the second coordinate;
[0130] A second display module 50 is used for, if the sliding touch operation is a zoom operation, determining a zoom factor according to the first coordinate and the second coordinate, updating the first reference scale of the first reference coordinate axis to a second reference scale based on the zoom factor to obtain an updated reference coordinate system, obtaining a second pixel interval in the first direction according to the zoom factor and the first pixel interval, and obtaining each second data point corresponding to each first data point based on the second pixel interval; displaying the updated reference coordinate system through the interactive interface, and displaying a second curve formed by connecting a plurality of second data points in the updated reference coordinate system to obtain zoomed first chest drainage data;
[0131] The third display module 60 is used for updating the first data point corresponding to the sliding touch point to the first data point corresponding to the initial touch point according to the first coordinate and the second coordinate if the sliding touch operation is a translation operation, and updating the coordinate label corresponding to the sliding touch point on the first reference coordinate axis to the coordinate label corresponding to the initial touch point on the first reference coordinate axis; based on the updated first data point corresponding to the sliding touch point, updating other first data points on the first curve to obtain third data points corresponding to each first data point, and based on the updated coordinate label corresponding to the sliding touch point, updating other coordinate labels on the first reference coordinate axis to obtain an updated reference coordinate system; displaying the updated reference coordinate system through the interactive interface, and displaying a third curve formed by connecting multiple third data points in the updated reference coordinate system to obtain the translated second chest drainage data.
[0132] In one embodiment, the determination module 40 includes:
[0133] A first acquisition unit, configured to acquire a first coordinate difference between the second coordinate and the first coordinate in the first direction, and acquire a second coordinate difference between the second coordinate and the first coordinate in the second direction;
[0134] A judging unit is configured to judge that the sliding touch operation is a translation operation if the first coordinate difference is greater than the second coordinate difference, and judge that the sliding touch operation is a zoom operation otherwise.
[0135] In one embodiment, the second display module 50 includes:
[0136] a first obtaining unit, configured to obtain a sliding distance in the second direction according to the second coordinate difference;
[0137] The first determining unit is used to determine the zoom factor according to the ratio of the sliding distance to a preset reference distance.
[0138] In one embodiment, the second display module 50 includes:
[0139] a second determining unit, configured to divide the first reference scale by the zoom factor, and determine the ratio as the second reference scale;
[0140] A second obtaining unit, configured to replace the scale values of the first reference scale with the scale values of the second reference scale to obtain an updated reference coordinate system;
[0141] a third determining unit, configured to multiply the first pixel interval by the scaling factor, and determine the product as the second pixel interval;
[0142] The third obtaining unit is used to arrange the first data points in the first direction according to the second pixel interval with the coordinate origin as the scaling center, so as to obtain the second data points corresponding to the first data points.
[0143] In one embodiment, the third display module 60 includes:
[0144] A second acquisition unit, configured to acquire a first video memory address corresponding to the initial touch point and a second video memory address corresponding to the sliding touch point according to the first coordinate and the second coordinate;
[0145] The first updating unit is used to update the data queue address associated with the first display memory address to be associated with the second display memory address, wherein the data queue address indicates a first data point corresponding to the initial touch point.
[0146] In one embodiment, the third display module 60 includes:
[0147] A third acquiring unit, configured to acquire a first coordinate difference between the second coordinate and the first coordinate in the first direction;
[0148] A second updating unit is used to update other first data points located at the initial positions to first data points located at the target positions, respectively, to obtain third data points corresponding to the first data points, wherein the coordinate difference between the target position and the corresponding initial position in the first direction is equal to the first coordinate difference;
[0149] The third updating unit is used to update other initial coordinate labels on the first reference coordinate axis to target coordinate labels respectively to obtain an updated reference coordinate system, wherein the difference between the target coordinate label and the corresponding initial coordinate label is equal to the first coordinate difference.
[0150] In one embodiment, the interaction interface includes a first interaction area and a second interaction area, and the device further includes:
[0151] A second receiving module, configured to receive, through the first interaction area, a configuration operation on a display parameter based on a single-finger operation;
[0152] The second determination module is configured to determine, in response to the configuration operation, a type, an interval, and a corresponding reference coordinate system of the chest drainage data to be displayed in the second interactive area.
[0153] Different from the prior art, the display device for chest drainage data provided in the present application can realize the scaling or translation of chest drainage data through a single-finger touch operation on the chest drainage device. The operation is simple, the details can be displayed finely, and work efficiency is improved, while ensuring the accuracy and reliability of the data.
[0154] Accordingly, the present application also provides an electronic device, such as Fig.10 As shown, the electronic device may include a radio frequency (RF) circuit 101, a memory 102 including one or more computer-readable storage media, an input unit 103, a display unit 104, a sensor 105, an audio circuit 106, a WiFi module 107, a processor 108 including one or more processing cores, and a power supply 109. Those skilled in the art will understand that Fig.10 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0155] The radio frequency circuit 101 can be used for receiving and sending signals during information transmission or calls. In particular, after receiving the downlink information of the base station, it is handed over to one or more processors 108 for processing; in addition, the data related to the uplink is sent to the base station. The memory 102 can be used to store software programs and modules. The processor 108 executes various functional applications and chest drainage data display by running the software programs and modules stored in the memory 102. The input unit 103 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to customer settings and function control.
[0156] The display unit 104 may be used to display information input by a client or information provided to a client and various graphical client interfaces of the server. These graphical client interfaces may be composed of graphics, texts, icons, videos and any combination thereof.
[0157] The electronic device may also include at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. The audio circuit 106 includes a speaker, which may provide an audio interface between the user and the electronic device.
[0158] WiFi is a wireless transmission technology. Electronic devices can help customers send and receive, browse web pages and follow streaming media through WiFi module 107. It provides customers with wireless broadband Internet follow-up. Fig.10 A WiFi module 107 is shown, but it is understandable that it is not an essential component of the electronic device and can be omitted as needed without changing the essence of the application.
[0159] The processor 108 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire mobile phone. It executes various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the memory 102 and calling data stored in the memory 102, thereby monitoring the mobile phone as a whole.
[0160] The electronic device also includes a power source 109 (such as a battery) for supplying power to various components. Preferably, the power source can be logically connected to the processor 108 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions.
[0161] Although not shown, the electronic device may also include a camera, a Bluetooth module, etc., which will not be described in detail here. Specifically in this embodiment, the processor 108 in the server will load the executable files corresponding to the processes of one or more applications into the memory 102 according to the following instructions, and the processor 108 will run the application stored in the memory 102, thereby realizing the following functions:
[0162] displaying a reference coordinate system and initial chest drainage data through the interactive interface, wherein the reference coordinate system includes a first reference coordinate axis along a first direction and a second reference coordinate axis along a second direction, wherein the first direction is perpendicular to the second direction, and the initial chest drainage data includes a first curve formed by connecting a plurality of first data points, wherein the plurality of first data points are displayed in the reference coordinate system based on a first pixel interval in the first direction;
[0163] Receiving a sliding touch operation based on a single-finger operation through the interactive interface;
[0164] In response to the sliding touch operation, determining a first coordinate of an initial touch point in the reference coordinate system and a second coordinate of the sliding touch point in the reference coordinate system;
[0165] Determining, according to the first coordinate and the second coordinate, whether the sliding touch operation is a zoom operation or a translation operation;
[0166] If the sliding touch operation is a zoom operation, a zoom factor is determined according to the first coordinate and the second coordinate, and based on the zoom factor, a first reference scale of the first reference coordinate axis is updated to a second reference scale to obtain an updated reference coordinate system, and a second pixel interval in the first direction is obtained according to the zoom factor and the first pixel interval, and each second data point corresponding to each first data point is obtained based on the second pixel interval; the updated reference coordinate system is displayed through the interactive interface, and a second curve formed by connecting multiple second data points is displayed in the updated reference coordinate system to obtain zoomed first chest drainage data;
[0167] If the sliding touch operation is a translation operation, based on the first coordinate and the second coordinate, the first data point corresponding to the sliding touch point is updated to the first data point corresponding to the initial touch point, and the coordinate label corresponding to the sliding touch point on the first reference coordinate axis is updated to the coordinate label corresponding to the initial touch point on the first reference coordinate axis; based on the updated first data point corresponding to the sliding touch point, other first data points on the first curve are updated to obtain third data points corresponding to each first data point, and based on the updated coordinate label corresponding to the sliding touch point, other coordinate labels on the first reference coordinate axis are updated to obtain an updated reference coordinate system; the updated reference coordinate system is displayed through the interactive interface, and a third curve formed by connecting multiple third data points is displayed in the updated reference coordinate system to obtain the translated second chest drainage data.
[0168] The electronic device provided in the present application can realize zooming or translating of chest drainage data on a chest drainage device through a single-finger touch operation. The operation is simple, details can be displayed in detail, work efficiency is improved, and the accuracy and reliability of the data are guaranteed.
[0169] In the above embodiments, the description of each embodiment has its own emphasis. For the part that is not described in detail in a certain embodiment, please refer to the detailed description above and will not be repeated here.
[0170] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0171] To this end, an embodiment of the present application provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to implement the following functions:
[0172] displaying a reference coordinate system and initial chest drainage data through the interactive interface, wherein the reference coordinate system includes a first reference coordinate axis along a first direction and a second reference coordinate axis along a second direction, wherein the first direction is perpendicular to the second direction, and the initial chest drainage data includes a first curve formed by connecting a plurality of first data points, wherein the plurality of first data points are displayed in the reference coordinate system based on a first pixel interval in the first direction;
[0173] Receiving a sliding touch operation based on a single-finger operation through the interactive interface;
[0174] In response to the sliding touch operation, determining a first coordinate of an initial touch point in the reference coordinate system and a second coordinate of the sliding touch point in the reference coordinate system;
[0175] Determining, according to the first coordinate and the second coordinate, whether the sliding touch operation is a zoom operation or a translation operation;
[0176] If the sliding touch operation is a zoom operation, a zoom factor is determined according to the first coordinate and the second coordinate, and based on the zoom factor, a first reference scale of the first reference coordinate axis is updated to a second reference scale to obtain an updated reference coordinate system, and a second pixel interval in the first direction is obtained according to the zoom factor and the first pixel interval, and each second data point corresponding to each first data point is obtained based on the second pixel interval; the updated reference coordinate system is displayed through the interactive interface, and a second curve formed by connecting multiple second data points is displayed in the updated reference coordinate system to obtain zoomed first chest drainage data;
[0177] If the sliding touch operation is a translation operation, based on the first coordinate and the second coordinate, the first data point corresponding to the sliding touch point is updated to the first data point corresponding to the initial touch point, and the coordinate label corresponding to the sliding touch point on the first reference coordinate axis is updated to the coordinate label corresponding to the initial touch point on the first reference coordinate axis; based on the updated first data point corresponding to the sliding touch point, other first data points on the first curve are updated to obtain third data points corresponding to each first data point, and based on the updated coordinate label corresponding to the sliding touch point, other coordinate labels on the first reference coordinate axis are updated to obtain an updated reference coordinate system; the updated reference coordinate system is displayed through the interactive interface, and a third curve formed by connecting multiple third data points is displayed in the updated reference coordinate system to obtain the translated second chest drainage data.
[0178] The computer-readable storage medium provided in the present application can realize the scaling or translation of chest drainage data on the chest drainage device through a single-finger touch operation. The operation is simple, the details can be displayed finely, and the work efficiency is improved, while ensuring the accuracy and reliability of the data.
[0179] The above is a detailed introduction to a method, device, electronic device and computer-readable storage medium for displaying chest drainage data provided in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the technical solutions and core ideas of the present application. Ordinary technicians in this field should understand that they can still modify the technical solutions recorded in the aforementioned embodiments, or replace some of the technical features therein by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for displaying chest drainage data, characterized in that: Applicable to a chest drainage device, the chest drainage device includes a touch display screen, the touch display screen includes an interactive interface, and the method includes: displaying a reference coordinate system and initial chest drainage data through the interactive interface, wherein the reference coordinate system includes a first reference coordinate axis along a first direction and a second reference coordinate axis along a second direction, wherein the first direction is perpendicular to the second direction, and the initial chest drainage data includes a first curve formed by connecting a plurality of first data points, wherein the plurality of first data points are displayed in the reference coordinate system based on a first pixel interval in the first direction; Receiving a sliding touch operation based on a single-finger operation through the interactive interface; In response to the sliding touch operation, determining a first coordinate of an initial touch point in the reference coordinate system and a second coordinate of the sliding touch point in the reference coordinate system; Determining, according to the first coordinate and the second coordinate, whether the sliding touch operation is a zoom operation or a translation operation; If the sliding touch operation is a zoom operation, a zoom factor is determined according to the first coordinate and the second coordinate, and based on the zoom factor, a first reference scale of the first reference coordinate axis is updated to a second reference scale to obtain an updated reference coordinate system, and a second pixel interval in the first direction is obtained according to the zoom factor and the first pixel interval, and each second data point corresponding to each first data point is obtained based on the second pixel interval; the updated reference coordinate system is displayed through the interactive interface, and a second curve formed by connecting multiple second data points is displayed in the updated reference coordinate system to obtain zoomed first chest drainage data; If the sliding touch operation is a translation operation, based on the first coordinate and the second coordinate, the first data point corresponding to the sliding touch point is updated to the first data point corresponding to the initial touch point, and the coordinate label corresponding to the sliding touch point on the first reference coordinate axis is updated to the coordinate label corresponding to the initial touch point on the first reference coordinate axis; based on the updated first data point corresponding to the sliding touch point, other first data points on the first curve are updated to obtain third data points corresponding to each first data point, and based on the updated coordinate label corresponding to the sliding touch point, other coordinate labels on the first reference coordinate axis are updated to obtain an updated reference coordinate system; the updated reference coordinate system is displayed through the interactive interface, and a third curve formed by connecting multiple third data points is displayed in the updated reference coordinate system to obtain the translated second chest drainage data.
2. The method for displaying chest drainage data according to claim 1, characterized in that: The step of determining, according to the first coordinate and the second coordinate, whether the sliding touch operation is a zoom operation or a translation operation includes: Acquire a first coordinate difference between the second coordinate and the first coordinate in the first direction, and acquire a second coordinate difference between the second coordinate and the first coordinate in the second direction; If the first coordinate difference is greater than the second coordinate difference, the sliding touch operation is determined to be a translation operation; otherwise, the sliding touch operation is determined to be a zoom operation.
3. The method for displaying chest drainage data according to claim 2, characterized in that: The step of determining the zoom factor according to the first coordinate and the second coordinate comprises: obtaining a sliding distance in the second direction according to the second coordinate difference; The zoom factor is determined according to a ratio of the sliding distance to a preset reference distance.
4. The method for displaying chest drainage data according to claim 1, characterized in that: The steps of updating the first reference scale of the first reference coordinate axis to a second reference scale based on the zoom factor to obtain an updated reference coordinate system, obtaining a second pixel interval in the first direction according to the zoom factor and the first pixel interval, and obtaining second data points corresponding to the first data points based on the second pixel interval include: Dividing the first reference scale by the zoom factor, and determining the ratio as the second reference scale; Replacing the scale values of the first reference scale with the scale values of the second reference scale to obtain an updated reference coordinate system; multiplying the first pixel interval by the zoom factor, and determining the product as the second pixel interval; Taking the coordinate origin as the scaling center, the first data points are arranged in the first direction according to the second pixel interval to obtain the second data points corresponding to the first data points.
5. The method for displaying chest drainage data according to claim 1, characterized in that: The step of updating the first data point corresponding to the sliding touch point to the first data point corresponding to the initial touch point according to the first coordinate and the second coordinate includes: Acquire a first video memory address corresponding to the initial touch point and a second video memory address corresponding to the sliding touch point according to the first coordinate and the second coordinate; The data queue address associated with the first display memory address is updated to be associated with the second display memory address, the data queue address indicating a first data point corresponding to the initial touch point.
6. The method for displaying chest drainage data according to claim 1, characterized in that: The step of updating other first data points on the first curve based on the updated first data point corresponding to the sliding touch point to obtain third data points corresponding to the first data points, and updating other coordinate labels on the first reference coordinate axis based on the updated coordinate label corresponding to the sliding touch point to obtain an updated reference coordinate system includes: Acquire a first coordinate difference between the second coordinate and the first coordinate in the first direction; updating the other first data points at the initial positions to the first data points at the target positions respectively, to obtain third data points corresponding to the first data points, wherein the coordinate difference between the target position and the corresponding initial position in the first direction is equal to the first coordinate difference; The other initial coordinate labels on the first reference coordinate axis are updated to target coordinate labels respectively to obtain an updated reference coordinate system, wherein the difference between the target coordinate label and the corresponding initial coordinate label is equal to the first coordinate difference.
7. The method for displaying chest drainage data according to claim 1, characterized in that: The interactive interface includes a first interactive area and a second interactive area, and before the step of displaying the reference coordinate system and the initial chest drainage data through the interactive interface, further includes: Receiving, through the first interactive area, a configuration operation of a display parameter based on a single-finger operation; In response to the configuration operation, the type, interval, and corresponding reference coordinate system of the chest drainage data to be displayed in the second interactive area are determined.
8. A display device for chest drainage data, characterized in that: The device is provided on a chest drainage device, wherein the chest drainage device includes a touch screen, and the touch screen includes an interactive interface. The device includes: a first display module, configured to display a reference coordinate system and initial chest drainage data through the interactive interface, the reference coordinate system comprising a first reference coordinate axis along a first direction and a second reference coordinate axis along a second direction, the first direction being perpendicular to the second direction, the initial chest drainage data comprising a first curve formed by connecting a plurality of first data points, the plurality of first data points being displayed in the reference coordinate system based on a first pixel interval in the first direction; A receiving module, used for receiving a sliding touch operation based on a single-finger operation through the interactive interface; a determination module, configured to determine, in response to the sliding touch operation, a first coordinate of the initial touch point in the reference coordinate system and a second coordinate of the sliding touch point in the reference coordinate system; A determination module, configured to determine whether the sliding touch operation is a zoom operation or a translation operation according to the first coordinate and the second coordinate; a second display module, for, if the sliding touch operation is a zoom operation, determining a zoom factor according to the first coordinate and the second coordinate, updating the first reference scale of the first reference coordinate axis to a second reference scale based on the zoom factor to obtain an updated reference coordinate system, obtaining a second pixel interval in the first direction according to the zoom factor and the first pixel interval, and obtaining each second data point corresponding to each first data point based on the second pixel interval; displaying the updated reference coordinate system through the interactive interface, and displaying a second curve formed by connecting a plurality of second data points in the updated reference coordinate system to obtain zoomed first chest drainage data; The third display module is used for updating the first data point corresponding to the sliding touch point to the first data point corresponding to the initial touch point according to the first coordinate and the second coordinate if the sliding touch operation is a translation operation, and updating the coordinate label corresponding to the sliding touch point on the first reference coordinate axis to the coordinate label corresponding to the initial touch point on the first reference coordinate axis; based on the updated first data point corresponding to the sliding touch point, updating other first data points on the first curve to obtain third data points corresponding to each first data point, and based on the updated coordinate label corresponding to the sliding touch point, updating other coordinate labels on the first reference coordinate axis to obtain an updated reference coordinate system; displaying the updated reference coordinate system through the interactive interface, and displaying a third curve formed by connecting multiple third data points in the updated reference coordinate system to obtain the translated second chest drainage data.
9. An electronic device, characterized in that: It comprises a memory and a processor; the memory stores an application program, and the processor is used to run the application program in the memory to execute the steps in the method for displaying chest drainage data according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the steps in the method for displaying chest drainage data according to any one of claims 1 to 7.