Stop recalculating Respiratory Rate on ASV machines

This commit is contained in:
Mark Watkins 2011-11-28 02:44:13 +10:00
parent 3109d7e5a9
commit d31e0d9620
2 changed files with 4 additions and 5 deletions

View File

@ -1278,8 +1278,9 @@ bool PRS1Loader::OpenWaveforms(Session *session,QString filename)
}
session->updateLast(start+qint64(wdur[i])*1000L);
}
// if (!session->eventlist.contains(CPAP_RespRate)) // only ASV machines have it..
if (num_signals<2) {
CalcRespiratoryRate(session);
}
return true;
}
// Generate RespiratoryRate graph
@ -1290,9 +1291,7 @@ void PRS1Loader::CalcRespiratoryRate(Session *session)
flow=session->eventlist[CPAP_FlowRate][ws];
if (flow->count() > 5) {
rr=new EventList(EVL_Event);//EVL_Waveform,1,0,0,0,60000);
ChannelID resp="RespRate2";
//if (session->eventlist.contains(resp)) resp+="2";
session->eventlist[resp].push_back(rr);
session->eventlist[CPAP_RespRate].push_back(rr);
filterFlow(flow,rr);
}
}

View File

@ -630,7 +630,7 @@ void Daily::Load(QDate date)
html+=("<tr><td> </td><td><b>Min</b></td><td><b>Avg</b></td><td><b>90%</b></td><td><b>Max</b></td></tr>");
ChannelID chans[]={
CPAP_Pressure,CPAP_EPAP,CPAP_IPAP,CPAP_PS,CPAP_PTB,
CPAP_MinuteVent,CPAP_RespRate,CPAP_RespEvent,CPAP_FLG,
CPAP_MinuteVent,CPAP_RespRate, CPAP_RespEvent,CPAP_FLG,
CPAP_Leak,CPAP_Snore,CPAP_IE,CPAP_Ti,CPAP_Te, CPAP_TgMV,
CPAP_TidalVolume, OXI_Pulse, OXI_SPO2
};