@kenyaemr/esm-billing-app 5.4.2-pre.2482 → 5.4.2-pre.2487
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +4 -4
- package/dist/240.js +1 -1
- package/dist/240.js.map +1 -1
- package/dist/kenyaemr-esm-billing-app.js.buildmanifest.json +6 -6
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/claims/claims-management/table/claims-list-table.component.tsx +1 -252
- package/src/claims/claims-management/table/preauth-table.tmp.component.tsx +1 -1
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"kenyaemr":"^19.0.0"},"pages":[{"component":"billableServicesHome","route":"billable-services"},{"component":"requirePaymentModal","routeRegex":"^patient/.+/chart","online":true,"offline":false}],"extensions":[{"component":"billingDashboard","name":"billing-dashboard","slot":"accounting-slot"},{"component":"benefitsPackageDashboardLink","name":"benefits-package-dashboard-link","slot":"patient-chart-dashboard-slot","meta":{"name":"benefits-package","slot":"patient-chart-benefits-dashboard-slot","path":"insurance-benefits","columns":1,"columnSpan":1},"featureFlag":"healthInformationExchange"},{"component":"benefitsPackage","name":"benefits-package","slot":"patient-chart-benefits-dashboard-slot"},{"component":"root","name":"billing-dashboard-root","slot":"billing-dashboard-slot"},{"component":"benefitsEligibilyRequestForm","name":"benefits-eligibility-request-form"},{"component":"benefitsPreAuthForm","name":"benefits-pre-auth-form"},{"name":"billing-patient-summary","component":"billingPatientSummary","slot":"patient-chart-billing-dashboard-slot","order":10,"meta":{"columnSpan":4}},{"name":"billing-summary-dashboard-link","component":"billingSummaryDashboardLink","slot":"patient-chart-dashboard-slot","order":11,"meta":{"columns":1,"columnSpan":1,"slot":"patient-chart-billing-dashboard-slot","path":"Billing","layoutMode":"anchored"}},{"name":"billing-check-in-form","slot":"extra-visit-attribute-slot","component":"billingCheckInForm"},{"name":"require-billing-modal","component":"requirePaymentModal"},{"name":"patient-banner-billing-tags","component":"visitAttributeTags","slot":"patient-banner-tags-slot","order":2},{"name":"initiate-payment-modal","component":"initiatePaymentDialog"},{"name":"delete-billableservice-modal","component":"deleteBillableServiceModal"},{"name":"refund-bill-modal","component":"refundBillModal"},{"name":"delete-bill-modal","component":"deleteBillModal"},{"name":"lab-order-billable-item","component":"labOrder","slot":"top-of-lab-order-form-slot"},{"name":"procedure-order-billable-item","component":"procedureOrder","slot":"top-of-procedure-order-form-slot"},{"name":"imaging-order-billable-item","component":"imagingOrder","slot":"top-of-imaging-order-form-slot"},{"name":"price-info-order","component":"priceInfoOrder"},{"name":"drug-order-billable-item","component":"drugOrder","slot":"medication-info-slot"},{"name":"order-action-button","component":"orderActionButton","slots":["prescription-action-button-slot","imaging-orders-action","procedure-orders-action","tests-ordered-actions-slot"],"order":0},{"component":"billingOverviewLink","name":"billing-overview-link","order":0,"slot":"billing-dashboard-group-nav-slot"},{"component":"billDepositDashboardLink","name":"bill-deposit-dashboard-link","slot":"billing-dashboard-group-nav-slot"},{"component":"paymentHistoryLink","name":"payment-history-link","slot":"billing-dashboard-group-nav-slot"},{"component":"paymentPointsLink","name":"payment-points-link","slot":"billing-dashboard-group-nav-slot"},{"component":"paymentModesLink","name":"payment-modes-link","slot":"billing-dashboard-group-nav-slot"},{"component":"billManagerLink","name":"bill-manager-link","slot":"billing-dashboard-group-nav-slot"},{"component":"chargeableItemsLink","name":"chargeable-items-link","slot":"billing-dashboard-group-nav-slot"},{"component":"billableExemptionsLink","name":"billable-exemptions-link","slot":"billing-dashboard-group-nav-slot"},{"component":"claimsManagementOverviewDashboardLink","name":"claims-management-overview-link","slots":["claims-management-dashboard-link-slot","billing-dashboard-group-nav-slot"]},{"component":"preAuthRequestsDashboardLink","name":"preauthrequest-overview-link","slots":["claims-management-dashboard-link-slot","billing-dashboard-group-nav-slot"]},{"component":"claimsOverview","name":"claims-overview-dashboard-link","slot":"claims-management-overview-slot"},{"component":"waiveBillActionButton","name":"waive-bill-action-button","slot":"bill-actions-slot"},{"component":"deleteBillActionButton","name":"delete-bill-action-button","slot":"bill-actions-slot"},{"component":"refundLineItem","name":"refund-line-item","slot":"bill-actions-overflow-menu-slot"},{"name":"edit-line-item","component":"editLineItem","slot":"bill-actions-overflow-menu-slot"},{"name":"cancel-line-item","component":"cancelLineItem","slot":"bill-actions-overflow-menu-slot"},{"name":"patient-info-sha-status","component":"patientBannerShaStatus","slot":"patient-banner-tags-slot"}],"workspaces":[{"name":"create-bill-workspace","component":"createBillWorkspace","title":"Create Bill Workspace","type":"other-form"},{"name":"waive-bill-form","component":"waiveBillForm","title":"Waive Bill Form","type":"other-form"},{"name":"edit-bill-form","component":"editBillForm","title":"Edit Bill Form","type":"other-form"},{"name":"billable-service-form","component":"addServiceForm","title":"Create Charge Item Form","type":"other-form"},{"name":"commodity-form","component":"addCommodityForm","title":"Create Charge Item Form","type":"other-form"},{"name":"billing-form","component":"billingForm","title":"Billing Form","type":"other-form","width":"extra-wide"},{"name":"payment-mode-workspace","component":"paymentModeWorkspace","title":"Payment Mode Workspace","type":"other-form"},{"name":"cancel-bill-workspace","component":"cancelBillWorkspace","title":"Cancel Bill Workspace","type":"other-form"},{"name":"add-deposit-workspace","component":"addDepositWorkspace","title":"Add Deposit","type":"other-form"},{"name":"deposit-transaction-workspace","component":"depositTransactionWorkspace","title":"Deposit Transaction","type":"other-form"},{"name":"payment-workspace","component":"paymentWorkspace","title":"Payment Workspace","type":"other-form"}],"modals":[{"name":"create-payment-point","component":"createPaymentPoint"},{"name":"clock-out-modal","component":"clockOut"},{"name":"bulk-import-billable-services-modal","component":"bulkImportBillableServicesModal"},{"name":"delete-payment-mode-modal","component":"deletePaymentModeModal"},{"name":"manage-claim-request-modal","component":"manageClaimRequestModal"},{"name":"clock-in-modal","component":"clockIn"},{"name":"create-bill-item-modal","component":"createBillItemModal"},{"name":"delete-deposit-modal","component":"deleteDepositModal"},{"name":"reverse-transaction-modal","component":"reverseTransactionModal"},{"name":"print-preview-modal","component":"printPreviewModal"},{"name":"bill-action-modal","component":"billActionModal"}],"version":"5.4.2-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"kenyaemr":"^19.0.0"},"pages":[{"component":"billableServicesHome","route":"billable-services"},{"component":"requirePaymentModal","routeRegex":"^patient/.+/chart","online":true,"offline":false}],"extensions":[{"component":"billingDashboard","name":"billing-dashboard","slot":"accounting-slot"},{"component":"benefitsPackageDashboardLink","name":"benefits-package-dashboard-link","slot":"patient-chart-dashboard-slot","meta":{"name":"benefits-package","slot":"patient-chart-benefits-dashboard-slot","path":"insurance-benefits","columns":1,"columnSpan":1},"featureFlag":"healthInformationExchange"},{"component":"benefitsPackage","name":"benefits-package","slot":"patient-chart-benefits-dashboard-slot"},{"component":"root","name":"billing-dashboard-root","slot":"billing-dashboard-slot"},{"component":"benefitsEligibilyRequestForm","name":"benefits-eligibility-request-form"},{"component":"benefitsPreAuthForm","name":"benefits-pre-auth-form"},{"name":"billing-patient-summary","component":"billingPatientSummary","slot":"patient-chart-billing-dashboard-slot","order":10,"meta":{"columnSpan":4}},{"name":"billing-summary-dashboard-link","component":"billingSummaryDashboardLink","slot":"patient-chart-dashboard-slot","order":11,"meta":{"columns":1,"columnSpan":1,"slot":"patient-chart-billing-dashboard-slot","path":"Billing","layoutMode":"anchored"}},{"name":"billing-check-in-form","slot":"extra-visit-attribute-slot","component":"billingCheckInForm"},{"name":"require-billing-modal","component":"requirePaymentModal"},{"name":"patient-banner-billing-tags","component":"visitAttributeTags","slot":"patient-banner-tags-slot","order":2},{"name":"initiate-payment-modal","component":"initiatePaymentDialog"},{"name":"delete-billableservice-modal","component":"deleteBillableServiceModal"},{"name":"refund-bill-modal","component":"refundBillModal"},{"name":"delete-bill-modal","component":"deleteBillModal"},{"name":"lab-order-billable-item","component":"labOrder","slot":"top-of-lab-order-form-slot"},{"name":"procedure-order-billable-item","component":"procedureOrder","slot":"top-of-procedure-order-form-slot"},{"name":"imaging-order-billable-item","component":"imagingOrder","slot":"top-of-imaging-order-form-slot"},{"name":"price-info-order","component":"priceInfoOrder"},{"name":"drug-order-billable-item","component":"drugOrder","slot":"medication-info-slot"},{"name":"order-action-button","component":"orderActionButton","slots":["prescription-action-button-slot","imaging-orders-action","procedure-orders-action","tests-ordered-actions-slot"],"order":0},{"component":"billingOverviewLink","name":"billing-overview-link","order":0,"slot":"billing-dashboard-group-nav-slot"},{"component":"billDepositDashboardLink","name":"bill-deposit-dashboard-link","slot":"billing-dashboard-group-nav-slot"},{"component":"paymentHistoryLink","name":"payment-history-link","slot":"billing-dashboard-group-nav-slot"},{"component":"paymentPointsLink","name":"payment-points-link","slot":"billing-dashboard-group-nav-slot"},{"component":"paymentModesLink","name":"payment-modes-link","slot":"billing-dashboard-group-nav-slot"},{"component":"billManagerLink","name":"bill-manager-link","slot":"billing-dashboard-group-nav-slot"},{"component":"chargeableItemsLink","name":"chargeable-items-link","slot":"billing-dashboard-group-nav-slot"},{"component":"billableExemptionsLink","name":"billable-exemptions-link","slot":"billing-dashboard-group-nav-slot"},{"component":"claimsManagementOverviewDashboardLink","name":"claims-management-overview-link","slots":["claims-management-dashboard-link-slot","billing-dashboard-group-nav-slot"]},{"component":"preAuthRequestsDashboardLink","name":"preauthrequest-overview-link","slots":["claims-management-dashboard-link-slot","billing-dashboard-group-nav-slot"]},{"component":"claimsOverview","name":"claims-overview-dashboard-link","slot":"claims-management-overview-slot"},{"component":"waiveBillActionButton","name":"waive-bill-action-button","slot":"bill-actions-slot"},{"component":"deleteBillActionButton","name":"delete-bill-action-button","slot":"bill-actions-slot"},{"component":"refundLineItem","name":"refund-line-item","slot":"bill-actions-overflow-menu-slot"},{"name":"edit-line-item","component":"editLineItem","slot":"bill-actions-overflow-menu-slot"},{"name":"cancel-line-item","component":"cancelLineItem","slot":"bill-actions-overflow-menu-slot"},{"name":"patient-info-sha-status","component":"patientBannerShaStatus","slot":"patient-banner-tags-slot"}],"workspaces":[{"name":"create-bill-workspace","component":"createBillWorkspace","title":"Create Bill Workspace","type":"other-form"},{"name":"waive-bill-form","component":"waiveBillForm","title":"Waive Bill Form","type":"other-form"},{"name":"edit-bill-form","component":"editBillForm","title":"Edit Bill Form","type":"other-form"},{"name":"billable-service-form","component":"addServiceForm","title":"Create Charge Item Form","type":"other-form"},{"name":"commodity-form","component":"addCommodityForm","title":"Create Charge Item Form","type":"other-form"},{"name":"billing-form","component":"billingForm","title":"Billing Form","type":"other-form","width":"extra-wide"},{"name":"payment-mode-workspace","component":"paymentModeWorkspace","title":"Payment Mode Workspace","type":"other-form"},{"name":"cancel-bill-workspace","component":"cancelBillWorkspace","title":"Cancel Bill Workspace","type":"other-form"},{"name":"add-deposit-workspace","component":"addDepositWorkspace","title":"Add Deposit","type":"other-form"},{"name":"deposit-transaction-workspace","component":"depositTransactionWorkspace","title":"Deposit Transaction","type":"other-form"},{"name":"payment-workspace","component":"paymentWorkspace","title":"Payment Workspace","type":"other-form"}],"modals":[{"name":"create-payment-point","component":"createPaymentPoint"},{"name":"clock-out-modal","component":"clockOut"},{"name":"bulk-import-billable-services-modal","component":"bulkImportBillableServicesModal"},{"name":"delete-payment-mode-modal","component":"deletePaymentModeModal"},{"name":"manage-claim-request-modal","component":"manageClaimRequestModal"},{"name":"clock-in-modal","component":"clockIn"},{"name":"create-bill-item-modal","component":"createBillItemModal"},{"name":"delete-deposit-modal","component":"deleteDepositModal"},{"name":"reverse-transaction-modal","component":"reverseTransactionModal"},{"name":"print-preview-modal","component":"printPreviewModal"},{"name":"bill-action-modal","component":"billActionModal"}],"version":"5.4.2-pre.2487"}
|
package/package.json
CHANGED
|
@@ -1,254 +1,3 @@
|
|
|
1
|
-
// import {
|
|
2
|
-
// DataTable,
|
|
3
|
-
// DataTableSkeleton,
|
|
4
|
-
// OverflowMenu,
|
|
5
|
-
// OverflowMenuItem,
|
|
6
|
-
// Pagination,
|
|
7
|
-
// Table,
|
|
8
|
-
// TableBody,
|
|
9
|
-
// TableCell,
|
|
10
|
-
// TableContainer,
|
|
11
|
-
// TableHead,
|
|
12
|
-
// TableHeader,
|
|
13
|
-
// TableRow,
|
|
14
|
-
// Tag,
|
|
15
|
-
// } from '@carbon/react';
|
|
16
|
-
// import { formatDate, isDesktop, parseDate, showModal, useLayoutType, usePagination } from '@openmrs/esm-framework';
|
|
17
|
-
// import { CardHeader, EmptyState, usePaginationInfo } from '@openmrs/esm-patient-common-lib';
|
|
18
|
-
// import React, { useMemo, useState } from 'react';
|
|
19
|
-
// import { useTranslation } from 'react-i18next';
|
|
20
|
-
// import { ClaimsPreAuthFilter } from '../../../types';
|
|
21
|
-
// import ClaimsFilterHeader from '../header/filter-header.component';
|
|
22
|
-
// import styles from './claims-list-table.scss';
|
|
23
|
-
// import { useFacilityClaims } from './use-facility-claims';
|
|
24
|
-
// import { statusColors } from '../../utils';
|
|
25
|
-
|
|
26
|
-
// const ClaimsManagementTable: React.FC = () => {
|
|
27
|
-
// const { claims, isLoading } = useFacilityClaims();
|
|
28
|
-
// const { t } = useTranslation();
|
|
29
|
-
// const [filters, setFilters] = useState<ClaimsPreAuthFilter>({
|
|
30
|
-
// status: 'all',
|
|
31
|
-
// });
|
|
32
|
-
// const status = useMemo(
|
|
33
|
-
// () => [
|
|
34
|
-
// { value: 'all', label: t('all', 'All') },
|
|
35
|
-
// { value: 'ENTERED', label: t('entered', 'Entered') },
|
|
36
|
-
// { value: 'ERRORED', label: t('errored', 'Errored') },
|
|
37
|
-
// { value: 'REJECTED', label: t('rejected', 'Rejected') },
|
|
38
|
-
// { value: 'CHECKED', label: t('checked', 'Checked') },
|
|
39
|
-
// { value: 'VALUATED', label: t('valuated', 'Valuated') },
|
|
40
|
-
// { value: 'APPROVED', label: t('approved', 'Approved') },
|
|
41
|
-
// ],
|
|
42
|
-
// [t],
|
|
43
|
-
// );
|
|
44
|
-
// const [pageSize, setPageSize] = useState(5);
|
|
45
|
-
// const filterClaims = (claim) => {
|
|
46
|
-
// const status = filters?.status;
|
|
47
|
-
// const search = filters?.search?.toLowerCase();
|
|
48
|
-
// const fromDate = filters?.fromDate ? new Date(filters.fromDate) : null;
|
|
49
|
-
// const toDate = filters?.toDate ? new Date(filters.toDate) : null;
|
|
50
|
-
|
|
51
|
-
// const patientName = claim.patientName?.toLowerCase();
|
|
52
|
-
// const providerName = claim.providerName?.toLowerCase();
|
|
53
|
-
// const timeStamp = new Date(claim.dateFrom);
|
|
54
|
-
// const preauthStatus = claim.status;
|
|
55
|
-
|
|
56
|
-
// // Check status (allow 'all' to bypass the filter)
|
|
57
|
-
// const statusMatch = status === 'all' || preauthStatus === status;
|
|
58
|
-
|
|
59
|
-
// // Check search filter (patient name or provider name contains the search term)
|
|
60
|
-
// const searchMatch = !search || patientName?.includes(search) || providerName?.includes(search);
|
|
61
|
-
|
|
62
|
-
// // Check date range filter (timestamp is between fromDate and toDate if provided)
|
|
63
|
-
// const dateMatch = (!fromDate || timeStamp >= fromDate) && (!toDate || timeStamp <= toDate);
|
|
64
|
-
|
|
65
|
-
// // Return true if all conditions match
|
|
66
|
-
// return statusMatch && searchMatch && dateMatch;
|
|
67
|
-
// };
|
|
68
|
-
|
|
69
|
-
// const filteredClaims = claims.filter(filterClaims);
|
|
70
|
-
// const { paginated, goTo, results, currentPage } = usePagination(filteredClaims, pageSize);
|
|
71
|
-
// const { pageSizes } = usePaginationInfo(pageSize, claims.length, currentPage, results.length);
|
|
72
|
-
// const responsiveSize = isDesktop(useLayoutType()) ? 'sm' : 'lg';
|
|
73
|
-
// const layout = useLayoutType();
|
|
74
|
-
// const size = layout === 'tablet' ? 'lg' : 'md';
|
|
75
|
-
|
|
76
|
-
// const headers = [
|
|
77
|
-
// { key: 'claimCode', header: t('claimCode', 'Claim Code') },
|
|
78
|
-
// { key: 'status', header: t('status', 'Status') },
|
|
79
|
-
// { key: 'providerName', header: t('provider', 'Provider') },
|
|
80
|
-
// { key: 'patientName', header: t('patient', 'Patient') },
|
|
81
|
-
// { key: 'claimedTotal', header: t('claimedAmount', 'Claimed Amount') },
|
|
82
|
-
// { key: 'approvedTotal', header: t('approvedTotal', 'Approved Total') },
|
|
83
|
-
// { key: 'dateFrom', header: t('dateCreated', 'Date Created') },
|
|
84
|
-
// { key: 'action', header: t('action', 'Action') },
|
|
85
|
-
// ];
|
|
86
|
-
|
|
87
|
-
// if (isLoading) {
|
|
88
|
-
// return (
|
|
89
|
-
// <div className={styles.dataTableSkeleton}>
|
|
90
|
-
// <DataTableSkeleton
|
|
91
|
-
// headers={headers}
|
|
92
|
-
// showToolbar={false}
|
|
93
|
-
// showHeader={false}
|
|
94
|
-
// columnCount={Object.keys(headers).length}
|
|
95
|
-
// zebra
|
|
96
|
-
// rowCount={pageSize}
|
|
97
|
-
// />
|
|
98
|
-
// </div>
|
|
99
|
-
// );
|
|
100
|
-
// }
|
|
101
|
-
|
|
102
|
-
// if (claims.length === 0) {
|
|
103
|
-
// return (
|
|
104
|
-
// <div className={styles.claimsTable}>
|
|
105
|
-
// <EmptyState
|
|
106
|
-
// displayText={t('emptyClaimsState', 'There are no claims to display')}
|
|
107
|
-
// headerTitle={t('emptyClaimsHeader', 'No Claims')}
|
|
108
|
-
// />
|
|
109
|
-
// </div>
|
|
110
|
-
// );
|
|
111
|
-
// }
|
|
112
|
-
|
|
113
|
-
// const handleClaimAction = (claimId: string, modalType: 'retry' | 'update') => {
|
|
114
|
-
// const dispose = showModal('manage-claim-request-modal', {
|
|
115
|
-
// closeModal: () => dispose(),
|
|
116
|
-
// claimId,
|
|
117
|
-
// modalType,
|
|
118
|
-
// });
|
|
119
|
-
// };
|
|
120
|
-
|
|
121
|
-
// const renderStatusCell = (row) => {
|
|
122
|
-
// return <ClaimStatus row={row} />;
|
|
123
|
-
// };
|
|
124
|
-
|
|
125
|
-
// const renderActionCell = (row, rowStatus, size) => {
|
|
126
|
-
// return (
|
|
127
|
-
// <OverflowMenu size={size} flipped>
|
|
128
|
-
// {['ENTERED', 'ERRORED'].includes(rowStatus) && (
|
|
129
|
-
// <OverflowMenuItem
|
|
130
|
-
// itemText={t('retryRequest', 'Retry request')}
|
|
131
|
-
// onClick={() => handleClaimAction(row.id, 'retry')}
|
|
132
|
-
// />
|
|
133
|
-
// )}
|
|
134
|
-
// <OverflowMenuItem
|
|
135
|
-
// itemText={t('updateStatus', 'Update status')}
|
|
136
|
-
// onClick={() => handleClaimAction(row.id, 'update')}
|
|
137
|
-
// />
|
|
138
|
-
// </OverflowMenu>
|
|
139
|
-
// );
|
|
140
|
-
// };
|
|
141
|
-
|
|
142
|
-
// const renderDateFromCell = (cellValue) => {
|
|
143
|
-
// return formatDate(parseDate(cellValue));
|
|
144
|
-
// };
|
|
145
|
-
|
|
146
|
-
// const renderApprovedTotalCell = (row, rowStatus, cellValue) => {
|
|
147
|
-
// if (['APPROVED'].includes(rowStatus)) {
|
|
148
|
-
// const claimedTotal = row.cells.find((c) => c.info.header === 'claimedTotal')?.value;
|
|
149
|
-
// return claimedTotal || cellValue;
|
|
150
|
-
// }
|
|
151
|
-
// return cellValue;
|
|
152
|
-
// };
|
|
153
|
-
|
|
154
|
-
// const renderCellContent = (cell, row, rowStatus) => {
|
|
155
|
-
// const header = cell.info.header;
|
|
156
|
-
|
|
157
|
-
// if (header === 'status') {
|
|
158
|
-
// return renderStatusCell(row);
|
|
159
|
-
// }
|
|
160
|
-
|
|
161
|
-
// if (header === 'action') {
|
|
162
|
-
// return renderActionCell(row, rowStatus, size);
|
|
163
|
-
// }
|
|
164
|
-
|
|
165
|
-
// if (header === 'dateFrom') {
|
|
166
|
-
// return renderDateFromCell(cell.value);
|
|
167
|
-
// }
|
|
168
|
-
|
|
169
|
-
// if (header === 'approvedTotal') {
|
|
170
|
-
// return renderApprovedTotalCell(row, rowStatus, cell.value);
|
|
171
|
-
// }
|
|
172
|
-
|
|
173
|
-
// return cell.value;
|
|
174
|
-
// };
|
|
175
|
-
|
|
176
|
-
// return (
|
|
177
|
-
// <div className={styles.dataTableSkeleton}>
|
|
178
|
-
// <div className={styles.tableHeader}>
|
|
179
|
-
// <CardHeader title={t('claims', 'Claims')}>{''}</CardHeader>
|
|
180
|
-
// <ClaimsFilterHeader filters={filters} onFilterChanged={setFilters} statusOptions={status} />
|
|
181
|
-
// </div>
|
|
182
|
-
// <DataTable rows={results} headers={headers} isSortable useZebraStyles>
|
|
183
|
-
// {({ rows, headers, getHeaderProps, getRowProps, getTableProps }) => (
|
|
184
|
-
// <TableContainer className={styles.claimsTable}>
|
|
185
|
-
// <Table {...getTableProps()} aria-label="sample table">
|
|
186
|
-
// <TableHead>
|
|
187
|
-
// <TableRow>
|
|
188
|
-
// {headers.map((header) => (
|
|
189
|
-
// <TableHeader
|
|
190
|
-
// key={header.key}
|
|
191
|
-
// {...getHeaderProps({
|
|
192
|
-
// header,
|
|
193
|
-
// })}>
|
|
194
|
-
// {header.header}
|
|
195
|
-
// </TableHeader>
|
|
196
|
-
// ))}
|
|
197
|
-
// </TableRow>
|
|
198
|
-
// </TableHead>
|
|
199
|
-
// <TableBody>
|
|
200
|
-
// {rows.map((row) => {
|
|
201
|
-
// const rowStatus = row.cells.find((cell) => cell.info.header === 'status')?.value;
|
|
202
|
-
// return (
|
|
203
|
-
// <TableRow {...getRowProps({ row })}>
|
|
204
|
-
// {row.cells.map((cell) => (
|
|
205
|
-
// <TableCell key={cell.id}>{renderCellContent(cell, row, rowStatus)}</TableCell>
|
|
206
|
-
// ))}
|
|
207
|
-
// </TableRow>
|
|
208
|
-
// );
|
|
209
|
-
// })}
|
|
210
|
-
// </TableBody>
|
|
211
|
-
// </Table>
|
|
212
|
-
// {paginated && !isLoading && (
|
|
213
|
-
// <Pagination
|
|
214
|
-
// forwardText=""
|
|
215
|
-
// backwardText=""
|
|
216
|
-
// page={currentPage}
|
|
217
|
-
// pageSize={pageSize}
|
|
218
|
-
// pageSizes={pageSizes}
|
|
219
|
-
// totalItems={filteredClaims.length}
|
|
220
|
-
// size={responsiveSize}
|
|
221
|
-
// onChange={({ page: newPage, pageSize }) => {
|
|
222
|
-
// if (newPage !== currentPage) {
|
|
223
|
-
// goTo(newPage);
|
|
224
|
-
// }
|
|
225
|
-
// setPageSize(pageSize);
|
|
226
|
-
// }}
|
|
227
|
-
// />
|
|
228
|
-
// )}
|
|
229
|
-
// </TableContainer>
|
|
230
|
-
// )}
|
|
231
|
-
// </DataTable>
|
|
232
|
-
// </div>
|
|
233
|
-
// );
|
|
234
|
-
// };
|
|
235
|
-
|
|
236
|
-
// export default ClaimsManagementTable;
|
|
237
|
-
// const ClaimStatus = ({ row }: { row: any }) => {
|
|
238
|
-
// const { claims } = useFacilityClaims();
|
|
239
|
-
// const { t } = useTranslation();
|
|
240
|
-
|
|
241
|
-
// const claim = claims.find((claim) => claim.id === row.id);
|
|
242
|
-
|
|
243
|
-
// // Default to 'gray' if status not found in the mapping
|
|
244
|
-
// const tagType = statusColors[claim.status] || 'gray';
|
|
245
|
-
|
|
246
|
-
// return (
|
|
247
|
-
// <div className={styles.claimStatus}>
|
|
248
|
-
// <Tag type={tagType}>{claim.status}</Tag>
|
|
249
|
-
// </div>
|
|
250
|
-
// );
|
|
251
|
-
// };
|
|
252
1
|
import React from 'react';
|
|
253
2
|
import ClaimsTable from './claim-table.component';
|
|
254
3
|
|
|
@@ -257,7 +6,7 @@ const ClaimsManagementTable: React.FC = () => {
|
|
|
257
6
|
<ClaimsTable
|
|
258
7
|
title="claims"
|
|
259
8
|
emptyStateText="emptyClaimsState"
|
|
260
|
-
emptyStateHeader="
|
|
9
|
+
emptyStateHeader="Claims"
|
|
261
10
|
includeClaimCode={true}
|
|
262
11
|
use="claim"
|
|
263
12
|
/>
|