primary_care_admin_binder 0.1.157 → 0.1.159
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 +147 -88
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -11167,7 +11167,8 @@ var query_ids = {
|
|
|
11167
11167
|
"getAllergyList": "777aa602-1905-48d3-b1cd-db1cca7d7697",
|
|
11168
11168
|
"getCodingmasterByType": "b283129b-9841-419b-bdfc-de5105ebbad7",
|
|
11169
11169
|
"symptom_and_specialty_single_read": "b4157ebd-a966-4d06-8c02-7a9cf8e7f1f5",
|
|
11170
|
-
"symptom_and_specialty_read": "78c9fdd7-fd12-4d36-9729-88ea3174867c"
|
|
11170
|
+
"symptom_and_specialty_read": "78c9fdd7-fd12-4d36-9729-88ea3174867c",
|
|
11171
|
+
"locationmasterFormId": "f9634cd2-a5c3-46e5-9486-4cc8fd1b42ed"
|
|
11171
11172
|
};
|
|
11172
11173
|
|
|
11173
11174
|
var query$9 = {
|
|
@@ -12284,17 +12285,13 @@ var timeslotList = function timeslotList(data) {
|
|
|
12284
12285
|
var timelot_obj = {
|
|
12285
12286
|
ovrOpeningtime: val.fromTime ? getUtcTime(moment(val.fromTime)) : null,
|
|
12286
12287
|
ovrClosingtime: val.toTime ? getUtcTime(moment(val.toTime)) : null
|
|
12287
|
-
// ovrOpeningtime: val.fromTime
|
|
12288
|
-
// ? parseFloat(val.fromTime.replace(":", "."))
|
|
12289
|
-
// : null,
|
|
12290
|
-
// ovrClosingtime: val.toTime ? parseFloat(val.toTime.replace(":", ".")) : null,
|
|
12291
12288
|
};
|
|
12292
12289
|
timeslot_Lists.push(timelot_obj);
|
|
12293
12290
|
});
|
|
12294
12291
|
}
|
|
12295
12292
|
return timeslot_Lists;
|
|
12296
12293
|
};
|
|
12297
|
-
var workday_timeslot_ = function workday_timeslot_(data) {
|
|
12294
|
+
var workday_timeslot_ = function workday_timeslot_(data, dayName) {
|
|
12298
12295
|
var dummy = [];
|
|
12299
12296
|
if (data && data.length > 0) {
|
|
12300
12297
|
data.map(function (val) {
|
|
@@ -12306,14 +12303,13 @@ var workday_timeslot_ = function workday_timeslot_(data) {
|
|
|
12306
12303
|
});
|
|
12307
12304
|
}
|
|
12308
12305
|
var workday_timeslotLists = [{
|
|
12309
|
-
day: "",
|
|
12306
|
+
day: dayName || "",
|
|
12310
12307
|
operate_time: dummy
|
|
12311
12308
|
}];
|
|
12312
12309
|
return workday_timeslotLists;
|
|
12313
12310
|
};
|
|
12314
12311
|
var generateJSON = function generateJSON(data, _key) {
|
|
12315
|
-
var _data$overRideCard, _data$operationalStat, _data$operationalStat2, _data$locationType$la, _data$locationType, _data$locationRoleTyp, _data$locationRoleTyp2, _data$parentLocationI, _data$parentLocationI2, _data$speciality$labe, _data$speciality, _data$entityType$labe, _data$entityType;
|
|
12316
|
-
// filter to update the location master
|
|
12312
|
+
var _data$overRideCard, _data$operationalStat, _data$operationalStat2, _data$locationType$la, _data$locationType, _data$locationRoleTyp, _data$locationRoleTyp2, _data$parentLocationI, _data$parentLocationI2, _data$speciality$labe, _data$speciality, _data$entityType$labe, _data$entityType, _data$formid$label, _data$formid, _data$clinicalInstruc, _data$clinicDetails;
|
|
12317
12313
|
var filter = {};
|
|
12318
12314
|
if (_key) {
|
|
12319
12315
|
filter = {
|
|
@@ -12323,27 +12319,13 @@ var generateJSON = function generateJSON(data, _key) {
|
|
|
12323
12319
|
};
|
|
12324
12320
|
}
|
|
12325
12321
|
var identifierList = [{
|
|
12326
|
-
// _id: "",
|
|
12327
12322
|
user: "",
|
|
12328
12323
|
system: "",
|
|
12329
12324
|
value: "",
|
|
12330
12325
|
period: [{
|
|
12331
|
-
//_id: "",
|
|
12332
12326
|
start: getUtcTime(),
|
|
12333
12327
|
end: getUtcTime(moment().endOf("day"))
|
|
12334
|
-
//id: "",
|
|
12335
12328
|
}]
|
|
12336
|
-
// assigner: "",
|
|
12337
|
-
// Type: "",
|
|
12338
|
-
// id: "",
|
|
12339
|
-
// files: [
|
|
12340
|
-
// {
|
|
12341
|
-
// fileid: "",
|
|
12342
|
-
// filename: "",
|
|
12343
|
-
// objectid: "",
|
|
12344
|
-
// filetype: "",
|
|
12345
|
-
// },
|
|
12346
|
-
// ],
|
|
12347
12329
|
}];
|
|
12348
12330
|
|
|
12349
12331
|
// CONTACT DETAILS
|
|
@@ -12351,18 +12333,14 @@ var generateJSON = function generateJSON(data, _key) {
|
|
|
12351
12333
|
if (data.contactDetails && data.contactDetails.length > 0) {
|
|
12352
12334
|
data.contactDetails.map(function (val) {
|
|
12353
12335
|
var contactData_obj = {
|
|
12354
|
-
//_id: "",
|
|
12355
12336
|
system: val.contactMode.value.label ? val.contactMode.value.label : "",
|
|
12356
12337
|
value: val.contactModeType.value ? val.contactModeType.value : "",
|
|
12357
12338
|
use: val.use.value.label ? val.use.value.label : "",
|
|
12358
12339
|
rank: val.priority.value.label ? val.priority.value.label : "",
|
|
12359
12340
|
period: [{
|
|
12360
|
-
//_id: "",
|
|
12361
12341
|
start: getUtcTime(),
|
|
12362
12342
|
end: getUtcTime(moment().endOf("day"))
|
|
12363
|
-
//id: "",
|
|
12364
12343
|
}],
|
|
12365
|
-
//id: "",
|
|
12366
12344
|
valueprefix: val.countryCode.value.value ? val.countryCode.value.value : ""
|
|
12367
12345
|
};
|
|
12368
12346
|
contactArr.push(contactData_obj);
|
|
@@ -12379,17 +12357,19 @@ var generateJSON = function generateJSON(data, _key) {
|
|
|
12379
12357
|
}];
|
|
12380
12358
|
} else if (data.working_days_yes_no === "No") {
|
|
12381
12359
|
data.workingday_daySlots.map(function (val, i) {
|
|
12382
|
-
|
|
12383
|
-
|
|
12384
|
-
|
|
12385
|
-
|
|
12386
|
-
|
|
12387
|
-
|
|
12388
|
-
|
|
12389
|
-
|
|
12390
|
-
|
|
12391
|
-
|
|
12392
|
-
|
|
12360
|
+
if (val.checked) {
|
|
12361
|
+
var day_obj = {
|
|
12362
|
+
effFrmDate: data !== null && data !== void 0 && data.workingday_year ? data === null || data === void 0 ? void 0 : data.workingday_year : 0,
|
|
12363
|
+
effToDate: 0,
|
|
12364
|
+
workDaysOfWeek: workday_timeslot_(val.timeSlots, val.day)
|
|
12365
|
+
// allday: false,
|
|
12366
|
+
// //year: data.workingday_year,
|
|
12367
|
+
// year: parseInt(data.workingday_year),
|
|
12368
|
+
// day: val.day,
|
|
12369
|
+
// daysOfWeek: workday_timeslot(val.timeSlots),
|
|
12370
|
+
};
|
|
12371
|
+
workingDayArr.push(day_obj);
|
|
12372
|
+
}
|
|
12393
12373
|
});
|
|
12394
12374
|
}
|
|
12395
12375
|
|
|
@@ -12426,17 +12406,13 @@ var generateJSON = function generateJSON(data, _key) {
|
|
|
12426
12406
|
metadata_dbname: metaDatadbName$1
|
|
12427
12407
|
}, filter), {}, {
|
|
12428
12408
|
doc: {
|
|
12429
|
-
//_id: "",
|
|
12430
12409
|
identifier: identifierList,
|
|
12431
12410
|
status: "Active",
|
|
12432
12411
|
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,
|
|
12433
12412
|
shortdesc: data.shortDescription,
|
|
12434
|
-
//alias: "",
|
|
12435
12413
|
longdesc: data.longDescription,
|
|
12436
|
-
//mode: "",
|
|
12437
12414
|
telecom: contactArr,
|
|
12438
12415
|
address: [{
|
|
12439
|
-
//_id: "",
|
|
12440
12416
|
use: "",
|
|
12441
12417
|
text: data.locationAddress,
|
|
12442
12418
|
line: "",
|
|
@@ -12445,18 +12421,6 @@ var generateJSON = function generateJSON(data, _key) {
|
|
|
12445
12421
|
state: "",
|
|
12446
12422
|
postalCode: "",
|
|
12447
12423
|
country: ""
|
|
12448
|
-
// period: [
|
|
12449
|
-
// {
|
|
12450
|
-
// _id: "",
|
|
12451
|
-
// start: "",
|
|
12452
|
-
// end: "",
|
|
12453
|
-
// id: "",
|
|
12454
|
-
// },
|
|
12455
|
-
// ],
|
|
12456
|
-
// latitude: "",
|
|
12457
|
-
// longitude: "",
|
|
12458
|
-
// Type: "",
|
|
12459
|
-
// id: "",
|
|
12460
12424
|
}],
|
|
12461
12425
|
locationType: (_data$locationType$la = data === null || data === void 0 || (_data$locationType = data.locationType) === null || _data$locationType === void 0 ? void 0 : _data$locationType.label) !== null && _data$locationType$la !== void 0 ? _data$locationType$la : null,
|
|
12462
12426
|
position: [{
|
|
@@ -12464,7 +12428,6 @@ var generateJSON = function generateJSON(data, _key) {
|
|
|
12464
12428
|
latitude: data.latitude,
|
|
12465
12429
|
altitude: data.altitude
|
|
12466
12430
|
}],
|
|
12467
|
-
//availableExceptions: "",
|
|
12468
12431
|
managingOrgID: data.entityName.value,
|
|
12469
12432
|
id: 0,
|
|
12470
12433
|
locationRoletype: (_data$locationRoleTyp = data === null || data === void 0 || (_data$locationRoleTyp2 = data.locationRoleType) === null || _data$locationRoleTyp2 === void 0 ? void 0 : _data$locationRoleTyp2.label) !== null && _data$locationRoleTyp !== void 0 ? _data$locationRoleTyp : null,
|
|
@@ -12472,14 +12435,14 @@ var generateJSON = function generateJSON(data, _key) {
|
|
|
12472
12435
|
parentLocationID_desc: (_data$parentLocationI = data === null || data === void 0 || (_data$parentLocationI2 = data.parentLocationIdandDescription) === null || _data$parentLocationI2 === void 0 ? void 0 : _data$parentLocationI2.label) !== null && _data$parentLocationI !== void 0 ? _data$parentLocationI : null,
|
|
12473
12436
|
specialty: (_data$speciality$labe = data === null || data === void 0 || (_data$speciality = data.speciality) === null || _data$speciality === void 0 ? void 0 : _data$speciality.label) !== null && _data$speciality$labe !== void 0 ? _data$speciality$labe : null,
|
|
12474
12437
|
managingOrgEntityType: (_data$entityType$labe = data === null || data === void 0 || (_data$entityType = data.entityType) === null || _data$entityType === void 0 ? void 0 : _data$entityType.label) !== null && _data$entityType$labe !== void 0 ? _data$entityType$labe : null,
|
|
12438
|
+
formid: (_data$formid$label = (_data$formid = data.formid) === null || _data$formid === void 0 ? void 0 : _data$formid.label) !== null && _data$formid$label !== void 0 ? _data$formid$label : null,
|
|
12439
|
+
clinicalInstruction: (_data$clinicalInstruc = data.clinicalInstruction) !== null && _data$clinicalInstruc !== void 0 ? _data$clinicalInstruc : "",
|
|
12475
12440
|
workingdayyear: workingDayArr,
|
|
12476
12441
|
workingdayyearoverride: overRideArr,
|
|
12477
|
-
clinicdetails: data.clinicDetails,
|
|
12442
|
+
clinicdetails: (_data$clinicDetails = data.clinicDetails) !== null && _data$clinicDetails !== void 0 ? _data$clinicDetails : "",
|
|
12478
12443
|
photo: [{
|
|
12479
|
-
//_id: "",
|
|
12480
12444
|
date: "",
|
|
12481
12445
|
url: "",
|
|
12482
|
-
//id: "",
|
|
12483
12446
|
fileName: data.photo[0].fileName,
|
|
12484
12447
|
fileid: data.photo[0].fileid,
|
|
12485
12448
|
filetype: data.photo[0].filetype,
|
|
@@ -15379,6 +15342,13 @@ var masterQuery$7 = {
|
|
|
15379
15342
|
sortField: "display"
|
|
15380
15343
|
}
|
|
15381
15344
|
};
|
|
15345
|
+
},
|
|
15346
|
+
locationMasterForms: function locationMasterForms() {
|
|
15347
|
+
return {
|
|
15348
|
+
db_name: _dbName,
|
|
15349
|
+
filter: {},
|
|
15350
|
+
queryid: query_ids.locationmasterFormId
|
|
15351
|
+
};
|
|
15382
15352
|
}
|
|
15383
15353
|
};
|
|
15384
15354
|
|
|
@@ -15468,22 +15438,41 @@ var priorityList = function priorityList(data, state) {
|
|
|
15468
15438
|
};
|
|
15469
15439
|
};
|
|
15470
15440
|
var workingDayList = function workingDayList(data) {
|
|
15471
|
-
var
|
|
15441
|
+
var defaultDays = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"];
|
|
15442
|
+
var savedDaysMap = {};
|
|
15472
15443
|
if (data && data.length > 0) {
|
|
15473
|
-
data.
|
|
15444
|
+
data.forEach(function (val) {
|
|
15474
15445
|
if (val !== null && val !== void 0 && val.workDaysOfWeek && (val === null || val === void 0 ? void 0 : val.workDaysOfWeek.length) > 0) {
|
|
15475
|
-
val.workDaysOfWeek.
|
|
15476
|
-
var
|
|
15477
|
-
|
|
15478
|
-
|
|
15479
|
-
|
|
15480
|
-
};
|
|
15481
|
-
WorkingDayArr.push(WorkingDay_obj);
|
|
15446
|
+
val.workDaysOfWeek.forEach(function (val_) {
|
|
15447
|
+
var dayName = val_.day ? val_.day : "";
|
|
15448
|
+
if (dayName) {
|
|
15449
|
+
savedDaysMap[dayName] = val_ !== null && val_ !== void 0 && val_.operate_time ? workDayofWeekList(val_ === null || val_ === void 0 ? void 0 : val_.operate_time) : [];
|
|
15450
|
+
}
|
|
15482
15451
|
});
|
|
15483
15452
|
}
|
|
15484
15453
|
});
|
|
15485
15454
|
}
|
|
15486
|
-
return
|
|
15455
|
+
return defaultDays.map(function (dayName) {
|
|
15456
|
+
if (savedDaysMap[dayName]) {
|
|
15457
|
+
return {
|
|
15458
|
+
day: dayName,
|
|
15459
|
+
checked: true,
|
|
15460
|
+
timeSlots: savedDaysMap[dayName].length > 0 ? savedDaysMap[dayName] : [{
|
|
15461
|
+
fromTime: "",
|
|
15462
|
+
toTime: ""
|
|
15463
|
+
}]
|
|
15464
|
+
};
|
|
15465
|
+
} else {
|
|
15466
|
+
return {
|
|
15467
|
+
day: dayName,
|
|
15468
|
+
checked: false,
|
|
15469
|
+
timeSlots: [{
|
|
15470
|
+
fromTime: "",
|
|
15471
|
+
toTime: ""
|
|
15472
|
+
}]
|
|
15473
|
+
};
|
|
15474
|
+
}
|
|
15475
|
+
});
|
|
15487
15476
|
};
|
|
15488
15477
|
var workDayofWeekList = function workDayofWeekList(data) {
|
|
15489
15478
|
var WorkingDayofWeeksArr = [];
|
|
@@ -15569,52 +15558,52 @@ var photoData$1 = function photoData(data) {
|
|
|
15569
15558
|
return photo_Data;
|
|
15570
15559
|
};
|
|
15571
15560
|
var generateReadJSON$4 = function generateReadJSON(data, state) {
|
|
15572
|
-
var _data$managingOrgEnti, _data$managingOrgEnti2, _data$managingOrgID, _data$locationType, _data$locationType2, _data$specialty, _data$specialty2, _data$address, _data$address2, _data$position, _data$position2, _data$position3, _data$workingdayyear, _data$workingdayyear2, _data$workingdayyear$, _data$workingdayyear$2, _data$workingdayyear$3;
|
|
15561
|
+
var _data$managingOrgEnti, _data$managingOrgEnti2, _data$managingOrgID, _data$locationType, _data$locationType2, _data$specialty, _data$specialty2, _data$formid, _data$formid2, _data$address, _data$address2, _data$position, _data$position2, _data$position3, _data$workingdayyear, _data$workingdayyear2, _data$workingdayyear$, _data$workingdayyear$2, _data$workingdayyear$3;
|
|
15573
15562
|
var inital_workingday_slot_arr = [{
|
|
15574
15563
|
day: "Mon",
|
|
15575
|
-
checked:
|
|
15564
|
+
checked: false,
|
|
15576
15565
|
timeSlots: [{
|
|
15577
15566
|
fromTime: "",
|
|
15578
15567
|
toTime: ""
|
|
15579
15568
|
}]
|
|
15580
15569
|
}, {
|
|
15581
15570
|
day: "Tue",
|
|
15582
|
-
checked:
|
|
15571
|
+
checked: false,
|
|
15583
15572
|
timeSlots: [{
|
|
15584
15573
|
fromTime: "",
|
|
15585
15574
|
toTime: ""
|
|
15586
15575
|
}]
|
|
15587
15576
|
}, {
|
|
15588
15577
|
day: "Wed",
|
|
15589
|
-
checked:
|
|
15578
|
+
checked: false,
|
|
15590
15579
|
timeSlots: [{
|
|
15591
15580
|
fromTime: "",
|
|
15592
15581
|
toTime: ""
|
|
15593
15582
|
}]
|
|
15594
15583
|
}, {
|
|
15595
|
-
day: "
|
|
15596
|
-
checked:
|
|
15584
|
+
day: "Thu",
|
|
15585
|
+
checked: false,
|
|
15597
15586
|
timeSlots: [{
|
|
15598
15587
|
fromTime: "",
|
|
15599
15588
|
toTime: ""
|
|
15600
15589
|
}]
|
|
15601
15590
|
}, {
|
|
15602
15591
|
day: "Fri",
|
|
15603
|
-
checked:
|
|
15592
|
+
checked: false,
|
|
15604
15593
|
timeSlots: [{
|
|
15605
15594
|
fromTime: "",
|
|
15606
15595
|
toTime: ""
|
|
15607
15596
|
}]
|
|
15608
15597
|
}, {
|
|
15609
15598
|
day: "Sat",
|
|
15610
|
-
checked:
|
|
15599
|
+
checked: false,
|
|
15611
15600
|
timeSlots: [{
|
|
15612
15601
|
fromTime: "",
|
|
15613
15602
|
toTime: ""
|
|
15614
15603
|
}]
|
|
15615
15604
|
}, {
|
|
15616
15605
|
day: "Sun",
|
|
15617
|
-
checked:
|
|
15606
|
+
checked: false,
|
|
15618
15607
|
timeSlots: [{
|
|
15619
15608
|
fromTime: "",
|
|
15620
15609
|
toTime: ""
|
|
@@ -15667,6 +15656,14 @@ var generateReadJSON$4 = function generateReadJSON(data, state) {
|
|
|
15667
15656
|
label: "",
|
|
15668
15657
|
value: ""
|
|
15669
15658
|
},
|
|
15659
|
+
formid: data.formid ? _objectSpread2({
|
|
15660
|
+
label: (_data$formid = data.formid) === null || _data$formid === void 0 ? void 0 : _data$formid._id,
|
|
15661
|
+
value: (_data$formid2 = data.formid) === null || _data$formid2 === void 0 ? void 0 : _data$formid2.form_name
|
|
15662
|
+
}, data.formid) : {
|
|
15663
|
+
label: "",
|
|
15664
|
+
value: ""
|
|
15665
|
+
},
|
|
15666
|
+
clinicalInstruction: data.clinicalInstruction ? data.clinicalInstruction : "",
|
|
15670
15667
|
clinicDetails: data.clinicdetails ? data.clinicdetails : "",
|
|
15671
15668
|
locationAddress: (_data$address = data.address) !== null && _data$address !== void 0 && (_data$address = _data$address[0]) !== null && _data$address !== void 0 && _data$address.text ? (_data$address2 = data.address) === null || _data$address2 === void 0 || (_data$address2 = _data$address2[0]) === null || _data$address2 === void 0 ? void 0 : _data$address2.text : "",
|
|
15672
15669
|
longitude: (_data$position = data.position) !== null && _data$position !== void 0 && (_data$position = _data$position[0]) !== null && _data$position !== void 0 && _data$position.longitude ? data.position[0].longitude : "",
|
|
@@ -16150,18 +16147,14 @@ var LOCATION_MASTER_GET_BY_ID = createAsyncThunk("locationMasterSlice/location_m
|
|
|
16150
16147
|
_context10.p = 1;
|
|
16151
16148
|
id = payload.id;
|
|
16152
16149
|
state = getState();
|
|
16153
|
-
ccState = state.locationMasterSlice;
|
|
16154
|
-
//
|
|
16150
|
+
ccState = state.locationMasterSlice;
|
|
16155
16151
|
_context10.n = 2;
|
|
16156
16152
|
return fetchData({
|
|
16157
16153
|
body: JSON.stringify(queries$n.location_by_id(id))
|
|
16158
16154
|
}, __baseUrl__$1);
|
|
16159
16155
|
case 2:
|
|
16160
16156
|
data = _context10.v;
|
|
16161
|
-
|
|
16162
|
-
readJSON = generateReadJSON$4(data[0] ? data[0] : null,
|
|
16163
|
-
//masterlist
|
|
16164
|
-
ccState);
|
|
16157
|
+
readJSON = generateReadJSON$4(data[0] ? data[0] : null, ccState);
|
|
16165
16158
|
return _context10.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
16166
16159
|
data: readJSON
|
|
16167
16160
|
}));
|
|
@@ -16214,6 +16207,47 @@ var SPECIALITY_DATA = createAsyncThunk("locationMasterSlice/speciality_data", /*
|
|
|
16214
16207
|
}
|
|
16215
16208
|
}, _callee11, null, [[1, 4]]);
|
|
16216
16209
|
})));
|
|
16210
|
+
var LOCATION_MASTER_FORMS = createAsyncThunk("locationMasterSlice/location_masters_forms", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee12() {
|
|
16211
|
+
var _ref26,
|
|
16212
|
+
rejectWithValue,
|
|
16213
|
+
data_arr,
|
|
16214
|
+
arry,
|
|
16215
|
+
_args12 = arguments,
|
|
16216
|
+
_t12;
|
|
16217
|
+
return _regenerator().w(function (_context12) {
|
|
16218
|
+
while (1) switch (_context12.p = _context12.n) {
|
|
16219
|
+
case 0:
|
|
16220
|
+
_ref26 = _args12.length > 1 ? _args12[1] : undefined, rejectWithValue = _ref26.rejectWithValue;
|
|
16221
|
+
_context12.p = 1;
|
|
16222
|
+
_context12.n = 2;
|
|
16223
|
+
return fetchData({
|
|
16224
|
+
body: JSON.stringify(masterQuery$7.locationMasterForms())
|
|
16225
|
+
}, __baseUrl__$1);
|
|
16226
|
+
case 2:
|
|
16227
|
+
data_arr = _context12.v;
|
|
16228
|
+
arry = [];
|
|
16229
|
+
_context12.n = 3;
|
|
16230
|
+
return data_arr.map(function (val) {
|
|
16231
|
+
arry.push({
|
|
16232
|
+
label: val === null || val === void 0 ? void 0 : val._id,
|
|
16233
|
+
value: val === null || val === void 0 ? void 0 : val.form_name,
|
|
16234
|
+
form_name: val === null || val === void 0 ? void 0 : val.form_name,
|
|
16235
|
+
form_id: val === null || val === void 0 ? void 0 : val.form_id
|
|
16236
|
+
});
|
|
16237
|
+
});
|
|
16238
|
+
case 3:
|
|
16239
|
+
return _context12.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
16240
|
+
data: arry
|
|
16241
|
+
}));
|
|
16242
|
+
case 4:
|
|
16243
|
+
_context12.p = 4;
|
|
16244
|
+
_t12 = _context12.v;
|
|
16245
|
+
return _context12.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
16246
|
+
message: _t12.message
|
|
16247
|
+
})));
|
|
16248
|
+
}
|
|
16249
|
+
}, _callee12, null, [[1, 4]]);
|
|
16250
|
+
})));
|
|
16217
16251
|
var locationMasterSlice = createSlice({
|
|
16218
16252
|
name: "locationMasterAPISlice",
|
|
16219
16253
|
initialState: {
|
|
@@ -16229,7 +16263,8 @@ var locationMasterSlice = createSlice({
|
|
|
16229
16263
|
location_masters_use: _objectSpread2({}, defaultState.List),
|
|
16230
16264
|
location_masters_priority: _objectSpread2({}, defaultState.List),
|
|
16231
16265
|
locationmasterbyid: _objectSpread2({}, defaultState.List),
|
|
16232
|
-
speciality_data: _objectSpread2({}, defaultState.List)
|
|
16266
|
+
speciality_data: _objectSpread2({}, defaultState.List),
|
|
16267
|
+
location_masters_forms: _objectSpread2({}, defaultState.List)
|
|
16233
16268
|
},
|
|
16234
16269
|
extraReducers: (_extraReducers$x = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$x, LOCATION_MASTERS_ENTITYTYPE.fulfilled, function (state, action) {
|
|
16235
16270
|
state.location_masters_entitytype.loading = false, state.location_masters_entitytype.error = false, state.location_masters_entitytype = action.payload;
|
|
@@ -16291,7 +16326,7 @@ var locationMasterSlice = createSlice({
|
|
|
16291
16326
|
state.location_masters_use.loading = true, state.location_masters_use.error = false, state.location_masters_use.loading = true;
|
|
16292
16327
|
}), LOCATION_MASTER_USE.rejected, function (state, action) {
|
|
16293
16328
|
state.location_masters_use.loading = false, state.location_masters_use.error = true, state.location_masters_use = action.payload;
|
|
16294
|
-
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$x, LOCATION_MASTER_PRIORITY.fulfilled, function (state, action) {
|
|
16329
|
+
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$x, LOCATION_MASTER_PRIORITY.fulfilled, function (state, action) {
|
|
16295
16330
|
state.location_masters_priority.loading = false, state.location_masters_priority.error = false, state.location_masters_priority = action.payload;
|
|
16296
16331
|
}), LOCATION_MASTER_PRIORITY.pending, function (state, action) {
|
|
16297
16332
|
state.location_masters_priority.loading = true, state.location_masters_priority.error = false, state.location_masters_priority.loading = true;
|
|
@@ -16309,6 +16344,12 @@ var locationMasterSlice = createSlice({
|
|
|
16309
16344
|
state.speciality_data.loading = true, state.speciality_data.error = false, state.speciality_data.loading = true;
|
|
16310
16345
|
}), SPECIALITY_DATA.rejected, function (state, action) {
|
|
16311
16346
|
state.speciality_data.loading = false, state.speciality_data.error = true, state.speciality_data = action.payload;
|
|
16347
|
+
}), LOCATION_MASTER_FORMS.fulfilled, function (state, action) {
|
|
16348
|
+
state.location_masters_forms.loading = false, state.location_masters_forms.error = false, state.location_masters_forms = action.payload;
|
|
16349
|
+
}), _defineProperty(_defineProperty(_extraReducers$x, LOCATION_MASTER_FORMS.pending, function (state, action) {
|
|
16350
|
+
state.location_masters_forms.loading = true, state.location_masters_forms.error = false, state.location_masters_forms.loading = true;
|
|
16351
|
+
}), LOCATION_MASTER_FORMS.rejected, function (state, action) {
|
|
16352
|
+
state.location_masters_forms.loading = false, state.location_masters_forms.error = true, state.location_masters_forms = action.payload;
|
|
16312
16353
|
}))
|
|
16313
16354
|
});
|
|
16314
16355
|
var locationMasterActions = {
|
|
@@ -16324,7 +16365,8 @@ var locationMasterActions = {
|
|
|
16324
16365
|
LOCATION_MASTER_USE: LOCATION_MASTER_USE,
|
|
16325
16366
|
LOCATION_MASTER_PRIORITY: LOCATION_MASTER_PRIORITY,
|
|
16326
16367
|
LOCATION_MASTER_GET_BY_ID: LOCATION_MASTER_GET_BY_ID,
|
|
16327
|
-
SPECIALITY_DATA: SPECIALITY_DATA
|
|
16368
|
+
SPECIALITY_DATA: SPECIALITY_DATA,
|
|
16369
|
+
LOCATION_MASTER_FORMS: LOCATION_MASTER_FORMS
|
|
16328
16370
|
};
|
|
16329
16371
|
var locationMasterSlice$1 = locationMasterSlice.reducer;
|
|
16330
16372
|
|
|
@@ -16340,7 +16382,7 @@ var queries$m = {
|
|
|
16340
16382
|
offset: page,
|
|
16341
16383
|
count: perPage
|
|
16342
16384
|
},
|
|
16343
|
-
return_fields: "MERGE(
|
|
16385
|
+
return_fields: "MERGE( adqolcOrderType, { TotalCount: COUNT(FOR cnt IN OrderType RETURN cnt._key), ordercategory: DOCUMENT(adqolcOrderType.ordercategory), aliasDtls: ( FOR alias IN (adqolcOrderType.aliasDtls || []) LET aliasTypeDoc = DOCUMENT(alias.aliasType) RETURN MERGE( alias, { aliasType: { label: aliasTypeDoc.display, value: aliasTypeDoc._id, code: aliasTypeDoc.code } } ) ) } )"
|
|
16344
16386
|
};
|
|
16345
16387
|
},
|
|
16346
16388
|
OrderCategory: function OrderCategory() {
|
|
@@ -16366,6 +16408,14 @@ var queries$m = {
|
|
|
16366
16408
|
longdesc: data === null || data === void 0 ? void 0 : data.longdesc,
|
|
16367
16409
|
ordercategory: data === null || data === void 0 ? void 0 : data.ordercategory,
|
|
16368
16410
|
registrationReq: data === null || data === void 0 ? void 0 : data.registrationReq,
|
|
16411
|
+
aliasDtls: ((data === null || data === void 0 ? void 0 : data.aliasMapping) || []).map(function (item) {
|
|
16412
|
+
var _item$aliasType;
|
|
16413
|
+
return {
|
|
16414
|
+
aliasType: (item === null || item === void 0 || (_item$aliasType = item.aliasType) === null || _item$aliasType === void 0 ? void 0 : _item$aliasType.value) || (item === null || item === void 0 ? void 0 : item.aliasType) || "",
|
|
16415
|
+
aliasCode: (item === null || item === void 0 ? void 0 : item.aliasCode) || "",
|
|
16416
|
+
aliasName: (item === null || item === void 0 ? void 0 : item.aliasName) || ""
|
|
16417
|
+
};
|
|
16418
|
+
}),
|
|
16369
16419
|
status: data === null || data === void 0 ? void 0 : data.status
|
|
16370
16420
|
}
|
|
16371
16421
|
}];
|
|
@@ -16410,6 +16460,14 @@ var queries$m = {
|
|
|
16410
16460
|
longdesc: data === null || data === void 0 ? void 0 : data.longdesc,
|
|
16411
16461
|
ordercategory: data === null || data === void 0 ? void 0 : data.ordercategory,
|
|
16412
16462
|
registrationReq: data === null || data === void 0 ? void 0 : data.registrationReq,
|
|
16463
|
+
aliasDtls: ((data === null || data === void 0 ? void 0 : data.aliasMapping) || []).map(function (item) {
|
|
16464
|
+
var _item$aliasType2;
|
|
16465
|
+
return {
|
|
16466
|
+
aliasType: (item === null || item === void 0 || (_item$aliasType2 = item.aliasType) === null || _item$aliasType2 === void 0 ? void 0 : _item$aliasType2.value) || (item === null || item === void 0 ? void 0 : item.aliasType) || "",
|
|
16467
|
+
aliasCode: (item === null || item === void 0 ? void 0 : item.aliasCode) || "",
|
|
16468
|
+
aliasName: (item === null || item === void 0 ? void 0 : item.aliasName) || ""
|
|
16469
|
+
};
|
|
16470
|
+
}),
|
|
16413
16471
|
status: data === null || data === void 0 ? void 0 : data.status
|
|
16414
16472
|
}
|
|
16415
16473
|
}];
|
|
@@ -16456,7 +16514,8 @@ var ORDERTYPEREAD = createAsyncThunk("ordertypeSlice/ordertypeRead", /*#__PURE__
|
|
|
16456
16514
|
registrationReq: val === null || val === void 0 ? void 0 : val.registrationReq,
|
|
16457
16515
|
_id: val === null || val === void 0 ? void 0 : val._id,
|
|
16458
16516
|
ordercategory_id: val === null || val === void 0 || (_val$ordercategory6 = val.ordercategory) === null || _val$ordercategory6 === void 0 ? void 0 : _val$ordercategory6._id,
|
|
16459
|
-
ordertype: val === null || val === void 0 ? void 0 : val.ordertype
|
|
16517
|
+
ordertype: val === null || val === void 0 ? void 0 : val.ordertype,
|
|
16518
|
+
aliasMapping: (val === null || val === void 0 ? void 0 : val.aliasDtls) || []
|
|
16460
16519
|
});
|
|
16461
16520
|
}
|
|
16462
16521
|
});
|