@kenyaemr/esm-billing-app 5.4.1-pre.2108 → 5.4.1-pre.2113

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.
@@ -285,35 +285,12 @@ export interface Payment {
285
285
  attributes: Attribute[];
286
286
  amount: number;
287
287
  amountTendered: number;
288
- billLineItem: BillLineItem;
289
288
  dateCreated: number;
290
289
  voided: boolean;
291
290
  resourceVersion: string;
292
291
  }
293
- export interface BillLineItem {
294
- uuid: string;
295
- display: string;
296
- voided: boolean;
297
- voidReason: any;
298
- item: string;
299
- billableService: string;
300
- quantity: number;
301
- price: number;
302
- priceName: string;
303
- priceUuid: string;
304
- lineItemOrder: number;
305
- paymentStatus: string;
306
- itemOrServiceConceptUuid: string;
307
- serviceTypeUuid: string;
308
- resourceVersion: string;
309
- }
310
292
 
311
- export type FormPayment = {
312
- method: PaymentMethod;
313
- amount: string | number;
314
- referenceCode?: number | string;
315
- lineItemUuid: string;
316
- };
293
+ export type FormPayment = { method: PaymentMethod; amount: string | number; referenceCode?: number | string };
317
294
 
318
295
  export type PaymentFormValue = {
319
296
  payment: Array<FormPayment>;
package/src/utils.ts CHANGED
@@ -166,9 +166,3 @@ export const computeWaivedAmount = (bill: MappedBill) => {
166
166
  .filter((payment) => payment.instanceType.name.toLowerCase() === 'waiver')
167
167
  .reduce((curr: number, prev) => curr + Number(prev.amountTendered), 0);
168
168
  };
169
-
170
- export const extractBillableName = (billableService: string | { billableService: string }) => {
171
- const parts =
172
- typeof billableService === 'string' ? billableService.split(':') : billableService.billableService.split(':');
173
- return parts.length > 1 ? parts[1] : '';
174
- };
@@ -61,7 +61,6 @@
61
61
  "chooseInterventions": "Choose interventions",
62
62
  "choosePackage": "Choose package",
63
63
  "claim": "Process claims",
64
- "claimableItems": "Claimable Items",
65
64
  "claimCode": "Claim Code",
66
65
  "claimedAmount": "Claimed Amount",
67
66
  "claimError": "Claim Error",
@@ -138,7 +137,6 @@
138
137
  "incompletePaymentSubtitle": "Please ensure all selected line items are fully paid, Total amount expected is {{selectedLineItemsAmountDue}}",
139
138
  "initiatePayment": "Initiate Payment",
140
139
  "inputSampleSchema": "Input sample schema",
141
- "insurancePaidItems": "Items paid through Insurance",
142
140
  "insuranceScheme": "Insurance scheme",
143
141
  "insurer": "Insurer",
144
142
  "interventionCode": "Intervention Code",
@@ -173,7 +171,6 @@
173
171
  "noBillsFoundDescription": "No bills found for this patient",
174
172
  "noCashPoints": "No Cash Points",
175
173
  "noCashPointsConfigured": "There are no cash points configured for this location",
176
- "noInsurancePaidItems": "No items paid through insurance found",
177
174
  "noItemsSelected": "No items selected",
178
175
  "noMatchingBillsToDisplay": "No matching bills to display",
179
176
  "noMatchingItemsToDisplay": "No matching items to display",
@@ -261,7 +258,7 @@
261
258
  "selectAttributeFormat": "Select attribute format",
262
259
  "selectExemptionCategory": "Select exemption category",
263
260
  "selectInsuranceScheme": "Select insurance scheme",
264
- "selectLineItemToPay": "Select line item to pay",
261
+ "selectitemstobeclaimed": "Select items that are to be included in the claims",
265
262
  "selectPaymentMethod": "Select payment method",
266
263
  "selectPaymentMode": "Select payment mode",
267
264
  "selectProvider": "Select Provider",