@icure/be-fhc-api 0.6.20 → 0.6.21
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/fhcMediprimaApi.d.ts +3 -1
- package/api/fhcMediprimaApi.js +6 -2
- package/api/fhcRecipeApi.d.ts +16 -0
- package/api/fhcRecipeApi.js +39 -0
- package/model/PrescriptionsRequest.d.ts +35 -0
- package/model/PrescriptionsRequest.js +9 -0
- package/model/models.d.ts +1 -0
- package/model/models.js +1 -0
- package/package.json +1 -1
package/api/fhcMediprimaApi.d.ts
CHANGED
|
@@ -36,8 +36,10 @@ export declare class fhcMediprimaApi {
|
|
|
36
36
|
* @param traineeSupervisorNihii traineeSupervisorNihii
|
|
37
37
|
* @param traineeSupervisorFirstName traineeSupervisorFirstName
|
|
38
38
|
* @param traineeSupervisorLastName traineeSupervisorLastName
|
|
39
|
+
* @param guardPostNihii guardPostNihii
|
|
40
|
+
* @param guardPostSsin guardPostSsin
|
|
39
41
|
*/
|
|
40
|
-
consultMediprimaTarificationUsingPOST(patientSsin: string, xFHCTokenId: string, xFHCKeystoreId: string, xFHCPassPhrase: string, hcpFirstName: string, hcpLastName: string, hcpNihii: string, hcpSsin: string, date: number, traineeSupervisorSsin?: string, traineeSupervisorNihii?: string, traineeSupervisorFirstName?: string, traineeSupervisorLastName?: string, body?: Array<string>): Promise<TarificationMediprimaConsultationResult>;
|
|
42
|
+
consultMediprimaTarificationUsingPOST(patientSsin: string, xFHCTokenId: string, xFHCKeystoreId: string, xFHCPassPhrase: string, hcpFirstName: string, hcpLastName: string, hcpNihii: string, hcpSsin: string, date: number, traineeSupervisorSsin?: string, traineeSupervisorNihii?: string, traineeSupervisorFirstName?: string, traineeSupervisorLastName?: string, guardPostNihii?: string, guardPostSsin?: string, body?: Array<string>): Promise<TarificationMediprimaConsultationResult>;
|
|
41
43
|
/**
|
|
42
44
|
*
|
|
43
45
|
* @summary consultMediprima
|
package/api/fhcMediprimaApi.js
CHANGED
|
@@ -44,8 +44,10 @@ class fhcMediprimaApi {
|
|
|
44
44
|
* @param traineeSupervisorNihii traineeSupervisorNihii
|
|
45
45
|
* @param traineeSupervisorFirstName traineeSupervisorFirstName
|
|
46
46
|
* @param traineeSupervisorLastName traineeSupervisorLastName
|
|
47
|
+
* @param guardPostNihii guardPostNihii
|
|
48
|
+
* @param guardPostSsin guardPostSsin
|
|
47
49
|
*/
|
|
48
|
-
consultMediprimaTarificationUsingPOST(patientSsin, xFHCTokenId, xFHCKeystoreId, xFHCPassPhrase, hcpFirstName, hcpLastName, hcpNihii, hcpSsin, date, traineeSupervisorSsin, traineeSupervisorNihii, traineeSupervisorFirstName, traineeSupervisorLastName, body) {
|
|
50
|
+
consultMediprimaTarificationUsingPOST(patientSsin, xFHCTokenId, xFHCKeystoreId, xFHCPassPhrase, hcpFirstName, hcpLastName, hcpNihii, hcpSsin, date, traineeSupervisorSsin, traineeSupervisorNihii, traineeSupervisorFirstName, traineeSupervisorLastName, guardPostNihii, guardPostSsin, body) {
|
|
49
51
|
let _body = null;
|
|
50
52
|
_body = body;
|
|
51
53
|
const _url = this.host +
|
|
@@ -68,7 +70,9 @@ class fhcMediprimaApi {
|
|
|
68
70
|
: "") +
|
|
69
71
|
(traineeSupervisorLastName
|
|
70
72
|
? "&traineeSupervisorLastName=" + encodeURIComponent(String(traineeSupervisorLastName))
|
|
71
|
-
: "")
|
|
73
|
+
: "") +
|
|
74
|
+
(guardPostNihii ? "&guardPostNihii=" + encodeURIComponent(String(guardPostNihii)) : "") +
|
|
75
|
+
(guardPostSsin ? "&guardPostSsin=" + encodeURIComponent(String(guardPostSsin)) : "");
|
|
72
76
|
let headers = this.headers;
|
|
73
77
|
headers = headers
|
|
74
78
|
.filter(h => h.header !== "Content-Type")
|
package/api/fhcRecipeApi.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ import { ListStructuredPrescriptionsResult } from "../model/ListStructuredPrescr
|
|
|
17
17
|
import { Prescription } from "../model/Prescription";
|
|
18
18
|
import { PrescriptionFullWithFeedback } from "../model/PrescriptionFullWithFeedback";
|
|
19
19
|
import { PrescriptionRequest } from "../model/PrescriptionRequest";
|
|
20
|
+
import { PrescriptionsRequest } from "../model/PrescriptionsRequest";
|
|
20
21
|
import { PutVisionResult } from "../model/PutVisionResult";
|
|
21
22
|
import { RecipeKmehrmessageType } from "../model/RecipeKmehrmessageType";
|
|
22
23
|
import { UpdateFeedbackFlagResult } from "../model/UpdateFeedbackFlagResult";
|
|
@@ -57,6 +58,21 @@ export declare class fhcRecipeApi {
|
|
|
57
58
|
* @param xFHCPackageVersion X-FHC-packageVersion
|
|
58
59
|
*/
|
|
59
60
|
createPrescriptionV4UsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpQuality: string, hcpNihii: string, hcpSsin?: string, hcpName?: string, xFHCVendorName?: string, xFHCPackageVersion?: string, body?: PrescriptionRequest): Promise<Prescription>;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @summary createPrescriptions
|
|
64
|
+
* @param body prescription
|
|
65
|
+
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
66
|
+
* @param xFHCTokenId X-FHC-tokenId
|
|
67
|
+
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
68
|
+
* @param hcpQuality hcpQuality
|
|
69
|
+
* @param hcpNihii hcpNihii
|
|
70
|
+
* @param hcpSsin hcpSsin
|
|
71
|
+
* @param hcpName hcpName
|
|
72
|
+
* @param xFHCVendorName X-FHC-vendorName
|
|
73
|
+
* @param xFHCPackageVersion X-FHC-packageVersion
|
|
74
|
+
*/
|
|
75
|
+
createPrescriptionsUsingPOST(xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, hcpQuality: string, hcpNihii: string, hcpSsin?: string, hcpName?: string, xFHCVendorName?: string, xFHCPackageVersion?: string, body?: PrescriptionsRequest): Promise<Array<Prescription>>;
|
|
60
76
|
/**
|
|
61
77
|
*
|
|
62
78
|
* @summary getGalToAdministrationUnit
|
package/api/fhcRecipeApi.js
CHANGED
|
@@ -112,6 +112,45 @@ class fhcRecipeApi {
|
|
|
112
112
|
.then(doc => new Prescription_1.Prescription(doc.body))
|
|
113
113
|
.catch(err => this.handleError(err));
|
|
114
114
|
}
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @summary createPrescriptions
|
|
118
|
+
* @param body prescription
|
|
119
|
+
* @param xFHCKeystoreId X-FHC-keystoreId
|
|
120
|
+
* @param xFHCTokenId X-FHC-tokenId
|
|
121
|
+
* @param xFHCPassPhrase X-FHC-passPhrase
|
|
122
|
+
* @param hcpQuality hcpQuality
|
|
123
|
+
* @param hcpNihii hcpNihii
|
|
124
|
+
* @param hcpSsin hcpSsin
|
|
125
|
+
* @param hcpName hcpName
|
|
126
|
+
* @param xFHCVendorName X-FHC-vendorName
|
|
127
|
+
* @param xFHCPackageVersion X-FHC-packageVersion
|
|
128
|
+
*/
|
|
129
|
+
createPrescriptionsUsingPOST(xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, hcpQuality, hcpNihii, hcpSsin, hcpName, xFHCVendorName, xFHCPackageVersion, body) {
|
|
130
|
+
let _body = null;
|
|
131
|
+
_body = body;
|
|
132
|
+
const _url = this.host +
|
|
133
|
+
`/recipe/batch` +
|
|
134
|
+
"?ts=" +
|
|
135
|
+
new Date().getTime() +
|
|
136
|
+
(hcpQuality ? "&hcpQuality=" + encodeURIComponent(String(hcpQuality)) : "") +
|
|
137
|
+
(hcpNihii ? "&hcpNihii=" + encodeURIComponent(String(hcpNihii)) : "") +
|
|
138
|
+
(hcpSsin ? "&hcpSsin=" + encodeURIComponent(String(hcpSsin)) : "") +
|
|
139
|
+
(hcpName ? "&hcpName=" + encodeURIComponent(String(hcpName)) : "");
|
|
140
|
+
let headers = this.headers;
|
|
141
|
+
headers = headers
|
|
142
|
+
.filter(h => h.header !== "Content-Type")
|
|
143
|
+
.concat(new XHR_1.XHR.Header("Content-Type", "application/json"));
|
|
144
|
+
xFHCKeystoreId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)));
|
|
145
|
+
xFHCTokenId && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-tokenId", xFHCTokenId)));
|
|
146
|
+
xFHCPassPhrase && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)));
|
|
147
|
+
xFHCVendorName && (headers = headers.concat(new XHR_1.XHR.Header("X-FHC-vendorName", xFHCVendorName)));
|
|
148
|
+
xFHCPackageVersion &&
|
|
149
|
+
(headers = headers.concat(new XHR_1.XHR.Header("X-FHC-packageVersion", xFHCPackageVersion)));
|
|
150
|
+
return XHR_1.XHR.sendCommand("POST", _url, headers, _body, this.fetchImpl)
|
|
151
|
+
.then(doc => doc.body.map(it => new Prescription_1.Prescription(it)))
|
|
152
|
+
.catch(err => this.handleError(err));
|
|
153
|
+
}
|
|
115
154
|
/**
|
|
116
155
|
*
|
|
117
156
|
* @summary getGalToAdministrationUnit
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Api Documentation
|
|
3
|
+
* Api Documentation
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { HealthcareParty } from "./HealthcareParty";
|
|
13
|
+
import { Medication } from "./Medication";
|
|
14
|
+
import { Patient } from "./Patient";
|
|
15
|
+
export declare class PrescriptionsRequest {
|
|
16
|
+
constructor(json: JSON | any);
|
|
17
|
+
patient?: Patient;
|
|
18
|
+
hcp?: HealthcareParty;
|
|
19
|
+
feedback?: boolean;
|
|
20
|
+
medicationsBatches?: Array<Array<Medication>>;
|
|
21
|
+
prescriptionType?: string;
|
|
22
|
+
notification?: string;
|
|
23
|
+
samVersion?: string;
|
|
24
|
+
executorId?: string;
|
|
25
|
+
deliveryDate?: number;
|
|
26
|
+
expirationDate?: number;
|
|
27
|
+
vendorName?: string;
|
|
28
|
+
packageName?: string;
|
|
29
|
+
packageVersion?: string;
|
|
30
|
+
vendorEmail?: string;
|
|
31
|
+
vendorPhone?: string;
|
|
32
|
+
vision?: string;
|
|
33
|
+
visionOthers?: string;
|
|
34
|
+
lang?: string;
|
|
35
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PrescriptionsRequest = void 0;
|
|
4
|
+
class PrescriptionsRequest {
|
|
5
|
+
constructor(json) {
|
|
6
|
+
Object.assign(this, json);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
exports.PrescriptionsRequest = PrescriptionsRequest;
|
package/model/models.d.ts
CHANGED
|
@@ -373,6 +373,7 @@ export * from "./Posology";
|
|
|
373
373
|
export * from "./Prescription";
|
|
374
374
|
export * from "./PrescriptionFullWithFeedback";
|
|
375
375
|
export * from "./PrescriptionRequest";
|
|
376
|
+
export * from "./PrescriptionsRequest";
|
|
376
377
|
export * from "./PresentationType";
|
|
377
378
|
export * from "./ProfessionCode";
|
|
378
379
|
export * from "./ProfessionType";
|
package/model/models.js
CHANGED
|
@@ -389,6 +389,7 @@ __exportStar(require("./Posology"), exports);
|
|
|
389
389
|
__exportStar(require("./Prescription"), exports);
|
|
390
390
|
__exportStar(require("./PrescriptionFullWithFeedback"), exports);
|
|
391
391
|
__exportStar(require("./PrescriptionRequest"), exports);
|
|
392
|
+
__exportStar(require("./PrescriptionsRequest"), exports);
|
|
392
393
|
__exportStar(require("./PresentationType"), exports);
|
|
393
394
|
__exportStar(require("./ProfessionCode"), exports);
|
|
394
395
|
__exportStar(require("./ProfessionType"), exports);
|