oro-sdk 5.5.1 → 5.6.1-dev1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1468,8 +1468,12 @@ function _storePatientData() {
1468
1468
  }, {
1469
1469
  consultationId: consultationId
1470
1470
  }, {
1471
- withNotification: true
1472
- });
1471
+ withNotification: true,
1472
+ forceReplace: false,
1473
+ updateMedicalStatus: false
1474
+ }
1475
+ // the only data that needs to include an email notification
1476
+ );
1473
1477
  }), getWorkflowDataByCategory(workflow, MetadataCategory.Medical).then(function (data) {
1474
1478
  return oroClient.getOrInsertJsonData(lockboxUuid, data, {
1475
1479
  category: MetadataCategory.Medical,
@@ -1871,11 +1875,13 @@ function _createRefill() {
1871
1875
  if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'store_patient_data');
1872
1876
  _context.next = 20;
1873
1877
  return oroClient.getOrInsertJsonData(lockboxUuid, populatedRefillWorkflow, {
1874
- category: MetadataCategory.Refill,
1878
+ category: MetadataCategory.Consultation,
1875
1879
  documentType: DocumentType.PopulatedWorkflowData,
1876
- consultationIds: [newConsult.uuid]
1880
+ consultationId: newConsult.uuid
1877
1881
  }, {}, {
1878
- withNotification: true
1882
+ withNotification: true,
1883
+ forceReplace: false,
1884
+ updateMedicalStatus: true
1879
1885
  })["catch"](function (err) {
1880
1886
  console.error('[SDK: prescription refill request] Some errors happened during refill data upload', err);
1881
1887
  errorsThrown.push(err);
@@ -1913,7 +1919,7 @@ function _createRefill() {
1913
1919
  _context.next = 36;
1914
1920
  break;
1915
1921
  case 34:
1916
- console.error('[SDK: prescription refill request] parent consultation\'s raw data not found');
1922
+ console.error("[SDK: prescription refill request] parent consultation's raw data not found");
1917
1923
  errorsThrown.push(Error('RawData Not Found'));
1918
1924
  case 36:
1919
1925
  if (!(errorsThrown.length > 0)) {
@@ -2654,27 +2660,32 @@ var OroClient = /*#__PURE__*/function () {
2654
2660
  _proto.createMessageData =
2655
2661
  /*#__PURE__*/
2656
2662
  function () {
2657
- var _createMessageData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(lockboxUuid, message, consultationId, lockboxOwnerUuid, previousDataUuid) {
2663
+ var _createMessageData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(lockboxUuid, message, consultationId, lockboxOwnerUuid, previousDataUuid, options) {
2658
2664
  var symmetricEncryptor, encryptedData, encryptedPrivateMeta, meta, request;
2659
2665
  return _regeneratorRuntime().wrap(function _callee13$(_context13) {
2660
2666
  while (1) {
2661
2667
  switch (_context13.prev = _context13.next) {
2662
2668
  case 0:
2669
+ if (options === void 0) {
2670
+ options = {
2671
+ updateMedicalStatus: true
2672
+ };
2673
+ }
2663
2674
  if (this.rsa) {
2664
- _context13.next = 2;
2675
+ _context13.next = 3;
2665
2676
  break;
2666
2677
  }
2667
2678
  throw IncompleteAuthentication;
2668
- case 2:
2669
- _context13.next = 4;
2679
+ case 3:
2680
+ _context13.next = 5;
2670
2681
  return this.getCachedSecretCryptor(lockboxUuid, lockboxOwnerUuid);
2671
- case 4:
2682
+ case 5:
2672
2683
  symmetricEncryptor = _context13.sent;
2673
2684
  encryptedData = symmetricEncryptor.jsonEncryptToBase64Payload(message);
2674
2685
  _context13.t0 = symmetricEncryptor;
2675
- _context13.next = 9;
2686
+ _context13.next = 10;
2676
2687
  return this.guardClient.whoAmI();
2677
- case 9:
2688
+ case 10:
2678
2689
  _context13.t1 = _context13.sent.sub;
2679
2690
  _context13.t2 = {
2680
2691
  author: _context13.t1
@@ -2691,15 +2702,15 @@ var OroClient = /*#__PURE__*/function () {
2691
2702
  publicMetadata: meta,
2692
2703
  privateMetadata: encryptedPrivateMeta
2693
2704
  };
2694
- return _context13.abrupt("return", this.tellerClient.lockboxDataStore(lockboxUuid, request, lockboxOwnerUuid, previousDataUuid));
2695
- case 15:
2705
+ return _context13.abrupt("return", this.tellerClient.lockboxDataStore(lockboxUuid, request, lockboxOwnerUuid, previousDataUuid, options));
2706
+ case 16:
2696
2707
  case "end":
2697
2708
  return _context13.stop();
2698
2709
  }
2699
2710
  }
2700
2711
  }, _callee13, this);
2701
2712
  }));
2702
- function createMessageData(_x29, _x30, _x31, _x32, _x33) {
2713
+ function createMessageData(_x29, _x30, _x31, _x32, _x33, _x34) {
2703
2714
  return _createMessageData.apply(this, arguments);
2704
2715
  }
2705
2716
  return createMessageData;
@@ -2718,34 +2729,39 @@ var OroClient = /*#__PURE__*/function () {
2718
2729
  _proto.createMessageAttachmentData =
2719
2730
  /*#__PURE__*/
2720
2731
  function () {
2721
- var _createMessageAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(lockboxUuid, data, consultationId, lockboxOwnerUuid, previousDataUuid) {
2732
+ var _createMessageAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(lockboxUuid, data, consultationId, lockboxOwnerUuid, previousDataUuid, options) {
2722
2733
  var symmetricEncryptor, encryptedData, encryptedPrivateMeta, meta, request;
2723
2734
  return _regeneratorRuntime().wrap(function _callee14$(_context14) {
2724
2735
  while (1) {
2725
2736
  switch (_context14.prev = _context14.next) {
2726
2737
  case 0:
2738
+ if (options === void 0) {
2739
+ options = {
2740
+ updateMedicalStatus: true
2741
+ };
2742
+ }
2727
2743
  if (this.rsa) {
2728
- _context14.next = 2;
2744
+ _context14.next = 3;
2729
2745
  break;
2730
2746
  }
2731
2747
  throw IncompleteAuthentication;
2732
- case 2:
2733
- _context14.next = 4;
2748
+ case 3:
2749
+ _context14.next = 5;
2734
2750
  return this.getCachedSecretCryptor(lockboxUuid, lockboxOwnerUuid);
2735
- case 4:
2751
+ case 5:
2736
2752
  symmetricEncryptor = _context14.sent;
2737
2753
  _context14.t0 = symmetricEncryptor;
2738
2754
  _context14.t1 = Uint8Array;
2739
- _context14.next = 9;
2755
+ _context14.next = 10;
2740
2756
  return data.arrayBuffer();
2741
- case 9:
2757
+ case 10:
2742
2758
  _context14.t2 = _context14.sent;
2743
2759
  _context14.t3 = new _context14.t1(_context14.t2);
2744
2760
  encryptedData = _context14.t0.bytesEncryptToBase64Payload.call(_context14.t0, _context14.t3);
2745
2761
  _context14.t4 = symmetricEncryptor;
2746
- _context14.next = 15;
2762
+ _context14.next = 16;
2747
2763
  return this.guardClient.whoAmI();
2748
- case 15:
2764
+ case 16:
2749
2765
  _context14.t5 = _context14.sent.sub;
2750
2766
  _context14.t6 = data.name;
2751
2767
  _context14.t7 = data.lastModified;
@@ -2768,15 +2784,15 @@ var OroClient = /*#__PURE__*/function () {
2768
2784
  publicMetadata: meta,
2769
2785
  privateMetadata: encryptedPrivateMeta
2770
2786
  };
2771
- return _context14.abrupt("return", this.tellerClient.lockboxDataStore(lockboxUuid, request, lockboxOwnerUuid, previousDataUuid));
2772
- case 24:
2787
+ return _context14.abrupt("return", this.tellerClient.lockboxDataStore(lockboxUuid, request, lockboxOwnerUuid, previousDataUuid, options));
2788
+ case 25:
2773
2789
  case "end":
2774
2790
  return _context14.stop();
2775
2791
  }
2776
2792
  }
2777
2793
  }, _callee14, this);
2778
2794
  }));
2779
- function createMessageAttachmentData(_x34, _x35, _x36, _x37, _x38) {
2795
+ function createMessageAttachmentData(_x35, _x36, _x37, _x38, _x39, _x40) {
2780
2796
  return _createMessageAttachmentData.apply(this, arguments);
2781
2797
  }
2782
2798
  return createMessageAttachmentData;
@@ -2804,7 +2820,8 @@ var OroClient = /*#__PURE__*/function () {
2804
2820
  case 0:
2805
2821
  if (options === void 0) {
2806
2822
  options = {
2807
- withNotification: false
2823
+ withNotification: false,
2824
+ updateMedicalStatus: false
2808
2825
  };
2809
2826
  }
2810
2827
  if (this.rsa) {
@@ -2847,7 +2864,7 @@ var OroClient = /*#__PURE__*/function () {
2847
2864
  }
2848
2865
  }, _callee15, this);
2849
2866
  }));
2850
- function createConsultationAttachmentData(_x39, _x40, _x41, _x42, _x43, _x44, _x45) {
2867
+ function createConsultationAttachmentData(_x41, _x42, _x43, _x44, _x45, _x46, _x47) {
2851
2868
  return _createConsultationAttachmentData.apply(this, arguments);
2852
2869
  }
2853
2870
  return createConsultationAttachmentData;
@@ -2876,7 +2893,8 @@ var OroClient = /*#__PURE__*/function () {
2876
2893
  case 0:
2877
2894
  if (options === void 0) {
2878
2895
  options = {
2879
- withNotification: false
2896
+ withNotification: false,
2897
+ updateMedicalStatus: false
2880
2898
  };
2881
2899
  }
2882
2900
  if (this.rsa) {
@@ -2900,7 +2918,7 @@ var OroClient = /*#__PURE__*/function () {
2900
2918
  _context16.next = 13;
2901
2919
  break;
2902
2920
  }
2903
- return _context16.abrupt("return", this.tellerClient.lockboxDataStore(lockboxUuid, request, lockboxOwnerUuid, previousDataUuid));
2921
+ return _context16.abrupt("return", this.tellerClient.lockboxDataStore(lockboxUuid, request, lockboxOwnerUuid, previousDataUuid, options));
2904
2922
  case 13:
2905
2923
  return _context16.abrupt("return", this.vaultClient.lockboxDataStore(lockboxUuid, request, lockboxOwnerUuid, previousDataUuid));
2906
2924
  case 14:
@@ -2910,7 +2928,7 @@ var OroClient = /*#__PURE__*/function () {
2910
2928
  }
2911
2929
  }, _callee16, this);
2912
2930
  }));
2913
- function createJsonData(_x46, _x47, _x48, _x49, _x50, _x51, _x52) {
2931
+ function createJsonData(_x48, _x49, _x50, _x51, _x52, _x53, _x54) {
2914
2932
  return _createJsonData.apply(this, arguments);
2915
2933
  }
2916
2934
  return createJsonData;
@@ -2938,7 +2956,8 @@ var OroClient = /*#__PURE__*/function () {
2938
2956
  if (options === void 0) {
2939
2957
  options = {
2940
2958
  withNotification: false,
2941
- forceReplace: false
2959
+ forceReplace: false,
2960
+ updateMedicalStatus: false
2942
2961
  };
2943
2962
  }
2944
2963
  _context17.next = 3;
@@ -2955,9 +2974,7 @@ var OroClient = /*#__PURE__*/function () {
2955
2974
  _context17.next = 11;
2956
2975
  return this.createJsonData(lockboxUuid, data, publicMetadata, privateMetadata, undefined,
2957
2976
  // if forceReplace and data already exist, then replace data. Otherwise insert it
2958
- options.forceReplace && manifest.length > 0 ? manifest[0].dataUuid : undefined, {
2959
- withNotification: options.withNotification
2960
- })["catch"](function (err) {
2977
+ options.forceReplace && manifest.length > 0 ? manifest[0].dataUuid : undefined, options)["catch"](function (err) {
2961
2978
  console.error("Error while upserting data " + JSON.stringify(publicMetadata) + " data", err);
2962
2979
  throw err;
2963
2980
  });
@@ -2970,7 +2987,7 @@ var OroClient = /*#__PURE__*/function () {
2970
2987
  }
2971
2988
  }, _callee17, this);
2972
2989
  }));
2973
- function getOrInsertJsonData(_x53, _x54, _x55, _x56, _x57) {
2990
+ function getOrInsertJsonData(_x55, _x56, _x57, _x58, _x59) {
2974
2991
  return _getOrInsertJsonData.apply(this, arguments);
2975
2992
  }
2976
2993
  return getOrInsertJsonData;
@@ -2999,7 +3016,8 @@ var OroClient = /*#__PURE__*/function () {
2999
3016
  case 0:
3000
3017
  if (options === void 0) {
3001
3018
  options = {
3002
- withNotification: false
3019
+ withNotification: false,
3020
+ updateMedicalStatus: false
3003
3021
  };
3004
3022
  }
3005
3023
  if (this.rsa) {
@@ -3023,7 +3041,7 @@ var OroClient = /*#__PURE__*/function () {
3023
3041
  _context18.next = 13;
3024
3042
  break;
3025
3043
  }
3026
- return _context18.abrupt("return", this.tellerClient.lockboxDataStore(lockboxUuid, request, lockboxOwnerUuid, previousDataUuid));
3044
+ return _context18.abrupt("return", this.tellerClient.lockboxDataStore(lockboxUuid, request, lockboxOwnerUuid, previousDataUuid, options));
3027
3045
  case 13:
3028
3046
  return _context18.abrupt("return", this.vaultClient.lockboxDataStore(lockboxUuid, request, lockboxOwnerUuid, previousDataUuid));
3029
3047
  case 14:
@@ -3033,7 +3051,7 @@ var OroClient = /*#__PURE__*/function () {
3033
3051
  }
3034
3052
  }, _callee18, this);
3035
3053
  }));
3036
- function createBytesData(_x58, _x59, _x60, _x61, _x62, _x63, _x64) {
3054
+ function createBytesData(_x60, _x61, _x62, _x63, _x64, _x65, _x66) {
3037
3055
  return _createBytesData.apply(this, arguments);
3038
3056
  }
3039
3057
  return createBytesData;
@@ -3079,7 +3097,7 @@ var OroClient = /*#__PURE__*/function () {
3079
3097
  }
3080
3098
  }, _callee19, this);
3081
3099
  }));
3082
- function getJsonData(_x65, _x66, _x67) {
3100
+ function getJsonData(_x67, _x68, _x69) {
3083
3101
  return _getJsonData.apply(this, arguments);
3084
3102
  }
3085
3103
  return getJsonData;
@@ -3121,7 +3139,7 @@ var OroClient = /*#__PURE__*/function () {
3121
3139
  }
3122
3140
  }, _callee20, this);
