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