@icure/be-fhc-api 0.4.26 → 0.4.28

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.
@@ -112,6 +112,19 @@ export declare class fhcRecipeApi {
112
112
  * @param hcpName hcpName
113
113
  */
114
114
  listOpenPrescriptionsByPatientUsingGET(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpNihii: string, patientId: string, hcpQuality?: string, hcpSsin?: string, hcpName?: string): Promise<Array<Prescription>>;
115
+ /**
116
+ *
117
+ * @summary listPrescriptionsByPatient
118
+ * @param xFHCKeystoreId X-FHC-keystoreId
119
+ * @param xFHCTokenId X-FHC-tokenId
120
+ * @param xFHCPassPhrase X-FHC-passPhrase
121
+ * @param hcpNihii hcpNihii
122
+ * @param patientId patientId
123
+ * @param hcpQuality hcpQuality
124
+ * @param hcpSsin hcpSsin
125
+ * @param hcpName hcpName
126
+ */
127
+ listPrescriptionsByPatientUsingGET(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpNihii: string, patientId: string, prescriberId?: string, from?: number, toInclusive?: number, statuses?: string, expiringFrom?: number, expiringToInclusive?: number, pageYear?: number, pageMonth?: number, pageNumber?: number, hcpQuality?: string, hcpSsin?: string, hcpName?: string): Promise<Array<Prescription>>;
115
128
  /**
116
129
  *
117
130
  * @summary revokePrescription
@@ -150,8 +163,9 @@ export declare class fhcRecipeApi {
150
163
  * @param xFHCPassPhrase X-FHC-passPhrase
151
164
  * @param rid rid
152
165
  * @param vision vision
166
+ * @param visionOthers visionOthers
153
167
  */
154
- setVisionUsingPUT(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, rid: string, vision: string): Promise<PutVisionResult>;
168
+ setVisionUsingPUT(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, rid: string, vision: string, visionOthers?: string): Promise<PutVisionResult>;
155
169
  /**
156
170
  *
157
171
  * @summary updateFeedbackFlag
@@ -241,6 +241,48 @@ class fhcRecipeApi {
241
241
  .then(doc => doc.body.map(it => new Prescription_1.Prescription(it)))
242
242
  .catch(err => this.handleError(err));
243
243
  }
244
+ /**
245
+ *
246
+ * @summary listPrescriptionsByPatient
247
+ * @param xFHCKeystoreId X-FHC-keystoreId
248
+ * @param xFHCTokenId X-FHC-tokenId
249
+ * @param xFHCPassPhrase X-FHC-passPhrase
250
+ * @param hcpNihii hcpNihii
251
+ * @param patientId patientId
252
+ * @param hcpQuality hcpQuality
253
+ * @param hcpSsin hcpSsin
254
+ * @param hcpName hcpName
255
+ */
256
+ listPrescriptionsByPatientUsingGET(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpNihii, patientId, prescriberId, from, toInclusive, statuses, expiringFrom, expiringToInclusive, pageYear, pageMonth, pageNumber, hcpQuality, hcpSsin, hcpName) {
257
+ let _body = null;
258
+ const _url = this.host +
259
+ `/recipe/patient/all` +
260
+ "?ts=" +
261
+ new Date().getTime() +
262
+ (hcpNihii ? "&hcpNihii=" + encodeURIComponent(String(hcpNihii)) : "") +
263
+ (patientId ? "&patientId=" + encodeURIComponent(String(patientId)) : "") +
264
+ (prescriberId ? "&prescriberId=" + encodeURIComponent(String(prescriberId)) : "") +
265
+ (from ? "&from=" + encodeURIComponent(String(from)) : "") +
266
+ (toInclusive ? "&toInclusive=" + encodeURIComponent(String(toInclusive)) : "") +
267
+ (statuses ? "&statuses=" + encodeURIComponent(String(statuses)) : "") +
268
+ (expiringFrom ? "&expiringFrom=" + encodeURIComponent(String(expiringFrom)) : "") +
269
+ (expiringToInclusive
270
+ ? "&expiringToInclusive=" + encodeURIComponent(String(expiringToInclusive))
271
+ : "") +
272
+ (pageYear !== undefined ? "&pageYear=" + encodeURIComponent(String(pageYear)) : "") +
273
+ (pageMonth !== undefined ? "&pageMonth=" + encodeURIComponent(String(pageMonth)) : "") +
274
+ (pageNumber !== undefined ? "&pageNumber=" + encodeURIComponent(String(pageNumber)) : "") +
275
+ (hcpQuality ? "&hcpQuality=" + encodeURIComponent(String(hcpQuality)) : "") +
276
+ (hcpSsin ? "&hcpSsin=" + encodeURIComponent(String(hcpSsin)) : "") +
277
+ (hcpName ? "&hcpName=" + encodeURIComponent(String(hcpName)) : "");
278
+ let headers = this.headers;
279
+ xFHCKeystoreId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)));
280
+ xFHCTokenId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId)));
281
+ xFHCPassPhrase && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)));
282
+ return XHR_1.XHR.sendCommand("GET", _url, headers, _body, this.fetchImpl)
283
+ .then(doc => doc.body.map(it => new Prescription_1.Prescription(it)))
284
+ .catch(err => this.handleError(err));
285
+ }
244
286
  /**
245
287
  *
246
288
  * @summary revokePrescription
@@ -317,14 +359,16 @@ class fhcRecipeApi {
317
359
  * @param xFHCPassPhrase X-FHC-passPhrase
318
360
  * @param rid rid
319
361
  * @param vision vision
362
+ * @param visionOthers visionOthers
320
363
  */
