primary_care_admin_binder 0.0.90 → 0.0.94

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.
Files changed (2) hide show
  1. package/dist/index.cjs.js +291 -305
  2. package/package.json +1 -1
package/dist/index.cjs.js CHANGED
@@ -2208,6 +2208,7 @@ var __modifyAppointmentUrl__ = "".concat(process.env.REACT_APP_KEY_CLOCK_API, "/
2208
2208
  var __cancelAppointmentUrl__ = "".concat(process.env.REACT_APP_KEY_CLOCK_API, "/api/v1/cancelAppointment");
2209
2209
  var __nifiUrl__ = "".concat(process.env.REACT_APP_KEY_CLOCK_API);
2210
2210
  var __keyClockPractioner__ = "".concat(process.env.REACT_APP_KEY_CLOCK_API, "/api/v1/pickPractitionersList");
2211
+ var __keyClockblockappointment__ = "".concat(process.env.REACT_APP_KEY_CLOCK_API, "/api/v1/BlockWithSchedule");
2211
2212
 
2212
2213
  var fetchData = /*#__PURE__*/function () {
2213
2214
  var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(input) {
@@ -2265,6 +2266,7 @@ var queries$m = {
2265
2266
  },
2266
2267
  upsert: function upsert(data) {
2267
2268
  var filter = {};
2269
+ var _key = {};
2268
2270
 
2269
2271
  if (data._key) {
2270
2272
  filter = {
@@ -2274,6 +2276,12 @@ var queries$m = {
2274
2276
  };
2275
2277
  }
2276
2278
 
2279
+ if (data !== null && data !== void 0 && data.coding_key) {
2280
+ _key = {
2281
+ _key: data === null || data === void 0 ? void 0 : data.coding_key
2282
+ };
2283
+ }
2284
+
2277
2285
  if (data.id) {
2278
2286
  ({
2279
2287
  id: data.id
@@ -2290,15 +2298,16 @@ var queries$m = {
2290
2298
  text: "",
2291
2299
  _id: "",
2292
2300
  id: 0,
2293
- coding: [{
2301
+ coding: [_objectSpread2({
2294
2302
  system: "",
2295
2303
  version: "1",
2296
2304
  code: data.code,
2297
2305
  display: data.description,
2298
2306
  userSelected: true,
2299
2307
  Type: data.type,
2300
- id: data.id
2301
- }],
2308
+ id: data.id,
2309
+ status: data.status
2310
+ }, _key)],
2302
2311
  Type: data.type,
2303
2312
  status: data.status
2304
2313
  }
@@ -8084,7 +8093,6 @@ var generateJSON$2 = function generateJSON(data, _key, person_id) {
8084
8093
  id: 0
8085
8094
  };
8086
8095
  } // PRACTITIONER IDENTIFICATION
8087
- debugger;
8088
8096
 
8089
8097
  if (data.identification && data.identification.length > 0) {
8090
8098
  data.identification.map(function (val) {
@@ -8187,7 +8195,6 @@ var generateJSON$2 = function generateJSON(data, _key, person_id) {
8187
8195
 
8188
8196
  if (data.practitionerbyrole && data.practitionerbyrole.length > 0) {
8189
8197
  data.practitionerbyrole.map(function (val) {
8190
- debugger;
8191
8198
  var key = {};
8192
8199
  var roleId = {};
8193
8200
 
@@ -8201,8 +8208,6 @@ var generateJSON$2 = function generateJSON(data, _key, person_id) {
8201
8208
  };
8202
8209
  }
8203
8210
 
8204
- debugger;
8205
-
8206
8211
  var practitionerData = _objectSpread2(_objectSpread2({
8207
8212
  role: val.select_role ? val.select_role.value : "",
8208
8213
  active: val.status ? val.status : false,
@@ -8392,7 +8397,6 @@ var generateJSON$2 = function generateJSON(data, _key, person_id) {
8392
8397
  "practitioner_id": data.details.practitoner_id ? data.details.practitoner_id : ""
8393
8398
  }, personId)
8394
8399
  })];
8395
- debugger;
8396
8400
  return json;
8397
8401
  };
8398
8402
 
@@ -8424,9 +8428,12 @@ var PRACTITIONER_ROLE_READ = createAsyncThunk("practitionerSlice/practitionerlis
8424
8428
  arry = [];
8425
8429
  data.result.map(function (val) {
8426
8430
  if (val.coding[0] && val.coding[0].code && val.coding[0].display) {
8431
+ var _val$coding$0$_key;
8432
+
8427
8433
  arry.push({
8428
8434
  "code_type": val.coding[0].code,
8429
8435
  "description": val.coding[0].display,
8436
+ "coding_key": (_val$coding$0$_key = val.coding[0]._key) !== null && _val$coding$0$_key !== void 0 ? _val$coding$0$_key : null,
8430
8437
  "id": val.coding[0].id,
8431
8438
  "_key": val._key,
8432
8439
  'status': val.status,
@@ -8474,7 +8481,8 @@ var PRACTITIONER_ROLE_UPSERT = createAsyncThunk("practitionerSlice/practitionerR
8474
8481
  type: payload.type,
8475
8482
  status: payload.status,
8476
8483
  _key: payload._key,
8477
- id: payload.id
8484
+ id: payload.id,
8485
+ coding_key: payload.coding_key
8478
8486
  };
8479
8487
  queriesjson = queries$m.upsert(upsertkey);
8480
8488
  _context2.next = 7;
@@ -8571,33 +8579,30 @@ var PRACTITIONER_UPSERT = createAsyncThunk("practitionerSlice/practitionerAdd",
8571
8579
  _context4.prev = 2;
8572
8580
  data = payload.data, _key = payload._key, personId = payload.personId;
8573
8581
  queriesjson = generateJSON$2(data, _key, personId);
8574
- debugger;
8575
- _context4.next = 8;
8582
+ _context4.next = 7;
8576
8583
  return fetchData({
8577
8584
  body: JSON.stringify(queriesjson)
8578
8585
  }, __uspsertUrl__);
8579
8586
 
8580
- case 8:
8587
+ case 7:
8581
8588
  dataRes = _context4.sent;
8582
- debugger;
8583
8589
  return _context4.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
8584
8590
  data: dataRes
8585
8591
  }));
8586
8592
 
8587
- case 13:
8588
- _context4.prev = 13;
8593
+ case 11:
8594
+ _context4.prev = 11;
8589
8595
  _context4.t0 = _context4["catch"](2);
8590
- debugger;
8591
8596
  return _context4.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
8592
8597
  message: _context4.t0.message
8593
8598
  })));
8594
8599
 
8595
- case 17:
8600
+ case 14:
8596
8601
  case "end":
8597
8602
  return _context4.stop();
8598
8603
  }
8599
8604
  }
8600
- }, _callee4, null, [[2, 13]]);
8605
+ }, _callee4, null, [[2, 11]]);
8601
8606
  })));
8602
8607
  var PRACTITIONER_STATUS_CHANGE = createAsyncThunk("practitionerSlice/practitionerStatus", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
8603
8608
  var payload,
@@ -8914,7 +8919,6 @@ var generateReadJSON$2 = function generateReadJSON(data, masters) {
8914
8919
  }
8915
8920
 
8916
8921
  var getlanguageoptions = [];
8917
- debugger;
8918
8922
 
8919
8923
  if (data.communication && ((_data$communication = data.communication) === null || _data$communication === void 0 ? void 0 : _data$communication.length) > 0) {
8920
8924
  data.communication.map(function (val) {
@@ -9986,7 +9990,6 @@ var generateApplicableResJson = function generateApplicableResJson(data, state)
9986
9990
  _id: val._id
9987
9991
  };
9988
9992
  });
9989
- debugger;
9990
9993
  return list;
9991
9994
  }; //to get Diagnosis value for array
9992
9995
 
@@ -10020,7 +10023,6 @@ var generateApplicableUpdateJSON = function generateApplicableUpdateJSON(editID,
10020
10023
  }; //for edit read JSON
10021
10024
 
10022
10025
  var generateApplicableReadResJson = function generateApplicableReadResJson(data, state) {
10023
- debugger;
10024
10026
  var list = data.map(function (v) {
10025
10027
  return {
10026
10028
  entityName: {
@@ -10072,7 +10074,6 @@ var getDiagGroup = function getDiagGroup(data) {
10072
10074
 
10073
10075
 
10074
10076
  var generateApplicableTable = function generateApplicableTable(table, state) {
10075
- debugger;
10076
10077
  var arr = table.map(function (v) {
10077
10078
  return {
10078
10079
  code: state.vital_code.data.find(function (sys) {
@@ -10563,37 +10564,36 @@ var READ_VITAL_APPLICABLE = createAsyncThunk("vitalApplicableApiSlice/vitalsappl
10563
10564
  case 0:
10564
10565
  _ref22 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref22.rejectWithValue, getState = _ref22.getState;
10565
10566
  _context11.prev = 2;
10566
- debugger;
10567
10567
  getState();
10568
10568
  // { body: query.diagnosis },
10569
10569
  // __readDocumentUrl__
10570
10570
  // );
10571
10571
 
10572
- _context11.next = 8;
10572
+ _context11.next = 7;
10573
10573
  return fetchData({
10574
10574
  body: query$6.VitalApplicableRead
10575
10575
  }, __readDocumentUrl__);
10576
10576
 
10577
- case 8:
10577
+ case 7:
10578
10578
  data = _context11.sent;
10579
10579
  res = generateApplicableResJson(data.result);
10580
10580
  return _context11.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
10581
10581
  data: res
10582
10582
  }));
10583
10583
 
10584
- case 13:
10585
- _context11.prev = 13;
10584
+ case 12:
10585
+ _context11.prev = 12;
10586
10586
  _context11.t0 = _context11["catch"](2);
10587
10587
  return _context11.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
10588
10588
  message: _context11.t0.message
10589
10589
  })));
10590
10590
 
10591
- case 16:
10591
+ case 15:
10592
10592
  case "end":
10593
10593
  return _context11.stop();
10594
10594
  }
10595
10595
  }
10596
- }, _callee11, null, [[2, 13]]);
10596
+ }, _callee11, null, [[2, 12]]);
10597
10597
  })));
10598
10598
  var UPDATE_VITAL_APPLICABLE_STATUS = createAsyncThunk("vitalApplicableApiSlice/vitalsApplicableUpdate", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12() {
10599
10599
  var payload,
@@ -10703,16 +10703,15 @@ var SPECIALITY_CODE_ORG_ID = createAsyncThunk("vitalApplicableApiSlice/specialit
10703
10703
  payload = _args14.length > 0 && _args14[0] !== undefined ? _args14[0] : {};
10704
10704
  _ref28 = _args14.length > 1 ? _args14[1] : undefined, rejectWithValue = _ref28.rejectWithValue;
10705
10705
  _context14.prev = 2;
10706
- debugger;
10707
10706
  orgId = {
10708
10707
  id: payload.org_id
10709
10708
  };
10710
- _context14.next = 7;
10709
+ _context14.next = 6;
10711
10710
  return fetchData({
10712
10711
  body: JSON.stringify(query$6.specialityCodeOrgId(orgId))
10713
10712
  }, __readDocumentUrl__);
10714
10713
 
10715
- case 7:
10714
+ case 6:
10716
10715
  data = _context14.sent;
10717
10716
  arr = [];
10718
10717
  data && data.result.map(function (val) {
@@ -10725,19 +10724,19 @@ var SPECIALITY_CODE_ORG_ID = createAsyncThunk("vitalApplicableApiSlice/specialit
10725
10724
  data: arr
10726
10725
  }));
10727
10726
 
10728
- case 13:
10729
- _context14.prev = 13;
10727
+ case 12:
10728
+ _context14.prev = 12;
10730
10729
  _context14.t0 = _context14["catch"](2);
10731
10730
  return _context14.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
10732
10731
  message: _context14.t0.message
10733
10732
  })));
10734
10733
 
10735
- case 16:
10734
+ case 15:
10736
10735
  case "end":
10737
10736
  return _context14.stop();
10738
10737
  }
10739
10738
  }
10740
- }, _callee14, null, [[2, 13]]);
10739
+ }, _callee14, null, [[2, 12]]);
10741
10740
  })));
10742
10741
  var vitalsApplicableSlice = createSlice({
10743
10742
  name: "vitalApplicableApiSlice",
@@ -10928,7 +10927,6 @@ var generateJSON$1 = function generateJSON(data) {
10928
10927
  return v.value;
10929
10928
  });
10930
10929
  var filter = {};
10931
- debugger;
10932
10930
 
10933
10931
  if (data.editData) {
10934
10932
  filter = {
@@ -10959,7 +10957,6 @@ var generateJSON$1 = function generateJSON(data) {
10959
10957
  }; //JSON for saving table
10960
10958
 
10961
10959
  var generateCodeReference = function generateCodeReference(data) {
10962
- debugger;
10963
10960
  var arr = [];
10964
10961
  data.map(function (val) {
10965
10962
  val.table.map(function (v) {
@@ -11040,7 +11037,6 @@ var generateReadResJson$1 = function generateReadResJson(data, state, ageCategor
11040
11037
  }; //for edit / read form table reference
11041
11038
 
11042
11039
  var generateReference = function generateReference(ref, state, ageCategory) {
11043
- debugger;
11044
11040
  var obj = {};
11045
11041
  ref.forEach(function (element) {
11046
11042
  var ageRange = element.agerangecode;
@@ -11402,32 +11398,31 @@ var SAVE_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/savevitalm
11402
11398
  _ref14 = _args7.length > 1 ? _args7[1] : undefined, rejectWithValue = _ref14.rejectWithValue;
11403
11399
  _context7.prev = 2;
11404
11400
  list = payload.list;
11405
- debugger;
11406
11401
  body = generateJSON$1(list);
11407
- _context7.next = 8;
11402
+ _context7.next = 7;
11408
11403
  return fetchData({
11409
11404
  body: JSON.stringify(body)
11410
11405
  }, __uspsertUrl__);
11411
11406
 
11412
- case 8:
11407
+ case 7:
11413
11408
  data = _context7.sent;
11414
11409
  return _context7.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
11415
11410
  data: data
11416
11411
  }));
11417
11412
 
11418
- case 12:
11419
- _context7.prev = 12;
11413
+ case 11:
11414
+ _context7.prev = 11;
11420
11415
  _context7.t0 = _context7["catch"](2);
11421
11416
  return _context7.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
11422
11417
  message: _context7.t0.message
11423
11418
  })));
11424
11419
 
11425
- case 15:
11420
+ case 14:
11426
11421
  case "end":
11427
11422
  return _context7.stop();
11428
11423
  }
11429
11424
  }
11430
- }, _callee7, null, [[2, 12]]);
11425
+ }, _callee7, null, [[2, 11]]);
11431
11426
  })));
11432
11427
  var READ_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/vitalsMasterread", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {
11433
11428
  var _ref16,
@@ -12019,7 +12014,6 @@ var generateJSON = function generateJSON(data, _key) {
12019
12014
  }]
12020
12015
  }
12021
12016
  })];
12022
- debugger;
12023
12017
  return json;
12024
12018
  };
12025
12019
 
@@ -12049,8 +12043,7 @@ var LOCATION_READ = createAsyncThunk("locationSlice/locationlist", /*#__PURE__*/
12049
12043
  case 6:
12050
12044
  data = _context.sent;
12051
12045
  arry = [];
12052
- debugger;
12053
- _context.next = 11;
12046
+ _context.next = 10;
12054
12047
  return data.result.map(function (val) {
12055
12048
  if (val.locationID) {
12056
12049
  var _val$locationType, _val$locationType$, _val$locationType$$co, _val$locationType$$co2, _val$locationType2, _val$locationType2$, _val$locationType2$$c, _val$locationType2$$c2, _val$locationType3, _val$locationType3$, _val$locationType3$$c, _val$locationType3$$c2, _val$locationType4, _val$locationType4$, _val$locationType4$$c, _val$locationType4$$c2, _val$locationType5, _val$locationType5$, _val$locationType5$$c, _val$locationType5$$c2, _val$locationType6, _val$locationType6$, _val$locationType6$$c, _val$locationType6$$c2;
@@ -12073,25 +12066,24 @@ var LOCATION_READ = createAsyncThunk("locationSlice/locationlist", /*#__PURE__*/
12073
12066
  }
12074
12067
  });
12075
12068
 
12076
- case 11:
12069
+ case 10:
12077
12070
  return _context.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
12078
12071
  data: arry
12079
12072
  }));
12080
12073
 
12081
- case 14:
12082
- _context.prev = 14;
12074
+ case 13:
12075
+ _context.prev = 13;
12083
12076
  _context.t0 = _context["catch"](2);
12084
- debugger;
12085
12077
  return _context.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
12086
12078
  message: _context.t0.message
12087
12079
  })));
12088
12080
 
12089
- case 18:
12081
+ case 16:
12090
12082
  case "end":
12091
12083
  return _context.stop();
12092
12084
  }
12093
12085
  }
12094
- }, _callee, null, [[2, 14]]);
12086
+ }, _callee, null, [[2, 13]]);
12095
12087
  })));
12096
12088
  var LOCATION_LIST_UPSERT = createAsyncThunk("locationSlice/locationlistupsert", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
12097
12089
  var payload,
@@ -12158,36 +12150,32 @@ var LOCATION_MASTER_INSERT = createAsyncThunk("locationApiSlice/locationinsert",
12158
12150
  payload = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
12159
12151
  _ref6 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref6.rejectWithValue;
12160
12152
  _context3.prev = 2;
12161
- debugger;
12162
12153
  data = payload.data, _key = payload._key;
12163
12154
  queriesjson = generateJSON(data, _key);
12164
- debugger;
12165
- _context3.next = 9;
12155
+ _context3.next = 7;
12166
12156
  return fetchData({
12167
12157
  body: JSON.stringify(queriesjson)
12168
12158
  }, __uspsertUrl__);
12169
12159
 
12170
- case 9:
12160
+ case 7:
12171
12161
  dataRes = _context3.sent;
12172
- debugger;
12173
12162
  return _context3.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
12174
12163
  data: dataRes
12175
12164
  }));
12176
12165
 
12177
- case 14:
12178
- _context3.prev = 14;
12166
+ case 11:
12167
+ _context3.prev = 11;
12179
12168
  _context3.t0 = _context3["catch"](2);
12180
- debugger;
12181
12169
  return _context3.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
12182
12170
  message: _context3.t0.message
12183
12171
  })));
12184
12172
 
12185
- case 18:
12173
+ case 14:
12186
12174
  case "end":
12187
12175
  return _context3.stop();
12188
12176
  }
12189
12177
  }
12190
- }, _callee3, null, [[2, 14]]);
12178
+ }, _callee3, null, [[2, 11]]);
12191
12179
  })));
12192
12180
  var locationSlice = createSlice({
12193
12181
  name: "locationApiSlice",
@@ -12242,7 +12230,6 @@ var masterQuery$3 = {
12242
12230
  // return_fields:
12243
12231
  // "{id:Organization.id,name:Organization.name,_id:Organization._id,_key:Organization._key}",
12244
12232
  // }
12245
- debugger;
12246
12233
  return {
12247
12234
  "db_name": dbName,
12248
12235
  "entity": "Organization",
@@ -12599,7 +12586,6 @@ var photoData = function photoData(data) {
12599
12586
  var generateReadJSON$1 = function generateReadJSON(data, state) {
12600
12587
  var _data$managingOrgID$;
12601
12588
 
12602
- debugger;
12603
12589
  var inital_workingday_slot_arr = [{
12604
12590
  day: "Mon",
12605
12591
  checked: true,
@@ -12650,7 +12636,6 @@ var generateReadJSON$1 = function generateReadJSON(data, state) {
12650
12636
  toTime: ""
12651
12637
  }]
12652
12638
  }];
12653
- debugger;
12654
12639
  var json = {
12655
12640
  entityType: data.managingOrgEntityType && data.managingOrgEntityType.length > 0 ? state.location_masters_entitytype.data.find(function (sys) {
12656
12641
  return data.managingOrgEntityType[0]._id.indexOf(sys.label) > -1;
@@ -12723,7 +12708,6 @@ var generateReadJSON$1 = function generateReadJSON(data, state) {
12723
12708
  storeCode: data.pharmacy && data.pharmacy.length > 0 && Array.isArray(data.pharmacy) ? data.pharmacy[0].storecode : "",
12724
12709
  maxDaysForReturn: data.pharmacy && data.pharmacy.length > 0 && Array.isArray(data.pharmacy) ? data.pharmacy[0].maxdaysforRtn : null
12725
12710
  };
12726
- debugger;
12727
12711
  return json;
12728
12712
  };
12729
12713
 
@@ -12802,8 +12786,7 @@ var LOCATION_MASTERS_ENTITYNAME = createAsyncThunk("locationMasterSlice/location
12802
12786
  case 6:
12803
12787
  data_arr = _context2.sent;
12804
12788
  arry = [];
12805
- debugger;
12806
- _context2.next = 11;
12789
+ _context2.next = 10;
12807
12790
  return data_arr.result.map(function (val) {
12808
12791
  arry.push(_objectSpread2({
12809
12792
  value: val._id,
@@ -12812,24 +12795,24 @@ var LOCATION_MASTERS_ENTITYNAME = createAsyncThunk("locationMasterSlice/location
12812
12795
  }, val));
12813
12796
  });
12814
12797
 
12815
- case 11:
12798
+ case 10:
12816
12799
  return _context2.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
12817
12800
  data: arry
12818
12801
  }));
12819
12802
 
12820
- case 14:
12821
- _context2.prev = 14;
12803
+ case 13:
12804
+ _context2.prev = 13;
12822
12805
  _context2.t0 = _context2["catch"](2);
12823
12806
  return _context2.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
12824
12807
  message: _context2.t0.message
12825
12808
  })));
12826
12809
 
12827
- case 17:
12810
+ case 16:
12828
12811
  case "end":
12829
12812
  return _context2.stop();
12830
12813
  }
12831
12814
  }
12832
- }, _callee2, null, [[2, 14]]);
12815
+ }, _callee2, null, [[2, 13]]);
12833
12816
  })));
12834
12817
  var LOCATION_MASTERS_LOCATIONTYPE = createAsyncThunk("locationMasterSlice/location_masters_locationtype", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
12835
12818
  var _ref6,
@@ -13293,7 +13276,7 @@ var LOCATION_MASTER_GET_BY_ID = createAsyncThunk("locationMasterSlice/location_m
13293
13276
  id = payload.id;
13294
13277
  state = getState();
13295
13278
  ccState = state.locationMasterSlice; //let masterlist = await loopMasters();
13296
- // debugger;
13279
+ //
13297
13280
 
13298
13281
  _context12.next = 8;
13299
13282
  return fetchData({
@@ -13302,29 +13285,27 @@ var LOCATION_MASTER_GET_BY_ID = createAsyncThunk("locationMasterSlice/location_m
13302
13285
 
13303
13286
  case 8:
13304
13287
  data = _context12.sent;
13305
- // debugger;
13288
+ //
13306
13289
  readJSON = generateReadJSON$1(data.result[0] ? data.result[0] : null, //masterlist
13307
13290
  ccState);
13308
- debugger;
13309
13291
  return _context12.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
13310
13292
  data: readJSON
13311
13293
  }));
13312
13294
 
13313
- case 14:
13314
- _context12.prev = 14;
13295
+ case 13:
13296
+ _context12.prev = 13;
13315
13297
  _context12.t0 = _context12["catch"](2);
13316
- debugger;
13317
13298
  alert(_context12.t0.message);
13318
13299
  return _context12.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
13319
13300
  message: _context12.t0.message
13320
13301
  })));
13321
13302
 
13322
- case 19:
13303
+ case 17:
13323
13304
  case "end":
13324
13305
  return _context12.stop();
13325
13306
  }
13326
13307
  }
13327
- }, _callee12, null, [[2, 14]]);
13308
+ }, _callee12, null, [[2, 13]]);
13328
13309
  })));
13329
13310
  var locationMasterSlice = createSlice({
13330
13311
  name: "locationMasterAPISlice",
@@ -13491,7 +13472,6 @@ var queries$k = {
13491
13472
  }];
13492
13473
  },
