Exemplo n.º 1
0
        public InsuredDeceaseClaimModel()
        {
            InsurancePolicies = Enumerable.Repeat <Func <InsurancePolicyModel> >(() => new InsurancePolicyModel(), 4)
                                .Select(x => x())
                                .ToList();

            AdresseAssure = new AddressModel();
            AdresseAssure.PhoneNumberShownAndRequired = false;

            DateNaissanceAssure  = DateModel.CreateBirthDateModel();
            DateDecesAssure      = DateModel.CreatePastDateModel();
            DateUnionFait        = DateModel.CreatePastDateModel();
            DateJugementDivorce  = DateModel.CreatePastDateModel();
            DateSeparationFait   = DateModel.CreatePastDateModel();
            DateSeparationLegale = DateModel.CreatePastDateModel();

            AnneePremiersSymptomes    = new YearModel();
            AnneePremiereConsultation = new YearModel();
            MedicalConsultations1     = new List <MedicalConsultationModel> {
                new MedicalConsultationModel(true)
            };
            MedicalConsultations2 = new List <MedicalConsultationModel> {
                new MedicalConsultationModel(true)
            };
        }
Exemplo n.º 2
0
        public AboutIllnessModel()
        {
            FirstOnsetDate = DateModel.CreatePastDateModel();
            LastMedicalConsultationDate = DateModel.CreatePastDateModel();

            PhysicianInfos = new List <PhysicianModel>();

            PhysicianInfos.Add(new PhysicianModel());

            FamilyMembers = new FamilyMembersModel();
        }
Exemplo n.º 3
0
        public InsuredDisease()
        {
            MaladieSimilaire_Annee = new YearModel();

            ListeMedecin = new List <PhysicianModel> {
                new PhysicianModel {
                    DisplayFirstConsultationDate = true, IsListItem = true
                }
            };

            PeriodeHospitalise = new PeriodModel(DateModel.CreateLastFiveYearsDateModel(), DateModel.CreateLastFiveYearsDateModel());
            PeriodeHospitalise.DeleteRequired = false;

            DatePremierSymptomes = DateModel.CreatePastDateModel();

            List <SliderBracket> brackets = new List <SliderBracket>()
            {
                new SliderBracket()
                {
                    BracketResourceManager = UIAccident.ResourceManager, BracketNameResource = nameof(UIAccident.IU39_3_1), MinValue = 0, MaxValue = 4
                },
                new SliderBracket()
                {
                    BracketResourceManager = UIAccident.ResourceManager, BracketNameResource = nameof(UIAccident.IU39_3_2), MinValue = 5, MaxValue = 7
                },
                new SliderBracket()
                {
                    BracketResourceManager = UIAccident.ResourceManager, BracketNameResource = nameof(UIAccident.IU39_3_3), MinValue = 8, MaxValue = 10
                }
            };

            IntensiteSymptomes = new SliderModel()
            {
                Name      = nameof(IntensiteSymptomes),
                MaxValue  = 10,
                MinValue  = 0,
                StepValue = 1,
                Value     = "0",
                BracketResourceManager = UIAccident.ResourceManager,
                BracketTitleResource   = nameof(UIAccident.IU39_3),
                Brackets = brackets
            };

            InfosMedecinSpecialiste      = new SpecialistPhysicianModel(true);
            InfosMedecinMaladieSimilaire = new PhysicianModel();

            MedicalConsultations = new List <MedicalConsultationModel> {
                new MedicalConsultationModel(true)
            };
        }