3123
3141
  }));
3124
- function getBytesData(_x68, _x69, _x70) {
3142
+ function getBytesData(_x70, _x71, _x72) {
3125
3143
  return _getBytesData.apply(this, arguments);
3126
3144
  }
3127
3145
  return getBytesData;
@@ -3232,7 +3250,7 @@ var OroClient = /*#__PURE__*/function () {
3232
3250
  }
3233
3251
  }, _callee21, this);
3234
3252
  }));
3235
- function getGrants(_x71) {
3253
+ function getGrants(_x73) {
3236
3254
  return _getGrants.apply(this, arguments);
3237
3255
  }
3238
3256
  return getGrants;
@@ -3317,7 +3335,7 @@ var OroClient = /*#__PURE__*/function () {
3317
3335
  }
3318
3336
  }, _callee23, this);
3319
3337
  }));
3320
- function getCachedSecretCryptor(_x72, _x73) {
3338
+ function getCachedSecretCryptor(_x74, _x75) {
3321
3339
  return _getCachedSecretCryptor.apply(this, arguments);
3322
3340
  }
3323
3341
  return getCachedSecretCryptor;
@@ -3353,7 +3371,7 @@ var OroClient = /*#__PURE__*/function () {
3353
3371
  }
3354
3372
  }, _callee24, this);
