oro-sdk 5.4.0 → 5.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1736,6 +1736,8 @@ var MAX_RETRIES$1 = 15;
1736
1736
  *
1737
1737
  * Creates a fake workflow in which the workflow data will reside
1738
1738
  *
1739
+ * @todo deprecate this function when using workflows and populating them from the app
1740
+ *
1739
1741
  * @param isTreatmentWorking the value from the `is treatment working` question
1740
1742
  * @param hasSideEffects the value from the `does the treatment have side effects` question
1741
1743
  * @param deliveryAddress the provided delivery address
@@ -1743,10 +1745,12 @@ var MAX_RETRIES$1 = 15;
1743
1745
  * @returns a workflow
1744
1746
  */
1745
1747
  function getRefillAnswersAsWorkflow(isTreatmentWorking, hasSideEffects, deliveryAddress, pharmacy) {
1746
- var _ref, _ref2, _selectedAnswers$push, _selectedAnswers$push2;
1747
- var selectedAnswers = [(_ref = {}, _ref['isTreatmentWorking'] = isTreatmentWorking, _ref), (_ref2 = {}, _ref2['hasSideEffects'] = hasSideEffects, _ref2)];
1748
- if (deliveryAddress) selectedAnswers.push((_selectedAnswers$push = {}, _selectedAnswers$push['deliveryAddress'] = deliveryAddress, _selectedAnswers$push));
1749
- if (pharmacy) selectedAnswers.push((_selectedAnswers$push2 = {}, _selectedAnswers$push2['pharmacy'] = JSON.stringify(pharmacy), _selectedAnswers$push2));
1748
+ var _ref, _extends2, _extends3;
1749
+ var selectedAnswers = [(_ref = {}, _ref['isTreatmentWorking'] = isTreatmentWorking, _ref['hasSideEffects'] = hasSideEffects, _ref)];
1750
+ // appends the delivery address to the first page of the answers if provided
1751
+ if (deliveryAddress) selectedAnswers[0] = _extends({}, selectedAnswers[0], (_extends2 = {}, _extends2['deliveryAddress'] = deliveryAddress, _extends2));
1752
+ // appends the pharmacy to the first page of the answers if provided
1753
+ if (pharmacy) selectedAnswers[0] = _extends({}, selectedAnswers[0], (_extends3 = {}, _extends3['pharmacy'] = JSON.stringify(pharmacy), _extends3));
1750
1754
  return {
1751
1755
  id: '32573a20-6f1d-49be-9ad3-b87c58074979',
1752
1756
  createdAt: '2022-10-03T00:00:00.000Z',
@@ -1805,7 +1809,6 @@ function getRefillAnswersAsWorkflow(isTreatmentWorking, hasSideEffects, delivery
1805
1809
  kind: 'online-pharmacy-picker',
1806
1810
  label: 'Which pharmacy do you want the prescription sent to?',
1807
1811
  metaCategory: MetadataCategory.Refill,
1808
- minorLabel: ' (Optional)',
1809
1812
  summaryLabel: 'Your pharmacy'
1810
1813
  },
1811
1814
  youAddress: {
@@ -1825,43 +1828,48 @@ function getRefillAnswersAsWorkflow(isTreatmentWorking, hasSideEffects, delivery
1825
1828
  * @param populatedRefillWorkflow the refill workflow data
1826
1829
  * @param oroClient
1827
1830
  */
1828
- function createRefill(_x, _x2, _x3) {
1831
+ function createRefill(_x, _x2, _x3, _x4, _x5) {
1829
1832
  return _createRefill.apply(this, arguments);
1830
1833
  }
1831
1834
  function _createRefill() {
1832
- _createRefill = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(consultRequest, populatedRefillWorkflow, oroClient) {
1833
- var retry, errorsThrown, newConsult, lockboxUuid;
1835
+ _createRefill = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(consultRequest, populatedRefillWorkflow, oroClient, indexSearch, onProgress) {
1836
+ var retry, errorsThrown, newConsult, lockboxUuid, stepsTotalNum, currentStep, rawConsultationManifest, rawConsultation;
1834
1837
  return _regeneratorRuntime().wrap(function _callee$(_context) {
1835
1838
  while (1) {
1836
1839
  switch (_context.prev = _context.next) {
1837
1840
  case 0:
1841
+ if (indexSearch === void 0) {
1842
+ indexSearch = true;
1843
+ }
1838
1844
  retry = MAX_RETRIES$1;
1839
1845
  errorsThrown = [];
1840
- case 2:
1846
+ newConsult = undefined;
1847
+ stepsTotalNum = 6;
1848
+ case 5:
1841
1849
  if (!(retry > 0)) {
1842
- _context.next = 28;
1850
+ _context.next = 54;
1843
1851
  break;
1844
1852
  }
1845
- _context.prev = 3;
1846
- if (newConsult) {
1847
- _context.next = 8;
1848
- break;
1849
- }
1850
- _context.next = 7;
1853
+ _context.prev = 6;
1854
+ currentStep = 0;
1855
+ if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'create_consult');
1856
+ // Creating refill consult
1857
+ _context.next = 11;
1851
1858
  return getOrCreatePatientConsultationUuid(consultRequest, oroClient);
1852
- case 7:
1859
+ case 11:
1853
1860
  newConsult = _context.sent;
1854
- case 8:
1861
+ if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'get_patient_grant');
1855
1862
  if (lockboxUuid) {
1856
- _context.next = 12;
1863
+ _context.next = 17;
1857
1864
  break;
1858
1865
  }
1859
- _context.next = 11;
1866
+ _context.next = 16;
1860
1867
  return oroClient.getGrants();
1861
- case 11:
1868
+ case 16:
1862
1869
  lockboxUuid = _context.sent[0].lockboxUuid;
1863
- case 12:
1864
- _context.next = 14;
1870
+ case 17:
1871
+ if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'store_patient_data');
1872
+ _context.next = 20;
1865
1873
  return oroClient.getOrInsertJsonData(lockboxUuid, populatedRefillWorkflow, {
1866
1874
  category: MetadataCategory.Refill,
1867
1875
  documentType: DocumentType.PopulatedWorkflowData,
@@ -1869,39 +1877,95 @@ function _createRefill() {
1869
1877
  }, {}, {
1870
1878
  withNotification: true
1871
1879
  })["catch"](function (err) {
1872
- console.error('[SDK: prescription refill] Some errors happened during refill data upload', err);
1880
+ console.error('[SDK: prescription refill request] Some errors happened during refill data upload', err);
1873
1881
  errorsThrown.push(err);
1874
1882
  });
1875
- case 14:
1883
+ case 20:
1884
+ if (!indexSearch) {
1885
+ _context.next = 36;
1886
+ break;
1887
+ }
1888
+ if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'fetching_parent_workflow_data');
1889
+ // raw workflow from parent consultation (contains first and last name of patient)
1890
+ _context.next = 24;
1891
+ return oroClient.getLockboxManifest(lockboxUuid, {
1892
+ category: MetadataCategory.Raw,
1893
+ consultationId: consultRequest.uuidParent
1894
+ }, false);
1895
+ case 24:
1896
+ rawConsultationManifest = _context.sent;
1897
+ if (!(rawConsultationManifest && rawConsultationManifest.length > 0)) {
1898
+ _context.next = 34;
1899
+ break;
1900
+ }
1901
+ _context.next = 28;
1902
+ return oroClient.getJsonData(lockboxUuid, rawConsultationManifest[0].dataUuid);
1903
+ case 28:
1904
+ rawConsultation = _context.sent;
1905
+ if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'search_indexing');
1906
+ _context.next = 32;
1907
+ return buildConsultSearchIndex(newConsult, rawConsultation, oroClient)["catch"](function (err) {
1908
+ console.error('[SDK: prescription refill request] personal information not found or another error occured during search indexing', err);
1909
+ 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
1910
+ errorsThrown.push(err);
1911
+ });
1912
+ case 32:
1913
+ _context.next = 36;
1914
+ break;
1915
+ case 34:
1916
+ console.error('[SDK: prescription refill request] parent consultation\'s raw data not found');
1917
+ errorsThrown.push(Error('RawData Not Found'));
1918
+ case 36:
1876
1919
  if (!(errorsThrown.length > 0)) {
1877
- _context.next = 16;
1920
+ _context.next = 38;
1878
1921
  break;
1879
1922
  }
1880
1923
  throw errorsThrown;
1881
- case 16:
1882
- _context.next = 18;
1924
+ case 38:
1925
+ _context.next = 40;
1883
1926
  return oroClient.consultClient.updateConsultByUUID(newConsult.uuid, {
1884
1927
  statusMedical: MedicalStatus.New
1885
1928
  });
1886
- case 18:
1887
- _context.next = 25;
1888
- break;
1889
- case 20:
1890
- _context.prev = 20;
1891
- _context.t0 = _context["catch"](3);
1892
- console.error("[SDK] Error occured during refill: " + _context.t0 + ", retrying... Retries remaining: " + retry);
1929
+ case 40:
1930
+ // if we got through the complete flow, the registration succeeded
1931
+ if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'success');
1932
+ _context.next = 43;
1933
+ return oroClient.cleanIndex();
1934
+ case 43:
1935
+ return _context.abrupt("break", 54);
1936
+ case 46:
1937
+ _context.prev = 46;
1938
+ _context.t0 = _context["catch"](6);
1939
+ console.error("[SDK] Error occured during prescription refill request: " + _context.t0 + ", retrying... Retries remaining: " + retry);
1893
1940
  errorsThrown = [];
1894
- return _context.abrupt("continue", 25);
1895
- case 25:
1941
+ return _context.abrupt("continue", 51);
1942
+ case 51:
1896
1943
  retry--;
1897
- _context.next = 2;
1944
+ _context.next = 5;
1898
1945
  break;
1899
- case 28:
1946
+ case 54:
1947
+ if (!(retry <= 0)) {
1948
+ _context.next = 57;
1949
+ break;
1950
+ }
1951
+ console.error('[SDK] prescription refill request failed: MAX_RETRIES reached');
1952
+ throw 'RegistrationFailed';
1953
+ case 57:
1954
+ if (newConsult) {
1955
+ _context.next = 60;
1956
+ break;
1957
+ }
1958
+ console.error('[SDK] prescription refill request failed: MAX_RETRIES reached');
1959
+ throw 'RegistrationFailed';
1960
+ case 60:
1961
+ console.log('Successfully Created refill');
1962
+ return _context.abrupt("return", newConsult);
1963
+ case 62:
1900
1964
  case "end":
1901
1965
  return _context.stop();
1902
1966
  }
1903
1967
  }
1904
- }, _callee, null, [[3, 20]]);
1968
+ }, _callee, null, [[6, 46]]);
1905
1969
  }));
