# Software Requirements Specification — Leahi Cloud System (Real-time CDT) ## Data and Event Log The Leahi software shall support the electronic transmission of the following information directly to the Diality Cloud. Related: LEAHI-PRS-142 Treatment logs Data and Event logs Manufacturing Records Service logs Cybersecurity Logs The Leahi software shall record system data and event entries in the same log. Related: LEAHI-PRS-145 The Leahi software shall store data and event logs as separate files. Related: LEAHI-PRS-211 The Leahi software shall save the system data and event logs with a unique filename that includes the date and serial number of the device. Related: LEAHI-PRS-631 The Leahi software shall delete the oldest entries of the data and event logs to provide space for the new log entries. Related: LEAHI-PRS-630 ## Treatment Log The Leahi software shall include the following treatment parameters in the treatment log. (see tables in LEAHI-PRS-143) Related: LEAHI-PRS-143 The Leahi software shall store treatment logs as separate files per treatment. Related: LEAHI-PRS-144 The Leahi software shall store applicable treatment data for the most recent 6 months of treatments (3 treatments per day * 180 days = 540 treatments). Related: LEAHI-PRS-393 The Leahi software shall save the treatment logs individually with a unique filename that includes the date and time (start) and serial number of the device the treatment was performed on (example: "20190712_0700_SN123456-123.ext"). Related: LEAHI-PRS-394 The Leahi software shall delete the oldest entries of the treatment log to provide space for the new log entries. Related: LEAHI-PRS-395 ## Cybersecurity Log The Leahi software shall have a log for auditing and logging cybersecurity events. ## Disinfection Log The Leahi software shall have a disinfection log that contains the following data: Failed disinfections, alarm, and associated date timestamp Disinfection completed events and associated date timestamp Related: LEAHI-PRS-634 The Leahi software save a disinfection logs individually with a unique filename that includes the serial number of the device. Related: LEAHI-PRS-635 ## Real-time Cloud Transmission The Leahi software shall send system data and events directly to the Diality cloud in real-time. (Define real-time?) The Leahi software shall send the following system data to the Diality cloud. (List of messages) The Leahi software shall send only send the following system data only when the data has changed from the last transmission of the same data. (List of messages) ### Connectivity Agent Transport The Leahi software shall transmit real-time messages to the Connectivity Agent when connected. The Leahi software shall not transmit messages when disconnected from the Connectivity Agent. The Leahi software shall automatically attempt to reconnect to the Connectivity Agent, at a configurable interval, after a disconnect or connection error. ## Message Handling Configuration The Leahi software shall support per-message configuration of whether a message is transmitted to the cloud. The Leahi software shall support transmitting a message every time it is received. The Leahi software shall support transmitting a message only when its content has changed since the last transmission. The Leahi software shall support suppressing transmission of a message entirely. The Leahi software shall support configuration of the destination topic for each transmitted message. ## Connectivity Agent Offline Caching (do we need this or leave it to DHS to define?) The Leahi software shall cache messages when the connection to the cloud is unavailable. The Leahi software shall transmit cached messages to the cloud once the connection is re-established. The Leahi software shall retain cached messages for a minimum of 96 hours. ## Two-Way Communication The Leahi software shall support two-way communication between the device and the Diality cloud.