@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.
@@ -15,7 +15,7 @@ export declare class CodeResult {
15
15
  code?: string;
16
16
  contract?: string;
17
17
  fee?: Payment;
18
- justification?: number;
18
+ justification?: string;
19
19
  patientFee?: Payment;
20
20
  reimbursement?: Payment;
21
21
  }
@@ -25,7 +25,7 @@ export declare class InvoiceItem {
25
25
  insuranceRefDate?: number;
26
26
  internshipNihii?: string;
27
27
  invoiceRef?: string;
28
- override3rdPayerCode?: number;
28
+ override3rdPayerCode?: string;
29
29
  patientFee?: number;
30
30
  percentNorm?: InvoiceItem.PercentNormEnum;
31
31
  personalInterventionCoveredByThirdPartyCode?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icure/be-fhc-api",
3
- "version": "0.4.42",
3
+ "version": "0.4.43",
4
4
  "description": "Typescript version of Freehealth Connector standalone API client",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -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 =