Operation of medical devices during startup and shutdown
The method of using notification-based coordination for subsystem readiness in medical devices addresses the challenge of deterministic startup and shutdown, ensuring safe and efficient operation by preparing each subsystem before proceeding, thus reducing malfunctions and startup time.
Patent Information
- Application Number
- JP2021512396
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2018-10-10
- Filing Date
- 2019-10-10
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2039-10-10
AI Technical Summary
Existing automated medical devices face challenges in ensuring deterministic and reliable startup and shutdown processes, particularly when modularized into multiple subsystems, leading to potential malfunctions and prolonged startup times.
A method and system for medical devices that utilize application-ready and subsystem-ready notifications to coordinate the activation of multiple subsystems, allowing for deterministic startup and shutdown by ensuring each subsystem is prepared independently before proceeding to the next, with a primary subsystem coordinating the process.
This approach ensures safe, reliable, and efficient activation and deactivation of medical devices by preventing malfunctions, reducing startup time, and facilitating independent testing and development of subsystems.
Smart Images

Figure 0007566728000001 
Figure 0007566728000002 
Figure 0007566728000003
Abstract
Description
[Technical field]
[0001] The present invention relates to the field of medical devices, and more specifically to techniques for operating automated medical devices during start-up and shut-down. [Background technology]
[0002] An automated medical device, whether used alone or in combination, is a machine that is intended by its manufacturer to be used in humans or animals for medical purposes, which may include the diagnosis, prevention, monitoring, treatment or alleviation of disease, injury, or handicap.
[0003] Automated medical devices are frequently used in the healthcare sector and are subject to strict regulatory frameworks to ensure they are safe and efficient.
[0004] Generally, automated medical devices are operated by software systems, which are complex systems that need to be carefully designed to reduce the risk of malfunctions that could affect health.
[0005] It may be desirable to design a software system to be composed of two or more independent subsystems or modules. Building a series of independent subsystems gives product designers and manufacturers of medical devices the ability to create and deploy subsystems that perform specific functions that are a subset of the functionality of the complete medical device. Such modularization of software may be paired with modularization of hardware, for example, with different subsystems running on different processors located on one or more integrated circuits or chips.
[0006] Although much effort is typically put into designing software systems to ensure that medical devices operate in a controlled, safe, and reliable manner while performing medical purposes, startup and shutdown of medical devices are often ignored and performed by estimating nominal startup times for individual processes and using corresponding timers. This can lead to long startup times and a tendency for malfunctions if, for any reason, the startup of a process must be delayed beyond its nominal startup time. Malfunctions that occur during startup or shutdown can seriously affect subsequent medical procedures performed by the medical device, regardless of the safety measures built into the software system. Startup and shutdown can be particularly vulnerable to malfunctions in software systems that are modularized into two or more subsystems.
[0007] There is a general need to provide a software system for a medical device that ensures deterministic, safe and reliable start-up and shutdown of the medical device.
[0008] The prior art includes the paper "Logical Architecture of Medical Telediagnostic Robotic System" by Stanczyk et al., 21st International Conference on Methods and Models in Automation and Robotics (MMAR), pp. 200-205 (2016). The paper presented a multifunctional robotic system that enables remote physical examinations. The patient-side control system comprises a robot centralized control system (RCCS), which is connected to lower components such as a robot head, a lower controller for the robot arm and a mobile robot base, respectively. Based on sensor signals, assistant or doctor logical requests, and status signals from all lower components, the RCCS decides whether the lower components can be operated. All communication is performed through the RCCS. When the power-on is enabled, the RCCS goes into the startup state and starts the startup procedure. When all lower components are recognized as active, the RCCS goes into the active state. Conversely, when the power-off button is pressed, the RCCS goes into the shutdown state and starts the shutdown procedure. When all lower components finish the shutdown procedure, the RCCS goes into the off state.
[0009] Although such prior art control systems can enable a safe and reliable high level of start-up of the hardware components of a robotic system, they do not guarantee deterministic start-up of all processes in the control system.
[0010] The prior art also includes US Patent Application Publication No. 2014 / 0121509, which discloses a dependency-based startup method in a multi-modality medical processing system. A system controller is configured to coordinate the startup and shutdown of multiple executable components, which are modality-specific components for communicating with respective medical devices coupled to the processing system. For each executable component, the system controller obtains dependency information including a list of other executable components on which the executable component depends. The system controller dynamically derives a start order for the multiple executable components based on the dependency information, and starts the executable components according to the start order. The system controller waits until each component publishes all its interfaces and optionally broadcasts a process ready message before starting the next component in the start order.
[0011] This startup method only considers startup at the level of executable components, thereby not guaranteeing deterministic startup of all processes in the system, e.g., processes executed by software applications in one or more executable components. Furthermore, the proposed startup method is complex in that it requires an exchange of dependency information and a centralized determination of the startup order by a system controller. Summary of the Invention
[0012] SUMMARY OF THE PRESENT EMBODIMENT It is an object of the present invention to at least partially overcome one or more of the limitations of the prior art.
[0013] A further object is to enable deterministic launch of all relevant processes of a software system for operating a medical device.
[0014] Another objective is to enable a deterministic shutdown of all relevant processes of a software system for operating a medical device.
[0015] One or more of these objects, as well as further objects that may become apparent from the following description, are at least partially achieved by a method for operating a medical device, a medical device, and a computer-readable medium, the embodiments of which are defined by the dependent claims.
[0016] A first aspect of the invention is a method of operating a medical device. The medical device is configured to perform a medical procedure and comprises a set of processors and a set of memory units storing a software system for execution by the set of processors. The software system defines a plurality of subsystems including a primary subsystem and a set of secondary subsystems. Each subsystem includes a software application involved in the operation of the medical device during the medical procedure. The method includes starting each software application upon startup of the medical device, providing an application ready notification by each software application in each secondary subsystem when ready to launch, providing a subsystem ready notification by each secondary subsystem when all software applications have provided application ready notifications, and coordinating the launch of the set of secondary subsystems by the primary subsystem based on receiving the subsystem ready notifications.
[0017] A second aspect of the present invention is a medical device for performing a medical procedure. The medical device is comprised of a set of processors and a set of memory units storing a software system for execution by the set of processors. The software system, when executed by the set of processors, operates the medical device to perform the medical procedure. The software system defines a number of subsystems including a primary subsystem and a set of secondary subsystems. Each subsystem includes a software application responsible for operation of the medical device during the medical procedure. The software system, when executed by the configuration of the processors, performs a method according to the first aspect or any of its embodiments.
[0018] A third aspect is a computer readable storage medium comprising a software system for operating a medical device to perform a medical procedure. The software system defines a plurality of subsystems including a primary subsystem and a set of secondary subsystems. Each subsystem includes a software application responsible for operation of the medical device during the medical procedure. The software system, when executed by a set of processors of the medical device, performs a method according to the first aspect or any of its embodiments.
[0019] These aspects allow for deterministic startup of all associated software applications of a software system in a medical device. Deterministic startup is made possible by separating the startup procedure into preparation for startup at the subsystem level by using application ready and subsystem ready notifications, and preparation for startup at the system level, where a primary subsystem coordinates the startup of individual subsystems. Furthermore, the aforementioned aspects allow the responsibility for ensuring that software applications are ready for startup to be delegated to the respective subsystems. This allows the startup procedure to be modularized corresponding to the software system, so that each subsystem is operable to prepare for startup independently of the other subsystems. Such modularization is advantageous in that it allows the startup procedure to be implemented separately on the subsystems, and the startup of the subsystems can be tested separately during development and deployment.
[0020] Furthermore, the use of notifications allows for safe and reliable startup of a medical device. For example, a software system can be prevented from being started in the event of a malfunction that prevents the provision of a notification. The use of notifications also allows for simple and efficient detection and localization of malfunctions in software systems during startup of a medical device. Furthermore, compared to the use of timers and nominal startup times as described above, the use of notifications can also reduce the time required to start up a medical device.
[0021] Corresponding modularization may be implemented in the shutdown procedure by using notifications to prepare all relevant running software applications within the medical device for power loss in a deterministic, safe, and reliable manner.
[0022] Some embodiments of the first aspect are defined below and may serve the purpose of enabling, achieving, or improving deterministic start-up and / or shutdown of all associated processes of a software system for operating a medical device, or another purpose as would be understood by one of skill in the art.
[0023] In one embodiment, the method further includes, in each subsystem, enabling, by the software application of each secondary subsystem, communication between the software applications of each secondary subsystem based on obtaining the subsystem ready notification.
[0024] In one embodiment, the coordinating includes generating, by the primary subsystem, a system ready notification for receipt by the set of secondary subsystems.
[0025] In one embodiment, the coordinating further includes enabling, by each secondary subsystem, communication between at least a subset of software applications of different subsystems among the plurality of subsystems based on obtaining a system ready notification, whereby the medical device is ready to perform at least a portion of the medical procedure.
[0026] In one embodiment, the method further includes providing, by each software application in the primary subsystem when ready to launch, an application ready notification, wherein the coordinating is performed by the primary subsystem based on receiving a subsystem ready notification from each secondary subsystem and an application ready notification from each software application in the primary subsystem.
[0027] In one embodiment, a manager in the primary subsystem is responsible for receiving and coordinating subsystem ready notifications from each secondary subsystem and application ready notifications from each software application in the primary subsystem.
[0028] In one embodiment, each secondary subsystem further includes a manager, and the manager of each secondary subsystem provides a subsystem ready notification based on obtaining application ready notifications from all of its software applications.
[0029] In one embodiment, the coordinating includes providing, by a manager of the primary subsystem, a system ready notification for each of the secondary subsystems based on obtaining an application ready notification from each of the software applications of the primary subsystem and a subsystem ready notification from each of the secondary subsystems.
[0030] In one embodiment, the method further includes enabling communication between at least a subset of the software applications of the different subsystems among the multiple subsystems, by the managers of the respective secondary subsystems and by the manager of the primary subsystem based on obtaining the system ready notification, whereby the medical device is ready to perform at least a portion of the medical procedure.
[0031] In one embodiment, the software system defines at least two secondary subsystems and enabling communication between at least a subset of the software applications of the different subsystems includes enabling direct communication between at least a subset of the software applications of the at least two secondary subsystems.
[0032] In one embodiment, the subsystems execute on separate processors within a set of processors.
[0033] In one embodiment, two or more subsystems are critical to a medical procedure performed by the medical device and include respective managers, and the method further includes operating each of the managers of the two or more subsystems to transmit an external cardiac signal during said startup, and commencing mutual monitoring of the external cardiac signal between the managers of the two or more subsystems for detection of malfunction.
[0034] In one embodiment, the method further includes, during said booting, reporting, by a manager of the primary subsystem, a first error when an application ready notification is not received from each software application of the primary subsystem within a first predetermined time, and reporting, by the manager of the primary subsystem, a second error when a subsystem ready notification is not received from each secondary subsystem within a second predetermined time.
[0035] In one embodiment, the method includes, during shutdown of the medical device, providing a shutdown notification by a manager of the primary subsystem to a set of secondary subsystems, requesting, by the manager of the primary subsystem, termination of software applications of the primary subsystem, and after obtaining the shutdown notification, requesting, by the manager of each secondary subsystem, termination of software applications of each secondary subsystem.
[0036] In one embodiment, requesting termination of the software applications of each secondary subsystem includes, for at least one secondary subsystem, providing, by the manager, a subsystem not ready notification for the software applications of the secondary subsystem; preparing for termination based on obtaining the subsystem not ready notification by at least a subset of the software applications of the secondary subsystem; providing, by the at least one subset of the software applications when prepared for termination, an application ready to shut down notification by the manager of the secondary subsystem based on obtaining the application ready to shut down notification from the at least one subset of the software applications.
[0037] In one embodiment, requesting termination of the primary subsystem software applications includes providing, by a manager of the primary subsystem, a subsystem not ready notification to the primary subsystem software applications, preparing for termination by at least a subset of the primary subsystem software applications based on obtaining the subsystem not ready notification, and providing, by at least the subset of the primary subsystem software applications, a notification that the applications are ready to shut down when preparing to terminate.
[0038] In one embodiment, the method further includes initiating a loss of power to the medical device by a manager of the primary subsystem based on obtaining a subsystem ready for shutdown notification from the at least one secondary subsystem and an application ready for shutdown notification from the at least one subset of software applications of the primary subsystem.
[0039] In one embodiment, the method includes setting, by at least one of the managers, a shutdown reason parameter indicating a normal shutdown if there is no error during the shutdown and storing the shutdown reason parameter in a set of memory units, and setting, by the at least one of the managers during the startup, a shutdown reason parameter indicating a shutdown error and storing the shutdown reason parameter in a set of memory units.
[0040] In one embodiment, the software applications comprise one or more critical software applications critical to a medical procedure performed by the medical device, and the method further includes, during shutdown of the medical device and prior to providing a shutdown notification to a set of secondary subsystems, providing, by a manager of a primary subsystem, a shutdown request for the one or more critical software applications, validating, by the one or more critical software applications, the shutdown request taking into account the operation of the medical device, and providing, by at least one of the one or more critical software applications, a notification that the application is ready to shut down if shutdown is acceptable, and the manager of the primary subsystem further includes providing the shutdown notification to the set of secondary subsystems based on obtaining a notification that the application is ready to shut down from at least one of the one or more critical software applications.
[0041] In one embodiment, the plurality of subsystems includes a first subsystem having a software application for controlling a medical device to perform a medical procedure and a second subsystem having a software application for communicating with actuators and / or sensors of the medical device, and the coordinating enables communication between the software application for controlling and the software application for communicating with the medical device.
[0042] In one embodiment, the plurality of subsystems further comprises a third subsystem having a software application for monitoring the medical procedure to detect deviations, and a fourth subsystem having a software application for communicating with an auxiliary sensor of the medical device, and the coordinating further enables communication between the software application for monitoring the medical procedure and the software application for communicating with the auxiliary sensor, and between the software application for controlling the medical device and the software application for monitoring the medical procedure.
[0043] A further aspect of the invention is a method of operating a medical device. The medical device is configured to perform a medical procedure and comprises a configuration of a processor and a configuration of a memory unit storing a software system for execution by the configuration of the processor. The software system defines a plurality of subsystems including a primary subsystem and a set of secondary subsystems. Each subsystem includes a software application involved in the operation of the medical device during the medical procedure. The method includes, during startup of the medical device, starting each software application, providing an application ready notification by each software application when ready to start, providing a subsystem ready notification by each subsystem when all software applications have provided application ready notifications, and coordinating startup of the subsystem by the primary subsystem based on receiving the subsystem ready notification. The method may be deployed on a medical device corresponding to the second aspect and implemented on a computer readable storage medium corresponding to the third aspect. The foregoing embodiments are equally applicable to the method of the further aspect.
[0044] Further objects and aspects, as well as embodiments, features, technical effects, and advantages of the present invention will become apparent from the following detailed description, the appended claims, and the drawings. [Brief description of the drawings]
[0045] Hereinafter, embodiments of the present invention will be described in more detail with reference to the accompanying drawings. [Figure 1A] 1A-1C show examples of medical devices in which embodiments of the present invention may be implemented. [Figure 1B] 1A-1C show examples of medical devices in which embodiments of the present invention may be implemented. [Figure 1C] 1A-1C show examples of medical devices in which embodiments of the present invention may be implemented. [Diagram 2]FIG. 2 is a schematic block diagram of hardware components of a medical device connected to a signal communication structure. [Diagram 3] FIG. 3 is a schematic block diagram of a software system for operating a medical device. [Figure 4A] 4A-4B are a flowchart of a method performed for activation of a medical device according to an embodiment of the present invention. [Figure 4B] 4A-4B are a flowchart of a method performed for activation of a medical device according to an embodiment of the present invention. [Figure 5A] 5A-5D are flow charts of a method performed for shutting down a medical device according to an embodiment of the present invention. [Figure 5B] 5A-5D are flow charts of a method performed for shutting down a medical device according to an embodiment of the present invention. [Figure 5C] 5A-5D are flow charts of a method performed for shutting down a medical device according to an embodiment of the present invention. [Figure 5D] 5A-5D are flow charts of a method performed for shutting down a medical device according to an embodiment of the present invention. [Figure 6] FIG. 6 illustrates the state of the software system of FIG. 3 when operated in accordance with an embodiment of the present invention. [Figure 7A] 7A-7E are sequence diagrams of the operation of the software program of FIG. 3 for start-up of a medical device according to an embodiment of the present invention. [Figure 7B] 7A-7E are sequence diagrams of the operation of the software program of FIG. 3 for start-up of a medical device according to an embodiment of the present invention. [Figure 7C] 7A-7E are sequence diagrams of the operation of the software program of FIG. 3 for start-up of a medical device according to an embodiment of the present invention. [Figure 7D]7A-7E are sequence diagrams of the operation of the software program of FIG. 3 for start-up of a medical device according to an embodiment of the present invention. [Figure 7E] 7A-7E are sequence diagrams of the operation of the software program of FIG. 3 for start-up of a medical device according to an embodiment of the present invention. [Figure 8A] 8A-8C are sequence diagrams of the operation of the software program of FIG. 3 for shutting down a medical device according to an embodiment of the present invention. [Figure 8B] 8A-8C are sequence diagrams of the operation of the software program of FIG. 3 for shutting down a medical device according to an embodiment of the present invention. [Figure 8C] 8A-8C are sequence diagrams of the operation of the software program of FIG. 3 for shutting down a medical device according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0046] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The embodiments of the present invention will now be described more fully hereinafter with reference to the accompanying drawings, in which some, but not all, embodiments of the present invention are shown. Indeed, the solutions of the present invention may be embodied in many different forms and should not be construed as limited to the embodiments set forth herein, but rather, these embodiments are provided so that this disclosure can satisfy applicable legal requirements. Like reference characters refer to like elements throughout.
[0047] It will also be understood that, where possible, any of the advantages, features, functions, devices, and / or operational aspects of any of the embodiments of the invention described and / or contemplated herein may be included in any of the other embodiments of the invention described and / or contemplated herein, and / or vice versa. Furthermore, where possible, any term used herein in the singular also includes the plural and / or vice versa, unless otherwise specified. As used herein, "at least one" means "one or more," and these phrases are intended to be interchangeable. Thus, even though the phrases "a" and / or "one" or "one or more" are used herein, as used herein, unless the context requires otherwise to express language or necessary implication, phrases such as "comprises" or "comprises" are used in an inclusive sense, i.e., to specify the presence of the described features, but do not preclude the presence or addition of further features in various embodiments of the invention. As used herein, a "set" of an item is intended to imply the provision of one or more items.
[0048] Furthermore, it will be understood that terms such as first, second, etc. may be used herein to describe various elements, but these elements should not be limited by these terms. These terms are used only to distinguish one element from another element. For example, a first element can be called a second element, and similarly, a second element can be called a first element, without departing from the scope of the present invention. As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items.
[0049] Well-known functions or configurations may not be described in detail for brevity and / or clarity.Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0050] An embodiment of the present invention is directed to a technique that allows for deterministic start-up and / or shutdown of all relevant processes of a medical software system for operating a medical device. A medical device is an automated apparatus or machine configured to perform a medical procedure in relation to a human or animal subject, optionally in combination with one or more other medical devices. As used herein, a medical procedure relates to one or more of the following: diagnosis, prevention, monitoring, treatment or mitigation of a disease, injury, or handicap, or monitoring for their detection. In the following, it is assumed that a medical software system comprises two or more subsystems that execute on one or more processors to control a medical device to perform a medical procedure. A subsystem may be seen as a software module of computer-executable instructions that may be independently developed and tested to provide a specific function in relation to the operation of a medical device when performing a medical procedure. Each subsystem includes a set of software applications, each software application corresponding to a process or task that is executed within the context of the respective subsystem. Thus, a software application within a subsystem may be designed to perform a group of coordinated processes to provide a specific function of the subsystem. However, it is conceivable that a subsystem may include one or more software applications that are not involved in the operation of a medical device. Additionally, the subsystems may include further software components, such as middleware and / or lower level software components that perform basic functions or services in the software system, such as a communication stack for managing communications with other subsystems, an error manager for managing technical errors, a notification manager for managing notifications, etc. One or more of the subsystems may run on top of one or more operating systems to take advantage of services provided by the operating systems in relation to hardware and software resources.Depending on the implementation, the operating system may include, for example, a real-time operating system, an embedded operating system, a single-tasking operating system, or a multitasking operating system, or any combination thereof. It is also contemplated that one or more subsystems may be configured to operate without an operating system and directly interface with the hardware resources of the medical device.
[0051] 1A-1C are schematic diagrams of examples of medical devices that are directly or indirectly connected in fluid communication with a subject. It should be noted that the illustrated examples are highly schematic and are provided only for the purpose of illustrating different implementation scenarios for embodiments of the present invention.
[0052] FIG. 1A illustrates a medical device 10 operable to deliver a medical fluid in a controlled manner into the subject's 100 body, for example, into the subject's 100 circulatory system, as indicated by the arrows. The medical fluid may be any suitable liquid, including, but not limited to, medicines and / or nutrients. This type of medical device 10 is commonly known as an "infusion pump." In the illustrated simplified example, the medical device 10 comprises a fluid line 11 for connection to the subject 100, a display 12, control buttons 13 (one shown), indicator lights 14, a speaker 15, a control system 16, one or more actuators 17 for controlled delivery of the medical fluid to the subject 100 via the fluid line 11, and one or more sensors 18 for providing sensor data indicative of the infusion process performed by the infusion pump. The actuators 17 and sensors 18 may include internal (shown in dotted lines) and / or external components of the medical device 10. The control system 16 is configured to coordinate the operation of the actuators 17 and sensors 18 to carry out the infusion pump's intended medical procedure, to operate the display 12, indicator lights 14, and speaker 15 as necessary in connection with the medical procedure, and to obtain user input via the control buttons 13. For example, the display 12 may be operated to present instructions to a user of the medical device 10, the indicator lights 14 may be operated to indicate device status, the speaker 15 may be operated to generate warning signals, etc.
[0053] Figure 1B illustrates a medical device 10 operable to deliver dialysis fluid to the peritoneal cavity of a subject 100 in a controlled manner and subsequently remove dialysis fluid therefrom, as indicated by the double arrow. This medical procedure is commonly known as automated peritoneal dialysis, and the medical device 10 is often referred to as a "PD cycler." The medical device 10 of Figure 1B may have a similar set of components as the medical device 10 of Figure 1A, at the level of detail shown, and will not be described further.
[0054] FIG. 1C illustrates two medical devices 10, 10' that may be involved in a medical procedure to perform extracorporeal blood processing, for example as part of a renal replacement therapy such as hemodialysis, hemodiafiltration, hemofiltration or ultrafiltration. The medical device indicated at 10 is a blood processing device, which comprises a blood withdrawal line 11A and a blood return line 11B for connection to the circulatory system of a subject 100, for example in a vascular access. As indicated by the arrows, the medical device 10 is operable to withdraw blood from the subject 100, process the blood, and return the processed blood to the subject 100 in a controlled manner. The medical device indicated at 10' is operable to prepare a fluid to be used by the blood processing device 10, and comprises a fluid line 11 for supplying the fluid to the blood processing device 10. In one example, the medical device 10' is a water preparation device, and the fluid is purified water. For example, the water processing device 10' can filter incoming water by reverse osmosis, as known in the art. Each of the medical devices 10, 10' of FIG. 1C may have a similar set of components as the medical device 10 of FIG. 1A, in the level of detail shown, and will not be described further.
[0055] FIG. 2 shows examples of hardware components that may be active during operation of a medical device, such as that shown in FIGS. 1A-1C, and the interconnection of such hardware components. In the illustrated example, the hardware components are connected for signal exchange across a signal communication structure 20, which may include any form of bus structure or switch fabric structure and / or individual wiring. It is also contemplated that one or more components may be located on a common substrate, such as an integrated circuit (IC), and interconnected by signal conductive tracks on the common substrate, which in turn are connected to other components by the signal communication structure 20. In the example of FIG. 2, the medical device comprises four separate processors P1-P4, two separate memory units M1-M2, as well as a display 12, control buttons 13, indicator lamps 14, a speaker 15, an actuator 17, and a sensor 18. The processors P1-P4 and memory units M1-M2 are "separate" in the sense that they are separately operable units, while they may or may not be located in any combination on a common substrate, such as an IC. Each of the processors P1-P4 may be any commercially available processing device, such as a CPU, DSP, microprocessor, FPGA, ASIC, or any other electronic programmable logic device, or a combination thereof. Each of the memory units M1-M2 may include non-volatile or volatile memory, or a combination thereof, including, but not limited to, ROM, PROM, EEPROM, flash memory, removable memory, RAM, DRAM, SRAM, cache memory, hard drive, storage medium, etc.
[0056] In the example of Figure 2, the above software system may be stored in one or more memory units M1-M2 for execution by one or more processors P1-P4, such that the control system 16 of Figures 1A-1C may be implemented by the software system when executed by one or more of the processors P1-P4.
[0057] The software system may be provided for installation on the medical device on any suitable computer readable medium (CRM). The CRM may include non-transitory storage or memory media, such as electronic, magnetic or optical media, whether volatile or non-volatile. Alternatively or additionally, the CRM may comprise a transitory medium, such as a propagating signal, whether electrical power, electromagnetic or digital, that may be conveyed over a communications medium, such as a network and / or wireless link.
[0058] The hardware components of Figure 2 are provided by way of example only. The medical device 10, 10' may include any number of each type of component, and some of the components of Figure 2 may be omitted or replaced depending on the desired functionality of the medical device. For example, if the display 12 is touch sensitive, the control button 13 may be replaced with a virtual button on the display 12. It is also understood that the example of Figure 2 is non-exhaustive and that the medical device may include other types of components that are active during its operation, such as a keyboard, a computer mouse, a power supply, etc.
[0059] Generally, the medical device 10, 10' comprises at least one processor, at least one memory unit, and at least one of an actuator and a sensor. The medical device 10, 10' of Figs. 1A-1C generally includes at least one actuator 17 and may also include at least one sensor 18. Medical devices designed for monitoring may primarily include at least one sensor 18, but do not necessarily include an actuator 17. In the example of Figs. 1A-1C, the actuator 17 may include one or more of a fluid pump, a valve, a heater, a cleaning system, etc., and the sensor 18 may be configured to generate sensor data representative of one or more of a temperature, a conductivity, a concentration, a pressure, a flow rate, etc.
[0060] FIG. 3 is a block diagram of a software system for executing in a medical device, such as any of the medical devices mentioned above, according to a non-limiting example. As shown in the figure, the software system is composed of four subsystems SS1-SS4. In the following, it is assumed that the subsystems SS1-SS4 execute on one or more separate processors. In the example of FIG. 2, the subsystems SS1-SS4 are executable on respective processors P1-P4. In other words, in some embodiments, the subsystem SS1 is executable on the processor P1, the subsystem SS2 is executable on the processor P2, the subsystem SS3 is executable on the processor P3, and / or the subsystem SS4 is executable on the processor P4. Each subsystem SS1-SS4 includes a set of software applications involved in the operation of the medical device while performing a medical procedure. The configuration of the software applications in the subsystems SS1, SS2, SS3, SS4 are collectively indicated by SW1, SW2, SW3, SW4, respectively. The individual software applications in the subsystems SS1, SS2, SS3, SS4 are designated by the software applications SW1x, SW2x, SW3x, SW4x, respectively. Furthermore, each subsystem SS1-SS4 includes a respective communication module, denoted ISC1-ISC4, which includes the above mentioned communication stack and is responsible for managing the communication with one or more other subsystems. In the illustrated example, ISC1-ISC4 are configured to establish communication between subsystems SS1 and SS3, between subsystems SS1 and SS2, and between subsystems SS3 and SS4. According to an embodiment, each subsystem SS1-SS4 further comprises a manager module, denoted SHM1-SHM4, hereinafter denoted "manager". Each manager SHM1-SHM4 is responsible for managing the operation of its subsystem SS1-SS4 during start-up and shutdown. Each manager SHM1-SHM4 has access to a list of managed software applications.The managers SHM1-SHM4 may also be responsible for monitoring the health of the running software system, for example, by each manager SHM1-SHM4 monitoring that its software applications SW1-SW4 are executing as expected. One or more of the managers SHM1-SHM4 may also include boot code that is executed at start-up to prepare the system for loading and running an operating system on one or more of the processors P1-P4.
[0061] In the example of FIG. 3, the subsystem SS1 includes a software application designated by SW1c, and the subsystem SS3 includes a software application designated by SW3c. The software applications SW1c and SW3c are distinguished from other software applications by being critical to the operation of the medical device when performing a medical procedure. In this context, "critical" means that the correct operation of the respective software application SW1c, SW3c is necessary for the medical procedure to be performed according to a requirement specification that may be set by the manufacturer and / or a regulatory authority, for example, with a view to reducing health risks to the subject 100 (a subsystem including at least one critical software application is also referred to herein as a "critical subsystem"). In one example, the critical software application may be configured to control the medical procedure performed by the medical device, for example, by generating an ordered sequence of control commands or signals for operating one or more actuators 17 and, optionally, one or more sensors 18. In another example, the critical software application may be configured to monitor the operation of the medical procedure performed by the medical device, for example, by generating an ordered sequence of control commands or signals for operating one or more sensors 18.
[0062] In one specific example, SW1c is configured to control the medical procedure, and SW3c is configured to monitor the operation of the medical procedure. Many medical devices performing medical procedures that pose a health risk to a subject in case of malfunction in either the main system controlling the medical procedure, or in the hardware components used by such main system, are required to include a protection system that operates in parallel and is independent of the main system. Whenever the protection system detects a potential malfunction, the medical device is switched to a safe operating condition. Thus, returning to FIG. 3, subsystem SS1 corresponds to the main system, and subsystem SS3 corresponds to the protection system. Subsystems SS2 and SS4 may be configured to communicate with different settings of actuators and / or sensors based on commands / signals generated by subsystems SS1 and SS3, respectively. To this end, each of subsystems SS2, SS4 may comprise a software application for providing access to peripherals (e.g., actuators and / or sensors) connected to the respective subsystems SS2, SS4. To achieve independence between the main system and the protection system, SS2 may be connected to a set of main sensors, and SS4 may be connected to a separate set of auxiliary sensors. The subsystems SS1 to SS4 may also be implemented on separate processors (e.g., P1 to P4 in FIG. 2) to achieve independence. In a variant, the subsystems SS2 and / or SS4 may be included within the subsystems SS1 and SS3, respectively.
[0063] Thus, in one embodiment, the software system may include at least a main system (subsystem SS1) and a protection system (subsystem SS3), which may be monitoring and fail-safe components and are fully redundant to subsystem SS1 to help ensure patient safety at all times. Subsystem SS3 may be designed such that any single fault in subsystem SS1 that poses a danger to the patient can be detected and avoided by subsystem SS3. In normal conditions, subsystem SS1 reads the current state of the HW and / or SW components, determines the next state according to the selected operating mode, and writes the new state to the HW and / or SW components as necessary. Due to the risk of errors inherent in each of these three operating phases, subsystem SS3 is implemented to protect the patient in case of a fault by stopping the system and notifying the operator of the fault condition. Possible faults may include lost or misrepresented data, software miscalculation or failure, or hardware failure, for example, of transducers, switches, or processors. Subsystem SS3 protects against such risks by monitoring the commands and status information transmitted in the system. Subsystem SS3 may also be connected to one or more dedicated sensors to provide redundant measurements. It should be noted that the link between the subsystems need not be a single connection, but may comprise a series of links, such as one or more of integrated circuits, digital logic, I / O buses, and software.
[0064] Below are examples of software applications that may be included in subsystem SS3. It should be understood that this is merely an example given to improve understanding and provide additional context. Thus, subsystem SS3 may include additional, fewer, or other software applications. It will also be apparent that the following example structures, or portions thereof, may be implemented in other subsystems of the system, such as subsystem SS1. In one specific example, subsystem SS3 comprises an I / O application ("I / O") that is responsible for implementing the lower SW in HW, except for serial communication. Thus, I / O provides I / O data to clients and may also perform CRC of I / O data. An alarm processing application is responsible for managing alarms and requesting resets through I / O when an alarm is active. During operation of the medical device, the alarm processing application interacts with the mode management application (below) and I / O. The configuration processing application is responsible for providing therapy settings to clients in subsystem SS3. During operation of the medical device, the configuration processing application interacts with subsystem SS1 via inter-system processing (below). The Data Logger application is responsible for receiving text-based log data from other software applications in subsystem SS3 and provides the log data to clients. During operation of the medical device, the Data Logger application also interacts with the Time Handling application (below). The Mode Management application is responsible for providing clients with the current system and treatment status. The status is received from subsystem SS1 via Inter System Handling (below) and I / O. The Time Handling application provides clients with the current system time. The Device Monitoring application is responsible for monitoring ongoing treatment using values retrieved from I / O. If subsystem SS1 does not take preventive action in time, the Device Monitoring application is responsible for reporting an alarm to the Alarm Handling application.During operation of the medical device, the device monitoring application also interacts with a configuration processing application, a mode management application, a time processing application, and a software health monitoring software module (below). The device monitoring application may monitor the state and state changes of subsystem SS1. For example, in the context of a medical device as illustrated with reference to FIGS. 1A-1C, the device monitoring application may also monitor the operation (values, commands, status, timing, etc.) of one or more blood leak detectors, one or more weight scales, one or more clamps, one or more air bubble detectors, one or more pumps (such as syringe pumps, blood pumps, dialysis fluid pumps, effluent pumps, exchange pumps, etc.), one or more pinch valves, one or more control panels, one or more liquid leak detectors, one or more pressure sensors, etc. Subsystem SS3 further includes a software health monitoring software module, corresponding to SHM3 of FIG. 3, which is responsible for monitoring the health of the software within subsystem SS3 and for monitoring that subsystem SS1 is alive and running. Exemplary tasks include checking software integrity, checking RAM, monitoring all software applications in subsystem SS3 to ensure they are running as expected, monitoring subsystem SS1 to ensure it is running, and kicking hardware (HW) watchdogs. Subsystem SS3 also includes an inter-system communication software module corresponding to ISC3 in FIG. 3 that is responsible for managing serial communications with other subsystems including subsystem SS1. Inter-system communication may be subdivided into inter-system handling for high-level communications and inter-system transport for low-level communications. In one embodiment, alarm handling, configuration handling, data logger, mode management, and time handling are thread-safe libraries that run in the context of the client, and software health monitoring runs as a task and is event-driven to act on incoming events. The software health monitoring task also has a periodic event with a predefined period (e.g., 50 ms) to handle timeouts. The software health monitoring task has the highest priority to prevent other tasks from blocking the monitoring task. The device monitoring is executed as a task and has a cycle execution, e.g., 50 ms, and a high priority to execute when required. The I / O is executed as a task and is event-driven to service I / O events and has a periodic execution, e.g., 5 ms, for independent signal reading and bus buffer emptying. The I / O task can service events in a short time frame while at the same time having a medium priority to avoid blocking the device monitoring task. The inter-system communication is executed as a task and is event-driven because the responsibility of the inter-system communication is to handle incoming and outgoing communication events. The inter-system communication task also has a cycle execution, e.g., 100 ms, for monitoring system status messages. The inter-system communication task is a low priority because this task has the lowest real-time requirements. Communication between tasks is non-blocking. A high priority task may not be blocked by communication with a lower priority task.
[0065] FIG. 4A is a flow chart of an embodiment of a method 400 for start-up of a medical device including the software system of FIG. 3. The method 400 assumes that one of the subsystems is a "primary subsystem" that coordinates the start-up of the subsystems, while the remaining subsystems are denoted as "secondary subsystems." The method is generally applicable to any software system that includes one primary subsystem and at least one secondary subsystem. In the following example, SS1 is the primary subsystem and SS2-SS4 are the secondary subsystems. The following example also assumes that managers SHM1-SHM4 are controllers for the start-up of the system, as described below.
[0066] Method 400 includes step 401 of starting individual software applications SW1x-SW4x in all subsystems SS1-SS4. Step 401 may be performed after or as part of a conventional boot procedure that initiates system functions and system communications in a software system, including starting managers SHM1-SHM4 and communication modules ISC1-ISC4 of subsystems SS1-SS4. Step 401 may be performed automatically upon power-on of the medical device. In one embodiment of step 401, it begins when software applications SW1-SW4 in the respective subsystems receive a start-up command / signal that may be generated by managers SHM1-SHM4 of the respective subsystems SS1-SS4 or elsewhere in the software system. During the start of step 401, each software application SW1-SW4 may complete its respective predefined start-up sequence of operations, such as reading from memory (see memory units M1, M2 in FIG. 2), initiating one or more parameters, initiating a communication interface, etc. It should be noted that this disclosure assumes that all of the software applications SW1-SW4 shown in FIG. 3 are initiated by start-up method 400. However, it is contemplated that one or more of the subsystems SS1-SS4 may include one or more software applications that are involved in operating a medical device to perform a medical procedure, but that are launched at a different time, i.e., separately from the startup method 400.
[0067] In step 402, when each software application SW1x-SW4x is started according to step 401, the software application provides an "application ready" notification within its respective subsystem SS1-SS4 indicating that the software application is ready to launch. In this context, a software application is "ready to launch" when it is ready to execute its designated task or process and interact with other software applications. In one embodiment, the "application ready" notification is provided by a software application whenever it is operational to the extent that it is ready to receive incoming communication signals from other software applications. In some embodiments, the software application is ready to send communication signals to other software applications, for example, by a request-response message exchange pattern. Thus, the software application need not be fully operational when it provides the "application ready" notification.
[0068] Step 403 is performed separately by each subsystem SS1-SS4. When the managers SHM1-SHM4 of the respective subsystems SS1-SS4 get "application ready" notifications from all of the software applications SW1-SW4 in the respective subsystems SS1-SS4, the managers SHM1-SHM4 provide "ready" notifications within the software systems, both internally within the respective subsystems SS1-SS4 and externally for receipt by the primary subsystem SS1 (step 405 below).
[0069] Step 404 is also performed separately by each subsystem SS1-SS4. Once each of the software applications SW1-SW4 in the subsystems SS1-SS4 gets a "ready" notification provided by the managers SHM1-SHM4 of the subsystems SS1-SS4, the software applications SW1-SW4 enable communication among themselves, i.e., within the respective subsystems SS1-SS4. Step 404 thereby enables application-level "internal communication" within the respective subsystems SS1-SS4. Once step 404 is completed, all software applications within the subsystem have been started and the subsystem is now ready to interact with other subsystems within the software system.
[0070] Step 405 is executed only by the primary subsystem SS1. When the manager SHM1 receives "ready" notifications from all the secondary subsystems, the manager SHM1 coordinates the start-up of the subsystems SS1 to SS4.
[0071] Method 400 enables deterministic startup of a medical device's software system by separating startup into a subsystem level and a system level, first ensuring that all software applications are ready for startup at the subsystem level, and then ensuring that all subsystems are ready for startup at the system level before proceeding with startup. This principle is further illustrated in FIG. 6, which shows the state of the software system at the subsystem level (top) and the system level (bottom) during startup and shutdown. It is important to note that FIG. 6 does not imply that the software system is necessarily implemented as a state machine, but is only intended to illustrate the overall control mechanism during startup and shutdown of the software system. When the medical device is switched on and powered on (transitions Ia and Ib in FIG. 6), the software system is in state "system not ready" and each of the subsystems SS1-SS4 is in state "subsystem not ready". As a result of steps 401-404, which correspond to transition II in FIG. 6, each of the subsystems SS1-SS4 enters state "ready" (after receiving an "application ready" notification from its software application). At the system level, the software system is still in state "system not ready". As a result of step 405, which corresponds to transition III in FIG. 6, the software system enters the state "System Ready" (after receiving an "Ready" notification from the secondary subsystem) and the software system is prepared to operate the medical device to perform a medical procedure. It should be appreciated that the use of the "Application Ready" notification and the "Ready" notification ensures a safe and reliable start-up of the medical device. For example, the notification prevents the software system from being started whenever a malfunction occurs that prevents the notification from being provided. The use of the notifications allows for easy and efficient detection and localization of malfunctions in the software system.Furthermore, compared to the use of timers and nominal start-up times discussed in the Background section, the use of notifications can also reduce the time required to start up a medical device, since the nominal start-up time is typically set with a significant margin relative to the actual start-up time.
[0072] It is also worth noting that a common "ready" notification is received by all software applications in the subsystem in step 404, causing the individual software applications to be launched to allow for application-level internal communication within the subsystem. By steps 401-404, the launch method 400 provides a distributed, yet deterministic, launch of each subsystem. By this means, the method 400 eliminates the need for centralized control of the launch order of the individual software applications in each subsystem; instead, all these software applications are permitted to launch whenever a "ready" notification is received. Those skilled in the art will appreciate that this distributed launch of software applications not only facilitates control and troubleshooting of the launch procedure, but also facilitates maintenance and updates of the software system by facilitating the addition and removal of software applications.
[0073] Notifications may be distributed within a software system by push or pull mechanisms, as is known in the art. With a push mechanism, a notification, or a message indicating that a notification is available, is sent from the originator for receipt or interception by the recipient. With a polling mechanism, the recipient requests notifications from the originator.
[0074] Returning to Figure 4A, note that the "application ready" notifications do not have to be provided directly from each software application in each subsystem SS1-SS4 to the managers SHM1-SHM4. Instead, the software applications in the subsystems may provide the "application ready" notifications in a predefined sequence from one software application to the next. When the final software application in the sequence provides an "application ready" notification to the manager, the manager concludes that all "application ready" notifications have been provided to the subsystems.
[0075] It is also conceivable to replace the distributed managers SHM1 to SHM4 in Fig. 3 with a central manager which obtains the "application ready" and "subsystem ready" notifications as described above. However, the distributed managers SHM1 to SHM4 offer the advantage of a strict modularization of the subsystems SS1 to SS4, which can then be developed and / or tested and / or deployed independently.
[0076] In a further variant, the functions of the managers SHM1 to SHM4 are instead performed by one of the software applications in the respective subsystems SS1 to SS4.
[0077] It should also be noted that while step 404 of FIG. 4A provides the advantage of ensuring that software applications within a subsystem are able to communicate with each other and that the subsystem is truly ready to launch when the subsystem enters the “ready” state, it is contemplated that this internal communication of the subsystems will be possible at a later stage, e.g., when the software system enters the “system ready” state (e.g., in step 408 below).
[0078] In a further variation, only the software applications in the secondary subsystems SS2 to SS4 are configured to provide “application ready” notifications and to receive “ready” notifications from their respective managers SHM2 to SHM4, whereas the software applications in the primary subsystem SS1 are not.
[0079] FIG. 4B is a flow chart of an embodiment of a method 405′ for coordinating the start-up of subsystems SS1-SS4, which may be performed as part of step 405 of FIG. 4A. In step 406, primary subsystem SS1 provides a “system ready” notification to each of secondary subsystems SS2-SS4. Returning to FIG. 4A, it should be appreciated that the “system ready” notification is generated when primary subsystem SS1 gets “application ready” notifications from all of its software applications SW1 (step 403) and when it gets “ready” notifications from all of secondary subsystems SS2-SS4 (step 405). In step 407, each of secondary subsystems SS2-SS4 gets a “system ready” notification. By getting the “system ready” notification, managers SHM2-SHM4 know that all subsystems SS1-SS4 are ready to start. Similarly, manager SHM1 knows that all subsystems are ready to start. As will be appreciated from the above, a subsystem is ready to start when its software applications are started and allowed to communicate with each other.
[0080] In a subsequent step 408, the managers SHM1-SHM4 of all subsystems SS1-SS4 enable application level communication between the subsystems, so that software applications in one subsystem can communicate with software applications in another subsystem. Step 408 thereby enables "intercommunication" between subsystems SS1-SS4. In the example of FIG. 3, communication is possible between SS1 and SS2, SS1 and SS3, and SS3 and SS4. Step 408 can thus enable centralized communication, i.e., not only between a primary subsystem and one or more secondary subsystems, but also direct communication between the secondary subsystems. Once step 408 is completed, the software system is initiated and the medical device is ready to perform at least a portion of the medical procedure, for example, by providing instructions to an operator, allowing the operator to input control parameter values for the medical procedure, etc.
[0081] Method 405' ensures deterministic start-up of all subsystems SS1-SS4. The advantages of providing a "system ready" notification are similar to the advantages of providing "application ready" and "ready" notifications as described above. Note, for example, that in step 407, a common "system ready" notification is received by all secondary subsystems in the software system, which then starts the individual secondary subsystems, enabling inter-subsystem communication within the software system. By steps 406-408, start-up method 400 provides a distributed, yet deterministic start-up of the software system. This, in turn, means that method 400 does away with any need for centralized control of the start-up order of individual subsystems within the software system, and instead, all subsystems are allowed to start upon receiving a "system ready" notification. Those skilled in the art will appreciate that this distributed start-up of subsystems not only facilitates control and troubleshooting of the start-up procedure, but also facilitates maintenance and updates of the software system by facilitating the addition and removal of subsystems.
[0082] Figure 5A is a flow chart of an embodiment of a method 500 for shutting down a medical device operated by the software system of Figure 3. Shutdown may be triggered by a shutdown command generated by an operator, for example, when pressing a control button (see 13 in Figures 1A-1C), or by processing within the medical device.
[0083] In step 501, the manager SHM1 of the primary subsystem SS1 is notified about the shutdown command and proceeds to initiate the shutdown by providing a "shutdown" notification to all secondary subsystems SS2-SS4. In step 502, the manager SHM1 requests the termination of the software application SW1 in the primary subsystem SS1. In this context, "termination" means that each software application stops its activity to the extent that it is ready for power loss. Step 503 is performed by each secondary subsystem SS2-SS4 separately. The managers SHM2-SHM4 get the "shutdown" notification and then request the termination of the software applications SW2-SW4 of the secondary subsystems SS2-SS4. Then, in step 504, the manager SHM1 of the primary subsystem SS1 initiates the power loss of the medical device, for example by notifying the power manager in the medical device to cut off the power.
[0084] The combination of steps 501-503 ensures a deterministic shutdown of the medical device by separating the shutdown into a system level and a subsystem level. This principle is further illustrated in FIG. 6. When the medical device is to be shut down, the software system is in state "system ready" and each of the subsystems SS1-SS4 are in state "ready". It can be seen that as a result of step 501, which corresponds to transition IV in FIG. 6, the system enters state "system not ready". At the subsystem level, the subsystems SS1-SS4 are still in state "ready" after step 501. It can be seen that as a result of steps 502-503, each of the subsystems SS1-SS4 enters state "subsystem not ready", which corresponds to transition V in FIG. 6. This prepares the software system at both the system level and the subsystem level for a power loss, which is initiated by step 504, which corresponds to transition VI in FIG. 6.
[0085] FIG. 5B is a flow chart of an embodiment of a method 502′ for requesting termination of software application SW1 of primary subsystem SS1, which may be executed as part of step 502 of FIG. 5A. In step 505, manager SHM1 provides a “subsystem not ready” notification to software application SW1 of primary subsystem SS1. In step 506, the software application obtains the “subsystem not ready” notification. In step 507, after obtaining the “subsystem not ready” notification, each software application SW1x prepares for termination, for example, by completing all ongoing consequential activities that, if stopped immediately, would result in affecting the performance of the medical device when restarted after shutdown, i.e., generating corrupted data or jeopardizing the health of the subject. Such consequential activities may include writing data to memory, completing calculations, generating control signals for actuators (17 in FIGS. 1A-1C), etc. Consequential activities may also relate to the user experience, such as, for example, completing the playback of an audio signal by the speaker (15 in Figs. 1A-1C), presenting a shutdown message on the display (12 in Figs. 1A-1C). Thus, in step 507, each software application may allow other activities that are considered non-consequential to proceed for later termination. In step 508, each software application SW1x provides an "application ready to shut down" notification when it is ready to terminate. In step 509, the manager SHM1 gets the "application ready to shut down" notification from the software application SW1. When the manager SHM1 gets the "application ready to shut down" notification from all software applications SW1, the primary subsystem SS1 may be seen to be in state "subsystem not ready" (Fig. 6).
[0086] FIG 5C is a flow chart of an embodiment of a method 503' for requesting termination of software applications SW2-SW4 of secondary subsystems SS2-SS4, which may be performed as part of step 503 of FIG 5A. Method 503' is performed by each secondary subsystem SS2-SS4 individually. Steps 505-509 correspond to steps 505-509 of method 502' of FIG 5B and will not be further described. It should be understood that steps 505 and 509 are performed by managers SHM2-SHM4 and steps 506-508 are performed by respective software applications of secondary subsystems SS2-SS4. After step 509, each of the secondary subsystems SS2-SS4 can be seen to be in the state "Subsystem not ready" (Figure 6), and in step 510, if the managers SHM2-SHM4 have obtained "Applications ready for shutdown" notifications from all software applications of each of the secondary subsystems SS2-SS4 in step 509, then each of the managers SHM2-SHM4 sends a "Subsystem ready for shutdown" notification to the primary subsystem SS1.
[0087] Returning to FIG. 5A, in step 504, the manager SHM1 can initiate power loss only after it has received "subsystem shutdown ready" notifications from all secondary subsystems SS2-SS4 (generated by method 503') and after it has received "application shutdown ready" notifications from all software applications SW1 in the primary subsystem SS1 (generated by method 502').
[0088] In a variation of step 504, the manager SHM1 may proceed to initiate the power loss when a predefined time has elapsed since step 501, even in the absence of a "subsystem ready for shutdown" notification from one or more of the secondary subsystems SS2-SS4. Thus, the manager SHM1 may set a timer that defines the maximum time delay before the power loss is initiated. This reduces the risk of software freezes if a software application or hardware component malfunctions during shutdown. Similarly, the managers SHM1-SHM4 may set corresponding timers in step 509 in order to obtain an "application ready for shutdown" notification.
[0089] It is also possible that in step 509, one or more of managers SHM1-SHM4 completely ignores an "application ready to shut down" notification from one or more software applications, e.g., software applications that are not essential in nature if all activity were to be immediately stopped, or that such software applications do not provide an "application ready to shut down" notification. For the same reason, manager SHM1 in step 504 may completely ignore a "subsystem ready to shut down" notification from a subsystem, or that such a subsystem does not provide a "subsystem ready to shut down" notification.
[0090] Each of the methods 502' and 503' ensures a deterministic shutdown of the respective subsystems SS1-SS4, mitigating the risk of having consequential activity in progress when power is cut off.
[0091] In a further variation, only the software applications in the secondary subsystems SS2-SS4 are configured to receive a "subsystem not ready" notification from their respective managers SHM2-SHM4 and to provide an "application ready to shut down" notification, whereas the software applications in the primary subsystem SS1 are not.
[0092] While methods 502' and / or 503' can serve to reduce health risks to the subject, there may be a need to further improve patient safety during the shutdown of a medical device. In one embodiment illustrated in FIG. 5D, a gatekeeping method 520 is executed by the software system before the primary subsystem SS1 is permitted to initiate the shutdown in step 501. In the gatekeeping method 520, each critical software application is given a "deny power" that blocks the shutdown of the software system if such a shutdown is deemed to compromise patient safety. In step 521, the manager SHM1 of the primary subsystem SS1 is notified about the shutdown command and then proceeds to provide a "shutdown request" to the critical software applications, e.g., SW1c and SW3c in the example of FIG. 3. In step 522, each critical software application SW1c, SW3c validates the "shutdown request." In this validation, each critical software application SW1c, SW3c can evaluate whether the shutdown is acceptable based on or above predefined shutdown criteria. One such shutdown criterion can be patient safety. In one example, a shutdown may be deemed unacceptable until the medical procedure or sub-procedures thereof are completed. In another example, a shutdown may be deemed unacceptable until a calibration procedure is completed. In another example, a shutdown may be deemed unacceptable unless the critical software application is in a safe operating state, e.g., service mode, idle mode, etc. In step 523, the respective software application SW1c, SW3c provides an "application ready to shut down" notification only if the shutdown is deemed acceptable in step 522. Optionally, in step 524, the respective critical software application SW1c, SW3c may then enter a controlled state.In this context, "controlled state" means that the critical software applications SW1c, SW3c are operating according to the control parameter values set with patient safety in mind, for example by slowing down the pump speed, stopping the pump, opening and closing valves, turning off the heater, etc. The gatekeeping method 520 then proceeds to step 501, where the manager SHM1 proceeds to provide a "shutdown" notification only if it gets an "application ready to shut down" notification from all of the critical software applications SW1c, SW3c.
[0093] The gatekeeping method 520 prevents the medical device from being unintentionally shut down during an ongoing medical procedure, for example by an operator pressing an on / off button. Note that the timers mentioned above are not implemented in the gatekeeping method 520, meaning that each critical software application has a true veto over the shutdown process, which is stopped in step 501 unless the critical software application provides an "application ready to shut down" notification. In such a situation, it is conceivable that step 501 further involves asking the operator for confirmation that an override shutdown procedure should be initiated. Once confirmed, the critical software application is set to a controlled state where the shutdown proceeds according to the method 500 of FIG. 5A.
[0094] In the following, the above-mentioned and further embodiments are illustrated with reference to the sequence diagrams of Figures 7A-7E and 8A-8C. Figures 7A-7E show a sequence of steps performed during start-up of a medical device, divided into methods for each of transitions Ia, Ib, II, and III of Figure 6. Figures 8A-8C show a sequence of steps performed during shutdown of a medical device, divided into methods for each of transitions IV, V, and VI of Figure 6. Although error handling is briefly described in the following description, the illustrated sequence of steps assumes that start-up and shutdown are performed without errors.
[0095] FIG. 7A shows the method executed during subsystem initiation, which corresponds to transition Ia in FIG. 6. The subsystem initiation in FIG. 7A assumes that secure boot has been performed on SS1 and that SHM1 has checked the program binaries for SS1. During boot in step 701, SHM2, SHM3, and SHM4 verify the respective program binaries for SS2, SS3, and SS4, respectively. If the check in step 701 fails for any of SS2-SS4, this is detected by SS1 in a subsequent step 712 (see FIG. 7B). In step 702, each of SHM1-SHM4 initiates a kick of the respective hardware watchdog, which means that the respective watchdog timer is restarted, as known to those skilled in the art. In step 703, SHM1-SHM4 identify the software and hardware versions of SS1-SS4, respectively. In step 704, each of SHM1 and SHM3 sets a shutdown reason parameter to "error" and stores it in non-volatile memory (see M1-M2 in FIG. 2). If the subsequent shutdown is without error, the shutdown reason parameter is instead set and stored to "normal" (see step 826 in FIG. 8C). The reason for storing "error" as a default is to account for any erroneous shutdowns detected during start-up. This ensures that even in the event of an unintended abrupt shutdown caused by, for example, a loss of power, the shutdown reason parameter is stored as "error". Step 704 may involve SHM1 and SHM3 making an initial check of the stored value of the shutdown reason parameter. If the check by SHM1 (or SHM3) results in the value "error", SHM1 (or SHM3, or both) may enter a recovery mode that allows SHM1 (or SHM3, or both) to recover from where they were left before the shutdown. In the illustrated example, step 704 is performed only by the critical subsystems SS1 and SS3.However, it is contemplated that step 704 may also be performed for SS2 and / or SS4 that do not contain critical software applications to the extent recovery of SS2 and / or SS4 is required or desirable.
[0096] After step 704, SS1-SS4 proceed to transition Ib. As shown in FIG. 7A, transition II of SS1 may be executed in parallel with transition Ib.
[0097] FIG. 7B shows the method executed during system initiation, which corresponds to transition Ib in FIG. 6. In step 710, SHM1-SHM4 start their respective communication modules ISC1-ISC4 (see FIG. 3), and SHM1 repeatedly executes steps 711-712 to establish a connection to each of SS2, SS3 and SS4 by providing a connection request (step 711) and receiving a confirmation of the established connection (step 712). If the connection cannot be established, ISC1 may report an error to the system. Once the connection is established, SHM1 repeatedly executes steps 713-714 to obtain software and hardware versions from SHM2, SHM3 and SHM4 by providing a version request (step 713) and receiving version data. The version data may include identification information of the respective software and hardware versions. If the version data is not received, SHM1 may report an error in the system. Upon receiving the version data, SHM1 checks the compatibility of the software versions with each other (step 715) and with the hardware version (step 716). For example, SHM1 checks the software versions of SS2, SS3, SS4 for compatibility with the software version of SS1. If step 715 or step 716 fails, or both, SHM1 can report an error in the system.
[0098] After step 716, each of SS1-SS4 continues to transition II. As mentioned above, SS1 can execute transition II in parallel with transition Ib.
[0099] The methods of Figures 7A-7B can, for example, help mitigate the risk that software versions in different subsystems are incompatible, and / or hardware and software are mismatched, and / or program binaries are corrupted in any one of SS2-SS4, all of which can result in undefined behavior of the medical device.
[0100] It can be seen that the sequence diagrams of Figures 7A-7B illustrate an embodiment in which a method for starting up a medical device includes the steps of starting a manager in each of the subsystems, starting a communication module in each of the subsystems (SS1-SS4) by the manager, and establishing a connection with the communication module in each of the secondary subsystems by the communication module of the primary subsystem.
[0101] It can be seen that the sequence diagrams of Figures 7A-7B also illustrate an embodiment in which a method for starting up a medical device includes obtaining, by a manager of the primary subsystem, software identification information for software included in the subsystem, and verifying, by the manager of the primary subsystem, compatibility of the software based on the software identification information.
[0102] The sequence diagrams of Figures 7A to 7B can also be viewed to illustrate an embodiment in which a method of starting up a medical device includes obtaining, by a manager of the primary subsystem, hardware identification information of hardware used by the subsystem, and verifying, by the manager of the primary subsystem, compatibility between the hardware and software based on the hardware identification information and the software identification information.
[0103] FIG. 7C illustrates a method executed by SS1 during subsystem startup, corresponding to transition II of FIG. 6. In FIG. 7C, the individual software applications of SS1 are generally represented as SW1x. For illustrative purposes only, FIG. 7C also explicitly illustrates the GUI, which is the software application responsible for the graphical visualization on the display and managing the user input. The GUI is preferably located within SS1 to ensure a fast initiation of user interaction. In step 720, SHM1 provides a startup request to the GUI and each SW1x (see step 401). In step 721, after getting the startup request, the GUI and each SW1x perform an internal startup. In some embodiments, the internal startup includes preparing the software application for communication with other parts of the same subsystem, i.e., for communication between software applications or processes within the same subsystem. In step 722, the GUI and each SW1x provide a respective "application ready" notification, N1 (see step 402), when they are ready to start. This notification can indicate that the software application is ready to communicate with other parts of the same subsystem. In step 723, SHM1 waits for N1 from GUI and each SW1x. If SHM1 does not receive N1 within the timeout period, SHM1 may report an error in the system. In step 724, SHM1 determines that GUI and each SW1x are ready to be launched, i.e., when they have provided an "application ready" notification, in step 725, SHM1 provides an "application ready" notification, N2, to GUI and each SW1x (see step 403). In step 726, after receiving N2, GUI and each SW1x enable communication with each other in SS1 (see step 404). This means that any software application that is configured to exchange data with another software application in SS1 waits for N2 before initiating the data exchange. However, other functions of the respective software applications may be launched before and / or after step 726.For example, the GUI may be configured to allow user interaction as soon as possible in step 726. However, in some embodiments, one or more (or all) of the software applications are configured to suspend their internal invocations after providing N1, wait for N2, and then continue their internal invocations. Additionally, the GUI and each SW1x are activated to transmit an internal heartbeat within SS1 in any event before step 727, either before or after step 726. In step 727, SHM1 begins monitoring the internal heartbeat within SS1 to ensure that the GUI and each SW1x are operational. After step 727, SS1 is in state "Ready" and proceeds to transition III.
[0104] FIG. 7D illustrates a method executed by SS2-SS4 during subsystem startup, and corresponds to transition II of FIG. 6. In FIG. 7D, the individual software applications of SS2-SS4 are generally represented as SW2x-SW4x, respectively. Steps 720-727 of FIG. 7D correspond to steps 720-727 of FIG. 7C, with the difference that they are executed within SS2-SS4 instead of SS1. Furthermore, in some embodiments, in contrast to the method of FIG. 7C, SHM2-SHM4 may refrain from reporting an error in the system if N1 is not received within a timeout period. Instead, this error may be detected by SHM1 during system startup, specifically step 730 (see FIG. 7E), since the absence of N1 means that N2 is not generated. Considering the description of FIG. 7C, subsystem startup according to FIG. 7D should be self-explanatory and will not be described further herein. After step 727, SS2-SS4 are in state "Ready" and proceed to transition III.
[0105] 7C-7D may, for example, help mitigate the risk of a software application initiating communication with another software application in a subsystem when the other software application is not ready to communicate, in which case the other software application may be unable to receive or process the incoming request, but the software application communicating the request may not be aware of this inability.
[0106] The sequence diagrams of Figures 7C-7D can be seen to illustrate an embodiment in which, during startup and for each subsystem, a method for starting up a medical device includes the steps of operating software applications to send an internal heart rate signal, and beginning to monitor, by a manager, the internal heart rate signal to detect malfunctions in one or more of the software applications.
[0107] FIG. 7E shows the method executed during system startup, corresponding to transition III in FIG. 6. In FIG. 7E, only SHM1-SHM4 and the critical software applications SW1c and SW3c are shown, while any other software applications of SS1-SS4 are omitted. In step 730, when SS2-SS4 are ready, SHM1-SHM3 report it to SHM1 by providing a "ready" notification N2. In practice, step 730 can be replaced by step 725 in FIG. 7D, thus providing N2 both internally and externally to the respective subsystems SS1-SS4. In step 731, SHM1 waits for N2 from all of SHM2-SHM4. If SHM1 does not receive N2 within a timeout period, SHM1 can report an error in the system. In step 732, SHM1 determines that all SS1-SS4 are ready for startup (see step 405 in FIG. 4A). Note that at this stage, SHM1 knows by default that SS1 is ready to start up since it has completed transition II of FIG. 7C. In step 733, SHM1 notifies all software applications in SS1 that the system is ready to start up. In step 734, SHM1 starts transmitting external heartbeats in the system. In step 735, SHM1 provides a "system ready" notification N3 for reception by SHM2-SHM4 (see step 406 of FIG. 4B). In step 736, after obtaining N3 (see step 407 of FIG. 4B), each of SHM2-SHM4 notifies all of its software applications of the state "system ready". In step 737, each of SHM2-SHM4 starts transmitting external heartbeats in the system. In step 738, each of SHM2-SHM4 provides an acknowledgement notification for reception by SHM1. If SHM1 does not receive an acknowledgement notification within a timeout period, SHM1 can report an error in the system. In step 739, after receiving acknowledgements from all of SHM2-SHM4, SHM1 starts monitoring the external heart rate in the system.At any time after step 737, software applications in each of SS1-SS4 are permitted to initiate application-level communications with software applications in one or more other subsystems (see step 408 in FIG. 4B) over the established communications paths between SS1-SS4 (see FIG. 3).
[0108] The example of FIG. 7E further includes steps 740-741, which are executed only in conjunction with the critical software applications SW1c and SW3c and must be completed before each of SW1c and SW3c is permitted to communicate with software applications in other subsystems. In step 740, SW1c / SW3c request confirmation of a "system ready" state from SHM1 / SHM3. In step 741, SHM1 / SHM3 confirm the state to SWc1 / SW3c. This provides an additional level of robustness against malfunctions that could compromise patient safety.
[0109] To provide an additional level of robustness, step 737 of the critical subsystem SS3 may involve SHM3 also starting to monitor the external heartbeat generated by the other critical subsystem SHM1, thereby establishing mutual monitoring of heartbeats between the critical subsystems SS1, SS3, allowing the subsystems to quickly detect malfunctions of the other critical subsystem and take appropriate action.
[0110] 7E serves, for example, to mitigate the risk that a first software application in one subsystem begins communicating with a second software application in another subsystem when the second software application is not ready to communicate, in which case the second software application will not be able to receive or service the incoming request and the first software application will not be aware of the problem on the receiving end.
[0111] The sequence diagram of FIG. 7E can be seen to illustrate an embodiment in which a method for starting up a medical device includes operating a manager of each secondary subsystem to transmit an external cardiac signal and initiating monitoring, by the manager of the primary subsystem, of the external cardiac signal to detect malfunction of one or more secondary systems.
[0112] It can be seen that the sequence diagram of FIG. 7E also illustrates an embodiment in which a method for starting up a medical device includes operating each of the managers of two or more critical subsystems to transmit an external cardiac signal and initiating mutual monitoring of the external cardiac signal between the managers of the critical subsystems to detect malfunctions.
[0113] Additionally, the sequence diagrams of Figures 7C-7E can be viewed as illustrating an embodiment in which a method for booting up a medical device includes, during boot-up, reporting a first error by a manager in the primary subsystem when an "application ready" notification N1 is not received from a software application of the primary subsystem within a first predetermined period of time, and reporting a second error by the manager in the primary subsystem when a "subsystem ready" notification N2 is not received from the secondary subsystem within a second predetermined period of time.
[0114] FIG. 8A shows the method executed during system shutdown, which corresponds to transition IV of FIG. 6. At the start of the method, it is assumed that the software system is up and running and is therefore in the status "system ready" of FIG. 6, but the illustrated example also assumes that SW3c is registered with SHM1 as a "shutdown gatekeeper" and is thus a subscriber to the "shutdown" request. In step 801, an operator enters a command to shut down the medical device, for example by pressing a control button. The command is detected by the GUI, which provides the shutdown request for receipt by SHM1. In step 802, SHM1 forwards the shutdown request R1 for receipt by SW1c. In step 803, SW1c verifies R1. In step 804, after successful verification, SW1c provides R1 to SW3c. In step 805, SW3c verifies R1. After successful verification, SW3c enters the control state (step 806) and provides an "application ready to shut down" notification N7 for receipt by SW1c (step 807). After receiving N7, SW1c enters the control state (step 808) and forwards N7 to SHM1 (step 809). After receiving N7, SHM1 proceeds with system shutdown. If the verification fails in step 803 and / or SHM1 does not receive N7 within a timeout period in step 809, SHM1 returns a "shutdown not acknowledged" notification to the GUI, which can then alert the operator accordingly.
[0115] The combination of steps 802-809 corresponds to the gatekeeping method 520 of Fig. 5D, which shows that neither R1 nor N7 need to be provided in direct communication between SHM1 and the respective critical software applications SW1c, SW3c, but can be relayed in the transmission chain. Thus, comparing Fig. 5D with Fig. 8A, step 521 corresponds to steps 802 and 804, step 522 corresponds to steps 803 and 805, step 523 corresponds to steps 807 and 809, and step 524 corresponds to steps 806 and 808. In a variant, N7 is not relayed in the transmission chain, but is provided directly from SW3c to SHM1.
[0116] In step 810, SHM1 updates its status to "system not ready" by stopping application level communication with SS2-SS4. In step 811, SHM1 stops monitoring the external heartbeats, i.e., the heartbeats generated by SS2-SS4. In step 812, SHM1 provides a "shutdown" notification N4 for reception by SHM2-SHM4 (see step 501 in FIG. 5A). In step 813, after receiving N4, each of SHM2-SHM4 updates its status to "system not ready" by stopping application level communication with the other subsystems. In step 814, each of SHM2-SHM4 stops sending the external heartbeats. If the software system implements the above mutual heartbeat monitoring between the critical subsystems, step 814 in SS3 can also cause SHM3 to stop monitoring the external heartbeats generated by SHM1. In step 815, after completing steps 813-814, each of SHM2-SHM4 provides an "acknowledge" notification N5 for receipt by SHM1. N5 informs SHM1 that the respective subsystem SS2-SS4 received N4. In step 816, after receiving N5, SHM1 stops transmitting external heartbeats. If SHM1 does not receive N5 from all SS2-SS4 within a timeout period, SHM1 may report an error within the system.
[0117] The method of Figure 8A serves to mitigate the risk of an operator-initiated shutdown of a medical device while the medical device is performing a medical procedure, as well as the risk of one critical subsystem or software application preparing to terminate while another does not, particularly when interruption of the medical procedure may compromise patient safety. For example, patient safety may be compromised if the above-mentioned protection systems are stopped while a medical procedure is continuing.
[0118] It can be seen that the sequence diagram of Figure 8A illustrates an embodiment in which the method for shutting down a medical device provides a shutdown request R1 for a first critical software application in a chain of critical software applications by the manager of the primary subsystem before providing a "shutdown" notification N4 to the secondary subsystem, thereby causing each of the critical software applications in the chain to validate the shutdown request R1 in light of the operation of the medical device and, if the shutdown is acceptable, provide a shutdown request R1 for subsequent critical software applications in the chain until the shutdown request R1 is received by the final critical software application in the chain, which validates the shutdown request R1 in light of the operation of the medical device and, if the shutdown is acceptable, provides an "application ready to shut down" notification N7 to the manager of the primary subsystem. Such conditional and sequential validation of the shutdown request R1 can serve to improve the robustness of the gatekeeping method.
[0119] It can be seen that the sequence diagram of FIG. 8A also illustrates an embodiment of a method for shutting down a medical device in which an “applications ready to shut down” notification N7 is relayed along the chain of critical software applications to a manager of a primary subsystem.
[0120] It can also be seen that the sequence diagram of FIG. 8A illustrates an embodiment in which, when each of the critical software applications in the chain receives an “application ready to shut down” notification N7, the medical device enters a control state in which it operates according to a predetermined set of parameter values.
[0121] FIG. 8B illustrates a method executed during a subsystem shutdown, corresponding to transition V in FIG. 6. The method of FIG. 8B may be executed by each of SS1-SS4 at any time after receiving the "shutdown" notification N4 (step 812 in FIG. 8A). In step 820, each of SHM1-SHM4 stops monitoring its internal heart rate. In step 821, each of SHM1-SHM4 provides a "subsystem not ready" notification N6 for its software application (see step 505 in FIGS. 5B-5C). In step 822, after receiving N6, the software application prepares to terminate and stops communication within the respective subsystem (see steps 506-507 in FIGS. 5B-5C). In step 824, once each software application SW1x-SW4x is prepared for termination, it provides an "application ready to shut down" notification N7 for its manager SHM1-SHM4 (see step 508 in FIGS. 5B-5C). Alternatively, as shown by step 823 in FIG. 8B, N7 may be sent in response to a confirmation request from managers SHM1-SHM4. In step 825, each of SHM1-SHM4 waits for N7 from all of its software applications. If any one of SHM1-SHM4 does not receive N7 from all of its software applications within a timeout period, it may report an error in the system. In step 826, after completion of step 825, SHM1 and SHM3 in critical subsystems SS1, SS3 set the shutdown reason parameter to "normal" and store it in non-volatile memory, and in step 827, each of SHM2-SHM4 provides "subsystem ready to shut down" N8 to SHM1 (see step 510 in FIG. 5C). The software system is prepared for power loss at both the system level and the subsystem level.
[0122] The method of FIG. 8B serves to mitigate the risk of power being cut off when a software application performs a consequential activity, for example as illustrated above with reference to FIGS. 5B-5C.
[0123] It can be seen that the sequence diagrams of Figures 7A and 8B illustrate an embodiment in which a method of operating a medical device includes setting, by at least one of the managers, a shutdown reason parameter indicating a normal shutdown if there is no error during shutdown, and storing the shutdown reason parameter in a set of memory units. Further, the method can include, during startup, setting, by at least one of the managers, a shutdown reason parameter indicating a shutdown error, and storing the shutdown reason parameter in a set of memory units.
[0124] Figure 8C illustrates a method executed at the end of execution of the software system and corresponds to transition VI of Figure 6. The method of Figure 8C is executed by each of SS1-SS4 after completion of step 827. In step 830, each of SHM1-SHM4 waits for power loss while continuing to kick their respective hardware watchdogs. None of SS1-SS4 can leave this state without a power loss. At this stage, the system can be safely shut down. For example, SHM1 in step 830 can cause the medical device to power down, for example, by generating a "power down" notification for the medical device's power manager.
[0125] While the present invention has been described in connection with what are presently considered to be the most practical and preferred embodiments, it is to be understood that the invention is not to be limited to the disclosed embodiments, but on the contrary, is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.
Claims
1. 1. A method of operating a medical device configured to perform a medical procedure and comprising a set of processors and a set of memory units storing a software system for execution by the set of processors, the software system defining a plurality of subsystems including a primary subsystem and a set of secondary subsystems, each subsystem comprising a software application involved in the operation of the medical device during the medical procedure, the method comprising, during power-up of the medical device: starting each of said software applications; providing, by each of the software applications in each of the secondary subsystems, an application ready notification to each of the secondary subsystems when ready to be launched; providing, by each said secondary subsystem, a subsystem ready notification to said primary subsystem when all of its software applications have provided said application ready notification; and coordinating, by the primary subsystem, the start-up of the set of secondary subsystems based on receiving the subsystem ready notification; the coordinating includes generating, by the primary subsystem, a system readiness notification for receipt by the set of secondary subsystems; The method, wherein the coordinating further includes enabling communication between at least a subset of the software applications of different subsystems among the plurality of subsystems, by each secondary subsystem that has obtained the system ready notification, whereby the medical device is ready to perform at least a portion of the medical procedure.
2. 2. The method of claim 1, further comprising: at each of the secondary subsystems, enabling communication between the software application of each of the secondary subsystems based on obtaining the subsystem ready notification by the software application of each of the secondary subsystems.
3. 3. The method of claim 1, further comprising providing the application ready notification when a software application in the primary subsystem is ready to launch, the adjusting being performed by the primary subsystem upon receiving the subsystem ready notification from each of the secondary subsystems and the application ready notification from the software application in the primary subsystem.
4. 4. The method of claim 3, wherein a manager in the primary subsystem receives the subsystem ready notifications from each of the secondary subsystems and the application ready notifications from the software applications in the primary subsystem and performs the coordinating.
5. 3. The method of claim 1, wherein each of the secondary subsystems further comprises a manager, the manager of each of the secondary subsystems providing the subsystem ready notification upon obtaining the application ready notifications from all of its software applications.
6. 6. The method of claim 5, wherein the coordinating includes providing, by a manager of the primary subsystem, a system ready notification to each of the secondary subsystems based on obtaining the application ready notification from the software application of the primary subsystem and the subsystem ready notification from each of the secondary subsystems.
7. 7. The method of claim 6, further comprising enabling communication between at least a subset of the software applications of different subsystems among the plurality of subsystems, by the manager of each of the secondary subsystems and by the manager of the primary subsystem based on obtaining the system ready notification, where the medical device is ready to perform at least a portion of the medical procedure.
8. 8. The method of claim 7, wherein the software system defines at least two secondary subsystems, and wherein enabling communication between at least a subset of the software applications in different subsystems includes enabling direct communication between at least a subset of the software applications in the at least two secondary subsystems.
9. A method according to any preceding claim, wherein the subsystems run on separate processors within the set of processors.
10. Two or more subsystems are critical to a medical procedure performed by the medical device and include respective managers, and the method further comprises, during the booting: operating each of the managers of the two or more subsystems to transmit an external cardiac signal; The method according to any one of claims 1 to 3, further comprising: initiating mutual monitoring of the external heart rate signal between the managers of the two or more subsystems for detection of malfunctions.
11. During the startup, reporting a first error by the manager of the primary subsystem if the application ready notification is not received from each of the software applications of the primary subsystem within a first predetermined period of time; 5. The method of claim 4, further comprising: reporting a second error by the manager of the primary subsystem if the subsystem ready notification is not received from each of the secondary subsystems within a second predetermined period of time.
12. During a shutdown of the medical device, providing, by a manager of the primary subsystem, a shutdown notification to the set of secondary subsystems; requesting, by the manager of the primary subsystem, a termination of the software application of the primary subsystem; and requesting, by a manager of each of the secondary subsystems after obtaining the shutdown notification, termination of the software application of each of the secondary subsystems.
13. The requesting of the termination of the software application of each of the secondary subsystems includes, for at least one secondary subsystem: providing, by the manager, a subsystem not ready notification to the software application of the secondary subsystem; preparing for termination, by at least a subset of the software applications of the secondary subsystem, based on obtaining the subsystem not ready notification; providing, by at least a subset of the software applications, a notification that an application is ready to shut down when the application is ready to terminate; and providing, by the manager of the secondary subsystem, a notification of readiness for subsystem shutdown to the manager of the primary subsystem based on obtaining, from at least the subset of the software applications, notification of readiness for the application shutdown.
14. Requesting termination of the software application of the primary subsystem includes: providing, by the manager of the primary subsystem, a subsystem not ready notification to the software application of the primary subsystem; preparing to terminate based on obtaining, by at least a subset of the software applications of the primary subsystem, the subsystem not ready notification; and providing an application shutdown preparation notification when the at least one subset of the software applications of the primary subsystem are prepared to terminate.
15. 15. The method of claim 14, further comprising initiating a loss of power to the medical device based on obtaining, by the manager of the primary subsystem, a notification from the at least one secondary subsystem that the subsystem is ready to be shut down and a notification from the at least one subset of the software applications of the primary subsystem that the applications are ready to be shut down.
16. 16. The method of claim 12, further comprising: setting, by at least one of the managers, if there is no error during the shutdown, a shutdown reason parameter indicating a normal shutdown and storing the shutdown reason parameter in the set of memory units; and setting, by the at least one of the managers during the start-up, the shutdown reason parameter indicating a shutdown error and storing the shutdown reason parameter in the set of memory units.
17. The software applications comprise one or more critical software applications that are critical to the medical procedure performed by the medical device, and the method further comprises, during shutdown of the medical device and prior to providing the shutdown notification to the set of secondary subsystems: providing, by the manager of the primary subsystem, a request to shut down the one or more critical software applications; validating, by the one or more critical software applications, the shutdown request in view of the operation of the medical device; by at least one of the one or more critical software applications and if a shutdown is acceptable, providing an application shutdown readiness notification; 17. The method of claim 12, wherein the manager of the primary subsystem provides the shutdown notification to the set of secondary subsystems based on obtaining a notification from the at least one of the one or more critical software applications that the application is ready to be shut down.
18. 18. The method of any one of claims 1 to 17, wherein the plurality of subsystems comprises a first subsystem having a software application for controlling the medical device to perform the medical procedure and a second subsystem having a software application for communicating with actuators and / or sensors of the medical device, and wherein the coordinating enables communication between the software application for controlling and the software application for communicating with the medical device.
19. 20. The method of claim 18, wherein the plurality of subsystems further comprises a third subsystem having a software application for monitoring the medical procedure to detect deviations, and a fourth subsystem having a software application for communicating with an auxiliary sensor of the medical device, and wherein the adjusting further enables communication between the software application for monitoring the medical procedure and the software application for communicating with the auxiliary sensor, and between the software application for controlling the medical device and the software application for monitoring the medical procedure.
20. 1. A medical device for performing a medical procedure, comprising: A set of processors; a set of memory units storing a software system executed by said set of processors; the software system, when executed by the set of processors, operates the medical device to perform the medical procedure; the software system defines a plurality of subsystems including a primary subsystem and a set of secondary subsystems, each subsystem including a software application responsible for the operation of the medical device during the medical procedure; A medical device, wherein the software system, when executed by the set of processors, performs the method of any one of claims 1 to 19.
21. 20. A computer readable storage medium comprising a software system for operating a medical device to perform a medical procedure, the software system defining a plurality of subsystems including a primary subsystem and a set of secondary subsystems, each subsystem including a software application responsible for the operation of the medical device during the medical procedure, the software system, when executed by a set of processors of the medical device, performing a method according to any one of claims 1 to 19.
Citation Information
Patent Citations
Method and apparatus for managing a distributed x-ray system
US20030135389A1
