public ProfileDisplayViewModel(Report report) : base(report) { AttributeType = AttributeType.Display; Header = "Display"; SubTitle = "Display:"; Description = "Select the hospital profile attributes to display for this report."; AttributeSet = new ReportProfileSetCollection(report.ReportProfile); IsPresent = true; }
/// <summary> /// Initializes a new instance of the <see cref="ProfileDisplayViewModel"/> class, it also initializes the defaults /// </summary> /// <param name="report">The report.</param> public ProfileDisplayViewModel(Report report) : base(report) { AttributeType = AttributeType.Display; Header = "Display"; SubTitle = "Display:"; Description = "Select the hospital profile attributes to display for this report."; if (report.IsDefaultReport) { AttributeSet = new ReportProfileSetCollection( ReportProfileDisplayItem.Basic | ReportProfileDisplayItem.CostToChargeMedicare | ReportProfileDisplayItem.Map | ReportProfileDisplayItem.PatientExperience | ReportProfileDisplayItem.PayerCost ); } else { AttributeSet = new ReportProfileSetCollection(report.ReportProfile); } IsPresent = true; }