@icure/be-fhc-api 0.5.15 → 0.5.17

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.
@@ -30,6 +30,9 @@ export declare class fhcEagreementApi {
30
30
  * @param hcpSsin hcpSsin
31
31
  * @param hcpFirstName hcpFirstName
32
32
  * @param hcpLastName hcpLastName
33
+ * @param prescriberNihii prescriberNihii
34
+ * @param prescriberFirstName prescriberFirstName
35
+ * @param prescriberLastName prescriberLastName
33
36
  * @param patientFirstName patientFirstName
34
37
  * @param patientLastName patientLastName
35
38
  * @param patientGender patientGender
@@ -41,13 +44,15 @@ export declare class fhcEagreementApi {
41
44
  * @param patientIoMembership patientIoMembership
42
45
  * @param orgNihii orgNihii
43
46
  * @param organizationType organizationType
44
- * @param annex1 annex1
45
- * @param annex2 annex2
46
47
  * @param agreementType agreementType
47
- * @param numberOfSessionForAnnex1 numberOfSessionForAnnex1
48
- * @param numberOfSessionForAnnex2 numberOfSessionForAnnex2
48
+ * @param numberOfSessionForPrescription1 numberOfSessionForPrescription1
49
+ * @param numberOfSessionForPrescription2 numberOfSessionForPrescription2
50
+ * @param attachments attachments
49
51
  */
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>;
52
+ argueAgreementUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpQuality: string, hcpNihii: string, hcpName: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, prescriberNihii: string, prescriberFirstName: string, prescriberLastName: string, patientFirstName: string, patientLastName: string, patientGender: string, insuranceRef: string, sctCode?: string, sctDisplay?: string, patientSsin?: string, patientIo?: string, patientIoMembership?: string, orgNihii?: string, organizationType?: string, agreementType?: string, numberOfSessionForPrescription1?: number, numberOfSessionForPrescription2?: number, attachments?: {
53
+ type: string;
54
+ data: string;
55
+ }[]): Promise<AgreementResponse>;
51
56
  /**
52
57
  *
53
58
  * @summary askAgreement
@@ -56,10 +61,12 @@ export declare class fhcEagreementApi {
56
61
  * @param xFHCPassPhrase X-FHC-passPhrase
57
62
  * @param hcpQuality hcpQuality
58
63
  * @param hcpNihii hcpNihii
59
- * @param hcpName hcpName
60
64
  * @param hcpSsin hcpSsin
61
65
  * @param hcpFirstName hcpFirstName
62
66
  * @param hcpLastName hcpLastName
67
+ * @param prescriberNihii prescriberNihii
68
+ * @param prescriberFirstName prescriberFirstName
69
+ * @param prescriberLastName prescriberLastName
63
70
  * @param patientFirstName patientFirstName
64
71
  * @param patientLastName patientLastName
65
72
  * @param patientGender patientGender
@@ -72,15 +79,17 @@ export declare class fhcEagreementApi {
72
79
  * @param patientIoMembership patientIoMembership
73
80
  * @param orgNihii orgNihii
74
81
  * @param organizationType organizationType
75
- * @param annex1 annex1
76
- * @param annex2 annex2
77
82
  * @param agreementStartDate agreementStartDate
78
83
  * @param agreementEndDate agreementEndDate
79
84
  * @param agreementType agreementType
80
- * @param numberOfSessionForAnnex1 numberOfSessionForAnnex1
81
- * @param numberOfSessionForAnnex2 numberOfSessionForAnnex2
85
+ * @param numberOfSessionForPrescription1 numberOfSessionForPrescription1
86
+ * @param numberOfSessionForPrescription2 numberOfSessionForPrescription2
87
+ * @param attachments attachments
82
88
  */
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
+ askAgreementUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpQuality: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, prescriberNihii: string, prescriberFirstName: string, prescriberLastName: 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, agreementStartDate?: number, agreementEndDate?: number, agreementType?: string, numberOfSessionForPrescription1?: number, numberOfSessionForPrescription2?: number, attachments?: {
90
+ type: string;
91
+ data: string;
92
+ }[]): Promise<AgreementResponse>;
84
93
  /**
85
94
  *
86
95
  * @summary cancelAgreement
@@ -117,6 +126,9 @@ export declare class fhcEagreementApi {
117
126
  * @param hcpSsin hcpSsin
118
127
  * @param hcpFirstName hcpFirstName
119
128
  * @param hcpLastName hcpLastName
129
+ * @param prescriberNihii prescriberNihii
130
+ * @param prescriberFirstName prescriberFirstName
131
+ * @param prescriberLastName prescriberLastName
120
132
  * @param patientFirstName patientFirstName
121
133
  * @param patientLastName patientLastName
122
134
  * @param patientGender patientGender
@@ -128,13 +140,15 @@ export declare class fhcEagreementApi {
128
140
  * @param patientIoMembership patientIoMembership
129
141
  * @param orgNihii orgNihii
130
142
  * @param organizationType organizationType
131
- * @param annex1 annex1
132
- * @param annex2 annex2
133
143
  * @param agreementType agreementType
134
- * @param numberOfSessionForAnnex1 numberOfSessionForAnnex1
135
- * @param numberOfSessionForAnnex2 numberOfSessionForAnnex2
144
+ * @param numberOfSessionForPrescription1 numberOfSessionForPrescription1
145
+ * @param numberOfSessionForPrescription2 numberOfSessionForPrescription2
146
+ * @param attachments attachments
136
147
  */
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>;
148
+ completeAgreementUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpQuality: string, hcpNihii: string, hcpName: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, prescriberNihii: string, prescriberFirstName: string, prescriberLastName: string, patientFirstName: string, patientLastName: string, patientGender: string, insuranceRef: string, sctCode?: string, sctDisplay?: string, patientSsin?: string, patientIo?: string, patientIoMembership?: string, orgNihii?: string, organizationType?: string, agreementType?: string, numberOfSessionForPrescription1?: number, numberOfSessionForPrescription2?: number, attachments?: {
149
+ type: string;
150
+ data: string;
151
+ }[]): Promise<AgreementResponse>;
138
152
  /**
139
153
  *
140
154
  * @summary consultList
@@ -164,16 +178,18 @@ export declare class fhcEagreementApi {
164
178
  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>;
165
179
  /**
166
180
  *
167
- * @summary extendAgreement
181
+ * @summary extendAgreementUsingPOST
168
182
  * @param xFHCKeystoreId X-FHC-keystoreId
169
183
  * @param xFHCTokenId X-FHC-tokenId
170
184
  * @param xFHCPassPhrase X-FHC-passPhrase
171
185
  * @param hcpQuality hcpQuality
172
186
  * @param hcpNihii hcpNihii
173
- * @param hcpName hcpName
174
187
  * @param hcpSsin hcpSsin
175
188
  * @param hcpFirstName hcpFirstName
176
189
  * @param hcpLastName hcpLastName
190
+ * @param prescriberNihii prescriberNihii
191
+ * @param prescriberFirstName prescriberFirstName
192
+ * @param prescriberLastName prescriberLastName
177
193
  * @param patientFirstName patientFirstName
178
194
  * @param patientLastName patientLastName
179
195
  * @param patientGender patientGender
@@ -187,13 +203,15 @@ export declare class fhcEagreementApi {
187
203
  * @param patientIoMembership patientIoMembership
188
204
  * @param orgNihii orgNihii
189
205
  * @param organizationType organizationType
190
- * @param annex1 annex1
191
- * @param annex2 annex2
192
206
  * @param agreementStartDate agreementStartDate
193
207
  * @param agreementEndDate agreementEndDate
194
208
  * @param agreementType agreementType
195
- * @param numberOfSessionForAnnex1 numberOfSessionForAnnex1
196
- * @param numberOfSessionForAnnex2 numberOfSessionForAnnex2
209
+ * @param numberOfSessionForPrescription1 numberOfSessionForPrescription1
210
+ * @param numberOfSessionForPrescription2 numberOfSessionForPrescription2
211
+ * @param attachments attachments
197
212
  */
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>;
213
+ extendAgreementUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpQuality: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, prescriberNihii: string, prescriberFirstName: string, prescriberLastName: 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, agreementStartDate?: number, agreementEndDate?: number, agreementType?: string, numberOfSessionForPrescription1?: number, numberOfSessionForPrescription2?: number, attachments?: {
214
+ type: string;
215
+ data: string;
216
+ }[]): Promise<AgreementResponse>;
199
217
  }
