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)); }
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)); }
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); }
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); }