private bool ArePatientFieldsValid() { return(IsValid.Valid(FirstName, RegexPatterns.namePattern) && IsValid.Valid(LastName, RegexPatterns.namePattern) && IsValid.Valid(PESEL, RegexPatterns.peselPattern) && IsValid.Valid(Gender, RegexPatterns.genderPattern)); }
private bool AreReservationFieldsValid() { return(IsValid.Valid(FirstName, RegexPatterns.namePattern) && IsValid.Valid(LastName, RegexPatterns.namePattern) && DateTime.Today < StartDate && DateTime.Today < EndDate && IsValid.Valid(AmountOfBeds.ToString(), RegexPatterns.amountOfBedspattern) && IsValid.Valid(Type, RegexPatterns.typePattern)); }
private bool AreOpinionFieldsValid() { return(IsValid.Valid(Rate, RegexPatterns.descriptionPattern) && IsValid.Valid(Description, RegexPatterns.descriptionPattern) && IsValid.Valid(Price.ToString(), RegexPatterns.pricePattern)); }
private bool AreVisitFieldsValid() { return(IsValid.Valid(Diagnose, RegexPatterns.descriptionPattern) && IsValid.Valid(Indications, RegexPatterns.descriptionPattern) && IsValid.Valid(Price.ToString(), RegexPatterns.pricePattern)); }