public override TestResult CreateActualTestResult(CustomerEventScreeningTestsEntity customerEventScreeningTestEntity) { var customerEventReadingEntities = customerEventScreeningTestEntity.CustomerEventReading.ToList(); var testResult = new AwvFluShotTestResult(customerEventScreeningTestEntity.CustomerEventScreeningTestId) { Manufacturer = CreateResultReadingforInputValues((int)ReadingLabels.AwvFluShotManufacturer, customerEventReadingEntities), LotNumber = CreateResultReadingforInputValues((int)ReadingLabels.AwvFluShotLotNumber, customerEventReadingEntities), TechnicallyLimitedbutReadable = CreateResultReading((int)ReadingLabels.TechnicallyLimitedbutReadable, customerEventReadingEntities), RepeatStudy = CreateResultReading((int)ReadingLabels.RepeatStudy, customerEventReadingEntities) }; return(testResult); }
public PcpResultExportModel SetAwvFluShotData(PcpResultExportModel model, AwvFluShotTestResult testResult, bool useBlankValue = false) { model.FluShotLotNumber = GetResultReading(testResult.LotNumber); model.FluShotManufacturer = GetResultReading(testResult.Manufacturer); model.FluShotUnabletoScreen = 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.FluShotCritical = PcpResultExportHelper.YesString; } else if (!useBlankValue) { model.FluShotCritical = PcpResultExportHelper.NoString; } if (testResult.PhysicianInterpretation != null) { model.FluShotPhysicianNotes = testResult.PhysicianInterpretation.Remarks; } return(model); }