From b2ede1c9c720330f2d68d278035d3332f1284c18 Mon Sep 17 00:00:00 2001 From: Sandipan Mitra Date: Fri, 7 Feb 2025 17:05:15 +0530 Subject: [PATCH] patient and patient record changes --- .../all-patients/all-patients.component.html | 124 ++-- .../all-patients/all-patients.component.ts | 38 +- .../patient-record.component.html | 145 ++--- .../patient-record.component.ts | 136 ++--- .../Patients/Dto/CreateUpdatePatientDto.cs | 11 +- .../Dto/CreateUpdatePatientRecordDto.cs | 31 +- .../Patients/Dto/PatientDto.cs | 8 +- .../Patients/Dto/PatientRecordDto.cs | 37 +- .../Doctors/DoctorAppService.cs | 1 + .../Doctors/IDoctorAppService.cs | 3 +- .../Dtos/DoctorDto.cs | 24 - ...ementSystemApplicationAutoMapperProfile.cs | 5 - .../MainAppAutoMapperProfile.cs | 13 + .../Patients/PatientAppService.cs | 560 ++++++++++-------- .../Patients/Patient.cs | 9 +- .../Patients/PatientRecord.cs | 34 +- ...lManagementSystemDbContextModelSnapshot.cs | 40 +- .../wwwroot/images}/default-profile.png | Bin 18 files changed, 616 insertions(+), 603 deletions(-) delete mode 100644 aspnet-core/src/HospitalManagementSystem.Application/Dtos/DoctorDto.cs rename {angular/src/assets => aspnet-core/src/HospitalManagementSystem.HttpApi.Host/wwwroot/images}/default-profile.png (100%) diff --git a/angular/src/app/patients/all-patients/all-patients.component.html b/angular/src/app/patients/all-patients/all-patients.component.html index 3874c1c..08f7a61 100644 --- a/angular/src/app/patients/all-patients/all-patients.component.html +++ b/angular/src/app/patients/all-patients/all-patients.component.html @@ -104,13 +104,14 @@ Patient ID + Card ID Full Name Gender - Date of Admission Blood Group Mobile + Age Email - Status + Insurance Actions @@ -118,22 +119,18 @@ {{ patient.id }} + {{patient.patientCardId}} {{ patient.name }} {{ gender[patient.gender] }} - {{ patient.admissionDate | date }} {{ patient.bloodGroup }} {{ patient.mobile }} + {{patient.age}} {{ patient.email }} - - - {{ status[patient.status] }} - - + {{patient.insuranceProvider}} - @@ -82,12 +65,15 @@ Patient ID Full Name Gender + Doctor Date of Admission + Discharge Date + Next Follow-Up Diagnosis Lab Reports Medications - Next Follow-Up - Status + + Status Actions @@ -101,15 +87,19 @@ {{ gender[patientrecord.patients.gender] }} + {{'Dr. ' + patientrecord.doctorAssigned?.firstName + ' ' + + + patientrecord.doctorAssigned?.lastName}} {{ patientrecord.dateOfAdmission | date }} + {{ patientrecord.dischargeDate | date }} + {{ patientrecord.nextFollowUp | date }} {{ patientrecord.diagnosis }} - {{ patientrecord.nextFollowUp | date }} - {{ status[patientrecord.patients.status] }} + [ngClass]="patientrecord.status === 1 ? 'bg-success' : (patientrecord.status === 2 ? 'bg-primary':'bg-danger')"> + {{ status[patientrecord.status] }} @@ -136,38 +126,82 @@ [closable]="true" [style]="{width: '70%', height: 'auto'}">
- -
- - + + Admission Date is required.
- -
- - - Next Follow-Up Date is required. - + +
+
+
+
+
+
+ + +
+
+
+
+ + + Status is required +
+
+
+
+
+
+ +
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+

Documents

-

Uploading... {{ uploadProgress1 }}%

@@ -180,7 +214,7 @@
-

Uploading... {{ uploadProgress2 }}%

@@ -192,7 +226,7 @@
-

Uploading... {{ uploadProgress3 }}%

@@ -203,33 +237,6 @@
- - -
-
- - - - Diagnosis is required. - -
-
- - -
-
- - - - Insurance is required. - -
-
-