@ampath/esm-dha-workflow-app 4.0.0-next.451 → 4.0.0-next.453
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/dist/1100.js +1 -1
- package/dist/1435.js +1 -1
- package/dist/1435.js.map +1 -1
- package/dist/2257.js +2 -0
- package/dist/2257.js.map +1 -0
- package/dist/2535.js +1 -1
- package/dist/2592.js +1 -1
- package/dist/2663.js +1 -1
- package/dist/2687.js +1 -1
- package/dist/2808.js +1 -1
- package/dist/2848.js +1 -1
- package/dist/2904.js +1 -0
- package/dist/2904.js.map +1 -0
- package/dist/3.js +1 -1
- package/dist/3016.js +1 -1
- package/dist/3182.js +1 -1
- package/dist/3196.js +1 -1
- package/dist/3242.js +1 -1
- package/dist/3288.js +1 -1
- package/dist/3612.js +1 -1
- package/dist/3794.js +1 -1
- package/dist/3897.js +1 -1
- package/dist/3949.js +1 -1
- package/dist/3949.js.map +1 -1
- package/dist/408.js +1 -1
- package/dist/409.js +1 -1
- package/dist/4300.js +1 -1
- package/dist/4399.js +1 -1
- package/dist/{7269.js → 4457.js} +1 -1
- package/dist/4457.js.map +1 -0
- package/dist/4535.js +1 -0
- package/dist/4535.js.map +1 -0
- package/dist/4569.js +1 -1
- package/dist/474.js +1 -1
- package/dist/5119.js +1 -1
- package/dist/5138.js +1 -1
- package/dist/5179.js +1 -1
- package/dist/5244.js +1 -1
- package/dist/5353.js +1 -1
- package/dist/5377.js +1 -1
- package/dist/5377.js.map +1 -1
- package/dist/5500.js +1 -1
- package/dist/5771.js +1 -0
- package/dist/5771.js.map +1 -0
- package/dist/5805.js +1 -1
- package/dist/6048.js +1 -1
- package/dist/6055.js +1 -1
- package/dist/6206.js +1 -1
- package/dist/6279.js +1 -1
- package/dist/6682.js +1 -1
- package/dist/6802.js +1 -1
- package/dist/72.js +1 -1
- package/dist/7694.js +1 -1
- package/dist/7698.js +1 -1
- package/dist/7734.js +1 -1
- package/dist/8137.js +1 -1
- package/dist/8167.js +1 -1
- package/dist/818.js +1 -1
- package/dist/8735.js +1 -1
- package/dist/8961.js +1 -1
- package/dist/902.js +1 -1
- package/dist/9134.js +1 -1
- package/dist/9429.js +1 -1
- package/dist/9442.js +1 -1
- package/dist/968.js +1 -1
- package/dist/9770.js +1 -1
- package/dist/9879.js +1 -1
- package/dist/9974.js +1 -1
- package/dist/esm-dha-workflow-app.js +1 -1
- package/dist/esm-dha-workflow-app.js.buildmanifest.json +214 -166
- 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/billing/dashboard/v3/finalize-bill/bill-line-items/bill-line-items.component.tsx +101 -0
- package/src/billing/dashboard/v3/finalize-bill/bill-line-items/bill-line-items.scss +69 -0
- package/src/billing/dashboard/v3/finalize-bill/finalize-bill-confirmation.modal.scss +11 -0
- package/src/billing/dashboard/v3/finalize-bill/finalize-bill-confirmation.modal.tsx +72 -0
- package/src/billing/dashboard/v3/finalize-bill/finalize-bill.component.scss +68 -0
- package/src/billing/dashboard/v3/finalize-bill/finalize-bill.component.tsx +261 -0
- package/src/billing/dashboard/v3/finalize-bill/finalize-bill.resource.ts +68 -0
- package/src/billing/dashboard/v3/finalize-bill/helpers/functions.ts +85 -0
- package/src/billing/dashboard/v3/finalize-bill/helpers/index.ts +1 -0
- package/src/billing/dashboard/v3/finalize-bill/payments/invoice-breakdown/invoice-breakdown.component.tsx +17 -0
- package/src/billing/dashboard/v3/finalize-bill/payments/invoice-breakdown/invoice-breakdown.scss +29 -0
- package/src/billing/dashboard/v3/finalize-bill/payments/payment-form/payment-form.component.tsx +60 -0
- package/src/billing/dashboard/v3/finalize-bill/payments/payment-form/payment-form.scss +53 -0
- package/src/billing/dashboard/v3/finalize-bill/payments/payment-form/payment-form.test.tsx +211 -0
- package/src/billing/dashboard/v3/finalize-bill/payments/payment-form/payment-form.utils.ts +87 -0
- package/src/billing/dashboard/v3/finalize-bill/payments/payment-history/payment-history.component.tsx +77 -0
- package/src/billing/dashboard/v3/finalize-bill/payments/payment-history/payment-history.test.tsx +158 -0
- package/src/billing/dashboard/v3/finalize-bill/payments/payments.component.tsx +238 -0
- package/src/billing/dashboard/v3/finalize-bill/payments/payments.scss +77 -0
- package/src/billing/dashboard/v3/finalize-bill/payments/printable-invoice/print-receipt.component.tsx +43 -0
- package/src/billing/dashboard/v3/finalize-bill/payments/printable-invoice/print-receipt.scss +14 -0
- package/src/billing/dashboard/v3/finalize-bill/payments/printable-invoice/print-receipt.test.tsx +133 -0
- package/src/billing/dashboard/v3/finalize-bill/payments/printable-invoice/printable-footer.component.tsx +19 -0
- package/src/billing/dashboard/v3/finalize-bill/payments/printable-invoice/printable-footer.scss +17 -0
- package/src/billing/dashboard/v3/finalize-bill/payments/printable-invoice/printable-footer.test.tsx +22 -0
- package/src/billing/dashboard/v3/finalize-bill/payments/printable-invoice/printable-invoice-header.component.tsx +109 -0
- package/src/billing/dashboard/v3/finalize-bill/payments/printable-invoice/printable-invoice-header.scss +62 -0
- package/src/billing/dashboard/v3/finalize-bill/payments/printable-invoice/printable-invoice-header.test.tsx +159 -0
- package/src/billing/dashboard/v3/finalize-bill/payments/printable-invoice/printable-invoice.component.tsx +221 -0
- package/src/billing/dashboard/v3/finalize-bill/payments/printable-invoice/printable-invoice.scss +55 -0
- package/src/billing/dashboard/v3/finalize-bill/types.ts +248 -0
- package/src/billing/dashboard/v3/patient-bill-details/patient-visit-details.tsx +43 -8
- package/src/billing/dashboard/v3/patient-bill-details/patient-visit.scss +7 -0
- package/src/config-schema.ts +33 -3
- package/src/index.ts +12 -9
- package/src/routes.json +8 -0
- package/translations/en.json +1 -0
- package/dist/7269.js.map +0 -1
- package/dist/7949.js +0 -2
- package/dist/7949.js.map +0 -1
- package/dist/7958.js +0 -1
- package/dist/7958.js.map +0 -1
- /package/dist/{7949.js.LICENSE.txt → 2257.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { OpenmrsResource } from "@openmrs/esm-framework";
|
|
2
|
+
|
|
3
|
+
export const BillStatus = {
|
|
4
|
+
PENDING: 'PENDING',
|
|
5
|
+
POSTED: 'POSTED',
|
|
6
|
+
PAID: 'PAID'
|
|
7
|
+
} as const;
|
|
8
|
+
|
|
9
|
+
export type BillStatus = (typeof BillStatus)[keyof typeof BillStatus];
|
|
10
|
+
|
|
11
|
+
export type PaymentRequestPayload = {
|
|
12
|
+
instanceType: string;
|
|
13
|
+
amountTendered: number;
|
|
14
|
+
amount: number;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export interface MappedBill {
|
|
18
|
+
uuid: string;
|
|
19
|
+
id: number;
|
|
20
|
+
patientUuid: string;
|
|
21
|
+
patientName: string;
|
|
22
|
+
cashPointUuid: string;
|
|
23
|
+
cashPointName: string;
|
|
24
|
+
cashPointLocation: string;
|
|
25
|
+
cashier: Provider;
|
|
26
|
+
receiptNumber: string;
|
|
27
|
+
status: BillStatus;
|
|
28
|
+
identifier: string;
|
|
29
|
+
dateCreated: string;
|
|
30
|
+
lineItems: Array<LineItem>;
|
|
31
|
+
billingService: string;
|
|
32
|
+
payments: Array<Payment>;
|
|
33
|
+
discounts?: Array<BillDiscount>;
|
|
34
|
+
refunds?: Array<BillRefund>;
|
|
35
|
+
totalAmount?: number;
|
|
36
|
+
netAmount: number;
|
|
37
|
+
tenderedAmount?: number;
|
|
38
|
+
display?: string;
|
|
39
|
+
visitUuid?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface PatientInvoice {
|
|
43
|
+
uuid: string;
|
|
44
|
+
display: string;
|
|
45
|
+
voided: boolean;
|
|
46
|
+
voidReason: string | null;
|
|
47
|
+
adjustedBy: Array<OpenmrsResource>;
|
|
48
|
+
billAdjusted: OpenmrsResource | null;
|
|
49
|
+
cashPoint: CashPoint;
|
|
50
|
+
cashier: Provider;
|
|
51
|
+
dateCreated: string;
|
|
52
|
+
lineItems: LineItem[];
|
|
53
|
+
patient: Patient;
|
|
54
|
+
payments: Payment[];
|
|
55
|
+
receiptNumber: string;
|
|
56
|
+
status: string;
|
|
57
|
+
adjustmentReason: string | null;
|
|
58
|
+
id: number;
|
|
59
|
+
visit?: { uuid: string; display: string };
|
|
60
|
+
resourceVersion: string;
|
|
61
|
+
total: number;
|
|
62
|
+
amountAfterDiscount: number;
|
|
63
|
+
discounts: BillDiscount[];
|
|
64
|
+
refunds: BillRefund[];
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
interface CashPoint {
|
|
68
|
+
uuid: string;
|
|
69
|
+
name: string;
|
|
70
|
+
description: string;
|
|
71
|
+
retired: boolean;
|
|
72
|
+
location: Location;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
interface Location {
|
|
76
|
+
uuid: string;
|
|
77
|
+
display: string;
|
|
78
|
+
links: LocationLink[];
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
interface LocationLink {
|
|
82
|
+
rel: string;
|
|
83
|
+
uri: string;
|
|
84
|
+
resourceAlias: string;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
interface Provider {
|
|
88
|
+
uuid: string;
|
|
89
|
+
display: string;
|
|
90
|
+
links: ProviderLink[];
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
interface ProviderLink {
|
|
94
|
+
rel: string;
|
|
95
|
+
uri: string;
|
|
96
|
+
resourceAlias: string;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export interface LineItem {
|
|
100
|
+
uuid?: string;
|
|
101
|
+
item?: string;
|
|
102
|
+
status: BillLineItemStatus;
|
|
103
|
+
billableService?: string;
|
|
104
|
+
quantity: number;
|
|
105
|
+
price: number;
|
|
106
|
+
priceName?: string;
|
|
107
|
+
priceUuid?: string;
|
|
108
|
+
paymentModeUuid?: string;
|
|
109
|
+
paymentModeName?: string;
|
|
110
|
+
lineItemOrder?: number;
|
|
111
|
+
resourceVersion?: string;
|
|
112
|
+
display?: string;
|
|
113
|
+
voided?: boolean;
|
|
114
|
+
voidReason?: string | null;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export const BillLineItemStatus = {
|
|
118
|
+
PENDING: 'PENDING',
|
|
119
|
+
PAID: 'PAID',
|
|
120
|
+
CANCELLED: 'CANCELLED',
|
|
121
|
+
ADJUSTED: 'ADJUSTED',
|
|
122
|
+
EXEMPTED: 'EXEMPTED',
|
|
123
|
+
REFUND_REQUESTED: 'REFUND_REQUESTED',
|
|
124
|
+
REFUNDED: 'REFUNDED',
|
|
125
|
+
PARTIALLY_REFUNDED: 'PARTIALLY_REFUNDED',
|
|
126
|
+
} as const;
|
|
127
|
+
|
|
128
|
+
export type BillLineItemStatus = (typeof BillLineItemStatus)[keyof typeof BillLineItemStatus];
|
|
129
|
+
|
|
130
|
+
interface Patient {
|
|
131
|
+
uuid: string;
|
|
132
|
+
display: string;
|
|
133
|
+
links: PatientLink[];
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
interface PatientLink {
|
|
137
|
+
rel: string;
|
|
138
|
+
uri: string;
|
|
139
|
+
resourceAlias: string;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export interface Payment {
|
|
143
|
+
uuid: string;
|
|
144
|
+
instanceType: PaymentInstanceType;
|
|
145
|
+
attributes: Attribute[];
|
|
146
|
+
amount: number;
|
|
147
|
+
amountTendered: number;
|
|
148
|
+
dateCreated: number;
|
|
149
|
+
voided: boolean;
|
|
150
|
+
resourceVersion: string;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
interface PaymentInstanceType {
|
|
154
|
+
uuid: string;
|
|
155
|
+
name: string;
|
|
156
|
+
description: string;
|
|
157
|
+
retired: boolean;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
interface Attribute {
|
|
161
|
+
uuid: string;
|
|
162
|
+
display: string;
|
|
163
|
+
voided: boolean;
|
|
164
|
+
voidReason: string | null;
|
|
165
|
+
value: string;
|
|
166
|
+
attributeType: AttributeType;
|
|
167
|
+
order: number;
|
|
168
|
+
valueName: string;
|
|
169
|
+
resourceVersion: string;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
interface AttributeType {
|
|
173
|
+
uuid: string;
|
|
174
|
+
name: string;
|
|
175
|
+
description: string;
|
|
176
|
+
retired: boolean;
|
|
177
|
+
attributeOrder: number;
|
|
178
|
+
format: string;
|
|
179
|
+
foreignKey: string | null;
|
|
180
|
+
regExp: string | null;
|
|
181
|
+
required: boolean;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export interface BillDiscount {
|
|
185
|
+
uuid: string;
|
|
186
|
+
billUuid: string;
|
|
187
|
+
lineItemUuid: string | null;
|
|
188
|
+
discountType: BillDiscountType;
|
|
189
|
+
discountValue: number;
|
|
190
|
+
discountAmount: number;
|
|
191
|
+
justification: string;
|
|
192
|
+
initiator: UserRef;
|
|
193
|
+
approver: UserRef | null;
|
|
194
|
+
dateCreated: string;
|
|
195
|
+
status: BillDiscountStatus;
|
|
196
|
+
voided: boolean;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export const BillDiscountStatus = {
|
|
200
|
+
PENDING: 'PENDING',
|
|
201
|
+
APPROVED: 'APPROVED',
|
|
202
|
+
REJECTED: 'REJECTED',
|
|
203
|
+
} as const;
|
|
204
|
+
|
|
205
|
+
export type BillDiscountStatus = (typeof BillDiscountStatus)[keyof typeof BillDiscountStatus];
|
|
206
|
+
|
|
207
|
+
export const BillDiscountType = {
|
|
208
|
+
PERCENTAGE: 'PERCENTAGE',
|
|
209
|
+
FIXED_AMOUNT: 'FIXED_AMOUNT',
|
|
210
|
+
} as const;
|
|
211
|
+
|
|
212
|
+
export type BillDiscountType = (typeof BillDiscountType)[keyof typeof BillDiscountType];
|
|
213
|
+
|
|
214
|
+
export interface BillRefund {
|
|
215
|
+
uuid: string;
|
|
216
|
+
billUuid: string;
|
|
217
|
+
lineItemUuid: string | null;
|
|
218
|
+
refundAmount: number;
|
|
219
|
+
reason: string;
|
|
220
|
+
initiator: UserRef;
|
|
221
|
+
approver: UserRef | null;
|
|
222
|
+
completer: UserRef | null;
|
|
223
|
+
dateApproved: string | null;
|
|
224
|
+
dateCompleted: string | null;
|
|
225
|
+
dateCreated: string;
|
|
226
|
+
status: RefundStatus;
|
|
227
|
+
voided: boolean;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export interface UserRef {
|
|
231
|
+
uuid: string;
|
|
232
|
+
display: string;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export const RefundStatus = {
|
|
236
|
+
REQUESTED: 'REQUESTED',
|
|
237
|
+
APPROVED: 'APPROVED',
|
|
238
|
+
REJECTED: 'REJECTED',
|
|
239
|
+
COMPLETED: 'COMPLETED',
|
|
240
|
+
} as const;
|
|
241
|
+
export type RefundStatus = (typeof RefundStatus)[keyof typeof RefundStatus];
|
|
242
|
+
|
|
243
|
+
export interface PatientDetails {
|
|
244
|
+
name: string;
|
|
245
|
+
birthDate: string;
|
|
246
|
+
gender: string;
|
|
247
|
+
address: string;
|
|
248
|
+
}
|
|
@@ -16,13 +16,24 @@ import {
|
|
|
16
16
|
useInvalidatePatientBillDetails,
|
|
17
17
|
usePatientBillDetails,
|
|
18
18
|
} from '../../../billing-claims.resource';
|
|
19
|
-
import {
|
|
20
|
-
|
|
19
|
+
import {
|
|
20
|
+
Button,
|
|
21
|
+
InlineLoading,
|
|
22
|
+
RadioButton,
|
|
23
|
+
RadioButtonGroup,
|
|
24
|
+
Tab,
|
|
25
|
+
TabList,
|
|
26
|
+
TabPanel,
|
|
27
|
+
TabPanels,
|
|
28
|
+
Tabs,
|
|
29
|
+
} from '@carbon/react';
|
|
30
|
+
import { formatDate, parseDate, showModal, showSnackbar } from '@openmrs/esm-framework';
|
|
21
31
|
|
|
22
32
|
import styles from './patient-visit.scss';
|
|
23
33
|
import BillDetails from './bill-details/bill-details';
|
|
24
34
|
import PatientClaimDetails from './claim-details/patient-claim-details.component';
|
|
25
35
|
import { type AmrsMaternityDiagnosisDto, type AmrsVisitDiagnosisDto, type AmrsVisitDiagnosis } from '../../../types';
|
|
36
|
+
import { useTranslation } from 'react-i18next';
|
|
26
37
|
|
|
27
38
|
interface PatientVisitDetailsComponentProps {
|
|
28
39
|
patientUuid: string;
|
|
@@ -35,6 +46,7 @@ const PatientVisitDetailsComponent: React.FC<PatientVisitDetailsComponentProps>
|
|
|
35
46
|
locationUuid,
|
|
36
47
|
billingDate,
|
|
37
48
|
}) => {
|
|
49
|
+
const { t } = useTranslation();
|
|
38
50
|
const [patientVisits, setPatientVisits] = useState<PatientBillVisit[]>([]);
|
|
39
51
|
const [selectedVisitUuid, setSelectedVisitUuid] = useState<string>('');
|
|
40
52
|
const [claimDetails, setClaimDetails] = useState([]);
|
|
@@ -55,6 +67,7 @@ const PatientVisitDetailsComponent: React.FC<PatientVisitDetailsComponentProps>
|
|
|
55
67
|
|
|
56
68
|
const { results: patientBillDetails, isLoading, isValidating } = usePatientBillDetails(selectedVisitUuid);
|
|
57
69
|
const invalidatePatientBillDetails = useInvalidatePatientBillDetails();
|
|
70
|
+
const billUuids = Array.from(new Set((patientBillDetails ?? []).map((bill) => bill.bill_uuid).filter(Boolean)));
|
|
58
71
|
|
|
59
72
|
const getPatientVisits = async () => {
|
|
60
73
|
const res = await fetchPatientVisits(patientUuid, billingDate, locationUuid);
|
|
@@ -193,11 +206,19 @@ const PatientVisitDetailsComponent: React.FC<PatientVisitDetailsComponentProps>
|
|
|
193
206
|
return <InlineLoading description="Refreshing bill details ..." />;
|
|
194
207
|
}
|
|
195
208
|
|
|
196
|
-
function formatVisitDate(visitDateTime: string){
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
209
|
+
function formatVisitDate(visitDateTime: string) {
|
|
210
|
+
if (!visitDateTime) {
|
|
211
|
+
return '';
|
|
212
|
+
}
|
|
213
|
+
return new Date(visitDateTime).toISOString().slice(0, 16).replace('T', ' ') ?? '';
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
function openBillFinalization(billUuid: string) {
|
|
217
|
+
const dispose = showModal('finalize-bill-modal', {
|
|
218
|
+
billUuid,
|
|
219
|
+
closeModal: () => dispose(),
|
|
220
|
+
size: 'lg',
|
|
221
|
+
});
|
|
201
222
|
}
|
|
202
223
|
|
|
203
224
|
return (
|
|
@@ -207,10 +228,24 @@ const PatientVisitDetailsComponent: React.FC<PatientVisitDetailsComponentProps>
|
|
|
207
228
|
{patientVisits &&
|
|
208
229
|
patientVisits?.map((v) => {
|
|
209
230
|
return (
|
|
210
|
-
<RadioButton
|
|
231
|
+
<RadioButton
|
|
232
|
+
id={v.visit_uuid}
|
|
233
|
+
labelText={`${v.visit_type}: ${formatVisitDate(v.date_started)}`}
|
|
234
|
+
value={v.visit_uuid}
|
|
235
|
+
/>
|
|
211
236
|
);
|
|
212
237
|
})}
|
|
213
238
|
</RadioButtonGroup>
|
|
239
|
+
{billUuids.length > 0 ? (
|
|
240
|
+
<div className={styles.billFinalizationActions}>
|
|
241
|
+
{billUuids.map((billUuid) => (
|
|
242
|
+
<Button key={billUuid} kind="tertiary" size="sm" onClick={() => openBillFinalization(billUuid)}>
|
|
243
|
+
{t('openBill', 'Open bill')}
|
|
244
|
+
</Button>
|
|
245
|
+
))}
|
|
246
|
+
</div>
|
|
247
|
+
) : null}
|
|
248
|
+
|
|
214
249
|
{selectedVisitUuid && (
|
|
215
250
|
<Tabs>
|
|
216
251
|
<TabList scrollDebounceWait={200}>
|
package/src/config-schema.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Type, validator } from '@openmrs/esm-framework';
|
|
1
|
+
import { Type, validator, validators } from '@openmrs/esm-framework';
|
|
2
2
|
|
|
3
3
|
export const configSchema = {
|
|
4
4
|
concepts: {
|
|
@@ -290,7 +290,31 @@ export const configSchema = {
|
|
|
290
290
|
_description: 'Death reporting form',
|
|
291
291
|
_default: 'b7750932-7fcb-3d1c-9561-faf6772d4d71'
|
|
292
292
|
}
|
|
293
|
-
}
|
|
293
|
+
},
|
|
294
|
+
logo: {
|
|
295
|
+
src: {
|
|
296
|
+
_type: Type.String,
|
|
297
|
+
_default: '',
|
|
298
|
+
_description: 'The path or URL to the logo image. If set to an empty string, the alt text will be used.',
|
|
299
|
+
_validators: [validators.isUrl],
|
|
300
|
+
},
|
|
301
|
+
alt: {
|
|
302
|
+
_type: Type.String,
|
|
303
|
+
_default: '',
|
|
304
|
+
_description:
|
|
305
|
+
'The alternative text for the logo image, displayed when the image cannot be loaded or on hover. If not provided and src is empty, the default OpenMRS SVG sprite will be used.',
|
|
306
|
+
},
|
|
307
|
+
},
|
|
308
|
+
country: {
|
|
309
|
+
_type: Type.String,
|
|
310
|
+
_description: 'The text that gets printed on the top right of the invoice, typically the name of the country',
|
|
311
|
+
_default: 'Kenya',
|
|
312
|
+
},
|
|
313
|
+
defaultCurrency: {
|
|
314
|
+
_type: Type.String,
|
|
315
|
+
_description: 'The default currency for the application. Specify the currency code (e.g., KES, UGX, GBP).',
|
|
316
|
+
_default: 'KES',
|
|
317
|
+
},
|
|
294
318
|
};
|
|
295
319
|
|
|
296
320
|
/** One SHR record-viewer category: a FHIR resource type plus its clinician-facing tab label. */
|
|
@@ -400,7 +424,13 @@ export interface ConfigObject {
|
|
|
400
424
|
}
|
|
401
425
|
formUuids: {
|
|
402
426
|
deathReportingFormUuid: Type.UUID;
|
|
403
|
-
}
|
|
427
|
+
},
|
|
428
|
+
logo: {
|
|
429
|
+
src: string;
|
|
430
|
+
alt: string;
|
|
431
|
+
};
|
|
432
|
+
country: string;
|
|
433
|
+
defaultCurrency: string;
|
|
404
434
|
}
|
|
405
435
|
|
|
406
436
|
const queueEntryActions = ['move', 'call', 'edit', 'transition', 'signOff', 'remove', 'delete', 'undo'] as const;
|
package/src/index.ts
CHANGED
|
@@ -104,7 +104,6 @@ export const dhaWorkflowDashboardLink = getSyncLifecycle(createDashboardLink(dha
|
|
|
104
104
|
|
|
105
105
|
export const dhaWorkflowDashboard = getAsyncLifecycle(() => import('./dashboard/dashboard.component'), options);
|
|
106
106
|
|
|
107
|
-
|
|
108
107
|
export const bookingsDashboardLink = getSyncLifecycle(createDashboardLink(bookingsDashboardMeta), options);
|
|
109
108
|
|
|
110
109
|
export const bookings = getAsyncLifecycle(() => import('./bookings/bookings.component'), options);
|
|
@@ -162,10 +161,7 @@ export const emtHandoverWorkspace = getAsyncLifecycle(
|
|
|
162
161
|
|
|
163
162
|
export const caseSummary = getAsyncLifecycle(() => import('./case-summary/case-summary.extension'), options);
|
|
164
163
|
|
|
165
|
-
export const electivePreauthLink = getSyncLifecycle(
|
|
166
|
-
openMrsCreateDashboardLink(electivePreauthMeta as any),
|
|
167
|
-
options,
|
|
168
|
-
);
|
|
164
|
+
export const electivePreauthLink = getSyncLifecycle(openMrsCreateDashboardLink(electivePreauthMeta as any), options);
|
|
169
165
|
|
|
170
166
|
export const electivePreauth = getAsyncLifecycle(
|
|
171
167
|
() => import('./billing/dashboard/v3/preauth/elective/elective-preauth.component'),
|
|
@@ -259,6 +255,16 @@ export const payerPreviewWorkspace = getAsyncLifecycle(
|
|
|
259
255
|
options,
|
|
260
256
|
);
|
|
261
257
|
|
|
258
|
+
export const finalizeBillModal = getAsyncLifecycle(
|
|
259
|
+
() => import('./billing/dashboard/v3/finalize-bill/finalize-bill.component'),
|
|
260
|
+
options,
|
|
261
|
+
);
|
|
262
|
+
|
|
263
|
+
export const finalizeBillConfirmationModal = getAsyncLifecycle(
|
|
264
|
+
() => import('./billing/dashboard/v3/finalize-bill/finalize-bill-confirmation.modal'),
|
|
265
|
+
options,
|
|
266
|
+
);
|
|
267
|
+
|
|
262
268
|
export const electivePreauthRequestWorkspace = getAsyncLifecycle(
|
|
263
269
|
() => import('./billing/dashboard/v3/preauth/elective/elective-preauth-request.workspace'),
|
|
264
270
|
options,
|
|
@@ -301,7 +307,4 @@ export const deathReportingFormButton = getAsyncLifecycle(
|
|
|
301
307
|
options,
|
|
302
308
|
);
|
|
303
309
|
|
|
304
|
-
export const accountingDashboardLink = getAsyncLifecycle(
|
|
305
|
-
() => import('./side-nav-menu/accounting-nav-links'),
|
|
306
|
-
options,
|
|
307
|
-
);
|
|
310
|
+
export const accountingDashboardLink = getAsyncLifecycle(() => import('./side-nav-menu/accounting-nav-links'), options);
|
package/src/routes.json
CHANGED
|
@@ -711,6 +711,14 @@
|
|
|
711
711
|
{
|
|
712
712
|
"name": "sign-off-queue-entry-modal",
|
|
713
713
|
"component": "signOffModal"
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
"name": "finalize-bill-modal",
|
|
717
|
+
"component": "finalizeBillModal"
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
"name": "finalize-bill-confirmation-modal",
|
|
721
|
+
"component": "finalizeBillConfirmationModal"
|
|
714
722
|
}
|
|
715
723
|
]
|
|
716
724
|
}
|
package/translations/en.json
CHANGED
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"noPatientSelected": "No patient selected",
|
|
51
51
|
"noPreauth": "None",
|
|
52
52
|
"normalPreauth": "Normal",
|
|
53
|
+
"openBill": "Open bill",
|
|
53
54
|
"orderNumber": "Order #",
|
|
54
55
|
"otpCode": "OTP code",
|
|
55
56
|
"patientGetterExplainer": "Try clicking the button below to fetch a patient from the backend",
|