oro-sdk-apis 1.36.0 → 1.37.0
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/dist/models/diagnosis.d.ts +9 -0
- package/dist/models/init.d.ts +3 -1
- package/dist/models/search.d.ts +28 -0
- package/dist/oro-sdk-apis.cjs.development.js +43 -0
- package/dist/oro-sdk-apis.cjs.development.js.map +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js.map +1 -1
- package/dist/oro-sdk-apis.esm.js +50 -1
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/index.d.ts +1 -0
- package/dist/services/search.d.ts +18 -0
- package/package.json +1 -1
- package/src/helpers/init.ts +3 -0
- package/src/models/diagnosis.ts +11 -1
- package/src/models/init.ts +3 -0
- package/src/models/search.ts +34 -0
- package/src/services/index.ts +1 -0
- package/src/services/search.ts +39 -0
package/dist/oro-sdk-apis.esm.js
CHANGED
@@ -965,6 +965,18 @@ var DrugType;
|
|
965
965
|
DrugType["Generic"] = "Generic";
|
966
966
|
DrugType["Instance"] = "Instance";
|
967
967
|
})(DrugType || (DrugType = {}));
|
968
|
+
/**
|
969
|
+
* Status of the prescription
|
970
|
+
* Right now, it only serves a soft delete flag
|
971
|
+
*/
|
972
|
+
|
973
|
+
|
974
|
+
var PrescriptionStatus;
|
975
|
+
|
976
|
+
(function (PrescriptionStatus) {
|
977
|
+
PrescriptionStatus["Existing"] = "Existing";
|
978
|
+
PrescriptionStatus["Deleted"] = "Deleted";
|
979
|
+
})(PrescriptionStatus || (PrescriptionStatus = {}));
|
968
980
|
|
969
981
|
var PlanStatus;
|
970
982
|
|
@@ -2224,6 +2236,41 @@ var GuardService = /*#__PURE__*/function () {
|
|
2224
2236
|
return GuardService;
|
2225
2237
|
}();
|
2226
2238
|
|
2239
|
+
var SearchService = /*#__PURE__*/function () {
|
2240
|
+
function SearchService(api, baseURL) {
|
2241
|
+
this.api = api;
|
2242
|
+
this.baseURL = baseURL;
|
2243
|
+
}
|
2244
|
+
/**
|
2245
|
+
* Creates search indexes for the terms passed in order to be able to search for it in the future
|
2246
|
+
* @param consultUUID
|
2247
|
+
* @param terms the search terms to be indexed
|
2248
|
+
*/
|
2249
|
+
|
2250
|
+
|
2251
|
+
var _proto = SearchService.prototype;
|
2252
|
+
|
2253
|
+
_proto.index = function index(consultUUID, terms) {
|
2254
|
+
return this.api.post(this.baseURL + "/v1/search", {
|
2255
|
+
consultUUID: consultUUID,
|
2256
|
+
terms: terms
|
2257
|
+
});
|
2258
|
+
}
|
2259
|
+
/**
|
2260
|
+
* Searches for the consultations corresponding to the search terms entered in the query
|
2261
|
+
* @param terms array of search terms
|
2262
|
+
*/
|
2263
|
+
;
|
2264
|
+
|
2265
|
+
_proto.search = function search(terms) {
|
2266
|
+
return this.api.post(this.baseURL + "/v1/search", {
|
2267
|
+
terms: terms
|
2268
|
+
});
|
2269
|
+
};
|
2270
|
+
|
2271
|
+
return SearchService;
|
2272
|
+
}();
|
2273
|
+
|
2227
2274
|
var PracticeService = /*#__PURE__*/function () {
|
2228
2275
|
function PracticeService(api, baseURL) {
|
2229
2276
|
this.api = api;
|
@@ -3104,6 +3151,7 @@ var init = function init(services, authenticationCallback, useLocalStorage) {
|
|
3104
3151
|
consultBaseURL = services.consultBaseURL,
|
3105
3152
|
vaultBaseURL = services.vaultBaseURL,
|
3106
3153
|
guardBaseURL = services.guardBaseURL,
|
3154
|
+
searchBaseURL = services.searchBaseURL,
|
3107
3155
|
workflowBaseURL = services.workflowBaseURL,
|
3108
3156
|
diagnosisBaseURL = services.diagnosisBaseURL;
|
3109
3157
|
var apiService = new APIService(useLocalStorage, undefined, authenticationCallback);
|
@@ -3114,11 +3162,12 @@ var init = function init(services, authenticationCallback, useLocalStorage) {
|
|
3114
3162
|
consultService: consultBaseURL ? new ConsultService(apiService, consultBaseURL) : undefined,
|
3115
3163
|
vaultService: vaultBaseURL ? new VaultService(apiService, vaultBaseURL) : undefined,
|
3116
3164
|
guardService: guardBaseURL ? new GuardService(apiService, guardBaseURL) : undefined,
|
3165
|
+
searchService: searchBaseURL ? new SearchService(apiService, searchBaseURL) : undefined,
|
3117
3166
|
workflowService: workflowBaseURL ? new WorkflowService(apiService, workflowBaseURL) : undefined,
|
3118
3167
|
diagnosisService: diagnosisBaseURL ? new DiagnosisService(apiService, diagnosisBaseURL) : undefined
|
3119
3168
|
};
|
3120
3169
|
};
|
3121
3170
|
|
3122
3171
|
export default init;
|
3123
|
-
export { APIService, ApisPracticeManager, AssignmentStatus, AssistantType, AuthenticationBadRequest, AuthenticationFailed, AuthenticationServerError, AuthenticationUnconfirmedEmail, AxiosService, ClosedReasonType, ConsultService, DiagnosisService, DocumentType, DrugType, FeeStatus, GuardService, IdentityCreationBadRequest, IdentityCreationConflict, IdentityCreationFailed, IndexKey, LicenseStatus, MedicalStatus, MetadataCategory, OtherRoleType, PaymentStatus, PeriodType, PlanStatus, PlanType, PracticeConfigKind, PracticeEmailKind, PracticeService, PractitionerStatus, PractitionnerRoleType, RateDimension, StripePriceType, SyncStatus, TaskStatus, TellerService, TransmissionKind, TransmissionStatus, VaultService, VisibilityType, WorkflowService, WorkflowType, hashToBase64String, init };
|
3172
|
+
export { APIService, ApisPracticeManager, AssignmentStatus, AssistantType, AuthenticationBadRequest, AuthenticationFailed, AuthenticationServerError, AuthenticationUnconfirmedEmail, AxiosService, ClosedReasonType, ConsultService, DiagnosisService, DocumentType, DrugType, FeeStatus, GuardService, IdentityCreationBadRequest, IdentityCreationConflict, IdentityCreationFailed, IndexKey, LicenseStatus, MedicalStatus, MetadataCategory, OtherRoleType, PaymentStatus, PeriodType, PlanStatus, PlanType, PracticeConfigKind, PracticeEmailKind, PracticeService, PractitionerStatus, PractitionnerRoleType, PrescriptionStatus, RateDimension, SearchService, StripePriceType, SyncStatus, TaskStatus, TellerService, TransmissionKind, TransmissionStatus, VaultService, VisibilityType, WorkflowService, WorkflowType, hashToBase64String, init };
|
3124
3173
|
//# sourceMappingURL=oro-sdk-apis.esm.js.map
|