private void PopulateData(RandomPersonGenerator.Result result) { CultureInfo cultureInfo = Thread.CurrentThread.CurrentCulture; TextInfo textInfo = cultureInfo.TextInfo; Prefix = textInfo.ToTitleCase(result.Name.Title); LastName = textInfo.ToTitleCase(result.Name.Last); FirstName = textInfo.ToTitleCase(result.Name.First); Address = textInfo.ToTitleCase(result.Location.Street); ZipCode = result.Location.Postcode.ToString(); City = textInfo.ToTitleCase(result.Location.City); State = textInfo.ToTitleCase(result.Location.State); Cell = result.Cell; Phone = result.Phone; DateOfBirth = Convert.ToDateTime(result.Dob); Sex = textInfo.ToTitleCase(result.Gender); }
private Patient(string mrnPrefix, RandomPersonGenerator.Result result) : base(result) { Initialize(mrnPrefix); }
private Patient(RandomPersonGenerator.Result result) : base(result) { Initialize(string.Empty); }
protected Person(RandomPersonGenerator.Result result) { PopulateData(result); }
private Physician(string hospitalIDPrefix, RandomPersonGenerator.Result result) : base(result) { Initialize(hospitalIDPrefix); }