1906
1970
  return _createRefill.apply(this, arguments);
1907
1971
  }
@@ -2333,26 +2397,29 @@ var OroClient = /*#__PURE__*/function () {
2333
2397
  _proto.createRefill =
2334
2398
  /*#__PURE__*/
2335
2399
  function () {
2336
- var _createRefill2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(consult, populatedRefillWorkflow) {
2400
+ var _createRefill2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(consult, populatedRefillWorkflow, indexSearch, onProgress) {
2337
2401
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
2338
2402
  while (1) {
2339
2403
  switch (_context8.prev = _context8.next) {
2340
2404
  case 0:
2405
+ if (indexSearch === void 0) {
2406
+ indexSearch = true;
2407
+ }
2341
2408
  if (this.rsa) {
2342
- _context8.next = 2;
2409
+ _context8.next = 3;
2343
2410
  break;
2344
2411
  }
2345
2412
  throw IncompleteAuthentication;
2346
- case 2:
2347
- return _context8.abrupt("return", createRefill(consult, populatedRefillWorkflow, this));
2348
2413
  case 3:
2414
+ return _context8.abrupt("return", createRefill(consult, populatedRefillWorkflow, this, indexSearch, onProgress));
2415
+ case 4:
2349
2416
  case "end":
2350
2417
  return _context8.stop();
2351
2418
  }
2352
2419
  }
2353
2420
  }, _callee8, this);
2354
2421
  }));
