@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.
- package/api/fhcRecipeApi.d.ts +15 -1
- package/api/fhcRecipeApi.js +46 -2
- package/model/PrescriptionRequest.d.ts +1 -0
- package/model/Telecom.d.ts +1 -3
- package/model/Telecom.js +1 -3
- package/package.json +1 -1
package/api/fhcRecipeApi.d.ts
CHANGED
|
@@ -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
|
package/api/fhcRecipeApi.js
CHANGED
|
@@ -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)));
|
package/model/Telecom.d.ts
CHANGED
|
@@ -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"
|
|
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