@icure/be-fhc-api 0.4.43 → 0.5.1

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.
@@ -33,8 +33,6 @@ export declare class fhcEagreementApi {
33
33
  * @param patientFirstName patientFirstName
34
34
  * @param patientLastName patientLastName
35
35
  * @param patientGender patientGender
36
- * @param messageEventSystem messageEventSystem
37
- * @param messageEventCode messageEventCode
38
36
  * @param insuranceRef insuranceRef
39
37
  * @param sctCode sctCode
40
38
  * @param sctDisplay sctDisplay
@@ -49,7 +47,7 @@ export declare class fhcEagreementApi {
49
47
  * @param numberOfSessionForAnnex1 numberOfSessionForAnnex1
50
48
  * @param numberOfSessionForAnnex2 numberOfSessionForAnnex2
51
49
  */
52
- argueAgreementUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpQuality: string, hcpNihii: string, hcpName: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, patientFirstName: string, patientLastName: string, patientGender: string, messageEventSystem: string, messageEventCode: string, insuranceRef: string, sctCode: string, sctDisplay?: string, patientSsin?: string, patientIo?: string, patientIoMembership?: string, orgNihii?: string, organizationType?: string, annex1?: string, annex2?: string, agreementType?: string, numberOfSessionForAnnex1?: number, numberOfSessionForAnnex2?: number): Promise<AgreementResponse>;
50
+ argueAgreementUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpQuality: string, hcpNihii: string, hcpName: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, patientFirstName: string, patientLastName: string, patientGender: string, insuranceRef: string, sctCode?: string, sctDisplay?: string, patientSsin?: string, patientIo?: string, patientIoMembership?: string, orgNihii?: string, organizationType?: string, annex1?: string, annex2?: string, agreementType?: string, numberOfSessionForAnnex1?: number, numberOfSessionForAnnex2?: number): Promise<AgreementResponse>;
53
51
  /**
54
52
  *
55
53
  * @summary askAgreement
@@ -65,11 +63,8 @@ export declare class fhcEagreementApi {
65
63
  * @param patientFirstName patientFirstName
66
64
  * @param patientLastName patientLastName
67
65
  * @param patientGender patientGender
68
- * @param messageEventSystem messageEventSystem
69
- * @param messageEventCode messageEventCode
70
66
  * @param pathologyStartDate pathologyStartDate
71
67
  * @param pathologyCode pathologyCode
72
- * @param insuranceRef insuranceRef
73
68
  * @param sctCode sctCode
74
69
  * @param sctDisplay sctDisplay
75
70
  * @param patientSsin patientSsin
@@ -85,7 +80,7 @@ export declare class fhcEagreementApi {
85
80
  * @param numberOfSessionForAnnex1 numberOfSessionForAnnex1
86
81
  * @param numberOfSessionForAnnex2 numberOfSessionForAnnex2
87
82
  */
88
- askAgreementUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpQuality: string, hcpNihii: string, hcpName: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, patientFirstName: string, patientLastName: string, patientGender: string, messageEventSystem: string, messageEventCode: string, pathologyStartDate: number, pathologyCode: string, insuranceRef: string, sctCode: string, sctDisplay?: string, patientSsin?: string, patientIo?: string, patientIoMembership?: string, orgNihii?: string, organizationType?: string, annex1?: string, annex2?: string, agreementStartDate?: number, agreementEndDate?: number, agreementType?: string, numberOfSessionForAnnex1?: number, numberOfSessionForAnnex2?: number): Promise<AgreementResponse>;
83
+ askAgreementUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpQuality: string, hcpNihii: string, hcpName: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, patientFirstName: string, patientLastName: string, patientGender: string, pathologyStartDate: number, pathologyCode: string, sctCode?: string, sctDisplay?: string, patientSsin?: string, patientIo?: string, patientIoMembership?: string, orgNihii?: string, organizationType?: string, annex1?: string, annex2?: string, agreementStartDate?: number, agreementEndDate?: number, agreementType?: string, numberOfSessionForAnnex1?: number, numberOfSessionForAnnex2?: number): Promise<AgreementResponse>;
89
84
  /**
90
85
  *
91
86
  * @summary cancelAgreement
@@ -101,8 +96,6 @@ export declare class fhcEagreementApi {
101
96
  * @param patientFirstName patientFirstName
102
97
  * @param patientLastName patientLastName
103
98
  * @param patientGender patientGender
104
- * @param messageEventSystem messageEventSystem
105
- * @param messageEventCode messageEventCode
106
99
  * @param insuranceRef insuranceRef
107
100
  * @param patientSsin patientSsin
108
101
  * @param patientIo patientIo
@@ -111,7 +104,7 @@ export declare class fhcEagreementApi {
111
104
  * @param organizationType organizationType
112
105
  * @param agreementType agreementType
113
106
  */
