ch-admin-api-client-typescript 5.91.14 → 5.91.24
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/accreditations-api.d.ts +10 -9
- package/lib/api/accreditations-api.d.ts.map +1 -1
- package/lib/api/accreditations-api.js +13 -13
- package/lib/api/hospitals-api.d.ts +65 -0
- package/lib/api/hospitals-api.d.ts.map +1 -1
- package/lib/api/hospitals-api.js +100 -0
- package/lib/api/patient-review-form-settings-api.d.ts +460 -0
- package/lib/api/patient-review-form-settings-api.d.ts.map +1 -0
- package/lib/api/patient-review-form-settings-api.js +824 -0
- package/lib/api/patient-reviews-api.d.ts +753 -0
- package/lib/api/patient-reviews-api.d.ts.map +1 -0
- package/lib/api/patient-reviews-api.js +1310 -0
- package/lib/api.d.ts +2 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +2 -0
- package/lib/models/accreditation-item-model.d.ts +7 -0
- package/lib/models/accreditation-item-model.d.ts.map +1 -1
- package/lib/models/accreditation-model.d.ts +7 -0
- package/lib/models/accreditation-model.d.ts.map +1 -1
- package/lib/models/accreditation-type.d.ts +22 -0
- package/lib/models/accreditation-type.d.ts.map +1 -0
- package/lib/models/accreditation-type.js +25 -0
- package/lib/models/accreditation-verification-file-model.d.ts +49 -0
- package/lib/models/accreditation-verification-file-model.d.ts.map +1 -0
- package/lib/models/accreditation-verification-file-model.js +15 -0
- package/lib/models/create-accreditation-command.d.ts +7 -0
- package/lib/models/create-accreditation-command.d.ts.map +1 -1
- package/lib/models/create-hospital-accreditation-command.d.ts +32 -0
- package/lib/models/create-hospital-accreditation-command.d.ts.map +1 -1
- package/lib/models/create-patient-review-form-setting-command.d.ts +81 -0
- package/lib/models/create-patient-review-form-setting-command.d.ts.map +1 -0
- package/lib/models/create-patient-review-form-setting-command.js +15 -0
- package/lib/models/form-result-item-model.d.ts +7 -0
- package/lib/models/form-result-item-model.d.ts.map +1 -1
- package/lib/models/form-result-model.d.ts +7 -0
- package/lib/models/form-result-model.d.ts.map +1 -1
- package/lib/models/hospital-accreditation-item-model.d.ts +32 -0
- package/lib/models/hospital-accreditation-item-model.d.ts.map +1 -1
- package/lib/models/hospital-accreditation-model.d.ts +32 -0
- package/lib/models/hospital-accreditation-model.d.ts.map +1 -1
- package/lib/models/hospital-item-model.d.ts +7 -0
- package/lib/models/hospital-item-model.d.ts.map +1 -1
- package/lib/models/hospital-model.d.ts +6 -6
- package/lib/models/hospital-model.d.ts.map +1 -1
- package/lib/models/index.d.ts +33 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +33 -0
- package/lib/models/patch-patient-review-input-model.d.ts +50 -0
- package/lib/models/patch-patient-review-input-model.d.ts.map +1 -0
- package/lib/models/patch-patient-review-input-model.js +15 -0
- package/lib/models/patient-review-activity-action.d.ts +29 -0
- package/lib/models/patient-review-activity-action.d.ts.map +1 -0
- package/lib/models/patient-review-activity-action.js +32 -0
- package/lib/models/patient-review-activity-log-model.d.ts +69 -0
- package/lib/models/patient-review-activity-log-model.d.ts.map +1 -0
- package/lib/models/patient-review-activity-log-model.js +15 -0
- package/lib/models/patient-review-before-and-after-photo-model.d.ts +61 -0
- package/lib/models/patient-review-before-and-after-photo-model.d.ts.map +1 -0
- package/lib/models/patient-review-before-and-after-photo-model.js +15 -0
- package/lib/models/patient-review-before-and-after-public-photo-model.d.ts +73 -0
- package/lib/models/patient-review-before-and-after-public-photo-model.d.ts.map +1 -0
- package/lib/models/patient-review-before-and-after-public-photo-model.js +15 -0
- package/lib/models/patient-review-content-verification-input-model.d.ts +31 -0
- package/lib/models/patient-review-content-verification-input-model.d.ts.map +1 -0
- package/lib/models/patient-review-content-verification-input-model.js +15 -0
- package/lib/models/patient-review-detail-model.d.ts +44 -0
- package/lib/models/patient-review-detail-model.d.ts.map +1 -0
- package/lib/models/patient-review-detail-model.js +15 -0
- package/lib/models/patient-review-form-setting-detail-input-model.d.ts +67 -0
- package/lib/models/patient-review-form-setting-detail-input-model.d.ts.map +1 -0
- package/lib/models/patient-review-form-setting-detail-input-model.js +15 -0
- package/lib/models/patient-review-form-setting-detail-model.d.ts +79 -0
- package/lib/models/patient-review-form-setting-detail-model.d.ts.map +1 -0
- package/lib/models/patient-review-form-setting-detail-model.js +15 -0
- package/lib/models/patient-review-form-setting-item-model.d.ts +87 -0
- package/lib/models/patient-review-form-setting-item-model.d.ts.map +1 -0
- package/lib/models/patient-review-form-setting-item-model.js +15 -0
- package/lib/models/patient-review-form-setting-model.d.ts +94 -0
- package/lib/models/patient-review-form-setting-model.d.ts.map +1 -0
- package/lib/models/patient-review-form-setting-model.js +15 -0
- package/lib/models/patient-review-form-settings-model.d.ts +33 -0
- package/lib/models/patient-review-form-settings-model.d.ts.map +1 -0
- package/lib/models/patient-review-form-settings-model.js +15 -0
- package/lib/models/patient-review-general-photo-model.d.ts +49 -0
- package/lib/models/patient-review-general-photo-model.d.ts.map +1 -0
- package/lib/models/patient-review-general-photo-model.js +15 -0
- package/lib/models/patient-review-general-public-photo-model.d.ts +61 -0
- package/lib/models/patient-review-general-public-photo-model.d.ts.map +1 -0
- package/lib/models/patient-review-general-public-photo-model.js +15 -0
- package/lib/models/patient-review-item-model.d.ts +166 -0
- package/lib/models/patient-review-item-model.d.ts.map +1 -0
- package/lib/models/patient-review-item-model.js +15 -0
- package/lib/models/patient-review-model.d.ts +318 -0
- package/lib/models/patient-review-model.d.ts.map +1 -0
- package/lib/models/patient-review-model.js +15 -0
- package/lib/models/patient-review-platform.d.ts +23 -0
- package/lib/models/patient-review-platform.d.ts.map +1 -0
- package/lib/models/patient-review-platform.js +26 -0
- package/lib/models/patient-review-public-before-after-image-input-model.d.ts +61 -0
- package/lib/models/patient-review-public-before-after-image-input-model.d.ts.map +1 -0
- package/lib/models/patient-review-public-before-after-image-input-model.js +15 -0
- package/lib/models/patient-review-public-general-image-input-model.d.ts +49 -0
- package/lib/models/patient-review-public-general-image-input-model.d.ts.map +1 -0
- package/lib/models/patient-review-public-general-image-input-model.js +15 -0
- package/lib/models/patient-review-public-photo-patch-input-model.d.ts +33 -0
- package/lib/models/patient-review-public-photo-patch-input-model.d.ts.map +1 -0
- package/lib/models/patient-review-public-photo-patch-input-model.js +15 -0
- package/lib/models/patient-review-status.d.ts +23 -0
- package/lib/models/patient-review-status.d.ts.map +1 -0
- package/lib/models/patient-review-status.js +26 -0
- package/lib/models/patient-review-translation-model.d.ts +55 -0
- package/lib/models/patient-review-translation-model.d.ts.map +1 -0
- package/lib/models/patient-review-translation-model.js +15 -0
- package/lib/models/patient-review-verification-document-model.d.ts +37 -0
- package/lib/models/patient-review-verification-document-model.d.ts.map +1 -0
- package/lib/models/patient-review-verification-document-model.js +15 -0
- package/lib/models/patient-reviews-model.d.ts +33 -0
- package/lib/models/patient-reviews-model.d.ts.map +1 -0
- package/lib/models/patient-reviews-model.js +15 -0
- package/lib/models/survey-result-item-model.d.ts +13 -0
- package/lib/models/survey-result-item-model.d.ts.map +1 -1
- package/lib/models/survey-result-model.d.ts +13 -0
- package/lib/models/survey-result-model.d.ts.map +1 -1
- package/lib/models/translate-patient-review-form-setting-command.d.ts +44 -0
- package/lib/models/translate-patient-review-form-setting-command.d.ts.map +1 -0
- package/lib/models/translate-patient-review-form-setting-command.js +15 -0
- package/lib/models/translation-model.d.ts +103 -0
- package/lib/models/translation-model.d.ts.map +1 -0
- package/lib/models/translation-model.js +15 -0
- package/lib/models/update-accreditation-command.d.ts +7 -0
- package/lib/models/update-accreditation-command.d.ts.map +1 -1
- package/lib/models/update-hospital-accreditation-command.d.ts +51 -0
- package/lib/models/update-hospital-accreditation-command.d.ts.map +1 -0
- package/lib/models/update-hospital-accreditation-command.js +15 -0
- package/lib/models/update-patient-review-form-setting-command.d.ts +81 -0
- package/lib/models/update-patient-review-form-setting-command.d.ts.map +1 -0
- package/lib/models/update-patient-review-form-setting-command.js +15 -0
- package/lib/models/update-patient-review-status-command.d.ts +38 -0
- package/lib/models/update-patient-review-status-command.d.ts.map +1 -0
- package/lib/models/update-patient-review-status-command.js +15 -0
- package/lib/models/verify-patient-review-content-command.d.ts +38 -0
- package/lib/models/verify-patient-review-content-command.d.ts.map +1 -0
- package/lib/models/verify-patient-review-content-command.js +15 -0
- package/package.json +1 -1
|
@@ -0,0 +1,824 @@
|
|
|
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.PatientReviewFormSettingsApi = exports.PatientReviewFormSettingsApiFactory = exports.PatientReviewFormSettingsApiFp = exports.PatientReviewFormSettingsApiAxiosParamCreator = 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
|
+
* PatientReviewFormSettingsApi - axios parameter creator
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
var PatientReviewFormSettingsApiAxiosParamCreator = function (configuration) {
|
|
102
|
+
var _this = this;
|
|
103
|
+
return {
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @summary Get patient review form settings. (Auth policies: RequireContentManagerRole)
|
|
107
|
+
* @param {string} [languageCode]
|
|
108
|
+
* @param {PatientReviewPlatform} [platform]
|
|
109
|
+
* @param {string} [hospitalId]
|
|
110
|
+
* @param {boolean} [showHidden]
|
|
111
|
+
* @param {number} [page]
|
|
112
|
+
* @param {number} [limit]
|
|
113
|
+
* @param {Date} [lastRetrieved]
|
|
114
|
+
* @param {*} [options] Override http request option.
|
|
115
|
+
* @throws {RequiredError}
|
|
116
|
+
*/
|
|
117
|
+
apiV1PatientreviewformsettingsGet: function (languageCode_1, platform_1, hospitalId_1, showHidden_1, page_1, limit_1, lastRetrieved_1) {
|
|
118
|
+
var args_1 = [];
|
|
119
|
+
for (var _i = 7; _i < arguments.length; _i++) {
|
|
120
|
+
args_1[_i - 7] = arguments[_i];
|
|
121
|
+
}
|
|
122
|
+
return __awaiter(_this, __spreadArray([languageCode_1, platform_1, hospitalId_1, showHidden_1, page_1, limit_1, lastRetrieved_1], args_1, true), void 0, function (languageCode, platform, hospitalId, showHidden, page, limit, lastRetrieved, options) {
|
|
123
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
124
|
+
if (options === void 0) { options = {}; }
|
|
125
|
+
return __generator(this, function (_a) {
|
|
126
|
+
switch (_a.label) {
|
|
127
|
+
case 0:
|
|
128
|
+
localVarPath = "/api/v1/patientreviewformsettings";
|
|
129
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
130
|
+
if (configuration) {
|
|
131
|
+
baseOptions = configuration.baseOptions;
|
|
132
|
+
}
|
|
133
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
134
|
+
localVarHeaderParameter = {};
|
|
135
|
+
localVarQueryParameter = {};
|
|
136
|
+
// authentication oauth2 required
|
|
137
|
+
// oauth required
|
|
138
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
139
|
+
case 1:
|
|
140
|
+
// authentication oauth2 required
|
|
141
|
+
// oauth required
|
|
142
|
+
_a.sent();
|
|
143
|
+
if (languageCode !== undefined) {
|
|
144
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
145
|
+
}
|
|
146
|
+
if (platform !== undefined) {
|
|
147
|
+
localVarQueryParameter['platform'] = platform;
|
|
148
|
+
}
|
|
149
|
+
if (hospitalId !== undefined) {
|
|
150
|
+
localVarQueryParameter['hospitalId'] = hospitalId;
|
|
151
|
+
}
|
|
152
|
+
if (showHidden !== undefined) {
|
|
153
|
+
localVarQueryParameter['showHidden'] = showHidden;
|
|
154
|
+
}
|
|
155
|
+
if (page !== undefined) {
|
|
156
|
+
localVarQueryParameter['page'] = page;
|
|
157
|
+
}
|
|
158
|
+
if (limit !== undefined) {
|
|
159
|
+
localVarQueryParameter['limit'] = limit;
|
|
160
|
+
}
|
|
161
|
+
if (lastRetrieved !== undefined) {
|
|
162
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
163
|
+
lastRetrieved.toISOString() :
|
|
164
|
+
lastRetrieved;
|
|
165
|
+
}
|
|
166
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
167
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
168
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
169
|
+
return [2 /*return*/, {
|
|
170
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
171
|
+
options: localVarRequestOptions,
|
|
172
|
+
}];
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
});
|
|
176
|
+
},
|
|
177
|
+
/**
|
|
178
|
+
*
|
|
179
|
+
* @summary Delete patient review form setting. (Auth policies: RequireContentManagerRole)
|
|
180
|
+
* @param {string} patientReviewFormSettingId
|
|
181
|
+
* @param {boolean} [isPermanent]
|
|
182
|
+
* @param {*} [options] Override http request option.
|
|
183
|
+
* @throws {RequiredError}
|
|
184
|
+
*/
|
|
185
|
+
apiV1PatientreviewformsettingsPatientReviewFormSettingIdDelete: function (patientReviewFormSettingId_1, isPermanent_1) {
|
|
186
|
+
var args_1 = [];
|
|
187
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
188
|
+
args_1[_i - 2] = arguments[_i];
|
|
189
|
+
}
|
|
190
|
+
return __awaiter(_this, __spreadArray([patientReviewFormSettingId_1, isPermanent_1], args_1, true), void 0, function (patientReviewFormSettingId, isPermanent, options) {
|
|
191
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
192
|
+
if (options === void 0) { options = {}; }
|
|
193
|
+
return __generator(this, function (_a) {
|
|
194
|
+
switch (_a.label) {
|
|
195
|
+
case 0:
|
|
196
|
+
// verify required parameter 'patientReviewFormSettingId' is not null or undefined
|
|
197
|
+
(0, common_1.assertParamExists)('apiV1PatientreviewformsettingsPatientReviewFormSettingIdDelete', 'patientReviewFormSettingId', patientReviewFormSettingId);
|
|
198
|
+
localVarPath = "/api/v1/patientreviewformsettings/{patientReviewFormSettingId}"
|
|
199
|
+
.replace("{".concat("patientReviewFormSettingId", "}"), encodeURIComponent(String(patientReviewFormSettingId)));
|
|
200
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
201
|
+
if (configuration) {
|
|
202
|
+
baseOptions = configuration.baseOptions;
|
|
203
|
+
}
|
|
204
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
205
|
+
localVarHeaderParameter = {};
|
|
206
|
+
localVarQueryParameter = {};
|
|
207
|
+
// authentication oauth2 required
|
|
208
|
+
// oauth required
|
|
209
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
210
|
+
case 1:
|
|
211
|
+
// authentication oauth2 required
|
|
212
|
+
// oauth required
|
|
213
|
+
_a.sent();
|
|
214
|
+
if (isPermanent !== undefined) {
|
|
215
|
+
localVarQueryParameter['isPermanent'] = isPermanent;
|
|
216
|
+
}
|
|
217
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
218
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
219
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
220
|
+
return [2 /*return*/, {
|
|
221
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
222
|
+
options: localVarRequestOptions,
|
|
223
|
+
}];
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
});
|
|
227
|
+
},
|
|
228
|
+
/**
|
|
229
|
+
*
|
|
230
|
+
* @summary Get patient review form setting. (Auth policies: RequireContentManagerRole)
|
|
231
|
+
* @param {string} patientReviewFormSettingId
|
|
232
|
+
* @param {string} [languageCode] Language code. Accepts either `en` (ISO 639-1 two-letter) or `en-US` (locale) format.
|
|
233
|
+
* @param {*} [options] Override http request option.
|
|
234
|
+
* @throws {RequiredError}
|
|
235
|
+
*/
|
|
236
|
+
apiV1PatientreviewformsettingsPatientReviewFormSettingIdGet: function (patientReviewFormSettingId_1, languageCode_1) {
|
|
237
|
+
var args_1 = [];
|
|
238
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
239
|
+
args_1[_i - 2] = arguments[_i];
|
|
240
|
+
}
|
|
241
|
+
return __awaiter(_this, __spreadArray([patientReviewFormSettingId_1, languageCode_1], args_1, true), void 0, function (patientReviewFormSettingId, languageCode, options) {
|
|
242
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
243
|
+
if (options === void 0) { options = {}; }
|
|
244
|
+
return __generator(this, function (_a) {
|
|
245
|
+
switch (_a.label) {
|
|
246
|
+
case 0:
|
|
247
|
+
// verify required parameter 'patientReviewFormSettingId' is not null or undefined
|
|
248
|
+
(0, common_1.assertParamExists)('apiV1PatientreviewformsettingsPatientReviewFormSettingIdGet', 'patientReviewFormSettingId', patientReviewFormSettingId);
|
|
249
|
+
localVarPath = "/api/v1/patientreviewformsettings/{patientReviewFormSettingId}"
|
|
250
|
+
.replace("{".concat("patientReviewFormSettingId", "}"), encodeURIComponent(String(patientReviewFormSettingId)));
|
|
251
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
252
|
+
if (configuration) {
|
|
253
|
+
baseOptions = configuration.baseOptions;
|
|
254
|
+
}
|
|
255
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
256
|
+
localVarHeaderParameter = {};
|
|
257
|
+
localVarQueryParameter = {};
|
|
258
|
+
// authentication oauth2 required
|
|
259
|
+
// oauth required
|
|
260
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
261
|
+
case 1:
|
|
262
|
+
// authentication oauth2 required
|
|
263
|
+
// oauth required
|
|
264
|
+
_a.sent();
|
|
265
|
+
if (languageCode !== undefined) {
|
|
266
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
267
|
+
}
|
|
268
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
269
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
270
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
271
|
+
return [2 /*return*/, {
|
|
272
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
273
|
+
options: localVarRequestOptions,
|
|
274
|
+
}];
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
});
|
|
278
|
+
},
|
|
279
|
+
/**
|
|
280
|
+
*
|
|
281
|
+
* @summary Update patient review form setting with JSON Merge Patch. (Auth policies: RequireContentManagerRole)
|
|
282
|
+
* @param {string} patientReviewFormSettingId
|
|
283
|
+
* @param {UpdatePatientReviewFormSettingCommand} [updatePatientReviewFormSettingCommand]
|
|
284
|
+
* @param {*} [options] Override http request option.
|
|
285
|
+
* @throws {RequiredError}
|
|
286
|
+
*/
|
|
287
|
+
apiV1PatientreviewformsettingsPatientReviewFormSettingIdPatch: function (patientReviewFormSettingId_1, updatePatientReviewFormSettingCommand_1) {
|
|
288
|
+
var args_1 = [];
|
|
289
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
290
|
+
args_1[_i - 2] = arguments[_i];
|
|
291
|
+
}
|
|
292
|
+
return __awaiter(_this, __spreadArray([patientReviewFormSettingId_1, updatePatientReviewFormSettingCommand_1], args_1, true), void 0, function (patientReviewFormSettingId, updatePatientReviewFormSettingCommand, options) {
|
|
293
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
294
|
+
if (options === void 0) { options = {}; }
|
|
295
|
+
return __generator(this, function (_a) {
|
|
296
|
+
switch (_a.label) {
|
|
297
|
+
case 0:
|
|
298
|
+
// verify required parameter 'patientReviewFormSettingId' is not null or undefined
|
|
299
|
+
(0, common_1.assertParamExists)('apiV1PatientreviewformsettingsPatientReviewFormSettingIdPatch', 'patientReviewFormSettingId', patientReviewFormSettingId);
|
|
300
|
+
localVarPath = "/api/v1/patientreviewformsettings/{patientReviewFormSettingId}"
|
|
301
|
+
.replace("{".concat("patientReviewFormSettingId", "}"), encodeURIComponent(String(patientReviewFormSettingId)));
|
|
302
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
303
|
+
if (configuration) {
|
|
304
|
+
baseOptions = configuration.baseOptions;
|
|
305
|
+
}
|
|
306
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
307
|
+
localVarHeaderParameter = {};
|
|
308
|
+
localVarQueryParameter = {};
|
|
309
|
+
// authentication oauth2 required
|
|
310
|
+
// oauth required
|
|
311
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
312
|
+
case 1:
|
|
313
|
+
// authentication oauth2 required
|
|
314
|
+
// oauth required
|
|
315
|
+
_a.sent();
|
|
316
|
+
localVarHeaderParameter['Content-Type'] = 'application/merge-patch+json';
|
|
317
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
318
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
319
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
320
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updatePatientReviewFormSettingCommand, localVarRequestOptions, configuration);
|
|
321
|
+
return [2 /*return*/, {
|
|
322
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
323
|
+
options: localVarRequestOptions,
|
|
324
|
+
}];
|
|
325
|
+
}
|
|
326
|
+
});
|
|
327
|
+
});
|
|
328
|
+
},
|
|
329
|
+
/**
|
|
330
|
+
*
|
|
331
|
+
* @summary Reactivate patient review form setting. (Auth policies: RequireContentManagerRole)
|
|
332
|
+
* @param {string} patientReviewFormSettingId
|
|
333
|
+
* @param {*} [options] Override http request option.
|
|
334
|
+
* @throws {RequiredError}
|
|
335
|
+
*/
|
|
336
|
+
apiV1PatientreviewformsettingsPatientReviewFormSettingIdReactivatePut: function (patientReviewFormSettingId_1) {
|
|
337
|
+
var args_1 = [];
|
|
338
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
339
|
+
args_1[_i - 1] = arguments[_i];
|
|
340
|
+
}
|
|
341
|
+
return __awaiter(_this, __spreadArray([patientReviewFormSettingId_1], args_1, true), void 0, function (patientReviewFormSettingId, options) {
|
|
342
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
343
|
+
if (options === void 0) { options = {}; }
|
|
344
|
+
return __generator(this, function (_a) {
|
|
345
|
+
switch (_a.label) {
|
|
346
|
+
case 0:
|
|
347
|
+
// verify required parameter 'patientReviewFormSettingId' is not null or undefined
|
|
348
|
+
(0, common_1.assertParamExists)('apiV1PatientreviewformsettingsPatientReviewFormSettingIdReactivatePut', 'patientReviewFormSettingId', patientReviewFormSettingId);
|
|
349
|
+
localVarPath = "/api/v1/patientreviewformsettings/{patientReviewFormSettingId}/reactivate"
|
|
350
|
+
.replace("{".concat("patientReviewFormSettingId", "}"), encodeURIComponent(String(patientReviewFormSettingId)));
|
|
351
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
352
|
+
if (configuration) {
|
|
353
|
+
baseOptions = configuration.baseOptions;
|
|
354
|
+
}
|
|
355
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
356
|
+
localVarHeaderParameter = {};
|
|
357
|
+
localVarQueryParameter = {};
|
|
358
|
+
// authentication oauth2 required
|
|
359
|
+
// oauth required
|
|
360
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
361
|
+
case 1:
|
|
362
|
+
// authentication oauth2 required
|
|
363
|
+
// oauth required
|
|
364
|
+
_a.sent();
|
|
365
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
366
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
367
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
368
|
+
return [2 /*return*/, {
|
|
369
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
370
|
+
options: localVarRequestOptions,
|
|
371
|
+
}];
|
|
372
|
+
}
|
|
373
|
+
});
|
|
374
|
+
});
|
|
375
|
+
},
|
|
376
|
+
/**
|
|
377
|
+
*
|
|
378
|
+
* @summary Translate patient review form setting detail translations. (Auth policies: RequireContentManagerRole)
|
|
379
|
+
* @param {string} patientReviewFormSettingId
|
|
380
|
+
* @param {TranslatePatientReviewFormSettingCommand} [translatePatientReviewFormSettingCommand] Translation settings. `BasisLanguageCode` accepts either `en` (ISO 639-1 two-letter) or `en-US` (locale) format.
|
|
381
|
+
* @param {*} [options] Override http request option.
|
|
382
|
+
* @throws {RequiredError}
|
|
383
|
+
*/
|
|
384
|
+
apiV1PatientreviewformsettingsPatientReviewFormSettingIdTranslatePost: function (patientReviewFormSettingId_1, translatePatientReviewFormSettingCommand_1) {
|
|
385
|
+
var args_1 = [];
|
|
386
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
387
|
+
args_1[_i - 2] = arguments[_i];
|
|
388
|
+
}
|
|
389
|
+
return __awaiter(_this, __spreadArray([patientReviewFormSettingId_1, translatePatientReviewFormSettingCommand_1], args_1, true), void 0, function (patientReviewFormSettingId, translatePatientReviewFormSettingCommand, options) {
|
|
390
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
391
|
+
if (options === void 0) { options = {}; }
|
|
392
|
+
return __generator(this, function (_a) {
|
|
393
|
+
switch (_a.label) {
|
|
394
|
+
case 0:
|
|
395
|
+
// verify required parameter 'patientReviewFormSettingId' is not null or undefined
|
|
396
|
+
(0, common_1.assertParamExists)('apiV1PatientreviewformsettingsPatientReviewFormSettingIdTranslatePost', 'patientReviewFormSettingId', patientReviewFormSettingId);
|
|
397
|
+
localVarPath = "/api/v1/patientreviewformsettings/{patientReviewFormSettingId}/translate"
|
|
398
|
+
.replace("{".concat("patientReviewFormSettingId", "}"), encodeURIComponent(String(patientReviewFormSettingId)));
|
|
399
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
400
|
+
if (configuration) {
|
|
401
|
+
baseOptions = configuration.baseOptions;
|
|
402
|
+
}
|
|
403
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
404
|
+
localVarHeaderParameter = {};
|
|
405
|
+
localVarQueryParameter = {};
|
|
406
|
+
// authentication oauth2 required
|
|
407
|
+
// oauth required
|
|
408
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
409
|
+
case 1:
|
|
410
|
+
// authentication oauth2 required
|
|
411
|
+
// oauth required
|
|
412
|
+
_a.sent();
|
|
413
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
414
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
415
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
416
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
417
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(translatePatientReviewFormSettingCommand, localVarRequestOptions, configuration);
|
|
418
|
+
return [2 /*return*/, {
|
|
419
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
420
|
+
options: localVarRequestOptions,
|
|
421
|
+
}];
|
|
422
|
+
}
|
|
423
|
+
});
|
|
424
|
+
});
|
|
425
|
+
},
|
|
426
|
+
/**
|
|
427
|
+
*
|
|
428
|
+
* @summary Create patient review form setting. (Auth policies: RequireContentManagerRole)
|
|
429
|
+
* @param {CreatePatientReviewFormSettingCommand} [createPatientReviewFormSettingCommand]
|
|
430
|
+
* @param {*} [options] Override http request option.
|
|
431
|
+
* @throws {RequiredError}
|
|
432
|
+
*/
|
|
433
|
+
apiV1PatientreviewformsettingsPost: function (createPatientReviewFormSettingCommand_1) {
|
|
434
|
+
var args_1 = [];
|
|
435
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
436
|
+
args_1[_i - 1] = arguments[_i];
|
|
437
|
+
}
|
|
438
|
+
return __awaiter(_this, __spreadArray([createPatientReviewFormSettingCommand_1], args_1, true), void 0, function (createPatientReviewFormSettingCommand, options) {
|
|
439
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
440
|
+
if (options === void 0) { options = {}; }
|
|
441
|
+
return __generator(this, function (_a) {
|
|
442
|
+
switch (_a.label) {
|
|
443
|
+
case 0:
|
|
444
|
+
localVarPath = "/api/v1/patientreviewformsettings";
|
|
445
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
446
|
+
if (configuration) {
|
|
447
|
+
baseOptions = configuration.baseOptions;
|
|
448
|
+
}
|
|
449
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
450
|
+
localVarHeaderParameter = {};
|
|
451
|
+
localVarQueryParameter = {};
|
|
452
|
+
// authentication oauth2 required
|
|
453
|
+
// oauth required
|
|
454
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
455
|
+
case 1:
|
|
456
|
+
// authentication oauth2 required
|
|
457
|
+
// oauth required
|
|
458
|
+
_a.sent();
|
|
459
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
460
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
461
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
462
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
463
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPatientReviewFormSettingCommand, localVarRequestOptions, configuration);
|
|
464
|
+
return [2 /*return*/, {
|
|
465
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
466
|
+
options: localVarRequestOptions,
|
|
467
|
+
}];
|
|
468
|
+
}
|
|
469
|
+
});
|
|
470
|
+
});
|
|
471
|
+
},
|
|
472
|
+
};
|
|
473
|
+
};
|
|
474
|
+
exports.PatientReviewFormSettingsApiAxiosParamCreator = PatientReviewFormSettingsApiAxiosParamCreator;
|
|
475
|
+
/**
|
|
476
|
+
* PatientReviewFormSettingsApi - functional programming interface
|
|
477
|
+
* @export
|
|
478
|
+
*/
|
|
479
|
+
var PatientReviewFormSettingsApiFp = function (configuration) {
|
|
480
|
+
var localVarAxiosParamCreator = (0, exports.PatientReviewFormSettingsApiAxiosParamCreator)(configuration);
|
|
481
|
+
return {
|
|
482
|
+
/**
|
|
483
|
+
*
|
|
484
|
+
* @summary Get patient review form settings. (Auth policies: RequireContentManagerRole)
|
|
485
|
+
* @param {string} [languageCode]
|
|
486
|
+
* @param {PatientReviewPlatform} [platform]
|
|
487
|
+
* @param {string} [hospitalId]
|
|
488
|
+
* @param {boolean} [showHidden]
|
|
489
|
+
* @param {number} [page]
|
|
490
|
+
* @param {number} [limit]
|
|
491
|
+
* @param {Date} [lastRetrieved]
|
|
492
|
+
* @param {*} [options] Override http request option.
|
|
493
|
+
* @throws {RequiredError}
|
|
494
|
+
*/
|
|
495
|
+
apiV1PatientreviewformsettingsGet: function (languageCode, platform, hospitalId, showHidden, page, limit, lastRetrieved, options) {
|
|
496
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
497
|
+
var localVarAxiosArgs;
|
|
498
|
+
return __generator(this, function (_a) {
|
|
499
|
+
switch (_a.label) {
|
|
500
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientreviewformsettingsGet(languageCode, platform, hospitalId, showHidden, page, limit, lastRetrieved, options)];
|
|
501
|
+
case 1:
|
|
502
|
+
localVarAxiosArgs = _a.sent();
|
|
503
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
504
|
+
}
|
|
505
|
+
});
|
|
506
|
+
});
|
|
507
|
+
},
|
|
508
|
+
/**
|
|
509
|
+
*
|
|
510
|
+
* @summary Delete patient review form setting. (Auth policies: RequireContentManagerRole)
|
|
511
|
+
* @param {string} patientReviewFormSettingId
|
|
512
|
+
* @param {boolean} [isPermanent]
|
|
513
|
+
* @param {*} [options] Override http request option.
|
|
514
|
+
* @throws {RequiredError}
|
|
515
|
+
*/
|
|
516
|
+
apiV1PatientreviewformsettingsPatientReviewFormSettingIdDelete: function (patientReviewFormSettingId, isPermanent, options) {
|
|
517
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
518
|
+
var localVarAxiosArgs;
|
|
519
|
+
return __generator(this, function (_a) {
|
|
520
|
+
switch (_a.label) {
|
|
521
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientreviewformsettingsPatientReviewFormSettingIdDelete(patientReviewFormSettingId, isPermanent, options)];
|
|
522
|
+
case 1:
|
|
523
|
+
localVarAxiosArgs = _a.sent();
|
|
524
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
525
|
+
}
|
|
526
|
+
});
|
|
527
|
+
});
|
|
528
|
+
},
|
|
529
|
+
/**
|
|
530
|
+
*
|
|
531
|
+
* @summary Get patient review form setting. (Auth policies: RequireContentManagerRole)
|
|
532
|
+
* @param {string} patientReviewFormSettingId
|
|
533
|
+
* @param {string} [languageCode] Language code. Accepts either `en` (ISO 639-1 two-letter) or `en-US` (locale) format.
|
|
534
|
+
* @param {*} [options] Override http request option.
|
|
535
|
+
* @throws {RequiredError}
|
|
536
|
+
*/
|
|
537
|
+
apiV1PatientreviewformsettingsPatientReviewFormSettingIdGet: function (patientReviewFormSettingId, languageCode, options) {
|
|
538
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
539
|
+
var localVarAxiosArgs;
|
|
540
|
+
return __generator(this, function (_a) {
|
|
541
|
+
switch (_a.label) {
|
|
542
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientreviewformsettingsPatientReviewFormSettingIdGet(patientReviewFormSettingId, languageCode, options)];
|
|
543
|
+
case 1:
|
|
544
|
+
localVarAxiosArgs = _a.sent();
|
|
545
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
546
|
+
}
|
|
547
|
+
});
|
|
548
|
+
});
|
|
549
|
+
},
|
|
550
|
+
/**
|
|
551
|
+
*
|
|
552
|
+
* @summary Update patient review form setting with JSON Merge Patch. (Auth policies: RequireContentManagerRole)
|
|
553
|
+
* @param {string} patientReviewFormSettingId
|
|
554
|
+
* @param {UpdatePatientReviewFormSettingCommand} [updatePatientReviewFormSettingCommand]
|
|
555
|
+
* @param {*} [options] Override http request option.
|
|
556
|
+
* @throws {RequiredError}
|
|
557
|
+
*/
|
|
558
|
+
apiV1PatientreviewformsettingsPatientReviewFormSettingIdPatch: function (patientReviewFormSettingId, updatePatientReviewFormSettingCommand, options) {
|
|
559
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
560
|
+
var localVarAxiosArgs;
|
|
561
|
+
return __generator(this, function (_a) {
|
|
562
|
+
switch (_a.label) {
|
|
563
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientreviewformsettingsPatientReviewFormSettingIdPatch(patientReviewFormSettingId, updatePatientReviewFormSettingCommand, options)];
|
|
564
|
+
case 1:
|
|
565
|
+
localVarAxiosArgs = _a.sent();
|
|
566
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
567
|
+
}
|
|
568
|
+
});
|
|
569
|
+
});
|
|
570
|
+
},
|
|
571
|
+
/**
|
|
572
|
+
*
|
|
573
|
+
* @summary Reactivate patient review form setting. (Auth policies: RequireContentManagerRole)
|
|
574
|
+
* @param {string} patientReviewFormSettingId
|
|
575
|
+
* @param {*} [options] Override http request option.
|
|
576
|
+
* @throws {RequiredError}
|
|
577
|
+
*/
|
|
578
|
+
apiV1PatientreviewformsettingsPatientReviewFormSettingIdReactivatePut: function (patientReviewFormSettingId, options) {
|
|
579
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
580
|
+
var localVarAxiosArgs;
|
|
581
|
+
return __generator(this, function (_a) {
|
|
582
|
+
switch (_a.label) {
|
|
583
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientreviewformsettingsPatientReviewFormSettingIdReactivatePut(patientReviewFormSettingId, options)];
|
|
584
|
+
case 1:
|
|
585
|
+
localVarAxiosArgs = _a.sent();
|
|
586
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
587
|
+
}
|
|
588
|
+
});
|
|
589
|
+
});
|
|
590
|
+
},
|
|
591
|
+
/**
|
|
592
|
+
*
|
|
593
|
+
* @summary Translate patient review form setting detail translations. (Auth policies: RequireContentManagerRole)
|
|
594
|
+
* @param {string} patientReviewFormSettingId
|
|
595
|
+
* @param {TranslatePatientReviewFormSettingCommand} [translatePatientReviewFormSettingCommand] Translation settings. `BasisLanguageCode` accepts either `en` (ISO 639-1 two-letter) or `en-US` (locale) format.
|
|
596
|
+
* @param {*} [options] Override http request option.
|
|
597
|
+
* @throws {RequiredError}
|
|
598
|
+
*/
|
|
599
|
+
apiV1PatientreviewformsettingsPatientReviewFormSettingIdTranslatePost: function (patientReviewFormSettingId, translatePatientReviewFormSettingCommand, options) {
|
|
600
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
601
|
+
var localVarAxiosArgs;
|
|
602
|
+
return __generator(this, function (_a) {
|
|
603
|
+
switch (_a.label) {
|
|
604
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientreviewformsettingsPatientReviewFormSettingIdTranslatePost(patientReviewFormSettingId, translatePatientReviewFormSettingCommand, options)];
|
|
605
|
+
case 1:
|
|
606
|
+
localVarAxiosArgs = _a.sent();
|
|
607
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
608
|
+
}
|
|
609
|
+
});
|
|
610
|
+
});
|
|
611
|
+
},
|
|
612
|
+
/**
|
|
613
|
+
*
|
|
614
|
+
* @summary Create patient review form setting. (Auth policies: RequireContentManagerRole)
|
|
615
|
+
* @param {CreatePatientReviewFormSettingCommand} [createPatientReviewFormSettingCommand]
|
|
616
|
+
* @param {*} [options] Override http request option.
|
|
617
|
+
* @throws {RequiredError}
|
|
618
|
+
*/
|
|
619
|
+
apiV1PatientreviewformsettingsPost: function (createPatientReviewFormSettingCommand, options) {
|
|
620
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
621
|
+
var localVarAxiosArgs;
|
|
622
|
+
return __generator(this, function (_a) {
|
|
623
|
+
switch (_a.label) {
|
|
624
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientreviewformsettingsPost(createPatientReviewFormSettingCommand, options)];
|
|
625
|
+
case 1:
|
|
626
|
+
localVarAxiosArgs = _a.sent();
|
|
627
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
628
|
+
}
|
|
629
|
+
});
|
|
630
|
+
});
|
|
631
|
+
},
|
|
632
|
+
};
|
|
633
|
+
};
|
|
634
|
+
exports.PatientReviewFormSettingsApiFp = PatientReviewFormSettingsApiFp;
|
|
635
|
+
/**
|
|
636
|
+
* PatientReviewFormSettingsApi - factory interface
|
|
637
|
+
* @export
|
|
638
|
+
*/
|
|
639
|
+
var PatientReviewFormSettingsApiFactory = function (configuration, basePath, axios) {
|
|
640
|
+
var localVarFp = (0, exports.PatientReviewFormSettingsApiFp)(configuration);
|
|
641
|
+
return {
|
|
642
|
+
/**
|
|
643
|
+
*
|
|
644
|
+
* @summary Get patient review form settings. (Auth policies: RequireContentManagerRole)
|
|
645
|
+
* @param {string} [languageCode]
|
|
646
|
+
* @param {PatientReviewPlatform} [platform]
|
|
647
|
+
* @param {string} [hospitalId]
|
|
648
|
+
* @param {boolean} [showHidden]
|
|
649
|
+
* @param {number} [page]
|
|
650
|
+
* @param {number} [limit]
|
|
651
|
+
* @param {Date} [lastRetrieved]
|
|
652
|
+
* @param {*} [options] Override http request option.
|
|
653
|
+
* @throws {RequiredError}
|
|
654
|
+
*/
|
|
655
|
+
apiV1PatientreviewformsettingsGet: function (languageCode, platform, hospitalId, showHidden, page, limit, lastRetrieved, options) {
|
|
656
|
+
return localVarFp.apiV1PatientreviewformsettingsGet(languageCode, platform, hospitalId, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
657
|
+
},
|
|
658
|
+
/**
|
|
659
|
+
*
|
|
660
|
+
* @summary Delete patient review form setting. (Auth policies: RequireContentManagerRole)
|
|
661
|
+
* @param {string} patientReviewFormSettingId
|
|
662
|
+
* @param {boolean} [isPermanent]
|
|
663
|
+
* @param {*} [options] Override http request option.
|
|
664
|
+
* @throws {RequiredError}
|
|
665
|
+
*/
|
|
666
|
+
apiV1PatientreviewformsettingsPatientReviewFormSettingIdDelete: function (patientReviewFormSettingId, isPermanent, options) {
|
|
667
|
+
return localVarFp.apiV1PatientreviewformsettingsPatientReviewFormSettingIdDelete(patientReviewFormSettingId, isPermanent, options).then(function (request) { return request(axios, basePath); });
|
|
668
|
+
},
|
|
669
|
+
/**
|
|
670
|
+
*
|
|
671
|
+
* @summary Get patient review form setting. (Auth policies: RequireContentManagerRole)
|
|
672
|
+
* @param {string} patientReviewFormSettingId
|
|
673
|
+
* @param {string} [languageCode] Language code. Accepts either `en` (ISO 639-1 two-letter) or `en-US` (locale) format.
|
|
674
|
+
* @param {*} [options] Override http request option.
|
|
675
|
+
* @throws {RequiredError}
|
|
676
|
+
*/
|
|
677
|
+
apiV1PatientreviewformsettingsPatientReviewFormSettingIdGet: function (patientReviewFormSettingId, languageCode, options) {
|
|
678
|
+
return localVarFp.apiV1PatientreviewformsettingsPatientReviewFormSettingIdGet(patientReviewFormSettingId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
679
|
+
},
|
|
680
|
+
/**
|
|
681
|
+
*
|
|
682
|
+
* @summary Update patient review form setting with JSON Merge Patch. (Auth policies: RequireContentManagerRole)
|
|
683
|
+
* @param {string} patientReviewFormSettingId
|
|
684
|
+
* @param {UpdatePatientReviewFormSettingCommand} [updatePatientReviewFormSettingCommand]
|
|
685
|
+
* @param {*} [options] Override http request option.
|
|
686
|
+
* @throws {RequiredError}
|
|
687
|
+
*/
|
|
688
|
+
apiV1PatientreviewformsettingsPatientReviewFormSettingIdPatch: function (patientReviewFormSettingId, updatePatientReviewFormSettingCommand, options) {
|
|
689
|
+
return localVarFp.apiV1PatientreviewformsettingsPatientReviewFormSettingIdPatch(patientReviewFormSettingId, updatePatientReviewFormSettingCommand, options).then(function (request) { return request(axios, basePath); });
|
|
690
|
+
},
|
|
691
|
+
/**
|
|
692
|
+
*
|
|
693
|
+
* @summary Reactivate patient review form setting. (Auth policies: RequireContentManagerRole)
|
|
694
|
+
* @param {string} patientReviewFormSettingId
|
|
695
|
+
* @param {*} [options] Override http request option.
|
|
696
|
+
* @throws {RequiredError}
|
|
697
|
+
*/
|
|
698
|
+
apiV1PatientreviewformsettingsPatientReviewFormSettingIdReactivatePut: function (patientReviewFormSettingId, options) {
|
|
699
|
+
return localVarFp.apiV1PatientreviewformsettingsPatientReviewFormSettingIdReactivatePut(patientReviewFormSettingId, options).then(function (request) { return request(axios, basePath); });
|
|
700
|
+
},
|
|
701
|
+
/**
|
|
702
|
+
*
|
|
703
|
+
* @summary Translate patient review form setting detail translations. (Auth policies: RequireContentManagerRole)
|
|
704
|
+
* @param {string} patientReviewFormSettingId
|
|
705
|
+
* @param {TranslatePatientReviewFormSettingCommand} [translatePatientReviewFormSettingCommand] Translation settings. `BasisLanguageCode` accepts either `en` (ISO 639-1 two-letter) or `en-US` (locale) format.
|
|
706
|
+
* @param {*} [options] Override http request option.
|
|
707
|
+
* @throws {RequiredError}
|
|
708
|
+
*/
|
|
709
|
+
apiV1PatientreviewformsettingsPatientReviewFormSettingIdTranslatePost: function (patientReviewFormSettingId, translatePatientReviewFormSettingCommand, options) {
|
|
710
|
+
return localVarFp.apiV1PatientreviewformsettingsPatientReviewFormSettingIdTranslatePost(patientReviewFormSettingId, translatePatientReviewFormSettingCommand, options).then(function (request) { return request(axios, basePath); });
|
|
711
|
+
},
|
|
712
|
+
/**
|
|
713
|
+
*
|
|
714
|
+
* @summary Create patient review form setting. (Auth policies: RequireContentManagerRole)
|
|
715
|
+
* @param {CreatePatientReviewFormSettingCommand} [createPatientReviewFormSettingCommand]
|
|
716
|
+
* @param {*} [options] Override http request option.
|
|
717
|
+
* @throws {RequiredError}
|
|
718
|
+
*/
|
|
719
|
+
apiV1PatientreviewformsettingsPost: function (createPatientReviewFormSettingCommand, options) {
|
|
720
|
+
return localVarFp.apiV1PatientreviewformsettingsPost(createPatientReviewFormSettingCommand, options).then(function (request) { return request(axios, basePath); });
|
|
721
|
+
},
|
|
722
|
+
};
|
|
723
|
+
};
|
|
724
|
+
exports.PatientReviewFormSettingsApiFactory = PatientReviewFormSettingsApiFactory;
|
|
725
|
+
/**
|
|
726
|
+
* PatientReviewFormSettingsApi - object-oriented interface
|
|
727
|
+
* @export
|
|
728
|
+
* @class PatientReviewFormSettingsApi
|
|
729
|
+
* @extends {BaseAPI}
|
|
730
|
+
*/
|
|
731
|
+
var PatientReviewFormSettingsApi = /** @class */ (function (_super) {
|
|
732
|
+
__extends(PatientReviewFormSettingsApi, _super);
|
|
733
|
+
function PatientReviewFormSettingsApi() {
|
|
734
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
735
|
+
}
|
|
736
|
+
/**
|
|
737
|
+
*
|
|
738
|
+
* @summary Get patient review form settings. (Auth policies: RequireContentManagerRole)
|
|
739
|
+
* @param {PatientReviewFormSettingsApiApiV1PatientreviewformsettingsGetRequest} requestParameters Request parameters.
|
|
740
|
+
* @param {*} [options] Override http request option.
|
|
741
|
+
* @throws {RequiredError}
|
|
742
|
+
* @memberof PatientReviewFormSettingsApi
|
|
743
|
+
*/
|
|
744
|
+
PatientReviewFormSettingsApi.prototype.apiV1PatientreviewformsettingsGet = function (requestParameters, options) {
|
|
745
|
+
var _this = this;
|
|
746
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
747
|
+
return (0, exports.PatientReviewFormSettingsApiFp)(this.configuration).apiV1PatientreviewformsettingsGet(requestParameters.languageCode, requestParameters.platform, requestParameters.hospitalId, requestParameters.showHidden, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
748
|
+
};
|
|
749
|
+
/**
|
|
750
|
+
*
|
|
751
|
+
* @summary Delete patient review form setting. (Auth policies: RequireContentManagerRole)
|
|
752
|
+
* @param {PatientReviewFormSettingsApiApiV1PatientreviewformsettingsPatientReviewFormSettingIdDeleteRequest} requestParameters Request parameters.
|
|
753
|
+
* @param {*} [options] Override http request option.
|
|
754
|
+
* @throws {RequiredError}
|
|
755
|
+
* @memberof PatientReviewFormSettingsApi
|
|
756
|
+
*/
|
|
757
|
+
PatientReviewFormSettingsApi.prototype.apiV1PatientreviewformsettingsPatientReviewFormSettingIdDelete = function (requestParameters, options) {
|
|
758
|
+
var _this = this;
|
|
759
|
+
return (0, exports.PatientReviewFormSettingsApiFp)(this.configuration).apiV1PatientreviewformsettingsPatientReviewFormSettingIdDelete(requestParameters.patientReviewFormSettingId, requestParameters.isPermanent, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
760
|
+
};
|
|
761
|
+
/**
|
|
762
|
+
*
|
|
763
|
+
* @summary Get patient review form setting. (Auth policies: RequireContentManagerRole)
|
|
764
|
+
* @param {PatientReviewFormSettingsApiApiV1PatientreviewformsettingsPatientReviewFormSettingIdGetRequest} requestParameters Request parameters.
|
|
765
|
+
* @param {*} [options] Override http request option.
|
|
766
|
+
* @throws {RequiredError}
|
|
767
|
+
* @memberof PatientReviewFormSettingsApi
|
|
768
|
+
*/
|
|
769
|
+
PatientReviewFormSettingsApi.prototype.apiV1PatientreviewformsettingsPatientReviewFormSettingIdGet = function (requestParameters, options) {
|
|
770
|
+
var _this = this;
|
|
771
|
+
return (0, exports.PatientReviewFormSettingsApiFp)(this.configuration).apiV1PatientreviewformsettingsPatientReviewFormSettingIdGet(requestParameters.patientReviewFormSettingId, requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
772
|
+
};
|
|
773
|
+
/**
|
|
774
|
+
*
|
|
775
|
+
* @summary Update patient review form setting with JSON Merge Patch. (Auth policies: RequireContentManagerRole)
|
|
776
|
+
* @param {PatientReviewFormSettingsApiApiV1PatientreviewformsettingsPatientReviewFormSettingIdPatchRequest} requestParameters Request parameters.
|
|
777
|
+
* @param {*} [options] Override http request option.
|
|
778
|
+
* @throws {RequiredError}
|
|
779
|
+
* @memberof PatientReviewFormSettingsApi
|
|
780
|
+
*/
|
|
781
|
+
PatientReviewFormSettingsApi.prototype.apiV1PatientreviewformsettingsPatientReviewFormSettingIdPatch = function (requestParameters, options) {
|
|
782
|
+
var _this = this;
|
|
783
|
+
return (0, exports.PatientReviewFormSettingsApiFp)(this.configuration).apiV1PatientreviewformsettingsPatientReviewFormSettingIdPatch(requestParameters.patientReviewFormSettingId, requestParameters.updatePatientReviewFormSettingCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
784
|
+
};
|
|
785
|
+
/**
|
|
786
|
+
*
|
|
787
|
+
* @summary Reactivate patient review form setting. (Auth policies: RequireContentManagerRole)
|
|
788
|
+
* @param {PatientReviewFormSettingsApiApiV1PatientreviewformsettingsPatientReviewFormSettingIdReactivatePutRequest} requestParameters Request parameters.
|
|
789
|
+
* @param {*} [options] Override http request option.
|
|
790
|
+
* @throws {RequiredError}
|
|
791
|
+
* @memberof PatientReviewFormSettingsApi
|
|
792
|
+
*/
|
|
793
|
+
PatientReviewFormSettingsApi.prototype.apiV1PatientreviewformsettingsPatientReviewFormSettingIdReactivatePut = function (requestParameters, options) {
|
|
794
|
+
var _this = this;
|
|
795
|
+
return (0, exports.PatientReviewFormSettingsApiFp)(this.configuration).apiV1PatientreviewformsettingsPatientReviewFormSettingIdReactivatePut(requestParameters.patientReviewFormSettingId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
796
|
+
};
|
|
797
|
+
/**
|
|
798
|
+
*
|
|
799
|
+
* @summary Translate patient review form setting detail translations. (Auth policies: RequireContentManagerRole)
|
|
800
|
+
* @param {PatientReviewFormSettingsApiApiV1PatientreviewformsettingsPatientReviewFormSettingIdTranslatePostRequest} requestParameters Request parameters.
|
|
801
|
+
* @param {*} [options] Override http request option.
|
|
802
|
+
* @throws {RequiredError}
|
|
803
|
+
* @memberof PatientReviewFormSettingsApi
|
|
804
|
+
*/
|
|
805
|
+
PatientReviewFormSettingsApi.prototype.apiV1PatientreviewformsettingsPatientReviewFormSettingIdTranslatePost = function (requestParameters, options) {
|
|
806
|
+
var _this = this;
|
|
807
|
+
return (0, exports.PatientReviewFormSettingsApiFp)(this.configuration).apiV1PatientreviewformsettingsPatientReviewFormSettingIdTranslatePost(requestParameters.patientReviewFormSettingId, requestParameters.translatePatientReviewFormSettingCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
808
|
+
};
|
|
809
|
+
/**
|
|
810
|
+
*
|
|
811
|
+
* @summary Create patient review form setting. (Auth policies: RequireContentManagerRole)
|
|
812
|
+
* @param {PatientReviewFormSettingsApiApiV1PatientreviewformsettingsPostRequest} requestParameters Request parameters.
|
|
813
|
+
* @param {*} [options] Override http request option.
|
|
814
|
+
* @throws {RequiredError}
|
|
815
|
+
* @memberof PatientReviewFormSettingsApi
|
|
816
|
+
*/
|
|
817
|
+
PatientReviewFormSettingsApi.prototype.apiV1PatientreviewformsettingsPost = function (requestParameters, options) {
|
|
818
|
+
var _this = this;
|
|
819
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
820
|
+
return (0, exports.PatientReviewFormSettingsApiFp)(this.configuration).apiV1PatientreviewformsettingsPost(requestParameters.createPatientReviewFormSettingCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
821
|
+
};
|
|
822
|
+
return PatientReviewFormSettingsApi;
|
|
823
|
+
}(base_1.BaseAPI));
|
|
824
|
+
exports.PatientReviewFormSettingsApi = PatientReviewFormSettingsApi;
|