2355
- function createRefill$1(_x19, _x20) {
2422
+ function createRefill$1(_x19, _x20, _x21, _x22) {
2356
2423
  return _createRefill2.apply(this, arguments);
2357
2424
  }
2358
2425
  return createRefill$1;
@@ -2413,7 +2480,7 @@ var OroClient = /*#__PURE__*/function () {
2413
2480
  }
2414
2481
  }, _callee9);
2415
2482
  }));
2416
- return function (_x21) {
2483
+ return function (_x23) {
2417
2484
  return _ref2.apply(this, arguments);
2418
2485
  };
2419
2486
  }())).then(function (consults) {
@@ -2517,7 +2584,7 @@ var OroClient = /*#__PURE__*/function () {
2517
2584
  }
2518
2585
  }, _callee11, this);
2519
2586
  }));
2520
- function vaultIndexAdd(_x22, _x23) {
2587
+ function vaultIndexAdd(_x24, _x25) {
2521
2588
  return _vaultIndexAdd.apply(this, arguments);
2522
2589
  }
2523
2590
  return vaultIndexAdd;
@@ -2568,7 +2635,7 @@ var OroClient = /*#__PURE__*/function () {
2568
2635
  }
2569
2636
  }, _callee12, this);
2570
2637
  }));
2571
- function grantLockbox(_x24, _x25, _x26) {
2638
+ function grantLockbox(_x26, _x27, _x28) {
2572
2639
  return _grantLockbox.apply(this, arguments);
2573
2640
  }
2574
2641
  return grantLockbox;
@@ -2632,7 +2699,7 @@ var OroClient = /*#__PURE__*/function () {
2632
2699
  }
2633
2700
  }, _callee13, this);
