Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 private Patient(string mrnPrefix, RandomPersonGenerator.Result result) : base(result)
 {
     Initialize(mrnPrefix);
 }
Esempio n. 3
0
 private Patient(RandomPersonGenerator.Result result) : base(result)
 {
     Initialize(string.Empty);
 }
Esempio n. 4
0
 protected Person(RandomPersonGenerator.Result result)
 {
     PopulateData(result);
 }
Esempio n. 5
0
 private Physician(string hospitalIDPrefix, RandomPersonGenerator.Result result) : base(result)
 {
     Initialize(hospitalIDPrefix);
 }