114
- cancelAgreementUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpQuality: string, hcpNihii: string, hcpName: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, patientFirstName: string, patientLastName: string, patientGender: string, messageEventSystem: string, messageEventCode: string, insuranceRef: string, patientSsin?: string, patientIo?: string, patientIoMembership?: string, orgNihii?: string, organizationType?: string, agreementType?: string): Promise<AgreementResponse>;
107
+ cancelAgreementUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpQuality: string, hcpNihii: string, hcpName: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, patientFirstName: string, patientLastName: string, patientGender: string, insuranceRef: string, patientSsin?: string, patientIo?: string, patientIoMembership?: string, orgNihii?: string, organizationType?: string, agreementType?: string): Promise<AgreementResponse>;
115
108
  /**
116
109
  *
117
110
  * @summary completeAgreement
@@ -127,8 +120,6 @@ export declare class fhcEagreementApi {
127
120
  * @param patientFirstName patientFirstName
128
121
  * @param patientLastName patientLastName
129
122
  * @param patientGender patientGender
130
- * @param messageEventSystem messageEventSystem
131
- * @param messageEventCode messageEventCode
132
123
  * @param insuranceRef insuranceRef
133
124
  * @param sctCode sctCode
134
125
  * @param sctDisplay sctDisplay
@@ -143,7 +134,7 @@ export declare class fhcEagreementApi {
143
134
  * @param numberOfSessionForAnnex1 numberOfSessionForAnnex1
144
135
  * @param numberOfSessionForAnnex2 numberOfSessionForAnnex2
145
136
  */
146
- completeAgreementUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpQuality: string, hcpNihii: string, hcpName: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, patientFirstName: string, patientLastName: string, patientGender: string, messageEventSystem: string, messageEventCode: string, insuranceRef: string, sctCode: string, sctDisplay?: string, patientSsin?: string, patientIo?: string, patientIoMembership?: string, orgNihii?: string, organizationType?: string, annex1?: string, annex2?: string, agreementType?: string, numberOfSessionForAnnex1?: number, numberOfSessionForAnnex2?: number): Promise<AgreementResponse>;
137
+ completeAgreementUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpQuality: string, hcpNihii: string, hcpName: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, patientFirstName: string, patientLastName: string, patientGender: string, insuranceRef: string, sctCode?: string, sctDisplay?: string, patientSsin?: string, patientIo?: string, patientIoMembership?: string, orgNihii?: string, organizationType?: string, annex1?: string, annex2?: string, agreementType?: string, numberOfSessionForAnnex1?: number, numberOfSessionForAnnex2?: number): Promise<AgreementResponse>;
147
138
  /**
148
139
  *
149
140
  * @summary consultList
@@ -159,10 +150,8 @@ export declare class fhcEagreementApi {
159
150
  * @param patientFirstName patientFirstName
160
151
  * @param patientLastName patientLastName
161
152
  * @param patientGender patientGender
162
- * @param messageEventSystem messageEventSystem
163
- * @param messageEventCode messageEventCode
164
- * @param insuranceRef insuranceRef
165
153
  * @param subTypeCode subTypeCode
154
+ * @param insuranceRef insuranceRef
166
155
  * @param patientSsin patientSsin
167
156
  * @param patientIo patientIo
168
157
  * @param patientIoMembership patientIoMembership
@@ -172,7 +161,7 @@ export declare class fhcEagreementApi {
172
161
  * @param agreementEndDate agreementEndDate
173
162
  * @param agreementType agreementType
174
163
  */
175
- consultListUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpQuality: string, hcpNihii: string, hcpName: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, patientFirstName: string, patientLastName: string, patientGender: string, messageEventSystem: string, messageEventCode: string, insuranceRef: string, subTypeCode: string, patientSsin?: string, patientIo?: string, patientIoMembership?: string, orgNihii?: string, organizationType?: string, agreementStartDate?: number, agreementEndDate?: number, agreementType?: string): Promise<AgreementResponse>;
164
+ consultListUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpQuality: string, hcpNihii: string, hcpName: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, patientFirstName: string, patientLastName: string, patientGender: string, subTypeCode: string, insuranceRef?: string, patientSsin?: string, patientIo?: string, patientIoMembership?: string, orgNihii?: string, organizationType?: string, agreementStartDate?: number, agreementEndDate?: number, agreementType?: string): Promise<AgreementResponse>;
176
165
  /**
177
166
  *
178
167
  * @summary extendAgreement
@@ -188,8 +177,6 @@ export declare class fhcEagreementApi {
188
177
  * @param patientFirstName patientFirstName
189
178
  * @param patientLastName patientLastName
190
179
  * @param patientGender patientGender
191
- * @param messageEventSystem messageEventSystem
192
- * @param messageEventCode messageEventCode
193
180
  * @param pathologyStartDate pathologyStartDate
194
181
  * @param pathologyCode pathologyCode
195
182
  * @param insuranceRef insuranceRef
@@ -208,5 +195,5 @@ export declare class fhcEagreementApi {
208
195
  * @param numberOfSessionForAnnex1 numberOfSessionForAnnex1
209
196
  * @param numberOfSessionForAnnex2 numberOfSessionForAnnex2
210
197
  */
