public NumberOfDosesDto(VidalAPI.Domain.NumberOfDoses doses) { this.AbsoluteDurationRange = doses.AbsoluteDurationRange!=null?new DurationRangeDto(doses.AbsoluteDurationRange):null; this.Alerts = SimplePosologyAlertDtoHelper.vidalToRouteDtoList(doses.Alerts); this.MaxAbsoluteNumberOfDose =doses.MaxAbsoluteNumberOfDose!=null?new NumberOfDoseDto(doses.MaxAbsoluteNumberOfDose):null; this.Routes = RouteDtoHelper.vidalToRouteDtoList(doses.Routes); this.UsualDurationRange = doses.UsualDurationRange!=null?new DurationRangeDto(doses.UsualDurationRange):null; this.UsualNumberOfDoseRange = doses.UsualNumberOfDoseRange!=null?new NumberOfDoseRangeDto(doses.UsualNumberOfDoseRange):null; }
public NumberOfDoseRangeDto(VidalAPI.Domain.NumberOfDoseRange range) { this.Max = range.Max!=null?new NumberOfDoseDto(range.Max):null; this.Min = range.Min!=null?new NumberOfDoseDto(range.Min):null; }
public NumberOfDoseRangeDto(ServicePoso.numberOfDoseRange range) { this.Max = range.max!=null?new NumberOfDoseDto(range.max):null; this.Min = range.min!=null?new NumberOfDoseDto(range.min):null; }