primarycare-binder 1.1.117 → 1.1.118
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 +114 -40
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -15713,7 +15713,7 @@ var GET_ENCOUNTER_MASTER_TYPE = createAsyncThunk('searchApiSlice/masterEncounter
|
|
|
15713
15713
|
"db_name": "primarycare",
|
|
15714
15714
|
"entity": "AMPatientClass",
|
|
15715
15715
|
"filter": "AMPatientClass.status==true && AMPatientClass.activestatus==true",
|
|
15716
|
-
"return_fields": "keep(AMPatientClass,'_id','_key','id','shortDesc','longDesc','status')",
|
|
15716
|
+
"return_fields": "keep(AMPatientClass,'_id','_key','id', 'encType', 'shortDesc','longDesc','status')",
|
|
15717
15717
|
"sort": "AMPatientClass.shortDesc"
|
|
15718
15718
|
};
|
|
15719
15719
|
_context10.next = 7;
|
|
@@ -15774,7 +15774,7 @@ var GET_ENCOUNTER_MASTER_CLASS = createAsyncThunk('searchApiSlice/masterEncounte
|
|
|
15774
15774
|
encounterClassBody = {
|
|
15775
15775
|
"db_name": "primarycare",
|
|
15776
15776
|
"entity": "AMPatientClass",
|
|
15777
|
-
"filter": "AMPatientClass.
|
|
15777
|
+
"filter": "AMPatientClass.encType=='".concat(encType, "' && AMPatientClass.status==true && AMPatientClass.activestatus==true"),
|
|
15778
15778
|
"return_fields": "{encClsByTypes:AMPatientClass.encClsByTypes}"
|
|
15779
15779
|
};
|
|
15780
15780
|
_context11.next = 8;
|
|
@@ -20478,6 +20478,20 @@ var dashboardQuery = {
|
|
|
20478
20478
|
return_fields: // "merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return merge(pat,{name:(for nam in HumanNameMaster filter nam._id in pat.name return merge(nam,{use:document(nam.use),suffix:document(nam.suffix),prefix:document(nam.prefix)})),telecom:document(pat.telecom),gender:document(pat.gender),age_type:document(pat.age_type)},{photo:document(pat.photo)}))},{reasonReference:document(Encounter.reasonReference)},{appointmentId: merge(Appointment,{practitionerID:(for prac in Practitioner filter prac.id in Appointment.practitionerID return merge(prac,{name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:(for cod in CodeableConceptMaster filter cod._id == nam.use return document(cod.coding)),prefix:(for cod in CodeableConceptMaster filter cod._id == nam.prefix return document(cod.coding)),suffix:(for cod in CodeableConceptMaster filter cod._id == nam.suffix return document(cod.coding))}))},{photo:document(prac.photo)})),HealthcareServiceID:(for hs in HealthcareService filter hs.id in Appointment.HealthcareServiceID return hs)},{appointmentReason:(for apr in CodingMaster filter apr.id in Appointment.appointmentReason return apr)})},{followupUOM:document(Encounter.followupUOM),reasonCode:document(Encounter.reasonCode),dischargeDisposition:document(Encounter.dischargeDisposition)},{practitioner_details:(for pd in Encounter.practitioner_details return merge(pd,{speciality:(for spd in CodeableConceptMaster filter spd._id == pd.speciality return merge(spd,{coding:document(spd.coding)}))}))},{Followupdetails:(for app in AppointmentRequest filter app.encounterid==Encounter._id return merge(app,{followupduruom:document(app.followupduruom)},{followupreason:document(app.followupreason)}))})",
|
|
20479
20479
|
"merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return merge(pat,{name:(for nam in HumanNameMaster filter nam._id in pat.name return merge(nam,{use:document(nam.use),suffix:document(nam.suffix),prefix:document(nam.prefix)})),telecom:document(pat.telecom),gender:document(pat.gender),age_type:document(pat.age_type)},{photo:document(pat.photo)}))}, {statushistoryExp:(for she in Encounter.statushistory return merge(she,{period:document(she.period)},{status:document(she.status)}))} , {reasonReference:document(Encounter.reasonReference)},{appointmentId: merge(Appointment,{practitionerID:(for prac in Practitioner filter prac.id in Appointment.practitionerID return merge(prac,{name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:(for cod in CodeableConceptMaster filter cod._id == nam.use return document(cod.coding)),prefix:(for cod in CodeableConceptMaster filter cod._id == nam.prefix return document(cod.coding)),suffix:(for cod in CodeableConceptMaster filter cod._id == nam.suffix return document(cod.coding))}))},{photo:document(prac.photo)})),HealthcareServiceID:(for hs in HealthcareService filter hs.id in Appointment.HealthcareServiceID return hs)},{appointmentReason:(for apr in CodingMaster filter apr.id in Appointment.appointmentReason return apr)})},{followupUOM:document(Encounter.followupUOM),reasonCode:document(Encounter.reasonCode),dischargeDisposition:document(Encounter.dischargeDisposition)},{practitioner_details:(for pd in Encounter.practitioner_details return merge(pd,{speciality:(for spd in CodeableConceptMaster filter spd._id == pd.speciality return merge(spd,{coding:document(spd.coding)}))}))},{Followupdetails:(for app in AppointmentRequest filter app.encounterid==Encounter._id return merge(app,{followupduruom:document(app.followupduruom)},{followupreason:document(app.followupreason)}))})"
|
|
20480
20480
|
};
|
|
20481
|
+
},
|
|
20482
|
+
appointmentResourceCodeUpdate: function appointmentResourceCodeUpdate(appID, resourceCode) {
|
|
20483
|
+
return [{
|
|
20484
|
+
"db_name": dbName,
|
|
20485
|
+
"entity": "Appointment",
|
|
20486
|
+
"is_metadata": true,
|
|
20487
|
+
"filter": {
|
|
20488
|
+
"_key": "".concat(appID)
|
|
20489
|
+
},
|
|
20490
|
+
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
20491
|
+
"doc": {
|
|
20492
|
+
"resourcecode": "".concat(resourceCode)
|
|
20493
|
+
}
|
|
20494
|
+
}];
|
|
20481
20495
|
}
|
|
20482
20496
|
};
|
|
20483
20497
|
var visitQuery = {
|
|
@@ -22160,7 +22174,7 @@ var ASSIGN_PRACTITIONER_LIST = createAsyncThunk("dashboardApiSlice/assignPractit
|
|
|
22160
22174
|
data = _context25.sent;
|
|
22161
22175
|
arry = [];
|
|
22162
22176
|
data === null || data === void 0 ? void 0 : (_data$result9 = data.result) === null || _data$result9 === void 0 ? void 0 : _data$result9.map(function (val) {
|
|
22163
|
-
var _makeName, _val$name, _val$photo$, _val$photo, _val$_id6, _val$_key, _val$id, _val$assignedpatient, _val$id2, _val$practitioner_rol, _val$practitioner_rol2, _val$practitioner_rol3;
|
|
22177
|
+
var _makeName, _val$name, _val$photo$, _val$photo, _val$_id6, _val$_key, _val$id, _val$assignedpatient, _val$id2, _val$practitioner_rol, _val$practitioner_rol2, _val$practitioner_rol3, _val$_id7, _val$practitioner_rol4, _val$practitioner_rol5, _val$practitioner_rol6;
|
|
22164
22178
|
|
|
22165
22179
|
arry.push({
|
|
22166
22180
|
name: (_makeName = makeName(val === null || val === void 0 ? void 0 : (_val$name = val.name) === null || _val$name === void 0 ? void 0 : _val$name[0])) !== null && _makeName !== void 0 ? _makeName : "",
|
|
@@ -22170,7 +22184,9 @@ var ASSIGN_PRACTITIONER_LIST = createAsyncThunk("dashboardApiSlice/assignPractit
|
|
|
22170
22184
|
id: (_val$id = val === null || val === void 0 ? void 0 : val.id) !== null && _val$id !== void 0 ? _val$id : "",
|
|
22171
22185
|
appointmentCount: (_val$assignedpatient = val === null || val === void 0 ? void 0 : val.assignedpatient) !== null && _val$assignedpatient !== void 0 ? _val$assignedpatient : "",
|
|
22172
22186
|
Practitioner_id: (_val$id2 = val === null || val === void 0 ? void 0 : val.id) !== null && _val$id2 !== void 0 ? _val$id2 : "",
|
|
22173
|
-
PractitionerRole_id: (_val$practitioner_rol = val === null || val === void 0 ? void 0 : (_val$practitioner_rol2 = val.practitioner_role) === null || _val$practitioner_rol2 === void 0 ? void 0 : (_val$practitioner_rol3 = _val$practitioner_rol2[0]) === null || _val$practitioner_rol3 === void 0 ? void 0 : _val$practitioner_rol3.id) !== null && _val$practitioner_rol !== void 0 ? _val$practitioner_rol : ""
|
|
22187
|
+
PractitionerRole_id: (_val$practitioner_rol = val === null || val === void 0 ? void 0 : (_val$practitioner_rol2 = val.practitioner_role) === null || _val$practitioner_rol2 === void 0 ? void 0 : (_val$practitioner_rol3 = _val$practitioner_rol2[0]) === null || _val$practitioner_rol3 === void 0 ? void 0 : _val$practitioner_rol3.id) !== null && _val$practitioner_rol !== void 0 ? _val$practitioner_rol : "",
|
|
22188
|
+
pract_id: (_val$_id7 = val === null || val === void 0 ? void 0 : val._id) !== null && _val$_id7 !== void 0 ? _val$_id7 : "",
|
|
22189
|
+
pract_role_id: (_val$practitioner_rol4 = val === null || val === void 0 ? void 0 : (_val$practitioner_rol5 = val.practitioner_role) === null || _val$practitioner_rol5 === void 0 ? void 0 : (_val$practitioner_rol6 = _val$practitioner_rol5[0]) === null || _val$practitioner_rol6 === void 0 ? void 0 : _val$practitioner_rol6._id) !== null && _val$practitioner_rol4 !== void 0 ? _val$practitioner_rol4 : ""
|
|
22174
22190
|
});
|
|
22175
22191
|
});
|
|
22176
22192
|
return _context25.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
@@ -22277,6 +22293,52 @@ var REASSIGN_PRACTITIONER_UPDATE = createAsyncThunk("dashboardApiSlice/reassignP
|
|
|
22277
22293
|
}
|
|
22278
22294
|
}
|
|
22279
22295
|
}, _callee27, null, [[2, 10]]);
|
|
22296
|
+
}))); //UPSERT_APPOINTMENT
|
|
22297
|
+
|
|
22298
|
+
var UPSERT_APPOINTMENT = createAsyncThunk("dashboardApiSlice/appointmentUpsert", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee28() {
|
|
22299
|
+
var payload,
|
|
22300
|
+
_ref56,
|
|
22301
|
+
rejectWithValue,
|
|
22302
|
+
appID,
|
|
22303
|
+
resourceCode,
|
|
22304
|
+
data__,
|
|
22305
|
+
_args28 = arguments;
|
|
22306
|
+
|
|
22307
|
+
return regeneratorRuntime.wrap(function _callee28$(_context28) {
|
|
22308
|
+
while (1) {
|
|
22309
|
+
switch (_context28.prev = _context28.next) {
|
|
22310
|
+
case 0:
|
|
22311
|
+
payload = _args28.length > 0 && _args28[0] !== undefined ? _args28[0] : {};
|
|
22312
|
+
_ref56 = _args28.length > 1 ? _args28[1] : undefined, rejectWithValue = _ref56.rejectWithValue;
|
|
22313
|
+
_context28.prev = 2;
|
|
22314
|
+
appID = payload.appID, resourceCode = payload.resourceCode;
|
|
22315
|
+
debugger;
|
|
22316
|
+
_context28.next = 7;
|
|
22317
|
+
return fetchData$3({
|
|
22318
|
+
body: JSON.stringify(dashboardQuery.appointmentResourceCodeUpdate(appID, resourceCode))
|
|
22319
|
+
}, __uspsertUrl__);
|
|
22320
|
+
|
|
22321
|
+
case 7:
|
|
22322
|
+
data__ = _context28.sent;
|
|
22323
|
+
debugger;
|
|
22324
|
+
return _context28.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
22325
|
+
data: data__
|
|
22326
|
+
}));
|
|
22327
|
+
|
|
22328
|
+
case 12:
|
|
22329
|
+
_context28.prev = 12;
|
|
22330
|
+
_context28.t0 = _context28["catch"](2);
|
|
22331
|
+
alert("error");
|
|
22332
|
+
return _context28.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
22333
|
+
message: _context28.t0.message
|
|
22334
|
+
})));
|
|
22335
|
+
|
|
22336
|
+
case 16:
|
|
22337
|
+
case "end":
|
|
22338
|
+
return _context28.stop();
|
|
22339
|
+
}
|
|
22340
|
+
}
|
|
22341
|
+
}, _callee28, null, [[2, 12]]);
|
|
22280
22342
|
})));
|
|
22281
22343
|
|
|
22282
22344
|
var constructStatusHistory = function constructStatusHistory(data, status) {
|
|
@@ -22291,9 +22353,9 @@ var constructStatusHistory = function constructStatusHistory(data, status) {
|
|
|
22291
22353
|
}; //CLOSE_CONSULTATION_UPDATE
|
|
22292
22354
|
|
|
22293
22355
|
|
|
22294
|
-
var CLOSE_CONSULTATION_UPDATE = createAsyncThunk("dashboardApiSlice/closeConsultationUpdate", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
22356
|
+
var CLOSE_CONSULTATION_UPDATE = createAsyncThunk("dashboardApiSlice/closeConsultationUpdate", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee29() {
|
|
22295
22357
|
var payload,
|
|
22296
|
-
|
|
22358
|
+
_ref58,
|
|
22297
22359
|
rejectWithValue,
|
|
22298
22360
|
_encounterCode$result,
|
|
22299
22361
|
_encounterCode$result2,
|
|
@@ -22303,17 +22365,17 @@ var CLOSE_CONSULTATION_UPDATE = createAsyncThunk("dashboardApiSlice/closeConsult
|
|
|
22303
22365
|
encounterStatus,
|
|
22304
22366
|
statusHistor,
|
|
22305
22367
|
data_,
|
|
22306
|
-
|
|
22368
|
+
_args29 = arguments;
|
|
22307
22369
|
|
|
22308
|
-
return regeneratorRuntime.wrap(function
|
|
22370
|
+
return regeneratorRuntime.wrap(function _callee29$(_context29) {
|
|
22309
22371
|
while (1) {
|
|
22310
|
-
switch (
|
|
22372
|
+
switch (_context29.prev = _context29.next) {
|
|
22311
22373
|
case 0:
|
|
22312
|
-
payload =
|
|
22313
|
-
|
|
22314
|
-
|
|
22374
|
+
payload = _args29.length > 0 && _args29[0] !== undefined ? _args29[0] : {};
|
|
22375
|
+
_ref58 = _args29.length > 1 ? _args29[1] : undefined, rejectWithValue = _ref58.rejectWithValue;
|
|
22376
|
+
_context29.prev = 2;
|
|
22315
22377
|
data = payload.data;
|
|
22316
|
-
|
|
22378
|
+
_context29.next = 6;
|
|
22317
22379
|
return fetchData$3({
|
|
22318
22380
|
body: JSON.stringify({
|
|
22319
22381
|
db_name: dbName,
|
|
@@ -22324,34 +22386,34 @@ var CLOSE_CONSULTATION_UPDATE = createAsyncThunk("dashboardApiSlice/closeConsult
|
|
|
22324
22386
|
}, __readDocumentUrl__);
|
|
22325
22387
|
|
|
22326
22388
|
case 6:
|
|
22327
|
-
encounterCode =
|
|
22389
|
+
encounterCode = _context29.sent;
|
|
22328
22390
|
encounterStatus = (_encounterCode$result = encounterCode === null || encounterCode === void 0 ? void 0 : (_encounterCode$result2 = encounterCode.result) === null || _encounterCode$result2 === void 0 ? void 0 : (_encounterCode$result3 = _encounterCode$result2[0]) === null || _encounterCode$result3 === void 0 ? void 0 : _encounterCode$result3._id) !== null && _encounterCode$result !== void 0 ? _encounterCode$result : "";
|
|
22329
22391
|
statusHistor = constructStatusHistory(data, encounterStatus);
|
|
22330
|
-
|
|
22392
|
+
_context29.next = 11;
|
|
22331
22393
|
return fetchData$3({
|
|
22332
22394
|
body: JSON.stringify(dashboardQuery.closeConsultationUpdate(data, encounterStatus, statusHistor))
|
|
22333
22395
|
}, __uspsertUrl__);
|
|
22334
22396
|
|
|
22335
22397
|
case 11:
|
|
22336
|
-
data_ =
|
|
22337
|
-
return
|
|
22398
|
+
data_ = _context29.sent;
|
|
22399
|
+
return _context29.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
22338
22400
|
data: data_
|
|
22339
22401
|
}));
|
|
22340
22402
|
|
|
22341
22403
|
case 15:
|
|
22342
|
-
|
|
22343
|
-
|
|
22404
|
+
_context29.prev = 15;
|
|
22405
|
+
_context29.t0 = _context29["catch"](2);
|
|
22344
22406
|
alert("error");
|
|
22345
|
-
return
|
|
22346
|
-
message:
|
|
22407
|
+
return _context29.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
22408
|
+
message: _context29.t0.message
|
|
22347
22409
|
})));
|
|
22348
22410
|
|
|
22349
22411
|
case 19:
|
|
22350
22412
|
case "end":
|
|
22351
|
-
return
|
|
22413
|
+
return _context29.stop();
|
|
22352
22414
|
}
|
|
22353
22415
|
}
|
|
22354
|
-
},
|
|
22416
|
+
}, _callee29, null, [[2, 15]]);
|
|
22355
22417
|
})));
|
|
22356
22418
|
var dashboardApiSlice = createSlice({
|
|
22357
22419
|
name: "dashboardApiSlice",
|
|
@@ -22380,6 +22442,7 @@ var dashboardApiSlice = createSlice({
|
|
|
22380
22442
|
assignPractitionerList: _objectSpread2({}, defaultState.Info),
|
|
22381
22443
|
assignPractitionerUpdate: _objectSpread2({}, defaultState.Info),
|
|
22382
22444
|
reassignPractitionerUpdate: _objectSpread2({}, defaultState.Info),
|
|
22445
|
+
appointmentUpsert: _objectSpread2({}, defaultState.Info),
|
|
22383
22446
|
//CLOSE CONSULTATION MASTER
|
|
22384
22447
|
dispositionType: _objectSpread2({}, defaultState.Info),
|
|
22385
22448
|
followupUOM: _objectSpread2({}, defaultState.Info),
|
|
@@ -22627,46 +22690,56 @@ var dashboardApiSlice = createSlice({
|
|
|
22627
22690
|
var _action$payload48;
|
|
22628
22691
|
|
|
22629
22692
|
state.reassignPractitionerUpdate = (_action$payload48 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload48 !== void 0 ? _action$payload48 : {};
|
|
22630
|
-
}), _defineProperty(_extraReducers$p,
|
|
22693
|
+
}), _defineProperty(_extraReducers$p, UPSERT_APPOINTMENT.fulfilled, function (state, action) {
|
|
22631
22694
|
var _action$payload49;
|
|
22632
22695
|
|
|
22633
|
-
state.
|
|
22696
|
+
state.appointmentUpsert = (_action$payload49 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload49 !== void 0 ? _action$payload49 : {};
|
|
22697
|
+
}), _defineProperty(_extraReducers$p, UPSERT_APPOINTMENT.pending, function (state, action) {
|
|
22698
|
+
state.appointmentUpsert.loading = true;
|
|
22699
|
+
}), _defineProperty(_extraReducers$p, UPSERT_APPOINTMENT.rejected, function (state, action) {
|
|
22700
|
+
var _action$payload50;
|
|
22701
|
+
|
|
22702
|
+
state.appointmentUpsert = (_action$payload50 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload50 !== void 0 ? _action$payload50 : {};
|
|
22703
|
+
}), _defineProperty(_extraReducers$p, DISPOSITION_TYPE.fulfilled, function (state, action) {
|
|
22704
|
+
var _action$payload51;
|
|
22705
|
+
|
|
22706
|
+
state.dispositionType = (_action$payload51 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload51 !== void 0 ? _action$payload51 : {};
|
|
22634
22707
|
}), _defineProperty(_extraReducers$p, DISPOSITION_TYPE.pending, function (state, action) {
|
|
22635
22708
|
state.dispositionType.loading = true;
|
|
22636
22709
|
}), _defineProperty(_extraReducers$p, DISPOSITION_TYPE.rejected, function (state, action) {
|
|
22637
|
-
var _action$
|
|
22710
|
+
var _action$payload52;
|
|
22638
22711
|
|
|
22639
|
-
state.dispositionType = (_action$
|
|
22712
|
+
state.dispositionType = (_action$payload52 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload52 !== void 0 ? _action$payload52 : {};
|
|
22640
22713
|
}), _defineProperty(_extraReducers$p, FOLLOWUPUOM.fulfilled, function (state, action) {
|
|
22641
|
-
var _action$
|
|
22714
|
+
var _action$payload53;
|
|
22642
22715
|
|
|
22643
|
-
state.followupUOM = (_action$
|
|
22716
|
+
state.followupUOM = (_action$payload53 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload53 !== void 0 ? _action$payload53 : {};
|
|
22644
22717
|
}), _defineProperty(_extraReducers$p, FOLLOWUPUOM.pending, function (state, action) {
|
|
22645
22718
|
state.followupUOM.loading = true;
|
|
22646
22719
|
}), _defineProperty(_extraReducers$p, FOLLOWUPUOM.rejected, function (state, action) {
|
|
22647
|
-
var _action$
|
|
22720
|
+
var _action$payload54;
|
|
22648
22721
|
|
|
22649
|
-
state.followupUOM = (_action$
|
|
22722
|
+
state.followupUOM = (_action$payload54 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload54 !== void 0 ? _action$payload54 : {};
|
|
22650
22723
|
}), _defineProperty(_extraReducers$p, REASON_MASTER.fulfilled, function (state, action) {
|
|
22651
|
-
var _action$
|
|
22724
|
+
var _action$payload55;
|
|
22652
22725
|
|
|
22653
|
-
state.reasonMaster = (_action$
|
|
22726
|
+
state.reasonMaster = (_action$payload55 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload55 !== void 0 ? _action$payload55 : {};
|
|
22654
22727
|
}), _defineProperty(_extraReducers$p, REASON_MASTER.pending, function (state, action) {
|
|
22655
22728
|
state.reasonMaster.loading = true;
|
|
22656
22729
|
}), _defineProperty(_extraReducers$p, REASON_MASTER.rejected, function (state, action) {
|
|
22657
|
-
var _action$
|
|
22730
|
+
var _action$payload56;
|
|
22658
22731
|
|
|
22659
|
-
state.reasonMaster = (_action$
|
|
22732
|
+
state.reasonMaster = (_action$payload56 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload56 !== void 0 ? _action$payload56 : {};
|
|
22660
22733
|
}), _defineProperty(_extraReducers$p, CLOSE_CONSULTATION_UPDATE.fulfilled, function (state, action) {
|
|
22661
|
-
var _action$
|
|
22734
|
+
var _action$payload57;
|
|
22662
22735
|
|
|
22663
|
-
state.closeConsultationUpdate = (_action$
|
|
22736
|
+
state.closeConsultationUpdate = (_action$payload57 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload57 !== void 0 ? _action$payload57 : {};
|
|
22664
22737
|
}), _defineProperty(_extraReducers$p, CLOSE_CONSULTATION_UPDATE.pending, function (state, action) {
|
|
22665
22738
|
state.closeConsultationUpdate.loading = true;
|
|
22666
22739
|
}), _defineProperty(_extraReducers$p, CLOSE_CONSULTATION_UPDATE.rejected, function (state, action) {
|
|
22667
|
-
var _action$
|
|
22740
|
+
var _action$payload58;
|
|
22668
22741
|
|
|
22669
|
-
state.closeConsultationUpdate = (_action$
|
|
22742
|
+
state.closeConsultationUpdate = (_action$payload58 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload58 !== void 0 ? _action$payload58 : {};
|
|
22670
22743
|
}), _extraReducers$p)
|
|
22671
22744
|
});
|
|
22672
22745
|
var dashboardApiActions = {
|
|
@@ -22697,7 +22770,8 @@ var dashboardApiActions = {
|
|
|
22697
22770
|
FOLLOWUPUOM: FOLLOWUPUOM,
|
|
22698
22771
|
REASON_MASTER: REASON_MASTER,
|
|
22699
22772
|
CLOSE_CONSULTATION_UPDATE: CLOSE_CONSULTATION_UPDATE,
|
|
22700
|
-
TODAY_VISIT: TODAY_VISIT
|
|
22773
|
+
TODAY_VISIT: TODAY_VISIT,
|
|
22774
|
+
UPSERT_APPOINTMENT: UPSERT_APPOINTMENT
|
|
22701
22775
|
};
|
|
22702
22776
|
var dashboardApiSlice$1 = dashboardApiSlice.reducer;
|
|
22703
22777
|
|