Merged PatientModule

This commit is contained in:
Sk Shaifat Murshed 2025-02-06 16:09:20 +05:30
parent b5ef24a736
commit 91bfc622d1
3 changed files with 35 additions and 36 deletions

View File

@ -3,7 +3,6 @@ import { Injectable } from '@angular/core';
import type { PagedResultDto } from '../abp/application/services/dto/models';
import type { AppointmentDto, CreateOrUpdateAppointmentDto } from '../appoinments/dto/models';
import type { PagingSortResultDto } from '../dto/models';
import type { PatientRecordDto } from '../patients/dto/models';
@Injectable({
providedIn: 'root',
@ -56,7 +55,7 @@ export class AppointmentService {
updateAppointment = (input: CreateOrUpdateAppointmentDto, config?: Partial<Rest.Config>) =>
this.restService.request<any, PatientRecordDto>({
this.restService.request<any, AppointmentDto>({
method: 'PUT',
url: '/api/app/appointment/appointment',
body: input,

View File

@ -1090,8 +1090,8 @@
}
],
"returnValue": {
"type": "HospitalManagementSystem.Patients.Dto.PatientRecordDto",
"typeSimple": "HospitalManagementSystem.Patients.Dto.PatientRecordDto"
"type": "HospitalManagementSystem.Appoinments.Dto.AppointmentDto",
"typeSimple": "HospitalManagementSystem.Appoinments.Dto.AppointmentDto"
},
"allowAnonymous": null,
"implementFrom": "HospitalManagementSystem.Appointments.AppointmentAppService"

View File

@ -1,6 +1,38 @@
import type { Gender } from '../../global-enum/gender.enum';
import type { Status } from '../../global-enum/status.enum';
export interface CreateUpdatePatientDto {
id?: string;
name?: string;
gender: Gender;
mobile?: string;
email?: string;
age: number;
treatment?: string;
doctorAssigned?: string;
address?: string;
bloodGroup?: string;
admissionDate?: string;
dischargeDate?: string;
status: Status;
imageID?: string;
}
export interface CreateUpdatePatientRecordDto {
id?: string;
patientId?: string;
dateOfAdmission?: string;
labReportUrlID?: string;
medicationUrlID?: string;
medicationHistoryUrlID?: string;
nextFollowUp?: string;
diagnosis?: string;
treatmentPlan?: string;
doctorNotes?: string;
insuranceProvider?: string;
status: Status;
}
export interface PatientDto {
id?: string;
name?: string;
@ -33,35 +65,3 @@ export interface PatientRecordDto {
insuranceProvider?: string;
status: Status;
}
export interface CreateUpdatePatientDto {
id?: string;
name?: string;
gender: Gender;
mobile?: string;
email?: string;
age: number;
treatment?: string;
doctorAssigned?: string;
address?: string;
bloodGroup?: string;
admissionDate?: string;
dischargeDate?: string;
status: Status;
imageID?: string;
}
export interface CreateUpdatePatientRecordDto {
id?: string;
patientId?: string;
dateOfAdmission?: string;
labReportUrlID?: string;
medicationUrlID?: string;
medicationHistoryUrlID?: string;
nextFollowUp?: string;
diagnosis?: string;
treatmentPlan?: string;
doctorNotes?: string;
insuranceProvider?: string;
status: Status;
}