private void updateCardiacRhythm(object sender, PropertyEnum.PropertyEnumEventArgs e) { if (!chkClampVitals.IsChecked ?? false || selStep == null) { return; } Patient p = ((ItemStep)selStep).Patient; Cardiac_Rhythms.Default_Vitals v = Cardiac_Rhythms.DefaultVitals( (Cardiac_Rhythms.Values)Enum.Parse(typeof(Cardiac_Rhythms.Values), e.Value)); p.HR = (int)II.Math.Clamp((double)p.VS_Settings.HR, v.HRMin, v.HRMax); p.RR = (int)II.Math.Clamp((double)p.VS_Settings.RR, v.RRMin, v.RRMax); p.SPO2 = (int)II.Math.Clamp((double)p.VS_Settings.SPO2, v.SPO2Min, v.SPO2Max); p.ETCO2 = (int)II.Math.Clamp((double)p.VS_Settings.ETCO2, v.ETCO2Min, v.ETCO2Max); p.NSBP = (int)II.Math.Clamp((double)p.VS_Settings.NSBP, v.SBPMin, v.SBPMax); p.NDBP = (int)II.Math.Clamp((double)p.VS_Settings.NDBP, v.DBPMin, v.DBPMax); p.ASBP = (int)II.Math.Clamp((double)p.VS_Settings.ASBP, v.SBPMin, v.SBPMax); p.ADBP = (int)II.Math.Clamp((double)p.VS_Settings.ADBP, v.DBPMin, v.DBPMax); p.PSP = (int)II.Math.Clamp((double)p.VS_Settings.PSP, v.PSPMin, v.PSPMax); p.PDP = (int)II.Math.Clamp((double)p.VS_Settings.PDP, v.PDPMin, v.PDPMax); updatePropertyView(); }
private void updatePACatheterRhythm(object sender, PropertyEnum.PropertyEnumEventArgs e) { if (selStep == null) { return; } Patient p = ((ItemStep)selStep).Patient; PulmonaryArtery_Rhythms.Default_Vitals v = PulmonaryArtery_Rhythms.DefaultVitals( (PulmonaryArtery_Rhythms.Values)Enum.Parse(typeof(PulmonaryArtery_Rhythms.Values), e.Value)); p.PSP = (int)II.Math.Clamp((double)p.PSP, v.PSPMin, v.PSPMax); p.PDP = (int)II.Math.Clamp((double)p.PDP, v.PDPMin, v.PDPMax); updatePropertyView(); }
private void updateRespiratoryRhythm(object sender, PropertyEnum.PropertyEnumEventArgs e) { if (!chkClampVitals.IsChecked ?? false || selStep == null) { return; } Patient p = ((ItemStep)selStep).Patient; Respiratory_Rhythms.Default_Vitals v = Respiratory_Rhythms.DefaultVitals( (Respiratory_Rhythms.Values)Enum.Parse(typeof(Respiratory_Rhythms.Values), e.Value)); p.RR = (int)II.Math.Clamp((double)p.RR, v.RRMin, v.RRMax); p.RR_IE_I = (int)II.Math.Clamp((double)p.RR_IE_I, v.RR_IE_I_Min, v.RR_IE_I_Max); p.RR_IE_E = (int)II.Math.Clamp((double)p.RR_IE_E, v.RR_IE_E_Min, v.RR_IE_E_Max); updatePropertyView(); }
private void updateProperty(object sender, PropertyEnum.PropertyEnumEventArgs e) { switch (e.Key) { default: break; case PropertyEnum.Keys.Cardiac_Axis: selStep.Patient.Cardiac_Axis.Value = (Cardiac_Axes.Values)Enum.Parse(typeof(Cardiac_Axes.Values), e.Value); break; case PropertyEnum.Keys.Cardiac_Rhythms: selStep.Patient.Cardiac_Rhythm.Value = (Cardiac_Rhythms.Values)Enum.Parse(typeof(Cardiac_Rhythms.Values), e.Value); break; case PropertyEnum.Keys.Respiratory_Rhythms: selStep.Patient.Respiratory_Rhythm.Value = (Respiratory_Rhythms.Values)Enum.Parse(typeof(Respiratory_Rhythms.Values), e.Value); break; case PropertyEnum.Keys.PACatheter_Rhythms: selStep.Patient.PulmonaryArtery_Placement.Value = (PulmonaryArtery_Rhythms.Values)Enum.Parse(typeof(PulmonaryArtery_Rhythms.Values), e.Value); break; } }