Posts

Showing posts from February, 2024

Time

Image
 One characteristic of SimTIVA is that it is meant to run in real time at the bed side. That means, you may run SimTIVA in parallel with what you are infusing in real time when doing an actual clinical case. However, time management in a browser, or specifically when using JavaScript to code, is not so simple. Erratic behavior can occur. For example, the mobile device running SimTIVA can go to "sleep" mode, or the tab running SimTIVA may not be active, and all these myriad of scenarios may cause the clock to stop ticking if programming is done poorly and this needs to be taken into account to match the SimTIVA time with "real time".  SimTIVA manages time like this. When the user "delivers" an infusion scheme, data are generated for every second for CP, CE, and infusion rate, among other things, for the next 7,200 seconds (or 2 hours). There are series of 7,200 data points for each of CP, CE, and infusion rate. When simulation is running, the current time i