2634
2701
  }));
2635
- function createMessageData(_x27, _x28, _x29, _x30, _x31) {
2702
+ function createMessageData(_x29, _x30, _x31, _x32, _x33) {
2636
2703
  return _createMessageData.apply(this, arguments);
2637
2704
  }
2638
2705
  return createMessageData;
@@ -2709,7 +2776,7 @@ var OroClient = /*#__PURE__*/function () {
2709
2776
  }
2710
2777
  }, _callee14, this);
2711
2778
  }));
2712
- function createMessageAttachmentData(_x32, _x33, _x34, _x35, _x36) {
2779
+ function createMessageAttachmentData(_x34, _x35, _x36, _x37, _x38) {
2713
2780
  return _createMessageAttachmentData.apply(this, arguments);
2714
2781
  }
2715
2782
  return createMessageAttachmentData;
@@ -2780,7 +2847,7 @@ var OroClient = /*#__PURE__*/function () {
2780
2847
  }
2781
2848
  }, _callee15, this);
2782
2849
  }));
2783
- function createConsultationAttachmentData(_x37, _x38, _x39, _x40, _x41, _x42, _x43) {
2850
+ function createConsultationAttachmentData(_x39, _x40, _x41, _x42, _x43, _x44, _x45) {
2784
2851
  return _createConsultationAttachmentData.apply(this, arguments);
2785
2852
  }
2786
2853
  return createConsultationAttachmentData;
@@ -2843,7 +2910,7 @@ var OroClient = /*#__PURE__*/function () {
2843
2910
  }
2844
2911
  }, _callee16, this);
2845
2912
  }));
2846
- function createJsonData(_x44, _x45, _x46, _x47, _x48, _x49, _x50) {
2913
+ function createJsonData(_x46, _x47, _x48, _x49, _x50, _x51, _x52) {
2847
2914
  return _createJsonData.apply(this, arguments);
2848
2915
  }
2849
2916
  return createJsonData;
@@ -2903,7 +2970,7 @@ var OroClient = /*#__PURE__*/function () {
2903
2970
  }
2904
2971
  }, _callee17, this);
2905
2972
  }));
2906
- function getOrInsertJsonData(_x51, _x52, _x53, _x54, _x55) {
2973
+ function getOrInsertJsonData(_x53, _x54, _x55, _x56, _x57) {
2907
2974
  return _getOrInsertJsonData.apply(this, arguments);
2908
2975
  }
2909
2976
  return getOrInsertJsonData;
@@ -2966,7 +3033,7 @@ var OroClient = /*#__PURE__*/function () {
2966
3033
  }
2967
3034
  }, _callee18, this);
2968
3035
  }));
2969
- function createBytesData(_x56, _x57, _x58, _x59, _x60, _x61, _x62) {
3036
+ function createBytesData(_x58, _x59, _x60, _x61, _x62, _x63, _x64) {
2970
3037
  return _createBytesData.apply(this, arguments);
2971
3038
  }
2972
3039
  return createBytesData;
@@ -3012,7 +3079,7 @@ var OroClient = /*#__PURE__*/function () {
3012
3079
  }
3013
3080
  }, _callee19, this);