@@ -38,6 +38,9 @@ class fhcEagreementApi {
38
38
  * @param hcpSsin hcpSsin
39
39
  * @param hcpFirstName hcpFirstName
40
40
  * @param hcpLastName hcpLastName
41
+ * @param prescriberNihii prescriberNihii
42
+ * @param prescriberFirstName prescriberFirstName
43
+ * @param prescriberLastName prescriberLastName
41
44
  * @param patientFirstName patientFirstName
42
45
  * @param patientLastName patientLastName
43
46
  * @param patientGender patientGender
@@ -49,14 +52,14 @@ class fhcEagreementApi {
49
52
  * @param patientIoMembership patientIoMembership
50
53
  * @param orgNihii orgNihii
51
54
  * @param organizationType organizationType
52
- * @param annex1 annex1
53
- * @param annex2 annex2
54
55
  * @param agreementType agreementType
55
- * @param numberOfSessionForAnnex1 numberOfSessionForAnnex1
56
- * @param numberOfSessionForAnnex2 numberOfSessionForAnnex2
56
+ * @param numberOfSessionForPrescription1 numberOfSessionForPrescription1
57
+ * @param numberOfSessionForPrescription2 numberOfSessionForPrescription2
58
+ * @param attachments attachments
57
59
  */
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) {
60
+ argueAgreementUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpQuality, hcpNihii, hcpName, hcpSsin, hcpFirstName, hcpLastName, prescriberNihii, prescriberFirstName, prescriberLastName, patientFirstName, patientLastName, patientGender, insuranceRef, sctCode, sctDisplay, patientSsin, patientIo, patientIoMembership, orgNihii, organizationType, agreementType, numberOfSessionForPrescription1, numberOfSessionForPrescription2, attachments) {
59
61
  let _body = null;
62
+ _body = attachments;
60
63
  const _url = this.host +
61
64
  `/eagreement/argueAgreement` +
62
65
  "?ts=" +
@@ -64,6 +67,13 @@ class fhcEagreementApi {
64
67
  (hcpQuality ? "&hcpQuality=" + encodeURIComponent(String(hcpQuality)) : "") +
65
68
  (hcpNihii ? "&hcpNihii=" + encodeURIComponent(String(hcpNihii)) : "") +
66
69
  (hcpName ? "&hcpName=" + encodeURIComponent(String(hcpName)) : "") +
70
+ (prescriberNihii ? "&prescriberNihii=" + encodeURIComponent(String(prescriberNihii)) : "") +
71
+ (prescriberFirstName
72
+ ? "&prescriberFirstName=" + encodeURIComponent(String(prescriberFirstName))
73
+ : "") +
74
+ (prescriberLastName
75
+ ? "&prescriberLastName=" + encodeURIComponent(String(prescriberLastName))
76
+ : "") +
67
77
  (hcpSsin ? "&hcpSsin=" + encodeURIComponent(String(hcpSsin)) : "") +
68
78
  (hcpFirstName ? "&hcpFirstName=" + encodeURIComponent(String(hcpFirstName)) : "") +
69
79
  (hcpLastName ? "&hcpLastName=" + encodeURIComponent(String(hcpLastName)) : "") +
@@ -84,16 +94,17 @@ class fhcEagreementApi {
84
94
  (organizationType
85
95
  ? "&organizationType=" + encodeURIComponent(String(organizationType))
86
96
  : "") +
87
- (annex1 ? "&annex1=" + encodeURIComponent(String(annex1)) : "") +
88
- (annex2 ? "&annex2=" + encodeURIComponent(String(annex2)) : "") +
89
97
  (agreementType ? "&agreementType=" + encodeURIComponent(String(agreementType)) : "") +
90
- (numberOfSessionForAnnex1
91
- ? "&numberOfSessionForAnnex1=" + encodeURIComponent(String(numberOfSessionForAnnex1))
98
+ (numberOfSessionForPrescription1
99
+ ? "&numberOfSessionForPrescription1=" + encodeURIComponent(String(numberOfSessionForPrescription1))
92
100
  : "") +
93
- (numberOfSessionForAnnex2
94
- ? "&numberOfSessionForAnnex2=" + encodeURIComponent(String(numberOfSessionForAnnex2))
101
+ (numberOfSessionForPrescription2
102
+ ? "&numberOfSessionForPrescription2=" + encodeURIComponent(String(numberOfSessionForPrescription2))
95
103
  : "");
96
104
  let headers = this.headers;
105
+ headers = headers
106
+ .filter(h => h.header !== "Content-Type")
107
+ .concat(new XHR_1.XHR.Header("Content-Type", "application/json"));
97
108
  xFHCKeystoreId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)));
98
109
  xFHCTokenId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId)));
