oro-sdk 3.2.0 → 3.3.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/helpers/patient-registration.d.ts +4 -4
- package/dist/oro-sdk.cjs.development.js +9 -6
- package/dist/oro-sdk.cjs.development.js.map +1 -1
- package/dist/oro-sdk.cjs.production.min.js +1 -1
- package/dist/oro-sdk.cjs.production.min.js.map +1 -1
- package/dist/oro-sdk.esm.js +9 -6
- package/dist/oro-sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/helpers/patient-registration.ts +11 -6
package/dist/oro-sdk.esm.js
CHANGED
@@ -1805,7 +1805,7 @@ function _registerPatient() {
|
|
1805
1805
|
|
1806
1806
|
case 43:
|
1807
1807
|
_context3.next = 45;
|
1808
|
-
return buildConsultSearchIndex(consult
|
1808
|
+
return buildConsultSearchIndex(consult, workflow, oroClient)["catch"](function (err) {
|
1809
1809
|
console.error('[SDK: registration] personal information not found or another error occured during search indexing', err);
|
1810
1810
|
if (retry <= 1) return; // this statement is to avoid failing the registration due to the failure in search indexing the consult, this practically implements a soft retry
|
1811
1811
|
|
@@ -2148,8 +2148,8 @@ function extractPersonalInfoFromWorkflowData(_x24) {
|
|
2148
2148
|
return _extractPersonalInfoFromWorkflowData.apply(this, arguments);
|
2149
2149
|
}
|
2150
2150
|
/**
|
2151
|
-
* Creates the search index for the first
|
2152
|
-
* @param
|
2151
|
+
* Creates the search index for the first name, last name, and the short id of the given consultation
|
2152
|
+
* @param consult the consultation to be search indexed
|
2153
2153
|
* @param workflow the workflow data
|
2154
2154
|
* @param oroClient
|
2155
2155
|
*/
|
@@ -2186,14 +2186,17 @@ function buildConsultSearchIndex(_x25, _x26, _x27) {
|
|
2186
2186
|
}
|
2187
2187
|
|
2188
2188
|
function _buildConsultSearchIndex() {
|
2189
|
-
_buildConsultSearchIndex = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee11(
|
2189
|
+
_buildConsultSearchIndex = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee11(consult, workflow, oroClient) {
|
2190
2190
|
var terms, _yield$extractPersona, personalInfoPopulatedWfData, childPersonalInfoPopulatedWfData, otherPersonalInfoPopulatedWfData, personalInfo, childPersonalInfo, otherPersonalInfo;
|
2191
2191
|
|
2192
2192
|
return runtime_1.wrap(function _callee11$(_context11) {
|
2193
2193
|
while (1) {
|
2194
2194
|
switch (_context11.prev = _context11.next) {
|
2195
2195
|
case 0:
|
2196
|
-
terms = [
|
2196
|
+
terms = [{
|
2197
|
+
kind: 'consult-shortid',
|
2198
|
+
value: consult.shortId
|
2199
|
+
}];
|
2197
2200
|
_context11.next = 3;
|
2198
2201
|
return extractPersonalInfoFromWorkflowData(workflow);
|
2199
2202
|
|
@@ -2234,7 +2237,7 @@ function _buildConsultSearchIndex() {
|
|
2234
2237
|
}
|
2235
2238
|
|
2236
2239
|
_context11.next = 15;
|
2237
|
-
return oroClient.searchClient.index(
|
2240
|
+
return oroClient.searchClient.index(consult.uuid, terms);
|
2238
2241
|
|
2239
2242
|
case 15:
|
2240
2243
|
case "end":
|