3355
3373
  }));
3356
- function getPersonalInformationsFromConsultId(_x74, _x75, _x76) {
3374
+ function getPersonalInformationsFromConsultId(_x76, _x77, _x78) {
3357
3375
  return _getPersonalInformationsFromConsultId.apply(this, arguments);
3358
3376
  }
3359
3377
  return getPersonalInformationsFromConsultId;
@@ -3388,7 +3406,7 @@ var OroClient = /*#__PURE__*/function () {
3388
3406
  }
3389
3407
  }, _callee25, this);
3390
3408
  }));
3391
- function getMedicalDataFromConsultId(_x77, _x78) {
3409
+ function getMedicalDataFromConsultId(_x79, _x80) {
3392
3410
  return _getMedicalDataFromConsultId.apply(this, arguments);
3393
3411
  }
3394
3412
  return getMedicalDataFromConsultId;
@@ -3469,7 +3487,7 @@ var OroClient = /*#__PURE__*/function () {
3469
3487
  }
3470
3488
  }, _callee26);
3471
3489
  }));
3472
- return function (_x82) {
3490
+ return function (_x84) {
3473
3491
  return _ref3.apply(this, arguments);
3474
3492
  };
3475
3493
  }()));
@@ -3502,7 +3520,7 @@ var OroClient = /*#__PURE__*/function () {
3502
3520
  }
