@inject IRestWrapper RestWrapper @inject IUserUtility UserUtility افزودن شرح حال جدید شرح حال بیمار را در مراحل مختلف و اطلاعات را با دقت وارد نمایید ، در مرحله اخر میتوانید شرحال کامل را مشاهده کنید منتظر بمانید @e.FullName منتظر بمانید @e.Name منتظر بمانید @e.ChiefComplaint @if (IsEditing) { } @code { [Parameter] public string PatientFirstName { get; set; } = string.Empty; [Parameter] public EventCallback PatientFirstNameChanged { get; set; } [Parameter] public string PatientLastName { get; set; } = string.Empty; [Parameter] public EventCallback PatientLastNameChanged { get; set; } [Parameter] public int PatientAge { get; set; } [Parameter] public EventCallback PatientAgeChanged { get; set; } [Parameter] public string ChiefComplaint { get; set; } = string.Empty; [Parameter] public EventCallback ChiefComplaintChanged { get; set; } [Parameter] public SectionSDto SelectedSection { get; set; } = new(); [Parameter] public EventCallback SelectedSectionChanged { get; set; } [Parameter] public MedicalHistoryTemplateSDto SelectedTemplate { get; set; } = new(); [Parameter] public PatientSDto SelectedPatient { get; set; } = new(); [Parameter] public EventCallback SelectedTemplateChanged { get; set; } [Parameter] public EventCallback DeleteClicked { get; set; } [Parameter] public bool IsEditing { get; set; } private MedicalHistoryTemplateLDto _editingTemplate = new(); public List Sections { get; private set; } = new List(); public List Templates { get; private set; } = new List(); public List Patients { get; private set; } = new List(); public async Task> SearchTemplates(string template) { try { var token = await UserUtility.GetBearerTokenAsync(); var list = await RestWrapper .CrudDtoApiRest(Address.MedicalHistoryTemplateController) .ReadAll(0, token); Templates = list; if (template.IsNullOrEmpty()) return Templates; return Templates.Where(c => c.ChiefComplaint.Contains(template)); } catch (ApiException ex) { var exe = await ex.GetContentAsAsync(); return Templates; } catch (Exception e) { return Templates; } } public async Task> SearchPatients(string name) { try { var token = await UserUtility.GetBearerTokenAsync(); var list = await RestWrapper.PatientRestApi.GetPatientsAsync(token,0,Refers.SizeM,null,name); Patients = list; return Patients; } catch (ApiException ex) { var exe = await ex.GetContentAsAsync(); return Patients; } catch (Exception e) { return Patients; } } public async Task> SearchSection(string section) { try { var token = await UserUtility.GetBearerTokenAsync(); var user = await UserUtility.GetUserAsync(); Sections = await RestWrapper.HospitalRestApi.GetSectionsAsync(user.HospitalId, token); if (section.IsNullOrEmpty()) return Sections; return Sections.Where(c => c.Name.Contains(section)); } catch (ApiException ex) { var exe = await ex.GetContentAsAsync(); return Sections; } catch (Exception e) { return Sections; } } }
افزودن شرح حال جدید
شرح حال بیمار را در مراحل مختلف و اطلاعات را با دقت وارد نمایید ، در مرحله اخر میتوانید شرحال کامل را مشاهده کنید
منتظر بمانید
@e.FullName
@e.Name
@e.ChiefComplaint