211
- extendAgreementUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpQuality: string, hcpNihii: string, hcpName: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, patientFirstName: string, patientLastName: string, patientGender: string, messageEventSystem: string, messageEventCode: string, pathologyStartDate: number, pathologyCode: string, insuranceRef: string, sctCode: string, sctDisplay?: string, patientSsin?: string, patientIo?: string, patientIoMembership?: string, orgNihii?: string, organizationType?: string, annex1?: string, annex2?: string, agreementStartDate?: number, agreementEndDate?: number, agreementType?: string, numberOfSessionForAnnex1?: number, numberOfSessionForAnnex2?: number): Promise<AgreementResponse>;
198
+ extendAgreementUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpQuality: string, hcpNihii: string, hcpName: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, patientFirstName: string, patientLastName: string, patientGender: string, pathologyStartDate: number, pathologyCode: string, insuranceRef: string, sctCode?: string, sctDisplay?: string, patientSsin?: string, patientIo?: string, patientIoMembership?: string, orgNihii?: string, organizationType?: string, annex1?: string, annex2?: string, agreementStartDate?: number, agreementEndDate?: number, agreementType?: string, numberOfSessionForAnnex1?: number, numberOfSessionForAnnex2?: number): Promise<AgreementResponse>;
212
199
  }
@@ -41,8 +41,6 @@ class fhcEagreementApi {
41
41
  * @param patientFirstName patientFirstName
42
42
  * @param patientLastName patientLastName
43
43
  * @param patientGender patientGender
44
- * @param messageEventSystem messageEventSystem
45
- * @param messageEventCode messageEventCode
46
44
  * @param insuranceRef insuranceRef
47
45
  * @param sctCode sctCode
48
46
  * @param sctDisplay sctDisplay
@@ -57,7 +55,7 @@ class fhcEagreementApi {
57
55
  * @param numberOfSessionForAnnex1 numberOfSessionForAnnex1
58
56
  * @param numberOfSessionForAnnex2 numberOfSessionForAnnex2
59
57
  */
60
- argueAgreementUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpQuality, hcpNihii, hcpName, hcpSsin, hcpFirstName, hcpLastName, patientFirstName, patientLastName, patientGender, messageEventSystem, messageEventCode, insuranceRef, sctCode, sctDisplay, patientSsin, patientIo, patientIoMembership, orgNihii, organizationType, annex1, annex2, agreementType, numberOfSessionForAnnex1, numberOfSessionForAnnex2) {
58
+ argueAgreementUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpQuality, hcpNihii, hcpName, hcpSsin, hcpFirstName, hcpLastName, patientFirstName, patientLastName, patientGender, insuranceRef, sctCode, sctDisplay, patientSsin, patientIo, patientIoMembership, orgNihii, organizationType, annex1, annex2, agreementType, numberOfSessionForAnnex1, numberOfSessionForAnnex2) {
61
59
  let _body = null;
62
60
  const _url = this.host +
63
61
  `/eagreement/argueAgreement` +
@@ -74,12 +72,6 @@ class fhcEagreementApi {
74
72
  : "") +
75
73
  (patientLastName ? "&patientLastName=" + encodeURIComponent(String(patientLastName)) : "") +
76
74
  (patientGender ? "&patientGender=" + encodeURIComponent(String(patientGender)) : "") +
77
- (messageEventSystem
78
- ? "&messageEventSystem=" + encodeURIComponent(String(messageEventSystem))
79
- : "") +
80
- (messageEventCode
81
- ? "&messageEventCode=" + encodeURIComponent(String(messageEventCode))
82
- : "") +
83
75
  (insuranceRef ? "&insuranceRef=" + encodeURIComponent(String(insuranceRef)) : "") +
84
76
  (sctCode ? "&sctCode=" + encodeURIComponent(String(sctCode)) : "") +
85
77
  (sctDisplay ? "&sctDisplay=" + encodeURIComponent(String(sctDisplay)) : "") +
@@ -124,11 +116,8 @@ class fhcEagreementApi {
124
116
  * @param patientFirstName patientFirstName
125
117
  * @param patientLastName patientLastName
126
118
  * @param patientGender patientGender
127
- * @param messageEventSystem messageEventSystem
128
- * @param messageEventCode messageEventCode
129
119
  * @param pathologyStartDate pathologyStartDate
130
120
  * @param pathologyCode pathologyCode
131
- * @param insuranceRef insuranceRef
132
121
  * @param sctCode sctCode
133
122
  * @param sctDisplay sctDisplay
134
123
  * @param patientSsin patientSsin
@@ -144,7 +133,7 @@ class fhcEagreementApi {
144
133
  * @param numberOfSessionForAnnex1 numberOfSessionForAnnex1
145
134
  * @param numberOfSessionForAnnex2 numberOfSessionForAnnex2
146
135
  */
147
- askAgreementUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpQuality, hcpNihii, hcpName, hcpSsin, hcpFirstName, hcpLastName, patientFirstName, patientLastName, patientGender, messageEventSystem, messageEventCode, pathologyStartDate, pathologyCode, insuranceRef, sctCode, sctDisplay, patientSsin, patientIo, patientIoMembership, orgNihii, organizationType, annex1, annex2, agreementStartDate, agreementEndDate, agreementType, numberOfSessionForAnnex1, numberOfSessionForAnnex2) {
136
+ askAgreementUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpQuality, hcpNihii, hcpName, hcpSsin, hcpFirstName, hcpLastName, patientFirstName, patientLastName, patientGender, pathologyStartDate, pathologyCode, sctCode, sctDisplay, patientSsin, patientIo, patientIoMembership, orgNihii, organizationType, annex1, annex2, agreementStartDate, agreementEndDate, agreementType, numberOfSessionForAnnex1, numberOfSessionForAnnex2) {
148
137
  let _body = null;
149
138
  const _url = this.host +
150
139
  `/eagreement/askAgreement` +
@@ -161,17 +150,10 @@ class fhcEagreementApi {
161
150
  : "") +
162
151
  (patientLastName ? "&patientLastName=" + encodeURIComponent(String(patientLastName)) : "") +
163
152
  (patientGender ? "&patientGender=" + encodeURIComponent(String(patientGender)) : "") +
164
- (messageEventSystem
165
- ? "&messageEventSystem=" + encodeURIComponent(String(messageEventSystem))
166
- : "") +
167
- (messageEventCode
168
- ? "&messageEventCode=" + encodeURIComponent(String(messageEventCode))
169
- : "") +
170
153
  (pathologyStartDate
171
154
  ? "&pathologyStartDate=" + encodeURIComponent(String(pathologyStartDate))
172
155
  : "") +
173
156
  (pathologyCode ? "&pathologyCode=" + encodeURIComponent(String(pathologyCode)) : "") +
174
- (insuranceRef ? "&insuranceRef=" + encodeURIComponent(String(insuranceRef)) : "") +
175
157
  (sctCode ? "&sctCode=" + encodeURIComponent(String(sctCode)) : "") +
176
158
  (sctDisplay ? "&sctDisplay=" + encodeURIComponent(String(sctDisplay)) : "") +
177
159
  (patientSsin ? "&patientSsin=" + encodeURIComponent(String(patientSsin)) : "") +
@@ -221,8 +203,6 @@ class fhcEagreementApi {
221
203
  * @param patientFirstName patientFirstName
222
204
  * @param patientLastName patientLastName
223
205
  * @param patientGender patientGender
224
- * @param messageEventSystem messageEventSystem
225
- * @param messageEventCode messageEventCode
226
206
  * @param insuranceRef insuranceRef
227
207
  * @param patientSsin patientSsin
228
208
  * @param patientIo patientIo
@@ -231,7 +211,7 @@ class fhcEagreementApi {
231
211
  * @param organizationType organizationType
232
212
  * @param agreementType agreementType
233
213
  */
234
- cancelAgreementUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpQuality, hcpNihii, hcpName, hcpSsin, hcpFirstName, hcpLastName, patientFirstName, patientLastName, patientGender, messageEventSystem, messageEventCode, insuranceRef, patientSsin, patientIo, patientIoMembership, orgNihii, organizationType, agreementType) {
214
+ cancelAgreementUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpQuality, hcpNihii, hcpName, hcpSsin, hcpFirstName, hcpLastName, patientFirstName, patientLastName, patientGender, insuranceRef, patientSsin, patientIo, patientIoMembership, orgNihii, organizationType, agreementType) {
235
215
  let _body = null;
236
216
  const _url = this.host +
237
217
  `/eagreement/cancelAgreement` +
@@ -248,12 +228,6 @@ class fhcEagreementApi {
248
228
  : "") +
249
229
  (patientLastName ? "&patientLastName=" + encodeURIComponent(String(patientLastName)) : "") +
250
230
  (patientGender ? "&patientGender=" + encodeURIComponent(String(patientGender)) : "") +
251
- (messageEventSystem
252
- ? "&messageEventSystem=" + encodeURIComponent(String(messageEventSystem))
253
- : "") +
254
- (messageEventCode
255
- ? "&messageEventCode=" + encodeURIComponent(String(messageEventCode))
256
- : "") +
257
231
  (insuranceRef ? "&insuranceRef=" + encodeURIComponent(String(insuranceRef)) : "") +
258
232
  (patientSsin ? "&patientSsin=" + encodeURIComponent(String(patientSsin)) : "") +
259
233
  (patientIo ? "&patientIo=" + encodeURIComponent(String(patientIo)) : "") +
@@ -288,8 +262,6 @@ class fhcEagreementApi {
288
262
  * @param patientFirstName patientFirstName
289
263
  * @param patientLastName patientLastName
290
264
  * @param patientGender patientGender
291
- * @param messageEventSystem messageEventSystem
292
- * @param messageEventCode messageEventCode
293
265
  * @param insuranceRef insuranceRef
294
266
  * @param sctCode sctCode
295
267
  * @param sctDisplay sctDisplay
@@ -304,7 +276,7 @@ class fhcEagreementApi {
304
276
  * @param numberOfSessionForAnnex1 numberOfSessionForAnnex1
305
277
  * @param numberOfSessionForAnnex2 numberOfSessionForAnnex2
306
278
  */
307
- completeAgreementUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpQuality, hcpNihii, hcpName, hcpSsin, hcpFirstName, hcpLastName, patientFirstName, patientLastName, patientGender, messageEventSystem, messageEventCode, insuranceRef, sctCode, sctDisplay, patientSsin, patientIo, patientIoMembership, orgNihii, organizationType, annex1, annex2, agreementType, numberOfSessionForAnnex1, numberOfSessionForAnnex2) {
279
+ completeAgreementUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpQuality, hcpNihii, hcpName, hcpSsin, hcpFirstName, hcpLastName, patientFirstName, patientLastName, patientGender, insuranceRef, sctCode, sctDisplay, patientSsin, patientIo, patientIoMembership, orgNihii, organizationType, annex1, annex2, agreementType, numberOfSessionForAnnex1, numberOfSessionForAnnex2) {
308
280
  let _body = null;
309
281
  const _url = this.host +
310
282
  `/eagreement/completeAgreement` +
@@ -321,12 +293,6 @@ class fhcEagreementApi {
321
293
  : "") +
322
294
  (patientLastName ? "&patientLastName=" + encodeURIComponent(String(patientLastName)) : "") +
323
295
  (patientGender ? "&patientGender=" + encodeURIComponent(String(patientGender)) : "") +
324
- (messageEventSystem
325
- ? "&messageEventSystem=" + encodeURIComponent(String(messageEventSystem))
326
- : "") +
327
- (messageEventCode
328
- ? "&messageEventCode=" + encodeURIComponent(String(messageEventCode))
329
- : "") +
330
296
  (insuranceRef ? "&insuranceRef=" + encodeURIComponent(String(insuranceRef)) : "") +
331
297
  (sctCode ? "&sctCode=" + encodeURIComponent(String(sctCode)) : "") +
332
298
  (sctDisplay ? "&sctDisplay=" + encodeURIComponent(String(sctDisplay)) : "") +
@@ -371,10 +337,8 @@ class fhcEagreementApi {
371
337
  * @param patientFirstName patientFirstName
372
338
  * @param patientLastName patientLastName
373
339
  * @param patientGender patientGender
374
- * @param messageEventSystem messageEventSystem
375
- * @param messageEventCode messageEventCode
376
- * @param insuranceRef insuranceRef
377
340
  * @param subTypeCode subTypeCode
341
+ * @param insuranceRef insuranceRef
378
342
  * @param patientSsin patientSsin
379
343
  * @param patientIo patientIo
380
344
  * @param patientIoMembership patientIoMembership
@@ -384,7 +348,7 @@ class fhcEagreementApi {
384
348
  * @param agreementEndDate agreementEndDate
385
349
  * @param agreementType agreementType
386
350
  */
387
- consultListUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpQuality, hcpNihii, hcpName, hcpSsin, hcpFirstName, hcpLastName, patientFirstName, patientLastName, patientGender, messageEventSystem, messageEventCode, insuranceRef, subTypeCode, patientSsin, patientIo, patientIoMembership, orgNihii, organizationType, agreementStartDate, agreementEndDate, agreementType) {
351
+ consultListUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpQuality, hcpNihii, hcpName, hcpSsin, hcpFirstName, hcpLastName, patientFirstName, patientLastName, patientGender, subTypeCode, insuranceRef, patientSsin, patientIo, patientIoMembership, orgNihii, organizationType, agreementStartDate, agreementEndDate, agreementType) {
388
352
  let _body = null;
389
353
  const _url = this.host +
390
354
  `/eagreement/consultList` +
@@ -401,14 +365,8 @@ class fhcEagreementApi {
401
365
  : "") +
402
366
  (patientLastName ? "&patientLastName=" + encodeURIComponent(String(patientLastName)) : "") +
403
367
  (patientGender ? "&patientGender=" + encodeURIComponent(String(patientGender)) : "") +
404
- (messageEventSystem
405
- ? "&messageEventSystem=" + encodeURIComponent(String(messageEventSystem))
406
- : "") +
407
- (messageEventCode
408
- ? "&messageEventCode=" + encodeURIComponent(String(messageEventCode))
409
- : "") +
410
- (insuranceRef ? "&insuranceRef=" + encodeURIComponent(String(insuranceRef)) : "") +
411
368
  (subTypeCode ? "&subTypeCode=" + encodeURIComponent(String(subTypeCode)) : "") +
369
+ (insuranceRef ? "&insuranceRef=" + encodeURIComponent(String(insuranceRef)) : "") +
412
370
  (patientSsin ? "&patientSsin=" + encodeURIComponent(String(patientSsin)) : "") +
413
371
  (patientIo ? "&patientIo=" + encodeURIComponent(String(patientIo)) : "") +
414
372
  (patientIoMembership
@@ -448,8 +406,6 @@ class fhcEagreementApi {
448
406
  * @param patientFirstName patientFirstName
449
407
  * @param patientLastName patientLastName
450
408
  * @param patientGender patientGender
451
- * @param messageEventSystem messageEventSystem
452
- * @param messageEventCode messageEventCode
453
409
  * @param pathologyStartDate pathologyStartDate
454
410
  * @param pathologyCode pathologyCode
455
411
  * @param insuranceRef insuranceRef
@@ -468,7 +424,7 @@ class fhcEagreementApi {
468
424
  * @param numberOfSessionForAnnex1 numberOfSessionForAnnex1
469
425
  * @param numberOfSessionForAnnex2 numberOfSessionForAnnex2
470
426
  */
471
- extendAgreementUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpQuality, hcpNihii, hcpName, hcpSsin, hcpFirstName, hcpLastName, patientFirstName, patientLastName, patientGender, messageEventSystem, messageEventCode, pathologyStartDate, pathologyCode, insuranceRef, sctCode, sctDisplay, patientSsin, patientIo, patientIoMembership, orgNihii, organizationType, annex1, annex2, agreementStartDate, agreementEndDate, agreementType, numberOfSessionForAnnex1, numberOfSessionForAnnex2) {
427
+ extendAgreementUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpQuality, hcpNihii, hcpName, hcpSsin, hcpFirstName, hcpLastName, patientFirstName, patientLastName, patientGender, pathologyStartDate, pathologyCode, insuranceRef, sctCode, sctDisplay, patientSsin, patientIo, patientIoMembership, orgNihii, organizationType, annex1, annex2, agreementStartDate, agreementEndDate, agreementType, numberOfSessionForAnnex1, numberOfSessionForAnnex2) {
472
428
  let _body = null;
473
429
  const _url = this.host +
474
430
  `/eagreement/extendAgreement` +
@@ -485,12 +441,6 @@ class fhcEagreementApi {
485
441
  : "") +
486
442
  (patientLastName ? "&patientLastName=" + encodeURIComponent(String(patientLastName)) : "") +
487
443
  (patientGender ? "&patientGender=" + encodeURIComponent(String(patientGender)) : "") +
488
- (messageEventSystem
489
- ? "&messageEventSystem=" + encodeURIComponent(String(messageEventSystem))
490
- : "") +
491
- (messageEventCode
492
- ? "&messageEventCode=" + encodeURIComponent(String(messageEventCode))
493
- : "") +
494
444
  (pathologyStartDate
495
445
  ? "&pathologyStartDate=" + encodeURIComponent(String(pathologyStartDate))
496
446
  : "") +
@@ -9,7 +9,6 @@
9
9
  * https://github.com/swagger-api/swagger-codegen.git
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { AgreementTransaction } from "./AgreementTransaction";
13
12
  import { CommonOutput } from "./CommonOutput";
14
13
  import { MycarenetConversation } from "./MycarenetConversation";
15
14
  import { MycarenetError } from "./MycarenetError";
@@ -20,6 +19,5 @@ export declare class AgreementResponse {
20
19
  content?: ArrayBuffer;
21
20
  errors?: Array<MycarenetError>;
22
21
  mycarenetConversation?: MycarenetConversation;
23
- transactions?: Array<AgreementTransaction>;
24
22
  warnings?: Array<MycarenetError>;
25
23
  }
@@ -48,7 +48,7 @@ export declare namespace InvoiceItem {
48
48
  SecondPrestationOfDay: DerogationMaxNumberEnum;
49
49
  ThirdAndNextPrestationOfDay: DerogationMaxNumberEnum;
50
50
  };
51
- type PercentNormEnum = "None" | "SurgicalAid1" | "SurgicalAid2" | "ReducedFee" | "Ah1n1" | "HalfPriceSecondAct" | "InvoiceException" | "ForInformation";
51
+ type PercentNormEnum = "None" | "SurgicalAid1" | "SurgicalAid2" | "ReducedFee" | "Ah1n1" | "HalfPriceSecondAct" | "InvoiceException" | "ForInformation" | "PseudoCodeProthesis";
52
52
  const PercentNormEnum: {
53
53
  None: PercentNormEnum;
54
54
  SurgicalAid1: PercentNormEnum;
@@ -58,6 +58,7 @@ export declare namespace InvoiceItem {
58
58
  HalfPriceSecondAct: PercentNormEnum;
59
59
  InvoiceException: PercentNormEnum;
60
60
  ForInformation: PercentNormEnum;
61
+ PseudoCodeProthesis: PercentNormEnum;
61
62
  };
62
63
  type PrescriberNormEnum = "None" | "OnePrescriber" | "SelfPrescriber" | "AddedCode" | "OnePrescriberSubstituted" | "ManyPrescribersSubstituted" | "ManyPrescribers";
63
64
  const PrescriberNormEnum: {
@@ -23,7 +23,8 @@ exports.InvoiceItem = InvoiceItem;
23
23
  Ah1n1: "Ah1n1",
24
24
  HalfPriceSecondAct: "HalfPriceSecondAct",
25
25
  InvoiceException: "InvoiceException",
26
- ForInformation: "ForInformation"
26
+ ForInformation: "ForInformation",
27
+ PseudoCodeProthesis: "PseudoCodeProthesis"
27
28
  };
28
29
  InvoiceItem.PrescriberNormEnum = {
29
30
  None: "None",
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@icure/be-fhc-api",
3
- "version": "0.4.43",
3
+ "version": "0.5.1",
4
4
  "description": "Typescript version of Freehealth Connector standalone API client",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
7
  "dependencies": {
8
- "@icure/api": "^4.0.75",
8
+ "@icure/api": "^8.0.61",
9
9
  "lodash": "^4.17.20"
10
10
  },
11
11
  "author": "Taktik sa",
@@ -51,7 +51,7 @@ class MessageXApi {
51
51
  name: `${msg.subject}_content.json`
52
52
  })
53
53
  .then(doc => this.documentXApi.createDocument(doc))
54
- .then(doc => this.documentXApi.setDocumentAttachment(doc.id, undefined /*TODO provide keys for encryption*/, (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(req)))))
54
+ .then(doc => this.documentXApi.setClearDocumentAttachment(doc, (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(req)))))
55
55
  .then(() => msg);
56
56
  });
57
57
  }
@@ -361,7 +361,7 @@ class MessageXApi {
361
361
  name: `${msg.subject}_content.json`
362
362
  })
363
363
  .then(doc => docXApi.createDocument(doc))
364
- .then(doc => docXApi.setDocumentAttachment(doc.id, undefined /*TODO provide keys for encryption*/, (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(dmgMessage)))))
364
+ .then(doc => docXApi.setClearDocumentAttachment(doc, (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(dmgMessage)))))
365
365
  .then(() => msg);
366
366
  });
367
367
  }
@@ -483,7 +483,7 @@ class MessageXApi {
483
483
  const parentMessage = msgsForHcp[0];
484
484
  return this.receiptXApi.iccApi
485
485
  .createReceipt(new api_1.Receipt({
486
- id: this.crypto.randomUuid(),
486
+ id: this.crypto.primitives.randomUuid(),
487
487
  documentId: parentMessage.id,
488
488
  references: [
489
489
  `mycarenet:efact:inputReference:${ref}`,
@@ -491,7 +491,7 @@ class MessageXApi {
491
491
  efactMessage.tack.reference
492
492
  ]
493
493
  }))
494
- .then((rcpt) => this.receiptXApi.iccApi.setReceiptAttachment(rcpt.id, "tack", "", (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(efactMessage)))))
494
+ .then((rcpt) => this.receiptXApi.iccApi.setReceiptAttachmentForBlobType(rcpt.id, rcpt.rev, "tack", (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(efactMessage)))))
495
495
  .then(() => {
496
496
  parentMessage.status = parentMessage.status | (1 << 8); /*STATUS_SUBMITTED*/
497
497
  // Reset error
@@ -650,9 +650,9 @@ class MessageXApi {
650
650
  this.documentXApi.createDocument(jsonParsedDoc)
651
651
  ]))
652
652
  .then(([doc, jsonDoc, jsonParsedDoc]) => Promise.all([
653
- this.documentXApi.setDocumentAttachment(doc.id, undefined /*TODO provide keys for encryption*/, (0, api_1.ua2ab)((0, api_1.string2ua)(efactMessage.detail))),
654
- this.documentXApi.setDocumentAttachment(jsonDoc.id, undefined /*TODO provide keys for encryption*/, (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(efactMessage)))),
655
- this.documentXApi.setDocumentAttachment(jsonParsedDoc.id, undefined /*TODO provide keys for encryption*/, (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(parsedRecords))))
653
+ this.documentXApi.setClearDocumentAttachment(doc, (0, api_1.ua2ab)((0, api_1.string2ua)(efactMessage.detail))),
654
+ this.documentXApi.setClearDocumentAttachment(jsonDoc, (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(efactMessage)))),
655
+ this.documentXApi.setClearDocumentAttachment(jsonParsedDoc, (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(parsedRecords))))
656
656
  ]))
