예제 #1
0
        public static List <Physician> GetRandomPhysicians(int count)
        {
            List <Physician> physicians = new List <Physician>();

            foreach (var result in RandomPersonGenerator.GetRandomResult(count).Results)
            {
                Physician patient = new Physician(result);
                physicians.Add(patient);
            }

            return(physicians);
        }
예제 #2
0
파일: Exam.cs 프로젝트: Jt8786/HL7Populator
        public static List <Exam> GetRandomExamsWithPhysicians(int count)
        {
            var exams      = new List <Exam>();
            var physicians = Physician.GetRandomPhysicians(count);
            int i          = 0;

            foreach (var patient in Patient.GetRandomPatients(count))
            {
                Exam exam = new Exam(patient);
                exam.Attending = physicians[i];
                exams.Add(exam);
                i++;
            }

            return(exams);
        }