3014
3081
  }));
3015
- function getJsonData(_x63, _x64, _x65) {
3082
+ function getJsonData(_x65, _x66, _x67) {
3016
3083
  return _getJsonData.apply(this, arguments);
3017
3084
  }
3018
3085
  return getJsonData;
@@ -3054,7 +3121,7 @@ var OroClient = /*#__PURE__*/function () {
3054
3121
  }
3055
3122
  }, _callee20, this);
3056
3123
  }));
3057
- function getBytesData(_x66, _x67, _x68) {
3124
+ function getBytesData(_x68, _x69, _x70) {
3058
3125
  return _getBytesData.apply(this, arguments);
3059
3126
  }
3060
3127
  return getBytesData;
@@ -3165,7 +3232,7 @@ var OroClient = /*#__PURE__*/function () {
3165
3232
  }
3166
3233
  }, _callee21, this);
3167
3234
  }));
3168
- function getGrants(_x69) {
3235
+ function getGrants(_x71) {
3169
3236
  return _getGrants.apply(this, arguments);
3170
3237
  }
3171
3238
  return getGrants;
@@ -3250,7 +3317,7 @@ var OroClient = /*#__PURE__*/function () {
3250
3317
  }
3251
3318
  }, _callee23, this);
3252
3319
  }));
3253
- function getCachedSecretCryptor(_x70, _x71) {
3320
+ function getCachedSecretCryptor(_x72, _x73) {
3254
3321
  return _getCachedSecretCryptor.apply(this, arguments);
3255
3322
  }
3256
3323
  return getCachedSecretCryptor;
@@ -3286,7 +3353,7 @@ var OroClient = /*#__PURE__*/function () {
3286
3353
  }
3287
3354
  }, _callee24, this);
3288
3355
  }));
3289
- function getPersonalInformationsFromConsultId(_x72, _x73, _x74) {
3356
+ function getPersonalInformationsFromConsultId(_x74, _x75, _x76) {
3290
3357
  return _getPersonalInformationsFromConsultId.apply(this, arguments);
3291
3358
  }
3292
3359
  return getPersonalInformationsFromConsultId;
@@ -3321,7 +3388,7 @@ var OroClient = /*#__PURE__*/function () {
3321
3388
  }
3322
3389
  }, _callee25, this);
3323
3390
  }));
3324
- function getMedicalDataFromConsultId(_x75, _x76) {
3391
+ function getMedicalDataFromConsultId(_x77, _x78) {
3325
3392
  return _getMedicalDataFromConsultId.apply(this, arguments);
3326
3393
  }
3327
3394
  return getMedicalDataFromConsultId;
@@ -3402,7 +3469,7 @@ var OroClient = /*#__PURE__*/function () {
3402
3469
  }
3403
3470
  }, _callee26);
3404
3471
  }));
3405
- return function (_x80) {
3472
+ return function (_x82) {
3406
3473
  return _ref3.apply(this, arguments);
3407
3474
  };
3408
3475
  }()));
@@ -3435,7 +3502,7 @@ var OroClient = /*#__PURE__*/function () {
3435
3502
  }
3436
3503
  }, _callee27, this);
3437
3504
  }));
3438
- function getMetaCategoryFromConsultId(_x77, _x78, _x79) {
3505
+ function getMetaCategoryFromConsultId(_x79, _x80, _x81) {
3439
3506
  return _getMetaCategoryFromConsultId.apply(this, arguments);
3440
3507
  }
3441
3508
  return getMetaCategoryFromConsultId;
@@ -3507,7 +3574,7 @@ var OroClient = /*#__PURE__*/function () {
3507
3574
  }
3508
3575
  }, _callee28, this);
3509
3576
  }));
3510
- function getPersonalInformations(_x81) {
3577
+ function getPersonalInformations(_x83) {
3511
3578
  return _getPersonalInformations.apply(this, arguments);
3512
3579
  }
3513
3580
  return getPersonalInformations;
@@ -3548,7 +3615,7 @@ var OroClient = /*#__PURE__*/function () {
3548
3615
  }
3549
3616
  }, _callee29, this);