99
110
  xFHCPassPhrase && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)));
@@ -109,10 +120,12 @@ class fhcEagreementApi {
109
120
  * @param xFHCPassPhrase X-FHC-passPhrase
110
121
  * @param hcpQuality hcpQuality
111
122
  * @param hcpNihii hcpNihii
112
- * @param hcpName hcpName
113
123
  * @param hcpSsin hcpSsin
114
124
  * @param hcpFirstName hcpFirstName
115
125
  * @param hcpLastName hcpLastName
126
+ * @param prescriberNihii prescriberNihii
127
+ * @param prescriberFirstName prescriberFirstName
128
+ * @param prescriberLastName prescriberLastName
116
129
  * @param patientFirstName patientFirstName
117
130
  * @param patientLastName patientLastName
118
131
  * @param patientGender patientGender
@@ -125,26 +138,32 @@ class fhcEagreementApi {
125
138
  * @param patientIoMembership patientIoMembership
126
139
  * @param orgNihii orgNihii
127
140
  * @param organizationType organizationType
128
- * @param annex1 annex1
129
- * @param annex2 annex2
130
141
  * @param agreementStartDate agreementStartDate
131
142
  * @param agreementEndDate agreementEndDate
132
143
  * @param agreementType agreementType
133
- * @param numberOfSessionForAnnex1 numberOfSessionForAnnex1
134
- * @param numberOfSessionForAnnex2 numberOfSessionForAnnex2
144
+ * @param numberOfSessionForPrescription1 numberOfSessionForPrescription1
145
+ * @param numberOfSessionForPrescription2 numberOfSessionForPrescription2
146
+ * @param attachments attachments
135
147
  */
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
+ askAgreementUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpQuality, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, prescriberNihii, prescriberFirstName, prescriberLastName, patientFirstName, patientLastName, patientGender, pathologyStartDate, pathologyCode, sctCode, sctDisplay, patientSsin, patientIo, patientIoMembership, orgNihii, organizationType, agreementStartDate, agreementEndDate, agreementType, numberOfSessionForPrescription1, numberOfSessionForPrescription2, attachments) {
137
149
  let _body = null;
150
+ _body = attachments;
138
151
  const _url = this.host +
139
152
  `/eagreement/askAgreement` +
140
153
  "?ts=" +
141
154
  new Date().getTime() +
142
155
  (hcpQuality ? "&hcpQuality=" + encodeURIComponent(String(hcpQuality)) : "") +
143
156
  (hcpNihii ? "&hcpNihii=" + encodeURIComponent(String(hcpNihii)) : "") +
144
- (hcpName ? "&hcpName=" + encodeURIComponent(String(hcpName)) : "") +
145
157
  (hcpSsin ? "&hcpSsin=" + encodeURIComponent(String(hcpSsin)) : "") +
146
158
  (hcpFirstName ? "&hcpFirstName=" + encodeURIComponent(String(hcpFirstName)) : "") +
147
159
  (hcpLastName ? "&hcpLastName=" + encodeURIComponent(String(hcpLastName)) : "") +
160
+ (prescriberNihii ? "&prescriberNihii=" + encodeURIComponent(String(prescriberNihii)) : "") +
161
+ (prescriberFirstName
162
+ ? "&prescriberFirstName=" + encodeURIComponent(String(prescriberFirstName))
163
+ : "") +
164
+ (prescriberLastName
165
+ ? "&prescriberLastName=" + encodeURIComponent(String(prescriberLastName))
166
+ : "") +
148
167
  (patientFirstName
149
168
  ? "&patientFirstName=" + encodeURIComponent(String(patientFirstName))
150
169
  : "") +
@@ -165,8 +184,6 @@ class fhcEagreementApi {
165
184
  (organizationType
166
185
  ? "&organizationType=" + encodeURIComponent(String(organizationType))
167
186
  : "") +
168
- (annex1 ? "&annex1=" + encodeURIComponent(String(annex1)) : "") +
169
- (annex2 ? "&annex2=" + encodeURIComponent(String(annex2)) : "") +
170
187
  (agreementStartDate
171
188
  ? "&agreementStartDate=" + encodeURIComponent(String(agreementStartDate))
172
189
  : "") +
@@ -174,13 +191,16 @@ class fhcEagreementApi {
174
191
  ? "&agreementEndDate=" + encodeURIComponent(String(agreementEndDate))
175
192
  : "") +
176
193
  (agreementType ? "&agreementType=" + encodeURIComponent(String(agreementType)) : "") +
177
- (numberOfSessionForAnnex1
178
- ? "&numberOfSessionForAnnex1=" + encodeURIComponent(String(numberOfSessionForAnnex1))
194
+ (numberOfSessionForPrescription1
195
+ ? "&numberOfSessionForPrescription1=" + encodeURIComponent(String(numberOfSessionForPrescription1))
179
196
  : "") +
180
- (numberOfSessionForAnnex2
181
- ? "&numberOfSessionForAnnex2=" + encodeURIComponent(String(numberOfSessionForAnnex2))
197
+ (numberOfSessionForPrescription2
198
+ ? "&numberOfSessionForPrescription2=" + encodeURIComponent(String(numberOfSessionForPrescription2))
182
199
  : "");
183
200
  let headers = this.headers;
201
+ headers = headers
202
+ .filter(h => h.header !== "Content-Type")
203
+ .concat(new XHR_1.XHR.Header("Content-Type", "application/json"));
184
204
  xFHCKeystoreId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)));
185
205
  xFHCTokenId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId)));
