public int ModifyAnthropometrics(Anthropometrics objAnthropometrics)
        {
            AnthropometricsDataManager objAnthropometricsDataManager = new AnthropometricsDataManager();

            try
            {
                return(objAnthropometricsDataManager.ModifyAnthropometrics(objAnthropometrics));
            }
            catch
            {
                throw;
            }
        }
 public int ModifyAnthropometrics(Anthropometrics objAnthropometrics)
 {
     try
     {
         SqlParameter[] parameter = new SqlParameter[]
         {
             new SqlParameter("@Operation", objAnthropometrics.Operation),
             new SqlParameter("@AnthropometricID", objAnthropometrics.AnthropometricID),
             new SqlParameter("@CustomerID", objAnthropometrics.CustomerID),
             new SqlParameter("@MeasuredWeight", objAnthropometrics.MeasuredWeight),
             new SqlParameter("@MeasuredHeight", objAnthropometrics.MeasuredHeight),
             new SqlParameter("@IdealBodyWeight", objAnthropometrics.IdealBodyWeight),
             new SqlParameter("@CalculatedBMI", objAnthropometrics.CalculatedBMI),
             new SqlParameter("@BMICategory", objAnthropometrics.BMICategory),
             new SqlParameter("@BMIPer", objAnthropometrics.BMIPer),
             new SqlParameter("@FatPer", objAnthropometrics.FatPer),
             new SqlParameter("@MeasuredWaist", objAnthropometrics.MeasuredWaist),
             new SqlParameter("@MeasuredWrist", objAnthropometrics.MeasuredWrist),
             new SqlParameter("@WeightGainLossMonth", objAnthropometrics.WeightGainLossMonth),
             new SqlParameter("@WeightGainLossSixMonth", objAnthropometrics.WeightGainLossSixMonth),
             new SqlParameter("@WeightGainLossYear", objAnthropometrics.WeightGainLossYear),
             new SqlParameter("@NeckCircumference", objAnthropometrics.NeckCircumference),
             new SqlParameter("@MUAC", objAnthropometrics.MUAC),
             new SqlParameter("@BloodPressure", objAnthropometrics.BloodPressure),
             new SqlParameter("@BodyFrame", objAnthropometrics.BodyFrame),
             new SqlParameter("@ReasonGainLoss", objAnthropometrics.ReasonGainLoss),
             new SqlParameter("@AnthrpometricsNotes", objAnthropometrics.AnthrpometricsNotes),
             new SqlParameter("@MussleMass", objAnthropometrics.MussleMass),
             new SqlParameter("@BoneMass", objAnthropometrics.BoneMass),
             new SqlParameter("@BodyWater", objAnthropometrics.BodyWater),
             new SqlParameter("@VisceralFat", objAnthropometrics.VisceralFat),
             new SqlParameter("@ReturnVal", SqlDbType.Int)
         };
         return(DBOperate.ExecuteProcedure("usp_ModifyAnthropometrics", parameter));
     }
     catch
     {
         throw;
     }
 }
Esempio n. 3
0
        static void Main(string[] args)
        {
            PatientPod Pod = new PatientPod();

            #region SetupPatient
            Blood bs = new Blood(new BloodType()
            {
                ABO = BloodABO.AB, Rhesus = BloodRhesus.Positive
            });
            BloodSystem     blood   = new BloodSystem(bs);
            Abdomen         abs     = new Abdomen(reproductives: new Reproductive_Male());
            Anthropometrics metrics = new Anthropometrics(21, 181, 120);
            Physical        body    = new Physical(blood: blood, abdomen: abs);
            Patient         pt      = new Patient(body: body);
            #endregion //This sucks
            Pod.TryAddPatient(pt);


            pt.Body.VascularSystem.OxygenatedVessels["LeftCoronary"].Patency = 0.25f;

            Pod.PerformProceedure(new ExamineHeartCoronaryAngiogram(), out bool _);


            //VascularSystem vs = new VascularSystem();

            //vs.OxygenatedVessels["AscendingAorta"].Patency = 0.35f;
            //vs.OxygenatedVessels["LeftCoronary"].Patency = 0.25f;

            //System.Console.WriteLine(vs.GetSupply(new  Heart()));
            //Vessel restrictionPoint = vs.OxygenatedVessels["LeftAnteriorDescending"].GetLowestPatencyVessel();
            //System.Console.WriteLine($"{restrictionPoint.Name}: {restrictionPoint.Patency}");

            //Console.WriteLine(pt.Body.Anthropometrics.BMI);
            //LeftLung left = new LeftLung();
            //RightLung right = new RightLung();

            //RespiratorySystem respiratorySystem = new RespiratorySystem(left, right);

            ////respiratorySystem.RemoveLung(true, out Lung temp);
            ////respiratorySystem.InsertLung(left);

            //PatientExamination exam = new ExamineLungsAuscultateLungs();
            //Pod.PerformProceedure(exam, out bool _);

            //exam = new ExamineLungsPrecussLungs();
            //Pod.PerformProceedure(exam, out bool _);


            //var t = pt.Body.Infections.Chest.GetInfections();

            //System.Console.WriteLine(Pod.PatientResults.RespiratorySystem.LeftLung.BreathSounds[LungLobeLocation.Upper]);
            //System.Console.WriteLine(Pod.TotalWasteProduced);
            //PatientProceedure intervention = new PerformLumbarPuncture();
            //Pod.PerformProceedure(intervention, out bool _);
            //System.Console.WriteLine(Pod.TotalWasteProduced);


            //Lung test = new RightLung();
            //test.Lobes[LungLobeLocation.Upper]._organHealth = 0.045f;
            //test.Lobes[LungLobeLocation.Lower]._organHealth = 0.065f;
            //OrganState t = test.OrganState;

            //System.Console.WriteLine(    test.OxygenRequirement);

            System.Console.WriteLine("FOR DEBUGGING");
        }