Method, apparatus, medical system and computer device for status determination of a medical device
Patent Information
- Application Number
- CN202510183767.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-19
- Publication Date
- 2026-08-21
AI Technical Summary
[0004]然而,随着医学设备的日益复杂,研发人员需要维护的代码量和维护难度也随之增加
[0027]上述医学设备的状态确定方法、装置、医学系统和计算机设备,能够接收医学设备的子部件发送的状态报文,由于状态报文包括子部件的当前状态真值信息,而预设对应关系包括系统状态与状态真值信息之间的对应关系,因此,根据子部件的当前状态真值信息和预设对应关系,就可以高效、准确地确定医学设备的目标系统状态。在此过程中,不需要通过代码编程的方式确定医学设备的系统状态,也不需要研发人员进行精确的代码编程和细致调试。可见,通过预设对应关系确定目标系统状态的方式,不仅减少了需要维护的代码量和维护难度,并且,如果系统状态与状态真值信息之间的对应关系发生变化,也只需要修改预设对应关系,还有利于后续的维护,提高了确定系统状态的灵活性。
Smart Images

Figure CN122604411A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of medical device technology, and in particular to a method, apparatus, medical system, and computer device for determining the state of a medical device. Background Technology
[0002] In the field of medical devices, it is necessary to determine the system status of medical devices in a timely and accurate manner in order to take the next step based on the system status of the medical devices.
[0003] In related technologies, precise code programming and meticulous debugging by R&D personnel are usually required in order to determine the system status of medical devices through code programming.
[0004] However, as medical devices become increasingly complex, the amount of code that developers need to maintain and the difficulty of maintenance also increase. Therefore, current methods for determining system status have limitations. Summary of the Invention
[0005] Therefore, it is necessary to provide a flexible method, apparatus, medical system, and computer device for determining the status of medical devices in response to the above-mentioned technical problems.
[0006] In a first aspect, this application provides a method for determining the state of a medical device, comprising:
[0007] Receive status messages sent by sub-components of the medical device; the status messages include the current status truth information of the sub-components;
[0008] The target system state of the medical device is determined based on the current state truth information of the sub-components and the preset correspondence; the preset correspondence includes the correspondence between the system state and the state truth information.
[0009] In one embodiment, the preset correspondence includes the triggering conditions of the system state, and the triggering conditions include the target state truth information of the target sub-component associated with the corresponding system state and the logical relationship between the target state truth information.
[0010] In one embodiment, the target system state of the medical device is determined based on the current state truth information of the sub-components and a preset correspondence, including:
[0011] Based on the current state truth information of the sub-component and the preset correspondence, the system state corresponding to the satisfied trigger condition is taken as the target system state.
[0012] In one embodiment, the current state truth information of the sub-component includes the value of the target field in the sub-component's state message.
[0013] In one embodiment, the preset correspondence is updated according to functional requirement change information, which is information determined in response to an update operation triggered for the preset correspondence.
[0014] Secondly, this application also provides a method for determining the state of a medical device, comprising:
[0015] The status message of the sub-component of the medical device is sent to the control device so that the control device can determine the target system status of the medical device based on the current status truth value information of the sub-component and the preset correspondence. The status message includes the current status truth value information of the sub-component. The preset correspondence includes the correspondence between the system status and the status truth value information.
[0016] Thirdly, this application also provides a device for determining the status of a medical device, comprising:
[0017] The receiving module is used to receive status messages sent by sub-components of the medical device; the status messages include the current status truth information of the sub-components.
[0018] The determination module is used to determine the target system state of the medical device based on the current state truth information of the sub-components and the preset correspondence; the preset correspondence includes the correspondence between the system state and the state truth information.
[0019] Fourthly, this application also provides a medical device status determination apparatus, comprising:
[0020] The sending module is used to send status messages of the sub-components of the medical device to the control device, so that the control device can determine the target system status of the medical device based on the current status truth information of the sub-components and the preset correspondence. The status message includes the current status truth information of the sub-components; the preset correspondence includes the correspondence between the system status and the status truth information.
[0021] Fifthly, this application also provides a medical system, which includes a control device and at least one medical device communicatively connected to the control device;
[0022] Medical devices are used to send status messages of their sub-components to the control devices.
[0023] The control device is used to receive status messages sent by sub-components of the medical device, and determine the target system status of the medical device based on the current status truth information of the sub-components and a preset correspondence. The status message includes the current status truth information of the sub-components; the preset correspondence includes the correspondence between the system status and the status truth information.
[0024] Sixthly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of any of the above methods.
[0025] In a seventh aspect, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the above methods.
[0026] Eighthly, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of any of the above methods.
[0027] The aforementioned method, apparatus, medical system, and computer equipment for determining the state of medical equipment can receive status messages sent by sub-components of the medical equipment. Since the status message includes the current state truth value information of the sub-component, and the preset correspondence includes the correspondence between system state and state truth value information, the target system state of the medical equipment can be determined efficiently and accurately based on the current state truth value information of the sub-component and the preset correspondence. In this process, it is not necessary to determine the system state of the medical equipment through code programming, nor is it necessary for R&D personnel to perform precise code programming and meticulous debugging. Therefore, determining the target system state through the preset correspondence not only reduces the amount of code and maintenance difficulty, but also, if the correspondence between system state and state truth value information changes, only the preset correspondence needs to be modified, which is beneficial for subsequent maintenance and improves the flexibility of determining the system state. Attached Figure Description
[0028] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0029] Figure 1 This is a diagram illustrating the application environment of a medical device status determination method in one embodiment.
[0030] Figure 2 This is a flowchart illustrating a method for determining the state of a medical device in one embodiment;
[0031] Figure 3 This is a schematic diagram illustrating the interaction between a medical device and a control device in one embodiment.
[0032] Figure 4 This is a schematic diagram illustrating a process for determining the state of a target system in one embodiment.
[0033] Figure 5 This is a schematic diagram illustrating another process for determining the state of a target system in one embodiment;
[0034] Figure 6 A structural block diagram of a state determination device for a medical device in one embodiment;
[0035] Figure 7 This is a structural block diagram of a state determination device for another medical device in one embodiment;
[0036] Figure 8 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0037] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0038] Figure 1 This is an application environment diagram of a medical device state determination method in one embodiment. The medical device state determination method provided in this application embodiment can be applied to, for example... Figure 1 In the application environment shown, medical device 101 can communicate with control device 102 via wired or wireless means. For example, medical device 101 can communicate with control device 102 via a preset local area network.
[0039] The medical device 101 includes various single-system scanning devices or multi-system layer scanning devices. For example, the medical device 101 includes, but is not limited to, computed tomography (CT) equipment, positron emission tomography (PET) equipment, magnetic resonance imaging (MRI) equipment, PET-CT equipment, and PET-MR equipment. In one embodiment, the medical device 101 may be an X-ray-equipped medical device.
[0040] The control device 102 can be various personal computers, laptops, smartphones, tablets, or independent physical servers, server clusters or distributed systems composed of multiple physical servers, or cloud servers providing cloud computing services. In some embodiments, the control device 102 can also be a central processing unit (CPU), a digital signal processor (DSP), a field-programmable gate array (FPGA), or other programmable logic devices.
[0041] Figure 2 This is a flowchart illustrating a method for determining the state of a medical device in one embodiment. In an exemplary embodiment, such as... Figure 2 As shown, a method for determining the state of a medical device is provided, which can be applied to... Figure 1 The following description uses the control equipment as an example, including the following steps S201 to S202.
[0042] S201, Receive a status message sent by a sub-component of the medical device; the status message includes the current status truth information of the sub-component.
[0043] In this embodiment, the medical device includes at least one sub-component. The sub-component is used to implement the preset functions of the medical device. Exemplarily, the sub-component includes, but is not limited to, image acquisition software (IAS), a high-voltage generator (GEN), a collimator (COL) component, a field-programmable gate array (FPGA), a dose area product (DAP), a C-arm interface board (CIB), a robot interface board (RIB), a table interface board (TIB), a user interface board (UIB), a computer running the tablet acquisition and image processing pipeline (IPPC), and a computer running the video management system (VPC).
[0044] Furthermore, the control device can receive status messages sent by the sub-components. For example, the control device can receive status message A sent by sub-component A, status message B sent by sub-component B, status message C sent by sub-component C, and so on. The sub-components can periodically send corresponding status messages to the control device, or they can send corresponding status messages to the control device only when their own status changes; this embodiment is not limited to this.
[0045] Furthermore, the status message includes the current status truth value information of the sub-component. Optionally, after receiving the status message of the sub-component, the control device can parse the status message to determine the current status truth value information in the status message. Further, optionally, the current status truth value information can be in the header, body, or other preset position of the status message; this embodiment does not limit the position of the current status truth value information in the status message.
[0046] The current state truth information represents the truth information of the sub-component at its current state. This state truth information characterizes the state of the sub-component. State states include, but are not limited to, the overall state of the component, the state of the component module, and fault states. The truth information is encoded based on Boolean values. Optionally, the state truth information may include at least one bit.
[0047] For example, suppose the state truth information of sub-component A includes 2 bits. When sub-component A is in state 1, the corresponding state truth information is 00; when sub-component A is in state 2, the corresponding state truth information is 01; when sub-component A is in state 3, the corresponding state truth information is 10; and when sub-component A is in state 4, the corresponding state truth information is 11. If sub-component A is currently in state 3, then according to the state message of sub-component A, it can be determined that the current state truth information of sub-component A is 10.
[0048] S202, determine the target system state of the medical device based on the current state truth information of the sub-component and the preset correspondence; the preset correspondence includes the correspondence between the system state and the state truth information.
[0049] In this embodiment, the control device can determine a preset correspondence. The preset correspondence can be information stored in the control device in advance, or it can be information sent to the control device by other devices. This embodiment does not impose any restrictions. Optionally, the preset correspondence can be an editable or configurable correspondence, so that the user can flexibly update the preset correspondence according to actual needs.
[0050] Optionally, the preset mapping relationship is the mapping relationship in a preset configuration file. The preset configuration file includes, but is not limited to, an extensible markup language (XML) configuration file or a text (TXT) configuration file; this embodiment does not limit the file format of the preset configuration file. In some embodiments, the preset configuration file can be a configuration file with structured information such as nested relationships, such as an XML configuration file, which facilitates efficient editing or configuration of the preset mapping relationship.
[0051] Furthermore, the preset correspondence includes the correspondence between system states and state truth information. In other words, the preset correspondence defines which state truth information each system state should correspond to. Thus, the control device can determine the target system state of the medical device based on the current state truth information of the sub-components and the preset correspondence.
[0052] For example, assuming that in the preset correspondence, the state truth information 00 and state truth information 01 of sub-component A both correspond to system state A, the state truth information 10 of sub-component corresponds to system state B, and the state truth information 11 of sub-component corresponds to system state C, continuing the example above, the current state truth information of sub-component A is 10, then according to the current state truth information and the preset correspondence, the target system state can be determined to be system state B.
[0053] In some embodiments, the control device can also acquire the current system state of the medical device and determine the target system state of the medical device based on the current system state of the medical device, the current state truth information of the sub-components, and a preset correspondence. Here, the current system state of the medical device refers to the current system state in which the medical device is located. That is, the preset correspondence can define what state truth information should correspond to when transitioning from one system state to another. In this way, the control device can determine the target system state of the medical device based on the current system state, the current state truth information of the sub-components, and the preset correspondence.
[0054] For example, suppose that in the preset correspondence, the state truth information 00 of sub-component A corresponds to the switch from system state B to system state A, the state truth information 01 of sub-component A corresponds to the switch from system state C to system state A, the state truth information 10 of sub-component A corresponds to the switch from system state A to system state B, and the state truth information 11 of sub-component A corresponds to the switch from system state B to system state C. If the current state truth information of sub-component A is 10, and the current system state of sub-component A is system state A, then the target system state is determined to be system state B.
[0055] In the aforementioned method for determining the state of medical equipment, status messages sent by sub-components of the medical equipment can be received. Since these status messages include the current state truth value information of the sub-components, and the preset correspondence includes the correspondence between system states and state truth value information, the target system state of the medical equipment can be determined efficiently and accurately based on the current state truth value information of the sub-components and the preset correspondence. This process eliminates the need for code programming to determine the system state of the medical equipment, and also eliminates the need for developers to perform precise code programming and meticulous debugging. Therefore, determining the target system state through preset correspondence not only reduces the amount of code and maintenance difficulty, but also, if the correspondence between system states and state truth value information changes, only the preset correspondence needs to be modified, which facilitates subsequent maintenance and improves the flexibility of determining the system state.
[0056] In an exemplary embodiment, optionally, the preset correspondence includes the triggering conditions of the system state, and the triggering conditions include the target state truth information of the target sub-component associated with the corresponding system state and the logical relationship between the target state truth information.
[0057] In this embodiment, the preset correspondence may include the triggering conditions of system states. For example, the preset correspondence may include the triggering conditions of system state A, the triggering conditions of system state B, and so on.
[0058] Furthermore, the triggering conditions include the target state truth information of the target sub-components associated with the corresponding system state and the logical relationship between the target state truth information.
[0059] The target sub-component can be at least one of the sub-components of the medical device. Optionally, the target sub-components associated with different system states can be different. For example, if system state A is related to sub-components A and B, then the target sub-components associated with system state A include sub-components A and B. If system state B is related to sub-components A, B, and D, then the target sub-components associated with system state B include sub-components A, B, and D.
[0060] The target state truth information represents the desired state truth information of the sub-component. Optionally, the target state truth information can characterize the values of preset bits in the state truth information of the sub-component. In other words, based on the target state truth information, the values of preset bits in the state truth information of the sub-component can be determined.
[0061] Logical relationships include, but are not limited to, at least one of the following: AND, OR, NOT, and XOR. For example, if the target state truth information of sub-component A and the target state truth information of sub-component B are in an "AND" relationship, then the target state truth information of sub-component A and the target state truth information of sub-component B must both satisfy the condition. If the target state truth information of sub-component A and the target state truth information of sub-component B are in an "OR" relationship, and so on.
[0062] Thus, based on the target state truth information of the associated target sub-components under the corresponding system state and the logical relationships between the truth information of each target state, the triggering condition corresponding to the system state is determined. For example, in the triggering condition of system state A, system state A is associated with the target state truth information of sub-component A and the target state truth information of sub-component B, and the target state truth information of sub-component A and the target state truth information of sub-component B are in an "AND" relationship.
[0063] In the above embodiments, since the preset correspondence includes the triggering conditions of the system state, and the triggering conditions include the target state truth information of the target sub-component associated with the corresponding system state and the logical relationship between the target state truth information, the correspondence between the system state and the state truth information can be flexibly defined through the preset correspondence.
[0064] In an exemplary embodiment, optionally, the above-described S202 can be implemented in the following manner:
[0065] Based on the current state truth information of the sub-component and the preset correspondence, the system state corresponding to the satisfied trigger condition is taken as the target system state.
[0066] In this embodiment, after determining the current state truth information of the sub-component, the control device can traverse the triggering conditions of each system state in the preset correspondence based on the current state truth information of the sub-component, and determine the triggering conditions satisfied by the current state truth information, so as to take the system state corresponding to the satisfied triggering conditions as the target system state.
[0067] In some embodiments, the control device may also determine whether the current triggering condition is met according to the current state truth information of the sub-component in a preset order. If the current triggering condition is not met, the control device continues to determine the next triggering condition until a satisfactory triggering condition is determined, and the system state corresponding to the satisfactory triggering condition is taken as the target system state.
[0068] Further optionally, for each system state triggering condition, the control device can determine the current state truth information of the target sub-component, and compare the current state truth information of the target sub-component with the target state truth information, as well as the logical relationship between the current state truth information of the target sub-component and the target state truth information, to determine whether the triggering condition of the system state is met.
[0069] In the above embodiments, since the system state corresponding to the satisfied triggering condition is taken as the target system state based on the current state truth information of the sub-component and the preset correspondence, the system state of the medical device can be determined efficiently and accurately using the status message of the sub-component.
[0070] In one exemplary embodiment, optionally, the current state truth information of the subcomponent includes the value of the target field in the subcomponent's state message.
[0071] In this embodiment, after receiving the status message of the sub-component, the control device can determine the target field in the status message and determine the current status truth information of the sub-component based on the value of the target field.
[0072] Optionally, the status message of a subcomponent may include a message body, which may include at least one target field, and the target field includes at least one bit. For example, the status message may include a message identifier (MsgID), size, sender, receiver, reserved, and message body. The name, length, and description of each field are given in Table 1 and will not be repeated here.
[0073] Table 1 Status Messages
[0074]
[0075] Table 2 shows the fields in the body of a status message. For example, as shown in Table 2, the fields in the body may include a header, component ID, type, component status (Comp_Status), component control module warning (Comp_Alarm), component control module I / O status (Comp_IO_State), submodule status (Module_Status), submodule warning (Module_Alarm), submodule I / O status (Module_IO_State), and a reserved field (Reserved).
[0076] Please refer to Table 2. The message header can be set according to actual needs; there are no restrictions here. The ComponentID is used to distinguish different sub-components. A Type value of 0 indicates the default type, and a Type value of 1 indicates an extended type. Extended types can be customized according to actual needs. Component Status (Comp_Status) indicates the readiness status of the sub-component; Component Control Module Alarm (Comp_Alarm) indicates the alarm status of the sub-component; Component Control Module IO Status (Comp_IO_State) indicates the input / output (IO) status of the sub-component; Submodule Status (Module_Status) indicates the status of submodules within the sub-component; Submodule Alarm (Module_Alarm) indicates the alarm status of submodules within the sub-component; Submodule IO Status (Module_IO_State) indicates the input / output status of submodules within the sub-component.
[0077] It should be noted that a sub-component may include at least one sub-module. A sub-module may be a module determined by further dividing the preset functions of the sub-component. For example, the sub-component is used to implement the image analysis function, sub-module 1 in the sub-component is used to implement the segmentation function in the image analysis function, and sub-module 2 in the sub-component is used to implement the registration function in the image analysis function.
[0078] In this way, by mapping the sub-component identifier (ComponentID) to the target field of the reserved field (Reserverd), the current status truth information of the sub-component can be determined by the value of the target field. It is evident that the current status truth information can be systematically divided into data segments of the status message according to status conditions such as sub-component identifier, component ready status, and component control module warning, and the status conditions of the sub-component can be integrated into a set of status values for recording. This encoding method efficiently integrates complex information into the status message in truth value form.
[0079] Table 2 State Truth Information
[0080]
[0081] In the above embodiments, since the state truth information of the sub-component includes the value of the target field in the state message of the sub-component, the state of the sub-component is not represented by traditional numerical values, strings or other complex data types, but can be encoded using Boolean values, making the current state truth information concise and clear, which is conducive to efficiently determining the state of the target system based on the current state truth information and the preset correspondence.
[0082] In one exemplary embodiment, optionally, the preset correspondence is updated according to functional requirement change information, which is information determined in response to an update operation triggered for the preset correspondence.
[0083] In this embodiment, the functional requirement change information is information determined in response to an update operation triggered based on a preset correspondence. For example, a user (e.g., a researcher) can trigger an update operation based on a preset correspondence when the functional requirements of a medical device change. The update operation may include, but is not limited to, mouse operations, keyboard operations, gesture operations, touch operations initiated by the user on a computer device such as a personal computer, etc., and this embodiment is not limited to these. The functional requirements may include, but are not limited to, adjustments to functions such as upgrades, calibration, movement, and wire placement within the medical device.
[0084] In some embodiments, the update operation may also be an update operation triggered for a preset configuration file. For example, a user can click the edit control of a preset configuration file to trigger the update operation.
[0085] Furthermore, functional requirement change information is used to update preset correspondences. It is understood that functional requirement change information is related to the functional operations of the medical device. Optionally, functional requirement change information may include at least one of the following: system state change information, target sub-component change information, target state truth value information change information, and logical relationship change information. Taking system state change information as an example, system state change information represents changes in the system state, such as deleting an existing system state, adding a new system state, or modifying an existing system state. Other change information follows a similar principle and will not be elaborated upon here.
[0086] In this way, the preset correspondence can be updated based on the functional requirement change information. For example, suppose that after the functional business of a medical device changes, it is necessary to add a trigger condition for system state 'a'. Then, based on the functional requirement change information determined by the update operation, the trigger condition for system state 'a' can be added, thereby updating the preset correspondence.
[0087] In the above embodiments, since the preset correspondence is updated according to the functional requirement change information, and the functional requirement change information is the information determined after the update operation triggered for the preset correspondence, the preset correspondence is an editable or configurable correspondence. If the correspondence between the system state and the state truth information changes, the preset correspondence can also be modified efficiently without requiring R&D personnel to perform precise code programming and detailed debugging, thus reducing the amount of code to be maintained and the maintenance difficulty.
[0088] In an exemplary embodiment, optionally, the above-described method for determining the state of a medical device may further include the following steps:
[0089] Control the medical equipment according to the target system state of the medical equipment.
[0090] In other words, after determining the target system state of the medical device, the control device can control the medical device according to the target system state. Optionally, the control device can control at least one sub-component in the medical device according to the target system state. Further optionally, the control device can also control the indicator lights of the medical device according to the target system state.
[0091] In one embodiment, the control device can update its status message after determining the target system status of the medical device. Further optionally, the control device can control the medical device based on its status message.
[0092] Related technologies utilize complex software logic and programming code to monitor the real-time status of multiple sub-components, such as radiation sources, detectors, and mechanical moving parts. This coded logic controls medical equipment, for example, controlling indicator light displays to provide operators with information about the equipment's operational status, safety status, or fault warnings. Controlling medical equipment heavily relies on precise coding and meticulous debugging by software engineers to ensure that every state is accurately reflected in the front-end interface or indicator lights.
[0093] However, as device functions become increasingly complex and the types of states continue to increase, the amount of code expands dramatically, making maintenance more difficult. Furthermore, any errors or omissions at the code level can lead to control malfunctions (such as indicator light errors), thereby affecting the normal use of the device and the user's accurate judgment. This makes the limitations of traditional methods increasingly apparent.
[0094] In the above embodiments, since the target system state of the medical device is determined based on the current state truth information of the sub-components and the preset correspondence, and the medical device is controlled according to the target system state of the medical device, there is no need for complex programming logic, thus improving the accuracy of the control of the medical device.
[0095] The above mainly describes the process of applying this method to control equipment. The following describes the process of applying this method to medical equipment. In an exemplary embodiment, a method for determining the state of a medical device is provided, which is applied to... Figure 1 Taking medical equipment as an example, the explanation includes the following steps:
[0096] The status message of the sub-component of the medical device is sent to the control device so that the control device can determine the target system status of the medical device based on the current status truth value information of the sub-component and the preset correspondence. The status message includes the current status truth value information of the sub-component. The preset correspondence includes the correspondence between the system status and the status truth value information.
[0097] In the aforementioned method for determining the status of medical devices, since the status message includes the current status truth value information of the sub-components, and the preset correspondence includes the correspondence between the system status and the status truth value information, sending the status message of the sub-components of the medical device to the control device allows the control device to determine the target system status of the medical device based on the current status truth value information of the sub-components and the preset correspondence. In this process, it is not necessary to determine the system status of the medical device through code programming, nor is it necessary for R&D personnel to perform precise code programming and meticulous debugging. Therefore, determining the target system status through the preset correspondence not only reduces the amount of code and maintenance difficulty, but also, if the correspondence between the system status and the status truth value information changes, only the preset correspondence needs to be modified, which is beneficial for subsequent maintenance and improves the flexibility of determining the system status.
[0098] The process of applying this method to medical devices can be referred to the above embodiments, and will not be repeated here.
[0099] Please continue to refer to this. Figure 1 In one embodiment, a medical system is provided, the medical system including a control device 102 and at least one medical device 101 communicatively connected to the control device 102.
[0100] Furthermore, the medical device 101 is used to send status messages of its sub-components to the control device 102.
[0101] The control device 102 is used to receive status messages sent by the sub-components of the medical device 101, and determine the target system state of the medical device 101 based on the current status truth information of the sub-components and the preset correspondence. The status message includes the current status truth information of the sub-components; the preset correspondence includes the correspondence between the system state and the status truth information.
[0102] The principles of the medical system can be referred to in the above embodiments, and will not be repeated here.
[0103] To more clearly illustrate the method for determining the status of the medical device in this application, this paper combines... Figures 3 to 5 Please provide an explanation. Figure 3 This is a schematic diagram illustrating the interaction between a medical device and a control device in one embodiment, such as... Figure 3 As shown, medical devices and control devices can execute this method according to the following procedure.
[0104] S301, the medical device sends a status message of a sub-component of the medical device to the control device.
[0105] S302, the control device uses the system state corresponding to the satisfied trigger condition as the target system state based on the current state truth information of the sub-component and the preset correspondence.
[0106] S303, The control device controls the medical device according to the target system state of the medical device.
[0107] S301~S303 can be referred to the above embodiments, and will not be repeated here.
[0108] Figure 4 This is a schematic diagram illustrating a process for determining the state of a target system in one embodiment, such as... Figure 4 As shown, taking a system control unit (SCU) as an example, each of the m sub-components in the medical device updates its own status message and sends a corresponding status message to the SCU, which receives the status messages sent by each sub-component. Then, based on the current status truth value information of the sub-components and a preset correspondence, the SCU determines the target system state from n system states. In this way, the system controller can aggregate the states of the m sub-components into n system states of the medical device, accurately determining the target system state of the medical device through the current status truth value information, avoiding misjudgment and miscontrol.
[0109] Where m and n are both integers greater than 1. The n system states include, but are not limited to, Initialization (Init), Loaded, Working, QuickReset, Idle, Shutdown, and Error. For example, the Idle state indicates the image chain is ready for imaging, but the check is not loaded; the Loaded state indicates the check is loaded, and the Idle indicator light is on; the Working state indicates the image chain is acquiring; and the Error state indicates an error condition, and acquisition cannot be performed.
[0110] Taking the wiring process of medical equipment as an example, the SCU receives status messages from each sub-component in real time and judges the current status truth value information of the sub-component according to a predefined preset correspondence to determine whether the wiring requirements are met. If the wiring requirements are met, that is, the trigger condition corresponding to the wiring state is satisfied, the SCU determines that the medical equipment is in the wiring state. Then, the SCU sends a signal to notify the wiring indicator light to light up and allows the wiring request. Similarly, if the wiring requirements are not met, that is, if the trigger condition corresponding to the wiring state is not satisfied, the wiring indicator light is turned off.
[0111] Furthermore, if the SCU receives a wiring request when the medical device is in the wiring state, it means that the triggering conditions corresponding to the working state have been met. In this case, the SCU determines that the medical device is in the working state and performs the wiring work.
[0112] Figure 5 This is a schematic diagram illustrating another process for determining the state of a target system in one embodiment, such as... Figure 5 As shown, medical devices send function requests to the SCU through functional interfaces, human-computer interaction, network messages, or test scripts to cause changes in the state of sub-components within the medical device. When the state of a sub-component changes, the state message sent by the sub-component to the SCU also changes. The SCU can determine whether the triggering condition is met based on the correspondence in the preset configuration file and the current state truth value information in the state message. If the triggering condition is met, the system state that meets the triggering condition is taken as the target system state.
[0113] Furthermore, by recording the pre-defined correspondence between the current state truth value information and the system state through a pre-configured configuration file, it is equivalent to recording the relationship between state messages and functional business logic. This achieves decoupling of Boolean logic from functional business logic, which is an important strategy for improving system flexibility and maintainability. In this way, if the actual functional business logic changes, only the correspondence between the Boolean logic values and the functional business logic needs to be adjusted according to the change in requirements; that is, only the pre-defined correspondence needs to be modified, without modifying the code itself. This provides high scalability and flexibility, allowing for more flexible adaptation to new functional requirements.
[0114] In summary, the method for determining the status of medical equipment provided in this application has the following advantages: First, through predefined preset correspondences, it can automatically and accurately determine whether the status of each component of the equipment meets the actual control requirements (e.g., wiring requirements), avoiding interference from human factors and improving the accuracy of system status and subsequent control. Second, it can receive and process feedback status messages in real time, quickly responding to changes in equipment status and improving work efficiency and response speed. Third, the preset correspondences can be modified and adjusted according to actual needs to adapt to different system states and control requirements, enhancing the flexibility and adaptability of medical equipment. Fourth, controlling medical equipment based on the target system status can reduce safety risks caused by abnormal equipment status. For example, when the system status does not meet wiring requirements, the wiring indicator light can be turned off in a timely manner to remind the operator.
[0115] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0116] Based on the same inventive concept, this application also provides a medical device state determination apparatus for implementing the above-described method for determining the state of a medical device. The solution provided by this apparatus is similar to the implementation described in the above-described method. Therefore, the specific limitations in one or more embodiments of the medical device state determination apparatus provided below can be found in the limitations of the medical device state determination method described above, and will not be repeated here.
[0117] Figure 6 This is a structural block diagram of a state determination device for a medical device in one embodiment. In an exemplary embodiment, such as... Figure 6 As shown, a medical device status determination device 600 is provided, comprising: a receiving module 601 and a determining module 602, wherein:
[0118] The receiving module 601 is used to receive status messages sent by sub-components of the medical device; the status messages include the current status truth information of the sub-components.
[0119] The determination module 602 is used to determine the target system state of the medical device based on the current state truth information of the sub-component and the preset correspondence; the preset correspondence includes the correspondence between the system state and the state truth information.
[0120] The aforementioned medical device status determination device can receive status messages sent by sub-components of the medical device. Since the status message includes the current status truth value information of the sub-component, and the preset correspondence includes the correspondence between system status and status truth value information, the target system status of the medical device can be determined efficiently and accurately based on the current status truth value information of the sub-component and the preset correspondence. In this process, it is not necessary to determine the system status of the medical device through code programming, nor is it necessary for R&D personnel to perform precise code programming and meticulous debugging. Therefore, determining the target system status through the preset correspondence not only reduces the amount of code and maintenance difficulty, but also, if the correspondence between system status and status truth value information changes, only the preset correspondence needs to be modified, which is beneficial for subsequent maintenance and improves the flexibility of determining the system status.
[0121] Optionally, the preset correspondence includes the triggering conditions of the system state, and the triggering conditions include the target state truth information of the target sub-component associated with the corresponding system state and the logical relationship between the truth information of each target state.
[0122] Optionally, the determining module 602 is used to determine the system state corresponding to the satisfied triggering condition as the target system state based on the current state truth information of the sub-component and the preset correspondence.
[0123] Optionally, the current status truth information of the subcomponent includes the value of the target field in the subcomponent's status message.
[0124] Optionally, the preset correspondence is updated based on the functional requirement change information, which is the information determined in response to the update operation triggered for the preset correspondence.
[0125] Figure 7 This is a structural block diagram of a state determination device for another medical device in one embodiment. In an exemplary embodiment, such as... Figure 7 As shown, a medical device status determination device 700 is provided, including: a sending module 701, wherein:
[0126] The sending module 701 is used to send status messages of sub-components of the medical device to the control device, so that the control device can determine the target system status of the medical device based on the current status truth information of the sub-component and a preset correspondence; the status message includes the current status truth information of the sub-component; the preset correspondence includes the correspondence between the system status and the status truth information.
[0127] The various modules in the status determination device of the aforementioned medical equipment can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0128] Figure 8 This is an internal structure diagram of a computer device in one embodiment. In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown below. Figure 8 As shown, the computer device includes a processor, memory, input / output interfaces (I / O), and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores relevant data. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements a method for determining the state of a medical device.
[0129] Those skilled in the art will understand that Figure 8 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0130] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0131] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the above method embodiments.
[0132] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0133] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0134] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0135] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for determining the state of a medical device, characterized in that, The method includes: Receive a status message sent by a sub-component of the medical device; the status message includes the current status truth information of the sub-component; The target system state of the medical device is determined based on the current state truth information of the sub-component and the preset correspondence; the preset correspondence includes the correspondence between the system state and the state truth information.
2. The method according to claim 1, characterized in that, The preset correspondence includes the triggering conditions of the system state, and the triggering conditions include the target state truth information of the target sub-component associated with the corresponding system state and the logical relationship between the target state truth information.
3. The method according to claim 2, characterized in that, The step of determining the target system state of the medical device based on the current state truth information of the sub-components and a preset correspondence includes: Based on the current state truth information of the sub-component and the preset correspondence, the system state corresponding to the satisfied triggering condition is taken as the target system state.
4. The method according to any one of claims 1-3, characterized in that, The current state truth information of the sub-component includes the value of the target field in the status message of the sub-component.
5. The method according to any one of claims 1-3, characterized in that, The preset correspondence is updated according to the functional requirement change information, which is the information determined in response to the update operation triggered for the preset correspondence.
6. A method for determining the state of a medical device, characterized in that, The method includes: The status message of the sub-component of the medical device is sent to the control device so that the control device can determine the target system status of the medical device based on the current status truth value information of the sub-component and a preset correspondence. The status message includes the current status truth value information of the sub-component. The preset correspondence includes the correspondence between the system status and the status truth value information.
7. A status determination device for a medical device, characterized in that, The device includes: A receiving module is used to receive status messages sent by sub-components of the medical device; the status messages include the current status truth information of the sub-components. The determination module is used to determine the target system state of the medical device based on the current state truth information of the sub-component and a preset correspondence; the preset correspondence includes the correspondence between the system state and the state truth information.
8. A status determination device for a medical device, characterized in that, The device includes: The sending module is used to send status messages of sub-components of the medical device to the control device, so that the control device can determine the target system state of the medical device based on the current status truth information of the sub-component and a preset correspondence; the status message includes the current status truth information of the sub-component; the preset correspondence includes the correspondence between the system state and the status truth information.
9. A medical system, characterized in that, The medical system includes a control device and at least one medical device communicatively connected to the control device. The medical device is used to send status messages of its sub-components to the control device; The control device is used to receive status messages sent by sub-components of the medical device, and determine the target system status of the medical device based on the current status truth information of the sub-components and a preset correspondence. The status message includes the current status truth information of the sub-component; the preset correspondence includes the correspondence between the system status and the status truth information.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.