Beispiel #1
0
        public IActionResult Index(long diagnoseId, string patientId, string patientName)
        {
            DiagnoseModel diagnoseModel;

            if (diagnoseId != -1)
            {
                Diagnose diagnose = _diagnoseService.GetByIdAsync(diagnoseId).Result;

                diagnoseModel = new DiagnoseModel
                {
                    Id                 = diagnose.Id,
                    DiagnoseExists     = true,
                    Stage              = diagnose.Stage,
                    DistantMetastasis  = diagnose.DistantMetastasis,
                    PrimaryTumor       = diagnose.PrimaryTumor,
                    RegionalLymphNodes = diagnose.RegionalLymphNodes,
                    PatientId          = patientId,
                    PatientName        = patientName
                };
            }
            else
            {
                diagnoseModel = new DiagnoseModel
                {
                    DiagnoseExists = false,
                    PatientId      = patientId,
                    PatientName    = patientName
                };
            }

            return(View("/Views/Diagnose/DoctorExistingDiagnoseView.cshtml", diagnoseModel));
        }
Beispiel #2
0
        public async Task <IActionResult> AddDiagnose(string patientId)
        {
            var patient = await _userManager.FindByIdAsync(patientId);

            var model = new DiagnoseModel()
            {
                PatientName = patient.FirstName + " " + patient.LastName,
                PatientId   = patientId,
            };

            return(View("/Views/Diagnose/AddDiagnose.cshtml", model));
        }
Beispiel #3
0
 public DiagnoseViewModel(SlaveViewModel svm, int bmuindex, DiagnoseForm df)
 {
     diagnose      = new DiagnoseModel();
     parent        = svm;
     this.bmuindex = bmuindex;
     if (bmuindex != 0)
     {
         TitleText = "BUM" + bmuindex;
     }
     parent.DiagnoseEvent += parent_DiagnoseEvent;
     DiagnoseClosedCommand = new DelegateCommand(runDiagnoseClosedCommand);
     dfGlobal = df;
     //parent.ReadCfgEvent += parent_ReadCfgEvent;
     //ReadCfgClosedCommand = new DelegateCommand(runReadCfgClosedCommand);
 }
Beispiel #4
0
        void AddDiagnose(string methodName, StackTrace stackTrace, IReadOnlyDictionary <string, object> parameters = null)
        {
            var diagnoseModel = new DiagnoseModel()
            {
                MethodName = methodName,
                StackTrace = stackTrace.ToString(),
                Parameters = parameters
            };

            performanceInfos.TryGetValue(methodName, out var diagnoseInfos);
            if (diagnoseInfos == null)
            {
                diagnoseInfos = new List <DiagnoseModel>();
                performanceInfos.Add(methodName, diagnoseInfos);
            }
            diagnoseInfos.Add(diagnoseModel);
        }