Method, device, equipment and medium for reading surgical instrument data
By reading and verifying surgical instrument data, identifying and correcting erroneous data when the surgical instrument is connected to the platform, the problem of unstable surgical instrument data update is solved, and data accuracy and security are achieved.
Patent Information
- Application Number
- CN202510213961.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-26
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2045-02-26
AI Technical Summary
In the prior art, data updates and readings of surgical instruments are prone to interruptions or interference, which can lead to data errors and cannot be corrected in a timely manner, resulting in poor data accuracy and affecting the stability and safety of the surgical system.
When the surgical instrument is connected to the target platform, the comprehensive data strip and target data strip in the surgical instrument are read, the target verification result is determined by the verification code and operand, the candidate data strip is identified, and correction processing is performed based on the candidate data strip to ensure the correctness of the data.
It improves the accuracy of surgical instrument data and the safety and stability of the platform's use of surgical instruments, ensures that data can be corrected when errors occur, and avoids data reading errors.
Smart Images

Figure CN119719686B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of surgical instruments, and in particular to a method, device, equipment and medium for reading surgical instrument data. Background Art
[0002] Currently, the use of surgical instruments typically requires docking the instruments with a surgical system, which controls the instruments to perform their tasks. When the surgical system updates the instrument's data, it needs to write the updated data to the instrument. Unexpectedly removing the instrument can interrupt or interfere with the writing process, resulting in data errors or incomplete updates. To ensure the accuracy and stability of system control, it is essential to correctly update and read surgical instrument data. Failure to correctly update the instrument data can lead to errors when reading the data the next time.
[0003] In existing technology, updating and reading surgical instrument data typically involves verifying the data and updating it to the surgical system if it passes verification. If the verification fails, the reading fails. Failure to update data correctly can result in parameters such as the instrument's lifespan not being updated promptly, leading to errors in the instrument's parameter records. This approach makes it impossible to correct data errors, or can lead to errors if data is not updated promptly, resulting in poor data accuracy. Summary of the Invention
[0004] The present invention provides a method, device, equipment and medium for reading surgical instrument data to ensure the correctness of data in surgical instruments and the accuracy of surgical instrument data read by a platform, thereby improving the safety and stability of the platform's use of surgical instruments.
[0005] According to one aspect of the present invention, a method for reading surgical instrument data is provided, which is applied to a target platform. The method comprises:
[0006] When detecting that the surgical instrument is connected to the target platform, at least one first field in the comprehensive data strip of the surgical instrument and at least one second field in each target data strip in at least one data strip group are read; the first field includes at least a first operand; the second field includes at least a second operand and a second check code; the target data strip includes a main data strip and at least one backup data strip corresponding to the main data strip;
[0007] For each of the data stripe groups, respectively verify the second check code in each of the target data stripes to obtain a first check result for each of the target data stripes, and determine a target check result based on each of the first check results, a preset result, the first operand, and the second operand in each of the target data stripes;
[0008] When the target verification result is inconsistent with the preset result, and the first verification result of the target data strip exists and is consistent with the preset result, determining a candidate data strip based on the target data strip when they are consistent;
[0009] Based on the first operand and the second operand in each of the candidate data strips, correction processing is performed on at least one second field in at least one of the target data strips to update the data strip in the surgical instrument, and the updated data strip in the surgical instrument is read to the target platform.
[0010] According to another aspect of the present invention, a device for reading surgical instrument data is provided, which is configured on a target platform and includes:
[0011] A data reading module is configured to read, upon detecting that a surgical instrument is connected to a target platform, at least one first field in a comprehensive data strip in the surgical instrument and at least one second field in each target data strip in at least one data strip group; the first field includes at least a first operand; the second field includes at least a second operand and a second check code; the target data strip includes a main data strip and at least one backup data strip corresponding to the main data strip;
[0012] a target verification result determination module, configured to verify the second verification code in each target data stripe in each data stripe group, obtain a first verification result for each target data stripe, and determine a target verification result based on each first verification result, a preset result, the first operand, and the second operand in each target data stripe;
[0013] a candidate data strip determining module configured to, when the target verification result is inconsistent with the preset result and the first verification result of the target data strip is consistent with the preset result, determine a candidate data strip based on the target data strip when the target data strip is consistent;
[0014] A data correction module is used to correct at least one second field in at least one of the target data strips based on the first operand and the second operand in each of the candidate data strips to update the data strip in the surgical instrument, and read the updated data strip in the surgical instrument to the target platform.
[0015] According to another aspect of the present invention, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for reading surgical instrument data described in any embodiment of the present invention.
[0016] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for reading surgical instrument data described in any embodiment of the present invention when executed.
[0017] According to another aspect of the present invention, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the method for reading surgical instrument data as described in any embodiment of the present invention.
[0018] The technical solution of the embodiment of the present invention is to read at least one first field in the comprehensive data strip in the surgical instrument and at least one second field in each target data strip in at least one data strip group when detecting that the surgical instrument is connected to the target platform; the first field includes at least a first operand; the second field includes at least a second operand and a second check code; for each data strip group, the second check code in each target data strip is checked respectively to obtain a first check result for each target data strip, and determine the target check result based on each first check result, the preset result, the first operand and the second operand in each target data strip; when the target check result is inconsistent with the preset result, and there is a target data strip with the first check result consistent with the preset result, determine a candidate data strip based on the target data strip when they are consistent; based on the first operand and the second operand in each candidate data strip, correct at least one second field in at least one target data strip to update the data strip in the surgical instrument, and read the updated data strip in the surgical instrument to the target platform, thereby solving the problems of the prior art. In the process, the verified instrument data is read into the surgical system by verifying the data, resulting in poor data accuracy and inability to correct the data when it is wrong. The invention realizes that when the surgical instrument is detected to be connected to the target platform, the second verification code in each target data strip in the same data group in the surgical instrument is verified to obtain a first verification result for each target data strip; then, the target verification result is determined by combining the first operand based on each first verification result, the preset result, the comprehensive data strip and the second operand in each target data strip; and when the target verification result is inconsistent with the preset result, and there is a target data strip whose first verification result is consistent with the preset result, the candidate data strip is determined based on the target data strip when they are consistent, and the data strips with correct data and incorrect data are effectively identified; then, according to the first operand and the second operand in each candidate data strip, at least one target data strip is corrected to ensure the correctness of the data in the surgical instrument, thereby ensuring the accuracy of the platform in reading the surgical instrument data, and achieving the technical effect of improving the safety and stability of the platform in using surgical instruments.
[0019] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 This is a flowchart of a method for reading surgical instrument data provided in accordance with the first embodiment of the present invention;
[0022] Figure 2 is a diagram for representing a connection architecture between a target platform and a surgical instrument provided according to the first embodiment of the present invention;
[0023] Figure 3 is a schematic diagram of a storage architecture for representing surgical instruments according to a first embodiment of the present invention;
[0024] Figure 4 is a schematic diagram for representing a target data strip according to a first embodiment of the present invention;
[0025] Figure 5 is a schematic diagram for representing a comprehensive data strip according to the first embodiment of the present invention;
[0026] Figure 6 1 is a flow chart of a method for reading surgical instrument data according to the first embodiment of the present invention;
[0027] Figure 7 This is a flowchart of a method for reading surgical instrument data provided in accordance with a second embodiment of the present invention;
[0028] Figure 8 This is a schematic structural diagram of a device for reading surgical instrument data according to a third embodiment of the present invention;
[0029] Figure 9 It is a structural diagram of an electronic device for implementing the method for reading surgical instrument data according to an embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.
[0031] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0032] Before introducing this technical solution, we can first provide an example application scenario. This technical solution can be applied to any scenario that requires reading instrument data from a surgical instrument. For example, the data reading scenario may be a surgical system. When the surgical instrument and the surgical system are connected, the surgical instrument data stored in the memory needs to be read into the surgical system so that the surgical system can perform the surgical operation based on the read surgical instrument data, or update the surgical instrument data (such as instrument lifespan, operation count, etc.). This surgical system is the target platform mentioned below.
[0033] Example 1
[0034] Figure 1 This is a flowchart of a method for reading surgical instrument data according to the first embodiment of the present invention. This embodiment is applicable to the case of reading instrument data in a surgical instrument. The method can be executed by a surgical instrument data reading device. The surgical instrument data reading device can be implemented in the form of hardware and / or software. The surgical instrument data reading device can be configured in the target platform. Figure 1 As shown, the method includes:
[0035] S110. When it is detected that the surgical instrument is connected to the target platform, read at least one first field in the comprehensive data strip in the surgical instrument and at least one second field in each target data strip in at least one data strip group; the first field includes at least a first operand; the second field includes at least a second operand and a second check code.
[0036] The target platform can refer to a surgical platform capable of controlling the operation of surgical instruments. Surgical instruments refer to medical instruments used during surgical procedures, such as laparoscopic instruments and hysteroscopic instruments, with no specific limitation on instrument type. The target data stripe includes a primary data stripe and at least one backup data stripe corresponding to the primary data stripe. In other words, a data stripe group can include one primary data stripe and at least one backup data stripe corresponding to the primary data stripe. Each primary data stripe can correspond to one or more backup data stripes. The primary and backup data stripes store instrument parameters related to the surgical instrument. The backup data stripe serves as a data backup of the primary data stripe and has the same data structure as the primary data stripe, i.e., the same field bits. The first operand can be used to represent the number of normal data updates within each data stripe of the surgical instrument. That is, the first operand remains unchanged when correcting data in the data stripe. The second operand can be used to represent the number of data updates within the data stripe. The second checksum is used to verify data integrity and reliability. The second checksum can be determined based on a preset checksum method, such as a cyclic redundancy check, a parity check, a Hamming check, or the like. The data length of the first field and the second field can be one byte or multiple bytes, and the specific data length can be determined based on the minimum continuous read and write unit of the memory in the surgical instrument and the data required to be stored in the field.
[0037] In this embodiment, the target platform can be connected to the isolation interface board, either electrically or by other means. When a connection between the surgical instrument and the isolation interface board is detected, it can be considered that the surgical instrument has been connected to the target platform. At this point, the first field within the integrated data strip can be read from the surgical instrument. Furthermore, the primary data strip and at least one backup data strip corresponding to the primary data strip are read from the surgical instrument to obtain at least one second field from each target data strip within the same data strip group. The first and second fields are then combined to determine whether the data within the surgical instrument is usable.
[0038] For example, see Figure 2The electrical connector in the surgical instrument is connected to the electrical connector in the isolation interface board, and the electrical connector in the target platform is connected to the electrical connector in the isolation interface board, so that the surgical instrument can be mounted on the target platform for use. When the target platform starts the industrial computer program, the hook-up inspection device can detect whether the target platform is connected to the isolation interface board. If it is detected that the target platform is connected to the isolation interface board, the instrument will be zeroed and wait for the surgical instrument to be connected. When the surgical instrument is connected to the isolation interface board, the electrical connector connects the power supply and data circuits of the target platform, the isolation interface board, and the surgical instrument. After the hook-up inspection device detects that the surgical instrument has been connected to the isolation interface board, the read-write main control module is started. The read-write main control module reads or writes each data strip in the memory of the surgical instrument to process the data in the read data strip, verify the correctness of the data, and correct the data if it is incorrect.
[0039] In order to ensure the correctness of the data, when it is detected that the surgical instrument is connected to the target platform, at least one first field in the comprehensive data strip in the surgical instrument and at least one second field in each target data strip in at least one data strip group can be read: when it is detected that the surgical instrument is connected to the target platform, at least two first fields in the comprehensive data strip in the surgical instrument are read; the first field includes a feature code and a first check code; when the feature code is a preset feature code and the first check code is verified and passed, for each data strip group, at least one second field in each target data strip in the data strip group is read from the surgical instrument in sequence.
[0040] The feature code may be a preset fixed known code used to determine whether the conditions for continuing to read and write data are met, such as the feature code being hexadecimal 0xA5. The first check code may be determined based on a preset check method and used to verify the security of the data in the comprehensive data strip.
[0041] Specifically, when the surgical instrument is detected to be connected to the target platform, the first field, including the feature code, the first check code, and the first operand, in the comprehensive data strip of the surgical instrument can be read. Furthermore, the feature code is compared with a preset feature code, and the first check code is verified. If the feature code is the preset feature code and the first check code is verified, at least one second field in the main data strip and at least one backup data strip corresponding to the main data strip in the current data strip group can be sequentially read from the surgical instrument. The first check code can be verified in a variety of ways. One verification method can include: comparing the first check code with a preset check code, and if they are consistent, the verification result is considered to be a pass; or performing a logical calculation on the first check code to obtain a value, and if the value is within a certain range, the verification result is considered to be a pass; or alternatively, processing the data in the comprehensive data strip using a preset verification method to obtain a check value, comparing the check value with the first check code, and if they are consistent, the verification result is considered to be a pass.
[0042] For example, see Figure 3 , assuming that the surgical instrument includes 1 comprehensive data strip, multiple main data strips, and 2 spare data strips corresponding to each main data strip; main data strips 1 to main data strip n are stored in the first storage area; the first spare data strip corresponding to each main data strip is stored in the second storage area; the second spare data strip corresponding to each main data strip is stored in the third storage area; and the comprehensive data strip is stored in the fourth storage area. A main data strip and its two corresponding spare data strips serve as target data strips in a data strip group. The target data strip includes the second operand, the instrument life number, the second check code, and the specific instrument data (data 1, data 2, ..., data n) and other second fields. The schematic diagram of the target data strip can be seen in Figure 4 The comprehensive data strip includes the first fields such as the feature code, the first operand, the operation date, and the first check code. The schematic diagram of the comprehensive data strip can be found in Figure 5 . When it is detected that the surgical instrument is connected to the target platform, the first field such as the feature code, the first operand, the operation date, the first check code, etc. in the comprehensive data strip can be read from the fourth storage area. Whether the data is available is confirmed by checking the first check code, and whether the communication is normal is determined by judging whether the feature code is the same as the preset check code. If the feature code is the preset feature code and the first check code is verified, the main data strip 1 in the first storage area is read, and then the backup data strip 1-1 in the second storage area is read, and then the backup data strip 1-2 in the third storage area is read. The read main data strip 1, backup data strip 1-1 and backup data strip 1-2 can be stored in the memory buffer area as the target data strips in a data strip group.
[0043] Continue to see Figure 3To further ensure data availability, the integrated data strip can include a primary integrated data strip and a backup integrated data strip. The backup integrated data strip serves as a data backup for the primary integrated data strip. Thus, if the signature code in the primary integrated data strip does not match the preset signature code or fails the first check code verification, the signature code and first check code in the backup integrated data strip can be read to determine whether the signature code matches the preset signature code and the first check code is verified. If the signature code in the backup integrated data strip matches the preset signature code and passes the first check code verification, the backup integrated data strip can be used to update the primary integrated data strip. If the signature code in the backup integrated data strip does not match the preset signature code or fails the first check code verification, the same first field (the first field includes the signature code, first operand, operation date, etc.) in the primary and backup integrated data strips can be compared to determine which first field differs. If only the signature code differs between the two integrated data strips, the signature code in the integrated data strip can be updated to the preset signature code. If the first operand and the operation date are different, a data error prompt message is generated to give the user an error prompt, and data reading and writing operations on the surgical instrument are prohibited, and the error log is updated.
[0044] S120. For each data stripe group, the second verification code in each target data stripe is verified respectively to obtain a first verification result for each target data stripe, and the target verification result is determined based on each first verification result, the preset result, the first operand and the second operand in each target data stripe.
[0045] The preset result is verification passed. It should be noted that when there are multiple master data stripes, there are also multiple data stripe groups. The master data stripe and its corresponding backup data stripe of each data stripe group can be processed separately to analyze the correctness of the data. The processing method for each data stripe group is the same, and the processing of multiple target data stripes in any data stripe group can be used as an example to illustrate.
[0046] Specifically, for each target data strip in a data strip group, the second check code in each target data strip can be checked separately to verify its correctness, and obtain the first check result corresponding to each target data strip. Furthermore, each first check result can be compared with the preset result, and the second operand in each target data strip can be compared with the first operand to obtain a comparison result. Based on the comparison result, the target check result can be determined, so that when the target check result is consistent with the preset result, the data in all target data strips in the data strip group in the surgical instrument can be read to the surgical platform, without correcting the data in the target data strip in this data strip group. It should be noted that the method of checking the second check code is similar to the method of checking the first check code, and will not be elaborated here.
[0047] In this embodiment, the target verification result may be determined as: when each first verification result is consistent with a preset result and the second operand in each target data strip is consistent with the first operand, the target verification result is determined to be a passed verification. In other words, when each first verification result is a preset result and the second operand in each target data strip is the first operand, the target verification result is determined to be a passed verification. When the feature code is not the preset feature code, or the first verification code fails to pass verification, the target verification result is determined to be a failed verification.
[0048] S130 : When the target verification result is inconsistent with the preset result, and there is a target data strip whose first verification result is consistent with the preset result, determine a candidate data strip based on the target data strip when they are consistent.
[0049] Specifically, the target verification result can be compared with the preset result. If the target verification result is inconsistent with the preset result, it can be determined whether there is a target data strip whose first verification result is consistent with the preset result among all target data strips. If so, the consistent target data strip can be determined as a candidate data strip. For example, if the first verification result of primary data strip 1 and backup data strip 2 is passed, which is the same as the preset result, primary data strip 1 and backup data strip 2 can be selected as candidate data strips.
[0050] For example, see Figure 6 , data stripe group 1 includes three target data stripes, namely a main data stripe and two spare data stripes. The first operand can be subtracted from the second operands of the three target data stripes in data stripe group 1 to obtain the difference. When it is determined that the difference is 0 or 1, it is determined whether the first verification results of the three target data stripes are all verified to pass, and whether the second operands of the three target data strips are all the same as the first operand. If the first verification results of the three target data strips are all verified to pass, and the second operands of the three target data strips are all the same as the first operand, it means that the data is correct and can be used directly without error correction. In the case that there is a first verification result that has not passed the verification among the first verification results of the three target data strips, or there is a second operand that is different from the first operand among the three target data strips, it is determined whether the first verification results of two target data strips are verified to pass. If so, these two target data strips are used as candidate data strips. If no two target data strips have a first check result of passing, the system determines whether one of the three target data strips has a first check result of passing. If so, the target data strip is selected as a candidate data strip. If all three target data strips have a first check result of failing, no data can be recovered, a data error message is generated, and an error report is output to alert the user.
[0051] In this embodiment, a data error prompt message may be generated when the first verification results of all target data strips are inconsistent with the preset results. Alternatively, a data error prompt message may be generated when the feature code is not a preset feature code or the first verification code fails verification, thereby prompting the user with the data error prompt message to inform the user that an error has occurred in reading or writing data of the surgical instrument.
[0052] In this embodiment, when generating the data error prompt information, the cumulative number of errors may be adjusted upward to update the cumulative number of errors; if the updated cumulative number of errors does not reach the preset number, the operations of reading the data strips in the surgical instrument, determining the first verification result of each target data strip, and determining the target verification result are repeated. If the target verification result is inconsistent with the preset result and there is a target data strip whose first verification result is consistent with the preset result, a candidate data strip is determined, at least one second field in at least one target data strip is corrected, and after the updated data strips in the surgical instrument are read into the target platform, the cumulative number of errors is updated to a preset threshold value. The preset threshold value is 0.
[0053] Specifically, when a data error prompt message is generated, the cumulative error count can be incremented according to a preset step size. For example, if the preset step size is 1, the cumulative error count is incremented by one, and the incremented cumulative error count is used as the updated cumulative error count. Furthermore, the updated cumulative error count can be compared with the preset count. If the cumulative error count is less than or equal to the preset count, steps S110, S120, and S130 are repeated to determine the first verification result for each target data strip and the target verification result. When the target verification result is inconsistent with the preset result, and there is a target data strip whose first verification result is consistent with the preset result, candidate data strips are determined, and at least one second field in at least one target data strip is corrected based on the first operand and the second operand in each candidate data strip. After the updated data strip in the surgical instrument is read into the target platform, the cumulative error count is updated to the preset threshold. When a data error prompt message is generated again, the updated cumulative error count is incremented.
[0054] For example, when a data error message is generated, it can be determined whether the surgical instrument is connected to the target platform. If connected, the surgical instrument can be re-read up to three times (i.e., a preset number of times). If a data error message is still generated, it indicates a reading anomaly, an error message is displayed, and an error log is updated. If the surgical instrument is not connected to the target platform, it indicates a disconnection, and the reading operation is terminated.
[0055] S140. Based on the first operand and the second operand in each candidate data strip, correct at least one second field in at least one target data strip to update the data strip in the surgical instrument, and read the updated data strip in the surgical instrument to the target platform.
[0056] In this embodiment, the second operand and the first operand in each candidate data strip can be combined to perform correction processing on at least one second field in part or all of the target data strips to obtain a processed target data strip, so that the processed target data strip can be written to the surgical instrument and the data strip in the updated surgical instrument can be read to the target platform.
[0057] The technical solution provided by this embodiment reads at least one first field in the comprehensive data strip in the surgical instrument and at least one second field in each target data strip in at least one data strip group when detecting that the surgical instrument is connected to the target platform; the first field includes at least a first operand; the second field includes at least a second operand and a second check code; for each data strip group, the second check code in each target data strip is checked respectively to obtain a first check result for each target data strip, and the target check result is determined based on each first check result, the preset result, the first operand and the second operand in each target data strip; when the target check result is inconsistent with the preset result, and there is a target data strip with the first check result consistent with the preset result, a candidate data strip is determined based on the target data strip when they are consistent; based on the first operand and the second operand in each candidate data strip, at least one second field in at least one target data strip is corrected to update the data strip in the surgical instrument, and the updated data strip in the surgical instrument is read to the target platform, thereby solving the problems encountered in the prior art. During the operation, the verified instrument data is read into the system by verifying the data, which leads to poor accuracy of the read data and inability to correct the data errors. The invention realizes that when the surgical instrument is detected to be connected to the target platform, the second verification code in each target data strip in the same data group in the surgical instrument is verified to obtain the first verification result of each target data strip; then, the target verification result is determined by combining the first operand based on each first verification result, the preset result, the comprehensive data strip and the second operand in each target data strip; and when the target verification result is inconsistent with the preset result, and there is a target data strip whose first verification result is consistent with the preset result, the candidate data strip is determined based on the target data strip when they are consistent, and the data strips with correct data and incorrect data are effectively identified; then, according to the first operand and the second operand in each candidate data strip, at least one target data strip is corrected to ensure the correctness of the data in the surgical instrument, thereby ensuring the accuracy of the platform in reading the surgical instrument data and achieving the technical effect of improving the safety and stability of the platform's operation using surgical instruments.
[0058] Example 2
[0059] Figure 7 This is a flowchart of a method for reading surgical instrument data according to Example 2 of the present invention. Based on the previous example, the second field also includes the instrument lifespan, further refining S140. For detailed implementation details, please refer to the technical solution of this example. Technical terms that are identical or corresponding to those in the previous example are not repeated here.
[0060] like Figure 7 As shown, the method specifically includes the following steps:
[0061] S210. When it is detected that the surgical instrument is connected to the target platform, read at least one first field in the comprehensive data strip in the surgical instrument and at least one second field in each target data strip in at least one data strip group; the first field includes at least a first operand; the second field includes at least a second operand and a second check code.
[0062] S220. For each data stripe group, the second check code in each target data stripe is checked respectively to obtain a first check result for each target data stripe, and the target check result is determined based on each first check result, the preset result, the first operand and the second operand in each target data stripe.
[0063] S230: When the target verification result is inconsistent with the preset result, and there is a target data strip whose first verification result is consistent with the preset result, determine a candidate data strip based on the target data strip when they are consistent.
[0064] S240: When the second operand in the candidate data strip is consistent with the first operand, determine a reference data strip based on the consistent candidate data strip.
[0065] In this embodiment, it is possible to determine whether there is a candidate data stripe with the same second operand as the first operand among all candidate data stripes. If so, the candidate data stripe with the same second operand as the first operand can be determined as the reference data stripe. For example, if the second operand of primary data stripe 1 and backup data stripe 2 is A1, which is the same as the first operand A1, primary data stripe 1 and backup data stripe 2 can be used as the reference data stripe.
[0066] For example, see Figure 6When there are two candidate data strips, determine whether the second operand of any of the two candidate data strips is the same as the first operand. If so, use the same candidate data strip as the reference data strip to overwrite the erroneous data strip (i.e., update the other target data strip besides the two candidate data strips). When there is one candidate data strip, determine whether the second operand of the candidate data strip is the same as the first operand. If so, use the same candidate data strip as the reference data strip to overwrite the erroneous data strip (i.e., update the other two target data strips besides the one candidate data strip).
[0067] S250. When the second operand in each candidate data strip is inconsistent with the first operand, the second operand in the candidate data strip is increased, and the instrument life number in the candidate data strip is decreased, the candidate data strip is updated, and the updated candidate data strip is used as the benchmark data strip.
[0068] In this embodiment, it is determined whether the second operand in each candidate data strip is identical to the first operand. If they are identical, the candidate data strip with the last digit in the read / write order is selected. The second operand in the selected candidate data strip is incremented by a preset step size, and the device lifespan in the candidate data strip is decremented by a preset step size, resulting in an updated candidate data strip. This updated candidate data strip can be used as a baseline data strip; at this point, the baseline data strip is more usable than the other data strips in the target data strip.
[0069] For example, see Figure 6 If there are two candidate data strips, and the second operands of both candidate data strips differ from the first operand, then a candidate data strip from a later partition whose first verification result is the preset result is selected. The second operand of this candidate data strip is incremented by 1, and the device life span is decremented by 1. This revised candidate data strip is used as the reference data strip. If there is one candidate data strip, and the second operand of this candidate data strip differs from the first operand, the second operand of this candidate data strip is incremented by 1, and the device life span is decremented by 1. The other data in this candidate data strip remains unchanged, and this revised candidate data strip is used as the reference data strip. The reference data strip is then used to update the other two target data strips.
[0070] In this embodiment, the reference data strips can also be stored in a memory buffer area, and the overwriting operation can be completed in the memory buffer area. After the processing is completed, the data of each data strip in the memory buffer area can be written into the surgical instrument.
[0071] It should be noted that the above S240 to S250 can be executed sequentially or in parallel, and the specific execution order is not limited. The above order is only the order for explaining the technical solutions in each step, not the execution order of each step.
[0072] S260: Perform correction processing on at least one second field in other data strips in the target data strip based on the reference data strip.
[0073] The other data strips are data strips in the target data strips that are different from the reference data strips.
[0074] In this embodiment, data strips in the target data strip group that are different from the reference data strip can be considered other data strips. For example, if the reference data strip is primary data strip 1, then backup data strips 1-1 and 1-2 in the target data strip group are considered other data strips. Other data strips in the target data strip group can be overwritten based on the reference data strip, that is, the other data strips are updated to become the reference data strip. This in turn updates the data strip group in the surgical instrument, ensuring that the instrument data is consistent and correct.
[0075] In this embodiment, the first field also includes an operation date. After correcting at least one second field in at least one target data strip, when the operation date is inconsistent with the current date, the instrument life number in each target data strip in the updated surgical instrument can be reduced, and the second operand in each target data strip and the first operand in the comprehensive data strip can be increased to update the operation date in the comprehensive data strip to the current date.
[0076] The operation date can be used to represent the update time of the first operand, and to verify whether the device lifespan needs to be reduced once on that day. For example, the year, month, and day information can be stored in 3 bytes in the comprehensive data strip.
[0077] In this embodiment, the operation date can be compared with the current date. If the operation date and the current date are inconsistent, it means that the instrument life value of the surgical instrument was not decremented by 1 on that day. In this case, the instrument life value in each target data strip in the updated data strip group can be decremented according to a preset step size. The second operand in each target data strip can be incremented according to a preset step size, and the first operand in the comprehensive data strip can be incremented according to a preset step size. The operation date in the comprehensive data strip is updated to the current date. Accordingly, an updated data strip group and an updated comprehensive data strip are obtained. Then, the updated data strip group and the updated comprehensive data strip can be written to the surgical instrument. The updated data strips in the surgical instrument are read into the target platform.
[0078] For example, the operation date can be used to determine whether the instrument life count of the surgical instrument on that day needs to be subtracted again. If the operation date is the same as the current date, the instrument life count is not subtracted, and the first operand, second operand, and operation date do not need to be updated. If they are different, the instrument life count needs to be subtracted again. At the same time, both the first operand and second operand are incremented by 1, and the operation date is updated to the current date. The updated data strip group and the updated integrated data strip are then stored in the memory buffer. After verifying that all operands in the memory buffer are identical, the main integrated data strip and the backup integrated data strip are written to the surgical instrument. The main integrated data strip and the backup integrated data strip are then read from the surgical instrument to verify that they have been correctly written. If they have been correctly written, the main data strip and the backup data strip are written to the surgical instrument again. If the main integrated data strip and the backup integrated data strip are not correctly written, an error message is generated. After writing the data strips to the surgical instrument, the main data strip and the backup data strip can be reread from the surgical instrument and verified in the memory buffer. If the verification passes, the data strips from the surgical instrument are read into the target platform.
[0079] The technical solution of this embodiment is to determine the consistent candidate data strip as the baseline data strip when the second operand in the candidate data strip is consistent with the first operand; when the second operand in each candidate data strip is inconsistent with the first operand, the second operand in the candidate data strip is increased, and the instrument life number in the candidate data strip is decreased, and the updated candidate data strip is used as the baseline data strip to ensure the correctness of the data in the baseline data strip, and then use the baseline data strip to correct other data strips in the target data strip to ensure the correctness of all data in the surgical instrument.
[0080] Example 3
[0081] Figure 8 Schematic diagram of a device for reading surgical instrument data according to the third embodiment of the present invention. Figure 8 As shown, the device includes: a data reading module 310, a target verification result determination module 320, a candidate data strip determination module 330 and a data correction module 340.
[0082] Among them, the data reading module 310 is used to read at least one first field in the comprehensive data strip in the surgical instrument and at least one second field in each target data strip in at least one data strip group when detecting that the surgical instrument is connected to the target platform; the first field includes at least a first operand; the second field includes at least a second operand and a second check code; the target data strip includes a main data strip and at least one spare data strip corresponding to the main data strip; the target verification result determination module 320 is used to verify the second check code in each target data strip for each data strip group, obtain a first verification result for each target data strip, and based on each first verification result , a preset result, the first operand and the second operand in each of the target data strips to determine the target verification result; a candidate data strip determination module 330 is used to, when the target verification result is inconsistent with the preset result and there is a target data strip whose first verification result is consistent with the preset result, determine the candidate data strip based on the target data strip when they are consistent; a data correction module 340 is used to correct at least one second field in at least one of the target data strips based on the first operand and the second operand in each of the candidate data strips to update the data strip in the surgical instrument and read the updated data strip in the surgical instrument to the target platform.
[0083] The technical solution of this embodiment is to read at least one first field in the comprehensive data strip in the surgical instrument and at least one second field in each target data strip in at least one data strip group when detecting that the surgical instrument is connected to the target platform; the first field includes at least a first operand; the second field includes at least a second operand and a second check code; for each data strip group, the second check code in each target data strip is checked respectively to obtain a first check result for each target data strip, and determine the target check result based on each first check result, the preset result, the first operand and the second operand in each target data strip; when the target check result is inconsistent with the preset result, and there is a target data strip with the first check result consistent with the preset result, determine a candidate data strip based on the target data strip when they are consistent; based on the first operand and the second operand in each candidate data strip, correct at least one second field in at least one target data strip to update the data strip in the surgical instrument, and read the updated data strip in the surgical instrument to the target platform, thereby solving the problems in the prior art. By verifying the data, the verified instrument data is read into the system, resulting in poor accuracy of the read data and an inability to correct the data errors. When it is detected that the surgical instrument is connected to the target platform, the second verification code in each target data strip in the same data group in the surgical instrument is verified to obtain a first verification result for each target data strip; then, the target verification result is determined based on the combination of each first verification result, the preset result, the first operand of the comprehensive data strip and the second operand in each target data strip, and when the target verification result is inconsistent with the preset result, and there is a target data strip whose first verification result is consistent with the preset result, the candidate data strip is determined based on the target data strip when they are consistent, and the data strips with correct data and incorrect data are effectively identified. Then, according to the first operand and the second operand in each candidate data strip, at least one target data strip is corrected to ensure the correctness of the data in the surgical instrument, thereby ensuring the accuracy of the platform in reading the surgical instrument data and achieving the technical effect of improving the safety and stability of the platform's use of surgical instruments.
[0084] Based on the above device, optionally, the data reading module 310 includes:
[0085] A comprehensive data strip reading unit, configured to read at least two first fields in the comprehensive data strip of the surgical instrument when detecting that the surgical instrument is connected to the target platform; the first fields including a feature code and a first check code;
[0086] The target data strip reading unit is used to read at least one second field in each target data strip in the data strip group from the surgical instrument in sequence for each data strip group when the feature code is a preset feature code and the first check code is checked and passed.
[0087] Based on the above-mentioned device, optionally, a target verification result determination module 320 is used to determine that the target verification result is a verification pass when each of the first verification results is consistent with the preset result and the second operand in each of the target data strips is consistent with the first operand; wherein the preset result is a verification pass.
[0088] Based on the above device, optionally, the second field further includes the life span of the device, and the data correction module 340 includes:
[0089] a reference data strip determining unit, configured to, when a second operand in any candidate data strip is consistent with the first operand, determine a reference data strip based on the consistent candidate data strip; or, when the second operand in each candidate data strip is inconsistent with the first operand, increase the second operand in the candidate data strip and decrease the device lifespan in the candidate data strip, update the candidate data strip, and use the updated candidate data strip as the reference data strip;
[0090] The correction processing unit is used to perform correction processing on at least one second field in other data strips in the target data strip based on the reference data strip; the other data strips are data strips in the target data strip that are different from the reference data strip.
[0091] Based on the above device, optionally, the first field also includes an operation date, and the device also includes: an updating unit, which is used to reduce the instrument life number in each target data strip in the updated surgical instrument when the operation date is inconsistent with the current date, and increase the second operand in each target data strip and the first operand in the comprehensive data strip, and update the operation date in the comprehensive data strip to the current date.
[0092] Based on the above-mentioned device, optionally, the device also includes: a data error prompt information determination unit, which is used to generate a data error prompt information when the feature code is not a preset feature code, or the first verification code fails to be verified; or, when the first verification results of all the target data strips are inconsistent with the preset results, generate a data error prompt information.
[0093] On the basis of the above device, optionally, the device further includes:
[0094] a cumulative error count determining unit, configured to, when generating the data error prompt information, adjust the cumulative error count upward to update the cumulative error count;
[0095] A repeated execution unit is used to repeatedly execute the operations of reading the data strips in the surgical instrument, determining the first verification result of each target data strip, and determining the target verification result when the cumulative number of errors after update is less than or equal to the preset number, so as to determine the candidate data strips when the target verification result is inconsistent with the preset result and when the first verification result of the target data strip is consistent with the preset result, and to correct at least one second field in at least one target data strip, and after reading the updated data strips in the surgical instrument to the target platform, to update the cumulative number of errors to the preset threshold.
[0096] The device for reading surgical instrument data provided by the embodiment of the present invention can execute the method for reading surgical instrument data provided by any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.
[0097] Example 4
[0098] Figure 9 1 is a schematic diagram of an electronic device that implements the method for reading surgical instrument data according to an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are provided for example purposes only and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0099] like Figure 9 As shown, electronic device 10 includes at least one processor 11 and memory, such as read-only memory (ROM) 12 and random access memory (RAM) 13, communicatively connected to at least one processor 11. The memory stores computer programs executable by the at least one processor. Processor 11 can perform various appropriate actions and processes based on the computer programs stored in ROM 12 or loaded from storage unit 18 into RAM 13. RAM 13 can also store various programs and data required for the operation of electronic device 10. Processor 11, ROM 12, and RAM 13 are interconnected via bus 14. An input / output (I / O) interface 15 is also connected to bus 14.
[0100] Multiple components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0101] The processor 11 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any other suitable processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the method for reading surgical instrument data.
[0102] In some embodiments, the method for reading surgical instrument data can be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the method for reading surgical instrument data described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to execute the method for reading surgical instrument data in any other suitable manner (e.g., via firmware).
[0103] Various embodiments of the systems and techniques described above can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0104] Computer programs for implementing the methods of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other device that reads data from a programmable surgical instrument, such that when executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer programs can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0105] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or apparatus. A computer-readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or apparatus, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media may include an electrical connection based on one or more wires, a portable computer 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 foregoing.
[0106] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device that has: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0107] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0108] A computing system may include clients and servers. The clients and servers are typically remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, creating a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This server is a hosting product within the cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and VPS services.
[0109] An embodiment of the present invention further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the method for reading surgical instrument data as provided in any embodiment of the present invention.
[0110] During implementation, the computer program product may be written in one or more programming languages or a combination thereof to perform the operations of the present invention. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0111] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.
[0112] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.
Claims
1. A method for reading surgical instrument data, characterized in that: Applied to the target platform, the method includes: When detecting that the surgical instrument is connected to the target platform, at least one first field in the comprehensive data strip of the surgical instrument and at least one second field in each target data strip in at least one data strip group are read; the first field includes at least a first operand; the second field includes at least a second operand and a second check code; the target data strip includes a main data strip and at least one backup data strip corresponding to the main data strip; For each of the data stripe groups, respectively verify the second check code in each of the target data stripes to obtain a first check result for each of the target data stripes, and determine a target check result based on each of the first check results, a preset result, the first operand, and the second operand in each of the target data stripes; When the target verification result is inconsistent with the preset result, and the first verification result of the target data strip exists and is consistent with the preset result, determining a candidate data strip based on the target data strip when they are consistent; Based on the first operand and the second operand in each of the candidate data strips, performing correction processing on at least one second field in at least one of the target data strips to update the data strip in the surgical instrument, and reading the updated data strip in the surgical instrument to the target platform; The second field further includes a device lifespan. The correcting process of at least one second field in at least one target data strip based on the first operand and the second operand in each candidate data strip comprises: When the second operand in each candidate data strip is inconsistent with the first operand, the second operand in the candidate data strip is increased, and the device life value in the candidate data strip is decreased, the candidate data strip is updated, and the updated candidate data strip is used as the reference data strip; wherein the reference data strip is determined by adding 1 to the second operand in the candidate data strip, subtracting 1 from the device life value in the candidate data strip, and using the updated candidate data strip as the reference data strip; Correction processing is performed on at least one second field in other data strips in the target data strip based on the reference data strip; the other data strips are data strips in the target data strip that are different from the reference data strip.
2. The method for reading surgical instrument data according to claim 1, characterized in that: The method of reading at least one first field in a comprehensive data strip in the surgical instrument and at least one second field in each target data strip in at least one data strip group when detecting that the surgical instrument is connected to the target platform comprises: When detecting that the surgical instrument is connected to the target platform, reading at least two first fields in the comprehensive data strip in the surgical instrument; the first fields include a feature code and a first check code; When the characteristic code is a preset characteristic code and the first verification code is verified, for each data stripe group, at least one second field in each target data stripe in the data stripe group is read from the surgical instrument in sequence.
3. The method for reading surgical instrument data according to claim 1, wherein: Determining a target verification result based on each of the first verification results, a preset result, the first operand, and the second operand in each of the target data strips includes: When each of the first verification results is consistent with the preset result, and the second operand in each of the target data strips is consistent with the first operand, the target verification result is determined to be verification passed; wherein, the preset result is verification passed.
4. The method for reading surgical instrument data according to claim 1, wherein: The correcting process of at least one second field in at least one of the target data stripes based on the first operand and the second operand in each of the candidate data stripes further includes: When the second operand of the candidate data strips is consistent with the first operand, a reference data strip is determined based on the consistent candidate data strips.
5. The method for reading surgical instrument data according to claim 1, characterized in that: The first field further includes an operation date. After performing correction processing on at least one second field in at least one target data strip, the method further includes: When the operation date is inconsistent with the current date, the instrument life number in each target data strip in the updated surgical instrument is reduced, and the second operand in each target data strip and the first operand in the comprehensive data strip are increased, and the operation date in the comprehensive data strip is updated to the current date.
6. The method for reading surgical instrument data according to claim 2, characterized in that: The method further comprises: When the feature code is not a preset feature code, or the first verification code fails to be verified, a data error prompt message is generated; or, When the first verification results of all the target data strips are inconsistent with the preset results, a data error prompt message is generated.
7. The method for reading surgical instrument data according to claim 6, characterized in that: The method further comprises: When generating the data error prompt information, the accumulated number of errors is adjusted upward to update the accumulated number of errors; When the updated cumulative number of errors is less than or equal to the preset number, the operations of reading the data strips in the surgical instrument, determining the first verification result of each target data strip, and determining the target verification result are repeated, so that when the target verification result is inconsistent with the preset result and there is a target data strip whose first verification result is consistent with the preset result, the candidate data strip is determined, and correction processing is performed on at least one second field in at least one target data strip, and after the updated data strips in the surgical instrument are read into the target platform, the cumulative number of errors is updated to the preset threshold.
8. A device for reading surgical instrument data, characterized in that: Configured on a target platform, the device includes: A data reading module is configured to read, upon detecting that a surgical instrument is connected to a target platform, at least one first field in a comprehensive data strip in the surgical instrument and at least one second field in each target data strip in at least one data strip group; the first field includes at least a first operand; the second field includes at least a second operand and a second check code; the target data strip includes a main data strip and at least one backup data strip corresponding to the main data strip; a target verification result determination module, configured to verify the second verification code in each target data stripe in each data stripe group, obtain a first verification result for each target data stripe, and determine a target verification result based on each first verification result, a preset result, the first operand, and the second operand in each target data stripe; a candidate data strip determining module configured to, when the target verification result is inconsistent with the preset result and the first verification result of the target data strip is consistent with the preset result, determine a candidate data strip based on the target data strip when the target data strip is consistent; a data correction module, configured to perform correction processing on at least one second field in at least one of the target data strips based on the first operand and the second operand in each of the candidate data strips, so as to update the data strip in the surgical instrument, and read the updated data strip in the surgical instrument to the target platform; The second field also includes the life span of the device, and the data correction module includes: a reference data strip determining unit, configured to, when the second operand in each candidate data strip is inconsistent with the first operand, increase the second operand in the candidate data strip and decrease the device lifespan in the candidate data strip, thereby updating the candidate data strip and using the updated candidate data strip as the reference data strip; wherein the reference data strip is determined by adding 1 to the second operand in the candidate data strip and subtracting 1 from the device lifespan in the candidate data strip, and using the updated candidate data strip as the reference data strip; The correction processing unit is used to perform correction processing on at least one second field in other data strips in the target data strip based on the reference data strip; the other data strips are data strips in the target data strip that are different from the reference data strip.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor. The computer program is executed by the at least one processor to enable the at least one processor to perform the method for reading surgical instrument data according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for reading surgical instrument data according to any one of claims 1 to 7 when executed.
Citation Information
Patent Citations
Database consistency verification method and device, electronic equipment and storage medium
CN116680748A
Information management method of surgical instrument and medical system
CN116721750A