oro-sdk 3.3.1 → 3.4.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/oro-sdk.cjs.development.js +5 -15
- 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 +5 -15
- package/dist/oro-sdk.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/helpers/patient-registration.ts +6 -5
@@ -1808,33 +1808,23 @@ function _registerPatient() {
|
|
1808
1808
|
return Promise.all([].concat(grantPromises, consultIndexPromises));
|
1809
1809
|
|
1810
1810
|
case 43:
|
1811
|
-
_context3.next = 45;
|
1812
|
-
return buildConsultSearchIndex(consult, workflow, oroClient)["catch"](function (err) {
|
1813
|
-
console.error('[SDK: registration] personal information not found or another error occured during search indexing', err);
|
1814
|
-
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
|
1815
|
-
|
1816
|
-
// this statement is to avoid failing the registration due to the failure in search indexing the consult, this practically implements a soft retry
|
1817
|
-
errorsThrown.push(err);
|
1818
|
-
});
|
1819
|
-
|
1820
|
-
case 45:
|
1821
1811
|
if (!(errorsThrown.length > 0)) {
|
1822
|
-
_context3.next =
|
1812
|
+
_context3.next = 45;
|
1823
1813
|
break;
|
1824
1814
|
}
|
1825
1815
|
|
1826
1816
|
throw errorsThrown;
|
1827
1817
|
|
1828
|
-
case
|
1829
|
-
_context3.next =
|
1818
|
+
case 45:
|
1819
|
+
_context3.next = 47;
|
1830
1820
|
return oroClient.consultClient.updateConsultByUUID(consult.uuid, {
|
1831
1821
|
statusMedical: initApis.MedicalStatus.New
|
1832
1822
|
});
|
1833
1823
|
|
1834
|
-
case
|
1824
|
+
case 47:
|
1835
1825
|
return _context3.abrupt("return", "break");
|
1836
1826
|
|
1837
|
-
case
|
1827
|
+
case 48:
|
1838
1828
|
case "end":
|
1839
1829
|
return _context3.stop();
|
1840
1830
|
}
|