primarycare-binder 1.1.66 → 1.1.69
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 +388 -288
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -10399,7 +10399,7 @@ var PATIENT_SDI_READ = createAsyncThunk("patientReducer/readPatientSbi", /*#__PU
|
|
|
10399
10399
|
data = {
|
|
10400
10400
|
db_name: dbName,
|
|
10401
10401
|
entity: "SMGeographicMaster",
|
|
10402
|
-
filter: "lower(document(SMGeographicMaster.geogLevelType).display)=='country' && SMGeographicMaster.activestatus == true",
|
|
10402
|
+
filter: "lower(document(SMGeographicMaster.geogLevelType).display)=='country' && SMGeographicMaster.activestatus == true && SMGeographicMaster.active == true",
|
|
10403
10403
|
return_fields: "{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode,GeoLocationISDCode:SMGeographicMaster.GeoLocationISDCode}"
|
|
10404
10404
|
};
|
|
10405
10405
|
_context7.next = 6;
|
|
@@ -12411,6 +12411,7 @@ var REASON_FOR_APPT_CANCEL_MODIFY = createAsyncThunk("appointmentReducer/reasonF
|
|
|
12411
12411
|
db_name: dbName,
|
|
12412
12412
|
entity: "CodingMaster",
|
|
12413
12413
|
filter: "CodingMaster.Type=='".concat(payload.type, "' && CodingMaster.activestatus==true"),
|
|
12414
|
+
sort: "CodingMaster.display ASC",
|
|
12414
12415
|
return_fields: "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|
|
12415
12416
|
};
|
|
12416
12417
|
_context16.next = 6;
|
|
@@ -17809,7 +17810,8 @@ var ORGANIZATION_VISIT_REGISTRATION = createAsyncThunk("OrganizationRegisterPati
|
|
|
17809
17810
|
case 0:
|
|
17810
17811
|
payload = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
17811
17812
|
_ref4 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref4.rejectWithValue;
|
|
17812
|
-
|
|
17813
|
+
debugger;
|
|
17814
|
+
_context2.prev = 3;
|
|
17813
17815
|
payloaddata = payload.payloaddata, enId = payload.enId;
|
|
17814
17816
|
|
|
17815
17817
|
if (enId) {
|
|
@@ -17831,30 +17833,30 @@ var ORGANIZATION_VISIT_REGISTRATION = createAsyncThunk("OrganizationRegisterPati
|
|
|
17831
17833
|
}, payloaddata)];
|
|
17832
17834
|
}
|
|
17833
17835
|
|
|
17834
|
-
_context2.next =
|
|
17836
|
+
_context2.next = 8;
|
|
17835
17837
|
return fetchData$3({
|
|
17836
17838
|
body: JSON.stringify(body)
|
|
17837
17839
|
}, __uspsertUrl__);
|
|
17838
17840
|
|
|
17839
|
-
case
|
|
17841
|
+
case 8:
|
|
17840
17842
|
data = _context2.sent;
|
|
17841
17843
|
return _context2.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
17842
17844
|
data: data
|
|
17843
17845
|
}));
|
|
17844
17846
|
|
|
17845
|
-
case
|
|
17846
|
-
_context2.prev =
|
|
17847
|
-
_context2.t0 = _context2["catch"](
|
|
17847
|
+
case 12:
|
|
17848
|
+
_context2.prev = 12;
|
|
17849
|
+
_context2.t0 = _context2["catch"](3);
|
|
17848
17850
|
return _context2.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
17849
17851
|
message: _context2.t0.message
|
|
17850
17852
|
})));
|
|
17851
17853
|
|
|
17852
|
-
case
|
|
17854
|
+
case 15:
|
|
17853
17855
|
case "end":
|
|
17854
17856
|
return _context2.stop();
|
|
17855
17857
|
}
|
|
17856
17858
|
}
|
|
17857
|
-
}, _callee2, null, [[
|
|
17859
|
+
}, _callee2, null, [[3, 12]]);
|
|
17858
17860
|
})));
|
|
17859
17861
|
var ORGANIZATION_REFERRAL_REGISTRATION = createAsyncThunk("OrganizationRegisterPatientApiSlice/ReferralTrx", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
17860
17862
|
var payload,
|
|
@@ -18897,11 +18899,20 @@ var OrganizationRegisterPatientApiSlice$1 = OrganizationRegisterPatientApiSlice.
|
|
|
18897
18899
|
var dashboardQuery = {
|
|
18898
18900
|
totalAppointment: function totalAppointment(orgID, startDate, endDate, loginId) {
|
|
18899
18901
|
return {
|
|
18902
|
+
// 1: {
|
|
18903
|
+
// db_name: dbName,
|
|
18904
|
+
// entity: "Appointment",
|
|
18905
|
+
// filter: `Appointment.activestatus==true && Appointment.orgid=='${orgID}' && Appointment.start>=${startDate} && Appointment.end<=${endDate} && lower(Appointment.appointmentType)!='cancelled' && document(Appointment.resourcecode).id ==${loginId} collect with count into length`,
|
|
18906
|
+
// return_fields: "{Count:length}",
|
|
18907
|
+
// },
|
|
18900
18908
|
1: {
|
|
18901
|
-
db_name: dbName,
|
|
18902
|
-
entity: "Appointment",
|
|
18903
|
-
filter:
|
|
18904
|
-
|
|
18909
|
+
"db_name": dbName,
|
|
18910
|
+
"entity": "Appointment,Encounter",
|
|
18911
|
+
"filter": {
|
|
18912
|
+
"Appointment": "Appointment.start >= ".concat(startDate, " && Appointment.end <= ").concat(endDate, " && Appointment.orgid == '").concat(orgID, "' && Appointment.activestatus == true"),
|
|
18913
|
+
"Encounter": "Appointment.id in Encounter.appointmentId && first((Encounter.participant)[*].Practitioner_id) == ".concat(loginId, " && Encounter.activestatus == true collect with count into length")
|
|
18914
|
+
},
|
|
18915
|
+
"return_fields": "{Count:length}"
|
|
18905
18916
|
},
|
|
18906
18917
|
2: {
|
|
18907
18918
|
db_name: dbName,
|
|
@@ -19026,14 +19037,16 @@ var dashboardQuery = {
|
|
|
19026
19037
|
|
|
19027
19038
|
};
|
|
19028
19039
|
},
|
|
19029
|
-
patientWaitingTimeQuery: function patientWaitingTimeQuery(orgID, loginId) {
|
|
19040
|
+
patientWaitingTimeQuery: function patientWaitingTimeQuery(orgID, loginId, startDate, endDate) {
|
|
19030
19041
|
return {
|
|
19031
19042
|
1: {
|
|
19032
19043
|
db_name: dbName,
|
|
19033
19044
|
queryid: "21fd3638-914e-41a8-b6e5-36459565595a",
|
|
19034
19045
|
filter: {
|
|
19035
19046
|
practid: loginId,
|
|
19036
|
-
orgid: "".concat(orgID)
|
|
19047
|
+
orgid: "".concat(orgID),
|
|
19048
|
+
startDate: startDate,
|
|
19049
|
+
endDate: endDate
|
|
19037
19050
|
}
|
|
19038
19051
|
},
|
|
19039
19052
|
2: {
|
|
@@ -19041,7 +19054,9 @@ var dashboardQuery = {
|
|
|
19041
19054
|
queryid: "4a129656-d8e2-4a3c-9626-7488903118f9",
|
|
19042
19055
|
filter: {
|
|
19043
19056
|
practid: loginId,
|
|
19044
|
-
orgid: "".concat(orgID)
|
|
19057
|
+
orgid: "".concat(orgID),
|
|
19058
|
+
startDate: startDate,
|
|
19059
|
+
endDate: endDate
|
|
19045
19060
|
}
|
|
19046
19061
|
} // 3: {},
|
|
19047
19062
|
|
|
@@ -19049,14 +19064,23 @@ var dashboardQuery = {
|
|
|
19049
19064
|
},
|
|
19050
19065
|
firstVisit: function firstVisit(orgID, startDate, endDate, loginId) {
|
|
19051
19066
|
return {
|
|
19067
|
+
// 1: {
|
|
19068
|
+
// db_name: dbName,
|
|
19069
|
+
// entity: "Appointment,Encounter",
|
|
19070
|
+
// filter: {
|
|
19071
|
+
// Appointment: `Appointment.activestatus==true && Appointment.start>= ${startDate} && Appointment.end<=${endDate} && document(Appointment.resourcecode).id ==${loginId} && Appointment.orgid=='${orgID}' `,
|
|
19072
|
+
// Encounter: `Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==lower('First Visit') collect with count into length`,
|
|
19073
|
+
// },
|
|
19074
|
+
// return_fields: "{FirstVisitCount:length}",
|
|
19075
|
+
// },
|
|
19052
19076
|
1: {
|
|
19053
|
-
db_name: dbName,
|
|
19054
|
-
entity: "Appointment,Encounter",
|
|
19055
|
-
filter: {
|
|
19056
|
-
Appointment: "Appointment.
|
|
19057
|
-
Encounter: "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==
|
|
19077
|
+
"db_name": dbName,
|
|
19078
|
+
"entity": "Appointment,Encounter",
|
|
19079
|
+
"filter": {
|
|
19080
|
+
"Appointment": "Appointment.start >= ".concat(startDate, " && Appointment.end <= ").concat(endDate, " && Appointment.orgid == '").concat(orgID, "' && Appointment.activestatus == true"),
|
|
19081
|
+
"Encounter": "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type) == 'first visit' && first((Encounter.participant)[*].Practitioner_id) == ".concat(loginId, " && Encounter.activestatus == true collect with count into length")
|
|
19058
19082
|
},
|
|
19059
|
-
return_fields: "{FirstVisitCount:length}"
|
|
19083
|
+
"return_fields": "{FirstVisitCount:length}"
|
|
19060
19084
|
},
|
|
19061
19085
|
2: {
|
|
19062
19086
|
db_name: dbName,
|
|
@@ -19081,14 +19105,24 @@ var dashboardQuery = {
|
|
|
19081
19105
|
},
|
|
19082
19106
|
OtherVisit: function OtherVisit(orgID, startDate, endDate, loginId) {
|
|
19083
19107
|
return {
|
|
19108
|
+
// 1: {
|
|
19109
|
+
// db_name: dbName,
|
|
19110
|
+
// entity: "Appointment,Encounter",
|
|
19111
|
+
// filter: {
|
|
19112
|
+
// Appointment: `Appointment.activestatus==true && Appointment.start>= ${startDate} && Appointment.end<=${endDate} && document(Appointment.resourcecode).id ==${loginId} && Appointment.orgid=='${orgID}' `,
|
|
19113
|
+
// Encounter:
|
|
19114
|
+
// "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==lower('Other Visits') collect with count into length",
|
|
19115
|
+
// },
|
|
19116
|
+
// return_fields: "{OtherVisitsCount:length}",
|
|
19117
|
+
// },
|
|
19084
19118
|
1: {
|
|
19085
|
-
db_name: dbName,
|
|
19086
|
-
entity: "Appointment,Encounter",
|
|
19087
|
-
filter: {
|
|
19088
|
-
Appointment: "Appointment.
|
|
19089
|
-
Encounter: "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==
|
|
19119
|
+
"db_name": dbName,
|
|
19120
|
+
"entity": "Appointment,Encounter",
|
|
19121
|
+
"filter": {
|
|
19122
|
+
"Appointment": "Appointment.start >= ".concat(startDate, " && Appointment.end <= ").concat(endDate, " && Appointment.orgid == '").concat(orgID, "' && Appointment.activestatus == true"),
|
|
19123
|
+
"Encounter": "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type) == 'other visits' && first((Encounter.participant)[*].Practitioner_id) == ".concat(loginId, " && Encounter.activestatus == true collect with count into length")
|
|
19090
19124
|
},
|
|
19091
|
-
return_fields: "{OtherVisitsCount:length}"
|
|
19125
|
+
"return_fields": "{OtherVisitsCount:length}"
|
|
19092
19126
|
},
|
|
19093
19127
|
2: {
|
|
19094
19128
|
db_name: dbName,
|
|
@@ -19113,14 +19147,24 @@ var dashboardQuery = {
|
|
|
19113
19147
|
},
|
|
19114
19148
|
walkIns: function walkIns(orgID, startDate, endDate, loginId) {
|
|
19115
19149
|
return {
|
|
19150
|
+
// 1: {
|
|
19151
|
+
// db_name: dbName,
|
|
19152
|
+
// entity: "Appointment,Encounter",
|
|
19153
|
+
// filter: {
|
|
19154
|
+
// Appointment: `Appointment.activestatus==true && Appointment.start>= ${startDate} && Appointment.end<=${endDate} && document(Appointment.resourcecode).id ==${loginId} && Appointment.orgid=='${orgID}' `,
|
|
19155
|
+
// Encounter:
|
|
19156
|
+
// "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==lower('Walkin') collect with count into length",
|
|
19157
|
+
// },
|
|
19158
|
+
// return_fields: "{WalkinCount:length}",
|
|
19159
|
+
// },
|
|
19116
19160
|
1: {
|
|
19117
|
-
db_name: dbName,
|
|
19118
|
-
entity: "Appointment,Encounter",
|
|
19119
|
-
filter: {
|
|
19120
|
-
Appointment: "Appointment.
|
|
19121
|
-
Encounter: "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==
|
|
19161
|
+
"db_name": dbName,
|
|
19162
|
+
"entity": "Appointment,Encounter",
|
|
19163
|
+
"filter": {
|
|
19164
|
+
"Appointment": "Appointment.start >= ".concat(startDate, " && Appointment.end <= ").concat(endDate, " && Appointment.orgid == '").concat(orgID, "' && Appointment.activestatus == true"),
|
|
19165
|
+
"Encounter": "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type) == 'walkin' && first((Encounter.participant)[*].Practitioner_id) == ".concat(loginId, " && Encounter.activestatus == true collect with count into length")
|
|
19122
19166
|
},
|
|
19123
|
-
return_fields: "{WalkinCount:length}"
|
|
19167
|
+
"return_fields": "{WalkinCount:length}"
|
|
19124
19168
|
},
|
|
19125
19169
|
2: {
|
|
19126
19170
|
db_name: dbName,
|
|
@@ -19145,14 +19189,24 @@ var dashboardQuery = {
|
|
|
19145
19189
|
},
|
|
19146
19190
|
newPatient: function newPatient(orgID, startDate, endDate, loginId) {
|
|
19147
19191
|
return {
|
|
19192
|
+
// 1: {
|
|
19193
|
+
// db_name: dbName,
|
|
19194
|
+
// entity: "Appointment,Encounter",
|
|
19195
|
+
// filter: {
|
|
19196
|
+
// Appointment: `Appointment.activestatus==true && Appointment.start>=${startDate} && Appointment.end<=${endDate} && document(Appointment.resourcecode).id ==${loginId} && Appointment.orgid=='${orgID}' `,
|
|
19197
|
+
// Encounter:
|
|
19198
|
+
// "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==lower('New Patient') collect with count into length",
|
|
19199
|
+
// },
|
|
19200
|
+
// return_fields: "{NewPatientCount:length}",
|
|
19201
|
+
// },
|
|
19148
19202
|
1: {
|
|
19149
|
-
db_name: dbName,
|
|
19150
|
-
entity: "Appointment,Encounter",
|
|
19151
|
-
filter: {
|
|
19152
|
-
Appointment: "Appointment.
|
|
19153
|
-
Encounter: "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==
|
|
19203
|
+
"db_name": dbName,
|
|
19204
|
+
"entity": "Appointment,Encounter",
|
|
19205
|
+
"filter": {
|
|
19206
|
+
"Appointment": "Appointment.start >= ".concat(startDate, " && Appointment.end <= ").concat(endDate, " && Appointment.orgid == '").concat(orgID, "' && Appointment.activestatus == true"),
|
|
19207
|
+
"Encounter": "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type) == 'new patient' && first((Encounter.participant)[*].Practitioner_id) == ".concat(loginId, " && Encounter.activestatus == true collect with count into length")
|
|
19154
19208
|
},
|
|
19155
|
-
return_fields: "{NewPatientCount:length}"
|
|
19209
|
+
"return_fields": "{NewPatientCount:length}"
|
|
19156
19210
|
},
|
|
19157
19211
|
2: {
|
|
19158
19212
|
db_name: dbName,
|
|
@@ -19310,14 +19364,23 @@ var dashboardQuery = {
|
|
|
19310
19364
|
var visitQuery = {
|
|
19311
19365
|
checkedIn: function checkedIn(startDate, endDate, orgId, loginId, orGId) {
|
|
19312
19366
|
return {
|
|
19367
|
+
// 1: {
|
|
19368
|
+
// db_name: dbName,
|
|
19369
|
+
// entity: "Appointment,Encounter",
|
|
19370
|
+
// filter: {
|
|
19371
|
+
// Appointment: `Appointment.activestatus==true && Appointment.start>=${startDate} && Appointment.end<=${endDate} && document(Appointment.resourcecode).id ==${loginId} && Appointment.orgid=='${orGId}' `,
|
|
19372
|
+
// Encounter: `Appointment.id in Encounter.appointmentId && lower(first(document(Encounter.statushistory[*].status)[*].display))=='checked-in' collect with count into length`,
|
|
19373
|
+
// },
|
|
19374
|
+
// return_fields: "{CheckedIn:length}",
|
|
19375
|
+
// },
|
|
19313
19376
|
1: {
|
|
19314
|
-
db_name: dbName,
|
|
19315
|
-
entity: "Appointment,Encounter",
|
|
19316
|
-
filter: {
|
|
19317
|
-
Appointment: "Appointment.
|
|
19318
|
-
Encounter: "
|
|
19377
|
+
"db_name": dbName,
|
|
19378
|
+
"entity": "Appointment,Encounter",
|
|
19379
|
+
"filter": {
|
|
19380
|
+
"Appointment": "Appointment.start >= ".concat(startDate, " && Appointment.end <= ").concat(endDate, " && Appointment.orgid == '").concat(orGId, "' && Appointment.activestatus == true"),
|
|
19381
|
+
"Encounter": "lower(first(document(Encounter.statushistory[*].status)[*].display)) == 'checked-in' && Appointment.id in Encounter.appointmentId && first((Encounter.participant)[*].Practitioner_id) == ".concat(loginId, " && Encounter.activestatus == true collect with count into length")
|
|
19319
19382
|
},
|
|
19320
|
-
return_fields: "{CheckedIn:length}"
|
|
19383
|
+
"return_fields": "{CheckedIn:length}"
|
|
19321
19384
|
},
|
|
19322
19385
|
2: {
|
|
19323
19386
|
db_name: dbName,
|
|
@@ -19627,6 +19690,8 @@ var PATIENT_WAITING_TIME = createAsyncThunk("dashboardApiSlice/patientWaitingTim
|
|
|
19627
19690
|
orgId,
|
|
19628
19691
|
roleId,
|
|
19629
19692
|
loginId,
|
|
19693
|
+
startDate,
|
|
19694
|
+
endDate,
|
|
19630
19695
|
data,
|
|
19631
19696
|
arr,
|
|
19632
19697
|
_args3 = arguments;
|
|
@@ -19638,32 +19703,33 @@ var PATIENT_WAITING_TIME = createAsyncThunk("dashboardApiSlice/patientWaitingTim
|
|
|
19638
19703
|
payload = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
|
19639
19704
|
_ref6 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref6.rejectWithValue;
|
|
19640
19705
|
_context3.prev = 2;
|
|
19641
|
-
orgId = payload.orgId, roleId = payload.roleId, loginId = payload.loginId;
|
|
19706
|
+
orgId = payload.orgId, roleId = payload.roleId, loginId = payload.loginId, startDate = payload.startDate, endDate = payload.endDate;
|
|
19642
19707
|
_context3.next = 6;
|
|
19643
19708
|
return fetchData$3({
|
|
19644
|
-
body: JSON.stringify(dashboardQuery.patientWaitingTimeQuery(orgId, JSON.parse(parseInt(loginId)))[roleId])
|
|
19709
|
+
body: JSON.stringify(dashboardQuery.patientWaitingTimeQuery(orgId, JSON.parse(parseInt(loginId)), JSON.parse(parseInt(startDate)), JSON.parse(parseInt(endDate)))[roleId])
|
|
19645
19710
|
}, __baseUrl__);
|
|
19646
19711
|
|
|
19647
19712
|
case 6:
|
|
19648
19713
|
data = _context3.sent;
|
|
19714
|
+
debugger;
|
|
19649
19715
|
arr = [(_data$0$LessThan15$0$ = data === null || data === void 0 ? void 0 : (_data$ = data[0]) === null || _data$ === void 0 ? void 0 : (_data$$LessThan = _data$.LessThan15) === null || _data$$LessThan === void 0 ? void 0 : (_data$$LessThan$ = _data$$LessThan[0]) === null || _data$$LessThan$ === void 0 ? void 0 : _data$$LessThan$.LessThan15) !== null && _data$0$LessThan15$0$ !== void 0 ? _data$0$LessThan15$0$ : 0, (_data$0$MoreThan15$0$ = data === null || data === void 0 ? void 0 : (_data$2 = data[0]) === null || _data$2 === void 0 ? void 0 : (_data$2$MoreThan = _data$2.MoreThan15) === null || _data$2$MoreThan === void 0 ? void 0 : (_data$2$MoreThan$ = _data$2$MoreThan[0]) === null || _data$2$MoreThan$ === void 0 ? void 0 : _data$2$MoreThan$.MoreThan15) !== null && _data$0$MoreThan15$0$ !== void 0 ? _data$0$MoreThan15$0$ : 0, (_data$0$GreaterThan = data === null || data === void 0 ? void 0 : (_data$3 = data[0]) === null || _data$3 === void 0 ? void 0 : (_data$3$GreaterThan = _data$3.GreaterThan30) === null || _data$3$GreaterThan === void 0 ? void 0 : (_data$3$GreaterThan$ = _data$3$GreaterThan[0]) === null || _data$3$GreaterThan$ === void 0 ? void 0 : _data$3$GreaterThan$.GreaterThan30) !== null && _data$0$GreaterThan !== void 0 ? _data$0$GreaterThan : 0];
|
|
19650
19716
|
return _context3.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
19651
19717
|
data: arr
|
|
19652
19718
|
}));
|
|
19653
19719
|
|
|
19654
|
-
case
|
|
19655
|
-
_context3.prev =
|
|
19720
|
+
case 12:
|
|
19721
|
+
_context3.prev = 12;
|
|
19656
19722
|
_context3.t0 = _context3["catch"](2);
|
|
19657
19723
|
return _context3.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19658
19724
|
message: _context3.t0.message
|
|
19659
19725
|
})));
|
|
19660
19726
|
|
|
19661
|
-
case
|
|
19727
|
+
case 15:
|
|
19662
19728
|
case "end":
|
|
19663
19729
|
return _context3.stop();
|
|
19664
19730
|
}
|
|
19665
19731
|
}
|
|
19666
|
-
}, _callee3, null, [[2,
|
|
19732
|
+
}, _callee3, null, [[2, 12]]);
|
|
19667
19733
|
})));
|
|
19668
19734
|
var PATIENTSTATUSASSESSMENTPENDING = createAsyncThunk("dashboardApiSlice/patientStatusAssessmentPendin", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
|
|
19669
19735
|
var payload,
|
|
@@ -21837,7 +21903,7 @@ var visitStatsApiActions = {
|
|
|
21837
21903
|
var visitStatsApiSlice$1 = visitStatsApiSlice.reducer;
|
|
21838
21904
|
|
|
21839
21905
|
var queries$a = {
|
|
21840
|
-
relationship: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='RELATIONSHIP'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
21906
|
+
relationship: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='RELATIONSHIP' && CodeableConceptMaster.status==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
21841
21907
|
symptoms: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"SymptomsMapping\",\n \"return_fields\": \"SymptomsMapping\"\n }"),
|
|
21842
21908
|
Severity: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='CCSEVERITY'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
21843
21909
|
bodySite: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='CCBODYSITE'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
@@ -22814,7 +22880,7 @@ var queries$9 = {
|
|
|
22814
22880
|
Manifestation: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='MENIFESTATION'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
22815
22881
|
GradeType: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='GRADETYPE'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
22816
22882
|
Assesment: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='ASSESMENTREF'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
22817
|
-
GradeCode: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='
|
|
22883
|
+
GradeCode: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='GRADECODE'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
22818
22884
|
deleteDiagnosis: function deleteDiagnosis(id) {
|
|
22819
22885
|
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CA_Diagnosis\",\n \"filter\": \"CA_Diagnosis._id =='").concat(id, "'\"\n }");
|
|
22820
22886
|
}
|
|
@@ -24276,8 +24342,8 @@ var generateJSON$6 = function generateJSON(payload, orgId) {
|
|
|
24276
24342
|
"ivInfusionRateUOM": (_payload$ivInfusionRa = (_payload$ivInfusionRa2 = payload.ivInfusionRateUOM) === null || _payload$ivInfusionRa2 === void 0 ? void 0 : _payload$ivInfusionRa2.value) !== null && _payload$ivInfusionRa !== void 0 ? _payload$ivInfusionRa : "",
|
|
24277
24343
|
"dosageDurationValue": payload.dosetime ? parseInt(payload.dosetime) : 0,
|
|
24278
24344
|
"dosageDurationUOM": (_payload$doseOption$v = (_payload$doseOption = payload.doseOption) === null || _payload$doseOption === void 0 ? void 0 : _payload$doseOption.value) !== null && _payload$doseOption$v !== void 0 ? _payload$doseOption$v : "",
|
|
24279
|
-
"UseAsFreqDose": payload.UseAsFreqDose ? getUseAsFreqDose
|
|
24280
|
-
"useAsTaperedDose": payload.useAsTaperedDose ? getuseAsTaperedDose
|
|
24345
|
+
// "UseAsFreqDose": payload.UseAsFreqDose ? getUseAsFreqDose(payload.UseAsFreqDose, payload.unitsTypes) : [],
|
|
24346
|
+
// "useAsTaperedDose": payload.useAsTaperedDose ? getuseAsTaperedDose(payload.useAsTaperedDose) : [],
|
|
24281
24347
|
"useAsSlidingScaleDose": payload.useAsSlidingScaleDose ? getuseAsSlidingScaleDose$1(payload.useAsSlidingScaleDose) : [],
|
|
24282
24348
|
"occurStartDateTime": (_payload$occurStartDa = payload.occurStartDateTime) !== null && _payload$occurStartDa !== void 0 ? _payload$occurStartDa : 0,
|
|
24283
24349
|
"occurEndDateTime": (_payload$occurEndDate = payload.occurEndDateTime) !== null && _payload$occurEndDate !== void 0 ? _payload$occurEndDate : 0,
|
|
@@ -24321,63 +24387,6 @@ var generateJSON$6 = function generateJSON(payload, orgId) {
|
|
|
24321
24387
|
})];
|
|
24322
24388
|
};
|
|
24323
24389
|
|
|
24324
|
-
var getUseAsFreqDose$1 = function getUseAsFreqDose(list, fre) {
|
|
24325
|
-
var arr = [];
|
|
24326
|
-
list.map(function (val, i) {
|
|
24327
|
-
if ((fre === null || fre === void 0 ? void 0 : fre.label) === "EVERY THURSDAY AND FRIDAY") {
|
|
24328
|
-
var _val$, _val$2, _val$2$unit$value, _val$3, _val$3$unit, _val$adminFrDay, _val$adminToDay, _val$4, _val$4$value;
|
|
24329
|
-
|
|
24330
|
-
arr.push({
|
|
24331
|
-
// "frqGrpId": val.frqGrpId ?? 0,
|
|
24332
|
-
"dispSeqNo": i + 1,
|
|
24333
|
-
// "adminDate": val.adminDate ?? 0,
|
|
24334
|
-
// "adminTime": "time",
|
|
24335
|
-
"adminDosageQty": (val === null || val === void 0 ? void 0 : (_val$ = val[2]) === null || _val$ === void 0 ? void 0 : _val$.value) ? parseInt(val === null || val === void 0 ? void 0 : (_val$2 = val[2]) === null || _val$2 === void 0 ? void 0 : _val$2.value) : 0,
|
|
24336
|
-
"adminDosageUOM": (_val$2$unit$value = val === null || val === void 0 ? void 0 : (_val$3 = val[2]) === null || _val$3 === void 0 ? void 0 : (_val$3$unit = _val$3.unit) === null || _val$3$unit === void 0 ? void 0 : _val$3$unit.value) !== null && _val$2$unit$value !== void 0 ? _val$2$unit$value : "",
|
|
24337
|
-
"adminFrDay": (_val$adminFrDay = val.adminFrDay) !== null && _val$adminFrDay !== void 0 ? _val$adminFrDay : 0,
|
|
24338
|
-
"adminToDay": (_val$adminToDay = val.adminToDay) !== null && _val$adminToDay !== void 0 ? _val$adminToDay : 0,
|
|
24339
|
-
"adminDosageFreqCode": val === null || val === void 0 ? void 0 : (_val$4 = val[1]) === null || _val$4 === void 0 ? void 0 : (_val$4$value = _val$4.value) === null || _val$4$value === void 0 ? void 0 : _val$4$value.value
|
|
24340
|
-
});
|
|
24341
|
-
}
|
|
24342
|
-
|
|
24343
|
-
if ((fre === null || fre === void 0 ? void 0 : fre.label) === "Twice Daily") {
|
|
24344
|
-
var _val$5, _val$6, _val$7, _val$1$unit$value, _val$8, _val$8$unit;
|
|
24345
|
-
|
|
24346
|
-
arr.push({
|
|
24347
|
-
// "frqGrpId": val.frqGrpId ?? 0,
|
|
24348
|
-
"dispSeqNo": i + 1,
|
|
24349
|
-
// "adminDate": val.adminDate ?? 0,
|
|
24350
|
-
"adminTime": val === null || val === void 0 ? void 0 : (_val$5 = val[0]) === null || _val$5 === void 0 ? void 0 : _val$5.value,
|
|
24351
|
-
"adminDosageQty": (val === null || val === void 0 ? void 0 : (_val$6 = val[1]) === null || _val$6 === void 0 ? void 0 : _val$6.value) ? parseInt(val === null || val === void 0 ? void 0 : (_val$7 = val[1]) === null || _val$7 === void 0 ? void 0 : _val$7.value) : 0,
|
|
24352
|
-
"adminDosageUOM": (_val$1$unit$value = val === null || val === void 0 ? void 0 : (_val$8 = val[1]) === null || _val$8 === void 0 ? void 0 : (_val$8$unit = _val$8.unit) === null || _val$8$unit === void 0 ? void 0 : _val$8$unit.value) !== null && _val$1$unit$value !== void 0 ? _val$1$unit$value : "" // "adminDosageInstruction": val.adminDosageInstruction ?? ""
|
|
24353
|
-
|
|
24354
|
-
});
|
|
24355
|
-
}
|
|
24356
|
-
});
|
|
24357
|
-
return arr;
|
|
24358
|
-
};
|
|
24359
|
-
|
|
24360
|
-
var getuseAsTaperedDose$1 = function getuseAsTaperedDose(list) {
|
|
24361
|
-
var arr = [];
|
|
24362
|
-
list.map(function (val, i) {
|
|
24363
|
-
var _val$9, _val$10, _val$11, _val$12, _val$13, _val$14, _val$15, _val$16, _val$4$value$value, _val$17, _val$17$value, _val$18, _val$19, _val$5$unit$value, _val$20;
|
|
24364
|
-
|
|
24365
|
-
arr.push({
|
|
24366
|
-
// "tdGrpId": val.tdGrpId ?? 0,
|
|
24367
|
-
"dispSeqNo": i + 1,
|
|
24368
|
-
"adminFrDay": (val === null || val === void 0 ? void 0 : (_val$9 = val[0]) === null || _val$9 === void 0 ? void 0 : _val$9.value) ? parseInt(val === null || val === void 0 ? void 0 : (_val$10 = val[0]) === null || _val$10 === void 0 ? void 0 : _val$10.value) : 0,
|
|
24369
|
-
"adminToDay": (val === null || val === void 0 ? void 0 : (_val$11 = val[1]) === null || _val$11 === void 0 ? void 0 : _val$11.value) ? parseInt(val === null || val === void 0 ? void 0 : (_val$12 = val[1]) === null || _val$12 === void 0 ? void 0 : _val$12.value) : 0,
|
|
24370
|
-
"adminFrDate": (val === null || val === void 0 ? void 0 : (_val$13 = val[2]) === null || _val$13 === void 0 ? void 0 : _val$13.value) ? moment$1(val === null || val === void 0 ? void 0 : (_val$14 = val[2]) === null || _val$14 === void 0 ? void 0 : _val$14.value, "DD-MM-YYYY,h:mm a").unix() : 0,
|
|
24371
|
-
"adminToDate": (val === null || val === void 0 ? void 0 : (_val$15 = val[3]) === null || _val$15 === void 0 ? void 0 : _val$15.value) ? moment$1(val === null || val === void 0 ? void 0 : (_val$16 = val[3]) === null || _val$16 === void 0 ? void 0 : _val$16.value, "DD-MM-YYYY,h:mm a").unix() : 0,
|
|
24372
|
-
"adminDosageFreqCode": (_val$4$value$value = val === null || val === void 0 ? void 0 : (_val$17 = val[4]) === null || _val$17 === void 0 ? void 0 : (_val$17$value = _val$17.value) === null || _val$17$value === void 0 ? void 0 : _val$17$value.value) !== null && _val$4$value$value !== void 0 ? _val$4$value$value : "",
|
|
24373
|
-
"adminDosageStrength": (val === null || val === void 0 ? void 0 : (_val$18 = val[5]) === null || _val$18 === void 0 ? void 0 : _val$18.value) ? parseInt(val === null || val === void 0 ? void 0 : (_val$19 = val[5]) === null || _val$19 === void 0 ? void 0 : _val$19.value) : 0,
|
|
24374
|
-
"adminDosageStrengthUOM": (_val$5$unit$value = val === null || val === void 0 ? void 0 : (_val$20 = val[5]) === null || _val$20 === void 0 ? void 0 : _val$20.unit.value) !== null && _val$5$unit$value !== void 0 ? _val$5$unit$value : "" // "adminDosageInstruction": val.adminDosageInstruction ?? ""
|
|
24375
|
-
|
|
24376
|
-
});
|
|
24377
|
-
});
|
|
24378
|
-
return arr;
|
|
24379
|
-
};
|
|
24380
|
-
|
|
24381
24390
|
var getuseAsSlidingScaleDose$1 = function getuseAsSlidingScaleDose(list) {
|
|
24382
24391
|
var arr = [];
|
|
24383
24392
|
list.map(function (val) {
|
|
@@ -25303,12 +25312,18 @@ var SAVE_VITALS = createAsyncThunk("VitalsApiSlice/saveVitals", /*#__PURE__*/_as
|
|
|
25303
25312
|
stateDatakey = Object.keys(payload.dynamicValue).filter(function (e) {
|
|
25304
25313
|
return /^[A-Z0-9]+$/.exec(e);
|
|
25305
25314
|
});
|
|
25306
|
-
|
|
25315
|
+
stateValues.filter(function (val, i) {
|
|
25316
|
+
// if (i % 2 === 0) {
|
|
25317
|
+
if (!(val.endsWith("uom") || val.endsWith("error") || val.endsWith("normalorabnormal"))) {
|
|
25318
|
+
stateDatakey.push(val);
|
|
25319
|
+
}
|
|
25320
|
+
});
|
|
25321
|
+
_context4.next = 9;
|
|
25307
25322
|
return fetchData$3({
|
|
25308
25323
|
body: vitalsQueries.getOrganizationId(payload.orgid)
|
|
25309
25324
|
}, __readDocumentUrl__);
|
|
25310
25325
|
|
|
25311
|
-
case
|
|
25326
|
+
case 9:
|
|
25312
25327
|
orgData = _context4.sent;
|
|
25313
25328
|
component = [];
|
|
25314
25329
|
stateDatakey.map(function (val) {
|
|
@@ -25331,19 +25346,19 @@ var SAVE_VITALS = createAsyncThunk("VitalsApiSlice/saveVitals", /*#__PURE__*/_as
|
|
|
25331
25346
|
encounterid: payload.encounterid,
|
|
25332
25347
|
component: component
|
|
25333
25348
|
};
|
|
25334
|
-
_context4.next =
|
|
25349
|
+
_context4.next = 15;
|
|
25335
25350
|
return fetchData$3({
|
|
25336
25351
|
body: JSON.stringify(vitalsQueries.savedPayload(payloadData, payload.editId))
|
|
25337
25352
|
}, __uspsertUrl__);
|
|
25338
25353
|
|
|
25339
|
-
case
|
|
25354
|
+
case 15:
|
|
25340
25355
|
saveddata = _context4.sent;
|
|
25341
25356
|
return _context4.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
25342
25357
|
data: saveddata
|
|
25343
25358
|
}));
|
|
25344
25359
|
|
|
25345
|
-
case
|
|
25346
|
-
_context4.prev =
|
|
25360
|
+
case 19:
|
|
25361
|
+
_context4.prev = 19;
|
|
25347
25362
|
_context4.t0 = _context4["catch"](2);
|
|
25348
25363
|
// ;
|
|
25349
25364
|
alert(_context4.t0.message);
|
|
@@ -25351,12 +25366,12 @@ var SAVE_VITALS = createAsyncThunk("VitalsApiSlice/saveVitals", /*#__PURE__*/_as
|
|
|
25351
25366
|
message: _context4.t0.message
|
|
25352
25367
|
})));
|
|
25353
25368
|
|
|
25354
|
-
case
|
|
25369
|
+
case 23:
|
|
25355
25370
|
case "end":
|
|
25356
25371
|
return _context4.stop();
|
|
25357
25372
|
}
|
|
25358
25373
|
}
|
|
25359
|
-
}, _callee4, null, [[2,
|
|
25374
|
+
}, _callee4, null, [[2, 19]]);
|
|
25360
25375
|
})));
|
|
25361
25376
|
var GET_VITALS_BASED_ENCOUNTER = createAsyncThunk("VitalsApiSlice/vitalsBasedEncounter", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
|
|
25362
25377
|
var payload,
|
|
@@ -29301,10 +29316,16 @@ var GET_SPECIMENTYPE = createAsyncThunk("LabOrderApiSlice/get_specimentype", /*#
|
|
|
29301
29316
|
_ref30 = _args16.length > 1 ? _args16[1] : undefined, rejectWithValue = _ref30.rejectWithValue;
|
|
29302
29317
|
_context16.prev = 2;
|
|
29303
29318
|
body = {
|
|
29304
|
-
db_name: dbName,
|
|
29305
|
-
entity: "CodeableConceptMaster",
|
|
29306
|
-
filter: "CodeableConceptMaster.Type=='SPECIMENTYPE'",
|
|
29307
|
-
return_fields:
|
|
29319
|
+
// db_name: dbName,
|
|
29320
|
+
// entity: "CodeableConceptMaster",
|
|
29321
|
+
// filter: "CodeableConceptMaster.Type=='SPECIMENTYPE'",
|
|
29322
|
+
// return_fields:
|
|
29323
|
+
// "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})",
|
|
29324
|
+
db_name: "primarycare",
|
|
29325
|
+
entity: "CodingMaster",
|
|
29326
|
+
filter: "CodingMaster.Type == 'SPECIMENTYPE' && CodingMaster.status == true && CodingMaster.activestatus == true",
|
|
29327
|
+
return_fields: "KEEP(CodingMaster,'_id','id','_key','code','display','Type','status','activestatus')",
|
|
29328
|
+
sort: "CodingMaster.display"
|
|
29308
29329
|
};
|
|
29309
29330
|
_context16.next = 6;
|
|
29310
29331
|
return fetchData$3({
|
|
@@ -29317,11 +29338,11 @@ var GET_SPECIMENTYPE = createAsyncThunk("LabOrderApiSlice/get_specimentype", /*#
|
|
|
29317
29338
|
|
|
29318
29339
|
if (Array.isArray(data.result)) {
|
|
29319
29340
|
data.result.map(function (val, i) {
|
|
29320
|
-
var _val$coding$8, _val$coding$9;
|
|
29321
|
-
|
|
29322
29341
|
returnData.push({
|
|
29323
|
-
value: val
|
|
29324
|
-
label: val
|
|
29342
|
+
// value: val?.coding[0]?.display,
|
|
29343
|
+
// label: val?.coding[0]?.display,
|
|
29344
|
+
value: val === null || val === void 0 ? void 0 : val.display,
|
|
29345
|
+
label: val === null || val === void 0 ? void 0 : val._id
|
|
29325
29346
|
});
|
|
29326
29347
|
});
|
|
29327
29348
|
}
|
|
@@ -29361,10 +29382,16 @@ var GET_UOM = createAsyncThunk("LabOrderApiSlice/get_uom", /*#__PURE__*/_asyncTo
|
|
|
29361
29382
|
_ref32 = _args17.length > 1 ? _args17[1] : undefined, rejectWithValue = _ref32.rejectWithValue;
|
|
29362
29383
|
_context17.prev = 2;
|
|
29363
29384
|
body = {
|
|
29364
|
-
db_name: dbName,
|
|
29365
|
-
entity: "CodeableConceptMaster",
|
|
29366
|
-
filter: "CodeableConceptMaster.Type=='SPECIMENTYPE'",
|
|
29367
|
-
return_fields:
|
|
29385
|
+
// db_name: dbName,
|
|
29386
|
+
// entity: "CodeableConceptMaster",
|
|
29387
|
+
// filter: "CodeableConceptMaster.Type=='SPECIMENTYPE'",
|
|
29388
|
+
// return_fields:
|
|
29389
|
+
// "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})",
|
|
29390
|
+
db_name: "primarycare",
|
|
29391
|
+
entity: "CodingMaster",
|
|
29392
|
+
filter: "CodingMaster.Type == 'UOM' && CodingMaster.status == true && CodingMaster.activestatus == true",
|
|
29393
|
+
return_fields: "KEEP(CodingMaster,'_id','id','_key','code','display','Type','status','activestatus')",
|
|
29394
|
+
sort: "CodingMaster.display"
|
|
29368
29395
|
};
|
|
29369
29396
|
_context17.next = 6;
|
|
29370
29397
|
return fetchData$3({
|
|
@@ -29377,11 +29404,11 @@ var GET_UOM = createAsyncThunk("LabOrderApiSlice/get_uom", /*#__PURE__*/_asyncTo
|
|
|
29377
29404
|
|
|
29378
29405
|
if (Array.isArray(data.result)) {
|
|
29379
29406
|
data.result.map(function (val, i) {
|
|
29380
|
-
var _val$coding$10, _val$coding$11;
|
|
29381
|
-
|
|
29382
29407
|
returnData.push({
|
|
29383
|
-
value: val
|
|
29384
|
-
label: val
|
|
29408
|
+
// value: val?.coding[0]?.display,
|
|
29409
|
+
// label: val?.coding[0]?.display,
|
|
29410
|
+
value: val === null || val === void 0 ? void 0 : val.display,
|
|
29411
|
+
label: val === null || val === void 0 ? void 0 : val._id
|
|
29385
29412
|
});
|
|
29386
29413
|
});
|
|
29387
29414
|
}
|
|
@@ -29437,11 +29464,11 @@ var GET_BODYSITE = createAsyncThunk("LabOrderApiSlice/get_bodysite", /*#__PURE__
|
|
|
29437
29464
|
|
|
29438
29465
|
if (Array.isArray(data.result)) {
|
|
29439
29466
|
data.result.map(function (val, i) {
|
|
29440
|
-
var _val$coding$
|
|
29467
|
+
var _val$coding$8, _val$coding$9;
|
|
29441
29468
|
|
|
29442
29469
|
returnData.push({
|
|
29443
|
-
value: val === null || val === void 0 ? void 0 : (_val$coding$
|
|
29444
|
-
label: val === null || val === void 0 ? void 0 : (_val$coding$
|
|
29470
|
+
value: val === null || val === void 0 ? void 0 : (_val$coding$8 = val.coding[0]) === null || _val$coding$8 === void 0 ? void 0 : _val$coding$8.display,
|
|
29471
|
+
label: val === null || val === void 0 ? void 0 : (_val$coding$9 = val.coding[0]) === null || _val$coding$9 === void 0 ? void 0 : _val$coding$9.display
|
|
29445
29472
|
});
|
|
29446
29473
|
});
|
|
29447
29474
|
}
|
|
@@ -29497,11 +29524,11 @@ var GET_SPECCOLLMETHOD = createAsyncThunk("LabOrderApiSlice/get_speccollmethod",
|
|
|
29497
29524
|
|
|
29498
29525
|
if (Array.isArray(data.result)) {
|
|
29499
29526
|
data.result.map(function (val, i) {
|
|
29500
|
-
var _val$coding$
|
|
29527
|
+
var _val$coding$10, _val$coding$11;
|
|
29501
29528
|
|
|
29502
29529
|
returnData.push({
|
|
29503
|
-
value: val === null || val === void 0 ? void 0 : (_val$coding$
|
|
29504
|
-
label: val === null || val === void 0 ? void 0 : (_val$coding$
|
|
29530
|
+
value: val === null || val === void 0 ? void 0 : (_val$coding$10 = val.coding[0]) === null || _val$coding$10 === void 0 ? void 0 : _val$coding$10.display,
|
|
29531
|
+
label: val === null || val === void 0 ? void 0 : (_val$coding$11 = val.coding[0]) === null || _val$coding$11 === void 0 ? void 0 : _val$coding$11.display
|
|
29505
29532
|
});
|
|
29506
29533
|
});
|
|
29507
29534
|
}
|
|
@@ -30140,10 +30167,15 @@ var GET_INDICATION = createAsyncThunk("LabOrderApiSlice/get_indication", /*#__PU
|
|
|
30140
30167
|
_ref56 = _args29.length > 1 ? _args29[1] : undefined, rejectWithValue = _ref56.rejectWithValue;
|
|
30141
30168
|
_context29.prev = 2;
|
|
30142
30169
|
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')"
|
|
30170
|
+
// "db_name": dbName,
|
|
30171
|
+
// "entity": "CodingMaster",
|
|
30172
|
+
// "filter": "CodingMaster.Type=='INDICATIONREASON' && CodingMaster.activestatus==true && CodingMaster.status==true",
|
|
30173
|
+
// "return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|
|
30174
|
+
db_name: "primarycare",
|
|
30175
|
+
entity: "CodingMaster",
|
|
30176
|
+
filter: "CodingMaster.Type == 'INDICATIONREASON' && CodingMaster.status == true && CodingMaster.activestatus == true",
|
|
30177
|
+
return_fields: "KEEP(CodingMaster,'_id','id','_key','code','display','Type','status','activestatus')",
|
|
30178
|
+
sort: "CodingMaster.display"
|
|
30147
30179
|
};
|
|
30148
30180
|
_context29.next = 6;
|
|
30149
30181
|
return fetchData$3({
|
|
@@ -30669,7 +30701,13 @@ var queries$5 = {
|
|
|
30669
30701
|
DosageForm: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DosageForm\",\n \"return_fields\": \"DosageForm\"\n }"),
|
|
30670
30702
|
FrequencyMaster: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"FrequencyMaster\",\n \"filter\": \"FrequencyMaster.status==true\",\n \"return_fields\": \"FrequencyMaster\"\n }"),
|
|
30671
30703
|
DurationType: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugUOM\",\n \"filter\":\"LOWER(DOCUMENT(DrugUOM.UOMType).display) =='time' and DrugUOM.activestatus==true and DrugUOM.status==true\",\n \"return_fields\": \"DrugUOM\"\n }"),
|
|
30672
|
-
Priority:
|
|
30704
|
+
// Priority: `{
|
|
30705
|
+
// "db_name": "${dbName}",
|
|
30706
|
+
// "entity": "CodeableConceptMaster",
|
|
30707
|
+
// "filter": "CodeableConceptMaster.Type=='PRIORITY'",
|
|
30708
|
+
// "return_fields": "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})"
|
|
30709
|
+
// }`,
|
|
30710
|
+
Priority: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodingMaster\",\n \"filter\": \"CodingMaster.Type == 'PRIORITY' && CodingMaster.status == true && CodingMaster.activestatus == true\",\n \"return_fields\": \"KEEP(CodingMaster,'_id','id','_key','code','display','Type','status','shortdesc','longdesc','activestatus')\",\n \"sort\": \"CodingMaster.display\"\n }"),
|
|
30673
30711
|
DrugCategory: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugCategory\",\n \"return_fields\": \"DrugCategory\"\n }"),
|
|
30674
30712
|
OrderNature: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='ORDERNATURE'&& CodeableConceptMaster.status==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
30675
30713
|
OrderMode: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='ORDERMODE'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
@@ -31433,13 +31471,13 @@ var PRIORITY_MASTER = createAsyncThunk("MedicationMastersSlice/Priority_masters"
|
|
|
31433
31471
|
data = _context14.sent;
|
|
31434
31472
|
arr = [];
|
|
31435
31473
|
data.result.map(function (val) {
|
|
31436
|
-
var _val$
|
|
31474
|
+
var _val$_id, _val$_id2, _val$display, _val$id;
|
|
31437
31475
|
|
|
31438
31476
|
arr.push({
|
|
31439
|
-
value: val._id,
|
|
31440
|
-
masterId: (_val$
|
|
31441
|
-
label: (_val$
|
|
31442
|
-
id: val.id
|
|
31477
|
+
value: (_val$_id = val._id) !== null && _val$_id !== void 0 ? _val$_id : "",
|
|
31478
|
+
masterId: (_val$_id2 = val === null || val === void 0 ? void 0 : val._id) !== null && _val$_id2 !== void 0 ? _val$_id2 : "",
|
|
31479
|
+
label: (_val$display = val === null || val === void 0 ? void 0 : val.display) !== null && _val$display !== void 0 ? _val$display : "",
|
|
31480
|
+
id: (_val$id = val.id) !== null && _val$id !== void 0 ? _val$id : ""
|
|
31443
31481
|
});
|
|
31444
31482
|
});
|
|
31445
31483
|
return _context14.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -31534,11 +31572,11 @@ var ORDERNATURE_MASTER = createAsyncThunk("MedicationMastersSlice/OrderNature_ma
|
|
|
31534
31572
|
data = _context16.sent;
|
|
31535
31573
|
arr = [];
|
|
31536
31574
|
data.result.map(function (val) {
|
|
31537
|
-
var _val$coding$0$
|
|
31575
|
+
var _val$coding$0$display, _val$coding2;
|
|
31538
31576
|
|
|
31539
31577
|
arr.push({
|
|
31540
31578
|
value: val._id,
|
|
31541
|
-
label: (_val$coding$0$
|
|
31579
|
+
label: (_val$coding$0$display = (_val$coding2 = val.coding) === null || _val$coding2 === void 0 ? void 0 : _val$coding2[0].display) !== null && _val$coding$0$display !== void 0 ? _val$coding$0$display : "",
|
|
31542
31580
|
id: val.id
|
|
31543
31581
|
});
|
|
31544
31582
|
});
|
|
@@ -31584,11 +31622,11 @@ var ORDERMODE_MASTER = createAsyncThunk("MedicationMastersSlice/OrderMode_master
|
|
|
31584
31622
|
data = _context17.sent;
|
|
31585
31623
|
arr = [];
|
|
31586
31624
|
data.result.map(function (val) {
|
|
31587
|
-
var _val$coding$0$
|
|
31625
|
+
var _val$coding$0$display2, _val$coding3;
|
|
31588
31626
|
|
|
31589
31627
|
arr.push({
|
|
31590
31628
|
value: val._id,
|
|
31591
|
-
label: (_val$coding$0$
|
|
31629
|
+
label: (_val$coding$0$display2 = (_val$coding3 = val.coding) === null || _val$coding3 === void 0 ? void 0 : _val$coding3[0].display) !== null && _val$coding$0$display2 !== void 0 ? _val$coding$0$display2 : "",
|
|
31592
31630
|
id: val.id
|
|
31593
31631
|
});
|
|
31594
31632
|
});
|
|
@@ -31734,11 +31772,11 @@ var REASONCODE_MASTER = createAsyncThunk("MedicationMastersSlice/Reasoncode_mast
|
|
|
31734
31772
|
data = _context20.sent;
|
|
31735
31773
|
arr = [];
|
|
31736
31774
|
data.result.map(function (val) {
|
|
31737
|
-
var _val$
|
|
31775
|
+
var _val$display2;
|
|
31738
31776
|
|
|
31739
31777
|
arr.push({
|
|
31740
31778
|
value: val._id,
|
|
31741
|
-
label: (_val$
|
|
31779
|
+
label: (_val$display2 = val.display) !== null && _val$display2 !== void 0 ? _val$display2 : "",
|
|
31742
31780
|
id: val.id
|
|
31743
31781
|
});
|
|
31744
31782
|
});
|
|
@@ -31834,12 +31872,12 @@ var PATIENT_INSTRUCTIONS_MASTER = createAsyncThunk("MedicationMastersSlice/Patie
|
|
|
31834
31872
|
data = _context22.sent;
|
|
31835
31873
|
arr = [];
|
|
31836
31874
|
data.result.map(function (val) {
|
|
31837
|
-
var _val$coding$0$code, _val$
|
|
31875
|
+
var _val$coding$0$code, _val$coding4, _val$coding4$, _val$coding$0$display3, _val$coding5, _val$coding5$;
|
|
31838
31876
|
|
|
31839
31877
|
arr.push({
|
|
31840
31878
|
value: val._id,
|
|
31841
|
-
label: (_val$coding$0$code = (_val$
|
|
31842
|
-
display: (_val$coding$0$
|
|
31879
|
+
label: (_val$coding$0$code = (_val$coding4 = val.coding) === null || _val$coding4 === void 0 ? void 0 : (_val$coding4$ = _val$coding4[0]) === null || _val$coding4$ === void 0 ? void 0 : _val$coding4$.code) !== null && _val$coding$0$code !== void 0 ? _val$coding$0$code : "",
|
|
31880
|
+
display: (_val$coding$0$display3 = (_val$coding5 = val.coding) === null || _val$coding5 === void 0 ? void 0 : (_val$coding5$ = _val$coding5[0]) === null || _val$coding5$ === void 0 ? void 0 : _val$coding5$.display) !== null && _val$coding$0$display3 !== void 0 ? _val$coding$0$display3 : "",
|
|
31843
31881
|
id: val.id
|
|
31844
31882
|
});
|
|
31845
31883
|
});
|
|
@@ -31885,13 +31923,13 @@ var STATUS_MASTER = createAsyncThunk("MedicationMastersSlice/status_masters", /*
|
|
|
31885
31923
|
data = _context23.sent;
|
|
31886
31924
|
arr = [];
|
|
31887
31925
|
data.result.map(function (val) {
|
|
31888
|
-
var _val$coding$0$
|
|
31926
|
+
var _val$coding$0$display4, _val$coding6, _val$coding6$, _val$coding$0$code2, _val$coding7, _val$coding7$;
|
|
31889
31927
|
|
|
31890
31928
|
arr.push({
|
|
31891
31929
|
value: val._id,
|
|
31892
|
-
label: (_val$coding$0$
|
|
31930
|
+
label: (_val$coding$0$display4 = (_val$coding6 = val.coding) === null || _val$coding6 === void 0 ? void 0 : (_val$coding6$ = _val$coding6[0]) === null || _val$coding6$ === void 0 ? void 0 : _val$coding6$.display) !== null && _val$coding$0$display4 !== void 0 ? _val$coding$0$display4 : "",
|
|
31893
31931
|
id: val.id,
|
|
31894
|
-
code: (_val$coding$0$code2 = val === null || val === void 0 ? void 0 : (_val$
|
|
31932
|
+
code: (_val$coding$0$code2 = val === null || val === void 0 ? void 0 : (_val$coding7 = val.coding) === null || _val$coding7 === void 0 ? void 0 : (_val$coding7$ = _val$coding7[0]) === null || _val$coding7$ === void 0 ? void 0 : _val$coding7$.code) !== null && _val$coding$0$code2 !== void 0 ? _val$coding$0$code2 : ""
|
|
31895
31933
|
});
|
|
31896
31934
|
});
|
|
31897
31935
|
return _context23.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -32274,13 +32312,13 @@ var WORKFLOW_STATUS_MASTER = createAsyncThunk("MedicationMastersSlice/workflow_s
|
|
|
32274
32312
|
data = _context31.sent;
|
|
32275
32313
|
arr = [];
|
|
32276
32314
|
data.result.map(function (val) {
|
|
32277
|
-
var _val$coding$0$
|
|
32315
|
+
var _val$coding$0$display5, _val$coding8, _val$coding8$, _val$coding$0$code3, _val$coding9, _val$coding9$;
|
|
32278
32316
|
|
|
32279
32317
|
arr.push({
|
|
32280
32318
|
value: val._id,
|
|
32281
|
-
label: (_val$coding$0$
|
|
32319
|
+
label: (_val$coding$0$display5 = (_val$coding8 = val.coding) === null || _val$coding8 === void 0 ? void 0 : (_val$coding8$ = _val$coding8[0]) === null || _val$coding8$ === void 0 ? void 0 : _val$coding8$.display) !== null && _val$coding$0$display5 !== void 0 ? _val$coding$0$display5 : "",
|
|
32282
32320
|
id: val.id,
|
|
32283
|
-
code: (_val$coding$0$code3 = val === null || val === void 0 ? void 0 : (_val$
|
|
32321
|
+
code: (_val$coding$0$code3 = val === null || val === void 0 ? void 0 : (_val$coding9 = val.coding) === null || _val$coding9 === void 0 ? void 0 : (_val$coding9$ = _val$coding9[0]) === null || _val$coding9$ === void 0 ? void 0 : _val$coding9$.code) !== null && _val$coding$0$code3 !== void 0 ? _val$coding$0$code3 : ""
|
|
32284
32322
|
});
|
|
32285
32323
|
});
|
|
32286
32324
|
return _context31.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -33195,9 +33233,14 @@ var queries$4 = {
|
|
|
33195
33233
|
// Encounter/10046
|
|
33196
33234
|
treatment_indicate: function treatment_indicate() {
|
|
33197
33235
|
return {
|
|
33198
|
-
db_name:
|
|
33199
|
-
entity: "ReasonMaster",
|
|
33200
|
-
return_fields: "ReasonMaster"
|
|
33236
|
+
// db_name: `${dbName}`,
|
|
33237
|
+
// entity: "ReasonMaster",
|
|
33238
|
+
// return_fields: "ReasonMaster",
|
|
33239
|
+
db_name: "primarycare",
|
|
33240
|
+
entity: "CodingMaster",
|
|
33241
|
+
filter: "CodingMaster.Type == 'INDICATIONREASON' && CodingMaster.status == true && CodingMaster.activestatus == true",
|
|
33242
|
+
return_fields: "KEEP(CodingMaster,'_id','id','_key','code','display','Type','status','activestatus')",
|
|
33243
|
+
sort: "CodingMaster.display"
|
|
33201
33244
|
};
|
|
33202
33245
|
},
|
|
33203
33246
|
treatment_instruction: function treatment_instruction() {
|
|
@@ -34398,11 +34441,11 @@ var TREATMENT_INDICATE = createAsyncThunk("TreatmentSlice/getorderindicate", /*#
|
|
|
34398
34441
|
data = _context13.sent;
|
|
34399
34442
|
arr = [];
|
|
34400
34443
|
data.result.map(function (val) {
|
|
34401
|
-
var _val$ReasonDesc, _val$ReasonCode;
|
|
34402
|
-
|
|
34403
34444
|
arr.push({
|
|
34404
|
-
label:
|
|
34405
|
-
value:
|
|
34445
|
+
// label: val?.ReasonDesc ?? "",
|
|
34446
|
+
// value: val?.ReasonCode ?? "",
|
|
34447
|
+
value: val === null || val === void 0 ? void 0 : val._id,
|
|
34448
|
+
label: val === null || val === void 0 ? void 0 : val.display
|
|
34406
34449
|
});
|
|
34407
34450
|
});
|
|
34408
34451
|
return _context13.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -35109,9 +35152,14 @@ var queries$3 = (_queries = {
|
|
|
35109
35152
|
},
|
|
35110
35153
|
treatment_indicate: function treatment_indicate() {
|
|
35111
35154
|
return {
|
|
35112
|
-
db_name:
|
|
35113
|
-
entity: "ReasonMaster",
|
|
35114
|
-
return_fields: "ReasonMaster"
|
|
35155
|
+
// db_name: `${dbName}`,
|
|
35156
|
+
// entity: "ReasonMaster",
|
|
35157
|
+
// return_fields: "ReasonMaster",
|
|
35158
|
+
db_name: "primarycare",
|
|
35159
|
+
entity: "CodingMaster",
|
|
35160
|
+
filter: "CodingMaster.Type == 'INDICATIONREASON' && CodingMaster.status == true && CodingMaster.activestatus == true",
|
|
35161
|
+
return_fields: "KEEP(CodingMaster,'_id','id','_key','code','display','Type','status','activestatus')",
|
|
35162
|
+
sort: "CodingMaster.display"
|
|
35115
35163
|
};
|
|
35116
35164
|
},
|
|
35117
35165
|
treatment_instruction: function treatment_instruction() {
|
|
@@ -36381,11 +36429,11 @@ var RAD_INDICATE = createAsyncThunk("RadiologySlice/getorderindicate", /*#__PURE
|
|
|
36381
36429
|
data = _context14.sent;
|
|
36382
36430
|
arr = [];
|
|
36383
36431
|
data.result.map(function (val) {
|
|
36384
|
-
var _val$ReasonDesc, _val$ReasonDesc2;
|
|
36385
|
-
|
|
36386
36432
|
arr.push({
|
|
36387
|
-
label:
|
|
36388
|
-
value:
|
|
36433
|
+
// label: val?.ReasonDesc ?? "",
|
|
36434
|
+
// value: val?.ReasonDesc ?? "",
|
|
36435
|
+
value: val === null || val === void 0 ? void 0 : val._id,
|
|
36436
|
+
label: val === null || val === void 0 ? void 0 : val.display
|
|
36389
36437
|
});
|
|
36390
36438
|
});
|
|
36391
36439
|
return _context14.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -38790,10 +38838,9 @@ var clinicQuery = {
|
|
|
38790
38838
|
readClinicData: function readClinicData(key) {
|
|
38791
38839
|
return {
|
|
38792
38840
|
db_name: dbName,
|
|
38793
|
-
entity: "LocationMaster
|
|
38794
|
-
filter: "LocationMaster.
|
|
38795
|
-
|
|
38796
|
-
return_fields: "{vertices:v,orginatedata:LocationMaster}"
|
|
38841
|
+
entity: "LocationMaster",
|
|
38842
|
+
filter: "LocationMaster._id == '".concat(key, "' && LocationMaster.activestatus==true"),
|
|
38843
|
+
return_fields: "merge(LocationMaster,{operationalStatus:document(LocationMaster.operationalStatus)},{managingOrgEntityType:(for managingOrgEntityType in document(to_array(LocationMaster.managingOrgEntityType)) return merge(managingOrgEntityType,{coding:document(managingOrgEntityType.coding)}))}, {parentLocationID_desc:document(LocationMaster.parentLocationID_desc)},{address:document(LocationMaster.address)},{locationType:merge(document(LocationMaster.locationType),{coding:document(document(LocationMaster.locationType).coding)})},{managingOrgID:(for managingOrgID in document(to_array(LocationMaster.managingOrgID)) return managingOrgID)},{locationRoletype:document(LocationMaster.locationRoletype)},{specialty:(for code in to_array(LocationMaster.specialty) return document(code))},{photo:document(LocationMaster.photo)}, {pharmacy:(for ph in to_array(LocationMaster.pharmacy) return merge(ph,{inventorySubStore:document(ph.inventorySubStore)}))}, {telecom:(for tel in document(LocationMaster.telecom) return merge(tel,{use:document(tel.use)},{rank:document(tel.rank)},{system:document(tel.system)}))})"
|
|
38797
38844
|
};
|
|
38798
38845
|
}
|
|
38799
38846
|
};
|
|
@@ -39496,7 +39543,8 @@ var query$4 = {
|
|
|
39496
39543
|
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
39544
|
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
39545
|
},
|
|
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)}))})}"
|
|
39546
|
+
// "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)}))})}"
|
|
39547
|
+
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
39548
|
};
|
|
39501
39549
|
},
|
|
39502
39550
|
getFirstVisitsNurse: function getFirstVisitsNurse(data) {
|
|
@@ -39568,7 +39616,8 @@ var query$4 = {
|
|
|
39568
39616
|
// "Appointment.id in Encounter.appointmentId && lower(first(document(Encounter.statushistory[*].status)[*].display))=='checked-in'",
|
|
39569
39617
|
|
|
39570
39618
|
},
|
|
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)}))})}"
|
|
39619
|
+
// "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)}))})}"
|
|
39620
|
+
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
39621
|
};
|
|
39573
39622
|
},
|
|
39574
39623
|
getFirstVisitsDoctor: function getFirstVisitsDoctor(data) {
|
|
@@ -40257,7 +40306,7 @@ var GET_APPOINTMENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getAppoi
|
|
|
40257
40306
|
case 5:
|
|
40258
40307
|
data = _context7.sent;
|
|
40259
40308
|
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, _$
|
|
40309
|
+
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
40310
|
|
|
40262
40311
|
return {
|
|
40263
40312
|
// img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -40266,15 +40315,14 @@ var GET_APPOINTMENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getAppoi
|
|
|
40266
40315
|
// )
|
|
40267
40316
|
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
40268
40317
|
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
|
-
|
|
40318
|
+
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],
|
|
40319
|
+
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
40320
|
// genderData: "M",
|
|
40272
40321
|
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
40322
|
// mrn: _?.patient_id?.[0]?.alias || "",
|
|
40274
40323
|
// age: _?.patient_id?.[0]?.age,
|
|
40275
|
-
|
|
40324
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$Appointment53 = _.Appointment) === null || _$Appointment53 === void 0 ? void 0 : _$Appointment53.appno) || "",
|
|
40276
40325
|
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
40326
|
// speciality: JSON.stringify({
|
|
40279
40327
|
// speciality: _?.Appointment?.SpecialtyID?.map((spl) => {
|
|
40280
40328
|
// return spl?.coding?.[0]?.display;
|
|
@@ -40282,7 +40330,11 @@ var GET_APPOINTMENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getAppoi
|
|
|
40282
40330
|
// clinic: _?.Appointment?.orgid?.name ?? ""
|
|
40283
40331
|
// }),
|
|
40284
40332
|
// clinic: _?.practitioner_details?.[0]?.clinic || "",
|
|
40285
|
-
|
|
40333
|
+
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 : "",
|
|
40334
|
+
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),
|
|
40335
|
+
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) || "",
|
|
40336
|
+
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) || "",
|
|
40337
|
+
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$Appointment61 = _.Appointment) === null || _$Appointment61 === void 0 ? void 0 : _$Appointment61.appstatus) || "",
|
|
40286
40338
|
// "View Patient": true,
|
|
40287
40339
|
// Attend: true,
|
|
40288
40340
|
// action: true,
|
|
@@ -40339,7 +40391,7 @@ var GET_FIRST_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getFirst
|
|
|
40339
40391
|
case 5:
|
|
40340
40392
|
data = _context8.sent;
|
|
40341
40393
|
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, _$
|
|
40394
|
+
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
40395
|
|
|
40344
40396
|
return {
|
|
40345
40397
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -40376,9 +40428,13 @@ var GET_FIRST_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getFirst
|
|
|
40376
40428
|
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
40429
|
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
40430
|
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),
|
|
40431
|
+
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 : "",
|
|
40432
|
+
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) || "",
|
|
40433
|
+
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
40434
|
visitType: (_$visit_type = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type !== void 0 ? _$visit_type : "",
|
|
40380
|
-
|
|
40381
|
-
|
|
40435
|
+
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 : "",
|
|
40436
|
+
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) || "",
|
|
40437
|
+
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
40438
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status = _.status) === null || _$status === void 0 ? void 0 : _$status.display) || "",
|
|
40383
40439
|
action: true // genderData: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
40384
40440
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? "",
|
|
@@ -40441,7 +40497,7 @@ var GET_NEW_PATIENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getNewPa
|
|
|
40441
40497
|
case 5:
|
|
40442
40498
|
data = _context9.sent;
|
|
40443
40499
|
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 _$
|
|
40500
|
+
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
40501
|
|
|
40446
40502
|
return {
|
|
40447
40503
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -40480,12 +40536,13 @@ var GET_NEW_PATIENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getNewPa
|
|
|
40480
40536
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
40481
40537
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
40482
40538
|
// }),
|
|
40483
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
40484
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
40485
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
40539
|
+
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]) || {}),
|
|
40540
|
+
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) || "",
|
|
40541
|
+
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),
|
|
40542
|
+
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 : "",
|
|
40543
|
+
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) || "",
|
|
40544
|
+
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
40545
|
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
40546
|
// date: JSON.stringify({
|
|
40490
40547
|
// date: _?.appointmentId?.[0]?.start
|
|
40491
40548
|
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
@@ -40500,6 +40557,9 @@ var GET_NEW_PATIENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getNewPa
|
|
|
40500
40557
|
// }).join(", "),
|
|
40501
40558
|
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
40502
40559
|
// }),
|
|
40560
|
+
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 : "",
|
|
40561
|
+
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) || "",
|
|
40562
|
+
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
40563
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status2 = _.status) === null || _$status2 === void 0 ? void 0 : _$status2.display) || "",
|
|
40504
40564
|
action: true
|
|
40505
40565
|
};
|
|
@@ -40546,7 +40606,7 @@ var GET_OTHER_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getOther
|
|
|
40546
40606
|
case 5:
|
|
40547
40607
|
data = _context10.sent;
|
|
40548
40608
|
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 _$
|
|
40609
|
+
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
40610
|
|
|
40551
40611
|
return {
|
|
40552
40612
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -40587,12 +40647,13 @@ var GET_OTHER_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getOther
|
|
|
40587
40647
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
40588
40648
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
40589
40649
|
// }),
|
|
40590
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
40591
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
40592
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
40650
|
+
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]) || {}),
|
|
40651
|
+
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) || "",
|
|
40652
|
+
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),
|
|
40653
|
+
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 : "",
|
|
40654
|
+
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) || "",
|
|
40655
|
+
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
40656
|
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
40657
|
// date: JSON.stringify({
|
|
40597
40658
|
// date: _?.appointmentId?.[0]?.start
|
|
40598
40659
|
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
@@ -40607,6 +40668,9 @@ var GET_OTHER_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getOther
|
|
|
40607
40668
|
// }).join(", "),
|
|
40608
40669
|
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
40609
40670
|
// }),
|
|
40671
|
+
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 : "",
|
|
40672
|
+
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) || "",
|
|
40673
|
+
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
40674
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status3 = _.status) === null || _$status3 === void 0 ? void 0 : _$status3.display) || "",
|
|
40611
40675
|
action: true
|
|
40612
40676
|
};
|
|
@@ -40653,7 +40717,7 @@ var GET_TODAY_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getToday
|
|
|
40653
40717
|
case 5:
|
|
40654
40718
|
data = _context11.sent;
|
|
40655
40719
|
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 _$
|
|
40720
|
+
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
40721
|
|
|
40658
40722
|
return {
|
|
40659
40723
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid
|
|
@@ -40691,21 +40755,26 @@ var GET_TODAY_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getToday
|
|
|
40691
40755
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
40692
40756
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
40693
40757
|
// }),
|
|
40694
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
40695
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
40696
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
40697
|
-
|
|
40758
|
+
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]) || {}),
|
|
40759
|
+
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) || "",
|
|
40760
|
+
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),
|
|
40761
|
+
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
40762
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
40699
40763
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ? JSON.stringify(_?.patient_id?.[0]?.telecom?.[0]?.value) : "",
|
|
40700
|
-
|
|
40701
|
-
|
|
40702
|
-
|
|
40764
|
+
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) || "",
|
|
40765
|
+
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") : ""),
|
|
40766
|
+
visitType: (_$visit_type4 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type4 !== void 0 ? _$visit_type4 : "",
|
|
40767
|
+
// appointmentStatus: _?.status?.display || "",
|
|
40703
40768
|
// speciality: JSON.stringify({
|
|
40704
40769
|
// speciality: _?.appointmentId?.[0]?.SpecialtyID?.map((spl) => {
|
|
40705
40770
|
// return spl?.coding?.[0]?.display;
|
|
40706
40771
|
// }).join(", "),
|
|
40707
40772
|
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
40708
40773
|
// }),
|
|
40774
|
+
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 : "",
|
|
40775
|
+
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) || "",
|
|
40776
|
+
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) || "",
|
|
40777
|
+
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status4 = _.status) === null || _$status4 === void 0 ? void 0 : _$status4.display) || "",
|
|
40709
40778
|
action: true
|
|
40710
40779
|
};
|
|
40711
40780
|
}) : [];
|
|
@@ -40751,7 +40820,7 @@ var GET_WALK_INS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getWalkInsNu
|
|
|
40751
40820
|
case 5:
|
|
40752
40821
|
data = _context12.sent;
|
|
40753
40822
|
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 _$
|
|
40823
|
+
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
40824
|
|
|
40756
40825
|
return {
|
|
40757
40826
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -40792,12 +40861,13 @@ var GET_WALK_INS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getWalkInsNu
|
|
|
40792
40861
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
40793
40862
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
40794
40863
|
// }),
|
|
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") : ""),
|
|
40864
|
+
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]) || {}),
|
|
40865
|
+
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) || "",
|
|
40866
|
+
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),
|
|
40867
|
+
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
40868
|
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) || "",
|
|
40869
|
+
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") : ""),
|
|
40870
|
+
visitType: (_$visit_type5 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type5 !== void 0 ? _$visit_type5 : "",
|
|
40801
40871
|
// date: JSON.stringify({
|
|
40802
40872
|
// date: _?.appointmentId?.[0]?.start
|
|
40803
40873
|
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
@@ -40812,6 +40882,9 @@ var GET_WALK_INS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getWalkInsNu
|
|
|
40812
40882
|
// }).join(", "),
|
|
40813
40883
|
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
40814
40884
|
// }),
|
|
40885
|
+
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 : "",
|
|
40886
|
+
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) || "",
|
|
40887
|
+
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
40888
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status5 = _.status) === null || _$status5 === void 0 ? void 0 : _$status5.display) || "",
|
|
40816
40889
|
action: true
|
|
40817
40890
|
};
|
|
@@ -40858,8 +40931,9 @@ var GET_APPOINTMENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getAppo
|
|
|
40858
40931
|
|
|
40859
40932
|
case 5:
|
|
40860
40933
|
data = _context13.sent;
|
|
40934
|
+
debugger;
|
|
40861
40935
|
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 _$
|
|
40936
|
+
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
40937
|
|
|
40864
40938
|
return {
|
|
40865
40939
|
// img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -40874,12 +40948,14 @@ var GET_APPOINTMENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getAppo
|
|
|
40874
40948
|
// // genderData: "M",
|
|
40875
40949
|
// contact: _.Appointment?.PersonID?.[0]?.telecom?.[0]?.value ?? ""
|
|
40876
40950
|
// }),
|
|
40877
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
40878
|
-
mrn: ((_$
|
|
40879
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
40880
|
-
|
|
40881
|
-
|
|
40882
|
-
|
|
40951
|
+
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]) || {}),
|
|
40952
|
+
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]) || "",
|
|
40953
|
+
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),
|
|
40954
|
+
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 : "",
|
|
40955
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$Appointment66 = _.Appointment) === null || _$Appointment66 === void 0 ? void 0 : _$Appointment66.appno) || "",
|
|
40956
|
+
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") : ""),
|
|
40957
|
+
//encounterNo : _?.Encounter?.[0]?.encounter_no ?? "",
|
|
40958
|
+
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
40959
|
// mrn: _?.patient_id?.[0]?.alias || "",
|
|
40884
40960
|
// age: _?.patient_id?.[0]?.age,
|
|
40885
40961
|
// date: JSON.stringify({
|
|
@@ -40897,38 +40973,40 @@ var GET_APPOINTMENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getAppo
|
|
|
40897
40973
|
// }).join(", ") ?? "",
|
|
40898
40974
|
// clinic: _?.Appointment?.orgid?.name ?? ""
|
|
40899
40975
|
// }),
|
|
40900
|
-
|
|
40901
|
-
|
|
40976
|
+
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),
|
|
40977
|
+
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) || "",
|
|
40978
|
+
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) || "",
|
|
40979
|
+
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$Appointment74 = _.Appointment) === null || _$Appointment74 === void 0 ? void 0 : _$Appointment74.appstatus) || "",
|
|
40902
40980
|
// "View Patient": true,
|
|
40903
40981
|
// Attend: true,
|
|
40904
|
-
|
|
40982
|
+
// type: "OP",
|
|
40905
40983
|
// appNo: _?.id ?? '',
|
|
40906
40984
|
// // data: _,
|
|
40907
40985
|
// enId: _.id,
|
|
40908
40986
|
// age: getAge(_?.PersonID?.[0]?.birthDay),
|
|
40909
40987
|
// // gender: _?.PersonID?.[0]?.gender,
|
|
40910
|
-
//
|
|
40911
|
-
// pId : _?.patient_id?.id,
|
|
40988
|
+
action: true // pId : _?.patient_id?.id,
|
|
40912
40989
|
|
|
40913
40990
|
};
|
|
40914
40991
|
}) : [];
|
|
40992
|
+
debugger;
|
|
40915
40993
|
return _context13.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
40916
40994
|
data: returnedData
|
|
40917
40995
|
}));
|
|
40918
40996
|
|
|
40919
|
-
case
|
|
40920
|
-
_context13.prev =
|
|
40997
|
+
case 12:
|
|
40998
|
+
_context13.prev = 12;
|
|
40921
40999
|
_context13.t0 = _context13["catch"](2);
|
|
40922
41000
|
return _context13.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
40923
41001
|
message: _context13.t0.message
|
|
40924
41002
|
})));
|
|
40925
41003
|
|
|
40926
|
-
case
|
|
41004
|
+
case 15:
|
|
40927
41005
|
case "end":
|
|
40928
41006
|
return _context13.stop();
|
|
40929
41007
|
}
|
|
40930
41008
|
}
|
|
40931
|
-
}, _callee13, null, [[2,
|
|
41009
|
+
}, _callee13, null, [[2, 12]]);
|
|
40932
41010
|
})));
|
|
40933
41011
|
var GET_FIRST_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getFirstVisitsDoctor", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee14() {
|
|
40934
41012
|
var payload,
|
|
@@ -40954,7 +41032,7 @@ var GET_FIRST_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getFirs
|
|
|
40954
41032
|
case 5:
|
|
40955
41033
|
data = _context14.sent;
|
|
40956
41034
|
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 _$
|
|
41035
|
+
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
41036
|
|
|
40959
41037
|
return {
|
|
40960
41038
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -40994,12 +41072,12 @@ var GET_FIRST_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getFirs
|
|
|
40994
41072
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
40995
41073
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
40996
41074
|
// }),
|
|
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
|
-
|
|
41075
|
+
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]) || {}),
|
|
41076
|
+
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) || "",
|
|
41077
|
+
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),
|
|
41078
|
+
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 : "",
|
|
41079
|
+
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) || "",
|
|
41080
|
+
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
41081
|
// date: JSON.stringify({
|
|
41004
41082
|
// date: _?.appointmentId?.[0]?.start
|
|
41005
41083
|
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
@@ -41014,6 +41092,11 @@ var GET_FIRST_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getFirs
|
|
|
41014
41092
|
// }).join(", "),
|
|
41015
41093
|
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
41016
41094
|
// }),
|
|
41095
|
+
//encounterNo : _?.Appointment?.appointmentType ?? "en no",
|
|
41096
|
+
visitType: (_$visit_type6 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type6 !== void 0 ? _$visit_type6 : "",
|
|
41097
|
+
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 : "",
|
|
41098
|
+
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) || "",
|
|
41099
|
+
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
41100
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status6 = _.status) === null || _$status6 === void 0 ? void 0 : _$status6.display) || "",
|
|
41018
41101
|
action: true
|
|
41019
41102
|
};
|
|
@@ -41060,7 +41143,7 @@ var GET_NEW_PATIENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getNewP
|
|
|
41060
41143
|
case 5:
|
|
41061
41144
|
data = _context15.sent;
|
|
41062
41145
|
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 _$
|
|
41146
|
+
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
41147
|
|
|
41065
41148
|
return {
|
|
41066
41149
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -41100,12 +41183,12 @@ var GET_NEW_PATIENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getNewP
|
|
|
41100
41183
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
41101
41184
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
41102
41185
|
// }),
|
|
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
|
-
|
|
41186
|
+
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]) || {}),
|
|
41187
|
+
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) || "",
|
|
41188
|
+
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),
|
|
41189
|
+
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 : "",
|
|
41190
|
+
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) || "",
|
|
41191
|
+
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
41192
|
// date: JSON.stringify({
|
|
41110
41193
|
// date: _?.appointmentId?.[0]?.start
|
|
41111
41194
|
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
@@ -41120,6 +41203,10 @@ var GET_NEW_PATIENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getNewP
|
|
|
41120
41203
|
// }).join(", "),
|
|
41121
41204
|
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
41122
41205
|
// }),
|
|
41206
|
+
visitType: (_$visit_type7 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type7 !== void 0 ? _$visit_type7 : "",
|
|
41207
|
+
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 : "",
|
|
41208
|
+
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) || "",
|
|
41209
|
+
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
41210
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status7 = _.status) === null || _$status7 === void 0 ? void 0 : _$status7.display) || "",
|
|
41124
41211
|
action: true
|
|
41125
41212
|
};
|
|
@@ -41166,7 +41253,7 @@ var GET_OTHER_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getOthe
|
|
|
41166
41253
|
case 5:
|
|
41167
41254
|
data = _context16.sent;
|
|
41168
41255
|
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 _$
|
|
41256
|
+
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
41257
|
|
|
41171
41258
|
return {
|
|
41172
41259
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -41206,12 +41293,12 @@ var GET_OTHER_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getOthe
|
|
|
41206
41293
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
41207
41294
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
41208
41295
|
// }),
|
|
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
|
-
|
|
41296
|
+
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]) || {}),
|
|
41297
|
+
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) || "",
|
|
41298
|
+
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),
|
|
41299
|
+
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 : "",
|
|
41300
|
+
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) || "",
|
|
41301
|
+
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
41302
|
// date: JSON.stringify({
|
|
41216
41303
|
// date: _?.appointmentId?.[0]?.start
|
|
41217
41304
|
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
@@ -41226,6 +41313,10 @@ var GET_OTHER_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getOthe
|
|
|
41226
41313
|
// }).join(", "),
|
|
41227
41314
|
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
41228
41315
|
// }),
|
|
41316
|
+
visitType: (_$visit_type8 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type8 !== void 0 ? _$visit_type8 : "",
|
|
41317
|
+
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 : "",
|
|
41318
|
+
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) || "",
|
|
41319
|
+
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
41320
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status8 = _.status) === null || _$status8 === void 0 ? void 0 : _$status8.display) || "",
|
|
41230
41321
|
action: true
|
|
41231
41322
|
};
|
|
@@ -41272,7 +41363,7 @@ var GET_TODAY_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getToda
|
|
|
41272
41363
|
case 5:
|
|
41273
41364
|
data = _context17.sent;
|
|
41274
41365
|
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 _$
|
|
41366
|
+
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
41367
|
|
|
41277
41368
|
return {
|
|
41278
41369
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -41312,12 +41403,12 @@ var GET_TODAY_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getToda
|
|
|
41312
41403
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
41313
41404
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
41314
41405
|
// }),
|
|
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
|
-
|
|
41406
|
+
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]) || {}),
|
|
41407
|
+
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) || "",
|
|
41408
|
+
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),
|
|
41409
|
+
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 : "",
|
|
41410
|
+
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) || "",
|
|
41411
|
+
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
41412
|
// date: JSON.stringify({
|
|
41322
41413
|
// date: _?.appointmentId?.[0]?.start
|
|
41323
41414
|
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
@@ -41332,6 +41423,10 @@ var GET_TODAY_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getToda
|
|
|
41332
41423
|
// }).join(", "),
|
|
41333
41424
|
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
41334
41425
|
// }),
|
|
41426
|
+
visitType: (_$visit_type9 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type9 !== void 0 ? _$visit_type9 : "",
|
|
41427
|
+
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 : "",
|
|
41428
|
+
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) || "",
|
|
41429
|
+
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
41430
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status9 = _.status) === null || _$status9 === void 0 ? void 0 : _$status9.display) || "",
|
|
41336
41431
|
action: true
|
|
41337
41432
|
};
|
|
@@ -41378,7 +41473,7 @@ var GET_WALK_INS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getWalkInsD
|
|
|
41378
41473
|
case 5:
|
|
41379
41474
|
data = _context18.sent;
|
|
41380
41475
|
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 _$
|
|
41476
|
+
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
41477
|
|
|
41383
41478
|
return {
|
|
41384
41479
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -41418,12 +41513,12 @@ var GET_WALK_INS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getWalkInsD
|
|
|
41418
41513
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
41419
41514
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
41420
41515
|
// }),
|
|
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
|
-
|
|
41516
|
+
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]) || {}),
|
|
41517
|
+
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) || "",
|
|
41518
|
+
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),
|
|
41519
|
+
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 : "",
|
|
41520
|
+
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) || "",
|
|
41521
|
+
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
41522
|
// date: JSON.stringify({
|
|
41428
41523
|
// date: _?.appointmentId?.[0]?.start
|
|
41429
41524
|
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
@@ -41438,6 +41533,10 @@ var GET_WALK_INS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getWalkInsD
|
|
|
41438
41533
|
// }).join(", "),
|
|
41439
41534
|
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
41440
41535
|
// }),
|
|
41536
|
+
visitType: (_$visit_type10 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type10 !== void 0 ? _$visit_type10 : "",
|
|
41537
|
+
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 : "",
|
|
41538
|
+
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) || "",
|
|
41539
|
+
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
41540
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status10 = _.status) === null || _$status10 === void 0 ? void 0 : _$status10.display) || "",
|
|
41442
41541
|
action: true
|
|
41443
41542
|
};
|
|
@@ -42854,7 +42953,7 @@ var orderSetDropDown = {
|
|
|
42854
42953
|
return {
|
|
42855
42954
|
db_name: dbName,
|
|
42856
42955
|
entity: "CA_OrderSet,CA_OrderSet_Applicability",
|
|
42857
|
-
filter: "CA_OrderSet._id == CA_OrderSet_Applicability.Ordersetcode && (CA_OrderSet_Applicability.specialty=='".concat(list.speciality, "'
|
|
42956
|
+
filter: "CA_OrderSet._id == CA_OrderSet_Applicability.Ordersetcode && (CA_OrderSet_Applicability.specialty=='".concat(list.speciality, "' && CA_OrderSet_Applicability.locationCode=='").concat(list.location, "' && CA_OrderSet_Applicability.practRoleId=='").concat(list.pract, "' && CA_OrderSet_Applicability.diagnosisCode=='").concat(list.diag, "')"),
|
|
42858
42957
|
return_fields: " distinct merge(CA_OrderSet,{components:(for comp in CA_OrderSet_Components filter comp._id in CA_OrderSet.components return merge(comp,{orderCatalog:merge(document(comp.orderCatalog),{ordertype:document(document(comp.orderCatalog).ordertype)},{ordercategory:document(document(comp.orderCatalog).ordercategory)}),ordercategory:document(comp.ordercategory),ordertype:document(comp.ordertype),IVDosDurUOM:document(comp.IVDosDurUOM),IVInfusRateUOM:document(comp.IVInfusRateUOM),IVInfusRateVolUOM:document(comp.IVInfusRateVolUOM),dfltDurUOM:document(comp.dfltDurUOM),dfltDurUOM:document(comp.dfltDurUOM),dfltFreqRateUnit:document(comp.dfltFreqRateUnit),dfltFreqValUnit:document(comp.dfltFreqValUnit),dfltOrderUOM:document(comp.dfltOrderUOM),route:document(comp.route)}))})"
|
|
42859
42958
|
}; // {
|
|
42860
42959
|
// db_name: dbName,
|
|
@@ -43014,19 +43113,20 @@ var makeMedicationData = function makeMedicationData(order, info) {
|
|
|
43014
43113
|
ivInfusionRateUOM: (_order$IVInfusRateUOM = order === null || order === void 0 ? void 0 : (_order$IVInfusRateUOM2 = order.IVInfusRateUOM) === null || _order$IVInfusRateUOM2 === void 0 ? void 0 : _order$IVInfusRateUOM2._id) !== null && _order$IVInfusRateUOM !== void 0 ? _order$IVInfusRateUOM : "",
|
|
43015
43114
|
dosageDurationValue: (_order$duration2 = order === null || order === void 0 ? void 0 : order.duration) !== null && _order$duration2 !== void 0 ? _order$duration2 : 0,
|
|
43016
43115
|
dosageDurationUOM: (_order$durationType$_2 = order === null || order === void 0 ? void 0 : (_order$durationType2 = order.durationType) === null || _order$durationType2 === void 0 ? void 0 : _order$durationType2._id) !== null && _order$durationType$_2 !== void 0 ? _order$durationType$_2 : "",
|
|
43017
|
-
UseAsFreqDose: [
|
|
43018
|
-
|
|
43019
|
-
|
|
43020
|
-
|
|
43021
|
-
|
|
43022
|
-
|
|
43023
|
-
|
|
43024
|
-
|
|
43025
|
-
|
|
43026
|
-
|
|
43027
|
-
|
|
43028
|
-
|
|
43029
|
-
|
|
43116
|
+
// UseAsFreqDose: [
|
|
43117
|
+
// {
|
|
43118
|
+
// frqGrpId: "number",
|
|
43119
|
+
// dispSeqNo: "number",
|
|
43120
|
+
// adminDate: "number",
|
|
43121
|
+
// adminTime: "time",
|
|
43122
|
+
// adminDosageQty: "number",
|
|
43123
|
+
// adminDosageUOM: "string",
|
|
43124
|
+
// adminDosageInstruction: "string",
|
|
43125
|
+
// adminFrDay: "number",
|
|
43126
|
+
// adminToDay: "number",
|
|
43127
|
+
// adminDosageFreqCode: "string",
|
|
43128
|
+
// },
|
|
43129
|
+
// ],
|
|
43030
43130
|
useAsTaperedDose: [// {
|
|
43031
43131
|
// tdGrpId: "number",
|
|
43032
43132
|
// dispSeqNo: "number",
|