private void getPosEffect() { if (PositionEffect == Effect.True) { if (Respirations.getSeverity(mLateralRdi) == Severity.Normal) { try { mPath = "position_effect_normal_lateral_comment.xml"; PosEffectComment = getResult(); PosEffectComment = PosEffectComment.Replace("[supine_RDI]", mSupineRdi.ToString("####")); PosEffectComment += " "; } catch { PosEffectComment = "A position effect is noted with " + mSupineRdi.ToString("####") + " events per hour of sleep supine versus " + "normal respirations laterally. "; } } else { try { mPath = "position_effect_abnormal_lateral_comment.xml"; PosEffectComment = getResult(); PosEffectComment = PosEffectComment.Replace("[supine_RDI]", mSupineRdi.ToString("####")); PosEffectComment = PosEffectComment.Replace("[lateral_RDI]", mLateralRdi.ToString("####")); PosEffectComment += " "; } catch { PosEffectComment = "A position effect is noted with " + mSupineRdi.ToString("####") + " events per hour of sleep supine versus " + mLateralRdi.ToString("####") + " events per hour of sleep laterally. "; } } } }
private bool isAbnormalSupineRdi() { return(Respirations.getSeverity(mSupineRdi) != Severity.Normal); }