3503
3521
  }, _callee27, this);
3504
3522
  }));
3505
- function getMetaCategoryFromConsultId(_x79, _x80, _x81) {
3523
+ function getMetaCategoryFromConsultId(_x81, _x82, _x83) {
3506
3524
  return _getMetaCategoryFromConsultId.apply(this, arguments);
3507
3525
  }
3508
3526
  return getMetaCategoryFromConsultId;
@@ -3574,7 +3592,7 @@ var OroClient = /*#__PURE__*/function () {
3574
3592
  }
3575
3593
  }, _callee28, this);
3576
3594
  }));
3577
- function getPersonalInformations(_x83) {
3595
+ function getPersonalInformations(_x85) {
3578
3596
  return _getPersonalInformations.apply(this, arguments);
3579
3597
  }
3580
3598
  return getPersonalInformations;
@@ -3615,7 +3633,7 @@ var OroClient = /*#__PURE__*/function () {
3615
3633
  }
3616
3634
  }, _callee29, this);
3617
3635
  }));
3618
- function getGrantFromConsultId(_x84) {
3636
+ function getGrantFromConsultId(_x86) {
3619
3637
  return _getGrantFromConsultId.apply(this, arguments);
3620
3638
  }
3621
3639
  return getGrantFromConsultId;
@@ -3656,7 +3674,7 @@ var OroClient = /*#__PURE__*/function () {
3656
3674
  }
3657
3675
  }, _callee30, this);