3550
3617
  }));
3551
- function getGrantFromConsultId(_x82) {
3618
+ function getGrantFromConsultId(_x84) {
3552
3619
  return _getGrantFromConsultId.apply(this, arguments);
3553
3620
  }
3554
3621
  return getGrantFromConsultId;
@@ -3589,7 +3656,7 @@ var OroClient = /*#__PURE__*/function () {
3589
3656
  }
3590
3657
  }, _callee30, this);
3591
3658
  }));
3592
- function getIdentityFromConsultId(_x83) {
3659
+ function getIdentityFromConsultId(_x85) {
3593
3660
  return _getIdentityFromConsultId.apply(this, arguments);
3594
3661
  }
3595
3662
  return getIdentityFromConsultId;
@@ -3658,7 +3725,7 @@ var OroClient = /*#__PURE__*/function () {
3658
3725
  }
3659
3726
  }, _callee31);
3660
3727
  }));
3661
- return function (_x89) {
3728
+ return function (_x91) {
3662
3729
  return _ref4.apply(this, arguments);
3663
3730
  };
3664
3731
  }())).then(function (manifest) {
@@ -3672,7 +3739,7 @@ var OroClient = /*#__PURE__*/function () {
3672
3739
  }
3673
3740
  }, _callee32, this);
3674
3741
  }));
3675
- function getLockboxManifest(_x84, _x85, _x86, _x87, _x88) {
3742
+ function getLockboxManifest(_x86, _x87, _x88, _x89, _x90) {
3676
3743
  return _getLockboxManifest.apply(this, arguments);
3677
3744
  }
3678
3745
  return getLockboxManifest;
@@ -3729,7 +3796,7 @@ var OroClient = /*#__PURE__*/function () {
3729
3796
  }
3730
3797
  }, _callee33, this);
3731
3798
  }));
3732
- function createPersonalInformations(_x90, _x91, _x92) {
3799
+ function createPersonalInformations(_x92, _x93, _x94) {
3733
3800
  return _createPersonalInformations.apply(this, arguments);
3734
3801
  }
3735
3802
  return createPersonalInformations;
@@ -3786,7 +3853,7 @@ var OroClient = /*#__PURE__*/function () {
3786
3853
  }
3787
3854
  }, _callee34, this);
3788
3855
  }));
3789
- function createUserPreference(_x93, _x94, _x95) {
3856
+ function createUserPreference(_x95, _x96, _x97) {
3790
3857
  return _createUserPreference.apply(this, arguments);
3791
3858
  }
3792
3859
  return createUserPreference;
@@ -3845,7 +3912,7 @@ var OroClient = /*#__PURE__*/function () {
3845
3912
  }
3846
3913
  }, _callee35, this);
3847
3914
  }));
3848
- function getDataFromGrant(_x96, _x97) {
3915
+ function getDataFromGrant(_x98, _x99) {
3849
3916
  return _getDataFromGrant.apply(this, arguments);
3850
3917
  }
3851
3918
  return getDataFromGrant;
@@ -3886,7 +3953,7 @@ var OroClient = /*#__PURE__*/function () {
3886
3953
  }
3887
3954
  }, _callee36, this);
3888
3955
  }));
3889
- function getUserPreferenceFromConsultId(_x98) {
3956
+ function getUserPreferenceFromConsultId(_x100) {
3890
3957
  return _getUserPreferenceFromConsultId.apply(this, arguments);
3891
3958
  }
3892
3959
  return getUserPreferenceFromConsultId;
@@ -3929,7 +3996,7 @@ var OroClient = /*#__PURE__*/function () {
3929
3996
  }
3930
3997
  }, _callee37, this);
3931
3998
  }));
3932
- function getUserPreference(_x99) {
3999
+ function getUserPreference(_x101) {
3933
4000
  return _getUserPreference.apply(this, arguments);
3934
4001
  }
3935
4002
  return getUserPreference;
@@ -3970,7 +4037,7 @@ var OroClient = /*#__PURE__*/function () {
3970
4037
  }
3971
4038
  }, _callee38, this);
3972
4039
  }));
