primarycare-binder 1.1.42 → 1.1.43
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 +696 -555
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -16616,12 +16616,12 @@ var ADD_RELATED_PERSON = createAsyncThunk("personApiSlice/addRelatedPerson", /*#
|
|
|
16616
16616
|
// true
|
|
16617
16617
|
"relationship": relationType,
|
|
16618
16618
|
"name": [{
|
|
16619
|
-
"use": "
|
|
16619
|
+
"use": "",
|
|
16620
16620
|
"text": firstName,
|
|
16621
16621
|
"family": lastName,
|
|
16622
|
-
"given":
|
|
16623
|
-
"prefix":
|
|
16624
|
-
"suffix": "
|
|
16622
|
+
"given": "",
|
|
16623
|
+
"prefix": "",
|
|
16624
|
+
"suffix": "",
|
|
16625
16625
|
"period": [{
|
|
16626
16626
|
"start": Math.floor(Date.now() / 1000),
|
|
16627
16627
|
"end": 0
|
|
@@ -38347,7 +38347,7 @@ var GET_APPOINTMENTS = createAsyncThunk("appointmentStatsApiSlice/getAppointment
|
|
|
38347
38347
|
case 5:
|
|
38348
38348
|
data = _context.sent;
|
|
38349
38349
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result = data.result) === null || _data$result === void 0 ? void 0 : _data$result.map(function (_) {
|
|
38350
|
-
var _$Appointment, _$Appointment$PersonI, _$Appointment$PersonI2, _$Appointment$PersonI3, _$Appointment2, _$Appointment2$Person, _$Appointment2$Person2, _$Appointment2$Person3, _$Appointment3, _$Appointment3$Person, _$Appointment3$Person2, _$Appointment4, _$Appointment5, _$Appointment6, _$Appointment7, _$
|
|
38350
|
+
var _$Appointment, _$Appointment$PersonI, _$Appointment$PersonI2, _$Appointment$PersonI3, _$Appointment2, _$Appointment2$Person, _$Appointment2$Person2, _$Appointment2$Person3, _$Appointment3, _$Appointment3$Person, _$Appointment3$Person2, _$Appointment4, _$Appointment5, _$Appointment6, _$Appointment7, _$Appointment8, _$Appointment8$Person, _$Appointment8$Person2, _$Appointment8$Person3, _$Appointment8$Person4, _$Appointment9, _$Appointment9$Person, _$Appointment9$Person2, _$Appointment9$Person3, _$Appointment9$Person4, _$Appointment$appoint, _$Appointment10, _$Appointment11, _$Appointment12;
|
|
38351
38351
|
|
|
38352
38352
|
return {
|
|
38353
38353
|
// img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -38370,25 +38370,21 @@ var GET_APPOINTMENTS = createAsyncThunk("appointmentStatsApiSlice/getAppointment
|
|
|
38370
38370
|
// clinic: _?.Encounter?.practitioner_details?.[0]?.clinic,
|
|
38371
38371
|
// dob: _?.Appointment?.PersonID?.[0]?.birthDay,
|
|
38372
38372
|
// gender: _?.Appointment?.PersonID?.[0]?.gender,
|
|
38373
|
-
contact: (_
|
|
38374
|
-
visitType: (_$Appointment$appoint = _ === null || _ === void 0 ? void 0 : (_$
|
|
38375
|
-
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$
|
|
38376
|
-
refNo: (_ === null || _ === void 0 ? void 0 : (_$
|
|
38373
|
+
contact: (_ === null || _ === void 0 ? void 0 : (_$Appointment8 = _.Appointment) === null || _$Appointment8 === void 0 ? void 0 : (_$Appointment8$Person = _$Appointment8.PersonID) === null || _$Appointment8$Person === void 0 ? void 0 : (_$Appointment8$Person2 = _$Appointment8$Person[0]) === null || _$Appointment8$Person2 === void 0 ? void 0 : (_$Appointment8$Person3 = _$Appointment8$Person2.telecom) === null || _$Appointment8$Person3 === void 0 ? void 0 : (_$Appointment8$Person4 = _$Appointment8$Person3[0]) === null || _$Appointment8$Person4 === void 0 ? void 0 : _$Appointment8$Person4.value) ? JSON.stringify(_ === null || _ === void 0 ? void 0 : (_$Appointment9 = _.Appointment) === null || _$Appointment9 === void 0 ? void 0 : (_$Appointment9$Person = _$Appointment9.PersonID) === null || _$Appointment9$Person === void 0 ? void 0 : (_$Appointment9$Person2 = _$Appointment9$Person[0]) === null || _$Appointment9$Person2 === void 0 ? void 0 : (_$Appointment9$Person3 = _$Appointment9$Person2.telecom) === null || _$Appointment9$Person3 === void 0 ? void 0 : (_$Appointment9$Person4 = _$Appointment9$Person3[0]) === null || _$Appointment9$Person4 === void 0 ? void 0 : _$Appointment9$Person4.value) : "",
|
|
38374
|
+
visitType: (_$Appointment$appoint = _ === null || _ === void 0 ? void 0 : (_$Appointment10 = _.Appointment) === null || _$Appointment10 === void 0 ? void 0 : _$Appointment10.appointmentType) !== null && _$Appointment$appoint !== void 0 ? _$Appointment$appoint : "",
|
|
38375
|
+
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$Appointment11 = _.Appointment) === null || _$Appointment11 === void 0 ? void 0 : _$Appointment11.appstatus) || "",
|
|
38376
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$Appointment12 = _.Appointment) === null || _$Appointment12 === void 0 ? void 0 : _$Appointment12.appno) || "",
|
|
38377
38377
|
// type: "OP",
|
|
38378
38378
|
// "Register Visit": true,
|
|
38379
38379
|
// "Modify Appointment": true,
|
|
38380
38380
|
// "Cancel Appointment": true,
|
|
38381
38381
|
// "View Profile": true,
|
|
38382
38382
|
// data: _,
|
|
38383
|
-
|
|
38383
|
+
action: JSON.stringify({
|
|
38384
38384
|
appNo: _.Appointment.id
|
|
38385
|
-
}),
|
|
38386
|
-
|
|
38387
|
-
|
|
38388
|
-
}),
|
|
38389
|
-
cancelaction: JSON.stringify({
|
|
38390
|
-
appNo: _.Appointment.id
|
|
38391
|
-
})
|
|
38385
|
+
}) // modifyaction: JSON.stringify({ appNo: _.Appointment.id }),
|
|
38386
|
+
// cancelaction: JSON.stringify({ appNo: _.Appointment.id }),
|
|
38387
|
+
|
|
38392
38388
|
};
|
|
38393
38389
|
}) : [];
|
|
38394
38390
|
return _context.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -38433,10 +38429,12 @@ var GET_FIRST_VISITS = createAsyncThunk("appointmentStatsApiSlice/getFirstVisits
|
|
|
38433
38429
|
case 5:
|
|
38434
38430
|
data = _context2.sent;
|
|
38435
38431
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result2 = data.result) === null || _data$result2 === void 0 ? void 0 : _data$result2.map(function (_) {
|
|
38436
|
-
var _$
|
|
38432
|
+
var _$Encounter, _$Encounter$patient_i, _$Encounter$patient_i2, _$Encounter$patient_i3, _$Encounter2, _$Encounter2$patient_, _$Encounter2$patient_2, _$Appointment13, _$Appointment13$Perso, _$Appointment13$Perso2, _$Appointment14, _$Appointment15, _$Appointment16, _$Appointment17, _$Encounter3, _$Encounter$status$di, _$Encounter4, _$Encounter4$status, _$Encounter$appointme, _$Encounter5, _$Encounter5$appointm, _$Encounter$appointme2, _$Encounter6, _$Encounter6$appointm, _$Encounter7, _$Encounter7$patient_, _$Encounter7$patient_2, _$Encounter7$patient_3, _$Encounter7$patient_4, _$Appointment$PersonI4, _$Appointment18, _$Appointment18$Perso, _$Appointment18$Perso2, _$Encounter$patient_i4, _$Encounter8, _$Encounter8$patient_, _$Encounter8$patient_2;
|
|
38437
38433
|
|
|
38438
38434
|
return {
|
|
38439
|
-
img:
|
|
38435
|
+
// img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
38436
|
+
// ? getImgUrl(_?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid)
|
|
38437
|
+
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
38440
38438
|
// name: makeName(_?.Encounter?.patient_id?.[0]?.name?.[0] || {}),
|
|
38441
38439
|
// mrn: _?.Encounter?.patient_id?.[0]?.MRN,
|
|
38442
38440
|
// date: _?.Appointment?.start
|
|
@@ -38465,32 +38463,32 @@ var GET_FIRST_VISITS = createAsyncThunk("appointmentStatsApiSlice/getFirstVisits
|
|
|
38465
38463
|
// "View Profile": true,
|
|
38466
38464
|
name: makeName((_ === null || _ === void 0 ? void 0 : (_$Encounter = _.Encounter) === null || _$Encounter === void 0 ? void 0 : (_$Encounter$patient_i = _$Encounter.patient_id) === null || _$Encounter$patient_i === void 0 ? void 0 : (_$Encounter$patient_i2 = _$Encounter$patient_i[0]) === null || _$Encounter$patient_i2 === void 0 ? void 0 : (_$Encounter$patient_i3 = _$Encounter$patient_i2.name) === null || _$Encounter$patient_i3 === void 0 ? void 0 : _$Encounter$patient_i3[0]) || {}),
|
|
38467
38465
|
mrn: _ === null || _ === void 0 ? void 0 : (_$Encounter2 = _.Encounter) === null || _$Encounter2 === void 0 ? void 0 : (_$Encounter2$patient_ = _$Encounter2.patient_id) === null || _$Encounter2$patient_ === void 0 ? void 0 : (_$Encounter2$patient_2 = _$Encounter2$patient_[0]) === null || _$Encounter2$patient_2 === void 0 ? void 0 : _$Encounter2$patient_2.MRN,
|
|
38468
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
38469
|
-
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$
|
|
38466
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment13 = _.Appointment) === null || _$Appointment13 === void 0 ? void 0 : (_$Appointment13$Perso = _$Appointment13.PersonID) === null || _$Appointment13$Perso === void 0 ? void 0 : (_$Appointment13$Perso2 = _$Appointment13$Perso[0]) === null || _$Appointment13$Perso2 === void 0 ? void 0 : _$Appointment13$Perso2.birthDay),
|
|
38467
|
+
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$Appointment14 = _.Appointment) === null || _$Appointment14 === void 0 ? void 0 : _$Appointment14.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment15 = _.Appointment) === null || _$Appointment15 === void 0 ? void 0 : _$Appointment15.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$Appointment16 = _.Appointment) === null || _$Appointment16 === void 0 ? void 0 : _$Appointment16.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment17 = _.Appointment) === null || _$Appointment17 === void 0 ? void 0 : _$Appointment17.start, "hh:mm A") : ""),
|
|
38470
38468
|
visitType: _ === null || _ === void 0 ? void 0 : (_$Encounter3 = _.Encounter) === null || _$Encounter3 === void 0 ? void 0 : _$Encounter3.visit_type,
|
|
38471
|
-
appointmentStatus: _ === null || _ === void 0 ? void 0 : (_$Encounter4 = _.Encounter) === null || _$Encounter4 === void 0 ? void 0 : (_$Encounter4$status = _$Encounter4.status) === null || _$Encounter4$status === void 0 ? void 0 : _$Encounter4$status.display,
|
|
38469
|
+
appointmentStatus: (_$Encounter$status$di = _ === null || _ === void 0 ? void 0 : (_$Encounter4 = _.Encounter) === null || _$Encounter4 === void 0 ? void 0 : (_$Encounter4$status = _$Encounter4.status) === null || _$Encounter4$status === void 0 ? void 0 : _$Encounter4$status.display) !== null && _$Encounter$status$di !== void 0 ? _$Encounter$status$di : "",
|
|
38472
38470
|
refNo: (_$Encounter$appointme = _ === null || _ === void 0 ? void 0 : (_$Encounter5 = _.Encounter) === null || _$Encounter5 === void 0 ? void 0 : (_$Encounter5$appointm = _$Encounter5.appointmentId) === null || _$Encounter5$appointm === void 0 ? void 0 : _$Encounter5$appointm[0]) !== null && _$Encounter$appointme !== void 0 ? _$Encounter$appointme : "",
|
|
38473
|
-
|
|
38471
|
+
action: JSON.stringify({
|
|
38474
38472
|
appNo: (_$Encounter$appointme2 = _ === null || _ === void 0 ? void 0 : (_$Encounter6 = _.Encounter) === null || _$Encounter6 === void 0 ? void 0 : (_$Encounter6$appointm = _$Encounter6.appointmentId) === null || _$Encounter6$appointm === void 0 ? void 0 : _$Encounter6$appointm[0]) !== null && _$Encounter$appointme2 !== void 0 ? _$Encounter$appointme2 : "",
|
|
38475
38473
|
enId: _.Encounter.id,
|
|
38476
38474
|
contact: _ === null || _ === void 0 ? void 0 : (_$Encounter7 = _.Encounter) === null || _$Encounter7 === void 0 ? void 0 : (_$Encounter7$patient_ = _$Encounter7.patient_id) === null || _$Encounter7$patient_ === void 0 ? void 0 : (_$Encounter7$patient_2 = _$Encounter7$patient_[0]) === null || _$Encounter7$patient_2 === void 0 ? void 0 : (_$Encounter7$patient_3 = _$Encounter7$patient_2.telecom) === null || _$Encounter7$patient_3 === void 0 ? void 0 : (_$Encounter7$patient_4 = _$Encounter7$patient_3[0]) === null || _$Encounter7$patient_4 === void 0 ? void 0 : _$Encounter7$patient_4.value,
|
|
38477
|
-
personId: (_$Appointment$
|
|
38475
|
+
personId: (_$Appointment$PersonI4 = _ === null || _ === void 0 ? void 0 : (_$Appointment18 = _.Appointment) === null || _$Appointment18 === void 0 ? void 0 : (_$Appointment18$Perso = _$Appointment18.PersonID) === null || _$Appointment18$Perso === void 0 ? void 0 : (_$Appointment18$Perso2 = _$Appointment18$Perso[0]) === null || _$Appointment18$Perso2 === void 0 ? void 0 : _$Appointment18$Perso2.Id) !== null && _$Appointment$PersonI4 !== void 0 ? _$Appointment$PersonI4 : null,
|
|
38478
38476
|
patientId: (_$Encounter$patient_i4 = _ === null || _ === void 0 ? void 0 : (_$Encounter8 = _.Encounter) === null || _$Encounter8 === void 0 ? void 0 : (_$Encounter8$patient_ = _$Encounter8.patient_id) === null || _$Encounter8$patient_ === void 0 ? void 0 : (_$Encounter8$patient_2 = _$Encounter8$patient_[0]) === null || _$Encounter8$patient_2 === void 0 ? void 0 : _$Encounter8$patient_2.id) !== null && _$Encounter$patient_i4 !== void 0 ? _$Encounter$patient_i4 : null
|
|
38479
|
-
})
|
|
38480
|
-
|
|
38481
|
-
|
|
38482
|
-
|
|
38483
|
-
|
|
38484
|
-
|
|
38485
|
-
|
|
38486
|
-
|
|
38487
|
-
|
|
38488
|
-
|
|
38489
|
-
|
|
38490
|
-
|
|
38491
|
-
|
|
38492
|
-
|
|
38493
|
-
|
|
38477
|
+
}) // modifyaction: JSON.stringify({
|
|
38478
|
+
// appNo: _?.Encounter?.appointmentId?.[0] ?? "",
|
|
38479
|
+
// enId: _.Encounter.id,
|
|
38480
|
+
// contact: _?.Encounter?.patient_id?.[0]?.telecom?.[0]?.value,
|
|
38481
|
+
// personId: _?.Appointment?.PersonID?.[0]?.Id ?? null,
|
|
38482
|
+
// patientId: _?.Encounter?.patient_id?.[0]?.id ?? null,
|
|
38483
|
+
// }),
|
|
38484
|
+
// cancelaction: JSON.stringify({
|
|
38485
|
+
// appNo: _?.Encounter?.appointmentId?.[0] ?? "",
|
|
38486
|
+
// enId: _.Encounter.id,
|
|
38487
|
+
// contact: _?.Encounter?.patient_id?.[0]?.telecom?.[0]?.value,
|
|
38488
|
+
// personId: _?.Appointment?.PersonID?.[0]?.Id ?? null,
|
|
38489
|
+
// patientId: _?.Encounter?.patient_id?.[0]?.id ?? null,
|
|
38490
|
+
// }),
|
|
38491
|
+
|
|
38494
38492
|
};
|
|
38495
38493
|
}) : [];
|
|
38496
38494
|
return _context2.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -38535,7 +38533,7 @@ var GET_OTHER_VISITS = createAsyncThunk("appointmentStatsApiSlice/getOtherVisits
|
|
|
38535
38533
|
case 5:
|
|
38536
38534
|
data = _context3.sent;
|
|
38537
38535
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result3 = data.result) === null || _data$result3 === void 0 ? void 0 : _data$result3.map(function (_) {
|
|
38538
|
-
var _$
|
|
38536
|
+
var _$Encounter9, _$Encounter9$patient_, _$Encounter9$patient_2, _$Encounter9$patient_3, _$Encounter10, _$Encounter10$patient, _$Encounter10$patient2, _$Appointment19, _$Appointment19$Perso, _$Appointment19$Perso2, _$Appointment20, _$Appointment21, _$Appointment22, _$Appointment23, _$Encounter11, _$Encounter12, _$Encounter12$status, _$Encounter$appointme3, _$Encounter13, _$Encounter13$appoint, _$Encounter$appointme4, _$Encounter14, _$Encounter14$appoint, _$Encounter15, _$Encounter15$patient, _$Encounter15$patient2, _$Encounter15$patient3, _$Encounter15$patient4, _$Appointment$PersonI5, _$Appointment24, _$Appointment24$Perso, _$Appointment24$Perso2, _$Encounter$patient_i5, _$Encounter16, _$Encounter16$patient, _$Encounter16$patient2;
|
|
38539
38537
|
|
|
38540
38538
|
return {
|
|
38541
38539
|
// img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -38567,34 +38565,34 @@ var GET_OTHER_VISITS = createAsyncThunk("appointmentStatsApiSlice/getOtherVisits
|
|
|
38567
38565
|
// "Modify Appointment": true,
|
|
38568
38566
|
// "Cancel Appointment": true,
|
|
38569
38567
|
// "View Profile": true,
|
|
38570
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
38571
|
-
mrn: _ === null || _ === void 0 ? void 0 : (_$
|
|
38572
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
38573
|
-
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$
|
|
38574
|
-
visitType: _ === null || _ === void 0 ? void 0 : (_$
|
|
38575
|
-
appointmentStatus: _ === null || _ === void 0 ? void 0 : (_$
|
|
38576
|
-
refNo: (_$Encounter$
|
|
38577
|
-
|
|
38578
|
-
appNo: (_$Encounter$
|
|
38579
|
-
enId: _.Encounter.id,
|
|
38580
|
-
contact: _ === null || _ === void 0 ? void 0 : (_$Encounter21 = _.Encounter) === null || _$Encounter21 === void 0 ? void 0 : (_$Encounter21$patient = _$Encounter21.patient_id) === null || _$Encounter21$patient === void 0 ? void 0 : (_$Encounter21$patient2 = _$Encounter21$patient[0]) === null || _$Encounter21$patient2 === void 0 ? void 0 : (_$Encounter21$patient3 = _$Encounter21$patient2.telecom) === null || _$Encounter21$patient3 === void 0 ? void 0 : (_$Encounter21$patient4 = _$Encounter21$patient3[0]) === null || _$Encounter21$patient4 === void 0 ? void 0 : _$Encounter21$patient4.value,
|
|
38581
|
-
personId: (_$Appointment$PersonI8 = _ === null || _ === void 0 ? void 0 : (_$Appointment27 = _.Appointment) === null || _$Appointment27 === void 0 ? void 0 : (_$Appointment27$Perso = _$Appointment27.PersonID) === null || _$Appointment27$Perso === void 0 ? void 0 : (_$Appointment27$Perso2 = _$Appointment27$Perso[0]) === null || _$Appointment27$Perso2 === void 0 ? void 0 : _$Appointment27$Perso2.Id) !== null && _$Appointment$PersonI8 !== void 0 ? _$Appointment$PersonI8 : null,
|
|
38582
|
-
patientId: (_$Encounter$patient_i7 = _ === null || _ === void 0 ? void 0 : (_$Encounter22 = _.Encounter) === null || _$Encounter22 === void 0 ? void 0 : (_$Encounter22$patient = _$Encounter22.patient_id) === null || _$Encounter22$patient === void 0 ? void 0 : (_$Encounter22$patient2 = _$Encounter22$patient[0]) === null || _$Encounter22$patient2 === void 0 ? void 0 : _$Encounter22$patient2.id) !== null && _$Encounter$patient_i7 !== void 0 ? _$Encounter$patient_i7 : null
|
|
38583
|
-
}),
|
|
38584
|
-
modifyaction: JSON.stringify({
|
|
38585
|
-
appNo: (_$Encounter$appointme7 = _ === null || _ === void 0 ? void 0 : (_$Encounter23 = _.Encounter) === null || _$Encounter23 === void 0 ? void 0 : (_$Encounter23$appoint = _$Encounter23.appointmentId) === null || _$Encounter23$appoint === void 0 ? void 0 : _$Encounter23$appoint[0]) !== null && _$Encounter$appointme7 !== void 0 ? _$Encounter$appointme7 : "",
|
|
38586
|
-
enId: _.Encounter.id,
|
|
38587
|
-
contact: _ === null || _ === void 0 ? void 0 : (_$Encounter24 = _.Encounter) === null || _$Encounter24 === void 0 ? void 0 : (_$Encounter24$patient = _$Encounter24.patient_id) === null || _$Encounter24$patient === void 0 ? void 0 : (_$Encounter24$patient2 = _$Encounter24$patient[0]) === null || _$Encounter24$patient2 === void 0 ? void 0 : (_$Encounter24$patient3 = _$Encounter24$patient2.telecom) === null || _$Encounter24$patient3 === void 0 ? void 0 : (_$Encounter24$patient4 = _$Encounter24$patient3[0]) === null || _$Encounter24$patient4 === void 0 ? void 0 : _$Encounter24$patient4.value,
|
|
38588
|
-
personId: (_$Appointment$PersonI9 = _ === null || _ === void 0 ? void 0 : (_$Appointment28 = _.Appointment) === null || _$Appointment28 === void 0 ? void 0 : (_$Appointment28$Perso = _$Appointment28.PersonID) === null || _$Appointment28$Perso === void 0 ? void 0 : (_$Appointment28$Perso2 = _$Appointment28$Perso[0]) === null || _$Appointment28$Perso2 === void 0 ? void 0 : _$Appointment28$Perso2.Id) !== null && _$Appointment$PersonI9 !== void 0 ? _$Appointment$PersonI9 : null,
|
|
38589
|
-
patientId: (_$Encounter$patient_i8 = _ === null || _ === void 0 ? void 0 : (_$Encounter25 = _.Encounter) === null || _$Encounter25 === void 0 ? void 0 : (_$Encounter25$patient = _$Encounter25.patient_id) === null || _$Encounter25$patient === void 0 ? void 0 : (_$Encounter25$patient2 = _$Encounter25$patient[0]) === null || _$Encounter25$patient2 === void 0 ? void 0 : _$Encounter25$patient2.id) !== null && _$Encounter$patient_i8 !== void 0 ? _$Encounter$patient_i8 : null
|
|
38590
|
-
}),
|
|
38591
|
-
cancelaction: JSON.stringify({
|
|
38592
|
-
appNo: (_$Encounter$appointme8 = _ === null || _ === void 0 ? void 0 : (_$Encounter26 = _.Encounter) === null || _$Encounter26 === void 0 ? void 0 : (_$Encounter26$appoint = _$Encounter26.appointmentId) === null || _$Encounter26$appoint === void 0 ? void 0 : _$Encounter26$appoint[0]) !== null && _$Encounter$appointme8 !== void 0 ? _$Encounter$appointme8 : "",
|
|
38568
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$Encounter9 = _.Encounter) === null || _$Encounter9 === void 0 ? void 0 : (_$Encounter9$patient_ = _$Encounter9.patient_id) === null || _$Encounter9$patient_ === void 0 ? void 0 : (_$Encounter9$patient_2 = _$Encounter9$patient_[0]) === null || _$Encounter9$patient_2 === void 0 ? void 0 : (_$Encounter9$patient_3 = _$Encounter9$patient_2.name) === null || _$Encounter9$patient_3 === void 0 ? void 0 : _$Encounter9$patient_3[0]) || {}),
|
|
38569
|
+
mrn: _ === null || _ === void 0 ? void 0 : (_$Encounter10 = _.Encounter) === null || _$Encounter10 === void 0 ? void 0 : (_$Encounter10$patient = _$Encounter10.patient_id) === null || _$Encounter10$patient === void 0 ? void 0 : (_$Encounter10$patient2 = _$Encounter10$patient[0]) === null || _$Encounter10$patient2 === void 0 ? void 0 : _$Encounter10$patient2.MRN,
|
|
38570
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment19 = _.Appointment) === null || _$Appointment19 === void 0 ? void 0 : (_$Appointment19$Perso = _$Appointment19.PersonID) === null || _$Appointment19$Perso === void 0 ? void 0 : (_$Appointment19$Perso2 = _$Appointment19$Perso[0]) === null || _$Appointment19$Perso2 === void 0 ? void 0 : _$Appointment19$Perso2.birthDay),
|
|
38571
|
+
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$Appointment20 = _.Appointment) === null || _$Appointment20 === void 0 ? void 0 : _$Appointment20.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment21 = _.Appointment) === null || _$Appointment21 === void 0 ? void 0 : _$Appointment21.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$Appointment22 = _.Appointment) === null || _$Appointment22 === void 0 ? void 0 : _$Appointment22.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment23 = _.Appointment) === null || _$Appointment23 === void 0 ? void 0 : _$Appointment23.start, "hh:mm A") : ""),
|
|
38572
|
+
visitType: _ === null || _ === void 0 ? void 0 : (_$Encounter11 = _.Encounter) === null || _$Encounter11 === void 0 ? void 0 : _$Encounter11.visit_type,
|
|
38573
|
+
appointmentStatus: _ === null || _ === void 0 ? void 0 : (_$Encounter12 = _.Encounter) === null || _$Encounter12 === void 0 ? void 0 : (_$Encounter12$status = _$Encounter12.status) === null || _$Encounter12$status === void 0 ? void 0 : _$Encounter12$status.display,
|
|
38574
|
+
refNo: (_$Encounter$appointme3 = _ === null || _ === void 0 ? void 0 : (_$Encounter13 = _.Encounter) === null || _$Encounter13 === void 0 ? void 0 : (_$Encounter13$appoint = _$Encounter13.appointmentId) === null || _$Encounter13$appoint === void 0 ? void 0 : _$Encounter13$appoint[0]) !== null && _$Encounter$appointme3 !== void 0 ? _$Encounter$appointme3 : "",
|
|
38575
|
+
action: JSON.stringify({
|
|
38576
|
+
appNo: (_$Encounter$appointme4 = _ === null || _ === void 0 ? void 0 : (_$Encounter14 = _.Encounter) === null || _$Encounter14 === void 0 ? void 0 : (_$Encounter14$appoint = _$Encounter14.appointmentId) === null || _$Encounter14$appoint === void 0 ? void 0 : _$Encounter14$appoint[0]) !== null && _$Encounter$appointme4 !== void 0 ? _$Encounter$appointme4 : "",
|
|
38593
38577
|
enId: _.Encounter.id,
|
|
38594
|
-
contact: _ === null || _ === void 0 ? void 0 : (_$
|
|
38595
|
-
personId: (_$Appointment$
|
|
38596
|
-
patientId: (_$Encounter$
|
|
38597
|
-
})
|
|
38578
|
+
contact: _ === null || _ === void 0 ? void 0 : (_$Encounter15 = _.Encounter) === null || _$Encounter15 === void 0 ? void 0 : (_$Encounter15$patient = _$Encounter15.patient_id) === null || _$Encounter15$patient === void 0 ? void 0 : (_$Encounter15$patient2 = _$Encounter15$patient[0]) === null || _$Encounter15$patient2 === void 0 ? void 0 : (_$Encounter15$patient3 = _$Encounter15$patient2.telecom) === null || _$Encounter15$patient3 === void 0 ? void 0 : (_$Encounter15$patient4 = _$Encounter15$patient3[0]) === null || _$Encounter15$patient4 === void 0 ? void 0 : _$Encounter15$patient4.value,
|
|
38579
|
+
personId: (_$Appointment$PersonI5 = _ === null || _ === void 0 ? void 0 : (_$Appointment24 = _.Appointment) === null || _$Appointment24 === void 0 ? void 0 : (_$Appointment24$Perso = _$Appointment24.PersonID) === null || _$Appointment24$Perso === void 0 ? void 0 : (_$Appointment24$Perso2 = _$Appointment24$Perso[0]) === null || _$Appointment24$Perso2 === void 0 ? void 0 : _$Appointment24$Perso2.Id) !== null && _$Appointment$PersonI5 !== void 0 ? _$Appointment$PersonI5 : null,
|
|
38580
|
+
patientId: (_$Encounter$patient_i5 = _ === null || _ === void 0 ? void 0 : (_$Encounter16 = _.Encounter) === null || _$Encounter16 === void 0 ? void 0 : (_$Encounter16$patient = _$Encounter16.patient_id) === null || _$Encounter16$patient === void 0 ? void 0 : (_$Encounter16$patient2 = _$Encounter16$patient[0]) === null || _$Encounter16$patient2 === void 0 ? void 0 : _$Encounter16$patient2.id) !== null && _$Encounter$patient_i5 !== void 0 ? _$Encounter$patient_i5 : null
|
|
38581
|
+
}) // modifyaction: JSON.stringify({
|
|
38582
|
+
// appNo: _?.Encounter?.appointmentId?.[0] ?? "",
|
|
38583
|
+
// enId: _.Encounter.id,
|
|
38584
|
+
// contact: _?.Encounter?.patient_id?.[0]?.telecom?.[0]?.value,
|
|
38585
|
+
// personId: _?.Appointment?.PersonID?.[0]?.Id ?? null,
|
|
38586
|
+
// patientId: _?.Encounter?.patient_id?.[0]?.id ?? null,
|
|
38587
|
+
// }),
|
|
38588
|
+
// cancelaction: JSON.stringify({
|
|
38589
|
+
// appNo: _?.Encounter?.appointmentId?.[0] ?? "",
|
|
38590
|
+
// enId: _.Encounter.id,
|
|
38591
|
+
// contact: _?.Encounter?.patient_id?.[0]?.telecom?.[0]?.value,
|
|
38592
|
+
// personId: _?.Appointment?.PersonID?.[0]?.Id ?? null,
|
|
38593
|
+
// patientId: _?.Encounter?.patient_id?.[0]?.id ?? null,
|
|
38594
|
+
// }),
|
|
38595
|
+
|
|
38598
38596
|
};
|
|
38599
38597
|
}) : [];
|
|
38600
38598
|
return _context3.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -38639,7 +38637,7 @@ var GET_WALK_INS = createAsyncThunk("appointmentStatsApiSlice/getWalkIns", /*#__
|
|
|
38639
38637
|
case 5:
|
|
38640
38638
|
data = _context4.sent;
|
|
38641
38639
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result4 = data.result) === null || _data$result4 === void 0 ? void 0 : _data$result4.map(function (_) {
|
|
38642
|
-
var _$
|
|
38640
|
+
var _$Encounter17, _$Encounter17$patient, _$Encounter17$patient2, _$Encounter17$patient3, _$Encounter18, _$Encounter18$patient, _$Encounter18$patient2, _$Appointment25, _$Appointment25$Perso, _$Appointment25$Perso2, _$Appointment26, _$Appointment27, _$Appointment28, _$Appointment29, _$Encounter19, _$Encounter20, _$Encounter20$status, _$Encounter$appointme5, _$Encounter21, _$Encounter21$appoint, _$Encounter$appointme6, _$Encounter22, _$Encounter22$appoint, _$Encounter23, _$Encounter23$patient, _$Encounter23$patient2, _$Encounter23$patient3, _$Encounter23$patient4, _$Appointment$PersonI6, _$Appointment30, _$Appointment30$Perso, _$Appointment30$Perso2, _$Encounter$patient_i6, _$Encounter24, _$Encounter24$patient, _$Encounter24$patient2;
|
|
38643
38641
|
|
|
38644
38642
|
return {
|
|
38645
38643
|
// img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -38671,34 +38669,34 @@ var GET_WALK_INS = createAsyncThunk("appointmentStatsApiSlice/getWalkIns", /*#__
|
|
|
38671
38669
|
// "Modify Appointment": true,
|
|
38672
38670
|
// "Cancel Appointment": true,
|
|
38673
38671
|
// "View Profile": true,
|
|
38674
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
38675
|
-
mrn: _ === null || _ === void 0 ? void 0 : (_$
|
|
38676
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
38677
|
-
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$
|
|
38678
|
-
visitType: _ === null || _ === void 0 ? void 0 : (_$
|
|
38679
|
-
appointmentStatus: _ === null || _ === void 0 ? void 0 : (_$
|
|
38680
|
-
refNo: (_$Encounter$
|
|
38681
|
-
|
|
38682
|
-
appNo: (_$Encounter$
|
|
38683
|
-
enId: _.Encounter.id,
|
|
38684
|
-
contact: _ === null || _ === void 0 ? void 0 : (_$Encounter35 = _.Encounter) === null || _$Encounter35 === void 0 ? void 0 : (_$Encounter35$patient = _$Encounter35.patient_id) === null || _$Encounter35$patient === void 0 ? void 0 : (_$Encounter35$patient2 = _$Encounter35$patient[0]) === null || _$Encounter35$patient2 === void 0 ? void 0 : (_$Encounter35$patient3 = _$Encounter35$patient2.telecom) === null || _$Encounter35$patient3 === void 0 ? void 0 : (_$Encounter35$patient4 = _$Encounter35$patient3[0]) === null || _$Encounter35$patient4 === void 0 ? void 0 : _$Encounter35$patient4.value,
|
|
38685
|
-
personId: (_$Appointment$PersonI11 = _ === null || _ === void 0 ? void 0 : (_$Appointment35 = _.Appointment) === null || _$Appointment35 === void 0 ? void 0 : (_$Appointment35$Perso = _$Appointment35.PersonID) === null || _$Appointment35$Perso === void 0 ? void 0 : (_$Appointment35$Perso2 = _$Appointment35$Perso[0]) === null || _$Appointment35$Perso2 === void 0 ? void 0 : _$Appointment35$Perso2.Id) !== null && _$Appointment$PersonI11 !== void 0 ? _$Appointment$PersonI11 : null,
|
|
38686
|
-
patientId: (_$Encounter$patient_i10 = _ === null || _ === void 0 ? void 0 : (_$Encounter36 = _.Encounter) === null || _$Encounter36 === void 0 ? void 0 : (_$Encounter36$patient = _$Encounter36.patient_id) === null || _$Encounter36$patient === void 0 ? void 0 : (_$Encounter36$patient2 = _$Encounter36$patient[0]) === null || _$Encounter36$patient2 === void 0 ? void 0 : _$Encounter36$patient2.id) !== null && _$Encounter$patient_i10 !== void 0 ? _$Encounter$patient_i10 : null
|
|
38687
|
-
}),
|
|
38688
|
-
modifyaction: JSON.stringify({
|
|
38689
|
-
appNo: (_$Encounter$appointme11 = _ === null || _ === void 0 ? void 0 : (_$Encounter37 = _.Encounter) === null || _$Encounter37 === void 0 ? void 0 : (_$Encounter37$appoint = _$Encounter37.appointmentId) === null || _$Encounter37$appoint === void 0 ? void 0 : _$Encounter37$appoint[0]) !== null && _$Encounter$appointme11 !== void 0 ? _$Encounter$appointme11 : "",
|
|
38690
|
-
enId: _.Encounter.id,
|
|
38691
|
-
contact: _ === null || _ === void 0 ? void 0 : (_$Encounter38 = _.Encounter) === null || _$Encounter38 === void 0 ? void 0 : (_$Encounter38$patient = _$Encounter38.patient_id) === null || _$Encounter38$patient === void 0 ? void 0 : (_$Encounter38$patient2 = _$Encounter38$patient[0]) === null || _$Encounter38$patient2 === void 0 ? void 0 : (_$Encounter38$patient3 = _$Encounter38$patient2.telecom) === null || _$Encounter38$patient3 === void 0 ? void 0 : (_$Encounter38$patient4 = _$Encounter38$patient3[0]) === null || _$Encounter38$patient4 === void 0 ? void 0 : _$Encounter38$patient4.value,
|
|
38692
|
-
personId: (_$Appointment$PersonI12 = _ === null || _ === void 0 ? void 0 : (_$Appointment36 = _.Appointment) === null || _$Appointment36 === void 0 ? void 0 : (_$Appointment36$Perso = _$Appointment36.PersonID) === null || _$Appointment36$Perso === void 0 ? void 0 : (_$Appointment36$Perso2 = _$Appointment36$Perso[0]) === null || _$Appointment36$Perso2 === void 0 ? void 0 : _$Appointment36$Perso2.Id) !== null && _$Appointment$PersonI12 !== void 0 ? _$Appointment$PersonI12 : null,
|
|
38693
|
-
patientId: (_$Encounter$patient_i11 = _ === null || _ === void 0 ? void 0 : (_$Encounter39 = _.Encounter) === null || _$Encounter39 === void 0 ? void 0 : (_$Encounter39$patient = _$Encounter39.patient_id) === null || _$Encounter39$patient === void 0 ? void 0 : (_$Encounter39$patient2 = _$Encounter39$patient[0]) === null || _$Encounter39$patient2 === void 0 ? void 0 : _$Encounter39$patient2.id) !== null && _$Encounter$patient_i11 !== void 0 ? _$Encounter$patient_i11 : null
|
|
38694
|
-
}),
|
|
38695
|
-
cancelaction: JSON.stringify({
|
|
38696
|
-
appNo: (_$Encounter$appointme12 = _ === null || _ === void 0 ? void 0 : (_$Encounter40 = _.Encounter) === null || _$Encounter40 === void 0 ? void 0 : (_$Encounter40$appoint = _$Encounter40.appointmentId) === null || _$Encounter40$appoint === void 0 ? void 0 : _$Encounter40$appoint[0]) !== null && _$Encounter$appointme12 !== void 0 ? _$Encounter$appointme12 : "",
|
|
38672
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$Encounter17 = _.Encounter) === null || _$Encounter17 === void 0 ? void 0 : (_$Encounter17$patient = _$Encounter17.patient_id) === null || _$Encounter17$patient === void 0 ? void 0 : (_$Encounter17$patient2 = _$Encounter17$patient[0]) === null || _$Encounter17$patient2 === void 0 ? void 0 : (_$Encounter17$patient3 = _$Encounter17$patient2.name) === null || _$Encounter17$patient3 === void 0 ? void 0 : _$Encounter17$patient3[0]) || {}),
|
|
38673
|
+
mrn: _ === null || _ === void 0 ? void 0 : (_$Encounter18 = _.Encounter) === null || _$Encounter18 === void 0 ? void 0 : (_$Encounter18$patient = _$Encounter18.patient_id) === null || _$Encounter18$patient === void 0 ? void 0 : (_$Encounter18$patient2 = _$Encounter18$patient[0]) === null || _$Encounter18$patient2 === void 0 ? void 0 : _$Encounter18$patient2.MRN,
|
|
38674
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment25 = _.Appointment) === null || _$Appointment25 === void 0 ? void 0 : (_$Appointment25$Perso = _$Appointment25.PersonID) === null || _$Appointment25$Perso === void 0 ? void 0 : (_$Appointment25$Perso2 = _$Appointment25$Perso[0]) === null || _$Appointment25$Perso2 === void 0 ? void 0 : _$Appointment25$Perso2.birthDay),
|
|
38675
|
+
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$Appointment26 = _.Appointment) === null || _$Appointment26 === void 0 ? void 0 : _$Appointment26.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment27 = _.Appointment) === null || _$Appointment27 === void 0 ? void 0 : _$Appointment27.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$Appointment28 = _.Appointment) === null || _$Appointment28 === void 0 ? void 0 : _$Appointment28.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment29 = _.Appointment) === null || _$Appointment29 === void 0 ? void 0 : _$Appointment29.start, "hh:mm A") : ""),
|
|
38676
|
+
visitType: _ === null || _ === void 0 ? void 0 : (_$Encounter19 = _.Encounter) === null || _$Encounter19 === void 0 ? void 0 : _$Encounter19.visit_type,
|
|
38677
|
+
appointmentStatus: _ === null || _ === void 0 ? void 0 : (_$Encounter20 = _.Encounter) === null || _$Encounter20 === void 0 ? void 0 : (_$Encounter20$status = _$Encounter20.status) === null || _$Encounter20$status === void 0 ? void 0 : _$Encounter20$status.display,
|
|
38678
|
+
refNo: (_$Encounter$appointme5 = _ === null || _ === void 0 ? void 0 : (_$Encounter21 = _.Encounter) === null || _$Encounter21 === void 0 ? void 0 : (_$Encounter21$appoint = _$Encounter21.appointmentId) === null || _$Encounter21$appoint === void 0 ? void 0 : _$Encounter21$appoint[0]) !== null && _$Encounter$appointme5 !== void 0 ? _$Encounter$appointme5 : "",
|
|
38679
|
+
action: JSON.stringify({
|
|
38680
|
+
appNo: (_$Encounter$appointme6 = _ === null || _ === void 0 ? void 0 : (_$Encounter22 = _.Encounter) === null || _$Encounter22 === void 0 ? void 0 : (_$Encounter22$appoint = _$Encounter22.appointmentId) === null || _$Encounter22$appoint === void 0 ? void 0 : _$Encounter22$appoint[0]) !== null && _$Encounter$appointme6 !== void 0 ? _$Encounter$appointme6 : "",
|
|
38697
38681
|
enId: _.Encounter.id,
|
|
38698
|
-
contact: _ === null || _ === void 0 ? void 0 : (_$
|
|
38699
|
-
personId: (_$Appointment$
|
|
38700
|
-
patientId: (_$Encounter$
|
|
38701
|
-
})
|
|
38682
|
+
contact: _ === null || _ === void 0 ? void 0 : (_$Encounter23 = _.Encounter) === null || _$Encounter23 === void 0 ? void 0 : (_$Encounter23$patient = _$Encounter23.patient_id) === null || _$Encounter23$patient === void 0 ? void 0 : (_$Encounter23$patient2 = _$Encounter23$patient[0]) === null || _$Encounter23$patient2 === void 0 ? void 0 : (_$Encounter23$patient3 = _$Encounter23$patient2.telecom) === null || _$Encounter23$patient3 === void 0 ? void 0 : (_$Encounter23$patient4 = _$Encounter23$patient3[0]) === null || _$Encounter23$patient4 === void 0 ? void 0 : _$Encounter23$patient4.value,
|
|
38683
|
+
personId: (_$Appointment$PersonI6 = _ === null || _ === void 0 ? void 0 : (_$Appointment30 = _.Appointment) === null || _$Appointment30 === void 0 ? void 0 : (_$Appointment30$Perso = _$Appointment30.PersonID) === null || _$Appointment30$Perso === void 0 ? void 0 : (_$Appointment30$Perso2 = _$Appointment30$Perso[0]) === null || _$Appointment30$Perso2 === void 0 ? void 0 : _$Appointment30$Perso2.Id) !== null && _$Appointment$PersonI6 !== void 0 ? _$Appointment$PersonI6 : null,
|
|
38684
|
+
patientId: (_$Encounter$patient_i6 = _ === null || _ === void 0 ? void 0 : (_$Encounter24 = _.Encounter) === null || _$Encounter24 === void 0 ? void 0 : (_$Encounter24$patient = _$Encounter24.patient_id) === null || _$Encounter24$patient === void 0 ? void 0 : (_$Encounter24$patient2 = _$Encounter24$patient[0]) === null || _$Encounter24$patient2 === void 0 ? void 0 : _$Encounter24$patient2.id) !== null && _$Encounter$patient_i6 !== void 0 ? _$Encounter$patient_i6 : null
|
|
38685
|
+
}) // modifyaction: JSON.stringify({
|
|
38686
|
+
// appNo: _?.Encounter?.appointmentId?.[0] ?? "",
|
|
38687
|
+
// enId: _.Encounter.id,
|
|
38688
|
+
// contact: _?.Encounter?.patient_id?.[0]?.telecom?.[0]?.value,
|
|
38689
|
+
// personId: _?.Appointment?.PersonID?.[0]?.Id ?? null,
|
|
38690
|
+
// patientId: _?.Encounter?.patient_id?.[0]?.id ?? null,
|
|
38691
|
+
// }),
|
|
38692
|
+
// cancelaction: JSON.stringify({
|
|
38693
|
+
// appNo: _?.Encounter?.appointmentId?.[0] ?? "",
|
|
38694
|
+
// enId: _.Encounter.id,
|
|
38695
|
+
// contact: _?.Encounter?.patient_id?.[0]?.telecom?.[0]?.value,
|
|
38696
|
+
// personId: _?.Appointment?.PersonID?.[0]?.Id ?? null,
|
|
38697
|
+
// patientId: _?.Encounter?.patient_id?.[0]?.id ?? null,
|
|
38698
|
+
// }),
|
|
38699
|
+
|
|
38702
38700
|
};
|
|
38703
38701
|
}) : [];
|
|
38704
38702
|
return _context4.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -38743,7 +38741,7 @@ var GET_NEW_PATIENTS = createAsyncThunk("appointmentStatsApiSlice/getNewPatients
|
|
|
38743
38741
|
case 5:
|
|
38744
38742
|
data = _context5.sent;
|
|
38745
38743
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result5 = data.result) === null || _data$result5 === void 0 ? void 0 : _data$result5.map(function (_) {
|
|
38746
|
-
var _$
|
|
38744
|
+
var _$Encounter25, _$Encounter25$patient, _$Encounter25$patient2, _$Encounter25$patient3, _$Encounter26, _$Encounter26$patient, _$Encounter26$patient2, _$Appointment31, _$Appointment31$Perso, _$Appointment31$Perso2, _$Appointment32, _$Appointment33, _$Appointment34, _$Appointment35, _$Encounter27, _$Encounter$status$di2, _$Encounter28, _$Encounter28$status, _$Encounter$appointme7, _$Encounter29, _$Encounter29$appoint, _$Encounter$appointme8, _$Encounter30, _$Encounter30$appoint, _$Encounter31, _$Encounter31$patient, _$Encounter31$patient2, _$Encounter31$patient3, _$Encounter31$patient4, _$Appointment$PersonI7, _$Appointment36, _$Appointment36$Perso, _$Appointment36$Perso2, _$Encounter$patient_i7, _$Encounter32, _$Encounter32$patient, _$Encounter32$patient2;
|
|
38747
38745
|
|
|
38748
38746
|
return {
|
|
38749
38747
|
// img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -38775,34 +38773,34 @@ var GET_NEW_PATIENTS = createAsyncThunk("appointmentStatsApiSlice/getNewPatients
|
|
|
38775
38773
|
// "Modify Appointment": true,
|
|
38776
38774
|
// "Cancel Appointment": true,
|
|
38777
38775
|
// "View Profile": true,
|
|
38778
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
38779
|
-
mrn: _ === null || _ === void 0 ? void 0 : (_$
|
|
38780
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
38781
|
-
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$
|
|
38782
|
-
visitType: _ === null || _ === void 0 ? void 0 : (_$
|
|
38783
|
-
appointmentStatus: _ === null || _ === void 0 ? void 0 : (_$
|
|
38784
|
-
refNo: (_$Encounter$
|
|
38785
|
-
|
|
38786
|
-
appNo: (_$Encounter$
|
|
38787
|
-
enId: _.Encounter.id,
|
|
38788
|
-
contact: _ === null || _ === void 0 ? void 0 : (_$Encounter49 = _.Encounter) === null || _$Encounter49 === void 0 ? void 0 : (_$Encounter49$patient = _$Encounter49.patient_id) === null || _$Encounter49$patient === void 0 ? void 0 : (_$Encounter49$patient2 = _$Encounter49$patient[0]) === null || _$Encounter49$patient2 === void 0 ? void 0 : (_$Encounter49$patient3 = _$Encounter49$patient2.telecom) === null || _$Encounter49$patient3 === void 0 ? void 0 : (_$Encounter49$patient4 = _$Encounter49$patient3[0]) === null || _$Encounter49$patient4 === void 0 ? void 0 : _$Encounter49$patient4.value,
|
|
38789
|
-
personId: (_$Appointment$PersonI14 = _ === null || _ === void 0 ? void 0 : (_$Appointment43 = _.Appointment) === null || _$Appointment43 === void 0 ? void 0 : (_$Appointment43$Perso = _$Appointment43.PersonID) === null || _$Appointment43$Perso === void 0 ? void 0 : (_$Appointment43$Perso2 = _$Appointment43$Perso[0]) === null || _$Appointment43$Perso2 === void 0 ? void 0 : _$Appointment43$Perso2.Id) !== null && _$Appointment$PersonI14 !== void 0 ? _$Appointment$PersonI14 : null,
|
|
38790
|
-
patientId: (_$Encounter$patient_i13 = _ === null || _ === void 0 ? void 0 : (_$Encounter50 = _.Encounter) === null || _$Encounter50 === void 0 ? void 0 : (_$Encounter50$patient = _$Encounter50.patient_id) === null || _$Encounter50$patient === void 0 ? void 0 : (_$Encounter50$patient2 = _$Encounter50$patient[0]) === null || _$Encounter50$patient2 === void 0 ? void 0 : _$Encounter50$patient2.id) !== null && _$Encounter$patient_i13 !== void 0 ? _$Encounter$patient_i13 : null
|
|
38791
|
-
}),
|
|
38792
|
-
modifyaction: JSON.stringify({
|
|
38793
|
-
appNo: (_$Encounter$appointme15 = _ === null || _ === void 0 ? void 0 : (_$Encounter51 = _.Encounter) === null || _$Encounter51 === void 0 ? void 0 : (_$Encounter51$appoint = _$Encounter51.appointmentId) === null || _$Encounter51$appoint === void 0 ? void 0 : _$Encounter51$appoint[0]) !== null && _$Encounter$appointme15 !== void 0 ? _$Encounter$appointme15 : "",
|
|
38794
|
-
enId: _.Encounter.id,
|
|
38795
|
-
contact: _ === null || _ === void 0 ? void 0 : (_$Encounter52 = _.Encounter) === null || _$Encounter52 === void 0 ? void 0 : (_$Encounter52$patient = _$Encounter52.patient_id) === null || _$Encounter52$patient === void 0 ? void 0 : (_$Encounter52$patient2 = _$Encounter52$patient[0]) === null || _$Encounter52$patient2 === void 0 ? void 0 : (_$Encounter52$patient3 = _$Encounter52$patient2.telecom) === null || _$Encounter52$patient3 === void 0 ? void 0 : (_$Encounter52$patient4 = _$Encounter52$patient3[0]) === null || _$Encounter52$patient4 === void 0 ? void 0 : _$Encounter52$patient4.value,
|
|
38796
|
-
personId: (_$Appointment$PersonI15 = _ === null || _ === void 0 ? void 0 : (_$Appointment44 = _.Appointment) === null || _$Appointment44 === void 0 ? void 0 : (_$Appointment44$Perso = _$Appointment44.PersonID) === null || _$Appointment44$Perso === void 0 ? void 0 : (_$Appointment44$Perso2 = _$Appointment44$Perso[0]) === null || _$Appointment44$Perso2 === void 0 ? void 0 : _$Appointment44$Perso2.Id) !== null && _$Appointment$PersonI15 !== void 0 ? _$Appointment$PersonI15 : null,
|
|
38797
|
-
patientId: (_$Encounter$patient_i14 = _ === null || _ === void 0 ? void 0 : (_$Encounter53 = _.Encounter) === null || _$Encounter53 === void 0 ? void 0 : (_$Encounter53$patient = _$Encounter53.patient_id) === null || _$Encounter53$patient === void 0 ? void 0 : (_$Encounter53$patient2 = _$Encounter53$patient[0]) === null || _$Encounter53$patient2 === void 0 ? void 0 : _$Encounter53$patient2.id) !== null && _$Encounter$patient_i14 !== void 0 ? _$Encounter$patient_i14 : null
|
|
38798
|
-
}),
|
|
38799
|
-
cancelaction: JSON.stringify({
|
|
38800
|
-
appNo: (_$Encounter$appointme16 = _ === null || _ === void 0 ? void 0 : (_$Encounter54 = _.Encounter) === null || _$Encounter54 === void 0 ? void 0 : (_$Encounter54$appoint = _$Encounter54.appointmentId) === null || _$Encounter54$appoint === void 0 ? void 0 : _$Encounter54$appoint[0]) !== null && _$Encounter$appointme16 !== void 0 ? _$Encounter$appointme16 : "",
|
|
38776
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$Encounter25 = _.Encounter) === null || _$Encounter25 === void 0 ? void 0 : (_$Encounter25$patient = _$Encounter25.patient_id) === null || _$Encounter25$patient === void 0 ? void 0 : (_$Encounter25$patient2 = _$Encounter25$patient[0]) === null || _$Encounter25$patient2 === void 0 ? void 0 : (_$Encounter25$patient3 = _$Encounter25$patient2.name) === null || _$Encounter25$patient3 === void 0 ? void 0 : _$Encounter25$patient3[0]) || {}),
|
|
38777
|
+
mrn: _ === null || _ === void 0 ? void 0 : (_$Encounter26 = _.Encounter) === null || _$Encounter26 === void 0 ? void 0 : (_$Encounter26$patient = _$Encounter26.patient_id) === null || _$Encounter26$patient === void 0 ? void 0 : (_$Encounter26$patient2 = _$Encounter26$patient[0]) === null || _$Encounter26$patient2 === void 0 ? void 0 : _$Encounter26$patient2.MRN,
|
|
38778
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment31 = _.Appointment) === null || _$Appointment31 === void 0 ? void 0 : (_$Appointment31$Perso = _$Appointment31.PersonID) === null || _$Appointment31$Perso === void 0 ? void 0 : (_$Appointment31$Perso2 = _$Appointment31$Perso[0]) === null || _$Appointment31$Perso2 === void 0 ? void 0 : _$Appointment31$Perso2.birthDay),
|
|
38779
|
+
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$Appointment32 = _.Appointment) === null || _$Appointment32 === void 0 ? void 0 : _$Appointment32.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment33 = _.Appointment) === null || _$Appointment33 === void 0 ? void 0 : _$Appointment33.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$Appointment34 = _.Appointment) === null || _$Appointment34 === void 0 ? void 0 : _$Appointment34.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment35 = _.Appointment) === null || _$Appointment35 === void 0 ? void 0 : _$Appointment35.start, "hh:mm A") : ""),
|
|
38780
|
+
visitType: _ === null || _ === void 0 ? void 0 : (_$Encounter27 = _.Encounter) === null || _$Encounter27 === void 0 ? void 0 : _$Encounter27.visit_type,
|
|
38781
|
+
appointmentStatus: (_$Encounter$status$di2 = _ === null || _ === void 0 ? void 0 : (_$Encounter28 = _.Encounter) === null || _$Encounter28 === void 0 ? void 0 : (_$Encounter28$status = _$Encounter28.status) === null || _$Encounter28$status === void 0 ? void 0 : _$Encounter28$status.display) !== null && _$Encounter$status$di2 !== void 0 ? _$Encounter$status$di2 : "",
|
|
38782
|
+
refNo: (_$Encounter$appointme7 = _ === null || _ === void 0 ? void 0 : (_$Encounter29 = _.Encounter) === null || _$Encounter29 === void 0 ? void 0 : (_$Encounter29$appoint = _$Encounter29.appointmentId) === null || _$Encounter29$appoint === void 0 ? void 0 : _$Encounter29$appoint[0]) !== null && _$Encounter$appointme7 !== void 0 ? _$Encounter$appointme7 : "",
|
|
38783
|
+
action: JSON.stringify({
|
|
38784
|
+
appNo: (_$Encounter$appointme8 = _ === null || _ === void 0 ? void 0 : (_$Encounter30 = _.Encounter) === null || _$Encounter30 === void 0 ? void 0 : (_$Encounter30$appoint = _$Encounter30.appointmentId) === null || _$Encounter30$appoint === void 0 ? void 0 : _$Encounter30$appoint[0]) !== null && _$Encounter$appointme8 !== void 0 ? _$Encounter$appointme8 : "",
|
|
38801
38785
|
enId: _.Encounter.id,
|
|
38802
|
-
contact: _ === null || _ === void 0 ? void 0 : (_$
|
|
38803
|
-
personId: (_$Appointment$
|
|
38804
|
-
patientId: (_$Encounter$
|
|
38805
|
-
})
|
|
38786
|
+
contact: _ === null || _ === void 0 ? void 0 : (_$Encounter31 = _.Encounter) === null || _$Encounter31 === void 0 ? void 0 : (_$Encounter31$patient = _$Encounter31.patient_id) === null || _$Encounter31$patient === void 0 ? void 0 : (_$Encounter31$patient2 = _$Encounter31$patient[0]) === null || _$Encounter31$patient2 === void 0 ? void 0 : (_$Encounter31$patient3 = _$Encounter31$patient2.telecom) === null || _$Encounter31$patient3 === void 0 ? void 0 : (_$Encounter31$patient4 = _$Encounter31$patient3[0]) === null || _$Encounter31$patient4 === void 0 ? void 0 : _$Encounter31$patient4.value,
|
|
38787
|
+
personId: (_$Appointment$PersonI7 = _ === null || _ === void 0 ? void 0 : (_$Appointment36 = _.Appointment) === null || _$Appointment36 === void 0 ? void 0 : (_$Appointment36$Perso = _$Appointment36.PersonID) === null || _$Appointment36$Perso === void 0 ? void 0 : (_$Appointment36$Perso2 = _$Appointment36$Perso[0]) === null || _$Appointment36$Perso2 === void 0 ? void 0 : _$Appointment36$Perso2.Id) !== null && _$Appointment$PersonI7 !== void 0 ? _$Appointment$PersonI7 : null,
|
|
38788
|
+
patientId: (_$Encounter$patient_i7 = _ === null || _ === void 0 ? void 0 : (_$Encounter32 = _.Encounter) === null || _$Encounter32 === void 0 ? void 0 : (_$Encounter32$patient = _$Encounter32.patient_id) === null || _$Encounter32$patient === void 0 ? void 0 : (_$Encounter32$patient2 = _$Encounter32$patient[0]) === null || _$Encounter32$patient2 === void 0 ? void 0 : _$Encounter32$patient2.id) !== null && _$Encounter$patient_i7 !== void 0 ? _$Encounter$patient_i7 : null
|
|
38789
|
+
}) // modifyaction: JSON.stringify({
|
|
38790
|
+
// appNo: _?.Encounter?.appointmentId?.[0] ?? "",
|
|
38791
|
+
// enId: _.Encounter.id,
|
|
38792
|
+
// contact: _?.Encounter?.patient_id?.[0]?.telecom?.[0]?.value,
|
|
38793
|
+
// personId: _?.Appointment?.PersonID?.[0]?.Id ?? null,
|
|
38794
|
+
// patientId: _?.Encounter?.patient_id?.[0]?.id ?? null,
|
|
38795
|
+
// }),
|
|
38796
|
+
// cancelaction: JSON.stringify({
|
|
38797
|
+
// appNo: _?.Encounter?.appointmentId?.[0] ?? "",
|
|
38798
|
+
// enId: _.Encounter.id,
|
|
38799
|
+
// contact: _?.Encounter?.patient_id?.[0]?.telecom?.[0]?.value,
|
|
38800
|
+
// personId: _?.Appointment?.PersonID?.[0]?.Id ?? null,
|
|
38801
|
+
// patientId: _?.Encounter?.patient_id?.[0]?.id ?? null,
|
|
38802
|
+
// }),
|
|
38803
|
+
|
|
38806
38804
|
};
|
|
38807
38805
|
}) : [];
|
|
38808
38806
|
return _context5.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -38847,7 +38845,7 @@ var GET_TODAY_VISITS = createAsyncThunk("appointmentStatsApiSlice/getTodayVisits
|
|
|
38847
38845
|
case 5:
|
|
38848
38846
|
data = _context6.sent;
|
|
38849
38847
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result6 = data.result) === null || _data$result6 === void 0 ? void 0 : _data$result6.map(function (_) {
|
|
38850
|
-
var _$
|
|
38848
|
+
var _$Encounter33, _$Encounter33$patient, _$Encounter33$patient2, _$Encounter33$patient3, _$Encounter34, _$Encounter34$patient, _$Encounter34$patient2, _$Appointment37, _$Appointment37$Perso, _$Appointment37$Perso2, _$Appointment38, _$Appointment39, _$Appointment40, _$Appointment41, _$Encounter35, _$Encounter36, _$Encounter36$status, _$Encounter$appointme9, _$Encounter37, _$Encounter37$appoint, _$Encounter$appointme10, _$Encounter38, _$Encounter38$appoint, _$Encounter39, _$Encounter39$patient, _$Encounter39$patient2, _$Encounter39$patient3, _$Encounter39$patient4, _$Appointment$PersonI8, _$Appointment42, _$Appointment42$Perso, _$Appointment42$Perso2, _$Encounter$patient_i8, _$Encounter40, _$Encounter40$patient, _$Encounter40$patient2;
|
|
38851
38849
|
|
|
38852
38850
|
return {
|
|
38853
38851
|
// img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -38879,34 +38877,34 @@ var GET_TODAY_VISITS = createAsyncThunk("appointmentStatsApiSlice/getTodayVisits
|
|
|
38879
38877
|
// "Modify Appointment": true,
|
|
38880
38878
|
// "Cancel Appointment": true,
|
|
38881
38879
|
// "View Profile": true,
|
|
38882
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
38883
|
-
mrn: _ === null || _ === void 0 ? void 0 : (_$
|
|
38884
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
38885
|
-
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$
|
|
38886
|
-
visitType: _ === null || _ === void 0 ? void 0 : (_$
|
|
38887
|
-
appointmentStatus: _ === null || _ === void 0 ? void 0 : (_$
|
|
38888
|
-
refNo: (_$Encounter$
|
|
38889
|
-
|
|
38890
|
-
appNo: (_$Encounter$
|
|
38891
|
-
enId: _.Encounter.id,
|
|
38892
|
-
contact: _ === null || _ === void 0 ? void 0 : (_$Encounter63 = _.Encounter) === null || _$Encounter63 === void 0 ? void 0 : (_$Encounter63$patient = _$Encounter63.patient_id) === null || _$Encounter63$patient === void 0 ? void 0 : (_$Encounter63$patient2 = _$Encounter63$patient[0]) === null || _$Encounter63$patient2 === void 0 ? void 0 : (_$Encounter63$patient3 = _$Encounter63$patient2.telecom) === null || _$Encounter63$patient3 === void 0 ? void 0 : (_$Encounter63$patient4 = _$Encounter63$patient3[0]) === null || _$Encounter63$patient4 === void 0 ? void 0 : _$Encounter63$patient4.value,
|
|
38893
|
-
personId: (_$Appointment$PersonI17 = _ === null || _ === void 0 ? void 0 : (_$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$Perso2.Id) !== null && _$Appointment$PersonI17 !== void 0 ? _$Appointment$PersonI17 : null,
|
|
38894
|
-
patientId: (_$Encounter$patient_i16 = _ === null || _ === void 0 ? void 0 : (_$Encounter64 = _.Encounter) === null || _$Encounter64 === void 0 ? void 0 : (_$Encounter64$patient = _$Encounter64.patient_id) === null || _$Encounter64$patient === void 0 ? void 0 : (_$Encounter64$patient2 = _$Encounter64$patient[0]) === null || _$Encounter64$patient2 === void 0 ? void 0 : _$Encounter64$patient2.id) !== null && _$Encounter$patient_i16 !== void 0 ? _$Encounter$patient_i16 : null
|
|
38895
|
-
}),
|
|
38896
|
-
modifyaction: JSON.stringify({
|
|
38897
|
-
appNo: (_$Encounter$appointme19 = _ === null || _ === void 0 ? void 0 : (_$Encounter65 = _.Encounter) === null || _$Encounter65 === void 0 ? void 0 : (_$Encounter65$appoint = _$Encounter65.appointmentId) === null || _$Encounter65$appoint === void 0 ? void 0 : _$Encounter65$appoint[0]) !== null && _$Encounter$appointme19 !== void 0 ? _$Encounter$appointme19 : "",
|
|
38880
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$Encounter33 = _.Encounter) === null || _$Encounter33 === void 0 ? void 0 : (_$Encounter33$patient = _$Encounter33.patient_id) === null || _$Encounter33$patient === void 0 ? void 0 : (_$Encounter33$patient2 = _$Encounter33$patient[0]) === null || _$Encounter33$patient2 === void 0 ? void 0 : (_$Encounter33$patient3 = _$Encounter33$patient2.name) === null || _$Encounter33$patient3 === void 0 ? void 0 : _$Encounter33$patient3[0]) || {}),
|
|
38881
|
+
mrn: _ === null || _ === void 0 ? void 0 : (_$Encounter34 = _.Encounter) === null || _$Encounter34 === void 0 ? void 0 : (_$Encounter34$patient = _$Encounter34.patient_id) === null || _$Encounter34$patient === void 0 ? void 0 : (_$Encounter34$patient2 = _$Encounter34$patient[0]) === null || _$Encounter34$patient2 === void 0 ? void 0 : _$Encounter34$patient2.MRN,
|
|
38882
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment37 = _.Appointment) === null || _$Appointment37 === void 0 ? void 0 : (_$Appointment37$Perso = _$Appointment37.PersonID) === null || _$Appointment37$Perso === void 0 ? void 0 : (_$Appointment37$Perso2 = _$Appointment37$Perso[0]) === null || _$Appointment37$Perso2 === void 0 ? void 0 : _$Appointment37$Perso2.birthDay),
|
|
38883
|
+
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$Appointment38 = _.Appointment) === null || _$Appointment38 === void 0 ? void 0 : _$Appointment38.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment39 = _.Appointment) === null || _$Appointment39 === void 0 ? void 0 : _$Appointment39.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$Appointment40 = _.Appointment) === null || _$Appointment40 === void 0 ? void 0 : _$Appointment40.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment41 = _.Appointment) === null || _$Appointment41 === void 0 ? void 0 : _$Appointment41.start, "hh:mm A") : ""),
|
|
38884
|
+
visitType: _ === null || _ === void 0 ? void 0 : (_$Encounter35 = _.Encounter) === null || _$Encounter35 === void 0 ? void 0 : _$Encounter35.visit_type,
|
|
38885
|
+
appointmentStatus: _ === null || _ === void 0 ? void 0 : (_$Encounter36 = _.Encounter) === null || _$Encounter36 === void 0 ? void 0 : (_$Encounter36$status = _$Encounter36.status) === null || _$Encounter36$status === void 0 ? void 0 : _$Encounter36$status.display,
|
|
38886
|
+
refNo: (_$Encounter$appointme9 = _ === null || _ === void 0 ? void 0 : (_$Encounter37 = _.Encounter) === null || _$Encounter37 === void 0 ? void 0 : (_$Encounter37$appoint = _$Encounter37.appointmentId) === null || _$Encounter37$appoint === void 0 ? void 0 : _$Encounter37$appoint[0]) !== null && _$Encounter$appointme9 !== void 0 ? _$Encounter$appointme9 : "",
|
|
38887
|
+
action: JSON.stringify({
|
|
38888
|
+
appNo: (_$Encounter$appointme10 = _ === null || _ === void 0 ? void 0 : (_$Encounter38 = _.Encounter) === null || _$Encounter38 === void 0 ? void 0 : (_$Encounter38$appoint = _$Encounter38.appointmentId) === null || _$Encounter38$appoint === void 0 ? void 0 : _$Encounter38$appoint[0]) !== null && _$Encounter$appointme10 !== void 0 ? _$Encounter$appointme10 : "",
|
|
38898
38889
|
enId: _.Encounter.id,
|
|
38899
|
-
contact: _ === null || _ === void 0 ? void 0 : (_$
|
|
38900
|
-
personId: (_$Appointment$
|
|
38901
|
-
patientId: (_$Encounter$
|
|
38902
|
-
})
|
|
38903
|
-
|
|
38904
|
-
|
|
38905
|
-
|
|
38906
|
-
|
|
38907
|
-
|
|
38908
|
-
|
|
38909
|
-
|
|
38890
|
+
contact: _ === null || _ === void 0 ? void 0 : (_$Encounter39 = _.Encounter) === null || _$Encounter39 === void 0 ? void 0 : (_$Encounter39$patient = _$Encounter39.patient_id) === null || _$Encounter39$patient === void 0 ? void 0 : (_$Encounter39$patient2 = _$Encounter39$patient[0]) === null || _$Encounter39$patient2 === void 0 ? void 0 : (_$Encounter39$patient3 = _$Encounter39$patient2.telecom) === null || _$Encounter39$patient3 === void 0 ? void 0 : (_$Encounter39$patient4 = _$Encounter39$patient3[0]) === null || _$Encounter39$patient4 === void 0 ? void 0 : _$Encounter39$patient4.value,
|
|
38891
|
+
personId: (_$Appointment$PersonI8 = _ === null || _ === void 0 ? void 0 : (_$Appointment42 = _.Appointment) === null || _$Appointment42 === void 0 ? void 0 : (_$Appointment42$Perso = _$Appointment42.PersonID) === null || _$Appointment42$Perso === void 0 ? void 0 : (_$Appointment42$Perso2 = _$Appointment42$Perso[0]) === null || _$Appointment42$Perso2 === void 0 ? void 0 : _$Appointment42$Perso2.Id) !== null && _$Appointment$PersonI8 !== void 0 ? _$Appointment$PersonI8 : null,
|
|
38892
|
+
patientId: (_$Encounter$patient_i8 = _ === null || _ === void 0 ? void 0 : (_$Encounter40 = _.Encounter) === null || _$Encounter40 === void 0 ? void 0 : (_$Encounter40$patient = _$Encounter40.patient_id) === null || _$Encounter40$patient === void 0 ? void 0 : (_$Encounter40$patient2 = _$Encounter40$patient[0]) === null || _$Encounter40$patient2 === void 0 ? void 0 : _$Encounter40$patient2.id) !== null && _$Encounter$patient_i8 !== void 0 ? _$Encounter$patient_i8 : null
|
|
38893
|
+
}) // modifyaction: JSON.stringify({
|
|
38894
|
+
// appNo: _?.Encounter?.appointmentId?.[0] ?? "",
|
|
38895
|
+
// enId: _.Encounter.id,
|
|
38896
|
+
// contact: _?.Encounter?.patient_id?.[0]?.telecom?.[0]?.value,
|
|
38897
|
+
// personId: _?.Appointment?.PersonID?.[0]?.Id ?? null,
|
|
38898
|
+
// patientId: _?.Encounter?.patient_id?.[0]?.id ?? null,
|
|
38899
|
+
// }),
|
|
38900
|
+
// cancelaction: JSON.stringify({
|
|
38901
|
+
// appNo: _?.Encounter?.appointmentId?.[0] ?? "",
|
|
38902
|
+
// enId: _.Encounter.id,
|
|
38903
|
+
// contact: _?.Encounter?.patient_id?.[0]?.telecom?.[0]?.value,
|
|
38904
|
+
// personId: _?.Appointment?.PersonID?.[0]?.Id ?? null,
|
|
38905
|
+
// patientId: _?.Encounter?.patient_id?.[0]?.id ?? null,
|
|
38906
|
+
// }),
|
|
38907
|
+
|
|
38910
38908
|
};
|
|
38911
38909
|
}) : [];
|
|
38912
38910
|
return _context6.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -38952,46 +38950,44 @@ var GET_APPOINTMENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getAppoi
|
|
|
38952
38950
|
case 5:
|
|
38953
38951
|
data = _context7.sent;
|
|
38954
38952
|
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 (_) {
|
|
38955
|
-
var _$
|
|
38953
|
+
var _$Appointment43, _$Appointment43$Perso, _$Appointment43$Perso2, _$Appointment43$Perso3, _$Appointment44, _$Appointment44$Perso, _$Appointment44$Perso2, _$Appointment45, _$Appointment45$Perso, _$Appointment45$Perso2, _$Appointment45$Perso3, _$Appointment46, _$Appointment46$Perso, _$Appointment46$Perso2, _$Appointment46$Perso3, _$Appointment46$Perso4, _$Appointment47, _$Appointment47$Perso, _$Appointment47$Perso2, _$Appointment47$Perso3, _$Appointment47$Perso4, _$Appointment$appoint2, _$Appointment48, _$Appointment49, _$Appointment50, _$Appointment51, _$Appointment52, _$Appointment53, _$Appointment54;
|
|
38956
38954
|
|
|
38957
38955
|
return {
|
|
38958
|
-
img:
|
|
38959
|
-
|
|
38960
|
-
|
|
38961
|
-
|
|
38962
|
-
|
|
38963
|
-
|
|
38964
|
-
|
|
38965
|
-
|
|
38956
|
+
// img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
38957
|
+
// ? getImgUrl(
|
|
38958
|
+
// _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
38959
|
+
// )
|
|
38960
|
+
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
38961
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$Appointment43 = _.Appointment) === null || _$Appointment43 === void 0 ? void 0 : (_$Appointment43$Perso = _$Appointment43.PersonID) === null || _$Appointment43$Perso === void 0 ? void 0 : (_$Appointment43$Perso2 = _$Appointment43$Perso[0]) === null || _$Appointment43$Perso2 === void 0 ? void 0 : (_$Appointment43$Perso3 = _$Appointment43$Perso2.name) === null || _$Appointment43$Perso3 === void 0 ? void 0 : _$Appointment43$Perso3[0]) || {}),
|
|
38962
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment44 = _.Appointment) === null || _$Appointment44 === void 0 ? void 0 : (_$Appointment44$Perso = _$Appointment44.PersonID) === null || _$Appointment44$Perso === void 0 ? void 0 : (_$Appointment44$Perso2 = _$Appointment44$Perso[0]) === null || _$Appointment44$Perso2 === void 0 ? void 0 : _$Appointment44$Perso2.birthDay),
|
|
38963
|
+
mrn: (_$Appointment45 = _.Appointment) === null || _$Appointment45 === void 0 ? void 0 : (_$Appointment45$Perso = _$Appointment45.PersonID) === null || _$Appointment45$Perso === void 0 ? void 0 : (_$Appointment45$Perso2 = _$Appointment45$Perso[0]) === null || _$Appointment45$Perso2 === void 0 ? void 0 : (_$Appointment45$Perso3 = _$Appointment45$Perso2.MRN) === null || _$Appointment45$Perso3 === void 0 ? void 0 : _$Appointment45$Perso3[0],
|
|
38964
|
+
// genderData: "M",
|
|
38965
|
+
contact: ((_$Appointment46 = _.Appointment) === null || _$Appointment46 === void 0 ? void 0 : (_$Appointment46$Perso = _$Appointment46.PersonID) === null || _$Appointment46$Perso === void 0 ? void 0 : (_$Appointment46$Perso2 = _$Appointment46$Perso[0]) === null || _$Appointment46$Perso2 === void 0 ? void 0 : (_$Appointment46$Perso3 = _$Appointment46$Perso2.telecom) === null || _$Appointment46$Perso3 === void 0 ? void 0 : (_$Appointment46$Perso4 = _$Appointment46$Perso3[0]) === null || _$Appointment46$Perso4 === void 0 ? void 0 : _$Appointment46$Perso4.value) ? JSON.stringify((_$Appointment47 = _.Appointment) === null || _$Appointment47 === void 0 ? void 0 : (_$Appointment47$Perso = _$Appointment47.PersonID) === null || _$Appointment47$Perso === void 0 ? void 0 : (_$Appointment47$Perso2 = _$Appointment47$Perso[0]) === null || _$Appointment47$Perso2 === void 0 ? void 0 : (_$Appointment47$Perso3 = _$Appointment47$Perso2.telecom) === null || _$Appointment47$Perso3 === void 0 ? void 0 : (_$Appointment47$Perso4 = _$Appointment47$Perso3[0]) === null || _$Appointment47$Perso4 === void 0 ? void 0 : _$Appointment47$Perso4.value) : "",
|
|
38966
38966
|
// mrn: _?.patient_id?.[0]?.alias || "",
|
|
38967
38967
|
// age: _?.patient_id?.[0]?.age,
|
|
38968
|
-
|
|
38969
|
-
date:
|
|
38970
|
-
|
|
38971
|
-
|
|
38972
|
-
|
|
38973
|
-
|
|
38974
|
-
|
|
38975
|
-
|
|
38976
|
-
|
|
38977
|
-
|
|
38978
|
-
|
|
38979
|
-
|
|
38980
|
-
|
|
38981
|
-
|
|
38982
|
-
|
|
38983
|
-
|
|
38984
|
-
"View Patient": true,
|
|
38985
|
-
Attend: true,
|
|
38986
|
-
action: true,
|
|
38987
|
-
type: "OP" // appNo: _?.id ?? '',
|
|
38968
|
+
visitType: (_$Appointment$appoint2 = _ === null || _ === void 0 ? void 0 : (_$Appointment48 = _.Appointment) === null || _$Appointment48 === void 0 ? void 0 : _$Appointment48.appointmentType) !== null && _$Appointment$appoint2 !== void 0 ? _$Appointment$appoint2 : "",
|
|
38969
|
+
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$Appointment49 = _.Appointment) === null || _$Appointment49 === void 0 ? void 0 : _$Appointment49.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment50 = _.Appointment) === null || _$Appointment50 === void 0 ? void 0 : _$Appointment50.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$Appointment51 = _.Appointment) === null || _$Appointment51 === void 0 ? void 0 : _$Appointment51.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment52 = _.Appointment) === null || _$Appointment52 === void 0 ? void 0 : _$Appointment52.start, "hh:mm A") : ""),
|
|
38970
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$Appointment53 = _.Appointment) === null || _$Appointment53 === void 0 ? void 0 : _$Appointment53.appno) || "",
|
|
38971
|
+
// speciality: JSON.stringify({
|
|
38972
|
+
// speciality: _?.Appointment?.SpecialtyID?.map((spl) => {
|
|
38973
|
+
// return spl?.coding?.[0]?.display;
|
|
38974
|
+
// }).join(", ") ?? "",
|
|
38975
|
+
// clinic: _?.Appointment?.orgid?.name ?? ""
|
|
38976
|
+
// }),
|
|
38977
|
+
// clinic: _?.practitioner_details?.[0]?.clinic || "",
|
|
38978
|
+
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$Appointment54 = _.Appointment) === null || _$Appointment54 === void 0 ? void 0 : _$Appointment54.appstatus) || "",
|
|
38979
|
+
// "View Patient": true,
|
|
38980
|
+
// Attend: true,
|
|
38981
|
+
// action: true,
|
|
38982
|
+
// type: "OP",
|
|
38983
|
+
// appNo: _?.id ?? '',
|
|
38988
38984
|
// // data: _,
|
|
38989
38985
|
// enId: _.id,
|
|
38990
38986
|
// age: getAge(_?.PersonID?.[0]?.birthDay),
|
|
38991
38987
|
// // gender: _?.PersonID?.[0]?.gender,
|
|
38992
38988
|
// contact: _?.PersonID?.[0]?.telecom?.[0]?.value ?? "",
|
|
38993
38989
|
// pId : _?.patient_id?.id,
|
|
38994
|
-
|
|
38990
|
+
action: true
|
|
38995
38991
|
};
|
|
38996
38992
|
}) : [];
|
|
38997
38993
|
return _context7.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -39036,10 +39032,14 @@ var GET_FIRST_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getFirst
|
|
|
39036
39032
|
case 5:
|
|
39037
39033
|
data = _context8.sent;
|
|
39038
39034
|
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 (_) {
|
|
39039
|
-
var _$
|
|
39035
|
+
var _$patient_id, _$patient_id$, _$patient_id$$name, _$patient_id2, _$patient_id2$, _$appointmentId, _$appointmentId$, _$appointmentId$$Pers, _$appointmentId$$Pers2, _$visit_type, _$appointmentId2, _$appointmentId2$, _$appointmentId3, _$appointmentId3$, _$appointmentId4, _$appointmentId4$, _$appointmentId5, _$appointmentId5$, _$appointmentId6, _$appointmentId6$, _$status;
|
|
39040
39036
|
|
|
39041
39037
|
return {
|
|
39042
|
-
img:
|
|
39038
|
+
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
39039
|
+
// ? getImgUrl(
|
|
39040
|
+
// _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
39041
|
+
// )
|
|
39042
|
+
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
39043
39043
|
// name: makeName(_?.patient_id?.[0]?.name?.[0] || {}),
|
|
39044
39044
|
// mrn: _?.patient_id?.[0]?.alias || "",
|
|
39045
39045
|
// age: _?.patient_id?.[0]?.age,
|
|
@@ -39066,29 +39066,30 @@ var GET_FIRST_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getFirst
|
|
|
39066
39066
|
// // gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender,
|
|
39067
39067
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? "",
|
|
39068
39068
|
// pId: _?.patient_id?.id ?? "",
|
|
39069
|
-
name:
|
|
39070
|
-
|
|
39071
|
-
|
|
39072
|
-
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) || "",
|
|
39073
|
-
genderData: (_$appointmentId$0$Per = _ === null || _ === void 0 ? void 0 : (_$appointmentId4 = _.appointmentId) === null || _$appointmentId4 === void 0 ? void 0 : (_$appointmentId4$ = _$appointmentId4[0]) === null || _$appointmentId4$ === void 0 ? void 0 : (_$appointmentId4$$Per = _$appointmentId4$.PersonID) === null || _$appointmentId4$$Per === void 0 ? void 0 : (_$appointmentId4$$Per2 = _$appointmentId4$$Per[0]) === null || _$appointmentId4$$Per2 === void 0 ? void 0 : _$appointmentId4$$Per2.gender) !== null && _$appointmentId$0$Per !== void 0 ? _$appointmentId$0$Per : "",
|
|
39074
|
-
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 : ""
|
|
39075
|
-
}),
|
|
39076
|
-
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId5 = _.appointmentId) === null || _$appointmentId5 === void 0 ? void 0 : (_$appointmentId5$ = _$appointmentId5[0]) === null || _$appointmentId5$ === void 0 ? void 0 : _$appointmentId5$.appno) || "",
|
|
39077
|
-
date: JSON.stringify({
|
|
39078
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId6 = _.appointmentId) === null || _$appointmentId6 === void 0 ? void 0 : (_$appointmentId6$ = _$appointmentId6[0]) === null || _$appointmentId6$ === void 0 ? void 0 : _$appointmentId6$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId7 = _.appointmentId) === null || _$appointmentId7 === void 0 ? void 0 : (_$appointmentId7$ = _$appointmentId7[0]) === null || _$appointmentId7$ === void 0 ? void 0 : _$appointmentId7$.start, "DD MMM,YYYY") : "",
|
|
39079
|
-
time: (_ === 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, "hh:mm A") : ""
|
|
39080
|
-
}),
|
|
39069
|
+
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]) || {}),
|
|
39070
|
+
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) || "",
|
|
39071
|
+
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),
|
|
39081
39072
|
visitType: (_$visit_type = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type !== void 0 ? _$visit_type : "",
|
|
39082
|
-
|
|
39083
|
-
|
|
39084
|
-
var _spl$coding2, _spl$coding2$;
|
|
39085
|
-
|
|
39086
|
-
return spl === null || spl === void 0 ? void 0 : (_spl$coding2 = spl.coding) === null || _spl$coding2 === void 0 ? void 0 : (_spl$coding2$ = _spl$coding2[0]) === null || _spl$coding2$ === void 0 ? void 0 : _spl$coding2$.display;
|
|
39087
|
-
}).join(", "),
|
|
39088
|
-
clinic: (_ === null || _ === void 0 ? void 0 : (_$practitioner_detail3 = _.practitioner_details) === null || _$practitioner_detail3 === void 0 ? void 0 : (_$practitioner_detail4 = _$practitioner_detail3[0]) === null || _$practitioner_detail4 === void 0 ? void 0 : _$practitioner_detail4.clinic) || ""
|
|
39089
|
-
}),
|
|
39073
|
+
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId2 = _.appointmentId) === null || _$appointmentId2 === void 0 ? void 0 : (_$appointmentId2$ = _$appointmentId2[0]) === null || _$appointmentId2$ === void 0 ? void 0 : _$appointmentId2$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId3 = _.appointmentId) === null || _$appointmentId3 === void 0 ? void 0 : (_$appointmentId3$ = _$appointmentId3[0]) === null || _$appointmentId3$ === void 0 ? void 0 : _$appointmentId3$.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId4 = _.appointmentId) === null || _$appointmentId4 === void 0 ? void 0 : (_$appointmentId4$ = _$appointmentId4[0]) === null || _$appointmentId4$ === void 0 ? void 0 : _$appointmentId4$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId5 = _.appointmentId) === null || _$appointmentId5 === void 0 ? void 0 : (_$appointmentId5$ = _$appointmentId5[0]) === null || _$appointmentId5$ === void 0 ? void 0 : _$appointmentId5$.start, "hh:mm A") : ""),
|
|
39074
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId6 = _.appointmentId) === null || _$appointmentId6 === void 0 ? void 0 : (_$appointmentId6$ = _$appointmentId6[0]) === null || _$appointmentId6$ === void 0 ? void 0 : _$appointmentId6$.appno) || "",
|
|
39090
39075
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status = _.status) === null || _$status === void 0 ? void 0 : _$status.display) || "",
|
|
39091
|
-
action: true
|
|
39076
|
+
action: true // genderData: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
39077
|
+
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? "",
|
|
39078
|
+
// date: JSON.stringify({
|
|
39079
|
+
// date: _?.appointmentId?.[0]?.start
|
|
39080
|
+
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
39081
|
+
// : "",
|
|
39082
|
+
// time: _?.appointmentId?.[0]?.start
|
|
39083
|
+
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "hh:mm A")
|
|
39084
|
+
// : ""
|
|
39085
|
+
// }),
|
|
39086
|
+
// speciality: JSON.stringify({
|
|
39087
|
+
// speciality: _?.appointmentId?.[0]?.SpecialtyID?.map((spl) => {
|
|
39088
|
+
// return spl?.coding?.[0]?.display;
|
|
39089
|
+
// }).join(", "),
|
|
39090
|
+
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
39091
|
+
// }),
|
|
39092
|
+
|
|
39092
39093
|
};
|
|
39093
39094
|
}) : [];
|
|
39094
39095
|
return _context8.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -39133,10 +39134,12 @@ var GET_NEW_PATIENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getNewPa
|
|
|
39133
39134
|
case 5:
|
|
39134
39135
|
data = _context9.sent;
|
|
39135
39136
|
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 (_) {
|
|
39136
|
-
var _$
|
|
39137
|
+
var _$patient_id3, _$patient_id3$, _$patient_id3$$name, _$patient_id4, _$patient_id4$, _$appointmentId7, _$appointmentId7$, _$appointmentId7$$Per, _$appointmentId7$$Per2, _$visit_type2, _$appointmentId8, _$appointmentId8$, _$appointmentId9, _$appointmentId9$, _$appointmentId10, _$appointmentId10$, _$appointmentId11, _$appointmentId11$, _$appointmentId12, _$appointmentId12$, _$status2;
|
|
39137
39138
|
|
|
39138
39139
|
return {
|
|
39139
|
-
img:
|
|
39140
|
+
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
39141
|
+
// ? getImgUrl(_?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid)
|
|
39142
|
+
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
39140
39143
|
// name: makeName(_?.patient_id?.[0]?.name?.[0] || {}),
|
|
39141
39144
|
// mrn: _?.patient_id?.[0]?.alias || "",
|
|
39142
39145
|
// age: _?.patient_id?.[0]?.age,
|
|
@@ -39163,27 +39166,33 @@ var GET_NEW_PATIENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getNewPa
|
|
|
39163
39166
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender,
|
|
39164
39167
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? "",
|
|
39165
39168
|
// pId: _?.patient_id?.id,
|
|
39166
|
-
name: JSON.stringify({
|
|
39167
|
-
|
|
39168
|
-
|
|
39169
|
-
|
|
39170
|
-
|
|
39171
|
-
|
|
39172
|
-
}),
|
|
39173
|
-
|
|
39174
|
-
|
|
39175
|
-
|
|
39176
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId18 = _.appointmentId) === null || _$appointmentId18 === void 0 ? void 0 : (_$appointmentId18$ = _$appointmentId18[0]) === null || _$appointmentId18$ === void 0 ? void 0 : _$appointmentId18$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId19 = _.appointmentId) === null || _$appointmentId19 === void 0 ? void 0 : (_$appointmentId19$ = _$appointmentId19[0]) === null || _$appointmentId19$ === void 0 ? void 0 : _$appointmentId19$.start, "hh:mm A") : ""
|
|
39177
|
-
}),
|
|
39169
|
+
// name: JSON.stringify({
|
|
39170
|
+
// name: makeName(_?.patient_id?.[0]?.name?.[0] || {}),
|
|
39171
|
+
// age: getAge(_?.appointmentId?.[0]?.PersonID?.[0]?.birthDay),
|
|
39172
|
+
// mrn: _?.patient_id?.[0]?.alias || "",
|
|
39173
|
+
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
39174
|
+
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
39175
|
+
// }),
|
|
39176
|
+
name: makeName((_ === 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$$name = _$patient_id3$.name) === null || _$patient_id3$$name === void 0 ? void 0 : _$patient_id3$$name[0]) || {}),
|
|
39177
|
+
mrn: (_ === 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$.alias) || "",
|
|
39178
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId7 = _.appointmentId) === null || _$appointmentId7 === void 0 ? void 0 : (_$appointmentId7$ = _$appointmentId7[0]) === null || _$appointmentId7$ === void 0 ? void 0 : (_$appointmentId7$$Per = _$appointmentId7$.PersonID) === null || _$appointmentId7$$Per === void 0 ? void 0 : (_$appointmentId7$$Per2 = _$appointmentId7$$Per[0]) === null || _$appointmentId7$$Per2 === void 0 ? void 0 : _$appointmentId7$$Per2.birthDay),
|
|
39178
39179
|
visitType: (_$visit_type2 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type2 !== void 0 ? _$visit_type2 : "",
|
|
39179
|
-
|
|
39180
|
-
|
|
39181
|
-
|
|
39182
|
-
|
|
39183
|
-
|
|
39184
|
-
|
|
39185
|
-
|
|
39186
|
-
|
|
39180
|
+
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") : ""),
|
|
39181
|
+
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) || "",
|
|
39182
|
+
// date: JSON.stringify({
|
|
39183
|
+
// date: _?.appointmentId?.[0]?.start
|
|
39184
|
+
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
39185
|
+
// : "",
|
|
39186
|
+
// time: _?.appointmentId?.[0]?.start
|
|
39187
|
+
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "hh:mm A")
|
|
39188
|
+
// : ""
|
|
39189
|
+
// }),
|
|
39190
|
+
// speciality: JSON.stringify({
|
|
39191
|
+
// speciality: _?.appointmentId?.[0]?.SpecialtyID?.map((spl) => {
|
|
39192
|
+
// return spl?.coding?.[0]?.display;
|
|
39193
|
+
// }).join(", "),
|
|
39194
|
+
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
39195
|
+
// }),
|
|
39187
39196
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status2 = _.status) === null || _$status2 === void 0 ? void 0 : _$status2.display) || "",
|
|
39188
39197
|
action: true
|
|
39189
39198
|
};
|
|
@@ -39230,10 +39239,14 @@ var GET_OTHER_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getOther
|
|
|
39230
39239
|
case 5:
|
|
39231
39240
|
data = _context10.sent;
|
|
39232
39241
|
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 (_) {
|
|
39233
|
-
var _$
|
|
39242
|
+
var _$patient_id5, _$patient_id5$, _$patient_id5$$name, _$patient_id6, _$patient_id6$, _$appointmentId13, _$appointmentId13$, _$appointmentId13$$Pe, _$appointmentId13$$Pe2, _$visit_type3, _$appointmentId14, _$appointmentId14$, _$appointmentId15, _$appointmentId15$, _$appointmentId16, _$appointmentId16$, _$appointmentId17, _$appointmentId17$, _$appointmentId18, _$appointmentId18$, _$status3;
|
|
39234
39243
|
|
|
39235
39244
|
return {
|
|
39236
|
-
img:
|
|
39245
|
+
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
39246
|
+
// ? getImgUrl(
|
|
39247
|
+
// _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
39248
|
+
// )
|
|
39249
|
+
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
39237
39250
|
// name: makeName(_?.patient_id?.[0]?.name?.[0] || {}),
|
|
39238
39251
|
// mrn: _?.patient_id?.[0]?.alias || "",
|
|
39239
39252
|
// age: _?.patient_id?.[0]?.age,
|
|
@@ -39260,27 +39273,33 @@ var GET_OTHER_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getOther
|
|
|
39260
39273
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender,
|
|
39261
39274
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? "",
|
|
39262
39275
|
// pId: _?.patient_id?.id,
|
|
39263
|
-
name: JSON.stringify({
|
|
39264
|
-
|
|
39265
|
-
|
|
39266
|
-
|
|
39267
|
-
|
|
39268
|
-
|
|
39269
|
-
}),
|
|
39270
|
-
|
|
39271
|
-
|
|
39272
|
-
|
|
39273
|
-
time: (_ === 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") : ""
|
|
39274
|
-
}),
|
|
39276
|
+
// name: JSON.stringify({
|
|
39277
|
+
// name: makeName(_?.patient_id?.[0]?.name?.[0] || {}),
|
|
39278
|
+
// age: getAge(_?.appointmentId?.[0]?.PersonID?.[0]?.birthDay),
|
|
39279
|
+
// mrn: _?.patient_id?.[0]?.alias || "",
|
|
39280
|
+
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
39281
|
+
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
39282
|
+
// }),
|
|
39283
|
+
name: makeName((_ === 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$$name = _$patient_id5$.name) === null || _$patient_id5$$name === void 0 ? void 0 : _$patient_id5$$name[0]) || {}),
|
|
39284
|
+
mrn: (_ === 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$.alias) || "",
|
|
39285
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId13 = _.appointmentId) === null || _$appointmentId13 === void 0 ? void 0 : (_$appointmentId13$ = _$appointmentId13[0]) === null || _$appointmentId13$ === void 0 ? void 0 : (_$appointmentId13$$Pe = _$appointmentId13$.PersonID) === null || _$appointmentId13$$Pe === void 0 ? void 0 : (_$appointmentId13$$Pe2 = _$appointmentId13$$Pe[0]) === null || _$appointmentId13$$Pe2 === void 0 ? void 0 : _$appointmentId13$$Pe2.birthDay),
|
|
39275
39286
|
visitType: (_$visit_type3 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type3 !== void 0 ? _$visit_type3 : "",
|
|
39276
|
-
|
|
39277
|
-
|
|
39278
|
-
|
|
39279
|
-
|
|
39280
|
-
|
|
39281
|
-
|
|
39282
|
-
|
|
39283
|
-
|
|
39287
|
+
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") : ""),
|
|
39288
|
+
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) || "",
|
|
39289
|
+
// date: JSON.stringify({
|
|
39290
|
+
// date: _?.appointmentId?.[0]?.start
|
|
39291
|
+
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
39292
|
+
// : "",
|
|
39293
|
+
// time: _?.appointmentId?.[0]?.start
|
|
39294
|
+
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "hh:mm A")
|
|
39295
|
+
// : ""
|
|
39296
|
+
// }),
|
|
39297
|
+
// speciality: JSON.stringify({
|
|
39298
|
+
// speciality: _?.appointmentId?.[0]?.SpecialtyID?.map((spl) => {
|
|
39299
|
+
// return spl?.coding?.[0]?.display;
|
|
39300
|
+
// }).join(", "),
|
|
39301
|
+
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
39302
|
+
// }),
|
|
39284
39303
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status3 = _.status) === null || _$status3 === void 0 ? void 0 : _$status3.display) || "",
|
|
39285
39304
|
action: true
|
|
39286
39305
|
};
|
|
@@ -39327,10 +39346,12 @@ var GET_TODAY_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getToday
|
|
|
39327
39346
|
case 5:
|
|
39328
39347
|
data = _context11.sent;
|
|
39329
39348
|
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 (_) {
|
|
39330
|
-
var _$
|
|
39349
|
+
var _$patient_id7, _$patient_id7$, _$patient_id7$$name, _$patient_id8, _$patient_id8$, _$appointmentId19, _$appointmentId19$, _$appointmentId19$$Pe, _$appointmentId19$$Pe2, _$visit_type4, _$appointmentId20, _$appointmentId20$, _$appointmentId21, _$appointmentId21$, _$appointmentId22, _$appointmentId22$, _$appointmentId23, _$appointmentId23$, _$appointmentId24, _$appointmentId24$, _$status4;
|
|
39331
39350
|
|
|
39332
39351
|
return {
|
|
39333
|
-
img:
|
|
39352
|
+
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid
|
|
39353
|
+
// ? getImgUrl(_?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid)
|
|
39354
|
+
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
39334
39355
|
// name: makeName(_?.patient_id?.[0]?.name?.[0] || {}),
|
|
39335
39356
|
// mrn: _?.patient_id?.[0]?.MRN,
|
|
39336
39357
|
// age: _?.patient_id?.[0]?.age,
|
|
@@ -39356,28 +39377,28 @@ var GET_TODAY_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getToday
|
|
|
39356
39377
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender,
|
|
39357
39378
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? "",
|
|
39358
39379
|
// pId: _?.patient_id?.id,
|
|
39359
|
-
name: JSON.stringify({
|
|
39360
|
-
|
|
39361
|
-
|
|
39362
|
-
|
|
39363
|
-
|
|
39364
|
-
|
|
39365
|
-
}),
|
|
39366
|
-
|
|
39367
|
-
|
|
39368
|
-
|
|
39369
|
-
time: (_ === 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, "hh:mm A") : ""
|
|
39370
|
-
}),
|
|
39380
|
+
// name: JSON.stringify({
|
|
39381
|
+
// name: makeName(_?.patient_id?.[0]?.name?.[0] || {}),
|
|
39382
|
+
// age: getAge(_?.appointmentId?.[0]?.PersonID?.[0]?.birthDay),
|
|
39383
|
+
// mrn: _?.patient_id?.[0]?.alias || "",
|
|
39384
|
+
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
39385
|
+
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
39386
|
+
// }),
|
|
39387
|
+
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]) || {}),
|
|
39388
|
+
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$.MRN) || "",
|
|
39389
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId19 = _.appointmentId) === null || _$appointmentId19 === void 0 ? void 0 : (_$appointmentId19$ = _$appointmentId19[0]) === null || _$appointmentId19$ === void 0 ? void 0 : (_$appointmentId19$$Pe = _$appointmentId19$.PersonID) === null || _$appointmentId19$$Pe === void 0 ? void 0 : (_$appointmentId19$$Pe2 = _$appointmentId19$$Pe[0]) === null || _$appointmentId19$$Pe2 === void 0 ? void 0 : _$appointmentId19$$Pe2.birthDay),
|
|
39371
39390
|
visitType: (_$visit_type4 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type4 !== void 0 ? _$visit_type4 : "",
|
|
39372
|
-
|
|
39373
|
-
|
|
39374
|
-
|
|
39375
|
-
|
|
39376
|
-
return spl === null || spl === void 0 ? void 0 : (_spl$coding5 = spl.coding) === null || _spl$coding5 === void 0 ? void 0 : (_spl$coding5$ = _spl$coding5[0]) === null || _spl$coding5$ === void 0 ? void 0 : _spl$coding5$.display;
|
|
39377
|
-
}).join(", "),
|
|
39378
|
-
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) || ""
|
|
39379
|
-
}),
|
|
39391
|
+
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
39392
|
+
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ? JSON.stringify(_?.patient_id?.[0]?.telecom?.[0]?.value) : "",
|
|
39393
|
+
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId20 = _.appointmentId) === null || _$appointmentId20 === void 0 ? void 0 : (_$appointmentId20$ = _$appointmentId20[0]) === null || _$appointmentId20$ === void 0 ? void 0 : _$appointmentId20$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId21 = _.appointmentId) === null || _$appointmentId21 === void 0 ? void 0 : (_$appointmentId21$ = _$appointmentId21[0]) === null || _$appointmentId21$ === void 0 ? void 0 : _$appointmentId21$.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId22 = _.appointmentId) === null || _$appointmentId22 === void 0 ? void 0 : (_$appointmentId22$ = _$appointmentId22[0]) === null || _$appointmentId22$ === void 0 ? void 0 : _$appointmentId22$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId23 = _.appointmentId) === null || _$appointmentId23 === void 0 ? void 0 : (_$appointmentId23$ = _$appointmentId23[0]) === null || _$appointmentId23$ === void 0 ? void 0 : _$appointmentId23$.start, "hh:mm A") : ""),
|
|
39394
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId24 = _.appointmentId) === null || _$appointmentId24 === void 0 ? void 0 : (_$appointmentId24$ = _$appointmentId24[0]) === null || _$appointmentId24$ === void 0 ? void 0 : _$appointmentId24$.appno) || "",
|
|
39380
39395
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status4 = _.status) === null || _$status4 === void 0 ? void 0 : _$status4.display) || "",
|
|
39396
|
+
// speciality: JSON.stringify({
|
|
39397
|
+
// speciality: _?.appointmentId?.[0]?.SpecialtyID?.map((spl) => {
|
|
39398
|
+
// return spl?.coding?.[0]?.display;
|
|
39399
|
+
// }).join(", "),
|
|
39400
|
+
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
39401
|
+
// }),
|
|
39381
39402
|
action: true
|
|
39382
39403
|
};
|
|
39383
39404
|
}) : [];
|
|
@@ -39423,10 +39444,14 @@ var GET_WALK_INS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getWalkInsNu
|
|
|
39423
39444
|
case 5:
|
|
39424
39445
|
data = _context12.sent;
|
|
39425
39446
|
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 (_) {
|
|
39426
|
-
var _$
|
|
39447
|
+
var _$patient_id9, _$patient_id9$, _$patient_id9$$name, _$patient_id10, _$patient_id10$, _$appointmentId25, _$appointmentId25$, _$appointmentId25$$Pe, _$appointmentId25$$Pe2, _$visit_type5, _$appointmentId26, _$appointmentId26$, _$appointmentId27, _$appointmentId27$, _$appointmentId28, _$appointmentId28$, _$appointmentId29, _$appointmentId29$, _$appointmentId30, _$appointmentId30$, _$status5;
|
|
39427
39448
|
|
|
39428
39449
|
return {
|
|
39429
|
-
img:
|
|
39450
|
+
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
39451
|
+
// ? getImgUrl(
|
|
39452
|
+
// _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
39453
|
+
// )
|
|
39454
|
+
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
39430
39455
|
// name: makeName(_?.patient_id?.[0]?.name?.[0] || {}),
|
|
39431
39456
|
// mrn: _?.patient_id?.[0]?.alias || "",
|
|
39432
39457
|
// age: _?.patient_id?.[0]?.age,
|
|
@@ -39453,27 +39478,33 @@ var GET_WALK_INS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getWalkInsNu
|
|
|
39453
39478
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender,
|
|
39454
39479
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? "",
|
|
39455
39480
|
// pId: _?.patient_id?.id,
|
|
39456
|
-
name: JSON.stringify({
|
|
39457
|
-
|
|
39458
|
-
|
|
39459
|
-
|
|
39460
|
-
|
|
39461
|
-
|
|
39462
|
-
}),
|
|
39463
|
-
|
|
39464
|
-
|
|
39465
|
-
|
|
39466
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId48 = _.appointmentId) === null || _$appointmentId48 === void 0 ? void 0 : (_$appointmentId48$ = _$appointmentId48[0]) === null || _$appointmentId48$ === void 0 ? void 0 : _$appointmentId48$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId49 = _.appointmentId) === null || _$appointmentId49 === void 0 ? void 0 : (_$appointmentId49$ = _$appointmentId49[0]) === null || _$appointmentId49$ === void 0 ? void 0 : _$appointmentId49$.start, "hh:mm A") : ""
|
|
39467
|
-
}),
|
|
39481
|
+
// name: JSON.stringify({
|
|
39482
|
+
// name: makeName(_?.patient_id?.[0]?.name?.[0] || {}),
|
|
39483
|
+
// age: getAge(_?.appointmentId?.[0]?.PersonID?.[0]?.birthDay),
|
|
39484
|
+
// mrn: _?.patient_id?.[0]?.alias || "",
|
|
39485
|
+
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
39486
|
+
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
39487
|
+
// }),
|
|
39488
|
+
name: makeName((_ === 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$$name = _$patient_id9$.name) === null || _$patient_id9$$name === void 0 ? void 0 : _$patient_id9$$name[0]) || {}),
|
|
39489
|
+
mrn: (_ === 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$.alias) || "",
|
|
39490
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId25 = _.appointmentId) === null || _$appointmentId25 === void 0 ? void 0 : (_$appointmentId25$ = _$appointmentId25[0]) === null || _$appointmentId25$ === void 0 ? void 0 : (_$appointmentId25$$Pe = _$appointmentId25$.PersonID) === null || _$appointmentId25$$Pe === void 0 ? void 0 : (_$appointmentId25$$Pe2 = _$appointmentId25$$Pe[0]) === null || _$appointmentId25$$Pe2 === void 0 ? void 0 : _$appointmentId25$$Pe2.birthDay),
|
|
39468
39491
|
visitType: (_$visit_type5 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type5 !== void 0 ? _$visit_type5 : "",
|
|
39469
|
-
|
|
39470
|
-
|
|
39471
|
-
|
|
39472
|
-
|
|
39473
|
-
|
|
39474
|
-
|
|
39475
|
-
|
|
39476
|
-
|
|
39492
|
+
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") : ""),
|
|
39493
|
+
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) || "",
|
|
39494
|
+
// date: JSON.stringify({
|
|
39495
|
+
// date: _?.appointmentId?.[0]?.start
|
|
39496
|
+
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
39497
|
+
// : "",
|
|
39498
|
+
// time: _?.appointmentId?.[0]?.start
|
|
39499
|
+
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "hh:mm A")
|
|
39500
|
+
// : ""
|
|
39501
|
+
// }),
|
|
39502
|
+
// speciality: JSON.stringify({
|
|
39503
|
+
// speciality: _?.appointmentId?.[0]?.SpecialtyID?.map((spl) => {
|
|
39504
|
+
// return spl?.coding?.[0]?.display;
|
|
39505
|
+
// }).join(", "),
|
|
39506
|
+
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
39507
|
+
// }),
|
|
39477
39508
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status5 = _.status) === null || _$status5 === void 0 ? void 0 : _$status5.display) || "",
|
|
39478
39509
|
action: true
|
|
39479
39510
|
};
|
|
@@ -39521,39 +39552,50 @@ var GET_APPOINTMENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getAppo
|
|
|
39521
39552
|
case 5:
|
|
39522
39553
|
data = _context13.sent;
|
|
39523
39554
|
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 (_) {
|
|
39524
|
-
var _$
|
|
39555
|
+
var _$Appointment55, _$Appointment55$Perso, _$Appointment55$Perso2, _$Appointment55$Perso3, _$Appointment56, _$Appointment56$Perso, _$Appointment56$Perso2, _$Appointment56$Perso3, _$Appointment57, _$Appointment57$Perso, _$Appointment57$Perso2, _$Appointment$appoint3, _$Appointment58, _$Appointment59, _$Appointment60, _$Appointment61, _$Appointment62, _$Appointment63, _$Appointment64;
|
|
39525
39556
|
|
|
39526
39557
|
return {
|
|
39527
|
-
img:
|
|
39528
|
-
|
|
39529
|
-
|
|
39530
|
-
|
|
39531
|
-
|
|
39532
|
-
|
|
39533
|
-
|
|
39534
|
-
|
|
39558
|
+
// img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
39559
|
+
// ? getImgUrl(
|
|
39560
|
+
// _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
39561
|
+
// )
|
|
39562
|
+
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
39563
|
+
// name: JSON.stringify({
|
|
39564
|
+
// name: makeName(_?.Appointment?.PersonID?.[0]?.name?.[0] || {}),
|
|
39565
|
+
// age: getAge(_?.Appointment?.PersonID?.[0]?.birthDay),
|
|
39566
|
+
// mrn: _.Appointment?.PersonID?.[0]?.MRN?.[0],
|
|
39567
|
+
// // genderData: "M",
|
|
39568
|
+
// contact: _.Appointment?.PersonID?.[0]?.telecom?.[0]?.value ?? ""
|
|
39569
|
+
// }),
|
|
39570
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$Appointment55 = _.Appointment) === null || _$Appointment55 === void 0 ? void 0 : (_$Appointment55$Perso = _$Appointment55.PersonID) === null || _$Appointment55$Perso === void 0 ? void 0 : (_$Appointment55$Perso2 = _$Appointment55$Perso[0]) === null || _$Appointment55$Perso2 === void 0 ? void 0 : (_$Appointment55$Perso3 = _$Appointment55$Perso2.name) === null || _$Appointment55$Perso3 === void 0 ? void 0 : _$Appointment55$Perso3[0]) || {}),
|
|
39571
|
+
mrn: ((_$Appointment56 = _.Appointment) === null || _$Appointment56 === void 0 ? void 0 : (_$Appointment56$Perso = _$Appointment56.PersonID) === null || _$Appointment56$Perso === void 0 ? void 0 : (_$Appointment56$Perso2 = _$Appointment56$Perso[0]) === null || _$Appointment56$Perso2 === void 0 ? void 0 : (_$Appointment56$Perso3 = _$Appointment56$Perso2.MRN) === null || _$Appointment56$Perso3 === void 0 ? void 0 : _$Appointment56$Perso3[0]) || "",
|
|
39572
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment57 = _.Appointment) === null || _$Appointment57 === void 0 ? void 0 : (_$Appointment57$Perso = _$Appointment57.PersonID) === null || _$Appointment57$Perso === void 0 ? void 0 : (_$Appointment57$Perso2 = _$Appointment57$Perso[0]) === null || _$Appointment57$Perso2 === void 0 ? void 0 : _$Appointment57$Perso2.birthDay),
|
|
39573
|
+
visitType: (_$Appointment$appoint3 = _ === null || _ === void 0 ? void 0 : (_$Appointment58 = _.Appointment) === null || _$Appointment58 === void 0 ? void 0 : _$Appointment58.appointmentType) !== null && _$Appointment$appoint3 !== void 0 ? _$Appointment$appoint3 : "",
|
|
39574
|
+
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$Appointment59 = _.Appointment) === null || _$Appointment59 === void 0 ? void 0 : _$Appointment59.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment60 = _.Appointment) === null || _$Appointment60 === void 0 ? void 0 : _$Appointment60.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$Appointment61 = _.Appointment) === null || _$Appointment61 === void 0 ? void 0 : _$Appointment61.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment62 = _.Appointment) === null || _$Appointment62 === void 0 ? void 0 : _$Appointment62.start, "hh:mm A") : ""),
|
|
39575
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$Appointment63 = _.Appointment) === null || _$Appointment63 === void 0 ? void 0 : _$Appointment63.appno) || "",
|
|
39535
39576
|
// mrn: _?.patient_id?.[0]?.alias || "",
|
|
39536
39577
|
// age: _?.patient_id?.[0]?.age,
|
|
39537
|
-
|
|
39538
|
-
date:
|
|
39539
|
-
|
|
39540
|
-
|
|
39541
|
-
|
|
39542
|
-
|
|
39543
|
-
|
|
39544
|
-
|
|
39545
|
-
|
|
39546
|
-
|
|
39547
|
-
|
|
39548
|
-
|
|
39549
|
-
|
|
39550
|
-
|
|
39551
|
-
|
|
39552
|
-
|
|
39553
|
-
|
|
39554
|
-
|
|
39555
|
-
|
|
39556
|
-
|
|
39578
|
+
// date: JSON.stringify({
|
|
39579
|
+
// date: _?.Appointment?.start
|
|
39580
|
+
// ? utcTOLocal(_?.Appointment?.start, "DD MMM,YYYY")
|
|
39581
|
+
// : "",
|
|
39582
|
+
// time: _?.Appointment?.start
|
|
39583
|
+
// ? utcTOLocal(_?.Appointment?.start, "hh:mm A")
|
|
39584
|
+
// : ""
|
|
39585
|
+
// }),
|
|
39586
|
+
// visitType: _?.Appointment?.appointmentType ?? "",
|
|
39587
|
+
// speciality: JSON.stringify({
|
|
39588
|
+
// speciality: _?.Appointment?.SpecialtyID?.map((spl) => {
|
|
39589
|
+
// return spl?.coding?.[0]?.display;
|
|
39590
|
+
// }).join(", ") ?? "",
|
|
39591
|
+
// clinic: _?.Appointment?.orgid?.name ?? ""
|
|
39592
|
+
// }),
|
|
39593
|
+
// clinic: _?.practitioner_details?.[0]?.clinic || "",
|
|
39594
|
+
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$Appointment64 = _.Appointment) === null || _$Appointment64 === void 0 ? void 0 : _$Appointment64.appstatus) || "",
|
|
39595
|
+
// "View Patient": true,
|
|
39596
|
+
// Attend: true,
|
|
39597
|
+
action: true // type: "OP",
|
|
39598
|
+
// appNo: _?.id ?? '',
|
|
39557
39599
|
// // data: _,
|
|
39558
39600
|
// enId: _.id,
|
|
39559
39601
|
// age: getAge(_?.PersonID?.[0]?.birthDay),
|
|
@@ -39605,10 +39647,14 @@ var GET_FIRST_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getFirs
|
|
|
39605
39647
|
case 5:
|
|
39606
39648
|
data = _context14.sent;
|
|
39607
39649
|
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 (_) {
|
|
39608
|
-
var _$
|
|
39650
|
+
var _$patient_id11, _$patient_id11$, _$patient_id11$$name, _$patient_id12, _$patient_id12$, _$appointmentId31, _$appointmentId31$, _$appointmentId31$$Pe, _$appointmentId31$$Pe2, _$visit_type6, _$appointmentId32, _$appointmentId32$, _$appointmentId33, _$appointmentId33$, _$appointmentId34, _$appointmentId34$, _$appointmentId35, _$appointmentId35$, _$appointmentId36, _$appointmentId36$, _$status6;
|
|
39609
39651
|
|
|
39610
39652
|
return {
|
|
39611
|
-
img:
|
|
39653
|
+
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
39654
|
+
// ? getImgUrl(
|
|
39655
|
+
// _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
39656
|
+
// )
|
|
39657
|
+
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
39612
39658
|
// name: makeName(_?.patient_id?.[0]?.name?.[0] || {}),
|
|
39613
39659
|
// mrn: _?.patient_id?.[0]?.MRN || "",
|
|
39614
39660
|
// refNo: _?.appointmentId?.[0]?.appno || "",
|
|
@@ -39634,27 +39680,33 @@ var GET_FIRST_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getFirs
|
|
|
39634
39680
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender,
|
|
39635
39681
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? "",
|
|
39636
39682
|
// pId: _?.patient_id?.id,
|
|
39637
|
-
name: JSON.stringify({
|
|
39638
|
-
|
|
39639
|
-
|
|
39640
|
-
|
|
39641
|
-
|
|
39642
|
-
|
|
39643
|
-
}),
|
|
39644
|
-
|
|
39645
|
-
|
|
39646
|
-
|
|
39647
|
-
time: (_ === 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") : ""
|
|
39648
|
-
}),
|
|
39683
|
+
// name: JSON.stringify({
|
|
39684
|
+
// name: makeName(_?.patient_id?.[0]?.name?.[0] || {}),
|
|
39685
|
+
// age: getAge(_?.appointmentId?.[0]?.PersonID?.[0]?.birthDay),
|
|
39686
|
+
// mrn: _?.patient_id?.[0]?.MRN || "",
|
|
39687
|
+
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
39688
|
+
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
39689
|
+
// }),
|
|
39690
|
+
name: makeName((_ === 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$$name = _$patient_id11$.name) === null || _$patient_id11$$name === void 0 ? void 0 : _$patient_id11$$name[0]) || {}),
|
|
39691
|
+
mrn: (_ === 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$.MRN) || "",
|
|
39692
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId31 = _.appointmentId) === null || _$appointmentId31 === void 0 ? void 0 : (_$appointmentId31$ = _$appointmentId31[0]) === null || _$appointmentId31$ === void 0 ? void 0 : (_$appointmentId31$$Pe = _$appointmentId31$.PersonID) === null || _$appointmentId31$$Pe === void 0 ? void 0 : (_$appointmentId31$$Pe2 = _$appointmentId31$$Pe[0]) === null || _$appointmentId31$$Pe2 === void 0 ? void 0 : _$appointmentId31$$Pe2.birthDay),
|
|
39649
39693
|
visitType: (_$visit_type6 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type6 !== void 0 ? _$visit_type6 : "",
|
|
39650
|
-
|
|
39651
|
-
|
|
39652
|
-
|
|
39653
|
-
|
|
39654
|
-
|
|
39655
|
-
|
|
39656
|
-
|
|
39657
|
-
|
|
39694
|
+
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId32 = _.appointmentId) === null || _$appointmentId32 === void 0 ? void 0 : (_$appointmentId32$ = _$appointmentId32[0]) === null || _$appointmentId32$ === void 0 ? void 0 : _$appointmentId32$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId33 = _.appointmentId) === null || _$appointmentId33 === void 0 ? void 0 : (_$appointmentId33$ = _$appointmentId33[0]) === null || _$appointmentId33$ === void 0 ? void 0 : _$appointmentId33$.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId34 = _.appointmentId) === null || _$appointmentId34 === void 0 ? void 0 : (_$appointmentId34$ = _$appointmentId34[0]) === null || _$appointmentId34$ === void 0 ? void 0 : _$appointmentId34$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId35 = _.appointmentId) === null || _$appointmentId35 === void 0 ? void 0 : (_$appointmentId35$ = _$appointmentId35[0]) === null || _$appointmentId35$ === void 0 ? void 0 : _$appointmentId35$.start, "hh:mm A") : ""),
|
|
39695
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId36 = _.appointmentId) === null || _$appointmentId36 === void 0 ? void 0 : (_$appointmentId36$ = _$appointmentId36[0]) === null || _$appointmentId36$ === void 0 ? void 0 : _$appointmentId36$.appno) || "",
|
|
39696
|
+
// date: JSON.stringify({
|
|
39697
|
+
// date: _?.appointmentId?.[0]?.start
|
|
39698
|
+
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
39699
|
+
// : "",
|
|
39700
|
+
// time: _?.appointmentId?.[0]?.start
|
|
39701
|
+
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "hh:mm A")
|
|
39702
|
+
// : ""
|
|
39703
|
+
// }),
|
|
39704
|
+
// speciality: JSON.stringify({
|
|
39705
|
+
// speciality: _?.appointmentId?.[0]?.SpecialtyID?.map((spl) => {
|
|
39706
|
+
// return spl?.coding?.[0]?.display;
|
|
39707
|
+
// }).join(", "),
|
|
39708
|
+
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
39709
|
+
// }),
|
|
39658
39710
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status6 = _.status) === null || _$status6 === void 0 ? void 0 : _$status6.display) || "",
|
|
39659
39711
|
action: true
|
|
39660
39712
|
};
|
|
@@ -39701,10 +39753,14 @@ var GET_NEW_PATIENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getNewP
|
|
|
39701
39753
|
case 5:
|
|
39702
39754
|
data = _context15.sent;
|
|
39703
39755
|
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 (_) {
|
|
39704
|
-
var _$
|
|
39756
|
+
var _$patient_id13, _$patient_id13$, _$patient_id13$$name, _$patient_id14, _$patient_id14$, _$appointmentId37, _$appointmentId37$, _$appointmentId37$$Pe, _$appointmentId37$$Pe2, _$visit_type7, _$appointmentId38, _$appointmentId38$, _$appointmentId39, _$appointmentId39$, _$appointmentId40, _$appointmentId40$, _$appointmentId41, _$appointmentId41$, _$appointmentId42, _$appointmentId42$, _$status7;
|
|
39705
39757
|
|
|
39706
39758
|
return {
|
|
39707
|
-
img:
|
|
39759
|
+
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
39760
|
+
// ? getImgUrl(
|
|
39761
|
+
// _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
39762
|
+
// )
|
|
39763
|
+
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
39708
39764
|
// name: makeName(_?.patient_id?.[0]?.name?.[0] || {}),
|
|
39709
39765
|
// mrn: _?.patient_id?.[0]?.MRN || "",
|
|
39710
39766
|
// refNo: _?.appointmentId?.[0]?.appno || "",
|
|
@@ -39730,27 +39786,33 @@ var GET_NEW_PATIENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getNewP
|
|
|
39730
39786
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender,
|
|
39731
39787
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? "",
|
|
39732
39788
|
// pId: _?.patient_id?.id,
|
|
39733
|
-
name: JSON.stringify({
|
|
39734
|
-
|
|
39735
|
-
|
|
39736
|
-
|
|
39737
|
-
|
|
39738
|
-
|
|
39739
|
-
}),
|
|
39740
|
-
|
|
39741
|
-
|
|
39742
|
-
|
|
39743
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId68 = _.appointmentId) === null || _$appointmentId68 === void 0 ? void 0 : (_$appointmentId68$ = _$appointmentId68[0]) === null || _$appointmentId68$ === void 0 ? void 0 : _$appointmentId68$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId69 = _.appointmentId) === null || _$appointmentId69 === void 0 ? void 0 : (_$appointmentId69$ = _$appointmentId69[0]) === null || _$appointmentId69$ === void 0 ? void 0 : _$appointmentId69$.start, "hh:mm A") : ""
|
|
39744
|
-
}),
|
|
39789
|
+
// name: JSON.stringify({
|
|
39790
|
+
// name: makeName(_?.patient_id?.[0]?.name?.[0] || {}),
|
|
39791
|
+
// age: getAge(_?.appointmentId?.[0]?.PersonID?.[0]?.birthDay),
|
|
39792
|
+
// mrn: _?.patient_id?.[0]?.MRN || "",
|
|
39793
|
+
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
39794
|
+
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
39795
|
+
// }),
|
|
39796
|
+
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]) || {}),
|
|
39797
|
+
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$.MRN) || "",
|
|
39798
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId37 = _.appointmentId) === null || _$appointmentId37 === void 0 ? void 0 : (_$appointmentId37$ = _$appointmentId37[0]) === null || _$appointmentId37$ === void 0 ? void 0 : (_$appointmentId37$$Pe = _$appointmentId37$.PersonID) === null || _$appointmentId37$$Pe === void 0 ? void 0 : (_$appointmentId37$$Pe2 = _$appointmentId37$$Pe[0]) === null || _$appointmentId37$$Pe2 === void 0 ? void 0 : _$appointmentId37$$Pe2.birthDay),
|
|
39745
39799
|
visitType: (_$visit_type7 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type7 !== void 0 ? _$visit_type7 : "",
|
|
39746
|
-
|
|
39747
|
-
|
|
39748
|
-
|
|
39749
|
-
|
|
39750
|
-
|
|
39751
|
-
|
|
39752
|
-
|
|
39753
|
-
|
|
39800
|
+
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") : ""),
|
|
39801
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId42 = _.appointmentId) === null || _$appointmentId42 === void 0 ? void 0 : (_$appointmentId42$ = _$appointmentId42[0]) === null || _$appointmentId42$ === void 0 ? void 0 : _$appointmentId42$.appno) || "",
|
|
39802
|
+
// date: JSON.stringify({
|
|
39803
|
+
// date: _?.appointmentId?.[0]?.start
|
|
39804
|
+
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
39805
|
+
// : "",
|
|
39806
|
+
// time: _?.appointmentId?.[0]?.start
|
|
39807
|
+
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "hh:mm A")
|
|
39808
|
+
// : ""
|
|
39809
|
+
// }),
|
|
39810
|
+
// speciality: JSON.stringify({
|
|
39811
|
+
// speciality: _?.appointmentId?.[0]?.SpecialtyID?.map((spl) => {
|
|
39812
|
+
// return spl?.coding?.[0]?.display;
|
|
39813
|
+
// }).join(", "),
|
|
39814
|
+
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
39815
|
+
// }),
|
|
39754
39816
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status7 = _.status) === null || _$status7 === void 0 ? void 0 : _$status7.display) || "",
|
|
39755
39817
|
action: true
|
|
39756
39818
|
};
|
|
@@ -39797,10 +39859,14 @@ var GET_OTHER_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getOthe
|
|
|
39797
39859
|
case 5:
|
|
39798
39860
|
data = _context16.sent;
|
|
39799
39861
|
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 (_) {
|
|
39800
|
-
var _$
|
|
39862
|
+
var _$patient_id15, _$patient_id15$, _$patient_id15$$name, _$patient_id16, _$patient_id16$, _$appointmentId43, _$appointmentId43$, _$appointmentId43$$Pe, _$appointmentId43$$Pe2, _$visit_type8, _$appointmentId44, _$appointmentId44$, _$appointmentId45, _$appointmentId45$, _$appointmentId46, _$appointmentId46$, _$appointmentId47, _$appointmentId47$, _$appointmentId48, _$appointmentId48$, _$status8;
|
|
39801
39863
|
|
|
39802
39864
|
return {
|
|
39803
|
-
img:
|
|
39865
|
+
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
39866
|
+
// ? getImgUrl(
|
|
39867
|
+
// _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
39868
|
+
// )
|
|
39869
|
+
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
39804
39870
|
// name: makeName(_?.patient_id?.[0]?.name?.[0] || {}),
|
|
39805
39871
|
// mrn: _?.patient_id?.[0]?.MRN || "",
|
|
39806
39872
|
// refNo: _?.appointmentId?.[0]?.appno || "",
|
|
@@ -39826,27 +39892,33 @@ var GET_OTHER_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getOthe
|
|
|
39826
39892
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender,
|
|
39827
39893
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? "",
|
|
39828
39894
|
// pId: _?.patient_id?.id,
|
|
39829
|
-
name: JSON.stringify({
|
|
39830
|
-
|
|
39831
|
-
|
|
39832
|
-
|
|
39833
|
-
|
|
39834
|
-
|
|
39835
|
-
}),
|
|
39836
|
-
|
|
39837
|
-
|
|
39838
|
-
|
|
39839
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId78 = _.appointmentId) === null || _$appointmentId78 === void 0 ? void 0 : (_$appointmentId78$ = _$appointmentId78[0]) === null || _$appointmentId78$ === void 0 ? void 0 : _$appointmentId78$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId79 = _.appointmentId) === null || _$appointmentId79 === void 0 ? void 0 : (_$appointmentId79$ = _$appointmentId79[0]) === null || _$appointmentId79$ === void 0 ? void 0 : _$appointmentId79$.start, "hh:mm A") : ""
|
|
39840
|
-
}),
|
|
39895
|
+
// name: JSON.stringify({
|
|
39896
|
+
// name: makeName(_?.patient_id?.[0]?.name?.[0] || {}),
|
|
39897
|
+
// age: getAge(_?.appointmentId?.[0]?.PersonID?.[0]?.birthDay),
|
|
39898
|
+
// mrn: _?.patient_id?.[0]?.MRN || "",
|
|
39899
|
+
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
39900
|
+
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
39901
|
+
// }),
|
|
39902
|
+
name: makeName((_ === 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$$name = _$patient_id15$.name) === null || _$patient_id15$$name === void 0 ? void 0 : _$patient_id15$$name[0]) || {}),
|
|
39903
|
+
mrn: (_ === 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$.MRN) || "",
|
|
39904
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId43 = _.appointmentId) === null || _$appointmentId43 === void 0 ? void 0 : (_$appointmentId43$ = _$appointmentId43[0]) === null || _$appointmentId43$ === void 0 ? void 0 : (_$appointmentId43$$Pe = _$appointmentId43$.PersonID) === null || _$appointmentId43$$Pe === void 0 ? void 0 : (_$appointmentId43$$Pe2 = _$appointmentId43$$Pe[0]) === null || _$appointmentId43$$Pe2 === void 0 ? void 0 : _$appointmentId43$$Pe2.birthDay),
|
|
39841
39905
|
visitType: (_$visit_type8 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type8 !== void 0 ? _$visit_type8 : "",
|
|
39842
|
-
|
|
39843
|
-
|
|
39844
|
-
|
|
39845
|
-
|
|
39846
|
-
|
|
39847
|
-
|
|
39848
|
-
|
|
39849
|
-
|
|
39906
|
+
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") : ""),
|
|
39907
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId48 = _.appointmentId) === null || _$appointmentId48 === void 0 ? void 0 : (_$appointmentId48$ = _$appointmentId48[0]) === null || _$appointmentId48$ === void 0 ? void 0 : _$appointmentId48$.appno) || "",
|
|
39908
|
+
// date: JSON.stringify({
|
|
39909
|
+
// date: _?.appointmentId?.[0]?.start
|
|
39910
|
+
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
39911
|
+
// : "",
|
|
39912
|
+
// time: _?.appointmentId?.[0]?.start
|
|
39913
|
+
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "hh:mm A")
|
|
39914
|
+
// : ""
|
|
39915
|
+
// }),
|
|
39916
|
+
// speciality: JSON.stringify({
|
|
39917
|
+
// speciality: _?.appointmentId?.[0]?.SpecialtyID?.map((spl) => {
|
|
39918
|
+
// return spl?.coding?.[0]?.display;
|
|
39919
|
+
// }).join(", "),
|
|
39920
|
+
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
39921
|
+
// }),
|
|
39850
39922
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status8 = _.status) === null || _$status8 === void 0 ? void 0 : _$status8.display) || "",
|
|
39851
39923
|
action: true
|
|
39852
39924
|
};
|
|
@@ -39893,10 +39965,14 @@ var GET_TODAY_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getToda
|
|
|
39893
39965
|
case 5:
|
|
39894
39966
|
data = _context17.sent;
|
|
39895
39967
|
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 (_) {
|
|
39896
|
-
var _$
|
|
39968
|
+
var _$patient_id17, _$patient_id17$, _$patient_id17$$name, _$patient_id18, _$patient_id18$, _$appointmentId49, _$appointmentId49$, _$appointmentId49$$Pe, _$appointmentId49$$Pe2, _$visit_type9, _$appointmentId50, _$appointmentId50$, _$appointmentId51, _$appointmentId51$, _$appointmentId52, _$appointmentId52$, _$appointmentId53, _$appointmentId53$, _$appointmentId54, _$appointmentId54$, _$status9;
|
|
39897
39969
|
|
|
39898
39970
|
return {
|
|
39899
|
-
img:
|
|
39971
|
+
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
39972
|
+
// ? getImgUrl(
|
|
39973
|
+
// _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
39974
|
+
// )
|
|
39975
|
+
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
39900
39976
|
// name: makeName(_?.patient_id?.[0]?.name?.[0] || {}),
|
|
39901
39977
|
// mrn: _?.patient_id?.[0]?.MRN || "",
|
|
39902
39978
|
// refNo: _?.appointmentId?.[0]?.appno || "",
|
|
@@ -39922,27 +39998,33 @@ var GET_TODAY_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getToda
|
|
|
39922
39998
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender,
|
|
39923
39999
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? "",
|
|
39924
40000
|
// pId: _?.patient_id?.id,
|
|
39925
|
-
name: JSON.stringify({
|
|
39926
|
-
|
|
39927
|
-
|
|
39928
|
-
|
|
39929
|
-
|
|
39930
|
-
|
|
39931
|
-
}),
|
|
39932
|
-
|
|
39933
|
-
|
|
39934
|
-
|
|
39935
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId88 = _.appointmentId) === null || _$appointmentId88 === void 0 ? void 0 : (_$appointmentId88$ = _$appointmentId88[0]) === null || _$appointmentId88$ === void 0 ? void 0 : _$appointmentId88$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId89 = _.appointmentId) === null || _$appointmentId89 === void 0 ? void 0 : (_$appointmentId89$ = _$appointmentId89[0]) === null || _$appointmentId89$ === void 0 ? void 0 : _$appointmentId89$.start, "hh:mm A") : ""
|
|
39936
|
-
}),
|
|
40001
|
+
// name: JSON.stringify({
|
|
40002
|
+
// name: makeName(_?.patient_id?.[0]?.name?.[0] || {}),
|
|
40003
|
+
// age: getAge(_?.appointmentId?.[0]?.PersonID?.[0]?.birthDay),
|
|
40004
|
+
// mrn: _?.patient_id?.[0]?.MRN || "",
|
|
40005
|
+
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
40006
|
+
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
40007
|
+
// }),
|
|
40008
|
+
name: makeName((_ === 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$$name = _$patient_id17$.name) === null || _$patient_id17$$name === void 0 ? void 0 : _$patient_id17$$name[0]) || {}),
|
|
40009
|
+
mrn: (_ === 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$.MRN) || "",
|
|
40010
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId49 = _.appointmentId) === null || _$appointmentId49 === void 0 ? void 0 : (_$appointmentId49$ = _$appointmentId49[0]) === null || _$appointmentId49$ === void 0 ? void 0 : (_$appointmentId49$$Pe = _$appointmentId49$.PersonID) === null || _$appointmentId49$$Pe === void 0 ? void 0 : (_$appointmentId49$$Pe2 = _$appointmentId49$$Pe[0]) === null || _$appointmentId49$$Pe2 === void 0 ? void 0 : _$appointmentId49$$Pe2.birthDay),
|
|
39937
40011
|
visitType: (_$visit_type9 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type9 !== void 0 ? _$visit_type9 : "",
|
|
39938
|
-
|
|
39939
|
-
|
|
39940
|
-
|
|
39941
|
-
|
|
39942
|
-
|
|
39943
|
-
|
|
39944
|
-
|
|
39945
|
-
|
|
40012
|
+
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") : ""),
|
|
40013
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId54 = _.appointmentId) === null || _$appointmentId54 === void 0 ? void 0 : (_$appointmentId54$ = _$appointmentId54[0]) === null || _$appointmentId54$ === void 0 ? void 0 : _$appointmentId54$.appno) || "",
|
|
40014
|
+
// date: JSON.stringify({
|
|
40015
|
+
// date: _?.appointmentId?.[0]?.start
|
|
40016
|
+
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
40017
|
+
// : "",
|
|
40018
|
+
// time: _?.appointmentId?.[0]?.start
|
|
40019
|
+
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "hh:mm A")
|
|
40020
|
+
// : ""
|
|
40021
|
+
// }),
|
|
40022
|
+
// speciality: JSON.stringify({
|
|
40023
|
+
// speciality: _?.appointmentId?.[0]?.SpecialtyID?.map((spl) => {
|
|
40024
|
+
// return spl?.coding?.[0]?.display;
|
|
40025
|
+
// }).join(", "),
|
|
40026
|
+
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
40027
|
+
// }),
|
|
39946
40028
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status9 = _.status) === null || _$status9 === void 0 ? void 0 : _$status9.display) || "",
|
|
39947
40029
|
action: true
|
|
39948
40030
|
};
|
|
@@ -39989,10 +40071,14 @@ var GET_WALK_INS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getWalkInsD
|
|
|
39989
40071
|
case 5:
|
|
39990
40072
|
data = _context18.sent;
|
|
39991
40073
|
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 (_) {
|
|
39992
|
-
var _$
|
|
40074
|
+
var _$patient_id19, _$patient_id19$, _$patient_id19$$name, _$patient_id20, _$patient_id20$, _$appointmentId55, _$appointmentId55$, _$appointmentId55$$Pe, _$appointmentId55$$Pe2, _$visit_type10, _$appointmentId56, _$appointmentId56$, _$appointmentId57, _$appointmentId57$, _$appointmentId58, _$appointmentId58$, _$appointmentId59, _$appointmentId59$, _$appointmentId60, _$appointmentId60$, _$status10;
|
|
39993
40075
|
|
|
39994
40076
|
return {
|
|
39995
|
-
img:
|
|
40077
|
+
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
40078
|
+
// ? getImgUrl(
|
|
40079
|
+
// _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
40080
|
+
// )
|
|
40081
|
+
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
39996
40082
|
// name: makeName(_?.patient_id?.[0]?.name?.[0] || {}),
|
|
39997
40083
|
// mrn: _?.patient_id?.[0]?.MRN || "",
|
|
39998
40084
|
// refNo: _?.appointmentId?.[0]?.appno || "",
|
|
@@ -40018,27 +40104,33 @@ var GET_WALK_INS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getWalkInsD
|
|
|
40018
40104
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender,
|
|
40019
40105
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? "",
|
|
40020
40106
|
// pId: _?.patient_id?.id,
|
|
40021
|
-
name: JSON.stringify({
|
|
40022
|
-
|
|
40023
|
-
|
|
40024
|
-
|
|
40025
|
-
|
|
40026
|
-
|
|
40027
|
-
}),
|
|
40028
|
-
|
|
40029
|
-
|
|
40030
|
-
|
|
40031
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId98 = _.appointmentId) === null || _$appointmentId98 === void 0 ? void 0 : (_$appointmentId98$ = _$appointmentId98[0]) === null || _$appointmentId98$ === void 0 ? void 0 : _$appointmentId98$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId99 = _.appointmentId) === null || _$appointmentId99 === void 0 ? void 0 : (_$appointmentId99$ = _$appointmentId99[0]) === null || _$appointmentId99$ === void 0 ? void 0 : _$appointmentId99$.start, "hh:mm A") : ""
|
|
40032
|
-
}),
|
|
40107
|
+
// name: JSON.stringify({
|
|
40108
|
+
// name: makeName(_?.patient_id?.[0]?.name?.[0] || {}),
|
|
40109
|
+
// age: getAge(_?.appointmentId?.[0]?.PersonID?.[0]?.birthDay),
|
|
40110
|
+
// mrn: _?.patient_id?.[0]?.MRN || "",
|
|
40111
|
+
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
40112
|
+
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
40113
|
+
// }),
|
|
40114
|
+
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]) || {}),
|
|
40115
|
+
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) || "",
|
|
40116
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId55 = _.appointmentId) === null || _$appointmentId55 === void 0 ? void 0 : (_$appointmentId55$ = _$appointmentId55[0]) === null || _$appointmentId55$ === void 0 ? void 0 : (_$appointmentId55$$Pe = _$appointmentId55$.PersonID) === null || _$appointmentId55$$Pe === void 0 ? void 0 : (_$appointmentId55$$Pe2 = _$appointmentId55$$Pe[0]) === null || _$appointmentId55$$Pe2 === void 0 ? void 0 : _$appointmentId55$$Pe2.birthDay),
|
|
40033
40117
|
visitType: (_$visit_type10 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type10 !== void 0 ? _$visit_type10 : "",
|
|
40034
|
-
|
|
40035
|
-
|
|
40036
|
-
|
|
40037
|
-
|
|
40038
|
-
|
|
40039
|
-
|
|
40040
|
-
|
|
40041
|
-
|
|
40118
|
+
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") : ""),
|
|
40119
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId60 = _.appointmentId) === null || _$appointmentId60 === void 0 ? void 0 : (_$appointmentId60$ = _$appointmentId60[0]) === null || _$appointmentId60$ === void 0 ? void 0 : _$appointmentId60$.appno) || "",
|
|
40120
|
+
// date: JSON.stringify({
|
|
40121
|
+
// date: _?.appointmentId?.[0]?.start
|
|
40122
|
+
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "DD MMM,YYYY")
|
|
40123
|
+
// : "",
|
|
40124
|
+
// time: _?.appointmentId?.[0]?.start
|
|
40125
|
+
// ? utcTOLocal(_?.appointmentId?.[0]?.start, "hh:mm A")
|
|
40126
|
+
// : ""
|
|
40127
|
+
// }),
|
|
40128
|
+
// speciality: JSON.stringify({
|
|
40129
|
+
// speciality: _?.appointmentId?.[0]?.SpecialtyID?.map((spl) => {
|
|
40130
|
+
// return spl?.coding?.[0]?.display;
|
|
40131
|
+
// }).join(", "),
|
|
40132
|
+
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
40133
|
+
// }),
|
|
40042
40134
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status10 = _.status) === null || _$status10 === void 0 ? void 0 : _$status10.display) || "",
|
|
40043
40135
|
action: true
|
|
40044
40136
|
};
|
|
@@ -42311,13 +42403,13 @@ var consultActions = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2
|
|
|
42311
42403
|
var query$2 = {
|
|
42312
42404
|
//FRONTDESK
|
|
42313
42405
|
getPatientsCheckedIn: function getPatientsCheckedIn(data) {
|
|
42314
|
-
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Encounter\",\n \"filter\": \"Encounter.activestatus == true && Encounter.Organization_id == ").concat(data === null || data === void 0 ? void 0 : data.orgIdInt, " && Encounter.encounterdate>=").concat(data === null || data === void 0 ? void 0 : data.startDate, " && Encounter.encounterdate<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && lower(first(document(Encounter.statushistory[*].status)[*].display))=='checked-in'\",\n \"return_fields\": \"merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))},{appointmentId:(for Appointment in Appointment filter Appointment.id in Encounter.appointmentId return merge(Appointment,{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)})),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)}))}))})\"\n }");
|
|
42406
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Encounter\",\n \"filter\": \"Encounter.activestatus == true && Encounter.Organization_id == ").concat(data === null || data === void 0 ? void 0 : data.orgIdInt, " && Encounter.encounterdate>=").concat(data === null || data === void 0 ? void 0 : data.startDate, " && Encounter.encounterdate<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && lower(first(document(Encounter.statushistory[*].status)[*].display))=='checked-in'\",\n \"return_fields\": \"merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {id: pat.id, name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))},{appointmentId:(for Appointment in Appointment filter Appointment.id in Encounter.appointmentId return merge(Appointment,{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)})),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)}))}))})\"\n }");
|
|
42315
42407
|
},
|
|
42316
42408
|
getTriageDone: function getTriageDone(data) {
|
|
42317
|
-
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Encounter\",\n \"filter\": \"Encounter.activestatus == true && Encounter.Organization_id == ").concat(data === null || data === void 0 ? void 0 : data.orgIdInt, " && Encounter.encounterdate>=").concat(data === null || data === void 0 ? void 0 : data.startDate, " && Encounter.encounterdate<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && DOCUMENT(Encounter.statushistory[*].status)[*].display ANY=='Triaged' \",\n \"return_fields\": \"merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))},{appointmentId:(for Appointment in Appointment filter Appointment.id in Encounter.appointmentId return merge(Appointment,{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)})),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)}))}))})\"\n }");
|
|
42409
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Encounter\",\n \"filter\": \"Encounter.activestatus == true && Encounter.Organization_id == ").concat(data === null || data === void 0 ? void 0 : data.orgIdInt, " && Encounter.encounterdate>=").concat(data === null || data === void 0 ? void 0 : data.startDate, " && Encounter.encounterdate<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && DOCUMENT(Encounter.statushistory[*].status)[*].display ANY=='Triaged' \",\n \"return_fields\": \"merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {id: pat.id, name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))},{appointmentId:(for Appointment in Appointment filter Appointment.id in Encounter.appointmentId return merge(Appointment,{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)})),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)}))}))})\"\n }");
|
|
42318
42410
|
},
|
|
42319
42411
|
getVisitCompleted: function getVisitCompleted(data) {
|
|
42320
|
-
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Encounter\",\n \"filter\": \"Encounter.activestatus == true && Encounter.Organization_id == ").concat(data === null || data === void 0 ? void 0 : data.orgIdInt, " && Encounter.encounterdate>=").concat(data === null || data === void 0 ? void 0 : data.startDate, " && Encounter.encounterdate<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && document(Encounter.statushistory[*].status)[*].code ANY =='ENCSTATUS0010'\",\n \"return_fields\": \"merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))},{appointmentId:(for Appointment in Appointment filter Appointment.id in Encounter.appointmentId return merge(Appointment,{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)})),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)}))}))})\"\n }");
|
|
42412
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Encounter\",\n \"filter\": \"Encounter.activestatus == true && Encounter.Organization_id == ").concat(data === null || data === void 0 ? void 0 : data.orgIdInt, " && Encounter.encounterdate>=").concat(data === null || data === void 0 ? void 0 : data.startDate, " && Encounter.encounterdate<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && document(Encounter.statushistory[*].status)[*].code ANY =='ENCSTATUS0010'\",\n \"return_fields\": \"merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {id: pat.id, name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))},{appointmentId:(for Appointment in Appointment filter Appointment.id in Encounter.appointmentId return merge(Appointment,{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)})),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)}))}))})\"\n }");
|
|
42321
42413
|
},
|
|
42322
42414
|
getPatientsNoShows: function getPatientsNoShows(data) {
|
|
42323
42415
|
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Appointment\",\n \"filter\": \"Appointment.activestatus==true && Appointment.orgid== ").concat(data === null || data === void 0 ? void 0 : data.orgIdInt, " && 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.appstatus)=='booked' && ((DATE_TIMESTAMP(DATE_NOW()/1000)-Appointment.end)/60)>30\",\n \"return_fields\": \"merge(Appointment,{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)}))}))})\"\n }");
|
|
@@ -42434,15 +42526,17 @@ var GET_PATIENTS_CHECKED_IN = createAsyncThunk("currentVisitStatsApiSlice/getPat
|
|
|
42434
42526
|
case 5:
|
|
42435
42527
|
data = _context.sent;
|
|
42436
42528
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result = data.result) === null || _data$result === void 0 ? void 0 : _data$result.map(function (_) {
|
|
42437
|
-
var _$
|
|
42529
|
+
var _$patient_id, _$patient_id$, _$patient_id$$name, _$patient_id2, _$patient_id2$, _$appointmentId, _$appointmentId$, _$appointmentId2, _$appointmentId2$, _$appointmentId3, _$appointmentId3$, _$appointmentId4, _$appointmentId4$, _$appointmentId5, _$appointmentId5$, _$appointmentId5$$Spe, _$patient_id3, _$patient_id3$, _$patient_id4, _$patient_id4$, _$patient_id4$$teleco, _$patient_id4$$teleco2, _$status, _$appointmentId$0$id, _$appointmentId6, _$appointmentId6$, _$patient_id5, _$patient_id5$, _$patient_id5$$teleco, _$patient_id5$$teleco2, _$appointmentId$0$Per, _$appointmentId7, _$appointmentId7$, _$appointmentId7$$Per, _$appointmentId7$$Per2, _$patient_id$0$id, _$patient_id6, _$patient_id6$;
|
|
42438
42530
|
|
|
42439
42531
|
return {
|
|
42440
|
-
img:
|
|
42532
|
+
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid
|
|
42533
|
+
// ? getImgUrl(_?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid)
|
|
42534
|
+
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
42441
42535
|
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]) || {}),
|
|
42442
42536
|
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$.MRN,
|
|
42443
|
-
orderDate: (_ === null || _ === void 0 ? void 0 : (_$
|
|
42444
|
-
orderTime: (_ === null || _ === void 0 ? void 0 : (_$
|
|
42445
|
-
speciality: _ === null || _ === void 0 ? void 0 : (_$
|
|
42537
|
+
orderDate: (_ === null || _ === void 0 ? void 0 : (_$appointmentId = _.appointmentId) === null || _$appointmentId === void 0 ? void 0 : (_$appointmentId$ = _$appointmentId[0]) === null || _$appointmentId$ === void 0 ? void 0 : _$appointmentId$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId2 = _.appointmentId) === null || _$appointmentId2 === void 0 ? void 0 : (_$appointmentId2$ = _$appointmentId2[0]) === null || _$appointmentId2$ === void 0 ? void 0 : _$appointmentId2$.start, "DD MMM,YYYY") : "",
|
|
42538
|
+
orderTime: (_ === 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, "hh:mm A") : "",
|
|
42539
|
+
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId5 = _.appointmentId) === null || _$appointmentId5 === void 0 ? void 0 : (_$appointmentId5$ = _$appointmentId5[0]) === null || _$appointmentId5$ === void 0 ? void 0 : (_$appointmentId5$$Spe = _$appointmentId5$.SpecialtyID) === null || _$appointmentId5$$Spe === void 0 ? void 0 : _$appointmentId5$$Spe.map(function (spl) {
|
|
42446
42540
|
var _spl$coding, _spl$coding$;
|
|
42447
42541
|
|
|
42448
42542
|
return spl === null || spl === void 0 ? void 0 : (_spl$coding = spl.coding) === null || _spl$coding === void 0 ? void 0 : (_spl$coding$ = _spl$coding[0]) === null || _spl$coding$ === void 0 ? void 0 : _spl$coding$.display;
|
|
@@ -42452,7 +42546,13 @@ var GET_PATIENTS_CHECKED_IN = createAsyncThunk("currentVisitStatsApiSlice/getPat
|
|
|
42452
42546
|
contact: JSON.stringify(_ === 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$$teleco = _$patient_id4$.telecom) === null || _$patient_id4$$teleco === void 0 ? void 0 : (_$patient_id4$$teleco2 = _$patient_id4$$teleco[0]) === null || _$patient_id4$$teleco2 === void 0 ? void 0 : _$patient_id4$$teleco2.value),
|
|
42453
42547
|
type: _ === null || _ === void 0 ? void 0 : _.visit_type,
|
|
42454
42548
|
encounterStatus: _ === null || _ === void 0 ? void 0 : (_$status = _.status) === null || _$status === void 0 ? void 0 : _$status.display,
|
|
42455
|
-
|
|
42549
|
+
action: JSON.stringify({
|
|
42550
|
+
appNo: (_$appointmentId$0$id = _ === null || _ === void 0 ? void 0 : (_$appointmentId6 = _.appointmentId) === null || _$appointmentId6 === void 0 ? void 0 : (_$appointmentId6$ = _$appointmentId6[0]) === null || _$appointmentId6$ === void 0 ? void 0 : _$appointmentId6$.id) !== null && _$appointmentId$0$id !== void 0 ? _$appointmentId$0$id : "",
|
|
42551
|
+
enId: _.id,
|
|
42552
|
+
contact: _ === 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$$teleco = _$patient_id5$.telecom) === null || _$patient_id5$$teleco === void 0 ? void 0 : (_$patient_id5$$teleco2 = _$patient_id5$$teleco[0]) === null || _$patient_id5$$teleco2 === void 0 ? void 0 : _$patient_id5$$teleco2.value,
|
|
42553
|
+
personId: (_$appointmentId$0$Per = _ === null || _ === void 0 ? void 0 : (_$appointmentId7 = _.appointmentId) === null || _$appointmentId7 === void 0 ? void 0 : (_$appointmentId7$ = _$appointmentId7[0]) === null || _$appointmentId7$ === void 0 ? void 0 : (_$appointmentId7$$Per = _$appointmentId7$.PersonID) === null || _$appointmentId7$$Per === void 0 ? void 0 : (_$appointmentId7$$Per2 = _$appointmentId7$$Per[0]) === null || _$appointmentId7$$Per2 === void 0 ? void 0 : _$appointmentId7$$Per2.Id) !== null && _$appointmentId$0$Per !== void 0 ? _$appointmentId$0$Per : null,
|
|
42554
|
+
patientId: (_$patient_id$0$id = _ === 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$.id) !== null && _$patient_id$0$id !== void 0 ? _$patient_id$0$id : null
|
|
42555
|
+
})
|
|
42456
42556
|
};
|
|
42457
42557
|
}) : [];
|
|
42458
42558
|
return _context.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -42497,25 +42597,33 @@ var GET_TRAIGE_DONE = createAsyncThunk("currentVisitStatsApiSlice/getTriageDone"
|
|
|
42497
42597
|
case 5:
|
|
42498
42598
|
data = _context2.sent;
|
|
42499
42599
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result2 = data.result) === null || _data$result2 === void 0 ? void 0 : _data$result2.map(function (_) {
|
|
42500
|
-
var _$
|
|
42600
|
+
var _$patient_id7, _$patient_id7$, _$patient_id7$$name, _$patient_id8, _$patient_id8$, _$appointmentId8, _$appointmentId8$, _$appointmentId9, _$appointmentId9$, _$appointmentId10, _$appointmentId10$, _$appointmentId11, _$appointmentId11$, _$appointmentId12, _$appointmentId12$, _$appointmentId12$$Sp, _$patient_id9, _$patient_id9$, _$patient_id10, _$patient_id10$, _$patient_id10$$telec, _$patient_id10$$telec2, _$status2, _$appointmentId$0$id2, _$appointmentId13, _$appointmentId13$, _$patient_id11, _$patient_id11$, _$patient_id11$$telec, _$patient_id11$$telec2, _$appointmentId$0$Per2, _$appointmentId14, _$appointmentId14$, _$appointmentId14$$Pe, _$appointmentId14$$Pe2, _$patient_id$0$id2, _$patient_id12, _$patient_id12$;
|
|
42501
42601
|
|
|
42502
42602
|
return {
|
|
42503
|
-
img:
|
|
42504
|
-
|
|
42505
|
-
|
|
42506
|
-
|
|
42507
|
-
|
|
42508
|
-
|
|
42603
|
+
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid
|
|
42604
|
+
// ? getImgUrl(_?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid)
|
|
42605
|
+
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
42606
|
+
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]) || {}),
|
|
42607
|
+
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$.MRN,
|
|
42608
|
+
orderDate: (_ === 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") : "",
|
|
42609
|
+
orderTime: (_ === 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") : "",
|
|
42610
|
+
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId12 = _.appointmentId) === null || _$appointmentId12 === void 0 ? void 0 : (_$appointmentId12$ = _$appointmentId12[0]) === null || _$appointmentId12$ === void 0 ? void 0 : (_$appointmentId12$$Sp = _$appointmentId12$.SpecialtyID) === null || _$appointmentId12$$Sp === void 0 ? void 0 : _$appointmentId12$$Sp.map(function (spl) {
|
|
42509
42611
|
var _spl$coding2, _spl$coding2$;
|
|
42510
42612
|
|
|
42511
42613
|
return spl === null || spl === void 0 ? void 0 : (_spl$coding2 = spl.coding) === null || _spl$coding2 === void 0 ? void 0 : (_spl$coding2$ = _spl$coding2[0]) === null || _spl$coding2$ === void 0 ? void 0 : _spl$coding2$.display;
|
|
42512
42614
|
}).join(", "),
|
|
42513
42615
|
ward: "Ward 1",
|
|
42514
|
-
age: _ === null || _ === void 0 ? void 0 : (_$
|
|
42515
|
-
contact: JSON.stringify(_ === null || _ === void 0 ? void 0 : (_$
|
|
42616
|
+
age: _ === 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$.age,
|
|
42617
|
+
contact: JSON.stringify(_ === 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$$telec = _$patient_id10$.telecom) === null || _$patient_id10$$telec === void 0 ? void 0 : (_$patient_id10$$telec2 = _$patient_id10$$telec[0]) === null || _$patient_id10$$telec2 === void 0 ? void 0 : _$patient_id10$$telec2.value),
|
|
42516
42618
|
type: _ === null || _ === void 0 ? void 0 : _.visit_type,
|
|
42517
42619
|
encounterStatus: _ === null || _ === void 0 ? void 0 : (_$status2 = _.status) === null || _$status2 === void 0 ? void 0 : _$status2.display,
|
|
42518
|
-
|
|
42620
|
+
action: JSON.stringify({
|
|
42621
|
+
appNo: (_$appointmentId$0$id2 = _ === null || _ === void 0 ? void 0 : (_$appointmentId13 = _.appointmentId) === null || _$appointmentId13 === void 0 ? void 0 : (_$appointmentId13$ = _$appointmentId13[0]) === null || _$appointmentId13$ === void 0 ? void 0 : _$appointmentId13$.id) !== null && _$appointmentId$0$id2 !== void 0 ? _$appointmentId$0$id2 : "",
|
|
42622
|
+
enId: _.id,
|
|
42623
|
+
contact: _ === 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$$telec = _$patient_id11$.telecom) === null || _$patient_id11$$telec === void 0 ? void 0 : (_$patient_id11$$telec2 = _$patient_id11$$telec[0]) === null || _$patient_id11$$telec2 === void 0 ? void 0 : _$patient_id11$$telec2.value,
|
|
42624
|
+
personId: (_$appointmentId$0$Per2 = _ === null || _ === void 0 ? void 0 : (_$appointmentId14 = _.appointmentId) === null || _$appointmentId14 === void 0 ? void 0 : (_$appointmentId14$ = _$appointmentId14[0]) === null || _$appointmentId14$ === void 0 ? void 0 : (_$appointmentId14$$Pe = _$appointmentId14$.PersonID) === null || _$appointmentId14$$Pe === void 0 ? void 0 : (_$appointmentId14$$Pe2 = _$appointmentId14$$Pe[0]) === null || _$appointmentId14$$Pe2 === void 0 ? void 0 : _$appointmentId14$$Pe2.Id) !== null && _$appointmentId$0$Per2 !== void 0 ? _$appointmentId$0$Per2 : null,
|
|
42625
|
+
patientId: (_$patient_id$0$id2 = _ === 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$.id) !== null && _$patient_id$0$id2 !== void 0 ? _$patient_id$0$id2 : null
|
|
42626
|
+
})
|
|
42519
42627
|
};
|
|
42520
42628
|
}) : [];
|
|
42521
42629
|
return _context2.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -42560,25 +42668,33 @@ var GET_VISIT_COMPLETED = createAsyncThunk("currentVisitStatsApiSlice/getVisitCo
|
|
|
42560
42668
|
case 5:
|
|
42561
42669
|
data = _context3.sent;
|
|
42562
42670
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result3 = data.result) === null || _data$result3 === void 0 ? void 0 : _data$result3.map(function (_) {
|
|
42563
|
-
var _$
|
|
42671
|
+
var _$patient_id13, _$patient_id13$, _$patient_id13$$name, _$patient_id14, _$patient_id14$, _$appointmentId15, _$appointmentId15$, _$appointmentId16, _$appointmentId16$, _$appointmentId17, _$appointmentId17$, _$appointmentId18, _$appointmentId18$, _$appointmentId19, _$appointmentId19$, _$appointmentId19$$Sp, _$patient_id15, _$patient_id15$, _$patient_id16, _$patient_id16$, _$patient_id16$$telec, _$patient_id16$$telec2, _$status3, _$appointmentId$0$id3, _$appointmentId20, _$appointmentId20$, _$patient_id17, _$patient_id17$, _$patient_id17$$telec, _$patient_id17$$telec2, _$appointmentId$0$Per3, _$appointmentId21, _$appointmentId21$, _$appointmentId21$$Pe, _$appointmentId21$$Pe2, _$patient_id$0$id3, _$patient_id18, _$patient_id18$;
|
|
42564
42672
|
|
|
42565
42673
|
return {
|
|
42566
|
-
img:
|
|
42567
|
-
|
|
42568
|
-
|
|
42569
|
-
|
|
42570
|
-
|
|
42571
|
-
|
|
42674
|
+
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid
|
|
42675
|
+
// ? getImgUrl(_?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid)
|
|
42676
|
+
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
42677
|
+
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]) || {}),
|
|
42678
|
+
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$.MRN,
|
|
42679
|
+
orderDate: (_ === null || _ === void 0 ? void 0 : (_$appointmentId15 = _.appointmentId) === null || _$appointmentId15 === void 0 ? void 0 : (_$appointmentId15$ = _$appointmentId15[0]) === null || _$appointmentId15$ === void 0 ? void 0 : _$appointmentId15$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId16 = _.appointmentId) === null || _$appointmentId16 === void 0 ? void 0 : (_$appointmentId16$ = _$appointmentId16[0]) === null || _$appointmentId16$ === void 0 ? void 0 : _$appointmentId16$.start, "DD MMM,YYYY") : "",
|
|
42680
|
+
orderTime: (_ === 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, "hh:mm A") : "",
|
|
42681
|
+
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId19 = _.appointmentId) === null || _$appointmentId19 === void 0 ? void 0 : (_$appointmentId19$ = _$appointmentId19[0]) === null || _$appointmentId19$ === void 0 ? void 0 : (_$appointmentId19$$Sp = _$appointmentId19$.SpecialtyID) === null || _$appointmentId19$$Sp === void 0 ? void 0 : _$appointmentId19$$Sp.map(function (spl) {
|
|
42572
42682
|
var _spl$coding3, _spl$coding3$;
|
|
42573
42683
|
|
|
42574
42684
|
return spl === null || spl === void 0 ? void 0 : (_spl$coding3 = spl.coding) === null || _spl$coding3 === void 0 ? void 0 : (_spl$coding3$ = _spl$coding3[0]) === null || _spl$coding3$ === void 0 ? void 0 : _spl$coding3$.display;
|
|
42575
42685
|
}).join(", "),
|
|
42576
42686
|
ward: "Ward 1",
|
|
42577
|
-
age: _ === null || _ === void 0 ? void 0 : (_$
|
|
42578
|
-
contact: JSON.stringify(_ === null || _ === void 0 ? void 0 : (_$
|
|
42687
|
+
age: _ === 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$.age,
|
|
42688
|
+
contact: JSON.stringify(_ === 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$$telec = _$patient_id16$.telecom) === null || _$patient_id16$$telec === void 0 ? void 0 : (_$patient_id16$$telec2 = _$patient_id16$$telec[0]) === null || _$patient_id16$$telec2 === void 0 ? void 0 : _$patient_id16$$telec2.value),
|
|
42579
42689
|
type: _ === null || _ === void 0 ? void 0 : _.visit_type,
|
|
42580
42690
|
encounterStatus: _ === null || _ === void 0 ? void 0 : (_$status3 = _.status) === null || _$status3 === void 0 ? void 0 : _$status3.display,
|
|
42581
|
-
|
|
42691
|
+
action: JSON.stringify({
|
|
42692
|
+
appNo: (_$appointmentId$0$id3 = _ === null || _ === void 0 ? void 0 : (_$appointmentId20 = _.appointmentId) === null || _$appointmentId20 === void 0 ? void 0 : (_$appointmentId20$ = _$appointmentId20[0]) === null || _$appointmentId20$ === void 0 ? void 0 : _$appointmentId20$.id) !== null && _$appointmentId$0$id3 !== void 0 ? _$appointmentId$0$id3 : "",
|
|
42693
|
+
enId: _.id,
|
|
42694
|
+
contact: _ === 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$$telec = _$patient_id17$.telecom) === null || _$patient_id17$$telec === void 0 ? void 0 : (_$patient_id17$$telec2 = _$patient_id17$$telec[0]) === null || _$patient_id17$$telec2 === void 0 ? void 0 : _$patient_id17$$telec2.value,
|
|
42695
|
+
personId: (_$appointmentId$0$Per3 = _ === null || _ === void 0 ? void 0 : (_$appointmentId21 = _.appointmentId) === null || _$appointmentId21 === void 0 ? void 0 : (_$appointmentId21$ = _$appointmentId21[0]) === null || _$appointmentId21$ === void 0 ? void 0 : (_$appointmentId21$$Pe = _$appointmentId21$.PersonID) === null || _$appointmentId21$$Pe === void 0 ? void 0 : (_$appointmentId21$$Pe2 = _$appointmentId21$$Pe[0]) === null || _$appointmentId21$$Pe2 === void 0 ? void 0 : _$appointmentId21$$Pe2.Id) !== null && _$appointmentId$0$Per3 !== void 0 ? _$appointmentId$0$Per3 : null,
|
|
42696
|
+
patientId: (_$patient_id$0$id3 = _ === 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$.id) !== null && _$patient_id$0$id3 !== void 0 ? _$patient_id$0$id3 : null
|
|
42697
|
+
})
|
|
42582
42698
|
};
|
|
42583
42699
|
}) : [];
|
|
42584
42700
|
return _context3.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -42623,21 +42739,27 @@ var GET_PATIENTS_NO_SHOWS = createAsyncThunk("currentVisitStatsApiSlice/getPatie
|
|
|
42623
42739
|
case 5:
|
|
42624
42740
|
data = _context4.sent;
|
|
42625
42741
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result4 = data.result) === null || _data$result4 === void 0 ? void 0 : _data$result4.map(function (_) {
|
|
42626
|
-
var _$patient_id$0$alias, _$
|
|
42742
|
+
var _$patient_id$0$alias, _$patient_id19, _$patient_id19$, _$practitioner_detail, _$practitioner_detail2, _$practitioner_detail3, _$patient_id$0$birthD, _$patient_id20, _$patient_id20$, _$type$0$display, _$type, _$type$, _$id, _$patient_id21, _$patient_id21$, _$patient_id21$$telec, _$patient_id21$$telec2, _$PersonID$0$Id, _$PersonID, _$PersonID$, _$patient_id$0$id4, _$patient_id22, _$patient_id22$;
|
|
42627
42743
|
|
|
42628
42744
|
return {
|
|
42629
|
-
img: "https://www.fillmurray.com/640/360",
|
|
42745
|
+
// img: "https://www.fillmurray.com/640/360",
|
|
42630
42746
|
name: "Louis Barrett",
|
|
42631
|
-
mrn: (_$patient_id$0$alias = _ === null || _ === void 0 ? void 0 : (_$
|
|
42747
|
+
mrn: (_$patient_id$0$alias = _ === 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$.alias) !== null && _$patient_id$0$alias !== void 0 ? _$patient_id$0$alias : "",
|
|
42632
42748
|
orderDate: (_ === null || _ === void 0 ? void 0 : _.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : _.start, "DD MMM,YYYY") : "",
|
|
42633
42749
|
orderTime: (_ === null || _ === void 0 ? void 0 : _.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : _.start, "hh:mm A") : "",
|
|
42634
42750
|
speciality: (_$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.speciality) !== null && _$practitioner_detail !== void 0 ? _$practitioner_detail : "",
|
|
42635
42751
|
ward: "Ward 1",
|
|
42636
|
-
dob: (_$patient_id$0$birthD = _ === null || _ === void 0 ? void 0 : (_$
|
|
42752
|
+
dob: (_$patient_id$0$birthD = _ === 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$.birthDate) !== null && _$patient_id$0$birthD !== void 0 ? _$patient_id$0$birthD : "",
|
|
42637
42753
|
contact: "Contact",
|
|
42638
42754
|
type: (_$type$0$display = _ === null || _ === void 0 ? void 0 : (_$type = _.type) === null || _$type === void 0 ? void 0 : (_$type$ = _$type[0]) === null || _$type$ === void 0 ? void 0 : _$type$.display) !== null && _$type$0$display !== void 0 ? _$type$0$display : "",
|
|
42639
42755
|
encounterStatus: "Pending",
|
|
42640
|
-
|
|
42756
|
+
action: JSON.stringify({
|
|
42757
|
+
appNo: (_$id = _ === null || _ === void 0 ? void 0 : _.id) !== null && _$id !== void 0 ? _$id : "",
|
|
42758
|
+
enId: _.id,
|
|
42759
|
+
contact: _ === 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,
|
|
42760
|
+
personId: (_$PersonID$0$Id = _ === null || _ === void 0 ? void 0 : (_$PersonID = _.PersonID) === null || _$PersonID === void 0 ? void 0 : (_$PersonID$ = _$PersonID[0]) === null || _$PersonID$ === void 0 ? void 0 : _$PersonID$.Id) !== null && _$PersonID$0$Id !== void 0 ? _$PersonID$0$Id : null,
|
|
42761
|
+
patientId: (_$patient_id$0$id4 = _ === 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$.id) !== null && _$patient_id$0$id4 !== void 0 ? _$patient_id$0$id4 : null
|
|
42762
|
+
})
|
|
42641
42763
|
};
|
|
42642
42764
|
}) : [];
|
|
42643
42765
|
return _context4.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -42683,28 +42805,30 @@ var GET_PATIENTS_CHECKED_IN_NURSE = createAsyncThunk("currentVisitStatsApiSlice/
|
|
|
42683
42805
|
case 5:
|
|
42684
42806
|
data = _context5.sent;
|
|
42685
42807
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result5 = data.result) === null || _data$result5 === void 0 ? void 0 : _data$result5.map(function (_) {
|
|
42686
|
-
var _$
|
|
42808
|
+
var _$patient_id23, _$patient_id23$, _$patient_id23$$name, _$patient_id24, _$patient_id24$, _$patient_id25, _$patient_id25$, _$patient_id26, _$patient_id26$, _$patient_id26$$gende, _$patient_id27, _$patient_id27$, _$patient_id27$$telec, _$patient_id27$$telec2, _$appointmentId22, _$appointmentId22$, _$appointmentId23, _$appointmentId23$, _$appointmentId24, _$appointmentId24$, _$appointmentId25, _$appointmentId25$, _$appointmentId26, _$appointmentId26$, _$appointmentId27, _$appointmentId27$, _$appointmentId27$$Sp, _$practitioner_detail4, _$practitioner_detail5, _$status4;
|
|
42687
42809
|
|
|
42688
42810
|
return {
|
|
42689
|
-
img:
|
|
42690
|
-
|
|
42691
|
-
|
|
42692
|
-
|
|
42693
|
-
|
|
42694
|
-
|
|
42695
|
-
|
|
42696
|
-
|
|
42697
|
-
|
|
42811
|
+
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid
|
|
42812
|
+
// ? getImgUrl(_?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid)
|
|
42813
|
+
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
42814
|
+
name: makeName((_ === 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$$name = _$patient_id23$.name) === null || _$patient_id23$$name === void 0 ? void 0 : _$patient_id23$$name[0]) || {}),
|
|
42815
|
+
mrn: _ === 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$.MRN,
|
|
42816
|
+
age: _ === 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$.age,
|
|
42817
|
+
gender: _ === 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$$gende = _$patient_id26$.gender) === null || _$patient_id26$$gende === void 0 ? void 0 : _$patient_id26$$gende.display,
|
|
42818
|
+
contact: JSON.stringify(_ === 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),
|
|
42819
|
+
refNo: _ === null || _ === void 0 ? void 0 : (_$appointmentId22 = _.appointmentId) === null || _$appointmentId22 === void 0 ? void 0 : (_$appointmentId22$ = _$appointmentId22[0]) === null || _$appointmentId22$ === void 0 ? void 0 : _$appointmentId22$.appno,
|
|
42820
|
+
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId23 = _.appointmentId) === null || _$appointmentId23 === void 0 ? void 0 : (_$appointmentId23$ = _$appointmentId23[0]) === null || _$appointmentId23$ === void 0 ? void 0 : _$appointmentId23$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId24 = _.appointmentId) === null || _$appointmentId24 === void 0 ? void 0 : (_$appointmentId24$ = _$appointmentId24[0]) === null || _$appointmentId24$ === void 0 ? void 0 : _$appointmentId24$.start, "DD MMM,YYYY") : "",
|
|
42821
|
+
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId25 = _.appointmentId) === null || _$appointmentId25 === void 0 ? void 0 : (_$appointmentId25$ = _$appointmentId25[0]) === null || _$appointmentId25$ === void 0 ? void 0 : _$appointmentId25$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId26 = _.appointmentId) === null || _$appointmentId26 === void 0 ? void 0 : (_$appointmentId26$ = _$appointmentId26[0]) === null || _$appointmentId26$ === void 0 ? void 0 : _$appointmentId26$.start, "hh:mm A") : "",
|
|
42698
42822
|
visittype: (_ === null || _ === void 0 ? void 0 : _.visit_type) || "",
|
|
42699
|
-
speciality: _ === null || _ === void 0 ? void 0 : (_$
|
|
42823
|
+
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId27 = _.appointmentId) === null || _$appointmentId27 === void 0 ? void 0 : (_$appointmentId27$ = _$appointmentId27[0]) === null || _$appointmentId27$ === void 0 ? void 0 : (_$appointmentId27$$Sp = _$appointmentId27$.SpecialtyID) === null || _$appointmentId27$$Sp === void 0 ? void 0 : _$appointmentId27$$Sp.map(function (spl) {
|
|
42700
42824
|
var _spl$coding4, _spl$coding4$;
|
|
42701
42825
|
|
|
42702
42826
|
return spl === null || spl === void 0 ? void 0 : (_spl$coding4 = spl.coding) === null || _spl$coding4 === void 0 ? void 0 : (_spl$coding4$ = _spl$coding4[0]) === null || _spl$coding4$ === void 0 ? void 0 : _spl$coding4$.display;
|
|
42703
42827
|
}).join(", "),
|
|
42704
42828
|
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) || "",
|
|
42705
42829
|
encounterStatus: _ === null || _ === void 0 ? void 0 : (_$status4 = _.status) === null || _$status4 === void 0 ? void 0 : _$status4.display,
|
|
42706
|
-
"View Patient": true,
|
|
42707
|
-
|
|
42830
|
+
// "View Patient": true,
|
|
42831
|
+
action: true
|
|
42708
42832
|
};
|
|
42709
42833
|
}) : [];
|
|
42710
42834
|
return _context5.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -42749,28 +42873,31 @@ var GET_VISIT_COMPLETED_NURSE = createAsyncThunk("currentVisitStatsApiSlice/getV
|
|
|
42749
42873
|
case 5:
|
|
42750
42874
|
data = _context6.sent;
|
|
42751
42875
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result6 = data.result) === null || _data$result6 === void 0 ? void 0 : _data$result6.map(function (_) {
|
|
42752
|
-
var _$
|
|
42876
|
+
var _$patient_id28, _$patient_id28$, _$patient_id28$$name, _$patient_id29, _$patient_id29$, _$patient_id30, _$patient_id30$, _$patient_id31, _$patient_id31$, _$patient_id31$$gende, _$patient_id32, _$patient_id32$, _$patient_id32$$telec, _$patient_id32$$telec2, _$appointmentId28, _$appointmentId28$, _$appointmentId29, _$appointmentId29$, _$appointmentId30, _$appointmentId30$, _$appointmentId31, _$appointmentId31$, _$appointmentId32, _$appointmentId32$, _$appointmentId33, _$appointmentId33$, _$appointmentId33$$Sp, _$practitioner_detail6, _$practitioner_detail7, _$status5;
|
|
42753
42877
|
|
|
42754
42878
|
return {
|
|
42755
|
-
img:
|
|
42756
|
-
|
|
42757
|
-
|
|
42758
|
-
|
|
42759
|
-
|
|
42760
|
-
|
|
42761
|
-
|
|
42762
|
-
|
|
42763
|
-
|
|
42879
|
+
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid
|
|
42880
|
+
// ? getImgUrl(_?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid)
|
|
42881
|
+
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
42882
|
+
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]) || {}),
|
|
42883
|
+
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,
|
|
42884
|
+
age: _ === 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$.age,
|
|
42885
|
+
gender: _ === null || _ === void 0 ? void 0 : (_$patient_id31 = _.patient_id) === null || _$patient_id31 === void 0 ? void 0 : (_$patient_id31$ = _$patient_id31[0]) === null || _$patient_id31$ === void 0 ? void 0 : (_$patient_id31$$gende = _$patient_id31$.gender) === null || _$patient_id31$$gende === void 0 ? void 0 : _$patient_id31$$gende.display,
|
|
42886
|
+
contact: JSON.stringify(_ === null || _ === void 0 ? void 0 : (_$patient_id32 = _.patient_id) === null || _$patient_id32 === void 0 ? void 0 : (_$patient_id32$ = _$patient_id32[0]) === null || _$patient_id32$ === void 0 ? void 0 : (_$patient_id32$$telec = _$patient_id32$.telecom) === null || _$patient_id32$$telec === void 0 ? void 0 : (_$patient_id32$$telec2 = _$patient_id32$$telec[0]) === null || _$patient_id32$$telec2 === void 0 ? void 0 : _$patient_id32$$telec2.value),
|
|
42887
|
+
refNo: _ === null || _ === void 0 ? void 0 : (_$appointmentId28 = _.appointmentId) === null || _$appointmentId28 === void 0 ? void 0 : (_$appointmentId28$ = _$appointmentId28[0]) === null || _$appointmentId28$ === void 0 ? void 0 : _$appointmentId28$.appno,
|
|
42888
|
+
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId29 = _.appointmentId) === null || _$appointmentId29 === void 0 ? void 0 : (_$appointmentId29$ = _$appointmentId29[0]) === null || _$appointmentId29$ === void 0 ? void 0 : _$appointmentId29$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId30 = _.appointmentId) === null || _$appointmentId30 === void 0 ? void 0 : (_$appointmentId30$ = _$appointmentId30[0]) === null || _$appointmentId30$ === void 0 ? void 0 : _$appointmentId30$.start, "DD MMM,YYYY") : "",
|
|
42889
|
+
time: (_ === 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, "hh:mm A") : "",
|
|
42764
42890
|
visittype: (_ === null || _ === void 0 ? void 0 : _.visit_type) || "",
|
|
42765
|
-
speciality: _ === null || _ === void 0 ? void 0 : (_$
|
|
42891
|
+
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId33 = _.appointmentId) === null || _$appointmentId33 === void 0 ? void 0 : (_$appointmentId33$ = _$appointmentId33[0]) === null || _$appointmentId33$ === void 0 ? void 0 : (_$appointmentId33$$Sp = _$appointmentId33$.SpecialtyID) === null || _$appointmentId33$$Sp === void 0 ? void 0 : _$appointmentId33$$Sp.map(function (spl) {
|
|
42766
42892
|
var _spl$coding5, _spl$coding5$;
|
|
42767
42893
|
|
|
42768
42894
|
return spl === null || spl === void 0 ? void 0 : (_spl$coding5 = spl.coding) === null || _spl$coding5 === void 0 ? void 0 : (_spl$coding5$ = _spl$coding5[0]) === null || _spl$coding5$ === void 0 ? void 0 : _spl$coding5$.display;
|
|
42769
42895
|
}).join(", "),
|
|
42770
42896
|
clinic: (_ === null || _ === void 0 ? void 0 : (_$practitioner_detail6 = _.practitioner_details) === null || _$practitioner_detail6 === void 0 ? void 0 : (_$practitioner_detail7 = _$practitioner_detail6[0]) === null || _$practitioner_detail7 === void 0 ? void 0 : _$practitioner_detail7.clinic) || "",
|
|
42771
42897
|
encounterStatus: _ === null || _ === void 0 ? void 0 : (_$status5 = _.status) === null || _$status5 === void 0 ? void 0 : _$status5.display,
|
|
42772
|
-
"View Patient": true,
|
|
42773
|
-
Attend: true
|
|
42898
|
+
// "View Patient": true,
|
|
42899
|
+
// Attend: true,
|
|
42900
|
+
action: true
|
|
42774
42901
|
};
|
|
42775
42902
|
}) : [];
|
|
42776
42903
|
return _context6.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -42815,14 +42942,14 @@ var GET_PATIENTS_NO_SHOWS_NURSE = createAsyncThunk("currentVisitStatsApiSlice/ge
|
|
|
42815
42942
|
case 5:
|
|
42816
42943
|
data = _context7.sent;
|
|
42817
42944
|
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 (_) {
|
|
42818
|
-
var _$
|
|
42945
|
+
var _$PersonID2, _$PersonID2$, _$PersonID2$$name, _$PersonID2$$name$, _$PersonID3, _$PersonID3$, _$type2, _$type2$, _$practitioner_detail8, _$practitioner_detail9;
|
|
42819
42946
|
|
|
42820
42947
|
return {
|
|
42821
|
-
img: "https://www.fillmurray.com/640/360",
|
|
42822
|
-
name: _ === null || _ === void 0 ? void 0 : (_$
|
|
42948
|
+
// img: "https://www.fillmurray.com/640/360",
|
|
42949
|
+
name: _ === null || _ === void 0 ? void 0 : (_$PersonID2 = _.PersonID) === null || _$PersonID2 === void 0 ? void 0 : (_$PersonID2$ = _$PersonID2[0]) === null || _$PersonID2$ === void 0 ? void 0 : (_$PersonID2$$name = _$PersonID2$.name) === null || _$PersonID2$$name === void 0 ? void 0 : (_$PersonID2$$name$ = _$PersonID2$$name[0]) === null || _$PersonID2$$name$ === void 0 ? void 0 : _$PersonID2$$name$.given,
|
|
42823
42950
|
mrn: "MRN",
|
|
42824
42951
|
age: "Age",
|
|
42825
|
-
gender: _ === null || _ === void 0 ? void 0 : (_$
|
|
42952
|
+
gender: _ === null || _ === void 0 ? void 0 : (_$PersonID3 = _.PersonID) === null || _$PersonID3 === void 0 ? void 0 : (_$PersonID3$ = _$PersonID3[0]) === null || _$PersonID3$ === void 0 ? void 0 : _$PersonID3$.gender,
|
|
42826
42953
|
contact: "Contact",
|
|
42827
42954
|
refNo: "Ref No",
|
|
42828
42955
|
date: (_ === null || _ === void 0 ? void 0 : _.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : _.start, "DD MMM,YYYY") : "",
|
|
@@ -42831,8 +42958,9 @@ var GET_PATIENTS_NO_SHOWS_NURSE = createAsyncThunk("currentVisitStatsApiSlice/ge
|
|
|
42831
42958
|
speciality: _ === null || _ === void 0 ? void 0 : (_$practitioner_detail8 = _.practitioner_details) === null || _$practitioner_detail8 === void 0 ? void 0 : (_$practitioner_detail9 = _$practitioner_detail8[0]) === null || _$practitioner_detail9 === void 0 ? void 0 : _$practitioner_detail9.speciality,
|
|
42832
42959
|
clinic: "Clinic",
|
|
42833
42960
|
encounterStatus: "Pending",
|
|
42834
|
-
"View Patient": true,
|
|
42835
|
-
Attend: true
|
|
42961
|
+
// "View Patient": true,
|
|
42962
|
+
// Attend: true,
|
|
42963
|
+
action: true
|
|
42836
42964
|
};
|
|
42837
42965
|
}) : [];
|
|
42838
42966
|
return _context7.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -42877,28 +43005,31 @@ var GET_TRAIGE_DONE_NURSE = createAsyncThunk("currentVisitStatsApiSlice/getTriag
|
|
|
42877
43005
|
case 5:
|
|
42878
43006
|
data = _context8.sent;
|
|
42879
43007
|
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 (_) {
|
|
42880
|
-
var _$
|
|
43008
|
+
var _$patient_id33, _$patient_id33$, _$patient_id33$$name, _$patient_id34, _$patient_id34$, _$patient_id35, _$patient_id35$, _$patient_id36, _$patient_id36$, _$patient_id36$$gende, _$patient_id37, _$patient_id37$, _$patient_id37$$telec, _$patient_id37$$telec2, _$appointmentId34, _$appointmentId34$, _$appointmentId35, _$appointmentId35$, _$appointmentId36, _$appointmentId36$, _$appointmentId37, _$appointmentId37$, _$appointmentId38, _$appointmentId38$, _$appointmentId39, _$appointmentId39$, _$appointmentId39$$Sp, _$practitioner_detail10, _$practitioner_detail11, _$status6;
|
|
42881
43009
|
|
|
42882
43010
|
return {
|
|
42883
|
-
img:
|
|
42884
|
-
|
|
42885
|
-
|
|
42886
|
-
|
|
42887
|
-
|
|
42888
|
-
|
|
42889
|
-
|
|
42890
|
-
|
|
42891
|
-
|
|
43011
|
+
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid
|
|
43012
|
+
// ? getImgUrl(_?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid)
|
|
43013
|
+
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
43014
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id33 = _.patient_id) === null || _$patient_id33 === void 0 ? void 0 : (_$patient_id33$ = _$patient_id33[0]) === null || _$patient_id33$ === void 0 ? void 0 : (_$patient_id33$$name = _$patient_id33$.name) === null || _$patient_id33$$name === void 0 ? void 0 : _$patient_id33$$name[0]) || {}),
|
|
43015
|
+
mrn: _ === null || _ === void 0 ? void 0 : (_$patient_id34 = _.patient_id) === null || _$patient_id34 === void 0 ? void 0 : (_$patient_id34$ = _$patient_id34[0]) === null || _$patient_id34$ === void 0 ? void 0 : _$patient_id34$.MRN,
|
|
43016
|
+
age: _ === null || _ === void 0 ? void 0 : (_$patient_id35 = _.patient_id) === null || _$patient_id35 === void 0 ? void 0 : (_$patient_id35$ = _$patient_id35[0]) === null || _$patient_id35$ === void 0 ? void 0 : _$patient_id35$.age,
|
|
43017
|
+
gender: _ === null || _ === void 0 ? void 0 : (_$patient_id36 = _.patient_id) === null || _$patient_id36 === void 0 ? void 0 : (_$patient_id36$ = _$patient_id36[0]) === null || _$patient_id36$ === void 0 ? void 0 : (_$patient_id36$$gende = _$patient_id36$.gender) === null || _$patient_id36$$gende === void 0 ? void 0 : _$patient_id36$$gende.display,
|
|
43018
|
+
contact: JSON.stringify(_ === null || _ === void 0 ? void 0 : (_$patient_id37 = _.patient_id) === null || _$patient_id37 === void 0 ? void 0 : (_$patient_id37$ = _$patient_id37[0]) === null || _$patient_id37$ === void 0 ? void 0 : (_$patient_id37$$telec = _$patient_id37$.telecom) === null || _$patient_id37$$telec === void 0 ? void 0 : (_$patient_id37$$telec2 = _$patient_id37$$telec[0]) === null || _$patient_id37$$telec2 === void 0 ? void 0 : _$patient_id37$$telec2.value),
|
|
43019
|
+
refNo: _ === null || _ === void 0 ? void 0 : (_$appointmentId34 = _.appointmentId) === null || _$appointmentId34 === void 0 ? void 0 : (_$appointmentId34$ = _$appointmentId34[0]) === null || _$appointmentId34$ === void 0 ? void 0 : _$appointmentId34$.appno,
|
|
43020
|
+
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId35 = _.appointmentId) === null || _$appointmentId35 === void 0 ? void 0 : (_$appointmentId35$ = _$appointmentId35[0]) === null || _$appointmentId35$ === void 0 ? void 0 : _$appointmentId35$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId36 = _.appointmentId) === null || _$appointmentId36 === void 0 ? void 0 : (_$appointmentId36$ = _$appointmentId36[0]) === null || _$appointmentId36$ === void 0 ? void 0 : _$appointmentId36$.start, "DD MMM,YYYY") : "",
|
|
43021
|
+
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId37 = _.appointmentId) === null || _$appointmentId37 === void 0 ? void 0 : (_$appointmentId37$ = _$appointmentId37[0]) === null || _$appointmentId37$ === void 0 ? void 0 : _$appointmentId37$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId38 = _.appointmentId) === null || _$appointmentId38 === void 0 ? void 0 : (_$appointmentId38$ = _$appointmentId38[0]) === null || _$appointmentId38$ === void 0 ? void 0 : _$appointmentId38$.start, "hh:mm A") : "",
|
|
42892
43022
|
visittype: (_ === null || _ === void 0 ? void 0 : _.visit_type) || "",
|
|
42893
|
-
speciality: _ === null || _ === void 0 ? void 0 : (_$
|
|
43023
|
+
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId39 = _.appointmentId) === null || _$appointmentId39 === void 0 ? void 0 : (_$appointmentId39$ = _$appointmentId39[0]) === null || _$appointmentId39$ === void 0 ? void 0 : (_$appointmentId39$$Sp = _$appointmentId39$.SpecialtyID) === null || _$appointmentId39$$Sp === void 0 ? void 0 : _$appointmentId39$$Sp.map(function (spl) {
|
|
42894
43024
|
var _spl$coding6, _spl$coding6$;
|
|
42895
43025
|
|
|
42896
43026
|
return spl === null || spl === void 0 ? void 0 : (_spl$coding6 = spl.coding) === null || _spl$coding6 === void 0 ? void 0 : (_spl$coding6$ = _spl$coding6[0]) === null || _spl$coding6$ === void 0 ? void 0 : _spl$coding6$.display;
|
|
42897
43027
|
}).join(", "),
|
|
42898
43028
|
clinic: (_ === null || _ === void 0 ? void 0 : (_$practitioner_detail10 = _.practitioner_details) === null || _$practitioner_detail10 === void 0 ? void 0 : (_$practitioner_detail11 = _$practitioner_detail10[0]) === null || _$practitioner_detail11 === void 0 ? void 0 : _$practitioner_detail11.clinic) || "",
|
|
42899
43029
|
encounterStatus: _ === null || _ === void 0 ? void 0 : (_$status6 = _.status) === null || _$status6 === void 0 ? void 0 : _$status6.display,
|
|
42900
|
-
"View Patient": true,
|
|
42901
|
-
Attend: true
|
|
43030
|
+
// "View Patient": true,
|
|
43031
|
+
// Attend: true,
|
|
43032
|
+
action: true
|
|
42902
43033
|
};
|
|
42903
43034
|
}) : [];
|
|
42904
43035
|
return _context8.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -42944,14 +43075,14 @@ var GET_PATIENTS_NO_SHOWS_DOCTOR = createAsyncThunk("currentVisitStatsApiSlice/g
|
|
|
42944
43075
|
case 5:
|
|
42945
43076
|
data = _context9.sent;
|
|
42946
43077
|
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 (_) {
|
|
42947
|
-
var _$
|
|
43078
|
+
var _$PersonID4, _$PersonID4$, _$PersonID4$$name, _$PersonID4$$name$, _$PersonID5, _$PersonID5$, _$type3, _$type3$, _$practitioner_detail12, _$practitioner_detail13;
|
|
42948
43079
|
|
|
42949
43080
|
return {
|
|
42950
|
-
img: "https://www.fillmurray.com/640/360",
|
|
42951
|
-
name: _ === null || _ === void 0 ? void 0 : (_$
|
|
43081
|
+
// img: "https://www.fillmurray.com/640/360",
|
|
43082
|
+
name: _ === null || _ === void 0 ? void 0 : (_$PersonID4 = _.PersonID) === null || _$PersonID4 === void 0 ? void 0 : (_$PersonID4$ = _$PersonID4[0]) === null || _$PersonID4$ === void 0 ? void 0 : (_$PersonID4$$name = _$PersonID4$.name) === null || _$PersonID4$$name === void 0 ? void 0 : (_$PersonID4$$name$ = _$PersonID4$$name[0]) === null || _$PersonID4$$name$ === void 0 ? void 0 : _$PersonID4$$name$.given,
|
|
42952
43083
|
mrn: "MRN",
|
|
42953
43084
|
age: "Age",
|
|
42954
|
-
gender: _ === null || _ === void 0 ? void 0 : (_$
|
|
43085
|
+
gender: _ === null || _ === void 0 ? void 0 : (_$PersonID5 = _.PersonID) === null || _$PersonID5 === void 0 ? void 0 : (_$PersonID5$ = _$PersonID5[0]) === null || _$PersonID5$ === void 0 ? void 0 : _$PersonID5$.gender,
|
|
42955
43086
|
contact: "Contact",
|
|
42956
43087
|
refNo: "Ref No",
|
|
42957
43088
|
date: (_ === null || _ === void 0 ? void 0 : _.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : _.start, "DD MMM,YYYY") : "",
|
|
@@ -42960,8 +43091,9 @@ var GET_PATIENTS_NO_SHOWS_DOCTOR = createAsyncThunk("currentVisitStatsApiSlice/g
|
|
|
42960
43091
|
speciality: _ === 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.speciality,
|
|
42961
43092
|
clinic: "Clinic",
|
|
42962
43093
|
encounterStatus: "Pending",
|
|
42963
|
-
"View Patient": true,
|
|
42964
|
-
Attend: true
|
|
43094
|
+
// "View Patient": true,
|
|
43095
|
+
// Attend: true,
|
|
43096
|
+
action: true
|
|
42965
43097
|
};
|
|
42966
43098
|
}) : [];
|
|
42967
43099
|
return _context9.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -43006,28 +43138,31 @@ var GET_PATIENTS_CHECKED_IN_DOCTOR = createAsyncThunk("currentVisitStatsApiSlice
|
|
|
43006
43138
|
case 5:
|
|
43007
43139
|
data = _context10.sent;
|
|
43008
43140
|
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 (_) {
|
|
43009
|
-
var _$
|
|
43141
|
+
var _$patient_id38, _$patient_id38$, _$patient_id38$$name, _$patient_id39, _$patient_id39$, _$patient_id40, _$patient_id40$, _$patient_id41, _$patient_id41$, _$patient_id41$$gende, _$patient_id42, _$patient_id42$, _$patient_id42$$telec, _$patient_id42$$telec2, _$appointmentId40, _$appointmentId40$, _$appointmentId41, _$appointmentId41$, _$appointmentId42, _$appointmentId42$, _$appointmentId43, _$appointmentId43$, _$appointmentId44, _$appointmentId44$, _$appointmentId45, _$appointmentId45$, _$appointmentId45$$Sp, _$practitioner_detail14, _$practitioner_detail15, _$status7;
|
|
43010
43142
|
|
|
43011
43143
|
return {
|
|
43012
|
-
img:
|
|
43013
|
-
|
|
43014
|
-
|
|
43015
|
-
|
|
43016
|
-
|
|
43017
|
-
|
|
43018
|
-
|
|
43019
|
-
|
|
43020
|
-
|
|
43144
|
+
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid
|
|
43145
|
+
// ? getImgUrl(_?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid)
|
|
43146
|
+
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
43147
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id38 = _.patient_id) === null || _$patient_id38 === void 0 ? void 0 : (_$patient_id38$ = _$patient_id38[0]) === null || _$patient_id38$ === void 0 ? void 0 : (_$patient_id38$$name = _$patient_id38$.name) === null || _$patient_id38$$name === void 0 ? void 0 : _$patient_id38$$name[0]) || {}),
|
|
43148
|
+
mrn: _ === null || _ === void 0 ? void 0 : (_$patient_id39 = _.patient_id) === null || _$patient_id39 === void 0 ? void 0 : (_$patient_id39$ = _$patient_id39[0]) === null || _$patient_id39$ === void 0 ? void 0 : _$patient_id39$.MRN,
|
|
43149
|
+
age: _ === null || _ === void 0 ? void 0 : (_$patient_id40 = _.patient_id) === null || _$patient_id40 === void 0 ? void 0 : (_$patient_id40$ = _$patient_id40[0]) === null || _$patient_id40$ === void 0 ? void 0 : _$patient_id40$.age,
|
|
43150
|
+
gender: _ === null || _ === void 0 ? void 0 : (_$patient_id41 = _.patient_id) === null || _$patient_id41 === void 0 ? void 0 : (_$patient_id41$ = _$patient_id41[0]) === null || _$patient_id41$ === void 0 ? void 0 : (_$patient_id41$$gende = _$patient_id41$.gender) === null || _$patient_id41$$gende === void 0 ? void 0 : _$patient_id41$$gende.display,
|
|
43151
|
+
contact: JSON.stringify(_ === null || _ === void 0 ? void 0 : (_$patient_id42 = _.patient_id) === null || _$patient_id42 === void 0 ? void 0 : (_$patient_id42$ = _$patient_id42[0]) === null || _$patient_id42$ === void 0 ? void 0 : (_$patient_id42$$telec = _$patient_id42$.telecom) === null || _$patient_id42$$telec === void 0 ? void 0 : (_$patient_id42$$telec2 = _$patient_id42$$telec[0]) === null || _$patient_id42$$telec2 === void 0 ? void 0 : _$patient_id42$$telec2.value),
|
|
43152
|
+
refNo: _ === null || _ === void 0 ? void 0 : (_$appointmentId40 = _.appointmentId) === null || _$appointmentId40 === void 0 ? void 0 : (_$appointmentId40$ = _$appointmentId40[0]) === null || _$appointmentId40$ === void 0 ? void 0 : _$appointmentId40$.appno,
|
|
43153
|
+
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId41 = _.appointmentId) === null || _$appointmentId41 === void 0 ? void 0 : (_$appointmentId41$ = _$appointmentId41[0]) === null || _$appointmentId41$ === void 0 ? void 0 : _$appointmentId41$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId42 = _.appointmentId) === null || _$appointmentId42 === void 0 ? void 0 : (_$appointmentId42$ = _$appointmentId42[0]) === null || _$appointmentId42$ === void 0 ? void 0 : _$appointmentId42$.start, "DD MMM,YYYY") : "",
|
|
43154
|
+
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId43 = _.appointmentId) === null || _$appointmentId43 === void 0 ? void 0 : (_$appointmentId43$ = _$appointmentId43[0]) === null || _$appointmentId43$ === void 0 ? void 0 : _$appointmentId43$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId44 = _.appointmentId) === null || _$appointmentId44 === void 0 ? void 0 : (_$appointmentId44$ = _$appointmentId44[0]) === null || _$appointmentId44$ === void 0 ? void 0 : _$appointmentId44$.start, "hh:mm A") : "",
|
|
43021
43155
|
visittype: (_ === null || _ === void 0 ? void 0 : _.visit_type) || "",
|
|
43022
|
-
speciality: _ === null || _ === void 0 ? void 0 : (_$
|
|
43156
|
+
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId45 = _.appointmentId) === null || _$appointmentId45 === void 0 ? void 0 : (_$appointmentId45$ = _$appointmentId45[0]) === null || _$appointmentId45$ === void 0 ? void 0 : (_$appointmentId45$$Sp = _$appointmentId45$.SpecialtyID) === null || _$appointmentId45$$Sp === void 0 ? void 0 : _$appointmentId45$$Sp.map(function (spl) {
|
|
43023
43157
|
var _spl$coding7, _spl$coding7$;
|
|
43024
43158
|
|
|
43025
43159
|
return spl === null || spl === void 0 ? void 0 : (_spl$coding7 = spl.coding) === null || _spl$coding7 === void 0 ? void 0 : (_spl$coding7$ = _spl$coding7[0]) === null || _spl$coding7$ === void 0 ? void 0 : _spl$coding7$.display;
|
|
43026
43160
|
}).join(", "),
|
|
43027
43161
|
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) || "",
|
|
43028
43162
|
encounterStatus: _ === null || _ === void 0 ? void 0 : (_$status7 = _.status) === null || _$status7 === void 0 ? void 0 : _$status7.display,
|
|
43029
|
-
"View Patient": true,
|
|
43030
|
-
Attend: true
|
|
43163
|
+
// "View Patient": true,
|
|
43164
|
+
// Attend: true,
|
|
43165
|
+
action: true
|
|
43031
43166
|
};
|
|
43032
43167
|
}) : [];
|
|
43033
43168
|
return _context10.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -43072,28 +43207,31 @@ var GET_VISIT_COMPLETED_DOCTOR = createAsyncThunk("currentVisitStatsApiSlice/get
|
|
|
43072
43207
|
case 5:
|
|
43073
43208
|
data = _context11.sent;
|
|
43074
43209
|
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 (_) {
|
|
43075
|
-
var _$
|
|
43210
|
+
var _$patient_id43, _$patient_id43$, _$patient_id43$$name, _$patient_id44, _$patient_id44$, _$patient_id45, _$patient_id45$, _$patient_id46, _$patient_id46$, _$patient_id46$$gende, _$patient_id47, _$patient_id47$, _$patient_id47$$telec, _$patient_id47$$telec2, _$appointmentId46, _$appointmentId46$, _$appointmentId47, _$appointmentId47$, _$appointmentId48, _$appointmentId48$, _$appointmentId49, _$appointmentId49$, _$appointmentId50, _$appointmentId50$, _$appointmentId51, _$appointmentId51$, _$appointmentId51$$Sp, _$practitioner_detail16, _$practitioner_detail17, _$status8;
|
|
43076
43211
|
|
|
43077
43212
|
return {
|
|
43078
|
-
img:
|
|
43079
|
-
|
|
43080
|
-
|
|
43081
|
-
|
|
43082
|
-
|
|
43083
|
-
|
|
43084
|
-
|
|
43085
|
-
|
|
43086
|
-
|
|
43213
|
+
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid
|
|
43214
|
+
// ? getImgUrl(_?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid)
|
|
43215
|
+
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
43216
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id43 = _.patient_id) === null || _$patient_id43 === void 0 ? void 0 : (_$patient_id43$ = _$patient_id43[0]) === null || _$patient_id43$ === void 0 ? void 0 : (_$patient_id43$$name = _$patient_id43$.name) === null || _$patient_id43$$name === void 0 ? void 0 : _$patient_id43$$name[0]) || {}),
|
|
43217
|
+
mrn: _ === null || _ === void 0 ? void 0 : (_$patient_id44 = _.patient_id) === null || _$patient_id44 === void 0 ? void 0 : (_$patient_id44$ = _$patient_id44[0]) === null || _$patient_id44$ === void 0 ? void 0 : _$patient_id44$.MRN,
|
|
43218
|
+
age: _ === null || _ === void 0 ? void 0 : (_$patient_id45 = _.patient_id) === null || _$patient_id45 === void 0 ? void 0 : (_$patient_id45$ = _$patient_id45[0]) === null || _$patient_id45$ === void 0 ? void 0 : _$patient_id45$.age,
|
|
43219
|
+
gender: _ === null || _ === void 0 ? void 0 : (_$patient_id46 = _.patient_id) === null || _$patient_id46 === void 0 ? void 0 : (_$patient_id46$ = _$patient_id46[0]) === null || _$patient_id46$ === void 0 ? void 0 : (_$patient_id46$$gende = _$patient_id46$.gender) === null || _$patient_id46$$gende === void 0 ? void 0 : _$patient_id46$$gende.display,
|
|
43220
|
+
contact: JSON.stringify(_ === null || _ === void 0 ? void 0 : (_$patient_id47 = _.patient_id) === null || _$patient_id47 === void 0 ? void 0 : (_$patient_id47$ = _$patient_id47[0]) === null || _$patient_id47$ === void 0 ? void 0 : (_$patient_id47$$telec = _$patient_id47$.telecom) === null || _$patient_id47$$telec === void 0 ? void 0 : (_$patient_id47$$telec2 = _$patient_id47$$telec[0]) === null || _$patient_id47$$telec2 === void 0 ? void 0 : _$patient_id47$$telec2.value),
|
|
43221
|
+
refNo: _ === null || _ === void 0 ? void 0 : (_$appointmentId46 = _.appointmentId) === null || _$appointmentId46 === void 0 ? void 0 : (_$appointmentId46$ = _$appointmentId46[0]) === null || _$appointmentId46$ === void 0 ? void 0 : _$appointmentId46$.appno,
|
|
43222
|
+
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId47 = _.appointmentId) === null || _$appointmentId47 === void 0 ? void 0 : (_$appointmentId47$ = _$appointmentId47[0]) === null || _$appointmentId47$ === void 0 ? void 0 : _$appointmentId47$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId48 = _.appointmentId) === null || _$appointmentId48 === void 0 ? void 0 : (_$appointmentId48$ = _$appointmentId48[0]) === null || _$appointmentId48$ === void 0 ? void 0 : _$appointmentId48$.start, "DD MMM,YYYY") : "",
|
|
43223
|
+
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId49 = _.appointmentId) === null || _$appointmentId49 === void 0 ? void 0 : (_$appointmentId49$ = _$appointmentId49[0]) === null || _$appointmentId49$ === void 0 ? void 0 : _$appointmentId49$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId50 = _.appointmentId) === null || _$appointmentId50 === void 0 ? void 0 : (_$appointmentId50$ = _$appointmentId50[0]) === null || _$appointmentId50$ === void 0 ? void 0 : _$appointmentId50$.start, "hh:mm A") : "",
|
|
43087
43224
|
visittype: (_ === null || _ === void 0 ? void 0 : _.visit_type) || "",
|
|
43088
|
-
speciality: _ === null || _ === void 0 ? void 0 : (_$
|
|
43225
|
+
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId51 = _.appointmentId) === null || _$appointmentId51 === void 0 ? void 0 : (_$appointmentId51$ = _$appointmentId51[0]) === null || _$appointmentId51$ === void 0 ? void 0 : (_$appointmentId51$$Sp = _$appointmentId51$.SpecialtyID) === null || _$appointmentId51$$Sp === void 0 ? void 0 : _$appointmentId51$$Sp.map(function (spl) {
|
|
43089
43226
|
var _spl$coding8, _spl$coding8$;
|
|
43090
43227
|
|
|
43091
43228
|
return spl === null || spl === void 0 ? void 0 : (_spl$coding8 = spl.coding) === null || _spl$coding8 === void 0 ? void 0 : (_spl$coding8$ = _spl$coding8[0]) === null || _spl$coding8$ === void 0 ? void 0 : _spl$coding8$.display;
|
|
43092
43229
|
}).join(", "),
|
|
43093
43230
|
clinic: (_ === null || _ === void 0 ? void 0 : (_$practitioner_detail16 = _.practitioner_details) === null || _$practitioner_detail16 === void 0 ? void 0 : (_$practitioner_detail17 = _$practitioner_detail16[0]) === null || _$practitioner_detail17 === void 0 ? void 0 : _$practitioner_detail17.clinic) || "",
|
|
43094
43231
|
encounterStatus: _ === null || _ === void 0 ? void 0 : (_$status8 = _.status) === null || _$status8 === void 0 ? void 0 : _$status8.display,
|
|
43095
|
-
"View Patient": true,
|
|
43096
|
-
Attend: true
|
|
43232
|
+
// "View Patient": true,
|
|
43233
|
+
// Attend: true,
|
|
43234
|
+
action: true
|
|
43097
43235
|
};
|
|
43098
43236
|
}) : [];
|
|
43099
43237
|
return _context11.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -43138,28 +43276,31 @@ var GET_TRAIGE_DONE_DOCTOR = createAsyncThunk("currentVisitStatsApiSlice/getTria
|
|
|
43138
43276
|
case 5:
|
|
43139
43277
|
data = _context12.sent;
|
|
43140
43278
|
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 (_) {
|
|
43141
|
-
var _$
|
|
43279
|
+
var _$patient_id48, _$patient_id48$, _$patient_id48$$name, _$patient_id49, _$patient_id49$, _$patient_id50, _$patient_id50$, _$patient_id51, _$patient_id51$, _$patient_id51$$gende, _$patient_id52, _$patient_id52$, _$patient_id52$$telec, _$patient_id52$$telec2, _$appointmentId52, _$appointmentId52$, _$appointmentId53, _$appointmentId53$, _$appointmentId54, _$appointmentId54$, _$appointmentId55, _$appointmentId55$, _$appointmentId56, _$appointmentId56$, _$appointmentId57, _$appointmentId57$, _$appointmentId57$$Sp, _$practitioner_detail18, _$practitioner_detail19, _$status9;
|
|
43142
43280
|
|
|
43143
43281
|
return {
|
|
43144
|
-
img:
|
|
43145
|
-
|
|
43146
|
-
|
|
43147
|
-
|
|
43148
|
-
|
|
43149
|
-
|
|
43150
|
-
|
|
43151
|
-
|
|
43152
|
-
|
|
43282
|
+
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid
|
|
43283
|
+
// ? getImgUrl(_?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid)
|
|
43284
|
+
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
43285
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id48 = _.patient_id) === null || _$patient_id48 === void 0 ? void 0 : (_$patient_id48$ = _$patient_id48[0]) === null || _$patient_id48$ === void 0 ? void 0 : (_$patient_id48$$name = _$patient_id48$.name) === null || _$patient_id48$$name === void 0 ? void 0 : _$patient_id48$$name[0]) || {}),
|
|
43286
|
+
mrn: _ === null || _ === void 0 ? void 0 : (_$patient_id49 = _.patient_id) === null || _$patient_id49 === void 0 ? void 0 : (_$patient_id49$ = _$patient_id49[0]) === null || _$patient_id49$ === void 0 ? void 0 : _$patient_id49$.MRN,
|
|
43287
|
+
age: _ === null || _ === void 0 ? void 0 : (_$patient_id50 = _.patient_id) === null || _$patient_id50 === void 0 ? void 0 : (_$patient_id50$ = _$patient_id50[0]) === null || _$patient_id50$ === void 0 ? void 0 : _$patient_id50$.age,
|
|
43288
|
+
gender: _ === null || _ === void 0 ? void 0 : (_$patient_id51 = _.patient_id) === null || _$patient_id51 === void 0 ? void 0 : (_$patient_id51$ = _$patient_id51[0]) === null || _$patient_id51$ === void 0 ? void 0 : (_$patient_id51$$gende = _$patient_id51$.gender) === null || _$patient_id51$$gende === void 0 ? void 0 : _$patient_id51$$gende.display,
|
|
43289
|
+
contact: JSON.stringify(_ === null || _ === void 0 ? void 0 : (_$patient_id52 = _.patient_id) === null || _$patient_id52 === void 0 ? void 0 : (_$patient_id52$ = _$patient_id52[0]) === null || _$patient_id52$ === void 0 ? void 0 : (_$patient_id52$$telec = _$patient_id52$.telecom) === null || _$patient_id52$$telec === void 0 ? void 0 : (_$patient_id52$$telec2 = _$patient_id52$$telec[0]) === null || _$patient_id52$$telec2 === void 0 ? void 0 : _$patient_id52$$telec2.value),
|
|
43290
|
+
refNo: _ === null || _ === void 0 ? void 0 : (_$appointmentId52 = _.appointmentId) === null || _$appointmentId52 === void 0 ? void 0 : (_$appointmentId52$ = _$appointmentId52[0]) === null || _$appointmentId52$ === void 0 ? void 0 : _$appointmentId52$.appno,
|
|
43291
|
+
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId53 = _.appointmentId) === null || _$appointmentId53 === void 0 ? void 0 : (_$appointmentId53$ = _$appointmentId53[0]) === null || _$appointmentId53$ === void 0 ? void 0 : _$appointmentId53$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId54 = _.appointmentId) === null || _$appointmentId54 === void 0 ? void 0 : (_$appointmentId54$ = _$appointmentId54[0]) === null || _$appointmentId54$ === void 0 ? void 0 : _$appointmentId54$.start, "DD MMM,YYYY") : "",
|
|
43292
|
+
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId55 = _.appointmentId) === null || _$appointmentId55 === void 0 ? void 0 : (_$appointmentId55$ = _$appointmentId55[0]) === null || _$appointmentId55$ === void 0 ? void 0 : _$appointmentId55$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId56 = _.appointmentId) === null || _$appointmentId56 === void 0 ? void 0 : (_$appointmentId56$ = _$appointmentId56[0]) === null || _$appointmentId56$ === void 0 ? void 0 : _$appointmentId56$.start, "hh:mm A") : "",
|
|
43153
43293
|
visittype: (_ === null || _ === void 0 ? void 0 : _.visit_type) || "",
|
|
43154
|
-
speciality: _ === null || _ === void 0 ? void 0 : (_$
|
|
43294
|
+
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId57 = _.appointmentId) === null || _$appointmentId57 === void 0 ? void 0 : (_$appointmentId57$ = _$appointmentId57[0]) === null || _$appointmentId57$ === void 0 ? void 0 : (_$appointmentId57$$Sp = _$appointmentId57$.SpecialtyID) === null || _$appointmentId57$$Sp === void 0 ? void 0 : _$appointmentId57$$Sp.map(function (spl) {
|
|
43155
43295
|
var _spl$coding9, _spl$coding9$;
|
|
43156
43296
|
|
|
43157
43297
|
return spl === null || spl === void 0 ? void 0 : (_spl$coding9 = spl.coding) === null || _spl$coding9 === void 0 ? void 0 : (_spl$coding9$ = _spl$coding9[0]) === null || _spl$coding9$ === void 0 ? void 0 : _spl$coding9$.display;
|
|
43158
43298
|
}).join(", "),
|
|
43159
43299
|
clinic: (_ === null || _ === void 0 ? void 0 : (_$practitioner_detail18 = _.practitioner_details) === null || _$practitioner_detail18 === void 0 ? void 0 : (_$practitioner_detail19 = _$practitioner_detail18[0]) === null || _$practitioner_detail19 === void 0 ? void 0 : _$practitioner_detail19.clinic) || "",
|
|
43160
43300
|
encounterStatus: _ === null || _ === void 0 ? void 0 : (_$status9 = _.status) === null || _$status9 === void 0 ? void 0 : _$status9.display,
|
|
43161
|
-
"View Patient": true,
|
|
43162
|
-
Attend: true
|
|
43301
|
+
// "View Patient": true,
|
|
43302
|
+
// Attend: true,
|
|
43303
|
+
action: true
|
|
43163
43304
|
};
|
|
43164
43305
|
}) : [];
|
|
43165
43306
|
return _context12.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|