186
206
  xFHCPassPhrase && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)));
@@ -259,6 +279,9 @@ class fhcEagreementApi {
259
279
  * @param hcpSsin hcpSsin
260
280
  * @param hcpFirstName hcpFirstName
261
281
  * @param hcpLastName hcpLastName
282
+ * @param prescriberNihii prescriberNihii
283
+ * @param prescriberFirstName prescriberFirstName
284
+ * @param prescriberLastName prescriberLastName
262
285
  * @param patientFirstName patientFirstName
263
286
  * @param patientLastName patientLastName
264
287
  * @param patientGender patientGender
@@ -270,14 +293,14 @@ class fhcEagreementApi {
270
293
  * @param patientIoMembership patientIoMembership
271
294
  * @param orgNihii orgNihii
272
295
  * @param organizationType organizationType
273
- * @param annex1 annex1
274
- * @param annex2 annex2
275
296
  * @param agreementType agreementType
276
- * @param numberOfSessionForAnnex1 numberOfSessionForAnnex1
277
- * @param numberOfSessionForAnnex2 numberOfSessionForAnnex2
297
+ * @param numberOfSessionForPrescription1 numberOfSessionForPrescription1
298
+ * @param numberOfSessionForPrescription2 numberOfSessionForPrescription2
299
+ * @param attachments attachments
278
300
  */
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) {
301
+ completeAgreementUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpQuality, hcpNihii, hcpName, hcpSsin, hcpFirstName, hcpLastName, prescriberNihii, prescriberFirstName, prescriberLastName, patientFirstName, patientLastName, patientGender, insuranceRef, sctCode, sctDisplay, patientSsin, patientIo, patientIoMembership, orgNihii, organizationType, agreementType, numberOfSessionForPrescription1, numberOfSessionForPrescription2, attachments) {
280
302
  let _body = null;
303
+ _body = attachments;
281
304
  const _url = this.host +
282
305
  `/eagreement/completeAgreement` +
283
306
  "?ts=" +
@@ -288,6 +311,13 @@ class fhcEagreementApi {
288
311
  (hcpSsin ? "&hcpSsin=" + encodeURIComponent(String(hcpSsin)) : "") +
289
312
  (hcpFirstName ? "&hcpFirstName=" + encodeURIComponent(String(hcpFirstName)) : "") +
290
313
  (hcpLastName ? "&hcpLastName=" + encodeURIComponent(String(hcpLastName)) : "") +
314
+ (prescriberNihii ? "&prescriberNihii=" + encodeURIComponent(String(prescriberNihii)) : "") +
315
+ (prescriberFirstName
316
+ ? "&prescriberFirstName=" + encodeURIComponent(String(prescriberFirstName))
317
+ : "") +
318
+ (prescriberLastName
319
+ ? "&prescriberLastName=" + encodeURIComponent(String(prescriberLastName))
320
+ : "") +
291
321
  (patientFirstName
292
322
  ? "&patientFirstName=" + encodeURIComponent(String(patientFirstName))
293
323
  : "") +
@@ -305,16 +335,17 @@ class fhcEagreementApi {
305
335
  (organizationType
306
336
  ? "&organizationType=" + encodeURIComponent(String(organizationType))
307
337
  : "") +
308
- (annex1 ? "&annex1=" + encodeURIComponent(String(annex1)) : "") +
309
- (annex2 ? "&annex2=" + encodeURIComponent(String(annex2)) : "") +
310
338
  (agreementType ? "&agreementType=" + encodeURIComponent(String(agreementType)) : "") +
311
- (numberOfSessionForAnnex1
312
- ? "&numberOfSessionForAnnex1=" + encodeURIComponent(String(numberOfSessionForAnnex1))
339
+ (numberOfSessionForPrescription1
340
+ ? "&numberOfSessionForPrescription1=" + encodeURIComponent(String(numberOfSessionForPrescription1))
313
341
  : "") +
314
- (numberOfSessionForAnnex2
315
- ? "&numberOfSessionForAnnex2=" + encodeURIComponent(String(numberOfSessionForAnnex2))
342
+ (numberOfSessionForPrescription2
343
+ ? "&numberOfSessionForPrescription2=" + encodeURIComponent(String(numberOfSessionForPrescription2))
316
344
  : "");
317
345
  let headers = this.headers;
346
+ headers = headers
347
+ .filter(h => h.header !== "Content-Type")
348
+ .concat(new XHR_1.XHR.Header("Content-Type", "application/json"));
318
349
  xFHCKeystoreId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)));
319
350
  xFHCTokenId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId)));
