primarycare-binder 1.1.66 → 1.1.67
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 +338 -188
- 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;
|
|
@@ -17809,7 +17809,8 @@ var ORGANIZATION_VISIT_REGISTRATION = createAsyncThunk("OrganizationRegisterPati
|
|
|
17809
17809
|
case 0:
|
|
17810
17810
|
payload = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
17811
17811
|
_ref4 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref4.rejectWithValue;
|
|
17812
|
-
|
|
17812
|
+
debugger;
|
|
17813
|
+
_context2.prev = 3;
|
|
17813
17814
|
payloaddata = payload.payloaddata, enId = payload.enId;
|
|
17814
17815
|
|
|
17815
17816
|
if (enId) {
|
|
@@ -17831,30 +17832,30 @@ var ORGANIZATION_VISIT_REGISTRATION = createAsyncThunk("OrganizationRegisterPati
|
|
|
17831
17832
|
}, payloaddata)];
|
|
17832
17833
|
}
|
|
17833
17834
|
|
|
17834
|
-
_context2.next =
|
|
17835
|
+
_context2.next = 8;
|
|
17835
17836
|
return fetchData$3({
|
|
17836
17837
|
body: JSON.stringify(body)
|
|
17837
17838
|
}, __uspsertUrl__);
|
|
17838
17839
|
|
|
17839
|
-
case
|
|
17840
|
+
case 8:
|
|
17840
17841
|
data = _context2.sent;
|
|
17841
17842
|
return _context2.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
17842
17843
|
data: data
|
|
17843
17844
|
}));
|
|
17844
17845
|
|
|
17845
|
-
case
|
|
17846
|
-
_context2.prev =
|
|
17847
|
-
_context2.t0 = _context2["catch"](
|
|
17846
|
+
case 12:
|
|
17847
|
+
_context2.prev = 12;
|
|
17848
|
+
_context2.t0 = _context2["catch"](3);
|
|
17848
17849
|
return _context2.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
17849
17850
|
message: _context2.t0.message
|
|
17850
17851
|
})));
|
|
17851
17852
|
|
|
17852
|
-
case
|
|
17853
|
+
case 15:
|
|
17853
17854
|
case "end":
|
|
17854
17855
|
return _context2.stop();
|
|
17855
17856
|
}
|
|
17856
17857
|
}
|
|
17857
|
-
}, _callee2, null, [[
|
|
17858
|
+
}, _callee2, null, [[3, 12]]);
|
|
17858
17859
|
})));
|
|
17859
17860
|
var ORGANIZATION_REFERRAL_REGISTRATION = createAsyncThunk("OrganizationRegisterPatientApiSlice/ReferralTrx", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
17860
17861
|
var payload,
|
|
@@ -18897,11 +18898,20 @@ var OrganizationRegisterPatientApiSlice$1 = OrganizationRegisterPatientApiSlice.
|
|
|
18897
18898
|
var dashboardQuery = {
|
|
18898
18899
|
totalAppointment: function totalAppointment(orgID, startDate, endDate, loginId) {
|
|
18899
18900
|
return {
|
|
18901
|
+
// 1: {
|
|
18902
|
+
// db_name: dbName,
|
|
18903
|
+
// entity: "Appointment",
|
|
18904
|
+
// 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`,
|
|
18905
|
+
// return_fields: "{Count:length}",
|
|
18906
|
+
// },
|
|
18900
18907
|
1: {
|
|
18901
|
-
db_name: dbName,
|
|
18902
|
-
entity: "Appointment",
|
|
18903
|
-
filter:
|
|
18904
|
-
|
|
18908
|
+
"db_name": dbName,
|
|
18909
|
+
"entity": "Appointment,Encounter",
|
|
18910
|
+
"filter": {
|
|
18911
|
+
"Appointment": "Appointment.start >= ".concat(startDate, " && Appointment.end <= ").concat(endDate, " && Appointment.orgid == '").concat(orgID, "' && Appointment.activestatus == true"),
|
|
18912
|
+
"Encounter": "Appointment.id in Encounter.appointmentId && first((Encounter.participant)[*].Practitioner_id) == ".concat(loginId, " && Encounter.activestatus == true collect with count into length")
|
|
18913
|
+
},
|
|
18914
|
+
"return_fields": "{Count:length}"
|
|
18905
18915
|
},
|
|
18906
18916
|
2: {
|
|
18907
18917
|
db_name: dbName,
|
|
@@ -19026,14 +19036,16 @@ var dashboardQuery = {
|
|
|
19026
19036
|
|
|
19027
19037
|
};
|
|
19028
19038
|
},
|
|
19029
|
-
patientWaitingTimeQuery: function patientWaitingTimeQuery(orgID, loginId) {
|
|
19039
|
+
patientWaitingTimeQuery: function patientWaitingTimeQuery(orgID, loginId, startDate, endDate) {
|
|
19030
19040
|
return {
|
|
19031
19041
|
1: {
|
|
19032
19042
|
db_name: dbName,
|
|
19033
19043
|
queryid: "21fd3638-914e-41a8-b6e5-36459565595a",
|
|
19034
19044
|
filter: {
|
|
19035
19045
|
practid: loginId,
|
|
19036
|
-
orgid: "".concat(orgID)
|
|
19046
|
+
orgid: "".concat(orgID),
|
|
19047
|
+
startDate: startDate,
|
|
19048
|
+
endDate: endDate
|
|
19037
19049
|
}
|
|
19038
19050
|
},
|
|
19039
19051
|
2: {
|
|
@@ -19041,7 +19053,9 @@ var dashboardQuery = {
|
|
|
19041
19053
|
queryid: "4a129656-d8e2-4a3c-9626-7488903118f9",
|
|
19042
19054
|
filter: {
|
|
19043
19055
|
practid: loginId,
|
|
19044
|
-
orgid: "".concat(orgID)
|
|
19056
|
+
orgid: "".concat(orgID),
|
|
19057
|
+
startDate: startDate,
|
|
19058
|
+
endDate: endDate
|
|
19045
19059
|
}
|
|
19046
19060
|
} // 3: {},
|
|
19047
19061
|
|
|
@@ -19049,14 +19063,23 @@ var dashboardQuery = {
|
|
|
19049
19063
|
},
|
|
19050
19064
|
firstVisit: function firstVisit(orgID, startDate, endDate, loginId) {
|
|
19051
19065
|
return {
|
|
19066
|
+
// 1: {
|
|
19067
|
+
// db_name: dbName,
|
|
19068
|
+
// entity: "Appointment,Encounter",
|
|
19069
|
+
// filter: {
|
|
19070
|
+
// Appointment: `Appointment.activestatus==true && Appointment.start>= ${startDate} && Appointment.end<=${endDate} && document(Appointment.resourcecode).id ==${loginId} && Appointment.orgid=='${orgID}' `,
|
|
19071
|
+
// Encounter: `Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==lower('First Visit') collect with count into length`,
|
|
19072
|
+
// },
|
|
19073
|
+
// return_fields: "{FirstVisitCount:length}",
|
|
19074
|
+
// },
|
|
19052
19075
|
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)==
|
|
19076
|
+
"db_name": dbName,
|
|
19077
|
+
"entity": "Appointment,Encounter",
|
|
19078
|
+
"filter": {
|
|
19079
|
+
"Appointment": "Appointment.start >= ".concat(startDate, " && Appointment.end <= ").concat(endDate, " && Appointment.orgid == '").concat(orgID, "' && Appointment.activestatus == true"),
|
|
19080
|
+
"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
19081
|
},
|
|
19059
|
-
return_fields: "{FirstVisitCount:length}"
|
|
19082
|
+
"return_fields": "{FirstVisitCount:length}"
|
|
19060
19083
|
},
|
|
19061
19084
|
2: {
|
|
19062
19085
|
db_name: dbName,
|
|
@@ -19081,14 +19104,24 @@ var dashboardQuery = {
|
|
|
19081
19104
|
},
|
|
19082
19105
|
OtherVisit: function OtherVisit(orgID, startDate, endDate, loginId) {
|
|
19083
19106
|
return {
|
|
19107
|
+
// 1: {
|
|
19108
|
+
// db_name: dbName,
|
|
19109
|
+
// entity: "Appointment,Encounter",
|
|
19110
|
+
// filter: {
|
|
19111
|
+
// Appointment: `Appointment.activestatus==true && Appointment.start>= ${startDate} && Appointment.end<=${endDate} && document(Appointment.resourcecode).id ==${loginId} && Appointment.orgid=='${orgID}' `,
|
|
19112
|
+
// Encounter:
|
|
19113
|
+
// "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==lower('Other Visits') collect with count into length",
|
|
19114
|
+
// },
|
|
19115
|
+
// return_fields: "{OtherVisitsCount:length}",
|
|
19116
|
+
// },
|
|
19084
19117
|
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)==
|
|
19118
|
+
"db_name": dbName,
|
|
19119
|
+
"entity": "Appointment,Encounter",
|
|
19120
|
+
"filter": {
|
|
19121
|
+
"Appointment": "Appointment.start >= ".concat(startDate, " && Appointment.end <= ").concat(endDate, " && Appointment.orgid == '").concat(orgID, "' && Appointment.activestatus == true"),
|
|
19122
|
+
"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
19123
|
},
|
|
19091
|
-
return_fields: "{OtherVisitsCount:length}"
|
|
19124
|
+
"return_fields": "{OtherVisitsCount:length}"
|
|
19092
19125
|
},
|
|
19093
19126
|
2: {
|
|
19094
19127
|
db_name: dbName,
|
|
@@ -19113,14 +19146,24 @@ var dashboardQuery = {
|
|
|
19113
19146
|
},
|
|
19114
19147
|
walkIns: function walkIns(orgID, startDate, endDate, loginId) {
|
|
19115
19148
|
return {
|
|
19149
|
+
// 1: {
|
|
19150
|
+
// db_name: dbName,
|
|
19151
|
+
// entity: "Appointment,Encounter",
|
|
19152
|
+
// filter: {
|
|
19153
|
+
// Appointment: `Appointment.activestatus==true && Appointment.start>= ${startDate} && Appointment.end<=${endDate} && document(Appointment.resourcecode).id ==${loginId} && Appointment.orgid=='${orgID}' `,
|
|
19154
|
+
// Encounter:
|
|
19155
|
+
// "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==lower('Walkin') collect with count into length",
|
|
19156
|
+
// },
|
|
19157
|
+
// return_fields: "{WalkinCount:length}",
|
|
19158
|
+
// },
|
|
19116
19159
|
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)==
|
|
19160
|
+
"db_name": dbName,
|
|
19161
|
+
"entity": "Appointment,Encounter",
|
|
19162
|
+
"filter": {
|
|
19163
|
+
"Appointment": "Appointment.start >= ".concat(startDate, " && Appointment.end <= ").concat(endDate, " && Appointment.orgid == '").concat(orgID, "' && Appointment.activestatus == true"),
|
|
19164
|
+
"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
19165
|
},
|
|
19123
|
-
return_fields: "{WalkinCount:length}"
|
|
19166
|
+
"return_fields": "{WalkinCount:length}"
|
|
19124
19167
|
},
|
|
19125
19168
|
2: {
|
|
19126
19169
|
db_name: dbName,
|
|
@@ -19145,14 +19188,24 @@ var dashboardQuery = {
|
|
|
19145
19188
|
},
|
|
19146
19189
|
newPatient: function newPatient(orgID, startDate, endDate, loginId) {
|
|
19147
19190
|
return {
|
|
19191
|
+
// 1: {
|
|
19192
|
+
// db_name: dbName,
|
|
19193
|
+
// entity: "Appointment,Encounter",
|
|
19194
|
+
// filter: {
|
|
19195
|
+
// Appointment: `Appointment.activestatus==true && Appointment.start>=${startDate} && Appointment.end<=${endDate} && document(Appointment.resourcecode).id ==${loginId} && Appointment.orgid=='${orgID}' `,
|
|
19196
|
+
// Encounter:
|
|
19197
|
+
// "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==lower('New Patient') collect with count into length",
|
|
19198
|
+
// },
|
|
19199
|
+
// return_fields: "{NewPatientCount:length}",
|
|
19200
|
+
// },
|
|
19148
19201
|
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)==
|
|
19202
|
+
"db_name": dbName,
|
|
19203
|
+
"entity": "Appointment,Encounter",
|
|
19204
|
+
"filter": {
|
|
19205
|
+
"Appointment": "Appointment.start >= ".concat(startDate, " && Appointment.end <= ").concat(endDate, " && Appointment.orgid == '").concat(orgID, "' && Appointment.activestatus == true"),
|
|
19206
|
+
"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
19207
|
},
|
|
19155
|
-
return_fields: "{NewPatientCount:length}"
|
|
19208
|
+
"return_fields": "{NewPatientCount:length}"
|
|
19156
19209
|
},
|
|
19157
19210
|
2: {
|
|
19158
19211
|
db_name: dbName,
|
|
@@ -19310,14 +19363,23 @@ var dashboardQuery = {
|
|
|
19310
19363
|
var visitQuery = {
|
|
19311
19364
|
checkedIn: function checkedIn(startDate, endDate, orgId, loginId, orGId) {
|
|
19312
19365
|
return {
|
|
19366
|
+
// 1: {
|
|
19367
|
+
// db_name: dbName,
|
|
19368
|
+
// entity: "Appointment,Encounter",
|
|
19369
|
+
// filter: {
|
|
19370
|
+
// Appointment: `Appointment.activestatus==true && Appointment.start>=${startDate} && Appointment.end<=${endDate} && document(Appointment.resourcecode).id ==${loginId} && Appointment.orgid=='${orGId}' `,
|
|
19371
|
+
// Encounter: `Appointment.id in Encounter.appointmentId && lower(first(document(Encounter.statushistory[*].status)[*].display))=='checked-in' collect with count into length`,
|
|
19372
|
+
// },
|
|
19373
|
+
// return_fields: "{CheckedIn:length}",
|
|
19374
|
+
// },
|
|
19313
19375
|
1: {
|
|
19314
|
-
db_name: dbName,
|
|
19315
|
-
entity: "Appointment,Encounter",
|
|
19316
|
-
filter: {
|
|
19317
|
-
Appointment: "Appointment.
|
|
19318
|
-
Encounter: "
|
|
19376
|
+
"db_name": dbName,
|
|
19377
|
+
"entity": "Appointment,Encounter",
|
|
19378
|
+
"filter": {
|
|
19379
|
+
"Appointment": "Appointment.start >= ".concat(startDate, " && Appointment.end <= ").concat(endDate, " && Appointment.orgid == '").concat(orGId, "' && Appointment.activestatus == true"),
|
|
19380
|
+
"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
19381
|
},
|
|
19320
|
-
return_fields: "{CheckedIn:length}"
|
|
19382
|
+
"return_fields": "{CheckedIn:length}"
|
|
19321
19383
|
},
|
|
19322
19384
|
2: {
|
|
19323
19385
|
db_name: dbName,
|
|
@@ -19627,6 +19689,8 @@ var PATIENT_WAITING_TIME = createAsyncThunk("dashboardApiSlice/patientWaitingTim
|
|
|
19627
19689
|
orgId,
|
|
19628
19690
|
roleId,
|
|
19629
19691
|
loginId,
|
|
19692
|
+
startDate,
|
|
19693
|
+
endDate,
|
|
19630
19694
|
data,
|
|
19631
19695
|
arr,
|
|
19632
19696
|
_args3 = arguments;
|
|
@@ -19638,32 +19702,33 @@ var PATIENT_WAITING_TIME = createAsyncThunk("dashboardApiSlice/patientWaitingTim
|
|
|
19638
19702
|
payload = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
|
19639
19703
|
_ref6 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref6.rejectWithValue;
|
|
19640
19704
|
_context3.prev = 2;
|
|
19641
|
-
orgId = payload.orgId, roleId = payload.roleId, loginId = payload.loginId;
|
|
19705
|
+
orgId = payload.orgId, roleId = payload.roleId, loginId = payload.loginId, startDate = payload.startDate, endDate = payload.endDate;
|
|
19642
19706
|
_context3.next = 6;
|
|
19643
19707
|
return fetchData$3({
|
|
19644
|
-
body: JSON.stringify(dashboardQuery.patientWaitingTimeQuery(orgId, JSON.parse(parseInt(loginId)))[roleId])
|
|
19708
|
+
body: JSON.stringify(dashboardQuery.patientWaitingTimeQuery(orgId, JSON.parse(parseInt(loginId)), JSON.parse(parseInt(startDate)), JSON.parse(parseInt(endDate)))[roleId])
|
|
19645
19709
|
}, __baseUrl__);
|
|
19646
19710
|
|
|
19647
19711
|
case 6:
|
|
19648
19712
|
data = _context3.sent;
|
|
19713
|
+
debugger;
|
|
19649
19714
|
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
19715
|
return _context3.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
19651
19716
|
data: arr
|
|
19652
19717
|
}));
|
|
19653
19718
|
|
|
19654
|
-
case
|
|
19655
|
-
_context3.prev =
|
|
19719
|
+
case 12:
|
|
19720
|
+
_context3.prev = 12;
|
|
19656
19721
|
_context3.t0 = _context3["catch"](2);
|
|
19657
19722
|
return _context3.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19658
19723
|
message: _context3.t0.message
|
|
19659
19724
|
})));
|
|
19660
19725
|
|
|
19661
|
-
case
|
|
19726
|
+
case 15:
|
|
19662
19727
|
case "end":
|
|
19663
19728
|
return _context3.stop();
|
|
19664
19729
|
}
|
|
19665
19730
|
}
|
|
19666
|
-
}, _callee3, null, [[2,
|
|
19731
|
+
}, _callee3, null, [[2, 12]]);
|
|
19667
19732
|
})));
|
|
19668
19733
|
var PATIENTSTATUSASSESSMENTPENDING = createAsyncThunk("dashboardApiSlice/patientStatusAssessmentPendin", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
|
|
19669
19734
|
var payload,
|
|
@@ -25303,12 +25368,18 @@ var SAVE_VITALS = createAsyncThunk("VitalsApiSlice/saveVitals", /*#__PURE__*/_as
|
|
|
25303
25368
|
stateDatakey = Object.keys(payload.dynamicValue).filter(function (e) {
|
|
25304
25369
|
return /^[A-Z0-9]+$/.exec(e);
|
|
25305
25370
|
});
|
|
25306
|
-
|
|
25371
|
+
stateValues.filter(function (val, i) {
|
|
25372
|
+
// if (i % 2 === 0) {
|
|
25373
|
+
if (!(val.endsWith("uom") || val.endsWith("error") || val.endsWith("normalorabnormal"))) {
|
|
25374
|
+
stateDatakey.push(val);
|
|
25375
|
+
}
|
|
25376
|
+
});
|
|
25377
|
+
_context4.next = 9;
|
|
25307
25378
|
return fetchData$3({
|
|
25308
25379
|
body: vitalsQueries.getOrganizationId(payload.orgid)
|
|
25309
25380
|
}, __readDocumentUrl__);
|
|
25310
25381
|
|
|
25311
|
-
case
|
|
25382
|
+
case 9:
|
|
25312
25383
|
orgData = _context4.sent;
|
|
25313
25384
|
component = [];
|
|
25314
25385
|
stateDatakey.map(function (val) {
|
|
@@ -25331,19 +25402,19 @@ var SAVE_VITALS = createAsyncThunk("VitalsApiSlice/saveVitals", /*#__PURE__*/_as
|
|
|
25331
25402
|
encounterid: payload.encounterid,
|
|
25332
25403
|
component: component
|
|
25333
25404
|
};
|
|
25334
|
-
_context4.next =
|
|
25405
|
+
_context4.next = 15;
|
|
25335
25406
|
return fetchData$3({
|
|
25336
25407
|
body: JSON.stringify(vitalsQueries.savedPayload(payloadData, payload.editId))
|
|
25337
25408
|
}, __uspsertUrl__);
|
|
25338
25409
|
|
|
25339
|
-
case
|
|
25410
|
+
case 15:
|
|
25340
25411
|
saveddata = _context4.sent;
|
|
25341
25412
|
return _context4.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
25342
25413
|
data: saveddata
|
|
25343
25414
|
}));
|
|
25344
25415
|
|
|
25345
|
-
case
|
|
25346
|
-
_context4.prev =
|
|
25416
|
+
case 19:
|
|
25417
|
+
_context4.prev = 19;
|
|
25347
25418
|
_context4.t0 = _context4["catch"](2);
|
|
25348
25419
|
// ;
|
|
25349
25420
|
alert(_context4.t0.message);
|
|
@@ -25351,12 +25422,12 @@ var SAVE_VITALS = createAsyncThunk("VitalsApiSlice/saveVitals", /*#__PURE__*/_as
|
|
|
25351
25422
|
message: _context4.t0.message
|
|
25352
25423
|
})));
|
|
25353
25424
|
|
|
25354
|
-
case
|
|
25425
|
+
case 23:
|
|
25355
25426
|
case "end":
|
|
25356
25427
|
return _context4.stop();
|
|
25357
25428
|
}
|
|
25358
25429
|
}
|
|
25359
|
-
}, _callee4, null, [[2,
|
|
25430
|
+
}, _callee4, null, [[2, 19]]);
|
|
25360
25431
|
})));
|
|
25361
25432
|
var GET_VITALS_BASED_ENCOUNTER = createAsyncThunk("VitalsApiSlice/vitalsBasedEncounter", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
|
|
25362
25433
|
var payload,
|
|
@@ -29301,10 +29372,16 @@ var GET_SPECIMENTYPE = createAsyncThunk("LabOrderApiSlice/get_specimentype", /*#
|
|
|
29301
29372
|
_ref30 = _args16.length > 1 ? _args16[1] : undefined, rejectWithValue = _ref30.rejectWithValue;
|
|
29302
29373
|
_context16.prev = 2;
|
|
29303
29374
|
body = {
|
|
29304
|
-
db_name: dbName,
|
|
29305
|
-
entity: "CodeableConceptMaster",
|
|
29306
|
-
filter: "CodeableConceptMaster.Type=='SPECIMENTYPE'",
|
|
29307
|
-
return_fields:
|
|
29375
|
+
// db_name: dbName,
|
|
29376
|
+
// entity: "CodeableConceptMaster",
|
|
29377
|
+
// filter: "CodeableConceptMaster.Type=='SPECIMENTYPE'",
|
|
29378
|
+
// return_fields:
|
|
29379
|
+
// "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})",
|
|
29380
|
+
db_name: "primarycare",
|
|
29381
|
+
entity: "CodingMaster",
|
|
29382
|
+
filter: "CodingMaster.Type == 'SPECIMENTYPE' && CodingMaster.status == true && CodingMaster.activestatus == true",
|
|
29383
|
+
return_fields: "KEEP(CodingMaster,'_id','id','_key','code','display','Type','status','activestatus')",
|
|
29384
|
+
sort: "CodingMaster.display"
|
|
29308
29385
|
};
|
|
29309
29386
|
_context16.next = 6;
|
|
29310
29387
|
return fetchData$3({
|
|
@@ -29317,11 +29394,11 @@ var GET_SPECIMENTYPE = createAsyncThunk("LabOrderApiSlice/get_specimentype", /*#
|
|
|
29317
29394
|
|
|
29318
29395
|
if (Array.isArray(data.result)) {
|
|
29319
29396
|
data.result.map(function (val, i) {
|
|
29320
|
-
var _val$coding$8, _val$coding$9;
|
|
29321
|
-
|
|
29322
29397
|
returnData.push({
|
|
29323
|
-
value: val
|
|
29324
|
-
label: val
|
|
29398
|
+
// value: val?.coding[0]?.display,
|
|
29399
|
+
// label: val?.coding[0]?.display,
|
|
29400
|
+
value: val === null || val === void 0 ? void 0 : val.display,
|
|
29401
|
+
label: val === null || val === void 0 ? void 0 : val._id
|
|
29325
29402
|
});
|
|
29326
29403
|
});
|
|
29327
29404
|
}
|
|
@@ -29361,10 +29438,16 @@ var GET_UOM = createAsyncThunk("LabOrderApiSlice/get_uom", /*#__PURE__*/_asyncTo
|
|
|
29361
29438
|
_ref32 = _args17.length > 1 ? _args17[1] : undefined, rejectWithValue = _ref32.rejectWithValue;
|
|
29362
29439
|
_context17.prev = 2;
|
|
29363
29440
|
body = {
|
|
29364
|
-
db_name: dbName,
|
|
29365
|
-
entity: "CodeableConceptMaster",
|
|
29366
|
-
filter: "CodeableConceptMaster.Type=='SPECIMENTYPE'",
|
|
29367
|
-
return_fields:
|
|
29441
|
+
// db_name: dbName,
|
|
29442
|
+
// entity: "CodeableConceptMaster",
|
|
29443
|
+
// filter: "CodeableConceptMaster.Type=='SPECIMENTYPE'",
|
|
29444
|
+
// return_fields:
|
|
29445
|
+
// "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})",
|
|
29446
|
+
db_name: "primarycare",
|
|
29447
|
+
entity: "CodingMaster",
|
|
29448
|
+
filter: "CodingMaster.Type == 'UOM' && CodingMaster.status == true && CodingMaster.activestatus == true",
|
|
29449
|
+
return_fields: "KEEP(CodingMaster,'_id','id','_key','code','display','Type','status','activestatus')",
|
|
29450
|
+
sort: "CodingMaster.display"
|
|
29368
29451
|
};
|
|
29369
29452
|
_context17.next = 6;
|
|
29370
29453
|
return fetchData$3({
|
|
@@ -29377,11 +29460,11 @@ var GET_UOM = createAsyncThunk("LabOrderApiSlice/get_uom", /*#__PURE__*/_asyncTo
|
|
|
29377
29460
|
|
|
29378
29461
|
if (Array.isArray(data.result)) {
|
|
29379
29462
|
data.result.map(function (val, i) {
|
|
29380
|
-
var _val$coding$10, _val$coding$11;
|
|
29381
|
-
|
|
29382
29463
|
returnData.push({
|
|
29383
|
-
value: val
|
|
29384
|
-
label: val
|
|
29464
|
+
// value: val?.coding[0]?.display,
|
|
29465
|
+
// label: val?.coding[0]?.display,
|
|
29466
|
+
value: val === null || val === void 0 ? void 0 : val.display,
|
|
29467
|
+
label: val === null || val === void 0 ? void 0 : val._id
|
|
29385
29468
|
});
|
|
29386
29469
|
});
|
|
29387
29470
|
}
|
|
@@ -29437,11 +29520,11 @@ var GET_BODYSITE = createAsyncThunk("LabOrderApiSlice/get_bodysite", /*#__PURE__
|
|
|
29437
29520
|
|
|
29438
29521
|
if (Array.isArray(data.result)) {
|
|
29439
29522
|
data.result.map(function (val, i) {
|
|
29440
|
-
var _val$coding$
|
|
29523
|
+
var _val$coding$8, _val$coding$9;
|
|
29441
29524
|
|
|
29442
29525
|
returnData.push({
|
|
29443
|
-
value: val === null || val === void 0 ? void 0 : (_val$coding$
|
|
29444
|
-
label: val === null || val === void 0 ? void 0 : (_val$coding$
|
|
29526
|
+
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,
|
|
29527
|
+
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
|
|
29445
29528
|
});
|
|
29446
29529
|
});
|
|
29447
29530
|
}
|
|
@@ -29497,11 +29580,11 @@ var GET_SPECCOLLMETHOD = createAsyncThunk("LabOrderApiSlice/get_speccollmethod",
|
|
|
29497
29580
|
|
|
29498
29581
|
if (Array.isArray(data.result)) {
|
|
29499
29582
|
data.result.map(function (val, i) {
|
|
29500
|
-
var _val$coding$
|
|
29583
|
+
var _val$coding$10, _val$coding$11;
|
|
29501
29584
|
|
|
29502
29585
|
returnData.push({
|
|
29503
|
-
value: val === null || val === void 0 ? void 0 : (_val$coding$
|
|
29504
|
-
label: val === null || val === void 0 ? void 0 : (_val$coding$
|
|
29586
|
+
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,
|
|
29587
|
+
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
|
|
29505
29588
|
});
|
|
29506
29589
|
});
|
|
29507
29590
|
}
|
|
@@ -30140,10 +30223,15 @@ var GET_INDICATION = createAsyncThunk("LabOrderApiSlice/get_indication", /*#__PU
|
|
|
30140
30223
|
_ref56 = _args29.length > 1 ? _args29[1] : undefined, rejectWithValue = _ref56.rejectWithValue;
|
|
30141
30224
|
_context29.prev = 2;
|
|
30142
30225
|
body = {
|
|
30143
|
-
"db_name": dbName,
|
|
30144
|
-
"entity": "CodingMaster",
|
|
30145
|
-
"filter": "CodingMaster.Type=='INDICATIONREASON' && CodingMaster.activestatus==true && CodingMaster.status==true",
|
|
30146
|
-
"return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|
|
30226
|
+
// "db_name": dbName,
|
|
30227
|
+
// "entity": "CodingMaster",
|
|
30228
|
+
// "filter": "CodingMaster.Type=='INDICATIONREASON' && CodingMaster.activestatus==true && CodingMaster.status==true",
|
|
30229
|
+
// "return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|
|
30230
|
+
db_name: "primarycare",
|
|
30231
|
+
entity: "CodingMaster",
|
|
30232
|
+
filter: "CodingMaster.Type == 'INDICATIONREASON' && CodingMaster.status == true && CodingMaster.activestatus == true",
|
|
30233
|
+
return_fields: "KEEP(CodingMaster,'_id','id','_key','code','display','Type','status','activestatus')",
|
|
30234
|
+
sort: "CodingMaster.display"
|
|
30147
30235
|
};
|
|
30148
30236
|
_context29.next = 6;
|
|
30149
30237
|
return fetchData$3({
|
|
@@ -33195,9 +33283,14 @@ var queries$4 = {
|
|
|
33195
33283
|
// Encounter/10046
|
|
33196
33284
|
treatment_indicate: function treatment_indicate() {
|
|
33197
33285
|
return {
|
|
33198
|
-
db_name:
|
|
33199
|
-
entity: "ReasonMaster",
|
|
33200
|
-
return_fields: "ReasonMaster"
|
|
33286
|
+
// db_name: `${dbName}`,
|
|
33287
|
+
// entity: "ReasonMaster",
|
|
33288
|
+
// return_fields: "ReasonMaster",
|
|
33289
|
+
db_name: "primarycare",
|
|
33290
|
+
entity: "CodingMaster",
|
|
33291
|
+
filter: "CodingMaster.Type == 'INDICATIONREASON' && CodingMaster.status == true && CodingMaster.activestatus == true",
|
|
33292
|
+
return_fields: "KEEP(CodingMaster,'_id','id','_key','code','display','Type','status','activestatus')",
|
|
33293
|
+
sort: "CodingMaster.display"
|
|
33201
33294
|
};
|
|
33202
33295
|
},
|
|
33203
33296
|
treatment_instruction: function treatment_instruction() {
|
|
@@ -34398,11 +34491,11 @@ var TREATMENT_INDICATE = createAsyncThunk("TreatmentSlice/getorderindicate", /*#
|
|
|
34398
34491
|
data = _context13.sent;
|
|
34399
34492
|
arr = [];
|
|
34400
34493
|
data.result.map(function (val) {
|
|
34401
|
-
var _val$ReasonDesc, _val$ReasonCode;
|
|
34402
|
-
|
|
34403
34494
|
arr.push({
|
|
34404
|
-
label:
|
|
34405
|
-
value:
|
|
34495
|
+
// label: val?.ReasonDesc ?? "",
|
|
34496
|
+
// value: val?.ReasonCode ?? "",
|
|
34497
|
+
value: val === null || val === void 0 ? void 0 : val._id,
|
|
34498
|
+
label: val === null || val === void 0 ? void 0 : val.display
|
|
34406
34499
|
});
|
|
34407
34500
|
});
|
|
34408
34501
|
return _context13.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -35109,9 +35202,14 @@ var queries$3 = (_queries = {
|
|
|
35109
35202
|
},
|
|
35110
35203
|
treatment_indicate: function treatment_indicate() {
|
|
35111
35204
|
return {
|
|
35112
|
-
db_name:
|
|
35113
|
-
entity: "ReasonMaster",
|
|
35114
|
-
return_fields: "ReasonMaster"
|
|
35205
|
+
// db_name: `${dbName}`,
|
|
35206
|
+
// entity: "ReasonMaster",
|
|
35207
|
+
// return_fields: "ReasonMaster",
|
|
35208
|
+
db_name: "primarycare",
|
|
35209
|
+
entity: "CodingMaster",
|
|
35210
|
+
filter: "CodingMaster.Type == 'INDICATIONREASON' && CodingMaster.status == true && CodingMaster.activestatus == true",
|
|
35211
|
+
return_fields: "KEEP(CodingMaster,'_id','id','_key','code','display','Type','status','activestatus')",
|
|
35212
|
+
sort: "CodingMaster.display"
|
|
35115
35213
|
};
|
|
35116
35214
|
},
|
|
35117
35215
|
treatment_instruction: function treatment_instruction() {
|
|
@@ -36381,11 +36479,11 @@ var RAD_INDICATE = createAsyncThunk("RadiologySlice/getorderindicate", /*#__PURE
|
|
|
36381
36479
|
data = _context14.sent;
|
|
36382
36480
|
arr = [];
|
|
36383
36481
|
data.result.map(function (val) {
|
|
36384
|
-
var _val$ReasonDesc, _val$ReasonDesc2;
|
|
36385
|
-
|
|
36386
36482
|
arr.push({
|
|
36387
|
-
label:
|
|
36388
|
-
value:
|
|
36483
|
+
// label: val?.ReasonDesc ?? "",
|
|
36484
|
+
// value: val?.ReasonDesc ?? "",
|
|
36485
|
+
value: val === null || val === void 0 ? void 0 : val._id,
|
|
36486
|
+
label: val === null || val === void 0 ? void 0 : val.display
|
|
36389
36487
|
});
|
|
36390
36488
|
});
|
|
36391
36489
|
return _context14.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -39496,7 +39594,8 @@ var query$4 = {
|
|
|
39496
39594
|
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, "'"),
|
|
39497
39595
|
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")
|
|
39498
39596
|
},
|
|
39499
|
-
"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)}))})}"
|
|
39597
|
+
// "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)}))})}"
|
|
39598
|
+
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}))})"
|
|
39500
39599
|
};
|
|
39501
39600
|
},
|
|
39502
39601
|
getFirstVisitsNurse: function getFirstVisitsNurse(data) {
|
|
@@ -39568,7 +39667,8 @@ var query$4 = {
|
|
|
39568
39667
|
// "Appointment.id in Encounter.appointmentId && lower(first(document(Encounter.statushistory[*].status)[*].display))=='checked-in'",
|
|
39569
39668
|
|
|
39570
39669
|
},
|
|
39571
|
-
"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)}))})}"
|
|
39670
|
+
// "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)}))})}"
|
|
39671
|
+
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}))})"
|
|
39572
39672
|
};
|
|
39573
39673
|
},
|
|
39574
39674
|
getFirstVisitsDoctor: function getFirstVisitsDoctor(data) {
|
|
@@ -40257,7 +40357,7 @@ var GET_APPOINTMENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getAppoi
|
|
|
40257
40357
|
case 5:
|
|
40258
40358
|
data = _context7.sent;
|
|
40259
40359
|
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 (_) {
|
|
40260
|
-
var _$Appointment48, _$Appointment48$Perso, _$Appointment48$Perso2, _$Appointment48$Perso3, _$Appointment49, _$Appointment49$Perso, _$Appointment49$Perso2, _$
|
|
40360
|
+
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;
|
|
40261
40361
|
|
|
40262
40362
|
return {
|
|
40263
40363
|
// img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -40266,15 +40366,14 @@ var GET_APPOINTMENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getAppoi
|
|
|
40266
40366
|
// )
|
|
40267
40367
|
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
40268
40368
|
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]) || {}),
|
|
40269
|
-
|
|
40270
|
-
|
|
40369
|
+
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],
|
|
40370
|
+
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),
|
|
40271
40371
|
// genderData: "M",
|
|
40272
40372
|
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) : "",
|
|
40273
40373
|
// mrn: _?.patient_id?.[0]?.alias || "",
|
|
40274
40374
|
// age: _?.patient_id?.[0]?.age,
|
|
40275
|
-
|
|
40375
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$Appointment53 = _.Appointment) === null || _$Appointment53 === void 0 ? void 0 : _$Appointment53.appno) || "",
|
|
40276
40376
|
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") : ""),
|
|
40277
|
-
refNo: (_ === null || _ === void 0 ? void 0 : (_$Appointment58 = _.Appointment) === null || _$Appointment58 === void 0 ? void 0 : _$Appointment58.appno) || "",
|
|
40278
40377
|
// speciality: JSON.stringify({
|
|
40279
40378
|
// speciality: _?.Appointment?.SpecialtyID?.map((spl) => {
|
|
40280
40379
|
// return spl?.coding?.[0]?.display;
|
|
@@ -40282,7 +40381,11 @@ var GET_APPOINTMENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getAppoi
|
|
|
40282
40381
|
// clinic: _?.Appointment?.orgid?.name ?? ""
|
|
40283
40382
|
// }),
|
|
40284
40383
|
// clinic: _?.practitioner_details?.[0]?.clinic || "",
|
|
40285
|
-
|
|
40384
|
+
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 : "",
|
|
40385
|
+
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),
|
|
40386
|
+
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) || "",
|
|
40387
|
+
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) || "",
|
|
40388
|
+
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$Appointment61 = _.Appointment) === null || _$Appointment61 === void 0 ? void 0 : _$Appointment61.appstatus) || "",
|
|
40286
40389
|
// "View Patient": true,
|
|
40287
40390
|
// Attend: true,
|
|
40288
40391
|
// action: true,
|
|
@@ -40339,7 +40442,7 @@ var GET_FIRST_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getFirst
|
|
|
40339
40442
|
case 5:
|
|
40340
40443
|
data = _context8.sent;
|
|
40341
40444
|
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 (_) {
|
|
40342
|
-
var _$patient_id, _$patient_id$, _$patient_id$$name, _$patient_id2, _$patient_id2$, _$appointmentId, _$appointmentId$, _$appointmentId$$Pers, _$appointmentId$$Pers2, _$
|
|
40445
|
+
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;
|
|
40343
40446
|
|
|
40344
40447
|
return {
|
|
40345
40448
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -40376,9 +40479,13 @@ var GET_FIRST_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getFirst
|
|
|
40376
40479
|
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]) || {}),
|
|
40377
40480
|
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) || "",
|
|
40378
40481
|
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),
|
|
40482
|
+
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 : "",
|
|
40483
|
+
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) || "",
|
|
40484
|
+
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") : ""),
|
|
40379
40485
|
visitType: (_$visit_type = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type !== void 0 ? _$visit_type : "",
|
|
40380
|
-
|
|
40381
|
-
|
|
40486
|
+
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 : "",
|
|
40487
|
+
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) || "",
|
|
40488
|
+
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) || "",
|
|
40382
40489
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status = _.status) === null || _$status === void 0 ? void 0 : _$status.display) || "",
|
|
40383
40490
|
action: true // genderData: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
40384
40491
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? "",
|
|
@@ -40441,7 +40548,7 @@ var GET_NEW_PATIENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getNewPa
|
|
|
40441
40548
|
case 5:
|
|
40442
40549
|
data = _context9.sent;
|
|
40443
40550
|
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 (_) {
|
|
40444
|
-
var _$
|
|
40551
|
+
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;
|
|
40445
40552
|
|
|
40446
40553
|
return {
|
|
40447
40554
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -40480,12 +40587,13 @@ var GET_NEW_PATIENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getNewPa
|
|
|
40480
40587
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
40481
40588
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
40482
40589
|
// }),
|
|
40483
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
40484
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
40485
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
40590
|
+
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]) || {}),
|
|
40591
|
+
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) || "",
|
|
40592
|
+
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),
|
|
40593
|
+
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 : "",
|
|
40594
|
+
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) || "",
|
|
40595
|
+
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") : ""),
|
|
40486
40596
|
visitType: (_$visit_type2 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type2 !== void 0 ? _$visit_type2 : "",
|
|
40487
|
-
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") : ""),
|
|
40488
|
-
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) || "",
|
|
40489
40597
|
// date: JSON.stringify({
|
|
40490
40598
|
// date: _?.appointmentId?.[0]?.start
|
|
40491
40599
|
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
@@ -40500,6 +40608,9 @@ var GET_NEW_PATIENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getNewPa
|
|
|
40500
40608
|
// }).join(", "),
|
|
40501
40609
|
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
40502
40610
|
// }),
|
|
40611
|
+
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 : "",
|
|
40612
|
+
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) || "",
|
|
40613
|
+
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) || "",
|
|
40503
40614
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status2 = _.status) === null || _$status2 === void 0 ? void 0 : _$status2.display) || "",
|
|
40504
40615
|
action: true
|
|
40505
40616
|
};
|
|
@@ -40546,7 +40657,7 @@ var GET_OTHER_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getOther
|
|
|
40546
40657
|
case 5:
|
|
40547
40658
|
data = _context10.sent;
|
|
40548
40659
|
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 (_) {
|
|
40549
|
-
var _$
|
|
40660
|
+
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;
|
|
40550
40661
|
|
|
40551
40662
|
return {
|
|
40552
40663
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -40587,12 +40698,13 @@ var GET_OTHER_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getOther
|
|
|
40587
40698
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
40588
40699
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
40589
40700
|
// }),
|
|
40590
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
40591
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
40592
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
40701
|
+
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]) || {}),
|
|
40702
|
+
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) || "",
|
|
40703
|
+
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),
|
|
40704
|
+
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 : "",
|
|
40705
|
+
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) || "",
|
|
40706
|
+
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") : ""),
|
|
40593
40707
|
visitType: (_$visit_type3 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type3 !== void 0 ? _$visit_type3 : "",
|
|
40594
|
-
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") : ""),
|
|
40595
|
-
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) || "",
|
|
40596
40708
|
// date: JSON.stringify({
|
|
40597
40709
|
// date: _?.appointmentId?.[0]?.start
|
|
40598
40710
|
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
@@ -40607,6 +40719,9 @@ var GET_OTHER_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getOther
|
|
|
40607
40719
|
// }).join(", "),
|
|
40608
40720
|
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
40609
40721
|
// }),
|
|
40722
|
+
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 : "",
|
|
40723
|
+
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) || "",
|
|
40724
|
+
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) || "",
|
|
40610
40725
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status3 = _.status) === null || _$status3 === void 0 ? void 0 : _$status3.display) || "",
|
|
40611
40726
|
action: true
|
|
40612
40727
|
};
|
|
@@ -40653,7 +40768,7 @@ var GET_TODAY_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getToday
|
|
|
40653
40768
|
case 5:
|
|
40654
40769
|
data = _context11.sent;
|
|
40655
40770
|
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 (_) {
|
|
40656
|
-
var _$
|
|
40771
|
+
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;
|
|
40657
40772
|
|
|
40658
40773
|
return {
|
|
40659
40774
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid
|
|
@@ -40691,21 +40806,26 @@ var GET_TODAY_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getToday
|
|
|
40691
40806
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
40692
40807
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
40693
40808
|
// }),
|
|
40694
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
40695
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
40696
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
40697
|
-
|
|
40809
|
+
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]) || {}),
|
|
40810
|
+
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) || "",
|
|
40811
|
+
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),
|
|
40812
|
+
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 : "",
|
|
40698
40813
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
40699
40814
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ? JSON.stringify(_?.patient_id?.[0]?.telecom?.[0]?.value) : "",
|
|
40700
|
-
|
|
40701
|
-
|
|
40702
|
-
|
|
40815
|
+
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) || "",
|
|
40816
|
+
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") : ""),
|
|
40817
|
+
visitType: (_$visit_type4 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type4 !== void 0 ? _$visit_type4 : "",
|
|
40818
|
+
// appointmentStatus: _?.status?.display || "",
|
|
40703
40819
|
// speciality: JSON.stringify({
|
|
40704
40820
|
// speciality: _?.appointmentId?.[0]?.SpecialtyID?.map((spl) => {
|
|
40705
40821
|
// return spl?.coding?.[0]?.display;
|
|
40706
40822
|
// }).join(", "),
|
|
40707
40823
|
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
40708
40824
|
// }),
|
|
40825
|
+
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 : "",
|
|
40826
|
+
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) || "",
|
|
40827
|
+
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) || "",
|
|
40828
|
+
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status4 = _.status) === null || _$status4 === void 0 ? void 0 : _$status4.display) || "",
|
|
40709
40829
|
action: true
|
|
40710
40830
|
};
|
|
40711
40831
|
}) : [];
|
|
@@ -40751,7 +40871,7 @@ var GET_WALK_INS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getWalkInsNu
|
|
|
40751
40871
|
case 5:
|
|
40752
40872
|
data = _context12.sent;
|
|
40753
40873
|
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 (_) {
|
|
40754
|
-
var _$
|
|
40874
|
+
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;
|
|
40755
40875
|
|
|
40756
40876
|
return {
|
|
40757
40877
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -40792,12 +40912,13 @@ var GET_WALK_INS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getWalkInsNu
|
|
|
40792
40912
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
40793
40913
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
40794
40914
|
// }),
|
|
40795
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
40796
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
40797
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
40798
|
-
|
|
40799
|
-
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") : ""),
|
|
40915
|
+
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]) || {}),
|
|
40916
|
+
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) || "",
|
|
40917
|
+
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),
|
|
40918
|
+
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 : "",
|
|
40800
40919
|
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) || "",
|
|
40920
|
+
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") : ""),
|
|
40921
|
+
visitType: (_$visit_type5 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type5 !== void 0 ? _$visit_type5 : "",
|
|
40801
40922
|
// date: JSON.stringify({
|
|
40802
40923
|
// date: _?.appointmentId?.[0]?.start
|
|
40803
40924
|
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
@@ -40812,6 +40933,9 @@ var GET_WALK_INS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getWalkInsNu
|
|
|
40812
40933
|
// }).join(", "),
|
|
40813
40934
|
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
40814
40935
|
// }),
|
|
40936
|
+
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 : "",
|
|
40937
|
+
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) || "",
|
|
40938
|
+
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) || "",
|
|
40815
40939
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status5 = _.status) === null || _$status5 === void 0 ? void 0 : _$status5.display) || "",
|
|
40816
40940
|
action: true
|
|
40817
40941
|
};
|
|
@@ -40858,8 +40982,9 @@ var GET_APPOINTMENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getAppo
|
|
|
40858
40982
|
|
|
40859
40983
|
case 5:
|
|
40860
40984
|
data = _context13.sent;
|
|
40985
|
+
debugger;
|
|
40861
40986
|
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 (_) {
|
|
40862
|
-
var _$
|
|
40987
|
+
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;
|
|
40863
40988
|
|
|
40864
40989
|
return {
|
|
40865
40990
|
// img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -40874,12 +40999,14 @@ var GET_APPOINTMENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getAppo
|
|
|
40874
40999
|
// // genderData: "M",
|
|
40875
41000
|
// contact: _.Appointment?.PersonID?.[0]?.telecom?.[0]?.value ?? ""
|
|
40876
41001
|
// }),
|
|
40877
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
40878
|
-
mrn: ((_$
|
|
40879
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
40880
|
-
|
|
40881
|
-
|
|
40882
|
-
|
|
41002
|
+
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]) || {}),
|
|
41003
|
+
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]) || "",
|
|
41004
|
+
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),
|
|
41005
|
+
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 : "",
|
|
41006
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$Appointment66 = _.Appointment) === null || _$Appointment66 === void 0 ? void 0 : _$Appointment66.appno) || "",
|
|
41007
|
+
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") : ""),
|
|
41008
|
+
//encounterNo : _?.Encounter?.[0]?.encounter_no ?? "",
|
|
41009
|
+
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 : "",
|
|
40883
41010
|
// mrn: _?.patient_id?.[0]?.alias || "",
|
|
40884
41011
|
// age: _?.patient_id?.[0]?.age,
|
|
40885
41012
|
// date: JSON.stringify({
|
|
@@ -40897,38 +41024,40 @@ var GET_APPOINTMENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getAppo
|
|
|
40897
41024
|
// }).join(", ") ?? "",
|
|
40898
41025
|
// clinic: _?.Appointment?.orgid?.name ?? ""
|
|
40899
41026
|
// }),
|
|
40900
|
-
|
|
40901
|
-
|
|
41027
|
+
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),
|
|
41028
|
+
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) || "",
|
|
41029
|
+
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) || "",
|
|
41030
|
+
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$Appointment74 = _.Appointment) === null || _$Appointment74 === void 0 ? void 0 : _$Appointment74.appstatus) || "",
|
|
40902
41031
|
// "View Patient": true,
|
|
40903
41032
|
// Attend: true,
|
|
40904
|
-
|
|
41033
|
+
// type: "OP",
|
|
40905
41034
|
// appNo: _?.id ?? '',
|
|
40906
41035
|
// // data: _,
|
|
40907
41036
|
// enId: _.id,
|
|
40908
41037
|
// age: getAge(_?.PersonID?.[0]?.birthDay),
|
|
40909
41038
|
// // gender: _?.PersonID?.[0]?.gender,
|
|
40910
|
-
//
|
|
40911
|
-
// pId : _?.patient_id?.id,
|
|
41039
|
+
action: true // pId : _?.patient_id?.id,
|
|
40912
41040
|
|
|
40913
41041
|
};
|
|
40914
41042
|
}) : [];
|
|
41043
|
+
debugger;
|
|
40915
41044
|
return _context13.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
40916
41045
|
data: returnedData
|
|
40917
41046
|
}));
|
|
40918
41047
|
|
|
40919
|
-
case
|
|
40920
|
-
_context13.prev =
|
|
41048
|
+
case 12:
|
|
41049
|
+
_context13.prev = 12;
|
|
40921
41050
|
_context13.t0 = _context13["catch"](2);
|
|
40922
41051
|
return _context13.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
40923
41052
|
message: _context13.t0.message
|
|
40924
41053
|
})));
|
|
40925
41054
|
|
|
40926
|
-
case
|
|
41055
|
+
case 15:
|
|
40927
41056
|
case "end":
|
|
40928
41057
|
return _context13.stop();
|
|
40929
41058
|
}
|
|
40930
41059
|
}
|
|
40931
|
-
}, _callee13, null, [[2,
|
|
41060
|
+
}, _callee13, null, [[2, 12]]);
|
|
40932
41061
|
})));
|
|
40933
41062
|
var GET_FIRST_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getFirstVisitsDoctor", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee14() {
|
|
40934
41063
|
var payload,
|
|
@@ -40954,7 +41083,7 @@ var GET_FIRST_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getFirs
|
|
|
40954
41083
|
case 5:
|
|
40955
41084
|
data = _context14.sent;
|
|
40956
41085
|
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 (_) {
|
|
40957
|
-
var _$
|
|
41086
|
+
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;
|
|
40958
41087
|
|
|
40959
41088
|
return {
|
|
40960
41089
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -40994,12 +41123,12 @@ var GET_FIRST_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getFirs
|
|
|
40994
41123
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
40995
41124
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
40996
41125
|
// }),
|
|
40997
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
40998
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
40999
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
41000
|
-
|
|
41001
|
-
|
|
41002
|
-
|
|
41126
|
+
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]) || {}),
|
|
41127
|
+
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) || "",
|
|
41128
|
+
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),
|
|
41129
|
+
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 : "",
|
|
41130
|
+
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) || "",
|
|
41131
|
+
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") : ""),
|
|
41003
41132
|
// date: JSON.stringify({
|
|
41004
41133
|
// date: _?.appointmentId?.[0]?.start
|
|
41005
41134
|
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
@@ -41014,6 +41143,11 @@ var GET_FIRST_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getFirs
|
|
|
41014
41143
|
// }).join(", "),
|
|
41015
41144
|
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
41016
41145
|
// }),
|
|
41146
|
+
//encounterNo : _?.Appointment?.appointmentType ?? "en no",
|
|
41147
|
+
visitType: (_$visit_type6 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type6 !== void 0 ? _$visit_type6 : "",
|
|
41148
|
+
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 : "",
|
|
41149
|
+
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) || "",
|
|
41150
|
+
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) || "",
|
|
41017
41151
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status6 = _.status) === null || _$status6 === void 0 ? void 0 : _$status6.display) || "",
|
|
41018
41152
|
action: true
|
|
41019
41153
|
};
|
|
@@ -41060,7 +41194,7 @@ var GET_NEW_PATIENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getNewP
|
|
|
41060
41194
|
case 5:
|
|
41061
41195
|
data = _context15.sent;
|
|
41062
41196
|
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 (_) {
|
|
41063
|
-
var _$
|
|
41197
|
+
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;
|
|
41064
41198
|
|
|
41065
41199
|
return {
|
|
41066
41200
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -41100,12 +41234,12 @@ var GET_NEW_PATIENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getNewP
|
|
|
41100
41234
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
41101
41235
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
41102
41236
|
// }),
|
|
41103
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
41104
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
41105
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
41106
|
-
|
|
41107
|
-
|
|
41108
|
-
|
|
41237
|
+
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]) || {}),
|
|
41238
|
+
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) || "",
|
|
41239
|
+
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),
|
|
41240
|
+
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 : "",
|
|
41241
|
+
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) || "",
|
|
41242
|
+
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") : ""),
|
|
41109
41243
|
// date: JSON.stringify({
|
|
41110
41244
|
// date: _?.appointmentId?.[0]?.start
|
|
41111
41245
|
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
@@ -41120,6 +41254,10 @@ var GET_NEW_PATIENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getNewP
|
|
|
41120
41254
|
// }).join(", "),
|
|
41121
41255
|
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
41122
41256
|
// }),
|
|
41257
|
+
visitType: (_$visit_type7 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type7 !== void 0 ? _$visit_type7 : "",
|
|
41258
|
+
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 : "",
|
|
41259
|
+
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) || "",
|
|
41260
|
+
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) || "",
|
|
41123
41261
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status7 = _.status) === null || _$status7 === void 0 ? void 0 : _$status7.display) || "",
|
|
41124
41262
|
action: true
|
|
41125
41263
|
};
|
|
@@ -41166,7 +41304,7 @@ var GET_OTHER_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getOthe
|
|
|
41166
41304
|
case 5:
|
|
41167
41305
|
data = _context16.sent;
|
|
41168
41306
|
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 (_) {
|
|
41169
|
-
var _$
|
|
41307
|
+
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;
|
|
41170
41308
|
|
|
41171
41309
|
return {
|
|
41172
41310
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -41206,12 +41344,12 @@ var GET_OTHER_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getOthe
|
|
|
41206
41344
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
41207
41345
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
41208
41346
|
// }),
|
|
41209
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
41210
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
41211
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
41212
|
-
|
|
41213
|
-
|
|
41214
|
-
|
|
41347
|
+
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]) || {}),
|
|
41348
|
+
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) || "",
|
|
41349
|
+
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),
|
|
41350
|
+
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 : "",
|
|
41351
|
+
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) || "",
|
|
41352
|
+
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") : ""),
|
|
41215
41353
|
// date: JSON.stringify({
|
|
41216
41354
|
// date: _?.appointmentId?.[0]?.start
|
|
41217
41355
|
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
@@ -41226,6 +41364,10 @@ var GET_OTHER_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getOthe
|
|
|
41226
41364
|
// }).join(", "),
|
|
41227
41365
|
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
41228
41366
|
// }),
|
|
41367
|
+
visitType: (_$visit_type8 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type8 !== void 0 ? _$visit_type8 : "",
|
|
41368
|
+
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 : "",
|
|
41369
|
+
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) || "",
|
|
41370
|
+
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) || "",
|
|
41229
41371
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status8 = _.status) === null || _$status8 === void 0 ? void 0 : _$status8.display) || "",
|
|
41230
41372
|
action: true
|
|
41231
41373
|
};
|
|
@@ -41272,7 +41414,7 @@ var GET_TODAY_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getToda
|
|
|
41272
41414
|
case 5:
|
|
41273
41415
|
data = _context17.sent;
|
|
41274
41416
|
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 (_) {
|
|
41275
|
-
var _$
|
|
41417
|
+
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;
|
|
41276
41418
|
|
|
41277
41419
|
return {
|
|
41278
41420
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -41312,12 +41454,12 @@ var GET_TODAY_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getToda
|
|
|
41312
41454
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
41313
41455
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
41314
41456
|
// }),
|
|
41315
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
41316
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
41317
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
41318
|
-
|
|
41319
|
-
|
|
41320
|
-
|
|
41457
|
+
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]) || {}),
|
|
41458
|
+
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) || "",
|
|
41459
|
+
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),
|
|
41460
|
+
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 : "",
|
|
41461
|
+
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) || "",
|
|
41462
|
+
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") : ""),
|
|
41321
41463
|
// date: JSON.stringify({
|
|
41322
41464
|
// date: _?.appointmentId?.[0]?.start
|
|
41323
41465
|
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
@@ -41332,6 +41474,10 @@ var GET_TODAY_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getToda
|
|
|
41332
41474
|
// }).join(", "),
|
|
41333
41475
|
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
41334
41476
|
// }),
|
|
41477
|
+
visitType: (_$visit_type9 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type9 !== void 0 ? _$visit_type9 : "",
|
|
41478
|
+
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 : "",
|
|
41479
|
+
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) || "",
|
|
41480
|
+
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) || "",
|
|
41335
41481
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status9 = _.status) === null || _$status9 === void 0 ? void 0 : _$status9.display) || "",
|
|
41336
41482
|
action: true
|
|
41337
41483
|
};
|
|
@@ -41378,7 +41524,7 @@ var GET_WALK_INS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getWalkInsD
|
|
|
41378
41524
|
case 5:
|
|
41379
41525
|
data = _context18.sent;
|
|
41380
41526
|
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 (_) {
|
|
41381
|
-
var _$
|
|
41527
|
+
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;
|
|
41382
41528
|
|
|
41383
41529
|
return {
|
|
41384
41530
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -41418,12 +41564,12 @@ var GET_WALK_INS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getWalkInsD
|
|
|
41418
41564
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
41419
41565
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
41420
41566
|
// }),
|
|
41421
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
41422
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
41423
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
41424
|
-
|
|
41425
|
-
|
|
41426
|
-
|
|
41567
|
+
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]) || {}),
|
|
41568
|
+
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) || "",
|
|
41569
|
+
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),
|
|
41570
|
+
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 : "",
|
|
41571
|
+
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) || "",
|
|
41572
|
+
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") : ""),
|
|
41427
41573
|
// date: JSON.stringify({
|
|
41428
41574
|
// date: _?.appointmentId?.[0]?.start
|
|
41429
41575
|
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
@@ -41438,6 +41584,10 @@ var GET_WALK_INS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getWalkInsD
|
|
|
41438
41584
|
// }).join(", "),
|
|
41439
41585
|
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
41440
41586
|
// }),
|
|
41587
|
+
visitType: (_$visit_type10 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type10 !== void 0 ? _$visit_type10 : "",
|
|
41588
|
+
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 : "",
|
|
41589
|
+
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) || "",
|
|
41590
|
+
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) || "",
|
|
41441
41591
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status10 = _.status) === null || _$status10 === void 0 ? void 0 : _$status10.display) || "",
|
|
41442
41592
|
action: true
|
|
41443
41593
|
};
|