321
- setVisionUsingPUT(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, rid, vision) {
364
+ setVisionUsingPUT(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, rid, vision, visionOthers) {
322
365
  let _body = null;
323
366
  const _url = this.host +
324
367
  `/recipe/${encodeURIComponent(String(rid))}/vision` +
325
368
  "?ts=" +
326
369
  new Date().getTime() +
327
- (vision ? "&vision=" + encodeURIComponent(String(vision)) : "");
370
+ (vision ? "&vision=" + encodeURIComponent(String(vision)) : "") +
371
+ (vision ? "&visionOthers=" + encodeURIComponent(String(visionOthers)) : "");
328
372
  let headers = this.headers;
329
373
  xFHCKeystoreId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)));
330
374
  xFHCTokenId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId)));
@@ -30,5 +30,6 @@ export declare class PrescriptionRequest {
30
30
  vendorEmail?: string;
31
31
  vendorPhone?: string;
32
32
  vision?: string;
33
+ visionOthers?: string;
33
34
  lang?: string;
34
35
  }
@@ -15,7 +15,7 @@ export declare class Telecom {
15
15
  telecomNumber?: string;
16
16
  }
17
17
  export declare namespace Telecom {
18
- type TelecomTypeEnum = "mobile" | "phone" | "email" | "fax" | "skype" | "im" | "medibridge" | "ehealthbox" | "apicrypt" | "web" | "print" | "disk" | 'other' | 'pager';
18
+ type TelecomTypeEnum = "mobile" | "phone" | "email" | "fax" | "skype" | "im" | "medibridge" | "ehealthbox" | "apicrypt" | "web" | "print" | "disk";
19
19
  const TelecomTypeEnum: {
20
20
  Mobile: TelecomTypeEnum;
21
21
  Phone: TelecomTypeEnum;
@@ -29,7 +29,5 @@ export declare namespace Telecom {
29
29
  Web: TelecomTypeEnum;
30
30
  Print: TelecomTypeEnum;
31
31
  Disk: TelecomTypeEnum;
32
- Other: TelecomTypeEnum;
33
- Pager: TelecomTypeEnum;
34
32
  };
35
33
  }
package/model/Telecom.js CHANGED
@@ -31,8 +31,6 @@ exports.Telecom = Telecom;
31
31
  Apicrypt: "apicrypt",
32
32
  Web: "web",
33
33
  Print: "print",
34
- Disk: "disk",
35
- Other: "other",
36
- Pager: "pager"
34
+ Disk: "disk"
37
35
  };
38
36
  })(Telecom = exports.Telecom || (exports.Telecom = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icure/be-fhc-api",
3
- "version": "0.4.26",
3
+ "version": "0.4.28",
4
4
  "description": "Typescript version of Freehealth Connector standalone API client",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",