I would make nodes based on the NRF52832 boards which support BLE. The node would have connectors for inputs from various life-support devices. A robotic arm with 6DOF from a previous project would serve for control of sample collector devices. The central station would be made using the Cypress PSoC 6 Pioneer Development kit and act as a gateway between the nodes and the cloud.
Patient logs are sent directly to the central station which uploads everything to the cloud over the hospital`s WiFi network. Temperature and humidity would also be monitored and windows opened and closed automatically.
The data sent to the central station would be monitored and analysed based on predefined parameters on a per patient basis using the TensorflowLite library. If an anomaly is found, the concerned medical staff is immediately informed and the doctor takes control of life-support equipment. If any instruction is to be given, the doctor speaks to the patient through a speaker on the bed. The doctor can then interact with the patient via voice over the cloud. The many interactions would create some latency but time is not of the essence in this case.
The patient can key in certain instructions to the hospital staff with the help of a panel of buttons with pre-defined functions. An alert button is also present for the patient to call out for help. These functions would be implemented as interrupts in the control station code. If an injection is to be given or a sample is to be collected, hospital staff would fix the device on the robotic arm. It would then be controlled by the doctor remotely by means of the app which connects to cloud.
The webservice is made on NodeRed and acts as a link between the central station, the doctors and Amazon Web services. The doctors are able to interact with the network with the help of an app made on the MIT App Inventor. It provides a panel for monitoring of patients directly using AWS IoT Things Graph and to control the sample collector and other life-support devices via AWS IoT Events. It also has the option to interact with the patient by voice over the cloud. The webservice also sends notifications directly to doctors and other medical staff which can be received on their copy of the application. If the assigned doctor is not available, the web service automatically sends notifications to doctors connected to the network who can then volunteer and take life-saving decisions, everything autonomously. The triggering is done using AWS IoT Events.
AWS IoT Greengrass Core services are hosted on the central stations to communicate amongst each other and for data analysis on the cloud and at the edge. If a station loses connectivity it relays the data to another station which then sends it to the cloud offering end-to-end data security. Using AWS IoT Device Management the central station would be maintained and OTA updates would be pushed when necessary. IoT Analytics over the cloud help manage a large number of patients and decide future treatment plans and can even help with medical resaearch.