657
657
  .then(() => ["920999", "920099", "920900"].includes(messageType)
658
658
  ? this.invoiceXApi.getInvoices(new api_1.ListOfIds({ ids: parentMessage.invoiceIds }))
@@ -699,7 +699,7 @@ class MessageXApi {
699
699
  ic.paid = zone114amount ? Number((zone114amount / 100).toFixed(2)) : 0;
700
700
  newInvoicePromise = (newInvoicePromise ||
701
701
  this.patientXApi
702
- .getPatientIdOfChildDocumentForHcpAndHcpParents(iv, user.healthcarePartyId)
702
+ .getPatientIdOfChildDocumentForHcpAndHcpParents(iv, user.healthcarePartyId, api_1.EntityWithDelegationTypeName.Invoice)
703
703
  .then(patientId => this.patientXApi.getPatientWithUser(user, patientId))
704
704
  .then(pat => this.invoiceXApi.newInstance(user, pat, _.omit(iv, [
705
705
  "id",
@@ -724,7 +724,7 @@ class MessageXApi {
724
724
  return niv;
725
725
  })).then(niv => {
726
726
  niv.invoicingCodes = (niv.invoicingCodes || []).concat(_.assign({}, ic, {
727
- id: this.crypto.randomUuid(),
727
+ id: this.crypto.primitives.randomUuid(),
728
728
  accepted: false,
729
729
  canceled: false,
730
730
  pending: true,
@@ -797,7 +797,7 @@ class MessageXApi {
797
797
  });
798
798
  }
799
799
  sendBatch(user, hcp, invoices, xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, efactApi, fhcServer = undefined, prefixer, isConnectedAsPmg = false, medicalLocationId = null, speciality = "doctor", professionCode = "10") {
800
- const uuid = this.crypto.randomUuid();
800
+ const uuid = this.crypto.primitives.randomUuid();
801
801
  const smallBase36 = (0, efact_util_1.uuidBase36Half)(uuid);
802
802
  const fullBase36 = (0, efact_util_1.uuidBase36)(uuid);
803
803
  const sentDate = +new Date();
@@ -917,8 +917,8 @@ class MessageXApi {
917
917
  this.documentXApi.createDocument(doc)
918
918
  ]))
919
919
  .then(([jsonDoc, doc]) => Promise.all([
920
- this.documentXApi.setDocumentAttachment(jsonDoc.id, undefined /*TODO provide keys for encryption*/, (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(res.records)))),
921
- this.documentXApi.setDocumentAttachment(doc.id, undefined /*TODO provide keys for encryption*/, (0, api_1.ua2ab)((0, api_1.string2ua)(res.detail)))
920
+ this.documentXApi.setClearDocumentAttachment(jsonDoc, (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(res.records)))),
921
+ this.documentXApi.setClearDocumentAttachment(doc, (0, api_1.ua2ab)((0, api_1.string2ua)(res.detail)))
922
922
  ]))
923
923
  .then(() => this.receiptXApi.iccApi.logReceipt(user, msg.id, [
924
924
  `mycarenet:efact:inputReference:${res.inputReference}`,
@@ -33,8 +33,11 @@ class ReceiptXApi {
33
33
  if (!rcpt.id) {
34
34
  throw new Error(`Receipt has no id: ${rcpt}`);
35
35
  }
36
+ else if (!rcpt.rev) {
37
+ throw new Error(`Receipt has no rev: ${rcpt}`);
38
+ }
36
39
  else {
37
- return this.iccApi.setReceiptAttachment(rcpt.id, "soapConversation", undefined, (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(object.mycarenetConversation))));
40
+ return this.iccApi.setReceiptAttachmentForBlobType(rcpt.id, rcpt.rev, "soapConversation", (0, api_1.ua2ab)((0, api_1.string2ua)(JSON.stringify(object.mycarenetConversation))));
38
41
  }
39
42
  });
40
43
  }