Hawthorne wrote:Sorry if this has been dealt with but I am wondering how you got the cpap and oximeter data in the same report?
Each 'day' record in sleepyhead can have multiple machine 'day' records attached to it, (only one of each type.. Eg, one cpap machine, one oximeter, one sleep stage machine (like Zeo), one general "pretend" machine object holding notes, your weight, etc..)
Each machine can have an unlimited number of sessions for each day that has data available. (Eg, you can push on/off all night on your cpap machine if you want to.)
When you click on a day, it looks up what machine records are available, and renders content based on what sessions each "machine" has available. No Oximeter data that day? Doesn't bother presenting it.
Sleepyhead models machines as a very generic object, using several subtypes (CPAP,OXIMETER,SLEEPSTAGE,GENERAL at the moment). Each machine subtype can be specialized with their own custom "channels".. (Eg, PRS1 has some fields ResMed S9 doesn't and vice versa, but both are of type CPAP.. they share what's common where possible)
In the source code version, you can now import CMS50 data the same way as importing PRS1 data.. just point the Import Dialog at the SPO2 directory. Anything new gets loaded.
(I'm not entirely sure how many different data formats exist for the CMS50 models. I'm hoping not too many. It specifically supports the version of CMS50 software with .spoR files)
The data CMS50's record doesn't store a start time of a recording.. Meaning it can't (reliably) be linked to the CPAP graphs, which do have a start time. So right now, they just display and work in their own little world.