3973
- function getRecoveryDataFromConsultId(_x100) {
4040
+ function getRecoveryDataFromConsultId(_x102) {
3974
4041
  return _getRecoveryDataFromConsultId.apply(this, arguments);
3975
4042
  }
3976
4043
  return getRecoveryDataFromConsultId;
@@ -4013,7 +4080,7 @@ var OroClient = /*#__PURE__*/function () {
4013
4080
  }
4014
4081
  }, _callee39, this);
4015
4082
  }));
4016
- function getRecoveryData(_x101) {
4083
+ function getRecoveryData(_x103) {
4017
4084
  return _getRecoveryData.apply(this, arguments);
4018
4085
  }
4019
4086
  return getRecoveryData;
@@ -4064,7 +4131,7 @@ var OroClient = /*#__PURE__*/function () {
4064
4131
  }
4065
4132
  }, _callee40);
4066
4133
  }));
4067
- return function (_x103) {
4134
+ return function (_x105) {
4068
4135
  return _ref5.apply(this, arguments);
4069
4136
  };
4070
4137
  }())).then(function (promise) {
@@ -4082,7 +4149,7 @@ var OroClient = /*#__PURE__*/function () {
4082
4149
  }
4083
4150
  }, _callee41, this);
4084
4151
  }));
4085
- function getAssignedConsultations(_x102) {
4152
+ function getAssignedConsultations(_x104) {
4086
4153
  return _getAssignedConsultations.apply(this, arguments);
4087
4154
  }
4088
4155
  return getAssignedConsultations;
@@ -4146,7 +4213,7 @@ var OroClient = /*#__PURE__*/function () {
4146
4213
  }
4147
4214
  }, _callee42);
4148
4215
  }));
4149
- return function (_x106) {
4216
+ return function (_x108) {
4150
4217
  return _ref6.apply(this, arguments);
4151
4218
  };
4152
4219
  }()));
@@ -4159,7 +4226,7 @@ var OroClient = /*#__PURE__*/function () {
4159
4226
  }
4160
4227
  }, _callee43, this);
4161
4228
  }));
4162
- function getPastConsultationsFromConsultId(_x104, _x105) {
4229
+ function getPastConsultationsFromConsultId(_x106, _x107) {
4163
4230
  return _getPastConsultationsFromConsultId.apply(this, arguments);
4164
4231
  }
4165
4232
  return getPastConsultationsFromConsultId;
@@ -4212,7 +4279,7 @@ var OroClient = /*#__PURE__*/function () {
4212
4279
  }
4213
4280
  }, _callee44, this);
4214
4281
  }));
4215
- function getPatientConsultationData(_x107, _x108) {
4282
+ function getPatientConsultationData(_x109, _x110) {
4216
4283
  return _getPatientConsultationData.apply(this, arguments);
4217
4284
  }
4218
4285
  return getPatientConsultationData;
@@ -4242,7 +4309,7 @@ var OroClient = /*#__PURE__*/function () {
4242
4309
  }
4243
4310
  }, _callee45, this);
4244
4311
  }));
4245
- function getPatientPrescriptionsList(_x109) {
4312
+ function getPatientPrescriptionsList(_x111) {
4246
4313
  return _getPatientPrescriptionsList.apply(this, arguments);
4247
4314
  }
4248
4315
  return getPatientPrescriptionsList;
@@ -4272,7 +4339,7 @@ var OroClient = /*#__PURE__*/function () {
4272
4339
  }
4273
4340
  }, _callee46, this);
4274
4341
  }));
4275
- function getPatientResultsList(_x110) {
4342
+ function getPatientResultsList(_x112) {
4276
4343
  return _getPatientResultsList.apply(this, arguments);
4277
4344
  }
4278
4345
  return getPatientResultsList;
@@ -4302,7 +4369,7 @@ var OroClient = /*#__PURE__*/function () {
4302
4369
  }
4303
4370
  }, _callee47, this);
4304
4371
  }));
4305
- function getPatientTreatmentPlans(_x111) {
4372
+ function getPatientTreatmentPlans(_x113) {
4306
4373
  return _getPatientTreatmentPlans.apply(this, arguments);
4307
4374
  }
4308
4375
  return getPatientTreatmentPlans;
@@ -4334,7 +4401,7 @@ var OroClient = /*#__PURE__*/function () {
4334
4401
  }
4335
4402
  }, _callee48, this);
4336
4403
  }));
