Example #1
0
        public override void InitializeEntity()
        {
            Description = SampleDataCache.Procedures[SampleDataCache.RandomContactGenerator.Next(0, SampleDataCache.Procedures.Count - 1)];
            Status      = HealthCDMEnums.RandomEnumInt <HealthCDMEnums.Procedure_Status>();
            SubjectType = (int)HealthCDMEnums.Procedure_Subjecttype.Patient;

            SampleDataCache.RandomDateTime rdt = new SampleDataCache.RandomDateTime(2017, 1, 1, (DateTime.Today.AddDays(90)));

            ProcedureDateTime = rdt.Next();
        }
Example #2
0
        public override void InitializeEntity()
        {
            Description = SampleDataCache.ReferralRequests[SampleDataCache.RandomContactGenerator.Next(0, SampleDataCache.ReferralRequests.Count - 1)];
            Status      = HealthCDMEnums.RandomEnumInt <HealthCDMEnums.ReferralRequest_Status>();
            Intent      = HealthCDMEnums.RandomEnumInt <HealthCDMEnums.ReferralRequest_Intent>();
            Priority    = HealthCDMEnums.RandomEnumInt <HealthCDMEnums.ReferralRequest_Priority>();

            SampleDataCache.RandomDateTime rdt = new SampleDataCache.RandomDateTime(2017, 1, 1, (DateTime.Today.AddDays(90)));
            OccurrendateDate = rdt.Next();
        }
        public override void InitializeEntity()
        {
            SampleDataCache.RandomDateTime rdt = new SampleDataCache.RandomDateTime(2010, 1, 1, DateTime.Today);

            DateTime startDate = rdt.Next();

            subjectType = (int)HealthCDMEnums.Condition_Subjecttype.Patient;
            OnsetDate   = startDate;

            Description = SampleDataCache.Conditions[SampleDataCache.RandomContactGenerator.Next(0, SampleDataCache.Conditions.Count - 1)];
        }
Example #4
0
        public override void InitializeEntity()
        {
            SampleDataCache.RandomDateTime rdt = new SampleDataCache.RandomDateTime(2017, 1, 1, DateTime.Today);

            orderName = SampleDataCache.NutrionOrders[SampleDataCache.RandomContactGenerator.Next(0, SampleDataCache.NutrionOrders.Count - 1)];

            DateTime requestedDateTime = rdt.Next();

            orderDateTime = requestedDateTime;

            OrderStatus = HealthCDMEnums.RandomEnumInt <HealthCDMEnums.NutritionOrder_Status>();
        }
        public override void InitializeEntity()
        {
            Name           = SampleDataCache.Medications[SampleDataCache.RandomContactGenerator.Next(0, SampleDataCache.Medications.Count - 1)];
            Status         = HealthCDMEnums.RandomEnumInt <HealthCDMEnums.MedicationRequest_Status>();
            Priority       = HealthCDMEnums.RandomEnumInt <HealthCDMEnums.MedicationRequest_Priority>();
            MedicationType = (int)HealthCDMEnums.MedicationRequest_Medicationtype.MedicationReference;

            SampleDataCache.RandomDateTime rdt = new SampleDataCache.RandomDateTime(2017, 1, 1, DateTime.Today);
            authoredOn = rdt.Next();

            SubjectType = (int)HealthCDMEnums.MedicationRequest_Subjecttype.Patient;
        }
Example #6
0
        /// <summary>
        /// 23ea4e7f-6781-4666-b5b9-ebb59a9cce61
        /// </summary>
        public override sealed void InitializeEntity()
        {
            Name = SampleDataCache.PractitionerRoles[SampleDataCache.RandomContactGenerator.Next(0, SampleDataCache.PractitionerRoles.Count - 1)];

            SampleDataCache.RandomDateTime rdt = new SampleDataCache.RandomDateTime(2010, 1, 1, DateTime.Today);

            DateTime startDate = rdt.Next();
            DateTime endDate   = rdt.AddYears(startDate, 5, 10);

            PeriodStartDate = startDate;
            PeriodEndDate   = endDate;
        }
        public override void InitializeEntity()
        {
            DeviceNumber = GenerateDeviceNumber();
            Version      = GenerateDeviceVersion();
            Model        = GenerateModelNumber();

            SampleDataCache.RandomDateTime rdt = new SampleDataCache.RandomDateTime(2017, 1, 1, new DateTime(2022, 1, 1));

            ExpirationDate = rdt.Next();

            Name         = SampleDataCache.Devices[SampleDataCache.RandomContactGenerator.Next(0, SampleDataCache.Devices.Count - 1)];
            DeviceStatus = HealthCDMEnums.RandomEnumInt <HealthCDMEnums.Device_Devicestatus>();
        }