primary_care_admin_binder 0.1.212 → 0.1.213
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 +255 -125
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -13152,7 +13152,7 @@ var workday_timeslotList = function workday_timeslotList(data) {
|
|
|
13152
13152
|
return timeslot_Lists;
|
|
13153
13153
|
};
|
|
13154
13154
|
var generateJSON = function generateJSON(data, _key) {
|
|
13155
|
-
var _data$overRideCard, _data$operationalStat, _data$operationalStat2, _data$locationType$la, _data$locationType, _data$entityName$valu, _data$entityName, _data$locationRoleTyp, _data$locationRoleTyp2, _data$parentLocationI, _data$parentLocationI2, _data$speciality$labe, _data$speciality, _data$entityType$labe, _data$entityType, _data$formid$label, _data$formid, _data$typeofcare$labe, _data$typeofcare, _data$clinicalInstruc, _data$clinicDetails, _data$photo$0$fileNam, _data$photo, _data$photo$0$fileid, _data$photo2, _data$photo$0$filetyp, _data$photo3, _data$photo$0$objecti, _data$photo4;
|
|
13155
|
+
var _data$overRideCard, _data$operationalStat, _data$operationalStat2, _data$aliases, _data$locationType$la, _data$locationType, _data$entityName$valu, _data$entityName, _data$locationRoleTyp, _data$locationRoleTyp2, _data$parentLocationI, _data$parentLocationI2, _data$speciality$labe, _data$speciality, _data$entityType$labe, _data$entityType, _data$formid$label, _data$formid, _data$typeofcare$labe, _data$typeofcare, _data$clinicalInstruc, _data$clinicDetails, _data$photo$0$fileNam, _data$photo, _data$photo$0$fileid, _data$photo2, _data$photo$0$filetyp, _data$photo3, _data$photo$0$objecti, _data$photo4;
|
|
13156
13156
|
var filter = {};
|
|
13157
13157
|
if (_key) {
|
|
13158
13158
|
filter = {
|
|
@@ -13255,6 +13255,18 @@ var generateJSON = function generateJSON(data, _key) {
|
|
|
13255
13255
|
operationalStatus: (_data$operationalStat = (_data$operationalStat2 = data.operationalStatus) === null || _data$operationalStat2 === void 0 ? void 0 : _data$operationalStat2.label) !== null && _data$operationalStat !== void 0 ? _data$operationalStat : null,
|
|
13256
13256
|
shortdesc: data.shortDescription,
|
|
13257
13257
|
longdesc: data.longDescription,
|
|
13258
|
+
// Alternate descriptions, one per language: [{ lang, description }]
|
|
13259
|
+
// lang = the language's shortdesc (the dropdown shows its display)
|
|
13260
|
+
alias: ((_data$aliases = data === null || data === void 0 ? void 0 : data.aliases) !== null && _data$aliases !== void 0 ? _data$aliases : []).filter(function (row) {
|
|
13261
|
+
var _row$language;
|
|
13262
|
+
return row === null || row === void 0 || (_row$language = row.language) === null || _row$language === void 0 ? void 0 : _row$language.shortdesc;
|
|
13263
|
+
}).map(function (row) {
|
|
13264
|
+
var _row$description;
|
|
13265
|
+
return {
|
|
13266
|
+
lang: row.language.shortdesc,
|
|
13267
|
+
description: String((_row$description = row === null || row === void 0 ? void 0 : row.description) !== null && _row$description !== void 0 ? _row$description : "").trim() || null
|
|
13268
|
+
};
|
|
13269
|
+
}),
|
|
13258
13270
|
telecom: contactArr,
|
|
13259
13271
|
address: [{
|
|
13260
13272
|
use: "",
|
|
@@ -16189,6 +16201,19 @@ var masterQuery$7 = {
|
|
|
16189
16201
|
// };
|
|
16190
16202
|
// },
|
|
16191
16203
|
|
|
16204
|
+
// Languages for the alternate description (saved to LocationMaster.alias)
|
|
16205
|
+
locationMasterLanguage: function locationMasterLanguage() {
|
|
16206
|
+
return {
|
|
16207
|
+
appcode: _dbName,
|
|
16208
|
+
requestid: "b283129b-9841-419b-bdfc-de5105ebbad7",
|
|
16209
|
+
filter: {
|
|
16210
|
+
type: "LANGUAGE",
|
|
16211
|
+
code: "",
|
|
16212
|
+
status: true,
|
|
16213
|
+
sortField: "display"
|
|
16214
|
+
}
|
|
16215
|
+
};
|
|
16216
|
+
},
|
|
16192
16217
|
locationMasterOperationalStatus: function locationMasterOperationalStatus() {
|
|
16193
16218
|
return {
|
|
16194
16219
|
appcode: _dbName,
|
|
@@ -16212,13 +16237,16 @@ var masterQuery$7 = {
|
|
|
16212
16237
|
// };
|
|
16213
16238
|
// },
|
|
16214
16239
|
|
|
16240
|
+
// Locations of the selected Entity Name (managingorgid = its _id)
|
|
16215
16241
|
locationMasterParentLocationIdDescription: function locationMasterParentLocationIdDescription() {
|
|
16242
|
+
var managingorgid = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
16216
16243
|
return {
|
|
16217
16244
|
appcode: _dbName,
|
|
16218
16245
|
requestid: "ceb2a6c1-864f-4ea8-9308-6135d9355410",
|
|
16219
16246
|
filter: {
|
|
16220
16247
|
activestatus: true,
|
|
16221
|
-
sort: "locationID"
|
|
16248
|
+
sort: "locationID",
|
|
16249
|
+
managingorgid: managingorgid
|
|
16222
16250
|
}
|
|
16223
16251
|
};
|
|
16224
16252
|
},
|
|
@@ -16402,17 +16430,30 @@ var masterQuery$7 = {
|
|
|
16402
16430
|
}
|
|
16403
16431
|
};
|
|
16404
16432
|
|
|
16405
|
-
|
|
16433
|
+
// fallback is used when the master list hasn't loaded (or lacks the entry), so
|
|
16434
|
+
// the record can be read without waiting for every master list
|
|
16435
|
+
var safeFind = function safeFind(stateObj, predicate, fallback) {
|
|
16406
16436
|
if (stateObj && Array.isArray(stateObj.data)) {
|
|
16407
16437
|
var result = stateObj.data.find(predicate);
|
|
16408
16438
|
if (result) return result;
|
|
16409
16439
|
}
|
|
16410
|
-
return {
|
|
16440
|
+
return fallback !== null && fallback !== void 0 ? fallback : {
|
|
16411
16441
|
label: "",
|
|
16412
16442
|
value: ""
|
|
16413
16443
|
};
|
|
16414
16444
|
};
|
|
16415
16445
|
|
|
16446
|
+
// Option built from the record's own expanded document, in the same
|
|
16447
|
+
// { label: _id, value: <text> } shape the master lists use
|
|
16448
|
+
var optionFromRecord = function optionFromRecord(doc) {
|
|
16449
|
+
var _doc$textField;
|
|
16450
|
+
var textField = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "display";
|
|
16451
|
+
return doc && _typeof(doc) === "object" && doc._id ? {
|
|
16452
|
+
label: doc._id,
|
|
16453
|
+
value: (_doc$textField = doc[textField]) !== null && _doc$textField !== void 0 ? _doc$textField : ""
|
|
16454
|
+
} : undefined;
|
|
16455
|
+
};
|
|
16456
|
+
|
|
16416
16457
|
//CONTACT DETAILS JSON
|
|
16417
16458
|
var contactDetailList = function contactDetailList(data, state) {
|
|
16418
16459
|
var contact_Lists = [];
|
|
@@ -16451,7 +16492,7 @@ var contactModeList = function contactModeList(data, state) {
|
|
|
16451
16492
|
var id = (_data$_id = data === null || data === void 0 ? void 0 : data._id) !== null && _data$_id !== void 0 ? _data$_id : data;
|
|
16452
16493
|
return id ? safeFind(state.location_masters_contactmode, function (sys) {
|
|
16453
16494
|
return String(sys.label) === String(id);
|
|
16454
|
-
}) : {
|
|
16495
|
+
}, optionFromRecord(data)) : {
|
|
16455
16496
|
label: "",
|
|
16456
16497
|
value: ""
|
|
16457
16498
|
};
|
|
@@ -16460,6 +16501,11 @@ var contactModeList = function contactModeList(data, state) {
|
|
|
16460
16501
|
var countryCodeList = function countryCodeList(data, state) {
|
|
16461
16502
|
return data && data.length > 0 ? safeFind(state.location_masters_isd, function (sys) {
|
|
16462
16503
|
return String(sys.value) === String(data);
|
|
16504
|
+
},
|
|
16505
|
+
// saving reads the ISD code from .value
|
|
16506
|
+
{
|
|
16507
|
+
label: "",
|
|
16508
|
+
value: data
|
|
16463
16509
|
}) : {
|
|
16464
16510
|
label: "",
|
|
16465
16511
|
value: ""
|
|
@@ -16471,7 +16517,7 @@ var useList = function useList(data, state) {
|
|
|
16471
16517
|
var id = (_data$_id2 = data === null || data === void 0 ? void 0 : data._id) !== null && _data$_id2 !== void 0 ? _data$_id2 : data;
|
|
16472
16518
|
return id ? safeFind(state.location_masters_use, function (sys) {
|
|
16473
16519
|
return String(sys.label) === String(id);
|
|
16474
|
-
}) : {
|
|
16520
|
+
}, optionFromRecord(data)) : {
|
|
16475
16521
|
label: "",
|
|
16476
16522
|
value: ""
|
|
16477
16523
|
};
|
|
@@ -16482,7 +16528,7 @@ var priorityList = function priorityList(data, state) {
|
|
|
16482
16528
|
var id = (_data$_id3 = data === null || data === void 0 ? void 0 : data._id) !== null && _data$_id3 !== void 0 ? _data$_id3 : data;
|
|
16483
16529
|
return id ? safeFind(state.location_masters_priority, function (sys) {
|
|
16484
16530
|
return String(sys.label) === String(id);
|
|
16485
|
-
}) : {
|
|
16531
|
+
}, optionFromRecord(data)) : {
|
|
16486
16532
|
label: "",
|
|
16487
16533
|
value: ""
|
|
16488
16534
|
};
|
|
@@ -16610,7 +16656,7 @@ var photoData$1 = function photoData(data) {
|
|
|
16610
16656
|
return photo_Data;
|
|
16611
16657
|
};
|
|
16612
16658
|
var generateReadJSON$4 = function generateReadJSON(data, state) {
|
|
16613
|
-
var _data$managingOrgEnti, _data$managingOrgEnti2, _data$managingOrgID, _data$locationType, _data$locationType2, _data$specialty, _data$specialty2, _data$formid, _data$formid2, _data$typeofcare, _data$typeofcare2, _data$address, _data$address2, _data$position, _data$position2, _data$position3, _data$workingdayyear, _data$workingdayyear2, _data$workingdayyear3, _data$workingdayyear4;
|
|
16659
|
+
var _data$managingOrgEnti, _data$managingOrgEnti2, _data$managingOrgID, _data$locationType, _data$locationType2, _state$location_maste4, _state$location_maste5, _state$location_maste6, _data$parentLocationI2, _data$parentLocationI3, _data$parentLocationI4, _data$parentLocationI5, _data$parentLocationI6, _data$specialty, _data$specialty2, _data$formid, _data$formid2, _data$typeofcare, _data$typeofcare2, _data$address, _data$address2, _data$position, _data$position2, _data$position3, _data$workingdayyear, _data$workingdayyear2, _data$workingdayyear3, _data$workingdayyear4;
|
|
16614
16660
|
var inital_workingday_slot_arr = [{
|
|
16615
16661
|
day: "Mon",
|
|
16616
16662
|
checked: false,
|
|
@@ -16680,24 +16726,54 @@ var generateReadJSON$4 = function generateReadJSON(data, state) {
|
|
|
16680
16726
|
locationId: data.locationID ? data.locationID : "",
|
|
16681
16727
|
shortDescription: data.shortdesc ? data.shortdesc : "",
|
|
16682
16728
|
longDescription: data.longdesc ? data.longdesc : "",
|
|
16729
|
+
// alias: [{ lang, description }] -> one row each. lang is the language's
|
|
16730
|
+
// shortdesc (records saved earlier may hold its code - matched too)
|
|
16731
|
+
aliases: (Array.isArray(data === null || data === void 0 ? void 0 : data.alias) && data.alias.some(function (a) {
|
|
16732
|
+
return a === null || a === void 0 ? void 0 : a.lang;
|
|
16733
|
+
}) ? data.alias.filter(function (a) {
|
|
16734
|
+
return a === null || a === void 0 ? void 0 : a.lang;
|
|
16735
|
+
}) : [{
|
|
16736
|
+
lang: "",
|
|
16737
|
+
description: ""
|
|
16738
|
+
}]).map(function (a) {
|
|
16739
|
+
var _state$location_maste, _state$location_maste2, _state$location_maste3, _a$description;
|
|
16740
|
+
return {
|
|
16741
|
+
language: a.lang ? (_state$location_maste = (_state$location_maste2 = state.location_masters_language) === null || _state$location_maste2 === void 0 || (_state$location_maste2 = _state$location_maste2.data) === null || _state$location_maste2 === void 0 || (_state$location_maste3 = _state$location_maste2.find) === null || _state$location_maste3 === void 0 ? void 0 : _state$location_maste3.call(_state$location_maste2, function (sys) {
|
|
16742
|
+
return String(sys === null || sys === void 0 ? void 0 : sys.shortdesc) === String(a.lang) || String(sys === null || sys === void 0 ? void 0 : sys.code) === String(a.lang);
|
|
16743
|
+
})) !== null && _state$location_maste !== void 0 ? _state$location_maste : {
|
|
16744
|
+
label: "",
|
|
16745
|
+
value: a.lang,
|
|
16746
|
+
code: a.lang,
|
|
16747
|
+
shortdesc: a.lang
|
|
16748
|
+
} : {},
|
|
16749
|
+
description: (_a$description = a === null || a === void 0 ? void 0 : a.description) !== null && _a$description !== void 0 ? _a$description : ""
|
|
16750
|
+
};
|
|
16751
|
+
}),
|
|
16683
16752
|
operationalStatus: data.operationalStatus ? safeFind(state.location_masters_operationalstatus, function (sys) {
|
|
16684
16753
|
var _data$operationalStat;
|
|
16685
16754
|
return String((_data$operationalStat = data.operationalStatus) === null || _data$operationalStat === void 0 ? void 0 : _data$operationalStat._id) === String(sys.label);
|
|
16686
|
-
}) : {
|
|
16755
|
+
}, optionFromRecord(data.operationalStatus)) : {
|
|
16687
16756
|
label: "",
|
|
16688
16757
|
value: ""
|
|
16689
16758
|
},
|
|
16690
|
-
|
|
16759
|
+
// The parent list loads only after the Entity Name is known, so it is
|
|
16760
|
+
// usually empty here - fall back to the saved parent record itself
|
|
16761
|
+
parentLocationIdandDescription: data.parentLocationID_desc ? (_state$location_maste4 = (_state$location_maste5 = state.location_masters_parent_location_id) === null || _state$location_maste5 === void 0 || (_state$location_maste5 = _state$location_maste5.data) === null || _state$location_maste5 === void 0 || (_state$location_maste6 = _state$location_maste5.find) === null || _state$location_maste6 === void 0 ? void 0 : _state$location_maste6.call(_state$location_maste5, function (sys) {
|
|
16691
16762
|
var _data$parentLocationI;
|
|
16692
16763
|
return String((_data$parentLocationI = data.parentLocationID_desc) === null || _data$parentLocationI === void 0 ? void 0 : _data$parentLocationI._id) === String(sys.label);
|
|
16693
|
-
}) : {
|
|
16764
|
+
})) !== null && _state$location_maste4 !== void 0 ? _state$location_maste4 : {
|
|
16765
|
+
label: (_data$parentLocationI2 = (_data$parentLocationI3 = data.parentLocationID_desc) === null || _data$parentLocationI3 === void 0 ? void 0 : _data$parentLocationI3._id) !== null && _data$parentLocationI2 !== void 0 ? _data$parentLocationI2 : "",
|
|
16766
|
+
value: ((_data$parentLocationI4 = data.parentLocationID_desc) === null || _data$parentLocationI4 === void 0 ? void 0 : _data$parentLocationI4.shortdesc) || ((_data$parentLocationI5 = data.parentLocationID_desc) === null || _data$parentLocationI5 === void 0 ? void 0 : _data$parentLocationI5.locationID) || ((_data$parentLocationI6 = data.parentLocationID_desc) === null || _data$parentLocationI6 === void 0 ? void 0 : _data$parentLocationI6._id) || ""
|
|
16767
|
+
} : {
|
|
16694
16768
|
label: "",
|
|
16695
16769
|
value: ""
|
|
16696
16770
|
},
|
|
16697
16771
|
locationRoleType: data.locationRoletype ? safeFind(state.location_masters_locationroletype, function (sys) {
|
|
16698
16772
|
var _data$locationRoletyp;
|
|
16699
16773
|
return String((_data$locationRoletyp = data.locationRoletype) === null || _data$locationRoletyp === void 0 ? void 0 : _data$locationRoletyp._id) === String(sys.label);
|
|
16700
|
-
}
|
|
16774
|
+
},
|
|
16775
|
+
// the role type list shows shortdesc
|
|
16776
|
+
optionFromRecord(data.locationRoletype, "shortdesc")) : {
|
|
16701
16777
|
label: "",
|
|
16702
16778
|
value: ""
|
|
16703
16779
|
},
|
|
@@ -16868,7 +16944,9 @@ var LOCATION_MASTERS_LOCATIONTYPE = createAsyncThunk("locationMasterSlice/locati
|
|
|
16868
16944
|
}
|
|
16869
16945
|
}, _callee3, null, [[1, 4]]);
|
|
16870
16946
|
})));
|
|
16871
|
-
|
|
16947
|
+
// Languages for the alternate description - the dropdown shows `display`,
|
|
16948
|
+
// `shortdesc` is what gets saved as alias[].lang
|
|
16949
|
+
var LOCATION_MASTERS_LANGUAGE = createAsyncThunk("locationMasterSlice/location_masters_language", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
16872
16950
|
var _ref8,
|
|
16873
16951
|
rejectWithValue,
|
|
16874
16952
|
data_arr,
|
|
@@ -16882,32 +16960,31 @@ var LOCATION_MASTERS_OPERATIONALSTATUS = createAsyncThunk("locationMasterSlice/l
|
|
|
16882
16960
|
_context4.p = 1;
|
|
16883
16961
|
_context4.n = 2;
|
|
16884
16962
|
return fetchData({
|
|
16885
|
-
body: JSON.stringify(masterQuery$7.
|
|
16963
|
+
body: JSON.stringify(masterQuery$7.locationMasterLanguage())
|
|
16886
16964
|
}, __baseUrl__$1);
|
|
16887
16965
|
case 2:
|
|
16888
16966
|
data_arr = _context4.v;
|
|
16889
|
-
arry = []
|
|
16890
|
-
|
|
16891
|
-
return data_arr.map(function (val) {
|
|
16892
|
-
arry.push({
|
|
16967
|
+
arry = (Array.isArray(data_arr) ? data_arr : []).map(function (val) {
|
|
16968
|
+
return {
|
|
16893
16969
|
value: val === null || val === void 0 ? void 0 : val.display,
|
|
16894
|
-
label: val === null || val === void 0 ? void 0 : val._id
|
|
16895
|
-
|
|
16970
|
+
label: val === null || val === void 0 ? void 0 : val._id,
|
|
16971
|
+
code: val === null || val === void 0 ? void 0 : val.code,
|
|
16972
|
+
shortdesc: val === null || val === void 0 ? void 0 : val.shortdesc
|
|
16973
|
+
};
|
|
16896
16974
|
});
|
|
16897
|
-
case 3:
|
|
16898
16975
|
return _context4.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
16899
16976
|
data: arry
|
|
16900
16977
|
}));
|
|
16901
|
-
case
|
|
16902
|
-
_context4.p =
|
|
16978
|
+
case 3:
|
|
16979
|
+
_context4.p = 3;
|
|
16903
16980
|
_t4 = _context4.v;
|
|
16904
16981
|
return _context4.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
16905
16982
|
message: _t4.message
|
|
16906
16983
|
})));
|
|
16907
16984
|
}
|
|
16908
|
-
}, _callee4, null, [[1,
|
|
16985
|
+
}, _callee4, null, [[1, 3]]);
|
|
16909
16986
|
})));
|
|
16910
|
-
var
|
|
16987
|
+
var LOCATION_MASTERS_OPERATIONALSTATUS = createAsyncThunk("locationMasterSlice/location_masters_operationalstatus", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5() {
|
|
16911
16988
|
var _ref0,
|
|
16912
16989
|
rejectWithValue,
|
|
16913
16990
|
data_arr,
|
|
@@ -16921,7 +16998,7 @@ var LOCATION_MASTERS_PARENT_LOCATION_ID_DESCRIPTION = createAsyncThunk("location
|
|
|
16921
16998
|
_context5.p = 1;
|
|
16922
16999
|
_context5.n = 2;
|
|
16923
17000
|
return fetchData({
|
|
16924
|
-
body: JSON.stringify(masterQuery$7.
|
|
17001
|
+
body: JSON.stringify(masterQuery$7.locationMasterOperationalStatus())
|
|
16925
17002
|
}, __baseUrl__$1);
|
|
16926
17003
|
case 2:
|
|
16927
17004
|
data_arr = _context5.v;
|
|
@@ -16929,8 +17006,8 @@ var LOCATION_MASTERS_PARENT_LOCATION_ID_DESCRIPTION = createAsyncThunk("location
|
|
|
16929
17006
|
_context5.n = 3;
|
|
16930
17007
|
return data_arr.map(function (val) {
|
|
16931
17008
|
arry.push({
|
|
16932
|
-
|
|
16933
|
-
|
|
17009
|
+
value: val === null || val === void 0 ? void 0 : val.display,
|
|
17010
|
+
label: val === null || val === void 0 ? void 0 : val._id
|
|
16934
17011
|
});
|
|
16935
17012
|
});
|
|
16936
17013
|
case 3:
|
|
@@ -16946,9 +17023,11 @@ var LOCATION_MASTERS_PARENT_LOCATION_ID_DESCRIPTION = createAsyncThunk("location
|
|
|
16946
17023
|
}
|
|
16947
17024
|
}, _callee5, null, [[1, 4]]);
|
|
16948
17025
|
})));
|
|
16949
|
-
var
|
|
16950
|
-
var
|
|
17026
|
+
var LOCATION_MASTERS_PARENT_LOCATION_ID_DESCRIPTION = createAsyncThunk("locationMasterSlice/location_masters_parent_location_id", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6() {
|
|
17027
|
+
var payload,
|
|
17028
|
+
_ref10,
|
|
16951
17029
|
rejectWithValue,
|
|
17030
|
+
_payload$managingorgi,
|
|
16952
17031
|
data_arr,
|
|
16953
17032
|
arry,
|
|
16954
17033
|
_args6 = arguments,
|
|
@@ -16956,21 +17035,24 @@ var LOCATION_MASTERS_LOCATIONROLETYPE = createAsyncThunk("locationMasterSlice/lo
|
|
|
16956
17035
|
return _regenerator().w(function (_context6) {
|
|
16957
17036
|
while (1) switch (_context6.p = _context6.n) {
|
|
16958
17037
|
case 0:
|
|
17038
|
+
payload = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
|
|
16959
17039
|
_ref10 = _args6.length > 1 ? _args6[1] : undefined, rejectWithValue = _ref10.rejectWithValue;
|
|
16960
17040
|
_context6.p = 1;
|
|
16961
17041
|
_context6.n = 2;
|
|
16962
17042
|
return fetchData({
|
|
16963
|
-
body: JSON.stringify(masterQuery$7.
|
|
17043
|
+
body: JSON.stringify(masterQuery$7.locationMasterParentLocationIdDescription((_payload$managingorgi = payload === null || payload === void 0 ? void 0 : payload.managingorgid) !== null && _payload$managingorgi !== void 0 ? _payload$managingorgi : ""))
|
|
16964
17044
|
}, __baseUrl__$1);
|
|
16965
17045
|
case 2:
|
|
16966
17046
|
data_arr = _context6.v;
|
|
16967
17047
|
arry = [];
|
|
16968
17048
|
_context6.n = 3;
|
|
16969
17049
|
return data_arr.map(function (val) {
|
|
16970
|
-
arry.push(
|
|
16971
|
-
|
|
16972
|
-
|
|
16973
|
-
|
|
17050
|
+
arry.push({
|
|
17051
|
+
label: val._id,
|
|
17052
|
+
// shown in the dropdown
|
|
17053
|
+
value: val.shortdesc || val.locationID,
|
|
17054
|
+
locationID: val.locationID
|
|
17055
|
+
});
|
|
16974
17056
|
});
|
|
16975
17057
|
case 3:
|
|
16976
17058
|
return _context6.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -16985,12 +17067,9 @@ var LOCATION_MASTERS_LOCATIONROLETYPE = createAsyncThunk("locationMasterSlice/lo
|
|
|
16985
17067
|
}
|
|
16986
17068
|
}, _callee6, null, [[1, 4]]);
|
|
16987
17069
|
})));
|
|
16988
|
-
var
|
|
16989
|
-
var
|
|
16990
|
-
_ref12,
|
|
17070
|
+
var LOCATION_MASTERS_LOCATIONROLETYPE = createAsyncThunk("locationMasterSlice/location_masters_locationroletype", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7() {
|
|
17071
|
+
var _ref12,
|
|
16991
17072
|
rejectWithValue,
|
|
16992
|
-
_data_arr$,
|
|
16993
|
-
id,
|
|
16994
17073
|
data_arr,
|
|
16995
17074
|
arry,
|
|
16996
17075
|
_args7 = arguments,
|
|
@@ -16998,22 +17077,19 @@ var LOCATION_MASTER_SPECIALITY = createAsyncThunk("locationMasterSlice/location_
|
|
|
16998
17077
|
return _regenerator().w(function (_context7) {
|
|
16999
17078
|
while (1) switch (_context7.p = _context7.n) {
|
|
17000
17079
|
case 0:
|
|
17001
|
-
payload = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
|
|
17002
17080
|
_ref12 = _args7.length > 1 ? _args7[1] : undefined, rejectWithValue = _ref12.rejectWithValue;
|
|
17003
17081
|
_context7.p = 1;
|
|
17004
|
-
id = payload.id;
|
|
17005
17082
|
_context7.n = 2;
|
|
17006
17083
|
return fetchData({
|
|
17007
|
-
body: JSON.stringify(masterQuery$7.
|
|
17084
|
+
body: JSON.stringify(masterQuery$7.locationMasterLocationRoleType())
|
|
17008
17085
|
}, __baseUrl__$1);
|
|
17009
17086
|
case 2:
|
|
17010
17087
|
data_arr = _context7.v;
|
|
17011
17088
|
arry = [];
|
|
17012
17089
|
_context7.n = 3;
|
|
17013
|
-
return data_arr
|
|
17014
|
-
var _val$display;
|
|
17090
|
+
return data_arr.map(function (val) {
|
|
17015
17091
|
arry.push(_objectSpread2({
|
|
17016
|
-
value:
|
|
17092
|
+
value: val.shortdesc,
|
|
17017
17093
|
label: val._id
|
|
17018
17094
|
}, val));
|
|
17019
17095
|
});
|
|
@@ -17030,9 +17106,12 @@ var LOCATION_MASTER_SPECIALITY = createAsyncThunk("locationMasterSlice/location_
|
|
|
17030
17106
|
}
|
|
17031
17107
|
}, _callee7, null, [[1, 4]]);
|
|
17032
17108
|
})));
|
|
17033
|
-
var
|
|
17034
|
-
var
|
|
17109
|
+
var LOCATION_MASTER_SPECIALITY = createAsyncThunk("locationMasterSlice/location_masters_speciality", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8() {
|
|
17110
|
+
var payload,
|
|
17111
|
+
_ref14,
|
|
17035
17112
|
rejectWithValue,
|
|
17113
|
+
_data_arr$,
|
|
17114
|
+
id,
|
|
17036
17115
|
data_arr,
|
|
17037
17116
|
arry,
|
|
17038
17117
|
_args8 = arguments,
|
|
@@ -17040,21 +17119,24 @@ var LOCATION_MASTER_CONTACTMODE = createAsyncThunk("locationMasterSlice/location
|
|
|
17040
17119
|
return _regenerator().w(function (_context8) {
|
|
17041
17120
|
while (1) switch (_context8.p = _context8.n) {
|
|
17042
17121
|
case 0:
|
|
17122
|
+
payload = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
|
|
17043
17123
|
_ref14 = _args8.length > 1 ? _args8[1] : undefined, rejectWithValue = _ref14.rejectWithValue;
|
|
17044
17124
|
_context8.p = 1;
|
|
17125
|
+
id = payload.id;
|
|
17045
17126
|
_context8.n = 2;
|
|
17046
17127
|
return fetchData({
|
|
17047
|
-
body: JSON.stringify(masterQuery$7.
|
|
17128
|
+
body: JSON.stringify(masterQuery$7.locationMasterSpeciality(id))
|
|
17048
17129
|
}, __baseUrl__$1);
|
|
17049
17130
|
case 2:
|
|
17050
17131
|
data_arr = _context8.v;
|
|
17051
17132
|
arry = [];
|
|
17052
17133
|
_context8.n = 3;
|
|
17053
|
-
return data_arr
|
|
17054
|
-
|
|
17055
|
-
|
|
17056
|
-
|
|
17057
|
-
|
|
17134
|
+
return data_arr === null || data_arr === void 0 || (_data_arr$ = data_arr[0]) === null || _data_arr$ === void 0 ? void 0 : _data_arr$.map(function (val) {
|
|
17135
|
+
var _val$display;
|
|
17136
|
+
arry.push(_objectSpread2({
|
|
17137
|
+
value: (_val$display = val === null || val === void 0 ? void 0 : val.display) !== null && _val$display !== void 0 ? _val$display : "",
|
|
17138
|
+
label: val._id
|
|
17139
|
+
}, val));
|
|
17058
17140
|
});
|
|
17059
17141
|
case 3:
|
|
17060
17142
|
return _context8.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -17069,7 +17151,7 @@ var LOCATION_MASTER_CONTACTMODE = createAsyncThunk("locationMasterSlice/location
|
|
|
17069
17151
|
}
|
|
17070
17152
|
}, _callee8, null, [[1, 4]]);
|
|
17071
17153
|
})));
|
|
17072
|
-
var
|
|
17154
|
+
var LOCATION_MASTER_CONTACTMODE = createAsyncThunk("locationMasterSlice/location_masters_contactmode", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9() {
|
|
17073
17155
|
var _ref16,
|
|
17074
17156
|
rejectWithValue,
|
|
17075
17157
|
data_arr,
|
|
@@ -17083,7 +17165,7 @@ var LOCATION_MASTER_ISD = createAsyncThunk("locationMasterSlice/location_masters
|
|
|
17083
17165
|
_context9.p = 1;
|
|
17084
17166
|
_context9.n = 2;
|
|
17085
17167
|
return fetchData({
|
|
17086
|
-
body: JSON.stringify(masterQuery$7.
|
|
17168
|
+
body: JSON.stringify(masterQuery$7.locationMasterContactMode())
|
|
17087
17169
|
}, __baseUrl__$1);
|
|
17088
17170
|
case 2:
|
|
17089
17171
|
data_arr = _context9.v;
|
|
@@ -17091,8 +17173,8 @@ var LOCATION_MASTER_ISD = createAsyncThunk("locationMasterSlice/location_masters
|
|
|
17091
17173
|
_context9.n = 3;
|
|
17092
17174
|
return data_arr.map(function (val) {
|
|
17093
17175
|
arry.push({
|
|
17094
|
-
value: val.
|
|
17095
|
-
label: val._id
|
|
17176
|
+
value: val === null || val === void 0 ? void 0 : val.display,
|
|
17177
|
+
label: val === null || val === void 0 ? void 0 : val._id
|
|
17096
17178
|
});
|
|
17097
17179
|
});
|
|
17098
17180
|
case 3:
|
|
@@ -17108,7 +17190,7 @@ var LOCATION_MASTER_ISD = createAsyncThunk("locationMasterSlice/location_masters
|
|
|
17108
17190
|
}
|
|
17109
17191
|
}, _callee9, null, [[1, 4]]);
|
|
17110
17192
|
})));
|
|
17111
|
-
var
|
|
17193
|
+
var LOCATION_MASTER_ISD = createAsyncThunk("locationMasterSlice/location_masters_isd", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0() {
|
|
17112
17194
|
var _ref18,
|
|
17113
17195
|
rejectWithValue,
|
|
17114
17196
|
data_arr,
|
|
@@ -17122,7 +17204,7 @@ var LOCATION_MASTER_USE = createAsyncThunk("locationMasterSlice/location_masters
|
|
|
17122
17204
|
_context0.p = 1;
|
|
17123
17205
|
_context0.n = 2;
|
|
17124
17206
|
return fetchData({
|
|
17125
|
-
body: JSON.stringify(masterQuery$7.
|
|
17207
|
+
body: JSON.stringify(masterQuery$7.locationMasterISD())
|
|
17126
17208
|
}, __baseUrl__$1);
|
|
17127
17209
|
case 2:
|
|
17128
17210
|
data_arr = _context0.v;
|
|
@@ -17130,8 +17212,8 @@ var LOCATION_MASTER_USE = createAsyncThunk("locationMasterSlice/location_masters
|
|
|
17130
17212
|
_context0.n = 3;
|
|
17131
17213
|
return data_arr.map(function (val) {
|
|
17132
17214
|
arry.push({
|
|
17133
|
-
value: val
|
|
17134
|
-
label: val
|
|
17215
|
+
value: val.GeoLocationISDCode,
|
|
17216
|
+
label: val._id
|
|
17135
17217
|
});
|
|
17136
17218
|
});
|
|
17137
17219
|
case 3:
|
|
@@ -17147,7 +17229,7 @@ var LOCATION_MASTER_USE = createAsyncThunk("locationMasterSlice/location_masters
|
|
|
17147
17229
|
}
|
|
17148
17230
|
}, _callee0, null, [[1, 4]]);
|
|
17149
17231
|
})));
|
|
17150
|
-
var
|
|
17232
|
+
var LOCATION_MASTER_USE = createAsyncThunk("locationMasterSlice/location_masters_use", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1() {
|
|
17151
17233
|
var _ref20,
|
|
17152
17234
|
rejectWithValue,
|
|
17153
17235
|
data_arr,
|
|
@@ -17161,7 +17243,7 @@ var LOCATION_MASTER_PRIORITY = createAsyncThunk("locationMasterSlice/location_ma
|
|
|
17161
17243
|
_context1.p = 1;
|
|
17162
17244
|
_context1.n = 2;
|
|
17163
17245
|
return fetchData({
|
|
17164
|
-
body: JSON.stringify(masterQuery$7.
|
|
17246
|
+
body: JSON.stringify(masterQuery$7.locationMasterUse())
|
|
17165
17247
|
}, __baseUrl__$1);
|
|
17166
17248
|
case 2:
|
|
17167
17249
|
data_arr = _context1.v;
|
|
@@ -17186,91 +17268,91 @@ var LOCATION_MASTER_PRIORITY = createAsyncThunk("locationMasterSlice/location_ma
|
|
|
17186
17268
|
}
|
|
17187
17269
|
}, _callee1, null, [[1, 4]]);
|
|
17188
17270
|
})));
|
|
17189
|
-
var
|
|
17190
|
-
var
|
|
17191
|
-
_ref22,
|
|
17271
|
+
var LOCATION_MASTER_PRIORITY = createAsyncThunk("locationMasterSlice/location_masters_priority", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee10() {
|
|
17272
|
+
var _ref22,
|
|
17192
17273
|
rejectWithValue,
|
|
17193
|
-
|
|
17194
|
-
|
|
17195
|
-
state,
|
|
17196
|
-
ccState,
|
|
17197
|
-
data,
|
|
17198
|
-
readJSON,
|
|
17274
|
+
data_arr,
|
|
17275
|
+
arry,
|
|
17199
17276
|
_args10 = arguments,
|
|
17200
17277
|
_t10;
|
|
17201
17278
|
return _regenerator().w(function (_context10) {
|
|
17202
17279
|
while (1) switch (_context10.p = _context10.n) {
|
|
17203
17280
|
case 0:
|
|
17204
|
-
|
|
17205
|
-
_ref22 = _args10.length > 1 ? _args10[1] : undefined, rejectWithValue = _ref22.rejectWithValue, getState = _ref22.getState;
|
|
17281
|
+
_ref22 = _args10.length > 1 ? _args10[1] : undefined, rejectWithValue = _ref22.rejectWithValue;
|
|
17206
17282
|
_context10.p = 1;
|
|
17207
|
-
id = payload.id;
|
|
17208
|
-
state = getState();
|
|
17209
|
-
ccState = state.locationMasterSlice;
|
|
17210
17283
|
_context10.n = 2;
|
|
17211
17284
|
return fetchData({
|
|
17212
|
-
body: JSON.stringify(
|
|
17285
|
+
body: JSON.stringify(masterQuery$7.locationMasterPriority())
|
|
17213
17286
|
}, __baseUrl__$1);
|
|
17214
17287
|
case 2:
|
|
17215
|
-
|
|
17216
|
-
|
|
17288
|
+
data_arr = _context10.v;
|
|
17289
|
+
arry = [];
|
|
17290
|
+
_context10.n = 3;
|
|
17291
|
+
return data_arr.map(function (val) {
|
|
17292
|
+
arry.push({
|
|
17293
|
+
value: val === null || val === void 0 ? void 0 : val.display,
|
|
17294
|
+
label: val === null || val === void 0 ? void 0 : val._id
|
|
17295
|
+
});
|
|
17296
|
+
});
|
|
17297
|
+
case 3:
|
|
17217
17298
|
return _context10.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
17218
|
-
data:
|
|
17299
|
+
data: arry
|
|
17219
17300
|
}));
|
|
17220
|
-
case
|
|
17221
|
-
_context10.p =
|
|
17301
|
+
case 4:
|
|
17302
|
+
_context10.p = 4;
|
|
17222
17303
|
_t10 = _context10.v;
|
|
17223
|
-
console.clear();
|
|
17224
17304
|
return _context10.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
17225
17305
|
message: _t10.message
|
|
17226
17306
|
})));
|
|
17227
17307
|
}
|
|
17228
|
-
}, _callee10, null, [[1,
|
|
17308
|
+
}, _callee10, null, [[1, 4]]);
|
|
17229
17309
|
})));
|
|
17230
|
-
var
|
|
17231
|
-
var
|
|
17310
|
+
var LOCATION_MASTER_GET_BY_ID = createAsyncThunk("locationMasterSlice/location_masters_by_id", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee11() {
|
|
17311
|
+
var payload,
|
|
17312
|
+
_ref24,
|
|
17232
17313
|
rejectWithValue,
|
|
17233
|
-
|
|
17234
|
-
|
|
17314
|
+
getState,
|
|
17315
|
+
id,
|
|
17316
|
+
state,
|
|
17317
|
+
ccState,
|
|
17318
|
+
data,
|
|
17319
|
+
readJSON,
|
|
17235
17320
|
_args11 = arguments,
|
|
17236
17321
|
_t11;
|
|
17237
17322
|
return _regenerator().w(function (_context11) {
|
|
17238
17323
|
while (1) switch (_context11.p = _context11.n) {
|
|
17239
17324
|
case 0:
|
|
17240
|
-
|
|
17325
|
+
payload = _args11.length > 0 && _args11[0] !== undefined ? _args11[0] : {};
|
|
17326
|
+
_ref24 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref24.rejectWithValue, getState = _ref24.getState;
|
|
17241
17327
|
_context11.p = 1;
|
|
17328
|
+
id = payload.id;
|
|
17329
|
+
state = getState();
|
|
17330
|
+
ccState = state.locationMasterSlice;
|
|
17242
17331
|
_context11.n = 2;
|
|
17243
17332
|
return fetchData({
|
|
17244
|
-
body: JSON.stringify(
|
|
17333
|
+
body: JSON.stringify(queries$n.location_by_id(id))
|
|
17245
17334
|
}, __baseUrl__$1);
|
|
17246
17335
|
case 2:
|
|
17247
|
-
|
|
17248
|
-
|
|
17249
|
-
_context11.n = 3;
|
|
17250
|
-
return data_arr === null || data_arr === void 0 ? void 0 : data_arr.map(function (val) {
|
|
17251
|
-
array.push(_objectSpread2({
|
|
17252
|
-
value: val === null || val === void 0 ? void 0 : val.display,
|
|
17253
|
-
label: val === null || val === void 0 ? void 0 : val._id
|
|
17254
|
-
}, val));
|
|
17255
|
-
});
|
|
17256
|
-
case 3:
|
|
17336
|
+
data = _context11.v;
|
|
17337
|
+
readJSON = generateReadJSON$4(data[0] ? data[0] : null, ccState);
|
|
17257
17338
|
return _context11.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
17258
|
-
data:
|
|
17339
|
+
data: readJSON
|
|
17259
17340
|
}));
|
|
17260
|
-
case
|
|
17261
|
-
_context11.p =
|
|
17341
|
+
case 3:
|
|
17342
|
+
_context11.p = 3;
|
|
17262
17343
|
_t11 = _context11.v;
|
|
17344
|
+
console.clear();
|
|
17263
17345
|
return _context11.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
17264
17346
|
message: _t11.message
|
|
17265
17347
|
})));
|
|
17266
17348
|
}
|
|
17267
|
-
}, _callee11, null, [[1,
|
|
17349
|
+
}, _callee11, null, [[1, 3]]);
|
|
17268
17350
|
})));
|
|
17269
|
-
var
|
|
17351
|
+
var SPECIALITY_DATA = createAsyncThunk("locationMasterSlice/speciality_data", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee12() {
|
|
17270
17352
|
var _ref26,
|
|
17271
17353
|
rejectWithValue,
|
|
17272
17354
|
data_arr,
|
|
17273
|
-
|
|
17355
|
+
array,
|
|
17274
17356
|
_args12 = arguments,
|
|
17275
17357
|
_t12;
|
|
17276
17358
|
return _regenerator().w(function (_context12) {
|
|
@@ -17280,23 +17362,21 @@ var LOCATION_MASTER_FORMS = createAsyncThunk("locationMasterSlice/location_maste
|
|
|
17280
17362
|
_context12.p = 1;
|
|
17281
17363
|
_context12.n = 2;
|
|
17282
17364
|
return fetchData({
|
|
17283
|
-
body: JSON.stringify(masterQuery$7.
|
|
17365
|
+
body: JSON.stringify(masterQuery$7.speciality_data())
|
|
17284
17366
|
}, __baseUrl__$1);
|
|
17285
17367
|
case 2:
|
|
17286
17368
|
data_arr = _context12.v;
|
|
17287
|
-
|
|
17369
|
+
array = [];
|
|
17288
17370
|
_context12.n = 3;
|
|
17289
|
-
return data_arr.map(function (val) {
|
|
17290
|
-
|
|
17291
|
-
|
|
17292
|
-
|
|
17293
|
-
|
|
17294
|
-
form_id: val === null || val === void 0 ? void 0 : val.form_id
|
|
17295
|
-
});
|
|
17371
|
+
return data_arr === null || data_arr === void 0 ? void 0 : data_arr.map(function (val) {
|
|
17372
|
+
array.push(_objectSpread2({
|
|
17373
|
+
value: val === null || val === void 0 ? void 0 : val.display,
|
|
17374
|
+
label: val === null || val === void 0 ? void 0 : val._id
|
|
17375
|
+
}, val));
|
|
17296
17376
|
});
|
|
17297
17377
|
case 3:
|
|
17298
17378
|
return _context12.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
17299
|
-
data:
|
|
17379
|
+
data: array
|
|
17300
17380
|
}));
|
|
17301
17381
|
case 4:
|
|
17302
17382
|
_context12.p = 4;
|
|
@@ -17307,7 +17387,7 @@ var LOCATION_MASTER_FORMS = createAsyncThunk("locationMasterSlice/location_maste
|
|
|
17307
17387
|
}
|
|
17308
17388
|
}, _callee12, null, [[1, 4]]);
|
|
17309
17389
|
})));
|
|
17310
|
-
var
|
|
17390
|
+
var LOCATION_MASTER_FORMS = createAsyncThunk("locationMasterSlice/location_masters_forms", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee13() {
|
|
17311
17391
|
var _ref28,
|
|
17312
17392
|
rejectWithValue,
|
|
17313
17393
|
data_arr,
|
|
@@ -17321,17 +17401,19 @@ var LOCATION_MASTER_TYPEOFCARE = createAsyncThunk("locationMasterSlice/location_
|
|
|
17321
17401
|
_context13.p = 1;
|
|
17322
17402
|
_context13.n = 2;
|
|
17323
17403
|
return fetchData({
|
|
17324
|
-
body: JSON.stringify(masterQuery$7.
|
|
17404
|
+
body: JSON.stringify(masterQuery$7.locationMasterForms())
|
|
17325
17405
|
}, __baseUrl__$1);
|
|
17326
17406
|
case 2:
|
|
17327
17407
|
data_arr = _context13.v;
|
|
17328
17408
|
arry = [];
|
|
17329
17409
|
_context13.n = 3;
|
|
17330
17410
|
return data_arr.map(function (val) {
|
|
17331
|
-
arry.push(
|
|
17332
|
-
|
|
17333
|
-
|
|
17334
|
-
|
|
17411
|
+
arry.push({
|
|
17412
|
+
label: val === null || val === void 0 ? void 0 : val._id,
|
|
17413
|
+
value: val === null || val === void 0 ? void 0 : val.form_name,
|
|
17414
|
+
form_name: val === null || val === void 0 ? void 0 : val.form_name,
|
|
17415
|
+
form_id: val === null || val === void 0 ? void 0 : val.form_id
|
|
17416
|
+
});
|
|
17335
17417
|
});
|
|
17336
17418
|
case 3:
|
|
17337
17419
|
return _context13.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -17346,6 +17428,45 @@ var LOCATION_MASTER_TYPEOFCARE = createAsyncThunk("locationMasterSlice/location_
|
|
|
17346
17428
|
}
|
|
17347
17429
|
}, _callee13, null, [[1, 4]]);
|
|
17348
17430
|
})));
|
|
17431
|
+
var LOCATION_MASTER_TYPEOFCARE = createAsyncThunk("locationMasterSlice/location_masters_typeofcare", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee14() {
|
|
17432
|
+
var _ref30,
|
|
17433
|
+
rejectWithValue,
|
|
17434
|
+
data_arr,
|
|
17435
|
+
arry,
|
|
17436
|
+
_args14 = arguments,
|
|
17437
|
+
_t14;
|
|
17438
|
+
return _regenerator().w(function (_context14) {
|
|
17439
|
+
while (1) switch (_context14.p = _context14.n) {
|
|
17440
|
+
case 0:
|
|
17441
|
+
_ref30 = _args14.length > 1 ? _args14[1] : undefined, rejectWithValue = _ref30.rejectWithValue;
|
|
17442
|
+
_context14.p = 1;
|
|
17443
|
+
_context14.n = 2;
|
|
17444
|
+
return fetchData({
|
|
17445
|
+
body: JSON.stringify(masterQuery$7.locationMasterTypeOfCare())
|
|
17446
|
+
}, __baseUrl__$1);
|
|
17447
|
+
case 2:
|
|
17448
|
+
data_arr = _context14.v;
|
|
17449
|
+
arry = [];
|
|
17450
|
+
_context14.n = 3;
|
|
17451
|
+
return data_arr.map(function (val) {
|
|
17452
|
+
arry.push(_objectSpread2(_objectSpread2({}, val), {}, {
|
|
17453
|
+
value: val === null || val === void 0 ? void 0 : val.display,
|
|
17454
|
+
label: val === null || val === void 0 ? void 0 : val._id
|
|
17455
|
+
}));
|
|
17456
|
+
});
|
|
17457
|
+
case 3:
|
|
17458
|
+
return _context14.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
17459
|
+
data: arry
|
|
17460
|
+
}));
|
|
17461
|
+
case 4:
|
|
17462
|
+
_context14.p = 4;
|
|
17463
|
+
_t14 = _context14.v;
|
|
17464
|
+
return _context14.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
17465
|
+
message: _t14.message
|
|
17466
|
+
})));
|
|
17467
|
+
}
|
|
17468
|
+
}, _callee14, null, [[1, 4]]);
|
|
17469
|
+
})));
|
|
17349
17470
|
var locationMasterSlice = createSlice({
|
|
17350
17471
|
name: "locationMasterAPISlice",
|
|
17351
17472
|
initialState: {
|
|
@@ -17353,6 +17474,7 @@ var locationMasterSlice = createSlice({
|
|
|
17353
17474
|
location_masters_entityname: _objectSpread2({}, defaultState.List),
|
|
17354
17475
|
location_masters_locationtype: _objectSpread2({}, defaultState.List),
|
|
17355
17476
|
location_masters_operationalstatus: _objectSpread2({}, defaultState.List),
|
|
17477
|
+
location_masters_language: _objectSpread2({}, defaultState.List),
|
|
17356
17478
|
location_masters_parent_location_id: _objectSpread2({}, defaultState.List),
|
|
17357
17479
|
location_masters_locationroletype: _objectSpread2({}, defaultState.List),
|
|
17358
17480
|
location_masters_speciality: _objectSpread2({}, defaultState.List),
|
|
@@ -17445,7 +17567,7 @@ var locationMasterSlice = createSlice({
|
|
|
17445
17567
|
state.speciality_data.loading = false, state.speciality_data.error = true, state.speciality_data = action.payload;
|
|
17446
17568
|
}), LOCATION_MASTER_FORMS.fulfilled, function (state, action) {
|
|
17447
17569
|
state.location_masters_forms.loading = false, state.location_masters_forms.error = false, state.location_masters_forms = action.payload;
|
|
17448
|
-
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$x, LOCATION_MASTER_FORMS.pending, function (state, action) {
|
|
17570
|
+
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$x, LOCATION_MASTER_FORMS.pending, function (state, action) {
|
|
17449
17571
|
state.location_masters_forms.loading = true, state.location_masters_forms.error = false, state.location_masters_forms.loading = true;
|
|
17450
17572
|
}), LOCATION_MASTER_FORMS.rejected, function (state, action) {
|
|
17451
17573
|
state.location_masters_forms.loading = false, state.location_masters_forms.error = true, state.location_masters_forms = action.payload;
|
|
@@ -17455,6 +17577,13 @@ var locationMasterSlice = createSlice({
|
|
|
17455
17577
|
state.location_masters_typeofcare.loading = true, state.location_masters_typeofcare.error = false, state.location_masters_typeofcare.loading = true;
|
|
17456
17578
|
}), LOCATION_MASTER_TYPEOFCARE.rejected, function (state, action) {
|
|
17457
17579
|
state.location_masters_typeofcare.loading = false, state.location_masters_typeofcare.error = true, state.location_masters_typeofcare = action.payload;
|
|
17580
|
+
}), LOCATION_MASTERS_LANGUAGE.fulfilled, function (state, action) {
|
|
17581
|
+
state.location_masters_language = action.payload;
|
|
17582
|
+
}), LOCATION_MASTERS_LANGUAGE.pending, function (state) {
|
|
17583
|
+
state.location_masters_language.loading = true;
|
|
17584
|
+
state.location_masters_language.error = false;
|
|
17585
|
+
}), LOCATION_MASTERS_LANGUAGE.rejected, function (state, action) {
|
|
17586
|
+
state.location_masters_language = action.payload;
|
|
17458
17587
|
}))
|
|
17459
17588
|
});
|
|
17460
17589
|
var locationMasterActions = {
|
|
@@ -17462,6 +17591,7 @@ var locationMasterActions = {
|
|
|
17462
17591
|
LOCATION_MASTERS_ENTITYNAME: LOCATION_MASTERS_ENTITYNAME,
|
|
17463
17592
|
LOCATION_MASTERS_LOCATIONTYPE: LOCATION_MASTERS_LOCATIONTYPE,
|
|
17464
17593
|
LOCATION_MASTERS_OPERATIONALSTATUS: LOCATION_MASTERS_OPERATIONALSTATUS,
|
|
17594
|
+
LOCATION_MASTERS_LANGUAGE: LOCATION_MASTERS_LANGUAGE,
|
|
17465
17595
|
LOCATION_MASTERS_PARENT_LOCATION_ID_DESCRIPTION: LOCATION_MASTERS_PARENT_LOCATION_ID_DESCRIPTION,
|
|
17466
17596
|
LOCATION_MASTERS_LOCATIONROLETYPE: LOCATION_MASTERS_LOCATIONROLETYPE,
|
|
17467
17597
|
LOCATION_MASTER_SPECIALITY: LOCATION_MASTER_SPECIALITY,
|