public PcpResultExportModel SetDpnData(PcpResultExportModel model, DpnTestResult testResult, bool useBlankValue = false) { if (testResult.Finding != null) { model.DpnResult = testResult.Finding.Label; } model.DpnAmplitude = testResult.Amplitude != null ? testResult.Amplitude.Reading != null?testResult.Amplitude.Reading.ToString() : "" : ""; model.DpnConductionVelocity = testResult.ConductionVelocity != null ? testResult.ConductionVelocity.Reading != null?testResult.ConductionVelocity.Reading.ToString() : "" : ""; model.DpnRightLeg = PcpResultExportHelper.GetOutputFromNullableBoolTypeResultReading(testResult.RightLeg, useBlankValue); model.DpnLeftLeg = PcpResultExportHelper.GetOutputFromNullableBoolTypeResultReading(testResult.LeftLeg, useBlankValue); model.DpnUnabletoScreen = testResult.UnableScreenReason != null && testResult.UnableScreenReason.Count > 0 ? PcpResultExportHelper.YesString : (useBlankValue ? "" : PcpResultExportHelper.NoString); if ((testResult.ResultStatus != null && testResult.ResultStatus.SelfPresent) || (testResult.PhysicianInterpretation != null && testResult.PhysicianInterpretation.IsCritical)) { model.DpnCritical = PcpResultExportHelper.YesString; } else if (!useBlankValue) { model.DpnCritical = PcpResultExportHelper.NoString; } return(model); }
public PcpResultExportModel SetDiabeticNeuropathyData(PcpResultExportModel model, DiabeticNeuropathyTestResult testResult, bool useBlankValue = false) { if (testResult.Finding != null) { model.DiabeticNeuropathyResult = testResult.Finding.Label; } model.DiabeticNeuropathyAmplitude = testResult.Amplitude != null ? testResult.Amplitude.Reading != null?testResult.Amplitude.Reading.ToString() : "" : ""; model.DiabeticNeuropathyConductionVelocity = testResult.ConductionVelocity != null ? testResult.ConductionVelocity.Reading != null?testResult.ConductionVelocity.Reading.ToString() : "" : ""; model.DiabeticNeuropathyRightLeg = PcpResultExportHelper.GetOutputFromNullableBoolTypeResultReading(testResult.RightLeg, useBlankValue); model.DiabeticNeuropathyLeftLeg = PcpResultExportHelper.GetOutputFromNullableBoolTypeResultReading(testResult.LeftLeg, useBlankValue); model.DiabeticNeuropathyUnabletoScreen = testResult.UnableScreenReason != null && testResult.UnableScreenReason.Count > 0 ? PcpResultExportHelper.YesString : (useBlankValue ? "" : PcpResultExportHelper.NoString); model.DiabeticNeuropathyTechnicallyLimitedButReadable = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.TechnicallyLimitedbutReadable, useBlankValue); model.DiabeticNeuropathyRepeatStudyUnreadable = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.RepeatStudy, useBlankValue); if ((testResult.ResultStatus != null && testResult.ResultStatus.SelfPresent) || (testResult.PhysicianInterpretation != null && testResult.PhysicianInterpretation.IsCritical)) { model.DiabeticNeuropathyCritical = PcpResultExportHelper.YesString; } else if (!useBlankValue) { model.DiabeticNeuropathyCritical = PcpResultExportHelper.NoString; } return(model); }
public PcpResultExportModel SetLeadData(PcpResultExportModel model, LeadTestResult testResult, IEnumerable <ResultReading <int> > readings, bool useBlankValue = false) { if (testResult.RightResultReadings != null) { model.LeadRightCfaPsv = GetOutputFromNullableDecimalResultReading(testResult.RightResultReadings.CFAPSV); model.LeadRightPsfaPsv = GetOutputFromNullableDecimalResultReading(testResult.RightResultReadings.PSFAPSV); model.LeadRightNoVisualPlaque = PcpResultExportHelper.GetOutputFromNullableBoolTypeResultReading(testResult.RightResultReadings.NoVisualPlaque, useBlankValue); model.LeadRightVisuallyDemonstratedPlaque = PcpResultExportHelper.GetOutputFromNullableBoolTypeResultReading(testResult.RightResultReadings.VisuallyDemonstratedPlaque, useBlankValue); model.LeadRightModerateStenosis = PcpResultExportHelper.GetOutputFromNullableBoolTypeResultReading(testResult.RightResultReadings.ModerateStenosis, useBlankValue); model.LeadRightPossibleOcclusion = PcpResultExportHelper.GetOutputFromNullableBoolTypeResultReading(testResult.RightResultReadings.PossibleOcclusion, useBlankValue); } if (testResult.LeftResultReadings != null) { model.LeadLeftCfaPsv = GetOutputFromNullableDecimalResultReading(testResult.LeftResultReadings.CFAPSV); model.LeadLeftPsfaPsv = GetOutputFromNullableDecimalResultReading(testResult.LeftResultReadings.PSFAPSV); model.LeadLeftNoVisualPlaque = PcpResultExportHelper.GetOutputFromNullableBoolTypeResultReading(testResult.LeftResultReadings.NoVisualPlaque, useBlankValue); model.LeadLeftVisuallyDemonstratedPlaque = PcpResultExportHelper.GetOutputFromNullableBoolTypeResultReading(testResult.LeftResultReadings.VisuallyDemonstratedPlaque, useBlankValue); model.LeadLeftModerateStenosis = PcpResultExportHelper.GetOutputFromNullableBoolTypeResultReading(testResult.LeftResultReadings.ModerateStenosis, useBlankValue); model.LeadLeftPossibleOcclusion = PcpResultExportHelper.GetOutputFromNullableBoolTypeResultReading(testResult.LeftResultReadings.PossibleOcclusion, useBlankValue); } model.LeadResult = GetLeadResult(testResult, readings); model.LeadRightLowVelocity = testResult.LowVelocityRight != null ? PcpResultExportHelper.YesString : (useBlankValue ? "" : PcpResultExportHelper.NoString); model.LeadLeftLowVelocity = testResult.LowVelocityLeft != null ? PcpResultExportHelper.YesString : (useBlankValue ? "" : PcpResultExportHelper.NoString); model.LeadUnabletoScreen = testResult.UnableScreenReason != null && testResult.UnableScreenReason.Count > 0 ? PcpResultExportHelper.YesString : (useBlankValue ? "" : PcpResultExportHelper.NoString); if ((testResult.ResultStatus != null && testResult.ResultStatus.SelfPresent) || (testResult.PhysicianInterpretation != null && testResult.PhysicianInterpretation.IsCritical)) { model.LeadCritical = PcpResultExportHelper.YesString; } else if (!useBlankValue) { model.LeadCritical = PcpResultExportHelper.NoString; } model.LeadTechnicallyLimitedButReadable = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.TechnicallyLimitedbutReadable, useBlankValue); model.LeadRepeatStudyUnreadable = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.RepeatStudy, useBlankValue); if (testResult.PhysicianInterpretation != null) { model.LeadPhysicianNotes = testResult.PhysicianInterpretation.Remarks; } return(model); }