3658
3676
  }));
3659
- function getIdentityFromConsultId(_x85) {
3677
+ function getIdentityFromConsultId(_x87) {
3660
3678
  return _getIdentityFromConsultId.apply(this, arguments);
3661
3679
  }
3662
3680
  return getIdentityFromConsultId;
@@ -3725,7 +3743,7 @@ var OroClient = /*#__PURE__*/function () {
3725
3743
  }
3726
3744
  }, _callee31);
3727
3745
  }));
3728
- return function (_x91) {
3746
+ return function (_x93) {
3729
3747
  return _ref4.apply(this, arguments);
3730
3748
  };
3731
3749
  }())).then(function (manifest) {
@@ -3739,7 +3757,7 @@ var OroClient = /*#__PURE__*/function () {
3739
3757
  }
3740
3758
  }, _callee32, this);
3741
3759
  }));
3742
- function getLockboxManifest(_x86, _x87, _x88, _x89, _x90) {
3760
+ function getLockboxManifest(_x88, _x89, _x90, _x91, _x92) {
3743
3761
  return _getLockboxManifest.apply(this, arguments);
3744
3762
  }
3745
3763
  return getLockboxManifest;
@@ -3796,7 +3814,7 @@ var OroClient = /*#__PURE__*/function () {
3796
3814
  }
3797
3815
  }, _callee33, this);
