ch-admin-api-client-typescript 5.91.24 → 5.91.31
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/lib/api/patient-review-consent-documents-api.d.ts +440 -0
- package/lib/api/patient-review-consent-documents-api.d.ts.map +1 -0
- package/lib/api/patient-review-consent-documents-api.js +812 -0
- package/lib/api.d.ts +1 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +1 -0
- package/lib/models/create-patient-review-consent-document-command.d.ts +79 -0
- package/lib/models/create-patient-review-consent-document-command.d.ts.map +1 -0
- package/lib/models/create-patient-review-consent-document-command.js +15 -0
- package/lib/models/index.d.ts +6 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +6 -0
- package/lib/models/patient-review-consent-document-item-model.d.ts +74 -0
- package/lib/models/patient-review-consent-document-item-model.d.ts.map +1 -0
- package/lib/models/patient-review-consent-document-item-model.js +15 -0
- package/lib/models/patient-review-consent-document-model.d.ts +92 -0
- package/lib/models/patient-review-consent-document-model.d.ts.map +1 -0
- package/lib/models/patient-review-consent-document-model.js +15 -0
- package/lib/models/patient-review-consent-documents-model.d.ts +33 -0
- package/lib/models/patient-review-consent-documents-model.d.ts.map +1 -0
- package/lib/models/patient-review-consent-documents-model.js +15 -0
- package/lib/models/translate-patient-review-consent-document-command.d.ts +55 -0
- package/lib/models/translate-patient-review-consent-document-command.d.ts.map +1 -0
- package/lib/models/translate-patient-review-consent-document-command.js +15 -0
- package/lib/models/update-patient-review-consent-document-command.d.ts +79 -0
- package/lib/models/update-patient-review-consent-document-command.d.ts.map +1 -0
- package/lib/models/update-patient-review-consent-document-command.js +15 -0
- package/package.json +1 -1
|
@@ -0,0 +1,812 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* CloudHospital Admin Api
|
|
6
|
+
* CloudHospital application with Swagger, Swashbuckle, and API versioning.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1
|
|
9
|
+
* Contact: developer@icloudhospital.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __assign = (this && this.__assign) || function () {
|
|
31
|
+
__assign = Object.assign || function(t) {
|
|
32
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
+
s = arguments[i];
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
return __assign.apply(this, arguments);
|
|
40
|
+
};
|
|
41
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
52
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
+
function step(op) {
|
|
55
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
+
switch (op[0]) {
|
|
60
|
+
case 0: case 1: t = op; break;
|
|
61
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
+
default:
|
|
65
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
+
if (t[2]) _.ops.pop();
|
|
70
|
+
_.trys.pop(); continue;
|
|
71
|
+
}
|
|
72
|
+
op = body.call(thisArg, _);
|
|
73
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
+
if (ar || !(i in from)) {
|
|
80
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
+
ar[i] = from[i];
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
+
};
|
|
86
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
87
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88
|
+
};
|
|
89
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
90
|
+
exports.PatientReviewConsentDocumentsApi = exports.PatientReviewConsentDocumentsApiFactory = exports.PatientReviewConsentDocumentsApiFp = exports.PatientReviewConsentDocumentsApiAxiosParamCreator = void 0;
|
|
91
|
+
var axios_1 = __importDefault(require("axios"));
|
|
92
|
+
// Some imports not used depending on template conditions
|
|
93
|
+
// @ts-ignore
|
|
94
|
+
var common_1 = require("../common");
|
|
95
|
+
// @ts-ignore
|
|
96
|
+
var base_1 = require("../base");
|
|
97
|
+
/**
|
|
98
|
+
* PatientReviewConsentDocumentsApi - axios parameter creator
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
var PatientReviewConsentDocumentsApiAxiosParamCreator = function (configuration) {
|
|
102
|
+
var _this = this;
|
|
103
|
+
return {
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @summary Deletes a versioned patient review consent document (soft or permanent). (Auth policies: RequireContentManagerRole)
|
|
107
|
+
* @param {string} consentDocumentId The consent document identifier.
|
|
108
|
+
* @param {boolean} [isPermanent] Whether to permanently delete the document.
|
|
109
|
+
* @param {*} [options] Override http request option.
|
|
110
|
+
* @throws {RequiredError}
|
|
111
|
+
*/
|
|
112
|
+
apiV1PatientreviewconsentdocumentsConsentDocumentIdDelete: function (consentDocumentId_1, isPermanent_1) {
|
|
113
|
+
var args_1 = [];
|
|
114
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
115
|
+
args_1[_i - 2] = arguments[_i];
|
|
116
|
+
}
|
|
117
|
+
return __awaiter(_this, __spreadArray([consentDocumentId_1, isPermanent_1], args_1, true), void 0, function (consentDocumentId, isPermanent, options) {
|
|
118
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
119
|
+
if (options === void 0) { options = {}; }
|
|
120
|
+
return __generator(this, function (_a) {
|
|
121
|
+
switch (_a.label) {
|
|
122
|
+
case 0:
|
|
123
|
+
// verify required parameter 'consentDocumentId' is not null or undefined
|
|
124
|
+
(0, common_1.assertParamExists)('apiV1PatientreviewconsentdocumentsConsentDocumentIdDelete', 'consentDocumentId', consentDocumentId);
|
|
125
|
+
localVarPath = "/api/v1/patientreviewconsentdocuments/{consentDocumentId}"
|
|
126
|
+
.replace("{".concat("consentDocumentId", "}"), encodeURIComponent(String(consentDocumentId)));
|
|
127
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
128
|
+
if (configuration) {
|
|
129
|
+
baseOptions = configuration.baseOptions;
|
|
130
|
+
}
|
|
131
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
132
|
+
localVarHeaderParameter = {};
|
|
133
|
+
localVarQueryParameter = {};
|
|
134
|
+
// authentication oauth2 required
|
|
135
|
+
// oauth required
|
|
136
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
137
|
+
case 1:
|
|
138
|
+
// authentication oauth2 required
|
|
139
|
+
// oauth required
|
|
140
|
+
_a.sent();
|
|
141
|
+
if (isPermanent !== undefined) {
|
|
142
|
+
localVarQueryParameter['isPermanent'] = isPermanent;
|
|
143
|
+
}
|
|
144
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
145
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
146
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
147
|
+
return [2 /*return*/, {
|
|
148
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
149
|
+
options: localVarRequestOptions,
|
|
150
|
+
}];
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
},
|
|
155
|
+
/**
|
|
156
|
+
*
|
|
157
|
+
* @summary Retrieves a single versioned patient review consent document for the given language. (Auth policies: RequireContentManagerRole)
|
|
158
|
+
* @param {string} consentDocumentId The consent document identifier.
|
|
159
|
+
* @param {string} [languageCode] Preferred language code for localized fields.
|
|
160
|
+
* @param {*} [options] Override http request option.
|
|
161
|
+
* @throws {RequiredError}
|
|
162
|
+
*/
|
|
163
|
+
apiV1PatientreviewconsentdocumentsConsentDocumentIdGet: function (consentDocumentId_1, languageCode_1) {
|
|
164
|
+
var args_1 = [];
|
|
165
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
166
|
+
args_1[_i - 2] = arguments[_i];
|
|
167
|
+
}
|
|
168
|
+
return __awaiter(_this, __spreadArray([consentDocumentId_1, languageCode_1], args_1, true), void 0, function (consentDocumentId, languageCode, options) {
|
|
169
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
170
|
+
if (options === void 0) { options = {}; }
|
|
171
|
+
return __generator(this, function (_a) {
|
|
172
|
+
switch (_a.label) {
|
|
173
|
+
case 0:
|
|
174
|
+
// verify required parameter 'consentDocumentId' is not null or undefined
|
|
175
|
+
(0, common_1.assertParamExists)('apiV1PatientreviewconsentdocumentsConsentDocumentIdGet', 'consentDocumentId', consentDocumentId);
|
|
176
|
+
localVarPath = "/api/v1/patientreviewconsentdocuments/{consentDocumentId}"
|
|
177
|
+
.replace("{".concat("consentDocumentId", "}"), encodeURIComponent(String(consentDocumentId)));
|
|
178
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
179
|
+
if (configuration) {
|
|
180
|
+
baseOptions = configuration.baseOptions;
|
|
181
|
+
}
|
|
182
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
183
|
+
localVarHeaderParameter = {};
|
|
184
|
+
localVarQueryParameter = {};
|
|
185
|
+
// authentication oauth2 required
|
|
186
|
+
// oauth required
|
|
187
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
188
|
+
case 1:
|
|
189
|
+
// authentication oauth2 required
|
|
190
|
+
// oauth required
|
|
191
|
+
_a.sent();
|
|
192
|
+
if (languageCode !== undefined) {
|
|
193
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
194
|
+
}
|
|
195
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
196
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
197
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
198
|
+
return [2 /*return*/, {
|
|
199
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
200
|
+
options: localVarRequestOptions,
|
|
201
|
+
}];
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
});
|
|
205
|
+
},
|
|
206
|
+
/**
|
|
207
|
+
*
|
|
208
|
+
* @summary Updates an existing versioned patient review consent document. (Auth policies: RequireContentManagerRole)
|
|
209
|
+
* @param {string} consentDocumentId The consent document identifier.
|
|
210
|
+
* @param {UpdatePatientReviewConsentDocumentCommand} [updatePatientReviewConsentDocumentCommand] Consent document update payload.
|
|
211
|
+
* @param {*} [options] Override http request option.
|
|
212
|
+
* @throws {RequiredError}
|
|
213
|
+
*/
|
|
214
|
+
apiV1PatientreviewconsentdocumentsConsentDocumentIdPut: function (consentDocumentId_1, updatePatientReviewConsentDocumentCommand_1) {
|
|
215
|
+
var args_1 = [];
|
|
216
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
217
|
+
args_1[_i - 2] = arguments[_i];
|
|
218
|
+
}
|
|
219
|
+
return __awaiter(_this, __spreadArray([consentDocumentId_1, updatePatientReviewConsentDocumentCommand_1], args_1, true), void 0, function (consentDocumentId, updatePatientReviewConsentDocumentCommand, options) {
|
|
220
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
221
|
+
if (options === void 0) { options = {}; }
|
|
222
|
+
return __generator(this, function (_a) {
|
|
223
|
+
switch (_a.label) {
|
|
224
|
+
case 0:
|
|
225
|
+
// verify required parameter 'consentDocumentId' is not null or undefined
|
|
226
|
+
(0, common_1.assertParamExists)('apiV1PatientreviewconsentdocumentsConsentDocumentIdPut', 'consentDocumentId', consentDocumentId);
|
|
227
|
+
localVarPath = "/api/v1/patientreviewconsentdocuments/{consentDocumentId}"
|
|
228
|
+
.replace("{".concat("consentDocumentId", "}"), encodeURIComponent(String(consentDocumentId)));
|
|
229
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
230
|
+
if (configuration) {
|
|
231
|
+
baseOptions = configuration.baseOptions;
|
|
232
|
+
}
|
|
233
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
234
|
+
localVarHeaderParameter = {};
|
|
235
|
+
localVarQueryParameter = {};
|
|
236
|
+
// authentication oauth2 required
|
|
237
|
+
// oauth required
|
|
238
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
239
|
+
case 1:
|
|
240
|
+
// authentication oauth2 required
|
|
241
|
+
// oauth required
|
|
242
|
+
_a.sent();
|
|
243
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
244
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
245
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
246
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
247
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updatePatientReviewConsentDocumentCommand, localVarRequestOptions, configuration);
|
|
248
|
+
return [2 /*return*/, {
|
|
249
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
250
|
+
options: localVarRequestOptions,
|
|
251
|
+
}];
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
});
|
|
255
|
+
},
|
|
256
|
+
/**
|
|
257
|
+
*
|
|
258
|
+
* @summary Reactivates a soft-deleted versioned patient review consent document. (Auth policies: RequireContentManagerRole)
|
|
259
|
+
* @param {string} consentDocumentId The consent document identifier.
|
|
260
|
+
* @param {*} [options] Override http request option.
|
|
261
|
+
* @throws {RequiredError}
|
|
262
|
+
*/
|
|
263
|
+
apiV1PatientreviewconsentdocumentsConsentDocumentIdReactivatePut: function (consentDocumentId_1) {
|
|
264
|
+
var args_1 = [];
|
|
265
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
266
|
+
args_1[_i - 1] = arguments[_i];
|
|
267
|
+
}
|
|
268
|
+
return __awaiter(_this, __spreadArray([consentDocumentId_1], args_1, true), void 0, function (consentDocumentId, options) {
|
|
269
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
270
|
+
if (options === void 0) { options = {}; }
|
|
271
|
+
return __generator(this, function (_a) {
|
|
272
|
+
switch (_a.label) {
|
|
273
|
+
case 0:
|
|
274
|
+
// verify required parameter 'consentDocumentId' is not null or undefined
|
|
275
|
+
(0, common_1.assertParamExists)('apiV1PatientreviewconsentdocumentsConsentDocumentIdReactivatePut', 'consentDocumentId', consentDocumentId);
|
|
276
|
+
localVarPath = "/api/v1/patientreviewconsentdocuments/{consentDocumentId}/reactivate"
|
|
277
|
+
.replace("{".concat("consentDocumentId", "}"), encodeURIComponent(String(consentDocumentId)));
|
|
278
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
279
|
+
if (configuration) {
|
|
280
|
+
baseOptions = configuration.baseOptions;
|
|
281
|
+
}
|
|
282
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
283
|
+
localVarHeaderParameter = {};
|
|
284
|
+
localVarQueryParameter = {};
|
|
285
|
+
// authentication oauth2 required
|
|
286
|
+
// oauth required
|
|
287
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
288
|
+
case 1:
|
|
289
|
+
// authentication oauth2 required
|
|
290
|
+
// oauth required
|
|
291
|
+
_a.sent();
|
|
292
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
293
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
294
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
295
|
+
return [2 /*return*/, {
|
|
296
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
297
|
+
options: localVarRequestOptions,
|
|
298
|
+
}];
|
|
299
|
+
}
|
|
300
|
+
});
|
|
301
|
+
});
|
|
302
|
+
},
|
|
303
|
+
/**
|
|
304
|
+
*
|
|
305
|
+
* @summary Triggers AI-based automatic translation of a versioned patient review consent document. (Auth policies: RequireContentManagerRole)
|
|
306
|
+
* @param {string} consentDocumentId The consent document identifier.
|
|
307
|
+
* @param {TranslatePatientReviewConsentDocumentCommand} [translatePatientReviewConsentDocumentCommand] Translation request payload.
|
|
308
|
+
* @param {*} [options] Override http request option.
|
|
309
|
+
* @throws {RequiredError}
|
|
310
|
+
*/
|
|
311
|
+
apiV1PatientreviewconsentdocumentsConsentDocumentIdTranslatePost: function (consentDocumentId_1, translatePatientReviewConsentDocumentCommand_1) {
|
|
312
|
+
var args_1 = [];
|
|
313
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
314
|
+
args_1[_i - 2] = arguments[_i];
|
|
315
|
+
}
|
|
316
|
+
return __awaiter(_this, __spreadArray([consentDocumentId_1, translatePatientReviewConsentDocumentCommand_1], args_1, true), void 0, function (consentDocumentId, translatePatientReviewConsentDocumentCommand, options) {
|
|
317
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
318
|
+
if (options === void 0) { options = {}; }
|
|
319
|
+
return __generator(this, function (_a) {
|
|
320
|
+
switch (_a.label) {
|
|
321
|
+
case 0:
|
|
322
|
+
// verify required parameter 'consentDocumentId' is not null or undefined
|
|
323
|
+
(0, common_1.assertParamExists)('apiV1PatientreviewconsentdocumentsConsentDocumentIdTranslatePost', 'consentDocumentId', consentDocumentId);
|
|
324
|
+
localVarPath = "/api/v1/patientreviewconsentdocuments/{consentDocumentId}/translate"
|
|
325
|
+
.replace("{".concat("consentDocumentId", "}"), encodeURIComponent(String(consentDocumentId)));
|
|
326
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
327
|
+
if (configuration) {
|
|
328
|
+
baseOptions = configuration.baseOptions;
|
|
329
|
+
}
|
|
330
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
331
|
+
localVarHeaderParameter = {};
|
|
332
|
+
localVarQueryParameter = {};
|
|
333
|
+
// authentication oauth2 required
|
|
334
|
+
// oauth required
|
|
335
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
336
|
+
case 1:
|
|
337
|
+
// authentication oauth2 required
|
|
338
|
+
// oauth required
|
|
339
|
+
_a.sent();
|
|
340
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
341
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
342
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
343
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
344
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(translatePatientReviewConsentDocumentCommand, localVarRequestOptions, configuration);
|
|
345
|
+
return [2 /*return*/, {
|
|
346
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
347
|
+
options: localVarRequestOptions,
|
|
348
|
+
}];
|
|
349
|
+
}
|
|
350
|
+
});
|
|
351
|
+
});
|
|
352
|
+
},
|
|
353
|
+
/**
|
|
354
|
+
*
|
|
355
|
+
* @summary Retrieves a paged list of versioned patient review consent documents. (Auth policies: RequireContentManagerRole)
|
|
356
|
+
* @param {string} [languageCode]
|
|
357
|
+
* @param {string} [wordingVersion]
|
|
358
|
+
* @param {number} [page]
|
|
359
|
+
* @param {number} [limit]
|
|
360
|
+
* @param {Date} [lastRetrieved]
|
|
361
|
+
* @param {*} [options] Override http request option.
|
|
362
|
+
* @throws {RequiredError}
|
|
363
|
+
*/
|
|
364
|
+
apiV1PatientreviewconsentdocumentsGet: function (languageCode_1, wordingVersion_1, page_1, limit_1, lastRetrieved_1) {
|
|
365
|
+
var args_1 = [];
|
|
366
|
+
for (var _i = 5; _i < arguments.length; _i++) {
|
|
367
|
+
args_1[_i - 5] = arguments[_i];
|
|
368
|
+
}
|
|
369
|
+
return __awaiter(_this, __spreadArray([languageCode_1, wordingVersion_1, page_1, limit_1, lastRetrieved_1], args_1, true), void 0, function (languageCode, wordingVersion, page, limit, lastRetrieved, options) {
|
|
370
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
371
|
+
if (options === void 0) { options = {}; }
|
|
372
|
+
return __generator(this, function (_a) {
|
|
373
|
+
switch (_a.label) {
|
|
374
|
+
case 0:
|
|
375
|
+
localVarPath = "/api/v1/patientreviewconsentdocuments";
|
|
376
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
377
|
+
if (configuration) {
|
|
378
|
+
baseOptions = configuration.baseOptions;
|
|
379
|
+
}
|
|
380
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
381
|
+
localVarHeaderParameter = {};
|
|
382
|
+
localVarQueryParameter = {};
|
|
383
|
+
// authentication oauth2 required
|
|
384
|
+
// oauth required
|
|
385
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
386
|
+
case 1:
|
|
387
|
+
// authentication oauth2 required
|
|
388
|
+
// oauth required
|
|
389
|
+
_a.sent();
|
|
390
|
+
if (languageCode !== undefined) {
|
|
391
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
392
|
+
}
|
|
393
|
+
if (wordingVersion !== undefined) {
|
|
394
|
+
localVarQueryParameter['wordingVersion'] = wordingVersion;
|
|
395
|
+
}
|
|
396
|
+
if (page !== undefined) {
|
|
397
|
+
localVarQueryParameter['page'] = page;
|
|
398
|
+
}
|
|
399
|
+
if (limit !== undefined) {
|
|
400
|
+
localVarQueryParameter['limit'] = limit;
|
|
401
|
+
}
|
|
402
|
+
if (lastRetrieved !== undefined) {
|
|
403
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
404
|
+
lastRetrieved.toISOString() :
|
|
405
|
+
lastRetrieved;
|
|
406
|
+
}
|
|
407
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
408
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
409
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
410
|
+
return [2 /*return*/, {
|
|
411
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
412
|
+
options: localVarRequestOptions,
|
|
413
|
+
}];
|
|
414
|
+
}
|
|
415
|
+
});
|
|
416
|
+
});
|
|
417
|
+
},
|
|
418
|
+
/**
|
|
419
|
+
*
|
|
420
|
+
* @summary Creates a new versioned patient review consent document. (Auth policies: RequireContentManagerRole)
|
|
421
|
+
* @param {CreatePatientReviewConsentDocumentCommand} [createPatientReviewConsentDocumentCommand] Consent document creation payload.
|
|
422
|
+
* @param {*} [options] Override http request option.
|
|
423
|
+
* @throws {RequiredError}
|
|
424
|
+
*/
|
|
425
|
+
apiV1PatientreviewconsentdocumentsPost: function (createPatientReviewConsentDocumentCommand_1) {
|
|
426
|
+
var args_1 = [];
|
|
427
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
428
|
+
args_1[_i - 1] = arguments[_i];
|
|
429
|
+
}
|
|
430
|
+
return __awaiter(_this, __spreadArray([createPatientReviewConsentDocumentCommand_1], args_1, true), void 0, function (createPatientReviewConsentDocumentCommand, options) {
|
|
431
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
432
|
+
if (options === void 0) { options = {}; }
|
|
433
|
+
return __generator(this, function (_a) {
|
|
434
|
+
switch (_a.label) {
|
|
435
|
+
case 0:
|
|
436
|
+
localVarPath = "/api/v1/patientreviewconsentdocuments";
|
|
437
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
438
|
+
if (configuration) {
|
|
439
|
+
baseOptions = configuration.baseOptions;
|
|
440
|
+
}
|
|
441
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
442
|
+
localVarHeaderParameter = {};
|
|
443
|
+
localVarQueryParameter = {};
|
|
444
|
+
// authentication oauth2 required
|
|
445
|
+
// oauth required
|
|
446
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
447
|
+
case 1:
|
|
448
|
+
// authentication oauth2 required
|
|
449
|
+
// oauth required
|
|
450
|
+
_a.sent();
|
|
451
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
452
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
453
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
454
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
455
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPatientReviewConsentDocumentCommand, localVarRequestOptions, configuration);
|
|
456
|
+
return [2 /*return*/, {
|
|
457
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
458
|
+
options: localVarRequestOptions,
|
|
459
|
+
}];
|
|
460
|
+
}
|
|
461
|
+
});
|
|
462
|
+
});
|
|
463
|
+
},
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
exports.PatientReviewConsentDocumentsApiAxiosParamCreator = PatientReviewConsentDocumentsApiAxiosParamCreator;
|
|
467
|
+
/**
|
|
468
|
+
* PatientReviewConsentDocumentsApi - functional programming interface
|
|
469
|
+
* @export
|
|
470
|
+
*/
|
|
471
|
+
var PatientReviewConsentDocumentsApiFp = function (configuration) {
|
|
472
|
+
var localVarAxiosParamCreator = (0, exports.PatientReviewConsentDocumentsApiAxiosParamCreator)(configuration);
|
|
473
|
+
return {
|
|
474
|
+
/**
|
|
475
|
+
*
|
|
476
|
+
* @summary Deletes a versioned patient review consent document (soft or permanent). (Auth policies: RequireContentManagerRole)
|
|
477
|
+
* @param {string} consentDocumentId The consent document identifier.
|
|
478
|
+
* @param {boolean} [isPermanent] Whether to permanently delete the document.
|
|
479
|
+
* @param {*} [options] Override http request option.
|
|
480
|
+
* @throws {RequiredError}
|
|
481
|
+
*/
|
|
482
|
+
apiV1PatientreviewconsentdocumentsConsentDocumentIdDelete: function (consentDocumentId, isPermanent, options) {
|
|
483
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
484
|
+
var localVarAxiosArgs;
|
|
485
|
+
return __generator(this, function (_a) {
|
|
486
|
+
switch (_a.label) {
|
|
487
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientreviewconsentdocumentsConsentDocumentIdDelete(consentDocumentId, isPermanent, options)];
|
|
488
|
+
case 1:
|
|
489
|
+
localVarAxiosArgs = _a.sent();
|
|
490
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
491
|
+
}
|
|
492
|
+
});
|
|
493
|
+
});
|
|
494
|
+
},
|
|
495
|
+
/**
|
|
496
|
+
*
|
|
497
|
+
* @summary Retrieves a single versioned patient review consent document for the given language. (Auth policies: RequireContentManagerRole)
|
|
498
|
+
* @param {string} consentDocumentId The consent document identifier.
|
|
499
|
+
* @param {string} [languageCode] Preferred language code for localized fields.
|
|
500
|
+
* @param {*} [options] Override http request option.
|
|
501
|
+
* @throws {RequiredError}
|
|
502
|
+
*/
|
|
503
|
+
apiV1PatientreviewconsentdocumentsConsentDocumentIdGet: function (consentDocumentId, languageCode, options) {
|
|
504
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
505
|
+
var localVarAxiosArgs;
|
|
506
|
+
return __generator(this, function (_a) {
|
|
507
|
+
switch (_a.label) {
|
|
508
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientreviewconsentdocumentsConsentDocumentIdGet(consentDocumentId, languageCode, options)];
|
|
509
|
+
case 1:
|
|
510
|
+
localVarAxiosArgs = _a.sent();
|
|
511
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
512
|
+
}
|
|
513
|
+
});
|
|
514
|
+
});
|
|
515
|
+
},
|
|
516
|
+
/**
|
|
517
|
+
*
|
|
518
|
+
* @summary Updates an existing versioned patient review consent document. (Auth policies: RequireContentManagerRole)
|
|
519
|
+
* @param {string} consentDocumentId The consent document identifier.
|
|
520
|
+
* @param {UpdatePatientReviewConsentDocumentCommand} [updatePatientReviewConsentDocumentCommand] Consent document update payload.
|
|
521
|
+
* @param {*} [options] Override http request option.
|
|
522
|
+
* @throws {RequiredError}
|
|
523
|
+
*/
|
|
524
|
+
apiV1PatientreviewconsentdocumentsConsentDocumentIdPut: function (consentDocumentId, updatePatientReviewConsentDocumentCommand, options) {
|
|
525
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
526
|
+
var localVarAxiosArgs;
|
|
527
|
+
return __generator(this, function (_a) {
|
|
528
|
+
switch (_a.label) {
|
|
529
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientreviewconsentdocumentsConsentDocumentIdPut(consentDocumentId, updatePatientReviewConsentDocumentCommand, options)];
|
|
530
|
+
case 1:
|
|
531
|
+
localVarAxiosArgs = _a.sent();
|
|
532
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
533
|
+
}
|
|
534
|
+
});
|
|
535
|
+
});
|
|
536
|
+
},
|
|
537
|
+
/**
|
|
538
|
+
*
|
|
539
|
+
* @summary Reactivates a soft-deleted versioned patient review consent document. (Auth policies: RequireContentManagerRole)
|
|
540
|
+
* @param {string} consentDocumentId The consent document identifier.
|
|
541
|
+
* @param {*} [options] Override http request option.
|
|
542
|
+
* @throws {RequiredError}
|
|
543
|
+
*/
|
|
544
|
+
apiV1PatientreviewconsentdocumentsConsentDocumentIdReactivatePut: function (consentDocumentId, options) {
|
|
545
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
546
|
+
var localVarAxiosArgs;
|
|
547
|
+
return __generator(this, function (_a) {
|
|
548
|
+
switch (_a.label) {
|
|
549
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientreviewconsentdocumentsConsentDocumentIdReactivatePut(consentDocumentId, options)];
|
|
550
|
+
case 1:
|
|
551
|
+
localVarAxiosArgs = _a.sent();
|
|
552
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
553
|
+
}
|
|
554
|
+
});
|
|
555
|
+
});
|
|
556
|
+
},
|
|
557
|
+
/**
|
|
558
|
+
*
|
|
559
|
+
* @summary Triggers AI-based automatic translation of a versioned patient review consent document. (Auth policies: RequireContentManagerRole)
|
|
560
|
+
* @param {string} consentDocumentId The consent document identifier.
|
|
561
|
+
* @param {TranslatePatientReviewConsentDocumentCommand} [translatePatientReviewConsentDocumentCommand] Translation request payload.
|
|
562
|
+
* @param {*} [options] Override http request option.
|
|
563
|
+
* @throws {RequiredError}
|
|
564
|
+
*/
|
|
565
|
+
apiV1PatientreviewconsentdocumentsConsentDocumentIdTranslatePost: function (consentDocumentId, translatePatientReviewConsentDocumentCommand, options) {
|
|
566
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
567
|
+
var localVarAxiosArgs;
|
|
568
|
+
return __generator(this, function (_a) {
|
|
569
|
+
switch (_a.label) {
|
|
570
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientreviewconsentdocumentsConsentDocumentIdTranslatePost(consentDocumentId, translatePatientReviewConsentDocumentCommand, options)];
|
|
571
|
+
case 1:
|
|
572
|
+
localVarAxiosArgs = _a.sent();
|
|
573
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
574
|
+
}
|
|
575
|
+
});
|
|
576
|
+
});
|
|
577
|
+
},
|
|
578
|
+
/**
|
|
579
|
+
*
|
|
580
|
+
* @summary Retrieves a paged list of versioned patient review consent documents. (Auth policies: RequireContentManagerRole)
|
|
581
|
+
* @param {string} [languageCode]
|
|
582
|
+
* @param {string} [wordingVersion]
|
|
583
|
+
* @param {number} [page]
|
|
584
|
+
* @param {number} [limit]
|
|
585
|
+
* @param {Date} [lastRetrieved]
|
|
586
|
+
* @param {*} [options] Override http request option.
|
|
587
|
+
* @throws {RequiredError}
|
|
588
|
+
*/
|
|
589
|
+
apiV1PatientreviewconsentdocumentsGet: function (languageCode, wordingVersion, page, limit, lastRetrieved, options) {
|
|
590
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
591
|
+
var localVarAxiosArgs;
|
|
592
|
+
return __generator(this, function (_a) {
|
|
593
|
+
switch (_a.label) {
|
|
594
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientreviewconsentdocumentsGet(languageCode, wordingVersion, page, limit, lastRetrieved, options)];
|
|
595
|
+
case 1:
|
|
596
|
+
localVarAxiosArgs = _a.sent();
|
|
597
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
598
|
+
}
|
|
599
|
+
});
|
|
600
|
+
});
|
|
601
|
+
},
|
|
602
|
+
/**
|
|
603
|
+
*
|
|
604
|
+
* @summary Creates a new versioned patient review consent document. (Auth policies: RequireContentManagerRole)
|
|
605
|
+
* @param {CreatePatientReviewConsentDocumentCommand} [createPatientReviewConsentDocumentCommand] Consent document creation payload.
|
|
606
|
+
* @param {*} [options] Override http request option.
|
|
607
|
+
* @throws {RequiredError}
|
|
608
|
+
*/
|
|
609
|
+
apiV1PatientreviewconsentdocumentsPost: function (createPatientReviewConsentDocumentCommand, options) {
|
|
610
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
611
|
+
var localVarAxiosArgs;
|
|
612
|
+
return __generator(this, function (_a) {
|
|
613
|
+
switch (_a.label) {
|
|
614
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientreviewconsentdocumentsPost(createPatientReviewConsentDocumentCommand, options)];
|
|
615
|
+
case 1:
|
|
616
|
+
localVarAxiosArgs = _a.sent();
|
|
617
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
618
|
+
}
|
|
619
|
+
});
|
|
620
|
+
});
|
|
621
|
+
},
|
|
622
|
+
};
|
|
623
|
+
};
|
|
624
|
+
exports.PatientReviewConsentDocumentsApiFp = PatientReviewConsentDocumentsApiFp;
|
|
625
|
+
/**
|
|
626
|
+
* PatientReviewConsentDocumentsApi - factory interface
|
|
627
|
+
* @export
|
|
628
|
+
*/
|
|
629
|
+
var PatientReviewConsentDocumentsApiFactory = function (configuration, basePath, axios) {
|
|
630
|
+
var localVarFp = (0, exports.PatientReviewConsentDocumentsApiFp)(configuration);
|
|
631
|
+
return {
|
|
632
|
+
/**
|
|
633
|
+
*
|
|
634
|
+
* @summary Deletes a versioned patient review consent document (soft or permanent). (Auth policies: RequireContentManagerRole)
|
|
635
|
+
* @param {string} consentDocumentId The consent document identifier.
|
|
636
|
+
* @param {boolean} [isPermanent] Whether to permanently delete the document.
|
|
637
|
+
* @param {*} [options] Override http request option.
|
|
638
|
+
* @throws {RequiredError}
|
|
639
|
+
*/
|
|
640
|
+
apiV1PatientreviewconsentdocumentsConsentDocumentIdDelete: function (consentDocumentId, isPermanent, options) {
|
|
641
|
+
return localVarFp.apiV1PatientreviewconsentdocumentsConsentDocumentIdDelete(consentDocumentId, isPermanent, options).then(function (request) { return request(axios, basePath); });
|
|
642
|
+
},
|
|
643
|
+
/**
|
|
644
|
+
*
|
|
645
|
+
* @summary Retrieves a single versioned patient review consent document for the given language. (Auth policies: RequireContentManagerRole)
|
|
646
|
+
* @param {string} consentDocumentId The consent document identifier.
|
|
647
|
+
* @param {string} [languageCode] Preferred language code for localized fields.
|
|
648
|
+
* @param {*} [options] Override http request option.
|
|
649
|
+
* @throws {RequiredError}
|
|
650
|
+
*/
|
|
651
|
+
apiV1PatientreviewconsentdocumentsConsentDocumentIdGet: function (consentDocumentId, languageCode, options) {
|
|
652
|
+
return localVarFp.apiV1PatientreviewconsentdocumentsConsentDocumentIdGet(consentDocumentId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
653
|
+
},
|
|
654
|
+
/**
|
|
655
|
+
*
|
|
656
|
+
* @summary Updates an existing versioned patient review consent document. (Auth policies: RequireContentManagerRole)
|
|
657
|
+
* @param {string} consentDocumentId The consent document identifier.
|
|
658
|
+
* @param {UpdatePatientReviewConsentDocumentCommand} [updatePatientReviewConsentDocumentCommand] Consent document update payload.
|
|
659
|
+
* @param {*} [options] Override http request option.
|
|
660
|
+
* @throws {RequiredError}
|
|
661
|
+
*/
|
|
662
|
+
apiV1PatientreviewconsentdocumentsConsentDocumentIdPut: function (consentDocumentId, updatePatientReviewConsentDocumentCommand, options) {
|
|
663
|
+
return localVarFp.apiV1PatientreviewconsentdocumentsConsentDocumentIdPut(consentDocumentId, updatePatientReviewConsentDocumentCommand, options).then(function (request) { return request(axios, basePath); });
|
|
664
|
+
},
|
|
665
|
+
/**
|
|
666
|
+
*
|
|
667
|
+
* @summary Reactivates a soft-deleted versioned patient review consent document. (Auth policies: RequireContentManagerRole)
|
|
668
|
+
* @param {string} consentDocumentId The consent document identifier.
|
|
669
|
+
* @param {*} [options] Override http request option.
|
|
670
|
+
* @throws {RequiredError}
|
|
671
|
+
*/
|
|
672
|
+
apiV1PatientreviewconsentdocumentsConsentDocumentIdReactivatePut: function (consentDocumentId, options) {
|
|
673
|
+
return localVarFp.apiV1PatientreviewconsentdocumentsConsentDocumentIdReactivatePut(consentDocumentId, options).then(function (request) { return request(axios, basePath); });
|
|
674
|
+
},
|
|
675
|
+
/**
|
|
676
|
+
*
|
|
677
|
+
* @summary Triggers AI-based automatic translation of a versioned patient review consent document. (Auth policies: RequireContentManagerRole)
|
|
678
|
+
* @param {string} consentDocumentId The consent document identifier.
|
|
679
|
+
* @param {TranslatePatientReviewConsentDocumentCommand} [translatePatientReviewConsentDocumentCommand] Translation request payload.
|
|
680
|
+
* @param {*} [options] Override http request option.
|
|
681
|
+
* @throws {RequiredError}
|
|
682
|
+
*/
|
|
683
|
+
apiV1PatientreviewconsentdocumentsConsentDocumentIdTranslatePost: function (consentDocumentId, translatePatientReviewConsentDocumentCommand, options) {
|
|
684
|
+
return localVarFp.apiV1PatientreviewconsentdocumentsConsentDocumentIdTranslatePost(consentDocumentId, translatePatientReviewConsentDocumentCommand, options).then(function (request) { return request(axios, basePath); });
|
|
685
|
+
},
|
|
686
|
+
/**
|
|
687
|
+
*
|
|
688
|
+
* @summary Retrieves a paged list of versioned patient review consent documents. (Auth policies: RequireContentManagerRole)
|
|
689
|
+
* @param {string} [languageCode]
|
|
690
|
+
* @param {string} [wordingVersion]
|
|
691
|
+
* @param {number} [page]
|
|
692
|
+
* @param {number} [limit]
|
|
693
|
+
* @param {Date} [lastRetrieved]
|
|
694
|
+
* @param {*} [options] Override http request option.
|
|
695
|
+
* @throws {RequiredError}
|
|
696
|
+
*/
|
|
697
|
+
apiV1PatientreviewconsentdocumentsGet: function (languageCode, wordingVersion, page, limit, lastRetrieved, options) {
|
|
698
|
+
return localVarFp.apiV1PatientreviewconsentdocumentsGet(languageCode, wordingVersion, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
699
|
+
},
|
|
700
|
+
/**
|
|
701
|
+
*
|
|
702
|
+
* @summary Creates a new versioned patient review consent document. (Auth policies: RequireContentManagerRole)
|
|
703
|
+
* @param {CreatePatientReviewConsentDocumentCommand} [createPatientReviewConsentDocumentCommand] Consent document creation payload.
|
|
704
|
+
* @param {*} [options] Override http request option.
|
|
705
|
+
* @throws {RequiredError}
|
|
706
|
+
*/
|
|
707
|
+
apiV1PatientreviewconsentdocumentsPost: function (createPatientReviewConsentDocumentCommand, options) {
|
|
708
|
+
return localVarFp.apiV1PatientreviewconsentdocumentsPost(createPatientReviewConsentDocumentCommand, options).then(function (request) { return request(axios, basePath); });
|
|
709
|
+
},
|
|
710
|
+
};
|
|
711
|
+
};
|
|
712
|
+
exports.PatientReviewConsentDocumentsApiFactory = PatientReviewConsentDocumentsApiFactory;
|
|
713
|
+
/**
|
|
714
|
+
* PatientReviewConsentDocumentsApi - object-oriented interface
|
|
715
|
+
* @export
|
|
716
|
+
* @class PatientReviewConsentDocumentsApi
|
|
717
|
+
* @extends {BaseAPI}
|
|
718
|
+
*/
|
|
719
|
+
var PatientReviewConsentDocumentsApi = /** @class */ (function (_super) {
|
|
720
|
+
__extends(PatientReviewConsentDocumentsApi, _super);
|
|
721
|
+
function PatientReviewConsentDocumentsApi() {
|
|
722
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
723
|
+
}
|
|
724
|
+
/**
|
|
725
|
+
*
|
|
726
|
+
* @summary Deletes a versioned patient review consent document (soft or permanent). (Auth policies: RequireContentManagerRole)
|
|
727
|
+
* @param {PatientReviewConsentDocumentsApiApiV1PatientreviewconsentdocumentsConsentDocumentIdDeleteRequest} requestParameters Request parameters.
|
|
728
|
+
* @param {*} [options] Override http request option.
|
|
729
|
+
* @throws {RequiredError}
|
|
730
|
+
* @memberof PatientReviewConsentDocumentsApi
|
|
731
|
+
*/
|
|
732
|
+
PatientReviewConsentDocumentsApi.prototype.apiV1PatientreviewconsentdocumentsConsentDocumentIdDelete = function (requestParameters, options) {
|
|
733
|
+
var _this = this;
|
|
734
|
+
return (0, exports.PatientReviewConsentDocumentsApiFp)(this.configuration).apiV1PatientreviewconsentdocumentsConsentDocumentIdDelete(requestParameters.consentDocumentId, requestParameters.isPermanent, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
735
|
+
};
|
|
736
|
+
/**
|
|
737
|
+
*
|
|
738
|
+
* @summary Retrieves a single versioned patient review consent document for the given language. (Auth policies: RequireContentManagerRole)
|
|
739
|
+
* @param {PatientReviewConsentDocumentsApiApiV1PatientreviewconsentdocumentsConsentDocumentIdGetRequest} requestParameters Request parameters.
|
|
740
|
+
* @param {*} [options] Override http request option.
|
|
741
|
+
* @throws {RequiredError}
|
|
742
|
+
* @memberof PatientReviewConsentDocumentsApi
|
|
743
|
+
*/
|
|
744
|
+
PatientReviewConsentDocumentsApi.prototype.apiV1PatientreviewconsentdocumentsConsentDocumentIdGet = function (requestParameters, options) {
|
|
745
|
+
var _this = this;
|
|
746
|
+
return (0, exports.PatientReviewConsentDocumentsApiFp)(this.configuration).apiV1PatientreviewconsentdocumentsConsentDocumentIdGet(requestParameters.consentDocumentId, requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
747
|
+
};
|
|
748
|
+
/**
|
|
749
|
+
*
|
|
750
|
+
* @summary Updates an existing versioned patient review consent document. (Auth policies: RequireContentManagerRole)
|
|
751
|
+
* @param {PatientReviewConsentDocumentsApiApiV1PatientreviewconsentdocumentsConsentDocumentIdPutRequest} requestParameters Request parameters.
|
|
752
|
+
* @param {*} [options] Override http request option.
|
|
753
|
+
* @throws {RequiredError}
|
|
754
|
+
* @memberof PatientReviewConsentDocumentsApi
|
|
755
|
+
*/
|
|
756
|
+
PatientReviewConsentDocumentsApi.prototype.apiV1PatientreviewconsentdocumentsConsentDocumentIdPut = function (requestParameters, options) {
|
|
757
|
+
var _this = this;
|
|
758
|
+
return (0, exports.PatientReviewConsentDocumentsApiFp)(this.configuration).apiV1PatientreviewconsentdocumentsConsentDocumentIdPut(requestParameters.consentDocumentId, requestParameters.updatePatientReviewConsentDocumentCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
759
|
+
};
|
|
760
|
+
/**
|
|
761
|
+
*
|
|
762
|
+
* @summary Reactivates a soft-deleted versioned patient review consent document. (Auth policies: RequireContentManagerRole)
|
|
763
|
+
* @param {PatientReviewConsentDocumentsApiApiV1PatientreviewconsentdocumentsConsentDocumentIdReactivatePutRequest} requestParameters Request parameters.
|
|
764
|
+
* @param {*} [options] Override http request option.
|
|
765
|
+
* @throws {RequiredError}
|
|
766
|
+
* @memberof PatientReviewConsentDocumentsApi
|
|
767
|
+
*/
|
|
768
|
+
PatientReviewConsentDocumentsApi.prototype.apiV1PatientreviewconsentdocumentsConsentDocumentIdReactivatePut = function (requestParameters, options) {
|
|
769
|
+
var _this = this;
|
|
770
|
+
return (0, exports.PatientReviewConsentDocumentsApiFp)(this.configuration).apiV1PatientreviewconsentdocumentsConsentDocumentIdReactivatePut(requestParameters.consentDocumentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
771
|
+
};
|
|
772
|
+
/**
|
|
773
|
+
*
|
|
774
|
+
* @summary Triggers AI-based automatic translation of a versioned patient review consent document. (Auth policies: RequireContentManagerRole)
|
|
775
|
+
* @param {PatientReviewConsentDocumentsApiApiV1PatientreviewconsentdocumentsConsentDocumentIdTranslatePostRequest} requestParameters Request parameters.
|
|
776
|
+
* @param {*} [options] Override http request option.
|
|
777
|
+
* @throws {RequiredError}
|
|
778
|
+
* @memberof PatientReviewConsentDocumentsApi
|
|
779
|
+
*/
|
|
780
|
+
PatientReviewConsentDocumentsApi.prototype.apiV1PatientreviewconsentdocumentsConsentDocumentIdTranslatePost = function (requestParameters, options) {
|
|
781
|
+
var _this = this;
|
|
782
|
+
return (0, exports.PatientReviewConsentDocumentsApiFp)(this.configuration).apiV1PatientreviewconsentdocumentsConsentDocumentIdTranslatePost(requestParameters.consentDocumentId, requestParameters.translatePatientReviewConsentDocumentCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
783
|
+
};
|
|
784
|
+
/**
|
|
785
|
+
*
|
|
786
|
+
* @summary Retrieves a paged list of versioned patient review consent documents. (Auth policies: RequireContentManagerRole)
|
|
787
|
+
* @param {PatientReviewConsentDocumentsApiApiV1PatientreviewconsentdocumentsGetRequest} requestParameters Request parameters.
|
|
788
|
+
* @param {*} [options] Override http request option.
|
|
789
|
+
* @throws {RequiredError}
|
|
790
|
+
* @memberof PatientReviewConsentDocumentsApi
|
|
791
|
+
*/
|
|
792
|
+
PatientReviewConsentDocumentsApi.prototype.apiV1PatientreviewconsentdocumentsGet = function (requestParameters, options) {
|
|
793
|
+
var _this = this;
|
|
794
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
795
|
+
return (0, exports.PatientReviewConsentDocumentsApiFp)(this.configuration).apiV1PatientreviewconsentdocumentsGet(requestParameters.languageCode, requestParameters.wordingVersion, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
796
|
+
};
|
|
797
|
+
/**
|
|
798
|
+
*
|
|
799
|
+
* @summary Creates a new versioned patient review consent document. (Auth policies: RequireContentManagerRole)
|
|
800
|
+
* @param {PatientReviewConsentDocumentsApiApiV1PatientreviewconsentdocumentsPostRequest} requestParameters Request parameters.
|
|
801
|
+
* @param {*} [options] Override http request option.
|
|
802
|
+
* @throws {RequiredError}
|
|
803
|
+
* @memberof PatientReviewConsentDocumentsApi
|
|
804
|
+
*/
|
|
805
|
+
PatientReviewConsentDocumentsApi.prototype.apiV1PatientreviewconsentdocumentsPost = function (requestParameters, options) {
|
|
806
|
+
var _this = this;
|
|
807
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
808
|
+
return (0, exports.PatientReviewConsentDocumentsApiFp)(this.configuration).apiV1PatientreviewconsentdocumentsPost(requestParameters.createPatientReviewConsentDocumentCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
809
|
+
};
|
|
810
|
+
return PatientReviewConsentDocumentsApi;
|
|
811
|
+
}(base_1.BaseAPI));
|
|
812
|
+
exports.PatientReviewConsentDocumentsApi = PatientReviewConsentDocumentsApi;
|