primary_care_admin_binder 0.1.180 → 0.1.182

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 +288 -432
  2. package/package.json +1 -1
package/dist/index.cjs.js CHANGED
@@ -8933,7 +8933,12 @@ var query_ids = {
8933
8933
  "geoCountryRead": "e2cb9d5c-3491-40da-8a5b-c8f90c39e286",
8934
8934
  "editGeoGraphicSingleRead": "be0b63d3-9d9a-46e3-8073-94a66c050541",
8935
8935
  "geoMasterParentCode": "063ee1f3-c2ea-4cb9-bcf5-75e434b7e583",
8936
- "schedule_line_day": "95931016-caf1-413c-8bf5-96f05c5709fb"
8936
+ "schedule_line_day": "95931016-caf1-413c-8bf5-96f05c5709fb",
8937
+ "holidaySinglereadqdm": "d7f170d0-f1f0-4f92-bec6-2171f5bbf358",
8938
+ "holidayEntityreadqdm": "80ccd827-16da-42f5-ac4d-e94b25834229",
8939
+ "holidaySinglereadSelectedqdm": "184fb879-244f-495e-a1dd-31f5eae6faf7",
8940
+ "holiday_qdm": "e8a3d9b8-2503-47e2-9b02-b6abeebef45f",
8941
+ "diagnosis_status_update": "1a55da48-c204-4f45-b7a3-eceeea01c5e3"
8937
8942
  };
8938
8943
 
8939
8944
  var codingMasterTypes = ["ALTERNATEIDTYPE", "RELATIONSHIP", "NAMEPREFIX", "NAMESUFFIX", "GENDER", "USE", "PRACTTYPE", "LANGUAGE", "SPECIALTY", "ORGTYPE", "CONTACTSYSTEM", "PRIORITY", "ADDRESSTYPE", "PRACTROLE", "POSITION", "EMPSTATUS", "MARITALSTATUS"];
@@ -8962,6 +8967,11 @@ var tables = {
8962
8967
  "GENERAL_MASTER": "CodingMaster",
8963
8968
  "ORGANIZATION_MASTER": "Organization"
8964
8969
  };
8970
+ var GMTYPE = {
8971
+ "HOLODAY_STATUS": "HOLIDAYSTATUS",
8972
+ "HOLIDAY_TYPE": "HOLIDAYTYPE",
8973
+ "HOLIDAY_WEEKDAYS": "WEEKDAYS"
8974
+ };
8965
8975
 
8966
8976
  var codingMasterFilter = function codingMasterFilter(type) {
8967
8977
  return {
@@ -18719,16 +18729,15 @@ var GET_HOLIDAY_TYPE = createAsyncThunk("holidaySlice/holidayTypeqdm", /*#__PURE
18719
18729
  case 0:
18720
18730
  _ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
18721
18731
  _context.p = 1;
18722
- // const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
18723
18732
  body = {
18724
18733
  "appcode": dbName,
18725
18734
  "filter": {
18726
- "type": ["HOLIDAYTYPE"],
18735
+ "type": [GMTYPE.HOLIDAY_TYPE],
18727
18736
  "tenantid": "",
18728
18737
  "facilityid": "",
18729
18738
  "lang": ""
18730
18739
  },
18731
- "requestid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
18740
+ "requestid": query_ids.gmLoadQuery
18732
18741
  };
18733
18742
  _context.n = 2;
18734
18743
  return fetchData({
@@ -18770,13 +18779,12 @@ var HOLIDAY_SINGLE_READ_QDM = createAsyncThunk("holidaySlice/holidaySinglereadqd
18770
18779
  payload = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
18771
18780
  _ref4 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref4.rejectWithValue;
18772
18781
  _context2.p = 1;
18773
- // const { holidayid ="" , allData = false } = _id;
18774
18782
  body = {
18775
18783
  "appcode": dbName,
18776
18784
  "filter": {
18777
18785
  "holidayid": payload
18778
18786
  },
18779
- "requestid": "d7f170d0-f1f0-4f92-bec6-2171f5bbf358"
18787
+ "requestid": query_ids.holidaySinglereadqdm
18780
18788
  };
18781
18789
  _context2.n = 2;
18782
18790
  return fetchData({
@@ -18784,7 +18792,6 @@ var HOLIDAY_SINGLE_READ_QDM = createAsyncThunk("holidaySlice/holidaySinglereadqd
18784
18792
  }, __baseUrl__$1);
18785
18793
  case 2:
18786
18794
  data = _context2.v;
18787
- console.log(data);
18788
18795
  return _context2.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
18789
18796
  data: data
18790
18797
  }));
@@ -18811,13 +18818,12 @@ var HOLIDAY_ENTITY_MASTERS_QDM = createAsyncThunk("holidaySlice/entity_read_qdm"
18811
18818
  payload = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : "";
18812
18819
  _ref6 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref6.rejectWithValue;
18813
18820
  _context3.p = 1;
18814
- // const { holidayid ="" , allData = false } = _id;
18815
18821
  body = {
18816
18822
  "appcode": dbName,
18817
18823
  "filter": {
18818
18824
  "holidayid": payload ? payload : ""
18819
18825
  },
18820
- "requestid": "80ccd827-16da-42f5-ac4d-e94b25834229"
18826
+ "requestid": query_ids.holidayEntityreadqdm
18821
18827
  };
18822
18828
  _context3.n = 2;
18823
18829
  return fetchData({
@@ -18858,7 +18864,7 @@ var HOLIDAY_SINGLE_READ_SELECTED_QDM = createAsyncThunk("holidaySlice/holidaySin
18858
18864
  "filter": {
18859
18865
  "holidayid": _id
18860
18866
  },
18861
- "requestid": "184fb879-244f-495e-a1dd-31f5eae6faf7"
18867
+ "requestid": query_ids.holidaySinglereadSelectedqdm
18862
18868
  };
18863
18869
  _context4.n = 2;
18864
18870
  return fetchData({
@@ -18866,7 +18872,6 @@ var HOLIDAY_SINGLE_READ_SELECTED_QDM = createAsyncThunk("holidaySlice/holidaySin
18866
18872
  }, __baseUrl__$1);
18867
18873
  case 2:
18868
18874
  data = _context4.v;
18869
- console.log(data);
18870
18875
  return _context4.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
18871
18876
  data: data
18872
18877
  }));
@@ -19001,48 +19006,6 @@ var HOLIDAY_STATUS_CHANGE = createAsyncThunk("holidaySlice/holidayStatus", /*#__
19001
19006
  }
19002
19007
  }, _callee8, null, [[1, 3]]);
19003
19008
  })));
19004
-
19005
- // const HOLIDAY_READ = createAsyncThunk(
19006
- // `holidaySlice/holidy_list`,
19007
- // async (payload = {}, { rejectWithValue }) => {
19008
- // try {
19009
- // let readqueries = queries.holiday_read(payload);
19010
- // const data = await fetchData(
19011
- // { body: JSON.stringify(readqueries) },
19012
- // __readDocumentUrl__
19013
- // );
19014
-
19015
- // let arry = [];
19016
- // data?.result.map((val) => {
19017
- // if (val._key) {
19018
- // arry.push({
19019
- // total_count: val?.TotalCount,
19020
- // date: val.CalDate ? utcTOLocal(val.CalDate, "DD-MMM") : null,
19021
- // CalYear: val.CalYear ? val.CalYear : null,
19022
- // day: val.CalDay ? val.CalDay?.display : "",
19023
- // holiday_reason: val.HolidayReason ? val.HolidayReason : "",
19024
- // holiday_type: val?.HolidayType ? val?.HolidayType?.display : "",
19025
- // _key: val._key ? val._key : "",
19026
- // status: val.status ? val.status : false,
19027
- // copyData: data?.result,
19028
- // });
19029
- // }
19030
- // });
19031
- //
19032
- // return {
19033
- // ...defaultState.List,
19034
- // data: arry,
19035
- // };
19036
- // } catch (error) {
19037
- // console.log(error, "error");
19038
- // return rejectWithValue({
19039
- // ...defaultReject.List,
19040
- // message: error.message,
19041
- // });
19042
- // }
19043
- // }
19044
- // );
19045
-
19046
19009
  var HOLIDAY_READ_QDM = createAsyncThunk("holidaySlice/holiday_qdm", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9() {
19047
19010
  var payload,
19048
19011
  _ref13,
@@ -19072,8 +19035,8 @@ var HOLIDAY_READ_QDM = createAsyncThunk("holidaySlice/holiday_qdm", /*#__PURE__*
19072
19035
  "page": page,
19073
19036
  "perPage": perPage
19074
19037
  },
19075
- "requestid": "e8a3d9b8-2503-47e2-9b02-b6abeebef45f"
19076
- }; // let readqueries = qdmQueries.holiday_read_qdm(payload);
19038
+ "requestid": query_ids.holiday_qdm
19039
+ };
19077
19040
  _context9.n = 2;
19078
19041
  return fetchData({
19079
19042
  body: JSON.stringify(body)
@@ -19083,9 +19046,9 @@ var HOLIDAY_READ_QDM = createAsyncThunk("holidaySlice/holiday_qdm", /*#__PURE__*
19083
19046
  arry = [];
19084
19047
  data === null || data === void 0 || data.map(function (val) {
19085
19048
  if (val._key) {
19086
- var _val$CalDay;
19049
+ var _ref14, _val$TotalCount, _val$CalDay;
19087
19050
  arry.push({
19088
- total_count: val === null || val === void 0 ? void 0 : val.total_count,
19051
+ total_count: (_ref14 = (_val$TotalCount = val === null || val === void 0 ? void 0 : val.TotalCount) !== null && _val$TotalCount !== void 0 ? _val$TotalCount : val === null || val === void 0 ? void 0 : val.total_count) !== null && _ref14 !== void 0 ? _ref14 : 0,
19089
19052
  date: val.CalDate ? utcTOLocal(val.CalDate, "DD-MM-YYYY") : null,
19090
19053
  CalYear: val.CalYear ? val.CalYear : null,
19091
19054
  day: val.CalDay ? (_val$CalDay = val.CalDay) === null || _val$CalDay === void 0 ? void 0 : _val$CalDay.display : "",
@@ -19093,7 +19056,7 @@ var HOLIDAY_READ_QDM = createAsyncThunk("holidaySlice/holiday_qdm", /*#__PURE__*
19093
19056
  holiday_type: val !== null && val !== void 0 && val.HolidayType ? val === null || val === void 0 ? void 0 : val.HolidayType : "",
19094
19057
  _id: val._id ? val._id : "",
19095
19058
  status: val.status ? val.status : false,
19096
- copyData: data === null || data === void 0 ? void 0 : data.result,
19059
+ copyData: data,
19097
19060
  TotalCountByYear: val === null || val === void 0 ? void 0 : val.TotalCountByYear
19098
19061
  });
19099
19062
  }
@@ -19104,7 +19067,6 @@ var HOLIDAY_READ_QDM = createAsyncThunk("holidaySlice/holiday_qdm", /*#__PURE__*
19104
19067
  case 3:
19105
19068
  _context9.p = 3;
19106
19069
  _t6 = _context9.v;
19107
- console.log(_t6, "error");
19108
19070
  return _context9.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject.List), {}, {
19109
19071
  message: _t6.message
19110
19072
  })));
@@ -19113,7 +19075,7 @@ var HOLIDAY_READ_QDM = createAsyncThunk("holidaySlice/holiday_qdm", /*#__PURE__*
19113
19075
  })));
19114
19076
  var HOLIDAY_SINGLE_READ = createAsyncThunk("holidaySlice/holidy_single_read", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0() {
19115
19077
  var payload,
19116
- _ref15,
19078
+ _ref16,
19117
19079
  rejectWithValue,
19118
19080
  readqueries,
19119
19081
  data,
@@ -19124,8 +19086,7 @@ var HOLIDAY_SINGLE_READ = createAsyncThunk("holidaySlice/holidy_single_read", /*
19124
19086
  while (1) switch (_context0.p = _context0.n) {
19125
19087
  case 0:
19126
19088
  payload = _args0.length > 0 && _args0[0] !== undefined ? _args0[0] : {};
19127
- _ref15 = _args0.length > 1 ? _args0[1] : undefined, rejectWithValue = _ref15.rejectWithValue;
19128
- console.log(payload, "p-p");
19089
+ _ref16 = _args0.length > 1 ? _args0[1] : undefined, rejectWithValue = _ref16.rejectWithValue;
19129
19090
  _context0.p = 1;
19130
19091
  readqueries = queries$j.holiday_single_read(payload);
19131
19092
  _context0.n = 2;
@@ -19156,7 +19117,6 @@ var HOLIDAY_SINGLE_READ = createAsyncThunk("holidaySlice/holidy_single_read", /*
19156
19117
  case 3:
19157
19118
  _context0.p = 3;
19158
19119
  _t7 = _context0.v;
19159
- console.log(_t7, "error");
19160
19120
  return _context0.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject.List), {}, {
19161
19121
  message: _t7.message
19162
19122
  })));
@@ -19165,7 +19125,7 @@ var HOLIDAY_SINGLE_READ = createAsyncThunk("holidaySlice/holidy_single_read", /*
19165
19125
  })));
19166
19126
  var HOLIDAY_SINGLE_READ_SELECTED = createAsyncThunk("holidaySlice/holidy_single_read_selected", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1() {
19167
19127
  var payload,
19168
- _ref17,
19128
+ _ref18,
19169
19129
  rejectWithValue,
19170
19130
  readqueries,
19171
19131
  data,
@@ -19176,8 +19136,7 @@ var HOLIDAY_SINGLE_READ_SELECTED = createAsyncThunk("holidaySlice/holidy_single_
19176
19136
  while (1) switch (_context1.p = _context1.n) {
19177
19137
  case 0:
19178
19138
  payload = _args1.length > 0 && _args1[0] !== undefined ? _args1[0] : {};
19179
- _ref17 = _args1.length > 1 ? _args1[1] : undefined, rejectWithValue = _ref17.rejectWithValue;
19180
- console.log(payload, "p-p123");
19139
+ _ref18 = _args1.length > 1 ? _args1[1] : undefined, rejectWithValue = _ref18.rejectWithValue;
19181
19140
  _context1.p = 1;
19182
19141
  readqueries = queries$j.holiday_single_read_selected(payload);
19183
19142
  _context1.n = 2;
@@ -19186,7 +19145,6 @@ var HOLIDAY_SINGLE_READ_SELECTED = createAsyncThunk("holidaySlice/holidy_single_
19186
19145
  }, __readDocumentUrl__);
19187
19146
  case 2:
19188
19147
  data = _context1.v;
19189
- console.log(data, "kkdkkde");
19190
19148
  arry = [];
19191
19149
  data === null || data === void 0 || data.result.map(function (val) {
19192
19150
  if (val._key) {
@@ -19209,7 +19167,6 @@ var HOLIDAY_SINGLE_READ_SELECTED = createAsyncThunk("holidaySlice/holidy_single_
19209
19167
  case 3:
19210
19168
  _context1.p = 3;
19211
19169
  _t8 = _context1.v;
19212
- console.log(_t8, "error");
19213
19170
  return _context1.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject.List), {}, {
19214
19171
  message: _t8.message
19215
19172
  })));
@@ -19219,7 +19176,7 @@ var HOLIDAY_SINGLE_READ_SELECTED = createAsyncThunk("holidaySlice/holidy_single_
19219
19176
  var HOLIDAY_UPSERT = createAsyncThunk("holidaySlice/holiday_upsert", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee10() {
19220
19177
  var _payload$data;
19221
19178
  var payload,
19222
- _ref19,
19179
+ _ref20,
19223
19180
  rejectWithValue,
19224
19181
  url,
19225
19182
  _payload$data2,
@@ -19230,8 +19187,7 @@ var HOLIDAY_UPSERT = createAsyncThunk("holidaySlice/holiday_upsert", /*#__PURE__
19230
19187
  while (1) switch (_context10.p = _context10.n) {
19231
19188
  case 0:
19232
19189
  payload = _args10.length > 0 && _args10[0] !== undefined ? _args10[0] : {};
19233
- _ref19 = _args10.length > 1 ? _args10[1] : undefined, rejectWithValue = _ref19.rejectWithValue;
19234
- console.log(payload, "testPayloadd");
19190
+ _ref20 = _args10.length > 1 ? _args10[1] : undefined, rejectWithValue = _ref20.rejectWithValue;
19235
19191
  if ((payload === null || payload === void 0 || (_payload$data = payload.data) === null || _payload$data === void 0 ? void 0 : _payload$data.length) > 0) {
19236
19192
  if (payload !== null && payload !== void 0 && (_payload$data2 = payload.data) !== null && _payload$data2 !== void 0 && (_payload$data2 = _payload$data2[0]) !== null && _payload$data2 !== void 0 && _payload$data2._id) {
19237
19193
  url = __holidayEditUrl__;
@@ -19246,7 +19202,6 @@ var HOLIDAY_UPSERT = createAsyncThunk("holidaySlice/holiday_upsert", /*#__PURE__
19246
19202
  }, url, payload === null || payload === void 0 ? void 0 : payload.jwtToken);
19247
19203
  case 2:
19248
19204
  data = _context10.v;
19249
- console.log(data, "sdkfsdkjasdfr");
19250
19205
  return _context10.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
19251
19206
  data: data
19252
19207
  }));
@@ -19261,7 +19216,7 @@ var HOLIDAY_UPSERT = createAsyncThunk("holidaySlice/holiday_upsert", /*#__PURE__
19261
19216
  })));
19262
19217
  var HOLIDAY_MASTERS = createAsyncThunk("holidaySlice/holiday_master", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee11() {
19263
19218
  var payload,
19264
- _ref21,
19219
+ _ref22,
19265
19220
  rejectWithValue,
19266
19221
  data,
19267
19222
  _args11 = arguments,
@@ -19270,7 +19225,7 @@ var HOLIDAY_MASTERS = createAsyncThunk("holidaySlice/holiday_master", /*#__PURE_
19270
19225
  while (1) switch (_context11.p = _context11.n) {
19271
19226
  case 0:
19272
19227
  payload = _args11.length > 0 && _args11[0] !== undefined ? _args11[0] : {};
19273
- _ref21 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref21.rejectWithValue;
19228
+ _ref22 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref22.rejectWithValue;
19274
19229
  _context11.p = 1;
19275
19230
  payload.type;
19276
19231
  _context11.n = 2;
@@ -19291,7 +19246,7 @@ var HOLIDAY_MASTERS = createAsyncThunk("holidaySlice/holiday_master", /*#__PURE_
19291
19246
  })));
19292
19247
  var ENTITY_MASTERS = createAsyncThunk("holidaySlice/entity_read", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee12() {
19293
19248
  var payload,
19294
- _ref23,
19249
+ _ref24,
19295
19250
  rejectWithValue,
19296
19251
  _payload$search,
19297
19252
  queriesjson,
@@ -19302,18 +19257,15 @@ var ENTITY_MASTERS = createAsyncThunk("holidaySlice/entity_read", /*#__PURE__*/_
19302
19257
  while (1) switch (_context12.p = _context12.n) {
19303
19258
  case 0:
19304
19259
  payload = _args12.length > 0 && _args12[0] !== undefined ? _args12[0] : {};
19305
- _ref23 = _args12.length > 1 ? _args12[1] : undefined, rejectWithValue = _ref23.rejectWithValue;
19260
+ _ref24 = _args12.length > 1 ? _args12[1] : undefined, rejectWithValue = _ref24.rejectWithValue;
19306
19261
  _context12.p = 1;
19307
19262
  queriesjson = queries$j.entity_read((_payload$search = payload === null || payload === void 0 ? void 0 : payload.search) !== null && _payload$search !== void 0 ? _payload$search : "");
19308
19263
  _context12.n = 2;
19309
19264
  return fetchData({
19310
19265
  body: JSON.stringify(queriesjson)
19311
- }, __baseUrl__$1
19312
- // __readDocumentUrl__
19313
- );
19266
+ }, __baseUrl__$1);
19314
19267
  case 2:
19315
19268
  data = _context12.v;
19316
- console.log(data, "datasst");
19317
19269
  return _context12.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
19318
19270
  data: data
19319
19271
  }));