3798
3816
  }));
3799
- function createPersonalInformations(_x92, _x93, _x94) {
3817
+ function createPersonalInformations(_x94, _x95, _x96) {
3800
3818
  return _createPersonalInformations.apply(this, arguments);
3801
3819
  }
3802
3820
  return createPersonalInformations;
@@ -3853,7 +3871,7 @@ var OroClient = /*#__PURE__*/function () {
3853
3871
  }
3854
3872
  }, _callee34, this);
3855
3873
  }));
3856
- function createUserPreference(_x95, _x96, _x97) {
3874
+ function createUserPreference(_x97, _x98, _x99) {
3857
3875
  return _createUserPreference.apply(this, arguments);
3858
3876
  }
3859
3877
  return createUserPreference;
@@ -3912,7 +3930,7 @@ var OroClient = /*#__PURE__*/function () {
3912
3930
  }
3913
3931
  }, _callee35, this);
3914
3932
  }));
3915
- function getDataFromGrant(_x98, _x99) {
3933
+ function getDataFromGrant(_x100, _x101) {
3916
3934
  return _getDataFromGrant.apply(this, arguments);
3917
3935
  }
3918
3936
  return getDataFromGrant;
@@ -3953,7 +3971,7 @@ var OroClient = /*#__PURE__*/function () {
3953
3971
  }
3954
3972
  }, _callee36, this);
3955
3973
  }));
3956
- function getUserPreferenceFromConsultId(_x100) {
3974
+ function getUserPreferenceFromConsultId(_x102) {
3957
3975
  return _getUserPreferenceFromConsultId.apply(this, arguments);
3958
3976
  }
3959
3977
  return getUserPreferenceFromConsultId;
@@ -3996,7 +4014,7 @@ var OroClient = /*#__PURE__*/function () {
3996
4014
  }
3997
4015
  }, _callee37, this);
3998
4016
  }));
3999
- function getUserPreference(_x101) {
4017
+ function getUserPreference(_x103) {
4000
4018
  return _getUserPreference.apply(this, arguments);
4001
4019
  }
4002
4020
  return getUserPreference;
@@ -4037,7 +4055,7 @@ var OroClient = /*#__PURE__*/function () {
4037
4055
  }
4038
4056
  }, _callee38, this);
4039
4057
  }));
4040
- function getRecoveryDataFromConsultId(_x102) {
4058
+ function getRecoveryDataFromConsultId(_x104) {
4041
4059
  return _getRecoveryDataFromConsultId.apply(this, arguments);
4042
4060
  }
4043
4061
  return getRecoveryDataFromConsultId;
@@ -4080,7 +4098,7 @@ var OroClient = /*#__PURE__*/function () {
4080
4098
  }
4081
4099
  }, _callee39, this);
4082
4100
  }));
4083
- function getRecoveryData(_x103) {
4101
+ function getRecoveryData(_x105) {
4084
4102
  return _getRecoveryData.apply(this, arguments);
4085
4103
  }
4086
4104
  return getRecoveryData;
@@ -4131,7 +4149,7 @@ var OroClient = /*#__PURE__*/function () {
4131
4149
  }
4132
4150
  }, _callee40);
4133
4151
  }));
