示例#1
0
文件: Program.cs 项目: mahitosh/HRA4
        private static void SaveCancerRiskFactors()
        {
            Breast bcancer = new Breast();

            CancerRiskFactors breast = new Breast()
            {
                MensturationHistory = new MensturationHistory()
                {
                    AgeOfFirstPeriod = "",
                    AgePeriodStopped = "",
                    Confident        = "",
                    LMP = "",
                    StillHavingPeriods = ""
                },
                PhysicalData = new PhysicalData()
                {
                    Weight = "",
                    Feet   = "",
                    Inches = ""
                },
            };


            CancerRiskFactors colorectal = new Colorectal()
            {
                MensturationHistory = new MensturationFactors()
                {
                    AgePeriodStopped   = "",
                    StillHavingPeriods = ""
                },
                PhysicalData = new PhysicalData()
                {
                    Weight = "",
                    Feet   = "",
                    Inches = ""
                },
            };

            SessionManager.Instance.SetActivePatient("99911041507", 7);
            PhysicalExamination physical = new PhysicalExamination(SessionManager.Instance.GetActivePatient());

            // physical.weightPounds = "75";
            //HraModelChangedEventArgs args = new HraModelChangedEventArgs(null);
            //args.updatedMembers.Add(physical.GetMemberByName("weightPounds")); // Edit And save

            //physical.BackgroundPersistWork(args);


            physical.weightPounds = "80";
            physical.BackgroundPersistWork(new HraModelChangedEventArgs(null));
        }