primarycare-binder 1.1.65 → 1.1.68
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 +360 -264
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -10399,7 +10399,7 @@ var PATIENT_SDI_READ = createAsyncThunk("patientReducer/readPatientSbi", /*#__PU
|
|
|
10399
10399
|
data = {
|
|
10400
10400
|
db_name: dbName,
|
|
10401
10401
|
entity: "SMGeographicMaster",
|
|
10402
|
-
filter: "lower(document(SMGeographicMaster.geogLevelType).display)=='country' && SMGeographicMaster.activestatus == true",
|
|
10402
|
+
filter: "lower(document(SMGeographicMaster.geogLevelType).display)=='country' && SMGeographicMaster.activestatus == true && SMGeographicMaster.active == true",
|
|
10403
10403
|
return_fields: "{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode,GeoLocationISDCode:SMGeographicMaster.GeoLocationISDCode}"
|
|
10404
10404
|
};
|
|
10405
10405
|
_context7.next = 6;
|
|
@@ -12411,6 +12411,7 @@ var REASON_FOR_APPT_CANCEL_MODIFY = createAsyncThunk("appointmentReducer/reasonF
|
|
|
12411
12411
|
db_name: dbName,
|
|
12412
12412
|
entity: "CodingMaster",
|
|
12413
12413
|
filter: "CodingMaster.Type=='".concat(payload.type, "' && CodingMaster.activestatus==true"),
|
|
12414
|
+
sort: "CodingMaster.display ASC",
|
|
12414
12415
|
return_fields: "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|
|
12415
12416
|
};
|
|
12416
12417
|
_context16.next = 6;
|
|
@@ -17809,7 +17810,8 @@ var ORGANIZATION_VISIT_REGISTRATION = createAsyncThunk("OrganizationRegisterPati
|
|
|
17809
17810
|
case 0:
|
|
17810
17811
|
payload = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
17811
17812
|
_ref4 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref4.rejectWithValue;
|
|
17812
|
-
|
|
17813
|
+
debugger;
|
|
17814
|
+
_context2.prev = 3;
|
|
17813
17815
|
payloaddata = payload.payloaddata, enId = payload.enId;
|
|
17814
17816
|
|
|
17815
17817
|
if (enId) {
|
|
@@ -17831,30 +17833,30 @@ var ORGANIZATION_VISIT_REGISTRATION = createAsyncThunk("OrganizationRegisterPati
|
|
|
17831
17833
|
}, payloaddata)];
|
|
17832
17834
|
}
|
|
17833
17835
|
|
|
17834
|
-
_context2.next =
|
|
17836
|
+
_context2.next = 8;
|
|
17835
17837
|
return fetchData$3({
|
|
17836
17838
|
body: JSON.stringify(body)
|
|
17837
17839
|
}, __uspsertUrl__);
|
|
17838
17840
|
|
|
17839
|
-
case
|
|
17841
|
+
case 8:
|
|
17840
17842
|
data = _context2.sent;
|
|
17841
17843
|
return _context2.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
17842
17844
|
data: data
|
|
17843
17845
|
}));
|
|
17844
17846
|
|
|
17845
|
-
case
|
|
17846
|
-
_context2.prev =
|
|
17847
|
-
_context2.t0 = _context2["catch"](
|
|
17847
|
+
case 12:
|
|
17848
|
+
_context2.prev = 12;
|
|
17849
|
+
_context2.t0 = _context2["catch"](3);
|
|
17848
17850
|
return _context2.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
17849
17851
|
message: _context2.t0.message
|
|
17850
17852
|
})));
|
|
17851
17853
|
|
|
17852
|
-
case
|
|
17854
|
+
case 15:
|
|
17853
17855
|
case "end":
|
|
17854
17856
|
return _context2.stop();
|
|
17855
17857
|
}
|
|
17856
17858
|
}
|
|
17857
|
-
}, _callee2, null, [[
|
|
17859
|
+
}, _callee2, null, [[3, 12]]);
|
|
17858
17860
|
})));
|
|
17859
17861
|
var ORGANIZATION_REFERRAL_REGISTRATION = createAsyncThunk("OrganizationRegisterPatientApiSlice/ReferralTrx", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
17860
17862
|
var payload,
|
|
@@ -18897,11 +18899,20 @@ var OrganizationRegisterPatientApiSlice$1 = OrganizationRegisterPatientApiSlice.
|
|
|
18897
18899
|
var dashboardQuery = {
|
|
18898
18900
|
totalAppointment: function totalAppointment(orgID, startDate, endDate, loginId) {
|
|
18899
18901
|
return {
|
|
18902
|
+
// 1: {
|
|
18903
|
+
// db_name: dbName,
|
|
18904
|
+
// entity: "Appointment",
|
|
18905
|
+
// filter: `Appointment.activestatus==true && Appointment.orgid=='${orgID}' && Appointment.start>=${startDate} && Appointment.end<=${endDate} && lower(Appointment.appointmentType)!='cancelled' && document(Appointment.resourcecode).id ==${loginId} collect with count into length`,
|
|
18906
|
+
// return_fields: "{Count:length}",
|
|
18907
|
+
// },
|
|
18900
18908
|
1: {
|
|
18901
|
-
db_name: dbName,
|
|
18902
|
-
entity: "Appointment",
|
|
18903
|
-
filter:
|
|
18904
|
-
|
|
18909
|
+
"db_name": dbName,
|
|
18910
|
+
"entity": "Appointment,Encounter",
|
|
18911
|
+
"filter": {
|
|
18912
|
+
"Appointment": "Appointment.start >= ".concat(startDate, " && Appointment.end <= ").concat(endDate, " && Appointment.orgid == '").concat(orgID, "' && Appointment.activestatus == true"),
|
|
18913
|
+
"Encounter": "Appointment.id in Encounter.appointmentId && first((Encounter.participant)[*].Practitioner_id) == ".concat(loginId, " && Encounter.activestatus == true collect with count into length")
|
|
18914
|
+
},
|
|
18915
|
+
"return_fields": "{Count:length}"
|
|
18905
18916
|
},
|
|
18906
18917
|
2: {
|
|
18907
18918
|
db_name: dbName,
|
|
@@ -19026,14 +19037,16 @@ var dashboardQuery = {
|
|
|
19026
19037
|
|
|
19027
19038
|
};
|
|
19028
19039
|
},
|
|
19029
|
-
patientWaitingTimeQuery: function patientWaitingTimeQuery(orgID, loginId) {
|
|
19040
|
+
patientWaitingTimeQuery: function patientWaitingTimeQuery(orgID, loginId, startDate, endDate) {
|
|
19030
19041
|
return {
|
|
19031
19042
|
1: {
|
|
19032
19043
|
db_name: dbName,
|
|
19033
19044
|
queryid: "21fd3638-914e-41a8-b6e5-36459565595a",
|
|
19034
19045
|
filter: {
|
|
19035
19046
|
practid: loginId,
|
|
19036
|
-
orgid: "".concat(orgID)
|
|
19047
|
+
orgid: "".concat(orgID),
|
|
19048
|
+
startDate: startDate,
|
|
19049
|
+
endDate: endDate
|
|
19037
19050
|
}
|
|
19038
19051
|
},
|
|
19039
19052
|
2: {
|
|
@@ -19041,7 +19054,9 @@ var dashboardQuery = {
|
|
|
19041
19054
|
queryid: "4a129656-d8e2-4a3c-9626-7488903118f9",
|
|
19042
19055
|
filter: {
|
|
19043
19056
|
practid: loginId,
|
|
19044
|
-
orgid: "".concat(orgID)
|
|
19057
|
+
orgid: "".concat(orgID),
|
|
19058
|
+
startDate: startDate,
|
|
19059
|
+
endDate: endDate
|
|
19045
19060
|
}
|
|
19046
19061
|
} // 3: {},
|
|
19047
19062
|
|
|
@@ -19049,14 +19064,23 @@ var dashboardQuery = {
|
|
|
19049
19064
|
},
|
|
19050
19065
|
firstVisit: function firstVisit(orgID, startDate, endDate, loginId) {
|
|
19051
19066
|
return {
|
|
19067
|
+
// 1: {
|
|
19068
|
+
// db_name: dbName,
|
|
19069
|
+
// entity: "Appointment,Encounter",
|
|
19070
|
+
// filter: {
|
|
19071
|
+
// Appointment: `Appointment.activestatus==true && Appointment.start>= ${startDate} && Appointment.end<=${endDate} && document(Appointment.resourcecode).id ==${loginId} && Appointment.orgid=='${orgID}' `,
|
|
19072
|
+
// Encounter: `Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==lower('First Visit') collect with count into length`,
|
|
19073
|
+
// },
|
|
19074
|
+
// return_fields: "{FirstVisitCount:length}",
|
|
19075
|
+
// },
|
|
19052
19076
|
1: {
|
|
19053
|
-
db_name: dbName,
|
|
19054
|
-
entity: "Appointment,Encounter",
|
|
19055
|
-
filter: {
|
|
19056
|
-
Appointment: "Appointment.
|
|
19057
|
-
Encounter: "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==
|
|
19077
|
+
"db_name": dbName,
|
|
19078
|
+
"entity": "Appointment,Encounter",
|
|
19079
|
+
"filter": {
|
|
19080
|
+
"Appointment": "Appointment.start >= ".concat(startDate, " && Appointment.end <= ").concat(endDate, " && Appointment.orgid == '").concat(orgID, "' && Appointment.activestatus == true"),
|
|
19081
|
+
"Encounter": "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type) == 'first visit' && first((Encounter.participant)[*].Practitioner_id) == ".concat(loginId, " && Encounter.activestatus == true collect with count into length")
|
|
19058
19082
|
},
|
|
19059
|
-
return_fields: "{FirstVisitCount:length}"
|
|
19083
|
+
"return_fields": "{FirstVisitCount:length}"
|
|
19060
19084
|
},
|
|
19061
19085
|
2: {
|
|
19062
19086
|
db_name: dbName,
|
|
@@ -19081,14 +19105,24 @@ var dashboardQuery = {
|
|
|
19081
19105
|
},
|
|
19082
19106
|
OtherVisit: function OtherVisit(orgID, startDate, endDate, loginId) {
|
|
19083
19107
|
return {
|
|
19108
|
+
// 1: {
|
|
19109
|
+
// db_name: dbName,
|
|
19110
|
+
// entity: "Appointment,Encounter",
|
|
19111
|
+
// filter: {
|
|
19112
|
+
// Appointment: `Appointment.activestatus==true && Appointment.start>= ${startDate} && Appointment.end<=${endDate} && document(Appointment.resourcecode).id ==${loginId} && Appointment.orgid=='${orgID}' `,
|
|
19113
|
+
// Encounter:
|
|
19114
|
+
// "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==lower('Other Visits') collect with count into length",
|
|
19115
|
+
// },
|
|
19116
|
+
// return_fields: "{OtherVisitsCount:length}",
|
|
19117
|
+
// },
|
|
19084
19118
|
1: {
|
|
19085
|
-
db_name: dbName,
|
|
19086
|
-
entity: "Appointment,Encounter",
|
|
19087
|
-
filter: {
|
|
19088
|
-
Appointment: "Appointment.
|
|
19089
|
-
Encounter: "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==
|
|
19119
|
+
"db_name": dbName,
|
|
19120
|
+
"entity": "Appointment,Encounter",
|
|
19121
|
+
"filter": {
|
|
19122
|
+
"Appointment": "Appointment.start >= ".concat(startDate, " && Appointment.end <= ").concat(endDate, " && Appointment.orgid == '").concat(orgID, "' && Appointment.activestatus == true"),
|
|
19123
|
+
"Encounter": "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type) == 'other visits' && first((Encounter.participant)[*].Practitioner_id) == ".concat(loginId, " && Encounter.activestatus == true collect with count into length")
|
|
19090
19124
|
},
|
|
19091
|
-
return_fields: "{OtherVisitsCount:length}"
|
|
19125
|
+
"return_fields": "{OtherVisitsCount:length}"
|
|
19092
19126
|
},
|
|
19093
19127
|
2: {
|
|
19094
19128
|
db_name: dbName,
|
|
@@ -19113,14 +19147,24 @@ var dashboardQuery = {
|
|
|
19113
19147
|
},
|
|
19114
19148
|
walkIns: function walkIns(orgID, startDate, endDate, loginId) {
|
|
19115
19149
|
return {
|
|
19150
|
+
// 1: {
|
|
19151
|
+
// db_name: dbName,
|
|
19152
|
+
// entity: "Appointment,Encounter",
|
|
19153
|
+
// filter: {
|
|
19154
|
+
// Appointment: `Appointment.activestatus==true && Appointment.start>= ${startDate} && Appointment.end<=${endDate} && document(Appointment.resourcecode).id ==${loginId} && Appointment.orgid=='${orgID}' `,
|
|
19155
|
+
// Encounter:
|
|
19156
|
+
// "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==lower('Walkin') collect with count into length",
|
|
19157
|
+
// },
|
|
19158
|
+
// return_fields: "{WalkinCount:length}",
|
|
19159
|
+
// },
|
|
19116
19160
|
1: {
|
|
19117
|
-
db_name: dbName,
|
|
19118
|
-
entity: "Appointment,Encounter",
|
|
19119
|
-
filter: {
|
|
19120
|
-
Appointment: "Appointment.
|
|
19121
|
-
Encounter: "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==
|
|
19161
|
+
"db_name": dbName,
|
|
19162
|
+
"entity": "Appointment,Encounter",
|
|
19163
|
+
"filter": {
|
|
19164
|
+
"Appointment": "Appointment.start >= ".concat(startDate, " && Appointment.end <= ").concat(endDate, " && Appointment.orgid == '").concat(orgID, "' && Appointment.activestatus == true"),
|
|
19165
|
+
"Encounter": "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type) == 'walkin' && first((Encounter.participant)[*].Practitioner_id) == ".concat(loginId, " && Encounter.activestatus == true collect with count into length")
|
|
19122
19166
|
},
|
|
19123
|
-
return_fields: "{WalkinCount:length}"
|
|
19167
|
+
"return_fields": "{WalkinCount:length}"
|
|
19124
19168
|
},
|
|
19125
19169
|
2: {
|
|
19126
19170
|
db_name: dbName,
|
|
@@ -19145,14 +19189,24 @@ var dashboardQuery = {
|
|
|
19145
19189
|
},
|
|
19146
19190
|
newPatient: function newPatient(orgID, startDate, endDate, loginId) {
|
|
19147
19191
|
return {
|
|
19192
|
+
// 1: {
|
|
19193
|
+
// db_name: dbName,
|
|
19194
|
+
// entity: "Appointment,Encounter",
|
|
19195
|
+
// filter: {
|
|
19196
|
+
// Appointment: `Appointment.activestatus==true && Appointment.start>=${startDate} && Appointment.end<=${endDate} && document(Appointment.resourcecode).id ==${loginId} && Appointment.orgid=='${orgID}' `,
|
|
19197
|
+
// Encounter:
|
|
19198
|
+
// "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==lower('New Patient') collect with count into length",
|
|
19199
|
+
// },
|
|
19200
|
+
// return_fields: "{NewPatientCount:length}",
|
|
19201
|
+
// },
|
|
19148
19202
|
1: {
|
|
19149
|
-
db_name: dbName,
|
|
19150
|
-
entity: "Appointment,Encounter",
|
|
19151
|
-
filter: {
|
|
19152
|
-
Appointment: "Appointment.
|
|
19153
|
-
Encounter: "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==
|
|
19203
|
+
"db_name": dbName,
|
|
19204
|
+
"entity": "Appointment,Encounter",
|
|
19205
|
+
"filter": {
|
|
19206
|
+
"Appointment": "Appointment.start >= ".concat(startDate, " && Appointment.end <= ").concat(endDate, " && Appointment.orgid == '").concat(orgID, "' && Appointment.activestatus == true"),
|
|
19207
|
+
"Encounter": "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type) == 'new patient' && first((Encounter.participant)[*].Practitioner_id) == ".concat(loginId, " && Encounter.activestatus == true collect with count into length")
|
|
19154
19208
|
},
|
|
19155
|
-
return_fields: "{NewPatientCount:length}"
|
|
19209
|
+
"return_fields": "{NewPatientCount:length}"
|
|
19156
19210
|
},
|
|
19157
19211
|
2: {
|
|
19158
19212
|
db_name: dbName,
|
|
@@ -19310,14 +19364,23 @@ var dashboardQuery = {
|
|
|
19310
19364
|
var visitQuery = {
|
|
19311
19365
|
checkedIn: function checkedIn(startDate, endDate, orgId, loginId, orGId) {
|
|
19312
19366
|
return {
|
|
19367
|
+
// 1: {
|
|
19368
|
+
// db_name: dbName,
|
|
19369
|
+
// entity: "Appointment,Encounter",
|
|
19370
|
+
// filter: {
|
|
19371
|
+
// Appointment: `Appointment.activestatus==true && Appointment.start>=${startDate} && Appointment.end<=${endDate} && document(Appointment.resourcecode).id ==${loginId} && Appointment.orgid=='${orGId}' `,
|
|
19372
|
+
// Encounter: `Appointment.id in Encounter.appointmentId && lower(first(document(Encounter.statushistory[*].status)[*].display))=='checked-in' collect with count into length`,
|
|
19373
|
+
// },
|
|
19374
|
+
// return_fields: "{CheckedIn:length}",
|
|
19375
|
+
// },
|
|
19313
19376
|
1: {
|
|
19314
|
-
db_name: dbName,
|
|
19315
|
-
entity: "Appointment,Encounter",
|
|
19316
|
-
filter: {
|
|
19317
|
-
Appointment: "Appointment.
|
|
19318
|
-
Encounter: "
|
|
19377
|
+
"db_name": dbName,
|
|
19378
|
+
"entity": "Appointment,Encounter",
|
|
19379
|
+
"filter": {
|
|
19380
|
+
"Appointment": "Appointment.start >= ".concat(startDate, " && Appointment.end <= ").concat(endDate, " && Appointment.orgid == '").concat(orGId, "' && Appointment.activestatus == true"),
|
|
19381
|
+
"Encounter": "lower(first(document(Encounter.statushistory[*].status)[*].display)) == 'checked-in' && Appointment.id in Encounter.appointmentId && first((Encounter.participant)[*].Practitioner_id) == ".concat(loginId, " && Encounter.activestatus == true collect with count into length")
|
|
19319
19382
|
},
|
|
19320
|
-
return_fields: "{CheckedIn:length}"
|
|
19383
|
+
"return_fields": "{CheckedIn:length}"
|
|
19321
19384
|
},
|
|
19322
19385
|
2: {
|
|
19323
19386
|
db_name: dbName,
|
|
@@ -19627,6 +19690,8 @@ var PATIENT_WAITING_TIME = createAsyncThunk("dashboardApiSlice/patientWaitingTim
|
|
|
19627
19690
|
orgId,
|
|
19628
19691
|
roleId,
|
|
19629
19692
|
loginId,
|
|
19693
|
+
startDate,
|
|
19694
|
+
endDate,
|
|
19630
19695
|
data,
|
|
19631
19696
|
arr,
|
|
19632
19697
|
_args3 = arguments;
|
|
@@ -19638,32 +19703,33 @@ var PATIENT_WAITING_TIME = createAsyncThunk("dashboardApiSlice/patientWaitingTim
|
|
|
19638
19703
|
payload = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
|
19639
19704
|
_ref6 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref6.rejectWithValue;
|
|
19640
19705
|
_context3.prev = 2;
|
|
19641
|
-
orgId = payload.orgId, roleId = payload.roleId, loginId = payload.loginId;
|
|
19706
|
+
orgId = payload.orgId, roleId = payload.roleId, loginId = payload.loginId, startDate = payload.startDate, endDate = payload.endDate;
|
|
19642
19707
|
_context3.next = 6;
|
|
19643
19708
|
return fetchData$3({
|
|
19644
|
-
body: JSON.stringify(dashboardQuery.patientWaitingTimeQuery(orgId, JSON.parse(parseInt(loginId)))[roleId])
|
|
19709
|
+
body: JSON.stringify(dashboardQuery.patientWaitingTimeQuery(orgId, JSON.parse(parseInt(loginId)), JSON.parse(parseInt(startDate)), JSON.parse(parseInt(endDate)))[roleId])
|
|
19645
19710
|
}, __baseUrl__);
|
|
19646
19711
|
|
|
19647
19712
|
case 6:
|
|
19648
19713
|
data = _context3.sent;
|
|
19714
|
+
debugger;
|
|
19649
19715
|
arr = [(_data$0$LessThan15$0$ = data === null || data === void 0 ? void 0 : (_data$ = data[0]) === null || _data$ === void 0 ? void 0 : (_data$$LessThan = _data$.LessThan15) === null || _data$$LessThan === void 0 ? void 0 : (_data$$LessThan$ = _data$$LessThan[0]) === null || _data$$LessThan$ === void 0 ? void 0 : _data$$LessThan$.LessThan15) !== null && _data$0$LessThan15$0$ !== void 0 ? _data$0$LessThan15$0$ : 0, (_data$0$MoreThan15$0$ = data === null || data === void 0 ? void 0 : (_data$2 = data[0]) === null || _data$2 === void 0 ? void 0 : (_data$2$MoreThan = _data$2.MoreThan15) === null || _data$2$MoreThan === void 0 ? void 0 : (_data$2$MoreThan$ = _data$2$MoreThan[0]) === null || _data$2$MoreThan$ === void 0 ? void 0 : _data$2$MoreThan$.MoreThan15) !== null && _data$0$MoreThan15$0$ !== void 0 ? _data$0$MoreThan15$0$ : 0, (_data$0$GreaterThan = data === null || data === void 0 ? void 0 : (_data$3 = data[0]) === null || _data$3 === void 0 ? void 0 : (_data$3$GreaterThan = _data$3.GreaterThan30) === null || _data$3$GreaterThan === void 0 ? void 0 : (_data$3$GreaterThan$ = _data$3$GreaterThan[0]) === null || _data$3$GreaterThan$ === void 0 ? void 0 : _data$3$GreaterThan$.GreaterThan30) !== null && _data$0$GreaterThan !== void 0 ? _data$0$GreaterThan : 0];
|
|
19650
19716
|
return _context3.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
19651
19717
|
data: arr
|
|
19652
19718
|
}));
|
|
19653
19719
|
|
|
19654
|
-
case
|
|
19655
|
-
_context3.prev =
|
|
19720
|
+
case 12:
|
|
19721
|
+
_context3.prev = 12;
|
|
19656
19722
|
_context3.t0 = _context3["catch"](2);
|
|
19657
19723
|
return _context3.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19658
19724
|
message: _context3.t0.message
|
|
19659
19725
|
})));
|
|
19660
19726
|
|
|
19661
|
-
case
|
|
19727
|
+
case 15:
|
|
19662
19728
|
case "end":
|
|
19663
19729
|
return _context3.stop();
|
|
19664
19730
|
}
|
|
19665
19731
|
}
|
|
19666
|
-
}, _callee3, null, [[2,
|
|
19732
|
+
}, _callee3, null, [[2, 12]]);
|
|
19667
19733
|
})));
|
|
19668
19734
|
var PATIENTSTATUSASSESSMENTPENDING = createAsyncThunk("dashboardApiSlice/patientStatusAssessmentPendin", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
|
|
19669
19735
|
var payload,
|
|
@@ -21837,7 +21903,7 @@ var visitStatsApiActions = {
|
|
|
21837
21903
|
var visitStatsApiSlice$1 = visitStatsApiSlice.reducer;
|
|
21838
21904
|
|
|
21839
21905
|
var queries$a = {
|
|
21840
|
-
relationship: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='RELATIONSHIP'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
21906
|
+
relationship: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='RELATIONSHIP' && CodeableConceptMaster.status==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
21841
21907
|
symptoms: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"SymptomsMapping\",\n \"return_fields\": \"SymptomsMapping\"\n }"),
|
|
21842
21908
|
Severity: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='CCSEVERITY'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
21843
21909
|
bodySite: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='CCBODYSITE'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
@@ -22814,7 +22880,7 @@ var queries$9 = {
|
|
|
22814
22880
|
Manifestation: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='MENIFESTATION'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
22815
22881
|
GradeType: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='GRADETYPE'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
22816
22882
|
Assesment: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='ASSESMENTREF'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
22817
|
-
GradeCode: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='
|
|
22883
|
+
GradeCode: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='GRADECODE'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
22818
22884
|
deleteDiagnosis: function deleteDiagnosis(id) {
|
|
22819
22885
|
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CA_Diagnosis\",\n \"filter\": \"CA_Diagnosis._id =='").concat(id, "'\"\n }");
|
|
22820
22886
|
}
|
|
@@ -24276,8 +24342,8 @@ var generateJSON$6 = function generateJSON(payload, orgId) {
|
|
|
24276
24342
|
"ivInfusionRateUOM": (_payload$ivInfusionRa = (_payload$ivInfusionRa2 = payload.ivInfusionRateUOM) === null || _payload$ivInfusionRa2 === void 0 ? void 0 : _payload$ivInfusionRa2.value) !== null && _payload$ivInfusionRa !== void 0 ? _payload$ivInfusionRa : "",
|
|
24277
24343
|
"dosageDurationValue": payload.dosetime ? parseInt(payload.dosetime) : 0,
|
|
24278
24344
|
"dosageDurationUOM": (_payload$doseOption$v = (_payload$doseOption = payload.doseOption) === null || _payload$doseOption === void 0 ? void 0 : _payload$doseOption.value) !== null && _payload$doseOption$v !== void 0 ? _payload$doseOption$v : "",
|
|
24279
|
-
"UseAsFreqDose": payload.UseAsFreqDose ? getUseAsFreqDose
|
|
24280
|
-
"useAsTaperedDose": payload.useAsTaperedDose ? getuseAsTaperedDose
|
|
24345
|
+
// "UseAsFreqDose": payload.UseAsFreqDose ? getUseAsFreqDose(payload.UseAsFreqDose, payload.unitsTypes) : [],
|
|
24346
|
+
// "useAsTaperedDose": payload.useAsTaperedDose ? getuseAsTaperedDose(payload.useAsTaperedDose) : [],
|
|
24281
24347
|
"useAsSlidingScaleDose": payload.useAsSlidingScaleDose ? getuseAsSlidingScaleDose$1(payload.useAsSlidingScaleDose) : [],
|
|
24282
24348
|
"occurStartDateTime": (_payload$occurStartDa = payload.occurStartDateTime) !== null && _payload$occurStartDa !== void 0 ? _payload$occurStartDa : 0,
|
|
24283
24349
|
"occurEndDateTime": (_payload$occurEndDate = payload.occurEndDateTime) !== null && _payload$occurEndDate !== void 0 ? _payload$occurEndDate : 0,
|
|
@@ -24321,63 +24387,6 @@ var generateJSON$6 = function generateJSON(payload, orgId) {
|
|
|
24321
24387
|
})];
|
|
24322
24388
|
};
|
|
24323
24389
|
|
|
24324
|
-
var getUseAsFreqDose$1 = function getUseAsFreqDose(list, fre) {
|
|
24325
|
-
var arr = [];
|
|
24326
|
-
list.map(function (val, i) {
|
|
24327
|
-
if ((fre === null || fre === void 0 ? void 0 : fre.label) === "EVERY THURSDAY AND FRIDAY") {
|
|
24328
|
-
var _val$, _val$2, _val$2$unit$value, _val$3, _val$3$unit, _val$adminFrDay, _val$adminToDay, _val$4, _val$4$value;
|
|
24329
|
-
|
|
24330
|
-
arr.push({
|
|
24331
|
-
// "frqGrpId": val.frqGrpId ?? 0,
|
|
24332
|
-
"dispSeqNo": i + 1,
|
|
24333
|
-
// "adminDate": val.adminDate ?? 0,
|
|
24334
|
-
// "adminTime": "time",
|
|
24335
|
-
"adminDosageQty": (val === null || val === void 0 ? void 0 : (_val$ = val[2]) === null || _val$ === void 0 ? void 0 : _val$.value) ? parseInt(val === null || val === void 0 ? void 0 : (_val$2 = val[2]) === null || _val$2 === void 0 ? void 0 : _val$2.value) : 0,
|
|
24336
|
-
"adminDosageUOM": (_val$2$unit$value = val === null || val === void 0 ? void 0 : (_val$3 = val[2]) === null || _val$3 === void 0 ? void 0 : (_val$3$unit = _val$3.unit) === null || _val$3$unit === void 0 ? void 0 : _val$3$unit.value) !== null && _val$2$unit$value !== void 0 ? _val$2$unit$value : "",
|
|
24337
|
-
"adminFrDay": (_val$adminFrDay = val.adminFrDay) !== null && _val$adminFrDay !== void 0 ? _val$adminFrDay : 0,
|
|
24338
|
-
"adminToDay": (_val$adminToDay = val.adminToDay) !== null && _val$adminToDay !== void 0 ? _val$adminToDay : 0,
|
|
24339
|
-
"adminDosageFreqCode": val === null || val === void 0 ? void 0 : (_val$4 = val[1]) === null || _val$4 === void 0 ? void 0 : (_val$4$value = _val$4.value) === null || _val$4$value === void 0 ? void 0 : _val$4$value.value
|
|
24340
|
-
});
|
|
24341
|
-
}
|
|
24342
|
-
|
|
24343
|
-
if ((fre === null || fre === void 0 ? void 0 : fre.label) === "Twice Daily") {
|
|
24344
|
-
var _val$5, _val$6, _val$7, _val$1$unit$value, _val$8, _val$8$unit;
|
|
24345
|
-
|
|
24346
|
-
arr.push({
|
|
24347
|
-
// "frqGrpId": val.frqGrpId ?? 0,
|
|
24348
|
-
"dispSeqNo": i + 1,
|
|
24349
|
-
// "adminDate": val.adminDate ?? 0,
|
|
24350
|
-
"adminTime": val === null || val === void 0 ? void 0 : (_val$5 = val[0]) === null || _val$5 === void 0 ? void 0 : _val$5.value,
|
|
24351
|
-
"adminDosageQty": (val === null || val === void 0 ? void 0 : (_val$6 = val[1]) === null || _val$6 === void 0 ? void 0 : _val$6.value) ? parseInt(val === null || val === void 0 ? void 0 : (_val$7 = val[1]) === null || _val$7 === void 0 ? void 0 : _val$7.value) : 0,
|
|
24352
|
-
"adminDosageUOM": (_val$1$unit$value = val === null || val === void 0 ? void 0 : (_val$8 = val[1]) === null || _val$8 === void 0 ? void 0 : (_val$8$unit = _val$8.unit) === null || _val$8$unit === void 0 ? void 0 : _val$8$unit.value) !== null && _val$1$unit$value !== void 0 ? _val$1$unit$value : "" // "adminDosageInstruction": val.adminDosageInstruction ?? ""
|
|
24353
|
-
|
|
24354
|
-
});
|
|
24355
|
-
}
|
|
24356
|
-
});
|
|
24357
|
-
return arr;
|
|
24358
|
-
};
|
|
24359
|
-
|
|
24360
|
-
var getuseAsTaperedDose$1 = function getuseAsTaperedDose(list) {
|
|
24361
|
-
var arr = [];
|
|
24362
|
-
list.map(function (val, i) {
|
|
24363
|
-
var _val$9, _val$10, _val$11, _val$12, _val$13, _val$14, _val$15, _val$16, _val$4$value$value, _val$17, _val$17$value, _val$18, _val$19, _val$5$unit$value, _val$20;
|
|
24364
|
-
|
|
24365
|
-
arr.push({
|
|
24366
|
-
// "tdGrpId": val.tdGrpId ?? 0,
|
|
24367
|
-
"dispSeqNo": i + 1,
|
|
24368
|
-
"adminFrDay": (val === null || val === void 0 ? void 0 : (_val$9 = val[0]) === null || _val$9 === void 0 ? void 0 : _val$9.value) ? parseInt(val === null || val === void 0 ? void 0 : (_val$10 = val[0]) === null || _val$10 === void 0 ? void 0 : _val$10.value) : 0,
|
|
24369
|
-
"adminToDay": (val === null || val === void 0 ? void 0 : (_val$11 = val[1]) === null || _val$11 === void 0 ? void 0 : _val$11.value) ? parseInt(val === null || val === void 0 ? void 0 : (_val$12 = val[1]) === null || _val$12 === void 0 ? void 0 : _val$12.value) : 0,
|
|
24370
|
-
"adminFrDate": (val === null || val === void 0 ? void 0 : (_val$13 = val[2]) === null || _val$13 === void 0 ? void 0 : _val$13.value) ? moment$1(val === null || val === void 0 ? void 0 : (_val$14 = val[2]) === null || _val$14 === void 0 ? void 0 : _val$14.value, "DD-MM-YYYY,h:mm a").unix() : 0,
|
|
24371
|
-
"adminToDate": (val === null || val === void 0 ? void 0 : (_val$15 = val[3]) === null || _val$15 === void 0 ? void 0 : _val$15.value) ? moment$1(val === null || val === void 0 ? void 0 : (_val$16 = val[3]) === null || _val$16 === void 0 ? void 0 : _val$16.value, "DD-MM-YYYY,h:mm a").unix() : 0,
|
|
24372
|
-
"adminDosageFreqCode": (_val$4$value$value = val === null || val === void 0 ? void 0 : (_val$17 = val[4]) === null || _val$17 === void 0 ? void 0 : (_val$17$value = _val$17.value) === null || _val$17$value === void 0 ? void 0 : _val$17$value.value) !== null && _val$4$value$value !== void 0 ? _val$4$value$value : "",
|
|
24373
|
-
"adminDosageStrength": (val === null || val === void 0 ? void 0 : (_val$18 = val[5]) === null || _val$18 === void 0 ? void 0 : _val$18.value) ? parseInt(val === null || val === void 0 ? void 0 : (_val$19 = val[5]) === null || _val$19 === void 0 ? void 0 : _val$19.value) : 0,
|
|
24374
|
-
"adminDosageStrengthUOM": (_val$5$unit$value = val === null || val === void 0 ? void 0 : (_val$20 = val[5]) === null || _val$20 === void 0 ? void 0 : _val$20.unit.value) !== null && _val$5$unit$value !== void 0 ? _val$5$unit$value : "" // "adminDosageInstruction": val.adminDosageInstruction ?? ""
|
|
24375
|
-
|
|
24376
|
-
});
|
|
24377
|
-
});
|
|
24378
|
-
return arr;
|
|
24379
|
-
};
|
|
24380
|
-
|
|
24381
24390
|
var getuseAsSlidingScaleDose$1 = function getuseAsSlidingScaleDose(list) {
|
|
24382
24391
|
var arr = [];
|
|
24383
24392
|
list.map(function (val) {
|
|
@@ -25278,7 +25287,6 @@ var SAVE_VITALS = createAsyncThunk("VitalsApiSlice/saveVitals", /*#__PURE__*/_as
|
|
|
25278
25287
|
defaultValue,
|
|
25279
25288
|
months,
|
|
25280
25289
|
orgid,
|
|
25281
|
-
stateValues,
|
|
25282
25290
|
stateDatakey,
|
|
25283
25291
|
orgData,
|
|
25284
25292
|
component,
|
|
@@ -25293,11 +25301,20 @@ var SAVE_VITALS = createAsyncThunk("VitalsApiSlice/saveVitals", /*#__PURE__*/_as
|
|
|
25293
25301
|
payload = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
|
|
25294
25302
|
_ref8 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref8.rejectWithValue;
|
|
25295
25303
|
_context4.prev = 2;
|
|
25296
|
-
defaultValue = payload.defaultValue, months = payload.months, orgid = payload.orgid;
|
|
25297
|
-
|
|
25298
|
-
stateDatakey = [];
|
|
25304
|
+
defaultValue = payload.defaultValue, months = payload.months, orgid = payload.orgid; // let stateValues = Object.keys(payload.dynamicValue);
|
|
25305
|
+
|
|
25306
|
+
stateDatakey = []; // stateValues.filter((val, i) => {
|
|
25307
|
+
// if (i % 2 === 0) {
|
|
25308
|
+
// stateDatakey.push(val);
|
|
25309
|
+
// }
|
|
25310
|
+
// });
|
|
25311
|
+
|
|
25312
|
+
stateDatakey = Object.keys(payload.dynamicValue).filter(function (e) {
|
|
25313
|
+
return /^[A-Z0-9]+$/.exec(e);
|
|
25314
|
+
});
|
|
25299
25315
|
stateValues.filter(function (val, i) {
|
|
25300
|
-
if (i % 2 === 0) {
|
|
25316
|
+
// if (i % 2 === 0) {
|
|
25317
|
+
if (!(val.endsWith("uom") || val.endsWith("error") || val.endsWith("normalorabnormal"))) {
|
|
25301
25318
|
stateDatakey.push(val);
|
|
25302
25319
|
}
|
|
25303
25320
|
});
|
|
@@ -29299,10 +29316,16 @@ var GET_SPECIMENTYPE = createAsyncThunk("LabOrderApiSlice/get_specimentype", /*#
|
|
|
29299
29316
|
_ref30 = _args16.length > 1 ? _args16[1] : undefined, rejectWithValue = _ref30.rejectWithValue;
|
|
29300
29317
|
_context16.prev = 2;
|
|
29301
29318
|
body = {
|
|
29302
|
-
db_name: dbName,
|
|
29303
|
-
entity: "CodeableConceptMaster",
|
|
29304
|
-
filter: "CodeableConceptMaster.Type=='SPECIMENTYPE'",
|
|
29305
|
-
return_fields:
|
|
29319
|
+
// db_name: dbName,
|
|
29320
|
+
// entity: "CodeableConceptMaster",
|
|
29321
|
+
// filter: "CodeableConceptMaster.Type=='SPECIMENTYPE'",
|
|
29322
|
+
// return_fields:
|
|
29323
|
+
// "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})",
|
|
29324
|
+
db_name: "primarycare",
|
|
29325
|
+
entity: "CodingMaster",
|
|
29326
|
+
filter: "CodingMaster.Type == 'SPECIMENTYPE' && CodingMaster.status == true && CodingMaster.activestatus == true",
|
|
29327
|
+
return_fields: "KEEP(CodingMaster,'_id','id','_key','code','display','Type','status','activestatus')",
|
|
29328
|
+
sort: "CodingMaster.display"
|
|
29306
29329
|
};
|
|
29307
29330
|
_context16.next = 6;
|
|
29308
29331
|
return fetchData$3({
|
|
@@ -29315,11 +29338,11 @@ var GET_SPECIMENTYPE = createAsyncThunk("LabOrderApiSlice/get_specimentype", /*#
|
|
|
29315
29338
|
|
|
29316
29339
|
if (Array.isArray(data.result)) {
|
|
29317
29340
|
data.result.map(function (val, i) {
|
|
29318
|
-
var _val$coding$8, _val$coding$9;
|
|
29319
|
-
|
|
29320
29341
|
returnData.push({
|
|
29321
|
-
value: val
|
|
29322
|
-
label: val
|
|
29342
|
+
// value: val?.coding[0]?.display,
|
|
29343
|
+
// label: val?.coding[0]?.display,
|
|
29344
|
+
value: val === null || val === void 0 ? void 0 : val.display,
|
|
29345
|
+
label: val === null || val === void 0 ? void 0 : val._id
|
|
29323
29346
|
});
|
|
29324
29347
|
});
|
|
29325
29348
|
}
|
|
@@ -29359,10 +29382,16 @@ var GET_UOM = createAsyncThunk("LabOrderApiSlice/get_uom", /*#__PURE__*/_asyncTo
|
|
|
29359
29382
|
_ref32 = _args17.length > 1 ? _args17[1] : undefined, rejectWithValue = _ref32.rejectWithValue;
|
|
29360
29383
|
_context17.prev = 2;
|
|
29361
29384
|
body = {
|
|
29362
|
-
db_name: dbName,
|
|
29363
|
-
entity: "CodeableConceptMaster",
|
|
29364
|
-
filter: "CodeableConceptMaster.Type=='SPECIMENTYPE'",
|
|
29365
|
-
return_fields:
|
|
29385
|
+
// db_name: dbName,
|
|
29386
|
+
// entity: "CodeableConceptMaster",
|
|
29387
|
+
// filter: "CodeableConceptMaster.Type=='SPECIMENTYPE'",
|
|
29388
|
+
// return_fields:
|
|
29389
|
+
// "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})",
|
|
29390
|
+
db_name: "primarycare",
|
|
29391
|
+
entity: "CodingMaster",
|
|
29392
|
+
filter: "CodingMaster.Type == 'UOM' && CodingMaster.status == true && CodingMaster.activestatus == true",
|
|
29393
|
+
return_fields: "KEEP(CodingMaster,'_id','id','_key','code','display','Type','status','activestatus')",
|
|
29394
|
+
sort: "CodingMaster.display"
|
|
29366
29395
|
};
|
|
29367
29396
|
_context17.next = 6;
|
|
29368
29397
|
return fetchData$3({
|
|
@@ -29375,11 +29404,11 @@ var GET_UOM = createAsyncThunk("LabOrderApiSlice/get_uom", /*#__PURE__*/_asyncTo
|
|
|
29375
29404
|
|
|
29376
29405
|
if (Array.isArray(data.result)) {
|
|
29377
29406
|
data.result.map(function (val, i) {
|
|
29378
|
-
var _val$coding$10, _val$coding$11;
|
|
29379
|
-
|
|
29380
29407
|
returnData.push({
|
|
29381
|
-
value: val
|
|
29382
|
-
label: val
|
|
29408
|
+
// value: val?.coding[0]?.display,
|
|
29409
|
+
// label: val?.coding[0]?.display,
|
|
29410
|
+
value: val === null || val === void 0 ? void 0 : val.display,
|
|
29411
|
+
label: val === null || val === void 0 ? void 0 : val._id
|
|
29383
29412
|
});
|
|
29384
29413
|
});
|
|
29385
29414
|
}
|
|
@@ -29435,11 +29464,11 @@ var GET_BODYSITE = createAsyncThunk("LabOrderApiSlice/get_bodysite", /*#__PURE__
|
|
|
29435
29464
|
|
|
29436
29465
|
if (Array.isArray(data.result)) {
|
|
29437
29466
|
data.result.map(function (val, i) {
|
|
29438
|
-
var _val$coding$
|
|
29467
|
+
var _val$coding$8, _val$coding$9;
|
|
29439
29468
|
|
|
29440
29469
|
returnData.push({
|
|
29441
|
-
value: val === null || val === void 0 ? void 0 : (_val$coding$
|
|
29442
|
-
label: val === null || val === void 0 ? void 0 : (_val$coding$
|
|
29470
|
+
value: val === null || val === void 0 ? void 0 : (_val$coding$8 = val.coding[0]) === null || _val$coding$8 === void 0 ? void 0 : _val$coding$8.display,
|
|
29471
|
+
label: val === null || val === void 0 ? void 0 : (_val$coding$9 = val.coding[0]) === null || _val$coding$9 === void 0 ? void 0 : _val$coding$9.display
|
|
29443
29472
|
});
|
|
29444
29473
|
});
|
|
29445
29474
|
}
|
|
@@ -29495,11 +29524,11 @@ var GET_SPECCOLLMETHOD = createAsyncThunk("LabOrderApiSlice/get_speccollmethod",
|
|
|
29495
29524
|
|
|
29496
29525
|
if (Array.isArray(data.result)) {
|
|
29497
29526
|
data.result.map(function (val, i) {
|
|
29498
|
-
var _val$coding$
|
|
29527
|
+
var _val$coding$10, _val$coding$11;
|
|
29499
29528
|
|
|
29500
29529
|
returnData.push({
|
|
29501
|
-
value: val === null || val === void 0 ? void 0 : (_val$coding$
|
|
29502
|
-
label: val === null || val === void 0 ? void 0 : (_val$coding$
|
|
29530
|
+
value: val === null || val === void 0 ? void 0 : (_val$coding$10 = val.coding[0]) === null || _val$coding$10 === void 0 ? void 0 : _val$coding$10.display,
|
|
29531
|
+
label: val === null || val === void 0 ? void 0 : (_val$coding$11 = val.coding[0]) === null || _val$coding$11 === void 0 ? void 0 : _val$coding$11.display
|
|
29503
29532
|
});
|
|
29504
29533
|
});
|
|
29505
29534
|
}
|
|
@@ -30138,10 +30167,15 @@ var GET_INDICATION = createAsyncThunk("LabOrderApiSlice/get_indication", /*#__PU
|
|
|
30138
30167
|
_ref56 = _args29.length > 1 ? _args29[1] : undefined, rejectWithValue = _ref56.rejectWithValue;
|
|
30139
30168
|
_context29.prev = 2;
|
|
30140
30169
|
body = {
|
|
30141
|
-
"db_name": dbName,
|
|
30142
|
-
"entity": "CodingMaster",
|
|
30143
|
-
"filter": "CodingMaster.Type=='INDICATIONREASON' && CodingMaster.activestatus==true && CodingMaster.status==true",
|
|
30144
|
-
"return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|
|
30170
|
+
// "db_name": dbName,
|
|
30171
|
+
// "entity": "CodingMaster",
|
|
30172
|
+
// "filter": "CodingMaster.Type=='INDICATIONREASON' && CodingMaster.activestatus==true && CodingMaster.status==true",
|
|
30173
|
+
// "return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|
|
30174
|
+
db_name: "primarycare",
|
|
30175
|
+
entity: "CodingMaster",
|
|
30176
|
+
filter: "CodingMaster.Type == 'INDICATIONREASON' && CodingMaster.status == true && CodingMaster.activestatus == true",
|
|
30177
|
+
return_fields: "KEEP(CodingMaster,'_id','id','_key','code','display','Type','status','activestatus')",
|
|
30178
|
+
sort: "CodingMaster.display"
|
|
30145
30179
|
};
|
|
30146
30180
|
_context29.next = 6;
|
|
30147
30181
|
return fetchData$3({
|
|
@@ -33193,9 +33227,14 @@ var queries$4 = {
|
|
|
33193
33227
|
// Encounter/10046
|
|
33194
33228
|
treatment_indicate: function treatment_indicate() {
|
|
33195
33229
|
return {
|
|
33196
|
-
db_name:
|
|
33197
|
-
entity: "ReasonMaster",
|
|
33198
|
-
return_fields: "ReasonMaster"
|
|
33230
|
+
// db_name: `${dbName}`,
|
|
33231
|
+
// entity: "ReasonMaster",
|
|
33232
|
+
// return_fields: "ReasonMaster",
|
|
33233
|
+
db_name: "primarycare",
|
|
33234
|
+
entity: "CodingMaster",
|
|
33235
|
+
filter: "CodingMaster.Type == 'INDICATIONREASON' && CodingMaster.status == true && CodingMaster.activestatus == true",
|
|
33236
|
+
return_fields: "KEEP(CodingMaster,'_id','id','_key','code','display','Type','status','activestatus')",
|
|
33237
|
+
sort: "CodingMaster.display"
|
|
33199
33238
|
};
|
|
33200
33239
|
},
|
|
33201
33240
|
treatment_instruction: function treatment_instruction() {
|
|
@@ -34396,11 +34435,11 @@ var TREATMENT_INDICATE = createAsyncThunk("TreatmentSlice/getorderindicate", /*#
|
|
|
34396
34435
|
data = _context13.sent;
|
|
34397
34436
|
arr = [];
|
|
34398
34437
|
data.result.map(function (val) {
|
|
34399
|
-
var _val$ReasonDesc, _val$ReasonCode;
|
|
34400
|
-
|
|
34401
34438
|
arr.push({
|
|
34402
|
-
label:
|
|
34403
|
-
value:
|
|
34439
|
+
// label: val?.ReasonDesc ?? "",
|
|
34440
|
+
// value: val?.ReasonCode ?? "",
|
|
34441
|
+
value: val === null || val === void 0 ? void 0 : val._id,
|
|
34442
|
+
label: val === null || val === void 0 ? void 0 : val.display
|
|
34404
34443
|
});
|
|
34405
34444
|
});
|
|
34406
34445
|
return _context13.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -35107,9 +35146,14 @@ var queries$3 = (_queries = {
|
|
|
35107
35146
|
},
|
|
35108
35147
|
treatment_indicate: function treatment_indicate() {
|
|
35109
35148
|
return {
|
|
35110
|
-
db_name:
|
|
35111
|
-
entity: "ReasonMaster",
|
|
35112
|
-
return_fields: "ReasonMaster"
|
|
35149
|
+
// db_name: `${dbName}`,
|
|
35150
|
+
// entity: "ReasonMaster",
|
|
35151
|
+
// return_fields: "ReasonMaster",
|
|
35152
|
+
db_name: "primarycare",
|
|
35153
|
+
entity: "CodingMaster",
|
|
35154
|
+
filter: "CodingMaster.Type == 'INDICATIONREASON' && CodingMaster.status == true && CodingMaster.activestatus == true",
|
|
35155
|
+
return_fields: "KEEP(CodingMaster,'_id','id','_key','code','display','Type','status','activestatus')",
|
|
35156
|
+
sort: "CodingMaster.display"
|
|
35113
35157
|
};
|
|
35114
35158
|
},
|
|
35115
35159
|
treatment_instruction: function treatment_instruction() {
|
|
@@ -36379,11 +36423,11 @@ var RAD_INDICATE = createAsyncThunk("RadiologySlice/getorderindicate", /*#__PURE
|
|
|
36379
36423
|
data = _context14.sent;
|
|
36380
36424
|
arr = [];
|
|
36381
36425
|
data.result.map(function (val) {
|
|
36382
|
-
var _val$ReasonDesc, _val$ReasonDesc2;
|
|
36383
|
-
|
|
36384
36426
|
arr.push({
|
|
36385
|
-
label:
|
|
36386
|
-
value:
|
|
36427
|
+
// label: val?.ReasonDesc ?? "",
|
|
36428
|
+
// value: val?.ReasonDesc ?? "",
|
|
36429
|
+
value: val === null || val === void 0 ? void 0 : val._id,
|
|
36430
|
+
label: val === null || val === void 0 ? void 0 : val.display
|
|
36387
36431
|
});
|
|
36388
36432
|
});
|
|
36389
36433
|
return _context14.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -38788,10 +38832,9 @@ var clinicQuery = {
|
|
|
38788
38832
|
readClinicData: function readClinicData(key) {
|
|
38789
38833
|
return {
|
|
38790
38834
|
db_name: dbName,
|
|
38791
|
-
entity: "LocationMaster
|
|
38792
|
-
filter: "LocationMaster.
|
|
38793
|
-
|
|
38794
|
-
return_fields: "{vertices:v,orginatedata:LocationMaster}"
|
|
38835
|
+
entity: "LocationMaster",
|
|
38836
|
+
filter: "LocationMaster._id == '".concat(key, "' && LocationMaster.activestatus==true"),
|
|
38837
|
+
return_fields: "merge(LocationMaster,{operationalStatus:document(LocationMaster.operationalStatus)},{managingOrgEntityType:(for managingOrgEntityType in document(to_array(LocationMaster.managingOrgEntityType)) return merge(managingOrgEntityType,{coding:document(managingOrgEntityType.coding)}))}, {parentLocationID_desc:document(LocationMaster.parentLocationID_desc)},{address:document(LocationMaster.address)},{locationType:merge(document(LocationMaster.locationType),{coding:document(document(LocationMaster.locationType).coding)})},{managingOrgID:(for managingOrgID in document(to_array(LocationMaster.managingOrgID)) return managingOrgID)},{locationRoletype:document(LocationMaster.locationRoletype)},{specialty:(for code in to_array(LocationMaster.specialty) return document(code))},{photo:document(LocationMaster.photo)}, {pharmacy:(for ph in to_array(LocationMaster.pharmacy) return merge(ph,{inventorySubStore:document(ph.inventorySubStore)}))}, {telecom:(for tel in document(LocationMaster.telecom) return merge(tel,{use:document(tel.use)},{rank:document(tel.rank)},{system:document(tel.system)}))})"
|
|
38795
38838
|
};
|
|
38796
38839
|
}
|
|
38797
38840
|
};
|
|
@@ -39494,7 +39537,8 @@ var query$4 = {
|
|
|
39494
39537
|
Practitioner: "Practitioner.activestatus==true && DOCUMENT(DOCUMENT(DOCUMENT(Practitioner.practitioner_role[*])[*].role)[0].coding)[*].code ANY =='PR023' && Practitioner.id==".concat(data === null || data === void 0 ? void 0 : data.practionerID, " && DOCUMENT(Practitioner.practitioner_role[*])[*].OrgID ANY =='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'"),
|
|
39495
39538
|
Appointment: "Appointment.activestatus==true && Appointment.orgid=='".concat(data === null || data === void 0 ? void 0 : data.orgID, "' && Appointment.start>=").concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && lower(Appointment.appointmentType)!='cancelled' && document(DOCUMENT(Practitioner.practitioner_role[*])[*].SpecialtyID)[*].id ANY IN Appointment.SpecialtyID")
|
|
39496
39539
|
},
|
|
39497
|
-
"return_fields": "{Appointment:merge(Appointment,{orgid:document(Appointment.orgid)},{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)},{telecom:document(per.telecom)},{MRN:(for pat in Patient filter pat.personID==per.Id return pat.alias)},{age:(for pat in Patient filter pat.personID==per.Id return pat.age)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))})}"
|
|
39540
|
+
// "return_fields": "{Appointment:merge(Appointment,{orgid:document(Appointment.orgid)},{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)},{telecom:document(per.telecom)},{MRN:(for pat in Patient filter pat.personID==per.Id return pat.alias)},{age:(for pat in Patient filter pat.personID==per.Id return pat.age)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))})}"
|
|
39541
|
+
return_fields: "merge({Appointment:merge(Appointment,{orgid:document(Appointment.orgid)},{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)},{telecom:document(per.telecom)},{MRN:(for pat in Patient filter pat.personID==per.Id return pat.alias)},{age:(for pat in Patient filter pat.personID==per.Id return pat.age)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))})},{Encounter:(for Encounter in Encounter filter Encounter.appointmentId any == Appointment.id return merge({visit_type:Encounter.visit_type},{encounter_no:Encounter.encounter_no}))})"
|
|
39498
39542
|
};
|
|
39499
39543
|
},
|
|
39500
39544
|
getFirstVisitsNurse: function getFirstVisitsNurse(data) {
|
|
@@ -39566,7 +39610,8 @@ var query$4 = {
|
|
|
39566
39610
|
// "Appointment.id in Encounter.appointmentId && lower(first(document(Encounter.statushistory[*].status)[*].display))=='checked-in'",
|
|
39567
39611
|
|
|
39568
39612
|
},
|
|
39569
|
-
"return_fields": "{Appointment:merge(Appointment,{orgid:document(Appointment.orgid)},{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)},{telecom:document(per.telecom)},{MRN:(for pat in Patient filter pat.personID==per.Id return pat.alias)},{age:(for pat in Patient filter pat.personID==per.Id return pat.age)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))})}"
|
|
39613
|
+
// "return_fields": "{Appointment:merge(Appointment,{orgid:document(Appointment.orgid)},{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)},{telecom:document(per.telecom)},{MRN:(for pat in Patient filter pat.personID==per.Id return pat.alias)},{age:(for pat in Patient filter pat.personID==per.Id return pat.age)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))})}"
|
|
39614
|
+
return_fields: "merge({Appointment:merge(Appointment,{orgid:document(Appointment.orgid)},{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)},{telecom:document(per.telecom)},{MRN:(for pat in Patient filter pat.personID==per.Id return pat.alias)},{age:(for pat in Patient filter pat.personID==per.Id return pat.age)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))})},{Encounter:(for Encounter in Encounter filter Encounter.appointmentId any == Appointment.id return merge({visit_type:Encounter.visit_type},{encounter_no:Encounter.encounter_no}))})"
|
|
39570
39615
|
};
|
|
39571
39616
|
},
|
|
39572
39617
|
getFirstVisitsDoctor: function getFirstVisitsDoctor(data) {
|
|
@@ -40255,7 +40300,7 @@ var GET_APPOINTMENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getAppoi
|
|
|
40255
40300
|
case 5:
|
|
40256
40301
|
data = _context7.sent;
|
|
40257
40302
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result7 = data.result) === null || _data$result7 === void 0 ? void 0 : _data$result7.map(function (_) {
|
|
40258
|
-
var _$Appointment48, _$Appointment48$Perso, _$Appointment48$Perso2, _$Appointment48$Perso3, _$Appointment49, _$Appointment49$Perso, _$Appointment49$Perso2, _$
|
|
40303
|
+
var _$Appointment48, _$Appointment48$Perso, _$Appointment48$Perso2, _$Appointment48$Perso3, _$Appointment49, _$Appointment49$Perso, _$Appointment49$Perso2, _$Appointment49$Perso3, _$Appointment50, _$Appointment50$Perso, _$Appointment50$Perso2, _$Appointment51, _$Appointment51$Perso, _$Appointment51$Perso2, _$Appointment51$Perso3, _$Appointment51$Perso4, _$Appointment52, _$Appointment52$Perso, _$Appointment52$Perso2, _$Appointment52$Perso3, _$Appointment52$Perso4, _$Appointment53, _$Appointment54, _$Appointment55, _$Appointment56, _$Appointment57, _$Encounter$0$visit_t, _$Encounter36, _$Encounter36$, _$Appointment58, _$Appointment58$resou, _$Appointment59, _$Appointment59$Speci, _$Appointment59$Speci2, _$Appointment59$Speci3, _$Appointment59$Speci4, _$Appointment60, _$Appointment60$orgid, _$Appointment61;
|
|
40259
40304
|
|
|
40260
40305
|
return {
|
|
40261
40306
|
// img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -40264,15 +40309,14 @@ var GET_APPOINTMENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getAppoi
|
|
|
40264
40309
|
// )
|
|
40265
40310
|
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
40266
40311
|
name: makeName((_ === null || _ === void 0 ? void 0 : (_$Appointment48 = _.Appointment) === null || _$Appointment48 === void 0 ? void 0 : (_$Appointment48$Perso = _$Appointment48.PersonID) === null || _$Appointment48$Perso === void 0 ? void 0 : (_$Appointment48$Perso2 = _$Appointment48$Perso[0]) === null || _$Appointment48$Perso2 === void 0 ? void 0 : (_$Appointment48$Perso3 = _$Appointment48$Perso2.name) === null || _$Appointment48$Perso3 === void 0 ? void 0 : _$Appointment48$Perso3[0]) || {}),
|
|
40267
|
-
|
|
40268
|
-
|
|
40312
|
+
mrn: (_$Appointment49 = _.Appointment) === null || _$Appointment49 === void 0 ? void 0 : (_$Appointment49$Perso = _$Appointment49.PersonID) === null || _$Appointment49$Perso === void 0 ? void 0 : (_$Appointment49$Perso2 = _$Appointment49$Perso[0]) === null || _$Appointment49$Perso2 === void 0 ? void 0 : (_$Appointment49$Perso3 = _$Appointment49$Perso2.MRN) === null || _$Appointment49$Perso3 === void 0 ? void 0 : _$Appointment49$Perso3[0],
|
|
40313
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment50 = _.Appointment) === null || _$Appointment50 === void 0 ? void 0 : (_$Appointment50$Perso = _$Appointment50.PersonID) === null || _$Appointment50$Perso === void 0 ? void 0 : (_$Appointment50$Perso2 = _$Appointment50$Perso[0]) === null || _$Appointment50$Perso2 === void 0 ? void 0 : _$Appointment50$Perso2.birthDay),
|
|
40269
40314
|
// genderData: "M",
|
|
40270
40315
|
contact: ((_$Appointment51 = _.Appointment) === null || _$Appointment51 === void 0 ? void 0 : (_$Appointment51$Perso = _$Appointment51.PersonID) === null || _$Appointment51$Perso === void 0 ? void 0 : (_$Appointment51$Perso2 = _$Appointment51$Perso[0]) === null || _$Appointment51$Perso2 === void 0 ? void 0 : (_$Appointment51$Perso3 = _$Appointment51$Perso2.telecom) === null || _$Appointment51$Perso3 === void 0 ? void 0 : (_$Appointment51$Perso4 = _$Appointment51$Perso3[0]) === null || _$Appointment51$Perso4 === void 0 ? void 0 : _$Appointment51$Perso4.value) ? JSON.stringify((_$Appointment52 = _.Appointment) === null || _$Appointment52 === void 0 ? void 0 : (_$Appointment52$Perso = _$Appointment52.PersonID) === null || _$Appointment52$Perso === void 0 ? void 0 : (_$Appointment52$Perso2 = _$Appointment52$Perso[0]) === null || _$Appointment52$Perso2 === void 0 ? void 0 : (_$Appointment52$Perso3 = _$Appointment52$Perso2.telecom) === null || _$Appointment52$Perso3 === void 0 ? void 0 : (_$Appointment52$Perso4 = _$Appointment52$Perso3[0]) === null || _$Appointment52$Perso4 === void 0 ? void 0 : _$Appointment52$Perso4.value) : "",
|
|
40271
40316
|
// mrn: _?.patient_id?.[0]?.alias || "",
|
|
40272
40317
|
// age: _?.patient_id?.[0]?.age,
|
|
40273
|
-
|
|
40318
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$Appointment53 = _.Appointment) === null || _$Appointment53 === void 0 ? void 0 : _$Appointment53.appno) || "",
|
|
40274
40319
|
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$Appointment54 = _.Appointment) === null || _$Appointment54 === void 0 ? void 0 : _$Appointment54.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment55 = _.Appointment) === null || _$Appointment55 === void 0 ? void 0 : _$Appointment55.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$Appointment56 = _.Appointment) === null || _$Appointment56 === void 0 ? void 0 : _$Appointment56.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment57 = _.Appointment) === null || _$Appointment57 === void 0 ? void 0 : _$Appointment57.start, "hh:mm A") : ""),
|
|
40275
|
-
refNo: (_ === null || _ === void 0 ? void 0 : (_$Appointment58 = _.Appointment) === null || _$Appointment58 === void 0 ? void 0 : _$Appointment58.appno) || "",
|
|
40276
40320
|
// speciality: JSON.stringify({
|
|
40277
40321
|
// speciality: _?.Appointment?.SpecialtyID?.map((spl) => {
|
|
40278
40322
|
// return spl?.coding?.[0]?.display;
|
|
@@ -40280,7 +40324,11 @@ var GET_APPOINTMENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getAppoi
|
|
|
40280
40324
|
// clinic: _?.Appointment?.orgid?.name ?? ""
|
|
40281
40325
|
// }),
|
|
40282
40326
|
// clinic: _?.practitioner_details?.[0]?.clinic || "",
|
|
40283
|
-
|
|
40327
|
+
visitType: (_$Encounter$0$visit_t = _ === null || _ === void 0 ? void 0 : (_$Encounter36 = _.Encounter) === null || _$Encounter36 === void 0 ? void 0 : (_$Encounter36$ = _$Encounter36[0]) === null || _$Encounter36$ === void 0 ? void 0 : _$Encounter36$.visit_type) !== null && _$Encounter$0$visit_t !== void 0 ? _$Encounter$0$visit_t : "",
|
|
40328
|
+
practitionerName: makeName(_ === null || _ === void 0 ? void 0 : (_$Appointment58 = _.Appointment) === null || _$Appointment58 === void 0 ? void 0 : (_$Appointment58$resou = _$Appointment58.resourcecode) === null || _$Appointment58$resou === void 0 ? void 0 : _$Appointment58$resou.name),
|
|
40329
|
+
speciality: (_ === null || _ === void 0 ? void 0 : (_$Appointment59 = _.Appointment) === null || _$Appointment59 === void 0 ? void 0 : (_$Appointment59$Speci = _$Appointment59.SpecialtyID) === null || _$Appointment59$Speci === void 0 ? void 0 : (_$Appointment59$Speci2 = _$Appointment59$Speci[0]) === null || _$Appointment59$Speci2 === void 0 ? void 0 : (_$Appointment59$Speci3 = _$Appointment59$Speci2.coding) === null || _$Appointment59$Speci3 === void 0 ? void 0 : (_$Appointment59$Speci4 = _$Appointment59$Speci3[0]) === null || _$Appointment59$Speci4 === void 0 ? void 0 : _$Appointment59$Speci4.display) || "",
|
|
40330
|
+
clinic: (_ === null || _ === void 0 ? void 0 : (_$Appointment60 = _.Appointment) === null || _$Appointment60 === void 0 ? void 0 : (_$Appointment60$orgid = _$Appointment60.orgid) === null || _$Appointment60$orgid === void 0 ? void 0 : _$Appointment60$orgid.name) || "",
|
|
40331
|
+
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$Appointment61 = _.Appointment) === null || _$Appointment61 === void 0 ? void 0 : _$Appointment61.appstatus) || "",
|
|
40284
40332
|
// "View Patient": true,
|
|
40285
40333
|
// Attend: true,
|
|
40286
40334
|
// action: true,
|
|
@@ -40337,7 +40385,7 @@ var GET_FIRST_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getFirst
|
|
|
40337
40385
|
case 5:
|
|
40338
40386
|
data = _context8.sent;
|
|
40339
40387
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result8 = data.result) === null || _data$result8 === void 0 ? void 0 : _data$result8.map(function (_) {
|
|
40340
|
-
var _$patient_id, _$patient_id$, _$patient_id$$name, _$patient_id2, _$patient_id2$, _$appointmentId, _$appointmentId$, _$appointmentId$$Pers, _$appointmentId$$Pers2, _$
|
|
40388
|
+
var _$patient_id, _$patient_id$, _$patient_id$$name, _$patient_id2, _$patient_id2$, _$appointmentId, _$appointmentId$, _$appointmentId$$Pers, _$appointmentId$$Pers2, _$patient_id$0$teleco, _$patient_id3, _$patient_id3$, _$patient_id3$$teleco, _$patient_id3$$teleco2, _$appointmentId2, _$appointmentId2$, _$appointmentId3, _$appointmentId3$, _$appointmentId4, _$appointmentId4$, _$appointmentId5, _$appointmentId5$, _$appointmentId6, _$appointmentId6$, _$visit_type, _$practitioner_detail, _$practitioner_detail2, _$practitioner_detail3, _$appointmentId7, _$appointmentId7$, _$appointmentId7$$Spe, _$appointmentId7$$Spe2, _$appointmentId7$$Spe3, _$appointmentId7$$Spe4, _$practitioner_detail4, _$practitioner_detail5, _$status;
|
|
40341
40389
|
|
|
40342
40390
|
return {
|
|
40343
40391
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -40374,9 +40422,13 @@ var GET_FIRST_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getFirst
|
|
|
40374
40422
|
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id = _.patient_id) === null || _$patient_id === void 0 ? void 0 : (_$patient_id$ = _$patient_id[0]) === null || _$patient_id$ === void 0 ? void 0 : (_$patient_id$$name = _$patient_id$.name) === null || _$patient_id$$name === void 0 ? void 0 : _$patient_id$$name[0]) || {}),
|
|
40375
40423
|
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id2 = _.patient_id) === null || _$patient_id2 === void 0 ? void 0 : (_$patient_id2$ = _$patient_id2[0]) === null || _$patient_id2$ === void 0 ? void 0 : _$patient_id2$.alias) || "",
|
|
40376
40424
|
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId = _.appointmentId) === null || _$appointmentId === void 0 ? void 0 : (_$appointmentId$ = _$appointmentId[0]) === null || _$appointmentId$ === void 0 ? void 0 : (_$appointmentId$$Pers = _$appointmentId$.PersonID) === null || _$appointmentId$$Pers === void 0 ? void 0 : (_$appointmentId$$Pers2 = _$appointmentId$$Pers[0]) === null || _$appointmentId$$Pers2 === void 0 ? void 0 : _$appointmentId$$Pers2.birthDay),
|
|
40425
|
+
contact: (_$patient_id$0$teleco = _ === null || _ === void 0 ? void 0 : (_$patient_id3 = _.patient_id) === null || _$patient_id3 === void 0 ? void 0 : (_$patient_id3$ = _$patient_id3[0]) === null || _$patient_id3$ === void 0 ? void 0 : (_$patient_id3$$teleco = _$patient_id3$.telecom) === null || _$patient_id3$$teleco === void 0 ? void 0 : (_$patient_id3$$teleco2 = _$patient_id3$$teleco[0]) === null || _$patient_id3$$teleco2 === void 0 ? void 0 : _$patient_id3$$teleco2.value) !== null && _$patient_id$0$teleco !== void 0 ? _$patient_id$0$teleco : "",
|
|
40426
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId2 = _.appointmentId) === null || _$appointmentId2 === void 0 ? void 0 : (_$appointmentId2$ = _$appointmentId2[0]) === null || _$appointmentId2$ === void 0 ? void 0 : _$appointmentId2$.appno) || "",
|
|
40427
|
+
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId3 = _.appointmentId) === null || _$appointmentId3 === void 0 ? void 0 : (_$appointmentId3$ = _$appointmentId3[0]) === null || _$appointmentId3$ === void 0 ? void 0 : _$appointmentId3$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId4 = _.appointmentId) === null || _$appointmentId4 === void 0 ? void 0 : (_$appointmentId4$ = _$appointmentId4[0]) === null || _$appointmentId4$ === void 0 ? void 0 : _$appointmentId4$.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId5 = _.appointmentId) === null || _$appointmentId5 === void 0 ? void 0 : (_$appointmentId5$ = _$appointmentId5[0]) === null || _$appointmentId5$ === void 0 ? void 0 : _$appointmentId5$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId6 = _.appointmentId) === null || _$appointmentId6 === void 0 ? void 0 : (_$appointmentId6$ = _$appointmentId6[0]) === null || _$appointmentId6$ === void 0 ? void 0 : _$appointmentId6$.start, "hh:mm A") : ""),
|
|
40377
40428
|
visitType: (_$visit_type = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type !== void 0 ? _$visit_type : "",
|
|
40378
|
-
|
|
40379
|
-
|
|
40429
|
+
practitionerName: (_$practitioner_detail = _ === null || _ === void 0 ? void 0 : (_$practitioner_detail2 = _.practitioner_details) === null || _$practitioner_detail2 === void 0 ? void 0 : (_$practitioner_detail3 = _$practitioner_detail2[0]) === null || _$practitioner_detail3 === void 0 ? void 0 : _$practitioner_detail3.id_name) !== null && _$practitioner_detail !== void 0 ? _$practitioner_detail : "",
|
|
40430
|
+
speciality: (_ === null || _ === void 0 ? void 0 : (_$appointmentId7 = _.appointmentId) === null || _$appointmentId7 === void 0 ? void 0 : (_$appointmentId7$ = _$appointmentId7[0]) === null || _$appointmentId7$ === void 0 ? void 0 : (_$appointmentId7$$Spe = _$appointmentId7$.SpecialtyID) === null || _$appointmentId7$$Spe === void 0 ? void 0 : (_$appointmentId7$$Spe2 = _$appointmentId7$$Spe[0]) === null || _$appointmentId7$$Spe2 === void 0 ? void 0 : (_$appointmentId7$$Spe3 = _$appointmentId7$$Spe2.coding) === null || _$appointmentId7$$Spe3 === void 0 ? void 0 : (_$appointmentId7$$Spe4 = _$appointmentId7$$Spe3[0]) === null || _$appointmentId7$$Spe4 === void 0 ? void 0 : _$appointmentId7$$Spe4.display) || "",
|
|
40431
|
+
clinic: (_ === null || _ === void 0 ? void 0 : (_$practitioner_detail4 = _.practitioner_details) === null || _$practitioner_detail4 === void 0 ? void 0 : (_$practitioner_detail5 = _$practitioner_detail4[0]) === null || _$practitioner_detail5 === void 0 ? void 0 : _$practitioner_detail5.clinic) || "",
|
|
40380
40432
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status = _.status) === null || _$status === void 0 ? void 0 : _$status.display) || "",
|
|
40381
40433
|
action: true // genderData: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
40382
40434
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? "",
|
|
@@ -40439,7 +40491,7 @@ var GET_NEW_PATIENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getNewPa
|
|
|
40439
40491
|
case 5:
|
|
40440
40492
|
data = _context9.sent;
|
|
40441
40493
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result9 = data.result) === null || _data$result9 === void 0 ? void 0 : _data$result9.map(function (_) {
|
|
40442
|
-
var _$
|
|
40494
|
+
var _$patient_id4, _$patient_id4$, _$patient_id4$$name, _$patient_id5, _$patient_id5$, _$appointmentId8, _$appointmentId8$, _$appointmentId8$$Per, _$appointmentId8$$Per2, _$patient_id$0$teleco2, _$patient_id6, _$patient_id6$, _$patient_id6$$teleco, _$patient_id6$$teleco2, _$appointmentId9, _$appointmentId9$, _$appointmentId10, _$appointmentId10$, _$appointmentId11, _$appointmentId11$, _$appointmentId12, _$appointmentId12$, _$appointmentId13, _$appointmentId13$, _$visit_type2, _$practitioner_detail6, _$practitioner_detail7, _$practitioner_detail8, _$appointmentId14, _$appointmentId14$, _$appointmentId14$$Sp, _$appointmentId14$$Sp2, _$appointmentId14$$Sp3, _$appointmentId14$$Sp4, _$practitioner_detail9, _$practitioner_detail10, _$status2;
|
|
40443
40495
|
|
|
40444
40496
|
return {
|
|
40445
40497
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -40478,12 +40530,13 @@ var GET_NEW_PATIENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getNewPa
|
|
|
40478
40530
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
40479
40531
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
40480
40532
|
// }),
|
|
40481
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
40482
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
40483
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
40533
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id4 = _.patient_id) === null || _$patient_id4 === void 0 ? void 0 : (_$patient_id4$ = _$patient_id4[0]) === null || _$patient_id4$ === void 0 ? void 0 : (_$patient_id4$$name = _$patient_id4$.name) === null || _$patient_id4$$name === void 0 ? void 0 : _$patient_id4$$name[0]) || {}),
|
|
40534
|
+
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id5 = _.patient_id) === null || _$patient_id5 === void 0 ? void 0 : (_$patient_id5$ = _$patient_id5[0]) === null || _$patient_id5$ === void 0 ? void 0 : _$patient_id5$.alias) || "",
|
|
40535
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId8 = _.appointmentId) === null || _$appointmentId8 === void 0 ? void 0 : (_$appointmentId8$ = _$appointmentId8[0]) === null || _$appointmentId8$ === void 0 ? void 0 : (_$appointmentId8$$Per = _$appointmentId8$.PersonID) === null || _$appointmentId8$$Per === void 0 ? void 0 : (_$appointmentId8$$Per2 = _$appointmentId8$$Per[0]) === null || _$appointmentId8$$Per2 === void 0 ? void 0 : _$appointmentId8$$Per2.birthDay),
|
|
40536
|
+
contact: (_$patient_id$0$teleco2 = _ === null || _ === void 0 ? void 0 : (_$patient_id6 = _.patient_id) === null || _$patient_id6 === void 0 ? void 0 : (_$patient_id6$ = _$patient_id6[0]) === null || _$patient_id6$ === void 0 ? void 0 : (_$patient_id6$$teleco = _$patient_id6$.telecom) === null || _$patient_id6$$teleco === void 0 ? void 0 : (_$patient_id6$$teleco2 = _$patient_id6$$teleco[0]) === null || _$patient_id6$$teleco2 === void 0 ? void 0 : _$patient_id6$$teleco2.value) !== null && _$patient_id$0$teleco2 !== void 0 ? _$patient_id$0$teleco2 : "",
|
|
40537
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId9 = _.appointmentId) === null || _$appointmentId9 === void 0 ? void 0 : (_$appointmentId9$ = _$appointmentId9[0]) === null || _$appointmentId9$ === void 0 ? void 0 : _$appointmentId9$.appno) || "",
|
|
40538
|
+
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId10 = _.appointmentId) === null || _$appointmentId10 === void 0 ? void 0 : (_$appointmentId10$ = _$appointmentId10[0]) === null || _$appointmentId10$ === void 0 ? void 0 : _$appointmentId10$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId11 = _.appointmentId) === null || _$appointmentId11 === void 0 ? void 0 : (_$appointmentId11$ = _$appointmentId11[0]) === null || _$appointmentId11$ === void 0 ? void 0 : _$appointmentId11$.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId12 = _.appointmentId) === null || _$appointmentId12 === void 0 ? void 0 : (_$appointmentId12$ = _$appointmentId12[0]) === null || _$appointmentId12$ === void 0 ? void 0 : _$appointmentId12$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId13 = _.appointmentId) === null || _$appointmentId13 === void 0 ? void 0 : (_$appointmentId13$ = _$appointmentId13[0]) === null || _$appointmentId13$ === void 0 ? void 0 : _$appointmentId13$.start, "hh:mm A") : ""),
|
|
40484
40539
|
visitType: (_$visit_type2 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type2 !== void 0 ? _$visit_type2 : "",
|
|
40485
|
-
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId8 = _.appointmentId) === null || _$appointmentId8 === void 0 ? void 0 : (_$appointmentId8$ = _$appointmentId8[0]) === null || _$appointmentId8$ === void 0 ? void 0 : _$appointmentId8$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId9 = _.appointmentId) === null || _$appointmentId9 === void 0 ? void 0 : (_$appointmentId9$ = _$appointmentId9[0]) === null || _$appointmentId9$ === void 0 ? void 0 : _$appointmentId9$.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId10 = _.appointmentId) === null || _$appointmentId10 === void 0 ? void 0 : (_$appointmentId10$ = _$appointmentId10[0]) === null || _$appointmentId10$ === void 0 ? void 0 : _$appointmentId10$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId11 = _.appointmentId) === null || _$appointmentId11 === void 0 ? void 0 : (_$appointmentId11$ = _$appointmentId11[0]) === null || _$appointmentId11$ === void 0 ? void 0 : _$appointmentId11$.start, "hh:mm A") : ""),
|
|
40486
|
-
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId12 = _.appointmentId) === null || _$appointmentId12 === void 0 ? void 0 : (_$appointmentId12$ = _$appointmentId12[0]) === null || _$appointmentId12$ === void 0 ? void 0 : _$appointmentId12$.appno) || "",
|
|
40487
40540
|
// date: JSON.stringify({
|
|
40488
40541
|
// date: _?.appointmentId?.[0]?.start
|
|
40489
40542
|
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
@@ -40498,6 +40551,9 @@ var GET_NEW_PATIENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getNewPa
|
|
|
40498
40551
|
// }).join(", "),
|
|
40499
40552
|
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
40500
40553
|
// }),
|
|
40554
|
+
practitionerName: (_$practitioner_detail6 = _ === null || _ === void 0 ? void 0 : (_$practitioner_detail7 = _.practitioner_details) === null || _$practitioner_detail7 === void 0 ? void 0 : (_$practitioner_detail8 = _$practitioner_detail7[0]) === null || _$practitioner_detail8 === void 0 ? void 0 : _$practitioner_detail8.id_name) !== null && _$practitioner_detail6 !== void 0 ? _$practitioner_detail6 : "",
|
|
40555
|
+
speciality: (_ === null || _ === void 0 ? void 0 : (_$appointmentId14 = _.appointmentId) === null || _$appointmentId14 === void 0 ? void 0 : (_$appointmentId14$ = _$appointmentId14[0]) === null || _$appointmentId14$ === void 0 ? void 0 : (_$appointmentId14$$Sp = _$appointmentId14$.SpecialtyID) === null || _$appointmentId14$$Sp === void 0 ? void 0 : (_$appointmentId14$$Sp2 = _$appointmentId14$$Sp[0]) === null || _$appointmentId14$$Sp2 === void 0 ? void 0 : (_$appointmentId14$$Sp3 = _$appointmentId14$$Sp2.coding) === null || _$appointmentId14$$Sp3 === void 0 ? void 0 : (_$appointmentId14$$Sp4 = _$appointmentId14$$Sp3[0]) === null || _$appointmentId14$$Sp4 === void 0 ? void 0 : _$appointmentId14$$Sp4.display) || "",
|
|
40556
|
+
clinic: (_ === null || _ === void 0 ? void 0 : (_$practitioner_detail9 = _.practitioner_details) === null || _$practitioner_detail9 === void 0 ? void 0 : (_$practitioner_detail10 = _$practitioner_detail9[0]) === null || _$practitioner_detail10 === void 0 ? void 0 : _$practitioner_detail10.clinic) || "",
|
|
40501
40557
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status2 = _.status) === null || _$status2 === void 0 ? void 0 : _$status2.display) || "",
|
|
40502
40558
|
action: true
|
|
40503
40559
|
};
|
|
@@ -40544,7 +40600,7 @@ var GET_OTHER_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getOther
|
|
|
40544
40600
|
case 5:
|
|
40545
40601
|
data = _context10.sent;
|
|
40546
40602
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result10 = data.result) === null || _data$result10 === void 0 ? void 0 : _data$result10.map(function (_) {
|
|
40547
|
-
var _$
|
|
40603
|
+
var _$patient_id7, _$patient_id7$, _$patient_id7$$name, _$patient_id8, _$patient_id8$, _$appointmentId15, _$appointmentId15$, _$appointmentId15$$Pe, _$appointmentId15$$Pe2, _$patient_id$0$teleco3, _$patient_id9, _$patient_id9$, _$patient_id9$$teleco, _$patient_id9$$teleco2, _$appointmentId16, _$appointmentId16$, _$appointmentId17, _$appointmentId17$, _$appointmentId18, _$appointmentId18$, _$appointmentId19, _$appointmentId19$, _$appointmentId20, _$appointmentId20$, _$visit_type3, _$practitioner_detail11, _$practitioner_detail12, _$practitioner_detail13, _$appointmentId21, _$appointmentId21$, _$appointmentId21$$Sp, _$appointmentId21$$Sp2, _$appointmentId21$$Sp3, _$appointmentId21$$Sp4, _$practitioner_detail14, _$practitioner_detail15, _$status3;
|
|
40548
40604
|
|
|
40549
40605
|
return {
|
|
40550
40606
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -40585,12 +40641,13 @@ var GET_OTHER_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getOther
|
|
|
40585
40641
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
40586
40642
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
40587
40643
|
// }),
|
|
40588
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
40589
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
40590
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
40644
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id7 = _.patient_id) === null || _$patient_id7 === void 0 ? void 0 : (_$patient_id7$ = _$patient_id7[0]) === null || _$patient_id7$ === void 0 ? void 0 : (_$patient_id7$$name = _$patient_id7$.name) === null || _$patient_id7$$name === void 0 ? void 0 : _$patient_id7$$name[0]) || {}),
|
|
40645
|
+
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id8 = _.patient_id) === null || _$patient_id8 === void 0 ? void 0 : (_$patient_id8$ = _$patient_id8[0]) === null || _$patient_id8$ === void 0 ? void 0 : _$patient_id8$.alias) || "",
|
|
40646
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId15 = _.appointmentId) === null || _$appointmentId15 === void 0 ? void 0 : (_$appointmentId15$ = _$appointmentId15[0]) === null || _$appointmentId15$ === void 0 ? void 0 : (_$appointmentId15$$Pe = _$appointmentId15$.PersonID) === null || _$appointmentId15$$Pe === void 0 ? void 0 : (_$appointmentId15$$Pe2 = _$appointmentId15$$Pe[0]) === null || _$appointmentId15$$Pe2 === void 0 ? void 0 : _$appointmentId15$$Pe2.birthDay),
|
|
40647
|
+
contact: (_$patient_id$0$teleco3 = _ === null || _ === void 0 ? void 0 : (_$patient_id9 = _.patient_id) === null || _$patient_id9 === void 0 ? void 0 : (_$patient_id9$ = _$patient_id9[0]) === null || _$patient_id9$ === void 0 ? void 0 : (_$patient_id9$$teleco = _$patient_id9$.telecom) === null || _$patient_id9$$teleco === void 0 ? void 0 : (_$patient_id9$$teleco2 = _$patient_id9$$teleco[0]) === null || _$patient_id9$$teleco2 === void 0 ? void 0 : _$patient_id9$$teleco2.value) !== null && _$patient_id$0$teleco3 !== void 0 ? _$patient_id$0$teleco3 : "",
|
|
40648
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId16 = _.appointmentId) === null || _$appointmentId16 === void 0 ? void 0 : (_$appointmentId16$ = _$appointmentId16[0]) === null || _$appointmentId16$ === void 0 ? void 0 : _$appointmentId16$.appno) || "",
|
|
40649
|
+
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId17 = _.appointmentId) === null || _$appointmentId17 === void 0 ? void 0 : (_$appointmentId17$ = _$appointmentId17[0]) === null || _$appointmentId17$ === void 0 ? void 0 : _$appointmentId17$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId18 = _.appointmentId) === null || _$appointmentId18 === void 0 ? void 0 : (_$appointmentId18$ = _$appointmentId18[0]) === null || _$appointmentId18$ === void 0 ? void 0 : _$appointmentId18$.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId19 = _.appointmentId) === null || _$appointmentId19 === void 0 ? void 0 : (_$appointmentId19$ = _$appointmentId19[0]) === null || _$appointmentId19$ === void 0 ? void 0 : _$appointmentId19$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId20 = _.appointmentId) === null || _$appointmentId20 === void 0 ? void 0 : (_$appointmentId20$ = _$appointmentId20[0]) === null || _$appointmentId20$ === void 0 ? void 0 : _$appointmentId20$.start, "hh:mm A") : ""),
|
|
40591
40650
|
visitType: (_$visit_type3 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type3 !== void 0 ? _$visit_type3 : "",
|
|
40592
|
-
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId14 = _.appointmentId) === null || _$appointmentId14 === void 0 ? void 0 : (_$appointmentId14$ = _$appointmentId14[0]) === null || _$appointmentId14$ === void 0 ? void 0 : _$appointmentId14$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId15 = _.appointmentId) === null || _$appointmentId15 === void 0 ? void 0 : (_$appointmentId15$ = _$appointmentId15[0]) === null || _$appointmentId15$ === void 0 ? void 0 : _$appointmentId15$.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId16 = _.appointmentId) === null || _$appointmentId16 === void 0 ? void 0 : (_$appointmentId16$ = _$appointmentId16[0]) === null || _$appointmentId16$ === void 0 ? void 0 : _$appointmentId16$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId17 = _.appointmentId) === null || _$appointmentId17 === void 0 ? void 0 : (_$appointmentId17$ = _$appointmentId17[0]) === null || _$appointmentId17$ === void 0 ? void 0 : _$appointmentId17$.start, "hh:mm A") : ""),
|
|
40593
|
-
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId18 = _.appointmentId) === null || _$appointmentId18 === void 0 ? void 0 : (_$appointmentId18$ = _$appointmentId18[0]) === null || _$appointmentId18$ === void 0 ? void 0 : _$appointmentId18$.appno) || "",
|
|
40594
40651
|
// date: JSON.stringify({
|
|
40595
40652
|
// date: _?.appointmentId?.[0]?.start
|
|
40596
40653
|
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
@@ -40605,6 +40662,9 @@ var GET_OTHER_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getOther
|
|
|
40605
40662
|
// }).join(", "),
|
|
40606
40663
|
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
40607
40664
|
// }),
|
|
40665
|
+
practitionerName: (_$practitioner_detail11 = _ === null || _ === void 0 ? void 0 : (_$practitioner_detail12 = _.practitioner_details) === null || _$practitioner_detail12 === void 0 ? void 0 : (_$practitioner_detail13 = _$practitioner_detail12[0]) === null || _$practitioner_detail13 === void 0 ? void 0 : _$practitioner_detail13.id_name) !== null && _$practitioner_detail11 !== void 0 ? _$practitioner_detail11 : "",
|
|
40666
|
+
speciality: (_ === null || _ === void 0 ? void 0 : (_$appointmentId21 = _.appointmentId) === null || _$appointmentId21 === void 0 ? void 0 : (_$appointmentId21$ = _$appointmentId21[0]) === null || _$appointmentId21$ === void 0 ? void 0 : (_$appointmentId21$$Sp = _$appointmentId21$.SpecialtyID) === null || _$appointmentId21$$Sp === void 0 ? void 0 : (_$appointmentId21$$Sp2 = _$appointmentId21$$Sp[0]) === null || _$appointmentId21$$Sp2 === void 0 ? void 0 : (_$appointmentId21$$Sp3 = _$appointmentId21$$Sp2.coding) === null || _$appointmentId21$$Sp3 === void 0 ? void 0 : (_$appointmentId21$$Sp4 = _$appointmentId21$$Sp3[0]) === null || _$appointmentId21$$Sp4 === void 0 ? void 0 : _$appointmentId21$$Sp4.display) || "",
|
|
40667
|
+
clinic: (_ === null || _ === void 0 ? void 0 : (_$practitioner_detail14 = _.practitioner_details) === null || _$practitioner_detail14 === void 0 ? void 0 : (_$practitioner_detail15 = _$practitioner_detail14[0]) === null || _$practitioner_detail15 === void 0 ? void 0 : _$practitioner_detail15.clinic) || "",
|
|
40608
40668
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status3 = _.status) === null || _$status3 === void 0 ? void 0 : _$status3.display) || "",
|
|
40609
40669
|
action: true
|
|
40610
40670
|
};
|
|
@@ -40651,7 +40711,7 @@ var GET_TODAY_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getToday
|
|
|
40651
40711
|
case 5:
|
|
40652
40712
|
data = _context11.sent;
|
|
40653
40713
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result11 = data.result) === null || _data$result11 === void 0 ? void 0 : _data$result11.map(function (_) {
|
|
40654
|
-
var _$
|
|
40714
|
+
var _$patient_id10, _$patient_id10$, _$patient_id10$$name, _$patient_id11, _$patient_id11$, _$appointmentId22, _$appointmentId22$, _$appointmentId22$$Pe, _$appointmentId22$$Pe2, _$patient_id$0$teleco4, _$patient_id12, _$patient_id12$, _$patient_id12$$telec, _$patient_id12$$telec2, _$appointmentId23, _$appointmentId23$, _$appointmentId24, _$appointmentId24$, _$appointmentId25, _$appointmentId25$, _$appointmentId26, _$appointmentId26$, _$appointmentId27, _$appointmentId27$, _$visit_type4, _$practitioner_detail16, _$practitioner_detail17, _$practitioner_detail18, _$appointmentId28, _$appointmentId28$, _$appointmentId28$$Sp, _$appointmentId28$$Sp2, _$appointmentId28$$Sp3, _$appointmentId28$$Sp4, _$practitioner_detail19, _$practitioner_detail20, _$status4;
|
|
40655
40715
|
|
|
40656
40716
|
return {
|
|
40657
40717
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid
|
|
@@ -40689,21 +40749,26 @@ var GET_TODAY_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getToday
|
|
|
40689
40749
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
40690
40750
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
40691
40751
|
// }),
|
|
40692
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
40693
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
40694
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
40695
|
-
|
|
40752
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id10 = _.patient_id) === null || _$patient_id10 === void 0 ? void 0 : (_$patient_id10$ = _$patient_id10[0]) === null || _$patient_id10$ === void 0 ? void 0 : (_$patient_id10$$name = _$patient_id10$.name) === null || _$patient_id10$$name === void 0 ? void 0 : _$patient_id10$$name[0]) || {}),
|
|
40753
|
+
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id11 = _.patient_id) === null || _$patient_id11 === void 0 ? void 0 : (_$patient_id11$ = _$patient_id11[0]) === null || _$patient_id11$ === void 0 ? void 0 : _$patient_id11$.MRN) || "",
|
|
40754
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId22 = _.appointmentId) === null || _$appointmentId22 === void 0 ? void 0 : (_$appointmentId22$ = _$appointmentId22[0]) === null || _$appointmentId22$ === void 0 ? void 0 : (_$appointmentId22$$Pe = _$appointmentId22$.PersonID) === null || _$appointmentId22$$Pe === void 0 ? void 0 : (_$appointmentId22$$Pe2 = _$appointmentId22$$Pe[0]) === null || _$appointmentId22$$Pe2 === void 0 ? void 0 : _$appointmentId22$$Pe2.birthDay),
|
|
40755
|
+
contact: (_$patient_id$0$teleco4 = _ === null || _ === void 0 ? void 0 : (_$patient_id12 = _.patient_id) === null || _$patient_id12 === void 0 ? void 0 : (_$patient_id12$ = _$patient_id12[0]) === null || _$patient_id12$ === void 0 ? void 0 : (_$patient_id12$$telec = _$patient_id12$.telecom) === null || _$patient_id12$$telec === void 0 ? void 0 : (_$patient_id12$$telec2 = _$patient_id12$$telec[0]) === null || _$patient_id12$$telec2 === void 0 ? void 0 : _$patient_id12$$telec2.value) !== null && _$patient_id$0$teleco4 !== void 0 ? _$patient_id$0$teleco4 : "",
|
|
40696
40756
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
40697
40757
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ? JSON.stringify(_?.patient_id?.[0]?.telecom?.[0]?.value) : "",
|
|
40698
|
-
|
|
40699
|
-
|
|
40700
|
-
|
|
40758
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId23 = _.appointmentId) === null || _$appointmentId23 === void 0 ? void 0 : (_$appointmentId23$ = _$appointmentId23[0]) === null || _$appointmentId23$ === void 0 ? void 0 : _$appointmentId23$.appno) || "",
|
|
40759
|
+
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId24 = _.appointmentId) === null || _$appointmentId24 === void 0 ? void 0 : (_$appointmentId24$ = _$appointmentId24[0]) === null || _$appointmentId24$ === void 0 ? void 0 : _$appointmentId24$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId25 = _.appointmentId) === null || _$appointmentId25 === void 0 ? void 0 : (_$appointmentId25$ = _$appointmentId25[0]) === null || _$appointmentId25$ === void 0 ? void 0 : _$appointmentId25$.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId26 = _.appointmentId) === null || _$appointmentId26 === void 0 ? void 0 : (_$appointmentId26$ = _$appointmentId26[0]) === null || _$appointmentId26$ === void 0 ? void 0 : _$appointmentId26$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId27 = _.appointmentId) === null || _$appointmentId27 === void 0 ? void 0 : (_$appointmentId27$ = _$appointmentId27[0]) === null || _$appointmentId27$ === void 0 ? void 0 : _$appointmentId27$.start, "hh:mm A") : ""),
|
|
40760
|
+
visitType: (_$visit_type4 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type4 !== void 0 ? _$visit_type4 : "",
|
|
40761
|
+
// appointmentStatus: _?.status?.display || "",
|
|
40701
40762
|
// speciality: JSON.stringify({
|
|
40702
40763
|
// speciality: _?.appointmentId?.[0]?.SpecialtyID?.map((spl) => {
|
|
40703
40764
|
// return spl?.coding?.[0]?.display;
|
|
40704
40765
|
// }).join(", "),
|
|
40705
40766
|
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
40706
40767
|
// }),
|
|
40768
|
+
practitionerName: (_$practitioner_detail16 = _ === null || _ === void 0 ? void 0 : (_$practitioner_detail17 = _.practitioner_details) === null || _$practitioner_detail17 === void 0 ? void 0 : (_$practitioner_detail18 = _$practitioner_detail17[0]) === null || _$practitioner_detail18 === void 0 ? void 0 : _$practitioner_detail18.id_name) !== null && _$practitioner_detail16 !== void 0 ? _$practitioner_detail16 : "",
|
|
40769
|
+
speciality: (_ === null || _ === void 0 ? void 0 : (_$appointmentId28 = _.appointmentId) === null || _$appointmentId28 === void 0 ? void 0 : (_$appointmentId28$ = _$appointmentId28[0]) === null || _$appointmentId28$ === void 0 ? void 0 : (_$appointmentId28$$Sp = _$appointmentId28$.SpecialtyID) === null || _$appointmentId28$$Sp === void 0 ? void 0 : (_$appointmentId28$$Sp2 = _$appointmentId28$$Sp[0]) === null || _$appointmentId28$$Sp2 === void 0 ? void 0 : (_$appointmentId28$$Sp3 = _$appointmentId28$$Sp2.coding) === null || _$appointmentId28$$Sp3 === void 0 ? void 0 : (_$appointmentId28$$Sp4 = _$appointmentId28$$Sp3[0]) === null || _$appointmentId28$$Sp4 === void 0 ? void 0 : _$appointmentId28$$Sp4.display) || "",
|
|
40770
|
+
clinic: (_ === null || _ === void 0 ? void 0 : (_$practitioner_detail19 = _.practitioner_details) === null || _$practitioner_detail19 === void 0 ? void 0 : (_$practitioner_detail20 = _$practitioner_detail19[0]) === null || _$practitioner_detail20 === void 0 ? void 0 : _$practitioner_detail20.clinic) || "",
|
|
40771
|
+
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status4 = _.status) === null || _$status4 === void 0 ? void 0 : _$status4.display) || "",
|
|
40707
40772
|
action: true
|
|
40708
40773
|
};
|
|
40709
40774
|
}) : [];
|
|
@@ -40749,7 +40814,7 @@ var GET_WALK_INS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getWalkInsNu
|
|
|
40749
40814
|
case 5:
|
|
40750
40815
|
data = _context12.sent;
|
|
40751
40816
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result12 = data.result) === null || _data$result12 === void 0 ? void 0 : _data$result12.map(function (_) {
|
|
40752
|
-
var _$
|
|
40817
|
+
var _$patient_id13, _$patient_id13$, _$patient_id13$$name, _$patient_id14, _$patient_id14$, _$appointmentId29, _$appointmentId29$, _$appointmentId29$$Pe, _$appointmentId29$$Pe2, _$patient_id$0$teleco5, _$patient_id15, _$patient_id15$, _$patient_id15$$telec, _$patient_id15$$telec2, _$appointmentId30, _$appointmentId30$, _$appointmentId31, _$appointmentId31$, _$appointmentId32, _$appointmentId32$, _$appointmentId33, _$appointmentId33$, _$appointmentId34, _$appointmentId34$, _$visit_type5, _$practitioner_detail21, _$practitioner_detail22, _$practitioner_detail23, _$appointmentId35, _$appointmentId35$, _$appointmentId35$$Sp, _$appointmentId35$$Sp2, _$appointmentId35$$Sp3, _$appointmentId35$$Sp4, _$practitioner_detail24, _$practitioner_detail25, _$status5;
|
|
40753
40818
|
|
|
40754
40819
|
return {
|
|
40755
40820
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -40790,12 +40855,13 @@ var GET_WALK_INS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getWalkInsNu
|
|
|
40790
40855
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
40791
40856
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
40792
40857
|
// }),
|
|
40793
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
40794
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
40795
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
40796
|
-
|
|
40797
|
-
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId26 = _.appointmentId) === null || _$appointmentId26 === void 0 ? void 0 : (_$appointmentId26$ = _$appointmentId26[0]) === null || _$appointmentId26$ === void 0 ? void 0 : _$appointmentId26$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId27 = _.appointmentId) === null || _$appointmentId27 === void 0 ? void 0 : (_$appointmentId27$ = _$appointmentId27[0]) === null || _$appointmentId27$ === void 0 ? void 0 : _$appointmentId27$.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId28 = _.appointmentId) === null || _$appointmentId28 === void 0 ? void 0 : (_$appointmentId28$ = _$appointmentId28[0]) === null || _$appointmentId28$ === void 0 ? void 0 : _$appointmentId28$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId29 = _.appointmentId) === null || _$appointmentId29 === void 0 ? void 0 : (_$appointmentId29$ = _$appointmentId29[0]) === null || _$appointmentId29$ === void 0 ? void 0 : _$appointmentId29$.start, "hh:mm A") : ""),
|
|
40858
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id13 = _.patient_id) === null || _$patient_id13 === void 0 ? void 0 : (_$patient_id13$ = _$patient_id13[0]) === null || _$patient_id13$ === void 0 ? void 0 : (_$patient_id13$$name = _$patient_id13$.name) === null || _$patient_id13$$name === void 0 ? void 0 : _$patient_id13$$name[0]) || {}),
|
|
40859
|
+
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id14 = _.patient_id) === null || _$patient_id14 === void 0 ? void 0 : (_$patient_id14$ = _$patient_id14[0]) === null || _$patient_id14$ === void 0 ? void 0 : _$patient_id14$.alias) || "",
|
|
40860
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId29 = _.appointmentId) === null || _$appointmentId29 === void 0 ? void 0 : (_$appointmentId29$ = _$appointmentId29[0]) === null || _$appointmentId29$ === void 0 ? void 0 : (_$appointmentId29$$Pe = _$appointmentId29$.PersonID) === null || _$appointmentId29$$Pe === void 0 ? void 0 : (_$appointmentId29$$Pe2 = _$appointmentId29$$Pe[0]) === null || _$appointmentId29$$Pe2 === void 0 ? void 0 : _$appointmentId29$$Pe2.birthDay),
|
|
40861
|
+
contact: (_$patient_id$0$teleco5 = _ === null || _ === void 0 ? void 0 : (_$patient_id15 = _.patient_id) === null || _$patient_id15 === void 0 ? void 0 : (_$patient_id15$ = _$patient_id15[0]) === null || _$patient_id15$ === void 0 ? void 0 : (_$patient_id15$$telec = _$patient_id15$.telecom) === null || _$patient_id15$$telec === void 0 ? void 0 : (_$patient_id15$$telec2 = _$patient_id15$$telec[0]) === null || _$patient_id15$$telec2 === void 0 ? void 0 : _$patient_id15$$telec2.value) !== null && _$patient_id$0$teleco5 !== void 0 ? _$patient_id$0$teleco5 : "",
|
|
40798
40862
|
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId30 = _.appointmentId) === null || _$appointmentId30 === void 0 ? void 0 : (_$appointmentId30$ = _$appointmentId30[0]) === null || _$appointmentId30$ === void 0 ? void 0 : _$appointmentId30$.appno) || "",
|
|
40863
|
+
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId31 = _.appointmentId) === null || _$appointmentId31 === void 0 ? void 0 : (_$appointmentId31$ = _$appointmentId31[0]) === null || _$appointmentId31$ === void 0 ? void 0 : _$appointmentId31$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId32 = _.appointmentId) === null || _$appointmentId32 === void 0 ? void 0 : (_$appointmentId32$ = _$appointmentId32[0]) === null || _$appointmentId32$ === void 0 ? void 0 : _$appointmentId32$.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId33 = _.appointmentId) === null || _$appointmentId33 === void 0 ? void 0 : (_$appointmentId33$ = _$appointmentId33[0]) === null || _$appointmentId33$ === void 0 ? void 0 : _$appointmentId33$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId34 = _.appointmentId) === null || _$appointmentId34 === void 0 ? void 0 : (_$appointmentId34$ = _$appointmentId34[0]) === null || _$appointmentId34$ === void 0 ? void 0 : _$appointmentId34$.start, "hh:mm A") : ""),
|
|
40864
|
+
visitType: (_$visit_type5 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type5 !== void 0 ? _$visit_type5 : "",
|
|
40799
40865
|
// date: JSON.stringify({
|
|
40800
40866
|
// date: _?.appointmentId?.[0]?.start
|
|
40801
40867
|
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
@@ -40810,6 +40876,9 @@ var GET_WALK_INS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getWalkInsNu
|
|
|
40810
40876
|
// }).join(", "),
|
|
40811
40877
|
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
40812
40878
|
// }),
|
|
40879
|
+
practitionerName: (_$practitioner_detail21 = _ === null || _ === void 0 ? void 0 : (_$practitioner_detail22 = _.practitioner_details) === null || _$practitioner_detail22 === void 0 ? void 0 : (_$practitioner_detail23 = _$practitioner_detail22[0]) === null || _$practitioner_detail23 === void 0 ? void 0 : _$practitioner_detail23.id_name) !== null && _$practitioner_detail21 !== void 0 ? _$practitioner_detail21 : "",
|
|
40880
|
+
speciality: (_ === null || _ === void 0 ? void 0 : (_$appointmentId35 = _.appointmentId) === null || _$appointmentId35 === void 0 ? void 0 : (_$appointmentId35$ = _$appointmentId35[0]) === null || _$appointmentId35$ === void 0 ? void 0 : (_$appointmentId35$$Sp = _$appointmentId35$.SpecialtyID) === null || _$appointmentId35$$Sp === void 0 ? void 0 : (_$appointmentId35$$Sp2 = _$appointmentId35$$Sp[0]) === null || _$appointmentId35$$Sp2 === void 0 ? void 0 : (_$appointmentId35$$Sp3 = _$appointmentId35$$Sp2.coding) === null || _$appointmentId35$$Sp3 === void 0 ? void 0 : (_$appointmentId35$$Sp4 = _$appointmentId35$$Sp3[0]) === null || _$appointmentId35$$Sp4 === void 0 ? void 0 : _$appointmentId35$$Sp4.display) || "",
|
|
40881
|
+
clinic: (_ === null || _ === void 0 ? void 0 : (_$practitioner_detail24 = _.practitioner_details) === null || _$practitioner_detail24 === void 0 ? void 0 : (_$practitioner_detail25 = _$practitioner_detail24[0]) === null || _$practitioner_detail25 === void 0 ? void 0 : _$practitioner_detail25.clinic) || "",
|
|
40813
40882
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status5 = _.status) === null || _$status5 === void 0 ? void 0 : _$status5.display) || "",
|
|
40814
40883
|
action: true
|
|
40815
40884
|
};
|
|
@@ -40856,8 +40925,9 @@ var GET_APPOINTMENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getAppo
|
|
|
40856
40925
|
|
|
40857
40926
|
case 5:
|
|
40858
40927
|
data = _context13.sent;
|
|
40928
|
+
debugger;
|
|
40859
40929
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result13 = data.result) === null || _data$result13 === void 0 ? void 0 : _data$result13.map(function (_) {
|
|
40860
|
-
var _$
|
|
40930
|
+
var _$Appointment62, _$Appointment62$Perso, _$Appointment62$Perso2, _$Appointment62$Perso3, _$Appointment63, _$Appointment63$Perso, _$Appointment63$Perso2, _$Appointment63$Perso3, _$Appointment64, _$Appointment64$Perso, _$Appointment64$Perso2, _$Appointment$PersonI9, _$Appointment65, _$Appointment65$Perso, _$Appointment65$Perso2, _$Appointment65$Perso3, _$Appointment65$Perso4, _$Appointment66, _$Appointment67, _$Appointment68, _$Appointment69, _$Appointment70, _$Encounter$0$visit_t2, _$Encounter37, _$Encounter37$, _$Appointment71, _$Appointment71$resou, _$Appointment72, _$Appointment72$Speci, _$Appointment72$Speci2, _$Appointment72$Speci3, _$Appointment72$Speci4, _$Appointment73, _$Appointment73$orgid, _$Appointment74;
|
|
40861
40931
|
|
|
40862
40932
|
return {
|
|
40863
40933
|
// img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -40872,12 +40942,14 @@ var GET_APPOINTMENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getAppo
|
|
|
40872
40942
|
// // genderData: "M",
|
|
40873
40943
|
// contact: _.Appointment?.PersonID?.[0]?.telecom?.[0]?.value ?? ""
|
|
40874
40944
|
// }),
|
|
40875
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
40876
|
-
mrn: ((_$
|
|
40877
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
40878
|
-
|
|
40879
|
-
|
|
40880
|
-
|
|
40945
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$Appointment62 = _.Appointment) === null || _$Appointment62 === void 0 ? void 0 : (_$Appointment62$Perso = _$Appointment62.PersonID) === null || _$Appointment62$Perso === void 0 ? void 0 : (_$Appointment62$Perso2 = _$Appointment62$Perso[0]) === null || _$Appointment62$Perso2 === void 0 ? void 0 : (_$Appointment62$Perso3 = _$Appointment62$Perso2.name) === null || _$Appointment62$Perso3 === void 0 ? void 0 : _$Appointment62$Perso3[0]) || {}),
|
|
40946
|
+
mrn: ((_$Appointment63 = _.Appointment) === null || _$Appointment63 === void 0 ? void 0 : (_$Appointment63$Perso = _$Appointment63.PersonID) === null || _$Appointment63$Perso === void 0 ? void 0 : (_$Appointment63$Perso2 = _$Appointment63$Perso[0]) === null || _$Appointment63$Perso2 === void 0 ? void 0 : (_$Appointment63$Perso3 = _$Appointment63$Perso2.MRN) === null || _$Appointment63$Perso3 === void 0 ? void 0 : _$Appointment63$Perso3[0]) || "",
|
|
40947
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment64 = _.Appointment) === null || _$Appointment64 === void 0 ? void 0 : (_$Appointment64$Perso = _$Appointment64.PersonID) === null || _$Appointment64$Perso === void 0 ? void 0 : (_$Appointment64$Perso2 = _$Appointment64$Perso[0]) === null || _$Appointment64$Perso2 === void 0 ? void 0 : _$Appointment64$Perso2.birthDay),
|
|
40948
|
+
contact: (_$Appointment$PersonI9 = _ === null || _ === void 0 ? void 0 : (_$Appointment65 = _.Appointment) === null || _$Appointment65 === void 0 ? void 0 : (_$Appointment65$Perso = _$Appointment65.PersonID) === null || _$Appointment65$Perso === void 0 ? void 0 : (_$Appointment65$Perso2 = _$Appointment65$Perso[0]) === null || _$Appointment65$Perso2 === void 0 ? void 0 : (_$Appointment65$Perso3 = _$Appointment65$Perso2.telecom) === null || _$Appointment65$Perso3 === void 0 ? void 0 : (_$Appointment65$Perso4 = _$Appointment65$Perso3[0]) === null || _$Appointment65$Perso4 === void 0 ? void 0 : _$Appointment65$Perso4.value) !== null && _$Appointment$PersonI9 !== void 0 ? _$Appointment$PersonI9 : "",
|
|
40949
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$Appointment66 = _.Appointment) === null || _$Appointment66 === void 0 ? void 0 : _$Appointment66.appno) || "",
|
|
40950
|
+
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$Appointment67 = _.Appointment) === null || _$Appointment67 === void 0 ? void 0 : _$Appointment67.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment68 = _.Appointment) === null || _$Appointment68 === void 0 ? void 0 : _$Appointment68.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$Appointment69 = _.Appointment) === null || _$Appointment69 === void 0 ? void 0 : _$Appointment69.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment70 = _.Appointment) === null || _$Appointment70 === void 0 ? void 0 : _$Appointment70.start, "hh:mm A") : ""),
|
|
40951
|
+
//encounterNo : _?.Encounter?.[0]?.encounter_no ?? "",
|
|
40952
|
+
visitType: (_$Encounter$0$visit_t2 = _ === null || _ === void 0 ? void 0 : (_$Encounter37 = _.Encounter) === null || _$Encounter37 === void 0 ? void 0 : (_$Encounter37$ = _$Encounter37[0]) === null || _$Encounter37$ === void 0 ? void 0 : _$Encounter37$.visit_type) !== null && _$Encounter$0$visit_t2 !== void 0 ? _$Encounter$0$visit_t2 : "",
|
|
40881
40953
|
// mrn: _?.patient_id?.[0]?.alias || "",
|
|
40882
40954
|
// age: _?.patient_id?.[0]?.age,
|
|
40883
40955
|
// date: JSON.stringify({
|
|
@@ -40895,38 +40967,40 @@ var GET_APPOINTMENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getAppo
|
|
|
40895
40967
|
// }).join(", ") ?? "",
|
|
40896
40968
|
// clinic: _?.Appointment?.orgid?.name ?? ""
|
|
40897
40969
|
// }),
|
|
40898
|
-
|
|
40899
|
-
|
|
40970
|
+
practitionerName: makeName(_ === null || _ === void 0 ? void 0 : (_$Appointment71 = _.Appointment) === null || _$Appointment71 === void 0 ? void 0 : (_$Appointment71$resou = _$Appointment71.resourcecode) === null || _$Appointment71$resou === void 0 ? void 0 : _$Appointment71$resou.name),
|
|
40971
|
+
speciality: (_ === null || _ === void 0 ? void 0 : (_$Appointment72 = _.Appointment) === null || _$Appointment72 === void 0 ? void 0 : (_$Appointment72$Speci = _$Appointment72.SpecialtyID) === null || _$Appointment72$Speci === void 0 ? void 0 : (_$Appointment72$Speci2 = _$Appointment72$Speci[0]) === null || _$Appointment72$Speci2 === void 0 ? void 0 : (_$Appointment72$Speci3 = _$Appointment72$Speci2.coding) === null || _$Appointment72$Speci3 === void 0 ? void 0 : (_$Appointment72$Speci4 = _$Appointment72$Speci3[0]) === null || _$Appointment72$Speci4 === void 0 ? void 0 : _$Appointment72$Speci4.display) || "",
|
|
40972
|
+
clinic: (_ === null || _ === void 0 ? void 0 : (_$Appointment73 = _.Appointment) === null || _$Appointment73 === void 0 ? void 0 : (_$Appointment73$orgid = _$Appointment73.orgid) === null || _$Appointment73$orgid === void 0 ? void 0 : _$Appointment73$orgid.name) || "",
|
|
40973
|
+
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$Appointment74 = _.Appointment) === null || _$Appointment74 === void 0 ? void 0 : _$Appointment74.appstatus) || "",
|
|
40900
40974
|
// "View Patient": true,
|
|
40901
40975
|
// Attend: true,
|
|
40902
|
-
|
|
40976
|
+
// type: "OP",
|
|
40903
40977
|
// appNo: _?.id ?? '',
|
|
40904
40978
|
// // data: _,
|
|
40905
40979
|
// enId: _.id,
|
|
40906
40980
|
// age: getAge(_?.PersonID?.[0]?.birthDay),
|
|
40907
40981
|
// // gender: _?.PersonID?.[0]?.gender,
|
|
40908
|
-
//
|
|
40909
|
-
// pId : _?.patient_id?.id,
|
|
40982
|
+
action: true // pId : _?.patient_id?.id,
|
|
40910
40983
|
|
|
40911
40984
|
};
|
|
40912
40985
|
}) : [];
|
|
40986
|
+
debugger;
|
|
40913
40987
|
return _context13.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
40914
40988
|
data: returnedData
|
|
40915
40989
|
}));
|
|
40916
40990
|
|
|
40917
|
-
case
|
|
40918
|
-
_context13.prev =
|
|
40991
|
+
case 12:
|
|
40992
|
+
_context13.prev = 12;
|
|
40919
40993
|
_context13.t0 = _context13["catch"](2);
|
|
40920
40994
|
return _context13.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
40921
40995
|
message: _context13.t0.message
|
|
40922
40996
|
})));
|
|
40923
40997
|
|
|
40924
|
-
case
|
|
40998
|
+
case 15:
|
|
40925
40999
|
case "end":
|
|
40926
41000
|
return _context13.stop();
|
|
40927
41001
|
}
|
|
40928
41002
|
}
|
|
40929
|
-
}, _callee13, null, [[2,
|
|
41003
|
+
}, _callee13, null, [[2, 12]]);
|
|
40930
41004
|
})));
|
|
40931
41005
|
var GET_FIRST_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getFirstVisitsDoctor", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee14() {
|
|
40932
41006
|
var payload,
|
|
@@ -40952,7 +41026,7 @@ var GET_FIRST_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getFirs
|
|
|
40952
41026
|
case 5:
|
|
40953
41027
|
data = _context14.sent;
|
|
40954
41028
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result14 = data.result) === null || _data$result14 === void 0 ? void 0 : _data$result14.map(function (_) {
|
|
40955
|
-
var _$
|
|
41029
|
+
var _$patient_id16, _$patient_id16$, _$patient_id16$$name, _$patient_id17, _$patient_id17$, _$appointmentId36, _$appointmentId36$, _$appointmentId36$$Pe, _$appointmentId36$$Pe2, _$patient_id$0$teleco6, _$patient_id18, _$patient_id18$, _$patient_id18$$telec, _$patient_id18$$telec2, _$appointmentId37, _$appointmentId37$, _$appointmentId38, _$appointmentId38$, _$appointmentId39, _$appointmentId39$, _$appointmentId40, _$appointmentId40$, _$appointmentId41, _$appointmentId41$, _$visit_type6, _$practitioner_detail26, _$practitioner_detail27, _$practitioner_detail28, _$practitioner_detail29, _$practitioner_detail30, _$practitioner_detail31, _$practitioner_detail32, _$practitioner_detail33, _$practitioner_detail34, _$practitioner_detail35, _$status6;
|
|
40956
41030
|
|
|
40957
41031
|
return {
|
|
40958
41032
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -40992,12 +41066,12 @@ var GET_FIRST_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getFirs
|
|
|
40992
41066
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
40993
41067
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
40994
41068
|
// }),
|
|
40995
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
40996
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
40997
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
40998
|
-
|
|
40999
|
-
|
|
41000
|
-
|
|
41069
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id16 = _.patient_id) === null || _$patient_id16 === void 0 ? void 0 : (_$patient_id16$ = _$patient_id16[0]) === null || _$patient_id16$ === void 0 ? void 0 : (_$patient_id16$$name = _$patient_id16$.name) === null || _$patient_id16$$name === void 0 ? void 0 : _$patient_id16$$name[0]) || {}),
|
|
41070
|
+
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id17 = _.patient_id) === null || _$patient_id17 === void 0 ? void 0 : (_$patient_id17$ = _$patient_id17[0]) === null || _$patient_id17$ === void 0 ? void 0 : _$patient_id17$.MRN) || "",
|
|
41071
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId36 = _.appointmentId) === null || _$appointmentId36 === void 0 ? void 0 : (_$appointmentId36$ = _$appointmentId36[0]) === null || _$appointmentId36$ === void 0 ? void 0 : (_$appointmentId36$$Pe = _$appointmentId36$.PersonID) === null || _$appointmentId36$$Pe === void 0 ? void 0 : (_$appointmentId36$$Pe2 = _$appointmentId36$$Pe[0]) === null || _$appointmentId36$$Pe2 === void 0 ? void 0 : _$appointmentId36$$Pe2.birthDay),
|
|
41072
|
+
contact: (_$patient_id$0$teleco6 = _ === null || _ === void 0 ? void 0 : (_$patient_id18 = _.patient_id) === null || _$patient_id18 === void 0 ? void 0 : (_$patient_id18$ = _$patient_id18[0]) === null || _$patient_id18$ === void 0 ? void 0 : (_$patient_id18$$telec = _$patient_id18$.telecom) === null || _$patient_id18$$telec === void 0 ? void 0 : (_$patient_id18$$telec2 = _$patient_id18$$telec[0]) === null || _$patient_id18$$telec2 === void 0 ? void 0 : _$patient_id18$$telec2.value) !== null && _$patient_id$0$teleco6 !== void 0 ? _$patient_id$0$teleco6 : "",
|
|
41073
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId37 = _.appointmentId) === null || _$appointmentId37 === void 0 ? void 0 : (_$appointmentId37$ = _$appointmentId37[0]) === null || _$appointmentId37$ === void 0 ? void 0 : _$appointmentId37$.appno) || "",
|
|
41074
|
+
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId38 = _.appointmentId) === null || _$appointmentId38 === void 0 ? void 0 : (_$appointmentId38$ = _$appointmentId38[0]) === null || _$appointmentId38$ === void 0 ? void 0 : _$appointmentId38$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId39 = _.appointmentId) === null || _$appointmentId39 === void 0 ? void 0 : (_$appointmentId39$ = _$appointmentId39[0]) === null || _$appointmentId39$ === void 0 ? void 0 : _$appointmentId39$.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId40 = _.appointmentId) === null || _$appointmentId40 === void 0 ? void 0 : (_$appointmentId40$ = _$appointmentId40[0]) === null || _$appointmentId40$ === void 0 ? void 0 : _$appointmentId40$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId41 = _.appointmentId) === null || _$appointmentId41 === void 0 ? void 0 : (_$appointmentId41$ = _$appointmentId41[0]) === null || _$appointmentId41$ === void 0 ? void 0 : _$appointmentId41$.start, "hh:mm A") : ""),
|
|
41001
41075
|
// date: JSON.stringify({
|
|
41002
41076
|
// date: _?.appointmentId?.[0]?.start
|
|
41003
41077
|
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
@@ -41012,6 +41086,11 @@ var GET_FIRST_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getFirs
|
|
|
41012
41086
|
// }).join(", "),
|
|
41013
41087
|
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
41014
41088
|
// }),
|
|
41089
|
+
//encounterNo : _?.Appointment?.appointmentType ?? "en no",
|
|
41090
|
+
visitType: (_$visit_type6 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type6 !== void 0 ? _$visit_type6 : "",
|
|
41091
|
+
practitionerName: (_$practitioner_detail26 = _ === null || _ === void 0 ? void 0 : (_$practitioner_detail27 = _.practitioner_details) === null || _$practitioner_detail27 === void 0 ? void 0 : (_$practitioner_detail28 = _$practitioner_detail27[0]) === null || _$practitioner_detail28 === void 0 ? void 0 : _$practitioner_detail28.id_name) !== null && _$practitioner_detail26 !== void 0 ? _$practitioner_detail26 : "",
|
|
41092
|
+
speciality: (_ === null || _ === void 0 ? void 0 : (_$practitioner_detail29 = _.practitioner_details) === null || _$practitioner_detail29 === void 0 ? void 0 : (_$practitioner_detail30 = _$practitioner_detail29[0]) === null || _$practitioner_detail30 === void 0 ? void 0 : (_$practitioner_detail31 = _$practitioner_detail30.speciality) === null || _$practitioner_detail31 === void 0 ? void 0 : (_$practitioner_detail32 = _$practitioner_detail31[0]) === null || _$practitioner_detail32 === void 0 ? void 0 : (_$practitioner_detail33 = _$practitioner_detail32[0]) === null || _$practitioner_detail33 === void 0 ? void 0 : _$practitioner_detail33.display) || "",
|
|
41093
|
+
clinic: (_ === null || _ === void 0 ? void 0 : (_$practitioner_detail34 = _.practitioner_details) === null || _$practitioner_detail34 === void 0 ? void 0 : (_$practitioner_detail35 = _$practitioner_detail34[0]) === null || _$practitioner_detail35 === void 0 ? void 0 : _$practitioner_detail35.clinic) || "",
|
|
41015
41094
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status6 = _.status) === null || _$status6 === void 0 ? void 0 : _$status6.display) || "",
|
|
41016
41095
|
action: true
|
|
41017
41096
|
};
|
|
@@ -41058,7 +41137,7 @@ var GET_NEW_PATIENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getNewP
|
|
|
41058
41137
|
case 5:
|
|
41059
41138
|
data = _context15.sent;
|
|
41060
41139
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result15 = data.result) === null || _data$result15 === void 0 ? void 0 : _data$result15.map(function (_) {
|
|
41061
|
-
var _$
|
|
41140
|
+
var _$patient_id19, _$patient_id19$, _$patient_id19$$name, _$patient_id20, _$patient_id20$, _$appointmentId42, _$appointmentId42$, _$appointmentId42$$Pe, _$appointmentId42$$Pe2, _$patient_id$0$teleco7, _$patient_id21, _$patient_id21$, _$patient_id21$$telec, _$patient_id21$$telec2, _$appointmentId43, _$appointmentId43$, _$appointmentId44, _$appointmentId44$, _$appointmentId45, _$appointmentId45$, _$appointmentId46, _$appointmentId46$, _$appointmentId47, _$appointmentId47$, _$visit_type7, _$practitioner_detail36, _$practitioner_detail37, _$practitioner_detail38, _$practitioner_detail39, _$practitioner_detail40, _$practitioner_detail41, _$practitioner_detail42, _$practitioner_detail43, _$practitioner_detail44, _$practitioner_detail45, _$status7;
|
|
41062
41141
|
|
|
41063
41142
|
return {
|
|
41064
41143
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -41098,12 +41177,12 @@ var GET_NEW_PATIENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getNewP
|
|
|
41098
41177
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
41099
41178
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
41100
41179
|
// }),
|
|
41101
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
41102
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
41103
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
41104
|
-
|
|
41105
|
-
|
|
41106
|
-
|
|
41180
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id19 = _.patient_id) === null || _$patient_id19 === void 0 ? void 0 : (_$patient_id19$ = _$patient_id19[0]) === null || _$patient_id19$ === void 0 ? void 0 : (_$patient_id19$$name = _$patient_id19$.name) === null || _$patient_id19$$name === void 0 ? void 0 : _$patient_id19$$name[0]) || {}),
|
|
41181
|
+
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id20 = _.patient_id) === null || _$patient_id20 === void 0 ? void 0 : (_$patient_id20$ = _$patient_id20[0]) === null || _$patient_id20$ === void 0 ? void 0 : _$patient_id20$.MRN) || "",
|
|
41182
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId42 = _.appointmentId) === null || _$appointmentId42 === void 0 ? void 0 : (_$appointmentId42$ = _$appointmentId42[0]) === null || _$appointmentId42$ === void 0 ? void 0 : (_$appointmentId42$$Pe = _$appointmentId42$.PersonID) === null || _$appointmentId42$$Pe === void 0 ? void 0 : (_$appointmentId42$$Pe2 = _$appointmentId42$$Pe[0]) === null || _$appointmentId42$$Pe2 === void 0 ? void 0 : _$appointmentId42$$Pe2.birthDay),
|
|
41183
|
+
contact: (_$patient_id$0$teleco7 = _ === null || _ === void 0 ? void 0 : (_$patient_id21 = _.patient_id) === null || _$patient_id21 === void 0 ? void 0 : (_$patient_id21$ = _$patient_id21[0]) === null || _$patient_id21$ === void 0 ? void 0 : (_$patient_id21$$telec = _$patient_id21$.telecom) === null || _$patient_id21$$telec === void 0 ? void 0 : (_$patient_id21$$telec2 = _$patient_id21$$telec[0]) === null || _$patient_id21$$telec2 === void 0 ? void 0 : _$patient_id21$$telec2.value) !== null && _$patient_id$0$teleco7 !== void 0 ? _$patient_id$0$teleco7 : "",
|
|
41184
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId43 = _.appointmentId) === null || _$appointmentId43 === void 0 ? void 0 : (_$appointmentId43$ = _$appointmentId43[0]) === null || _$appointmentId43$ === void 0 ? void 0 : _$appointmentId43$.appno) || "",
|
|
41185
|
+
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId44 = _.appointmentId) === null || _$appointmentId44 === void 0 ? void 0 : (_$appointmentId44$ = _$appointmentId44[0]) === null || _$appointmentId44$ === void 0 ? void 0 : _$appointmentId44$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId45 = _.appointmentId) === null || _$appointmentId45 === void 0 ? void 0 : (_$appointmentId45$ = _$appointmentId45[0]) === null || _$appointmentId45$ === void 0 ? void 0 : _$appointmentId45$.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId46 = _.appointmentId) === null || _$appointmentId46 === void 0 ? void 0 : (_$appointmentId46$ = _$appointmentId46[0]) === null || _$appointmentId46$ === void 0 ? void 0 : _$appointmentId46$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId47 = _.appointmentId) === null || _$appointmentId47 === void 0 ? void 0 : (_$appointmentId47$ = _$appointmentId47[0]) === null || _$appointmentId47$ === void 0 ? void 0 : _$appointmentId47$.start, "hh:mm A") : ""),
|
|
41107
41186
|
// date: JSON.stringify({
|
|
41108
41187
|
// date: _?.appointmentId?.[0]?.start
|
|
41109
41188
|
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
@@ -41118,6 +41197,10 @@ var GET_NEW_PATIENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getNewP
|
|
|
41118
41197
|
// }).join(", "),
|
|
41119
41198
|
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
41120
41199
|
// }),
|
|
41200
|
+
visitType: (_$visit_type7 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type7 !== void 0 ? _$visit_type7 : "",
|
|
41201
|
+
practitionerName: (_$practitioner_detail36 = _ === null || _ === void 0 ? void 0 : (_$practitioner_detail37 = _.practitioner_details) === null || _$practitioner_detail37 === void 0 ? void 0 : (_$practitioner_detail38 = _$practitioner_detail37[0]) === null || _$practitioner_detail38 === void 0 ? void 0 : _$practitioner_detail38.id_name) !== null && _$practitioner_detail36 !== void 0 ? _$practitioner_detail36 : "",
|
|
41202
|
+
speciality: (_ === null || _ === void 0 ? void 0 : (_$practitioner_detail39 = _.practitioner_details) === null || _$practitioner_detail39 === void 0 ? void 0 : (_$practitioner_detail40 = _$practitioner_detail39[0]) === null || _$practitioner_detail40 === void 0 ? void 0 : (_$practitioner_detail41 = _$practitioner_detail40.speciality) === null || _$practitioner_detail41 === void 0 ? void 0 : (_$practitioner_detail42 = _$practitioner_detail41[0]) === null || _$practitioner_detail42 === void 0 ? void 0 : (_$practitioner_detail43 = _$practitioner_detail42[0]) === null || _$practitioner_detail43 === void 0 ? void 0 : _$practitioner_detail43.display) || "",
|
|
41203
|
+
clinic: (_ === null || _ === void 0 ? void 0 : (_$practitioner_detail44 = _.practitioner_details) === null || _$practitioner_detail44 === void 0 ? void 0 : (_$practitioner_detail45 = _$practitioner_detail44[0]) === null || _$practitioner_detail45 === void 0 ? void 0 : _$practitioner_detail45.clinic) || "",
|
|
41121
41204
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status7 = _.status) === null || _$status7 === void 0 ? void 0 : _$status7.display) || "",
|
|
41122
41205
|
action: true
|
|
41123
41206
|
};
|
|
@@ -41164,7 +41247,7 @@ var GET_OTHER_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getOthe
|
|
|
41164
41247
|
case 5:
|
|
41165
41248
|
data = _context16.sent;
|
|
41166
41249
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result16 = data.result) === null || _data$result16 === void 0 ? void 0 : _data$result16.map(function (_) {
|
|
41167
|
-
var _$
|
|
41250
|
+
var _$patient_id22, _$patient_id22$, _$patient_id22$$name, _$patient_id23, _$patient_id23$, _$appointmentId48, _$appointmentId48$, _$appointmentId48$$Pe, _$appointmentId48$$Pe2, _$patient_id$0$teleco8, _$patient_id24, _$patient_id24$, _$patient_id24$$telec, _$patient_id24$$telec2, _$appointmentId49, _$appointmentId49$, _$appointmentId50, _$appointmentId50$, _$appointmentId51, _$appointmentId51$, _$appointmentId52, _$appointmentId52$, _$appointmentId53, _$appointmentId53$, _$visit_type8, _$practitioner_detail46, _$practitioner_detail47, _$practitioner_detail48, _$practitioner_detail49, _$practitioner_detail50, _$practitioner_detail51, _$practitioner_detail52, _$practitioner_detail53, _$practitioner_detail54, _$practitioner_detail55, _$status8;
|
|
41168
41251
|
|
|
41169
41252
|
return {
|
|
41170
41253
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -41204,12 +41287,12 @@ var GET_OTHER_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getOthe
|
|
|
41204
41287
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
41205
41288
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
41206
41289
|
// }),
|
|
41207
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
41208
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
41209
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
41210
|
-
|
|
41211
|
-
|
|
41212
|
-
|
|
41290
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id22 = _.patient_id) === null || _$patient_id22 === void 0 ? void 0 : (_$patient_id22$ = _$patient_id22[0]) === null || _$patient_id22$ === void 0 ? void 0 : (_$patient_id22$$name = _$patient_id22$.name) === null || _$patient_id22$$name === void 0 ? void 0 : _$patient_id22$$name[0]) || {}),
|
|
41291
|
+
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id23 = _.patient_id) === null || _$patient_id23 === void 0 ? void 0 : (_$patient_id23$ = _$patient_id23[0]) === null || _$patient_id23$ === void 0 ? void 0 : _$patient_id23$.MRN) || "",
|
|
41292
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId48 = _.appointmentId) === null || _$appointmentId48 === void 0 ? void 0 : (_$appointmentId48$ = _$appointmentId48[0]) === null || _$appointmentId48$ === void 0 ? void 0 : (_$appointmentId48$$Pe = _$appointmentId48$.PersonID) === null || _$appointmentId48$$Pe === void 0 ? void 0 : (_$appointmentId48$$Pe2 = _$appointmentId48$$Pe[0]) === null || _$appointmentId48$$Pe2 === void 0 ? void 0 : _$appointmentId48$$Pe2.birthDay),
|
|
41293
|
+
contact: (_$patient_id$0$teleco8 = _ === null || _ === void 0 ? void 0 : (_$patient_id24 = _.patient_id) === null || _$patient_id24 === void 0 ? void 0 : (_$patient_id24$ = _$patient_id24[0]) === null || _$patient_id24$ === void 0 ? void 0 : (_$patient_id24$$telec = _$patient_id24$.telecom) === null || _$patient_id24$$telec === void 0 ? void 0 : (_$patient_id24$$telec2 = _$patient_id24$$telec[0]) === null || _$patient_id24$$telec2 === void 0 ? void 0 : _$patient_id24$$telec2.value) !== null && _$patient_id$0$teleco8 !== void 0 ? _$patient_id$0$teleco8 : "",
|
|
41294
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId49 = _.appointmentId) === null || _$appointmentId49 === void 0 ? void 0 : (_$appointmentId49$ = _$appointmentId49[0]) === null || _$appointmentId49$ === void 0 ? void 0 : _$appointmentId49$.appno) || "",
|
|
41295
|
+
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId50 = _.appointmentId) === null || _$appointmentId50 === void 0 ? void 0 : (_$appointmentId50$ = _$appointmentId50[0]) === null || _$appointmentId50$ === void 0 ? void 0 : _$appointmentId50$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId51 = _.appointmentId) === null || _$appointmentId51 === void 0 ? void 0 : (_$appointmentId51$ = _$appointmentId51[0]) === null || _$appointmentId51$ === void 0 ? void 0 : _$appointmentId51$.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId52 = _.appointmentId) === null || _$appointmentId52 === void 0 ? void 0 : (_$appointmentId52$ = _$appointmentId52[0]) === null || _$appointmentId52$ === void 0 ? void 0 : _$appointmentId52$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId53 = _.appointmentId) === null || _$appointmentId53 === void 0 ? void 0 : (_$appointmentId53$ = _$appointmentId53[0]) === null || _$appointmentId53$ === void 0 ? void 0 : _$appointmentId53$.start, "hh:mm A") : ""),
|
|
41213
41296
|
// date: JSON.stringify({
|
|
41214
41297
|
// date: _?.appointmentId?.[0]?.start
|
|
41215
41298
|
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
@@ -41224,6 +41307,10 @@ var GET_OTHER_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getOthe
|
|
|
41224
41307
|
// }).join(", "),
|
|
41225
41308
|
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
41226
41309
|
// }),
|
|
41310
|
+
visitType: (_$visit_type8 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type8 !== void 0 ? _$visit_type8 : "",
|
|
41311
|
+
practitionerName: (_$practitioner_detail46 = _ === null || _ === void 0 ? void 0 : (_$practitioner_detail47 = _.practitioner_details) === null || _$practitioner_detail47 === void 0 ? void 0 : (_$practitioner_detail48 = _$practitioner_detail47[0]) === null || _$practitioner_detail48 === void 0 ? void 0 : _$practitioner_detail48.id_name) !== null && _$practitioner_detail46 !== void 0 ? _$practitioner_detail46 : "",
|
|
41312
|
+
speciality: (_ === null || _ === void 0 ? void 0 : (_$practitioner_detail49 = _.practitioner_details) === null || _$practitioner_detail49 === void 0 ? void 0 : (_$practitioner_detail50 = _$practitioner_detail49[0]) === null || _$practitioner_detail50 === void 0 ? void 0 : (_$practitioner_detail51 = _$practitioner_detail50.speciality) === null || _$practitioner_detail51 === void 0 ? void 0 : (_$practitioner_detail52 = _$practitioner_detail51[0]) === null || _$practitioner_detail52 === void 0 ? void 0 : (_$practitioner_detail53 = _$practitioner_detail52[0]) === null || _$practitioner_detail53 === void 0 ? void 0 : _$practitioner_detail53.display) || "",
|
|
41313
|
+
clinic: (_ === null || _ === void 0 ? void 0 : (_$practitioner_detail54 = _.practitioner_details) === null || _$practitioner_detail54 === void 0 ? void 0 : (_$practitioner_detail55 = _$practitioner_detail54[0]) === null || _$practitioner_detail55 === void 0 ? void 0 : _$practitioner_detail55.clinic) || "",
|
|
41227
41314
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status8 = _.status) === null || _$status8 === void 0 ? void 0 : _$status8.display) || "",
|
|
41228
41315
|
action: true
|
|
41229
41316
|
};
|
|
@@ -41270,7 +41357,7 @@ var GET_TODAY_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getToda
|
|
|
41270
41357
|
case 5:
|
|
41271
41358
|
data = _context17.sent;
|
|
41272
41359
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result17 = data.result) === null || _data$result17 === void 0 ? void 0 : _data$result17.map(function (_) {
|
|
41273
|
-
var _$
|
|
41360
|
+
var _$patient_id25, _$patient_id25$, _$patient_id25$$name, _$patient_id26, _$patient_id26$, _$appointmentId54, _$appointmentId54$, _$appointmentId54$$Pe, _$appointmentId54$$Pe2, _$patient_id$0$teleco9, _$patient_id27, _$patient_id27$, _$patient_id27$$telec, _$patient_id27$$telec2, _$appointmentId55, _$appointmentId55$, _$appointmentId56, _$appointmentId56$, _$appointmentId57, _$appointmentId57$, _$appointmentId58, _$appointmentId58$, _$appointmentId59, _$appointmentId59$, _$visit_type9, _$practitioner_detail56, _$practitioner_detail57, _$practitioner_detail58, _$practitioner_detail59, _$practitioner_detail60, _$practitioner_detail61, _$practitioner_detail62, _$practitioner_detail63, _$practitioner_detail64, _$practitioner_detail65, _$status9;
|
|
41274
41361
|
|
|
41275
41362
|
return {
|
|
41276
41363
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -41310,12 +41397,12 @@ var GET_TODAY_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getToda
|
|
|
41310
41397
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
41311
41398
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
41312
41399
|
// }),
|
|
41313
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
41314
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
41315
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
41316
|
-
|
|
41317
|
-
|
|
41318
|
-
|
|
41400
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id25 = _.patient_id) === null || _$patient_id25 === void 0 ? void 0 : (_$patient_id25$ = _$patient_id25[0]) === null || _$patient_id25$ === void 0 ? void 0 : (_$patient_id25$$name = _$patient_id25$.name) === null || _$patient_id25$$name === void 0 ? void 0 : _$patient_id25$$name[0]) || {}),
|
|
41401
|
+
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id26 = _.patient_id) === null || _$patient_id26 === void 0 ? void 0 : (_$patient_id26$ = _$patient_id26[0]) === null || _$patient_id26$ === void 0 ? void 0 : _$patient_id26$.MRN) || "",
|
|
41402
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId54 = _.appointmentId) === null || _$appointmentId54 === void 0 ? void 0 : (_$appointmentId54$ = _$appointmentId54[0]) === null || _$appointmentId54$ === void 0 ? void 0 : (_$appointmentId54$$Pe = _$appointmentId54$.PersonID) === null || _$appointmentId54$$Pe === void 0 ? void 0 : (_$appointmentId54$$Pe2 = _$appointmentId54$$Pe[0]) === null || _$appointmentId54$$Pe2 === void 0 ? void 0 : _$appointmentId54$$Pe2.birthDay),
|
|
41403
|
+
contact: (_$patient_id$0$teleco9 = _ === null || _ === void 0 ? void 0 : (_$patient_id27 = _.patient_id) === null || _$patient_id27 === void 0 ? void 0 : (_$patient_id27$ = _$patient_id27[0]) === null || _$patient_id27$ === void 0 ? void 0 : (_$patient_id27$$telec = _$patient_id27$.telecom) === null || _$patient_id27$$telec === void 0 ? void 0 : (_$patient_id27$$telec2 = _$patient_id27$$telec[0]) === null || _$patient_id27$$telec2 === void 0 ? void 0 : _$patient_id27$$telec2.value) !== null && _$patient_id$0$teleco9 !== void 0 ? _$patient_id$0$teleco9 : "",
|
|
41404
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId55 = _.appointmentId) === null || _$appointmentId55 === void 0 ? void 0 : (_$appointmentId55$ = _$appointmentId55[0]) === null || _$appointmentId55$ === void 0 ? void 0 : _$appointmentId55$.appno) || "",
|
|
41405
|
+
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId56 = _.appointmentId) === null || _$appointmentId56 === void 0 ? void 0 : (_$appointmentId56$ = _$appointmentId56[0]) === null || _$appointmentId56$ === void 0 ? void 0 : _$appointmentId56$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId57 = _.appointmentId) === null || _$appointmentId57 === void 0 ? void 0 : (_$appointmentId57$ = _$appointmentId57[0]) === null || _$appointmentId57$ === void 0 ? void 0 : _$appointmentId57$.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId58 = _.appointmentId) === null || _$appointmentId58 === void 0 ? void 0 : (_$appointmentId58$ = _$appointmentId58[0]) === null || _$appointmentId58$ === void 0 ? void 0 : _$appointmentId58$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId59 = _.appointmentId) === null || _$appointmentId59 === void 0 ? void 0 : (_$appointmentId59$ = _$appointmentId59[0]) === null || _$appointmentId59$ === void 0 ? void 0 : _$appointmentId59$.start, "hh:mm A") : ""),
|
|
41319
41406
|
// date: JSON.stringify({
|
|
41320
41407
|
// date: _?.appointmentId?.[0]?.start
|
|
41321
41408
|
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
@@ -41330,6 +41417,10 @@ var GET_TODAY_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getToda
|
|
|
41330
41417
|
// }).join(", "),
|
|
41331
41418
|
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
41332
41419
|
// }),
|
|
41420
|
+
visitType: (_$visit_type9 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type9 !== void 0 ? _$visit_type9 : "",
|
|
41421
|
+
practitionerName: (_$practitioner_detail56 = _ === null || _ === void 0 ? void 0 : (_$practitioner_detail57 = _.practitioner_details) === null || _$practitioner_detail57 === void 0 ? void 0 : (_$practitioner_detail58 = _$practitioner_detail57[0]) === null || _$practitioner_detail58 === void 0 ? void 0 : _$practitioner_detail58.id_name) !== null && _$practitioner_detail56 !== void 0 ? _$practitioner_detail56 : "",
|
|
41422
|
+
speciality: (_ === null || _ === void 0 ? void 0 : (_$practitioner_detail59 = _.practitioner_details) === null || _$practitioner_detail59 === void 0 ? void 0 : (_$practitioner_detail60 = _$practitioner_detail59[0]) === null || _$practitioner_detail60 === void 0 ? void 0 : (_$practitioner_detail61 = _$practitioner_detail60.speciality) === null || _$practitioner_detail61 === void 0 ? void 0 : (_$practitioner_detail62 = _$practitioner_detail61[0]) === null || _$practitioner_detail62 === void 0 ? void 0 : (_$practitioner_detail63 = _$practitioner_detail62[0]) === null || _$practitioner_detail63 === void 0 ? void 0 : _$practitioner_detail63.display) || "",
|
|
41423
|
+
clinic: (_ === null || _ === void 0 ? void 0 : (_$practitioner_detail64 = _.practitioner_details) === null || _$practitioner_detail64 === void 0 ? void 0 : (_$practitioner_detail65 = _$practitioner_detail64[0]) === null || _$practitioner_detail65 === void 0 ? void 0 : _$practitioner_detail65.clinic) || "",
|
|
41333
41424
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status9 = _.status) === null || _$status9 === void 0 ? void 0 : _$status9.display) || "",
|
|
41334
41425
|
action: true
|
|
41335
41426
|
};
|
|
@@ -41376,7 +41467,7 @@ var GET_WALK_INS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getWalkInsD
|
|
|
41376
41467
|
case 5:
|
|
41377
41468
|
data = _context18.sent;
|
|
41378
41469
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result18 = data.result) === null || _data$result18 === void 0 ? void 0 : _data$result18.map(function (_) {
|
|
41379
|
-
var _$
|
|
41470
|
+
var _$patient_id28, _$patient_id28$, _$patient_id28$$name, _$patient_id29, _$patient_id29$, _$appointmentId60, _$appointmentId60$, _$appointmentId60$$Pe, _$appointmentId60$$Pe2, _$patient_id$0$teleco10, _$patient_id30, _$patient_id30$, _$patient_id30$$telec, _$patient_id30$$telec2, _$appointmentId61, _$appointmentId61$, _$appointmentId62, _$appointmentId62$, _$appointmentId63, _$appointmentId63$, _$appointmentId64, _$appointmentId64$, _$appointmentId65, _$appointmentId65$, _$visit_type10, _$practitioner_detail66, _$practitioner_detail67, _$practitioner_detail68, _$practitioner_detail69, _$practitioner_detail70, _$practitioner_detail71, _$practitioner_detail72, _$practitioner_detail73, _$practitioner_detail74, _$practitioner_detail75, _$status10;
|
|
41380
41471
|
|
|
41381
41472
|
return {
|
|
41382
41473
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -41416,12 +41507,12 @@ var GET_WALK_INS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getWalkInsD
|
|
|
41416
41507
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
41417
41508
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
41418
41509
|
// }),
|
|
41419
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
41420
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
41421
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
41422
|
-
|
|
41423
|
-
|
|
41424
|
-
|
|
41510
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id28 = _.patient_id) === null || _$patient_id28 === void 0 ? void 0 : (_$patient_id28$ = _$patient_id28[0]) === null || _$patient_id28$ === void 0 ? void 0 : (_$patient_id28$$name = _$patient_id28$.name) === null || _$patient_id28$$name === void 0 ? void 0 : _$patient_id28$$name[0]) || {}),
|
|
41511
|
+
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id29 = _.patient_id) === null || _$patient_id29 === void 0 ? void 0 : (_$patient_id29$ = _$patient_id29[0]) === null || _$patient_id29$ === void 0 ? void 0 : _$patient_id29$.MRN) || "",
|
|
41512
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId60 = _.appointmentId) === null || _$appointmentId60 === void 0 ? void 0 : (_$appointmentId60$ = _$appointmentId60[0]) === null || _$appointmentId60$ === void 0 ? void 0 : (_$appointmentId60$$Pe = _$appointmentId60$.PersonID) === null || _$appointmentId60$$Pe === void 0 ? void 0 : (_$appointmentId60$$Pe2 = _$appointmentId60$$Pe[0]) === null || _$appointmentId60$$Pe2 === void 0 ? void 0 : _$appointmentId60$$Pe2.birthDay),
|
|
41513
|
+
contact: (_$patient_id$0$teleco10 = _ === null || _ === void 0 ? void 0 : (_$patient_id30 = _.patient_id) === null || _$patient_id30 === void 0 ? void 0 : (_$patient_id30$ = _$patient_id30[0]) === null || _$patient_id30$ === void 0 ? void 0 : (_$patient_id30$$telec = _$patient_id30$.telecom) === null || _$patient_id30$$telec === void 0 ? void 0 : (_$patient_id30$$telec2 = _$patient_id30$$telec[0]) === null || _$patient_id30$$telec2 === void 0 ? void 0 : _$patient_id30$$telec2.value) !== null && _$patient_id$0$teleco10 !== void 0 ? _$patient_id$0$teleco10 : "",
|
|
41514
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId61 = _.appointmentId) === null || _$appointmentId61 === void 0 ? void 0 : (_$appointmentId61$ = _$appointmentId61[0]) === null || _$appointmentId61$ === void 0 ? void 0 : _$appointmentId61$.appno) || "",
|
|
41515
|
+
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId62 = _.appointmentId) === null || _$appointmentId62 === void 0 ? void 0 : (_$appointmentId62$ = _$appointmentId62[0]) === null || _$appointmentId62$ === void 0 ? void 0 : _$appointmentId62$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId63 = _.appointmentId) === null || _$appointmentId63 === void 0 ? void 0 : (_$appointmentId63$ = _$appointmentId63[0]) === null || _$appointmentId63$ === void 0 ? void 0 : _$appointmentId63$.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId64 = _.appointmentId) === null || _$appointmentId64 === void 0 ? void 0 : (_$appointmentId64$ = _$appointmentId64[0]) === null || _$appointmentId64$ === void 0 ? void 0 : _$appointmentId64$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId65 = _.appointmentId) === null || _$appointmentId65 === void 0 ? void 0 : (_$appointmentId65$ = _$appointmentId65[0]) === null || _$appointmentId65$ === void 0 ? void 0 : _$appointmentId65$.start, "hh:mm A") : ""),
|
|
41425
41516
|
// date: JSON.stringify({
|
|
41426
41517
|
// date: _?.appointmentId?.[0]?.start
|
|
41427
41518
|
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
@@ -41436,6 +41527,10 @@ var GET_WALK_INS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getWalkInsD
|
|
|
41436
41527
|
// }).join(", "),
|
|
41437
41528
|
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
41438
41529
|
// }),
|
|
41530
|
+
visitType: (_$visit_type10 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type10 !== void 0 ? _$visit_type10 : "",
|
|
41531
|
+
practitionerName: (_$practitioner_detail66 = _ === null || _ === void 0 ? void 0 : (_$practitioner_detail67 = _.practitioner_details) === null || _$practitioner_detail67 === void 0 ? void 0 : (_$practitioner_detail68 = _$practitioner_detail67[0]) === null || _$practitioner_detail68 === void 0 ? void 0 : _$practitioner_detail68.id_name) !== null && _$practitioner_detail66 !== void 0 ? _$practitioner_detail66 : "",
|
|
41532
|
+
speciality: (_ === null || _ === void 0 ? void 0 : (_$practitioner_detail69 = _.practitioner_details) === null || _$practitioner_detail69 === void 0 ? void 0 : (_$practitioner_detail70 = _$practitioner_detail69[0]) === null || _$practitioner_detail70 === void 0 ? void 0 : (_$practitioner_detail71 = _$practitioner_detail70.speciality) === null || _$practitioner_detail71 === void 0 ? void 0 : (_$practitioner_detail72 = _$practitioner_detail71[0]) === null || _$practitioner_detail72 === void 0 ? void 0 : (_$practitioner_detail73 = _$practitioner_detail72[0]) === null || _$practitioner_detail73 === void 0 ? void 0 : _$practitioner_detail73.display) || "",
|
|
41533
|
+
clinic: (_ === null || _ === void 0 ? void 0 : (_$practitioner_detail74 = _.practitioner_details) === null || _$practitioner_detail74 === void 0 ? void 0 : (_$practitioner_detail75 = _$practitioner_detail74[0]) === null || _$practitioner_detail75 === void 0 ? void 0 : _$practitioner_detail75.clinic) || "",
|
|
41439
41534
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status10 = _.status) === null || _$status10 === void 0 ? void 0 : _$status10.display) || "",
|
|
41440
41535
|
action: true
|
|
41441
41536
|
};
|
|
@@ -42852,7 +42947,7 @@ var orderSetDropDown = {
|
|
|
42852
42947
|
return {
|
|
42853
42948
|
db_name: dbName,
|
|
42854
42949
|
entity: "CA_OrderSet,CA_OrderSet_Applicability",
|
|
42855
|
-
filter: "CA_OrderSet._id == CA_OrderSet_Applicability.Ordersetcode && (CA_OrderSet_Applicability.specialty=='".concat(list.speciality, "'
|
|
42950
|
+
filter: "CA_OrderSet._id == CA_OrderSet_Applicability.Ordersetcode && (CA_OrderSet_Applicability.specialty=='".concat(list.speciality, "' && CA_OrderSet_Applicability.locationCode=='").concat(list.location, "' && CA_OrderSet_Applicability.practRoleId=='").concat(list.pract, "' && CA_OrderSet_Applicability.diagnosisCode=='").concat(list.diag, "')"),
|
|
42856
42951
|
return_fields: " distinct merge(CA_OrderSet,{components:(for comp in CA_OrderSet_Components filter comp._id in CA_OrderSet.components return merge(comp,{orderCatalog:merge(document(comp.orderCatalog),{ordertype:document(document(comp.orderCatalog).ordertype)},{ordercategory:document(document(comp.orderCatalog).ordercategory)}),ordercategory:document(comp.ordercategory),ordertype:document(comp.ordertype),IVDosDurUOM:document(comp.IVDosDurUOM),IVInfusRateUOM:document(comp.IVInfusRateUOM),IVInfusRateVolUOM:document(comp.IVInfusRateVolUOM),dfltDurUOM:document(comp.dfltDurUOM),dfltDurUOM:document(comp.dfltDurUOM),dfltFreqRateUnit:document(comp.dfltFreqRateUnit),dfltFreqValUnit:document(comp.dfltFreqValUnit),dfltOrderUOM:document(comp.dfltOrderUOM),route:document(comp.route)}))})"
|
|
42857
42952
|
}; // {
|
|
42858
42953
|
// db_name: dbName,
|
|
@@ -43012,19 +43107,20 @@ var makeMedicationData = function makeMedicationData(order, info) {
|
|
|
43012
43107
|
ivInfusionRateUOM: (_order$IVInfusRateUOM = order === null || order === void 0 ? void 0 : (_order$IVInfusRateUOM2 = order.IVInfusRateUOM) === null || _order$IVInfusRateUOM2 === void 0 ? void 0 : _order$IVInfusRateUOM2._id) !== null && _order$IVInfusRateUOM !== void 0 ? _order$IVInfusRateUOM : "",
|
|
43013
43108
|
dosageDurationValue: (_order$duration2 = order === null || order === void 0 ? void 0 : order.duration) !== null && _order$duration2 !== void 0 ? _order$duration2 : 0,
|
|
43014
43109
|
dosageDurationUOM: (_order$durationType$_2 = order === null || order === void 0 ? void 0 : (_order$durationType2 = order.durationType) === null || _order$durationType2 === void 0 ? void 0 : _order$durationType2._id) !== null && _order$durationType$_2 !== void 0 ? _order$durationType$_2 : "",
|
|
43015
|
-
UseAsFreqDose: [
|
|
43016
|
-
|
|
43017
|
-
|
|
43018
|
-
|
|
43019
|
-
|
|
43020
|
-
|
|
43021
|
-
|
|
43022
|
-
|
|
43023
|
-
|
|
43024
|
-
|
|
43025
|
-
|
|
43026
|
-
|
|
43027
|
-
|
|
43110
|
+
// UseAsFreqDose: [
|
|
43111
|
+
// {
|
|
43112
|
+
// frqGrpId: "number",
|
|
43113
|
+
// dispSeqNo: "number",
|
|
43114
|
+
// adminDate: "number",
|
|
43115
|
+
// adminTime: "time",
|
|
43116
|
+
// adminDosageQty: "number",
|
|
43117
|
+
// adminDosageUOM: "string",
|
|
43118
|
+
// adminDosageInstruction: "string",
|
|
43119
|
+
// adminFrDay: "number",
|
|
43120
|
+
// adminToDay: "number",
|
|
43121
|
+
// adminDosageFreqCode: "string",
|
|
43122
|
+
// },
|
|
43123
|
+
// ],
|
|
43028
43124
|
useAsTaperedDose: [// {
|
|
43029
43125
|
// tdGrpId: "number",
|
|
43030
43126
|
// dispSeqNo: "number",
|