4134
- return function (_x105) {
4152
+ return function (_x107) {
4135
4153
  return _ref5.apply(this, arguments);
4136
4154
  };
4137
4155
  }())).then(function (promise) {
@@ -4149,7 +4167,7 @@ var OroClient = /*#__PURE__*/function () {
4149
4167
  }
4150
4168
  }, _callee41, this);
4151
4169
  }));
4152
- function getAssignedConsultations(_x104) {
4170
+ function getAssignedConsultations(_x106) {
4153
4171
  return _getAssignedConsultations.apply(this, arguments);
4154
4172
  }
4155
4173
  return getAssignedConsultations;
@@ -4213,7 +4231,7 @@ var OroClient = /*#__PURE__*/function () {
4213
4231
  }
4214
4232
  }, _callee42);
4215
4233
  }));
4216
- return function (_x108) {
4234
+ return function (_x110) {
4217
4235
  return _ref6.apply(this, arguments);
4218
4236
  };
4219
4237
  }()));
@@ -4226,7 +4244,7 @@ var OroClient = /*#__PURE__*/function () {
4226
4244
  }
4227
4245
  }, _callee43, this);
4228
4246
  }));
4229
- function getPastConsultationsFromConsultId(_x106, _x107) {
4247
+ function getPastConsultationsFromConsultId(_x108, _x109) {
4230
4248
  return _getPastConsultationsFromConsultId.apply(this, arguments);
4231
4249
  }
4232
4250
  return getPastConsultationsFromConsultId;
@@ -4279,7 +4297,7 @@ var OroClient = /*#__PURE__*/function () {
4279
4297
  }
4280
4298
  }, _callee44, this);
4281
4299
  }));
4282
- function getPatientConsultationData(_x109, _x110) {
4300
+ function getPatientConsultationData(_x111, _x112) {
4283
4301
  return _getPatientConsultationData.apply(this, arguments);
4284
4302
  }
4285
4303
  return getPatientConsultationData;
@@ -4309,7 +4327,7 @@ var OroClient = /*#__PURE__*/function () {
4309
4327
  }
4310
4328
  }, _callee45, this);
4311
4329
  }));
4312
- function getPatientPrescriptionsList(_x111) {
4330
+ function getPatientPrescriptionsList(_x113) {
4313
4331
  return _getPatientPrescriptionsList.apply(this, arguments);
4314
4332
  }
4315
4333
  return getPatientPrescriptionsList;
@@ -4339,7 +4357,7 @@ var OroClient = /*#__PURE__*/function () {
4339
4357
  }
4340
4358
  }, _callee46, this);
4341
4359
  }));
4342
- function getPatientResultsList(_x112) {
4360
+ function getPatientResultsList(_x114) {
4343
4361
  return _getPatientResultsList.apply(this, arguments);
4344
4362
  }
4345
4363
  return getPatientResultsList;
@@ -4369,7 +4387,7 @@ var OroClient = /*#__PURE__*/function () {
4369
4387
  }
4370
4388
  }, _callee47, this);
4371
4389
  }));
4372
- function getPatientTreatmentPlans(_x113) {
4390
+ function getPatientTreatmentPlans(_x115) {
4373
4391
  return _getPatientTreatmentPlans.apply(this, arguments);
4374
4392
  }
4375
4393
  return getPatientTreatmentPlans;
@@ -4401,7 +4419,7 @@ var OroClient = /*#__PURE__*/function () {
4401
4419
  }
4402
4420
  }, _callee48, this);
4403
4421
  }));
4404
- function getPatientTreatmentPlanByUuid(_x114, _x115) {
4422
+ function getPatientTreatmentPlanByUuid(_x116, _x117) {
4405
4423
  return _getPatientTreatmentPlanByUuid.apply(this, arguments);
4406
4424
  }
4407
4425
  return getPatientTreatmentPlanByUuid;
@@ -4454,7 +4472,7 @@ var OroClient = /*#__PURE__*/function () {
4454
4472
  }
4455
4473
  }, _callee49);
4456
4474
  }));
4457
- return function (_x119) {
4475
+ return function (_x121) {
4458
4476
  return _ref7.apply(this, arguments);
4459
4477
  };
4460
4478
  }()));
@@ -4470,7 +4488,7 @@ var OroClient = /*#__PURE__*/function () {
4470
4488
  }
4471
4489
  }, _callee50, this);
4472
4490
  }));
4473
- function getPatientDocumentsList(_x116, _x117, _x118) {
4491
+ function getPatientDocumentsList(_x118, _x119, _x120) {
4474
4492
  return _getPatientDocumentsList.apply(this, arguments);
4475
4493
  }
4476
4494
  return getPatientDocumentsList;
@@ -4525,7 +4543,7 @@ var OroClient = /*#__PURE__*/function () {
4525
4543
  }
4526
4544
  }, _callee51, this);
4527
4545
  }));
4528
- function recoverPrivateKeyFromSecurityQuestions(_x120, _x121, _x122, _x123) {
4546
+ function recoverPrivateKeyFromSecurityQuestions(_x122, _x123, _x124, _x125) {
4529
4547
  return _recoverPrivateKeyFromSecurityQuestions.apply(this, arguments);
4530
4548
  }
4531
4549
  return recoverPrivateKeyFromSecurityQuestions;
@@ -4566,7 +4584,7 @@ var OroClient = /*#__PURE__*/function () {
4566
4584
  }
4567
4585
  }, _callee52, this);
4568
4586
  }));
4569
- function recoverPrivateKeyFromPassword(_x124, _x125) {
4587
+ function recoverPrivateKeyFromPassword(_x126, _x127) {
4570
4588
  return _recoverPrivateKeyFromPassword.apply(this, arguments);
4571
4589
  }
4572
4590
  return recoverPrivateKeyFromPassword;
@@ -4601,7 +4619,7 @@ var OroClient = /*#__PURE__*/function () {
4601
4619
  }
4602
4620
  }, _callee53, this);
4603
4621
  }));
4604
- function recoverPrivateKeyFromMasterKey(_x126, _x127) {
4622
+ function recoverPrivateKeyFromMasterKey(_x128, _x129) {
4605
4623
  return _recoverPrivateKeyFromMasterKey.apply(this, arguments);
4606
4624
  }
4607
4625
  return recoverPrivateKeyFromMasterKey;
@@ -4645,7 +4663,7 @@ var OroClient = /*#__PURE__*/function () {
4645
4663
  }
4646
4664
  }, _callee54, this);
4647
4665
  }));
4648
- function updateSecurityQuestions(_x128, _x129, _x130, _x131) {
4666
+ function updateSecurityQuestions(_x130, _x131, _x132, _x133) {
4649
4667
  return _updateSecurityQuestions.apply(this, arguments);
4650
4668
  }
4651
4669
  return updateSecurityQuestions;
@@ -4701,7 +4719,7 @@ var OroClient = /*#__PURE__*/function () {
4701
4719
  }
4702
4720
  }, _callee55, this);
4703
4721
  }));
4704
- function updatePassword(_x132, _x133, _x134) {
4722
+ function updatePassword(_x134, _x135, _x136) {
4705
4723
  return _updatePassword.apply(this, arguments);
4706
4724
  }
4707
4725
  return updatePassword;
@@ -4746,7 +4764,9 @@ var OroClient = /*#__PURE__*/function () {
4746
4764
  category: MetadataCategory.Recovery,
4747
4765
  contentType: 'application/json'
4748
4766
  }, {}, {
4749
- forceReplace: true
4767
+ forceReplace: true,
4768
+ withNotification: false,
4769
+ updateMedicalStatus: false
4750
4770
  });
4751
4771
  case 10:
4752
4772
  return _context57.abrupt("return", updatedIdentity);
@@ -4757,7 +4777,7 @@ var OroClient = /*#__PURE__*/function () {
4757
4777
  }
4758
4778
  }, _callee56, this);
4759
4779
  }));
4760
- function updateMasterKey(_x135, _x136, _x137) {
4780
+ function updateMasterKey(_x137, _x138, _x139) {
4761
4781
  return _updateMasterKey.apply(this, arguments);
4762
4782
  }
4763
4783
  return updateMasterKey;