public override void InitializeEntity() { DosageDose = int.Parse(GenerateRandomNumber(1)); DosageRateQuantity = 1; DosageRateType = HealthCDMEnums.RandomEnumInt <HealthCDMEnums.Dosage_Dosetype>(); SubjectType = (int)HealthCDMEnums.MedicationAdministration_Subjecttype.Patient; SampleDataCache.GenerateRandomDateTime rdt = new SampleDataCache.GenerateRandomDateTime(2017, 1, 1, DateTime.Today); DateTime startDate = rdt.Next(); DateTime endDate = rdt.AddDays(startDate, 10, 20); StartDate = startDate; EndDate = endDate; }
public override void InitializeEntity() { SampleDataCache.GenerateRandomDateTime rdt = new SampleDataCache.GenerateRandomDateTime(2018, 1, 1, DateTime.Today); DateTime startDate = rdt.Next(); DateTime endDate = rdt.AddDays(startDate, 5, 10); StartDate = startDate; EndDate = endDate; IssuedDate = rdt.Next(); DeviceType = (int)HealthCDMEnums.Observation_Devicetype.Device; ValueTypeQuantityComparator = HealthCDMEnums.RandomEnumInt <HealthCDMEnums.Observation_Valuerationumeratorcomparator>(); ValueTypeQuantityValue = int.Parse(GenerateRandomNumber(2)); EffectiveType = (int)HealthCDMEnums.Observation_Effectivetype.Datetime; EffectiveDateTime = rdt.Next(); ContextType = HealthCDMEnums.RandomEnumInt <HealthCDMEnums.Observation_Contexttype>(); }