@icure/be-fhc-api 0.4.42 → 0.4.43
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/model/CodeResult.d.ts
CHANGED
package/model/InvoiceItem.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export declare class InvoiceItem {
|
|
|
25
25
|
insuranceRefDate?: number;
|
|
26
26
|
internshipNihii?: string;
|
|
27
27
|
invoiceRef?: string;
|
|
28
|
-
override3rdPayerCode?:
|
|
28
|
+
override3rdPayerCode?: string;
|
|
29
29
|
patientFee?: number;
|
|
30
30
|
percentNorm?: InvoiceItem.PercentNormEnum;
|
|
31
31
|
personalInterventionCoveredByThirdPartyCode?: number;
|
package/package.json
CHANGED
|
@@ -202,6 +202,7 @@ function toInvoice(nihiiHealthcareProvider, invoice, patient, insurance, related
|
|
|
202
202
|
return efactInvoice;
|
|
203
203
|
}
|
|
204
204
|
function toInvoiceItem(nihiiHealthcareProvider, patient, invoice, invoicingCode, speciality) {
|
|
205
|
+
var _a;
|
|
205
206
|
const invoiceItem = new models_1.InvoiceItem({});
|
|
206
207
|
invoiceItem.codeNomenclature = Number(invoicingCode.tarificationId.split("|")[1]);
|
|
207
208
|
invoiceItem.dateCode = (0, formatting_util_1.dateEncode)((0, formatting_util_1.toMoment)(invoicingCode.dateCode).toDate());
|
|
@@ -229,7 +230,7 @@ function toInvoiceItem(nihiiHealthcareProvider, patient, invoice, invoicingCode,
|
|
|
229
230
|
invoiceItem.insuranceRef = invoicingCode.contract || undefined; // Must be != ""
|
|
230
231
|
invoiceItem.insuranceRefDate = invoicingCode.contractDate || invoiceItem.dateCode;
|
|
231
232
|
invoiceItem.invoiceRef = uuidBase36(invoicingCode.id);
|
|
232
|
-
invoiceItem.override3rdPayerCode = invoicingCode.override3rdPayerCode;
|
|
233
|
+
invoiceItem.override3rdPayerCode = (_a = invoicingCode.override3rdPayerCode) === null || _a === void 0 ? void 0 : _a.toString();
|
|
233
234
|
invoiceItem.patientFee = Number(((invoicingCode.patientIntervention || 0) * 100).toFixed(0));
|
|
234
235
|
invoiceItem.percentNorm = getPercentNorm(invoicingCode.percentNorm || 0);
|
|
235
236
|
invoiceItem.personalInterventionCoveredByThirdPartyCode =
|