primary_care_admin_binder 0.1.152 → 0.1.155
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 +224 -112
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -2394,6 +2394,8 @@ function getBinderUrls() {
|
|
|
2394
2394
|
var tokenApi = getBinderEnv("REACT_APP_TOKEN_URL");
|
|
2395
2395
|
var registrationApi = getBinderEnv("REACT_APP_REGISTRATION_API");
|
|
2396
2396
|
var appointmentApi = getBinderEnv("REACT_APP_APPOINTMENT_API");
|
|
2397
|
+
getBinderEnv("REACT_APP_VHC_INTEGRATION_URL");
|
|
2398
|
+
var getMohUserDetailUrl = getBinderEnv("REACT_APP_GET_MOH_USER_DETAIL_URL");
|
|
2397
2399
|
return {
|
|
2398
2400
|
// Database & Metadata
|
|
2399
2401
|
dbtype: getBinderEnv("REACT_APP_BASE_URL_HOST").split(".")[0],
|
|
@@ -2473,6 +2475,11 @@ function getBinderUrls() {
|
|
|
2473
2475
|
saveTarget: function saveTarget() {
|
|
2474
2476
|
return "".concat(registrationApi, "/api/saveTarget");
|
|
2475
2477
|
},
|
|
2478
|
+
// MOH API
|
|
2479
|
+
// getMohUserDetail: () => `${vhcIntegrationUrl}/getMohUserDetail`,
|
|
2480
|
+
getMohUserDetail: function getMohUserDetail() {
|
|
2481
|
+
return getMohUserDetailUrl;
|
|
2482
|
+
},
|
|
2476
2483
|
// Appointment Holiday URLs
|
|
2477
2484
|
holidayEditUrl: function holidayEditUrl() {
|
|
2478
2485
|
return "".concat(appointmentApi, "/api/editHoliday");
|
|
@@ -2493,6 +2500,7 @@ var __deleteUrl__ = "";
|
|
|
2493
2500
|
var __softDelete__ = "";
|
|
2494
2501
|
var __savePract__ = "";
|
|
2495
2502
|
var __saveTarget__ = "";
|
|
2503
|
+
var __getMohUserDetailUrl__ = "";
|
|
2496
2504
|
var __nifiEditUrl__ = "";
|
|
2497
2505
|
var __nifiAddUrl__ = "";
|
|
2498
2506
|
var __holidayEditUrl__ = "";
|
|
@@ -2532,6 +2540,7 @@ function refreshBinderUrls() {
|
|
|
2532
2540
|
__softDelete__ = urls.softDeleteUrl();
|
|
2533
2541
|
__savePract__ = urls.savePractitioner();
|
|
2534
2542
|
__saveTarget__ = urls.saveTarget();
|
|
2543
|
+
__getMohUserDetailUrl__ = urls.getMohUserDetail();
|
|
2535
2544
|
__nifiEditUrl__ = urls.nifiEditUrl();
|
|
2536
2545
|
__nifiAddUrl__ = urls.nifiAddUrl();
|
|
2537
2546
|
__holidayEditUrl__ = urls.holidayEditUrl();
|
|
@@ -8770,6 +8779,38 @@ var GET_ENTITY_BY_ID = createAsyncThunk("practitionerSlice/get_entity_id", /*#__
|
|
|
8770
8779
|
}
|
|
8771
8780
|
}, _callee6, null, [[1, 3]]);
|
|
8772
8781
|
})));
|
|
8782
|
+
var GET_MOH_USER_DETAIL = createAsyncThunk("practitionerSlice/get_moh_user_detail", /*#__PURE__*/function () {
|
|
8783
|
+
var _ref13 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(_ref11, _ref12) {
|
|
8784
|
+
var payload, jwtToken, rejectWithValue, data, _t7;
|
|
8785
|
+
return _regenerator().w(function (_context7) {
|
|
8786
|
+
while (1) switch (_context7.p = _context7.n) {
|
|
8787
|
+
case 0:
|
|
8788
|
+
payload = _ref11.payload, jwtToken = _ref11.jwtToken;
|
|
8789
|
+
rejectWithValue = _ref12.rejectWithValue;
|
|
8790
|
+
_context7.p = 1;
|
|
8791
|
+
console.log(jwtToken, "jwtT");
|
|
8792
|
+
_context7.n = 2;
|
|
8793
|
+
return fetchData({
|
|
8794
|
+
body: JSON.stringify(payload)
|
|
8795
|
+
}, __getMohUserDetailUrl__, jwtToken);
|
|
8796
|
+
case 2:
|
|
8797
|
+
data = _context7.v;
|
|
8798
|
+
return _context7.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
8799
|
+
data: data
|
|
8800
|
+
}));
|
|
8801
|
+
case 3:
|
|
8802
|
+
_context7.p = 3;
|
|
8803
|
+
_t7 = _context7.v;
|
|
8804
|
+
return _context7.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
8805
|
+
message: _t7.message
|
|
8806
|
+
})));
|
|
8807
|
+
}
|
|
8808
|
+
}, _callee7, null, [[1, 3]]);
|
|
8809
|
+
}));
|
|
8810
|
+
return function (_x, _x2) {
|
|
8811
|
+
return _ref13.apply(this, arguments);
|
|
8812
|
+
};
|
|
8813
|
+
}());
|
|
8773
8814
|
var practitionerSlice = createSlice({
|
|
8774
8815
|
name: "practitionerApiSlice",
|
|
8775
8816
|
initialState: {
|
|
@@ -8778,7 +8819,8 @@ var practitionerSlice = createSlice({
|
|
|
8778
8819
|
practitioner_list: _objectSpread2({}, defaultState.List),
|
|
8779
8820
|
practitioner_upsert: _objectSpread2({}, defaultState.List),
|
|
8780
8821
|
practitioner_status_update: _objectSpread2({}, defaultState.List),
|
|
8781
|
-
get_entity_by_id: _objectSpread2({}, defaultState.List)
|
|
8822
|
+
get_entity_by_id: _objectSpread2({}, defaultState.List),
|
|
8823
|
+
get_moh_user_detail: _objectSpread2({}, defaultState.List)
|
|
8782
8824
|
},
|
|
8783
8825
|
extraReducers: (_extraReducers$C = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$C, PRACTITIONER_ROLE_READ.fulfilled, function (state, action) {
|
|
8784
8826
|
state.practitioner_role_list.loading = false, state.practitioner_role_list.error = false, state.practitioner_role_list = action.payload;
|
|
@@ -8800,7 +8842,7 @@ var practitionerSlice = createSlice({
|
|
|
8800
8842
|
state.practitioner_list.loading = false, state.practitioner_list.error = true, state.practitioner_list = action.payload;
|
|
8801
8843
|
}), PRACTITIONER_UPSERT.fulfilled, function (state, action) {
|
|
8802
8844
|
state.practitioner_upsert.loading = false, state.practitioner_upsert.error = false, state.practitioner_upsert = action.payload;
|
|
8803
|
-
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$C, PRACTITIONER_UPSERT.pending, function (state, action) {
|
|
8845
|
+
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$C, PRACTITIONER_UPSERT.pending, function (state, action) {
|
|
8804
8846
|
state.practitioner_upsert.loading = true, state.practitioner_upsert.error = false, state.practitioner_upsert.loading = true;
|
|
8805
8847
|
}), PRACTITIONER_UPSERT.rejected, function (state, action) {
|
|
8806
8848
|
state.practitioner_upsert.loading = false, state.practitioner_upsert.error = true, state.practitioner_upsert = action.payload;
|
|
@@ -8816,6 +8858,12 @@ var practitionerSlice = createSlice({
|
|
|
8816
8858
|
state.get_entity_by_id.loading = true, state.get_entity_by_id.error = false, state.get_entity_by_id.loading = true;
|
|
8817
8859
|
}), GET_ENTITY_BY_ID.rejected, function (state, action) {
|
|
8818
8860
|
state.get_entity_by_id.loading = false, state.get_entity_by_id.error = true, state.get_entity_by_id = action.payload;
|
|
8861
|
+
}), GET_MOH_USER_DETAIL.fulfilled, function (state, action) {
|
|
8862
|
+
state.get_moh_user_detail.loading = false, state.get_moh_user_detail.error = false, state.get_moh_user_detail = action.payload;
|
|
8863
|
+
}), GET_MOH_USER_DETAIL.pending, function (state, action) {
|
|
8864
|
+
state.get_moh_user_detail.loading = true, state.get_moh_user_detail.error = false, state.get_moh_user_detail.loading = true;
|
|
8865
|
+
}), _defineProperty(_extraReducers$C, GET_MOH_USER_DETAIL.rejected, function (state, action) {
|
|
8866
|
+
state.get_moh_user_detail.loading = false, state.get_moh_user_detail.error = true, state.get_moh_user_detail = action.payload;
|
|
8819
8867
|
}))
|
|
8820
8868
|
});
|
|
8821
8869
|
var practitionerActions$1 = {
|
|
@@ -8824,7 +8872,8 @@ var practitionerActions$1 = {
|
|
|
8824
8872
|
PRACTITIONER_LIST_READ: PRACTITIONER_LIST_READ,
|
|
8825
8873
|
PRACTITIONER_UPSERT: PRACTITIONER_UPSERT,
|
|
8826
8874
|
PRACTITIONER_STATUS_CHANGE: PRACTITIONER_STATUS_CHANGE,
|
|
8827
|
-
GET_ENTITY_BY_ID: GET_ENTITY_BY_ID
|
|
8875
|
+
GET_ENTITY_BY_ID: GET_ENTITY_BY_ID,
|
|
8876
|
+
GET_MOH_USER_DETAIL: GET_MOH_USER_DETAIL
|
|
8828
8877
|
};
|
|
8829
8878
|
var practitionerSlice$1 = practitionerSlice.reducer;
|
|
8830
8879
|
|
|
@@ -11115,7 +11164,10 @@ var query_ids = {
|
|
|
11115
11164
|
"resOrderCatalogVitalCode": "493389da-6789-4ed0-89e4-a2d546025f1e",
|
|
11116
11165
|
"gmLoadQuery": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e",
|
|
11117
11166
|
"signInApiSlice/getpermissiondata": "1a91eea3-8c88-4f78-87c1-fcd6af54e81f",
|
|
11118
|
-
"getAllergyList": "777aa602-1905-48d3-b1cd-db1cca7d7697"
|
|
11167
|
+
"getAllergyList": "777aa602-1905-48d3-b1cd-db1cca7d7697",
|
|
11168
|
+
"getCodingmasterByType": "b283129b-9841-419b-bdfc-de5105ebbad7",
|
|
11169
|
+
"symptom_and_specialty_single_read": "b4157ebd-a966-4d06-8c02-7a9cf8e7f1f5",
|
|
11170
|
+
"symptom_and_specialty_read": "78c9fdd7-fd12-4d36-9729-88ea3174867c"
|
|
11119
11171
|
};
|
|
11120
11172
|
|
|
11121
11173
|
var query$9 = {
|
|
@@ -12300,10 +12352,10 @@ var generateJSON = function generateJSON(data, _key) {
|
|
|
12300
12352
|
data.contactDetails.map(function (val) {
|
|
12301
12353
|
var contactData_obj = {
|
|
12302
12354
|
//_id: "",
|
|
12303
|
-
system: val.contactMode.value.
|
|
12355
|
+
system: val.contactMode.value.label ? val.contactMode.value.label : "",
|
|
12304
12356
|
value: val.contactModeType.value ? val.contactModeType.value : "",
|
|
12305
|
-
use: val.use.value.
|
|
12306
|
-
rank: val.priority.value.
|
|
12357
|
+
use: val.use.value.label ? val.use.value.label : "",
|
|
12358
|
+
rank: val.priority.value.label ? val.priority.value.label : "",
|
|
12307
12359
|
period: [{
|
|
12308
12360
|
//_id: "",
|
|
12309
12361
|
start: getUtcTime(),
|
|
@@ -15070,10 +15122,12 @@ var masterQuery$7 = {
|
|
|
15070
15122
|
locationMasterEntityType: function locationMasterEntityType() {
|
|
15071
15123
|
return {
|
|
15072
15124
|
db_name: _dbName,
|
|
15073
|
-
queryid: "
|
|
15125
|
+
queryid: "b283129b-9841-419b-bdfc-de5105ebbad7",
|
|
15074
15126
|
filter: {
|
|
15075
15127
|
type: "ORGTYPE",
|
|
15076
|
-
|
|
15128
|
+
code: "",
|
|
15129
|
+
status: true,
|
|
15130
|
+
sortField: "display"
|
|
15077
15131
|
}
|
|
15078
15132
|
};
|
|
15079
15133
|
},
|
|
@@ -15113,10 +15167,12 @@ var masterQuery$7 = {
|
|
|
15113
15167
|
locationMasterLocationType: function locationMasterLocationType() {
|
|
15114
15168
|
return {
|
|
15115
15169
|
db_name: _dbName,
|
|
15116
|
-
queryid: "
|
|
15170
|
+
queryid: "b283129b-9841-419b-bdfc-de5105ebbad7",
|
|
15117
15171
|
filter: {
|
|
15118
15172
|
type: "LOCATIONTYPE",
|
|
15119
|
-
|
|
15173
|
+
code: "",
|
|
15174
|
+
status: true,
|
|
15175
|
+
sortField: "display"
|
|
15120
15176
|
}
|
|
15121
15177
|
};
|
|
15122
15178
|
},
|
|
@@ -15135,10 +15191,12 @@ var masterQuery$7 = {
|
|
|
15135
15191
|
locationMasterOperationalStatus: function locationMasterOperationalStatus() {
|
|
15136
15192
|
return {
|
|
15137
15193
|
db_name: _dbName,
|
|
15138
|
-
queryid: "
|
|
15194
|
+
queryid: "b283129b-9841-419b-bdfc-de5105ebbad7",
|
|
15139
15195
|
filter: {
|
|
15140
15196
|
type: "OPERATIONSTATUS",
|
|
15141
|
-
|
|
15197
|
+
code: "",
|
|
15198
|
+
status: true,
|
|
15199
|
+
sortField: "display"
|
|
15142
15200
|
}
|
|
15143
15201
|
};
|
|
15144
15202
|
},
|
|
@@ -15229,10 +15287,12 @@ var masterQuery$7 = {
|
|
|
15229
15287
|
locationMasterContactMode: function locationMasterContactMode() {
|
|
15230
15288
|
return {
|
|
15231
15289
|
db_name: _dbName,
|
|
15232
|
-
queryid: "
|
|
15290
|
+
queryid: "b283129b-9841-419b-bdfc-de5105ebbad7",
|
|
15233
15291
|
filter: {
|
|
15234
15292
|
type: "CONTACTSYSTEM",
|
|
15235
|
-
|
|
15293
|
+
code: "",
|
|
15294
|
+
status: true,
|
|
15295
|
+
sortField: "display"
|
|
15236
15296
|
}
|
|
15237
15297
|
};
|
|
15238
15298
|
},
|
|
@@ -15275,10 +15335,12 @@ var masterQuery$7 = {
|
|
|
15275
15335
|
locationMasterUse: function locationMasterUse() {
|
|
15276
15336
|
return {
|
|
15277
15337
|
db_name: _dbName,
|
|
15278
|
-
queryid: "
|
|
15338
|
+
queryid: "b283129b-9841-419b-bdfc-de5105ebbad7",
|
|
15279
15339
|
filter: {
|
|
15280
15340
|
type: "ADDRESSUSE",
|
|
15281
|
-
|
|
15341
|
+
code: "",
|
|
15342
|
+
status: true,
|
|
15343
|
+
sortField: "display"
|
|
15282
15344
|
}
|
|
15283
15345
|
};
|
|
15284
15346
|
},
|
|
@@ -15297,10 +15359,12 @@ var masterQuery$7 = {
|
|
|
15297
15359
|
locationMasterPriority: function locationMasterPriority() {
|
|
15298
15360
|
return {
|
|
15299
15361
|
db_name: _dbName,
|
|
15300
|
-
queryid: "
|
|
15362
|
+
queryid: "b283129b-9841-419b-bdfc-de5105ebbad7",
|
|
15301
15363
|
filter: {
|
|
15302
15364
|
type: "RANK",
|
|
15303
|
-
|
|
15365
|
+
code: "",
|
|
15366
|
+
status: true,
|
|
15367
|
+
sortField: "display"
|
|
15304
15368
|
}
|
|
15305
15369
|
};
|
|
15306
15370
|
},
|
|
@@ -15311,7 +15375,7 @@ var masterQuery$7 = {
|
|
|
15311
15375
|
filter: {
|
|
15312
15376
|
type: "SPECIALTY",
|
|
15313
15377
|
code: "",
|
|
15314
|
-
status:
|
|
15378
|
+
status: true,
|
|
15315
15379
|
sortField: "display"
|
|
15316
15380
|
}
|
|
15317
15381
|
};
|
|
@@ -15361,37 +15425,43 @@ var contactDetailList = function contactDetailList(data, state) {
|
|
|
15361
15425
|
}
|
|
15362
15426
|
return contact_Lists;
|
|
15363
15427
|
};
|
|
15364
|
-
//CONTACT MODE OBJ
|
|
15428
|
+
//CONTACT MODE OBJ — data is an expanded document object { _id, display, ... }
|
|
15365
15429
|
var contactModeList = function contactModeList(data, state) {
|
|
15366
|
-
|
|
15367
|
-
|
|
15430
|
+
var _data$_id;
|
|
15431
|
+
var id = (_data$_id = data === null || data === void 0 ? void 0 : data._id) !== null && _data$_id !== void 0 ? _data$_id : data;
|
|
15432
|
+
return id ? safeFind(state.location_masters_contactmode, function (sys) {
|
|
15433
|
+
return String(sys.label) === String(id);
|
|
15368
15434
|
}) : {
|
|
15369
15435
|
label: "",
|
|
15370
15436
|
value: ""
|
|
15371
15437
|
};
|
|
15372
15438
|
};
|
|
15373
|
-
//COUNTRY CODE OBJ
|
|
15439
|
+
//COUNTRY CODE OBJ — data is a plain string (ISD code prefix)
|
|
15374
15440
|
var countryCodeList = function countryCodeList(data, state) {
|
|
15375
15441
|
return data && data.length > 0 ? safeFind(state.location_masters_isd, function (sys) {
|
|
15376
|
-
return
|
|
15442
|
+
return String(sys.value) === String(data);
|
|
15377
15443
|
}) : {
|
|
15378
15444
|
label: "",
|
|
15379
15445
|
value: ""
|
|
15380
15446
|
};
|
|
15381
15447
|
};
|
|
15382
|
-
//USE OBJ
|
|
15448
|
+
//USE OBJ — data is an expanded document object { _id, display, ... }
|
|
15383
15449
|
var useList = function useList(data, state) {
|
|
15384
|
-
|
|
15385
|
-
|
|
15450
|
+
var _data$_id2;
|
|
15451
|
+
var id = (_data$_id2 = data === null || data === void 0 ? void 0 : data._id) !== null && _data$_id2 !== void 0 ? _data$_id2 : data;
|
|
15452
|
+
return id ? safeFind(state.location_masters_use, function (sys) {
|
|
15453
|
+
return String(sys.label) === String(id);
|
|
15386
15454
|
}) : {
|
|
15387
15455
|
label: "",
|
|
15388
15456
|
value: ""
|
|
15389
15457
|
};
|
|
15390
15458
|
};
|
|
15391
|
-
//RANK OBJ
|
|
15459
|
+
//RANK OBJ — data is an expanded document object { _id, display, ... }
|
|
15392
15460
|
var priorityList = function priorityList(data, state) {
|
|
15393
|
-
|
|
15394
|
-
|
|
15461
|
+
var _data$_id3;
|
|
15462
|
+
var id = (_data$_id3 = data === null || data === void 0 ? void 0 : data._id) !== null && _data$_id3 !== void 0 ? _data$_id3 : data;
|
|
15463
|
+
return id ? safeFind(state.location_masters_priority, function (sys) {
|
|
15464
|
+
return String(sys.label) === String(id);
|
|
15395
15465
|
}) : {
|
|
15396
15466
|
label: "",
|
|
15397
15467
|
value: ""
|
|
@@ -15499,7 +15569,7 @@ var photoData$1 = function photoData(data) {
|
|
|
15499
15569
|
return photo_Data;
|
|
15500
15570
|
};
|
|
15501
15571
|
var generateReadJSON$4 = function generateReadJSON(data, state) {
|
|
15502
|
-
var _data$managingOrgEnti, _data$managingOrgEnti2, _data$managingOrgID, _data$locationType
|
|
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;
|
|
15503
15573
|
var inital_workingday_slot_arr = [{
|
|
15504
15574
|
day: "Mon",
|
|
15505
15575
|
checked: true,
|
|
@@ -15551,46 +15621,52 @@ var generateReadJSON$4 = function generateReadJSON(data, state) {
|
|
|
15551
15621
|
}]
|
|
15552
15622
|
}];
|
|
15553
15623
|
var json = {
|
|
15554
|
-
entityType: data.managingOrgEntityType
|
|
15555
|
-
label: (_data$managingOrgEnti = data.managingOrgEntityType
|
|
15556
|
-
value: (_data$managingOrgEnti2 = data.managingOrgEntityType
|
|
15557
|
-
}, data.managingOrgEntityType
|
|
15624
|
+
entityType: data.managingOrgEntityType ? _objectSpread2({
|
|
15625
|
+
label: (_data$managingOrgEnti = data.managingOrgEntityType) === null || _data$managingOrgEnti === void 0 ? void 0 : _data$managingOrgEnti._id,
|
|
15626
|
+
value: (_data$managingOrgEnti2 = data.managingOrgEntityType) === null || _data$managingOrgEnti2 === void 0 ? void 0 : _data$managingOrgEnti2.display
|
|
15627
|
+
}, data.managingOrgEntityType) : {
|
|
15558
15628
|
label: "",
|
|
15559
15629
|
value: ""
|
|
15560
15630
|
},
|
|
15561
|
-
entityNameId: data === null || data === void 0 || (_data$managingOrgID = data.managingOrgID) === null || _data$managingOrgID === void 0
|
|
15562
|
-
locationType: data.locationType
|
|
15563
|
-
label: (_data$locationType
|
|
15564
|
-
value: (_data$
|
|
15565
|
-
}, data.locationType
|
|
15631
|
+
entityNameId: data === null || data === void 0 || (_data$managingOrgID = data.managingOrgID) === null || _data$managingOrgID === void 0 ? void 0 : _data$managingOrgID._id,
|
|
15632
|
+
locationType: data.locationType ? _objectSpread2({
|
|
15633
|
+
label: (_data$locationType = data.locationType) === null || _data$locationType === void 0 ? void 0 : _data$locationType._id,
|
|
15634
|
+
value: (_data$locationType2 = data.locationType) === null || _data$locationType2 === void 0 ? void 0 : _data$locationType2.display
|
|
15635
|
+
}, data.locationType) : {
|
|
15566
15636
|
label: "",
|
|
15567
15637
|
value: ""
|
|
15568
15638
|
},
|
|
15569
15639
|
locationId: data.locationID ? data.locationID : "",
|
|
15570
15640
|
shortDescription: data.shortdesc ? data.shortdesc : "",
|
|
15571
15641
|
longDescription: data.longdesc ? data.longdesc : "",
|
|
15572
|
-
operationalStatus: data.operationalStatus
|
|
15642
|
+
operationalStatus: data.operationalStatus ? safeFind(state.location_masters_operationalstatus, function (sys) {
|
|
15573
15643
|
var _data$operationalStat;
|
|
15574
|
-
return String((_data$operationalStat = data.operationalStatus
|
|
15644
|
+
return String((_data$operationalStat = data.operationalStatus) === null || _data$operationalStat === void 0 ? void 0 : _data$operationalStat._id) === String(sys.label);
|
|
15575
15645
|
}) : {
|
|
15576
15646
|
label: "",
|
|
15577
15647
|
value: ""
|
|
15578
15648
|
},
|
|
15579
|
-
parentLocationIdandDescription: data.parentLocationID_desc
|
|
15649
|
+
parentLocationIdandDescription: data.parentLocationID_desc ? safeFind(state.location_masters_parent_location_id, function (sys) {
|
|
15580
15650
|
var _data$parentLocationI;
|
|
15581
|
-
return String((_data$parentLocationI = data.parentLocationID_desc) === null || _data$parentLocationI === void 0
|
|
15651
|
+
return String((_data$parentLocationI = data.parentLocationID_desc) === null || _data$parentLocationI === void 0 ? void 0 : _data$parentLocationI._id) === String(sys.label);
|
|
15582
15652
|
}) : {
|
|
15583
15653
|
label: "",
|
|
15584
15654
|
value: ""
|
|
15585
15655
|
},
|
|
15586
|
-
locationRoleType: data.locationRoletype
|
|
15656
|
+
locationRoleType: data.locationRoletype ? safeFind(state.location_masters_locationroletype, function (sys) {
|
|
15587
15657
|
var _data$locationRoletyp;
|
|
15588
|
-
return String((_data$locationRoletyp = data.locationRoletype) === null || _data$locationRoletyp === void 0
|
|
15658
|
+
return String((_data$locationRoletyp = data.locationRoletype) === null || _data$locationRoletyp === void 0 ? void 0 : _data$locationRoletyp._id) === String(sys.label);
|
|
15589
15659
|
}) : {
|
|
15590
15660
|
label: "",
|
|
15591
15661
|
value: ""
|
|
15592
15662
|
},
|
|
15593
|
-
speciality: data.specialty
|
|
15663
|
+
speciality: data.specialty ? _objectSpread2({
|
|
15664
|
+
label: (_data$specialty = data.specialty) === null || _data$specialty === void 0 ? void 0 : _data$specialty._id,
|
|
15665
|
+
value: (_data$specialty2 = data.specialty) === null || _data$specialty2 === void 0 ? void 0 : _data$specialty2.display
|
|
15666
|
+
}, data.specialty) : {
|
|
15667
|
+
label: "",
|
|
15668
|
+
value: ""
|
|
15669
|
+
},
|
|
15594
15670
|
clinicDetails: data.clinicdetails ? data.clinicdetails : "",
|
|
15595
15671
|
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 : "",
|
|
15596
15672
|
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 : "",
|
|
@@ -15635,8 +15711,8 @@ var LOCATION_MASTERS_ENTITYTYPE = createAsyncThunk("locationMasterSlice/location
|
|
|
15635
15711
|
_context.n = 3;
|
|
15636
15712
|
return data_arr.map(function (val) {
|
|
15637
15713
|
arry.push(_objectSpread2({
|
|
15638
|
-
value: val
|
|
15639
|
-
label: val._id,
|
|
15714
|
+
value: val === null || val === void 0 ? void 0 : val.display,
|
|
15715
|
+
label: val === null || val === void 0 ? void 0 : val._id,
|
|
15640
15716
|
id: val.id
|
|
15641
15717
|
}, val));
|
|
15642
15718
|
});
|
|
@@ -15718,10 +15794,9 @@ var LOCATION_MASTERS_LOCATIONTYPE = createAsyncThunk("locationMasterSlice/locati
|
|
|
15718
15794
|
arry = [];
|
|
15719
15795
|
_context3.n = 3;
|
|
15720
15796
|
return data_arr.map(function (val) {
|
|
15721
|
-
var _val$coding;
|
|
15722
15797
|
arry.push({
|
|
15723
|
-
value:
|
|
15724
|
-
label: val._id
|
|
15798
|
+
value: val === null || val === void 0 ? void 0 : val.display,
|
|
15799
|
+
label: val === null || val === void 0 ? void 0 : val._id
|
|
15725
15800
|
});
|
|
15726
15801
|
});
|
|
15727
15802
|
case 3:
|
|
@@ -15759,8 +15834,8 @@ var LOCATION_MASTERS_OPERATIONALSTATUS = createAsyncThunk("locationMasterSlice/l
|
|
|
15759
15834
|
_context4.n = 3;
|
|
15760
15835
|
return data_arr.map(function (val) {
|
|
15761
15836
|
arry.push({
|
|
15762
|
-
value: val
|
|
15763
|
-
label: val._id
|
|
15837
|
+
value: val === null || val === void 0 ? void 0 : val.display,
|
|
15838
|
+
label: val === null || val === void 0 ? void 0 : val._id
|
|
15764
15839
|
});
|
|
15765
15840
|
});
|
|
15766
15841
|
case 3:
|
|
@@ -15921,8 +15996,8 @@ var LOCATION_MASTER_CONTACTMODE = createAsyncThunk("locationMasterSlice/location
|
|
|
15921
15996
|
_context8.n = 3;
|
|
15922
15997
|
return data_arr.map(function (val) {
|
|
15923
15998
|
arry.push({
|
|
15924
|
-
value: val
|
|
15925
|
-
label: val._id
|
|
15999
|
+
value: val === null || val === void 0 ? void 0 : val.display,
|
|
16000
|
+
label: val === null || val === void 0 ? void 0 : val._id
|
|
15926
16001
|
});
|
|
15927
16002
|
});
|
|
15928
16003
|
case 3:
|
|
@@ -15999,8 +16074,8 @@ var LOCATION_MASTER_USE = createAsyncThunk("locationMasterSlice/location_masters
|
|
|
15999
16074
|
_context0.n = 3;
|
|
16000
16075
|
return data_arr.map(function (val) {
|
|
16001
16076
|
arry.push({
|
|
16002
|
-
value: val
|
|
16003
|
-
label: val._id
|
|
16077
|
+
value: val === null || val === void 0 ? void 0 : val.display,
|
|
16078
|
+
label: val === null || val === void 0 ? void 0 : val._id
|
|
16004
16079
|
});
|
|
16005
16080
|
});
|
|
16006
16081
|
case 3:
|
|
@@ -16038,8 +16113,8 @@ var LOCATION_MASTER_PRIORITY = createAsyncThunk("locationMasterSlice/location_ma
|
|
|
16038
16113
|
_context1.n = 3;
|
|
16039
16114
|
return data_arr.map(function (val) {
|
|
16040
16115
|
arry.push({
|
|
16041
|
-
value: val
|
|
16042
|
-
label: val._id
|
|
16116
|
+
value: val === null || val === void 0 ? void 0 : val.display,
|
|
16117
|
+
label: val === null || val === void 0 ? void 0 : val._id
|
|
16043
16118
|
});
|
|
16044
16119
|
});
|
|
16045
16120
|
case 3:
|
|
@@ -16104,7 +16179,7 @@ var SPECIALITY_DATA = createAsyncThunk("locationMasterSlice/speciality_data", /*
|
|
|
16104
16179
|
var _ref24,
|
|
16105
16180
|
rejectWithValue,
|
|
16106
16181
|
data_arr,
|
|
16107
|
-
|
|
16182
|
+
array,
|
|
16108
16183
|
_args11 = arguments,
|
|
16109
16184
|
_t11;
|
|
16110
16185
|
return _regenerator().w(function (_context11) {
|
|
@@ -16118,18 +16193,17 @@ var SPECIALITY_DATA = createAsyncThunk("locationMasterSlice/speciality_data", /*
|
|
|
16118
16193
|
}, __baseUrl__$1);
|
|
16119
16194
|
case 2:
|
|
16120
16195
|
data_arr = _context11.v;
|
|
16121
|
-
|
|
16196
|
+
array = [];
|
|
16122
16197
|
_context11.n = 3;
|
|
16123
16198
|
return data_arr === null || data_arr === void 0 ? void 0 : data_arr.map(function (val) {
|
|
16124
|
-
|
|
16125
|
-
|
|
16126
|
-
|
|
16127
|
-
label: val._id
|
|
16199
|
+
array.push(_objectSpread2({
|
|
16200
|
+
value: val === null || val === void 0 ? void 0 : val.display,
|
|
16201
|
+
label: val === null || val === void 0 ? void 0 : val._id
|
|
16128
16202
|
}, val));
|
|
16129
16203
|
});
|
|
16130
16204
|
case 3:
|
|
16131
16205
|
return _context11.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
16132
|
-
data:
|
|
16206
|
+
data: array
|
|
16133
16207
|
}));
|
|
16134
16208
|
case 4:
|
|
16135
16209
|
_context11.p = 4;
|
|
@@ -42945,7 +43019,7 @@ var queries$1 = {
|
|
|
42945
43019
|
},
|
|
42946
43020
|
is_metadata: true,
|
|
42947
43021
|
metadataId: metaDataId$1,
|
|
42948
|
-
metadata_dbname: metaDatadbName,
|
|
43022
|
+
metadata_dbname: metaDatadbName$1,
|
|
42949
43023
|
doc: {
|
|
42950
43024
|
status: data.status
|
|
42951
43025
|
}
|
|
@@ -42960,14 +43034,14 @@ var queries$1 = {
|
|
|
42960
43034
|
},
|
|
42961
43035
|
is_metadata: true,
|
|
42962
43036
|
metadataId: metaDataId$1,
|
|
42963
|
-
metadata_dbname: metaDatadbName,
|
|
43037
|
+
metadata_dbname: metaDatadbName$1,
|
|
42964
43038
|
doc: {
|
|
42965
43039
|
status: data.status
|
|
42966
43040
|
}
|
|
42967
43041
|
}];
|
|
42968
43042
|
},
|
|
42969
43043
|
symptom_and_specialty_upsert: function symptom_and_specialty_upsert(data) {
|
|
42970
|
-
var _data$
|
|
43044
|
+
var _data$symptomsname, _data$symptomscode$tr, _data$symptomscode, _data$speciality, _data$id, _data$status, _data$designation, _data$property, _data$questionnaire, _data$description, _data$imageurl;
|
|
42971
43045
|
var filter = {};
|
|
42972
43046
|
if (data._key) {
|
|
42973
43047
|
filter = {
|
|
@@ -42976,50 +43050,68 @@ var queries$1 = {
|
|
|
42976
43050
|
}
|
|
42977
43051
|
};
|
|
42978
43052
|
}
|
|
43053
|
+
// Parse JSON string fields safely
|
|
43054
|
+
var parseJson = function parseJson(val) {
|
|
43055
|
+
if (!val) return null;
|
|
43056
|
+
if (_typeof(val) === "object") return val;
|
|
43057
|
+
try {
|
|
43058
|
+
return JSON.parse(val);
|
|
43059
|
+
} catch (_unused) {
|
|
43060
|
+
return val;
|
|
43061
|
+
}
|
|
43062
|
+
};
|
|
42979
43063
|
return [_objectSpread2(_objectSpread2({
|
|
42980
43064
|
db_name: dbName,
|
|
42981
43065
|
entity: "SymptomsMapping"
|
|
42982
43066
|
}, filter), {}, {
|
|
42983
43067
|
is_metadata: true,
|
|
42984
43068
|
metadataId: metaDataId$1,
|
|
42985
|
-
metadata_dbname: metaDatadbName,
|
|
43069
|
+
metadata_dbname: metaDatadbName$1,
|
|
42986
43070
|
doc: {
|
|
42987
|
-
|
|
43071
|
+
symptomsName: (_data$symptomsname = data === null || data === void 0 ? void 0 : data.symptomsname) !== null && _data$symptomsname !== void 0 ? _data$symptomsname : "",
|
|
43072
|
+
symptomsCode: (_data$symptomscode$tr = data === null || data === void 0 || (_data$symptomscode = data.symptomscode) === null || _data$symptomscode === void 0 ? void 0 : _data$symptomscode.trim()) !== null && _data$symptomscode$tr !== void 0 ? _data$symptomscode$tr : "",
|
|
43073
|
+
specialty: (_data$speciality = data === null || data === void 0 ? void 0 : data.speciality) !== null && _data$speciality !== void 0 ? _data$speciality : [''],
|
|
42988
43074
|
id: (_data$id = data === null || data === void 0 ? void 0 : data.id) !== null && _data$id !== void 0 ? _data$id : 0,
|
|
42989
43075
|
status: (_data$status = data === null || data === void 0 ? void 0 : data.status) !== null && _data$status !== void 0 ? _data$status : true,
|
|
42990
|
-
|
|
42991
|
-
|
|
43076
|
+
designation: (_data$designation = data === null || data === void 0 ? void 0 : data.designation) !== null && _data$designation !== void 0 ? _data$designation : "",
|
|
43077
|
+
property: (_data$property = data === null || data === void 0 ? void 0 : data.property) !== null && _data$property !== void 0 ? _data$property : "",
|
|
43078
|
+
questionnaire: (_data$questionnaire = data === null || data === void 0 ? void 0 : data.questionnaire) !== null && _data$questionnaire !== void 0 ? _data$questionnaire : [],
|
|
43079
|
+
rule: parseJson(data === null || data === void 0 ? void 0 : data.rule),
|
|
43080
|
+
description: (_data$description = data === null || data === void 0 ? void 0 : data.description) !== null && _data$description !== void 0 ? _data$description : "",
|
|
43081
|
+
imageUrl: (_data$imageurl = data === null || data === void 0 ? void 0 : data.imageurl) !== null && _data$imageurl !== void 0 ? _data$imageurl : ""
|
|
42992
43082
|
}
|
|
42993
43083
|
})];
|
|
42994
43084
|
},
|
|
42995
|
-
symptom_and_specialty_read: function symptom_and_specialty_read(search, page, perPage
|
|
43085
|
+
symptom_and_specialty_read: function symptom_and_specialty_read(search, page, perPage) {
|
|
42996
43086
|
return {
|
|
42997
43087
|
db_name: dbName,
|
|
42998
|
-
|
|
42999
|
-
filter:
|
|
43000
|
-
|
|
43088
|
+
queryid: query_ids.symptom_and_specialty_read,
|
|
43089
|
+
filter: {
|
|
43090
|
+
search: "".concat(search),
|
|
43001
43091
|
offset: page,
|
|
43002
43092
|
count: perPage
|
|
43003
|
-
}
|
|
43004
|
-
return_fields: "merge(SymptomsMapping,{TotalCount:COUNT(".concat(search ? "FOR cnt IN SymptomsMapping filter UPPER(cnt.SymptomsName) LIKE '%".concat(search.toUpperCase(), "%' || UPPER(cnt.symptomsCode) LIKE '%").concat(search.toUpperCase(), "%' RETURN cnt._key") : "FOR cnt IN SymptomsMapping RETURN cnt._key", " ), specialty:(FOR cod IN CodeableConceptMaster filter cod._id in SymptomsMapping.specialty RETURN merge(cod,{coding:document(cod.coding)}))})"),
|
|
43005
|
-
sort: "".concat(sort === "Symptom Code" ? "SymptomsMapping.symptomsCode ".concat(direction) : "SymptomsMapping.SymptomsName ".concat(direction))
|
|
43093
|
+
}
|
|
43006
43094
|
};
|
|
43007
43095
|
},
|
|
43008
43096
|
symptom_and_specialty_single_read: function symptom_and_specialty_single_read(_key) {
|
|
43009
43097
|
return {
|
|
43010
43098
|
db_name: dbName,
|
|
43011
|
-
|
|
43012
|
-
filter:
|
|
43013
|
-
|
|
43099
|
+
queryid: query_ids.symptom_and_specialty_single_read,
|
|
43100
|
+
filter: {
|
|
43101
|
+
_key: _key
|
|
43102
|
+
}
|
|
43014
43103
|
};
|
|
43015
43104
|
},
|
|
43016
43105
|
specialtyMaster: function specialtyMaster() {
|
|
43017
43106
|
return {
|
|
43018
43107
|
db_name: dbName,
|
|
43019
|
-
|
|
43020
|
-
filter:
|
|
43021
|
-
|
|
43022
|
-
|
|
43108
|
+
queryid: query_ids.getCodingmasterByType,
|
|
43109
|
+
filter: {
|
|
43110
|
+
type: "SPECIALTY",
|
|
43111
|
+
code: "",
|
|
43112
|
+
status: true,
|
|
43113
|
+
sortField: "display"
|
|
43114
|
+
}
|
|
43023
43115
|
};
|
|
43024
43116
|
},
|
|
43025
43117
|
upsert: function upsert(data) {
|
|
@@ -43042,7 +43134,7 @@ var queries$1 = {
|
|
|
43042
43134
|
entity: "CodeableConceptMaster",
|
|
43043
43135
|
is_metadata: true,
|
|
43044
43136
|
mmetadataId: metaDataId$1,
|
|
43045
|
-
metadata_dbname: metaDatadbName
|
|
43137
|
+
metadata_dbname: metaDatadbName$1
|
|
43046
43138
|
}, filter), {}, {
|
|
43047
43139
|
doc: {
|
|
43048
43140
|
text: "",
|
|
@@ -43102,21 +43194,27 @@ var SYMPTOM_AND_SPECIALTY_STATUS_CHANGE = createAsyncThunk("symptomAndSpecialtyS
|
|
|
43102
43194
|
}
|
|
43103
43195
|
}, _callee, null, [[1, 3]]);
|
|
43104
43196
|
})));
|
|
43197
|
+
|
|
43198
|
+
// Helper: convert specialty array to a display string for the list table
|
|
43105
43199
|
var constructReadJSON = function constructReadJSON(data) {
|
|
43200
|
+
if (!Array.isArray(data)) return "";
|
|
43106
43201
|
var arry = [];
|
|
43107
43202
|
data.map(function (val) {
|
|
43108
|
-
var _val$
|
|
43109
|
-
arry.push((_val$
|
|
43203
|
+
var _val$display;
|
|
43204
|
+
arry.push((_val$display = val === null || val === void 0 ? void 0 : val.display) !== null && _val$display !== void 0 ? _val$display : "");
|
|
43110
43205
|
});
|
|
43111
|
-
return arry.join();
|
|
43206
|
+
return arry.join(", ");
|
|
43112
43207
|
};
|
|
43208
|
+
|
|
43209
|
+
// Helper: convert specialty array to {value, label} objects for the form select
|
|
43113
43210
|
var constructSingleReadJSON = function constructSingleReadJSON(data) {
|
|
43211
|
+
if (!Array.isArray(data)) return [];
|
|
43114
43212
|
var arry = [];
|
|
43115
43213
|
data.map(function (val) {
|
|
43116
|
-
var _val$_id, _val$
|
|
43214
|
+
var _val$_id, _val$display2;
|
|
43117
43215
|
arry.push({
|
|
43118
|
-
|
|
43119
|
-
|
|
43216
|
+
value: (_val$_id = val === null || val === void 0 ? void 0 : val._id) !== null && _val$_id !== void 0 ? _val$_id : 0,
|
|
43217
|
+
label: (_val$display2 = val === null || val === void 0 ? void 0 : val.display) !== null && _val$display2 !== void 0 ? _val$display2 : ""
|
|
43120
43218
|
});
|
|
43121
43219
|
});
|
|
43122
43220
|
return arry;
|
|
@@ -43136,24 +43234,29 @@ var SYMPTOM_AND_SPECIALTY_READ = createAsyncThunk("symptomAndSpecialtySlice/symp
|
|
|
43136
43234
|
payload = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
43137
43235
|
_ref4 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref4.rejectWithValue;
|
|
43138
43236
|
_context2.p = 1;
|
|
43139
|
-
readqueries = queries$1.symptom_and_specialty_read(payload === null || payload === void 0 ? void 0 : payload.search, payload === null || payload === void 0 ? void 0 : payload.page, payload === null || payload === void 0 ? void 0 : payload.perPage
|
|
43237
|
+
readqueries = queries$1.symptom_and_specialty_read(payload === null || payload === void 0 ? void 0 : payload.search, payload === null || payload === void 0 ? void 0 : payload.page, payload === null || payload === void 0 ? void 0 : payload.perPage);
|
|
43140
43238
|
_context2.n = 2;
|
|
43141
43239
|
return fetchData({
|
|
43142
43240
|
body: JSON.stringify(readqueries)
|
|
43143
|
-
},
|
|
43241
|
+
}, __baseUrl__$1);
|
|
43144
43242
|
case 2:
|
|
43145
43243
|
data = _context2.v;
|
|
43146
43244
|
arry = [];
|
|
43147
|
-
data.
|
|
43245
|
+
data.map(function (val) {
|
|
43148
43246
|
if (val._key) {
|
|
43247
|
+
var _val$designation, _val$property, _val$description, _val$imageUrl;
|
|
43149
43248
|
arry.push({
|
|
43150
43249
|
total_count: val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
43151
43250
|
id: val.id ? val.id : 0,
|
|
43152
43251
|
_key: val._key ? val._key : "",
|
|
43153
43252
|
status: val.status ? val.status : false,
|
|
43154
|
-
|
|
43155
|
-
|
|
43156
|
-
|
|
43253
|
+
symptomsname: val.symptomsName ? val.symptomsName : val.SymptomsName,
|
|
43254
|
+
symptomscode: val.symptomsCode ? val.symptomsCode : "",
|
|
43255
|
+
speciality: constructReadJSON(val.specialty),
|
|
43256
|
+
designation: (_val$designation = val.designation) !== null && _val$designation !== void 0 ? _val$designation : "",
|
|
43257
|
+
property: (_val$property = val.property) !== null && _val$property !== void 0 ? _val$property : "",
|
|
43258
|
+
description: (_val$description = val.description) !== null && _val$description !== void 0 ? _val$description : "",
|
|
43259
|
+
imageurl: (_val$imageUrl = val.imageUrl) !== null && _val$imageUrl !== void 0 ? _val$imageUrl : ""
|
|
43157
43260
|
});
|
|
43158
43261
|
}
|
|
43159
43262
|
});
|
|
@@ -43184,23 +43287,31 @@ var SYMPTOM_AND_SPECIALTY_SINGLE_READ = createAsyncThunk("symptomAndSpecialtySli
|
|
|
43184
43287
|
payload = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
|
43185
43288
|
_ref6 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref6.rejectWithValue;
|
|
43186
43289
|
_context3.p = 1;
|
|
43187
|
-
readqueries = queries$1.symptom_and_specialty_single_read(payload.
|
|
43290
|
+
readqueries = queries$1.symptom_and_specialty_single_read(payload === null || payload === void 0 ? void 0 : payload._key);
|
|
43188
43291
|
_context3.n = 2;
|
|
43189
43292
|
return fetchData({
|
|
43190
43293
|
body: JSON.stringify(readqueries)
|
|
43191
|
-
},
|
|
43294
|
+
}, __baseUrl__$1);
|
|
43192
43295
|
case 2:
|
|
43193
43296
|
data = _context3.v;
|
|
43194
43297
|
arry = [];
|
|
43195
|
-
data.
|
|
43298
|
+
data.map(function (val) {
|
|
43196
43299
|
if (val._key) {
|
|
43300
|
+
var _val$designation2, _val$property2, _val$questionnaire, _val$rule, _val$description2, _val$imageUrl2;
|
|
43197
43301
|
arry.push({
|
|
43198
43302
|
id: val.id ? val.id : 0,
|
|
43303
|
+
_id: val._id ? val._id : "",
|
|
43199
43304
|
_key: val._key ? val._key : "",
|
|
43200
43305
|
status: val.status ? val.status : false,
|
|
43201
|
-
|
|
43202
|
-
|
|
43203
|
-
|
|
43306
|
+
symptomsname: val.symptomsName ? val.symptomsName : "",
|
|
43307
|
+
symptomscode: val.symptomsCode ? val.symptomsCode : "",
|
|
43308
|
+
speciality: constructSingleReadJSON(val.specialty),
|
|
43309
|
+
designation: (_val$designation2 = val.designation) !== null && _val$designation2 !== void 0 ? _val$designation2 : "",
|
|
43310
|
+
property: (_val$property2 = val.property) !== null && _val$property2 !== void 0 ? _val$property2 : "",
|
|
43311
|
+
questionnaire: _typeof(val.questionnaire) === "object" && val.questionnaire !== null ? JSON.stringify(val.questionnaire, null, 2) : (_val$questionnaire = val.questionnaire) !== null && _val$questionnaire !== void 0 ? _val$questionnaire : "",
|
|
43312
|
+
rule: _typeof(val.rule) === "object" && val.rule !== null ? JSON.stringify(val.rule, null, 2) : (_val$rule = val.rule) !== null && _val$rule !== void 0 ? _val$rule : "",
|
|
43313
|
+
description: (_val$description2 = val.description) !== null && _val$description2 !== void 0 ? _val$description2 : "",
|
|
43314
|
+
imageurl: (_val$imageUrl2 = val.imageUrl) !== null && _val$imageUrl2 !== void 0 ? _val$imageUrl2 : ""
|
|
43204
43315
|
});
|
|
43205
43316
|
}
|
|
43206
43317
|
});
|
|
@@ -43264,15 +43375,16 @@ var SYMPTOM_AND_SPECIALTY_MASTERS = createAsyncThunk("symptomAndSpecialtySlice/s
|
|
|
43264
43375
|
_context5.n = 2;
|
|
43265
43376
|
return fetchData({
|
|
43266
43377
|
body: JSON.stringify(queries$1.specialtyMaster())
|
|
43267
|
-
},
|
|
43378
|
+
}, __baseUrl__$1);
|
|
43268
43379
|
case 2:
|
|
43269
43380
|
data_arr = _context5.v;
|
|
43270
43381
|
arry = [];
|
|
43271
43382
|
_context5.n = 3;
|
|
43272
|
-
return data_arr.
|
|
43383
|
+
return data_arr.map(function (val) {
|
|
43384
|
+
var _val$display3, _val$_id2;
|
|
43273
43385
|
arry.push({
|
|
43274
|
-
label: val
|
|
43275
|
-
value: val._id
|
|
43386
|
+
label: (_val$display3 = val === null || val === void 0 ? void 0 : val.display) !== null && _val$display3 !== void 0 ? _val$display3 : "",
|
|
43387
|
+
value: (_val$_id2 = val === null || val === void 0 ? void 0 : val._id) !== null && _val$_id2 !== void 0 ? _val$_id2 : ""
|
|
43276
43388
|
});
|
|
43277
43389
|
});
|
|
43278
43390
|
case 3:
|