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