primary_care_admin_binder 0.1.162 → 0.1.164
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 +175 -42
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -11169,7 +11169,8 @@ var query_ids = {
|
|
|
11169
11169
|
"getCodingmasterByType": "b283129b-9841-419b-bdfc-de5105ebbad7",
|
|
11170
11170
|
"symptom_and_specialty_single_read": "b4157ebd-a966-4d06-8c02-7a9cf8e7f1f5",
|
|
11171
11171
|
"symptom_and_specialty_read": "78c9fdd7-fd12-4d36-9729-88ea3174867c",
|
|
11172
|
-
"locationmasterFormId": "f9634cd2-a5c3-46e5-9486-4cc8fd1b42ed"
|
|
11172
|
+
"locationmasterFormId": "f9634cd2-a5c3-46e5-9486-4cc8fd1b42ed",
|
|
11173
|
+
"getformsDetails": "23c2ee00-7c17-4235-943d-dc9e65b7ded8"
|
|
11173
11174
|
};
|
|
11174
11175
|
|
|
11175
11176
|
var query$9 = {
|
|
@@ -12218,7 +12219,7 @@ var queries$n = {
|
|
|
12218
12219
|
}
|
|
12219
12220
|
return [_objectSpread2(_objectSpread2({
|
|
12220
12221
|
appcode: dbName,
|
|
12221
|
-
|
|
12222
|
+
collection: "LocationMaster",
|
|
12222
12223
|
is_metadata: true,
|
|
12223
12224
|
metadataId: metaDataId$1,
|
|
12224
12225
|
metadata_dbname: metaDatadbName$1
|
|
@@ -12258,7 +12259,7 @@ var queries$n = {
|
|
|
12258
12259
|
}
|
|
12259
12260
|
return [_objectSpread2({
|
|
12260
12261
|
appcode: dbName,
|
|
12261
|
-
|
|
12262
|
+
collection: "LocationMaster",
|
|
12262
12263
|
is_metadata: true,
|
|
12263
12264
|
metadataId: metaDataId$1,
|
|
12264
12265
|
metadata_dbname: metaDatadbName$1
|
|
@@ -12286,8 +12287,8 @@ var timeslotList = function timeslotList(data) {
|
|
|
12286
12287
|
if (data && data.length > 0) {
|
|
12287
12288
|
data.map(function (val) {
|
|
12288
12289
|
var timelot_obj = {
|
|
12289
|
-
ovrOpeningtime: val.fromTime ?
|
|
12290
|
-
ovrClosingtime: val.toTime ?
|
|
12290
|
+
ovrOpeningtime: val.fromTime ? moment.utc(val.fromTime).valueOf() : null,
|
|
12291
|
+
ovrClosingtime: val.toTime ? moment.utc(val.toTime).valueOf() : null
|
|
12291
12292
|
};
|
|
12292
12293
|
timeslot_Lists.push(timelot_obj);
|
|
12293
12294
|
});
|
|
@@ -12299,8 +12300,8 @@ var workday_timeslotList = function workday_timeslotList(data) {
|
|
|
12299
12300
|
if (data && data.length > 0) {
|
|
12300
12301
|
data.map(function (val) {
|
|
12301
12302
|
var timelot_obj = {
|
|
12302
|
-
openingtime: val.fromTime ?
|
|
12303
|
-
closingtime: val.toTime ?
|
|
12303
|
+
openingtime: val.fromTime ? moment.utc(val.fromTime).valueOf() : null,
|
|
12304
|
+
closingtime: val.toTime ? moment.utc(val.toTime).valueOf() : null
|
|
12304
12305
|
};
|
|
12305
12306
|
timeslot_Lists.push(timelot_obj);
|
|
12306
12307
|
});
|
|
@@ -12398,7 +12399,7 @@ var generateJSON = function generateJSON(data, _key) {
|
|
|
12398
12399
|
});
|
|
12399
12400
|
var json = [_objectSpread2(_objectSpread2({
|
|
12400
12401
|
appcode: dbName,
|
|
12401
|
-
|
|
12402
|
+
collection: "LocationMaster",
|
|
12402
12403
|
is_metadata: true,
|
|
12403
12404
|
metadataId: metaDataId$1,
|
|
12404
12405
|
metadata_dbname: metaDatadbName$1
|
|
@@ -12487,25 +12488,23 @@ var LOCATION_READ = createAsyncThunk("locationSlice/locationlist", /*#__PURE__*/
|
|
|
12487
12488
|
arry = [];
|
|
12488
12489
|
_context.n = 3;
|
|
12489
12490
|
return data.map(function (val) {
|
|
12490
|
-
|
|
12491
|
-
|
|
12492
|
-
|
|
12493
|
-
|
|
12494
|
-
|
|
12495
|
-
|
|
12496
|
-
|
|
12497
|
-
|
|
12498
|
-
|
|
12499
|
-
|
|
12500
|
-
|
|
12501
|
-
|
|
12502
|
-
|
|
12503
|
-
|
|
12504
|
-
|
|
12505
|
-
|
|
12506
|
-
|
|
12507
|
-
});
|
|
12508
|
-
}
|
|
12491
|
+
var _val$locationType$, _val$locationType$2, _val$locationType, _val$locationType2, _val$locationType3, _val$locationType4;
|
|
12492
|
+
arry.push({
|
|
12493
|
+
location_id: val.locationID,
|
|
12494
|
+
location_type: val.locationType.length > 0 ? ((_val$locationType$ = val.locationType[0]) === null || _val$locationType$ === void 0 ? void 0 : _val$locationType$.display) !== null ? (_val$locationType$2 = val.locationType[0]) === null || _val$locationType$2 === void 0 ? void 0 : _val$locationType$2.display : "-" : "-",
|
|
12495
|
+
location_type_code: (_val$locationType = val.locationType) === null || _val$locationType === void 0 || (_val$locationType = _val$locationType[0]) === null || _val$locationType === void 0 || (_val$locationType = _val$locationType.coding) === null || _val$locationType === void 0 || (_val$locationType = _val$locationType[0]) === null || _val$locationType === void 0 ? void 0 : _val$locationType.code,
|
|
12496
|
+
location_type_name: (_val$locationType2 = val.locationType) === null || _val$locationType2 === void 0 || (_val$locationType2 = _val$locationType2[0]) === null || _val$locationType2 === void 0 || (_val$locationType2 = _val$locationType2.coding) === null || _val$locationType2 === void 0 || (_val$locationType2 = _val$locationType2[0]) === null || _val$locationType2 === void 0 ? void 0 : _val$locationType2.Type,
|
|
12497
|
+
location_type_id: (_val$locationType3 = val.locationType) === null || _val$locationType3 === void 0 || (_val$locationType3 = _val$locationType3[0]) === null || _val$locationType3 === void 0 || (_val$locationType3 = _val$locationType3.coding) === null || _val$locationType3 === void 0 || (_val$locationType3 = _val$locationType3[0]) === null || _val$locationType3 === void 0 ? void 0 : _val$locationType3._id,
|
|
12498
|
+
location_type_key: (_val$locationType4 = val.locationType) === null || _val$locationType4 === void 0 || (_val$locationType4 = _val$locationType4[0]) === null || _val$locationType4 === void 0 || (_val$locationType4 = _val$locationType4.coding) === null || _val$locationType4 === void 0 || (_val$locationType4 = _val$locationType4[0]) === null || _val$locationType4 === void 0 ? void 0 : _val$locationType4._key,
|
|
12499
|
+
long_description: val.longdesc,
|
|
12500
|
+
short_description: val.shortdesc,
|
|
12501
|
+
_key: val._key,
|
|
12502
|
+
id: val.id,
|
|
12503
|
+
_id: val._id,
|
|
12504
|
+
status: val.status === "Active" ? true : false,
|
|
12505
|
+
active_status: val.activestatus,
|
|
12506
|
+
totalCount: val === null || val === void 0 ? void 0 : val.TotalCount
|
|
12507
|
+
});
|
|
12509
12508
|
});
|
|
12510
12509
|
case 3:
|
|
12511
12510
|
return _context.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -15490,8 +15489,8 @@ var workDayofWeekList = function workDayofWeekList(data) {
|
|
|
15490
15489
|
if (data && data.length > 0) {
|
|
15491
15490
|
data.map(function (val) {
|
|
15492
15491
|
var WorkingDay_of_week_obj = {
|
|
15493
|
-
fromTime: val.openingtime ? moment.unix(val.openingtime) : "",
|
|
15494
|
-
toTime: val.closingtime ? moment.unix(val.closingtime) : ""
|
|
15492
|
+
fromTime: val.openingtime ? String(val.openingtime).length === 10 ? moment.unix(val.openingtime) : moment(val.openingtime) : "",
|
|
15493
|
+
toTime: val.closingtime ? String(val.closingtime).length === 10 ? moment.unix(val.closingtime) : moment(val.closingtime) : ""
|
|
15495
15494
|
};
|
|
15496
15495
|
WorkingDayofWeeksArr.push(WorkingDay_of_week_obj);
|
|
15497
15496
|
});
|
|
@@ -15541,8 +15540,8 @@ var overRideTimeslot = function overRideTimeslot(data) {
|
|
|
15541
15540
|
if (data && data.length > 0) {
|
|
15542
15541
|
data.map(function (val) {
|
|
15543
15542
|
var over_ride_timeslot_obj = {
|
|
15544
|
-
fromTime: val.ovrOpeningtime ? moment.unix(val.ovrOpeningtime) : "",
|
|
15545
|
-
toTime: val.ovrClosingtime ? moment.unix(val.ovrClosingtime) : ""
|
|
15543
|
+
fromTime: val.ovrOpeningtime ? String(val.ovrOpeningtime).length === 10 ? moment.unix(val.ovrOpeningtime) : moment(val.ovrOpeningtime) : "",
|
|
15544
|
+
toTime: val.ovrClosingtime ? String(val.ovrClosingtime).length === 10 ? moment.unix(val.ovrClosingtime) : moment(val.ovrClosingtime) : ""
|
|
15546
15545
|
};
|
|
15547
15546
|
overRideTimeSlot.push(over_ride_timeslot_obj);
|
|
15548
15547
|
});
|
|
@@ -36053,7 +36052,7 @@ var parameterSetupSlice$1 = parameterSetupSlice.reducer;
|
|
|
36053
36052
|
var masterQuery$4 = {
|
|
36054
36053
|
entityTypeMater: function entityTypeMater() {
|
|
36055
36054
|
return {
|
|
36056
|
-
|
|
36055
|
+
db_name: _dbName,
|
|
36057
36056
|
entity: "CodingMaster",
|
|
36058
36057
|
filter: "CodingMaster.code=='OT003' && CodingMaster.Type=='ORGTYPE' && CodingMaster.status==true && CodingMaster.activestatus==true",
|
|
36059
36058
|
return_fields: "KEEP(CodingMaster,'_id','id','_key','code','display','Type','status')"
|
|
@@ -43165,7 +43164,7 @@ var queries$1 = {
|
|
|
43165
43164
|
}];
|
|
43166
43165
|
},
|
|
43167
43166
|
symptom_and_specialty_upsert: function symptom_and_specialty_upsert(data) {
|
|
43168
|
-
var _data$symptomsname, _data$symptomscode$tr, _data$symptomscode, _data$speciality, _data$id, _data$status, _data$designation, _data$property, _data$questionnaire, _data$description, _data$imageurl;
|
|
43167
|
+
var _data$symptomsname, _data$symptomscode$tr, _data$symptomscode, _data$speciality, _data$id, _data$status, _data$designation, _data$property, _data$questionnaire, _data$description, _data$imageurl, _data$guideline;
|
|
43169
43168
|
var filter = {};
|
|
43170
43169
|
if (data._key) {
|
|
43171
43170
|
filter = {
|
|
@@ -43202,7 +43201,8 @@ var queries$1 = {
|
|
|
43202
43201
|
questionnaire: (_data$questionnaire = data === null || data === void 0 ? void 0 : data.questionnaire) !== null && _data$questionnaire !== void 0 ? _data$questionnaire : [],
|
|
43203
43202
|
rule: parseJson(data === null || data === void 0 ? void 0 : data.rule),
|
|
43204
43203
|
description: (_data$description = data === null || data === void 0 ? void 0 : data.description) !== null && _data$description !== void 0 ? _data$description : "",
|
|
43205
|
-
imageUrl: (_data$imageurl = data === null || data === void 0 ? void 0 : data.imageurl) !== null && _data$imageurl !== void 0 ? _data$imageurl : ""
|
|
43204
|
+
imageUrl: (_data$imageurl = data === null || data === void 0 ? void 0 : data.imageurl) !== null && _data$imageurl !== void 0 ? _data$imageurl : "",
|
|
43205
|
+
guideline: (_data$guideline = data === null || data === void 0 ? void 0 : data.guideline) !== null && _data$guideline !== void 0 ? _data$guideline : null
|
|
43206
43206
|
}
|
|
43207
43207
|
})];
|
|
43208
43208
|
},
|
|
@@ -43276,6 +43276,38 @@ var queries$1 = {
|
|
|
43276
43276
|
status: true
|
|
43277
43277
|
}
|
|
43278
43278
|
})];
|
|
43279
|
+
},
|
|
43280
|
+
guideline_upsert: function guideline_upsert(data) {
|
|
43281
|
+
var filter = {};
|
|
43282
|
+
if (data._key) {
|
|
43283
|
+
filter = {
|
|
43284
|
+
filter: {
|
|
43285
|
+
_key: data._key
|
|
43286
|
+
}
|
|
43287
|
+
};
|
|
43288
|
+
}
|
|
43289
|
+
return [_objectSpread2(_objectSpread2({
|
|
43290
|
+
appcode: dbName,
|
|
43291
|
+
entity: "forms"
|
|
43292
|
+
}, filter), {}, {
|
|
43293
|
+
is_metadata: false,
|
|
43294
|
+
doc: {
|
|
43295
|
+
_id: data._id,
|
|
43296
|
+
form_id: data.form_id,
|
|
43297
|
+
form_name: data.form_name,
|
|
43298
|
+
form_type_id: data.form_type_id,
|
|
43299
|
+
assessment: data.assessment
|
|
43300
|
+
}
|
|
43301
|
+
})];
|
|
43302
|
+
},
|
|
43303
|
+
guideline_read: function guideline_read(form_id) {
|
|
43304
|
+
return {
|
|
43305
|
+
appcode: dbName,
|
|
43306
|
+
filter: {
|
|
43307
|
+
_id: form_id
|
|
43308
|
+
},
|
|
43309
|
+
requestid: query_ids.getformsDetails
|
|
43310
|
+
};
|
|
43279
43311
|
}
|
|
43280
43312
|
};
|
|
43281
43313
|
|
|
@@ -43421,7 +43453,7 @@ var SYMPTOM_AND_SPECIALTY_SINGLE_READ = createAsyncThunk("symptomAndSpecialtySli
|
|
|
43421
43453
|
arry = [];
|
|
43422
43454
|
data.map(function (val) {
|
|
43423
43455
|
if (val._key) {
|
|
43424
|
-
var _val$questionnaire, _val$rule, _val$designation2, _val$property2, _val$description2, _val$imageUrl2;
|
|
43456
|
+
var _val$questionnaire, _val$rule, _val$designation2, _val$property2, _val$description2, _val$imageUrl2, _val$guideline;
|
|
43425
43457
|
// Normalize questionnaire — always an array [{lang, question}]
|
|
43426
43458
|
var questionnaire = (_val$questionnaire = val.questionnaire) !== null && _val$questionnaire !== void 0 ? _val$questionnaire : [];
|
|
43427
43459
|
if (typeof questionnaire === "string") {
|
|
@@ -43478,7 +43510,8 @@ var SYMPTOM_AND_SPECIALTY_SINGLE_READ = createAsyncThunk("symptomAndSpecialtySli
|
|
|
43478
43510
|
questionnaire: questionnaire,
|
|
43479
43511
|
rule: rule,
|
|
43480
43512
|
description: (_val$description2 = val.description) !== null && _val$description2 !== void 0 ? _val$description2 : "",
|
|
43481
|
-
imageurl: (_val$imageUrl2 = val.imageUrl) !== null && _val$imageUrl2 !== void 0 ? _val$imageUrl2 : ""
|
|
43513
|
+
imageurl: (_val$imageUrl2 = val.imageUrl) !== null && _val$imageUrl2 !== void 0 ? _val$imageUrl2 : "",
|
|
43514
|
+
guideline: (_val$guideline = val.guideline) !== null && _val$guideline !== void 0 ? _val$guideline : null
|
|
43482
43515
|
});
|
|
43483
43516
|
}
|
|
43484
43517
|
});
|
|
@@ -43567,6 +43600,75 @@ var SYMPTOM_AND_SPECIALTY_MASTERS = createAsyncThunk("symptomAndSpecialtySlice/s
|
|
|
43567
43600
|
}
|
|
43568
43601
|
}, _callee5, null, [[1, 4]]);
|
|
43569
43602
|
})));
|
|
43603
|
+
var GUIDELINE_UPSERT = createAsyncThunk("symptomAndSpecialtySlice/guideline_upsert", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6() {
|
|
43604
|
+
var payload,
|
|
43605
|
+
_ref10,
|
|
43606
|
+
rejectWithValue,
|
|
43607
|
+
queriesjson,
|
|
43608
|
+
data,
|
|
43609
|
+
_args6 = arguments,
|
|
43610
|
+
_t6;
|
|
43611
|
+
return _regenerator().w(function (_context6) {
|
|
43612
|
+
while (1) switch (_context6.p = _context6.n) {
|
|
43613
|
+
case 0:
|
|
43614
|
+
payload = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
|
|
43615
|
+
_ref10 = _args6.length > 1 ? _args6[1] : undefined, rejectWithValue = _ref10.rejectWithValue;
|
|
43616
|
+
_context6.p = 1;
|
|
43617
|
+
queriesjson = queries$1.guideline_upsert(payload);
|
|
43618
|
+
_context6.n = 2;
|
|
43619
|
+
return fetchData({
|
|
43620
|
+
body: JSON.stringify(queriesjson)
|
|
43621
|
+
}, __uspsertUrl__);
|
|
43622
|
+
case 2:
|
|
43623
|
+
data = _context6.v;
|
|
43624
|
+
return _context6.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
43625
|
+
data: data
|
|
43626
|
+
}));
|
|
43627
|
+
case 3:
|
|
43628
|
+
_context6.p = 3;
|
|
43629
|
+
_t6 = _context6.v;
|
|
43630
|
+
return _context6.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
43631
|
+
message: _t6.message
|
|
43632
|
+
})));
|
|
43633
|
+
}
|
|
43634
|
+
}, _callee6, null, [[1, 3]]);
|
|
43635
|
+
})));
|
|
43636
|
+
var GUIDELINE_READ = createAsyncThunk("symptomAndSpecialtySlice/guideline_read", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7() {
|
|
43637
|
+
var payload,
|
|
43638
|
+
_ref12,
|
|
43639
|
+
rejectWithValue,
|
|
43640
|
+
queriesjson,
|
|
43641
|
+
data,
|
|
43642
|
+
record,
|
|
43643
|
+
_args7 = arguments,
|
|
43644
|
+
_t7;
|
|
43645
|
+
return _regenerator().w(function (_context7) {
|
|
43646
|
+
while (1) switch (_context7.p = _context7.n) {
|
|
43647
|
+
case 0:
|
|
43648
|
+
payload = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
|
|
43649
|
+
_ref12 = _args7.length > 1 ? _args7[1] : undefined, rejectWithValue = _ref12.rejectWithValue;
|
|
43650
|
+
_context7.p = 1;
|
|
43651
|
+
queriesjson = queries$1.guideline_read(payload.form_id);
|
|
43652
|
+
_context7.n = 2;
|
|
43653
|
+
return fetchData({
|
|
43654
|
+
body: JSON.stringify(queriesjson)
|
|
43655
|
+
}, __baseUrl__$1);
|
|
43656
|
+
case 2:
|
|
43657
|
+
data = _context7.v;
|
|
43658
|
+
// data is an array; return first match
|
|
43659
|
+
record = Array.isArray(data) ? data[0] : null;
|
|
43660
|
+
return _context7.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
43661
|
+
data: record
|
|
43662
|
+
}));
|
|
43663
|
+
case 3:
|
|
43664
|
+
_context7.p = 3;
|
|
43665
|
+
_t7 = _context7.v;
|
|
43666
|
+
return _context7.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
43667
|
+
message: _t7.message
|
|
43668
|
+
})));
|
|
43669
|
+
}
|
|
43670
|
+
}, _callee7, null, [[1, 3]]);
|
|
43671
|
+
})));
|
|
43570
43672
|
var symptomAndSpecialtySlice = createSlice({
|
|
43571
43673
|
name: "symptomAndSpecialtySlice",
|
|
43572
43674
|
initialState: {
|
|
@@ -43574,7 +43676,9 @@ var symptomAndSpecialtySlice = createSlice({
|
|
|
43574
43676
|
symptom_and_specialty_list: _objectSpread2({}, defaultState.List),
|
|
43575
43677
|
symptom_and_specialty_single_read: _objectSpread2({}, defaultState.List),
|
|
43576
43678
|
symptom_and_specialty_upsert: _objectSpread2({}, defaultState.List),
|
|
43577
|
-
symptom_and_specialty_master: _objectSpread2({}, defaultState.List)
|
|
43679
|
+
symptom_and_specialty_master: _objectSpread2({}, defaultState.List),
|
|
43680
|
+
guideline_upsert: _objectSpread2({}, defaultState.List),
|
|
43681
|
+
guideline_read: _objectSpread2({}, defaultState.List)
|
|
43578
43682
|
},
|
|
43579
43683
|
extraReducers: (_extraReducers$4 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$4, SYMPTOM_AND_SPECIALTY_STATUS_CHANGE.fulfilled, function (state, action) {
|
|
43580
43684
|
state.symptom_and_specialty_status_update.loading = false, state.symptom_and_specialty_status_update.error = false, state.symptom_and_specialty_status_update = action.payload;
|
|
@@ -43596,16 +43700,43 @@ var symptomAndSpecialtySlice = createSlice({
|
|
|
43596
43700
|
state.symptom_and_specialty_single_read.loading = false, state.symptom_and_specialty_single_read.error = true, state.symptom_and_specialty_single_read = action.payload;
|
|
43597
43701
|
}), SYMPTOM_AND_SPECIALTY_MASTERS.fulfilled, function (state, action) {
|
|
43598
43702
|
state.symptom_and_specialty_master.loading = false, state.symptom_and_specialty_master.error = false, state.symptom_and_specialty_master = action.payload;
|
|
43599
|
-
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$4, SYMPTOM_AND_SPECIALTY_MASTERS.pending, function (state, action) {
|
|
43703
|
+
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$4, SYMPTOM_AND_SPECIALTY_MASTERS.pending, function (state, action) {
|
|
43600
43704
|
state.symptom_and_specialty_master.loading = true, state.symptom_and_specialty_master.error = false, state.symptom_and_specialty_master.loading = true;
|
|
43601
43705
|
}), SYMPTOM_AND_SPECIALTY_MASTERS.rejected, function (state, action) {
|
|
43602
43706
|
state.symptom_and_specialty_master.loading = false, state.symptom_and_specialty_master.error = true, state.symptom_and_specialty_master = action.payload;
|
|
43603
43707
|
}), SYMPTOM_AND_SPECIALTY_UPSERT.fulfilled, function (state, action) {
|
|
43604
|
-
state.symptom_and_specialty_upsert.loading = false
|
|
43708
|
+
state.symptom_and_specialty_upsert.loading = false;
|
|
43709
|
+
state.symptom_and_specialty_upsert.error = false;
|
|
43710
|
+
state.symptom_and_specialty_upsert = action.payload;
|
|
43605
43711
|
}), SYMPTOM_AND_SPECIALTY_UPSERT.pending, function (state, action) {
|
|
43606
|
-
state.symptom_and_specialty_upsert.loading = true
|
|
43712
|
+
state.symptom_and_specialty_upsert.loading = true;
|
|
43713
|
+
state.symptom_and_specialty_upsert.error = false;
|
|
43607
43714
|
}), SYMPTOM_AND_SPECIALTY_UPSERT.rejected, function (state, action) {
|
|
43608
|
-
state.symptom_and_specialty_upsert.loading = false
|
|
43715
|
+
state.symptom_and_specialty_upsert.loading = false;
|
|
43716
|
+
state.symptom_and_specialty_upsert.error = true;
|
|
43717
|
+
state.symptom_and_specialty_upsert = action.payload;
|
|
43718
|
+
}), GUIDELINE_UPSERT.fulfilled, function (state, action) {
|
|
43719
|
+
state.guideline_upsert.loading = false;
|
|
43720
|
+
state.guideline_upsert.error = false;
|
|
43721
|
+
state.guideline_upsert = action.payload;
|
|
43722
|
+
}), GUIDELINE_UPSERT.pending, function (state) {
|
|
43723
|
+
state.guideline_upsert.loading = true;
|
|
43724
|
+
state.guideline_upsert.error = false;
|
|
43725
|
+
}), GUIDELINE_UPSERT.rejected, function (state, action) {
|
|
43726
|
+
state.guideline_upsert.loading = false;
|
|
43727
|
+
state.guideline_upsert.error = true;
|
|
43728
|
+
state.guideline_upsert = action.payload;
|
|
43729
|
+
}), GUIDELINE_READ.fulfilled, function (state, action) {
|
|
43730
|
+
state.guideline_read.loading = false;
|
|
43731
|
+
state.guideline_read.error = false;
|
|
43732
|
+
state.guideline_read = action.payload;
|
|
43733
|
+
}), GUIDELINE_READ.pending, function (state) {
|
|
43734
|
+
state.guideline_read.loading = true;
|
|
43735
|
+
state.guideline_read.error = false;
|
|
43736
|
+
}), _defineProperty(_extraReducers$4, GUIDELINE_READ.rejected, function (state, action) {
|
|
43737
|
+
state.guideline_read.loading = false;
|
|
43738
|
+
state.guideline_read.error = true;
|
|
43739
|
+
state.guideline_read = action.payload;
|
|
43609
43740
|
}))
|
|
43610
43741
|
});
|
|
43611
43742
|
var symptomAndSpecialtyActions = {
|
|
@@ -43613,7 +43744,9 @@ var symptomAndSpecialtyActions = {
|
|
|
43613
43744
|
SYMPTOM_AND_SPECIALTY_READ: SYMPTOM_AND_SPECIALTY_READ,
|
|
43614
43745
|
SYMPTOM_AND_SPECIALTY_MASTERS: SYMPTOM_AND_SPECIALTY_MASTERS,
|
|
43615
43746
|
SYMPTOM_AND_SPECIALTY_UPSERT: SYMPTOM_AND_SPECIALTY_UPSERT,
|
|
43616
|
-
SYMPTOM_AND_SPECIALTY_SINGLE_READ: SYMPTOM_AND_SPECIALTY_SINGLE_READ
|
|
43747
|
+
SYMPTOM_AND_SPECIALTY_SINGLE_READ: SYMPTOM_AND_SPECIALTY_SINGLE_READ,
|
|
43748
|
+
GUIDELINE_UPSERT: GUIDELINE_UPSERT,
|
|
43749
|
+
GUIDELINE_READ: GUIDELINE_READ
|
|
43617
43750
|
};
|
|
43618
43751
|
var symptomAndSpecialtySlice$1 = symptomAndSpecialtySlice.reducer;
|
|
43619
43752
|
|