diff --git a/ui/src/app/modules/e-claim/pages/e-claim-home/e-claim-home.component.ts b/ui/src/app/modules/e-claim/pages/e-claim-home/e-claim-home.component.ts
index 01973a344..7c78ca000 100644
--- a/ui/src/app/modules/e-claim/pages/e-claim-home/e-claim-home.component.ts
+++ b/ui/src/app/modules/e-claim/pages/e-claim-home/e-claim-home.component.ts
@@ -70,6 +70,7 @@ export class EClaimHomeComponent implements OnInit {
this.loadedData = false;
this.visitService.getAllVisits(null, null, true).subscribe(
(visits) => {
+ console.log('Fetched Active Visits:', visits);
this.dataSource = new MatTableDataSource(visits);
this.dataSource.paginator = this.paginator;
this.dataSource.sort = this.sort;
@@ -77,6 +78,7 @@ export class EClaimHomeComponent implements OnInit {
this.loadedData = true;
},
(error) => {
+ console.error('Error fetching active visits:', error);
this.loadingData = false;
this.loadedData = true;
this.loadingDataError = error;
diff --git a/ui/src/app/shared/components/patient-list/patient-list.component.html b/ui/src/app/shared/components/patient-list/patient-list.component.html
index 69d5aa417..ef9f0bc81 100644
--- a/ui/src/app/shared/components/patient-list/patient-list.component.html
+++ b/ui/src/app/shared/components/patient-list/patient-list.component.html
@@ -123,14 +123,14 @@
0"
+
>
{
this.loadingPatients = false;
+ console.log('Patient Data:', response);
if (response?.error) {
this.errors = [...this.errors, response?.error];
}
@@ -110,6 +113,7 @@ export class PatientListComponent implements OnInit, OnChanges {
private getVisits(visits: Visit[]) {
+ console.log('Response:', Response);
this.loadingPatients = true;
// this.service = "LABS";
@@ -273,9 +277,12 @@ export class PatientListComponent implements OnInit, OnChanges {
const currentUrl = this.router.url.split("?")[0];
const params = this.router.url.split("?")[1];
this.isTabularList = type === "tabular" ? true : false;
+ console.log('Toggling Patient List to:', type);
+ console.log('Updated isTabularList:', this.isTabularList);
this.store.dispatch(
go({ path: [currentUrl], query: { queryParams: { list: type } } })
);
+ console.log('Updated URL after dispatch:', this.router.url);
}
getPaymentTypeSelected(event: any) {
diff --git a/ui/src/app/shared/resources/visits/services/visits.service.ts b/ui/src/app/shared/resources/visits/services/visits.service.ts
index 77b2771d8..bfc25bf6c 100755
--- a/ui/src/app/shared/resources/visits/services/visits.service.ts
+++ b/ui/src/app/shared/resources/visits/services/visits.service.ts
@@ -295,8 +295,8 @@ export class VisitsService {
includeInactive?: boolean,
onlyInsurance?: boolean,
queryParam?: string,
- startIndex?: number,
- limit?: number,
+ startIndex: number=0,
+ limit: number=10,
orderType?: string,
orderStatus?: string,
orderStatusCode?: string,
@@ -355,6 +355,7 @@ export class VisitsService {
if (includeInactive && includeInactive === true) {
parametersString += `&includeInactive=true`;
}
+ console.log('Constructed Query Parameters:', parametersString);
//
return (
locationUuids?.length > 0
@@ -1091,4 +1092,4 @@ export class VisitsService {
})
);
}
-}
\ No newline at end of file
+}