Apnea Board Forum - CPAP | Sleep Apnea
[Feature Request] EPR mode in overview pressure graph - Printable Version

+- Apnea Board Forum - CPAP | Sleep Apnea (https://www.apneaboard.com/forums)
+-- Forum: Public Area (https://www.apneaboard.com/forums/Forum-Public-Area)
+--- Forum: Software Support Forum (https://www.apneaboard.com/forums/Forum-Software-Support-Forum)
+--- Thread: [Feature Request] EPR mode in overview pressure graph (/Thread-Feature-Request-EPR-mode-in-overview-pressure-graph)



[Feature Request] EPR mode in overview pressure graph - tossinandturnin - 07-22-2023

Great software, thanks for all the work and making it available.

Would you consider some kind of indication on the pressure graph for the 'overview' on whether 'EPR' (or equivalent) mode is on or not? It does alter the actual pressure range, so I feel it makes sense to indicate it on the graph that shows your configured and actual pressure range. Perhaps simply a different colour like is used for when there is oximeter data?

I'm trying to assess differences between EPR settings and it would be very helpful to see this on the overview page.

Thoughts?


RE: [Feature Request] EPR mode in overview pressure graph - Crimson Nape - 07-22-2023

Hi tossinandturnin! - Welcome
There are indicators for EPR now. On the Daily screen, on the left under Statistics, you will see two different pressures listed. Below that, under Device Settings, EPR will be listed. Finally, the pressure graph. It will have a red line for IPAP pressure and a green line for EPAP pressure. If you see only one line, then your EPR is off.

-- Red


RE: [Feature Request] EPR mode in overview pressure graph - tossinandturnin - 07-22-2023

Hey, thanks for the reply. Yep I can see the EPR settings on the daily view, but I am hoping to see them on the 'overview' page (F6).
I'd like to see how my AHI/total time in apnea changes based on EPR setting from a monthly/weekly overview perspective.
As a workaround I can inspect each day and make a mental note of which day/week had what setting before looking at the overview, but it's easy to forget.

It'd be nice to be able to do better data correlation between pressure settings, EPR settings and AHI etc on a trial week by trial week basis. I suppose a different colour may not be adequate, it might need to be a number between 0-3. Although this would be more cluttered from a presentation perspective.

Even if it was only detailed on the tooltip when hovering the bar on the chart this would be still be useful. Or perhaps an entire new overview chart that just indicated EPR level, could always have it hidden by default.


RE: [Feature Request] EPR mode in overview pressure graph - tossinandturnin - 07-22-2023

I suppose I am referring to a new graph or markup here: OSCAR-code/-/blob/master/oscar/overview.cpp#L359

Although I didn't realise 'weight' showed up on this overview page. I could potentially abuse this value to flag when my EPR settings change, at least as a workaround.


RE: [Feature Request] EPR mode in overview pressure graph - Crimson Nape - 07-22-2023

The Pressure graph on the Overview screen will be gold if EPR is on. The black line in the bar graph is the EPAP pressure. Resmed writes its settings at the beginning of a day's sleep session. If you change any setting after your first session for the day, it will not be recorded until the next day. Also, please see the links in my signature to help with posting images here.

-- Red


RE: [Feature Request] EPR mode in overview pressure graph - tossinandturnin - 07-22-2023

I'll see if I can take a look through the code at some point, but it doesn't appear to be gold when the resmed is in 'CPAP' mode.
It also appears to be gold when EPR is set to 'ramp only', which is effectively off, but I can see how that is subjective.

In the attached image;

21st June - CPAP mode, with EPR on full time (RED - wrong)
23rd June - APAP mode, with EPR on full time (GOLD - correct)
05th July - APAP mode, with EPR ramp only (GOLD - arguably correct, but red would be more useful)
17th July - CPAP mode, with EPR ramp only (RED - ? could be considered incorrect based on above, but red is the preferred colour)

I haven't got any data with EPR off completely, as setting it to 'ramp only' for 10 mins is just as good as off.

Perhaps it is actually gold for APAP mode vs RED for CPAP mode?


RE: [Feature Request] EPR mode in overview pressure graph - tossinandturnin - 07-23-2023

I suppose the graph might have been gold had I set the CPAP sessions using an APAP mode with min=max, instead of the actual CPAP mode.

And I suppose they wouldn't be gold if I turned EPR off completely, as opposed to using 'ramp only'.

Unfortunately my way of operating it has led to a misleading representation, despite the effects being pretty equivalent.


RE: [Feature Request] EPR mode in overview pressure graph - tossinandturnin - 07-23-2023

I had a look through the code and best I can tell that "gold" indication on the bar graph is actually orange, and is indicating the min pressure setting for APAP mode.


Code:
   if (mode == MODE_CPAP) {
       addSlice(CPAP_Pressure);

   } else if (mode == MODE_APAP) {
       addSlice(CPAP_PressureMin, ST_SETMIN);
...


Code:
   schema::channel.add(GRP_CPAP, new Channel(CPAP_PressureMin   = 0x1020, SETTING,     MT_CPAP, SESSION, "PressureMin",    QObject::tr("Min Pressure"),    QObject::tr("Minimum Therapy Pressure"),       QObject::tr("Pressure Min"), STR_UNIT_CMH2O,        DEFAULT,    QColor("orange")));


I didn't come across any conditional on the EPR setting.


RE: [Feature Request] EPR mode in overview pressure graph - tossinandturnin - 07-24-2023

This is a quick hack I put in to show the EPR setting as a tooltip in the pressure settings;

Code:
diff --git a/oscar/Graphs/gPressureChart.h b/oscar/Graphs/gPressureChart.h
index c784f81f..9a27e892 100644
--- a/oscar/Graphs/gPressureChart.h
+++ b/oscar/Graphs/gPressureChart.h
@@ -40,7 +40,7 @@ public:
    virtual void populate(Day * day, int idx);

    virtual QString tooltipData(Day * day, int idx) {
-        return day->getCPAPModeStr() + "\n" + day->getPressureSettings() + gSummaryChart::tooltipData(day, idx);
+        return day->getCPAPModeStr() + "\n" + day->getPressureSettings() + "\n" + day->getPressureRelief() + gSummaryChart::tooltipData(day, idx);
    }

It might be better on the EPAP graph, or have the pressure relief be its own graph, but this is ok for me for now.