primarycare-binder 1.1.115 → 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 +121 -44
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8073,7 +8073,7 @@ var queries$b = {
|
|
|
8073
8073
|
db_name: "".concat(dbName),
|
|
8074
8074
|
entity: "Encounter",
|
|
8075
8075
|
filter: "Encounter.activestatus==true && Encounter._id=='".concat(encounter_id, "'"),
|
|
8076
|
-
return_fields: "MERGE(Encounter,{reasonReference: Document(Encounter.reasonReference),practitioner_details:(FOR practdet IN TO_ARRAY(Encounter.practitioner_details) RETURN MERGE(practdet,{speciality:DOCUMENT(practdet.speciality)}))},{identifier: ( FOR IdentifierMaster IN IdentifierMaster FILTER IdentifierMaster._id in Encounter.identifier return merge(IdentifierMaster,{period:document(IdentifierMaster.period)}))},{statushistory:(for sat in TO_ARRAY(Encounter.statushistory) return merge(sat,{period:document(sat.period)}))})"
|
|
8076
|
+
return_fields: "MERGE(Encounter,{reasonReference: Document(Encounter.reasonReference),practitioner_details:(FOR practdet IN TO_ARRAY(Encounter.practitioner_details) RETURN MERGE(practdet,{speciality:DOCUMENT(practdet.speciality)}))},{identifier: ( FOR IdentifierMaster IN IdentifierMaster FILTER IdentifierMaster._id in Encounter.identifier return merge(IdentifierMaster,{period:document(IdentifierMaster.period)}))},{statushistory:(for sat in TO_ARRAY(Encounter.statushistory) return merge(sat,{period:document(sat.period)}))},{type:document(Encounter.type)},{class:document(Encounter.class)})"
|
|
8077
8077
|
};
|
|
8078
8078
|
},
|
|
8079
8079
|
get_apo_read: function get_apo_read(appointmentId) {
|
|
@@ -12328,6 +12328,8 @@ var QUEUE_MANAGEMENT = createAsyncThunk("appointmentReducer/queueManagement", /*
|
|
|
12328
12328
|
isNurse,
|
|
12329
12329
|
_payload$isFrontDesk,
|
|
12330
12330
|
isFrontDesk,
|
|
12331
|
+
_payload$nameOfOrg,
|
|
12332
|
+
nameOfOrg,
|
|
12331
12333
|
body,
|
|
12332
12334
|
data,
|
|
12333
12335
|
returnData,
|
|
@@ -12340,7 +12342,7 @@ var QUEUE_MANAGEMENT = createAsyncThunk("appointmentReducer/queueManagement", /*
|
|
|
12340
12342
|
payload = _args12.length > 0 && _args12[0] !== undefined ? _args12[0] : {};
|
|
12341
12343
|
_ref25 = _args12.length > 1 ? _args12[1] : undefined, rejectWithValue = _ref25.rejectWithValue;
|
|
12342
12344
|
_context12.prev = 2;
|
|
12343
|
-
_payload$start2 = payload.start, start = _payload$start2 === void 0 ? 0 : _payload$start2, _payload$end = payload.end, end = _payload$end === void 0 ? 0 : _payload$end, _payload$OrgID = payload.OrgID, OrgID = _payload$OrgID === void 0 ? 0 : _payload$OrgID, _payload$login = payload.login, login = _payload$login === void 0 ? 0 : _payload$login, _payload$specialtyId = payload.specialtyId, specialtyId = _payload$specialtyId === void 0 ? 0 : _payload$specialtyId, _payload$isDoctor = payload.isDoctor, isDoctor = _payload$isDoctor === void 0 ? false : _payload$isDoctor, _payload$isNurse = payload.isNurse, isNurse = _payload$isNurse === void 0 ? false : _payload$isNurse, _payload$isFrontDesk = payload.isFrontDesk, isFrontDesk = _payload$isFrontDesk === void 0 ? false : _payload$isFrontDesk;
|
|
12345
|
+
_payload$start2 = payload.start, start = _payload$start2 === void 0 ? 0 : _payload$start2, _payload$end = payload.end, end = _payload$end === void 0 ? 0 : _payload$end, _payload$OrgID = payload.OrgID, OrgID = _payload$OrgID === void 0 ? 0 : _payload$OrgID, _payload$login = payload.login, login = _payload$login === void 0 ? 0 : _payload$login, _payload$specialtyId = payload.specialtyId, specialtyId = _payload$specialtyId === void 0 ? 0 : _payload$specialtyId, _payload$isDoctor = payload.isDoctor, isDoctor = _payload$isDoctor === void 0 ? false : _payload$isDoctor, _payload$isNurse = payload.isNurse, isNurse = _payload$isNurse === void 0 ? false : _payload$isNurse, _payload$isFrontDesk = payload.isFrontDesk, isFrontDesk = _payload$isFrontDesk === void 0 ? false : _payload$isFrontDesk, _payload$nameOfOrg = payload.nameOfOrg, nameOfOrg = _payload$nameOfOrg === void 0 ? "" : _payload$nameOfOrg;
|
|
12344
12346
|
body = isDoctor ? {
|
|
12345
12347
|
db_name: dbName,
|
|
12346
12348
|
queryid: query_ids["appointmentReducer/queueManagementDoctor"],
|
|
@@ -12365,7 +12367,8 @@ var QUEUE_MANAGEMENT = createAsyncThunk("appointmentReducer/queueManagement", /*
|
|
|
12365
12367
|
filter: {
|
|
12366
12368
|
start: start,
|
|
12367
12369
|
end: end,
|
|
12368
|
-
OrgID: OrgID
|
|
12370
|
+
OrgID: OrgID,
|
|
12371
|
+
org_id: nameOfOrg
|
|
12369
12372
|
}
|
|
12370
12373
|
};
|
|
12371
12374
|
_context12.next = 7;
|
|
@@ -15710,7 +15713,7 @@ var GET_ENCOUNTER_MASTER_TYPE = createAsyncThunk('searchApiSlice/masterEncounter
|
|
|
15710
15713
|
"db_name": "primarycare",
|
|
15711
15714
|
"entity": "AMPatientClass",
|
|
15712
15715
|
"filter": "AMPatientClass.status==true && AMPatientClass.activestatus==true",
|
|
15713
|
-
"return_fields": "keep(AMPatientClass,'_id','_key','id','shortDesc','longDesc','status')",
|
|
15716
|
+
"return_fields": "keep(AMPatientClass,'_id','_key','id', 'encType', 'shortDesc','longDesc','status')",
|
|
15714
15717
|
"sort": "AMPatientClass.shortDesc"
|
|
15715
15718
|
};
|
|
15716
15719
|
_context10.next = 7;
|
|
@@ -15771,7 +15774,7 @@ var GET_ENCOUNTER_MASTER_CLASS = createAsyncThunk('searchApiSlice/masterEncounte
|
|
|
15771
15774
|
encounterClassBody = {
|
|
15772
15775
|
"db_name": "primarycare",
|
|
15773
15776
|
"entity": "AMPatientClass",
|
|
15774
|
-
"filter": "AMPatientClass.
|
|
15777
|
+
"filter": "AMPatientClass.encType=='".concat(encType, "' && AMPatientClass.status==true && AMPatientClass.activestatus==true"),
|
|
15775
15778
|
"return_fields": "{encClsByTypes:AMPatientClass.encClsByTypes}"
|
|
15776
15779
|
};
|
|
15777
15780
|
_context11.next = 8;
|
|
@@ -20475,6 +20478,20 @@ var dashboardQuery = {
|
|
|
20475
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)}))})",
|
|
20476
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)}))})"
|
|
20477
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
|
+
}];
|
|
20478
20495
|
}
|
|
20479
20496
|
};
|
|
20480
20497
|
var visitQuery = {
|
|
@@ -22157,7 +22174,7 @@ var ASSIGN_PRACTITIONER_LIST = createAsyncThunk("dashboardApiSlice/assignPractit
|
|
|
22157
22174
|
data = _context25.sent;
|
|
22158
22175
|
arry = [];
|
|
22159
22176
|
data === null || data === void 0 ? void 0 : (_data$result9 = data.result) === null || _data$result9 === void 0 ? void 0 : _data$result9.map(function (val) {
|
|
22160
|
-
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;
|
|
22161
22178
|
|
|
22162
22179
|
arry.push({
|
|
22163
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 : "",
|
|
@@ -22167,7 +22184,9 @@ var ASSIGN_PRACTITIONER_LIST = createAsyncThunk("dashboardApiSlice/assignPractit
|
|
|
22167
22184
|
id: (_val$id = val === null || val === void 0 ? void 0 : val.id) !== null && _val$id !== void 0 ? _val$id : "",
|
|
22168
22185
|
appointmentCount: (_val$assignedpatient = val === null || val === void 0 ? void 0 : val.assignedpatient) !== null && _val$assignedpatient !== void 0 ? _val$assignedpatient : "",
|
|
22169
22186
|
Practitioner_id: (_val$id2 = val === null || val === void 0 ? void 0 : val.id) !== null && _val$id2 !== void 0 ? _val$id2 : "",
|
|
22170
|
-
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 : ""
|
|
22171
22190
|
});
|
|
22172
22191
|
});
|
|
22173
22192
|
return _context25.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
@@ -22274,6 +22293,52 @@ var REASSIGN_PRACTITIONER_UPDATE = createAsyncThunk("dashboardApiSlice/reassignP
|
|
|
22274
22293
|
}
|
|
22275
22294
|
}
|
|
22276
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]]);
|
|
22277
22342
|
})));
|
|
22278
22343
|
|
|
22279
22344
|
var constructStatusHistory = function constructStatusHistory(data, status) {
|
|
@@ -22288,9 +22353,9 @@ var constructStatusHistory = function constructStatusHistory(data, status) {
|
|
|
22288
22353
|
}; //CLOSE_CONSULTATION_UPDATE
|
|
22289
22354
|
|
|
22290
22355
|
|
|
22291
|
-
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() {
|
|
22292
22357
|
var payload,
|
|
22293
|
-
|
|
22358
|
+
_ref58,
|
|
22294
22359
|
rejectWithValue,
|
|
22295
22360
|
_encounterCode$result,
|
|
22296
22361
|
_encounterCode$result2,
|
|
@@ -22300,17 +22365,17 @@ var CLOSE_CONSULTATION_UPDATE = createAsyncThunk("dashboardApiSlice/closeConsult
|
|
|
22300
22365
|
encounterStatus,
|
|
22301
22366
|
statusHistor,
|
|
22302
22367
|
data_,
|
|
22303
|
-
|
|
22368
|
+
_args29 = arguments;
|
|
22304
22369
|
|
|
22305
|
-
return regeneratorRuntime.wrap(function
|
|
22370
|
+
return regeneratorRuntime.wrap(function _callee29$(_context29) {
|
|
22306
22371
|
while (1) {
|
|
22307
|
-
switch (
|
|
22372
|
+
switch (_context29.prev = _context29.next) {
|
|
22308
22373
|
case 0:
|
|
22309
|
-
payload =
|
|
22310
|
-
|
|
22311
|
-
|
|
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;
|
|
22312
22377
|
data = payload.data;
|
|
22313
|
-
|
|
22378
|
+
_context29.next = 6;
|
|
22314
22379
|
return fetchData$3({
|
|
22315
22380
|
body: JSON.stringify({
|
|
22316
22381
|
db_name: dbName,
|
|
@@ -22321,34 +22386,34 @@ var CLOSE_CONSULTATION_UPDATE = createAsyncThunk("dashboardApiSlice/closeConsult
|
|
|
22321
22386
|
}, __readDocumentUrl__);
|
|
22322
22387
|
|
|
22323
22388
|
case 6:
|
|
22324
|
-
encounterCode =
|
|
22389
|
+
encounterCode = _context29.sent;
|
|
22325
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 : "";
|
|
22326
22391
|
statusHistor = constructStatusHistory(data, encounterStatus);
|
|
22327
|
-
|
|
22392
|
+
_context29.next = 11;
|
|
22328
22393
|
return fetchData$3({
|
|
22329
22394
|
body: JSON.stringify(dashboardQuery.closeConsultationUpdate(data, encounterStatus, statusHistor))
|
|
22330
22395
|
}, __uspsertUrl__);
|
|
22331
22396
|
|
|
22332
22397
|
case 11:
|
|
22333
|
-
data_ =
|
|
22334
|
-
return
|
|
22398
|
+
data_ = _context29.sent;
|
|
22399
|
+
return _context29.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
22335
22400
|
data: data_
|
|
22336
22401
|
}));
|
|
22337
22402
|
|
|
22338
22403
|
case 15:
|
|
22339
|
-
|
|
22340
|
-
|
|
22404
|
+
_context29.prev = 15;
|
|
22405
|
+
_context29.t0 = _context29["catch"](2);
|
|
22341
22406
|
alert("error");
|
|
22342
|
-
return
|
|
22343
|
-
message:
|
|
22407
|
+
return _context29.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
22408
|
+
message: _context29.t0.message
|
|
22344
22409
|
})));
|
|
22345
22410
|
|
|
22346
22411
|
case 19:
|
|
22347
22412
|
case "end":
|
|
22348
|
-
return
|
|
22413
|
+
return _context29.stop();
|
|
22349
22414
|
}
|
|
22350
22415
|
}
|
|
22351
|
-
},
|
|
22416
|
+
}, _callee29, null, [[2, 15]]);
|
|
22352
22417
|
})));
|
|
22353
22418
|
var dashboardApiSlice = createSlice({
|
|
22354
22419
|
name: "dashboardApiSlice",
|
|
@@ -22377,6 +22442,7 @@ var dashboardApiSlice = createSlice({
|
|
|
22377
22442
|
assignPractitionerList: _objectSpread2({}, defaultState.Info),
|
|
22378
22443
|
assignPractitionerUpdate: _objectSpread2({}, defaultState.Info),
|
|
22379
22444
|
reassignPractitionerUpdate: _objectSpread2({}, defaultState.Info),
|
|
22445
|
+
appointmentUpsert: _objectSpread2({}, defaultState.Info),
|
|
22380
22446
|
//CLOSE CONSULTATION MASTER
|
|
22381
22447
|
dispositionType: _objectSpread2({}, defaultState.Info),
|
|
22382
22448
|
followupUOM: _objectSpread2({}, defaultState.Info),
|
|
@@ -22624,46 +22690,56 @@ var dashboardApiSlice = createSlice({
|
|
|
22624
22690
|
var _action$payload48;
|
|
22625
22691
|
|
|
22626
22692
|
state.reassignPractitionerUpdate = (_action$payload48 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload48 !== void 0 ? _action$payload48 : {};
|
|
22627
|
-
}), _defineProperty(_extraReducers$p,
|
|
22693
|
+
}), _defineProperty(_extraReducers$p, UPSERT_APPOINTMENT.fulfilled, function (state, action) {
|
|
22628
22694
|
var _action$payload49;
|
|
22629
22695
|
|
|
22630
|
-
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 : {};
|
|
22631
22707
|
}), _defineProperty(_extraReducers$p, DISPOSITION_TYPE.pending, function (state, action) {
|
|
22632
22708
|
state.dispositionType.loading = true;
|
|
22633
22709
|
}), _defineProperty(_extraReducers$p, DISPOSITION_TYPE.rejected, function (state, action) {
|
|
22634
|
-
var _action$
|
|
22710
|
+
var _action$payload52;
|
|
22635
22711
|
|
|
22636
|
-
state.dispositionType = (_action$
|
|
22712
|
+
state.dispositionType = (_action$payload52 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload52 !== void 0 ? _action$payload52 : {};
|
|
22637
22713
|
}), _defineProperty(_extraReducers$p, FOLLOWUPUOM.fulfilled, function (state, action) {
|
|
22638
|
-
var _action$
|
|
22714
|
+
var _action$payload53;
|
|
22639
22715
|
|
|
22640
|
-
state.followupUOM = (_action$
|
|
22716
|
+
state.followupUOM = (_action$payload53 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload53 !== void 0 ? _action$payload53 : {};
|
|
22641
22717
|
}), _defineProperty(_extraReducers$p, FOLLOWUPUOM.pending, function (state, action) {
|
|
22642
22718
|
state.followupUOM.loading = true;
|
|
22643
22719
|
}), _defineProperty(_extraReducers$p, FOLLOWUPUOM.rejected, function (state, action) {
|
|
22644
|
-
var _action$
|
|
22720
|
+
var _action$payload54;
|
|
22645
22721
|
|
|
22646
|
-
state.followupUOM = (_action$
|
|
22722
|
+
state.followupUOM = (_action$payload54 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload54 !== void 0 ? _action$payload54 : {};
|
|
22647
22723
|
}), _defineProperty(_extraReducers$p, REASON_MASTER.fulfilled, function (state, action) {
|
|
22648
|
-
var _action$
|
|
22724
|
+
var _action$payload55;
|
|
22649
22725
|
|
|
22650
|
-
state.reasonMaster = (_action$
|
|
22726
|
+
state.reasonMaster = (_action$payload55 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload55 !== void 0 ? _action$payload55 : {};
|
|
22651
22727
|
}), _defineProperty(_extraReducers$p, REASON_MASTER.pending, function (state, action) {
|
|
22652
22728
|
state.reasonMaster.loading = true;
|
|
22653
22729
|
}), _defineProperty(_extraReducers$p, REASON_MASTER.rejected, function (state, action) {
|
|
22654
|
-
var _action$
|
|
22730
|
+
var _action$payload56;
|
|
22655
22731
|
|
|
22656
|
-
state.reasonMaster = (_action$
|
|
22732
|
+
state.reasonMaster = (_action$payload56 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload56 !== void 0 ? _action$payload56 : {};
|
|
22657
22733
|
}), _defineProperty(_extraReducers$p, CLOSE_CONSULTATION_UPDATE.fulfilled, function (state, action) {
|
|
22658
|
-
var _action$
|
|
22734
|
+
var _action$payload57;
|
|
22659
22735
|
|
|
22660
|
-
state.closeConsultationUpdate = (_action$
|
|
22736
|
+
state.closeConsultationUpdate = (_action$payload57 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload57 !== void 0 ? _action$payload57 : {};
|
|
22661
22737
|
}), _defineProperty(_extraReducers$p, CLOSE_CONSULTATION_UPDATE.pending, function (state, action) {
|
|
22662
22738
|
state.closeConsultationUpdate.loading = true;
|
|
22663
22739
|
}), _defineProperty(_extraReducers$p, CLOSE_CONSULTATION_UPDATE.rejected, function (state, action) {
|
|
22664
|
-
var _action$
|
|
22740
|
+
var _action$payload58;
|
|
22665
22741
|
|
|
22666
|
-
state.closeConsultationUpdate = (_action$
|
|
22742
|
+
state.closeConsultationUpdate = (_action$payload58 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload58 !== void 0 ? _action$payload58 : {};
|
|
22667
22743
|
}), _extraReducers$p)
|
|
22668
22744
|
});
|
|
22669
22745
|
var dashboardApiActions = {
|
|
@@ -22694,7 +22770,8 @@ var dashboardApiActions = {
|
|
|
22694
22770
|
FOLLOWUPUOM: FOLLOWUPUOM,
|
|
22695
22771
|
REASON_MASTER: REASON_MASTER,
|
|
22696
22772
|
CLOSE_CONSULTATION_UPDATE: CLOSE_CONSULTATION_UPDATE,
|
|
22697
|
-
TODAY_VISIT: TODAY_VISIT
|
|
22773
|
+
TODAY_VISIT: TODAY_VISIT,
|
|
22774
|
+
UPSERT_APPOINTMENT: UPSERT_APPOINTMENT
|
|
22698
22775
|
};
|
|
22699
22776
|
var dashboardApiSlice$1 = dashboardApiSlice.reducer;
|
|
22700
22777
|
|
|
@@ -31945,7 +32022,7 @@ var queries$5 = {
|
|
|
31945
32022
|
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Organization\",\n \"filter\": \"Organization.id == ").concat(id, "\",\n \"return_fields\": \"Organization._id\"\n }");
|
|
31946
32023
|
},
|
|
31947
32024
|
strength: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"RoutedDoseFormStrGen_Drug_Master\",\n \"return_fields\": \"RoutedDoseFormStrGen_Drug_Master\"\n }"),
|
|
31948
|
-
strengthUom: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugUOM\",\n \"filter\":\"DrugUOM.IsDosageStrengthUOM==true\",\n \"return_fields\": \"DrugUOM\"\n }"),
|
|
32025
|
+
strengthUom: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugUOM\",\n \"filter\":\"DrugUOM.IsDosageStrengthUOM==true && DrugUOM.status==true\",\n \"return_fields\": \"DrugUOM\"\n }"),
|
|
31949
32026
|
strengthVolumn: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"RoutedDoseFormStrGen_Drug_Master\",\n \"return_fields\": \"RoutedDoseFormStrGen_Drug_Master\"\n }"),
|
|
31950
32027
|
strengthVolumnUom: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugUOM\",\n \"filter\":\"DrugUOM.IsDosageStrengthUOM==true\",\n \"return_fields\": \"DrugUOM\"\n }"),
|
|
31951
32028
|
DosageTypeIndicator: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='DOSAGETYPEINDICATOR'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|