320
351
  xFHCPassPhrase && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)));
@@ -393,16 +424,18 @@ class fhcEagreementApi {
393
424
  }
394
425
  /**
395
426
  *
396
- * @summary extendAgreement
427
+ * @summary extendAgreementUsingPOST
397
428
  * @param xFHCKeystoreId X-FHC-keystoreId
398
429
  * @param xFHCTokenId X-FHC-tokenId
399
430
  * @param xFHCPassPhrase X-FHC-passPhrase
400
431
  * @param hcpQuality hcpQuality
401
432
  * @param hcpNihii hcpNihii
402
- * @param hcpName hcpName
403
433
  * @param hcpSsin hcpSsin
404
434
  * @param hcpFirstName hcpFirstName
405
435
  * @param hcpLastName hcpLastName
436
+ * @param prescriberNihii prescriberNihii
437
+ * @param prescriberFirstName prescriberFirstName
438
+ * @param prescriberLastName prescriberLastName
406
439
  * @param patientFirstName patientFirstName
407
440
  * @param patientLastName patientLastName
408
441
  * @param patientGender patientGender
@@ -416,26 +449,32 @@ class fhcEagreementApi {
416
449
  * @param patientIoMembership patientIoMembership
417
450
  * @param orgNihii orgNihii
418
451
  * @param organizationType organizationType
419
- * @param annex1 annex1
420
- * @param annex2 annex2
421
452
  * @param agreementStartDate agreementStartDate
422
453
  * @param agreementEndDate agreementEndDate
423
454
  * @param agreementType agreementType
424
- * @param numberOfSessionForAnnex1 numberOfSessionForAnnex1
425
- * @param numberOfSessionForAnnex2 numberOfSessionForAnnex2
455
+ * @param numberOfSessionForPrescription1 numberOfSessionForPrescription1
456
+ * @param numberOfSessionForPrescription2 numberOfSessionForPrescription2
457
+ * @param attachments attachments
426
458
  */
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) {
459
+ extendAgreementUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpQuality, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, prescriberNihii, prescriberFirstName, prescriberLastName, patientFirstName, patientLastName, patientGender, pathologyStartDate, pathologyCode, insuranceRef, sctCode, sctDisplay, patientSsin, patientIo, patientIoMembership, orgNihii, organizationType, agreementStartDate, agreementEndDate, agreementType, numberOfSessionForPrescription1, numberOfSessionForPrescription2, attachments) {
428
460
  let _body = null;
461
+ _body = attachments;
429
462
  const _url = this.host +
430
463
  `/eagreement/extendAgreement` +
431
464
  "?ts=" +
432
465
  new Date().getTime() +
433
466
  (hcpQuality ? "&hcpQuality=" + encodeURIComponent(String(hcpQuality)) : "") +
434
467
  (hcpNihii ? "&hcpNihii=" + encodeURIComponent(String(hcpNihii)) : "") +
435
- (hcpName ? "&hcpName=" + encodeURIComponent(String(hcpName)) : "") +
436
468
  (hcpSsin ? "&hcpSsin=" + encodeURIComponent(String(hcpSsin)) : "") +
437
469
  (hcpFirstName ? "&hcpFirstName=" + encodeURIComponent(String(hcpFirstName)) : "") +
438
470
  (hcpLastName ? "&hcpLastName=" + encodeURIComponent(String(hcpLastName)) : "") +
471
+ (prescriberNihii ? "&prescriberNihii=" + encodeURIComponent(String(prescriberNihii)) : "") +
472
+ (prescriberFirstName
473
+ ? "&prescriberFirstName=" + encodeURIComponent(String(prescriberFirstName))
474
+ : "") +
475
+ (prescriberLastName
476
+ ? "&prescriberLastName=" + encodeURIComponent(String(prescriberLastName))
477
+ : "") +
439
478
  (patientFirstName
440
479
  ? "&patientFirstName=" + encodeURIComponent(String(patientFirstName))
441
480
  : "") +
@@ -457,8 +496,6 @@ class fhcEagreementApi {
457
496
  (organizationType
458
497
  ? "&organizationType=" + encodeURIComponent(String(organizationType))
459
498
  : "") +
460
- (annex1 ? "&annex1=" + encodeURIComponent(String(annex1)) : "") +
461
- (annex2 ? "&annex2=" + encodeURIComponent(String(annex2)) : "") +
462
499
  (agreementStartDate
463
500
  ? "&agreementStartDate=" + encodeURIComponent(String(agreementStartDate))
464
501
  : "") +
@@ -466,13 +503,16 @@ class fhcEagreementApi {
466
503
  ? "&agreementEndDate=" + encodeURIComponent(String(agreementEndDate))
467
504
  : "") +
468
505
  (agreementType ? "&agreementType=" + encodeURIComponent(String(agreementType)) : "") +
469
- (numberOfSessionForAnnex1
470
- ? "&numberOfSessionForAnnex1=" + encodeURIComponent(String(numberOfSessionForAnnex1))
506
+ (numberOfSessionForPrescription1
507
+ ? "&numberOfSessionForPrescription1=" + encodeURIComponent(String(numberOfSessionForPrescription1))
471
508
  : "") +
472
- (numberOfSessionForAnnex2
473
- ? "&numberOfSessionForAnnex2=" + encodeURIComponent(String(numberOfSessionForAnnex2))
509
+ (numberOfSessionForPrescription2
510
+ ? "&numberOfSessionForPrescription2=" + encodeURIComponent(String(numberOfSessionForPrescription2))
474
511
  : "");
475
512
  let headers = this.headers;
513
+ headers = headers
514
+ .filter(h => h.header !== "Content-Type")
515
+ .concat(new XHR_1.XHR.Header("Content-Type", "application/json"));
476
516
  xFHCKeystoreId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)));
477
517
  xFHCTokenId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId)));
478
518
  xFHCPassPhrase && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)));
@@ -15,11 +15,12 @@ import { MycarenetConversation } from "./MycarenetConversation";
15
15
  import { MycarenetError } from "./MycarenetError";
16
16
  export declare class AgreementResponse {
17
17
  constructor(json: JSON | any);
18
- acknowledged?: boolean;
18
+ isAcknowledged?: boolean;
19
19
  commonOutput?: CommonOutput;
20
20
  content?: ArrayBuffer;
21
21
  errors?: Array<MycarenetError>;
22
22
  mycarenetConversation?: MycarenetConversation;
23
23
  transactions?: Array<AgreementTransaction>;
24
24
  warnings?: Array<MycarenetError>;
25
+ xades?: ArrayBuffer;
25
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icure/be-fhc-api",
3
- "version": "0.5.15",
3
+ "version": "0.5.17",
4
4
  "description": "Typescript version of Freehealth Connector standalone API client",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",