Hello Guest, Welcome to Apnea Board !
As a guest, you are limited to certain areas of the board and there are some features you can't use.
To post a message, you must create a free account using a valid email address.

or Create an Account


New Posts   Today's Posts

Heart rate in Overview...
#1
Heart rate in Overview...
I'd like to show daily min/median/max heart rate on the Overview screen...I think similar code could show min/median/max SPO2 as well.  I started writing this up, but I don't understand how the Day manages Machine data.  Of the Day::Min(), Day::Max() and Day::avg() (or Day::wavg()) functions, only Min(OXI_Pulse) seems to return the minimum heart rate that matches the daily view.  Max() returns a number of uncertain import, and I'm not sure how avg() and wavg() correspond to the median displayed in the Statistics panel on the Daily page.

Comparing my code to the Daily code, Max() at least should be returning the right thing, but it's not.



Any help or pointers available for this project?

Thanks!
Post Reply Post Reply






Donate to Apnea Board  
#2
RE: Heart rate in Overview...
Ah, got it, it's the 95th percentile, 99th percentile, or 99.5 percentile, depending on preferences and some other stuff.  I'm not sure that exactly makes sense (if a HRM reports 100BPM, then I'd expect max to be 100) but consistency with other parts of the UI is probably more important.
Post Reply Post Reply
#3
RE: Heart rate in Overview...
Just a fast note to say thanks for working on this useful feature. -- steve
"The object in life is not to be on the side of the majority, but to escape finding oneself in the ranks of the insane." -- Marcus Aurelius
Post Reply Post Reply
#4
RE: Heart rate in Overview...
Well, it works, but the code is ugly as hell.  I just copied the routines for other graphs and mangled them into submission.  I'm sure this would be an easy job for somebody who's worked with the graphs more, and maybe it'd be worth rewriting just to make it cleaner.  But I can try to make the changes available via Git.


Attached Files Thumbnail(s)
   
Post Reply Post Reply






Donate to Apnea Board  
#5
RE: Heart rate in Overview...
Good work!  This looks similar to the existing Pulse Rate Overview graph but with the (meaningless?) part of the bar at the bottom omitted. How does it differ otherwise?

I'm happy to look at your code; contributions are always welcome. The graph code is pretty ugly to start with!

    [Image: attachment.php?aid=28384]


Attached Files Thumbnail(s)
   
The current version of OSCAR is 1.2.0.  We recommend upgrading from any earlier version.

Useful links
Download OSCAR
Best way to organize charts
How to attach charts to your post

Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
Post Reply Post Reply
#6
RE: Heart rate in Overview...
Weird, I don't have the option for a Pulse Rate graph in my MacOS version 1.1.1 ... uh oh, I thought I had upgraded this machine to 1.2.0. Maybe that's the problem: I was just using an old version?

Let me see if I can get the new version running without losing all my old data.

[...time passes...]

Well lookit that! You have to turn it on in Preferences, but it works fine.

I'll figure out how the current code draws it; maybe I can remove the bottom bar (which, as you say, is not useful). If I do that on Pulse and SPO2, that will allow the scale to expand so that it's easier to see what's happening.
Post Reply Post Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  PS BIPAP ASV not showing Flow Rate in Oscar 19MaleMabyeUARS? 1 82 01-06-2021, 10:59 PM
Last Post: Sleeprider
  Flow rate graph shirsh98 9 201 12-29-2020, 02:32 PM
Last Post: Sleeprider
  OSCAR1.2.0: pressure is incorrect in overview, but correct in daily view. epc002 2 182 12-05-2020, 03:01 PM
Last Post: epc002
  Pulse Changes missing in Overview OSCAR 1.2.0 SevereApnea 13 368 10-23-2020, 08:01 AM
Last Post: SevereApnea
  OSCAR [av. leak rate vs. 95% leak rate question] Sleepwreck 3 284 09-19-2020, 09:53 AM
Last Post: sleepwreak
Angry CMS50D+ SPO2% & Pluse rate PLOTS DISABLED richard.terry.jr 5 253 08-20-2020, 03:26 PM
Last Post: GuyScharf
  OSCAR Overview Pressure Plot not showing real Max sopherFellow 8 255 08-17-2020, 11:09 AM
Last Post: Gideon


New Posts   Today's Posts






About Apnea Board

Apnea Board is an educational web site designed to empower Sleep Apnea patients.