private static List <IcpcCode> GetIcpcCodes() { var ipCode = new IcpcCode { Name = "Name", Code = "code" }; return(new List <IcpcCode> { ipCode }); }
private static List <Episode> GetEpisodes(Patient p, IcpcCode icpcCode) { var ep = new Episode { Description = "Description", Priority = 10, Patient = p, IcpcCode = icpcCode }; return(new List <Episode> { ep }); }
private void SeedData() { _fakeIdentityUsers = IdentityHelper.GetIdentityUsers(); var userInformation = new UserInformation { Name = "name", City = "hank", Street = "lepelaarstraat20", HouseNumber = "20", PostalCode = "23", Country = "qwe", UserId = Guid.Parse(_fakeIdentityUsers[0].Id) }; _fakeUsersInformation = new List <UserInformation>(); _fakeUsersInformation.AddRange(new List <UserInformation> { userInformation }); var patient = new Patient { Name = "jim", Bsn = "bsn", Email = "*****@*****.**", Dob = DateTime.Now, Gender = Gender.Male, PhoneNumber = "124124", City = "hank", Street = "lepelaarstraat", HouseNumber = "20", HouseNumberAddon = "", PostalCode = "4273cv", Country = "Netherlands" }; var type = new AdditionalExaminationType { Name = "typename", Unit = "GPS" }; var additional = new AdditionalExaminationResult { Value = "value", Date = DateTime.Now, AdditionalExaminationType = type }; var ipCode = new IcpcCode { Name = "Name", Code = "code" }; var episode = new Episode { Description = "Description", Priority = 10, Patient = patient, IcpcCode = ipCode }; var intolerance = new Intolerance { Description = "descrption", EndDate = DateTime.Now, StartDate = DateTime.Now, Patient = patient }; var physical = new PhysicalExamination { Value = "physical", Date = DateTime.Now, Patient = patient }; var consultation = new Consultation { Id = 1, Date = DateTime.Now, Comments = "comments", DoctorId = Guid.Parse(_fakeIdentityUsers[0].Id), Doctor = _fakeIdentityUsers[0], Patient = patient, AdditionalExaminationResults = new List <AdditionalExaminationResult> { additional }, Episodes = new List <Episode> { episode }, Intolerances = new List <Intolerance> { intolerance }, PhysicalExaminations = new List <PhysicalExamination> { physical } }; var activity = new Prescription { Id = 1, Description = "description", StartDate = DateTime.Now, EndDate = DateTime.MaxValue, Patient = patient, Consultation = consultation }; var activity02 = new Prescription { Id = 2, Description = "description", StartDate = DateTime.Now, EndDate = DateTime.MaxValue, Patient = patient, Consultation = consultation }; _fakeEntities = new List <Prescription> { activity, activity02 }; _constulatations = new List <Consultation> { consultation }; _patients = new List <Patient> { patient }; }
private void SeedData() { _fakeUsersPatient = new List <Patient>(); _fakeIdentityUsers = IdentityHelper.GetIdentityUsers(); var patient = new Patient { Name = "Name", Bsn = "Bsn", Email = "test", Dob = DateTime.Now, Gender = Gender.Male, PhoneNumber = "1321", City = "hank", Street = "lepelaarstraat20", HouseNumber = "20", PostalCode = "23", Country = "qwe" }; var patient02 = new Patient { Name = "Name", Bsn = "Bsn", Email = "test", Dob = DateTime.Now, Gender = Gender.Male, PhoneNumber = "1321", City = "hank", Street = "lepelaarstraat20", HouseNumber = "20", PostalCode = "23", Country = "qwe" }; _fakeUsersPatient.AddRange(new List <Patient> { patient, patient02 }); var activity = new AdditionalExaminationResult { Id = 1, Value = "value", Date = DateTime.Now }; var type = new AdditionalExaminationType { Name = "typename", Unit = "GPS" }; var additional = new AdditionalExaminationResult { Value = "value", Date = DateTime.Now, AdditionalExaminationType = type }; var ipCode = new IcpcCode { Name = "Name", Code = "code" }; var episode = new Episode { Description = "Description", Priority = 10, Patient = patient02, IcpcCode = ipCode }; var intolerance = new Intolerance { Description = "descrption", EndDate = DateTime.Now, StartDate = DateTime.Now, Patient = patient02 }; var physical = new PhysicalExamination { Value = "physical", Date = DateTime.Now, Patient = patient02 }; var consultation = new Consultation { Id = 1, Date = DateTime.Now, Comments = "comments", DoctorId = Guid.Parse(_fakeIdentityUsers[0].Id), Doctor = _fakeIdentityUsers[0], Patient = patient02, AdditionalExaminationResults = new List <AdditionalExaminationResult> { additional }, Episodes = new List <Episode> { episode }, Intolerances = new List <Intolerance> { intolerance }, PhysicalExaminations = new List <PhysicalExamination> { physical } }; var activity02 = new AdditionalExaminationResult { Id = 2, Value = "value", Date = DateTime.Now, Patient = patient02, PatientId = patient02.Id, Consultation = consultation, ConsultationId = consultation.Id, AdditionalExaminationType = type, AdditionalExaminationTypeId = type.Id }; _fakeEntities = new List <AdditionalExaminationResult> { activity, activity02 }; _consultations = new List <Consultation> { consultation }; _types = new List <AdditionalExaminationType> { type }; }