public PcpResultExportModel SetAwvSpiroData(PcpResultExportModel model, AwvSpiroTestResult testResult, bool useBlankValue = false) { if (testResult.Finding != null) { model.SpirometryResult = testResult.Finding.Label; } model.SpirometryIncidentalFindingRestrictive = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.Restrictive, useBlankValue); model.SpirometryIncidentalFindingObstructive = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.Obstructive, useBlankValue); model.SpirometryPoorEffort = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.PoorEffort, useBlankValue); model.SpirometryTechnicallyLimitedButReadable = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.TechnicallyLimitedbutReadable, useBlankValue); model.SpirometryRepeatStudyUnreadable = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.RepeatStudy, useBlankValue); model.SpirometryUnabletoScreen = 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.SpirometryCritical = PcpResultExportHelper.YesString; } else if (!useBlankValue) { model.SpirometryCritical = PcpResultExportHelper.NoString; } if (testResult.PhysicianInterpretation != null) { model.SpirometryPhysicianNotes = testResult.PhysicianInterpretation.Remarks; } 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 SetUrineMicroalbuminData(PcpResultExportModel model, UrineMicroalbuminTestResult testResult, bool useBlankValue = false) { if (testResult.Finding != null) { model.UrineMicroalbuminResult = testResult.Finding.Label; } model.UrineMicroalbuminSerialKey = GetResultReading(testResult.SerialKey); model.UrineMicroalbuminValue = GetOutputFromNullableStringResultReading(testResult.MicroalbuminValue); model.UrineMicroalbuminTechnicallyLimitedButReadable = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.TechnicallyLimitedbutReadable, useBlankValue); model.UrineMicroalbuminRepeatStudyUnreadable = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.RepeatStudy, useBlankValue); model.UrineMicroalbuminUnabletoScreen = 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.UrineMicroalbuminCritical = PcpResultExportHelper.YesString; } else if (!useBlankValue) { model.UrineMicroalbuminCritical = PcpResultExportHelper.NoString; } if (testResult.PhysicianInterpretation != null) { model.UrineMicroalbuminPhysicianNotes = testResult.PhysicianInterpretation.Remarks; } 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); }
public PcpResultExportModel SetAwvAbiData(PcpResultExportModel model, AwvAbiTestResult testResult, bool useBlankValue = false) { if (testResult.Finding != null) { model.AbiResult = testResult.Finding.Label; } model.AbiSystolicRArm = testResult.RightResultReadings != null ? testResult.RightResultReadings.SystolicArm != null?testResult.RightResultReadings.SystolicArm.Reading.ToString() : "" : ""; model.AbiSystolicRAnkle = testResult.RightResultReadings != null ? testResult.RightResultReadings.SystolicAnkle != null?testResult.RightResultReadings.SystolicAnkle.Reading.ToString() : "" : ""; model.AbiRightAbi = testResult.RightResultReadings != null ? testResult.RightResultReadings.ABI != null?testResult.RightResultReadings.ABI.Reading.ToString() : "" : ""; model.AbiSystolicLArm = testResult.LeftResultReadings != null ? testResult.LeftResultReadings.SystolicArm != null?testResult.LeftResultReadings.SystolicArm.Reading.ToString() : "" : ""; model.AbiSystolicLAnkle = testResult.LeftResultReadings != null ? testResult.LeftResultReadings.SystolicAnkle != null?testResult.LeftResultReadings.SystolicAnkle.Reading.ToString() : "" : ""; model.AbiLeftAbi = testResult.LeftResultReadings != null ? testResult.LeftResultReadings.ABI != null?testResult.LeftResultReadings.ABI.Reading.ToString() : "" : ""; model.AbiRepeatStudyUnreadable = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.RepeatStudy); model.AbiUnabletoScreen = 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.AbiCritical = PcpResultExportHelper.YesString; } else if (!useBlankValue) { model.AbiCritical = PcpResultExportHelper.NoString; } if (testResult.PhysicianInterpretation != null) { model.AbiPhysicianNotes = testResult.PhysicianInterpretation.Remarks; } return(model); }
public PcpResultExportModel SetAwvCarotidData(PcpResultExportModel model, AwvCarotidTestResult testResult, bool useBlankValue = false) { if (testResult.RightResultReadings != null) { if (testResult.RightResultReadings.Finding != null) { model.CarotidRightResult = testResult.RightResultReadings.Finding.Label; } //CCA Proximal if (testResult.RightResultReadings.CCAProximalPSV != null && testResult.RightResultReadings.CCAProximalPSV.Reading != null) { model.CarotidRightCcaProximalPsv = testResult.RightResultReadings.CCAProximalPSV.Reading.Value.ToString("00.00"); } if (testResult.RightResultReadings.CCAProximalEDV != null && testResult.RightResultReadings.CCAProximalEDV.Reading != null) { model.CarotidRightCcaProximalEdv = testResult.RightResultReadings.CCAProximalEDV.Reading.Value.ToString("00.00"); } //CCA Distal if (testResult.RightResultReadings.CCADistalPSV != null && testResult.RightResultReadings.CCADistalPSV.Reading != null) { model.CarotidRightCcaDistalPsv = testResult.RightResultReadings.CCADistalPSV.Reading.Value.ToString("00.00"); } if (testResult.RightResultReadings.CCADistalEDV != null && testResult.RightResultReadings.CCADistalEDV.Reading != null) { model.CarotidRightCcaDistalEdv = testResult.RightResultReadings.CCADistalEDV.Reading.Value.ToString("00.00"); } //Bulb if (testResult.RightResultReadings.BulbPSV != null && testResult.RightResultReadings.BulbPSV.Reading != null) { model.CarotidRightBulbPsv = testResult.RightResultReadings.BulbPSV.Reading.Value.ToString("00.00"); } if (testResult.RightResultReadings.BulbEDV != null && testResult.RightResultReadings.BulbEDV.Reading != null) { model.CarotidRightBulbEdv = testResult.RightResultReadings.BulbEDV.Reading.Value.ToString("00.00"); } //Ext Carotid Art if (testResult.RightResultReadings.ExtCarotidArtPSV != null && testResult.RightResultReadings.ExtCarotidArtPSV.Reading != null) { model.CarotidRightExtCarotidArtPsv = testResult.RightResultReadings.ExtCarotidArtPSV.Reading.Value.ToString("00.00"); } //ICA Proximal if (testResult.RightResultReadings.ICAProximalPSV != null && testResult.RightResultReadings.ICAProximalPSV.Reading != null) { model.CarotidRightIcaProximalPsv = testResult.RightResultReadings.ICAProximalPSV.Reading.Value.ToString("00.00"); } if (testResult.RightResultReadings.ICAProximalEDV != null && testResult.RightResultReadings.ICAProximalEDV.Reading != null) { model.CarotidRightIcaProximalEdv = testResult.RightResultReadings.ICAProximalEDV.Reading.Value.ToString("00.00"); } //ICA Distal if (testResult.RightResultReadings.ICADistalPSV != null && testResult.RightResultReadings.ICADistalPSV.Reading != null) { model.CarotidRightIcaDistalPsv = testResult.RightResultReadings.ICADistalPSV.Reading.Value.ToString("00.00"); } if (testResult.RightResultReadings.ICADistalEDV != null && testResult.RightResultReadings.ICADistalEDV.Reading != null) { model.CarotidRightIcaDistalEdv = testResult.RightResultReadings.ICADistalEDV.Reading.Value.ToString("00.00"); } //Vertebral Art if (testResult.RightResultReadings.VertebralArtPSV != null && testResult.RightResultReadings.VertebralArtPSV.Reading != null) { model.CarotidRightVertebralArtPsv = testResult.RightResultReadings.VertebralArtPSV.Reading.Value.ToString("00.00"); } if (testResult.RightResultReadings.VertebralArtEDV != null && testResult.RightResultReadings.VertebralArtEDV.Reading != null) { model.CarotidRightVertebralArtEdv = testResult.RightResultReadings.VertebralArtEDV.Reading.Value.ToString("00.00"); } } if (testResult.LeftResultReadings != null) { if (testResult.LeftResultReadings.Finding != null) { model.CarotidLeftResult = testResult.LeftResultReadings.Finding.Label; } //CCA Proximal if (testResult.LeftResultReadings.CCAProximalPSV != null && testResult.LeftResultReadings.CCAProximalPSV.Reading != null) { model.CarotidLeftCcaProximalPsv = testResult.LeftResultReadings.CCAProximalPSV.Reading.Value.ToString("00.00"); } if (testResult.LeftResultReadings.CCAProximalEDV != null && testResult.LeftResultReadings.CCAProximalEDV.Reading != null) { model.CarotidLeftCcaProximalEdv = testResult.LeftResultReadings.CCAProximalEDV.Reading.Value.ToString("00.00"); } //CCA Distal if (testResult.LeftResultReadings.CCADistalPSV != null && testResult.LeftResultReadings.CCADistalPSV.Reading != null) { model.CarotidLeftCcaDistalPsv = testResult.LeftResultReadings.CCADistalPSV.Reading.Value.ToString("00.00"); } if (testResult.LeftResultReadings.CCADistalEDV != null && testResult.LeftResultReadings.CCADistalEDV.Reading != null) { model.CarotidLeftCcaDistalEdv = testResult.LeftResultReadings.CCADistalEDV.Reading.Value.ToString("00.00"); } //Bulb if (testResult.LeftResultReadings.BulbPSV != null && testResult.LeftResultReadings.BulbPSV.Reading != null) { model.CarotidLeftBulbPsv = testResult.LeftResultReadings.BulbPSV.Reading.Value.ToString("00.00"); } if (testResult.LeftResultReadings.BulbEDV != null && testResult.LeftResultReadings.BulbEDV.Reading != null) { model.CarotidLeftBulbEdv = testResult.LeftResultReadings.BulbEDV.Reading.Value.ToString("00.00"); } //Ext Carotid Art if (testResult.LeftResultReadings.ExtCarotidArtPSV != null && testResult.LeftResultReadings.ExtCarotidArtPSV.Reading != null) { model.CarotidLeftExtCarotidArtPsv = testResult.LeftResultReadings.ExtCarotidArtPSV.Reading.Value.ToString("00.00"); } //ICA Proximal if (testResult.LeftResultReadings.ICAProximalPSV != null && testResult.LeftResultReadings.ICAProximalPSV.Reading != null) { model.CarotidLeftIcaProximalPsv = testResult.LeftResultReadings.ICAProximalPSV.Reading.Value.ToString("00.00"); } if (testResult.LeftResultReadings.ICAProximalEDV != null && testResult.LeftResultReadings.ICAProximalEDV.Reading != null) { model.CarotidLeftIcaProximalEdv = testResult.LeftResultReadings.ICAProximalEDV.Reading.Value.ToString("00.00"); } //ICA Distal if (testResult.LeftResultReadings.ICADistalPSV != null && testResult.LeftResultReadings.ICADistalPSV.Reading != null) { model.CarotidLeftIcaDistalPsv = testResult.LeftResultReadings.ICADistalPSV.Reading.Value.ToString("00.00"); } if (testResult.LeftResultReadings.ICADistalEDV != null && testResult.LeftResultReadings.ICADistalEDV.Reading != null) { model.CarotidLeftIcaDistalEdv = testResult.LeftResultReadings.ICADistalEDV.Reading.Value.ToString("00.00"); } //Vertebral Art if (testResult.LeftResultReadings.VertebralArtPSV != null && testResult.LeftResultReadings.VertebralArtPSV.Reading != null) { model.CarotidLeftVertebralArtPsv = testResult.LeftResultReadings.VertebralArtPSV.Reading.Value.ToString("00.00"); } if (testResult.LeftResultReadings.VertebralArtEDV != null && testResult.LeftResultReadings.VertebralArtEDV.Reading != null) { model.CarotidLeftVertebralArtEdv = testResult.LeftResultReadings.VertebralArtEDV.Reading.Value.ToString("00.00"); } } model.CarotidLowVelocityRica = testResult.LowVelocityRica != null ? PcpResultExportHelper.YesString : (useBlankValue ? "" : PcpResultExportHelper.NoString); model.CarotidLowVelocityLica = testResult.LowVelocityLica != null ? PcpResultExportHelper.YesString : (useBlankValue ? "" : PcpResultExportHelper.NoString); model.CarotidTechnicallyLimitedButReadable = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.TechnicallyLimitedbutReadable, useBlankValue); model.CarotidRepeatStudyUnreadable = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.RepeatStudy, useBlankValue); model.CarotidUnabletoScreen = 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.CarotidCritical = PcpResultExportHelper.YesString; } else if (!useBlankValue) { model.CarotidCritical = PcpResultExportHelper.NoString; } if (testResult.PhysicianInterpretation != null) { model.CarotidPhysicianNotes = testResult.PhysicianInterpretation.Remarks; } return(model); }
public PcpResultExportModel SetAwvEkgData(PcpResultExportModel model, AwvEkgTestResult testResult, bool useBlankValue = false) { if (testResult.Finding != null) { model.EkgResult = testResult.Finding.Label; } model.EkgRepeatStudy = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.RepeatStudy, useBlankValue); model.EkgReversedLeads = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.ReversedLeads, useBlankValue); model.EkgArtifact = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.Artifact, useBlankValue); model.EkgComparetoPreviousEkg = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.ComparetoEkg, useBlankValue); model.EkgSinusRhythm = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.SinusRythm, useBlankValue); model.EkgSinusArrhythmia = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.SinusArrythmia, useBlankValue); model.EkgSinusBradycardia = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.SinusBradycardia, useBlankValue); model.EkgSinusBradycardiaMarkLessFifty = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.Marked, useBlankValue); model.EkgSinusTachycardia = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.SinusTachycardia, useBlankValue); model.EkgAtrialFibrillation = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.AtrialFibrillation, useBlankValue); model.EkgAtrialFlutter = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.AtrialFlutter, useBlankValue); model.EkgSupraventricularArrhythmia = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.SupraventricularArrythmia, useBlankValue); model.EkgSvt = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.SVT, useBlankValue); model.EkgPac = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.PACs, useBlankValue); model.EkgPvc = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.PVCs, useBlankValue); model.EkgPacerRhythm = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.PacerRythm, useBlankValue); model.EkgBundleBranchBlock = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.BundleBranchBlock, useBlankValue); if (testResult.BundleBranchBlockFinding != null && testResult.BundleBranchBlockFinding.Count > 0) { model.EkgBundleBranchBlockLeft = testResult.BundleBranchBlockFinding.Where(am => am.Id == PcpResultExportHelper.Left).Select(am => am).Any() ? PcpResultExportHelper.YesString : (useBlankValue ? "" : PcpResultExportHelper.NoString); model.EkgBundleBranchBlockRight = testResult.BundleBranchBlockFinding.Where(am => am.Id == PcpResultExportHelper.Right).Select(am => am).Any() ? PcpResultExportHelper.YesString : (useBlankValue ? "" : PcpResultExportHelper.NoString); model.EkgBundleBranchBlockIncomplete = testResult.BundleBranchBlockFinding.Where(am => am.Id == PcpResultExportHelper.Incomplete).Select(am => am).Any() ? PcpResultExportHelper.YesString : (useBlankValue ? "" : PcpResultExportHelper.NoString); model.EkgBundleBranchBlockIvcdns = testResult.BundleBranchBlockFinding.Where(am => am.Id == PcpResultExportHelper.Ivcdns).Select(am => am).Any() ? PcpResultExportHelper.YesString : (useBlankValue ? "" : PcpResultExportHelper.NoString); model.EkgBundleBranchBlockBifasc = testResult.BundleBranchBlockFinding.Where(am => am.Id == PcpResultExportHelper.Bifasc).Select(am => am).Any() ? PcpResultExportHelper.YesString : (useBlankValue ? "" : PcpResultExportHelper.NoString); } else if (!useBlankValue) { model.EkgBundleBranchBlockLeft = PcpResultExportHelper.NoString; model.EkgBundleBranchBlockRight = PcpResultExportHelper.NoString; model.EkgBundleBranchBlockIncomplete = PcpResultExportHelper.NoString; model.EkgBundleBranchBlockIvcdns = PcpResultExportHelper.NoString; model.EkgBundleBranchBlockBifasc = PcpResultExportHelper.NoString; } model.EkgQrsWidening = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.QRSWidening, useBlankValue); model.EkgLeftAxis = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.LeftAxis, useBlankValue); model.EkgRightAxis = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.RightAxis, useBlankValue); model.EkgAbnormalAxis = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.AbnormalAxis, useBlankValue); model.EkgAbnormalAxisLeft = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.Left, useBlankValue); model.EkgAbnormalAxisRight = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.Right, useBlankValue); model.EkgLeftAnteriorFasicularBlock = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.LeftAnteriorFasicularBlock, useBlankValue); model.EkgAvNodalHeartBlock = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.HeartBlock, useBlankValue); model.EkgAvNodalHeartBlockFirstDegree = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.FirstDegreeBlock, useBlankValue); model.EkgAvNodalHeartBlockSecondDegreeMobitzOne = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.SecondDegreeBlock, useBlankValue); model.EkgAvNodalHeartBlockSecondDegreeMobitzTwo = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.TypeII, useBlankValue); model.EkgAvNodalHeartBlockThirdDegree = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.ThirdDegreeCompleteHeartBlock, useBlankValue); model.EkgShortPrIinterval = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.ShortPrInterval, useBlankValue); model.EkgRoVentricularHypertrophy = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.VentricularHypertrophy, useBlankValue); model.EkgRoVentricularHypertrophyLeft = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.LeftVentricularHypertrophy, useBlankValue); model.EkgRoVentricularHypertrophyRight = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.RightVentricularHypertrophy, useBlankValue); model.EkgProlongedQTcInterval = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.ProlongedQTInterval, useBlankValue); model.EkgRoIschemicSttChanges = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.IschemicSTTChanges, useBlankValue); model.EkgNonSpecificSttChanges = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.NonSpecificSTTChanges, useBlankValue); model.EkgPoorRWaveProgression = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.PoorRWaveProgression, useBlankValue); model.EkgRoInfarctionPattern = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.InfarctionPattern, useBlankValue); if (testResult.InfarctionPatternFinding != null && testResult.InfarctionPatternFinding.Count > 0) { model.EkgRoInfarctionPatternSeptal = testResult.InfarctionPatternFinding.Where(am => am.Id == PcpResultExportHelper.Septal).Select(am => am).Any() ? PcpResultExportHelper.YesString : (useBlankValue ? "" : PcpResultExportHelper.NoString); model.EkgRoInfarctionPatternPosterior = testResult.InfarctionPatternFinding.Where(am => am.Id == PcpResultExportHelper.Posterior).Select(am => am).Any() ? PcpResultExportHelper.YesString : (useBlankValue ? "" : PcpResultExportHelper.NoString); model.EkgRoInfarctionPatternAnterior = testResult.InfarctionPatternFinding.Where(am => am.Id == PcpResultExportHelper.Anterior).Select(am => am).Any() ? PcpResultExportHelper.YesString : (useBlankValue ? "" : PcpResultExportHelper.NoString); model.EkgRoInfarctionPatternLateral = testResult.InfarctionPatternFinding.Where(am => am.Id == PcpResultExportHelper.Lateral).Select(am => am).Any() ? PcpResultExportHelper.YesString : (useBlankValue ? "" : PcpResultExportHelper.NoString); model.EkgRoInfarctionPatternInferior = testResult.InfarctionPatternFinding.Where(am => am.Id == PcpResultExportHelper.Inferior).Select(am => am).Any() ? PcpResultExportHelper.YesString : (useBlankValue ? "" : PcpResultExportHelper.NoString); } else if (!useBlankValue) { model.EkgRoInfarctionPatternSeptal = PcpResultExportHelper.NoString; model.EkgRoInfarctionPatternPosterior = PcpResultExportHelper.NoString; model.EkgRoInfarctionPatternAnterior = PcpResultExportHelper.NoString; model.EkgRoInfarctionPatternLateral = PcpResultExportHelper.NoString; model.EkgRoInfarctionPatternInferior = PcpResultExportHelper.NoString; } model.EkgAtypicalQWavelead = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.AtypicalQWaveLead, useBlankValue); model.EkgAtrialEnlargement = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.AtrialEnlargement, useBlankValue); model.EkgAtrialEnlargementLeft = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.LeftAtrialEnlargement, useBlankValue); model.EkgAtrialEnlargementRight = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.RightAtrialEnlargement, useBlankValue); model.EkgRepolarizationVariant = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.RepolarizationVariant, useBlankValue); model.EkgLowVoltage = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.LowVoltage, useBlankValue); model.EkgLowVoltageLimbleads = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.LimbLeads, useBlankValue); model.EkgLowVoltagePrecordialleads = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.PrecordialLeads, useBlankValue); model.EkgUnabletoScreen = 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.EkgCritical = PcpResultExportHelper.YesString; } else if (!useBlankValue) { model.EkgCritical = PcpResultExportHelper.NoString; } if (testResult.PhysicianInterpretation != null) { model.EkgPhysicianNotes = testResult.PhysicianInterpretation.Remarks; } return(model); }
public PcpResultExportModel SetAwvEchoData(PcpResultExportModel model, AwvEchocardiogramTestResult testResult, bool useBlankValue = false) { if (testResult.Finding != null) { model.EchoResult = testResult.Finding.Label; } if (testResult.EstimatedEjactionFraction != null) { model.EchoEstimatedEjectionFraction = testResult.EstimatedEjactionFraction.Label; } //Aortic model.EchoValveAortic = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.Aortic); if (testResult.AorticRegurgitation != null) { model.EchoValveAorticRegurgitation = testResult.AorticRegurgitation.Label; } if (testResult.AorticMorphology != null && testResult.AorticMorphology.Count > 0) { model.EchoValveAorticMorphologySclerosis = testResult.AorticMorphology.Where(am => am.Id == PcpResultExportHelper.Sclerosis).Select(am => am).Any() ? PcpResultExportHelper.YesString : (useBlankValue ? "" : PcpResultExportHelper.NoString); model.EchoValveAorticMorphologyStenosis = testResult.AorticMorphology.Where(am => am.Id == PcpResultExportHelper.Stenosis).Select(am => am).Any() ? PcpResultExportHelper.YesString : (useBlankValue ? "" : PcpResultExportHelper.NoString); } else if (!useBlankValue) { model.EchoValveAorticMorphologySclerosis = PcpResultExportHelper.NoString; model.EchoValveAorticMorphologyStenosis = PcpResultExportHelper.NoString; } if (testResult.AoticVelocity != null) { model.EchoValveAorticMorphologyVelocity = testResult.AoticVelocity.Reading; } if (testResult.PeakGradient != null) { model.EchoValveAorticMorphologyPeakGradient = testResult.PeakGradient.Reading; } if (testResult.AorticEstimatedValveArea != null) { model.EchoValveAorticMorphologyEstVa = testResult.AorticEstimatedValveArea.Reading; } if (testResult.AorticEstimatedRightValve != null) { model.EchoValveAorticMorphologyEstRv = testResult.AorticEstimatedRightValve.Reading; } //Mitral model.EchoValveMitral = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.Mitral); if (testResult.MitralRegurgitation != null) { model.EchoValveMitralRegurgitation = testResult.MitralRegurgitation.Label; } if (testResult.MitralMorphology != null && testResult.MitralMorphology.Count > 0) { model.EchoValveMitralMorphologySclerosis = testResult.MitralMorphology.Where(am => am.Id == PcpResultExportHelper.Sclerosis).Select(am => am).Any() ? PcpResultExportHelper.YesString : (useBlankValue ? "" : PcpResultExportHelper.NoString); model.EchoValveMitralMorphologyStenosis = testResult.MitralMorphology.Where(am => am.Id == PcpResultExportHelper.Stenosis).Select(am => am).Any() ? PcpResultExportHelper.YesString : (useBlankValue ? "" : PcpResultExportHelper.NoString); model.EchoValveMitralMorphologyMitralProlapse = testResult.MitralMorphology.Where(am => am.Id == PcpResultExportHelper.MitralProlapse).Select(am => am).Any() ? PcpResultExportHelper.YesString : (useBlankValue ? "" : PcpResultExportHelper.NoString); } else if (!useBlankValue) { model.EchoValveMitralMorphologySclerosis = PcpResultExportHelper.NoString; model.EchoValveMitralMorphologyStenosis = PcpResultExportHelper.NoString; model.EchoValveMitralMorphologyMitralProlapse = PcpResultExportHelper.NoString; } if (testResult.MitralPT != null) { model.EchoValveMitralMorphologyP12T = testResult.MitralPT.Reading; } if (testResult.MitralEstimatedValveArea != null) { model.EchoValveMitralMorphologyEstVa = testResult.MitralEstimatedValveArea.Reading; } if (testResult.MitralEstimatedRightValve != null) { model.EchoValveAorticMorphologyEstRv = testResult.MitralEstimatedRightValve.Reading; } //Pulmonic model.EchoValvePulmonic = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.Pulmonic, useBlankValue); if (testResult.PulmonicRegurgitation != null) { model.EchoValvePulmonicRegurgitation = testResult.PulmonicRegurgitation.Label; } if (testResult.PulmonicMorphology != null && testResult.PulmonicMorphology.Count > 0) { model.EchoValvePulmonicMorphologySclerosis = testResult.PulmonicMorphology.Where(am => am.Id == PcpResultExportHelper.Sclerosis).Select(am => am).Any() ? PcpResultExportHelper.YesString : (useBlankValue ? "" : PcpResultExportHelper.NoString); model.EchoValvePulmonicMorphologyStenosis = testResult.PulmonicMorphology.Where(am => am.Id == PcpResultExportHelper.Stenosis).Select(am => am).Any() ? PcpResultExportHelper.YesString : (useBlankValue ? "" : PcpResultExportHelper.NoString); } else if (!useBlankValue) { model.EchoValvePulmonicMorphologySclerosis = PcpResultExportHelper.NoString; model.EchoValvePulmonicMorphologyStenosis = PcpResultExportHelper.NoString; } if (testResult.PulmonicVelocity != null) { model.EchoValvePulmonicMorphologyVelocity = testResult.PulmonicVelocity.Reading; } if (testResult.PulmonicEstimatedValveArea != null) { model.EchoValvePulmonicMorphologyEstVa = testResult.PulmonicEstimatedValveArea.Reading; } //Tricuspid model.EchoValveTricuspid = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.Tricuspid, useBlankValue); if (testResult.TricuspidRegurgitation != null) { model.EchoValveTricuspidRegurgitation = testResult.TricuspidRegurgitation.Label; } if (testResult.TricuspidMorphology != null && testResult.TricuspidMorphology.Count > 0) { model.EchoValveTricuspidMorphologySclerosis = testResult.TricuspidMorphology.Where(am => am.Id == PcpResultExportHelper.Sclerosis).Select(am => am).Any() ? PcpResultExportHelper.YesString : (useBlankValue ? "" : PcpResultExportHelper.NoString); model.EchoValveTricuspidMorphologyStenosis = testResult.TricuspidMorphology.Where(am => am.Id == PcpResultExportHelper.Stenosis).Select(am => am).Any() ? PcpResultExportHelper.YesString : (useBlankValue ? "" : PcpResultExportHelper.NoString); } else if (!useBlankValue) { model.EchoValveTricuspidMorphologySclerosis = PcpResultExportHelper.NoString; model.EchoValveTricuspidMorphologyStenosis = PcpResultExportHelper.NoString; } if (testResult.TricuspidPap != null) { model.EchoValveTricuspidMorphologyPap = testResult.TricuspidPap.Reading; } if (testResult.TricuspidVelocity != null) { model.EchoValveTricuspidMorphologyVelocity = testResult.TricuspidVelocity.Reading; } if (testResult.TricuspidEstimatedValveArea != null) { model.EchoValveTricuspidMorphologyEstVa = testResult.TricuspidEstimatedValveArea.Reading; } model.EchoValveTricuspidMorphologyHigh35MmHgGreater = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.MorphologyTricuspidHighOrGreater); model.EchoValveTricuspidMorphologyNormal = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.MorphologyTricuspidNormal); model.EchoDiastolicDysfunction = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.DiastolicDysfunction, useBlankValue); if (testResult.DistolicDysfunctionFinding != null) { model.EchoDiastolicDysfunctionGrade = testResult.DistolicDysfunctionFinding.Label; } if (testResult.DiastolicDysfunctionEeRatio != null) { model.EchoDiastolicEbyERatio = testResult.DiastolicDysfunctionEeRatio.Reading; } model.EchoPericardialEffusion = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.PericardialEffusion, useBlankValue); if (testResult.PericardialEffusionFinding != null && testResult.PericardialEffusionFinding.Count > 0) { model.EchoPericardialEffusionPhysiologic = testResult.PericardialEffusionFinding.Where(am => am.Id == PcpResultExportHelper.Trival).Select(am => am).Any() ? PcpResultExportHelper.YesString : (useBlankValue ? "" : PcpResultExportHelper.NoString); model.EchoPericardialEffusionSmall = testResult.PericardialEffusionFinding.Where(am => am.Id == PcpResultExportHelper.Small).Select(am => am).Any() ? PcpResultExportHelper.YesString : (useBlankValue ? "" : PcpResultExportHelper.NoString); model.EchoPericardialEffusionModerate = testResult.PericardialEffusionFinding.Where(am => am.Id == PcpResultExportHelper.Moderate).Select(am => am).Any() ? PcpResultExportHelper.YesString : (useBlankValue ? "" : PcpResultExportHelper.NoString); model.EchoPericardialEffusionLarge = testResult.PericardialEffusionFinding.Where(am => am.Id == PcpResultExportHelper.Large).Select(am => am).Any() ? PcpResultExportHelper.YesString : (useBlankValue ? "" : PcpResultExportHelper.NoString); } else if (!useBlankValue) { model.EchoPericardialEffusionPhysiologic = PcpResultExportHelper.NoString; model.EchoPericardialEffusionSmall = PcpResultExportHelper.NoString; model.EchoPericardialEffusionModerate = PcpResultExportHelper.NoString; model.EchoPericardialEffusionLarge = PcpResultExportHelper.NoString; } model.EchoAorticRoot = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.AorticRoot, useBlankValue); model.EchoAorticRootSclerotic = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.Sclerotic, useBlankValue); model.EchoAorticRootCalcified = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.Calcified, useBlankValue); model.EchoAorticRootEnlargedMeasurment = testResult.EnlargedValue != null ? testResult.EnlargedValue.Reading : ""; model.EchoAscendingAortaArch = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.AscendingAortaArch, useBlankValue); model.EchoAtherosclerosis = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.Atherosclerosis, useBlankValue); model.EchoVentricularEnlargement = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.VentricularEnlargement, useBlankValue); model.EchoVentricularEnlargementLeft = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.LeftVentricularEnlargment, useBlankValue); model.EchoVentricularEnlargementLeftMeasurement = testResult.LeftAtrialEnlargmentValue != null ? testResult.LeftAtrialEnlargmentValue.Reading : ""; model.EchoVentricularEnlargementRight = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.RightVentricularEnlargment, useBlankValue); model.EchoVentricularEnlargementRightMeasurment = testResult.RightVentricularEnlargmentValue != null ? testResult.RightVentricularEnlargmentValue.Reading : ""; model.EchoVentricularHypertrophy = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.VentricularHypertrophy, useBlankValue); model.EchoVentricularHypertrophyLeft = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.LeftVHypertrophy, useBlankValue); model.EchoVentricularHypertrophyLeftMeasurment = testResult.LeftVHypertrophyValue != null ? testResult.LeftVHypertrophyValue.Reading : ""; model.EchoVentricularHypertorophyRight = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.RightVHypertrophy, useBlankValue); model.EchoVentricularHypertrophyRightMeasurment = testResult.RightVHypertrophyValue != null ? testResult.RightVHypertrophyValue.Reading : ""; model.EchoVentricularHypertrophyIVSH = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.IvshHypertrophy, useBlankValue); model.EchoVentricularHypertrophyIVSHMeasurment = testResult.IvshHypertrophyValue != null ? testResult.IvshHypertrophyValue.Reading : ""; model.EchoAtrialEnlargement = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.AtrialEnlargement, useBlankValue); model.EchoAtrialEnlargementLeft = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.LeftAtrialEnlargment, useBlankValue); model.EchoAtrialEnlargementLeftMeasurement = testResult.LeftAtrialEnlargmentValue != null ? testResult.LeftAtrialEnlargmentValue.Reading : ""; model.EchoAtrialEnlargementRight = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.RightAtrialEnlargment, useBlankValue); model.EchoAtrialEnlargementRightMeasurement = testResult.RightAtrialEnlargmentValue != null ? testResult.RightAtrialEnlargmentValue.Reading : ""; model.EchoArrythmia = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.Arrythmia, useBlankValue); model.EchoArrythmiaAFib = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.AFib, useBlankValue); model.EchoArrythmiaAFlutter = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.AFlutter, useBlankValue); model.EchoArrythmiaPAC = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.PAC, useBlankValue); model.EchoArrythmiaPVC = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.PVC, useBlankValue); model.EchoASD = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.ASD, useBlankValue); model.EchoPFO = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.PFO, useBlankValue); model.EchoAneurysmalAs = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.FlailAS, useBlankValue); model.EchoVsd = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.VSD, useBlankValue); model.EchoMitralAnnularCa = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.MitralAnnularCa, useBlankValue); model.EchoRestrictedLeafletMotion = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.RestrictedLeafletMotion, useBlankValue); model.EchoRestrictedLeafletMotionAortic = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.RestrictedLeafletMotionAortic, useBlankValue); model.EchoRestrictedLeafletMotionMitral = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.RestrictedLeafletMotionMitral, useBlankValue); model.EchoRestrictedLeafletMotionPulmonic = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.RestrictedLeafletMotionPulmonic, useBlankValue); model.EchoRestrictedLeafletMotionTricuspid = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.RestrictedLeafletMotionTricuspid, useBlankValue); model.EchoWallMotionAnormalityHypokinetic = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.Hypokinetic, useBlankValue); model.EchoWallMotionAnormalityAkinetic = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.Akinetic, useBlankValue); model.EchoWallMotionAnormalityDyskinetic = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.Dyskinetic, useBlankValue); model.EchoWallMotionAnormalityAnerior = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.Anterior, useBlankValue); model.EchoWallMotionAnormalityPosterior = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.Posterior, useBlankValue); model.EchoWallMotionAnormalityApical = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.Apical, useBlankValue); model.EchoWallMotionAnormalitySeptal = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.Septal, useBlankValue); model.EchoWallMotionAnormalityLateral = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.Lateral, useBlankValue); model.EchoWallMotionAnormalityInferior = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.Inferior, useBlankValue); model.EchoTechnicallyLimitedButReadable = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.TechnicallyLimitedbutReadable, useBlankValue); model.EchoRepeatStudyUnreadable = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.RepeatStudyUnreadable, useBlankValue); model.EchoUnableToScreen = 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.EchoCritical = PcpResultExportHelper.YesString; } else if (!useBlankValue) { model.EchoCritical = PcpResultExportHelper.NoString; } if (testResult.PhysicianInterpretation != null) { model.EchoPhysicianNotes = testResult.PhysicianInterpretation.Remarks; } return(model); }
public PcpResultExportModel SetAwvAaaData(PcpResultExportModel model, AwvAaaTestResult testResult, bool useBlankValue = false) { if (testResult.Finding != null) { model.AaaResult = testResult.Finding.Label; } model.AaaLargestSagittalMeasurement = testResult.AortaSize != null ? testResult.AortaSize.Reading != null?testResult.AortaSize.Reading.ToString() : "" : ""; model.AaaLargestSagittalLocation = string.Join(",", testResult.AortaRangeSaggitalView != null ? testResult.AortaRangeSaggitalView.Select(s => s.Label).ToArray() : new[] { "" }); model.AaaLargestTransverseMeasurement1 = testResult.TransverseView != null ? testResult.TransverseView.FirstValue != null?testResult.TransverseView.FirstValue.Reading.ToString() : "" : ""; model.AaaLargestTransverseMeasurement2 = testResult.TransverseView != null ? testResult.TransverseView.SecondValue != null?testResult.TransverseView.SecondValue.Reading.ToString() : "" : ""; model.AaaLargestMeasurementTransverseLocation = string.Join(",", testResult.AortaRangeTransverseView != null ? testResult.AortaRangeTransverseView.Select(s => s.Label).ToArray() : new[] { "" }); model.AaaPeakSystolicVelocityMeasurement = testResult.PeakSystolicVelocity != null ? testResult.PeakSystolicVelocity.Reading != null?testResult.PeakSystolicVelocity.Reading.ToString() : "" : ""; model.AaaPeakSystolicVelocityLocation = string.Join(",", testResult.PeakSystolicVelocityStandardFindings != null ? testResult.PeakSystolicVelocityStandardFindings.Select(s => s.Label).ToArray() : new[] { "" }); model.AaaResidualLumenMeasurement1 = testResult.ResidualLumenStandardFindings != null ? testResult.ResidualLumenStandardFindings.FirstValue != null?testResult.ResidualLumenStandardFindings.FirstValue.Reading.ToString() : "" : ""; model.AaaResidualLumenMeasurement2 = testResult.ResidualLumenStandardFindings != null ? testResult.ResidualLumenStandardFindings.SecondValue != null?testResult.ResidualLumenStandardFindings.SecondValue.Reading.ToString() : "" : ""; model.AaaAorticDissection = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.AorticDissection, useBlankValue); model.AaaPlaque = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.Plaque, useBlankValue); model.AaaThrombus = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.Thrombus, useBlankValue); if (testResult.IncidentalFindings != null && testResult.IncidentalFindings.Count > 0) { model.AaaAorticStenosis = PcpResultExportHelper.YesString; } else if (!useBlankValue) { model.AaaAorticStenosis = PcpResultExportHelper.NoString; } model.AaaTechnicallyLimitedButReadable = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.TechnicallyLimitedbutReadable, useBlankValue); model.AaaRepeatStudyUnreadable = PcpResultExportHelper.GetOutputFromBoolTypeResultReading(testResult.RepeatStudy, useBlankValue); model.AaaUnabletoScreen = 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.AaaCritical = PcpResultExportHelper.YesString; } else if (!useBlankValue) { model.AaaCritical = PcpResultExportHelper.NoString; } if (testResult.PhysicianInterpretation != null) { model.AaaPhysicianNotes = testResult.PhysicianInterpretation.Remarks; } return(model); }