primary_care_admin_binder 0.1.92 → 0.1.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.
- package/dist/index.cjs.js +1725 -562
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -2496,11 +2496,16 @@ var __keyClockPractioner__ = "".concat(process.env.REACT_APP_KEY_CLOCK_API, "/ap
|
|
|
2496
2496
|
var __keyClockblockappointment__ = "".concat(process.env.REACT_APP_KEY_CLOCK_API, "/api/v1/BlockWithSchedule");
|
|
2497
2497
|
var refreshOrgToken = "".concat(__nifiUrl__, "/api/v1/refreshOrgAuthToken");
|
|
2498
2498
|
var refreshUserToken = "".concat(__nifiUrl__, "/api/v1/refreshAuthToken");
|
|
2499
|
-
|
|
2500
|
-
|
|
2499
|
+
"".concat(process.env.REACT_APP_NIFI_API, "/api/editHoliday");
|
|
2500
|
+
"".concat(process.env.REACT_APP_NIFI_API, "/api/addHoliday");
|
|
2501
2501
|
"".concat(process.env.REACT_APP_NIFI_API, "/api/v1/");
|
|
2502
2502
|
var __TokenGeneration__ = "".concat(process.env.REACT_APP_TOKEN_URL, "/IDMJWTTokencreation");
|
|
2503
2503
|
|
|
2504
|
+
//holiday urls
|
|
2505
|
+
|
|
2506
|
+
var __holidayEditUrl__ = "".concat(process.env.REACT_APP_APPOINTMENT_API, "/api/editHoliday");
|
|
2507
|
+
var __holidayAddUrl__ = "".concat(process.env.REACT_APP_APPOINTMENT_API, "/api/addHoliday");
|
|
2508
|
+
|
|
2504
2509
|
var moment = createCommonjsModule(function (module, exports) {
|
|
2505
2510
|
(function (global, factory) {
|
|
2506
2511
|
module.exports = factory() ;
|
|
@@ -8183,6 +8188,7 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
|
8183
8188
|
var fetchData = /*#__PURE__*/function () {
|
|
8184
8189
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(input) {
|
|
8185
8190
|
var url,
|
|
8191
|
+
jwtToken,
|
|
8186
8192
|
__options,
|
|
8187
8193
|
res,
|
|
8188
8194
|
data,
|
|
@@ -8192,24 +8198,28 @@ var fetchData = /*#__PURE__*/function () {
|
|
|
8192
8198
|
switch (_context.prev = _context.next) {
|
|
8193
8199
|
case 0:
|
|
8194
8200
|
url = _args.length > 1 && _args[1] !== undefined ? _args[1] : __baseUrl__;
|
|
8201
|
+
jwtToken = _args.length > 2 ? _args[2] : undefined;
|
|
8195
8202
|
console.log(url, "dftty");
|
|
8196
8203
|
__options = {
|
|
8197
8204
|
method: "POST",
|
|
8198
|
-
headers: {
|
|
8205
|
+
headers: jwtToken ? {
|
|
8206
|
+
"Content-Type": "application/json",
|
|
8207
|
+
"jwtToken": jwtToken
|
|
8208
|
+
} : {
|
|
8199
8209
|
"Content-Type": "application/json"
|
|
8200
8210
|
},
|
|
8201
8211
|
body: {}
|
|
8202
8212
|
};
|
|
8203
|
-
_context.next =
|
|
8213
|
+
_context.next = 6;
|
|
8204
8214
|
return fetch(url, _objectSpread2$1(_objectSpread2$1({}, __options), input));
|
|
8205
|
-
case
|
|
8215
|
+
case 6:
|
|
8206
8216
|
res = _context.sent;
|
|
8207
|
-
_context.next =
|
|
8217
|
+
_context.next = 9;
|
|
8208
8218
|
return res.json();
|
|
8209
|
-
case
|
|
8219
|
+
case 9:
|
|
8210
8220
|
data = _context.sent;
|
|
8211
8221
|
return _context.abrupt("return", data);
|
|
8212
|
-
case
|
|
8222
|
+
case 11:
|
|
8213
8223
|
case "end":
|
|
8214
8224
|
return _context.stop();
|
|
8215
8225
|
}
|
|
@@ -8389,7 +8399,7 @@ var queries$o = {
|
|
|
8389
8399
|
db_name: dbName$1,
|
|
8390
8400
|
entity: "Practitioner",
|
|
8391
8401
|
filter: "Practitioner._key=='".concat(id, "' && Practitioner.activestatus==true"),
|
|
8392
|
-
return_fields: "merge(adqolcPractitioner,{identifier:(FOR iden IN DOCUMENT(adqolcPractitioner.personid).identifier RETURN MERGE(iden,{code:KEEP(DOCUMENT(iden.code),'_id','display'),use:KEEP(DOCUMENT(iden.use),'_id','display'),attachments:(for att in iden.attachments FILTER document(att).activestatus == true RETURN KEEP(document(att),'url','fileName','fileid','objectid','filetype'))})),address:(FOR addr IN document(adqolcPractitioner.personid).address RETURN MERGE(addr,{use:KEEP(DOCUMENT(addr.use),'_id','display'),type:KEEP(DOCUMENT(addr.type),'_id','display'),city:KEEP(DOCUMENT(addr.city),'_id','geogLevelName'),district:KEEP(DOCUMENT(addr.district),'_id','geogLevelName'),state:KEEP(DOCUMENT(addr.state),'_id','geogLevelName'),postalcode:KEEP(DOCUMENT(addr.postalcode),'_id','geogLevelName'),country:KEEP(DOCUMENT(addr.country),'_id','geogLevelName')})),communication:(FOR coms IN DOCUMENT(adqolcPractitioner.personid).communicationlanguage RETURN KEEP(DOCUMENT(coms),'_id','display')),marital_status:KEEP(DOCUMENT(DOCUMENT(adqolcPractitioner.personid).maritalstatus),'_id','display'),birthdate:DOCUMENT(adqolcPractitioner.personid).birthdate,name:(FOR name IN DOCUMENT(adqolcPractitioner.personid).name RETURN MERGE(name,{use:KEEP(DOCUMENT(name.use),'_id','display'),prefix:KEEP(DOCUMENT(name.prefix),'_id','display')})),nationality:KEEP(DOCUMENT(DOCUMENT(adqolcPractitioner.personid).nationality),'_id','geogLevelName'),practitioner_type:KEEP(DOCUMENT(adqolcPractitioner.practitioner_type),'_id','display'),gender:KEEP(DOCUMENT(DOCUMENT(adqolcPractitioner.personid).gender),'_id','display'),practitioner_role:(FOR pro IN adqolcPractitioner.practitioner_role RETURN MERGE(pro,{role:KEEP(DOCUMENT(pro.role),'_id','display'),specialtyid:KEEP(DOCUMENT(pro.specialtyid),'_id','display'),entitytype:KEEP(DOCUMENT(pro.entitytype),'_id','display'),entityname:DOCUMENT(pro.entityname),locationid:dOCUMENT(pro.locationid)})),telecom:(FOR tel IN DOCUMENT(adqolcPractitioner.personid).telecom RETURN MERGE(tel,{system:KEEP(DOCUMENT(tel.system),'_id','display'),use:KEEP(DOCUMENT(tel.use),'_id','display')})),photo:DOCUMENT(DOCUMENT(adqolcPractitioner.personid).photo)})"
|
|
8402
|
+
return_fields: "merge(adqolcPractitioner,{identifier:(FOR iden IN DOCUMENT(adqolcPractitioner.personid).identifier RETURN MERGE(iden,{code:KEEP(DOCUMENT(iden.code),'_id','display'),use:KEEP(DOCUMENT(iden.use),'_id','display'),attachments:(for att in iden.attachments FILTER document(att).activestatus == true RETURN KEEP(document(att),'url','fileName','fileid','objectid','filetype','_id'))})),address:(FOR addr IN document(adqolcPractitioner.personid).address RETURN MERGE(addr,{use:KEEP(DOCUMENT(addr.use),'_id','display'),type:KEEP(DOCUMENT(addr.type),'_id','display'),city:KEEP(DOCUMENT(addr.city),'_id','geogLevelName'),district:KEEP(DOCUMENT(addr.district),'_id','geogLevelName'),state:KEEP(DOCUMENT(addr.state),'_id','geogLevelName'),postalcode:KEEP(DOCUMENT(addr.postalcode),'_id','geogLevelName'),country:KEEP(DOCUMENT(addr.country),'_id','geogLevelName')})),communication:(FOR coms IN DOCUMENT(adqolcPractitioner.personid).communicationlanguage RETURN KEEP(DOCUMENT(coms),'_id','display')),marital_status:KEEP(DOCUMENT(DOCUMENT(adqolcPractitioner.personid).maritalstatus),'_id','display'),birthdate:DOCUMENT(adqolcPractitioner.personid).birthdate,name:(FOR name IN DOCUMENT(adqolcPractitioner.personid).name RETURN MERGE(name,{use:KEEP(DOCUMENT(name.use),'_id','display'),prefix:KEEP(DOCUMENT(name.prefix),'_id','display')})),nationality:KEEP(DOCUMENT(DOCUMENT(adqolcPractitioner.personid).nationality),'_id','geogLevelName'),practitioner_type:KEEP(DOCUMENT(adqolcPractitioner.practitioner_type),'_id','display'),gender:KEEP(DOCUMENT(DOCUMENT(adqolcPractitioner.personid).gender),'_id','display'),practitioner_role:(FOR pro IN adqolcPractitioner.practitioner_role RETURN MERGE(pro,{role:KEEP(DOCUMENT(pro.role),'_id','display'),specialtyid:KEEP(DOCUMENT(pro.specialtyid),'_id','display'),entitytype:KEEP(DOCUMENT(pro.entitytype),'_id','display'),entityname:DOCUMENT(pro.entityname),locationid:dOCUMENT(pro.locationid)})),telecom:(FOR tel IN DOCUMENT(adqolcPractitioner.personid).telecom RETURN MERGE(tel,{system:KEEP(DOCUMENT(tel.system),'_id','display'),use:KEEP(DOCUMENT(tel.use),'_id','display')})),photo:DOCUMENT(DOCUMENT(adqolcPractitioner.personid).photo)})"
|
|
8393
8403
|
};
|
|
8394
8404
|
},
|
|
8395
8405
|
practitioner_list: function practitioner_list() {
|
|
@@ -14961,7 +14971,7 @@ var queries$j = {
|
|
|
14961
14971
|
return {
|
|
14962
14972
|
db_name: dbName$1,
|
|
14963
14973
|
entity: "Holiday",
|
|
14964
|
-
filter: "Holiday._id=='Holiday/".concat(data, "' && Holiday.
|
|
14974
|
+
filter: "Holiday._id=='Holiday/".concat(data, "' && Holiday.activestatus==true"),
|
|
14965
14975
|
return_fields: "merge(Holiday,{HolidayType:document(Holiday.HolidayType),CalDay:document(Holiday.CalDay)},{HolidayDtls:(for Holidaydtls in Holidaydtls filter Holidaydtls.holidayid==Holiday._id return merge(Holidaydtls,{orgid:document(Holidaydtls.orgid),status:document(Holidaydtls.status)}))})"
|
|
14966
14976
|
};
|
|
14967
14977
|
},
|
|
@@ -15252,33 +15262,225 @@ var availabilityManagementActions$1 = {
|
|
|
15252
15262
|
var availabilityManagementSlice$1 = availabilityManagementSlice.reducer;
|
|
15253
15263
|
|
|
15254
15264
|
var _extraReducers$B;
|
|
15265
|
+
var GET_HOLIDAY_TYPE = createAsyncThunk("holidaySlice/holidayTypeqdm", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
15266
|
+
var _ref2,
|
|
15267
|
+
rejectWithValue,
|
|
15268
|
+
_data$,
|
|
15269
|
+
_data$$HOLIDAYTYPE,
|
|
15270
|
+
_data$$HOLIDAYTYPE$Va,
|
|
15271
|
+
body,
|
|
15272
|
+
data,
|
|
15273
|
+
arry,
|
|
15274
|
+
_args = arguments;
|
|
15275
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
15276
|
+
while (1) {
|
|
15277
|
+
switch (_context.prev = _context.next) {
|
|
15278
|
+
case 0:
|
|
15279
|
+
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
15280
|
+
_context.prev = 2;
|
|
15281
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
15282
|
+
body = {
|
|
15283
|
+
"db_name": "primarycareng",
|
|
15284
|
+
"filter": {
|
|
15285
|
+
"type": ["HOLIDAYTYPE"],
|
|
15286
|
+
"tenantid": "",
|
|
15287
|
+
"facilityid": "",
|
|
15288
|
+
"lang": ""
|
|
15289
|
+
},
|
|
15290
|
+
"queryid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
15291
|
+
};
|
|
15292
|
+
_context.next = 6;
|
|
15293
|
+
return fetchData({
|
|
15294
|
+
body: JSON.stringify(body)
|
|
15295
|
+
}, __baseUrl__$1);
|
|
15296
|
+
case 6:
|
|
15297
|
+
data = _context.sent;
|
|
15298
|
+
arry = [];
|
|
15299
|
+
(_data$ = data[0]) === null || _data$ === void 0 ? void 0 : (_data$$HOLIDAYTYPE = _data$.HOLIDAYTYPE) === null || _data$$HOLIDAYTYPE === void 0 ? void 0 : (_data$$HOLIDAYTYPE$Va = _data$$HOLIDAYTYPE.Value) === null || _data$$HOLIDAYTYPE$Va === void 0 ? void 0 : _data$$HOLIDAYTYPE$Va.map(function (item) {
|
|
15300
|
+
return arry.push({
|
|
15301
|
+
_id: item._id,
|
|
15302
|
+
Value: item._id,
|
|
15303
|
+
label: item.display
|
|
15304
|
+
});
|
|
15305
|
+
});
|
|
15306
|
+
return _context.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
15307
|
+
data: arry
|
|
15308
|
+
}));
|
|
15309
|
+
case 12:
|
|
15310
|
+
_context.prev = 12;
|
|
15311
|
+
_context.t0 = _context["catch"](2);
|
|
15312
|
+
return _context.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
15313
|
+
message: _context.t0.message
|
|
15314
|
+
})));
|
|
15315
|
+
case 15:
|
|
15316
|
+
case "end":
|
|
15317
|
+
return _context.stop();
|
|
15318
|
+
}
|
|
15319
|
+
}
|
|
15320
|
+
}, _callee, null, [[2, 12]]);
|
|
15321
|
+
})));
|
|
15322
|
+
var HOLIDAY_SINGLE_READ_QDM = createAsyncThunk("holidaySlice/holidaySinglereadqdm", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
15323
|
+
var payload,
|
|
15324
|
+
_ref4,
|
|
15325
|
+
rejectWithValue,
|
|
15326
|
+
body,
|
|
15327
|
+
data,
|
|
15328
|
+
_args2 = arguments;
|
|
15329
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
15330
|
+
while (1) {
|
|
15331
|
+
switch (_context2.prev = _context2.next) {
|
|
15332
|
+
case 0:
|
|
15333
|
+
payload = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
15334
|
+
_ref4 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref4.rejectWithValue;
|
|
15335
|
+
_context2.prev = 2;
|
|
15336
|
+
// const { holidayid ="" , allData = false } = _id;
|
|
15337
|
+
body = {
|
|
15338
|
+
"db_name": "primarycareng",
|
|
15339
|
+
"filter": {
|
|
15340
|
+
"holidayid": payload
|
|
15341
|
+
},
|
|
15342
|
+
"queryid": "d7f170d0-f1f0-4f92-bec6-2171f5bbf358"
|
|
15343
|
+
};
|
|
15344
|
+
_context2.next = 6;
|
|
15345
|
+
return fetchData({
|
|
15346
|
+
body: JSON.stringify(body)
|
|
15347
|
+
}, __baseUrl__$1);
|
|
15348
|
+
case 6:
|
|
15349
|
+
data = _context2.sent;
|
|
15350
|
+
console.log(data);
|
|
15351
|
+
return _context2.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
15352
|
+
data: data
|
|
15353
|
+
}));
|
|
15354
|
+
case 11:
|
|
15355
|
+
_context2.prev = 11;
|
|
15356
|
+
_context2.t0 = _context2["catch"](2);
|
|
15357
|
+
return _context2.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
15358
|
+
message: _context2.t0.message
|
|
15359
|
+
})));
|
|
15360
|
+
case 14:
|
|
15361
|
+
case "end":
|
|
15362
|
+
return _context2.stop();
|
|
15363
|
+
}
|
|
15364
|
+
}
|
|
15365
|
+
}, _callee2, null, [[2, 11]]);
|
|
15366
|
+
})));
|
|
15367
|
+
var HOLIDAY_ENTITY_MASTERS_QDM = createAsyncThunk("holidaySlice/entity_read_qdm", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
15368
|
+
var payload,
|
|
15369
|
+
_ref6,
|
|
15370
|
+
rejectWithValue,
|
|
15371
|
+
body,
|
|
15372
|
+
data,
|
|
15373
|
+
_args3 = arguments;
|
|
15374
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
15375
|
+
while (1) {
|
|
15376
|
+
switch (_context3.prev = _context3.next) {
|
|
15377
|
+
case 0:
|
|
15378
|
+
payload = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : "";
|
|
15379
|
+
_ref6 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref6.rejectWithValue;
|
|
15380
|
+
_context3.prev = 2;
|
|
15381
|
+
// const { holidayid ="" , allData = false } = _id;
|
|
15382
|
+
body = {
|
|
15383
|
+
"db_name": "primarycareng",
|
|
15384
|
+
"filter": {
|
|
15385
|
+
"holidayid": payload ? payload : ""
|
|
15386
|
+
},
|
|
15387
|
+
"queryid": "80ccd827-16da-42f5-ac4d-e94b25834229"
|
|
15388
|
+
};
|
|
15389
|
+
_context3.next = 6;
|
|
15390
|
+
return fetchData({
|
|
15391
|
+
body: JSON.stringify(body)
|
|
15392
|
+
}, __baseUrl__$1);
|
|
15393
|
+
case 6:
|
|
15394
|
+
data = _context3.sent;
|
|
15395
|
+
return _context3.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
15396
|
+
data: data
|
|
15397
|
+
}));
|
|
15398
|
+
case 10:
|
|
15399
|
+
_context3.prev = 10;
|
|
15400
|
+
_context3.t0 = _context3["catch"](2);
|
|
15401
|
+
return _context3.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
15402
|
+
message: _context3.t0.message
|
|
15403
|
+
})));
|
|
15404
|
+
case 13:
|
|
15405
|
+
case "end":
|
|
15406
|
+
return _context3.stop();
|
|
15407
|
+
}
|
|
15408
|
+
}
|
|
15409
|
+
}, _callee3, null, [[2, 10]]);
|
|
15410
|
+
})));
|
|
15411
|
+
var HOLIDAY_SINGLE_READ_SELECTED_QDM = createAsyncThunk("holidaySlice/holidaySinglereadSelectedqdm", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
15412
|
+
var payload,
|
|
15413
|
+
_ref8,
|
|
15414
|
+
rejectWithValue,
|
|
15415
|
+
_id,
|
|
15416
|
+
body,
|
|
15417
|
+
data,
|
|
15418
|
+
_args4 = arguments;
|
|
15419
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
15420
|
+
while (1) {
|
|
15421
|
+
switch (_context4.prev = _context4.next) {
|
|
15422
|
+
case 0:
|
|
15423
|
+
payload = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
|
|
15424
|
+
_ref8 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref8.rejectWithValue;
|
|
15425
|
+
_context4.prev = 2;
|
|
15426
|
+
_id = 'Holiday/' + payload; // const { holidayid ="" , allData = false } = _id;
|
|
15427
|
+
body = {
|
|
15428
|
+
"db_name": "primarycareng",
|
|
15429
|
+
"filter": {
|
|
15430
|
+
"holidayid": _id
|
|
15431
|
+
},
|
|
15432
|
+
"queryid": "184fb879-244f-495e-a1dd-31f5eae6faf7"
|
|
15433
|
+
};
|
|
15434
|
+
_context4.next = 7;
|
|
15435
|
+
return fetchData({
|
|
15436
|
+
body: JSON.stringify(body)
|
|
15437
|
+
}, __baseUrl__$1);
|
|
15438
|
+
case 7:
|
|
15439
|
+
data = _context4.sent;
|
|
15440
|
+
console.log(data);
|
|
15441
|
+
return _context4.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
15442
|
+
data: data
|
|
15443
|
+
}));
|
|
15444
|
+
case 12:
|
|
15445
|
+
_context4.prev = 12;
|
|
15446
|
+
_context4.t0 = _context4["catch"](2);
|
|
15447
|
+
return _context4.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
15448
|
+
message: _context4.t0.message
|
|
15449
|
+
})));
|
|
15450
|
+
case 15:
|
|
15451
|
+
case "end":
|
|
15452
|
+
return _context4.stop();
|
|
15453
|
+
}
|
|
15454
|
+
}
|
|
15455
|
+
}, _callee4, null, [[2, 12]]);
|
|
15456
|
+
})));
|
|
15255
15457
|
var loopMasters$7 = function loopMasters() {
|
|
15256
15458
|
return new es6Promise.Promise( /*#__PURE__*/function () {
|
|
15257
|
-
var
|
|
15459
|
+
var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(resolve, reject) {
|
|
15258
15460
|
var calls;
|
|
15259
|
-
return _regeneratorRuntime().wrap(function
|
|
15461
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
15260
15462
|
while (1) {
|
|
15261
|
-
switch (
|
|
15463
|
+
switch (_context6.prev = _context6.next) {
|
|
15262
15464
|
case 0:
|
|
15263
15465
|
calls = Object.keys(queries$j.holiday_master).map( /*#__PURE__*/function () {
|
|
15264
|
-
var
|
|
15265
|
-
return _regeneratorRuntime().wrap(function
|
|
15466
|
+
var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(val) {
|
|
15467
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
15266
15468
|
while (1) {
|
|
15267
|
-
switch (
|
|
15469
|
+
switch (_context5.prev = _context5.next) {
|
|
15268
15470
|
case 0:
|
|
15269
|
-
|
|
15471
|
+
_context5.next = 2;
|
|
15270
15472
|
return fetchMaster$7(val, queries$j.holiday_master[val]);
|
|
15271
15473
|
case 2:
|
|
15272
|
-
return
|
|
15474
|
+
return _context5.abrupt("return", _context5.sent);
|
|
15273
15475
|
case 3:
|
|
15274
15476
|
case "end":
|
|
15275
|
-
return
|
|
15477
|
+
return _context5.stop();
|
|
15276
15478
|
}
|
|
15277
15479
|
}
|
|
15278
|
-
},
|
|
15480
|
+
}, _callee5);
|
|
15279
15481
|
}));
|
|
15280
15482
|
return function (_x3) {
|
|
15281
|
-
return
|
|
15483
|
+
return _ref10.apply(this, arguments);
|
|
15282
15484
|
};
|
|
15283
15485
|
}());
|
|
15284
15486
|
es6Promise.Promise.all(calls).then(function (data) {
|
|
@@ -15307,428 +15509,557 @@ var loopMasters$7 = function loopMasters() {
|
|
|
15307
15509
|
});
|
|
15308
15510
|
case 2:
|
|
15309
15511
|
case "end":
|
|
15310
|
-
return
|
|
15512
|
+
return _context6.stop();
|
|
15311
15513
|
}
|
|
15312
15514
|
}
|
|
15313
|
-
},
|
|
15515
|
+
}, _callee6);
|
|
15314
15516
|
}));
|
|
15315
15517
|
return function (_x, _x2) {
|
|
15316
|
-
return
|
|
15518
|
+
return _ref9.apply(this, arguments);
|
|
15317
15519
|
};
|
|
15318
15520
|
}());
|
|
15319
15521
|
};
|
|
15320
15522
|
var fetchMaster$7 = function fetchMaster(name, query) {
|
|
15321
15523
|
return new es6Promise.Promise( /*#__PURE__*/function () {
|
|
15322
|
-
var
|
|
15524
|
+
var _ref11 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(resolve, reject) {
|
|
15323
15525
|
var data;
|
|
15324
|
-
return _regeneratorRuntime().wrap(function
|
|
15526
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
15325
15527
|
while (1) {
|
|
15326
|
-
switch (
|
|
15528
|
+
switch (_context7.prev = _context7.next) {
|
|
15327
15529
|
case 0:
|
|
15328
|
-
|
|
15530
|
+
_context7.next = 2;
|
|
15329
15531
|
return fetchData({
|
|
15330
15532
|
body: query
|
|
15331
15533
|
}, __readDocumentUrl__);
|
|
15332
15534
|
case 2:
|
|
15333
|
-
data =
|
|
15535
|
+
data = _context7.sent;
|
|
15334
15536
|
resolve({
|
|
15335
15537
|
data: data.result,
|
|
15336
15538
|
name: name
|
|
15337
15539
|
});
|
|
15338
15540
|
case 4:
|
|
15339
15541
|
case "end":
|
|
15340
|
-
return
|
|
15542
|
+
return _context7.stop();
|
|
15341
15543
|
}
|
|
15342
15544
|
}
|
|
15343
|
-
},
|
|
15545
|
+
}, _callee7);
|
|
15344
15546
|
}));
|
|
15345
15547
|
return function (_x4, _x5) {
|
|
15346
|
-
return
|
|
15548
|
+
return _ref11.apply(this, arguments);
|
|
15347
15549
|
};
|
|
15348
15550
|
}());
|
|
15349
15551
|
};
|
|
15350
|
-
var HOLIDAY_STATUS_CHANGE = createAsyncThunk("holidaySlice/holidayStatus", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
15552
|
+
var HOLIDAY_STATUS_CHANGE = createAsyncThunk("holidaySlice/holidayStatus", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
|
|
15351
15553
|
var payload,
|
|
15352
|
-
|
|
15554
|
+
_ref13,
|
|
15353
15555
|
rejectWithValue,
|
|
15354
15556
|
statuschange,
|
|
15355
15557
|
queriesjson,
|
|
15356
15558
|
data,
|
|
15357
|
-
|
|
15358
|
-
return _regeneratorRuntime().wrap(function
|
|
15559
|
+
_args8 = arguments;
|
|
15560
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
15359
15561
|
while (1) {
|
|
15360
|
-
switch (
|
|
15562
|
+
switch (_context8.prev = _context8.next) {
|
|
15361
15563
|
case 0:
|
|
15362
|
-
payload =
|
|
15363
|
-
|
|
15364
|
-
|
|
15564
|
+
payload = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
|
|
15565
|
+
_ref13 = _args8.length > 1 ? _args8[1] : undefined, rejectWithValue = _ref13.rejectWithValue;
|
|
15566
|
+
_context8.prev = 2;
|
|
15365
15567
|
statuschange = {
|
|
15366
15568
|
_key: payload._key,
|
|
15367
15569
|
status: payload.status
|
|
15368
15570
|
};
|
|
15369
15571
|
queriesjson = queries$j.status_update_holiday(statuschange);
|
|
15370
|
-
|
|
15572
|
+
_context8.next = 7;
|
|
15371
15573
|
return fetchData({
|
|
15372
15574
|
body: JSON.stringify(queriesjson)
|
|
15373
15575
|
}, __holidayNifiUrl__);
|
|
15374
15576
|
case 7:
|
|
15375
|
-
data =
|
|
15376
|
-
return
|
|
15577
|
+
data = _context8.sent;
|
|
15578
|
+
return _context8.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
15377
15579
|
data: data
|
|
15378
15580
|
}));
|
|
15379
15581
|
case 11:
|
|
15380
|
-
|
|
15381
|
-
|
|
15382
|
-
return
|
|
15383
|
-
message:
|
|
15582
|
+
_context8.prev = 11;
|
|
15583
|
+
_context8.t0 = _context8["catch"](2);
|
|
15584
|
+
return _context8.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
15585
|
+
message: _context8.t0.message
|
|
15384
15586
|
})));
|
|
15385
15587
|
case 14:
|
|
15386
15588
|
case "end":
|
|
15387
|
-
return
|
|
15589
|
+
return _context8.stop();
|
|
15388
15590
|
}
|
|
15389
15591
|
}
|
|
15390
|
-
},
|
|
15592
|
+
}, _callee8, null, [[2, 11]]);
|
|
15391
15593
|
})));
|
|
15392
|
-
|
|
15594
|
+
|
|
15595
|
+
// const HOLIDAY_READ = createAsyncThunk(
|
|
15596
|
+
// `holidaySlice/holidy_list`,
|
|
15597
|
+
// async (payload = {}, { rejectWithValue }) => {
|
|
15598
|
+
// try {
|
|
15599
|
+
// let readqueries = queries.holiday_read(payload);
|
|
15600
|
+
// const data = await fetchData(
|
|
15601
|
+
// { body: JSON.stringify(readqueries) },
|
|
15602
|
+
// __readDocumentUrl__
|
|
15603
|
+
// );
|
|
15604
|
+
|
|
15605
|
+
// let arry = [];
|
|
15606
|
+
// data?.result.map((val) => {
|
|
15607
|
+
// if (val._key) {
|
|
15608
|
+
// arry.push({
|
|
15609
|
+
// total_count: val?.TotalCount,
|
|
15610
|
+
// date: val.CalDate ? utcTOLocal(val.CalDate, "DD-MMM") : null,
|
|
15611
|
+
// CalYear: val.CalYear ? val.CalYear : null,
|
|
15612
|
+
// day: val.CalDay ? val.CalDay?.display : "",
|
|
15613
|
+
// holiday_reason: val.HolidayReason ? val.HolidayReason : "",
|
|
15614
|
+
// holiday_type: val?.HolidayType ? val?.HolidayType?.display : "",
|
|
15615
|
+
// _key: val._key ? val._key : "",
|
|
15616
|
+
// status: val.status ? val.status : false,
|
|
15617
|
+
// copyData: data?.result,
|
|
15618
|
+
// });
|
|
15619
|
+
// }
|
|
15620
|
+
// });
|
|
15621
|
+
// debugger;
|
|
15622
|
+
// return {
|
|
15623
|
+
// ...defaultState.List,
|
|
15624
|
+
// data: arry,
|
|
15625
|
+
// };
|
|
15626
|
+
// } catch (error) {
|
|
15627
|
+
// console.log(error, "error");
|
|
15628
|
+
// return rejectWithValue({
|
|
15629
|
+
// ...defaultReject.List,
|
|
15630
|
+
// message: error.message,
|
|
15631
|
+
// });
|
|
15632
|
+
// }
|
|
15633
|
+
// }
|
|
15634
|
+
// );
|
|
15635
|
+
|
|
15636
|
+
var HOLIDAY_READ_QDM = createAsyncThunk("holidaySlice/holiday_qdm", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
|
|
15393
15637
|
var payload,
|
|
15394
|
-
|
|
15638
|
+
_ref15,
|
|
15395
15639
|
rejectWithValue,
|
|
15396
|
-
|
|
15640
|
+
_payload$CalYear,
|
|
15641
|
+
CalYear,
|
|
15642
|
+
_payload$page,
|
|
15643
|
+
page,
|
|
15644
|
+
_payload$perPage,
|
|
15645
|
+
perPage,
|
|
15646
|
+
body,
|
|
15397
15647
|
data,
|
|
15398
15648
|
arry,
|
|
15399
|
-
|
|
15400
|
-
return _regeneratorRuntime().wrap(function
|
|
15649
|
+
_args9 = arguments;
|
|
15650
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
15401
15651
|
while (1) {
|
|
15402
|
-
switch (
|
|
15652
|
+
switch (_context9.prev = _context9.next) {
|
|
15403
15653
|
case 0:
|
|
15404
|
-
payload =
|
|
15405
|
-
|
|
15406
|
-
|
|
15407
|
-
|
|
15408
|
-
|
|
15654
|
+
payload = _args9.length > 0 && _args9[0] !== undefined ? _args9[0] : {};
|
|
15655
|
+
_ref15 = _args9.length > 1 ? _args9[1] : undefined, rejectWithValue = _ref15.rejectWithValue;
|
|
15656
|
+
_context9.prev = 2;
|
|
15657
|
+
_payload$CalYear = payload.CalYear, CalYear = _payload$CalYear === void 0 ? "" : _payload$CalYear, _payload$page = payload.page, page = _payload$page === void 0 ? "" : _payload$page, _payload$perPage = payload.perPage, perPage = _payload$perPage === void 0 ? "" : _payload$perPage, payload.allData;
|
|
15658
|
+
body = {
|
|
15659
|
+
"db_name": "primarycareng",
|
|
15660
|
+
"filter": {
|
|
15661
|
+
"year": CalYear,
|
|
15662
|
+
"page": page,
|
|
15663
|
+
"perPage": perPage
|
|
15664
|
+
},
|
|
15665
|
+
"queryid": "e8a3d9b8-2503-47e2-9b02-b6abeebef45f"
|
|
15666
|
+
}; // let readqueries = qdmQueries.holiday_read_qdm(payload);
|
|
15667
|
+
_context9.next = 7;
|
|
15409
15668
|
return fetchData({
|
|
15410
|
-
body: JSON.stringify(
|
|
15411
|
-
},
|
|
15412
|
-
case
|
|
15413
|
-
data =
|
|
15414
|
-
arry = [];
|
|
15415
|
-
data === null || data === void 0 ? void 0 : data.
|
|
15669
|
+
body: JSON.stringify(body)
|
|
15670
|
+
}, __baseUrl__$1);
|
|
15671
|
+
case 7:
|
|
15672
|
+
data = _context9.sent;
|
|
15673
|
+
arry = [];
|
|
15674
|
+
data === null || data === void 0 ? void 0 : data.map(function (val) {
|
|
15416
15675
|
if (val._key) {
|
|
15417
|
-
var _val$CalDay
|
|
15676
|
+
var _val$CalDay;
|
|
15418
15677
|
arry.push({
|
|
15419
|
-
total_count: val === null || val === void 0 ? void 0 : val.
|
|
15420
|
-
date: val.CalDate ? utcTOLocal(val.CalDate, "DD-
|
|
15678
|
+
total_count: val === null || val === void 0 ? void 0 : val.total_count,
|
|
15679
|
+
date: val.CalDate ? utcTOLocal(val.CalDate, "DD-MM-YYYY") : null,
|
|
15421
15680
|
CalYear: val.CalYear ? val.CalYear : null,
|
|
15422
15681
|
day: val.CalDay ? (_val$CalDay = val.CalDay) === null || _val$CalDay === void 0 ? void 0 : _val$CalDay.display : "",
|
|
15423
15682
|
holiday_reason: val.HolidayReason ? val.HolidayReason : "",
|
|
15424
|
-
holiday_type: val !== null && val !== void 0 && val.HolidayType ? val === null || val === void 0 ? void 0 :
|
|
15425
|
-
|
|
15683
|
+
holiday_type: val !== null && val !== void 0 && val.HolidayType ? val === null || val === void 0 ? void 0 : val.HolidayType : "",
|
|
15684
|
+
_id: val._id ? val._id : "",
|
|
15426
15685
|
status: val.status ? val.status : false,
|
|
15427
|
-
copyData: data === null || data === void 0 ? void 0 : data.result
|
|
15686
|
+
copyData: data === null || data === void 0 ? void 0 : data.result,
|
|
15687
|
+
TotalCountByYear: val === null || val === void 0 ? void 0 : val.TotalCountByYear
|
|
15428
15688
|
});
|
|
15429
15689
|
}
|
|
15430
15690
|
});
|
|
15431
15691
|
debugger;
|
|
15432
|
-
return
|
|
15692
|
+
return _context9.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
15433
15693
|
data: arry
|
|
15434
15694
|
}));
|
|
15435
|
-
case
|
|
15436
|
-
|
|
15437
|
-
|
|
15438
|
-
console.log(
|
|
15439
|
-
return
|
|
15440
|
-
message:
|
|
15695
|
+
case 14:
|
|
15696
|
+
_context9.prev = 14;
|
|
15697
|
+
_context9.t0 = _context9["catch"](2);
|
|
15698
|
+
console.log(_context9.t0, "error");
|
|
15699
|
+
return _context9.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject.List), {}, {
|
|
15700
|
+
message: _context9.t0.message
|
|
15441
15701
|
})));
|
|
15442
|
-
case
|
|
15702
|
+
case 18:
|
|
15443
15703
|
case "end":
|
|
15444
|
-
return
|
|
15704
|
+
return _context9.stop();
|
|
15445
15705
|
}
|
|
15446
15706
|
}
|
|
15447
|
-
},
|
|
15707
|
+
}, _callee9, null, [[2, 14]]);
|
|
15448
15708
|
})));
|
|
15449
|
-
var HOLIDAY_SINGLE_READ = createAsyncThunk("holidaySlice/holidy_single_read", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
15709
|
+
var HOLIDAY_SINGLE_READ = createAsyncThunk("holidaySlice/holidy_single_read", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {
|
|
15450
15710
|
var payload,
|
|
15451
|
-
|
|
15711
|
+
_ref17,
|
|
15452
15712
|
rejectWithValue,
|
|
15453
15713
|
readqueries,
|
|
15454
15714
|
data,
|
|
15455
15715
|
arry,
|
|
15456
|
-
|
|
15457
|
-
return _regeneratorRuntime().wrap(function
|
|
15716
|
+
_args10 = arguments;
|
|
15717
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
15458
15718
|
while (1) {
|
|
15459
|
-
switch (
|
|
15719
|
+
switch (_context10.prev = _context10.next) {
|
|
15460
15720
|
case 0:
|
|
15461
|
-
payload =
|
|
15462
|
-
|
|
15721
|
+
payload = _args10.length > 0 && _args10[0] !== undefined ? _args10[0] : {};
|
|
15722
|
+
_ref17 = _args10.length > 1 ? _args10[1] : undefined, rejectWithValue = _ref17.rejectWithValue;
|
|
15463
15723
|
console.log(payload, "p-p");
|
|
15464
|
-
|
|
15724
|
+
_context10.prev = 3;
|
|
15465
15725
|
debugger;
|
|
15466
15726
|
readqueries = queries$j.holiday_single_read(payload);
|
|
15467
|
-
|
|
15727
|
+
_context10.next = 8;
|
|
15468
15728
|
return fetchData({
|
|
15469
15729
|
body: JSON.stringify(readqueries)
|
|
15470
15730
|
}, __readDocumentUrl__);
|
|
15471
15731
|
case 8:
|
|
15472
|
-
data =
|
|
15732
|
+
data = _context10.sent;
|
|
15473
15733
|
arry = [];
|
|
15474
15734
|
data === null || data === void 0 ? void 0 : data.result.map(function (val) {
|
|
15475
15735
|
if (val._key) {
|
|
15476
|
-
var _val$CalDay2, _val$
|
|
15736
|
+
var _val$CalDay2, _val$HolidayType;
|
|
15477
15737
|
arry.push({
|
|
15478
15738
|
total_count: val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
15479
15739
|
date: val.CalDate ? utcTOLocal(val.CalDate, "DD-MM-YY") : null,
|
|
15480
15740
|
CalYear: val.CalYear ? val.CalYear : null,
|
|
15481
15741
|
day: val.CalDay ? (_val$CalDay2 = val.CalDay) === null || _val$CalDay2 === void 0 ? void 0 : _val$CalDay2.display : "",
|
|
15482
15742
|
holiday_reason: val.HolidayReason ? val.HolidayReason : "",
|
|
15483
|
-
holiday_type: val !== null && val !== void 0 && val.HolidayType ? val === null || val === void 0 ? void 0 : (_val$
|
|
15743
|
+
holiday_type: val !== null && val !== void 0 && val.HolidayType ? val === null || val === void 0 ? void 0 : (_val$HolidayType = val.HolidayType) === null || _val$HolidayType === void 0 ? void 0 : _val$HolidayType.display : "",
|
|
15484
15744
|
_key: val._key ? val._key : "",
|
|
15485
15745
|
status: val.status ? val.status : false
|
|
15486
15746
|
});
|
|
15487
15747
|
}
|
|
15488
15748
|
});
|
|
15489
15749
|
debugger;
|
|
15490
|
-
return
|
|
15750
|
+
return _context10.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
15491
15751
|
data: data
|
|
15492
15752
|
}));
|
|
15493
15753
|
case 15:
|
|
15494
|
-
|
|
15495
|
-
|
|
15496
|
-
console.log(
|
|
15497
|
-
return
|
|
15498
|
-
message:
|
|
15754
|
+
_context10.prev = 15;
|
|
15755
|
+
_context10.t0 = _context10["catch"](3);
|
|
15756
|
+
console.log(_context10.t0, "error");
|
|
15757
|
+
return _context10.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject.List), {}, {
|
|
15758
|
+
message: _context10.t0.message
|
|
15499
15759
|
})));
|
|
15500
15760
|
case 19:
|
|
15501
15761
|
case "end":
|
|
15502
|
-
return
|
|
15762
|
+
return _context10.stop();
|
|
15503
15763
|
}
|
|
15504
15764
|
}
|
|
15505
|
-
},
|
|
15765
|
+
}, _callee10, null, [[3, 15]]);
|
|
15506
15766
|
})));
|
|
15507
|
-
var HOLIDAY_SINGLE_READ_SELECTED = createAsyncThunk("holidaySlice/holidy_single_read_selected", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
15767
|
+
var HOLIDAY_SINGLE_READ_SELECTED = createAsyncThunk("holidaySlice/holidy_single_read_selected", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11() {
|
|
15508
15768
|
var payload,
|
|
15509
|
-
|
|
15769
|
+
_ref19,
|
|
15510
15770
|
rejectWithValue,
|
|
15511
15771
|
readqueries,
|
|
15512
15772
|
data,
|
|
15513
15773
|
arry,
|
|
15514
|
-
|
|
15515
|
-
return _regeneratorRuntime().wrap(function
|
|
15774
|
+
_args11 = arguments;
|
|
15775
|
+
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
15516
15776
|
while (1) {
|
|
15517
|
-
switch (
|
|
15777
|
+
switch (_context11.prev = _context11.next) {
|
|
15518
15778
|
case 0:
|
|
15519
|
-
payload =
|
|
15520
|
-
|
|
15779
|
+
payload = _args11.length > 0 && _args11[0] !== undefined ? _args11[0] : {};
|
|
15780
|
+
_ref19 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref19.rejectWithValue;
|
|
15521
15781
|
console.log(payload, "p-p123");
|
|
15522
|
-
|
|
15782
|
+
_context11.prev = 3;
|
|
15523
15783
|
debugger;
|
|
15524
15784
|
readqueries = queries$j.holiday_single_read_selected(payload);
|
|
15525
|
-
|
|
15785
|
+
_context11.next = 8;
|
|
15526
15786
|
return fetchData({
|
|
15527
15787
|
body: JSON.stringify(readqueries)
|
|
15528
15788
|
}, __readDocumentUrl__);
|
|
15529
15789
|
case 8:
|
|
15530
|
-
data =
|
|
15790
|
+
data = _context11.sent;
|
|
15531
15791
|
console.log(data, "kkdkkde");
|
|
15532
15792
|
arry = [];
|
|
15533
15793
|
data === null || data === void 0 ? void 0 : data.result.map(function (val) {
|
|
15534
15794
|
if (val._key) {
|
|
15535
|
-
var _val$CalDay3, _val$
|
|
15795
|
+
var _val$CalDay3, _val$HolidayType2;
|
|
15536
15796
|
arry.push({
|
|
15537
15797
|
total_count: val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
15538
15798
|
date: val.CalDate ? utcTOLocal(val.CalDate, "DD-MM-YY") : null,
|
|
15539
15799
|
CalYear: val.CalYear ? val.CalYear : null,
|
|
15540
15800
|
day: val.CalDay ? (_val$CalDay3 = val.CalDay) === null || _val$CalDay3 === void 0 ? void 0 : _val$CalDay3.display : "",
|
|
15541
15801
|
holiday_reason: val.HolidayReason ? val.HolidayReason : "",
|
|
15542
|
-
holiday_type: val !== null && val !== void 0 && val.HolidayType ? val === null || val === void 0 ? void 0 : (_val$
|
|
15802
|
+
holiday_type: val !== null && val !== void 0 && val.HolidayType ? val === null || val === void 0 ? void 0 : (_val$HolidayType2 = val.HolidayType) === null || _val$HolidayType2 === void 0 ? void 0 : _val$HolidayType2.display : "",
|
|
15543
15803
|
_key: val._key ? val._key : "",
|
|
15544
15804
|
status: val.status ? val.status : false
|
|
15545
15805
|
});
|
|
15546
15806
|
}
|
|
15547
15807
|
});
|
|
15548
15808
|
debugger;
|
|
15549
|
-
return
|
|
15809
|
+
return _context11.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
15550
15810
|
data: data
|
|
15551
15811
|
}));
|
|
15552
15812
|
case 16:
|
|
15553
|
-
|
|
15554
|
-
|
|
15555
|
-
console.log(
|
|
15556
|
-
return
|
|
15557
|
-
message:
|
|
15813
|
+
_context11.prev = 16;
|
|
15814
|
+
_context11.t0 = _context11["catch"](3);
|
|
15815
|
+
console.log(_context11.t0, "error");
|
|
15816
|
+
return _context11.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject.List), {}, {
|
|
15817
|
+
message: _context11.t0.message
|
|
15558
15818
|
})));
|
|
15559
15819
|
case 20:
|
|
15560
15820
|
case "end":
|
|
15561
|
-
return
|
|
15821
|
+
return _context11.stop();
|
|
15562
15822
|
}
|
|
15563
15823
|
}
|
|
15564
|
-
},
|
|
15824
|
+
}, _callee11, null, [[3, 16]]);
|
|
15565
15825
|
})));
|
|
15566
|
-
var HOLIDAY_UPSERT = createAsyncThunk("holidaySlice/holiday_upsert", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
15826
|
+
var HOLIDAY_UPSERT = createAsyncThunk("holidaySlice/holiday_upsert", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12() {
|
|
15827
|
+
var _payload$data;
|
|
15567
15828
|
var payload,
|
|
15568
|
-
|
|
15829
|
+
_ref21,
|
|
15569
15830
|
rejectWithValue,
|
|
15570
15831
|
url,
|
|
15571
|
-
_payload
|
|
15832
|
+
_payload$data2,
|
|
15833
|
+
_payload$data2$,
|
|
15572
15834
|
data,
|
|
15573
|
-
|
|
15574
|
-
return _regeneratorRuntime().wrap(function
|
|
15835
|
+
_args12 = arguments;
|
|
15836
|
+
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
15575
15837
|
while (1) {
|
|
15576
|
-
switch (
|
|
15838
|
+
switch (_context12.prev = _context12.next) {
|
|
15577
15839
|
case 0:
|
|
15578
|
-
payload =
|
|
15579
|
-
|
|
15840
|
+
payload = _args12.length > 0 && _args12[0] !== undefined ? _args12[0] : {};
|
|
15841
|
+
_ref21 = _args12.length > 1 ? _args12[1] : undefined, rejectWithValue = _ref21.rejectWithValue;
|
|
15580
15842
|
console.log(payload, "testPayloadd");
|
|
15581
|
-
if (payload.length) {
|
|
15582
|
-
if ((_payload$ = payload[0]) !== null && _payload$ !== void 0 && _payload$.
|
|
15583
|
-
url =
|
|
15843
|
+
if ((payload === null || payload === void 0 ? void 0 : (_payload$data = payload.data) === null || _payload$data === void 0 ? void 0 : _payload$data.length) > 0) {
|
|
15844
|
+
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) {
|
|
15845
|
+
url = __holidayEditUrl__;
|
|
15584
15846
|
} else {
|
|
15585
|
-
url =
|
|
15847
|
+
url = __holidayAddUrl__;
|
|
15586
15848
|
}
|
|
15587
15849
|
}
|
|
15588
|
-
|
|
15589
|
-
|
|
15850
|
+
_context12.prev = 4;
|
|
15851
|
+
_context12.next = 7;
|
|
15590
15852
|
return fetchData({
|
|
15591
|
-
body: JSON.stringify(payload)
|
|
15592
|
-
}, url);
|
|
15853
|
+
body: JSON.stringify(payload === null || payload === void 0 ? void 0 : payload.data)
|
|
15854
|
+
}, url, payload === null || payload === void 0 ? void 0 : payload.jwtToken);
|
|
15593
15855
|
case 7:
|
|
15594
|
-
data =
|
|
15856
|
+
data = _context12.sent;
|
|
15595
15857
|
console.log(data, "sdkfsdkjasdfr");
|
|
15596
|
-
return
|
|
15858
|
+
return _context12.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
15597
15859
|
data: data
|
|
15598
15860
|
}));
|
|
15599
15861
|
case 12:
|
|
15600
|
-
|
|
15601
|
-
|
|
15602
|
-
return
|
|
15603
|
-
message:
|
|
15862
|
+
_context12.prev = 12;
|
|
15863
|
+
_context12.t0 = _context12["catch"](4);
|
|
15864
|
+
return _context12.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
15865
|
+
message: _context12.t0.message
|
|
15604
15866
|
})));
|
|
15605
15867
|
case 15:
|
|
15606
15868
|
case "end":
|
|
15607
|
-
return
|
|
15869
|
+
return _context12.stop();
|
|
15608
15870
|
}
|
|
15609
15871
|
}
|
|
15610
|
-
},
|
|
15872
|
+
}, _callee12, null, [[4, 12]]);
|
|
15611
15873
|
})));
|
|
15612
|
-
var HOLIDAY_MASTERS = createAsyncThunk("holidaySlice/holiday_master", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
15874
|
+
var HOLIDAY_MASTERS = createAsyncThunk("holidaySlice/holiday_master", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
|
|
15613
15875
|
var payload,
|
|
15614
|
-
|
|
15876
|
+
_ref23,
|
|
15615
15877
|
rejectWithValue,
|
|
15616
15878
|
data,
|
|
15617
|
-
|
|
15618
|
-
return _regeneratorRuntime().wrap(function
|
|
15879
|
+
_args13 = arguments;
|
|
15880
|
+
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
15619
15881
|
while (1) {
|
|
15620
|
-
switch (
|
|
15882
|
+
switch (_context13.prev = _context13.next) {
|
|
15621
15883
|
case 0:
|
|
15622
|
-
payload =
|
|
15623
|
-
|
|
15624
|
-
|
|
15884
|
+
payload = _args13.length > 0 && _args13[0] !== undefined ? _args13[0] : {};
|
|
15885
|
+
_ref23 = _args13.length > 1 ? _args13[1] : undefined, rejectWithValue = _ref23.rejectWithValue;
|
|
15886
|
+
_context13.prev = 2;
|
|
15625
15887
|
payload.type;
|
|
15626
|
-
|
|
15888
|
+
_context13.next = 6;
|
|
15627
15889
|
return loopMasters$7();
|
|
15628
15890
|
case 6:
|
|
15629
|
-
data =
|
|
15630
|
-
return
|
|
15891
|
+
data = _context13.sent;
|
|
15892
|
+
return _context13.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.Info), {}, {
|
|
15631
15893
|
data: data
|
|
15632
15894
|
}));
|
|
15633
15895
|
case 10:
|
|
15634
|
-
|
|
15635
|
-
|
|
15636
|
-
return
|
|
15637
|
-
message:
|
|
15896
|
+
_context13.prev = 10;
|
|
15897
|
+
_context13.t0 = _context13["catch"](2);
|
|
15898
|
+
return _context13.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
15899
|
+
message: _context13.t0.message
|
|
15638
15900
|
})));
|
|
15639
15901
|
case 13:
|
|
15640
15902
|
case "end":
|
|
15641
|
-
return
|
|
15903
|
+
return _context13.stop();
|
|
15642
15904
|
}
|
|
15643
15905
|
}
|
|
15644
|
-
},
|
|
15906
|
+
}, _callee13, null, [[2, 10]]);
|
|
15645
15907
|
})));
|
|
15646
|
-
var ENTITY_MASTERS = createAsyncThunk("holidaySlice/entity_read", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
15908
|
+
var ENTITY_MASTERS = createAsyncThunk("holidaySlice/entity_read", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14() {
|
|
15647
15909
|
var payload,
|
|
15648
|
-
|
|
15910
|
+
_ref25,
|
|
15649
15911
|
rejectWithValue,
|
|
15650
15912
|
_payload$search,
|
|
15651
15913
|
queriesjson,
|
|
15652
15914
|
data,
|
|
15653
|
-
|
|
15654
|
-
return _regeneratorRuntime().wrap(function
|
|
15915
|
+
_args14 = arguments;
|
|
15916
|
+
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
|
15655
15917
|
while (1) {
|
|
15656
|
-
switch (
|
|
15918
|
+
switch (_context14.prev = _context14.next) {
|
|
15657
15919
|
case 0:
|
|
15658
|
-
payload =
|
|
15659
|
-
|
|
15660
|
-
|
|
15920
|
+
payload = _args14.length > 0 && _args14[0] !== undefined ? _args14[0] : {};
|
|
15921
|
+
_ref25 = _args14.length > 1 ? _args14[1] : undefined, rejectWithValue = _ref25.rejectWithValue;
|
|
15922
|
+
_context14.prev = 2;
|
|
15661
15923
|
queriesjson = queries$j.entity_read((_payload$search = payload === null || payload === void 0 ? void 0 : payload.search) !== null && _payload$search !== void 0 ? _payload$search : "");
|
|
15662
|
-
|
|
15924
|
+
_context14.next = 6;
|
|
15663
15925
|
return fetchData({
|
|
15664
15926
|
body: JSON.stringify(queriesjson)
|
|
15665
15927
|
}, __baseUrl__$1
|
|
15666
15928
|
// __readDocumentUrl__
|
|
15667
15929
|
);
|
|
15668
15930
|
case 6:
|
|
15669
|
-
data =
|
|
15931
|
+
data = _context14.sent;
|
|
15670
15932
|
console.log(data, "datasst");
|
|
15671
|
-
return
|
|
15933
|
+
return _context14.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
15672
15934
|
data: data
|
|
15673
15935
|
}));
|
|
15674
15936
|
case 11:
|
|
15675
|
-
|
|
15676
|
-
|
|
15677
|
-
return
|
|
15678
|
-
message:
|
|
15937
|
+
_context14.prev = 11;
|
|
15938
|
+
_context14.t0 = _context14["catch"](2);
|
|
15939
|
+
return _context14.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
15940
|
+
message: _context14.t0.message
|
|
15679
15941
|
})));
|
|
15680
15942
|
case 14:
|
|
15681
15943
|
case "end":
|
|
15682
|
-
return
|
|
15944
|
+
return _context14.stop();
|
|
15683
15945
|
}
|
|
15684
15946
|
}
|
|
15685
|
-
},
|
|
15947
|
+
}, _callee14, null, [[2, 11]]);
|
|
15686
15948
|
})));
|
|
15687
|
-
|
|
15949
|
+
// const HOLIDAY_STATUS_REASON = createAsyncThunk(
|
|
15950
|
+
// `holidaySlice/holidy_status_reason`,
|
|
15951
|
+
// async (payload = {}, { rejectWithValue }) => {
|
|
15952
|
+
// // try {
|
|
15953
|
+
// // debugger;
|
|
15954
|
+
// // let readqueries = queries.holiday_status_reason(payload);
|
|
15955
|
+
// // const data = await fetchData(
|
|
15956
|
+
// // { body: JSON.stringify(readqueries) },
|
|
15957
|
+
// // _readDocumentUrl_
|
|
15958
|
+
// // );
|
|
15959
|
+
// // console.log(readqueries, "skdfksdjirrtr");
|
|
15960
|
+
// // debugger;
|
|
15961
|
+
// // return {
|
|
15962
|
+
// // ...defaultState.List,
|
|
15963
|
+
// // data: data,
|
|
15964
|
+
// // };
|
|
15965
|
+
// // } catch (error) {
|
|
15966
|
+
// // console.log(error, "error");
|
|
15967
|
+
// // return rejectWithValue({
|
|
15968
|
+
// // ...defaultReject.List,
|
|
15969
|
+
// // message: error.message,
|
|
15970
|
+
// // });
|
|
15971
|
+
// // }
|
|
15972
|
+
// try {
|
|
15973
|
+
// let queriesjson = queries.holiday_status_reason(payload);
|
|
15974
|
+
// const data = await fetchData(
|
|
15975
|
+
// { body: JSON.stringify(queriesjson) },
|
|
15976
|
+
// // __baseUrl__
|
|
15977
|
+
// __readDocumentUrl__
|
|
15978
|
+
// );
|
|
15979
|
+
// console.log(data, "datass12t");
|
|
15980
|
+
// return {
|
|
15981
|
+
// ...defaultState.List,
|
|
15982
|
+
// data: data,
|
|
15983
|
+
// };
|
|
15984
|
+
// } catch (error) {
|
|
15985
|
+
// return rejectWithValue({
|
|
15986
|
+
// ...defaultReject,
|
|
15987
|
+
// message: error.message,
|
|
15988
|
+
// });
|
|
15989
|
+
// }
|
|
15990
|
+
// }
|
|
15991
|
+
// );
|
|
15992
|
+
|
|
15993
|
+
var HOLIDAY_STATUS_REASON_QDM = createAsyncThunk("holidaySlice/holidayStatusReasonqdm", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15() {
|
|
15688
15994
|
var payload,
|
|
15689
|
-
|
|
15995
|
+
_ref27,
|
|
15690
15996
|
rejectWithValue,
|
|
15691
|
-
|
|
15997
|
+
_data$2,
|
|
15998
|
+
_data$2$HOLIDAYREASON,
|
|
15999
|
+
_data$2$HOLIDAYREASON2,
|
|
16000
|
+
body,
|
|
15692
16001
|
data,
|
|
15693
|
-
|
|
15694
|
-
|
|
16002
|
+
arry,
|
|
16003
|
+
_args15 = arguments;
|
|
16004
|
+
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
|
15695
16005
|
while (1) {
|
|
15696
|
-
switch (
|
|
16006
|
+
switch (_context15.prev = _context15.next) {
|
|
15697
16007
|
case 0:
|
|
15698
|
-
payload =
|
|
15699
|
-
|
|
15700
|
-
|
|
15701
|
-
|
|
15702
|
-
|
|
16008
|
+
payload = _args15.length > 0 && _args15[0] !== undefined ? _args15[0] : {};
|
|
16009
|
+
_ref27 = _args15.length > 1 ? _args15[1] : undefined, rejectWithValue = _ref27.rejectWithValue;
|
|
16010
|
+
_context15.prev = 2;
|
|
16011
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
16012
|
+
body = {
|
|
16013
|
+
"db_name": "primarycareng",
|
|
16014
|
+
"filter": {
|
|
16015
|
+
"type": [payload],
|
|
16016
|
+
"tenantid": "",
|
|
16017
|
+
"facilityid": "",
|
|
16018
|
+
"lang": ""
|
|
16019
|
+
},
|
|
16020
|
+
"queryid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
16021
|
+
};
|
|
16022
|
+
_context15.next = 6;
|
|
15703
16023
|
return fetchData({
|
|
15704
|
-
body: JSON.stringify(
|
|
15705
|
-
},
|
|
15706
|
-
// __baseUrl__
|
|
15707
|
-
__readDocumentUrl__);
|
|
16024
|
+
body: JSON.stringify(body)
|
|
16025
|
+
}, __baseUrl__$1);
|
|
15708
16026
|
case 6:
|
|
15709
|
-
data =
|
|
15710
|
-
|
|
15711
|
-
|
|
15712
|
-
|
|
16027
|
+
data = _context15.sent;
|
|
16028
|
+
arry = [];
|
|
16029
|
+
(_data$2 = data[0]) === null || _data$2 === void 0 ? void 0 : (_data$2$HOLIDAYREASON = _data$2.HOLIDAYREASON) === null || _data$2$HOLIDAYREASON === void 0 ? void 0 : (_data$2$HOLIDAYREASON2 = _data$2$HOLIDAYREASON.Value) === null || _data$2$HOLIDAYREASON2 === void 0 ? void 0 : _data$2$HOLIDAYREASON2.map(function (item) {
|
|
16030
|
+
return arry.push({
|
|
16031
|
+
_id: item._id,
|
|
16032
|
+
Value: item._id,
|
|
16033
|
+
label: item.display
|
|
16034
|
+
});
|
|
16035
|
+
});
|
|
16036
|
+
return _context15.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
16037
|
+
data: arry
|
|
15713
16038
|
}));
|
|
15714
|
-
case
|
|
15715
|
-
|
|
15716
|
-
|
|
15717
|
-
return
|
|
15718
|
-
message:
|
|
16039
|
+
case 12:
|
|
16040
|
+
_context15.prev = 12;
|
|
16041
|
+
_context15.t0 = _context15["catch"](2);
|
|
16042
|
+
return _context15.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
16043
|
+
message: _context15.t0.message
|
|
15719
16044
|
})));
|
|
15720
|
-
case
|
|
16045
|
+
case 15:
|
|
15721
16046
|
case "end":
|
|
15722
|
-
return
|
|
16047
|
+
return _context15.stop();
|
|
15723
16048
|
}
|
|
15724
16049
|
}
|
|
15725
|
-
},
|
|
16050
|
+
}, _callee15, null, [[2, 12]]);
|
|
15726
16051
|
})));
|
|
15727
16052
|
var holidaySlice = createSlice({
|
|
15728
16053
|
name: "holidaySlice",
|
|
15729
16054
|
initialState: {
|
|
16055
|
+
holidaySinglereadqdm: _objectSpread2$1({}, defaultState.List),
|
|
16056
|
+
holidaySinglereadSelectedqdm: _objectSpread2$1({}, defaultState.List),
|
|
16057
|
+
entity_read_qdm: _objectSpread2$1({}, defaultState.List),
|
|
16058
|
+
holidayStatusReasonqdm: _objectSpread2$1({}, defaultState.List),
|
|
16059
|
+
holidayTypeqdm: _objectSpread2$1({}, defaultState.List),
|
|
15730
16060
|
status_update: _objectSpread2$1({}, defaultState.List),
|
|
15731
16061
|
holidy_list: _objectSpread2$1({}, defaultState.List),
|
|
16062
|
+
holiday_qdm: _objectSpread2$1({}, defaultState.List),
|
|
15732
16063
|
holidy_single_list: _objectSpread2$1({}, defaultState.List),
|
|
15733
16064
|
holidy_single_list_selected: _objectSpread2$1({}, defaultState.List),
|
|
15734
16065
|
holiday_upsert: _objectSpread2$1({}, defaultState.List),
|
|
@@ -15742,12 +16073,24 @@ var holidaySlice = createSlice({
|
|
|
15742
16073
|
state.status_update.loading = true, state.status_update.error = false, state.status_update.loading = true;
|
|
15743
16074
|
}), _defineProperty(_extraReducers$B, HOLIDAY_STATUS_CHANGE.rejected, function (state, action) {
|
|
15744
16075
|
state.status_update.loading = false, state.status_update.error = true, state.status_update = action.payload;
|
|
15745
|
-
}), _defineProperty(_extraReducers$B,
|
|
15746
|
-
state.
|
|
15747
|
-
}), _defineProperty(_extraReducers$B,
|
|
15748
|
-
state.
|
|
15749
|
-
}), _defineProperty(_extraReducers$B,
|
|
15750
|
-
state.
|
|
16076
|
+
}), _defineProperty(_extraReducers$B, GET_HOLIDAY_TYPE.fulfilled, function (state, action) {
|
|
16077
|
+
state.holidayTypeqdm.loading = false, state.holidayTypeqdm.error = false, state.holidayTypeqdm = action.payload;
|
|
16078
|
+
}), _defineProperty(_extraReducers$B, GET_HOLIDAY_TYPE.pending, function (state, action) {
|
|
16079
|
+
state.holidayTypeqdm.loading = true, state.holidayTypeqdm.error = false, state.holidayTypeqdm.loading = true;
|
|
16080
|
+
}), _defineProperty(_extraReducers$B, GET_HOLIDAY_TYPE.rejected, function (state, action) {
|
|
16081
|
+
state.holidayTypeqdm.loading = false, state.holidayTypeqdm.error = true, state.holidayTypeqdm = action.payload;
|
|
16082
|
+
}), _defineProperty(_extraReducers$B, HOLIDAY_STATUS_REASON_QDM.fulfilled, function (state, action) {
|
|
16083
|
+
state.holidayStatusReasonqdm.loading = false, state.holidayStatusReasonqdm.error = false, state.holidayStatusReasonqdm = action.payload;
|
|
16084
|
+
}), _defineProperty(_extraReducers$B, HOLIDAY_STATUS_REASON_QDM.pending, function (state, action) {
|
|
16085
|
+
state.holidayStatusReasonqdm.loading = true, state.holidayStatusReasonqdm.error = false, state.holidayStatusReasonqdm.loading = true;
|
|
16086
|
+
}), _defineProperty(_extraReducers$B, HOLIDAY_STATUS_REASON_QDM.rejected, function (state, action) {
|
|
16087
|
+
state.holidayStatusReasonqdm.loading = false, state.holidayStatusReasonqdm.error = true, state.holidayStatusReasonqdm = action.payload;
|
|
16088
|
+
}), _defineProperty(_extraReducers$B, HOLIDAY_READ_QDM.fulfilled, function (state, action) {
|
|
16089
|
+
state.holiday_qdm.loading = false, state.holiday_qdm.error = false, state.holiday_qdm = action.payload;
|
|
16090
|
+
}), _defineProperty(_extraReducers$B, HOLIDAY_READ_QDM.pending, function (state, action) {
|
|
16091
|
+
state.holiday_qdm.loading = true, state.holiday_qdm.error = false, state.holiday_qdm.loading = true;
|
|
16092
|
+
}), _defineProperty(_extraReducers$B, HOLIDAY_READ_QDM.rejected, function (state, action) {
|
|
16093
|
+
state.holiday_qdm.loading = false, state.holiday_qdm.error = true, state.holiday_qdm = action.payload;
|
|
15751
16094
|
}), _defineProperty(_extraReducers$B, HOLIDAY_SINGLE_READ.fulfilled, function (state, action) {
|
|
15752
16095
|
state.holidy_single_list.loading = false, state.holidy_single_list.error = false, state.holidy_single_list = action.payload;
|
|
15753
16096
|
}), _defineProperty(_extraReducers$B, HOLIDAY_SINGLE_READ.pending, function (state, action) {
|
|
@@ -15778,23 +16121,45 @@ var holidaySlice = createSlice({
|
|
|
15778
16121
|
state.entity_master.loading = true, state.entity_master.error = false, state.entity_master.loading = true;
|
|
15779
16122
|
}), _defineProperty(_extraReducers$B, ENTITY_MASTERS.rejected, function (state, action) {
|
|
15780
16123
|
state.entity_master.loading = false, state.entity_master.error = true, state.entity_master = action.payload;
|
|
15781
|
-
}), _defineProperty(_extraReducers$B,
|
|
15782
|
-
state.
|
|
15783
|
-
}), _defineProperty(_extraReducers$B,
|
|
15784
|
-
state.
|
|
15785
|
-
}), _defineProperty(_extraReducers$B,
|
|
15786
|
-
state.
|
|
16124
|
+
}), _defineProperty(_extraReducers$B, HOLIDAY_SINGLE_READ_QDM.fulfilled, function (state, action) {
|
|
16125
|
+
state.holidaySinglereadqdm.loading = false, state.holidaySinglereadqdm.error = false, state.holidaySinglereadqdm = action.payload;
|
|
16126
|
+
}), _defineProperty(_extraReducers$B, HOLIDAY_SINGLE_READ_QDM.pending, function (state, action) {
|
|
16127
|
+
state.holidaySinglereadqdm.loading = true, state.holidaySinglereadqdm.error = false, state.holidaySinglereadqdm.loading = true;
|
|
16128
|
+
}), _defineProperty(_extraReducers$B, HOLIDAY_SINGLE_READ_QDM.rejected, function (state, action) {
|
|
16129
|
+
state.holidaySinglereadqdm.loading = false, state.holidaySinglereadqdm.error = true, state.holidaySinglereadqdm = action.payload;
|
|
16130
|
+
}), _defineProperty(_extraReducers$B, HOLIDAY_SINGLE_READ_SELECTED.fulfilled, function (state, action) {
|
|
16131
|
+
state.holidy_single_list_selected.loading = false, state.holidy_single_list_selected.error = false, state.holidy_single_list_selected = action.payload;
|
|
16132
|
+
}), _defineProperty(_extraReducers$B, HOLIDAY_SINGLE_READ_SELECTED.pending, function (state, action) {
|
|
16133
|
+
state.holidy_single_list_selected.loading = true, state.holidy_single_list_selected.error = false, state.holidy_single_list_selected.loading = true;
|
|
16134
|
+
}), _defineProperty(_extraReducers$B, HOLIDAY_SINGLE_READ_SELECTED.rejected, function (state, action) {
|
|
16135
|
+
state.holidy_single_list_selected.loading = false, state.holidy_single_list_selected.error = true, state.holidy_single_list_selected = action.payload;
|
|
16136
|
+
}), _defineProperty(_extraReducers$B, HOLIDAY_SINGLE_READ_SELECTED_QDM.fulfilled, function (state, action) {
|
|
16137
|
+
state.holidaySinglereadSelectedqdm.loading = false, state.holidaySinglereadSelectedqdm.error = false, state.holidaySinglereadSelectedqdm = action.payload;
|
|
16138
|
+
}), _defineProperty(_extraReducers$B, HOLIDAY_SINGLE_READ_SELECTED_QDM.pending, function (state, action) {
|
|
16139
|
+
state.holidaySinglereadSelectedqdm.loading = true, state.holidaySinglereadSelectedqdm.error = false, state.holidaySinglereadSelectedqdm.loading = true;
|
|
16140
|
+
}), _defineProperty(_extraReducers$B, HOLIDAY_SINGLE_READ_SELECTED_QDM.rejected, function (state, action) {
|
|
16141
|
+
state.holidaySinglereadSelectedqdm.loading = false, state.holidaySinglereadSelectedqdm.error = true, state.holidaySinglereadSelectedqdm = action.payload;
|
|
16142
|
+
}), _defineProperty(_extraReducers$B, HOLIDAY_ENTITY_MASTERS_QDM.fulfilled, function (state, action) {
|
|
16143
|
+
state.entity_read_qdm.loading = false, state.entity_read_qdm.error = false, state.entity_read_qdm = action.payload;
|
|
16144
|
+
}), _defineProperty(_extraReducers$B, HOLIDAY_ENTITY_MASTERS_QDM.pending, function (state, action) {
|
|
16145
|
+
state.entity_read_qdm.loading = true, state.entity_read_qdm.error = false, state.entity_read_qdm.loading = true;
|
|
16146
|
+
}), _defineProperty(_extraReducers$B, HOLIDAY_ENTITY_MASTERS_QDM.rejected, function (state, action) {
|
|
16147
|
+
state.entity_read_qdm.loading = false, state.entity_read_qdm.error = true, state.entity_read_qdm = action.payload;
|
|
15787
16148
|
}), _extraReducers$B)
|
|
15788
16149
|
});
|
|
15789
16150
|
var holidayActions = {
|
|
15790
16151
|
HOLIDAY_STATUS_CHANGE: HOLIDAY_STATUS_CHANGE,
|
|
15791
|
-
|
|
16152
|
+
HOLIDAY_READ_QDM: HOLIDAY_READ_QDM,
|
|
15792
16153
|
HOLIDAY_UPSERT: HOLIDAY_UPSERT,
|
|
15793
16154
|
HOLIDAY_MASTERS: HOLIDAY_MASTERS,
|
|
15794
16155
|
ENTITY_MASTERS: ENTITY_MASTERS,
|
|
15795
16156
|
HOLIDAY_SINGLE_READ: HOLIDAY_SINGLE_READ,
|
|
15796
16157
|
HOLIDAY_SINGLE_READ_SELECTED: HOLIDAY_SINGLE_READ_SELECTED,
|
|
15797
|
-
|
|
16158
|
+
GET_HOLIDAY_TYPE: GET_HOLIDAY_TYPE,
|
|
16159
|
+
HOLIDAY_SINGLE_READ_QDM: HOLIDAY_SINGLE_READ_QDM,
|
|
16160
|
+
HOLIDAY_SINGLE_READ_SELECTED_QDM: HOLIDAY_SINGLE_READ_SELECTED_QDM,
|
|
16161
|
+
HOLIDAY_STATUS_REASON_QDM: HOLIDAY_STATUS_REASON_QDM,
|
|
16162
|
+
HOLIDAY_ENTITY_MASTERS_QDM: HOLIDAY_ENTITY_MASTERS_QDM
|
|
15798
16163
|
};
|
|
15799
16164
|
var holidaySlice$1 = holidaySlice.reducer;
|
|
15800
16165
|
|
|
@@ -16009,7 +16374,6 @@ var queries$i = {
|
|
|
16009
16374
|
};
|
|
16010
16375
|
},
|
|
16011
16376
|
res_appointment_list: function res_appointment_list(key) {
|
|
16012
|
-
console.log(key, "skdjiertt");
|
|
16013
16377
|
// return {
|
|
16014
16378
|
// db_name: "primarycareng",
|
|
16015
16379
|
// entity: "ResourcebyApptType",
|
|
@@ -16045,7 +16409,8 @@ var queries$i = {
|
|
|
16045
16409
|
entity: "ResourcebyApptType",
|
|
16046
16410
|
is_metadata: true,
|
|
16047
16411
|
metadataId: "88b23ef1-7199-4503-b631-2de82ace6e03",
|
|
16048
|
-
doc: key
|
|
16412
|
+
doc: key,
|
|
16413
|
+
metadata_dbname: process.env.REACT_APP_METADATA_DB_NAME
|
|
16049
16414
|
}];
|
|
16050
16415
|
},
|
|
16051
16416
|
res_appointment_single_read: function res_appointment_single_read(key) {
|
|
@@ -16067,7 +16432,6 @@ var queries$i = {
|
|
|
16067
16432
|
// },
|
|
16068
16433
|
res_update_appointment: function res_update_appointment(key, val) {
|
|
16069
16434
|
var _key$data, _key$data$;
|
|
16070
|
-
console.log(key, "kkdkkdffds");
|
|
16071
16435
|
return [{
|
|
16072
16436
|
db_name: "primarycareng",
|
|
16073
16437
|
entity: "ResourcebyApptType",
|
|
@@ -16076,6 +16440,7 @@ var queries$i = {
|
|
|
16076
16440
|
_key: key === null || key === void 0 ? void 0 : (_key$data = key.data) === null || _key$data === void 0 ? void 0 : (_key$data$ = _key$data[0]) === null || _key$data$ === void 0 ? void 0 : _key$data$._key
|
|
16077
16441
|
},
|
|
16078
16442
|
metadataId: "88b23ef1-7199-4503-b631-2de82ace6e03",
|
|
16443
|
+
metadata_dbname: process.env.REACT_APP_METADATA_DB_NAME,
|
|
16079
16444
|
doc: key === null || key === void 0 ? void 0 : key["final"]
|
|
16080
16445
|
// doc: {
|
|
16081
16446
|
// id: "number",
|
|
@@ -16642,12 +17007,15 @@ var RES_SPECIALINSTRUCTION = createAsyncThunk("resourceByAppointmentTypesSlice/r
|
|
|
16642
17007
|
}
|
|
16643
17008
|
}, _callee8, null, [[2, 12]]);
|
|
16644
17009
|
})));
|
|
16645
|
-
var
|
|
17010
|
+
var RES_CRITERIA_INSTRUCTION_QDM = createAsyncThunk("resourceByAppointmentTypesSlice/res_criteria_instruction_qdm", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
|
|
16646
17011
|
var _ref18,
|
|
16647
17012
|
rejectWithValue,
|
|
16648
|
-
|
|
17013
|
+
_data$,
|
|
17014
|
+
_data$$HEALTHISSUES,
|
|
17015
|
+
_data$$HEALTHISSUES$V,
|
|
17016
|
+
body,
|
|
16649
17017
|
data,
|
|
16650
|
-
|
|
17018
|
+
arry,
|
|
16651
17019
|
_args9 = arguments;
|
|
16652
17020
|
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
16653
17021
|
while (1) {
|
|
@@ -16655,28 +17023,33 @@ var RES_CRITERIA_INSTRUVTION = createAsyncThunk("resourceByAppointmentTypesSlice
|
|
|
16655
17023
|
case 0:
|
|
16656
17024
|
_ref18 = _args9.length > 1 ? _args9[1] : undefined, rejectWithValue = _ref18.rejectWithValue;
|
|
16657
17025
|
_context9.prev = 2;
|
|
16658
|
-
|
|
17026
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
17027
|
+
body = {
|
|
17028
|
+
db_name: "primarycareng",
|
|
17029
|
+
filter: {
|
|
17030
|
+
type: ["HEALTHISSUES"],
|
|
17031
|
+
tenantid: "",
|
|
17032
|
+
facilityid: "",
|
|
17033
|
+
lang: ""
|
|
17034
|
+
},
|
|
17035
|
+
queryid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
17036
|
+
};
|
|
16659
17037
|
_context9.next = 6;
|
|
16660
17038
|
return fetchData({
|
|
16661
|
-
body: JSON.stringify(
|
|
16662
|
-
},
|
|
17039
|
+
body: JSON.stringify(body)
|
|
17040
|
+
}, __baseUrl__$1);
|
|
16663
17041
|
case 6:
|
|
16664
17042
|
data = _context9.sent;
|
|
16665
|
-
|
|
16666
|
-
data.
|
|
16667
|
-
|
|
16668
|
-
|
|
16669
|
-
|
|
16670
|
-
|
|
16671
|
-
|
|
16672
|
-
label: val === null || val === void 0 ? void 0 : (_val$coding$15 = val.coding[0]) === null || _val$coding$15 === void 0 ? void 0 : _val$coding$15.display,
|
|
16673
|
-
title: val === null || val === void 0 ? void 0 : (_val$coding$16 = val.coding[0]) === null || _val$coding$16 === void 0 ? void 0 : _val$coding$16.display,
|
|
16674
|
-
value: val === null || val === void 0 ? void 0 : val.coding[0]._id
|
|
16675
|
-
});
|
|
16676
|
-
}
|
|
17043
|
+
arry = [];
|
|
17044
|
+
(_data$ = data[0]) === null || _data$ === void 0 ? void 0 : (_data$$HEALTHISSUES = _data$.HEALTHISSUES) === null || _data$$HEALTHISSUES === void 0 ? void 0 : (_data$$HEALTHISSUES$V = _data$$HEALTHISSUES.Value) === null || _data$$HEALTHISSUES$V === void 0 ? void 0 : _data$$HEALTHISSUES$V.map(function (item) {
|
|
17045
|
+
return arry.push({
|
|
17046
|
+
_id: item._id,
|
|
17047
|
+
Value: item._id,
|
|
17048
|
+
label: item.display
|
|
17049
|
+
});
|
|
16677
17050
|
});
|
|
16678
17051
|
return _context9.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
16679
|
-
data:
|
|
17052
|
+
data: arry
|
|
16680
17053
|
}));
|
|
16681
17054
|
case 12:
|
|
16682
17055
|
_context9.prev = 12;
|
|
@@ -16691,31 +17064,38 @@ var RES_CRITERIA_INSTRUVTION = createAsyncThunk("resourceByAppointmentTypesSlice
|
|
|
16691
17064
|
}
|
|
16692
17065
|
}, _callee9, null, [[2, 12]]);
|
|
16693
17066
|
})));
|
|
16694
|
-
var
|
|
16695
|
-
var
|
|
16696
|
-
_ref20,
|
|
17067
|
+
var RES_CRITERIA_INSTRUVTION = createAsyncThunk("resourceByAppointmentTypesSlice/res_criteria_instruction", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {
|
|
17068
|
+
var _ref20,
|
|
16697
17069
|
rejectWithValue,
|
|
16698
|
-
id,
|
|
16699
|
-
checked,
|
|
16700
17070
|
queriesjson,
|
|
17071
|
+
data,
|
|
16701
17072
|
result,
|
|
16702
17073
|
_args10 = arguments;
|
|
16703
17074
|
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
16704
17075
|
while (1) {
|
|
16705
17076
|
switch (_context10.prev = _context10.next) {
|
|
16706
17077
|
case 0:
|
|
16707
|
-
payload = _args10.length > 0 && _args10[0] !== undefined ? _args10[0] : {};
|
|
16708
17078
|
_ref20 = _args10.length > 1 ? _args10[1] : undefined, rejectWithValue = _ref20.rejectWithValue;
|
|
16709
17079
|
_context10.prev = 2;
|
|
16710
|
-
|
|
16711
|
-
|
|
16712
|
-
_context10.next = 7;
|
|
17080
|
+
queriesjson = queries$i.res_criteria_instruction();
|
|
17081
|
+
_context10.next = 6;
|
|
16713
17082
|
return fetchData({
|
|
16714
17083
|
body: JSON.stringify(queriesjson)
|
|
16715
|
-
},
|
|
16716
|
-
case
|
|
16717
|
-
_context10.sent;
|
|
17084
|
+
}, __readDocumentUrl__);
|
|
17085
|
+
case 6:
|
|
17086
|
+
data = _context10.sent;
|
|
16718
17087
|
result = [];
|
|
17088
|
+
data.result.map(function (val, i) {
|
|
17089
|
+
var _val$coding$13, _val$coding$14;
|
|
17090
|
+
if (val !== null && val !== void 0 && (_val$coding$13 = val.coding[0]) !== null && _val$coding$13 !== void 0 && _val$coding$13.display && val !== null && val !== void 0 && (_val$coding$14 = val.coding[0]) !== null && _val$coding$14 !== void 0 && _val$coding$14._id) {
|
|
17091
|
+
var _val$coding$15, _val$coding$16;
|
|
17092
|
+
result.push({
|
|
17093
|
+
label: val === null || val === void 0 ? void 0 : (_val$coding$15 = val.coding[0]) === null || _val$coding$15 === void 0 ? void 0 : _val$coding$15.display,
|
|
17094
|
+
title: val === null || val === void 0 ? void 0 : (_val$coding$16 = val.coding[0]) === null || _val$coding$16 === void 0 ? void 0 : _val$coding$16.display,
|
|
17095
|
+
value: val === null || val === void 0 ? void 0 : val.coding[0]._id
|
|
17096
|
+
});
|
|
17097
|
+
}
|
|
17098
|
+
});
|
|
16719
17099
|
return _context10.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
16720
17100
|
data: result
|
|
16721
17101
|
}));
|
|
@@ -16732,12 +17112,12 @@ var UPDATE_STATUS_RES_LINE_LIST = createAsyncThunk("resourceByAppointmentTypesSl
|
|
|
16732
17112
|
}
|
|
16733
17113
|
}, _callee10, null, [[2, 12]]);
|
|
16734
17114
|
})));
|
|
16735
|
-
var
|
|
17115
|
+
var UPDATE_STATUS_RES_LINE_LIST = createAsyncThunk("resourceByAppointmentTypesSlice/res_status_update", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11() {
|
|
16736
17116
|
var payload,
|
|
16737
17117
|
_ref22,
|
|
16738
17118
|
rejectWithValue,
|
|
16739
|
-
|
|
16740
|
-
|
|
17119
|
+
id,
|
|
17120
|
+
checked,
|
|
16741
17121
|
queriesjson,
|
|
16742
17122
|
result,
|
|
16743
17123
|
_args11 = arguments;
|
|
@@ -16748,8 +17128,8 @@ var RES_UPSERT_INSER_NEW = createAsyncThunk("resourceByAppointmentTypesSlice/res
|
|
|
16748
17128
|
payload = _args11.length > 0 && _args11[0] !== undefined ? _args11[0] : {};
|
|
16749
17129
|
_ref22 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref22.rejectWithValue;
|
|
16750
17130
|
_context11.prev = 2;
|
|
16751
|
-
|
|
16752
|
-
queriesjson =
|
|
17131
|
+
id = payload.id, checked = payload.checked;
|
|
17132
|
+
queriesjson = queries$i.res_status_update(id, checked);
|
|
16753
17133
|
_context11.next = 7;
|
|
16754
17134
|
return fetchData({
|
|
16755
17135
|
body: JSON.stringify(queriesjson)
|
|
@@ -16773,14 +17153,14 @@ var RES_UPSERT_INSER_NEW = createAsyncThunk("resourceByAppointmentTypesSlice/res
|
|
|
16773
17153
|
}
|
|
16774
17154
|
}, _callee11, null, [[2, 12]]);
|
|
16775
17155
|
})));
|
|
16776
|
-
var
|
|
17156
|
+
var RES_UPSERT_INSER_NEW = createAsyncThunk("resourceByAppointmentTypesSlice/res_upsert_new", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12() {
|
|
16777
17157
|
var payload,
|
|
16778
17158
|
_ref24,
|
|
16779
17159
|
rejectWithValue,
|
|
17160
|
+
state,
|
|
16780
17161
|
key,
|
|
16781
17162
|
queriesjson,
|
|
16782
|
-
|
|
16783
|
-
read_json,
|
|
17163
|
+
result,
|
|
16784
17164
|
_args12 = arguments;
|
|
16785
17165
|
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
16786
17166
|
while (1) {
|
|
@@ -16789,17 +17169,17 @@ var RES_LINE_LIST_READ_DOC = createAsyncThunk("resourceByAppointmentTypesSlice/r
|
|
|
16789
17169
|
payload = _args12.length > 0 && _args12[0] !== undefined ? _args12[0] : {};
|
|
16790
17170
|
_ref24 = _args12.length > 1 ? _args12[1] : undefined, rejectWithValue = _ref24.rejectWithValue;
|
|
16791
17171
|
_context12.prev = 2;
|
|
16792
|
-
key = payload.key;
|
|
16793
|
-
queriesjson =
|
|
17172
|
+
state = payload.state, key = payload.key;
|
|
17173
|
+
queriesjson = generateJson$a.insert_json(state, key);
|
|
16794
17174
|
_context12.next = 7;
|
|
16795
17175
|
return fetchData({
|
|
16796
17176
|
body: JSON.stringify(queriesjson)
|
|
16797
|
-
},
|
|
17177
|
+
}, __uspsertUrl__);
|
|
16798
17178
|
case 7:
|
|
16799
|
-
|
|
16800
|
-
|
|
17179
|
+
_context12.sent;
|
|
17180
|
+
result = [];
|
|
16801
17181
|
return _context12.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
16802
|
-
data:
|
|
17182
|
+
data: result
|
|
16803
17183
|
}));
|
|
16804
17184
|
case 12:
|
|
16805
17185
|
_context12.prev = 12;
|
|
@@ -16814,57 +17194,55 @@ var RES_LINE_LIST_READ_DOC = createAsyncThunk("resourceByAppointmentTypesSlice/r
|
|
|
16814
17194
|
}
|
|
16815
17195
|
}, _callee12, null, [[2, 12]]);
|
|
16816
17196
|
})));
|
|
16817
|
-
var
|
|
16818
|
-
var
|
|
17197
|
+
var RES_LINE_LIST_READ_DOC = createAsyncThunk("resourceByAppointmentTypesSlice/res_line_list_read_doc", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
|
|
17198
|
+
var payload,
|
|
17199
|
+
_ref26,
|
|
16819
17200
|
rejectWithValue,
|
|
16820
|
-
|
|
16821
|
-
|
|
17201
|
+
key,
|
|
17202
|
+
queriesjson,
|
|
17203
|
+
data,
|
|
17204
|
+
read_json,
|
|
16822
17205
|
_args13 = arguments;
|
|
16823
17206
|
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
16824
17207
|
while (1) {
|
|
16825
17208
|
switch (_context13.prev = _context13.next) {
|
|
16826
17209
|
case 0:
|
|
17210
|
+
payload = _args13.length > 0 && _args13[0] !== undefined ? _args13[0] : {};
|
|
16827
17211
|
_ref26 = _args13.length > 1 ? _args13[1] : undefined, rejectWithValue = _ref26.rejectWithValue;
|
|
16828
17212
|
_context13.prev = 2;
|
|
16829
|
-
|
|
17213
|
+
key = payload.key;
|
|
17214
|
+
queriesjson = queries$i.res_read_line_list_doc(key);
|
|
17215
|
+
_context13.next = 7;
|
|
16830
17216
|
return fetchData({
|
|
16831
|
-
body: JSON.stringify(
|
|
17217
|
+
body: JSON.stringify(queriesjson)
|
|
16832
17218
|
}, __readDocumentUrl__);
|
|
16833
|
-
case
|
|
16834
|
-
|
|
16835
|
-
|
|
16836
|
-
console.log({
|
|
16837
|
-
data_arr: data_arr
|
|
16838
|
-
});
|
|
16839
|
-
_context13.next = 10;
|
|
16840
|
-
return data_arr.result.map(function (val) {
|
|
16841
|
-
arry.push({
|
|
16842
|
-
value: val === null || val === void 0 ? void 0 : val._id,
|
|
16843
|
-
label: val === null || val === void 0 ? void 0 : val.display
|
|
16844
|
-
});
|
|
16845
|
-
});
|
|
16846
|
-
case 10:
|
|
16847
|
-
console.log(arry);
|
|
17219
|
+
case 7:
|
|
17220
|
+
data = _context13.sent;
|
|
17221
|
+
read_json = generateReadJson$3.read_json(data.result[0]);
|
|
16848
17222
|
return _context13.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
16849
|
-
data:
|
|
17223
|
+
data: read_json
|
|
16850
17224
|
}));
|
|
16851
|
-
case
|
|
16852
|
-
_context13.prev =
|
|
17225
|
+
case 12:
|
|
17226
|
+
_context13.prev = 12;
|
|
16853
17227
|
_context13.t0 = _context13["catch"](2);
|
|
16854
17228
|
return _context13.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
16855
17229
|
message: _context13.t0.message
|
|
16856
17230
|
})));
|
|
16857
|
-
case
|
|
17231
|
+
case 15:
|
|
16858
17232
|
case "end":
|
|
16859
17233
|
return _context13.stop();
|
|
16860
17234
|
}
|
|
16861
17235
|
}
|
|
16862
|
-
}, _callee13, null, [[2,
|
|
17236
|
+
}, _callee13, null, [[2, 12]]);
|
|
16863
17237
|
})));
|
|
16864
|
-
var
|
|
17238
|
+
var RES_PATIENT_CATEGORY_LIST_DOC_QDM = createAsyncThunk("resourceByAppointmentTypesSlice/res_patient_category_list_doc_qdm", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14() {
|
|
16865
17239
|
var _ref28,
|
|
16866
17240
|
rejectWithValue,
|
|
16867
|
-
|
|
17241
|
+
_data$2,
|
|
17242
|
+
_data$2$PATIENTIMPORT,
|
|
17243
|
+
_data$2$PATIENTIMPORT2,
|
|
17244
|
+
body,
|
|
17245
|
+
data,
|
|
16868
17246
|
arry,
|
|
16869
17247
|
_args14 = arguments;
|
|
16870
17248
|
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
|
@@ -16873,42 +17251,48 @@ var RES_RESOURCE_TYPE_LIST_DOC = createAsyncThunk("resourceByAppointmentTypesSli
|
|
|
16873
17251
|
case 0:
|
|
16874
17252
|
_ref28 = _args14.length > 1 ? _args14[1] : undefined, rejectWithValue = _ref28.rejectWithValue;
|
|
16875
17253
|
_context14.prev = 2;
|
|
16876
|
-
|
|
17254
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
17255
|
+
body = {
|
|
17256
|
+
db_name: "primarycareng",
|
|
17257
|
+
filter: {
|
|
17258
|
+
type: ["PATIENTIMPORTANCETYPE"],
|
|
17259
|
+
tenantid: "",
|
|
17260
|
+
facilityid: "",
|
|
17261
|
+
lang: ""
|
|
17262
|
+
},
|
|
17263
|
+
queryid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
17264
|
+
};
|
|
17265
|
+
_context14.next = 6;
|
|
16877
17266
|
return fetchData({
|
|
16878
|
-
body: JSON.stringify(
|
|
16879
|
-
},
|
|
16880
|
-
case
|
|
16881
|
-
|
|
17267
|
+
body: JSON.stringify(body)
|
|
17268
|
+
}, __baseUrl__$1);
|
|
17269
|
+
case 6:
|
|
17270
|
+
data = _context14.sent;
|
|
16882
17271
|
arry = [];
|
|
16883
|
-
|
|
16884
|
-
|
|
16885
|
-
|
|
16886
|
-
|
|
16887
|
-
|
|
16888
|
-
arry.push({
|
|
16889
|
-
value: val === null || val === void 0 ? void 0 : val._id,
|
|
16890
|
-
label: val === null || val === void 0 ? void 0 : val.display
|
|
17272
|
+
(_data$2 = data[0]) === null || _data$2 === void 0 ? void 0 : (_data$2$PATIENTIMPORT = _data$2.PATIENTIMPORTANCETYPE) === null || _data$2$PATIENTIMPORT === void 0 ? void 0 : (_data$2$PATIENTIMPORT2 = _data$2$PATIENTIMPORT.Value) === null || _data$2$PATIENTIMPORT2 === void 0 ? void 0 : _data$2$PATIENTIMPORT2.map(function (item) {
|
|
17273
|
+
return arry.push({
|
|
17274
|
+
_id: item._id,
|
|
17275
|
+
Value: item._id,
|
|
17276
|
+
label: item.display
|
|
16891
17277
|
});
|
|
16892
17278
|
});
|
|
16893
|
-
case 10:
|
|
16894
|
-
console.log(arry);
|
|
16895
17279
|
return _context14.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
16896
17280
|
data: arry
|
|
16897
17281
|
}));
|
|
16898
|
-
case
|
|
16899
|
-
_context14.prev =
|
|
17282
|
+
case 12:
|
|
17283
|
+
_context14.prev = 12;
|
|
16900
17284
|
_context14.t0 = _context14["catch"](2);
|
|
16901
17285
|
return _context14.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
16902
17286
|
message: _context14.t0.message
|
|
16903
17287
|
})));
|
|
16904
|
-
case
|
|
17288
|
+
case 15:
|
|
16905
17289
|
case "end":
|
|
16906
17290
|
return _context14.stop();
|
|
16907
17291
|
}
|
|
16908
17292
|
}
|
|
16909
|
-
}, _callee14, null, [[2,
|
|
17293
|
+
}, _callee14, null, [[2, 12]]);
|
|
16910
17294
|
})));
|
|
16911
|
-
var
|
|
17295
|
+
var RES_PATIENT_CATEGORY_LIST_DOC = createAsyncThunk("resourceByAppointmentTypesSlice/res_patient_category_list_doc", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15() {
|
|
16912
17296
|
var _ref30,
|
|
16913
17297
|
rejectWithValue,
|
|
16914
17298
|
data_arr,
|
|
@@ -16922,44 +17306,44 @@ var RES_RESOURCE_ROLE_LIST_DOC = createAsyncThunk("resourceByAppointmentTypesSli
|
|
|
16922
17306
|
_context15.prev = 2;
|
|
16923
17307
|
_context15.next = 5;
|
|
16924
17308
|
return fetchData({
|
|
16925
|
-
body: JSON.stringify(queries$i.
|
|
17309
|
+
body: JSON.stringify(queries$i.res_patient_category_list())
|
|
16926
17310
|
}, __readDocumentUrl__);
|
|
16927
17311
|
case 5:
|
|
16928
17312
|
data_arr = _context15.sent;
|
|
16929
17313
|
arry = [];
|
|
16930
|
-
|
|
16931
|
-
data_arr: data_arr
|
|
16932
|
-
});
|
|
16933
|
-
_context15.next = 10;
|
|
17314
|
+
_context15.next = 9;
|
|
16934
17315
|
return data_arr.result.map(function (val) {
|
|
16935
17316
|
arry.push({
|
|
16936
|
-
value: val === null || val === void 0 ? void 0 : val.
|
|
17317
|
+
value: val === null || val === void 0 ? void 0 : val.display,
|
|
16937
17318
|
label: val === null || val === void 0 ? void 0 : val.display,
|
|
16938
|
-
|
|
17319
|
+
_id: val === null || val === void 0 ? void 0 : val._id
|
|
16939
17320
|
});
|
|
16940
17321
|
});
|
|
16941
|
-
case
|
|
16942
|
-
console.log(arry, "cf");
|
|
17322
|
+
case 9:
|
|
16943
17323
|
return _context15.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
16944
17324
|
data: arry
|
|
16945
17325
|
}));
|
|
16946
|
-
case
|
|
16947
|
-
_context15.prev =
|
|
17326
|
+
case 12:
|
|
17327
|
+
_context15.prev = 12;
|
|
16948
17328
|
_context15.t0 = _context15["catch"](2);
|
|
16949
17329
|
return _context15.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
16950
17330
|
message: _context15.t0.message
|
|
16951
17331
|
})));
|
|
16952
|
-
case
|
|
17332
|
+
case 15:
|
|
16953
17333
|
case "end":
|
|
16954
17334
|
return _context15.stop();
|
|
16955
17335
|
}
|
|
16956
17336
|
}
|
|
16957
|
-
}, _callee15, null, [[2,
|
|
17337
|
+
}, _callee15, null, [[2, 12]]);
|
|
16958
17338
|
})));
|
|
16959
|
-
var
|
|
17339
|
+
var RES_RESOURCE_TYPE_LIST_DOC_QDM = createAsyncThunk("resourceByAppointmentTypesSlice/res_resource_type_list_doc_qdm", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16() {
|
|
16960
17340
|
var _ref32,
|
|
16961
17341
|
rejectWithValue,
|
|
16962
|
-
|
|
17342
|
+
_data$3,
|
|
17343
|
+
_data$3$RESOURCETYPE,
|
|
17344
|
+
_data$3$RESOURCETYPE$,
|
|
17345
|
+
body,
|
|
17346
|
+
data,
|
|
16963
17347
|
arry,
|
|
16964
17348
|
_args16 = arguments;
|
|
16965
17349
|
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
|
@@ -16968,44 +17352,48 @@ var RES_RESOURCE_DEPARTMENT_LIST_DOC = createAsyncThunk("resourceByAppointmentTy
|
|
|
16968
17352
|
case 0:
|
|
16969
17353
|
_ref32 = _args16.length > 1 ? _args16[1] : undefined, rejectWithValue = _ref32.rejectWithValue;
|
|
16970
17354
|
_context16.prev = 2;
|
|
16971
|
-
|
|
17355
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
17356
|
+
body = {
|
|
17357
|
+
db_name: "primarycareng",
|
|
17358
|
+
filter: {
|
|
17359
|
+
type: ["RESOURCETYPE"],
|
|
17360
|
+
tenantid: "",
|
|
17361
|
+
facilityid: "",
|
|
17362
|
+
lang: ""
|
|
17363
|
+
},
|
|
17364
|
+
queryid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
17365
|
+
};
|
|
17366
|
+
_context16.next = 6;
|
|
16972
17367
|
return fetchData({
|
|
16973
|
-
body: JSON.stringify(
|
|
16974
|
-
},
|
|
16975
|
-
case
|
|
16976
|
-
|
|
17368
|
+
body: JSON.stringify(body)
|
|
17369
|
+
}, __baseUrl__$1);
|
|
17370
|
+
case 6:
|
|
17371
|
+
data = _context16.sent;
|
|
16977
17372
|
arry = [];
|
|
16978
|
-
|
|
16979
|
-
|
|
16980
|
-
|
|
16981
|
-
|
|
16982
|
-
|
|
16983
|
-
console.log(val, "Type");
|
|
16984
|
-
arry.push({
|
|
16985
|
-
value: val === null || val === void 0 ? void 0 : val._id,
|
|
16986
|
-
title: val === null || val === void 0 ? void 0 : val.Type,
|
|
16987
|
-
label: val === null || val === void 0 ? void 0 : val.display
|
|
17373
|
+
(_data$3 = data[0]) === null || _data$3 === void 0 ? void 0 : (_data$3$RESOURCETYPE = _data$3.RESOURCETYPE) === null || _data$3$RESOURCETYPE === void 0 ? void 0 : (_data$3$RESOURCETYPE$ = _data$3$RESOURCETYPE.Value) === null || _data$3$RESOURCETYPE$ === void 0 ? void 0 : _data$3$RESOURCETYPE$.map(function (item) {
|
|
17374
|
+
return arry.push({
|
|
17375
|
+
_id: item._id,
|
|
17376
|
+
Value: item._id,
|
|
17377
|
+
label: item.display
|
|
16988
17378
|
});
|
|
16989
17379
|
});
|
|
16990
|
-
case 10:
|
|
16991
|
-
console.log(arry);
|
|
16992
17380
|
return _context16.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
16993
17381
|
data: arry
|
|
16994
17382
|
}));
|
|
16995
|
-
case
|
|
16996
|
-
_context16.prev =
|
|
17383
|
+
case 12:
|
|
17384
|
+
_context16.prev = 12;
|
|
16997
17385
|
_context16.t0 = _context16["catch"](2);
|
|
16998
17386
|
return _context16.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
16999
17387
|
message: _context16.t0.message
|
|
17000
17388
|
})));
|
|
17001
|
-
case
|
|
17389
|
+
case 15:
|
|
17002
17390
|
case "end":
|
|
17003
17391
|
return _context16.stop();
|
|
17004
17392
|
}
|
|
17005
17393
|
}
|
|
17006
|
-
}, _callee16, null, [[2,
|
|
17394
|
+
}, _callee16, null, [[2, 12]]);
|
|
17007
17395
|
})));
|
|
17008
|
-
var
|
|
17396
|
+
var RES_RESOURCE_TYPE_LIST_DOC = createAsyncThunk("resourceByAppointmentTypesSlice/res_resource_type_list_doc", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17() {
|
|
17009
17397
|
var _ref34,
|
|
17010
17398
|
rejectWithValue,
|
|
17011
17399
|
data_arr,
|
|
@@ -17019,95 +17407,95 @@ var RES_RESOURCE_NAME_LIST_DOC = createAsyncThunk("resourceByAppointmentTypesSli
|
|
|
17019
17407
|
_context17.prev = 2;
|
|
17020
17408
|
_context17.next = 5;
|
|
17021
17409
|
return fetchData({
|
|
17022
|
-
body: JSON.stringify(queries$i.
|
|
17410
|
+
body: JSON.stringify(queries$i.res_resource_type_list_appointments())
|
|
17023
17411
|
}, __readDocumentUrl__);
|
|
17024
17412
|
case 5:
|
|
17025
17413
|
data_arr = _context17.sent;
|
|
17026
17414
|
arry = [];
|
|
17027
|
-
|
|
17028
|
-
data_arr: data_arr
|
|
17029
|
-
});
|
|
17030
|
-
_context17.next = 10;
|
|
17415
|
+
_context17.next = 9;
|
|
17031
17416
|
return data_arr.result.map(function (val) {
|
|
17032
17417
|
arry.push({
|
|
17033
17418
|
value: val === null || val === void 0 ? void 0 : val._id,
|
|
17034
17419
|
label: val === null || val === void 0 ? void 0 : val.display
|
|
17035
17420
|
});
|
|
17036
17421
|
});
|
|
17037
|
-
case
|
|
17038
|
-
console.log(arry);
|
|
17422
|
+
case 9:
|
|
17039
17423
|
return _context17.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17040
17424
|
data: arry
|
|
17041
17425
|
}));
|
|
17042
|
-
case
|
|
17043
|
-
_context17.prev =
|
|
17426
|
+
case 12:
|
|
17427
|
+
_context17.prev = 12;
|
|
17044
17428
|
_context17.t0 = _context17["catch"](2);
|
|
17045
17429
|
return _context17.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
17046
17430
|
message: _context17.t0.message
|
|
17047
17431
|
})));
|
|
17048
|
-
case
|
|
17432
|
+
case 15:
|
|
17049
17433
|
case "end":
|
|
17050
17434
|
return _context17.stop();
|
|
17051
17435
|
}
|
|
17052
17436
|
}
|
|
17053
|
-
}, _callee17, null, [[2,
|
|
17437
|
+
}, _callee17, null, [[2, 12]]);
|
|
17054
17438
|
})));
|
|
17055
|
-
var
|
|
17056
|
-
var
|
|
17439
|
+
var RES_RESOURCE_ROLE_LIST_DOC_QDM = createAsyncThunk("resourceByAppointmentTypesSlice/res_resource_role_list_doc_qdm", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18() {
|
|
17440
|
+
var payload,
|
|
17441
|
+
_ref36,
|
|
17057
17442
|
rejectWithValue,
|
|
17058
|
-
|
|
17443
|
+
resourcetypeId,
|
|
17444
|
+
body,
|
|
17445
|
+
data,
|
|
17059
17446
|
arry,
|
|
17060
17447
|
_args18 = arguments;
|
|
17061
17448
|
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
|
17062
17449
|
while (1) {
|
|
17063
17450
|
switch (_context18.prev = _context18.next) {
|
|
17064
17451
|
case 0:
|
|
17452
|
+
payload = _args18.length > 0 && _args18[0] !== undefined ? _args18[0] : {};
|
|
17065
17453
|
_ref36 = _args18.length > 1 ? _args18[1] : undefined, rejectWithValue = _ref36.rejectWithValue;
|
|
17066
17454
|
_context18.prev = 2;
|
|
17067
|
-
|
|
17455
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
17456
|
+
resourcetypeId = payload;
|
|
17457
|
+
body = {
|
|
17458
|
+
db_name: "primarycareng",
|
|
17459
|
+
filter: {
|
|
17460
|
+
resourcetype: resourcetypeId
|
|
17461
|
+
},
|
|
17462
|
+
queryid: "133cbcbf-90b2-4739-9d1e-b89de4189d66"
|
|
17463
|
+
};
|
|
17464
|
+
_context18.next = 7;
|
|
17068
17465
|
return fetchData({
|
|
17069
|
-
body: JSON.stringify(
|
|
17070
|
-
},
|
|
17071
|
-
case
|
|
17072
|
-
|
|
17466
|
+
body: JSON.stringify(body)
|
|
17467
|
+
}, __baseUrl__$1);
|
|
17468
|
+
case 7:
|
|
17469
|
+
data = _context18.sent;
|
|
17073
17470
|
arry = [];
|
|
17074
|
-
|
|
17075
|
-
|
|
17076
|
-
|
|
17077
|
-
|
|
17078
|
-
|
|
17079
|
-
|
|
17080
|
-
arry.push({
|
|
17081
|
-
label: val === null || val === void 0 ? void 0 : val.InstructionCode,
|
|
17082
|
-
value: val === null || val === void 0 ? void 0 : val._id,
|
|
17083
|
-
title: val === null || val === void 0 ? void 0 : val.InstructionDesc
|
|
17084
|
-
});
|
|
17085
|
-
}
|
|
17471
|
+
data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
17472
|
+
return arry.push({
|
|
17473
|
+
_id: item._id,
|
|
17474
|
+
Value: item._id,
|
|
17475
|
+
label: item.display
|
|
17476
|
+
});
|
|
17086
17477
|
});
|
|
17087
|
-
case 10:
|
|
17088
|
-
console.log("pie", arry);
|
|
17089
17478
|
return _context18.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17090
17479
|
data: arry
|
|
17091
17480
|
}));
|
|
17092
|
-
case
|
|
17093
|
-
_context18.prev =
|
|
17481
|
+
case 13:
|
|
17482
|
+
_context18.prev = 13;
|
|
17094
17483
|
_context18.t0 = _context18["catch"](2);
|
|
17095
17484
|
return _context18.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
17096
17485
|
message: _context18.t0.message
|
|
17097
17486
|
})));
|
|
17098
|
-
case
|
|
17487
|
+
case 16:
|
|
17099
17488
|
case "end":
|
|
17100
17489
|
return _context18.stop();
|
|
17101
17490
|
}
|
|
17102
17491
|
}
|
|
17103
|
-
}, _callee18, null, [[2,
|
|
17492
|
+
}, _callee18, null, [[2, 13]]);
|
|
17104
17493
|
})));
|
|
17105
|
-
var
|
|
17494
|
+
var RES_RESOURCE_ROLE_LIST_DOC = createAsyncThunk("resourceByAppointmentTypesSlice/res_resource_role_list_doc", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19() {
|
|
17106
17495
|
var _ref38,
|
|
17107
17496
|
rejectWithValue,
|
|
17108
|
-
|
|
17109
|
-
|
|
17110
|
-
result,
|
|
17497
|
+
data_arr,
|
|
17498
|
+
arry,
|
|
17111
17499
|
_args19 = arguments;
|
|
17112
17500
|
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
|
17113
17501
|
while (1) {
|
|
@@ -17115,59 +17503,455 @@ var RES_CRITERIA_LIST_DOC = createAsyncThunk("resourceByAppointmentTypesSlice/re
|
|
|
17115
17503
|
case 0:
|
|
17116
17504
|
_ref38 = _args19.length > 1 ? _args19[1] : undefined, rejectWithValue = _ref38.rejectWithValue;
|
|
17117
17505
|
_context19.prev = 2;
|
|
17118
|
-
|
|
17119
|
-
_context19.next = 6;
|
|
17506
|
+
_context19.next = 5;
|
|
17120
17507
|
return fetchData({
|
|
17121
|
-
body: JSON.stringify(
|
|
17508
|
+
body: JSON.stringify(queries$i.res_resource_role_list_appointments())
|
|
17122
17509
|
}, __readDocumentUrl__);
|
|
17123
|
-
case
|
|
17124
|
-
|
|
17125
|
-
|
|
17126
|
-
|
|
17127
|
-
|
|
17128
|
-
|
|
17129
|
-
|
|
17130
|
-
|
|
17131
|
-
|
|
17132
|
-
|
|
17133
|
-
|
|
17510
|
+
case 5:
|
|
17511
|
+
data_arr = _context19.sent;
|
|
17512
|
+
arry = [];
|
|
17513
|
+
console.log({
|
|
17514
|
+
data_arr: data_arr
|
|
17515
|
+
});
|
|
17516
|
+
_context19.next = 10;
|
|
17517
|
+
return data_arr.result.map(function (val) {
|
|
17518
|
+
arry.push({
|
|
17519
|
+
value: val === null || val === void 0 ? void 0 : val._id,
|
|
17520
|
+
label: val === null || val === void 0 ? void 0 : val.display,
|
|
17521
|
+
title: val === null || val === void 0 ? void 0 : val.Type
|
|
17522
|
+
});
|
|
17134
17523
|
});
|
|
17524
|
+
case 10:
|
|
17525
|
+
console.log(arry, "cf");
|
|
17135
17526
|
return _context19.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17136
|
-
data:
|
|
17527
|
+
data: arry
|
|
17528
|
+
}));
|
|
17529
|
+
case 14:
|
|
17530
|
+
_context19.prev = 14;
|
|
17531
|
+
_context19.t0 = _context19["catch"](2);
|
|
17532
|
+
return _context19.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
17533
|
+
message: _context19.t0.message
|
|
17534
|
+
})));
|
|
17535
|
+
case 17:
|
|
17536
|
+
case "end":
|
|
17537
|
+
return _context19.stop();
|
|
17538
|
+
}
|
|
17539
|
+
}
|
|
17540
|
+
}, _callee19, null, [[2, 14]]);
|
|
17541
|
+
})));
|
|
17542
|
+
var RES_RESOURCE_DEPARTMENT_LIST_DOC_QDM = createAsyncThunk("resourceByAppointmentTypesSlice/res_resource_department_list_doc_qdm", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20() {
|
|
17543
|
+
var payload,
|
|
17544
|
+
_ref40,
|
|
17545
|
+
rejectWithValue,
|
|
17546
|
+
body,
|
|
17547
|
+
data,
|
|
17548
|
+
arry,
|
|
17549
|
+
_args20 = arguments;
|
|
17550
|
+
return _regeneratorRuntime().wrap(function _callee20$(_context20) {
|
|
17551
|
+
while (1) {
|
|
17552
|
+
switch (_context20.prev = _context20.next) {
|
|
17553
|
+
case 0:
|
|
17554
|
+
payload = _args20.length > 0 && _args20[0] !== undefined ? _args20[0] : {};
|
|
17555
|
+
_ref40 = _args20.length > 1 ? _args20[1] : undefined, rejectWithValue = _ref40.rejectWithValue;
|
|
17556
|
+
_context20.prev = 2;
|
|
17557
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
17558
|
+
body = {
|
|
17559
|
+
db_name: "primarycareng",
|
|
17560
|
+
filter: {
|
|
17561
|
+
resourcetype: payload === null || payload === void 0 ? void 0 : payload.resourcetypeId,
|
|
17562
|
+
roletype: payload === null || payload === void 0 ? void 0 : payload.resourceroleId
|
|
17563
|
+
},
|
|
17564
|
+
queryid: "377c3f68-3454-49bb-86c7-4d856dda932e"
|
|
17565
|
+
};
|
|
17566
|
+
_context20.next = 6;
|
|
17567
|
+
return fetchData({
|
|
17568
|
+
body: JSON.stringify(body)
|
|
17569
|
+
}, __baseUrl__$1);
|
|
17570
|
+
case 6:
|
|
17571
|
+
data = _context20.sent;
|
|
17572
|
+
arry = [];
|
|
17573
|
+
data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
17574
|
+
return arry.push({
|
|
17575
|
+
_id: item._id,
|
|
17576
|
+
Value: item._id,
|
|
17577
|
+
label: item.display
|
|
17578
|
+
});
|
|
17579
|
+
});
|
|
17580
|
+
return _context20.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17581
|
+
data: arry
|
|
17582
|
+
}));
|
|
17583
|
+
case 12:
|
|
17584
|
+
_context20.prev = 12;
|
|
17585
|
+
_context20.t0 = _context20["catch"](2);
|
|
17586
|
+
return _context20.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
17587
|
+
message: _context20.t0.message
|
|
17588
|
+
})));
|
|
17589
|
+
case 15:
|
|
17590
|
+
case "end":
|
|
17591
|
+
return _context20.stop();
|
|
17592
|
+
}
|
|
17593
|
+
}
|
|
17594
|
+
}, _callee20, null, [[2, 12]]);
|
|
17595
|
+
})));
|
|
17596
|
+
var RES_RESOURCE_DEPARTMENT_LIST_DOC = createAsyncThunk("resourceByAppointmentTypesSlice/res_resource_department_list_doc", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21() {
|
|
17597
|
+
var _ref42,
|
|
17598
|
+
rejectWithValue,
|
|
17599
|
+
data_arr,
|
|
17600
|
+
arry,
|
|
17601
|
+
_args21 = arguments;
|
|
17602
|
+
return _regeneratorRuntime().wrap(function _callee21$(_context21) {
|
|
17603
|
+
while (1) {
|
|
17604
|
+
switch (_context21.prev = _context21.next) {
|
|
17605
|
+
case 0:
|
|
17606
|
+
_ref42 = _args21.length > 1 ? _args21[1] : undefined, rejectWithValue = _ref42.rejectWithValue;
|
|
17607
|
+
_context21.prev = 2;
|
|
17608
|
+
_context21.next = 5;
|
|
17609
|
+
return fetchData({
|
|
17610
|
+
body: JSON.stringify(queries$i.res_resource_department_list_appointments())
|
|
17611
|
+
}, __readDocumentUrl__);
|
|
17612
|
+
case 5:
|
|
17613
|
+
data_arr = _context21.sent;
|
|
17614
|
+
arry = [];
|
|
17615
|
+
console.log({
|
|
17616
|
+
data_arr: data_arr
|
|
17617
|
+
});
|
|
17618
|
+
_context21.next = 10;
|
|
17619
|
+
return data_arr.result.map(function (val) {
|
|
17620
|
+
console.log(val, "Type");
|
|
17621
|
+
arry.push({
|
|
17622
|
+
value: val === null || val === void 0 ? void 0 : val._id,
|
|
17623
|
+
title: val === null || val === void 0 ? void 0 : val.Type,
|
|
17624
|
+
label: val === null || val === void 0 ? void 0 : val.display
|
|
17625
|
+
});
|
|
17626
|
+
});
|
|
17627
|
+
case 10:
|
|
17628
|
+
console.log(arry);
|
|
17629
|
+
return _context21.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17630
|
+
data: arry
|
|
17631
|
+
}));
|
|
17632
|
+
case 14:
|
|
17633
|
+
_context21.prev = 14;
|
|
17634
|
+
_context21.t0 = _context21["catch"](2);
|
|
17635
|
+
return _context21.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
17636
|
+
message: _context21.t0.message
|
|
17637
|
+
})));
|
|
17638
|
+
case 17:
|
|
17639
|
+
case "end":
|
|
17640
|
+
return _context21.stop();
|
|
17641
|
+
}
|
|
17642
|
+
}
|
|
17643
|
+
}, _callee21, null, [[2, 14]]);
|
|
17644
|
+
})));
|
|
17645
|
+
var RES_RESOURCE_NAME_LIST_DOC_QDM = createAsyncThunk("resourceByAppointmentTypesSlice/res_resource_name_list_doc_qdm", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22() {
|
|
17646
|
+
var payload,
|
|
17647
|
+
_ref44,
|
|
17648
|
+
rejectWithValue,
|
|
17649
|
+
body,
|
|
17650
|
+
data,
|
|
17651
|
+
arry,
|
|
17652
|
+
_args22 = arguments;
|
|
17653
|
+
return _regeneratorRuntime().wrap(function _callee22$(_context22) {
|
|
17654
|
+
while (1) {
|
|
17655
|
+
switch (_context22.prev = _context22.next) {
|
|
17656
|
+
case 0:
|
|
17657
|
+
payload = _args22.length > 0 && _args22[0] !== undefined ? _args22[0] : {};
|
|
17658
|
+
_ref44 = _args22.length > 1 ? _args22[1] : undefined, rejectWithValue = _ref44.rejectWithValue;
|
|
17659
|
+
_context22.prev = 2;
|
|
17660
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
17661
|
+
body = {
|
|
17662
|
+
db_name: "primarycareng",
|
|
17663
|
+
filter: {
|
|
17664
|
+
resourcetype: payload === null || payload === void 0 ? void 0 : payload.resourcetypeId,
|
|
17665
|
+
roletype: payload === null || payload === void 0 ? void 0 : payload.resourceroleId,
|
|
17666
|
+
deptid: payload === null || payload === void 0 ? void 0 : payload.resourcedepartmentId
|
|
17667
|
+
},
|
|
17668
|
+
queryid: "2159f59b-00e5-436d-9daa-7b09f1ff840d"
|
|
17669
|
+
};
|
|
17670
|
+
_context22.next = 6;
|
|
17671
|
+
return fetchData({
|
|
17672
|
+
body: JSON.stringify(body)
|
|
17673
|
+
}, __baseUrl__$1);
|
|
17674
|
+
case 6:
|
|
17675
|
+
data = _context22.sent;
|
|
17676
|
+
arry = [];
|
|
17677
|
+
data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
17678
|
+
return arry.push({
|
|
17679
|
+
_id: item._id,
|
|
17680
|
+
Value: item._id,
|
|
17681
|
+
label: item.display
|
|
17682
|
+
});
|
|
17683
|
+
});
|
|
17684
|
+
return _context22.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17685
|
+
data: arry
|
|
17686
|
+
}));
|
|
17687
|
+
case 12:
|
|
17688
|
+
_context22.prev = 12;
|
|
17689
|
+
_context22.t0 = _context22["catch"](2);
|
|
17690
|
+
return _context22.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
17691
|
+
message: _context22.t0.message
|
|
17692
|
+
})));
|
|
17693
|
+
case 15:
|
|
17694
|
+
case "end":
|
|
17695
|
+
return _context22.stop();
|
|
17696
|
+
}
|
|
17697
|
+
}
|
|
17698
|
+
}, _callee22, null, [[2, 12]]);
|
|
17699
|
+
})));
|
|
17700
|
+
var RES_RESOURCE_NAME_LIST_DOC = createAsyncThunk("resourceByAppointmentTypesSlice/res_resource_name_list_doc", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23() {
|
|
17701
|
+
var _ref46,
|
|
17702
|
+
rejectWithValue,
|
|
17703
|
+
data_arr,
|
|
17704
|
+
arry,
|
|
17705
|
+
_args23 = arguments;
|
|
17706
|
+
return _regeneratorRuntime().wrap(function _callee23$(_context23) {
|
|
17707
|
+
while (1) {
|
|
17708
|
+
switch (_context23.prev = _context23.next) {
|
|
17709
|
+
case 0:
|
|
17710
|
+
_ref46 = _args23.length > 1 ? _args23[1] : undefined, rejectWithValue = _ref46.rejectWithValue;
|
|
17711
|
+
_context23.prev = 2;
|
|
17712
|
+
_context23.next = 5;
|
|
17713
|
+
return fetchData({
|
|
17714
|
+
body: JSON.stringify(queries$i.res_resource_name_list_appointments())
|
|
17715
|
+
}, __readDocumentUrl__);
|
|
17716
|
+
case 5:
|
|
17717
|
+
data_arr = _context23.sent;
|
|
17718
|
+
arry = [];
|
|
17719
|
+
console.log({
|
|
17720
|
+
data_arr: data_arr
|
|
17721
|
+
});
|
|
17722
|
+
_context23.next = 10;
|
|
17723
|
+
return data_arr.result.map(function (val) {
|
|
17724
|
+
arry.push({
|
|
17725
|
+
value: val === null || val === void 0 ? void 0 : val._id,
|
|
17726
|
+
label: val === null || val === void 0 ? void 0 : val.display
|
|
17727
|
+
});
|
|
17728
|
+
});
|
|
17729
|
+
case 10:
|
|
17730
|
+
console.log(arry);
|
|
17731
|
+
return _context23.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17732
|
+
data: arry
|
|
17733
|
+
}));
|
|
17734
|
+
case 14:
|
|
17735
|
+
_context23.prev = 14;
|
|
17736
|
+
_context23.t0 = _context23["catch"](2);
|
|
17737
|
+
return _context23.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
17738
|
+
message: _context23.t0.message
|
|
17739
|
+
})));
|
|
17740
|
+
case 17:
|
|
17741
|
+
case "end":
|
|
17742
|
+
return _context23.stop();
|
|
17743
|
+
}
|
|
17744
|
+
}
|
|
17745
|
+
}, _callee23, null, [[2, 14]]);
|
|
17746
|
+
})));
|
|
17747
|
+
var RES_SPECIAL_INSTRUCTION_LIST_DOC_QDM = createAsyncThunk("resourceByAppointmentTypesSlice/res_special_instruction_list_doc_qdm", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24() {
|
|
17748
|
+
var _ref48,
|
|
17749
|
+
rejectWithValue,
|
|
17750
|
+
body,
|
|
17751
|
+
data,
|
|
17752
|
+
arry,
|
|
17753
|
+
_args24 = arguments;
|
|
17754
|
+
return _regeneratorRuntime().wrap(function _callee24$(_context24) {
|
|
17755
|
+
while (1) {
|
|
17756
|
+
switch (_context24.prev = _context24.next) {
|
|
17757
|
+
case 0:
|
|
17758
|
+
_ref48 = _args24.length > 1 ? _args24[1] : undefined, rejectWithValue = _ref48.rejectWithValue;
|
|
17759
|
+
_context24.prev = 2;
|
|
17760
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
17761
|
+
body = {
|
|
17762
|
+
db_name: "primarycareng",
|
|
17763
|
+
queryid: "be26a8ae-2181-4a08-bcbc-d0b07632fe84"
|
|
17764
|
+
};
|
|
17765
|
+
_context24.next = 6;
|
|
17766
|
+
return fetchData({
|
|
17767
|
+
body: JSON.stringify(body)
|
|
17768
|
+
}, __baseUrl__$1);
|
|
17769
|
+
case 6:
|
|
17770
|
+
data = _context24.sent;
|
|
17771
|
+
arry = [];
|
|
17772
|
+
data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
17773
|
+
return arry.push({
|
|
17774
|
+
Value: item.display,
|
|
17775
|
+
_id: item._id,
|
|
17776
|
+
label: item.code
|
|
17777
|
+
});
|
|
17778
|
+
});
|
|
17779
|
+
return _context24.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17780
|
+
data: arry
|
|
17781
|
+
}));
|
|
17782
|
+
case 12:
|
|
17783
|
+
_context24.prev = 12;
|
|
17784
|
+
_context24.t0 = _context24["catch"](2);
|
|
17785
|
+
return _context24.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
17786
|
+
message: _context24.t0.message
|
|
17787
|
+
})));
|
|
17788
|
+
case 15:
|
|
17789
|
+
case "end":
|
|
17790
|
+
return _context24.stop();
|
|
17791
|
+
}
|
|
17792
|
+
}
|
|
17793
|
+
}, _callee24, null, [[2, 12]]);
|
|
17794
|
+
})));
|
|
17795
|
+
var RES_SPECIAL_INSTRUCTION_LIST_DOC = createAsyncThunk("resourceByAppointmentTypesSlice/res_special_instruction_list_doc", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee25() {
|
|
17796
|
+
var _ref50,
|
|
17797
|
+
rejectWithValue,
|
|
17798
|
+
data_arr,
|
|
17799
|
+
arry,
|
|
17800
|
+
_args25 = arguments;
|
|
17801
|
+
return _regeneratorRuntime().wrap(function _callee25$(_context25) {
|
|
17802
|
+
while (1) {
|
|
17803
|
+
switch (_context25.prev = _context25.next) {
|
|
17804
|
+
case 0:
|
|
17805
|
+
_ref50 = _args25.length > 1 ? _args25[1] : undefined, rejectWithValue = _ref50.rejectWithValue;
|
|
17806
|
+
_context25.prev = 2;
|
|
17807
|
+
_context25.next = 5;
|
|
17808
|
+
return fetchData({
|
|
17809
|
+
body: JSON.stringify(queries$i.res_special_instruction_list_appointment())
|
|
17810
|
+
}, __readDocumentUrl__);
|
|
17811
|
+
case 5:
|
|
17812
|
+
data_arr = _context25.sent;
|
|
17813
|
+
arry = [];
|
|
17814
|
+
_context25.next = 9;
|
|
17815
|
+
return data_arr.result.map(function (val, i) {
|
|
17816
|
+
if (val !== null && val !== void 0 && val.InstructionCode && val !== null && val !== void 0 && val.InstructionDesc) {
|
|
17817
|
+
arry.push({
|
|
17818
|
+
label: val === null || val === void 0 ? void 0 : val.InstructionCode,
|
|
17819
|
+
value: val === null || val === void 0 ? void 0 : val._id,
|
|
17820
|
+
title: val === null || val === void 0 ? void 0 : val.InstructionDesc
|
|
17821
|
+
});
|
|
17822
|
+
}
|
|
17823
|
+
});
|
|
17824
|
+
case 9:
|
|
17825
|
+
return _context25.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17826
|
+
data: arry
|
|
17827
|
+
}));
|
|
17828
|
+
case 12:
|
|
17829
|
+
_context25.prev = 12;
|
|
17830
|
+
_context25.t0 = _context25["catch"](2);
|
|
17831
|
+
return _context25.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
17832
|
+
message: _context25.t0.message
|
|
17833
|
+
})));
|
|
17834
|
+
case 15:
|
|
17835
|
+
case "end":
|
|
17836
|
+
return _context25.stop();
|
|
17837
|
+
}
|
|
17838
|
+
}
|
|
17839
|
+
}, _callee25, null, [[2, 12]]);
|
|
17840
|
+
})));
|
|
17841
|
+
var RES_CRITERIA_LIST_DOC = createAsyncThunk("resourceByAppointmentTypesSlice/res_criteria_list_doc", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee26() {
|
|
17842
|
+
var _ref52,
|
|
17843
|
+
rejectWithValue,
|
|
17844
|
+
queriesjson,
|
|
17845
|
+
data,
|
|
17846
|
+
result,
|
|
17847
|
+
_args26 = arguments;
|
|
17848
|
+
return _regeneratorRuntime().wrap(function _callee26$(_context26) {
|
|
17849
|
+
while (1) {
|
|
17850
|
+
switch (_context26.prev = _context26.next) {
|
|
17851
|
+
case 0:
|
|
17852
|
+
_ref52 = _args26.length > 1 ? _args26[1] : undefined, rejectWithValue = _ref52.rejectWithValue;
|
|
17853
|
+
_context26.prev = 2;
|
|
17854
|
+
queriesjson = queries$i.res_criteria_instruction_list_appointment();
|
|
17855
|
+
_context26.next = 6;
|
|
17856
|
+
return fetchData({
|
|
17857
|
+
body: JSON.stringify(queriesjson)
|
|
17858
|
+
}, __readDocumentUrl__);
|
|
17859
|
+
case 6:
|
|
17860
|
+
data = _context26.sent;
|
|
17861
|
+
console.log(data, "taeetee");
|
|
17862
|
+
result = [];
|
|
17863
|
+
data.result.map(function (val, i) {
|
|
17864
|
+
if (val !== null && val !== void 0 && val.display && val !== null && val !== void 0 && val._id) {
|
|
17865
|
+
result.push({
|
|
17866
|
+
label: val === null || val === void 0 ? void 0 : val.display,
|
|
17867
|
+
value: val === null || val === void 0 ? void 0 : val._id
|
|
17868
|
+
});
|
|
17869
|
+
}
|
|
17870
|
+
});
|
|
17871
|
+
return _context26.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17872
|
+
data: result
|
|
17873
|
+
}));
|
|
17874
|
+
case 13:
|
|
17875
|
+
_context26.prev = 13;
|
|
17876
|
+
_context26.t0 = _context26["catch"](2);
|
|
17877
|
+
return _context26.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
17878
|
+
message: _context26.t0.message
|
|
17879
|
+
})));
|
|
17880
|
+
case 16:
|
|
17881
|
+
case "end":
|
|
17882
|
+
return _context26.stop();
|
|
17883
|
+
}
|
|
17884
|
+
}
|
|
17885
|
+
}, _callee26, null, [[2, 13]]);
|
|
17886
|
+
})));
|
|
17887
|
+
var RES_GENERAL_INSTRUCTION_DROPDOWN_QDM = createAsyncThunk("resourceByAppointmentTypesSlice/res_general_instruction_dropdown_qdm", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee27() {
|
|
17888
|
+
var _ref54,
|
|
17889
|
+
rejectWithValue,
|
|
17890
|
+
body,
|
|
17891
|
+
data,
|
|
17892
|
+
arry,
|
|
17893
|
+
_args27 = arguments;
|
|
17894
|
+
return _regeneratorRuntime().wrap(function _callee27$(_context27) {
|
|
17895
|
+
while (1) {
|
|
17896
|
+
switch (_context27.prev = _context27.next) {
|
|
17897
|
+
case 0:
|
|
17898
|
+
_ref54 = _args27.length > 1 ? _args27[1] : undefined, rejectWithValue = _ref54.rejectWithValue;
|
|
17899
|
+
_context27.prev = 2;
|
|
17900
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
17901
|
+
body = {
|
|
17902
|
+
db_name: "primarycareng",
|
|
17903
|
+
queryid: "d9fef26c-9ac6-4921-9cce-b776c185f529"
|
|
17904
|
+
};
|
|
17905
|
+
_context27.next = 6;
|
|
17906
|
+
return fetchData({
|
|
17907
|
+
body: JSON.stringify(body)
|
|
17908
|
+
}, __baseUrl__$1);
|
|
17909
|
+
case 6:
|
|
17910
|
+
data = _context27.sent;
|
|
17911
|
+
arry = [];
|
|
17912
|
+
data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
17913
|
+
return arry.push({
|
|
17914
|
+
_id: item._id,
|
|
17915
|
+
Value: item.display,
|
|
17916
|
+
label: item.code
|
|
17917
|
+
});
|
|
17918
|
+
});
|
|
17919
|
+
return _context27.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17920
|
+
data: arry
|
|
17137
17921
|
}));
|
|
17138
|
-
case
|
|
17139
|
-
|
|
17140
|
-
|
|
17141
|
-
return
|
|
17142
|
-
message:
|
|
17922
|
+
case 12:
|
|
17923
|
+
_context27.prev = 12;
|
|
17924
|
+
_context27.t0 = _context27["catch"](2);
|
|
17925
|
+
return _context27.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
17926
|
+
message: _context27.t0.message
|
|
17143
17927
|
})));
|
|
17144
|
-
case
|
|
17928
|
+
case 15:
|
|
17145
17929
|
case "end":
|
|
17146
|
-
return
|
|
17930
|
+
return _context27.stop();
|
|
17147
17931
|
}
|
|
17148
17932
|
}
|
|
17149
|
-
},
|
|
17933
|
+
}, _callee27, null, [[2, 12]]);
|
|
17150
17934
|
})));
|
|
17151
|
-
var RES_GENERAL_INSTRUCTION_DROPDOWN = createAsyncThunk("resourceByAppointmentTypesSlice/res_general_instruction_dropdown", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
17152
|
-
var
|
|
17935
|
+
var RES_GENERAL_INSTRUCTION_DROPDOWN = createAsyncThunk("resourceByAppointmentTypesSlice/res_general_instruction_dropdown", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee28() {
|
|
17936
|
+
var _ref56,
|
|
17153
17937
|
rejectWithValue,
|
|
17154
17938
|
data_arr,
|
|
17155
17939
|
arry,
|
|
17156
|
-
|
|
17157
|
-
return _regeneratorRuntime().wrap(function
|
|
17940
|
+
_args28 = arguments;
|
|
17941
|
+
return _regeneratorRuntime().wrap(function _callee28$(_context28) {
|
|
17158
17942
|
while (1) {
|
|
17159
|
-
switch (
|
|
17943
|
+
switch (_context28.prev = _context28.next) {
|
|
17160
17944
|
case 0:
|
|
17161
|
-
|
|
17162
|
-
|
|
17163
|
-
|
|
17945
|
+
_ref56 = _args28.length > 1 ? _args28[1] : undefined, rejectWithValue = _ref56.rejectWithValue;
|
|
17946
|
+
_context28.prev = 2;
|
|
17947
|
+
_context28.next = 5;
|
|
17164
17948
|
return fetchData({
|
|
17165
17949
|
body: JSON.stringify(queries$i.res_general_instruction_drop_down())
|
|
17166
17950
|
}, __readDocumentUrl__);
|
|
17167
17951
|
case 5:
|
|
17168
|
-
data_arr =
|
|
17952
|
+
data_arr = _context28.sent;
|
|
17169
17953
|
arry = [];
|
|
17170
|
-
|
|
17954
|
+
_context28.next = 9;
|
|
17171
17955
|
return data_arr.result.map(function (val, i) {
|
|
17172
17956
|
if (val !== null && val !== void 0 && val.InstructionCode && val !== null && val !== void 0 && val.InstructionDesc) {
|
|
17173
17957
|
arry.push({
|
|
@@ -17179,42 +17963,99 @@ var RES_GENERAL_INSTRUCTION_DROPDOWN = createAsyncThunk("resourceByAppointmentTy
|
|
|
17179
17963
|
});
|
|
17180
17964
|
case 9:
|
|
17181
17965
|
debugger;
|
|
17182
|
-
return
|
|
17966
|
+
return _context28.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17183
17967
|
data: arry
|
|
17184
17968
|
}));
|
|
17185
17969
|
case 13:
|
|
17186
|
-
|
|
17187
|
-
|
|
17188
|
-
return
|
|
17189
|
-
message:
|
|
17970
|
+
_context28.prev = 13;
|
|
17971
|
+
_context28.t0 = _context28["catch"](2);
|
|
17972
|
+
return _context28.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
17973
|
+
message: _context28.t0.message
|
|
17190
17974
|
})));
|
|
17191
17975
|
case 16:
|
|
17192
17976
|
case "end":
|
|
17193
|
-
return
|
|
17977
|
+
return _context28.stop();
|
|
17194
17978
|
}
|
|
17195
17979
|
}
|
|
17196
|
-
},
|
|
17980
|
+
}, _callee28, null, [[2, 13]]);
|
|
17197
17981
|
})));
|
|
17198
|
-
var
|
|
17199
|
-
var
|
|
17982
|
+
var RES_SERVICE_GROUP_QDM = createAsyncThunk("resourceByAppointmentTypesSlice/res_service_group_qdm", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee29() {
|
|
17983
|
+
var _ref58,
|
|
17984
|
+
rejectWithValue,
|
|
17985
|
+
_data$4,
|
|
17986
|
+
_data$4$SERVICETYPE,
|
|
17987
|
+
_data$4$SERVICETYPE$V,
|
|
17988
|
+
body,
|
|
17989
|
+
data,
|
|
17990
|
+
arry,
|
|
17991
|
+
_args29 = arguments;
|
|
17992
|
+
return _regeneratorRuntime().wrap(function _callee29$(_context29) {
|
|
17993
|
+
while (1) {
|
|
17994
|
+
switch (_context29.prev = _context29.next) {
|
|
17995
|
+
case 0:
|
|
17996
|
+
_ref58 = _args29.length > 1 ? _args29[1] : undefined, rejectWithValue = _ref58.rejectWithValue;
|
|
17997
|
+
_context29.prev = 2;
|
|
17998
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
17999
|
+
body = {
|
|
18000
|
+
db_name: "primarycareng",
|
|
18001
|
+
filter: {
|
|
18002
|
+
type: ["SERVICETYPE"],
|
|
18003
|
+
tenantid: "",
|
|
18004
|
+
facilityid: "",
|
|
18005
|
+
lang: ""
|
|
18006
|
+
},
|
|
18007
|
+
queryid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
18008
|
+
};
|
|
18009
|
+
_context29.next = 6;
|
|
18010
|
+
return fetchData({
|
|
18011
|
+
body: JSON.stringify(body)
|
|
18012
|
+
}, __baseUrl__$1);
|
|
18013
|
+
case 6:
|
|
18014
|
+
data = _context29.sent;
|
|
18015
|
+
arry = [];
|
|
18016
|
+
(_data$4 = data[0]) === null || _data$4 === void 0 ? void 0 : (_data$4$SERVICETYPE = _data$4.SERVICETYPE) === null || _data$4$SERVICETYPE === void 0 ? void 0 : (_data$4$SERVICETYPE$V = _data$4$SERVICETYPE.Value) === null || _data$4$SERVICETYPE$V === void 0 ? void 0 : _data$4$SERVICETYPE$V.map(function (item) {
|
|
18017
|
+
return arry.push({
|
|
18018
|
+
_id: item._id,
|
|
18019
|
+
Value: item.display,
|
|
18020
|
+
label: item.display
|
|
18021
|
+
});
|
|
18022
|
+
});
|
|
18023
|
+
return _context29.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
18024
|
+
data: arry
|
|
18025
|
+
}));
|
|
18026
|
+
case 12:
|
|
18027
|
+
_context29.prev = 12;
|
|
18028
|
+
_context29.t0 = _context29["catch"](2);
|
|
18029
|
+
return _context29.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
18030
|
+
message: _context29.t0.message
|
|
18031
|
+
})));
|
|
18032
|
+
case 15:
|
|
18033
|
+
case "end":
|
|
18034
|
+
return _context29.stop();
|
|
18035
|
+
}
|
|
18036
|
+
}
|
|
18037
|
+
}, _callee29, null, [[2, 12]]);
|
|
18038
|
+
})));
|
|
18039
|
+
var RES_SERVICE_GROUP = createAsyncThunk("resourceByAppointmentTypesSlice/res_service_group", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee30() {
|
|
18040
|
+
var _ref60,
|
|
17200
18041
|
rejectWithValue,
|
|
17201
18042
|
data_arr,
|
|
17202
18043
|
arry,
|
|
17203
|
-
|
|
17204
|
-
return _regeneratorRuntime().wrap(function
|
|
18044
|
+
_args30 = arguments;
|
|
18045
|
+
return _regeneratorRuntime().wrap(function _callee30$(_context30) {
|
|
17205
18046
|
while (1) {
|
|
17206
|
-
switch (
|
|
18047
|
+
switch (_context30.prev = _context30.next) {
|
|
17207
18048
|
case 0:
|
|
17208
|
-
|
|
17209
|
-
|
|
17210
|
-
|
|
18049
|
+
_ref60 = _args30.length > 1 ? _args30[1] : undefined, rejectWithValue = _ref60.rejectWithValue;
|
|
18050
|
+
_context30.prev = 2;
|
|
18051
|
+
_context30.next = 5;
|
|
17211
18052
|
return fetchData({
|
|
17212
18053
|
body: JSON.stringify(queries$i.res_service_group_type())
|
|
17213
18054
|
}, __readDocumentUrl__);
|
|
17214
18055
|
case 5:
|
|
17215
|
-
data_arr =
|
|
18056
|
+
data_arr = _context30.sent;
|
|
17216
18057
|
arry = [];
|
|
17217
|
-
|
|
18058
|
+
_context30.next = 9;
|
|
17218
18059
|
return data_arr.result.map(function (val) {
|
|
17219
18060
|
arry.push({
|
|
17220
18061
|
value: val === null || val === void 0 ? void 0 : val._id,
|
|
@@ -17224,42 +18065,99 @@ var RES_SERVICE_GROUP = createAsyncThunk("resourceByAppointmentTypesSlice/res_se
|
|
|
17224
18065
|
case 9:
|
|
17225
18066
|
// console.log(arry)
|
|
17226
18067
|
debugger;
|
|
17227
|
-
return
|
|
18068
|
+
return _context30.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17228
18069
|
data: arry
|
|
17229
18070
|
}));
|
|
17230
18071
|
case 13:
|
|
17231
|
-
|
|
17232
|
-
|
|
17233
|
-
return
|
|
17234
|
-
message:
|
|
18072
|
+
_context30.prev = 13;
|
|
18073
|
+
_context30.t0 = _context30["catch"](2);
|
|
18074
|
+
return _context30.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
18075
|
+
message: _context30.t0.message
|
|
17235
18076
|
})));
|
|
17236
18077
|
case 16:
|
|
17237
18078
|
case "end":
|
|
17238
|
-
return
|
|
18079
|
+
return _context30.stop();
|
|
18080
|
+
}
|
|
18081
|
+
}
|
|
18082
|
+
}, _callee30, null, [[2, 13]]);
|
|
18083
|
+
})));
|
|
18084
|
+
var RES_SERVICE_CATEGORY_QDM = createAsyncThunk("resourceByAppointmentTypesSlice/res_service_category_qdm", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee31() {
|
|
18085
|
+
var _ref62,
|
|
18086
|
+
rejectWithValue,
|
|
18087
|
+
_data$5,
|
|
18088
|
+
_data$5$SERVICECATEGO,
|
|
18089
|
+
_data$5$SERVICECATEGO2,
|
|
18090
|
+
body,
|
|
18091
|
+
data,
|
|
18092
|
+
arry,
|
|
18093
|
+
_args31 = arguments;
|
|
18094
|
+
return _regeneratorRuntime().wrap(function _callee31$(_context31) {
|
|
18095
|
+
while (1) {
|
|
18096
|
+
switch (_context31.prev = _context31.next) {
|
|
18097
|
+
case 0:
|
|
18098
|
+
_ref62 = _args31.length > 1 ? _args31[1] : undefined, rejectWithValue = _ref62.rejectWithValue;
|
|
18099
|
+
_context31.prev = 2;
|
|
18100
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
18101
|
+
body = {
|
|
18102
|
+
db_name: "primarycareng",
|
|
18103
|
+
filter: {
|
|
18104
|
+
type: ["SERVICECATEGORY"],
|
|
18105
|
+
tenantid: "",
|
|
18106
|
+
facilityid: "",
|
|
18107
|
+
lang: ""
|
|
18108
|
+
},
|
|
18109
|
+
queryid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
18110
|
+
};
|
|
18111
|
+
_context31.next = 6;
|
|
18112
|
+
return fetchData({
|
|
18113
|
+
body: JSON.stringify(body)
|
|
18114
|
+
}, __baseUrl__$1);
|
|
18115
|
+
case 6:
|
|
18116
|
+
data = _context31.sent;
|
|
18117
|
+
arry = [];
|
|
18118
|
+
(_data$5 = data[0]) === null || _data$5 === void 0 ? void 0 : (_data$5$SERVICECATEGO = _data$5.SERVICECATEGORY) === null || _data$5$SERVICECATEGO === void 0 ? void 0 : (_data$5$SERVICECATEGO2 = _data$5$SERVICECATEGO.Value) === null || _data$5$SERVICECATEGO2 === void 0 ? void 0 : _data$5$SERVICECATEGO2.map(function (item) {
|
|
18119
|
+
return arry.push({
|
|
18120
|
+
_id: item._id,
|
|
18121
|
+
Value: item.display,
|
|
18122
|
+
label: item.display
|
|
18123
|
+
});
|
|
18124
|
+
});
|
|
18125
|
+
return _context31.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
18126
|
+
data: arry
|
|
18127
|
+
}));
|
|
18128
|
+
case 12:
|
|
18129
|
+
_context31.prev = 12;
|
|
18130
|
+
_context31.t0 = _context31["catch"](2);
|
|
18131
|
+
return _context31.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
18132
|
+
message: _context31.t0.message
|
|
18133
|
+
})));
|
|
18134
|
+
case 15:
|
|
18135
|
+
case "end":
|
|
18136
|
+
return _context31.stop();
|
|
17239
18137
|
}
|
|
17240
18138
|
}
|
|
17241
|
-
},
|
|
18139
|
+
}, _callee31, null, [[2, 12]]);
|
|
17242
18140
|
})));
|
|
17243
|
-
var RES_SERVICE_CATEGORY = createAsyncThunk("resourceByAppointmentTypesSlice/res_service_category", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
17244
|
-
var
|
|
18141
|
+
var RES_SERVICE_CATEGORY = createAsyncThunk("resourceByAppointmentTypesSlice/res_service_category", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee32() {
|
|
18142
|
+
var _ref64,
|
|
17245
18143
|
rejectWithValue,
|
|
17246
18144
|
queriesjson,
|
|
17247
18145
|
data,
|
|
17248
18146
|
result,
|
|
17249
|
-
|
|
17250
|
-
return _regeneratorRuntime().wrap(function
|
|
18147
|
+
_args32 = arguments;
|
|
18148
|
+
return _regeneratorRuntime().wrap(function _callee32$(_context32) {
|
|
17251
18149
|
while (1) {
|
|
17252
|
-
switch (
|
|
18150
|
+
switch (_context32.prev = _context32.next) {
|
|
17253
18151
|
case 0:
|
|
17254
|
-
|
|
17255
|
-
|
|
18152
|
+
_ref64 = _args32.length > 1 ? _args32[1] : undefined, rejectWithValue = _ref64.rejectWithValue;
|
|
18153
|
+
_context32.prev = 2;
|
|
17256
18154
|
queriesjson = queries$i.res_service_category();
|
|
17257
|
-
|
|
18155
|
+
_context32.next = 6;
|
|
17258
18156
|
return fetchData({
|
|
17259
18157
|
body: JSON.stringify(queriesjson)
|
|
17260
18158
|
}, __readDocumentUrl__);
|
|
17261
18159
|
case 6:
|
|
17262
|
-
data =
|
|
18160
|
+
data = _context32.sent;
|
|
17263
18161
|
debugger;
|
|
17264
18162
|
result = [];
|
|
17265
18163
|
data.result.map(function (val, i) {
|
|
@@ -17268,42 +18166,99 @@ var RES_SERVICE_CATEGORY = createAsyncThunk("resourceByAppointmentTypesSlice/res
|
|
|
17268
18166
|
label: val === null || val === void 0 ? void 0 : val.display
|
|
17269
18167
|
});
|
|
17270
18168
|
});
|
|
17271
|
-
return
|
|
18169
|
+
return _context32.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17272
18170
|
data: result
|
|
17273
18171
|
}));
|
|
17274
18172
|
case 13:
|
|
17275
|
-
|
|
17276
|
-
|
|
17277
|
-
return
|
|
17278
|
-
message:
|
|
18173
|
+
_context32.prev = 13;
|
|
18174
|
+
_context32.t0 = _context32["catch"](2);
|
|
18175
|
+
return _context32.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
18176
|
+
message: _context32.t0.message
|
|
17279
18177
|
})));
|
|
17280
18178
|
case 16:
|
|
17281
18179
|
case "end":
|
|
17282
|
-
return
|
|
18180
|
+
return _context32.stop();
|
|
17283
18181
|
}
|
|
17284
18182
|
}
|
|
17285
|
-
},
|
|
18183
|
+
}, _callee32, null, [[2, 13]]);
|
|
17286
18184
|
})));
|
|
17287
|
-
var
|
|
17288
|
-
var
|
|
18185
|
+
var RES_SERVICE_CODE_QDM = createAsyncThunk("resourceByAppointmentTypesSlice/res_service_code_qdm", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee33() {
|
|
18186
|
+
var _ref66,
|
|
18187
|
+
rejectWithValue,
|
|
18188
|
+
_data$6,
|
|
18189
|
+
_data$6$SERVICE,
|
|
18190
|
+
_data$6$SERVICE$Value,
|
|
18191
|
+
body,
|
|
18192
|
+
data,
|
|
18193
|
+
arry,
|
|
18194
|
+
_args33 = arguments;
|
|
18195
|
+
return _regeneratorRuntime().wrap(function _callee33$(_context33) {
|
|
18196
|
+
while (1) {
|
|
18197
|
+
switch (_context33.prev = _context33.next) {
|
|
18198
|
+
case 0:
|
|
18199
|
+
_ref66 = _args33.length > 1 ? _args33[1] : undefined, rejectWithValue = _ref66.rejectWithValue;
|
|
18200
|
+
_context33.prev = 2;
|
|
18201
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
18202
|
+
body = {
|
|
18203
|
+
db_name: "primarycareng",
|
|
18204
|
+
filter: {
|
|
18205
|
+
type: ["SERVICE"],
|
|
18206
|
+
tenantid: "",
|
|
18207
|
+
facilityid: "",
|
|
18208
|
+
lang: ""
|
|
18209
|
+
},
|
|
18210
|
+
queryid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
18211
|
+
};
|
|
18212
|
+
_context33.next = 6;
|
|
18213
|
+
return fetchData({
|
|
18214
|
+
body: JSON.stringify(body)
|
|
18215
|
+
}, __baseUrl__$1);
|
|
18216
|
+
case 6:
|
|
18217
|
+
data = _context33.sent;
|
|
18218
|
+
arry = [];
|
|
18219
|
+
(_data$6 = data[0]) === null || _data$6 === void 0 ? void 0 : (_data$6$SERVICE = _data$6.SERVICE) === null || _data$6$SERVICE === void 0 ? void 0 : (_data$6$SERVICE$Value = _data$6$SERVICE.Value) === null || _data$6$SERVICE$Value === void 0 ? void 0 : _data$6$SERVICE$Value.map(function (item) {
|
|
18220
|
+
return arry.push({
|
|
18221
|
+
_id: item._id,
|
|
18222
|
+
Value: item.display,
|
|
18223
|
+
label: item.display
|
|
18224
|
+
});
|
|
18225
|
+
});
|
|
18226
|
+
return _context33.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
18227
|
+
data: arry
|
|
18228
|
+
}));
|
|
18229
|
+
case 12:
|
|
18230
|
+
_context33.prev = 12;
|
|
18231
|
+
_context33.t0 = _context33["catch"](2);
|
|
18232
|
+
return _context33.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
18233
|
+
message: _context33.t0.message
|
|
18234
|
+
})));
|
|
18235
|
+
case 15:
|
|
18236
|
+
case "end":
|
|
18237
|
+
return _context33.stop();
|
|
18238
|
+
}
|
|
18239
|
+
}
|
|
18240
|
+
}, _callee33, null, [[2, 12]]);
|
|
18241
|
+
})));
|
|
18242
|
+
var RES_SERVICE_CODE = createAsyncThunk("resourceByAppointmentTypesSlice/res_service_code", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee34() {
|
|
18243
|
+
var _ref68,
|
|
17289
18244
|
rejectWithValue,
|
|
17290
18245
|
queriesjson,
|
|
17291
18246
|
data,
|
|
17292
18247
|
result,
|
|
17293
|
-
|
|
17294
|
-
return _regeneratorRuntime().wrap(function
|
|
18248
|
+
_args34 = arguments;
|
|
18249
|
+
return _regeneratorRuntime().wrap(function _callee34$(_context34) {
|
|
17295
18250
|
while (1) {
|
|
17296
|
-
switch (
|
|
18251
|
+
switch (_context34.prev = _context34.next) {
|
|
17297
18252
|
case 0:
|
|
17298
|
-
|
|
17299
|
-
|
|
18253
|
+
_ref68 = _args34.length > 1 ? _args34[1] : undefined, rejectWithValue = _ref68.rejectWithValue;
|
|
18254
|
+
_context34.prev = 2;
|
|
17300
18255
|
queriesjson = queries$i.res_service_code();
|
|
17301
|
-
|
|
18256
|
+
_context34.next = 6;
|
|
17302
18257
|
return fetchData({
|
|
17303
18258
|
body: JSON.stringify(queriesjson)
|
|
17304
18259
|
}, __readDocumentUrl__);
|
|
17305
18260
|
case 6:
|
|
17306
|
-
data =
|
|
18261
|
+
data = _context34.sent;
|
|
17307
18262
|
debugger;
|
|
17308
18263
|
result = [];
|
|
17309
18264
|
data.result.map(function (val, i) {
|
|
@@ -17312,45 +18267,107 @@ var RES_SERVICE_CODE = createAsyncThunk("resourceByAppointmentTypesSlice/res_ser
|
|
|
17312
18267
|
label: val === null || val === void 0 ? void 0 : val.display
|
|
17313
18268
|
});
|
|
17314
18269
|
});
|
|
17315
|
-
return
|
|
18270
|
+
return _context34.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17316
18271
|
data: result
|
|
17317
18272
|
}));
|
|
17318
18273
|
case 13:
|
|
17319
|
-
|
|
17320
|
-
|
|
17321
|
-
return
|
|
17322
|
-
message:
|
|
18274
|
+
_context34.prev = 13;
|
|
18275
|
+
_context34.t0 = _context34["catch"](2);
|
|
18276
|
+
return _context34.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
18277
|
+
message: _context34.t0.message
|
|
17323
18278
|
})));
|
|
17324
18279
|
case 16:
|
|
17325
18280
|
case "end":
|
|
17326
|
-
return
|
|
18281
|
+
return _context34.stop();
|
|
17327
18282
|
}
|
|
17328
18283
|
}
|
|
17329
|
-
},
|
|
18284
|
+
}, _callee34, null, [[2, 13]]);
|
|
17330
18285
|
})));
|
|
17331
|
-
var
|
|
18286
|
+
var RES_APPOINTMENT_LIST_QDM = createAsyncThunk("resourceByAppointmentTypesSlice/res_appointment_list_qdm", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee35() {
|
|
17332
18287
|
var payload,
|
|
17333
|
-
|
|
18288
|
+
_ref70,
|
|
18289
|
+
rejectWithValue,
|
|
18290
|
+
body,
|
|
18291
|
+
data,
|
|
18292
|
+
arry,
|
|
18293
|
+
_args35 = arguments;
|
|
18294
|
+
return _regeneratorRuntime().wrap(function _callee35$(_context35) {
|
|
18295
|
+
while (1) {
|
|
18296
|
+
switch (_context35.prev = _context35.next) {
|
|
18297
|
+
case 0:
|
|
18298
|
+
payload = _args35.length > 0 && _args35[0] !== undefined ? _args35[0] : {};
|
|
18299
|
+
_ref70 = _args35.length > 1 ? _args35[1] : undefined, rejectWithValue = _ref70.rejectWithValue;
|
|
18300
|
+
_context35.prev = 2;
|
|
18301
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
18302
|
+
body = {
|
|
18303
|
+
db_name: "primarycareng",
|
|
18304
|
+
filter: {
|
|
18305
|
+
searchname: payload === null || payload === void 0 ? void 0 : payload.search,
|
|
18306
|
+
page: payload === null || payload === void 0 ? void 0 : payload.page,
|
|
18307
|
+
perpage: payload === null || payload === void 0 ? void 0 : payload.perPage
|
|
18308
|
+
},
|
|
18309
|
+
queryid: "9d9daea6-4bbe-4128-adcf-75cb2ad0b7e8"
|
|
18310
|
+
};
|
|
18311
|
+
_context35.next = 6;
|
|
18312
|
+
return fetchData({
|
|
18313
|
+
body: JSON.stringify(body)
|
|
18314
|
+
}, __baseUrl__$1);
|
|
18315
|
+
case 6:
|
|
18316
|
+
data = _context35.sent;
|
|
18317
|
+
arry = []; // data?.map((item) =>
|
|
18318
|
+
// arry.push({ _id: item._id, Value: item._id, label: item.display })
|
|
18319
|
+
// );
|
|
18320
|
+
data === null || data === void 0 ? void 0 : data.map(function (val, i) {
|
|
18321
|
+
var _val$servicecategory$;
|
|
18322
|
+
arry.push(_objectSpread2$1({
|
|
18323
|
+
s_no: i + 1,
|
|
18324
|
+
code: val === null || val === void 0 ? void 0 : val.code,
|
|
18325
|
+
"short": val === null || val === void 0 ? void 0 : val.shortdesc,
|
|
18326
|
+
"long": val === null || val === void 0 ? void 0 : val.longdesc,
|
|
18327
|
+
service: val !== null && val !== void 0 && val.servicecategory && (val === null || val === void 0 ? void 0 : val.servicecategory.length) > 0 ? val === null || val === void 0 ? void 0 : (_val$servicecategory$ = val.servicecategory[0]) === null || _val$servicecategory$ === void 0 ? void 0 : _val$servicecategory$.display : "No Service",
|
|
18328
|
+
entity: "StatusByEntity"
|
|
18329
|
+
}, val));
|
|
18330
|
+
});
|
|
18331
|
+
return _context35.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
18332
|
+
data: arry
|
|
18333
|
+
}));
|
|
18334
|
+
case 12:
|
|
18335
|
+
_context35.prev = 12;
|
|
18336
|
+
_context35.t0 = _context35["catch"](2);
|
|
18337
|
+
console.log(_context35.t0, "datadata");
|
|
18338
|
+
return _context35.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
18339
|
+
message: _context35.t0.message
|
|
18340
|
+
})));
|
|
18341
|
+
case 16:
|
|
18342
|
+
case "end":
|
|
18343
|
+
return _context35.stop();
|
|
18344
|
+
}
|
|
18345
|
+
}
|
|
18346
|
+
}, _callee35, null, [[2, 12]]);
|
|
18347
|
+
})));
|
|
18348
|
+
var RES_APPOINTMENT_LIST = createAsyncThunk("resourceByAppointmentTypesSlice/res_appointment_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee36() {
|
|
18349
|
+
var payload,
|
|
18350
|
+
_ref72,
|
|
17334
18351
|
rejectWithValue,
|
|
17335
18352
|
queriesjson,
|
|
17336
18353
|
data,
|
|
17337
18354
|
result,
|
|
17338
|
-
|
|
17339
|
-
return _regeneratorRuntime().wrap(function
|
|
18355
|
+
_args36 = arguments;
|
|
18356
|
+
return _regeneratorRuntime().wrap(function _callee36$(_context36) {
|
|
17340
18357
|
while (1) {
|
|
17341
|
-
switch (
|
|
18358
|
+
switch (_context36.prev = _context36.next) {
|
|
17342
18359
|
case 0:
|
|
17343
|
-
payload =
|
|
17344
|
-
|
|
18360
|
+
payload = _args36.length > 0 && _args36[0] !== undefined ? _args36[0] : {};
|
|
18361
|
+
_ref72 = _args36.length > 1 ? _args36[1] : undefined, rejectWithValue = _ref72.rejectWithValue;
|
|
17345
18362
|
console.log(payload, "sdkesloert");
|
|
17346
|
-
|
|
18363
|
+
_context36.prev = 3;
|
|
17347
18364
|
queriesjson = queries$i.res_appointment_list(payload);
|
|
17348
|
-
|
|
18365
|
+
_context36.next = 7;
|
|
17349
18366
|
return fetchData({
|
|
17350
18367
|
body: JSON.stringify(queriesjson)
|
|
17351
18368
|
}, __readDocumentUrl__);
|
|
17352
18369
|
case 7:
|
|
17353
|
-
data =
|
|
18370
|
+
data = _context36.sent;
|
|
17354
18371
|
console.log(data, "datasse");
|
|
17355
18372
|
result = [];
|
|
17356
18373
|
data === null || data === void 0 ? void 0 : data.result.map(function (val, i) {
|
|
@@ -17363,143 +18380,185 @@ var RES_APPOINTMENT_LIST = createAsyncThunk("resourceByAppointmentTypesSlice/res
|
|
|
17363
18380
|
entity: "StatusByEntity"
|
|
17364
18381
|
}, val));
|
|
17365
18382
|
});
|
|
17366
|
-
return
|
|
18383
|
+
return _context36.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17367
18384
|
data: result
|
|
17368
18385
|
}));
|
|
17369
18386
|
case 14:
|
|
17370
|
-
|
|
17371
|
-
|
|
17372
|
-
return
|
|
17373
|
-
message:
|
|
18387
|
+
_context36.prev = 14;
|
|
18388
|
+
_context36.t0 = _context36["catch"](3);
|
|
18389
|
+
return _context36.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
18390
|
+
message: _context36.t0.message
|
|
17374
18391
|
})));
|
|
17375
18392
|
case 17:
|
|
17376
18393
|
case "end":
|
|
17377
|
-
return
|
|
18394
|
+
return _context36.stop();
|
|
17378
18395
|
}
|
|
17379
18396
|
}
|
|
17380
|
-
},
|
|
18397
|
+
}, _callee36, null, [[3, 14]]);
|
|
17381
18398
|
})));
|
|
17382
|
-
var RES_UPSERT_APPOINTMENT = createAsyncThunk("resourceByAppointmentTypesSlice/res_upsert_appointment", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
18399
|
+
var RES_UPSERT_APPOINTMENT = createAsyncThunk("resourceByAppointmentTypesSlice/res_upsert_appointment", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee37() {
|
|
17383
18400
|
var payload,
|
|
17384
|
-
|
|
18401
|
+
_ref74,
|
|
17385
18402
|
rejectWithValue,
|
|
17386
18403
|
key,
|
|
17387
18404
|
queriesjson,
|
|
17388
18405
|
result,
|
|
17389
|
-
|
|
17390
|
-
return _regeneratorRuntime().wrap(function
|
|
18406
|
+
_args37 = arguments;
|
|
18407
|
+
return _regeneratorRuntime().wrap(function _callee37$(_context37) {
|
|
17391
18408
|
while (1) {
|
|
17392
|
-
switch (
|
|
18409
|
+
switch (_context37.prev = _context37.next) {
|
|
17393
18410
|
case 0:
|
|
17394
|
-
payload =
|
|
17395
|
-
|
|
17396
|
-
|
|
17397
|
-
_context25.prev = 3;
|
|
18411
|
+
payload = _args37.length > 0 && _args37[0] !== undefined ? _args37[0] : {};
|
|
18412
|
+
_ref74 = _args37.length > 1 ? _args37[1] : undefined, rejectWithValue = _ref74.rejectWithValue;
|
|
18413
|
+
_context37.prev = 2;
|
|
17398
18414
|
key = payload;
|
|
17399
18415
|
queriesjson = queries$i.res_upsert_appointment(key); // let queriesjson = generateJson.insert_appointment_add(state, key);
|
|
17400
|
-
|
|
18416
|
+
_context37.next = 7;
|
|
17401
18417
|
return fetchData({
|
|
17402
18418
|
body: JSON.stringify(queriesjson)
|
|
17403
18419
|
}, __uspsertUrl__);
|
|
17404
|
-
case
|
|
17405
|
-
|
|
18420
|
+
case 7:
|
|
18421
|
+
_context37.sent;
|
|
17406
18422
|
result = [];
|
|
17407
|
-
return
|
|
18423
|
+
return _context37.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17408
18424
|
data: result
|
|
17409
18425
|
}));
|
|
17410
|
-
case
|
|
17411
|
-
|
|
17412
|
-
|
|
17413
|
-
return
|
|
17414
|
-
message:
|
|
18426
|
+
case 12:
|
|
18427
|
+
_context37.prev = 12;
|
|
18428
|
+
_context37.t0 = _context37["catch"](2);
|
|
18429
|
+
return _context37.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
18430
|
+
message: _context37.t0.message
|
|
17415
18431
|
})));
|
|
17416
|
-
case
|
|
18432
|
+
case 15:
|
|
17417
18433
|
case "end":
|
|
17418
|
-
return
|
|
18434
|
+
return _context37.stop();
|
|
17419
18435
|
}
|
|
17420
18436
|
}
|
|
17421
|
-
},
|
|
18437
|
+
}, _callee37, null, [[2, 12]]);
|
|
17422
18438
|
})));
|
|
17423
|
-
var RES_UPDATE_APPOINTMENT = createAsyncThunk("resourceByAppointmentTypesSlice/res_update_appointment", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
18439
|
+
var RES_UPDATE_APPOINTMENT = createAsyncThunk("resourceByAppointmentTypesSlice/res_update_appointment", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee38() {
|
|
17424
18440
|
var payload,
|
|
17425
|
-
|
|
18441
|
+
_ref76,
|
|
17426
18442
|
rejectWithValue,
|
|
17427
18443
|
key,
|
|
17428
18444
|
queriesjson,
|
|
17429
18445
|
result,
|
|
17430
|
-
|
|
17431
|
-
return _regeneratorRuntime().wrap(function
|
|
18446
|
+
_args38 = arguments;
|
|
18447
|
+
return _regeneratorRuntime().wrap(function _callee38$(_context38) {
|
|
17432
18448
|
while (1) {
|
|
17433
|
-
switch (
|
|
18449
|
+
switch (_context38.prev = _context38.next) {
|
|
17434
18450
|
case 0:
|
|
17435
|
-
payload =
|
|
17436
|
-
|
|
17437
|
-
console.log(payload, "
|
|
17438
|
-
|
|
18451
|
+
payload = _args38.length > 0 && _args38[0] !== undefined ? _args38[0] : {};
|
|
18452
|
+
_ref76 = _args38.length > 1 ? _args38[1] : undefined, rejectWithValue = _ref76.rejectWithValue;
|
|
18453
|
+
console.log(payload, "updateeditvalue");
|
|
18454
|
+
_context38.prev = 3;
|
|
17439
18455
|
key = payload;
|
|
17440
18456
|
queriesjson = queries$i.res_update_appointment(key); // let queriesjson = generateJson.insert_appointment_add(state, key);
|
|
17441
|
-
|
|
18457
|
+
_context38.next = 8;
|
|
17442
18458
|
return fetchData({
|
|
17443
18459
|
body: JSON.stringify(queriesjson)
|
|
17444
18460
|
}, __uspsertUrl__);
|
|
17445
18461
|
case 8:
|
|
17446
|
-
|
|
18462
|
+
_context38.sent;
|
|
17447
18463
|
result = [];
|
|
17448
|
-
return
|
|
18464
|
+
return _context38.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17449
18465
|
data: result
|
|
17450
18466
|
}));
|
|
17451
18467
|
case 13:
|
|
17452
|
-
|
|
17453
|
-
|
|
17454
|
-
return
|
|
17455
|
-
message:
|
|
18468
|
+
_context38.prev = 13;
|
|
18469
|
+
_context38.t0 = _context38["catch"](3);
|
|
18470
|
+
return _context38.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
18471
|
+
message: _context38.t0.message
|
|
17456
18472
|
})));
|
|
17457
18473
|
case 16:
|
|
17458
18474
|
case "end":
|
|
17459
|
-
return
|
|
18475
|
+
return _context38.stop();
|
|
18476
|
+
}
|
|
18477
|
+
}
|
|
18478
|
+
}, _callee38, null, [[3, 13]]);
|
|
18479
|
+
})));
|
|
18480
|
+
var RES_APPOINTMENT_SINGLE_READ_QDM = createAsyncThunk("resourceByAppointmentTypesSlice/res_appointment_single_read_qdm", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee39() {
|
|
18481
|
+
var payload,
|
|
18482
|
+
_ref78,
|
|
18483
|
+
rejectWithValue,
|
|
18484
|
+
body,
|
|
18485
|
+
data,
|
|
18486
|
+
_args39 = arguments;
|
|
18487
|
+
return _regeneratorRuntime().wrap(function _callee39$(_context39) {
|
|
18488
|
+
while (1) {
|
|
18489
|
+
switch (_context39.prev = _context39.next) {
|
|
18490
|
+
case 0:
|
|
18491
|
+
payload = _args39.length > 0 && _args39[0] !== undefined ? _args39[0] : {};
|
|
18492
|
+
_ref78 = _args39.length > 1 ? _args39[1] : undefined, rejectWithValue = _ref78.rejectWithValue;
|
|
18493
|
+
_context39.prev = 2;
|
|
18494
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
18495
|
+
body = {
|
|
18496
|
+
db_name: "primarycareng",
|
|
18497
|
+
filter: {
|
|
18498
|
+
_id: payload
|
|
18499
|
+
},
|
|
18500
|
+
queryid: "4351b8fe-f580-4e84-aa8e-8e9dc5cfd7f7"
|
|
18501
|
+
};
|
|
18502
|
+
_context39.next = 6;
|
|
18503
|
+
return fetchData({
|
|
18504
|
+
body: JSON.stringify(body)
|
|
18505
|
+
}, __baseUrl__$1);
|
|
18506
|
+
case 6:
|
|
18507
|
+
data = _context39.sent;
|
|
18508
|
+
return _context39.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
18509
|
+
data: data
|
|
18510
|
+
}));
|
|
18511
|
+
case 10:
|
|
18512
|
+
_context39.prev = 10;
|
|
18513
|
+
_context39.t0 = _context39["catch"](2);
|
|
18514
|
+
return _context39.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
18515
|
+
message: _context39.t0.message
|
|
18516
|
+
})));
|
|
18517
|
+
case 13:
|
|
18518
|
+
case "end":
|
|
18519
|
+
return _context39.stop();
|
|
17460
18520
|
}
|
|
17461
18521
|
}
|
|
17462
|
-
},
|
|
18522
|
+
}, _callee39, null, [[2, 10]]);
|
|
17463
18523
|
})));
|
|
17464
|
-
var RES_APPOINTMENT_SINGLE_READ = createAsyncThunk("resourceByAppointmentTypesSlice/res_appointment_single_read", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
18524
|
+
var RES_APPOINTMENT_SINGLE_READ = createAsyncThunk("resourceByAppointmentTypesSlice/res_appointment_single_read", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee40() {
|
|
17465
18525
|
var payload,
|
|
17466
|
-
|
|
18526
|
+
_ref80,
|
|
17467
18527
|
rejectWithValue,
|
|
17468
18528
|
key,
|
|
17469
18529
|
queriesjson,
|
|
17470
18530
|
data,
|
|
17471
|
-
|
|
17472
|
-
return _regeneratorRuntime().wrap(function
|
|
18531
|
+
_args40 = arguments;
|
|
18532
|
+
return _regeneratorRuntime().wrap(function _callee40$(_context40) {
|
|
17473
18533
|
while (1) {
|
|
17474
|
-
switch (
|
|
18534
|
+
switch (_context40.prev = _context40.next) {
|
|
17475
18535
|
case 0:
|
|
17476
|
-
payload =
|
|
17477
|
-
|
|
17478
|
-
|
|
17479
|
-
_context27.prev = 3;
|
|
18536
|
+
payload = _args40.length > 0 && _args40[0] !== undefined ? _args40[0] : {};
|
|
18537
|
+
_ref80 = _args40.length > 1 ? _args40[1] : undefined, rejectWithValue = _ref80.rejectWithValue;
|
|
18538
|
+
_context40.prev = 2;
|
|
17480
18539
|
key = payload;
|
|
17481
18540
|
queriesjson = queries$i.res_appointment_single_read(key); // let queriesjson = generateJson.insert_appointment_add(state, key);
|
|
17482
|
-
|
|
18541
|
+
_context40.next = 7;
|
|
17483
18542
|
return fetchData({
|
|
17484
18543
|
body: JSON.stringify(queriesjson)
|
|
17485
18544
|
}, __readDocumentUrl__);
|
|
17486
|
-
case
|
|
17487
|
-
data =
|
|
17488
|
-
return
|
|
18545
|
+
case 7:
|
|
18546
|
+
data = _context40.sent;
|
|
18547
|
+
return _context40.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17489
18548
|
data: data
|
|
17490
18549
|
}));
|
|
17491
|
-
case
|
|
17492
|
-
|
|
17493
|
-
|
|
17494
|
-
return
|
|
17495
|
-
message:
|
|
18550
|
+
case 12:
|
|
18551
|
+
_context40.prev = 12;
|
|
18552
|
+
_context40.t0 = _context40["catch"](2);
|
|
18553
|
+
return _context40.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
18554
|
+
message: _context40.t0.message
|
|
17496
18555
|
})));
|
|
17497
|
-
case
|
|
18556
|
+
case 15:
|
|
17498
18557
|
case "end":
|
|
17499
|
-
return
|
|
18558
|
+
return _context40.stop();
|
|
17500
18559
|
}
|
|
17501
18560
|
}
|
|
17502
|
-
},
|
|
18561
|
+
}, _callee40, null, [[2, 12]]);
|
|
17503
18562
|
})));
|
|
17504
18563
|
var resourceByAppointmentTypesSlice = createSlice({
|
|
17505
18564
|
name: "resourceByAppointmentTypesSlice",
|
|
@@ -17512,24 +18571,37 @@ var resourceByAppointmentTypesSlice = createSlice({
|
|
|
17512
18571
|
resource_role_drop_down: _objectSpread2$1({}, defaultState.List),
|
|
17513
18572
|
res_general_instruction: _objectSpread2$1({}, defaultState.List),
|
|
17514
18573
|
res_special_instruction: _objectSpread2$1({}, defaultState.List),
|
|
18574
|
+
res_criteria_instruction_qdm: _objectSpread2$1({}, defaultState.List),
|
|
17515
18575
|
res_criteria_instruction: _objectSpread2$1({}, defaultState.List),
|
|
17516
18576
|
res_status_update: _objectSpread2$1({}, defaultState.List),
|
|
17517
18577
|
res_upsert_new: _objectSpread2$1({}, defaultState.List),
|
|
17518
18578
|
res_line_list_read_doc: _objectSpread2$1({}, defaultState.List),
|
|
17519
18579
|
res_patient_category_list_doc: _objectSpread2$1({}, defaultState.List),
|
|
18580
|
+
res_patient_category_list_doc_qdm: _objectSpread2$1({}, defaultState.List),
|
|
18581
|
+
res_resource_type_list_doc_qdm: _objectSpread2$1({}, defaultState.List),
|
|
17520
18582
|
res_resource_type_list_doc: _objectSpread2$1({}, defaultState.List),
|
|
18583
|
+
res_resource_role_list_doc_qdm: _objectSpread2$1({}, defaultState.List),
|
|
17521
18584
|
res_resource_role_list_doc: _objectSpread2$1({}, defaultState.List),
|
|
18585
|
+
res_resource_department_list_doc_qdm: _objectSpread2$1({}, defaultState.List),
|
|
17522
18586
|
res_resource_department_list_doc: _objectSpread2$1({}, defaultState.List),
|
|
18587
|
+
res_resource_name_list_doc_qdm: _objectSpread2$1({}, defaultState.List),
|
|
17523
18588
|
res_resource_name_list_doc: _objectSpread2$1({}, defaultState.List),
|
|
18589
|
+
res_special_instruction_list_doc_qdm: _objectSpread2$1({}, defaultState.List),
|
|
17524
18590
|
res_special_instruction_list_doc: _objectSpread2$1({}, defaultState.List),
|
|
18591
|
+
res_general_instruction_dropdown_qdm: _objectSpread2$1({}, defaultState.List),
|
|
17525
18592
|
res_general_instruction_dropdown: _objectSpread2$1({}, defaultState.List),
|
|
18593
|
+
res_service_group_qdm: _objectSpread2$1({}, defaultState.List),
|
|
17526
18594
|
res_service_group: _objectSpread2$1({}, defaultState.List),
|
|
18595
|
+
res_service_category_qdm: _objectSpread2$1({}, defaultState.List),
|
|
17527
18596
|
res_service_category: _objectSpread2$1({}, defaultState.List),
|
|
18597
|
+
res_service_code_qdm: _objectSpread2$1({}, defaultState.List),
|
|
17528
18598
|
res_service_code: _objectSpread2$1({}, defaultState.List),
|
|
17529
18599
|
res_criteria_list_doc: _objectSpread2$1({}, defaultState.List),
|
|
18600
|
+
res_appointment_list_qdm: _objectSpread2$1({}, defaultState.List),
|
|
17530
18601
|
res_appointment_list: _objectSpread2$1({}, defaultState.List),
|
|
17531
18602
|
res_upsert_appointment: _objectSpread2$1({}, defaultState.List),
|
|
17532
18603
|
res_update_appointment: _objectSpread2$1({}, defaultState.List),
|
|
18604
|
+
res_appointment_single_read_qdm: _objectSpread2$1({}, defaultState.List),
|
|
17533
18605
|
res_appointment_single_read: _objectSpread2$1({}, defaultState.List)
|
|
17534
18606
|
},
|
|
17535
18607
|
extraReducers: (_extraReducers$A = {}, _defineProperty(_extraReducers$A, RESOURCE_BY_APPOINTMRNT_TYPES.fulfilled, function (state, action) {
|
|
@@ -17586,6 +18658,12 @@ var resourceByAppointmentTypesSlice = createSlice({
|
|
|
17586
18658
|
state.res_criteria_instruction.loading = true, state.res_criteria_instruction.error = false, state.res_criteria_instruction.loading = true;
|
|
17587
18659
|
}), _defineProperty(_extraReducers$A, RES_CRITERIA_INSTRUVTION.rejected, function (state, action) {
|
|
17588
18660
|
state.res_criteria_instruction.loading = false, state.res_criteria_instruction.error = true, state.res_criteria_instruction = action.payload;
|
|
18661
|
+
}), _defineProperty(_extraReducers$A, RES_CRITERIA_INSTRUCTION_QDM.fulfilled, function (state, action) {
|
|
18662
|
+
state.res_criteria_instruction_qdm.loading = false, state.res_criteria_instruction_qdm.error = false, state.res_criteria_instruction_qdm = action.payload;
|
|
18663
|
+
}), _defineProperty(_extraReducers$A, RES_CRITERIA_INSTRUCTION_QDM.pending, function (state, action) {
|
|
18664
|
+
state.res_criteria_instruction_qdm.loading = true, state.res_criteria_instruction_qdm.error = false, state.res_criteria_instruction_qdm.loading = true;
|
|
18665
|
+
}), _defineProperty(_extraReducers$A, RES_CRITERIA_INSTRUCTION_QDM.rejected, function (state, action) {
|
|
18666
|
+
state.res_criteria_instruction_qdm.loading = false, state.res_criteria_instruction_qdm.error = true, state.res_criteria_instruction_qdm = action.payload;
|
|
17589
18667
|
}), _defineProperty(_extraReducers$A, UPDATE_STATUS_RES_LINE_LIST.fulfilled, function (state, action) {
|
|
17590
18668
|
state.res_status_update.loading = false, state.res_status_update.error = false, state.res_status_update = action.payload;
|
|
17591
18669
|
}), _defineProperty(_extraReducers$A, UPDATE_STATUS_RES_LINE_LIST.pending, function (state, action) {
|
|
@@ -17610,42 +18688,84 @@ var resourceByAppointmentTypesSlice = createSlice({
|
|
|
17610
18688
|
state.res_patient_category_list_doc.loading = true, state.res_patient_category_list_doc.error = false, state.res_patient_category_list_doc.loading = true;
|
|
17611
18689
|
}), _defineProperty(_extraReducers$A, RES_PATIENT_CATEGORY_LIST_DOC.rejected, function (state, action) {
|
|
17612
18690
|
state.res_patient_category_list_doc.loading = false, state.res_patient_category_list_doc.error = true, state.res_patient_category_list_doc = action.payload;
|
|
18691
|
+
}), _defineProperty(_extraReducers$A, RES_PATIENT_CATEGORY_LIST_DOC_QDM.fulfilled, function (state, action) {
|
|
18692
|
+
state.res_patient_category_list_doc_qdm.loading = false, state.res_patient_category_list_doc_qdm.error = false, state.res_patient_category_list_doc_qdm = action.payload;
|
|
18693
|
+
}), _defineProperty(_extraReducers$A, RES_PATIENT_CATEGORY_LIST_DOC_QDM.pending, function (state, action) {
|
|
18694
|
+
state.res_patient_category_list_doc_qdm.loading = true, state.res_patient_category_list_doc_qdm.error = false, state.res_patient_category_list_doc_qdm.loading = true;
|
|
18695
|
+
}), _defineProperty(_extraReducers$A, RES_PATIENT_CATEGORY_LIST_DOC_QDM.rejected, function (state, action) {
|
|
18696
|
+
state.res_patient_category_list_doc_qdm.loading = false, state.res_patient_category_list_doc_qdm.error = true, state.res_patient_category_list_doc_qdm = action.payload;
|
|
17613
18697
|
}), _defineProperty(_extraReducers$A, RES_RESOURCE_TYPE_LIST_DOC.fulfilled, function (state, action) {
|
|
17614
18698
|
state.res_resource_type_list_doc.loading = false, state.res_resource_type_list_doc.error = false, state.res_resource_type_list_doc = action.payload;
|
|
17615
18699
|
}), _defineProperty(_extraReducers$A, RES_RESOURCE_TYPE_LIST_DOC.pending, function (state, action) {
|
|
17616
18700
|
state.res_resource_type_list_doc.loading = true, state.res_resource_type_list_doc.error = false, state.res_resource_type_list_doc.loading = true;
|
|
17617
18701
|
}), _defineProperty(_extraReducers$A, RES_RESOURCE_TYPE_LIST_DOC.rejected, function (state, action) {
|
|
17618
18702
|
state.res_resource_type_list_doc.loading = false, state.res_resource_type_list_doc.error = true, state.res_resource_type_list_doc = action.payload;
|
|
18703
|
+
}), _defineProperty(_extraReducers$A, RES_RESOURCE_TYPE_LIST_DOC_QDM.fulfilled, function (state, action) {
|
|
18704
|
+
state.res_resource_type_list_doc_qdm.loading = false, state.res_resource_type_list_doc_qdm.error = false, state.res_resource_type_list_doc_qdm = action.payload;
|
|
18705
|
+
}), _defineProperty(_extraReducers$A, RES_RESOURCE_TYPE_LIST_DOC_QDM.pending, function (state, action) {
|
|
18706
|
+
state.res_resource_type_list_doc_qdm.loading = true, state.res_resource_type_list_doc_qdm.error = false, state.res_resource_type_list_doc_qdm.loading = true;
|
|
18707
|
+
}), _defineProperty(_extraReducers$A, RES_RESOURCE_TYPE_LIST_DOC_QDM.rejected, function (state, action) {
|
|
18708
|
+
state.res_resource_type_list_doc_qdm.loading = false, state.res_resource_type_list_doc_qdm.error = true, state.res_resource_type_list_doc_qdm = action.payload;
|
|
17619
18709
|
}), _defineProperty(_extraReducers$A, RES_RESOURCE_ROLE_LIST_DOC.fulfilled, function (state, action) {
|
|
17620
18710
|
state.res_resource_role_list_doc.loading = false, state.res_resource_role_list_doc.error = false, state.res_resource_role_list_doc = action.payload;
|
|
17621
18711
|
}), _defineProperty(_extraReducers$A, RES_RESOURCE_ROLE_LIST_DOC.pending, function (state, action) {
|
|
17622
18712
|
state.res_resource_role_list_doc.loading = true, state.res_resource_role_list_doc.error = false, state.res_resource_role_list_doc.loading = true;
|
|
17623
18713
|
}), _defineProperty(_extraReducers$A, RES_RESOURCE_ROLE_LIST_DOC.rejected, function (state, action) {
|
|
17624
18714
|
state.res_resource_role_list_doc.loading = false, state.res_resource_role_list_doc.error = true, state.res_resource_role_list_doc = action.payload;
|
|
18715
|
+
}), _defineProperty(_extraReducers$A, RES_RESOURCE_ROLE_LIST_DOC_QDM.fulfilled, function (state, action) {
|
|
18716
|
+
state.res_resource_role_list_doc_qdm.loading = false, state.res_resource_role_list_doc_qdm.error = false, state.res_resource_role_list_doc_qdm = action.payload;
|
|
18717
|
+
}), _defineProperty(_extraReducers$A, RES_RESOURCE_ROLE_LIST_DOC_QDM.pending, function (state, action) {
|
|
18718
|
+
state.res_resource_role_list_doc_qdm.loading = true, state.res_resource_role_list_doc_qdm.error = false, state.res_resource_role_list_doc_qdm.loading = true;
|
|
18719
|
+
}), _defineProperty(_extraReducers$A, RES_RESOURCE_ROLE_LIST_DOC_QDM.rejected, function (state, action) {
|
|
18720
|
+
state.res_resource_role_list_doc_qdm.loading = false, state.res_resource_role_list_doc_qdm.error = true, state.res_resource_role_list_doc_qdm = action.payload;
|
|
17625
18721
|
}), _defineProperty(_extraReducers$A, RES_RESOURCE_DEPARTMENT_LIST_DOC.fulfilled, function (state, action) {
|
|
17626
18722
|
state.res_resource_department_list_doc.loading = false, state.res_resource_department_list_doc.error = false, state.res_resource_department_list_doc = action.payload;
|
|
17627
18723
|
}), _defineProperty(_extraReducers$A, RES_RESOURCE_DEPARTMENT_LIST_DOC.pending, function (state, action) {
|
|
17628
18724
|
state.res_resource_department_list_doc.loading = true, state.res_resource_department_list_doc.error = false, state.res_resource_department_list_doc.loading = true;
|
|
17629
18725
|
}), _defineProperty(_extraReducers$A, RES_RESOURCE_DEPARTMENT_LIST_DOC.rejected, function (state, action) {
|
|
17630
18726
|
state.res_resource_department_list_doc.loading = false, state.res_resource_department_list_doc.error = true, state.res_resource_department_list_doc = action.payload;
|
|
18727
|
+
}), _defineProperty(_extraReducers$A, RES_RESOURCE_DEPARTMENT_LIST_DOC_QDM.fulfilled, function (state, action) {
|
|
18728
|
+
state.res_resource_department_list_doc_qdm.loading = false, state.res_resource_department_list_doc_qdm.error = false, state.res_resource_department_list_doc_qdm = action.payload;
|
|
18729
|
+
}), _defineProperty(_extraReducers$A, RES_RESOURCE_DEPARTMENT_LIST_DOC_QDM.pending, function (state, action) {
|
|
18730
|
+
state.res_resource_department_list_doc_qdm.loading = true, state.res_resource_department_list_doc_qdm.error = false, state.res_resource_department_list_doc_qdm.loading = true;
|
|
18731
|
+
}), _defineProperty(_extraReducers$A, RES_RESOURCE_DEPARTMENT_LIST_DOC_QDM.rejected, function (state, action) {
|
|
18732
|
+
state.res_resource_department_list_doc_qdm.loading = false, state.res_resource_department_list_doc_qdm.error = true, state.res_resource_department_list_doc_qdm = action.payload;
|
|
17631
18733
|
}), _defineProperty(_extraReducers$A, RES_RESOURCE_NAME_LIST_DOC.fulfilled, function (state, action) {
|
|
17632
18734
|
state.res_resource_name_list_doc.loading = false, state.res_resource_name_list_doc.error = false, state.res_resource_name_list_doc = action.payload;
|
|
17633
18735
|
}), _defineProperty(_extraReducers$A, RES_RESOURCE_NAME_LIST_DOC.pending, function (state, action) {
|
|
17634
18736
|
state.res_resource_name_list_doc.loading = true, state.res_resource_name_list_doc.error = false, state.res_resource_name_list_doc.loading = true;
|
|
17635
18737
|
}), _defineProperty(_extraReducers$A, RES_RESOURCE_NAME_LIST_DOC.rejected, function (state, action) {
|
|
17636
18738
|
state.res_resource_name_list_doc.loading = false, state.res_resource_name_list_doc.error = true, state.res_resource_name_list_doc = action.payload;
|
|
18739
|
+
}), _defineProperty(_extraReducers$A, RES_RESOURCE_NAME_LIST_DOC_QDM.fulfilled, function (state, action) {
|
|
18740
|
+
state.res_resource_name_list_doc_qdm.loading = false, state.res_resource_name_list_doc_qdm.error = false, state.res_resource_name_list_doc_qdm = action.payload;
|
|
18741
|
+
}), _defineProperty(_extraReducers$A, RES_RESOURCE_NAME_LIST_DOC_QDM.pending, function (state, action) {
|
|
18742
|
+
state.res_resource_name_list_doc_qdm.loading = true, state.res_resource_name_list_doc_qdm.error = false, state.res_resource_name_list_doc_qdm.loading = true;
|
|
18743
|
+
}), _defineProperty(_extraReducers$A, RES_RESOURCE_NAME_LIST_DOC_QDM.rejected, function (state, action) {
|
|
18744
|
+
state.res_resource_name_list_doc_qdm.loading = false, state.res_resource_name_list_doc_qdm.error = true, state.res_resource_name_list_doc_qdm = action.payload;
|
|
17637
18745
|
}), _defineProperty(_extraReducers$A, RES_SPECIAL_INSTRUCTION_LIST_DOC.fulfilled, function (state, action) {
|
|
17638
18746
|
state.res_special_instruction_list_doc.loading = false, state.res_special_instruction_list_doc.error = false, state.res_special_instruction_list_doc = action.payload;
|
|
17639
18747
|
}), _defineProperty(_extraReducers$A, RES_SPECIAL_INSTRUCTION_LIST_DOC.pending, function (state, action) {
|
|
17640
18748
|
state.res_special_instruction_list_doc.loading = true, state.res_special_instruction_list_doc.error = false, state.res_special_instruction_list_doc.loading = true;
|
|
17641
18749
|
}), _defineProperty(_extraReducers$A, RES_SPECIAL_INSTRUCTION_LIST_DOC.rejected, function (state, action) {
|
|
17642
18750
|
state.res_special_instruction_list_doc.loading = false, state.res_special_instruction_list_doc.error = true, state.res_special_instruction_list_doc = action.payload;
|
|
18751
|
+
}), _defineProperty(_extraReducers$A, RES_SPECIAL_INSTRUCTION_LIST_DOC_QDM.fulfilled, function (state, action) {
|
|
18752
|
+
state.res_special_instruction_list_doc_qdm.loading = false, state.res_special_instruction_list_doc_qdm.error = false, state.res_special_instruction_list_doc_qdm = action.payload;
|
|
18753
|
+
}), _defineProperty(_extraReducers$A, RES_SPECIAL_INSTRUCTION_LIST_DOC_QDM.pending, function (state, action) {
|
|
18754
|
+
state.res_special_instruction_list_doc_qdm.loading = true, state.res_special_instruction_list_doc_qdm.error = false, state.res_special_instruction_list_doc_qdm.loading = true;
|
|
18755
|
+
}), _defineProperty(_extraReducers$A, RES_SPECIAL_INSTRUCTION_LIST_DOC_QDM.rejected, function (state, action) {
|
|
18756
|
+
state.res_special_instruction_list_doc_qdm.loading = false, state.res_special_instruction_list_doc_qdm.error = true, state.res_special_instruction_list_doc_qdm = action.payload;
|
|
17643
18757
|
}), _defineProperty(_extraReducers$A, RES_GENERAL_INSTRUCTION_DROPDOWN.fulfilled, function (state, action) {
|
|
17644
18758
|
state.res_general_instruction_dropdown.loading = false, state.res_general_instruction_dropdown.error = false, state.res_general_instruction_dropdown = action.payload;
|
|
17645
18759
|
}), _defineProperty(_extraReducers$A, RES_GENERAL_INSTRUCTION_DROPDOWN.pending, function (state, action) {
|
|
17646
18760
|
state.res_general_instruction_dropdown.loading = true, state.res_general_instruction_dropdown.error = false, state.res_general_instruction_dropdown.loading = true;
|
|
17647
18761
|
}), _defineProperty(_extraReducers$A, RES_GENERAL_INSTRUCTION_DROPDOWN.rejected, function (state, action) {
|
|
17648
18762
|
state.res_general_instruction_dropdown.loading = false, state.res_general_instruction_dropdown.error = true, state.res_general_instruction_dropdown = action.payload;
|
|
18763
|
+
}), _defineProperty(_extraReducers$A, RES_GENERAL_INSTRUCTION_DROPDOWN_QDM.fulfilled, function (state, action) {
|
|
18764
|
+
state.res_general_instruction_dropdown_qdm.loading = false, state.res_general_instruction_dropdown_qdm.error = false, state.res_general_instruction_dropdown_qdm = action.payload;
|
|
18765
|
+
}), _defineProperty(_extraReducers$A, RES_GENERAL_INSTRUCTION_DROPDOWN_QDM.pending, function (state, action) {
|
|
18766
|
+
state.res_general_instruction_dropdown_qdm.loading = true, state.res_general_instruction_dropdown_qdm.error = false, state.res_general_instruction_dropdown_qdm.loading = true;
|
|
18767
|
+
}), _defineProperty(_extraReducers$A, RES_GENERAL_INSTRUCTION_DROPDOWN_QDM.rejected, function (state, action) {
|
|
18768
|
+
state.res_general_instruction_dropdown_qdm.loading = false, state.res_general_instruction_dropdown_qdm.error = true, state.res_general_instruction_dropdown_qdm = action.payload;
|
|
17649
18769
|
}), _defineProperty(_extraReducers$A, RES_CRITERIA_LIST_DOC.fulfilled, function (state, action) {
|
|
17650
18770
|
state.res_criteria_list_doc.loading = false, state.res_criteria_list_doc.error = false, state.res_criteria_list_doc = action.payload;
|
|
17651
18771
|
}), _defineProperty(_extraReducers$A, RES_CRITERIA_LIST_DOC.pending, function (state, action) {
|
|
@@ -17658,24 +18778,48 @@ var resourceByAppointmentTypesSlice = createSlice({
|
|
|
17658
18778
|
state.res_service_group.loading = true, state.res_service_group.error = false, state.res_service_group.loading = true;
|
|
17659
18779
|
}), _defineProperty(_extraReducers$A, RES_SERVICE_GROUP.rejected, function (state, action) {
|
|
17660
18780
|
state.res_service_group.loading = false, state.res_service_group.error = true, state.res_service_group = action.payload;
|
|
18781
|
+
}), _defineProperty(_extraReducers$A, RES_SERVICE_GROUP_QDM.fulfilled, function (state, action) {
|
|
18782
|
+
state.res_service_group_qdm.loading = false, state.res_service_group_qdm.error = false, state.res_service_group_qdm = action.payload;
|
|
18783
|
+
}), _defineProperty(_extraReducers$A, RES_SERVICE_GROUP_QDM.pending, function (state, action) {
|
|
18784
|
+
state.res_service_group_qdm.loading = true, state.res_service_group_qdm.error = false, state.res_service_group_qdm.loading = true;
|
|
18785
|
+
}), _defineProperty(_extraReducers$A, RES_SERVICE_GROUP_QDM.rejected, function (state, action) {
|
|
18786
|
+
state.res_service_group_qdm.loading = false, state.res_service_group_qdm.error = true, state.res_service_group_qdm = action.payload;
|
|
17661
18787
|
}), _defineProperty(_extraReducers$A, RES_SERVICE_CATEGORY.fulfilled, function (state, action) {
|
|
17662
18788
|
state.res_service_category.loading = false, state.res_service_category.error = false, state.res_service_category = action.payload;
|
|
17663
18789
|
}), _defineProperty(_extraReducers$A, RES_SERVICE_CATEGORY.pending, function (state, action) {
|
|
17664
18790
|
state.res_service_category.loading = true, state.res_service_category.error = false, state.res_service_category.loading = true;
|
|
17665
18791
|
}), _defineProperty(_extraReducers$A, RES_SERVICE_CATEGORY.rejected, function (state, action) {
|
|
17666
18792
|
state.res_service_category.loading = false, state.res_service_category.error = true, state.res_service_category = action.payload;
|
|
18793
|
+
}), _defineProperty(_extraReducers$A, RES_SERVICE_CATEGORY_QDM.fulfilled, function (state, action) {
|
|
18794
|
+
state.res_service_category_qdm.loading = false, state.res_service_category_qdm.error = false, state.res_service_category_qdm = action.payload;
|
|
18795
|
+
}), _defineProperty(_extraReducers$A, RES_SERVICE_CATEGORY_QDM.pending, function (state, action) {
|
|
18796
|
+
state.res_service_category_qdm.loading = true, state.res_service_category_qdm.error = false, state.res_service_category_qdm.loading = true;
|
|
18797
|
+
}), _defineProperty(_extraReducers$A, RES_SERVICE_CATEGORY_QDM.rejected, function (state, action) {
|
|
18798
|
+
state.res_service_category_qdm.loading = false, state.res_service_category_qdm.error = true, state.res_service_category_qdm = action.payload;
|
|
17667
18799
|
}), _defineProperty(_extraReducers$A, RES_SERVICE_CODE.fulfilled, function (state, action) {
|
|
17668
18800
|
state.res_service_code.loading = false, state.res_service_code.error = false, state.res_service_code = action.payload;
|
|
17669
18801
|
}), _defineProperty(_extraReducers$A, RES_SERVICE_CODE.pending, function (state, action) {
|
|
17670
18802
|
state.res_service_code.loading = true, state.res_service_code.error = false, state.res_service_code.loading = true;
|
|
17671
18803
|
}), _defineProperty(_extraReducers$A, RES_SERVICE_CODE.rejected, function (state, action) {
|
|
17672
18804
|
state.res_service_code.loading = false, state.res_service_code.error = true, state.res_service_code = action.payload;
|
|
18805
|
+
}), _defineProperty(_extraReducers$A, RES_SERVICE_CODE_QDM.fulfilled, function (state, action) {
|
|
18806
|
+
state.res_service_code_qdm.loading = false, state.res_service_code_qdm.error = false, state.res_service_code_qdm = action.payload;
|
|
18807
|
+
}), _defineProperty(_extraReducers$A, RES_SERVICE_CODE_QDM.pending, function (state, action) {
|
|
18808
|
+
state.res_service_code_qdm.loading = true, state.res_service_code_qdm.error = false, state.res_service_code_qdm.loading = true;
|
|
18809
|
+
}), _defineProperty(_extraReducers$A, RES_SERVICE_CODE_QDM.rejected, function (state, action) {
|
|
18810
|
+
state.res_service_code_qdm.loading = false, state.res_service_code_qdm.error = true, state.res_service_code_qdm = action.payload;
|
|
17673
18811
|
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_LIST.fulfilled, function (state, action) {
|
|
17674
18812
|
state.res_appointment_list.loading = false, state.res_appointment_list.error = false, state.res_appointment_list = action.payload;
|
|
17675
18813
|
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_LIST.pending, function (state, action) {
|
|
17676
18814
|
state.res_appointment_list.loading = true, state.res_appointment_list.error = false, state.res_appointment_list.loading = true;
|
|
17677
18815
|
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_LIST.rejected, function (state, action) {
|
|
17678
18816
|
state.res_appointment_list.loading = false, state.res_appointment_list.error = true, state.res_appointment_list = action.payload;
|
|
18817
|
+
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_LIST_QDM.fulfilled, function (state, action) {
|
|
18818
|
+
state.res_appointment_list_qdm.loading = false, state.res_appointment_list_qdm.error = false, state.res_appointment_list_qdm = action.payload;
|
|
18819
|
+
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_LIST_QDM.pending, function (state, action) {
|
|
18820
|
+
state.res_appointment_list_qdm.loading = true, state.res_appointment_list_qdm.error = false, state.res_appointment_list_qdm.loading = true;
|
|
18821
|
+
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_LIST_QDM.rejected, function (state, action) {
|
|
18822
|
+
state.res_appointment_list_qdm.loading = false, state.res_appointment_list_qdm.error = true, state.res_appointment_list_qdm = action.payload;
|
|
17679
18823
|
}), _defineProperty(_extraReducers$A, RES_UPSERT_APPOINTMENT.fulfilled, function (state, action) {
|
|
17680
18824
|
state.res_upsert_appointment.loading = false, state.res_upsert_appointment.error = false, state.res_upsert_appointment = action.payload;
|
|
17681
18825
|
}), _defineProperty(_extraReducers$A, RES_UPSERT_APPOINTMENT.pending, function (state, action) {
|
|
@@ -17694,6 +18838,12 @@ var resourceByAppointmentTypesSlice = createSlice({
|
|
|
17694
18838
|
state.res_appointment_single_read.loading = true, state.res_appointment_single_read.error = false, state.res_appointment_single_read.loading = true;
|
|
17695
18839
|
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_SINGLE_READ.rejected, function (state, action) {
|
|
17696
18840
|
state.res_appointment_single_read.loading = false, state.res_appointment_single_read.error = true, state.res_appointment_single_read = action.payload;
|
|
18841
|
+
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_SINGLE_READ_QDM.fulfilled, function (state, action) {
|
|
18842
|
+
state.res_appointment_single_read_qdm.loading = false, state.res_appointment_single_read_qdm.error = false, state.res_appointment_single_read_qdm = action.payload;
|
|
18843
|
+
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_SINGLE_READ_QDM.pending, function (state, action) {
|
|
18844
|
+
state.res_appointment_single_read_qdm.loading = true, state.res_appointment_single_read_qdm.error = false, state.res_appointment_single_read_qdm.loading = true;
|
|
18845
|
+
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_SINGLE_READ_QDM.rejected, function (state, action) {
|
|
18846
|
+
state.res_appointment_single_read_qdm.loading = false, state.res_appointment_single_read_qdm.error = true, state.res_appointment_single_read_qdm = action.payload;
|
|
17697
18847
|
}), _extraReducers$A)
|
|
17698
18848
|
});
|
|
17699
18849
|
var resourceByAppointmentTypes = {
|
|
@@ -17706,24 +18856,37 @@ var resourceByAppointmentTypes = {
|
|
|
17706
18856
|
RES_GENERAL_INSTRUCTION: RES_GENERAL_INSTRUCTION,
|
|
17707
18857
|
RES_SPECIALINSTRUCTION: RES_SPECIALINSTRUCTION,
|
|
17708
18858
|
RES_CRITERIA_INSTRUVTION: RES_CRITERIA_INSTRUVTION,
|
|
18859
|
+
RES_CRITERIA_INSTRUCTION_QDM: RES_CRITERIA_INSTRUCTION_QDM,
|
|
17709
18860
|
UPDATE_STATUS_RES_LINE_LIST: UPDATE_STATUS_RES_LINE_LIST,
|
|
17710
18861
|
RES_UPSERT_INSER_NEW: RES_UPSERT_INSER_NEW,
|
|
17711
18862
|
RES_LINE_LIST_READ_DOC: RES_LINE_LIST_READ_DOC,
|
|
17712
18863
|
RES_PATIENT_CATEGORY_LIST_DOC: RES_PATIENT_CATEGORY_LIST_DOC,
|
|
18864
|
+
RES_PATIENT_CATEGORY_LIST_DOC_QDM: RES_PATIENT_CATEGORY_LIST_DOC_QDM,
|
|
17713
18865
|
RES_RESOURCE_TYPE_LIST_DOC: RES_RESOURCE_TYPE_LIST_DOC,
|
|
18866
|
+
RES_RESOURCE_TYPE_LIST_DOC_QDM: RES_RESOURCE_TYPE_LIST_DOC_QDM,
|
|
17714
18867
|
RES_RESOURCE_ROLE_LIST_DOC: RES_RESOURCE_ROLE_LIST_DOC,
|
|
18868
|
+
RES_RESOURCE_ROLE_LIST_DOC_QDM: RES_RESOURCE_ROLE_LIST_DOC_QDM,
|
|
17715
18869
|
RES_RESOURCE_DEPARTMENT_LIST_DOC: RES_RESOURCE_DEPARTMENT_LIST_DOC,
|
|
18870
|
+
RES_RESOURCE_DEPARTMENT_LIST_DOC_QDM: RES_RESOURCE_DEPARTMENT_LIST_DOC_QDM,
|
|
17716
18871
|
RES_RESOURCE_NAME_LIST_DOC: RES_RESOURCE_NAME_LIST_DOC,
|
|
18872
|
+
RES_RESOURCE_NAME_LIST_DOC_QDM: RES_RESOURCE_NAME_LIST_DOC_QDM,
|
|
17717
18873
|
RES_SPECIAL_INSTRUCTION_LIST_DOC: RES_SPECIAL_INSTRUCTION_LIST_DOC,
|
|
18874
|
+
RES_SPECIAL_INSTRUCTION_LIST_DOC_QDM: RES_SPECIAL_INSTRUCTION_LIST_DOC_QDM,
|
|
17718
18875
|
RES_GENERAL_INSTRUCTION_DROPDOWN: RES_GENERAL_INSTRUCTION_DROPDOWN,
|
|
18876
|
+
RES_GENERAL_INSTRUCTION_DROPDOWN_QDM: RES_GENERAL_INSTRUCTION_DROPDOWN_QDM,
|
|
17719
18877
|
RES_SERVICE_GROUP: RES_SERVICE_GROUP,
|
|
18878
|
+
RES_SERVICE_GROUP_QDM: RES_SERVICE_GROUP_QDM,
|
|
17720
18879
|
RES_SERVICE_CATEGORY: RES_SERVICE_CATEGORY,
|
|
18880
|
+
RES_SERVICE_CATEGORY_QDM: RES_SERVICE_CATEGORY_QDM,
|
|
17721
18881
|
RES_SERVICE_CODE: RES_SERVICE_CODE,
|
|
18882
|
+
RES_SERVICE_CODE_QDM: RES_SERVICE_CODE_QDM,
|
|
17722
18883
|
RES_CRITERIA_LIST_DOC: RES_CRITERIA_LIST_DOC,
|
|
17723
18884
|
RES_APPOINTMENT_LIST: RES_APPOINTMENT_LIST,
|
|
18885
|
+
RES_APPOINTMENT_LIST_QDM: RES_APPOINTMENT_LIST_QDM,
|
|
17724
18886
|
RES_UPSERT_APPOINTMENT: RES_UPSERT_APPOINTMENT,
|
|
17725
18887
|
RES_UPDATE_APPOINTMENT: RES_UPDATE_APPOINTMENT,
|
|
17726
|
-
RES_APPOINTMENT_SINGLE_READ: RES_APPOINTMENT_SINGLE_READ
|
|
18888
|
+
RES_APPOINTMENT_SINGLE_READ: RES_APPOINTMENT_SINGLE_READ,
|
|
18889
|
+
RES_APPOINTMENT_SINGLE_READ_QDM: RES_APPOINTMENT_SINGLE_READ_QDM
|
|
17727
18890
|
};
|
|
17728
18891
|
var resourceByAppointmentTypesSlice$1 = resourceByAppointmentTypesSlice.reducer;
|
|
17729
18892
|
|