13493
13474
  UpdateORModify: function UpdateORModify(data) {
13494
- debugger;
13495
13475
  return [{
13496
13476
  db_name: dbName,
13497
13477
  entity: "OrderType",
@@ -13529,14 +13509,13 @@ var ORDERTYPEREAD = createAsyncThunk("ordertypeSlice/ordertypeRead", /*#__PURE__
13529
13509
  case 0:
13530
13510
  _ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
13531
13511
  _context.prev = 2;
13532
- debugger;
13533
13512
  queriesjson = queries$k.fullread();
13534
- _context.next = 7;
13513
+ _context.next = 6;
13535
13514
  return fetchData({
13536
13515
  body: JSON.stringify(queriesjson)
13537
13516
  }, __readDocumentUrl__);
13538
13517
 
13539
- case 7:
13518
+ case 6:
13540
13519
  data = _context.sent;
13541
13520
  arry = [];
13542
13521
  data.result.map(function (val) {
@@ -13545,7 +13524,6 @@ var ORDERTYPEREAD = createAsyncThunk("ordertypeSlice/ordertypeRead", /*#__PURE__
13545
13524
  if (val !== null && val !== void 0 && (_val$ordercategory = val.ordercategory) !== null && _val$ordercategory !== void 0 && _val$ordercategory.ordercategory && val !== null && val !== void 0 && (_val$ordercategory2 = val.ordercategory) !== null && _val$ordercategory2 !== void 0 && _val$ordercategory2.longdesc) {
13546
13525
  var _val$ordercategory3, _val$ordercategory4, _val$ordercategory5, _val$ordercategory6;
13547
13526
 
13548
- debugger;
13549
13527
  arry.push({
13550
13528
  code: val === null || val === void 0 ? void 0 : (_val$ordercategory3 = val.ordercategory) === null || _val$ordercategory3 === void 0 ? void 0 : _val$ordercategory3.ordercategory,
13551
13529
  "short": val === null || val === void 0 ? void 0 : val.shortdesc,
@@ -13561,25 +13539,23 @@ var ORDERTYPEREAD = createAsyncThunk("ordertypeSlice/ordertypeRead", /*#__PURE__
13561
13539
  });
13562
13540
  }
13563
13541
  });
13564
- debugger;
13565
13542
  return _context.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
13566
13543
  data: arry
13567
13544
  }));
13568
13545
 
13569
- case 14:
13570
- _context.prev = 14;
13546
+ case 12:
13547
+ _context.prev = 12;
13571
13548
  _context.t0 = _context["catch"](2);
13572
- debugger;
13573
13549
  return _context.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
13574
13550
  message: _context.t0.message
13575
13551
  })));
13576
13552
 
13577
- case 18:
13553
+ case 15:
13578
13554
  case "end":
13579
13555
  return _context.stop();
13580
13556
  }
13581
13557
  }
13582
- }, _callee, null, [[2, 14]]);
13558
+ }, _callee, null, [[2, 12]]);
13583
13559
  })));
13584
13560
  var ORDERCATEGORYMASTER = createAsyncThunk("ordertypeSlice/orderCategoryMaster", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
13585
13561
  var _ref4,
@@ -13595,14 +13571,13 @@ var ORDERCATEGORYMASTER = createAsyncThunk("ordertypeSlice/orderCategoryMaster",
13595
13571
  case 0:
13596
13572
  _ref4 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref4.rejectWithValue;
13597
13573
  _context2.prev = 2;
13598
- debugger;
13599
13574
  queriesjson = queries$k.OrderCategory();
13600
- _context2.next = 7;
13575
+ _context2.next = 6;
13601
13576
  return fetchData({
13602
13577
  body: JSON.stringify(queriesjson)
13603
13578
  }, __readDocumentUrl__);
13604
13579
 
13605
- case 7:
13580
+ case 6:
13606
13581
  data = _context2.sent;
13607
13582
  arry = [];
13608
13583
  data.result.map(function (val) {
@@ -13617,19 +13592,19 @@ var ORDERCATEGORYMASTER = createAsyncThunk("ordertypeSlice/orderCategoryMaster",
13617
13592
  data: arry
13618
13593
  }));
13619
13594
 
13620
- case 13:
13621
- _context2.prev = 13;
13595
+ case 12:
13596
+ _context2.prev = 12;
13622
13597
  _context2.t0 = _context2["catch"](2);
13623
13598
  return _context2.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
13624
13599
  message: _context2.t0.message
13625
13600
  })));
13626
13601
 
13627
- case 16:
13602
+ case 15:
13628
13603
  case "end":
13629
13604
  return _context2.stop();
13630
13605
  }
13631
13606
  }
13632
- }, _callee2, null, [[2, 13]]);
13607
+ }, _callee2, null, [[2, 12]]);
13633
13608
  })));
13634
13609
  var UPDATEORDERTABLESTATE = createAsyncThunk("ordertypeSlice/updateOrrderTableState", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
13635
13610
  var payload,
@@ -13690,35 +13665,32 @@ var UPDATESETORDERTABLE = createAsyncThunk("ordertypeSlice/updatesetOrrderTable"
13690
13665
  payload = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
13691
13666
  _ref8 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref8.rejectWithValue;
13692
13667
  _context4.prev = 2;
13693
- debugger;
13694
13668
  data = payload.data;
13695
13669
  queriesjson = queries$k.UpdateORModify(data);
13696
- debugger;
13697
- _context4.next = 9;
13670
+ _context4.next = 7;
13698
13671
  return fetchData({
13699
13672
  body: JSON.stringify(queriesjson)
13700
13673
  }, __uspsertUrl__);
13701
13674
 
13702
- case 9:
13675
+ case 7:
13703
13676
  res = _context4.sent;
13704
13677
  return _context4.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
13705
13678
  data: res
13706
13679
  }));
13707
13680
 
13708
- case 13:
13709
- _context4.prev = 13;
13681
+ case 11:
13682
+ _context4.prev = 11;
13710
13683
  _context4.t0 = _context4["catch"](2);
13711
- debugger;
13712
13684
  return _context4.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
13713
13685
  message: _context4.t0.message
13714
13686
  })));
13715
13687
 
13716
- case 17:
13688
+ case 14:
13717
13689
  case "end":
13718
13690
  return _context4.stop();
13719
13691
  }
13720
13692
  }
13721
- }, _callee4, null, [[2, 13]]);
13693
+ }, _callee4, null, [[2, 11]]);
13722
13694
  })));
13723
13695
  var INSERTORDERTABLE = createAsyncThunk("ordertypeSlice/insertOrrderTable", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
13724
13696
  var payload,
@@ -13738,32 +13710,30 @@ var INSERTORDERTABLE = createAsyncThunk("ordertypeSlice/insertOrrderTable", /*#_
13738
13710
  _context5.prev = 2;
13739
13711
  data = payload.data;
13740
13712
  queriesjson = queries$k.Insert(data);
13741
- debugger;
13742
- _context5.next = 8;
13713
+ _context5.next = 7;
13743
13714
  return fetchData({
13744
13715
  body: JSON.stringify(queriesjson)
13745
13716
  }, __uspsertUrl__);
13746
13717
 
13747
- case 8:
13718
+ case 7:
13748
13719
  res = _context5.sent;
13749
13720
  return _context5.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
13750
13721
  data: res
13751
13722
  }));
13752
13723
 
13753
- case 12:
13754
- _context5.prev = 12;
13724
+ case 11:
13725
+ _context5.prev = 11;
13755
13726
  _context5.t0 = _context5["catch"](2);
13756
- debugger;
13757
13727
  return _context5.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
13758
13728
  message: _context5.t0.message
13759
13729
  })));
13760
13730
 
13761
- case 16:
13731
+ case 14:
13762
13732
  case "end":
13763
13733
  return _context5.stop();
13764
13734
  }
13765
13735
  }
13766
- }, _callee5, null, [[2, 12]]);
13736
+ }, _callee5, null, [[2, 11]]);
13767
13737
  })));
13768
13738
  var ordertypeSlice = createSlice({
13769
13739
  name: "ordertypeApiSlice",
@@ -13827,7 +13797,6 @@ var queries$j = {
13827
13797
  };
13828
13798
  },
13829
13799
  Insert: function Insert(data) {
13830
- debugger;
13831
13800
  return [{
13832
13801
  db_name: dbName,
13833
13802
  entity: "CodeableConceptMaster",
@@ -14304,7 +14273,6 @@ var queries$i = {
14304
14273
  }];
14305
14274
  }
14306
14275
 
14307
- debugger;
14308
14276
  return newData;
14309
14277
  },
14310
14278
  orderModeStatusUpdate: function orderModeStatusUpdate(_ref6) {
@@ -14335,13 +14303,10 @@ var modeActions = [{
14335
14303
  type: "List",
14336
14304
  url: __readDocumentUrl__,
14337
14305
  makeReturnData: function makeReturnData(data) {
14338
- debugger;
14339
14306
  var returnData = [];
14340
14307
 
14341
14308
  if (Array.isArray(data === null || data === void 0 ? void 0 : data.result)) {
14342
14309
  returnData = data === null || data === void 0 ? void 0 : data.result.map(function (codeable) {
14343
- debugger;
14344
-
14345
14310
  var _ref = codeable || {},
14346
14311
  id = _ref.id,
14347
14312
  key = _ref._key,
@@ -14370,7 +14335,6 @@ var modeActions = [{
14370
14335
  });
14371
14336
  }
14372
14337
 
14373
- debugger;
14374
14338
  return returnData;
14375
14339
  }
14376
14340
  }, {
@@ -14957,7 +14921,6 @@ var loopMasters$4 = function loopMasters() {
14957
14921
  }());
14958
14922
  es6Promise.Promise.all(calls).then(function (data) {
14959
14923
  var json = {};
14960
- debugger;
14961
14924
  data.map(function (val) {
14962
14925
  var arr = [];
14963
14926
  val.data.map(function (value) {
@@ -17178,7 +17141,6 @@ var queries$e = {
17178
17141
  },
17179
17142
  age_category_by_id: function age_category_by_id(ids) {
17180
17143
  // ['${AllowedUnit.join("','")}']
17181
- debugger;
17182
17144
  return {
17183
17145
  "db_name": dbName,
17184
17146
  "entity": "AgeCategory",
@@ -17397,7 +17359,6 @@ var generateDrugMasterJSON = function generateDrugMasterJSON(data, _key, draft)
17397
17359
  }
17398
17360
 
17399
17361
  var DrugDispRulesData = [];
17400
- debugger;
17401
17362
 
17402
17363
  if ((data === null || data === void 0 ? void 0 : (_data$dispensesRules = data.dispensesRules) === null || _data$dispensesRules === void 0 ? void 0 : _data$dispensesRules.length) > 0) {
17403
17364
  var _data$dispensesRules2;
@@ -18090,7 +18051,6 @@ var DRUG_MASTER_READ = createAsyncThunk("drugMasterSlice/drug_master_list", /*#_
18090
18051
  case 6:
18091
18052
  data = _context4.sent;
18092
18053
  arry = [];
18093
- debugger;
18094
18054
  data.result.map(function (val) {
18095
18055
  if (val._id) {
18096
18056
  arry.push(_objectSpread2(_objectSpread2({}, val), {}, {
@@ -18107,19 +18067,19 @@ var DRUG_MASTER_READ = createAsyncThunk("drugMasterSlice/drug_master_list", /*#_
18107
18067
  data: arry
18108
18068
  }));
18109
18069
 
18110
- case 13:
18111
- _context4.prev = 13;
18070
+ case 12:
18071
+ _context4.prev = 12;
18112
18072
  _context4.t0 = _context4["catch"](2);
18113
18073
  return _context4.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject.List), {}, {
18114
18074
  message: _context4.t0.message
18115
18075
  })));
18116
18076
 
18117
- case 16:
18077
+ case 15:
18118
18078
  case "end":
18119
18079
  return _context4.stop();
18120
18080
  }
18121
18081
  }
18122
- }, _callee4, null, [[2, 13]]);
18082
+ }, _callee4, null, [[2, 12]]);
18123
18083
  })));
18124
18084
  var DRUG_MASTER_UPSERT = createAsyncThunk("drugMasterSlice/drug_master_upsert", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
18125
18085
  var payload,
@@ -18270,36 +18230,33 @@ var SAVE_DRUG_MASTER = createAsyncThunk("drugMasterSlice/create_drug_master", /*
18270
18230
  _ref13 = _args8.length > 1 ? _args8[1] : undefined, rejectWithValue = _ref13.rejectWithValue;
18271
18231
  _context8.prev = 2;
18272
18232
  data = payload.data, _key = payload._key, draft = payload.draft;
18273
- debugger;
18274
18233
  queriesjson = generateDrugMasterJSON(data, _key, draft);
18275
- debugger;
18276
18234
  console.log(queriesjson);
18277
- _context8.next = 10;
18235
+ _context8.next = 8;
18278
18236
  return fetchData({
18279
18237
  body: JSON.stringify(queriesjson)
18280
18238
  }, __uspsertUrl__);
18281
18239
 
18282
- case 10:
18240
+ case 8:
18283
18241
  dataRes = _context8.sent;
18284
18242
  console.log(queriesjson);
18285
18243
  return _context8.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
18286
18244
  data: dataRes
18287
18245
  }));
18288
18246
 
18289
- case 15:
18290
- _context8.prev = 15;
18247
+ case 13:
18248
+ _context8.prev = 13;
18291
18249
  _context8.t0 = _context8["catch"](2);
18292
- debugger;
18293
18250
  return _context8.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
18294
18251
  message: _context8.t0.message
18295
18252
  })));
18296
18253
 
18297
- case 19:
18254
+ case 16:
18298
18255
  case "end":
18299
18256
  return _context8.stop();
18300
18257
  }
18301
18258
  }
18302
- }, _callee8, null, [[2, 15]]);
18259
+ }, _callee8, null, [[2, 13]]);
18303
18260
  })));
18304
18261
  var DRUG_FORM_TYPE = createAsyncThunk("drugMasterSlice/drug_form_type", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {
18305
18262
  var _ref15,
@@ -18369,26 +18326,24 @@ var DRUG_READ_FORM = createAsyncThunk("drugMasterSlice/drug_form_read", /*#__PUR
18369
18326
 
18370
18327
  case 8:
18371
18328
  data = _context10.sent;
18372
- debugger;
18373
18329
  readData = readDrugMasterJSON((_data$result$ = data === null || data === void 0 ? void 0 : (_data$result = data.result) === null || _data$result === void 0 ? void 0 : _data$result[0]) !== null && _data$result$ !== void 0 ? _data$result$ : null, drugState);
18374
18330
  return _context10.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
18375
18331
  data: readData
18376
18332
  }));
18377
18333
 
18378
- case 14:
18379
- _context10.prev = 14;
18334
+ case 13:
18335
+ _context10.prev = 13;
18380
18336
  _context10.t0 = _context10["catch"](2);
18381
- debugger;
18382
18337
  return _context10.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject.List), {}, {
18383
18338
  message: _context10.t0.message
18384
18339
  })));
18385
18340
 
18386
- case 18:
18341
+ case 16:
18387
18342
  case "end":
18388
18343
  return _context10.stop();
18389
18344
  }
18390
18345
  }
18391
- }, _callee10, null, [[2, 14]]);
18346
+ }, _callee10, null, [[2, 13]]);
18392
18347
  })));
18393
18348
  var AGE_CATEGORY_BY_ID = createAsyncThunk("drugMasterSlice/age_category_by_id", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11() {
18394
18349
  var payload,
@@ -18409,18 +18364,15 @@ var AGE_CATEGORY_BY_ID = createAsyncThunk("drugMasterSlice/age_category_by_id",
18409
18364
  _ref19 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref19.rejectWithValue;
18410
18365
  _context11.prev = 2;
18411
18366
  _ids = payload._ids;
18412
- debugger;
18413
18367
  queriesjson = queries$e.age_category_by_id(_ids);
18414
- debugger;
18415
- _context11.next = 9;
18368
+ _context11.next = 7;
18416
18369
  return fetchData({
18417
18370
  body: JSON.stringify(queriesjson)
18418
18371
  }, __readDocumentUrl__);
18419
18372
 
18420
- case 9:
18373
+ case 7:
18421
18374
  data = _context11.sent;
18422
18375
  arry = [];
18423
- debugger;
18424
18376
  data === null || data === void 0 ? void 0 : (_data$result2 = data.result) === null || _data$result2 === void 0 ? void 0 : _data$result2.map(function (val) {
18425
18377
  var _val$UOM$0$display, _val$UOM, _val$UOM$;
18426
18378
 
@@ -18436,19 +18388,19 @@ var AGE_CATEGORY_BY_ID = createAsyncThunk("drugMasterSlice/age_category_by_id",
18436
18388
  data: arry
18437
18389
  }));
18438
18390
 
18439
- case 16:
18440
- _context11.prev = 16;
18391
+ case 13:
18392
+ _context11.prev = 13;
18441
18393
  _context11.t0 = _context11["catch"](2);
18442
18394
  return _context11.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject.List), {}, {
18443
18395
  message: _context11.t0.message
18444
18396
  })));
18445
18397
 
18446
- case 19:
18398
+ case 16:
18447
18399
  case "end":
18448
18400
  return _context11.stop();
18449
18401
  }
18450
18402
  }
18451
- }, _callee11, null, [[2, 16]]);
18403
+ }, _callee11, null, [[2, 13]]);
18452
18404
  })));
18453
18405
  var drugMasterSlice = createSlice({
18454
18406
  name: "drugMasterSlice",
@@ -18545,7 +18497,6 @@ var queries$d = {
18545
18497
  };
18546
18498
  },
18547
18499
  Insert: function Insert(data) {
18548
- debugger;
18549
18500
  return [{
18550
18501
  db_name: dbName,
18551
18502
  entity: "DrugRouteDirection",
@@ -18577,7 +18528,6 @@ var queries$d = {
18577
18528
  }];
18578
18529
  },
18579
18530
  UpdateORModify: function UpdateORModify(data) {
18580
- debugger;
18581
18531
  return [{
18582
18532
  db_name: dbName,
18583
18533
  entity: "DrugRouteDirection",
@@ -18693,12 +18643,11 @@ var DRUG_ROUTES_DIRECTION_MASTER = createAsyncThunk("drugRoutesSlice/drug_routes
18693
18643
  case 12:
18694
18644
  _context2.prev = 12;
18695
18645
  _context2.t0 = _context2["catch"](2);
18696
- debugger;
18697
18646
  return _context2.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject.List), {}, {
18698
18647
  message: _context2.t0.message
18699
18648
  })));
18700
18649
 
18701
- case 16:
18650
+ case 15:
18702
18651
  case "end":
18703
18652
  return _context2.stop();
18704
18653
  }
@@ -18934,7 +18883,6 @@ var Query = {
18934
18883
  },
18935
18884
  order_catalog_read: "{\n \"db_name\": \"primarycare\",\n \"entity\": \"OrderCatalog\",\n \"sort\":\"OrderCatalog.createddate\",\n \"filter\": \"OrderCatalog.activestatus==true\",\n \"return_fields\": \"MERGE(OrderCatalog,{ordercategory:(document(OrderCatalog.ordercategory)),ordertype:(document(OrderCatalog.ordertype)),healthcareservicecode:(document(OrderCatalog.healthcareservicecode)),OrderCatalogByEncounterTypeAge:(for doc in CA_OrderCatalogByEncounterTypeAge filter doc._id in OrderCatalog.OrderCatalogByEncounterTypeAge return doc),OrderAttribApplicability:(for doc in CA_OrderAttribApplicability filter doc._id in OrderCatalog.OrderAttribApplicability return doc),dfltFastingPeriodUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltFastingPeriodUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltSpecimenBodySite:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenBodySite return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltSpecimenCollectionMethod:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenCollectionMethod return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltSpecimenType:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenType return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltSpecimenVolumeUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenVolumeUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltqtyUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltqtyUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),maxorderqtyUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.maxorderqtyUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),repeatCheckUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.repeatCheckUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),AvailablebyPerOrganization:(for doc in to_array(OrderCatalog.AvailablebyPerOrganization) return merge(doc,{perforganizationId:(document(doc.perforganizationId)),perfOrganizationEntity:(for docs in CodeableConceptMaster filter docs._id==doc.perfOrganizationEntity return merge(doc,{coding:(for cod in CodingMaster filter cod._id in docs.coding return cod.display)}))})),dfltSpecimenContainer:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenContainer return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)}))})\"\n}",
18936
18885
  editOrderCatalog: function editOrderCatalog(id) {
18937
- debugger;
18938
18886
  return {
18939
18887
  db_name: "primarycare",
18940
18888
  entity: "OrderCatalog",
@@ -19147,7 +19095,6 @@ var generateUpdateJSON = function generateUpdateJSON(editID, Status) {
19147
19095
  var generateReadResJson = function generateReadResJson(val, state) {
19148
19096
  var _val$catalogsynonym, _val$ordercategory, _val$ordertype, _val$healthcareservic, _val$dfltqtyUOM, _val$maxorderqtyUOM, _val$repeatCheckUOM, _val$repeatCheckActio, _val$dfltSpecimenType, _val$dfltSpecimenVolu, _val$dfltSpecimenBody, _val$dfltFastingPerio, _val$dfltSpecimenCont, _val$dfltSpecimenColl;
19149
19097
 
19150
- debugger;
19151
19098
  return {
19152
19099
  code: val.ordercatalog,
19153
19100
  longdes: val.longdesc,
@@ -19280,7 +19227,7 @@ var generateInstruction = function generateInstruction(data, state) {
19280
19227
  // let instructionArr = [];
19281
19228
  // for (let index = 0; index < obj.Instruction.data.length; index++) {
19282
19229
  // let v = obj?.Instruction?.data[index];
19283
- // debugger;
19230
+ //
19284
19231
  // let Loopobj = {};
19285
19232
  // (Loopobj["encounterType"] =
19286
19233
  // state.order_catalog_masters.data.encounterType.find(
@@ -19351,7 +19298,7 @@ var generateFrequency = function generateFrequency(data, state) {
19351
19298
  // let instructionArr = [];
19352
19299
  // for (let index = 0; index < obj.Instruction.data.length; index++) {
19353
19300
  // let v = obj?.Instruction?.data[index];
19354
- // debugger;
19301
+ //
19355
19302
  // let Loopobj = {};
19356
19303
  // (Loopobj["encounterType"] =
19357
19304
  // state.order_catalog_masters.data.encounterType.find(
@@ -19454,7 +19401,7 @@ var generatefaciltity = function generatefaciltity(data, state) {
19454
19401
  // });
19455
19402
  // });
19456
19403
  // let Category = arr.filter((sys) => ageCatgry.indexOf(sys.value) > -1);
19457
- // debugger;
19404
+ //
19458
19405
  // return Category;
19459
19406
  // };
19460
19407
 
@@ -19816,24 +19763,23 @@ var SAVE_ORDER_CATALOG = createAsyncThunk("orderCatalogApiSlice/saveOrderCatalog
19816
19763
 
19817
19764
  case 7:
19818
19765
  data = _context8.sent;
19819
- debugger;
19820
19766
  return _context8.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
19821
19767
  data: data
19822
19768
  }));
19823
19769
 
19824
- case 12:
19825
- _context8.prev = 12;
19770
+ case 11:
19771
+ _context8.prev = 11;
19826
19772
  _context8.t0 = _context8["catch"](2);
19827
19773
  return _context8.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
19828
19774
  message: _context8.t0.message
19829
19775
  })));
19830
19776
 
19831
- case 15:
19777
+ case 14:
19832
19778
  case "end":
19833
19779
  return _context8.stop();
19834
19780
  }
19835
19781
  }
19836
- }, _callee8, null, [[2, 12]]);
19782
+ }, _callee8, null, [[2, 11]]);
19837
19783
  })));
19838
19784
  var READ_ORDER_CATALOG = createAsyncThunk("orderCatalogApiSlice/orderCatalogRead", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {
19839
19785
  var _ref15,
@@ -19947,26 +19893,24 @@ var EDIT_ORDER_CATALOG = createAsyncThunk("orderCatalogApiSlice/editOrderCatalog
19947
19893
 
19948
19894
  case 8:
19949
19895
  data = _context11.sent;
19950
- debugger;
19951
19896
  res = generateReadResJson(data.result[0], ccState);
19952
- debugger;
19953
19897
  return _context11.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
19954
19898
  data: res
19955
19899
  }));
19956
19900
 
19957
- case 15:
19958
- _context11.prev = 15;
19901
+ case 13:
19902
+ _context11.prev = 13;
19959
19903
  _context11.t0 = _context11["catch"](2);
19960
19904
  return _context11.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
19961
19905
  message: _context11.t0.message
19962
19906
  })));
19963
19907
 
19964
- case 18:
19908
+ case 16:
19965
19909
  case "end":
19966
19910
  return _context11.stop();
19967
19911
  }
19968
19912
  }
19969
- }, _callee11, null, [[2, 15]]);
19913
+ }, _callee11, null, [[2, 13]]);
19970
19914
  })));
19971
19915
  var DELETE_ATTRIBUTE_DELETE = createAsyncThunk("orderCatalogApiSlice/attributesDelete", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12() {
19972
19916
  var payload,
@@ -20141,7 +20085,6 @@ var queries$c = {
20141
20085
  var generateJson$6 = function generateJson(data, _key) {
20142
20086
  var _data$performingData, _data$orderingFacilit, _data$orderingFacilit2, _data$locationType$va, _data$locationType, _data$sourceLocation$, _data$sourceLocation, _data$ServiceApplicab, _data$ServiceApplicab2, _data$status;
20143
20087
 
20144
- debugger;
20145
20088
  var filter = {};
20146
20089
 
20147
20090
  if (_key) {
@@ -20653,11 +20596,15 @@ var query$4 = {
20653
20596
  readRule: function readRule(_ref3) {
20654
20597
  var groupId = _ref3.groupId;
20655
20598
  return "{\n \"db_name\":\"".concat(ruleDBName, "\",\n \"entity\": \"Rules\",\n \"filter\": \"Rules.activestatus==true && Rules.groupId == ").concat(groupId, "\",\n \"return_fields\": \"{ label: Rules.ruleName, value: Rules._id }\"\n }");
20599
+ },
20600
+ affectedList: function affectedList(_ref4) {
20601
+ var timeTableId = _ref4.timeTableId;
20602
+ return "{\n \"db_name\": \"primarycare\",\n \"filter\": {\n \"Resourcettid\": \"".concat(timeTableId, "\"\n },\n \"queryid\": \"912ee8b2-9f50-4b2f-92ef-8133993f82ab\"\n }");
20656
20603
  }
20657
20604
  };
20658
20605
 
20659
20606
  var upsertData = function upsertData(payload) {
20660
- var _payload$basicDetails, _payload$basicDetails2, _payload$basicDetails3, _payload$basicDetails4, _payload$basicDetails5, _payload$basicDetails6, _payload$basicDetails7, _payload$basicDetails8, _payload$basicDetails9, _payload$ruleSet, _payload$scheduledPer, _payload$scheduledPer2, _payload$scheduledPer3, _payload$scheduledPer4, _payload$scheduledPer5, _payload$scheduledPer6, _payload$scheduledPer7, _payload$scheduledPer8, _payload$scheduledPer9, _payload$scheduledPer10, _payload$scheduledPer11, _payload$scheduledPer12, _payload$scheduledPer13, _payload$scheduledPer14, _payload$scheduledPer15, _payload$scheduledPer16, _payload$scheduledPer17, _payload$scheduledPer18, _payload$scheduledPer19, _payload$scheduledPer20, _payload$scheduledPer21, _payload$scheduledPer22, _payload$scheduledPer23, _payload$scheduledPer24, _payload$scheduledPer25, _payload$scheduledPer26, _payload$scheduledPer27, _payload$scheduledPer28, _payload$scheduledPer29, _payload$scheduledPer30, _payload$scheduledPer31, _payload$scheduledPer32, _payload$scheduledPer33, _payload$scheduledPer34, _payload$scheduledPer35, _payload$scheduledPer36, _payload$scheduledPer37, _payload$scheduledPer38, _payload$scheduledPer39, _payload$scheduledPer40, _payload$scheduledPer41, _payload$scheduledPer42, _payload$scheduledPer43, _payload$scheduledPer44, _payload$scheduledPer45, _payload$scheduledPer46, _payload$scheduledPer47, _payload$scheduledPer48, _payload$scheduledPer49, _payload$scheduledPer50, _payload$scheduledPer51, _payload$scheduledPer52, _payload$scheduledPer53, _payload$basicDetails10, _payload$basicDetails11, _payload$basicDetails12, _payload$basicDetails13, _payload$basicDetails14, _payload$basicDetails15, _payload$basicDetails16;
20607
+ var _payload$basicDetails, _payload$basicDetails2, _payload$basicDetails3, _payload$basicDetails4, _payload$basicDetails5, _payload$basicDetails6, _payload$basicDetails7, _payload$basicDetails8, _payload$basicDetails9, _payload$ruleSet, _payload$scheduledPer, _payload$scheduledPer2, _payload$scheduledPer3, _payload$scheduledPer4, _payload$scheduledPer5, _payload$scheduledPer6, _payload$scheduledPer7, _payload$scheduledPer8, _payload$scheduledPer9, _payload$scheduledPer10, _payload$scheduledPer11, _payload$scheduledPer12, _payload$scheduledPer13, _payload$scheduledPer14, _payload$scheduledPer15, _payload$scheduledPer16, _payload$scheduledPer17, _payload$scheduledPer18, _payload$scheduledPer19, _payload$scheduledPer20, _payload$scheduledPer21, _payload$scheduledPer22, _payload$scheduledPer23, _payload$scheduledPer24, _payload$scheduledPer25, _payload$scheduledPer26, _payload$scheduledPer27, _payload$scheduledPer28, _payload$scheduledPer29, _payload$scheduledPer30, _payload$scheduledPer31, _payload$scheduledPer32, _payload$scheduledPer33, _payload$scheduledPer34, _payload$scheduledPer35, _payload$scheduledPer36, _payload$scheduledPer37, _payload$scheduledPer38, _payload$scheduledPer39, _payload$scheduledPer40, _payload$scheduledPer41, _payload$scheduledPer42, _payload$scheduledPer43, _payload$scheduledPer44, _payload$scheduledPer45, _payload$scheduledPer46, _payload$scheduledPer47, _payload$scheduledPer48, _payload$scheduledPer49, _payload$scheduledPer50, _payload$scheduledPer51, _payload$scheduledPer52, _payload$scheduledPer53, _payload$basicDetails10, _payload$basicDetails11, _payload$basicDetails12, _payload$basicDetails13, _payload$basicDetails14, _payload$basicDetails15, _payload$basicDetails16, _payload$isOverRide;
20661
20608
 
20662
20609
  var filter = {};
20663
20610
  var extraJson = {
@@ -20720,7 +20667,9 @@ var upsertData = function upsertData(payload) {
20720
20667
  return val.value;
20721
20668
  })) !== null && _payload$basicDetails11 !== void 0 ? _payload$basicDetails11 : [],
20722
20669
  "entityType": (_payload$basicDetails14 = payload === null || payload === void 0 ? void 0 : (_payload$basicDetails15 = payload.basicDetails) === null || _payload$basicDetails15 === void 0 ? void 0 : (_payload$basicDetails16 = _payload$basicDetails15.entity_type) === null || _payload$basicDetails16 === void 0 ? void 0 : _payload$basicDetails16.value) !== null && _payload$basicDetails14 !== void 0 ? _payload$basicDetails14 : "",
20723
- "AppointmentDuration": appointmentDurationArr(payload === null || payload === void 0 ? void 0 : payload.appointDuration)
20670
+ "AppointmentDuration": appointmentDurationArr(payload === null || payload === void 0 ? void 0 : payload.appointDuration),
20671
+ "isoverride": (_payload$isOverRide = payload === null || payload === void 0 ? void 0 : payload.isOverRide) !== null && _payload$isOverRide !== void 0 ? _payload$isOverRide : false,
20672
+ "overrideid": payload !== null && payload !== void 0 && payload.isOverRide ? payload.editData._id : ""
20724
20673
  })
20725
20674
  })];
20726
20675
  };
@@ -20768,6 +20717,50 @@ var ruleExcutionPayload = function ruleExcutionPayload(payload) {
20768
20717
  "ruleId": payload === null || payload === void 0 ? void 0 : payload.ruleId
20769
20718
  };
20770
20719
  };
20720
+ var affectedListGenerator = function affectedListGenerator(payload) {
20721
+ try {
20722
+ var userData = {};
20723
+ payload.map(function (value) {
20724
+ if (value !== null && value !== void 0 && value.Appointment) {
20725
+ value.Appointment.map(function (val) {
20726
+ var _val$Schedule$resourc, _val$Schedule;
20727
+
20728
+ var resourceCode = (_val$Schedule$resourc = val === null || val === void 0 ? void 0 : (_val$Schedule = val.Schedule) === null || _val$Schedule === void 0 ? void 0 : _val$Schedule.resourceCode) !== null && _val$Schedule$resourc !== void 0 ? _val$Schedule$resourc : "";
20729
+
20730
+ if (userData[resourceCode]) {
20731
+ var _userData$resourceCod, _userData$resourceCod2, _val$Slot$bookedCount, _val$Slot, _userData$resourceCod3, _userData$resourceCod4, _val$Slot$Maxwaiting, _val$Slot2, _userData$resourceCod5, _userData$resourceCod6, _val$Slot$Maxbooking, _val$Slot3, _userData$resourceCod7, _userData$resourceCod8, _val$Slot$maxwalkin, _val$Slot4, _userData$resourceCod9, _userData$resourceCod10, _val$Slot$maxgeneral, _val$Slot5;
20732
+
20733
+ userData[resourceCode].bookedCount = ((_userData$resourceCod = userData === null || userData === void 0 ? void 0 : (_userData$resourceCod2 = userData[resourceCode]) === null || _userData$resourceCod2 === void 0 ? void 0 : _userData$resourceCod2.bookedCount) !== null && _userData$resourceCod !== void 0 ? _userData$resourceCod : 0) + ((_val$Slot$bookedCount = val === null || val === void 0 ? void 0 : (_val$Slot = val.Slot) === null || _val$Slot === void 0 ? void 0 : _val$Slot.bookedCount) !== null && _val$Slot$bookedCount !== void 0 ? _val$Slot$bookedCount : 0);
20734
+ userData[resourceCode].Maxwaiting = ((_userData$resourceCod3 = userData === null || userData === void 0 ? void 0 : (_userData$resourceCod4 = userData[resourceCode]) === null || _userData$resourceCod4 === void 0 ? void 0 : _userData$resourceCod4.Maxwaiting) !== null && _userData$resourceCod3 !== void 0 ? _userData$resourceCod3 : 0) + ((_val$Slot$Maxwaiting = val === null || val === void 0 ? void 0 : (_val$Slot2 = val.Slot) === null || _val$Slot2 === void 0 ? void 0 : _val$Slot2.Maxwaiting) !== null && _val$Slot$Maxwaiting !== void 0 ? _val$Slot$Maxwaiting : 0);
20735
+ userData[resourceCode].Maxbooking = ((_userData$resourceCod5 = userData === null || userData === void 0 ? void 0 : (_userData$resourceCod6 = userData[resourceCode]) === null || _userData$resourceCod6 === void 0 ? void 0 : _userData$resourceCod6.Maxbooking) !== null && _userData$resourceCod5 !== void 0 ? _userData$resourceCod5 : 0) + ((_val$Slot$Maxbooking = val === null || val === void 0 ? void 0 : (_val$Slot3 = val.Slot) === null || _val$Slot3 === void 0 ? void 0 : _val$Slot3.Maxbooking) !== null && _val$Slot$Maxbooking !== void 0 ? _val$Slot$Maxbooking : 0);
20736
+ userData[resourceCode].maxwalkin = ((_userData$resourceCod7 = userData === null || userData === void 0 ? void 0 : (_userData$resourceCod8 = userData[resourceCode]) === null || _userData$resourceCod8 === void 0 ? void 0 : _userData$resourceCod8.maxwalkin) !== null && _userData$resourceCod7 !== void 0 ? _userData$resourceCod7 : 0) + ((_val$Slot$maxwalkin = val === null || val === void 0 ? void 0 : (_val$Slot4 = val.Slot) === null || _val$Slot4 === void 0 ? void 0 : _val$Slot4.maxwalkin) !== null && _val$Slot$maxwalkin !== void 0 ? _val$Slot$maxwalkin : 0);
20737
+ userData[resourceCode].maxAppointment = ((_userData$resourceCod9 = userData === null || userData === void 0 ? void 0 : (_userData$resourceCod10 = userData[resourceCode]) === null || _userData$resourceCod10 === void 0 ? void 0 : _userData$resourceCod10.maxAppointment) !== null && _userData$resourceCod9 !== void 0 ? _userData$resourceCod9 : 0) + ((_val$Slot$maxgeneral = val === null || val === void 0 ? void 0 : (_val$Slot5 = val.Slot) === null || _val$Slot5 === void 0 ? void 0 : _val$Slot5.maxgeneral) !== null && _val$Slot$maxgeneral !== void 0 ? _val$Slot$maxgeneral : 0);
20738
+ } else {
20739
+ var _val$Appointment$reso, _val$Appointment, _val$Appointment$reso2, _val$Appointment$reso3, _val$Appointment$reso4, _val$Appointment$reso5, _value$Count, _val$Appointment$reso6, _val$Appointment2, _val$Appointment2$res, _val$Appointment2$res2, _val$Appointment2$res3, _val$Appointment2$res4, _val$Appointment2$res5, _val$Appointment2$res6, _val$Appointment2$res7, _val$Appointment2$res8, _val$Appointment$reso7, _val$Appointment3, _val$Appointment3$res, _val$Appointment3$res2, _val$Appointment3$res3, _val$Appointment3$res4, _val$Appointment3$res5, _value$Count2;
20740
+
20741
+ userData[resourceCode] = {
20742
+ name: (_val$Appointment$reso = val === null || val === void 0 ? void 0 : (_val$Appointment = val.Appointment) === null || _val$Appointment === void 0 ? void 0 : (_val$Appointment$reso2 = _val$Appointment.resourcecode) === null || _val$Appointment$reso2 === void 0 ? void 0 : (_val$Appointment$reso3 = _val$Appointment$reso2[0]) === null || _val$Appointment$reso3 === void 0 ? void 0 : (_val$Appointment$reso4 = _val$Appointment$reso3.name) === null || _val$Appointment$reso4 === void 0 ? void 0 : (_val$Appointment$reso5 = _val$Appointment$reso4[0]) === null || _val$Appointment$reso5 === void 0 ? void 0 : _val$Appointment$reso5.text) !== null && _val$Appointment$reso !== void 0 ? _val$Appointment$reso : "",
20743
+ affectedCount: (_value$Count = value === null || value === void 0 ? void 0 : value.Count) !== null && _value$Count !== void 0 ? _value$Count : 0,
20744
+ role: (_val$Appointment$reso6 = val === null || val === void 0 ? void 0 : (_val$Appointment2 = val.Appointment) === null || _val$Appointment2 === void 0 ? void 0 : (_val$Appointment2$res = _val$Appointment2.resourcecode) === null || _val$Appointment2$res === void 0 ? void 0 : (_val$Appointment2$res2 = _val$Appointment2$res[0]) === null || _val$Appointment2$res2 === void 0 ? void 0 : (_val$Appointment2$res3 = _val$Appointment2$res2.practitioner_role) === null || _val$Appointment2$res3 === void 0 ? void 0 : (_val$Appointment2$res4 = _val$Appointment2$res3[0]) === null || _val$Appointment2$res4 === void 0 ? void 0 : (_val$Appointment2$res5 = _val$Appointment2$res4.role) === null || _val$Appointment2$res5 === void 0 ? void 0 : (_val$Appointment2$res6 = _val$Appointment2$res5[0]) === null || _val$Appointment2$res6 === void 0 ? void 0 : (_val$Appointment2$res7 = _val$Appointment2$res6.coding) === null || _val$Appointment2$res7 === void 0 ? void 0 : (_val$Appointment2$res8 = _val$Appointment2$res7[0]) === null || _val$Appointment2$res8 === void 0 ? void 0 : _val$Appointment2$res8.display) !== null && _val$Appointment$reso6 !== void 0 ? _val$Appointment$reso6 : "",
20745
+ type: (_val$Appointment$reso7 = val === null || val === void 0 ? void 0 : (_val$Appointment3 = val.Appointment) === null || _val$Appointment3 === void 0 ? void 0 : (_val$Appointment3$res = _val$Appointment3.resourcecode) === null || _val$Appointment3$res === void 0 ? void 0 : (_val$Appointment3$res2 = _val$Appointment3$res[0]) === null || _val$Appointment3$res2 === void 0 ? void 0 : (_val$Appointment3$res3 = _val$Appointment3$res2.practitioner_type[0]) === null || _val$Appointment3$res3 === void 0 ? void 0 : (_val$Appointment3$res4 = _val$Appointment3$res3.coding) === null || _val$Appointment3$res4 === void 0 ? void 0 : (_val$Appointment3$res5 = _val$Appointment3$res4[0]) === null || _val$Appointment3$res5 === void 0 ? void 0 : _val$Appointment3$res5.display) !== null && _val$Appointment$reso7 !== void 0 ? _val$Appointment$reso7 : "",
20746
+ maxAppointment: val === null || val === void 0 ? void 0 : val.Slot.maxgeneral,
20747
+ maxCount: (_value$Count2 = value === null || value === void 0 ? void 0 : value.Count) !== null && _value$Count2 !== void 0 ? _value$Count2 : 0,
20748
+ overBookCount: 0,
20749
+ waitListCount: 0,
20750
+ Maxwaiting: val === null || val === void 0 ? void 0 : val.Slot.Maxwaiting,
20751
+ Maxbooking: val === null || val === void 0 ? void 0 : val.Slot.Maxbooking,
20752
+ maxwalkin: val === null || val === void 0 ? void 0 : val.Slot.maxwalkin,
20753
+ bookedCount: val === null || val === void 0 ? void 0 : val.Slot.bookedCount
20754
+ };
20755
+ }
20756
+ });
20757
+ }
20758
+ });
20759
+ return Object.values(userData);
20760
+ } catch (e) {
20761
+ return [];
20762
+ }
20763
+ };
20771
20764
 
20772
20765
  var formatCodeableData = function formatCodeableData(data) {
20773
20766
  return data.result.map(function (val) {
@@ -20959,6 +20952,26 @@ var actionsList = [{
20959
20952
  console.log(body);
20960
20953
  return JSON.stringify(body);
20961
20954
  }
20955
+ }, {
20956
+ name: "BLOCK_APPOINTMENT",
20957
+ sliceName: "block_appointment",
20958
+ type: "List",
20959
+ url: __keyClockblockappointment__,
20960
+ makeBody: function makeBody(payload) {
20961
+ return JSON.stringify({
20962
+ "resourceTimeTableId": payload.id,
20963
+ "blockreason": payload.reason
20964
+ });
20965
+ }
20966
+ }, {
20967
+ name: "READ_AFFECTED_APPOINTLIST",
20968
+ sliceName: "affected_list",
20969
+ queryName: "affectedList",
20970
+ type: "List",
20971
+ url: __baseUrl__$1,
20972
+ makeReturnData: function makeReturnData(data) {
20973
+ return affectedListGenerator(data);
20974
+ }
20962
20975
  }];
20963
20976
 
20964
20977
  var actionInfo = {};
@@ -21123,11 +21136,10 @@ var query$3 = {
21123
21136
  };
21124
21137
 
21125
21138
  var generateSlots = function generateSlots(data) {
21126
- debugger;
21127
21139
  var arr = [];
21128
21140
  data.map(function (val, j) {
21129
21141
  val.slot.map(function (v, i) {
21130
- //debugger;
21142
+ //
21131
21143
  console.log(v.status);
21132
21144
  return arr.push({
21133
21145
  id: i,
@@ -21228,11 +21240,24 @@ var ALL_PRACTITIONER = createAsyncThunk("scheduleManagementApiSlice/allPractitio
21228
21240
  case 5:
21229
21241
  data = _context2.sent;
21230
21242
  arr = [];
21231
- debugger;
21232
21243
  data && data.result.map(function (val) {
21244
+ var _val$name$0$prefix$0$, _val$name, _val$name$, _val$name$$prefix, _val$name$$prefix$, _val$name$$prefix$$co, _val$name$$prefix$$co2, _val$name$0$text, _val$name2, _val$name2$, _val$name$0$given, _val$name3, _val$name$0$family, _val$name4, _val$name4$, _val$name$0$suffix$0$, _val$name5, _val$name5$, _val$name5$$suffix, _val$name5$$suffix$, _val$name5$$suffix$$c, _val$name5$$suffix$$c2;
21245
+
21233
21246
  arr.push({
21234
21247
  value: val._id,
21235
- label: val.name.length > 0 ? val.name[0].prefix.length > 0 ? val.name[0].prefix[0].coding[0].display + " " + val.name[0].text + " " + val.name[0].given + " " + val.name[0].family : "" + val.name[0].given + " " + val.name[0].family : "",
21248
+ label: ((_val$name$0$prefix$0$ = val === null || val === void 0 ? void 0 : (_val$name = val.name) === null || _val$name === void 0 ? void 0 : (_val$name$ = _val$name[0]) === null || _val$name$ === void 0 ? void 0 : (_val$name$$prefix = _val$name$.prefix) === null || _val$name$$prefix === void 0 ? void 0 : (_val$name$$prefix$ = _val$name$$prefix[0]) === null || _val$name$$prefix$ === void 0 ? void 0 : (_val$name$$prefix$$co = _val$name$$prefix$.coding) === null || _val$name$$prefix$$co === void 0 ? void 0 : (_val$name$$prefix$$co2 = _val$name$$prefix$$co[0]) === null || _val$name$$prefix$$co2 === void 0 ? void 0 : _val$name$$prefix$$co2.display) !== null && _val$name$0$prefix$0$ !== void 0 ? _val$name$0$prefix$0$ : "") + " " + ((_val$name$0$text = val === null || val === void 0 ? void 0 : (_val$name2 = val.name) === null || _val$name2 === void 0 ? void 0 : (_val$name2$ = _val$name2[0]) === null || _val$name2$ === void 0 ? void 0 : _val$name2$.text) !== null && _val$name$0$text !== void 0 ? _val$name$0$text : "") + " " + ((_val$name$0$given = val === null || val === void 0 ? void 0 : (_val$name3 = val.name) === null || _val$name3 === void 0 ? void 0 : _val$name3[0].given) !== null && _val$name$0$given !== void 0 ? _val$name$0$given : "") + " " + ((_val$name$0$family = val === null || val === void 0 ? void 0 : (_val$name4 = val.name) === null || _val$name4 === void 0 ? void 0 : (_val$name4$ = _val$name4[0]) === null || _val$name4$ === void 0 ? void 0 : _val$name4$.family) !== null && _val$name$0$family !== void 0 ? _val$name$0$family : "") + " " + ((_val$name$0$suffix$0$ = val === null || val === void 0 ? void 0 : (_val$name5 = val.name) === null || _val$name5 === void 0 ? void 0 : (_val$name5$ = _val$name5[0]) === null || _val$name5$ === void 0 ? void 0 : (_val$name5$$suffix = _val$name5$.suffix) === null || _val$name5$$suffix === void 0 ? void 0 : (_val$name5$$suffix$ = _val$name5$$suffix[0]) === null || _val$name5$$suffix$ === void 0 ? void 0 : (_val$name5$$suffix$$c = _val$name5$$suffix$.coding) === null || _val$name5$$suffix$$c === void 0 ? void 0 : (_val$name5$$suffix$$c2 = _val$name5$$suffix$$c[0]) === null || _val$name5$$suffix$$c2 === void 0 ? void 0 : _val$name5$$suffix$$c2.display) !== null && _val$name$0$suffix$0$ !== void 0 ? _val$name$0$suffix$0$ : ""),
21249
+ // label:
21250
+ // val.name.length > 0
21251
+ // ? val.name[0].prefix.length > 0
21252
+ // ? val.name[0].prefix[0].coding[0].display +
21253
+ // " " +
21254
+ // val.name[0].text +
21255
+ // " " +
21256
+ // val.name[0].given +
21257
+ // " " +
21258
+ // val.name[0].family
21259
+ // : "" + val.name[0].given + " " + val.name[0].family
21260
+ // : "",
21236
21261
  id: val.id,
21237
21262
  role: val.practitioner_role.length > 0 ? val.practitioner_role[0].role.length > 0 ? val.practitioner_role[0].role[0].coding[0].display : "" : "Role not Assigned"
21238
21263
  });
@@ -21241,19 +21266,19 @@ var ALL_PRACTITIONER = createAsyncThunk("scheduleManagementApiSlice/allPractitio
21241
21266
  data: arr
21242
21267
  }));
21243
21268
 
21244
- case 12:
21245
- _context2.prev = 12;
21269
+ case 11:
21270
+ _context2.prev = 11;
21246
21271
  _context2.t0 = _context2["catch"](2);
21247
21272
  return _context2.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
21248
21273
  message: _context2.t0.message
21249
21274
  })));
21250
21275
 
21251
- case 15:
21276
+ case 14:
21252
21277
  case "end":
21253
21278
  return _context2.stop();
21254
21279
  }
21255
21280
  }
21256
- }, _callee2, null, [[2, 12]]);
21281
+ }, _callee2, null, [[2, 11]]);
21257
21282
  })));
21258
21283
  var BLOCK_RELEASE_REASON = createAsyncThunk("scheduleManagementApiSlice/block_release_reason", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
21259
21284
  var _ref6,
@@ -21366,32 +21391,31 @@ var RELEASE_SLOTS = createAsyncThunk("scheduleManagementApiSlice/releaseSlots",
21366
21391
  _ref10 = _args5.length > 1 ? _args5[1] : undefined, rejectWithValue = _ref10.rejectWithValue;
21367
21392
  _context5.prev = 2;
21368
21393
  dayStart = payload.dayStart, practitonerID = payload.practitonerID, slotStart = payload.slotStart, slotEnd = payload.slotEnd;
21369
- debugger;
21370
- _context5.next = 7;
21394
+ _context5.next = 6;
21371
21395
  return fetchData({
21372
21396
  body: JSON.stringify(query$3.specific_slots(dayStart, practitonerID, slotStart, slotEnd))
21373
21397
  }, __readDocumentUrl__);
21374
21398
 
21375
- case 7:
21399
+ case 6:
21376
21400
  data = _context5.sent;
21377
21401
  slots = generateSpecificSlots(data.result);
21378
21402
  return _context5.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
21379
21403
  data: slots
21380
21404
  }));
21381
21405
 
21382
- case 12:
21383
- _context5.prev = 12;
21406
+ case 11:
21407
+ _context5.prev = 11;
21384
21408
  _context5.t0 = _context5["catch"](2);
21385
21409
  return _context5.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
21386
21410
  message: _context5.t0.message
21387
21411
  })));
21388
21412
 
21389
- case 15:
21413
+ case 14:
21390
21414
  case "end":
21391
21415
  return _context5.stop();
21392
21416
  }
21393
21417
  }
21394
- }, _callee5, null, [[2, 12]]);
21418
+ }, _callee5, null, [[2, 11]]);
21395
21419
  })));
21396
21420
  var RELEASE_SCHEDULE = createAsyncThunk("scheduleManagementApiSlice/release_schedule", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
21397
21421
  var payload,
@@ -21753,7 +21777,6 @@ var queries$b = {
21753
21777
  };
21754
21778
  },
21755
21779
  orgAddCOUNTRY: function orgAddCOUNTRY(val) {
21756
- debugger;
21757
21780
  return {
21758
21781
  db_name: dbName,
21759
21782
  entity: "SMGeographicMaster",
@@ -21963,7 +21986,6 @@ var ReadTreeDetailJson = function ReadTreeDetailJson(data, parentOrgName) {
21963
21986
  var _val$specialty;
21964
21987
 
21965
21988
  // specialtyDetailsarr
21966
- debugger;
21967
21989
  return {
21968
21990
  effFrom: moment(moment.unix(val.effFrom)._d).format("DD-MM-YYYY"),
21969
21991
  effTo: moment(moment.unix(val.effTo)._d).format("DD-MM-YYYY"),
@@ -22306,7 +22328,6 @@ var generateReadJson$2 = {
22306
22328
  var _val$specialty, _val$specialty2, _val$specialty3, _val$specialty4, _val$specialty5, _val$specialty6, _val$specialty7, _val$specialty8;
22307
22329
 
22308
22330
  // specialtyDetailsarr
22309
- debugger;
22310
22331
  return {
22311
22332
  effFrom: moment(moment.unix(val === null || val === void 0 ? void 0 : val.effFrom)._d).format("DD-MM-YYYY"),
22312
22333
  effTo: moment(moment.unix(val === null || val === void 0 ? void 0 : val.effTo)._d).format("DD-MM-YYYY"),
@@ -22323,7 +22344,6 @@ var generateReadJson$2 = {
22323
22344
  }
22324
22345
  };
22325
22346
  });
22326
- debugger;
22327
22347
  return {
22328
22348
  _key: data === null || data === void 0 ? void 0 : data._key,
22329
22349
  status: data === null || data === void 0 ? void 0 : data.active,
@@ -22720,24 +22740,23 @@ var ORGANIZATION_READ_STATUS_UPSERT = createAsyncThunk("organizationSlice/organi
22720
22740
  case 6:
22721
22741
  data = _context8.sent;
22722
22742
  data === null || data === void 0 ? void 0 : data.code;
22723
- debugger;
22724
22743
  return _context8.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
22725
22744
  data: data
22726
22745
  }));
22727
22746
 
22728
- case 12:
22729
- _context8.prev = 12;
22747
+ case 11:
22748
+ _context8.prev = 11;
22730
22749
  _context8.t0 = _context8["catch"](2);
22731
22750
  return _context8.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
22732
22751
  message: _context8.t0.message
22733
22752
  })));
22734
22753
 
22735
- case 15:
22754
+ case 14:
22736
22755
  case "end":
22737
22756
  return _context8.stop();
22738
22757
  }
22739
22758
  }
22740
- }, _callee8, null, [[2, 12]]);
22759
+ }, _callee8, null, [[2, 11]]);
22741
22760
  })));
22742
22761
  var ORGANIZATION_READ_DETAILS = createAsyncThunk("organizationSlice/organizationReadDetails", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {
22743
22762
  var payload,
@@ -22764,49 +22783,48 @@ var ORGANIZATION_READ_DETAILS = createAsyncThunk("organizationSlice/organization
22764
22783
  _ref18 = _args9.length > 1 ? _args9[1] : undefined, rejectWithValue = _ref18.rejectWithValue;
22765
22784
  _context9.prev = 2;
22766
22785
  _key = payload._key;
22767
- debugger;
22768
- _context9.next = 7;
22786
+ _context9.next = 6;
22769
22787
  return fetchData({
22770
22788
  body: JSON.stringify(queries$b.getTreeDetails(_key))
22771
22789
  }, __readDocumentUrl__);
22772
22790
 
22773
- case 7:
22791
+ case 6:
22774
22792
  data = _context9.sent;
22775
22793
  parentOrgId = data === null || data === void 0 ? void 0 : (_data$result = data.result) === null || _data$result === void 0 ? void 0 : (_data$result$ = _data$result[0]) === null || _data$result$ === void 0 ? void 0 : (_data$result$$ParentO = _data$result$.ParentOrgID) === null || _data$result$$ParentO === void 0 ? void 0 : _data$result$$ParentO[0];
22776
22794
  parentOrgName = 0;
22777
22795
 
22778
22796
  if (!parentOrgId) {
22779
- _context9.next = 14;
22797
+ _context9.next = 13;
22780
22798
  break;
22781
22799
  }
22782
22800
 
22783
- _context9.next = 13;
22801
+ _context9.next = 12;
22784
22802
  return fetchData({
22785
22803
  body: JSON.stringify(queries$b.getParentOrgNameById(parentOrgId))
22786
22804
  }, __readDocumentUrl__);
22787
22805
 
22788
- case 13:
22806
+ case 12:
22789
22807
  parentOrgName = _context9.sent;
22790
22808
 
22791
- case 14:
22809
+ case 13:
22792
22810
  getJson = ReadTreeDetailJson((_data$result2 = data.result) === null || _data$result2 === void 0 ? void 0 : _data$result2[0], (_parentOrgName$result = parentOrgName.result) === null || _parentOrgName$result === void 0 ? void 0 : (_parentOrgName$result2 = _parentOrgName$result[0]) === null || _parentOrgName$result2 === void 0 ? void 0 : _parentOrgName$result2.name);
22793
22811
  return _context9.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
22794
22812
  data: getJson
22795
22813
  }));
22796
22814
 
22797
- case 18:
22798
- _context9.prev = 18;
22815
+ case 17:
22816
+ _context9.prev = 17;
22799
22817
  _context9.t0 = _context9["catch"](2);
22800
22818
  return _context9.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
22801
22819
  message: _context9.t0.message
22802
22820
  })));
22803
22821
 
22804
- case 21:
22822
+ case 20:
22805
22823
  case "end":
22806
22824
  return _context9.stop();
22807
22825
  }
22808
22826
  }
22809
- }, _callee9, null, [[2, 18]]);
22827
+ }, _callee9, null, [[2, 17]]);
22810
22828
  })));
22811
22829
  var ORGANIZATION_GET_ADD_TYPE = createAsyncThunk("organizationSlice/orgAddType", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {
22812
22830
  var _ref20,
@@ -22976,13 +22994,12 @@ var ORGANIZATION_GET_ADD_DISTRICT = createAsyncThunk("organizationSlice/orgAddDI
22976
22994
  _ref26 = _args13.length > 1 ? _args13[1] : undefined, rejectWithValue = _ref26.rejectWithValue;
22977
22995
  _context13.prev = 2;
22978
22996
  val = payload.val;
22979
- debugger;
22980
- _context13.next = 7;
22997
+ _context13.next = 6;
22981
22998
  return fetchData({
22982
22999
  body: JSON.stringify(queries$b.orgAddDISTRICT(val))
22983
23000
  }, __readDocumentUrl__);
22984
23001
 
22985
- case 7:
23002
+ case 6:
22986
23003
  data = _context13.sent;
22987
23004
  result = [];
22988
23005
  data.result.map(function (val, i) {
@@ -22998,19 +23015,19 @@ var ORGANIZATION_GET_ADD_DISTRICT = createAsyncThunk("organizationSlice/orgAddDI
22998
23015
  data: result
22999
23016
  }));
23000
23017
 
23001
- case 13:
23002
- _context13.prev = 13;
23018
+ case 12:
23019
+ _context13.prev = 12;
23003
23020
  _context13.t0 = _context13["catch"](2);
23004
23021
  return _context13.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
23005
23022
  message: _context13.t0.message
23006
23023
  })));
23007
23024
 
23008
- case 16:
23025
+ case 15:
23009
23026
  case "end":
23010
23027
  return _context13.stop();
23011
23028
  }
23012
23029
  }
23013
- }, _callee13, null, [[2, 13]]);
23030
+ }, _callee13, null, [[2, 12]]);
23014
23031
  })));
23015
23032
  var ORGANIZATION_GET_AddSTATE = createAsyncThunk("organizationSlice/orgAddSTATE", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee14() {
23016
23033
  var payload,
@@ -23081,13 +23098,12 @@ var ORGANIZATION_GET_COUNTRY = createAsyncThunk("organizationSlice/orgAddCOUNTRY
23081
23098
  _ref30 = _args15.length > 1 ? _args15[1] : undefined, rejectWithValue = _ref30.rejectWithValue;
23082
23099
  _context15.prev = 2;
23083
23100
  val = payload.val;
23084
- debugger;
23085
- _context15.next = 7;
23101
+ _context15.next = 6;
23086
23102
  return fetchData({
23087
23103
  body: JSON.stringify(queries$b.orgAddCOUNTRY(val))
23088
23104
  }, __readDocumentUrl__);
23089
23105
 
23090
- case 7:
23106
+ case 6:
23091
23107
  data = _context15.sent;
23092
23108
  result = [];
23093
23109
  data.result.map(function (val, i) {
@@ -23103,19 +23119,19 @@ var ORGANIZATION_GET_COUNTRY = createAsyncThunk("organizationSlice/orgAddCOUNTRY
23103
23119
  data: result
23104
23120
  }));
23105
23121
 
23106
- case 13:
23107
- _context15.prev = 13;
23122
+ case 12:
23123
+ _context15.prev = 12;
23108
23124
  _context15.t0 = _context15["catch"](2);
23109
23125
  return _context15.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
23110
23126
  message: _context15.t0.message
23111
23127
  })));
23112
23128
 
23113
- case 16:
23129
+ case 15:
23114
23130
  case "end":
23115
23131
  return _context15.stop();
23116
23132
  }
23117
23133
  }
23118
- }, _callee15, null, [[2, 13]]);
23134
+ }, _callee15, null, [[2, 12]]);
23119
23135
  })));
23120
23136
  var ORGANIZATION_GET_PINCODE = createAsyncThunk("organizationSlice/orgAddPINCODE", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee16() {
23121
23137
  var payload,
@@ -23544,33 +23560,31 @@ var SET_ORGANIZATION = createAsyncThunk("organizationSlice/setOrganization", /*#
23544
23560
  _ref48 = _args24.length > 1 ? _args24[1] : undefined, rejectWithValue = _ref48.rejectWithValue;
23545
23561
  _context24.prev = 2;
23546
23562
  state = payload.state, key = payload.key;
23547
- debugger;
23548
23563
  queriesjson = generateJson$5.insert_json(state, key);
23549
- debugger;
23550
- _context24.next = 9;
23564
+ _context24.next = 7;
23551
23565
  return fetchData({
23552
23566
  body: JSON.stringify(queriesjson)
23553
23567
  }, __uspsertUrl__);
23554
23568
 
23555
- case 9:
23569
+ case 7:
23556
23570
  result = [];
23557
23571
  return _context24.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
23558
23572
  data: result
23559
23573
  }));
23560
23574
 
23561
- case 14:
23562
- _context24.prev = 14;
23575
+ case 12:
23576
+ _context24.prev = 12;
23563
23577
  _context24.t0 = _context24["catch"](2);
23564
23578
  return _context24.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
23565
23579
  message: _context24.t0.message
23566
23580
  })));
23567
23581
 
23568
- case 17:
23582
+ case 15:
23569
23583
  case "end":
23570
23584
  return _context24.stop();
23571
23585
  }
23572
23586
  }
23573
- }, _callee24, null, [[2, 14]]);
23587
+ }, _callee24, null, [[2, 12]]);
23574
23588
  })));
23575
23589
  var ORG_FROM_GET = createAsyncThunk("organizationSlice/getOrganization", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee25() {
23576
23590
  var payload,
@@ -23607,33 +23621,31 @@ var ORG_FROM_GET = createAsyncThunk("organizationSlice/getOrganization", /*#__PU
23607
23621
  });
23608
23622
  }
23609
23623
  });
23610
- debugger;
23611
- _context25.next = 12;
23624
+ _context25.next = 11;
23612
23625
  return fetchData({
23613
23626
  body: JSON.stringify(queries$b.getTreeDetails(key))
23614
23627
  }, __readDocumentUrl__);
23615
23628
 
23616
- case 12:
23629
+ case 11:
23617
23630
  data = _context25.sent;
23618
23631
  queriesjson = generateReadJson$2.read_json(data.result[0], result);
23619
- debugger;
23620
23632
  return _context25.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
23621
23633
  data: queriesjson
23622
23634
  }));
23623
23635
 
23624
- case 18:
23625
- _context25.prev = 18;
23636
+ case 16:
23637
+ _context25.prev = 16;
23626
23638
  _context25.t0 = _context25["catch"](2);
23627
23639
  return _context25.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
23628
23640
  message: _context25.t0.message
23629
23641
  })));
23630
23642
 
23631
- case 21:
23643
+ case 19:
23632
23644
  case "end":
23633
23645
  return _context25.stop();
23634
23646
  }
23635
23647
  }
23636
- }, _callee25, null, [[2, 18]]);
23648
+ }, _callee25, null, [[2, 16]]);
23637
23649
  })));
23638
23650
  var ORGANIZATION_GET_SPECIALTY_DROP = createAsyncThunk("organizationSlice/specialtyDrop", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee26() {
23639
23651
  var _ref52,
@@ -24075,7 +24087,6 @@ var generateJson$4 = function generateJson(data) {
24075
24087
  "applicablefacilities": generateApplicableFacility(data.applicableFacilities)
24076
24088
  }
24077
24089
  })];
24078
- debugger;
24079
24090
  return arr;
24080
24091
  };
24081
24092
 
@@ -24096,7 +24107,6 @@ var generateApplicableFacility = function generateApplicableFacility(data) {
24096
24107
  var generateJsonSpeciality = function generateJsonSpeciality(data) {
24097
24108
  var _data$specialityCode, _data$specialityDescr, _data$parentSpecialit, _data$status2, _data$lastLevel, _data$id2;
24098
24109
 
24099
- debugger;
24100
24110
  var filter = {};
24101
24111
 
24102
24112
  if (data._key_id) {
@@ -24123,7 +24133,6 @@ var generateJsonSpeciality = function generateJsonSpeciality(data) {
24123
24133
  "facilities": generateApplicableFacility_(data.applicableFacilities)
24124
24134
  }
24125
24135
  })];
24126
- debugger;
24127
24136
  return arr;
24128
24137
  };
24129
24138
 
@@ -24171,7 +24180,6 @@ var generateHealthCareServiceReadJSON = function generateHealthCareServiceReadJS
24171
24180
  // : null,
24172
24181
  applicableFacilities: generateapplicableFacilities(val.applicablefacilities)
24173
24182
  };
24174
- debugger;
24175
24183
  return json;
24176
24184
  };
24177
24185
 
@@ -24199,7 +24207,6 @@ var generateapplicableFacilities = function generateapplicableFacilities(data) {
24199
24207
 
24200
24208
 
24201
24209
  var generateSpecialityReadJSON = function generateSpecialityReadJSON(val, state_) {
24202
- debugger;
24203
24210
  var json = {
24204
24211
  id: val.id,
24205
24212
  _key: val._key,
@@ -24219,7 +24226,6 @@ var generateSpecialityReadJSON = function generateSpecialityReadJSON(val, state_
24219
24226
  } : {},
24220
24227
  applicableFacilities: generateapplicableFacility(val.facilities)
24221
24228
  };
24222
- debugger;
24223
24229
  return json;
24224
24230
  };
24225
24231
 
@@ -24881,24 +24887,23 @@ var HEALTH_CARE_SERVICE_MASTER = createAsyncThunk("organizationConfigApiSlice/he
24881
24887
 
24882
24888
  case 6:
24883
24889
  data = _context13.sent;
24884
- debugger;
24885
24890
  return _context13.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
24886
24891
  data: data
24887
24892
  }));
24888
24893
 
24889
- case 11:
24890
- _context13.prev = 11;
24894
+ case 10:
24895
+ _context13.prev = 10;
24891
24896
  _context13.t0 = _context13["catch"](2);
24892
24897
  return _context13.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
24893
24898
  message: _context13.t0.message
24894
24899
  })));
24895
24900
 
24896
- case 14:
24901
+ case 13:
24897
24902
  case "end":
24898
24903
  return _context13.stop();
24899
24904
  }
24900
24905
  }
24901
- }, _callee13, null, [[2, 11]]);
24906
+ }, _callee13, null, [[2, 10]]);
24902
24907
  })));
24903
24908
  var EDIT_HEALTH_CARE_SERVICE = createAsyncThunk("organizationConfigApiSlice/editHealthCareService", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee14() {
24904
24909
  var payload,
@@ -24918,35 +24923,32 @@ var EDIT_HEALTH_CARE_SERVICE = createAsyncThunk("organizationConfigApiSlice/edit
24918
24923
  _ref25 = _args14.length > 1 ? _args14[1] : undefined, rejectWithValue = _ref25.rejectWithValue, getState = _ref25.getState;
24919
24924
  _context14.prev = 2;
24920
24925
  id = payload.id;
24921
- debugger;
24922
24926
  getState();
24923
- _context14.next = 9;
24927
+ _context14.next = 8;
24924
24928
  return fetchData({
24925
24929
  body: JSON.stringify(queries$a.editHealthCareService(id))
24926
24930
  }, __readDocumentUrl__);
24927
24931
 
24928
- case 9:
24932
+ case 8:
24929
24933
  data = _context14.sent;
24930
- debugger;
24931
24934
  res = generateHealthCareServiceReadJSON(data.result[0]);
24932
- debugger;
24933
24935
  return _context14.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
24934
24936
  data: res
24935
24937
  }));
24936
24938
 
24937
- case 16:
24938
- _context14.prev = 16;
24939
+ case 13:
24940
+ _context14.prev = 13;
24939
24941
  _context14.t0 = _context14["catch"](2);
24940
24942
  return _context14.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
24941
24943
  message: _context14.t0.message
24942
24944
  })));
24943
24945
 
24944
- case 19:
24946
+ case 16:
24945
24947
  case "end":
24946
24948
  return _context14.stop();
24947
24949
  }
24948
24950
  }
24949
- }, _callee14, null, [[2, 16]]);
24951
+ }, _callee14, null, [[2, 13]]);
24950
24952
  }))); //SPECIALITY_READ
24951
24953
 
24952
24954
  var SPECIALITY_READ = createAsyncThunk("organizationConfigApiSlice/specialityRead", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee15() {
@@ -24987,24 +24989,23 @@ var SPECIALITY_READ = createAsyncThunk("organizationConfigApiSlice/specialityRea
24987
24989
  });
24988
24990
  }
24989
24991
 
24990
- debugger;
24991
24992
  return _context15.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
24992
24993
  data: arry
24993
24994
  }));
24994
24995
 
24995
- case 12:
24996
- _context15.prev = 12;
24996
+ case 11:
24997
+ _context15.prev = 11;
24997
24998
  _context15.t0 = _context15["catch"](2);
24998
24999
  return _context15.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
24999
25000
  message: _context15.t0.message
25000
25001
  })));
25001
25002
 
25002
- case 15:
25003
+ case 14:
25003
25004
  case "end":
25004
25005
  return _context15.stop();
25005
25006
  }
25006
25007
  }
25007
- }, _callee15, null, [[2, 12]]);
25008
+ }, _callee15, null, [[2, 11]]);
25008
25009
  }))); //SPECIALITY_CHILD_READ
25009
25010
 
25010
25011
  var SPECIALITY_CHILD_READ = createAsyncThunk("organizationConfigApiSlice/specialityChildRead", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee16() {
@@ -25085,32 +25086,30 @@ var SPECIALTY_INSERT = createAsyncThunk("organizationConfigApiSlice/specialityIn
25085
25086
  _context17.prev = 2;
25086
25087
  dataList = payload.dataList;
25087
25088
  queriesjson = generateJsonSpeciality(dataList);
25088
- debugger;
25089
- _context17.next = 8;
25089
+ _context17.next = 7;
25090
25090
  return fetchData({
25091
25091
  body: JSON.stringify(queriesjson)
25092
25092
  }, __uspsertUrl__);
25093
25093
 
25094
- case 8:
25094
+ case 7:
25095
25095
  data = _context17.sent;
25096
- debugger;
25097
25096
  return _context17.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
25098
25097
  data: data
25099
25098
  }));
25100
25099
 
25101
- case 13:
25102
- _context17.prev = 13;
25100
+ case 11:
25101
+ _context17.prev = 11;
25103
25102
  _context17.t0 = _context17["catch"](2);
25104
25103
  return _context17.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
25105
25104
  message: _context17.t0.message
25106
25105
  })));
25107
25106
 
25108
- case 16:
25107
+ case 14:
25109
25108
  case "end":
25110
25109
  return _context17.stop();
25111
25110
  }
25112
25111
  }
25113
- }, _callee17, null, [[2, 13]]);
25112
+ }, _callee17, null, [[2, 11]]);
25114
25113
  })));
25115
25114
  var SPECIALITY_MASTER_PARENT_SPECIALITY = createAsyncThunk("organizationConfigApiSlice/specialityMasterParentSpeciality", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee18() {
25116
25115
  var payload,
@@ -25240,24 +25239,23 @@ var EDIT_SPECIALITY = createAsyncThunk("organizationConfigApiSlice/editSpecialit
25240
25239
  case 8:
25241
25240
  data = _context20.sent;
25242
25241
  res = generateSpecialityReadJSON(data.result[0]);
25243
- debugger;
25244
25242
  return _context20.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
25245
25243
  data: res
25246
25244
  }));
25247
25245
 
25248
- case 14:
25249
- _context20.prev = 14;
25246
+ case 13:
25247
+ _context20.prev = 13;
25250
25248
  _context20.t0 = _context20["catch"](2);
25251
25249
  return _context20.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
25252
25250
  message: _context20.t0.message
25253
25251
  })));
25254
25252
 
25255
- case 17:
25253
+ case 16:
25256
25254
  case "end":
25257
25255
  return _context20.stop();
25258
25256
  }
25259
25257
  }
25260
- }, _callee20, null, [[2, 14]]);
25258
+ }, _callee20, null, [[2, 13]]);
25261
25259
  })));
25262
25260
  var organizationConfigSlice = createSlice({
25263
25261
  name: "organizationConfigApiSlice",
@@ -27625,7 +27623,6 @@ var user_management_actions = _objectSpread2(_objectSpread2(_objectSpread2(_obje
27625
27623
  var generateJson$3 = function generateJson(data, _key) {
27626
27624
  var _data$approvalData, _data$orderingFacilit, _data$orderingFacilit2, _data$ServiceApplicab, _data$ServiceApplicab2, _data$ruleType$_id, _data$ruleType, _data$PrivilegeType$_, _data$PrivilegeType, _data$status;
27627
27625
 
27628
- debugger;
27629
27626
  var filter = {};
27630
27627
 
27631
27628
  if (_key) {
@@ -28072,7 +28069,6 @@ var queries$4 = {
28072
28069
  };
28073
28070
  },
28074
28071
  To_UOM_UPDATE_STATUS: function To_UOM_UPDATE_STATUS(status, key) {
28075
- debugger;
28076
28072
  return [{
28077
28073
  db_name: dbName,
28078
28074
  entity: "DrugUOM",
@@ -28140,7 +28136,6 @@ var generateReadJson$1 = {
28140
28136
  var ConversionMaparr = (_data$result$0$Conver = data.result[0].ConversionMap) === null || _data$result$0$Conver === void 0 ? void 0 : _data$result$0$Conver.map(function (v, i) {
28141
28137
  var _v$ConversionMap, _v$ConversionMap2;
28142
28138
 
28143
- debugger;
28144
28139
  return {
28145
28140
  coversionFactor: v === null || v === void 0 ? void 0 : v.ConversionFactor,
28146
28141
  umoCode: {
@@ -28591,7 +28586,6 @@ var queries$3 = {
28591
28586
  };
28592
28587
  },
28593
28588
  FREQUENCYTYPESTATUS: function FREQUENCYTYPESTATUS(data, key) {
28594
- debugger;
28595
28589
  return [{
28596
28590
  db_name: dbName,
28597
28591
  entity: "FrequencyMaster",
@@ -28606,7 +28600,6 @@ var queries$3 = {
28606
28600
  }];
28607
28601
  },
28608
28602
  SINGLEREADDOC: function SINGLEREADDOC(key) {
28609
- debugger;
28610
28603
  return {
28611
28604
  db_name: dbName,
28612
28605
  entity: "FrequencyMaster",
@@ -28620,7 +28613,6 @@ var generateJson$1 = {
28620
28613
  insert_json: function insert_json(data, key) {
28621
28614
  var _data$frequencyDefini, _data$frequencyDefini2, _data$frequencyDefini3, _data$frequencyDescri, _data$frequencyDescri2, _data$frequencyDescri3, _data$frequencyDescri4, _data$frequencyDescri5, _data$frequencyDescri6, _data$frequencyDescri7, _data$frequencyDescri8, _data$frequencyDescri9, _data$frequencyDescri10, _data$frequencyDescri11, _data$frequencyDescri12, _data$frequencyDescri13, _data$frequencyDescri14, _data$frequencyDescri15;
28622
28615
 
28623
- debugger;
28624
28616
  var filter = {};
28625
28617
 
28626
28618
  if (key) {
@@ -28631,7 +28623,6 @@ var generateJson$1 = {
28631
28623
  };
28632
28624
  }
28633
28625
 
28634
- debugger;
28635
28626
  return [_objectSpread2(_objectSpread2({
28636
28627
  db_name: dbName,
28637
28628
  entity: "FrequencyMaster",
@@ -28665,7 +28656,6 @@ var generateReadJson = {
28665
28656
  read_json: function read_json(data) {
28666
28657
  var _data$dosefreqvalUOM, _data$dosefreqrateUOM, _data$startday, _data$startday2, _data$fixeddurationty, _data$fixeddurationty2, _data$frequencytype, _data$frequencytype2;
28667
28658
 
28668
- debugger;
28669
28659
  return {
28670
28660
  key: data === null || data === void 0 ? void 0 : data._key,
28671
28661
  frequencyDefinition_: {
@@ -29126,36 +29116,33 @@ var DRUG_FREQ_READ_SINGLE = createAsyncThunk("drugMasterFREQUENCYSlice/drug_freq
29126
29116
  payload = _args9.length > 0 && _args9[0] !== undefined ? _args9[0] : {};
29127
29117
  _ref18 = _args9.length > 1 ? _args9[1] : undefined, rejectWithValue = _ref18.rejectWithValue;
29128
29118
  _context9.prev = 2;
29129
- debugger;
29130
29119
  key = payload.key;
29131
29120
  queriesjson = queries$3.SINGLEREADDOC(key);
29132
- _context9.next = 8;
29121
+ _context9.next = 7;
29133
29122
  return fetchData({
29134
29123
  body: JSON.stringify(queriesjson)
29135
29124
  }, __readDocumentUrl__);
29136
29125
 
29137
- case 8:
29126
+ case 7:
29138
29127
  data = _context9.sent;
29139
- debugger;
29140
29128
  read_json = generateReadJson.read_json(data.result[0]);
29141
- debugger;
29142
29129
  return _context9.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
29143
29130
  data: read_json
29144
29131
  }));
29145
29132
 
29146
- case 15:
29147
- _context9.prev = 15;
29133
+ case 12:
29134
+ _context9.prev = 12;
29148
29135
  _context9.t0 = _context9["catch"](2);
29149
29136
  return _context9.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject.List), {}, {
29150
29137
  message: _context9.t0.message
29151
29138
  })));
29152
29139
 
29153
- case 18:
29140
+ case 15:
29154
29141
  case "end":
29155
29142
  return _context9.stop();
29156
29143
  }
29157
29144
  }
29158
- }, _callee9, null, [[2, 15]]);
29145
+ }, _callee9, null, [[2, 12]]);
29159
29146
  })));
29160
29147
  var drugMasterFREQUENCYSlice = createSlice({
29161
29148
  name: "drug_frequncy_list",
@@ -29849,24 +29836,23 @@ var GEOGRAPHIC_COUNTRY_READ = createAsyncThunk("geographicSlice/geoCountryRead",
29849
29836
  status: val === null || val === void 0 ? void 0 : val.active
29850
29837
  });
29851
29838
  });
29852
- debugger;
29853
29839
  return _context3.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
29854
29840
  data: arry
29855
29841
  }));
29856
29842
 
29857
- case 13:
29858
- _context3.prev = 13;
29843
+ case 12:
29844
+ _context3.prev = 12;
29859
29845
  _context3.t0 = _context3["catch"](2);
29860
29846
  return _context3.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
29861
29847
  message: _context3.t0.message
29862
29848
  })));
29863
29849
 
29864
- case 16:
29850
+ case 15:
29865
29851
  case "end":
29866
29852
  return _context3.stop();
29867
29853
  }
29868
29854
  }
29869
- }, _callee3, null, [[2, 13]]);
29855
+ }, _callee3, null, [[2, 12]]);
29870
29856
  }))); //GEOGRAPHIC_STATE_READ
29871
29857
 
29872
29858
  var GEOGRAPHIC_STATE_READ = createAsyncThunk("geographicSlice/geoStateRead", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {