primary_care_admin_binder 0.1.211 → 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 +274 -137
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -9046,17 +9046,18 @@ var getMasterQuery = function getMasterQuery() {
|
|
|
9046
9046
|
active: ""
|
|
9047
9047
|
}
|
|
9048
9048
|
}),
|
|
9049
|
-
|
|
9050
|
-
|
|
9051
|
-
|
|
9052
|
-
|
|
9053
|
-
|
|
9054
|
-
|
|
9055
|
-
|
|
9056
|
-
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
}
|
|
9049
|
+
// not used in the practitioner screen.
|
|
9050
|
+
// location: JSON.stringify({
|
|
9051
|
+
// appcode: dbName,
|
|
9052
|
+
// requestid: "c27d71be-6c29-4024-aab3-1dd0a0a88c32",
|
|
9053
|
+
// filter: {
|
|
9054
|
+
// activestatus: true,
|
|
9055
|
+
// status: "active",
|
|
9056
|
+
// parentLocationId: "",
|
|
9057
|
+
// locationtype: null,
|
|
9058
|
+
// organizationId:""
|
|
9059
|
+
// }
|
|
9060
|
+
// }),
|
|
9060
9061
|
nationality: JSON.stringify({
|
|
9061
9062
|
appcode: dbName,
|
|
9062
9063
|
requestid: "d3659637-f0aa-4e0d-86d6-61fd445f7dd5",
|
|
@@ -9205,7 +9206,7 @@ var generateReadJSON$5 = function generateReadJSON(data) {
|
|
|
9205
9206
|
var practitionerbyrolelist = [];
|
|
9206
9207
|
if (data !== null && data !== void 0 && data.practitioner_role && (data === null || data === void 0 || (_data$practitioner_ro = data.practitioner_role) === null || _data$practitioner_ro === void 0 ? void 0 : _data$practitioner_ro.length) > 0) {
|
|
9207
9208
|
data.practitioner_role.map(function (val) {
|
|
9208
|
-
var _val$specialtyid, _val$specialtyid2, _val$entitytype, _val$entitytype2, _val$entityname, _val$entityname2, _val$locationid, _val$locationid2, _val$role, _val$role2;
|
|
9209
|
+
var _val$specialtyid, _val$specialtyid2, _val$entitytype, _val$entitytype2, _val$entityname, _val$entityname2, _val$locationid, _val$locationid2, _val$department, _val$department2, _val$department3, _val$role, _val$role2;
|
|
9209
9210
|
var practitionerData = {
|
|
9210
9211
|
speciality: {
|
|
9211
9212
|
label: val === null || val === void 0 || (_val$specialtyid = val.specialtyid) === null || _val$specialtyid === void 0 ? void 0 : _val$specialtyid.display,
|
|
@@ -9223,6 +9224,12 @@ var generateReadJSON$5 = function generateReadJSON(data) {
|
|
|
9223
9224
|
label: val === null || val === void 0 || (_val$locationid = val.locationid) === null || _val$locationid === void 0 ? void 0 : _val$locationid.longdesc,
|
|
9224
9225
|
_id: val === null || val === void 0 || (_val$locationid2 = val.locationid) === null || _val$locationid2 === void 0 ? void 0 : _val$locationid2._id
|
|
9225
9226
|
},
|
|
9227
|
+
// Label is resolved by the screen from the facility's departments
|
|
9228
|
+
department: {
|
|
9229
|
+
_id: (val === null || val === void 0 || (_val$department = val.department) === null || _val$department === void 0 ? void 0 : _val$department._id) || (val === null || val === void 0 ? void 0 : val.departmentid),
|
|
9230
|
+
value: (val === null || val === void 0 || (_val$department2 = val.department) === null || _val$department2 === void 0 ? void 0 : _val$department2._id) || (val === null || val === void 0 ? void 0 : val.departmentid),
|
|
9231
|
+
label: (val === null || val === void 0 || (_val$department3 = val.department) === null || _val$department3 === void 0 ? void 0 : _val$department3.display) || ""
|
|
9232
|
+
},
|
|
9226
9233
|
primary_specialty: val !== null && val !== void 0 && val.primaryspeciality ? val.primaryspeciality : false,
|
|
9227
9234
|
select_role: {
|
|
9228
9235
|
label: val === null || val === void 0 || (_val$role = val.role) === null || _val$role === void 0 ? void 0 : _val$role.display,
|
|
@@ -13145,7 +13152,7 @@ var workday_timeslotList = function workday_timeslotList(data) {
|
|
|
13145
13152
|
return timeslot_Lists;
|
|
13146
13153
|
};
|
|
13147
13154
|
var generateJSON = function generateJSON(data, _key) {
|
|
13148
|
-
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;
|
|
13149
13156
|
var filter = {};
|
|
13150
13157
|
if (_key) {
|
|
13151
13158
|
filter = {
|
|
@@ -13248,6 +13255,18 @@ var generateJSON = function generateJSON(data, _key) {
|
|
|
13248
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,
|
|
13249
13256
|
shortdesc: data.shortDescription,
|
|
13250
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
|
+
}),
|
|
13251
13270
|
telecom: contactArr,
|
|
13252
13271
|
address: [{
|
|
13253
13272
|
use: "",
|
|
@@ -16182,6 +16201,19 @@ var masterQuery$7 = {
|
|
|
16182
16201
|
// };
|
|
16183
16202
|
// },
|
|
16184
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
|
+
},
|
|
16185
16217
|
locationMasterOperationalStatus: function locationMasterOperationalStatus() {
|
|
16186
16218
|
return {
|
|
16187
16219
|
appcode: _dbName,
|
|
@@ -16205,13 +16237,16 @@ var masterQuery$7 = {
|
|
|
16205
16237
|
// };
|
|
16206
16238
|
// },
|
|
16207
16239
|
|
|
16240
|
+
// Locations of the selected Entity Name (managingorgid = its _id)
|
|
16208
16241
|
locationMasterParentLocationIdDescription: function locationMasterParentLocationIdDescription() {
|
|
16242
|
+
var managingorgid = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
16209
16243
|
return {
|
|
16210
16244
|
appcode: _dbName,
|
|
16211
16245
|
requestid: "ceb2a6c1-864f-4ea8-9308-6135d9355410",
|
|
16212
16246
|
filter: {
|
|
16213
16247
|
activestatus: true,
|
|
16214
|
-
sort: "locationID"
|
|
16248
|
+
sort: "locationID",
|
|
16249
|
+
managingorgid: managingorgid
|
|
16215
16250
|
}
|
|
16216
16251
|
};
|
|
16217
16252
|
},
|
|
@@ -16395,17 +16430,30 @@ var masterQuery$7 = {
|
|
|
16395
16430
|
}
|
|
16396
16431
|
};
|
|
16397
16432
|
|
|
16398
|
-
|
|
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) {
|
|
16399
16436
|
if (stateObj && Array.isArray(stateObj.data)) {
|
|
16400
16437
|
var result = stateObj.data.find(predicate);
|
|
16401
16438
|
if (result) return result;
|
|
16402
16439
|
}
|
|
16403
|
-
return {
|
|
16440
|
+
return fallback !== null && fallback !== void 0 ? fallback : {
|
|
16404
16441
|
label: "",
|
|
16405
16442
|
value: ""
|
|
16406
16443
|
};
|
|
16407
16444
|
};
|
|
16408
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
|
+
|
|
16409
16457
|
//CONTACT DETAILS JSON
|
|
16410
16458
|
var contactDetailList = function contactDetailList(data, state) {
|
|
16411
16459
|
var contact_Lists = [];
|
|
@@ -16444,7 +16492,7 @@ var contactModeList = function contactModeList(data, state) {
|
|
|
16444
16492
|
var id = (_data$_id = data === null || data === void 0 ? void 0 : data._id) !== null && _data$_id !== void 0 ? _data$_id : data;
|
|
16445
16493
|
return id ? safeFind(state.location_masters_contactmode, function (sys) {
|
|
16446
16494
|
return String(sys.label) === String(id);
|
|
16447
|
-
}) : {
|
|
16495
|
+
}, optionFromRecord(data)) : {
|
|
16448
16496
|
label: "",
|
|
16449
16497
|
value: ""
|
|
16450
16498
|
};
|
|
@@ -16453,6 +16501,11 @@ var contactModeList = function contactModeList(data, state) {
|
|
|
16453
16501
|
var countryCodeList = function countryCodeList(data, state) {
|
|
16454
16502
|
return data && data.length > 0 ? safeFind(state.location_masters_isd, function (sys) {
|
|
16455
16503
|
return String(sys.value) === String(data);
|
|
16504
|
+
},
|
|
16505
|
+
// saving reads the ISD code from .value
|
|
16506
|
+
{
|
|
16507
|
+
label: "",
|
|
16508
|
+
value: data
|
|
16456
16509
|
}) : {
|
|
16457
16510
|
label: "",
|
|
16458
16511
|
value: ""
|
|
@@ -16464,7 +16517,7 @@ var useList = function useList(data, state) {
|
|
|
16464
16517
|
var id = (_data$_id2 = data === null || data === void 0 ? void 0 : data._id) !== null && _data$_id2 !== void 0 ? _data$_id2 : data;
|
|
16465
16518
|
return id ? safeFind(state.location_masters_use, function (sys) {
|
|
16466
16519
|
return String(sys.label) === String(id);
|
|
16467
|
-
}) : {
|
|
16520
|
+
}, optionFromRecord(data)) : {
|
|
16468
16521
|
label: "",
|
|
16469
16522
|
value: ""
|
|
16470
16523
|
};
|
|
@@ -16475,7 +16528,7 @@ var priorityList = function priorityList(data, state) {
|
|
|
16475
16528
|
var id = (_data$_id3 = data === null || data === void 0 ? void 0 : data._id) !== null && _data$_id3 !== void 0 ? _data$_id3 : data;
|
|
16476
16529
|
return id ? safeFind(state.location_masters_priority, function (sys) {
|
|
16477
16530
|
return String(sys.label) === String(id);
|
|
16478
|
-
}) : {
|
|
16531
|
+
}, optionFromRecord(data)) : {
|
|
16479
16532
|
label: "",
|
|
16480
16533
|
value: ""
|
|
16481
16534
|
};
|
|
@@ -16603,7 +16656,7 @@ var photoData$1 = function photoData(data) {
|
|
|
16603
16656
|
return photo_Data;
|
|
16604
16657
|
};
|
|
16605
16658
|
var generateReadJSON$4 = function generateReadJSON(data, state) {
|
|
16606
|
-
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;
|
|
16607
16660
|
var inital_workingday_slot_arr = [{
|
|
16608
16661
|
day: "Mon",
|
|
16609
16662
|
checked: false,
|
|
@@ -16673,24 +16726,54 @@ var generateReadJSON$4 = function generateReadJSON(data, state) {
|
|
|
16673
16726
|
locationId: data.locationID ? data.locationID : "",
|
|
16674
16727
|
shortDescription: data.shortdesc ? data.shortdesc : "",
|
|
16675
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
|
+
}),
|
|
16676
16752
|
operationalStatus: data.operationalStatus ? safeFind(state.location_masters_operationalstatus, function (sys) {
|
|
16677
16753
|
var _data$operationalStat;
|
|
16678
16754
|
return String((_data$operationalStat = data.operationalStatus) === null || _data$operationalStat === void 0 ? void 0 : _data$operationalStat._id) === String(sys.label);
|
|
16679
|
-
}) : {
|
|
16755
|
+
}, optionFromRecord(data.operationalStatus)) : {
|
|
16680
16756
|
label: "",
|
|
16681
16757
|
value: ""
|
|
16682
16758
|
},
|
|
16683
|
-
|
|
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) {
|
|
16684
16762
|
var _data$parentLocationI;
|
|
16685
16763
|
return String((_data$parentLocationI = data.parentLocationID_desc) === null || _data$parentLocationI === void 0 ? void 0 : _data$parentLocationI._id) === String(sys.label);
|
|
16686
|
-
}) : {
|
|
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
|
+
} : {
|
|
16687
16768
|
label: "",
|
|
16688
16769
|
value: ""
|
|
16689
16770
|
},
|
|
16690
16771
|
locationRoleType: data.locationRoletype ? safeFind(state.location_masters_locationroletype, function (sys) {
|
|
16691
16772
|
var _data$locationRoletyp;
|
|
16692
16773
|
return String((_data$locationRoletyp = data.locationRoletype) === null || _data$locationRoletyp === void 0 ? void 0 : _data$locationRoletyp._id) === String(sys.label);
|
|
16693
|
-
}
|
|
16774
|
+
},
|
|
16775
|
+
// the role type list shows shortdesc
|
|
16776
|
+
optionFromRecord(data.locationRoletype, "shortdesc")) : {
|
|
16694
16777
|
label: "",
|
|
16695
16778
|
value: ""
|
|
16696
16779
|
},
|
|
@@ -16861,7 +16944,9 @@ var LOCATION_MASTERS_LOCATIONTYPE = createAsyncThunk("locationMasterSlice/locati
|
|
|
16861
16944
|
}
|
|
16862
16945
|
}, _callee3, null, [[1, 4]]);
|
|
16863
16946
|
})));
|
|
16864
|
-
|
|
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() {
|
|
16865
16950
|
var _ref8,
|
|
16866
16951
|
rejectWithValue,
|
|
16867
16952
|
data_arr,
|
|
@@ -16875,32 +16960,31 @@ var LOCATION_MASTERS_OPERATIONALSTATUS = createAsyncThunk("locationMasterSlice/l
|
|
|
16875
16960
|
_context4.p = 1;
|
|
16876
16961
|
_context4.n = 2;
|
|
16877
16962
|
return fetchData({
|
|
16878
|
-
body: JSON.stringify(masterQuery$7.
|
|
16963
|
+
body: JSON.stringify(masterQuery$7.locationMasterLanguage())
|
|
16879
16964
|
}, __baseUrl__$1);
|
|
16880
16965
|
case 2:
|
|
16881
16966
|
data_arr = _context4.v;
|
|
16882
|
-
arry = []
|
|
16883
|
-
|
|
16884
|
-
return data_arr.map(function (val) {
|
|
16885
|
-
arry.push({
|
|
16967
|
+
arry = (Array.isArray(data_arr) ? data_arr : []).map(function (val) {
|
|
16968
|
+
return {
|
|
16886
16969
|
value: val === null || val === void 0 ? void 0 : val.display,
|
|
16887
|
-
label: val === null || val === void 0 ? void 0 : val._id
|
|
16888
|
-
|
|
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
|
+
};
|
|
16889
16974
|
});
|
|
16890
|
-
case 3:
|
|
16891
16975
|
return _context4.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
16892
16976
|
data: arry
|
|
16893
16977
|
}));
|
|
16894
|
-
case
|
|
16895
|
-
_context4.p =
|
|
16978
|
+
case 3:
|
|
16979
|
+
_context4.p = 3;
|
|
16896
16980
|
_t4 = _context4.v;
|
|
16897
16981
|
return _context4.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
16898
16982
|
message: _t4.message
|
|
16899
16983
|
})));
|
|
16900
16984
|
}
|
|
16901
|
-
}, _callee4, null, [[1,
|
|
16985
|
+
}, _callee4, null, [[1, 3]]);
|
|
16902
16986
|
})));
|
|
16903
|
-
var
|
|
16987
|
+
var LOCATION_MASTERS_OPERATIONALSTATUS = createAsyncThunk("locationMasterSlice/location_masters_operationalstatus", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5() {
|
|
16904
16988
|
var _ref0,
|
|
16905
16989
|
rejectWithValue,
|
|
16906
16990
|
data_arr,
|
|
@@ -16914,7 +16998,7 @@ var LOCATION_MASTERS_PARENT_LOCATION_ID_DESCRIPTION = createAsyncThunk("location
|
|
|
16914
16998
|
_context5.p = 1;
|
|
16915
16999
|
_context5.n = 2;
|
|
16916
17000
|
return fetchData({
|
|
16917
|
-
body: JSON.stringify(masterQuery$7.
|
|
17001
|
+
body: JSON.stringify(masterQuery$7.locationMasterOperationalStatus())
|
|
16918
17002
|
}, __baseUrl__$1);
|
|
16919
17003
|
case 2:
|
|
16920
17004
|
data_arr = _context5.v;
|
|
@@ -16922,8 +17006,8 @@ var LOCATION_MASTERS_PARENT_LOCATION_ID_DESCRIPTION = createAsyncThunk("location
|
|
|
16922
17006
|
_context5.n = 3;
|
|
16923
17007
|
return data_arr.map(function (val) {
|
|
16924
17008
|
arry.push({
|
|
16925
|
-
|
|
16926
|
-
|
|
17009
|
+
value: val === null || val === void 0 ? void 0 : val.display,
|
|
17010
|
+
label: val === null || val === void 0 ? void 0 : val._id
|
|
16927
17011
|
});
|
|
16928
17012
|
});
|
|
16929
17013
|
case 3:
|
|
@@ -16939,9 +17023,11 @@ var LOCATION_MASTERS_PARENT_LOCATION_ID_DESCRIPTION = createAsyncThunk("location
|
|
|
16939
17023
|
}
|
|
16940
17024
|
}, _callee5, null, [[1, 4]]);
|
|
16941
17025
|
})));
|
|
16942
|
-
var
|
|
16943
|
-
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,
|
|
16944
17029
|
rejectWithValue,
|
|
17030
|
+
_payload$managingorgi,
|
|
16945
17031
|
data_arr,
|
|
16946
17032
|
arry,
|
|
16947
17033
|
_args6 = arguments,
|
|
@@ -16949,21 +17035,24 @@ var LOCATION_MASTERS_LOCATIONROLETYPE = createAsyncThunk("locationMasterSlice/lo
|
|
|
16949
17035
|
return _regenerator().w(function (_context6) {
|
|
16950
17036
|
while (1) switch (_context6.p = _context6.n) {
|
|
16951
17037
|
case 0:
|
|
17038
|
+
payload = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
|
|
16952
17039
|
_ref10 = _args6.length > 1 ? _args6[1] : undefined, rejectWithValue = _ref10.rejectWithValue;
|
|
16953
17040
|
_context6.p = 1;
|
|
16954
17041
|
_context6.n = 2;
|
|
16955
17042
|
return fetchData({
|
|
16956
|
-
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 : ""))
|
|
16957
17044
|
}, __baseUrl__$1);
|
|
16958
17045
|
case 2:
|
|
16959
17046
|
data_arr = _context6.v;
|
|
16960
17047
|
arry = [];
|
|
16961
17048
|
_context6.n = 3;
|
|
16962
17049
|
return data_arr.map(function (val) {
|
|
16963
|
-
arry.push(
|
|
16964
|
-
|
|
16965
|
-
|
|
16966
|
-
|
|
17050
|
+
arry.push({
|
|
17051
|
+
label: val._id,
|
|
17052
|
+
// shown in the dropdown
|
|
17053
|
+
value: val.shortdesc || val.locationID,
|
|
17054
|
+
locationID: val.locationID
|
|
17055
|
+
});
|
|
16967
17056
|
});
|
|
16968
17057
|
case 3:
|
|
16969
17058
|
return _context6.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -16978,12 +17067,9 @@ var LOCATION_MASTERS_LOCATIONROLETYPE = createAsyncThunk("locationMasterSlice/lo
|
|
|
16978
17067
|
}
|
|
16979
17068
|
}, _callee6, null, [[1, 4]]);
|
|
16980
17069
|
})));
|
|
16981
|
-
var
|
|
16982
|
-
var
|
|
16983
|
-
_ref12,
|
|
17070
|
+
var LOCATION_MASTERS_LOCATIONROLETYPE = createAsyncThunk("locationMasterSlice/location_masters_locationroletype", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7() {
|
|
17071
|
+
var _ref12,
|
|
16984
17072
|
rejectWithValue,
|
|
16985
|
-
_data_arr$,
|
|
16986
|
-
id,
|
|
16987
17073
|
data_arr,
|
|
16988
17074
|
arry,
|
|
16989
17075
|
_args7 = arguments,
|
|
@@ -16991,22 +17077,19 @@ var LOCATION_MASTER_SPECIALITY = createAsyncThunk("locationMasterSlice/location_
|
|
|
16991
17077
|
return _regenerator().w(function (_context7) {
|
|
16992
17078
|
while (1) switch (_context7.p = _context7.n) {
|
|
16993
17079
|
case 0:
|
|
16994
|
-
payload = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
|
|
16995
17080
|
_ref12 = _args7.length > 1 ? _args7[1] : undefined, rejectWithValue = _ref12.rejectWithValue;
|
|
16996
17081
|
_context7.p = 1;
|
|
16997
|
-
id = payload.id;
|
|
16998
17082
|
_context7.n = 2;
|
|
16999
17083
|
return fetchData({
|
|
17000
|
-
body: JSON.stringify(masterQuery$7.
|
|
17084
|
+
body: JSON.stringify(masterQuery$7.locationMasterLocationRoleType())
|
|
17001
17085
|
}, __baseUrl__$1);
|
|
17002
17086
|
case 2:
|
|
17003
17087
|
data_arr = _context7.v;
|
|
17004
17088
|
arry = [];
|
|
17005
17089
|
_context7.n = 3;
|
|
17006
|
-
return data_arr
|
|
17007
|
-
var _val$display;
|
|
17090
|
+
return data_arr.map(function (val) {
|
|
17008
17091
|
arry.push(_objectSpread2({
|
|
17009
|
-
value:
|
|
17092
|
+
value: val.shortdesc,
|
|
17010
17093
|
label: val._id
|
|
17011
17094
|
}, val));
|
|
17012
17095
|
});
|
|
@@ -17023,9 +17106,12 @@ var LOCATION_MASTER_SPECIALITY = createAsyncThunk("locationMasterSlice/location_
|
|
|
17023
17106
|
}
|
|
17024
17107
|
}, _callee7, null, [[1, 4]]);
|
|
17025
17108
|
})));
|
|
17026
|
-
var
|
|
17027
|
-
var
|
|
17109
|
+
var LOCATION_MASTER_SPECIALITY = createAsyncThunk("locationMasterSlice/location_masters_speciality", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8() {
|
|
17110
|
+
var payload,
|
|
17111
|
+
_ref14,
|
|
17028
17112
|
rejectWithValue,
|
|
17113
|
+
_data_arr$,
|
|
17114
|
+
id,
|
|
17029
17115
|
data_arr,
|
|
17030
17116
|
arry,
|
|
17031
17117
|
_args8 = arguments,
|
|
@@ -17033,21 +17119,24 @@ var LOCATION_MASTER_CONTACTMODE = createAsyncThunk("locationMasterSlice/location
|
|
|
17033
17119
|
return _regenerator().w(function (_context8) {
|
|
17034
17120
|
while (1) switch (_context8.p = _context8.n) {
|
|
17035
17121
|
case 0:
|
|
17122
|
+
payload = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
|
|
17036
17123
|
_ref14 = _args8.length > 1 ? _args8[1] : undefined, rejectWithValue = _ref14.rejectWithValue;
|
|
17037
17124
|
_context8.p = 1;
|
|
17125
|
+
id = payload.id;
|
|
17038
17126
|
_context8.n = 2;
|
|
17039
17127
|
return fetchData({
|
|
17040
|
-
body: JSON.stringify(masterQuery$7.
|
|
17128
|
+
body: JSON.stringify(masterQuery$7.locationMasterSpeciality(id))
|
|
17041
17129
|
}, __baseUrl__$1);
|
|
17042
17130
|
case 2:
|
|
17043
17131
|
data_arr = _context8.v;
|
|
17044
17132
|
arry = [];
|
|
17045
17133
|
_context8.n = 3;
|
|
17046
|
-
return data_arr
|
|
17047
|
-
|
|
17048
|
-
|
|
17049
|
-
|
|
17050
|
-
|
|
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));
|
|
17051
17140
|
});
|
|
17052
17141
|
case 3:
|
|
17053
17142
|
return _context8.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -17062,7 +17151,7 @@ var LOCATION_MASTER_CONTACTMODE = createAsyncThunk("locationMasterSlice/location
|
|
|
17062
17151
|
}
|
|
17063
17152
|
}, _callee8, null, [[1, 4]]);
|
|
17064
17153
|
})));
|
|
17065
|
-
var
|
|
17154
|
+
var LOCATION_MASTER_CONTACTMODE = createAsyncThunk("locationMasterSlice/location_masters_contactmode", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9() {
|
|
17066
17155
|
var _ref16,
|
|
17067
17156
|
rejectWithValue,
|
|
17068
17157
|
data_arr,
|
|
@@ -17076,7 +17165,7 @@ var LOCATION_MASTER_ISD = createAsyncThunk("locationMasterSlice/location_masters
|
|
|
17076
17165
|
_context9.p = 1;
|
|
17077
17166
|
_context9.n = 2;
|
|
17078
17167
|
return fetchData({
|
|
17079
|
-
body: JSON.stringify(masterQuery$7.
|
|
17168
|
+
body: JSON.stringify(masterQuery$7.locationMasterContactMode())
|
|
17080
17169
|
}, __baseUrl__$1);
|
|
17081
17170
|
case 2:
|
|
17082
17171
|
data_arr = _context9.v;
|
|
@@ -17084,8 +17173,8 @@ var LOCATION_MASTER_ISD = createAsyncThunk("locationMasterSlice/location_masters
|
|
|
17084
17173
|
_context9.n = 3;
|
|
17085
17174
|
return data_arr.map(function (val) {
|
|
17086
17175
|
arry.push({
|
|
17087
|
-
value: val.
|
|
17088
|
-
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
|
|
17089
17178
|
});
|
|
17090
17179
|
});
|
|
17091
17180
|
case 3:
|
|
@@ -17101,7 +17190,7 @@ var LOCATION_MASTER_ISD = createAsyncThunk("locationMasterSlice/location_masters
|
|
|
17101
17190
|
}
|
|
17102
17191
|
}, _callee9, null, [[1, 4]]);
|
|
17103
17192
|
})));
|
|
17104
|
-
var
|
|
17193
|
+
var LOCATION_MASTER_ISD = createAsyncThunk("locationMasterSlice/location_masters_isd", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0() {
|
|
17105
17194
|
var _ref18,
|
|
17106
17195
|
rejectWithValue,
|
|
17107
17196
|
data_arr,
|
|
@@ -17115,7 +17204,7 @@ var LOCATION_MASTER_USE = createAsyncThunk("locationMasterSlice/location_masters
|
|
|
17115
17204
|
_context0.p = 1;
|
|
17116
17205
|
_context0.n = 2;
|
|
17117
17206
|
return fetchData({
|
|
17118
|
-
body: JSON.stringify(masterQuery$7.
|
|
17207
|
+
body: JSON.stringify(masterQuery$7.locationMasterISD())
|
|
17119
17208
|
}, __baseUrl__$1);
|
|
17120
17209
|
case 2:
|
|
17121
17210
|
data_arr = _context0.v;
|
|
@@ -17123,8 +17212,8 @@ var LOCATION_MASTER_USE = createAsyncThunk("locationMasterSlice/location_masters
|
|
|
17123
17212
|
_context0.n = 3;
|
|
17124
17213
|
return data_arr.map(function (val) {
|
|
17125
17214
|
arry.push({
|
|
17126
|
-
value: val
|
|
17127
|
-
label: val
|
|
17215
|
+
value: val.GeoLocationISDCode,
|
|
17216
|
+
label: val._id
|
|
17128
17217
|
});
|
|
17129
17218
|
});
|
|
17130
17219
|
case 3:
|
|
@@ -17140,7 +17229,7 @@ var LOCATION_MASTER_USE = createAsyncThunk("locationMasterSlice/location_masters
|
|
|
17140
17229
|
}
|
|
17141
17230
|
}, _callee0, null, [[1, 4]]);
|
|
17142
17231
|
})));
|
|
17143
|
-
var
|
|
17232
|
+
var LOCATION_MASTER_USE = createAsyncThunk("locationMasterSlice/location_masters_use", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1() {
|
|
17144
17233
|
var _ref20,
|
|
17145
17234
|
rejectWithValue,
|
|
17146
17235
|
data_arr,
|
|
@@ -17154,7 +17243,7 @@ var LOCATION_MASTER_PRIORITY = createAsyncThunk("locationMasterSlice/location_ma
|
|
|
17154
17243
|
_context1.p = 1;
|
|
17155
17244
|
_context1.n = 2;
|
|
17156
17245
|
return fetchData({
|
|
17157
|
-
body: JSON.stringify(masterQuery$7.
|
|
17246
|
+
body: JSON.stringify(masterQuery$7.locationMasterUse())
|
|
17158
17247
|
}, __baseUrl__$1);
|
|
17159
17248
|
case 2:
|
|
17160
17249
|
data_arr = _context1.v;
|
|
@@ -17179,91 +17268,91 @@ var LOCATION_MASTER_PRIORITY = createAsyncThunk("locationMasterSlice/location_ma
|
|
|
17179
17268
|
}
|
|
17180
17269
|
}, _callee1, null, [[1, 4]]);
|
|
17181
17270
|
})));
|
|
17182
|
-
var
|
|
17183
|
-
var
|
|
17184
|
-
_ref22,
|
|
17271
|
+
var LOCATION_MASTER_PRIORITY = createAsyncThunk("locationMasterSlice/location_masters_priority", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee10() {
|
|
17272
|
+
var _ref22,
|
|
17185
17273
|
rejectWithValue,
|
|
17186
|
-
|
|
17187
|
-
|
|
17188
|
-
state,
|
|
17189
|
-
ccState,
|
|
17190
|
-
data,
|
|
17191
|
-
readJSON,
|
|
17274
|
+
data_arr,
|
|
17275
|
+
arry,
|
|
17192
17276
|
_args10 = arguments,
|
|
17193
17277
|
_t10;
|
|
17194
17278
|
return _regenerator().w(function (_context10) {
|
|
17195
17279
|
while (1) switch (_context10.p = _context10.n) {
|
|
17196
17280
|
case 0:
|
|
17197
|
-
|
|
17198
|
-
_ref22 = _args10.length > 1 ? _args10[1] : undefined, rejectWithValue = _ref22.rejectWithValue, getState = _ref22.getState;
|
|
17281
|
+
_ref22 = _args10.length > 1 ? _args10[1] : undefined, rejectWithValue = _ref22.rejectWithValue;
|
|
17199
17282
|
_context10.p = 1;
|
|
17200
|
-
id = payload.id;
|
|
17201
|
-
state = getState();
|
|
17202
|
-
ccState = state.locationMasterSlice;
|
|
17203
17283
|
_context10.n = 2;
|
|
17204
17284
|
return fetchData({
|
|
17205
|
-
body: JSON.stringify(
|
|
17285
|
+
body: JSON.stringify(masterQuery$7.locationMasterPriority())
|
|
17206
17286
|
}, __baseUrl__$1);
|
|
17207
17287
|
case 2:
|
|
17208
|
-
|
|
17209
|
-
|
|
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:
|
|
17210
17298
|
return _context10.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
17211
|
-
data:
|
|
17299
|
+
data: arry
|
|
17212
17300
|
}));
|
|
17213
|
-
case
|
|
17214
|
-
_context10.p =
|
|
17301
|
+
case 4:
|
|
17302
|
+
_context10.p = 4;
|
|
17215
17303
|
_t10 = _context10.v;
|
|
17216
|
-
console.clear();
|
|
17217
17304
|
return _context10.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
17218
17305
|
message: _t10.message
|
|
17219
17306
|
})));
|
|
17220
17307
|
}
|
|
17221
|
-
}, _callee10, null, [[1,
|
|
17308
|
+
}, _callee10, null, [[1, 4]]);
|
|
17222
17309
|
})));
|
|
17223
|
-
var
|
|
17224
|
-
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,
|
|
17225
17313
|
rejectWithValue,
|
|
17226
|
-
|
|
17227
|
-
|
|
17314
|
+
getState,
|
|
17315
|
+
id,
|
|
17316
|
+
state,
|
|
17317
|
+
ccState,
|
|
17318
|
+
data,
|
|
17319
|
+
readJSON,
|
|
17228
17320
|
_args11 = arguments,
|
|
17229
17321
|
_t11;
|
|
17230
17322
|
return _regenerator().w(function (_context11) {
|
|
17231
17323
|
while (1) switch (_context11.p = _context11.n) {
|
|
17232
17324
|
case 0:
|
|
17233
|
-
|
|
17325
|
+
payload = _args11.length > 0 && _args11[0] !== undefined ? _args11[0] : {};
|
|
17326
|
+
_ref24 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref24.rejectWithValue, getState = _ref24.getState;
|
|
17234
17327
|
_context11.p = 1;
|
|
17328
|
+
id = payload.id;
|
|
17329
|
+
state = getState();
|
|
17330
|
+
ccState = state.locationMasterSlice;
|
|
17235
17331
|
_context11.n = 2;
|
|
17236
17332
|
return fetchData({
|
|
17237
|
-
body: JSON.stringify(
|
|
17333
|
+
body: JSON.stringify(queries$n.location_by_id(id))
|
|
17238
17334
|
}, __baseUrl__$1);
|
|
17239
17335
|
case 2:
|
|
17240
|
-
|
|
17241
|
-
|
|
17242
|
-
_context11.n = 3;
|
|
17243
|
-
return data_arr === null || data_arr === void 0 ? void 0 : data_arr.map(function (val) {
|
|
17244
|
-
array.push(_objectSpread2({
|
|
17245
|
-
value: val === null || val === void 0 ? void 0 : val.display,
|
|
17246
|
-
label: val === null || val === void 0 ? void 0 : val._id
|
|
17247
|
-
}, val));
|
|
17248
|
-
});
|
|
17249
|
-
case 3:
|
|
17336
|
+
data = _context11.v;
|
|
17337
|
+
readJSON = generateReadJSON$4(data[0] ? data[0] : null, ccState);
|
|
17250
17338
|
return _context11.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
17251
|
-
data:
|
|
17339
|
+
data: readJSON
|
|
17252
17340
|
}));
|
|
17253
|
-
case
|
|
17254
|
-
_context11.p =
|
|
17341
|
+
case 3:
|
|
17342
|
+
_context11.p = 3;
|
|
17255
17343
|
_t11 = _context11.v;
|
|
17344
|
+
console.clear();
|
|
17256
17345
|
return _context11.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
17257
17346
|
message: _t11.message
|
|
17258
17347
|
})));
|
|
17259
17348
|
}
|
|
17260
|
-
}, _callee11, null, [[1,
|
|
17349
|
+
}, _callee11, null, [[1, 3]]);
|
|
17261
17350
|
})));
|
|
17262
|
-
var
|
|
17351
|
+
var SPECIALITY_DATA = createAsyncThunk("locationMasterSlice/speciality_data", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee12() {
|
|
17263
17352
|
var _ref26,
|
|
17264
17353
|
rejectWithValue,
|
|
17265
17354
|
data_arr,
|
|
17266
|
-
|
|
17355
|
+
array,
|
|
17267
17356
|
_args12 = arguments,
|
|
17268
17357
|
_t12;
|
|
17269
17358
|
return _regenerator().w(function (_context12) {
|
|
@@ -17273,23 +17362,21 @@ var LOCATION_MASTER_FORMS = createAsyncThunk("locationMasterSlice/location_maste
|
|
|
17273
17362
|
_context12.p = 1;
|
|
17274
17363
|
_context12.n = 2;
|
|
17275
17364
|
return fetchData({
|
|
17276
|
-
body: JSON.stringify(masterQuery$7.
|
|
17365
|
+
body: JSON.stringify(masterQuery$7.speciality_data())
|
|
17277
17366
|
}, __baseUrl__$1);
|
|
17278
17367
|
case 2:
|
|
17279
17368
|
data_arr = _context12.v;
|
|
17280
|
-
|
|
17369
|
+
array = [];
|
|
17281
17370
|
_context12.n = 3;
|
|
17282
|
-
return data_arr.map(function (val) {
|
|
17283
|
-
|
|
17284
|
-
|
|
17285
|
-
|
|
17286
|
-
|
|
17287
|
-
form_id: val === null || val === void 0 ? void 0 : val.form_id
|
|
17288
|
-
});
|
|
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));
|
|
17289
17376
|
});
|
|
17290
17377
|
case 3:
|
|
17291
17378
|
return _context12.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
17292
|
-
data:
|
|
17379
|
+
data: array
|
|
17293
17380
|
}));
|
|
17294
17381
|
case 4:
|
|
17295
17382
|
_context12.p = 4;
|
|
@@ -17300,7 +17387,7 @@ var LOCATION_MASTER_FORMS = createAsyncThunk("locationMasterSlice/location_maste
|
|
|
17300
17387
|
}
|
|
17301
17388
|
}, _callee12, null, [[1, 4]]);
|
|
17302
17389
|
})));
|
|
17303
|
-
var
|
|
17390
|
+
var LOCATION_MASTER_FORMS = createAsyncThunk("locationMasterSlice/location_masters_forms", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee13() {
|
|
17304
17391
|
var _ref28,
|
|
17305
17392
|
rejectWithValue,
|
|
17306
17393
|
data_arr,
|
|
@@ -17314,17 +17401,19 @@ var LOCATION_MASTER_TYPEOFCARE = createAsyncThunk("locationMasterSlice/location_
|
|
|
17314
17401
|
_context13.p = 1;
|
|
17315
17402
|
_context13.n = 2;
|
|
17316
17403
|
return fetchData({
|
|
17317
|
-
body: JSON.stringify(masterQuery$7.
|
|
17404
|
+
body: JSON.stringify(masterQuery$7.locationMasterForms())
|
|
17318
17405
|
}, __baseUrl__$1);
|
|
17319
17406
|
case 2:
|
|
17320
17407
|
data_arr = _context13.v;
|
|
17321
17408
|
arry = [];
|
|
17322
17409
|
_context13.n = 3;
|
|
17323
17410
|
return data_arr.map(function (val) {
|
|
17324
|
-
arry.push(
|
|
17325
|
-
|
|
17326
|
-
|
|
17327
|
-
|
|
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
|
+
});
|
|
17328
17417
|
});
|
|
17329
17418
|
case 3:
|
|
17330
17419
|
return _context13.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -17339,6 +17428,45 @@ var LOCATION_MASTER_TYPEOFCARE = createAsyncThunk("locationMasterSlice/location_
|
|
|
17339
17428
|
}
|
|
17340
17429
|
}, _callee13, null, [[1, 4]]);
|
|
17341
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
|
+
})));
|
|
17342
17470
|
var locationMasterSlice = createSlice({
|
|
17343
17471
|
name: "locationMasterAPISlice",
|
|
17344
17472
|
initialState: {
|
|
@@ -17346,6 +17474,7 @@ var locationMasterSlice = createSlice({
|
|
|
17346
17474
|
location_masters_entityname: _objectSpread2({}, defaultState.List),
|
|
17347
17475
|
location_masters_locationtype: _objectSpread2({}, defaultState.List),
|
|
17348
17476
|
location_masters_operationalstatus: _objectSpread2({}, defaultState.List),
|
|
17477
|
+
location_masters_language: _objectSpread2({}, defaultState.List),
|
|
17349
17478
|
location_masters_parent_location_id: _objectSpread2({}, defaultState.List),
|
|
17350
17479
|
location_masters_locationroletype: _objectSpread2({}, defaultState.List),
|
|
17351
17480
|
location_masters_speciality: _objectSpread2({}, defaultState.List),
|
|
@@ -17438,7 +17567,7 @@ var locationMasterSlice = createSlice({
|
|
|
17438
17567
|
state.speciality_data.loading = false, state.speciality_data.error = true, state.speciality_data = action.payload;
|
|
17439
17568
|
}), LOCATION_MASTER_FORMS.fulfilled, function (state, action) {
|
|
17440
17569
|
state.location_masters_forms.loading = false, state.location_masters_forms.error = false, state.location_masters_forms = action.payload;
|
|
17441
|
-
}), _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) {
|
|
17442
17571
|
state.location_masters_forms.loading = true, state.location_masters_forms.error = false, state.location_masters_forms.loading = true;
|
|
17443
17572
|
}), LOCATION_MASTER_FORMS.rejected, function (state, action) {
|
|
17444
17573
|
state.location_masters_forms.loading = false, state.location_masters_forms.error = true, state.location_masters_forms = action.payload;
|
|
@@ -17448,6 +17577,13 @@ var locationMasterSlice = createSlice({
|
|
|
17448
17577
|
state.location_masters_typeofcare.loading = true, state.location_masters_typeofcare.error = false, state.location_masters_typeofcare.loading = true;
|
|
17449
17578
|
}), LOCATION_MASTER_TYPEOFCARE.rejected, function (state, action) {
|
|
17450
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;
|
|
17451
17587
|
}))
|
|
17452
17588
|
});
|
|
17453
17589
|
var locationMasterActions = {
|
|
@@ -17455,6 +17591,7 @@ var locationMasterActions = {
|
|
|
17455
17591
|
LOCATION_MASTERS_ENTITYNAME: LOCATION_MASTERS_ENTITYNAME,
|
|
17456
17592
|
LOCATION_MASTERS_LOCATIONTYPE: LOCATION_MASTERS_LOCATIONTYPE,
|
|
17457
17593
|
LOCATION_MASTERS_OPERATIONALSTATUS: LOCATION_MASTERS_OPERATIONALSTATUS,
|
|
17594
|
+
LOCATION_MASTERS_LANGUAGE: LOCATION_MASTERS_LANGUAGE,
|
|
17458
17595
|
LOCATION_MASTERS_PARENT_LOCATION_ID_DESCRIPTION: LOCATION_MASTERS_PARENT_LOCATION_ID_DESCRIPTION,
|
|
17459
17596
|
LOCATION_MASTERS_LOCATIONROLETYPE: LOCATION_MASTERS_LOCATIONROLETYPE,
|
|
17460
17597
|
LOCATION_MASTER_SPECIALITY: LOCATION_MASTER_SPECIALITY,
|