@icure/be-fhc-api 0.6.4 → 0.6.6

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.
@@ -32,6 +32,9 @@ export declare class Invoice {
32
32
  relatedInvoiceIoCode?: string;
33
33
  relatedInvoiceNumber?: number;
34
34
  startOfCoveragePeriod?: number;
35
+ options?: {
36
+ [key: string]: string;
37
+ };
35
38
  }
36
39
  export declare namespace Invoice {
37
40
  type ReasonEnum = "Chimiotherapy" | "ProfessionalDisease" | "WorkAccident" | "Accident" | "Other";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icure/be-fhc-api",
3
- "version": "0.6.4",
3
+ "version": "0.6.6",
4
4
  "description": "Typescript version of Freehealth Connector standalone API client",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -8,7 +8,7 @@
8
8
  "lodash": "^4.17.20"
9
9
  },
10
10
  "peerDependencies": {
11
- "@icure/api": ">=8.4.0 <8.5.0"
11
+ "@icure/api": ">=8.4.8 <8.5.0"
12
12
  },
13
13
  "author": "Taktik sa",
14
14
  "license": "MIT",
@@ -186,6 +186,7 @@ function toInvoice(nihiiHealthcareProvider, invoice, patient, insurance, related
186
186
  efactInvoice.patient = (0, fhc_patient_util_1.toPatient)(patient);
187
187
  efactInvoice.ignorePrescriptionDate = !!invoice.longDelayJustification;
188
188
  efactInvoice.creditNote = invoice.creditNote;
189
+ efactInvoice.options = invoice.options;
189
190
  if (relatedInvoiceInfo) {
190
191
  efactInvoice.relatedBatchSendNumber = Number(relatedInvoiceInfo.sendNumber);
191
192
  efactInvoice.relatedBatchYearMonth = Number(relatedInvoiceInfo.invoicingYear + relatedInvoiceInfo.invoicingMonth);
@@ -234,6 +235,7 @@ function toInvoiceItem(nihiiHealthcareProvider, patient, invoice, invoicingCode,
234
235
  invoiceItem.insuranceRef = invoicingCode.contract || undefined; // Must be != ""
235
236
  invoiceItem.insuranceRefDate = invoicingCode.contractDate || invoiceItem.dateCode;
236
237
  invoiceItem.invoiceRef = uuidBase36(invoicingCode.id);
238
+ invoiceItem.productLabel = invoicingCode.productLabel;
237
239
  invoiceItem.override3rdPayerCode = (_a = invoicingCode.override3rdPayerCode) === null || _a === void 0 ? void 0 : _a.toString();
238
240
  invoiceItem.patientFee = Number(((invoicingCode.patientIntervention || 0) * 100).toFixed(0));
239
241
  invoiceItem.percentNorm = getPercentNorm(invoicingCode.percentNorm || 0);