A patient drug information processing method and system for thoracic surgery
By analyzing the heart rate curve of thoracic surgery patients, calculating the abnormal heart rate index and bradycardia reference index, and combining the overall change trend, the abnormal medication index is obtained, which solves the problem of misjudgment of heart rate changes caused by non-drug effects in the existing technology, and realizes chest monitoring. Accurate assessment of medication response and safe medication adjustment in surgical patients.
Patent Information
- Application Number
- CN202410932834.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-07-12
AI Technical Summary
The existing technology easily misjudges heart rate changes caused by non-drug influences as abnormal drug reactions of patients, making it difficult to accurately assess drug use in thoracic surgery patients.
By obtaining the heart rate curve of thoracic surgery patients in real time, marking the medication time, and calculating the abnormal heart rate index and bradycardia reference index based on the heart rate changes, combined with the overall change trend and stability, the abnormal medication index is obtained to accurately evaluate the patient's medication response. .
It achieves accurate assessment of medication responses of thoracic surgery patients, reduces misjudgments influenced by non-drug factors, and improves the accuracy and safety of medication adjustments.
Smart Images

Figure CN118486422B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of drug reaction analysis, and in particular to a method and system for processing patient drug information for thoracic surgery. Background Art
[0002] During the intraoperative or postoperative recovery process, patients undergoing thoracic surgery have a more active nervous system due to pain, anxiety or complications, which can cause their heart rate to continue to rise. Appropriate medication is usually required to regulate the heart rate to ensure the safety and comfort of the patient. During treatment, patients are usually started with a lower dose and closely monitored to adjust the drug dose in a timely manner based on their heart rate change symptoms.
[0003] As treatment progresses, it may be necessary to continuously increase the drug dosage to achieve better therapeutic effects; however, factors such as the accumulation of drugs in the body, continuous adjustment of drug dosages, or the patient's drug sensitivity may cause the patient's heart rate to decrease abnormally faster, increasing the burden on the heart. Therefore, the patient's adverse drug reactions are usually assessed by monitoring changes in heart rate, and the dosage is adjusted in time; however, some patients may also have an abnormally faster heart rate decrease rate due to random changes in body position, disorders of the autonomic nervous system, or cardiovascular diseases, which can easily misjudge heart rate changes caused by non-drug influences as abnormal drug reactions in patients. Summary of the invention
[0004] In order to solve the technical problem that the existing technology easily misjudges the heart rate changes caused by non-drug effects as abnormal drug reactions of patients, the purpose of the present invention is to provide a patient drug information processing method and system for thoracic surgery. The technical solutions adopted are as follows:
[0005] The present invention provides a method for processing patient drug information for thoracic surgery, the method comprising:
[0006] Acquire the heart rate curve of the thoracic surgery patient in real time, and mark all the medication taking times of the thoracic surgery patient in the heart rate curve;
[0007] In the heart rate curve, according to the heart rate changes before and after each medication time, the number of abnormal heart rate changes and the drug accumulation period of the thoracic surgery patient are obtained; according to the consistency of the heart rate changes after the adjacent medication times in the drug accumulation period, combined with the number of abnormal heart rate changes, the heart rate abnormality index of the thoracic surgery patient is obtained;
[0008] After each medication taking moment, all bradycardia curve segments in the heart rate curve are obtained according to the fluctuation of the heart rate curve; and a bradycardia reference index of the thoracic surgery patient is obtained according to the change difference between adjacent bradycardia curve segments;
[0009] According to the overall change trend of the heart rate curve and the stability after each medication, combined with the heart rate abnormality index and the bradycardia reference index, the medication abnormality index of the thoracic surgery patient at the current moment is obtained.
[0010] Furthermore, the method for obtaining the number of abnormal changes in heart rate includes:
[0011] Segmenting the heart rate curve according to fluctuations of the heart rate curve;
[0012] According to the heart rate data in the segment to which each medication taking time belongs and the heart rate data in the next adjacent segment corresponding to the segment to which the medication taking time belongs, the heart rate change rate after each medication taking time and before the next adjacent medication taking time is obtained;
[0013] According to the deviation of the heart rate change rate, it is evaluated whether abnormal heart rate changes occur after each medication, and the number of abnormal heart rate changes in the heart rate curve is obtained.
[0014] Furthermore, the method for obtaining the heart rate change rate after each medication taking time and before the next adjacent medication taking time includes:
[0015] Between each medication time and the next adjacent medication time, the maximum heart rate data in the segment to which each medication time belongs is used as the pre-medication reference heart rate, and the average of the heart rate data in the next adjacent segment to which each medication time belongs is used as the post-medication reference heart rate;
[0016] The duration between the sampling time corresponding to the reference heart rate before medication and the sampling time corresponding to the last heart rate data in the next adjacent segment is taken as the duration of drug effect;
[0017] According to the difference between the pre-drug reference heart rate and the post-drug reference heart rate, combined with the drug effect duration, the heart rate change rate after each medication moment and before the next adjacent medication moment is obtained.
[0018] Furthermore, the method for obtaining the drug accumulation period includes:
[0019] In the heart rate curve, the time of taking medicine before the first abnormal change in heart rate occurs is taken as the starting time of the medicine accumulation period, and the period from the starting time to the end time of the heart rate curve is taken as the medicine accumulation period.
[0020] Furthermore, the method for obtaining the abnormal heart rate index includes:
[0021] Obtaining a drug impact parameter according to the difference between the number of abnormal heart rate changes and the total number of drug taking times during the drug accumulation period;
[0022] During the drug accumulation period, according to the consistency of the differences in all adjacent heart rate change rates, a consistent parameter of the change trend of the heart rate of the thoracic surgery patient after each medication is obtained;
[0023] The abnormal heart rate index is obtained according to the drug influence parameter and the change trend consistent parameter, and the drug influence parameter and the change trend consistent parameter are both positively correlated with the abnormal heart rate index.
[0024] Furthermore, the method for obtaining the bradycardia curve segment includes:
[0025] In the heart rate curve, between two adjacent medication times, the continuous heart rate curve segments that are lower than the preset standard heart rate are taken as bradycardia curve segments.
[0026] Furthermore, the method for obtaining the bradycardia reference index includes:
[0027] Obtaining the minimum heart rate value in each bradycardia curve segment; obtaining a first reference index according to the difference between the minimum heart rate values in adjacent bradycardia curve segments;
[0028] Obtaining a second reference index according to a difference in corresponding durations of adjacent bradycardia curve segments;
[0029] According to the first reference index and the second reference index, the reference index corresponding to the adjacent bradycardia curve segment is obtained; and the reference index of the bradycardia of the thoracic surgery patient is obtained by combining the reference indexes of all adjacent bradycardia curve segments.
[0030] Furthermore, the method for obtaining the abnormal medication index includes:
[0031] Obtain the upper envelope and the lower envelope of the heart rate curve; obtain the downward trend parameter according to the overall change trend of the upper envelope; obtain the post-drug stability parameter according to the fluctuation change of the lower envelope;
[0032] According to the downward trend parameter and the post-drug stability parameter, the abnormal drug impact index of the thoracic surgery patient is obtained, the downward trend parameter is positively correlated with the abnormal drug impact index, and the post-drug stability parameter is negatively correlated with the abnormal drug impact index;
[0033] According to the abnormal medication impact index, the abnormal heart rate index and the bradycardia reference index, the abnormal medication index of thoracic surgery patients is obtained; the abnormal medication impact index, the abnormal heart rate index and the bradycardia reference index are all positively correlated with the abnormal medication index.
[0034] Furthermore, the method for obtaining the downward trend parameter and the post-drug stability parameter includes:
[0035] In the upper envelope, the overall slope of the upper envelope corresponding to the drug accumulation period is used as the first slope, and the overall slope of the upper envelope corresponding to the non-drug accumulation period is used as the second slope; according to the difference between the first slope and the second slope, a downward trend parameter is obtained;
[0036] In the lower envelope, the overall slope of the lower envelope corresponding to the drug accumulation period is taken as the third slope, and the overall slope of the lower envelope corresponding to the non-drug accumulation period is taken as the fourth slope; based on the difference between the third slope and the fourth slope, the post-drug stability parameter is obtained.
[0037] The present invention also proposes a patient drug information processing system for thoracic surgery, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of a patient drug information processing method for thoracic surgery when executing the computer program.
[0038] The present invention has the following beneficial effects:
[0039] The present invention obtains the heart rate curve of thoracic surgery patients in real time, and marks all the medication times of thoracic surgery patients in the heart rate curve, so as to facilitate the subsequent analysis of the heart rate changes after each medication; in the heart rate curve, according to the heart rate changes before and after each medication time, the number of abnormal heart rate changes and the medication accumulation period of the thoracic surgery patients are obtained; according to the consistency of the heart rate changes after adjacent medication times in the medication accumulation period, combined with the number of abnormal heart rate changes, the heart rate abnormality index of the thoracic surgery patients is obtained, and the heart rate abnormality index indirectly reflects the possibility of adverse medication reactions of the patients; after each medication time, according to the fluctuation changes of the heart rate curve, the heart rate curve is obtained. All bradycardia curve segments in the line, bradycardia phenomenon is also a symptom of adverse drug reaction of patients, which is convenient for further evaluating the adverse drug reaction of patients; according to the change difference between adjacent bradycardia curve segments, the bradycardia reference index of thoracic surgery patients is obtained; according to the overall change trend of the heart rate curve and the stability after each medication, the overall change trend can evaluate the possibility of patients entering the drug accumulation period and being affected by drugs, and the stability after each medication can further evaluate whether the patient is affected by bradycardia, and then combine the abnormal heart rate index and the bradycardia reference index to obtain the abnormal drug index of thoracic surgery patients at the current moment. The present invention first determines whether the patient has abnormal heart rate changes during the medication process by analyzing the heart rate change characteristics of the patient before and after each medication, and then analyzes whether the patient has adverse drug reaction symptoms of bradycardia and the heart rate change trend of the patient under long-term medication, while excluding the influence of non-drug factors, accurately evaluating whether the patient has abnormal drug reaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0041] Figure 1 A flowchart of a method for processing patient drug information for thoracic surgery provided by one embodiment of the present invention;
[0042] Figure 2 A flowchart of a method for obtaining an abnormal heart rate index provided by an embodiment of the present invention;
[0043] Figure 3 A flowchart of a method for obtaining a bradycardia reference index provided by an embodiment of the present invention;
[0044] Figure 4 The present invention provides a flowchart of a method for obtaining an abnormal medication index according to an embodiment of the present invention. DETAILED DESCRIPTION
[0045] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the patient drug information processing method and system for thoracic surgery proposed by the present invention, its specific implementation method, structure, features and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0046] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0047] The following is a detailed description of a specific solution of a patient drug information processing method and system for thoracic surgery provided by the present invention in conjunction with the accompanying drawings.
[0048] See also Figure 1 , which shows a flow chart of a method for processing patient drug information for thoracic surgery provided by an embodiment of the present invention, specifically comprising:
[0049] Step S1, obtaining the heart rate curve of the thoracic surgery patient in real time, and marking all the medication taking times of the thoracic surgery patient in the heart rate curve.
[0050] An implementation scenario targeted by an embodiment of the present invention is that after a patient takes a beta-blocker, the patient's adverse drug reactions are evaluated based on changes in the patient's heart rate before and after taking the drug, thereby prompting relevant medical personnel to evaluate and adjust the medication regimen.
[0051] In one embodiment of the present invention, in order to monitor the heart rate changes of thoracic surgery patients in real time to evaluate whether the patients have adverse drug reactions, an electrocardiogram monitor is first used to monitor and collect the patient's heart rate in real time, and a heart rate curve is constructed according to the collection sequence, where the collection frequency is 10 seconds each time; in order to evaluate whether the patient has adverse drug reactions, the embodiment of the present invention further marks all the medication times of thoracic surgery patients in the heart rate curve, so as to facilitate subsequent analysis of heart rate changes after each medication.
[0052] It should be noted that collecting and constructing heart rate curves is an existing technology well known to technical personnel in this field. Implementers can also set the sampling frequency by themselves, or use other heart rate monitoring devices such as wearable monitoring bracelets, which can integrate medication reminder services, thereby simultaneously recording the medication time in the heart rate curve.
[0053] Step S2, in the heart rate curve, according to the heart rate changes before and after each medication time, obtain the number of abnormal heart rate changes and the drug accumulation period of the thoracic surgery patient; according to the consistency of the heart rate changes after adjacent medication times in the drug accumulation period, combined with the number of abnormal heart rate changes, obtain the abnormal heart rate index of the thoracic surgery patient.
[0054] Considering that within a period of time after taking the medicine, the patient's heart rate will decrease and return to a normal stable level; and ideally, the heart rate decrease rate of the same patient after each medication should be relatively close or similar. If there is a large difference in the relative overall decrease level, it can be considered that the patient's heart rate changes abnormally due to factors such as adverse drug reaction, own disease or body position change; and then, it can be assessed whether the patient has entered the drug accumulation period based on the abnormal changes in heart rate; during the drug accumulation period, the drug residues in the patient's body continue to accumulate, and the rate of decrease in the heart rate accelerates relatively after a sudden change in the rate of decrease.
[0055] Preferably, in one embodiment of the present invention, considering that the heart rate before and after taking the medicine usually has certain fluctuation characteristics, the heart rate curve can be segmented according to the fluctuation, so as to facilitate the evaluation of the heart rate change before and after taking the medicine according to the heart rate segments with similar fluctuations before and after taking the medicine; considering that the heart rate change after each medication should be similar under ideal conditions, if there is an obvious deviation, it means that the heart rate changes abnormally; therefore, the method for obtaining the number of abnormal changes in the heart rate includes:
[0056] The heart rate curve is segmented according to its fluctuations;
[0057] According to the heart rate data in the segment to which each medication taking time belongs and the heart rate data in the next adjacent segment to which the corresponding medication taking time belongs, the heart rate change rate after each medication taking time and before the next adjacent medication taking time is obtained;
[0058] Based on the deviation of the heart rate change rate, evaluate whether abnormal heart rate changes occur after each medication, and obtain the number of abnormal heart rate changes in the heart rate curve.
[0059] Specifically, in one embodiment of the present invention, considering that the Adaptive Piecewise Constant Approximation (APCA) algorithm can be segmented according to the fluctuation of the data, and a constant value is used in each segment to approximate the fluctuation of the data, the APCA algorithm is used to segment the heart rate curve; the APCA algorithm is a prior art well known to those skilled in the art and will not be described in detail here. In other embodiments of the present invention, the implementer may also obtain the slope at each heart rate data point. When the slope changes significantly, it can be considered that the trend of the heart rate curve has turned or mutated, and the segmentation points are set for such heart rate data points for segmentation; the implementer may also use other segmentation methods to divide the heart rate data with similar fluctuation trends into the same segment, which will not be described in detail here.
[0060] After the heart rate curve is segmented, considering that the heart rate data in the next adjacent segment of the segment to which the medication time belongs gradually stabilizes after decreasing, first, specifically between each medication time and the next adjacent medication time, the maximum value of the heart rate data in the segment to which the medication time belongs is used as the pre-drug reference heart rate, and the average value of the heart rate data in the next adjacent segment to which the medication time belongs is used as the post-drug reference heart rate; in other embodiments of the present invention, the implementer may also use the last heart rate data in the next adjacent segment to which the medication time belongs as the post-drug reference heart rate; the length of time between the corresponding sampling times of the pre-drug reference heart rate and the last heart rate data in the next adjacent segment to which the medication time belongs is used as the drug efficacy duration, and the difference between the pre-drug reference heart rate and the post-drug reference heart rate is divided by the drug efficacy duration to obtain the heart rate change rate after each medication time and before the next adjacent medication time.
[0061] It should be noted that the heart rate change rate refers to the rate at which the patient's heart rate drops for the first time after each medication time between two adjacent medication times. It only reflects the patient's heart rate drop after this medication, and does not include and does not indicate the heart rate drop after subsequent medications. That is, the heart rate changes after each medication are analyzed for the time period from each medication to the next medication time.
[0062] Then, based on the deviation of the heart rate change rate from the average level, it is evaluated whether there is an abnormal change in heart rate; as an example: ,in, The number of abnormal changes in heart rate; is the counting function, is the total number of medication times, i.e. the total number of medication times; For the The rate of change of heart rate after taking the medicine; is the mean of the heart rate change rates after all medication times; when the heart rate change rate after a medication time is greater than the mean of the amplified heart rate change rate, it can be considered that there is a significant deviation in the heart rate change rate, that is, an abnormal heart rate change occurs; To amplify the reference coefficient, 1.2 is taken in the embodiment of the present invention to amplify the average level. In other embodiments of the present invention, the implementer may also select other values greater than 1 according to specific circumstances.
[0063] Preferably, in one embodiment of the present invention, the method for obtaining the drug accumulation period includes: in the heart rate curve, taking the time of the previous medication when the abnormal heart rate change first occurred as the starting time of the drug accumulation period, and taking the time period from the starting time to the end time of the heart rate curve as the drug accumulation period.
[0064] In other embodiments of the present invention, the implementer may also sort the heart rate change rate in chronological order to obtain a first-order difference sequence, and when the first maximum value in the first-order difference sequence corresponds to the previous medication time as the starting time of the drug accumulation period, the time period from the starting time to the end time of the heart rate curve is taken as the drug accumulation period.
[0065] Considering that the more times abnormal heart rate changes occur during the drug accumulation period, the greater the possibility that the abnormal heart rate changes are caused by drugs; considering that during the drug accumulation period, the more consistent the trend of the patient's heart rate decrease rate after two adjacent medication times, it means that the patient's heart rate decrease rate is accelerating, and the influence of random external factors such as disease or body position changes may only lead to non-continuous sudden changes in the heart rate decrease. Therefore, the influence of non-drug factors can be excluded to evaluate the patient's heart rate abnormality index; the heart rate abnormality index indirectly reflects the possibility of adverse drug reaction in the patient, so as to further analyze and evaluate the patient's medication abnormality index. The larger the heart rate abnormality index, the faster the heart rate decrease rate after each medication after the patient has entered the drug accumulation period, and at this time, more attention should be paid to the patient's heart rate changes.
[0066] Preferably, in one embodiment of the present invention, the method for obtaining the abnormal heart rate index includes:
[0067] See also Figure 2 , which shows a flow chart of a method for obtaining an abnormal heart rate index provided by an embodiment of the present invention;
[0068] Step S201, obtaining a drug impact parameter according to the difference between the number of abnormal heart rate changes and the total number of drug taking times during the drug accumulation period.
[0069] If the number of abnormal heart rate changes during the drug accumulation period is greater, the confidence that the patient is in the drug accumulation period is greater, and the credibility of the abnormal heart rate index for subsequent analysis of the patient is higher; as an example, the ratio of the number of abnormal heart rate changes to the total number of medication times during the drug accumulation period is used as the drug impact parameter, where the number of abnormal heart rate changes is used as the numerator and the total number of medication times during the drug accumulation period is used as the denominator. The larger the ratio, the larger the drug impact parameter. In other embodiments of the present invention, the implementer may also negatively correlate the absolute value of the difference between the number of abnormal heart rate changes and the total number of medication times during the drug accumulation period. The smaller the difference, the larger the drug impact parameter.
[0070] Step S202, during the drug accumulation period, according to the consistency of the differences in all adjacent heart rate change rates, obtain the consistent parameter of the change trend of the heart rate of the thoracic surgery patient after each medication.
[0071] Taking into account that the more consistent the difference in the heart rate change rate after adjacent medication times is, the more it indicates that the patient's heart rate change rate is constantly decreasing, and the amplitude of each decrease is similar, which means that during the drug accumulation period, the heart rate decrease rate after each medication of the patient is also gradually becoming faster, and the more it conforms to the characteristics of heart rate changes affected by the drug during the drug accumulation period, the larger the consistent parameter of the heart rate change trend after each medication of the patient is.
[0072] As an example, the calculation formula for the trend consistency parameter is:
[0073] ;in, is the parameter with consistent changing trend; The natural constant The exponential function with base ; The total number of times the drug is taken during the drug accumulation period, that is, the total number of times the drug is taken during the drug accumulation period; It is the serial number of the time of taking the medicine during the drug accumulation period; During the drug accumulation period, The heart rate change rate after taking the medicine is The difference in heart rate change rate between the times of taking the medicine; It is the average of the differences in the heart rate change rates after all adjacent medication times during the drug accumulation period; is the absolute value symbol; in this formula, The smaller the value, the more consistent the change trend is, so negative correlation is used to map it to In other embodiments of the present invention, the implementer may also use inverse operations or other basic mathematical means and related mapping methods to adjust the logic, which will not be described in detail here.
[0074] Step S203, obtaining the abnormal heart rate index according to the drug effect parameter and the change trend consistent parameter, wherein the drug effect parameter and the change trend consistent parameter are both positively correlated with the abnormal heart rate index.
[0075] In one embodiment of the present invention, the drug impact parameter and the change trend consistent parameter are multiplied and combined to obtain the abnormal heart rate index; in other embodiments of the present invention, the implementer may also combine the two by addition or weighted summation to obtain the abnormal heart rate index, which is not repeated here.
[0076] Step S3, after each medication time, according to the fluctuation of the heart rate curve, all bradycardia curve segments in the heart rate curve are obtained; according to the change difference between adjacent bradycardia curve segments, the bradycardia reference index of the thoracic surgery patient is obtained.
[0077] Taking into account that some patients are more sensitive to drugs, there will be a certain bradycardia due to the increase and accumulation of drug dosages, that is, the heart rate accelerates after taking the medicine and then drops to the normal heart rate level and then continues to decline. It takes a period of relief before it slowly returns to normal levels and stabilizes. Bradycardia is a symptom of poor drug reaction in patients. By analyzing and determining the bradycardia in the heart rate curve, relevant parameters can be evaluated to determine the patient's adverse drug reaction.
[0078] Therefore, all bradycardia curve segments in the heart rate curve are first obtained, and then the bradycardia reference index of thoracic surgery patients is obtained according to the change difference between adjacent bradycardia curve segments.
[0079] Preferably, in one embodiment of the present invention, the method for obtaining a bradycardia curve segment comprises: in the heart rate curve, between two adjacent medication times, taking a continuous heart rate curve segment that is lower than a preset standard heart rate as a bradycardia curve segment.
[0080] Among them, the preset standard heart rate is the normal heart rate level of the human body, and in one embodiment of the present invention, it is specifically set to 60. The implementer can also set it to other heart rate values within the normal heart rate range according to the patient's physical condition.
[0081] Preferably, in one embodiment of the present invention, the method for obtaining the bradycardia reference index includes:
[0082] See also Figure 3 , which shows a flow chart of a method for obtaining a bradycardia reference index provided by an embodiment of the present invention;
[0083] Step S301, obtaining the minimum heart rate value in each bradycardia curve segment; obtaining a first reference index according to the difference between the minimum heart rate values in adjacent bradycardia curve segments.
[0084] If the heart rate drop amplitude becomes larger and larger in adjacent bradycardia phenomena, it means that the bradycardia is more serious. Therefore, in one embodiment of the present invention, the minimum heart rate value in each bradycardia curve segment is first obtained. The minimum heart rate value reflects the drop amplitude of the heart rate in each bradycardia process. If the difference between the minimum heart rate values in adjacent bradycardia curve segments becomes larger and larger, it means that the bradycardia is more serious, the corresponding first reference index becomes larger and larger, and the bradycardia reference index evaluated subsequently also becomes larger and larger.
[0085] Step S302, obtaining a second reference index according to the difference in the corresponding durations of adjacent bradycardia curve segments.
[0086] If bradycardia occurs continuously, the duration of bradycardia becomes longer and longer, which also indicates that the bradycardia is more serious. Therefore, in one embodiment of the present invention, a second reference index is obtained based on the difference in corresponding time lengths of adjacent bradycardia curve segments; if the difference between corresponding time lengths of adjacent bradycardia curve segments becomes larger and larger, which indicates that the bradycardia is more and more serious, the corresponding second reference index becomes larger and larger, and the bradycardia reference index of subsequent evaluation also becomes larger and larger.
[0087] As an example, the second reference index is calculated by taking the difference between the duration of each bradycardia curve segment and the duration of the previous adjacent bradycardia curve segment as the second reference index. To facilitate subsequent calculations, the implementer may also use the duration difference as The function is normalized to obtain a second reference index; in other embodiments of the present invention, the implementer may also use the ratio of the corresponding duration of each bradycardia curve segment to the corresponding duration of the previous adjacent bradycardia curve segment as the second reference index. When the ratio is greater than 1 and the larger it is, the more serious the bradycardia is, and the corresponding second reference index becomes larger and larger.
[0088] Step S303, obtaining the reference index of the corresponding adjacent bradycardia curve segment according to the first reference index and the second reference index; and obtaining the bradycardia reference index of the thoracic surgery patient by combining the reference indexes of all adjacent bradycardia curve segments.
[0089] In one embodiment of the present invention, the first reference index and the second reference index are specifically multiplied and combined to obtain the reference index of adjacent bradycardia curve segments, and then the average of the reference indexes of all adjacent bradycardia curve segments is used as the bradycardia reference index of thoracic surgery patients. In other embodiments of the present invention, the implementer may also use other basic mathematical operations such as addition or weighted summation to obtain the reference index of adjacent bradycardia curve segments, and may also use the mode of the reference indexes of all adjacent bradycardia curve segments as the bradycardia reference index.
[0090] Step S4, according to the overall change trend of the heart rate curve and the stability after each medication, combined with the heart rate abnormality index and the bradycardia reference index, obtain the abnormal medication index of the thoracic surgery patient at the current moment.
[0091] Taking into account that after a patient takes medication for a long time, with the increase and accumulation of drug dosage, the heart rate decrease rate will accelerate, and in the subsequent abnormal heart rate increase process, the increase amplitude will also decrease, that is, the heart rate curve shows an overall downward trend, which is a normal physiological phenomenon; considering that each patient's bradycardia phenomenon may cause the patient's heart rate curve to show certain fluctuations after taking the medication, that is, the patient's heart rate should return to a normal level after each medication and stabilize with small fluctuations, but if there is an abnormal bradycardia phenomenon, it will show relatively drastic fluctuations; at the same time, the heart rate abnormality index and the bradycardia reference index both reflect the possibility or severity of the patient's adverse drug reaction; therefore, the embodiment of the present invention obtains the abnormal medication index of thoracic surgery patients at the current moment based on the overall change trend of the heart rate curve and the degree of stability after each medication, combined with the heart rate abnormality index and the bradycardia reference index.
[0092] Preferably, in one embodiment of the present invention, the method for obtaining the abnormal medication index includes:
[0093] See also Figure 4 , which shows a flow chart of a method for obtaining a medication abnormality index provided by an embodiment of the present invention;
[0094] Step S401, obtaining the upper envelope and the lower envelope of the heart rate curve; obtaining the downward trend parameter according to the overall change trend of the upper envelope; and obtaining the post-drug stability parameter according to the fluctuation change of the lower envelope.
[0095] Considering that the upper envelope of the heart rate curve can reflect the overall trend of the heart rate curve to a certain extent, and the lower envelope can reflect to a certain extent whether the heart rate curve has a large fluctuation in the lower envelope due to the existence of bradycardia after each medication; based on this, the upper envelope and lower envelope of the heart rate curve are obtained, which makes it easier to obtain the downward trend parameters and post-medication stability parameters.
[0096] The larger the downward trend parameter, the more consistent the overall heart rate change trend of the patient is with the normal physiological condition affected by the drug, and the greater the credibility of the post-drug stability parameter analyzed on this basis; the smaller the post-drug stability parameter, the greater the possibility that the patient's heart rate will still fluctuate after taking the drug due to bradycardia during the drug accumulation period, and the greater the possibility of abnormal medication.
[0097] Preferably, in one embodiment of the present invention, considering that under normal circumstances, long-term medication of patients will cause the heart rate to show an overall downward trend, a similar downward trend should be seen during the drug accumulation period and the non-drug accumulation period; and the slope can reflect the changing trend of the curve; based on this, the method for obtaining the downward trend parameter and the post-drug stability parameter includes:
[0098] In the upper envelope, the overall slope of the upper envelope corresponding to the drug accumulation period is taken as the first slope, and the overall slope of the upper envelope corresponding to the non-drug accumulation period is taken as the second slope; the downward trend parameter is obtained according to the difference between the first slope and the second slope.
[0099] As an example: The calculation formula for the downtrend parameter is: ,in is the downward trend parameter, is the overall slope of the corresponding upper envelope during the drug accumulation period, i.e., the first slope; is the overall slope of the corresponding upper envelope during the non-drug accumulation period, i.e., the second slope; To prevent zero parameters, 0.01 is used in the embodiment of the present invention, and the implementer can set it to other values without affecting the calculation results.
[0100] In the calculation formula of the downward trend parameter, the smaller the difference between the first slope and the second slope, the more it indicates that the downward trends in the drug accumulation period and the non-drug accumulation period are consistent, then the greater the possibility that the heart rate curve as a whole will show a downward trend, and the larger the downward trend parameter, so the difference is added to the anti-zero parameter and then a reciprocal operation is performed to adjust the logic. In other embodiments of the present invention, other means may also be used to adjust the logic, which will not be repeated here.
[0101] Among them, the calculation of the overall slope is the difference between the first heart rate data and the last heart rate data of the corresponding upper envelope during the drug accumulation period or the non-drug accumulation period divided by the duration of the corresponding collection time, thereby obtaining the corresponding overall slope, which is a prior art well known to those skilled in the art and will not be described in detail here; the non-drug accumulation period is the period excluding the drug accumulation period.
[0102] In another embodiment of the present invention, the implementer may also directly determine the sign of the difference between the first heart rate data and the last heart rate data of the upper envelope. If the sign is positive, it means that the upper envelope as a whole presents a downward trend. The larger the downward trend parameter is, the more consistent with the heart rate change trend during the drug accumulation period. The implementer may also calculate the difference between all adjacent medication times, that is, the heart rate data corresponding to each medication time and the next adjacent medication time. If the number of differences with positive signs is greater than 90% of the total number of all differences, then the upper envelope as a whole presents a downward trend. The larger the downward trend parameter is, the more consistent with the heart rate change trend during the drug accumulation period.
[0103] In the lower envelope, the overall slope of the lower envelope corresponding to the drug accumulation period is taken as the third slope, and the overall slope of the lower envelope corresponding to the non-drug accumulation period is taken as the fourth slope; based on the difference between the third slope and the fourth slope, the post-drug stability parameter is obtained.
[0104] As an example: The calculation formula for the post-drug stability parameter is: ,in, is the post-drug stability parameter, is the overall slope of the corresponding lower envelope during the drug accumulation period, i.e., the third slope; is the overall slope of the corresponding lower envelope during the non-drug accumulation period, i.e., the fourth slope; To prevent zero parameters, 0.01 is taken in the embodiment of the present invention. The implementer can set it to other values without affecting the calculation results. The calculation method of the overall slope is the same as the calculation method of the overall slope in the calculation method of the downward trend parameter, which will not be repeated here.
[0105] In another embodiment of the present invention, the implementer can also directly determine the variance of the data points in the lower envelope. The smaller the variance, the larger the post-drug stability parameter, and then map it to The implementer may also use other basic mathematical operations such as inverse or related mapping methods to adjust the logic, which will not be described in detail here.
[0106] Step S402, obtaining the abnormal drug impact index of thoracic surgery patients according to the downward trend parameter and the post-drug stability parameter, wherein the downward trend parameter is positively correlated with the abnormal drug impact index, and the post-drug stability parameter is negatively correlated with the abnormal drug impact index.
[0107] In one embodiment of the present invention, the post-drug stability parameter is specifically mapped to The logic is adjusted, and then the post-drug stability parameter after negative correlation mapping is multiplied and combined with the downward trend parameter to obtain the abnormal drug impact index. In other embodiments of the present invention, the implementer may also use other basic mathematical operations such as addition or weighted summation to combine the two, or may use other related mapping means to adjust the logic, which will not be repeated.
[0108] Step S403, obtaining the abnormal medication index of the thoracic surgery patient according to the abnormal medication impact index, abnormal heart rate index and bradycardia reference index; the abnormal medication impact index, abnormal heart rate index and bradycardia reference index are all positively correlated with the abnormal medication index.
[0109] In one embodiment of the present invention, the abnormal drug impact index, the abnormal heart rate index and the bradycardia reference index are multiplied and combined, and finally normalized to obtain the abnormal drug index; in other embodiments of the present invention, the implementer may also use an exponential function to multiply any of the parameters. , amplifying its influence on the abnormal medication index and improving sensitivity; the normalization method used is specifically the maximum and minimum value normalization method, and the implementer may also use other normalization methods, which will not be described here.
[0110] At this point, the abnormal medication index of thoracic surgery patients at the current moment is obtained, which can assist relevant medical personnel in evaluating whether they have adverse medication reactions and thus re-evaluate the medication plan.
[0111] In one embodiment of the present invention, after obtaining the abnormal medication index of a thoracic surgery patient at the current moment, the system further includes: when the abnormal medication index is greater than a preset threshold, an abnormal medication prompt is given. The preset threshold is 0.7, and when the abnormal medication index is greater than 0.7, the medical staff is prompted that the patient may have adverse drug reactions and the medication regimen needs to be re-evaluated according to the patient's physical condition.
[0112] In summary, the embodiment of the present invention first obtains the heart rate curve in real time and marks all medication times, and then obtains the number of abnormal heart rate changes and the drug accumulation period of the thoracic surgery patient according to the heart rate changes before and after each medication time, and then obtains the abnormal heart rate index of the thoracic surgery patient; further obtains all bradycardia curve segments in the heart rate curve, thereby obtaining a bradycardia reference index; according to the overall change trend of the heart rate curve and the degree of stability after each medication, combined with the abnormal heart rate index and the bradycardia reference index, obtains the abnormal medication index of the thoracic surgery patient at the current moment. The present invention first determines whether the patient has abnormal heart rate changes during the medication process by analyzing the heart rate change characteristics of the patient before and after each medication, and then analyzes whether the patient has adverse drug reaction symptoms of bradycardia and the heart rate change trend of the patient under long-term medication, while excluding the influence of non-drug factors, accurately assessing whether the patient has abnormal medication reactions.
[0113] The present invention also proposes a patient drug information processing system for thoracic surgery, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the above-mentioned patient drug information processing method for thoracic surgery are implemented.
[0114] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0115] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
Claims
1. A method for processing patient drug information for thoracic surgery, characterized in that: The method comprises: Acquire the heart rate curve of the thoracic surgery patient in real time, and mark all the medication taking times of the thoracic surgery patient in the heart rate curve; In the heart rate curve, according to the heart rate changes before and after each medication time, the number of abnormal heart rate changes and the drug accumulation period of the thoracic surgery patient are obtained; according to the consistency of the heart rate changes after the adjacent medication times in the drug accumulation period, combined with the number of abnormal heart rate changes, the heart rate abnormality index of the thoracic surgery patient is obtained; After each medication taking moment, all bradycardia curve segments in the heart rate curve are obtained according to the fluctuation of the heart rate curve; and a bradycardia reference index of the thoracic surgery patient is obtained according to the change difference between adjacent bradycardia curve segments; According to the overall change trend of the heart rate curve and the stability after each medication, combined with the heart rate abnormality index and the bradycardia reference index, the abnormal medication index of the thoracic surgery patient at the current moment is obtained; The method for obtaining the abnormal medication index includes: Obtain the upper envelope and the lower envelope of the heart rate curve; obtain the downward trend parameter according to the overall change trend of the upper envelope; obtain the post-drug stability parameter according to the fluctuation change of the lower envelope; According to the downward trend parameter and the post-drug stability parameter, the abnormal drug impact index of the thoracic surgery patient is obtained, the downward trend parameter is positively correlated with the abnormal drug impact index, and the post-drug stability parameter is negatively correlated with the abnormal drug impact index; According to the abnormal drug impact index, the abnormal heart rate index and the bradycardia reference index, obtaining the abnormal medication index of the thoracic surgery patient; the abnormal drug impact index, the abnormal heart rate index and the bradycardia reference index are all positively correlated with the abnormal medication index; The method for obtaining the downward trend parameter and the post-drug stability parameter includes: In the upper envelope, the overall slope of the upper envelope corresponding to the drug accumulation period is used as the first slope, and the overall slope of the upper envelope corresponding to the non-drug accumulation period is used as the second slope; according to the difference between the first slope and the second slope, a downward trend parameter is obtained; In the lower envelope, the overall slope of the lower envelope corresponding to the drug accumulation period is used as the third slope, and the overall slope of the lower envelope corresponding to the non-drug accumulation period is used as the fourth slope; according to the difference between the third slope and the fourth slope, the post-drug stability parameter is obtained; The method for obtaining the number of abnormal changes in heart rate includes: Segmenting the heart rate curve according to fluctuations of the heart rate curve; According to the heart rate data in the segment to which each medication taking time belongs and the heart rate data in the next adjacent segment corresponding to the segment to which the medication taking time belongs, the heart rate change rate after each medication taking time and before the next adjacent medication taking time is obtained; According to the deviation of the heart rate change rate, evaluating whether abnormal heart rate changes occur after each medication, and obtaining the number of abnormal heart rate changes in the heart rate curve; The method for obtaining the abnormal heart rate index includes: Obtaining a drug impact parameter according to the difference between the number of abnormal heart rate changes and the total number of drug taking times during the drug accumulation period; During the drug accumulation period, according to the consistency of the differences in all adjacent heart rate change rates, a consistent parameter of the change trend of the heart rate of the thoracic surgery patient after each medication is obtained; Acquire an abnormal heart rate index according to the drug influence parameter and the change trend consistent parameter, wherein the drug influence parameter and the change trend consistent parameter are both positively correlated with the abnormal heart rate index; The calculation formula of the trend consistency parameter is: ;in, is the parameter with consistent changing trend; The natural constant The exponential function with base ; The total number of times the drug is taken during the drug accumulation period, that is, the total number of times the drug is taken during the drug accumulation period; It is the serial number of the time of taking the medicine during the drug accumulation period; During the drug accumulation period, The heart rate change rate after taking the medicine is The difference in heart rate change rate between the times of taking the medicine; It is the average of the differences in the heart rate change rates after all adjacent medication times during the drug accumulation period; is the absolute value symbol; The method for obtaining the bradycardia reference index comprises: Obtaining the minimum heart rate value in each bradycardia curve segment; obtaining a first reference index according to the difference between the minimum heart rate values in adjacent bradycardia curve segments; Obtaining a second reference index according to a difference in corresponding durations of adjacent bradycardia curve segments; According to the first reference index and the second reference index, the reference index corresponding to the adjacent bradycardia curve segment is obtained; and the reference index of the bradycardia of the thoracic surgery patient is obtained by combining the reference indexes of all adjacent bradycardia curve segments.
2. A method for processing patient drug information for thoracic surgery according to claim 1, characterized in that: The method for obtaining the heart rate change rate after each medication taking time and before the next adjacent medication taking time includes: Between each medication time and the next adjacent medication time, the maximum heart rate data in the segment to which each medication time belongs is used as the pre-medication reference heart rate, and the average of the heart rate data in the next adjacent segment to which each medication time belongs is used as the post-medication reference heart rate; The duration between the sampling time corresponding to the reference heart rate before medication and the sampling time corresponding to the last heart rate data in the next adjacent segment is taken as the duration of drug effect; According to the difference between the pre-drug reference heart rate and the post-drug reference heart rate, combined with the drug effect duration, the heart rate change rate after each medication moment and before the next adjacent medication moment is obtained.
3. A method for processing patient drug information for thoracic surgery according to claim 1, characterized in that: The method for obtaining the drug accumulation period includes: In the heart rate curve, the time of taking medicine before the first abnormal change in heart rate occurs is taken as the starting time of the medicine accumulation period, and the period from the starting time to the end time of the heart rate curve is taken as the medicine accumulation period.
4. A method for processing patient drug information for thoracic surgery according to claim 1, characterized in that: The method for obtaining the bradycardia curve segment comprises: In the heart rate curve, between two adjacent medication times, a continuous heart rate curve segment that is lower than a preset standard heart rate is taken as a bradycardia curve segment.
5. A patient drug information processing system for thoracic surgery, characterized in that: It includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of a patient drug information processing method for thoracic surgery as described in any one of claims 1 to 4 are implemented.
