CN112494752B - Infusion pump data processing method, infusion pump and storage medium - Google Patents

Infusion pump data processing method, infusion pump and storage medium Download PDF

Info

Publication number
CN112494752B
CN112494752B CN202011208170.0A CN202011208170A CN112494752B CN 112494752 B CN112494752 B CN 112494752B CN 202011208170 A CN202011208170 A CN 202011208170A CN 112494752 B CN112494752 B CN 112494752B
Authority
CN
China
Prior art keywords
value
rotating speed
motor
speed
injector
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011208170.0A
Other languages
Chinese (zh)
Other versions
CN112494752A (en
Inventor
董凡
吴阿新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jafron Biomedical Co Ltd
Original Assignee
Jafron Biomedical Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jafron Biomedical Co Ltd filed Critical Jafron Biomedical Co Ltd
Priority to CN202011208170.0A priority Critical patent/CN112494752B/en
Publication of CN112494752A publication Critical patent/CN112494752A/en
Application granted granted Critical
Publication of CN112494752B publication Critical patent/CN112494752B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61MDEVICES FOR INTRODUCING MEDIA INTO, OR ONTO, THE BODY; DEVICES FOR TRANSDUCING BODY MEDIA OR FOR TAKING MEDIA FROM THE BODY; DEVICES FOR PRODUCING OR ENDING SLEEP OR STUPOR
    • A61M5/00Devices for bringing media into the body in a subcutaneous, intra-vascular or intramuscular way; Accessories therefor, e.g. filling or cleaning devices, arm-rests
    • A61M5/14Infusion devices, e.g. infusing by gravity; Blood infusion; Accessories therefor
    • A61M5/168Means for controlling media flow to the body or for metering media to the body, e.g. drip meters, counters ; Monitoring media flow to the body
    • A61M5/16804Flow controllers
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61MDEVICES FOR INTRODUCING MEDIA INTO, OR ONTO, THE BODY; DEVICES FOR TRANSDUCING BODY MEDIA OR FOR TAKING MEDIA FROM THE BODY; DEVICES FOR PRODUCING OR ENDING SLEEP OR STUPOR
    • A61M5/00Devices for bringing media into the body in a subcutaneous, intra-vascular or intramuscular way; Accessories therefor, e.g. filling or cleaning devices, arm-rests
    • A61M5/14Infusion devices, e.g. infusing by gravity; Blood infusion; Accessories therefor
    • A61M5/142Pressure infusion, e.g. using pumps
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61MDEVICES FOR INTRODUCING MEDIA INTO, OR ONTO, THE BODY; DEVICES FOR TRANSDUCING BODY MEDIA OR FOR TAKING MEDIA FROM THE BODY; DEVICES FOR PRODUCING OR ENDING SLEEP OR STUPOR
    • A61M5/00Devices for bringing media into the body in a subcutaneous, intra-vascular or intramuscular way; Accessories therefor, e.g. filling or cleaning devices, arm-rests
    • A61M5/48Devices for bringing media into the body in a subcutaneous, intra-vascular or intramuscular way; Accessories therefor, e.g. filling or cleaning devices, arm-rests having means for varying, regulating, indicating or limiting injection pressure
    • A61M5/484Regulating injection pressure
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61MDEVICES FOR INTRODUCING MEDIA INTO, OR ONTO, THE BODY; DEVICES FOR TRANSDUCING BODY MEDIA OR FOR TAKING MEDIA FROM THE BODY; DEVICES FOR PRODUCING OR ENDING SLEEP OR STUPOR
    • A61M2205/00General characteristics of the apparatus
    • A61M2205/33Controlling, regulating or measuring
    • A61M2205/3331Pressure; Flow
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61MDEVICES FOR INTRODUCING MEDIA INTO, OR ONTO, THE BODY; DEVICES FOR TRANSDUCING BODY MEDIA OR FOR TAKING MEDIA FROM THE BODY; DEVICES FOR PRODUCING OR ENDING SLEEP OR STUPOR
    • A61M2205/00General characteristics of the apparatus
    • A61M2205/33Controlling, regulating or measuring
    • A61M2205/3331Pressure; Flow
    • A61M2205/3341Pressure; Flow stabilising pressure or flow to avoid excessive variation

Landscapes

  • Health & Medical Sciences (AREA)
  • Vascular Medicine (AREA)
  • Engineering & Computer Science (AREA)
  • Anesthesiology (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Hematology (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Veterinary Medicine (AREA)
  • Infusion, Injection, And Reservoir Apparatuses (AREA)

Abstract

The application relates to an infusion pump data processing method, an infusion pump and a storage medium. The method comprises the following steps: acquiring a target rotating speed and a current rotating speed of a motor; acquiring a point value sequence corresponding to the change of the rotating speed of the motor; the point value sequence is obtained by arranging a plurality of point values according to a size relation; calculating a speed value corresponding to each point value according to the target rotating speed, the current rotating speed and the point value sequence; sequentially regulating the rotating speed of the motor to a corresponding speed value according to the sorting of the point values in the point value sequence until the current rotating speed of the motor meets a preset speed regulation stop condition; the speed regulation stopping condition is that the difference value between the current rotating speed of the motor and the target rotating speed does not exceed a preset threshold value. By adopting the method, the phenomenon of sudden change of the rotating speed of the motor in the speed regulating process of the motor can be avoided, so that the liquid in the infusion pump can be stably output.

Description

Infusion pump data processing method, infusion pump and storage medium
Technical Field
The application relates to the technical field of medical instruments, in particular to an infusion pump data processing method, an infusion pump and a storage medium.
Background
An infusion pump is a medical device that is capable of delivering medication into a patient for action. To ensure medication safety, it is often necessary to strictly control the rate of fluid output from an infusion pump. The output speed of the liquid in an infusion pump is typically controlled by regulating the rotational speed of the motor of the infusion pump.
In the conventional technology, when the rotating speed of the motor of the infusion pump is adjusted, the current rotating speed of the motor is usually directly adjusted to a target rotating speed, and the rotating speed of the motor is easy to change suddenly in such a way, so that the output speed of liquid in the infusion pump is unstable.
Disclosure of Invention
Therefore, it is necessary to provide an infusion pump data processing method, an infusion pump and a storage medium for solving the above technical problems, so as to avoid the phenomenon of sudden change of the rotation speed of the motor during the speed regulation process of the motor.
An infusion pump data processing method, the method comprising:
acquiring a target rotating speed and a current rotating speed of a motor;
acquiring a point value sequence corresponding to the change of the rotating speed of the motor; the point value sequence is obtained by arranging a plurality of point values according to a size relation;
calculating a speed value corresponding to each point value according to the target rotating speed, the current rotating speed and the point value sequence;
sequentially regulating the rotating speed of the motor to a corresponding speed value according to the sequence of the point values in the point value sequence until the current rotating speed of the motor meets a preset speed regulation stop condition; the speed regulation stopping condition is that the difference value between the current rotating speed of the motor and the target rotating speed does not exceed a preset threshold value.
In one embodiment, the calculating a speed value corresponding to each point value according to the target rotation speed, the current rotation speed and the point value sequence includes:
calculating a speed value corresponding to each point value according to the target rotating speed, the current rotating speed and the point value sequence and the following formula;
motorRate = motorRateMin + (motorRateMax- motorRateMin)*f(x);
f(x) = 1/(1+e^(-x) ) = e^x/(1+e^x );
wherein, the motorRate is a speed value corresponding to the point value; motorRateMin is the minimum value of the motor rotation speed; motorRateMax is the maximum value of the motor rotation speed; x is a point value in the sequence of point values.
In one embodiment, the sequentially adjusting the rotation speed of the motor to the corresponding speed value according to the sorting of the point values in the point value sequence until the current rotation speed of the motor meets the preset speed regulation stop condition includes:
when the motor is judged to be in an acceleration state according to the target rotating speed and the current rotating speed, adjusting the rotating speed of the motor to a corresponding speed value in sequence from small to large according to point values until the current rotating speed of the motor meets the speed regulation stopping condition;
and when the motor is judged to be in a deceleration state according to the target rotating speed and the current rotating speed, adjusting the rotating speed of the motor to a corresponding speed value in sequence from large to small according to the point value until the current rotating speed of the motor meets the speed regulation stopping condition.
In one embodiment, the obtaining the target rotation speed and the current rotation speed of the motor includes:
receiving a motor acceleration and deceleration command, wherein the motor acceleration and deceleration command carries a target output speed of liquid in the infusion pump;
and when the motor is judged to be in a normal working mode according to the motor acceleration and deceleration command, determining the target rotating speed of the motor according to the target output speed of the liquid in the infusion pump.
In one embodiment, the receiving a motor acceleration/deceleration command includes:
receiving the motor acceleration and deceleration command through a first communication interface; or
Receiving the motor acceleration and deceleration command through a second communication interface;
the first communication interface is a communication interface corresponding to a controller local area network; the second communication interface is a communication interface corresponding to serial communication.
In one embodiment, the method further comprises:
performing analog-digital sampling on the pipe diameter of the injector according to a preset time interval;
filtering the obtained modulus sampling value;
and determining the pipe diameter model of the current injector according to the analog-digital sampling value after filtering and the pipe diameter modulus value range corresponding to each pipe diameter model.
In one embodiment, before performing analog-to-digital sampling on the tube diameter of the injector at preset time intervals, the method further includes:
acquiring modulus sampling values corresponding to the pressure rod of the infusion pump at the lowest position, the pressure rod at the highest position and the injectors of various specifications placed on the pressure rod;
determining the linear relation between the pipe diameter of the injector and the modulus sampling value according to the modulus sampling value corresponding to the pressure rod of the infusion pump at the lowest position and the pressure rod at the highest position;
determining the pipe diameter modulus value range corresponding to each specification of injector according to the modulus sampling value corresponding to each specification of injector and the preset offset;
judging whether the pipe diameter modulus value ranges corresponding to the injectors of the adjacent specifications are crossed or not according to the linear relation;
and if so, calibrating the pipe diameter modulus value range corresponding to the adjacent specification injectors according to the middle value of the cross range.
In one embodiment, the method further comprises:
acquiring the current push rod mileage and the current pipeline pressure of the injector;
and when the current push rod mileage is equal to the corresponding push injection completion mileage and the current pipeline pressure is equal to the preset pipeline pressure, judging that the liquid injection in the injector is completed, and sending prompt information of the completed injection to an upper computer.
In one embodiment, before the obtaining the current ram mileage and the current line pressure of the injector, the method further comprises:
acquiring a first push rod mileage corresponding to the injector in a state that the injection is finished;
after extra pressure is applied to the push head of the infusion pump in the state that the injection is finished, acquiring a second push rod mileage corresponding to the injector;
determining the first push rod mileage as a bolus completion mileage when the first push rod mileage is the same as the second push rod mileage.
In one embodiment, the method further comprises:
detecting at least one of the pipe diameter model of the injector, the kneading state of the pushing head, the clamping state of the clutch, the pressure state of the zero point and the blocking state of the pipeline;
and when the infusion pump is judged to have a fault according to the obtained detection result, sending alarm information corresponding to the fault to an upper computer so that the upper computer displays the alarm information.
An infusion pump comprising a memory storing a computer program and a processor performing the steps of data processing of the infusion pump in the above embodiments.
A computer-readable storage medium, on which a computer program is stored, the computer program being executed by a processor for performing the steps of the data processing of an infusion pump in the above-described embodiments.
According to the infusion pump data processing method, the infusion pump and the storage medium, the target rotating speed and the current rotating speed of the motor are obtained, the point value sequence corresponding to the change of the rotating speed of the motor is further obtained, the point value sequence is obtained by arranging a plurality of point values according to the size relationship, the speed value corresponding to each point value is calculated according to the target rotating speed, the current rotating speed and the point value sequence, the rotating speed of the motor is sequentially adjusted to the corresponding speed value according to the sequence of the point values in the point value sequence until the current rotating speed of the motor meets the preset speed regulation stopping condition, and the speed regulation stopping condition is that the difference value between the current rotating speed of the motor and the target rotating speed does not exceed the preset threshold value, so that the staged speed regulation of the motor is realized, the speed regulation process of the motor can be ensured to be more stable, the phenomenon of sudden change of the rotating speed of the motor in the speed regulation process is avoided, and the liquid in the infusion pump can be stably output.
Drawings
FIG. 1 is a schematic mechanical diagram of an infusion pump in one embodiment;
FIG. 2 is a schematic flow chart diagram of a method for processing infusion pump data in one embodiment;
FIG. 3 is a schematic view illustrating a calibration process for a range of pipe diameter modulus values of injectors of different specifications according to an embodiment;
FIG. 4 is a flow diagram illustrating initialization configuration in one embodiment;
FIG. 5 is a schematic diagram of the overall function of a heparin pump in one embodiment;
fig. 6 is a block diagram of an infusion pump data processing device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The infusion pump data processing method provided by the application can be applied to the infusion pump shown in fig. 1. The infusion pump may be a bolus pump or an extrusion pump, and may be a heparin pump or an insulin pump, for example. Wherein the transfer pump includes: a single chip microcomputer (not shown) (MCU), a clutch 101, a pressure lever 102, a gear (not shown), a push head 103, a push rod 104, an injector 105, and a motor (not shown), wherein the motor drives the gear, when the gear runs, the push head is driven by the gear, and the push head provides a driving force for the push rod to move; the compression bar is used for clamping the injector so as to detect the specification of the injector; wherein the separation and reunion is used for the centre gripping push rod to in the process of the motion of pushing head and push rod, pushing head and push rod can zonulae occludens, and the pushing head exerts stable driving force to the push rod.
In an embodiment, as shown in fig. 2, a data processing method for an infusion pump is provided, where the method is applied to a single chip of the infusion pump in fig. 1, and the infusion pump is a heparin pump in this embodiment as an example, the data processing method for an infusion pump specifically includes the following steps:
step 202, acquiring a target rotating speed and a current rotating speed of the motor.
The target rotating speed refers to the rotating speed expected to be reached after the motor of the infusion pump is regulated, and the current rotating speed refers to the current rotating speed of the motor of the infusion pump.
In one embodiment, obtaining the target rotational speed and the current rotational speed of the motor includes: receiving a motor acceleration and deceleration command, wherein the motor acceleration and deceleration command carries a target output speed of liquid in the infusion pump; and when the motor is judged to be in the normal working mode according to the motor acceleration and deceleration command, determining the target rotating speed of the motor according to the target output speed of the liquid in the infusion pump.
Specifically, the operation mode of the motor in the present embodiment includes a normal operation mode and an accuracy calibration operation mode. A user can input a target output speed of liquid in the infusion pump on the upper computer, and trigger a motor acceleration and deceleration instruction to be sent to the infusion pump, after a single chip microcomputer of the infusion pump receives the motor acceleration and deceleration instruction, the instruction is analyzed, a target output speed and a working mode identification of the liquid in the infusion pump carried in the instruction are obtained, when the motor is judged to be in a normal working mode according to the working mode identification, a corresponding relation between the output speed of the liquid in the infusion pump and the rotating speed of the motor is obtained, and the target rotating speed of the motor is determined according to the corresponding relation and the target output speed of the liquid in the infusion pump.
Further, when the motor is judged to be in the precision calibration working mode according to the working mode identification, the motor starts to operate, the infusion pump outputs liquid according to the target output speed carried in the motor instruction, after the preset time, the number of operation turns and the liquid output capacity of the motor are obtained, namely, the rotation speed of the motor corresponds to the liquid output capacity one to one, for example, the motor operates for 10 turns in one minute, and the infusion pump outputs 10ML of liquid in one minute, then the corresponding relation between the rotation speed of the motor and the liquid output speed can be obtained, so that the rotation speed of the motor is consistent with the output speed of the infusion pump, namely, the corresponding relation between the rotation speed of the motor and the output speed of the liquid in the infusion pump is determined.
In one embodiment, the single chip of the infusion pump includes two communication interfaces, namely a first communication interface and a second communication interface, wherein the first communication interface is a communication interface corresponding to a Controller Area Network (CAN); the second communication interface is a communication interface corresponding to serial port (UART) communication, and the receiving of the motor acceleration and deceleration instruction comprises the following steps: receiving a motor acceleration and deceleration command through a first communication interface; or receiving a motor acceleration and deceleration command through the second communication interface.
Specifically, in this embodiment, the infusion pump may operate in a test scenario and an application scenario, and is connected to different upper computers in the test scenario and the application scenario respectively, the infusion pump is connected to a PC (personal computer) upper computer in the test scenario, and the infusion pump is connected to the device upper computer in the application scenario, so that in the application scenario, the infusion pump may receive a motor instruction sent by the device upper computer through the first communication interface, and in the test scenario, the infusion pump may receive a motor instruction sent by the PC upper computer through the second communication interface.
In one embodiment, the single chip microcomputer can detect the rotating speed of the motor in a pulse speed measurement or hall speed measurement mode to obtain the current rotating speed of the motor.
In a pulse speed measurement mode, when a single chip microcomputer receives a first speed measurement instruction, acquiring the number of pulses output by a motor within preset time, judging the size relation between the number of pulses output by the motor and the preset number of pulses, and if the number of pulses output by the motor exceeds the preset number of pulses, calculating the current rotating speed of the motor according to the acquired number of pulses; if the number of the pulses of the motor is smaller than the preset number of the pulses, it is indicated that the actual rotating speed of the motor cannot be calculated according to the number of the pulses output by the motor, whether the time for acquiring the pulses of the motor is larger than or equal to the preset time can be judged, if the time for acquiring the pulses of the motor is larger than the preset time, the detection time is judged to be overtime, and the motor is judged to stop rotating.
In one embodiment, after each rotation speed detection, the number of pulses and the time of the motor are cleared, so that the rotation speed of the motor can be continuously measured in the next period.
In a Hall speed measurement mode, when a second speed measurement instruction is received, if the Hall number obtained by Hall sampling of the rotation state of the motor in the preset time is greater than or equal to the preset Hall number, the actual rotation speed and the actual steering of the motor can be obtained according to the Hall number; and if the Hall number obtained by Hall sampling of the rotation state of the motor in the preset time does not exceed the preset Hall number, judging that the rotation speed of the motor is 0.
It should be noted that, in this embodiment, when performing hall velocity measurement, hall sampling needs to be performed after a preset delay time, which aims to skip acceleration/deceleration processes of a motor, such as power-on start, power-off stop and other situations, and perform hall velocity measurement in a normal operation state of the motor, so that the obtained motor rotational speed through velocity measurement is more accurate.
It should be noted that, in this embodiment, two motor rotation speed detection modes, namely hall speed measurement and pulse speed measurement, are performed simultaneously, where the pulse speed measurement mode belongs to an "inherent" speed measurement mode in a motor driving module, and it utilizes pulses in a motor operation process to realize motor rotation speed calculation; the Hall speed measuring mode belongs to an 'external' speed measuring mode of a motor driving module, and the Hall sensor is used for sampling and calculating the rotating speed of the motor.
In a specific embodiment, after the pulse speed measurement and the hall speed measurement are performed on the rotating speed of the motor, if the obtained rotating speed of the motor is abnormal, for example, a difference value between the rotating speeds obtained by the pulse speed measurement and the hall speed measurement is greater than a preset difference threshold value, or the rotating speed of the motor obtained by any speed measurement mode is greater than a preset rotating speed threshold value, the single chip microcomputer CAN generate alarm information, the alarm information is uploaded to an upper computer (a PC upper computer or an equipment upper computer) in a CAN communication mode or a UART communication mode, and the upper computer CAN give an alarm in a sound prompt mode or a light-emitting prompt mode so as to prompt a user that the motor may be in fault.
And 204, acquiring a point value sequence corresponding to the change of the rotating speed of the motor.
The motor speed control method comprises the steps of obtaining a point value sequence, obtaining the number of the point values in the point value sequence, and enabling the number of the point values in the point value sequence to represent the number of times that a motor needs to change from the current speed to the target speed. It will be appreciated that the greater the number of changes, the smoother and more stable the speed change.
In one embodiment, the sequence of point values is as follows:
pointMin, pointMin + pointStep 1, … …, pointMin + pointStep M, pointMax, where pointMin is the minimum point value, pointMax is the maximum point value, pointStep is the point step, and M is the number of times the motor needs to change from the current speed to the target speed.
In this embodiment, the point minimum value, the point maximum value, and the point step length may be set as needed, for example, the point maximum value is set to 7, the point minimum value is set to-7, and the point step length is set to 0.1. It can be understood that when the pointStep is smaller, the smoothness of the regulated motor speed is higher, and the smoothness of the motor speed regulation is higher.
And step 206, calculating a speed value corresponding to each point value according to the target rotating speed, the current rotating speed and the point value sequence.
In one embodiment, the single chip microcomputer calculates a speed value corresponding to each point value according to the target rotating speed, the current rotating speed and the point value sequence and according to the following formulas (1) and (2);
motorRate = motorRateMin + (motorRateMax- motorRateMin)*f(x) (1);
f(x) = 1/(1+e^(-x) ) = e^x/(1+e^x ) (2);
wherein, the motorRate is a speed value corresponding to the point value; motorRateMin is the minimum value of the motor rotation speed; motorRateMax is the maximum value of the motor rotation speed; x is a point value in the sequence of point values.
And 208, sequentially regulating the rotating speed of the motor to a corresponding speed value according to the sequence of the point values in the point value sequence until the current rotating speed of the motor meets a preset speed regulation stop condition.
And the speed regulation stopping condition is that the difference value between the current rotating speed and the target rotating speed of the motor does not exceed a preset threshold value. The preset threshold value can be set according to actual needs. It can be understood that the smaller the preset threshold value is, the closer the rotating speed of the motor after speed regulation is to the target rotating speed is, and the more accurate the speed regulation of the motor is.
Specifically, the single chip microcomputer can judge the acceleration and deceleration state of the motor according to the target rotating speed and the current rotating speed, when the target rotating speed is greater than the current rotating speed, the motor is judged to be in the acceleration state, and when the target rotating speed is less than the current rotating speed, the motor is judged to be in the deceleration state. Further, when the motor is in an acceleration state, regulating the rotating speed of the motor to a corresponding speed value in sequence from small to large according to the point value until the current rotating speed of the motor meets a speed regulation stopping condition; when the motor is in a deceleration state, the rotating speed of the motor is adjusted to a corresponding speed value in sequence from large to small according to the point value until the current rotating speed of the motor meets the speed regulation stopping condition.
In one embodiment, when the current rotating speed of the motor meets the speed regulation stop condition, whether the target rotating speed is 0 is further judged, and if the target rotating speed is 0, the motor is in a stop state; if the target rotating speed is not 0, the motor is in a constant speed state; if the motor is in the constant speed mode, PID (Proportional Integral Derivative) adjustment is carried out on the rotating speed of the motor. Specifically, the rotating speed of the motor is collected, and PID adjustment is carried out according to the rotating speed fluctuation amount of the motor, so that the motor can be kept in a stable and uniform rotating state.
In one embodiment, if the motor is not in the acceleration mode, the deceleration mode, or the constant speed mode, the routine is terminated directly without any operation of the motor.
It should be noted that, in the above formulas (1) and (2), when the motor is determined to be in an acceleration state according to the target rotation speed and the current rotation speed, motorRateMin is the current rotation speed, motorRateMax is the target rotation speed, and in the acceleration state, the target rotation speed is the maximum value of the rotation speed of the motor, and the motor is sequentially accelerated from small to large according to the point values in the point value sequence to gradually approach the target rotation speed; when the motor is judged to be in a deceleration state according to the target rotation speed and the current rotation speed, the motorRateMax is the current rotation speed, the motorRateMin is the target rotation speed, the target rotation speed is the minimum value of the motor rotation speed in the deceleration state, and the motor decelerates from large to small according to point values in the point value sequence to gradually approach the target rotation speed.
In the following, the dot maximum value is 7, the dot minimum value is-7, and the dot step is 2. Under the condition that the motor is in an acceleration state, if the obtained point value sequence is-7, -5, -3, -1, 3, 5 and 7 in sequence, the calculated corresponding speed values are V1, V2, V3, V4, V5, V6, V7 and V8 in sequence, the rotating speed of the motor is firstly adjusted to V1 from the current rotating speed (i.e. motorRateMin), then adjusted to V2 from V1, then adjusted to V3 from V2, adjusted to V4 from V3, … …, and so on, each time of speed adjustment is performed, whether the difference value between the actual rotating speed after the speed adjustment of the motor and the target rotating speed (i.e. motorRateMax) exceeds a preset threshold value is judged, if the difference value does not exceed the preset threshold value, the actual rotating speed after the speed adjustment of the motor is consistent with the target rotating speed, so that the rotating speed of the motor gradually approaches the target rotating speed, and the speed adjustment of the motor is completed in stages.
According to the infusion pump data processing method, the target rotating speed and the current rotating speed of the motor are obtained, the point value sequence corresponding to the change of the rotating speed of the motor is further obtained, the point value sequence is obtained by arranging a plurality of point values according to the size relationship, the speed value corresponding to each point value is calculated according to the target rotating speed, the current rotating speed and the point value sequence, the rotating speed of the motor is sequentially adjusted to the corresponding speed value according to the sequence of the point values in the point value sequence until the current rotating speed of the motor meets the preset speed regulation stopping condition, and the speed regulation stopping condition is that the difference value between the current rotating speed and the target rotating speed of the motor does not exceed the preset threshold value, so that the staged speed regulation of the motor is realized, the speed regulation process of the motor is more stable, the phenomenon of sudden change of the rotating speed of the motor in the speed regulation process of the motor is avoided, and liquid in the infusion pump can be stably output.
In one embodiment, the method further comprises: performing analog-digital sampling on the pipe diameter of the injector according to a preset time interval; filtering the obtained modulus sampling value; and determining the pipe diameter model of the current injector according to the analog-digital sampling value after filtering and the pipe diameter modulus value range corresponding to each pipe diameter model.
The pipe diameter module value range corresponding to the pipe diameter model refers to a range determined according to a sampling result obtained by performing analog-digital sampling on the pipe diameter of the injector of the pipe diameter model.
Specifically, when a sampling instruction is received, the singlechip performs analog-to-digital sampling on the pipe diameter of the injector according to a preset time interval, and performs filtering processing on an obtained analog-to-digital sampling value so as to eliminate errors in the analog-to-digital sampling process.
And if the modulus sampling value after filtering is not in the identifiable range of the pipe diameter specification, identifying the pipe diameter specification and terminating.
If the analog-digital sampling value after filtering is in the identifiable range of the pipe diameter specification, judging the pipe diameter modulus value range of the analog-digital sampling value according to the pipe diameter modulus value range corresponding to the analog-digital sampling value and each pipe diameter model, and determining the pipe diameter model corresponding to the pipe diameter modulus value range of the analog-digital sampling value as the actual model of the pipe diameter of the currently used injector (for example, the model of a heparin pump is 10ml, 20ml, 30ml and the like).
In one embodiment, the singlechip pre-stores the pipe diameter model of the injector used previously, compares the difference between the actual model of the pipe diameter of the injector used currently and the pipe diameter model of the injector used previously, and displays and stores the actual model of the pipe diameter of the injector in the heparin pump used currently in real time through the upper computer after a preset time if the actual model of the pipe diameter of the injector used currently is inconsistent with the pipe diameter model of the injector used previously, wherein the pipe diameter of the injector used currently can be prevented from having instant detection errors after the preset time, and anti-shake processing and filtering processing are performed.
In one embodiment, as shown in fig. 3, before detecting the actual type of the tube diameter of the syringe, it is necessary to first determine the tube diameter modulus value ranges corresponding to different tube diameter types of the syringe in the heparin pump, that is, calibrate the tube diameter modulus value ranges of the syringes of different specifications in advance, specifically including:
step 302, obtaining modulus sampling values corresponding to the infusion pump when the compression bar is at the lowest position, the compression bar is at the highest position and the injectors with various specifications are placed on the compression bar.
Specifically, when the compression rod is at the lowest position, the compression rod is at the highest position and each specification of injector is placed on the compression rod, the single chip receives a calibration instruction sent by an upper computer (an equipment upper computer or a PC upper computer), analog-digital sampling is carried out for multiple times according to the calibration instruction, and the average value of sampling results is calculated to obtain corresponding analog-digital sampling values when the compression rod is at the lowest position, the compression rod is at the highest position and each specification of injector is placed on the compression rod.
And step 304, determining a linear relation between the diameter of the syringe and the modulus sampling value according to the modulus sampling value corresponding to the lowest position and the highest position of the infusion pump pressure rod.
Specifically, when the modulus sampling value corresponding to the pressure lever at the lowest position is smaller than the modulus sampling value corresponding to the pressure lever at the highest position, the positive linear relation between the diameter of the syringe and the modulus sampling value is judged; when the modulus sampling value corresponding to the pressure lever at the lowest position is larger than the modulus sampling value corresponding to the pressure lever at the highest position, the negative linear relation between the diameter of the syringe and the modulus sampling value is judged.
And step 306, determining the pipe diameter modulus value range corresponding to each specification injector according to the modulus sampling value corresponding to each specification injector and the preset offset.
Specifically, +/-offset is carried out on the modulus sampling value of the pipe diameter of each specification of injector to obtain the upper limit and the lower limit of the modulus sampling value of the pipe diameter of each specification of injector, so as to obtain the corresponding pipe diameter modulus value range. For example, if the modulus sampling value of the pipe diameter of a 10ml syringe is 10ml and the offset is 2ml, the obtained pipe diameter modulus value range is from 8ml to 12ml.
And 308, judging whether the pipe diameter modulus value ranges corresponding to the injectors with the adjacent specifications are crossed or not according to the linear relation.
And 310, if so, calibrating the pipe diameter modulus value range corresponding to the syringes with the adjacent specifications according to the middle value of the cross range.
Specifically, when the linear relationship is a forward linear relationship, if the upper limit value in the pipe diameter modulus value range of the small-sized injector in the two injectors of the adjacent specifications is larger than the lower limit value in the pipe diameter modulus value range of the large-sized injector, it is determined that the pipe diameter modulus value ranges corresponding to the injectors of the adjacent specifications are crossed; and when the linear relation is a negative linear relation, if the upper limit value in the pipe diameter modulus value range of the large-specification injector in the two adjacent-specification injectors is larger than the lower limit value in the pipe diameter modulus value range of the small-specification injector, judging that the pipe diameter modulus value ranges corresponding to the adjacent-specification injectors are crossed.
Further, if the pipe diameter modulus value ranges corresponding to the adjacent specification injectors are crossed, the middle value of the crossed range is taken as the upper limit value and the lower limit value of the adjacent specification injectors corresponding to the crossed range respectively, so that the pipe diameter modulus value ranges corresponding to the adjacent specification injectors are calibrated. For example, when the linear relationship is a forward linear relationship, assuming that the tube diameter modulus value of a 10ml syringe is in the range of 4-14, and the tube diameter modulus value of a 20ml syringe is in the range of 12-22, the intersection range of the two is 12-14, and the median value is 13, the tube diameter modulus value of the calibrated 10ml syringe is in the range of 4-13, and the tube diameter modulus value of the 20ml syringe is in the range of 13-22.
In one embodiment, the upper limit and the lower limit of the recognizable range of the syringe pipe diameter are predetermined, and when the pressure lever is placed at the lowest position, the corresponding modulus sampling value at the lowest position belongs to the lower limit value; and when the pressure lever is placed at the highest position, the modulus sampling value corresponding to the highest position belongs to the upper limit value. And setting a numerical value small range for the lower limit value and a numerical value small range for the upper limit value, and judging that the pipe diameter of the injector belongs to the pipe diameter range which cannot be identified when the pipe diameter of the injector is smaller than the numerical value small range corresponding to the lower limit value or larger than the numerical value small range corresponding to the upper limit value.
In this embodiment, after the calibration of the caliber specification of the syringe in the heparin pump, the actual model of the caliber of the infusion pump can be quickly and accurately determined, so as to accurately control the liquid output speed in the infusion pump.
In one embodiment, the method further comprises: acquiring the current push rod mileage and the current pipeline pressure of the injector; when the current push rod mileage is equal to the corresponding push injection completion mileage and the current pipeline pressure is the same as the preset pipeline pressure, the liquid in the injector is judged to be injected and completed, and the prompt message of injection completion is sent to the upper computer.
Specifically, when judging whether the injector finishes injecting in the infusion pump, the mileage and the pipeline pressure of the push rod can be combined for judgment, and when the current push rod mileage is equal to the corresponding injecting completion mileage and the current pipeline pressure is the same as the preset pipeline pressure, the completion of injecting the liquid in the injector is judged. Further, after the injection is completed, the single chip microcomputer can send prompt information of the completion of the injection to the upper computer, and the upper computer can display the prompt information to remind a user that the infusion pump is in the injection completion state at the moment.
In the embodiment, the two modes of 'mileage of the push rod' and 'pipeline pressure' are combined, so that errors in judgment of completion of injection can be eliminated, and the judgment accuracy of completion of injection of the injector is improved.
In one embodiment, prior to obtaining the current ram mileage and the current line pressure for the injector, the method further comprises: acquiring a first push rod mileage corresponding to the injector in a state that the injection is finished; after extra pressure is applied to the push head of the infusion pump in the state that the injection is finished, acquiring a second push rod mileage corresponding to the injector; and when the first push rod mileage is the same as the second push rod mileage, determining the first push rod mileage as a bolus completion mileage.
In this embodiment, before finishing the judgment of the bolus injection, the injector of each specification needs to be pre-calibrated to identify whether the heparin pump of each specification completely outputs heparin.
Specifically, the injectors with each pipe diameter (10, 20, 30 and 50 ml) are installed, and the injectors are pushed to the bottom by the push heads (namely, the push injection is completed); the sliding rheostat is arranged on the push rod, when the push head moves, the sliding rheostat is driven to move, the resistance value of the sliding rheostat is changed, the mileage of the push rod is calculated through the sliding rheostat, and the mileage is the first push rod mileage corresponding to the injector with the diameter.
After the first push rod mileage corresponding to the injector with each pipe diameter is obtained, a certain thrust is continuously applied to the push head, the second push rod mileage corresponding to the injector is obtained, and when the first push rod mileage is the same as the second push rod mileage, the first push rod mileage is determined as the push injection completion mileage so as to complete the push injection completion mileage calibration.
In one embodiment, after the single chip microcomputer obtains the push injection completion mileage of each regular injector, the push injection completion mileage corresponding to the injector with each pipe diameter is stored in real time.
In one embodiment, the method further comprises: detecting at least one of the pipe diameter model of the injector, the kneading state of the pushing head, the clamping state of the clutch, the pressure state of the zero point and the blocking state of the pipeline; and when the infusion pump is judged to have a fault according to the obtained detection result, sending alarm information corresponding to the fault to the upper computer so that the upper computer displays the alarm information.
In one embodiment, the single chip microcomputer can also periodically detect the pipeline pressure of the heparin pump and filter the pipeline pressure so as to eliminate errors in the pipeline pressure detection process; and judging whether the pipeline of the heparin pump is blocked or not according to the filtered pipeline pressure detection value, for example, judging that the pipeline of the heparin pump is blocked when the pressure in the pipeline in the heparin pump is greater than the preset safety pressure.
In one embodiment, the single chip microcomputer can also detect the kneading state of the push head and the push rod. Under normal conditions, the pushing head and the push rod are tightly connected, namely in a kneading state, when the pushing head and the push rod are detected not to be kneaded, the single chip microcomputer outputs a high-level signal, then the pushing head can generate empty pushing, the connection relation between the pushing head and the push rod needs to be reset, and therefore the single chip microcomputer needs to monitor the kneading state between the pushing head and the push rod in real time to guarantee the pushing control stability of the injector.
In one embodiment, the single chip microcomputer can also detect the pressure zero point of the push head. When the heparin pump is in a pushing head kneading-on state (when the pushing head and the pushing rod are kneaded-on, the pushing head does not apply any pressure by the pushing rod, such as heparin is completely output, or the injector is waiting for a starting stage), namely a zero-point state, the zero-point pressure of the pushing head is detected. The main purposes of detecting the zero pressure are as follows: in the process of detecting the pressure of the pipeline, the actually detected management pressure needs to be subtracted by a pressure zero point, namely the pressure of the pipeline.
It can be understood that the pressure zero point of the heparin pump theoretically belongs to a minimum value (a default value), and if the current pipeline pressure value is smaller than the pressure zero point, it indicates that the pressure zero point is set incorrectly or the physical structure of the heparin pump is worn and failed (for example, a screw is loosened), the pressure zero point needs to be set again after the heparin pump is subjected to fault elimination, so as to prevent the wear and the failure from occurring in the pipeline pressure detection process of the heparin pump.
It will also be appreciated that the pressure zero of the heparin pump needs to be within a preset zero range. When the zero point pressure of the pushing head is detected, whether the detected pressure zero point is in a preset zero point range or not is judged, if the pressure zero point is not in the preset zero point range, the pressure zero point is set incorrectly, and the pressure zero point needs to be reset after the heparin pump is subjected to troubleshooting, so that abrasion and faults are prevented from occurring in the pipeline pressure detection process of the heparin pump.
In one embodiment, the single chip microcomputer can also detect the clutch state of the heparin pump. Because the heparin pump comprises the clutch component, only when the clutch component tightly clamps the push head component can accurate pushing force be applied to the push head component, and the safety and stability of pushing of the push head component are guaranteed. In the process of outputting heparin by the heparin pump, the pushing head part is emergently clamped by the clutch part, and the heparin pump is in a safe pushing state at the moment.
Further, after at least one of the specification of the diameter of the injector, the kneading state of the pushing head, the clamping state of the clutch, the zero pressure state and the pipeline blocking state is detected, if a fault is judged according to a detection result, for example, the specification of the diameter of the injector, the pushing head is opened, the pushing head is closed, the zero pressure state is abnormal, and the pipeline is blocked, alarm information is generated and transmitted to the upper computer in a CAN communication mode or a UART communication mode, and the upper computer CAN display various alarm information in real time so as to prompt a user (such as medical staff) about fault information.
In one embodiment, a method for processing data of an infusion pump is provided, wherein the infusion pump is a heparin pump, as shown in fig. 5, which is an overall functional diagram of the infusion pump. Referring to fig. 5, each item function of this heparin pump is realized through the singlechip, the singlechip includes CAN interrupt processing module, motor pulse interrupt processing module, motor hall interrupt processing module, system tick interrupt processing module, serial ports interrupt processing module, CAN agreement analysis processing module, serial ports agreement analysis processing module, motor acceleration and deceleration processing module, pulse speed measurement processing module, hall speed measurement processing module, ADC processing module, pilot lamp processing module, alarm processing module, main processing module, IO processing module, wherein:
CAN interruption processing module and CAN protocol analysis processing module are used for realizing the CAN communication function between each software function module in equipment host computer and the MCU, specifically, CAN interruption processing module is used for receiving the data packet and storing the data packet to the memory buffer area in the interruption process, CAN protocol analysis processing module is used for circularly reading the data in the memory buffer area, carrying out CAN protocol conversion, and analyzing the type of the data in the buffer area, for example, the type of the data in the buffer area includes: motor speed regulation function, state indication, readiness process, restart process, shutdown process, operation process, stop process, mode selection, version reading, alarm retransmission, flow rate calibration process, specification calibration process, blockage calibration process and start-stop retransmission,
then, transmitting the buffer data to a corresponding software function module according to the type of the buffer data; the CAN protocol conversion analysis processing module CAN also receive various detection information and alarm information to perform CAN protocol conversion, and the CAN interruption processing module transmits the detection information and the alarm information after the protocol conversion to the memory buffer area and periodically uploads the detection information and the alarm information to the upper computer.
The serial port interrupt processing module and the serial port protocol analysis processing module are used for realizing a UART communication function between each software function module in the PC upper computer and the MCU, and the specific process CAN refer to the description of the CAN communication, which is not repeated herein.
And the indicator lamp processing module is used for indicating whether the MCU of the single chip microcomputer crashes or not. The indicator light processing module is in a turned-off state after being initialized and configured. The specific work flow of the indicator light processing module is as follows: when the single chip microcomputer MCU is powered on and started, if the indicator light processing module executes the turning operation of the timing light-emitting state (namely light-emitting-non-light-emitting interval alternation), the heparin pump control process of the single chip microcomputer MCU is not halted; if the indication lamp processing module does not execute the turning operation of the timing light-emitting state, the fact that the heparin pump control process of the single-chip microcomputer MCU is halted is indicated. In one particular embodiment, the indicator light processing module may be an LED light.
The main processing module analyzes the motor instruction, judges the working mode of the motor, and transmits the state information (such as the target rotating speed) to the function control modules of the heparin pumps through a preset period if the motor is judged to be in the normal working mode.
The pulse velocity measurement processing module is used for measuring the pulse velocity of the motor, and specifically refer to the description in the above embodiments, which is not repeated herein.
The hall speed measurement processing module is used for carrying out hall speed measurement to the motor, specifically refers to the description in the above embodiment, and this application is not repeated herein.
The ADC processing module is configured to detect a clamping state of the clutch, a pipe diameter specification of the injector, a pressure (a blocking state) of the pipeline, and a pressure zero point of the push head in a centralized manner, specifically referring to the description in the above embodiment.
The IO processing module is configured to detect a kneading state of the pusher and the pusher, and refer to the description in the above embodiments.
Alarm processing module, with ADC processing module, CAN agreement analysis processing module and serial ports agreement analysis processing module are connected, as ADC processing module to the specification of syringe pipe diameter, the state of kneading of pushing away the head, the clamping state of clutch, zero point pressure state and pipeline jam state detect the back, send the testing result to alarm processing module, if detect any one of them state and break down, then alarm processing module generates alarm information, and transmit alarm information to the host computer through CAN communication mode or UART communication mode, each item alarm information CAN be shown in real time to the host computer, in order to indicate medical personnel's relevant fault information.
And the initialization module is used for carrying out initialization configuration on each software module in the MCU so as to realize the initialization function of each software module. Specifically, as shown in fig. 4, the initialization module is used for initializing the indicator light module to turn off the indicator light; the initialization module is also used for configuring the functions of ports such as enable, direction, current, pulse and the like in the motor control process and initializing the ports into a stop state. The initialization module is further configured to perform the following configuration in sequence: the system comprises a CAN communication configuration, a UART communication configuration, a push head configuration, a clutch configuration, a pipe diameter configuration, a pressure configuration, a pulse feedback configuration, a Hall feedback configuration, a storage configuration, parameter initialization and a timing scheduling configuration.
Further, the single chip microcomputer of the embodiment further comprises: the EEPROM storage module belongs to an internal memory of the MCU, and can store the specification of the pipe diameter, the rotating speed of the motor and the output capacity of heparin through the EEPROM storage module.
It should be noted that fig. 5 is a schematic diagram illustrating only a control method of the heparin pump, and for example, the above-mentioned "EEPROM memory module" is not shown in fig. 5; meanwhile, the functions of "mode selection", "version selection", "system tick interrupt processing module" and the like mentioned in fig. 5 are conventional and thus are not described above.
The infusion pump data processing method provided by the embodiment can ensure the control safety of the pushing head from various detailed aspects, and compared with the traditional technology that only some parts in the infusion pump are monitored, the problem that the infusion pump control is partially failed is easily caused.
Although the various steps in the flowcharts of fig. 2-5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-5 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 6, an infusion pump data processing device 600 is provided, comprising:
a speed obtaining module 602, configured to obtain a target rotation speed and a current rotation speed of a motor;
the point value obtaining module 604 is configured to obtain a point value sequence corresponding to a change in a rotation speed of the motor; the point value sequence is obtained by arranging a plurality of point values according to the size relationship;
a speed calculation module 606, configured to calculate a speed value corresponding to each point value according to the target rotation speed, the current rotation speed, and the point value sequence;
the speed regulating module 608 is configured to sequentially regulate the rotation speed of the motor to a corresponding speed value according to the sorting of the point values in the point value sequence until the current rotation speed of the motor meets a preset speed regulation stop condition; the speed regulation stopping condition is that the difference value between the current rotating speed and the target rotating speed of the motor does not exceed a preset threshold value.
In one embodiment, the speed acquisition module is further to: calculating a speed value corresponding to each point value according to the target rotating speed, the current rotating speed and the point value sequence and the following formulas (3) and (4);
motorRate = motorRateMin + (motorRateMax- motorRateMin)*f(x) (3);
f(x) = 1/(1+e^(-x) ) = e^x/(1+e^x ) (4);
wherein, the motorRate is a speed value corresponding to the point value; motorRateMin is the minimum value of the motor rotation speed; motorRateMax is the maximum value of the motor rotation speed; x is a point value in the sequence of point values.
In one embodiment, the throttle module is further configured to: when the motor is judged to be in an acceleration state according to the target rotating speed and the current rotating speed, regulating the rotating speed of the motor to a corresponding speed value in sequence from small to large according to point values until the current rotating speed of the motor meets a speed regulation stopping condition; when the motor is judged to be in a deceleration state according to the target rotating speed and the current rotating speed, the rotating speed of the motor is adjusted to a corresponding speed value from large to small according to the point value in sequence until the current rotating speed of the motor meets the speed regulation stop condition.
In one embodiment, the speed acquisition module is further to: receiving a motor acceleration and deceleration command, wherein the motor acceleration and deceleration command carries a target output speed of liquid in the infusion pump; and when the motor is judged to be in the normal working mode according to the motor acceleration and deceleration command, determining the target rotating speed of the motor according to the target output speed of the liquid in the infusion pump.
In one embodiment, the speed acquisition module is further to: receiving a motor acceleration and deceleration command through a first communication interface; or receiving a motor acceleration and deceleration command through a second communication interface; the first communication interface is a communication interface corresponding to the controller area network; the second communication interface is a communication interface corresponding to the serial port communication.
In one embodiment, the speed acquisition module is further to: when a first speed measuring instruction is received, acquiring the number of pulses output by a motor within a preset time; and when the number of the pulses exceeds the preset number of the pulses, determining the current rotating speed of the motor according to the number of the pulses.
In one embodiment, the speed acquisition module is further to: when a second speed measurement instruction is received, after a preset delay time, carrying out Hall sampling on the rotation state of the motor within a preset time to obtain a corresponding Hall number; and when the Hall number exceeds the preset Hall number, the current rotating speed of the motor is obtained according to the Hall number.
In one embodiment, the device further comprises a pipe diameter model identification module, which is used for carrying out analog-digital sampling on the pipe diameter of the injector according to a preset time interval; filtering the obtained modulus sampling value; and determining the pipe diameter model of the current injector according to the analog-digital sampling value after filtering and the pipe diameter modulus value range corresponding to each pipe diameter model.
In one embodiment, the device further comprises a specification calibration module for acquiring modulus sampling values corresponding to the lowest position of the pressure rod of the infusion pump, the highest position of the pressure rod and the placement of each specification injector on the pressure rod; determining the linear relation between the pipe diameter of the injector and the modulus sampling value according to the modulus sampling value corresponding to the pressure rod of the infusion pump at the lowest position and the pressure rod at the highest position; determining the pipe diameter modulus value range corresponding to each specification of injector according to the modulus sampling value corresponding to each specification of injector and the preset offset; judging whether the pipe diameter modulus value ranges corresponding to the injectors of the adjacent specifications are crossed or not according to the linear relation; if the cross range exists, calibrating the pipe diameter modulus value range corresponding to the injector with the adjacent specification according to the middle value of the cross range.
In one embodiment, the device further comprises a bolus completion judgment module for acquiring the current push rod mileage and the current pipeline pressure of the injector; when the current push rod mileage is equal to the corresponding push injection completion mileage and the current pipeline pressure is the same as the preset pipeline pressure, the liquid in the injector is judged to be injected and completed, and the prompt message of injection completion is sent to the upper computer.
In one embodiment, the device further comprises a bolus completion calibration module, configured to obtain a first push rod mileage corresponding to the injector in a bolus completion state; after additional pressure is applied to the pushing head of the infusion pump in the state that the injection is finished, acquiring the mileage of a second push rod corresponding to the injector; and when the first push rod mileage is the same as the second push rod mileage, determining the first push rod mileage as a bolus completion mileage.
In one embodiment, the device further comprises a detection module for detecting at least one of the pipe diameter model of the injector, the kneading state of the pushing head, the clamping state of the clutch, the pressure state of a zero point and the blocking state of the pipeline; and when the infusion pump is judged to have a fault according to the obtained detection result, sending alarm information corresponding to the fault to the upper computer so that the upper computer displays the alarm information.
For specific limitations of the infusion pump data processing device, reference may be made to the above limitations on the infusion pump data processing method, which are not described herein again. The modules in the infusion pump data processing device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, an infusion pump is provided, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of data processing of the infusion pump in the above embodiments when executing the computer program.
In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, which when executed by a processor, implements the steps of infusion pump data processing in the above embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (12)

1. An infusion pump comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program performs the steps of:
acquiring a target rotating speed and a current rotating speed of a motor;
acquiring a point value sequence corresponding to the change of the rotating speed of the motor; the point value sequence is obtained by arranging a plurality of point values according to a size relation;
calculating a speed value corresponding to each point value according to the target rotating speed, the current rotating speed and the point value sequence and the following formula;
motorRate = motorRateMin + (motorRateMax- motorRateMin)*f(x);
f(x) = 1/(1+e^(-x) ) = e^x/(1+e^x );
wherein, the motorRate is a speed value corresponding to the point value; motorRateMin is the minimum value of the motor rotation speed; motorRateMax is the maximum value of the motor rotation speed; x is a point value in the point value sequence;
when the motor is judged to be in an acceleration state according to the target rotating speed and the current rotating speed, adjusting the rotating speed of the motor to a corresponding speed value in sequence from small to large according to point values until the current rotating speed of the motor meets a speed regulation stopping condition;
when the motor is judged to be in a deceleration state according to the target rotating speed and the current rotating speed, adjusting the rotating speed of the motor to a corresponding speed value in sequence from large to small according to point values until the current rotating speed of the motor meets a speed regulation stopping condition;
the speed regulation stopping condition is that the difference value between the current rotating speed of the motor and the target rotating speed does not exceed a preset threshold value.
2. The infusion pump according to claim 1, wherein said processor when executing said computer program further performs the steps of:
performing analog-digital sampling on the pipe diameter of the injector according to a preset time interval;
filtering the obtained modulus sampling value;
and determining the pipe diameter model of the current injector according to the analog-digital sampling value after filtering and the pipe diameter modulus value range corresponding to each pipe diameter model.
3. The infusion pump according to claim 2, wherein said processor when executing said computer program prior to said analog-to-digital sampling of the syringe's caliber at preset time intervals further performs the steps of:
acquiring modulus sampling values corresponding to the infusion pump when a pressure rod is at the lowest position, the highest position and the placement of injectors of various specifications on the pressure rod;
determining the linear relation between the pipe diameter of the injector and the modulus sampling value according to the modulus sampling value corresponding to the pressure rod of the infusion pump at the lowest position and the pressure rod at the highest position;
determining the pipe diameter modulus value range corresponding to each specification of injector according to the modulus sampling value corresponding to each specification of injector and the preset offset;
judging whether the pipe diameter modulus value ranges corresponding to the injectors of the adjacent specifications are crossed or not according to the linear relation;
and if so, calibrating the pipe diameter modulus value range corresponding to the adjacent specification injectors according to the middle value of the cross range.
4. The infusion pump according to claim 1, wherein said processor when executing said computer program further performs the steps of:
acquiring the current push rod mileage and the current pipeline pressure of the injector;
and when the current push rod mileage is equal to the corresponding push injection completion mileage and the current pipeline pressure is equal to the preset pipeline pressure, judging that the liquid injection in the injector is completed, and sending prompt information of the completed injection to an upper computer.
5. The infusion pump according to claim 4, wherein said processor when executing said computer program prior to said obtaining a current plunger mileage and a current line pressure for a syringe further performs the steps of:
acquiring a first push rod mileage corresponding to the injector in a state that the injection is finished;
after extra pressure is applied to the push head of the infusion pump in the state that the injection is finished, acquiring a second push rod mileage corresponding to the injector;
when the first push rod mileage is the same as the second push rod mileage, determining the first push rod mileage as a bolus completion mileage.
6. The infusion pump according to any one of claims 1 to 5, wherein said processor when executing said computer program further performs the steps of:
detecting at least one of the pipe diameter model of the injector, the kneading state of the pushing head, the clamping state of the clutch, the pressure state of the zero point and the blocking state of the pipeline;
and when the infusion pump is judged to have a fault according to the obtained detection result, sending alarm information corresponding to the fault to an upper computer so that the upper computer displays the alarm information.
7. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the following steps of infusion pump data processing:
acquiring a target rotating speed and a current rotating speed of a motor;
acquiring a point value sequence corresponding to the change of the rotating speed of the motor; the point value sequence is obtained by arranging a plurality of point values according to a size relation;
calculating a speed value corresponding to each point value according to the target rotating speed, the current rotating speed and the point value sequence and the following formula;
motorRate = motorRateMin + (motorRateMax- motorRateMin)*f(x);
f(x) = 1/(1+e^(-x) ) = e^x/(1+e^x );
wherein, the motorRate is a speed value corresponding to the point value; motorRateMin is the minimum value of the motor rotation speed; motorRateMax is the maximum value of the motor rotation speed; x is a point value in the point value sequence;
when the motor is judged to be in an acceleration state according to the target rotating speed and the current rotating speed, adjusting the rotating speed of the motor to a corresponding speed value in sequence from small to large according to point values until the current rotating speed of the motor meets a speed regulation stopping condition;
when the motor is judged to be in a deceleration state according to the target rotating speed and the current rotating speed, adjusting the rotating speed of the motor to a corresponding speed value in sequence from large to small according to point values until the current rotating speed of the motor meets a speed regulation stopping condition;
the speed regulation stopping condition is that the difference value between the current rotating speed of the motor and the target rotating speed does not exceed a preset threshold value.
8. The storage medium according to claim 7, wherein the computer program when executed by the processor further performs the steps of:
performing analog-digital sampling on the pipe diameter of the injector according to a preset time interval;
filtering the obtained modulus sampling value;
and determining the pipe diameter model of the current injector according to the analog-digital sampling value after the filtering treatment and the pipe diameter modulus value range corresponding to each pipe diameter model.
9. The storage medium of claim 8, wherein prior to said analog-to-digital sampling of the caliber of the injector at the preset time interval, the computer program when executed by the processor further performs the steps of:
acquiring modulus sampling values corresponding to the pressure rod of the infusion pump at the lowest position, the pressure rod at the highest position and the injectors of various specifications placed on the pressure rod;
determining the linear relation between the pipe diameter of the injector and the modulus sampling value according to the modulus sampling value corresponding to the pressure rod of the infusion pump at the lowest position and the pressure rod at the highest position;
determining the pipe diameter modulus value range corresponding to each specification of injector according to the modulus sampling value corresponding to each specification of injector and the preset offset;
judging whether the pipe diameter modulus value ranges corresponding to the injectors of the adjacent specifications are crossed or not according to the linear relation;
and if so, calibrating the pipe diameter modulus value range corresponding to the adjacent specification injectors according to the middle value of the cross range.
10. The storage medium according to claim 7, wherein the computer program when executed by the processor further performs the steps of:
acquiring the current push rod mileage and the current pipeline pressure of the injector;
and when the current push rod mileage is equal to the corresponding push injection completion mileage and the current pipeline pressure is equal to the preset pipeline pressure, judging that the liquid injection in the injector is completed, and sending prompt information of the completed injection to an upper computer.
11. The storage medium of claim 10, wherein prior to said obtaining a current ram mileage and a current line pressure for an injector, the computer program when executed by a processor further performs the steps of:
acquiring a first push rod mileage corresponding to the injector in a state that the injection is finished;
after additional pressure is applied to the pushing head of the infusion pump in the state that the injection is finished, acquiring the mileage of a second push rod corresponding to the injector;
when the first push rod mileage is the same as the second push rod mileage, determining the first push rod mileage as a bolus completion mileage.
12. The storage medium according to any of claims 7 to 11, wherein the computer program, when executed by the processor, further performs the steps of:
detecting at least one of the pipe diameter model of the injector, the kneading state of the pushing head, the clamping state of the clutch, the pressure state of the zero point and the blocking state of the pipeline;
and when the infusion pump is judged to have a fault according to the obtained detection result, sending alarm information corresponding to the fault to an upper computer so that the upper computer displays the alarm information.
CN202011208170.0A 2020-11-03 2020-11-03 Infusion pump data processing method, infusion pump and storage medium Active CN112494752B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011208170.0A CN112494752B (en) 2020-11-03 2020-11-03 Infusion pump data processing method, infusion pump and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011208170.0A CN112494752B (en) 2020-11-03 2020-11-03 Infusion pump data processing method, infusion pump and storage medium

Publications (2)

Publication Number Publication Date
CN112494752A CN112494752A (en) 2021-03-16
CN112494752B true CN112494752B (en) 2022-11-18

Family

ID=74955466

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011208170.0A Active CN112494752B (en) 2020-11-03 2020-11-03 Infusion pump data processing method, infusion pump and storage medium

Country Status (1)

Country Link
CN (1) CN112494752B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114810567B (en) * 2022-03-29 2024-05-14 深圳市好克医疗仪器股份有限公司 Enteral nutrition pump control method, enteral nutrition pump control system, enteral nutrition pump and storage medium
CN117647949B (en) * 2024-01-29 2024-04-12 深圳市安保医疗科技股份有限公司 Infusion pump control system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103269165A (en) * 2012-04-23 2013-08-28 崇贸科技股份有限公司 Switching control circuit for power conversation
CN106224223A (en) * 2016-09-21 2016-12-14 杭州双业能源设备有限公司 Tank car method for controlling pump and device
CN207923048U (en) * 2018-01-12 2018-09-28 佛山市艾米康医疗科技有限公司 A kind of infusion thickness of pipe wall self-operated measuring unit
CN109002064A (en) * 2017-11-10 2018-12-14 广州极飞科技有限公司 Fluid flow control method and its device, liquid sprayer, flight instruments
CN111490711A (en) * 2020-04-09 2020-08-04 北京理工大学 Method for controlling motor rotation speed of fire-fighting robot based on PID and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103269165A (en) * 2012-04-23 2013-08-28 崇贸科技股份有限公司 Switching control circuit for power conversation
CN106224223A (en) * 2016-09-21 2016-12-14 杭州双业能源设备有限公司 Tank car method for controlling pump and device
CN109002064A (en) * 2017-11-10 2018-12-14 广州极飞科技有限公司 Fluid flow control method and its device, liquid sprayer, flight instruments
CN207923048U (en) * 2018-01-12 2018-09-28 佛山市艾米康医疗科技有限公司 A kind of infusion thickness of pipe wall self-operated measuring unit
CN111490711A (en) * 2020-04-09 2020-08-04 北京理工大学 Method for controlling motor rotation speed of fire-fighting robot based on PID and electronic equipment

Also Published As

Publication number Publication date
CN112494752A (en) 2021-03-16

Similar Documents

Publication Publication Date Title
CN112494752B (en) Infusion pump data processing method, infusion pump and storage medium
JP7061463B2 (en) IV flow management system and method
CA2551817C (en) Empty container detection using container side pressure sensing
US4919596A (en) Fluid delivery control and monitoring apparatus for a medication infusion system
EP2991701B1 (en) Sensing a status of an infuser based on sensing motor control and power input
EP0319267B1 (en) Fluid delivery control and monitoring apparatus
US9033951B2 (en) Occlusion detection for a fluid infusion device
US8628510B2 (en) Monitoring the operating health of a force sensor in a fluid infusion device
US8556856B2 (en) Monitoring the seating status of a fluid reservoir in a fluid infusion device
WO2012126744A1 (en) Infusion system and method of integrity testing and leak detection
CA2913421A1 (en) Multi-sensor infusion system for detecting air or an occlusion in the infusion system
CN1522163A (en) Occlusion detection method and system for ambulatory drug infusion pump
CN112089924B (en) Automatic calibration control system and control method for infusion precision of infusion pump
WO2012126745A2 (en) Methods and devices for operating an infusion system
CN107583144B (en) High-precision safe micro-injection pump and method for multi-brand injectors
EP3124066A1 (en) Liquid-drug administration device
CN105797234A (en) Control method and device of infusion pump
WO2019156848A1 (en) Systems, apparatuses and methods for occlusion detection using pump operation measurement
AU2021413112A1 (en) Systems and methods for occlusion detection in infusion pumps
US20220008634A1 (en) A method for checking the conveying accuracy of conveying devices of a medical treatment apparatus, and apparatuses
EP3432946A1 (en) Infusion device and method for administering a medical fluid to a patient
WO2017008960A1 (en) Method and device for detecting an occlusion in an infusion line
EP4036407A1 (en) Pump control based on bubble detection
US11040147B2 (en) Injector position sensing
CN116785533A (en) Method and system for detecting needle falling off

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant