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