Method and device for detecting abnormity of stroke locator of injection pump and electronic equipment
By detecting the level status of the photoelectric sensor in the syringe pump and updating the reference value, the problem of abnormal stroke positioner caused by the change in the photoelectric sensor level is solved, and the safety and reliability of the syringe pump are improved.
Patent Information
- Application Number
- CN202411110953.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-13
- Publication Date
- 2024-11-08
AI Technical Summary
The level status of the photoelectric sensor in the existing syringe pump is constantly changing, and it is impossible to directly judge its normal working status, resulting in abnormal stroke positioning device that cannot be detected in time, which may lead to errors in positioning of the push handle, drug injection errors and patient safety hazards.
By sequentially detecting the level status of a plurality of photoelectric sensors set at equal intervals, updating the first reference value and the second reference value, determining whether there is an abnormality in the stroke positioner based on the final reference value, and sending an alarm command when an abnormality is detected.
Accurate abnormal detection of the stroke positioner of the syringe pump is achieved, avoiding errors in positioning of the push handle, drug injection errors and patient safety hazards, and improving the safety and reliability of the syringe pump.
Smart Images

Figure CN118913102A_ABST
Abstract
Description
Background Art
[0002] During the operation of the injection pump, it is necessary to pay real-time attention to the position of the syringe push handle and calculate the remaining time for the liquid in the syringe to be emptied, so as to take corresponding preventive measures when the liquid is emptied to avoid unnecessary damage to the patient or the internal components of the injection pump.
[0003] The positioning of the syringe push handle usually requires the help of external structures, such as photoelectric sensors. However, during the operation of the syringe pump, the level of the photoelectric sensor will be in a constantly changing state, so it is impossible to directly judge whether the photoelectric sensor is working properly by the level of the photoelectric sensor. The more photoelectric sensors there are, the greater the possibility of damage. When the photoelectric sensor is damaged, if the alarm is not given in time, there may be problems such as incorrect positioning of the push handle and error in drug injection. More seriously, it will cause safety hazards to patients.
[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0005] The purpose of the present application is to provide a method for detecting abnormalities in the stroke locator of an injection pump, an apparatus for detecting abnormalities in the stroke locator of an injection pump, a computer-readable storage medium and an electronic device, thereby at least to a certain extent overcoming the problem that the abnormalities in the stroke locator cannot be promptly known due to the limitations and defects of the relevant technology, resulting in errors in the positioning of the push handle, errors in drug injection, and potential safety hazards to patients.
[0006] According to one aspect of the present application, a method for detecting an abnormality of a stroke locator of an injection pump is provided, wherein the stroke locator includes a plurality of photoelectric sensors arranged at equal intervals; the method includes: detecting the level state of each of the photoelectric sensors in turn, and when a target photoelectric sensor is at a high level, comparing a first reference value and a second reference value with the distance between the target photoelectric sensor and a fixed end of a push rod of the injection pump, respectively, and updating the first reference value and the second reference value according to the comparison result; repeating the above steps according to the updated first reference value and the second reference value until the detection of all the photoelectric sensors is completed, and judging whether the stroke locator has an abnormality according to the final first reference value and the second reference value.
[0007] According to one aspect of the present application, a device for detecting an abnormality of a stroke locator of an injection pump is provided, wherein the stroke locator includes a plurality of photoelectric sensors arranged at equal intervals; the device includes: a comparison module, for detecting the level state of each of the photoelectric sensors in turn, and when a target photoelectric sensor is at a high level, comparing a first reference value and a second reference value with the distance between the target photoelectric sensor and a fixed end of a push rod of the injection pump, respectively, and updating the first reference value and the second reference value according to the comparison result; a judgment module, for repeating the above steps according to the updated first reference value and the second reference value until the detection of all the photoelectric sensors is completed, and judging whether the stroke locator has an abnormality according to the final first reference value and the second reference value.
[0008] In an exemplary embodiment of the present application, the comparison module is configured as follows: when the target photoelectric sensor is detected to be in a high-level state for the first time, the distance between the target photoelectric sensor and the fixed end of the push rod is compared according to an initial first reference value and an initial second reference value, respectively; wherein the initial first reference value is smaller than the minimum distance between each of the photoelectric sensors and the fixed end of the push rod, and the initial second reference value is larger than the maximum value between each of the photoelectric sensors and the fixed end of the push rod.
[0009] In an exemplary embodiment of the present application, the device for detecting an abnormality of the stroke positioner of an injection pump includes: a sequence construction module, which is used to construct an arithmetic sequence based on the distance between each of the photoelectric sensors and the fixed end of the push rod before sequentially detecting the level state of each of the photoelectric sensors; an assignment module, which is used to use the minimum value in the arithmetic sequence as the initial first reference value and the maximum value in the arithmetic sequence as the initial second reference value; wherein the position corresponding to the minimum value is close to the fixed end of the push rod, the position corresponding to the maximum value is far away from the fixed end of the push rod, and the position of each of the photoelectric sensors is between the positions corresponding to the minimum value and the maximum value.
[0010] In an exemplary embodiment of the present application, the number series construction module is configured as follows: marking the photoelectric sensor closest to the fixed end of the push rod as the starting sensor, and marking the photoelectric sensor farthest from the fixed end of the push rod as the ending sensor; setting a first marking point between the starting sensor and the fixed end of the push rod, and the distance between the first marking point and the starting sensor is the same as the distance between two adjacent photoelectric sensors; setting a second marking point on the side of the ending sensor away from the fixed end of the push rod, and the distance between the second marking point and the ending sensor is the same as the distance between two adjacent photoelectric sensors; constructing the arithmetic sequence according to the distances between the first marking point, each of the photoelectric sensors and the second marking point and the fixed end of the push rod.
[0011] In one embodiment of the present application, the comparison module is configured to: compare the first reference value with the distance to determine whether the first reference value is smaller than the distance; when it is determined that the first reference value is smaller than the distance, use the distance as the updated first reference value; and compare the second reference value with the distance to determine whether the second reference value is greater than the distance; when it is determined that the second reference value is greater than the distance, use the distance as the updated second reference value.
[0012] In one embodiment of the present application, the judgment module is configured to: obtain the difference between the final first reference value and the final second reference value; compare the difference with the distance between two adjacent photoelectric sensors; when the difference is greater than the distance, determine that there is an abnormality in the stroke locator; when the difference is less than or equal to the distance, determine that the stroke locator is normal.
[0013] In one embodiment of the present application, the device for detecting an abnormality of a stroke positioner of an injection pump is configured to send an alarm instruction to an alarm device when it is determined that an abnormality exists in the stroke positioner.
[0014] According to one aspect of an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for detecting an abnormality of a stroke positioner of an injection pump in the above technical solution is implemented.
[0015] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the method for detecting an abnormality of an injection pump stroke locator as in the above technical solution by executing the executable instructions.
[0016] According to one aspect of an embodiment of the present application, a computer program product is provided, which includes computer instructions. When the computer instructions are executed on a computer, the computer executes the method for detecting an abnormality of a stroke positioner of an injection pump as in the above technical solution.
[0017] The method for detecting abnormality of the stroke locator of the injection pump in the present application detects the level state of each photoelectric sensor in turn. When the target photoelectric sensor is at a high level, the first reference value and the second reference value are compared with the distance between the target photoelectric sensor and the fixed end of the push rod of the injection pump, and the first reference value and the second reference value are updated according to the comparison result. The above steps are repeated according to the updated first reference value and the second reference value until the detection of all photoelectric sensors is completed, and the stroke locator is judged to be abnormal according to the final first reference value and the second reference value. The present application can accurately judge whether the stroke locator is abnormal during the operation of the injection pump, thereby avoiding problems such as push handle position positioning errors, drug injection errors and patient safety hazards caused by abnormal stroke locators.
[0018] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present specification. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the specification, and are used together with the specification to explain the principles of the specification. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 A schematic diagram schematically illustrates the structure of the system architecture of the method for detecting abnormality of the stroke positioner of an injection pump in an embodiment of the present application.
[0021] Figure 2 A schematic flow chart of the steps of the method for detecting abnormality of the stroke positioner of an injection pump in the present application is schematically shown.
[0022] Figure 3 A partial structural diagram of the injection pump in the present application is schematically shown.
[0023] Figure 4 A schematic diagram of a process for determining an initial first reference value and an initial second reference value in the present application is shown.
[0024] Figure 5 The flowchart of determining whether there is an abnormality in the stroke positioner in the present application is schematically shown.
[0025] Figure 6 The structural diagram of the device for detecting abnormality of the stroke positioner of the injection pump in the present application is schematically shown.
[0026] Figure 7The structural diagram of the electronic device used to implement the method for detecting abnormality of the stroke positioner of the injection pump in the present application is schematically shown.
[0027] Figure 8 The program product for implementing the method for detecting abnormality of the stroke positioner of the injection pump in the present application is schematically shown. DETAILED DESCRIPTION
[0028] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.
[0029] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0030] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0031] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0032] In the related art of the present application, the push handle position of the syringe is usually located according to the level state of the photoelectric sensor set on the injection pump. However, during the operation of the injection pump, the level of the photoelectric sensor will be in a constantly changing state. Therefore, it is impossible to directly judge whether the photoelectric sensor is working normally by the level of the photoelectric sensor, and it is also impossible to judge whether the stroke positioner of the injection pump is abnormal. If there is an abnormality in the stroke positioner of the injection pump, it may cause the push handle position to be positioned incorrectly, resulting in drug injection errors, and posing a safety hazard to patients.
[0033] In view of the problems existing in the related art in this field, the embodiment of the present application proposes a method for detecting abnormality of the stroke positioner of an injection pump. Next, firstly, an exemplary system architecture applying the technical solution of the present application is described.
[0034] Figure 1 The exemplary system architecture block diagram applying the technical solution of the present application is schematically shown.
[0035] like Figure 1 As shown, the system architecture 100 may include a single-chip microcomputer 110 and a syringe pump 120. The single-chip microcomputer 110 can control the syringe pump 120 to work according to the set parameters. A syringe is fixed in the syringe pump 120. After the syringe pump 120 is started, the syringe can absorb the liquid medicine and inject it according to the set injection parameters. The single-chip microcomputer 110 and the syringe pump 120 are connected through a communication link, such as a wired communication link or a wireless communication link.
[0036] In one embodiment of the present application, when the user completes the injection parameter setting, the injection pump is triggered to start, and the single-chip computer 110 responds to the start instruction and detects the level status of multiple photoelectric sensors included in the stroke positioner on the injection pump 120 according to the preset detection logic. When the target photoelectric sensor is detected to be at a high level, the first reference value and the second reference value are compared with the distance between the target photoelectric sensor and the fixed end of the push rod, respectively, and the first reference value and the second reference value are updated according to the comparison result; the process is repeated according to the updated first reference value and the second reference value until the detection of all photoelectric sensors is completed, and it is judged whether there is an abnormality in the stroke positioner based on the final first reference value and the second reference value.
[0037] In one embodiment of the present application, an alarm device may also be provided. The alarm device may be a terminal device with a display screen, which is used to remind the user of abnormalities in the travel locator in the form of images, texts, or videos. It may also be a terminal device with an audio playback unit, which is used to remind the user of abnormalities in the travel locator in the form of sounds, such as buzzers. Of course, it may also be a terminal device with both an audio playback unit and a display screen. The terminal device may be, for example, an electronic device such as a smart phone, a laptop computer, or a desktop computer. The embodiments of the present application do not specifically limit this.
[0038] Next, in combination with specific implementation methods, the technical solutions provided in the present application, such as a method for detecting an abnormality of a syringe pump stroke positioner, an apparatus for detecting an abnormality of a syringe pump stroke positioner, a computer-readable medium, and an electronic device, are described in detail.
[0039] Figure 2The schematic diagram of the step flow of the method for detecting an abnormality of the stroke positioner of the injection pump in one embodiment of the present application is shown schematically. The method for detecting an abnormality of the stroke positioner of the injection pump is executed by a single chip microcomputer, which can be specifically Figure 1 The microcontroller 110 in the travel positioner includes a plurality of photoelectric sensors arranged at equal intervals. Figure 2 As shown, the method for detecting abnormality of the injection pump stroke positioner in the embodiment of the present application can mainly include the following steps S210 to S220.
[0040] Step S210: sequentially detecting the level state of each of the photoelectric sensors, and when the target photoelectric sensor is at a high level, comparing the first reference value and the second reference value with the distance between the target photoelectric sensor and the fixed end of the push rod of the injection pump, and updating the first reference value and the second reference value according to the comparison result;
[0041] Step S220: Repeat the above steps according to the updated first reference value and the second reference value until the detection of all the photoelectric sensors is completed, and determine whether the stroke positioner is abnormal according to the final first reference value and the second reference value.
[0042] In the method for detecting abnormality of the stroke positioner of the injection pump provided in the embodiment of the present application, when the target photoelectric sensor is at a high level, the first reference value and the second reference value are compared with the distance between the target photoelectric sensor and the fixed end of the push rod of the injection pump, respectively, and the first reference value and the second reference value are updated according to the comparison result; the above steps are repeated according to the updated first reference value and the second reference value until the detection of all photoelectric sensors is completed, and the stroke positioner is judged to be abnormal according to the final first reference value and the second reference value. The present application can quickly and accurately judge whether the stroke positioner is abnormal, further improving the safety and reliability of the injection pump.
[0043] The specific implementation of each method step of the method for detecting an abnormality of the stroke positioner of an injection pump in an embodiment of the present application is described in detail below.
[0044] In step S210, the level state of each of the photoelectric sensors is detected in turn. When the target photoelectric sensor is at a high level, the first reference value and the second reference value are compared with the distance between the target photoelectric sensor and the fixed end of the push rod of the injection pump, and the first reference value and the second reference value are updated according to the comparison result.
[0045] In one embodiment of the present application, the injection pump generally includes components such as a pump body, an infusion pipeline, a control panel and a power supply. Figure 3 The schematic diagram of the local structure of the injection pump is shown schematically. Figure 3As shown, the injection pump includes a pump body 301 and an infusion pipeline 302; the pump body 301 includes a motor (not shown), a screw 301-1, a pump head 301-2, a push rod 301-3, a slider 301-4 and a stroke positioner 301-5, and the stroke positioner 301-5 includes a plurality of photoelectric sensors arranged at equal intervals. During the operation of the injection pump, some photoelectric sensors are blocked by the slider 301-4, and some photoelectric sensors are not blocked by the slider 301-4; the infusion pipeline 302 includes a syringe 302-1 and an infusion tube 302-2.
[0046] In one embodiment of the present application, after the syringe pump is started, the working process of the syringe pump includes two stages. The first stage is the liquid suction stage, in which the pump head drives the piston in the syringe to retreat, forming a low-pressure area in the syringe, and the liquid or gas enters the syringe through the inlet; the second stage is the liquid pushing stage, in which the pump head moves forward, increasing the pressure in the syringe, and the liquid or gas is pushed into the infusion tube to complete the delivery process. Based on this working process, after the syringe pump is started in the embodiment of the present application, the photoelectric sensor is detected to determine whether there is an abnormality in the stroke locator.
[0047] like Figure 3 As shown, the travel positioner 301-5 includes 5 photoelectric sensors. When the photoelectric sensors are detected, each photoelectric sensor can be detected in sequence according to the arrangement order of the multiple photoelectric sensors. In the embodiment of the present application, the detection can be carried out from left to right or from right to left. Considering that the first stage is the liquid suction stage, the slider moves from left to right. Therefore, in the embodiment of the present application, the multiple photoelectric sensors are numbered in order from left to right, and each photoelectric sensor is detected in sequence, such as Figure 3 As shown, the photoelectric sensor closest to the push rod fixed side S1 is photoelectric sensor No. 1, followed by photoelectric sensors No. 2, No. 3, No. 4, and No. 5, that is, photoelectric sensor No. 5 is farthest from the push rod fixed side S1.
[0048] After determining the detection order of the photoelectric sensor, the photoelectric sensor in the stroke positioner can be periodically detected, for example, once every 10 seconds, etc. Of course, other intervals can also be set, and the embodiment of the present application does not specifically limit this. Next, taking a round of detection of the stroke positioner as an example, the method for detecting abnormalities of the stroke positioner of the injection pump in the embodiment of the present application is explained.
[0049] In one embodiment of the present application, photoelectric sensors 1 to 5 are detected in sequence, and the photoelectric sensor currently being detected is recorded as the target photoelectric sensor. When the target photoelectric sensor is at a high level, it means that the target photoelectric sensor is blocked by the slider or there is an abnormality. When the target photoelectric sensor is at a low level, it means that the target photoelectric sensor is not blocked by the slider. Therefore, in the embodiment of the present application, only the photoelectric sensor in the high level state needs to be detected for abnormality. When the target photoelectric sensor is at a low level, it does not need to be detected for abnormality.
[0050] In one embodiment of the present application, the length of the slider is less than the distance between three consecutive photoelectric sensors, that is, two adjacent photoelectric sensors may be blocked by the slider at the same time and be in a high-level state at the same time, but the two separated photoelectric sensors will not be in a high-level state at the same time due to being blocked by the slider. Therefore, in an embodiment of the present application, a first reference value and a second reference value that change with the position of the photoelectric sensor can be set, and whether there is an abnormality in the travel locator can be judged based on the first reference value, the second reference value and the distance between two adjacent photoelectric sensors.
[0051] In one embodiment of the present application, the first reference value and the second reference value are iteratively updated as the high-level photoelectric sensor changes. When the target photoelectric sensor in the high-level state is detected for the first time, the initial first reference value and the initial second reference value can be compared with the distance between the target photoelectric sensor and the fixed end of the push rod, respectively, wherein the initial first reference value is less than the minimum distance between each photoelectric sensor and the fixed end of the push rod, and the initial second reference value is greater than the maximum distance between each photoelectric sensor and the fixed end of the push rod; after the comparison is completed, the initial first reference value and the second reference value can be updated according to the comparison result. When the target photoelectric sensor in the high-level state is detected again, the updated first reference value, the updated second reference value, and the distance between the target photoelectric sensor and the fixed end of the push rod are used for comparison.
[0052] Figure 4 The schematic diagram of the process of determining the initial first reference value and the initial second reference value is shown schematically. Figure 4 As shown, in step S401, an arithmetic sequence is constructed based on the distance between each of the photoelectric sensors and the fixed end of the push rod; in step S402, the minimum value in the arithmetic sequence is used as the initial first reference value, and the maximum value in the arithmetic sequence is used as the initial second reference value; wherein, the position corresponding to the minimum value is close to the fixed end of the push rod, the position corresponding to the maximum value is far away from the fixed end of the push rod, and the position of each of the photoelectric sensors is between the positions corresponding to the minimum value and the maximum value.
[0053] Further, in step S401, when constructing the arithmetic progression, the photoelectric sensor closest to the fixed end of the push rod is marked as the starting sensor, such as Figure 3 The photoelectric sensor No. 1 in the figure is the starting sensor, and the photoelectric sensor farthest from the fixed end of the push rod is marked as the ending sensor. Figure 3 The photoelectric sensor No. 5 in the figure is the termination sensor; then, a first marking point is set between the starting sensor and the fixed end of the push rod, and the distance between the first marking point and the starting sensor is the same as the distance between two adjacent photoelectric sensors; then, a second marking point is set on the side of the termination sensor away from the fixed end of the push rod, and the distance between the second marking point and the termination sensor is the same as the distance between two adjacent photoelectric sensors; finally, an arithmetic progression is constructed based on the first marking point, the distances between each photoelectric sensor and the second marking point and the fixed end of the push rod. For example, if the spacing between two adjacent photoelectric sensors is d (d>0), then the distances between the first marking point, photoelectric sensor No. 1, photoelectric sensor No. 2, ..., the second marking point and the fixed end of the push rod are L, ... min ,(L min +d)、(L min +2d)、……、(L min +(N-1)d), an arithmetic progression with a common difference of d can be constructed based on these distance values, where L min is the distance between the first marking point and the fixed end of the push rod, and N is the number of photoelectric sensors and the total number of two marking points. In this arithmetic progression, the minimum value is L min , the maximum value is (L min +(N-1)d), so L min As the initial first reference value, (L min +(N-1)d) is used as the initial second reference value. As the position corresponding to the photoelectric sensor at a high level changes, the first reference value and the second reference value will also change.
[0054] In one embodiment of the present application, the first reference value and the second reference value can be compared with the distance between the target photoelectric sensor and the fixed end of the push rod, respectively, and the first reference value and the second reference value can be updated according to the comparison result. Specifically, the first reference value is compared with the distance between the target photoelectric sensor and the fixed end of the push rod to determine whether the first reference value is less than the distance; when it is determined that the first reference value is less than the distance, the distance is used as the updated first reference value; and the second reference value is compared with the distance between the target photoelectric sensor and the fixed end of the push rod to determine whether the second reference value is greater than the distance; when it is determined that the second reference value is greater than the distance, the distance is used as the updated second reference value.
[0055] For example, when detecting the No. 1 photoelectric sensor, if the No. 1 photoelectric sensor is in a high level state, then:
[0056] Judge whether the initial first reference value is less than the distance L1 between the No. 1 photoelectric sensor and the fixed end of the push rod. Since L min < L1, the initial first reference value is updated to L1. At the same time, judge whether the initial second reference value is greater than L1. Since (L min +(N - 1)d)>L1, the initial second reference value is updated to L1.
[0057] In step S220, repeat the above steps according to the updated first reference value and the second reference value until the detection of all the photoelectric sensors is completed, and judge whether there is an abnormality in the stroke positioner according to the final first reference value and the second reference value.
[0058] In an embodiment of the present application, after updating the first reference value and the second reference value once, when detecting the next target photoelectric sensor in a high level state, the updated first reference value, the updated second reference value, and the distance between the target photoelectric sensor and the fixed end of the push rod can be compared, and the first reference value and the second reference value are continuously updated according to the comparison result. Repeat this process until the detection of all the target photoelectric sensors in a high level state is completed to obtain the final first reference value and the second reference value.
[0059] Continuing with the example in step S210, when detecting the No. 2 photoelectric sensor, the No. 2 photoelectric sensor is in a low level state and does not need to be detected. When detecting the No. 3 photoelectric sensor, the No. 3 photoelectric sensor is also in a high level state, then:
[0060] Judge whether the updated first reference value L1 is less than the distance L3 between the No. 3 photoelectric sensor and the fixed end of the push rod. Since L1 < L3, the updated first reference value is updated to L3. At the same time, judge whether the updated second reference value L1 is greater than L3. Since L3 > L1, the second reference value does not need to be updated and remains L1.
[0061] When detecting the No. 4 photoelectric sensor, the No. 4 photoelectric sensor is in a low level state and does not need to be detected. When detecting the No. 5 photoelectric sensor, the No. 5 photoelectric sensor is in a high level state, then:
[0062] Judge whether the updated first reference value L3 is less than the distance L5 between the No. 5 photoelectric sensor and the fixed end of the push rod. Since L3 < L5, the updated first reference value is updated to L5. At the same time, judge whether the updated second reference value L1 is greater than L5. Since L5 > L1, the second reference value does not need to be updated and remains L1.
[0063] This process is repeated in this way until a round of detection is completed, thereby updating the first reference value and the second reference value.
[0064] In one embodiment of the present application, after completing a round of detection by the photoelectric sensor, the final first reference value and the second reference value can be obtained, and whether there is an abnormality in the stroke locator can be determined based on the final first reference value and the second reference value.
[0065] Figure 5 The schematic diagram shows the process of judging whether there is an abnormality in the stroke positioner. Figure 5 As shown, in step S501, the difference between the final first reference value and the final second reference value is obtained; in step S502, the difference is compared with the distance between two adjacent photoelectric sensors; in step S503, when the difference is greater than the distance, it is determined that the stroke locator is abnormal; in step S504, when the difference is less than or equal to the distance, it is determined that the stroke locator is normal.
[0066] In the embodiment of the present application, the reason why the distance between two adjacent photoelectric sensors is used as the judgment criterion is because the length of the slider is less than the distance between the three photoelectric sensors. If the difference between the final first reference value and the final second reference value is less than or equal to the distance, it means that the slider does not cover the spaced photoelectric sensors at the same time, and the spaced photoelectric sensors are not in a high level state at the same time. Therefore, the photoelectric sensors are normal and the stroke locator is normal; if the difference between the final first reference value and the final second reference value is greater than the distance, it means that the slider covers the spaced photoelectric sensors at the same time, but in fact the slider cannot cover the spaced photoelectric sensors at the same time. Therefore, it can be determined that the photoelectric sensor is abnormal and the stroke locator is abnormal.
[0067] Continuing with the above example, the first reference value and the second reference value finally obtained are L5 and L1 respectively. The difference between L5 and L1 is 4d. Since 4d>d, it means that there is an abnormality in the photoelectric sensor, and it can be determined that there is an abnormality in the stroke positioner.
[0068] In one embodiment of the present application, when it is determined that there is an abnormality in the stroke locator, an alarm instruction can be sent to the alarm device. The alarm device can sound an alarm in response to the alarm instruction, reminding the user to promptly inspect the stroke locator to ensure the reliability of the stroke locator, thereby ensuring the safety and reliability of the injection pump.
[0069] The method for detecting abnormality of the stroke locator of the injection pump in the present application performs periodic detection on the photoelectric sensor in the stroke locator. In each detection, the level state of each photoelectric sensor is detected in turn. When the target photoelectric sensor is in a high level state, the first reference value and the second reference value are compared with the distance between the target photoelectric sensor and the fixed end of the push rod of the injection pump, respectively, and the first reference value and the second reference value are updated according to the comparison result. The above steps are repeated according to the updated first reference value and the second reference value until the detection of all photoelectric sensors is completed, and it is judged whether the stroke locator has an abnormality according to the final first reference value and the second reference value. The present application can perform real-time abnormality detection on the stroke locator and alarm when an abnormality is detected in the stroke locator, thereby improving the safety and reliability of the stroke locator and the injection pump, thereby avoiding the problem of error in the positioning of the push handle, error in drug injection, and potential safety hazards to patients.
[0070] It should be noted that although the steps of the method in the present application are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0071] The following introduces an embodiment of the device of the present application, which can be used to execute the method of detecting abnormality of the stroke positioner of the injection pump in the above embodiment of the present application. Figure 6 The structural block diagram of the device for detecting abnormality of the stroke positioner of the injection pump provided in an embodiment of the present application is schematically shown, wherein the stroke positioner includes a plurality of photoelectric sensors arranged at equal intervals; Figure 6 As shown, the device 600 for detecting abnormality of the injection pump stroke positioner includes: a comparison module 610 and a judgment module 620, specifically:
[0072] A comparison module 610 is used to detect the level state of each of the photoelectric sensors in turn, and when the target photoelectric sensor is at a high level, compare the first reference value and the second reference value with the distance between the target photoelectric sensor and the fixed end of the push rod of the injection pump, and update the first reference value and the second reference value according to the comparison result;
[0073] The judgment module 620 is used to repeat the above steps according to the updated first reference value and the second reference value until the detection of all the photoelectric sensors is completed, and judge whether the stroke locator has an abnormality according to the final first reference value and the second reference value.
[0074] In an exemplary embodiment of the present application, based on the above technical solution, the comparison module 610 is configured to: when the target photoelectric sensor is detected to be in a high level state for the first time, compare the distance between the target photoelectric sensor and the fixed end of the push rod according to the initial first reference value and the initial second reference value respectively;
[0075] The initial first reference value is smaller than the minimum distance between each of the photoelectric sensors and the fixed end of the push rod, and the initial second reference value is larger than the maximum distance between each of the photoelectric sensors and the fixed end of the push rod.
[0076] In an exemplary embodiment of the present application, the device 600 for detecting an abnormality of the stroke positioner of an injection pump includes: a sequence construction module, which is used to construct an arithmetic sequence based on the distance between each of the photoelectric sensors and the fixed end of the push rod before detecting the level state of each of the photoelectric sensors in turn; an assignment module, which is used to use the minimum value in the arithmetic sequence as the initial first reference value and the maximum value in the arithmetic sequence as the initial second reference value; wherein the position corresponding to the minimum value is close to the fixed end of the push rod, the position corresponding to the maximum value is far away from the fixed end of the push rod, and the position of each of the photoelectric sensors is between the positions corresponding to the minimum value and the maximum value.
[0077] In an exemplary embodiment of the present application, based on the above technical solution, the number series construction module is configured as follows: the photoelectric sensor closest to the fixed end of the push rod is marked as the starting sensor, and the photoelectric sensor farthest from the fixed end of the push rod is marked as the ending sensor; a first marking point is set between the starting sensor and the fixed end of the push rod, and the distance between the first marking point and the starting sensor is the same as the distance between two adjacent photoelectric sensors; a second marking point is set on the side of the ending sensor away from the fixed end of the push rod, and the distance between the second marking point and the ending sensor is the same as the distance between two adjacent photoelectric sensors; the arithmetic sequence is constructed according to the distances between the first marking point, each of the photoelectric sensors and the second marking point and the fixed end of the push rod.
[0078] In one embodiment of the present application, the comparison module 610 is configured to: compare the first benchmark value with the distance to determine whether the first benchmark value is smaller than the distance; when it is determined that the first benchmark value is smaller than the distance, use the distance as the updated first benchmark value; and compare the second benchmark value with the distance to determine whether the second benchmark value is greater than the distance; when it is determined that the second benchmark value is greater than the distance, use the distance as the updated second benchmark value.
[0079] In one embodiment of the present application, based on the above technical solution, the judgment module 620 is configured to: obtain the difference between the final first reference value and the final second reference value; compare the difference with the distance between two adjacent photoelectric sensors; when the difference is greater than the distance, determine that there is an abnormality in the stroke locator; when the difference is less than or equal to the distance, determine that the stroke locator is normal.
[0080] In one embodiment of the present application, based on the above technical solution, the device 600 for detecting abnormality of the stroke positioner of the injection pump is configured as follows: when it is determined that the stroke positioner is abnormal, an alarm instruction is sent to an alarm device.
[0081] The specific details of the device for detecting abnormality of the injection pump stroke positioner provided in each embodiment of the present application have been described in detail in the corresponding method embodiment and will not be repeated here.
[0082] It should be noted that, although several modules or units of the device for detecting an abnormality of the injection pump stroke positioner are mentioned in the above detailed description, this division is not mandatory. In fact, according to an embodiment of the present disclosure, the features and functions of two or more modules or units described above can be concretized in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be concretized.
[0083] In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above-mentioned method for detecting abnormality of a stroke positioner of an injection pump is also provided.
[0084] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware embodiments, complete software embodiments (including firmware, microcode, etc.), or embodiments combining hardware and software aspects, which may be collectively referred to herein as "circuits", "modules" or "systems".
[0085] Refer to the following Figure 7 The electronic device 700 according to this embodiment of the present disclosure is described, and the electronic device may specifically be a single chip microcomputer. Figure 7 The electronic device 700 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0086] like Figure 7As shown, the electronic device 700 is in the form of a general computing device. The components of the electronic device 700 may include, but are not limited to: the at least one processing unit 710, the at least one storage unit 720, a bus 730 connecting different system components (including the storage unit 720 and the processing unit 710), and a display unit 740.
[0087] The storage unit stores program codes, which can be executed by the processing unit 710, so that the processing unit 710 executes the steps of various exemplary embodiments according to the present disclosure described in the above “Specific embodiments” section of this specification.
[0088] The storage unit 720 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 721 and / or a cache memory unit 722 , and may further include a read-only memory unit (ROM) 723 .
[0089] The storage unit 720 may also include a program / utility 724 having a set (at least one) of program modules 725, such program modules 725 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0090] Bus 730 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0091] The electronic device 700 may also communicate with one or more external devices 770 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 700, and / or communicate with any device that enables the electronic device 700 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 750. Furthermore, the electronic device 700 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 760. As shown, the network adapter 760 communicates with other modules of the electronic device 700 via a bus 730. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0092] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiment of the present disclosure.
[0093] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible embodiments, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to perform the steps according to various exemplary embodiments of the present disclosure described in the above "Exemplary Method" section of the present specification.
[0094] refer to Figure 8 As shown, a program product 800 for implementing the above-mentioned method for detecting an abnormality of a syringe pump stroke positioner according to an embodiment of the present disclosure is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus, or a device.
[0095] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0096] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0097] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0098] Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0099] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.
[0100] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiment of the present disclosure.
[0101] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.
[0102] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for detecting abnormality of a syringe pump stroke positioner, characterized in that: The stroke positioner includes a plurality of photoelectric sensors arranged at equal intervals; the method includes: sequentially detecting the level state of each of the photoelectric sensors, and when the target photoelectric sensor is at a high level, comparing the first reference value and the second reference value with the distance between the target photoelectric sensor and the fixed end of the push rod of the injection pump, respectively, and updating the first reference value and the second reference value according to the comparison result; The above steps are repeated according to the updated first reference value and the second reference value until the detection of all the photoelectric sensors is completed, and it is determined whether the stroke positioner is abnormal according to the final first reference value and the second reference value.
2. The method for detecting abnormality of a syringe pump stroke positioner according to claim 1, characterized in that: The step of comparing the first reference value and the second reference value with the distance between the target photoelectric sensor and the fixed end of the push rod of the injection pump, respectively, comprises: When the target photoelectric sensor is detected to be in a high level state for the first time, the distance between the target photoelectric sensor and the fixed end of the push rod is compared with the initial first reference value and the initial second reference value respectively; The initial first reference value is smaller than the minimum distance between each of the photoelectric sensors and the fixed end of the push rod, and the initial second reference value is larger than the maximum distance between each of the photoelectric sensors and the fixed end of the push rod.
3. The method for detecting abnormality of a syringe pump stroke positioner according to claim 1 or 2, characterized in that: Before sequentially detecting the level status of each of the photoelectric sensors, the method further includes: Constructing an arithmetic progression based on the distance between each of the photoelectric sensors and the fixed end of the push rod; Taking the minimum value in the arithmetic progression as the initial first reference value, and taking the maximum value in the arithmetic progression as the initial second reference value; The position corresponding to the minimum value is close to the fixed end of the push rod, the position corresponding to the maximum value is far from the fixed end of the push rod, and the position of each photoelectric sensor is between the positions corresponding to the minimum value and the maximum value.
4. The method for detecting abnormality of a syringe pump stroke positioner according to claim 3, characterized in that: The constructing of an arithmetic progression based on the distance between each of the photoelectric sensors and the fixed end of the push rod comprises: The photoelectric sensor closest to the fixed end of the push rod is marked as the starting sensor, and the photoelectric sensor farthest from the fixed end of the push rod is marked as the ending sensor; A first marking point is set between the starting sensor and the fixed end of the push rod, and the distance between the first marking point and the starting sensor is the same as the distance between two adjacent photoelectric sensors; A second marking point is arranged on a side of the termination sensor away from the fixed end of the push rod, and the distance between the second marking point and the termination sensor is the same as the distance between two adjacent photoelectric sensors; The arithmetic progression is constructed according to the first marking point, each of the photoelectric sensors, the distance between the second marking point and the fixed end of the push rod.
5. The method for detecting abnormality of a syringe pump stroke positioner according to claim 1, characterized in that: The step of comparing the first reference value and the second reference value with the distance between the target photoelectric sensor and the fixed end of the push rod of the injection pump, and updating the first reference value and the second reference value according to the comparison result comprises: Compare the first reference value with the distance to determine whether the first reference value is smaller than the distance; When it is determined that the first reference value is smaller than the distance, taking the distance as the updated first reference value; and Compare the second reference value with the distance to determine whether the second reference value is greater than the distance; When it is determined that the second reference value is greater than the distance, the distance is used as the updated second reference value.
6. The method for detecting abnormality of the injection pump stroke positioner according to claim 1, characterized in that: The determining whether the stroke positioner is abnormal according to the final first reference value and the second reference value includes: Obtaining a difference between the final first reference value and the final second reference value; Comparing the difference with the distance between two adjacent photoelectric sensors; When the difference is greater than the distance, it is determined that the stroke positioner is abnormal; When the difference is less than or equal to the distance, it is determined that the stroke positioner is normal.
7. The method for detecting abnormality of a syringe pump stroke positioner according to claim 1 or 6, characterized in that: The method further comprises: When it is determined that the stroke positioner is abnormal, an alarm instruction is sent to the alarm device.
8. A device for detecting abnormality of a syringe pump stroke positioner, characterized in that: The stroke positioner includes a plurality of photoelectric sensors arranged at equal intervals; the device includes: a comparison module, configured to detect the level state of each of the photoelectric sensors in turn, and when the target photoelectric sensor is at a high level, compare the first reference value and the second reference value with the distance between the target photoelectric sensor and the fixed end of the push rod of the injection pump, respectively, and update the first reference value and the second reference value according to the comparison result; The judgment module is used to repeat the above steps according to the updated first reference value and the second reference value until the detection of all the photoelectric sensors is completed, and judge whether the stroke positioner is abnormal according to the final first reference value and the second reference value.
9. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method for detecting an abnormality of a stroke positioner of an injection pump according to any one of claims 1 to 7 is implemented.
10. An electronic device, characterized in that: include: processor; as well as A memory for storing instructions; Wherein, the processor executes the instructions stored in the memory to implement the method for detecting abnormality of the stroke positioner of the injection pump as described in any one of claims 1 to 7.