4337
- function getPatientTreatmentPlanByUuid(_x112, _x113) {
4404
+ function getPatientTreatmentPlanByUuid(_x114, _x115) {
4338
4405
  return _getPatientTreatmentPlanByUuid.apply(this, arguments);
4339
4406
  }
4340
4407
  return getPatientTreatmentPlanByUuid;
@@ -4387,7 +4454,7 @@ var OroClient = /*#__PURE__*/function () {
4387
4454
  }
4388
4455
  }, _callee49);
4389
4456
  }));
4390
- return function (_x117) {
4457
+ return function (_x119) {
4391
4458
  return _ref7.apply(this, arguments);
4392
4459
  };
4393
4460
  }()));
@@ -4403,7 +4470,7 @@ var OroClient = /*#__PURE__*/function () {
4403
4470
  }
4404
4471
  }, _callee50, this);
4405
4472
  }));
4406
- function getPatientDocumentsList(_x114, _x115, _x116) {
4473
+ function getPatientDocumentsList(_x116, _x117, _x118) {
4407
4474
  return _getPatientDocumentsList.apply(this, arguments);
4408
4475
  }
4409
4476
  return getPatientDocumentsList;
@@ -4458,7 +4525,7 @@ var OroClient = /*#__PURE__*/function () {
4458
4525
  }
4459
4526
  }, _callee51, this);
4460
4527
  }));
4461
- function recoverPrivateKeyFromSecurityQuestions(_x118, _x119, _x120, _x121) {
4528
+ function recoverPrivateKeyFromSecurityQuestions(_x120, _x121, _x122, _x123) {
4462
4529
  return _recoverPrivateKeyFromSecurityQuestions.apply(this, arguments);
4463
4530
  }
4464
4531
  return recoverPrivateKeyFromSecurityQuestions;
@@ -4499,7 +4566,7 @@ var OroClient = /*#__PURE__*/function () {
4499
4566
  }
4500
4567
  }, _callee52, this);
4501
4568
  }));
4502
- function recoverPrivateKeyFromPassword(_x122, _x123) {
4569
+ function recoverPrivateKeyFromPassword(_x124, _x125) {
4503
4570
  return _recoverPrivateKeyFromPassword.apply(this, arguments);
4504
4571
  }
4505
4572
  return recoverPrivateKeyFromPassword;
@@ -4534,7 +4601,7 @@ var OroClient = /*#__PURE__*/function () {
4534
4601
  }
4535
4602
  }, _callee53, this);
4536
4603
  }));
4537
- function recoverPrivateKeyFromMasterKey(_x124, _x125) {
4604
+ function recoverPrivateKeyFromMasterKey(_x126, _x127) {
4538
4605
  return _recoverPrivateKeyFromMasterKey.apply(this, arguments);
4539
4606
  }
4540
4607
  return recoverPrivateKeyFromMasterKey;
@@ -4578,7 +4645,7 @@ var OroClient = /*#__PURE__*/function () {
4578
4645
  }
4579
4646
  }, _callee54, this);
4580
4647
  }));
4581
- function updateSecurityQuestions(_x126, _x127, _x128, _x129) {
4648
+ function updateSecurityQuestions(_x128, _x129, _x130, _x131) {
4582
4649
  return _updateSecurityQuestions.apply(this, arguments);
4583
4650
  }
4584
4651
  return updateSecurityQuestions;
@@ -4634,7 +4701,7 @@ var OroClient = /*#__PURE__*/function () {
4634
4701
  }
4635
4702
  }, _callee55, this);
4636
4703
  }));
4637
- function updatePassword(_x130, _x131, _x132) {
4704
+ function updatePassword(_x132, _x133, _x134) {
4638
4705
  return _updatePassword.apply(this, arguments);
4639
4706
  }
4640
4707
  return updatePassword;
@@ -4690,7 +4757,7 @@ var OroClient = /*#__PURE__*/function () {
4690
4757
  }
4691
4758
  }, _callee56, this);
4692
4759
  }));
4693
- function updateMasterKey(_x133, _x134, _x135) {
4760
+ function updateMasterKey(_x135, _x136, _x137) {
4694
4761
  return _updateMasterKey.apply(this, arguments);
4695
4762
  }
4696
4763
  return updateMasterKey;