Example #1
0
        }                        // Default constructor for serialization

        public RiskProfile(Person owner)
        {
            OwningPerson = owner;
            if (owner is Patient)
            {
                BracproCancerRisk    = new BracproCancerRiskList((Patient)owner);
                MmrproCancerRiskList = new MmrproCancerRiskList((Patient)owner);
                GailModel            = new Gail((Patient)owner);
                ClausModel           = new Claus((Patient)owner);
                TyrerCuzickModel     = new TyrerCuzick((Patient)owner);
                TyrerCuzickModel_v7  = new TyrerCuzick_v7((Patient)owner);
                CCRATModel           = new CCRAT((Patient)owner);
                NCCNGuideline        = new NCCN((Patient)owner);
            }
        }
Example #2
0
        public override void LoadFullObject()
        {
            if (HraState != States.Ready)
            {
                base.LoadFullObject();
            }

            if (OwningPerson is Patient)
            {
                if (BracproCancerRisk == null)
                {
                    BracproCancerRisk = new BracproCancerRiskList((Patient)OwningPerson);
                }
                if (MmrproCancerRiskList == null)
                {
                    MmrproCancerRiskList = new MmrproCancerRiskList((Patient)OwningPerson);
                }
                if (GailModel == null)
                {
                    GailModel = new Gail((Patient)OwningPerson);
                }
                if (ClausModel == null)
                {
                    ClausModel = new Claus((Patient)OwningPerson);
                }
                if (TyrerCuzickModel == null)
                {
                    TyrerCuzickModel = new TyrerCuzick((Patient)OwningPerson);
                }
                if (TyrerCuzickModel_v7 == null)
                {
                    TyrerCuzickModel_v7 = new TyrerCuzick_v7((Patient)OwningPerson);
                }
                if (CCRATModel == null)
                {
                    CCRATModel = new CCRAT((Patient)OwningPerson);
                }
                if (NCCNGuideline == null)
                {
                    NCCNGuideline = new NCCN((Patient)OwningPerson);
                }

                if (!BracproCancerRisk.IsLoaded)
                {
                    BracproCancerRisk.BackgroundListLoad();
                }

                if (!MmrproCancerRiskList.IsLoaded)
                {
                    MmrproCancerRiskList.BackgroundListLoad();
                }

                if (!GailModel.IsLoaded)
                {
                    GailModel.BackgroundListLoad();
                }

                if (!ClausModel.IsLoaded)
                {
                    ClausModel.BackgroundListLoad();
                }

                if (!TyrerCuzickModel.IsLoaded)
                {
                    TyrerCuzickModel.BackgroundListLoad();
                }

                if (!TyrerCuzickModel_v7.IsLoaded)
                {
                    TyrerCuzickModel_v7.BackgroundListLoad();
                }

                if (!CCRATModel.IsLoaded)
                {
                    CCRATModel.BackgroundListLoad();
                }

                if (!NCCNGuideline.IsLoaded)
                {
                    NCCNGuideline.BackgroundListLoad();
                }
            }
        }