@@ -19326,53 +19278,9 @@ var ENTITY_MASTERS = createAsyncThunk("holidaySlice/entity_read", /*#__PURE__*/_
19326
19278
  }
19327
19279
  }, _callee12, null, [[1, 3]]);
19328
19280
  })));
19329
- // const HOLIDAY_STATUS_REASON = createAsyncThunk(
19330
- // `holidaySlice/holidy_status_reason`,
19331
- // async (payload = {}, { rejectWithValue }) => {
19332
- // // try {
19333
- // //
19334
- // // let readqueries = queries.holiday_status_reason(payload);
19335
- // // const data = await fetchData(
19336
- // // { body: JSON.stringify(readqueries) },
19337
- // // _readDocumentUrl_
19338
- // // );
19339
- // // console.log(readqueries, "skdfksdjirrtr");
19340
- // //
19341
- // // return {
19342
- // // ...defaultState.List,
19343
- // // data: data,
19344
- // // };
19345
- // // } catch (error) {
19346
- // // console.log(error, "error");
19347
- // // return rejectWithValue({
19348
- // // ...defaultReject.List,
19349
- // // message: error.message,
19350
- // // });
19351
- // // }
19352
- // try {
19353
- // let queriesjson = queries.holiday_status_reason(payload);
19354
- // const data = await fetchData(
19355
- // { body: JSON.stringify(queriesjson) },
19356
- // // __baseUrl__
19357
- // __readDocumentUrl__
19358
- // );
19359
- // console.log(data, "datass12t");
19360
- // return {
19361
- // ...defaultState.List,
19362
- // data: data,
19363
- // };
19364
- // } catch (error) {
19365
- // return rejectWithValue({
19366
- // ...defaultReject,
19367
- // message: error.message,
19368
- // });
19369
- // }
19370
- // }
19371
- // );
19372
-
19373
19281
  var HOLIDAY_STATUS_REASON_QDM = createAsyncThunk("holidaySlice/holidayStatusReasonqdm", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee13() {
19374
19282
  var payload,
19375
- _ref25,
19283
+ _ref26,
19376
19284
  rejectWithValue,
19377
19285
  _data$2,
19378
19286
  body,
@@ -19384,9 +19292,8 @@ var HOLIDAY_STATUS_REASON_QDM = createAsyncThunk("holidaySlice/holidayStatusReas
19384
19292
  while (1) switch (_context13.p = _context13.n) {
19385
19293
  case 0:
19386
19294
  payload = _args13.length > 0 && _args13[0] !== undefined ? _args13[0] : {};
19387
- _ref25 = _args13.length > 1 ? _args13[1] : undefined, rejectWithValue = _ref25.rejectWithValue;
19295
+ _ref26 = _args13.length > 1 ? _args13[1] : undefined, rejectWithValue = _ref26.rejectWithValue;
19388
19296
  _context13.p = 1;
19389
- // const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
19390
19297
  body = {
19391
19298
  "appcode": dbName,
19392
19299
  "filter": {
@@ -19395,7 +19302,7 @@ var HOLIDAY_STATUS_REASON_QDM = createAsyncThunk("holidaySlice/holidayStatusReas
19395
19302
  "facilityid": "",
19396
19303
  "lang": ""
19397
19304
  },
19398
- "requestid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
19305
+ "requestid": query_ids.gmLoadQuery
19399
19306
  };
19400
19307
  _context13.n = 2;
19401
19308
  return fetchData({
@@ -19423,30 +19330,35 @@ var HOLIDAY_STATUS_REASON_QDM = createAsyncThunk("holidaySlice/holidayStatusReas
19423
19330
  }
19424
19331
  }, _callee13, null, [[1, 3]]);
19425
19332
  })));
19426
- var GET_HOLIDAY_ALL_WEEKDAYS_QDM = createAsyncThunk("holidaySlice/holidayAllWeekdayqdm", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee14() {
19427
- var _ref27,
19333
+ var HOLIDAY_STATUS_MASTER_QDM = createAsyncThunk("holidaySlice/holidayStatusMasterqdm", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee14() {
19334
+ var payload,
19335
+ _ref28,
19428
19336
  rejectWithValue,
19429
19337
  _data$3,
19338
+ _data$4,
19339
+ typeName,
19430
19340
  body,
19431
19341
  data,
19432
19342
  arry,
19343
+ rawList,
19433
19344
  _args14 = arguments,
19434
19345
  _t11;
19435
19346
  return _regenerator().w(function (_context14) {
19436
19347
  while (1) switch (_context14.p = _context14.n) {
19437
19348
  case 0:
19438
- _ref27 = _args14.length > 1 ? _args14[1] : undefined, rejectWithValue = _ref27.rejectWithValue;
19349
+ payload = _args14.length > 0 && _args14[0] !== undefined ? _args14[0] : GMTYPE.HOLODAY_STATUS;
19350
+ _ref28 = _args14.length > 1 ? _args14[1] : undefined, rejectWithValue = _ref28.rejectWithValue;
19439
19351
  _context14.p = 1;
19440
- // const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
19352
+ typeName = typeof payload === "string" && payload ? payload : GMTYPE.HOLODAY_STATUS;
19441
19353
  body = {
19442
19354
  "appcode": dbName,
19443
19355
  "filter": {
19444
- "type": ["WEEKDAYS"],
19356
+ "type": [typeName],
19445
19357
  "tenantid": "",
19446
19358
  "facilityid": "",
19447
19359
  "lang": ""
19448
19360
  },
19449
- "requestid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
19361
+ "requestid": query_ids.gmLoadQuery
19450
19362
  };
19451
19363
  _context14.n = 2;
19452
19364
  return fetchData({
@@ -19455,9 +19367,13 @@ var GET_HOLIDAY_ALL_WEEKDAYS_QDM = createAsyncThunk("holidaySlice/holidayAllWeek
19455
19367
  case 2:
19456
19368
  data = _context14.v;
19457
19369
  arry = [];
19458
- (_data$3 = data[0]) === null || _data$3 === void 0 || (_data$3 = _data$3.WEEKDAYS) === null || _data$3 === void 0 || (_data$3 = _data$3.Value) === null || _data$3 === void 0 || _data$3.map(function (item) {
19370
+ rawList = ((_data$3 = data[0]) === null || _data$3 === void 0 || (_data$3 = _data$3[typeName]) === null || _data$3 === void 0 ? void 0 : _data$3.Value) || ((_data$4 = data[0]) === null || _data$4 === void 0 || (_data$4 = _data$4.HOLIDAYSTATUS) === null || _data$4 === void 0 ? void 0 : _data$4.Value) || [];
19371
+ rawList.map(function (item) {
19459
19372
  return arry.push({
19460
19373
  _id: item._id,
19374
+ id: item.id,
19375
+ code: item.code,
19376
+ display: item.display,
19461
19377
  Value: item._id,
19462
19378
  label: item.display
19463
19379
  });
@@ -19474,6 +19390,57 @@ var GET_HOLIDAY_ALL_WEEKDAYS_QDM = createAsyncThunk("holidaySlice/holidayAllWeek
19474
19390
  }
19475
19391
  }, _callee14, null, [[1, 3]]);
19476
19392
  })));
19393
+ var GET_HOLIDAY_ALL_WEEKDAYS_QDM = createAsyncThunk("holidaySlice/holidayAllWeekdayqdm", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee15() {
19394
+ var _ref30,
19395
+ rejectWithValue,
19396
+ _data$5,
19397
+ body,
19398
+ data,
19399
+ arry,
19400
+ _args15 = arguments,
19401
+ _t12;
19402
+ return _regenerator().w(function (_context15) {
19403
+ while (1) switch (_context15.p = _context15.n) {
19404
+ case 0:
19405
+ _ref30 = _args15.length > 1 ? _args15[1] : undefined, rejectWithValue = _ref30.rejectWithValue;
19406
+ _context15.p = 1;
19407
+ // const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
19408
+ body = {
19409
+ "appcode": dbName,
19410
+ "filter": {
19411
+ "type": [GMTYPE.HOLIDAY_WEEKDAYS],
19412
+ "tenantid": "",
19413
+ "facilityid": "",
19414
+ "lang": ""
19415
+ },
19416
+ "requestid": query_ids.gmLoadQuery
19417
+ };
19418
+ _context15.n = 2;
19419
+ return fetchData({
19420
+ body: JSON.stringify(body)
19421
+ }, __baseUrl__$1);
19422
+ case 2:
19423
+ data = _context15.v;
19424
+ arry = [];
19425
+ (_data$5 = data[0]) === null || _data$5 === void 0 || (_data$5 = _data$5.WEEKDAYS) === null || _data$5 === void 0 || (_data$5 = _data$5.Value) === null || _data$5 === void 0 || _data$5.map(function (item) {
19426
+ return arry.push({
19427
+ _id: item._id,
19428
+ Value: item._id,
19429
+ label: item.display
19430
+ });
19431
+ });
19432
+ return _context15.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
19433
+ data: arry
19434
+ }));
19435
+ case 3:
19436
+ _context15.p = 3;
19437
+ _t12 = _context15.v;
19438
+ return _context15.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
19439
+ message: _t12.message
19440
+ })));
19441
+ }
19442
+ }, _callee15, null, [[1, 3]]);
19443
+ })));
19477
19444
  var holidaySlice = createSlice({
19478
19445
  name: "holidaySlice",
19479
19446
  initialState: {
@@ -19491,9 +19458,51 @@ var holidaySlice = createSlice({
19491
19458
  holiday_master: _objectSpread2({}, defaultState.List),
19492
19459
  entity_master: _objectSpread2({}, defaultState.List),
19493
19460
  holidy_status_reason: _objectSpread2({}, defaultState.List),
19494
- holidayAllWeekdayqdm: _objectSpread2({}, defaultState.List)
19461
+ holidayAllWeekdayqdm: _objectSpread2({}, defaultState.List),
19462
+ holidayStatusMasterqdm: _objectSpread2({}, defaultState.List),
19463
+ activeStatusObj: null,
19464
+ inActiveStatusObj: null
19495
19465
  },
19496
- extraReducers: (_extraReducers$t = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$t, HOLIDAY_STATUS_CHANGE.fulfilled, function (state, action) {
19466
+ extraReducers: (_extraReducers$t = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$t, HOLIDAY_STATUS_MASTER_QDM.fulfilled, function (state, action) {
19467
+ var _action$payload;
19468
+ state.holidayStatusMasterqdm.loading = false;
19469
+ state.holidayStatusMasterqdm.error = false;
19470
+ state.holidayStatusMasterqdm = action.payload;
19471
+ var list = ((_action$payload = action.payload) === null || _action$payload === void 0 ? void 0 : _action$payload.data) || [];
19472
+ var activeItem = list.find(function (item) {
19473
+ var _item$display;
19474
+ return item.code === "ACTIVE-HS" || ((_item$display = item.display) === null || _item$display === void 0 ? void 0 : _item$display.toLowerCase()) === "active";
19475
+ });
19476
+ var inActiveItem = list.find(function (item) {
19477
+ var _item$display2;
19478
+ return item.code === "INACTIVE" || ((_item$display2 = item.display) === null || _item$display2 === void 0 ? void 0 : _item$display2.toLowerCase()) === "inactive";
19479
+ });
19480
+ state.activeStatusObj = activeItem ? {
19481
+ id: activeItem.id,
19482
+ _id: activeItem._id,
19483
+ code: activeItem.code,
19484
+ display: activeItem.display || "Active"
19485
+ } : {
19486
+ code: "ACTIVE-HS",
19487
+ display: "Active"
19488
+ };
19489
+ state.inActiveStatusObj = inActiveItem ? {
19490
+ id: inActiveItem.id,
19491
+ _id: inActiveItem._id,
19492
+ code: inActiveItem.code,
19493
+ display: inActiveItem.display || "Inactive"
19494
+ } : {
19495
+ code: "INACTIVE",
19496
+ display: "Inactive"
19497
+ };
19498
+ }), HOLIDAY_STATUS_MASTER_QDM.pending, function (state, action) {
19499
+ state.holidayStatusMasterqdm.loading = true;
19500
+ state.holidayStatusMasterqdm.error = false;
19501
+ }), HOLIDAY_STATUS_MASTER_QDM.rejected, function (state, action) {
19502
+ state.holidayStatusMasterqdm.loading = false;
19503
+ state.holidayStatusMasterqdm.error = true;
19504
+ state.holidayStatusMasterqdm = action.payload;
19505
+ }), HOLIDAY_STATUS_CHANGE.fulfilled, function (state, action) {
19497
19506
  state.status_update.loading = false, state.status_update.error = false, state.status_update = action.payload;
19498
19507
  }), HOLIDAY_STATUS_CHANGE.pending, function (state, action) {
19499
19508
  state.status_update.loading = true, state.status_update.error = false, state.status_update.loading = true;
@@ -19507,13 +19516,13 @@ var holidaySlice = createSlice({
19507
19516
  state.holidayTypeqdm.loading = false, state.holidayTypeqdm.error = true, state.holidayTypeqdm = action.payload;
19508
19517
  }), HOLIDAY_STATUS_REASON_QDM.fulfilled, function (state, action) {
19509
19518
  state.holidayStatusReasonqdm.loading = false, state.holidayStatusReasonqdm.error = false, state.holidayStatusReasonqdm = action.payload;
19510
- }), HOLIDAY_STATUS_REASON_QDM.pending, function (state, action) {
19519
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$t, HOLIDAY_STATUS_REASON_QDM.pending, function (state, action) {
19511
19520
  state.holidayStatusReasonqdm.loading = true, state.holidayStatusReasonqdm.error = false, state.holidayStatusReasonqdm.loading = true;
19512
19521
  }), HOLIDAY_STATUS_REASON_QDM.rejected, function (state, action) {
19513
19522
  state.holidayStatusReasonqdm.loading = false, state.holidayStatusReasonqdm.error = true, state.holidayStatusReasonqdm = action.payload;
19514
19523
  }), HOLIDAY_READ_QDM.fulfilled, function (state, action) {
19515
19524
  state.holiday_qdm.loading = false, state.holiday_qdm.error = false, state.holiday_qdm = action.payload;
19516
- }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$t, HOLIDAY_READ_QDM.pending, function (state, action) {
19525
+ }), HOLIDAY_READ_QDM.pending, function (state, action) {
19517
19526
  state.holiday_qdm.loading = true, state.holiday_qdm.error = false, state.holiday_qdm.loading = true;
19518
19527
  }), HOLIDAY_READ_QDM.rejected, function (state, action) {
19519
19528
  state.holiday_qdm.loading = false, state.holiday_qdm.error = true, state.holiday_qdm = action.payload;
@@ -19527,13 +19536,13 @@ var holidaySlice = createSlice({
19527
19536
  state.holidy_single_list_selected.loading = false, state.holidy_single_list_selected.error = false, state.holidy_single_list_selected = action.payload;
19528
19537
  }), HOLIDAY_SINGLE_READ_SELECTED.pending, function (state, action) {
19529
19538
  state.holidy_single_list_selected.loading = true, state.holidy_single_list_selected.error = false, state.holidy_single_list_selected.loading = true;
19530
- }), HOLIDAY_SINGLE_READ_SELECTED.rejected, function (state, action) {
19539
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$t, HOLIDAY_SINGLE_READ_SELECTED.rejected, function (state, action) {
19531
19540
  state.holidy_single_list_selected.loading = false, state.holidy_single_list_selected.error = true, state.holidy_single_list_selected = action.payload;
19532
19541
  }), HOLIDAY_UPSERT.fulfilled, function (state, action) {
19533
19542
  state.holiday_upsert.loading = false, state.holiday_upsert.error = false, state.holiday_upsert = action.payload;
19534
19543
  }), HOLIDAY_UPSERT.pending, function (state, action) {
19535
19544
  state.holiday_upsert.loading = true, state.holiday_upsert.error = false, state.holiday_upsert.loading = true;
19536
- }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$t, HOLIDAY_UPSERT.rejected, function (state, action) {
19545
+ }), HOLIDAY_UPSERT.rejected, function (state, action) {
19537
19546
  state.holiday_upsert.loading = false, state.holiday_upsert.error = true, state.holiday_upsert = action.payload;
19538
19547
  }), HOLIDAY_MASTERS.fulfilled, function (state, action) {
19539
19548
  state.holiday_master.loading = false, state.holiday_master.error = false, state.holiday_master = action.payload;
@@ -19547,13 +19556,13 @@ var holidaySlice = createSlice({
19547
19556
  state.entity_master.loading = true, state.entity_master.error = false, state.entity_master.loading = true;
19548
19557
  }), ENTITY_MASTERS.rejected, function (state, action) {
19549
19558
  state.entity_master.loading = false, state.entity_master.error = true, state.entity_master = action.payload;
19550
- }), HOLIDAY_SINGLE_READ_QDM.fulfilled, function (state, action) {
19559
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$t, HOLIDAY_SINGLE_READ_QDM.fulfilled, function (state, action) {
19551
19560
  state.holidaySinglereadqdm.loading = false, state.holidaySinglereadqdm.error = false, state.holidaySinglereadqdm = action.payload;
19552
19561
  }), HOLIDAY_SINGLE_READ_QDM.pending, function (state, action) {
19553
19562
  state.holidaySinglereadqdm.loading = true, state.holidaySinglereadqdm.error = false, state.holidaySinglereadqdm.loading = true;
19554
19563
  }), HOLIDAY_SINGLE_READ_QDM.rejected, function (state, action) {
19555
19564
  state.holidaySinglereadqdm.loading = false, state.holidaySinglereadqdm.error = true, state.holidaySinglereadqdm = action.payload;
19556
- }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$t, HOLIDAY_SINGLE_READ_SELECTED.fulfilled, function (state, action) {
19565
+ }), HOLIDAY_SINGLE_READ_SELECTED.fulfilled, function (state, action) {
19557
19566
  state.holidy_single_list_selected.loading = false, state.holidy_single_list_selected.error = false, state.holidy_single_list_selected = action.payload;
19558
19567
  }), HOLIDAY_SINGLE_READ_SELECTED.pending, function (state, action) {
19559
19568
  state.holidy_single_list_selected.loading = true, state.holidy_single_list_selected.error = false, state.holidy_single_list_selected.loading = true;
@@ -19567,13 +19576,13 @@ var holidaySlice = createSlice({
19567
19576
  state.holidaySinglereadSelectedqdm.loading = false, state.holidaySinglereadSelectedqdm.error = true, state.holidaySinglereadSelectedqdm = action.payload;
19568
19577
  }), HOLIDAY_ENTITY_MASTERS_QDM.fulfilled, function (state, action) {
19569
19578
  state.entity_read_qdm.loading = false, state.entity_read_qdm.error = false, state.entity_read_qdm = action.payload;
19570
- }), HOLIDAY_ENTITY_MASTERS_QDM.pending, function (state, action) {
19579
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$t, HOLIDAY_ENTITY_MASTERS_QDM.pending, function (state, action) {
19571
19580
  state.entity_read_qdm.loading = true, state.entity_read_qdm.error = false, state.entity_read_qdm.loading = true;
19572
19581
  }), HOLIDAY_ENTITY_MASTERS_QDM.rejected, function (state, action) {
19573
19582
  state.entity_read_qdm.loading = false, state.entity_read_qdm.error = true, state.entity_read_qdm = action.payload;
19574
19583
  }), GET_HOLIDAY_ALL_WEEKDAYS_QDM.fulfilled, function (state, action) {
19575
19584
  state.holidayAllWeekdayqdm.loading = false, state.holidayAllWeekdayqdm.error = false, state.holidayAllWeekdayqdm = action.payload;
19576
- }), _defineProperty(_defineProperty(_extraReducers$t, GET_HOLIDAY_ALL_WEEKDAYS_QDM.pending, function (state, action) {
19585
+ }), GET_HOLIDAY_ALL_WEEKDAYS_QDM.pending, function (state, action) {
19577
19586
  state.holidayAllWeekdayqdm.loading = true, state.holidayAllWeekdayqdm.error = false, state.holidayAllWeekdayqdm.loading = true;
19578
19587
  }), GET_HOLIDAY_ALL_WEEKDAYS_QDM.rejected, function (state, action) {
19579
19588
  state.holidayAllWeekdayqdm.loading = false, state.holidayAllWeekdayqdm.error = true, state.holidayAllWeekdayqdm = action.payload;
@@ -19591,6 +19600,7 @@ var holidayActions = {
19591
19600
  HOLIDAY_SINGLE_READ_QDM: HOLIDAY_SINGLE_READ_QDM,
19592
19601
  HOLIDAY_SINGLE_READ_SELECTED_QDM: HOLIDAY_SINGLE_READ_SELECTED_QDM,
19593
19602
  HOLIDAY_STATUS_REASON_QDM: HOLIDAY_STATUS_REASON_QDM,
19603
+ HOLIDAY_STATUS_MASTER_QDM: HOLIDAY_STATUS_MASTER_QDM,
19594
19604
  HOLIDAY_ENTITY_MASTERS_QDM: HOLIDAY_ENTITY_MASTERS_QDM,
19595
19605
  GET_HOLIDAY_ALL_WEEKDAYS_QDM: GET_HOLIDAY_ALL_WEEKDAYS_QDM
19596
19606
  };
@@ -22453,38 +22463,6 @@ var resourceByAppointmentTypes = {
22453
22463
  var resourceByAppointmentTypesSlice$1 = resourceByAppointmentTypesSlice.reducer;
22454
22464
 
22455
22465
  var queries$h = {
22456
- // drug_category_read: (page, perPage, search) => {
22457
- // return {
22458
- // appcode: dbName,
22459
- // entity: "DrugCategory",
22460
- // filter: `(LIKE(DrugCategory.drugcategory,'%${search}%',true) || LIKE(DrugCategory.shortdesc,'%${search}%',true) || LIKE(DrugCategory.longdesc,'%${search}%',true)) && DrugCategory.activestatus == true`,
22461
- // limit: { offset: page, count: perPage },
22462
- // return_fields:
22463
- // `MERGE(DrugCategory, { TotalCount:count( FOR drgcat IN DrugCategory FILTER ( LIKe(drgcat.drugcategory,'%${search}%',true) || LIKE(drgcat.shortdesc,'%${search}%',true) || LIKE(drgcat.longdesc,'%${search}%',true)) && drgcat.activestatus == true return drgcat._id ) })`,
22464
- // };
22465
- // },
22466
- // drug_type_read: (page, perPage, search) => {
22467
- // return {
22468
- // appcode: dbName,
22469
- // entity: "DrugType",
22470
- // filter: `(LIKE(DrugType.drugtype,'%${search}%',true) || LIKE(DrugType.shortdesc,'%${search}%',true) || LIKE(DrugType.longdesc,'%${search}%',true)) && DrugType.activestatus == true`,
22471
- // limit: { offset: page, count: perPage },
22472
- // sort: "DrugType.id",
22473
- // return_fields:
22474
- // `MERGE(DrugType, { TotalCount:count( FOR dtype IN DrugType FILTER ( LIKe(dtype.drugtype,'%${search}%',true) || LIKE(dtype.shortdesc,'%${search}%',true) || LIKE(dtype.longdesc,'%${search}%',true)) && dtype.activestatus == true return dtype._id ) })`,
22475
- // };
22476
- // },
22477
- // drug_dosage: (page, perPage,search) => {
22478
- // return {
22479
- // appcode: dbName,
22480
- // entity: "DosageForm",
22481
- // sort: "DosageForm.dosageform",
22482
- // filter: `(LIKE(DosageForm.dosageform,'%${search}%',true) || LIKE(DosageForm.UOM,'%${search}%',true) || LIKE(DosageForm.longdesc,'%${search}%',true)) && DosageForm.activestatus == true`,
22483
- // limit: { offset: page, count: perPage },
22484
- // return_fields:
22485
- // `MERGE(DosageForm, { TotalCount:count(FOR dsgform IN DosageForm FILTER ( LIKe(dsgform.dsgform,'%${search}%',true) || LIKE(dsgform.UOM,'%${search}%',true) || LIKE(dsgform.longdesc,'%${search}%',true) ) && dsgform.activestatus == true return dsgform._id ) })`,
22486
- // };
22487
- // },
22488
22466
  drug_category_read: function drug_category_read(page, perPage, search) {
22489
22467
  return {
22490
22468
  appcode: dbName,
@@ -22529,7 +22507,7 @@ var queries$h = {
22529
22507
  }
22530
22508
  return [_objectSpread2(_objectSpread2({
22531
22509
  appcode: dbName,
22532
- entity: "DosageForm",
22510
+ collection: "DosageForm",
22533
22511
  is_metadata: true
22534
22512
  }, filter), {}, {
22535
22513
  metadataId: metaDataId$1,
@@ -22546,7 +22524,7 @@ var queries$h = {
22546
22524
  status_update_drug_dosage: function status_update_drug_dosage(data) {
22547
22525
  return [{
22548
22526
  appcode: dbName,
22549
- entity: "DosageForm",
22527
+ collection: "DosageForm",
22550
22528
  filter: {
22551
22529
  _key: data._key
22552
22530
  },
@@ -22558,16 +22536,6 @@ var queries$h = {
22558
22536
  }
22559
22537
  }];
22560
22538
  },
22561
- // drug_class: (page, perPage, search) => {
22562
- // return {
22563
- // appcode: dbName,
22564
- // entity: "DrugClass",
22565
- // filter: `(LIKE(DrugClass.drugclass,'%${search}%',true) || LIKE(DrugClass.longdesc,'%${search}%',true) || LIKE(DrugClass.shortdesc,'%${search}%',true)) && DrugClass.activestatus == true`,
22566
- // limit: { offset: page, count: perPage },
22567
- // sort: "DrugClass.drugclass",
22568
- // return_fields: `MERGE(DrugClass, { TotalCount:count( FOR dc IN DrugClass FILTER ( LIKE(dc.drugclass,'%${search}%',true) || LIKE(dc.longdesc,'%${search}%',true) || LIKE(dc.shortdesc,'%${search}%',true)) && dc.activestatus == true return dc._id ) })`,
22569
- // };
22570
- // },
22571
22539
  drug_class: function drug_class(page, perPage, search) {
22572
22540
  return {
22573
22541
  appcode: dbName,
@@ -22590,13 +22558,12 @@ var queries$h = {
22590
22558
  }
22591
22559
  return [_objectSpread2(_objectSpread2({
22592
22560
  appcode: dbName,
22593
- entity: "DrugClass",
22561
+ collection: "DrugClass",
22594
22562
  is_metadata: true
22595
22563
  }, filter), {}, {
22596
22564
  metadataId: metaDataId$1,
22597
22565
  metadata_dbname: metaDatadbName$1,
22598
22566
  doc: {
22599
- // "id":0,
22600
22567
  drugclass: data.drug_class ? data.drug_class : "",
22601
22568
  shortdesc: data.short_description ? data.short_description : "",
22602
22569
  longdesc: data.long_description ? data.long_description : "",
@@ -22607,7 +22574,7 @@ var queries$h = {
22607
22574
  status_update_drug_class: function status_update_drug_class(data) {
22608
22575
  return [{
22609
22576
  appcode: dbName,
22610
- entity: "DrugClass",
22577
+ collection: "DrugClass",
22611
22578
  filter: {
22612
22579
  _key: data._key
22613
22580
  },
@@ -22619,16 +22586,6 @@ var queries$h = {
22619
22586
  }
22620
22587
  }];
22621
22588
  },
22622
- // drug_routes: (page, perPage, search) => {
22623
- // return {
22624
- // appcode: dbName,
22625
- // entity: "DrugRoutes",
22626
- // sort: "DrugRoutes.routecode",
22627
- // filter: `(LIKE(DrugRoutes.routecode,'%${search}%',true) || LIKE(DrugRoutes.UOM,'%${search}%',true) || LIKE(DrugRoutes.longdesc,'%${search}%',true)) && DrugRoutes.activestatus == true`,
22628
- // limit: { offset: page, count: perPage },
22629
- // return_fields: `MERGE(DrugRoutes, { TotalCount:count(FOR drgrout IN DrugRoutes FILTER ( LIKe(drgrout.routecode,'%${search}%',true) || LIKE(drgrout.UOM,'%${search}%',true) || LIKE(drgrout.longdesc,'%${search}%',true) ) && drgrout.activestatus == true return drgrout._id ) })`,
22630
- // };
22631
- // },
22632
22589
  drug_routes: function drug_routes(page, perPage, search) {
22633
22590
  return {
22634
22591
  appcode: dbName,
@@ -22643,7 +22600,7 @@ var queries$h = {
22643
22600
  status_update_drug_routes: function status_update_drug_routes(data) {
22644
22601
  return [{
22645
22602
  appcode: dbName,
22646
- entity: "DrugRoutes",
22603
+ collection: "DrugRoutes",
22647
22604
  filter: {
22648
22605
  _key: data._key
22649
22606
  },
@@ -22666,13 +22623,12 @@ var queries$h = {
22666
22623
  }
22667
22624
  return [_objectSpread2(_objectSpread2({
22668
22625
  appcode: dbName,
22669
- entity: "DrugRoutes",
22626
+ collection: "DrugRoutes",
22670
22627
  is_metadata: true
22671
22628
  }, filter), {}, {
22672
22629
  metadataId: metaDataId$1,
22673
22630
  metadata_dbname: metaDatadbName$1,
22674
22631
  doc: {
22675
- // "id":0,
22676
22632
  routecode: data.drug_routes ? data.drug_routes : "",
22677
22633
  routeadverb: data.route_adverb ? data.route_adverb : "",
22678
22634
  shortdesc: data.short_description ? data.short_description : "",
@@ -22978,9 +22934,7 @@ var DRUG_CLASS_READ = createAsyncThunk("drugClassSlice/drug_class_list", /*#__PU
22978
22934
  _context.n = 2;
22979
22935
  return fetchData({
22980
22936
  body: JSON.stringify(queries$h.drug_class(payload === null || payload === void 0 ? void 0 : payload.page, payload === null || payload === void 0 ? void 0 : payload.perPage, payload !== null && payload !== void 0 && payload.search ? payload === null || payload === void 0 ? void 0 : payload.search : ''))
22981
- },
22982
- // __readDocumentUrl__
22983
- __baseUrl__$1);
22937
+ }, __baseUrl__$1);
22984
22938
  case 2:
22985
22939
  data = _context.v;
22986
22940
  arry = [];
@@ -24414,7 +24368,7 @@ var GenerateUpsert$1 = function GenerateUpsert(data) {
24414
24368
  }
24415
24369
  return [_objectSpread2(_objectSpread2({
24416
24370
  appcode: dbName,
24417
- entity: "DrugMaster",
24371
+ collection: "DrugMaster",
24418
24372
  is_metadata: true,
24419
24373
  metadataId: metaDataId$1,
24420
24374
  metadata_dbname: metaDatadbName$1
@@ -24424,35 +24378,22 @@ var GenerateUpsert$1 = function GenerateUpsert(data) {
24424
24378
  DrugCode: data === null || data === void 0 ? void 0 : data.DrugCode,
24425
24379
  ShortDesc: data === null || data === void 0 ? void 0 : data.ShortDesc,
24426
24380
  LongDesc: data === null || data === void 0 ? void 0 : data.LongDesc,
24427
- // Charge: "boolean",
24428
24381
  DrugClass: data === null || data === void 0 ? void 0 : data.DrugClass,
24429
24382
  DrugType: data === null || data === void 0 ? void 0 : data.DrugType,
24430
24383
  DrugCategory: data === null || data === void 0 ? void 0 : data.DrugCategory,
24431
24384
  StrengthValuesPossible: data === null || data === void 0 ? void 0 : data.StrengthValuesPossible,
24432
- // TotalVolContent: "string",
24433
- // TotalVolContentUoM: "string",
24434
24385
  FormCode: data === null || data === void 0 ? void 0 : data.FormCode,
24435
24386
  DefaultRouteCode: data === null || data === void 0 ? void 0 : data.DefaultRouteCode,
24436
24387
  RoutesAllowed: data === null || data === void 0 ? void 0 : data.RoutesAllowed,
24437
24388
  DispenseviaprescriptionOnly: data === null || data === void 0 ? void 0 : data.DispenseviaprescriptionOnly,
24438
- // IVFluid: "boolean",
24439
- // DfltFluidCode: "string",
24440
- // DispenseAlternateDrug: "boolean",
24441
- // AlternateDrugs: "array",
24442
- // SpecialInstructionText: "array",
24443
24389
  CounsellingRequired: data === null || data === void 0 ? void 0 : data.CounsellingRequired,
24444
- // DrugImageID: "number",
24445
24390
  ApplicableForCompounding: data === null || data === void 0 ? void 0 : data.ApplicableForCompounding,
24446
24391
  Additive: data === null || data === void 0 ? void 0 : data.Additive,
24447
- // SourceOfDrugOrderCatalog: "string",
24448
24392
  DrugGenericId: data === null || data === void 0 ? void 0 : data.DrugGenericId,
24449
- // GenericIngrListId: "string",
24450
24393
  status: data === null || data === void 0 ? void 0 : data.status,
24451
- // statusactive: data?.status,
24452
24394
  DrugDispRules: data === null || data === void 0 ? void 0 : data.DrugDispRules,
24453
24395
  FrequencyRules: data === null || data === void 0 ? void 0 : data.FrequencyRules,
24454
24396
  mappedItems: data === null || data === void 0 ? void 0 : data.mappedItems,
24455
- // drugroutegenid: "string",
24456
24397
  codeStandard: data === null || data === void 0 ? void 0 : data.codeStandard,
24457
24398
  IsDispensible: data === null || data === void 0 ? void 0 : data.IsDispensible,
24458
24399
  entityLevelStatus: data === null || data === void 0 ? void 0 : data.entityLevelStatus,
@@ -24463,11 +24404,7 @@ var GenerateUpsert$1 = function GenerateUpsert(data) {
24463
24404
  directiontaglocal: data === null || data === void 0 ? void 0 : data.directiontaglocal,
24464
24405
  drugSynonyms: data === null || data === void 0 ? void 0 : data.drugSynonyms,
24465
24406
  photo: data === null || data === void 0 ? void 0 : data.photo,
24466
- // baseStkUoM: "string",
24467
- // avgRate: "number",
24468
24407
  compondCompDTls: data === null || data === void 0 ? void 0 : data.compondCompDTls,
24469
- // privilegeID: "array",
24470
- // extDrugGenericId: "string",
24471
24408
  returnApplicable: data === null || data === void 0 ? void 0 : data.returnApplicable,
24472
24409
  returnPeriodVal: data === null || data === void 0 ? void 0 : data.returnPeriodVal,
24473
24410
  returnPeriodUOM: data === null || data === void 0 ? void 0 : data.returnPeriodUOM,
@@ -24488,7 +24425,7 @@ var GenerateAlertRestrictionUpsert$1 = function GenerateAlertRestrictionUpsert(d
24488
24425
  }
24489
24426
  return [_objectSpread2(_objectSpread2({
24490
24427
  appcode: dbName,
24491
- entity: "CA_OrderCatalogPrivilegeLevel",
24428
+ collection: "CA_OrderCatalogPrivilegeLevel",
24492
24429
  is_metadata: true,
24493
24430
  metadataId: metaDataId$1,
24494
24431
  metadata_dbname: metaDatadbName$1
@@ -24500,13 +24437,6 @@ var GenerateAlertRestrictionUpsert$1 = function GenerateAlertRestrictionUpsert(d
24500
24437
  order_catalog_criteria: data === null || data === void 0 ? void 0 : data.order_catalog_criteria,
24501
24438
  patient_criteria: data === null || data === void 0 ? void 0 : data.patient_criteria,
24502
24439
  pract_criteria: data === null || data === void 0 ? void 0 : data.pract_criteria,
24503
- // appr_leveles: [
24504
- // {
24505
- // appr_level: "string",
24506
- // appr_level_description: "string",
24507
- // approval_authority_criteria: "array",
24508
- // },
24509
- // ],
24510
24440
  rule_type: data === null || data === void 0 ? void 0 : data.rule_type,
24511
24441
  privilege_type: data === null || data === void 0 ? void 0 : data.privilege_type,
24512
24442
  status: data === null || data === void 0 ? void 0 : data.status,
@@ -25671,18 +25601,7 @@ var drugMasterActions = {
25671
25601
  };
25672
25602
  var drugMasterSlice$1 = drugMasterSlice.reducer;
25673
25603
 
25674
- // import { dbName } from "../../qdm_query_ids";
25675
25604
  var queries$f = {
25676
- // fullread: (page, perPage, search) => {
25677
- // return {
25678
- // appcode: dbName,
25679
- // entity: "DrugRouteDirection",
25680
- // sort: "DrugRouteDirection.RouteDirectionCode",
25681
- // filter: `(LIKE(DrugRouteDirection.RouteDirectionCode,'%${search}%',true) || LIKE(DrugRouteDirection.UOM,'%${search}%',true) || LIKE(DrugRouteDirection.longdesc,'%${search}%',true)) && DrugRouteDirection.activestatus == true`,
25682
- // limit: { offset: page, count: perPage },
25683
- // return_fields: `merge(DrugRouteDirection,{TotalCount:count(FOR drgroutdir IN DrugRouteDirection FILTER ( LIKe(drgroutdir.RouteDirectionCode,'%${search}%',true) || LIKE(drgroutdir.UOM,'%${search}%',true) || LIKE(drgroutdir.longdesc,'%${search}%',true) ) && drgroutdir.activestatus == true return drgroutdir ),DoseForm:DOCUMENT(DrugRouteDirection.DoseForm),Action:DOCUMENT(DrugRouteDirection.Action)})`,
25684
- // };
25685
- // },
25686
25605
  fullread: function fullread(page, perPage, search) {
25687
25606
  return {
25688
25607
  appcode: dbName,
@@ -25694,15 +25613,6 @@ var queries$f = {
25694
25613
  }
25695
25614
  };
25696
25615
  },
25697
- // DosageFormDropDown: () => {
25698
- // return {
25699
- // appcode: dbName,
25700
- // entity: "DosageForm",
25701
- // sort: "DosageForm.longdesc",
25702
- // filter: "DosageForm.activestatus == true && DosageForm.status == true",
25703
- // return_fields: "DosageForm",
25704
- // };
25705
- // },
25706
25616
  DosageFormDropDown: function DosageFormDropDown() {
25707
25617
  return {
25708
25618
  appcode: dbName,
@@ -25713,15 +25623,6 @@ var queries$f = {
25713
25623
  }
25714
25624
  };
25715
25625
  },
25716
- // RoutesDirectionActionDropDown: () => {
25717
- // return {
25718
- // appcode: dbName,
25719
- // entity: "CodingMaster",
25720
- // filter: `CodingMaster.Type== 'ROUTEDIRECTIONACTION' && CodingMaster.activestatus==true && CodingMaster.status==true`,
25721
- // return_fields:
25722
- // "KEEP(CodingMaster,'_id','id','_key','code','display','Type','status')",
25723
- // };
25724
- // },
25725
25626
  RoutesDirectionActionDropDown: function RoutesDirectionActionDropDown() {
25726
25627
  return {
25727
25628
  appcode: dbName,
@@ -25736,7 +25637,7 @@ var queries$f = {
25736
25637
  Insert: function Insert(data) {
25737
25638
  return [{
25738
25639
  appcode: dbName,
25739
- entity: "DrugRouteDirection",
25640
+ collection: "DrugRouteDirection",
25740
25641
  is_metadata: true,
25741
25642
  metadataId: metaDataId$1,
25742
25643
  metadata_dbname: metaDatadbName$1,
@@ -25754,7 +25655,7 @@ var queries$f = {
25754
25655
  StatusUpdate: function StatusUpdate(key, getstatus) {
25755
25656
  return [{
25756
25657
  appcode: dbName,
25757
- entity: "DrugRouteDirection",
25658
+ collection: "DrugRouteDirection",
25758
25659
  filter: {
25759
25660
  _key: key
25760
25661
  },
@@ -25769,7 +25670,7 @@ var queries$f = {
25769
25670
  UpdateORModify: function UpdateORModify(data) {
25770
25671
  return [{
25771
25672
  appcode: dbName,
25772
- entity: "DrugRouteDirection",
25673
+ collection: "DrugRouteDirection",
25773
25674
  filter: {
25774
25675
  _key: data.key
25775
25676
  },
@@ -25807,9 +25708,7 @@ var DRUG_ROUTES_DIRECTION_READ = createAsyncThunk("drugRoutesSlice/drug_routes_d
25807
25708
  _context.n = 2;
25808
25709
  return fetchData({
25809
25710
  body: JSON.stringify(queriesjson)
25810
- },
25811
- // __readDocumentUrl__
25812
- __baseUrl__$1);
25711
+ }, __baseUrl__$1);
25813
25712
  case 2:
25814
25713
  data = _context.v;
25815
25714
  arry = [];
@@ -25819,8 +25718,6 @@ var DRUG_ROUTES_DIRECTION_READ = createAsyncThunk("drugRoutesSlice/drug_routes_d
25819
25718
  arry.push({
25820
25719
  total_count: val === null || val === void 0 ? void 0 : val.TotalCount,
25821
25720
  code: val === null || val === void 0 ? void 0 : val.RouteDirectionCode,
25822
- // action_id: val?.Action?._id,
25823
- // action: val?.Action?.display,
25824
25721
  action: val === null || val === void 0 ? void 0 : val.Action,
25825
25722
  longDesc: val === null || val === void 0 ? void 0 : val.LongDesc,
25826
25723
  shortDesc: val === null || val === void 0 ? void 0 : val.ShortDesc,
@@ -25860,9 +25757,7 @@ var DRUG_ROUTES_DIRECTION_MASTER = createAsyncThunk("drugRoutesSlice/drug_routes
25860
25757
  _context2.n = 2;
25861
25758
  return fetchData({
25862
25759
  body: JSON.stringify(queriesjson)
25863
- },
25864
- // __readDocumentUrl__
25865
- __baseUrl__$1);
25760
+ }, __baseUrl__$1);
25866
25761
  case 2:
25867
25762
  data = _context2.v;
25868
25763
  arry = [];
@@ -25903,9 +25798,7 @@ var DRUG_ROUTES_DIRECTION_ACTION_MASTER = createAsyncThunk("drugRoutesSlice/drug
25903
25798
  _context3.n = 2;
25904
25799
  return fetchData({
25905
25800
  body: JSON.stringify(queriesjson)
25906
- },
25907
- // __readDocumentUrl__
25908
- __baseUrl__$1);
25801
+ }, __baseUrl__$1);
25909
25802
  case 2:
25910
25803
  data = _context3.v;
25911
25804
  arry = [];
@@ -25935,7 +25828,7 @@ var DRUG_ROUTES_DIRECTION_STATUS = createAsyncThunk("drugRoutesSlice/drug_routes
25935
25828
  rejectWithValue,
25936
25829
  data,
25937
25830
  queriesjson,
25938
- arry,
25831
+ Getdata,
25939
25832
  _args4 = arguments,
25940
25833
  _t4;
25941
25834
  return _regenerator().w(function (_context4) {
@@ -25951,10 +25844,9 @@ var DRUG_ROUTES_DIRECTION_STATUS = createAsyncThunk("drugRoutesSlice/drug_routes
25951
25844
  body: JSON.stringify(queriesjson)
25952
25845
  }, __uspsertUrl__);
25953
25846
  case 2:
25954
- _context4.v;
25955
- arry = [];
25847
+ Getdata = _context4.v;
25956
25848
  return _context4.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
25957
- data: arry
25849
+ data: Getdata
25958
25850
  }));
25959
25851
  case 3:
25960
25852
  _context4.p = 3;
@@ -26006,7 +25898,7 @@ var DRUG_ROUTES_DIRECTION_UPDATE = createAsyncThunk("drugRoutesSlice/drug_routes
26006
25898
  rejectWithValue,
26007
25899
  Senddata,
26008
25900
  queriesjson,
26009
- arry,
25901
+ Getdata,
26010
25902
  _args6 = arguments,
26011
25903
  _t6;
26012
25904
  return _regenerator().w(function (_context6) {
@@ -26022,10 +25914,9 @@ var DRUG_ROUTES_DIRECTION_UPDATE = createAsyncThunk("drugRoutesSlice/drug_routes
26022
25914
  body: JSON.stringify(queriesjson)
26023
25915
  }, __uspsertUrl__);
26024
25916
  case 2:
26025
- _context6.v;
26026
- arry = [];
25917
+ Getdata = _context6.v;
26027
25918
  return _context6.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
26028
- data: arry
25919
+ data: Getdata
26029
25920
  }));
26030
25921
  case 3:
26031
25922
  _context6.p = 3;
@@ -27311,14 +27202,14 @@ var ORDER_CATALOG_CODING_MASTERS = createAsyncThunk("orderCatalogApiSlice/order_
27311
27202
  _context5.p = 1;
27312
27203
  payload.type;
27313
27204
  body = {
27314
- "appcode": dbName,
27315
- "filter": {
27316
- "type": payload,
27317
- "tenantid": "",
27318
- "facilityid": "",
27319
- "lang": ""
27205
+ appcode: dbName,
27206
+ filter: {
27207
+ type: payload,
27208
+ tenantid: "",
27209
+ facilityid: "",
27210
+ lang: ""
27320
27211
  },
27321
- "requestid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
27212
+ requestid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
27322
27213
  };
27323
27214
  _context5.n = 2;
27324
27215
  return fetchData({
@@ -27355,8 +27246,8 @@ var ORDER_CATALOG_ATTRCODE = createAsyncThunk("orderCatalogApiSlice/order_catalo
27355
27246
  _context6.p = 1;
27356
27247
  payload.type;
27357
27248
  body = {
27358
- "appcode": dbName,
27359
- "requestid": "def95574-656e-40c7-928e-b544f2b2f801"
27249
+ appcode: dbName,
27250
+ requestid: "def95574-656e-40c7-928e-b544f2b2f801"
27360
27251
  };
27361
27252
  _context6.n = 2;
27362
27253
  return fetchData({
@@ -27409,8 +27300,8 @@ var ORDER_CATALOG_AGEGROUP = createAsyncThunk("orderCatalogApiSlice/order_catalo
27409
27300
  _context7.p = 1;
27410
27301
  payload.type;
27411
27302
  body = {
27412
- "appcode": dbName,
27413
- "requestid": "869e5895-b0e0-4657-ad31-6ed02294f691"
27303
+ appcode: dbName,
27304
+ requestid: "869e5895-b0e0-4657-ad31-6ed02294f691"
27414
27305
  };
27415
27306
  _context7.n = 2;
27416
27307
  return fetchData({
@@ -27454,8 +27345,8 @@ var ORDER_CATALOG_ORDERCATEGORY = createAsyncThunk("orderCatalogApiSlice/order_c
27454
27345
  _context8.p = 1;
27455
27346
  payload.type;
27456
27347
  body = {
27457
- "appcode": dbName,
27458
- "requestid": "df53fb0d-dd4c-4e65-9067-f5917563625b"
27348
+ appcode: dbName,
27349
+ requestid: "df53fb0d-dd4c-4e65-9067-f5917563625b"
27459
27350
  };
27460
27351
  _context8.n = 2;
27461
27352
  return fetchData({
@@ -27490,16 +27381,15 @@ var ORDER_CATALOG_GRPORIND = createAsyncThunk("orderCatalogApiSlice/order_catalo
27490
27381
  case 0:
27491
27382
  rejectWithValue = _ref12.rejectWithValue;
27492
27383
  _context9.p = 1;
27493
- // const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
27494
27384
  body = {
27495
- "appcode": dbName,
27496
- "filter": {
27497
- "type": ["GRPORIND"],
27498
- "tenantid": "",
27499
- "facilityid": "",
27500
- "lang": ""
27385
+ appcode: dbName,
27386
+ filter: {
27387
+ type: ["GRPORIND"],
27388
+ tenantid: "",
27389
+ facilityid: "",
27390
+ lang: ""
27501
27391
  },
27502
- "requestid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
27392
+ requestid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
27503
27393
  };
27504
27394
  _context9.n = 2;
27505
27395
  return fetchData({
@@ -27539,16 +27429,15 @@ var ORDER_CATALOG_SERVICEITEM = createAsyncThunk("orderCatalogApiSlice/order_cat
27539
27429
  case 0:
27540
27430
  rejectWithValue = _ref14.rejectWithValue;
27541
27431
  _context0.p = 1;
27542
- // const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
27543
27432
  body = {
27544
- "appcode": dbName,
27545
- "filter": {
27546
- "type": ["ORDERITEMSERVICE"],
27547
- "tenantid": "",
27548
- "facilityid": "",
27549
- "lang": ""
27433
+ appcode: dbName,
27434
+ filter: {
27435
+ type: ["ORDERITEMSERVICE"],
27436
+ tenantid: "",
27437
+ facilityid: "",
27438
+ lang: ""
27550
27439
  },
27551
- "requestid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
27440
+ requestid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
27552
27441
  };
27553
27442
  _context0.n = 2;
27554
27443
  return fetchData({
@@ -27597,13 +27486,7 @@ var ENTITY_NAME_DATA = createAsyncThunk("orderCatalogApiSlice/entity_name_data",
27597
27486
  _ref17 = _args1.length > 1 ? _args1[1] : undefined, rejectWithValue = _ref17.rejectWithValue;
27598
27487
  _context1.p = 1;
27599
27488
  type = payload.type;
27600
- queriesjson = Query.entityTypeName(type); // let payloadData= {
27601
- // "appcode": dbName,
27602
- // "filter": {
27603
- // "Orgname":type
27604
- // },
27605
- // "requestid": "b0931347-d3eb-4627-b799-cc701cb8f6c9"
27606
- // }
27489
+ queriesjson = Query.entityTypeName(type);
27607
27490
  _context1.n = 2;
27608
27491
  return fetchData({
27609
27492
  body: JSON.stringify(queriesjson)
@@ -27805,11 +27688,11 @@ var RC_CHARGERATE_SEARCH = createAsyncThunk("orderCatalogApiSlice/rcchargeRateSe
27805
27688
  _context14.p = 1;
27806
27689
  search = payload.search;
27807
27690
  body = {
27808
- "appcode": dbName,
27809
- "filter": {
27810
- "rcChargecode": search
27691
+ appcode: dbName,
27692
+ filter: {
27693
+ rcChargecode: search
27811
27694
  },
27812
- "requestid": query_ids["rcChargeRateSearch"]
27695
+ requestid: query_ids["rcChargeRateSearch"]
27813
27696
  };
27814
27697
  _context14.n = 2;
27815
27698
  return fetchData({
@@ -27845,11 +27728,7 @@ var SAVE_ORDER_CATALOG = createAsyncThunk("orderCatalogApiSlice/saveOrderCatalog
27845
27728
  payload = _args15.length > 0 && _args15[0] !== undefined ? _args15[0] : {};
27846
27729
  _ref29 = _args15.length > 1 ? _args15[1] : undefined, rejectWithValue = _ref29.rejectWithValue;
27847
27730
  _context15.p = 1;
27848
- list = payload.list, rcchargeCode = payload.rcchargeCode; // let SaveChargeCode =generateSaveChargeCode(list)
27849
- // const SaveChargeCodedata = fetchData(
27850
- // { body: JSON.stringify(SaveChargeCode) },
27851
- // __uspsertUrl__
27852
- // );
27731
+ list = payload.list, rcchargeCode = payload.rcchargeCode;
27853
27732
  body = generateSaveJSON(list, rcchargeCode);
27854
27733
  _context15.n = 2;
27855
27734
  return fetchData({
@@ -27886,9 +27765,6 @@ var READ_ORDER_CATALOG = createAsyncThunk("orderCatalogApiSlice/orderCatalogRead
27886
27765
  payload = _args16.length > 0 && _args16[0] !== undefined ? _args16[0] : {};
27887
27766
  _ref31 = _args16.length > 1 ? _args16[1] : undefined, rejectWithValue = _ref31.rejectWithValue, _ref31.getState;
27888
27767
  _context16.p = 1;
27889
- // const { encounter_id } = payload;
27890
- // let state = getState();
27891
- // let ccState = state.DiagnosisMasterSlice;
27892
27768
  page = payload.page, perPage = payload.perPage, search = payload.search;
27893
27769
  _context16.n = 2;
27894
27770
  return fetchData({
@@ -37393,19 +37269,7 @@ var orderMasters = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
37393
37269
 
37394
37270
  var vitalsMasters = _objectSpread2(_objectSpread2(_objectSpread2({}, vitalsMeasureCodeActions), vitalsApplicableActions), vitalsMasterSectionActions);
37395
37271
 
37396
- // import { dbName } from "../../qdm_query_ids";
37397
37272
  var queries$5 = {
37398
- // fullread: (page, perPage,search) => {
37399
- // return {
37400
- // appcode: dbName,
37401
- // entity: "DrugUOM",
37402
- // filter: `(LIKE(document(DrugUOM.UOMType).display,'%${search}%',true) || LIKE(DrugUOM.UOM,'%${search}%',true) || LIKE(DrugUOM.longdesc,'%${search}%',true) || LIKE(DrugUOM.shortdesc,'%${search}%',true) ) && DrugUOM.activestatus == true`,
37403
- // limit: { offset: page, count: perPage },
37404
- // sort: "DrugUOM.createddate",
37405
- // return_fields:
37406
- // `merge(DrugUOM,{TotalCount:count( FOR duom IN DrugUOM FILTER( LIKe(document(duom.UOMType).display,'%${search}%',true) || LIKE(duom.UOM,'%${search}%',true) || LIKE(duom.longdesc,'%${search}%',true) || LIKE(duom.shortdesc,'%${search}%',true) ) && duom.activestatus == true return duom._id ), UOMType:(for i in CodingMaster filter i._id == DrugUOM.UOMType return merge(i,{coding:document(i.coding)}))})`,
37407
- // };
37408
- // },
37409
37273
  fullread: function fullread(page, perPage, search) {
37410
37274
  return {
37411
37275
  appcode: dbName,
@@ -37417,17 +37281,6 @@ var queries$5 = {
37417
37281
  }
37418
37282
  };
37419
37283
  },
37420
- // DRUG_UOM_TYPE: () => {
37421
- // return {
37422
- // appcode: dbName,
37423
- // entity: "CodeableConceptMaster",
37424
- // sort: "document(CodeableConceptMaster.coding[0]).display",
37425
- // filter:
37426
- // "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type == 'DRUGUOMTYPE' ",
37427
- // return_fields:
37428
- // "MERGE(CodeableConceptMaster,{coding: DOCUMENT(CodeableConceptMaster.coding)})",
37429
- // };
37430
- // },
37431
37284
  DRUG_UOM_TYPE: function DRUG_UOM_TYPE() {
37432
37285
  return {
37433
37286
  appcode: dbName,
@@ -37439,26 +37292,6 @@ var queries$5 = {
37439
37292
  }
37440
37293
  };
37441
37294
  },
37442
- // To_UOM_code: (id, type) => {
37443
-
37444
- // return {
37445
- // appcode: dbName,
37446
- // entity: "DrugUOM",
37447
- // filter: `DrugUOM.activestatus == true && DrugUOM.UOMType == '${id}' && LOWER(DrugUOM.UOM) !=LOWER('${type}') && DrugUOM.status==true`,
37448
- // return_fields:
37449
- // "{id:DrugUOM.id, _id:DrugUOM._id, UOM:DrugUOM.UOM, longdesc:DrugUOM.longdesc, shortdesc:DrugUOM.shortdesc}",
37450
- // };
37451
- // },
37452
- // To_UOM_Read_line: (key) => {
37453
- // return {
37454
- // appcode: dbName,
37455
- // entity: "DrugUOM",
37456
- // filter: `DrugUOM.activestatus == true && DrugUOM._key == '${key}'`,
37457
- // return_fields:
37458
- // "merge(DrugUOM,{UOMType:document(DrugUOM.UOMType), ConversionMap:(for j in TO_ARRAY(DrugUOM.ConversionMap) return merge(j,{ConversionMap:document(j.ToUOMCode)}))})",
37459
- // };
37460
- // },
37461
-
37462
37295
  To_UOM_code: function To_UOM_code(id, type) {
37463
37296
  return {
37464
37297
  appcode: dbName,
@@ -37481,7 +37314,7 @@ var queries$5 = {
37481
37314
  To_UOM_UPDATE_STATUS: function To_UOM_UPDATE_STATUS(status, key) {
37482
37315
  return [{
37483
37316
  appcode: dbName,
37484
- entity: "DrugUOM",
37317
+ collection: "DrugUOM",
37485
37318
  filter: {
37486
37319
  _key: "".concat(key)
37487
37320
  },
@@ -37515,7 +37348,7 @@ var generateJson$5 = {
37515
37348
  });
37516
37349
  return [_objectSpread2(_objectSpread2({
37517
37350
  appcode: dbName,
37518
- entity: "DrugUOM",
37351
+ collection: "DrugUOM",
37519
37352
  is_metadata: true
37520
37353
  }, filter), {}, {
37521
37354
  metadataId: metaDataId$1,
@@ -37603,9 +37436,7 @@ var DRUG_UOM_READ = createAsyncThunk("drugRoutesSlice/drug_uom_list", /*#__PURE_
37603
37436
  _context.n = 2;
37604
37437
  return fetchData({
37605
37438
  body: JSON.stringify(queriesjson)
37606
- },
37607
- // __readDocumentUrl__
37608
- __baseUrl__$1);
37439
+ }, __baseUrl__$1);
37609
37440
  case 2:
37610
37441
  data = _context.v;
37611
37442
  arry = [];
@@ -37652,9 +37483,7 @@ var DRUG_UOM_TYPE_DROP_DOWN = createAsyncThunk("drugRoutesSlice/drug_uom_type_ma
37652
37483
  _context2.n = 2;
37653
37484
  return fetchData({
37654
37485
  body: JSON.stringify(queriesjson)
37655
- },
37656
- // __readDocumentUrl__
37657
- __baseUrl__$1);
37486
+ }, __baseUrl__$1);
37658
37487
  case 2:
37659
37488
  data = _context2.v;
37660
37489
  arry = [];
@@ -37701,18 +37530,13 @@ var TO_UDM_CODE_DROPDOWN = createAsyncThunk("drugRoutesSlice/drug_uom_code_maste
37701
37530
  _context3.n = 2;
37702
37531
  return fetchData({
37703
37532
  body: JSON.stringify(queriesjson)
37704
- },
37705
- // __readDocumentUrl__,
37706
- __baseUrl__$1);
37533
+ }, __baseUrl__$1);
37707
37534
  case 2:
37708
37535
  data = _context3.v;
37709
37536
  arry = [];
37710
37537
  data.map(function (val) {
37711
- // if (val?._key && val?.activestatus) {
37712
37538
  if (val !== null && val !== void 0 && val._id && val !== null && val !== void 0 && val.UOM) {
37713
37539
  arry.push({
37714
- // label: val?.coding[0]?.display,
37715
- // value: val?.coding[0]?._id,
37716
37540
  label: val === null || val === void 0 ? void 0 : val.UOM,
37717
37541
  value: val === null || val === void 0 ? void 0 : val._id
37718
37542
  });
@@ -37824,13 +37648,10 @@ var DRUG_UOM_LINE_READ = createAsyncThunk("drugRoutesSlice/drug_uom_read_line",
37824
37648
  _context6.n = 2;
37825
37649
  return fetchData({
37826
37650
  body: JSON.stringify(queriesjson)
37827
- },
37828
- // __readDocumentUrl__,
37829
- __baseUrl__$1);
37651
+ }, __baseUrl__$1);
37830
37652
  case 2:
37831
37653
  getdata = _context6.v;
37832
37654
  getreadJson = generateReadJson$1.read_json(getdata);
37833
- console.log("durg uom read getreadJson", getreadJson);
37834
37655
  return _context6.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
37835
37656
  data: getreadJson
37836
37657
  }));
@@ -41829,12 +41650,26 @@ var query$2 = {
41829
41650
  },
41830
41651
  metadataId: metaDataId$1,
41831
41652
  metadata_dbname: metaDatadbName$1,
41832
- doc: {
41833
- effTo: (_data$effTo = data === null || data === void 0 ? void 0 : data.effTo) !== null && _data$effTo !== void 0 ? _data$effTo : null,
41834
- islastlevel: (_data$islastlevel = data === null || data === void 0 ? void 0 : data.islastlevel) !== null && _data$islastlevel !== void 0 ? _data$islastlevel : false
41835
- }
41653
+ doc: _objectSpread2(_objectSpread2(_objectSpread2({}, (data === null || data === void 0 ? void 0 : data.hasOwnProperty("effTo")) && {
41654
+ effTo: (_data$effTo = data.effTo) !== null && _data$effTo !== void 0 ? _data$effTo : null
41655
+ }), (data === null || data === void 0 ? void 0 : data.hasOwnProperty("islastlevel")) && {
41656
+ islastlevel: (_data$islastlevel = data.islastlevel) !== null && _data$islastlevel !== void 0 ? _data$islastlevel : false
41657
+ }), (data === null || data === void 0 ? void 0 : data.hasOwnProperty("status")) && {
41658
+ status: data.status
41659
+ })
41836
41660
  }];
41837
41661
  },
41662
+ updateDiagnosisStatus: function updateDiagnosisStatus(data) {
41663
+ var _data$status;
41664
+ return {
41665
+ appcode: "".concat(dbName),
41666
+ requestid: query_ids.diagnosis_status_update,
41667
+ filter: {
41668
+ keys: (data === null || data === void 0 ? void 0 : data.keys) || [],
41669
+ status: (_data$status = data === null || data === void 0 ? void 0 : data.status) !== null && _data$status !== void 0 ? _data$status : false
41670
+ }
41671
+ };
41672
+ },
41838
41673
  searchList: function searchList(text) {
41839
41674
  var search = text ? text.replace(/\./g, "_") : "";
41840
41675
  return {
@@ -41990,12 +41825,46 @@ var SEARCH_LIST = createAsyncThunk("diagnosisMasterApiSlice/diagnosis_master_lis
41990
41825
  }
41991
41826
  }, _callee4, null, [[1, 3]]);
41992
41827
  })));
41828
+
41829
+ // UPDATE_DIAGNOSIS_STATUS
41830
+ var UPDATE_DIAGNOSIS_STATUS = createAsyncThunk("diagnosisMasterApiSlice/update_diagnosis_status", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5() {
41831
+ var payload,
41832
+ _ref0,
41833
+ rejectWithValue,
41834
+ data,
41835
+ _args5 = arguments,
41836
+ _t5;
41837
+ return _regenerator().w(function (_context5) {
41838
+ while (1) switch (_context5.p = _context5.n) {
41839
+ case 0:
41840
+ payload = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
41841
+ _ref0 = _args5.length > 1 ? _args5[1] : undefined, rejectWithValue = _ref0.rejectWithValue;
41842
+ _context5.p = 1;
41843
+ _context5.n = 2;
41844
+ return fetchData({
41845
+ body: JSON.stringify(query$2.updateDiagnosisStatus(payload))
41846
+ }, __baseUrl__$1);
41847
+ case 2:
41848
+ data = _context5.v;
41849
+ return _context5.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
41850
+ data: data !== null && data !== void 0 ? data : null
41851
+ }));
41852
+ case 3:
41853
+ _context5.p = 3;
41854
+ _t5 = _context5.v;
41855
+ return _context5.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
41856
+ message: _t5.message
41857
+ })));
41858
+ }
41859
+ }, _callee5, null, [[1, 3]]);
41860
+ })));
41993
41861
  var diagnosisMasterSlice = createSlice({
41994
41862
  name: "diagnosisMasterApiSlice",
41995
41863
  initialState: {
41996
41864
  diagnosis_master_list: _objectSpread2({}, defaultState.List),
41997
41865
  diagnosis_master_list_child: _objectSpread2({}, defaultState.List),
41998
41866
  update_diagnosis_list: _objectSpread2({}, defaultState.List),
41867
+ update_diagnosis_status: _objectSpread2({}, defaultState.List),
41999
41868
  diagnosis_master_list_search: _objectSpread2({}, defaultState.List)
42000
41869
  },
42001
41870
  extraReducers: (_extraReducers$8 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$8, GET_DIAGNOSIS_LIST.fulfilled, function (state, action) {
@@ -42016,9 +41885,15 @@ var diagnosisMasterSlice = createSlice({
42016
41885
  state.update_diagnosis_list.loading = true, state.update_diagnosis_list.error = false, state.update_diagnosis_list.loading = true;
42017
41886
  }), UPDATE_DIAGNOSIS_LIST.rejected, function (state, action) {
42018
41887
  state.update_diagnosis_list.loading = false, state.update_diagnosis_list.error = true, state.update_diagnosis_list = action.payload;
41888
+ }), UPDATE_DIAGNOSIS_STATUS.fulfilled, function (state, action) {
41889
+ state.update_diagnosis_status.loading = false, state.update_diagnosis_status.error = false, state.update_diagnosis_status = action.payload;
41890
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$8, UPDATE_DIAGNOSIS_STATUS.pending, function (state, action) {
41891
+ state.update_diagnosis_status.loading = true, state.update_diagnosis_status.error = false, state.update_diagnosis_status.loading = true;
41892
+ }), UPDATE_DIAGNOSIS_STATUS.rejected, function (state, action) {
41893
+ state.update_diagnosis_status.loading = false, state.update_diagnosis_status.error = true, state.update_diagnosis_status = action.payload;
42019
41894
  }), SEARCH_LIST.fulfilled, function (state, action) {
42020
41895
  state.diagnosis_master_list_search.loading = false, state.diagnosis_master_list_search.error = false, state.diagnosis_master_list_search = action.payload;
42021
- }), _defineProperty(_defineProperty(_extraReducers$8, SEARCH_LIST.pending, function (state, action) {
41896
+ }), SEARCH_LIST.pending, function (state, action) {
42022
41897
  state.diagnosis_master_list_search.loading = true, state.diagnosis_master_list_search.error = false, state.diagnosis_master_list_search.loading = true;
42023
41898
  }), SEARCH_LIST.rejected, function (state, action) {
42024
41899
  state.diagnosis_master_list_search.loading = false, state.diagnosis_master_list_search.error = true, state.diagnosis_master_list_search = action.payload;
@@ -42028,6 +41903,7 @@ var diagnosisMasterActions = {
42028
41903
  GET_DIAGNOSIS_LIST: GET_DIAGNOSIS_LIST,
42029
41904
  GET_DIAGNOSIS_LIST_CHILD: GET_DIAGNOSIS_LIST_CHILD,
42030
41905
  UPDATE_DIAGNOSIS_LIST: UPDATE_DIAGNOSIS_LIST,
41906
+ UPDATE_DIAGNOSIS_STATUS: UPDATE_DIAGNOSIS_STATUS,
42031
41907
  SEARCH_LIST: SEARCH_LIST
42032
41908
  };
42033
41909
  var diagnosisMasterSlice$1 = diagnosisMasterSlice.reducer;
@@ -46282,7 +46158,7 @@ var GenerateUpsert = function GenerateUpsert(data) {
46282
46158
  }
46283
46159
  return [_objectSpread2(_objectSpread2({
46284
46160
  appcode: dbName,
46285
- entity: "DrugMaster",
46161
+ collection: "DrugMaster",
46286
46162
  is_metadata: true,
46287
46163
  metadataId: "88b23ef1-7199-4503-b631-2de82ace6e03"
46288
46164
  }, filter), {}, {
@@ -46343,7 +46219,7 @@ var GenerateAlertRestrictionUpsert = function GenerateAlertRestrictionUpsert(dat
46343
46219
  }
46344
46220
  return [_objectSpread2(_objectSpread2({
46345
46221
  appcode: dbName,
46346
- entity: "CA_OrderCatalogPrivilegeLevel",
46222
+ collection: "CA_OrderCatalogPrivilegeLevel",
46347
46223
  is_metadata: true,
46348
46224
  metadataId: "88b23ef1-7199-4503-b631-2de82ace6e03"
46349
46225
  }, filter), {}, {
@@ -46374,7 +46250,7 @@ var GenerateMappedItemUpsert = function GenerateMappedItemUpsert(data) {
46374
46250
  }
46375
46251
  return [_objectSpread2(_objectSpread2({
46376
46252
  appcode: dbName,
46377
- entity: "DrugMaster"
46253
+ collection: "DrugMaster"
46378
46254
  }, filter), {}, {
46379
46255
  is_metadata: true,
46380
46256
  metadataId: "88b23ef1-7199-4503-b631-2de82ace6e03",
@@ -46472,9 +46348,7 @@ var DRUG_CATALOG_MASTER_SINGLE_READ = createAsyncThunk("drugCatalogMasterApiSlic
46472
46348
  _context2.n = 2;
46473
46349
  return fetchData({
46474
46350
  body: JSON.stringify(drugCatalogMasterQuery.drugCatalogMasterSingleRead(id))
46475
- },
46476
- // __readDocumentUrl__
46477
- __baseUrl__$1);
46351
+ }, __baseUrl__$1);
46478
46352
  case 2:
46479
46353
  data = _context2.v;
46480
46354
  return _context2.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
@@ -46649,9 +46523,7 @@ var fetchMaster = function fetchMaster(name, query, params) {
46649
46523
  _context6.n = 1;
46650
46524
  return fetchData({
46651
46525
  body: JSON.stringify(query(params))
46652
- },
46653
- // __readDocumentUrl__
46654
- __baseUrl__$1);
46526
+ }, __baseUrl__$1);
46655
46527
  case 1:
46656
46528
  data = _context6.v;
46657
46529
  resolve({
@@ -46845,9 +46717,7 @@ var DRUG_RULE__TYPE = createAsyncThunk("drugCatalogMasterApiSlice/drug_rule_type
46845
46717
  _context1.n = 2;
46846
46718
  return fetchData({
46847
46719
  body: JSON.stringify(drugCatalogMasterQuery.drugRuleType())
46848
- },
46849
- // __readDocumentUrl__
46850
- __baseUrl__$1);
46720
+ }, __baseUrl__$1);
46851
46721
  case 2:
46852
46722
  data = _context1.v;
46853
46723
  if (!((data === null || data === void 0 ? void 0 : data.length) > 0)) {
@@ -46896,9 +46766,7 @@ var DIRECTION_TAGS = createAsyncThunk("drugCatalogMasterApiSlice/direction_tags"
46896
46766
  _context10.n = 2;
46897
46767
  return fetchData({
46898
46768
  body: JSON.stringify(masterQuery.tags())
46899
- },
46900
- // __readDocumentUrl__
46901
- __baseUrl__$1);
46769
+ }, __baseUrl__$1);
46902
46770
  case 2:
46903
46771
  data = _context10.v;
46904
46772
  if (!((data === null || data === void 0 ? void 0 : data.length) > 0)) {
@@ -46947,9 +46815,7 @@ var DRUG_PRIVILEGE__TYPE = createAsyncThunk("drugCatalogMasterApiSlice/drug_priv
46947
46815
  _context11.n = 2;
46948
46816
  return fetchData({
46949
46817
  body: JSON.stringify(drugCatalogMasterQuery.drugPrivilegeType())
46950
- },
46951
- // __readDocumentUrl__
46952
- __baseUrl__$1);
46818
+ }, __baseUrl__$1);
46953
46819
  case 2:
46954
46820
  data = _context11.v;
46955
46821
  if (!((data === null || data === void 0 ? void 0 : data.length) > 0)) {
@@ -46998,9 +46864,7 @@ var DRUG_SERVICE_APPLICABILITY_TYPE = createAsyncThunk("drugCatalogMasterApiSlic
46998
46864
  _context12.n = 2;
46999
46865
  return fetchData({
47000
46866
  body: JSON.stringify(drugCatalogMasterQuery.drugServiceApplicabilityType())
47001
- },
47002
- // __readDocumentUrl__
47003
- __baseUrl__$1);
46867
+ }, __baseUrl__$1);
47004
46868
  case 2:
47005
46869
  data = _context12.v;
47006
46870
  if (!((data === null || data === void 0 ? void 0 : data.length) > 0)) {
@@ -47049,9 +46913,7 @@ var DRUG_FACILITY_OPTIONS = createAsyncThunk("drugCatalogMasterApiSlice/drug_fac
47049
46913
  _context13.n = 2;
47050
46914
  return fetchData({
47051
46915
  body: JSON.stringify(drugCatalogMasterQuery.drugFacilityOptions())
47052
- },
47053
- // __readDocumentUrl__
47054
- __baseUrl__$1);
46916
+ }, __baseUrl__$1);
47055
46917
  case 2:
47056
46918
  data = _context13.v;
47057
46919
  if (!((data === null || data === void 0 ? void 0 : data.length) > 0)) {
@@ -47100,9 +46962,7 @@ var DRUG_APPROVAL_WORKFLOW_OPTIONS = createAsyncThunk("drugCatalogMasterApiSlice
47100
46962
  _context14.n = 2;
47101
46963
  return fetchData({
47102
46964
  body: JSON.stringify(drugCatalogMasterQuery.drugApprovalWorkflowOptions())
47103
- },
47104
- // __readDocumentUrl__
47105
- __baseUrl__$1);
46965
+ }, __baseUrl__$1);
47106
46966
  case 2:
47107
46967
  data = _context14.v;
47108
46968
  if (!((data === null || data === void 0 ? void 0 : data.length) > 0)) {
@@ -47189,9 +47049,7 @@ var DRUG_ALERTS_RESTRICTIONS_SINGLE_READ = createAsyncThunk("drugCatalogMasterAp
47189
47049
  _context16.n = 2;
47190
47050
  return fetchData({
47191
47051
  body: JSON.stringify(drugCatalogMasterQuery.drugalertRestrictionSingleRead(id))
47192
- },
47193
- // __readDocumentUrl__
47194
- __baseUrl__$1);
47052
+ }, __baseUrl__$1);
47195
47053
  case 2:
47196
47054
  data = _context16.v;
47197
47055
  return _context16.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
@@ -47224,9 +47082,7 @@ var DRUG_MAPPED_DISPENSABLE_READ = createAsyncThunk("drugCatalogMasterApiSlice/d
47224
47082
  _context17.n = 2;
47225
47083
  return fetchData({
47226
47084
  body: JSON.stringify(drugCatalogMasterQuery.drugMappedDispensableRead(_id))
47227
- },
47228
- // __readDocumentUrl__
47229
- __baseUrl__$1);
47085
+ }, __baseUrl__$1);
47230
47086
  case 2:
47231
47087
  data = _context17.v;
47232
47088
  return _context17.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {